diff --git a/.venv/lib/python3.10/site-packages/gradio/__pycache__/__init__.cpython-310.pyc b/.venv/lib/python3.10/site-packages/gradio/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..cd2a3d02a982f416e9b9899b49793d34084388ce Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/__pycache__/__init__.cpython-310.pyc differ diff --git a/.venv/lib/python3.10/site-packages/gradio/__pycache__/analytics.cpython-310.pyc b/.venv/lib/python3.10/site-packages/gradio/__pycache__/analytics.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..eae508d0f20a10aedd14abbda869c5576d2a5ac3 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/__pycache__/analytics.cpython-310.pyc differ diff --git a/.venv/lib/python3.10/site-packages/gradio/__pycache__/block_function.cpython-310.pyc b/.venv/lib/python3.10/site-packages/gradio/__pycache__/block_function.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..93e52b3b0055b1b3842a54d5c9d354c3ca0edebb Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/__pycache__/block_function.cpython-310.pyc differ diff --git a/.venv/lib/python3.10/site-packages/gradio/__pycache__/blocks_events.cpython-310.pyc b/.venv/lib/python3.10/site-packages/gradio/__pycache__/blocks_events.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..27ca5d6c8410eaf919ff95f362ad609dad5b0f26 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/__pycache__/blocks_events.cpython-310.pyc differ diff --git a/.venv/lib/python3.10/site-packages/gradio/__pycache__/brotli_middleware.cpython-310.pyc b/.venv/lib/python3.10/site-packages/gradio/__pycache__/brotli_middleware.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..db007837577c77c92d94c06a88b4e32243478531 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/__pycache__/brotli_middleware.cpython-310.pyc differ diff --git a/.venv/lib/python3.10/site-packages/gradio/__pycache__/caching.cpython-310.pyc b/.venv/lib/python3.10/site-packages/gradio/__pycache__/caching.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..23bb8929bdb29b8ee5fc4b0f4c2c1e21a8574314 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/__pycache__/caching.cpython-310.pyc differ diff --git a/.venv/lib/python3.10/site-packages/gradio/__pycache__/chat_interface.cpython-310.pyc b/.venv/lib/python3.10/site-packages/gradio/__pycache__/chat_interface.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6fc34f82eb0002d05e1b7f649f02abe67683d4fd Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/__pycache__/chat_interface.cpython-310.pyc differ diff --git a/.venv/lib/python3.10/site-packages/gradio/__pycache__/component_meta.cpython-310.pyc b/.venv/lib/python3.10/site-packages/gradio/__pycache__/component_meta.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ec5865a03b0c08198eca0b920da478ba2848441d Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/__pycache__/component_meta.cpython-310.pyc differ diff --git a/.venv/lib/python3.10/site-packages/gradio/__pycache__/context.cpython-310.pyc b/.venv/lib/python3.10/site-packages/gradio/__pycache__/context.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7d137b037fca8826c7f35b6a301d236077b3ece4 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/__pycache__/context.cpython-310.pyc differ diff --git a/.venv/lib/python3.10/site-packages/gradio/__pycache__/data_classes.cpython-310.pyc b/.venv/lib/python3.10/site-packages/gradio/__pycache__/data_classes.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4babe4b94bfd9b413ea3fd12c65ed713ad576434 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/__pycache__/data_classes.cpython-310.pyc differ diff --git a/.venv/lib/python3.10/site-packages/gradio/__pycache__/events.cpython-310.pyc b/.venv/lib/python3.10/site-packages/gradio/__pycache__/events.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0f343f4027410383ae9b5337323b3cd7284054a4 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/__pycache__/events.cpython-310.pyc differ diff --git a/.venv/lib/python3.10/site-packages/gradio/__pycache__/exceptions.cpython-310.pyc b/.venv/lib/python3.10/site-packages/gradio/__pycache__/exceptions.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5253fb84c0c9ffd9f28da68c0daf6ea54dbf6f93 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/__pycache__/exceptions.cpython-310.pyc differ diff --git a/.venv/lib/python3.10/site-packages/gradio/__pycache__/external.cpython-310.pyc b/.venv/lib/python3.10/site-packages/gradio/__pycache__/external.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..560b496e2c39f8b3348ba94c38d220cce04b58ea Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/__pycache__/external.cpython-310.pyc differ diff --git a/.venv/lib/python3.10/site-packages/gradio/__pycache__/external_utils.cpython-310.pyc b/.venv/lib/python3.10/site-packages/gradio/__pycache__/external_utils.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b8a1e3568abca8393efd70db1ed7e61ef7e6d79a Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/__pycache__/external_utils.cpython-310.pyc differ diff --git a/.venv/lib/python3.10/site-packages/gradio/__pycache__/flagging.cpython-310.pyc b/.venv/lib/python3.10/site-packages/gradio/__pycache__/flagging.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f818fd3ac91323b84ea0efebe364ad59f88ee99d Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/__pycache__/flagging.cpython-310.pyc differ diff --git a/.venv/lib/python3.10/site-packages/gradio/__pycache__/helpers.cpython-310.pyc b/.venv/lib/python3.10/site-packages/gradio/__pycache__/helpers.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..17f387e1946f26551f45183c01ae963b474c30a4 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/__pycache__/helpers.cpython-310.pyc differ diff --git a/.venv/lib/python3.10/site-packages/gradio/__pycache__/i18n.cpython-310.pyc b/.venv/lib/python3.10/site-packages/gradio/__pycache__/i18n.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3c86d4c983d941b7bfc3ba8d0340d6e0621887b9 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/__pycache__/i18n.cpython-310.pyc differ diff --git a/.venv/lib/python3.10/site-packages/gradio/__pycache__/image_utils.cpython-310.pyc b/.venv/lib/python3.10/site-packages/gradio/__pycache__/image_utils.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b49df90e481516bf41e242f37faf52bf858de697 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/__pycache__/image_utils.cpython-310.pyc differ diff --git a/.venv/lib/python3.10/site-packages/gradio/__pycache__/interface.cpython-310.pyc b/.venv/lib/python3.10/site-packages/gradio/__pycache__/interface.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7b69ab4923b5b9fc6a9dadf5990db084ee7eef68 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/__pycache__/interface.cpython-310.pyc differ diff --git a/.venv/lib/python3.10/site-packages/gradio/__pycache__/ipython_ext.cpython-310.pyc b/.venv/lib/python3.10/site-packages/gradio/__pycache__/ipython_ext.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..94f547bd64f87ae6b87ae7af6e472a72d0096f55 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/__pycache__/ipython_ext.cpython-310.pyc differ diff --git a/.venv/lib/python3.10/site-packages/gradio/__pycache__/mcp.cpython-310.pyc b/.venv/lib/python3.10/site-packages/gradio/__pycache__/mcp.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..71c3298c6b2823c23d73351b896ca3be8562e74b Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/__pycache__/mcp.cpython-310.pyc differ diff --git a/.venv/lib/python3.10/site-packages/gradio/__pycache__/media.cpython-310.pyc b/.venv/lib/python3.10/site-packages/gradio/__pycache__/media.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..47764d67fbb6b8a1f57d6b56aee030d2b9999bf3 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/__pycache__/media.cpython-310.pyc differ diff --git a/.venv/lib/python3.10/site-packages/gradio/__pycache__/networking.cpython-310.pyc b/.venv/lib/python3.10/site-packages/gradio/__pycache__/networking.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4cf67beef1689464ad1eca66ee2c66371c99c0dc Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/__pycache__/networking.cpython-310.pyc differ diff --git a/.venv/lib/python3.10/site-packages/gradio/__pycache__/node_server.cpython-310.pyc b/.venv/lib/python3.10/site-packages/gradio/__pycache__/node_server.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..86b101e9473dbe621e1f57129fa0ca0f28d07d23 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/__pycache__/node_server.cpython-310.pyc differ diff --git a/.venv/lib/python3.10/site-packages/gradio/__pycache__/oauth.cpython-310.pyc b/.venv/lib/python3.10/site-packages/gradio/__pycache__/oauth.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..86bf843319701c04224f0e20e753f85c05191119 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/__pycache__/oauth.cpython-310.pyc differ diff --git a/.venv/lib/python3.10/site-packages/gradio/__pycache__/pipelines.cpython-310.pyc b/.venv/lib/python3.10/site-packages/gradio/__pycache__/pipelines.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..70202606bc6d31ef0b855935f83e3e769758842f Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/__pycache__/pipelines.cpython-310.pyc differ diff --git a/.venv/lib/python3.10/site-packages/gradio/__pycache__/pipelines_utils.cpython-310.pyc b/.venv/lib/python3.10/site-packages/gradio/__pycache__/pipelines_utils.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..4c4985e60f448e3dde14c5b12b1bcfc8fb480b27 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/__pycache__/pipelines_utils.cpython-310.pyc differ diff --git a/.venv/lib/python3.10/site-packages/gradio/__pycache__/processing_utils.cpython-310.pyc b/.venv/lib/python3.10/site-packages/gradio/__pycache__/processing_utils.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0dd59da4d606a3621c3f3d713eb9ae7ac8e49c5b Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/__pycache__/processing_utils.cpython-310.pyc differ diff --git a/.venv/lib/python3.10/site-packages/gradio/__pycache__/profiling.cpython-310.pyc b/.venv/lib/python3.10/site-packages/gradio/__pycache__/profiling.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0eaacfd2cd4270f97de6a5ee4cb5d6c102affd98 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/__pycache__/profiling.cpython-310.pyc differ diff --git a/.venv/lib/python3.10/site-packages/gradio/__pycache__/queueing.cpython-310.pyc b/.venv/lib/python3.10/site-packages/gradio/__pycache__/queueing.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7ff780cac4c4967d893d7f0f5bcac3290172cf66 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/__pycache__/queueing.cpython-310.pyc differ diff --git a/.venv/lib/python3.10/site-packages/gradio/__pycache__/ranged_response.cpython-310.pyc b/.venv/lib/python3.10/site-packages/gradio/__pycache__/ranged_response.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9c88227743f8df3bb51b7338519bdc553d20dd12 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/__pycache__/ranged_response.cpython-310.pyc differ diff --git a/.venv/lib/python3.10/site-packages/gradio/__pycache__/renderable.cpython-310.pyc b/.venv/lib/python3.10/site-packages/gradio/__pycache__/renderable.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c0949e6ab89029d38383c148482fe4d0d82eb636 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/__pycache__/renderable.cpython-310.pyc differ diff --git a/.venv/lib/python3.10/site-packages/gradio/__pycache__/route_utils.cpython-310.pyc b/.venv/lib/python3.10/site-packages/gradio/__pycache__/route_utils.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8789aa7dc543f259637cbc38f62d9915efe18d80 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/__pycache__/route_utils.cpython-310.pyc differ diff --git a/.venv/lib/python3.10/site-packages/gradio/__pycache__/routes.cpython-310.pyc b/.venv/lib/python3.10/site-packages/gradio/__pycache__/routes.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c821af0321392feee032da2a1be3ccc7bfe1201a Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/__pycache__/routes.cpython-310.pyc differ diff --git a/.venv/lib/python3.10/site-packages/gradio/__pycache__/screen_recording_utils.cpython-310.pyc b/.venv/lib/python3.10/site-packages/gradio/__pycache__/screen_recording_utils.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ffec2a1b76a117814197ed7653d4bf3e2fec9ea4 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/__pycache__/screen_recording_utils.cpython-310.pyc differ diff --git a/.venv/lib/python3.10/site-packages/gradio/__pycache__/server.cpython-310.pyc b/.venv/lib/python3.10/site-packages/gradio/__pycache__/server.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..06f65de8aed137db1874a809ec9593a0731fcd5b Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/__pycache__/server.cpython-310.pyc differ diff --git a/.venv/lib/python3.10/site-packages/gradio/__pycache__/server_messages.cpython-310.pyc b/.venv/lib/python3.10/site-packages/gradio/__pycache__/server_messages.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5c474ff3e11fb619dda1ebe13f0e3090e58f8848 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/__pycache__/server_messages.cpython-310.pyc differ diff --git a/.venv/lib/python3.10/site-packages/gradio/__pycache__/state_holder.cpython-310.pyc b/.venv/lib/python3.10/site-packages/gradio/__pycache__/state_holder.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..72c247b3a82ba06a72a3ab7f260ae28e1c239730 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/__pycache__/state_holder.cpython-310.pyc differ diff --git a/.venv/lib/python3.10/site-packages/gradio/__pycache__/templates.cpython-310.pyc b/.venv/lib/python3.10/site-packages/gradio/__pycache__/templates.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..03479119af5dcc05352e0668eee9942ef5266e3f Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/__pycache__/templates.cpython-310.pyc differ diff --git a/.venv/lib/python3.10/site-packages/gradio/__pycache__/tunneling.cpython-310.pyc b/.venv/lib/python3.10/site-packages/gradio/__pycache__/tunneling.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ab5824d274566de9c794b8ea6f0ed543268d3eb4 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/__pycache__/tunneling.cpython-310.pyc differ diff --git a/.venv/lib/python3.10/site-packages/gradio/__pycache__/utils.cpython-310.pyc b/.venv/lib/python3.10/site-packages/gradio/__pycache__/utils.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d6cd8f102dd6d9a87151880aa98970ebdbd8c0d7 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/__pycache__/utils.cpython-310.pyc differ diff --git a/.venv/lib/python3.10/site-packages/gradio/__pycache__/validators.cpython-310.pyc b/.venv/lib/python3.10/site-packages/gradio/__pycache__/validators.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..bf3d744f3627803d4e4076ac6033cba63c92d9f0 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/__pycache__/validators.cpython-310.pyc differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/hooks.mjs b/.venv/lib/python3.10/site-packages/gradio/templates/hooks.mjs new file mode 100644 index 0000000000000000000000000000000000000000..6edabab048b099dc1a34956e9c65bed9fb267e6b --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/hooks.mjs @@ -0,0 +1,19 @@ +import { dirname, join } from "node:path"; +import { fileURLToPath } from "node:url"; + +const __dirname = dirname(fileURLToPath(import.meta.url)); + +export async function resolve(specifier, context, nextResolve) { + // Take an `import` or `require` specifier and resolve it to a URL. + if (specifier === "svelte/internal" || specifier === "svelte") { + return nextResolve( + join(__dirname, "frontend", "assets", "svelte", "svelte.js") + ); + } + if (specifier.startsWith("svelte/")) { + return nextResolve( + join(__dirname, "frontend", "assets", "svelte", "svelte-submodules.js") + ); + } + return nextResolve(specifier); +} diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/0.B7Jzi1GB.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/0.B7Jzi1GB.css.br new file mode 100644 index 0000000000000000000000000000000000000000..bda7636913db88f7e6493a33235cba25b820e8d6 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/0.B7Jzi1GB.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/2.Bi-4O7ql.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/2.Bi-4O7ql.css.br new file mode 100644 index 0000000000000000000000000000000000000000..7099a327b00642ab2d8a0a41a1497c37dce047f7 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/2.Bi-4O7ql.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/AltairPlot.Dp2S7wtT.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/AltairPlot.Dp2S7wtT.css.br new file mode 100644 index 0000000000000000000000000000000000000000..83941853ae9e142af9a08ece3cd151fae0da3f21 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/AltairPlot.Dp2S7wtT.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/ApiDocs.9WT6XNiq.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/ApiDocs.9WT6XNiq.css.br new file mode 100644 index 0000000000000000000000000000000000000000..24e5d06c97aeb0452188a1d50607e21fcd7a1167 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/ApiDocs.9WT6XNiq.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/ApiRecorder.CoSLrx_1.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/ApiRecorder.CoSLrx_1.css.br new file mode 100644 index 0000000000000000000000000000000000000000..dc9ae3b0e541afbae0d3225f7ee13a5c281640bf Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/ApiRecorder.CoSLrx_1.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/BokehPlot.DTqQzqHn.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/BokehPlot.DTqQzqHn.css.br new file mode 100644 index 0000000000000000000000000000000000000000..048200368c7b4c52e1f62300d351effaeea8d472 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/BokehPlot.DTqQzqHn.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Checkbox.BbySKLMz.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Checkbox.BbySKLMz.css.br new file mode 100644 index 0000000000000000000000000000000000000000..ad7855584ec1a8202151f3c8b4efd3d5e1281f09 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Checkbox.BbySKLMz.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Code.wZDUWKrz.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Code.wZDUWKrz.css.br new file mode 100644 index 0000000000000000000000000000000000000000..02ce53e9921d793bb4d513f9212fe8ba2fd63f8b --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Code.wZDUWKrz.css.br @@ -0,0 +1,2 @@ + Œ“Lý÷p.¦y‚µdrÕPP·…œ¿¢ +"Xº`¿F ͐ ÑT„¶\2TÏ'o_ô\ÌD×#t[ Óà3À+l0váҕˆʣ¯4Ò…öŒ5îÍ?ÝÕ÷eYƅ`˜­ü4 P%yé ·ÅëZ{ÂΰټW=-x£â¯6¸Ì_ïá�õÆa” \ No newline at end of file diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Dropdown.-Uz_kS2s.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Dropdown.-Uz_kS2s.css.br new file mode 100644 index 0000000000000000000000000000000000000000..a8306883f01a08afc0f6acd78fbf163d9a2158e2 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Dropdown.-Uz_kS2s.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.-V2chS2k.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.-V2chS2k.css.br new file mode 100644 index 0000000000000000000000000000000000000000..5fbf6636ca43fa32365167d1def7df87f4154880 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.-V2chS2k.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.4NTZ2aku.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.4NTZ2aku.css.br new file mode 100644 index 0000000000000000000000000000000000000000..dddecdae8284fa1f62a1fefb08e653f1a6e37334 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.4NTZ2aku.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.BG5zdIqX.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.BG5zdIqX.css.br new file mode 100644 index 0000000000000000000000000000000000000000..b23718ef76a14793f8d373aa840f56cad8f146f0 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.BG5zdIqX.css.br @@ -0,0 +1,2 @@ +‹€.gallery.svelte-s7j0w2{padding:var(--size-2)} + \ No newline at end of file diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.BIrWl-Kd.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.BIrWl-Kd.css.br new file mode 100644 index 0000000000000000000000000000000000000000..8f24393f2ba3498b19b76e57724fb27d10a3b130 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.BIrWl-Kd.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.BK-tWmkG.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.BK-tWmkG.css.br new file mode 100644 index 0000000000000000000000000000000000000000..7c04bb7065d718299348b4e31acb02480575f670 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.BK-tWmkG.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.BUUMH8K0.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.BUUMH8K0.css.br new file mode 100644 index 0000000000000000000000000000000000000000..6812c7c1b612ddfe5d844f0bc553272b4d2185c5 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.BUUMH8K0.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.BeU1J4ps.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.BeU1J4ps.css.br new file mode 100644 index 0000000000000000000000000000000000000000..39113de85e9ef339fc32dc4fa8aa5ee8b21c590c --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.BeU1J4ps.css.br @@ -0,0 +1,2 @@ + €.gallery.svelte-1by696e{padding:var(--size-1) var(--size-2)} + \ No newline at end of file diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.BlpJt4zj.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.BlpJt4zj.css.br new file mode 100644 index 0000000000000000000000000000000000000000..8e2aa2cf9e49c714362320432314527033af779c Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.BlpJt4zj.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.C7vkYQeg.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.C7vkYQeg.css.br new file mode 100644 index 0000000000000000000000000000000000000000..ff2b1f461c29509442b4a7152ac0cd823affbb4a Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.C7vkYQeg.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.CA1DPrcM.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.CA1DPrcM.css.br new file mode 100644 index 0000000000000000000000000000000000000000..705b2f80265dff804eacd1147730e20ddb735175 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.CA1DPrcM.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.CD_WZEqN.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.CD_WZEqN.css.br new file mode 100644 index 0000000000000000000000000000000000000000..ad357116e5c11bc0b758522c92e0ed5c75df164e Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.CD_WZEqN.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.CZSJmqDf.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.CZSJmqDf.css.br new file mode 100644 index 0000000000000000000000000000000000000000..df18a616bc389c65711c3f0b0ff032e440745f17 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.CZSJmqDf.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.CbN4r5yx.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.CbN4r5yx.css.br new file mode 100644 index 0000000000000000000000000000000000000000..d1a2f2a785dd61ac09407b0f6fc789e5bfea4d7a Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.CbN4r5yx.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.CgIc4GLa.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.CgIc4GLa.css.br new file mode 100644 index 0000000000000000000000000000000000000000..1ae82e383685b3d32159d973567eb042efb608c9 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.CgIc4GLa.css.br @@ -0,0 +1,2 @@ + €.gallery.svelte-11ua876{padding:var(--size-1) var(--size-2)} + \ No newline at end of file diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.Cpi22WGa.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.Cpi22WGa.css.br new file mode 100644 index 0000000000000000000000000000000000000000..64a2b56a70b29ba3cfd359a4b86a8542b6f0b41b --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.Cpi22WGa.css.br @@ -0,0 +1,2 @@ + €.gallery.svelte-164n2qi{padding:var(--size-1) var(--size-2)} + \ No newline at end of file diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.D2nbjfVb.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.D2nbjfVb.css.br new file mode 100644 index 0000000000000000000000000000000000000000..2ef1337517016a6038051d8f1451358b63306fb7 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.D2nbjfVb.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.DSMNiXnn.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.DSMNiXnn.css.br new file mode 100644 index 0000000000000000000000000000000000000000..80928a1dc01832ef9a85fea7366fcdb1ebd96f1e Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.DSMNiXnn.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.DWDv4qx4.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.DWDv4qx4.css.br new file mode 100644 index 0000000000000000000000000000000000000000..a41e23bdf672b7555f01e5f3ad5f246230852550 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.DWDv4qx4.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.Do5iR6B9.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.Do5iR6B9.css.br new file mode 100644 index 0000000000000000000000000000000000000000..eb0a35f7db6a95c8760bdb5f3518819b74d73060 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.Do5iR6B9.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.PnzFsODt.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.PnzFsODt.css.br new file mode 100644 index 0000000000000000000000000000000000000000..fcc030951148c8938743874444beaeac143446e3 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.PnzFsODt.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.QWdMqwA5.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.QWdMqwA5.css.br new file mode 100644 index 0000000000000000000000000000000000000000..6801e9dd1330461cf681f353f69cf3427a57bbcf Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.QWdMqwA5.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.RXDI_Ar6.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.RXDI_Ar6.css.br new file mode 100644 index 0000000000000000000000000000000000000000..35f493094964870657a73784bdf8d34b9a26d5c3 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.RXDI_Ar6.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.bHSd0VUC.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.bHSd0VUC.css.br new file mode 100644 index 0000000000000000000000000000000000000000..602d3cea0460fa8d54a678e05fcf7186d207d585 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.bHSd0VUC.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.guFL0Sj1.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.guFL0Sj1.css.br new file mode 100644 index 0000000000000000000000000000000000000000..ceda07db347012cb4ca9aa095078dc2bd19238cb Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.guFL0Sj1.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.jts6u4zx.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.jts6u4zx.css.br new file mode 100644 index 0000000000000000000000000000000000000000..5418b42e705ad8af409547ea9a635c514d6fdeb6 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Example.jts6u4zx.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/FileUpload.BDarcd0p.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/FileUpload.BDarcd0p.css.br new file mode 100644 index 0000000000000000000000000000000000000000..2cb84bab38a4d57f7cd13e3d88aa1c15590cabc9 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/FileUpload.BDarcd0p.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Gallery.D2TV53eD.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Gallery.D2TV53eD.css.br new file mode 100644 index 0000000000000000000000000000000000000000..3cf4bef8c41f1a3355ee097a0c594a3597c4778e Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Gallery.D2TV53eD.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/HTML.CCquOCqP.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/HTML.CCquOCqP.css.br new file mode 100644 index 0000000000000000000000000000000000000000..e8cd08d598049aa57ae4d264c4ef44c61ecd2ac9 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/HTML.CCquOCqP.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/ImageUploader.Dpdel1G9.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/ImageUploader.Dpdel1G9.css.br new file mode 100644 index 0000000000000000000000000000000000000000..c9e4bfbd6b400e5e7e9f062ff9d6e6373fa2f3dd Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/ImageUploader.Dpdel1G9.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.-e-Yppt2.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.-e-Yppt2.css.br new file mode 100644 index 0000000000000000000000000000000000000000..e00067fc1c8d44defeeb3a4ba1affe482422573f Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.-e-Yppt2.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.3FqI08xq.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.3FqI08xq.css.br new file mode 100644 index 0000000000000000000000000000000000000000..1c85be496d7f7302c5aaf29045c5a731a239c76c Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.3FqI08xq.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.5RnUXY9l.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.5RnUXY9l.css.br new file mode 100644 index 0000000000000000000000000000000000000000..b72d7129db86851412c9eb460d22e49611d7d615 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.5RnUXY9l.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.B80bIer5.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.B80bIer5.css.br new file mode 100644 index 0000000000000000000000000000000000000000..88319145a9399c28d3122036616357330a56edf3 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.B80bIer5.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.BPmhhU8b.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.BPmhhU8b.css.br new file mode 100644 index 0000000000000000000000000000000000000000..cc547af2cd18d723bd86a0db476e0030b51d23e4 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.BPmhhU8b.css.br @@ -0,0 +1,2 @@ +L dp^_Jð¥Ô!Zބœí>ØK¶/º&Y·9Ŧ�¢87� Vºtô“Õ_�¼Ûr¦&W³´ù J=â² F†*S©èõ +ùËîDó�ü#f;�oÈžKœÕûJjÈwÐxE—_~]ØE�Áâ—ñ´Ú[ ¡´ ›ßlao7ÈÇv¡7¬Da–?ŸmאÞô \ No newline at end of file diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.BV5kouZe.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.BV5kouZe.css.br new file mode 100644 index 0000000000000000000000000000000000000000..84123a55f73bb11a4753859b5d904791e9e80be7 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.BV5kouZe.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.BZR-ZeTY.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.BZR-ZeTY.css.br new file mode 100644 index 0000000000000000000000000000000000000000..de15ebe3f1fd423091590dbb3b56e93801217907 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.BZR-ZeTY.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.BiPluRv8.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.BiPluRv8.css.br new file mode 100644 index 0000000000000000000000000000000000000000..bd53fe1e794af833b0b5b9a0d98b8683da4a1352 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.BiPluRv8.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.BijVyRsD.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.BijVyRsD.css.br new file mode 100644 index 0000000000000000000000000000000000000000..5014cc926d3895754cbd2f8e37b7136b36928837 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.BijVyRsD.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.Bn0zLMEj.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.Bn0zLMEj.css.br new file mode 100644 index 0000000000000000000000000000000000000000..7ecb843ccd36a6a0253969c511777436d7f69d0d Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.Bn0zLMEj.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.BpcA6Nec.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.BpcA6Nec.css.br new file mode 100644 index 0000000000000000000000000000000000000000..2aea2f9497d9e16c210f1f5a057376371a0b2e2e Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.BpcA6Nec.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.CEhk7M0s.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.CEhk7M0s.css.br new file mode 100644 index 0000000000000000000000000000000000000000..b527c5cfb868c76a77a358175a03f0306ab02f3b Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.CEhk7M0s.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.CFFjrWXb.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.CFFjrWXb.css.br new file mode 100644 index 0000000000000000000000000000000000000000..94d4163fb279aaac952923ea535f558b799888c7 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.CFFjrWXb.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.CTDY4JGM.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.CTDY4JGM.css.br new file mode 100644 index 0000000000000000000000000000000000000000..ce0e959abcffe1d75722a71b5be8065d559eeb0b Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.CTDY4JGM.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.Ci-0XPiC.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.Ci-0XPiC.css.br new file mode 100644 index 0000000000000000000000000000000000000000..2dd765291c82618fda8db0c5d4d8c6894792633d Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.Ci-0XPiC.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.CioP8lnm.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.CioP8lnm.css.br new file mode 100644 index 0000000000000000000000000000000000000000..74fc58314ff37aed3219d6249f30d15c3003830d Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.CioP8lnm.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.CvyxbOJU.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.CvyxbOJU.css.br new file mode 100644 index 0000000000000000000000000000000000000000..280714d34b3d179dfc05aad66258838f4a6961a1 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.CvyxbOJU.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.CwinLc1f.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.CwinLc1f.css.br new file mode 100644 index 0000000000000000000000000000000000000000..aa5f4c92f1afa679b583e3a64c04179baddd538c Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.CwinLc1f.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.DHz84ApK.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.DHz84ApK.css.br new file mode 100644 index 0000000000000000000000000000000000000000..438bc1b1ca55d58445b1d26175c7993e3b49bc60 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.DHz84ApK.css.br @@ -0,0 +1 @@ +W Œ“e~µ’µ¹mí‡{(pÑm’¸@xzS1©ìËS°¼…Ü6³—4› DÛ÷÷SñCRµMv›U<Ÿj“ÈÉô£}ÒÁ`?óß6læ¶`„›¿®˜CÆö±šPüޖkÑ@Êâe\éøs쉠ú-1C·X|”�h¼Ȉ‹÷¬¯*V¿qàUÌôJ…d‰td›åôñÚI÷Ð \ No newline at end of file diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.DIMxqS5W.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.DIMxqS5W.css.br new file mode 100644 index 0000000000000000000000000000000000000000..a5aa065d79c4a81f70fd9c7e49f7f51cb9e7e093 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.DIMxqS5W.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.DKIzZVIo.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.DKIzZVIo.css.br new file mode 100644 index 0000000000000000000000000000000000000000..8333172317376f6e1959f61aa3175f88498a03b6 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.DKIzZVIo.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.DMaj38-p.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.DMaj38-p.css.br new file mode 100644 index 0000000000000000000000000000000000000000..6532f5f078331af618c57b99d02fe3c679ad0656 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.DMaj38-p.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.DP8ihX8q.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.DP8ihX8q.css.br new file mode 100644 index 0000000000000000000000000000000000000000..6fa4792104b26a8313a7ad2022b6089b2c828083 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.DP8ihX8q.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.DPPYlFJP.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.DPPYlFJP.css.br new file mode 100644 index 0000000000000000000000000000000000000000..e430fe1206d20b47956483d718d07fa9c5634485 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.DPPYlFJP.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.DffZfiSz.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.DffZfiSz.css.br new file mode 100644 index 0000000000000000000000000000000000000000..e71467cc1a443c009b2d7d709913b47fcfcab186 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.DffZfiSz.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.Dg9ut_M4.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.Dg9ut_M4.css.br new file mode 100644 index 0000000000000000000000000000000000000000..3dc1d5e394e6827394a22d529c4146745dac3e98 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.Dg9ut_M4.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.DpH7sR6h.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.DpH7sR6h.css.br new file mode 100644 index 0000000000000000000000000000000000000000..e7bd71dcf6d661b8606412c21250d6d202a026d3 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.DpH7sR6h.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.Ds3FAhOq.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.Ds3FAhOq.css.br new file mode 100644 index 0000000000000000000000000000000000000000..9a265b89a17b10142d0f23ffc531e3abe4345750 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.Ds3FAhOq.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.EYuwUe6R.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.EYuwUe6R.css.br new file mode 100644 index 0000000000000000000000000000000000000000..da6c1f820c3b84c6b6ce23b47c167559d7706e8e Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.EYuwUe6R.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.Xhg3Ucw_.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.Xhg3Ucw_.css.br new file mode 100644 index 0000000000000000000000000000000000000000..0600e2f13538add440e56094ada367afeccddb4a Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.Xhg3Ucw_.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.cY7HT1Ac.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.cY7HT1Ac.css.br new file mode 100644 index 0000000000000000000000000000000000000000..23e18b206c41cecb30766ab0e5211fe1f5666bed Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.cY7HT1Ac.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.fPjHowzi.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.fPjHowzi.css.br new file mode 100644 index 0000000000000000000000000000000000000000..cffada6ed4174227d998917770c866c1b43bedbd Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.fPjHowzi.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.pc9XuoeO.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.pc9XuoeO.css.br new file mode 100644 index 0000000000000000000000000000000000000000..ac4ecb4b69a61fa2216fcac053e29bc88f3669e1 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Index.pc9XuoeO.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/JSON.BXT8NU56.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/JSON.BXT8NU56.css.br new file mode 100644 index 0000000000000000000000000000000000000000..8fb68b8d2a6d77aeb5547bc413e59e4161685661 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/JSON.BXT8NU56.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_AMS-Regular.BQhdFMY1.woff2 b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_AMS-Regular.BQhdFMY1.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..0acaaff03d4bb7606de02a827aeee338e5a86910 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_AMS-Regular.BQhdFMY1.woff2 differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_AMS-Regular.DMm9YOAa.woff b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_AMS-Regular.DMm9YOAa.woff new file mode 100644 index 0000000000000000000000000000000000000000..b804d7b33a3fa5b2587d2d1d55006aed678e3eb2 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_AMS-Regular.DMm9YOAa.woff differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_AMS-Regular.DRggAlZN.ttf b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_AMS-Regular.DRggAlZN.ttf new file mode 100644 index 0000000000000000000000000000000000000000..c6f9a5e7c03f9e64e9c7b4773a8e37ade8eaf406 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_AMS-Regular.DRggAlZN.ttf differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Caligraphic-Bold.ATXxdsX0.ttf b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Caligraphic-Bold.ATXxdsX0.ttf new file mode 100644 index 0000000000000000000000000000000000000000..9ff4a5e04421e5107f74c28e27354e0b2a4e7ef8 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Caligraphic-Bold.ATXxdsX0.ttf differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Caligraphic-Bold.BEiXGLvX.woff b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Caligraphic-Bold.BEiXGLvX.woff new file mode 100644 index 0000000000000000000000000000000000000000..9759710d1d3e16eb10012d56babb73f2479ba9f0 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Caligraphic-Bold.BEiXGLvX.woff differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Caligraphic-Bold.Dq_IR9rO.woff2 b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Caligraphic-Bold.Dq_IR9rO.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..f390922eceffe1f6dfb81a3dc086a92d98171b02 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Caligraphic-Bold.Dq_IR9rO.woff2 differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Caligraphic-Regular.CTRA-rTL.woff b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Caligraphic-Regular.CTRA-rTL.woff new file mode 100644 index 0000000000000000000000000000000000000000..9bdd534fd2beb9b878f0219da9d63ffba56677e2 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Caligraphic-Regular.CTRA-rTL.woff differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Caligraphic-Regular.Di6jR-x-.woff2 b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Caligraphic-Regular.Di6jR-x-.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..75344a1f98e37e2c631e178065854c3a81fb842f Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Caligraphic-Regular.Di6jR-x-.woff2 differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Caligraphic-Regular.wX97UBjC.ttf b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Caligraphic-Regular.wX97UBjC.ttf new file mode 100644 index 0000000000000000000000000000000000000000..f522294ff0f3f8c52dfdaef7ebfaa06ebfcfaabf Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Caligraphic-Regular.wX97UBjC.ttf differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Fraktur-Bold.BdnERNNW.ttf b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Fraktur-Bold.BdnERNNW.ttf new file mode 100644 index 0000000000000000000000000000000000000000..4e98259c3b54076d684bf3459baeaeae8dbce97a Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Fraktur-Bold.BdnERNNW.ttf differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Fraktur-Bold.BsDP51OF.woff b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Fraktur-Bold.BsDP51OF.woff new file mode 100644 index 0000000000000000000000000000000000000000..e7730f66275c87c28f26530d89264cffecf90be0 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Fraktur-Bold.BsDP51OF.woff differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Fraktur-Bold.CL6g_b3V.woff2 b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Fraktur-Bold.CL6g_b3V.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..395f28beac23c7b0f7f3a1e714bd8dac253dd3bc Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Fraktur-Bold.CL6g_b3V.woff2 differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Fraktur-Regular.CB_wures.ttf b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Fraktur-Regular.CB_wures.ttf new file mode 100644 index 0000000000000000000000000000000000000000..b8461b275fae76efd0d21fd0f1aaa696a5b10f9a Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Fraktur-Regular.CB_wures.ttf differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Fraktur-Regular.CTYiF6lA.woff2 b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Fraktur-Regular.CTYiF6lA.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..735f6948d63c8cc7f8233735bb9c8d843c83d804 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Fraktur-Regular.CTYiF6lA.woff2 differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Fraktur-Regular.Dxdc4cR9.woff b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Fraktur-Regular.Dxdc4cR9.woff new file mode 100644 index 0000000000000000000000000000000000000000..acab069f90b6fe6301a004e6f8beaf6a0db48bce Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Fraktur-Regular.Dxdc4cR9.woff differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Main-Bold.Cx986IdX.woff2 b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Main-Bold.Cx986IdX.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..ab2ad21da6fbe6c171bb869240954d0ead8f68fd Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Main-Bold.Cx986IdX.woff2 differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Main-Bold.Jm3AIy58.woff b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Main-Bold.Jm3AIy58.woff new file mode 100644 index 0000000000000000000000000000000000000000..f38136ac1cc2dcdc9d9b10b8521487468b1f768c Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Main-Bold.Jm3AIy58.woff differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Main-Bold.waoOVXN0.ttf b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Main-Bold.waoOVXN0.ttf new file mode 100644 index 0000000000000000000000000000000000000000..4060e627dc341c1854260cbc3f7386e222a4d297 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Main-Bold.waoOVXN0.ttf differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Main-BoldItalic.DxDJ3AOS.woff2 b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Main-BoldItalic.DxDJ3AOS.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..5931794de4a2a485fa70099bf2659b145976d043 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Main-BoldItalic.DxDJ3AOS.woff2 differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Main-BoldItalic.DzxPMmG6.ttf b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Main-BoldItalic.DzxPMmG6.ttf new file mode 100644 index 0000000000000000000000000000000000000000..dc007977ee709a236d9e82719cf7d4e5577a81b9 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Main-BoldItalic.DzxPMmG6.ttf differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Main-BoldItalic.SpSLRI95.woff b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Main-BoldItalic.SpSLRI95.woff new file mode 100644 index 0000000000000000000000000000000000000000..67807b0bd4f867853271f5917fb3adf377f93f53 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Main-BoldItalic.SpSLRI95.woff differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Main-Italic.3WenGoN9.ttf b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Main-Italic.3WenGoN9.ttf new file mode 100644 index 0000000000000000000000000000000000000000..0e9b0f354ad460202bba554359f5adcc8da666b7 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Main-Italic.3WenGoN9.ttf differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Main-Italic.BMLOBm91.woff b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Main-Italic.BMLOBm91.woff new file mode 100644 index 0000000000000000000000000000000000000000..6f43b594b6c1d863a0e3f93b001f8dd503316464 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Main-Italic.BMLOBm91.woff differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Main-Italic.NWA7e6Wa.woff2 b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Main-Italic.NWA7e6Wa.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..b50920e138807f385d0b0359f4f0f09891f18406 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Main-Italic.NWA7e6Wa.woff2 differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Main-Regular.B22Nviop.woff2 b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Main-Regular.B22Nviop.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..eb24a7ba282b03d830fa6c63ee897d92a5188736 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Main-Regular.B22Nviop.woff2 differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Main-Regular.Dr94JaBh.woff b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Main-Regular.Dr94JaBh.woff new file mode 100644 index 0000000000000000000000000000000000000000..21f5812968c42392a3eaea9b0c6320870b6b8b38 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Main-Regular.Dr94JaBh.woff differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Main-Regular.ypZvNtVU.ttf b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Main-Regular.ypZvNtVU.ttf new file mode 100644 index 0000000000000000000000000000000000000000..dd45e1ed2e18b32c516d9b481ebed3cb8bffa711 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Main-Regular.ypZvNtVU.ttf differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Math-BoldItalic.B3XSjfu4.ttf b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Math-BoldItalic.B3XSjfu4.ttf new file mode 100644 index 0000000000000000000000000000000000000000..728ce7a1e2cb689df32c3a6c26e1bd072dcf2acb Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Math-BoldItalic.B3XSjfu4.ttf differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Math-BoldItalic.CZnvNsCZ.woff2 b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Math-BoldItalic.CZnvNsCZ.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..29657023adc09956249f6295746c8ce4469b50d3 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Math-BoldItalic.CZnvNsCZ.woff2 differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Math-BoldItalic.iY-2wyZ7.woff b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Math-BoldItalic.iY-2wyZ7.woff new file mode 100644 index 0000000000000000000000000000000000000000..0ae390d74c9f665cf8b1e5ea5483395da7513444 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Math-BoldItalic.iY-2wyZ7.woff differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Math-Italic.DA0__PXp.woff b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Math-Italic.DA0__PXp.woff new file mode 100644 index 0000000000000000000000000000000000000000..eb5159d4c1ca83fb92b3190223698427df0e010c Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Math-Italic.DA0__PXp.woff differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Math-Italic.flOr_0UB.ttf b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Math-Italic.flOr_0UB.ttf new file mode 100644 index 0000000000000000000000000000000000000000..70d559b4e937ca1b805eb39f544cbebe3c58ca6f Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Math-Italic.flOr_0UB.ttf differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Math-Italic.t53AETM-.woff2 b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Math-Italic.t53AETM-.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..215c143fd7805a5c2b222bd7892a1a2b09610020 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Math-Italic.t53AETM-.woff2 differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_SansSerif-Bold.CFMepnvq.ttf b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_SansSerif-Bold.CFMepnvq.ttf new file mode 100644 index 0000000000000000000000000000000000000000..2f65a8a3a6d3628d11ea9c26c9077cef672fe427 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_SansSerif-Bold.CFMepnvq.ttf differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_SansSerif-Bold.D1sUS0GD.woff2 b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_SansSerif-Bold.D1sUS0GD.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..cfaa3bda59246b49e94298478d6de3b3208066c8 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_SansSerif-Bold.D1sUS0GD.woff2 differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_SansSerif-Bold.DbIhKOiC.woff b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_SansSerif-Bold.DbIhKOiC.woff new file mode 100644 index 0000000000000000000000000000000000000000..8d47c02d9408d34b2a9d566c0fe0d42bf82fb735 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_SansSerif-Bold.DbIhKOiC.woff differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_SansSerif-Italic.C3H0VqGB.woff2 b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_SansSerif-Italic.C3H0VqGB.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..349c06dc609f896392fd5bc8b364d3bc3efc9330 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_SansSerif-Italic.C3H0VqGB.woff2 differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_SansSerif-Italic.DN2j7dab.woff b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_SansSerif-Italic.DN2j7dab.woff new file mode 100644 index 0000000000000000000000000000000000000000..7e02df963621a5e26d53d510f0b4992eebde1c60 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_SansSerif-Italic.DN2j7dab.woff differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_SansSerif-Italic.YYjJ1zSn.ttf b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_SansSerif-Italic.YYjJ1zSn.ttf new file mode 100644 index 0000000000000000000000000000000000000000..d5850df98ec19de2eee9ff922ef59586efe471d0 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_SansSerif-Italic.YYjJ1zSn.ttf differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_SansSerif-Regular.BNo7hRIc.ttf b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_SansSerif-Regular.BNo7hRIc.ttf new file mode 100644 index 0000000000000000000000000000000000000000..537279f6bd2184ed32f1a5168850609147d58ee6 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_SansSerif-Regular.BNo7hRIc.ttf differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_SansSerif-Regular.CS6fqUqJ.woff b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_SansSerif-Regular.CS6fqUqJ.woff new file mode 100644 index 0000000000000000000000000000000000000000..31b84829b42edae20d0148eeec0d922dad2108c4 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_SansSerif-Regular.CS6fqUqJ.woff differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_SansSerif-Regular.DDBCnlJ7.woff2 b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_SansSerif-Regular.DDBCnlJ7.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..a90eea85f6f7bded69ff5d40114447a6d8b48cfe Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_SansSerif-Regular.DDBCnlJ7.woff2 differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Script-Regular.C5JkGWo-.ttf b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Script-Regular.C5JkGWo-.ttf new file mode 100644 index 0000000000000000000000000000000000000000..fd679bf374af72f2a183b97b40c9c7e9e51fbe5e Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Script-Regular.C5JkGWo-.ttf differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Script-Regular.D3wIWfF6.woff2 b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Script-Regular.D3wIWfF6.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..b3048fc115681ee6c1bc86b0aa158cfbbf59daa3 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Script-Regular.D3wIWfF6.woff2 differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Script-Regular.D5yQViql.woff b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Script-Regular.D5yQViql.woff new file mode 100644 index 0000000000000000000000000000000000000000..0e7da821eee0dd05a0a6f0b16c2c1345dc573a84 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Script-Regular.D5yQViql.woff differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Size1-Regular.C195tn64.woff b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Size1-Regular.C195tn64.woff new file mode 100644 index 0000000000000000000000000000000000000000..7f292d91184f257054ef77cc1cd3443db757c9cc Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Size1-Regular.C195tn64.woff differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Size1-Regular.Dbsnue_I.ttf b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Size1-Regular.Dbsnue_I.ttf new file mode 100644 index 0000000000000000000000000000000000000000..871fd7d19d8658f64d8696ed9cdfc82c821ed76d Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Size1-Regular.Dbsnue_I.ttf differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Size1-Regular.mCD8mA8B.woff2 b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Size1-Regular.mCD8mA8B.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..c5a8462fbfe2c39a7c1857b9e296e62500a8a8a5 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Size1-Regular.mCD8mA8B.woff2 differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Size2-Regular.B7gKUWhC.ttf b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Size2-Regular.B7gKUWhC.ttf new file mode 100644 index 0000000000000000000000000000000000000000..7a212caf91c0007e826fee2d622bf48acbd30dde Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Size2-Regular.B7gKUWhC.ttf differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Size2-Regular.Dy4dx90m.woff2 b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Size2-Regular.Dy4dx90m.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..e1bccfe2403a4ed770c1697ae7c15b9e1cd9bc4e Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Size2-Regular.Dy4dx90m.woff2 differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Size2-Regular.oD1tc_U0.woff b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Size2-Regular.oD1tc_U0.woff new file mode 100644 index 0000000000000000000000000000000000000000..d241d9be2d317f7b39b401d96c8b18836acea0fa Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Size2-Regular.oD1tc_U0.woff differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Size3-Regular.CTq5MqoE.woff b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Size3-Regular.CTq5MqoE.woff new file mode 100644 index 0000000000000000000000000000000000000000..e6e9b658dcf1cd031ac82b6b8f312444c55d4fc0 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Size3-Regular.CTq5MqoE.woff differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Size3-Regular.DgpXs0kz.ttf b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Size3-Regular.DgpXs0kz.ttf new file mode 100644 index 0000000000000000000000000000000000000000..00bff3495fa9d2f98c1c9ce436add6a1bcfe87fb Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Size3-Regular.DgpXs0kz.ttf differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Size4-Regular.BF-4gkZK.woff b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Size4-Regular.BF-4gkZK.woff new file mode 100644 index 0000000000000000000000000000000000000000..e1ec5457664f438ce5a1cc6dd8409bf60ca7804b Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Size4-Regular.BF-4gkZK.woff differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Size4-Regular.DWFBv043.ttf b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Size4-Regular.DWFBv043.ttf new file mode 100644 index 0000000000000000000000000000000000000000..74f08921f00f71f413ca42c9d1c90202e672ef38 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Size4-Regular.DWFBv043.ttf differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Size4-Regular.Dl5lxZxV.woff2 b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Size4-Regular.Dl5lxZxV.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..680c13085076a2f6c5a7e695935ec3f21cddb65f Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Size4-Regular.Dl5lxZxV.woff2 differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Typewriter-Regular.C0xS9mPB.woff b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Typewriter-Regular.C0xS9mPB.woff new file mode 100644 index 0000000000000000000000000000000000000000..2432419f28936aff53ddfa2a732d027e6a6648fd Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Typewriter-Regular.C0xS9mPB.woff differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Typewriter-Regular.CO6r4hn1.woff2 b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Typewriter-Regular.CO6r4hn1.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..771f1af705f5cef5f578b3a1e7d8eff66f9b76b0 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Typewriter-Regular.CO6r4hn1.woff2 differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Typewriter-Regular.D3Ib7_Hf.ttf b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Typewriter-Regular.D3Ib7_Hf.ttf new file mode 100644 index 0000000000000000000000000000000000000000..c83252c5714c71a3e0ec62195884167339a0129b Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/KaTeX_Typewriter-Regular.D3Ib7_Hf.ttf differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/MarkdownCode.BXBgfZng.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/MarkdownCode.BXBgfZng.css.br new file mode 100644 index 0000000000000000000000000000000000000000..122fa65caaf24cc16b66d22cb5ddbd0326fa8ff5 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/MarkdownCode.BXBgfZng.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/MatplotlibPlot.DvS6m0KD.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/MatplotlibPlot.DvS6m0KD.css.br new file mode 100644 index 0000000000000000000000000000000000000000..001306f7aa54a2e2245bfa8ba0d55476abcc15a2 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/MatplotlibPlot.DvS6m0KD.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/MinimalAudioPlayer.COky8gQS.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/MinimalAudioPlayer.COky8gQS.css.br new file mode 100644 index 0000000000000000000000000000000000000000..0ea8e35ac325d512faa6660b7edd563d8068a513 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/MinimalAudioPlayer.COky8gQS.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Model3D.CvGLqGnb.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Model3D.CvGLqGnb.css.br new file mode 100644 index 0000000000000000000000000000000000000000..d7e79ae5b24d26ed0392d475565ed3bf80b0b938 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Model3D.CvGLqGnb.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Settings.d6D2aEPz.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Settings.d6D2aEPz.css.br new file mode 100644 index 0000000000000000000000000000000000000000..fc4f4de0f5e0d127c2ce196d0bdd71d966e0ff3c Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Settings.d6D2aEPz.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/StaticAudio.aRR9yp0X.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/StaticAudio.aRR9yp0X.css.br new file mode 100644 index 0000000000000000000000000000000000000000..1e75cec90f19598325be718b1fa373cd575472d5 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/StaticAudio.aRR9yp0X.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Upload.C2I0h_eD.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Upload.C2I0h_eD.css.br new file mode 100644 index 0000000000000000000000000000000000000000..03ab1dc0616a518d8c318dcb1faf7b53ddb1ebdf Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Upload.C2I0h_eD.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Video.emdvV6JL.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Video.emdvV6JL.css.br new file mode 100644 index 0000000000000000000000000000000000000000..c9ddecdaf1d0cf2a5eaf1dc2a452c78010e2cfa7 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Video.emdvV6JL.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/VideoPreview.D-iL28o-.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/VideoPreview.D-iL28o-.css.br new file mode 100644 index 0000000000000000000000000000000000000000..969e0ce701b911dcf71fd92503127710401b8205 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/VideoPreview.D-iL28o-.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Walkthrough.CA8p9s2e.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Walkthrough.CA8p9s2e.css.br new file mode 100644 index 0000000000000000000000000000000000000000..4b4a16da43763fadbbcf88dec36f673643f31fcd Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/Walkthrough.CA8p9s2e.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/hf-logo.8sK58_pS.svg b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/hf-logo.8sK58_pS.svg new file mode 100644 index 0000000000000000000000000000000000000000..ab959d165fa5b05a953c9d1c5acc6640f9f536b8 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/hf-logo.8sK58_pS.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/hf-logo.8sK58_pS.svg.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/hf-logo.8sK58_pS.svg.br new file mode 100644 index 0000000000000000000000000000000000000000..163b5ab83c48b9f062f602189d7269b0ae81002f Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/hf-logo.8sK58_pS.svg.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/index.DEPmb5JS.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/index.DEPmb5JS.css.br new file mode 100644 index 0000000000000000000000000000000000000000..594b5334a4ab53bead0eb4300ba279ddbbbe9854 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/index.DEPmb5JS.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/index.uLojFN0n.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/index.uLojFN0n.css.br new file mode 100644 index 0000000000000000000000000000000000000000..bd3e79958730897e6af36d7fcb473320be4c17ff Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/index.uLojFN0n.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/katex.CaMC6qBC.css.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/katex.CaMC6qBC.css.br new file mode 100644 index 0000000000000000000000000000000000000000..80e0b227d47b190cdae2ada99797c227359fa4d9 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/katex.CaMC6qBC.css.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/mcp.DNm9doVd.svg b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/mcp.DNm9doVd.svg new file mode 100644 index 0000000000000000000000000000000000000000..50e023b102b42faea998ce427e90d07a2b86ec7b --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/mcp.DNm9doVd.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/mcp.DNm9doVd.svg.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/mcp.DNm9doVd.svg.br new file mode 100644 index 0000000000000000000000000000000000000000..08647c48e80cebb02c6c2c8056e8e609b6adcc9b Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/assets/mcp.DNm9doVd.svg.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/-b60-N3C.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/-b60-N3C.js.br new file mode 100644 index 0000000000000000000000000000000000000000..38641074054f2ecf1c11fe729b75ec1f6234dca9 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/-b60-N3C.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/00lIe6sK.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/00lIe6sK.js.br new file mode 100644 index 0000000000000000000000000000000000000000..a067d2e2e3b2a4c4114303d607dfad8d95455159 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/00lIe6sK.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/1ilfOl6q.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/1ilfOl6q.js.br new file mode 100644 index 0000000000000000000000000000000000000000..904ae261c19f76ddf23367d8f621a6a36d572ab0 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/1ilfOl6q.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/27W3uH83.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/27W3uH83.js.br new file mode 100644 index 0000000000000000000000000000000000000000..f27cec87c26af9a96a5c07bcf341e6c90bf4cdc5 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/27W3uH83.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/3MxHuUz8.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/3MxHuUz8.js.br new file mode 100644 index 0000000000000000000000000000000000000000..9a6d50c339bccabd8520522c44af3f84d817497e Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/3MxHuUz8.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/3aiW7tWo.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/3aiW7tWo.js.br new file mode 100644 index 0000000000000000000000000000000000000000..116440aac51c02f593ecdf3ed00c69a39a3e748a Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/3aiW7tWo.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/3k9emLuR.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/3k9emLuR.js.br new file mode 100644 index 0000000000000000000000000000000000000000..9ed45b443ebf9db4e48ea48b553ab0e732caba8e Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/3k9emLuR.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/3s8SiYgV.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/3s8SiYgV.js.br new file mode 100644 index 0000000000000000000000000000000000000000..42633e2de6363d56c9bec3c2ed4ce318924ddf1a Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/3s8SiYgV.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/4Eq9mG-1.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/4Eq9mG-1.js.br new file mode 100644 index 0000000000000000000000000000000000000000..3925d8738c6176f0c4aab92bdf75f77e8942c88e Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/4Eq9mG-1.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/4Qk4pUpT.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/4Qk4pUpT.js.br new file mode 100644 index 0000000000000000000000000000000000000000..f9da49d14a19e0dd314c4d2fd3e009ae8dea70a8 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/4Qk4pUpT.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/5B0rLSyK.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/5B0rLSyK.js.br new file mode 100644 index 0000000000000000000000000000000000000000..d535680d4097bad3d85fe888e3cbcf564eb8260d Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/5B0rLSyK.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/5a_J-Hfw.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/5a_J-Hfw.js.br new file mode 100644 index 0000000000000000000000000000000000000000..18cdd570283087b156427697a643a542b7e158df Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/5a_J-Hfw.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/5abeCoa_.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/5abeCoa_.js.br new file mode 100644 index 0000000000000000000000000000000000000000..e845d1bb13ac7b69b15015f09d3f8f23653b77a3 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/5abeCoa_.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/60p8CgYp.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/60p8CgYp.js.br new file mode 100644 index 0000000000000000000000000000000000000000..6be0ff2bbf6536e3a6920c8599101a6f407357fc Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/60p8CgYp.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/6VieYk9j.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/6VieYk9j.js.br new file mode 100644 index 0000000000000000000000000000000000000000..b0bcd2a4af9bf567c47aa91ee40711d660566aa3 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/6VieYk9j.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/6n00NsJo.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/6n00NsJo.js.br new file mode 100644 index 0000000000000000000000000000000000000000..5472027795f2921a3f4afbef3a2569d408ce9b87 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/6n00NsJo.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/6v_DO_fe.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/6v_DO_fe.js.br new file mode 100644 index 0000000000000000000000000000000000000000..0a238334f84d38619f33041200860b2d1a3f668e Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/6v_DO_fe.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/7KwX_vaQ.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/7KwX_vaQ.js.br new file mode 100644 index 0000000000000000000000000000000000000000..434c443a209fda2efad9698e1720640d9ed36351 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/7KwX_vaQ.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/7aRk7UVY.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/7aRk7UVY.js.br new file mode 100644 index 0000000000000000000000000000000000000000..ff2d19d26678f5d758d2e4ceb4e2bc40e2f76ba1 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/7aRk7UVY.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/7hBZD6he.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/7hBZD6he.js.br new file mode 100644 index 0000000000000000000000000000000000000000..2354ec6faa60a5b611fcf69c107bda05a238f9c0 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/7hBZD6he.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/7xBy1zxH.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/7xBy1zxH.js.br new file mode 100644 index 0000000000000000000000000000000000000000..3e1523106eb285c70a8cbfa458c394babd285def Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/7xBy1zxH.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/8J8KzcsV.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/8J8KzcsV.js.br new file mode 100644 index 0000000000000000000000000000000000000000..2f1a492b3a4145ef9bc2682f88a2b43b8156a838 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/8J8KzcsV.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/8X9H0VJ2.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/8X9H0VJ2.js.br new file mode 100644 index 0000000000000000000000000000000000000000..5ff1998a36c251041bde04ee142f46c89e240cf5 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/8X9H0VJ2.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/9L-n5_hz.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/9L-n5_hz.js.br new file mode 100644 index 0000000000000000000000000000000000000000..e1fba99c973d47a64b415f4bea4e8e5e05388bff Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/9L-n5_hz.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/9Qptt1yx.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/9Qptt1yx.js.br new file mode 100644 index 0000000000000000000000000000000000000000..3df291826be6b7ecacc3d2ffb20c7e04271c2b65 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/9Qptt1yx.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/9i6Inxkm.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/9i6Inxkm.js.br new file mode 100644 index 0000000000000000000000000000000000000000..b8438e43827c0be2ecea4f56069a56693f07f60e Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/9i6Inxkm.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/A96Suu-b.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/A96Suu-b.js.br new file mode 100644 index 0000000000000000000000000000000000000000..d4ac44c43073cc01110308dd24337b29060ca23a Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/A96Suu-b.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/At5Ga4l8.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/At5Ga4l8.js.br new file mode 100644 index 0000000000000000000000000000000000000000..5a8a4175cf1a3e4a8390dbadade1deabfb69da2c Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/At5Ga4l8.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B-Gbak1k.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B-Gbak1k.js.br new file mode 100644 index 0000000000000000000000000000000000000000..93e38f436ec5d420c36149103810e6534e2c1088 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B-Gbak1k.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B074oAIt.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B074oAIt.js.br new file mode 100644 index 0000000000000000000000000000000000000000..57ed69d9bcdd70aeed7628799351011dad1b7ba0 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B074oAIt.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B09eUyzN.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B09eUyzN.js.br new file mode 100644 index 0000000000000000000000000000000000000000..75fa410aa120f8ef130266c3ce7bcf5022e7e7ef Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B09eUyzN.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B0D7GQBg.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B0D7GQBg.js.br new file mode 100644 index 0000000000000000000000000000000000000000..41966f27b2161ee9e375936365ce6ffcc6f47a27 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B0D7GQBg.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B0jInBRm.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B0jInBRm.js.br new file mode 100644 index 0000000000000000000000000000000000000000..bfe62bb9537d7a8e349f504692932e12fb2e1334 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B0jInBRm.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B0lYRv1q.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B0lYRv1q.js.br new file mode 100644 index 0000000000000000000000000000000000000000..d3abea5d10f418a8ef383cc9a38d3e1cf7f2567e Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B0lYRv1q.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B1B8RKl8.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B1B8RKl8.js.br new file mode 100644 index 0000000000000000000000000000000000000000..fc43d83d110d966596a34eca06fb66a89806eeb4 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B1B8RKl8.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B32VriJw.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B32VriJw.js.br new file mode 100644 index 0000000000000000000000000000000000000000..daa95e7cc2b82d0becf00095674ed797d25dc7d2 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B32VriJw.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B3T5JeYu.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B3T5JeYu.js.br new file mode 100644 index 0000000000000000000000000000000000000000..989461ca0aade1f7198d37e58fb21ee881605063 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B3T5JeYu.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B4KNpP3D.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B4KNpP3D.js.br new file mode 100644 index 0000000000000000000000000000000000000000..78cde8aba55bd15e0e21a47f7ecd1802da2e0956 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B4KNpP3D.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B5HFKYL0.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B5HFKYL0.js.br new file mode 100644 index 0000000000000000000000000000000000000000..ce6a2efcab41cad23da0d105d89d060cc8755b37 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B5HFKYL0.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B5Idf36_.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B5Idf36_.js.br new file mode 100644 index 0000000000000000000000000000000000000000..f172cc65f32f6b20d36e3e33cb0a7ce887d903a7 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B5Idf36_.js.br @@ -0,0 +1,3 @@ +æ ä\Íþý¼Ędª'J{"úbI`MN çÍF8°)FmeÙôö÷øTmR^Ÿ+L“‚GÊ;¿y9;¦ýåù۝LONKZ| +5IMwϵ*Ï]¥1ʋaÇùÖÉïu“·;j'¼{}ñ$Òß/T†_F‹÷^æ”Ú4Ø ÑR޼Û*bíb¬¤%¨ÅRžóùÎl䑀܈¬qëh’˜ÈÐOHî ÿÆO5Jô¬¯ɓ¤FΥÂ>8ºšA�ÕFýš E…?âŠJ¸†Ҹ£D |™½¶6ñRÿ<]šä@žHp¼š3%û½ò'؊OÍD¿P‰–•tOü?Zdž3‚¶ƒeiU<ó†I&†È܆úi{O·¢"3“*Yk®° +ÐB¡–Zží9®'Ê¿?ׅÕj†ÖèÙmOù"=Z` 7(¿ãùxJÐwÆOƒÚ1ˆ¥‰/Qhô]¥ |›åAj·Ç!ÀܑaÝàäpŠ Ù>f ì…,ÁÎ ¥1Š^—b`Oÿ2$«šyÍõ{- \ No newline at end of file diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B5qTvmNr.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B5qTvmNr.js.br new file mode 100644 index 0000000000000000000000000000000000000000..b1a98259d9fbe88c2e2ccc4bf8750688423a0a80 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B5qTvmNr.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B6HlBAUa.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B6HlBAUa.js.br new file mode 100644 index 0000000000000000000000000000000000000000..323743d820fab5c83ac78e89d3a7f3278e0143a5 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B6HlBAUa.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B6gIcL3s.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B6gIcL3s.js.br new file mode 100644 index 0000000000000000000000000000000000000000..2f9262f43e8e49d72efe652402d584fd862ce22f Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B6gIcL3s.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B6wPVr8A.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B6wPVr8A.js.br new file mode 100644 index 0000000000000000000000000000000000000000..321518b388d4ea5698e4fc90116336451cb12a48 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B6wPVr8A.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B7U6vJhf.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B7U6vJhf.js.br new file mode 100644 index 0000000000000000000000000000000000000000..c1aedff0055eea06f4f24323a2c367a4bb5fd8cc Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B7U6vJhf.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B7xmWnnw.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B7xmWnnw.js.br new file mode 100644 index 0000000000000000000000000000000000000000..1d961ed1a581026906517b6f136d735376f30e90 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B7xmWnnw.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B8M4xkTS.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B8M4xkTS.js.br new file mode 100644 index 0000000000000000000000000000000000000000..e0b82731e18a5a947118e8664ae9bafbcfb403ae --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B8M4xkTS.js.br @@ -0,0 +1 @@ +~àŒÔQÍæٮéÜY&.Sթ‰“�Wbd½ÉZB»c{ÑϛÐ4ۓܘ¦á®|~²Å8+K¤7|Wøabø׺2±xK网ÂÇD“!j¹zô¦û�B<Ê|�i…îùî¨-ù€²ӊ¼)0­rwïµC_)ìl¶Ŀ©dHµ·"š tU‚ÐS¹»&Å-Õ*âŒõñÖ]6z“Ît}»W2¡å�P Û1úrò­ .@JU,mÙk¶s*Ó׈³ÙcÀ=ƒä'Æwsei@OôòûRтø]ù>¦Ј©ïJڟP�«}ÏñŸ \ No newline at end of file diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B8MD7sQb.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B8MD7sQb.js.br new file mode 100644 index 0000000000000000000000000000000000000000..7dda9815a5b272123ac1592785469deb111409a8 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B8MD7sQb.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B8UwWlCi.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B8UwWlCi.js.br new file mode 100644 index 0000000000000000000000000000000000000000..90b89b3d2f1550a9510184a420c95e107efcad0c Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B8UwWlCi.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B8qBNG_i.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B8qBNG_i.js.br new file mode 100644 index 0000000000000000000000000000000000000000..6598634634421828a8529f95cba590ba04dea520 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B8qBNG_i.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B9aGODve.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B9aGODve.js.br new file mode 100644 index 0000000000000000000000000000000000000000..6fd40c83d4b9c641862e33de2ebb260b067ae305 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B9aGODve.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B9dF0KQ_.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B9dF0KQ_.js.br new file mode 100644 index 0000000000000000000000000000000000000000..fea73c9e151f99d6afa9c9a5d21ed6473cd0030a Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B9dF0KQ_.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B9qV0nBn.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B9qV0nBn.js.br new file mode 100644 index 0000000000000000000000000000000000000000..2d8f964bfe826072c5c851cf98a408cb3f48217d Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B9qV0nBn.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B9uivgTg.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B9uivgTg.js.br new file mode 100644 index 0000000000000000000000000000000000000000..3689a0371ec1668cb3d014c025076404bbb1187e Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B9uivgTg.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BA3pE8Fz.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BA3pE8Fz.js.br new file mode 100644 index 0000000000000000000000000000000000000000..c3170cf556b0a2430ef2a4b0ca34b84cb0fcdebb Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BA3pE8Fz.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BAAOnR1r.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BAAOnR1r.js.br new file mode 100644 index 0000000000000000000000000000000000000000..5c7e4d7fb2c458f4e6e5610f59e39bf69690455a Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BAAOnR1r.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BAiiNWei.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BAiiNWei.js.br new file mode 100644 index 0000000000000000000000000000000000000000..8e7a291222920e89acc13c7f15f112e8d964ae8f Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BAiiNWei.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BBFZi04R.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BBFZi04R.js.br new file mode 100644 index 0000000000000000000000000000000000000000..815dbab1aed8c048b74364241c1aa6e2259c342b Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BBFZi04R.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BCFKokCW.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BCFKokCW.js.br new file mode 100644 index 0000000000000000000000000000000000000000..5509b172f8fa9e69f4a73cbb860911e8656f1dc4 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BCFKokCW.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BCVnUkFR.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BCVnUkFR.js.br new file mode 100644 index 0000000000000000000000000000000000000000..3e7c988984792ffc30e222b0577965d88966cafc Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BCVnUkFR.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BFN5u4wA.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BFN5u4wA.js.br new file mode 100644 index 0000000000000000000000000000000000000000..df3c8e46519cbf2167da7c98e89627f5f5130021 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BFN5u4wA.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BFe7yLck.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BFe7yLck.js.br new file mode 100644 index 0000000000000000000000000000000000000000..d5f0d4ad8d618fe8a14d75aa45f2f465b07a47f2 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BFe7yLck.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BFnohMGM.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BFnohMGM.js.br new file mode 100644 index 0000000000000000000000000000000000000000..9a997a2c70972b7ee6bd9b053fe7d9655ed97b4b Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BFnohMGM.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BG6hfq9y.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BG6hfq9y.js.br new file mode 100644 index 0000000000000000000000000000000000000000..475d475f838b605977b78acbd22b67da0e687cd5 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BG6hfq9y.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BGJfTslI.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BGJfTslI.js.br new file mode 100644 index 0000000000000000000000000000000000000000..5ed5b2b573115af722ec07036aba7af69533aed5 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BGJfTslI.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BGlgNifp.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BGlgNifp.js.br new file mode 100644 index 0000000000000000000000000000000000000000..8efff68aa198e1a8aceca1845c454260c2667340 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BGlgNifp.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BGsegGjB.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BGsegGjB.js.br new file mode 100644 index 0000000000000000000000000000000000000000..f37f57413ba969ddf74db14acd0b65a2081402c8 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BGsegGjB.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BHVzl3qK.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BHVzl3qK.js.br new file mode 100644 index 0000000000000000000000000000000000000000..9c1331d62c39fed3c23d62db9e6d2a2b5e4b8c71 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BHVzl3qK.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BHjamSBX.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BHjamSBX.js.br new file mode 100644 index 0000000000000000000000000000000000000000..60a5fdb3601b703ecd7223cd555f7b114d769ca7 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BHjamSBX.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BIEX_u-4.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BIEX_u-4.js.br new file mode 100644 index 0000000000000000000000000000000000000000..3690124691e88f58eba5becf44d82a42a364e262 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BIEX_u-4.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BIWcehAE.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BIWcehAE.js.br new file mode 100644 index 0000000000000000000000000000000000000000..8bb4e0f44884c582f2ce8c73d9c3067ba6c0b38e Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BIWcehAE.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BIXWeWY7.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BIXWeWY7.js.br new file mode 100644 index 0000000000000000000000000000000000000000..3dd9ea4f652b9fde57907b7d133dc09d952c6847 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BIXWeWY7.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BItOUrJs.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BItOUrJs.js.br new file mode 100644 index 0000000000000000000000000000000000000000..60d619679ed073ff4299f854c258269e711df8e5 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BItOUrJs.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BJ9pdN6S.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BJ9pdN6S.js.br new file mode 100644 index 0000000000000000000000000000000000000000..096fe7bf1bef5b1618d2345c71eb4e14fbcf8795 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BJ9pdN6S.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BK4LyQ-i.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BK4LyQ-i.js.br new file mode 100644 index 0000000000000000000000000000000000000000..9a9da704b8a326860fc664f4037bfb89e7d1e9af Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BK4LyQ-i.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BK4NiVcj.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BK4NiVcj.js.br new file mode 100644 index 0000000000000000000000000000000000000000..31f50df875f3446d3c21bd32378ce9f980098dce Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BK4NiVcj.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BKEG5DgP.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BKEG5DgP.js.br new file mode 100644 index 0000000000000000000000000000000000000000..854af0544236e94b35982c34e94181414a25a7e1 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BKEG5DgP.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BKHKBnF-.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BKHKBnF-.js.br new file mode 100644 index 0000000000000000000000000000000000000000..f5ec3c98330727b0e7fb4558c1ecc0f6f8f80957 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BKHKBnF-.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BKIJaAo9.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BKIJaAo9.js.br new file mode 100644 index 0000000000000000000000000000000000000000..a68d9bf2fd1a03011a8a089b5a0605f251a7a7cc Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BKIJaAo9.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BKr51Zg5.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BKr51Zg5.js.br new file mode 100644 index 0000000000000000000000000000000000000000..3eded540ac346dc1e42cc348adb5e2ce8058e807 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BKr51Zg5.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BLadtDsz.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BLadtDsz.js.br new file mode 100644 index 0000000000000000000000000000000000000000..3c7e11459a2e1ed0d8bbe91b1dd64a429a6fb10a Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BLadtDsz.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BLdaVwYA.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BLdaVwYA.js.br new file mode 100644 index 0000000000000000000000000000000000000000..62543a0e8b8069e7409126a73dc8897dad801b7d Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BLdaVwYA.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BMNcP0Km.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BMNcP0Km.js.br new file mode 100644 index 0000000000000000000000000000000000000000..d1a61449ec7ef693349c7355e313bbfbbe6b5932 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BMNcP0Km.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BNa_8hXh.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BNa_8hXh.js.br new file mode 100644 index 0000000000000000000000000000000000000000..aeb816e0dadc359cf495d05e6afb7f3a7b0e6343 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BNa_8hXh.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BOtbjF3N.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BOtbjF3N.js.br new file mode 100644 index 0000000000000000000000000000000000000000..074fdb85992d46544a310b1839b0dd002aaea69b Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BOtbjF3N.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BP1E_xKw.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BP1E_xKw.js.br new file mode 100644 index 0000000000000000000000000000000000000000..4cb5ad04e5bdb5f955e7e509d091e62143403836 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BP1E_xKw.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BPd9UbXB.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BPd9UbXB.js.br new file mode 100644 index 0000000000000000000000000000000000000000..fe541fc83423a924c6eaa418857d3e6fae11e9e0 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BPd9UbXB.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BPdpAhj5.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BPdpAhj5.js.br new file mode 100644 index 0000000000000000000000000000000000000000..df7650bff7ea7e3b9371166c97929f5e14b1cb42 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BPdpAhj5.js.br @@ -0,0 +1,4 @@ +ì dË͝eúû‰ª¦&ê¨LÞÒÝ@éûûé{€†]f‘ìœ`h™»òPÔ<·�c)l Μ\¢z¶Ÿh8Rÿefÿÿ + +w�WT‚Eмþ +{Ô(X¡¬¢ÉLG™åâå¢Xî™#:ÞkM/ η\%ŸWÔ(ò¿ªI3©BqÞYéñsĨ/WU×ZËpü)Óe†Øt¯Š/TjÉ×çy57Ä1lǚJY¸¾äI Çٯã=±6¤QB0Žú Â]_®ŠŠ'Mïjxà~Wæª ãº=ìñ躬h(Ê>/´|Ñq÷–Ǡ¢9çeˆzòW]®Ûó� \ No newline at end of file diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BQ3NjbKn.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BQ3NjbKn.js.br new file mode 100644 index 0000000000000000000000000000000000000000..0bdfa28334371339cb1f97aff5158dd964ba3582 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BQ3NjbKn.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BQC7_f1j.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BQC7_f1j.js.br new file mode 100644 index 0000000000000000000000000000000000000000..b4cebddf6f81a94a8e39c720e0a701e62c06eab8 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BQC7_f1j.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BQbB0I6l.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BQbB0I6l.js.br new file mode 100644 index 0000000000000000000000000000000000000000..ed7f1033e894b5858736d2e7be7c556505e334dc Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BQbB0I6l.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BQjyquGA.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BQjyquGA.js.br new file mode 100644 index 0000000000000000000000000000000000000000..34d07a34f7440caa017bed211caff2482830b7ac Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BQjyquGA.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BSUp-9T3.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BSUp-9T3.js.br new file mode 100644 index 0000000000000000000000000000000000000000..fb9f2092ebe539d6ca8fc933c6501b8a105c0a54 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BSUp-9T3.js.br @@ -0,0 +1,2 @@ +›ŒÃ8ܤ™λ ½¦5—Ê)^˜d§B‚œ.ݚ´DF3à[¶]vÐÇӳ#-¼)wsÓÜeuäþw ã+\ԅ,Æÿ|þ¢n$ç†yHôÍC jì]ô{­ç^½Îxkü@?î¯"cq¾>–75h-‰ү#x +`Ð˧=”X;a5—<¾"h‚ 6YüF»­滧;KÂ|Ûw5žÍ×èº}£OwW͂¯4d/¶àﮅ*l$ý}™OoðŠ Eo§]I"'Lˆ$× õðc+§fÓyGõþ”}Bþ1©Œ5)zJ‘�i[º¢†×Éû}ʜt2F–÷«~E4þ»C_�åÃJèÊø°Ü͇kÄZA¯üîŠ.B�Qf/»e?ØDI›bˆÇёš‘�ƒx[~�yd%†.ÞԹôŸ¿æ$sèÕþ! \ No newline at end of file diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BThXtNcB.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BThXtNcB.js.br new file mode 100644 index 0000000000000000000000000000000000000000..24c203f41ca20f013c10bd4eb9b6da8f86efc2af Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BThXtNcB.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BU4IRnz1.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BU4IRnz1.js.br new file mode 100644 index 0000000000000000000000000000000000000000..540f8578433fe88cbe5714aed2feb600001a4abe Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BU4IRnz1.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BU4q8pfl.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BU4q8pfl.js.br new file mode 100644 index 0000000000000000000000000000000000000000..ae016635e91614cbbf77e3901885b02c0b061090 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BU4q8pfl.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BU7oQLoU.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BU7oQLoU.js.br new file mode 100644 index 0000000000000000000000000000000000000000..a4b164d67fc7b3b0142f518fba863357fc7c08c3 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BU7oQLoU.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BUrORs94.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BUrORs94.js.br new file mode 100644 index 0000000000000000000000000000000000000000..f6ecfb742461be2dbd4804da80ab11f22d0c2146 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BUrORs94.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BVX-WRLJ.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BVX-WRLJ.js.br new file mode 100644 index 0000000000000000000000000000000000000000..a4a92cd47da1c5c1ba25493d977e5d32227fae6c Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BVX-WRLJ.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BVqt-GkD.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BVqt-GkD.js.br new file mode 100644 index 0000000000000000000000000000000000000000..b518524dd23403349a42052cac9990c5522e66ab Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BVqt-GkD.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BWclPiPD.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BWclPiPD.js.br new file mode 100644 index 0000000000000000000000000000000000000000..67df401c2634ee97b6efb4fe9567829c405749f3 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BWclPiPD.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BX-DgEHx.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BX-DgEHx.js.br new file mode 100644 index 0000000000000000000000000000000000000000..0ef97656712f55e5951240059f03d6a55ea8e195 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BX-DgEHx.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BXQj0w5s.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BXQj0w5s.js.br new file mode 100644 index 0000000000000000000000000000000000000000..00963809d7ee4ea1ff369ba556cc2533e6b8096f Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BXQj0w5s.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BYMFDojn.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BYMFDojn.js.br new file mode 100644 index 0000000000000000000000000000000000000000..f6519b42936509d44f6af4f850aca9e989f2e657 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BYMFDojn.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BYUUP2JM.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BYUUP2JM.js.br new file mode 100644 index 0000000000000000000000000000000000000000..b22d0b38c8a71727768f5f9a44e5d178525362ec Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BYUUP2JM.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BYwqHPrr.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BYwqHPrr.js.br new file mode 100644 index 0000000000000000000000000000000000000000..e3f6be3ff240cb766bd5fd5c886fbe37f18ad35c Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BYwqHPrr.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BZBF7HNt.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BZBF7HNt.js.br new file mode 100644 index 0000000000000000000000000000000000000000..d38413de38126e2adcb9bd21f68f7d23670e8a96 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BZBF7HNt.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BZW6IG_H.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BZW6IG_H.js.br new file mode 100644 index 0000000000000000000000000000000000000000..6a42b533e1dbcb7681353f51ae8ca835246e548f Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BZW6IG_H.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B_1aTFZF.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B_1aTFZF.js.br new file mode 100644 index 0000000000000000000000000000000000000000..df51f8cfb41d347fdb60238b3c1c522e7fdab40b Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B_1aTFZF.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B_kIQq-V.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B_kIQq-V.js.br new file mode 100644 index 0000000000000000000000000000000000000000..78e91571af52d8a8365652bba5c378159fc10ed4 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/B_kIQq-V.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BabYOCTq.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BabYOCTq.js.br new file mode 100644 index 0000000000000000000000000000000000000000..bf64f4e487150d8495a95918cd6b759d3ea73b58 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BabYOCTq.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bad3gUgw.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bad3gUgw.js.br new file mode 100644 index 0000000000000000000000000000000000000000..fcecc9eca576a3edadb0532155e30009ba0a2c84 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bad3gUgw.js.br @@ -0,0 +1,3 @@ +â@…qý•ÀA)–ˆˆ|ýÇ`´èæß皈weî¢&&ª'kùѦ ñ¡™)6E¡€ ÞôPc˶ΧwhiԨû�Œâg)d›íSŸ +ú »ÌÍ#YȈiÂÄwåRþOýô$´u(z�Žvbçx(È)´íž1Í܂ԺÄå˻ãÜWΑ ˜ǤJ”pö¶²UÐÛ2¥ûŸ€žé±!í1®v1ãQExGX‰J¼®Yª*¯Æ^M8¬³ü´�SPÛ2ÿVêO9—�ޤ3]Ëù+K„†pä•a“{¯BeFïd„ÌÇb� Ã;K ¥±£ú + .bг› \Od`èj%Écx@:Í0µcxOÐËD�§DkêvoTä|U?\£:[.32. ځÝ!Ò^±uꯃY¸B¼rU+NMa(ŒþŠ >ÈNøÛaÄß/$ ؄9åžؗè¨1«lÿ^Ü%N çþ) \ No newline at end of file diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BarsCFMK.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BarsCFMK.js.br new file mode 100644 index 0000000000000000000000000000000000000000..f51d4c8ef964716c660847b425ff52fe595d8a1b Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BarsCFMK.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BawaiDpw.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BawaiDpw.js.br new file mode 100644 index 0000000000000000000000000000000000000000..2351927ea7fcafa3152285046aed574babeb90a2 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BawaiDpw.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BazCY-Ry.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BazCY-Ry.js.br new file mode 100644 index 0000000000000000000000000000000000000000..c8f9410f313f2f0ff2722b5878435acde8c367db Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BazCY-Ry.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bbb6Z7NV.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bbb6Z7NV.js.br new file mode 100644 index 0000000000000000000000000000000000000000..6e3740ff242c8ca86b17cb18a93ac112552f574e Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bbb6Z7NV.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BbdjbJXq.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BbdjbJXq.js.br new file mode 100644 index 0000000000000000000000000000000000000000..7deb9922312890c32140b5a520c5a7be1e1d5ffc Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BbdjbJXq.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BcPBBN0q.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BcPBBN0q.js.br new file mode 100644 index 0000000000000000000000000000000000000000..785f2ba5474d6bfd17b1add324f63ca93aa6f65f Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BcPBBN0q.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bc_i2QIo.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bc_i2QIo.js.br new file mode 100644 index 0000000000000000000000000000000000000000..d539deec4b33429f7dacc8720e8adcecaf2b8643 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bc_i2QIo.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BccPlubQ.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BccPlubQ.js.br new file mode 100644 index 0000000000000000000000000000000000000000..5b23b8aa50beb21b83faaaee94a6d3522dfacabe Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BccPlubQ.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BczWVYc-.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BczWVYc-.js.br new file mode 100644 index 0000000000000000000000000000000000000000..8c93809ea8a67fba85f11f521daa13c55f4091e6 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BczWVYc-.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bdlxcuo0.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bdlxcuo0.js.br new file mode 100644 index 0000000000000000000000000000000000000000..2448bc279afe24507a9f53384f72b2b0d674e78d Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bdlxcuo0.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BeCOU7pj.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BeCOU7pj.js.br new file mode 100644 index 0000000000000000000000000000000000000000..3cc446f406fd18b52fb20ac7307f86b9cb704f27 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BeCOU7pj.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bev3xR6o.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bev3xR6o.js.br new file mode 100644 index 0000000000000000000000000000000000000000..97f6a39858055d46eb35a2c59a8bf2adb45c4938 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bev3xR6o.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bg4lLK-p.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bg4lLK-p.js.br new file mode 100644 index 0000000000000000000000000000000000000000..9174df9b5c66514f2144704b6267f90451970aaf Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bg4lLK-p.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BgIixlWl.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BgIixlWl.js.br new file mode 100644 index 0000000000000000000000000000000000000000..369e4d3da7f826f9861a78f9a26ed40eb8f8d519 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BgIixlWl.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BgnDwIAt.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BgnDwIAt.js.br new file mode 100644 index 0000000000000000000000000000000000000000..afc3812fa19c0486eaddef72e0284e91b05af2b7 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BgnDwIAt.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bh6WIdD0.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bh6WIdD0.js.br new file mode 100644 index 0000000000000000000000000000000000000000..f5e30c3f39f9e52d0fcae649ad218832e06e8fac Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bh6WIdD0.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bh76_m1G.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bh76_m1G.js.br new file mode 100644 index 0000000000000000000000000000000000000000..9db9c768a1f24391de54a656e46f900a9023660e Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bh76_m1G.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bh9lZoLO.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bh9lZoLO.js.br new file mode 100644 index 0000000000000000000000000000000000000000..54c038a81e6dd8a8465b9b99cac8fe265a38fba2 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bh9lZoLO.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bh_em7ot.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bh_em7ot.js.br new file mode 100644 index 0000000000000000000000000000000000000000..bab7d86c1e76452ec660b711f289aaefd06468e3 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bh_em7ot.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BiJ6z1av.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BiJ6z1av.js.br new file mode 100644 index 0000000000000000000000000000000000000000..0010d1d2b57f173a053361f1a0c03a16ca17fac6 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BiJ6z1av.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BigU4G0v.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BigU4G0v.js.br new file mode 100644 index 0000000000000000000000000000000000000000..96e36043cdc8bdf89cb99a788a7864f09a82290a Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BigU4G0v.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bih-7WjC.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bih-7WjC.js.br new file mode 100644 index 0000000000000000000000000000000000000000..f16c0c272b83534165d17f5122a72f5c3e5023f7 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bih-7WjC.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BipimB9G.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BipimB9G.js.br new file mode 100644 index 0000000000000000000000000000000000000000..63ed618810c9e8159fc1b9b079246684f5775128 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BipimB9G.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BixlMo_Q.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BixlMo_Q.js.br new file mode 100644 index 0000000000000000000000000000000000000000..3233da0a7bb1009a6842b9492aa22d7f0a8b8c2d Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BixlMo_Q.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BjdM3JC0.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BjdM3JC0.js.br new file mode 100644 index 0000000000000000000000000000000000000000..91bf0659a61be100545849486ac37e2e09069df9 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BjdM3JC0.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BjwqUAVi.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BjwqUAVi.js.br new file mode 100644 index 0000000000000000000000000000000000000000..28fd9f5c6a55b5beea9e14cb0f0ec93859ceebcc --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BjwqUAVi.js.br @@ -0,0 +1,2 @@ + 1€var L;(function(G){G[G.GLSL=0]="GLSL",G[G.WGSL=1]="WGSL"})(L||(L={}));export{L as ShaderLanguage}; + \ No newline at end of file diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bk80U4tr.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bk80U4tr.js.br new file mode 100644 index 0000000000000000000000000000000000000000..15b6ac1d7eac25d95eba9d278f463ef984a9754c Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bk80U4tr.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BkPKQpe8.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BkPKQpe8.js.br new file mode 100644 index 0000000000000000000000000000000000000000..4b53becfd2c31397f9edb88c22077041cd7edebb --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BkPKQpe8.js.br @@ -0,0 +1,2 @@ +‹*€import{b as r}from"./Bma8imx3.js";var e=4;function a(o){return r(o,e)}export{a as c}; + \ No newline at end of file diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bl77K9ws.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bl77K9ws.js.br new file mode 100644 index 0000000000000000000000000000000000000000..549256c1a0535b6530d95064c7ca2209ed5eda55 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bl77K9ws.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BlNgGqtQ.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BlNgGqtQ.js.br new file mode 100644 index 0000000000000000000000000000000000000000..dc2569ef75e34b2e8d64f7fccfad5ff0b6c85d8f Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BlNgGqtQ.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BlQjg8RC.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BlQjg8RC.js.br new file mode 100644 index 0000000000000000000000000000000000000000..a0d0fe456a8ae6730ca115fc91bbc5ffe00a0156 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BlQjg8RC.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bm3YTWc7.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bm3YTWc7.js.br new file mode 100644 index 0000000000000000000000000000000000000000..6d9dab88f0bf3a4b2424edeab7b39881f5db9c48 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bm3YTWc7.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bma8imx3.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bma8imx3.js.br new file mode 100644 index 0000000000000000000000000000000000000000..a7a18708d0068b2b1e3b43a6693a8ec33dc0cc0b Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bma8imx3.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BmjszOca.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BmjszOca.js.br new file mode 100644 index 0000000000000000000000000000000000000000..3a8df5a5db976865b42b89e1e841b63515c9dce3 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BmjszOca.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BmvGlt1J.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BmvGlt1J.js.br new file mode 100644 index 0000000000000000000000000000000000000000..70b5c364579eab1b3f5bcd43ea91df40a2ff96bb Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BmvGlt1J.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BnWV3ykL.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BnWV3ykL.js.br new file mode 100644 index 0000000000000000000000000000000000000000..0b811099494c6bab321839dd9020a28ff671dc32 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BnWV3ykL.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bnz0uzjd.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bnz0uzjd.js.br new file mode 100644 index 0000000000000000000000000000000000000000..46ee7a7def7acaacde8a9759bea43deed336ef6c Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bnz0uzjd.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bo86Zvjn.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bo86Zvjn.js.br new file mode 100644 index 0000000000000000000000000000000000000000..75557e6205b131e1ad8482781fffc9e63036aca9 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bo86Zvjn.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BosinDBR.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BosinDBR.js.br new file mode 100644 index 0000000000000000000000000000000000000000..9a53dab0f7ffdc4baaca089c39bebfb1edf3d536 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BosinDBR.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BphXmwil.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BphXmwil.js.br new file mode 100644 index 0000000000000000000000000000000000000000..a98633a3f8778a29701a5e5266ada14e0a29219d Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BphXmwil.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bq7oqNHd.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bq7oqNHd.js.br new file mode 100644 index 0000000000000000000000000000000000000000..af1d101df893f5b416de9b7009e0b80b51bcad9b Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bq7oqNHd.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BqkE3ir7.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BqkE3ir7.js.br new file mode 100644 index 0000000000000000000000000000000000000000..2dec0e998328806a299af189677263c4188912bb Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BqkE3ir7.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Br5PvPlm.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Br5PvPlm.js.br new file mode 100644 index 0000000000000000000000000000000000000000..e1690107fc05dd6545ad5d7292c3685137509c75 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Br5PvPlm.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BrEHgOUY.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BrEHgOUY.js.br new file mode 100644 index 0000000000000000000000000000000000000000..256c5ba06d643b9beba2bb1de56285c058dafcef Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BrEHgOUY.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BrKygyj5.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BrKygyj5.js.br new file mode 100644 index 0000000000000000000000000000000000000000..936a2526d2af4c7cd42b1739d8715eff8f1301c3 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BrKygyj5.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BrfLCquH.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BrfLCquH.js.br new file mode 100644 index 0000000000000000000000000000000000000000..75cafc6726ea2aae8b61dfec0b534eca12dbc31b Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BrfLCquH.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BsOlTYdY.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BsOlTYdY.js.br new file mode 100644 index 0000000000000000000000000000000000000000..94f399133a3650e714a25084421ddcf6d1d980af Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BsOlTYdY.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BsUC6yiu.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BsUC6yiu.js.br new file mode 100644 index 0000000000000000000000000000000000000000..16cd4da106b1fd122d4bc7fcf282b334704c2635 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BsUC6yiu.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BsUqiLYi.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BsUqiLYi.js.br new file mode 100644 index 0000000000000000000000000000000000000000..6c603350309f92119989e45459c6262cfe4023e9 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BsUqiLYi.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BsY3ByCL.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BsY3ByCL.js.br new file mode 100644 index 0000000000000000000000000000000000000000..e5005455efb768e8456a093e71dc914abe1d39b4 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BsY3ByCL.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BssS2pGx.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BssS2pGx.js.br new file mode 100644 index 0000000000000000000000000000000000000000..36ae612128b41c87fdad84287873dba3cfeeb881 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BssS2pGx.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bsu27hps.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bsu27hps.js.br new file mode 100644 index 0000000000000000000000000000000000000000..14f122aed358a8729b4ebd1a8e70764c17e6848c Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bsu27hps.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bsz8IMDP.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bsz8IMDP.js.br new file mode 100644 index 0000000000000000000000000000000000000000..5f5abd7bd32d3664dd8dd3660b793259dcfbf285 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bsz8IMDP.js.br @@ -0,0 +1,3 @@ +z@äR§{—ÉqI÷÷I änåI¦OXލ¤ÓÄÍÂÐs[{œ/ +0ÌôP:u™î1ñUºñôqhÛx÷üzK»h*—UH‚‚éNð&ëdòoNýëm·¿TKS—ŸèÊ՝P¼Äê¾ñJr5?¸þ}ZŒß4�v>³2¿ù|Už}°¬~¸^æ'ó¡ÑDt/:+"t‘‘¤X¼b(TÉ  ‰c‰ÁË w³�þ¾ñÉ¢2Œl&�ì«ȚÐõŒ»Ú!WÂèFˆðIÁêîj‚s�…çm¶�ŽPªXù&ﬢ�}yðãXÓ{Q®EN}·_ˏëi4÷C;†C“`+ÕÁ šÌӎbÆÅ9 फb·×`PŽBña�-YÄNHXrûöe ) éN³Î` +ÙkH�ÒRX8QÂbo€^š²Fx€þÅÝôÃÜÛéd \ No newline at end of file diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BtAM8Fgu.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BtAM8Fgu.js.br new file mode 100644 index 0000000000000000000000000000000000000000..6903de0ea852da71e4521104aad669578f8c0ac7 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BtAM8Fgu.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BuF5de8O.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BuF5de8O.js.br new file mode 100644 index 0000000000000000000000000000000000000000..a390749dbf83cca41969832989c07f8490983cb2 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BuF5de8O.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BukSkdlO.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BukSkdlO.js.br new file mode 100644 index 0000000000000000000000000000000000000000..06a5e68c4497ab9efcd0c7fcc2e92289e4d8bf4b Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BukSkdlO.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BumPWABt.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BumPWABt.js.br new file mode 100644 index 0000000000000000000000000000000000000000..5af5d72e037882556ad9ba51daf3b4a78824288a Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BumPWABt.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BvHl7jHg.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BvHl7jHg.js.br new file mode 100644 index 0000000000000000000000000000000000000000..d646d373a5033485fdd04a31bdef4d3d4dbe35e5 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BvHl7jHg.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BvKdJnVK.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BvKdJnVK.js.br new file mode 100644 index 0000000000000000000000000000000000000000..97c004e6030a7b3325645a21b616c91b0adbe148 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BvKdJnVK.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bw9C3c2N.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bw9C3c2N.js.br new file mode 100644 index 0000000000000000000000000000000000000000..c8f74c8f4861a26391c7a3d57389cf7f752ba2cd Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bw9C3c2N.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BwDe2O3K.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BwDe2O3K.js.br new file mode 100644 index 0000000000000000000000000000000000000000..e6957487eb491d17e57058b232074ba516dcc405 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BwDe2O3K.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BwkPWvaL.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BwkPWvaL.js.br new file mode 100644 index 0000000000000000000000000000000000000000..94df54c2e156fd4d62cdb3936bfa50547287fec2 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/BwkPWvaL.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bx0f1qHM.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bx0f1qHM.js.br new file mode 100644 index 0000000000000000000000000000000000000000..9f13170f9fd7fd275d5ec7d413b74e6ddae7517c Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bx0f1qHM.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/By30S2K-.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/By30S2K-.js.br new file mode 100644 index 0000000000000000000000000000000000000000..f23be70161ab4eb2c323d718af800628ce6a4c5f Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/By30S2K-.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ByMpo65q.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ByMpo65q.js.br new file mode 100644 index 0000000000000000000000000000000000000000..77470befc02a61610d1ae8bc0a0515b8ea7c9f51 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ByMpo65q.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ByO86Xwm.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ByO86Xwm.js.br new file mode 100644 index 0000000000000000000000000000000000000000..108bca9437fb0881e3a21b5fe302374f98ee53d7 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ByO86Xwm.js.br @@ -0,0 +1,2 @@ + €import{j as a}from"./BiJ6z1av.js";a(); + \ No newline at end of file diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ByT4xt6j.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ByT4xt6j.js.br new file mode 100644 index 0000000000000000000000000000000000000000..a6120d7a44b68f8cbc320289551ae683644b641c Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ByT4xt6j.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ByghKcOh.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ByghKcOh.js.br new file mode 100644 index 0000000000000000000000000000000000000000..9545adfa40ad3b97220ae323de7b491c47567563 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ByghKcOh.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bz6Vrhdx.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bz6Vrhdx.js.br new file mode 100644 index 0000000000000000000000000000000000000000..41267cf1e7c918b6dc6d6644d565673883096e28 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Bz6Vrhdx.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C-1PaFv5.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C-1PaFv5.js.br new file mode 100644 index 0000000000000000000000000000000000000000..0370ebdaa53aa2d154d8a794b586a2951b450716 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C-1PaFv5.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C-W792LH.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C-W792LH.js.br new file mode 100644 index 0000000000000000000000000000000000000000..9facaf07588f06e359458bd45dd0f6c69f2e69b8 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C-W792LH.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C-gnyxdV.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C-gnyxdV.js.br new file mode 100644 index 0000000000000000000000000000000000000000..740755127f531ae598506b8b33290c1fbf2a80fb Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C-gnyxdV.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C0YDReSj.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C0YDReSj.js.br new file mode 100644 index 0000000000000000000000000000000000000000..cb1526b28585a00dd7450de9f4d5121e8161fcb7 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C0YDReSj.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C1ltVY6E.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C1ltVY6E.js.br new file mode 100644 index 0000000000000000000000000000000000000000..948eed042ad45a9f7cb0ec1fd3765a45d3788dfb Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C1ltVY6E.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C1sfwFoV.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C1sfwFoV.js.br new file mode 100644 index 0000000000000000000000000000000000000000..e4cccdc5218963d540faa8a629181dd3649dc2a9 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C1sfwFoV.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C2IkH-hH.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C2IkH-hH.js.br new file mode 100644 index 0000000000000000000000000000000000000000..db97034a7ea043e12fe536d141e85952304e2a82 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C2IkH-hH.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C2kI3UcJ.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C2kI3UcJ.js.br new file mode 100644 index 0000000000000000000000000000000000000000..447b47541f6e4b96c3244541bfaf7d782b4df091 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C2kI3UcJ.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C2zNVugk.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C2zNVugk.js.br new file mode 100644 index 0000000000000000000000000000000000000000..47ef1854c664ce4c5ab9d8664e5aeaba817d47fd Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C2zNVugk.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C3FzHThy.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C3FzHThy.js.br new file mode 100644 index 0000000000000000000000000000000000000000..2a71ab89aead94db4118610ce47e5ca1476b950a Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C3FzHThy.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C3SHU62J.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C3SHU62J.js.br new file mode 100644 index 0000000000000000000000000000000000000000..66d413baedbd699f108f4395a8521e5b52ed375a Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C3SHU62J.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C3f8Ysf7.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C3f8Ysf7.js.br new file mode 100644 index 0000000000000000000000000000000000000000..a4118d96f370ed83a080d364ef035f1b49d73dd5 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C3f8Ysf7.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C4DGRd-O.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C4DGRd-O.js.br new file mode 100644 index 0000000000000000000000000000000000000000..51fc1f8f2bc504202a68ee1a5e8a77835467bb47 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C4DGRd-O.js.br @@ -0,0 +1,4 @@ +7 + ÄJMíÓTâr áÌÓ[’9«Jѹd d‚ž³@o>ñ£ýZ»;Ä”DéV˾™y‹Šì~Ì%^¤’Åb$'lŒŸÿ"·ùSl8Y%JûÖ({ø؃áo`DäÌPˆ}7ú F©ûÁ€�[ÀJt0õãVMDãðFÒjKî.}7&?ú?"¡]‡Á8C2 \E¬œh/×!¦ûÁ[¸ƒqõ¿=úÿã͢F0¤íVðßõΏüƒ@’5©$pl¿Ây+]¸ qºÒѤ¬_øé߯‰n£P½·›”IÛݳÒ!ßEH´Í`ä’x·3\0:À.E;Zƒ.‡€"H�² ŒÇuŒ_K`–ɏp?¢®é¤~0T›úåv*¦tFUè# Y„�~¾Í-©¹ãI{•Î{ããêGýÀð�{ªŠšBHúý�ßeõ¶oÜâÙ<É÷—j7ý;¬xpXݺ½³.oƓì¡fÚÙ͹öYׯ¯»g·:ÐÎõ�uËÒnՍÃïçh½ÖÂZ4ã õÑ š¦¿n@äÜ Ô%¿ÕH¾ª.Ә¿ûÊVªö¤uQª Ç=·ÎDy©Ã…DCע«ª�v ÖMÙv�ñuhTìdÈ3¡?6Æ +Ÿa¨I”[;Ù|¢"˜cšTdŽydaà[èOR©æn/kc"&�çÀCßbц´Ôn¶þJ›†ôá¯p�¼âÁ{I4·Øû¤ÉÉ{«°5†WÏ!c0%¿¾AMŠf, _'ÍÄ&¥Cеø7–Yó»Ç;Ck†=�ˆˆæunâgØ#+‰lŒÉ;‡ævèRâµ"4̊3K£%̝!à¹㰱K¡ËÎ׉xBc ╵z òٞ‘=RrjÏ9_q±ýGU½]% +º,OO‰2½¬à|"k4�°Meƒ‹\¹ÄÀ<$¶¨V•¶$‚ߧÍmmՋq׹fPÐ~ºL[ž¼`xg,c3/ùÙSíǧÆO¿R’ËJ_n’kÊõùgýÚǞi¹›oץ°?>Rä]a‡8ð ¸/Æ÷•J‰…k—5…FM³åHÑFÕݐÞ×ĥ½;ÛÌW¹è|ÿ­ÍO«.?¬yäüœ°€°Z6°ôÖ(?�ݝwmÈ~æo3võ•î \ No newline at end of file diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C4dFoEXQ.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C4dFoEXQ.js.br new file mode 100644 index 0000000000000000000000000000000000000000..55c0da53dffa33c546534ed2f6a564c2d9b657aa --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C4dFoEXQ.js.br @@ -0,0 +1,4 @@ +Ò <w¬¾À>‰mŽDB®Ætš#Z(Z2­ZôՂžŸ+£¿J÷¨"%6ÜAÂ!Ìs ³—.B`öÞøXÌx÷³ Y²P¤‹LäH¸µØ^ D0‘óô‡VIauØÍÚÿ¹¦Ð!Öÿ*—a½*ÝÑ*, +·¦½�7àŒfníc�¢gºí¦^ƒ`H%ŒaË÷‚vÐÒý½ړ‚¾~H^ÝFå ÕéÁ6ƒü.wV³j‹˜ûÂñ7ŽÀ‡Ž¬ Ö +Ê»}SøãUCR_ÁԌ-k×NGøöŠÈnm¨J«‹� ‰3�5Œ*îÍÄ%“š7ÑG™kó@„M3X…£ +¹rãÈÅýOeî"ì0¤•]óx tcèûC1PË£á«ðûA‹ÅA‡ÈM-3©¿n§�Kf¬žwÿ$PšԹ�mKm6ÁôA5Ô5)N}*, Àīp-àлў…ÐXΫ®A„ռ†€kl ÁfÆ55Fæž š҆!CÏSï>½Ëíê¸;1'ȘïÇ …ØϥšÈè/¾âñ' HÁ_ \ No newline at end of file diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C55Nmgkc.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C55Nmgkc.js.br new file mode 100644 index 0000000000000000000000000000000000000000..63b82c40de44c924e0f1644144c4c2d9b3fa3164 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C55Nmgkc.js.br @@ -0,0 +1 @@ +@ŒÃ8&<ÑÄ*Î#Tú̹TÇÒ]Û9]«¨”BØÛöݎ9E‡hDD?gãuÿiX�ŒÛØk¬B i4¥^¯ ®`ük )º ¤œ;œ‚jV¨_,›¾‹k|•XŒ ±9± ïÌÙ(¡¼ÂNs­É hæ#6fV¼ŶÅ}`HDÿ0͋óøÂgŠĉ©2ß$÷ 1Šþe¾Y&'½“øÿüZLÛþu \ No newline at end of file diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C5903RW9.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C5903RW9.js.br new file mode 100644 index 0000000000000000000000000000000000000000..d0fde4abf86d39ff5201096e4f229190ac156b78 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C5903RW9.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C5Axf9mO.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C5Axf9mO.js.br new file mode 100644 index 0000000000000000000000000000000000000000..d33d03792e15ce377acfe0946b03f5790ba2fb2c Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C5Axf9mO.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C5GJCMaq.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C5GJCMaq.js.br new file mode 100644 index 0000000000000000000000000000000000000000..35f601e141d1f13a5a751e910113db4ebed741f0 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C5GJCMaq.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C5Kt1Yfe.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C5Kt1Yfe.js.br new file mode 100644 index 0000000000000000000000000000000000000000..87e896b2e4918a599d9c94b3b83e39d0f4098925 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C5Kt1Yfe.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C62uoeoS.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C62uoeoS.js.br new file mode 100644 index 0000000000000000000000000000000000000000..9eb707fbbf9aad58f91efb102fcda1750759e805 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C62uoeoS.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C6E6S5LI.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C6E6S5LI.js.br new file mode 100644 index 0000000000000000000000000000000000000000..e7868cffe174226fcb89d16cc8c4bd42edcfc41a Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C6E6S5LI.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C6g-h1VM.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C6g-h1VM.js.br new file mode 100644 index 0000000000000000000000000000000000000000..48188ead67ad90b17e27ffacc973f15d7a90af28 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C6g-h1VM.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C72dIN0n.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C72dIN0n.js.br new file mode 100644 index 0000000000000000000000000000000000000000..537acad86be58685e72492d2a5d4c840b2947136 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C72dIN0n.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C7uX_mZt.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C7uX_mZt.js.br new file mode 100644 index 0000000000000000000000000000000000000000..9021ff32c7ac130adc240cc2f0b90b8081f0fe96 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C7uX_mZt.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C7vI6DNW.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C7vI6DNW.js.br new file mode 100644 index 0000000000000000000000000000000000000000..1139ec0926b366364c45090390211d83b35eebfa Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C7vI6DNW.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C8KBC6do.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C8KBC6do.js.br new file mode 100644 index 0000000000000000000000000000000000000000..f30c9bc3c4614d1ef5b2f9f3ddc3e067be6652f7 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C8KBC6do.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C8gqxpkE.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C8gqxpkE.js.br new file mode 100644 index 0000000000000000000000000000000000000000..4a426bc4a740c8ad638d79a49827dcca9a85ec7d Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C8gqxpkE.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C9BLio27.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C9BLio27.js.br new file mode 100644 index 0000000000000000000000000000000000000000..85edda24fe1fe8baaee11a9a2de0244ba911786b Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C9BLio27.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C9UiyR36.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C9UiyR36.js.br new file mode 100644 index 0000000000000000000000000000000000000000..36e15e68ecccf39c11530b54f3c8229e8b595b4c Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C9UiyR36.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CA-e5LsL.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CA-e5LsL.js.br new file mode 100644 index 0000000000000000000000000000000000000000..827e493f7f15bfd942fc47e5b0b4da8532aca9c9 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CA-e5LsL.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CBcWVE3n.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CBcWVE3n.js.br new file mode 100644 index 0000000000000000000000000000000000000000..74be6a4aa19e7f6d4c6af7319d326ea26f2060ec Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CBcWVE3n.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CBl3ueFM.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CBl3ueFM.js.br new file mode 100644 index 0000000000000000000000000000000000000000..f76f26439021863318afdc753a85d5b288b8b370 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CBl3ueFM.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CBr4pLsy.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CBr4pLsy.js.br new file mode 100644 index 0000000000000000000000000000000000000000..b5614310aeb9cea7697070e24bd8370412ef59ce Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CBr4pLsy.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CBtml8AO.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CBtml8AO.js.br new file mode 100644 index 0000000000000000000000000000000000000000..9edb43c5084324ccaaddb9cfde14ed71a6744200 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CBtml8AO.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CCUDOyfc.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CCUDOyfc.js.br new file mode 100644 index 0000000000000000000000000000000000000000..7d2b418e497d67e41bb71d04016d1bc884834d37 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CCUDOyfc.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CDFmRK44.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CDFmRK44.js.br new file mode 100644 index 0000000000000000000000000000000000000000..15e78f5f2031f78c5dfefbb515dbff5709546d63 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CDFmRK44.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CD_X36zw.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CD_X36zw.js.br new file mode 100644 index 0000000000000000000000000000000000000000..96f612011f8a5153ac490a21100a62b3776b3b12 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CD_X36zw.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CDq7fxDa.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CDq7fxDa.js.br new file mode 100644 index 0000000000000000000000000000000000000000..4e4ade58da1a1ddfa0a6f2bc1fb0b1e71fe96e89 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CDq7fxDa.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CE39wJoW.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CE39wJoW.js.br new file mode 100644 index 0000000000000000000000000000000000000000..ce0509edf353890c841cd2866da4ad5f401d7ce9 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CE39wJoW.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CE8upDXZ.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CE8upDXZ.js.br new file mode 100644 index 0000000000000000000000000000000000000000..d3399423bf6122a067c5f16c195435c3cfa48271 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CE8upDXZ.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CENrGDnj.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CENrGDnj.js.br new file mode 100644 index 0000000000000000000000000000000000000000..95dbc81553a0864552303bc2c33cca8f71cd81d7 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CENrGDnj.js.br @@ -0,0 +1,3 @@ +’ Äʜþûy¹*ÝÍl U`2¢ÌIüÏSÿ€O4LÁhçÂ}^«� Ñ +õ¼ÔêԹÍ`°˜„ï:QƒZ »]ӕÃI4¢8só‡›ùëBr˜ÌJH,eøÃYjÁmðaÀA +*†5Ͽ\ëõšÎà"�Ž<èÁ$�àØJŸWŸZ*Ân ÞÇËËýÒå ¹aKÚ/÷Á˚­ˆ¼y¶ьDjڛ|ª–Aüé†<ø£ã ,Í4Q¥–ítTàKLNª(-•ÀBU@ëZJÜ? {'±ͥŒed—Z¹SñÎ. Ôɷì9Áý9›•ݿJL=†(-QsžtoO<&çB_§ê³´6º8hIçáPŸSvI>•Ì#†ã]ÛÕð´Õα4)Ì=R¾%pÂ;²ã?ßbLÎæ"Rá‹KbJ¯å;Î M0ÿ0bJ ñÈn¥¢=ӑ \ No newline at end of file diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CE_JwudK.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CE_JwudK.js.br new file mode 100644 index 0000000000000000000000000000000000000000..f8780f19c6f555c0aabaa4e1590e9939ff0c5048 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CE_JwudK.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CEj5cyAj.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CEj5cyAj.js.br new file mode 100644 index 0000000000000000000000000000000000000000..c9d0e65a0cb969c8ff4b251cf0c5746bdb4b5b13 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CEj5cyAj.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CFc2CmEy.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CFc2CmEy.js.br new file mode 100644 index 0000000000000000000000000000000000000000..ba1cbf41fa0e75f41834edd6e279215cdd4b6169 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CFc2CmEy.js.br @@ -0,0 +1 @@ +H Œ”.s#$™=ÌóŸϫâd_ہɠØùû›úïƒâj,۶­Iÿ¢°{�žBVHv=VЧšaIéÓáêۦ–˜"ÿ¸ï›=}ðg^å£eÛa&¼>Ÿ0¡ ÊLåøóòЃ�WÛZnàÆhÛèbŒXî.°váž>èÑs»=,Ë,;.7gD¡’6¯&•«töRoç½l«“̏˜¡ă¿§'R¦͠¢Ø֊ˆG,ë±ÜmiáD,„ú&NŽYl̷”0�aë>yØ&’Íò‰~¦¼êöh4EDMõÔ2P¹‘G³¦9lÍ ,3»ÏÖ2è¿[ñ|ŽÛä|ƒ~¾]Ãô÷“‚’èVV~xŠ~ï“�†);¡í? ¯*‚Oê@»ŸoWþ \ No newline at end of file diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CFgQvIIe.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CFgQvIIe.js.br new file mode 100644 index 0000000000000000000000000000000000000000..e01d75e2845f41b1c41a40859c605e3583182d53 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CFgQvIIe.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CFxNZ7-G.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CFxNZ7-G.js.br new file mode 100644 index 0000000000000000000000000000000000000000..e0bca622230acfaa7d61a707f8ff7df0ad84e1c0 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CFxNZ7-G.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CG-Qigkn.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CG-Qigkn.js.br new file mode 100644 index 0000000000000000000000000000000000000000..00d055dc42b63d8c4dd30a570a18e5ce5253073b Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CG-Qigkn.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CGAUivbA.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CGAUivbA.js.br new file mode 100644 index 0000000000000000000000000000000000000000..373e9326f0faaba344234617fc1c98320ed226ff Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CGAUivbA.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CH-FdnQZ.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CH-FdnQZ.js.br new file mode 100644 index 0000000000000000000000000000000000000000..e1e42b3c34c0911f6e24f2be1d260cf515e48eb3 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CH-FdnQZ.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CHOhIaSf.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CHOhIaSf.js.br new file mode 100644 index 0000000000000000000000000000000000000000..88e108ce01978b596f627db39746d8646b6781ab Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CHOhIaSf.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CHTOhJ0F.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CHTOhJ0F.js.br new file mode 100644 index 0000000000000000000000000000000000000000..43d6215d65ea502c6287f39f17394910e186bb24 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CHTOhJ0F.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CHxZv7VZ.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CHxZv7VZ.js.br new file mode 100644 index 0000000000000000000000000000000000000000..2b6ec428ea65ad9860b13944c7261de7ed533602 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CHxZv7VZ.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CIEPz847.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CIEPz847.js.br new file mode 100644 index 0000000000000000000000000000000000000000..0b0e0753ccf841d9de373cd24c0c4f499a8fd225 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CIEPz847.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CIFI1n_1.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CIFI1n_1.js.br new file mode 100644 index 0000000000000000000000000000000000000000..d50751cb8c1e59c4f1e702e143d8527f517f93b4 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CIFI1n_1.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CIpwD0HO.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CIpwD0HO.js.br new file mode 100644 index 0000000000000000000000000000000000000000..80097f311fcbdfb43f3298bc588be86fb327cae4 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CIpwD0HO.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CIqQkB8e.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CIqQkB8e.js.br new file mode 100644 index 0000000000000000000000000000000000000000..c1c468da45611c0bf8e71b01305d1de65744e7b7 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CIqQkB8e.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CIygt9H2.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CIygt9H2.js.br new file mode 100644 index 0000000000000000000000000000000000000000..0d087c4854b5abbb6d1b55f35e0945c2962ffed5 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CIygt9H2.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CJgjpe14.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CJgjpe14.js.br new file mode 100644 index 0000000000000000000000000000000000000000..d0e3445d8a43f607e4dadf49b066cf24a159cf65 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CJgjpe14.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CJnIbQYZ.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CJnIbQYZ.js.br new file mode 100644 index 0000000000000000000000000000000000000000..88a3cba304d7986ee10e3f41591f99b472e4da99 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CJnIbQYZ.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CKJIg4Dk.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CKJIg4Dk.js.br new file mode 100644 index 0000000000000000000000000000000000000000..0a998b75a167f0520457ba2113ad90605673229a Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CKJIg4Dk.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CKcLXqSw.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CKcLXqSw.js.br new file mode 100644 index 0000000000000000000000000000000000000000..7fb775e6323a6336cbd8858276ca1e8647f57d82 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CKcLXqSw.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CLVI5fmM.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CLVI5fmM.js.br new file mode 100644 index 0000000000000000000000000000000000000000..443b0295fa976fd2adb0da027795d6cb2b479100 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CLVI5fmM.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CL_FGGnV.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CL_FGGnV.js.br new file mode 100644 index 0000000000000000000000000000000000000000..df2cd7e170fab6674bddfa82ad2db8cd01bf1dea Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CL_FGGnV.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CLfybRPu.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CLfybRPu.js.br new file mode 100644 index 0000000000000000000000000000000000000000..1c98fb1768747739f1ed3eee70156450f081fd26 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CLfybRPu.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CM84u2kx.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CM84u2kx.js.br new file mode 100644 index 0000000000000000000000000000000000000000..2ca17f3f54638184d577783099a0be4e38a6e700 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CM84u2kx.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CMG3cVOj.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CMG3cVOj.js.br new file mode 100644 index 0000000000000000000000000000000000000000..e00faf80eb601ec7c9fe95655f089ddb349300ff Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CMG3cVOj.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CMIqCgDn.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CMIqCgDn.js.br new file mode 100644 index 0000000000000000000000000000000000000000..48e088b4b81b989cc955aad45b1fb902e258f58a Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CMIqCgDn.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CMxRi3jz.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CMxRi3jz.js.br new file mode 100644 index 0000000000000000000000000000000000000000..bf30d07d614fadd4ae3ca620f49b320eb52ee034 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CMxRi3jz.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CNHvk0wB.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CNHvk0wB.js.br new file mode 100644 index 0000000000000000000000000000000000000000..f40ca2e5193447cd83c652da08a5c28516ab9c1a Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CNHvk0wB.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CNJSNIHI.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CNJSNIHI.js.br new file mode 100644 index 0000000000000000000000000000000000000000..e607756936a164bafc3c49e712f03f156040ffcc Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CNJSNIHI.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CNpSMmlo.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CNpSMmlo.js.br new file mode 100644 index 0000000000000000000000000000000000000000..e83b053a179b06617f6d21f60c999fadc8618939 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CNpSMmlo.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CPYrJm9r.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CPYrJm9r.js.br new file mode 100644 index 0000000000000000000000000000000000000000..12a7eb48de4356799d3bc9e341c42beae1c11825 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CPYrJm9r.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CPudufVW.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CPudufVW.js.br new file mode 100644 index 0000000000000000000000000000000000000000..746df7e1186bce7f56df6fe86df6d94d75c5de3d Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CPudufVW.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CQmnSEZr.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CQmnSEZr.js.br new file mode 100644 index 0000000000000000000000000000000000000000..b457562d7cd013cb86e5493a609d2334f05188df Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CQmnSEZr.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CQtlJPao.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CQtlJPao.js.br new file mode 100644 index 0000000000000000000000000000000000000000..c51fd508b68f641cd3538295d81bc5cf3aa62ac2 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CQtlJPao.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CRVRDlx8.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CRVRDlx8.js.br new file mode 100644 index 0000000000000000000000000000000000000000..cd47e9354ebc133a153046a2ea4a188b9a120cc5 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CRVRDlx8.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CSUR5cUG.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CSUR5cUG.js.br new file mode 100644 index 0000000000000000000000000000000000000000..278ffeae23b11be3bd46c8e2866c366cf1e694dd Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CSUR5cUG.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CTH18Cu1.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CTH18Cu1.js.br new file mode 100644 index 0000000000000000000000000000000000000000..5ed6e5ec66652b03144da73837a5cc14e090197b Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CTH18Cu1.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CTbdxu88.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CTbdxu88.js.br new file mode 100644 index 0000000000000000000000000000000000000000..6004728e4977aae52edb26c6c57c4e69123ad133 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CTbdxu88.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CTd2NnGd.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CTd2NnGd.js.br new file mode 100644 index 0000000000000000000000000000000000000000..7bf255d1b08278b5feae1fc4e655ddcaad7907ee --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CTd2NnGd.js.br @@ -0,0 +1 @@ +ó J»5§�Q)ÁsQë«òÔMí"Š0Õ³¡kZÍFdíÌ`™¼ǻO .Ã޷Šã+®ÿeÉþ@f—ð^Ùýʿ¹Ê4=®7œ³¼š]Ϊ¬ËÆü´Wu5ž=Ëî…G«Ä5|̧a¬ڢ‘3œ6nàØ^ÜO$$ߎC] ÌñÿGý6D¥&ZÃ&K˜( 8ÒLܱð[ ¾ŸØÞQÂ~|‹¬•H6…y?¹2n³ŽErKf“v´ÍÎݐ?hÑr7ÜJ%8tQ%ˆ¹N 2þ#Zû5®[Â^wçýßÏ$G|±tâù«ü"=w¯\iúò'�ô©Ï(   \ No newline at end of file diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CTfJwv3Y.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CTfJwv3Y.js.br new file mode 100644 index 0000000000000000000000000000000000000000..f20656df26e4c4c3b312329687574a23a1242c00 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CTfJwv3Y.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CTmgoBFK.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CTmgoBFK.js.br new file mode 100644 index 0000000000000000000000000000000000000000..326122c16cabcc1b06cf5004d37819554038264d Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CTmgoBFK.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CU-q1EDF.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CU-q1EDF.js.br new file mode 100644 index 0000000000000000000000000000000000000000..47309f0d523bc9d29d31dc8f41ad8b1cf5d90166 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CU-q1EDF.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CU23FEk2.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CU23FEk2.js.br new file mode 100644 index 0000000000000000000000000000000000000000..511d280f1e8d6a02f98f56e098527d29a82f2775 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CU23FEk2.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CUdbX2Jv.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CUdbX2Jv.js.br new file mode 100644 index 0000000000000000000000000000000000000000..50ec6cf167fa9be74074dbe9cf59cbc5e5f0f022 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CUdbX2Jv.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CVBtVGgJ.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CVBtVGgJ.js.br new file mode 100644 index 0000000000000000000000000000000000000000..5fe7de7f3131240307e809443907b598c25bc742 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CVBtVGgJ.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CVMrKKc6.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CVMrKKc6.js.br new file mode 100644 index 0000000000000000000000000000000000000000..5893db42fedea494681a2079ad0cfda70dcc9cbb Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CVMrKKc6.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CVR_iTo9.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CVR_iTo9.js.br new file mode 100644 index 0000000000000000000000000000000000000000..974e775955e560730a1c1830f3c181cc881db7a3 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CVR_iTo9.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CVXQNmFM.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CVXQNmFM.js.br new file mode 100644 index 0000000000000000000000000000000000000000..b2dbb88cc5082ff8cb23b79e4f8e6362e81b67e9 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CVXQNmFM.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CWNRmuA0.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CWNRmuA0.js.br new file mode 100644 index 0000000000000000000000000000000000000000..579afafe70a7973f858e6b6371867ba6ea657f22 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CWNRmuA0.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CWXtuQ8C.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CWXtuQ8C.js.br new file mode 100644 index 0000000000000000000000000000000000000000..8cacec6b869ad8451e266182c66f5c232a9e83c8 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CWXtuQ8C.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CX42DxG8.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CX42DxG8.js.br new file mode 100644 index 0000000000000000000000000000000000000000..13286517f8feea74578c4f31b7c6915790d7ab75 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CX42DxG8.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CXLsm1GA.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CXLsm1GA.js.br new file mode 100644 index 0000000000000000000000000000000000000000..7cdc46c6563243fada72e605f99b7b4d9cf4c17f Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CXLsm1GA.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CXR38I29.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CXR38I29.js.br new file mode 100644 index 0000000000000000000000000000000000000000..ead2240e2fd84e174a8b2630442ef005de00ee9f Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CXR38I29.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CYEBC9DR.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CYEBC9DR.js.br new file mode 100644 index 0000000000000000000000000000000000000000..619146b0a036af66f0f8438e4604ec7baf7cf2f6 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CYEBC9DR.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CYaCnEDE.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CYaCnEDE.js.br new file mode 100644 index 0000000000000000000000000000000000000000..f6c35a721fad466ccc3d2fa1d1030fe696965ad2 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CYaCnEDE.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CYv2_YO5.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CYv2_YO5.js.br new file mode 100644 index 0000000000000000000000000000000000000000..260a7b3aa8d5ad2e713c7b2f3c95f02228b9a8de Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CYv2_YO5.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CZPqtkVs.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CZPqtkVs.js.br new file mode 100644 index 0000000000000000000000000000000000000000..8ba52ac78c69f7dc31bb9447a492f9103b08522e Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CZPqtkVs.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C_4yPi-7.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C_4yPi-7.js.br new file mode 100644 index 0000000000000000000000000000000000000000..5b862c786b733796569cec91819846f2a169e70f --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C_4yPi-7.js.br @@ -0,0 +1,4 @@ +˜€dœοÏEz9ëD�égNÅgÀÄ,wFؽµ‚𷧶æeOm¥P[X†99/Ǥ8㨾@pÿ߈0ÕJŠí×èÀˆ‰Ⱦœ‹—�7‰7÷ìäǎ“€8.5Š�BÁ½q¤T<û;u§êe3&ª?²`Á;×-{“ +èâˆ*&ë&@¿+Yøz +˜ÀUM®#^j×΄’·h„"|½e͐ÑÅ·{H06 !ƒ¯2›Pýÿ¹Péw6áê.z“ñ†ï~? LeËø‚¿g“+\cÚ +ý#÷e·¹ÌøY/z“ñ \ No newline at end of file diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C_9c_tWS.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C_9c_tWS.js.br new file mode 100644 index 0000000000000000000000000000000000000000..1eca4bafad10a0cd6775a361240034fd54e1e31a Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/C_9c_tWS.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CaAkK5HG.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CaAkK5HG.js.br new file mode 100644 index 0000000000000000000000000000000000000000..ccb9f35cb497e690730a25871a51b07adac13a52 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CaAkK5HG.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CaQXMYp3.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CaQXMYp3.js.br new file mode 100644 index 0000000000000000000000000000000000000000..c49ba915ffbac6e75372bd3f30d1d110b67d71a8 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CaQXMYp3.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CaUFw2Pq.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CaUFw2Pq.js.br new file mode 100644 index 0000000000000000000000000000000000000000..32c30e9cd1a154282bffe8d400df3dfc27486bed Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CaUFw2Pq.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CaxWC8lQ.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CaxWC8lQ.js.br new file mode 100644 index 0000000000000000000000000000000000000000..2727ff3682a3e33c2397b3fe2275c91cb0127b30 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CaxWC8lQ.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Cbv0BLno.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Cbv0BLno.js.br new file mode 100644 index 0000000000000000000000000000000000000000..b2020473adfc1fd47ab1d4b37aa840c3e3dd672e Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Cbv0BLno.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Cc3OSVma.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Cc3OSVma.js.br new file mode 100644 index 0000000000000000000000000000000000000000..898a5e2457cce16887f977ebf3a5a3d32e831fa2 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Cc3OSVma.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CcUXrTMN.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CcUXrTMN.js.br new file mode 100644 index 0000000000000000000000000000000000000000..aa3a606cd0d2fccea29816ea89194cf3143aa3e6 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CcUXrTMN.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CcxNBHMb.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CcxNBHMb.js.br new file mode 100644 index 0000000000000000000000000000000000000000..cf48b929890cf2ff1050293f930645c4b58d6c9b Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CcxNBHMb.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CdEA5IGF.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CdEA5IGF.js.br new file mode 100644 index 0000000000000000000000000000000000000000..83997c641d0c51bb21f2a60a0ff7ed6b498e5855 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CdEA5IGF.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CdeV9hW7.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CdeV9hW7.js.br new file mode 100644 index 0000000000000000000000000000000000000000..e75db057e5a1aed66ef6da40996037a19021861d Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CdeV9hW7.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CeL0H6Qg.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CeL0H6Qg.js.br new file mode 100644 index 0000000000000000000000000000000000000000..69b9aa717a41bb677868aa9b4d34bb76c070da02 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CeL0H6Qg.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CeWs7Vwr.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CeWs7Vwr.js.br new file mode 100644 index 0000000000000000000000000000000000000000..7a11b233becc3244bc813b4634ad52914ad3acb1 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CeWs7Vwr.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CfJ4F0tq.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CfJ4F0tq.js.br new file mode 100644 index 0000000000000000000000000000000000000000..e00e846b019e185dd383653e5de8cfc2ff707394 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CfJ4F0tq.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CfMXSLnf.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CfMXSLnf.js.br new file mode 100644 index 0000000000000000000000000000000000000000..02f8566dd53fd7d1a4c812ebed841d0b1bf32c41 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CfMXSLnf.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Cfr1v6qb.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Cfr1v6qb.js.br new file mode 100644 index 0000000000000000000000000000000000000000..7c345983a64eb7aeae3381860038ee4d0a8228a4 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Cfr1v6qb.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Cfwu0Kdq.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Cfwu0Kdq.js.br new file mode 100644 index 0000000000000000000000000000000000000000..ed7f1033e894b5858736d2e7be7c556505e334dc Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Cfwu0Kdq.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CfyLY5zY.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CfyLY5zY.js.br new file mode 100644 index 0000000000000000000000000000000000000000..b3342a0c46d8d6c31bbcf026c19e120c83394e45 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CfyLY5zY.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CgI_a4kL.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CgI_a4kL.js.br new file mode 100644 index 0000000000000000000000000000000000000000..1e5c20e6c08e2125ec3c6720db879c2588c4bb21 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CgI_a4kL.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CgKkCUju.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CgKkCUju.js.br new file mode 100644 index 0000000000000000000000000000000000000000..e5139903e350c9f025f8df2b3fef9189784757a0 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CgKkCUju.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CggbCgVT.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CggbCgVT.js.br new file mode 100644 index 0000000000000000000000000000000000000000..6957b7f1ba6df07d2008939cab447c635ffa1c7e Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CggbCgVT.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CgsE0GYM.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CgsE0GYM.js.br new file mode 100644 index 0000000000000000000000000000000000000000..61de150f672318a6d8646af30dfdcdfb465890e5 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CgsE0GYM.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CgwS5NvP.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CgwS5NvP.js.br new file mode 100644 index 0000000000000000000000000000000000000000..1b49c1b2ac7b3b3ff3a6bbcd6dc522f28314e83f Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CgwS5NvP.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ChNEShjw.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ChNEShjw.js.br new file mode 100644 index 0000000000000000000000000000000000000000..c15255c7793b0607bd70d7438b85cb6048ea3d75 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ChNEShjw.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ChO5Sf8q.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ChO5Sf8q.js.br new file mode 100644 index 0000000000000000000000000000000000000000..2e27870d6c83ea8558c0ebd96cba0a35374dce32 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ChO5Sf8q.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ChZvw3VL.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ChZvw3VL.js.br new file mode 100644 index 0000000000000000000000000000000000000000..0950913d23bcbede62727a5dcff05c9a71ef12b6 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ChZvw3VL.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ChaHmKrV.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ChaHmKrV.js.br new file mode 100644 index 0000000000000000000000000000000000000000..8aa8cafaea102f5fea0b124ea0cd027d7240df4e Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ChaHmKrV.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Chmi7GW4.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Chmi7GW4.js.br new file mode 100644 index 0000000000000000000000000000000000000000..7894e6d658edbdbc19e5335378a58584432b0a86 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Chmi7GW4.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CiKqOoV2.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CiKqOoV2.js.br new file mode 100644 index 0000000000000000000000000000000000000000..1018ab3317b321bdb538dac004ef2ad4ea66e762 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CiKqOoV2.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CiR-kN6p.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CiR-kN6p.js.br new file mode 100644 index 0000000000000000000000000000000000000000..4088fbc3faabcbdf84d254fd3d3d6bcef796567a Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CiR-kN6p.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Cj6yJMbt.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Cj6yJMbt.js.br new file mode 100644 index 0000000000000000000000000000000000000000..c1006996cdbf97e5c20588c620d81a8e12c1dfc9 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Cj6yJMbt.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CjFT_Tl9.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CjFT_Tl9.js.br new file mode 100644 index 0000000000000000000000000000000000000000..6498ca1b9c2bfa7cc621463246f6d489de729370 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CjFT_Tl9.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CjRrxweg.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CjRrxweg.js.br new file mode 100644 index 0000000000000000000000000000000000000000..09b0db3e0f8a52b2d6fea1f0024df96f189befa0 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CjRrxweg.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Cjlqiq2S.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Cjlqiq2S.js.br new file mode 100644 index 0000000000000000000000000000000000000000..05f4c3de62b2f76de32e4b08c6d9f224cc45dafa Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Cjlqiq2S.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Ck5mDsqo.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Ck5mDsqo.js.br new file mode 100644 index 0000000000000000000000000000000000000000..5c8162550675800f16ca1fa33fa8c6e3cbb1abfa Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Ck5mDsqo.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CkTJ1tjy.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CkTJ1tjy.js.br new file mode 100644 index 0000000000000000000000000000000000000000..f228ada9a0df223821215a983f11685c2bb969d5 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CkTJ1tjy.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CkayAnI9.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CkayAnI9.js.br new file mode 100644 index 0000000000000000000000000000000000000000..027cd4779b652452a2f7942e1b27f2e0312c7cc6 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CkayAnI9.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Ckda9Ets.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Ckda9Ets.js.br new file mode 100644 index 0000000000000000000000000000000000000000..4c21d1d75df2d89fd9c214b6b88496a2a60ac05f Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Ckda9Ets.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CkmiMh5P.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CkmiMh5P.js.br new file mode 100644 index 0000000000000000000000000000000000000000..f63710283e564e8d9c5105858eaafda98a67c90f Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CkmiMh5P.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ClfVqkNd.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ClfVqkNd.js.br new file mode 100644 index 0000000000000000000000000000000000000000..2fbabd52932585638676cc0404aa8fd97134cf8a Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ClfVqkNd.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Clrntsig.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Clrntsig.js.br new file mode 100644 index 0000000000000000000000000000000000000000..cc06a7ce375cac1ea5b44e07aea800d53cc588b8 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Clrntsig.js.br @@ -0,0 +1 @@ +@äšΝe¢"Ê1UT?&�´>uS»˜RýµÒ6eé qBQ!eíÌ`°˜ôýçÜ'AÁv¾3|áXþ›~äM¦jZ©þêéRRá^r3 î` ^éÎ:Œ]îòŸÁFB¿– q ́×Lº܁y㌞§‹+ø·,®Ð.å^£0„y/\K‚€n$Ôæ˜ ùø#¤¾ž–�鼱>]5Y¢²$Ãå;üµ‚)֧C#2¤_œܤ‰¤! »V‚Š×êElIµd4»áNã™d:BDí´¦JPGÞJc¥Ã8†�aýÏDNªøڰÇ;8ü~aiBYÄ9¡I¿¯À‰ ΕrUö'ðr¬mžó°� \ No newline at end of file diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ClujRcW2.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ClujRcW2.js.br new file mode 100644 index 0000000000000000000000000000000000000000..3d5014424ae34e7c51ae529600cdfd5f7a3a0308 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ClujRcW2.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CmXaic9n.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CmXaic9n.js.br new file mode 100644 index 0000000000000000000000000000000000000000..602ca08652b7cf34621aaf4400e544d042b53a92 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CmXaic9n.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CmsuChfc.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CmsuChfc.js.br new file mode 100644 index 0000000000000000000000000000000000000000..9b552d90e21db0e3fda5f1bf2e265fbc1e781ac2 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CmsuChfc.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CnNR34e2.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CnNR34e2.js.br new file mode 100644 index 0000000000000000000000000000000000000000..3a9233637d574f967ca206680771790ccce1f521 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CnNR34e2.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CoTZgVHC.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CoTZgVHC.js.br new file mode 100644 index 0000000000000000000000000000000000000000..e69a05a143cad404fed89cc1f2d57b53c93dd21a Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CoTZgVHC.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Coqv_2KJ.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Coqv_2KJ.js.br new file mode 100644 index 0000000000000000000000000000000000000000..2e569aa78abd4d1637d07769a4ef0abc4d7aa48b Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Coqv_2KJ.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CorkU7Mc.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CorkU7Mc.js.br new file mode 100644 index 0000000000000000000000000000000000000000..d0bb6f7b0e8e9f800c8759b6a76f7a145eee2176 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CorkU7Mc.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Cp-_pyE8.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Cp-_pyE8.js.br new file mode 100644 index 0000000000000000000000000000000000000000..ddde5fe61d4d4ff04dee1346012f0ded03505319 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Cp-_pyE8.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Cp77cbjm.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Cp77cbjm.js.br new file mode 100644 index 0000000000000000000000000000000000000000..2aa4db3f9686324c162b89852c601efe90590882 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Cp77cbjm.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CrYzg1fH.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CrYzg1fH.js.br new file mode 100644 index 0000000000000000000000000000000000000000..5df559ec03f3e6308f63b79448405e5b456e2f3b --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CrYzg1fH.js.br @@ -0,0 +1,5 @@ +j@dMg{—)õdK.Âå1Èפøÿß|m¿¢aL[cxQhaâYÖÇoîJó@áwͦ�|<�LxÞhŠV(6ë90w¡Ù:œd¯íø0núÌXœ½º߫H@¤`pTÄ,8�’møcV¼r—:î¼Ëả•҈ÂÑyQï}p2>²�qÇfüøu!´è{¡lÊäz™mÖ/i +@ôClc’x‰´³–V&äUVìf5 \ No newline at end of file diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CroXDSe_.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CroXDSe_.js.br new file mode 100644 index 0000000000000000000000000000000000000000..ea2260edd0ce27a9c0faf4093d990d0b05bf8609 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CroXDSe_.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Ct3Dio0y.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Ct3Dio0y.js.br new file mode 100644 index 0000000000000000000000000000000000000000..d2cd83333b757410415d0c0549fc859693f81573 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Ct3Dio0y.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Cu1irOMr.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Cu1irOMr.js.br new file mode 100644 index 0000000000000000000000000000000000000000..211adb1a69c8a1cf0a17f78a37ce65309d2a7667 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Cu1irOMr.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Cv5cpeuX.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Cv5cpeuX.js.br new file mode 100644 index 0000000000000000000000000000000000000000..c9e07f62a162acb562810dc89f472b9c47188cbe Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Cv5cpeuX.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Cw4e_4wL.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Cw4e_4wL.js.br new file mode 100644 index 0000000000000000000000000000000000000000..7aca340dfe79d60bdae7671f0728e8567c7dd446 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Cw4e_4wL.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CwD1Ut2o.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CwD1Ut2o.js.br new file mode 100644 index 0000000000000000000000000000000000000000..1c3a7e2da0eabd9702216866ae0c3bfcc3e2d01f Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CwD1Ut2o.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CwT3xhCY.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CwT3xhCY.js.br new file mode 100644 index 0000000000000000000000000000000000000000..db891b88b0947313401675cc21e2d9034491704c Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CwT3xhCY.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CxaS7IvM.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CxaS7IvM.js.br new file mode 100644 index 0000000000000000000000000000000000000000..2210cab0bc28c7f2a1e26797a14c47571e285698 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CxaS7IvM.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CxjWqi-6.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CxjWqi-6.js.br new file mode 100644 index 0000000000000000000000000000000000000000..44ad62448216676c9f3d6dae1b9f13ea22a59f76 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CxjWqi-6.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CyGPZSYV.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CyGPZSYV.js.br new file mode 100644 index 0000000000000000000000000000000000000000..d809b6876b33bfb5c257af6fbd3df11d3cc0721d Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CyGPZSYV.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Cyxgs-16.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Cyxgs-16.js.br new file mode 100644 index 0000000000000000000000000000000000000000..1e63365a9e5ff3d21570f568323bcf65fc00b409 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Cyxgs-16.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CzBLDS5V.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CzBLDS5V.js.br new file mode 100644 index 0000000000000000000000000000000000000000..02640c6c57d4cc372a7bc89dc9f6a0cf850b4f70 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CzBLDS5V.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CzDG__Ur.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CzDG__Ur.js.br new file mode 100644 index 0000000000000000000000000000000000000000..edefc7259a8c283d8de84df9e2d288f702507331 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CzDG__Ur.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CzLqdY2s.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CzLqdY2s.js.br new file mode 100644 index 0000000000000000000000000000000000000000..5e9928cbba1154e1041dfc43bb4437d633ff357e Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/CzLqdY2s.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D-5WjwPW.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D-5WjwPW.js.br new file mode 100644 index 0000000000000000000000000000000000000000..326109c352ad33fb13f97e79be5cdd285a963ce8 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D-5WjwPW.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D-QblIju.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D-QblIju.js.br new file mode 100644 index 0000000000000000000000000000000000000000..6925b4a290567d10e766fef69deca9748a2a0ff5 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D-QblIju.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D-jLF3ix.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D-jLF3ix.js.br new file mode 100644 index 0000000000000000000000000000000000000000..9dba2582d0bd0900a6debda2d88daa2cdaaf715d Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D-jLF3ix.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D0XecflT.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D0XecflT.js.br new file mode 100644 index 0000000000000000000000000000000000000000..03e53114b6c2187362a161a2b469b76ab6682911 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D0XecflT.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D0pPJnuh.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D0pPJnuh.js.br new file mode 100644 index 0000000000000000000000000000000000000000..042ea9d2c6efc72bf51e13acf73ab7234a1d46a0 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D0pPJnuh.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D17RDxk6.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D17RDxk6.js.br new file mode 100644 index 0000000000000000000000000000000000000000..c2821a37505ae201dae8b64a1f442116d557cb4e Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D17RDxk6.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D2H5haVF.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D2H5haVF.js.br new file mode 100644 index 0000000000000000000000000000000000000000..f3feb4d3ae23d9c51fed92b71e3de85d3ac45a7a Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D2H5haVF.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D2ltt35b.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D2ltt35b.js.br new file mode 100644 index 0000000000000000000000000000000000000000..3e8303f42975543f4c7ee48c480731f253f2c373 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D2ltt35b.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D3XbJXIJ.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D3XbJXIJ.js.br new file mode 100644 index 0000000000000000000000000000000000000000..1751f5954de14f40c17b3f6acfe9b4b2b359172f Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D3XbJXIJ.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D3zHHxyp.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D3zHHxyp.js.br new file mode 100644 index 0000000000000000000000000000000000000000..ffc7071fb8df346ca1f4a75a19b847e2711a3129 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D3zHHxyp.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D4kK_dEQ.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D4kK_dEQ.js.br new file mode 100644 index 0000000000000000000000000000000000000000..36d4bc3b29c4b1863fdb2fbbde8ff2f19d5c71a3 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D4kK_dEQ.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D4oMFiss.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D4oMFiss.js.br new file mode 100644 index 0000000000000000000000000000000000000000..1cb09e219615afa5915231b81c2b7e9e245532d0 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D4oMFiss.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D4ogso1v.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D4ogso1v.js.br new file mode 100644 index 0000000000000000000000000000000000000000..85531ba8eaf19297c18bbd1c7f1edf525ec65c50 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D4ogso1v.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D55ft1gm.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D55ft1gm.js.br new file mode 100644 index 0000000000000000000000000000000000000000..9b3b8c6b677517bcaffb2d16145d472e6fa3763a Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D55ft1gm.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D5B7fKvp.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D5B7fKvp.js.br new file mode 100644 index 0000000000000000000000000000000000000000..030efe15bfa08982e7b7911e70d862fc78c27109 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D5B7fKvp.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D5HgG4le.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D5HgG4le.js.br new file mode 100644 index 0000000000000000000000000000000000000000..0b6c4b4a7a405a5002ba11b9c7861507a0ee0361 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D5HgG4le.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D5L7uc1s.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D5L7uc1s.js.br new file mode 100644 index 0000000000000000000000000000000000000000..8e9cb220db96d79b0e85a505205f756c2bc7dbc8 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D5L7uc1s.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D6QnWvYe.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D6QnWvYe.js.br new file mode 100644 index 0000000000000000000000000000000000000000..1cb8331cd3333d6cde4d308a033c579b3a140edd Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D6QnWvYe.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D6jculG7.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D6jculG7.js.br new file mode 100644 index 0000000000000000000000000000000000000000..199bce627d938d4fa0823436f42fd6a197864a7b Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D6jculG7.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D7Ct-6yo.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D7Ct-6yo.js.br new file mode 100644 index 0000000000000000000000000000000000000000..406acf1e0af5ec559d93f61c6e5291b10632082d Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D7Ct-6yo.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D7Z11ymY.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D7Z11ymY.js.br new file mode 100644 index 0000000000000000000000000000000000000000..2bfdff396ca6d23b8b47a3d8429f01b8dc929ea3 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D7Z11ymY.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D89y5_dM.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D89y5_dM.js.br new file mode 100644 index 0000000000000000000000000000000000000000..6412a3407d7fc6f7266251eca9694015bcc88b93 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D89y5_dM.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D9HHz_rM.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D9HHz_rM.js.br new file mode 100644 index 0000000000000000000000000000000000000000..e617c464fb3ef498d689cfce97e8580551175ad0 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D9HHz_rM.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D9kC5om8.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D9kC5om8.js.br new file mode 100644 index 0000000000000000000000000000000000000000..0edc17673e914fa0ef9b0280bad4a1154344d0b3 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D9kC5om8.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DB8NKgIY.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DB8NKgIY.js.br new file mode 100644 index 0000000000000000000000000000000000000000..e1bf5c40bbb2ed98e04d0fc7779749ac5b887ea6 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DB8NKgIY.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DBurS44A.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DBurS44A.js.br new file mode 100644 index 0000000000000000000000000000000000000000..4ea37ba728ec76e7c67c8cfac50222d2c5cc5154 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DBurS44A.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DCHLTnV8.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DCHLTnV8.js.br new file mode 100644 index 0000000000000000000000000000000000000000..5c215086c645b9dcecb2f7107b8796a56f8672f4 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DCHLTnV8.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DDcWj6Km.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DDcWj6Km.js.br new file mode 100644 index 0000000000000000000000000000000000000000..485f0a5d76f72583e8828a2621e4af0f10fc85cc Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DDcWj6Km.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DDpX7qj4.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DDpX7qj4.js.br new file mode 100644 index 0000000000000000000000000000000000000000..aae113973d0f5ff05c2825b5ba1b159a37d110ea Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DDpX7qj4.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DE1SfPU2.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DE1SfPU2.js.br new file mode 100644 index 0000000000000000000000000000000000000000..eaa07645e4a4d84d6e228e0f56d819246cb1ff32 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DE1SfPU2.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DEHP7N_q.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DEHP7N_q.js.br new file mode 100644 index 0000000000000000000000000000000000000000..9d27d69032daed7c2bcad56865381d123e43346f Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DEHP7N_q.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DEMlrU69.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DEMlrU69.js.br new file mode 100644 index 0000000000000000000000000000000000000000..18d26e2d4339f34ad6fc632ac713f1d72e479e0a Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DEMlrU69.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DEn8SQcv.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DEn8SQcv.js.br new file mode 100644 index 0000000000000000000000000000000000000000..257c54dfbea9ee1f8f55722a54167db8c7210355 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DEn8SQcv.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DEnr2Y_d.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DEnr2Y_d.js.br new file mode 100644 index 0000000000000000000000000000000000000000..fba40e2310827f060e2d86f9b937567bf946e531 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DEnr2Y_d.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DG9EJI0h.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DG9EJI0h.js.br new file mode 100644 index 0000000000000000000000000000000000000000..bb584a1f6c464473e89488e62912ecaafdd167b4 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DG9EJI0h.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DGHJy_Od.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DGHJy_Od.js.br new file mode 100644 index 0000000000000000000000000000000000000000..534f3f8e2816d37f9385f2ccdc9190919037c20f Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DGHJy_Od.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DGfF3Cky.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DGfF3Cky.js.br new file mode 100644 index 0000000000000000000000000000000000000000..aeb1a093578be8f1a01e979356816ba0c2d262dc Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DGfF3Cky.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DHP8IhW9.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DHP8IhW9.js.br new file mode 100644 index 0000000000000000000000000000000000000000..184323f26de4d98a0d95198491d6fdeb8a4a5ec1 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DHP8IhW9.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DHTlNGIm.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DHTlNGIm.js.br new file mode 100644 index 0000000000000000000000000000000000000000..bb5a00009c7bbe3fcbf37cf9e0ec7a2e696a76f5 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DHTlNGIm.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DI02TNDn.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DI02TNDn.js.br new file mode 100644 index 0000000000000000000000000000000000000000..85f6f1e46c6bf4d445a766ee08dd649d6c703bca Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DI02TNDn.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DI97dDne.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DI97dDne.js.br new file mode 100644 index 0000000000000000000000000000000000000000..a845e3d2cde16f15b357261b05b59007568e5704 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DI97dDne.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DI9qbxXQ.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DI9qbxXQ.js.br new file mode 100644 index 0000000000000000000000000000000000000000..248fae3d284d92b7887b1a294af84f95cd5fa4fe Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DI9qbxXQ.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DIG4S-QJ.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DIG4S-QJ.js.br new file mode 100644 index 0000000000000000000000000000000000000000..58885bf0a3ad82c9ecf21d0f319a56105102fcf1 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DIG4S-QJ.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DIHe5Tlg.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DIHe5Tlg.js.br new file mode 100644 index 0000000000000000000000000000000000000000..9ba964404e6c31515a7809004ca124252b7b76ac Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DIHe5Tlg.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DIhZz9oT.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DIhZz9oT.js.br new file mode 100644 index 0000000000000000000000000000000000000000..f2936884a0bf3eaae191c2346adf1ed6b1c2c1f1 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DIhZz9oT.js.br @@ -0,0 +1,4 @@ +Ë`ķ_3_£¶¿”̼¡:‰z‘“]ÝқºYÒS:Ðç­í£HËÃ& +CJ· FPÇUCm)HG’Áõٱ±*¸3o¯ +Ídú~×üÏÊ÷r’Šy@5 +”£ðQ ìÁGððž„*XÉ׿4wv^Z@¨O¿üþ]ÿ8ñ‡򩥑�EáhÐUyâ¾lü‘]�k0.o룛çSnìí¦ÿû·#~`áۑŸkrНñC¨•<…DüôìLøÉ_&e´_éSIü�Âäû©¢‰oàVh ]þT�v䗌�¾ûs@9Œ´žÁ–f,'×Ú“”òײZÆǒHRF%!7üÂæ+£"�2<âkpàÕ-ׇ \ No newline at end of file diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DImexGf9.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DImexGf9.js.br new file mode 100644 index 0000000000000000000000000000000000000000..cd7a22b8be6bc189288b56aa5a61c94fc484403c Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DImexGf9.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DIoHPkfu.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DIoHPkfu.js.br new file mode 100644 index 0000000000000000000000000000000000000000..74709c8517844e73791a4829787d373f884e51fe Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DIoHPkfu.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DIuuOgbn.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DIuuOgbn.js.br new file mode 100644 index 0000000000000000000000000000000000000000..e63b7b37a92d88625596997a58c425bf5bb9f02e Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DIuuOgbn.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DK0ddAtR.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DK0ddAtR.js.br new file mode 100644 index 0000000000000000000000000000000000000000..143523a424994f22b465bb616d7e6794a0ff9196 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DK0ddAtR.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DKcI8TEd.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DKcI8TEd.js.br new file mode 100644 index 0000000000000000000000000000000000000000..099f1e39bb942ad07ba42ef51fd4d1a09248a72c Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DKcI8TEd.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DKlb049u.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DKlb049u.js.br new file mode 100644 index 0000000000000000000000000000000000000000..e3af30511571a52cc1b19c98803c020119ac0ae3 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DKlb049u.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DOwvKBYO.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DOwvKBYO.js.br new file mode 100644 index 0000000000000000000000000000000000000000..40e5c05dd846fdbd3d43ae4392c84a4932ef3a12 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DOwvKBYO.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DPDcJI4L.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DPDcJI4L.js.br new file mode 100644 index 0000000000000000000000000000000000000000..3acdca783d85a5eb28ab2ee86f24f823a66ef2fb Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DPDcJI4L.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DPDp-VbV.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DPDp-VbV.js.br new file mode 100644 index 0000000000000000000000000000000000000000..d444c89875e365651f00485f90e4dc9370f5b832 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DPDp-VbV.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DPUnnTO0.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DPUnnTO0.js.br new file mode 100644 index 0000000000000000000000000000000000000000..2ac216c9d5f0837b173cb343d2a571d2bbeb5546 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DPUnnTO0.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DQwCKG9Y.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DQwCKG9Y.js.br new file mode 100644 index 0000000000000000000000000000000000000000..8dcd51ea2b8eb98fcdc18ddd988b795e271caf38 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DQwCKG9Y.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DRLxo-M4.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DRLxo-M4.js.br new file mode 100644 index 0000000000000000000000000000000000000000..85c3e21a52993fd9a05be2a7ef86970256a8f4a7 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DRLxo-M4.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DRMcuelW.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DRMcuelW.js.br new file mode 100644 index 0000000000000000000000000000000000000000..5d5f2e174fa1d78085684ace6b15148aee2c9f16 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DRMcuelW.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DS-aB8nK.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DS-aB8nK.js.br new file mode 100644 index 0000000000000000000000000000000000000000..3aaae793349e0c8e3072e4aaa96341504570383c Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DS-aB8nK.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DSP9u3hq.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DSP9u3hq.js.br new file mode 100644 index 0000000000000000000000000000000000000000..ec793888710d43a03c3979a30bc54c442b87493d Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DSP9u3hq.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DSU-t8ya.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DSU-t8ya.js.br new file mode 100644 index 0000000000000000000000000000000000000000..25beab455d96c32276a7415064589a79bb74fefa Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DSU-t8ya.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DSw70j7P.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DSw70j7P.js.br new file mode 100644 index 0000000000000000000000000000000000000000..c2bf4da47541d942ccae699f50b4949d86272164 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DSw70j7P.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DT6oXV-b.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DT6oXV-b.js.br new file mode 100644 index 0000000000000000000000000000000000000000..f82e5f2feeaa75d88a44cfdac39d7e3f1c30f68d Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DT6oXV-b.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DUIY_MVC.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DUIY_MVC.js.br new file mode 100644 index 0000000000000000000000000000000000000000..25f522ed103a0c4bab84f21df689cb1b463f20da Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DUIY_MVC.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DUmKUa7I.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DUmKUa7I.js.br new file mode 100644 index 0000000000000000000000000000000000000000..6d2d3e5421da0a24af9b5d4a8664cf00c87efd45 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DUmKUa7I.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DV9Tc2pP.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DV9Tc2pP.js.br new file mode 100644 index 0000000000000000000000000000000000000000..5090ab79f396066b7d31ee6dd61a90b252d0818e Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DV9Tc2pP.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DVc8BCZZ.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DVc8BCZZ.js.br new file mode 100644 index 0000000000000000000000000000000000000000..5a08f72a2ee85334d683c547e47dda86535bebfb Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DVc8BCZZ.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DW1k-Qbl.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DW1k-Qbl.js.br new file mode 100644 index 0000000000000000000000000000000000000000..6e249ec50c8061de4188ffd329758620a5b5a624 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DW1k-Qbl.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DW3Q6ygC.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DW3Q6ygC.js.br new file mode 100644 index 0000000000000000000000000000000000000000..6da66a7f8fb0291b58f061e65cce8a58da2a2c50 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DW3Q6ygC.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DWYoaxq4.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DWYoaxq4.js.br new file mode 100644 index 0000000000000000000000000000000000000000..003246335b9f46edb80764c5f5ab9502d8a24448 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DWYoaxq4.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DWoaHo7p.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DWoaHo7p.js.br new file mode 100644 index 0000000000000000000000000000000000000000..fb925156abc549de689950fdd3b736ae63d0508a Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DWoaHo7p.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DXkhdhDc.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DXkhdhDc.js.br new file mode 100644 index 0000000000000000000000000000000000000000..c5d50c57061036f05670af31449bd116e5d038dd Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DXkhdhDc.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DXwVDO0j.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DXwVDO0j.js.br new file mode 100644 index 0000000000000000000000000000000000000000..26e75b0e19b8b4d6419ee723755095431e16b097 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DXwVDO0j.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DYViBD6X.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DYViBD6X.js.br new file mode 100644 index 0000000000000000000000000000000000000000..44321705064270d80aa9151ca2b6aad5b91aba11 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DYViBD6X.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DYsSY6TH.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DYsSY6TH.js.br new file mode 100644 index 0000000000000000000000000000000000000000..7a2954e7f92e1c4aaa347a6d9aff0906d1d61d8e Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DYsSY6TH.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DZBVySDi.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DZBVySDi.js.br new file mode 100644 index 0000000000000000000000000000000000000000..0d94ccb384193ace2c3bd3e990557ba2716fefce Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DZBVySDi.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DZHi8uU2.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DZHi8uU2.js.br new file mode 100644 index 0000000000000000000000000000000000000000..2ee2391df2af0dc5997df4be19a2c0b4611646d3 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DZHi8uU2.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DZqPijy9.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DZqPijy9.js.br new file mode 100644 index 0000000000000000000000000000000000000000..3cfba568bc9cfa1b993608652b63923b5a5514ef Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DZqPijy9.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D_vQfKw_.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D_vQfKw_.js.br new file mode 100644 index 0000000000000000000000000000000000000000..1eea86cba1138747657495f766ee93d5c1ebbc28 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D_vQfKw_.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D_w9a7DF.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D_w9a7DF.js.br new file mode 100644 index 0000000000000000000000000000000000000000..012421f12cf1bbca1b9ccced02673ca33668e2a0 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/D_w9a7DF.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DaQqvxLX.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DaQqvxLX.js.br new file mode 100644 index 0000000000000000000000000000000000000000..6182ae5248ad8f24c871f230bbb4605e165537ac Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DaQqvxLX.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DaRHKV94.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DaRHKV94.js.br new file mode 100644 index 0000000000000000000000000000000000000000..3a768430cec7119d4387f2e3ad5641baf501df32 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DaRHKV94.js.br @@ -0,0 +1 @@ +– Äïͭû^N0k3ï}ÌÄVLRðӟ¿&_b=¡ §�—±¨ÐjÁ‰M ‚fn�Q!½§Úvg½&¨Ûpy£zÀ½“ó]o)©æF¯Q[µá®Z _ÝeÓÑ>„?TŠmxÌ0€,ôÐ+h¡­ú:׹L¯czÞ*nºb�xO�dkŸÐ'ˆjöeñ֯up·z�§„¨{öñ9õ´Ä;á� j­–[k½>ãý”�׌¦=Ê?^^îã—7*d®, s¦¼.æƒqök$ÊôÓ5ÃÈ&üvÀ|6ø"7 tp@Bo’QÝh\:–ô#˜Tìʢ*�œ®”þ£þØ Õ7Ó@§0eÅdßÌvTà•XÛȊÎZ¿ÐfQÌígº°dA³°b–B±¿[!Í=Âü‰¨kÖPHñɑ#ZxÂh^TÙvº㑨ƒ;@2åÌ:3~Ft\OäiFGG(þýu& ßv3™­ä’$gT˂±é;dýí¬ÌZŸ. á—ã± Oðõôãl"9šÔïÐn'†:öôŽ&sӟšPÆöfM&ú2,,X‹:á! hþ¹ˆÍNÐc-¨³©ªÐpŸÃápã¹ܔÒ6€¨|. !#uZ,»Rқî“j \ No newline at end of file diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Db2X9U1V.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Db2X9U1V.js.br new file mode 100644 index 0000000000000000000000000000000000000000..fa1654aba7565980081badd58112f7fc181f4432 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Db2X9U1V.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Db3aZzBQ.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Db3aZzBQ.js.br new file mode 100644 index 0000000000000000000000000000000000000000..258b018f4802a987aa68da209f9e20bbb02c859b --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Db3aZzBQ.js.br @@ -0,0 +1,2 @@ +Ô€ƒãî²`Øoýú×#D„٢N?W‘I�\Ü޶ïY‚SQÜ>ÇiõkÔòÑ)aT¦þçšúéNµ*ð8ä,›jk  dsÚóé6©/:êՑšG‡ˆÄ0ö7Îc�üC[Èê•n|ú +і¿k*2 +ڶƭÀdðùìˆO­x± ôÔÒjmòª_-�‹N’së;Üã4´ԇ@ÉÅ;ýø9}€‰s¦™°nÏ{vüÿ÷Ѝ¢æ• ‹·¶€*ˆи:�#çžcrÙøœM+ ɧ=·©†Œ¥ùl›hè ½ïOäçe¬à7K8D�»+NL(.OÔ`�¨κ‹ΰ[¯Թ~FÍ+§€Êà/ŠQÅ bJÈ#ï<áí¯(k\̣\?�݇]±¼ެÄ KåÆê&FÅõàtL0]Á›' \ No newline at end of file diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DbReBNpB.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DbReBNpB.js.br new file mode 100644 index 0000000000000000000000000000000000000000..23705f816e1e043866923cf5ee056dd2d8a9f7fd Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DbReBNpB.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Dc6l8Heb.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Dc6l8Heb.js.br new file mode 100644 index 0000000000000000000000000000000000000000..90f7f3fcaf5bfccec4025b317a4fa2d2c02a74a7 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Dc6l8Heb.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DcGFqert.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DcGFqert.js.br new file mode 100644 index 0000000000000000000000000000000000000000..e9710b5f4316e9444ffeb1c9390a4ce96b8fc131 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DcGFqert.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DcMBJcz4.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DcMBJcz4.js.br new file mode 100644 index 0000000000000000000000000000000000000000..a3d802da16cb88bac4bdd995b0b51082baa636b1 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DcMBJcz4.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DcOB9bXz.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DcOB9bXz.js.br new file mode 100644 index 0000000000000000000000000000000000000000..3159c34bd5138512d27c7b343b6e43394444378a Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DcOB9bXz.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DcUPjU6e.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DcUPjU6e.js.br new file mode 100644 index 0000000000000000000000000000000000000000..88b4d9b37a96daa356af7a7072aa2630483451c8 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DcUPjU6e.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DdnRT5Sx.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DdnRT5Sx.js.br new file mode 100644 index 0000000000000000000000000000000000000000..df8a80eb7d3f5baec02dc3f891c422b5f0fef4c6 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DdnRT5Sx.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/De0YD_KZ.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/De0YD_KZ.js.br new file mode 100644 index 0000000000000000000000000000000000000000..e6607a181d431de1951ba1df95cd4b2c0f44fc7f Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/De0YD_KZ.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/De6Yn9uh.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/De6Yn9uh.js.br new file mode 100644 index 0000000000000000000000000000000000000000..f1dbd2e1d9ddf9ed8e7939c070b50f0946b6018d Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/De6Yn9uh.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/De96dwtF.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/De96dwtF.js.br new file mode 100644 index 0000000000000000000000000000000000000000..7721baf6698697af3a1c97bff3523386c7ed4a03 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/De96dwtF.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DeFLprsA.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DeFLprsA.js.br new file mode 100644 index 0000000000000000000000000000000000000000..9a2353a3142d4bb81c91f398530a5ed0f2c25ee5 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DeFLprsA.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DeeZL6UY.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DeeZL6UY.js.br new file mode 100644 index 0000000000000000000000000000000000000000..27ae753517ce33f442cee694c47983f918ea7c6a Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DeeZL6UY.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DffwiOyw.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DffwiOyw.js.br new file mode 100644 index 0000000000000000000000000000000000000000..d20226e57030aab4b314c9d8740ce1f4a53a7575 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DffwiOyw.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Dg0Ou9_j.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Dg0Ou9_j.js.br new file mode 100644 index 0000000000000000000000000000000000000000..82fbc8ebf01f7e75f9489f9c0ccf85ad9902443f --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Dg0Ou9_j.js.br @@ -0,0 +1 @@ +® dÓß~g™J°„ ª_\kûÌ֝šŸ4¥ƒþoemaEaeA˜Hä‰ÿ뜺ÆF‡Èóm”ßʕݞñX•»²¼´`Ð9FZüXâ‡|ŽŠƒ$“-8‹Zœ¶Ãڏ fÔ¨—‡‡ëú陵µÿ/oï[w¾/ö’ƒlRôƒ&§«4øSҲ…5Òhòd³ÖZÙpCNª¦èñ=’O¬ѢÁzb‹É`�H£q4ÉçE»Å ±]֦ÒVךÏãd$4M󚙤#_ªêh4°¼Ùåÿ…õ‚â P²¸�¨X›4ˆbU �u)™ø Àqה“A diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DgB-CnLX.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DgB-CnLX.js.br new file mode 100644 index 0000000000000000000000000000000000000000..31637c828e61dc4aadfbadad4cb9a8e7fd914d6b Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DgB-CnLX.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DgMiRrA4.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DgMiRrA4.js.br new file mode 100644 index 0000000000000000000000000000000000000000..1ab72cd09d2e6e42647dc2b90ced2a7aa62e3037 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DgMiRrA4.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DgzvenUF.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DgzvenUF.js.br new file mode 100644 index 0000000000000000000000000000000000000000..9ca461ad956d03ebd8c7c069c3dbc3fa9763a662 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DgzvenUF.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DhAa5O_o.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DhAa5O_o.js.br new file mode 100644 index 0000000000000000000000000000000000000000..1c7a6390ac4fa7633af601dcc98fe95eeff01c3c Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DhAa5O_o.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DhGdN2qQ.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DhGdN2qQ.js.br new file mode 100644 index 0000000000000000000000000000000000000000..21ec578335241a954311caecbab2f22e96636941 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DhGdN2qQ.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Dhxe8yxG.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Dhxe8yxG.js.br new file mode 100644 index 0000000000000000000000000000000000000000..0e8ebddcde2cb9fd9e1baecfb37a421cff72173b Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Dhxe8yxG.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DiE-6LDB.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DiE-6LDB.js.br new file mode 100644 index 0000000000000000000000000000000000000000..a792e1052bb8aa23c62a0161c873a11501eb430e Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DiE-6LDB.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DiRr0FF4.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DiRr0FF4.js.br new file mode 100644 index 0000000000000000000000000000000000000000..25022d99d6a415202ff3c19f6f51f4ecdeba8a39 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DiRr0FF4.js.br @@ -0,0 +1,7 @@ + äXSÿ|^× JÉ”޹ÕPC5¡ÎBÆÅڪàbeH…RW0‘ͱvиLH$ºÿ‰¯CœwÃFCgrÆplz^z®û_‹¬²wöÍÙhÈ~³Eèq–ƒ‹ʏµ‘ñQª�ÁÀg4$٧»¡7�é"MÅ÷ôãkJ�Á•Ä„®™6öyÿl)ƒ:”�r!ƒÒ>£¤Z¤RÂX¿ò.öüM gîhn™z)ƒfÆå)S8Zjtc ŸÙç˜Ùۼ˜-ŋ: +ɳyÂ9qõ6õ�Üâ9b4`¤þr“�×à0¨>ü#O`ŠU¯(A ucwï¸åÃ#3Äñ!H¹ú�•…�ž|ñ @I¥¾�ñòR}VXËËJüùîU{#‰!a~²¼K¶­Æ9Ni�žv1ÊË#Hã,IsÌôaƒu6!ğ`=¾^ëLü¤^�ã¢dÆ:¨¸̀xQ�ó ç¦ +éër]IرÎÏ0Vèk¬œa�Š*«ò*�ÛÁ,3d‡Ìf ·*¦úÚڃ9òµŽAùà…ÊLøØD¡¶^ƒ­†ygõ1Ŀ1±D«T•c#᫟ŒsA5c7�¤g5–P<)|x½EƇ2†? +ú¶}É ¥h­Û/5BQè#–†>|‰¢Ä wøӲY;´,�}@`Æ_‡©ñˆfžÈØa>Þšvà +zœ r{¬Êj-ZeՏc¢CrY–nò(`L +†¡r +œº"ŽÀ; c—@Dað©aZâ¬"ä=â™€WÌÁü›kVUõg‡Þü&?f3L.Š”T�sJLÿR^ÒLj¤Ÿι4Uv�ڼÒ â> \ No newline at end of file diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Dit2lyvC.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Dit2lyvC.js.br new file mode 100644 index 0000000000000000000000000000000000000000..bd851190b634555c4acb9984ad80018b5b3c5378 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Dit2lyvC.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DjbiplaX.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DjbiplaX.js.br new file mode 100644 index 0000000000000000000000000000000000000000..95c10bd86974824c21f74b9f914db6669fdd9253 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DjbiplaX.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DkGuZIEp.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DkGuZIEp.js.br new file mode 100644 index 0000000000000000000000000000000000000000..80878799510570ac98ada4401ec4e5868e1da399 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DkGuZIEp.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DkjZtmdr.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DkjZtmdr.js.br new file mode 100644 index 0000000000000000000000000000000000000000..af9203047bd21ad1ee8332ff4e604ccc8f9301fd Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DkjZtmdr.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DlFoRn3p.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DlFoRn3p.js.br new file mode 100644 index 0000000000000000000000000000000000000000..b23591b33a80188b6fb8a63cb325156a9b0f7bf7 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DlFoRn3p.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DlrPKvoN.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DlrPKvoN.js.br new file mode 100644 index 0000000000000000000000000000000000000000..5df2f9da4b60a6c2d1feb09e4682437ce7785447 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DlrPKvoN.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Dm6x_zNF.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Dm6x_zNF.js.br new file mode 100644 index 0000000000000000000000000000000000000000..0b271902112aacc3971580dc3aaf7ac7580c2b16 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Dm6x_zNF.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DmY4Ha4T.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DmY4Ha4T.js.br new file mode 100644 index 0000000000000000000000000000000000000000..7c542f09ac7a70cd5e27350171b73d831dba6abf Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DmY4Ha4T.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DmmdAslm.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DmmdAslm.js.br new file mode 100644 index 0000000000000000000000000000000000000000..71331d45adf2a758eae885cebc941afcd1e7b601 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DmmdAslm.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Dmth1JHB.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Dmth1JHB.js.br new file mode 100644 index 0000000000000000000000000000000000000000..a4750f3fed2ce7ea245bb037f9d5180377ce98c1 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Dmth1JHB.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Do2L02i9.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Do2L02i9.js.br new file mode 100644 index 0000000000000000000000000000000000000000..6097e3ba31d1a15b136ec01ab8e8eb05c26852ba Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Do2L02i9.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DoWOc2fJ.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DoWOc2fJ.js.br new file mode 100644 index 0000000000000000000000000000000000000000..ecc2f44063d7e2f3461ac235614c345934db369f Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DoWOc2fJ.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DptShdHg.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DptShdHg.js.br new file mode 100644 index 0000000000000000000000000000000000000000..2b0c1131302042b5966c828dc9a132ecea334821 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DptShdHg.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DpxK1ZE1.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DpxK1ZE1.js.br new file mode 100644 index 0000000000000000000000000000000000000000..95931e2623dc7502565275c06e503ec297f8c885 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DpxK1ZE1.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Dr6BdZp3.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Dr6BdZp3.js.br new file mode 100644 index 0000000000000000000000000000000000000000..914825b6d6ce747ac0f714e2220214d576813fcf Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Dr6BdZp3.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DrLBYeRj.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DrLBYeRj.js.br new file mode 100644 index 0000000000000000000000000000000000000000..3bb582521c1616818e7acb39b8a22b4a1bcbd73c Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DrLBYeRj.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DrX7hipT.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DrX7hipT.js.br new file mode 100644 index 0000000000000000000000000000000000000000..ad7dad90816dab445ecce9e72cea0c92d29528c0 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DrX7hipT.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DsCXHVTH.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DsCXHVTH.js.br new file mode 100644 index 0000000000000000000000000000000000000000..6e2a1a57b0b3dd03bb38316557ed8bb16ac2344e Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DsCXHVTH.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DsDodxuy.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DsDodxuy.js.br new file mode 100644 index 0000000000000000000000000000000000000000..a89296590f8b6d49c7ddf6521f01d63698587375 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DsDodxuy.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DsVLTbvy.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DsVLTbvy.js.br new file mode 100644 index 0000000000000000000000000000000000000000..44df1fd9575a5c1a2aa1b80d4454c4ff3b69a7f4 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DsVLTbvy.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DslCpOEW.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DslCpOEW.js.br new file mode 100644 index 0000000000000000000000000000000000000000..00c14b5db020f37686abcf9a6b28bb8fd237a17b Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DslCpOEW.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DsmfjRO1.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DsmfjRO1.js.br new file mode 100644 index 0000000000000000000000000000000000000000..afb4eb56cc5d3a96d8309f25278eda8bfcce8a59 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DsmfjRO1.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DsnL9ASl.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DsnL9ASl.js.br new file mode 100644 index 0000000000000000000000000000000000000000..aa1f8f70970c0f2eb25e8927946d5a9479d7755b Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DsnL9ASl.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DsyVL5bs.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DsyVL5bs.js.br new file mode 100644 index 0000000000000000000000000000000000000000..3d5022d9ba4d6366bb34961394cac033bc0e3682 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DsyVL5bs.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DtiFXOie.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DtiFXOie.js.br new file mode 100644 index 0000000000000000000000000000000000000000..09ec10192acb991c0ebef3a5621d2b5aaf943af3 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DtiFXOie.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DuENfFCF.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DuENfFCF.js.br new file mode 100644 index 0000000000000000000000000000000000000000..e5783bf5840b7b0bb5671b36aede3a42e3d916ea Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DuENfFCF.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DuYt0E70.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DuYt0E70.js.br new file mode 100644 index 0000000000000000000000000000000000000000..1717cc5a19716f091b00664252fd3d7033551e5a Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DuYt0E70.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Dv0J-L5Y.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Dv0J-L5Y.js.br new file mode 100644 index 0000000000000000000000000000000000000000..a0fa1f74398b846d3c2d30be760ff3333696dba4 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Dv0J-L5Y.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DvP6_yeK.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DvP6_yeK.js.br new file mode 100644 index 0000000000000000000000000000000000000000..cfded3e96c0d67a622e899f297099c503d5e0c7c Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DvP6_yeK.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DveGIyMu.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DveGIyMu.js.br new file mode 100644 index 0000000000000000000000000000000000000000..fc2408be70dc51d828aa1ca1c4924d4029d64581 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DveGIyMu.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DwAoyKc9.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DwAoyKc9.js.br new file mode 100644 index 0000000000000000000000000000000000000000..7622b17b0b5fb8ec7e071a037f40b2e384fe261b Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DwAoyKc9.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DwMYHaNR.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DwMYHaNR.js.br new file mode 100644 index 0000000000000000000000000000000000000000..a19e9182fb1cadd381f51701a0d964386152eb2c Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DwMYHaNR.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Dx1bMMC0.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Dx1bMMC0.js.br new file mode 100644 index 0000000000000000000000000000000000000000..a67a194eae17949da3c873397dd3fb4c576b3ff1 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Dx1bMMC0.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DyMn4Lg1.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DyMn4Lg1.js.br new file mode 100644 index 0000000000000000000000000000000000000000..e613f858c8efb4f678c846bf6103ccd52f629fe7 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DyMn4Lg1.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DyUNOMTA.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DyUNOMTA.js.br new file mode 100644 index 0000000000000000000000000000000000000000..12c590e4999e8de1385dad6945c270e1a0661ef3 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/DyUNOMTA.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Dz7yJOCz.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Dz7yJOCz.js.br new file mode 100644 index 0000000000000000000000000000000000000000..7547a58dcbb12c99d1a77aeb25d4c4631ce4dcba Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Dz7yJOCz.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/E4-8HMBX.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/E4-8HMBX.js.br new file mode 100644 index 0000000000000000000000000000000000000000..67de88db7f1c9963a60f584776028245b6ac1e5b Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/E4-8HMBX.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/E8HtgdYe.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/E8HtgdYe.js.br new file mode 100644 index 0000000000000000000000000000000000000000..9676a937a8f33bc1ae83ff47a61ff639946bf1eb Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/E8HtgdYe.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/EHLfhwCm.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/EHLfhwCm.js.br new file mode 100644 index 0000000000000000000000000000000000000000..e6f05e5ea557c3286888cf148b1fbedf6dfd5b78 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/EHLfhwCm.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/EfnGU6xp.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/EfnGU6xp.js.br new file mode 100644 index 0000000000000000000000000000000000000000..131d759b26691a26e4482205991f6a8c1b2e7f7c --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/EfnGU6xp.js.br @@ -0,0 +1,4 @@ +Þ ŒÔ`­0˝ͩìå +€߁rÍl‡\ +tÓ.µ¢È#Ь pü\ö[l,Ñ'zÜöê&B¡‡xÉd%Ö˧* ûß ²+Üä:ÄÙˆ_TµqpNõÃø öWŒúо÷Úw7Ï=ÙÍ܏‘=„ÇÉx.¾>ô3‚׾`9yZÜ óµ´N1ÂR¯ÆÇAt0íÔÆO_T \o—ã¶"¸UùìI_1'£Nl¸+²Á“°�KM @&u•ÝÚêYOq$m§ûT�ëv£*â$¾�OK‚K¬‰“™� ÝR +õÃÚ-´ž֊Ù*ÊÐÁð[ xà¥E»�˜­…I¬Í'1TÊ38ƒÏüÀo}!/ÃüQ¾ÿêÅ(:´Ë \ No newline at end of file diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/F4qHFqjU.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/F4qHFqjU.js.br new file mode 100644 index 0000000000000000000000000000000000000000..cab41ea4d493a0f9d529729f19addac171cf300e Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/F4qHFqjU.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/FEV4b8Yc.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/FEV4b8Yc.js.br new file mode 100644 index 0000000000000000000000000000000000000000..593b9cc55077c017fe5b0a8a201c9deb1e20d7a8 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/FEV4b8Yc.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/FKhIFP8p.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/FKhIFP8p.js.br new file mode 100644 index 0000000000000000000000000000000000000000..f17928b24a5de9134169494a64c894858b8bab7d Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/FKhIFP8p.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/FuDDh5pF.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/FuDDh5pF.js.br new file mode 100644 index 0000000000000000000000000000000000000000..38412483d974564e7939235d06026e459732be0b Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/FuDDh5pF.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/FznSaSMV.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/FznSaSMV.js.br new file mode 100644 index 0000000000000000000000000000000000000000..05126cb6415e5b3f1e52148a11d56a64a5c2b8bd Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/FznSaSMV.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/GEEAuzdQ.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/GEEAuzdQ.js.br new file mode 100644 index 0000000000000000000000000000000000000000..34d76a696fea729a77eca44438ac4eb56a7d86f7 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/GEEAuzdQ.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/GLveWsC4.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/GLveWsC4.js.br new file mode 100644 index 0000000000000000000000000000000000000000..2ec4c76a995aa42f6c1977deb4409d511a180717 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/GLveWsC4.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/HRCoaRTF.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/HRCoaRTF.js.br new file mode 100644 index 0000000000000000000000000000000000000000..0348fa142076f5bac24f03a4c46088786cd63e18 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/HRCoaRTF.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/HxzrCd2u.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/HxzrCd2u.js.br new file mode 100644 index 0000000000000000000000000000000000000000..3fe951275053b9b229acbd704ea385383aebc347 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/HxzrCd2u.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/J_fkmqvN.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/J_fkmqvN.js.br new file mode 100644 index 0000000000000000000000000000000000000000..546cd8675bcef5d31c8fc8174746f5cd7ab9ef44 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/J_fkmqvN.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Jih8kzx0.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Jih8kzx0.js.br new file mode 100644 index 0000000000000000000000000000000000000000..80fe9cb5c300bffc3b02520af07a456705ab5e40 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Jih8kzx0.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/M1ZBrMGg.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/M1ZBrMGg.js.br new file mode 100644 index 0000000000000000000000000000000000000000..c91fd53576eebbdc5feded8f87bed14d513f7d47 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/M1ZBrMGg.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/MwjfTPYe.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/MwjfTPYe.js.br new file mode 100644 index 0000000000000000000000000000000000000000..c96717c4c2ec2324bcc6fb7a336d23e021438f28 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/MwjfTPYe.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/N8Rpo6tZ.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/N8Rpo6tZ.js.br new file mode 100644 index 0000000000000000000000000000000000000000..5d4ac57d621e19b1ce3677e65205e73793617538 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/N8Rpo6tZ.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/NKhw-ghg.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/NKhw-ghg.js.br new file mode 100644 index 0000000000000000000000000000000000000000..eaae68537f7bd79ef565da57e7804a8853ae829d Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/NKhw-ghg.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/OP8O7ufe.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/OP8O7ufe.js.br new file mode 100644 index 0000000000000000000000000000000000000000..18e7b83bc4511eab1ecade547c40b59131ca6460 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/OP8O7ufe.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Os56bFUo.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Os56bFUo.js.br new file mode 100644 index 0000000000000000000000000000000000000000..31afea7fa3eb9270a058d5f732fe48a50dfb60e4 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Os56bFUo.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/OtVwhkKS.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/OtVwhkKS.js.br new file mode 100644 index 0000000000000000000000000000000000000000..8b4320984922ae92808e52f68bf9d6e434ad0614 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/OtVwhkKS.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/P1A88MYT.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/P1A88MYT.js.br new file mode 100644 index 0000000000000000000000000000000000000000..a1d03a6a0e5bed0c5d3a463779c86ce00fbe8cb2 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/P1A88MYT.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/QQybL1pV.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/QQybL1pV.js.br new file mode 100644 index 0000000000000000000000000000000000000000..38a4036ba11a95937933508795a1b54ce0ddd69e Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/QQybL1pV.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/QcevkBhV.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/QcevkBhV.js.br new file mode 100644 index 0000000000000000000000000000000000000000..a70370ad1a6048aadb2ae364aaabf0db2c69c815 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/QcevkBhV.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/R6BiSpm2.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/R6BiSpm2.js.br new file mode 100644 index 0000000000000000000000000000000000000000..70dcc118ed73ae9cd88bcffecc7c5a88ee1b0976 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/R6BiSpm2.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/RDdJ_nbI.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/RDdJ_nbI.js.br new file mode 100644 index 0000000000000000000000000000000000000000..f95f7bd4aa49be0baed4390728cb9d8100323171 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/RDdJ_nbI.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/RPoRJVr8.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/RPoRJVr8.js.br new file mode 100644 index 0000000000000000000000000000000000000000..7558fb6900e086a188e70216527d9f5db894fba6 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/RPoRJVr8.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/T0Oc0ZdK.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/T0Oc0ZdK.js.br new file mode 100644 index 0000000000000000000000000000000000000000..207df11464809287f530c600bf1ea53bbfdb06e7 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/T0Oc0ZdK.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/TE8xxf_b.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/TE8xxf_b.js.br new file mode 100644 index 0000000000000000000000000000000000000000..325e8cff02038b6b374dbb8c361b970ab2fdfff8 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/TE8xxf_b.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/TWFbDNoG.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/TWFbDNoG.js.br new file mode 100644 index 0000000000000000000000000000000000000000..35342248f67b99892101cc2fe628199a2572e863 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/TWFbDNoG.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/UD3Cs44X.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/UD3Cs44X.js.br new file mode 100644 index 0000000000000000000000000000000000000000..b79f50837582ca6f532346634986c91eccf2457c Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/UD3Cs44X.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/UFrv6eiz.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/UFrv6eiz.js.br new file mode 100644 index 0000000000000000000000000000000000000000..e2983c306cf72c4bd1b3410b78fa1eda4f32f1e6 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/UFrv6eiz.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/UJHTpOtc.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/UJHTpOtc.js.br new file mode 100644 index 0000000000000000000000000000000000000000..2c298a27aca1c3fd1cbc4e2f95381d7a165800b4 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/UJHTpOtc.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/VPORTOkc.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/VPORTOkc.js.br new file mode 100644 index 0000000000000000000000000000000000000000..170ef5356fc9945a9df6a4d2399fe87929a359c4 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/VPORTOkc.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/VVkA4jS_.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/VVkA4jS_.js.br new file mode 100644 index 0000000000000000000000000000000000000000..9201d5d7c9af335f4e798943c720fb79ec8452b3 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/VVkA4jS_.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/WfFU6WL8.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/WfFU6WL8.js.br new file mode 100644 index 0000000000000000000000000000000000000000..36a6a84a78b8a1129577349afb017927c8b5442d Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/WfFU6WL8.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/XLy8Rvni.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/XLy8Rvni.js.br new file mode 100644 index 0000000000000000000000000000000000000000..12f0272ac9fa1c2e1cd729ec1ad452bcb5d47522 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/XLy8Rvni.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/XbL3y5x-.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/XbL3y5x-.js.br new file mode 100644 index 0000000000000000000000000000000000000000..2ae1503f8d2bff950bbc3a945e03957704e6b557 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/XbL3y5x-.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/YKUVOl9G.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/YKUVOl9G.js.br new file mode 100644 index 0000000000000000000000000000000000000000..26f35dbbc9e09554fd2ed3e8af1e1935e974eb29 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/YKUVOl9G.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/YqxRLb9I.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/YqxRLb9I.js.br new file mode 100644 index 0000000000000000000000000000000000000000..ba3c7f7844e2f31fac8ba01356c9c3e6511a3a73 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/YqxRLb9I.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Yv_sSo9G.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Yv_sSo9G.js.br new file mode 100644 index 0000000000000000000000000000000000000000..4f4185a74304e709cf79a4661c21369f58059f2b Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Yv_sSo9G.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Z4lbsgev.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Z4lbsgev.js.br new file mode 100644 index 0000000000000000000000000000000000000000..56a0c71eba5752cc3965608bf92cdad59898fb08 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/Z4lbsgev.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ZL4hHokT.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ZL4hHokT.js.br new file mode 100644 index 0000000000000000000000000000000000000000..5376001d9ec473f6d37d69fbdf39d6a802c897c4 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ZL4hHokT.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/_SqcQ9RK.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/_SqcQ9RK.js.br new file mode 100644 index 0000000000000000000000000000000000000000..b14e2d7089f5f12a7f8de7aecf8cfe88fccd37d6 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/_SqcQ9RK.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/_ekBsHhV.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/_ekBsHhV.js.br new file mode 100644 index 0000000000000000000000000000000000000000..cdad028af6b4f6b94974f2259f92a09cae93a27b Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/_ekBsHhV.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/acTa1-Tj.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/acTa1-Tj.js.br new file mode 100644 index 0000000000000000000000000000000000000000..a9fde31cfb99c377e86a1a46bc185fd4953e7fb2 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/acTa1-Tj.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ayNlGC5K.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ayNlGC5K.js.br new file mode 100644 index 0000000000000000000000000000000000000000..c20453d9001d383aecd7fcb4bd5480b9489943fa Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ayNlGC5K.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/b3OE0Zno.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/b3OE0Zno.js.br new file mode 100644 index 0000000000000000000000000000000000000000..65a4e805de895951a4e05c1b4ff6cddd732a6b3e Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/b3OE0Zno.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/bLxNyGCH.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/bLxNyGCH.js.br new file mode 100644 index 0000000000000000000000000000000000000000..8bd583e9288f427037cc179c648617c417b1954d Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/bLxNyGCH.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/bQ2WEwf_.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/bQ2WEwf_.js.br new file mode 100644 index 0000000000000000000000000000000000000000..eb3a5723b6910d5f29fae99438152a094635d94f Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/bQ2WEwf_.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/bYpjC7i2.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/bYpjC7i2.js.br new file mode 100644 index 0000000000000000000000000000000000000000..02749f94138243bfc3da5ab0785430d81439a308 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/bYpjC7i2.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/blVdjKwC.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/blVdjKwC.js.br new file mode 100644 index 0000000000000000000000000000000000000000..7cf254445b1ad11143697b4ab889ced3d662baea Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/blVdjKwC.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/cQOozPG3.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/cQOozPG3.js.br new file mode 100644 index 0000000000000000000000000000000000000000..82140010133afe3e5e99e11e6a6ee6bbd2cb2663 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/cQOozPG3.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/cYdS4qLJ.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/cYdS4qLJ.js.br new file mode 100644 index 0000000000000000000000000000000000000000..2e78babab70002a14548e98dcaf0e6c14628d485 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/cYdS4qLJ.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/cf0IjT36.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/cf0IjT36.js.br new file mode 100644 index 0000000000000000000000000000000000000000..e83a1550841ffdfa9d32cb960bfee1de96d932b3 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/cf0IjT36.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/cslX1RUN.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/cslX1RUN.js.br new file mode 100644 index 0000000000000000000000000000000000000000..5d750fd8555980817cea41066f5ebe005a717ead --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/cslX1RUN.js.br @@ -0,0 +1,4 @@ +𠌶yó’ ×peIL’:—꿟—ñ :qèXt¬åD!çä*wË|÷*ÂÉ>ëþ�ۭ¯԰BW,ìÚ>[KyÀ¶à+ +õll…¬�ÅÅ8BY)¾ZvΦŽF ìF»R†�üº¯ÂQq9Ž>C|.¦OŠtßë¤ãÈ?–ý°–ö¾NǣÙ׷Ò@Dmoâú‰ÂݻÚó'Ç󈵳r<Ðw× 6„éíŸXW§,՟Èâڥ3NJ¶s¶þ3ٽ�Tۺ{ۥH›ªо¸."³‡!³£’NgÚâÈéO÷øÎ2�RÈ–߆Èzfª·«u·ҝuŸšd û^ܑj§d¥' £4ÐGÍ _$äŸYbË}é"av¡½ôÇü ůρF22‘‰ôø • 2<½‡-ᙗj›Uâ/A}¾Á·Œ.Käçƒl¬ŸÅp[Ò{_óK&Å$ù°­£Ǟ@ýzíտ9€B·w(h|\Ò¨Fu–ª?z¢d\õ=F^ˆ0߻�ž²\#—מ³ð ^2ŒŸ,°Ժ:#ßý¢y Oò}½†™¿ã–|1;N/Y–®æÆâöîlGԼ' ÿÀ�‡U• ¨€I—N\üP4;µ©8f�ˆ“å`¼Rþëÿq3,ÌÜÆr‡ÿÿb¤”Ǻ⍂bXž^mßîKG*�Øç84ֲÄ،©ãEø«‘�€"È­²ÕoSd@I +æ÷·±’³cßX¾Sö##·`'µBcöœžHƁŠØd..n”„†P¢f¢Pu´H}ÿ‡aÖkµëvyDIÄjYöd7yXNF\°7«Ë.DOý°²Œu3�íòH¡!&/�iÏLïn-|[z¯+½à‹¨Öx-]d�arеê!×Fӂ‘ˆZsŒ˒0»ð…*=/Ҧ5¨Øn +fÿÜ Dg&ž£÷ås’/Œ¦ qú€!„äÒ�ŠÂòØè"•@Pð¸hÀ–2cUÚ؟Ðö½=ÇîeŸˆÛTRøÉÛñrª&\‚�ߩ\o5…3ÎT}r‚×=Ïöҕ*@¿͂hå1™j)ó^Äà¥ô>ºŠ�aËN1DgÜÜocąsT„¢ƒ¯RÝW�[P6 Œ\I�Ùɪ¯$’ä—bIúXœéz¡bÙ W [m[G£Yר:ëG¥ƒÕVTvÜ_©naðÝ/—Zԡ@“&�™ªfýÛ \ No newline at end of file diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/dG3mOQ6V.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/dG3mOQ6V.js.br new file mode 100644 index 0000000000000000000000000000000000000000..7da91242c44f602654b32fdbbc6eb0e08cf5db34 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/dG3mOQ6V.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/dNfi-5vi.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/dNfi-5vi.js.br new file mode 100644 index 0000000000000000000000000000000000000000..31682029133e2341cee3581ea74d89247fd2f342 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/dNfi-5vi.js.br @@ -0,0 +1 @@ +å@, lCÄFö¿ˆ)²Ccc�“r”rÅáó7Ú~Î÷3ª•7`ø²�•9Õxpš%Åeg¾°ÍuˆH��R²K”ž©›üó<¡…1…cnŠ…&Úeaæ®ڤ<ð2séÖþhžsžã}îIh‰Z"¼Âl'îOÛÚZM>ÜU± Ó׆±©@“‘XMÄÖPĹS ³ÿôƒÐGÂìý ãAžZ{Éúø|&С¼hûÿýýֽ>”^ÓU„W,Kn:›qñA˫,�ΜǠÔÀ8†© R§`ÛàZž:ɰ¡EŠl†ãú²:KHû ÍBbuÿ,Î_XHõýˆŒ€†®Ÿº �Z¿žÿËfo [”#ñ7ìz/À=¦6²’ÕCtê&²ÅúD¯N5¥„¨énÊY \ No newline at end of file diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/fV5hKs91.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/fV5hKs91.js.br new file mode 100644 index 0000000000000000000000000000000000000000..f80bc831c18577fdf488dfcfb6b2e49ba4e14368 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/fV5hKs91.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/hkCN-zUO.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/hkCN-zUO.js.br new file mode 100644 index 0000000000000000000000000000000000000000..11698694974310d23f14c5857ff068dda33d1f38 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/hkCN-zUO.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/hmw8sEmh.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/hmw8sEmh.js.br new file mode 100644 index 0000000000000000000000000000000000000000..fac767f1256ad7c4af126ac5a14b05e98899a8e7 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/hmw8sEmh.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/j5zv7s34.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/j5zv7s34.js.br new file mode 100644 index 0000000000000000000000000000000000000000..a96f467225c9cd29a40f6931d66793b3e24bbcb4 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/j5zv7s34.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/jLXs2L-R.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/jLXs2L-R.js.br new file mode 100644 index 0000000000000000000000000000000000000000..db7e5ff0723fdcf280c9d5b6c339b3b631e79196 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/jLXs2L-R.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/jQ7-a7nv.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/jQ7-a7nv.js.br new file mode 100644 index 0000000000000000000000000000000000000000..f394bf42050fb5fdde963f8ddcd5ded3cc45a53f Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/jQ7-a7nv.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/jV6e2vRf.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/jV6e2vRf.js.br new file mode 100644 index 0000000000000000000000000000000000000000..0f66a5f30c4c480bc431f82a71c684eb59ce042f Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/jV6e2vRf.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/joyVrrLj.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/joyVrrLj.js.br new file mode 100644 index 0000000000000000000000000000000000000000..9e268590ed05dae7343ac34a080c580a9c9c9dd0 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/joyVrrLj.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/jsl9p7Vl.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/jsl9p7Vl.js.br new file mode 100644 index 0000000000000000000000000000000000000000..4fb25130059bdf68a11bbc97ed11079e504fc3c5 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/jsl9p7Vl.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/kDlO4sKV.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/kDlO4sKV.js.br new file mode 100644 index 0000000000000000000000000000000000000000..f0b8a7c94d844112b3b7ded73d5d276cf13e76c2 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/kDlO4sKV.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/kxCwF96_.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/kxCwF96_.js.br new file mode 100644 index 0000000000000000000000000000000000000000..a8c678ad6cd41ad20029a3435f63ab428806c95d Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/kxCwF96_.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/l2OFUBfT.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/l2OFUBfT.js.br new file mode 100644 index 0000000000000000000000000000000000000000..d4caa438af95bb9edd43ec1fc0d8578e97f60f4f Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/l2OFUBfT.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/lIMQgfyc.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/lIMQgfyc.js.br new file mode 100644 index 0000000000000000000000000000000000000000..184ae30820d25f28e7bcc9a5b44f46afb791b120 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/lIMQgfyc.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ls0fteAd.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ls0fteAd.js.br new file mode 100644 index 0000000000000000000000000000000000000000..a52bbccf5ebe3a7f97752473b337aad85c7ecf9e Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ls0fteAd.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/m3X5E8Ce.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/m3X5E8Ce.js.br new file mode 100644 index 0000000000000000000000000000000000000000..e783ed143d776db243c8ed662783d25d4b73bdd6 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/m3X5E8Ce.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/mWWtXIwW.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/mWWtXIwW.js.br new file mode 100644 index 0000000000000000000000000000000000000000..e943a2f1c9bb7f5a7dd8f9160ac1911206353fd0 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/mWWtXIwW.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ms5eCbgX.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ms5eCbgX.js.br new file mode 100644 index 0000000000000000000000000000000000000000..099a40c094f48090a85eded8b3bf2bae84d4f804 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ms5eCbgX.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/oKV0-L0F.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/oKV0-L0F.js.br new file mode 100644 index 0000000000000000000000000000000000000000..a6d8dff3acfcdf1960a409ee5f463672b78b7427 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/oKV0-L0F.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/oNyGUR6O.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/oNyGUR6O.js.br new file mode 100644 index 0000000000000000000000000000000000000000..d26d57eae12835ddf5071ac5d9392ac01e72026b Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/oNyGUR6O.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/oawqArDT.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/oawqArDT.js.br new file mode 100644 index 0000000000000000000000000000000000000000..cef77e417cc357aa39775e745e36fde72f99f93c Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/oawqArDT.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/olQgpapS.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/olQgpapS.js.br new file mode 100644 index 0000000000000000000000000000000000000000..88c4cdcdd409119f738a02b3ceff8f7f1f3c5e90 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/olQgpapS.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/pfTuU6-G.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/pfTuU6-G.js.br new file mode 100644 index 0000000000000000000000000000000000000000..9b68e267630b17ef1bf3e047b523857a7fe2dced Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/pfTuU6-G.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/q4NYzkuK.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/q4NYzkuK.js.br new file mode 100644 index 0000000000000000000000000000000000000000..d66d68ba85348a7645f83969a8fcabc1a6add787 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/q4NYzkuK.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/qPLn-ol2.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/qPLn-ol2.js.br new file mode 100644 index 0000000000000000000000000000000000000000..60972ee9e2dade6a4dddb80b15ae3fa52677a798 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/qPLn-ol2.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/qs7DVCdN.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/qs7DVCdN.js.br new file mode 100644 index 0000000000000000000000000000000000000000..872d125870c6b44ab130236c69c8858e72d131d3 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/qs7DVCdN.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/rvdy33Hh.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/rvdy33Hh.js.br new file mode 100644 index 0000000000000000000000000000000000000000..896154612dbf8da0e224f9f3162237921499ecee Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/rvdy33Hh.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/rwF0t68_.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/rwF0t68_.js.br new file mode 100644 index 0000000000000000000000000000000000000000..3f33dd42f2f8136a05f96bdf4d944443ff659198 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/rwF0t68_.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/spSKlluc.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/spSKlluc.js.br new file mode 100644 index 0000000000000000000000000000000000000000..190ad11d05facaa33a69c72d71bae9b5b4ff1ee1 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/spSKlluc.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ssCzU7Af.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ssCzU7Af.js.br new file mode 100644 index 0000000000000000000000000000000000000000..4f42299b32c1945cb881fc336ecc302ec93e006e Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ssCzU7Af.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/tOwBCSky.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/tOwBCSky.js.br new file mode 100644 index 0000000000000000000000000000000000000000..46e08136efc01d104638163f25960552102ed5bb Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/tOwBCSky.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/tUQ2Q6FM.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/tUQ2Q6FM.js.br new file mode 100644 index 0000000000000000000000000000000000000000..e97f8e941cec18cefd012d6208e747cacefaf0ba Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/tUQ2Q6FM.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/tz83GgOF.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/tz83GgOF.js.br new file mode 100644 index 0000000000000000000000000000000000000000..e99a2baba1dec9067afdf98308445a09fc67cad6 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/tz83GgOF.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/uC-eo3qU.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/uC-eo3qU.js.br new file mode 100644 index 0000000000000000000000000000000000000000..535532275baa9bdd8dbd9e804f4c7936da2402eb Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/uC-eo3qU.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/uExzFRsL.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/uExzFRsL.js.br new file mode 100644 index 0000000000000000000000000000000000000000..301018f8946b1cc53ec7702d6021fded53514728 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/uExzFRsL.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/uFqJLIYT.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/uFqJLIYT.js.br new file mode 100644 index 0000000000000000000000000000000000000000..6519da96ea38f0b497fd177d41650c74acea2192 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/uFqJLIYT.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/uOD2Ly2a.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/uOD2Ly2a.js.br new file mode 100644 index 0000000000000000000000000000000000000000..ee4dfa7e262af393aa18d0bcdd8ed3c65c97d81d Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/uOD2Ly2a.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/uWhpzF62.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/uWhpzF62.js.br new file mode 100644 index 0000000000000000000000000000000000000000..546e734462fedd4da9c218eb04a205bce41f4849 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/uWhpzF62.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/uf32Cd54.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/uf32Cd54.js.br new file mode 100644 index 0000000000000000000000000000000000000000..0c98cd0e9e48cb9b8b44fab44a2999198fdf065c Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/uf32Cd54.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ui5-o8Zq.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ui5-o8Zq.js.br new file mode 100644 index 0000000000000000000000000000000000000000..300db810c037b996241a9f6884915cddac80008c Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ui5-o8Zq.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/us1feo4m.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/us1feo4m.js.br new file mode 100644 index 0000000000000000000000000000000000000000..db5a0068d19d0e35b39c29313e496c903dbd1ba5 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/us1feo4m.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/vnpjX0rO.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/vnpjX0rO.js.br new file mode 100644 index 0000000000000000000000000000000000000000..e92a30fcc8a44b8d148d269b92648e5856235ec8 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/vnpjX0rO.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/wpcUyI6D.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/wpcUyI6D.js.br new file mode 100644 index 0000000000000000000000000000000000000000..a35a10c085e667f3641adc0cceb63ae705a0e828 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/wpcUyI6D.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/xqCN2YBh.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/xqCN2YBh.js.br new file mode 100644 index 0000000000000000000000000000000000000000..d75c50649ac9dbf02b8554daef20d3c9d0c6e040 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/xqCN2YBh.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/xuY4JOBr.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/xuY4JOBr.js.br new file mode 100644 index 0000000000000000000000000000000000000000..01ee24f174f3c7ee91f685778148030cc35eb932 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/xuY4JOBr.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/xyt0gK8v.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/xyt0gK8v.js.br new file mode 100644 index 0000000000000000000000000000000000000000..51b45aaa54fc98802d2e64b46dc45c61273723ab Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/xyt0gK8v.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/yR_4TcoP.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/yR_4TcoP.js.br new file mode 100644 index 0000000000000000000000000000000000000000..9fbebd5a011f26a1bd40f4e1c0bd17555a554d9d Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/yR_4TcoP.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/yUbHBZLl.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/yUbHBZLl.js.br new file mode 100644 index 0000000000000000000000000000000000000000..bb19838e8cd28f6dfd64c5a6cb7319c7236770fe Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/yUbHBZLl.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ycSetaDq.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ycSetaDq.js.br new file mode 100644 index 0000000000000000000000000000000000000000..83c8d7bce886738179a080ab46fe156e45afd9a5 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/chunks/ycSetaDq.js.br @@ -0,0 +1,3 @@ +O@äÿ¹ýï.Ó=N``ƏNxȳ'®©_L}þFQ½Q7®©�[d&ßÛD<ä�bš¦ÑaAñ"\iïà‡úoú•LŒ½i°_�͆dÌåäo1çÐLýNý¿Ö�^Œ–Žd�î†?ÿt-k"ûÞÖW7�1¶èŸÍi&|ýWݍ�þC±¦_ÎÊ;Ov]œT^\ŠY #ÇN¶�d¤›ÿr2ÇIÃa çØTãXϳø»˜R-9wo¡àw² ýsFÈÆJ’‰û”õaþ»¤ª±6œ�äþ^A+È$$Íñ42…f �öãæxu�6¢:¦Œ4©r“˜ c)MÁºþ°-*,:S³¨°±- +Nrè%îf8“›€ +Û‚ Ól�X9«Ó]†€96*h… ÛóÚEšÖ$NúïdMŒR㾅?~:º;£]‡JŠL`#OYûš Œj¼âX,ú„V ´Øa}:º;ï \ No newline at end of file diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/entry/app.AjoxF591.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/entry/app.AjoxF591.js.br new file mode 100644 index 0000000000000000000000000000000000000000..01e43d848e23987c62c321bc187fa9437cb7ded4 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/entry/app.AjoxF591.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/entry/start.16-9tgRy.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/entry/start.16-9tgRy.js.br new file mode 100644 index 0000000000000000000000000000000000000000..594903b9dd5e51e98e7f169ca8a6778b5b15a343 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/entry/start.16-9tgRy.js.br @@ -0,0 +1,2 @@ + )€import{l as o,a as r}from"../chunks/BvKdJnVK.js";export{o as load_css,r as start}; + \ No newline at end of file diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/nodes/0.CijlEipX.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/nodes/0.CijlEipX.js.br new file mode 100644 index 0000000000000000000000000000000000000000..9478997e2e45d54c2980c5c43ed24a633d2d3ceb Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/nodes/0.CijlEipX.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/nodes/1.DAgQwWiu.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/nodes/1.DAgQwWiu.js.br new file mode 100644 index 0000000000000000000000000000000000000000..d37759840eaeee120b794023922a023d5348f600 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/nodes/1.DAgQwWiu.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/nodes/2.DOqHDK-I.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/nodes/2.DOqHDK-I.js.br new file mode 100644 index 0000000000000000000000000000000000000000..ababd81b31be042b4da75837b67374eefc3b5052 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/nodes/2.DOqHDK-I.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/workers/worker-BAOIWoxA.js.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/workers/worker-BAOIWoxA.js.br new file mode 100644 index 0000000000000000000000000000000000000000..bfc5a1657cf9e15ab31ebf3120a055eeb3c226d2 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/immutable/workers/worker-BAOIWoxA.js.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/version.json b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/version.json new file mode 100644 index 0000000000000000000000000000000000000000..5501c169687607c44689c7f6a04f5f174356f601 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/version.json @@ -0,0 +1 @@ +{"version":"1776726696036"} \ No newline at end of file diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/version.json.br b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/version.json.br new file mode 100644 index 0000000000000000000000000000000000000000..9e7dc3525c810ca4c63032393534de5ce6231665 Binary files /dev/null and b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/client/_app/version.json.br differ diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/env.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/env.js new file mode 100644 index 0000000000000000000000000000000000000000..f69f5c0e6b92b6b07b318c22a66179e7d0979963 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/env.js @@ -0,0 +1,94 @@ +import process from 'node:process'; + +/* global "" */ + +const expected = new Set([ + 'SOCKET_PATH', + 'HOST', + 'PORT', + 'ORIGIN', + 'XFF_DEPTH', + 'ADDRESS_HEADER', + 'PROTOCOL_HEADER', + 'HOST_HEADER', + 'PORT_HEADER', + 'BODY_SIZE_LIMIT', + 'SHUTDOWN_TIMEOUT', + 'IDLE_TIMEOUT', + 'KEEP_ALIVE_TIMEOUT', + 'HEADERS_TIMEOUT' +]); + +const expected_unprefixed = new Set(['LISTEN_PID', 'LISTEN_FDS']); + +if ("") { + for (const name in process.env) { + if (name.startsWith("")) { + const unprefixed = name.slice("".length); + if (!expected.has(unprefixed)) { + throw new Error( + `You should change envPrefix (${""}) to avoid conflicts with existing environment variables — unexpectedly saw ${name}` + ); + } + } + } +} + +/** + * @param {string} name + * @param {any} fallback + */ +function env(name, fallback) { + const prefix = expected_unprefixed.has(name) ? '' : ""; + const prefixed = prefix + name; + return prefixed in process.env ? process.env[prefixed] : fallback; +} + +const integer_regexp = /^\d+$/; + +/** + * Throw a consistently-structured parsing error for environment variables. + * @param {string} name + * @param {any} value + * @param {string} description + * @returns {never} + */ +function parsing_error(name, value, description) { + throw new Error( + `Invalid value for environment variable ${name}: ${JSON.stringify(value)} (${description})` + ); +} + +/** + * Check the environment for a timeout value (non-negative integer) in seconds. + * @param {string} name + * @param {number} [fallback] + * @returns {number | undefined} + */ +function timeout_env(name, fallback) { + const raw = env(name, fallback); + if (!raw) { + return fallback; + } + + if (!integer_regexp.test(raw)) { + parsing_error(name, raw, 'should be a non-negative integer'); + } + + const parsed = Number.parseInt(raw, 10); + + // We don't technically need to check `Number.isNaN` because the value already passed the regexp test. + // However, just in case there's some new codepath introduced somewhere down the line, it's probably good + // to stick this in here. + if (Number.isNaN(parsed)) { + parsing_error(name, raw, 'should be a non-negative integer'); + } + + if (parsed < 0) { + parsing_error(name, raw, 'should be a non-negative integer'); + } + + return parsed; +} + +export { env, timeout_env }; diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/handler.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/handler.js new file mode 100644 index 0000000000000000000000000000000000000000..544b5d861265f307e135f4d904b67d2a10b8dbd3 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/handler.js @@ -0,0 +1,1432 @@ +import './shims.js'; +import * as fs from 'node:fs'; +import fs__default, { readdirSync, statSync, createReadStream } from 'node:fs'; +import path, { resolve, join, sep, normalize } from 'node:path'; +import process from 'node:process'; +import * as qs from 'node:querystring'; +import { fileURLToPath } from 'node:url'; +import { Readable } from 'node:stream'; +import { Server } from './server/index.js'; +import { manifest, prerendered, base } from './server/manifest.js'; +import { env } from './env.js'; + +function totalist(dir, callback, pre='') { + dir = resolve('.', dir); + let arr = readdirSync(dir); + let i=0, abs, stats; + for (; i < arr.length; i++) { + abs = join(dir, arr[i]); + stats = statSync(abs); + stats.isDirectory() + ? totalist(abs, callback, join(pre, arr[i])) + : callback(join(pre, arr[i]), abs, stats); + } +} + +/** + * @typedef ParsedURL + * @type {import('.').ParsedURL} + */ + +/** + * @typedef Request + * @property {string} url + * @property {ParsedURL} _parsedUrl + */ + +/** + * @param {Request} req + * @returns {ParsedURL|void} + */ +function parse(req) { + let raw = req.url; + if (raw == null) return; + + let prev = req._parsedUrl; + if (prev && prev.raw === raw) return prev; + + let pathname=raw, search='', query; + + if (raw.length > 1) { + let idx = raw.indexOf('?', 1); + + if (idx !== -1) { + search = raw.substring(idx); + pathname = raw.substring(0, idx); + if (search.length > 1) { + query = qs.parse(search.substring(1)); + } + } + } + + return req._parsedUrl = { pathname, search, query, raw }; +} + +const mimes = { + "3g2": "video/3gpp2", + "3gp": "video/3gpp", + "3gpp": "video/3gpp", + "3mf": "model/3mf", + "aac": "audio/aac", + "ac": "application/pkix-attr-cert", + "adp": "audio/adpcm", + "adts": "audio/aac", + "ai": "application/postscript", + "aml": "application/automationml-aml+xml", + "amlx": "application/automationml-amlx+zip", + "amr": "audio/amr", + "apng": "image/apng", + "appcache": "text/cache-manifest", + "appinstaller": "application/appinstaller", + "appx": "application/appx", + "appxbundle": "application/appxbundle", + "asc": "application/pgp-keys", + "atom": "application/atom+xml", + "atomcat": "application/atomcat+xml", + "atomdeleted": "application/atomdeleted+xml", + "atomsvc": "application/atomsvc+xml", + "au": "audio/basic", + "avci": "image/avci", + "avcs": "image/avcs", + "avif": "image/avif", + "aw": "application/applixware", + "bdoc": "application/bdoc", + "bin": "application/octet-stream", + "bmp": "image/bmp", + "bpk": "application/octet-stream", + "btf": "image/prs.btif", + "btif": "image/prs.btif", + "buffer": "application/octet-stream", + "ccxml": "application/ccxml+xml", + "cdfx": "application/cdfx+xml", + "cdmia": "application/cdmi-capability", + "cdmic": "application/cdmi-container", + "cdmid": "application/cdmi-domain", + "cdmio": "application/cdmi-object", + "cdmiq": "application/cdmi-queue", + "cer": "application/pkix-cert", + "cgm": "image/cgm", + "cjs": "application/node", + "class": "application/java-vm", + "coffee": "text/coffeescript", + "conf": "text/plain", + "cpl": "application/cpl+xml", + "cpt": "application/mac-compactpro", + "crl": "application/pkix-crl", + "css": "text/css", + "csv": "text/csv", + "cu": "application/cu-seeme", + "cwl": "application/cwl", + "cww": "application/prs.cww", + "davmount": "application/davmount+xml", + "dbk": "application/docbook+xml", + "deb": "application/octet-stream", + "def": "text/plain", + "deploy": "application/octet-stream", + "dib": "image/bmp", + "disposition-notification": "message/disposition-notification", + "dist": "application/octet-stream", + "distz": "application/octet-stream", + "dll": "application/octet-stream", + "dmg": "application/octet-stream", + "dms": "application/octet-stream", + "doc": "application/msword", + "dot": "application/msword", + "dpx": "image/dpx", + "drle": "image/dicom-rle", + "dsc": "text/prs.lines.tag", + "dssc": "application/dssc+der", + "dtd": "application/xml-dtd", + "dump": "application/octet-stream", + "dwd": "application/atsc-dwd+xml", + "ear": "application/java-archive", + "ecma": "application/ecmascript", + "elc": "application/octet-stream", + "emf": "image/emf", + "eml": "message/rfc822", + "emma": "application/emma+xml", + "emotionml": "application/emotionml+xml", + "eps": "application/postscript", + "epub": "application/epub+zip", + "exe": "application/octet-stream", + "exi": "application/exi", + "exp": "application/express", + "exr": "image/aces", + "ez": "application/andrew-inset", + "fdf": "application/fdf", + "fdt": "application/fdt+xml", + "fits": "image/fits", + "g3": "image/g3fax", + "gbr": "application/rpki-ghostbusters", + "geojson": "application/geo+json", + "gif": "image/gif", + "glb": "model/gltf-binary", + "gltf": "model/gltf+json", + "gml": "application/gml+xml", + "gpx": "application/gpx+xml", + "gram": "application/srgs", + "grxml": "application/srgs+xml", + "gxf": "application/gxf", + "gz": "application/gzip", + "h261": "video/h261", + "h263": "video/h263", + "h264": "video/h264", + "heic": "image/heic", + "heics": "image/heic-sequence", + "heif": "image/heif", + "heifs": "image/heif-sequence", + "hej2": "image/hej2k", + "held": "application/atsc-held+xml", + "hjson": "application/hjson", + "hlp": "application/winhlp", + "hqx": "application/mac-binhex40", + "hsj2": "image/hsj2", + "htm": "text/html", + "html": "text/html", + "ics": "text/calendar", + "ief": "image/ief", + "ifb": "text/calendar", + "iges": "model/iges", + "igs": "model/iges", + "img": "application/octet-stream", + "in": "text/plain", + "ini": "text/plain", + "ink": "application/inkml+xml", + "inkml": "application/inkml+xml", + "ipfix": "application/ipfix", + "iso": "application/octet-stream", + "its": "application/its+xml", + "jade": "text/jade", + "jar": "application/java-archive", + "jhc": "image/jphc", + "jls": "image/jls", + "jp2": "image/jp2", + "jpe": "image/jpeg", + "jpeg": "image/jpeg", + "jpf": "image/jpx", + "jpg": "image/jpeg", + "jpg2": "image/jp2", + "jpgm": "image/jpm", + "jpgv": "video/jpeg", + "jph": "image/jph", + "jpm": "image/jpm", + "jpx": "image/jpx", + "js": "text/javascript", + "json": "application/json", + "json5": "application/json5", + "jsonld": "application/ld+json", + "jsonml": "application/jsonml+json", + "jsx": "text/jsx", + "jt": "model/jt", + "jxr": "image/jxr", + "jxra": "image/jxra", + "jxrs": "image/jxrs", + "jxs": "image/jxs", + "jxsc": "image/jxsc", + "jxsi": "image/jxsi", + "jxss": "image/jxss", + "kar": "audio/midi", + "ktx": "image/ktx", + "ktx2": "image/ktx2", + "less": "text/less", + "lgr": "application/lgr+xml", + "list": "text/plain", + "litcoffee": "text/coffeescript", + "log": "text/plain", + "lostxml": "application/lost+xml", + "lrf": "application/octet-stream", + "m1v": "video/mpeg", + "m21": "application/mp21", + "m2a": "audio/mpeg", + "m2v": "video/mpeg", + "m3a": "audio/mpeg", + "m4a": "audio/mp4", + "m4p": "application/mp4", + "m4s": "video/iso.segment", + "ma": "application/mathematica", + "mads": "application/mads+xml", + "maei": "application/mmt-aei+xml", + "man": "text/troff", + "manifest": "text/cache-manifest", + "map": "application/json", + "mar": "application/octet-stream", + "markdown": "text/markdown", + "mathml": "application/mathml+xml", + "mb": "application/mathematica", + "mbox": "application/mbox", + "md": "text/markdown", + "mdx": "text/mdx", + "me": "text/troff", + "mesh": "model/mesh", + "meta4": "application/metalink4+xml", + "metalink": "application/metalink+xml", + "mets": "application/mets+xml", + "mft": "application/rpki-manifest", + "mid": "audio/midi", + "midi": "audio/midi", + "mime": "message/rfc822", + "mj2": "video/mj2", + "mjp2": "video/mj2", + "mjs": "text/javascript", + "mml": "text/mathml", + "mods": "application/mods+xml", + "mov": "video/quicktime", + "mp2": "audio/mpeg", + "mp21": "application/mp21", + "mp2a": "audio/mpeg", + "mp3": "audio/mpeg", + "mp4": "video/mp4", + "mp4a": "audio/mp4", + "mp4s": "application/mp4", + "mp4v": "video/mp4", + "mpd": "application/dash+xml", + "mpe": "video/mpeg", + "mpeg": "video/mpeg", + "mpf": "application/media-policy-dataset+xml", + "mpg": "video/mpeg", + "mpg4": "video/mp4", + "mpga": "audio/mpeg", + "mpp": "application/dash-patch+xml", + "mrc": "application/marc", + "mrcx": "application/marcxml+xml", + "ms": "text/troff", + "mscml": "application/mediaservercontrol+xml", + "msh": "model/mesh", + "msi": "application/octet-stream", + "msix": "application/msix", + "msixbundle": "application/msixbundle", + "msm": "application/octet-stream", + "msp": "application/octet-stream", + "mtl": "model/mtl", + "musd": "application/mmt-usd+xml", + "mxf": "application/mxf", + "mxmf": "audio/mobile-xmf", + "mxml": "application/xv+xml", + "n3": "text/n3", + "nb": "application/mathematica", + "nq": "application/n-quads", + "nt": "application/n-triples", + "obj": "model/obj", + "oda": "application/oda", + "oga": "audio/ogg", + "ogg": "audio/ogg", + "ogv": "video/ogg", + "ogx": "application/ogg", + "omdoc": "application/omdoc+xml", + "onepkg": "application/onenote", + "onetmp": "application/onenote", + "onetoc": "application/onenote", + "onetoc2": "application/onenote", + "opf": "application/oebps-package+xml", + "opus": "audio/ogg", + "otf": "font/otf", + "owl": "application/rdf+xml", + "oxps": "application/oxps", + "p10": "application/pkcs10", + "p7c": "application/pkcs7-mime", + "p7m": "application/pkcs7-mime", + "p7s": "application/pkcs7-signature", + "p8": "application/pkcs8", + "pdf": "application/pdf", + "pfr": "application/font-tdpfr", + "pgp": "application/pgp-encrypted", + "pkg": "application/octet-stream", + "pki": "application/pkixcmp", + "pkipath": "application/pkix-pkipath", + "pls": "application/pls+xml", + "png": "image/png", + "prc": "model/prc", + "prf": "application/pics-rules", + "provx": "application/provenance+xml", + "ps": "application/postscript", + "pskcxml": "application/pskc+xml", + "pti": "image/prs.pti", + "qt": "video/quicktime", + "raml": "application/raml+yaml", + "rapd": "application/route-apd+xml", + "rdf": "application/rdf+xml", + "relo": "application/p2p-overlay+xml", + "rif": "application/reginfo+xml", + "rl": "application/resource-lists+xml", + "rld": "application/resource-lists-diff+xml", + "rmi": "audio/midi", + "rnc": "application/relax-ng-compact-syntax", + "rng": "application/xml", + "roa": "application/rpki-roa", + "roff": "text/troff", + "rq": "application/sparql-query", + "rs": "application/rls-services+xml", + "rsat": "application/atsc-rsat+xml", + "rsd": "application/rsd+xml", + "rsheet": "application/urc-ressheet+xml", + "rss": "application/rss+xml", + "rtf": "text/rtf", + "rtx": "text/richtext", + "rusd": "application/route-usd+xml", + "s3m": "audio/s3m", + "sbml": "application/sbml+xml", + "scq": "application/scvp-cv-request", + "scs": "application/scvp-cv-response", + "sdp": "application/sdp", + "senmlx": "application/senml+xml", + "sensmlx": "application/sensml+xml", + "ser": "application/java-serialized-object", + "setpay": "application/set-payment-initiation", + "setreg": "application/set-registration-initiation", + "sgi": "image/sgi", + "sgm": "text/sgml", + "sgml": "text/sgml", + "shex": "text/shex", + "shf": "application/shf+xml", + "shtml": "text/html", + "sieve": "application/sieve", + "sig": "application/pgp-signature", + "sil": "audio/silk", + "silo": "model/mesh", + "siv": "application/sieve", + "slim": "text/slim", + "slm": "text/slim", + "sls": "application/route-s-tsid+xml", + "smi": "application/smil+xml", + "smil": "application/smil+xml", + "snd": "audio/basic", + "so": "application/octet-stream", + "spdx": "text/spdx", + "spp": "application/scvp-vp-response", + "spq": "application/scvp-vp-request", + "spx": "audio/ogg", + "sql": "application/sql", + "sru": "application/sru+xml", + "srx": "application/sparql-results+xml", + "ssdl": "application/ssdl+xml", + "ssml": "application/ssml+xml", + "stk": "application/hyperstudio", + "stl": "model/stl", + "stpx": "model/step+xml", + "stpxz": "model/step-xml+zip", + "stpz": "model/step+zip", + "styl": "text/stylus", + "stylus": "text/stylus", + "svg": "image/svg+xml", + "svgz": "image/svg+xml", + "swidtag": "application/swid+xml", + "t": "text/troff", + "t38": "image/t38", + "td": "application/urc-targetdesc+xml", + "tei": "application/tei+xml", + "teicorpus": "application/tei+xml", + "text": "text/plain", + "tfi": "application/thraud+xml", + "tfx": "image/tiff-fx", + "tif": "image/tiff", + "tiff": "image/tiff", + "toml": "application/toml", + "tr": "text/troff", + "trig": "application/trig", + "ts": "video/mp2t", + "tsd": "application/timestamped-data", + "tsv": "text/tab-separated-values", + "ttc": "font/collection", + "ttf": "font/ttf", + "ttl": "text/turtle", + "ttml": "application/ttml+xml", + "txt": "text/plain", + "u3d": "model/u3d", + "u8dsn": "message/global-delivery-status", + "u8hdr": "message/global-headers", + "u8mdn": "message/global-disposition-notification", + "u8msg": "message/global", + "ubj": "application/ubjson", + "uri": "text/uri-list", + "uris": "text/uri-list", + "urls": "text/uri-list", + "vcard": "text/vcard", + "vrml": "model/vrml", + "vtt": "text/vtt", + "vxml": "application/voicexml+xml", + "war": "application/java-archive", + "wasm": "application/wasm", + "wav": "audio/wav", + "weba": "audio/webm", + "webm": "video/webm", + "webmanifest": "application/manifest+json", + "webp": "image/webp", + "wgsl": "text/wgsl", + "wgt": "application/widget", + "wif": "application/watcherinfo+xml", + "wmf": "image/wmf", + "woff": "font/woff", + "woff2": "font/woff2", + "wrl": "model/vrml", + "wsdl": "application/wsdl+xml", + "wspolicy": "application/wspolicy+xml", + "x3d": "model/x3d+xml", + "x3db": "model/x3d+fastinfoset", + "x3dbz": "model/x3d+binary", + "x3dv": "model/x3d-vrml", + "x3dvz": "model/x3d+vrml", + "x3dz": "model/x3d+xml", + "xaml": "application/xaml+xml", + "xav": "application/xcap-att+xml", + "xca": "application/xcap-caps+xml", + "xcs": "application/calendar+xml", + "xdf": "application/xcap-diff+xml", + "xdssc": "application/dssc+xml", + "xel": "application/xcap-el+xml", + "xenc": "application/xenc+xml", + "xer": "application/patch-ops-error+xml", + "xfdf": "application/xfdf", + "xht": "application/xhtml+xml", + "xhtml": "application/xhtml+xml", + "xhvml": "application/xv+xml", + "xlf": "application/xliff+xml", + "xm": "audio/xm", + "xml": "text/xml", + "xns": "application/xcap-ns+xml", + "xop": "application/xop+xml", + "xpl": "application/xproc+xml", + "xsd": "application/xml", + "xsf": "application/prs.xsf+xml", + "xsl": "application/xml", + "xslt": "application/xml", + "xspf": "application/xspf+xml", + "xvm": "application/xv+xml", + "xvml": "application/xv+xml", + "yaml": "text/yaml", + "yang": "application/yang", + "yin": "application/yin+xml", + "yml": "text/yaml", + "zip": "application/zip" +}; + +function lookup(extn) { + let tmp = ('' + extn).trim().toLowerCase(); + let idx = tmp.lastIndexOf('.'); + return mimes[!~idx ? tmp : tmp.substring(++idx)]; +} + +const noop = () => {}; + +function isMatch(uri, arr) { + for (let i=0; i < arr.length; i++) { + if (arr[i].test(uri)) return true; + } +} + +function toAssume(uri, extns) { + let i=0, x, len=uri.length - 1; + if (uri.charCodeAt(len) === 47) { + uri = uri.substring(0, len); + } + + let arr=[], tmp=`${uri}/index`; + for (; i < extns.length; i++) { + x = extns[i] ? `.${extns[i]}` : ''; + if (uri) arr.push(uri + x); + arr.push(tmp + x); + } + + return arr; +} + +function viaCache(cache, uri, extns) { + let i=0, data, arr=toAssume(uri, extns); + for (; i < arr.length; i++) { + if (data = cache[arr[i]]) return data; + } +} + +function viaLocal(dir, isEtag, uri, extns) { + let i=0, arr=toAssume(uri, extns); + let abs, stats, name, headers; + for (; i < arr.length; i++) { + abs = normalize( + join(dir, name=arr[i]) + ); + + if (abs.startsWith(dir) && fs.existsSync(abs)) { + stats = fs.statSync(abs); + if (stats.isDirectory()) continue; + headers = toHeaders(name, stats, isEtag); + headers['Cache-Control'] = isEtag ? 'no-cache' : 'no-store'; + return { abs, stats, headers }; + } + } +} + +function is404(req, res) { + return (res.statusCode=404,res.end()); +} + +function send(req, res, file, stats, headers) { + let code=200, tmp, opts={}; + headers = { ...headers }; + + for (let key in headers) { + tmp = res.getHeader(key); + if (tmp) headers[key] = tmp; + } + + if (tmp = res.getHeader('content-type')) { + headers['Content-Type'] = tmp; + } + + if (req.headers.range) { + code = 206; + let [x, y] = req.headers.range.replace('bytes=', '').split('-'); + let end = opts.end = parseInt(y, 10) || stats.size - 1; + let start = opts.start = parseInt(x, 10) || 0; + + if (end >= stats.size) { + end = stats.size - 1; + } + + if (start >= stats.size) { + res.setHeader('Content-Range', `bytes */${stats.size}`); + res.statusCode = 416; + return res.end(); + } + + headers['Content-Range'] = `bytes ${start}-${end}/${stats.size}`; + headers['Content-Length'] = (end - start + 1); + headers['Accept-Ranges'] = 'bytes'; + } + + res.writeHead(code, headers); + fs.createReadStream(file, opts).pipe(res); +} + +const ENCODING = { + '.br': 'br', + '.gz': 'gzip', +}; + +function toHeaders(name, stats, isEtag) { + let enc = ENCODING[name.slice(-3)]; + + let ctype = lookup(name.slice(0, enc && -3)) || ''; + if (ctype === 'text/html') ctype += ';charset=utf-8'; + + let headers = { + 'Content-Length': stats.size, + 'Content-Type': ctype, + 'Last-Modified': stats.mtime.toUTCString(), + }; + + if (enc) headers['Content-Encoding'] = enc; + if (isEtag) headers['ETag'] = `W/"${stats.size}-${stats.mtime.getTime()}"`; + + return headers; +} + +function sirv (dir, opts={}) { + dir = resolve(dir || '.'); + + let isNotFound = opts.onNoMatch || is404; + let setHeaders = opts.setHeaders || noop; + + let extensions = opts.extensions || ['html', 'htm']; + let gzips = opts.gzip && extensions.map(x => `${x}.gz`).concat('gz'); + let brots = opts.brotli && extensions.map(x => `${x}.br`).concat('br'); + + const FILES = {}; + + let fallback = '/'; + let isEtag = !!opts.etag; + let isSPA = !!opts.single; + if (typeof opts.single === 'string') { + let idx = opts.single.lastIndexOf('.'); + fallback += !!~idx ? opts.single.substring(0, idx) : opts.single; + } + + let ignores = []; + if (opts.ignores !== false) { + ignores.push(/[/]([A-Za-z\s\d~$._-]+\.\w+){1,}$/); // any extn + if (opts.dotfiles) ignores.push(/\/\.\w/); + else ignores.push(/\/\.well-known/); + [].concat(opts.ignores || []).forEach(x => { + ignores.push(new RegExp(x, 'i')); + }); + } + + let cc = opts.maxAge != null && `public,max-age=${opts.maxAge}`; + if (cc && opts.immutable) cc += ',immutable'; + else if (cc && opts.maxAge === 0) cc += ',must-revalidate'; + + if (!opts.dev) { + totalist(dir, (name, abs, stats) => { + if (/\.well-known[\\+\/]/.test(name)) ; // keep + else if (!opts.dotfiles && /(^\.|[\\+|\/+]\.)/.test(name)) return; + + let headers = toHeaders(name, stats, isEtag); + if (cc) headers['Cache-Control'] = cc; + + FILES['/' + name.normalize().replace(/\\+/g, '/')] = { abs, stats, headers }; + }); + } + + let lookup = opts.dev ? viaLocal.bind(0, dir + sep, isEtag) : viaCache.bind(0, FILES); + + return function (req, res, next) { + let extns = ['']; + let pathname = parse(req).pathname; + let val = req.headers['accept-encoding'] || ''; + if (gzips && val.includes('gzip')) extns.unshift(...gzips); + if (brots && /(br|brotli)/i.test(val)) extns.unshift(...brots); + extns.push(...extensions); // [...br, ...gz, orig, ...exts] + + if (pathname.indexOf('%') !== -1) { + try { pathname = decodeURI(pathname); } + catch (err) { /* malform uri */ } + } + + let data = lookup(pathname, extns) || isSPA && !isMatch(pathname, ignores) && lookup(fallback, extns); + if (!data) return next ? next() : isNotFound(req, res); + + if (isEtag && req.headers['if-none-match'] === data.headers['ETag']) { + res.writeHead(304); + return res.end(); + } + + if (gzips || brots) { + res.setHeader('Vary', 'Accept-Encoding'); + } + + setHeaders(res, pathname, data.stats); + send(req, res, data.abs, data.stats, data.headers); + }; +} + +var setCookie = {exports: {}}; + +var hasRequiredSetCookie; + +function requireSetCookie () { + if (hasRequiredSetCookie) return setCookie.exports; + hasRequiredSetCookie = 1; + + var defaultParseOptions = { + decodeValues: true, + map: false, + silent: false, + }; + + function isNonEmptyString(str) { + return typeof str === "string" && !!str.trim(); + } + + function parseString(setCookieValue, options) { + var parts = setCookieValue.split(";").filter(isNonEmptyString); + + var nameValuePairStr = parts.shift(); + var parsed = parseNameValuePair(nameValuePairStr); + var name = parsed.name; + var value = parsed.value; + + options = options + ? Object.assign({}, defaultParseOptions, options) + : defaultParseOptions; + + try { + value = options.decodeValues ? decodeURIComponent(value) : value; // decode cookie value + } catch (e) { + console.error( + "set-cookie-parser encountered an error while decoding a cookie with value '" + + value + + "'. Set options.decodeValues to false to disable this feature.", + e + ); + } + + var cookie = { + name: name, + value: value, + }; + + parts.forEach(function (part) { + var sides = part.split("="); + var key = sides.shift().trimLeft().toLowerCase(); + var value = sides.join("="); + if (key === "expires") { + cookie.expires = new Date(value); + } else if (key === "max-age") { + cookie.maxAge = parseInt(value, 10); + } else if (key === "secure") { + cookie.secure = true; + } else if (key === "httponly") { + cookie.httpOnly = true; + } else if (key === "samesite") { + cookie.sameSite = value; + } else { + cookie[key] = value; + } + }); + + return cookie; + } + + function parseNameValuePair(nameValuePairStr) { + // Parses name-value-pair according to rfc6265bis draft + + var name = ""; + var value = ""; + var nameValueArr = nameValuePairStr.split("="); + if (nameValueArr.length > 1) { + name = nameValueArr.shift(); + value = nameValueArr.join("="); // everything after the first =, joined by a "=" if there was more than one part + } else { + value = nameValuePairStr; + } + + return { name: name, value: value }; + } + + function parse(input, options) { + options = options + ? Object.assign({}, defaultParseOptions, options) + : defaultParseOptions; + + if (!input) { + if (!options.map) { + return []; + } else { + return {}; + } + } + + if (input.headers) { + if (typeof input.headers.getSetCookie === "function") { + // for fetch responses - they combine headers of the same type in the headers array, + // but getSetCookie returns an uncombined array + input = input.headers.getSetCookie(); + } else if (input.headers["set-cookie"]) { + // fast-path for node.js (which automatically normalizes header names to lower-case + input = input.headers["set-cookie"]; + } else { + // slow-path for other environments - see #25 + var sch = + input.headers[ + Object.keys(input.headers).find(function (key) { + return key.toLowerCase() === "set-cookie"; + }) + ]; + // warn if called on a request-like object with a cookie header rather than a set-cookie header - see #34, 36 + if (!sch && input.headers.cookie && !options.silent) { + console.warn( + "Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning." + ); + } + input = sch; + } + } + if (!Array.isArray(input)) { + input = [input]; + } + + options = options + ? Object.assign({}, defaultParseOptions, options) + : defaultParseOptions; + + if (!options.map) { + return input.filter(isNonEmptyString).map(function (str) { + return parseString(str, options); + }); + } else { + var cookies = {}; + return input.filter(isNonEmptyString).reduce(function (cookies, str) { + var cookie = parseString(str, options); + cookies[cookie.name] = cookie; + return cookies; + }, cookies); + } + } + + /* + Set-Cookie header field-values are sometimes comma joined in one string. This splits them without choking on commas + that are within a single set-cookie field-value, such as in the Expires portion. + + This is uncommon, but explicitly allowed - see https://tools.ietf.org/html/rfc2616#section-4.2 + Node.js does this for every header *except* set-cookie - see https://github.com/nodejs/node/blob/d5e363b77ebaf1caf67cd7528224b651c86815c1/lib/_http_incoming.js#L128 + React Native's fetch does this for *every* header, including set-cookie. + + Based on: https://github.com/google/j2objc/commit/16820fdbc8f76ca0c33472810ce0cb03d20efe25 + Credits to: https://github.com/tomball for original and https://github.com/chrusart for JavaScript implementation + */ + function splitCookiesString(cookiesString) { + if (Array.isArray(cookiesString)) { + return cookiesString; + } + if (typeof cookiesString !== "string") { + return []; + } + + var cookiesStrings = []; + var pos = 0; + var start; + var ch; + var lastComma; + var nextStart; + var cookiesSeparatorFound; + + function skipWhitespace() { + while (pos < cookiesString.length && /\s/.test(cookiesString.charAt(pos))) { + pos += 1; + } + return pos < cookiesString.length; + } + + function notSpecialChar() { + ch = cookiesString.charAt(pos); + + return ch !== "=" && ch !== ";" && ch !== ","; + } + + while (pos < cookiesString.length) { + start = pos; + cookiesSeparatorFound = false; + + while (skipWhitespace()) { + ch = cookiesString.charAt(pos); + if (ch === ",") { + // ',' is a cookie separator if we have later first '=', not ';' or ',' + lastComma = pos; + pos += 1; + + skipWhitespace(); + nextStart = pos; + + while (pos < cookiesString.length && notSpecialChar()) { + pos += 1; + } + + // currently special character + if (pos < cookiesString.length && cookiesString.charAt(pos) === "=") { + // we found cookies separator + cookiesSeparatorFound = true; + // pos is inside the next cookie, so back up and return it. + pos = nextStart; + cookiesStrings.push(cookiesString.substring(start, lastComma)); + start = pos; + } else { + // in param ',' or param separator ';', + // we continue from that comma + pos = lastComma + 1; + } + } else { + pos += 1; + } + } + + if (!cookiesSeparatorFound || pos >= cookiesString.length) { + cookiesStrings.push(cookiesString.substring(start, cookiesString.length)); + } + } + + return cookiesStrings; + } + + setCookie.exports = parse; + setCookie.exports.parse = parse; + setCookie.exports.parseString = parseString; + setCookie.exports.splitCookiesString = splitCookiesString; + return setCookie.exports; +} + +var setCookieExports = /*@__PURE__*/ requireSetCookie(); + +/** @import { StandardSchemaV1 } from '@standard-schema/spec' */ + + +/** + * An error that was thrown from within the SvelteKit runtime that is not fatal and doesn't result in a 500, such as a 404. + * `SvelteKitError` goes through `handleError`. + * @extends Error + */ +class SvelteKitError extends Error { + /** + * @param {number} status + * @param {string} text + * @param {string} message + */ + constructor(status, text, message) { + super(message); + this.status = status; + this.text = text; + } +} + +/** + * @param {import('http').IncomingMessage} req + * @param {number} [body_size_limit] + */ +function get_raw_body(req, body_size_limit) { + const h = req.headers; + + if (!h['content-type']) { + return null; + } + + const content_length = Number(h['content-length']); + + // check if no request body + if ( + (req.httpVersionMajor === 1 && isNaN(content_length) && h['transfer-encoding'] == null) || + content_length === 0 + ) { + return null; + } + + if (req.destroyed) { + const readable = new ReadableStream(); + void readable.cancel(); + return readable; + } + + let size = 0; + let cancelled = false; + + return new ReadableStream({ + start(controller) { + if (body_size_limit !== undefined && content_length > body_size_limit) { + let message = `Content-length of ${content_length} exceeds limit of ${body_size_limit} bytes.`; + + if (body_size_limit === 0) { + // https://github.com/sveltejs/kit/pull/11589 + // TODO this exists to aid migration — remove in a future version + message += ' To disable body size limits, specify Infinity rather than 0.'; + } + + const error = new SvelteKitError(413, 'Payload Too Large', message); + + controller.error(error); + return; + } + + req.on('error', (error) => { + cancelled = true; + controller.error(error); + }); + + req.on('end', () => { + if (cancelled) return; + controller.close(); + }); + + req.on('data', (chunk) => { + if (cancelled) return; + + size += chunk.length; + if (size > content_length) { + cancelled = true; + + const constraint = content_length ? 'content-length' : 'BODY_SIZE_LIMIT'; + const message = `request body size exceeded ${constraint} of ${content_length}`; + + const error = new SvelteKitError(413, 'Payload Too Large', message); + controller.error(error); + + return; + } + + controller.enqueue(chunk); + + if (controller.desiredSize === null || controller.desiredSize <= 0) { + req.pause(); + } + }); + }, + + pull() { + req.resume(); + }, + + cancel(reason) { + cancelled = true; + req.destroy(reason); + } + }); +} + +/** + * @param {{ + * request: import('http').IncomingMessage; + * base: string; + * bodySizeLimit?: number; + * }} options + * @returns {Promise} + */ +// TODO 3.0 make the signature synchronous? +// eslint-disable-next-line @typescript-eslint/require-await +async function getRequest({ request, base, bodySizeLimit }) { + let headers = /** @type {Record} */ (request.headers); + if (request.httpVersionMajor >= 2) { + // the Request constructor rejects headers with ':' in the name + headers = Object.assign({}, headers); + // https://www.rfc-editor.org/rfc/rfc9113.html#section-8.3.1-2.3.5 + if (headers[':authority']) { + headers.host = headers[':authority']; + } + delete headers[':authority']; + delete headers[':method']; + delete headers[':path']; + delete headers[':scheme']; + } + + // TODO: Whenever Node >=22 is minimum supported version, we can use `request.readableAborted` + // @see https://github.com/nodejs/node/blob/5cf3c3e24c7257a0c6192ed8ef71efec8ddac22b/lib/internal/streams/readable.js#L1443-L1453 + const controller = new AbortController(); + let errored = false; + let end_emitted = false; + request.once('error', () => (errored = true)); + request.once('end', () => (end_emitted = true)); + request.once('close', () => { + if ((errored || request.destroyed) && !end_emitted) { + controller.abort(); + } + }); + + return new Request(base + request.url, { + // @ts-expect-error + duplex: 'half', + method: request.method, + headers: Object.entries(headers), + signal: controller.signal, + body: + request.method === 'GET' || request.method === 'HEAD' + ? undefined + : get_raw_body(request, bodySizeLimit) + }); +} + +/** + * @param {import('http').ServerResponse} res + * @param {Response} response + * @returns {Promise} + */ +// TODO 3.0 make the signature synchronous? +// eslint-disable-next-line @typescript-eslint/require-await +async function setResponse(res, response) { + for (const [key, value] of response.headers) { + try { + res.setHeader( + key, + key === 'set-cookie' + ? setCookieExports.splitCookiesString( + // This is absurd but necessary, TODO: investigate why + /** @type {string}*/ (response.headers.get(key)) + ) + : value + ); + } catch (error) { + res.getHeaderNames().forEach((name) => res.removeHeader(name)); + res.writeHead(500).end(String(error)); + return; + } + } + + res.writeHead(response.status); + + if (!response.body) { + res.end(); + return; + } + + if (response.body.locked) { + res.end( + 'Fatal error: Response body is locked. ' + + "This can happen when the response was already read (for example through 'response.json()' or 'response.text()')." + ); + return; + } + + const reader = response.body.getReader(); + + if (res.destroyed) { + void reader.cancel(); + return; + } + + const cancel = (/** @type {Error|undefined} */ error) => { + res.off('close', cancel); + res.off('error', cancel); + + // If the reader has already been interrupted with an error earlier, + // then it will appear here, it is useless, but it needs to be catch. + reader.cancel(error).catch(() => {}); + if (error) res.destroy(error); + }; + + res.on('close', cancel); + res.on('error', cancel); + + void next(); + async function next() { + try { + for (;;) { + const { done, value } = await reader.read(); + + if (done) break; + + if (!res.write(value)) { + res.once('drain', next); + return; + } + } + res.end(); + } catch (error) { + cancel(error instanceof Error ? error : new Error(String(error))); + } + } +} + +/** + * Converts a file on disk to a readable stream + * @param {string} file + * @returns {ReadableStream} + * @since 2.4.0 + */ +function createReadableStream(file) { + return /** @type {ReadableStream} */ (Readable.toWeb(createReadStream(file))); +} + +/** + * Parses the given value into number of bytes. + * + * @param {string} value - Size in bytes. Can also be specified with a unit suffix kilobytes (K), megabytes (M), or gigabytes (G). + * @returns {number} + */ +function parse_as_bytes(value) { + const multiplier = + { + K: 1024, + M: 1024 * 1024, + G: 1024 * 1024 * 1024 + }[value[value.length - 1]?.toUpperCase()] ?? 1; + return Number(multiplier != 1 ? value.substring(0, value.length - 1) : value) * multiplier; +} + +/* global "" */ + +const server = new Server(manifest); + +const origin = env('ORIGIN', undefined); +const xff_depth = parseInt(env('XFF_DEPTH', '1')); +const address_header = env('ADDRESS_HEADER', '').toLowerCase(); +const protocol_header = env('PROTOCOL_HEADER', '').toLowerCase(); +const host_header = env('HOST_HEADER', '').toLowerCase(); +const port_header = env('PORT_HEADER', '').toLowerCase(); + +const body_size_limit = parse_as_bytes(env('BODY_SIZE_LIMIT', '512K')); + +if (isNaN(body_size_limit)) { + throw new Error( + `Invalid BODY_SIZE_LIMIT: '${env('BODY_SIZE_LIMIT')}'. Please provide a numeric value.` + ); +} + +const dir = path.dirname(fileURLToPath(import.meta.url)); + +const asset_dir = `${dir}/client${base}`; + +await server.init({ + env: /** @type {Record} */ (process.env), + read: (file) => createReadableStream(`${asset_dir}/${file}`) +}); + +/** + * @param {string} path + * @param {boolean} client + */ +function serve(path, client = false) { + return fs__default.existsSync(path) + ? sirv(path, { + etag: true, + gzip: true, + brotli: true, + setHeaders: client + ? (res, pathname) => { + // only apply to build directory, not e.g. version.json + if ( + pathname.startsWith(`/${manifest.appPath}/immutable/`) && + res.statusCode === 200 + ) { + res.setHeader('cache-control', 'public,max-age=31536000,immutable'); + } + } + : undefined + }) + : undefined; +} + +// required because the static file server ignores trailing slashes +/** @returns {import('polka').Middleware} */ +function serve_prerendered() { + const handler = serve(path.join(dir, 'prerendered')); + + return (req, res, next) => { + let { pathname, search, query } = parse(req); + + try { + pathname = decodeURIComponent(pathname); + } catch { + // ignore invalid URI + } + + if (prerendered.has(pathname)) { + return handler?.(req, res, next); + } + + // remove or add trailing slash as appropriate + let location = pathname.at(-1) === '/' ? pathname.slice(0, -1) : pathname + '/'; + if (prerendered.has(location)) { + if (query) location += search; + res.writeHead(308, { location }).end(); + } else { + void next(); + } + }; +} + +/** @type {import('polka').Middleware} */ +const ssr = async (req, res) => { + /** @type {Request} */ + let request; + + try { + request = await getRequest({ + base: origin || get_origin(req.headers), + request: req, + bodySizeLimit: body_size_limit + }); + } catch { + res.statusCode = 400; + res.end('Bad Request'); + return; + } + + await setResponse( + res, + await server.respond(request, { + platform: { req }, + getClientAddress: () => { + if (address_header) { + if (!(address_header in req.headers)) { + throw new Error( + `Address header was specified with ${ + "" + 'ADDRESS_HEADER' + }=${address_header} but is absent from request` + ); + } + + const value = /** @type {string} */ (req.headers[address_header]) || ''; + + if (address_header === 'x-forwarded-for') { + const addresses = value.split(','); + + if (xff_depth < 1) { + throw new Error(`${"" + 'XFF_DEPTH'} must be a positive integer`); + } + + if (xff_depth > addresses.length) { + throw new Error( + `${"" + 'XFF_DEPTH'} is ${xff_depth}, but only found ${ + addresses.length + } addresses` + ); + } + return addresses[addresses.length - xff_depth].trim(); + } + + return value; + } + + return ( + req.connection?.remoteAddress || + // @ts-expect-error + req.connection?.socket?.remoteAddress || + req.socket?.remoteAddress || + // @ts-expect-error + req.info?.remoteAddress + ); + } + }) + ); +}; + +/** @param {import('polka').Middleware[]} handlers */ +function sequence(handlers) { + /** @type {import('polka').Middleware} */ + return (req, res, next) => { + /** + * @param {number} i + * @returns {ReturnType} + */ + function handle(i) { + if (i < handlers.length) { + return handlers[i](req, res, () => handle(i + 1)); + } else { + return next(); + } + } + + return handle(0); + }; +} + +/** + * @param {string} name + * @param {string | string[] | undefined} value + * @returns {string | undefined} + */ +function normalise_header(name, value) { + if (!name) return undefined; + if (Array.isArray(value)) { + if (value.length === 0) return undefined; + if (value.length === 1) return value[0]; + throw new Error( + `Multiple values provided for ${name} header where only one expected: ${value}` + ); + } + return value; +} + +/** + * @param {import('http').IncomingHttpHeaders} headers + * @returns {string} + */ +function get_origin(headers) { + const protocol = decodeURIComponent(normalise_header(protocol_header, headers[protocol_header]) || 'https'); + + // this helps us avoid host injections through the protocol header + if (protocol.includes(':')) { + throw new Error( + `The ${protocol_header} header specified ${protocol} which is an invalid because it includes \`:\`. It should only contain the protocol scheme (e.g. \`https\`)` + ); + } + + const host = + normalise_header(host_header, headers[host_header]) || + normalise_header('host', headers['host']); + if (!host) { + const header_names = host_header ? `${host_header} or host headers` : 'host header'; + throw new Error( + `Could not determine host. The request must have a value provided by the ${header_names}` + ); + } + + const port = normalise_header(port_header, headers[port_header]); + if (port && isNaN(+port)) { + throw new Error( + `The ${port_header} header specified ${port} which is an invalid port because it is not a number. The value should only contain the port number (e.g. 443)` + ); + } + + return port ? `${protocol}://${host}:${port}` : `${protocol}://${host}`; +} + +const handler = sequence( + /** @type {(import('sirv').RequestHandler | import('polka').Middleware)[]} */ + ([serve(path.join(dir, 'client'), true), serve_prerendered(), ssr].filter(Boolean)) +); + +export { handler }; diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/index.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/index.js new file mode 100644 index 0000000000000000000000000000000000000000..d5534bd0c3d7943a1f9a5b10198bb0e7dd70cd8f --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/index.js @@ -0,0 +1,345 @@ +import http from 'node:http'; +import process from 'node:process'; +import { handler } from './handler.js'; +import { env, timeout_env } from './env.js'; +import { setImmediate } from 'node:timers'; +import * as qs from 'node:querystring'; + +/** + * @param {string|RegExp} input The route pattern + * @param {boolean} [loose] Allow open-ended matching. Ignored with `RegExp` input. + */ +function parse$1(input, loose) { + if (input instanceof RegExp) return { keys:false, pattern:input }; + var c, o, tmp, ext, keys=[], pattern='', arr = input.split('/'); + arr[0] || arr.shift(); + + while (tmp = arr.shift()) { + c = tmp[0]; + if (c === '*') { + keys.push(c); + pattern += tmp[1] === '?' ? '(?:/(.*))?' : '/(.*)'; + } else if (c === ':') { + o = tmp.indexOf('?', 1); + ext = tmp.indexOf('.', 1); + keys.push( tmp.substring(1, !!~o ? o : !!~ext ? ext : tmp.length) ); + pattern += !!~o && !~ext ? '(?:/([^/]+?))?' : '/([^/]+?)'; + if (!!~ext) pattern += (!!~o ? '?' : '') + '\\' + tmp.substring(ext); + } else { + pattern += '/' + tmp; + } + } + + return { + keys: keys, + pattern: new RegExp('^' + pattern + (loose ? '(?=$|\/)' : '\/?$'), 'i') + }; +} + +const MAP = { + "": 0, + GET: 1, + HEAD: 2, + PATCH: 3, + OPTIONS: 4, + CONNECT: 5, + DELETE: 6, + TRACE: 7, + POST: 8, + PUT: 9, +}; + +class Trouter { + constructor() { + this.routes = []; + + this.all = this.add.bind(this, ''); + this.get = this.add.bind(this, 'GET'); + this.head = this.add.bind(this, 'HEAD'); + this.patch = this.add.bind(this, 'PATCH'); + this.options = this.add.bind(this, 'OPTIONS'); + this.connect = this.add.bind(this, 'CONNECT'); + this.delete = this.add.bind(this, 'DELETE'); + this.trace = this.add.bind(this, 'TRACE'); + this.post = this.add.bind(this, 'POST'); + this.put = this.add.bind(this, 'PUT'); + } + + use(route, ...fns) { + let handlers = [].concat.apply([], fns); + let { keys, pattern } = parse$1(route, true); + this.routes.push({ keys, pattern, method: '', handlers, midx: MAP[''] }); + return this; + } + + add(method, route, ...fns) { + let { keys, pattern } = parse$1(route); + let handlers = [].concat.apply([], fns); + this.routes.push({ keys, pattern, method, handlers, midx: MAP[method] }); + return this; + } + + find(method, url) { + let midx = MAP[method]; + let isHEAD = (midx === 2); + let i=0, j=0, k, tmp, arr=this.routes; + let matches=[], params={}, handlers=[]; + for (; i < arr.length; i++) { + tmp = arr[i]; + if (tmp.midx === midx || tmp.midx === 0 || (isHEAD && tmp.midx===1) ) { + if (tmp.keys === false) { + matches = tmp.pattern.exec(url); + if (matches === null) continue; + if (matches.groups !== void 0) for (k in matches.groups) params[k]=matches.groups[k]; + tmp.handlers.length > 1 ? (handlers=handlers.concat(tmp.handlers)) : handlers.push(tmp.handlers[0]); + } else if (tmp.keys.length > 0) { + matches = tmp.pattern.exec(url); + if (matches === null) continue; + for (j=0; j < tmp.keys.length;) params[tmp.keys[j]]=matches[++j]; + tmp.handlers.length > 1 ? (handlers=handlers.concat(tmp.handlers)) : handlers.push(tmp.handlers[0]); + } else if (tmp.pattern.test(url)) { + tmp.handlers.length > 1 ? (handlers=handlers.concat(tmp.handlers)) : handlers.push(tmp.handlers[0]); + } + } // else not a match + } + + return { params, handlers }; + } +} + +/** + * @typedef ParsedURL + * @type {import('.').ParsedURL} + */ + +/** + * @typedef Request + * @property {string} url + * @property {ParsedURL} _parsedUrl + */ + +/** + * @param {Request} req + * @returns {ParsedURL|void} + */ +function parse(req) { + let raw = req.url; + if (raw == null) return; + + let prev = req._parsedUrl; + if (prev && prev.raw === raw) return prev; + + let pathname=raw, search='', query; + + if (raw.length > 1) { + let idx = raw.indexOf('?', 1); + + if (idx !== -1) { + search = raw.substring(idx); + pathname = raw.substring(0, idx); + if (search.length > 1) { + query = qs.parse(search.substring(1)); + } + } + } + + return req._parsedUrl = { pathname, search, query, raw }; +} + +function onError(err, req, res) { + let code = typeof err.status === 'number' && err.status; + code = res.statusCode = (code && code >= 100 ? code : 500); + if (typeof err === 'string' || Buffer.isBuffer(err)) res.end(err); + else res.end(err.message || http.STATUS_CODES[code]); +} + +const mount = fn => fn instanceof Polka ? fn.attach : fn; + +class Polka extends Trouter { + constructor(opts={}) { + super(); + this.parse = parse; + this.server = opts.server; + this.handler = this.handler.bind(this); + this.onError = opts.onError || onError; // catch-all handler + this.onNoMatch = opts.onNoMatch || this.onError.bind(null, { status: 404 }); + this.attach = (req, res) => setImmediate(this.handler, req, res); + } + + use(base, ...fns) { + if (base === '/') { + super.use(base, fns.map(mount)); + } else if (typeof base === 'function' || base instanceof Polka) { + super.use('/', [base, ...fns].map(mount)); + } else { + super.use(base, + (req, _, next) => { + if (typeof base === 'string') { + let len = base.length; + base.startsWith('/') || len++; + req.url = req.url.substring(len) || '/'; + req.path = req.path.substring(len) || '/'; + } else { + req.url = req.url.replace(base, '') || '/'; + req.path = req.path.replace(base, '') || '/'; + } + if (req.url.charAt(0) !== '/') { + req.url = '/' + req.url; + } + next(); + }, + fns.map(mount), + (req, _, next) => { + req.path = req._parsedUrl.pathname; + req.url = req.path + req._parsedUrl.search; + next(); + } + ); + } + return this; // chainable + } + + listen() { + (this.server = this.server || http.createServer()).on('request', this.attach); + this.server.listen.apply(this.server, arguments); + return this; + } + + handler(req, res, next) { + let info = this.parse(req), path = info.pathname; + let obj = this.find(req.method, req.path=path); + + req.url = path + info.search; + req.originalUrl = req.originalUrl || req.url; + req.query = info.query || {}; + req.search = info.search; + req.params = obj.params; + + if (path.length > 1 && path.indexOf('%', 1) !== -1) { + for (let k in req.params) { + try { req.params[k] = decodeURIComponent(req.params[k]); } + catch (e) { /* malform uri segment */ } + } + } + + let i=0, arr=obj.handlers.concat(this.onNoMatch), len=arr.length; + let loop = async () => res.finished || (i < len) && arr[i++](req, res, next); + (next = next || (err => err ? this.onError(err, req, res, next) : loop().catch(next)))(); // init + } +} + +function polka (opts) { + return new Polka(opts); +} + +const path = env('SOCKET_PATH', false); +const host = env('HOST', '0.0.0.0'); +const port = env('PORT', !path && '3000'); + +const shutdown_timeout = parseInt(env('SHUTDOWN_TIMEOUT', '30')); +const idle_timeout = parseInt(env('IDLE_TIMEOUT', '0')); +const listen_pid = parseInt(env('LISTEN_PID', '0')); +const listen_fds = parseInt(env('LISTEN_FDS', '0')); +// https://www.freedesktop.org/software/systemd/man/latest/sd_listen_fds.html +const SD_LISTEN_FDS_START = 3; + +if (listen_pid !== 0 && listen_pid !== process.pid) { + throw new Error(`received LISTEN_PID ${listen_pid} but current process id is ${process.pid}`); +} +if (listen_fds > 1) { + throw new Error( + `only one socket is allowed for socket activation, but LISTEN_FDS was set to ${listen_fds}` + ); +} + +const socket_activation = listen_pid === process.pid && listen_fds === 1; + +let requests = 0; +/** @type {NodeJS.Timeout | void} */ +let shutdown_timeout_id; +/** @type {NodeJS.Timeout | void} */ +let idle_timeout_id; + +// Initialize the HTTP server here so that we can set properties before starting to listen. +// Otherwise, polka delays creating the server until listen() is called. Settings these +// properties after the server has started listening could lead to race conditions. +const httpServer = http.createServer(); + +const keep_alive_timeout = timeout_env('KEEP_ALIVE_TIMEOUT'); +if (keep_alive_timeout !== undefined) { + // Convert the keep-alive timeout from seconds to milliseconds (the unit Node.js expects). + httpServer.keepAliveTimeout = keep_alive_timeout * 1000; +} + +const headers_timeout = timeout_env('HEADERS_TIMEOUT'); +if (headers_timeout !== undefined) { + // Convert the headers timeout from seconds to milliseconds (the unit Node.js expects). + httpServer.headersTimeout = headers_timeout * 1000; +} + +const server = polka({ server: httpServer }).use(handler); + +if (socket_activation) { + server.listen({ fd: SD_LISTEN_FDS_START }, () => { + console.log(`Listening on file descriptor ${SD_LISTEN_FDS_START}`); + }); +} else { + server.listen({ path, host, port }, () => { + console.log(`Listening on ${path || `http://${host}:${port}`}`); + }); +} + +/** @param {'SIGINT' | 'SIGTERM' | 'IDLE'} reason */ +function graceful_shutdown(reason) { + if (shutdown_timeout_id) return; + + // If a connection was opened with a keep-alive header close() will wait for the connection to + // time out rather than close it even if it is not handling any requests, so call this first + httpServer.closeIdleConnections(); + + httpServer.close((error) => { + // occurs if the server is already closed + if (error) return; + + if (shutdown_timeout_id) { + clearTimeout(shutdown_timeout_id); + } + if (idle_timeout_id) { + clearTimeout(idle_timeout_id); + } + + // @ts-expect-error custom events cannot be typed + process.emit('sveltekit:shutdown', reason); + }); + + shutdown_timeout_id = setTimeout(() => httpServer.closeAllConnections(), shutdown_timeout * 1000); +} + +httpServer.on( + 'request', + /** @param {import('node:http').IncomingMessage} req */ + (req) => { + requests++; + + if (socket_activation && idle_timeout_id) { + idle_timeout_id = clearTimeout(idle_timeout_id); + } + + req.on('close', () => { + requests--; + + if (shutdown_timeout_id) { + // close connections as soon as they become idle, so they don't accept new requests + httpServer.closeIdleConnections(); + } + if (requests === 0 && socket_activation && idle_timeout) { + idle_timeout_id = setTimeout(() => graceful_shutdown('IDLE'), idle_timeout * 1000); + } + }); + } +); + +process.on('SIGTERM', graceful_shutdown); +process.on('SIGINT', graceful_shutdown); + +export { host, path, port, server }; diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/package.json b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/package.json new file mode 100644 index 0000000000000000000000000000000000000000..5f1ab280cdfea1d9dfb758051cd513a86136d5dc --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/package.json @@ -0,0 +1,4 @@ +{ + "name": "gradio-server-app", + "type": "module" +} \ No newline at end of file diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/0-BLqRTsLT.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/0-BLqRTsLT.js new file mode 100644 index 0000000000000000000000000000000000000000..3ac911d7e1b093a5e5ccffd314afe1e4071d0fb9 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/0-BLqRTsLT.js @@ -0,0 +1,21 @@ +import { r as redirect } from './index-wpIsICWW.js'; +import { t } from './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; + +function i({url:t$1}){const{pathname:e,search:a}=t$1;t&&t$1.pathname.startsWith("/theme")&&redirect(308,`http://127.0.0.1:7860${e}${a}`);} + +var _layout_server_ts = /*#__PURE__*/Object.freeze({ + __proto__: null, + load: i +}); + +const index = 0; +let component_cache; +const component = async () => component_cache ??= (await import('./_layout.svelte-D_OOsCko.js')).default; +const server_id = "src/routes/+layout.server.ts"; +const imports = ["_app/immutable/nodes/0.CijlEipX.js","_app/immutable/chunks/B9qV0nBn.js","_app/immutable/chunks/BiJ6z1av.js","_app/immutable/chunks/ByO86Xwm.js","_app/immutable/chunks/B8UwWlCi.js"]; +const stylesheets = ["_app/immutable/assets/0.B7Jzi1GB.css"]; +const fonts = []; + +export { component, fonts, imports, index, _layout_server_ts as server, server_id, stylesheets }; +//# sourceMappingURL=0-BLqRTsLT.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/1-BYpP8oY6.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/1-BYpP8oY6.js new file mode 100644 index 0000000000000000000000000000000000000000..cbe08e6a7213e9a3d9bb7a7a5e07cda1ea973beb --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/1-BYpP8oY6.js @@ -0,0 +1,9 @@ +const index = 1; +let component_cache; +const component = async () => component_cache ??= (await import('./error.svelte-Ce7oGBBD.js')).default; +const imports = ["_app/immutable/nodes/1.DAgQwWiu.js","_app/immutable/chunks/B9qV0nBn.js","_app/immutable/chunks/BiJ6z1av.js","_app/immutable/chunks/ByO86Xwm.js","_app/immutable/chunks/m3X5E8Ce.js","_app/immutable/chunks/CggbCgVT.js","_app/immutable/chunks/BvKdJnVK.js","_app/immutable/chunks/DcUPjU6e.js"]; +const stylesheets = []; +const fonts = []; + +export { component, fonts, imports, index, stylesheets }; +//# sourceMappingURL=1-BYpP8oY6.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/2-BLdXJizP.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/2-BLdXJizP.js new file mode 100644 index 0000000000000000000000000000000000000000..e1f825b8e8ceea5accd87d542bf9bcef60fc63ea --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/2-BLdXJizP.js @@ -0,0 +1,52 @@ +import { a, t } from './index5-BoOEKc6P.js'; +import { w as writable, d as derived } from './index-Cg-Pg6j3.js'; +import './async-D55cHugf.js'; + +var us=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function on(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ue,wt;function sn(){if(wt)return Ue;wt=1;var e=function(m){return t(m)&&!r(m)};function t(p){return !!p&&typeof p=="object"}function r(p){var m=Object.prototype.toString.call(p);return m==="[object RegExp]"||m==="[object Date]"||i(p)}var n=typeof Symbol=="function"&&Symbol.for,o=n?Symbol.for("react.element"):60103;function i(p){return p.$$typeof===o}function s(p){return Array.isArray(p)?[]:{}}function a(p,m){return m.clone!==false&&m.isMergeableObject(p)?d(s(p),p,m):p}function h(p,m,g){return p.concat(m).map(function(H){return a(H,g)})}function u(p,m){if(!m.customMerge)return d;var g=m.customMerge(p);return typeof g=="function"?g:d}function l(p){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(p).filter(function(m){return Object.propertyIsEnumerable.call(p,m)}):[]}function c(p){return Object.keys(p).concat(l(p))}function f(p,m){try{return m in p}catch{return false}}function _(p,m){return f(p,m)&&!(Object.hasOwnProperty.call(p,m)&&Object.propertyIsEnumerable.call(p,m))}function P(p,m,g){var H={};return g.isMergeableObject(p)&&c(p).forEach(function(S){H[S]=a(p[S],g);}),c(m).forEach(function(S){_(p,S)||(f(p,S)&&g.isMergeableObject(m[S])?H[S]=u(S,g)(p[S],m[S],g):H[S]=a(m[S],g));}),H}function d(p,m,g){g=g||{},g.arrayMerge=g.arrayMerge||h,g.isMergeableObject=g.isMergeableObject||e,g.cloneUnlessOtherwiseSpecified=a;var H=Array.isArray(m),S=Array.isArray(p),D=H===S;return D?H?g.arrayMerge(p,m,g):P(p,m,g):a(m,g)}d.all=function(m,g){if(!Array.isArray(m))throw new Error("first argument should be an array");return m.reduce(function(H,S){return d(H,S,g)},{})};var v=d;return Ue=v,Ue}var an=sn();const cn=on(an);var Ze=function(e,t){return Ze=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n;}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o]);},Ze(e,t)};function Ne(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ze(e,t);function r(){this.constructor=e;}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r);}var w=function(){return w=Object.assign||function(t){for(var r,n=1,o=arguments.length;n"u"&&(i=e.call(this,n),t.set(o,i)),i}function Wt(e,t,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),i=t.get(o);return typeof i>"u"&&(i=e.apply(this,n),t.set(o,i)),i}function Zt(e,t,r,n,o){return r.bind(t,e,n,o)}function fn(e,t){var r=e.length===1?hn:Wt;return Zt(e,this,r,t.cache.create(),t.serializer)}function pn(e,t){return Zt(e,this,Wt,t.cache.create(),t.serializer)}var dn=function(){return JSON.stringify(arguments)},mn=(function(){function e(){this.cache=Object.create(null);}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,r){this.cache[t]=r;},e})(),_n={create:function(){return new mn}},Ge={variadic:pn},b;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG";})(b||(b={}));var A;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag";})(A||(A={}));var re;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime";})(re||(re={}));function vt(e){return e.type===A.literal}function gn(e){return e.type===A.argument}function Jt(e){return e.type===A.number}function Qt(e){return e.type===A.date}function Yt(e){return e.type===A.time}function Kt(e){return e.type===A.select}function er(e){return e.type===A.plural}function bn(e){return e.type===A.pound}function tr(e){return e.type===A.tag}function rr(e){return !!(e&&typeof e=="object"&&e.type===re.number)}function Je(e){return !!(e&&typeof e=="object"&&e.type===re.dateTime)}var nr=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,yn=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function wn(e){var t={};return e.replace(yn,function(r){var n=r.length;switch(r[0]){case "G":t.era=n===4?"long":n===5?"narrow":"short";break;case "y":t.year=n===2?"2-digit":"numeric";break;case "Y":case "u":case "U":case "r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case "q":case "Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case "M":case "L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case "w":case "W":throw new RangeError("`w/W` (week) patterns are not supported");case "d":t.day=["numeric","2-digit"][n-1];break;case "D":case "F":case "g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case "E":t.weekday=n===4?"long":n===5?"narrow":"short";break;case "e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case "c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case "a":t.hour12=true;break;case "b":case "B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case "h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case "H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case "K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case "k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case "j":case "J":case "C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case "m":t.minute=["numeric","2-digit"][n-1];break;case "s":t.second=["numeric","2-digit"][n-1];break;case "S":case "A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case "z":t.timeZoneName=n<4?"short":"long";break;case "Z":case "O":case "v":case "V":case "X":case "x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return ""}),t}var vn=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function En(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(vn).filter(function(f){return f.length>0}),r=[],n=0,o=t;n1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(Sn,function(h,u,l,c,f,_){if(u)t.minimumIntegerDigits=l.length;else {if(c&&f)throw new Error("We currently do not support maximum integer digits");if(_)throw new Error("We currently do not support exact integer digits")}return ""});continue}if(ir.test(o.stem)){t.minimumIntegerDigits=o.stem.length;continue}if(Et.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Et,function(h,u,l,c,f,_){return l==="*"?t.minimumFractionDigits=u.length:c&&c[0]==="#"?t.maximumFractionDigits=c.length:f&&_?(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length+_.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var i=o.options[0];i==="w"?t=w(w({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=w(w({},t),xt(i)));continue}if(or.test(o.stem)){t=w(w({},t),xt(o.stem));continue}var s=sr(o.stem);s&&(t=w(w({},t),s));var a=Tn(o.stem);a&&(t=w(w({},t),a));}return t}var Ee={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function Pn(e,t){for(var r="",n=0;n>1),h="a",u=Hn(t);for((u=="H"||u=="k")&&(a=0);a-- >0;)r+=h;for(;s-- >0;)r=u+r;}else o==="J"?r+="H":r+=o;}return r}function Hn(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case "h24":return "k";case "h23":return "H";case "h12":return "h";case "h11":return "K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var o=Ee[n||""]||Ee[r||""]||Ee["".concat(r,"-001")]||Ee["001"];return o[0]}var Fe,On=new RegExp("^".concat(nr.source,"*")),Bn=new RegExp("".concat(nr.source,"*$"));function y(e,t){return {start:e,end:t}}var Cn=!!String.prototype.startsWith&&"_a".startsWith("a",1),Nn=!!String.fromCodePoint,In=!!Object.fromEntries,Rn=!!String.prototype.codePointAt,Ln=!!String.prototype.trimStart,Mn=!!String.prototype.trimEnd,Dn=!!Number.isSafeInteger,kn=Dn?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Qe=true;try{var Un=cr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Qe=((Fe=Un.exec("a"))===null||Fe===void 0?void 0:Fe[0])==="a";}catch{Qe=false;}var Tt=Cn?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},Ye=Nn?String.fromCodePoint:function(){for(var t=[],r=0;ri;){if(s=t[i++],s>1114111)throw RangeError(s+" is not a valid code point");n+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320);}return n},At=In?Object.fromEntries:function(t){for(var r={},n=0,o=t;n=n)){var o=t.charCodeAt(r),i;return o<55296||o>56319||r+1===n||(i=t.charCodeAt(r+1))<56320||i>57343?o:(o-55296<<10)+(i-56320)+65536}},$n=Ln?function(t){return t.trimStart()}:function(t){return t.replace(On,"")},jn=Mn?function(t){return t.trimEnd()}:function(t){return t.replace(Bn,"")};function cr(e,t){return new RegExp(e,t)}var Ke;if(Qe){var Pt=cr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ke=function(t,r){var n;Pt.lastIndex=r;var o=Pt.exec(t);return (n=o[1])!==null&&n!==void 0?n:""};}else Ke=function(t,r){for(var n=[];;){var o=ar(t,r);if(o===void 0||ur(o)||qn(o))break;n.push(o),r+=o>=65536?2:1;}return Ye.apply(void 0,n)};var Gn=(function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons;}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",false)},e.prototype.parseMessage=function(t,r,n){for(var o=[];!this.isEOF();){var i=this.char();if(i===123){var s=this.parseArgument(t,n);if(s.err)return s;o.push(s.val);}else {if(i===125&&t>0)break;if(i===35&&(r==="plural"||r==="selectordinal")){var a=this.clonePosition();this.bump(),o.push({type:A.pound,location:y(a,this.clonePosition())});}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(b.UNMATCHED_CLOSING_TAG,y(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&et(this.peek()||0)){var s=this.parseTag(t,r);if(s.err)return s;o.push(s.val);}else {var s=this.parseLiteral(t,r);if(s.err)return s;o.push(s.val);}}}return {val:o,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return {val:{type:A.literal,value:"<".concat(o,"/>"),location:y(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,r,true);if(i.err)return i;var s=i.val,a=this.clonePosition();if(this.bumpIf("")?{val:{type:A.tag,value:o,children:s,location:y(n,this.clonePosition())},err:null}:this.error(b.INVALID_TAG,y(a,this.clonePosition())))}else return this.error(b.UNCLOSED_TAG,y(n,this.clonePosition()))}else return this.error(b.INVALID_TAG,y(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&zn(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),o="";;){var i=this.tryParseQuote(r);if(i){o+=i;continue}var s=this.tryParseUnquoted(t,r);if(s){o+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){o+=a;continue}break}var h=y(n,this.clonePosition());return {val:{type:A.literal,value:o,location:h},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return !this.isEOF()&&this.char()===60&&(this.ignoreTag||!Fn(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else {this.bump();break}else r.push(n);this.bump();}return Ye.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),Ye(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,y(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(b.EMPTY_ARGUMENT,y(n,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(b.MALFORMED_ARGUMENT,y(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,y(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:A.argument,value:o,location:y(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,y(n,this.clonePosition())):this.parseArgumentOptions(t,r,o,n);default:return this.error(b.MALFORMED_ARGUMENT,y(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=Ke(this.message,r),o=r+n.length;this.bumpTo(o);var i=this.clonePosition(),s=y(t,i);return {value:n,location:s}},e.prototype.parseArgumentOptions=function(t,r,n,o){var i,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,h=this.clonePosition();switch(a){case "":return this.error(b.EXPECT_ARGUMENT_TYPE,y(s,h));case "number":case "date":case "time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition(),c=this.parseSimpleArgStyleIfPossible();if(c.err)return c;var f=jn(c.val);if(f.length===0)return this.error(b.EXPECT_ARGUMENT_STYLE,y(this.clonePosition(),this.clonePosition()));var _=y(l,this.clonePosition());u={style:f,styleLocation:_};}var P=this.tryParseArgumentClose(o);if(P.err)return P;var d=y(o,this.clonePosition());if(u&&Tt(u?.style,"::",0)){var v=$n(u.style.slice(2));if(a==="number"){var c=this.parseNumberSkeletonFromString(v,u.styleLocation);return c.err?c:{val:{type:A.number,value:n,location:d,style:c.val},err:null}}else {if(v.length===0)return this.error(b.EXPECT_DATE_TIME_SKELETON,d);var p=v;this.locale&&(p=Pn(v,this.locale));var f={type:re.dateTime,pattern:p,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?wn(p):{}},m=a==="date"?A.date:A.time;return {val:{type:m,value:n,location:d,style:f},err:null}}}return {val:{type:a==="number"?A.number:a==="date"?A.date:A.time,value:n,location:d,style:(i=u?.style)!==null&&i!==void 0?i:null},err:null}}case "plural":case "selectordinal":case "select":{var g=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS,y(g,w({},g)));this.bumpSpace();var H=this.parseIdentifierIfPossible(),S=0;if(a!=="select"&&H.value==="offset"){if(!this.bumpIf(":"))return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,y(this.clonePosition(),this.clonePosition()));this.bumpSpace();var c=this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(c.err)return c;this.bumpSpace(),H=this.parseIdentifierIfPossible(),S=c.val;}var D=this.tryParsePluralOrSelectOptions(t,a,r,H);if(D.err)return D;var P=this.tryParseArgumentClose(o);if(P.err)return P;var be=y(o,this.clonePosition());return a==="select"?{val:{type:A.select,value:n,options:At(D.val),location:be},err:null}:{val:{type:A.plural,value:n,options:At(D.val),offset:S,pluralType:a==="plural"?"cardinal":"ordinal",location:be},err:null}}default:return this.error(b.INVALID_ARGUMENT_TYPE,y(s,h))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,y(t,this.clonePosition())):(this.bump(),{val:true,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var o=this.clonePosition();if(!this.bumpUntil("'"))return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,y(o,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return {val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return {val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=En(t);}catch{return this.error(b.INVALID_NUMBER_SKELETON,r)}return {val:{type:re.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?An(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,o){for(var i,s=false,a=[],h=new Set,u=o.value,l=o.location;;){if(u.length===0){var c=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var f=this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR,b.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;l=y(c,this.clonePosition()),u=this.message.slice(c.offset,this.offset());}else break}if(h.has(u))return this.error(r==="select"?b.DUPLICATE_SELECT_ARGUMENT_SELECTOR:b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);u==="other"&&(s=true),this.bumpSpace();var _=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,y(this.clonePosition(),this.clonePosition()));var P=this.parseMessage(t+1,r,n);if(P.err)return P;var d=this.tryParseArgumentClose(_);if(d.err)return d;a.push([u,{value:P.val,location:y(_,this.clonePosition())}]),h.add(u),this.bumpSpace(),i=this.parseIdentifierIfPossible(),u=i.value,l=i.location;}return a.length===0?this.error(r==="select"?b.EXPECT_SELECT_ARGUMENT_SELECTOR:b.EXPECT_PLURAL_ARGUMENT_SELECTOR,y(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(b.MISSING_OTHER_CLAUSE,y(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=false,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)i=true,s=s*10+(a-48),this.bump();else break}var h=y(o,this.clonePosition());return i?(s*=n,kn(s)?{val:s,err:null}:this.error(r,h)):this.error(t,h)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return {offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=ar(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return {val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2);}},e.prototype.bumpIf=function(t){if(Tt(this.message,t,this.offset())){for(var r=0;r=0?(this.bumpTo(n),true):(this.bumpTo(this.message.length),false)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&ur(this.char());)this.bump();},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n??null},e})();function et(e){return e>=97&&e<=122||e>=65&&e<=90}function Fn(e){return et(e)||e===47}function zn(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function ur(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function qn(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function tt(e){e.forEach(function(t){if(delete t.location,Kt(t)||er(t))for(var r in t.options)delete t.options[r].location,tt(t.options[r].value);else Jt(t)&&rr(t.style)||(Qt(t)||Yt(t))&&Je(t.style)?delete t.style.location:tr(t)&&tt(t.children);});}function Vn(e,t){t===void 0&&(t={}),t=w({shouldParseSkeletons:true,requiresOtherClause:true},t);var r=new Gn(e,t).parse();if(r.err){var n=SyntaxError(b[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t?.captureLocation||tt(r.val),r.val}var ne;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API";})(ne||(ne={}));var Ie=(function(e){Ne(t,e);function t(r,n,o){var i=e.call(this,r)||this;return i.code=n,i.originalMessage=o,i}return t.prototype.toString=function(){return "[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t})(Error),Ht=(function(e){Ne(t,e);function t(r,n,o,i){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(o).join('", "'),'"'),ne.INVALID_VALUE,i)||this}return t})(Ie),Xn=(function(e){Ne(t,e);function t(r,n,o){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),ne.INVALID_VALUE,o)||this}return t})(Ie),Wn=(function(e){Ne(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),ne.MISSING_VALUE,n)||this}return t})(Ie),N;(function(e){e[e.literal=0]="literal",e[e.object=1]="object";})(N||(N={}));function Zn(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return !n||n.type!==N.literal||r.type!==N.literal?t.push(r):n.value+=r.value,t},[])}function Jn(e){return typeof e=="function"}function Te(e,t,r,n,o,i,s){if(e.length===1&&vt(e[0]))return [{type:N.literal,value:e[0].value}];for(var a=[],h=0,u=e;h"u")){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Vn,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e})();function eo(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let o=0;o0){const i=r.slice(o,r.length).join(".");if(i in n){n=n[i];break}}n=n[r[o]];}else n=void 0;return n}const V={},to=(e,t,r)=>r&&(t in V||(V[t]={}),e in V[t]||(V[t][e]=r),r),hr=(e,t)=>{if(t==null)return;if(t in V&&e in V[t])return V[t][e];const r=ge(t);for(let n=0;n(r[e]=cn.all([r[e]||{},...t]),r));}derived([se],([e])=>Object.keys(e));se.subscribe(e=>st=e);const pe={};function io(e){pe[e]=new Set;}function so(e,t){pe[e].delete(t),pe[e].size===0&&delete pe[e];}function de(e){return pe[e]}function ao(e){return ge(e).map(t=>{const r=de(t);return [t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function Pe(e){return e==null?false:ge(e).some(t=>{var r;return (r=de(t))==null?void 0:r.size})}function co(e,t){return Promise.all(t.map(n=>(so(e,n),n().then(o=>o.default||o)))).then(n=>Ae(e,...n))}const he={};function fr(e){if(!Pe(e))return e in he?he[e]:Promise.resolve();const t=ao(e);return he[e]=Promise.all(t.map(([r,n])=>co(r,n))).then(()=>{if(Pe(e))return fr(e);delete he[e];}),he[e]}function uo(e,t){de(e)||io(e);const r=de(e);de(e).has(t)||(at(e)||se.update(n=>(n[e]={},n)),r.add(t));}var Ot=Object.getOwnPropertySymbols,lo=Object.prototype.hasOwnProperty,ho=Object.prototype.propertyIsEnumerable,fo=(e,t)=>{var r={};for(var n in e)lo.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ot)for(var n of Ot(e))t.indexOf(n)<0&&ho.call(e,n)&&(r[n]=e[n]);return r};const po={number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}};function mo({locale:e,id:t}){console.warn(`[svelte-i18n] The message "${t}" was not found in "${ge(e).join('", "')}".${Pe(W())?` + +Note: there are at least one loader still registered to this locale that wasn't executed.`:""}`);}const _o={fallbackLocale:null,loadingDelay:200,formats:po,warnOnMissingMessages:true,handleMissingMessage:void 0,ignoreTag:true},fe=_o;function oe(){return fe}function go(e){const t=e,{formats:r}=t,n=fo(t,["formats"]);let o=e.fallbackLocale;if(e.initialLocale)try{lr.resolveLocale(e.initialLocale)&&(o=e.initialLocale);}catch{console.warn(`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`);}return n.warnOnMissingMessages&&(delete n.warnOnMissingMessages,n.handleMissingMessage==null?n.handleMissingMessage=mo:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(fe,n,{initialLocale:o}),r&&("number"in r&&Object.assign(fe.formats.number,r.number),"date"in r&&Object.assign(fe.formats.date,r.date),"time"in r&&Object.assign(fe.formats.time,r.time)),J.set(o)}const qe=writable(false);var bo=Object.defineProperty,yo=Object.defineProperties,wo=Object.getOwnPropertyDescriptors,Bt=Object.getOwnPropertySymbols,vo=Object.prototype.hasOwnProperty,Eo=Object.prototype.propertyIsEnumerable,Ct=(e,t,r)=>t in e?bo(e,t,{enumerable:true,configurable:true,writable:true,value:r}):e[t]=r,xo=(e,t)=>{for(var r in t||(t={}))vo.call(t,r)&&Ct(e,r,t[r]);if(Bt)for(var r of Bt(t))Eo.call(t,r)&&Ct(e,r,t[r]);return e},So=(e,t)=>yo(e,wo(t));let rt;const He=writable(null);function Nt(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function ge(e,t=oe().fallbackLocale){const r=Nt(e);return t?[...new Set([...r,...Nt(t)])]:r}function W(){return rt??void 0}He.subscribe(e=>{rt=e??void 0,typeof window<"u"&&e!=null&&document.documentElement.setAttribute("lang",e);});const To=e=>{if(e&&oo(e)&&Pe(e)){const{loadingDelay:t}=oe();let r;return typeof window<"u"&&W()!=null&&t?r=window.setTimeout(()=>qe.set(true),t):qe.set(true),fr(e).then(()=>{He.set(e);}).finally(()=>{clearTimeout(r),qe.set(false);})}return He.set(e)},J=So(xo({},He),{set:To}),Ao=()=>typeof window>"u"?null:window.navigator.language||window.navigator.languages[0],Re=e=>{const t=Object.create(null);return n=>{const o=JSON.stringify(n);return o in t?t[o]:t[o]=e(n)}};var Po=Object.defineProperty,Oe=Object.getOwnPropertySymbols,pr=Object.prototype.hasOwnProperty,dr=Object.prototype.propertyIsEnumerable,It=(e,t,r)=>t in e?Po(e,t,{enumerable:true,configurable:true,writable:true,value:r}):e[t]=r,ct=(e,t)=>{for(var r in t||(t={}))pr.call(t,r)&&It(e,r,t[r]);if(Oe)for(var r of Oe(t))dr.call(t,r)&&It(e,r,t[r]);return e},ae=(e,t)=>{var r={};for(var n in e)pr.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Oe)for(var n of Oe(e))t.indexOf(n)<0&&dr.call(e,n)&&(r[n]=e[n]);return r};const _e=(e,t)=>{const{formats:r}=oe();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Ho=Re(e=>{var t=e,{locale:r,format:n}=t,o=ae(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(o=_e("number",n)),new Intl.NumberFormat(r,o)}),Oo=Re(e=>{var t=e,{locale:r,format:n}=t,o=ae(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?o=_e("date",n):Object.keys(o).length===0&&(o=_e("date","short")),new Intl.DateTimeFormat(r,o)}),Bo=Re(e=>{var t=e,{locale:r,format:n}=t,o=ae(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?o=_e("time",n):Object.keys(o).length===0&&(o=_e("time","short")),new Intl.DateTimeFormat(r,o)}),Co=(e={})=>{var t=e,{locale:r=W()}=t,n=ae(t,["locale"]);return Ho(ct({locale:r},n))},No=(e={})=>{var t=e,{locale:r=W()}=t,n=ae(t,["locale"]);return Oo(ct({locale:r},n))},Io=(e={})=>{var t=e,{locale:r=W()}=t,n=ae(t,["locale"]);return Bo(ct({locale:r},n))},Ro=Re((e,t=W())=>new lr(e,t,oe().formats,{ignoreTag:oe().ignoreTag})),Lo=(e,t={})=>{var r,n,o,i;let s=t;typeof e=="object"&&(s=e,e=s.id);const{values:a,locale:h=W(),default:u}=s;if(h==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=hr(e,h);if(!l)l=(i=(o=(n=(r=oe()).handleMissingMessage)==null?void 0:n.call(r,{locale:h,id:e,defaultValue:u}))!=null?o:u)!=null?i:e;else if(typeof l!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),l;if(!a)return l;let c=l;try{c=Ro(l,h).format(a);}catch(f){f instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,f.message);}return c},Mo=(e,t)=>Io(t).format(e),Do=(e,t)=>No(t).format(e),ko=(e,t)=>Co(t).format(e),Uo=(e,t=W())=>hr(e,t),ls=derived([J,se],()=>Lo);derived([J],()=>Mo);derived([J],()=>Do);derived([J],()=>ko);derived([J,se],()=>Uo);const hs=writable(null);let mr=false;typeof window<"u"&&"attachShadow"in Element.prototype&&"adoptedStyleSheets"in Document.prototype&&(mr="adoptedStyleSheets"in document.createElement("div").attachShadow({mode:"open"}));function fs(e,t){const r=new URL(import.meta.url).origin;var n=e;if(window.location.origin!==r&&(n=new URL(e,r).href),document.querySelector(`link[href='${n}']`))return Promise.resolve();const i=document.createElement("link");return i.rel="stylesheet",i.href=n,new Promise((s,a)=>{i.addEventListener("load",()=>s()),i.addEventListener("error",()=>{console.error(`Unable to preload CSS for ${n}`),s();}),t.appendChild(i);})}function ps(e,t,r){if(!mr)return e;r||(r=document.createElement("style")),r.remove();const n=new CSSStyleSheet;n.replaceSync(e);let o="";e=e.replace(/@import\s+url\((.*?)\);\s*/g,(h,u)=>(o+=`@import url(${u}); +`,""));const i=n.cssRules;let s="",a=`.gradio-container.gradio-container-${t} .contain `;for(let h=0;h`${l?".dark":""} ${a} ${_.trim()} `).join(",");s+=u.cssText,s+=u.cssText.replace(c,f);}}else if(u instanceof CSSMediaRule){let c=`@media ${u.media.mediaText} {`;for(let f=0;f`${P?".dark":""} ${a} ${p.trim()} `).join(",");c+=_.cssText.replace(d,v);}}c+="}",s+=c;}else if(u instanceof CSSKeyframesRule){s+=`@keyframes ${u.name} {`;for(let c=0;cimport('./Index32-CS6M-sDq.js')},annotatedimage:{component:()=>import('./Index19-DpiCCfwG.js')},audio:{base:()=>import('./StaticAudio-CgMOYc6I.js').then(e=>e.a),example:()=>import('./Example10-_LenqteX.js'),component:()=>import('./index53-wvB_-bo9.js')},box:{component:()=>import('./Index6-Dg9kw5g4.js')},browserstate:{component:()=>import('./Index56-OtsFTROQ.js')},button:{component:()=>import('./Index7-Dolnx2KV.js')},chatbot:{component:()=>import('./Index54-CG_RFEl_.js')},checkbox:{example:()=>import('./Example11-CnvgxPlT.js'),component:()=>import('./Index8-sgQSOedG.js')},checkboxgroup:{example:()=>import('./Example12-DCDYOPbl.js'),component:()=>import('./Index20-D3t7cSFS.js')},code:{example:()=>import('./Example-DMvLoGhj.js'),component:()=>import('./Index52-Ct2COUi7.js')},colorpicker:{example:()=>import('./Example13-cXK-YGz2.js'),component:()=>import('./Index40-BmKhnhD5.js')},column:{component:()=>import('./Index9-lTiGg_Yw.js')},core:{component:()=>import('./index-CF7WUfN6.js')},dataframe:{example:()=>import('./Example14-s-dCDI60.js'),component:()=>import('./Index55-BAtPzDMY.js')},dataset:{component:()=>import('./Index44-DoqJwFUP.js')},datetime:{example:()=>import('./Example3-a2_CbOT1.js'),component:()=>import('./Index45-ByRwIX9r.js')},dialogue:{example:()=>import('./Example15-OgTyyC0U.js'),component:()=>import('./Index46-B2HXwsTl.js')},downloadbutton:{component:()=>import('./Index33-CIS7gDsu.js')},draggable:{component:()=>import('./Index21-DG_phLLh.js')},dropdown:{example:()=>import('./Example4-wtFKJHsa.js'),component:()=>import('./Index41-Cc8nrDFD.js')},file:{example:()=>import('./Example5-CnJKzaeD.js'),component:()=>import('./Index22-CQuVrHGG.js')},fileexplorer:{example:()=>import('./Example16-D8xbA2sg.js'),component:()=>import('./Index51-DQjJeLA9.js')},form:{component:()=>import('./Index10-f722DtJ1.js')},gallery:{base:()=>import('./Gallery-CCN3JI-P.js').then(e=>e.a),example:()=>import('./Example17-B0rWh-Zw.js'),component:()=>import('./Index23-DRLu7Qlf.js')},group:{component:()=>import('./Index24-BLGD2ciO.js')},highlightedtext:{component:()=>import('./Index48-DXYf4HkK.js')},html:{base:()=>import('./HTML-Clqd1RzU.js'),example:()=>import('./Example18-BxnxeXx7.js'),component:()=>import('./Index25-nOTf6swL.js')},image:{base:()=>import('./ImagePreview-Ca2hvNZZ.js'),example:()=>import('./Example6-cJA6M13Z.js'),component:()=>import('./Index26-DaAQhbOM.js')},imageeditor:{example:()=>import('./Example19-f2YaV1dL.js'),component:()=>import('./Index4-BvPFZOEY.js').then(e=>e.au)},imageslider:{example:()=>import('./Example20-Db-Ev9ZG.js'),component:()=>import('./Index57-BitBxvfY.js')},json:{example:()=>import('./Example21-5RS4f36X.js'),component:()=>import('./Index11-W9xhQb38.js')},label:{component:()=>import('./Index34-DwSVY7tj.js')},markdown:{example:()=>import('./Example7-DQRo7Gao.js'),component:()=>import('./Index12-BreooZPb.js')},model3d:{base:()=>import('./Model3D-D4sSC2vC.js'),example:()=>import('./Example22-CvVgGYgY.js'),component:()=>import('./Index35-DfvsCytT.js')},multimodaltextbox:{example:()=>import('./Example23-DV0Mqr6K.js'),component:()=>import('./Index47-VQ9pruXD.js')},nativeplot:{example:()=>import('./Example8-DzWVOcId.js'),component:()=>import('./Index27-VJGlkxXC.js')},navbar:{base:()=>import('./Index13-ATH7_eve.js'),example:()=>import('./Example9-CohsKGP8.js'),component:()=>import('./Index13-ATH7_eve.js')},number:{example:()=>import('./Example24-BvT_xyd-.js'),component:()=>import('./Index28-CrdJ2TjG.js')},paramviewer:{example:()=>import('./Example25-hC7y3ome.js'),component:()=>import('./Index49-DCSHhKes.js')},plot:{base:()=>import('./Plot-DFLslTNw.js').then(e=>e.b),component:()=>import('./Index14-C2GUSDnZ.js')},radio:{example:()=>import('./Example26-Bi4XTQCa.js'),component:()=>import('./Index42-Ck9fGnTS.js')},row:{component:()=>import('./Index29-CUXHBOWp.js')},sidebar:{component:()=>import('./Index36-Ba8yCBpO.js')},slider:{example:()=>import('./Example27-Cp7qdY26.js'),component:()=>import('./Index30-DHQl1v93.js')},state:{component:()=>import('./Index15-Cnq0I_z3.js')},statustracker:{component:()=>import('./index2-DB8QDf1e.js')},tabitem:{component:()=>import('./Index37-DS1CK4ZB.js')},tabs:{component:()=>import('./Index31-BlskGMoP.js')},textbox:{example:()=>import('./Example2-zAdYDcJY.js'),component:()=>import('./Index16-BzY6esFk.js')},timer:{component:()=>import('./Index17-Bq2EMGEU.js')},uploadbutton:{component:()=>import('./Index38-5cCE22Jp.js')},vibeeditor:{component:()=>import('./Index18-DrDY45-S.js')},video:{base:()=>import('./VideoPreview-BCm0_09s.js').then(e=>e.b),example:()=>import('./Example28-BxG4ajHL.js'),component:()=>import('./index43-Dng7U0k1.js')},walkthrough:{component:()=>import('./Index31-BlskGMoP.js')},walkthroughstep:{component:()=>import('./Index37-DS1CK4ZB.js')}},z={},te={},Be=typeof window<"u";function jo({api_url:e,name:t,id:r,variant:n}){const o=Be&&window.__GRADIO__CC__,i={...$o,...o||{}};let s=r||t;if(z[`${s}-${n}`])return {component:z[`${s}-${n}`],name:t,runtime:te[`${s}-${n}`]};try{if(!i?.[s]?.[n]&&!i?.[t]?.[n])throw new Error;return z[`${s}-${n}`]=(i?.[s]?.[n]||i?.[t]?.[n])(),te[`${s}-${n}`]=Be&&window.__GRADIO__CC__RUNTIMES__?.[r]||!1,{name:t,component:z[`${s}-${n}`],runtime:te[`${s}-${n}`]}}catch{if(!s)throw new Error(`Component not found: ${t}`);try{const h=Fo(e,s,n),[u,l]=h;return z[`${s}-${n}`]=u,te[`${s}-${n}`]=l,{name:t,component:z[`${s}-${n}`],runtime:te[`${s}-${n}`]}}catch(h){if(n==="example")return z[`${s}-${n}`]=import('./Example29-DcfEoyR5.js'),{name:t,component:z[`${s}-${n}`],runtime:te[`${s}-${n}`]};throw console.error(`failed to load: ${t}`),console.error(h),h}}}function Go(e){return Be?new Promise((t,r)=>{const n=document.createElement("link");n.rel="stylesheet",n.href=e,document.head.appendChild(n),n.onload=()=>t(),n.onerror=()=>r();}):Promise.resolve()}function Fo(e,t,r){const n=Be?"client":"server";if(n==="server")return [import('./Index39-CneVLns-.js'),Promise.resolve(false)];const o=`${e}/custom_component/${t}/${n}/${r}/index.js`;return [Promise.all([Go(`${e}/custom_component/${t}/${n}/${r}/style.css`),import(o)]).then(([i,s])=>s),import(`${e}/custom_component/${t}/${n}/${r}/svelte_runtime_entry.js`)]}function ds(e,t,r,n="component"){return e==="api"&&(e="state"),jo({api_url:r,name:e,id:t,variant:n})}function ms(e){const t=new Set,r=new Set;for(const n of e)n.inputs.forEach(o=>t.add(o)),n.outputs.forEach(o=>r.add(o));return [t,r]}function _s(e,t,r,n){const[o,i]=n;return t===false?false:t===true?true:!!(o.has(e)||!i.has(e)&&zo(r))}function zo(e){return Array.isArray(e)&&e.length===0||e===""||e===0||!e}const gs=Object.getPrototypeOf(async function(){}).constructor,qo=[{color:"red",primary:600,secondary:100},{color:"green",primary:600,secondary:100},{color:"blue",primary:600,secondary:100},{color:"yellow",primary:500,secondary:100},{color:"purple",primary:600,secondary:100},{color:"teal",primary:600,secondary:100},{color:"orange",primary:600,secondary:100},{color:"cyan",primary:600,secondary:100},{color:"lime",primary:500,secondary:100},{color:"pink",primary:600,secondary:100}],Rt={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"}};qo.reduce((e,{color:t,primary:r,secondary:n})=>({...e,[t]:{primary:Rt[t][r],secondary:Rt[t][n]}}),{});const Vo="host",_r="queue/data",Xo="queue/join",Lt="upload",Wo="login",xe="config",Zo="info",Jo="runtime",Qo="sleeptime",Yo="heartbeat",Ko="component_server",ei="reset",ti="cancel",ri="app_id",gr="This application is currently busy. Please try again. ",X="Connection errored out. ",q="Could not resolve app config. ",ni="Could not get space status. ",oi="Could not get API info. ",ut="Space metadata could not be loaded. ",ii="Invalid URL. A full URL path is required.",si="Not authorized to access this space. ",br="Invalid credentials. Could not login. ",ai="Login credentials are required to access this space.",ci="File system access is only available in Node.js environments",yr="Root URL not found in client config",ui="Error uploading file";async function Mt(e,t,r){try{return (await(await fetch(`https://huggingface.co/api/spaces/${e}/jwt`,{headers:{Authorization:`Bearer ${t}`,...r?{Cookie:r}:{}}})).json()).token||!1}catch{return false}}function li(e){let t={};return e.forEach(({api_name:r,id:n})=>{r&&(t[r]=n);}),t}async function hi(e){const t=this.options.token?{Authorization:`Bearer ${this.options.token}`}:{};if(t["Content-Type"]="application/json",typeof window<"u"&&window.gradio_config&&location.origin!=="http://localhost:9876"){if(window.gradio_config.current_page&&(e=e.substring(0,e.lastIndexOf("/"))),window.gradio_config.dev_mode||typeof window<"u"&&window?.BUILD_MODE==="dev"){let r=nt(e,this.deep_link?xe+"?deep_link="+this.deep_link:xe);const n=await this.fetch(r,{headers:t,credentials:"include"}),o=await Dt(n,!!this.options.auth);o.root=e||o.root,window.gradio_config={...o,current_page:window.gradio_config.current_page};}return {...window.gradio_config}}else if(e){let r=nt(e,this.deep_link?xe+"?deep_link="+this.deep_link:xe);const n=await this.fetch(r,{headers:t,credentials:"include"}),o=await Dt(n,!!this.options.auth);return o.root||(o.root=e),o}throw new Error(q)}async function Dt(e,t){if(e?.status===401&&!t){const n=(await e.json())?.detail?.auth_message;throw new Error(n||ai)}else if(e?.status===401&&t)throw new Error(br);if(e?.status===200){let r=await e.json();return r.dependencies?.forEach((n,o)=>{n.id===void 0&&(n.id=o);}),r}else if(e?.status===401)throw new Error(si);throw new Error(q)}async function fi(){const{http_protocol:e,host:t}=await ht(this.app_reference,this.options.token);try{if(this.options.auth){const r=await wr(e,t,this.options.auth,this.fetch,this.options.token);r&&this.set_cookies(r);}}catch(r){throw Error(r.message)}}async function wr(e,t,r,n,o){const i=new FormData;i.append("username",r?.[0]),i.append("password",r?.[1]);let s={};o&&(s.Authorization=`Bearer ${o}`);const a=await n(`${e}//${t}/${Wo}`,{headers:s,method:"POST",body:i,credentials:"include"});if(a.status===200)return a.headers.get("set-cookie");throw a.status===401?new Error(br):new Error(ut)}function Ve(e){if(e.startsWith("http")){const{protocol:t,host:r,pathname:n}=new URL(e);return {ws_protocol:t==="https:"?"wss":"ws",http_protocol:t,host:r+(n!=="/"?n:"")}}return {ws_protocol:"wss",http_protocol:"https:",host:new URL(e).host}}const vr=e=>{let t=[];return e.split(/,(?=\s*[^\s=;]+=[^\s=;]+)/).forEach(n=>{const[o,i]=n.split(";")[0].split("=");o&&i&&t.push(`${o.trim()}=${i.trim()}`);}),t},lt=/^[a-zA-Z0-9_\-\.]+\/[a-zA-Z0-9_\-\.]+$/,pi=/.*hf\.space\/{0,1}.*$/;async function ht(e,t){const r={};t&&(r.Authorization=`Bearer ${t}`);const n=e.trim().replace(/\/$/,"");if(lt.test(n))try{const i=(await(await fetch(`https://huggingface.co/api/spaces/${n}/${Vo}`,{headers:r})).json()).host;return {space_id:e,...Ve(i)}}catch{throw new Error(ut)}if(pi.test(n)){const{ws_protocol:o,http_protocol:i,host:s}=Ve(n);return {space_id:s.split("/")[0].replace(".hf.space",""),ws_protocol:o,http_protocol:i,host:s}}return {space_id:false,...Ve(n)}}const nt=(...e)=>{try{return e.reduce((t,r)=>(t=t.replace(/\/+$/,""),r=r.replace(/^\/+/,""),new URL(r,t+"/").toString()))}catch{throw new Error(ii)}};function di(e,t,r){const n={named_endpoints:{},unnamed_endpoints:{}};return Object.keys(e).forEach(o=>{(o==="named_endpoints"||o==="unnamed_endpoints")&&(n[o]={},Object.entries(e[o]).forEach(([i,{parameters:s,returns:a}])=>{const h=t.dependencies.find(c=>c.api_name===i||c.api_name===i.replace("/",""))?.id||r[i.replace("/","")]||-1,u=h!==-1?t.dependencies.find(c=>c.id==h)?.types:{generator:false,cancel:false};if(h!==-1&&t.dependencies.find(c=>c.id==h)?.inputs?.length!==s.length){const c=t.dependencies.find(f=>f.id==h).inputs.map(f=>t.components.find(_=>_.id===f)?.type);try{c.forEach((f,_)=>{if(f==="state"){const P={component:"state",example:null,parameter_default:null,parameter_has_default:!0,parameter_name:null,hidden:!0};s.splice(_,0,P);}});}catch(f){console.error(f);}}const l=(c,f,_,P)=>({...c,description:_i(c?.type,_),type:mi(c?.type,f,_,P)||""});n[o][i]={parameters:s.map(c=>l(c,c?.component,c?.serializer,"parameter")),returns:a.map(c=>l(c,c?.component,c?.serializer,"return")),type:u};}));}),n}function mi(e,t,r,n){if(t==="Api")return e.type;switch(e?.type){case "string":return "string";case "boolean":return "boolean";case "number":return "number"}if(r==="JSONSerializable"||r==="StringSerializable")return "any";if(r==="ListStringSerializable")return "string[]";if(t==="Image")return n==="parameter"?"Blob | File | Buffer":"string";if(r==="FileSerializable")return e?.type==="array"?n==="parameter"?"(Blob | File | Buffer)[]":"{ name: string; data: string; size?: number; is_file?: boolean; orig_name?: string}[]":n==="parameter"?"Blob | File | Buffer":"{ name: string; data: string; size?: number; is_file?: boolean; orig_name?: string}";if(r==="GallerySerializable")return n==="parameter"?"[(Blob | File | Buffer), (string | null)][]":"[{ name: string; data: string; size?: number; is_file?: boolean; orig_name?: string}, (string | null))][]"}function _i(e,t){return t==="GallerySerializable"?"array of [file, label] tuples":t==="ListStringSerializable"?"array of strings":t==="FileSerializable"?"array of files or single file":e?.description}function kt(e,t){switch(e.msg){case "send_data":return {type:"data"};case "send_hash":return {type:"hash"};case "queue_full":return {type:"update",status:{queue:true,message:gr,stage:"error",code:e.code,success:e.success}};case "heartbeat":return {type:"heartbeat"};case "unexpected_error":return {type:"unexpected_error",status:{queue:true,message:e.message,session_not_found:e.session_not_found,stage:"error",success:false}};case "broken_connection":return {type:"broken_connection",status:{queue:true,message:e.message,stage:"error",success:false}};case "estimation":return {type:"update",status:{queue:true,stage:t||"pending",code:e.code,size:e.queue_size,position:e.rank,eta:e.rank_eta,success:e.success}};case "progress":return {type:"update",status:{queue:true,stage:"pending",code:e.code,progress_data:e.progress_data,success:e.success}};case "log":return {type:"log",data:e};case "process_generating":return {type:"generating",status:{queue:true,message:e.success?null:e.output.error,stage:e.success?"generating":"error",code:e.code,progress_data:e.progress_data,eta:e.average_duration,changed_state_ids:e.success?e.output.changed_state_ids:void 0},data:e.success?e.output:null};case "process_streaming":return {type:"streaming",status:{queue:true,message:e.output.error,stage:"streaming",time_limit:e.time_limit,code:e.code,progress_data:e.progress_data,eta:e.eta},data:e.output};case "process_completed":return "error"in e.output?{type:"update",status:{queue:true,title:e.output.title??"Error",message:e.output.error??"An error occurred",visible:e.output.visible,duration:e.output.duration,stage:"error",code:e.code,success:e.success}}:{type:"complete",status:{queue:true,message:e.success?void 0:e.output.error,stage:e.success?"complete":"error",code:e.code,progress_data:e.progress_data,changed_state_ids:e.success?e.output.changed_state_ids:void 0,used_cache:e.used_cache,cache_duration:e.cache_duration,avg_time:e.avg_time},data:e.success?e.output:null};case "process_starts":return {type:"update",status:{queue:true,stage:"pending",code:e.code,size:e.rank,position:0,success:e.success,eta:e.eta},original_msg:"process_starts"}}return {type:"none",status:{stage:"error",queue:true}}}const gi=(e=[],t)=>{const r=t?t.parameters:[];if(Array.isArray(e))return t&&r.length>0&&e.length>r.length&&console.warn("Too many arguments provided for the endpoint."),e;const n=[],o=Object.keys(e);return r.forEach((i,s)=>{if(e.hasOwnProperty(i.parameter_name))n[s]=e[i.parameter_name];else if(i.parameter_has_default)n[s]=i.parameter_default;else throw new Error(`No value provided for required parameter: ${i.parameter_name}`)}),o.forEach(i=>{if(!r.some(s=>s.parameter_name===i))throw new Error(`Parameter \`${i}\` is not a valid keyword argument. Please refer to the API for usage.`)}),n.forEach((i,s)=>{if(i===void 0&&!r[s].parameter_has_default)throw new Error(`No value provided for required parameter: ${r[s].parameter_name}`)}),n};async function bi(){if(this.api_info)return this.api_info;const{token:e}=this.options,{config:t}=this,r={"Content-Type":"application/json"};if(e&&(r.Authorization=`Bearer ${e}`),!!t)try{let n,o;if(typeof window<"u"&&window.gradio_api_info)o=window.gradio_api_info;else {const i=nt(t.root,this.api_prefix,Zo);if(n=await this.fetch(i,{headers:r,credentials:"include"}),!n.ok)throw new Error(X);o=await n.json();}return "api"in o&&(o=o.api),o.named_endpoints["/predict"]&&!o.unnamed_endpoints[0]&&(o.unnamed_endpoints[0]=o.named_endpoints["/predict"]),di(o,t,this.api_map)}catch(n){throw new Error("Could not get API info. "+n.message)}}async function yi(e,t,r){const n={};this?.options?.token&&(n.Authorization=`Bearer ${this.options.token}`);const o=1e3,i=[];let s;for(let a=0;a{u.append("files",c);});try{const c=r?`${e}${this.api_prefix}/${Lt}?upload_id=${r}`:`${e}${this.api_prefix}/${Lt}`;s=await this.fetch(c,{method:"POST",body:u,headers:n,credentials:"include"});}catch(c){throw new Error(X+c.message)}if(!s.ok){const c=await s.text();return {error:`HTTP ${s.status}: ${c}`}}const l=await s.json();l&&i.push(...l);}return {files:i}}const wi={radix:1e3,unit:["b","kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"]},vi={radix:1024,unit:["b","Kib","Mib","Gib","Tib","Pib","Eib","Zib","Yib"]},Ei={radix:1024,unit:["b","Kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"]},Ut={si:wi,iec:vi,jedec:Ei};function xi(e,t=1,r="jedec"){e=Math.abs(e);const{radix:n,unit:o}=Ut[r]||Ut.jedec;let i=0;for(;e>=n;)e/=n,++i;return `${e.toFixed(t)} ${o[i]}`}async function Si(e,t,r,n){let o=(Array.isArray(e)?e:[e]).map(s=>s.blob);const i=o.filter(s=>s.size>(n??1/0));if(i.length)throw new Error(`File(s) exceed the maximum allowed size of ${xi(n||1/0)}: ${i.map(s=>`"${s.name}"`).join(", ")}`);return await Promise.all(await this.upload_files(t,o,r).then(async s=>{if(s.error)throw new Error(s.error);return s.files?s.files.map((a,h)=>new Le({...e[h],path:a,url:`${t}${this.api_prefix}/file=${a}`})):[]}))}async function bs(e,t){return e.map(r=>new Le({path:r.name,orig_name:r.name,blob:r,size:r.size,mime_type:r.type,is_stream:t}))}class Le{path;url;orig_name;size;blob;is_stream;mime_type;alt_text;b64;meta={_type:"gradio.FileData"};constructor({path:t,url:r,orig_name:n,size:o,blob:i,is_stream:s,mime_type:a,alt_text:h,b64:u}){this.path=t,this.url=r,this.orig_name=n,this.size=o,this.blob=r?void 0:i,this.is_stream=s,this.mime_type=a,this.alt_text=h,this.b64=u;}}class Ti{type;command;meta;fileData;constructor(t,r){this.type="command",this.command=t,this.meta=r;}}typeof process<"u"&&process.versions&&process.versions.node;function $t(e,t,r){for(;r.length>1;){const o=r.shift();if(typeof o=="string"||typeof o=="number")e=e[o];else throw new Error("Invalid key type")}const n=r.shift();if(typeof n=="string"||typeof n=="number")e[n]=t;else throw new Error("Invalid key type")}async function ot(e,t=void 0,r=[],n=false,o=void 0){if(Array.isArray(e)){let i=[];return await Promise.all(e.map(async(s,a)=>{let h=r.slice();h.push(String(a));const u=await ot(e[a],n?o?.parameters[a]?.component||void 0:t,h,false,o);i=i.concat(u);})),i}else {if(globalThis.Buffer&&e instanceof globalThis.Buffer||e instanceof Blob)return [{path:r,blob:new Blob([e]),type:t}];if(typeof e=="object"&&e!==null){let i=[];for(const s of Object.keys(e)){const a=[...r,s],h=e[s];i=i.concat(await ot(h,void 0,a,false,o));}return i}}return []}function Ai(e,t){let r=t?.dependencies?.find(n=>n.id==e)?.queue;return r!=null?!r:!t.enable_queue}function Pi(e,t){return new Promise((r,n)=>{const o=new MessageChannel;o.port1.onmessage=(({data:i})=>{o.port1.close(),r(i);}),window.parent.postMessage(e,t,[o.port2]);})}function Se(e,t,r,n,o=false){if(n==="input"&&!o)throw new Error("Invalid code path. Cannot skip state inputs for input.");if(n==="output"&&o)return e;let i=[],s=0;const a=n==="input"?t.inputs:t.outputs;for(let h=0;hc.id===u)?.type==="state"){if(o)if(e.length===a.length){const c=e[s];i.push(c),s++;}else i.push(null);else {s++;continue}continue}else {const c=e[s];i.push(c),s++;}}return i}async function Hi(e,t,r){const n=this;await Oi(n,t);const o=await ot(t,void 0,[],true,r);return (await Promise.all(o.map(async({path:s,blob:a,type:h})=>{if(!a)return {path:s,type:h};const u=await n.upload_files(e,[a]),l=u.files&&u.files[0];return {path:s,file_url:l,type:h,name:typeof File<"u"&&a instanceof File?a?.name:void 0}}))).forEach(({path:s,file_url:a,type:h,name:u})=>{if(h==="Gallery")$t(t,a,s);else if(a){const l=new Le({path:a,orig_name:u});$t(t,l,s);}}),t}async function Oi(e,t){if(!(e.config?.root||e.config?.root_url))throw new Error(yr);await Er(e,t);}async function Er(e,t,r=[]){for(const n in t)t[n]instanceof Ti?await Bi(e,t,n):typeof t[n]=="object"&&t[n]!==null&&await Er(e,t[n],[...r,n]);}async function Bi(e,t,r){let n=t[r];const o=e.config?.root||e.config?.root_url;if(!o)throw new Error(yr);try{let i,s;if(typeof process<"u"&&process.versions&&process.versions.node){const l=await import('fs/promises');s=(await import('path')).resolve(process.cwd(),n.meta.path),i=await l.readFile(s);}else throw new Error(ci);const a=new Blob([i],{type:"application/octet-stream"}),h=await e.upload_files(o,[a]),u=h.files&&h.files[0];if(u){const l=new Le({path:u,orig_name:n.meta.name||""});t[r]=l;}}catch(i){console.error(ui,i);}}async function Ci(e,t,r){const n={"Content-Type":"application/json"};this.options.token&&(n.Authorization=`Bearer ${this.options.token}`);try{var o=await this.fetch(e,{method:"POST",body:JSON.stringify(t),headers:{...n,...r},credentials:"include"});}catch{return [{error:X},500]}let i,s;try{i=await o.json(),s=o.status;}catch(a){i={error:`Could not parse server response: ${a}`},s=500;}return [i,s]}async function Ni(e,t={}){let r=false,n=false;if(!this.config)throw new Error("Could not resolve app config");if(typeof e=="number")this.config.dependencies.find(o=>o.id==e);else {const o=e.replace(/^\//,"");this.config.dependencies.find(i=>i.id==this.api_map[o]);}return new Promise(async(o,i)=>{const s=this.submit(e,t,null,null,true);let a;for await(const h of s)h.type==="data"&&(n&&o(a),r=true,a=h),h.type==="status"&&(h.stage==="error"&&i(h),h.stage==="complete"&&(n=true,r&&o(a)));})}async function me(e,t,r){let n=t==="subdomain"?`https://huggingface.co/api/spaces/by-subdomain/${e}`:`https://huggingface.co/api/spaces/${e}`,o,i;try{if(o=await fetch(n),i=o.status,i!==200)throw new Error;o=await o.json();}catch{r({status:"error",load_status:"error",message:ni,detail:"NOT_FOUND"});return}if(!o||i!==200)return;const{runtime:{stage:s},id:a}=o;switch(s){case "STOPPED":case "SLEEPING":r({status:"sleeping",load_status:"pending",message:"Space is asleep. Waking it up...",detail:s}),setTimeout(()=>{me(e,t,r);},1e3);break;case "PAUSED":r({status:"paused",load_status:"error",message:"This space has been paused by the author. If you would like to try this demo, consider duplicating the space.",detail:s,discussions_enabled:await jt(a)});break;case "RUNNING":case "RUNNING_BUILDING":r({status:"running",load_status:"complete",message:"Space is running.",detail:s});break;case "BUILDING":r({status:"building",load_status:"pending",message:"Space is building...",detail:s}),setTimeout(()=>{me(e,t,r);},1e3);break;case "APP_STARTING":r({status:"starting",load_status:"pending",message:"Space is starting...",detail:s}),setTimeout(()=>{me(e,t,r);},1e3);break;default:r({status:"space_error",load_status:"error",message:"This space is experiencing an issue.",detail:s,discussions_enabled:await jt(a)});break}}const xr=async(e,t)=>{let r=0;const n=12,o=5e3;return new Promise(i=>{me(e,lt.test(e)?"space_name":"subdomain",s=>{t(s),s.status==="running"||s.status==="error"||s.status==="paused"||s.status==="space_error"?i():(s.status==="sleeping"||s.status==="building")&&(r{xr(e,t).then(i);},o)):i());});})},Ii=/^(?=[^]*\b[dD]iscussions{0,1}\b)(?=[^]*\b[dD]isabled\b)[^]*$/;async function jt(e){try{const t=await fetch(`https://huggingface.co/api/spaces/${e}/discussions`,{method:"HEAD"}),r=t.headers.get("x-error-message");return !(!t.ok||r&&Ii.test(r))}catch{return false}}async function Ri(e,t){const r={};t&&(r.Authorization=`Bearer ${t}`);try{const n=await fetch(`https://huggingface.co/api/spaces/${e}/${Jo}`,{headers:r});if(n.status!==200)throw new Error("Space hardware could not be obtained.");const{hardware:o}=await n.json();return o.current}catch(n){throw new Error(n.message)}}async function Li(e,t,r){const n={};r&&(n.Authorization=`Bearer ${r}`);const o={seconds:t};try{const i=await fetch(`https://huggingface.co/api/spaces/${e}/${Qo}`,{method:"POST",headers:{"Content-Type":"application/json",...n},body:JSON.stringify(o)});if(i.status!==200)throw new Error("Could not set sleep timeout on duplicated Space. Please visit *ADD HF LINK TO SETTINGS* to set a timeout manually to reduce billing charges.");return await i.json()}catch(i){throw new Error(i.message)}}const Gt=["cpu-basic","cpu-upgrade","cpu-xl","t4-small","t4-medium","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","zero-a10g","h100","h100x8"];async function Mi(e,t){const{token:r,private:n,hardware:o,timeout:i,auth:s}=t;if(o&&!Gt.includes(o))throw new Error(`Invalid hardware type provided. Valid types are: ${Gt.map(v=>`"${v}"`).join(",")}.`);const{http_protocol:a,host:h}=await ht(e,r);let u=null;if(s){const v=await wr(a,h,s,fetch);v&&(u=vr(v));}const l={Authorization:`Bearer ${r}`,"Content-Type":"application/json",...u?{Cookie:u.join("; ")}:{}},c=(await(await fetch("https://huggingface.co/api/whoami-v2",{headers:l})).json()).name,f=e.split("/")[1],_={repository:`${c}/${f}`};n&&(_.private=true);let P;try{o||(P=await Ri(e,r));}catch(v){throw Error(ut+v.message)}const d=o||P||"cpu-basic";_.hardware=d;try{const v=await fetch(`https://huggingface.co/api/spaces/${e}/duplicate`,{method:"POST",headers:l,body:JSON.stringify(_)});if(v.status===409)try{return await Vt.connect(`${c}/${f}`,t)}catch(m){throw console.error("Failed to connect Client instance:",m),m}else if(v.status!==200)throw new Error(v.statusText);const p=await v.json();return await Li(`${c}/${f}`,i||300,r),await Vt.connect(Di(p.url),t)}catch(v){throw new Error(v)}}function Di(e){const t=/https:\/\/huggingface.co\/spaces\/([^/]+\/[^/]+)/,r=e.match(t);if(r)return r[1]}const Ft="supports-zerogpu-headers";let zt=false;function ki(){return typeof window<"u"&&typeof document<"u"&&typeof window.addEventListener=="function"}function Sr(e){return e.includes(".dev.")?`https://moon-${e.split(".")[1]}.dev.spaces.huggingface.tech`:e.endsWith(".hf.space")?"https://huggingface.co":null}function Ui(){if(!ki()||zt)return;window.addEventListener("message",t=>{t.data===Ft&&(window.supports_zerogpu_headers=true);}),zt=true;const e=Sr(window.location.hostname);e&&window.parent!==window&&window.parent.postMessage(Ft,e);}class $i extends TransformStream{#e="";constructor(t={allowCR:false}){super({transform:(r,n)=>{for(r=this.#e+r;;){const o=r.indexOf(` +`),i=t.allowCR?r.indexOf("\r"):-1;if(i!==-1&&i!==r.length-1&&(o===-1||o-1>i)){n.enqueue(r.slice(0,i)),r=r.slice(i+1);continue}if(o===-1)break;const s=r[o-1]==="\r"?o-1:o;n.enqueue(r.slice(0,s)),r=r.slice(o+1);}this.#e=r;},flush:r=>{if(this.#e==="")return;const n=t.allowCR&&this.#e.endsWith("\r")?this.#e.slice(0,-1):this.#e;r.enqueue(n);}});}}function ji(e){let t=new TextDecoderStream,r=new $i({allowCR:true});return e.pipeThrough(t).pipeThrough(r)}function Gi(e){let r=/[:]\s*/.exec(e),n=r&&r.index;if(n)return [e.substring(0,n),e.substring(n+r[0].length)]}function qt(e,t,r){e.get(t)||e.set(t,r);}async function*Fi(e,t){if(!e.body)return;let r=ji(e.body),n,o=r.getReader(),i;for(;;){if(t&&t.aborted)return o.cancel();if(n=await o.read(),n.done)return;if(!n.value){i&&(yield i),i=void 0;continue}let[s,a]=Gi(n.value)||[];s==="data"?(i||={},i[s]=i[s]?i[s]+` +`+a:a):s==="event"?(i||={},i[s]=a):s==="id"?(i||={},i[s]=String(+a)===a?+a:a):s==="retry"&&(i||={},i[s]=+a||void 0);}}async function zi(e,t){let r=new Request(e,t);qt(r.headers,"Accept","text/event-stream"),qt(r.headers,"Content-Type","application/json");let n=await fetch(r);if(!n.ok)throw n;return Fi(n,r.signal)}async function qi(){let{event_callbacks:e,unclosed_events:t,pending_stream_messages:r,stream_status:n,config:o,jwt:i}=this;const s=this;if(!o)throw new Error("Could not resolve app config");n.open=true;let a=null,h=new URLSearchParams({session_hash:this.session_hash}).toString(),u=new URL(`${o.root}${this.api_prefix}/${_r}?${h}`);if(i&&u.searchParams.set("__sign",i),a=this.stream(u),!a){console.warn("Cannot connect to SSE endpoint: "+u.toString());return}a.onmessage=async function(l){let c=JSON.parse(l.data);if(c.msg==="close_stream"){ft(n,s.abort_controller);return}const f=c.event_id;if(!f)await Promise.all(Object.keys(e).map(_=>e[_](c)));else if(e[f]&&o){c.msg==="process_completed"&&["sse","sse_v1","sse_v2","sse_v2.1","sse_v3"].includes(o.protocol)&&t.delete(f);let _=e[f];typeof window<"u"&&typeof document<"u"?setTimeout(_,0,c):_(c);}else r[f]||(r[f]=[]),r[f].push(c);},a.onerror=async function(l){console.error(l),await Promise.all(Object.keys(e).map(c=>e[c]({msg:"broken_connection",message:X})));};}function ft(e,t){e&&(e.open=false,t?.abort());}function Vi(e,t,r){!e[t]?(e[t]=[],r.data.forEach((o,i)=>{e[t][i]=o;})):r.data.forEach((o,i)=>{let s=Xi(e[t][i],o);e[t][i]=s,r.data[i]=s;});}function Xi(e,t){return t.forEach(([r,n,o])=>{e=Wi(e,n,r,o);}),e}function Wi(e,t,r,n){if(t.length===0){if(r==="replace")return n;if(r==="append")return e+n;throw new Error(`Unsupported action: ${r}`)}let o=e;for(let s=0;s{console.warn("Method not implemented.");},onerror:null,onmessage:null,onopen:null,readyState:0,url:e.toString(),withCredentials:false,CONNECTING:0,OPEN:1,CLOSED:2,addEventListener:()=>{throw new Error("Method not implemented.")},dispatchEvent:()=>{throw new Error("Method not implemented.")},removeEventListener:()=>{throw new Error("Method not implemented.")}};return zi(e,t).then(async n=>{r.readyState=r.OPEN;try{for await(const o of n)r.onmessage&&r.onmessage(o);r.readyState=r.CLOSED;}catch(o){r.onerror&&r.onerror(o),r.readyState=r.CLOSED;}}).catch(n=>{console.error(n),r.onerror&&r.onerror(n),r.readyState=r.CLOSED;}),r}function Ji(e,t={},r,n,o,i){try{let s=function(x){(o||Qr[x.type])&&l(x);},a=function(){for(tn=!0;le.length>0;)le.shift()({value:void 0,done:!0});},h=function(x){le.length>0?le.shift()(x):De.push(x);},u=function(x){h(Qi(x)),a();},l=function(x){h({value:x,done:!1});},c=function(){return De.length>0?Promise.resolve(De.shift()):new Promise(x=>le.push(x))};const{token:f}=this.options,{fetch:_,app_reference:P,config:d,session_hash:v,api_info:p,api_map:m,stream_status:g,pending_stream_messages:H,pending_diff_streams:S,event_callbacks:D,unclosed_events:be,post_data:Me,options:ye,api_prefix:$}=this,mt=i||{"x-gradio-user":"api"},Zr=this;if(!p)throw new Error("No API found");if(!d)throw new Error("Could not resolve app config");let{fn_index:E,endpoint_info:_t,dependency:ce}=Yi(p,e,m,d),Jr=gi(t,_t),Q,j=d.protocol??"ws";if(j==="ws")throw new Error("WebSocket protocol is not supported in this version");let Y="",is=()=>Y;const T=typeof e=="number"?"/predict":e;let we,C=null,G=!1,gt={},ue=typeof window<"u"&&typeof document<"u"?new URLSearchParams(window.location.search).toString():"";const Qr=ye?.events?.reduce((x,k)=>(x[k]=!0,x),{})||{};async function Yr(){let x={},k={};x={event_id:C},k={event_id:C,session_hash:v,fn_index:E};try{if(!d)throw new Error("Could not resolve app config");"event_id"in k&&await _(`${d.root}${$}/${ti}`,{headers:{"Content-Type":"application/json"},method:"POST",body:JSON.stringify(k)}),await _(`${d.root}${$}/${ei}`,{headers:{"Content-Type":"application/json"},method:"POST",body:JSON.stringify(x)});}catch{console.warn("The `/reset` endpoint could not be called. Subsequent endpoint results may be unreliable.");}}const Kr=async x=>{await this._resolve_heartbeat(x);};async function bt(x){if(!d)return;let k=x.render_id;d.components=[...d.components.filter(I=>I.props.rendered_in!==k),...x.components],d.dependencies=[...d.dependencies.filter(I=>I.rendered_in!==k),...x.dependencies];const ve=d.components.some(I=>I.type==="state"),O=d.dependencies.some(I=>I.targets.some(K=>K[1]==="unload"));d.connect_heartbeat=ve||O,await Kr(d),s({type:"render",data:x,endpoint:T,fn_index:E});}const en=this.handle_blob(d.root,Jr,_t).then(async x=>{if(we={data:Se(x,ce,d.components,"input",!0)||[],event_data:r,fn_index:E,trigger_id:n},Ai(E,d))s({type:"status",endpoint:T,stage:"pending",queue:!1,fn_index:E,time:new Date}),Me(`${d.root}${$}/run${T.startsWith("/")?T:`/${T}`}${ue?"?"+ue:""}`,{...we,session_hash:v},mt).then(async([O,I])=>{const K=O.data;if(I==200)s({type:"data",endpoint:T,fn_index:E,data:Se(K,ce,d.components,"output",ye.with_null_state),time:new Date,event_data:r,trigger_id:n}),O.render_config&&await bt(O.render_config),s({type:"status",endpoint:T,fn_index:E,stage:"complete",eta:O.average_duration,queue:!1,time:new Date});else {const U=O?.error===X;s({type:"status",stage:"error",endpoint:T,fn_index:E,message:O.error,broken:U,queue:!1,time:new Date});}}).catch(O=>{s({type:"status",stage:"error",message:O.message,endpoint:T,fn_index:E,queue:!1,time:new Date});});else if(j=="sse"){s({type:"status",stage:"pending",queue:!0,endpoint:T,fn_index:E,time:new Date});var ve=new URLSearchParams({fn_index:E.toString(),session_hash:v}).toString();let O=new URL(`${d.root}${$}/${_r}?${ue?ue+"&":""}${ve}`);if(this.jwt&&O.searchParams.set("__sign",this.jwt),Q=this.stream(O),!Q)return Promise.reject(new Error("Cannot connect to SSE endpoint: "+O.toString()));Q.onmessage=async function(I){const K=JSON.parse(I.data),{type:U,status:F,data:B}=kt(K,gt[E]);if(U==="update"&&F&&!G)s({type:"status",endpoint:T,fn_index:E,time:new Date,...F}),F.stage==="error"&&(Q?.close(),a());else if(U==="data"){let[ee,Z]=await Me(`${d.root}${$}/queue/data`,{...we,session_hash:v,event_id:C});Z!==200&&(s({type:"status",stage:"error",message:X,queue:!0,endpoint:T,fn_index:E,time:new Date}),Q?.close(),a());}else U==="complete"?G=F:U==="log"?s({type:"log",title:B.title,log:B.log,level:B.level,endpoint:T,duration:B.duration,visible:B.visible,fn_index:E}):(U==="generating"||U==="streaming")&&s({type:"status",time:new Date,...F,stage:F?.stage,queue:!0,endpoint:T,fn_index:E});B&&(s({type:"data",time:new Date,data:Se(B.data,ce,d.components,"output",ye.with_null_state),endpoint:T,fn_index:E,event_data:r,trigger_id:n}),G&&(s({type:"status",time:new Date,...G,stage:F?.stage,queue:!0,endpoint:T,fn_index:E}),Q?.close(),a()));};}else if(j=="sse_v1"||j=="sse_v2"||j=="sse_v2.1"||j=="sse_v3"){s({type:"status",stage:"pending",queue:!0,endpoint:T,fn_index:E,time:new Date});let O="";typeof window<"u"&&typeof document<"u"&&(O=window?.location?.hostname);const I=Sr(O);return (typeof window<"u"&&typeof document<"u"&&window.parent!=window&&!!I&&window.supports_zerogpu_headers?Pi("zerogpu-headers",I):Promise.resolve(null)).then(B=>{const ee={...mt,...B||{}};return Me(`${d.root}${$}/${Xo}?${ue}`,{...we,session_hash:v},ee)}).then(async([B,ee])=>{if(B.event_id&&(Y=B.event_id),ee===503)s({type:"status",stage:"error",message:gr,queue:!0,endpoint:T,fn_index:E,time:new Date,visible:!0});else if(ee===422)s({type:"status",stage:"error",message:B.detail,queue:!0,endpoint:T,fn_index:E,code:"validation_error",time:new Date,visible:!0}),a();else if(ee!==200){const Z=B?.error===X;s({type:"status",stage:"error",broken:Z,message:Z?X:B.detail||B.error,queue:!0,endpoint:T,fn_index:E,time:new Date,visible:!0});}else {C=B.event_id,Y=C;let Z=async function(ke){try{const{type:R,status:L,data:M,original_msg:rn}=kt(ke,gt[E]);if(R=="heartbeat")return;if(R==="update"&&L&&!G)s({type:"status",endpoint:T,fn_index:E,time:new Date,original_msg:rn,...L});else if(R==="complete")G=L;else if(R=="unexpected_error"||R=="broken_connection"){console.error("Unexpected error",L?.message);const nn=R==="broken_connection";s({type:"status",stage:"error",message:L?.message||"An Unexpected Error Occurred!",queue:!0,endpoint:T,broken:nn,session_not_found:L?.session_not_found,fn_index:E,time:new Date});}else if(R==="log"){s({type:"log",title:M.title,log:M.log,level:M.level,endpoint:T,duration:M.duration,visible:M.visible,fn_index:E});return}else (R==="generating"||R==="streaming")&&(s({type:"status",time:new Date,...L,stage:L?.stage,queue:!0,endpoint:T,fn_index:E}),M&&ce.connection!=="stream"&&["sse_v2","sse_v2.1","sse_v3"].includes(j)&&Vi(S,C,M));M&&(s({type:"data",time:new Date,data:Se(M.data,ce,d.components,"output",ye.with_null_state),endpoint:T,fn_index:E}),M.render_config&&await bt(M.render_config),G&&(s({type:"status",time:new Date,...G,stage:L?.stage,queue:!0,endpoint:T,fn_index:E}),a())),(L?.stage==="complete"||L?.stage==="error")&&(D[C]&&delete D[C],C in S&&delete S[C]);}catch(R){console.error("Unexpected client exception",R),s({type:"status",stage:"error",message:"An Unexpected Error Occurred!",queue:!0,endpoint:T,fn_index:E,time:new Date}),["sse_v2","sse_v2.1","sse_v3"].includes(j)&&(ft(g,Zr.abort_controller),g.open=!1,a());}};C in H&&(H[C].forEach(ke=>Z(ke)),delete H[C]),D[C]=Z,be.add(C),g.open||await this.open_stream();}})}});let tn=!1;const De=[],le=[],yt={[Symbol.asyncIterator]:()=>yt,next:c,throw:async x=>(u(x),c()),return:async()=>(a(),{value:void 0,done:!0}),cancel:Yr,send_chunk:x=>{this.post_data(`${d.root}${$}/stream/${Y}`,{...x,session_hash:this.session_hash});},close_stream:()=>{this.post_data(`${d.root}${$}/stream/${Y}/close`,{}),a();},event_id:()=>Y,wait_for_id:async()=>(await en,C)};return yt}catch(s){throw console.error("Submit function encountered an error:",s),s}}function Qi(e){return {then:(t,r)=>r(e)}}function Yi(e,t,r,n){let o,i,s;if(typeof t=="number")o=t,i=e.unnamed_endpoints[o],s=n.dependencies.find(a=>a.id==t);else {const a=t.replace(/^\//,"");o=r[a],i=e.named_endpoints[t.trim()],s=n.dependencies.find(h=>h.id==r[a]);}if(typeof o!="number")throw new Error("There is no endpoint matching that name of fn_index matching that number.");return {fn_index:o,endpoint_info:i,dependency:s}}class Vt{app_reference;options;deep_link=null;config;api_prefix="";api_info;api_map={};session_hash=Math.random().toString(36).substring(2);jwt=false;last_status={};cookies=null;stream_status={open:false};closed=false;pending_stream_messages={};pending_diff_streams={};event_callbacks={};unclosed_events=new Set;heartbeat_event=null;abort_controller=null;stream_instance=null;current_payload;get_url_config(t=null){if(!this.config)throw new Error(q);t===null&&(t=window.location.href);const r=s=>s.replace(/^\/+|\/+$/g,"");let n=r(new URL(this.config.root).pathname),o=r(new URL(t).pathname),i;return o.startsWith(n)?i=r(o.substring(n.length)):i="",this.get_page_config(i)}get_page_config(t){if(!this.config)throw new Error(q);let r=this.config;return t in r.page||(t=""),{...r,current_page:t,layout:r.page[t].layout,components:r.components.filter(n=>r.page[t].components.includes(n.id)),dependencies:this.config.dependencies.filter(n=>r.page[t].dependencies.includes(n.id))}}fetch(t,r){const n=new Headers(r?.headers||{});return this&&this.cookies&&n.append("Cookie",this.cookies),this&&this.options.headers&&new Headers(this.options.headers).forEach((i,s)=>{n.append(s,i);}),fetch(t,{...r,headers:n})}stream(t){const r=new Headers;return this&&this.cookies&&r.append("Cookie",this.cookies),this&&this.options.headers&&new Headers(this.options.headers).forEach((o,i)=>{r.append(i,o);}),this&&this.options.token&&r.append("Authorization",`Bearer ${this.options.token}`),this.abort_controller=new AbortController,this.stream_instance=Zi(t.toString(),{credentials:"include",headers:r,signal:this.abort_controller.signal}),this.stream_instance}view_api;upload_files;upload;handle_blob;post_data;submit;predict;open_stream;resolve_config;resolve_cookies;constructor(t,r={events:["data"]}){this.app_reference=t,this.deep_link=r.query_params?.deep_link||null,r.events||(r.events=["data"]),this.options=r,this.current_payload={},r.cookies&&(this.cookies=r.cookies),this.view_api=bi.bind(this),this.upload_files=yi.bind(this),this.handle_blob=Hi.bind(this),this.post_data=Ci.bind(this),this.submit=Ji.bind(this),this.predict=Ni.bind(this),this.open_stream=qi.bind(this),this.resolve_config=hi.bind(this),this.resolve_cookies=fi.bind(this),this.upload=Si.bind(this),this.fetch=this.fetch.bind(this),this.handle_space_success=this.handle_space_success.bind(this),this.stream=this.stream.bind(this);}async init(){Ui(),this.options.auth&&await this.resolve_cookies(),await this._resolve_config().then(({config:t})=>this._resolve_heartbeat(t)),this.api_info=await this.view_api(),this.api_map=li(this.config?.dependencies||[]);}async _resolve_heartbeat(t){if(t&&(this.config=t,this.api_prefix=t.api_prefix||"",this.config&&this.config.connect_heartbeat&&this.config.space_id&&this.options.token&&(this.jwt=await Mt(this.config.space_id,this.options.token,this.cookies))),t.space_id&&this.options.token&&(this.jwt=await Mt(t.space_id,this.options.token)),this.config&&this.config.connect_heartbeat){const r=new URL(`${this.config.root}${this.api_prefix}/${Yo}/${this.session_hash}`);this.jwt&&r.searchParams.set("__sign",this.jwt),this.heartbeat_event||(this.heartbeat_event=this.stream(r));}}static async connect(t,r={events:["data"]}){const n=new this(t,r);return r.session_hash&&(n.session_hash=r.session_hash),await n.init(),n}async reconnect(){const t=new URL(`${this.config.root}${this.api_prefix}/${ri}`);let r;try{const n=await this.fetch(t);if(!n.ok)throw new Error;r=(await n.json()).app_id;}catch{return "broken"}return r!==this.config.app_id?"changed":"connected"}close(){this.closed=true,ft(this.stream_status,this.abort_controller);}set_current_payload(t){this.current_payload=t;}static async duplicate(t,r={events:["data"]}){return Mi(t,r)}async _resolve_config(){const{http_protocol:t,host:r,space_id:n}=await ht(this.app_reference,this.options.token),{status_callback:o}=this.options;n&&o&&await xr(n,o);let i;try{let s=`${t}//${r}`;if(i=await this.resolve_config(s),!i)throw new Error(q);return this.config_success(i)}catch(s){if(n&&o)me(n,lt.test(n)?"space_name":"subdomain",this.handle_space_success);else throw o&&o({status:"error",message:"Could not load this space.",load_status:"error",detail:"NOT_FOUND"}),Error(s)}}async config_success(t){if(this.config=t,this.api_prefix=t.api_prefix||"",this.config.auth_required)return this.prepare_return_obj();try{this.api_info=await this.view_api();}catch(r){console.error(oi+r.message);}return this.prepare_return_obj()}async handle_space_success(t){if(!this)throw new Error(q);const{status_callback:r}=this.options;if(r&&r(t),t.status==="running")try{if(this.config=await this._resolve_config(),this.api_prefix=this?.config?.api_prefix||"",!this.config)throw new Error(q);return await this.config_success(this.config)}catch(n){throw r&&r({status:"error",message:"Could not load this space.",load_status:"error",detail:"NOT_FOUND"}),n}}async component_server(t,r,n){if(!this.config)throw new Error(q);const o={},{token:i}=this.options,{session_hash:s}=this;i&&(o.Authorization=`Bearer ${this.options.token}`);let a,h=this.config.components.find(l=>l.id===t);h?.props?.root_url?a=h.props.root_url:a=this.config.root;let u;if(typeof n=="object"&&n!==null&&"binary"in n){const l=n;u=new FormData;for(const c in l.data)c!=="binary"&&u.append(c,l.data[c]);u.set("component_id",t.toString()),u.set("fn_name",r),u.set("session_hash",s);}else u=JSON.stringify({data:n,component_id:t,fn_name:r,session_hash:s}),o["Content-Type"]="application/json";i&&(o.Authorization=`Bearer ${i}`);try{const l=await this.fetch(`${a}${this.api_prefix}/${Ko}/`,{method:"POST",body:u,headers:o,credentials:"include"});if(!l.ok)throw new Error("Could not connect to component server: "+l.statusText);return await l.json()}catch(l){console.warn(l);}}set_cookies(t){this.cookies=vr(t).join("; ");}prepare_return_obj(){return {config:this.config,predict:this.predict,submit:this.submit,view_api:this.view_api,component_server:this.component_server}}}const Xt={ar:"جاري التحميل",ca:"S'està carregant",ckb:"بارکردن",de:"Laden",en:"Loading",es:"Cargando",eu:"Kargatzen",fa:"در حال بارگذاری",fi:"Ladataan",fr:"Chargement",he:"טוען",hi:"लोड हो रहा है",ja:"読み込み中",ko:"로딩 중",lt:"Kraunama",nb:"Laster",nl:"Laden",pl:"Ładowanie","pt-BR":"Carregando",pt:"A carregar",ro:"Se încarcă",ru:"Загрузка",sv:"Laddar",ta:"ஏற்றுகிறது",th:"กำลังโหลด",tr:"Yükleniyor",uk:"Завантаження",ur:"لوڈ ہو رہا ہے",uz:"Yuklanmoqda","zh-CN":"加载中","zh-TW":"載入中"},Tr="English",Ar={annotated_image:"Annotated Image"},Pr={allow_recording_access:"Please allow access to the microphone for recording.",audio:"Audio",drop_to_upload:"Drop an audio file here to upload",record_from_microphone:"Record from microphone",stop_recording:"Stop recording",no_device_support:"Media devices could not be accessed. Check that you are running on a secure origin (https) or localhost (or you have passed a valid SSL certificate to ssl_verify), and you have allowed browser access to your device.",stop:"Stop",resume:"Resume",record:"Record",no_microphone:"No microphone found",pause:"Pause",play:"Play",waiting:"Waiting"},Hr={connection_can_break:"On mobile, the connection can break if this tab is unfocused or the device sleeps, losing your position in queue.",long_requests_queue:"There is a long queue of requests pending. Duplicate this Space to skip.",lost_connection:"Lost connection due to leaving page. Rejoining queue...",waiting_for_inputs:"Waiting for file(s) to finish uploading, please retry."},Or={edit:"Edit",retry:"Retry",undo:"Undo",submit:"Submit",cancel:"Cancel",like:"Like",dislike:"Dislike",clear:"Clear",copy_message:"Copy message",copied_message:"Copied message"},Br={new_chat:"New chat",message_placeholder:"Type a message...",additional_inputs:"Additional inputs",chatbot:"Chatbot",conversation:"Conversation"},Cr={checkbox:"Checkbox",checkbox_group:"Checkbox Group"},Nr={code:"Code"},Ir={color_picker:"Color Picker"},Rr={built_with:"built with",built_with_gradio:"Built with Gradio",clear:"Clear",download:"Download",edit:"Edit",empty:"Empty",error:"Error",hosted_on:"Hosted on",loading:"Loading",logo:"logo",or:"or",remove:"Remove",settings:"Settings",share:"Share",submit:"Submit",undo:"Undo",no_devices:"No devices found",language:"Language",display_theme:"Display Theme",pwa:"Progressive Web App",record:"Record",stop_recording:"Stop Recording",screen_studio:"Screen Studio",share_gradio_tab:"[Sharing] Gradio Tab",run:"Run"},Lr={incorrect_format:"Incorrect format, only CSV and TSV files are supported",new_column:"Add column",new_row:"New row",add_row_above:"Add row above",add_row_below:"Add row below",delete_row:"Delete row",delete_column:"Delete column",add_column_left:"Add column to the left",add_column_right:"Add column to the right",sort_column:"Sort column",sort_ascending:"Sort ascending",sort_descending:"Sort descending",drop_to_upload:"Drop CSV or TSV files here to import data into dataframe",clear_sort:"Clear sort",filter:"Filter",clear_filter:"Clear filters"},Mr={dropdown:"Dropdown"},Dr={build_error:"there is a build error",config_error:"there is a config error",contact_page_author:"Please contact the author of the page to let them know.",no_app_file:"there is no app file",runtime_error:"there is a runtime error",space_not_working:`"Space isn't working because" {0}`,space_paused:"the space is paused",use_via_api:"Use via API",use_via_api_or_mcp:"Use via API or MCP"},kr={uploading:"Uploading..."},Ur={highlighted_text:"Highlighted Text"},$r={allow_webcam_access:"Please allow access to the webcam for recording.",brush_color:"Brush color",brush_radius:"Brush radius",image:"Image",remove_image:"Remove Image",select_brush_color:"Select brush color",start_drawing:"Start drawing",use_brush:"Use brush",drop_to_upload:"Drop an image file here to upload"},jr={label:"Label"},Gr={enable_cookies:"If you are visiting a HuggingFace Space in Incognito mode, you must enable third party cookies.",incorrect_credentials:"Incorrect Credentials",username:"username",password:"password",login:"Login"},Fr={number:"Number"},zr={plot:"Plot"},qr={radio:"Radio"},Vr={slider:"Slider"},Xr={click_to_upload:"Click to Upload",drop_audio:"Drop Audio Here",drop_csv:"Drop CSV Here",drop_file:"Drop File Here",drop_image:"Drop Image Here",drop_video:"Drop Video Here",drop_gallery:"Drop Media Here",paste_clipboard:"Paste from Clipboard"},Wr={drop_to_upload:"Drop a video file here to upload"},pt={_name:Tr,"3D_model":{"3d_model":"3D Model",drop_to_upload:"Drop a 3D model (.obj, .glb, .stl, .gltf, .splat, or .ply) file here to upload"},annotated_image:Ar,audio:Pr,blocks:Hr,chatbot:Or,chat_interface:Br,checkbox:Cr,code:Nr,color_picker:Ir,common:Rr,dataframe:Lr,dropdown:Mr,errors:Dr,file:kr,highlighted_text:Ur,image:$r,label:jr,login:Gr,number:Fr,plot:zr,radio:qr,slider:Vr,upload_text:Xr,video:Wr},Ki=Object.freeze(Object.defineProperty({__proto__:null,_name:Tr,annotated_image:Ar,audio:Pr,blocks:Hr,chat_interface:Br,chatbot:Or,checkbox:Cr,code:Nr,color_picker:Ir,common:Rr,dataframe:Lr,default:pt,dropdown:Mr,errors:Dr,file:kr,highlighted_text:Ur,image:$r,label:jr,login:Gr,number:Fr,plot:zr,radio:qr,slider:Vr,upload_text:Xr,video:Wr},Symbol.toStringTag,{value:"Module"})),es={ar:"العربية",ca:"Català",ckb:"کوردی",de:"Deutsch",en:"English",es:"Español",eu:"Euskara",fa:"فارسی",fi:"Suomi",fr:"Français",he:"עברית",hi:"हिंदी",ja:"日本語",ko:"한국어",lt:"Lietuvių",nb:"Norsk bokmål",nl:"Nederlands",pl:"Polski","pt-BR":"Português do Brasil",pt:"Português",ro:"Română",ru:"Русский",sv:"Svenska",ta:"தமிழ்",th:"ภาษาไทย",tr:"Türkçe",uk:"Українська",ur:"اردو",uz:"O'zbek","zh-CN":"简体中文","zh-TW":"繁體中文"},ts=Object.assign({"./lang/ar.json":()=>import('./ar-oZrlju6V.js'),"./lang/ca.json":()=>import('./ca-D4CQWB70.js'),"./lang/ckb.json":()=>import('./ckb-Cf76uBEO.js'),"./lang/de.json":()=>import('./de-CHgt1urw.js'),"./lang/en.json":()=>Promise.resolve().then(()=>Ki),"./lang/es.json":()=>import('./es-CHrrrvnD.js'),"./lang/eu.json":()=>import('./eu-B4ttIBss.js'),"./lang/fa.json":()=>import('./fa-Cftza7v_.js'),"./lang/fi.json":()=>import('./fi-CsmdXgQC.js'),"./lang/fr.json":()=>import('./fr-DpHhFOlo.js'),"./lang/he.json":()=>import('./he-BDmdmDW-.js'),"./lang/hi.json":()=>import('./hi-BEwoCZ2B.js'),"./lang/id.json":()=>import('./id-B4bhjheo.js'),"./lang/ja.json":()=>import('./ja-v-GO49IA.js'),"./lang/ko.json":()=>import('./ko-xc08dXGA.js'),"./lang/lt.json":()=>import('./lt-BSuzG0gL.js'),"./lang/nb.json":()=>import('./nb-vetOmdmu.js'),"./lang/nl.json":()=>import('./nl-B32Jky1V.js'),"./lang/pl.json":()=>import('./pl-BGo_kgCP.js'),"./lang/pt-BR.json":()=>import('./pt-BR-dOf4BQE4.js'),"./lang/pt.json":()=>import('./pt-CFijILHh.js'),"./lang/ro.json":()=>import('./ro-BeOmQJCE.js'),"./lang/ru.json":()=>import('./ru-D4j7Vj8W.js'),"./lang/sv.json":()=>import('./sv-B36J5JTf.js'),"./lang/ta.json":()=>import('./ta-DmpZJUPn.js'),"./lang/th.json":()=>import('./th-DateLXqZ.js'),"./lang/tr.json":()=>import('./tr-DlXBx-Zg.js'),"./lang/uk.json":()=>import('./uk-DwKiM4Np.js'),"./lang/ur.json":()=>import('./ur-7BCsXLxH.js'),"./lang/uz.json":()=>import('./uz-D7FUtAO1.js'),"./lang/zh-CN.json":()=>import('./zh-CN-DFscmJOp.js'),"./lang/zh-TW.json":()=>import('./zh-TW-DZ2Xs7L6.js')});function ys(e){return e&&typeof e=="object"&&e.__type__==="translation_metadata"&&typeof e.key=="string"}function rs(){return {...Object.fromEntries(Object.entries(ts).map(([t,r])=>[t.split("/").pop().split(".")[0],{type:"lazy",data:r}])),en:{type:"static",data:pt}}}const dt=rs(),it=Object.keys(dt),ws=Object.entries(dt).map(([e])=>[es[e]||e,e]);let Xe=false,We;function ns(e){const t=e.split(",").map(r=>r.includes(";")?r.split(";").slice(0,2):[r,1]);t.sort((r,n)=>parseFloat(n[1])-parseFloat(r[1]));for(const[r,n]of t)if(it.includes(r))return r;return null}async function vs(e,t){if(Xe&&!(Xe&&e!==We))return;const n=e??We??{};e!==void 0&&(We=e),os({processed_langs:dt,custom_translations:n});let o=null;const i=Ao();if(t?o=ns(t):o=i&&it.includes(i)?i:null,!o){const s=i?.split("-")[0];o=s&&it.includes(s)?s:"en";}await go({fallbackLocale:"en",initialLocale:o}),Xe=true;}function Es(e){J.set(e);}function xs(e,t,r="en"){return e&&t.includes(e)?e:r}function os(e){if(e){try{for(const t in e.custom_translations)Ae(t,e.custom_translations[t]);for(const t in e.processed_langs)t==="en"&&e.processed_langs[t].type==="static"?Ae(t,pt):e.processed_langs[t].type==="lazy"&&uo(t,e.processed_langs[t].data);}catch(t){console.error("Error loading translations:",t);}for(const t in Xt)Ae(t,{common:{loading:Xt[t]}});}} + +let E=true;async function L({url:n,data:{server:_,port:b,local_dev_mode:u,accept_language:r,root_url:e,mount_path:l,cookie:i,auth_required:h},route:y}){let s;const a$1=a&&!u&&e?new URL(l||"/",e).href:_,f=n.searchParams.get("deep_link"),t=new Headers;if(a?t.append("x-gradio-server",new URL(l,location.origin).href):(t.append("x-gradio-server",e),i&&t.append("Cookie",i)),h)return await vs(void 0,r),{config:{auth_required:true,auth_message:"",components:[],current_page:"",dependencies:[],layout:{},pages:[],page:{},root:e,space_id:null,analytics_enabled:false,connect_heartbeat:false,css:"",js:"",theme_hash:0,head:"",dev_mode:false,enable_queue:false,show_error:false,fill_height:false,fill_width:false,mode:"blocks",theme:"default",title:"",version:"",api_prefix:"",is_space:false,is_colab:false,footer_links:["gradio","settings"],stylesheets:[],protocol:"sse_v3",username:""},api_url:a$1,layout:{},app:null};try{s=await Vt.connect(a$1,{with_null_state:!0,events:["data","log","status","render"],query_params:f?{deep_link:f}:void 0,headers:t,cookies:i||void 0});}catch(m){const d=m.message||"";let p="";return d.includes(ai)||(p=d.replace(/^Error:?\s*/,"")),await vs(void 0,r),{config:{auth_message:p,auth_required:true,components:[],current_page:"",dependencies:[],layout:{},pages:[],page:{},root:e,space_id:null,analytics_enabled:false,connect_heartbeat:false,css:"",js:"",theme_hash:0,head:"",dev_mode:false,enable_queue:false,show_error:false,fill_height:false,fill_width:false,mode:"blocks",theme:"default",title:"",version:"",api_prefix:"",is_space:false,is_colab:false,footer_links:["gradio","settings"],stylesheets:[],protocol:"sse_v3",username:""},api_url:a$1,layout:{},app:null}}if(!s.config)throw new Error("No config found");let g=s.get_url_config(n.toString());return await vs(s.config?.i18n_translations||void 0,r),{config:g,api_url:a$1,app:s}} + +var _page_ts = /*#__PURE__*/Object.freeze({ + __proto__: null, + load: L, + ssr: E +}); + +async function p({request:e}){const o=e.headers.get("x-gradio-server")||"http://127.0.0.1:7860",n=e.headers.get("x-gradio-port")||"7860",c=e.headers.get("x-gradio-local-dev-mode")||t?"true":void 0,d=e.headers.get("accept-language")||"en",t$1=e.headers.get("x-gradio-mounted-path")||"/",s=new URL(e.headers.get("x-gradio-original-url")||o).origin,a=e.headers.get("cookie");let r=false;try{(await fetch(`${o}/config`,{headers:{...a?{Cookie:a}:{}}})).status===401&&(r=!0);}catch{}const g=new URL(t$1,s).href.replace(/\/$/,"");return {server:o,root_url:g,mount_path:t$1,port:n,local_dev_mode:c,accept_language:d,cookie:a,auth_required:r}} + +var _page_server_ts = /*#__PURE__*/Object.freeze({ + __proto__: null, + load: p +}); + +const index = 2; +let component_cache; +const component = async () => component_cache ??= (await import('./_page.svelte-BWlVXSOW.js')).default; +const universal_id = "src/routes/[...catchall]/+page.ts"; +const server_id = "src/routes/[...catchall]/+page.server.ts"; +const imports = ["_app/immutable/nodes/2.DOqHDK-I.js","_app/immutable/chunks/DdnRT5Sx.js","_app/immutable/chunks/BYUUP2JM.js","_app/immutable/chunks/BiJ6z1av.js","_app/immutable/chunks/DcUPjU6e.js","_app/immutable/chunks/m3X5E8Ce.js","_app/immutable/chunks/B9qV0nBn.js","_app/immutable/chunks/ByO86Xwm.js","_app/immutable/chunks/B8UwWlCi.js","_app/immutable/chunks/CggbCgVT.js","_app/immutable/chunks/BvKdJnVK.js"]; +const stylesheets = ["_app/immutable/assets/2.Bi-4O7ql.css","_app/immutable/assets/Index.DHz84ApK.css","_app/immutable/assets/Index.DIMxqS5W.css","_app/immutable/assets/Example.PnzFsODt.css","_app/immutable/assets/Upload.C2I0h_eD.css","_app/immutable/assets/index.DEPmb5JS.css","_app/immutable/assets/MarkdownCode.BXBgfZng.css","_app/immutable/assets/Index.B80bIer5.css","_app/immutable/assets/Example.Cpi22WGa.css","_app/immutable/assets/Checkbox.BbySKLMz.css","_app/immutable/assets/Example.QWdMqwA5.css","_app/immutable/assets/Index.BV5kouZe.css","_app/immutable/assets/Example.BK-tWmkG.css","_app/immutable/assets/Code.wZDUWKrz.css","_app/immutable/assets/Example.bHSd0VUC.css","_app/immutable/assets/Index.Ci-0XPiC.css","_app/immutable/assets/Example.jts6u4zx.css","_app/immutable/assets/Index.DPPYlFJP.css","_app/immutable/assets/Index.DpH7sR6h.css","_app/immutable/assets/Index.EYuwUe6R.css","_app/immutable/assets/Example.BUUMH8K0.css","_app/immutable/assets/Dropdown.-Uz_kS2s.css","_app/immutable/assets/Index.Bn0zLMEj.css","_app/immutable/assets/Example.BeU1J4ps.css","_app/immutable/assets/Index.3FqI08xq.css","_app/immutable/assets/Index.CioP8lnm.css","_app/immutable/assets/Example.CbN4r5yx.css","_app/immutable/assets/FileUpload.BDarcd0p.css","_app/immutable/assets/Example.-V2chS2k.css","_app/immutable/assets/Index.CEhk7M0s.css","_app/immutable/assets/Example.CA1DPrcM.css","_app/immutable/assets/ImageUploader.Dpdel1G9.css","_app/immutable/assets/Index.DKIzZVIo.css","_app/immutable/assets/Example.CZSJmqDf.css","_app/immutable/assets/Index.BPmhhU8b.css","_app/immutable/assets/Index.Dg9ut_M4.css","_app/immutable/assets/HTML.CCquOCqP.css","_app/immutable/assets/Example.BG5zdIqX.css","_app/immutable/assets/Index.5RnUXY9l.css","_app/immutable/assets/Example.C7vkYQeg.css","_app/immutable/assets/Example.CD_WZEqN.css","_app/immutable/assets/Index.BpcA6Nec.css","_app/immutable/assets/JSON.BXT8NU56.css","_app/immutable/assets/Example.BlpJt4zj.css","_app/immutable/assets/Index.-e-Yppt2.css","_app/immutable/assets/Example.CgIc4GLa.css","_app/immutable/assets/Index.cY7HT1Ac.css","_app/immutable/assets/Model3D.CvGLqGnb.css","_app/immutable/assets/Example.RXDI_Ar6.css","_app/immutable/assets/Index.CvyxbOJU.css","_app/immutable/assets/Example.BIrWl-Kd.css","_app/immutable/assets/Index.CFFjrWXb.css","_app/immutable/assets/Index.fPjHowzi.css","_app/immutable/assets/Example.guFL0Sj1.css","_app/immutable/assets/Index.CTDY4JGM.css","_app/immutable/assets/Example.Do5iR6B9.css","_app/immutable/assets/Index.DffZfiSz.css","_app/immutable/assets/Example.DWDv4qx4.css","_app/immutable/assets/Index.pc9XuoeO.css","_app/immutable/assets/Index.BijVyRsD.css","_app/immutable/assets/Index.DMaj38-p.css","_app/immutable/assets/Example.DSMNiXnn.css","_app/immutable/assets/Index.CwinLc1f.css","_app/immutable/assets/Walkthrough.CA8p9s2e.css","_app/immutable/assets/Index.Ds3FAhOq.css","_app/immutable/assets/Index.Xhg3Ucw_.css","_app/immutable/assets/Index.DP8ihX8q.css","_app/immutable/assets/Example.4NTZ2aku.css","_app/immutable/assets/index.uLojFN0n.css","_app/immutable/assets/Example.D2nbjfVb.css","_app/immutable/assets/Index.BZR-ZeTY.css"]; +const fonts = []; + +var _2 = /*#__PURE__*/Object.freeze({ + __proto__: null, + component: component, + fonts: fonts, + imports: imports, + index: index, + server: _page_server_ts, + server_id: server_id, + stylesheets: stylesheets, + universal: _page_ts, + universal_id: universal_id +}); + +export { Es as E, J, Le as L, _s as _, os as a, bs as b, _2 as c, ds as d, fs as f, gs as g, hs as h, ls as l, ms as m, on as o, ps as p, rs as r, sn as s, us as u, vs as v, ws as w, xs as x, ys as y }; +//# sourceMappingURL=2-BLdXJizP.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/BaseForm-AADCIM1D.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/BaseForm-AADCIM1D.js new file mode 100644 index 0000000000000000000000000000000000000000..bae794e8fc057d7b0f4126f0114b0f3e66860229 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/BaseForm-AADCIM1D.js @@ -0,0 +1,7 @@ +import './async-D55cHugf.js'; +import { f as attr_class, a as attr, g as attr_style, s as slot } from './index-u8mz_F03.js'; + +function o(t,l){let{visible:a,scale:e,min_width:s,label:d=void 0}=l;t.push(``),slot(t,l,"default",{}),t.push("");} + +export { o }; +//# sourceMappingURL=BaseForm-AADCIM1D.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Block-DZmzQwnI.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Block-DZmzQwnI.js new file mode 100644 index 0000000000000000000000000000000000000000..862877a46a09f8d19669421e28489124bac55d14 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Block-DZmzQwnI.js @@ -0,0 +1,7 @@ +import { f as fallback } from './async-D55cHugf.js'; +import { l as element, g as attr_style, d as bind_props, s as slot, a as attr, f as attr_class, i as stringify } from './index-u8mz_F03.js'; + +/* empty css */function G(q,e){q.component(t=>{let b=fallback(e.height,void 0),g=fallback(e.min_height,void 0),k=fallback(e.max_height,void 0),d=fallback(e.width,void 0),w=fallback(e.elem_id,""),x=fallback(e.elem_classes,()=>[],true),m=fallback(e.variant,"solid"),h=fallback(e.border_mode,"base"),_=fallback(e.padding,true),y=fallback(e.type,"normal"),v=fallback(e.test_id,void 0),p=fallback(e.explicit_call,false),r=fallback(e.container,true),n=fallback(e.visible,true),B=fallback(e.allow_overflow,true),z=fallback(e.overflow_behavior,"auto"),c=fallback(e.scale,null),E=fallback(e.min_width,0),u=fallback(e.flex,false),L=fallback(e.resizable,false),R=fallback(e.rtl,false),a=fallback(e.fullscreen,false),j=fallback(e.label,void 0),C=a,o,A=y==="fieldset"?"fieldset":"div",H=0,K=0,i=null;function W(f){a&&f.key==="Escape"&&(a=false);}const s=f=>{if(f!==void 0){if(typeof f=="number")return f+"px";if(typeof f=="string")return f}};a!==C&&(C=a,a?(i=o.getBoundingClientRect(),H=o.offsetHeight,K=o.offsetWidth,window.addEventListener("keydown",W)):(i=null,window.removeEventListener("keydown",W))),n||(u=false),n===true||n==="hidden"?(t.push(""),element(t,A,()=>{t.push(`${attr("data-testid",v)}${attr("id",w)}${attr_class(`block ${stringify(x?.join(" ")||"")}`,"svelte-1plpy97",{hidden:n==="hidden",padded:_,flex:u,border_focus:h==="focus",border_contrast:h==="contrast","hide-container":!p&&!r,fullscreen:a,animating:a&&i!==null,"auto-margin":c===null})}${attr("dir",R?"rtl":"ltr")}${attr("aria-label",j)}${attr_style("",{height:a?void 0:s(b),"min-height":a?void 0:s(g),"max-height":a?void 0:s(k),"--start-top":i?`${i.top}px`:"0px","--start-left":i?`${i.left}px`:"0px","--start-width":i?`${i.width}px`:"0px","--start-height":i?`${i.height}px`:"0px",width:a?void 0:typeof d=="number"?`calc(min(${d}px, 100%))`:s(d),"border-style":m,overflow:B?z:"hidden","flex-grow":c,"min-width":`calc(min(${E}px, 100%))`})}`);},()=>{t.push(""),slot(t,e,"default",{}),t.push(" "),L?(t.push(""),t.push('')):t.push(""),t.push("");}),t.push(" "),a?(t.push(""),t.push(`
`)):t.push(""),t.push("")):t.push(""),t.push(""),bind_props(e,{height:b,min_height:g,max_height:k,width:d,elem_id:w,elem_classes:x,variant:m,border_mode:h,padding:_,type:y,test_id:v,explicit_call:p,container:r,visible:n,allow_overflow:B,overflow_behavior:z,scale:c,min_width:E,flex:u,resizable:L,rtl:R,fullscreen:a,label:j});});} + +export { G }; +//# sourceMappingURL=Block-DZmzQwnI.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Check-C7_ZsXgh.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Check-C7_ZsXgh.js new file mode 100644 index 0000000000000000000000000000000000000000..eafca7c61ac8756bd595fcd9398a7ce0a2c17b21 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Check-C7_ZsXgh.js @@ -0,0 +1,6 @@ +import './async-D55cHugf.js'; + +function e(o){o.push('');} + +export { e }; +//# sourceMappingURL=Check-C7_ZsXgh.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Checkbox-C7eMNvyZ.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Checkbox-C7eMNvyZ.js new file mode 100644 index 0000000000000000000000000000000000000000..904e752c37d2fe492353cdc52cac54a4ee82e305 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Checkbox-C7eMNvyZ.js @@ -0,0 +1,8 @@ +import './async-D55cHugf.js'; +import { f as attr_class, a as attr, d as bind_props } from './index-u8mz_F03.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; + +function d(c,a){c.component(t=>{let{label:o="Checkbox",value:s=void 0,indeterminate:n=false,interactive:i=true,show_label:p=true,on_change:b,on_input:h,on_select:u}=a,l=!i;t.push(` `),p?(t.push(""),t.push(`${escape_html(o)}`)):t.push(""),t.push(""),bind_props(a,{value:s});});} + +export { d }; +//# sourceMappingURL=Checkbox-C7eMNvyZ.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Code-CrFuQ3ob.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Code-CrFuQ3ob.js new file mode 100644 index 0000000000000000000000000000000000000000..2233ab4dbee9b966b0971b66364f95631e8bff28 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Code-CrFuQ3ob.js @@ -0,0 +1,6 @@ +import './async-D55cHugf.js'; + +function i(l){l.push('');} + +export { i }; +//# sourceMappingURL=Code-CrFuQ3ob.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Code.svelte_svelte_type_style_lang-C72WHBwk.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Code.svelte_svelte_type_style_lang-C72WHBwk.js new file mode 100644 index 0000000000000000000000000000000000000000..c7be9709fef2aa34ae254dcb9d2f79f67e30081f --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Code.svelte_svelte_type_style_lang-C72WHBwk.js @@ -0,0 +1,18 @@ +import './2-BLdXJizP.js'; + +let As=[],Zr=[];(()=>{let n="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(t=>t?parseInt(t,36):1);for(let t=0,e=0;t>1;if(n=Zr[i])t=i+1;else return true;if(t==e)return false}}function Vn(n){return n>=127462&&n<=127487}const Fn=8205;function $l(n,t,e=true,i=true){return (e?to:Ul)(n,t,i)}function to(n,t,e){if(t==n.length)return t;t&&eo(n.charCodeAt(t))&&io(n.charCodeAt(t-1))&&t--;let i=is(n,t);for(t+=zn(i);t=0&&Vn(is(n,o));)r++,o-=2;if(r%2==0)break;t+=2;}else break}return t}function Ul(n,t,e){for(;t>0;){let i=to(n,t-2,e);if(i=56320&&n<57344}function io(n){return n>=55296&&n<56320}function zn(n){return n<65536?1:2}class W{lineAt(t){if(t<0||t>this.length)throw new RangeError(`Invalid position ${t} in document of length ${this.length}`);return this.lineInner(t,false,1,0)}line(t){if(t<1||t>this.lines)throw new RangeError(`Invalid line number ${t} in ${this.lines}-line document`);return this.lineInner(t,true,1,0)}replace(t,e,i){[t,e]=ke(this,t,e);let s=[];return this.decompose(0,t,s,2),i.length&&i.decompose(0,i.length,s,3),this.decompose(e,this.length,s,1),Et.from(s,this.length-(e-t)+i.length)}append(t){return this.replace(this.length,this.length,t)}slice(t,e=this.length){[t,e]=ke(this,t,e);let i=[];return this.decompose(t,e,i,0),Et.from(i,e-t)}eq(t){if(t==this)return true;if(t.length!=this.length||t.lines!=this.lines)return false;let e=this.scanIdentical(t,1),i=this.length-this.scanIdentical(t,-1),s=new Ne(this),r=new Ne(t);for(let o=e,l=e;;){if(s.next(o),r.next(o),o=0,s.lineBreak!=r.lineBreak||s.done!=r.done||s.value!=r.value)return false;if(l+=s.value.length,s.done||l>=i)return true}}iter(t=1){return new Ne(this,t)}iterRange(t,e=this.length){return new so(this,t,e)}iterLines(t,e){let i;if(t==null)i=this.iter();else {e==null&&(e=this.lines+1);let s=this.line(t).from;i=this.iterRange(s,Math.max(s,e==this.lines+1?this.length:e<=1?0:this.line(e-1).to));}return new no(i)}toString(){return this.sliceString(0)}toJSON(){let t=[];return this.flatten(t),t}constructor(){}static of(t){if(t.length==0)throw new RangeError("A document must have at least one line");return t.length==1&&!t[0]?W.empty:t.length<=32?new G(t):Et.from(G.split(t,[]))}}class G extends W{constructor(t,e=_l(t)){super(),this.text=t,this.length=e;}get lines(){return this.text.length}get children(){return null}lineInner(t,e,i,s){for(let r=0;;r++){let o=this.text[r],l=s+o.length;if((e?i:l)>=t)return new Gl(s,l,i,o);s=l+1,i++;}}decompose(t,e,i,s){let r=t<=0&&e>=this.length?this:new G(qn(this.text,t,e),Math.min(e,this.length)-Math.max(0,t));if(s&1){let o=i.pop(),l=Ci(r.text,o.text.slice(),0,r.length);if(l.length<=32)i.push(new G(l,o.length+r.length));else {let a=l.length>>1;i.push(new G(l.slice(0,a)),new G(l.slice(a)));}}else i.push(r);}replace(t,e,i){if(!(i instanceof G))return super.replace(t,e,i);[t,e]=ke(this,t,e);let s=Ci(this.text,Ci(i.text,qn(this.text,0,t)),e),r=this.length+i.length-(e-t);return s.length<=32?new G(s,r):Et.from(G.split(s,[]),r)}sliceString(t,e=this.length,i=` +`){[t,e]=ke(this,t,e);let s="";for(let r=0,o=0;r<=e&&ot&&o&&(s+=i),tr&&(s+=l.slice(Math.max(0,t-r),e-r)),r=a+1;}return s}flatten(t){for(let e of this.text)t.push(e);}scanIdentical(){return 0}static split(t,e){let i=[],s=-1;for(let r of t)i.push(r),s+=r.length+1,i.length==32&&(e.push(new G(i,s)),i=[],s=-1);return s>-1&&e.push(new G(i,s)),e}}class Et extends W{constructor(t,e){super(),this.children=t,this.length=e,this.lines=0;for(let i of t)this.lines+=i.lines;}lineInner(t,e,i,s){for(let r=0;;r++){let o=this.children[r],l=s+o.length,a=i+o.lines-1;if((e?a:l)>=t)return o.lineInner(t,e,i,s);s=l+1,i=a+1;}}decompose(t,e,i,s){for(let r=0,o=0;o<=e&&r=o){let h=s&((o<=t?1:0)|(a>=e?2:0));o>=t&&a<=e&&!h?i.push(l):l.decompose(t-o,e-o,i,h);}o=a+1;}}replace(t,e,i){if([t,e]=ke(this,t,e),i.lines=r&&e<=l){let a=o.replace(t-r,e-r,i),h=this.lines-o.lines+a.lines;if(a.lines>4&&a.lines>h>>6){let f=this.children.slice();return f[s]=a,new Et(f,this.length-(e-t)+i.length)}return super.replace(r,l,a)}r=l+1;}return super.replace(t,e,i)}sliceString(t,e=this.length,i=` +`){[t,e]=ke(this,t,e);let s="";for(let r=0,o=0;rt&&r&&(s+=i),to&&(s+=l.sliceString(t-o,e-o,i)),o=a+1;}return s}flatten(t){for(let e of this.children)e.flatten(t);}scanIdentical(t,e){if(!(t instanceof Et))return 0;let i=0,[s,r,o,l]=e>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;s+=e,r+=e){if(s==o||r==l)return i;let a=this.children[s],h=t.children[r];if(a!=h)return i+a.scanIdentical(h,e);i+=a.length+1;}}static from(t,e=t.reduce((i,s)=>i+s.length+1,-1)){let i=0;for(let d of t)i+=d.lines;if(i<32){let d=[];for(let p of t)p.flatten(d);return new G(d,e)}let s=Math.max(32,i>>5),r=s<<1,o=s>>1,l=[],a=0,h=-1,f=[];function c(d){let p;if(d.lines>r&&d instanceof Et)for(let g of d.children)c(g);else d.lines>o&&(a>o||!a)?(u(),l.push(d)):d instanceof G&&a&&(p=f[f.length-1])instanceof G&&d.lines+p.lines<=32?(a+=d.lines,h+=d.length+1,f[f.length-1]=new G(p.text.concat(d.text),p.length+1+d.length)):(a+d.lines>s&&u(),a+=d.lines,h+=d.length+1,f.push(d));}function u(){a!=0&&(l.push(f.length==1?f[0]:Et.from(f,h)),h=-1,a=f.length=0);}for(let d of t)c(d);return u(),l.length==1?l[0]:new Et(l,e)}}W.empty=new G([""],0);function _l(n){let t=-1;for(let e of n)t+=e.length+1;return t}function Ci(n,t,e=0,i=1e9){for(let s=0,r=0,o=true;r=e&&(a>i&&(l=l.slice(0,i-s)),s0?1:(t instanceof G?t.text.length:t.children.length)<<1];}nextInner(t,e){for(this.done=this.lineBreak=false;;){let i=this.nodes.length-1,s=this.nodes[i],r=this.offsets[i],o=r>>1,l=s instanceof G?s.text.length:s.children.length;if(o==(e>0?l:0)){if(i==0)return this.done=true,this.value="",this;e>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop();}else if((r&1)==(e>0?0:1)){if(this.offsets[i]+=e,t==0)return this.lineBreak=true,this.value=` +`,this;t--;}else if(s instanceof G){let a=s.text[o+(e<0?-1:0)];if(this.offsets[i]+=e,a.length>Math.max(0,t))return this.value=t==0?a:e>0?a.slice(t):a.slice(0,a.length-t),this;t-=a.length;}else {let a=s.children[o+(e<0?-1:0)];t>a.length?(t-=a.length,this.offsets[i]+=e):(e<0&&this.offsets[i]--,this.nodes.push(a),this.offsets.push(e>0?1:(a instanceof G?a.text.length:a.children.length)<<1));}}}next(t=0){return t<0&&(this.nextInner(-t,-this.dir),t=this.value.length),this.nextInner(t,this.dir)}}class so{constructor(t,e,i){this.value="",this.done=false,this.cursor=new Ne(t,e>i?-1:1),this.pos=e>i?t.length:0,this.from=Math.min(e,i),this.to=Math.max(e,i);}nextInner(t,e){if(e<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=true,this;t+=Math.max(0,e<0?this.pos-this.to:this.from-this.pos);let i=e<0?this.pos-this.from:this.to-this.pos;t>i&&(t=i),i-=t;let{value:s}=this.cursor.next(t);return this.pos+=(s.length+t)*e,this.value=s.length<=i?s:e<0?s.slice(s.length-i):s.slice(0,i),this.done=!this.value,this}next(t=0){return t<0?t=Math.max(t,this.from-this.pos):t>0&&(t=Math.min(t,this.to-this.pos)),this.nextInner(t,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class no{constructor(t){this.inner=t,this.afterBreak=true,this.value="",this.done=false;}next(t=0){let{done:e,lineBreak:i,value:s}=this.inner.next(t);return e&&this.afterBreak?(this.value="",this.afterBreak=false):e?(this.done=true,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=true,this.next()):(this.value=s,this.afterBreak=false),this}get lineBreak(){return false}}typeof Symbol<"u"&&(W.prototype[Symbol.iterator]=function(){return this.iter()},Ne.prototype[Symbol.iterator]=so.prototype[Symbol.iterator]=no.prototype[Symbol.iterator]=function(){return this});class Gl{constructor(t,e,i,s){this.from=t,this.to=e,this.number=i,this.text=s;}get length(){return this.to-this.from}}function ke(n,t,e){return t=Math.max(0,Math.min(n.length,t)),[t,Math.max(t,Math.min(n.length,e))]}function mt(n,t,e=true,i=true){return $l(n,t,e,i)}function Yl(n){return n>=56320&&n<57344}function Xl(n){return n>=55296&&n<56320}function ro(n,t){let e=n.charCodeAt(t);if(!Xl(e)||t+1==n.length)return e;let i=n.charCodeAt(t+1);return Yl(i)?(e-55296<<10)+(i-56320)+65536:e}function Yc(n){return n<=65535?String.fromCharCode(n):(n-=65536,String.fromCharCode((n>>10)+55296,(n&1023)+56320))}function Jl(n){return n<65536?1:2}const Ms=/\r\n?|\n/;var at=(function(n){return n[n.Simple=0]="Simple",n[n.TrackDel=1]="TrackDel",n[n.TrackBefore=2]="TrackBefore",n[n.TrackAfter=3]="TrackAfter",n})(at||(at={}));class Wt{constructor(t){this.sections=t;}get length(){let t=0;for(let e=0;et)return r+(t-s);r+=l;}else {if(i!=at.Simple&&h>=t&&(i==at.TrackDel&&st||i==at.TrackBefore&&st))return null;if(h>t||h==t&&e<0&&!l)return t==s||e<0?r:r+a;r+=a;}s=h;}if(t>s)throw new RangeError(`Position ${t} is out of range for changeset of length ${s}`);return r}touchesRange(t,e=t){for(let i=0,s=0;i=0&&s<=e&&l>=t)return se?"cover":true;s=l;}return false}toString(){let t="";for(let e=0;e=0?":"+s:"");}return t}toJSON(){return this.sections}static fromJSON(t){if(!Array.isArray(t)||t.length%2||t.some(e=>typeof e!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new Wt(t)}static create(t){return new Wt(t)}}class J extends Wt{constructor(t,e){super(t),this.inserted=e;}apply(t){if(this.length!=t.length)throw new RangeError("Applying change set to a document with the wrong length");return Ts(this,(e,i,s,r,o)=>t=t.replace(s,s+(i-e),o),false),t}mapDesc(t,e=false){return Os(this,t,e,true)}invert(t){let e=this.sections.slice(),i=[];for(let s=0,r=0;s=0){e[s]=l,e[s+1]=o;let a=s>>1;for(;i.length0&&$t(i,e,r.text),r.forward(f),l+=f;}let h=t[o++];for(;l>1].toJSON()));}return t}static of(t,e,i){let s=[],r=[],o=0,l=null;function a(f=false){if(!f&&!s.length)return;ou||c<0||u>e)throw new RangeError(`Invalid change range ${c} to ${u} (in doc of length ${e})`);let p=d?typeof d=="string"?W.of(d.split(i||Ms)):d:W.empty,g=p.length;if(c==u&&g==0)return;co&&it(s,c-o,-1),it(s,u-c,g),$t(r,s,p),o=u;}}return h(t),a(!l),l}static empty(t){return new J(t?[t,-1]:[],[])}static fromJSON(t){if(!Array.isArray(t))throw new RangeError("Invalid JSON representation of ChangeSet");let e=[],i=[];for(let s=0;sl&&typeof o!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(r.length==1)e.push(r[0],0);else {for(;i.length=0&&e<=0&&e==n[s+1]?n[s]+=t:s>=0&&t==0&&n[s]==0?n[s+1]+=e:i?(n[s]+=t,n[s+1]+=e):n.push(t,e);}function $t(n,t,e){if(e.length==0)return;let i=t.length-2>>1;if(i>1])),!(e||o==n.sections.length||n.sections[o+1]<0);)l=n.sections[o++],a=n.sections[o++];t(s,h,r,f,c),s=h,r=f;}}}function Os(n,t,e,i=false){let s=[],r=i?[]:null,o=new je(n),l=new je(t);for(let a=-1;;){if(o.done&&l.len||l.done&&o.len)throw new Error("Mismatched change set lengths");if(o.ins==-1&&l.ins==-1){let h=Math.min(o.len,l.len);it(s,h,-1),o.forward(h),l.forward(h);}else if(l.ins>=0&&(o.ins<0||a==o.i||o.off==0&&(l.len=0&&a=0){let h=0,f=o.len;for(;f;)if(l.ins==-1){let c=Math.min(f,l.len);h+=c,f-=c,l.forward(c);}else if(l.ins==0&&l.lena||o.ins>=0&&o.len>a)&&(l||i.length>h),r.forward2(a),o.forward(a);}}}}class je{constructor(t){this.set=t,this.i=0,this.next();}next(){let{sections:t}=this.set;this.i>1;return e>=t.length?W.empty:t[e]}textBit(t){let{inserted:e}=this.set,i=this.i-2>>1;return i>=e.length&&!t?W.empty:e[i].slice(this.off,t==null?void 0:this.off+t)}forward(t){t==this.len?this.next():(this.len-=t,this.off+=t);}forward2(t){this.ins==-1?this.forward(t):t==this.ins?this.next():(this.ins-=t,this.off+=t);}}class ne{constructor(t,e,i){this.from=t,this.to=e,this.flags=i;}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let t=this.flags&7;return t==7?null:t}get goalColumn(){let t=this.flags>>6;return t==16777215?void 0:t}map(t,e=-1){let i,s;return this.empty?i=s=t.mapPos(this.from,e):(i=t.mapPos(this.from,1),s=t.mapPos(this.to,-1)),i==this.from&&s==this.to?this:new ne(i,s,this.flags)}extend(t,e=t){if(t<=this.anchor&&e>=this.anchor)return C.range(t,e);let i=Math.abs(t-this.anchor)>Math.abs(e-this.anchor)?t:e;return C.range(this.anchor,i)}eq(t,e=false){return this.anchor==t.anchor&&this.head==t.head&&this.goalColumn==t.goalColumn&&(!e||!this.empty||this.assoc==t.assoc)}toJSON(){return {anchor:this.anchor,head:this.head}}static fromJSON(t){if(!t||typeof t.anchor!="number"||typeof t.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return C.range(t.anchor,t.head)}static create(t,e,i){return new ne(t,e,i)}}class C{constructor(t,e){this.ranges=t,this.mainIndex=e;}map(t,e=-1){return t.empty?this:C.create(this.ranges.map(i=>i.map(t,e)),this.mainIndex)}eq(t,e=false){if(this.ranges.length!=t.ranges.length||this.mainIndex!=t.mainIndex)return false;for(let i=0;it.toJSON()),main:this.mainIndex}}static fromJSON(t){if(!t||!Array.isArray(t.ranges)||typeof t.main!="number"||t.main>=t.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new C(t.ranges.map(e=>ne.fromJSON(e)),t.main)}static single(t,e=t){return new C([C.range(t,e)],0)}static create(t,e=0){if(t.length==0)throw new RangeError("A selection needs at least one range");for(let i=0,s=0;st?8:0)|r)}static normalized(t,e=0){let i=t[e];t.sort((s,r)=>s.from-r.from),e=t.indexOf(i);for(let s=1;sr.head?C.range(a,l):C.range(l,a));}}return new C(t,e)}}function lo(n,t){for(let e of n.ranges)if(e.to>t)throw new RangeError("Selection points outside of document")}let dn=0;class A{constructor(t,e,i,s,r){this.combine=t,this.compareInput=e,this.compare=i,this.isStatic=s,this.id=dn++,this.default=t([]),this.extensions=typeof r=="function"?r(this):r;}get reader(){return this}static define(t={}){return new A(t.combine||(e=>e),t.compareInput||((e,i)=>e===i),t.compare||(t.combine?(e,i)=>e===i:pn),!!t.static,t.enables)}of(t){return new Ai([],this,0,t)}compute(t,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new Ai(t,this,1,e)}computeN(t,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new Ai(t,this,2,e)}from(t,e){return e||(e=i=>i),this.compute([t],i=>e(i.field(t)))}}function pn(n,t){return n==t||n.length==t.length&&n.every((e,i)=>e===t[i])}class Ai{constructor(t,e,i,s){this.dependencies=t,this.facet=e,this.type=i,this.value=s,this.id=dn++;}dynamicSlot(t){var e;let i=this.value,s=this.facet.compareInput,r=this.id,o=t[r]>>1,l=this.type==2,a=false,h=false,f=[];for(let c of this.dependencies)c=="doc"?a=true:c=="selection"?h=true:(((e=t[c.id])!==null&&e!==void 0?e:1)&1)==0&&f.push(t[c.id]);return {create(c){return c.values[o]=i(c),1},update(c,u){if(a&&u.docChanged||h&&(u.docChanged||u.selection)||Ds(c,f)){let d=i(c);if(l?!Kn(d,c.values[o],s):!s(d,c.values[o]))return c.values[o]=d,1}return 0},reconfigure:(c,u)=>{let d,p=u.config.address[r];if(p!=null){let g=Ei(u,p);if(this.dependencies.every(m=>m instanceof A?u.facet(m)===c.facet(m):m instanceof Ft?u.field(m,false)==c.field(m,false):true)||(l?Kn(d=i(c),g,s):s(d=i(c),g)))return c.values[o]=g,0}else d=i(c);return c.values[o]=d,1}}}}function Kn(n,t,e){if(n.length!=t.length)return false;for(let i=0;in[a.id]),s=e.map(a=>a.type),r=i.filter(a=>!(a&1)),o=n[t.id]>>1;function l(a){let h=[];for(let f=0;fi===s),t);return t.provide&&(e.provides=t.provide(e)),e}create(t){let e=t.facet(oi).find(i=>i.field==this);return (e?.create||this.createF)(t)}slot(t){let e=t[this.id]>>1;return {create:i=>(i.values[e]=this.create(i),1),update:(i,s)=>{let r=i.values[e],o=this.updateF(r,s);return this.compareF(r,o)?0:(i.values[e]=o,1)},reconfigure:(i,s)=>{let r=i.facet(oi),o=s.facet(oi),l;return (l=r.find(a=>a.field==this))&&l!=o.find(a=>a.field==this)?(i.values[e]=l.create(i),1):s.config.address[this.id]!=null?(i.values[e]=s.field(this),0):(i.values[e]=this.create(i),1)}}}init(t){return [this,oi.of({field:this,create:t})]}get extension(){return this}}const se={lowest:4,low:3,default:2,high:1,highest:0};function De(n){return t=>new ao(t,n)}const $i={highest:De(se.highest),high:De(se.high),default:De(se.default),low:De(se.low),lowest:De(se.lowest)};class ao{constructor(t,e){this.inner=t,this.prec=e;}}class Ui{of(t){return new Bs(this,t)}reconfigure(t){return Ui.reconfigure.of({compartment:this,extension:t})}get(t){return t.config.compartments.get(this)}}class Bs{constructor(t,e){this.compartment=t,this.inner=e;}}class Bi{constructor(t,e,i,s,r,o){for(this.base=t,this.compartments=e,this.dynamicSlots=i,this.address=s,this.staticValues=r,this.facets=o,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(t,e,i){let s=[],r=Object.create(null),o=new Map;for(let u of Zl(t,e,o))u instanceof Ft?s.push(u):(r[u.facet.id]||(r[u.facet.id]=[])).push(u);let l=Object.create(null),a=[],h=[];for(let u of s)l[u.id]=h.length<<1,h.push(d=>u.slot(d));let f=i?.config.facets;for(let u in r){let d=r[u],p=d[0].facet,g=f&&f[u]||[];if(d.every(m=>m.type==0))if(l[p.id]=a.length<<1|1,pn(g,d))a.push(i.facet(p));else {let m=p.combine(d.map(b=>b.value));a.push(i&&p.compare(m,i.facet(p))?i.facet(p):m);}else {for(let m of d)m.type==0?(l[m.id]=a.length<<1|1,a.push(m.value)):(l[m.id]=h.length<<1,h.push(b=>m.dynamicSlot(b)));l[p.id]=h.length<<1,h.push(m=>Ql(m,p,d));}}let c=h.map(u=>u(l));return new Bi(t,o,c,l,a,r)}}function Zl(n,t,e){let i=[[],[],[],[],[]],s=new Map;function r(o,l){let a=s.get(o);if(a!=null){if(a<=l)return;let h=i[a].indexOf(o);h>-1&&i[a].splice(h,1),o instanceof Bs&&e.delete(o.compartment);}if(s.set(o,l),Array.isArray(o))for(let h of o)r(h,l);else if(o instanceof Bs){if(e.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let h=t.get(o.compartment)||o.inner;e.set(o.compartment,h),r(h,l);}else if(o instanceof ao)r(o.inner,o.prec);else if(o instanceof Ft)i[l].push(o),o.provides&&r(o.provides,l);else if(o instanceof Ai)i[l].push(o),o.facet.extensions&&r(o.facet.extensions,se.default);else {let h=o.extension;if(!h)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);r(h,l);}}return r(n,se.default),i.reduce((o,l)=>o.concat(l))}function He(n,t){if(t&1)return 2;let e=t>>1,i=n.status[e];if(i==4)throw new Error("Cyclic dependency between fields and/or facets");if(i&2)return i;n.status[e]=4;let s=n.computeSlot(n,n.config.dynamicSlots[e]);return n.status[e]=2|s}function Ei(n,t){return t&1?n.config.staticValues[t>>1]:n.values[t>>1]}const ho=A.define(),Es=A.define({combine:n=>n.some(t=>t),static:true}),fo=A.define({combine:n=>n.length?n[0]:void 0,static:true}),co=A.define(),uo=A.define(),po=A.define(),go=A.define({combine:n=>n.length?n[0]:false});class Oe{constructor(t,e){this.type=t,this.value=e;}static define(){return new ta}}class ta{of(t){return new Oe(this,t)}}class ea{constructor(t){this.map=t;}of(t){return new U(this,t)}}class U{constructor(t,e){this.type=t,this.value=e;}map(t){let e=this.type.map(this.value,t);return e===void 0?void 0:e==this.value?this:new U(this.type,e)}is(t){return this.type==t}static define(t={}){return new ea(t.map||(e=>e))}static mapEffects(t,e){if(!t.length)return t;let i=[];for(let s of t){let r=s.map(e);r&&i.push(r);}return i}}U.reconfigure=U.define();U.appendConfig=U.define();class st{constructor(t,e,i,s,r,o){this.startState=t,this.changes=e,this.selection=i,this.effects=s,this.annotations=r,this.scrollIntoView=o,this._doc=null,this._state=null,i&&lo(i,e.newLength),r.some(l=>l.type==st.time)||(this.annotations=r.concat(st.time.of(Date.now())));}static create(t,e,i,s,r,o){return new st(t,e,i,s,r,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(t){for(let e of this.annotations)if(e.type==t)return e.value}get docChanged(){return !this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(t){let e=this.annotation(st.userEvent);return !!(e&&(e==t||e.length>t.length&&e.slice(0,t.length)==t&&e[t.length]=="."))}}st.time=Oe.define();st.userEvent=Oe.define();st.addToHistory=Oe.define();st.remote=Oe.define();function ia(n,t){let e=[];for(let i=0,s=0;;){let r,o;if(i=n[i]))r=n[i++],o=n[i++];else if(s=0;s--){let r=i[s](n);r instanceof st?n=r:Array.isArray(r)&&r.length==1&&r[0]instanceof st?n=r[0]:n=bo(t,be(r),false);}return n}function na(n){let t=n.startState,e=t.facet(po),i=n;for(let s=e.length-1;s>=0;s--){let r=e[s](n);r&&Object.keys(r).length&&(i=mo(i,Ps(t,r,n.changes.newLength),true));}return i==n?n:st.create(t,n.changes,n.selection,i.effects,i.annotations,i.scrollIntoView)}const ra=[];function be(n){return n==null?ra:Array.isArray(n)?n:[n]}var Nt=(function(n){return n[n.Word=0]="Word",n[n.Space=1]="Space",n[n.Other=2]="Other",n})(Nt||(Nt={}));const oa=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let Rs;try{Rs=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u");}catch{}function la(n){if(Rs)return Rs.test(n);for(let t=0;t"€"&&(e.toUpperCase()!=e.toLowerCase()||oa.test(e)))return true}return false}function aa(n){return t=>{if(!/\S/.test(t))return Nt.Space;if(la(t))return Nt.Word;for(let e=0;e-1)return Nt.Word;return Nt.Other}}class H{constructor(t,e,i,s,r,o){this.config=t,this.doc=e,this.selection=i,this.values=s,this.status=t.statusTemplate.slice(),this.computeSlot=r,o&&(o._state=this);for(let l=0;ls.set(h,a)),e=null),s.set(l.value.compartment,l.value.extension)):l.is(U.reconfigure)?(e=null,i=l.value):l.is(U.appendConfig)&&(e=null,i=be(i).concat(l.value));let r;e?r=t.startState.values.slice():(e=Bi.resolve(i,s,this),r=new H(e,this.doc,this.selection,e.dynamicSlots.map(()=>null),(a,h)=>h.reconfigure(a,this),null).values);let o=t.startState.facet(Es)?t.newSelection:t.newSelection.asSingle();new H(e,t.newDoc,o,r,(l,a)=>a.update(l,t),t);}replaceSelection(t){return typeof t=="string"&&(t=this.toText(t)),this.changeByRange(e=>({changes:{from:e.from,to:e.to,insert:t},range:C.cursor(e.from+t.length)}))}changeByRange(t){let e=this.selection,i=t(e.ranges[0]),s=this.changes(i.changes),r=[i.range],o=be(i.effects);for(let l=1;lo.spec.fromJSON(l,a)));}}return H.create({doc:t.doc,selection:C.fromJSON(t.selection),extensions:e.extensions?s.concat([e.extensions]):s})}static create(t={}){let e=Bi.resolve(t.extensions||[],new Map),i=t.doc instanceof W?t.doc:W.of((t.doc||"").split(e.staticFacet(H.lineSeparator)||Ms)),s=t.selection?t.selection instanceof C?t.selection:C.single(t.selection.anchor,t.selection.head):C.single(0);return lo(s,i.length),e.staticFacet(Es)||(s=s.asSingle()),new H(e,i,s,e.dynamicSlots.map(()=>null),(r,o)=>o.create(r),null)}get tabSize(){return this.facet(H.tabSize)}get lineBreak(){return this.facet(H.lineSeparator)||` +`}get readOnly(){return this.facet(go)}phrase(t,...e){for(let i of this.facet(H.phrases))if(Object.prototype.hasOwnProperty.call(i,t)){t=i[t];break}return e.length&&(t=t.replace(/\$(\$|\d*)/g,(i,s)=>{if(s=="$")return "$";let r=+(s||1);return !r||r>e.length?i:e[r-1]})),t}languageDataAt(t,e,i=-1){let s=[];for(let r of this.facet(ho))for(let o of r(this,e,i))Object.prototype.hasOwnProperty.call(o,t)&&s.push(o[t]);return s}charCategorizer(t){let e=this.languageDataAt("wordChars",t);return aa(e.length?e[0]:"")}wordAt(t){let{text:e,from:i,length:s}=this.doc.lineAt(t),r=this.charCategorizer(t),o=t-i,l=t-i;for(;o>0;){let a=mt(e,o,false);if(r(e.slice(a,o))!=Nt.Word)break;o=a;}for(;ln.length?n[0]:4});H.lineSeparator=fo;H.readOnly=go;H.phrases=A.define({compare(n,t){let e=Object.keys(n),i=Object.keys(t);return e.length==i.length&&e.every(s=>n[s]==t[s])}});H.languageData=ho;H.changeFilter=co;H.transactionFilter=uo;H.transactionExtender=po;Ui.reconfigure=U.define();function _i(n,t,e={}){let i={};for(let s of n)for(let r of Object.keys(s)){let o=s[r],l=i[r];if(l===void 0)i[r]=o;else if(!(l===o||o===void 0))if(Object.hasOwnProperty.call(e,r))i[r]=e[r](l,o);else throw new Error("Config merge conflict for field "+r)}for(let s in t)i[s]===void 0&&(i[s]=t[s]);return i}class le{eq(t){return this==t}range(t,e=t){return Ls.create(t,e,this)}}le.prototype.startSide=le.prototype.endSide=0;le.prototype.point=false;le.prototype.mapMode=at.TrackDel;function gn(n,t){return n==t||n.constructor==t.constructor&&n.eq(t)}let Ls=class yo{constructor(t,e,i){this.from=t,this.to=e,this.value=i;}static create(t,e,i){return new yo(t,e,i)}};function Is(n,t){return n.from-t.from||n.value.startSide-t.value.startSide}class mn{constructor(t,e,i,s){this.from=t,this.to=e,this.value=i,this.maxPoint=s;}get length(){return this.to[this.to.length-1]}findIndex(t,e,i,s=0){let r=i?this.to:this.from;for(let o=s,l=r.length;;){if(o==l)return o;let a=o+l>>1,h=r[a]-t||(i?this.value[a].endSide:this.value[a].startSide)-e;if(a==o)return h>=0?o:l;h>=0?l=a:o=a+1;}}between(t,e,i,s){for(let r=this.findIndex(e,-1e9,true),o=this.findIndex(i,1e9,false,r);rd||u==d&&h.startSide>0&&h.endSide<=0)continue;(d-u||h.endSide-h.startSide)<0||(o<0&&(o=u),h.point&&(l=Math.max(l,d-u)),i.push(h),s.push(u-o),r.push(d-o));}return {mapped:i.length?new mn(s,r,i,l):null,pos:o}}}class L{constructor(t,e,i,s){this.chunkPos=t,this.chunk=e,this.nextLayer=i,this.maxPoint=s;}static create(t,e,i,s){return new L(t,e,i,s)}get length(){let t=this.chunk.length-1;return t<0?0:Math.max(this.chunkEnd(t),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let t=this.nextLayer.size;for(let e of this.chunk)t+=e.value.length;return t}chunkEnd(t){return this.chunkPos[t]+this.chunk[t].length}update(t){let{add:e=[],sort:i=false,filterFrom:s=0,filterTo:r=this.length}=t,o=t.filter;if(e.length==0&&!o)return this;if(i&&(e=e.slice().sort(Is)),this.isEmpty)return e.length?L.of(e):this;let l=new wo(this,null,-1).goto(0),a=0,h=[],f=new ae;for(;l.value||a=0){let c=e[a++];f.addInner(c.from,c.to,c.value)||h.push(c);}else l.rangeIndex==1&&l.chunkIndexthis.chunkEnd(l.chunkIndex)||rl.to||r=r&&t<=r+o.length&&o.between(r,t-r,e-r,i)===false)return}this.nextLayer.between(t,e,i);}}iter(t=0){return $e.from([this]).goto(t)}get isEmpty(){return this.nextLayer==this}static iter(t,e=0){return $e.from(t).goto(e)}static compare(t,e,i,s,r=-1){let o=t.filter(c=>c.maxPoint>0||!c.isEmpty&&c.maxPoint>=r),l=e.filter(c=>c.maxPoint>0||!c.isEmpty&&c.maxPoint>=r),a=jn(o,l,i),h=new Be(o,a,r),f=new Be(l,a,r);i.iterGaps((c,u,d)=>$n(h,c,f,u,d,s)),i.empty&&i.length==0&&$n(h,0,f,0,0,s);}static eq(t,e,i=0,s){s==null&&(s=999999999);let r=t.filter(f=>!f.isEmpty&&e.indexOf(f)<0),o=e.filter(f=>!f.isEmpty&&t.indexOf(f)<0);if(r.length!=o.length)return false;if(!r.length)return true;let l=jn(r,o),a=new Be(r,l,0).goto(i),h=new Be(o,l,0).goto(i);for(;;){if(a.to!=h.to||!Ns(a.active,h.active)||a.point&&(!h.point||!gn(a.point,h.point)))return false;if(a.to>s)return true;a.next(),h.next();}}static spans(t,e,i,s,r=-1){let o=new Be(t,null,r).goto(e),l=e,a=o.openStart;for(;;){let h=Math.min(o.to,i);if(o.point){let f=o.activeForPoint(o.to),c=o.pointFroml&&(s.span(l,h,o.active,a),a=o.openEnd(h));if(o.to>i)return a+(o.point&&o.to>i?1:0);l=o.to,o.next();}}static of(t,e=false){let i=new ae;for(let s of t instanceof Ls?[t]:e?ha(t):t)i.add(s.from,s.to,s.value);return i.finish()}static join(t){if(!t.length)return L.empty;let e=t[t.length-1];for(let i=t.length-2;i>=0;i--)for(let s=t[i];s!=L.empty;s=s.nextLayer)e=new L(s.chunkPos,s.chunk,e,Math.max(s.maxPoint,e.maxPoint));return e}}L.empty=new L([],[],null,-1);function ha(n){if(n.length>1)for(let t=n[0],e=1;e0)return n.slice().sort(Is);t=i;}return n}L.empty.nextLayer=L.empty;class ae{finishChunk(t){this.chunks.push(new mn(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,t&&(this.from=[],this.to=[],this.value=[]);}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null;}add(t,e,i){this.addInner(t,e,i)||(this.nextLayer||(this.nextLayer=new ae)).add(t,e,i);}addInner(t,e,i){let s=t-this.lastTo||i.startSide-this.last.endSide;if(s<=0&&(t-this.lastFrom||i.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return s<0?false:(this.from.length==250&&this.finishChunk(true),this.chunkStart<0&&(this.chunkStart=t),this.from.push(t-this.chunkStart),this.to.push(e-this.chunkStart),this.last=i,this.lastFrom=t,this.lastTo=e,this.value.push(i),i.point&&(this.maxPoint=Math.max(this.maxPoint,e-t)),true)}addChunk(t,e){if((t-this.lastTo||e.value[0].startSide-this.last.endSide)<0)return false;this.from.length&&this.finishChunk(true),this.setMaxPoint=Math.max(this.setMaxPoint,e.maxPoint),this.chunks.push(e),this.chunkPos.push(t);let i=e.value.length-1;return this.last=e.value[i],this.lastFrom=e.from[i]+t,this.lastTo=e.to[i]+t,true}finish(){return this.finishInner(L.empty)}finishInner(t){if(this.from.length&&this.finishChunk(false),this.chunks.length==0)return t;let e=L.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(t):t,this.setMaxPoint);return this.from=null,e}}function jn(n,t,e){let i=new Map;for(let r of n)for(let o=0;o=this.minPoint)break}}setRangeIndex(t){if(t==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=i&&s.push(new wo(o,e,i,r));return s.length==1?s[0]:new $e(s)}get startSide(){return this.value?this.value.startSide:0}goto(t,e=-1e9){for(let i of this.heap)i.goto(t,e);for(let i=this.heap.length>>1;i>=0;i--)ss(this.heap,i);return this.next(),this}forward(t,e){for(let i of this.heap)i.forward(t,e);for(let i=this.heap.length>>1;i>=0;i--)ss(this.heap,i);(this.to-t||this.value.endSide-e)<0&&this.next();}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else {let t=this.heap[0];this.from=t.from,this.to=t.to,this.value=t.value,this.rank=t.rank,t.value&&t.next(),ss(this.heap,0);}}}function ss(n,t){for(let e=n[t];;){let i=(t<<1)+1;if(i>=n.length)break;let s=n[i];if(i+1=0&&(s=n[i+1],i++),e.compare(s)<0)break;n[i]=e,n[t]=s,t=i;}}class Be{constructor(t,e,i){this.minPoint=i,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=$e.from(t,e,i);}goto(t,e=-1e9){return this.cursor.goto(t,e),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=t,this.endSide=e,this.openStart=-1,this.next(),this}forward(t,e){for(;this.minActive>-1&&(this.activeTo[this.minActive]-t||this.active[this.minActive].endSide-e)<0;)this.removeActive(this.minActive);this.cursor.forward(t,e);}removeActive(t){li(this.active,t),li(this.activeTo,t),li(this.activeRank,t),this.minActive=Un(this.active,this.activeTo);}addActive(t){let e=0,{value:i,to:s,rank:r}=this.cursor;for(;e0;)e++;ai(this.active,e,i),ai(this.activeTo,e,s),ai(this.activeRank,e,r),t&&ai(t,e,this.cursor.from),this.minActive=Un(this.active,this.activeTo);}next(){let t=this.to,e=this.point;this.point=null;let i=this.openStart<0?[]:null;for(;;){let s=this.minActive;if(s>-1&&(this.activeTo[s]-this.cursor.from||this.active[s].endSide-this.cursor.startSide)<0){if(this.activeTo[s]>t){this.to=this.activeTo[s],this.endSide=this.active[s].endSide;break}this.removeActive(s),i&&li(i,s);}else if(this.cursor.value)if(this.cursor.from>t){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else {let r=this.cursor.value;if(!r.point)this.addActive(i),this.cursor.next();else if(e&&this.cursor.to==this.to&&this.cursor.from=0&&i[s]=0&&!(this.activeRank[i]t||this.activeTo[i]==t&&this.active[i].endSide>=this.point.endSide)&&e.push(this.active[i]);return e.reverse()}openEnd(t){let e=0;for(let i=this.activeTo.length-1;i>=0&&this.activeTo[i]>t;i--)e++;return e}}function $n(n,t,e,i,s,r){n.goto(t),e.goto(i);let o=i+s,l=i,a=i-t,h=!!r.boundChange;for(let f=false;;){let c=n.to+a-e.to,u=c||n.endSide-e.endSide,d=u<0?n.to+a:e.to,p=Math.min(d,o);if(n.point||e.point?(n.point&&e.point&&gn(n.point,e.point)&&Ns(n.activeForPoint(n.to),e.activeForPoint(e.to))||r.comparePoint(l,p,n.point,e.point),f=false):(f&&r.boundChange(l),p>l&&!Ns(n.active,e.active)&&r.compareRange(l,p,n.active,e.active),h&&po)break;l=d,u<=0&&n.next(),u>=0&&e.next();}}function Ns(n,t){if(n.length!=t.length)return false;for(let e=0;e=t;i--)n[i+1]=n[i];n[t]=e;}function Un(n,t){let e=-1,i=1e9;for(let s=0;s=t)return s;if(s==n.length)break;r+=n.charCodeAt(s)==9?e-r%e:1,s=mt(n,s);}return i===true?-1:n.length}const Ws="ͼ",_n=typeof Symbol>"u"?"__"+Ws:Symbol.for(Ws),Vs=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),Gn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class Gt{constructor(t,e){this.rules=[];let{finish:i}=e||{};function s(o){return /^@/.test(o)?[o]:o.split(/,\s*/)}function r(o,l,a,h){let f=[],c=/^@(\w+)\b/.exec(o[0]),u=c&&c[1]=="keyframes";if(c&&l==null)return a.push(o[0]+";");for(let d in l){let p=l[d];if(/&/.test(d))r(d.split(/,\s*/).map(g=>o.map(m=>g.replace(/&/,m))).reduce((g,m)=>g.concat(m)),p,a);else if(p&&typeof p=="object"){if(!c)throw new RangeError("The value of a property ("+d+") should be a primitive value.");r(s(d),p,f,u);}else p!=null&&f.push(d.replace(/_.*/,"").replace(/[A-Z]/g,g=>"-"+g.toLowerCase())+": "+p+";");}(f.length||u)&&a.push((i&&!c&&!h?o.map(i):o).join(", ")+" {"+f.join(" ")+"}");}for(let o in t)r(s(o),t[o],this.rules);}getRules(){return this.rules.join(` +`)}static newName(){let t=Gn[_n]||1;return Gn[_n]=t+1,Ws+t.toString(36)}static mount(t,e,i){let s=t[Vs],r=i&&i.nonce;s?r&&s.setNonce(r):s=new fa(t,r),s.mount(Array.isArray(e)?e:[e],t);}}let Yn=new Map;class fa{constructor(t,e){let i=t.ownerDocument||t,s=i.defaultView;if(!t.head&&t.adoptedStyleSheets&&s.CSSStyleSheet){let r=Yn.get(i);if(r)return t[Vs]=r;this.sheet=new s.CSSStyleSheet,Yn.set(i,this);}else this.styleTag=i.createElement("style"),e&&this.styleTag.setAttribute("nonce",e);this.modules=[],t[Vs]=this;}mount(t,e){let i=this.sheet,s=0,r=0;for(let o=0;o-1&&(this.modules.splice(a,1),r--,a=-1),a==-1){if(this.modules.splice(r++,0,l),i)for(let h=0;h",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},ca=typeof navigator<"u"&&/Mac/.test(navigator.platform),ua=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var tt=0;tt<10;tt++)Yt[48+tt]=Yt[96+tt]=String(tt);for(var tt=1;tt<=24;tt++)Yt[tt+111]="F"+tt;for(var tt=65;tt<=90;tt++)Yt[tt]=String.fromCharCode(tt+32),Ue[tt]=String.fromCharCode(tt);for(var ns in Yt)Ue.hasOwnProperty(ns)||(Ue[ns]=Yt[ns]);function da(n){var t=ca&&n.metaKey&&n.shiftKey&&!n.ctrlKey&&!n.altKey||ua&&n.shiftKey&&n.key&&n.key.length==1||n.key=="Unidentified",e=!t&&n.key||(n.shiftKey?Ue:Yt)[n.keyCode]||n.key||"Unidentified";return e=="Esc"&&(e="Escape"),e=="Del"&&(e="Delete"),e=="Left"&&(e="ArrowLeft"),e=="Up"&&(e="ArrowUp"),e=="Right"&&(e="ArrowRight"),e=="Down"&&(e="ArrowDown"),e}let ot=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},Fs=typeof document<"u"?document:{documentElement:{style:{}}};const zs=/Edge\/(\d+)/.exec(ot.userAgent),xo=/MSIE \d/.test(ot.userAgent),qs=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ot.userAgent),Gi=!!(xo||qs||zs),Xn=!Gi&&/gecko\/(\d+)/i.test(ot.userAgent),rs=!Gi&&/Chrome\/(\d+)/.exec(ot.userAgent),pa="webkitFontSmoothing"in Fs.documentElement.style,Ks=!Gi&&/Apple Computer/.test(ot.vendor),Jn=Ks&&(/Mobile\/\w+/.test(ot.userAgent)||ot.maxTouchPoints>2);var S={mac:Jn||/Mac/.test(ot.platform),windows:/Win/.test(ot.platform),linux:/Linux|X11/.test(ot.platform),ie:Gi,ie_version:xo?Fs.documentMode||6:qs?+qs[1]:zs?+zs[1]:0,gecko:Xn,gecko_version:Xn?+(/Firefox\/(\d+)/.exec(ot.userAgent)||[0,0])[1]:0,chrome:!!rs,chrome_version:rs?+rs[1]:0,ios:Jn,android:/Android\b/.test(ot.userAgent),webkit_version:pa?+(/\bAppleWebKit\/(\d+)/.exec(ot.userAgent)||[0,0])[1]:0,safari:Ks,safari_version:Ks?+(/\bVersion\/(\d+(\.\d+)?)/.exec(ot.userAgent)||[0,0])[1]:0,tabSize:Fs.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};function yn(n,t){for(let e in n)e=="class"&&t.class?t.class+=" "+n.class:e=="style"&&t.style?t.style+=";"+n.style:t[e]=n[e];return t}const Pi=Object.create(null);function wn(n,t,e){if(n==t)return true;n||(n=Pi),t||(t=Pi);let i=Object.keys(n),s=Object.keys(t);if(i.length-0!=s.length-0)return false;for(let r of i)if(r!=e&&(s.indexOf(r)==-1||n[r]!==t[r]))return false;return true}function ga(n,t){for(let e=n.attributes.length-1;e>=0;e--){let i=n.attributes[e].name;t[i]==null&&n.removeAttribute(i);}for(let e in t){let i=t[e];e=="style"?n.style.cssText=i:n.getAttribute(e)!=i&&n.setAttribute(e,i);}}function Qn(n,t,e){let i=false;if(t)for(let s in t)e&&s in e||(i=true,s=="style"?n.style.cssText="":n.removeAttribute(s));if(e)for(let s in e)t&&t[s]==e[s]||(i=true,s=="style"?n.style.cssText=e[s]:n.setAttribute(s,e[s]));return i}function ma(n){let t=Object.create(null);for(let e=0;e0?3e8:-4e8:e>0?1e8:-1e8,new he(t,e,e,i,t.widget||null,false)}static replace(t){let e=!!t.block,i,s;if(t.isBlockGap)i=-5e8,s=4e8;else {let{start:r,end:o}=ko(t,e);i=(r?e?-3e8:-1:5e8)-1,s=(o?e?2e8:1:-6e8)+1;}return new he(t,i,s,e,t.widget||null,true)}static line(t){return new ei(t)}static set(t,e=false){return L.of(t,e)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:false}}F.none=L.empty;class ti extends F{constructor(t){let{start:e,end:i}=ko(t);super(e?-1:5e8,i?1:-6e8,null,t),this.tagName=t.tagName||"span",this.attrs=t.class&&t.attributes?yn(t.attributes,{class:t.class}):t.class?{class:t.class}:t.attributes||Pi;}eq(t){return this==t||t instanceof ti&&this.tagName==t.tagName&&wn(this.attrs,t.attrs)}range(t,e=t){if(t>=e)throw new RangeError("Mark decorations may not be empty");return super.range(t,e)}}ti.prototype.point=false;class ei extends F{constructor(t){super(-2e8,-2e8,null,t);}eq(t){return t instanceof ei&&this.spec.class==t.spec.class&&wn(this.spec.attributes,t.spec.attributes)}range(t,e=t){if(e!=t)throw new RangeError("Line decoration ranges must be zero-length");return super.range(t,e)}}ei.prototype.mapMode=at.TrackBefore;ei.prototype.point=true;class he extends F{constructor(t,e,i,s,r,o){super(e,i,r,t),this.block=s,this.isReplace=o,this.mapMode=s?e<=0?at.TrackBefore:at.TrackAfter:at.TrackDel;}get type(){return this.startSide!=this.endSide?et.WidgetRange:this.startSide<=0?et.WidgetBefore:et.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(t){return t instanceof he&&ba(this.widget,t.widget)&&this.block==t.block&&this.startSide==t.startSide&&this.endSide==t.endSide}range(t,e=t){if(this.isReplace&&(t>e||t==e&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&e!=t)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(t,e)}}he.prototype.point=true;function ko(n,t=false){let{inclusiveStart:e,inclusiveEnd:i}=n;return e==null&&(e=n.inclusive),i==null&&(i=n.inclusive),{start:e??t,end:i??t}}function ba(n,t){return n==t||!!(n&&t&&n.compare(t))}function ye(n,t,e,i=0){let s=e.length-1;s>=0&&e[s]+i>=n?e[s]=Math.max(e[s],t):e.push(n,t);}class _e extends le{constructor(t,e){super(),this.tagName=t,this.attributes=e;}eq(t){return t==this||t instanceof _e&&this.tagName==t.tagName&&wn(this.attributes,t.attributes)}static create(t){return new _e(t.tagName,t.attributes||Pi)}static set(t,e=false){return L.of(t,e)}}_e.prototype.startSide=_e.prototype.endSide=-1;function ve(n){let t;return n.nodeType==11?t=n.getSelection?n:n.ownerDocument:t=n,t.getSelection()}function js(n,t){return t?n==t||n.contains(t.nodeType!=1?t.parentNode:t):false}function We(n,t){if(!t.anchorNode)return false;try{return js(n,t.anchorNode)}catch{return false}}function Ve(n){return n.nodeType==3?Ye(n,0,n.nodeValue.length).getClientRects():n.nodeType==1?n.getClientRects():[]}function Fe(n,t,e,i){return e?Zn(n,t,e,i,-1)||Zn(n,t,e,i,1):false}function Xt(n){for(var t=0;;t++)if(n=n.previousSibling,!n)return t}function Ri(n){return n.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(n.nodeName)}function Zn(n,t,e,i,s){for(;;){if(n==e&&t==i)return true;if(t==(s<0?0:Vt(n))){if(n.nodeName=="DIV")return false;let r=n.parentNode;if(!r||r.nodeType!=1)return false;t=Xt(n)+(s<0?0:1),n=r;}else if(n.nodeType==1){if(n=n.childNodes[t+(s<0?-1:0)],n.nodeType==1&&n.contentEditable=="false")return false;t=s<0?Vt(n):0;}else return false}}function Vt(n){return n.nodeType==3?n.nodeValue.length:n.childNodes.length}function Ge(n,t){let e=t?n.left:n.right;return {left:e,right:e,top:n.top,bottom:n.bottom}}function ya(n){let t=n.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:n.innerWidth,top:0,bottom:n.innerHeight}}function vo(n,t){let e=t.width/n.offsetWidth,i=t.height/n.offsetHeight;return (e>.995&&e<1.005||!isFinite(e)||Math.abs(t.width-n.offsetWidth)<1)&&(e=1),(i>.995&&i<1.005||!isFinite(i)||Math.abs(t.height-n.offsetHeight)<1)&&(i=1),{scaleX:e,scaleY:i}}function wa(n,t,e,i,s,r,o,l){let a=n.ownerDocument,h=a.defaultView||window;for(let f=n,c=false;f&&!c;)if(f.nodeType==1){let u,d=f==a.body,p=1,g=1;if(d)u=ya(h);else {if(/^(fixed|sticky)$/.test(getComputedStyle(f).position)&&(c=true),f.scrollHeight<=f.clientHeight&&f.scrollWidth<=f.clientWidth){f=f.assignedSlot||f.parentNode;continue}let M=f.getBoundingClientRect();(({scaleX:p,scaleY:g}=vo(f,M))),u={left:M.left,right:M.left+f.clientWidth*p,top:M.top,bottom:M.top+f.clientHeight*g};}let m=0,b=0;if(s=="nearest")t.top0&&t.bottom>u.bottom+b&&(b=t.bottom-u.bottom+o)):t.bottom>u.bottom&&(b=t.bottom-u.bottom+o,e<0&&t.top-b0&&t.right>u.right+m&&(m=t.right-u.right+r)):t.right>u.right&&(m=t.right-u.right+r,e<0&&t.leftu.bottom||t.leftu.right)&&(t={left:Math.max(t.left,u.left),right:Math.min(t.right,u.right),top:Math.max(t.top,u.top),bottom:Math.min(t.bottom,u.bottom)}),f=f.assignedSlot||f.parentNode;}else if(f.nodeType==11)f=f.host;else break}function xa(n){let t=n.ownerDocument,e,i;for(let s=n.parentNode;s&&!(s==t.body||e&&i);)if(s.nodeType==1)!i&&s.scrollHeight>s.clientHeight&&(i=s),!e&&s.scrollWidth>s.clientWidth&&(e=s),s=s.assignedSlot||s.parentNode;else if(s.nodeType==11)s=s.host;else break;return {x:e,y:i}}class ka{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0;}eq(t){return this.anchorNode==t.anchorNode&&this.anchorOffset==t.anchorOffset&&this.focusNode==t.focusNode&&this.focusOffset==t.focusOffset}setRange(t){let{anchorNode:e,focusNode:i}=t;this.set(e,Math.min(t.anchorOffset,e?Vt(e):0),i,Math.min(t.focusOffset,i?Vt(i):0));}set(t,e,i,s){this.anchorNode=t,this.anchorOffset=e,this.focusNode=i,this.focusOffset=s;}}let ie=null;S.safari&&S.safari_version>=26&&(ie=false);function So(n){if(n.setActive)return n.setActive();if(ie)return n.focus(ie);let t=[];for(let e=n;e&&(t.push(e,e.scrollTop,e.scrollLeft),e!=e.ownerDocument);e=e.parentNode);if(n.focus(ie==null?{get preventScroll(){return ie={preventScroll:true},true}}:void 0),!ie){ie=false;for(let e=0;eMath.max(1,n.scrollHeight-n.clientHeight-4)}function Ao(n,t){for(let e=n,i=t;;){if(e.nodeType==3&&i>0)return {node:e,offset:i};if(e.nodeType==1&&i>0){if(e.contentEditable=="false")return null;e=e.childNodes[i-1],i=Vt(e);}else if(e.parentNode&&!Ri(e))i=Xt(e),e=e.parentNode;else return null}}function Mo(n,t){for(let e=n,i=t;;){if(e.nodeType==3&&i=e){if(l.level==i)return o;(r<0||(s!=0?s<0?l.frome:t[r].level>l.level))&&(r=o);}}if(r<0)throw new RangeError("Index out of range");return r}}function Do(n,t){if(n.length!=t.length)return false;for(let e=0;e=0;g-=3)if(Tt[g+1]==-d){let m=Tt[g+2],b=m&2?s:m&4?m&1?r:s:0;b&&(q[c]=q[Tt[g]]=b),l=g;break}}else {if(Tt.length==189)break;Tt[l++]=c,Tt[l++]=u,Tt[l++]=a;}else if((p=q[c])==2||p==1){let g=p==s;a=g?0:1;for(let m=l-3;m>=0;m-=3){let b=Tt[m+2];if(b&2)break;if(g)Tt[m+2]|=2;else {if(b&4)break;Tt[m+2]|=4;}}}}}function Da(n,t,e,i){for(let s=0,r=i;s<=e.length;s++){let o=s?e[s-1].to:n,l=sa;)p==m&&(p=e[--g].from,m=g?e[g-1].to:n),q[--p]=d;a=f;}else r=h,a++;}}}function Us(n,t,e,i,s,r,o){let l=i%2?2:1;if(i%2==s%2)for(let a=t,h=0;aa&&o.push(new Ht(a,g.from,d));let m=g.direction==fe!=!(d%2);_s(n,m?i+1:i,s,g.inner,g.from,g.to,o),a=g.to;}p=g.to;}else {if(p==e||(f?q[p]!=l:q[p]==l))break;p++;}u?Us(n,a,p,i+1,s,u,o):at;){let f=true,c=false;if(!h||a>r[h-1].to){let g=q[a-1];g!=l&&(f=false,c=g==16);}let u=!f&&l==1?[]:null,d=f?i:i+1,p=a;t:for(;;)if(h&&p==r[h-1].to){if(c)break t;let g=r[--h];if(!f)for(let m=g.from,b=h;;){if(m==t)break t;if(b&&r[b-1].to==m)m=r[--b].from;else {if(q[m-1]==l)break t;break}}if(u)u.push(g);else {g.toq.length;)q[q.length]=256;let i=[],s=t==fe?0:1;return _s(n,s,s,e,0,n.length,i),i}function Bo(n){return [new Ht(0,n,0)]}let Eo="";function Ea(n,t,e,i,s){var r;let o=i.head-n.from,l=Ht.find(t,o,(r=i.bidiLevel)!==null&&r!==void 0?r:-1,i.assoc),a=t[l],h=a.side(s,e);if(o==h){let u=l+=s?1:-1;if(u<0||u>=t.length)return null;a=t[l=u],o=a.side(!s,e),h=a.side(s,e);}let f=mt(n.text,o,a.forward(s,e));(fa.to)&&(f=h),Eo=n.text.slice(Math.min(o,f),Math.max(o,f));let c=l==(s?t.length-1:0)?null:t[l+(s?1:-1)];return c&&f==h&&c.level+(s?0:1)n.some(t=>t)}),Vo=A.define({combine:n=>n.some(t=>t)}),Fo=A.define();class xe{constructor(t,e="nearest",i="nearest",s=5,r=5,o=false){this.range=t,this.y=e,this.x=i,this.yMargin=s,this.xMargin=r,this.isSnapshot=o;}map(t){return t.empty?this:new xe(this.range.map(t),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(t){return this.range.to<=t.doc.length?this:new xe(C.cursor(t.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const hi=U.define({map:(n,t)=>n.map(t)}),zo=U.define();function vt(n,t,e){let i=n.facet(Io);i.length?i[0](t):window.onerror&&window.onerror(String(t),e,void 0,void 0,t)||(e?console.error(e+":",t):console.error(t));}const It=A.define({combine:n=>n.length?n[0]:true});let Ra=0;const pe=A.define({combine(n){return n.filter((t,e)=>{for(let i=0;i{let a=[];return o&&a.push(Yi.of(h=>{let f=h.plugin(l);return f?o(f):F.none})),r&&a.push(r(l)),a})}static fromClass(t,e){return nt.define((i,s)=>new t(i,s),e)}}class os{constructor(t){this.spec=t,this.mustUpdate=null,this.value=null;}get plugin(){return this.spec&&this.spec.plugin}update(t){if(this.value){if(this.mustUpdate){let e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e);}catch(i){if(vt(e.state,i,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy();}catch{}this.deactivate();}}}else if(this.spec)try{this.value=this.spec.plugin.create(t,this.spec.arg);}catch(e){vt(t.state,e,"CodeMirror plugin crashed"),this.deactivate();}return this}destroy(t){var e;if(!((e=this.value)===null||e===void 0)&&e.destroy)try{this.value.destroy();}catch(i){vt(t.state,i,"CodeMirror plugin crashed");}}deactivate(){this.spec=this.value=null;}}const qo=A.define(),Sn=A.define(),Yi=A.define(),Ko=A.define(),Cn=A.define(),ii=A.define(),jo=A.define();function er(n,t){let e=n.state.facet(jo);if(!e.length)return e;let i=e.map(r=>r instanceof Function?r(n):r),s=[];return L.spans(i,t.from,t.to,{point(){},span(r,o,l,a){let h=r-t.from,f=o-t.from,c=s;for(let u=l.length-1;u>=0;u--,a--){let d=l[u].spec.bidiIsolate,p;if(d==null&&(d=Pa(t.text,h,f)),a>0&&c.length&&(p=c[c.length-1]).to==h&&p.direction==d)p.to=f,c=p.inner;else {let g={from:h,to:f,direction:d,inner:[]};c.push(g),c=g.inner;}}}}),s}const $o=A.define();function An(n){let t=0,e=0,i=0,s=0;for(let r of n.state.facet($o)){let o=r(n);o&&(o.left!=null&&(t=Math.max(t,o.left)),o.right!=null&&(e=Math.max(e,o.right)),o.top!=null&&(i=Math.max(i,o.top)),o.bottom!=null&&(s=Math.max(s,o.bottom)));}return {left:t,right:e,top:i,bottom:s}}const Re=A.define();class bt{constructor(t,e,i,s){this.fromA=t,this.toA=e,this.fromB=i,this.toB=s;}join(t){return new bt(Math.min(this.fromA,t.fromA),Math.max(this.toA,t.toA),Math.min(this.fromB,t.fromB),Math.max(this.toB,t.toB))}addToSet(t){let e=t.length,i=this;for(;e>0;e--){let s=t[e-1];if(!(s.fromA>i.toA)){if(s.toAs.push(new bt(r,o,l,a))),this.changedRanges=s;}static create(t,e,i){return new Li(t,e,i)}get viewportChanged(){return (this.flags&4)>0}get viewportMoved(){return (this.flags&8)>0}get heightChanged(){return (this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&18)>0}get focusChanged(){return (this.flags&1)>0}get docChanged(){return !this.changes.empty}get selectionSet(){return this.transactions.some(t=>t.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}const La=[];class X{constructor(t,e,i=0){this.dom=t,this.length=e,this.flags=i,this.parent=null,t.cmTile=this;}get breakAfter(){return this.flags&1}get children(){return La}isWidget(){return false}get isHidden(){return false}isComposite(){return false}isLine(){return false}isText(){return false}isBlock(){return false}get domAttrs(){return null}sync(t){if(this.flags|=2,this.flags&4){this.flags&=-5;let e=this.domAttrs;e&&ga(this.dom,e);}}toString(){return this.constructor.name+(this.children.length?`(${this.children})`:"")+(this.breakAfter?"#":"")}destroy(){this.parent=null;}setDOM(t){this.dom=t,t.cmTile=this;}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(t,e=this.posAtStart){let i=e;for(let s of this.children){if(s==t)return i;i+=s.length+s.breakAfter;}throw new RangeError("Invalid child in posBefore")}posAfter(t){return this.posBefore(t)+t.length}covers(t){return true}coordsIn(t,e){return null}domPosFor(t,e){let i=Xt(this.dom),s=this.length?t>0:e>0;return new kt(this.parent.dom,i+(s?1:0),t==0||t==this.length)}markDirty(t){this.flags&=-3,t&&(this.flags|=4),this.parent&&this.parent.flags&2&&this.parent.markDirty(false);}get overrideDOMText(){return null}get root(){for(let t=this;t;t=t.parent)if(t instanceof Ji)return t;return null}static get(t){return t.cmTile}}class Xi extends X{constructor(t){super(t,0),this._children=[];}isComposite(){return true}get children(){return this._children}get lastChild(){return this.children.length?this.children[this.children.length-1]:null}append(t){this.children.push(t),t.parent=this;}sync(t){if(this.flags&2)return;super.sync(t);let e=this.dom,i=null,s,r=t?.node==e?t:null,o=0;for(let l of this.children){if(l.sync(t),o+=l.length+l.breakAfter,s=i?i.nextSibling:e.firstChild,r&&s!=l.dom&&(r.written=true),l.dom.parentNode==e)for(;s&&s!=l.dom;)s=ir(s);else e.insertBefore(l.dom,s);i=l.dom;}for(s=i?i.nextSibling:e.firstChild,r&&s&&(r.written=true);s;)s=ir(s);this.length=o;}}function ir(n){let t=n.nextSibling;return n.parentNode.removeChild(n),t}class Ji extends Xi{constructor(t,e){super(e),this.view=t;}owns(t){for(;t;t=t.parent)if(t==this)return true;return false}isBlock(){return true}nearest(t){for(;;){if(!t)return null;let e=X.get(t);if(e&&this.owns(e))return e;t=t.parentNode;}}blockTiles(t){for(let e=[],i=this,s=0,r=0;;)if(s==i.children.length){if(!e.length)return;i=i.parent,i.breakAfter&&r++,s=e.pop();}else {let o=i.children[s++];if(o instanceof _t)e.push(s),i=o,s=0;else {let l=r+o.length,a=t(o,r);if(a!==void 0)return a;r=l+o.breakAfter;}}}resolveBlock(t,e){let i,s=-1,r,o=-1;if(this.blockTiles((l,a)=>{let h=a+l.length;if(t>=a&&t<=h){if(l.isWidget()&&e>=-1&&e<=1){if(l.flags&32)return true;l.flags&16&&(i=void 0);}(at||t==a&&(e>1?l.length:l.covers(-1)))&&(!r||!l.isWidget()&&r.isWidget())&&(r=l,o=t-a);}}),!i&&!r)throw new Error("No tile at position "+t);return i&&e<0||!r?{tile:i,offset:s}:{tile:r,offset:o}}}class _t extends Xi{constructor(t,e){super(t),this.wrapper=e;}isBlock(){return true}covers(t){return this.children.length?t<0?this.children[0].covers(-1):this.lastChild.covers(1):false}get domAttrs(){return this.wrapper.attributes}static of(t,e){let i=new _t(e||document.createElement(t.tagName),t);return e||(i.flags|=4),i}}class Se extends Xi{constructor(t,e){super(t),this.attrs=e;}isLine(){return true}static start(t,e,i){let s=new Se(e||document.createElement("div"),t);return (!e||!i)&&(s.flags|=4),s}get domAttrs(){return this.attrs}resolveInline(t,e,i){let s=null,r=-1,o=null,l=-1;function a(f,c){for(let u=0,d=0;u=c&&(p.isComposite()?a(p,c-d):(!o||o.isHidden&&(e>0||i&&Na(o,p)))&&(g>c||p.flags&32)?(o=p,l=c-d):(di&&(t=i);let s=t,r=t,o=0;t==0&&e<0||t==i&&e>=0?S.chrome||S.gecko||(t?(s--,o=1):r=0)?0:l.length-1];return S.safari&&!o&&a.width==0&&(a=Array.prototype.find.call(l,h=>h.width)||a),o?Ge(a,o<0):a||null}static of(t,e){let i=new re(e||document.createTextNode(t),t);return e||(i.flags|=2),i}}class ce extends X{constructor(t,e,i,s){super(t,e,s),this.widget=i;}isWidget(){return true}get isHidden(){return this.widget.isHidden}covers(t){return this.flags&48?false:(this.flags&(t<0?64:128))>0}coordsIn(t,e){return this.coordsInWidget(t,e,false)}coordsInWidget(t,e,i){let s=this.widget.coordsAt(this.dom,t,e);if(s)return s;if(i)return Ge(this.dom.getBoundingClientRect(),this.length?t==0:e<=0);{let r=this.dom.getClientRects(),o=null;if(!r.length)return null;let l=this.flags&16?true:this.flags&32?false:t>0;for(let a=l?r.length-1:0;o=r[a],!(t>0?a==0:a==r.length-1||o.top0;)if(s.isComposite())if(o){if(!t)break;i&&i.break(),t--,o=false;}else if(r==s.children.length){if(!t&&!l.length)break;i&&i.leave(s),o=!!s.breakAfter,{tile:s,index:r}=l.pop(),r++;}else {let a=s.children[r],h=a.breakAfter;(e>0?a.length<=t:a.length=0;l--){let a=e.marks[l],h=s.lastChild;if(h instanceof ht&&h.mark.eq(a.mark))h.dom!=a.dom&&h.setDOM(ls(a.dom)),s=h;else {if(this.cache.reused.get(a)){let c=X.get(a.dom);c&&c.setDOM(ls(a.dom));}let f=ht.of(a.mark,a.dom);s.append(f),s=f;}this.cache.reused.set(a,2);}let r=X.get(t.text);r&&this.cache.reused.set(r,2);let o=new re(t.text,t.text.nodeValue);o.flags|=8,s.append(o);}addInlineWidget(t,e,i){let s=this.afterWidget&&t.flags&48&&(this.afterWidget.flags&48)==(t.flags&48);s||this.flushBuffer();let r=this.ensureMarks(e,i);!s&&!(t.flags&16)&&r.append(this.getBuffer(1)),r.append(t),this.pos+=t.length,this.afterWidget=t;}addMark(t,e,i){this.flushBuffer(),this.ensureMarks(e,i).append(t),this.pos+=t.length,this.afterWidget=null;}addBlockWidget(t){this.getBlockPos().append(t),this.pos+=t.length,this.lastBlock=t,this.endLine();}continueWidget(t){let e=this.afterWidget||this.lastBlock;e.length+=t,this.pos+=t;}addLineStart(t,e){var i;t||(t=Uo);let s=Se.start(t,e||((i=this.cache.find(Se))===null||i===void 0?void 0:i.dom),!!e);this.getBlockPos().append(this.lastBlock=this.curLine=s);}addLine(t){this.getBlockPos().append(t),this.pos+=t.length,this.lastBlock=t,this.endLine();}addBreak(){this.lastBlock.flags|=1,this.endLine(),this.pos++;}addLineStartIfNotCovered(t){this.blockPosCovered()||this.addLineStart(t);}ensureLine(t){this.curLine||this.addLineStart(t);}ensureMarks(t,e){var i;let s=this.curLine;for(let r=t.length-1;r>=0;r--){let o=t[r],l;if(e>0&&(l=s.lastChild)&&l instanceof ht&&l.mark.eq(o))s=l,e--;else {let a=ht.of(o,(i=this.cache.find(ht,h=>h.mark.eq(o)))===null||i===void 0?void 0:i.dom);s.append(a),s=a,e=0;}}return s}endLine(){if(this.curLine){this.flushBuffer();let t=this.curLine.lastChild;(!t||!sr(this.curLine,false)||t.dom.nodeName!="BR"&&t.isWidget()&&!(S.ios&&sr(this.curLine,true)))&&this.curLine.append(this.cache.findWidget(as,0,32)||new ce(as.toDOM(),0,as,32)),this.curLine=this.afterWidget=null;}}updateBlockWrappers(){this.wrapperPos>this.pos+1e4&&(this.blockWrappers.goto(this.pos),this.wrappers.length=0);for(let t=this.wrappers.length-1;t>=0;t--)this.wrappers[t].to=this.pos){let e=new Wa(t.from,t.to,t.value,t.rank),i=this.wrappers.length;for(;i>0&&(this.wrappers[i-1].rank-e.rank||this.wrappers[i-1].to-e.to)<0;)i--;this.wrappers.splice(i,0,e);}this.wrapperPos=this.pos;}getBlockPos(){var t;this.updateBlockWrappers();let e=this.root;for(let i of this.wrappers){let s=e.lastChild;if(i.fromo.wrapper.eq(i.wrapper)))===null||t===void 0?void 0:t.dom);e.append(r),e=r;}}return e}blockPosCovered(){let t=this.lastBlock;return t!=null&&!t.breakAfter&&(!t.isWidget()||(t.flags&160)>0)}getBuffer(t){let e=2|(t<0?16:32),i=this.cache.find(Ii,void 0,1);return i&&(i.flags=e),i||new Ii(e)}flushBuffer(){this.afterWidget&&!(this.afterWidget.flags&32)&&(this.afterWidget.parent.append(this.getBuffer(-1)),this.afterWidget=null);}}class Fa{constructor(t){this.skipCount=0,this.text="",this.textOff=0,this.cursor=t.iter();}skip(t){this.textOff+t<=this.text.length?this.textOff+=t:(this.skipCount+=t-(this.text.length-this.textOff),this.text="",this.textOff=0);}next(t){if(this.textOff==this.text.length){let{value:s,lineBreak:r,done:o}=this.cursor.next(this.skipCount);if(this.skipCount=0,o)throw new Error("Ran out of text content when drawing inline views");this.text=s;let l=this.textOff=Math.min(t,s.length);return r?null:s.slice(0,l)}let e=Math.min(this.text.length,this.textOff+t),i=this.text.slice(this.textOff,e);return this.textOff=e,i}}const Ni=[ce,Se,re,ht,Ii,_t,Ji];for(let n=0;n[]),this.index=Ni.map(()=>0),this.reused=new Map;}add(t){let e=t.constructor.bucket,i=this.buckets[e];i.length<6?i.push(t):i[this.index[e]=(this.index[e]+1)%6]=t;}find(t,e,i=2){let s=t.bucket,r=this.buckets[s],o=this.index[s];for(let l=r.length-1;l>=0;l--){let a=(l+o)%r.length,h=r[a];if((!e||e(h))&&!this.reused.has(h))return r.splice(a,1),a{if(this.cache.add(o),o.isComposite())return false},enter:o=>this.cache.add(o),leave:()=>{},break:()=>{}};}run(t,e){let i=e&&this.getCompositionContext(e.text);for(let s=0,r=0,o=0;;){let l=os){let h=a-s;this.preserve(h,!o,!l),s=a,r+=h;}if(!l)break;e&&l.fromA<=e.range.fromA&&l.toA>=e.range.toA?(this.forward(l.fromA,e.range.fromA,e.range.fromA{if(o.isWidget())if(this.openWidget)this.builder.continueWidget(a-l);else {let h=a>0||l{o.isLine()?this.builder.addLineStart(o.attrs,this.cache.maybeReuse(o)):(this.cache.add(o),o instanceof ht&&s.unshift(o.mark)),this.openWidget=false;},leave:o=>{o.isLine()?s.length&&(s.length=r=0):o instanceof ht&&(s.shift(),r=Math.min(r,s.length));},break:()=>{this.builder.addBreak(),this.openWidget=false;}}),this.text.skip(t);}emit(t,e){let i=null,s=this.builder,r=0,o=L.spans(this.decorations,t,e,{point:(l,a,h,f,c,u)=>{if(h instanceof he){if(this.disallowBlockEffectsFor[u]){if(h.block)throw new RangeError("Block decorations may not be specified via plugins");if(a>this.view.state.doc.lineAt(l).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}if(r=f.length,c>f.length)s.continueWidget(a-l);else {let d=h.widget||(h.block?Ce.block:Ce.inline),p=Ka(h),g=this.cache.findWidget(d,a-l,p)||ce.of(d,this.view,a-l,p);h.block?(h.startSide>0&&s.addLineStartIfNotCovered(i),s.addBlockWidget(g)):(s.ensureLine(i),s.addInlineWidget(g,f,c));}i=null;}else i=ja(i,h);a>l&&this.text.skip(a-l);},span:(l,a,h,f)=>{for(let c=l;cr,this.openMarks=o;}forward(t,e,i=1){e-t<=10?this.old.advance(e-t,i,this.reuseWalker):(this.old.advance(5,-1,this.reuseWalker),this.old.advance(e-t-10,-1),this.old.advance(5,i,this.reuseWalker));}getCompositionContext(t){let e=[],i=null;for(let s=t.parentNode;;s=s.parentNode){let r=X.get(s);if(s==this.view.contentDOM)break;r instanceof ht?e.push(r):r?.isLine()?i=r:s.nodeName=="DIV"&&!i&&s!=this.view.contentDOM?i=new Se(s,Uo):e.push(ht.of(new ti({tagName:s.nodeName.toLowerCase(),attributes:ma(s)}),s));}return {line:i,marks:e}}}function sr(n,t){let e=i=>{for(let s of i.children)if((t?s.isText():s.length)||e(s))return true;return false};return e(n)}function Ka(n){let t=n.isReplace?(n.startSide<0?64:0)|(n.endSide>0?128:0):n.startSide>0?32:16;return n.block&&(t|=256),t}const Uo={class:"cm-line"};function ja(n,t){let e=t.spec.attributes,i=t.spec.class;return !e&&!i||(n||(n={class:"cm-line"}),e&&yn(e,n),i&&(n.class+=" "+i)),n}function $a(n){let t=[];for(let e=n.parents.length;e>1;e--){let i=e==n.parents.length?n.tile:n.parents[e].tile;i instanceof ht&&t.push(i.mark);}return t}function ls(n){let t=X.get(n);return t&&t.setDOM(n.cloneNode()),n}class Ce extends zt{constructor(t){super(),this.tag=t;}eq(t){return t.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(t){return t.nodeName.toLowerCase()==this.tag}get isHidden(){return true}}Ce.inline=new Ce("span");Ce.block=new Ce("div");const as=new class extends zt{toDOM(){return document.createElement("br")}get isHidden(){return true}get editable(){return true}};class nr{constructor(t){this.view=t,this.decorations=[],this.blockWrappers=[],this.dynamicDecorationMap=[false],this.domChanged=null,this.hasComposition=null,this.editContextFormatting=F.none,this.lastCompositionAfterCursor=false,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=false,this.lastUpdate=Date.now(),this.updateDeco(),this.tile=new Ji(t,t.contentDOM),this.updateInner([new bt(0,0,0,t.state.doc.length)],null);}update(t){var e;let i=t.changedRanges;this.minWidth>0&&i.length&&(i.every(({fromA:f,toA:c})=>cthis.minWidthTo)?(this.minWidthFrom=t.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=t.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(t);let s=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&(!((e=this.domChanged)===null||e===void 0)&&e.newSel?s=this.domChanged.newSel.head:!th(t.changes,this.hasComposition)&&!t.selectionSet&&(s=t.state.selection.main.head));let r=s>-1?_a(this.view,t.changes,s):null;if(this.domChanged=null,this.hasComposition){let{from:f,to:c}=this.hasComposition;i=new bt(f,c,t.changes.mapPos(f,-1),t.changes.mapPos(c,1)).addToSet(i.slice());}this.hasComposition=r?{from:r.range.fromB,to:r.range.toB}:null,(S.ie||S.chrome)&&!r&&t&&t.state.doc.lines!=t.startState.doc.lines&&(this.forceSelection=true);let o=this.decorations,l=this.blockWrappers;this.updateDeco();let a=Xa(o,this.decorations,t.changes);a.length&&(i=bt.extendWithRanges(i,a));let h=Qa(l,this.blockWrappers,t.changes);return h.length&&(i=bt.extendWithRanges(i,h)),r&&!i.some(f=>f.fromA<=r.range.fromA&&f.toA>=r.range.toA)&&(i=r.range.addToSet(i.slice())),this.tile.flags&2&&i.length==0?false:(this.updateInner(i,r),t.transactions.length&&(this.lastUpdate=Date.now()),true)}updateInner(t,e){this.view.viewState.mustMeasureContent=true;let{observer:i}=this.view;i.ignore(()=>{if(e||t.length){let o=this.tile,l=new qa(this.view,o,this.blockWrappers,this.decorations,this.dynamicDecorationMap);this.tile=l.run(t,e),Ys(o,l.cache.reused);}this.tile.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.tile.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let r=S.chrome||S.ios?{node:i.selectionRange.focusNode,written:false}:void 0;this.tile.sync(r),r&&(r.written||i.selectionRange.focusNode!=r.node||!this.tile.dom.contains(r.node))&&(this.forceSelection=true),this.tile.dom.style.height="";});let s=[];if(this.view.viewport.from||this.view.viewport.to-1)&&We(i,this.view.observer.selectionRange)&&!(s&&i.contains(s));if(!(r||e||o))return;let l=this.forceSelection;this.forceSelection=false;let a=this.view.state.selection.main,h,f;if(a.empty?f=h=this.inlineDOMNearPos(a.anchor,a.assoc||1):(f=this.inlineDOMNearPos(a.head,a.head==a.from?1:-1),h=this.inlineDOMNearPos(a.anchor,a.anchor==a.from?1:-1)),S.gecko&&a.empty&&!this.hasComposition&&Ua(h)){let u=document.createTextNode("");this.view.observer.ignore(()=>h.node.insertBefore(u,h.node.childNodes[h.offset]||null)),h=f=new kt(u,0),l=true;}let c=this.view.observer.selectionRange;(l||!c.focusNode||(!Fe(h.node,h.offset,c.anchorNode,c.anchorOffset)||!Fe(f.node,f.offset,c.focusNode,c.focusOffset))&&!this.suppressWidgetCursorChange(c,a))&&(this.view.observer.ignore(()=>{S.android&&S.chrome&&i.contains(c.focusNode)&&Za(c.focusNode,i)&&(i.blur(),i.focus({preventScroll:true}));let u=ve(this.view.root);if(u)if(a.empty){if(S.gecko){let d=Ga(h.node,h.offset);if(d&&d!=3){let p=(d==1?Ao:Mo)(h.node,h.offset);p&&(h=new kt(p.node,p.offset));}}u.collapse(h.node,h.offset),a.bidiLevel!=null&&u.caretBidiLevel!==void 0&&(u.caretBidiLevel=a.bidiLevel);}else if(u.extend){u.collapse(h.node,h.offset);try{u.extend(f.node,f.offset);}catch{}}else {let d=document.createRange();a.anchor>a.head&&([h,f]=[f,h]),d.setEnd(f.node,f.offset),d.setStart(h.node,h.offset),u.removeAllRanges(),u.addRange(d);}o&&this.view.root.activeElement==i&&(i.blur(),s&&s.focus());}),this.view.observer.setSelectionRange(h,f)),this.impreciseAnchor=h.precise?null:new kt(c.anchorNode,c.anchorOffset),this.impreciseHead=f.precise?null:new kt(c.focusNode,c.focusOffset);}suppressWidgetCursorChange(t,e){return this.hasComposition&&e.empty&&Fe(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)&&this.posFromDOM(t.focusNode,t.focusOffset)==e.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:t}=this,e=t.state.selection.main,i=ve(t.root),{anchorNode:s,anchorOffset:r}=t.observer.selectionRange;if(!i||!e.empty||!e.assoc||!i.modify)return;let o=this.lineAt(e.head,e.assoc);if(!o)return;let l=o.posAtStart;if(e.head==l||e.head==l+o.length)return;let a=this.coordsAt(e.head,-1),h=this.coordsAt(e.head,1);if(!a||!h||a.bottom>h.top)return;let f=this.domAtPos(e.head+e.assoc,e.assoc);i.collapse(f.node,f.offset),i.modify("move",e.assoc<0?"forward":"backward","lineboundary"),t.observer.readSelectionRange();let c=t.observer.selectionRange;t.docView.posFromDOM(c.anchorNode,c.anchorOffset)!=e.from&&i.collapse(s,r);}posFromDOM(t,e){let i=this.tile.nearest(t);if(!i)return this.tile.dom.compareDocumentPosition(t)&2?0:this.view.state.doc.length;let s=i.posAtStart;if(i.isComposite()){let r;if(t==i.dom)r=i.dom.childNodes[e];else {let o=Vt(t)==0?0:e==0?-1:1;for(;;){let l=t.parentNode;if(l==i.dom)break;o==0&&l.firstChild!=l.lastChild&&(t==l.firstChild?o=-1:o=1),t=l;}o<0?r=t:r=t.nextSibling;}if(r==i.dom.firstChild)return s;for(;r&&!X.get(r);)r=r.nextSibling;if(!r)return s+i.length;for(let o=0,l=s;;o++){let a=i.children[o];if(a.dom==r)return l;l+=a.length+a.breakAfter;}}else return i.isText()?t==i.dom?s+e:s+(e?i.length:0):s}domAtPos(t,e){let{tile:i,offset:s}=this.tile.resolveBlock(t,e);return i.isWidget()?i.domPosFor(t,e):i.domIn(s,e)}inlineDOMNearPos(t,e){let i,s=-1,r=false,o,l=-1,a=false;return this.tile.blockTiles((h,f)=>{if(h.isWidget()){if(h.flags&32&&f>=t)return true;h.flags&16&&(r=true);}else {let c=f+h.length;if(f<=t&&(i=h,s=t-f,r=c=t&&!o&&(o=h,l=t-f,a=f>t),f>t&&o)return true}}),!i&&!o?this.domAtPos(t,e):(r&&o?i=null:a&&i&&(o=null),i&&e<0||!o?i.domIn(s,e):o.domIn(l,e))}coordsAt(t,e){let{tile:i,offset:s}=this.tile.resolveBlock(t,e);return i.isWidget()?i.widget instanceof hs?null:i.coordsInWidget(s,e,true):i.coordsIn(s,e)}lineAt(t,e){let{tile:i}=this.tile.resolveBlock(t,e);return i.isLine()?i:null}coordsForChar(t){let{tile:e,offset:i}=this.tile.resolveBlock(t,1);if(!e.isLine())return null;function s(r,o){if(r.isComposite())for(let l of r.children){if(l.length>=o){let a=s(l,o);if(a)return a}if(o-=l.length,o<0)break}else if(r.isText()&&oMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,l=-1,a=this.view.textDirection==$.LTR,h=0,f=(c,u,d)=>{for(let p=0;ps);p++){let g=c.children[p],m=u+g.length,b=g.dom.getBoundingClientRect(),{height:M}=b;if(d&&!p&&(h+=b.top-d.top),g instanceof _t)m>i&&f(g,u,b);else if(u>=i&&(h>0&&e.push(-h),e.push(M+h),h=0,o)){let T=g.dom.lastChild,D=T?Ve(T):[];if(D.length){let w=D[D.length-1],v=a?w.right-b.left:b.right-w.left;v>l&&(l=v,this.minWidth=r,this.minWidthFrom=u,this.minWidthTo=m);}}d&&p==c.children.length-1&&(h+=d.bottom-b.bottom),u=m+g.breakAfter;}};return f(this.tile,0,null),e}textDirectionAt(t){let{tile:e}=this.tile.resolveBlock(t,1);return getComputedStyle(e.dom).direction=="rtl"?$.RTL:$.LTR}measureTextSize(){let t=this.tile.blockTiles(o=>{if(o.isLine()&&o.children.length&&o.length<=20){let l=0,a;for(let h of o.children){if(!h.isText()||/[^ -~]/.test(h.text))return;let f=Ve(h.dom);if(f.length!=1)return;l+=f[0].width,a=f[0].height;}if(l)return {lineHeight:o.dom.getBoundingClientRect().height,charWidth:l/o.length,textHeight:a}}});if(t)return t;let e=document.createElement("div"),i,s,r;return e.className="cm-line",e.style.width="99999px",e.style.position="absolute",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.tile.dom.appendChild(e);let o=Ve(e.firstChild)[0];i=e.getBoundingClientRect().height,s=o&&o.width?o.width/27:7,r=o&&o.height?o.height:i,e.remove();}),{lineHeight:i,charWidth:s,textHeight:r}}computeBlockGapDeco(){let t=[],e=this.view.viewState;for(let i=0,s=0;;s++){let r=s==e.viewports.length?null:e.viewports[s],o=r?r.from-1:this.view.state.doc.length;if(o>i){let l=(e.lineBlockAt(o).bottom-e.lineBlockAt(i).top)/this.view.scaleY;t.push(F.replace({widget:new hs(l),block:true,inclusive:true,isBlockGap:true}).range(i,o));}if(!r)break;i=r.to+1;}return F.set(t)}updateDeco(){let t=1,e=this.view.state.facet(Yi).map(r=>(this.dynamicDecorationMap[t++]=typeof r=="function")?r(this.view):r),i=false,s=this.view.state.facet(Cn).map((r,o)=>{let l=typeof r=="function";return l&&(i=true),l?r(this.view):r});for(s.length&&(this.dynamicDecorationMap[t++]=i,e.push(L.join(s))),this.decorations=[this.editContextFormatting,...e,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];ttypeof r=="function"?r(this.view):r);}scrollIntoView(t){if(t.isSnapshot){let h=this.view.viewState.lineBlockAt(t.range.head);this.view.scrollDOM.scrollTop=h.top-t.yMargin,this.view.scrollDOM.scrollLeft=t.xMargin;return}for(let h of this.view.state.facet(Fo))try{if(h(this.view,t.range,t))return !0}catch(f){vt(this.view.state,f,"scroll handler");}let{range:e}=t,i=this.coordsAt(e.head,e.empty?e.assoc:e.head>e.anchor?-1:1),s;if(!i)return;!e.empty&&(s=this.coordsAt(e.anchor,e.anchor>e.head?-1:1))&&(i={left:Math.min(i.left,s.left),top:Math.min(i.top,s.top),right:Math.max(i.right,s.right),bottom:Math.max(i.bottom,s.bottom)});let r=An(this.view),o={left:i.left-r.left,top:i.top-r.top,right:i.right+r.right,bottom:i.bottom+r.bottom},{offsetWidth:l,offsetHeight:a}=this.view.scrollDOM;wa(this.view.scrollDOM,o,e.headi.isWidget()||i.children.some(e);return e(this.tile.resolveBlock(t,1).tile)}destroy(){Ys(this.tile);}}function Ys(n,t){let e=t?.get(n);if(e!=1){e==null&&n.destroy();for(let i of n.children)Ys(i,t);}}function Ua(n){return n.node.nodeType==1&&n.node.firstChild&&(n.offset==0||n.node.childNodes[n.offset-1].contentEditable=="false")&&(n.offset==n.node.childNodes.length||n.node.childNodes[n.offset].contentEditable=="false")}function _o(n,t){let e=n.observer.selectionRange;if(!e.focusNode)return null;let i=Ao(e.focusNode,e.focusOffset),s=Mo(e.focusNode,e.focusOffset),r=i||s;if(s&&i&&s.node!=i.node){let l=X.get(s.node);if(!l||l.isText()&&l.text!=s.node.nodeValue)r=s;else if(n.docView.lastCompositionAfterCursor){let a=X.get(i.node);!a||a.isText()&&a.text!=i.node.nodeValue||(r=s);}}if(n.docView.lastCompositionAfterCursor=r!=i,!r)return null;let o=t-r.offset;return {from:o,to:o+r.node.nodeValue.length,node:r.node}}function _a(n,t,e){let i=_o(n,e);if(!i)return null;let{node:s,from:r,to:o}=i,l=s.nodeValue;if(/[\n\r]/.test(l)||n.state.doc.sliceString(i.from,i.to)!=l)return null;let a=t.invertedDesc;return {range:new bt(a.mapPos(r),a.mapPos(o),r,o),text:s}}function Ga(n,t){return n.nodeType!=1?0:(t&&n.childNodes[t-1].contentEditable=="false"?1:0)|(t{it.from&&(e=true);}),e}class hs extends zt{constructor(t){super(),this.height=t;}toDOM(){let t=document.createElement("div");return t.className="cm-gap",this.updateDOM(t),t}eq(t){return t.height==this.height}updateDOM(t){return t.style.height=this.height+"px",true}get editable(){return true}get estimatedHeight(){return this.height}ignoreEvent(){return false}}function eh(n,t,e=1){let i=n.charCategorizer(t),s=n.doc.lineAt(t),r=t-s.from;if(s.length==0)return C.cursor(t);r==0?e=1:r==s.length&&(e=-1);let o=r,l=r;e<0?o=mt(s.text,r,false):l=mt(s.text,r);let a=i(s.text.slice(o,l));for(;o>0;){let h=mt(s.text,o,false);if(i(s.text.slice(h,o))!=a)break;o=h;}for(;ln.defaultLineHeight*1.5){let l=n.viewState.heightOracle.textHeight,a=Math.floor((s-e.top-(n.defaultLineHeight-l)*.5)/l);r+=a*n.viewState.heightOracle.lineLength;}let o=n.state.sliceDoc(e.from,e.to);return e.from+Hs(o,r,n.state.tabSize)}function Xs(n,t,e){let i=n.lineBlockAt(t);if(Array.isArray(i.type)){let s;for(let r of i.type){if(r.from>t)break;if(!(r.tot)return r;(!s||r.type==et.Text&&(s.type!=r.type||(e<0?r.fromt)))&&(s=r);}}return s||i}return i}function sh(n,t,e,i){let s=Xs(n,t.head,t.assoc||-1),r=!i||s.type!=et.Text||!(n.lineWrapping||s.widgetLineBreaks)?null:n.coordsAtPos(t.assoc<0&&t.head>s.from?t.head-1:t.head);if(r){let o=n.dom.getBoundingClientRect(),l=n.textDirectionAt(s.from),a=n.posAtCoords({x:e==(l==$.LTR)?o.right-1:o.left+1,y:(r.top+r.bottom)/2});if(a!=null)return C.cursor(a,e?-1:1)}return C.cursor(e?s.to:s.from,e?-1:1)}function rr(n,t,e,i){let s=n.state.doc.lineAt(t.head),r=n.bidiSpans(s),o=n.textDirectionAt(s.from);for(let l=t,a=null;;){let h=Ea(s,r,o,l,e),f=Eo;if(!h){if(s.number==(e?n.state.doc.lines:1))return l;f=` +`,s=n.state.doc.line(s.number+(e?1:-1)),r=n.bidiSpans(s),h=n.visualLineSide(s,!e);}if(a){if(!a(f))return l}else {if(!i)return h;a=i(f);}l=h;}}function nh(n,t,e){let i=n.state.charCategorizer(t),s=i(e);return r=>{let o=i(r);return s==Nt.Space&&(s=o),s==o}}function rh(n,t,e,i){let s=t.head,r=e?1:-1;if(s==(e?n.state.doc.length:0))return C.cursor(s,t.assoc);let o=t.goalColumn,l,a=n.contentDOM.getBoundingClientRect(),h=n.coordsAtPos(s,t.assoc||-1),f=n.documentTop;if(h)o==null&&(o=h.left-a.left),l=r<0?h.top:h.bottom;else {let p=n.viewState.lineBlockAt(s);o==null&&(o=Math.min(a.right-a.left,n.defaultCharacterWidth*(s-p.from))),l=(r<0?p.top:p.bottom)+f;}let c=a.left+o,u=i??n.viewState.heightOracle.textHeight>>1,d=Js(n,{x:c,y:l+u*r},false,r);return C.cursor(d.pos,d.assoc,void 0,o)}function ze(n,t,e){for(;;){let i=0;for(let s of n)s.between(t-1,t+1,(r,o,l)=>{if(t>r&&ts(n)),e.from,t.head>e.from?-1:1);return i==e.from?e:C.cursor(i,in.viewState.docHeight)return new Pt(n.state.doc.length,-1);if(h=n.elementAtHeight(a),i==null)break;if(h.type==et.Text){let u=n.docView.coordsAt(i<0?h.from:h.to,i);if(u&&(i<0?u.top<=a+r:u.bottom>=a+r))break}let c=n.viewState.heightOracle.textHeight/2;a=i>0?h.bottom+c:h.top-c;}if(n.viewport.from>=h.to||n.viewport.to<=h.from){if(e)return null;if(h.type==et.Text){let c=ih(n,s,h,o,l);return new Pt(c,c==h.from?1:-1)}}if(h.type!=et.Text)return a<(h.top+h.bottom)/2?new Pt(h.from,1):new Pt(h.to,-1);let f=n.docView.lineAt(h.from,2);return (!f||f.length!=h.length)&&(f=n.docView.lineAt(h.from,-2)),Yo(n,f,h.from,o,l)}function Yo(n,t,e,i,s){let r=-1,o=null,l=1e9,a=1e9,h=s,f=s,c=(u,d)=>{for(let p=0;pi?g.left-i:g.rights?g.top-s:g.bottom=h&&(h=Math.min(g.top,h),f=Math.max(g.bottom,f),b=0),(r<0||(b-a||m-l)<0)&&(r>=0&&a&&l=h+2?a=0:(r=d,l=m,a=b,o=g));}};if(t.isText()){for(let d=0;d(o.left+o.right)/2==(or(n,r+e)==$.LTR)?new Pt(e+mt(t.text,r),-1):new Pt(e+r,1)}else {if(!t.length)return new Pt(e,1);for(let g=0;g(o.left+o.right)/2==(or(n,r+e)==$.LTR)?new Pt(d+u.length,-1):new Pt(d,1)}}function or(n,t){let e=n.state.doc.lineAt(t);return n.bidiSpans(e)[Ht.find(n.bidiSpans(e),t-e.from,-1,1)].dir}const Le="￿";class oh{constructor(t,e){this.points=t,this.view=e,this.text="",this.lineSeparator=e.state.facet(H.lineSeparator);}append(t){this.text+=t;}lineBreak(){this.text+=Le;}readRange(t,e){if(!t)return this;let i=t.parentNode;for(let s=t;;){this.findPointBefore(i,s);let r=this.text.length;this.readNode(s);let o=X.get(s),l=s.nextSibling;if(l==e){o?.breakAfter&&!l&&i!=this.view.contentDOM&&this.lineBreak();break}let a=X.get(l);(o&&a?o.breakAfter:(o?o.breakAfter:Ri(s))||Ri(l)&&(s.nodeName!="BR"||o?.isWidget())&&this.text.length>r)&&!ah(l,e)&&this.lineBreak(),s=l;}return this.findPointBefore(i,e),this}readTextNode(t){let e=t.nodeValue;for(let i of this.points)i.node==t&&(i.pos=this.text.length+Math.min(i.offset,e.length));for(let i=0,s=this.lineSeparator?null:/\r\n?|\n/g;;){let r=-1,o=1,l;if(this.lineSeparator?(r=e.indexOf(this.lineSeparator,i),o=this.lineSeparator.length):(l=s.exec(e))&&(r=l.index,o=l[0].length),this.append(e.slice(i,r<0?e.length:r)),r<0)break;if(this.lineBreak(),o>1)for(let a of this.points)a.node==t&&a.pos>this.text.length&&(a.pos-=o-1);i=r+o;}}readNode(t){let e=X.get(t),i=e&&e.overrideDOMText;if(i!=null){this.findPointInside(t,i.length);for(let s=i.iter();!s.next().done;)s.lineBreak?this.lineBreak():this.append(s.value);}else t.nodeType==3?this.readTextNode(t):t.nodeName=="BR"?t.nextSibling&&this.lineBreak():t.nodeType==1&&this.readRange(t.firstChild,null);}findPointBefore(t,e){for(let i of this.points)i.node==t&&t.childNodes[i.offset]==e&&(i.pos=this.text.length);}findPointInside(t,e){for(let i of this.points)(t.nodeType==3?i.node==t:t.contains(i.node))&&(i.pos=this.text.length+(lh(t,i.node,i.offset)?e:0));}}function lh(n,t,e){for(;;){if(!t||e-1;let{impreciseHead:r,impreciseAnchor:o}=t.docView;if(t.state.readOnly&&e>-1)this.newSel=null;else if(e>-1&&(this.bounds=Xo(t.docView.tile,e,i,0))){let l=r||o?[]:ch(t),a=new oh(l,t);a.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=a.text,this.newSel=uh(l,this.bounds.from);}else {let l=t.observer.selectionRange,a=r&&r.node==l.focusNode&&r.offset==l.focusOffset||!js(t.contentDOM,l.focusNode)?t.state.selection.main.head:t.docView.posFromDOM(l.focusNode,l.focusOffset),h=o&&o.node==l.anchorNode&&o.offset==l.anchorOffset||!js(t.contentDOM,l.anchorNode)?t.state.selection.main.anchor:t.docView.posFromDOM(l.anchorNode,l.anchorOffset),f=t.viewport;if((S.ios||S.chrome)&&t.state.selection.main.empty&&a!=h&&(f.from>0||f.to-1&&t.state.selection.ranges.length>1?this.newSel=t.state.selection.replaceRange(C.range(h,a)):this.newSel=C.single(h,a);}}}function Xo(n,t,e,i){if(n.isComposite()){let s=-1,r=-1,o=-1,l=-1;for(let a=0,h=i,f=i;ae)return Xo(c,t,e,h);if(u>=t&&s==-1&&(s=a,r=h),h>e&&c.dom.parentNode==n.dom){o=a,l=f;break}f=u,h=u+c.breakAfter;}return {from:r,to:l<0?i+n.length:l,startDOM:(s?n.children[s-1].dom.nextSibling:null)||n.dom.firstChild,endDOM:o=0?n.children[o].dom:null}}else return n.isText()?{from:i,to:i+n.length,startDOM:n.dom,endDOM:n.dom.nextSibling}:null}function Jo(n,t){let e,{newSel:i}=t,s=n.state.selection.main,r=n.inputState.lastKeyTime>Date.now()-100?n.inputState.lastKeyCode:-1;if(t.bounds){let{from:o,to:l}=t.bounds,a=s.from,h=null;(r===8||S.android&&t.text.length=s.from&&e.to<=s.to&&(e.from!=s.from||e.to!=s.to)&&s.to-s.from-(e.to-e.from)<=4?e={from:s.from,to:s.to,insert:n.state.doc.slice(s.from,e.from).append(e.insert).append(n.state.doc.slice(e.to,s.to))}:n.state.doc.lineAt(s.from).toDate.now()-50?e={from:s.from,to:s.to,insert:n.state.toText(n.inputState.insertingText)}:S.chrome&&e&&e.from==e.to&&e.from==s.head&&e.insert.toString()==` + `&&n.lineWrapping&&(i&&(i=C.single(i.main.anchor-1,i.main.head-1)),e={from:s.from,to:s.to,insert:W.of([" "])}),e)return Mn(n,e,i,r);if(i&&!Hi(i,s)){let o=false,l="select";return n.inputState.lastSelectionTime>Date.now()-50&&(n.inputState.lastSelectionOrigin=="select"&&(o=true),l=n.inputState.lastSelectionOrigin,l=="select.pointer"&&(i=Go(n.state.facet(ii).map(a=>a(n)),i))),n.dispatch({selection:i,scrollIntoView:o,userEvent:l}),true}else return false}function Mn(n,t,e,i=-1){if(S.ios&&n.inputState.flushIOSKey(t))return true;let s=n.state.selection.main;if(S.android&&(t.to==s.to&&(t.from==s.from||t.from==s.from-1&&n.state.sliceDoc(t.from,s.from)==" ")&&t.insert.length==1&&t.insert.lines==2&&we(n.contentDOM,"Enter",13)||(t.from==s.from-1&&t.to==s.to&&t.insert.length==0||i==8&&t.insert.lengths.head)&&we(n.contentDOM,"Backspace",8)||t.from==s.from&&t.to==s.to+1&&t.insert.length==0&&we(n.contentDOM,"Delete",46)))return true;let r=t.insert.toString();n.inputState.composing>=0&&n.inputState.composing++;let o,l=()=>o||(o=fh(n,t,e));return n.state.facet(No).some(a=>a(n,t.from,t.to,r,l))||n.dispatch(l()),true}function fh(n,t,e){let i,s=n.state,r=s.selection.main,o=-1;if(t.from==t.to&&t.fromr.to){let a=t.fromc(n)),h,a);t.from==f&&(o=f);}if(o>-1)i={changes:t,selection:C.cursor(t.from+t.insert.length,-1)};else if(t.from>=r.from&&t.to<=r.to&&t.to-t.from>=(r.to-r.from)/3&&(!e||e.main.empty&&e.main.from==t.from+t.insert.length)&&n.inputState.composing<0){let a=r.fromt.to?s.sliceDoc(t.to,r.to):"";i=s.replaceSelection(n.state.toText(a+t.insert.sliceString(0,void 0,n.state.lineBreak)+h));}else {let a=s.changes(t),h=e&&e.main.to<=a.newLength?e.main:void 0;if(s.selection.ranges.length>1&&(n.inputState.composing>=0||n.inputState.compositionPendingChange)&&t.to<=r.to+10&&t.to>=r.to-10){let f=n.state.sliceDoc(t.from,t.to),c,u=e&&_o(n,e.main.head);if(u){let p=t.insert.length-(t.to-t.from);c={from:u.from,to:u.to-p};}else c=n.state.doc.lineAt(r.head);let d=r.to-t.to;i=s.changeByRange(p=>{if(p.from==r.from&&p.to==r.to)return {changes:a,range:h||p.map(a)};let g=p.to-d,m=g-f.length;if(n.state.sliceDoc(m,g)!=f||g>=c.from&&m<=c.to)return {range:p};let b=s.changes({from:m,to:g,insert:t.insert}),M=p.to-r.to;return {changes:b,range:h?C.range(Math.max(0,h.anchor+M),Math.max(0,h.head+M)):p.map(b)}});}else i={changes:a,selection:h&&s.selection.replaceRange(h)};}let l="input.type";return (n.composing||n.inputState.compositionPendingChange&&n.inputState.compositionEndedAt>Date.now()-50)&&(n.inputState.compositionPendingChange=false,l+=".compose",n.inputState.compositionFirstChange&&(l+=".start",n.inputState.compositionFirstChange=false)),s.update(i,{userEvent:l,scrollIntoView:true})}function Qo(n,t,e,i){let s=Math.min(n.length,t.length),r=0;for(;r0&&l>0&&n.charCodeAt(o-1)==t.charCodeAt(l-1);)o--,l--;if(i=="end"){let a=Math.max(0,r-Math.min(o,l));e-=o+a-r;}if(o=o?r-e:0;r-=a,l=r+(l-o),o=r;}else if(l=l?r-e:0;r-=a,o=r+(o-l),l=r;}return {from:r,toA:o,toB:l}}function ch(n){let t=[];if(n.root.activeElement!=n.contentDOM)return t;let{anchorNode:e,anchorOffset:i,focusNode:s,focusOffset:r}=n.observer.selectionRange;return e&&(t.push(new lr(e,i)),(s!=e||r!=i)&&t.push(new lr(s,r))),t}function uh(n,t){if(n.length==0)return null;let e=n[0].pos,i=n.length==2?n[1].pos:e;return e>-1&&i>-1?C.single(e+t,i+t):null}function Hi(n,t){return t.head==n.main.head&&t.anchor==n.main.anchor}class dh{setSelectionOrigin(t){this.lastSelectionOrigin=t,this.lastSelectionTime=Date.now();}constructor(t){this.view=t,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=false,this.compositionPendingChange=false,this.insertingText="",this.insertingTextAt=0,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=t.hasFocus,S.safari&&t.contentDOM.addEventListener("input",()=>null),S.gecko&&Oh(t.contentDOM.ownerDocument);}handleEvent(t){!kh(this.view,t)||this.ignoreDuringComposition(t)||t.type=="keydown"&&this.keydown(t)||(this.view.updateState!=0?Promise.resolve().then(()=>this.runHandlers(t.type,t)):this.runHandlers(t.type,t));}runHandlers(t,e){let i=this.handlers[t];if(i){for(let s of i.observers)s(this.view,e);for(let s of i.handlers){if(e.defaultPrevented)break;if(s(this.view,e)){e.preventDefault();break}}}}ensureHandlers(t){let e=ph(t),i=this.handlers,s=this.view.contentDOM;for(let r in e)if(r!="scroll"){let o=!e[r].handlers.length,l=i[r];l&&o!=!l.handlers.length&&(s.removeEventListener(r,this.handleEvent),l=null),l||s.addEventListener(r,this.handleEvent,{passive:o});}for(let r in i)r!="scroll"&&!e[r]&&s.removeEventListener(r,this.handleEvent);this.handlers=e;}keydown(t){if(this.lastKeyCode=t.keyCode,this.lastKeyTime=Date.now(),t.keyCode==9&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return true;if(this.tabFocusMode>0&&t.keyCode!=27&&tl.indexOf(t.keyCode)<0&&(this.tabFocusMode=-1),S.android&&S.chrome&&!t.synthetic&&(t.keyCode==13||t.keyCode==8))return this.view.observer.delayAndroidKey(t.key,t.keyCode),true;let e;return S.ios&&!t.synthetic&&!t.altKey&&!t.metaKey&&((e=Zo.find(i=>i.keyCode==t.keyCode))&&!t.ctrlKey||gh.indexOf(t.key)>-1&&t.ctrlKey&&!t.shiftKey)?(this.pendingIOSKey=e||t,setTimeout(()=>this.flushIOSKey(),250),true):(t.keyCode!=229&&this.view.observer.forceFlush(),false)}flushIOSKey(t){let e=this.pendingIOSKey;return !e||e.key=="Enter"&&t&&t.from0?true:S.safari&&!S.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=false,true):false}startMouseSelection(t){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=t;}update(t){this.view.observer.update(t),this.mouseSelection&&this.mouseSelection.update(t),this.draggedContent&&t.docChanged&&(this.draggedContent=this.draggedContent.map(t.changes)),t.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0);}destroy(){this.mouseSelection&&this.mouseSelection.destroy();}}function ar(n,t){return (e,i)=>{try{return t.call(n,i,e)}catch(s){vt(e.state,s);}}}function ph(n){let t=Object.create(null);function e(i){return t[i]||(t[i]={observers:[],handlers:[]})}for(let i of n){let s=i.spec,r=s&&s.plugin.domEventHandlers,o=s&&s.plugin.domEventObservers;if(r)for(let l in r){let a=r[l];a&&e(l).handlers.push(ar(i.value,a));}if(o)for(let l in o){let a=o[l];a&&e(l).observers.push(ar(i.value,a));}}for(let i in Ct)e(i).handlers.push(Ct[i]);for(let i in wt)e(i).observers.push(wt[i]);return t}const Zo=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],gh="dthko",tl=[16,17,18,20,91,92,224,225],fi=6;function ci(n){return Math.max(0,n)*.7+8}function mh(n,t){return Math.max(Math.abs(n.clientX-t.clientX),Math.abs(n.clientY-t.clientY))}class bh{constructor(t,e,i,s){this.view=t,this.startEvent=e,this.style=i,this.mustSelect=s,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=e,this.scrollParents=xa(t.contentDOM),this.atoms=t.state.facet(ii).map(o=>o(t));let r=t.contentDOM.ownerDocument;r.addEventListener("mousemove",this.move=this.move.bind(this)),r.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=e.shiftKey,this.multiple=t.state.facet(H.allowMultipleSelections)&&yh(t,e),this.dragging=xh(t,e)&&sl(e)==1?null:false;}start(t){this.dragging===false&&this.select(t);}move(t){if(t.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&mh(this.startEvent,t)<10)return;this.select(this.lastEvent=t);let e=0,i=0,s=0,r=0,o=this.view.win.innerWidth,l=this.view.win.innerHeight;this.scrollParents.x&&({left:s,right:o}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:r,bottom:l}=this.scrollParents.y.getBoundingClientRect());let a=An(this.view);t.clientX-a.left<=s+fi?e=-ci(s-t.clientX):t.clientX+a.right>=o-fi&&(e=ci(t.clientX-o)),t.clientY-a.top<=r+fi?i=-ci(r-t.clientY):t.clientY+a.bottom>=l-fi&&(i=ci(t.clientY-l)),this.setScrollSpeed(e,i);}up(t){this.dragging==null&&this.select(this.lastEvent),this.dragging||t.preventDefault(),this.destroy();}destroy(){this.setScrollSpeed(0,0);let t=this.view.contentDOM.ownerDocument;t.removeEventListener("mousemove",this.move),t.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null;}setScrollSpeed(t,e){this.scrollSpeed={x:t,y:e},t||e?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1);}scroll(){let{x:t,y:e}=this.scrollSpeed;t&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=t,t=0),e&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=e,e=0),(t||e)&&this.view.win.scrollBy(t,e),this.dragging===false&&this.select(this.lastEvent);}select(t){let{view:e}=this,i=Go(this.atoms,this.style.get(t,this.extend,this.multiple));(this.mustSelect||!i.eq(e.state.selection,this.dragging===false))&&this.view.dispatch({selection:i,userEvent:"select.pointer"}),this.mustSelect=false;}update(t){t.transactions.some(e=>e.isUserEvent("input.type"))?this.destroy():this.style.update(t)&&setTimeout(()=>this.select(this.lastEvent),20);}}function yh(n,t){let e=n.state.facet(Po);return e.length?e[0](t):S.mac?t.metaKey:t.ctrlKey}function wh(n,t){let e=n.state.facet(Ro);return e.length?e[0](t):S.mac?!t.altKey:!t.ctrlKey}function xh(n,t){let{main:e}=n.state.selection;if(e.empty)return false;let i=ve(n.root);if(!i||i.rangeCount==0)return true;let s=i.getRangeAt(0).getClientRects();for(let r=0;r=t.clientX&&o.top<=t.clientY&&o.bottom>=t.clientY)return true}return false}function kh(n,t){if(!t.bubbles)return true;if(t.defaultPrevented)return false;for(let e=t.target,i;e!=n.contentDOM;e=e.parentNode)if(!e||e.nodeType==11||(i=X.get(e))&&i.isWidget()&&!i.isHidden&&i.widget.ignoreEvent(t))return false;return true}const Ct=Object.create(null),wt=Object.create(null),el=S.ie&&S.ie_version<15||S.ios&&S.webkit_version<604;function vh(n){let t=n.dom.parentNode;if(!t)return;let e=t.appendChild(document.createElement("textarea"));e.style.cssText="position: fixed; left: -10000px; top: 10px",e.focus(),setTimeout(()=>{n.focus(),e.remove(),il(n,e.value);},50);}function Qi(n,t,e){for(let i of n.facet(t))e=i(e,n);return e}function il(n,t){t=Qi(n.state,kn,t);let{state:e}=n,i,s=1,r=e.toText(t),o=r.lines==e.selection.ranges.length;if(Qs!=null&&e.selection.ranges.every(a=>a.empty)&&Qs==r.toString()){let a=-1;i=e.changeByRange(h=>{let f=e.doc.lineAt(h.from);if(f.from==a)return {range:h};a=f.from;let c=e.toText((o?r.line(s++).text:t)+e.lineBreak);return {changes:{from:f.from,insert:c},range:C.cursor(h.from+c.length)}});}else o?i=e.changeByRange(a=>{let h=r.line(s++);return {changes:{from:a.from,to:a.to,insert:h.text},range:C.cursor(a.from+h.length)}}):i=e.replaceSelection(r);n.dispatch(i,{userEvent:"input.paste",scrollIntoView:true});}wt.scroll=n=>{n.inputState.lastScrollTop=n.scrollDOM.scrollTop,n.inputState.lastScrollLeft=n.scrollDOM.scrollLeft;};Ct.keydown=(n,t)=>(n.inputState.setSelectionOrigin("select"),t.keyCode==27&&n.inputState.tabFocusMode!=0&&(n.inputState.tabFocusMode=Date.now()+2e3),false);wt.touchstart=(n,t)=>{n.inputState.lastTouchTime=Date.now(),n.inputState.setSelectionOrigin("select.pointer");};wt.touchmove=n=>{n.inputState.setSelectionOrigin("select.pointer");};Ct.mousedown=(n,t)=>{if(n.observer.flush(),n.inputState.lastTouchTime>Date.now()-2e3)return false;let e=null;for(let i of n.state.facet(Lo))if(e=i(n,t),e)break;if(!e&&t.button==0&&(e=Ch(n,t)),e){let i=!n.hasFocus;n.inputState.startMouseSelection(new bh(n,t,e,i)),i&&n.observer.ignore(()=>{So(n.contentDOM);let r=n.root.activeElement;r&&!r.contains(n.contentDOM)&&r.blur();});let s=n.inputState.mouseSelection;if(s)return s.start(t),s.dragging===false}else n.inputState.setSelectionOrigin("select.pointer");return false};function hr(n,t,e,i){if(i==1)return C.cursor(t,e);if(i==2)return eh(n.state,t,e);{let s=n.docView.lineAt(t,e),r=n.state.doc.lineAt(s?s.posAtEnd:t),o=s?s.posAtStart:r.from,l=s?s.posAtEnd:r.to;return lDate.now()-400&&Math.abs(t.clientX-n.clientX)<2&&Math.abs(t.clientY-n.clientY)<2?(cr+1)%3:1}function Ch(n,t){let e=n.posAndSideAtCoords({x:t.clientX,y:t.clientY},false),i=sl(t),s=n.state.selection;return {update(r){r.docChanged&&(e.pos=r.changes.mapPos(e.pos),s=s.map(r.changes));},get(r,o,l){let a=n.posAndSideAtCoords({x:r.clientX,y:r.clientY},false),h,f=hr(n,a.pos,a.assoc,i);if(e.pos!=a.pos&&!o){let c=hr(n,e.pos,e.assoc,i),u=Math.min(c.from,f.from),d=Math.max(c.to,f.to);f=u1&&(h=Ah(s,a.pos))?h:l?s.addRange(f):C.create([f])}}}function Ah(n,t){for(let e=0;e=t)return C.create(n.ranges.slice(0,e).concat(n.ranges.slice(e+1)),n.mainIndex==e?0:n.mainIndex-(n.mainIndex>e?1:0))}return null}Ct.dragstart=(n,t)=>{let{selection:{main:e}}=n.state;if(t.target.draggable){let s=n.docView.tile.nearest(t.target);if(s&&s.isWidget()){let r=s.posAtStart,o=r+s.length;(r>=e.to||o<=e.from)&&(e=C.range(r,o));}}let{inputState:i}=n;return i.mouseSelection&&(i.mouseSelection.dragging=true),i.draggedContent=e,t.dataTransfer&&(t.dataTransfer.setData("Text",Qi(n.state,vn,n.state.sliceDoc(e.from,e.to))),t.dataTransfer.effectAllowed="copyMove"),false};Ct.dragend=n=>(n.inputState.draggedContent=null,false);function dr(n,t,e,i){if(e=Qi(n.state,kn,e),!e)return;let s=n.posAtCoords({x:t.clientX,y:t.clientY},false),{draggedContent:r}=n.inputState,o=i&&r&&wh(n,t)?{from:r.from,to:r.to}:null,l={from:s,insert:e},a=n.state.changes(o?[o,l]:l);n.focus(),n.dispatch({changes:a,selection:{anchor:a.mapPos(s,-1),head:a.mapPos(s,1)},userEvent:o?"move.drop":"input.drop"}),n.inputState.draggedContent=null;}Ct.drop=(n,t)=>{if(!t.dataTransfer)return false;if(n.state.readOnly)return true;let e=t.dataTransfer.files;if(e&&e.length){let i=Array(e.length),s=0,r=()=>{++s==e.length&&dr(n,t,i.filter(o=>o!=null).join(n.state.lineBreak),false);};for(let o=0;o{/[\x00-\x08\x0e-\x1f]{2}/.test(l.result)||(i[o]=l.result),r();},l.readAsText(e[o]);}return true}else {let i=t.dataTransfer.getData("Text");if(i)return dr(n,t,i,true),true}return false};Ct.paste=(n,t)=>{if(n.state.readOnly)return true;n.observer.flush();let e=el?null:t.clipboardData;return e?(il(n,e.getData("text/plain")||e.getData("text/uri-list")),true):(vh(n),false)};function Mh(n,t){let e=n.dom.parentNode;if(!e)return;let i=e.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px",i.value=t,i.focus(),i.selectionEnd=t.length,i.selectionStart=0,setTimeout(()=>{i.remove(),n.focus();},50);}function Th(n){let t=[],e=[],i=false;for(let s of n.selection.ranges)s.empty||(t.push(n.sliceDoc(s.from,s.to)),e.push(s));if(!t.length){let s=-1;for(let{from:r}of n.selection.ranges){let o=n.doc.lineAt(r);o.number>s&&(t.push(o.text),e.push({from:o.from,to:Math.min(n.doc.length,o.to+1)})),s=o.number;}i=true;}return {text:Qi(n,vn,t.join(n.lineBreak)),ranges:e,linewise:i}}let Qs=null;Ct.copy=Ct.cut=(n,t)=>{let e=ve(n.root);if(e&&!We(n.contentDOM,e))return false;let{text:i,ranges:s,linewise:r}=Th(n.state);if(!i&&!r)return false;Qs=r?i:null,t.type=="cut"&&!n.state.readOnly&&n.dispatch({changes:s,scrollIntoView:true,userEvent:"delete.cut"});let o=el?null:t.clipboardData;return o?(o.clearData(),o.setData("text/plain",i),true):(Mh(n,i),false)};const nl=Oe.define();function rl(n,t){let e=[];for(let i of n.facet(Ho)){let s=i(n,t);s&&e.push(s);}return e.length?n.update({effects:e,annotations:nl.of(true)}):null}function ol(n){setTimeout(()=>{let t=n.hasFocus;if(t!=n.inputState.notifiedFocused){let e=rl(n.state,t);e?n.dispatch(e):n.update([]);}},10);}wt.focus=n=>{n.inputState.lastFocusTime=Date.now(),!n.scrollDOM.scrollTop&&(n.inputState.lastScrollTop||n.inputState.lastScrollLeft)&&(n.scrollDOM.scrollTop=n.inputState.lastScrollTop,n.scrollDOM.scrollLeft=n.inputState.lastScrollLeft),ol(n);};wt.blur=n=>{n.observer.clearSelectionRange(),ol(n);};wt.compositionstart=wt.compositionupdate=n=>{n.observer.editContext||(n.inputState.compositionFirstChange==null&&(n.inputState.compositionFirstChange=true),n.inputState.composing<0&&(n.inputState.composing=0));};wt.compositionend=n=>{n.observer.editContext||(n.inputState.composing=-1,n.inputState.compositionEndedAt=Date.now(),n.inputState.compositionPendingKey=true,n.inputState.compositionPendingChange=n.observer.pendingRecords().length>0,n.inputState.compositionFirstChange=null,S.chrome&&S.android?n.observer.flushSoon():n.inputState.compositionPendingChange?Promise.resolve().then(()=>n.observer.flush()):setTimeout(()=>{n.inputState.composing<0&&n.docView.hasComposition&&n.update([]);},50));};wt.contextmenu=n=>{n.inputState.lastContextMenu=Date.now();};Ct.beforeinput=(n,t)=>{var e,i;if((t.inputType=="insertText"||t.inputType=="insertCompositionText")&&(n.inputState.insertingText=t.data,n.inputState.insertingTextAt=Date.now()),t.inputType=="insertReplacementText"&&n.observer.editContext){let r=(e=t.dataTransfer)===null||e===void 0?void 0:e.getData("text/plain"),o=t.getTargetRanges();if(r&&o.length){let l=o[0],a=n.posAtDOM(l.startContainer,l.startOffset),h=n.posAtDOM(l.endContainer,l.endOffset);return Mn(n,{from:a,to:h,insert:n.state.toText(r)},null),true}}let s;if(S.chrome&&S.android&&(s=Zo.find(r=>r.inputType==t.inputType))&&(n.observer.delayAndroidKey(s.key,s.keyCode),s.key=="Backspace"||s.key=="Delete")){let r=((i=window.visualViewport)===null||i===void 0?void 0:i.height)||0;setTimeout(()=>{var o;(((o=window.visualViewport)===null||o===void 0?void 0:o.height)||0)>r+10&&n.hasFocus&&(n.contentDOM.blur(),n.focus());},100);}return S.ios&&t.inputType=="deleteContentForward"&&n.observer.flushSoon(),S.safari&&t.inputType=="insertText"&&n.inputState.composing>=0&&setTimeout(()=>wt.compositionend(n,t),20),false};const pr=new Set;function Oh(n){pr.has(n)||(pr.add(n),n.addEventListener("copy",()=>{}),n.addEventListener("cut",()=>{}));}const gr=["pre-wrap","normal","pre-line","break-spaces"];let Ae=false;function mr(){Ae=false;}class Dh{constructor(t){this.lineWrapping=t,this.doc=W.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30;}heightForGap(t,e){let i=this.doc.lineAt(e).number-this.doc.lineAt(t).number+1;return this.lineWrapping&&(i+=Math.max(0,Math.ceil((e-t-i*this.lineLength*.5)/this.lineLength))),this.lineHeight*i}heightForLine(t){return this.lineWrapping?(1+Math.max(0,Math.ceil((t-this.lineLength)/Math.max(1,this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(t){return this.doc=t,this}mustRefreshForWrapping(t){return gr.indexOf(t)>-1!=this.lineWrapping}mustRefreshForHeights(t){let e=false;for(let i=0;i-1,a=Math.abs(e-this.lineHeight)>.3||this.lineWrapping!=l||Math.abs(i-this.charWidth)>.1;if(this.lineWrapping=l,this.lineHeight=e,this.charWidth=i,this.textHeight=s,this.lineLength=r,a){this.heightSamples={};for(let h=0;h0}set outdated(t){this.flags=(t?2:0)|this.flags&-3;}setHeight(t){this.height!=t&&(Math.abs(this.height-t)>Mi&&(Ae=true),this.height=t);}replace(t,e,i){return lt.of(i)}decomposeLeft(t,e){e.push(this);}decomposeRight(t,e){e.push(this);}applyChanges(t,e,i,s){let r=this,o=i.doc;for(let l=s.length-1;l>=0;l--){let{fromA:a,toA:h,fromB:f,toB:c}=s[l],u=r.lineAt(a,j.ByPosNoHeight,i.setDoc(e),0,0),d=u.to>=h?u:r.lineAt(h,j.ByPosNoHeight,i,0,0);for(c+=d.to-h,h=d.to;l>0&&u.from<=s[l-1].toA;)a=s[l-1].fromA,f=s[l-1].fromB,l--,ar*2){let l=t[e-1];l.break?t.splice(--e,1,l.left,null,l.right):t.splice(--e,1,l.left,l.right),i+=1+l.break,s-=l.size;}else if(r>s*2){let l=t[i];l.break?t.splice(i,1,l.left,null,l.right):t.splice(i,1,l.left,l.right),i+=2+l.break,r-=l.size;}else break;else if(s=r&&o(this.lineAt(0,j.ByPos,i,s,r));}setMeasuredHeight(t){let e=t.heights[t.index++];e<0?(this.spaceAbove=-e,e=t.heights[t.index++]):this.spaceAbove=0,this.setHeight(e);}updateHeight(t,e=0,i=false,s){return s&&s.from<=e&&s.more&&this.setMeasuredHeight(s),this.outdated=false,this}toString(){return `block(${this.length})`}}class ut extends ll{constructor(t,e,i){super(t,e,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0,this.spaceAbove=i;}mainBlock(t,e){return new xt(e,this.length,t+this.spaceAbove,this.height-this.spaceAbove,this.breaks)}replace(t,e,i){let s=i[0];return i.length==1&&(s instanceof ut||s instanceof Z&&s.flags&4)&&Math.abs(this.length-s.length)<10?(s instanceof Z?s=new ut(s.length,this.height,this.spaceAbove):s.height=this.height,this.outdated||(s.outdated=false),s):lt.of(i)}updateHeight(t,e=0,i=false,s){return s&&s.from<=e&&s.more?this.setMeasuredHeight(s):(i||this.outdated)&&(this.spaceAbove=0,this.setHeight(Math.max(this.widgetHeight,t.heightForLine(this.length-this.collapsed))+this.breaks*t.lineHeight)),this.outdated=false,this}toString(){return `line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class Z extends lt{constructor(t){super(t,0);}heightMetrics(t,e){let i=t.doc.lineAt(e).number,s=t.doc.lineAt(e+this.length).number,r=s-i+1,o,l=0;if(t.lineWrapping){let a=Math.min(this.height,t.lineHeight*r);o=a/r,this.length>r+1&&(l=(this.height-a)/(this.length-r-1));}else o=this.height/r;return {firstLine:i,lastLine:s,perLine:o,perChar:l}}blockAt(t,e,i,s){let{firstLine:r,lastLine:o,perLine:l,perChar:a}=this.heightMetrics(e,s);if(e.lineWrapping){let h=s+(t0){let r=i[i.length-1];r instanceof Z?i[i.length-1]=new Z(r.length+s):i.push(null,new Z(s-1));}if(t>0){let r=i[0];r instanceof Z?i[0]=new Z(t+r.length):i.unshift(new Z(t-1),null);}return lt.of(i)}decomposeLeft(t,e){e.push(new Z(t-1),null);}decomposeRight(t,e){e.push(null,new Z(this.length-t-1));}updateHeight(t,e=0,i=false,s){let r=e+this.length;if(s&&s.from<=e+this.length&&s.more){let o=[],l=Math.max(e,s.from),a=-1;for(s.from>e&&o.push(new Z(s.from-e-1).updateHeight(t,e));l<=r&&s.more;){let f=t.doc.lineAt(l).length;o.length&&o.push(null);let c=s.heights[s.index++],u=0;c<0&&(u=-c,c=s.heights[s.index++]),a==-1?a=c:Math.abs(c-a)>=Mi&&(a=-2);let d=new ut(f,c,u);d.outdated=false,o.push(d),l+=f+1;}l<=r&&o.push(null,new Z(r-l).updateHeight(t,l));let h=lt.of(o);return (a<0||Math.abs(h.height-this.height)>=Mi||Math.abs(a-this.heightMetrics(t,e).perLine)>=Mi)&&(Ae=true),Wi(this,h)}else (i||this.outdated)&&(this.setHeight(t.heightForGap(e,e+this.length)),this.outdated=false);return this}toString(){return `gap(${this.length})`}}class Ph extends lt{constructor(t,e,i){super(t.length+e+i.length,t.height+i.height,e|(t.outdated||i.outdated?2:0)),this.left=t,this.right=i,this.size=t.size+i.size;}get break(){return this.flags&1}blockAt(t,e,i,s){let r=i+this.left.height;return tl))return h;let f=e==j.ByPosNoHeight?j.ByPosNoHeight:j.ByPos;return a?h.join(this.right.lineAt(l,f,i,o,l)):this.left.lineAt(l,f,i,s,r).join(h)}forEachLine(t,e,i,s,r,o){let l=s+this.left.height,a=r+this.left.length+this.break;if(this.break)t=a&&this.right.forEachLine(t,e,i,l,a,o);else {let h=this.lineAt(a,j.ByPos,i,s,r);t=t&&h.from<=e&&o(h),e>h.to&&this.right.forEachLine(h.to+1,e,i,l,a,o);}}replace(t,e,i){let s=this.left.length+this.break;if(ethis.left.length)return this.balanced(this.left,this.right.replace(t-s,e-s,i));let r=[];t>0&&this.decomposeLeft(t,r);let o=r.length;for(let l of i)r.push(l);if(t>0&&br(r,o-1),e=i&&e.push(null)),t>i&&this.right.decomposeLeft(t-i,e);}decomposeRight(t,e){let i=this.left.length,s=i+this.break;if(t>=s)return this.right.decomposeRight(t-s,e);t2*e.size||e.size>2*t.size?lt.of(this.break?[t,null,e]:[t,e]):(this.left=Wi(this.left,t),this.right=Wi(this.right,e),this.setHeight(t.height+e.height),this.outdated=t.outdated||e.outdated,this.size=t.size+e.size,this.length=t.length+this.break+e.length,this)}updateHeight(t,e=0,i=false,s){let{left:r,right:o}=this,l=e+r.length+this.break,a=null;return s&&s.from<=e+r.length&&s.more?a=r=r.updateHeight(t,e,i,s):r.updateHeight(t,e,i),s&&s.from<=l+o.length&&s.more?a=o=o.updateHeight(t,l,i,s):o.updateHeight(t,l,i),a?this.balanced(r,o):(this.height=this.left.height+this.right.height,this.outdated=false,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function br(n,t){let e,i;n[t]==null&&(e=n[t-1])instanceof Z&&(i=n[t+1])instanceof Z&&n.splice(t-1,3,new Z(e.length+1+i.length));}const Rh=5;class Tn{constructor(t,e){this.pos=t,this.oracle=e,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=t;}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(t,e){if(this.lineStart>-1){let i=Math.min(e,this.lineEnd),s=this.nodes[this.nodes.length-1];s instanceof ut?s.length+=i-this.pos:(i>this.pos||!this.isCovered)&&this.nodes.push(new ut(i-this.pos,-1,0)),this.writtenTo=i,e>i&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1);}this.pos=e;}point(t,e,i){if(t=Rh)&&this.addLineDeco(s,r,o);}else e>t&&this.span(t,e);this.lineEnd>-1&&this.lineEnd-1)return;let{from:t,to:e}=this.oracle.doc.lineAt(this.pos);this.lineStart=t,this.lineEnd=e,this.writtenTot&&this.nodes.push(new ut(this.pos-t,-1,0)),this.writtenTo=this.pos;}blankContent(t,e){let i=new Z(e-t);return this.oracle.doc.lineAt(t).to==e&&(i.flags|=4),i}ensureLine(){this.enterLine();let t=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(t instanceof ut)return t;let e=new ut(0,-1,0);return this.nodes.push(e),e}addBlock(t){this.enterLine();let e=t.deco;e&&e.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(t),this.writtenTo=this.pos=this.pos+t.length,e&&e.endSide>0&&(this.covering=t);}addLineDeco(t,e,i){let s=this.ensureLine();s.length+=i,s.collapsed+=i,s.widgetHeight=Math.max(s.widgetHeight,t),s.breaks+=e,this.writtenTo=this.pos=this.pos+i;}finish(t){let e=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(e instanceof ut)&&!this.isCovered?this.nodes.push(new ut(0,-1,0)):(this.writtenTof.clientHeight||f.scrollWidth>f.clientWidth)&&c.overflow!="visible"){let u=f.getBoundingClientRect();r=Math.max(r,u.left),o=Math.min(o,u.right),l=Math.max(l,u.top),a=Math.min(h==n.parentNode?s.innerHeight:a,u.bottom);}h=c.position=="absolute"||c.position=="fixed"?f.offsetParent:f.parentNode;}else if(h.nodeType==11)h=h.host;else break;return {left:r-e.left,right:Math.max(r,o)-e.left,top:l-(e.top+t),bottom:Math.max(l,a)-(e.top+t)}}function Hh(n){let t=n.getBoundingClientRect(),e=n.ownerDocument.defaultView||window;return t.left0&&t.top0}function Wh(n,t){let e=n.getBoundingClientRect();return {left:0,right:e.right-e.left,top:t,bottom:e.bottom-(e.top+t)}}class cs{constructor(t,e,i,s){this.from=t,this.to=e,this.size=i,this.displaySize=s;}static same(t,e){if(t.length!=e.length)return false;for(let i=0;itypeof i!="function"&&i.class=="cm-lineWrapping");this.heightOracle=new Dh(e),this.stateDeco=xr(t),this.heightMap=lt.empty().applyChanges(this.stateDeco,W.empty,this.heightOracle.setDoc(t.doc),[new bt(0,0,0,t.doc.length)]);for(let i=0;i<2&&(this.viewport=this.getViewport(0,null),!!this.updateForViewport());i++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=F.set(this.lineGaps.map(i=>i.draw(this,false))),this.computeVisibleRanges();}updateForViewport(){let t=[this.viewport],{main:e}=this.state.selection;for(let i=0;i<=1;i++){let s=i?e.head:e.anchor;if(!t.some(({from:r,to:o})=>s>=r&&s<=o)){let{from:r,to:o}=this.lineBlockAt(s);t.push(new ui(r,o));}}return this.viewports=t.sort((i,s)=>i.from-s.from),this.updateScaler()}updateScaler(){let t=this.scaler;return this.scaler=this.heightMap.height<=7e6?wr:new On(this.heightOracle,this.heightMap,this.viewports),t.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,t=>{this.viewportLines.push(Ie(t,this.scaler));});}update(t,e=null){this.state=t.state;let i=this.stateDeco;this.stateDeco=xr(this.state);let s=t.changedRanges,r=bt.extendWithRanges(s,Lh(i,this.stateDeco,t?t.changes:J.empty(this.state.doc.length))),o=this.heightMap.height,l=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);mr(),this.heightMap=this.heightMap.applyChanges(this.stateDeco,t.startState.doc,this.heightOracle.setDoc(this.state.doc),r),(this.heightMap.height!=o||Ae)&&(t.flags|=2),l?(this.scrollAnchorPos=t.changes.mapPos(l.from,-1),this.scrollAnchorHeight=l.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=o);let a=r.length?this.mapViewport(this.viewport,t.changes):this.viewport;(e&&(e.range.heada.to)||!this.viewportIsAppropriate(a))&&(a=this.getViewport(0,e));let h=a.from!=this.viewport.from||a.to!=this.viewport.to;this.viewport=a,t.flags|=this.updateForViewport(),(h||!t.changes.empty||t.flags&2)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,t.changes))),t.flags|=this.computeVisibleRanges(t.changes),e&&(this.scrollTarget=e),!this.mustEnforceCursorAssoc&&(t.selectionSet||t.focusChanged)&&t.view.lineWrapping&&t.state.selection.main.empty&&t.state.selection.main.assoc&&!t.state.facet(Vo)&&(this.mustEnforceCursorAssoc=true);}measure(t){let e=t.contentDOM,i=window.getComputedStyle(e),s=this.heightOracle,r=i.whiteSpace;this.defaultTextDirection=i.direction=="rtl"?$.RTL:$.LTR;let o=this.heightOracle.mustRefreshForWrapping(r)||this.mustMeasureContent,l=e.getBoundingClientRect(),a=o||this.mustMeasureContent||this.contentDOMHeight!=l.height;this.contentDOMHeight=l.height,this.mustMeasureContent=false;let h=0,f=0;if(l.width&&l.height){let{scaleX:D,scaleY:w}=vo(e,l);(D>.005&&Math.abs(this.scaleX-D)>.005||w>.005&&Math.abs(this.scaleY-w)>.005)&&(this.scaleX=D,this.scaleY=w,h|=16,o=a=true);}let c=(parseInt(i.paddingTop)||0)*this.scaleY,u=(parseInt(i.paddingBottom)||0)*this.scaleY;(this.paddingTop!=c||this.paddingBottom!=u)&&(this.paddingTop=c,this.paddingBottom=u,h|=18),this.editorWidth!=t.scrollDOM.clientWidth&&(s.lineWrapping&&(a=true),this.editorWidth=t.scrollDOM.clientWidth,h|=16);let d=t.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=d&&(this.scrollAnchorHeight=-1,this.scrollTop=d),this.scrolledToBottom=Co(t.scrollDOM);let p=(this.printing?Wh:Nh)(e,this.paddingTop),g=p.top-this.pixelViewport.top,m=p.bottom-this.pixelViewport.bottom;this.pixelViewport=p;let b=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(b!=this.inView&&(this.inView=b,b&&(a=true)),!this.inView&&!this.scrollTarget&&!Hh(t.dom))return 0;let M=l.width;if((this.contentDOMWidth!=M||this.editorHeight!=t.scrollDOM.clientHeight)&&(this.contentDOMWidth=l.width,this.editorHeight=t.scrollDOM.clientHeight,h|=16),a){let D=t.docView.measureVisibleLineHeights(this.viewport);if(s.mustRefreshForHeights(D)&&(o=true),o||s.lineWrapping&&Math.abs(M-this.contentDOMWidth)>s.charWidth){let{lineHeight:w,charWidth:v,textHeight:x}=t.docView.measureTextSize();o=w>0&&s.refresh(r,w,v,x,Math.max(5,M/v),D),o&&(t.docView.minWidth=0,h|=16);}g>0&&m>0?f=Math.max(g,m):g<0&&m<0&&(f=Math.min(g,m)),mr();for(let w of this.viewports){let v=w.from==this.viewport.from?D:t.docView.measureVisibleLineHeights(w);this.heightMap=(o?lt.empty().applyChanges(this.stateDeco,W.empty,this.heightOracle,[new bt(0,0,0,t.state.doc.length)]):this.heightMap).updateHeight(s,0,o,new Bh(w.from,v));}Ae&&(h|=2);}let T=!this.viewportIsAppropriate(this.viewport,f)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return T&&(h&2&&(h|=this.updateScaler()),this.viewport=this.getViewport(f,this.scrollTarget),h|=this.updateForViewport()),(h&2||T)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(o?[]:this.lineGaps,t)),h|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=false,t.docView.enforceCursorAssoc()),h}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(t,e){let i=.5-Math.max(-0.5,Math.min(.5,t/1e3/2)),s=this.heightMap,r=this.heightOracle,{visibleTop:o,visibleBottom:l}=this,a=new ui(s.lineAt(o-i*1e3,j.ByHeight,r,0,0).from,s.lineAt(l+(1-i)*1e3,j.ByHeight,r,0,0).to);if(e){let{head:h}=e.range;if(ha.to){let f=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),c=s.lineAt(h,j.ByPos,r,0,0),u;e.y=="center"?u=(c.top+c.bottom)/2-f/2:e.y=="start"||e.y=="nearest"&&h=l+Math.max(10,Math.min(i,250)))&&s>o-2*1e3&&r>1,o=s<<1;if(this.defaultTextDirection!=$.LTR&&!i)return [];let l=[],a=(f,c,u,d)=>{if(c-ff&&bb.from>=u.from&&b.to<=u.to&&Math.abs(b.from-f)b.fromM));if(!m){if(cT.from<=c&&T.to>=c)){let T=e.moveToLineBoundary(C.cursor(c),false,true).head;T>f&&(c=T);}let b=this.gapSize(u,f,c,d),M=i||b<2e6?b:2e6;m=new cs(f,c,b,M);}l.push(m);},h=f=>{if(f.length2e6)for(let v of t)v.from>=f.from&&v.fromf.from&&a(f.from,d,f,c),pe.draw(this,this.heightOracle.lineWrapping))));}computeVisibleRanges(t){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let i=[];L.spans(e,this.viewport.from,this.viewport.to,{span(r,o){i.push({from:r,to:o});},point(){}},20);let s=0;if(i.length!=this.visibleRanges.length)s=12;else for(let r=0;r=this.viewport.from&&t<=this.viewport.to&&this.viewportLines.find(e=>e.from<=t&&e.to>=t)||Ie(this.heightMap.lineAt(t,j.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(t){return t>=this.viewportLines[0].top&&t<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(e=>e.top<=t&&e.bottom>=t)||Ie(this.heightMap.lineAt(this.scaler.fromDOM(t),j.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(t){let e=this.lineBlockAtHeight(t+8);return e.from>=this.viewport.from||this.viewportLines[0].top-t>200?e:this.viewportLines[0]}elementAtHeight(t){return Ie(this.heightMap.blockAt(this.scaler.fromDOM(t),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class ui{constructor(t,e){this.from=t,this.to=e;}}function Fh(n,t,e){let i=[],s=n,r=0;return L.spans(e,n,t,{span(){},point(o,l){o>s&&(i.push({from:s,to:o}),r+=o-s),s=l;}},20),s=1)return t[t.length-1].to;let i=Math.floor(n*e);for(let s=0;;s++){let{from:r,to:o}=t[s],l=o-r;if(i<=l)return r+i;i-=l;}}function pi(n,t){let e=0;for(let{from:i,to:s}of n.ranges){if(t<=s){e+=t-i;break}e+=s-i;}return e/n.total}function zh(n,t){for(let e of n)if(t(e))return e}const wr={toDOM(n){return n},fromDOM(n){return n},scale:1,eq(n){return n==this}};function xr(n){let t=n.facet(Yi).filter(i=>typeof i!="function"),e=n.facet(Cn).filter(i=>typeof i!="function");return e.length&&t.push(L.join(e)),t}class On{constructor(t,e,i){let s=0,r=0,o=0;this.viewports=i.map(({from:l,to:a})=>{let h=e.lineAt(l,j.ByPos,t,0,0).top,f=e.lineAt(a,j.ByPos,t,0,0).bottom;return s+=f-h,{from:l,to:a,top:h,bottom:f,domTop:0,domBottom:0}}),this.scale=(7e6-s)/(e.height-s);for(let l of this.viewports)l.domTop=o+(l.top-r)*this.scale,o=l.domBottom=l.domTop+(l.bottom-l.top),r=l.bottom;}toDOM(t){for(let e=0,i=0,s=0;;e++){let r=ee.from==t.viewports[i].from&&e.to==t.viewports[i].to):false}}function Ie(n,t){if(t.scale==1)return n;let e=t.toDOM(n.top),i=t.toDOM(n.bottom);return new xt(n.from,n.length,e,i-e,Array.isArray(n._content)?n._content.map(s=>Ie(s,t)):n._content)}const gi=A.define({combine:n=>n.join(" ")}),Zs=A.define({combine:n=>n.indexOf(true)>-1}),tn=Gt.newName(),al=Gt.newName(),hl=Gt.newName(),fl={"&light":"."+al,"&dark":"."+hl};function en(n,t,e){return new Gt(t,{finish(i){return /&/.test(i)?i.replace(/&\w*/,s=>{if(s=="&")return n;if(!e||!e[s])throw new RangeError(`Unsupported selector: ${s}`);return e[s]}):n+" "+i}})}const qh=en("."+tn,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0,overflowAnchor:"none"},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#ddd"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",zIndex:200},".cm-gutters-before":{insetInlineStart:0},".cm-gutters-after":{insetInlineEnd:0},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",border:"0px solid #ddd","&.cm-gutters-before":{borderRightWidth:"1px"},"&.cm-gutters-after":{borderLeftWidth:"1px"}},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-dialog":{padding:"2px 19px 4px 6px",position:"relative","& label":{fontSize:"80%"}},".cm-dialog-close":{position:"absolute",top:"3px",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",fontSize:"14px",padding:"0"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top",userSelect:"none"},".cm-highlightSpace":{backgroundImage:"radial-gradient(circle at 50% 55%, #aaa 20%, transparent 5%)",backgroundPosition:"center"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},fl),Kh={childList:true,characterData:true,subtree:true,attributes:true,characterDataOldValue:true},us=S.ie&&S.ie_version<=11;class jh{constructor(t){this.view=t,this.active=false,this.editContext=null,this.selectionRange=new ka,this.selectionChanged=false,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=false,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=t.contentDOM,this.observer=new MutationObserver(e=>{for(let i of e)this.queue.push(i);(S.ie&&S.ie_version<=11||S.ios&&t.composing)&&e.some(i=>i.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():this.flush();}),window.EditContext&&S.android&&t.constructor.EDIT_CONTEXT!==false&&!(S.chrome&&S.chrome_version<126)&&(this.editContext=new Uh(t),t.state.facet(It)&&(t.contentDOM.editContext=this.editContext.editContext)),us&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon();}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var e;((e=this.view.docView)===null||e===void 0?void 0:e.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),e.length>0&&e[e.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")));},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(e=>{e.length>0&&e[e.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"));},{})),this.listenForScroll(),this.readSelectionRange();}onScrollChanged(t){this.view.inputState.runHandlers("scroll",t),this.intersecting&&this.view.measure();}onScroll(t){this.intersecting&&this.flush(false),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(t);}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure();},50));}onPrint(t){(t.type=="change"||!t.type)&&!t.matches||(this.view.viewState.printing=true,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=false,this.view.requestMeasure();},500));}updateGaps(t){if(this.gapIntersection&&(t.length!=this.gaps.length||this.gaps.some((e,i)=>e!=t[i]))){this.gapIntersection.disconnect();for(let e of t)this.gapIntersection.observe(e);this.gaps=t;}}onSelectionChange(t){let e=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:i}=this,s=this.selectionRange;if(i.state.facet(It)?i.root.activeElement!=this.dom:!We(this.dom,s))return;let r=s.anchorNode&&i.docView.tile.nearest(s.anchorNode);if(r&&r.isWidget()&&r.widget.ignoreEvent(t)){e||(this.selectionChanged=false);return}(S.ie&&S.ie_version<=11||S.android&&S.chrome)&&!i.state.selection.main.empty&&s.focusNode&&Fe(s.focusNode,s.focusOffset,s.anchorNode,s.anchorOffset)?this.flushSoon():this.flush(false);}readSelectionRange(){let{view:t}=this,e=ve(t.root);if(!e)return false;let i=S.safari&&t.root.nodeType==11&&t.root.activeElement==this.dom&&$h(this.view,e)||e;if(!i||this.selectionRange.eq(i))return false;let s=We(this.dom,i);return s&&!this.selectionChanged&&t.inputState.lastFocusTime>Date.now()-200&&t.inputState.lastTouchTime{let r=this.delayedAndroidKey;r&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=r.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&r.force&&we(this.dom,r.key,r.keyCode));};this.flushingAndroidKey=this.view.win.requestAnimationFrame(s);}(!this.delayedAndroidKey||t=="Enter")&&(this.delayedAndroidKey={key:t,keyCode:e,force:this.lastChange{this.delayedFlush=-1,this.flush();}));}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush();}pendingRecords(){for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}processRecords(){let t=this.pendingRecords();t.length&&(this.queue=[]);let e=-1,i=-1,s=false;for(let r of t){let o=this.readMutation(r);o&&(o.typeOver&&(s=true),e==-1?{from:e,to:i}=o:(e=Math.min(o.from,e),i=Math.max(o.to,i)));}return {from:e,to:i,typeOver:s}}readChange(){let{from:t,to:e,typeOver:i}=this.processRecords(),s=this.selectionChanged&&We(this.dom,this.selectionRange);if(t<0&&!s)return null;t>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=false;let r=new hh(this.view,t,e,i);return this.view.docView.domChanged={newSel:r.newSel?r.newSel.main:null},r}flush(t=true){if(this.delayedFlush>=0||this.delayedAndroidKey)return false;t&&this.readSelectionRange();let e=this.readChange();if(!e)return this.view.requestMeasure(),false;let i=this.view.state,s=Jo(this.view,e);return this.view.state==i&&(e.domChanged||e.newSel&&!Hi(this.view.state.selection,e.newSel.main))&&this.view.update([]),s}readMutation(t){let e=this.view.docView.tile.nearest(t.target);if(!e||e.isWidget())return null;if(e.markDirty(t.type=="attributes"),t.type=="childList"){let i=kr(e,t.previousSibling||t.target.previousSibling,-1),s=kr(e,t.nextSibling||t.target.nextSibling,1);return {from:i?e.posAfter(i):e.posAtStart,to:s?e.posBefore(s):e.posAtEnd,typeOver:false}}else return t.type=="characterData"?{from:e.posAtStart,to:e.posAtEnd,typeOver:t.target.nodeValue==t.oldValue}:null}setWindow(t){t!=this.win&&(this.removeWindowListeners(this.win),this.win=t,this.addWindowListeners(this.win));}addWindowListeners(t){t.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener("change",this.onPrint):this.printQuery.addListener(this.onPrint):t.addEventListener("beforeprint",this.onPrint),t.addEventListener("scroll",this.onScroll),t.document.addEventListener("selectionchange",this.onSelectionChange);}removeWindowListeners(t){t.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener("change",this.onPrint):this.printQuery.removeListener(this.onPrint):t.removeEventListener("beforeprint",this.onPrint),t.document.removeEventListener("selectionchange",this.onSelectionChange);}update(t){this.editContext&&(this.editContext.update(t),t.startState.facet(It)!=t.state.facet(It)&&(t.view.contentDOM.editContext=t.state.facet(It)?this.editContext.editContext:null));}destroy(){var t,e,i;this.stop(),(t=this.intersection)===null||t===void 0||t.disconnect(),(e=this.gapIntersection)===null||e===void 0||e.disconnect(),(i=this.resizeScroll)===null||i===void 0||i.disconnect();for(let s of this.scrollTargets)s.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy());}}function kr(n,t,e){for(;t;){let i=X.get(t);if(i&&i.parent==n)return i;let s=t.parentNode;t=s!=n.dom?s:e>0?t.nextSibling:t.previousSibling;}return null}function vr(n,t){let e=t.startContainer,i=t.startOffset,s=t.endContainer,r=t.endOffset,o=n.docView.domAtPos(n.state.selection.main.anchor,1);return Fe(o.node,o.offset,s,r)&&([e,i,s,r]=[s,r,e,i]),{anchorNode:e,anchorOffset:i,focusNode:s,focusOffset:r}}function $h(n,t){if(t.getComposedRanges){let s=t.getComposedRanges(n.root)[0];if(s)return vr(n,s)}let e=null;function i(s){s.preventDefault(),s.stopImmediatePropagation(),e=s.getTargetRanges()[0];}return n.contentDOM.addEventListener("beforeinput",i,true),n.dom.ownerDocument.execCommand("indent"),n.contentDOM.removeEventListener("beforeinput",i,true),e?vr(n,e):null}class Uh{constructor(t){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.composing=null,this.resetRange(t.state);let e=this.editContext=new window.EditContext({text:t.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,t.state.selection.main.anchor))),selectionEnd:this.toContextPos(t.state.selection.main.head)});this.handlers.textupdate=i=>{let s=t.state.selection.main,{anchor:r,head:o}=s,l=this.toEditorPos(i.updateRangeStart),a=this.toEditorPos(i.updateRangeEnd);t.inputState.composing>=0&&!this.composing&&(this.composing={contextBase:i.updateRangeStart,editorBase:l,drifted:false});let h=a-l>i.text.length;l==this.from&&rthis.to&&(a=r);let f=Qo(t.state.sliceDoc(l,a),i.text,(h?s.from:s.to)-l,h?"end":null);if(!f){let u=C.single(this.toEditorPos(i.selectionStart),this.toEditorPos(i.selectionEnd));Hi(u,s)||t.dispatch({selection:u,userEvent:"select"});return}let c={from:f.from+l,to:f.toA+l,insert:W.of(i.text.slice(f.from,f.toB).split(` +`))};if((S.mac||S.android)&&c.from==o-1&&/^\. ?$/.test(i.text)&&t.contentDOM.getAttribute("autocorrect")=="off"&&(c={from:l,to:a,insert:W.of([i.text.replace("."," ")])}),this.pendingContextChange=c,!t.state.readOnly){let u=this.to-this.from+(c.to-c.from+c.insert.length);Mn(t,c,C.single(this.toEditorPos(i.selectionStart,u),this.toEditorPos(i.selectionEnd,u)));}this.pendingContextChange&&(this.revertPending(t.state),this.setSelection(t.state)),c.from=0&&!/[\\p{Alphabetic}\\p{Number}_]/.test(e.text.slice(Math.max(0,i.updateRangeStart-1),Math.min(e.text.length,i.updateRangeStart+1)))&&this.handlers.compositionend(i);},this.handlers.characterboundsupdate=i=>{let s=[],r=null;for(let o=this.toEditorPos(i.rangeStart),l=this.toEditorPos(i.rangeEnd);o{let s=[];for(let r of i.getTextFormats()){let o=r.underlineStyle,l=r.underlineThickness;if(!/none/i.test(o)&&!/none/i.test(l)){let a=this.toEditorPos(r.rangeStart),h=this.toEditorPos(r.rangeEnd);if(a{t.inputState.composing<0&&(t.inputState.composing=0,t.inputState.compositionFirstChange=true);},this.handlers.compositionend=()=>{if(t.inputState.composing=-1,t.inputState.compositionFirstChange=null,this.composing){let{drifted:i}=this.composing;this.composing=null,i&&this.reset(t.state);}};for(let i in this.handlers)e.addEventListener(i,this.handlers[i]);this.measureReq={read:i=>{this.editContext.updateControlBounds(i.contentDOM.getBoundingClientRect());let s=ve(i.root);s&&s.rangeCount&&this.editContext.updateSelectionBounds(s.getRangeAt(0).getBoundingClientRect());}};}applyEdits(t){let e=0,i=false,s=this.pendingContextChange;return t.changes.iterChanges((r,o,l,a,h)=>{if(i)return;let f=h.length-(o-r);if(s&&o>=s.to)if(s.from==r&&s.to==o&&s.insert.eq(h)){s=this.pendingContextChange=null,e+=f,this.to+=f;return}else s=null,this.revertPending(t.state);if(r+=e,o+=e,o<=this.from)this.from+=f,this.to+=f;else if(rthis.to||this.to-this.from+h.length>3e4){i=true;return}this.editContext.updateText(this.toContextPos(r),this.toContextPos(o),h.toString()),this.to+=f;}e+=f;}),s&&!i&&this.revertPending(t.state),!i}update(t){let e=this.pendingContextChange,i=t.startState.selection.main;this.composing&&(this.composing.drifted||!t.changes.touchesRange(i.from,i.to)&&t.transactions.some(s=>!s.isUserEvent("input.type")&&s.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=true,this.composing.editorBase=t.changes.mapPos(this.composing.editorBase)):!this.applyEdits(t)||!this.rangeIsValid(t.state)?(this.pendingContextChange=null,this.reset(t.state)):(t.docChanged||t.selectionSet||e)&&this.setSelection(t.state),(t.geometryChanged||t.docChanged||t.selectionSet)&&t.view.requestMeasure(this.measureReq);}resetRange(t){let{head:e}=t.selection.main;this.from=Math.max(0,e-1e4),this.to=Math.min(t.doc.length,e+1e4);}reset(t){this.resetRange(t),this.editContext.updateText(0,this.editContext.text.length,t.doc.sliceString(this.from,this.to)),this.setSelection(t);}revertPending(t){let e=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(e.from),this.toContextPos(e.from+e.insert.length),t.doc.sliceString(e.from,e.to));}setSelection(t){let{main:e}=t.selection,i=this.toContextPos(Math.max(this.from,Math.min(this.to,e.anchor))),s=this.toContextPos(e.head);(this.editContext.selectionStart!=i||this.editContext.selectionEnd!=s)&&this.editContext.updateSelection(i,s);}rangeIsValid(t){let{head:e}=t.selection.main;return !(this.from>0&&e-this.from<500||this.to1e4*3)}toEditorPos(t,e=this.to-this.from){t=Math.min(t,e);let i=this.composing;return i&&i.drifted?i.editorBase+(t-i.contextBase):t+this.from}toContextPos(t){let e=this.composing;return e&&e.drifted?e.contextBase+(t-e.editorBase):t-this.from}destroy(){for(let t in this.handlers)this.editContext.removeEventListener(t,this.handlers[t]);}}class B{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return !!this.inputState&&this.inputState.composing>0}get compositionStarted(){return !!this.inputState&&this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(t={}){var e;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=false,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),t.parent&&t.parent.appendChild(this.dom);let{dispatch:i}=t;this.dispatchTransactions=t.dispatchTransactions||i&&(s=>s.forEach(r=>i(r,this)))||(s=>this.update(s)),this.dispatch=this.dispatch.bind(this),this._root=t.root||va(t.parent)||document,this.viewState=new yr(t.state||H.create(t)),t.scrollTo&&t.scrollTo.is(hi)&&(this.viewState.scrollTarget=t.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(pe).map(s=>new os(s));for(let s of this.plugins)s.update(this);this.observer=new jh(this),this.inputState=new dh(this),this.inputState.ensureHandlers(this.plugins),this.docView=new nr(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),!((e=document.fonts)===null||e===void 0)&&e.ready&&document.fonts.ready.then(()=>{this.viewState.mustMeasureContent=true,this.requestMeasure();});}dispatch(...t){let e=t.length==1&&t[0]instanceof st?t:t.length==1&&Array.isArray(t[0])?t[0]:[this.state.update(...t)];this.dispatchTransactions(e,this);}update(t){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let e=false,i=false,s,r=this.state;for(let u of t){if(u.startState!=r)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");r=u.state;}if(this.destroyed){this.viewState.state=r;return}let o=this.hasFocus,l=0,a=null;t.some(u=>u.annotation(nl))?(this.inputState.notifiedFocused=o,l=1):o!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=o,a=rl(r,o),a||(l=1));let h=this.observer.delayedAndroidKey,f=null;if(h?(this.observer.clearDelayedAndroidKey(),f=this.observer.readChange(),(f&&!this.state.doc.eq(r.doc)||!this.state.selection.eq(r.selection))&&(f=null)):this.observer.clear(),r.facet(H.phrases)!=this.state.facet(H.phrases))return this.setState(r);s=Li.create(this,r,t),s.flags|=l;let c=this.viewState.scrollTarget;try{this.updateState=2;for(let u of t){if(c&&(c=c.map(u.changes)),u.scrollIntoView){let{main:d}=u.state.selection;c=new xe(d.empty?d:C.cursor(d.head,d.head>d.anchor?-1:1));}for(let d of u.effects)d.is(hi)&&(c=d.value.clip(this.state));}this.viewState.update(s,c),this.bidiCache=Vi.update(this.bidiCache,s.changes),s.empty||(this.updatePlugins(s),this.inputState.update(s)),e=this.docView.update(s),this.state.facet(Re)!=this.styleModules&&this.mountStyles(),i=this.updateAttrs(),this.showAnnouncements(t),this.docView.updateSelection(e,t.some(u=>u.isUserEvent("select.pointer")));}finally{this.updateState=0;}if(s.startState.facet(gi)!=s.state.facet(gi)&&(this.viewState.mustMeasureContent=true),(e||i||c||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),e&&this.docViewUpdate(),!s.empty)for(let u of this.state.facet(Gs))try{u(s);}catch(d){vt(this.state,d,"update listener");}(a||f)&&Promise.resolve().then(()=>{a&&this.state==a.startState&&this.dispatch(a),f&&!Jo(this,f)&&h.force&&we(this.contentDOM,h.key,h.keyCode);});}setState(t){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=t;return}this.updateState=2;let e=this.hasFocus;try{for(let i of this.plugins)i.destroy(this);this.viewState=new yr(t),this.plugins=t.facet(pe).map(i=>new os(i)),this.pluginMap.clear();for(let i of this.plugins)i.update(this);this.docView.destroy(),this.docView=new nr(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[];}finally{this.updateState=0;}e&&this.focus(),this.requestMeasure();}updatePlugins(t){let e=t.startState.facet(pe),i=t.state.facet(pe);if(e!=i){let s=[];for(let r of i){let o=e.indexOf(r);if(o<0)s.push(new os(r));else {let l=this.plugins[o];l.mustUpdate=t,s.push(l);}}for(let r of this.plugins)r.mustUpdate!=t&&r.destroy(this);this.plugins=s,this.pluginMap.clear();}else for(let s of this.plugins)s.mustUpdate=t;for(let s=0;s-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,t&&this.observer.forceFlush();let e=null,i=this.scrollDOM,s=i.scrollTop*this.scaleY,{scrollAnchorPos:r,scrollAnchorHeight:o}=this.viewState;Math.abs(s-this.viewState.scrollTop)>1&&(o=-1),this.viewState.scrollAnchorHeight=-1;try{for(let l=0;;l++){if(o<0)if(Co(i))r=-1,o=this.viewState.heightMap.height;else {let d=this.viewState.scrollAnchorAt(s);r=d.from,o=d.top;}this.updateState=1;let a=this.viewState.measure(this);if(!a&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(l>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let h=[];a&4||([this.measureRequests,h]=[h,this.measureRequests]);let f=h.map(d=>{try{return d.read(this)}catch(p){return vt(this.state,p),Sr}}),c=Li.create(this,this.state,[]),u=!1;c.flags|=a,e?e.flags|=a:e=c,this.updateState=2,c.empty||(this.updatePlugins(c),this.inputState.update(c),this.updateAttrs(),u=this.docView.update(c),u&&this.docViewUpdate());for(let d=0;d1||p<-1){s=s+p,i.scrollTop=s/this.scaleY,o=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1;}if(e&&!e.empty)for(let l of this.state.facet(Gs))l(e);}get themeClasses(){return tn+" "+(this.state.facet(Zs)?hl:al)+" "+this.state.facet(gi)}updateAttrs(){let t=Cr(this,qo,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),e={spellcheck:"false",autocorrect:"off",autocapitalize:"off",writingsuggestions:"false",translate:"no",contenteditable:this.state.facet(It)?"true":"false",class:"cm-content",style:`${S.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(e["aria-readonly"]="true"),Cr(this,Sn,e);let i=this.observer.ignore(()=>{let s=Qn(this.contentDOM,this.contentAttrs,e),r=Qn(this.dom,this.editorAttrs,t);return s||r});return this.editorAttrs=t,this.contentAttrs=e,i}showAnnouncements(t){let e=true;for(let i of t)for(let s of i.effects)if(s.is(B.announce)){e&&(this.announceDOM.textContent=""),e=false;let r=this.announceDOM.appendChild(document.createElement("div"));r.textContent=s.value;}}mountStyles(){this.styleModules=this.state.facet(Re);let t=this.state.facet(B.cspNonce);Gt.mount(this.root,this.styleModules.concat(qh).reverse(),t?{nonce:t}:void 0);}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(false);}requestMeasure(t){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),t){if(this.measureRequests.indexOf(t)>-1)return;if(t.key!=null){for(let e=0;ei.plugin==t)||null),e&&e.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return {top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(t){return this.readMeasured(),this.viewState.elementAtHeight(t)}lineBlockAtHeight(t){return this.readMeasured(),this.viewState.lineBlockAtHeight(t)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(t){return this.viewState.lineBlockAt(t)}get contentHeight(){return this.viewState.contentHeight}moveByChar(t,e,i){return fs(this,t,rr(this,t,e,i))}moveByGroup(t,e){return fs(this,t,rr(this,t,e,i=>nh(this,t.head,i)))}visualLineSide(t,e){let i=this.bidiSpans(t),s=this.textDirectionAt(t.from),r=i[e?i.length-1:0];return C.cursor(r.side(e,s)+t.from,r.forward(!e,s)?1:-1)}moveToLineBoundary(t,e,i=true){return sh(this,t,e,i)}moveVertically(t,e,i){return fs(this,t,rh(this,t,e,i))}domAtPos(t,e=1){return this.docView.domAtPos(t,e)}posAtDOM(t,e=0){return this.docView.posFromDOM(t,e)}posAtCoords(t,e=true){this.readMeasured();let i=Js(this,t,e);return i&&i.pos}posAndSideAtCoords(t,e=true){return this.readMeasured(),Js(this,t,e)}coordsAtPos(t,e=1){this.readMeasured();let i=this.docView.coordsAt(t,e);if(!i||i.left==i.right)return i;let s=this.state.doc.lineAt(t),r=this.bidiSpans(s),o=r[Ht.find(r,t-s.from,-1,e)];return Ge(i,o.dir==$.LTR==e>0)}coordsForChar(t){return this.readMeasured(),this.docView.coordsForChar(t)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(t){return !this.state.facet(Wo)||tthis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(t))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(t){if(t.length>_h)return Bo(t.length);let e=this.textDirectionAt(t.from),i;for(let r of this.bidiCache)if(r.from==t.from&&r.dir==e&&(r.fresh||Do(r.isolates,i=er(this,t))))return r.order;i||(i=er(this,t));let s=Ba(t.text,e,i);return this.bidiCache.push(new Vi(t.from,t.to,e,i,true,s)),s}get hasFocus(){var t;return (this.dom.ownerDocument.hasFocus()||S.safari&&((t=this.inputState)===null||t===void 0?void 0:t.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{So(this.contentDOM),this.docView.updateSelection();});}setRoot(t){this._root!=t&&(this._root=t,this.observer.setWindow((t.nodeType==9?t:t.ownerDocument).defaultView||window),this.mountStyles());}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let t of this.plugins)t.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=true;}static scrollIntoView(t,e={}){return hi.of(new xe(typeof t=="number"?C.cursor(t):t,e.y,e.x,e.yMargin,e.xMargin))}scrollSnapshot(){let{scrollTop:t,scrollLeft:e}=this.scrollDOM,i=this.viewState.scrollAnchorAt(t);return hi.of(new xe(C.cursor(i.from),"start","start",i.top-t,e,true))}setTabFocusMode(t){t==null?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:typeof t=="boolean"?this.inputState.tabFocusMode=t?0:-1:this.inputState.tabFocusMode!=0&&(this.inputState.tabFocusMode=Date.now()+t);}static domEventHandlers(t){return nt.define(()=>({}),{eventHandlers:t})}static domEventObservers(t){return nt.define(()=>({}),{eventObservers:t})}static theme(t,e){let i=Gt.newName(),s=[gi.of(i),Re.of(en(`.${i}`,t))];return e&&e.dark&&s.push(Zs.of(true)),s}static baseTheme(t){return $i.lowest(Re.of(en("."+tn,t,fl)))}static findFromDOM(t){var e;let i=t.querySelector(".cm-content"),s=i&&X.get(i)||X.get(t);return ((e=s?.root)===null||e===void 0?void 0:e.view)||null}}B.styleModule=Re;B.inputHandler=No;B.clipboardInputFilter=kn;B.clipboardOutputFilter=vn;B.scrollHandler=Fo;B.focusChangeEffect=Ho;B.perLineTextDirection=Wo;B.exceptionSink=Io;B.updateListener=Gs;B.editable=It;B.mouseSelectionStyle=Lo;B.dragMovesSelection=Ro;B.clickAddsSelectionRange=Po;B.decorations=Yi;B.blockWrappers=Ko;B.outerDecorations=Cn;B.atomicRanges=ii;B.bidiIsolatedRanges=jo;B.scrollMargins=$o;B.darkTheme=Zs;B.cspNonce=A.define({combine:n=>n.length?n[0]:""});B.contentAttributes=Sn;B.editorAttributes=qo;B.lineWrapping=B.contentAttributes.of({class:"cm-lineWrapping"});B.announce=U.define();const _h=4096,Sr={};class Vi{constructor(t,e,i,s,r,o){this.from=t,this.to=e,this.dir=i,this.isolates=s,this.fresh=r,this.order=o;}static update(t,e){if(e.empty&&!t.some(r=>r.fresh))return t;let i=[],s=t.length?t[t.length-1].dir:$.LTR;for(let r=Math.max(0,t.length-10);r=0;s--){let r=i[s],o=typeof r=="function"?r(n):r;o&&yn(o,e);}return e}const Gh=S.mac?"mac":S.windows?"win":S.linux?"linux":"key";function Yh(n,t){const e=n.split(/-(?!$)/);let i=e[e.length-1];i=="Space"&&(i=" ");let s,r,o,l;for(let a=0;ai.concat(s),[]))),e}let jt=null;const Zh=4e3;function tf(n,t=Gh){let e=Object.create(null),i=Object.create(null),s=(o,l)=>{let a=i[o];if(a==null)i[o]=l;else if(a!=l)throw new Error("Key binding "+o+" is used both as a regular binding and as a multi-stroke prefix")},r=(o,l,a,h,f)=>{var c,u;let d=e[o]||(e[o]=Object.create(null)),p=l.split(/ (?!$)/).map(b=>Yh(b,t));for(let b=1;b{let D=jt={view:T,prefix:M,scope:o};return setTimeout(()=>{jt==D&&(jt=null);},Zh),true}]});}let g=p.join(" ");s(g,false);let m=d[g]||(d[g]={preventDefault:false,stopPropagation:false,run:((u=(c=d._any)===null||c===void 0?void 0:c.run)===null||u===void 0?void 0:u.slice())||[]});a&&m.run.push(a),h&&(m.preventDefault=true),f&&(m.stopPropagation=true);};for(let o of n){let l=o.scope?o.scope.split(" "):["editor"];if(o.any)for(let h of l){let f=e[h]||(e[h]=Object.create(null));f._any||(f._any={preventDefault:false,stopPropagation:false,run:[]});let{any:c}=o;for(let u in f)f[u].run.push(d=>c(d,sn));}let a=o[t]||o.key;if(a)for(let h of l)r(h,a,o.run,o.preventDefault,o.stopPropagation),o.shift&&r(h,"Shift-"+a,o.shift,o.preventDefault,o.stopPropagation);}return e}let sn=null;function ef(n,t,e,i){sn=t;let s=da(t),r=ro(s,0),o=Jl(r)==s.length&&s!=" ",l="",a=false,h=false,f=false;jt&&jt.view==e&&jt.scope==i&&(l=jt.prefix+" ",tl.indexOf(t.keyCode)<0&&(h=true,jt=null));let c=new Set,u=m=>{if(m){for(let b of m.run)if(!c.has(b)&&(c.add(b),b(e)))return m.stopPropagation&&(f=true),true;m.preventDefault&&(m.stopPropagation&&(f=true),h=true);}return false},d=n[i],p,g;return d&&(u(d[l+mi(s,t,!o)])?a=true:o&&(t.altKey||t.metaKey||t.ctrlKey)&&!(S.windows&&t.ctrlKey&&t.altKey)&&!(S.mac&&t.altKey&&!(t.ctrlKey||t.metaKey))&&(p=Yt[t.keyCode])&&p!=s?(u(d[l+mi(p,t,true)])||t.shiftKey&&(g=Ue[t.keyCode])!=s&&g!=p&&u(d[l+mi(g,t,false)]))&&(a=true):o&&t.shiftKey&&u(d[l+mi(s,t,true)])&&(a=true),!a&&u(d._any)&&(a=true)),h&&(a=true),a&&f&&t.stopPropagation(),sn=null,a}class si{constructor(t,e,i,s,r){this.className=t,this.left=e,this.top=i,this.width=s,this.height=r;}draw(){let t=document.createElement("div");return t.className=this.className,this.adjust(t),t}update(t,e){return e.className!=this.className?false:(this.adjust(t),true)}adjust(t){t.style.left=this.left+"px",t.style.top=this.top+"px",this.width!=null&&(t.style.width=this.width+"px"),t.style.height=this.height+"px";}eq(t){return this.left==t.left&&this.top==t.top&&this.width==t.width&&this.height==t.height&&this.className==t.className}static forRange(t,e,i){if(i.empty){let s=t.coordsAtPos(i.head,i.assoc||1);if(!s)return [];let r=cl(t);return [new si(e,s.left-r.left,s.top-r.top,null,s.bottom-s.top)]}else return sf(t,e,i)}}function cl(n){let t=n.scrollDOM.getBoundingClientRect();return {left:(n.textDirection==$.LTR?t.left:t.right-n.scrollDOM.clientWidth*n.scaleX)-n.scrollDOM.scrollLeft*n.scaleX,top:t.top-n.scrollDOM.scrollTop*n.scaleY}}function Mr(n,t,e,i){let s=n.coordsAtPos(t,e*2);if(!s)return i;let r=n.dom.getBoundingClientRect(),o=(s.top+s.bottom)/2,l=n.posAtCoords({x:r.left+1,y:o}),a=n.posAtCoords({x:r.right-1,y:o});return l==null||a==null?i:{from:Math.max(i.from,Math.min(l,a)),to:Math.min(i.to,Math.max(l,a))}}function sf(n,t,e){if(e.to<=n.viewport.from||e.from>=n.viewport.to)return [];let i=Math.max(e.from,n.viewport.from),s=Math.min(e.to,n.viewport.to),r=n.textDirection==$.LTR,o=n.contentDOM,l=o.getBoundingClientRect(),a=cl(n),h=o.querySelector(".cm-line"),f=h&&window.getComputedStyle(h),c=l.left+(f?parseInt(f.paddingLeft)+Math.min(0,parseInt(f.textIndent)):0),u=l.right-(f?parseInt(f.paddingRight):0),d=Xs(n,i,1),p=Xs(n,s,-1),g=d.type==et.Text?d:null,m=p.type==et.Text?p:null;if(g&&(n.lineWrapping||d.widgetLineBreaks)&&(g=Mr(n,i,1,g)),m&&(n.lineWrapping||p.widgetLineBreaks)&&(m=Mr(n,s,-1,m)),g&&m&&g.from==m.from&&g.to==m.to)return M(T(e.from,e.to,g));{let w=g?T(e.from,null,g):D(d,false),v=m?T(null,e.to,m):D(p,true),x=[];return (g||d).to<(m||p).from-(g&&m?1:0)||d.widgetLineBreaks>1&&w.bottom+n.defaultLineHeight/2O&&N.from=rt)break;dt>K&&P(Math.max(Q,K),w==null&&Q<=O,Math.min(dt,rt),v==null&&dt>=V,At.dir);}if(K=ct.to+1,K>=rt)break}return z.length==0&&P(O,w==null,V,v==null,n.textDirection),{top:E,bottom:R,horizontal:z}}function D(w,v){let x=l.top+(v?w.top:w.bottom);return {top:x,bottom:x,horizontal:[]}}}function nf(n,t){return n.constructor==t.constructor&&n.eq(t)}class rf{constructor(t,e){this.view=t,this.layer=e,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=t.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),e.above&&this.dom.classList.add("cm-layer-above"),e.class&&this.dom.classList.add(e.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(t.state),t.requestMeasure(this.measureReq),e.mount&&e.mount(this.dom,t);}update(t){t.startState.facet(Ti)!=t.state.facet(Ti)&&this.setOrder(t.state),(this.layer.update(t,this.dom)||t.geometryChanged)&&(this.scale(),t.view.requestMeasure(this.measureReq));}docViewUpdate(t){this.layer.updateOnDocViewUpdate!==false&&t.requestMeasure(this.measureReq);}setOrder(t){let e=0,i=t.facet(Ti);for(;e!nf(e,this.drawn[i]))){let e=this.dom.firstChild,i=0;for(let s of t)s.update&&e&&s.constructor&&this.drawn[i].constructor&&s.update(e,this.drawn[i])?(e=e.nextSibling,i++):this.dom.insertBefore(s.draw(),e);for(;e;){let s=e.nextSibling;e.remove(),e=s;}this.drawn=t,S.safari&&S.safari_version>=26&&(this.dom.style.display=this.dom.firstChild?"":"none");}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove();}}const Ti=A.define();function ul(n){return [nt.define(t=>new rf(t,n)),Ti.of(n)]}const Xe=A.define({combine(n){return _i(n,{cursorBlinkRate:1200,drawRangeCursor:true},{cursorBlinkRate:(t,e)=>Math.min(t,e),drawRangeCursor:(t,e)=>t||e})}});function Jc(n={}){return [Xe.of(n),of,lf,af,Vo.of(true)]}function dl(n){return n.startState.facet(Xe)!=n.state.facet(Xe)}const of=ul({above:true,markers(n){let{state:t}=n,e=t.facet(Xe),i=[];for(let s of t.selection.ranges){let r=s==t.selection.main;if(s.empty||e.drawRangeCursor){let o=r?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",l=s.empty?s:C.cursor(s.head,s.head>s.anchor?-1:1);for(let a of si.forRange(n,o,l))i.push(a);}}return i},update(n,t){n.transactions.some(i=>i.selection)&&(t.style.animationName=t.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let e=dl(n);return e&&Tr(n.state,t),n.docChanged||n.selectionSet||e},mount(n,t){Tr(t.state,n);},class:"cm-cursorLayer"});function Tr(n,t){t.style.animationDuration=n.facet(Xe).cursorBlinkRate+"ms";}const lf=ul({above:false,markers(n){return n.state.selection.ranges.map(t=>t.empty?[]:si.forRange(n,"cm-selectionBackground",t)).reduce((t,e)=>t.concat(e))},update(n,t){return n.docChanged||n.selectionSet||n.viewportChanged||dl(n)},class:"cm-selectionLayer"}),af=$i.highest(B.theme({".cm-line":{"& ::selection, &::selection":{backgroundColor:"transparent !important"},caretColor:"transparent !important"},".cm-content":{caretColor:"transparent !important","& :focus":{caretColor:"initial !important","&::selection, & ::selection":{backgroundColor:"Highlight !important"}}}}));function Or(n,t,e,i,s){t.lastIndex=0;for(let r=n.iterRange(e,i),o=e,l;!r.next().done;o+=r.value.length)if(!r.lineBreak)for(;l=t.exec(r.value);)s(o+l.index,l);}function hf(n,t){let e=n.visibleRanges;if(e.length==1&&e[0].from==n.viewport.from&&e[0].to==n.viewport.to)return e;let i=[];for(let{from:s,to:r}of e)s=Math.max(n.state.doc.lineAt(s).from,s-t),r=Math.min(n.state.doc.lineAt(r).to,r+t),i.length&&i[i.length-1].to>=s?i[i.length-1].to=r:i.push({from:s,to:r});return i}class ff{constructor(t){const{regexp:e,decoration:i,decorate:s,boundary:r,maxLength:o=1e3}=t;if(!e.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=e,s)this.addMatch=(l,a,h,f)=>s(f,h,h+l[0].length,l,a);else if(typeof i=="function")this.addMatch=(l,a,h,f)=>{let c=i(l,a,h);c&&f(h,h+l[0].length,c);};else if(i)this.addMatch=(l,a,h,f)=>f(h,h+l[0].length,i);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=r,this.maxLength=o;}createDeco(t){let e=new ae,i=e.add.bind(e);for(let{from:s,to:r}of hf(t,this.maxLength))Or(t.state.doc,this.regexp,s,r,(o,l)=>this.addMatch(l,t,o,i));return e.finish()}updateDeco(t,e){let i=1e9,s=-1;return t.docChanged&&t.changes.iterChanges((r,o,l,a)=>{a>=t.view.viewport.from&&l<=t.view.viewport.to&&(i=Math.min(l,i),s=Math.max(a,s));}),t.viewportMoved||s-i>1e3?this.createDeco(t.view):s>-1?this.updateRange(t.view,e.map(t.changes),i,s):e}updateRange(t,e,i,s){for(let r of t.visibleRanges){let o=Math.max(r.from,i),l=Math.min(r.to,s);if(l>=o){let a=t.state.doc.lineAt(o),h=a.toa.from;o--)if(this.boundary.test(a.text[o-1-a.from])){f=o;break}for(;lu.push(b.range(g,m));if(a==h)for(this.regexp.lastIndex=f-a.from;(d=this.regexp.exec(a.text))&&d.indexthis.addMatch(m,t,g,p));e=e.update({filterFrom:f,filterTo:c,filter:(g,m)=>gc,add:u});}}return e}}const nn=/x/.unicode!=null?"gu":"g",cf=new RegExp(`[\0-\b +--Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`,nn),uf={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let ds=null;function df(){var n;if(ds==null&&typeof document<"u"&&document.body){let t=document.body.style;ds=((n=t.tabSize)!==null&&n!==void 0?n:t.MozTabSize)!=null;}return ds||false}const Oi=A.define({combine(n){let t=_i(n,{render:null,specialChars:cf,addSpecialChars:null});return (t.replaceTabs=!df())&&(t.specialChars=new RegExp(" |"+t.specialChars.source,nn)),t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,nn)),t}});function Qc(n={}){return [Oi.of(n),pf()]}let Dr=null;function pf(){return Dr||(Dr=nt.fromClass(class{constructor(n){this.view=n,this.decorations=F.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(n.state.facet(Oi)),this.decorations=this.decorator.createDeco(n);}makeDecorator(n){return new ff({regexp:n.specialChars,decoration:(t,e,i)=>{let{doc:s}=e.state,r=ro(t[0],0);if(r==9){let o=s.lineAt(i),l=e.state.tabSize,a=bn(o.text,l,i-o.from);return F.replace({widget:new yf((l-a%l)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[r]||(this.decorationCache[r]=F.replace({widget:new bf(n,r)}))},boundary:n.replaceTabs?void 0:/[^]/})}update(n){let t=n.state.facet(Oi);n.startState.facet(Oi)!=t?(this.decorator=this.makeDecorator(t),this.decorations=this.decorator.createDeco(n.view)):this.decorations=this.decorator.updateDeco(n,this.decorations);}},{decorations:n=>n.decorations}))}const gf="•";function mf(n){return n>=32?gf:n==10?"␤":String.fromCharCode(9216+n)}class bf extends zt{constructor(t,e){super(),this.options=t,this.code=e;}eq(t){return t.code==this.code}toDOM(t){let e=mf(this.code),i=t.state.phrase("Control character")+" "+(uf[this.code]||"0x"+this.code.toString(16)),s=this.options.render&&this.options.render(this.code,i,e);if(s)return s;let r=document.createElement("span");return r.textContent=e,r.title=i,r.setAttribute("aria-label",i),r.className="cm-specialChar",r}ignoreEvent(){return false}}class yf extends zt{constructor(t){super(),this.width=t;}eq(t){return t.width==this.width}toDOM(){let t=document.createElement("span");return t.textContent=" ",t.className="cm-tab",t.style.width=this.width+"px",t}ignoreEvent(){return false}}const rn=2e3;function xf(n,t,e){let i=Math.min(t.line,e.line),s=Math.max(t.line,e.line),r=[];if(t.off>rn||e.off>rn||t.col<0||e.col<0){let o=Math.min(t.off,e.off),l=Math.max(t.off,e.off);for(let a=i;a<=s;a++){let h=n.doc.line(a);h.length<=l&&r.push(C.range(h.from+o,h.to+l));}}else {let o=Math.min(t.col,e.col),l=Math.max(t.col,e.col);for(let a=i;a<=s;a++){let h=n.doc.line(a),f=Hs(h.text,o,n.tabSize,true);if(f<0)r.push(C.cursor(h.to));else {let c=Hs(h.text,l,n.tabSize);r.push(C.range(h.from+f,h.from+c));}}}return r}function kf(n,t){let e=n.coordsAtPos(n.viewport.from);return e?Math.round(Math.abs((e.left-t)/n.defaultCharacterWidth)):-1}function Br(n,t){let e=n.posAtCoords({x:t.clientX,y:t.clientY},false),i=n.state.doc.lineAt(e),s=e-i.from,r=s>rn?-1:s==i.length?kf(n,t.clientX):bn(i.text,n.state.tabSize,e-i.from);return {line:i.number,col:r,off:s}}function vf(n,t){let e=Br(n,t),i=n.state.selection;return e?{update(s){if(s.docChanged){let r=s.changes.mapPos(s.startState.doc.line(e.line).from),o=s.state.doc.lineAt(r);e={line:o.number,col:e.col,off:Math.min(e.off,o.length)},i=i.map(s.changes);}},get(s,r,o){let l=Br(n,s);if(!l)return i;let a=xf(n.state,e,l);return a.length?o?C.create(a.concat(i.ranges)):C.create(a):i}}:null}function tu(n){let t=(e=>e.altKey&&e.button==0);return B.mouseSelectionStyle.of((e,i)=>t(i)?vf(e,i):null)}const Sf={Alt:[18,n=>!!n.altKey],Control:[17,n=>!!n.ctrlKey],Shift:[16,n=>!!n.shiftKey],Meta:[91,n=>!!n.metaKey]},Cf={style:"cursor: crosshair"};function eu(n={}){let[t,e]=Sf[n.key||"Alt"],i=nt.fromClass(class{constructor(s){this.view=s,this.isDown=false;}set(s){this.isDown!=s&&(this.isDown=s,this.view.update([]));}},{eventObservers:{keydown(s){this.set(s.keyCode==t||e(s));},keyup(s){(s.keyCode==t||!e(s))&&this.set(false);},mousemove(s){this.set(e(s));}}});return [i,B.contentAttributes.of(s=>{var r;return !((r=s.plugin(i))===null||r===void 0)&&r.isDown?Cf:null})]}const bi="-10000px";class pl{constructor(t,e,i,s){this.facet=e,this.createTooltipView=i,this.removeTooltipView=s,this.input=t.state.facet(e),this.tooltips=this.input.filter(o=>o);let r=null;this.tooltipViews=this.tooltips.map(o=>r=i(o,r));}update(t,e){var i;let s=t.state.facet(this.facet),r=s.filter(a=>a);if(s===this.input){for(let a of this.tooltipViews)a.update&&a.update(t);return false}let o=[],l=e?[]:null;for(let a=0;ae[h]=a),e.length=l.length),this.input=s,this.tooltips=r,this.tooltipViews=o,true}}function Af(n){let t=n.dom.ownerDocument.documentElement;return {top:0,left:0,bottom:t.clientHeight,right:t.clientWidth}}const ps=A.define({combine:n=>{var t,e,i;return {position:S.ios?"absolute":((t=n.find(s=>s.position))===null||t===void 0?void 0:t.position)||"fixed",parent:((e=n.find(s=>s.parent))===null||e===void 0?void 0:e.parent)||null,tooltipSpace:((i=n.find(s=>s.tooltipSpace))===null||i===void 0?void 0:i.tooltipSpace)||Af}}}),Er=new WeakMap,Dn=nt.fromClass(class{constructor(n){this.view=n,this.above=[],this.inView=true,this.madeAbsolute=false,this.lastTransaction=0,this.measureTimeout=-1;let t=n.state.facet(ps);this.position=t.position,this.parent=t.parent,this.classes=n.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new pl(n,gl,(e,i)=>this.createTooltip(e,i),e=>{this.resizeObserver&&this.resizeObserver.unobserve(e.dom),e.dom.remove();}),this.above=this.manager.tooltips.map(e=>!!e.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(e=>{Date.now()>this.lastTransaction-50&&e.length>0&&e[e.length-1].intersectionRatio<1&&this.measureSoon();},{threshold:[1]}):null,this.observeIntersection(),n.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure();}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom;}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let n of this.manager.tooltipViews)this.intersectionObserver.observe(n.dom);}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure();},50));}update(n){n.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(n,this.above);t&&this.observeIntersection();let e=t||n.geometryChanged,i=n.state.facet(ps);if(i.position!=this.position&&!this.madeAbsolute){this.position=i.position;for(let s of this.manager.tooltipViews)s.dom.style.position=this.position;e=true;}if(i.parent!=this.parent){this.parent&&this.container.remove(),this.parent=i.parent,this.createContainer();for(let s of this.manager.tooltipViews)this.container.appendChild(s.dom);e=true;}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);e&&this.maybeMeasure();}createTooltip(n,t){let e=n.create(this.view),i=t?t.dom:null;if(e.dom.classList.add("cm-tooltip"),n.arrow&&!e.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let s=document.createElement("div");s.className="cm-tooltip-arrow",e.dom.appendChild(s);}return e.dom.style.position=this.position,e.dom.style.top=bi,e.dom.style.left="0px",this.container.insertBefore(e.dom,i),e.mount&&e.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(e.dom),e}destroy(){var n,t,e;this.view.win.removeEventListener("resize",this.measureSoon);for(let i of this.manager.tooltipViews)i.dom.remove(),(n=i.destroy)===null||n===void 0||n.call(i);this.parent&&this.container.remove(),(t=this.resizeObserver)===null||t===void 0||t.disconnect(),(e=this.intersectionObserver)===null||e===void 0||e.disconnect(),clearTimeout(this.measureTimeout);}readMeasure(){let n=1,t=1,e=false;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:r}=this.manager.tooltipViews[0];if(S.safari){let o=r.getBoundingClientRect();e=Math.abs(o.top+1e4)>1||Math.abs(o.left)>1;}else e=!!r.offsetParent&&r.offsetParent!=this.container.ownerDocument.body;}if(e||this.position=="absolute")if(this.parent){let r=this.parent.getBoundingClientRect();r.width&&r.height&&(n=r.width/this.parent.offsetWidth,t=r.height/this.parent.offsetHeight);}else ({scaleX:n,scaleY:t}=this.view.viewState);let i=this.view.scrollDOM.getBoundingClientRect(),s=An(this.view);return {visible:{left:i.left+s.left,top:i.top+s.top,right:i.right-s.right,bottom:i.bottom-s.bottom},parent:this.parent?this.container.getBoundingClientRect():this.view.dom.getBoundingClientRect(),pos:this.manager.tooltips.map((r,o)=>{let l=this.manager.tooltipViews[o];return l.getCoords?l.getCoords(r.pos):this.view.coordsAtPos(r.pos)}),size:this.manager.tooltipViews.map(({dom:r})=>r.getBoundingClientRect()),space:this.view.state.facet(ps).tooltipSpace(this.view),scaleX:n,scaleY:t,makeAbsolute:e}}writeMeasure(n){var t;if(n.makeAbsolute){this.madeAbsolute=true,this.position="absolute";for(let l of this.manager.tooltipViews)l.dom.style.position="absolute";}let{visible:e,space:i,scaleX:s,scaleY:r}=n,o=[];for(let l=0;l=Math.min(e.bottom,i.bottom)||c.rightMath.min(e.right,i.right)+.1)){f.style.top=bi;continue}let d=a.arrow?h.dom.querySelector(".cm-tooltip-arrow"):null,p=d?7:0,g=u.right-u.left,m=(t=Er.get(h))!==null&&t!==void 0?t:u.bottom-u.top,b=h.offset||Tf,M=this.view.textDirection==$.LTR,T=u.width>i.right-i.left?M?i.left:i.right-u.width:M?Math.max(i.left,Math.min(c.left-(d?14:0)+b.x,i.right-g)):Math.min(Math.max(i.left,c.left-g+(d?14:0)-b.x),i.right-g),D=this.above[l];!a.strictSide&&(D?c.top-m-p-b.yi.bottom)&&D==i.bottom-c.bottom>c.top-i.top&&(D=this.above[l]=!D);let w=(D?c.top-i.top:i.bottom-c.bottom)-p;if(wT&&E.topv&&(v=D?E.top-m-2-p:E.bottom+p+2);if(this.position=="absolute"?(f.style.top=(v-n.parent.top)/r+"px",Pr(f,(T-n.parent.left)/s)):(f.style.top=v/r+"px",Pr(f,T/s)),d){let E=c.left+(M?b.x:-b.x)-(T+14-7);d.style.left=E/s+"px";}h.overlap!==true&&o.push({left:T,top:v,right:x,bottom:v+m}),f.classList.toggle("cm-tooltip-above",D),f.classList.toggle("cm-tooltip-below",!D),h.positioned&&h.positioned(n.space);}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let n of this.manager.tooltipViews)n.dom.style.top=bi;}},{eventObservers:{scroll(){this.maybeMeasure();}}});function Pr(n,t){let e=parseInt(n.style.left,10);(isNaN(e)||Math.abs(t-e)>1)&&(n.style.left=t+"px");}const Mf=B.baseTheme({".cm-tooltip":{zIndex:500,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:"14px",position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),Tf={x:0,y:0},gl=A.define({enables:[Dn,Mf]}),Fi=A.define({combine:n=>n.reduce((t,e)=>t.concat(e),[])});class Zi{static create(t){return new Zi(t)}constructor(t){this.view=t,this.mounted=false,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new pl(t,Fi,(e,i)=>this.createHostedView(e,i),e=>e.dom.remove());}createHostedView(t,e){let i=t.create(this.view);return i.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(i.dom,e?e.dom.nextSibling:this.dom.firstChild),this.mounted&&i.mount&&i.mount(this.view),i}mount(t){for(let e of this.manager.tooltipViews)e.mount&&e.mount(t);this.mounted=true;}positioned(t){for(let e of this.manager.tooltipViews)e.positioned&&e.positioned(t);}update(t){this.manager.update(t);}destroy(){var t;for(let e of this.manager.tooltipViews)(t=e.destroy)===null||t===void 0||t.call(e);}passProp(t){let e;for(let i of this.manager.tooltipViews){let s=i[t];if(s!==void 0){if(e===void 0)e=s;else if(e!==s)return}}return e}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const Of=gl.compute([Fi],n=>{let t=n.facet(Fi);return t.length===0?null:{pos:Math.min(...t.map(e=>e.pos)),end:Math.max(...t.map(e=>{var i;return (i=e.end)!==null&&i!==void 0?i:e.pos})),create:Zi.create,above:t[0].above,arrow:t.some(e=>e.arrow)}});class Df{constructor(t,e,i,s,r){this.view=t,this.source=e,this.field=i,this.setHover=s,this.hoverTime=r,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:t.dom,time:0},this.checkHover=this.checkHover.bind(this),t.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),t.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this));}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20));}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let t=Date.now()-this.lastMove.time;tl.bottom||e.xl.right+t.defaultCharacterWidth)return;let a=t.bidiSpans(t.state.doc.lineAt(s)).find(f=>f.from<=s&&f.to>=s),h=a&&a.dir==$.RTL?-1:1;r=e.x{this.pending==l&&(this.pending=null,a&&!(Array.isArray(a)&&!a.length)&&t.dispatch({effects:this.setHover.of(Array.isArray(a)?a:[a])}));},a=>vt(t.state,a,"hover tooltip"));}else o&&!(Array.isArray(o)&&!o.length)&&t.dispatch({effects:this.setHover.of(Array.isArray(o)?o:[o])});}get tooltip(){let t=this.view.plugin(Dn),e=t?t.manager.tooltips.findIndex(i=>i.create==Zi.create):-1;return e>-1?t.manager.tooltipViews[e]:null}mousemove(t){var e,i;this.lastMove={x:t.clientX,y:t.clientY,target:t.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:s,tooltip:r}=this;if(s.length&&r&&!Bf(r.dom,t)||this.pending){let{pos:o}=s[0]||this.pending,l=(i=(e=s[0])===null||e===void 0?void 0:e.end)!==null&&i!==void 0?i:o;(o==l?this.view.posAtCoords(this.lastMove)!=o:!Ef(this.view,o,l,t.clientX,t.clientY))&&(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null);}}mouseleave(t){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:e}=this;if(e.length){let{tooltip:i}=this;i&&i.dom.contains(t.relatedTarget)?this.watchTooltipLeave(i.dom):this.view.dispatch({effects:this.setHover.of([])});}}watchTooltipLeave(t){let e=i=>{t.removeEventListener("mouseleave",e),this.active.length&&!this.view.dom.contains(i.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])});};t.addEventListener("mouseleave",e);}destroy(){clearTimeout(this.hoverTimeout),clearTimeout(this.restartTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove);}}const yi=4;function Bf(n,t){let{left:e,right:i,top:s,bottom:r}=n.getBoundingClientRect(),o;if(o=n.querySelector(".cm-tooltip-arrow")){let l=o.getBoundingClientRect();s=Math.min(l.top,s),r=Math.max(l.bottom,r);}return t.clientX>=e-yi&&t.clientX<=i+yi&&t.clientY>=s-yi&&t.clientY<=r+yi}function Ef(n,t,e,i,s,r){let o=n.scrollDOM.getBoundingClientRect(),l=n.documentTop+n.documentPadding.top+n.contentHeight;if(o.left>i||o.rights||Math.min(o.bottom,l)=t&&a<=e}function iu(n,t={}){let e=U.define(),i=Ft.define({create(){return []},update(s,r){if(s.length&&(t.hideOnChange&&(r.docChanged||r.selection)?s=[]:t.hideOn&&(s=s.filter(o=>!t.hideOn(r,o))),r.docChanged)){let o=[];for(let l of s){let a=r.changes.mapPos(l.pos,-1,at.TrackDel);if(a!=null){let h=Object.assign(Object.create(null),l);h.pos=a,h.end!=null&&(h.end=r.changes.mapPos(h.end)),o.push(h);}}s=o;}for(let o of r.effects)o.is(e)&&(s=o.value),o.is(Pf)&&(s=[]);return s},provide:s=>Fi.from(s)});return {active:i,extension:[i,nt.define(s=>new Df(s,n,i,e,t.hoverTime||300)),Of]}}function su(n,t){let e=n.plugin(Dn);if(!e)return null;let i=e.manager.tooltips.indexOf(t);return i<0?null:e.manager.tooltipViews[i]}const Pf=U.define(),Rr=A.define({combine(n){let t,e;for(let i of n)t=t||i.topContainer,e=e||i.bottomContainer;return {topContainer:t,bottomContainer:e}}});function nu(n,t){let e=n.plugin(ml),i=e?e.specs.indexOf(t):-1;return i>-1?e.panels[i]:null}const ml=nt.fromClass(class{constructor(n){this.input=n.state.facet(Ir),this.specs=this.input.filter(e=>e),this.panels=this.specs.map(e=>e(n));let t=n.state.facet(Rr);this.top=new wi(n,true,t.topContainer),this.bottom=new wi(n,false,t.bottomContainer),this.top.sync(this.panels.filter(e=>e.top)),this.bottom.sync(this.panels.filter(e=>!e.top));for(let e of this.panels)e.dom.classList.add("cm-panel"),e.mount&&e.mount();}update(n){let t=n.state.facet(Rr);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new wi(n.view,true,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new wi(n.view,false,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let e=n.state.facet(Ir);if(e!=this.input){let i=e.filter(a=>a),s=[],r=[],o=[],l=[];for(let a of i){let h=this.specs.indexOf(a),f;h<0?(f=a(n.view),l.push(f)):(f=this.panels[h],f.update&&f.update(n)),s.push(f),(f.top?r:o).push(f);}this.specs=i,this.panels=s,this.top.sync(r),this.bottom.sync(o);for(let a of l)a.dom.classList.add("cm-panel"),a.mount&&a.mount();}else for(let i of this.panels)i.update&&i.update(n);}destroy(){this.top.sync([]),this.bottom.sync([]);}},{provide:n=>B.scrollMargins.of(t=>{let e=t.plugin(n);return e&&{top:e.top.scrollMargin(),bottom:e.bottom.scrollMargin()}})});class wi{constructor(t,e,i){this.view=t,this.top=e,this.container=i,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses();}sync(t){for(let e of this.panels)e.destroy&&t.indexOf(e)<0&&e.destroy();this.panels=t,this.syncDOM();}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let e=this.container||this.view.dom;e.insertBefore(this.dom,this.top?e.firstChild:null);}let t=this.dom.firstChild;for(let e of this.panels)if(e.dom.parentNode==this.dom){for(;t!=e.dom;)t=Lr(t);t=t.nextSibling;}else this.dom.insertBefore(e.dom,t);for(;t;)t=Lr(t);}scrollMargin(){return !this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let t of this.classes.split(" "))t&&this.container.classList.remove(t);for(let t of (this.classes=this.view.themeClasses).split(" "))t&&this.container.classList.add(t);}}}function Lr(n){let t=n.nextSibling;return n.remove(),t}const Ir=A.define({enables:ml});class Jt extends le{compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}eq(t){return false}destroy(t){}}Jt.prototype.elementClass="";Jt.prototype.toDOM=void 0;Jt.prototype.mapMode=at.TrackBefore;Jt.prototype.startSide=Jt.prototype.endSide=-1;Jt.prototype.point=true;const gs=A.define(),Rf=A.define(),Lf={class:"",renderEmptyElements:false,elementStyle:"",markers:()=>L.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{},side:"before"},qe=A.define();function If(n){return [bl(),qe.of({...Lf,...n})]}const Nr=A.define({combine:n=>n.some(t=>t)});function bl(n){return [Nf]}const Nf=nt.fromClass(class{constructor(n){this.view=n,this.domAfter=null,this.prevViewport=n.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters cm-gutters-before",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=n.state.facet(qe).map(t=>new Wr(n,t)),this.fixed=!n.state.facet(Nr);for(let t of this.gutters)t.config.side=="after"?this.getDOMAfter().appendChild(t.dom):this.dom.appendChild(t.dom);this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(false),n.scrollDOM.insertBefore(this.dom,n.contentDOM);}getDOMAfter(){return this.domAfter||(this.domAfter=document.createElement("div"),this.domAfter.className="cm-gutters cm-gutters-after",this.domAfter.setAttribute("aria-hidden","true"),this.domAfter.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.domAfter.style.position=this.fixed?"sticky":"",this.view.scrollDOM.appendChild(this.domAfter)),this.domAfter}update(n){if(this.updateGutters(n)){let t=this.prevViewport,e=n.view.viewport,i=Math.min(t.to,e.to)-Math.max(t.from,e.from);this.syncGutters(i<(e.to-e.from)*.8);}if(n.geometryChanged){let t=this.view.contentHeight/this.view.scaleY+"px";this.dom.style.minHeight=t,this.domAfter&&(this.domAfter.style.minHeight=t);}this.view.state.facet(Nr)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":"",this.domAfter&&(this.domAfter.style.position=this.fixed?"sticky":"")),this.prevViewport=n.view.viewport;}syncGutters(n){let t=this.dom.nextSibling;n&&(this.dom.remove(),this.domAfter&&this.domAfter.remove());let e=L.iter(this.view.state.facet(gs),this.view.viewport.from),i=[],s=this.gutters.map(r=>new Hf(r,this.view.viewport,-this.view.documentPadding.top));for(let r of this.view.viewportLineBlocks)if(i.length&&(i=[]),Array.isArray(r.type)){let o=true;for(let l of r.type)if(l.type==et.Text&&o){on(e,i,l.from);for(let a of s)a.line(this.view,l,i);o=false;}else if(l.widget)for(let a of s)a.widget(this.view,l);}else if(r.type==et.Text){on(e,i,r.from);for(let o of s)o.line(this.view,r,i);}else if(r.widget)for(let o of s)o.widget(this.view,r);for(let r of s)r.finish();n&&(this.view.scrollDOM.insertBefore(this.dom,t),this.domAfter&&this.view.scrollDOM.appendChild(this.domAfter));}updateGutters(n){let t=n.startState.facet(qe),e=n.state.facet(qe),i=n.docChanged||n.heightChanged||n.viewportChanged||!L.eq(n.startState.facet(gs),n.state.facet(gs),n.view.viewport.from,n.view.viewport.to);if(t==e)for(let s of this.gutters)s.update(n)&&(i=true);else {i=true;let s=[];for(let r of e){let o=t.indexOf(r);o<0?s.push(new Wr(this.view,r)):(this.gutters[o].update(n),s.push(this.gutters[o]));}for(let r of this.gutters)r.dom.remove(),s.indexOf(r)<0&&r.destroy();for(let r of s)r.config.side=="after"?this.getDOMAfter().appendChild(r.dom):this.dom.appendChild(r.dom);this.gutters=s;}return i}destroy(){for(let n of this.gutters)n.destroy();this.dom.remove(),this.domAfter&&this.domAfter.remove();}},{provide:n=>B.scrollMargins.of(t=>{let e=t.plugin(n);if(!e||e.gutters.length==0||!e.fixed)return null;let i=e.dom.offsetWidth*t.scaleX,s=e.domAfter?e.domAfter.offsetWidth*t.scaleX:0;return t.textDirection==$.LTR?{left:i,right:s}:{right:i,left:s}})});function Hr(n){return Array.isArray(n)?n:[n]}function on(n,t,e){for(;n.value&&n.from<=e;)n.from==e&&t.push(n.value),n.next();}class Hf{constructor(t,e,i){this.gutter=t,this.height=i,this.i=0,this.cursor=L.iter(t.markers,e.from);}addElement(t,e,i){let{gutter:s}=this,r=(e.top-this.height)/t.scaleY,o=e.height/t.scaleY;if(this.i==s.elements.length){let l=new yl(t,o,r,i);s.elements.push(l),s.dom.appendChild(l.dom);}else s.elements[this.i].update(t,o,r,i);this.height=e.bottom,this.i++;}line(t,e,i){let s=[];on(this.cursor,s,e.from),i.length&&(s=s.concat(i));let r=this.gutter.config.lineMarker(t,e,s);r&&s.unshift(r);let o=this.gutter;s.length==0&&!o.config.renderEmptyElements||this.addElement(t,e,s);}widget(t,e){let i=this.gutter.config.widgetMarker(t,e.widget,e),s=i?[i]:null;for(let r of t.state.facet(Rf)){let o=r(t,e.widget,e);o&&(s||(s=[])).push(o);}s&&this.addElement(t,e,s);}finish(){let t=this.gutter;for(;t.elements.length>this.i;){let e=t.elements.pop();t.dom.removeChild(e.dom),e.destroy();}}}class Wr{constructor(t,e){this.view=t,this.config=e,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let i in e.domEventHandlers)this.dom.addEventListener(i,s=>{let r=s.target,o;if(r!=this.dom&&this.dom.contains(r)){for(;r.parentNode!=this.dom;)r=r.parentNode;let a=r.getBoundingClientRect();o=(a.top+a.bottom)/2;}else o=s.clientY;let l=t.lineBlockAtHeight(o-t.documentTop);e.domEventHandlers[i](t,l,s)&&s.preventDefault();});this.markers=Hr(e.markers(t)),e.initialSpacer&&(this.spacer=new yl(t,0,0,[e.initialSpacer(t)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none");}update(t){let e=this.markers;if(this.markers=Hr(this.config.markers(t.view)),this.spacer&&this.config.updateSpacer){let s=this.config.updateSpacer(this.spacer.markers[0],t);s!=this.spacer.markers[0]&&this.spacer.update(t.view,0,0,[s]);}let i=t.view.viewport;return !L.eq(this.markers,e,i.from,i.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(t):false)}destroy(){for(let t of this.elements)t.destroy();}}class yl{constructor(t,e,i,s){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(t,e,i,s);}update(t,e,i,s){this.height!=e&&(this.height=e,this.dom.style.height=e+"px"),this.above!=i&&(this.dom.style.marginTop=(this.above=i)?i+"px":""),Wf(this.markers,s)||this.setMarkers(t,s);}setMarkers(t,e){let i="cm-gutterElement",s=this.dom.firstChild;for(let r=0,o=0;;){let l=o,a=rr(l,a,h)||o(l,a,h):o;}return i}})}});class ms extends Jt{constructor(t){super(),this.number=t;}eq(t){return this.number==t.number}toDOM(){return document.createTextNode(this.number)}}function bs(n,t){return n.state.facet(ge).formatNumber(t,n.state)}qe.compute([ge],n=>({class:"cm-lineNumbers",renderEmptyElements:false,markers(t){return t.state.facet(Vf)},lineMarker(t,e,i){return i.some(s=>s.toDOM)?null:new ms(bs(t,t.state.doc.lineAt(e.from).number))},widgetMarker:(t,e,i)=>{for(let s of t.state.facet(Ff)){let r=s(t,e,i);if(r)return r}return null},lineMarkerChange:t=>t.startState.facet(ge)!=t.state.facet(ge),initialSpacer(t){return new ms(bs(t,Vr(t.state.doc.lines)))},updateSpacer(t,e){let i=bs(e.view,Vr(e.view.state.doc.lines));return i==t.number?t:new ms(i)},domEventHandlers:n.facet(ge).domEventHandlers,side:"before"}));function Vr(n){let t=9;for(;t{throw new Error("This node type doesn't define a deserialize function")}),this.combine=t.combine||null;}add(t){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof t!="function"&&(t=ft.match(t)),e=>{let i=t(e);return i===void 0?null:[this,i]}}}I.closedBy=new I({deserialize:n=>n.split(" ")});I.openedBy=new I({deserialize:n=>n.split(" ")});I.group=new I({deserialize:n=>n.split(" ")});I.isolate=new I({deserialize:n=>{if(n&&n!="rtl"&&n!="ltr"&&n!="auto")throw new RangeError("Invalid value for isolate: "+n);return n||"auto"}});I.contextHash=new I({perNode:true});I.lookAhead=new I({perNode:true});I.mounted=new I({perNode:true});class Ke{constructor(t,e,i,s=false){this.tree=t,this.overlay=e,this.parser=i,this.bracketed=s;}static get(t){return t&&t.props&&t.props[I.mounted.id]}}const jf=Object.create(null);class ft{constructor(t,e,i,s=0){this.name=t,this.props=e,this.id=i,this.flags=s;}static define(t){let e=t.props&&t.props.length?Object.create(null):jf,i=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(t.name==null?8:0),s=new ft(t.name||"",e,t.id,i);if(t.props){for(let r of t.props)if(Array.isArray(r)||(r=r(s)),r){if(r[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");e[r[0].id]=r[1];}}return s}prop(t){return this.props[t.id]}get isTop(){return (this.flags&1)>0}get isSkipped(){return (this.flags&2)>0}get isError(){return (this.flags&4)>0}get isAnonymous(){return (this.flags&8)>0}is(t){if(typeof t=="string"){if(this.name==t)return true;let e=this.prop(I.group);return e?e.indexOf(t)>-1:false}return this.id==t}static match(t){let e=Object.create(null);for(let i in t)for(let s of i.split(" "))e[s]=t[i];return i=>{for(let s=i.prop(I.group),r=-1;r<(s?s.length:0);r++){let o=e[r<0?i.name:s[r]];if(o)return o}}}}ft.none=new ft("",Object.create(null),0,8);class Bn{constructor(t){this.types=t;for(let e=0;e0;for(let a=this.cursor(o|Y.IncludeAnonymous);;){let h=false;if(a.from<=r&&a.to>=s&&(!l&&a.type.isAnonymous||e(a)!==false)){if(a.firstChild())continue;h=true;}for(;h&&i&&(l||!a.type.isAnonymous)&&i(a),!a.nextSibling();){if(!a.parent())return;h=true;}}}prop(t){return t.perNode?this.props?this.props[t.id]:void 0:this.type.prop(t)}get propValues(){let t=[];if(this.props)for(let e in this.props)t.push([+e,this.props[e]]);return t}balance(t={}){return this.children.length<=8?this:Rn(ft.none,this.children,this.positions,0,this.children.length,0,this.length,(e,i,s)=>new _(this.type,e,i,s,this.propValues),t.makeTree||((e,i,s)=>new _(ft.none,e,i,s)))}static build(t){return Gf(t)}}_.empty=new _(ft.none,[],[],0);class En{constructor(t,e){this.buffer=t,this.index=e;}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4;}fork(){return new En(this.buffer,this.index)}}class Qt{constructor(t,e,i){this.buffer=t,this.length=e,this.set=i;}get type(){return ft.none}toString(){let t=[];for(let e=0;e0));a=o[a+3]);return l}slice(t,e,i){let s=this.buffer,r=new Uint16Array(e-t),o=0;for(let l=t,a=0;l=t&&et;case 1:return e<=t&&i>t;case 2:return i>t;case 4:return true}}function Je(n,t,e,i){for(var s;n.from==n.to||(e<1?n.from>=t:n.from>t)||(e>-1?n.to<=t:n.to0?a.length:-1;t!=f;t+=e){let c=a[t],u=h[t]+l.from;if(!(!(r&Y.EnterBracketed&&c instanceof _&&((o=Ke.get(c))===null||o===void 0?void 0:o.overlay)===null&&(u>=i||u+c.length<=i))&&!wl(s,i,u,u+c.length))){if(c instanceof Qt){if(r&Y.ExcludeBuffers)continue;let d=c.findChild(0,c.buffer.length,e,i-u,s);if(d>-1)return new Ut(new $f(l,c,t,u),null,d)}else if(r&Y.IncludeAnonymous||!c.type.isAnonymous||Pn(c)){let d;if(!(r&Y.IgnoreMounts)&&(d=Ke.get(c))&&!d.overlay)return new yt(d.tree,u,t,l);let p=new yt(c,u,t,l);return r&Y.IncludeAnonymous||!p.type.isAnonymous?p:p.nextChild(e<0?c.children.length-1:0,e,i,s,r)}}}if(r&Y.IncludeAnonymous||!l.type.isAnonymous||(l.index>=0?t=l.index+e:t=e<0?-1:l._parent._tree.children.length,l=l._parent,!l))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(t){return this.nextChild(0,1,t,2)}childBefore(t){return this.nextChild(this._tree.children.length-1,-1,t,-2)}prop(t){return this._tree.prop(t)}enter(t,e,i=0){let s;if(!(i&Y.IgnoreOverlays)&&(s=Ke.get(this._tree))&&s.overlay){let r=t-this.from,o=i&Y.EnterBracketed&&s.bracketed;for(let{from:l,to:a}of s.overlay)if((e>0||o?l<=r:l=r:a>r))return new yt(s.tree,s.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,t,e,i)}nextSignificantParent(){let t=this;for(;t.type.isAnonymous&&t._parent;)t=t._parent;return t}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function zr(n,t,e,i){let s=n.cursor(),r=[];if(!s.firstChild())return r;if(e!=null){for(let o=false;!o;)if(o=s.type.is(e),!s.nextSibling())return r}for(;;){if(i!=null&&s.type.is(i))return r;if(s.type.is(t)&&r.push(s.node),!s.nextSibling())return i==null?r:[]}}function ln(n,t,e=t.length-1){for(let i=n;e>=0;i=i.parent){if(!i)return false;if(!i.type.isAnonymous){if(t[e]&&t[e]!=i.name)return false;e--;}}return true}class $f{constructor(t,e,i,s){this.parent=t,this.buffer=e,this.index=i,this.start=s;}}class Ut extends xl{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(t,e,i){super(),this.context=t,this._parent=e,this.index=i,this.type=t.buffer.set.types[t.buffer.buffer[i]];}child(t,e,i){let{buffer:s}=this.context,r=s.findChild(this.index+4,s.buffer[this.index+3],t,e-this.context.start,i);return r<0?null:new Ut(this.context,this,r)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(t){return this.child(1,t,2)}childBefore(t){return this.child(-1,t,-2)}prop(t){return this.type.prop(t)}enter(t,e,i=0){if(i&Y.ExcludeBuffers)return null;let{buffer:s}=this.context,r=s.findChild(this.index+4,s.buffer[this.index+3],e>0?1:-1,t-this.context.start,e);return r<0?null:new Ut(this.context,this,r)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(t){return this._parent?null:this.context.parent.nextChild(this.context.index+t,t,0,4)}get nextSibling(){let{buffer:t}=this.context,e=t.buffer[this.index+3];return e<(this._parent?t.buffer[this._parent.index+3]:t.buffer.length)?new Ut(this.context,this._parent,e):this.externalSibling(1)}get prevSibling(){let{buffer:t}=this.context,e=this._parent?this._parent.index+4:0;return this.index==e?this.externalSibling(-1):new Ut(this.context,this._parent,t.findChild(e,this.index,-1,0,4))}get tree(){return null}toTree(){let t=[],e=[],{buffer:i}=this.context,s=this.index+4,r=i.buffer[this.index+3];if(r>s){let o=i.buffer[this.index+1];t.push(i.slice(s,r,o)),e.push(0);}return new _(this.type,t,e,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function kl(n){if(!n.length)return null;let t=0,e=n[0];for(let r=1;re.from||o.to=t){let l=new yt(o.tree,o.overlay[0].from+r.from,-1,r);(s||(s=[i])).push(Je(l,t,e,false));}}return s?kl(s):i}class an{get name(){return this.type.name}constructor(t,e=0){if(this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,this.mode=e&~Y.EnterBracketed,t instanceof yt)this.yieldNode(t);else {this._tree=t.context.parent,this.buffer=t.context;for(let i=t._parent;i;i=i._parent)this.stack.unshift(i.index);this.bufferNode=t,this.yieldBuf(t.index);}}yieldNode(t){return t?(this._tree=t,this.type=t.type,this.from=t.from,this.to=t.to,true):false}yieldBuf(t,e){this.index=t;let{start:i,buffer:s}=this.buffer;return this.type=e||s.set.types[s.buffer[t]],this.from=i+s.buffer[t+1],this.to=i+s.buffer[t+2],true}yield(t){return t?t instanceof yt?(this.buffer=null,this.yieldNode(t)):(this.buffer=t.context,this.yieldBuf(t.index,t.type)):false}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(t,e,i){if(!this.buffer)return this.yield(this._tree.nextChild(t<0?this._tree._tree.children.length-1:0,t,e,i,this.mode));let{buffer:s}=this.buffer,r=s.findChild(this.index+4,s.buffer[this.index+3],t,e-this.buffer.start,i);return r<0?false:(this.stack.push(this.index),this.yieldBuf(r))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(t){return this.enterChild(1,t,2)}childBefore(t){return this.enterChild(-1,t,-2)}enter(t,e,i=this.mode){return this.buffer?i&Y.ExcludeBuffers?false:this.enterChild(1,t,e):this.yield(this._tree.enter(t,e,i))}parent(){if(!this.buffer)return this.yieldNode(this.mode&Y.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let t=this.mode&Y.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(t)}sibling(t){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+t,t,0,4,this.mode)):false;let{buffer:e}=this.buffer,i=this.stack.length-1;if(t<0){let s=i<0?0:this.stack[i]+4;if(this.index!=s)return this.yieldBuf(e.findChild(s,this.index,-1,0,4))}else {let s=e.buffer[this.index+3];if(s<(i<0?e.buffer.length:e.buffer[this.stack[i]+3]))return this.yieldBuf(s)}return i<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+t,t,0,4,this.mode)):false}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(t){let e,i,{buffer:s}=this;if(s){if(t>0){if(this.index-1)for(let r=e+t,o=t<0?-1:i._tree.children.length;r!=o;r+=t){let l=i._tree.children[r];if(this.mode&Y.IncludeAnonymous||l instanceof Qt||!l.type.isAnonymous||Pn(l))return false}return true}move(t,e){if(e&&this.enterChild(t,0,4))return true;for(;;){if(this.sibling(t))return true;if(this.atLastNode(t)||!this.parent())return false}}next(t=true){return this.move(1,t)}prev(t=true){return this.move(-1,t)}moveTo(t,e=0){for(;(this.from==this.to||(e<1?this.from>=t:this.from>t)||(e>-1?this.to<=t:this.to=0;){for(let o=t;o;o=o._parent)if(o.index==s){if(s==this.index)return o;e=o,i=r+1;break t}s=this.stack[--r];}for(let s=i;s=0;r--){if(r<0)return ln(this._tree,t,s);let o=i[e.buffer[this.stack[r]]];if(!o.isAnonymous){if(t[s]&&t[s]!=o.name)return false;s--;}}return true}}function Pn(n){return n.children.some(t=>t instanceof Qt||!t.type.isAnonymous||Pn(t))}function Gf(n){var t;let{buffer:e,nodeSet:i,maxBufferLength:s=qf,reused:r=[],minRepeatType:o=i.types.length}=n,l=Array.isArray(e)?new En(e,e.length):e,a=i.types,h=0,f=0;function c(w,v,x,E,R,z){let{id:P,start:O,end:V,size:N}=l,K=f,rt=h;if(N<0)if(l.next(),N==-1){let Lt=r[P];x.push(Lt),E.push(O-w);return}else if(N==-3){h=P;return}else if(N==-4){f=P;return}else throw new RangeError(`Unrecognized record size: ${N}`);let ct=a[P],At,Q,dt=O-w;if(V-O<=s&&(Q=m(l.pos-v,R))){let Lt=new Uint16Array(Q.size-Q.skip),pt=l.pos-Q.size,Mt=Lt.length;for(;l.pos>pt;)Mt=b(Q.start,Lt,Mt);At=new Qt(Lt,V-Q.start,i),dt=Q.start-w;}else {let Lt=l.pos-N;l.next();let pt=[],Mt=[],te=P>=o?P:-1,de=0,ri=V;for(;l.pos>Lt;)te>=0&&l.id==te&&l.size>=0?(l.end<=ri-s&&(p(pt,Mt,O,de,l.end,ri,te,K,rt),de=pt.length,ri=l.end),l.next()):z>2500?u(O,Lt,pt,Mt):c(O,Lt,pt,Mt,te,z+1);if(te>=0&&de>0&&de-1&&de>0){let Wn=d(ct,rt);At=Rn(ct,pt,Mt,0,pt.length,0,V-O,Wn,Wn);}else At=g(ct,pt,Mt,V-O,K-V,rt);}x.push(At),E.push(dt);}function u(w,v,x,E){let R=[],z=0,P=-1;for(;l.pos>v;){let{id:O,start:V,end:N,size:K}=l;if(K>4)l.next();else {if(P>-1&&V=0;N-=3)O[K++]=R[N],O[K++]=R[N+1]-V,O[K++]=R[N+2]-V,O[K++]=K;x.push(new Qt(O,R[2]-V,i)),E.push(V-w);}}function d(w,v){return (x,E,R)=>{let z=0,P=x.length-1,O,V;if(P>=0&&(O=x[P])instanceof _){if(!P&&O.type==w&&O.length==R)return O;(V=O.prop(I.lookAhead))&&(z=E[P]+O.length+V);}return g(w,x,E,R,z,v)}}function p(w,v,x,E,R,z,P,O,V){let N=[],K=[];for(;w.length>E;)N.push(w.pop()),K.push(v.pop()+x-R);w.push(g(i.types[P],N,K,z-R,O-z,V)),v.push(R-x);}function g(w,v,x,E,R,z,P){if(z){let O=[I.contextHash,z];P=P?[O].concat(P):[O];}if(R>25){let O=[I.lookAhead,R];P=P?[O].concat(P):[O];}return new _(w,v,x,E,P)}function m(w,v){let x=l.fork(),E=0,R=0,z=0,P=x.end-s,O={size:0,start:0,skip:0};t:for(let V=x.pos-w;x.pos>V;){let N=x.size;if(x.id==v&&N>=0){O.size=E,O.start=R,O.skip=z,z+=4,E+=4,x.next();continue}let K=x.pos-N;if(N<0||K=o?4:0,ct=x.start;for(x.next();x.pos>K;){if(x.size<0)if(x.size==-3||x.size==-4)rt+=4;else break t;else x.id>=o&&(rt+=4);x.next();}R=ct,E+=N,z+=rt;}return (v<0||E==w)&&(O.size=E,O.start=R,O.skip=z),O.size>4?O:void 0}function b(w,v,x){let{id:E,start:R,end:z,size:P}=l;if(l.next(),P>=0&&E4){let V=l.pos-(P-4);for(;l.pos>V;)x=b(w,v,x);}v[--x]=O,v[--x]=z-w,v[--x]=R-w,v[--x]=E;}else P==-3?h=E:P==-4&&(f=E);return x}let M=[],T=[];for(;l.pos>0;)c(n.start||0,n.bufferStart||0,M,T,-1,0);let D=(t=n.length)!==null&&t!==void 0?t:M.length?T[0]+M[0].length:0;return new _(a[n.topID],M.reverse(),T.reverse(),D)}const qr=new WeakMap;function Di(n,t){if(!n.isAnonymous||t instanceof Qt||t.type!=n)return 1;let e=qr.get(t);if(e==null){e=1;for(let i of t.children){if(i.type!=n||!(i instanceof _)){e=1;break}e+=Di(n,i);}qr.set(t,e);}return e}function Rn(n,t,e,i,s,r,o,l,a){let h=0;for(let p=i;p=f)break;v+=x;}if(T==D+1){if(v>f){let x=p[D];d(x.children,x.positions,0,x.children.length,g[D]+M);continue}c.push(p[D]);}else {let x=g[T-1]+p[T-1].length-w;c.push(Rn(n,p,g,D,T,w,x,null,a));}u.push(w+M-r);}}return d(t,e,i,s,0),(l||a)(c,u,o)}class oe{constructor(t,e,i,s,r=false,o=false){this.from=t,this.to=e,this.tree=i,this.offset=s,this.open=(r?1:0)|(o?2:0);}get openStart(){return (this.open&1)>0}get openEnd(){return (this.open&2)>0}static addTree(t,e=[],i=false){let s=[new oe(0,t.length,t,0,false,i)];for(let r of e)r.to>t.length&&s.push(r);return s}static applyChanges(t,e,i=128){if(!e.length)return t;let s=[],r=1,o=t.length?t[0]:null;for(let l=0,a=0,h=0;;l++){let f=l=i)for(;o&&o.from=u.from||c<=u.to||h){let d=Math.max(u.from,a)-h,p=Math.min(u.to,c)-h;u=d>=p?null:new oe(d,p,u.tree,u.offset+h,l>0,!!f);}if(u&&s.push(u),o.to>c)break;o=rnew ys(s.from,s.to)):[new ys(0,0)]:[new ys(0,t.length)],this.createParse(t,e||[],i)}parse(t,e,i){let s=this.startParse(t,e,i);for(;;){let r=s.advance();if(r)return r}}}class Yf{constructor(t){this.string=t;}get length(){return this.string.length}chunk(t){return this.string.slice(t)}get lineChunks(){return false}read(t,e){return this.string.slice(t,e)}}new I({perNode:true});let Xf=0;class gt{constructor(t,e,i,s){this.name=t,this.set=e,this.base=i,this.modified=s,this.id=Xf++;}toString(){let{name:t}=this;for(let e of this.modified)e.name&&(t=`${e.name}(${t})`);return t}static define(t,e){let i=typeof t=="string"?t:"?";if(t instanceof gt&&(e=t),e?.base)throw new Error("Can not derive from a modified tag");let s=new gt(i,[],null,[]);if(s.set.push(s),e)for(let r of e.set)s.set.push(r);return s}static defineModifier(t){let e=new zi(t);return i=>i.modified.indexOf(e)>-1?i:zi.get(i.base||i,i.modified.concat(e).sort((s,r)=>s.id-r.id))}}let Jf=0;class zi{constructor(t){this.name=t,this.instances=[],this.id=Jf++;}static get(t,e){if(!e.length)return t;let i=e[0].instances.find(l=>l.base==t&&Qf(e,l.modified));if(i)return i;let s=[],r=new gt(t.name,s,t,e);for(let l of e)l.instances.push(r);let o=Zf(e);for(let l of t.set)if(!l.modified.length)for(let a of o)s.push(zi.get(l,a));return r}}function Qf(n,t){return n.length==t.length&&n.every((e,i)=>e==t[i])}function Zf(n){let t=[[]];for(let e=0;ei.length-e.length)}function tc(n){let t=Object.create(null);for(let e in n){let i=n[e];Array.isArray(i)||(i=[i]);for(let s of e.split(" "))if(s){let r=[],o=2,l=s;for(let c=0;;){if(l=="..."&&c>0&&c+3==s.length){o=1;break}let u=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(l);if(!u)throw new RangeError("Invalid path: "+s);if(r.push(u[0]=="*"?"":u[0][0]=='"'?JSON.parse(u[0]):u[0]),c+=u[0].length,c==s.length)break;let d=s[c++];if(c==s.length&&d=="!"){o=0;break}if(d!="/")throw new RangeError("Invalid path: "+s);l=s.slice(c);}let a=r.length-1,h=r[a];if(!h)throw new RangeError("Invalid path: "+s);let f=new Qe(i,o,a>0?r.slice(0,a):null);t[h]=f.sort(t[h]);}}return Sl.add(t)}const Sl=new I({combine(n,t){let e,i,s;for(;n||t;){if(!n||t&&n.depth>=t.depth?(s=t,t=t.next):(s=n,n=n.next),e&&e.mode==s.mode&&!s.context&&!e.context)continue;let r=new Qe(s.tags,s.mode,s.context);e?e.next=r:i=r,e=r;}return i}});class Qe{constructor(t,e,i,s){this.tags=t,this.mode=e,this.context=i,this.next=s;}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(t){return !t||t.depth{let o=s;for(let l of r)for(let a of l.set){let h=e[a.id];if(h){o=o?o+" "+h:h;break}}return o},scope:i}}function ec(n,t){let e=null;for(let i of n){let s=i.style(t);s&&(e=e?e+" "+s:s);}return e}function ic(n,t,e,i=0,s=n.length){let r=new sc(i,Array.isArray(t)?t:[t],e);r.highlightRange(n.cursor(),i,s,"",r.highlighters),r.flush(s);}class sc{constructor(t,e,i){this.at=t,this.highlighters=e,this.span=i,this.class="";}startSpan(t,e){e!=this.class&&(this.flush(t),t>this.at&&(this.at=t),this.class=e);}flush(t){t>this.at&&this.class&&this.span(this.at,t,this.class);}highlightRange(t,e,i,s,r){let{type:o,from:l,to:a}=t;if(l>=i||a<=e)return;o.isTop&&(r=this.highlighters.filter(d=>!d.scope||d.scope(o)));let h=s,f=nc(t)||Qe.empty,c=ec(r,f.tags);if(c&&(h&&(h+=" "),h+=c,f.mode==1&&(s+=(s?" ":"")+c)),this.startSpan(Math.max(e,l),h),f.opaque)return;let u=t.tree&&t.tree.prop(I.mounted);if(u&&u.overlay){let d=t.node.enter(u.overlay[0].from+l,1),p=this.highlighters.filter(m=>!m.scope||m.scope(u.tree.type)),g=t.firstChild();for(let m=0,b=l;;m++){let M=m=T||!t.nextSibling())););if(!M||T>i)break;b=M.to+l,b>e&&(this.highlightRange(d.cursor(),Math.max(e,M.from+l),Math.min(i,b),"",p),this.startSpan(Math.min(i,b),h));}g&&t.parent();}else if(t.firstChild()){u&&(s="");do if(!(t.to<=e)){if(t.from>=i)break;this.highlightRange(t,e,i,s,r),this.startSpan(Math.min(i,t.to),h);}while(t.nextSibling());t.parent();}}}function nc(n){let t=n.type.prop(Sl);for(;t&&t.context&&!n.matchContext(t.context);)t=t.next;return t||null}const y=gt.define,ki=y(),qt=y(),Kr=y(qt),jr=y(qt),Kt=y(),vi=y(Kt),ws=y(Kt),Bt=y(),ee=y(Bt),Ot=y(),Dt=y(),hn=y(),Ee=y(hn),Si=y(),k={comment:ki,lineComment:y(ki),blockComment:y(ki),docComment:y(ki),name:qt,variableName:y(qt),typeName:Kr,tagName:y(Kr),propertyName:jr,attributeName:y(jr),className:y(qt),labelName:y(qt),namespace:y(qt),macroName:y(qt),literal:Kt,string:vi,docString:y(vi),character:y(vi),attributeValue:y(vi),number:ws,integer:y(ws),float:y(ws),bool:y(Kt),regexp:y(Kt),escape:y(Kt),color:y(Kt),url:y(Kt),keyword:Ot,self:y(Ot),null:y(Ot),atom:y(Ot),unit:y(Ot),modifier:y(Ot),operatorKeyword:y(Ot),controlKeyword:y(Ot),definitionKeyword:y(Ot),moduleKeyword:y(Ot),operator:Dt,derefOperator:y(Dt),arithmeticOperator:y(Dt),logicOperator:y(Dt),bitwiseOperator:y(Dt),compareOperator:y(Dt),updateOperator:y(Dt),definitionOperator:y(Dt),typeOperator:y(Dt),controlOperator:y(Dt),punctuation:hn,separator:y(hn),bracket:Ee,angleBracket:y(Ee),squareBracket:y(Ee),paren:y(Ee),brace:y(Ee),content:Bt,heading:ee,heading1:y(ee),heading2:y(ee),heading3:y(ee),heading4:y(ee),heading5:y(ee),heading6:y(ee),contentSeparator:y(Bt),list:y(Bt),quote:y(Bt),emphasis:y(Bt),strong:y(Bt),link:y(Bt),monospace:y(Bt),strikethrough:y(Bt),inserted:y(),deleted:y(),changed:y(),invalid:y(),meta:Si,documentMeta:y(Si),annotation:y(Si),processingInstruction:y(Si),definition:gt.defineModifier("definition"),constant:gt.defineModifier("constant"),function:gt.defineModifier("function"),standard:gt.defineModifier("standard"),local:gt.defineModifier("local"),special:gt.defineModifier("special")};for(let n in k){let t=k[n];t instanceof gt&&(t.name=n);}Cl([{tag:k.link,class:"tok-link"},{tag:k.heading,class:"tok-heading"},{tag:k.emphasis,class:"tok-emphasis"},{tag:k.strong,class:"tok-strong"},{tag:k.keyword,class:"tok-keyword"},{tag:k.atom,class:"tok-atom"},{tag:k.bool,class:"tok-bool"},{tag:k.url,class:"tok-url"},{tag:k.labelName,class:"tok-labelName"},{tag:k.inserted,class:"tok-inserted"},{tag:k.deleted,class:"tok-deleted"},{tag:k.literal,class:"tok-literal"},{tag:k.string,class:"tok-string"},{tag:k.number,class:"tok-number"},{tag:[k.regexp,k.escape,k.special(k.string)],class:"tok-string2"},{tag:k.variableName,class:"tok-variableName"},{tag:k.local(k.variableName),class:"tok-variableName tok-local"},{tag:k.definition(k.variableName),class:"tok-variableName tok-definition"},{tag:k.special(k.variableName),class:"tok-variableName2"},{tag:k.definition(k.propertyName),class:"tok-propertyName tok-definition"},{tag:k.typeName,class:"tok-typeName"},{tag:k.namespace,class:"tok-namespace"},{tag:k.className,class:"tok-className"},{tag:k.macroName,class:"tok-macroName"},{tag:k.propertyName,class:"tok-propertyName"},{tag:k.operator,class:"tok-operator"},{tag:k.comment,class:"tok-comment"},{tag:k.meta,class:"tok-meta"},{tag:k.invalid,class:"tok-invalid"},{tag:k.punctuation,class:"tok-punctuation"}]);var xs;const me=new I;function rc(n){return A.define({combine:n?t=>t.concat(n):void 0})}const oc=new I;class St{constructor(t,e,i=[],s=""){this.data=t,this.name=s,H.prototype.hasOwnProperty("tree")||Object.defineProperty(H.prototype,"tree",{get(){return Rt(this)}}),this.parser=e,this.extension=[Zt.of(this),H.languageData.of((r,o,l)=>{let a=$r(r,o,l),h=a.type.prop(me);if(!h)return [];let f=r.facet(h),c=a.type.prop(oc);if(c){let u=a.resolve(o-a.from,l);for(let d of c)if(d.test(u,r)){let p=r.facet(d.facet);return d.type=="replace"?p:p.concat(f)}}return f})].concat(i);}isActiveAt(t,e,i=-1){return $r(t,e,i).type.prop(me)==this.data}findRegions(t){let e=t.facet(Zt);if(e?.data==this.data)return [{from:0,to:t.doc.length}];if(!e||!e.allowsNesting)return [];let i=[],s=(r,o)=>{if(r.prop(me)==this.data){i.push({from:o,to:o+r.length});return}let l=r.prop(I.mounted);if(l){if(l.tree.prop(me)==this.data){if(l.overlay)for(let a of l.overlay)i.push({from:a.from+o,to:a.to+o});else i.push({from:o,to:o+r.length});return}else if(l.overlay){let a=i.length;if(s(l.tree,l.overlay[0].from+o),i.length>a)return}}for(let a=0;a=this.cursorPos?this.doc.sliceString(t,e):this.string.slice(t-i,e-i)}}let Pe=null;class Me{constructor(t,e,i=[],s,r,o,l,a){this.parser=t,this.state=e,this.fragments=i,this.tree=s,this.treeLen=r,this.viewport=o,this.skipped=l,this.scheduleOn=a,this.parse=null,this.tempSkipped=[];}static create(t,e,i){return new Me(t,e,[],_.empty,0,i,[],null)}startParse(){return this.parser.startParse(new lc(this.state.doc),this.fragments)}work(t,e){return e!=null&&e>=this.state.doc.length&&(e=void 0),this.tree!=_.empty&&this.isDone(e??this.state.doc.length)?(this.takeTree(),true):this.withContext(()=>{var i;if(typeof t=="number"){let s=Date.now()+t;t=()=>Date.now()>s;}for(this.parse||(this.parse=this.startParse()),e!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&e=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&this.parse.stopAt(t),this.withContext(()=>{for(;!(e=this.parse.advance()););}),this.treeLen=t,this.tree=e,this.fragments=this.withoutTempSkipped(oe.addTree(this.tree,this.fragments,true)),this.parse=null);}withContext(t){let e=Pe;Pe=this;try{return t()}finally{Pe=e;}}withoutTempSkipped(t){for(let e;e=this.tempSkipped.pop();)t=Ur(t,e.from,e.to);return t}changes(t,e){let{fragments:i,tree:s,treeLen:r,viewport:o,skipped:l}=this;if(this.takeTree(),!t.empty){let a=[];if(t.iterChangedRanges((h,f,c,u)=>a.push({fromA:h,toA:f,fromB:c,toB:u})),i=oe.applyChanges(i,a),s=_.empty,r=0,o={from:t.mapPos(o.from,-1),to:t.mapPos(o.to,1)},this.skipped.length){l=[];for(let h of this.skipped){let f=t.mapPos(h.from,1),c=t.mapPos(h.to,-1);ft.from&&(this.fragments=Ur(this.fragments,s,r),this.skipped.splice(i--,1));}return this.skipped.length>=e?false:(this.reset(),true)}reset(){this.parse&&(this.takeTree(),this.parse=null);}skipUntilInView(t,e){this.skipped.push({from:t,to:e});}static getSkippingParser(t){return new class extends vl{createParse(e,i,s){let r=s[0].from,o=s[s.length-1].to;return {parsedPos:r,advance(){let a=Pe;if(a){for(let h of s)a.tempSkipped.push(h);t&&(a.scheduleOn=a.scheduleOn?Promise.all([a.scheduleOn,t]):t);}return this.parsedPos=o,new _(ft.none,[],[],o-r)},stoppedAt:null,stopAt(){}}}}}isDone(t){t=Math.min(t,this.state.doc.length);let e=this.fragments;return this.treeLen>=t&&e.length&&e[0].from==0&&e[0].to>=t}static get(){return Pe}}function Ur(n,t,e){return oe.applyChanges(n,[{fromA:t,toA:e,fromB:t,toB:e}])}class Te{constructor(t){this.context=t,this.tree=t.tree;}apply(t){if(!t.docChanged&&this.tree==this.context.tree)return this;let e=this.context.changes(t.changes,t.state),i=this.context.treeLen==t.startState.doc.length?void 0:Math.max(t.changes.mapPos(this.context.treeLen),e.viewport.to);return e.work(20,i)||e.takeTree(),new Te(e)}static init(t){let e=Math.min(3e3,t.doc.length),i=Me.create(t.facet(Zt).parser,t,{from:0,to:e});return i.work(20,e)||i.takeTree(),new Te(i)}}St.state=Ft.define({create:Te.init,update(n,t){for(let e of t.effects)if(e.is(St.setState))return e.value;return t.startState.facet(Zt)!=t.state.facet(Zt)?Te.init(t.state):n.apply(t)}});let Al=n=>{let t=setTimeout(()=>n(),500);return ()=>clearTimeout(t)};typeof requestIdleCallback<"u"&&(Al=n=>{let t=-1,e=setTimeout(()=>{t=requestIdleCallback(n,{timeout:400});},100);return ()=>t<0?clearTimeout(e):cancelIdleCallback(t)});const ks=typeof navigator<"u"&&(!((xs=navigator.scheduling)===null||xs===void 0)&&xs.isInputPending)?()=>navigator.scheduling.isInputPending():null,ac=nt.fromClass(class{constructor(t){this.view=t,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork();}update(t){let e=this.view.state.field(St.state).context;(e.updateViewport(t.view.viewport)||this.view.viewport.to>e.treeLen)&&this.scheduleWork(),(t.docChanged||t.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(e);}scheduleWork(){if(this.working)return;let{state:t}=this.view,e=t.field(St.state);(e.tree!=e.context.tree||!e.context.isDone(t.doc.length))&&(this.working=Al(this.work));}work(t){this.working=null;let e=Date.now();if(this.chunkEnds+1e3,a=r.context.work(()=>ks&&ks()||Date.now()>o,s+(l?0:1e5));this.chunkBudget-=Date.now()-e,(a||this.chunkBudget<=0)&&(r.context.takeTree(),this.view.dispatch({effects:St.setState.of(new Te(r.context))})),this.chunkBudget>0&&!(a&&!l)&&this.scheduleWork(),this.checkAsyncSchedule(r.context);}checkAsyncSchedule(t){t.scheduleOn&&(this.workScheduled++,t.scheduleOn.then(()=>this.scheduleWork()).catch(e=>vt(this.view.state,e)).then(()=>this.workScheduled--),t.scheduleOn=null);}destroy(){this.working&&this.working();}isWorking(){return !!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork();}}}),Zt=A.define({combine(n){return n.length?n[0]:null},enables:n=>[St.state,ac,B.contentAttributes.compute([n],t=>{let e=t.facet(n);return e&&e.name?{"data-language":e.name}:{}})]}),hc=A.define(),Ml=A.define({combine:n=>{if(!n.length)return " ";let t=n[0];if(!t||/\S/.test(t)||Array.from(t).some(e=>e!=t[0]))throw new Error("Invalid indent unit: "+JSON.stringify(n[0]));return t}});function qi(n){let t=n.facet(Ml);return t.charCodeAt(0)==9?n.tabSize*t.length:t.length}function fc(n,t){let e="",i=n.tabSize,s=n.facet(Ml)[0];if(s==" "){for(;t>=i;)e+=" ",t-=i;s=" ";}for(let r=0;r=t?uc(n,e,t):null}class Tl{constructor(t,e={}){this.state=t,this.options=e,this.unit=qi(t);}lineAt(t,e=1){let i=this.state.doc.lineAt(t),{simulateBreak:s,simulateDoubleBreak:r}=this.options;return s!=null&&s>=i.from&&s<=i.to?r&&s==t?{text:"",from:t}:(e<0?s-1&&(r+=o-this.countColumn(i,i.search(/\S|$/))),r}countColumn(t,e=t.length){return bn(t,this.state.tabSize,e)}lineIndent(t,e=1){let{text:i,from:s}=this.lineAt(t,e),r=this.options.overrideIndentation;if(r){let o=r(s);if(o>-1)return o}return this.countColumn(i,i.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const Ol=new I;function uc(n,t,e){let i=t.resolveStack(e),s=t.resolveInner(e,-1).resolve(e,0).enterUnfinishedNodesBefore(e);if(s!=i.node){let r=[];for(let o=s;o&&!(o.fromi.node.to||o.from==i.node.from&&o.type==i.node.type);o=o.parent)r.push(o);for(let o=r.length-1;o>=0;o--)i={node:r[o],next:i};}return Dl(i,n,e)}function Dl(n,t,e){for(let i=n;i;i=i.next){let s=pc(i.node);if(s)return s(Ln.create(t,e,i))}return 0}function dc(n){return n.pos==n.options.simulateBreak&&n.options.simulateDoubleBreak}function pc(n){let t=n.type.prop(Ol);if(t)return t;let e=n.firstChild,i;if(e&&(i=e.type.prop(I.closedBy))){let s=n.lastChild,r=s&&i.indexOf(s.name)>-1;return o=>yc(o,true,1,void 0,r&&!dc(o)?s.from:void 0)}return n.parent==null?gc:null}function gc(){return 0}class Ln extends Tl{constructor(t,e,i){super(t.state,t.options),this.base=t,this.pos=e,this.context=i;}get node(){return this.context.node}static create(t,e,i){return new Ln(t,e,i)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(t){let e=this.state.doc.lineAt(t.from);for(;;){let i=t.resolve(e.from);for(;i.parent&&i.parent.from==i.from;)i=i.parent;if(mc(i,t))break;e=this.state.doc.lineAt(i.from);}return this.lineIndent(e.from)}continue(){return Dl(this.context.next,this.base,this.pos)}}function mc(n,t){for(let e=t;e;e=e.parent)if(n==e)return true;return false}function bc(n){let t=n.node,e=t.childAfter(t.from),i=t.lastChild;if(!e)return null;let s=n.options.simulateBreak,r=n.state.doc.lineAt(e.from),o=s==null||s<=r.from?r.to:Math.min(r.to,s);for(let l=e.to;;){let a=t.childAfter(l);if(!a||a==i)return null;if(!a.type.isSkipped){if(a.from>=o)return null;let h=/^ */.exec(r.text.slice(e.to-r.from))[0].length;return {from:e.from,to:e.to+h}}l=a.to;}}function yc(n,t,e,i,s){let r=n.textAfter,o=r.match(/^\s*/)[0].length,l=s==n.pos+o,a=bc(n);return a?l?n.column(a.from):n.column(a.to):n.baseIndent+(l?0:n.unit*e)}const wc=200;function lu(){return H.transactionFilter.of(n=>{if(!n.docChanged||!n.isUserEvent("input.type")&&!n.isUserEvent("input.complete"))return n;let t=n.startState.languageDataAt("indentOnInput",n.startState.selection.main.head);if(!t.length)return n;let e=n.newDoc,{head:i}=n.newSelection.main,s=e.lineAt(i);if(i>s.from+wc)return n;let r=e.sliceString(s.from,i);if(!t.some(h=>h.test(r)))return n;let{state:o}=n,l=-1,a=[];for(let{head:h}of o.selection.ranges){let f=o.doc.lineAt(h);if(f.from==l)continue;l=f.from;let c=cc(o,f.from);if(c==null)continue;let u=/^\s*/.exec(f.text)[0],d=fc(o,c);u!=d&&a.push({from:f.from,to:f.from+u.length,insert:d});}return a.length?[n,{changes:a,sequential:true}]:n})}const xc=A.define(),kc=new I;function vc(n,t,e){let i=Rt(n);if(i.lengthe)continue;if(r&&l.from=t&&h.to>e&&(r=h);}}return r}function Sc(n){let t=n.lastChild;return t&&t.to==n.to&&t.type.isError}function Ki(n,t,e){for(let i of n.facet(xc)){let s=i(n,t,e);if(s)return s}return vc(n,t,e)}function Bl(n,t){let e=t.mapPos(n.from,1),i=t.mapPos(n.to,-1);return e>=i?void 0:{from:e,to:i}}const ts=U.define({map:Bl}),ni=U.define({map:Bl});function El(n){let t=[];for(let{head:e}of n.state.selection.ranges)t.some(i=>i.from<=e&&i.to>=e)||t.push(n.lineBlockAt(e));return t}const ue=Ft.define({create(){return F.none},update(n,t){t.isUserEvent("delete")&&t.changes.iterChangedRanges((e,i)=>n=_r(n,e,i)),n=n.map(t.changes);for(let e of t.effects)if(e.is(ts)&&!Cc(n,e.value.from,e.value.to)){let{preparePlaceholder:i}=t.state.facet(Ll),s=i?F.replace({widget:new Bc(i(t.state,e.value))}):Gr;n=n.update({add:[s.range(e.value.from,e.value.to)]});}else e.is(ni)&&(n=n.update({filter:(i,s)=>e.value.from!=i||e.value.to!=s,filterFrom:e.value.from,filterTo:e.value.to}));return t.selection&&(n=_r(n,t.selection.main.head)),n},provide:n=>B.decorations.from(n),toJSON(n,t){let e=[];return n.between(0,t.doc.length,(i,s)=>{e.push(i,s);}),e},fromJSON(n){if(!Array.isArray(n)||n.length%2)throw new RangeError("Invalid JSON for fold state");let t=[];for(let e=0;e{st&&(i=true);}),i?n.update({filterFrom:t,filterTo:e,filter:(s,r)=>s>=e||r<=t}):n}function ji(n,t,e){var i;let s=null;return (i=n.field(ue,false))===null||i===void 0||i.between(t,e,(r,o)=>{(!s||s.from>r)&&(s={from:r,to:o});}),s}function Cc(n,t,e){let i=false;return n.between(t,t,(s,r)=>{s==t&&r==e&&(i=true);}),i}function Pl(n,t){return n.field(ue,false)?t:t.concat(U.appendConfig.of(Il()))}const Ac=n=>{for(let t of El(n)){let e=Ki(n.state,t.from,t.to);if(e)return n.dispatch({effects:Pl(n.state,[ts.of(e),Rl(n,e)])}),true}return false},Mc=n=>{if(!n.state.field(ue,false))return false;let t=[];for(let e of El(n)){let i=ji(n.state,e.from,e.to);i&&t.push(ni.of(i),Rl(n,i,false));}return t.length&&n.dispatch({effects:t}),t.length>0};function Rl(n,t,e=true){let i=n.state.doc.lineAt(t.from).number,s=n.state.doc.lineAt(t.to).number;return B.announce.of(`${n.state.phrase(e?"Folded lines":"Unfolded lines")} ${i} ${n.state.phrase("to")} ${s}.`)}const Tc=n=>{let{state:t}=n,e=[];for(let i=0;i{let t=n.state.field(ue,false);if(!t||!t.size)return false;let e=[];return t.between(0,n.state.doc.length,(i,s)=>{e.push(ni.of({from:i,to:s}));}),n.dispatch({effects:e}),true},au=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:Ac},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:Mc},{key:"Ctrl-Alt-[",run:Tc},{key:"Ctrl-Alt-]",run:Oc}],Dc={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},Ll=A.define({combine(n){return _i(n,Dc)}});function Il(n){return [ue,Pc]}function Nl(n,t){let{state:e}=n,i=e.facet(Ll),s=o=>{let l=n.lineBlockAt(n.posAtDOM(o.target)),a=ji(n.state,l.from,l.to);a&&n.dispatch({effects:ni.of(a)}),o.preventDefault();};if(i.placeholderDOM)return i.placeholderDOM(n,s,t);let r=document.createElement("span");return r.textContent=i.placeholderText,r.setAttribute("aria-label",e.phrase("folded code")),r.title=e.phrase("unfold"),r.className="cm-foldPlaceholder",r.onclick=s,r}const Gr=F.replace({widget:new class extends zt{toDOM(n){return Nl(n,null)}}});class Bc extends zt{constructor(t){super(),this.value=t;}eq(t){return this.value==t.value}toDOM(t){return Nl(t,this.value)}}const Ec={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>false};class vs extends Jt{constructor(t,e){super(),this.config=t,this.open=e;}eq(t){return this.config==t.config&&this.open==t.open}toDOM(t){if(this.config.markerDOM)return this.config.markerDOM(this.open);let e=document.createElement("span");return e.textContent=this.open?this.config.openText:this.config.closedText,e.title=t.state.phrase(this.open?"Fold line":"Unfold line"),e}}function hu(n={}){let t={...Ec,...n},e=new vs(t,true),i=new vs(t,false),s=nt.fromClass(class{constructor(o){this.from=o.viewport.from,this.markers=this.buildMarkers(o);}update(o){(o.docChanged||o.viewportChanged||o.startState.facet(Zt)!=o.state.facet(Zt)||o.startState.field(ue,false)!=o.state.field(ue,false)||Rt(o.startState)!=Rt(o.state)||t.foldingChanged(o))&&(this.markers=this.buildMarkers(o.view));}buildMarkers(o){let l=new ae;for(let a of o.viewportLineBlocks){let h=ji(o.state,a.from,a.to)?i:Ki(o.state,a.from,a.to)?e:null;h&&l.add(a.from,a.from,h);}return l.finish()}}),{domEventHandlers:r}=t;return [s,If({class:"cm-foldGutter",markers(o){var l;return ((l=o.plugin(s))===null||l===void 0?void 0:l.markers)||L.empty},initialSpacer(){return new vs(t,false)},domEventHandlers:{...r,click:(o,l,a)=>{if(r.click&&r.click(o,l,a))return true;let h=ji(o.state,l.from,l.to);if(h)return o.dispatch({effects:ni.of(h)}),true;let f=Ki(o.state,l.from,l.to);return f?(o.dispatch({effects:ts.of(f)}),true):false}}}),Il()]}const Pc=B.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class es{constructor(t,e){this.specs=t;let i;function s(l){let a=Gt.newName();return (i||(i=Object.create(null)))["."+a]=l,a}const r=typeof e.all=="string"?e.all:e.all?s(e.all):void 0,o=e.scope;this.scope=o instanceof St?l=>l.prop(me)==o.data:o?l=>l==o:void 0,this.style=Cl(t.map(l=>({tag:l.tag,class:l.class||s(Object.assign({},l,{tag:null}))})),{all:r}).style,this.module=i?new Gt(i):null,this.themeType=e.themeType;}static define(t,e){return new es(t,e||{})}}const fn=A.define(),Hl=A.define({combine(n){return n.length?[n[0]]:null}});function Ss(n){let t=n.facet(fn);return t.length?t:n.facet(Hl)}function fu(n,t){let e=[Lc],i;return n instanceof es&&(n.module&&e.push(B.styleModule.of(n.module)),i=n.themeType),t?.fallback?e.push(Hl.of(n)):i?e.push(fn.computeN([B.darkTheme],s=>s.facet(B.darkTheme)==(i=="dark")?[n]:[])):e.push(fn.of(n)),e}class Rc{constructor(t){this.markCache=Object.create(null),this.tree=Rt(t.state),this.decorations=this.buildDeco(t,Ss(t.state)),this.decoratedTo=t.viewport.to;}update(t){let e=Rt(t.state),i=Ss(t.state),s=i!=Ss(t.startState),{viewport:r}=t.view,o=t.changes.mapPos(this.decoratedTo,1);e.length=r.to?(this.decorations=this.decorations.map(t.changes),this.decoratedTo=o):(e!=this.tree||t.viewportChanged||s)&&(this.tree=e,this.decorations=this.buildDeco(t.view,i),this.decoratedTo=r.to);}buildDeco(t,e){if(!e||!this.tree.length)return F.none;let i=new ae;for(let{from:s,to:r}of t.visibleRanges)ic(this.tree,e,(o,l,a)=>{i.add(o,l,this.markCache[a]||(this.markCache[a]=F.mark({class:a})));},s,r);return i.finish()}}const Lc=$i.high(nt.fromClass(Rc,{decorations:n=>n.decorations})),cu=es.define([{tag:k.meta,color:"#404740"},{tag:k.link,textDecoration:"underline"},{tag:k.heading,textDecoration:"underline",fontWeight:"bold"},{tag:k.emphasis,fontStyle:"italic"},{tag:k.strong,fontWeight:"bold"},{tag:k.strikethrough,textDecoration:"line-through"},{tag:k.keyword,color:"#708"},{tag:[k.atom,k.bool,k.url,k.contentSeparator,k.labelName],color:"#219"},{tag:[k.literal,k.inserted],color:"#164"},{tag:[k.string,k.deleted],color:"#a11"},{tag:[k.regexp,k.escape,k.special(k.string)],color:"#e40"},{tag:k.definition(k.variableName),color:"#00f"},{tag:k.local(k.variableName),color:"#30a"},{tag:[k.typeName,k.namespace],color:"#085"},{tag:k.className,color:"#167"},{tag:[k.special(k.variableName),k.macroName],color:"#256"},{tag:k.definition(k.propertyName),color:"#00c"},{tag:k.comment,color:"#940"},{tag:k.invalid,color:"#f00"}]),Ic=1e4,Nc="()[]{}",Hc=new I;function cn(n,t,e){let i=n.prop(t<0?I.openedBy:I.closedBy);if(i)return i;if(n.name.length==1){let s=e.indexOf(n.name);if(s>-1&&s%2==(t<0?1:0))return [e[s+t]]}return null}function un(n){let t=n.type.prop(Hc);return t?t(n.node):n}function uu(n,t,e,i={}){let s=i.maxScanDistance||Ic,r=i.brackets||Nc,o=Rt(n),l=o.resolveInner(t,e);for(let a=l;a;a=a.parent){let h=cn(a.type,e,r);if(h&&a.from0?t>=f.from&&tf.from&&t<=f.to))return Wc(n,t,e,a,f,h,r)}}return Vc(n,t,e,o,l.type,s,r)}function Wc(n,t,e,i,s,r,o){let l=i.parent,a={from:s.from,to:s.to},h=0,f=l?.cursor();if(f&&(e<0?f.childBefore(i.from):f.childAfter(i.to)))do if(e<0?f.to<=i.from:f.from>=i.to){if(h==0&&r.indexOf(f.type.name)>-1&&f.from0)return null;let h={from:e<0?t-1:t,to:e>0?t+1:t},f=n.doc.iterRange(t,e>0?n.doc.length:0),c=0;for(let u=0;!f.next().done&&u<=r;){let d=f.value;e<0&&(u+=d.length);let p=t+u*e;for(let g=e>0?0:d.length-1,m=e>0?d.length:-1;g!=m;g+=e){let b=o.indexOf(d[g]);if(!(b<0||i.resolveInner(p+g,1).type!=s))if(b%2==0==e>0)c++;else {if(c==1)return {start:h,end:{from:p+g,to:p+g+1},matched:b>>1==a>>1};c--;}}e>0&&(u+=d.length);}return f.done?{start:h,matched:false}:null}function Yr(n,t,e,i=0,s=0){t==null&&(t=n.search(/[^\s\u00a0]/),t==-1&&(t=n.length));let r=s;for(let o=i;o=this.string.length}sol(){return this.pos==0}peek(){return this.string.charAt(this.pos)||void 0}next(){if(this.pose}eatSpace(){let t=this.pos;for(;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t}skipToEnd(){this.pos=this.string.length;}skipTo(t){let e=this.string.indexOf(t,this.pos);if(e>-1)return this.pos=e,true}backUp(t){this.pos-=t;}column(){return this.lastColumnPosi?o.toLowerCase():o,r=this.string.substr(this.pos,t.length);return s(r)==s(t)?(e!==false&&(this.pos+=t.length),true):null}else {let s=this.string.slice(this.pos).match(t);return s&&s.index>0?null:(s&&e!==false&&(this.pos+=s[0].length),s)}}current(){return this.string.slice(this.start,this.pos)}}function Fc(n){return {name:n.name||"",token:n.token,blankLine:n.blankLine||(()=>{}),startState:n.startState||(()=>true),copyState:n.copyState||zc,indent:n.indent||(()=>null),languageData:n.languageData||{},tokenTable:n.tokenTable||Hn,mergeTokens:n.mergeTokens!==false}}function zc(n){if(typeof n!="object")return n;let t={};for(let e in n){let i=n[e];t[e]=i instanceof Array?i.slice():i;}return t}const Xr=new WeakMap;class In extends St{constructor(t){let e=rc(t.languageData),i=Fc(t),s,r=new class extends vl{createParse(o,l,a){return new Kc(s,o,l,a)}};super(e,r,[],t.name),this.topNode=Uc(e,this),s=this,this.streamParser=i,this.stateAfter=new I({perNode:true}),this.tokenTable=t.tokenTable?new ql(i.tokenTable):$c;}static define(t){return new In(t)}getIndent(t){let e,{overrideIndentation:i}=t.options;i&&(e=Xr.get(t.state),e!=null&&e1e4)return null;for(;r=i&&e+t.length<=s&&t.prop(n.stateAfter);if(r)return {state:n.streamParser.copyState(r),pos:e+t.length};for(let o=t.children.length-1;o>=0;o--){let l=t.children[o],a=e+t.positions[o],h=l instanceof _&&a=t.length)return t;!s&&e==0&&t.type==n.topNode&&(s=true);for(let r=t.children.length-1;r>=0;r--){let o=t.positions[r],l=t.children[r],a;if(oe&&Nn(n,r.tree,0-r.offset,e,l),h;if(a&&a.pos<=i&&(h=Vl(n,r.tree,e+r.offset,a.pos+r.offset,false)))return {state:a.state,tree:h}}return {state:n.streamParser.startState(s?qi(s):4),tree:_.empty}}class Kc{constructor(t,e,i,s){this.lang=t,this.input=e,this.fragments=i,this.ranges=s,this.stoppedAt=null,this.chunks=[],this.chunkPos=[],this.chunk=[],this.chunkReused=void 0,this.rangeIndex=0,this.to=s[s.length-1].to;let r=Me.get(),o=s[0].from,{state:l,tree:a}=qc(t,i,o,this.to,r?.state);this.state=l,this.parsedPos=this.chunkStart=o+a.length;for(let h=0;hh.from<=r.viewport.from&&h.to>=r.viewport.from)&&(this.state=this.lang.streamParser.startState(qi(r.state)),r.skipUntilInView(this.parsedPos,r.viewport.from),this.parsedPos=r.viewport.from),this.moveRangeIndex();}advance(){let t=Me.get(),e=this.stoppedAt==null?this.to:Math.min(this.to,this.stoppedAt),i=Math.min(e,this.chunkStart+512);for(t&&(i=Math.min(i,t.viewport.to));this.parsedPos=e?this.finish():t&&this.parsedPos>=t.viewport.to?(t.skipUntilInView(this.parsedPos,e),this.finish()):null}stopAt(t){this.stoppedAt=t;}lineAfter(t){let e=this.input.chunk(t);if(this.input.lineChunks)e==` +`&&(e="");else {let i=e.indexOf(` +`);i>-1&&(e=e.slice(0,i));}return t+e.length<=this.to?e:e.slice(0,this.to-t)}nextLine(){let t=this.parsedPos,e=this.lineAfter(t),i=t+e.length;for(let s=this.rangeIndex;;){let r=this.ranges[s].to;if(r>=i||(e=e.slice(0,r-(i-e.length)),s++,s==this.ranges.length))break;let o=this.ranges[s].from,l=this.lineAfter(o);e+=l,i=o+l.length;}return {line:e,end:i}}skipGapsTo(t,e,i){for(;;){let s=this.ranges[this.rangeIndex].to,r=t+e;if(i>0?s>r:s>=r)break;let o=this.ranges[++this.rangeIndex].from;e+=o-s;}return e}moveRangeIndex(){for(;this.ranges[this.rangeIndex].to1){s=this.skipGapsTo(e,s,1),e+=s;let l=this.chunk.length;s=this.skipGapsTo(i,s,-1),i+=s,r+=this.chunk.length-l;}let o=this.chunk.length-4;return this.lang.streamParser.mergeTokens&&r==4&&o>=0&&this.chunk[o]==t&&this.chunk[o+2]==e?this.chunk[o+2]=i:this.chunk.push(t,e,i,r),s}parseLine(t){let{line:e,end:i}=this.nextLine(),s=0,{streamParser:r}=this.lang,o=new Wl(e,t?t.state.tabSize:4,t?qi(t.state):2);if(o.eol())r.blankLine(this.state,o.indentUnit);else for(;!o.eol();){let l=Fl(r.token,o,this.state);if(l&&(s=this.emitToken(this.lang.tokenTable.resolve(l),this.parsedPos+o.start,this.parsedPos+o.pos,s)),o.start>1e4)break}this.parsedPos=i,this.moveRangeIndex(),this.parsedPost.start)return s}throw new Error("Stream parser failed to advance stream.")}const Hn=Object.create(null),Ze=[ft.none],jc=new Bn(Ze),Jr=[],Qr=Object.create(null),zl=Object.create(null);for(let[n,t]of [["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])zl[n]=Kl(Hn,t);class ql{constructor(t){this.extra=t,this.table=Object.assign(Object.create(null),zl);}resolve(t){return t?this.table[t]||(this.table[t]=Kl(this.extra,t)):0}}const $c=new ql(Hn);function Cs(n,t){Jr.indexOf(n)>-1||(Jr.push(n),console.warn(t));}function Kl(n,t){let e=[];for(let l of t.split(" ")){let a=[];for(let h of l.split(".")){let f=n[h]||k[h];f?typeof f=="function"?a.length?a=a.map(f):Cs(h,`Modifier ${h} used at start of tag`):a.length?Cs(h,`Tag ${h} used as modifier`):a=Array.isArray(f)?f:[f]:Cs(h,`Unknown highlighting tag ${h}`);}for(let h of a)e.push(h);}if(!e.length)return 0;let i=t.replace(/ /g,"_"),s=i+" "+e.map(l=>l.id),r=Qr[s];if(r)return r.id;let o=Qr[s]=ft.define({id:Ze.length,name:i,props:[tc({[i]:e})]});return Ze.push(o),o.id}function Uc(n,t){let e=ft.define({id:Ze.length,name:"Document",props:[me.add(()=>n),Ol.add(()=>i=>t.getIndent(i))],top:true});return Ze.push(e),e}$.RTL,$.LTR;const _c=["standardSQL","msSQL","mySQL","mariaDB","sqlite","cassandra","plSQL","hive","pgSQL","gql","gpSQL","sparkSQL","esper"];({...Object.fromEntries(_c.map(n=>["sql-"+n,()=>import('./sql-C4K_nLbQ.js').then(t=>In.define(t[n]))]))}); + +export { $, A, B, C, le as D, ae as E, Ft as F, nu as G, H, Ir as I, J, I as K, L, zt as M, Nt as N, Oe as O, uu as P, Qc as Q, Rt as R, qi as S, Tl as T, U, Ml as V, Wt as W, cu as X, Yc as Y, _i as _, su as a, $i as b, at as c, Jl as d, Jh as e, es as f, gl as g, fu as h, F as i, iu as j, k, hu as l, Jc as m, nt as n, lu as o, eu as p, au as q, ro as r, st as s, tu as t, cc as u, vt as v, bn as w, fc as x, W as y, mt as z }; +//# sourceMappingURL=Code.svelte_svelte_type_style_lang-C72WHBwk.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Download-DcU5dONL.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Download-DcU5dONL.js new file mode 100644 index 0000000000000000000000000000000000000000..1d9e0dbda29a3390eeab052fe87b82ccd6901027 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Download-DcU5dONL.js @@ -0,0 +1,6 @@ +import './async-D55cHugf.js'; + +function l(t){t.push('');} + +export { l }; +//# sourceMappingURL=Download-DcU5dONL.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/DownloadLink-nj1p0krE.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/DownloadLink-nj1p0krE.js new file mode 100644 index 0000000000000000000000000000000000000000..6e616af947b11574fed4333120e5429e31c10892 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/DownloadLink-nj1p0krE.js @@ -0,0 +1,7 @@ +import { f as fallback } from './async-D55cHugf.js'; +import { n as sanitize_props, r as rest_props, m as attributes, s as slot, d as bind_props } from './index-u8mz_F03.js'; + +/* empty css */function u(i,t){const l=sanitize_props(t),d=rest_props(l,["href","download"]);i.component(n=>{let e=fallback(t.href,void 0),a=t.download;n.push(``),slot(n,t,"default",{}),n.push(""),bind_props(t,{href:e,download:a});});} + +export { u }; +//# sourceMappingURL=DownloadLink-nj1p0krE.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Dropdown-D-In1KD6.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Dropdown-D-In1KD6.js new file mode 100644 index 0000000000000000000000000000000000000000..d80ffd2138da6d68ea1d82fe4bb394350d9155f5 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Dropdown-D-In1KD6.js @@ -0,0 +1,11 @@ +import './async-D55cHugf.js'; +import { f as attr_class, a as attr, d as bind_props, g as attr_style, e as ensure_array_like } from './index-u8mz_F03.js'; +import { c } from './BlockTitle-BnJIYf6a.js'; +import './2-BLdXJizP.js'; +import { y } from './IconButtonWrapper-CjFRPb3y.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; + +function F(a){a.push('');}function G(a,u){a.component(t=>{let{choices:p,filtered_indices:c,show_options:f=false,disabled:d=false,selected_indices:s=[],active_index:n=null,remember_scroll:m=false,offset_from_top:D=0,from_top:B=false,onchange:I,onload:_}=u,h=0,N=null,w=null,b=0;if(t.push('
'),f&&!d){t.push(""),t.push(`
    `);const x=ensure_array_like(c);for(let v=0,z=x.length;v✓ ${escape_html(p[e][0])}`);}t.push("
");}else t.push("");t.push("");});}function S(a,u){a.component(t=>{const p=typeof window<"u";let{label:c$1="Dropdown",info:f=void 0,value:d=void 0,choices:s=[],interactive:n=true,show_label:m=true,container:D=true,allow_custom_value:B=false,filterable:I=true,buttons:_=null,oncustom_button_click:h=null,on_change:N,on_input:w,on_select:b,on_focus:x,on_blur:v,on_key_up:z}=u,e,r=p&&e===document.activeElement,E=s.map(i=>i[0]),M=s.map(i=>i[1]),g="",o=null,y$1=!n,O=s.map((i,k)=>k),A=null,T=o===null?[]:[o];function W(i){if(o=parseInt(i),isNaN(o)){o=null;return}let[k,j]=s[o];g=k,d=j,b?.({index:o,value:M[o],selected:true}),r=false,A=null,w?.(),e.blur();}t.push(``),m&&_&&_.length>0?(t.push(""),y(t,{buttons:_,on_custom_button_click:h})):t.push(""),t.push(" "),c(t,{show_label:m,info:f,children:i=>{i.push(`${escape_html(c$1)}`);},$$slots:{default:true}}),t.push(`
`),y$1?t.push(""):(t.push(""),t.push('
'),F(t),t.push("
")),t.push("
"),G(t,{show_options:r,choices:s,filtered_indices:O,disabled:y$1,selected_indices:T,active_index:A,onchange:W,onload:()=>true}),t.push(""),bind_props(u,{value:d});});} + +export { F, G, S }; +//# sourceMappingURL=Dropdown-D-In1KD6.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Edit-DWZSi_T0.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Edit-DWZSi_T0.js new file mode 100644 index 0000000000000000000000000000000000000000..9dcecc47c9f15e07ad9aecff9de11576786c6c0c --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Edit-DWZSi_T0.js @@ -0,0 +1,6 @@ +import './async-D55cHugf.js'; + +function r(t){t.push('');} + +export { r }; +//# sourceMappingURL=Edit-DWZSi_T0.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example-DMvLoGhj.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example-DMvLoGhj.js new file mode 100644 index 0000000000000000000000000000000000000000..9e0a1accf9fc3ae05a149cf7dcb7814c001b7d4b --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example-DMvLoGhj.js @@ -0,0 +1,9 @@ +import './async-D55cHugf.js'; +import { f as attr_class } from './index-u8mz_F03.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; + +/* empty css */function f(s,i){let{value:n,type:t,selected:p=false}=i;function c(r,l=60){if(!r)return "";const e=String(r);return e.length<=l?e:e.slice(0,l)+"..."}s.push(`${escape_html(c(n))}`);} + +export { f as default }; +//# sourceMappingURL=Example-DMvLoGhj.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example10-_LenqteX.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example10-_LenqteX.js new file mode 100644 index 0000000000000000000000000000000000000000..4334acff239f95213e3a9c7773a59879eb94b6e7 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example10-_LenqteX.js @@ -0,0 +1,9 @@ +import './async-D55cHugf.js'; +import { f as attr_class } from './index-u8mz_F03.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; + +function d(a,s){let{value:e,type:l,selected:p=false}=s;a.push(`${escape_html(e||"")}`);} + +export { d as default }; +//# sourceMappingURL=Example10-_LenqteX.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example11-CnvgxPlT.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example11-CnvgxPlT.js new file mode 100644 index 0000000000000000000000000000000000000000..41b0661aea4efa4451d626be27f9519786c6b2e3 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example11-CnvgxPlT.js @@ -0,0 +1,9 @@ +import { f as fallback } from './async-D55cHugf.js'; +import { f as attr_class, d as bind_props } from './index-u8mz_F03.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; + +function n(i,e){i.component(s=>{let t=e.value,a=e.type,c=fallback(e.selected,false);s.push(`${escape_html(t!==null?t.toLocaleString():"")}`),bind_props(e,{value:t,type:a,selected:c});});} + +export { n as default }; +//# sourceMappingURL=Example11-CnvgxPlT.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example12-DCDYOPbl.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example12-DCDYOPbl.js new file mode 100644 index 0000000000000000000000000000000000000000..3f0bb66a993c86eddf91babb8409730dc17da43a --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example12-DCDYOPbl.js @@ -0,0 +1,9 @@ +import { f as fallback } from './async-D55cHugf.js'; +import { f as attr_class, d as bind_props } from './index-u8mz_F03.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; + +function r(c,e){c.component(d=>{let i=e.value,t=e.type,n=fallback(e.selected,false),s=e.choices,m=i.map(a=>s.find(f=>f[1]===a)?.[0]).filter(a=>a!==void 0).join(", ");d.push(`${escape_html(m)}`),bind_props(e,{value:i,type:t,selected:n,choices:s});});} + +export { r as default }; +//# sourceMappingURL=Example12-DCDYOPbl.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example13-cXK-YGz2.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example13-cXK-YGz2.js new file mode 100644 index 0000000000000000000000000000000000000000..62714821bf56c384a353c3257cb04dee1eaa5fae --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example13-cXK-YGz2.js @@ -0,0 +1,9 @@ +import { f as fallback } from './async-D55cHugf.js'; +import { g as attr_style, f as attr_class, i as stringify, d as bind_props } from './index-u8mz_F03.js'; +import './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; + +function i(c,l){let t=l.value,a=l.type,s=fallback(l.selected,false);c.push(``),bind_props(l,{value:t,type:a,selected:s});} + +export { i as default }; +//# sourceMappingURL=Example13-cXK-YGz2.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example14-s-dCDI60.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example14-s-dCDI60.js new file mode 100644 index 0000000000000000000000000000000000000000..c3ac2651cefe7e7c051a93f53fe48b22ca99ee3b --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example14-s-dCDI60.js @@ -0,0 +1,9 @@ +import { f as fallback } from './async-D55cHugf.js'; +import { f as attr_class, e as ensure_array_like, d as bind_props } from './index-u8mz_F03.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; + +function q(y,a){y.component(l=>{let s=a.value,h=a.type,p=fallback(a.selected,false),i=a.index,e=Array.isArray(s),b=e&&(s.length===0||s[0].length===0);if(e){if(l.push(""),l.push(``),typeof s=="string")l.push(""),l.push(`${escape_html(s)}`);else {if(l.push(""),b)l.push(""),l.push('
Empty
');else {l.push(""),l.push('');const o=ensure_array_like(s.slice(0,3));for(let c=0,f=o.length;c');const w=ensure_array_like(v.slice(0,3));for(let u=0,g=w.length;u${escape_html(k)}`);}l.push(""),v.length>3?(l.push(""),l.push('')):l.push(""),l.push("");}l.push("
…
"),s.length>3?(l.push(""),l.push(``)):l.push(""),l.push("");}l.push("");}l.push("");}else l.push("");l.push(""),bind_props(a,{value:s,type:h,selected:p,index:i});});} + +export { q as default }; +//# sourceMappingURL=Example14-s-dCDI60.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example15-OgTyyC0U.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example15-OgTyyC0U.js new file mode 100644 index 0000000000000000000000000000000000000000..19dcea09e1a3ae20d199d85ca0b7e1c17094759d --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example15-OgTyyC0U.js @@ -0,0 +1,9 @@ +import { f as fallback } from './async-D55cHugf.js'; +import { f as attr_class, d as bind_props } from './index-u8mz_F03.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; + +function i(d,e){let a=e.value,t=e.type,s=fallback(e.selected,false);d.push(`${escape_html(a)}`),bind_props(e,{value:a,type:t,selected:s});} + +export { i as default }; +//# sourceMappingURL=Example15-OgTyyC0U.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example16-D8xbA2sg.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example16-D8xbA2sg.js new file mode 100644 index 0000000000000000000000000000000000000000..31b141716243cbcd2182e4117e91867a35fbe7db --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example16-D8xbA2sg.js @@ -0,0 +1,9 @@ +import './async-D55cHugf.js'; +import { f as attr_class, e as ensure_array_like } from './index-u8mz_F03.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; + +function f(i,u){i.component(l=>{let{value:s,type:p,selected:c=false}=u;if(l.push(``),s){l.push(""),l.push("");const h=ensure_array_like(Array.isArray(s)?s.slice(0,3):[s]);for(let a=0,e=h.length;a./${escape_html(o)}`);}l.push(" "),Array.isArray(s)&&s.length>3?(l.push(""),l.push('
  • ...
  • ')):l.push(""),l.push("");}else l.push("");l.push("");});} + +export { f as default }; +//# sourceMappingURL=Example16-D8xbA2sg.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example17-B0rWh-Zw.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example17-B0rWh-Zw.js new file mode 100644 index 0000000000000000000000000000000000000000..a1d71606c2ca47615fdb98b7c68dc5b62303d52a --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example17-B0rWh-Zw.js @@ -0,0 +1,9 @@ +import { f as fallback } from './async-D55cHugf.js'; +import { f as attr_class, e as ensure_array_like, a as attr, d as bind_props } from './index-u8mz_F03.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; + +function m(o,i){o.component(s=>{let l=i.value,p=i.type,c=fallback(i.selected,false);if(s.push(``),l&&l.length>0){s.push(""),s.push('
    ');const h=ensure_array_like(l.slice(0,3));for(let u=0,v=h.length;u"),s.push(`
    `),a.caption?(s.push(""),s.push(`${escape_html(a.caption)}`)):s.push(""),s.push("
    ")):(s.push(""),"video"in a&&a.video?(s.push(""),s.push(`
    `),a.caption?(s.push(""),s.push(`${escape_html(a.caption)}`)):s.push(""),s.push("
    ")):s.push(""),s.push("")),s.push("");}s.push(" "),l.length>3?(s.push(""),s.push('
    …
    ')):s.push(""),s.push("
    ");}else s.push("");s.push(""),bind_props(i,{value:l,type:p,selected:c});});} + +export { m as default }; +//# sourceMappingURL=Example17-B0rWh-Zw.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example18-BxnxeXx7.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example18-BxnxeXx7.js new file mode 100644 index 0000000000000000000000000000000000000000..c52dec0c6ca51c968d55adda3f4f51d0e5912a11 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example18-BxnxeXx7.js @@ -0,0 +1,10 @@ +import { f as fallback } from './async-D55cHugf.js'; +import { f as attr_class, d as bind_props } from './index-u8mz_F03.js'; +import { h as html } from './html-CfyvkLET.js'; +import './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; + +function c(d,e){let a=e.value,t=e.type,s=fallback(e.selected,false);d.push(`${html(a)}`),bind_props(e,{value:a,type:t,selected:s});} + +export { c as default }; +//# sourceMappingURL=Example18-BxnxeXx7.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example19-f2YaV1dL.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example19-f2YaV1dL.js new file mode 100644 index 0000000000000000000000000000000000000000..0d335063f65cf119f2ef6e92f956d8873ded5d78 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example19-f2YaV1dL.js @@ -0,0 +1,14 @@ +import { f as fallback } from './async-D55cHugf.js'; +import { f as attr_class, d as bind_props } from './index-u8mz_F03.js'; +import './2-BLdXJizP.js'; +import { c } from './Image-CuPo5pWT.js'; +import './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; + +/* empty css *//* empty css *//* empty css */function k(m,t){m.component(e=>{let l=t.value,o=t.type,a=fallback(t.selected,false);e.push(``),c(e,{src:l.composite?.url||l.background?.url}),e.push(""),bind_props(t,{value:l,type:o,selected:a});});} + +export { k as default }; +//# sourceMappingURL=Example19-f2YaV1dL.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example2-zAdYDcJY.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example2-zAdYDcJY.js new file mode 100644 index 0000000000000000000000000000000000000000..a4307e1ed0f39241729ef2f59353c751436844a3 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example2-zAdYDcJY.js @@ -0,0 +1,9 @@ +import { f as fallback } from './async-D55cHugf.js'; +import { f as attr_class, d as bind_props } from './index-u8mz_F03.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; + +/* empty css */function v(o,t){o.component(c=>{let i=t.value,r=t.type,n=fallback(t.selected,false);function f(e,s=60){if(!e)return "";const a=String(e);return a.length<=s?a:a.slice(0,s)+"..."}c.push(`${escape_html(f(i))}`),bind_props(t,{value:i,type:r,selected:n});});} + +export { v as default }; +//# sourceMappingURL=Example2-zAdYDcJY.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example20-Db-Ev9ZG.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example20-Db-Ev9ZG.js new file mode 100644 index 0000000000000000000000000000000000000000..98e3a91cb96ac0cc993c85030c340b70ff70f64f --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example20-Db-Ev9ZG.js @@ -0,0 +1,9 @@ +import { f as fallback } from './async-D55cHugf.js'; +import { f as attr_class, a as attr, d as bind_props } from './index-u8mz_F03.js'; +import './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; + +function m(i,l){i.component(r=>{let t=l.value,a=l.samples_dir,s=l.type,c=fallback(l.selected,false);r.push(` `),bind_props(l,{value:t,samples_dir:a,type:s,selected:c});});} + +export { m as default }; +//# sourceMappingURL=Example20-Db-Ev9ZG.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example21-5RS4f36X.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example21-5RS4f36X.js new file mode 100644 index 0000000000000000000000000000000000000000..d3fc575633a3a2263c14aa31e40db0956d13dd64 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example21-5RS4f36X.js @@ -0,0 +1,19 @@ +import './async-D55cHugf.js'; +import { f as attr_class } from './index-u8mz_F03.js'; +import { K } from './JSON-CDSHpFEC.js'; +import './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; +import './Check-C7_ZsXgh.js'; +import './Copy-B8YOhH7c.js'; +import './IconButton-BRnu7KaR.js'; +import './Empty-DGRbZO0a.js'; +import './2-BLdXJizP.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; +import './IconButtonWrapper-CjFRPb3y.js'; + +function u(e,s){let{value:t,theme_mode:a="system",type:l,selected:o=false}=s,i=false,p=0;e.push(``),t?(e.push(""),K(e,{value:t,open:true,theme_mode:a,show_indices:i,label_height:p,interactive:false,show_copy_button:false})):e.push(""),e.push("");} + +export { u as default }; +//# sourceMappingURL=Example21-5RS4f36X.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example22-CvVgGYgY.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example22-CvVgGYgY.js new file mode 100644 index 0000000000000000000000000000000000000000..c5dde9c934260bb3688f329551016e78d455a59e --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example22-CvVgGYgY.js @@ -0,0 +1,9 @@ +import { f as fallback } from './async-D55cHugf.js'; +import { f as attr_class, d as bind_props } from './index-u8mz_F03.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; + +function c(d,e){let t=e.value,a=e.type,s=fallback(e.selected,false);d.push(`${escape_html(t||"")}`),bind_props(e,{value:t,type:a,selected:s});} + +export { c as default }; +//# sourceMappingURL=Example22-CvVgGYgY.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example23-DV0Mqr6K.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example23-DV0Mqr6K.js new file mode 100644 index 0000000000000000000000000000000000000000..b534708496ecec2889539cbe86bf62da86836590 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example23-DV0Mqr6K.js @@ -0,0 +1,15 @@ +import './async-D55cHugf.js'; +import { f as attr_class, e as ensure_array_like, a as attr } from './index-u8mz_F03.js'; +import { c } from './Image-CuPo5pWT.js'; +import './2-BLdXJizP.js'; +import { c as ch } from './Video2-BN5I0jvO.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; + +function n(o,e){o.component(t=>{let{value:l={text:"",files:[]},type:a,selected:u=false}=e;t.push(`

    ${escape_html(l.text?l.text:"")}

    `);const m=ensure_array_like(l.files);for(let p=0,c$1=m.length;p"),c(t,{src:s.url})):(t.push(""),s.mime_type&&s.mime_type.includes("video")?(t.push(""),ch(t,{src:s.url,alt:"",loop:true,is_stream:false})):(t.push(""),s.mime_type&&s.mime_type.includes("audio")?(t.push(""),t.push(``)):(t.push(""),t.push(`${escape_html(s.orig_name)}`)),t.push("")),t.push("")),t.push("");}t.push("");});} + +export { n as default }; +//# sourceMappingURL=Example23-DV0Mqr6K.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example26-Bi4XTQCa.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example26-Bi4XTQCa.js new file mode 100644 index 0000000000000000000000000000000000000000..1bb65426874f35b33065bc8107533bc2be21b5f5 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example26-Bi4XTQCa.js @@ -0,0 +1,9 @@ +import { f as fallback } from './async-D55cHugf.js'; +import { f as attr_class, d as bind_props } from './index-u8mz_F03.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; + +function u(n,e){n.component(f=>{let t=e.value,a=e.type,c=fallback(e.selected,false),i=e.choices,s;if(t===null)s="";else {let d=i.find(m=>m[1]===t);s=d?d[0]:"";}f.push(`${escape_html(s)}`),bind_props(e,{value:t,type:a,selected:c,choices:i});});} + +export { u as default }; +//# sourceMappingURL=Example26-Bi4XTQCa.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example27-Cp7qdY26.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example27-Cp7qdY26.js new file mode 100644 index 0000000000000000000000000000000000000000..741630f7eec675de2bb9fcc1086c7b5b018aeb90 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example27-Cp7qdY26.js @@ -0,0 +1,9 @@ +import { f as fallback } from './async-D55cHugf.js'; +import { f as attr_class, d as bind_props } from './index-u8mz_F03.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; + +function i(d,e){let a=e.value,t=e.type,s=fallback(e.selected,false);d.push(`${escape_html(a)}`),bind_props(e,{value:a,type:t,selected:s});} + +export { i as default }; +//# sourceMappingURL=Example27-Cp7qdY26.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example29-DcfEoyR5.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example29-DcfEoyR5.js new file mode 100644 index 0000000000000000000000000000000000000000..3de4831c3444cc657542cb03275559457b3f4309 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example29-DcfEoyR5.js @@ -0,0 +1,9 @@ +import { f as fallback } from './async-D55cHugf.js'; +import { f as attr_class, d as bind_props } from './index-u8mz_F03.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; + +function i(d,e){let a=e.value,t=e.type,s=fallback(e.selected,false);d.push(`${escape_html(a)}`),bind_props(e,{value:a,type:t,selected:s});} + +export { i as default }; +//# sourceMappingURL=Example29-DcfEoyR5.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example3-a2_CbOT1.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example3-a2_CbOT1.js new file mode 100644 index 0000000000000000000000000000000000000000..86361191835605682f4a560ddf845138755c548e --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example3-a2_CbOT1.js @@ -0,0 +1,7 @@ +import './async-D55cHugf.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; + +function l(e,a){let{value:p}=a;e.push(`${escape_html(p||"")}`);} + +export { l as default }; +//# sourceMappingURL=Example3-a2_CbOT1.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example4-wtFKJHsa.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example4-wtFKJHsa.js new file mode 100644 index 0000000000000000000000000000000000000000..cf35cdd8c35cc8b5030aad2c2d0581a1a4b4ae35 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example4-wtFKJHsa.js @@ -0,0 +1,9 @@ +import './async-D55cHugf.js'; +import { f as attr_class } from './index-u8mz_F03.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; + +/* empty css */function u(r,s){r.component(i=>{let{value:e,type:l,selected:n=false,choices:o}=s,m=(e?Array.isArray(e)?e:[e]:[]).map(a=>o.find(p=>p[1]===a)?.[0]).filter(a=>a!==void 0).join(", ");i.push(`${escape_html(m)}`);});} + +export { u as default }; +//# sourceMappingURL=Example4-wtFKJHsa.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example5-CnJKzaeD.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example5-CnJKzaeD.js new file mode 100644 index 0000000000000000000000000000000000000000..267c79765441f283fa3480eff0b3f92159ef50b7 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example5-CnJKzaeD.js @@ -0,0 +1,9 @@ +import './async-D55cHugf.js'; +import { f as attr_class } from './index-u8mz_F03.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; + +/* empty css */function c(l,r){l.component(s=>{let{value:e,type:t,selected:o=false}=r;s.push(`${escape_html(e?Array.isArray(e)?e.join(", "):e:"")}`);});} + +export { c as default }; +//# sourceMappingURL=Example5-CnJKzaeD.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example6-cJA6M13Z.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example6-cJA6M13Z.js new file mode 100644 index 0000000000000000000000000000000000000000..da3ceb679e0e8eaa708a3e7af9c8250ba4a5bb71 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example6-cJA6M13Z.js @@ -0,0 +1,10 @@ +import { f as fallback } from './async-D55cHugf.js'; +import { f as attr_class, d as bind_props } from './index-u8mz_F03.js'; +import { c } from './Image-CuPo5pWT.js'; +import './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; + +/* empty css */function f(o,t){o.component(l=>{let e=t.value,a=t.type,i=fallback(t.selected,false);l.push(``),e?(l.push(""),c(l,{src:e.url})):l.push(""),l.push(""),bind_props(t,{value:e,type:a,selected:i});});} + +export { f as default }; +//# sourceMappingURL=Example6-cJA6M13Z.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example7-DQRo7Gao.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example7-DQRo7Gao.js new file mode 100644 index 0000000000000000000000000000000000000000..3cf4cab27721e4b779c3dbfb6b5807bd9175a76c --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example7-DQRo7Gao.js @@ -0,0 +1,20 @@ +import { f as fallback } from './async-D55cHugf.js'; +import { f as attr_class, d as bind_props } from './index-u8mz_F03.js'; +import { Q as Qt } from './MarkdownCode-DLHRxFlS.js'; +import './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; +import './prism-python--2v-p3P4.js'; +import './2-BLdXJizP.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; +import './index50-G3WrDDFf.js'; +import 'path'; +import 'url'; +import 'fs'; +import './html-CfyvkLET.js'; + +/* empty css */function h(t,e){let s=e.value,l=e.type,n=fallback(e.selected,false),r=e.sanitize_html,u=e.line_breaks,c=e.latex_delimiters;function f(m,d=60){if(!m)return "";const a=String(m);return a.length<=d?a:a.slice(0,d)+"..."}t.push(``),Qt(t,{message:f(s),latex_delimiters:c,sanitize_html:r,line_breaks:u,chatbot:false}),t.push(""),bind_props(e,{value:s,type:l,selected:n,sanitize_html:r,line_breaks:u,latex_delimiters:c});} + +export { h as default }; +//# sourceMappingURL=Example7-DQRo7Gao.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example8-DzWVOcId.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example8-DzWVOcId.js new file mode 100644 index 0000000000000000000000000000000000000000..78cab73c7ef907e4fabd33e5dfae4caf369b1e1e --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example8-DzWVOcId.js @@ -0,0 +1,9 @@ +import './async-D55cHugf.js'; +import { d as bind_props } from './index-u8mz_F03.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; + +function h(t,s){let p=s.title,a=s.x,i=s.y;p?(t.push(""),t.push(`${escape_html(p)}`)):(t.push(""),t.push(`${escape_html(a)} x ${escape_html(i)}`)),t.push(""),bind_props(s,{title:p,x:a,y:i});} + +export { h as default }; +//# sourceMappingURL=Example8-DzWVOcId.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example9-CohsKGP8.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example9-CohsKGP8.js new file mode 100644 index 0000000000000000000000000000000000000000..be9d1d48c9d087defd3355afdd166b3296465ffc --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Example9-CohsKGP8.js @@ -0,0 +1,9 @@ +import { f as fallback } from './async-D55cHugf.js'; +import { d as bind_props } from './index-u8mz_F03.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; + +function p(t,a){t.component(l=>{let i=fallback(a.value,()=>({visible:true,home_page_title:"Home"}),true);l.push(`
    Navbar config: visible=${escape_html(i.visible)}, home_page_title="${escape_html(i.home_page_title)}"
    `),bind_props(a,{value:i});});} + +export { p as default }; +//# sourceMappingURL=Example9-CohsKGP8.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/File-DQh5d1OO.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/File-DQh5d1OO.js new file mode 100644 index 0000000000000000000000000000000000000000..dba58302d5bc8fbc381897b1163042c8e3ddd568 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/File-DQh5d1OO.js @@ -0,0 +1,6 @@ +import './async-D55cHugf.js'; + +function i(e){e.push('');} + +export { i }; +//# sourceMappingURL=File-DQh5d1OO.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/FullscreenButton-D8PvgSmk.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/FullscreenButton-D8PvgSmk.js new file mode 100644 index 0000000000000000000000000000000000000000..e37f01a7fdf7bcbea73617c35b62bc1fbd7e3a05 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/FullscreenButton-D8PvgSmk.js @@ -0,0 +1,9 @@ +import './async-D55cHugf.js'; +import { w } from './IconButton-BRnu7KaR.js'; +import { i } from './Maximize-CuHbK64j.js'; +import './2-BLdXJizP.js'; + +function c(t){t.push('');}function k(t,n){t.component(o=>{let{fullscreen:e,onclick:i$1}=n;e?(o.push(""),w(o,{Icon:c,label:"Exit fullscreen mode",onclick:()=>i$1(false)})):(o.push(""),w(o,{Icon:i,label:"Fullscreen",onclick:()=>i$1(true)})),o.push("");});} + +export { k }; +//# sourceMappingURL=FullscreenButton-D8PvgSmk.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Gallery-CCN3JI-P.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Gallery-CCN3JI-P.js new file mode 100644 index 0000000000000000000000000000000000000000..c5f77dcb1f57e211896807e6728b9be1d3697dfc --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Gallery-CCN3JI-P.js @@ -0,0 +1,37 @@ +import './async-D55cHugf.js'; +import { d as bind_props, f as attr_class, g as attr_style, i as stringify, e as ensure_array_like, a as attr } from './index-u8mz_F03.js'; +import { k } from './BlockLabel-bKYWnOzQ.js'; +import { w } from './IconButton-BRnu7KaR.js'; +import { p } from './Empty-DGRbZO0a.js'; +import { y as y$1 } from './ShareButton-7VTs9dOO.js'; +import { o } from './Clear-D7Yjckqz.js'; +import { l } from './Download-DcU5dONL.js'; +import { i } from './Image2-vcp9_ifi.js'; +import { h, e } from './Upload-BbxeBrrD.js'; +import { n } from './Play-B_z3rKL1.js'; +import { r } from './Video-FfbWmOVG.js'; +import { h as h$1 } from './Webcam-CvKMKUzA.js'; +import { y } from './IconButtonWrapper-CjFRPb3y.js'; +import { k as k$1 } from './FullscreenButton-D8PvgSmk.js'; +import { L as Le } from './2-BLdXJizP.js'; +import { e as ee } from './Upload2-uTutz1dY.js'; +import { v } from './ModifyUpload-CWSi2EyW.js'; +import { c } from './Image-CuPo5pWT.js'; +import { c as ch } from './Video2-BN5I0jvO.js'; +import { b } from './utils.svelte-B2py64Fz.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; +import './index-server-CQz6EZl_.js'; +import './Maximize-CuHbK64j.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; +import './DownloadLink-nj1p0krE.js'; +import './Edit-DWZSi_T0.js'; +import './Undo-Ce01x-M5.js'; +import './clone-Yk88IHKV.js'; + +async function rt(h){return h?`
    ${(await Promise.all(h.map(async([c,g])=>c===null||!c.url?"":await b(c.url)))).map(c=>``).join("")}
    `:""}async function ll(h,d,c="uploaded_file"){const g=h.type.split("/")[1]||"png",f=new File([h],`${c}.${g}`),m=[new Le({path:f.name,orig_name:f.name,blob:f,size:f.size,mime_type:f.type,is_stream:false})];return await d(...m)}function xt(h$2,d){h$2.component(c$1=>{let{show_label:g=true,label:f,value:m=void 0,columns:O=[2],rows:R=void 0,height:b="auto",preview:S,allow_preview:V=true,object_fit:C="cover",show_share_button:W=false,show_download_button:A=false,i18n:_,selected_index:p$1=void 0,interactive:E,_fetch:H,show_fullscreen_button:q=true,fullscreen:J=false,root:K="",file_types:N=["image","video"],sources:k$2,max_file_size:Q=null,upload:L,stream_handler:P,fit_columns:X=true,buttons:Y=null,oncustom_button_click:Z=null,onpreview_open:Ut=()=>{},onchange:jt=()=>{},onclear:$=()=>{},onselect:Et=t=>{},onshare:Lt=t=>{},onerror:tt=t=>{},onpreview_close:lt=()=>{},onfullscreen:at=t=>{},ondelete:Pt=()=>{},onupload:it=()=>{},onsource_change:y$2=()=>{}}=d,B=null,I="normal",ot=false,r$1=false,u=m==null?null:m.map(t=>"video"in t?{video:t.video,caption:t.caption}:"image"in t?{image:t.image,caption:t.caption}:{});function st(t,n,a){if(t&&n&&a){const l=t.length;return Array.isArray(n)?n.map(i=>Math.min(i,l)):Math.min(n,l)}else return n}let ut=st(u,O,X);p$1==null&&S&&m?.length&&(p$1=0),((p$1??0)+(u?.length??0)-1)%(u?.length??0),((p$1??0)+1)%(u?.length??0);async function nt(t,n){let a;try{a=await H(t);}catch(z){if(z instanceof TypeError){window.open(t,"_blank","noreferrer");return}throw z}const l=await a.blob(),i=URL.createObjectURL(l),e=document.createElement("a");e.href=i,e.download=n,e.click(),URL.revokeObjectURL(i);}let s=p$1!=null&&u!=null?u[p$1]:null;let M=false,w$1=true,x;function et(t){if(g?(t.push(""),k(t,{show_label:g,Icon:i,label:f||"Gallery"})):t.push(""),t.push(" "),m==null||u==null||u.length===0)t.push(""),p(t,{unpadded_box:true,size:"large",children:n=>{i(n);},$$slots:{default:true}});else {if(t.push(""),t.push('");}t.push("");}t.push("");}do w$1=true,x=c$1.copy(),et(x);while(!w$1);c$1.subsume(x),bind_props(d,{value:m,selected_index:p$1});});}const al=Object.freeze(Object.defineProperty({__proto__:null,default:xt},Symbol.toStringTag,{value:"Module"})); + +export { xt as G, al as a, ll as h }; +//# sourceMappingURL=Gallery-CCN3JI-P.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/HTML-Clqd1RzU.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/HTML-Clqd1RzU.js new file mode 100644 index 0000000000000000000000000000000000000000..2ac8846fb41b51ed82023676990da6f79ca8a9cb --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/HTML-Clqd1RzU.js @@ -0,0 +1,34 @@ +import './async-D55cHugf.js'; +import { a as attr, f as attr_class, i as stringify, j as clsx } from './index-u8mz_F03.js'; +import { r } from './_commonjs-dynamic-modules-DX_xVkta.js'; +import require$$0 from 'fs'; +import { s as snapshot } from './clone-Yk88IHKV.js'; +import './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; + +var X={exports:{}},Z={exports:{}},D={},R={},Oe;function I(){if(Oe)return R;Oe=1,R.__esModule=true,R.extend=m,R.indexOf=s,R.escapeExpression=a,R.isEmpty=n,R.createFrame=h,R.blockParams=r,R.appendContextPath=t;var v={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},_=/[&<>"'`=]/g,y=/[&<>"'`=]/;function S(e){return v[e]}function m(e){for(var i=1;i0?(o.ids&&(o.ids=[o.name]),S.helpers.each(m,o)):p(this);if(o.data&&o.ids){var s=y.createFrame(o.data);s.contextPath=y.appendContextPath(o.data.contextPath,o.name),o={data:s};}return c(m,o)});},v.exports=_.default;})($,$.exports)),$.exports}var ee={exports:{}},Ne;function Rt(){return Ne||(Ne=1,(function(v,_){_.__esModule=true;function y(p){return p&&p.__esModule?p:{default:p}}var S=I(),m=q(),o=y(m);_.default=function(p){p.registerHelper("each",function(c,s){if(!s)throw new o.default("Must pass iterator to #each");var a=s.fn,n=s.inverse,h=0,r="",t=void 0,e=void 0;s.data&&s.ids&&(e=S.appendContextPath(s.data.contextPath,s.ids[0])+"."),S.isFunction(c)&&(c=c.call(this)),s.data&&(t=S.createFrame(s.data));function i(l,g,k){t&&(t.key=l,t.index=g,t.first=g===0,t.last=!!k,e&&(t.contextPath=e+l)),r=r+a(c[l],{data:t,blockParams:S.blockParams([c[l],l],[e+l,null])});}if(c&&typeof c=="object")if(S.isArray(c))for(var u=c.length;h=0?o=p:o=parseInt(o,10);}return o},log:function(o){if(o=S.lookupLevel(o),typeof console<"u"&&S.lookupLevel(S.level)<=o){var p=S.methodMap[o];console[p]||(p="log");for(var c=arguments.length,s=Array(c>1?c-1:0),a=1;a= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};D.REVISION_CHANGES=r;var t="[object Object]";function e(u,f,d){this.helpers=u||{},this.partials=f||{},this.decorators=d||{},m.registerDefaultHelpers(this),o.registerDefaultDecorators(this);}e.prototype={constructor:e,logger:c.default,log:c.default.log,registerHelper:function(f,d){if(_.toString.call(f)===t){if(d)throw new S.default("Arg not supported with multiple helpers");_.extend(this.helpers,f);}else this.helpers[f]=d;},unregisterHelper:function(f){delete this.helpers[f];},registerPartial:function(f,d){if(_.toString.call(f)===t)_.extend(this.partials,f);else {if(typeof d>"u")throw new S.default('Attempting to register a partial called "'+f+'" as undefined');this.partials[f]=d;}},unregisterPartial:function(f){delete this.partials[f];},registerDecorator:function(f,d){if(_.toString.call(f)===t){if(d)throw new S.default("Arg not supported with multiple decorators");_.extend(this.decorators,f);}else this.decorators[f]=d;},unregisterDecorator:function(f){delete this.decorators[f];},resetLoggedPropertyAccesses:function(){s.resetLoggedProperties();}};var i=c.default.log;return D.log=i,D.createFrame=_.createFrame,D.logger=c.default,D}var ce={exports:{}},ze;function Ft(){return ze||(ze=1,(function(v,_){_.__esModule=true;function y(S){this.string=S;}y.prototype.toString=y.prototype.toHTML=function(){return ""+this.string},_.default=y,v.exports=_.default;})(ce,ce.exports)),ce.exports}var T={},he={},Qe;function Gt(){if(Qe)return he;Qe=1,he.__esModule=true,he.wrapHelper=v;function v(_,y){if(typeof _!="function")return _;var S=function(){var o=arguments[arguments.length-1];return arguments[arguments.length-1]=y(o),_.apply(this,arguments)};return S}return he}var Ye;function Ut(){if(Ye)return T;Ye=1,T.__esModule=true,T.checkRevision=n,T.template=h,T.wrapProgram=r,T.resolvePartial=t,T.invokePartial=e,T.noop=i;function v(l){return l&&l.__esModule?l:{default:l}}function _(l){if(l&&l.__esModule)return l;var g={};if(l!=null)for(var k in l)Object.prototype.hasOwnProperty.call(l,k)&&(g[k]=l[k]);return g.default=l,g}var y=I(),S=_(y),m=q(),o=v(m),p=Me(),c=kt(),s=Gt(),a=Ct();function n(l){var g=l&&l[0]||1,k=p.COMPILER_REVISION;if(!(g>=p.LAST_COMPATIBLE_COMPILER_REVISION&&g<=p.COMPILER_REVISION))if(g"u"&&(this.lexer.yylloc={});var u=this.lexer.yylloc;h.push(u);var f=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function d(){var M;return M=s.lexer.lex()||1,typeof M!="number"&&(M=s.symbols_[M]||M),M}for(var P,l,g,k,C={},E,x,L,b;;){if(l=a[a.length-1],this.defaultActions[l]?g=this.defaultActions[l]:((P===null||typeof P>"u")&&(P=d()),g=r[l]&&r[l][P]),typeof g>"u"||!g.length||!g[0]){var w="";{b=[];for(E in r[l])this.terminals_[E]&&E>2&&b.push("'"+this.terminals_[E]+"'");this.lexer.showPosition?w="Parse error on line "+(e+1)+`: +`+this.lexer.showPosition()+` +Expecting `+b.join(", ")+", got '"+(this.terminals_[P]||P)+"'":w="Parse error on line "+(e+1)+": Unexpected "+(P==1?"end of input":"'"+(this.terminals_[P]||P)+"'"),this.parseError(w,{text:this.lexer.match,token:this.terminals_[P]||P,line:this.lexer.yylineno,loc:u,expected:b});}}if(g[0]instanceof Array&&g.length>1)throw new Error("Parse Error: multiple actions possible at state: "+l+", token: "+P);switch(g[0]){case 1:a.push(P),n.push(this.lexer.yytext),h.push(this.lexer.yylloc),a.push(g[1]),P=null,i=this.lexer.yyleng,t=this.lexer.yytext,e=this.lexer.yylineno,u=this.lexer.yylloc;break;case 2:if(x=this.productions_[g[1]][1],C.$=n[n.length-x],C._$={first_line:h[h.length-(x||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(x||1)].first_column,last_column:h[h.length-1].last_column},f&&(C._$.range=[h[h.length-(x||1)].range[0],h[h.length-1].range[1]]),k=this.performAction.call(C,t,i,e,this.yy,g[1],n,h),typeof k<"u")return k;x&&(a=a.slice(0,-1*x*2),n=n.slice(0,-1*x),h=h.slice(0,-1*x)),a.push(this.productions_[g[1]][0]),n.push(C.$),h.push(C._$),L=r[a[a.length-2]][a[a.length-1]],a.push(L);break;case 3:return true}}return true}},m=(function(){var p={EOF:1,parseError:function(s,a){if(this.yy.parser)this.yy.parser.parseError(s,a);else throw new Error(s)},setInput:function(s){return this._input=s,this._more=this._less=this.done=false,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var a=s.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},unput:function(s){var a=s.length,n=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var h=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===h.length?this.yylloc.first_column:0)+h[h.length-n.length].length-n[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-a]),this},more:function(){return this._more=true,this},less:function(s){this.unput(this.match.slice(s));},pastInput:function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return (s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var s=this.pastInput(),a=new Array(s.length+1).join("-");return s+this.upcomingInput()+` +`+a+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=true);var s,a,n,h,r;this._more||(this.yytext="",this.match="");for(var t=this._currentRules(),e=0;ea[0].length)&&(a=n,h=e,!this.options.flex)));e++);return a?(r=a[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=false,this._input=this._input.slice(a[0].length),this.matched+=a[0],s=this.performAction.call(this,this.yy,this,t[h],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=false),s||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var s=this.next();return typeof s<"u"?s:this.lex()},begin:function(s){this.conditionStack.push(s);},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(s){this.begin(s);}};return p.options={},p.performAction=function(s,a,n,h){function r(t,e){return a.yytext=a.yytext.substring(t,a.yyleng-e+t)}switch(n){case 0:if(a.yytext.slice(-2)==="\\\\"?(r(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(r(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(r(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return a.yytext=r(1,2).replace(/\\"/g,'"'),80;case 32:return a.yytext=r(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return "INVALID";case 44:return 5}},p.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],p.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:false},emu:{rules:[2],inclusive:false},com:{rules:[6],inclusive:false},raw:{rules:[3,4,5],inclusive:false},INITIAL:{rules:[0,1,44],inclusive:true}},p})();S.lexer=m;function o(){this.yy={};}return o.prototype=S,S.Parser=o,new o})();_.default=y,v.exports=_.default;})(de,de.exports)),de.exports}var ge={exports:{}},me={exports:{}},et;function Ae(){return et||(et=1,(function(v,_){_.__esModule=true;function y(a){return a&&a.__esModule?a:{default:a}}var S=q(),m=y(S);function o(){this.parents=[];}o.prototype={constructor:o,mutating:false,acceptKey:function(n,h){var r=this.accept(n[h]);if(this.mutating){if(r&&!o.prototype[r.type])throw new m.default('Unexpected node type "'+r.type+'" found when accepting '+h+" on "+n.type);n[h]=r;}},acceptRequired:function(n,h){if(this.acceptKey(n,h),!n[h])throw new m.default(n.type+" requires "+h)},acceptArray:function(n){for(var h=0,r=n.length;h0)throw new y.default("Invalid path: "+f,{loc:u});k===".."&&P++;}else d.push(k);}return {type:"PathExpression",data:e,depth:P,parts:d,original:f,loc:u}}function a(e,i,u,f,d,P){var l=f.charAt(3)||f.charAt(2),g=l!=="{"&&l!=="&",k=/\*/.test(f);return {type:k?"Decorator":"MustacheStatement",path:e,params:i,hash:u,escaped:g,strip:d,loc:this.locInfo(P)}}function n(e,i,u,f){S(e,u),f=this.locInfo(f);var d={type:"Program",body:i,strip:{},loc:f};return {type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:d,openStrip:{},inverseStrip:{},closeStrip:{},loc:f}}function h(e,i,u,f,d,P){f&&f.path&&S(e,f);var l=/\*/.test(e.open);i.blockParams=e.blockParams;var g=void 0,k=void 0;if(u){if(l)throw new y.default("Unexpected inverse block on decorator",u);u.chain&&(u.program.body[0].closeStrip=f.strip),k=u.strip,g=u.program;}return d&&(d=g,g=i,i=d),{type:l?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:i,inverse:g,openStrip:e.strip,inverseStrip:k,closeStrip:f&&f.strip,loc:this.locInfo(P)}}function r(e,i){if(!i&&e.length){var u=e[0].loc,f=e[e.length-1].loc;u&&f&&(i={source:u.source,start:{line:u.start.line,column:u.start.column},end:{line:f.end.line,column:f.end.column}});}return {type:"Program",body:e,strip:{},loc:i}}function t(e,i,u,f){return S(e,u),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:i,openStrip:e.strip,closeStrip:u&&u.strip,loc:this.locInfo(f)}}return B}var nt;function Qt(){if(nt)return F;nt=1,F.__esModule=true,F.parseWithoutProcessing=n,F.parse=h;function v(r){if(r&&r.__esModule)return r;var t={};if(r!=null)for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e]);return t.default=r,t}function _(r){return r&&r.__esModule?r:{default:r}}var y=Kt(),S=_(y),m=Jt(),o=_(m),p=zt(),c=v(p),s=I();F.parser=S.default;var a={};s.extend(a,c);function n(r,t){if(r.type==="Program")return r;S.default.yy=a,a.locInfo=function(i){return new a.SourceLocation(t&&t.srcName,i)};var e=S.default.parse(r);return e}function h(r,t){var e=n(r,t),i=new o.default(t);return i.accept(e)}return F}var G={},it;function Yt(){if(it)return G;it=1,G.__esModule=true,G.Compiler=c,G.precompile=s,G.compile=a;function v(r){return r&&r.__esModule?r:{default:r}}var _=q(),y=v(_),S=I(),m=Lt(),o=v(m),p=[].slice;function c(){}c.prototype={compiler:c,equals:function(t){var e=this.opcodes.length;if(t.opcodes.length!==e)return false;for(var i=0;i1)throw new y.default("Unsupported number of partial arguments: "+i.length,t);i.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):i.push({type:"PathExpression",parts:[],depth:0}));var u=t.name.original,f=t.name.type==="SubExpression";f&&this.accept(t.name),this.setupFullMustacheParams(t,e,void 0,true);var d=t.indent||"";this.options.preventIndent&&d&&(this.opcode("appendContent",d),d=""),this.opcode("invokePartial",f,u,d),this.opcode("append");},PartialBlockStatement:function(t){this.PartialStatement(t);},MustacheStatement:function(t){this.SubExpression(t),t.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append");},Decorator:function(t){this.DecoratorBlock(t);},ContentStatement:function(t){t.value&&this.opcode("appendContent",t.value);},CommentStatement:function(){},SubExpression:function(t){h(t);var e=this.classifySexpr(t);e==="simple"?this.simpleSexpr(t):e==="helper"?this.helperSexpr(t):this.ambiguousSexpr(t);},ambiguousSexpr:function(t,e,i){var u=t.path,f=u.parts[0],d=e!=null||i!=null;this.opcode("getContext",u.depth),this.opcode("pushProgram",e),this.opcode("pushProgram",i),u.strict=true,this.accept(u),this.opcode("invokeAmbiguous",f,d);},simpleSexpr:function(t){var e=t.path;e.strict=true,this.accept(e),this.opcode("resolvePossibleLambda");},helperSexpr:function(t,e,i){var u=this.setupFullMustacheParams(t,e,i),f=t.path,d=f.parts[0];if(this.options.knownHelpers[d])this.opcode("invokeKnownHelper",u.length,d);else {if(this.options.knownHelpersOnly)throw new y.default("You specified knownHelpersOnly, but used the unknown helper "+d,t);f.strict=true,f.falsy=true,this.accept(f),this.opcode("invokeHelper",u.length,f.original,o.default.helpers.simpleId(f));}},PathExpression:function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var e=t.parts[0],i=o.default.helpers.scopedId(t),u=!t.depth&&!i&&this.blockParamIndex(e);u?this.opcode("lookupBlockParam",u,t.parts):e?t.data?(this.options.data=true,this.opcode("lookupData",t.depth,t.parts,t.strict)):this.opcode("lookupOnContext",t.parts,t.falsy,t.strict,i):this.opcode("pushContext");},StringLiteral:function(t){this.opcode("pushString",t.value);},NumberLiteral:function(t){this.opcode("pushLiteral",t.value);},BooleanLiteral:function(t){this.opcode("pushLiteral",t.value);},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined");},NullLiteral:function(){this.opcode("pushLiteral","null");},Hash:function(t){var e=t.pairs,i=0,u=e.length;for(this.opcode("pushHash");i=0)return [e,f]}}};function s(r,t,e){if(r==null||typeof r!="string"&&r.type!=="Program")throw new y.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+r);t=t||{},"data"in t||(t.data=true),t.compat&&(t.useDepths=true);var i=e.parse(r,t),u=new e.Compiler().compile(i,t);return new e.JavaScriptCompiler().compile(u,t)}function a(r,t,e){if(t===void 0&&(t={}),r==null||typeof r!="string"&&r.type!=="Program")throw new y.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+r);t=S.extend({},t),"data"in t||(t.data=true),t.compat&&(t.useDepths=true);var i=void 0;function u(){var d=e.parse(r,t),P=new e.Compiler().compile(d,t),l=new e.JavaScriptCompiler().compile(P,t,void 0,true);return e.template(l)}function f(d,P){return i||(i=u()),i.call(this,d,P)}return f._setup=function(d){return i||(i=u()),i._setup(d)},f._child=function(d,P,l,g){return i||(i=u()),i._child(d,P,l,g)},f}function n(r,t){if(r===t)return true;if(S.isArray(r)&&S.isArray(t)&&r.length===t.length){for(var e=0;e>1;return s?-a:a}return Se.encode=function(s){var a="",n,h=o(s);do n=h&S,h>>>=_,h>0&&(n|=m),a+=v.encode(n);while(h>0);return a},Se.decode=function(s,a,n){var h=s.length,r=0,t=0,e,i;do{if(a>=h)throw new Error("Expected more digits in base 64 VLQ value.");if(i=v.decode(s.charCodeAt(a++)),i===-1)throw new Error("Invalid base64 digit: "+s.charAt(a-1));e=!!(i&m),i&=S,r=r+(i<=0;b--)x=E[b],x==="."?E.splice(b,1):x===".."?L++:L>0&&(x===""?(E.splice(b+1,L),L=0):(E.splice(b,2),L--));return g=E.join("/"),g===""&&(g=C?"/":"."),k?(k.path=g,o(k)):g}v.normalize=p;function c(l,g){l===""&&(l="."),g===""&&(g=".");var k=m(g),C=m(l);if(C&&(l=C.path||"/"),k&&!k.scheme)return C&&(k.scheme=C.scheme),o(k);if(k||g.match(S))return g;if(C&&!C.host&&!C.path)return C.host=g,o(C);var E=g.charAt(0)==="/"?g:p(l.replace(/\/+$/,"")+"/"+g);return C?(C.path=E,o(C)):E}v.join=c,v.isAbsolute=function(l){return l.charAt(0)==="/"||y.test(l)};function s(l,g){l===""&&(l="."),l=l.replace(/\/$/,"");for(var k=0;g.indexOf(l+"/")!==0;){var C=l.lastIndexOf("/");if(C<0||(l=l.slice(0,C),l.match(/^([^\/]+:\/)?\/*$/)))return g;++k;}return Array(k+1).join("../")+g.substr(l.length+1)}v.relative=s;var a=(function(){var l=Object.create(null);return !("__proto__"in l)})();function n(l){return l}function h(l){return t(l)?"$"+l:l}v.toSetString=a?n:h;function r(l){return t(l)?l.slice(1):l}v.fromSetString=a?n:r;function t(l){if(!l)return false;var g=l.length;if(g<9||l.charCodeAt(g-1)!==95||l.charCodeAt(g-2)!==95||l.charCodeAt(g-3)!==111||l.charCodeAt(g-4)!==116||l.charCodeAt(g-5)!==111||l.charCodeAt(g-6)!==114||l.charCodeAt(g-7)!==112||l.charCodeAt(g-8)!==95||l.charCodeAt(g-9)!==95)return false;for(var k=g-10;k>=0;k--)if(l.charCodeAt(k)!==36)return false;return true}function e(l,g,k){var C=u(l.source,g.source);return C!==0||(C=l.originalLine-g.originalLine,C!==0)||(C=l.originalColumn-g.originalColumn,C!==0||k)||(C=l.generatedColumn-g.generatedColumn,C!==0)||(C=l.generatedLine-g.generatedLine,C!==0)?C:u(l.name,g.name)}v.compareByOriginalPositions=e;function i(l,g,k){var C=l.generatedLine-g.generatedLine;return C!==0||(C=l.generatedColumn-g.generatedColumn,C!==0||k)||(C=u(l.source,g.source),C!==0)||(C=l.originalLine-g.originalLine,C!==0)||(C=l.originalColumn-g.originalColumn,C!==0)?C:u(l.name,g.name)}v.compareByGeneratedPositionsDeflated=i;function u(l,g){return l===g?0:l===null?1:g===null?-1:l>g?1:-1}function f(l,g){var k=l.generatedLine-g.generatedLine;return k!==0||(k=l.generatedColumn-g.generatedColumn,k!==0)||(k=u(l.source,g.source),k!==0)||(k=l.originalLine-g.originalLine,k!==0)||(k=l.originalColumn-g.originalColumn,k!==0)?k:u(l.name,g.name)}v.compareByGeneratedPositionsInflated=f;function d(l){return JSON.parse(l.replace(/^\)]}'[^\n]*\n/,""))}v.parseSourceMapInput=d;function P(l,g,k){if(g=g||"",l&&(l[l.length-1]!=="/"&&g[0]!=="/"&&(l+="/"),g=l+g),k){var C=m(k);if(!C)throw new Error("sourceMapURL could not be parsed");if(C.path){var E=C.path.lastIndexOf("/");E>=0&&(C.path=C.path.substring(0,E+1));}g=c(o(C),g);}return p(g)}v.computeSourceURL=P;})(Pe)),Pe}var Ce={},ut;function wt(){if(ut)return Ce;ut=1;var v=Q(),_=Object.prototype.hasOwnProperty,y=typeof Map<"u";function S(){this._array=[],this._set=y?new Map:Object.create(null);}return S.fromArray=function(o,p){for(var c=new S,s=0,a=o.length;s=0)return p}else {var c=v.toSetString(o);if(_.call(this._set,c))return this._set[c]}throw new Error('"'+o+'" is not in the set.')},S.prototype.at=function(o){if(o>=0&&oo||p==o&&s>=c||v.compareByGeneratedPositionsInflated(S,m)<=0}function y(){this._array=[],this._sorted=true,this._last={generatedLine:-1,generatedColumn:0};}return y.prototype.unsortedForEach=function(m,o){this._array.forEach(m,o);},y.prototype.add=function(m){_(this._last,m)?(this._last=m,this._array.push(m)):(this._sorted=false,this._array.push(m));},y.prototype.toArray=function(){return this._sorted||(this._array.sort(v.compareByGeneratedPositionsInflated),this._sorted=true),this._array},be.MappingList=y,be}var ct;function xt(){if(ct)return ke;ct=1;var v=Et(),_=Q(),y=wt().ArraySet,S=Zt().MappingList;function m(o){o||(o={}),this._file=_.getArg(o,"file",null),this._sourceRoot=_.getArg(o,"sourceRoot",null),this._skipValidation=_.getArg(o,"skipValidation",false),this._sources=new y,this._names=new y,this._mappings=new S,this._sourcesContents=null;}return m.prototype._version=3,m.fromSourceMap=function(p){var c=p.sourceRoot,s=new m({file:p.file,sourceRoot:c});return p.eachMapping(function(a){var n={generated:{line:a.generatedLine,column:a.generatedColumn}};a.source!=null&&(n.source=a.source,c!=null&&(n.source=_.relative(c,n.source)),n.original={line:a.originalLine,column:a.originalColumn},a.name!=null&&(n.name=a.name)),s.addMapping(n);}),p.sources.forEach(function(a){var n=a;c!==null&&(n=_.relative(c,a)),s._sources.has(n)||s._sources.add(n);var h=p.sourceContentFor(a);h!=null&&s.setSourceContent(a,h);}),s},m.prototype.addMapping=function(p){var c=_.getArg(p,"generated"),s=_.getArg(p,"original",null),a=_.getArg(p,"source",null),n=_.getArg(p,"name",null);this._skipValidation||this._validateMapping(c,s,a,n),a!=null&&(a=String(a),this._sources.has(a)||this._sources.add(a)),n!=null&&(n=String(n),this._names.has(n)||this._names.add(n)),this._mappings.add({generatedLine:c.line,generatedColumn:c.column,originalLine:s!=null&&s.line,originalColumn:s!=null&&s.column,source:a,name:n});},m.prototype.setSourceContent=function(p,c){var s=p;this._sourceRoot!=null&&(s=_.relative(this._sourceRoot,s)),c!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[_.toSetString(s)]=c):this._sourcesContents&&(delete this._sourcesContents[_.toSetString(s)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null));},m.prototype.applySourceMap=function(p,c,s){var a=c;if(c==null){if(p.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);a=p.file;}var n=this._sourceRoot;n!=null&&(a=_.relative(n,a));var h=new y,r=new y;this._mappings.unsortedForEach(function(t){if(t.source===a&&t.originalLine!=null){var e=p.originalPositionFor({line:t.originalLine,column:t.originalColumn});e.source!=null&&(t.source=e.source,s!=null&&(t.source=_.join(s,t.source)),n!=null&&(t.source=_.relative(n,t.source)),t.originalLine=e.line,t.originalColumn=e.column,e.name!=null&&(t.name=e.name));}var i=t.source;i!=null&&!h.has(i)&&h.add(i);var u=t.name;u!=null&&!r.has(u)&&r.add(u);},this),this._sources=h,this._names=r,p.sources.forEach(function(t){var e=p.sourceContentFor(t);e!=null&&(s!=null&&(t=_.join(s,t)),n!=null&&(t=_.relative(n,t)),this.setSourceContent(t,e));},this);},m.prototype._validateMapping=function(p,c,s,a){if(c&&typeof c.line!="number"&&typeof c.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(p&&"line"in p&&"column"in p&&p.line>0&&p.column>=0&&!c&&!s&&!a)){if(p&&"line"in p&&"column"in p&&c&&"line"in c&&"column"in c&&p.line>0&&p.column>=0&&c.line>0&&c.column>=0&&s)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:p,source:s,original:c,name:a}))}},m.prototype._serializeMappings=function(){for(var p=0,c=1,s=0,a=0,n=0,h=0,r="",t,e,i,u,f=this._mappings.toArray(),d=0,P=f.length;d0){if(!_.compareByGeneratedPositionsInflated(e,f[d-1]))continue;t+=",";}t+=v.encode(e.generatedColumn-p),p=e.generatedColumn,e.source!=null&&(u=this._sources.indexOf(e.source),t+=v.encode(u-h),h=u,t+=v.encode(e.originalLine-1-a),a=e.originalLine-1,t+=v.encode(e.originalColumn-s),s=e.originalColumn,e.name!=null&&(i=this._names.indexOf(e.name),t+=v.encode(i-n),n=i)),r+=t;}return r},m.prototype._generateSourcesContent=function(p,c){return p.map(function(s){if(!this._sourcesContents)return null;c!=null&&(s=_.relative(c,s));var a=_.toSetString(s);return Object.prototype.hasOwnProperty.call(this._sourcesContents,a)?this._sourcesContents[a]:null},this)},m.prototype.toJSON=function(){var p={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(p.file=this._file),this._sourceRoot!=null&&(p.sourceRoot=this._sourceRoot),this._sourcesContents&&(p.sourcesContent=this._generateSourcesContent(p.sources,p.sourceRoot)),p},m.prototype.toString=function(){return JSON.stringify(this.toJSON())},ke.SourceMapGenerator=m,ke}var J={},Le={},ht;function jt(){return ht||(ht=1,(function(v){v.GREATEST_LOWER_BOUND=1,v.LEAST_UPPER_BOUND=2;function _(y,S,m,o,p,c){var s=Math.floor((S-y)/2)+y,a=p(m,o[s],true);return a===0?s:a>0?S-s>1?_(s,S,m,o,p,c):c==v.LEAST_UPPER_BOUND?S1?_(y,s,m,o,p,c):c==v.LEAST_UPPER_BOUND?s:y<0?-1:y}v.search=function(S,m,o,p){if(m.length===0)return -1;var c=_(-1,m.length,S,m,o,p||v.GREATEST_LOWER_BOUND);if(c<0)return -1;for(;c-1>=0&&o(m[c],m[c-1],true)===0;)--c;return c};})(Le)),Le}var Ee={},pt;function $t(){if(pt)return Ee;pt=1;function v(S,m,o){var p=S[m];S[m]=S[o],S[o]=p;}function _(S,m){return Math.round(S+Math.random()*(m-S))}function y(S,m,o,p){if(o=0){var i=this._originalMappings[e];if(n.column===void 0)for(var u=i.originalLine;i&&i.originalLine===u;)t.push({line:v.getArg(i,"generatedLine",null),column:v.getArg(i,"generatedColumn",null),lastColumn:v.getArg(i,"lastGeneratedColumn",null)}),i=this._originalMappings[++e];else for(var f=i.originalColumn;i&&i.originalLine===h&&i.originalColumn==f;)t.push({line:v.getArg(i,"generatedLine",null),column:v.getArg(i,"generatedColumn",null),lastColumn:v.getArg(i,"lastGeneratedColumn",null)}),i=this._originalMappings[++e];}return t},J.SourceMapConsumer=o;function p(a,n){var h=a;typeof a=="string"&&(h=v.parseSourceMapInput(a));var r=v.getArg(h,"version"),t=v.getArg(h,"sources"),e=v.getArg(h,"names",[]),i=v.getArg(h,"sourceRoot",null),u=v.getArg(h,"sourcesContent",null),f=v.getArg(h,"mappings"),d=v.getArg(h,"file",null);if(r!=this._version)throw new Error("Unsupported version: "+r);i&&(i=v.normalize(i)),t=t.map(String).map(v.normalize).map(function(P){return i&&v.isAbsolute(i)&&v.isAbsolute(P)?v.relative(i,P):P}),this._names=y.fromArray(e.map(String),true),this._sources=y.fromArray(t,true),this._absoluteSources=this._sources.toArray().map(function(P){return v.computeSourceURL(i,P,n)}),this.sourceRoot=i,this.sourcesContent=u,this._mappings=f,this._sourceMapURL=n,this.file=d;}p.prototype=Object.create(o.prototype),p.prototype.consumer=o,p.prototype._findSourceIndex=function(a){var n=a;if(this.sourceRoot!=null&&(n=v.relative(this.sourceRoot,n)),this._sources.has(n))return this._sources.indexOf(n);var h;for(h=0;h1&&(E.source=u+L[1],u+=L[1],E.originalLine=e+L[2],e=E.originalLine,E.originalLine+=1,E.originalColumn=i+L[3],i=E.originalColumn,L.length>4&&(E.name=f+L[4],f+=L[4])),C.push(E),typeof E.originalLine=="number"&&k.push(E);}m(C,v.compareByGeneratedPositionsDeflated),this.__generatedMappings=C,m(k,v.compareByOriginalPositions),this.__originalMappings=k;},p.prototype._findMapping=function(n,h,r,t,e,i){if(n[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+n[r]);if(n[t]<0)throw new TypeError("Column must be greater than or equal to 0, got "+n[t]);return _.search(n,h,e,i)},p.prototype.computeColumnSpans=function(){for(var n=0;n=0){var t=this._generatedMappings[r];if(t.generatedLine===h.generatedLine){var e=v.getArg(t,"source",null);e!==null&&(e=this._sources.at(e),e=v.computeSourceURL(this.sourceRoot,e,this._sourceMapURL));var i=v.getArg(t,"name",null);return i!==null&&(i=this._names.at(i)),{source:e,line:v.getArg(t,"originalLine",null),column:v.getArg(t,"originalColumn",null),name:i}}}return {source:null,line:null,column:null,name:null}},p.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(n){return n==null}):false},p.prototype.sourceContentFor=function(n,h){if(!this.sourcesContent)return null;var r=this._findSourceIndex(n);if(r>=0)return this.sourcesContent[r];var t=n;this.sourceRoot!=null&&(t=v.relative(this.sourceRoot,t));var e;if(this.sourceRoot!=null&&(e=v.urlParse(this.sourceRoot))){var i=t.replace(/^file:\/\//,"");if(e.scheme=="file"&&this._sources.has(i))return this.sourcesContent[this._sources.indexOf(i)];if((!e.path||e.path=="/")&&this._sources.has("/"+t))return this.sourcesContent[this._sources.indexOf("/"+t)]}if(h)return null;throw new Error('"'+t+'" is not in the SourceMap.')},p.prototype.generatedPositionFor=function(n){var h=v.getArg(n,"source");if(h=this._findSourceIndex(h),h<0)return {line:null,column:null,lastColumn:null};var r={source:h,originalLine:v.getArg(n,"line"),originalColumn:v.getArg(n,"column")},t=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",v.compareByOriginalPositions,v.getArg(n,"bias",o.GREATEST_LOWER_BOUND));if(t>=0){var e=this._originalMappings[t];if(e.source===r.source)return {line:v.getArg(e,"generatedLine",null),column:v.getArg(e,"generatedColumn",null),lastColumn:v.getArg(e,"lastGeneratedColumn",null)}}return {line:null,column:null,lastColumn:null}},J.BasicSourceMapConsumer=p;function s(a,n){var h=a;typeof a=="string"&&(h=v.parseSourceMapInput(a));var r=v.getArg(h,"version"),t=v.getArg(h,"sections");if(r!=this._version)throw new Error("Unsupported version: "+r);this._sources=new y,this._names=new y;var e={line:-1,column:0};this._sections=t.map(function(i){if(i.url)throw new Error("Support for url field in sections not implemented.");var u=v.getArg(i,"offset"),f=v.getArg(u,"line"),d=v.getArg(u,"column");if(f=0;s--)this.prepend(c[s]);else if(c[m]||typeof c=="string")this.children.unshift(c);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+c);return this},o.prototype.walk=function(c){for(var s,a=0,n=this.children.length;a0){for(s=[],a=0;a0&&(i+=", "+u.join(", "));var f=0;Object.keys(this.aliases).forEach(function(l){var g=e.aliases[l];g.children&&g.referenceCount>1&&(i+=", alias"+ ++f+"="+l,g.children[0]="alias"+f);}),this.lookupPropertyFunctionIsUsed&&(i+=", "+this.lookupPropertyFunctionVarDeclaration());var d=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&d.push("blockParams"),this.useDepths&&d.push("depths");var P=this.mergeSource(i);return t?(d.push(P),Function.apply(this,d)):this.source.wrap(["function(",d.join(","),`) { + `,P,"}"])},mergeSource:function(t){var e=this.environment.isSimple,i=!this.forceBuffer,u=void 0,f=void 0,d=void 0,P=void 0;return this.source.each(function(l){l.appendToBuffer?(d?l.prepend(" + "):d=l,P=l):(d&&(f?d.prepend("buffer += "):u=true,P.add(";"),d=P=void 0),f=true,e||(i=false));}),i?d?(d.prepend("return "),P.add(";")):f||this.source.push('return "";'):(t+=", buffer = "+(u?"":this.initializeBuffer()),d?(d.prepend("return buffer + "),P.add(";")):this.source.push("return buffer;")),t&&this.source.prepend("var "+t.substring(2)+(u?"":`; +`)),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return ` + lookupProperty = container.lookupProperty || function(parent, propertyName) { + if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { + return parent[propertyName]; + } + return undefined + } + `.trim()},blockValue:function(t){var e=this.aliasable("container.hooks.blockHelperMissing"),i=[this.contextName(0)];this.setupHelperArgs(t,0,i);var u=this.popStack();i.splice(1,0,u),this.push(this.source.functionCall(e,"call",i));},ambiguousBlockValue:function(){var t=this.aliasable("container.hooks.blockHelperMissing"),e=[this.contextName(0)];this.setupHelperArgs("",0,e,true),this.flushInline();var i=this.topStack();e.splice(1,0,i),this.pushSource(["if (!",this.lastHelper,") { ",i," = ",this.source.functionCall(t,"call",e),"}"]);},appendContent:function(t){this.pendingContent?t=this.pendingContent+t:this.pendingLocation=this.source.currentLocation,this.pendingContent=t;},append:function(){if(this.isInline())this.replaceStack(function(e){return [" != null ? ",e,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else {var t=this.popStack();this.pushSource(["if (",t," != null) { ",this.appendToBuffer(t,void 0,true)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,true)," }"]);}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]));},getContext:function(t){this.lastContext=t;},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext));},lookupOnContext:function(t,e,i,u){var f=0;!u&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(t[f++])):this.pushContext(),this.resolvePath("context",t,f,e,i);},lookupBlockParam:function(t,e){this.useBlockParams=true,this.push(["blockParams[",t[0],"][",t[1],"]"]),this.resolvePath("context",e,1);},lookupData:function(t,e,i){t?this.pushStackLiteral("container.data(data, "+t+")"):this.pushStackLiteral("data"),this.resolvePath("data",e,0,true,i);},resolvePath:function(t,e,i,u,f){var d=this;if(this.options.strict||this.options.assumeObjects){this.push(h(this.options.strict&&f,this,e,i,t));return}for(var P=e.length;ithis.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return "stack"+this.stackSlot},flushInline:function(){var t=this.inlineStack;this.inlineStack=[];for(var e=0,i=t.length;e "+p+" }}")},m.prototype.PartialBlockStatement=function(o){var p="PARTIAL BLOCK:"+o.name.original;return o.params[0]&&(p+=" "+this.accept(o.params[0])),o.hash&&(p+=" "+this.accept(o.hash)),p+=" "+this.pad("PROGRAM:"),this.padding++,p+=this.accept(o.program),this.padding--,this.pad("{{> "+p+" }}")},m.prototype.ContentStatement=function(o){return this.pad("CONTENT[ '"+o.value+"' ]")},m.prototype.CommentStatement=function(o){return this.pad("{{! '"+o.value+"' }}")},m.prototype.SubExpression=function(o){for(var p=o.params,c=[],s=void 0,a=0,n=p.length;a{let{elem_classes:S=[],props:m={},html_template:o="${value}",css_template:p="",js_on_load:c=null,head:s=null,visible:a=true,autoscroll:n=false,apply_default_css:h=true,component_class_name:r="HTML",upload:t=null,server:e={},watch_fn:i=(k,C)=>{},fire_watchers:u=k=>{},children:f}=_,[d,P,l]=(()=>{if(o.includes("@children")&&f){const k=o.split("@children");return [true,k[0]||"",k.slice(1).join("@children")||""]}return [false,o,""]})();snapshot(m);let g=`html-${Math.random().toString(36).substring(2,11)}`;y.push(""),y.push(``),d?(y.push(""),y.push(` `),f?.(y),y.push(` `)):y.push(""),y.push(""),y.push("");});} + +export { pr as default }; +//# sourceMappingURL=HTML-Clqd1RzU.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/IconButton-BRnu7KaR.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/IconButton-BRnu7KaR.js new file mode 100644 index 0000000000000000000000000000000000000000..bb3d6702c648892178f9fcbc418c642e35892f30 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/IconButton-BRnu7KaR.js @@ -0,0 +1,8 @@ +import './async-D55cHugf.js'; +import { f as attr_class, a as attr, g as attr_style } from './index-u8mz_F03.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; + +/* empty css */function w(l,u){let{Icon:h,label:s="",show_label:b=false,pending:e=false,size:t="small",padded:n=true,highlight:p=false,disabled:o=false,hasPopup:m=false,color:d="var(--block-label-text-color)",transparent:f=false,background:g="var(--block-background-fill)",border:r="transparent",onclick:v,children:i}=u,c=p?"var(--color-accent)":d;l.push(``),b?(l.push(""),l.push(`${escape_html(s)}`)):l.push(""),l.push(` `),h(l,{}),l.push(" "),i?(l.push(""),i(l),l.push("")):l.push(""),l.push("");} + +export { w }; +//# sourceMappingURL=IconButton-BRnu7KaR.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/IconButtonWrapper-CjFRPb3y.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/IconButtonWrapper-CjFRPb3y.js new file mode 100644 index 0000000000000000000000000000000000000000..10036d3a52ed801f044e108db74397a7c25dc258 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/IconButtonWrapper-CjFRPb3y.js @@ -0,0 +1,8 @@ +import './async-D55cHugf.js'; +import { f as attr_class, e as ensure_array_like, a as attr, d as bind_props } from './index-u8mz_F03.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; + +/* empty css */function v(l,u){l.component(t=>{let o=u.button,p=u.on_click;t.push(`"),bind_props(u,{button:o,on_click:p});});}function y(l,u){l.component(t=>{let{top_panel:o=true,display_top_corner:p=false,show_background:_=true,buttons:n=null,on_custom_button_click:c=null,children:i}=u;if(t.push(``),i?(t.push(""),i(t),t.push("")):t.push(""),t.push(" "),n){t.push(""),t.push("");const h=ensure_array_like(n);for(let a=0,f=h.length;a"),v(t,{button:b,on_click:m=>{c&&c(m);}})):t.push(""),t.push("");}t.push("");}else t.push("");t.push("");});} + +export { v, y }; +//# sourceMappingURL=IconButtonWrapper-CjFRPb3y.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Image-CuPo5pWT.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Image-CuPo5pWT.js new file mode 100644 index 0000000000000000000000000000000000000000..73b4681a46486317a0546428c3b2b1081656dae1 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Image-CuPo5pWT.js @@ -0,0 +1,7 @@ +import './async-D55cHugf.js'; +import { m as attributes, j as clsx } from './index-u8mz_F03.js'; + +/* empty css */function c(e,s){e.component(o=>{let{src:a,restProps:r,data_testid:i,class_names:n}=s;o.push(``);});} + +export { c }; +//# sourceMappingURL=Image-CuPo5pWT.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Image2-vcp9_ifi.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Image2-vcp9_ifi.js new file mode 100644 index 0000000000000000000000000000000000000000..cdce4d0da68aa2444317a3c8c80b43c25eb2a00d --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Image2-vcp9_ifi.js @@ -0,0 +1,6 @@ +import './async-D55cHugf.js'; + +function i(e){e.push('');} + +export { i }; +//# sourceMappingURL=Image2-vcp9_ifi.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/ImagePreview-Ca2hvNZZ.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/ImagePreview-Ca2hvNZZ.js new file mode 100644 index 0000000000000000000000000000000000000000..2e1d65747c72485b64f98e1346640aa37da8b8b9 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/ImagePreview-Ca2hvNZZ.js @@ -0,0 +1,27 @@ +import { f as fallback } from './async-D55cHugf.js'; +import { f as attr_class, d as bind_props } from './index-u8mz_F03.js'; +import './2-BLdXJizP.js'; +import { b } from './utils.svelte-B2py64Fz.js'; +import { k } from './BlockLabel-bKYWnOzQ.js'; +import { u } from './DownloadLink-nj1p0krE.js'; +import { w } from './IconButton-BRnu7KaR.js'; +import { p } from './Empty-DGRbZO0a.js'; +import { y as y$1 } from './ShareButton-7VTs9dOO.js'; +import { l } from './Download-DcU5dONL.js'; +import { i } from './Image2-vcp9_ifi.js'; +import { y } from './IconButtonWrapper-CjFRPb3y.js'; +import { k as k$1 } from './FullscreenButton-D8PvgSmk.js'; +import { c } from './Image-CuPo5pWT.js'; +import './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; +import './clone-Yk88IHKV.js'; +import './index-server-CQz6EZl_.js'; +import './Maximize-CuHbK64j.js'; + +/* empty css */function Q(g,o){g.component(a=>{let u$1=o.value,n=fallback(o.label,void 0),m=o.show_label,i$1=fallback(o.buttons,()=>[],true),f=fallback(o.on_custom_button_click,null),p$1=fallback(o.selectable,false),c$1=o.i18n,b$1=fallback(o.display_icon_button_wrapper_top_corner,false),e=fallback(o.fullscreen,false),h=fallback(o.show_button_background,true);k(a,{show_label:m,Icon:i,label:m?n||c$1("image.image"):""}),a.push(" "),u$1==null||!u$1?.url?(a.push(""),p(a,{unpadded_box:true,size:"large",children:t=>{i(t);},$$slots:{default:true}})):(a.push(""),a.push('
    '),y(a,{display_top_corner:b$1,show_background:h,buttons:i$1,on_custom_button_click:f,children:t=>{i$1.some(l=>typeof l=="string"&&l==="fullscreen")?(t.push(""),k$1(t,{fullscreen:e,onclick:l=>{e=l;}})):t.push(""),t.push(" "),i$1.some(l=>typeof l=="string"&&l==="download")?(t.push(""),u(t,{href:u$1.url,download:u$1.orig_name||"image",children:l$1=>{w(l$1,{Icon:l,label:c$1("common.download")});},$$slots:{default:true}})):t.push(""),t.push(" "),i$1.some(l=>typeof l=="string"&&l==="share")?(t.push(""),y$1(t,{i18n:c$1,formatter:async l=>l?``:"",value:u$1})):t.push(""),t.push("");}}),a.push(`
    ")),a.push(""),bind_props(o,{value:u$1,label:n,show_label:m,buttons:i$1,on_custom_button_click:f,selectable:p$1,i18n:c$1,display_icon_button_wrapper_top_corner:b$1,fullscreen:e,show_button_background:h});});} + +export { Q as default }; +//# sourceMappingURL=ImagePreview-Ca2hvNZZ.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index.svelte_svelte_type_style_lang-DXpx_9zF.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index.svelte_svelte_type_style_lang-DXpx_9zF.js new file mode 100644 index 0000000000000000000000000000000000000000..b3bbe64d452ed482ec01bad221c74df8f8da2b32 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index.svelte_svelte_type_style_lang-DXpx_9zF.js @@ -0,0 +1,8 @@ +import './async-D55cHugf.js'; +import { a as attr, f as attr_class, g as attr_style, i as stringify, c as spread_props, s as slot } from './index-u8mz_F03.js'; +import { W } from './index3-Df92vI-L.js'; + +function y(e,a){e.component(s=>{let{$$slots:h,$$events:d,...t}=a,p=t.scale??null,n=t.min_width??0,m=t.elem_id??"",u=t.elem_classes??[],c=t.visible??true,o=t.variant??"default",i=t.loading_status;t.show_progress,s.push(``),i&&i.show_progress?(s.push(""),W(s,spread_props([{autoscroll:t.autoscroll,i18n:t.i18n},i,{status:i?i.status=="pending"?"generating":i.status:null}]))):s.push(""),s.push(" "),slot(s,a,"default",{}),s.push("");});} + +export { y }; +//# sourceMappingURL=Index.svelte_svelte_type_style_lang-DXpx_9zF.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index.svelte_svelte_type_style_lang2-D59k2DMS.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index.svelte_svelte_type_style_lang2-D59k2DMS.js new file mode 100644 index 0000000000000000000000000000000000000000..00dab7989aa259667a381880c129e670b0bd479a --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index.svelte_svelte_type_style_lang2-D59k2DMS.js @@ -0,0 +1,14 @@ +import './async-D55cHugf.js'; +import { f as attr_class, a as attr, g as attr_style, i as stringify } from './index-u8mz_F03.js'; +import './2-BLdXJizP.js'; +import { x } from './utils.svelte-B2py64Fz.js'; +import { e } from './Check-C7_ZsXgh.js'; +import { h } from './Copy-B8YOhH7c.js'; +import { w } from './IconButton-BRnu7KaR.js'; +import { y } from './IconButtonWrapper-CjFRPb3y.js'; +import { Q as Qt } from './MarkdownCode-DLHRxFlS.js'; + +function K(m,r){m.component(t=>{let{elem_classes:c=[],visible:f=true,value:e$1,min_height:s=void 0,rtl:u=false,sanitize_html:d=true,line_breaks:h$1=false,latex_delimiters:_=[],header_links:g=false,height:n=void 0,show_copy_button:v=false,loading_status:y$1=void 0,theme_mode:k,onchange:z=()=>{},oncopy:b=l=>{}}=r,o=false,a;async function w$1(){"clipboard"in navigator&&(await navigator.clipboard.writeText(e$1),b({value:e$1}),C());}function C(){o=true,a&&clearTimeout(a),a=setTimeout(()=>{o=false;},1e3);}t.push(``),v?(t.push(""),y(t,{children:l=>{w(l,{Icon:o?e:h,onclick:w$1,label:o?"Copied conversation":"Copy conversation"});}})):t.push(""),t.push(" "),Qt(t,{message:e$1,latex_delimiters:_,sanitize_html:d,line_breaks:h$1,chatbot:false,header_links:g,theme_mode:k}),t.push("");});} + +export { K }; +//# sourceMappingURL=Index.svelte_svelte_type_style_lang2-D59k2DMS.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index10-f722DtJ1.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index10-f722DtJ1.js new file mode 100644 index 0000000000000000000000000000000000000000..76737cf8c0db173c59dc98387c3e7090c3a7fde8 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index10-f722DtJ1.js @@ -0,0 +1,16 @@ +import './async-D55cHugf.js'; +import { s as slot } from './index-u8mz_F03.js'; +import './2-BLdXJizP.js'; +import { $ } from './utils.svelte-B2py64Fz.js'; +import { o } from './BaseForm-AADCIM1D.js'; +import './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; +import './clone-Yk88IHKV.js'; + +function c(i,o$1){i.component(a=>{let{$$slots:d,$$events:n,...e}=o$1;const s=new $(e);o(a,{visible:s.shared.visible,scale:s.shared.scale,min_width:s.shared.min_width,children:t=>{t.push(""),slot(t,o$1,"default",{}),t.push("");},$$slots:{default:true}});});} + +export { o as BaseForm, c as default }; +//# sourceMappingURL=Index10-f722DtJ1.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index11-W9xhQb38.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index11-W9xhQb38.js new file mode 100644 index 0000000000000000000000000000000000000000..4943a0fb088388ff572f6c774df293bf787d01fc --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index11-W9xhQb38.js @@ -0,0 +1,25 @@ +import './async-D55cHugf.js'; +import { c as spread_props } from './index-u8mz_F03.js'; +import './2-BLdXJizP.js'; +import { $ } from './utils.svelte-B2py64Fz.js'; +import { J, K } from './JSON-CDSHpFEC.js'; +import { G as G$1 } from './Block-DZmzQwnI.js'; +import { k } from './BlockLabel-bKYWnOzQ.js'; +import { W } from './index3-Df92vI-L.js'; +import './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; +import './clone-Yk88IHKV.js'; +import './Check-C7_ZsXgh.js'; +import './Copy-B8YOhH7c.js'; +import './IconButton-BRnu7KaR.js'; +import './Empty-DGRbZO0a.js'; +import './IconButtonWrapper-CjFRPb3y.js'; +import './Clear-D7Yjckqz.js'; + +function G(a,e){a.component(i=>{const{$$slots:d,$$events:b,...l}=e,s=new $(l);s.props.value;let p=0;G$1(i,{visible:s.shared.visible,test_id:"json",elem_id:s.shared.elem_id,elem_classes:s.shared.elem_classes,container:s.shared.container,scale:s.shared.scale,min_width:s.shared.min_width,padding:false,allow_overflow:true,overflow_behavior:"auto",height:s.props.height,min_height:s.props.min_height,max_height:s.props.max_height,children:o=>{o.push("
    "),s.shared.label?(o.push(""),k(o,{Icon:J,show_label:s.shared.show_label,label:s.shared.label,float:false,disable:s.shared.container===false})):o.push(""),o.push("
    "),W(o,spread_props([{autoscroll:s.shared.autoscroll,i18n:s.i18n},s.shared.loading_status,{on_clear_status:()=>s.dispatch("clear_status",s.shared.loading_status)}])),o.push(" "),K(o,{value:s.props.value,open:s.props.open,theme_mode:s.props.theme_mode,show_indices:s.props.show_indices,show_copy_button:s.props.buttons==null?true:s.props.buttons.some(t=>typeof t=="string"&&t==="copy"),buttons:s.props.buttons,on_custom_button_click:t=>{s.dispatch("custom_button_click",{id:t});},label_height:p}),o.push("");},$$slots:{default:true}});});} + +export { K as BaseJSON, G as default }; +//# sourceMappingURL=Index11-W9xhQb38.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index12-BreooZPb.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index12-BreooZPb.js new file mode 100644 index 0000000000000000000000000000000000000000..ab9a6b4b645ab52efa31d88e4648408823b7f966 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index12-BreooZPb.js @@ -0,0 +1,32 @@ +import './async-D55cHugf.js'; +import { c as spread_props, f as attr_class } from './index-u8mz_F03.js'; +import './2-BLdXJizP.js'; +import { $ } from './utils.svelte-B2py64Fz.js'; +import { K } from './Index.svelte_svelte_type_style_lang2-D59k2DMS.js'; +import { W } from './index3-Df92vI-L.js'; +import { G as G$1 } from './Block-DZmzQwnI.js'; +import { u } from './ScrollFade-Yfqlww91.js'; +export { default as BaseExample } from './Example7-DQRo7Gao.js'; +import './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; +import './clone-Yk88IHKV.js'; +import './Check-C7_ZsXgh.js'; +import './Copy-B8YOhH7c.js'; +import './IconButton-BRnu7KaR.js'; +import './IconButtonWrapper-CjFRPb3y.js'; +import './MarkdownCode-DLHRxFlS.js'; +import './prism-python--2v-p3P4.js'; +import './index50-G3WrDDFf.js'; +import 'path'; +import 'url'; +import 'fs'; +import './html-CfyvkLET.js'; +import './Clear-D7Yjckqz.js'; + +function G(t,o){t.component(i=>{let{$$slots:c,$$events:u$1,...r}=o;const s=new $(r);let l=false;G$1(i,{visible:s.shared.visible,elem_id:s.shared.elem_id,elem_classes:s.shared.elem_classes,container:s.shared.container,allow_overflow:true,overflow_behavior:"auto",height:s.props.height,min_height:s.props.min_height,max_height:s.props.max_height,rtl:s.props.rtl,children:a=>{W(a,spread_props([{autoscroll:s.shared.autoscroll,i18n:s.i18n},s.shared.loading_status,{variant:"center",on_clear_status:()=>s.dispatch("clear_status",s.shared.loading_status)}])),a.push(`
    `),K(a,{value:s.props.value,elem_classes:s.shared.elem_classes,visible:s.shared.visible,rtl:s.props.rtl,onchange:()=>s.dispatch("change"),oncopy:p=>s.dispatch("copy",p.detail),latex_delimiters:s.props.latex_delimiters,sanitize_html:s.props.sanitize_html,line_breaks:s.props.line_breaks,header_links:s.props.header_links,show_copy_button:s.props.buttons?.includes("copy"),loading_status:s.shared.loading_status,theme_mode:s.shared.theme_mode}),a.push("
    "),u(a,{visible:l}),a.push("");},$$slots:{default:true}});});} + +export { K as BaseMarkdown, G as default }; +//# sourceMappingURL=Index12-BreooZPb.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index14-C2GUSDnZ.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index14-C2GUSDnZ.js new file mode 100644 index 0000000000000000000000000000000000000000..8a36b46c1936e9e005b38939cd01646d369175e8 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index14-C2GUSDnZ.js @@ -0,0 +1,25 @@ +import './async-D55cHugf.js'; +import { c as spread_props } from './index-u8mz_F03.js'; +import './2-BLdXJizP.js'; +import { $ } from './utils.svelte-B2py64Fz.js'; +import { a as b, P as y$1 } from './Plot-DFLslTNw.js'; +import { G } from './Block-DZmzQwnI.js'; +import { k } from './BlockLabel-bKYWnOzQ.js'; +import { y } from './IconButtonWrapper-CjFRPb3y.js'; +import { k as k$1 } from './FullscreenButton-D8PvgSmk.js'; +import { W } from './index3-Df92vI-L.js'; +import './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; +import './clone-Yk88IHKV.js'; +import './Empty-DGRbZO0a.js'; +import './IconButton-BRnu7KaR.js'; +import './Maximize-CuHbK64j.js'; +import './Clear-D7Yjckqz.js'; + +function D(i,n){i.component(p=>{let{$$slots:B,$$events:k$2,...u}=n;const s=new $(u);let l=false,e=true,a;function r(c){G(c,{padding:false,elem_id:s.shared.elem_id,elem_classes:s.shared.elem_classes,visible:s.shared.visible,container:s.shared.container,scale:s.shared.scale,min_width:s.shared.min_width,allow_overflow:false,get fullscreen(){return l},set fullscreen(o){l=o,e=false;},children:o=>{k(o,{show_label:s.shared.show_label,label:s.shared.label||s.i18n("plot.plot"),Icon:y$1}),o.push(" "),s.props.buttons&&s.props.buttons.length>0||s.props.show_fullscreen_button?(o.push(""),y(o,{buttons:s.props.buttons??[],on_custom_button_click:t=>{s.dispatch("custom_button_click",{id:t});},children:t=>{s.props.show_fullscreen_button?(t.push(""),k$1(t,{fullscreen:l})):t.push(""),t.push("");}})):o.push(""),o.push(" "),W(o,spread_props([{autoscroll:s.shared.autoscroll,i18n:s.i18n},s.shared.loading_status,{on_clear_status:()=>s.dispatch("clear_status",s.shared.loading_status)}])),o.push(" "),b(o,{value:s.props.value,theme_mode:s.props.theme_mode,show_label:s.shared.show_label,caption:s.props.caption,bokeh_version:s.props.bokeh_version,show_actions_button:s.props.show_actions_button,_selectable:s.props._selectable,x_lim:s.props.x_lim,show_fullscreen_button:s.props.show_fullscreen_button,on_change:()=>s.dispatch("change")}),o.push("");},$$slots:{default:true}});}do e=true,a=p.copy(),r(a);while(!e);p.subsume(a);});} + +export { b as BasePlot, D as default }; +//# sourceMappingURL=Index14-C2GUSDnZ.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index15-Cnq0I_z3.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index15-Cnq0I_z3.js new file mode 100644 index 0000000000000000000000000000000000000000..8aa0d997c9be823d587103bc5da50929ac09589a --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index15-Cnq0I_z3.js @@ -0,0 +1,12 @@ +import './async-D55cHugf.js'; +import './2-BLdXJizP.js'; +import { $ } from './utils.svelte-B2py64Fz.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; +import './clone-Yk88IHKV.js'; + +function d(o,e){o.component(n=>{let{$$slots:p,$$events:i,...r}=e;new $(r);});} + +export { d as default }; +//# sourceMappingURL=Index15-Cnq0I_z3.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index16-BzY6esFk.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index16-BzY6esFk.js new file mode 100644 index 0000000000000000000000000000000000000000..9ce83e56440eeaa87b25732355f54c6c06d5f96f --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index16-BzY6esFk.js @@ -0,0 +1,30 @@ +import './async-D55cHugf.js'; +import { c as spread_props } from './index-u8mz_F03.js'; +import { t as tick } from './index-server-CQz6EZl_.js'; +import { e as et } from './Textbox-DO7UelKj.js'; +import { W } from './index3-Df92vI-L.js'; +import { G } from './Block-DZmzQwnI.js'; +import './2-BLdXJizP.js'; +import { $ } from './utils.svelte-B2py64Fz.js'; +export { default as BaseExample } from './Example2-zAdYDcJY.js'; +import './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; +import './BlockTitle-BnJIYf6a.js'; +import './Info-DU6zbiUl.js'; +import './html-CfyvkLET.js'; +import './IconButton-BRnu7KaR.js'; +import './Check-C7_ZsXgh.js'; +import './Copy-B8YOhH7c.js'; +import './Send-C1RPCeF6.js'; +import './Square-CDuLMWYC.js'; +import './IconButtonWrapper-CjFRPb3y.js'; +import './index-Cg-Pg6j3.js'; +import './Clear-D7Yjckqz.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './clone-Yk88IHKV.js'; + +function z(p,i){p.component(l=>{let{$$slots:g,$$events:w,...n}=i;const s=new $(n);let u=s.shared.label||"Textbox";s.props.value=s.props.value??"",s.props.value;async function d(a){!s.shared||!s.props||(s.props.validation_error=null,s.props.value=a,await tick(),s.dispatch("input"));}function c(a){!s.shared||!s.props||(s.props.validation_error=null,s.props.value=a);}let e=true,r;function h(a){G(a,{visible:s.shared.visible,elem_id:s.shared.elem_id,elem_classes:s.shared.elem_classes,scale:s.shared.scale,min_width:s.shared.min_width,allow_overflow:false,padding:s.shared.container,rtl:s.props.rtl,children:o=>{s.shared.loading_status?(o.push(""),W(o,spread_props([{autoscroll:s.shared.autoscroll,i18n:s.i18n},s.shared.loading_status,{show_validation_error:false,on_clear_status:()=>s.dispatch("clear_status",s.shared.loading_status)}]))):o.push(""),o.push(" "),et(o,{label:u,info:s.props.info,show_label:s.shared.show_label,lines:s.props.lines,type:s.props.type,rtl:s.props.rtl,text_align:s.props.text_align,max_lines:s.props.max_lines,placeholder:s.props.placeholder,submit_btn:s.props.submit_btn,stop_btn:s.props.stop_btn,buttons:s.props.buttons,autofocus:s.props.autofocus,container:s.shared.container,autoscroll:s.shared.autoscroll,max_length:s.props.max_length,html_attributes:s.props.html_attributes,validation_error:s.shared?.loading_status?.validation_error||s.shared?.validation_error,onchange:c,oninput:d,onsubmit:()=>{s.shared.validation_error=null,s.dispatch("submit");},onblur:()=>s.dispatch("blur"),onselect:t=>s.dispatch("select",t),onfocus:()=>s.dispatch("focus"),onstop:()=>s.dispatch("stop"),oncopy:t=>s.dispatch("copy",t),oncustombuttonclick:t=>{s.dispatch("custom_button_click",{id:t});},disabled:!s.shared.interactive,get value(){return s.props.value},set value(t){s.props.value=t,e=false;}}),o.push("");},$$slots:{default:true}});}do e=true,r=l.copy(),h(r);while(!e);l.subsume(r);});} + +export { et as BaseTextbox, z as default }; +//# sourceMappingURL=Index16-BzY6esFk.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index17-Bq2EMGEU.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index17-Bq2EMGEU.js new file mode 100644 index 0000000000000000000000000000000000000000..a264ab88ecf6867337be4b1347f970c25d9b56b2 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index17-Bq2EMGEU.js @@ -0,0 +1,14 @@ +import './async-D55cHugf.js'; +import { o as onDestroy } from './index-server-CQz6EZl_.js'; +import './2-BLdXJizP.js'; +import { $ } from './utils.svelte-B2py64Fz.js'; +import './context-CBkBucIx.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; +import './clone-Yk88IHKV.js'; + +function c(o,r){o.component(p=>{const{$$slots:m,$$events:s,...t}=r;new $(t),onDestroy(()=>{});});} + +export { c as default }; +//# sourceMappingURL=Index17-Bq2EMGEU.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index18-DrDY45-S.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index18-DrDY45-S.js new file mode 100644 index 0000000000000000000000000000000000000000..6abc654b9d61fe068e77ade0de4ec267db5c638d --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index18-DrDY45-S.js @@ -0,0 +1,29 @@ +import './async-D55cHugf.js'; +import { d as bind_props, g as attr_style, f as attr_class, i as stringify, e as ensure_array_like, a as attr } from './index-u8mz_F03.js'; +import './2-BLdXJizP.js'; +import { t as tick } from './index-server-CQz6EZl_.js'; +import './Code.svelte_svelte_type_style_lang-C72WHBwk.js'; +import { K } from './Index.svelte_svelte_type_style_lang2-D59k2DMS.js'; +import './MarkdownCode-DLHRxFlS.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; +import './utils.svelte-B2py64Fz.js'; +import './clone-Yk88IHKV.js'; +import './Check-C7_ZsXgh.js'; +import './Copy-B8YOhH7c.js'; +import './IconButton-BRnu7KaR.js'; +import './IconButtonWrapper-CjFRPb3y.js'; +import './prism-python--2v-p3P4.js'; +import './index50-G3WrDDFf.js'; +import 'path'; +import 'url'; +import 'fs'; +import './html-CfyvkLET.js'; + +/* empty css */function N(_,l){_.component(p=>{let v=l.app,c=l.root,m="",u=350,f="chat",x="",h=[];const E=(t="smooth")=>{};let b=[];(async()=>v.post_data(`${c}/gradio_api/vibe-starter-queries/`,{}).then(async([e,a])=>{if(a!==200)throw new Error(`Error: ${a}`);b=e.starter_queries;}).catch(async e=>{console.error("Failed to fetch starter queries:",e);}))();const q=async()=>{try{const t=await fetch(`${c}/gradio_api/vibe-code/`,{method:"GET",headers:{"Content-Type":"application/json"}});t.ok&&(x=(await t.json()).code);}catch(t){console.error("Failed to fetch code:",t);}};q(),tick().then(()=>E("auto"));let g=true,d;function M(t){t.push(`
    Chat Code `),t.push(""),t.push('
    ');{t.push(""),t.push('
    ');const a=ensure_array_like(h);for(let o=0,n=a.length;o
    `),K(t,{value:i.text,latex_delimiters:[],theme_mode:"system"}),t.push(" "),!i.isBot&&i.hash&&!i.isPending?(t.push(""),t.push('')):t.push(""),t.push("
    ");}if(t.push(" "),h.length===0?(t.push(""),t.push('
    No messages yet
    ')):t.push(""),t.push(" "),h.length===0){t.push(""),t.push('
    ');const o=ensure_array_like(b);for(let n=0,i=o.length;n${escape_html(W)}`);}t.push("
    ");}else t.push("");t.push("
    ");}t.push('
    Powered by: gpt-oss
    `);}do g=true,d=p.copy(),M(d);while(!g);p.subsume(d),bind_props(l,{app:v,root:c});});} + +export { N as default }; +//# sourceMappingURL=Index18-DrDY45-S.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index19-DpiCCfwG.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index19-DpiCCfwG.js new file mode 100644 index 0000000000000000000000000000000000000000..e0881df435fe11d23dc45b88905ff99016caf5f3 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index19-DpiCCfwG.js @@ -0,0 +1,25 @@ +import './async-D55cHugf.js'; +import { c as spread_props, f as attr_class, a as attr, e as ensure_array_like, g as attr_style, i as stringify } from './index-u8mz_F03.js'; +import { G } from './Block-DZmzQwnI.js'; +import { k } from './BlockLabel-bKYWnOzQ.js'; +import { p } from './Empty-DGRbZO0a.js'; +import { i } from './Image2-vcp9_ifi.js'; +import './2-BLdXJizP.js'; +import { $ } from './utils.svelte-B2py64Fz.js'; +import { y } from './IconButtonWrapper-CjFRPb3y.js'; +import { k as k$1 } from './FullscreenButton-D8PvgSmk.js'; +import { W } from './index3-Df92vI-L.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; +import './clone-Yk88IHKV.js'; +import './IconButton-BRnu7KaR.js'; +import './Maximize-CuHbK64j.js'; +import './Clear-D7Yjckqz.js'; + +function P(_,f){_.component(c=>{const{$$slots:E,$$events:F,...d}=f,t=new $(d);let n=null,i$1=false,g=t.shared.label||t.i18n("annotated_image.annotated_image");t.watch_for_change();let u=true,h;function v(b){G(b,{visible:t.shared.visible,elem_id:t.shared.elem_id,elem_classes:t.shared.elem_classes,padding:false,height:t.props.height,width:t.props.width,allow_overflow:false,container:t.shared.container,scale:t.shared.scale,min_width:t.shared.min_width,get fullscreen(){return i$1},set fullscreen(s){i$1=s,u=false;},children:s=>{if(W(s,spread_props([{autoscroll:t.shared.autoscroll,i18n:t.i18n},t.shared.loading_status])),s.push(" "),k(s,{show_label:t.shared.show_label,Icon:i,label:g}),s.push('
    '),t.props.value==null)s.push(""),p(s,{size:"large",unpadded_box:true,children:p=>{i(p);},$$slots:{default:true}});else {s.push(""),s.push('
    '),y(s,{buttons:t.props.buttons||[],on_custom_button_click:o=>{t.dispatch("custom_button_click",{id:o});},children:o=>{(t.props.buttons||[]).some(l=>typeof l=="string"&&l==="fullscreen")?(o.push(""),k$1(o,{fullscreen:i$1})):o.push(""),o.push("");}}),s.push(` `);const p=ensure_array_like(t.props.value?t.props.value.annotations:[]);for(let o=0,l=p.length;o`);}if(s.push("
    "),t.props.show_legend&&t.props.value){s.push(""),s.push('
    ');const o=ensure_array_like(t.props.value.annotations);for(let l=0,e=o.length;l${escape_html(r.label)}`);}s.push("
    ");}else s.push("");s.push("");}s.push("
    ");},$$slots:{default:true}});}do u=true,h=c.copy(),v(h);while(!u);c.subsume(h);});} + +export { P as default }; +//# sourceMappingURL=Index19-DpiCCfwG.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index20-D3t7cSFS.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index20-D3t7cSFS.js new file mode 100644 index 0000000000000000000000000000000000000000..08661a0bb7662e932323cc06a760c1ce3fa0fe3a --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index20-D3t7cSFS.js @@ -0,0 +1,23 @@ +import './async-D55cHugf.js'; +import { c as spread_props, a as attr, e as ensure_array_like, f as attr_class } from './index-u8mz_F03.js'; +import './2-BLdXJizP.js'; +import { $ } from './utils.svelte-B2py64Fz.js'; +import { G } from './Block-DZmzQwnI.js'; +import { c } from './BlockTitle-BnJIYf6a.js'; +import { y } from './IconButtonWrapper-CjFRPb3y.js'; +import { W } from './index3-Df92vI-L.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; +import './clone-Yk88IHKV.js'; +import './Info-DU6zbiUl.js'; +import './html-CfyvkLET.js'; +import './IconButton-BRnu7KaR.js'; +import './Clear-D7Yjckqz.js'; + +function q(p,h){p.component(u=>{let{$$slots:f,$$events:x,...r}=h,t=new $(r),c$1=(()=>{const e=t.props.choices.map(([,a])=>a);return t.props.value.length===0?"unchecked":t.props.value.length===e.length?"checked":"indeterminate"})(),i=!t.shared.interactive;t.props.value,G(u,{visible:t.shared.visible,elem_id:t.shared.elem_id,elem_classes:t.shared.elem_classes,type:"fieldset",container:t.shared.container,scale:t.shared.scale,min_width:t.shared.min_width,children:e=>{W(e,spread_props([{autoscroll:t.shared.autoscroll,i18n:t.i18n},t.shared.loading_status,{on_clear_status:()=>t.dispatch("clear_status",t.shared.loading_status)}])),e.push(" "),t.shared.show_label&&t.props.buttons&&t.props.buttons.length>0?(e.push(""),y(e,{buttons:t.props.buttons,on_custom_button_click:s=>{t.dispatch("custom_button_click",{id:s});}})):e.push(""),e.push(" "),c(e,{show_label:t.shared.show_label||t.props.show_select_all&&t.shared.interactive,info:t.props.info,children:s=>{t.props.show_select_all&&t.shared.interactive?(s.push(""),s.push(`
    `)):(s.push(""),t.shared.show_label?(s.push(""),s.push(`${escape_html(t.shared.label||t.i18n("checkbox.checkbox_group"))}`)):s.push(""),s.push("")),s.push("");},$$slots:{default:true}}),e.push('
    ');const a=ensure_array_like(t.props.choices);for(let s=0,n=a.length;s ${escape_html(d)}`);}e.push("
    ");},$$slots:{default:true}});});} + +export { q as default }; +//# sourceMappingURL=Index20-D3t7cSFS.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index21-DG_phLLh.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index21-DG_phLLh.js new file mode 100644 index 0000000000000000000000000000000000000000..4dc9988c17f536999830530c1e608aac64f47c95 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index21-DG_phLLh.js @@ -0,0 +1,18 @@ +import './async-D55cHugf.js'; +import { a as attr, f as attr_class, i as stringify, c as spread_props, s as slot } from './index-u8mz_F03.js'; +import './2-BLdXJizP.js'; +import { $ } from './utils.svelte-B2py64Fz.js'; +import { W } from './index3-Df92vI-L.js'; +import './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; +import './clone-Yk88IHKV.js'; +import './IconButton-BRnu7KaR.js'; +import './Clear-D7Yjckqz.js'; + +function q(i,d){i.component(n=>{const{$$slots:x,$$events:D,...l}=d,a=new $(l);n.push(``),a.shared.loading_status&&a.props.show_progress?(n.push(""),W(n,spread_props([{autoscroll:a.shared.autoscroll,i18n:a.i18n},a.shared.loading_status,{status:a.shared.loading_status?a.shared.loading_status.status=="pending"?"generating":a.shared.loading_status.status:null}]))):n.push(""),n.push(" "),slot(n,d,"default",{}),n.push("");});} + +export { q as default }; +//# sourceMappingURL=Index21-DG_phLLh.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index22-CQuVrHGG.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index22-CQuVrHGG.js new file mode 100644 index 0000000000000000000000000000000000000000..6b18d38d333537296fcdfda02dbc5c90b5fe24a5 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index22-CQuVrHGG.js @@ -0,0 +1,31 @@ +import './async-D55cHugf.js'; +import { c as spread_props } from './index-u8mz_F03.js'; +import './2-BLdXJizP.js'; +import { $ } from './utils.svelte-B2py64Fz.js'; +import { k } from './BlockLabel-bKYWnOzQ.js'; +import { t as tick } from './index-server-CQz6EZl_.js'; +import { p } from './Empty-DGRbZO0a.js'; +import { i } from './File-DQh5d1OO.js'; +import { y } from './IconButtonWrapper-CjFRPb3y.js'; +import { S, p as pl } from './FileUpload-CAvfA7nt.js'; +import { G } from './Block-DZmzQwnI.js'; +import { k as k$1 } from './UploadText-BDXc1cBO.js'; +import { W } from './index3-Df92vI-L.js'; +export { default as BaseExample } from './Example5-CnJKzaeD.js'; +import './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; +import './clone-Yk88IHKV.js'; +import './Upload2-uTutz1dY.js'; +import './IconButton-BRnu7KaR.js'; +import './Clear-D7Yjckqz.js'; +import './Upload-BbxeBrrD.js'; +import './DownloadLink-nj1p0krE.js'; +import './html-CfyvkLET.js'; + +function z(d,c){d.component(t=>{let{value:o,label:_,show_label:p$1,selectable:l,i18n:r,height:h,buttons:s=null,on_custom_button_click:i$1=null,on_select:n,on_download:m}=c;p$1&&s&&s.length>0?(t.push(""),y(t,{buttons:s,on_custom_button_click:i$1})):t.push(""),t.push(" "),k(t,{show_label:p$1,float:o===null,Icon:i,label:_||"File"}),t.push(" "),o&&(!Array.isArray(o)||o.length>0)?(t.push(""),S(t,{i18n:r,selectable:l,value:o,height:h})):(t.push(""),p(t,{unpadded_box:true,size:"large",children:u=>{i(u);},$$slots:{default:true}})),t.push("");});}function N(d,c){d.component(t=>{const{$$slots:o,$$events:_,...p}=c;let l=null,r=false;class h extends ${async get_data(){return l&&(await l,await tick()),await super.get_data()}}const s=new h(p);s.props.value;let i=true,n;function m(u){G(u,{visible:s.shared.visible,variant:s.props.value?"solid":"dashed",border_mode:r?"focus":"base",padding:false,elem_id:s.shared.elem_id,elem_classes:s.shared.elem_classes,container:s.shared.container,scale:s.shared.scale,min_width:s.shared.min_width,allow_overflow:false,children:e=>{W(e,spread_props([{autoscroll:s.shared.autoscroll,i18n:s.i18n},s.shared.loading_status,{status:s.shared.loading_status?.status||"complete",on_clear_status:()=>s.dispatch("clear_status",s.shared.loading_status)}])),e.push(" "),s.shared.interactive?(e.push(""),pl(e,{upload:(...a)=>s.shared.client.upload(...a),stream_handler:(...a)=>s.shared.client.stream(...a),label:s.shared.label,show_label:s.shared.show_label,value:s.props.value,file_count:s.props.file_count,file_types:s.props.file_types,selectable:s.props._selectable,height:s.props.height??void 0,root:s.shared.root,allow_reordering:s.props.allow_reordering,max_file_size:s.shared.max_file_size,buttons:s.props.buttons,on_custom_button_click:a=>{s.dispatch("custom_button_click",{id:a});},onchange:a=>{s.props.value=a;},ondrag:a=>r=a,onclear:()=>s.dispatch("clear"),onselect:a=>s.dispatch("select",a),onupload:()=>s.dispatch("upload"),onerror:a=>{s.shared.loading_status=s.shared.loading_status||{},s.shared.loading_status.status="error",s.dispatch("error",a);},ondelete:a=>{s.dispatch("delete",a);},i18n:s.i18n,get upload_promise(){return l},set upload_promise(a){l=a,i=false;},children:a=>{k$1(a,{i18n:s.i18n,type:"file"});},$$slots:{default:true}})):(e.push(""),z(e,{on_select:({detail:a})=>s.dispatch("select",a),on_download:({detail:a})=>s.dispatch("download",a),selectable:s.props._selectable,value:s.props.value,label:s.shared.label,show_label:s.shared.show_label,height:s.props.height,i18n:s.i18n,buttons:s.props.buttons,on_custom_button_click:a=>{s.dispatch("custom_button_click",{id:a});}})),e.push("");},$$slots:{default:true}});}do i=true,n=t.copy(),m(n);while(!i);t.subsume(n);});} + +export { z as BaseFile, pl as BaseFileUpload, S as FilePreview, N as default }; +//# sourceMappingURL=Index22-CQuVrHGG.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index24-BLGD2ciO.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index24-BLGD2ciO.js new file mode 100644 index 0000000000000000000000000000000000000000..be18d80d9fd0f48459cfe28e9849d1aea7e9afd1 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index24-BLGD2ciO.js @@ -0,0 +1,15 @@ +import './async-D55cHugf.js'; +import { a as attr, f as attr_class, g as attr_style, i as stringify, s as slot } from './index-u8mz_F03.js'; +import './2-BLdXJizP.js'; +import { $ } from './utils.svelte-B2py64Fz.js'; +import './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; +import './clone-Yk88IHKV.js'; + +function u(d,e){d.component(i=>{const{$$slots:o,$$events:l,...a}=e,t=new $(a);i.push(`
    `),slot(i,e,"default",{}),i.push("
    ");});} + +export { u as default }; +//# sourceMappingURL=Index24-BLGD2ciO.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index25-nOTf6swL.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index25-nOTf6swL.js new file mode 100644 index 0000000000000000000000000000000000000000..7a01fc6cb3a6c0cd98bb82f6ee6e9a5cb40c1ae2 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index25-nOTf6swL.js @@ -0,0 +1,27 @@ +import './async-D55cHugf.js'; +import { c as spread_props, f as attr_class, g as attr_style } from './index-u8mz_F03.js'; +import { b as bs } from './2-BLdXJizP.js'; +import { $, x } from './utils.svelte-B2py64Fz.js'; +import pr from './HTML-Clqd1RzU.js'; +import { W } from './index3-Df92vI-L.js'; +import { i } from './Code-CrFuQ3ob.js'; +import { G } from './Block-DZmzQwnI.js'; +import { k } from './BlockLabel-bKYWnOzQ.js'; +import { y } from './IconButtonWrapper-CjFRPb3y.js'; +export { default as BaseExample } from './Example18-BxnxeXx7.js'; +import './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; +import './clone-Yk88IHKV.js'; +import './_commonjs-dynamic-modules-DX_xVkta.js'; +import 'fs'; +import './IconButton-BRnu7KaR.js'; +import './Clear-D7Yjckqz.js'; +import './html-CfyvkLET.js'; + +function F(n,h){n.component(d=>{let{$$slots:E,$$events:I,...r}=h,c=r.children;const s=new $(r);let u={value:s.props.value??"",label:s.shared.label,visible:s.shared.visible,...s.props.props};s.props.value;let i$1=[];function _(a,t){const e=Array.isArray(a)?a:[a];i$1.push({props:e,callback:t});}function m(a){const t=new Set;for(const e of i$1)e.props.some(o=>a.includes(o))&&t.add(e);for(const e of t)try{e.callback();}catch(o){console.error("Error in watch callback:",o);}}async function f(a){try{const t=await bs([a]),e=await s.shared.client.upload(t,s.shared.root,void 0,s.shared.max_file_size??void 0);if(e&&e[0])return {path:e[0].path,url:e[0].url};throw new Error("Upload failed")}catch(t){throw s.dispatch("error",t instanceof Error?t.message:String(t)),t}}G(d,{visible:s.shared.visible,elem_id:s.shared.elem_id,elem_classes:s.shared.elem_classes,container:s.shared.container,padding:s.props.padding!==false,overflow_behavior:"visible",children:a=>{s.shared.show_label&&s.props.buttons&&s.props.buttons.length>0?(a.push(""),y(a,{buttons:s.props.buttons,on_custom_button_click:t=>{s.dispatch("custom_button_click",{id:t});}})):a.push(""),a.push(" "),s.shared.show_label?(a.push(""),k(a,{Icon:i,show_label:s.shared.show_label,label:s.shared.label,float:true})):a.push(""),a.push(" "),W(a,spread_props([{autoscroll:s.shared.autoscroll,i18n:s.i18n},s.shared.loading_status,{variant:"center",on_clear_status:()=>s.dispatch("clear_status",s.shared.loading_status)}])),a.push(` `),pr(a,{props:u,html_template:s.props.html_template,css_template:s.props.css_template,js_on_load:s.props.js_on_load,elem_classes:s.shared.elem_classes,visible:s.shared.visible,autoscroll:s.shared.autoscroll,apply_default_css:s.props.apply_default_css,head:s.props.head,component_class_name:s.props.component_class_name,upload:f,server:s.shared.server,watch_fn:_,fire_watchers:m,children:t=>{c?.(t);}}),a.push("");},$$slots:{default:true}});});} + +export { pr as BaseHTML, F as default }; +//# sourceMappingURL=Index25-nOTf6swL.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index26-DaAQhbOM.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index26-DaAQhbOM.js new file mode 100644 index 0000000000000000000000000000000000000000..c16e151202bab86e4cc6cf3cad6ee020e860b727 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index26-DaAQhbOM.js @@ -0,0 +1,41 @@ +import { f as fallback } from './async-D55cHugf.js'; +import { d as bind_props, f as attr_class, g as attr_style, c as spread_props, s as slot } from './index-u8mz_F03.js'; +import { t as tick } from './index-server-CQz6EZl_.js'; +import './2-BLdXJizP.js'; +import { $ } from './utils.svelte-B2py64Fz.js'; +import Q$1 from './ImagePreview-Ca2hvNZZ.js'; +import { k } from './BlockLabel-bKYWnOzQ.js'; +import { w } from './IconButton-BRnu7KaR.js'; +import { o } from './Clear-D7Yjckqz.js'; +import { i } from './Image2-vcp9_ifi.js'; +import { w as w$1 } from './SelectSource-Bhpgvmj9.js'; +import { y } from './IconButtonWrapper-CjFRPb3y.js'; +import { k as k$1 } from './FullscreenButton-D8PvgSmk.js'; +import { Z } from './Webcam2-CNM_PDwT.js'; +import { e as ee, Q } from './Upload2-uTutz1dY.js'; +import { c } from './Image-CuPo5pWT.js'; +import { G } from './Block-DZmzQwnI.js'; +import { p } from './Empty-DGRbZO0a.js'; +import { k as k$2 } from './UploadText-BDXc1cBO.js'; +import { W } from './index3-Df92vI-L.js'; +export { default as BaseExample } from './Example6-cJA6M13Z.js'; +import './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; +import './clone-Yk88IHKV.js'; +import './DownloadLink-nj1p0krE.js'; +import './ShareButton-7VTs9dOO.js'; +import './Download-DcU5dONL.js'; +import './Maximize-CuHbK64j.js'; +import './Upload-BbxeBrrD.js'; +import './Microphone-BMM9-23W.js'; +import './Video-FfbWmOVG.js'; +import './Webcam-CvKMKUzA.js'; +import './StreamingBar-BGU65w2M.js'; + +function ua(S,e){S.component(b=>{let v,u=fallback(e.value,null),I=fallback(e.label,void 0),z=e.show_label,r=fallback(e.sources,()=>["upload","clipboard","webcam"],true),c$1=fallback(e.streaming,false),a=fallback(e.pending,false),p=e.webcam_options,_=fallback(e.selectable,false),d=e.root,w$2=e.i18n,n=fallback(e.max_file_size,null),f=e.upload,k$2=e.stream_handler,h=e.stream_every,i$1=e.time_limit,l=fallback(e.show_fullscreen_button,true),x=fallback(e.stream_state,"closed"),C=fallback(e.upload_promise,null),P=fallback(e.onerror,void 0),j,y$1=fallback(e.uploading,false),m=fallback(e.active_source,null),W=fallback(e.fullscreen,false),q=[],A;async function H(s){if(!c$1){if(s.path?.toLowerCase().endsWith(".svg")&&s.url){const N=await(await fetch(s.url)).text();u={...s,url:`data:image/svg+xml,${encodeURIComponent(N)}`};}else u=s;await tick();}}function G(){u=null;}function J(s){G(),s.stopPropagation();}let U=fallback(e.dragging,false);async function K(s){s==="clipboard"&&j.paste_clipboard();}!m&&r&&(m=r[0]),v=c$1&&m==="webcam",y$1&&!v&&(u=null);let g=true,E;function M(s){k(s,{show_label:z,Icon:i,label:I||"Image"}),s.push('
    '),y(s,{children:t=>{u?.url&&!v?(t.push(""),l?(t.push(""),k$1(t,{fullscreen:W})):t.push(""),t.push(" "),w(t,{Icon:o,label:"Remove Image",onclick:J}),t.push("")):t.push(""),t.push("");}}),s.push(` 1})}${attr_style("",{width:u?"auto":"100%"})}>`),ee(s,{hidden:u!==null||m==="webcam",filetype:m==="clipboard"?"clipboard":"image/*",onload:H,onerror:P,root:d,max_file_size:n,disable_click:!r.includes("upload")||u!==null,upload:f,stream_handler:k$2,aria_label:w$2("image.drop_to_upload"),get upload_promise(){return C},set upload_promise(t){C=t,g=false;},get uploading(){return y$1},set uploading(t){y$1=t,g=false;},get dragging(){return U},set dragging(t){U=t,g=false;},children:t=>{u===null?(t.push(""),t.push(""),slot(t,e,"default",{}),t.push("")):t.push(""),t.push("");},$$slots:{default:true}}),s.push(" "),m==="webcam"&&!c$1&&a?(s.push(""),Q(s,{root:d,upload_id:A,stream_handler:k$2,files:q})):(s.push(""),m==="webcam"&&(c$1||!c$1&&!u)?(s.push(""),Z(s,{root:d,value:u,stream_state:x,mirror_webcam:p.mirror,stream_every:h,streaming:c$1,mode:"image",include_audio:false,i18n:w$2,upload:f,time_limit:i$1,webcam_constraints:p.constraints})):(s.push(""),u!==null&&!c$1?(s.push(""),s.push(``),c(s,{src:u.url,restProps:{alt:u.alt_text}}),s.push("
    ")):s.push(""),s.push("")),s.push("")),s.push(" "),r.length>1||r.includes("clipboard")?(s.push(""),w$1(s,{sources:r,handle_clear:G,handle_select:K,get active_source(){return m},set active_source(t){m=t,g=false;}})):s.push(""),s.push("");}do g=true,E=b.copy(),M(E);while(!g);b.subsume(E),bind_props(e,{value:u,label:I,show_label:z,sources:r,streaming:c$1,pending:a,webcam_options:p,selectable:_,root:d,i18n:w$2,max_file_size:n,upload:f,stream_handler:k$2,stream_every:h,time_limit:i$1,show_fullscreen_button:l,stream_state:x,upload_promise:C,onerror:P,uploading:y$1,active_source:m,fullscreen:W,dragging:U});});}function Wa(S,e){S.component(b=>{let v={value:null},u;class I extends ${async get_data(){u&&(await u,await tick());const i=await super.get_data();return c.props.streaming&&(i.value=v.value),i}}const{$$slots:z,$$events:r,...c}=e,a=new I(c);let p$1=false,_=false,d=a.props.sources?a.props.sources[0]:null;a.props.value;let w=a?.shared?.loading_status.stream_state,n=true,f;function k(h){a.shared.interactive?(h.push(""),G(h,{visible:a.shared.visible,variant:a.props.value===null?"dashed":"solid",border_mode:_?"focus":"base",padding:false,elem_id:a.shared.elem_id,elem_classes:a.shared.elem_classes,height:a.props.height||void 0,width:a.props.width,allow_overflow:false,container:a.shared.container,scale:a.shared.scale,min_width:a.shared.min_width,get fullscreen(){return p$1},set fullscreen(i){p$1=i,n=false;},children:i$1=>{a.shared.loading_status.type==="output"||a.shared.loading_status.validation_error?(i$1.push(""),W(i$1,spread_props([{autoscroll:a.shared.autoscroll,i18n:a.i18n},a.shared.loading_status,{on_clear_status:()=>a.dispatch("clear_status",a.shared.loading_status)}]))):i$1.push(""),i$1.push(" "),ua(i$1,{selectable:a.props._selectable,root:a.shared.root,sources:a.props.sources,fullscreen:p$1,show_fullscreen_button:a.props.buttons===null?true:a.props.buttons.some(l=>typeof l=="string"&&l==="fullscreen"),onerror:l=>{a.shared.loading_status.status="error",a.dispatch("error",l);},label:a.shared.label,show_label:a.shared.show_label,pending:a.shared.loading_status?.status==="pending"||a.shared.loading_status?.status==="streaming",streaming:a.props.streaming,webcam_options:a.props.webcam_options,stream_every:a.props.stream_every,time_limit:a.shared.loading_status?.time_limit,max_file_size:a.shared.max_file_size,i18n:a.i18n,upload:(...l)=>a.shared.client.upload(...l),stream_handler:a.shared.client?.stream,stream_state:w,get upload_promise(){return u},set upload_promise(l){u=l,n=false;},get active_source(){return d},set active_source(l){d=l,n=false;},get value(){return a.props.value},set value(l){a.props.value=l,n=false;},get dragging(){return _},set dragging(l){_=l,n=false;},children:l=>{d==="upload"||!d?(l.push(""),k$2(l,{i18n:a.i18n,type:"image",placeholder:a.props.placeholder})):(l.push(""),d==="clipboard"?(l.push(""),k$2(l,{i18n:a.i18n,type:"clipboard",mode:"short"})):(l.push(""),p(l,{unpadded_box:true,size:"large",children:x=>{i(x);},$$slots:{default:true}})),l.push("")),l.push("");},$$slots:{default:true}}),i$1.push("");},$$slots:{default:true}})):(h.push(""),G(h,{visible:a.shared.visible,variant:"solid",border_mode:_?"focus":"base",padding:false,elem_id:a.shared.elem_id,elem_classes:a.shared.elem_classes,height:a.props.height||void 0,width:a.props.width,allow_overflow:false,container:a.shared.container,"scale{gradio.shared.scale}":true,min_width:a.shared.min_width,get fullscreen(){return p$1},set fullscreen(i){p$1=i,n=false;},children:i=>{W(i,spread_props([{autoscroll:a.shared.autoscroll,i18n:a.i18n},a.shared.loading_status,{on_clear_status:()=>a.dispatch("clear_status",a.shared.loading_status)}])),i.push(" "),Q$1(i,{fullscreen:p$1,value:a.props.value,label:a.shared.label,show_label:a.shared.show_label,selectable:a.props._selectable,i18n:a.i18n,buttons:a.props.buttons,on_custom_button_click:l=>{a.dispatch("custom_button_click",{id:l});}}),i.push("");},$$slots:{default:true}})),h.push("");}do n=true,f=b.copy(),k(f);while(!n);b.subsume(f);});} + +export { c as BaseImage, ua as BaseImageUploader, Q$1 as BaseStaticImage, Z as Webcam, Wa as default }; +//# sourceMappingURL=Index26-DaAQhbOM.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index27-VJGlkxXC.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index27-VJGlkxXC.js new file mode 100644 index 0000000000000000000000000000000000000000..7dcc1ebf38daf4abab9c67c66b1a9b9668dc1e06 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index27-VJGlkxXC.js @@ -0,0 +1,28 @@ +import './async-D55cHugf.js'; +import { c as spread_props } from './index-u8mz_F03.js'; +import './2-BLdXJizP.js'; +import { $ } from './utils.svelte-B2py64Fz.js'; +import { G } from './Block-DZmzQwnI.js'; +import { c } from './BlockTitle-BnJIYf6a.js'; +import { w } from './IconButton-BRnu7KaR.js'; +import { p } from './Empty-DGRbZO0a.js'; +import { l } from './Download-DcU5dONL.js'; +import { e } from './LineChart-DIvFgn2j.js'; +import { y } from './IconButtonWrapper-CjFRPb3y.js'; +import { k } from './FullscreenButton-D8PvgSmk.js'; +import { W } from './index3-Df92vI-L.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; +import './clone-Yk88IHKV.js'; +import './Info-DU6zbiUl.js'; +import './html-CfyvkLET.js'; +import './Maximize-CuHbK64j.js'; +import './Clear-D7Yjckqz.js'; + +function Y(d,m){d.component(c$1=>{let{$$slots:G$1,$$events:L,...h}=m;const s=new $(h);(()=>{if(!s.props.color||!s.props.value||s.props.value.datatypes[s.props.color]!=="nominal")return [];const p=s.props.value.columns.indexOf(s.props.color);return p===-1?[]:Array.from(new Set(s.props.value.data.map(o=>o[p])))})();let l$1=s.props.x_lim||null,i=s.props.y_lim||null;l$1?.[0]!==null&&l$1?.[0],l$1?.[1]!==null&&l$1?.[1],i?.[0]!==null&&i?.[0],i?.[1]!==null&&i?.[1];let n=false;function _(p){if(p==="x")return "ascending";if(p==="-x")return "descending";if(p==="y")return {field:s.props.y,order:"ascending"};if(p==="-y")return {field:s.props.y,order:"descending"};if(p===null)return null;if(Array.isArray(p))return p}_(s.props.sort),s.props.value&&s.props.value.datatypes[s.props.x];const g={s:1,m:60,h:3600,d:1440*60};let u=s.props.x_bin?typeof s.props.x_bin=="string"?1e3*parseInt(s.props.x_bin.substring(0,s.props.x_bin.length-1))*g[s.props.x_bin[s.props.x_bin.length-1]]:s.props.x_bin:void 0;(()=>{if(s.props.value)if(s.props.value.mark==="point"){const p=u!==void 0;return s.props.y_aggregate||p?"sum":void 0}else return s.props.y_aggregate?s.props.y_aggregate:"sum"})(),s.props.value&&(s.props.value.mark==="point"||u!==void 0||s.props.value.datatypes[s.props.x]),s.props.value;const b=typeof window<"u";function v(){}JSON.stringify(s.props.color_map);let a=true,r;function x(p$1){G(p$1,{visible:s.shared.visible,elem_id:s.shared.elem_id,elem_classes:s.shared.elem_classes,scale:s.shared.scale,min_width:s.shared.min_width,allow_overflow:false,padding:true,height:s.props.height,get fullscreen(){return n},set fullscreen(o){n=o,a=false;},children:o=>{s.shared.loading_status?(o.push(""),W(o,spread_props([{autoscroll:s.shared.autoscroll,i18n:s.i18n},s.shared.loading_status,{on_clear_status:()=>s.dispatch("clear_status",s.shared.loading_status)}]))):o.push(""),o.push(" "),s.props.buttons?.length?(o.push(""),y(o,{buttons:s.props.buttons,on_custom_button_click:t=>{s.dispatch("custom_button_click",{id:t});},children:t=>{s.props.buttons?.some(e=>typeof e=="string"&&e==="export")?(t.push(""),w(t,{Icon:l,label:"Export",onclick:v})):t.push(""),t.push(" "),s.props.buttons?.some(e=>typeof e=="string"&&e==="fullscreen")?(t.push(""),k(t,{fullscreen:n})):t.push(""),t.push("");}})):o.push(""),o.push(" "),c(o,{show_label:s.shared.show_label,info:void 0,children:t=>{t.push(`${escape_html(s.shared.label)}`);},$$slots:{default:true}}),o.push(" "),s.props.value&&b?(o.push(""),o.push('
    '),s.props.caption?(o.push(""),o.push(`

    ${escape_html(s.props.caption)}

    `)):o.push(""),o.push("")):(o.push(""),p(o,{unpadded_box:true,children:t=>{e(t);},$$slots:{default:true}})),o.push("");},$$slots:{default:true}});}do a=true,r=c$1.copy(),x(r);while(!a);c$1.subsume(r);});} + +export { Y as default }; +//# sourceMappingURL=Index27-VJGlkxXC.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index28-CrdJ2TjG.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index28-CrdJ2TjG.js new file mode 100644 index 0000000000000000000000000000000000000000..61a0e8999b00713c29b4b400a99174a04215a2ea --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index28-CrdJ2TjG.js @@ -0,0 +1,23 @@ +import './async-D55cHugf.js'; +import { c as spread_props, f as attr_class, a as attr } from './index-u8mz_F03.js'; +import './2-BLdXJizP.js'; +import { $ } from './utils.svelte-B2py64Fz.js'; +import { G } from './Block-DZmzQwnI.js'; +import { c } from './BlockTitle-BnJIYf6a.js'; +import { y } from './IconButtonWrapper-CjFRPb3y.js'; +import { W } from './index3-Df92vI-L.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; +import './clone-Yk88IHKV.js'; +import './Info-DU6zbiUl.js'; +import './html-CfyvkLET.js'; +import './IconButton-BRnu7KaR.js'; +import './Clear-D7Yjckqz.js'; + +function S(l,i){l.component(e=>{const{$$slots:m,$$events:_,...r}=i,s=new $(r);s.props.value??=0,s.props.value;const p=!s.shared.interactive;G(e,{visible:s.shared.visible,elem_id:s.shared.elem_id,elem_classes:s.shared.elem_classes,padding:s.shared.container,allow_overflow:false,scale:s.shared.scale,min_width:s.shared.min_width,children:t=>{W(t,spread_props([{autoscroll:s.shared.autoscroll,i18n:s.i18n},s.shared.loading_status,{show_validation_error:false,on_clear_status:()=>{s.dispatch("clear_status",s.shared.loading_status);}}])),t.push(` `),s.shared.show_label&&s.props.buttons&&s.props.buttons.length>0?(t.push(""),y(t,{buttons:s.props.buttons,on_custom_button_click:o=>{s.dispatch("custom_button_click",{id:o});}})):t.push(""),t.push(" "),c(t,{show_label:s.shared.show_label,info:s.props.info,children:o=>{o.push(`${escape_html(s.shared.label||"Number")} `),s.shared.loading_status?.validation_error?(o.push(""),o.push(`
    ${escape_html(s.shared.loading_status?.validation_error)}
    `)):o.push(""),o.push("");},$$slots:{default:true}}),t.push(` `);},$$slots:{default:true}});});} + +export { S as default }; +//# sourceMappingURL=Index28-CrdJ2TjG.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index29-CUXHBOWp.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index29-CUXHBOWp.js new file mode 100644 index 0000000000000000000000000000000000000000..568fc38bda3d877e4c484d8efd67ab045829a29d --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index29-CUXHBOWp.js @@ -0,0 +1,18 @@ +import './async-D55cHugf.js'; +import { a as attr, f as attr_class, g as attr_style, i as stringify, c as spread_props, s as slot } from './index-u8mz_F03.js'; +import { W } from './index3-Df92vI-L.js'; +import './2-BLdXJizP.js'; +import { $ } from './utils.svelte-B2py64Fz.js'; +import './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; +import './index-Cg-Pg6j3.js'; +import './IconButton-BRnu7KaR.js'; +import './Clear-D7Yjckqz.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './clone-Yk88IHKV.js'; + +function v(r,o){r.component(s=>{const i=e=>{if(e!==void 0){if(typeof e=="number")return e+"px";if(typeof e=="string")return e}};let{$$slots:n,$$events:d,...p}=o,t=new $(p);s.push(`=1})}${attr_style("",{height:i(t.props.height),"max-height":i(t.props.max_height),"min-height":i(t.props.min_height),"flex-grow":t.shared.scale})}>`),t.shared.loading_status&&t.shared.loading_status.show_progress&&t?(s.push(""),W(s,spread_props([{autoscroll:t.shared.autoscroll,i18n:t.i18n},t.shared.loading_status,{status:t.shared.loading_status?t.shared.loading_status.status=="pending"?"generating":t.shared.loading_status.status:null}]))):s.push(""),s.push(" "),slot(s,o,"default",{}),s.push("");});} + +export { v as default }; +//# sourceMappingURL=Index29-CUXHBOWp.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index30-DHQl1v93.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index30-DHQl1v93.js new file mode 100644 index 0000000000000000000000000000000000000000..a4b27a46e6e1f8e2e9f9870dd7657acbc0393d0f --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index30-DHQl1v93.js @@ -0,0 +1,22 @@ +import './async-D55cHugf.js'; +import { c as spread_props, a as attr } from './index-u8mz_F03.js'; +import './2-BLdXJizP.js'; +import { $ } from './utils.svelte-B2py64Fz.js'; +import { G } from './Block-DZmzQwnI.js'; +import { c } from './BlockTitle-BnJIYf6a.js'; +import { W } from './index3-Df92vI-L.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; +import './clone-Yk88IHKV.js'; +import './Info-DU6zbiUl.js'; +import './html-CfyvkLET.js'; +import './IconButton-BRnu7KaR.js'; +import './Clear-D7Yjckqz.js'; + +let f=0;function T(r,o){r.component(m=>{let{$$slots:b,$$events:_,...u}=o,t=new $(u);t.props.value,t.props.value;const p=`range_id_${f++}`;let n=t.props.minimum??0;(()=>{const a=t.props.minimum,s=t.props.maximum,i=t.props.value;return i>s?100:i{W(a,spread_props([{autoscroll:t.shared.autoscroll,i18n:t.i18n},t.shared.loading_status,{on_clear_status:()=>t.dispatch("clear_status",t.shared.loading_status)}])),a.push(`
    `),c(a,{show_label:t.shared.show_label,info:t.props.info,children:s=>{s.push(`${escape_html(t.shared.label||"Slider")}`);},$$slots:{default:true}}),a.push(`
    `),t.props.buttons?.includes("reset")??true?(a.push(""),a.push(``)):a.push(""),a.push(`
    ${escape_html(n)} ${escape_html(t.props.maximum)}
    `);},$$slots:{default:true}});});} + +export { T as default }; +//# sourceMappingURL=Index30-DHQl1v93.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index31-BlskGMoP.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index31-BlskGMoP.js new file mode 100644 index 0000000000000000000000000000000000000000..b3c49608755bd65f11616ba7321ed3b49bd3e34f --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index31-BlskGMoP.js @@ -0,0 +1,17 @@ +import { f as fallback } from './async-D55cHugf.js'; +import { s as slot, b as store_get, o as store_set, f as attr_class, a as attr, g as attr_style, i as stringify, e as ensure_array_like, u as unsubscribe_stores, d as bind_props } from './index-u8mz_F03.js'; +import './2-BLdXJizP.js'; +import { $ } from './utils.svelte-B2py64Fz.js'; +import { J, z } from './Walkthrough.svelte_svelte_type_style_lang-DRIsDysA.js'; +import { c as createEventDispatcher } from './index-server-CQz6EZl_.js'; +import { w as writable } from './index-Cg-Pg6j3.js'; +import { a as setContext } from './context-CBkBucIx.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './clone-Yk88IHKV.js'; + +function L(r,p){r.component(e=>{var i;let x,v,c=fallback(p.visible,true),b=fallback(p.elem_id,""),h=fallback(p.elem_classes,()=>[],true),d=p.selected,u=p.initial_tabs,s=[...u],z$1=true,y=0,f=false;const _=writable(d||s[0]?.id||false),n=writable(s.findIndex(l=>l?.id===d)||0),I=createEventDispatcher();async function m(){}setContext(z,{register_tab:(l,a)=>(s[a]=l,store_get(i??={},"$selected_tab",_)===false&&l.visible&&l.interactive&&(store_set(_,l.id),store_set(n,a)),a),unregister_tab:(l,a)=>{store_get(i??={},"$selected_tab",_)===l.id&&store_set(_,s[0]?.id||false),s[a]=null;},selected_tab:_,selected_tab_index:n});function T(l,a){const g=s.find(o=>o?.id===l);l!==void 0&&g&&g.interactive&&g.visible&&store_get(i??={},"$selected_tab",_)!==g.id&&(d=l,store_set(_,l),store_set(n,s.findIndex(o=>o?.id===l)),I("change"));}if(x=s.length>0,d!==null&&T(d,s.findIndex(l=>l?.id===d)),m(),store_get(i??={},"$selected_tab_index",n),m(),v=s[store_get(i??={},"$selected_tab_index",n)>=0?store_get(i??={},"$selected_tab_index",n):0]?.scale,e.push(``),x){e.push(""),e.push(""),e.push(`
    `);const l=ensure_array_like(s);for(let a=0,g=l.length;a"),e.push(`
    "),a"),e.push(`
    `)):e.push(""),e.push("")):e.push(""),e.push("");}e.push("
    ");}else e.push("");e.push(" "),slot(e,p,"default",{}),e.push(""),i&&unsubscribe_stores(i),bind_props(p,{visible:c,elem_id:b,elem_classes:h,selected:d,initial_tabs:u});});}function q(r,p){r.component(e=>{let{$$slots:i,$$events:x,...v}=p;const c=new $(v);let b=true,h;function d(u){c.props.name==="walkthrough"?(u.push(""),L(u,{visible:c.shared.visible,elem_id:c.shared.elem_id,elem_classes:c.shared.elem_classes,initial_tabs:c.props.initial_tabs,get selected(){return c.props.selected},set selected(s){c.props.selected=s,b=false;},children:s=>{s.push(""),slot(s,p,"default",{}),s.push("");},$$slots:{default:true}})):(u.push(""),J(u,{visible:c.shared.visible,elem_id:c.shared.elem_id,elem_classes:c.shared.elem_classes,initial_tabs:c.props.initial_tabs,get selected(){return c.props.selected},set selected(s){c.props.selected=s,b=false;},children:s=>{s.push(""),slot(s,p,"default",{}),s.push("");},$$slots:{default:true}})),u.push("");}do b=true,h=e.copy(),d(h);while(!b);e.subsume(h);});} + +export { J as BaseTabs, z as TABS, q as default }; +//# sourceMappingURL=Index31-BlskGMoP.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index32-CS6M-sDq.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index32-CS6M-sDq.js new file mode 100644 index 0000000000000000000000000000000000000000..6197bb73af9f8a0d57110012266700a54124e768 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index32-CS6M-sDq.js @@ -0,0 +1,20 @@ +import './async-D55cHugf.js'; +import { c as spread_props, f as attr_class, g as attr_style, s as slot, d as bind_props } from './index-u8mz_F03.js'; +import { G } from './Block-DZmzQwnI.js'; +import './2-BLdXJizP.js'; +import { $ } from './utils.svelte-B2py64Fz.js'; +import { W } from './index3-Df92vI-L.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; +import { y } from './Index.svelte_svelte_type_style_lang-DXpx_9zF.js'; +import './context-CBkBucIx.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; +import './clone-Yk88IHKV.js'; +import './IconButton-BRnu7KaR.js'; +import './Clear-D7Yjckqz.js'; + +function b(p,a){p.component(l=>{let{open:i=true,label:d="",onexpand:c,oncollapse:u}=a;l.push(`${escape_html(d)} ▼
    `),slot(l,a,"default",{}),l.push("
    "),bind_props(a,{open:i});});}function I(p,a){p.component(l=>{let{$$slots:i,$$events:d,...c}=a;class u extends ${set_data(e){"open"in e&&e.open!==this.props.open&&(e.open?(this.dispatch("expand"),this.dispatch("gradio_expand")):this.dispatch("collapse")),super.set_data(e),this.shared.loading_status.status="complete";}}const s=new u(c);let h=s.shared.label||"",r=s.shared.visible===true?true:"hidden";G(l,{elem_id:s.shared.elem_id,elem_classes:s.shared.elem_classes,visible:r,children:o=>{s.shared.loading_status?(o.push(""),W(o,spread_props([{autoscroll:s.shared.autoscroll,i18n:s.i18n},s.shared.loading_status]))):o.push(""),o.push(" "),b(o,{label:h,open:s.props.open,onexpand:()=>{s.dispatch("expand"),s.dispatch("gradio_expand");},oncollapse:()=>s.dispatch("collapse"),children:e=>{y(e,{children:n=>{n.push(""),slot(n,a,"default",{}),n.push("");},$$slots:{default:true}});},$$slots:{default:true}}),o.push("");},$$slots:{default:true}});});} + +export { I as default }; +//# sourceMappingURL=Index32-CS6M-sDq.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index33-CIS7gDsu.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index33-CIS7gDsu.js new file mode 100644 index 0000000000000000000000000000000000000000..e55ca5aa988c3fbc95c9e066dbfca25b00c88e4e --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index33-CIS7gDsu.js @@ -0,0 +1,17 @@ +import './async-D55cHugf.js'; +import { a as attr } from './index-u8mz_F03.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; +import './2-BLdXJizP.js'; +import { $ } from './utils.svelte-B2py64Fz.js'; +import { q } from './Button-C_X4rUwO.js'; +import './context-CBkBucIx.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; +import './clone-Yk88IHKV.js'; +import './Image-CuPo5pWT.js'; + +function B(o,t){o.component(a=>{let{elem_id:d="",elem_classes:u=[],visible:n=true,variant:i="secondary",size:c="lg",value:e,icon:m,disabled:f=false,scale:_=null,min_width:v=void 0,on_click:b,children:h}=t;function w(){if(b?.(),!e?.url)return;let s;if(!e.orig_name&&e.url){const r=e.url.split("/");s=r[r.length-1],s=s.split("?")[0].split("#")[0];}else s=e.orig_name;const l=document.createElement("a");l.href=e.url,l.download=s||"file",document.body.appendChild(l),l.click(),document.body.removeChild(l);}q(a,{size:c,variant:i,elem_id:d,elem_classes:u,visible:n,onclick:w,scale:_,min_width:v,disabled:f,children:s=>{m?(s.push(""),s.push(``)):s.push(""),s.push(" "),h?(s.push(""),h(s),s.push("")):s.push(""),s.push("");}});});}function D(o,t){o.component(a=>{const{$$slots:d,$$events:u,...n}=t,i=new $(n);B(a,{value:i.props.value,variant:i.props.variant,elem_id:i.shared.elem_id,elem_classes:i.shared.elem_classes,size:i.props.size,scale:i.shared.scale,icon:i.props.icon,min_width:i.shared.min_width,visible:i.shared.visible,disabled:!i.shared.interactive,on_click:()=>i.dispatch("click"),children:c=>{c.push(`${escape_html(i.shared.label??"")}`);}});});} + +export { B as BaseButton, D as default }; +//# sourceMappingURL=Index33-CIS7gDsu.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index35-DfvsCytT.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index35-DfvsCytT.js new file mode 100644 index 0000000000000000000000000000000000000000..d08bd4cea258363b6b13d1cf9dc9cfbc0688045d --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index35-DfvsCytT.js @@ -0,0 +1,34 @@ +import './async-D55cHugf.js'; +import { d as bind_props, c as spread_props, s as slot } from './index-u8mz_F03.js'; +import { t as tick } from './index-server-CQz6EZl_.js'; +import './2-BLdXJizP.js'; +import { $ } from './utils.svelte-B2py64Fz.js'; +import q from './Model3D-D4sSC2vC.js'; +import { e as ee } from './Upload2-uTutz1dY.js'; +import { v } from './ModifyUpload-CWSi2EyW.js'; +import { k } from './BlockLabel-bKYWnOzQ.js'; +import { i } from './File-DQh5d1OO.js'; +import { G } from './Block-DZmzQwnI.js'; +import { p } from './Empty-DGRbZO0a.js'; +import { k as k$1 } from './UploadText-BDXc1cBO.js'; +import { y } from './IconButtonWrapper-CjFRPb3y.js'; +import { W } from './index3-Df92vI-L.js'; +export { default as BaseExample } from './Example22-CvVgGYgY.js'; +import './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; +import './clone-Yk88IHKV.js'; +import './IconButton-BRnu7KaR.js'; +import './Download-DcU5dONL.js'; +import './Undo-Ce01x-M5.js'; +import './DownloadLink-nj1p0krE.js'; +import './Clear-D7Yjckqz.js'; +import './Edit-DWZSi_T0.js'; +import './Upload-BbxeBrrD.js'; + +function P(b,n){b.component(u=>{let{value:i$1=void 0,display_mode:j="solid",clear_color:F=[0,0,0,0],label:v$1="",show_label:a,root:f,i18n:d,zoom_speed:w=1,pan_speed:r=1,max_file_size:y=null,uploading:h=void 0,upload_promise:c=void 0,camera_position:D=[null,null,null],upload:x,stream_handler:z,onchange:p,onclear:_,ondrag:k$1,onload:l,onerror:s}=n,o=false;async function S(e){i$1=e,await tick(),p?.(i$1),l?.(i$1);}async function L(){i$1=null,await tick(),_?.(),p?.(null);}async function T(){}function W(e){s?.(e);}let m=true,M;function q(e){k(e,{show_label:a,Icon:i,label:v$1||"3D Model"}),e.push(" "),i$1==null?(e.push(""),ee(e,{upload:x,stream_handler:z,onload:S,root:f,max_file_size:y,filetype:[".stl",".obj",".gltf",".glb","model/obj",".splat",".ply"],onerror:W,aria_label:d("model3d.drop_to_upload"),get upload_promise(){return c},set upload_promise(t){c=t,m=false;},get dragging(){return o},set dragging(t){o=t,m=false;},get uploading(){return h},set uploading(t){h=t,m=false;},children:t=>{t.push(""),slot(t,n,"default",{}),t.push("");},$$slots:{default:true}})):(e.push(""),e.push('
    '),v(e,{undoable:true,onclear:L,i18n:d,onundo:T}),e.push(" "),e.push(""),e.push(""),e.push(""),e.push("
    ")),e.push("");}do m=true,M=u.copy(),q(M);while(!m);u.subsume(M),bind_props(n,{value:i$1,uploading:h,upload_promise:c});});}function ha(b,n){b.component(u=>{let i$1 = class i extends ${async get_data(){return r&&(await r,await tick()),await super.get_data()}};const{$$slots:j,$$events:F,...v}=n,a=new i$1(v);a.props.value;let f=false,d=false,w=false,r;const y$1=typeof window<"u";function h(l){a.props.value=l,a.dispatch("change",l),w=true;}function c(l){d=l;}function D(){a.props.value=null,a.dispatch("clear");}function x(l){a.props.value=l,a.dispatch("upload");}function z(l){a.shared.loading_status&&(a.shared.loading_status.status="error"),a.dispatch("error",l);}let p$1=true,_;function k$2(l){a.shared.interactive?(l.push(""),G(l,{visible:a.shared.visible,variant:a.props.value===null?"dashed":"solid",border_mode:d?"focus":"base",padding:false,elem_id:a.shared.elem_id,elem_classes:a.shared.elem_classes,container:a.shared.container,scale:a.shared.scale,min_width:a.shared.min_width,height:a.props.height,children:s=>{W(s,spread_props([{autoscroll:a.shared.autoscroll,i18n:a.i18n},a.shared.loading_status,{on_clear_status:()=>a.dispatch("clear_status",a.shared.loading_status)}])),s.push(" "),P(s,{label:a.shared.label,show_label:a.shared.show_label,root:a.shared.root,display_mode:a.props.display_mode,clear_color:a.props.clear_color,camera_position:a.props.camera_position,zoom_speed:a.props.zoom_speed,onchange:h,ondrag:c,onclear:D,onload:x,onerror:z,i18n:a.i18n,max_file_size:a.shared.max_file_size,upload:(...o)=>a.shared.client.upload(...o),stream_handler:(...o)=>a.shared.client.stream(...o),get upload_promise(){return r},set upload_promise(o){r=o,p$1=false;},get value(){return a.props.value},set value(o){a.props.value=o,p$1=false;},get uploading(){return f},set uploading(o){f=o,p$1=false;},children:o=>{k$1(o,{i18n:a.i18n,type:"file"});},$$slots:{default:true}}),s.push("");},$$slots:{default:true}})):(l.push(""),G(l,{visible:a.shared.visible,variant:a.props.value===null?"dashed":"solid",border_mode:d?"focus":"base",padding:false,elem_id:a.shared.elem_id,elem_classes:a.shared.elem_classes,container:a.shared.container,scale:a.shared.scale,min_width:a.shared.min_width,height:a.props.height,children:s=>{W(s,spread_props([{autoscroll:a.shared.autoscroll,i18n:a.i18n},a.shared.loading_status,{on_clear_status:()=>a.dispatch("clear_status",a.shared.loading_status)}])),s.push(" "),a.props.value&&y$1?(s.push(""),q(s,{value:a.props.value,i18n:a.i18n,display_mode:a.props.display_mode,clear_color:a.props.clear_color,label:a.shared.label,show_label:a.shared.show_label,camera_position:a.props.camera_position,zoom_speed:a.props.zoom_speed,has_change_history:w})):(s.push(""),a.shared.show_label&&a.props.buttons&&a.props.buttons.length>0?(s.push(""),y(s,{buttons:a.props.buttons,on_custom_button_click:o=>{a.dispatch("custom_button_click",{id:o});}})):s.push(""),s.push(" "),k(s,{show_label:a.shared.show_label,Icon:i,label:a.shared.label||"3D Model"}),s.push(" "),p(s,{unpadded_box:true,size:"large",children:o=>{i(o);},$$slots:{default:true}}),s.push("")),s.push("");},$$slots:{default:true}})),l.push("");}do p$1=true,_=u.copy(),k$2(_);while(!p$1);u.subsume(_);});} + +export { q as BaseModel3D, P as BaseModel3DUpload, ha as default }; +//# sourceMappingURL=Index35-DfvsCytT.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index36-Ba8yCBpO.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index36-Ba8yCBpO.js new file mode 100644 index 0000000000000000000000000000000000000000..bed1fec78b52b90f1021e053917d8d6e43bcae44 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index36-Ba8yCBpO.js @@ -0,0 +1,19 @@ +import './async-D55cHugf.js'; +import { c as spread_props, f as attr_class, a as attr, g as attr_style, i as stringify, s as slot, d as bind_props } from './index-u8mz_F03.js'; +import './2-BLdXJizP.js'; +import { $ } from './utils.svelte-B2py64Fz.js'; +import { W } from './index3-Df92vI-L.js'; +import { y } from './Index.svelte_svelte_type_style_lang-DXpx_9zF.js'; +import './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; +import './clone-Yk88IHKV.js'; +import './IconButton-BRnu7KaR.js'; +import './Clear-D7Yjckqz.js'; + +function B(h,i){h.component(n=>{let {open:_=true,width:d,position:a="left",elem_classes:e=[],elem_id:r="",onexpand:u=()=>{},oncollapse:b=()=>{}}=i,o=false,g=typeof d=="number"?`${d}px`:d,f=false;let w=e?.join(" ")||"";n.push(` "),bind_props(i,{open:_,position:a});});}function T(h,i){h.component(n=>{const{$$slots:_,$$events:d,...a}=i,e=new $(a);let r=true,u;function b(o){W(o,spread_props([{autoscroll:e.shared.autoscroll,i18n:e.i18n},e.shared.loading_status])),o.push(" "),e.shared.visible?(o.push(""),B(o,{width:e.props.width,onexpand:()=>e.dispatch("expand"),oncollapse:()=>e.dispatch("collapse"),elem_classes:e.shared.elem_classes,elem_id:e.shared.elem_id,get open(){return e.props.open},set open(s){e.props.open=s,r=false;},get position(){return e.props.position},set position(s){e.props.position=s,r=false;},children:s=>{y(s,{children:l=>{l.push(""),slot(l,i,"default",{}),l.push("");},$$slots:{default:true}});},$$slots:{default:true}})):o.push(""),o.push("");}do r=true,u=n.copy(),b(u);while(!r);n.subsume(u);});} + +export { T as default }; +//# sourceMappingURL=Index36-Ba8yCBpO.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index37-DS1CK4ZB.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index37-DS1CK4ZB.js new file mode 100644 index 0000000000000000000000000000000000000000..10f29a67299cbba488fcbe53af2813405a200803 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index37-DS1CK4ZB.js @@ -0,0 +1,21 @@ +import { f as fallback } from './async-D55cHugf.js'; +import { b as store_get, a as attr, f as attr_class, g as attr_style, i as stringify, s as slot, u as unsubscribe_stores, d as bind_props } from './index-u8mz_F03.js'; +import './2-BLdXJizP.js'; +import { $ } from './utils.svelte-B2py64Fz.js'; +import { t as tick, c as createEventDispatcher } from './index-server-CQz6EZl_.js'; +import { z as z$1 } from './Walkthrough.svelte_svelte_type_style_lang-DRIsDysA.js'; +import { y } from './Index.svelte_svelte_type_style_lang-DXpx_9zF.js'; +import { g as getContext } from './context-CBkBucIx.js'; +import './escaping-CBnpiEl5.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; +import './clone-Yk88IHKV.js'; +import './index3-Df92vI-L.js'; +import './IconButton-BRnu7KaR.js'; +import './Clear-D7Yjckqz.js'; + +function N(d,e){d.component(n=>{var r;let m,i=fallback(e.elem_id,""),l=fallback(e.elem_classes,()=>[],true),s=e.label,c=fallback(e.id,()=>({}),true),_=e.visible,f=e.interactive,u=e.order,o=e.scale,p=e.component_id;const h=createEventDispatcher(),{register_tab:v,unregister_tab:g,selected_tab:x,selected_tab_index:k}=getContext(z$1);let b;function y$1(a,B){return a=JSON.parse(a),v(a,B)}m=JSON.stringify({label:s,id:c,elem_id:i,visible:_,interactive:f,scale:o,component_id:p}),b=y$1(m,u),store_get(r??={},"$selected_tab_index",k)===b&&tick().then(()=>h("select",{value:s,index:b})),n.push(`=1})} role="tabpanel"${attr_style("",{display:store_get(r??={},"$selected_tab",x)===c&&_!==false?"flex":"none","flex-grow":o})}>`),y(n,{scale:o>=1?o:null,children:a=>{a.push(""),slot(a,e,"default",{}),a.push("");},$$slots:{default:true}}),n.push(""),r&&unsubscribe_stores(r),bind_props(e,{elem_id:i,elem_classes:l,label:s,id:c,visible:_,interactive:f,order:u,scale:o,component_id:p});});}function z(d,e){d.component(n=>{let{$$slots:r,$$events:m,...i}=e;const l=new $(i);N(n,{elem_id:l.shared.elem_id,elem_classes:l.shared.elem_classes,label:l.shared.label,visible:l.shared.visible,interactive:l.shared.interactive,id:l.props.id,order:l.props.order,scale:l.props.scale,component_id:l.props.component_id,children:s=>{s.push(""),slot(s,e,"default",{}),s.push("");},$$slots:{default:true}});});} + +export { N as BaseTabItem, z as default }; +//# sourceMappingURL=Index37-DS1CK4ZB.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index38-5cCE22Jp.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index38-5cCE22Jp.js new file mode 100644 index 0000000000000000000000000000000000000000..e63e18d7ba66aadd2af2945353965b7fcb860a39 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index38-5cCE22Jp.js @@ -0,0 +1,17 @@ +import './async-D55cHugf.js'; +import { a as attr, i as stringify } from './index-u8mz_F03.js'; +import './2-BLdXJizP.js'; +import { $ } from './utils.svelte-B2py64Fz.js'; +import { q } from './Button-C_X4rUwO.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; +import './clone-Yk88IHKV.js'; +import './Image-CuPo5pWT.js'; + +function U(n,p){n.component(a=>{let{elem_id:h="",elem_classes:m=[],visible:c=true,label:e,value:u,file_count:s,file_types:o=[],root:t,size:d="lg",icon:f=null,scale:v=null,min_width:b=void 0,variant:y="secondary",disabled:g=false,max_file_size:j=null,upload:I,onclick:z,onchange:W,onupload:q$1,onerror:A,children:_}=p,k,w=o==null?null:o.map(r=>r.startsWith(".")?r:r+"/*").join(", ");function B(){z?.(),k.click();}a.push(` `),q(a,{size:d,variant:y,elem_id:h,elem_classes:m,visible:c,onclick:B,scale:v,min_width:b,disabled:g,children:i=>{f?(i.push(""),i.push(``)):i.push(""),i.push(" "),_?(i.push(""),_(i),i.push("")):i.push(""),i.push("");}}),a.push("");});}function J(n,p){n.component(a=>{const{$$slots:h,$$events:m,...c}=p,e=new $(c);let u=e.props.value;async function s(t,d){e.props.value=t,e.dispatch(d);}const o=!e.shared.interactive;U(a,{elem_id:e.shared.elem_id,elem_classes:e.shared.elem_classes,visible:e.shared.visible,file_count:e.props.file_count,file_types:e.props.file_types,size:e.props.size,scale:e.shared.scale,icon:e.props.icon,min_width:e.shared.min_width,root:e.shared.root,value:u,disabled:o,variant:e.props.variant,label:e.shared.label,max_file_size:e.shared.max_file_size,onclick:()=>e.dispatch("click"),onchange:t=>s(t,"change"),onupload:t=>s(t,"upload"),onerror:t=>{e.dispatch("error",t);},upload:(...t)=>e.shared.client.upload(...t),children:t=>{t.push(`${escape_html(e.shared.label??"")}`);}});});} + +export { U as BaseUploadButton, J as default }; +//# sourceMappingURL=Index38-5cCE22Jp.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index39-CneVLns-.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index39-CneVLns-.js new file mode 100644 index 0000000000000000000000000000000000000000..342311668f3c9178e411fe6fa19314bd1bbbc4a4 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index39-CneVLns-.js @@ -0,0 +1,19 @@ +import { f as fallback } from './async-D55cHugf.js'; +import { c as spread_props, f as attr_class, e as ensure_array_like, i as stringify, d as bind_props } from './index-u8mz_F03.js'; +import './2-BLdXJizP.js'; +import { $ } from './utils.svelte-B2py64Fz.js'; +import { G } from './Block-DZmzQwnI.js'; +import { W } from './index3-Df92vI-L.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; +import './clone-Yk88IHKV.js'; +import './IconButton-BRnu7KaR.js'; +import './Clear-D7Yjckqz.js'; + +function v(j,i){j.component(s=>{let o=i.json,_=fallback(i.depth,1/0),c=fallback(i._cur,0),a=fallback(i._last,true),h=[],l=false,u=["",""],y=false;function f(p){return p===null?"null":typeof p}function m(p){return JSON.stringify(p)}function x(p){switch(f(p)){case "function":return "f () {...}";case "symbol":return p.toString();default:return m(p)}}if(h=f(o)==="object"?Object.keys(o):[],l=Array.isArray(o),u=l?["[","]"]:["{","}"],y=_"),s.push(`${escape_html(u[0])}${escape_html(u[1])}`),a?s.push(""):(s.push(""),s.push(',')),s.push("");else {if(s.push(""),y)s.push(""),s.push(`${escape_html(u[0])}...${escape_html(u[1])}`),!a&&y?(s.push(""),s.push(',')):s.push(""),s.push("");else {s.push(""),s.push(`${escape_html(u[0])}
      `);const p=ensure_array_like(h);for(let n=0,b=p.length;n"),l?s.push(""):(s.push(""),s.push(`${escape_html(m(e))}:`)),s.push(" "),f(o[e])==="object"?(s.push(""),v(s,{json:o[e],depth:_,_cur:c+1,_last:n===h.length-1}),s.push("")):(s.push(""),s.push(`${escape_html(x(o[e]))}`),n"),s.push(',')):s.push(""),s.push("")),s.push("");}s.push(`
    ${escape_html(u[1])}`),a?s.push(""):(s.push(""),s.push(',')),s.push("");}s.push("");}s.push(""),bind_props(i,{json:o,depth:_,_cur:c,_last:a});});}function L(j,i){j.component(s=>{const{$$slots:o,$$events:_,...c}=i,a=new $(c);G(s,{visible:a.shared.visible,elem_id:a.shared.elem_id,elem_classes:a.shared.elem_classes,container:true,scale:a.shared.scale,min_width:a.shared.min_width,children:l=>{a.shared.loading_status?(l.push(""),W(l,spread_props([{autoscroll:a.shared.autoscroll,i18n:a.i18n},a.shared.loading_status,{on_clear_status:()=>a.dispatch("clear_status",a.shared.loading_status)}]))):l.push(""),l.push(" "),v(l,{json:a.props.value}),l.push("");},$$slots:{default:true}});});} + +export { L as default }; +//# sourceMappingURL=Index39-CneVLns-.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index4-BvPFZOEY.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index4-BvPFZOEY.js new file mode 100644 index 0000000000000000000000000000000000000000..25adb2466850672f3cda3f2451bb8011ca52bd04 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index4-BvPFZOEY.js @@ -0,0 +1,601 @@ +import { f as fallback } from './async-D55cHugf.js'; +import { c as spread_props, d as bind_props, f as attr_class, s as slot, a as attr, g as attr_style, i as stringify } from './index-u8mz_F03.js'; +import { L as Le$1, b as bs$1, o as on$1 } from './2-BLdXJizP.js'; +import { c as createEventDispatcher } from './index-server-CQz6EZl_.js'; +import { $ as $$1 } from './utils.svelte-B2py64Fz.js'; +import Q$1 from './ImagePreview-Ca2hvNZZ.js'; +import { G } from './Block-DZmzQwnI.js'; +import { W as W$1 } from './index3-Df92vI-L.js'; +import { i } from './Image2-vcp9_ifi.js'; +import { s } from './tinycolor-DfhFic3A.js'; +import { e } from './Check-C7_ZsXgh.js'; +import { k } from './BlockLabel-bKYWnOzQ.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; +import './clone-Yk88IHKV.js'; +import './DownloadLink-nj1p0krE.js'; +import './IconButton-BRnu7KaR.js'; +import './Empty-DGRbZO0a.js'; +import './ShareButton-7VTs9dOO.js'; +import './Download-DcU5dONL.js'; +import './IconButtonWrapper-CjFRPb3y.js'; +import './FullscreenButton-D8PvgSmk.js'; +import './Maximize-CuHbK64j.js'; +import './Image-CuPo5pWT.js'; +import './Clear-D7Yjckqz.js'; + +function At(s,t){s.component(e=>{let i,r=t.Icon,n=fallback(t.label,""),o=fallback(t.show_label,false),a=fallback(t.pending,false),h=fallback(t.size,"small"),l=fallback(t.padded,true),c=fallback(t.highlight,false),u=fallback(t.disabled,false),f=fallback(t.hasPopup,false),d=fallback(t.color,"var(--block-label-text-color)"),_=fallback(t.transparent,false),g=fallback(t.background,"var(--background-fill-primary)"),p=fallback(t.offset,0),m=fallback(t.label_position,"left"),y=fallback(t.roundedness,"quite"),x=fallback(t.onclick,void 0);i=c?"var(--color-accent)":d.toString(),e.push(``),o&&m==="left"?(e.push(""),e.push(`${escape_html(n)}`)):e.push(""),e.push(` `),r(e,{}),e.push(" "),o&&m==="right"?(e.push(""),e.push(`${escape_html(n)}`)):e.push(""),e.push(""),bind_props(t,{Icon:r,label:n,show_label:o,pending:a,size:h,padded:l,highlight:c,disabled:u,hasPopup:f,color:d,transparent:_,background:g,offset:p,label_position:m,roundedness:y,onclick:x});});}var B=(s=>(s.Application="application",s.WebGLPipes="webgl-pipes",s.WebGLPipesAdaptor="webgl-pipes-adaptor",s.WebGLSystem="webgl-system",s.WebGPUPipes="webgpu-pipes",s.WebGPUPipesAdaptor="webgpu-pipes-adaptor",s.WebGPUSystem="webgpu-system",s.CanvasSystem="canvas-system",s.CanvasPipesAdaptor="canvas-pipes-adaptor",s.CanvasPipes="canvas-pipes",s.Asset="asset",s.LoadParser="load-parser",s.ResolveParser="resolve-parser",s.CacheParser="cache-parser",s.DetectionParser="detection-parser",s.MaskEffect="mask-effect",s.BlendMode="blend-mode",s.TextureSource="texture-source",s.Environment="environment",s.ShapeBuilder="shape-builder",s.Batcher="batcher",s))(B||{});const gs=s=>{if(typeof s=="function"||typeof s=="object"&&s.extension){if(!s.extension)throw new Error("Extension class must have an extension object");s={...typeof s.extension!="object"?{type:s.extension}:s.extension,ref:s};}if(typeof s=="object")s={...s};else throw new Error("Invalid extension type");return typeof s.type=="string"&&(s.type=[s.type]),s},Je=(s,t)=>gs(s).priority??t,ft={_addHandlers:{},_removeHandlers:{},_queue:{},remove(...s){return s.map(gs).forEach(t=>{t.type.forEach(e=>this._removeHandlers[e]?.(t));}),this},add(...s){return s.map(gs).forEach(t=>{t.type.forEach(e=>{const i=this._addHandlers,r=this._queue;i[e]?i[e]?.(t):(r[e]=r[e]||[],r[e]?.push(t));});}),this},handle(s,t,e){const i=this._addHandlers,r=this._removeHandlers;if(i[s]||r[s])throw new Error(`Extension type ${s} already has a handler`);i[s]=t,r[s]=e;const n=this._queue;return n[s]&&(n[s]?.forEach(o=>t(o)),delete n[s]),this},handleByMap(s,t){return this.handle(s,e=>{e.name&&(t[e.name]=e.ref);},e=>{e.name&&delete t[e.name];})},handleByNamedList(s,t,e=-1){return this.handle(s,i=>{t.findIndex(n=>n.name===i.name)>=0||(t.push({name:i.name,value:i.ref}),t.sort((n,o)=>Je(o.value,e)-Je(n.value,e)));},i=>{const r=t.findIndex(n=>n.name===i.name);r!==-1&&t.splice(r,1);})},handleByList(s,t,e=-1){return this.handle(s,i=>{t.includes(i.ref)||(t.push(i.ref),t.sort((r,n)=>Je(n,e)-Je(r,e)));},i=>{const r=t.indexOf(i.ref);r!==-1&&t.splice(r,1);})},mixin(s,...t){for(const e of t)Object.defineProperties(s.prototype,Object.getOwnPropertyDescriptors(e));}},Na={extension:{type:B.Environment,name:"browser",priority:-1},test:()=>true,load:async()=>{await import('./browserAll-D1iqaGoY.js');}},Wa={extension:{type:B.Environment,name:"webworker",priority:0},test:()=>typeof self<"u"&&self.WorkerGlobalScope!==void 0,load:async()=>{await import('./webworkerAll-B81XBg67.js');}};class pt{constructor(t,e,i){this._x=e||0,this._y=i||0,this._observer=t;}clone(t){return new pt(t??this._observer,this._x,this._y)}set(t=0,e=t){return (this._x!==t||this._y!==e)&&(this._x=t,this._y=e,this._observer._onUpdate(this)),this}copyFrom(t){return (this._x!==t.x||this._y!==t.y)&&(this._x=t.x,this._y=t.y,this._observer._onUpdate(this)),this}copyTo(t){return t.set(this._x,this._y),t}equals(t){return t.x===this._x&&t.y===this._y}toString(){return `[pixi.js/math:ObservablePoint x=${this._x} y=${this._y} scope=${this._observer}]`}get x(){return this._x}set x(t){this._x!==t&&(this._x=t,this._observer._onUpdate(this));}get y(){return this._y}set y(t){this._y!==t&&(this._y=t,this._observer._onUpdate(this));}}var Oi={exports:{}},hr;function Ha(){return hr||(hr=1,(function(s){var t=Object.prototype.hasOwnProperty,e="~";function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(e=false));function r(h,l,c){this.fn=h,this.context=l,this.once=c||false;}function n(h,l,c,u,f){if(typeof c!="function")throw new TypeError("The listener must be a function");var d=new r(c,u||h,f),_=e?e+l:l;return h._events[_]?h._events[_].fn?h._events[_]=[h._events[_],d]:h._events[_].push(d):(h._events[_]=d,h._eventsCount++),h}function o(h,l){--h._eventsCount===0?h._events=new i:delete h._events[l];}function a(){this._events=new i,this._eventsCount=0;}a.prototype.eventNames=function(){var l=[],c,u;if(this._eventsCount===0)return l;for(u in c=this._events)t.call(c,u)&&l.push(e?u.slice(1):u);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(c)):l},a.prototype.listeners=function(l){var c=e?e+l:l,u=this._events[c];if(!u)return [];if(u.fn)return [u.fn];for(var f=0,d=u.length,_=new Array(d);fie[s],uY:s=>se[s],vX:s=>re[s],vY:s=>ne[s],inv:s=>s&8?s&15:-s&7,add:(s,t)=>ms[s][t],sub:(s,t)=>ms[s][K.inv(t)],rotate180:s=>s^4,isVertical:s=>(s&3)===2,byDirection:(s,t)=>Math.abs(s)*2<=Math.abs(t)?t>=0?K.S:K.N:Math.abs(t)*2<=Math.abs(s)?s>0?K.E:K.W:t>0?s>0?K.SE:K.SW:s>0?K.NE:K.NW,matrixAppendRotationInv:(s,t,e=0,i=0)=>{const r=Pn[K.inv(t)];r.tx=e,r.ty=i,s.append(r);},transformRectCoords:(s,t,e,i)=>{const{x:r,y:n,width:o,height:a}=s,{x:h,y:l,width:c,height:u}=t;return e===K.E?(i.set(r+h,n+l,o,a),i):e===K.S?i.set(c-n-a+h,r+l,a,o):e===K.W?i.set(c-r-o+h,u-n-a+l,o,a):e===K.N?i.set(n+h,u-r-o+l,a,o):i.set(r+h,n+l,o,a)}},ti=[new N,new N,new N,new N];class Z{constructor(t=0,e=0,i=0,r=0){this.type="rectangle",this.x=Number(t),this.y=Number(e),this.width=Number(i),this.height=Number(r);}get left(){return this.x}get right(){return this.x+this.width}get top(){return this.y}get bottom(){return this.y+this.height}isEmpty(){return this.left===this.right||this.top===this.bottom}static get EMPTY(){return new Z(0,0,0,0)}clone(){return new Z(this.x,this.y,this.width,this.height)}copyFromBounds(t){return this.x=t.minX,this.y=t.minY,this.width=t.maxX-t.minX,this.height=t.maxY-t.minY,this}copyFrom(t){return this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height,this}copyTo(t){return t.copyFrom(this),t}contains(t,e){return this.width<=0||this.height<=0?false:t>=this.x&&t=this.y&&e=u&&t<=f&&e>=d&&e<=_&&!(t>g&&tm&&et.right?t.right:this.right)<=E)return false;const M=this.yt.bottom?t.bottom:this.bottom)>M}const i=this.left,r=this.right,n=this.top,o=this.bottom;if(r<=i||o<=n)return false;const a=ti[0].set(t.left,t.top),h=ti[1].set(t.left,t.bottom),l=ti[2].set(t.right,t.top),c=ti[3].set(t.right,t.bottom);if(l.x<=a.x||h.y<=a.y)return false;const u=Math.sign(e.a*e.d-e.b*e.c);if(u===0||(e.apply(a,a),e.apply(h,h),e.apply(l,l),e.apply(c,c),Math.max(a.x,h.x,l.x,c.x)<=i||Math.min(a.x,h.x,l.x,c.x)>=r||Math.max(a.y,h.y,l.y,c.y)<=n||Math.min(a.y,h.y,l.y,c.y)>=o))return false;const f=u*(h.y-a.y),d=u*(a.x-h.x),_=f*i+d*n,g=f*r+d*n,p=f*i+d*o,m=f*r+d*o;if(Math.max(_,g,p,m)<=f*a.x+d*a.y||Math.min(_,g,p,m)>=f*c.x+d*c.y)return false;const y=u*(a.y-l.y),x=u*(l.x-a.x),b=y*i+x*n,A=y*r+x*n,w=y*i+x*o,k=y*r+x*o;return !(Math.max(b,A,w,k)<=y*a.x+x*a.y||Math.min(b,A,w,k)>=y*c.x+x*c.y)}pad(t=0,e=t){return this.x-=t,this.y-=e,this.width+=t*2,this.height+=e*2,this}fit(t){const e=Math.max(this.x,t.x),i=Math.min(this.x+this.width,t.x+t.width),r=Math.max(this.y,t.y),n=Math.min(this.y+this.height,t.y+t.height);return this.x=e,this.width=Math.max(i-e,0),this.y=r,this.height=Math.max(n-r,0),this}ceil(t=1,e=.001){const i=Math.ceil((this.x+this.width-e)*t)/t,r=Math.ceil((this.y+this.height-e)*t)/t;return this.x=Math.floor((this.x+e)*t)/t,this.y=Math.floor((this.y+e)*t)/t,this.width=i-this.x,this.height=r-this.y,this}scale(t,e=t){return this.x*=t,this.y*=e,this.width*=t,this.height*=e,this}enlarge(t){const e=Math.min(this.x,t.x),i=Math.max(this.x+this.width,t.x+t.width),r=Math.min(this.y,t.y),n=Math.max(this.y+this.height,t.y+t.height);return this.x=e,this.width=i-e,this.y=r,this.height=n-r,this}getBounds(t){return t||(t=new Z),t.copyFrom(this),t}containsRect(t){if(this.width<=0||this.height<=0)return false;const e=t.x,i=t.y,r=t.x+t.width,n=t.y+t.height;return e>=this.x&&e=this.y&&i=this.x&&r=this.y&&n{if(ge.quiet||lr.has(t))return;let i=new Error().stack;const r=`${t} +Deprecated since v${s}`,n=typeof console.groupCollapsed=="function"&&!ge.noColor;typeof i>"u"?console.warn("PixiJS Deprecation Warning: ",r):(i=i.split(` +`).splice(e).join(` +`),n?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",r),console.warn(i),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ",r),console.warn(i))),lr.add(t);};Object.defineProperties(D,{quiet:{get:()=>ge.quiet,set:s=>{ge.quiet=s;},enumerable:true,configurable:false},noColor:{get:()=>ge.noColor,set:s=>{ge.noColor=s;},enumerable:true,configurable:false}});const In=()=>{};function bi(s){return s+=s===0?1:0,--s,s|=s>>>1,s|=s>>>2,s|=s>>>4,s|=s>>>8,s|=s>>>16,s+1}function cr(s){return !(s&s-1)&&!!s}function zn(s){const t={};for(const e in s)s[e]!==void 0&&(t[e]=s[e]);return t}const ur=Object.create(null);function Ja(s){const t=ur[s];return t===void 0&&(ur[s]=st("resource")),t}const En=class Rn extends Ot{constructor(t={}){super(),this._resourceType="textureSampler",this._touched=0,this._maxAnisotropy=1,this.destroyed=false,t={...Rn.defaultOptions,...t},this.addressMode=t.addressMode,this.addressModeU=t.addressModeU??this.addressModeU,this.addressModeV=t.addressModeV??this.addressModeV,this.addressModeW=t.addressModeW??this.addressModeW,this.scaleMode=t.scaleMode,this.magFilter=t.magFilter??this.magFilter,this.minFilter=t.minFilter??this.minFilter,this.mipmapFilter=t.mipmapFilter??this.mipmapFilter,this.lodMinClamp=t.lodMinClamp,this.lodMaxClamp=t.lodMaxClamp,this.compare=t.compare,this.maxAnisotropy=t.maxAnisotropy??1;}set addressMode(t){this.addressModeU=t,this.addressModeV=t,this.addressModeW=t;}get addressMode(){return this.addressModeU}set wrapMode(t){D(j,"TextureStyle.wrapMode is now TextureStyle.addressMode"),this.addressMode=t;}get wrapMode(){return this.addressMode}set scaleMode(t){this.magFilter=t,this.minFilter=t,this.mipmapFilter=t;}get scaleMode(){return this.magFilter}set maxAnisotropy(t){this._maxAnisotropy=Math.min(t,16),this._maxAnisotropy>1&&(this.scaleMode="linear");}get maxAnisotropy(){return this._maxAnisotropy}get _resourceId(){return this._sharedResourceId||this._generateResourceId()}update(){this._sharedResourceId=null,this.emit("change",this);}_generateResourceId(){const t=`${this.addressModeU}-${this.addressModeV}-${this.addressModeW}-${this.magFilter}-${this.minFilter}-${this.mipmapFilter}-${this.lodMinClamp}-${this.lodMaxClamp}-${this.compare}-${this._maxAnisotropy}`;return this._sharedResourceId=Ja(t),this._resourceId}destroy(){this.destroyed=true,this.emit("destroy",this),this.emit("change",this),this.removeAllListeners();}};En.defaultOptions={addressMode:"clamp-to-edge",scaleMode:"linear"};let wi=En;const Fn=class Bn extends Ot{constructor(t={}){super(),this.options=t,this._gpuData=Object.create(null),this._gcLastUsed=-1,this.uid=st("textureSource"),this._resourceType="textureSource",this._resourceId=st("resource"),this.uploadMethodId="unknown",this._resolution=1,this.pixelWidth=1,this.pixelHeight=1,this.width=1,this.height=1,this.sampleCount=1,this.mipLevelCount=1,this.autoGenerateMipmaps=false,this.format="rgba8unorm",this.dimension="2d",this.antialias=false,this._touched=0,this._batchTick=-1,this._textureBindLocation=-1,t={...Bn.defaultOptions,...t},this.label=t.label??"",this.resource=t.resource,this.autoGarbageCollect=t.autoGarbageCollect,this._resolution=t.resolution,t.width?this.pixelWidth=t.width*this._resolution:this.pixelWidth=this.resource?this.resourceWidth??1:1,t.height?this.pixelHeight=t.height*this._resolution:this.pixelHeight=this.resource?this.resourceHeight??1:1,this.width=this.pixelWidth/this._resolution,this.height=this.pixelHeight/this._resolution,this.format=t.format,this.dimension=t.dimensions,this.mipLevelCount=t.mipLevelCount,this.autoGenerateMipmaps=t.autoGenerateMipmaps,this.sampleCount=t.sampleCount,this.antialias=t.antialias,this.alphaMode=t.alphaMode,this.style=new wi(zn(t)),this.destroyed=false,this._refreshPOT();}get source(){return this}get style(){return this._style}set style(t){this.style!==t&&(this._style?.off("change",this._onStyleChange,this),this._style=t,this._style?.on("change",this._onStyleChange,this),this._onStyleChange());}set maxAnisotropy(t){this._style.maxAnisotropy=t;}get maxAnisotropy(){return this._style.maxAnisotropy}get addressMode(){return this._style.addressMode}set addressMode(t){this._style.addressMode=t;}get repeatMode(){return this._style.addressMode}set repeatMode(t){this._style.addressMode=t;}get magFilter(){return this._style.magFilter}set magFilter(t){this._style.magFilter=t;}get minFilter(){return this._style.minFilter}set minFilter(t){this._style.minFilter=t;}get mipmapFilter(){return this._style.mipmapFilter}set mipmapFilter(t){this._style.mipmapFilter=t;}get lodMinClamp(){return this._style.lodMinClamp}set lodMinClamp(t){this._style.lodMinClamp=t;}get lodMaxClamp(){return this._style.lodMaxClamp}set lodMaxClamp(t){this._style.lodMaxClamp=t;}_onStyleChange(){this.emit("styleChange",this);}update(){if(this.resource){const t=this._resolution;if(this.resize(this.resourceWidth/t,this.resourceHeight/t))return}this.emit("update",this);}destroy(){this.destroyed=true,this.unload(),this.emit("destroy",this),this._style&&(this._style.destroy(),this._style=null),this.uploadMethodId=null,this.resource=null,this.removeAllListeners();}unload(){this._resourceId=st("resource"),this.emit("change",this),this.emit("unload",this);for(const t in this._gpuData)this._gpuData[t]?.destroy?.();this._gpuData=Object.create(null);}get resourceWidth(){const{resource:t}=this;return t.naturalWidth||t.videoWidth||t.displayWidth||t.width}get resourceHeight(){const{resource:t}=this;return t.naturalHeight||t.videoHeight||t.displayHeight||t.height}get resolution(){return this._resolution}set resolution(t){this._resolution!==t&&(this._resolution=t,this.width=this.pixelWidth/t,this.height=this.pixelHeight/t);}resize(t,e,i){i||(i=this._resolution),t||(t=this.width),e||(e=this.height);const r=Math.round(t*i),n=Math.round(e*i);return this.width=r/i,this.height=n/i,this._resolution=i,this.pixelWidth===r&&this.pixelHeight===n?false:(this._refreshPOT(),this.pixelWidth=r,this.pixelHeight=n,this.emit("resize",this),this._resourceId=st("resource"),this.emit("change",this),true)}updateMipmaps(){this.autoGenerateMipmaps&&this.mipLevelCount>1&&this.emit("updateMipmaps",this);}set wrapMode(t){this._style.wrapMode=t;}get wrapMode(){return this._style.wrapMode}set scaleMode(t){this._style.scaleMode=t;}get scaleMode(){return this._style.scaleMode}_refreshPOT(){this.isPowerOfTwo=cr(this.pixelWidth)&&cr(this.pixelHeight);}static test(t){throw new Error("Unimplemented")}};Fn.defaultOptions={resolution:1,format:"bgra8unorm",alphaMode:"premultiply-alpha-on-upload",dimensions:"2d",mipLevelCount:1,autoGenerateMipmaps:false,sampleCount:1,antialias:false,autoGarbageCollect:false};let It=Fn;class Xs extends It{constructor(t){const e=t.resource||new Float32Array(t.width*t.height*4);let i=t.format;i||(e instanceof Float32Array?i="rgba32float":e instanceof Int32Array||e instanceof Uint32Array?i="rgba32uint":e instanceof Int16Array||e instanceof Uint16Array?i="rgba16uint":(i="bgra8unorm")),super({...t,resource:e,format:i}),this.uploadMethodId="buffer";}static test(t){return t instanceof Int8Array||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array}}Xs.extension=B.TextureSource;const dr=new H;class $a{constructor(t,e){this.mapCoord=new H,this.uClampFrame=new Float32Array(4),this.uClampOffset=new Float32Array(2),this._textureID=-1,this._updateID=0,this.clampOffset=0,typeof e>"u"?this.clampMargin=t.width<10?0:.5:this.clampMargin=e,this.isSimple=false,this.texture=t;}get texture(){return this._texture}set texture(t){this.texture!==t&&(this._texture?.removeListener("update",this.update,this),this._texture=t,this._texture.addListener("update",this.update,this),this.update());}multiplyUvs(t,e){e===void 0&&(e=t);const i=this.mapCoord;for(let r=0;rthis.maxX||this.minY>this.maxY}get rectangle(){this._rectangle||(this._rectangle=new Z);const t=this._rectangle;return this.minX>this.maxX||this.minY>this.maxY?(t.x=0,t.y=0,t.width=0,t.height=0):t.copyFromBounds(this),t}clear(){return this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.matrix=fr,this}set(t,e,i,r){this.minX=t,this.minY=e,this.maxX=i,this.maxY=r;}addFrame(t,e,i,r,n){n||(n=this.matrix);const o=n.a,a=n.b,h=n.c,l=n.d,c=n.tx,u=n.ty;let f=this.minX,d=this.minY,_=this.maxX,g=this.maxY,p=o*t+h*e+c,m=a*t+l*e+u;p_&&(_=p),m>g&&(g=m),p=o*i+h*e+c,m=a*i+l*e+u,p_&&(_=p),m>g&&(g=m),p=o*t+h*r+c,m=a*t+l*r+u,p_&&(_=p),m>g&&(g=m),p=o*i+h*r+c,m=a*i+l*r+u,p_&&(_=p),m>g&&(g=m),this.minX=f,this.minY=d,this.maxX=_,this.maxY=g;}addRect(t,e){this.addFrame(t.x,t.y,t.x+t.width,t.y+t.height,e);}addBounds(t,e){this.addFrame(t.minX,t.minY,t.maxX,t.maxY,e);}addBoundsMask(t){this.minX=this.minX>t.minX?this.minX:t.minX,this.minY=this.minY>t.minY?this.minY:t.minY,this.maxX=this.maxXthis.maxX?f:this.maxX,this.maxY=d>this.maxY?d:this.maxY,f=o*e+h*n+c,d=a*e+l*n+u,this.minX=fthis.maxX?f:this.maxX,this.maxY=d>this.maxY?d:this.maxY,f=o*r+h*n+c,d=a*r+l*n+u,this.minX=fthis.maxX?f:this.maxX,this.maxY=d>this.maxY?d:this.maxY;}fit(t){return this.minXt.right&&(this.maxX=t.right),this.minYt.bottom&&(this.maxY=t.bottom),this}fitBounds(t,e,i,r){return this.minXe&&(this.maxX=e),this.minYr&&(this.maxY=r),this}pad(t,e=t){return this.minX-=t,this.maxX+=t,this.minY-=e,this.maxY+=e,this}ceil(){return this.minX=Math.floor(this.minX),this.minY=Math.floor(this.minY),this.maxX=Math.ceil(this.maxX),this.maxY=Math.ceil(this.maxY),this}clone(){return new Lt(this.minX,this.minY,this.maxX,this.maxY)}scale(t,e=t){return this.minX*=t,this.minY*=e,this.maxX*=t,this.maxY*=e,this}get x(){return this.minX}set x(t){const e=this.maxX-this.minX;this.minX=t,this.maxX=t+e;}get y(){return this.minY}set y(t){const e=this.maxY-this.minY;this.minY=t,this.maxY=t+e;}get width(){return this.maxX-this.minX}set width(t){this.maxX=this.minX+t;}get height(){return this.maxY-this.minY}set height(t){this.maxY=this.minY+t;}get left(){return this.minX}get right(){return this.maxX}get top(){return this.minY}get bottom(){return this.maxY}get isPositive(){return this.maxX-this.minX>0&&this.maxY-this.minY>0}get isValid(){return this.minX+this.minY!==1/0}addVertexData(t,e,i,r){let n=this.minX,o=this.minY,a=this.maxX,h=this.maxY;r||(r=this.matrix);const l=r.a,c=r.b,u=r.c,f=r.d,d=r.tx,_=r.ty;for(let g=e;ga?y:a,h=x>h?x:h;}this.minX=n,this.minY=o,this.maxX=a,this.maxY=h;}containsPoint(t,e){return this.minX<=t&&this.minY<=e&&this.maxX>=t&&this.maxY>=e}toString(){return `[pixi.js:Bounds minX=${this.minX} minY=${this.minY} maxX=${this.maxX} maxY=${this.maxY} width=${this.width} height=${this.height}]`}copyFrom(t){return this.minX=t.minX,this.minY=t.minY,this.maxX=t.maxX,this.maxY=t.maxY,this}}var eh={grad:.9,turn:360,rad:360/(2*Math.PI)},Ht=function(s){return typeof s=="string"?s.length>0:typeof s=="number"},lt=function(s,t,e){return t===void 0&&(t=0),e===void 0&&(e=Math.pow(10,t)),Math.round(e*s)/e+0},Tt=function(s,t,e){return t===void 0&&(t=0),e===void 0&&(e=1),s>e?e:s>t?s:t},Ln=function(s){return (s=isFinite(s)?s%360:0)>0?s:s+360},_r=function(s){return {r:Tt(s.r,0,255),g:Tt(s.g,0,255),b:Tt(s.b,0,255),a:Tt(s.a)}},Ui=function(s){return {r:lt(s.r),g:lt(s.g),b:lt(s.b),a:lt(s.a,3)}},ih=/^#([0-9a-f]{3,8})$/i,ei=function(s){var t=s.toString(16);return t.length<2?"0"+t:t},On=function(s){var t=s.r,e=s.g,i=s.b,r=s.a,n=Math.max(t,e,i),o=n-Math.min(t,e,i),a=o?n===t?(e-i)/o:n===e?2+(i-t)/o:4+(t-e)/o:0;return {h:60*(a<0?a+6:a),s:n?o/n*100:0,v:n/255*100,a:r}},Gn=function(s){var t=s.h,e=s.s,i=s.v,r=s.a;t=t/360*6,e/=100,i/=100;var n=Math.floor(t),o=i*(1-e),a=i*(1-(t-n)*e),h=i*(1-(1-t+n)*e),l=n%6;return {r:255*[i,a,o,o,h,i][l],g:255*[h,i,i,a,o,o][l],b:255*[o,o,h,i,i,a][l],a:r}},pr=function(s){return {h:Ln(s.h),s:Tt(s.s,0,100),l:Tt(s.l,0,100),a:Tt(s.a)}},gr=function(s){return {h:lt(s.h),s:lt(s.s),l:lt(s.l),a:lt(s.a,3)}},mr=function(s){return Gn((e=(t=s).s,{h:t.h,s:(e*=((i=t.l)<50?i:100-i)/100)>0?2*e/(i+e)*100:0,v:i+e,a:t.a}));var t,e,i;},Ne=function(s){return {h:(t=On(s)).h,s:(r=(200-(e=t.s))*(i=t.v)/100)>0&&r<200?e*i/100/(r<=100?r:200-r)*100:0,l:r/2,a:t.a};var t,e,i,r;},sh=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,rh=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,nh=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,oh=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ys={string:[[function(s){var t=ih.exec(s);return t?(s=t[1]).length<=4?{r:parseInt(s[0]+s[0],16),g:parseInt(s[1]+s[1],16),b:parseInt(s[2]+s[2],16),a:s.length===4?lt(parseInt(s[3]+s[3],16)/255,2):1}:s.length===6||s.length===8?{r:parseInt(s.substr(0,2),16),g:parseInt(s.substr(2,2),16),b:parseInt(s.substr(4,2),16),a:s.length===8?lt(parseInt(s.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(s){var t=nh.exec(s)||oh.exec(s);return t?t[2]!==t[4]||t[4]!==t[6]?null:_r({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(s){var t=sh.exec(s)||rh.exec(s);if(!t)return null;var e,i,r=pr({h:(e=t[1],i=t[2],i===void 0&&(i="deg"),Number(e)*(eh[i]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return mr(r)},"hsl"]],object:[[function(s){var t=s.r,e=s.g,i=s.b,r=s.a,n=r===void 0?1:r;return Ht(t)&&Ht(e)&&Ht(i)?_r({r:Number(t),g:Number(e),b:Number(i),a:Number(n)}):null},"rgb"],[function(s){var t=s.h,e=s.s,i=s.l,r=s.a,n=r===void 0?1:r;if(!Ht(t)||!Ht(e)||!Ht(i))return null;var o=pr({h:Number(t),s:Number(e),l:Number(i),a:Number(n)});return mr(o)},"hsl"],[function(s){var t=s.h,e=s.s,i=s.v,r=s.a,n=r===void 0?1:r;if(!Ht(t)||!Ht(e)||!Ht(i))return null;var o=(function(a){return {h:Ln(a.h),s:Tt(a.s,0,100),v:Tt(a.v,0,100),a:Tt(a.a)}})({h:Number(t),s:Number(e),v:Number(i),a:Number(n)});return Gn(o)},"hsv"]]},yr=function(s,t){for(var e=0;e=.5},s.prototype.toHex=function(){return t=Ui(this.rgba),e=t.r,i=t.g,r=t.b,o=(n=t.a)<1?ei(lt(255*n)):"","#"+ei(e)+ei(i)+ei(r)+o;var t,e,i,r,n,o;},s.prototype.toRgb=function(){return Ui(this.rgba)},s.prototype.toRgbString=function(){return t=Ui(this.rgba),e=t.r,i=t.g,r=t.b,(n=t.a)<1?"rgba("+e+", "+i+", "+r+", "+n+")":"rgb("+e+", "+i+", "+r+")";var t,e,i,r,n;},s.prototype.toHsl=function(){return gr(Ne(this.rgba))},s.prototype.toHslString=function(){return t=gr(Ne(this.rgba)),e=t.h,i=t.s,r=t.l,(n=t.a)<1?"hsla("+e+", "+i+"%, "+r+"%, "+n+")":"hsl("+e+", "+i+"%, "+r+"%)";var t,e,i,r,n;},s.prototype.toHsv=function(){return t=On(this.rgba),{h:lt(t.h),s:lt(t.s),v:lt(t.v),a:lt(t.a,3)};var t;},s.prototype.invert=function(){return Dt({r:255-(t=this.rgba).r,g:255-t.g,b:255-t.b,a:t.a});var t;},s.prototype.saturate=function(t){return t===void 0&&(t=.1),Dt(Ni(this.rgba,t))},s.prototype.desaturate=function(t){return t===void 0&&(t=.1),Dt(Ni(this.rgba,-t))},s.prototype.grayscale=function(){return Dt(Ni(this.rgba,-1))},s.prototype.lighten=function(t){return t===void 0&&(t=.1),Dt(xr(this.rgba,t))},s.prototype.darken=function(t){return t===void 0&&(t=.1),Dt(xr(this.rgba,-t))},s.prototype.rotate=function(t){return t===void 0&&(t=15),this.hue(this.hue()+t)},s.prototype.alpha=function(t){return typeof t=="number"?Dt({r:(e=this.rgba).r,g:e.g,b:e.b,a:t}):lt(this.rgba.a,3);var e;},s.prototype.hue=function(t){var e=Ne(this.rgba);return typeof t=="number"?Dt({h:t,s:e.s,l:e.l,a:e.a}):lt(e.h)},s.prototype.isEqual=function(t){return this.toHex()===Dt(t).toHex()},s})(),Dt=function(s){return s instanceof xs?s:new xs(s)},br=[],hh=function(s){s.forEach(function(t){br.indexOf(t)<0&&(t(xs,ys),br.push(t));});};function lh(s,t){var e={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},i={};for(var r in e)i[e[r]]=r;var n={};s.prototype.toName=function(o){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return "transparent";var a,h,l=i[this.toHex()];if(l)return l;if(o?.closest){var c=this.toRgb(),u=1/0,f="black";if(!n.length)for(var d in e)n[d]=new s(e[d]).toRgb();for(var _ in e){var g=(a=c,h=n[_],Math.pow(a.r-h.r,2)+Math.pow(a.g-h.g,2)+Math.pow(a.b-h.b,2));gn===e[o]);if(t!==null&&e!==null){const n=Object.keys(t),o=Object.keys(e);return n.length!==o.length?false:n.every(a=>t[a]===e[a])}return t===e}toRgba(){const[t,e,i,r]=this._components;return {r:t,g:e,b:i,a:r}}toRgb(){const[t,e,i]=this._components;return {r:t,g:e,b:i}}toRgbaString(){const[t,e,i]=this.toUint8RgbArray();return `rgba(${t},${e},${i},${this.alpha})`}toUint8RgbArray(t){const[e,i,r]=this._components;return this._arrayRgb||(this._arrayRgb=[]),t||(t=this._arrayRgb),t[0]=Math.round(e*255),t[1]=Math.round(i*255),t[2]=Math.round(r*255),t}toArray(t){this._arrayRgba||(this._arrayRgba=[]),t||(t=this._arrayRgba);const[e,i,r,n]=this._components;return t[0]=e,t[1]=i,t[2]=r,t[3]=n,t}toRgbArray(t){this._arrayRgb||(this._arrayRgb=[]),t||(t=this._arrayRgb);const[e,i,r]=this._components;return t[0]=e,t[1]=i,t[2]=r,t}toNumber(){return this._int}toBgrNumber(){const[t,e,i]=this.toUint8RgbArray();return (i<<16)+(e<<8)+t}toLittleEndianNumber(){const t=this._int;return (t>>16)+(t&65280)+((t&255)<<16)}multiply(t){const[e,i,r,n]=Oe._temp.setValue(t)._components;return this._components[0]*=e,this._components[1]*=i,this._components[2]*=r,this._components[3]*=n,this._refreshInt(),this._value=null,this}premultiply(t,e=true){return e&&(this._components[0]*=t,this._components[1]*=t,this._components[2]*=t),this._components[3]=t,this._refreshInt(),this._value=null,this}toPremultiplied(t,e=true){if(t===1)return (255<<24)+this._int;if(t===0)return e?0:this._int;let i=this._int>>16&255,r=this._int>>8&255,n=this._int&255;return e&&(i=i*t+.5|0,r=r*t+.5|0,n=n*t+.5|0),(t*255<<24)+(i<<16)+(r<<8)+n}toHex(){const t=this._int.toString(16);return `#${"000000".substring(0,6-t.length)+t}`}toHexa(){const e=Math.round(this._components[3]*255).toString(16);return this.toHex()+"00".substring(0,2-e.length)+e}setAlpha(t){return this._components[3]=this._clamp(t),this}_normalize(t){let e,i,r,n;if((typeof t=="number"||t instanceof Number)&&t>=0&&t<=16777215){const o=t;e=(o>>16&255)/255,i=(o>>8&255)/255,r=(o&255)/255,n=1;}else if((Array.isArray(t)||t instanceof Float32Array)&&t.length>=3&&t.length<=4)t=this._clamp(t),[e,i,r,n=1]=t;else if((t instanceof Uint8Array||t instanceof Uint8ClampedArray)&&t.length>=3&&t.length<=4)t=this._clamp(t,0,255),[e,i,r,n=255]=t,e/=255,i/=255,r/=255,n/=255;else if(typeof t=="string"||typeof t=="object"){if(typeof t=="string"){const a=Oe.HEX_PATTERN.exec(t);a&&(t=`#${a[2]}`);}const o=Dt(t);o.isValid()&&({r:e,g:i,b:r,a:n}=o.rgba,e/=255,i/=255,r/=255);}if(e!==void 0)this._components[0]=e,this._components[1]=i,this._components[2]=r,this._components[3]=n,this._refreshInt();else throw new Error(`Unable to convert color ${t}`)}_refreshInt(){this._clamp(this._components);const[t,e,i]=this._components;this._int=(t*255<<16)+(e*255<<8)+(i*255|0);}_clamp(t,e=0,i=1){return typeof t=="number"?Math.min(Math.max(t,e),i):(t.forEach((r,n)=>{t[n]=Math.min(Math.max(r,e),i);}),t)}static isColorLike(t){return typeof t=="number"||typeof t=="string"||t instanceof Number||t instanceof Oe||Array.isArray(t)||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Float32Array||t.r!==void 0&&t.g!==void 0&&t.b!==void 0||t.r!==void 0&&t.g!==void 0&&t.b!==void 0&&t.a!==void 0||t.h!==void 0&&t.s!==void 0&&t.l!==void 0||t.h!==void 0&&t.s!==void 0&&t.l!==void 0&&t.a!==void 0||t.h!==void 0&&t.s!==void 0&&t.v!==void 0||t.h!==void 0&&t.s!==void 0&&t.v!==void 0&&t.a!==void 0}};be.shared=new be;be._temp=new be;be.HEX_PATTERN=/^(#|0x)?(([a-f0-9]{3}){1,2}([a-f0-9]{2})?)$/i;let ot=be;const ch={cullArea:null,cullable:false,cullableChildren:true};let Hi=0;const wr=500;function J(...s){Hi!==wr&&(Hi++,Hi===wr?console.warn("PixiJS Warning: too many warnings, no more warnings will be reported to the console by PixiJS."):console.warn("PixiJS Warning: ",...s));}const Qe={_registeredResources:new Set,register(s){this._registeredResources.add(s);},unregister(s){this._registeredResources.delete(s);},release(){this._registeredResources.forEach(s=>s.clear());},get registeredCount(){return this._registeredResources.size},isRegistered(s){return this._registeredResources.has(s)},reset(){this._registeredResources.clear();}};class uh{constructor(t,e){this._pool=[],this._count=0,this._index=0,this._classType=t,e&&this.prepopulate(e);}prepopulate(t){for(let e=0;e0?e=this._pool[--this._index]:(e=new this._classType,this._count++),e.init?.(t),e}return(t){t.reset?.(),this._pool[this._index++]=t;}get totalSize(){return this._count}get totalFree(){return this._index}get totalUsed(){return this._count-this._index}clear(){if(this._pool.length>0&&this._pool[0].destroy)for(let t=0;t{const i=t[e._classType.name]?e._classType.name+e._classType.ID:e._classType.name;t[i]={free:e.totalFree,used:e.totalUsed,size:e.totalSize};}),t}clear(){this._poolsByClass.forEach(t=>t.clear()),this._poolsByClass.clear();}}const Pt=new dh;Qe.register(Pt);const fh={get isCachedAsTexture(){return !!this.renderGroup?.isCachedAsTexture},cacheAsTexture(s){typeof s=="boolean"&&s===false?this.disableRenderGroup():(this.enableRenderGroup(),this.renderGroup.enableCacheAsTexture(s===true?{}:s));},updateCacheTexture(){this.renderGroup?.updateCacheTexture();},get cacheAsBitmap(){return this.isCachedAsTexture},set cacheAsBitmap(s){D("v8.6.0","cacheAsBitmap is deprecated, use cacheAsTexture instead."),this.cacheAsTexture(s);}};function _h(s,t,e){const i=s.length;let r;if(t>=i||e===0)return;e=t+e>i?i-t:e;const n=i-e;for(r=t;r0&&i<=e){for(let o=e-1;o>=s;o--){const a=this.children[o];a&&(r.push(a),a.parent=null);}_h(this.children,s,e);const n=this.renderGroup||this.parentRenderGroup;n&&n.removeChildren(r);for(let o=0;o0&&this._didViewChangeTick++,r}else if(i===0&&this.children.length===0)return r;throw new RangeError("removeChildren: numeric values are outside the acceptable range.")},removeChildAt(s){const t=this.getChildAt(s);return this.removeChild(t)},getChildAt(s){if(s<0||s>=this.children.length)throw new Error(`getChildAt: Index (${s}) does not exist.`);return this.children[s]},setChildIndex(s,t){if(t<0||t>=this.children.length)throw new Error(`The index ${t} supplied is out of bounds ${this.children.length}`);this.getChildIndex(s),this.addChildAt(s,t);},getChildIndex(s){const t=this.children.indexOf(s);if(t===-1)throw new Error("The supplied Container must be a child of the caller");return t},addChildAt(s,t){this.allowChildren||D(j,"addChildAt: Only Containers will be allowed to add children in v8.0.0");const{children:e}=this;if(t<0||t>e.length)throw new Error(`${s}addChildAt: The index ${t} supplied is out of bounds ${e.length}`);if(s.parent){const r=s.parent.children.indexOf(s);if(s.parent===this&&r===t)return s;r!==-1&&s.parent.children.splice(r,1);}t===e.length?e.push(s):e.splice(t,0,s),s.parent=this,s.didChange=true,s._updateFlags=15;const i=this.renderGroup||this.parentRenderGroup;return i&&i.addChild(s),this.sortableChildren&&(this.sortDirty=true),this.emit("childAdded",s,this,t),s.emit("added",this),s},swapChildren(s,t){if(s===t)return;const e=this.getChildIndex(s),i=this.getChildIndex(t);this.children[e]=t,this.children[i]=s;const r=this.renderGroup||this.parentRenderGroup;r&&(r.structureDidChange=true),this._didContainerChangeTick++;},removeFromParent(){this.parent?.removeChild(this);},reparentChild(...s){return s.length===1?this.reparentChildAt(s[0],this.children.length):(s.forEach(t=>this.reparentChildAt(t,this.children.length)),s[0])},reparentChildAt(s,t){if(s.parent===this)return this.setChildIndex(s,t),s;const e=s.worldTransform.clone();s.removeFromParent(),this.addChildAt(s,t);const i=this.worldTransform.clone();return i.invert(),e.prepend(i),s.setFromMatrix(e),s},replaceChild(s,t){s.updateLocalTransform(),this.addChildAt(t,this.getChildIndex(s)),t.setFromMatrix(s.localTransform),t.updateLocalTransform(),this.removeChild(s);}},gh={collectRenderables(s,t,e){this.parentRenderLayer&&this.parentRenderLayer!==e||this.globalDisplayStatus<7||!this.includeInBuild||(this.sortableChildren&&this.sortChildren(),this.isSimple?this.collectRenderablesSimple(s,t,e):this.renderGroup?t.renderPipes.renderGroup.addRenderGroup(this.renderGroup,s):this.collectRenderablesWithEffects(s,t,e));},collectRenderablesSimple(s,t,e){const i=this.children,r=i.length;for(let n=0;n=0;r--){const n=this.effects[r];i[n.pipe].pop(n,this,s);}}};class vr{constructor(){this.pipe="filter",this.priority=1;}destroy(){for(let t=0;t{this.add({test:t.test,maskClass:t});}));}add(t){this._tests.push(t);}getMaskEffect(t){this._initialized||this.init();for(let e=0;ee.priority-i.priority),this._markStructureAsChanged(),this._updateIsSimple());},removeEffect(s){const t=this.effects.indexOf(s);t!==-1&&(this.effects.splice(t,1),this._markStructureAsChanged(),this._updateIsSimple());},set mask(s){const t=this._maskEffect;t?.mask!==s&&(t&&(this.removeEffect(t),bs.returnMaskEffect(t),this._maskEffect=null),s!=null&&(this._maskEffect=bs.getMaskEffect(s),this.addEffect(this._maskEffect)));},get mask(){return this._maskEffect?.mask},setMask(s){this._maskOptions={...this._maskOptions,...s},s.mask&&(this.mask=s.mask),this._markStructureAsChanged();},set filters(s){!Array.isArray(s)&&s&&(s=[s]);const t=this._filterEffect||(this._filterEffect=new vr);s=s;const e=s?.length>0,i=t.filters?.length>0,r=e!==i;s=Array.isArray(s)?s.slice(0):s,t.filters=Object.freeze(s),r&&(e?this.addEffect(t):(this.removeEffect(t),t.filters=s??null));},get filters(){return this._filterEffect?.filters},set filterArea(s){this._filterEffect||(this._filterEffect=new vr),this._filterEffect.filterArea=s;},get filterArea(){return this._filterEffect?.filterArea}},xh={label:null,get name(){return D(j,"Container.name property has been removed, use Container.label instead"),this.label},set name(s){D(j,"Container.name property has been removed, use Container.label instead"),this.label=s;},getChildByName(s,t=false){return this.getChildByLabel(s,t)},getChildByLabel(s,t=false){const e=this.children;for(let i=0;i>16&255,i=s>>8&255,r=s&255,n=t>>16&255,o=t>>8&255,a=t&255,h=e*n/255|0,l=i*o/255|0,c=r*a/255|0;return (h<<16)+(l<<8)+c}const kr=16777215;function Ar(s,t){return s===kr?t:t===kr?s:Nn(s,t)}function _i(s){return ((s&255)<<16)+(s&65280)+(s>>16&255)}const vh={getGlobalAlpha(s){if(s)return this.renderGroup?this.renderGroup.worldAlpha:this.parentRenderGroup?this.parentRenderGroup.worldAlpha*this.alpha:this.alpha;let t=this.alpha,e=this.parent;for(;e;)t*=e.alpha,e=e.parent;return t},getGlobalTransform(s=new H,t){if(t)return s.copyFrom(this.worldTransform);this.updateLocalTransform();const e=js(this,yt.get().identity());return s.appendFrom(this.localTransform,e),yt.return(e),s},getGlobalTint(s){if(s)return this.renderGroup?_i(this.renderGroup.worldColor):this.parentRenderGroup?_i(Ar(this.localColor,this.parentRenderGroup.worldColor)):this.tint;let t=this.localColor,e=this.parent;for(;e;)t=Ar(t,e.localColor),e=e.parent;return _i(t)}};function Wn(s,t,e){return t.clear(),e||(e=H.IDENTITY),Hn(s,t,e,s,true),t.isValid||t.set(0,0,0,0),t}function Hn(s,t,e,i,r){let n;if(r)n=yt.get(),n=e.copyTo(n);else {if(!s.visible||!s.measurable)return;s.updateLocalTransform();const h=s.localTransform;n=yt.get(),n.appendFrom(h,e);}const o=t,a=!!s.effects.length;if(a&&(t=Vt.get().clear()),s.boundsArea)t.addRect(s.boundsArea,n);else {s.renderPipeId&&(t.matrix=n,t.addBounds(s.bounds));const h=s.children;for(let l=0;l-1&&this.renderGroupChildren.splice(e,1),t.renderGroupParent=null;}addChild(t){if(this.structureDidChange=true,t.parentRenderGroup=this,t.updateTick=-1,t.parent===this.root?t.relativeRenderGroupDepth=1:t.relativeRenderGroupDepth=t.parent.relativeRenderGroupDepth+1,t.didChange=true,this.onChildUpdate(t),t.renderGroup){this.addRenderGroupChild(t.renderGroup);return}t._onRender&&this.addOnRender(t);const e=t.children;for(let i=0;i0}addOnRender(t){this._onRenderContainers.push(t);}removeOnRender(t){this._onRenderContainers.splice(this._onRenderContainers.indexOf(t),1);}runOnRender(t){for(let e=0;ethis.addChild(e)),t.parent?.addChild(this);}static mixin(t){D("8.8.0","Container.mixin is deprecated, please use extensions.mixin instead."),ft.mixin(U,t);}set _didChangeId(t){this._didViewChangeTick=t>>12&4095,this._didContainerChangeTick=t&4095;}get _didChangeId(){return this._didContainerChangeTick&4095|(this._didViewChangeTick&4095)<<12}addChild(...t){if(this.allowChildren||D(j,"addChild: Only Containers will be allowed to add children in v8.0.0"),t.length>1){for(let r=0;r1){for(let r=0;r-1&&(this._didViewChangeTick++,this.children.splice(i,1),this.renderGroup?this.renderGroup.removeChild(e):this.parentRenderGroup&&this.parentRenderGroup.removeChild(e),e.parentRenderLayer&&e.parentRenderLayer.detach(e),e.parent=null,this.emit("childRemoved",e,this,i),e.emit("removed",this)),e}_onUpdate(t){t&&t===this._skew&&this._updateSkew(),this._didContainerChangeTick++,!this.didChange&&(this.didChange=true,this.parentRenderGroup&&this.parentRenderGroup.onChildUpdate(this));}set isRenderGroup(t){!!this.renderGroup!==t&&(t?this.enableRenderGroup():this.disableRenderGroup());}get isRenderGroup(){return !!this.renderGroup}enableRenderGroup(){if(this.renderGroup)return;const t=this.parentRenderGroup;t?.removeChild(this),this.renderGroup=Pt.get(zh,this),this.groupTransform=H.IDENTITY,t?.addChild(this),this._updateIsSimple();}disableRenderGroup(){if(!this.renderGroup)return;const t=this.parentRenderGroup;t?.removeChild(this),Pt.return(this.renderGroup),this.renderGroup=null,this.groupTransform=this.relativeGroupTransform,t?.addChild(this),this._updateIsSimple();}_updateIsSimple(){this.isSimple=!this.renderGroup&&this.effects.length===0;}get worldTransform(){return this._worldTransform||(this._worldTransform=new H),this.renderGroup?this._worldTransform.copyFrom(this.renderGroup.worldTransform):this.parentRenderGroup&&this._worldTransform.appendFrom(this.relativeGroupTransform,this.parentRenderGroup.worldTransform),this._worldTransform}get x(){return this._position.x}set x(t){this._position.x=t;}get y(){return this._position.y}set y(t){this._position.y=t;}get position(){return this._position}set position(t){this._position.copyFrom(t);}get rotation(){return this._rotation}set rotation(t){this._rotation!==t&&(this._rotation=t,this._onUpdate(this._skew));}get angle(){return this.rotation*Xa}set angle(t){this.rotation=t*ja;}get pivot(){return this._pivot===ii&&(this._pivot=new pt(this,0,0)),this._pivot}set pivot(t){this._pivot===ii&&(this._pivot=new pt(this,0,0),this._origin!==si&&J("Setting both a pivot and origin on a Container is not recommended. This can lead to unexpected behavior if not handled carefully.")),typeof t=="number"?this._pivot.set(t):this._pivot.copyFrom(t);}get skew(){return this._skew===Vi&&(this._skew=new pt(this,0,0)),this._skew}set skew(t){this._skew===Vi&&(this._skew=new pt(this,0,0)),this._skew.copyFrom(t);}get scale(){return this._scale===Yi&&(this._scale=new pt(this,1,1)),this._scale}set scale(t){this._scale===Yi&&(this._scale=new pt(this,0,0)),typeof t=="string"&&(t=parseFloat(t)),typeof t=="number"?this._scale.set(t):this._scale.copyFrom(t);}get origin(){return this._origin===si&&(this._origin=new pt(this,0,0)),this._origin}set origin(t){this._origin===si&&(this._origin=new pt(this,0,0),this._pivot!==ii&&J("Setting both a pivot and origin on a Container is not recommended. This can lead to unexpected behavior if not handled carefully.")),typeof t=="number"?this._origin.set(t):this._origin.copyFrom(t);}get width(){return Math.abs(this.scale.x*this.getLocalBounds().width)}set width(t){const e=this.getLocalBounds().width;this._setWidth(t,e);}get height(){return Math.abs(this.scale.y*this.getLocalBounds().height)}set height(t){const e=this.getLocalBounds().height;this._setHeight(t,e);}getSize(t){t||(t={});const e=this.getLocalBounds();return t.width=Math.abs(this.scale.x*e.width),t.height=Math.abs(this.scale.y*e.height),t}setSize(t,e){const i=this.getLocalBounds();typeof t=="object"?(e=t.height??t.width,t=t.width):e??(e=t),t!==void 0&&this._setWidth(t,i.width),e!==void 0&&this._setHeight(e,i.height);}_updateSkew(){const t=this._rotation,e=this._skew;this._cx=Math.cos(t+e._y),this._sx=Math.sin(t+e._y),this._cy=-Math.sin(t-e._x),this._sy=Math.cos(t-e._x);}updateTransform(t){return this.position.set(typeof t.x=="number"?t.x:this.position.x,typeof t.y=="number"?t.y:this.position.y),this.scale.set(typeof t.scaleX=="number"?t.scaleX||1:this.scale.x,typeof t.scaleY=="number"?t.scaleY||1:this.scale.y),this.rotation=typeof t.rotation=="number"?t.rotation:this.rotation,this.skew.set(typeof t.skewX=="number"?t.skewX:this.skew.x,typeof t.skewY=="number"?t.skewY:this.skew.y),this.pivot.set(typeof t.pivotX=="number"?t.pivotX:this.pivot.x,typeof t.pivotY=="number"?t.pivotY:this.pivot.y),this.origin.set(typeof t.originX=="number"?t.originX:this.origin.x,typeof t.originY=="number"?t.originY:this.origin.y),this}setFromMatrix(t){t.decompose(this);}updateLocalTransform(){const t=this._didContainerChangeTick;if(this._didLocalTransformChangeId===t)return;this._didLocalTransformChangeId=t;const e=this.localTransform,i=this._scale,r=this._pivot,n=this._origin,o=this._position,a=i._x,h=i._y,l=r._x,c=r._y,u=-n._x,f=-n._y;e.a=this._cx*a,e.b=this._sx*a,e.c=this._cy*h,e.d=this._sy*h,e.tx=o._x-(l*e.a+c*e.c)+(u*e.a+f*e.c)-u,e.ty=o._y-(l*e.b+c*e.d)+(u*e.b+f*e.d)-f;}set alpha(t){t!==this.localAlpha&&(this.localAlpha=t,this._updateFlags|=Sr,this._onUpdate());}get alpha(){return this.localAlpha}set tint(t){const i=ot.shared.setValue(t??16777215).toBgrNumber();i!==this.localColor&&(this.localColor=i,this._updateFlags|=Sr,this._onUpdate());}get tint(){return _i(this.localColor)}set blendMode(t){this.localBlendMode!==t&&(this.parentRenderGroup&&(this.parentRenderGroup.structureDidChange=true),this._updateFlags|=Rh,this.localBlendMode=t,this._onUpdate());}get blendMode(){return this.localBlendMode}get visible(){return !!(this.localDisplayStatus&2)}set visible(t){const e=t?2:0;(this.localDisplayStatus&2)!==e&&(this.parentRenderGroup&&(this.parentRenderGroup.structureDidChange=true),this._updateFlags|=Xi,this.localDisplayStatus^=2,this._onUpdate());}get culled(){return !(this.localDisplayStatus&4)}set culled(t){const e=t?0:4;(this.localDisplayStatus&4)!==e&&(this.parentRenderGroup&&(this.parentRenderGroup.structureDidChange=true),this._updateFlags|=Xi,this.localDisplayStatus^=4,this._onUpdate());}get renderable(){return !!(this.localDisplayStatus&1)}set renderable(t){const e=t?1:0;(this.localDisplayStatus&1)!==e&&(this._updateFlags|=Xi,this.localDisplayStatus^=1,this.parentRenderGroup&&(this.parentRenderGroup.structureDidChange=true),this._onUpdate());}get isRenderable(){return this.localDisplayStatus===7&&this.groupAlpha>0}destroy(t=false){if(this.destroyed)return;this.destroyed=true;let e;if(this.children.length&&(e=this.removeChildren(0,this.children.length)),this.removeFromParent(),this.parent=null,this._maskEffect=null,this._filterEffect=null,this.effects=null,this._position=null,this._scale=null,this._pivot=null,this._origin=null,this._skew=null,this.emit("destroyed",this),this.removeAllListeners(),(typeof t=="boolean"?t:t?.children)&&e)for(let r=0;r=e.minX&&i<=e.maxX&&r>=e.minY&&r<=e.maxY}onViewUpdate(){if(this._didViewChangeTick++,this._boundsDirty=true,this.didViewUpdate)return;this.didViewUpdate=true;const t=this.renderGroup||this.parentRenderGroup;t&&t.onChildViewUpdate(this);}unload(){this.emit("unload",this);for(const t in this._gpuData)this._gpuData[t]?.destroy();this._gpuData=Object.create(null),this.onViewUpdate();}destroy(t){this.unload(),super.destroy(t),this._bounds=null;}collectRenderablesSimple(t,e,i){const{renderPipes:r}=e;r.blendMode.pushBlendMode(this,this.groupBlendMode,t),r[this.renderPipeId].addRenderable(this,t),this.didViewUpdate=false;const o=this.children,a=o.length;for(let h=0;h{this.onViewUpdate();}}),i?this.anchor=i:e.defaultAnchor&&(this.anchor=e.defaultAnchor),this.texture=e,this.allowChildren=false,this.roundPixels=r??false,n!==void 0&&(this.width=n),o!==void 0&&(this.height=o);}static from(t,e=false){return t instanceof W?new q(t):new q(W.from(t,e))}set texture(t){t||(t=W.EMPTY);const e=this._texture;e!==t&&(e&&e.dynamic&&e.off("update",this.onViewUpdate,this),t.dynamic&&t.on("update",this.onViewUpdate,this),this._texture=t,this._width&&this._setWidth(this._width,this._texture.orig.width),this._height&&this._setHeight(this._height,this._texture.orig.height),this.onViewUpdate());}get texture(){return this._texture}get visualBounds(){return th(this._visualBounds,this._anchor,this._texture),this._visualBounds}get sourceBounds(){return D("8.6.1","Sprite.sourceBounds is deprecated, use visualBounds instead."),this.visualBounds}updateBounds(){const t=this._anchor,e=this._texture,i=this._bounds,{width:r,height:n}=e.orig;i.minX=-t._x*r,i.maxX=i.minX+r,i.minY=-t._y*n,i.maxY=i.minY+n;}destroy(t=false){if(super.destroy(t),typeof t=="boolean"?t:t?.texture){const i=typeof t=="boolean"?t:t?.textureSource;this._texture.destroy(i);}this._texture=null,this._visualBounds=null,this._bounds=null,this._anchor=null;}get anchor(){return this._anchor}set anchor(t){typeof t=="number"?this._anchor.set(t):this._anchor.copyFrom(t);}get width(){return Math.abs(this.scale.x)*this._texture.orig.width}set width(t){this._setWidth(t,this._texture.orig.width),this._width=t;}get height(){return Math.abs(this.scale.y)*this._texture.orig.height}set height(t){this._setHeight(t,this._texture.orig.height),this._height=t;}getSize(t){return t||(t={}),t.width=Math.abs(this.scale.x)*this._texture.orig.width,t.height=Math.abs(this.scale.y)*this._texture.orig.height,t}setSize(t,e){typeof t=="object"?(e=t.height??t.width,t=t.width):e??(e=t),t!==void 0&&this._setWidth(t,this._texture.orig.width),e!==void 0&&this._setHeight(e,this._texture.orig.height);}}const Fh=new Lt;function jn(s,t,e){const i=Fh;s.measurable=true,Dn(s,e,i),t.addBoundsMask(i),s.measurable=false;}function qn(s,t,e){const i=Vt.get();s.measurable=true;const r=yt.get().identity(),n=Kn(s,e,r);Wn(s,i,n),s.measurable=false,t.addBoundsMask(i),yt.return(r),Vt.return(i);}function Kn(s,t,e){return s?(s!==t&&(Kn(s.parent,t,e),s.updateLocalTransform(),e.append(s.localTransform)),e):(J("Mask bounds, renderable is not inside the root container"),e)}class Zn{constructor(t){this.priority=0,this.inverse=false,this.pipe="alphaMask",t?.mask&&this.init(t.mask);}init(t){this.mask=t,this.renderMaskToTexture=!(t instanceof q),this.mask.renderable=this.renderMaskToTexture,this.mask.includeInBuild=!this.renderMaskToTexture,this.mask.measurable=false;}reset(){this.mask!==null&&(this.mask.measurable=true,this.mask=null);}addBounds(t,e){this.inverse||jn(this.mask,t,e);}addLocalBounds(t,e){qn(this.mask,t,e);}containsPoint(t,e){const i=this.mask;return e(i,t)}destroy(){this.reset();}static test(t){return t instanceof q}}Zn.extension=B.MaskEffect;class Qn{constructor(t){this.priority=0,this.pipe="colorMask",t?.mask&&this.init(t.mask);}init(t){this.mask=t;}destroy(){}static test(t){return typeof t=="number"}}Qn.extension=B.MaskEffect;class Jn{constructor(t){this.priority=0,this.pipe="stencilMask",t?.mask&&this.init(t.mask);}init(t){this.mask=t,this.mask.includeInBuild=false,this.mask.measurable=false;}reset(){this.mask!==null&&(this.mask.measurable=true,this.mask.includeInBuild=true,this.mask=null);}addBounds(t,e){jn(this.mask,t,e);}addLocalBounds(t,e){qn(this.mask,t,e);}containsPoint(t,e){const i=this.mask;return e(i,t)}destroy(){this.reset();}static test(t){return t instanceof U}}Jn.extension=B.MaskEffect;const Bh={createCanvas:(s,t)=>{const e=document.createElement("canvas");return e.width=s,e.height=t,e},createImage:()=>new Image,getCanvasRenderingContext2D:()=>CanvasRenderingContext2D,getWebGLRenderingContext:()=>WebGLRenderingContext,getNavigator:()=>navigator,getBaseUrl:()=>document.baseURI??window.location.href,getFontFaceSet:()=>document.fonts,fetch:(s,t)=>fetch(s,t),parseXML:s=>new DOMParser().parseFromString(s,"text/xml")};let Cr=Bh;const $={get(){return Cr},set(s){Cr=s;}};class $n extends It{constructor(t){t.resource||(t.resource=$.get().createCanvas()),t.width||(t.width=t.resource.width,t.autoDensity||(t.width/=t.resolution)),t.height||(t.height=t.resource.height,t.autoDensity||(t.height/=t.resolution)),super(t),this.uploadMethodId="image",this.autoDensity=t.autoDensity,this.resizeCanvas(),this.transparent=!!t.transparent;}resizeCanvas(){this.autoDensity&&"style"in this.resource&&(this.resource.style.width=`${this.width}px`,this.resource.style.height=`${this.height}px`),(this.resource.width!==this.pixelWidth||this.resource.height!==this.pixelHeight)&&(this.resource.width=this.pixelWidth,this.resource.height=this.pixelHeight);}resize(t=this.width,e=this.height,i=this._resolution){const r=super.resize(t,e,i);return r&&this.resizeCanvas(),r}static test(t){return globalThis.HTMLCanvasElement&&t instanceof HTMLCanvasElement||globalThis.OffscreenCanvas&&t instanceof OffscreenCanvas}get context2D(){return this._context2D||(this._context2D=this.resource.getContext("2d"))}}$n.extension=B.TextureSource;class ce extends It{constructor(t){super(t),this.uploadMethodId="image",this.autoGarbageCollect=true;}static test(t){return globalThis.HTMLImageElement&&t instanceof HTMLImageElement||typeof ImageBitmap<"u"&&t instanceof ImageBitmap||globalThis.VideoFrame&&t instanceof VideoFrame}}ce.extension=B.TextureSource;var ws=(s=>(s[s.INTERACTION=50]="INTERACTION",s[s.HIGH=25]="HIGH",s[s.NORMAL=0]="NORMAL",s[s.LOW=-25]="LOW",s[s.UTILITY=-50]="UTILITY",s))(ws||{});class ji{constructor(t,e=null,i=0,r=false){this.next=null,this.previous=null,this._destroyed=false,this._fn=t,this._context=e,this.priority=i,this._once=r;}match(t,e=null){return this._fn===t&&this._context===e}emit(t){this._fn&&(this._context?this._fn.call(this._context,t):this._fn(t));const e=this.next;return this._once&&this.destroy(true),this._destroyed&&(this.next=null),e}connect(t){this.previous=t,t.next&&(t.next.previous=this),this.next=t.next,t.next=this;}destroy(t=false){this._destroyed=true,this._fn=null,this._context=null,this.previous&&(this.previous.next=this.next),this.next&&(this.next.previous=this.previous);const e=this.next;return this.next=t?null:e,this.previous=null,e}}const to=class kt{constructor(){this.autoStart=false,this.deltaTime=1,this.lastTime=-1,this.speed=1,this.started=false,this._requestId=null,this._maxElapsedMS=100,this._minElapsedMS=0,this._protected=false,this._lastFrame=-1,this._head=new ji(null,null,1/0),this.deltaMS=1/kt.targetFPMS,this.elapsedMS=1/kt.targetFPMS,this._tick=t=>{this._requestId=null,this.started&&(this.update(t),this.started&&this._requestId===null&&this._head.next&&(this._requestId=requestAnimationFrame(this._tick)));};}_requestIfNeeded(){this._requestId===null&&this._head.next&&(this.lastTime=performance.now(),this._lastFrame=this.lastTime,this._requestId=requestAnimationFrame(this._tick));}_cancelIfNeeded(){this._requestId!==null&&(cancelAnimationFrame(this._requestId),this._requestId=null);}_startIfPossible(){this.started?this._requestIfNeeded():this.autoStart&&this.start();}add(t,e,i=ws.NORMAL){return this._addListener(new ji(t,e,i))}addOnce(t,e,i=ws.NORMAL){return this._addListener(new ji(t,e,i,true))}_addListener(t){let e=this._head.next,i=this._head;if(!e)t.connect(i);else {for(;e;){if(t.priority>e.priority){t.connect(i);break}i=e,e=e.next;}t.previous||t.connect(i);}return this._startIfPossible(),this}remove(t,e){let i=this._head.next;for(;i;)i.match(t,e)?i=i.destroy():i=i.next;return this._head.next||this._cancelIfNeeded(),this}get count(){if(!this._head)return 0;let t=0,e=this._head;for(;e=e.next;)t++;return t}start(){this.started||(this.started=true,this._requestIfNeeded());}stop(){this.started&&(this.started=false,this._cancelIfNeeded());}destroy(){if(!this._protected){this.stop();let t=this._head.next;for(;t;)t=t.destroy(true);this._head.destroy(),this._head=null;}}update(t=performance.now()){let e;if(t>this.lastTime){if(e=this.elapsedMS=t-this.lastTime,e>this._maxElapsedMS&&(e=this._maxElapsedMS),e*=this.speed,this._minElapsedMS){const n=t-this._lastFrame|0;if(n{const t=$.get().createCanvas(1,1).getContext("webgl");if(!t)return "premultiply-alpha-on-upload";const e=await new Promise(o=>{const a=document.createElement("video");a.onloadeddata=()=>o(a),a.onerror=()=>o(null),a.autoplay=false,a.crossOrigin="anonymous",a.preload="auto",a.src="data:video/webm;base64,GkXfo59ChoEBQveBAULygQRC84EIQoKEd2VibUKHgQJChYECGFOAZwEAAAAAAAHTEU2bdLpNu4tTq4QVSalmU6yBoU27i1OrhBZUrmtTrIHGTbuMU6uEElTDZ1OsggEXTbuMU6uEHFO7a1OsggG97AEAAAAAAABZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVSalmoCrXsYMPQkBNgIRMYXZmV0GETGF2ZkSJiEBEAAAAAAAAFlSua8yuAQAAAAAAAEPXgQFzxYgAAAAAAAAAAZyBACK1nIN1bmSIgQCGhVZfVlA5g4EBI+ODhAJiWgDglLCBArqBApqBAlPAgQFVsIRVuYEBElTDZ9Vzc9JjwItjxYgAAAAAAAAAAWfInEWjh0VOQ09ERVJEh49MYXZjIGxpYnZweC12cDlnyKJFo4hEVVJBVElPTkSHlDAwOjAwOjAwLjA0MDAwMDAwMAAAH0O2dcfngQCgwqGggQAAAIJJg0IAABAAFgA4JBwYSgAAICAAEb///4r+AAB1oZ2mm+6BAaWWgkmDQgAAEAAWADgkHBhKAAAgIABIQBxTu2uRu4+zgQC3iveBAfGCAXHwgQM=",a.load();});if(!e)return "premultiply-alpha-on-upload";const i=t.createTexture();t.bindTexture(t.TEXTURE_2D,i);const r=t.createFramebuffer();t.bindFramebuffer(t.FRAMEBUFFER,r),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,i,0),t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,false),t.pixelStorei(t.UNPACK_COLORSPACE_CONVERSION_WEBGL,t.NONE),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,e);const n=new Uint8Array(4);return t.readPixels(0,0,1,1,t.RGBA,t.UNSIGNED_BYTE,n),t.deleteFramebuffer(r),t.deleteTexture(i),t.getExtension("WEBGL_lose_context")?.loseContext(),n[0]<=n[3]?"premultiplied-alpha":"premultiply-alpha-on-upload"})()),qi}const Ci=class io extends It{constructor(t){super(t),this.isReady=false,this.uploadMethodId="video",t={...io.defaultOptions,...t},this._autoUpdate=true,this._isConnectedToTicker=false,this._updateFPS=t.updateFPS||0,this._msToNextUpdate=0,this.autoPlay=t.autoPlay!==false,this.alphaMode=t.alphaMode??"premultiply-alpha-on-upload",this._videoFrameRequestCallback=this._videoFrameRequestCallback.bind(this),this._videoFrameRequestCallbackHandle=null,this._load=null,this._resolve=null,this._reject=null,this._onCanPlay=this._onCanPlay.bind(this),this._onCanPlayThrough=this._onCanPlayThrough.bind(this),this._onError=this._onError.bind(this),this._onPlayStart=this._onPlayStart.bind(this),this._onPlayStop=this._onPlayStop.bind(this),this._onSeeked=this._onSeeked.bind(this),t.autoLoad!==false&&this.load();}updateFrame(){if(!this.destroyed){if(this._updateFPS){const t=ri.shared.elapsedMS*this.resource.playbackRate;this._msToNextUpdate=Math.floor(this._msToNextUpdate-t);}(!this._updateFPS||this._msToNextUpdate<=0)&&(this._msToNextUpdate=this._updateFPS?Math.floor(1e3/this._updateFPS):0),this.isValid&&this.update();}}_videoFrameRequestCallback(){this.updateFrame(),this.destroyed?this._videoFrameRequestCallbackHandle=null:this._videoFrameRequestCallbackHandle=this.resource.requestVideoFrameCallback(this._videoFrameRequestCallback);}get isValid(){return !!this.resource.videoWidth&&!!this.resource.videoHeight}async load(){if(this._load)return this._load;const t=this.resource,e=this.options;return (t.readyState===t.HAVE_ENOUGH_DATA||t.readyState===t.HAVE_FUTURE_DATA)&&t.width&&t.height&&(t.complete=true),t.addEventListener("play",this._onPlayStart),t.addEventListener("pause",this._onPlayStop),t.addEventListener("seeked",this._onSeeked),this._isSourceReady()?this._mediaReady():(e.preload||t.addEventListener("canplay",this._onCanPlay),t.addEventListener("canplaythrough",this._onCanPlayThrough),t.addEventListener("error",this._onError,true)),this.alphaMode=await eo(),this._load=new Promise((i,r)=>{this.isValid?i(this):(this._resolve=i,this._reject=r,e.preloadTimeoutMs!==void 0&&(this._preloadTimeout=setTimeout(()=>{this._onError(new ErrorEvent(`Preload exceeded timeout of ${e.preloadTimeoutMs}ms`));})),t.load());}),this._load}_onError(t){this.resource.removeEventListener("error",this._onError,true),this.emit("error",t),this._reject&&(this._reject(t),this._reject=null,this._resolve=null);}_isSourcePlaying(){const t=this.resource;return !t.paused&&!t.ended}_isSourceReady(){return this.resource.readyState>2}_onPlayStart(){this.isValid||this._mediaReady(),this._configureAutoUpdate();}_onPlayStop(){this._configureAutoUpdate();}_onSeeked(){this._autoUpdate&&!this._isSourcePlaying()&&(this._msToNextUpdate=0,this.updateFrame(),this._msToNextUpdate=0);}_onCanPlay(){this.resource.removeEventListener("canplay",this._onCanPlay),this._mediaReady();}_onCanPlayThrough(){this.resource.removeEventListener("canplaythrough",this._onCanPlay),this._preloadTimeout&&(clearTimeout(this._preloadTimeout),this._preloadTimeout=void 0),this._mediaReady();}_mediaReady(){const t=this.resource;this.isValid&&(this.isReady=true,this.resize(t.videoWidth,t.videoHeight)),this._msToNextUpdate=0,this.updateFrame(),this._msToNextUpdate=0,this._resolve&&(this._resolve(this),this._resolve=null,this._reject=null),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&this.resource.play();}destroy(){this._configureAutoUpdate();const t=this.resource;t&&(t.removeEventListener("play",this._onPlayStart),t.removeEventListener("pause",this._onPlayStop),t.removeEventListener("seeked",this._onSeeked),t.removeEventListener("canplay",this._onCanPlay),t.removeEventListener("canplaythrough",this._onCanPlayThrough),t.removeEventListener("error",this._onError,true),t.pause(),t.src="",t.load()),super.destroy();}get autoUpdate(){return this._autoUpdate}set autoUpdate(t){t!==this._autoUpdate&&(this._autoUpdate=t,this._configureAutoUpdate());}get updateFPS(){return this._updateFPS}set updateFPS(t){t!==this._updateFPS&&(this._updateFPS=t,this._configureAutoUpdate());}_configureAutoUpdate(){this._autoUpdate&&this._isSourcePlaying()?!this._updateFPS&&this.resource.requestVideoFrameCallback?(this._isConnectedToTicker&&(ri.shared.remove(this.updateFrame,this),this._isConnectedToTicker=false,this._msToNextUpdate=0),this._videoFrameRequestCallbackHandle===null&&(this._videoFrameRequestCallbackHandle=this.resource.requestVideoFrameCallback(this._videoFrameRequestCallback))):(this._videoFrameRequestCallbackHandle!==null&&(this.resource.cancelVideoFrameCallback(this._videoFrameRequestCallbackHandle),this._videoFrameRequestCallbackHandle=null),this._isConnectedToTicker||(ri.shared.add(this.updateFrame,this),this._isConnectedToTicker=true,this._msToNextUpdate=0)):(this._videoFrameRequestCallbackHandle!==null&&(this.resource.cancelVideoFrameCallback(this._videoFrameRequestCallbackHandle),this._videoFrameRequestCallbackHandle=null),this._isConnectedToTicker&&(ri.shared.remove(this.updateFrame,this),this._isConnectedToTicker=false,this._msToNextUpdate=0));}static test(t){return globalThis.HTMLVideoElement&&t instanceof HTMLVideoElement}};Ci.extension=B.TextureSource;Ci.defaultOptions={...It.defaultOptions,autoLoad:true,autoPlay:true,updateFPS:0,crossorigin:true,loop:false,muted:true,playsinline:true,preload:false};Ci.MIME_TYPES={ogv:"video/ogg",mov:"video/quicktime",m4v:"video/mp4"};let We=Ci;const Bt=(s,t,e=false)=>(Array.isArray(s)||(s=[s]),t?s.map(i=>typeof i=="string"||e?t(i):i):s);class Lh{constructor(){this._parsers=[],this._cache=new Map,this._cacheMap=new Map;}reset(){this._cacheMap.clear(),this._cache.clear();}has(t){return this._cache.has(t)}get(t){const e=this._cache.get(t);return e||J(`[Assets] Asset id ${t} was not found in the Cache`),e}set(t,e){const i=Bt(t);let r;for(let h=0;h{n.set(h,e);});const o=[...n.keys()],a={cacheKeys:o,keys:i};i.forEach(h=>{this._cacheMap.set(h,a);}),o.forEach(h=>{const l=r?r[h]:e;this._cache.has(h)&&this._cache.get(h)!==l&&J("[Cache] already has key:",h),this._cache.set(h,n.get(h));});}remove(t){if(!this._cacheMap.has(t)){J(`[Assets] Asset id ${t} was not found in the Cache`);return}const e=this._cacheMap.get(t);e.cacheKeys.forEach(r=>{this._cache.delete(r);}),e.keys.forEach(r=>{this._cacheMap.delete(r);});}get parsers(){return this._parsers}}const Q=new Lh,vs=[];ft.handleByList(B.TextureSource,vs);function so(s={}){const t=s&&s.resource,e=t?s.resource:s,i=t?s:{resource:s};for(let r=0;r{Q.has(i)&&Q.remove(i);}),t||Q.set(i,n),n}function Gh(s,t=false){return typeof s=="string"?Q.get(s):s instanceof It?new W({source:s}):Oh(s,t)}W.from=Gh;It.from=so;ft.add(Zn,Qn,Jn,We,ce,$n,Xs);var Qt=(s=>(s[s.Low=0]="Low",s[s.Normal=1]="Normal",s[s.High=2]="High",s))(Qt||{});function Ft(s){if(typeof s!="string")throw new TypeError(`Path must be a string. Received ${JSON.stringify(s)}`)}function Ie(s){return s.split("?")[0].split("#")[0]}function Dh(s){return s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Uh(s,t,e){return s.replace(new RegExp(Dh(t),"g"),e)}function Nh(s,t){let e="",i=0,r=-1,n=0,o=-1;for(let a=0;a<=s.length;++a){if(a2){const h=e.lastIndexOf("/");if(h!==e.length-1){h===-1?(e="",i=0):(e=e.slice(0,h),i=e.length-1-e.lastIndexOf("/")),r=a,n=0;continue}}else if(e.length===2||e.length===1){e="",i=0,r=a,n=0;continue}}}else e.length>0?e+=`/${s.slice(r+1,a)}`:e=s.slice(r+1,a),i=a-r-1;r=a,n=0;}else o===46&&n!==-1?++n:n=-1;}return e}const Ct={toPosix(s){return Uh(s,"\\","/")},isUrl(s){return /^https?:/.test(this.toPosix(s))},isDataUrl(s){return /^data:([a-z]+\/[a-z0-9-+.]+(;[a-z0-9-.!#$%*+.{}|~`]+=[a-z0-9-.!#$%*+.{}()_|~`]+)*)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s<>]*?)$/i.test(s)},isBlobUrl(s){return s.startsWith("blob:")},hasProtocol(s){return /^[^/:]+:/.test(this.toPosix(s))},getProtocol(s){Ft(s),s=this.toPosix(s);const t=/^file:\/\/\//.exec(s);if(t)return t[0];const e=/^[^/:]+:\/{0,2}/.exec(s);return e?e[0]:""},toAbsolute(s,t,e){if(Ft(s),this.isDataUrl(s)||this.isBlobUrl(s))return s;const i=Ie(this.toPosix(t??$.get().getBaseUrl())),r=Ie(this.toPosix(e??this.rootname(i)));return s=this.toPosix(s),s.startsWith("/")?Ct.join(r,s.slice(1)):this.isAbsolute(s)?s:this.join(i,s)},normalize(s){if(Ft(s),s.length===0)return ".";if(this.isDataUrl(s)||this.isBlobUrl(s))return s;s=this.toPosix(s);let t="";const e=s.startsWith("/");this.hasProtocol(s)&&(t=this.rootname(s),s=s.slice(t.length));const i=s.endsWith("/");return s=Nh(s),s.length>0&&i&&(s+="/"),e?`/${s}`:t+s},isAbsolute(s){return Ft(s),s=this.toPosix(s),this.hasProtocol(s)?true:s.startsWith("/")},join(...s){if(s.length===0)return ".";let t;for(let e=0;e0)if(t===void 0)t=i;else {const r=s[e-1]??"";this.joinExtensions.includes(this.extname(r).toLowerCase())?t+=`/../${i}`:t+=`/${i}`;}}return t===void 0?".":this.normalize(t)},dirname(s){if(Ft(s),s.length===0)return ".";s=this.toPosix(s);let t=s.charCodeAt(0);const e=t===47;let i=-1,r=true;const n=this.getProtocol(s),o=s;s=s.slice(n.length);for(let a=s.length-1;a>=1;--a)if(t=s.charCodeAt(a),t===47){if(!r){i=a;break}}else r=false;return i===-1?e?"/":this.isUrl(o)?n+s:n:e&&i===1?"//":n+s.slice(0,i)},rootname(s){Ft(s),s=this.toPosix(s);let t="";if(s.startsWith("/")?t="/":t=this.getProtocol(s),this.isUrl(s)){const e=s.indexOf("/",t.length);e!==-1?t=s.slice(0,e):t=s,t.endsWith("/")||(t+="/");}return t},basename(s,t){Ft(s),t&&Ft(t),s=Ie(this.toPosix(s));let e=0,i=-1,r=true,n;if(t!==void 0&&t.length>0&&t.length<=s.length){if(t.length===s.length&&t===s)return "";let o=t.length-1,a=-1;for(n=s.length-1;n>=0;--n){const h=s.charCodeAt(n);if(h===47){if(!r){e=n+1;break}}else a===-1&&(r=false,a=n+1),o>=0&&(h===t.charCodeAt(o)?--o===-1&&(i=n):(o=-1,i=a));}return e===i?i=a:i===-1&&(i=s.length),s.slice(e,i)}for(n=s.length-1;n>=0;--n)if(s.charCodeAt(n)===47){if(!r){e=n+1;break}}else i===-1&&(r=false,i=n+1);return i===-1?"":s.slice(e,i)},extname(s){Ft(s),s=Ie(this.toPosix(s));let t=-1,e=0,i=-1,r=true,n=0;for(let o=s.length-1;o>=0;--o){const a=s.charCodeAt(o);if(a===47){if(!r){e=o+1;break}continue}i===-1&&(r=false,i=o+1),a===46?t===-1?t=o:n!==1&&(n=1):t!==-1&&(n=-1);}return t===-1||i===-1||n===0||n===1&&t===i-1&&t===e+1?"":s.slice(t,i)},parse(s){Ft(s);const t={root:"",dir:"",base:"",ext:"",name:""};if(s.length===0)return t;s=Ie(this.toPosix(s));let e=s.charCodeAt(0);const i=this.isAbsolute(s);let r;t.root=this.rootname(s),i||this.hasProtocol(s)?r=1:r=0;let n=-1,o=0,a=-1,h=true,l=s.length-1,c=0;for(;l>=r;--l){if(e=s.charCodeAt(l),e===47){if(!h){o=l+1;break}continue}a===-1&&(h=false,a=l+1),e===46?n===-1?n=l:c!==1&&(c=1):n!==-1&&(c=-1);}return n===-1||a===-1||c===0||c===1&&n===a-1&&n===o+1?a!==-1&&(o===0&&i?t.base=t.name=s.slice(1,a):t.base=t.name=s.slice(o,a)):(o===0&&i?(t.name=s.slice(1,n),t.base=s.slice(1,a)):(t.name=s.slice(o,n),t.base=s.slice(o,a)),t.ext=s.slice(n,a)),t.dir=this.dirname(s),t},sep:"/",delimiter:":",joinExtensions:[".html"]};function ro(s,t,e,i,r){const n=t[e];for(let o=0;o{const o=n.substring(1,n.length-1).split(",");r.push(o);}),ro(s,r,0,e,i);}else i.push(s);return i}const vi=s=>!Array.isArray(s);class Ae{constructor(){this._defaultBundleIdentifierOptions={connector:"-",createBundleAssetId:(t,e)=>`${t}${this._bundleIdConnector}${e}`,extractAssetIdFromBundle:(t,e)=>e.replace(`${t}${this._bundleIdConnector}`,"")},this._bundleIdConnector=this._defaultBundleIdentifierOptions.connector,this._createBundleAssetId=this._defaultBundleIdentifierOptions.createBundleAssetId,this._extractAssetIdFromBundle=this._defaultBundleIdentifierOptions.extractAssetIdFromBundle,this._assetMap={},this._preferredOrder=[],this._parsers=[],this._resolverHash={},this._bundles={};}setBundleIdentifier(t){if(this._bundleIdConnector=t.connector??this._bundleIdConnector,this._createBundleAssetId=t.createBundleAssetId??this._createBundleAssetId,this._extractAssetIdFromBundle=t.extractAssetIdFromBundle??this._extractAssetIdFromBundle,this._extractAssetIdFromBundle("foo",this._createBundleAssetId("foo","bar"))!=="bar")throw new Error("[Resolver] GenerateBundleAssetId are not working correctly")}prefer(...t){t.forEach(e=>{this._preferredOrder.push(e),e.priority||(e.priority=Object.keys(e.params));}),this._resolverHash={};}set basePath(t){this._basePath=t;}get basePath(){return this._basePath}set rootPath(t){this._rootPath=t;}get rootPath(){return this._rootPath}get parsers(){return this._parsers}reset(){this.setBundleIdentifier(this._defaultBundleIdentifierOptions),this._assetMap={},this._preferredOrder=[],this._resolverHash={},this._rootPath=null,this._basePath=null,this._manifest=null,this._bundles={},this._defaultSearchParams=null;}setDefaultSearchParams(t){if(typeof t=="string")this._defaultSearchParams=t;else {const e=t;this._defaultSearchParams=Object.keys(e).map(i=>`${encodeURIComponent(i)}=${encodeURIComponent(e[i])}`).join("&");}}getAlias(t){const{alias:e,src:i}=t;return Bt(e||i,n=>typeof n=="string"?n:Array.isArray(n)?n.map(o=>o?.src??o):n?.src?n.src:n,true)}addManifest(t){this._manifest&&J("[Resolver] Manifest already exists, this will be overwritten"),this._manifest=t,t.bundles.forEach(e=>{this.addBundle(e.name,e.assets);});}addBundle(t,e){const i=[];let r=e;Array.isArray(e)||(r=Object.entries(e).map(([n,o])=>typeof o=="string"||Array.isArray(o)?{alias:n,src:o}:{alias:n,...o})),r.forEach(n=>{const o=n.src,a=n.alias;let h;if(typeof a=="string"){const l=this._createBundleAssetId(t,a);i.push(l),h=[a,l];}else {const l=a.map(c=>this._createBundleAssetId(t,c));i.push(...l),h=[...a,...l];}this.add({...n,alias:h,src:o});}),this._bundles[t]=i;}add(t){const e=[];Array.isArray(t)?e.push(...t):e.push(t);let i;i=n=>{this.hasKey(n)&&J(`[Resolver] already has key: ${n} overwriting`);},Bt(e).forEach(n=>{const{src:o}=n;let{data:a,format:h,loadParser:l,parser:c}=n;const u=Bt(o).map(g=>typeof g=="string"?Wh(g):Array.isArray(g)?g:[g]),f=this.getAlias(n);Array.isArray(f)?f.forEach(i):i(f);const d=[],_=g=>({...this._parsers.find(m=>m.test(g))?.parse(g),src:g});u.forEach(g=>{g.forEach(p=>{let m={};if(typeof p!="object"?m=_(p):(a=p.data??a,h=p.format??h,(p.loadParser||p.parser)&&(l=p.loadParser??l,c=p.parser??c),m={..._(p.src),...p}),!f)throw new Error(`[Resolver] alias is undefined for this asset: ${m.src}`);m=this._buildResolvedAsset(m,{aliases:f,data:a,format:h,loadParser:l,parser:c,progressSize:n.progressSize}),d.push(m);});}),f.forEach(g=>{this._assetMap[g]=d;});});}resolveBundle(t){const e=vi(t);t=Bt(t);const i={};return t.forEach(r=>{const n=this._bundles[r];if(n){const o=this.resolve(n),a={};for(const h in o){const l=o[h];a[this._extractAssetIdFromBundle(r,h)]=l;}i[r]=a;}}),e?i[t[0]]:i}resolveUrl(t){const e=this.resolve(t);if(typeof t!="string"){const i={};for(const r in e)i[r]=e[r].src;return i}return e.src}resolve(t){const e=vi(t);t=Bt(t);const i={};return t.forEach(r=>{if(!this._resolverHash[r])if(this._assetMap[r]){let n=this._assetMap[r];const o=this._getPreferredOrder(n);o?.priority.forEach(a=>{o.params[a].forEach(h=>{const l=n.filter(c=>c[a]?c[a]===h:false);l.length&&(n=l);});}),this._resolverHash[r]=n[0];}else this._resolverHash[r]=this._buildResolvedAsset({alias:[r],src:r},{});i[r]=this._resolverHash[r];}),e?i[t[0]]:i}hasKey(t){return !!this._assetMap[t]}hasBundle(t){return !!this._bundles[t]}_getPreferredOrder(t){for(let e=0;en.params.format.includes(i.format));if(r)return r}return this._preferredOrder[0]}_appendDefaultSearchParams(t){if(!this._defaultSearchParams)return t;const e=/\?/.test(t)?"&":"?";return `${t}${e}${this._defaultSearchParams}`}_buildResolvedAsset(t,e){const{aliases:i,data:r,loadParser:n,parser:o,format:a,progressSize:h}=e;return (this._basePath||this._rootPath)&&(t.src=Ct.toAbsolute(t.src,this._basePath,this._rootPath)),t.alias=i??t.alias??[t.src],t.src=this._appendDefaultSearchParams(t.src),t.data={...r||{},...t.data},t.loadParser=n??t.loadParser,t.parser=o??t.parser,t.format=a??t.format??Hh(t.src),h!==void 0&&(t.progressSize=h),t}}Ae.RETINA_PREFIX=/@([0-9\.]+)x/;function Hh(s){return s.split(".").pop().split("?").shift().split("#").shift()}const ks=(s,t)=>{const e=t.split("?")[1];return e&&(s+=`?${e}`),s},no=class Ge{constructor(t,e){this.linkedSheets=[];let i=t;t?.source instanceof It&&(i={texture:t,data:e});const{texture:r,data:n,cachePrefix:o=""}=i;this.cachePrefix=o,this._texture=r instanceof W?r:null,this.textureSource=r.source,this.textures={},this.animations={},this.data=n;const a=parseFloat(n.meta.scale);a?(this.resolution=a,r.source.resolution=this.resolution):this.resolution=r.source._resolution,this._frames=this.data.frames,this._frameKeys=Object.keys(this._frames),this._batchIndex=0,this._callback=null;}parse(){return new Promise(t=>{this._callback=t,this._batchIndex=0,this._frameKeys.length<=Ge.BATCH_SIZE?(this._processFrames(0),this._processAnimations(),this._parseComplete()):this._nextBatch();})}_processFrames(t){let e=t;const i=Ge.BATCH_SIZE;for(;e-t{this._batchIndex*Ge.BATCH_SIZE{i[r]=t;}),Object.keys(t.textures).forEach(r=>{i[`${t.cachePrefix}${r}`]=t.textures[r];}),!e){const r=Ct.dirname(s[0]);t.linkedSheets.forEach((n,o)=>{const a=oo([`${r}/${t.data.meta.related_multi_packs[o]}`],n,true);Object.assign(i,a);});}return i}const Yh={extension:B.Asset,cache:{test:s=>s instanceof Mr,getCacheableAssets:(s,t)=>oo(s,t,false)},resolver:{extension:{type:B.ResolveParser,name:"resolveSpritesheet"},test:s=>{const e=s.split("?")[0].split("."),i=e.pop(),r=e.pop();return i==="json"&&Vh.includes(r)},parse:s=>{const t=s.split(".");return {resolution:parseFloat(Ae.RETINA_PREFIX.exec(s)?.[1]??"1"),format:t[t.length-2],src:s}}},loader:{name:"spritesheetLoader",id:"spritesheet",extension:{type:B.LoadParser,priority:Qt.Normal,name:"spritesheetLoader"},async testParse(s,t){return Ct.extname(t.src).toLowerCase()===".json"&&!!s.frames},async parse(s,t,e){const{texture:i,imageFilename:r,textureOptions:n,cachePrefix:o}=t?.data??{};let a=Ct.dirname(t.src);a&&a.lastIndexOf("/")!==a.length-1&&(a+="/");let h;if(i instanceof W)h=i;else {const u=ks(a+(r??s.meta.image),t.src);h=(await e.load([{src:u,data:n}]))[u];}const l=new Mr({texture:h.source,data:s,cachePrefix:o});await l.parse();const c=s?.meta?.related_multi_packs;if(Array.isArray(c)){const u=[];for(const d of c){if(typeof d!="string")continue;let _=a+d;t.data?.ignoreMultiPack||(_=ks(_,t.src),u.push(e.load({src:_,data:{textureOptions:n,ignoreMultiPack:true}})));}const f=await Promise.all(u);l.linkedSheets=f,f.forEach(d=>{d.linkedSheets=[l].concat(l.linkedSheets.filter(_=>_!==d));});}return l},async unload(s,t,e){await e.unload(s.textureSource._sourceOrigin),s.destroy(false);}}};ft.add(Yh);const Ki=Object.create(null),Tr=Object.create(null);function qs(s,t){let e=Tr[s];return e===void 0&&(Ki[t]===void 0&&(Ki[t]=1),Tr[s]=e=Ki[t]++),e}let ni;function ao(){return (!ni||ni?.isContextLost())&&(ni=$.get().createCanvas().getContext("webgl",{})),ni}let oi;function Xh(){if(!oi){oi="mediump";const s=ao();s&&s.getShaderPrecisionFormat&&(oi=s.getShaderPrecisionFormat(s.FRAGMENT_SHADER,s.HIGH_FLOAT).precision?"highp":"mediump");}return oi}function jh(s,t,e){return t?s:e?(s=s.replace("out vec4 finalColor;",""),` + + #ifdef GL_ES // This checks if it is WebGL1 + #define in varying + #define finalColor gl_FragColor + #define texture texture2D + #endif + ${s} + `):` + + #ifdef GL_ES // This checks if it is WebGL1 + #define in attribute + #define out varying + #endif + ${s} + `}function qh(s,t,e){const i=e?t.maxSupportedFragmentPrecision:t.maxSupportedVertexPrecision;if(s.substring(0,9)!=="precision"){let r=e?t.requestedFragmentPrecision:t.requestedVertexPrecision;return r==="highp"&&i!=="highp"&&(r="mediump"),`precision ${r} float; +${s}`}else if(i!=="highp"&&s.substring(0,15)==="precision highp")return s.replace("precision highp","precision mediump");return s}function Kh(s,t){return t?`#version 300 es +${s}`:s}const Zh={},Qh={};function Jh(s,{name:t="pixi-program"},e=true){t=t.replace(/\s+/g,"-"),t+=e?"-fragment":"-vertex";const i=e?Zh:Qh;return i[t]?(i[t]++,t+=`-${i[t]}`):i[t]=1,s.indexOf("#define SHADER_NAME")!==-1?s:`${`#define SHADER_NAME ${t}`} +${s}`}function $h(s,t){return t?s.replace("#version 300 es",""):s}const Zi={stripVersion:$h,ensurePrecision:qh,addProgramDefines:jh,setProgramName:Jh,insertVersion:Kh},ze=Object.create(null),ho=class As{constructor(t){t={...As.defaultOptions,...t};const e=t.fragment.indexOf("#version 300 es")!==-1,i={stripVersion:e,ensurePrecision:{requestedFragmentPrecision:t.preferredFragmentPrecision,requestedVertexPrecision:t.preferredVertexPrecision,maxSupportedVertexPrecision:"highp",maxSupportedFragmentPrecision:Xh()},setProgramName:{name:t.name},addProgramDefines:e,insertVersion:e};let r=t.fragment,n=t.vertex;Object.keys(Zi).forEach(o=>{const a=i[o];r=Zi[o](r,a,true),n=Zi[o](n,a,false);}),this.fragment=r,this.vertex=n,this.transformFeedbackVaryings=t.transformFeedbackVaryings,this._key=qs(`${this.vertex}:${this.fragment}`,"gl-program");}destroy(){this.fragment=null,this.vertex=null,this._attributeData=null,this._uniformData=null,this._uniformBlockData=null,this.transformFeedbackVaryings=null,ze[this._cacheKey]=null;}static from(t){const e=`${t.vertex}:${t.fragment}`;return ze[e]||(ze[e]=new As(t),ze[e]._cacheKey=e),ze[e]}};ho.defaultOptions={preferredVertexPrecision:"highp",preferredFragmentPrecision:"mediump"};let ve=ho;const Pr={uint8x2:{size:2,stride:2,normalised:false},uint8x4:{size:4,stride:4,normalised:false},sint8x2:{size:2,stride:2,normalised:false},sint8x4:{size:4,stride:4,normalised:false},unorm8x2:{size:2,stride:2,normalised:true},unorm8x4:{size:4,stride:4,normalised:true},snorm8x2:{size:2,stride:2,normalised:true},snorm8x4:{size:4,stride:4,normalised:true},uint16x2:{size:2,stride:4,normalised:false},uint16x4:{size:4,stride:8,normalised:false},sint16x2:{size:2,stride:4,normalised:false},sint16x4:{size:4,stride:8,normalised:false},unorm16x2:{size:2,stride:4,normalised:true},unorm16x4:{size:4,stride:8,normalised:true},snorm16x2:{size:2,stride:4,normalised:true},snorm16x4:{size:4,stride:8,normalised:true},float16x2:{size:2,stride:4,normalised:false},float16x4:{size:4,stride:8,normalised:false},float32:{size:1,stride:4,normalised:false},float32x2:{size:2,stride:8,normalised:false},float32x3:{size:3,stride:12,normalised:false},float32x4:{size:4,stride:16,normalised:false},uint32:{size:1,stride:4,normalised:false},uint32x2:{size:2,stride:8,normalised:false},uint32x3:{size:3,stride:12,normalised:false},uint32x4:{size:4,stride:16,normalised:false},sint32:{size:1,stride:4,normalised:false},sint32x2:{size:2,stride:8,normalised:false},sint32x3:{size:3,stride:12,normalised:false},sint32x4:{size:4,stride:16,normalised:false}};function tl(s){return Pr[s]??Pr.float32}const el={f32:"float32","vec2":"float32x2","vec3":"float32x3","vec4":"float32x4",vec2f:"float32x2",vec3f:"float32x3",vec4f:"float32x4",i32:"sint32","vec2":"sint32x2","vec3":"sint32x3","vec4":"sint32x4",u32:"uint32","vec2":"uint32x2","vec3":"uint32x3","vec4":"uint32x4",bool:"uint32","vec2":"uint32x2","vec3":"uint32x3","vec4":"uint32x4"};function il({source:s,entryPoint:t}){const e={},i=s.indexOf(`fn ${t}`);if(i!==-1){const r=s.indexOf("->",i);if(r!==-1){const n=s.substring(i,r),o=/@location\((\d+)\)\s+([a-zA-Z0-9_]+)\s*:\s*([a-zA-Z0-9_<>]+)(?:,|\s|$)/g;let a;for(;(a=o.exec(n))!==null;){const h=el[a[3]]??"float32";e[a[2]]={location:parseInt(a[1],10),format:h,stride:tl(h).stride,offset:0,instance:false,start:0};}}}return e}function Qi(s){const t=/(^|[^/])@(group|binding)\(\d+\)[^;]+;/g,e=/@group\((\d+)\)/,i=/@binding\((\d+)\)/,r=/var(<[^>]+>)? (\w+)/,n=/:\s*(\w+)/,o=/struct\s+(\w+)\s*{([^}]+)}/g,a=/(\w+)\s*:\s*([\w\<\>]+)/g,h=/struct\s+(\w+)/,l=s.match(t)?.map(u=>({group:parseInt(u.match(e)[1],10),binding:parseInt(u.match(i)[1],10),name:u.match(r)[2],isUniform:u.match(r)[1]==="",type:u.match(n)[1]}));if(!l)return {groups:[],structs:[]};const c=s.match(o)?.map(u=>{const f=u.match(h)[1],d=u.match(a).reduce((_,g)=>{const[p,m]=g.split(":");return _[p.trim()]=m.trim(),_},{});return d?{name:f,members:d}:null}).filter(({name:u})=>l.some(f=>f.type===u))??[];return {groups:l,structs:c}}var De=(s=>(s[s.VERTEX=1]="VERTEX",s[s.FRAGMENT=2]="FRAGMENT",s[s.COMPUTE=4]="COMPUTE",s))(De||{});function sl({groups:s}){const t=[];for(let e=0;ee.has(o.name)?false:(e.add(o.name),true)),n=[...s.groups,...t.groups].filter(o=>{const a=`${o.name}-${o.binding}`;return i.has(a)?false:(i.add(a),true)});return {structs:r,groups:n}}const Ee=Object.create(null);class Zt{constructor(t){this._layoutKey=0,this._attributeLocationsKey=0;const{fragment:e,vertex:i,layout:r,gpuLayout:n,name:o}=t;if(this.name=o,this.fragment=e,this.vertex=i,e.source===i.source){const a=Qi(e.source);this.structsAndGroups=a;}else {const a=Qi(i.source),h=Qi(e.source);this.structsAndGroups=nl(a,h);}this.layout=r??rl(this.structsAndGroups),this.gpuLayout=n??sl(this.structsAndGroups),this.autoAssignGlobalUniforms=this.layout[0]?.globalUniforms!==void 0,this.autoAssignLocalUniforms=this.layout[1]?.localUniforms!==void 0,this._generateProgramKey();}_generateProgramKey(){const{vertex:t,fragment:e}=this,i=t.source+e.source+t.entryPoint+e.entryPoint;this._layoutKey=qs(i,"program");}get attributeData(){return this._attributeData??(this._attributeData=il(this.vertex)),this._attributeData}destroy(){this.gpuLayout=null,this.layout=null,this.structsAndGroups=null,this.fragment=null,this.vertex=null,Ee[this._cacheKey]=null;}static from(t){const e=`${t.vertex.source}:${t.fragment.source}:${t.fragment.entryPoint}:${t.vertex.entryPoint}`;return Ee[e]||(Ee[e]=new Zt(t),Ee[e]._cacheKey=e),Ee[e]}}const lo=["f32","i32","vec2","vec3","vec4","mat2x2","mat3x3","mat4x4","mat3x2","mat4x2","mat2x3","mat4x3","mat2x4","mat3x4","vec2","vec3","vec4"],ol=lo.reduce((s,t)=>(s[t]=true,s),{});function al(s,t){switch(s){case "f32":return 0;case "vec2":return new Float32Array(2*t);case "vec3":return new Float32Array(3*t);case "vec4":return new Float32Array(4*t);case "mat2x2":return new Float32Array([1,0,0,1]);case "mat3x3":return new Float32Array([1,0,0,0,1,0,0,0,1]);case "mat4x4":return new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])}return null}const co=class uo{constructor(t,e){this._touched=0,this.uid=st("uniform"),this._resourceType="uniformGroup",this._resourceId=st("resource"),this.isUniformGroup=true,this._dirtyId=0,this.destroyed=false,e={...uo.defaultOptions,...e},this.uniformStructures=t;const i={};for(const r in t){const n=t[r];if(n.name=r,n.size=n.size??1,!ol[n.type]){const o=n.type.match(/^array<(\w+(?:<\w+>)?),\s*(\d+)>$/);if(o){const[,a,h]=o;throw new Error(`Uniform type ${n.type} is not supported. Use type: '${a}', size: ${h} instead.`)}throw new Error(`Uniform type ${n.type} is not supported. Supported uniform types are: ${lo.join(", ")}`)}n.value??(n.value=al(n.type,n.size)),i[r]=n.value;}this.uniforms=i,this._dirtyId=1,this.ubo=e.ubo,this.isStatic=e.isStatic,this._signature=qs(Object.keys(i).map(r=>`${r}-${t[r].type}`).join("-"),"uniform-group");}update(){this._dirtyId++;}};co.defaultOptions={ubo:false,isStatic:false};let fo=co;class pi{constructor(t){this.resources=Object.create(null),this._dirty=true;let e=0;for(const i in t){const r=t[i];this.setResource(r,e++);}this._updateKey();}_updateKey(){if(!this._dirty)return;this._dirty=false;const t=[];let e=0;for(const i in this.resources)t[e++]=this.resources[i]._resourceId;this._key=t.join("|");}setResource(t,e){const i=this.resources[e];t!==i&&(i&&t.off?.("change",this.onResourceChange,this),t.on?.("change",this.onResourceChange,this),this.resources[e]=t,this._dirty=true);}getResource(t){return this.resources[t]}_touch(t,e){const i=this.resources;for(const r in i)i[r]._gcLastUsed=t,i[r]._touched=e;}destroy(){const t=this.resources;for(const e in t)t[e]?.off?.("change",this.onResourceChange,this);this.resources=null;}onResourceChange(t){if(this._dirty=true,t.destroyed){const e=this.resources;for(const i in e)e[i]===t&&(e[i]=null);}else this._updateKey();}}var Ss=(s=>(s[s.WEBGL=1]="WEBGL",s[s.WEBGPU=2]="WEBGPU",s[s.BOTH=3]="BOTH",s))(Ss||{});class Mi extends Ot{constructor(t){super(),this.uid=st("shader"),this._uniformBindMap=Object.create(null),this._ownedBindGroups=[],this._destroyed=false;let{gpuProgram:e,glProgram:i,groups:r,resources:n,compatibleRenderers:o,groupMap:a}=t;this.gpuProgram=e,this.glProgram=i,o===void 0&&(o=0,e&&(o|=Ss.WEBGPU),i&&(o|=Ss.WEBGL)),this.compatibleRenderers=o;const h={};if(!n&&!r&&(n={}),n&&r)throw new Error("[Shader] Cannot have both resources and groups");if(!e&&r&&!a)throw new Error("[Shader] No group map or WebGPU shader provided - consider using resources instead.");if(!e&&r&&a)for(const l in a)for(const c in a[l]){const u=a[l][c];h[u]={group:l,binding:c,name:u};}else if(e&&r&&!a){const l=e.structsAndGroups.groups;a={},l.forEach(c=>{a[c.group]=a[c.group]||{},a[c.group][c.binding]=c.name,h[c.name]=c;});}else if(n){r={},a={},e&&e.structsAndGroups.groups.forEach(u=>{a[u.group]=a[u.group]||{},a[u.group][u.binding]=u.name,h[u.name]=u;});let l=0;for(const c in n)h[c]||(r[99]||(r[99]=new pi,this._ownedBindGroups.push(r[99])),h[c]={group:99,binding:l,name:c},a[99]=a[99]||{},a[99][l]=c,l++);for(const c in n){const u=c;let f=n[c];!f.source&&!f._resourceType&&(f=new fo(f));const d=h[u];d&&(r[d.group]||(r[d.group]=new pi,this._ownedBindGroups.push(r[d.group])),r[d.group].setResource(f,d.binding));}}this.groups=r,this._uniformBindMap=a,this.resources=this._buildResourceAccessor(r,h);}addResource(t,e,i){var r,n;(r=this._uniformBindMap)[e]||(r[e]={}),(n=this._uniformBindMap[e])[i]||(n[i]=t),this.groups[e]||(this.groups[e]=new pi,this._ownedBindGroups.push(this.groups[e]));}_buildResourceAccessor(t,e){const i={};for(const r in e){const n=e[r];Object.defineProperty(i,n.name,{get(){return t[n.group].getResource(n.binding)},set(o){t[n.group].setResource(o,n.binding);}});}return i}destroy(t=false){this._destroyed||(this._destroyed=true,this.emit("destroy",this),t&&(this.gpuProgram?.destroy(),this.glProgram?.destroy()),this.gpuProgram=null,this.glProgram=null,this.removeAllListeners(),this._uniformBindMap=null,this._ownedBindGroups.forEach(e=>{e.destroy();}),this._ownedBindGroups=null,this.resources=null,this.groups=null);}static from(t){const{gpu:e,gl:i,...r}=t;let n,o;return e&&(n=Zt.from(e)),i&&(o=ve.from(i)),new Mi({gpuProgram:n,glProgram:o,...r})}}const hl={normal:0,add:1,multiply:2,screen:3,overlay:4,erase:5,"normal-npm":6,"add-npm":7,"screen-npm":8,min:9,max:10},Ji=0,$i=1,ts=2,es=3,is=4,ss=5,Cs=class _o{constructor(){this.data=0,this.blendMode="normal",this.polygonOffset=0,this.blend=true,this.depthMask=true;}get blend(){return !!(this.data&1<80*e){a=s[0],h=s[1];let c=a,u=h;for(let f=e;fc&&(c=d),_>u&&(u=_);}l=Math.max(c-a,u-h),l=l!==0?32767/l:0;}return Xe(n,o,e,a,h,l,0),o}function go(s,t,e,i,r){let n;if(r===Ml(s,t,e,i)>0)for(let o=t;o=t;o-=i)n=zr(o/i|0,s[o],s[o+1],n);return n&&ke(n,n.next)&&(qe(n),n=n.next),n}function ue(s,t){if(!s)return s;t||(t=s);let e=s,i;do if(i=false,!e.steiner&&(ke(e,e.next)||tt(e.prev,e,e.next)===0)){if(qe(e),e=t=e.prev,e===e.next)break;i=true;}else e=e.next;while(i||e!==t);return t}function Xe(s,t,e,i,r,n,o){if(!s)return;!o&&n&&wl(s,i,r,n);let a=s;for(;s.prev!==s.next;){const h=s.prev,l=s.next;if(n?fl(s,i,r,n):dl(s)){t.push(h.i,s.i,l.i),qe(s),s=l.next,a=l.next;continue}if(s=l,s===a){o?o===1?(s=_l(ue(s),t),Xe(s,t,e,i,r,n,2)):o===2&&pl(s,t,e,i,r,n):Xe(ue(s),t,e,i,r,n,1);break}}}function dl(s){const t=s.prev,e=s,i=s.next;if(tt(t,e,i)>=0)return false;const r=t.x,n=e.x,o=i.x,a=t.y,h=e.y,l=i.y,c=Math.min(r,n,o),u=Math.min(a,h,l),f=Math.max(r,n,o),d=Math.max(a,h,l);let _=i.next;for(;_!==t;){if(_.x>=c&&_.x<=f&&_.y>=u&&_.y<=d&&Ue(r,a,n,h,o,l,_.x,_.y)&&tt(_.prev,_,_.next)>=0)return false;_=_.next;}return true}function fl(s,t,e,i){const r=s.prev,n=s,o=s.next;if(tt(r,n,o)>=0)return false;const a=r.x,h=n.x,l=o.x,c=r.y,u=n.y,f=o.y,d=Math.min(a,h,l),_=Math.min(c,u,f),g=Math.max(a,h,l),p=Math.max(c,u,f),m=Is(d,_,t,e,i),y=Is(g,p,t,e,i);let x=s.prevZ,b=s.nextZ;for(;x&&x.z>=m&&b&&b.z<=y;){if(x.x>=d&&x.x<=g&&x.y>=_&&x.y<=p&&x!==r&&x!==o&&Ue(a,c,h,u,l,f,x.x,x.y)&&tt(x.prev,x,x.next)>=0||(x=x.prevZ,b.x>=d&&b.x<=g&&b.y>=_&&b.y<=p&&b!==r&&b!==o&&Ue(a,c,h,u,l,f,b.x,b.y)&&tt(b.prev,b,b.next)>=0))return false;b=b.nextZ;}for(;x&&x.z>=m;){if(x.x>=d&&x.x<=g&&x.y>=_&&x.y<=p&&x!==r&&x!==o&&Ue(a,c,h,u,l,f,x.x,x.y)&&tt(x.prev,x,x.next)>=0)return false;x=x.prevZ;}for(;b&&b.z<=y;){if(b.x>=d&&b.x<=g&&b.y>=_&&b.y<=p&&b!==r&&b!==o&&Ue(a,c,h,u,l,f,b.x,b.y)&&tt(b.prev,b,b.next)>=0)return false;b=b.nextZ;}return true}function _l(s,t){let e=s;do{const i=e.prev,r=e.next.next;!ke(i,r)&&yo(i,e,e.next,r)&&je(i,r)&&je(r,i)&&(t.push(i.i,e.i,r.i),qe(e),qe(e.next),e=s=r),e=e.next;}while(e!==s);return ue(e)}function pl(s,t,e,i,r,n){let o=s;do{let a=o.next.next;for(;a!==o.prev;){if(o.i!==a.i&&Al(o,a)){let h=xo(o,a);o=ue(o,o.next),h=ue(h,h.next),Xe(o,t,e,i,r,n,0),Xe(h,t,e,i,r,n,0);return}a=a.next;}o=o.next;}while(o!==s)}function gl(s,t,e,i){const r=[];for(let n=0,o=t.length;n=e.next.y&&e.next.y!==e.y){const u=e.x+(r-e.y)*(e.next.x-e.x)/(e.next.y-e.y);if(u<=i&&u>n&&(n=u,o=e.x=e.x&&e.x>=h&&i!==e.x&&mo(ro.x||e.x===o.x&&bl(o,e)))&&(o=e,c=u);}e=e.next;}while(e!==a);return o}function bl(s,t){return tt(s.prev,s,t.prev)<0&&tt(t.next,s,s.next)<0}function wl(s,t,e,i){let r=s;do r.z===0&&(r.z=Is(r.x,r.y,t,e,i)),r.prevZ=r.prev,r.nextZ=r.next,r=r.next;while(r!==s);r.prevZ.nextZ=null,r.prevZ=null,vl(r);}function vl(s){let t,e=1;do{let i=s,r;s=null;let n=null;for(t=0;i;){t++;let o=i,a=0;for(let l=0;l0||h>0&&o;)a!==0&&(h===0||!o||i.z<=o.z)?(r=i,i=i.nextZ,a--):(r=o,o=o.nextZ,h--),n?n.nextZ=r:s=r,r.prevZ=n,n=r;i=o;}n.nextZ=null,e*=2;}while(t>1);return s}function Is(s,t,e,i,r){return s=(s-e)*r|0,t=(t-i)*r|0,s=(s|s<<8)&16711935,s=(s|s<<4)&252645135,s=(s|s<<2)&858993459,s=(s|s<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,s|t<<1}function kl(s){let t=s,e=s;do(t.x=(s-o)*(n-a)&&(s-o)*(i-a)>=(e-o)*(t-a)&&(e-o)*(n-a)>=(r-o)*(i-a)}function Ue(s,t,e,i,r,n,o,a){return !(s===o&&t===a)&&mo(s,t,e,i,r,n,o,a)}function Al(s,t){return s.next.i!==t.i&&s.prev.i!==t.i&&!Sl(s,t)&&(je(s,t)&&je(t,s)&&Cl(s,t)&&(tt(s.prev,s,t.prev)||tt(s,t.prev,t))||ke(s,t)&&tt(s.prev,s,s.next)>0&&tt(t.prev,t,t.next)>0)}function tt(s,t,e){return (t.y-s.y)*(e.x-t.x)-(t.x-s.x)*(e.y-t.y)}function ke(s,t){return s.x===t.x&&s.y===t.y}function yo(s,t,e,i){const r=hi(tt(s,t,e)),n=hi(tt(s,t,i)),o=hi(tt(e,i,s)),a=hi(tt(e,i,t));return !!(r!==n&&o!==a||r===0&&ai(s,e,t)||n===0&&ai(s,i,t)||o===0&&ai(e,s,i)||a===0&&ai(e,t,i))}function ai(s,t,e){return t.x<=Math.max(s.x,e.x)&&t.x>=Math.min(s.x,e.x)&&t.y<=Math.max(s.y,e.y)&&t.y>=Math.min(s.y,e.y)}function hi(s){return s>0?1:s<0?-1:0}function Sl(s,t){let e=s;do{if(e.i!==s.i&&e.next.i!==s.i&&e.i!==t.i&&e.next.i!==t.i&&yo(e,e.next,s,t))return true;e=e.next;}while(e!==s);return false}function je(s,t){return tt(s.prev,s,s.next)<0?tt(s,t,s.next)>=0&&tt(s,s.prev,t)>=0:tt(s,t,s.prev)<0||tt(s,s.next,t)<0}function Cl(s,t){let e=s,i=false;const r=(s.x+t.x)/2,n=(s.y+t.y)/2;do e.y>n!=e.next.y>n&&e.next.y!==e.y&&r<(e.next.x-e.x)*(n-e.y)/(e.next.y-e.y)+e.x&&(i=!i),e=e.next;while(e!==s);return i}function xo(s,t){const e=zs(s.i,s.x,s.y),i=zs(t.i,t.x,t.y),r=s.next,n=t.prev;return s.next=t,t.prev=s,e.next=r,r.prev=e,i.next=e,e.prev=i,n.next=i,i.prev=n,i}function zr(s,t,e,i){const r=zs(s,t,e);return i?(r.next=i.next,r.prev=i,i.next.prev=r,i.next=r):(r.prev=r,r.next=r),r}function qe(s){s.next.prev=s.prev,s.prev.next=s.next,s.prevZ&&(s.prevZ.nextZ=s.nextZ),s.nextZ&&(s.nextZ.prevZ=s.prevZ);}function zs(s,t,e){return {i:s,x:t,y:e,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:false}}function Ml(s,t,e,i){let r=0;for(let n=t,o=e-i;n(s[s.NONE=0]="NONE",s[s.COLOR=16384]="COLOR",s[s.STENCIL=1024]="STENCIL",s[s.DEPTH=256]="DEPTH",s[s.COLOR_DEPTH=16640]="COLOR_DEPTH",s[s.COLOR_STENCIL=17408]="COLOR_STENCIL",s[s.DEPTH_STENCIL=1280]="DEPTH_STENCIL",s[s.ALL=17664]="ALL",s))(bo||{});class Pl{constructor(t){this.items=[],this._name=t;}emit(t,e,i,r,n,o,a,h){const{name:l,items:c}=this;for(let u=0,f=c.length;u{this.runners[e]=new Pl(e);});}_addSystems(t){let e;for(e in t){const i=t[e];this._addSystem(i.value,i.name);}}_addSystem(t,e){const i=new t(this);if(this[e])throw new Error(`Whoops! The name "${e}" is already in use`);this[e]=i,this._systemsHash[e]=i;for(const r in this.runners)this.runners[r].add(i);return this}_addPipes(t,e){const i=e.reduce((r,n)=>(r[n.name]=n.value,r),{});t.forEach(r=>{const n=r.value,o=r.name,a=i[o];this.renderPipes[o]=new n(this,a?new a:null),this.runners.destroy.add(this.renderPipes[o]);});}destroy(t=false){this.runners.destroy.items.reverse(),this.runners.destroy.emit(t),(t===true||typeof t=="object"&&t.releaseGlobalResources)&&Qe.release(),Object.values(this.runners).forEach(e=>{e.destroy();}),this._systemsHash=null,this.renderPipes=null;}generateTexture(t){return this.textureGenerator.generateTexture(t)}get roundPixels(){return !!this._roundPixels}_unsafeEvalCheck(){if(!ul())throw new Error("Current environment does not allow unsafe-eval, please use pixi.js/unsafe-eval module to enable support.")}resetState(){this.runners.resetState.emit();}};wo.defaultOptions={resolution:1,failIfMajorPerformanceCaveat:false,roundPixels:false};let ko=wo,li;function zl(s){return li!==void 0||(li=(()=>{const t={stencil:true,failIfMajorPerformanceCaveat:s??ko.defaultOptions.failIfMajorPerformanceCaveat};try{if(!$.get().getWebGLRenderingContext())return !1;let i=$.get().createCanvas().getContext("webgl",t);const r=!!i?.getContextAttributes()?.stencil;if(i){const n=i.getExtension("WEBGL_lose_context");n&&n.loseContext();}return i=null,r}catch{return false}})()),li}let ci;async function El(s={}){return ci!==void 0||(ci=await(async()=>{const t=$.get().getNavigator().gpu;if(!t)return false;try{return await(await t.requestAdapter(s)).requestDevice(),!0}catch{return false}})()),ci}const Er=["webgl","webgpu","canvas"];async function Rl(s){let t=[];s.preference?(t.push(s.preference),Er.forEach(n=>{n!==s.preference&&t.push(n);})):t=Er.slice();let e,i={};for(let n=0;n{e.init.call(this,t);});}render(){this.renderer.render({container:this.stage});}get canvas(){return this.renderer.canvas}get view(){return D(j,"Application.view is deprecated, please use Application.canvas instead."),this.renderer.canvas}get screen(){return this.renderer.screen}destroy(t=false,e=false){const i=Es._plugins.slice(0);i.reverse(),i.forEach(r=>{r.destroy.call(this);}),this.stage.destroy(e),this.stage=null,this.renderer.destroy(t),this.renderer=null;}};Co._plugins=[];let Mo=Co;ft.handleByList(B.Application,Mo._plugins);ft.add(So);class To extends Ot{constructor(){super(...arguments),this.chars=Object.create(null),this.lineHeight=0,this.fontFamily="",this.fontMetrics={fontSize:0,ascent:0,descent:0},this.baseLineOffset=0,this.distanceField={type:"none",range:0},this.pages=[],this.applyFillAsTint=true,this.baseMeasurementFontSize=100,this.baseRenderedFontSize=100;}get font(){return D(j,"BitmapFont.font is deprecated, please use BitmapFont.fontFamily instead."),this.fontFamily}get pageTextures(){return D(j,"BitmapFont.pageTextures is deprecated, please use BitmapFont.pages instead."),this.pages}get size(){return D(j,"BitmapFont.size is deprecated, please use BitmapFont.fontMetrics.fontSize instead."),this.fontMetrics.fontSize}get distanceFieldRange(){return D(j,"BitmapFont.distanceFieldRange is deprecated, please use BitmapFont.distanceField.range instead."),this.distanceField.range}get distanceFieldType(){return D(j,"BitmapFont.distanceFieldType is deprecated, please use BitmapFont.distanceField.type instead."),this.distanceField.type}destroy(t=false){this.emit("destroy",this),this.removeAllListeners();for(const e in this.chars)this.chars[e].texture?.destroy();this.chars=null,t&&(this.pages.forEach(e=>e.texture.destroy(true)),this.pages=null);}}class Bl{constructor(t=0,e=0,i=false){this.first=null,this.items=Object.create(null),this.last=null,this.max=t,this.resetTtl=i,this.size=0,this.ttl=e;}clear(){return this.first=null,this.items=Object.create(null),this.last=null,this.size=0,this}delete(t){if(this.has(t)){const e=this.items[t];delete this.items[t],this.size--,e.prev!==null&&(e.prev.next=e.next),e.next!==null&&(e.next.prev=e.prev),this.first===e&&(this.first=e.next),this.last===e&&(this.last=e.prev);}return this}entries(t=this.keys()){const e=new Array(t.length);for(let i=0;i0){const e=this.first;delete this.items[e.key],--this.size===0?(this.first=null,this.last=null):(this.first=e.next,this.first.prev=null);}return this}expiresAt(t){let e;return this.has(t)&&(e=this.items[t].expiry),e}get(t){const e=this.items[t];if(e!==void 0){if(this.ttl>0&&e.expiry<=Date.now()){this.delete(t);return}return this.moveToEnd(e),e.value}}has(t){return t in this.items}moveToEnd(t){this.last!==t&&(t.prev!==null&&(t.prev.next=t.next),t.next!==null&&(t.next.prev=t.prev),this.first===t&&(this.first=t.next),t.prev=this.last,t.next=null,this.last!==null&&(this.last.next=t),this.last=t,this.first===null&&(this.first=t));}keys(){const t=new Array(this.size);let e=this.first,i=0;for(;e!==null;)t[i++]=e.key,e=e.next;return t}setWithEvicted(t,e,i=this.resetTtl){let r=null;if(this.has(t))this.set(t,e,true,i);else {this.max>0&&this.size===this.max&&(r={...this.first},this.evict(true));let n=this.items[t]={expiry:this.ttl>0?Date.now()+this.ttl:this.ttl,key:t,prev:this.last,next:null,value:e};++this.size===1?this.first=n:this.last.next=n,this.last=n;}return r}set(t,e,i=false,r=this.resetTtl){let n=this.items[t];return i||n!==void 0?(n.value=e,i===false&&r&&(n.expiry=this.ttl>0?Date.now()+this.ttl:this.ttl),this.moveToEnd(n)):(this.max>0&&this.size===this.max&&this.evict(true),n=this.items[t]={expiry:this.ttl>0?Date.now()+this.ttl:this.ttl,key:t,prev:this.last,next:null,value:e},++this.size===1?this.first=n:this.last.next=n,this.last=n),this}values(t=this.keys()){const e=new Array(t.length);for(let i=0;i=0;i--){let r=e[i].trim();!/([\"\'])[^\'\"]+\1/.test(r)&&!Ll.includes(r)&&(r=`"${r}"`),e[i]=r;}return `${s.fontStyle} ${s.fontVariant} ${s.fontWeight} ${t} ${e.join(",")}`}const rs={willReadFrequently:true},Gt=class z{static get experimentalLetterSpacingSupported(){let t=z._experimentalLetterSpacingSupported;if(t===void 0){const e=$.get().getCanvasRenderingContext2D().prototype;t=z._experimentalLetterSpacingSupported="letterSpacing"in e||"textLetterSpacing"in e;}return t}constructor(t,e,i,r,n,o,a,h,l){this.text=t,this.style=e,this.width=i,this.height=r,this.lines=n,this.lineWidths=o,this.lineHeight=a,this.maxLineWidth=h,this.fontProperties=l;}static measureText(t=" ",e,i=z._canvas,r=e.wordWrap){const n=`${t}-${e.styleKey}-wordWrap-${r}`;if(z._measurementCache.has(n))return z._measurementCache.get(n);const o=Rs(e),a=z.measureFont(o);a.fontSize===0&&(a.fontSize=e.fontSize,a.ascent=e.fontSize);const h=z.__context;h.font=o;const c=(r?z._wordWrap(t,e,i):t).split(/(?:\r\n|\r|\n)/),u=new Array(c.length);let f=0;for(let y=0;y0)if(r)o-=e,l-=e;else {const c=(z.graphemeSegmenter(t).length-1)*e;o+=c,l+=c;}return Math.max(o,l)}static _wordWrap(t,e,i=z._canvas){const r=i.getContext("2d",rs);let n=0,o="",a="";const h=Object.create(null),{letterSpacing:l,whiteSpace:c}=e,u=z._collapseSpaces(c),f=z._collapseNewlines(c);let d=!u;const _=e.wordWrapWidth+l,g=z._tokenize(t);for(let p=0;p_)if(o!==""&&(a+=z._addLine(o),o="",n=0),z.canBreakWords(m,e.breakWords)){const x=z.wordWrapSplit(m);for(let b=0;b_&&(a+=z._addLine(o),d=false,o="",n=0),o+=A,n+=E;}}else {o.length>0&&(a+=z._addLine(o),o="",n=0);const x=p===g.length-1;a+=z._addLine(m,!x),d=false,o="",n=0;}else y+n>_&&(d=false,a+=z._addLine(o),o="",n=0),(o.length>0||!z.isBreakingSpace(m)||d)&&(o+=m,n+=y);}return a+=z._addLine(o,false),a}static _addLine(t,e=true){return t=z._trimRight(t),t=e?`${t} +`:t,t}static _getFromCache(t,e,i,r){let n=i[t];return typeof n!="number"&&(n=z._measureText(t,e,r)+e,i[t]=n),n}static _collapseSpaces(t){return t==="normal"||t==="pre-line"}static _collapseNewlines(t){return t==="normal"}static _trimRight(t){if(typeof t!="string")return "";for(let e=t.length-1;e>=0;e--){const i=t[e];if(!z.isBreakingSpace(i))break;t=t.slice(0,-1);}return t}static _isNewline(t){return typeof t!="string"?false:z._newlines.includes(t.charCodeAt(0))}static isBreakingSpace(t,e){return typeof t!="string"?false:z._breakingSpaces.includes(t.charCodeAt(0))}static _tokenize(t){const e=[];let i="";if(typeof t!="string")return e;for(let r=0;r{if(typeof Intl?.Segmenter=="function"){const s=new Intl.Segmenter;return t=>{const e=s.segment(t),i=[];let r=0;for(const n of e)i[r++]=n.segment;return i}}return s=>[...s]})();Gt.experimentalLetterSpacing=false;Gt._fonts={};Gt._newlines=[10,13];Gt._breakingSpaces=[9,32,8192,8193,8194,8195,8196,8197,8198,8200,8201,8202,8287,12288];Gt._measurementCache=Po(1e3);let gi=Gt;const Rr=[{offset:0,color:"white"},{offset:1,color:"black"}],Ks=class Fs{constructor(...t){this.uid=st("fillGradient"),this._tick=0,this.type="linear",this.colorStops=[];let e=Ol(t);e={...e.type==="radial"?Fs.defaultRadialOptions:Fs.defaultLinearOptions,...zn(e)},this._textureSize=e.textureSize,this._wrapMode=e.wrapMode,e.type==="radial"?(this.center=e.center,this.outerCenter=e.outerCenter??this.center,this.innerRadius=e.innerRadius,this.outerRadius=e.outerRadius,this.scale=e.scale,this.rotation=e.rotation):(this.start=e.start,this.end=e.end),this.textureSpace=e.textureSpace,this.type=e.type,e.colorStops.forEach(r=>{this.addColorStop(r.offset,r.color);});}addColorStop(t,e){return this.colorStops.push({offset:t,color:ot.shared.setValue(e).toHexa()}),this}buildLinearGradient(){if(this.texture)return;let{x:t,y:e}=this.start,{x:i,y:r}=this.end,n=i-t,o=r-e;const a=n<0||o<0;if(this._wrapMode==="clamp-to-edge"){if(n<0){const p=t;t=i,i=p,n*=-1;}if(o<0){const p=e;e=r,r=p,o*=-1;}}const h=this.colorStops.length?this.colorStops:Rr,l=this._textureSize,{canvas:c,context:u}=Br(l,1),f=a?u.createLinearGradient(this._textureSize,0,0,0):u.createLinearGradient(0,0,this._textureSize,0);Fr(f,h),u.fillStyle=f,u.fillRect(0,0,l,1),this.texture=new W({source:new ce({resource:c,addressMode:this._wrapMode})});const d=Math.sqrt(n*n+o*o),_=Math.atan2(o,n),g=new H;g.scale(d/l,1),g.rotate(_),g.translate(t,e),this.textureSpace==="local"&&g.scale(l,l),this.transform=g;}buildGradient(){this.texture||this._tick++,this.type==="linear"?this.buildLinearGradient():this.buildRadialGradient();}buildRadialGradient(){if(this.texture)return;const t=this.colorStops.length?this.colorStops:Rr,e=this._textureSize,{canvas:i,context:r}=Br(e,e),{x:n,y:o}=this.center,{x:a,y:h}=this.outerCenter,l=this.innerRadius,c=this.outerRadius,u=a-c,f=h-c,d=e/(c*2),_=(n-u)*d,g=(o-f)*d,p=r.createRadialGradient(_,g,l*d,(a-u)*d,(h-f)*d,c*d);Fr(p,t),r.fillStyle=t[t.length-1].color,r.fillRect(0,0,e,e),r.fillStyle=p,r.translate(_,g),r.rotate(this.rotation),r.scale(1,this.scale),r.translate(-_,-g),r.fillRect(0,0,e,e),this.texture=new W({source:new ce({resource:i,addressMode:this._wrapMode})});const m=new H;m.scale(1/d,1/d),m.translate(u,f),this.textureSpace==="local"&&m.scale(e,e),this.transform=m;}destroy(){this.texture?.destroy(true),this.texture=null,this.transform=null,this.colorStops=[],this.start=null,this.end=null,this.center=null,this.outerCenter=null;}get styleKey(){return `fill-gradient-${this.uid}-${this._tick}`}};Ks.defaultLinearOptions={start:{x:0,y:0},end:{x:0,y:1},colorStops:[],textureSpace:"local",type:"linear",textureSize:256,wrapMode:"clamp-to-edge"};Ks.defaultRadialOptions={center:{x:.5,y:.5},innerRadius:0,outerRadius:.5,colorStops:[],scale:1,textureSpace:"local",type:"radial",textureSize:256,wrapMode:"clamp-to-edge"};let Xt=Ks;function Fr(s,t){for(let e=0;e2&&(o.push([h].concat(l.splice(0,2))),c="l",h=h=="m"?"l":"L");;){if(l.length==s[c])return l.unshift(h),o.push(l);if(l.length0&&(r=i.pop(),r?(n=r.startX,o=r.startY):(n=0,o=0)),r=null;break;default:J(`Unknown SVG path command: ${l}`);}l!=="Z"&&l!=="z"&&r===null&&(r={startX:n,startY:o},i.push(r));}return t}class Zs{constructor(t=0,e=0,i=0){this.type="circle",this.x=t,this.y=e,this.radius=i;}clone(){return new Zs(this.x,this.y,this.radius)}contains(t,e){if(this.radius<=0)return false;const i=this.radius*this.radius;let r=this.x-t,n=this.y-e;return r*=r,n*=n,r+n<=i}strokeContains(t,e,i,r=.5){if(this.radius===0)return false;const n=this.x-t,o=this.y-e,a=this.radius,h=(1-r)*i,l=Math.sqrt(n*n+o*o);return l<=a+h&&l>a-(i-h)}getBounds(t){return t||(t=new Z),t.x=this.x-this.radius,t.y=this.y-this.radius,t.width=this.radius*2,t.height=this.radius*2,t}copyFrom(t){return this.x=t.x,this.y=t.y,this.radius=t.radius,this}copyTo(t){return t.copyFrom(this),t}toString(){return `[pixi.js/math:Circle x=${this.x} y=${this.y} radius=${this.radius}]`}}class Qs{constructor(t=0,e=0,i=0,r=0){this.type="ellipse",this.x=t,this.y=e,this.halfWidth=i,this.halfHeight=r;}clone(){return new Qs(this.x,this.y,this.halfWidth,this.halfHeight)}contains(t,e){if(this.halfWidth<=0||this.halfHeight<=0)return false;let i=(t-this.x)/this.halfWidth,r=(e-this.y)/this.halfHeight;return i*=i,r*=r,i+r<=1}strokeContains(t,e,i,r=.5){const{halfWidth:n,halfHeight:o}=this;if(n<=0||o<=0)return false;const a=i*(1-r),h=i-a,l=n-h,c=o-h,u=n+a,f=o+a,d=t-this.x,_=e-this.y,g=d*d/(l*l)+_*_/(c*c),p=d*d/(u*u)+_*_/(f*f);return g>1&&p<=1}getBounds(t){return t||(t=new Z),t.x=this.x-this.halfWidth,t.y=this.y-this.halfHeight,t.width=this.halfWidth*2,t.height=this.halfHeight*2,t}copyFrom(t){return this.x=t.x,this.y=t.y,this.halfWidth=t.halfWidth,this.halfHeight=t.halfHeight,this}copyTo(t){return t.copyFrom(this),t}toString(){return `[pixi.js/math:Ellipse x=${this.x} y=${this.y} halfWidth=${this.halfWidth} halfHeight=${this.halfHeight}]`}}function Wl(s,t,e,i,r,n){const o=s-e,a=t-i,h=r-e,l=n-i,c=o*h+a*l,u=h*h+l*l;let f=-1;u!==0&&(f=c/u);let d,_;f<0?(d=e,_=i):f>1?(d=r,_=n):(d=e+f*h,_=i+f*l);const g=s-d,p=t-_;return g*g+p*p}let Hl,Vl;class He{constructor(...t){this.type="polygon";let e=Array.isArray(t[0])?t[0]:t;if(typeof e[0]!="number"){const i=[];for(let r=0,n=e.length;re!=c>e&&t<(l-a)*((e-h)/(c-h))+a&&(i=!i);}return i}strokeContains(t,e,i,r=.5){const n=i*i,o=n*(1-r),a=n-o,{points:h}=this,l=h.length-(this.closePath?0:2);for(let c=0;cr?l:r,n=co?c:o;}return t.x=i,t.width=r-i,t.y=n,t.height=o-n,t}copyFrom(t){return this.points=t.points.slice(),this.closePath=t.closePath,this}copyTo(t){return t.copyFrom(this),t}toString(){return `[pixi.js/math:PolygoncloseStroke=${this.closePath}points=${this.points.reduce((t,e)=>`${t}, ${e}`,"")}]`}get lastX(){return this.points[this.points.length-2]}get lastY(){return this.points[this.points.length-1]}get x(){return D("8.11.0","Polygon.lastX is deprecated, please use Polygon.lastX instead."),this.points[this.points.length-2]}get y(){return D("8.11.0","Polygon.y is deprecated, please use Polygon.lastY instead."),this.points[this.points.length-1]}get startX(){return this.points[0]}get startY(){return this.points[1]}}const ui=(s,t,e,i,r,n,o)=>{const a=s-e,h=t-i,l=Math.sqrt(a*a+h*h);return l>=r-n&&l<=r+o};class Js{constructor(t=0,e=0,i=0,r=0,n=20){this.type="roundedRectangle",this.x=t,this.y=e,this.width=i,this.height=r,this.radius=n;}getBounds(t){return t||(t=new Z),t.x=this.x,t.y=this.y,t.width=this.width,t.height=this.height,t}clone(){return new Js(this.x,this.y,this.width,this.height,this.radius)}copyFrom(t){return this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height,this}copyTo(t){return t.copyFrom(this),t}contains(t,e){if(this.width<=0||this.height<=0)return false;if(t>=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height){const i=Math.max(0,Math.min(this.radius,Math.min(this.width,this.height)/2));if(e>=this.y+i&&e<=this.y+this.height-i||t>=this.x+i&&t<=this.x+this.width-i)return true;let r=t-(this.x+i),n=e-(this.y+i);const o=i*i;if(r*r+n*n<=o||(r=t-(this.x+this.width-i),r*r+n*n<=o)||(n=e-(this.y+this.height-i),r*r+n*n<=o)||(r=t-(this.x+i),r*r+n*n<=o))return true}return false}strokeContains(t,e,i,r=.5){const{x:n,y:o,width:a,height:h,radius:l}=this,c=i*(1-r),u=i-c,f=n+l,d=o+l,_=a-l*2,g=h-l*2,p=n+a,m=o+h;return (t>=n-c&&t<=n+u||t>=p-u&&t<=p+c)&&e>=d&&e<=d+g||(e>=o-c&&e<=o+u||e>=m-u&&e<=m+c)&&t>=f&&t<=f+_?true:tp-l&&ep-l&&e>m-l&&ui(t,e,p-l,m-l,l,u,c)||tm-l&&ui(t,e,f,m-l,l,u,c)}toString(){return `[pixi.js/math:RoundedRectangle x=${this.x} y=${this.y}width=${this.width} height=${this.height} radius=${this.radius}]`}}const Io={};function Yl(s,t,e){let i=2166136261;for(let r=0;r>>=0;return Io[i]||Xl(s,t,i,e)}function Xl(s,t,e,i){const r={};let n=0;for(let a=0;a0){const o=new Uint8Array(s,e*8,n);new Uint8Array(t,e*8,n).set(o);}}const jl={normal:"normal-npm",add:"add-npm",screen:"screen-npm"};var ql=(s=>(s[s.DISABLED=0]="DISABLED",s[s.RENDERING_MASK_ADD=1]="RENDERING_MASK_ADD",s[s.MASK_ACTIVE=2]="MASK_ACTIVE",s[s.INVERSE_MASK_ACTIVE=3]="INVERSE_MASK_ACTIVE",s[s.RENDERING_MASK_REMOVE=4]="RENDERING_MASK_REMOVE",s[s.NONE=5]="NONE",s))(ql||{});function Ur(s,t){return t.alphaMode==="no-premultiply-alpha"&&jl[s]||s}const Kl=["precision mediump float;","void main(void){","float test = 0.1;","%forloop%","gl_FragColor = vec4(0.0);","}"].join(` +`);function Zl(s){let t="";for(let e=0;e0&&(t+=` +else `),e{if(Ve.length>0)for(const s of Ve)s&&s.destroy();Ve.length=0,ki=0;}});function Nr(){return ki>0?Ve[--ki]:new tc}function Wr(s){Ve[ki++]=s;}let Fe=0;const zo=class Eo{constructor(t){this.uid=st("batcher"),this.dirty=true,this.batchIndex=0,this.batches=[],this._elements=[],t={...Eo.defaultOptions,...t},t.maxTextures||(D("v8.8.0","maxTextures is a required option for Batcher now, please pass it in the options"),t.maxTextures=Jl());const{maxTextures:e,attributesInitialSize:i,indicesInitialSize:r}=t;this.attributeBuffer=new Gr(i*4),this.indexBuffer=new Uint16Array(r),this.maxTextures=e;}begin(){this.elementSize=0,this.elementStart=0,this.indexSize=0,this.attributeSize=0;for(let t=0;tthis.attributeBuffer.size&&this._resizeAttributeBuffer(this.attributeSize*4),this.indexSize>this.indexBuffer.length&&this._resizeIndexBuffer(this.indexSize);const h=this.attributeBuffer.float32View,l=this.attributeBuffer.uint32View,c=this.indexBuffer;let u=this._batchIndexSize,f=this._batchIndexStart,d="startBatch";const _=this.maxTextures;for(let g=this.elementStart;g=_||b)&&(this._finishBatch(i,f,u-f,r,o,a,t,d),d="renderBatch",f=u,o=x,a=p.topology,i=Nr(),r=i.textures,r.clear(),++Fe),p._textureId=y._textureBindLocation=r.count,r.ids[y.uid]=r.count,r.textures[r.count++]=y,p._batch=i,u+=p.indexSize,p.packAsQuad?(this.packQuadAttributes(p,h,l,p._attributeStart,p._textureId),this.packQuadIndex(c,p._indexStart,p._attributeStart/this.vertexSize)):(this.packAttributes(p,h,l,p._attributeStart,p._textureId),this.packIndex(p,c,p._indexStart,p._attributeStart/this.vertexSize));}r.count>0&&(this._finishBatch(i,f,u-f,r,o,a,t,d),f=u,++Fe),this.elementStart=this.elementSize,this._batchIndexStart=f,this._batchIndexSize=u;}_finishBatch(t,e,i,r,n,o,a,h){t.gpuBindGroup=null,t.bindGroup=null,t.action=h,t.batcher=this,t.textures=r,t.blendMode=n,t.topology=o,t.start=e,t.size=i,++Fe,this.batches[this.batchIndex++]=t,a.add(t);}finish(t){this.break(t);}ensureAttributeBuffer(t){t*4<=this.attributeBuffer.size||this._resizeAttributeBuffer(t*4);}ensureIndexBuffer(t){t<=this.indexBuffer.length||this._resizeIndexBuffer(t);}_resizeAttributeBuffer(t){const e=Math.max(t,this.attributeBuffer.size*2),i=new Gr(e);Dr(this.attributeBuffer.rawBinaryData,i.rawBinaryData),this.attributeBuffer=i;}_resizeIndexBuffer(t){const e=this.indexBuffer;let i=Math.max(t,e.length*1.5);i+=i%2;const r=i>65535?new Uint32Array(i):new Uint16Array(i);if(r.BYTES_PER_ELEMENT!==e.BYTES_PER_ELEMENT)for(let n=0;n(s[s.MAP_READ=1]="MAP_READ",s[s.MAP_WRITE=2]="MAP_WRITE",s[s.COPY_SRC=4]="COPY_SRC",s[s.COPY_DST=8]="COPY_DST",s[s.INDEX=16]="INDEX",s[s.VERTEX=32]="VERTEX",s[s.UNIFORM=64]="UNIFORM",s[s.STORAGE=128]="STORAGE",s[s.INDIRECT=256]="INDIRECT",s[s.QUERY_RESOLVE=512]="QUERY_RESOLVE",s[s.STATIC=1024]="STATIC",s))(vt||{});class Ke extends Ot{constructor(t){let{data:e,size:i}=t;const{usage:r,label:n,shrinkToFit:o}=t;super(),this._gpuData=Object.create(null),this._gcLastUsed=-1,this.autoGarbageCollect=true,this.uid=st("buffer"),this._resourceType="buffer",this._resourceId=st("resource"),this._touched=0,this._updateID=1,this._dataInt32=null,this.shrinkToFit=true,this.destroyed=false,e instanceof Array&&(e=new Float32Array(e)),this._data=e,i??(i=e?.byteLength);const a=!!e;this.descriptor={size:i,usage:r,mappedAtCreation:a,label:n},this.shrinkToFit=o??true;}get data(){return this._data}set data(t){this.setDataWithSize(t,t.length,true);}get dataInt32(){return this._dataInt32||(this._dataInt32=new Int32Array(this.data.buffer)),this._dataInt32}get static(){return !!(this.descriptor.usage&vt.STATIC)}set static(t){t?this.descriptor.usage|=vt.STATIC:this.descriptor.usage&=~vt.STATIC;}setDataWithSize(t,e,i){if(this._updateID++,this._updateSize=e*t.BYTES_PER_ELEMENT,this._data===t){i&&this.emit("update",this);return}const r=this._data;if(this._data=t,this._dataInt32=null,!r||r.length!==t.length){!this.shrinkToFit&&r&&t.byteLengtha&&(a=d),_>h&&(h=_),de.destroy()),this.unload(),this.indexBuffer?.destroy(),this.attributes=null,this.buffers=null,this.indexBuffer=null,this._bounds=null;}}const nc=new Float32Array(1),oc=new Uint32Array(1);class ac extends rc{constructor(){const e=new Ke({data:nc,label:"attribute-batch-buffer",usage:vt.VERTEX|vt.COPY_DST,shrinkToFit:false}),i=new Ke({data:oc,label:"index-batch-buffer",usage:vt.INDEX|vt.COPY_DST,shrinkToFit:false}),r=24;super({attributes:{aPosition:{buffer:e,format:"float32x2",stride:r,offset:0},aUV:{buffer:e,format:"float32x2",stride:r,offset:8},aColor:{buffer:e,format:"unorm8x4",stride:r,offset:16},aTextureIdAndRound:{buffer:e,format:"uint16x2",stride:r,offset:20}},indexBuffer:i});}}function Hr(s,t,e){if(s)for(const i in s){const r=i.toLocaleLowerCase(),n=t[r];if(n){let o=s[i];i==="header"&&(o=o.replace(/@in\s+[^;]+;\s*/g,"").replace(/@out\s+[^;]+;\s*/g,"")),e&&n.push(`//----${e}----//`),n.push(o);}else J(`${i} placement hook does not exist in shader`);}}const hc=/\{\{(.*?)\}\}/g;function Vr(s){const t={};return (s.match(hc)?.map(i=>i.replace(/[{()}]/g,""))??[]).forEach(i=>{t[i]=[];}),t}function Yr(s,t){let e;const i=/@in\s+([^;]+);/g;for(;(e=i.exec(s))!==null;)t.push(e[1]);}function Xr(s,t,e=false){const i=[];Yr(t,i),s.forEach(a=>{a.header&&Yr(a.header,i);});const r=i;e&&r.sort();const n=r.map((a,h)=>` @location(${h}) ${a},`).join(` +`);let o=t.replace(/@in\s+[^;]+;\s*/g,"");return o=o.replace("{{in}}",` +${n} +`),o}function jr(s,t){let e;const i=/@out\s+([^;]+);/g;for(;(e=i.exec(s))!==null;)t.push(e[1]);}function lc(s){const e=/\b(\w+)\s*:/g.exec(s);return e?e[1]:""}function cc(s){const t=/@.*?\s+/g;return s.replace(t,"")}function uc(s,t){const e=[];jr(t,e),s.forEach(h=>{h.header&&jr(h.header,e);});let i=0;const r=e.sort().map(h=>h.indexOf("builtin")>-1?h:`@location(${i++}) ${h}`).join(`, +`),n=e.sort().map(h=>` var ${cc(h)};`).join(` +`),o=`return VSOutput( + ${e.sort().map(h=>` ${lc(h)}`).join(`, +`)});`;let a=t.replace(/@out\s+[^;]+;\s*/g,"");return a=a.replace("{{struct}}",` +${r} +`),a=a.replace("{{start}}",` +${n} +`),a=a.replace("{{return}}",` +${o} +`),a}function qr(s,t){let e=s;for(const i in t){const r=t[i];r.join(` +`).length?e=e.replace(`{{${i}}}`,`//-----${i} START-----// +${r.join(` +`)} +//----${i} FINISH----//`):e=e.replace(`{{${i}}}`,"");}return e}const Kt=Object.create(null),os=new Map;let dc=0;function fc({template:s,bits:t}){const e=Fo(s,t);if(Kt[e])return Kt[e];const{vertex:i,fragment:r}=pc(s,t);return Kt[e]=Bo(i,r,t),Kt[e]}function _c({template:s,bits:t}){const e=Fo(s,t);return Kt[e]||(Kt[e]=Bo(s.vertex,s.fragment,t)),Kt[e]}function pc(s,t){const e=t.map(o=>o.vertex).filter(o=>!!o),i=t.map(o=>o.fragment).filter(o=>!!o);let r=Xr(e,s.vertex,true);r=uc(e,r);const n=Xr(i,s.fragment,true);return {vertex:r,fragment:n}}function Fo(s,t){return t.map(e=>(os.has(e)||os.set(e,dc++),os.get(e))).sort((e,i)=>e-i).join("-")+s.vertex+s.fragment}function Bo(s,t,e){const i=Vr(s),r=Vr(t);return e.forEach(n=>{Hr(n.vertex,i,n.name),Hr(n.fragment,r,n.name);}),{vertex:qr(s,i),fragment:qr(t,r)}}const gc=` + @in aPosition: vec2; + @in aUV: vec2; + + @out @builtin(position) vPosition: vec4; + @out vUV : vec2; + @out vColor : vec4; + + {{header}} + + struct VSOutput { + {{struct}} + }; + + @vertex + fn main( {{in}} ) -> VSOutput { + + var worldTransformMatrix = globalUniforms.uWorldTransformMatrix; + var modelMatrix = mat3x3( + 1.0, 0.0, 0.0, + 0.0, 1.0, 0.0, + 0.0, 0.0, 1.0 + ); + var position = aPosition; + var uv = aUV; + + {{start}} + + vColor = vec4(1., 1., 1., 1.); + + {{main}} + + vUV = uv; + + var modelViewProjectionMatrix = globalUniforms.uProjectionMatrix * worldTransformMatrix * modelMatrix; + + vPosition = vec4((modelViewProjectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0); + + vColor *= globalUniforms.uWorldColorAlpha; + + {{end}} + + {{return}} + }; +`,mc=` + @in vUV : vec2; + @in vColor : vec4; + + {{header}} + + @fragment + fn main( + {{in}} + ) -> @location(0) vec4 { + + {{start}} + + var outColor:vec4; + + {{main}} + + var finalColor:vec4 = outColor * vColor; + + {{end}} + + return finalColor; + }; +`,yc=` + in vec2 aPosition; + in vec2 aUV; + + out vec4 vColor; + out vec2 vUV; + + {{header}} + + void main(void){ + + mat3 worldTransformMatrix = uWorldTransformMatrix; + mat3 modelMatrix = mat3( + 1.0, 0.0, 0.0, + 0.0, 1.0, 0.0, + 0.0, 0.0, 1.0 + ); + vec2 position = aPosition; + vec2 uv = aUV; + + {{start}} + + vColor = vec4(1.); + + {{main}} + + vUV = uv; + + mat3 modelViewProjectionMatrix = uProjectionMatrix * worldTransformMatrix * modelMatrix; + + gl_Position = vec4((modelViewProjectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0); + + vColor *= uWorldColorAlpha; + + {{end}} + } +`,xc=` + + in vec4 vColor; + in vec2 vUV; + + out vec4 finalColor; + + {{header}} + + void main(void) { + + {{start}} + + vec4 outColor; + + {{main}} + + finalColor = outColor * vColor; + + {{end}} + } +`,bc={name:"global-uniforms-bit",vertex:{header:` + struct GlobalUniforms { + uProjectionMatrix:mat3x3, + uWorldTransformMatrix:mat3x3, + uWorldColorAlpha: vec4, + uResolution: vec2, + } + + @group(0) @binding(0) var globalUniforms : GlobalUniforms; + `}},wc={name:"global-uniforms-bit",vertex:{header:` + uniform mat3 uProjectionMatrix; + uniform mat3 uWorldTransformMatrix; + uniform vec4 uWorldColorAlpha; + uniform vec2 uResolution; + `}};function vc({bits:s,name:t}){const e=fc({template:{fragment:mc,vertex:gc},bits:[bc,...s]});return Zt.from({name:t,vertex:{source:e.vertex,entryPoint:"main"},fragment:{source:e.fragment,entryPoint:"main"}})}function kc({bits:s,name:t}){return new ve({name:t,..._c({template:{vertex:yc,fragment:xc},bits:[wc,...s]})})}const Ac={name:"color-bit",vertex:{header:` + @in aColor: vec4; + `,main:` + vColor *= vec4(aColor.rgb * aColor.a, aColor.a); + `}},Sc={name:"color-bit",vertex:{header:` + in vec4 aColor; + `,main:` + vColor *= vec4(aColor.rgb * aColor.a, aColor.a); + `}},as={};function Cc(s){const t=[];if(s===1)t.push("@group(1) @binding(0) var textureSource1: texture_2d;"),t.push("@group(1) @binding(1) var textureSampler1: sampler;");else {let e=0;for(let i=0;i;`),t.push(`@group(1) @binding(${e++}) var textureSampler${i+1}: sampler;`);}return t.join(` +`)}function Mc(s){const t=[];if(s===1)t.push("outColor = textureSampleGrad(textureSource1, textureSampler1, vUV, uvDx, uvDy);");else {t.push("switch vTextureId {");for(let e=0;e; + @out @interpolate(flat) vTextureId : u32; + `,main:` + vTextureId = aTextureIdAndRound.y; + `,end:` + if(aTextureIdAndRound.x == 1) + { + vPosition = vec4(roundPixels(vPosition.xy, globalUniforms.uResolution), vPosition.zw); + } + `},fragment:{header:` + @in @interpolate(flat) vTextureId: u32; + + ${Cc(s)} + `,main:` + var uvDx = dpdx(vUV); + var uvDy = dpdy(vUV); + + ${Mc(s)} + `}}),as[s]}const hs={};function Pc(s){const t=[];for(let e=0;e0&&t.push("else"),e, targetSize: vec2) -> vec2 + { + return (floor(((position * 0.5 + 0.5) * targetSize) + 0.5) / targetSize) * 2.0 - 1.0; + } + `}},Ec={name:"round-pixels-bit",vertex:{header:` + vec2 roundPixels(vec2 position, vec2 targetSize) + { + return (floor(((position * 0.5 + 0.5) * targetSize) + 0.5) / targetSize) * 2.0 - 1.0; + } + `}},Kr={};function Rc(s){let t=Kr[s];if(t)return t;const e=new Int32Array(s);for(let i=0;ie&&this.remove(e,...t));}destroy(...t){this.removeAll(...t),this.items=Object.create(null),this._renderer=null,this._onUnload=null;}}function Lc(s,t,e,i,r,n,o,a=null){let h=0;e*=t,r*=n;const l=a.a,c=a.b,u=a.c,f=a.d,d=a.tx,_=a.ty;for(;h>16|t&65280|(t&255)<<16,i=this.renderable;return i?Nn(e,i.groupColor)+(this.alpha*i.groupAlpha*255<<24):e+(this.alpha*255<<24)}get transform(){return this.renderable?.groupTransform||Gc}copyTo(t){t.indexOffset=this.indexOffset,t.indexSize=this.indexSize,t.attributeOffset=this.attributeOffset,t.attributeSize=this.attributeSize,t.baseColor=this.baseColor,t.alpha=this.alpha,t.texture=this.texture,t.geometryData=this.geometryData,t.topology=this.topology;}reset(){this.applyTransform=true,this.renderable=null,this.topology="triangle-list";}destroy(){this.renderable=null,this.texture=null,this.geometryData=null,this._batcher=null,this._batch=null;}}const Ze={extension:{type:B.ShapeBuilder,name:"circle"},build(s,t){let e,i,r,n,o,a;if(s.type==="circle"){const b=s;if(o=a=b.radius,o<=0)return false;e=b.x,i=b.y,r=n=0;}else if(s.type==="ellipse"){const b=s;if(o=b.halfWidth,a=b.halfHeight,o<=0||a<=0)return false;e=b.x,i=b.y,r=n=0;}else {const b=s,A=b.width/2,w=b.height/2;e=b.x+A,i=b.y+w,o=a=Math.max(0,Math.min(b.radius,Math.min(A,w))),r=A-o,n=w-a;}if(r<0||n<0)return false;const h=Math.ceil(2.3*Math.sqrt(o+a)),l=h*8+(r?4:0)+(n?4:0);if(l===0)return false;if(h===0)return t[0]=t[6]=e+r,t[1]=t[3]=i+n,t[2]=t[4]=e-r,t[5]=t[7]=i-n,true;let c=0,u=h*4+(r?2:0)+2,f=u,d=l,_=r+o,g=n,p=e+_,m=e-_,y=i+g;if(t[c++]=p,t[c++]=y,t[--u]=y,t[--u]=m,n){const b=i-g;t[f++]=m,t[f++]=b,t[--d]=b,t[--d]=p;}for(let b=1;b0&&(r[n++]=h,r[n++]=l,r[n++]=h-1),h++;r[n++]=l+1,r[n++]=l,r[n++]=h-1;}},Dc={...Ze,extension:{...Ze.extension,name:"ellipse"}},Uc={...Ze,extension:{...Ze.extension,name:"roundedRectangle"}},Uo=1e-4,Qr=1e-4;function Nc(s){const t=s.length;if(t<6)return 1;let e=0;for(let i=0,r=s[t-2],n=s[t-1];iu&&(u+=Math.PI*2);let f=c;const d=u-c,_=Math.abs(d),g=Math.sqrt(h*h+l*l),p=(15*_*Math.sqrt(g)/Math.PI>>0)+1,m=d/p;if(f+=m,a){o.push(s,t),o.push(e,i);for(let y=1,x=f;y=0&&(a.join==="round"?g+=ee(w,k,w-M*P,k-T*P,w-Y*P,k-X*P,d,false)+4:g+=2,d.push(w-Y*L,k-X*L),d.push(w+Y*P,k+X*P));continue}const rt=(-M+b)*(-T+k)-(-M+w)*(-T+A),O=(-Y+E)*(-X+k)-(-Y+w)*(-X+I),Nt=(_t*O-zt*rt)/Et,qt=(et*rt-xt*O)/Et,ut=(Nt-w)*(Nt-w)+(qt-k)*(qt-k),gt=w+(Nt-w)*P,bt=k+(qt-k)*P,dt=w-(Nt-w)*L,Rt=k-(qt-k)*L,Wt=Math.min(_t*_t+xt*xt,zt*zt+et*et),Me=ct?P:L,zi=Wt+Me*Me*y;ut<=zi?a.join==="bevel"||ut/y>x?(ct?(d.push(gt,bt),d.push(w+M*L,k+T*L),d.push(gt,bt),d.push(w+Y*L,k+X*L)):(d.push(w-M*P,k-T*P),d.push(dt,Rt),d.push(w-Y*P,k-X*P),d.push(dt,Rt)),g+=2):a.join==="round"?ct?(d.push(gt,bt),d.push(w+M*L,k+T*L),g+=ee(w,k,w+M*L,k+T*L,w+Y*L,k+X*L,d,true)+4,d.push(gt,bt),d.push(w+Y*L,k+X*L)):(d.push(w-M*P,k-T*P),d.push(dt,Rt),g+=ee(w,k,w-M*P,k-T*P,w-Y*P,k-X*P,d,false)+4,d.push(w-Y*P,k-X*P),d.push(dt,Rt)):(d.push(gt,bt),d.push(dt,Rt)):(d.push(w-M*P,k-T*P),d.push(w+M*L,k+T*L),a.join==="round"?ct?g+=ee(w,k,w+M*L,k+T*L,w+Y*L,k+X*L,d,true)+2:g+=ee(w,k,w-M*P,k-T*P,w-Y*P,k-X*P,d,false)+2:a.join==="miter"&&ut/y<=x&&(ct?(d.push(dt,Rt),d.push(dt,Rt)):(d.push(gt,bt),d.push(gt,bt)),g+=2),d.push(w-Y*P,k-X*P),d.push(w+Y*L,k+X*L),g+=2);}b=s[(_-2)*2],A=s[(_-2)*2+1],w=s[(_-1)*2],k=s[(_-1)*2+1],M=-(A-k),T=b-w,S=Math.sqrt(M*M+T*T),M/=S,T/=S,M*=m,T*=m,d.push(w-M*P,k-T*P),d.push(w+M*L,k+T*L),u||(a.cap==="round"?g+=ee(w-M*(P-L)*.5,k-T*(P-L)*.5,w-M*P,k-T*P,w+M*L,k+T*L,d,false)+2:a.cap==="square"&&(g+=Jr(w,k,M,T,P,L,false,d)));const F=Qr*Qr;for(let V=p;V0&&o>0?(t[0]=i,t[1]=r,t[2]=i+n,t[3]=r,t[4]=i+n,t[5]=r+o,t[6]=i,t[7]=r+o,true):false},triangulate(s,t,e,i,r,n){let o=0;i*=e,t[i+o]=s[0],t[i+o+1]=s[1],o+=e,t[i+o]=s[2],t[i+o+1]=s[3],o+=e,t[i+o]=s[6],t[i+o+1]=s[7],o+=e,t[i+o]=s[4],t[i+o+1]=s[5],o+=e;const a=i/e;r[n++]=a,r[n++]=a+1,r[n++]=a+2,r[n++]=a+1,r[n++]=a+3,r[n++]=a+2;}},jc={extension:{type:B.ShapeBuilder,name:"triangle"},build(s,t){return t[0]=s.x,t[1]=s.y,t[2]=s.x2,t[3]=s.y2,t[4]=s.x3,t[5]=s.y3,true},triangulate(s,t,e,i,r,n){let o=0;i*=e,t[i+o]=s[0],t[i+o+1]=s[1],o+=e,t[i+o]=s[2],t[i+o+1]=s[3],o+=e,t[i+o]=s[4],t[i+o+1]=s[5];const a=i/e;r[n++]=a,r[n++]=a+1,r[n++]=a+2;}},qc=new H,Kc=new Z;function Zc(s,t,e,i){const r=t.matrix?s.copyFrom(t.matrix).invert():s.identity();if(t.textureSpace==="local"){const o=e.getBounds(Kc);t.width&&o.pad(t.width);const{x:a,y:h}=o,l=1/o.width,c=1/o.height,u=-a*l,f=-h*c,d=r.a,_=r.b,g=r.c,p=r.d;r.a*=l,r.b*=l,r.c*=c,r.d*=c,r.tx=u*d+f*g+r.tx,r.ty=u*_+f*p+r.ty;}else r.translate(t.texture.frame.x,t.texture.frame.y),r.scale(1/t.texture.source.width,1/t.texture.source.height);const n=t.texture.source.style;return !(t.fill instanceof Xt)&&n.addressMode==="clamp-to-edge"&&(n.addressMode="repeat",n.update()),i&&r.append(qc.copyFrom(i).invert()),r}const Pi={};ft.handleByMap(B.ShapeBuilder,Pi);ft.add(Xc,Yc,jc,Ze,Dc,Uc);const Qc=new Z,Jc=new H;function $c(s,t){const{geometryData:e,batches:i}=t;i.length=0,e.indices.length=0,e.vertices.length=0,e.uvs.length=0;for(let r=0;r{const u=[],f=Pi[h.type];if(!f.build(h,u))return;const d=a.length,_=n.length/2;let g="triangle-list";if(l&&Go(u,l),e){const x=h.closePath??true,b=t;b.pixelLine?(Hc(u,x,n,a),g="line-list"):Wc(u,b,false,x,n,a);}else if(c){const x=[],b=u.slice();eu(c).forEach(w=>{x.push(b.length/2),b.push(...w);}),No(b,x,n,2,_,a,d);}else f.triangulate(u,n,2,_,a,d);const p=o.length/2,m=t.texture;if(m!==W.WHITE){const x=Zc(Jc,t,h,l);Lc(n,2,_,o,p,2,n.length/2-_,x);}else Oc(o,p,2,n.length/2-_);const y=Pt.get(Do);y.indexOffset=d,y.indexSize=a.length-d,y.attributeOffset=_,y.attributeSize=n.length/2-_,y.baseColor=t.color,y.alpha=t.alpha,y.texture=m,y.geometryData=r,y.topology=g,i.push(y);});}function eu(s){const t=[];for(let e=0;e{Pt.return(t);}),this.graphicsData&&Pt.return(this.graphicsData),this.isBatchable=false,this.context=null,this.batches.length=0,this.geometryData.indices.length=0,this.geometryData.vertices.length=0,this.geometryData.uvs.length=0,this.graphicsData=null;}destroy(){this.reset(),this.batches=null,this.geometryData=null;}}class su{constructor(){this.instructions=new Yn;}init(t){const e=t.maxTextures;this.batcher?this.batcher._updateMaxTextures(e):this.batcher=new Fc({maxTextures:e}),this.instructions.reset();}get geometry(){return D(Qa,"GraphicsContextRenderData#geometry is deprecated, please use batcher.geometry instead."),this.batcher.geometry}destroy(){this.batcher.destroy(),this.instructions.destroy(),this.batcher=null,this.instructions=null;}}const $s=class Bs{constructor(t){this._renderer=t,this._managedContexts=new Bc({renderer:t,type:"resource",name:"graphicsContext"});}init(t){Bs.defaultOptions.bezierSmoothness=t?.bezierSmoothness??Bs.defaultOptions.bezierSmoothness;}getContextRenderData(t){return t._gpuData[this._renderer.uid].graphicsData||this._initContextRenderData(t)}updateGpuContext(t){const e=!!t._gpuData[this._renderer.uid],i=t._gpuData[this._renderer.uid]||this._initContext(t);if(t.dirty||!e){e&&i.reset(),$c(t,i);const r=t.batchMode;t.customShader||r==="no-batch"?i.isBatchable=false:r==="auto"?i.isBatchable=i.geometryData.vertices.length<400:i.isBatchable=true,t.dirty=false;}return i}getGpuContext(t){return t._gpuData[this._renderer.uid]||this._initContext(t)}_initContextRenderData(t){const e=Pt.get(su,{maxTextures:this._renderer.limits.maxBatchableTextures}),i=t._gpuData[this._renderer.uid],{batches:r,geometryData:n}=i;i.graphicsData=e;const o=n.vertices.length,a=n.indices.length;for(let u=0;uru)return;const u=(s+e)/2,f=(t+i)/2,d=(e+r)/2,_=(i+n)/2,g=(r+o)/2,p=(n+a)/2,m=(u+d)/2,y=(f+_)/2,x=(d+g)/2,b=(_+p)/2,A=(m+x)/2,w=(y+b)/2;if(c>0){let k=o-s,E=a-t;const I=Math.abs((e-o)*E-(i-a)*k),M=Math.abs((r-o)*E-(n-a)*k);if(I>di&&M>di){if((I+M)*(I+M)<=l*(k*k+E*E)){h.push(A,w);return}}else if(I>di){if(I*I<=l*(k*k+E*E)){h.push(A,w);return}}else if(M>di){if(M*M<=l*(k*k+E*E)){h.push(A,w);return}}else if(k=A-(s+o)/2,E=w-(t+a)/2,k*k+E*E<=l){h.push(A,w);return}}Ls(s,t,u,f,m,y,A,w,h,l,c+1),Ls(A,w,x,b,g,p,o,a,h,l,c+1);}const au=8,hu=11920929e-14,lu=1;function cu(s,t,e,i,r,n,o,a){const l=Math.min(.99,Math.max(0,a??Wo.defaultOptions.bezierSmoothness));let c=(lu-l)/1;return c*=c,uu(t,e,i,r,n,o,s,c),s}function uu(s,t,e,i,r,n,o,a){Os(o,s,t,e,i,r,n,a,0),o.push(r,n);}function Os(s,t,e,i,r,n,o,a,h){if(h>au)return;const l=(t+i)/2,c=(e+r)/2,u=(i+n)/2,f=(r+o)/2,d=(l+u)/2,_=(c+f)/2;let g=n-t,p=o-e;const m=Math.abs((i-n)*p-(r-o)*g);if(m>hu){if(m*m<=a*(g*g+p*p)){s.push(d,_);return}}else if(g=d-(t+n)/2,p=_-(e+o)/2,g*g+p*p<=a){s.push(d,_);return}Os(s,t,e,l,c,d,_,a,h+1),Os(s,d,_,u,f,n,o,a,h+1);}function Vo(s,t,e,i,r,n,o,a){let h=Math.abs(r-n);(!o&&r>n||o&&n>r)&&(h=2*Math.PI-h),a||(a=Math.max(6,Math.floor(6*Math.pow(i,1/3)*(h/Math.PI)))),a=Math.max(a,3);let l=h/a,c=r;l*=o?-1:1;for(let u=0;uu*h);}const Ye=Math.PI*2,ls={centerX:0,centerY:0,ang1:0,ang2:0},cs=({x:s,y:t},e,i,r,n,o,a,h)=>{s*=e,t*=i;const l=r*s-n*t,c=n*s+r*t;return h.x=l+o,h.y=c+a,h};function fu(s,t){const e=t===-1.5707963267948966?-0.551915024494:1.3333333333333333*Math.tan(t/4),i=t===1.5707963267948966?.551915024494:e,r=Math.cos(s),n=Math.sin(s),o=Math.cos(s+t),a=Math.sin(s+t);return [{x:r-n*i,y:n+r*i},{x:o+a*i,y:a-o*i},{x:o,y:a}]}const tn=(s,t,e,i)=>{const r=s*i-t*e<0?-1:1;let n=s*e+t*i;return n>1&&(n=1),n<-1&&(n=-1),r*Math.acos(n)},_u=(s,t,e,i,r,n,o,a,h,l,c,u,f)=>{const d=Math.pow(r,2),_=Math.pow(n,2),g=Math.pow(c,2),p=Math.pow(u,2);let m=d*_-d*p-_*g;m<0&&(m=0),m/=d*p+_*g,m=Math.sqrt(m)*(o===a?-1:1);const y=m*r/n*u,x=m*-n/r*c,b=l*y-h*x+(s+e)/2,A=h*y+l*x+(t+i)/2,w=(c-y)/r,k=(u-x)/n,E=(-c-y)/r,I=(-u-x)/n,M=tn(1,0,w,k);let T=tn(w,k,E,I);a===0&&T>0&&(T-=Ye),a===1&&T<0&&(T+=Ye),f.centerX=b,f.centerY=A,f.ang1=M,f.ang2=T;};function pu(s,t,e,i,r,n,o,a=0,h=0,l=0){if(n===0||o===0)return;const c=Math.sin(a*Ye/360),u=Math.cos(a*Ye/360),f=u*(t-i)/2+c*(e-r)/2,d=-c*(t-i)/2+u*(e-r)/2;if(f===0&&d===0)return;n=Math.abs(n),o=Math.abs(o);const _=Math.pow(f,2)/Math.pow(n,2)+Math.pow(d,2)/Math.pow(o,2);_>1&&(n*=Math.sqrt(_),o*=Math.sqrt(_)),_u(t,e,i,r,n,o,h,l,c,u,f,d,ls);let{ang1:g,ang2:p}=ls;const{centerX:m,centerY:y}=ls;let x=Math.abs(p)/(Ye/4);Math.abs(1-x)<1e-7&&(x=1);const b=Math.max(Math.ceil(x),1);p/=b;let A=s[s.length-2],w=s[s.length-1];const k={x:0,y:0};for(let E=0;E{const h=a.x-o.x,l=a.y-o.y,c=Math.sqrt(h*h+l*l),u=h/c,f=l/c;return {len:c,nx:u,ny:f}},r=(o,a)=>{o===0?s.moveTo(a.x,a.y):s.lineTo(a.x,a.y);};let n=t[t.length-1];for(let o=0;o0&&(d=-1,_=true);const g=f/2;let p,m=Math.abs(Math.cos(g)*h/Math.sin(g));m>Math.min(c.len/2,u.len/2)?(m=Math.min(c.len/2,u.len/2),p=Math.abs(m*Math.sin(g)/Math.cos(g))):p=h;const y=a.x+u.nx*m+-u.ny*p*d,x=a.y+u.ny*m+u.nx*p*d,b=Math.atan2(c.ny,c.nx)+Math.PI/2*d,A=Math.atan2(u.ny,u.nx)-Math.PI/2*d;o===0&&s.moveTo(y+Math.cos(b)*p,x+Math.sin(b)*p),s.arc(y,x,p,b,A,_),n=a;}}function mu(s,t,e,i){const r=(a,h)=>Math.sqrt((a.x-h.x)**2+(a.y-h.y)**2),n=(a,h,l)=>({x:a.x+(h.x-a.x)*l,y:a.y+(h.y-a.y)*l}),o=t.length;for(let a=0;a1){let n=null;for(let o=r;o=2;u-=2)c[u]===c[u-2]&&c[u-1]===c[u-3]&&c.splice(u-1,2);return this.poly(c,true,o)}ellipse(t,e,i,r,n){return this.drawShape(new Qs(t,e,i,r),n),this}roundRect(t,e,i,r,n,o){return this.drawShape(new Js(t,e,i,r,n),o),this}drawShape(t,e){return this.endPoly(),this.shapePrimitives.push({shape:t,transform:e}),this}startPoly(t,e){let i=this._currentPoly;return i&&this.endPoly(),i=new He,i.points.push(t,e),this._currentPoly=i,this}endPoly(t=false){const e=this._currentPoly;return e&&e.points.length>2&&(e.closePath=t,this.shapePrimitives.push({shape:e})),this._currentPoly=null,this}_ensurePoly(t=true){if(!this._currentPoly&&(this._currentPoly=new He,t)){const e=this.shapePrimitives[this.shapePrimitives.length-1];if(e){let i=e.shape.x,r=e.shape.y;if(e.transform&&!e.transform.isIdentity()){const n=e.transform,o=i;i=n.a*i+n.c*r+n.tx,r=n.b*o+n.d*r+n.ty;}this._currentPoly.points.push(i,r);}else this._currentPoly.points.push(0,0);}}buildPath(){const t=this._graphicsPath2D;this.shapePrimitives.length=0,this._currentPoly=null;for(let e=0;ea.area).sort((a,h)=>h-a),[e,i]=t,r=t[t.length-1],n=e/i,o=i/r;return !(n>3&&o<2)}function Au(s){return s.split(/(?=[Mm])/).filter(i=>i.trim().length>0)}function Su(s){const t=s.match(/[-+]?[0-9]*\.?[0-9]+/g);if(!t||t.length<4)return 0;const e=t.map(Number),i=[],r=[];for(let c=0;c1;if(T&&Y){const S=M.map(P=>({path:P,area:Su(P)}));if(S.sort((P,L)=>L.area-P.area),M.length>3||!ku(S))for(let P=0;PparseInt(I,10)),t.context.poly(x,true),e&&t.context.fill(e),i&&t.context.stroke(i);break;case "polyline":b=s.getAttribute("points"),x=b.match(/-?\d+/g).map(I=>parseInt(I,10)),t.context.poly(x,false),i&&t.context.stroke(i);break;case "g":case "svg":break;default:{J(`[SVG parser] <${s.nodeName}> elements unsupported`);break}}a&&(e=null);for(let I=0;I{this._fill=ae({...this._originalFill},Mt.defaultFillStyle);})),this._fill=ae(t===0?"black":t,Mt.defaultFillStyle),this.update());}get stroke(){return this._originalStroke}set stroke(t){t!==this._originalStroke&&(this._originalStroke=t,this._isFillStyle(t)&&(this._originalStroke=this._createProxy({...Mt.defaultStrokeStyle,...t},()=>{this._stroke=Ai({...this._originalStroke},Mt.defaultStrokeStyle);})),this._stroke=Ai(t,Mt.defaultStrokeStyle),this.update());}update(){this._tick++,this.emit("update",this);}reset(){const t=_e.defaultTextStyle;for(const e in t)this[e]=t[e];}get styleKey(){return `${this.uid}-${this._tick}`}clone(){return new _e({align:this.align,breakWords:this.breakWords,dropShadow:this._dropShadow?{...this._dropShadow}:null,fill:this._fill,fontFamily:this.fontFamily,fontSize:this.fontSize,fontStyle:this.fontStyle,fontVariant:this.fontVariant,fontWeight:this.fontWeight,leading:this.leading,letterSpacing:this.letterSpacing,lineHeight:this.lineHeight,padding:this.padding,stroke:this._stroke,textBaseline:this.textBaseline,whiteSpace:this.whiteSpace,wordWrap:this.wordWrap,wordWrapWidth:this.wordWrapWidth,filters:this._filters?[...this._filters]:void 0})}_getFinalPadding(){let t=0;if(this._filters)for(let e=0;e(i[r]===n||(i[r]=n,e?.(r,n),this.update()),true)})}_isFillStyle(t){return (t??null)!==null&&!(ot.isColorLike(t)||t instanceof Xt||t instanceof Ti)}};er.defaultDropShadow={alpha:1,angle:Math.PI/6,blur:0,color:"black",distance:5};er.defaultTextStyle={align:"left",breakWords:false,dropShadow:null,fill:"black",fontFamily:"Arial",fontSize:26,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",leading:0,letterSpacing:0,lineHeight:0,padding:0,stroke:null,textBaseline:"alphabetic",trim:false,whiteSpace:"pre",wordWrap:false,wordWrapWidth:100};let Si=er;function Ru(s){const t=s;if(typeof t.dropShadow=="boolean"&&t.dropShadow){const e=Si.defaultDropShadow;s.dropShadow={alpha:t.dropShadowAlpha??e.alpha,angle:t.dropShadowAngle??e.angle,blur:t.dropShadowBlur??e.blur,color:t.dropShadowColor??e.color,distance:t.dropShadowDistance??e.distance};}if(t.strokeThickness!==void 0){D(j,"strokeThickness is now a part of stroke");const e=t.stroke;let i={};if(ot.isColorLike(e))i.color=e;else if(e instanceof Xt||e instanceof Ti)i.fill=e;else if(Object.hasOwnProperty.call(e,"color")||Object.hasOwnProperty.call(e,"fill"))i=e;else throw new Error("Invalid stroke value.");s.stroke={...i,width:t.strokeThickness};}if(Array.isArray(t.fillGradientStops)){if(D(j,"gradient fill is now a fill pattern: `new FillGradient(...)`"),!Array.isArray(t.fill)||t.fill.length===0)throw new Error("Invalid fill value. Expected an array of colors for gradient fill.");t.fill.length!==t.fillGradientStops.length&&J("The number of fill colors must match the number of fill gradient stops.");const e=new Xt({start:{x:0,y:0},end:{x:0,y:1},textureSpace:"local"}),i=t.fillGradientStops.slice(),r=t.fill.map(n=>ot.shared.setValue(n).toNumber());i.forEach((n,o)=>{e.addColorStop(n,r[o]);}),s.fill={fill:e};}}class Fu{constructor(t){this._canvasPool=Object.create(null),this.canvasOptions=t||{},this.enableFullScreen=false;}_createCanvasAndContext(t,e){const i=$.get().createCanvas();i.width=t,i.height=e;const r=i.getContext("2d");return {canvas:i,context:r}}getOptimalCanvasAndContext(t,e,i=1){t=Math.ceil(t*i-1e-6),e=Math.ceil(e*i-1e-6),t=bi(t),e=bi(e);const r=(t<<17)+(e<<1);this._canvasPool[r]||(this._canvasPool[r]=[]);let n=this._canvasPool[r].pop();return n||(n=this._createCanvasAndContext(t,e)),n}returnCanvasAndContext(t){const e=t.canvas,{width:i,height:r}=e,n=(i<<17)+(r<<1);t.context.resetTransform(),t.context.clearRect(0,0,i,r),this._canvasPool[n].push(t);}clear(){this._canvasPool={};}}const Gs=new Fu;Qe.register(Gs);const un=1e5;function dn(s,t,e,i=0){if(s.texture===W.WHITE&&!s.fill)return ot.shared.setValue(s.color).setAlpha(s.alpha??1).toHexa();if(s.fill){if(s.fill instanceof Ti){const r=s.fill,n=t.createPattern(r.texture.source.resource,"repeat"),o=r.transform.copyTo(H.shared);return o.scale(r.texture.frame.width,r.texture.frame.height),n.setTransform(o),n}else if(s.fill instanceof Xt){const r=s.fill,n=r.type==="linear",o=r.textureSpace==="local";let a=1,h=1;o&&e&&(a=e.width+i,h=e.height+i);let l,c=false;if(n){const{start:u,end:f}=r;l=t.createLinearGradient(u.x*a,u.y*h,f.x*a,f.y*h),c=Math.abs(f.x-u.x){const g=d+_.offset*u;l.addColorStop(Math.floor(g*un)/un,ot.shared.setValue(_.color).toHex());});}}else r.colorStops.forEach(u=>{l.addColorStop(u.offset,ot.shared.setValue(u.color).toHex());});return l}}else {const r=t.createPattern(s.texture.source.resource,"repeat"),n=s.matrix.copyTo(H.shared);return n.scale(s.texture.frame.width,s.texture.frame.height),r.setTransform(n),r}return J("FillStyle not recognised",s),"red"}const jo=class qo extends To{constructor(t){super(),this.resolution=1,this.pages=[],this._padding=0,this._measureCache=Object.create(null),this._currentChars=[],this._currentX=0,this._currentY=0,this._currentMaxCharHeight=0,this._currentPageIndex=-1,this._skipKerning=false;const e={...qo.defaultOptions,...t};this._textureSize=e.textureSize,this._mipmap=e.mipmap;const i=e.style.clone();e.overrideFill&&(i._fill.color=16777215,i._fill.alpha=1,i._fill.texture=W.WHITE,i._fill.fill=null),this.applyFillAsTint=e.overrideFill;const r=i.fontSize;i.fontSize=this.baseMeasurementFontSize;const n=Rs(i);e.overrideSize?i._stroke&&(i._stroke.width*=this.baseRenderedFontSize/r):i.fontSize=this.baseRenderedFontSize=r,this._style=i,this._skipKerning=e.skipKerning??false,this.resolution=e.resolution??1,this._padding=e.padding??4,e.textureStyle&&(this._textureStyle=e.textureStyle instanceof wi?e.textureStyle:new wi(e.textureStyle)),this.fontMetrics=gi.measureFont(n),this.lineHeight=i.lineHeight||this.fontMetrics.fontSize||i.fontSize;}ensureCharacters(t){const e=gi.graphemeSegmenter(t).filter(p=>!this._currentChars.includes(p)).filter((p,m,y)=>y.indexOf(p)===m);if(!e.length)return;this._currentChars=[...this._currentChars,...e];let i;this._currentPageIndex===-1?i=this._nextPage():i=this.pages[this._currentPageIndex];let{canvas:r,context:n}=i.canvasAndContext,o=i.texture.source;const a=this._style;let h=this._currentX,l=this._currentY,c=this._currentMaxCharHeight;const u=this.baseRenderedFontSize/this.baseMeasurementFontSize,f=this._padding*u;let d=false;const _=r.width/this.resolution,g=r.height/this.resolution;for(let p=0;p_&&(l+=c,c=k,h=0,l+c>g)){o.update();const I=this._nextPage();r=I.canvasAndContext.canvas,n=I.canvasAndContext.context,o=I.texture.source,h=0,l=0,c=0;}const E=x/u-(a.dropShadow?.distance??0)-(a._stroke?.width??0);if(this.chars[m]={id:m.codePointAt(0),xOffset:-this._padding,yOffset:-this._padding,xAdvance:E,kerning:{}},d){this._drawGlyph(n,y,h+f,l+f,u,a);const I=o.width*u,M=o.height*u,T=new Z(h/I*o.width,l/M*o.height,w/I*o.width,k/M*o.height);this.chars[m].texture=new W({source:o,frame:T}),h+=Math.ceil(w);}}o.update(),this._currentX=h,this._currentY=l,this._currentMaxCharHeight=c,this._skipKerning&&this._applyKerning(e,n);}get pageTextures(){return D(j,"BitmapFont.pageTextures is deprecated, please use BitmapFont.pages instead."),this.pages}_applyKerning(t,e){const i=this._measureCache;for(let r=0;r{const y=n.width;for(let x=0;x{let m=n.chars.length-1;if(i){let y=n.chars[m];for(;y===" ";)n.width-=e.chars[y].xAdvance,y=n.chars[--m];}r.width=Math.max(r.width,n.width),n={width:0,charPositions:[],chars:[],spaceWidth:0,spacesIndex:[]},a=true,r.lines.push(n),r.height+=f;},p=m=>m-c>u;for(let m=0;m50&&J("BitmapText",`You have dynamically created ${fi} bitmap fonts, this can be inefficient. Try pre installing your font styles using \`BitmapFont.install({name:"style1", style})\``),a.once("destroy",()=>{fi--,Q.remove(i);}),Q.set(i,a);}const n=Q.get(i);return n.ensureCharacters?.(t),n}getLayout(t,e,i=true){const r=this.getFont(t,e),n=`${t}-${e.styleKey}-${i}`;if(this.measureCache.has(n))return this.measureCache.get(n);const o=gi.graphemeSegmenter(t),a=Bu(o,e,r,i);return this.measureCache.set(n,a),a}measureText(t,e,i=true){return this.getLayout(t,e,i)}install(...t){let e=t[0];typeof e=="string"&&(e={name:e,style:t[1],chars:t[2]?.chars,resolution:t[2]?.resolution,padding:t[2]?.padding,skipKerning:t[2]?.skipKerning},D(j,"BitmapFontManager.install(name, style, options) is deprecated, use BitmapFontManager.install({name, style, ...options})"));const i=e?.name;if(!i)throw new Error("[BitmapFontManager] Property `name` is required.");e={...this.defaultOptions,...e};const r=e.style,n=r instanceof Si?r:new Si(r),o=e.dynamicFill??this._canUseTintForStyle(n),a=new fn({style:n,overrideFill:o,skipKerning:e.skipKerning,padding:e.padding,resolution:e.resolution,overrideSize:false,textureStyle:e.textureStyle}),h=Du(e.chars);return a.ensureCharacters(h.join("")),Q.set(`${i}-bitmap`,a),a.once("destroy",()=>Q.remove(`${i}-bitmap`)),a}uninstall(t){const e=`${t}-bitmap`,i=Q.get(e);i&&i.destroy();}_canUseTintForStyle(t){return !t._stroke&&(!t.dropShadow||t.dropShadow.color===0)&&!t._fill.fill&&t._fill.color===16777215}}const _n=new Uu;class Ko extends To{constructor(t,e){super();const{textures:i,data:r}=t;Object.keys(r.pages).forEach(n=>{const o=r.pages[parseInt(n,10)],a=i[o.id];this.pages.push({texture:a});}),Object.keys(r.chars).forEach(n=>{const o=r.chars[n],{frame:a,source:h,rotate:l}=i[o.page],c=K.transformRectCoords(o,a,l,new Z),u=new W({frame:c,orig:new Z(0,0,o.width,o.height),source:h,rotate:l});this.chars[n]={id:n.codePointAt(0),xOffset:o.xOffset,yOffset:o.yOffset,xAdvance:o.xAdvance,kerning:o.kerning??{},texture:u};}),this.baseRenderedFontSize=r.fontSize,this.baseMeasurementFontSize=r.fontSize,this.fontMetrics={ascent:0,descent:0,fontSize:r.fontSize},this.baseLineOffset=r.baseLineOffset,this.lineHeight=r.lineHeight,this.fontFamily=r.fontFamily,this.distanceField=r.distanceField??{type:"none",range:0},this.url=e;}destroy(){super.destroy();for(let t=0;t)/)?pn.test($.get().parseXML(s)):false},parse(s){return pn.parse($.get().parseXML(s))}},Nu=[".xml",".fnt"],Wu={extension:{type:B.CacheParser,name:"cacheBitmapFont"},test:s=>s instanceof Ko,getCacheableAssets(s,t){const e={};return s.forEach(i=>{e[i]=t,e[`${i}-bitmap`]=t;}),e[`${t.fontFamily}-bitmap`]=t,e}},Hu={extension:{type:B.LoadParser,priority:Qt.Normal},name:"loadBitmapFont",id:"bitmap-font",test(s){return Nu.includes(Ct.extname(s).toLowerCase())},async testParse(s){return us.test(s)||gn.test(s)},async parse(s,t,e){const i=us.test(s)?us.parse(s):gn.parse(s),{src:r}=t,{pages:n}=i,o=[],a=i.distanceField?{scaleMode:"linear",alphaMode:"premultiply-alpha-on-upload",autoGenerateMipmaps:false,resolution:1}:{};for(let u=0;uh[u.src]);return new Ko({data:i,textures:l},r)},async load(s,t){return await(await $.get().fetch(s)).text()},async unload(s,t,e){await Promise.all(s.pages.map(i=>e.unload(i.texture.source._sourceOrigin))),s.destroy();}};class Vu{constructor(t,e=false){this._loader=t,this._assetList=[],this._isLoading=false,this._maxConcurrent=1,this.verbose=e;}add(t){t.forEach(e=>{this._assetList.push(e);}),this.verbose&&console.log("[BackgroundLoader] assets: ",this._assetList),this._isActive&&!this._isLoading&&this._next();}async _next(){if(this._assetList.length&&this._isActive){this._isLoading=true;const t=[],e=Math.min(this._assetList.length,this._maxConcurrent);for(let i=0;iArray.isArray(s)&&s.every(t=>t instanceof W),getCacheableAssets:(s,t)=>{const e={};return s.forEach(i=>{t.forEach((r,n)=>{e[i+(n===0?"":n+1)]=r;});}),e}};async function Zo(s){if("Image"in globalThis)return new Promise(t=>{const e=new Image;e.onload=()=>{t(true);},e.onerror=()=>{t(false);},e.src=s;});if("createImageBitmap"in globalThis&&"fetch"in globalThis){try{const t=await(await fetch(s)).blob();await createImageBitmap(t);}catch{return false}return true}return false}const Xu={extension:{type:B.DetectionParser,priority:1},test:async()=>Zo("data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A="),add:async s=>[...s,"avif"],remove:async s=>s.filter(t=>t!=="avif")},mn=["png","jpg","jpeg"],ju={extension:{type:B.DetectionParser,priority:-1},test:()=>Promise.resolve(true),add:async s=>[...s,...mn],remove:async s=>s.filter(t=>!mn.includes(t))},qu="WorkerGlobalScope"in globalThis&&globalThis instanceof globalThis.WorkerGlobalScope;function Ii(s){return qu?false:document.createElement("video").canPlayType(s)!==""}const Ku={extension:{type:B.DetectionParser,priority:0},test:async()=>Ii("video/mp4"),add:async s=>[...s,"mp4","m4v"],remove:async s=>s.filter(t=>t!=="mp4"&&t!=="m4v")},Zu={extension:{type:B.DetectionParser,priority:0},test:async()=>Ii("video/ogg"),add:async s=>[...s,"ogv"],remove:async s=>s.filter(t=>t!=="ogv")},Qu={extension:{type:B.DetectionParser,priority:0},test:async()=>Ii("video/webm"),add:async s=>[...s,"webm"],remove:async s=>s.filter(t=>t!=="webm")},Ju={extension:{type:B.DetectionParser,priority:0},test:async()=>Zo("data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA="),add:async s=>[...s,"webp"],remove:async s=>s.filter(t=>t!=="webp")},Qo=class mi{constructor(){this.loadOptions={...mi.defaultOptions},this._parsers=[],this._parsersValidated=false,this.parsers=new Proxy(this._parsers,{set:(t,e,i)=>(this._parsersValidated=false,t[e]=i,true)}),this.promiseCache={};}reset(){this._parsersValidated=false,this.promiseCache={};}_getLoadPromiseAndParser(t,e){const i={promise:null,parser:null};return i.promise=(async()=>{let r=null,n=null;if((e.parser||e.loadParser)&&(n=this._parserHash[e.parser||e.loadParser],e.loadParser&&J(`[Assets] "loadParser" is deprecated, use "parser" instead for ${t}`),n||J(`[Assets] specified load parser "${e.parser||e.loadParser}" not found while loading ${t}`)),!n){for(let o=0;o({alias:[g],src:g,data:{}})),d=f.reduce((g,p)=>g+(p.progressSize||1),0),_=f.map(async g=>{const p=Ct.toAbsolute(g.src);c[g.src]||(await this._loadAssetWithRetry(p,g,{onProgress:r,onError:n,strategy:o,retryCount:a,retryDelay:h},c),l+=g.progressSize||1,r&&r(l/d));});return await Promise.all(_),u?c[f[0].src]:c}async unload(t){const i=Bt(t,r=>({alias:[r],src:r})).map(async r=>{const n=Ct.toAbsolute(r.src),o=this.promiseCache[n];if(o){const a=await o.promise;delete this.promiseCache[n],await o.parser?.unload?.(a,r,this);}});await Promise.all(i);}_validateParsers(){this._parsersValidated=true,this._parserHash=this._parsers.filter(t=>t.name||t.id).reduce((t,e)=>(!e.name&&!e.id?J("[Assets] parser should have an id"):(t[e.name]||t[e.id])&&J(`[Assets] parser id conflict "${e.id}"`),t[e.name]=e,e.id&&(t[e.id]=e),t),{});}async _loadAssetWithRetry(t,e,i,r){let n=0;const{onError:o,strategy:a,retryCount:h,retryDelay:l}=i,c=u=>new Promise(f=>setTimeout(f,u));for(;;)try{this.promiseCache[t]||(this.promiseCache[t]=this._getLoadPromiseAndParser(t,e)),r[e.src]=await this.promiseCache[t].promise;return}catch(u){delete this.promiseCache[t],delete r[e.src],n++;const f=a!=="retry"||n>h;if(a==="retry"&&!f){o&&o(u,e),await c(l);continue}if(a==="skip"){o&&o(u,e);return}o&&o(u,e);const d=new Error(`[Loader.load] Failed to load ${t}. +${u}`);throw u instanceof Error&&u.stack&&(d.stack=u.stack),d}}};Qo.defaultOptions={onProgress:void 0,onError:void 0,strategy:"throw",retryCount:3,retryDelay:250};let $u=Qo;function Se(s,t){if(Array.isArray(t)){for(const e of t)if(s.startsWith(`data:${e}`))return true;return false}return s.startsWith(`data:${t}`)}function Ce(s,t){const e=s.split("?")[0],i=Ct.extname(e).toLowerCase();return Array.isArray(t)?t.includes(i):i===t}const td=".json",ed="application/json",id={extension:{type:B.LoadParser,priority:Qt.Low},name:"loadJson",id:"json",test(s){return Se(s,ed)||Ce(s,td)},async load(s){return await(await $.get().fetch(s)).json()}},sd=".txt",rd="text/plain",nd={name:"loadTxt",id:"text",extension:{type:B.LoadParser,priority:Qt.Low,name:"loadTxt"},test(s){return Se(s,rd)||Ce(s,sd)},async load(s){return await(await $.get().fetch(s)).text()}},od=["normal","bold","100","200","300","400","500","600","700","800","900"],ad=[".ttf",".otf",".woff",".woff2"],hd=["font/ttf","font/otf","font/woff","font/woff2"],ld=/^(--|-?[A-Z_])[0-9A-Z_-]*$/i;function cd(s){const t=Ct.extname(s),r=Ct.basename(s,t).replace(/(-|_)/g," ").toLowerCase().split(" ").map(a=>a.charAt(0).toUpperCase()+a.slice(1));let n=r.length>0;for(const a of r)if(!a.match(ld)){n=false;break}let o=r.join(" ");return n||(o=`"${o.replace(/[\\"]/g,"\\$&")}"`),o}const ud=/^[0-9A-Za-z%:/?#\[\]@!\$&'()\*\+,;=\-._~]*$/;function dd(s){return ud.test(s)?s:encodeURI(s)}const fd={extension:{type:B.LoadParser,priority:Qt.Low},name:"loadWebFont",id:"web-font",test(s){return Se(s,hd)||Ce(s,ad)},async load(s,t){const e=$.get().getFontFaceSet();if(e){const i=[],r=t.data?.family??cd(s),n=t.data?.weights?.filter(a=>od.includes(a))??["normal"],o=t.data??{};for(let a=0;an.faces.some(o=>t.indexOf(o)!==-1));r.faces=r.faces.filter(n=>t.indexOf(n)===-1),r.faces.length===0&&(i.entries=i.entries.filter(n=>n!==r)),t.forEach(n=>{$.get().getFontFaceSet().delete(n);}),i.entries.length===0&&Q.remove(`${e}-and-url`);}};function ir(s,t=1){const e=Ae.RETINA_PREFIX?.exec(s);return e?parseFloat(e[1]):t}function sr(s,t,e){s.label=e,s._sourceOrigin=e;const i=new W({source:s,label:e}),r=()=>{delete t.promiseCache[e],Q.has(e)&&Q.remove(e);};return i.source.once("destroy",()=>{t.promiseCache[e]&&(J("[Assets] A TextureSource managed by Assets was destroyed instead of unloaded! Use Assets.unload() instead of destroying the TextureSource."),r());}),i.once("destroy",()=>{s.destroyed||(J("[Assets] A Texture managed by Assets was destroyed instead of unloaded! Use Assets.unload() instead of destroying the Texture."),r());}),i}const _d=".svg",pd="image/svg+xml",gd={extension:{type:B.LoadParser,priority:Qt.Low,name:"loadSVG"},name:"loadSVG",id:"svg",config:{crossOrigin:"anonymous",parseAsGraphicsContext:false},test(s){return Se(s,pd)||Ce(s,_d)},async load(s,t,e){return t.data?.parseAsGraphicsContext??this.config.parseAsGraphicsContext?yd(s):md(s,t,e,this.config.crossOrigin)},unload(s){s.destroy(true);}};async function md(s,t,e,i){const r=await $.get().fetch(s),n=$.get().createImage();n.src=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(await r.text())}`,n.crossOrigin=i,await n.decode();const o=t.data?.width??n.width,a=t.data?.height??n.height,h=t.data?.resolution||ir(s),l=Math.ceil(o*h),c=Math.ceil(a*h),u=$.get().createCanvas(l,c),f=u.getContext("2d");f.imageSmoothingEnabled=true,f.imageSmoothingQuality="high",f.drawImage(n,0,0,o*h,a*h);const{parseAsGraphicsContext:d,..._}=t.data??{},g=new ce({resource:u,alphaMode:"premultiply-alpha-on-upload",resolution:h,..._});return sr(g,e,s)}async function yd(s){const e=await(await $.get().fetch(s)).text(),i=new Mt;return i.svg(e),i}const xd=`(function () { + 'use strict'; + + const WHITE_PNG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+ip1sAAAAASUVORK5CYII="; + async function checkImageBitmap() { + try { + if (typeof createImageBitmap !== "function") + return false; + const response = await fetch(WHITE_PNG); + const imageBlob = await response.blob(); + const imageBitmap = await createImageBitmap(imageBlob); + return imageBitmap.width === 1 && imageBitmap.height === 1; + } catch (_e) { + return false; + } + } + void checkImageBitmap().then((result) => { + self.postMessage(result); + }); + +})(); +`;let ye=null,Ds=class{constructor(){ye||(ye=URL.createObjectURL(new Blob([xd],{type:"application/javascript"}))),this.worker=new Worker(ye);}};Ds.revokeObjectURL=function(){ye&&(URL.revokeObjectURL(ye),ye=null);};const bd=`(function () { + 'use strict'; + + async function loadImageBitmap(url, alphaMode) { + const response = await fetch(url); + if (!response.ok) { + throw new Error(\`[WorkerManager.loadImageBitmap] Failed to fetch \${url}: \${response.status} \${response.statusText}\`); + } + const imageBlob = await response.blob(); + return alphaMode === "premultiplied-alpha" ? createImageBitmap(imageBlob, { premultiplyAlpha: "none" }) : createImageBitmap(imageBlob); + } + self.onmessage = async (event) => { + try { + const imageBitmap = await loadImageBitmap(event.data.data[0], event.data.data[1]); + self.postMessage({ + data: imageBitmap, + uuid: event.data.uuid, + id: event.data.id + }, [imageBitmap]); + } catch (e) { + self.postMessage({ + error: e, + uuid: event.data.uuid, + id: event.data.id + }); + } + }; + +})(); +`;let xe=null;class Jo{constructor(){xe||(xe=URL.createObjectURL(new Blob([bd],{type:"application/javascript"}))),this.worker=new Worker(xe);}}Jo.revokeObjectURL=function(){xe&&(URL.revokeObjectURL(xe),xe=null);};let yn=0,ds;class wd{constructor(){this._initialized=false,this._createdWorkers=0,this._workerPool=[],this._queue=[],this._resolveHash={};}isImageBitmapSupported(){return this._isImageBitmapSupported!==void 0?this._isImageBitmapSupported:(this._isImageBitmapSupported=new Promise(t=>{const{worker:e}=new Ds;e.addEventListener("message",i=>{e.terminate(),Ds.revokeObjectURL(),t(i.data);});}),this._isImageBitmapSupported)}loadImageBitmap(t,e){return this._run("loadImageBitmap",[t,e?.data?.alphaMode])}async _initWorkers(){this._initialized||(this._initialized=true);}_getWorker(){ds===void 0&&(ds=navigator.hardwareConcurrency||4);let t=this._workerPool.pop();return !t&&this._createdWorkers{this._complete(e.data),this._returnWorker(e.target),this._next();})),t}_returnWorker(t){this._workerPool.push(t);}_complete(t){this._resolveHash[t.uuid]&&(t.error!==void 0?this._resolveHash[t.uuid].reject(t.error):this._resolveHash[t.uuid].resolve(t.data),delete this._resolveHash[t.uuid]);}async _run(t,e){await this._initWorkers();const i=new Promise((r,n)=>{this._queue.push({id:t,arguments:e,resolve:r,reject:n});});return this._next(),i}_next(){if(!this._queue.length)return;const t=this._getWorker();if(!t)return;const e=this._queue.pop(),i=e.id;this._resolveHash[yn]={resolve:e.resolve,reject:e.reject},t.postMessage({data:e.arguments,uuid:yn++,id:i});}reset(){this._workerPool.forEach(t=>t.terminate()),this._workerPool.length=0,Object.values(this._resolveHash).forEach(({reject:t})=>{t?.(new Error("WorkerManager has been reset before completion"));}),this._resolveHash={},this._queue.length=0,this._initialized=false,this._createdWorkers=0;}}const xn=new wd,vd=[".jpeg",".jpg",".png",".webp",".avif"],kd=["image/jpeg","image/png","image/webp","image/avif"];async function Ad(s,t){const e=await $.get().fetch(s);if(!e.ok)throw new Error(`[loadImageBitmap] Failed to fetch ${s}: ${e.status} ${e.statusText}`);const i=await e.blob();return t?.data?.alphaMode==="premultiplied-alpha"?createImageBitmap(i,{premultiplyAlpha:"none"}):createImageBitmap(i)}const $o={name:"loadTextures",id:"texture",extension:{type:B.LoadParser,priority:Qt.High,name:"loadTextures"},config:{preferWorkers:true,preferCreateImageBitmap:true,crossOrigin:"anonymous"},test(s){return Se(s,kd)||Ce(s,vd)},async load(s,t,e){let i=null;globalThis.createImageBitmap&&this.config.preferCreateImageBitmap?this.config.preferWorkers&&await xn.isImageBitmapSupported()?i=await xn.loadImageBitmap(s,t):i=await Ad(s,t):i=await new Promise((n,o)=>{i=$.get().createImage(),i.crossOrigin=this.config.crossOrigin,i.src=s,i.complete?n(i):(i.onload=()=>{n(i);},i.onerror=o);});const r=new ce({resource:i,alphaMode:"premultiply-alpha-on-upload",resolution:t.data?.resolution||ir(s),...t.data});return sr(r,e,s)},unload(s){s.destroy(true);}},Sd=[".mp4",".m4v",".webm",".ogg",".ogv",".h264",".avi",".mov"];let fs,_s;function Cd(s,t,e){e===void 0&&!t.startsWith("data:")?s.crossOrigin=Td(t):e!==false&&(s.crossOrigin=typeof e=="string"?e:"anonymous");}function Md(s){return new Promise((t,e)=>{s.addEventListener("canplaythrough",i),s.addEventListener("error",r),s.load();function i(){n(),t();}function r(o){n(),e(o);}function n(){s.removeEventListener("canplaythrough",i),s.removeEventListener("error",r);}})}function Td(s,t=globalThis.location){if(s.startsWith("data:"))return "";t||(t=globalThis.location);const e=new URL(s,document.baseURI);return e.hostname!==t.hostname||e.port!==t.port||e.protocol!==t.protocol?"anonymous":""}function Pd(){const s=[],t=[];for(const e of Sd){const i=We.MIME_TYPES[e.substring(1)]||`video/${e.substring(1)}`;Ii(i)&&(s.push(e),t.includes(i)||t.push(i));}return {validVideoExtensions:s,validVideoMime:t}}const Id={name:"loadVideo",id:"video",extension:{type:B.LoadParser,name:"loadVideo"},test(s){if(!fs||!_s){const{validVideoExtensions:i,validVideoMime:r}=Pd();fs=i,_s=r;}const t=Se(s,_s),e=Ce(s,fs);return t||e},async load(s,t,e){const i={...We.defaultOptions,resolution:t.data?.resolution||ir(s),alphaMode:t.data?.alphaMode||await eo(),...t.data},r=document.createElement("video"),n={preload:i.autoLoad!==false?"auto":void 0,"webkit-playsinline":i.playsinline!==false?"":void 0,playsinline:i.playsinline!==false?"":void 0,muted:i.muted===true?"":void 0,loop:i.loop===true?"":void 0,autoplay:i.autoPlay!==false?"":void 0};Object.keys(n).forEach(h=>{const l=n[h];l!==void 0&&r.setAttribute(h,l);}),i.muted===true&&(r.muted=true),Cd(r,s,i.crossorigin);const o=document.createElement("source");let a;if(i.mime)a=i.mime;else if(s.startsWith("data:"))a=s.slice(5,s.indexOf(";"));else if(!s.startsWith("blob:")){const h=s.split("?")[0].slice(s.lastIndexOf(".")+1).toLowerCase();a=We.MIME_TYPES[h]||`video/${h}`;}return o.src=s,a&&(o.type=a),new Promise(h=>{const l=async()=>{const c=new We({...i,resource:r});r.removeEventListener("canplay",l),t.data.preload&&await Md(r),h(sr(c,e,s));};i.preload&&!i.autoPlay&&r.load(),r.addEventListener("canplay",l),r.appendChild(o);})},unload(s){s.destroy(true);}},ta={extension:{type:B.ResolveParser,name:"resolveTexture"},test:$o.test,parse:s=>({resolution:parseFloat(Ae.RETINA_PREFIX.exec(s)?.[1]??"1"),format:s.split(".").pop(),src:s})},zd={extension:{type:B.ResolveParser,priority:-2,name:"resolveJson"},test:s=>Ae.RETINA_PREFIX.test(s)&&s.endsWith(".json"),parse:ta.parse};class Ed{constructor(){this._detections=[],this._initialized=false,this.resolver=new Ae,this.loader=new $u,this.cache=Q,this._backgroundLoader=new Vu(this.loader),this._backgroundLoader.active=true,this.reset();}async init(t={}){if(this._initialized){J("[Assets]AssetManager already initialized, did you load before calling this Assets.init()?");return}if(this._initialized=true,t.defaultSearchParams&&this.resolver.setDefaultSearchParams(t.defaultSearchParams),t.basePath&&(this.resolver.basePath=t.basePath),t.bundleIdentifier&&this.resolver.setBundleIdentifier(t.bundleIdentifier),t.manifest){let n=t.manifest;typeof n=="string"&&(n=await this.load(n)),this.resolver.addManifest(n);}const e=t.texturePreference?.resolution??1,i=typeof e=="number"?[e]:e,r=await this._detectFormats({preferredFormats:t.texturePreference?.format,skipDetections:t.skipDetections,detections:this._detections});this.resolver.prefer({params:{format:r,resolution:i}}),t.preferences&&this.setPreferences(t.preferences),t.loadOptions&&(this.loader.loadOptions={...this.loader.loadOptions,...t.loadOptions});}add(t){this.resolver.add(t);}async load(t,e){this._initialized||await this.init();const i=vi(t),r=Bt(t).map(a=>{if(typeof a!="string"){const h=this.resolver.getAlias(a);return h.some(l=>!this.resolver.hasKey(l))&&this.add(a),Array.isArray(h)?h[0]:h}return this.resolver.hasKey(a)||this.add({alias:a,src:a}),a}),n=this.resolver.resolve(r),o=await this._mapLoadToResolve(n,e);return i?o[r[0]]:o}addBundle(t,e){this.resolver.addBundle(t,e);}async loadBundle(t,e){this._initialized||await this.init();let i=false;typeof t=="string"&&(i=true,t=[t]);const r=this.resolver.resolveBundle(t),n={},o=Object.keys(r);let a=0;const h=[],l=()=>{e?.(h.reduce((u,f)=>u+f,0)/a);},c=o.map((u,f)=>{const d=r[u],_=Object.values(d),p=[...new Set(_.flat())].reduce((m,y)=>m+(y.progressSize||1),0);return h.push(0),a+=p,this._mapLoadToResolve(d,m=>{h[f]=m*p,l();}).then(m=>{n[u]=m;})});return await Promise.all(c),i?n[t[0]]:n}async backgroundLoad(t){this._initialized||await this.init(),typeof t=="string"&&(t=[t]);const e=this.resolver.resolve(t);this._backgroundLoader.add(Object.values(e));}async backgroundLoadBundle(t){this._initialized||await this.init(),typeof t=="string"&&(t=[t]);const e=this.resolver.resolveBundle(t);Object.values(e).forEach(i=>{this._backgroundLoader.add(Object.values(i));});}reset(){this.resolver.reset(),this.loader.reset(),this.cache.reset(),this._initialized=false;}get(t){if(typeof t=="string")return Q.get(t);const e={};for(let i=0;i{const a=r[o.src],h=[o.src];o.alias&&h.push(...o.alias),h.forEach(l=>{n[l]=a;}),Q.set(h,a);}),n}async unload(t){this._initialized||await this.init();const e=Bt(t).map(r=>typeof r!="string"?r.src:r),i=this.resolver.resolve(e);await this._unloadFromResolved(i);}async unloadBundle(t){this._initialized||await this.init(),t=Bt(t);const e=this.resolver.resolveBundle(t),i=Object.keys(e).map(r=>this._unloadFromResolved(e[r]));await Promise.all(i);}async _unloadFromResolved(t){const e=Object.values(t);e.forEach(i=>{Q.remove(i.src);}),await this.loader.unload(e);}async _detectFormats(t){let e=[];t.preferredFormats&&(e=Array.isArray(t.preferredFormats)?t.preferredFormats:[t.preferredFormats]);for(const i of t.detections)t.skipDetections||await i.test()?e=await i.add(e):t.skipDetections||(e=await i.remove(e));return e=e.filter((i,r)=>e.indexOf(i)===r),e}get detections(){return this._detections}setPreferences(t){this.loader.parsers.forEach(e=>{e.config&&Object.keys(e.config).filter(i=>i in t).forEach(i=>{e.config[i]=t[i];});});}}const he=new Ed;ft.handleByList(B.LoadParser,he.loader.parsers).handleByList(B.ResolveParser,he.resolver.parsers).handleByList(B.CacheParser,he.cache.parsers).handleByList(B.DetectionParser,he.detections);ft.add(Yu,ju,Xu,Ju,Ku,Zu,Qu,id,nd,fd,gd,$o,Id,Hu,Wu,ta,zd);const bn={loader:B.LoadParser,resolver:B.ResolveParser,cache:B.CacheParser,detection:B.DetectionParser};ft.handle(B.Asset,s=>{const t=s.ref;Object.entries(bn).filter(([e])=>!!t[e]).forEach(([e,i])=>ft.add(Object.assign(t[e],{extension:t[e].extension??i})));},s=>{const t=s.ref;Object.keys(bn).filter(e=>!!t[e]).forEach(e=>ft.remove(t[e]));});class nt extends Xn{constructor(t){t instanceof Mt&&(t={context:t});const{context:e,roundPixels:i,...r}=t||{};super({label:"Graphics",...r}),this.renderPipeId="graphics",e?this.context=e:(this.context=this._ownedContext=new Mt,this.context.autoGarbageCollect=this.autoGarbageCollect),this.didViewUpdate=true,this.allowChildren=false,this.roundPixels=i??false;}set context(t){t!==this._context&&(this._context&&(this._context.off("update",this.onViewUpdate,this),this._context.off("unload",this.unload,this)),this._context=t,this._context.on("update",this.onViewUpdate,this),this._context.on("unload",this.unload,this),this.onViewUpdate());}get context(){return this._context}get bounds(){return this._context.bounds}updateBounds(){}containsPoint(t){return this._context.containsPoint(t)}destroy(t){this._ownedContext&&!t?this._ownedContext.destroy(t):(t===true||t?.context===true)&&this._context.destroy(t),this._ownedContext=null,this._context=null,super.destroy(t);}_onTouch(t){this._gcLastUsed=t,this._context._gcLastUsed=t;}_callContextMethod(t,e){return this.context[t](...e),this}setFillStyle(...t){return this._callContextMethod("setFillStyle",t)}setStrokeStyle(...t){return this._callContextMethod("setStrokeStyle",t)}fill(...t){return this._callContextMethod("fill",t)}stroke(...t){return this._callContextMethod("stroke",t)}texture(...t){return this._callContextMethod("texture",t)}beginPath(){return this._callContextMethod("beginPath",[])}cut(){return this._callContextMethod("cut",[])}arc(...t){return this._callContextMethod("arc",t)}arcTo(...t){return this._callContextMethod("arcTo",t)}arcToSvg(...t){return this._callContextMethod("arcToSvg",t)}bezierCurveTo(...t){return this._callContextMethod("bezierCurveTo",t)}closePath(){return this._callContextMethod("closePath",[])}ellipse(...t){return this._callContextMethod("ellipse",t)}circle(...t){return this._callContextMethod("circle",t)}path(...t){return this._callContextMethod("path",t)}lineTo(...t){return this._callContextMethod("lineTo",t)}moveTo(...t){return this._callContextMethod("moveTo",t)}quadraticCurveTo(...t){return this._callContextMethod("quadraticCurveTo",t)}rect(...t){return this._callContextMethod("rect",t)}roundRect(...t){return this._callContextMethod("roundRect",t)}poly(...t){return this._callContextMethod("poly",t)}regularPoly(...t){return this._callContextMethod("regularPoly",t)}roundPoly(...t){return this._callContextMethod("roundPoly",t)}roundShape(...t){return this._callContextMethod("roundShape",t)}filletRect(...t){return this._callContextMethod("filletRect",t)}chamferRect(...t){return this._callContextMethod("chamferRect",t)}star(...t){return this._callContextMethod("star",t)}svg(...t){return this._callContextMethod("svg",t)}restore(...t){return this._callContextMethod("restore",t)}save(){return this._callContextMethod("save",[])}getTransform(){return this.context.getTransform()}resetTransform(){return this._callContextMethod("resetTransform",[])}rotateTransform(...t){return this._callContextMethod("rotate",t)}scaleTransform(...t){return this._callContextMethod("scale",t)}setTransform(...t){return this._callContextMethod("setTransform",t)}transform(...t){return this._callContextMethod("transform",t)}translateTransform(...t){return this._callContextMethod("translate",t)}clear(){return this._callContextMethod("clear",[])}get fillStyle(){return this._context.fillStyle}set fillStyle(t){this._context.fillStyle=t;}get strokeStyle(){return this._context.strokeStyle}set strokeStyle(t){this._context.strokeStyle=t;}clone(t=false){return t?new nt(this._context.clone()):(this._ownedContext=null,new nt(this._context))}lineStyle(t,e,i){D(j,"Graphics#lineStyle is no longer needed. Use Graphics#setStrokeStyle to set the stroke style.");const r={};return t&&(r.width=t),e&&(r.color=e),i&&(r.alpha=i),this.context.strokeStyle=r,this}beginFill(t,e){D(j,"Graphics#beginFill is no longer needed. Use Graphics#fill to fill the shape with the desired style.");const i={};return t!==void 0&&(i.color=t),e!==void 0&&(i.alpha=e),this.context.fillStyle=i,this}endFill(){D(j,"Graphics#endFill is no longer needed. Use Graphics#fill to fill the shape with the desired style."),this.context.fill();const t=this.context.strokeStyle;return (t.width!==Mt.defaultStrokeStyle.width||t.color!==Mt.defaultStrokeStyle.color||t.alpha!==Mt.defaultStrokeStyle.alpha)&&this.context.stroke(),this}drawCircle(...t){return D(j,"Graphics#drawCircle has been renamed to Graphics#circle"),this._callContextMethod("circle",t)}drawEllipse(...t){return D(j,"Graphics#drawEllipse has been renamed to Graphics#ellipse"),this._callContextMethod("ellipse",t)}drawPolygon(...t){return D(j,"Graphics#drawPolygon has been renamed to Graphics#poly"),this._callContextMethod("poly",t)}drawRect(...t){return D(j,"Graphics#drawRect has been renamed to Graphics#rect"),this._callContextMethod("rect",t)}drawRoundedRect(...t){return D(j,"Graphics#drawRoundedRect has been renamed to Graphics#roundRect"),this._callContextMethod("roundRect",t)}drawStar(...t){return D(j,"Graphics#drawStar has been renamed to Graphics#star"),this._callContextMethod("star",t)}}class mt extends W{static create(t){const{dynamic:e,...i}=t;return new mt({source:new It(i),dynamic:e??false})}resize(t,e,i){return this.source.resize(t,e,i),this}}var Us=(s=>(s.CLAMP="clamp-to-edge",s.REPEAT="repeat",s.MIRRORED_REPEAT="mirror-repeat",s))(Us||{});new Proxy(Us,{get(s,t){return D(j,`DRAW_MODES.${t} is deprecated, use '${Us[t]}' instead`),s[t]}});var Ns=(s=>(s.NEAREST="nearest",s.LINEAR="linear",s))(Ns||{});new Proxy(Ns,{get(s,t){return D(j,`DRAW_MODES.${t} is deprecated, use '${Ns[t]}' instead`),s[t]}});ft.add(Na,Wa);var Ws=`in vec2 aPosition; +out vec2 vTextureCoord; + +uniform vec4 uInputSize; +uniform vec4 uOutputFrame; +uniform vec4 uOutputTexture; + +vec4 filterVertexPosition( void ) +{ + vec2 position = aPosition * uOutputFrame.zw + uOutputFrame.xy; + + position.x = position.x * (2.0 / uOutputTexture.x) - 1.0; + position.y = position.y * (2.0*uOutputTexture.z / uOutputTexture.y) - uOutputTexture.z; + + return vec4(position, 0.0, 1.0); +} + +vec2 filterTextureCoord( void ) +{ + return aPosition * (uOutputFrame.zw * uInputSize.zw); +} + +void main(void) +{ + gl_Position = filterVertexPosition(); + vTextureCoord = filterTextureCoord(); +} +`,Hs=`struct GlobalFilterUniforms { + uInputSize:vec4, + uInputPixel:vec4, + uInputClamp:vec4, + uOutputFrame:vec4, + uGlobalFrame:vec4, + uOutputTexture:vec4, +}; + +@group(0) @binding(0) var gfu: GlobalFilterUniforms; + +struct VSOutput { + @builtin(position) position: vec4, + @location(0) uv : vec2 + }; + +fn filterVertexPosition(aPosition:vec2) -> vec4 +{ + var position = aPosition * gfu.uOutputFrame.zw + gfu.uOutputFrame.xy; + + position.x = position.x * (2.0 / gfu.uOutputTexture.x) - 1.0; + position.y = position.y * (2.0*gfu.uOutputTexture.z / gfu.uOutputTexture.y) - gfu.uOutputTexture.z; + + return vec4(position, 0.0, 1.0); +} + +fn filterTextureCoord( aPosition:vec2 ) -> vec2 +{ + return aPosition * (gfu.uOutputFrame.zw * gfu.uInputSize.zw); +} + +fn globalTextureCoord( aPosition:vec2 ) -> vec2 +{ + return (aPosition.xy / gfu.uGlobalFrame.zw) + (gfu.uGlobalFrame.xy / gfu.uGlobalFrame.zw); +} + +fn getSize() -> vec2 +{ + return gfu.uGlobalFrame.zw; +} + +@vertex +fn mainVertex( + @location(0) aPosition : vec2, +) -> VSOutput { + return VSOutput( + filterVertexPosition(aPosition), + filterTextureCoord(aPosition) + ); +}`,Gd=` +in vec2 vTextureCoord; +out vec4 finalColor; + +uniform sampler2D uTexture; +uniform vec2 uOffset; + +void main(void) +{ + vec4 color = vec4(0.0); + + // Sample top left pixel + color += texture(uTexture, vec2(vTextureCoord.x - uOffset.x, vTextureCoord.y + uOffset.y)); + + // Sample top right pixel + color += texture(uTexture, vec2(vTextureCoord.x + uOffset.x, vTextureCoord.y + uOffset.y)); + + // Sample bottom right pixel + color += texture(uTexture, vec2(vTextureCoord.x + uOffset.x, vTextureCoord.y - uOffset.y)); + + // Sample bottom left pixel + color += texture(uTexture, vec2(vTextureCoord.x - uOffset.x, vTextureCoord.y - uOffset.y)); + + // Average + color *= 0.25; + + finalColor = color; +}`,Dd=`struct KawaseBlurUniforms { + uOffset:vec2, +}; + +@group(0) @binding(1) var uTexture: texture_2d; +@group(0) @binding(2) var uSampler: sampler; +@group(1) @binding(0) var kawaseBlurUniforms : KawaseBlurUniforms; + +@fragment +fn mainFragment( + @builtin(position) position: vec4, + @location(0) uv : vec2 +) -> @location(0) vec4 { + let uOffset = kawaseBlurUniforms.uOffset; + var color: vec4 = vec4(0.0); + + // Sample top left pixel + color += textureSample(uTexture, uSampler, vec2(uv.x - uOffset.x, uv.y + uOffset.y)); + // Sample top right pixel + color += textureSample(uTexture, uSampler, vec2(uv.x + uOffset.x, uv.y + uOffset.y)); + // Sample bottom right pixel + color += textureSample(uTexture, uSampler, vec2(uv.x + uOffset.x, uv.y - uOffset.y)); + // Sample bottom left pixel + color += textureSample(uTexture, uSampler, vec2(uv.x - uOffset.x, uv.y - uOffset.y)); + // Average + color *= 0.25; + + return color; +}`,Ud=` +precision highp float; +in vec2 vTextureCoord; +out vec4 finalColor; + +uniform sampler2D uTexture; +uniform vec2 uOffset; + +uniform vec4 uInputClamp; + +void main(void) +{ + vec4 color = vec4(0.0); + + // Sample top left pixel + color += texture(uTexture, clamp(vec2(vTextureCoord.x - uOffset.x, vTextureCoord.y + uOffset.y), uInputClamp.xy, uInputClamp.zw)); + + // Sample top right pixel + color += texture(uTexture, clamp(vec2(vTextureCoord.x + uOffset.x, vTextureCoord.y + uOffset.y), uInputClamp.xy, uInputClamp.zw)); + + // Sample bottom right pixel + color += texture(uTexture, clamp(vec2(vTextureCoord.x + uOffset.x, vTextureCoord.y - uOffset.y), uInputClamp.xy, uInputClamp.zw)); + + // Sample bottom left pixel + color += texture(uTexture, clamp(vec2(vTextureCoord.x - uOffset.x, vTextureCoord.y - uOffset.y), uInputClamp.xy, uInputClamp.zw)); + + // Average + color *= 0.25; + + finalColor = color; +} +`,Nd=`struct KawaseBlurUniforms { + uOffset:vec2, +}; + +struct GlobalFilterUniforms { + uInputSize:vec4, + uInputPixel:vec4, + uInputClamp:vec4, + uOutputFrame:vec4, + uGlobalFrame:vec4, + uOutputTexture:vec4, +}; + +@group(0) @binding(0) var gfu: GlobalFilterUniforms; + +@group(0) @binding(1) var uTexture: texture_2d; +@group(0) @binding(2) var uSampler: sampler; +@group(1) @binding(0) var kawaseBlurUniforms : KawaseBlurUniforms; + +@fragment +fn mainFragment( + @builtin(position) position: vec4, + @location(0) uv : vec2 +) -> @location(0) vec4 { + let uOffset = kawaseBlurUniforms.uOffset; + var color: vec4 = vec4(0.0); + + // Sample top left pixel + color += textureSample(uTexture, uSampler, clamp(vec2(uv.x - uOffset.x, uv.y + uOffset.y), gfu.uInputClamp.xy, gfu.uInputClamp.zw)); + // Sample top right pixel + color += textureSample(uTexture, uSampler, clamp(vec2(uv.x + uOffset.x, uv.y + uOffset.y), gfu.uInputClamp.xy, gfu.uInputClamp.zw)); + // Sample bottom right pixel + color += textureSample(uTexture, uSampler, clamp(vec2(uv.x + uOffset.x, uv.y - uOffset.y), gfu.uInputClamp.xy, gfu.uInputClamp.zw)); + // Sample bottom left pixel + color += textureSample(uTexture, uSampler, clamp(vec2(uv.x - uOffset.x, uv.y - uOffset.y), gfu.uInputClamp.xy, gfu.uInputClamp.zw)); + // Average + color *= 0.25; + + return color; +}`,Wd=Object.defineProperty,Hd=(s,t,e)=>t in s?Wd(s,t,{enumerable:true,configurable:true,writable:true,value:e}):s[t]=e,oe=(s,t,e)=>(Hd(s,typeof t!="symbol"?t+"":t,e),e);const ea=class ia extends Ts{constructor(...t){let e=t[0]??{};(typeof e=="number"||Array.isArray(e))&&(D("6.0.0","KawaseBlurFilter constructor params are now options object. See params: { strength, quality, clamp, pixelSize }"),e={strength:e},t[1]!==void 0&&(e.quality=t[1]),t[2]!==void 0&&(e.clamp=t[2])),e={...ia.DEFAULT_OPTIONS,...e};const i=Zt.from({vertex:{source:Hs,entryPoint:"mainVertex"},fragment:{source:e?.clamp?Nd:Dd,entryPoint:"mainFragment"}}),r=ve.from({vertex:Ws,fragment:e?.clamp?Ud:Gd,name:"kawase-blur-filter"});super({gpuProgram:i,glProgram:r,resources:{kawaseBlurUniforms:{uOffset:{value:new Float32Array(2),type:"vec2"}}}}),oe(this,"uniforms"),oe(this,"_pixelSize",{x:0,y:0}),oe(this,"_clamp"),oe(this,"_kernels",[]),oe(this,"_blur"),oe(this,"_quality"),this.uniforms=this.resources.kawaseBlurUniforms.uniforms,this.pixelSize=e.pixelSize??{x:1,y:1},Array.isArray(e.strength)?this.kernels=e.strength:typeof e.strength=="number"&&(this._blur=e.strength,this.quality=e.quality??3),this._clamp=!!e.clamp;}apply(t,e,i,r){const n=this.pixelSizeX/e.source.width,o=this.pixelSizeY/e.source.height;let a;if(this._quality===1||this._blur===0)a=this._kernels[0]+.5,this.uniforms.uOffset[0]=a*n,this.uniforms.uOffset[1]=a*o,t.applyFilter(this,e,i,r);else {const h=we.getSameSizeTexture(e);let l=e,c=h,u;const f=this._quality-1;for(let d=0;d0?(this._kernels=t,this._quality=t.length,this._blur=Math.max(...t)):(this._kernels=[0],this._quality=1);}get pixelSize(){return this._pixelSize}set pixelSize(t){if(typeof t=="number"){this.pixelSizeX=this.pixelSizeY=t;return}if(Array.isArray(t)){this.pixelSizeX=t[0],this.pixelSizeY=t[1];return}this._pixelSize=t;}get pixelSizeX(){return this.pixelSize.x}set pixelSizeX(t){this.pixelSize.x=t;}get pixelSizeY(){return this.pixelSize.y}set pixelSizeY(t){this.pixelSize.y=t;}get clamp(){return this._clamp}_updatePadding(){this.padding=Math.ceil(this._kernels.reduce((t,e)=>t+e+.5,0));}_generateKernels(){const t=this._blur,e=this._quality,i=[t];if(t>0){let r=t;const n=t/e;for(let o=1;o, + uOffset: vec2, +}; + +struct GlobalFilterUniforms { + uInputSize:vec4, + uInputPixel:vec4, + uInputClamp:vec4, + uOutputFrame:vec4, + uGlobalFrame:vec4, + uOutputTexture:vec4, +}; + +@group(0) @binding(0) var gfu: GlobalFilterUniforms; + +@group(0) @binding(1) var uTexture: texture_2d; +@group(0) @binding(2) var uSampler: sampler; +@group(1) @binding(0) var dropShadowUniforms : DropShadowUniforms; + +@fragment +fn mainFragment( + @builtin(position) position: vec4, + @location(0) uv : vec2 +) -> @location(0) vec4 { + var color: vec4 = textureSample(uTexture, uSampler, uv - dropShadowUniforms.uOffset * gfu.uInputSize.zw); + + // Premultiply alpha + color = vec4(vec3(dropShadowUniforms.uColor.rgb * color.a), color.a); + // alpha user alpha + color *= dropShadowUniforms.uAlpha; + + return color; +}`,jd=Object.defineProperty,qd=(s,t,e)=>t in s?jd(s,t,{enumerable:true,configurable:true,writable:true,value:e}):s[t]=e,pe=(s,t,e)=>(qd(s,typeof t!="symbol"?t+"":t,e),e);const sa=class ra extends Ts{constructor(t){t={...ra.DEFAULT_OPTIONS,...t};const e=Zt.from({vertex:{source:Hs,entryPoint:"mainVertex"},fragment:{source:Xd,entryPoint:"mainFragment"}}),i=ve.from({vertex:Ws,fragment:Yd,name:"drop-shadow-filter"});super({gpuProgram:e,glProgram:i,resources:{dropShadowUniforms:{uAlpha:{value:t.alpha,type:"f32"},uColor:{value:new Float32Array(3),type:"vec3"},uOffset:{value:t.offset,type:"vec2"}}},resolution:t.resolution}),pe(this,"uniforms"),pe(this,"shadowOnly",false),pe(this,"_color"),pe(this,"_blurFilter"),pe(this,"_basePass"),this.uniforms=this.resources.dropShadowUniforms.uniforms,this._color=new ot,this.color=t.color??0,this._blurFilter=new Vd({strength:t.kernels??t.blur,quality:t.kernels?void 0:t.quality}),this._basePass=new Ts({gpuProgram:Zt.from({vertex:{source:Hs,entryPoint:"mainVertex"},fragment:{source:` + @group(0) @binding(1) var uTexture: texture_2d; + @group(0) @binding(2) var uSampler: sampler; + @fragment + fn mainFragment( + @builtin(position) position: vec4, + @location(0) uv : vec2 + ) -> @location(0) vec4 { + return textureSample(uTexture, uSampler, uv); + } + `,entryPoint:"mainFragment"}}),glProgram:ve.from({vertex:Ws,fragment:` + in vec2 vTextureCoord; + out vec4 finalColor; + uniform sampler2D uTexture; + + void main(void){ + finalColor = texture(uTexture, vTextureCoord); + } + `,name:"drop-shadow-filter"}),resources:{}}),Object.assign(this,t);}apply(t,e,i,r){const n=we.getSameSizeTexture(e);t.applyFilter(this,e,n,true),this._blurFilter.apply(t,n,i,r),this.shadowOnly||t.applyFilter(this._basePass,e,i,false),we.returnTexture(n);}get offset(){return this.uniforms.uOffset}set offset(t){this.uniforms.uOffset=t,this._updatePadding();}get offsetX(){return this.offset.x}set offsetX(t){this.offset.x=t,this._updatePadding();}get offsetY(){return this.offset.y}set offsetY(t){this.offset.y=t,this._updatePadding();}get color(){return this._color.value}set color(t){this._color.setValue(t);const[e,i,r]=this._color.toArray();this.uniforms.uColor[0]=e,this.uniforms.uColor[1]=i,this.uniforms.uColor[2]=r;}get alpha(){return this.uniforms.uAlpha}set alpha(t){this.uniforms.uAlpha=t;}get blur(){return this._blurFilter.strength}set blur(t){this._blurFilter.strength=t,this._updatePadding();}get quality(){return this._blurFilter.quality}set quality(t){this._blurFilter.quality=t,this._updatePadding();}get kernels(){return this._blurFilter.kernels}set kernels(t){this._blurFilter.kernels=t;}get pixelSize(){return this._blurFilter.pixelSize}set pixelSize(t){typeof t=="number"&&(t={x:t,y:t}),Array.isArray(t)&&(t={x:t[0],y:t[1]}),this._blurFilter.pixelSize=t;}get pixelSizeX(){return this._blurFilter.pixelSizeX}set pixelSizeX(t){this._blurFilter.pixelSizeX=t;}get pixelSizeY(){return this._blurFilter.pixelSizeY}set pixelSizeY(t){this._blurFilter.pixelSizeY=t;}_updatePadding(){const t=Math.max(Math.abs(this.offsetX),Math.abs(this.offsetY));this.padding=t+this.blur*2+this.quality*4;}};pe(sa,"DEFAULT_OPTIONS",{offset:{x:4,y:4},color:0,alpha:.5,shadowOnly:false,kernels:void 0,blur:2,quality:3,pixelSize:{x:1,y:1},resolution:1});function yf(s$1,t){s$1.component(e$1=>{const i=createEventDispatcher(),r=true;let n=fallback(t.changeable,false),o=fallback(t.sources,()=>["upload","webcam","clipboard"],true),a=fallback(t.transforms,()=>["crop","resize"],true),h=t.canvas_size,l=fallback(t.is_dragging,false),c=fallback(t.background_image,false),u=t.brush_options,f=t.eraser_options,d=fallback(t.fixed_canvas,false),_=t.root,g=t.i18n,p=t.upload,m=t.composite,y=t.layers,x=t.background,b=fallback(t.border_region,0),A=t.layer_options,w=t.current_tool,k=t.webcam_options,E=fallback(t.show_download_button,false),I=t.theme_mode,M=fallback(t.full_history,null);let P=fallback(t.has_drawn,false);async function L(){return {background:null,layers:[],composite:null}}let F;function V(C){F.add_image({image:C});}async function xt(C){return;}async function zt(C){}let ut,gt,bt=fallback(t.can_undo,false);function Wt({tool:C}){F.set_tool(C),w=C;}function Me({tool:C,subtool:G}){F.set_subtool(G),at=G;}function oa(){const C=u.default_color==="auto"?u.colors[0]:u.default_color;if(Array.isArray(C))C[0],C[1];else {const G=s(C);G.getAlpha()<1?G.getAlpha():1;}typeof u.default_size=="number"?u.default_size:25;}function aa(){f.default_size==="auto"?25:f.default_size;}let at=null;async function ca(){const{image:C}=await ut.get_crop_bounds();C&&(await F.add_image({image:C,resize:false}),Me({tool:"image",subtool:null}),i("input"));}let rr=x;x==null&&y.length==0&&m==null&&F,rr!==x&&(Wt({tool:"draw"}),Me({tool:"draw",subtool:null}),w="draw",rr=x),w==="image"&&at==="crop"&>.set_zoom("fit"),c=bt&&F.command_manager.contains("AddImage"),u&&oa(),f&&aa(),w!=="image"||w==="image"&&c||w==="image"&&at==="webcam"||o.includes("upload"),xt(),zt();let $t=true,Ri;function ua(C){C.push(`
    `),C.push(""),C.push(`
    `),at==="crop"?(C.push(""),C.push('
    '),At(C,{Icon:e,label:"Confirm crop",show_label:true,size:"large",padded:true,color:"white",background:"var(--color-green-500)",label_position:"right",onclick:ca}),C.push("
    ")):C.push(""),C.push(" "),slot(C,t,"default",{}),C.push("");}do $t=true,Ri=e$1.copy(),ua(Ri);while(!$t);e$1.subsume(Ri),bind_props(t,{changeable:n,sources:o,transforms:a,canvas_size:h,is_dragging:l,background_image:c,brush_options:u,eraser_options:f,fixed_canvas:d,root:_,i18n:g,upload:p,composite:m,layers:y,background:x,border_region:b,layer_options:A,current_tool:w,webcam_options:k,show_download_button:E,theme_mode:I,full_history:M,has_drawn:P,can_undo:bt,antialias:r,get_blobs:L,add_image:V,add_image_from_url:xt,add_layers_from_url:zt});});}const xf=/^(#\s*)(.+)$/m;function bf(s){const t=s.trim(),e=t.match(xf);if(!e)return [false,t||false];const[i,,r]=e,n=r.trim();if(t===i)return [n,false];const o=e.index!==void 0?e.index+i.length:0,h=t.substring(o).trim()||false;return [n,h]}function wf(s,t){s.component(e=>{let i$1,r,n=t.brush,o=t.eraser,a=t.sources,h=t.i18n,l=t.root,c=fallback(t.label,void 0),u=t.show_label,f=fallback(t.changeable,false),d=t.theme_mode,_=t.layers,g=t.composite,p=t.background,m=t.layer_options,y=t.transforms,x=t.accept_blobs,b=t.canvas_size,A=fallback(t.fixed_canvas,false),w=t.realtime,k$1=t.upload,E=t.is_dragging,I=fallback(t.placeholder,void 0),M=t.border_region,T=fallback(t.full_history,null),Y=t.webcam_options,X=fallback(t.show_download_button,false);let R,P=false;function L(rt){return !!rt}function F(rt){return !!rt}async function V(){let rt;try{rt=await R.get_blobs();}catch{return {background:null,layers:[],composite:null}}const O=rt.background?k$1(await bs$1([new File([rt.background],"background.png")]),l):Promise.resolve(null),Nt=rt.layers.filter(L).map(async(dt,Rt)=>k$1(await bs$1([new File([dt],`layer_${Rt}.png`)]),l)),qt=rt.composite?k$1(await bs$1([new File([rt.composite],"composite.png")]),l):Promise.resolve(null),[ut,gt,...bt]=await Promise.all([O,qt,...Nt]);return {background:Array.isArray(ut)?ut[0]:ut,layers:bt.flatMap(dt=>Array.isArray(dt)?dt:[dt]).filter(F),composite:Array.isArray(gt)?gt[0]:gt}}let _t=false,xt,zt=fallback(t.image_id,null),et;[i$1,r]=I?bf(I):[false,false];let ht=true,Et;function ct(rt){k(rt,{show_label:u,Icon:i,label:c||h("image.image")}),rt.push(" "),yf(rt,{transforms:y,composite:g,layers:_,background:p,canvas_size:b,changeable:f,sources:a,brush_options:n,eraser_options:o,fixed_canvas:A,border_region:M,layer_options:m,i18n:h,root:l,upload:k$1,webcam_options:Y,show_download_button:X,theme_mode:d,get background_image(){return _t},set background_image(O){_t=O,ht=false;},get current_tool(){return et},set current_tool(O){et=O,ht=false;},get is_dragging(){return E},set is_dragging(O){E=O,ht=false;},get has_drawn(){return P},set has_drawn(O){P=O,ht=false;},get can_undo(){return xt},set can_undo(O){xt=O,ht=false;},get full_history(){return T},set full_history(O){T=O,ht=false;},children:O=>{et==="image"&&!xt?(O.push(""),O.push('
    '),a&&a.length?(O.push(""),i$1||r?(O.push(""),i$1?(O.push(""),O.push(`

    ${escape_html(i$1)}

    `)):O.push(""),O.push(" "),r?(O.push(""),O.push(`

    ${escape_html(r)}

    `)):O.push(""),O.push("")):(O.push(""),O.push("
    Upload an image
    ")),O.push("")):O.push(""),O.push(" "),a&&a.length&&n&&!I?(O.push(""),O.push('
    or
    ')):O.push(""),O.push(" "),n&&!I?(O.push(""),O.push("
    select the draw tool to start
    ")):O.push(""),O.push("
    ")):O.push(""),O.push("");},$$slots:{default:true}}),rt.push("");}do ht=true,Et=e.copy(),ct(Et);while(!ht);e.subsume(Et),bind_props(t,{brush:n,eraser:o,sources:a,i18n:h,root:l,label:c,show_label:u,changeable:f,theme_mode:d,layers:_,composite:g,background:p,layer_options:m,transforms:y,accept_blobs:x,canvas_size:b,fixed_canvas:A,realtime:w,upload:k$1,is_dragging:E,placeholder:I,border_region:M,full_history:T,webcam_options:Y,show_download_button:X,image_id:zt,get_data:V});});}function vf(s,t){s.component(e=>{let{$$slots:i,$$events:r,...n}=t;class o extends $$1{async get_data(){const b=await super.get_data(),A=await c();return {...b,value:A}}}const a=new o(n,{server:{accept_blobs:()=>{}},buttons:[],height:350,border_region:0});let h,l=null;async function c(){if(l){const b={id:l};return l=null,b}return await h.get_data()}let u,f=a.props.value?.background||a.props.value?.layers?.length||a.props.value?.composite,d=a.props.value?.background?new Le$1(a.props.value.background):null,_=a.props.value?.composite?new Le$1(a.props.value.composite):null,g=a.props.value?.layers?.map(x=>new Le$1(x))||[],p=true,m;function y(x){a.shared.interactive?(x.push(""),G(x,{visible:a.shared.visible,variant:f?"solid":"dashed",border_mode:u?"focus":"base",padding:false,elem_id:a.shared.elem_id,elem_classes:a.shared.elem_classes,height:a.props.height,width:a.props.width,allow_overflow:true,overflow_behavior:"visible",container:a.shared.container,scale:a.shared.scale,min_width:a.shared.min_width,children:b=>{W$1(b,spread_props([{autoscroll:a.shared.autoscroll,i18n:a.i18n},a.shared.loading_status,{on_clear_status:()=>a.dispatch("clear_status",a.shared.loading_status)}])),b.push(" "),wf(b,{border_region:a.props.border_region,canvas_size:a.props.canvas_size,layers:g,composite:_,background:d,root:a.shared.root,sources:a.props.sources,label:a.shared.label,show_label:a.shared.show_label,fixed_canvas:a.props.fixed_canvas,brush:a.props.brush,eraser:a.props.eraser,changeable:a.shared.attached_events.includes("apply"),realtime:a.shared.attached_events.includes("change")||a.shared.attached_events.includes("input"),i18n:a.i18n,transforms:a.props.transforms,accept_blobs:a.shared.server.accept_blobs,layer_options:a.props.layers,upload:(...A)=>a.shared.client.upload(...A),placeholder:a.props.placeholder,webcam_options:a.props.webcam_options,show_download_button:a.props.buttons===null?true:a.props.buttons.includes("download"),theme_mode:a.shared.theme_mode,get is_dragging(){return u},set is_dragging(A){u=A,p=false;},get image_id(){return l},set image_id(A){l=A,p=false;}}),b.push("");},$$slots:{default:true}})):(x.push(""),G(x,{visible:a.shared.visible,variant:"solid",border_mode:u?"focus":"base",padding:false,elem_id:a.shared.elem_id,elem_classes:a.shared.elem_classes,height:a.props.height,width:a.props.width,allow_overflow:true,overflow_behavior:"visible",container:a.shared.container,scale:a.shared.scale,min_width:a.shared.min_width,children:b=>{W$1(b,spread_props([{autoscroll:a.shared.autoscroll,i18n:a.i18n},a.shared.loading_status,{on_clear_status:()=>a.dispatch("clear_status",a.shared.loading_status)}])),b.push(" "),Q$1(b,{value:a.props.value?.composite||null,label:a.shared.label,show_label:a.shared.show_label,buttons:a.props.buttons,selectable:a.props._selectable,i18n:a.i18n}),b.push("");},$$slots:{default:true}})),x.push("");}do p=true,m=e.copy(),y(m);while(!p);e.subsume(m);});}const i_=Object.freeze(Object.defineProperty({__proto__:null,default:vf},Symbol.toStringTag,{value:"Module"})); + +export { Rh as $, ko as A, vt as B, U as C, $ as D, B as E, Ts as F, Bc as G, Pt as H, Dn as I, Lt as J, we as K, vr as L, H as M, q as N, tl as O, N as P, ul as Q, Ss as R, ll as S, ri as T, ws as U, Qe as V, Z as W, Pl as X, Ar as Y, Xi as Z, Sr as _, Ot as a, wi as a0, ot as a1, zh as a2, Wn as a3, mt as a4, Ao as a5, D as a6, j as a7, Fl as a8, rc as a9, Ql as aa, kc as ab, Sc as ac, Ec as ad, Ic as ae, Rc as af, bi as ag, gi as ah, Rs as ai, dn as aj, Do as ak, Ur as al, Gr as am, _n as an, Bu as ao, Q as ap, nt as aq, th as ar, Si as as, Wo as at, i_ as au, ql as b, Ke as c, pi as d, ft as e, Dr as f, Yl as g, qs as h, bo as i, $n as j, It as k, fo as l, Gs as m, vc as n, Ac as o, zc as p, Tc as q, _h as r, Mi as s, W as t, st as u, $a as v, J as w, Zt as x, ve as y, Fc as z }; +//# sourceMappingURL=Index4-BvPFZOEY.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index40-BmKhnhD5.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index40-BmKhnhD5.js new file mode 100644 index 0000000000000000000000000000000000000000..9f173fce59e2258abf75773d97629f0bb80d5716 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index40-BmKhnhD5.js @@ -0,0 +1,24 @@ +import './async-D55cHugf.js'; +import { a as attr, g as attr_style, d as bind_props, c as spread_props } from './index-u8mz_F03.js'; +import './2-BLdXJizP.js'; +import { $ } from './utils.svelte-B2py64Fz.js'; +import { s } from './tinycolor-DfhFic3A.js'; +import { c } from './BlockTitle-BnJIYf6a.js'; +import { G } from './Block-DZmzQwnI.js'; +import { W } from './index3-Df92vI-L.js'; +export { default as BaseExample } from './Example13-cXK-YGz2.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; +import './clone-Yk88IHKV.js'; +import './Info-DU6zbiUl.js'; +import './html-CfyvkLET.js'; +import './IconButton-BRnu7KaR.js'; +import './Clear-D7Yjckqz.js'; + +function w(t,e){return s(t).toHexString()}function B(t,e){t.component(s=>{let{value:i=void 0,label:d,info:u,disabled:o,show_label:p,on_input:r=()=>{},on_release:n=()=>{},on_submit:m=()=>{},on_blur:h=()=>{},on_focus:a=()=>{}}=e;w(i),c(s,{show_label:p,info:u,children:c=>{c.push(`${escape_html(d)}`);},$$slots:{default:true}}),s.push(` `),s.push(""),s.push(""),bind_props(e,{value:i});});}function j(t,e){t.component(s=>{let{$$slots:i,$$events:d,...u}=e;const o=new $(u,{value:"#000000"});o.props.value;let p=o.shared.label||o.i18n("color_picker.color_picker"),r=true,n;function m(h){G(h,{visible:o.shared.visible,elem_id:o.shared.elem_id,elem_classes:o.shared.elem_classes,container:o.shared.container,scale:o.shared.scale,min_width:o.shared.min_width,children:a=>{W(a,spread_props([{autoscroll:o.shared.autoscroll,i18n:o.i18n},o.shared.loading_status,{on_clear_status:()=>o.dispatch("clear_status",o.shared.loading_status)}])),a.push(" "),B(a,{label:p,info:o.props.info,show_label:o.shared.show_label,disabled:!o.shared.interactive,on_input:()=>o.dispatch("input"),on_release:()=>o.dispatch("release",o.props.value),on_submit:()=>o.dispatch("submit"),on_blur:()=>o.dispatch("blur"),on_focus:()=>o.dispatch("focus"),get value(){return o.props.value},set value(c){o.props.value=c,r=false;}}),a.push("");},$$slots:{default:true}});}do r=true,n=s.copy(),m(n);while(!r);s.subsume(n);});} + +export { B as BaseColorPicker, j as default }; +//# sourceMappingURL=Index40-BmKhnhD5.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index41-Cc8nrDFD.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index41-Cc8nrDFD.js new file mode 100644 index 0000000000000000000000000000000000000000..41c0d717aa2a1faf3ce8795c4911f87ebd360661 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index41-Cc8nrDFD.js @@ -0,0 +1,25 @@ +import './async-D55cHugf.js'; +import { f as attr_class, e as ensure_array_like, a as attr, c as spread_props } from './index-u8mz_F03.js'; +import './2-BLdXJizP.js'; +import { $ as $$1 } from './utils.svelte-B2py64Fz.js'; +import { c } from './BlockTitle-BnJIYf6a.js'; +import { F, G, S } from './Dropdown-D-In1KD6.js'; +import { y } from './IconButtonWrapper-CjFRPb3y.js'; +import { G as G$1 } from './Block-DZmzQwnI.js'; +import { W as W$1 } from './index3-Df92vI-L.js'; +export { default as BaseExample } from './Example4-wtFKJHsa.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; +import './clone-Yk88IHKV.js'; +import './Info-DU6zbiUl.js'; +import './html-CfyvkLET.js'; +import './IconButton-BRnu7KaR.js'; +import './Clear-D7Yjckqz.js'; + +function k(c){c.push('');}function W(c,n){return c.reduce((e,m,f)=>((!n||m[0].toLowerCase().includes(n.toLowerCase()))&&e.push(f),e),[])}function j(c$1,n){c$1.component(e=>{const{$$slots:m,$$events:f,..._}=n,s=_.gradio;let h,u="",b=s.shared.label||"Multiselect",r=s.props.buttons,i=s.props.choices.map(t=>t[0]),l=s.props.choices.map(t=>t[1]),v=!s.shared.interactive,w=false,[B,g]=(()=>{const t=W(s.props.choices,u);return [t,t.length>0&&!s.props.allow_custom_value?t[0]:null]})();function D(){return s.props.value===void 0?[]:Array.isArray(s.props.value)?s.props.value.map(t=>{const o=l.indexOf(t);if(o!==-1)return o;if(s.props.allow_custom_value)return t}).filter(t=>t!==void 0):[]}let p=D();function x(t){p=p.filter(o=>o!==t),s.props.value=p.map(o=>typeof o=="number"?l[o]:o),s.dispatch("input"),s.dispatch("select",{index:typeof t=="number"?t:-1,value:typeof t=="number"?l[t]:t,selected:false});}function I(t){(s.props.max_choices==null||p.lengthtypeof o=="number"?l[o]:o);}function M(t){const o=parseInt(t);A(o);}function A(t){p.includes(t)?x(t):I(t),u="",g=null,s.dispatch("input");}s.props.value;function L(t){s.dispatch("custom_button_click",{id:t});}e.push(``),s.shared.show_label&&r&&r.length>0?(e.push(""),y(e,{buttons:r,on_custom_button_click:L})):e.push(""),e.push(" "),c(e,{show_label:s.shared.show_label,info:s.props.info,children:t=>{t.push(`${escape_html(b)}`);},$$slots:{default:true}}),e.push(`
    `);const y$1=ensure_array_like(p);for(let t=0,o=y$1.length;t'),typeof d=="number"?(e.push(""),e.push(`${escape_html(i[d])}`)):(e.push(""),e.push(`${escape_html(d)}`)),e.push(" "),v?e.push(""):(e.push(""),e.push(`
    `),k(e),e.push("
    ")),e.push("
    ");}e.push(`
    `),v?e.push(""):(e.push(""),p.length>0?(e.push(""),e.push(`
    `),k(e),e.push("
    ")):e.push(""),e.push(' '),F(e),e.push("")),e.push("
    "),G(e,{show_options:w,choices:s.props.choices,filtered_indices:B,disabled:v,selected_indices:p,active_index:g,remember_scroll:true,onchange:M}),e.push("");});}function $(c,n){c.component(e=>{let{$$slots:m,$$events:f,..._}=n;const s=new $$1(_);let h=true,u;function b(r){G$1(r,{visible:s.shared.visible,elem_id:s.shared.elem_id,elem_classes:s.shared.elem_classes,padding:s.shared.container,allow_overflow:false,scale:s.shared.scale,min_width:s.shared.min_width,children:i=>{W$1(i,spread_props([{autoscroll:s.shared.autoscroll,i18n:s.i18n},s.shared.loading_status,{on_clear_status:()=>s.dispatch("clear_status",loading_status)}])),i.push(" "),s.props.multiselect?(i.push(""),j(i,{gradio:s})):(i.push(""),S(i,{label:s.shared.label,info:s.props.info,choices:s.props.choices,interactive:s.shared.interactive,show_label:s.shared.show_label,container:s.shared.container,allow_custom_value:s.props.allow_custom_value,filterable:s.props.filterable,buttons:s.props.buttons,oncustom_button_click:l=>{s.dispatch("custom_button_click",{id:l});},on_change:()=>s.dispatch("change"),on_input:()=>s.dispatch("input"),on_select:l=>s.dispatch("select",l),on_focus:()=>s.dispatch("focus"),on_blur:()=>s.dispatch("blur"),on_key_up:l=>s.dispatch("key_up",l),get value(){return s.props.value},set value(l){s.props.value=l,h=false;}})),i.push("");},$$slots:{default:true}});}do h=true,u=e.copy(),b(u);while(!h);e.subsume(u);});} + +export { S as BaseDropdown, G as BaseDropdownOptions, j as BaseMultiselect, $ as default }; +//# sourceMappingURL=Index41-Cc8nrDFD.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index42-Ck9fGnTS.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index42-Ck9fGnTS.js new file mode 100644 index 0000000000000000000000000000000000000000..779a9ee4937efd541904b6b0597dfa9f47ab336a --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index42-Ck9fGnTS.js @@ -0,0 +1,24 @@ +import './async-D55cHugf.js'; +import { a as attr, f as attr_class, i as stringify, d as bind_props, c as spread_props, e as ensure_array_like } from './index-u8mz_F03.js'; +import './2-BLdXJizP.js'; +import { $ as $$1 } from './utils.svelte-B2py64Fz.js'; +import { G } from './Block-DZmzQwnI.js'; +import { c } from './BlockTitle-BnJIYf6a.js'; +import { y } from './IconButtonWrapper-CjFRPb3y.js'; +import { W } from './index3-Df92vI-L.js'; +export { default as BaseExample } from './Example26-Bi4XTQCa.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; +import './clone-Yk88IHKV.js'; +import './Info-DU6zbiUl.js'; +import './html-CfyvkLET.js'; +import './IconButton-BRnu7KaR.js'; +import './Clear-D7Yjckqz.js'; + +let $=0;function q(n,o){n.component(r=>{let{selected:p=void 0,display_value:c,internal_value:i,disabled:t,rtl:u,on_input:d}=o,l=p===i;r.push(` ${escape_html(c)}`),bind_props(o,{selected:p});});}function F(n,o){n.component(r=>{const{$$slots:p,$$events:c$1,...i}=o,t=new $$1(i);let u=!t.shared.interactive;t.props.value;let d=true,l;function m(f){G(f,{visible:t.shared.visible,type:"fieldset",elem_id:t.shared.elem_id,elem_classes:t.shared.elem_classes,container:t.shared.container,scale:t.shared.scale,min_width:t.shared.min_width,rtl:t.props.rtl,children:e=>{W(e,spread_props([{autoscroll:t.shared.autoscroll,i18n:t.i18n},t.shared.loading_status,{on_clear_status:()=>t.dispatch("clear_status",t.shared.loading_status)}])),e.push(" "),t.shared.show_label&&t.props.buttons&&t.props.buttons.length>0?(e.push(""),y(e,{buttons:t.props.buttons,on_custom_button_click:a=>{t.dispatch("custom_button_click",{id:a});}})):e.push(""),e.push(" "),c(e,{show_label:t.shared.show_label,info:t.props.info,children:a=>{a.push(`${escape_html(t.shared.label||t.i18n("radio.radio"))}`);},$$slots:{default:true}}),e.push('
    ');const h=ensure_array_like(t.props.choices);for(let a=0,b=h.length;a{t.dispatch("input"),t.dispatch("select",{value:_,index:a});},get selected(){return t.props.value},set selected(g){t.props.value=g,d=false;}});}e.push("
    ");},$$slots:{default:true}});}do d=true,l=r.copy(),m(l);while(!d);r.subsume(l);});} + +export { q as BaseRadio, F as default }; +//# sourceMappingURL=Index42-Ck9fGnTS.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index44-DoqJwFUP.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index44-DoqJwFUP.js new file mode 100644 index 0000000000000000000000000000000000000000..f5ac299a550148ab95fbf87f44517193f4dde16e --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index44-DoqJwFUP.js @@ -0,0 +1,17 @@ +import './async-D55cHugf.js'; +import { c as spread_props, k as await_block, d as bind_props, e as ensure_array_like, g as attr_style, f as attr_class, i as stringify, j as clsx } from './index-u8mz_F03.js'; +import { G } from './Block-DZmzQwnI.js'; +import './2-BLdXJizP.js'; +import { $ } from './utils.svelte-B2py64Fz.js'; +import v from './Example2-zAdYDcJY.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; +import './clone-Yk88IHKV.js'; + +function S(_,c){_.component(s=>{let{component:m,runtime:g,$$slots:y,$$events:e,...b}=c;s.push("");});}function T(_,c){_.component(s=>{let{components:m,component_props:g,load_component:y,headers:e,samples:b,sample_labels:h=null,value:f=null,root:M,proxy_url:B,samples_per_page:w=10,onclick:U,onselect:V,layout:j=null}=c,G=B?`/proxy=${B}file=`:`${M}/file=`,x=-1,J=(m.length<2||h!==null)&&j!=="table",d=h?h.map(o=>[o]):b??[],k=0,P=d.length>w,z=P?d.slice(k*w,(k+1)*w):d.slice(),N=Math.ceil(d.length/w),A=(()=>{if(!P)return [];let o=[];return [0,k,N-1].forEach(a=>{for(let l=a-2;l<=a+2;l++)l>=0&&l0&&l-o[o.length-1]>1&&o.push(-1),o.push(l));}),o})(),n=[];async function C(o){const a=JSON.parse(o);n=await Promise.all(a&&a.map(async l=>await Promise.all(l.map(async(p,i)=>{const u=y(m[i].name,"example",m[i].class_id);return {value:p,component:u.component,runtime:u.runtime}}))));}let D=JSON.stringify(z||[]);await_block(s,C(D),()=>{if(J){s.push(""),s.push('");}else s.push("");s.push("");},o=>{if(J){s.push(""),s.push('");}else {if(s.push(""),z.length>0){s.push(""),s.push('
    ');const a=ensure_array_like(e);for(let p=0,i=a.length;p${escape_html(u)}`);}s.push("");const l=ensure_array_like(n);for(let p=0,i=l.length;p');const H=ensure_array_like(u);for(let v=0,I=H.length;v"),s.push(``),await_block(s,Promise.all([Y,q]),()=>{},([F,K])=>{S(s,spread_props([{component:F,runtime:K},g[v],{value:R,samples_dir:G,type:"table",selected:x===p,index:p,root:M}]));}),s.push("")):s.push(""),s.push("");}s.push("");}s.push("
    ");}else s.push("");s.push("");}if(s.push(" "),P){s.push(""),s.push('
    Pages: ');const a=ensure_array_like(A);for(let l=0,p=a.length;l"),s.push("
    ...
    ")):(s.push(""),s.push(`${escape_html(i+1)}`)),s.push("");}s.push("
    ");}else s.push("");s.push("");}),s.push(""),bind_props(c,{value:f});});}function os(_,c){_.component(s=>{let{$$slots:m,$$events:g,...y}=c;const e=new $(y);let b=e.props.samples??[];G(s,{visible:e.shared.visible,padding:false,elem_id:e.shared.elem_id,elem_classes:e.shared.elem_classes,scale:e.shared.scale,min_width:e.shared.min_width,allow_overflow:false,container:false,children:h=>{e.shared.show_label?(h.push(""),h.push(`
    ${escape_html(e.shared.label||"Examples")}
    `)):h.push(""),h.push(" "),T(h,spread_props([{onclick:f=>(e.props.value=f.index,e.dispatch("click",e.props.value)),onselect:f=>e.dispatch("select",f),load_component:e.shared.load_component,samples:b},e.props])),h.push("");},$$slots:{default:true}});});} + +export { os as default }; +//# sourceMappingURL=Index44-DoqJwFUP.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index45-ByRwIX9r.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index45-ByRwIX9r.js new file mode 100644 index 0000000000000000000000000000000000000000..f5a61ce92fa8626313298f05037f1bd4e14c29fa --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index45-ByRwIX9r.js @@ -0,0 +1,22 @@ +import './async-D55cHugf.js'; +import { f as attr_class, a as attr } from './index-u8mz_F03.js'; +import { G as G$1 } from './Block-DZmzQwnI.js'; +import { c } from './BlockTitle-BnJIYf6a.js'; +import { o as onDestroy } from './index-server-CQz6EZl_.js'; +import './2-BLdXJizP.js'; +import { $ } from './utils.svelte-B2py64Fz.js'; +import { y } from './IconButtonWrapper-CjFRPb3y.js'; +export { default as BaseExample } from './Example3-a2_CbOT1.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; +import './Info-DU6zbiUl.js'; +import './html-CfyvkLET.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; +import './clone-Yk88IHKV.js'; + +function M(o){o.push('');}const Y=(o,a)=>{if(o==null||o==="")return true;const n=a?/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/:/^\d{4}-\d{2}-\d{2}$/,s=o.match(n)!==null,l=o.match(/^(?:\s*now\s*(?:-\s*\d+\s*[dmhs])?)?\s*$/)!==null;return s||l},H=(o,a)=>{if(!o||o===""){const s=new Date;return {selected_date:s,current_year:s.getFullYear(),current_month:s.getMonth(),selected_hour:s.getHours(),selected_minute:s.getMinutes(),selected_second:s.getSeconds(),is_pm:s.getHours()>=12}}try{let s=o;!a&&o.match(/^\d{4}-\d{2}-\d{2}$/)&&(s+=" 00:00:00");const l=new Date(s.replace(" ","T"));if(!isNaN(l.getTime()))return {selected_date:l,current_year:l.getFullYear(),current_month:l.getMonth(),selected_hour:l.getHours(),selected_minute:l.getMinutes(),selected_second:l.getSeconds(),is_pm:l.getHours()>=12}}catch{}const n=new Date;return {selected_date:n,current_year:n.getFullYear(),current_month:n.getMonth(),selected_hour:n.getHours(),selected_minute:n.getMinutes(),selected_second:n.getSeconds(),is_pm:n.getHours()>=12}};function G(o,a){o.component(n=>{const{$$slots:s,$$events:l,..._}=a,e=new $(_);e.props.value;let c$1=e.props.value;new Date().getFullYear(),new Date().getMonth(),new Date().getHours(),new Date().getMinutes(),new Date().getSeconds();let m=Y(c$1,e.props.include_time),p=!e.shared.interactive;const w=()=>{const i=H(c$1,e.props.include_time);i.selected_date,i.current_year,i.current_month,i.selected_hour,i.selected_minute,i.selected_second,i.is_pm;},g=i=>{},f=()=>{};onDestroy(()=>{typeof window<"u"&&(window.removeEventListener("click",g),window.removeEventListener("scroll",f,true));}),w();let h=true,d;function v(i){G$1(i,{visible:e.shared.visible,elem_id:e.shared.elem_id,elem_classes:e.shared.elem_classes,scale:e.shared.scale,min_width:e.shared.min_width,allow_overflow:false,padding:true,children:t=>{t.push('
    '),e.shared.show_label&&e.props.buttons&&e.props.buttons.length>0?(t.push(""),y(t,{buttons:e.props.buttons,on_custom_button_click:u=>{e.dispatch("custom_button_click",{id:u});}})):t.push(""),t.push(" "),c(t,{show_label:e.shared.show_label,info:e.props.info,children:u=>{u.push(`${escape_html(e.shared.label||"Date")}`);},$$slots:{default:true}}),t.push(`
    `),e.shared.interactive?(t.push(""),t.push(`")):t.push(""),t.push("
    "),t.push(""),t.push("");},$$slots:{default:true}});}do h=true,d=n.copy(),v(d);while(!h);n.subsume(d);});} + +export { G as default }; +//# sourceMappingURL=Index45-ByRwIX9r.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index46-B2HXwsTl.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index46-B2HXwsTl.js new file mode 100644 index 0000000000000000000000000000000000000000..f3a5347be47ddabeb88221b04f9ebe774c3ffeb6 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index46-B2HXwsTl.js @@ -0,0 +1,31 @@ +import { f as fallback } from './async-D55cHugf.js'; +import { f as attr_class, e as ensure_array_like, g as attr_style, i as stringify, a as attr, d as bind_props, c as spread_props } from './index-u8mz_F03.js'; +import './2-BLdXJizP.js'; +import { $ } from './utils.svelte-B2py64Fz.js'; +import { c } from './BlockTitle-BnJIYf6a.js'; +import { w } from './IconButton-BRnu7KaR.js'; +import { e as e$1 } from './Check-C7_ZsXgh.js'; +import { h } from './Copy-B8YOhH7c.js'; +import { M } from './Send-C1RPCeF6.js'; +import { r } from './Trash-DLGOAhrN.js'; +import { y } from './IconButtonWrapper-CjFRPb3y.js'; +import { S } from './Dropdown-D-In1KD6.js'; +import { G } from './Block-DZmzQwnI.js'; +import { W } from './index3-Df92vI-L.js'; +export { default as BaseExample } from './Example15-OgTyyC0U.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; +import './clone-Yk88IHKV.js'; +import './Info-DU6zbiUl.js'; +import './html-CfyvkLET.js'; +import './Clear-D7Yjckqz.js'; + +function e(o){o.push('');} + +function X(n,e){n.component(c=>{let d=e.label,m=fallback(e.checked,false),h=fallback(e.disabled,false);c.push(`
    ${escape_html(d)}
    `),bind_props(e,{label:d,checked:m,disabled:h});});}function Y(n,e$2){n.component(c$1=>{const{$$slots:d,$$events:m,...h$1}=e$2,t=h$1.gradio;let i=false,p=!t.shared.interactive,v=[],f=t.props.buttons||["copy"],I=s=>{t.dispatch("custom_button_click",{id:s});};t.props.value;let b=false,g,_="",S$1=null,y$1=false,D=false;const C=["red","green","blue","yellow","purple","teal","orange","cyan","lime","pink"],E={red:"rgba(254, 202, 202, 0.7)",green:"rgba(209, 250, 229, 0.7)",blue:"rgba(219, 234, 254, 0.7)",yellow:"rgba(254, 243, 199, 0.7)",purple:"rgba(233, 213, 255, 0.7)",teal:"rgba(204, 251, 241, 0.7)",orange:"rgba(254, 215, 170, 0.7)",cyan:"rgba(207, 250, 254, 0.7)",lime:"rgba(217, 249, 157, 0.7)",pink:"rgba(252, 231, 243, 0.7)"};let N=(()=>{let s={};return t.props.color_map?s={...t.props.color_map}:(s={},t.props.speakers.forEach((o,l)=>{const x=C[l%C.length];s[o]=E[x];})),s})();function P(s,o,l){v[s][o]=l,v=[...v],t.props.value=[...v];}async function B(s){return typeof s=="string"?s:await t.shared.server.format(s)}async function z(){if("clipboard"in navigator){const s=await B(t.props.value);await navigator.clipboard.writeText(s),G();}}function G(){b=true,g&&clearTimeout(g),g=setTimeout(()=>{b=false;},1e3);}let k=true,w$1;function A(s){if(s.push(``),t.shared.show_label&&(f.some(o=>typeof o=="string"&&o==="copy")||f.some(o=>typeof o!="string"))?(s.push(""),y(s,{buttons:f,on_custom_button_click:I,children:o=>{f.some(l=>typeof l=="string"&&l==="copy")?(o.push(""),w(o,{Icon:b?e$1:h,onclick:z,label:b?"Copied":"Copy"})):o.push(""),o.push("");}})):s.push(""),s.push(" "),c(s,{show_label:t.shared.show_label,info:t.props.info,children:o=>{o.push(`${escape_html(t.shared.label||"Dialogue")}`);},$$slots:{default:true}}),s.push(" "),t.props.ui_mode==="both"?(s.push(""),s.push(``),X(s,{label:"Plain Text",disabled:y$1,get checked(){return i},set checked(o){i=o,k=false;}}),s.push("")):s.push(""),s.push(" "),!i&&t.props.ui_mode!=="text"){s.push(""),s.push(``),s.push(""),s.push(" ");const o=ensure_array_like(v);for(let l=0,x=o.length;l
    `),p){s.push(""),s.push(``);const u=escape_html(r$1.speaker);u&&s.push(`${u}`),s.push("");}else s.push(""),S(s,{label:"",show_label:false,container:true,interactive:true,value:r$1.speaker,choices:t.props.speakers.map(u=>[u,u]),on_change:u=>P(l,"speaker",u)});s.push(`
    `);const T=escape_html(r$1.text);T&&s.push(`${T}`),s.push(" "),s.push(""),s.push("
    "),t.props.max_lines==null||t.props.max_lines&&l"),s.push(`")):s.push(""),s.push(` ");}s.push("");}else {if(s.push(""),i||t.props.ui_mode!=="dialogue"){s.push(""),s.push(``),s.push(""),s.push(` "),s.push(""),s.push("");}else s.push("");s.push("");}s.push(" "),t.props.submit_btn&&!p?(s.push(""),s.push(`
    ")):s.push(""),s.push("");}do k=true,w$1=c$1.copy(),A(w$1);while(!k);c$1.subsume(w$1);});}function rs(n,e){n.component(c=>{const{$$slots:d,$$events:m,...h}=e,t=new $(h);G(c,{visible:t.shared.visible,elem_id:t.shared.elem_id,elem_classes:t.shared.elem_classes,scale:t.shared.scale,min_width:t.shared.min_width,allow_overflow:true,padding:t.shared.container,children:i=>{t.shared.loading_status?(i.push(""),W(i,spread_props([{autoscroll:t.shared.autoscroll,i18n:t.i18n},t.shared.loading_status,{on_clear_status:()=>t.dispatch("clear_status",t.shared.loading_status)}]))):i.push(""),i.push(" "),Y(i,{gradio:t}),i.push("");},$$slots:{default:true}});});} + +export { Y as BaseDialogue, rs as default }; +//# sourceMappingURL=Index46-B2HXwsTl.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index47-VQ9pruXD.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index47-VQ9pruXD.js new file mode 100644 index 0000000000000000000000000000000000000000..2c55107a4962b0e1e4ff7085761fc79c53cd3c20 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index47-VQ9pruXD.js @@ -0,0 +1,37 @@ +import './async-D55cHugf.js'; +import { d as bind_props, f as attr_class, a as attr, e as ensure_array_like, g as attr_style, c as spread_props } from './index-u8mz_F03.js'; +import './2-BLdXJizP.js'; +import { $, w } from './utils.svelte-B2py64Fz.js'; +import { o as onDestroy, t as tick } from './index-server-CQz6EZl_.js'; +import { c } from './BlockTitle-BnJIYf6a.js'; +import { e as e$1 } from './Check-C7_ZsXgh.js'; +import { o } from './Clear-D7Yjckqz.js'; +import { i } from './File-DQh5d1OO.js'; +import { i as i$1 } from './Microphone-BMM9-23W.js'; +import { t } from './Music-B6sg6ISZ.js'; +import { s } from './Square-CDuLMWYC.js'; +import { r } from './Video-FfbWmOVG.js'; +import { u } from './ScrollFade-Yfqlww91.js'; +import { e as ee } from './Upload2-uTutz1dY.js'; +import { c as c$1 } from './Image-CuPo5pWT.js'; +import { Z } from './MinimalAudioPlayer-CtXDbTgQ.js'; +import { G } from './Block-DZmzQwnI.js'; +import { W } from './index3-Df92vI-L.js'; +export { default as BaseExample } from './Example23-DV0Mqr6K.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; +import './clone-Yk88IHKV.js'; +import './Info-DU6zbiUl.js'; +import './html-CfyvkLET.js'; +import './IconButton-BRnu7KaR.js'; +import './Video2-BN5I0jvO.js'; + +function e(o){o.push('');} + +function K(f){f.push('');}function kt(f,v){f.component(a=>{let {label:l,waveform_settings:G={},recording:I=void 0,upload:W,root:P,max_file_size:s$1=null,upload_promise:m=void 0,onchange:M,onstoprecording:b,onclear:g}=v,r=0,_;onDestroy(()=>{clearInterval(_);}),a.push(`
    `),(a.push(""),a.push(`
    ${escape_html(w(r))}
    ")),a.push("
    "),bind_props(v,{recording:I,upload_promise:m});});}function St(f,v){f.component(a=>{let{value:l=void 0,value_is_output:G=false,lines:I=1,i18n:W,placeholder:P="",disabled:s$1=false,label:m,info:M=void 0,show_label:b=true,max_lines:g,submit_btn:r$1=null,stop_btn:_=null,rtl:c$2=false,autofocus:A=false,text_align:w=void 0,autoscroll:R=true,root:d,file_types_string:e$2=null,max_file_size:h=null,upload:q,stream_handler:p,file_count:n="multiple",max_plain_text_length:i$2=1e3,waveform_settings:Q,waveform_options:Mt={show_recording_waveform:true},sources_string:X="upload",active_source:F=void 0,html_attributes:x=null,upload_promise:z=void 0,dragging:U=void 0,onchange:H,onsubmit:At,onstop:Rt,onblur:zt,onselect:Bt,oninput:Y,onfocus:Gt,ondrag:It,onupload:Z$1,onclear:$,onload:Pt,onerror:tt,onstop_recording:st}=v,ot=false,C=false;l?.text;let T=false,B=null,k=X.split(",").map(t=>t.trim()).filter(t=>t==="upload"||t==="microphone"),lt=e$2?e$2.split(",").map(t=>t.trim()):null,j=k&&k.includes("upload")&&!(n==="single"&&l?.files?.length>0);async function at(){H?.(l),G||Y?.();}async function it(t){if(at(),Array.isArray(t)){for(let V of t)l.files.push(V);l=l;}else l.files.push(t),l=l;await tick(),H?.(l),Z$1?.(t);}let S=true,E;function et(t$1){if(t$1.push(``),c(t$1,{show_label:b,info:M,rtl:c$2,children:u=>{u.push(`${escape_html(m)}`);},$$slots:{default:true}}),t$1.push('
    '),k&&k.includes("microphone")&&F==="microphone"?(t$1.push(""),t$1.push(``),B?(t$1.push(""),t$1.push('
    '),Z(t$1,{value:B,label:m||"Audio",loop:false}),t$1.push('
    ")):(t$1.push(""),t$1.push('
    '),kt(t$1,{label:m||"Audio",waveform_settings:Q,recording:T,upload:q,root:d,max_file_size:h,onchange:u=>{B=u;},onstoprecording:()=>{T=false,st?.();},onclear:()=>{F=null,T=false,B=null,$?.();},get upload_promise(){return z},set upload_promise(u){z=u,S=false;}}),t$1.push("
    ")),t$1.push("
    ")):t$1.push(""),t$1.push(" "),j?(t$1.push(""),ee(t$1,{onload:it,file_count:n,filetype:lt,root:d,max_file_size:h,show_progress:false,disable_click:true,onerror:tt,hidden:true,upload:q,stream_handler:p,get upload_promise(){return z},set upload_promise(u){z=u,S=false;},get dragging(){return U},set dragging(u){U=u,S=false;},get uploading(){return C},set uploading(u){C=u,S=false;}})):t$1.push(""),t$1.push(` 0||C})}>`),(l?.files?.length??0)>0||C){t$1.push(""),t$1.push('
    '),j?(t$1.push(""),t$1.push(`")):t$1.push(""),t$1.push(" ");const u=ensure_array_like(l?.files??[]);for(let D=0,ut=u.length;D
    '),y.mime_type&&y.mime_type.includes("image")?(t$1.push(""),c$1(t$1,{src:y.url,restProps:{title:null,alt:"",loading:"lazy",class:"thumbnail-image"}})):(t$1.push(""),y.mime_type&&y.mime_type.includes("audio")?(t$1.push(""),t(t$1)):(t$1.push(""),y.mime_type&&y.mime_type.includes("video")?(t$1.push(""),r(t$1)):(t$1.push(""),i(t$1)),t$1.push("")),t$1.push("")),t$1.push('
    ");}t$1.push(" "),C?(t$1.push(""),t$1.push('
    ')):t$1.push(""),t$1.push("
    ");}else t$1.push("");t$1.push('
    '),j&&(l?.files?.length??0)===0&&!C?(t$1.push(""),t$1.push(`")):t$1.push(""),t$1.push(`
    "),u(t$1,{visible:ot,position:"absolute"}),t$1.push("
    "),k&&k.includes("microphone")?(t$1.push(""),t$1.push(`")):t$1.push(""),t$1.push(" "),r$1?(t$1.push(""),t$1.push(``),r$1===true?(t$1.push(""),e(t$1)):(t$1.push(""),t$1.push(`${escape_html(r$1)}`)),t$1.push("")):t$1.push(""),t$1.push(" "),_?(t$1.push(""),t$1.push(``),_===true?(t$1.push(""),s(t$1,{fill:"none",stroke_width:2.5})):(t$1.push(""),t$1.push(`${escape_html(_)}`)),t$1.push("")):t$1.push(""),t$1.push("
    ");}do S=true,E=a.copy(),et(E);while(!S);a.subsume(E),bind_props(v,{value:l,active_source:F,upload_promise:z,dragging:U});});}function us(f,v){f.component(a=>{let l=null;let G$1 = class G extends ${async get_data(){return l&&(await l,await tick()),await super.get_data()}};let{$$slots:I,$$events:W$1,...P}=v;const s=new G$1(P);s.props.value=s.props.value??{text:"",files:[]};let m=false,M=null;const g={height:50,barWidth:2,barGap:3,cursorWidth:2,cursorColor:"#ddd5e9",autoplay:false,barRadius:10,dragToSeek:true,normalize:true,minPxPerSec:20,waveColor:"",progressColor:"",mediaControls:false,sampleRate:44100};({color:s.props?.waveform_options?.trim_region_color});const c=(...p)=>s.shared.client.upload(...p),A=p=>s.i18n(p),w=(...p)=>s.shared.client.stream(...p);let R=s.props.sources.join(","),d=(s.props.file_types||[]).join(",")||null,e=true,h;function q(p){G(p,{visible:s.shared.visible,elem_id:s.shared.elem_id,elem_classes:[...s.shared.elem_classes||[],"multimodal-textbox"],scale:s.shared.scale,min_width:s.shared.min_width,allow_overflow:false,padding:false,border_mode:m?"focus":"base",rtl:s.props.rtl,children:n=>{s.shared.loading_status?(n.push(""),W(n,spread_props([{autoscroll:s.shared.autoscroll,i18n:s.i18n},s.shared.loading_status,{on_clear_status:()=>s.dispatch("clear_status",s.shared.loading_status)}]))):n.push(""),n.push(" "),St(n,{value_is_output:true,file_types_string:d,root:s.shared.root,label:s.shared.label||"MultimodalTextbox",info:s.props.info,show_label:s.shared.show_label,lines:s.props.lines,rtl:s.props.rtl,text_align:s.props.text_align,waveform_settings:g,i18n:A,max_lines:s.props.max_lines?s.props.max_lines:s.props.lines+1,placeholder:s.props.placeholder,submit_btn:s.props.submit_btn,stop_btn:s.props.stop_btn,autofocus:s.props.autofocus,autoscroll:s.shared.autoscroll,file_count:s.props.file_count,sources_string:R,max_file_size:s.shared.max_file_size,onchange:i=>{s.props.value=i,s.dispatch("change",s.props.value);},oninput:()=>s.dispatch("input"),onsubmit:()=>s.dispatch("submit"),onstop:()=>s.dispatch("stop"),onblur:()=>s.dispatch("blur"),onselect:i=>s.dispatch("select",i),onfocus:()=>s.dispatch("focus"),onerror:i=>{s.dispatch("error",i);},onstop_recording:()=>s.dispatch("stop_recording"),onupload:i=>s.dispatch("upload",i),onclear:()=>s.dispatch("clear"),disabled:!s.shared.interactive,upload:c,stream_handler:w,max_plain_text_length:s.props.max_plain_text_length,html_attributes:s.props.html_attributes,get upload_promise(){return l},set upload_promise(i){l=i,e=false;},get value(){return s.props.value},set value(i){s.props.value=i,e=false;},get dragging(){return m},set dragging(i){m=i,e=false;},get active_source(){return M},set active_source(i){M=i,e=false;}}),n.push("");},$$slots:{default:true}});}do e=true,h=a.copy(),q(h);while(!e);a.subsume(h);});} + +export { St as BaseMultimodalTextbox, us as default }; +//# sourceMappingURL=Index47-VQ9pruXD.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index49-DCSHhKes.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index49-DCSHhKes.js new file mode 100644 index 0000000000000000000000000000000000000000..9230a2ecd5bdc6b801f16b4d6c5c65c5318019a1 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index49-DCSHhKes.js @@ -0,0 +1,17 @@ +import './async-D55cHugf.js'; +import { g as attr_style, a as attr, e as ensure_array_like, i as stringify, f as attr_class } from './index-u8mz_F03.js'; +import './2-BLdXJizP.js'; +import { $ } from './utils.svelte-B2py64Fz.js'; +import { s as se } from './prism-python--2v-p3P4.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; +import { h as html } from './html-CfyvkLET.js'; +import './context-CBkBucIx.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; +import './clone-Yk88IHKV.js'; + +var w={},v;function L(){return v||(v=1,(function(a){a.languages.typescript=a.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:true,greedy:true,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),a.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete a.languages.typescript.parameter,delete a.languages.typescript["literal-property"];var u=a.languages.extend("typescript",{});delete u["class-name"],a.languages.typescript["class-name"].inside=u,a.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:true,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:u}}}}),a.languages.ts=a.languages.typescript;})(Prism)),w}L();function Z(a,u){a.component(e=>{let{docs:g,linkify:f=[],header:h,anchor_links:p,max_height:x}=u,d="python",y=b(g,d);function m(t,i){let l="param-";return typeof i=="string"&&(l+=i+"-"),l+t.toLowerCase().replace(/[^a-z0-9]+/g,"-")}function k(t,i){let l=se.highlight(t,se.languages[i],i);for(const n of f)l=l.replace(new RegExp(n,"g"),`${n}`);return l}function b(t,i){return t?Object.entries(t).map(([l,{type:n,description:o,default:c}])=>{let r=n?k(n,i):null;return {name:l,type:r,description:o,default:c?k(c,i):null}}):[]}function _(t){return t.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\[([^\]]+)\]\(([^)]+)\)/g,'$1')}const A=t=>{if(t!==void 0){if(typeof t=="number")return t+"px";if(typeof t=="string")return t}};if(e.push(`
    `),h!==null?(e.push(""),e.push(`${escape_html(h)}`)):e.push(""),e.push(`
    `),y){e.push(""),e.push('
    ');const t=ensure_array_like(y);for(let i=0,l=t.length;i`),p?(e.push(""),e.push(`🔗`)):e.push(""),e.push(` ${escape_html(r)}`),n?(e.push(""),e.push(`: ${html(n)}`)):e.push(""),e.push(" "),c?(e.push(""),e.push(`default = ${html(c)}
    `)):e.push(""),e.push(" "),o?(e.push(""),e.push(`

    ${html(_(o))}

    `)):e.push(""),e.push("");}e.push("
    ");}else e.push("");e.push("");});}function I(a,u){a.component(e=>{const{$$slots:g,$$events:f,...h}=u,p=new $(h);Z(e,{docs:p.props.value,linkify:p.props.linkify,header:p.props.header,anchor_links:p.props.anchor_links,max_height:p.props.max_height});});} + +export { I as default }; +//# sourceMappingURL=Index49-DCSHhKes.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index51-DQjJeLA9.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index51-DQjJeLA9.js new file mode 100644 index 0000000000000000000000000000000000000000..a086cba972420a4e6693dd33a553bf6723f8779b --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index51-DQjJeLA9.js @@ -0,0 +1,22 @@ +import './async-D55cHugf.js'; +import { c as spread_props, d as bind_props, f as attr_class, e as ensure_array_like, a as attr } from './index-u8mz_F03.js'; +import './2-BLdXJizP.js'; +import { $ as $$1 } from './utils.svelte-B2py64Fz.js'; +import { i } from './File-DQh5d1OO.js'; +import { G } from './Block-DZmzQwnI.js'; +import { k } from './BlockLabel-bKYWnOzQ.js'; +import { y } from './IconButtonWrapper-CjFRPb3y.js'; +import { W } from './index3-Df92vI-L.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; +import './clone-Yk88IHKV.js'; +import './IconButton-BRnu7KaR.js'; +import './Clear-D7Yjckqz.js'; + +function D(u){u.push('');}function H(u,m){u.component(s=>{let{value:p=void 0,disabled:_,onchange:l}=m;s.push(``),bind_props(m,{value:p});});}const O="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23888888'%20d='M6%202c-1.1%200-1.99.9-1.99%202L4%2020c0%201.1.89%202%201.99%202H18c1.1%200%202-.9%202-2V8l-6-6H6zm7%207V3.5L18.5%209H13z'/%3e%3c/svg%3e",P="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3csvg%20viewBox='0%200%2032%2032'%20version='1.1'%20id='svg7'%20sodipodi:docname='light-folder-new.svg'%20inkscape:version='1.3.2%20(091e20e,%202023-11-25)'%20xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape'%20xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:svg='http://www.w3.org/2000/svg'%3e%3csodipodi:namedview%20id='namedview7'%20pagecolor='%23ffffff'%20bordercolor='%23000000'%20borderopacity='0.25'%20inkscape:showpageshadow='2'%20inkscape:pageopacity='0.0'%20inkscape:pagecheckerboard='0'%20inkscape:deskcolor='%23d1d1d1'%20inkscape:zoom='7.375'%20inkscape:cx='15.932203'%20inkscape:cy='16'%20inkscape:window-width='1312'%20inkscape:window-height='529'%20inkscape:window-x='0'%20inkscape:window-y='38'%20inkscape:window-maximized='0'%20inkscape:current-layer='svg7'%20/%3e%3cdefs%20id='defs6'%3e%3cclipPath%20id='clipPath1'%3e%3cpath%20d='m69.63%2012.145h-.052c-22.727-.292-46.47%204.077-46.709%204.122-2.424.451-4.946%202.974-5.397%205.397-.044.237-4.414%2023.983-4.122%2046.71-.292%2022.777%204.078%2046.523%204.122%2046.761.451%202.423%202.974%204.945%205.398%205.398.237.044%2023.982%204.413%2046.709%204.121%2022.779.292%2046.524-4.077%2046.761-4.121%202.423-.452%204.946-2.976%205.398-5.399.044-.236%204.413-23.981%204.121-46.709.292-22.777-4.077-46.523-4.121-46.761-.453-2.423-2.976-4.946-5.398-5.397-.238-.045-23.984-4.414-46.71-4.122'%20id='path1'%20/%3e%3c/clipPath%3e%3clinearGradient%20gradientUnits='userSpaceOnUse'%20y2='352.98'%20x2='-601.15'%20y1='663.95'%20x1='-591.02'%20id='2'%3e%3cstop%20stop-color='%23a0a0a0'%20id='stop1'%20/%3e%3cstop%20offset='1'%20stop-color='%23aaa'%20id='stop2'%20/%3e%3c/linearGradient%3e%3clinearGradient%20gradientUnits='userSpaceOnUse'%20y2='354.29'%20x2='-704.05'%20y1='647.77'%20x1='-701.19'%20id='1'%3e%3cstop%20stop-color='%23acabab'%20id='stop3'%20/%3e%3cstop%20offset='1'%20stop-color='%23d4d4d4'%20id='stop4'%20/%3e%3c/linearGradient%3e%3clinearGradient%20id='0'%20x1='59.12'%20y1='-19.888'%20x2='59.15'%20y2='-37.783'%20gradientUnits='userSpaceOnUse'%20gradientTransform='matrix(4.17478%200%200%204.16765-1069.7%20447.73)'%3e%3cstop%20stop-color='%23a0a0a0'%20id='stop5'%20/%3e%3cstop%20offset='1'%20stop-color='%23bdbdbd'%20id='stop6'%20/%3e%3c/linearGradient%3e%3c/defs%3e%3cg%20transform='matrix(.07089%200%200%20.07017%2023.295-40.67)'%20fill='%2360aae5'%20id='g7'%20style='fill:%23888888;fill-opacity:1'%3e%3cpath%20transform='matrix(.7872%200%200%20.79524%20415.34%20430.11)'%20d='m-884.1%20294.78c-4.626%200-8.349%203.718-8.349%208.335v161.41l468.19%201v-121.2c0-4.618-3.724-8.335-8.35-8.335h-272.65c-8.51.751-9.607-.377-13.812-5.981-5.964-7.968-14.969-21.443-20.84-29.21-4.712-6.805-5.477-6.02-13.292-6.02z'%20fill='url(%230)'%20color='%23000'%20id='path6'%20style='fill:%23888888;fill-opacity:1'%20/%3e%3crect%20transform='matrix(.7872%200%200%20.79524%20415.34%20430.11)'%20y='356.85'%20x='-890.28'%20height='295.13'%20width='463.85'%20fill='url(%231)'%20stroke='url(%231)'%20stroke-width='2.378'%20rx='9.63'%20id='rect6'%20style='fill:%23888888;fill-opacity:1'%20/%3e%3crect%20width='463.85'%20height='295.13'%20x='-890.28'%20y='356.85'%20transform='matrix(.7872%200%200%20.79524%20415.34%20430.11)'%20fill='none'%20stroke='url(%232)'%20stroke-linejoin='round'%20stroke-linecap='round'%20stroke-width='5.376'%20rx='9.63'%20id='rect7'%20style='fill:%23888888;fill-opacity:1'%20/%3e%3c/g%3e%3c/svg%3e";function j(u,m){u.component(s=>{let{path:p=[],index_path:_=[],selected_files:l=[],selected_folders:e=[],is_selected_entirely:x=false,interactive:d,selectable:v=false,ls_fn:n,file_count:o="multiple",valid_for_selection:r,oncheck:k,onselect:h}=m,t=[],f=[];const B=i=>{f.includes(i)||(f=[...f,i]);};(async()=>(t=await n(p),r&&(t=[{name:".",type:"file"},...t]),f=t.map((i,y)=>i.type==="folder"&&(x||l.some(w=>w[0]===i.name))?y:null).filter(i=>i!==null)))();function g(i,y,w){h?.({index:i,value:y.join("/"),selected:true});}s.push(``);const C=ensure_array_like(t);for(let i=0,y=C.length;ia[0]===b&&a.length===1);s.push(`
  • `),d?(s.push(""),w==="folder"&&o==="single"?(s.push(""),s.push('')):(s.push(""),H(s,{disabled:false,value:G,onchange:a=>{k?.({path:[...p,b],checked:a,type:w}),v&&g([..._,i],[...p,b]),w==="folder"&&a&&B(i);}})),s.push("")):s.push(""),s.push(" "),w==="folder"?(s.push(""),s.push(``),D(s),s.push("")):(s.push(""),s.push(``)),s.push(` ${escape_html(b)} `),w==="folder"&&f.includes(i)?(s.push(""),j(s,{path:[...p,b],index_path:[..._,i],selected_files:l.filter(a=>a[0]===b).map(a=>a.slice(1)),selected_folders:e.filter(a=>a[0]===b).map(a=>a.slice(1)),is_selected_entirely:e.some(a=>a[0]===b&&a.length===1),interactive:d,selectable:v,ls_fn:n,file_count:o,valid_for_selection:F??false,oncheck:k,onselect:h})):s.push(""),s.push("
  • ");}s.push("");});}function E(u,m){u.component(s=>{let{interactive:p,file_count:_="multiple",value:l=void 0,selectable:e=false,ls_fn:x,oninput:d,onselect:v}=m,n=[];const o=(h,t)=>h.join("/")===t.join("/"),r=(h,t)=>t.some(f=>o(f,h)),k=(h,t)=>h.join("/").startsWith(t.join("/"));s.push('
    '),j(s,{path:[],selected_files:l,selected_folders:n,interactive:p,selectable:e,ls_fn:x,file_count:_,valid_for_selection:false,oncheck:h=>{const{path:t,checked:f,type:B}=h;f?_==="single"?l=[t]:B==="folder"?r(t,n)||(n=[...n,t]):r(t,l)||(l=[...l,t]):(n=n.filter(g=>!k(t,g)),B==="folder"?(n=n.filter(g=>!k(g,t)),l=l.filter(g=>!k(g,t))):l=l.filter(g=>!o(g,t))),d?.();},onselect:v}),s.push("
    "),bind_props(m,{value:l});});}function $(u,m){u.component(s=>{const{$$slots:p,$$events:_,...l}=m,e=new $$1(l,{value:[]});e.props.value,e.props.root_dir,e.props.glob,e.props.ignore_glob;let x=true,d;function v(n){G(n,{visible:e.shared.visible,variant:e.props.value===null?"dashed":"solid",border_mode:"base",padding:false,elem_id:e.shared.elem_id,elem_classes:e.shared.elem_classes,container:e.shared.container,scale:e.shared.scale,min_width:e.shared.min_width,allow_overflow:true,overflow_behavior:"auto",height:e.props.height,max_height:e.props.max_height,min_height:e.props.min_height,children:o=>{W(o,spread_props([e.shared.loading_status,{autoscroll:e.shared.autoscroll,i18n:e.i18n,on_clear_status:()=>e.dispatch("clear_status",e.shared.loading_status)}])),o.push(" "),e.shared.show_label&&e.props.buttons&&e.props.buttons.length>0?(o.push(""),y(o,{buttons:e.props.buttons,on_custom_button_click:r=>{e.dispatch("custom_button_click",{id:r});}})):o.push(""),o.push(" "),k(o,{show_label:e.shared.show_label,Icon:i,label:e.shared.label||"FileExplorer",float:false}),o.push(" "),E(o,{file_count:e.props.file_count,interactive:e.shared.interactive,selectable:e.props._selectable,ls_fn:e.shared.server.ls,oninput:()=>e.dispatch("input"),onselect:r=>e.dispatch("select",r),get value(){return e.props.value},set value(r){e.props.value=r,x=false;}}),o.push("");},$$slots:{default:true}});}do x=true,d=s.copy(),v(d);while(!x);s.subsume(d);});} + +export { $ as default }; +//# sourceMappingURL=Index51-DQjJeLA9.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index52-Ct2COUi7.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index52-Ct2COUi7.js new file mode 100644 index 0000000000000000000000000000000000000000..95563e9a65d681af368d5aed35872d5de8d6f9f6 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index52-Ct2COUi7.js @@ -0,0 +1,30 @@ +import './async-D55cHugf.js'; +import { f as attr_class, i as stringify, d as bind_props, c as spread_props } from './index-u8mz_F03.js'; +import './2-BLdXJizP.js'; +import { $ as $$1 } from './utils.svelte-B2py64Fz.js'; +import { W as W$1 } from './index3-Df92vI-L.js'; +import { i } from './Code-CrFuQ3ob.js'; +import { o as onDestroy } from './index-server-CQz6EZl_.js'; +import { B, A as A$1, _ as _i$1, F as Ft$1, O as Oe$1, s as st, J as J$1, W as Wt$1, C, U, $ as $$2, g as gl, n as nt$1, v as vt$1, a as su, b as $i$1, c as at, L, d as Jl, r as ro, N as Nt$1, R as Rt$1, e as Jh, f as es$1, k as k$1, h as fu, I as Ir$1, i as F$1, j as iu, Q as Qc, l as hu, m as Jc, H as H$1, o as lu, t as tu, p as eu, q as au, T as Tl, u as cc, w as bn, x as fc, y as W$2, z as mt$1, D as le$1, Y as Yc, E as ae$1, G as nu, K as I$1, M as zt$1, P as uu, S as qi$1, V as Ml, X as cu } from './Code.svelte_svelte_type_style_lang-C72WHBwk.js'; +import { e } from './Check-C7_ZsXgh.js'; +import { h } from './Copy-B8YOhH7c.js'; +import { w } from './IconButton-BRnu7KaR.js'; +import { l } from './Download-DcU5dONL.js'; +import { u } from './DownloadLink-nj1p0krE.js'; +import { y } from './IconButtonWrapper-CjFRPb3y.js'; +import { G as G$1 } from './Block-DZmzQwnI.js'; +import { k } from './BlockLabel-bKYWnOzQ.js'; +import { p } from './Empty-DGRbZO0a.js'; +export { default as BaseExample } from './Example-DMvLoGhj.js'; +import './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; +import './clone-Yk88IHKV.js'; +import './Clear-D7Yjckqz.js'; + +function H(){var t=arguments[0];typeof t=="string"&&(t=document.createElement(t));var e=1,o=arguments[1];if(o&&typeof o=="object"&&o.nodeType==null&&!Array.isArray(o)){for(var n in o)if(Object.prototype.hasOwnProperty.call(o,n)){var i=o[n];typeof i=="string"?t.setAttribute(n,i):i!=null&&(t[n]=i);}e++;}for(;e{let{state:e}=t,o=e.doc.lineAt(e.selection.main.from),n=ut(t.state,o.from);return n.line?oi(t):n.block?ii(t):false};function ft(t,e){return ({state:o,dispatch:n})=>{if(o.readOnly)return false;let i=t(e,o);return i?(n(o.update(i)),true):false}}const oi=ft(li,0),ni=ft(fo,0),ii=ft((t,e)=>fo(t,e,si(e)),0);function ut(t,e){let o=t.languageDataAt("commentTokens",e,1);return o.length?o[0]:{}}const ae=50;function ri(t,{open:e,close:o},n,i){let r=t.sliceDoc(n-ae,n),s=t.sliceDoc(i,i+ae),l=/\s*$/.exec(r)[0].length,a=/^\s*/.exec(s)[0].length,f=r.length-l;if(r.slice(f-e.length,f)==e&&s.slice(a,a+o.length)==o)return {open:{pos:n-l,margin:l&&1},close:{pos:i+a,margin:a&&1}};let c,d;i-n<=2*ae?c=d=t.sliceDoc(n,i):(c=t.sliceDoc(n,n+ae),d=t.sliceDoc(i-ae,i));let m=/^\s*/.exec(c)[0].length,h=/\s*$/.exec(d)[0].length,p=d.length-h-o.length;return c.slice(m,m+e.length)==e&&d.slice(p,p+o.length)==o?{open:{pos:n+m+e.length,margin:/\s/.test(c.charAt(m+e.length))?1:0},close:{pos:i-h-o.length,margin:/\s/.test(d.charAt(p-1))?1:0}}:null}function si(t){let e=[];for(let o of t.selection.ranges){let n=t.doc.lineAt(o.from),i=o.to<=n.to?n:t.doc.lineAt(o.to);i.from>n.from&&i.from==o.to&&(i=o.to==n.to+1?n:t.doc.lineAt(o.to-1));let r=e.length-1;r>=0&&e[r].to>n.from?e[r].to=i.to:e.push({from:n.from+/^\s*/.exec(n.text)[0].length,to:i.to});}return e}function fo(t,e,o=e.selection.ranges){let n=o.map(r=>ut(e,r.from).block);if(!n.every(r=>r))return null;let i=o.map((r,s)=>ri(e,n[s],r.from,r.to));if(t!=2&&!i.every(r=>r))return {changes:e.changes(o.map((r,s)=>i[s]?[]:[{from:r.from,insert:n[s].open+" "},{from:r.to,insert:" "+n[s].close}]))};if(t!=1&&i.some(r=>r)){let r=[];for(let s=0,l;si&&(r==s||s>d.from)){i=d.from;let m=/^\s*/.exec(d.text)[0].length,h=m==d.length,p=d.text.slice(m,m+f.length)==f?m:-1;mr.comment<0&&(!r.empty||r.single))){let r=[];for(let{line:l,token:a,indent:f,empty:c,single:d}of n)(d||!c)&&r.push({from:l.from+f,insert:a+" "});let s=e.changes(r);return {changes:s,selection:e.selection.map(s,1)}}else if(t!=1&&n.some(r=>r.comment>=0)){let r=[];for(let{line:s,comment:l,token:a}of n)if(l>=0){let f=s.from+l,c=f+a.length;s.text[c-s.from]==" "&&c++,r.push({from:f,to:c});}return {changes:r}}return null}const et=Oe$1.define(),ai=Oe$1.define(),ci=A$1.define(),uo=A$1.define({combine(t){return _i$1(t,{minDepth:100,newGroupDelay:500,joinToEvent:(e,o)=>o},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,o)=>(n,i)=>e(n,i)||o(n,i)})}}),ho=Ft$1.define({create(){return V.empty},update(t,e){let o=e.state.facet(uo),n=e.annotation(et);if(n){let a=T.fromTransaction(e,n.selection),f=n.side,c=f==0?t.undone:t.done;return a?c=De(c,c.length,o.minDepth,a):c=go(c,e.startState.selection),new V(f==0?n.rest:c,f==0?c:n.rest)}let i=e.annotation(ai);if((i=="full"||i=="before")&&(t=t.isolate()),e.annotation(st.addToHistory)===false)return e.changes.empty?t:t.addMapping(e.changes.desc);let r=T.fromTransaction(e),s=e.annotation(st.time),l=e.annotation(st.userEvent);return r?t=t.addChanges(r,s,l,o,e):e.selection&&(t=t.addSelection(e.startState.selection,s,l,o.newGroupDelay)),(i=="full"||i=="after")&&(t=t.isolate()),t},toJSON(t){return {done:t.done.map(e=>e.toJSON()),undone:t.undone.map(e=>e.toJSON())}},fromJSON(t){return new V(t.done.map(T.fromJSON),t.undone.map(T.fromJSON))}});function fi(t={}){return [ho,uo.of(t),B.domEventHandlers({beforeinput(e,o){let n=e.inputType=="historyUndo"?mo:e.inputType=="historyRedo"?tt:null;return n?(e.preventDefault(),n(o)):false}})]}function Oe(t,e){return function({state:o,dispatch:n}){if(!e&&o.readOnly)return false;let i=o.field(ho,false);if(!i)return false;let r=i.pop(t,o,e);return r?(n(r),true):false}}const mo=Oe(0,false),tt=Oe(1,false),ui=Oe(0,true),di=Oe(1,true);class T{constructor(e,o,n,i,r){this.changes=e,this.effects=o,this.mapped=n,this.startSelection=i,this.selectionsAfter=r;}setSelAfter(e){return new T(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,o,n;return {changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(o=this.mapped)===null||o===void 0?void 0:o.toJSON(),startSelection:(n=this.startSelection)===null||n===void 0?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map(i=>i.toJSON())}}static fromJSON(e){return new T(e.changes&&J$1.fromJSON(e.changes),[],e.mapped&&Wt$1.fromJSON(e.mapped),e.startSelection&&C.fromJSON(e.startSelection),e.selectionsAfter.map(C.fromJSON))}static fromTransaction(e,o){let n=E;for(let i of e.startState.facet(ci)){let r=i(e);r.length&&(n=n.concat(r));}return !n.length&&e.changes.empty?null:new T(e.changes.invert(e.startState.doc),n,void 0,o||e.startState.selection,E)}static selection(e){return new T(void 0,E,void 0,void 0,e)}}function De(t,e,o,n){let i=e+1>o+20?e-o-1:0,r=t.slice(i,e);return r.push(n),r}function hi(t,e){let o=[],n=false;return t.iterChangedRanges((i,r)=>o.push(i,r)),e.iterChangedRanges((i,r,s,l)=>{for(let a=0;a=f&&s<=c&&(n=true);}}),n}function mi(t,e){return t.ranges.length==e.ranges.length&&t.ranges.filter((o,n)=>o.empty!=e.ranges[n].empty).length===0}function po(t,e){return t.length?e.length?t.concat(e):t:e}const E=[],pi=200;function go(t,e){if(t.length){let o=t[t.length-1],n=o.selectionsAfter.slice(Math.max(0,o.selectionsAfter.length-pi));return n.length&&n[n.length-1].eq(e)?t:(n.push(e),De(t,t.length-1,1e9,o.setSelAfter(n)))}else return [T.selection([e])]}function gi(t){let e=t[t.length-1],o=t.slice();return o[t.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),o}function Ue(t,e){if(!t.length)return t;let o=t.length,n=E;for(;o;){let i=yi(t[o-1],e,n);if(i.changes&&!i.changes.empty||i.effects.length){let r=t.slice(0,o);return r[o-1]=i,r}else e=i.mapped,o--,n=i.selectionsAfter;}return n.length?[T.selection(n)]:E}function yi(t,e,o){let n=po(t.selectionsAfter.length?t.selectionsAfter.map(l=>l.map(e)):E,o);if(!t.changes)return T.selection(n);let i=t.changes.map(e),r=e.mapDesc(t.changes,true),s=t.mapped?t.mapped.composeDesc(r):r;return new T(i,U.mapEffects(t.effects,e),s,t.startSelection.map(r),n)}const bi=/^(input\.type|delete)($|\.)/;class V{constructor(e,o,n=0,i=void 0){this.done=e,this.undone=o,this.prevTime=n,this.prevUserEvent=i;}isolate(){return this.prevTime?new V(this.done,this.undone):this}addChanges(e,o,n,i,r){let s=this.done,l=s[s.length-1];return l&&l.changes&&!l.changes.empty&&e.changes&&(!n||bi.test(n))&&(!l.selectionsAfter.length&&o-this.prevTime0&&o-this.prevTimeo.empty?t.moveByChar(o,e):Ee(o,e))}function D(t){return t.textDirectionAt(t.state.selection.main.head)==$$2.LTR}const bo=t=>yo(t,!D(t)),ko=t=>yo(t,D(t));function xo(t,e){return $(t,o=>o.empty?t.moveByGroup(o,e):Ee(o,e))}const xi=t=>xo(t,!D(t)),Ci=t=>xo(t,D(t));function vi(t,e,o){if(e.type.prop(o))return true;let n=e.to-e.from;return n&&(n>2||/[^\s,.;:]/.test(t.sliceDoc(e.from,e.to)))||e.firstChild}function Re(t,e,o){let n=Rt$1(t).resolveInner(e.head),i=o?I$1.closedBy:I$1.openedBy;for(let a=e.head;;){let f=o?n.childAfter(a):n.childBefore(a);if(!f)break;vi(t,f,i)?n=f:a=o?f.to:f.from;}let r=n.type.prop(i),s,l;return r&&(s=o?uu(t,n.from,1):uu(t,n.to,-1))&&s.matched?l=o?s.end.to:s.end.from:l=o?n.to:n.from,C.cursor(l,o?-1:1)}const Si=t=>$(t,e=>Re(t.state,e,!D(t))),wi=t=>$(t,e=>Re(t.state,e,D(t)));function Co(t,e){return $(t,o=>{if(!o.empty)return Ee(o,e);let n=t.moveVertically(o,e);return n.head!=o.head?n:t.moveToLineBoundary(o,e)})}const vo=t=>Co(t,false),So=t=>Co(t,true);function wo(t){let e=t.scrollDOM.clientHeights.empty?t.moveVertically(s,e,o.height):Ee(s,e));if(i.eq(n.selection))return false;let r;if(o.selfScroll){let s=t.coordsAtPos(n.selection.main.head),l=t.scrollDOM.getBoundingClientRect(),a=l.top+o.marginTop,f=l.bottom-o.marginBottom;s&&s.top>a&&s.bottomAo(t,false),ot=t=>Ao(t,true);function G(t,e,o){let n=t.lineBlockAt(e.head),i=t.moveToLineBoundary(e,o);if(i.head==e.head&&i.head!=(o?n.to:n.from)&&(i=t.moveToLineBoundary(e,o,false)),!o&&i.head==n.from&&n.length){let r=/^\s*/.exec(t.state.sliceDoc(n.from,Math.min(n.from+100,n.to)))[0].length;r&&e.head!=n.from+r&&(i=C.cursor(n.from+r));}return i}const Ai=t=>$(t,e=>G(t,e,true)),Bi=t=>$(t,e=>G(t,e,false)),Di=t=>$(t,e=>G(t,e,!D(t))),Li=t=>$(t,e=>G(t,e,D(t))),Mi=t=>$(t,e=>C.cursor(t.lineBlockAt(e.head).from,1)),Ti=t=>$(t,e=>C.cursor(t.lineBlockAt(e.head).to,-1));function Ii(t,e,o){let n=false,i=le(t.selection,r=>{let s=uu(t,r.head,-1)||uu(t,r.head,1)||r.head>0&&uu(t,r.head-1,1)||r.headIi(t,e);function P(t,e){let o=le(t.state.selection,n=>{let i=e(n);return C.range(n.anchor,i.head,i.goalColumn,i.bidiLevel||void 0)});return o.eq(t.state.selection)?false:(t.dispatch(F(t.state,o)),true)}function Bo(t,e){return P(t,o=>t.moveByChar(o,e))}const Do=t=>Bo(t,!D(t)),Lo=t=>Bo(t,D(t));function Mo(t,e){return P(t,o=>t.moveByGroup(o,e))}const Ei=t=>Mo(t,!D(t)),Ri=t=>Mo(t,D(t)),Pi=t=>P(t,e=>Re(t.state,e,!D(t))),_i=t=>P(t,e=>Re(t.state,e,D(t)));function To(t,e){return P(t,o=>t.moveVertically(o,e))}const Io=t=>To(t,false),Oo=t=>To(t,true);function Eo(t,e){return P(t,o=>t.moveVertically(o,e,wo(t).height))}const vt=t=>Eo(t,false),St=t=>Eo(t,true),Ni=t=>P(t,e=>G(t,e,true)),Ui=t=>P(t,e=>G(t,e,false)),Fi=t=>P(t,e=>G(t,e,!D(t))),$i=t=>P(t,e=>G(t,e,D(t))),Wi=t=>P(t,e=>C.cursor(t.lineBlockAt(e.head).from)),Hi=t=>P(t,e=>C.cursor(t.lineBlockAt(e.head).to)),wt=({state:t,dispatch:e})=>(e(F(t,{anchor:0})),true),At=({state:t,dispatch:e})=>(e(F(t,{anchor:t.doc.length})),true),Bt=({state:t,dispatch:e})=>(e(F(t,{anchor:t.selection.main.anchor,head:0})),true),Dt=({state:t,dispatch:e})=>(e(F(t,{anchor:t.selection.main.anchor,head:t.doc.length})),true),Vi=({state:t,dispatch:e})=>(e(t.update({selection:{anchor:0,head:t.doc.length},userEvent:"select"})),true),zi=({state:t,dispatch:e})=>{let o=Pe(t).map(({from:n,to:i})=>C.range(n,Math.min(i+1,t.doc.length)));return e(t.update({selection:C.create(o),userEvent:"select"})),true},qi=({state:t,dispatch:e})=>{let o=le(t.selection,n=>{let i=Rt$1(t),r=i.resolveStack(n.from,1);if(n.empty){let s=i.resolveStack(n.from,-1);s.node.from>=r.node.from&&s.node.to<=r.node.to&&(r=s);}for(let s=r;s;s=s.next){let{node:l}=s;if((l.from=n.to||l.to>n.to&&l.from<=n.from)&&s.next)return C.range(l.to,l.from)}return n});return o.eq(t.selection)?false:(e(F(t,o)),true)};function Ro(t,e){let{state:o}=t,n=o.selection,i=o.selection.ranges.slice();for(let r of o.selection.ranges){let s=o.doc.lineAt(r.head);if(e?s.to0)for(let l=r;;){let a=t.moveVertically(l,e);if(a.heads.to){i.some(f=>f.head==a.head)||i.push(a);break}else {if(a.head==l.head)break;l=a;}}}return i.length==n.ranges.length?false:(t.dispatch(F(o,C.create(i,i.length-1))),true)}const ji=t=>Ro(t,false),Gi=t=>Ro(t,true),Ki=({state:t,dispatch:e})=>{let o=t.selection,n=null;return o.ranges.length>1?n=C.create([o.main]):o.main.empty||(n=C.create([C.cursor(o.main.head)])),n?(e(F(t,n)),true):false};function be(t,e){if(t.state.readOnly)return false;let o="delete.selection",{state:n}=t,i=n.changeByRange(r=>{let{from:s,to:l}=r;if(s==l){let a=e(r);as&&(o="delete.forward",a=ke(t,a,true)),s=Math.min(s,a),l=Math.max(l,a);}else s=ke(t,s,false),l=ke(t,l,true);return s==l?{range:r}:{changes:{from:s,to:l},range:C.cursor(s,si(t)))n.between(e,e,(i,r)=>{ie&&(e=o?r:i);});return e}const Po=(t,e,o)=>be(t,n=>{let i=n.from,{state:r}=t,s=r.doc.lineAt(i),l,a;if(o&&!e&&i>s.from&&iPo(t,false,true),_o=t=>Po(t,true,false),No=(t,e)=>be(t,o=>{let n=o.head,{state:i}=t,r=i.doc.lineAt(n),s=i.charCategorizer(n);for(let l=null;;){if(n==(e?r.to:r.from)){n==o.head&&r.number!=(e?i.doc.lines:1)&&(n+=e?1:-1);break}let a=mt$1(r.text,n-r.from,e)+r.from,f=r.text.slice(Math.min(n,a)-r.from,Math.max(n,a)-r.from),c=s(f);if(l!=null&&c!=l)break;(f!=" "||n!=o.head)&&(l=c),n=a;}return n}),Uo=t=>No(t,false),Ji=t=>No(t,true),Qi=t=>be(t,e=>{let o=t.lineBlockAt(e.head).to;return e.headbe(t,e=>{let o=t.moveToLineBoundary(e,false).head;return e.head>o?o:Math.max(0,e.head-1)}),Xi=t=>be(t,e=>{let o=t.moveToLineBoundary(e,true).head;return e.head{if(t.readOnly)return false;let o=t.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:W$2.of(["",""])},range:C.cursor(n.from)}));return e(t.update(o,{scrollIntoView:true,userEvent:"input"})),true},er=({state:t,dispatch:e})=>{if(t.readOnly)return false;let o=t.changeByRange(n=>{if(!n.empty||n.from==0||n.from==t.doc.length)return {range:n};let i=n.from,r=t.doc.lineAt(i),s=i==r.from?i-1:mt$1(r.text,i-r.from,false)+r.from,l=i==r.to?i+1:mt$1(r.text,i-r.from,true)+r.from;return {changes:{from:s,to:l,insert:t.doc.slice(i,l).append(t.doc.slice(s,i))},range:C.cursor(l)}});return o.changes.empty?false:(e(t.update(o,{scrollIntoView:true,userEvent:"move.character"})),true)};function Pe(t){let e=[],o=-1;for(let n of t.selection.ranges){let i=t.doc.lineAt(n.from),r=t.doc.lineAt(n.to);if(!n.empty&&n.to==r.from&&(r=t.doc.lineAt(n.to-1)),o>=i.number){let s=e[e.length-1];s.to=r.to,s.ranges.push(n);}else e.push({from:i.from,to:r.to,ranges:[n]});o=r.number+1;}return e}function Fo(t,e,o){if(t.readOnly)return false;let n=[],i=[];for(let r of Pe(t)){if(o?r.to==t.doc.length:r.from==0)continue;let s=t.doc.lineAt(o?r.to+1:r.from-1),l=s.length+1;if(o){n.push({from:r.to,to:s.to},{from:r.from,insert:s.text+t.lineBreak});for(let a of r.ranges)i.push(C.range(Math.min(t.doc.length,a.anchor+l),Math.min(t.doc.length,a.head+l)));}else {n.push({from:s.from,to:r.from},{from:r.to,insert:t.lineBreak+s.text});for(let a of r.ranges)i.push(C.range(a.anchor-l,a.head-l));}}return n.length?(e(t.update({changes:n,scrollIntoView:true,selection:C.create(i,t.selection.mainIndex),userEvent:"move.line"})),true):false}const tr=({state:t,dispatch:e})=>Fo(t,e,false),or=({state:t,dispatch:e})=>Fo(t,e,true);function $o(t,e,o){if(t.readOnly)return false;let n=[];for(let r of Pe(t))o?n.push({from:r.from,insert:t.doc.slice(r.from,r.to)+t.lineBreak}):n.push({from:r.to,insert:t.lineBreak+t.doc.slice(r.from,r.to)});let i=t.changes(n);return e(t.update({changes:i,selection:t.selection.map(i,o?1:-1),scrollIntoView:true,userEvent:"input.copyline"})),true}const nr=({state:t,dispatch:e})=>$o(t,e,false),ir=({state:t,dispatch:e})=>$o(t,e,true),rr=t=>{if(t.state.readOnly)return false;let{state:e}=t,o=e.changes(Pe(e).map(({from:i,to:r})=>(i>0?i--:r{let r;if(t.lineWrapping){let s=t.lineBlockAt(i.head),l=t.coordsAtPos(i.head,i.assoc||1);l&&(r=s.bottom+t.documentTop-l.bottom+t.defaultLineHeight/2);}return t.moveVertically(i,true,r)}).map(o);return t.dispatch({changes:o,selection:n,scrollIntoView:true,userEvent:"delete.line"}),true};function sr(t,e){if(/\(\)|\[\]|\{\}/.test(t.sliceDoc(e-1,e+1)))return {from:e,to:e};let o=Rt$1(t).resolveInner(e),n=o.childBefore(e),i=o.childAfter(e),r;return n&&i&&n.to<=e&&i.from>=e&&(r=n.type.prop(I$1.closedBy))&&r.indexOf(i.name)>-1&&t.doc.lineAt(n.to).from==t.doc.lineAt(i.from).from&&!/\S/.test(t.sliceDoc(n.to,i.from))?{from:n.to,to:i.from}:null}const Lt=Wo(false),lr=Wo(true);function Wo(t){return ({state:e,dispatch:o})=>{if(e.readOnly)return false;let n=e.changeByRange(i=>{let{from:r,to:s}=i,l=e.doc.lineAt(r),a=!t&&r==s&&sr(e,r);t&&(r=s=(s<=l.to?l:e.doc.lineAt(s)).to);let f=new Tl(e,{simulateBreak:r,simulateDoubleBreak:!!a}),c=cc(f,r);for(c==null&&(c=bn(/^\s*/.exec(e.doc.lineAt(r).text)[0],e.tabSize));sl.from&&r{let i=[];for(let s=n.from;s<=n.to;){let l=t.doc.lineAt(s);l.number>o&&(n.empty||n.to>l.from)&&(e(l,i,n),o=l.number),s=l.to+1;}let r=t.changes(i);return {changes:i,range:C.range(r.mapPos(n.anchor,1),r.mapPos(n.head,1))}})}const ar=({state:t,dispatch:e})=>{if(t.readOnly)return false;let o=Object.create(null),n=new Tl(t,{overrideIndentation:r=>{let s=o[r];return s??-1}}),i=dt(t,(r,s,l)=>{let a=cc(n,r.from);if(a==null)return;/\S/.test(r.text)||(a=0);let f=/^\s*/.exec(r.text)[0],c=fc(t,a);(f!=c||l.fromt.readOnly?false:(e(t.update(dt(t,(o,n)=>{n.push({from:o.from,insert:t.facet(Ml)});}),{userEvent:"input.indent"})),true),Vo=({state:t,dispatch:e})=>t.readOnly?false:(e(t.update(dt(t,(o,n)=>{let i=/^\s*/.exec(o.text)[0];if(!i)return;let r=bn(i,t.tabSize),s=0,l=fc(t,Math.max(0,r-qi$1(t)));for(;s(t.setTabFocusMode(),true),fr=[{key:"Ctrl-b",run:bo,shift:Do,preventDefault:true},{key:"Ctrl-f",run:ko,shift:Lo},{key:"Ctrl-p",run:vo,shift:Io},{key:"Ctrl-n",run:So,shift:Oo},{key:"Ctrl-a",run:Mi,shift:Wi},{key:"Ctrl-e",run:Ti,shift:Hi},{key:"Ctrl-d",run:_o},{key:"Ctrl-h",run:nt},{key:"Ctrl-k",run:Qi},{key:"Ctrl-Alt-h",run:Uo},{key:"Ctrl-o",run:Zi},{key:"Ctrl-t",run:er},{key:"Ctrl-v",run:ot}],ur=[{key:"ArrowLeft",run:bo,shift:Do,preventDefault:true},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:xi,shift:Ei,preventDefault:true},{mac:"Cmd-ArrowLeft",run:Di,shift:Fi,preventDefault:true},{key:"ArrowRight",run:ko,shift:Lo,preventDefault:true},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:Ci,shift:Ri,preventDefault:true},{mac:"Cmd-ArrowRight",run:Li,shift:$i,preventDefault:true},{key:"ArrowUp",run:vo,shift:Io,preventDefault:true},{mac:"Cmd-ArrowUp",run:wt,shift:Bt},{mac:"Ctrl-ArrowUp",run:Ct,shift:vt},{key:"ArrowDown",run:So,shift:Oo,preventDefault:true},{mac:"Cmd-ArrowDown",run:At,shift:Dt},{mac:"Ctrl-ArrowDown",run:ot,shift:St},{key:"PageUp",run:Ct,shift:vt},{key:"PageDown",run:ot,shift:St},{key:"Home",run:Bi,shift:Ui,preventDefault:true},{key:"Mod-Home",run:wt,shift:Bt},{key:"End",run:Ai,shift:Ni,preventDefault:true},{key:"Mod-End",run:At,shift:Dt},{key:"Enter",run:Lt,shift:Lt},{key:"Mod-a",run:Vi},{key:"Backspace",run:nt,shift:nt,preventDefault:true},{key:"Delete",run:_o,preventDefault:true},{key:"Mod-Backspace",mac:"Alt-Backspace",run:Uo,preventDefault:true},{key:"Mod-Delete",mac:"Alt-Delete",run:Ji,preventDefault:true},{mac:"Mod-Backspace",run:Yi,preventDefault:true},{mac:"Mod-Delete",run:Xi,preventDefault:true}].concat(fr.map(t=>({mac:t.key,run:t.run,shift:t.shift}))),dr=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:Si,shift:Pi},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:wi,shift:_i},{key:"Alt-ArrowUp",run:tr},{key:"Shift-Alt-ArrowUp",run:nr},{key:"Alt-ArrowDown",run:or},{key:"Shift-Alt-ArrowDown",run:ir},{key:"Mod-Alt-ArrowUp",run:ji},{key:"Mod-Alt-ArrowDown",run:Gi},{key:"Escape",run:Ki},{key:"Mod-Enter",run:lr},{key:"Alt-l",mac:"Ctrl-l",run:zi},{key:"Mod-i",run:qi,preventDefault:true},{key:"Mod-[",run:Vo},{key:"Mod-]",run:Ho},{key:"Mod-Alt-\\",run:ar},{key:"Shift-Mod-k",run:rr},{key:"Shift-Mod-\\",run:Oi},{key:"Mod-/",run:ti},{key:"Alt-A",run:ni},{key:"Ctrl-m",mac:"Shift-Alt-m",run:cr}].concat(ur);class zo{constructor(e,o,n,i){this.state=e,this.pos=o,this.explicit=n,this.view=i,this.abortListeners=[],this.abortOnDocChange=false;}tokenBefore(e){let o=Rt$1(this.state).resolveInner(this.pos,-1);for(;o&&e.indexOf(o.name)<0;)o=o.parent;return o?{from:o.from,to:this.pos,text:this.state.sliceDoc(o.from,this.pos),type:o.type}:null}matchBefore(e){let o=this.state.doc.lineAt(this.pos),n=Math.max(o.from,this.pos-250),i=o.text.slice(n-o.from,this.pos-o.from),r=i.search(qo(e,false));return r<0?null:{from:n+r,to:this.pos,text:i.slice(r)}}get aborted(){return this.abortListeners==null}addEventListener(e,o,n){e=="abort"&&this.abortListeners&&(this.abortListeners.push(o),n&&n.onDocChange&&(this.abortOnDocChange=true));}}function Mt(t){let e=Object.keys(t).join(""),o=/\w/.test(e);return o&&(e=e.replace(/\w/g,"")),`[${o?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function mr(t){let e=Object.create(null),o=Object.create(null);for(let{label:i}of t){e[i[0]]=true;for(let r=1;rtypeof i=="string"?{label:i}:i),[o,n]=e.every(i=>/^\w+$/.test(i.label))?[/\w*$/,/\w+$/]:mr(e);return i=>{let r=i.matchBefore(n);return r||i.explicit?{from:r?r.from:i.pos,options:e,validFor:o}:null}}class Tt{constructor(e,o,n,i){this.completion=e,this.source=o,this.match=n,this.score=i;}}function X(t){return t.selection.main.from}function qo(t,e){var o;let{source:n}=t,i=e&&n[0]!="^",r=n[n.length-1]!="$";return !i&&!r?t:new RegExp(`${i?"^":""}(?:${n})${r?"$":""}`,(o=t.flags)!==null&&o!==void 0?o:t.ignoreCase?"i":"")}const jo=Oe$1.define();function gr(t,e,o,n){let{main:i}=t.selection,r=o-i.from,s=n-i.from;return {...t.changeByRange(l=>{if(l!=i&&o!=n&&t.sliceDoc(l.from+r,l.from+s)!=t.sliceDoc(o,n))return {range:l};let a=t.toText(e);return {changes:{from:l.from+r,to:n==i.from?l.to:l.from+s,insert:a},range:C.cursor(l.from+r+a.length)}}),scrollIntoView:true,userEvent:"input.complete"}}const It=new WeakMap;function yr(t){if(!Array.isArray(t))return t;let e=It.get(t);return e||It.set(t,e=pr(t)),e}const Le=U.define(),me=U.define();class br{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let o=0;o=48&&w<=57||w>=97&&w<=122?2:w>=65&&w<=90?1:0:(Z=Yc(w))!=Z.toLowerCase()?1:Z!=Z.toUpperCase()?2:0;(!k||z==1&&x||v==0&&z!=0)&&(o[d]==w||n[d]==w&&(m=true)?s[d++]=k:s.length&&(B=false)),v=z,k+=Jl(w);}return d==a&&s[0]==0&&B?this.result(-100+(m?-200:0),s,e):h==a&&p==0?this.ret(-200-e.length+(y==e.length?0:-100),[0,y]):l>-1?this.ret(-700-e.length,[l,l+this.pattern.length]):h==a?this.ret(-900-e.length,[p,y]):d==a?this.result(-100+(m?-200:0)+-700+(B?0:-1100),s,e):o.length==2?null:this.result((i[0]?-700:0)+-200+-1100,i,e)}result(e,o,n){let i=[],r=0;for(let s of o){let l=s+(this.astral?Jl(ro(n,s)):1);r&&i[r-1]==s?i[r-1]=l:(i[r++]=s,i[r++]=l);}return this.ret(e-n.length,i)}}class kr{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase();}match(e){if(e.lengthfalse,activateOnTypingDelay:100,selectOnOpen:true,override:null,closeOnBlur:true,maxRenderedOptions:100,defaultKeymap:true,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:false,icons:true,addToOptions:[],positionInfo:xr,filterStrict:false,compareCompletions:(e,o)=>(e.sortText||e.label).localeCompare(o.sortText||o.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,o)=>e&&o,closeOnBlur:(e,o)=>e&&o,icons:(e,o)=>e&&o,tooltipClass:(e,o)=>n=>Ot(e(n),o(n)),optionClass:(e,o)=>n=>Ot(e(n),o(n)),addToOptions:(e,o)=>e.concat(o),filterStrict:(e,o)=>e||o})}});function Ot(t,e){return t?e?t+" "+e:t:e}function xr(t,e,o,n,i,r){let s=t.textDirection==$$2.RTL,l=s,a=false,f="top",c,d,m=e.left-i.left,h=i.right-e.right,p=n.right-n.left,y=n.bottom-n.top;if(l&&m=y||k>e.top?c=o.bottom-e.top:(f="bottom",c=e.bottom-o.top);}let x=(e.bottom-e.top)/r.offsetHeight,B=(e.right-e.left)/r.offsetWidth;return {style:`${f}: ${c/x}px; max-width: ${d/B}px`,class:"cm-completionInfo-"+(a?s?"left-narrow":"right-narrow":l?"left":"right")}}function Cr(t){let e=t.addToOptions.slice();return t.icons&&e.push({render(o){let n=document.createElement("div");return n.classList.add("cm-completionIcon"),o.type&&n.classList.add(...o.type.split(/\s+/g).map(i=>"cm-completionIcon-"+i)),n.setAttribute("aria-hidden","true"),n},position:20}),e.push({render(o,n,i,r){let s=document.createElement("span");s.className="cm-completionLabel";let l=o.displayLabel||o.label,a=0;for(let f=0;fa&&s.appendChild(document.createTextNode(l.slice(a,c)));let m=s.appendChild(document.createElement("span"));m.appendChild(document.createTextNode(l.slice(c,d))),m.className="cm-completionMatchedText",a=d;}return ao.position-n.position).map(o=>o.render)}function Fe(t,e,o){if(t<=o)return {from:0,to:t};if(e<0&&(e=0),e<=t>>1){let i=Math.floor(e/o);return {from:i*o,to:(i+1)*o}}let n=Math.floor((t-e)/o);return {from:t-(n+1)*o,to:t-n*o}}class vr{constructor(e,o,n){this.view=e,this.stateField=o,this.applyCompletion=n,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:a=>this.placeInfo(a),key:this},this.space=null,this.currentClass="";let i=e.state.field(o),{options:r,selected:s}=i.open,l=e.state.facet(A);this.optionContent=Cr(l),this.optionClass=l.optionClass,this.tooltipClass=l.tooltipClass,this.range=Fe(r.length,s,l.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",a=>{let{options:f}=e.state.field(o).open;for(let c=a.target,d;c&&c!=this.dom;c=c.parentNode)if(c.nodeName=="LI"&&(d=/-(\d+)$/.exec(c.id))&&+d[1]{let f=e.state.field(this.stateField,false);f&&f.tooltip&&e.state.facet(A).closeOnBlur&&a.relatedTarget!=e.contentDOM&&e.dispatch({effects:me.of(null)});}),this.showOptions(r,i.id);}mount(){this.updateSel();}showOptions(e,o){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,o,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq);});}update(e){var o;let n=e.state.field(this.stateField),i=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),n!=i){let{options:r,selected:s,disabled:l}=n.open;(!i.open||i.open.options!=r)&&(this.range=Fe(r.length,s,e.state.facet(A).maxRenderedOptions),this.showOptions(r,n.id)),this.updateSel(),l!=((o=i.open)===null||o===void 0?void 0:o.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!l);}}updateTooltipClass(e){let o=this.tooltipClass(e);if(o!=this.currentClass){for(let n of this.currentClass.split(" "))n&&this.dom.classList.remove(n);for(let n of o.split(" "))n&&this.dom.classList.add(n);this.currentClass=o;}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq);}updateSel(){let e=this.view.state.field(this.stateField),o=e.open;(o.selected>-1&&o.selected=this.range.to)&&(this.range=Fe(o.options.length,o.selected,this.view.state.facet(A).maxRenderedOptions),this.showOptions(o.options,e.id));let n=this.updateSelectedOption(o.selected);if(n){this.destroyInfo();let{completion:i}=o.options[o.selected],{info:r}=i;if(!r)return;let s=typeof r=="string"?document.createTextNode(r):r(i);if(!s)return;"then"in s?s.then(l=>{l&&this.view.state.field(this.stateField,false)==e&&this.addInfoPane(l,i);}).catch(l=>vt$1(this.view.state,l,"completion info")):(this.addInfoPane(s,i),n.setAttribute("aria-describedby",this.info.id));}}addInfoPane(e,o){this.destroyInfo();let n=this.info=document.createElement("div");if(n.className="cm-tooltip cm-completionInfo",n.id="cm-completionInfo-"+Math.floor(Math.random()*65535).toString(16),e.nodeType!=null)n.appendChild(e),this.infoDestroy=null;else {let{dom:i,destroy:r}=e;n.appendChild(i),this.infoDestroy=r||null;}this.dom.appendChild(n),this.view.requestMeasure(this.placeInfoReq);}updateSelectedOption(e){let o=null;for(let n=this.list.firstChild,i=this.range.from;n;n=n.nextSibling,i++)n.nodeName!="LI"||!n.id?i--:i==e?n.hasAttribute("aria-selected")||(n.setAttribute("aria-selected","true"),o=n):n.hasAttribute("aria-selected")&&(n.removeAttribute("aria-selected"),n.removeAttribute("aria-describedby"));return o&&wr(this.list,o),o}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let o=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),i=e.getBoundingClientRect(),r=this.space;if(!r){let s=this.dom.ownerDocument.documentElement;r={left:0,top:0,right:s.clientWidth,bottom:s.clientHeight};}return i.top>Math.min(r.bottom,o.bottom)-10||i.bottom{s.target==i&&s.preventDefault();});let r=null;for(let s=n.from;sn.from||n.from==0))if(r=m,typeof f!="string"&&f.header)i.appendChild(f.header(f));else {let h=i.appendChild(document.createElement("completion-section"));h.textContent=m;}}const c=i.appendChild(document.createElement("li"));c.id=o+"-"+s,c.setAttribute("role","option");let d=this.optionClass(l);d&&(c.className=d);for(let m of this.optionContent){let h=m(l,this.view.state,this.view,a);h&&c.appendChild(h);}}return n.from&&i.classList.add("cm-completionListIncompleteTop"),n.tonew vr(o,t,e)}function wr(t,e){let o=t.getBoundingClientRect(),n=e.getBoundingClientRect(),i=o.height/t.offsetHeight;n.topo.bottom&&(t.scrollTop+=(n.bottom-o.bottom)/i);}function Et(t){return (t.boost||0)*100+(t.apply?10:0)+(t.info?5:0)+(t.type?1:0)}function Ar(t,e){let o=[],n=null,i=null,r=c=>{o.push(c);let{section:d}=c.completion;if(d){n||(n=[]);let m=typeof d=="string"?d:d.name;n.some(h=>h.name==m)||n.push(typeof d=="string"?{name:m}:d);}},s=e.facet(A);for(let c of t)if(c.hasResult()){let d=c.result.getMatch;if(c.result.filter===false)for(let m of c.result.options)r(new Tt(m,c.source,d?d(m):[],1e9-o.length));else {let m=e.sliceDoc(c.from,c.to),h,p=s.filterStrict?new kr(m):new br(m);for(let y of c.result.options)if(h=p.match(y.label)){let x=y.displayLabel?d?d(y,h.matched):[]:h.matched,B=h.score+(y.boost||0);if(r(new Tt(y,c.source,x,B)),typeof y.section=="object"&&y.section.rank==="dynamic"){let{name:k}=y.section;i||(i=Object.create(null)),i[k]=Math.max(B,i[k]||-1e9);}}}}if(n){let c=Object.create(null),d=0,m=(h,p)=>(h.rank==="dynamic"&&p.rank==="dynamic"?i[p.name]-i[h.name]:0)||(typeof h.rank=="number"?h.rank:1e9)-(typeof p.rank=="number"?p.rank:1e9)||(h.namem.score-d.score||f(d.completion,m.completion))){let d=c.completion;!a||a.label!=d.label||a.detail!=d.detail||a.type!=null&&d.type!=null&&a.type!=d.type||a.apply!=d.apply||a.boost!=d.boost?l.push(c):Et(c.completion)>Et(a)&&(l[l.length-1]=c),a=c.completion;}return l}class oe{constructor(e,o,n,i,r,s){this.options=e,this.attrs=o,this.tooltip=n,this.timestamp=i,this.selected=r,this.disabled=s;}setSelected(e,o){return e==this.selected||e>=this.options.length?this:new oe(this.options,Rt(o,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,o,n,i,r,s){if(i&&!s&&e.some(f=>f.isPending))return i.setDisabled();let l=Ar(e,o);if(!l.length)return i&&e.some(f=>f.isPending)?i.setDisabled():null;let a=o.facet(A).selectOnOpen?0:-1;if(i&&i.selected!=a&&i.selected!=-1){let f=i.options[i.selected].completion;for(let c=0;cc.hasResult()?Math.min(f,c.from):f,1e8),create:Ir,above:r.aboveCursor},i?i.timestamp:Date.now(),a,false)}map(e){return new oe(this.options,this.attrs,{...this.tooltip,pos:e.mapPos(this.tooltip.pos)},this.timestamp,this.selected,this.disabled)}setDisabled(){return new oe(this.options,this.attrs,this.tooltip,this.timestamp,this.selected,true)}}class Me{constructor(e,o,n){this.active=e,this.id=o,this.open=n;}static start(){return new Me(Mr,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(e){let{state:o}=e,n=o.facet(A),r=(n.override||o.languageDataAt("autocomplete",X(o)).map(yr)).map(a=>(this.active.find(c=>c.source==a)||new R(a,this.active.some(c=>c.state!=0)?1:0)).update(e,n));r.length==this.active.length&&r.every((a,f)=>a==this.active[f])&&(r=this.active);let s=this.open,l=e.effects.some(a=>a.is(ht));s&&e.docChanged&&(s=s.map(e.changes)),e.selection||r.some(a=>a.hasResult()&&e.changes.touchesRange(a.from,a.to))||!Br(r,this.active)||l?s=oe.build(r,o,this.id,s,n,l):s&&s.disabled&&!r.some(a=>a.isPending)&&(s=null),!s&&r.every(a=>!a.isPending)&&r.some(a=>a.hasResult())&&(r=r.map(a=>a.hasResult()?new R(a.source,0):a));for(let a of e.effects)a.is(Ko)&&(s=s&&s.setSelected(a.value,this.id));return r==this.active&&s==this.open?this:new Me(r,this.id,s)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?Dr:Lr}}function Br(t,e){if(t==e)return true;for(let o=0,n=0;;){for(;o-1&&(o["aria-activedescendant"]=t+"-"+e),o}const Mr=[];function Go(t,e){if(t.isUserEvent("input.complete")){let n=t.annotation(jo);if(n&&e.activateOnCompletion(n))return 12}let o=t.isUserEvent("input.type");return o&&e.activateOnTyping?5:o?1:t.isUserEvent("delete.backward")?2:t.selection?8:t.docChanged?16:0}class R{constructor(e,o,n=false){this.source=e,this.state=o,this.explicit=n;}hasResult(){return false}get isPending(){return this.state==1}update(e,o){let n=Go(e,o),i=this;(n&8||n&16&&this.touches(e))&&(i=new R(i.source,0)),n&4&&i.state==0&&(i=new R(this.source,1)),i=i.updateFor(e,n);for(let r of e.effects)if(r.is(Le))i=new R(i.source,1,r.value);else if(r.is(me))i=new R(i.source,0);else if(r.is(ht))for(let s of r.value)s.source==i.source&&(i=s);return i}updateFor(e,o){return this.map(e.changes)}map(e){return this}touches(e){return e.changes.touchesRange(X(e.state))}}class ne extends R{constructor(e,o,n,i,r,s){super(e,3,o),this.limit=n,this.result=i,this.from=r,this.to=s;}hasResult(){return true}updateFor(e,o){var n;if(!(o&3))return this.map(e.changes);let i=this.result;i.map&&!e.changes.empty&&(i=i.map(i,e.changes));let r=e.changes.mapPos(this.from),s=e.changes.mapPos(this.to,1),l=X(e.state);if(l>s||!i||o&2&&(X(e.startState)==this.from||lo.map(e))}}),Ko=U.define(),M=Ft$1.define({create(){return Me.start()},update(t,e){return t.update(e)},provide:t=>[gl.from(t,e=>e.tooltip),B.contentAttributes.from(t,e=>e.attrs)]});function mt(t,e){const o=e.completion.apply||e.completion.label;let n=t.state.field(M).active.find(i=>i.source==e.source);return n instanceof ne?(typeof o=="string"?t.dispatch({...gr(t.state,o,n.from,n.to),annotations:jo.of(e.completion)}):o(t,e.completion,n.from,n.to),true):false}const Ir=Sr(M,mt);function xe(t,e="option"){return o=>{let n=o.state.field(M,false);if(!n||!n.open||n.open.disabled||Date.now()-n.open.timestamp-1?n.open.selected+i*(t?1:-1):t?0:s-1;return l<0?l=e=="page"?0:s-1:l>=s&&(l=e=="page"?s-1:0),o.dispatch({effects:Ko.of(l)}),true}}const Jo=t=>{let e=t.state.field(M,false);return t.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestampt.state.field(M,false)?(t.dispatch({effects:Le.of(true)}),true):false,Or=t=>{let e=t.state.field(M,false);return !e||!e.active.some(o=>o.state!=0)?false:(t.dispatch({effects:me.of(null)}),true)};class Er{constructor(e,o){this.active=e,this.context=o,this.time=Date.now(),this.updates=[],this.done=void 0;}}const Rr=50,Pr=1e3;nt$1.fromClass(class{constructor(t){this.view=t,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=false,this.composing=0;for(let e of t.state.field(M).active)e.isPending&&this.startQuery(e);}update(t){let e=t.state.field(M),o=t.state.facet(A);if(!t.selectionSet&&!t.docChanged&&t.startState.field(M)==e)return;let n=t.transactions.some(r=>{let s=Go(r,o);return s&8||(r.selection||r.docChanged)&&!(s&3)});for(let r=0;rRr&&Date.now()-s.time>Pr){for(let l of s.context.abortListeners)try{l();}catch(a){vt$1(this.view.state,a);}s.context.abortListeners=null,this.running.splice(r--,1);}else s.updates.push(...t.transactions);}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),t.transactions.some(r=>r.effects.some(s=>s.is(Le)))&&(this.pendingStart=true);let i=this.pendingStart?50:o.activateOnTypingDelay;if(this.debounceUpdate=e.active.some(r=>r.isPending&&!this.running.some(s=>s.active.source==r.source))?setTimeout(()=>this.startUpdate(),i):-1,this.composing!=0)for(let r of t.transactions)r.isUserEvent("input.type")?this.composing=2:this.composing==2&&r.selection&&(this.composing=3);}startUpdate(){this.debounceUpdate=-1,this.pendingStart=false;let{state:t}=this.view,e=t.field(M);for(let o of e.active)o.isPending&&!this.running.some(n=>n.active.source==o.source)&&this.startQuery(o);this.running.length&&e.open&&e.open.disabled&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(A).updateSyncTime));}startQuery(t){let{state:e}=this.view,o=X(e),n=new zo(e,o,t.explicit,this.view),i=new Er(t,n);this.running.push(i),Promise.resolve(t.source(n)).then(r=>{i.context.aborted||(i.done=r||null,this.scheduleAccept());},r=>{this.view.dispatch({effects:me.of(null)}),vt$1(this.view.state,r);});}scheduleAccept(){this.running.every(t=>t.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(A).updateSyncTime));}accept(){var t;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],o=this.view.state.facet(A),n=this.view.state.field(M);for(let i=0;il.source==r.active.source);if(s&&s.isPending)if(r.done==null){let l=new R(r.active.source,0);for(let a of r.updates)l=l.update(a,o);l.isPending||e.push(l);}else this.startQuery(s);}(e.length||n.open&&n.open.disabled)&&this.view.dispatch({effects:ht.of(e)});}},{eventHandlers:{blur(t){let e=this.view.state.field(M,false);if(e&&e.tooltip&&this.view.state.facet(A).closeOnBlur){let o=e.open&&su(this.view,e.open.tooltip);(!o||!o.dom.contains(t.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:me.of(null)}),10);}},compositionstart(){this.composing=1;},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:Le.of(false)}),20),this.composing=0;}}});const Nr=typeof navigator=="object"&&/Win/.test(navigator.platform);$i$1.highest(B.domEventHandlers({keydown(t,e){let o=e.state.field(M,false);if(!o||!o.open||o.open.disabled||o.open.selected<0||t.key.length>1||t.ctrlKey&&!(Nr&&t.altKey)||t.metaKey)return false;let n=o.open.options[o.open.selected],i=o.active.find(s=>s.source==n.source),r=n.completion.commitCharacters||i.result.commitCharacters;return r&&r.indexOf(t.key)>-1&&mt(e,n),false}}));B.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box",whiteSpace:"pre-line"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});const pe={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},Y=U.define({map(t,e){let o=e.mapPos(t,-1,at.TrackAfter);return o??void 0}}),pt=new class extends le$1{};pt.startSide=1;pt.endSide=-1;const Qo=Ft$1.define({create(){return L.empty},update(t,e){if(t=t.map(e.changes),e.selection){let o=e.state.doc.lineAt(e.selection.main.head);t=t.update({filter:n=>n>=o.from&&n<=o.to});}for(let o of e.effects)o.is(Y)&&(t=t.update({add:[pt.range(o.value,o.value+1)]}));return t}});function $r(){return [Hr,Qo]}const We="()[]{}<>«»»«[]{}";function Yo(t){for(let e=0;e{if((Wr?t.composing:t.compositionStarted)||t.state.readOnly)return false;let i=t.state.selection.main;if(n.length>2||n.length==2&&Jl(ro(n,0))==1||e!=i.from||o!=i.to)return false;let r=qr(t.state,n);return r?(t.dispatch(r),true):false}),Vr=({state:t,dispatch:e})=>{if(t.readOnly)return false;let n=Xo(t,t.selection.main.head).brackets||pe.brackets,i=null,r=t.changeByRange(s=>{if(s.empty){let l=jr(t.doc,s.head);for(let a of n)if(a==l&&_e(t.doc,s.head)==Yo(ro(a,0)))return {changes:{from:s.head-a.length,to:s.head+a.length},range:C.cursor(s.head-a.length)}}return {range:i=s}});return i||e(t.update(r,{scrollIntoView:true,userEvent:"delete.backward"})),!i},zr=[{key:"Backspace",run:Vr}];function qr(t,e){let o=Xo(t,t.selection.main.head),n=o.brackets||pe.brackets;for(let i of n){let r=Yo(ro(i,0));if(e==i)return r==i?Jr(t,i,n.indexOf(i+i+i)>-1,o):Gr(t,i,r,o.before||pe.before);if(e==r&&Zo(t,t.selection.main.from))return Kr(t,i,r)}return null}function Zo(t,e){let o=false;return t.field(Qo).between(0,t.doc.length,n=>{n==e&&(o=true);}),o}function _e(t,e){let o=t.sliceString(e,e+2);return o.slice(0,Jl(ro(o,0)))}function jr(t,e){let o=t.sliceString(e-2,e);return Jl(ro(o,0))==o.length?o:o.slice(1)}function Gr(t,e,o,n){let i=null,r=t.changeByRange(s=>{if(!s.empty)return {changes:[{insert:e,from:s.from},{insert:o,from:s.to}],effects:Y.of(s.to+e.length),range:C.range(s.anchor+e.length,s.head+e.length)};let l=_e(t.doc,s.head);return !l||/\s/.test(l)||n.indexOf(l)>-1?{changes:{insert:e+o,from:s.head},effects:Y.of(s.head+e.length),range:C.cursor(s.head+e.length)}:{range:i=s}});return i?null:t.update(r,{scrollIntoView:true,userEvent:"input.type"})}function Kr(t,e,o){let n=null,i=t.changeByRange(r=>r.empty&&_e(t.doc,r.head)==o?{changes:{from:r.head,to:r.head+o.length,insert:o},range:C.cursor(r.head+o.length)}:n={range:r});return n?null:t.update(i,{scrollIntoView:true,userEvent:"input.type"})}function Jr(t,e,o,n){let i=n.stringPrefixes||pe.stringPrefixes,r=null,s=t.changeByRange(l=>{if(!l.empty)return {changes:[{insert:e,from:l.from},{insert:e,from:l.to}],effects:Y.of(l.to+e.length),range:C.range(l.anchor+e.length,l.head+e.length)};let a=l.head,f=_e(t.doc,a),c;if(f==e){if(Pt(t,a))return {changes:{insert:e+e,from:a},effects:Y.of(a+e.length),range:C.cursor(a+e.length)};if(Zo(t,a)){let m=o&&t.sliceDoc(a,a+e.length*3)==e+e+e?e+e+e:e;return {changes:{from:a,to:a+m.length,insert:m},range:C.cursor(a+m.length)}}}else {if(o&&t.sliceDoc(a-2*e.length,a)==e+e&&(c=_t(t,a-2*e.length,i))>-1&&Pt(t,c))return {changes:{insert:e+e+e+e,from:a},effects:Y.of(a+e.length),range:C.cursor(a+e.length)};if(t.charCategorizer(a)(f)!=Nt$1.Word&&_t(t,a,i)>-1&&!Qr(t,a,e,i))return {changes:{insert:e+e,from:a},effects:Y.of(a+e.length),range:C.cursor(a+e.length)}}return {range:r=l}});return r?null:t.update(s,{scrollIntoView:true,userEvent:"input.type"})}function Pt(t,e){let o=Rt$1(t).resolveInner(e+1);return o.parent&&o.from==e}function Qr(t,e,o,n){let i=Rt$1(t).resolveInner(e,-1),r=n.reduce((s,l)=>Math.max(s,l.length),0);for(let s=0;s<5;s++){let l=t.sliceDoc(i.from,Math.min(i.to,i.from+o.length+r)),a=l.indexOf(o);if(!a||a>-1&&n.indexOf(l.slice(0,a))>-1){let c=i.firstChild;for(;c&&c.from==i.from&&c.to-c.from>o.length+a;){if(t.sliceDoc(c.to-o.length,c.to)==o)return false;c=c.firstChild;}return true}let f=i.to==e&&i.parent;if(!f)break;i=f;}return false}function _t(t,e,o){let n=t.charCategorizer(e);if(n(t.sliceDoc(e-1,e))!=Nt$1.Word)return e;for(let i of o){let r=e-i.length;if(t.sliceDoc(r,e)==i&&n(t.sliceDoc(r-1,r))!=Nt$1.Word)return r}return -1}const en=[{key:"Ctrl-Space",run:$e},{mac:"Alt-`",run:$e},{mac:"Alt-i",run:$e},{key:"Escape",run:Or},{key:"ArrowDown",run:xe(true)},{key:"ArrowUp",run:xe(false)},{key:"PageDown",run:xe(true,"page")},{key:"PageUp",run:xe(false,"page")},{key:"Enter",run:Jo}];$i$1.highest(Jh.computeN([A],t=>t.facet(A).defaultKeymap?[en]:[]));const Zr="#2E3235",W="#DDDDDD",de="#B9D2FF",Ce="#b0b0b0",es="#e0e0e0",tn="#808080",He="#000000",ts="#A54543",on="#fc6d24",J="#fda331",Ve="#8abeb7",Nt="#b5bd68",ce="#6fb3d2",fe="#cc99cc",os="#6987AF",Ut=on,Ft="#292d30",ve=de+"30",ns=Zr,ze=W,is="#202325",$t=W,rs=B.theme({"&":{color:W,backgroundColor:ns},".cm-content":{caretColor:$t},".cm-cursor, .cm-dropCursor":{borderLeftColor:$t},"&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:is},".cm-panels":{backgroundColor:Ft,color:Ce},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:de,outline:`1px solid ${Ce}`,color:He},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:es,color:He},".cm-activeLine":{backgroundColor:ve},".cm-selectionMatch":{backgroundColor:ve},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{outline:`1px solid ${Ce}`},"&.cm-focused .cm-matchingBracket":{backgroundColor:de,color:He},".cm-gutters":{borderRight:"1px solid #ffffff10",color:tn,backgroundColor:Ft},".cm-activeLineGutter":{backgroundColor:ve},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:de},".cm-tooltip":{border:"none",backgroundColor:ze},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:ze,borderBottomColor:ze},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:ve,color:Ce}}},{dark:true}),ss=es$1.define([{tag:k$1.keyword,color:J},{tag:[k$1.name,k$1.deleted,k$1.character,k$1.propertyName,k$1.macroName],color:Nt},{tag:[k$1.variableName],color:ce},{tag:[k$1.function(k$1.variableName)],color:J},{tag:[k$1.labelName],color:on},{tag:[k$1.color,k$1.constant(k$1.name),k$1.standard(k$1.name)],color:J},{tag:[k$1.definition(k$1.name),k$1.separator],color:fe},{tag:[k$1.brace],color:fe},{tag:[k$1.annotation],color:Ut},{tag:[k$1.number,k$1.changed,k$1.annotation,k$1.modifier,k$1.self,k$1.namespace],color:J},{tag:[k$1.typeName,k$1.className],color:ce},{tag:[k$1.operator,k$1.operatorKeyword],color:fe},{tag:[k$1.tagName],color:J},{tag:[k$1.squareBracket],color:fe},{tag:[k$1.angleBracket],color:fe},{tag:[k$1.attributeName],color:ce},{tag:[k$1.regexp],color:J},{tag:[k$1.quote],color:W},{tag:[k$1.string],color:Nt},{tag:k$1.link,color:os,textDecoration:"underline",textUnderlinePosition:"under"},{tag:[k$1.url,k$1.escape,k$1.special(k$1.string)],color:Ve},{tag:[k$1.meta],color:ts},{tag:[k$1.comment],color:tn,fontStyle:"italic"},{tag:k$1.monospace,color:W},{tag:k$1.strong,fontWeight:"bold",color:J},{tag:k$1.emphasis,fontStyle:"italic",color:ce},{tag:k$1.strikethrough,textDecoration:"line-through"},{tag:k$1.heading,fontWeight:"bold",color:W},{tag:k$1.special(k$1.heading1),fontWeight:"bold",color:W},{tag:k$1.heading1,fontWeight:"bold",color:W},{tag:[k$1.heading2,k$1.heading3,k$1.heading4],fontWeight:"bold",color:W},{tag:[k$1.heading5,k$1.heading6],color:W},{tag:[k$1.atom,k$1.bool,k$1.special(k$1.variableName)],color:Ve},{tag:[k$1.processingInstruction,k$1.inserted],color:Ve},{tag:[k$1.contentSeparator],color:ce},{tag:k$1.invalid,color:de,borderBottom:`1px dotted ${Ut}`}]);[rs,fu(ss)];const Wt="#2e3440",gt="#3b4252",Ht="#434c5e",Se="#4c566a",Vt="#e5e9f0",it="#eceff4",qe="#8fbcbb",zt="#88c0d0",as="#81a1c1",_="#5e81ac",cs="#bf616a",ee="#d08770",je="#ebcb8b",qt="#a3be8c",fs="#b48ead",jt="#d30102",yt=it,Ge=yt,us="#ffffff",Ke=gt,ds=yt,Gt=gt,hs=B.theme({"&":{color:Wt,backgroundColor:us},".cm-content":{caretColor:Gt},".cm-cursor, .cm-dropCursor":{borderLeftColor:Gt},"&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:ds},".cm-panels":{backgroundColor:yt,color:Se},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:`1px solid ${Se}`},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:Vt},".cm-activeLine":{backgroundColor:Ge},".cm-selectionMatch":{backgroundColor:Vt},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{outline:`1px solid ${Se}`},"&.cm-focused .cm-matchingBracket":{backgroundColor:it},".cm-gutters":{backgroundColor:it,color:Wt,border:"none"},".cm-activeLineGutter":{backgroundColor:Ge},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:Ke},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:Ke,borderBottomColor:Ke},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:Ge,color:Se}}},{dark:false}),ms=es$1.define([{tag:k$1.keyword,color:_},{tag:[k$1.name,k$1.deleted,k$1.character,k$1.propertyName,k$1.macroName],color:ee},{tag:[k$1.variableName],color:ee},{tag:[k$1.function(k$1.variableName)],color:_},{tag:[k$1.labelName],color:as},{tag:[k$1.color,k$1.constant(k$1.name),k$1.standard(k$1.name)],color:_},{tag:[k$1.definition(k$1.name),k$1.separator],color:qt},{tag:[k$1.brace],color:qe},{tag:[k$1.annotation],color:jt},{tag:[k$1.number,k$1.changed,k$1.annotation,k$1.modifier,k$1.self,k$1.namespace],color:zt},{tag:[k$1.typeName,k$1.className],color:je},{tag:[k$1.operator,k$1.operatorKeyword],color:qt},{tag:[k$1.tagName],color:fs},{tag:[k$1.squareBracket],color:cs},{tag:[k$1.angleBracket],color:ee},{tag:[k$1.attributeName],color:je},{tag:[k$1.regexp],color:_},{tag:[k$1.quote],color:gt},{tag:[k$1.string],color:ee},{tag:k$1.link,color:qe,textDecoration:"underline",textUnderlinePosition:"under"},{tag:[k$1.url,k$1.escape,k$1.special(k$1.string)],color:ee},{tag:[k$1.meta],color:zt},{tag:[k$1.comment],color:Ht,fontStyle:"italic"},{tag:k$1.strong,fontWeight:"bold",color:_},{tag:k$1.emphasis,fontStyle:"italic",color:_},{tag:k$1.strikethrough,textDecoration:"line-through"},{tag:k$1.heading,fontWeight:"bold",color:_},{tag:k$1.special(k$1.heading1),fontWeight:"bold",color:_},{tag:k$1.heading1,fontWeight:"bold",color:_},{tag:[k$1.heading2,k$1.heading3,k$1.heading4],fontWeight:"bold",color:_},{tag:[k$1.heading5,k$1.heading6],color:_},{tag:[k$1.atom,k$1.bool,k$1.special(k$1.variableName)],color:ee},{tag:[k$1.processingInstruction,k$1.inserted],color:qe},{tag:[k$1.contentSeparator],color:je},{tag:k$1.invalid,color:Ht,borderBottom:`1px dotted ${jt}`}]);[hs,fu(ms)];class Kt{constructor(e,o,n){this.from=e,this.to=o,this.diagnostic=n;}}class Q{constructor(e,o,n){this.diagnostics=e,this.panel=o,this.selected=n;}static init(e,o,n){let i=n.facet(ge).markerFilter;i&&(e=i(e,n));let r=e.slice().sort((h,p)=>h.from-p.from||h.to-p.to),s=new ae$1,l=[],a=0,f=n.doc.iter(),c=0,d=n.doc.length;for(let h=0;;){let p=h==r.length?null:r[h];if(!p&&!l.length)break;let y,x;if(l.length)y=a,x=l.reduce((b,v)=>Math.min(b,v.to),p&&p.from>y?p.from:1e8);else {if(y=p.from,y>d)break;x=p.to,l.push(p),h++;}for(;hb.from||b.to==y))l.push(b),h++,x=Math.min(b.to,x);else {x=Math.min(b.from,x);break}}x=Math.min(x,d);let B=false;if(l.some(b=>b.from==y&&(b.to==x||x==d))&&(B=y==x,!B&&x-y<10)){let b=y-(c+f.value.length);b>0&&(f.next(b),c=y);for(let v=y;;){if(v>=x){B=true;break}if(!f.lineBreak&&c+f.value.length>v)break;v=c+f.value.length,c+=f.value.length,f.next();}}let k=Ls(l);if(B)s.add(y,y,F$1.widget({widget:new ws(k),diagnostics:l.slice()}));else {let b=l.reduce((v,w)=>w.markClass?v+" "+w.markClass:v,"");s.add(y,x,F$1.mark({class:"cm-lintRange cm-lintRange-"+k+b,diagnostics:l.slice(),inclusiveEnd:l.some(v=>v.to>x)}));}if(a=x,a==d)break;for(let b=0;b{if(!(e&&s.diagnostics.indexOf(e)<0))if(!n)n=new Kt(i,r,e||s.diagnostics[0]);else {if(s.diagnostics.indexOf(n.diagnostic)<0)return false;n=new Kt(n.from,r,n.diagnostic);}}),n}function gs(t,e){let o=e.pos,n=e.end||o,i=t.state.facet(ge).hideOn(t,o,n);if(i!=null)return i;let r=t.startState.doc.lineAt(e.pos);return !!(t.effects.some(s=>s.is(nn))||t.changes.touchesRange(r.from,Math.max(r.to,n)))}function ys(t,e){return t.field(I,false)?e:e.concat(U.appendConfig.of(Ms))}const nn=U.define(),bt=U.define(),rn=U.define(),I=Ft$1.define({create(){return new Q(F$1.none,null,null)},update(t,e){if(e.docChanged&&t.diagnostics.size){let o=t.diagnostics.map(e.changes),n=null,i=t.panel;if(t.selected){let r=e.changes.mapPos(t.selected.from,1);n=re(o,t.selected.diagnostic,r)||re(o,null,r);}!o.size&&i&&e.state.facet(ge).autoPanel&&(i=null),t=new Q(o,i,n);}for(let o of e.effects)if(o.is(nn)){let n=e.state.facet(ge).autoPanel?o.value.length?ye.open:null:t.panel;t=Q.init(o.value,n,e.state);}else o.is(bt)?t=new Q(t.diagnostics,o.value?ye.open:null,t.selected):o.is(rn)&&(t=new Q(t.diagnostics,t.panel,o.value));return t},provide:t=>[Ir$1.from(t,e=>e.panel),B.decorations.from(t,e=>e.diagnostics)]}),bs=F$1.mark({class:"cm-lintRange cm-lintRange-active"});function ks(t,e,o){let{diagnostics:n}=t.state.field(I),i,r=-1,s=-1;n.between(e-(o<0?1:0),e+(o>0?1:0),(a,f,{spec:c})=>{if(e>=a&&e<=f&&(a==f||(e>a||o>0)&&(eln(t,o,false)))}const Cs=t=>{let e=t.state.field(I,false);(!e||!e.panel)&&t.dispatch({effects:ys(t.state,[bt.of(true)])});let o=nu(t,ye.open);return o&&o.dom.querySelector(".cm-panel-lint ul").focus(),true},Jt=t=>{let e=t.state.field(I,false);return !e||!e.panel?false:(t.dispatch({effects:bt.of(false)}),true)},vs=t=>{let e=t.state.field(I,false);if(!e)return false;let o=t.state.selection.main,n=e.diagnostics.iter(o.to+1);return !n.value&&(n=e.diagnostics.iter(0),!n.value||n.from==o.from&&n.to==o.to)?false:(t.dispatch({selection:{anchor:n.from,head:n.to},scrollIntoView:true}),true)},Ss=[{key:"Mod-Shift-m",run:Cs,preventDefault:true},{key:"F8",run:vs}],ge=A$1.define({combine(t){return {sources:t.map(e=>e.source).filter(e=>e!=null),..._i$1(t.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{delay:Math.max,markerFilter:Qt,tooltipFilter:Qt,needsRefresh:(e,o)=>e?o?n=>e(n)||o(n):e:o,hideOn:(e,o)=>e?o?(n,i,r)=>e(n,i,r)||o(n,i,r):e:o,autoPanel:(e,o)=>e||o})}}});function Qt(t,e){return t?e?(o,n)=>e(t(o,n),n):t:e}function sn(t){let e=[];if(t)e:for(let{name:o}of t){for(let n=0;nr.toLowerCase()==i.toLowerCase())){e.push(i);continue e}}e.push("");}return e}function ln(t,e,o){var n;let i=o?sn(e.actions):[];return H("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},H("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage(t):e.message),(n=e.actions)===null||n===void 0?void 0:n.map((r,s)=>{let l=false,a=h=>{if(h.preventDefault(),l)return;l=true;let p=re(t.state.field(I).diagnostics,e);p&&r.apply(t,p.from,p.to);},{name:f}=r,c=i[s]?f.indexOf(i[s]):-1,d=c<0?f:[f.slice(0,c),H("u",f.slice(c,c+1)),f.slice(c+1)],m=r.markClass?" "+r.markClass:"";return H("button",{type:"button",class:"cm-diagnosticAction"+m,onclick:a,onmousedown:a,"aria-label":` Action: ${f}${c<0?"":` (access key "${i[s]})"`}.`},d)}),e.source&&H("div",{class:"cm-diagnosticSource"},e.source))}class ws extends zt$1{constructor(e){super(),this.sev=e;}eq(e){return e.sev==this.sev}toDOM(){return H("span",{class:"cm-lintPoint cm-lintPoint-"+this.sev})}}class Yt{constructor(e,o){this.diagnostic=o,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=ln(e,o,true),this.dom.id=this.id,this.dom.setAttribute("role","option");}}class ye{constructor(e){this.view=e,this.items=[];let o=i=>{if(i.keyCode==27)Jt(this.view),this.view.focus();else if(i.keyCode==38||i.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(i.keyCode==40||i.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(i.keyCode==36)this.moveSelection(0);else if(i.keyCode==35)this.moveSelection(this.items.length-1);else if(i.keyCode==13)this.view.focus();else if(i.keyCode>=65&&i.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:r}=this.items[this.selectedIndex],s=sn(r.actions);for(let l=0;l{for(let r=0;rJt(this.view)},"×")),this.update();}get selectedIndex(){let e=this.view.state.field(I).selected;if(!e)return -1;for(let o=0;o{for(let c of f.diagnostics){if(s.has(c))continue;s.add(c);let d=-1,m;for(let h=n;hn&&(this.items.splice(n,d-n),i=true)),o&&m.diagnostic==o.diagnostic?m.dom.hasAttribute("aria-selected")||(m.dom.setAttribute("aria-selected","true"),r=m):m.dom.hasAttribute("aria-selected")&&m.dom.removeAttribute("aria-selected"),n++;}});n({sel:r.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:l,panel:a})=>{let f=a.height/this.list.offsetHeight;l.topa.bottom&&(this.list.scrollTop+=(l.bottom-a.bottom)/f);}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),i&&this.sync();}sync(){let e=this.list.firstChild;function o(){let n=e;e=n.nextSibling,n.remove();}for(let n of this.items)if(n.dom.parentNode==this.list){for(;e!=n.dom;)o();e=n.dom.nextSibling;}else this.list.insertBefore(n.dom,e);for(;e;)o();}moveSelection(e){if(this.selectedIndex<0)return;let o=this.view.state.field(I),n=re(o.diagnostics,this.items[e].diagnostic);n&&this.view.dispatch({selection:{anchor:n.from,head:n.to},scrollIntoView:true,effects:rn.of(n)});}static open(e){return new ye(e)}}function As(t,e='viewBox="0 0 40 40"'){return `url('data:image/svg+xml,${encodeURIComponent(t)}')`}function we(t){return As(``,'width="6" height="3"')}const Bs=B.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:we("#d11")},".cm-lintRange-warning":{backgroundImage:we("orange")},".cm-lintRange-info":{backgroundImage:we("#999")},".cm-lintRange-hint":{backgroundImage:we("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});function Ds(t){return t=="error"?4:t=="warning"?3:t=="info"?2:1}function Ls(t){let e="hint",o=1;for(let n of t){let i=Ds(n.severity);i>o&&(o=i,e=n.severity);}return e}const Ms=[I,B.decorations.compute([I],t=>{let{selected:e,panel:o}=t.field(I);return !e||!o||e.from==e.to?F$1.none:F$1.set([bs.range(e.from,e.to)])}),iu(ks,{hideOn:gs}),Bs];[Qc(),fi(),hu(),Jc(),H$1.allowMultipleSelections.of(true),lu(),fu(cu,{fallback:true}),$r(),tu(),eu(),Jh.of([...zr,...dr,...ki,...au,...en,...Ss])];function Is(t,e){t.component(o=>{let {class_names:n="",value:i=void 0,dark_mode:r,basic:s=true,language:l,lines:a=5,max_lines:f=null,extensions:c=[],use_tab:d=true,readonly:m=false,placeholder:h=void 0,wrap_lines:p=false,show_line_numbers:y=true,autocomplete:x=false,onchange:B$1,onblur:k,onfocus:b,oninput:v}=e;B.theme({"&":{fontSize:"var(--text-sm)",backgroundColor:"var(--border-color-secondary)"},".cm-content":{paddingTop:"5px",paddingBottom:"5px",color:"var(--body-text-color)",fontFamily:"var(--font-mono)",minHeight:"100%"},".cm-gutterElement":{marginRight:"var(--spacing-xs)"},".cm-gutters":{marginRight:"1px",borderRight:"1px solid var(--border-color-primary)",backgroundColor:"var(--block-background-fill);",color:"var(--body-text-color-subdued)"},".cm-focused":{outline:"none"},".cm-scroller":{height:"auto"},".cm-cursor":{borderLeftColor:"var(--body-text-color)"}});B.theme({".cm-tooltip-autocomplete":{"& > ul":{backgroundColor:"var(--background-fill-primary)",color:"var(--body-text-color)"},"& > ul > li[aria-selected]":{backgroundColor:"var(--color-accent-soft)",color:"var(--body-text-color)"}}});o.push(`
    `),bind_props(e,{value:i});});}function Os(t,e$1){t.component(o=>{let{value:n}=e$1,i=false,r;function s(){i=true,r&&clearTimeout(r),r=setTimeout(()=>{i=false;},2e3);}async function l(){"clipboard"in navigator&&(await navigator.clipboard.writeText(n),s());}onDestroy(()=>{r&&clearTimeout(r);}),w(o,{Icon:i?e:h,label:"Copy",onclick:l});});}function Es(t,e$1){t.component(o=>{let{value:n,language:i}=e$1,r=s(i);function s(d){return {py:"py",python:"py",md:"md",markdown:"md",json:"json",html:"html",css:"css",js:"js",javascript:"js",ts:"ts",typescript:"ts",yaml:"yaml",yml:"yml",dockerfile:"dockerfile",sh:"sh",shell:"sh",r:"r",c:"c",cpp:"cpp",latex:"tex"}[d]||"txt"}let l$1=false,a;function f(){l$1=true,a&&clearTimeout(a),a=setTimeout(()=>{l$1=false;},2e3);}let c=URL.createObjectURL(new Blob([n]));onDestroy(()=>{a&&clearTimeout(a);}),u(o,{download:`file.${stringify(r)}`,href:c,onclick:f,children:d=>{w(d,{Icon:l$1?e:l,label:"Download"});},$$slots:{default:true}});});}function Rs(t,e){t.component(o=>{let{value:n,language:i,buttons:r=null,on_custom_button_click:s=null}=e;y(o,{buttons:r,on_custom_button_click:s,children:l=>{r?.some(a=>typeof a=="string"&&a==="download")?(l.push(""),Es(l,{value:n,language:i})):l.push(""),l.push(" "),r?.some(a=>typeof a=="string"&&a==="copy")?(l.push(""),Os(l,{value:n})):l.push(""),l.push("");}});});}function tl(t,e){t.component(o=>{const{$$slots:n,$$events:i$1,...r}=e,s=new $$1(r);let l=s.shared.theme==="dark",a=s.shared.label||s.i18n("code.code");s.props.value;let f=true,c;function d(m){G$1(m,{height:s.props.max_lines&&"fit-content",variant:"solid",padding:false,elem_id:s.shared.elem_id,elem_classes:s.shared.elem_classes,visible:s.shared.visible,scale:s.shared.scale,min_width:s.shared.min_width,children:h=>{W$1(h,spread_props([{autoscroll:s.shared.autoscroll,i18n:s.i18n},s.shared.loading_status,{on_clear_status:()=>s.dispatch("clear_status",s.shared.loading_status)}])),h.push(" "),s.shared.show_label?(h.push(""),k(h,{Icon:i,show_label:s.shared.show_label,label:a,float:false})):h.push(""),h.push(" "),!s.props.value&&!s.shared.interactive?(h.push(""),p(h,{unpadded_box:true,size:"large",children:p=>{i(p);},$$slots:{default:true}})):(h.push(""),Rs(h,{language:s.props.language,value:s.props.value,buttons:s.props.buttons??["copy","download"],on_custom_button_click:p=>{s.dispatch("custom_button_click",{id:p});}}),h.push(" "),Is(h,{language:s.props.language,lines:s.props.lines,max_lines:s.props.max_lines,dark_mode:l,wrap_lines:s.props.wrap_lines,show_line_numbers:s.props.show_line_numbers,autocomplete:s.props.autocomplete,readonly:!s.shared.interactive,onblur:()=>s.dispatch("blur"),onfocus:()=>s.dispatch("focus"),oninput:()=>s.dispatch("input"),get value(){return s.props.value},set value(p){s.props.value=p,f=false;}}),h.push("")),h.push("");},$$slots:{default:true}});}do f=true,c=o.copy(),d(c);while(!f);o.subsume(c);});} + +export { Is as BaseCode, Os as BaseCopy, Es as BaseDownload, Rs as BaseWidget, tl as default }; +//# sourceMappingURL=Index52-Ct2COUi7.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index54-CG_RFEl_.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index54-CG_RFEl_.js new file mode 100644 index 0000000000000000000000000000000000000000..1343bc2417812420926988bbc78d59ca43b4e3cf --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index54-CG_RFEl_.js @@ -0,0 +1,52 @@ +import { f as fallback } from './async-D55cHugf.js'; +import { d as bind_props, f as attr_class, j as clsx, e as ensure_array_like, i as stringify, g as attr_style, a as attr, c as spread_props } from './index-u8mz_F03.js'; +import './2-BLdXJizP.js'; +import { $, c, b } from './utils.svelte-B2py64Fz.js'; +import { c as c$1 } from './Image-CuPo5pWT.js'; +import { c as createEventDispatcher, o as onDestroy } from './index-server-CQz6EZl_.js'; +import { w } from './IconButton-BRnu7KaR.js'; +import { e } from './Check-C7_ZsXgh.js'; +import { h } from './Copy-B8YOhH7c.js'; +import { o } from './Clear-D7Yjckqz.js'; +import { l } from './Download-DcU5dONL.js'; +import { r as r$2 } from './Edit-DWZSi_T0.js'; +import { r as r$1 } from './Undo-Ce01x-M5.js'; +import { u as u$1 } from './DownloadLink-nj1p0krE.js'; +import { u, y as y$1 } from './ShareButton-7VTs9dOO.js'; +import { y } from './IconButtonWrapper-CjFRPb3y.js'; +import { i } from './File-DQh5d1OO.js'; +import { Q as Qt$1 } from './MarkdownCode-DLHRxFlS.js'; +import { r } from './Trash-DLGOAhrN.js'; +import { t } from './Music-B6sg6ISZ.js'; +import { G } from './Block-DZmzQwnI.js'; +import { k } from './BlockLabel-bKYWnOzQ.js'; +import { W } from './index3-Df92vI-L.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; +import './clone-Yk88IHKV.js'; +import './prism-python--2v-p3P4.js'; +import './index50-G3WrDDFf.js'; +import 'path'; +import 'url'; +import 'fs'; +import './html-CfyvkLET.js'; + +function Yt(e){e.push('');}function Kt(e){e.push('');}function Qt(e){e.push('');}const Xt=async(e,l=1800)=>{let t=[...e],o=await ht(t);if(o.length>l&&t.length>2){const u=t[0],n=t[t.length-1];t=[u,n],o=await ht(t);}return o.length>l&&t.length>0&&(t=t.map(n=>{if(n.type==="text"){const s=Math.floor(l/t.length)-20;if(n.content.length>s)return {...n,content:n.content.substring(0,s)+"..."}}return n}),o=await ht(t)),o},ht=async e=>(await Promise.all(e.map(async t=>{if(t.role==="system")return "";let o=t.role==="user"?"😃":"🤖",u="";if(t.type==="text"){const n={audio:/|!\[.*?\]\((\/file=.*?)\)/g};u=t.content;for(let[s,h]of Object.entries(n)){let c;for(;(c=h.exec(t.content))!==null;){const i=c[1]||c[2],p=await b(i);u=u.replace(i,p);}}}else {if(!t.content.value)return "";const n=t.content.component==="video"?t.content.value?.video.path:t.content.value,s=await b(n);t.content.component==="audio"?u=``:t.content.component==="video"?u=s:t.content.component==="image"&&(u=``);}return `${o}: ${u}`}))).filter(t=>t!=="").join(` +`),$t=(e,l)=>e.replace('src="/file',`src="${l}file`);function tl(e,l){if(!e){const t=l?.path;if(t){const o=t.toLowerCase();if(o.endsWith(".glb")||o.endsWith(".gltf")||o.endsWith(".obj")||o.endsWith(".stl")||o.endsWith(".splat")||o.endsWith(".ply"))return "model3d"}return "file"}return e.includes("audio")?"audio":e.includes("video")?"video":e.includes("image")?"image":e.includes("model")?"model3d":"file"}function ll(e){const l=Array.isArray(e.file)?e.file[0]:e.file,t=tl(l?.mime_type,l);return {component:t,value:t==="file"?Array.isArray(e.file)?e.file:[e.file]:e.file,alt_text:e.alt_text,constructor_args:{},props:{}}}function al(e,l,t,o){let u;return l.type==="text"?u={role:e.role,metadata:e.metadata,content:$t(l.text,t),type:"text",index:o,options:e.options}:l.type==="file"?u={role:e.role,metadata:e.metadata,content:ll(l),type:"component",index:o,options:e.options}:u={role:e.role,metadata:e.metadata,content:l,type:"component",index:o,options:e.options},u}function el(e,l){if(e===null)return e;const t=new Map;return e.flatMap((o,u)=>{const n=o.content.map(s=>al(o,s,l,u));for(const s of n){const{id:h,title:c,parent_id:i}=o.metadata||{};if(i){const p=t.get(String(i));if(p){const _={...s,children:[]};return p.children.push(_),h&&c&&t.set(String(h),_),null}}if(h&&c){const p={...s,children:[]};return t.set(String(h),p),p}}return n}).filter(o=>o!==null)}function sl(e){return e.type==="component"}function kt(e,l){const t=e[e.length-1].role==="assistant",o=e[e.length-1].index;return JSON.stringify(o)===JSON.stringify(l[l.length-1].index)&&t}function ol(e,l=true){const t=[];let o=[],u=null;for(const n of e)if(n.role==="assistant"||n.role==="user"){if(!l){t.push([n]);continue}n.role===u?o.push(n):(o.length>0&&t.push(o),o=[n],u=n.role);}return o.length>0&&t.push(o),t}async function il(e,l,t){for(const o of e){if(l[o]||o==="file")continue;const u=o==="dataframe"?"component":"base",{component:n}=t(o,u),s=await n;l[o]=s.default;}return l}function xt(e){if(!e)return [];let l=new Set;return e.forEach(t=>{t.type==="component"&&l.add(t.content.component);}),Array.from(l)}function ft(e,l=0){let t="";const o=" ".repeat(l);e.metadata?.title&&(t+=`${o}${l>0?"- ":""}${e.metadata.title} +`),typeof e.content=="string"&&(t+=`${o} ${e.content} +`);const u=e;return u.children?.length>0&&(t+=u.children.map(n=>ft(n,l+1)).join("")),t}function nl(e){return Array.isArray(e)?e.map(l=>l.metadata?.title?ft(l):l.content).join(` +`):e.metadata?.title?ft(e):e.content}function rt(e){return Array.isArray(e)&&e.every(l=>typeof l.content=="string")||!Array.isArray(e)&&typeof e.content=="string"}function ul(e){e.push('');}function cl(e){e.push('');}function hl(e){e.push('');}function pl(e){e.push('');}function _l(e){e.push('');}function fl(e){e.push('');}function ml(e,l){e.component(t=>{let o,u=l.i18n,n=l.handle_action,s=l.feedback_options,h=fallback(l.selected,null);function c(i){h=h===i?null:i,n(h);}if(o=s.filter(i=>i!=="Like"&&i!=="Dislike"),s.includes("Like")||s.includes("Dislike")?(t.push(""),s.includes("Dislike")?(t.push(""),w(t,{Icon:h==="Dislike"?ul:cl,label:h==="Dislike"?"Disliked":u("chatbot.dislike"),color:h==="Dislike"?"var(--color-accent)":"var(--block-label-text-color)",onclick:()=>c("Dislike")})):t.push(""),t.push(" "),s.includes("Like")?(t.push(""),w(t,{Icon:h==="Like"?hl:pl,label:h==="Like"?"Liked":u("chatbot.like"),color:h==="Like"?"var(--color-accent)":"var(--block-label-text-color)",onclick:()=>c("Like")})):t.push(""),t.push("")):t.push(""),t.push(" "),o.length>0){t.push(""),t.push('
    '),w(t,{Icon:h&&o.includes(h)?fl:_l,label:"Feedback",color:h&&o.includes(h)?"var(--color-accent)":"var(--block-label-text-color)"}),t.push('
    ');const i=ensure_array_like(o);for(let p=0,_=i.length;p<_;p++){let v=i[p];t.push(``);}t.push("
    ");}else t.push("");t.push(""),bind_props(l,{i18n:u,handle_action:n,feedback_options:s,selected:h});});}function dl(e$1,l){e$1.component(t=>{let u=false,n=l.value,s=fallback(l.watermark,null),h$1=l.i18n,c;function i(){u=true,c&&clearTimeout(c),c=setTimeout(()=>{u=false;},2e3);}async function p(){if("clipboard"in navigator){const _=s?`${n} + +${s}`:n;await navigator.clipboard.writeText(_),i();}else {const _=document.createElement("textarea"),v=s?`${n} + +${s}`:n;_.value=v,_.style.position="absolute",_.style.left="-999999px",document.body.prepend(_),_.select();try{document.execCommand("copy"),i();}catch(y){console.error(y);}finally{_.remove();}}}onDestroy(()=>{c&&clearTimeout(c);}),w(t,{onclick:p,label:h$1(u?"chatbot.copied_message":"chatbot.copy_message"),Icon:u?e:h}),bind_props(l,{value:n,watermark:s,i18n:h$1});});}function Ct(e$1,l$1){e$1.component(t=>{let o$1,u,n=l$1.i18n,s=l$1.likeable,h=l$1.feedback_options,c=l$1.show_retry,i=l$1.show_undo,p=l$1.show_edit,_=l$1.in_edit_mode,v=l$1.show_copy_button,y$2=fallback(l$1.watermark,null),r=l$1.message,L=l$1.position,z=l$1.avatar,M=l$1.generating,k=l$1.current_feedback,x=fallback(l$1.file,null),V=fallback(l$1.show_download_button,false),B=fallback(l$1.show_share_button,false),A=l$1.handle_action,j=l$1.layout,U=l$1.dispatch;o$1=rt(r)?nl(r):"",u=v&&r&&rt(r),u||c||i||p||s||V&&x?.url||B&&x?(t.push(""),t.push(``),y(t,{top_panel:false,children:f=>{_?(f.push(""),w(f,{label:n("chatbot.submit"),Icon:e,onclick:()=>A("edit_submit"),disabled:M}),f.push(" "),w(f,{label:n("chatbot.cancel"),Icon:o,onclick:()=>A("edit_cancel"),disabled:M}),f.push("")):(f.push(""),u?(f.push(""),dl(f,{value:o$1,watermark:y$2,i18n:n})):f.push(""),f.push(" "),V&&x?.url?(f.push(""),u$1(f,{href:x.is_stream?x.url?.replace("playlist.m3u8","playlist-file"):x.url,download:x.orig_name||x.path||"file",children:S=>{w(S,{Icon:l,label:n("common.download")});},$$slots:{default:true}})):f.push(""),f.push(" "),B&&x?(f.push(""),y$1(f,{i18n:n,formatter:async S=>{if(!S)return "";let W=await b(S.url);const T=S.mime_type||"";return T.startsWith("audio/")?``:T.startsWith("video/")?``:T.startsWith("image/")?``:""},value:x})):f.push(""),f.push(" "),c?(f.push(""),w(f,{Icon:Qt,label:n("chatbot.retry"),onclick:()=>A("retry"),disabled:M})):f.push(""),f.push(" "),i?(f.push(""),w(f,{label:n("chatbot.undo"),Icon:r$1,onclick:()=>A("undo"),disabled:M})):f.push(""),f.push(" "),p?(f.push(""),w(f,{label:n("chatbot.edit"),Icon:r$2,onclick:()=>A("edit"),disabled:M})):f.push(""),f.push(" "),s?(f.push(""),ml(f,{handle_action:A,feedback_options:h,selected:k,i18n:n})):f.push(""),f.push("")),f.push("");}}),t.push("")):t.push(""),t.push(""),bind_props(l$1,{i18n:n,likeable:s,feedback_options:h,show_retry:c,show_undo:i,show_edit:p,in_edit_mode:_,show_copy_button:v,watermark:y$2,message:r,position:L,avatar:z,generating:M,current_feedback:k,file:x,show_download_button:V,show_share_button:B,handle_action:A,layout:j,dispatch:U});});}function vl(e,l){e.component(t=>{let o=l.type,u=l.components,n=l.value,s=l.target,h=l.theme_mode,c=l.props,i=l.i18n,p=l.upload,_=l._fetch,v=l.allow_file_downloads,y=fallback(l.display_icon_button_wrapper_top_corner,false);o==="gallery"?(t.push(""),t.push(""),u[o]?.(t,spread_props([c,{value:n,display_icon_button_wrapper_top_corner:false,show_label:!!c.label,i18n:i,_fetch:_,allow_preview:false,interactive:false,mode:"minimal",fixed_height:1}])),t.push("")):(t.push(""),o==="dataframe"?(t.push(""),t.push(""),u[o]?.(t,spread_props([c,{value:n,show_label:!!c.label,i18n:i,interactive:false,line_breaks:c.line_breaks,wrap:true,root:"",gradio:{dispatch:()=>{},i18n:i},datatype:c.datatype,latex_delimiters:c.latex_delimiters,col_count:c.col_count,row_count:c.row_count}])),t.push("")):(t.push(""),o==="plot"?(t.push(""),t.push(""),u[o]?.(t,spread_props([c,{value:n,target:s,theme_mode:h,on_change:()=>{},bokeh_version:c.bokeh_version,caption:c.caption||"",show_actions_button:true}])),t.push("")):(t.push(""),o==="audio"?(t.push(""),t.push(""),u[o]?.(t,spread_props([c,{value:n,show_label:!!c.label,show_share_button:false,i18n:i,waveform_settings:{...c.waveform_settings,autoplay:c.autoplay},show_download_button:false,display_icon_button_wrapper_top_corner:false,minimal:true}])),t.push("")):(t.push(""),o==="video"?(t.push(""),t.push(""),u[o]?.(t,spread_props([c,{autoplay:c.autoplay,value:n.video||n,show_label:!!c.label,show_share_button:false,i18n:i,upload:p,display_icon_button_wrapper_top_corner:false,show_download_button:false,children:L=>{L.push('');},$$slots:{default:true}}])),t.push("")):(t.push(""),o==="image"?(t.push(""),t.push("
    "),u[o]?.(t,spread_props([c,{value:n,show_label:!!c.label,display_icon_button_wrapper_top_corner:false,buttons:["fullscreen"],fullscreen:false,show_button_background:false,i18n:i}])),t.push("
    ")):(t.push(""),o==="html"?(t.push(""),t.push(""),u[o]?.(t,spread_props([c,{props:{value:n}}])),t.push("")):(t.push(""),o==="model3d"?(t.push(""),t.push(""),u[o]?.(t,spread_props([c,{value:n,clear_color:c.clear_color,display_mode:c.display_mode,zoom_speed:c.zoom_speed,pan_speed:c.pan_speed},c.camera_position!==void 0&&{camera_position:c.camera_position},{has_change_history:true,show_label:!!c.label,root:"",interactive:false,show_share_button:false,gradio:{dispatch:()=>{},i18n:i},i18n:i}])),t.push("")):t.push(""),t.push("")),t.push("")),t.push("")),t.push("")),t.push("")),t.push("")),t.push("")),t.push(""),bind_props(l,{type:o,components:u,value:n,target:s,theme_mode:h,props:c,i18n:i,upload:p,_fetch:_,allow_file_downloads:v,display_icon_button_wrapper_top_corner:y});});}function gl(e,l){e.component(t=>{let o=l.latex_delimiters,u=l.sanitize_html,n=l._fetch,s=l.i18n,h=l.line_breaks,c=l.upload,i$1=l.target,p=l.theme_mode,_=l._components,v=l.render_markdown,y=l.scroll,r=l.allow_file_downloads,L=l.display_consecutive_in_same_bubble,z=l.thought_index,M=fallback(l.allow_tags,false),k=l.message;if(k.type==="text")t.push(""),t.push('
    '),Qt$1(t,{message:k.content,latex_delimiters:o,sanitize_html:u,render_markdown:v,line_breaks:h,allow_tags:M,theme_mode:p}),t.push("
    ");else {if(t.push(""),k.type==="component"&&k.content.component in _)t.push(""),vl(t,{target:i$1,theme_mode:p,props:k.content.props,type:k.content.component,components:_,value:k.content.value,display_icon_button_wrapper_top_corner:z>0&&L,i18n:s,upload:c,_fetch:n,allow_file_downloads:r});else {if(t.push(""),k.type==="component"&&k.content.component==="file"){t.push(""),t.push("");const x=ensure_array_like(k.content.value);for(let V=0,B=x.length;V
    '),i(t),t.push(`
    ${escape_html(j?.orig_name||j?.path.split("/").pop()||"file")} ${escape_html((j.orig_name||j.path||"").split(".").pop().toUpperCase())}
    `);}t.push("");}else t.push("");t.push("");}t.push("");}t.push(""),bind_props(l,{latex_delimiters:o,sanitize_html:u,_fetch:n,i18n:s,line_breaks:h,upload:c,target:i$1,theme_mode:p,_components:_,render_markdown:v,scroll:y,allow_file_downloads:r,display_consecutive_in_same_bubble:L,thought_index:z,allow_tags:M,message:k});});}function bl(e,l){e.component(t=>{let{thought:o,sanitize_html:u,latex_delimiters:n,render_markdown:s,allow_tags:h}=l;function c(_){return "children"in _}let i={...o,children:c(o)?o.children:[]};t.push(`
    `),w(t,{Icon:Kt}),t.push(" "),Qt$1(t,{message:i.metadata?.title||"",render_markdown:s,latex_delimiters:n,sanitize_html:u,allow_tags:h||false}),t.push(" "),i.metadata?.status==="pending"?(t.push(""),t.push('')):t.push(""),t.push(" "),i?.metadata?.log||i?.metadata?.duration?(t.push(""),t.push(''),i.metadata.log?(t.push(""),t.push(`${escape_html(i.metadata.log)}`)):t.push(""),t.push(" "),i.metadata.duration!==void 0?(t.push(""),t.push("("),Number.isInteger(i.metadata.duration)?(t.push(""),t.push(`${escape_html(i.metadata.duration)}s`)):(t.push(""),i.metadata.duration>=.1?(t.push(""),t.push(`${escape_html(i.metadata.duration.toFixed(1))}s`)):(t.push(""),t.push(`${escape_html((i.metadata.duration*1e3).toFixed(1))}ms`)),t.push("")),t.push(")")):t.push(""),t.push("")):t.push(""),t.push("
    "),t.push(""),t.push("");});}function wl(e,l){e.component(t=>{let o=l.value,u=l.avatar_img,n=fallback(l.opposite_avatar_img,null),s=fallback(l.role,"user"),h=fallback(l.messages,()=>[],true),c=l.layout,i=l.render_markdown,p=l.latex_delimiters,_=l.sanitize_html,v=l.selectable,y=l._fetch,r=l.rtl,L=l.dispatch,z=l.i18n,M=l.line_breaks,k=l.upload,x=l.target,V=l.theme_mode,B=l._components,A=l.i,j=l.show_copy_button,U=l.generating,f=l.feedback_options,S=l.show_like,W=l.show_edit,T=l.show_retry,K=l.show_undo,Q=l.handle_action,X=l.scroll,G=l.allow_file_downloads,O=l.in_edit_mode,N=l.edit_messages,E=l.display_consecutive_in_same_bubble,q=fallback(l.current_feedback,null),J=fallback(l.allow_tags,false),Y=fallback(l.watermark,null),P=[],$=Array(h.length).fill(160),tt=Array(h.length).fill(0);function ot(d){return d.type==="text"?d.content:d.type==="component"&&d.content.component==="file"?Array.isArray(d.content.value)?`file of extension type: ${d.content.value[0].orig_name?.split(".").pop()}`:`file of extension type: ${d.content.value?.orig_name?.split(".").pop()}`+(d.content.value?.orig_name??""):`a component of type ${d.content.component??"unknown"}`}function lt(d){for(const b of d)if(b.type==="component"&&(b.content.component==="audio"||b.content.component==="video"||b.content.component==="image"||b.content.component==="file")&&b.content.value)return b.content.value;return null}let R;if(O){const d=P.length-h.length;for(let b=d;b=0&&($[b-d]=P[b]?.clientWidth,tt[b-d]=P[b]?.clientHeight);}R={handle_action:Q,likeable:S,feedback_options:f,show_retry:T,show_undo:K,show_edit:W,in_edit_mode:O,generating:U,show_copy_button:j,message:h,position:s==="user"?"right":"left",avatar:u,layout:c,dispatch:L,current_feedback:q,watermark:Y,file:lt(h),show_download_button:G,show_share_button:true},t.push(``),u!==null?(t.push(""),t.push('
    '),c$1(t,{src:u?.url}),t.push("
    ")):t.push(""),t.push(` `);const at=ensure_array_like(h);for(let d=0,b=at.length;d0})}>`),O&&C.type==="text"){t.push(""),t.push(`");}else t.push(""),t.push(``),C?.metadata?.title?(t.push(""),bl(t,{thought:C,sanitize_html:_,allow_tags:J,latex_delimiters:p,render_markdown:i})):(t.push(""),gl(t,{message:C,sanitize_html:_,allow_tags:J,latex_delimiters:p,render_markdown:i,_components:B,upload:k,thought_index:d,target:x,theme_mode:V,_fetch:y,scroll:X,allow_file_downloads:G,display_consecutive_in_same_bubble:E,i18n:z,line_breaks:M})),t.push("");t.push(" "),c==="panel"?(t.push(""),Ct(t,spread_props([R,{current_feedback:q,watermark:Y,i18n:z}]))):t.push(""),t.push("");}t.push(" "),c==="bubble"?(t.push(""),Ct(t,spread_props([R,{i18n:z}]))):t.push(""),t.push(""),bind_props(l,{value:o,avatar_img:u,opposite_avatar_img:n,role:s,messages:h,layout:c,render_markdown:i,latex_delimiters:p,sanitize_html:_,selectable:v,_fetch:y,rtl:r,dispatch:L,i18n:z,line_breaks:M,upload:k,target:x,theme_mode:V,_components:B,i:A,show_copy_button:j,generating:U,feedback_options:f,show_like:S,show_edit:W,show_retry:T,show_undo:K,handle_action:Q,scroll:X,allow_file_downloads:G,in_edit_mode:O,edit_messages:N,display_consecutive_in_same_bubble:E,current_feedback:q,allow_tags:J,watermark:Y});});}var Ht=Object.prototype.hasOwnProperty;function mt(e,l){var t,o;if(e===l)return true;if(e&&l&&(t=e.constructor)===l.constructor){if(t===Date)return e.getTime()===l.getTime();if(t===RegExp)return e.toString()===l.toString();if(t===Array){if((o=e.length)===l.length)for(;o--&&mt(e[o],l[o]););return o===-1}if(!t||typeof e=="object"){o=0;for(t in e)if(Ht.call(e,t)&&++o&&!Ht.call(l,t)||!(t in l)||!mt(e[t],l[t]))return false;return Object.keys(l).length===o}}return e!==e&&l!==l}function jt(e,l){e.component(t=>{let o=fallback(l.layout,"bubble"),u=fallback(l.avatar_images,()=>[null,null],true);t.push('
    '),u[1]!==null?(t.push(""),t.push('
    '),c$1(t,{src:u[1].url}),t.push("
    ")):t.push(""),t.push(`
    Loading content
    `),bind_props(l,{layout:o,avatar_images:u});});}function yl(e,l){e.component(t$1=>{let o=fallback(l.examples,null),u=fallback(l.placeholder,null),n=l.latex_delimiters;if(t$1.push('"),bind_props(l,{examples:o,placeholder:u,latex_delimiters:n});});}function kl(e$1,l){e$1.component(t=>{let o=false,u=l.value,n=fallback(l.watermark,null),s;function h$1(){o=true,s&&clearTimeout(s),s=setTimeout(()=>{o=false;},1e3);}const c=()=>{if(u){const p=u.map(v=>v.type==="text"?`${v.role}: ${v.content}`:`${v.role}: ${v.content.value.url}`).join(` + +`),_=n?`${p} + +${n}`:p;navigator.clipboard.writeText(_).catch(v=>{console.error("Failed to copy conversation: ",v);});}};async function i(){"clipboard"in navigator&&(c(),h$1());}onDestroy(()=>{s&&clearTimeout(s);}),w(t,{Icon:o?e:h,onclick:i,label:o?"Copied conversation":"Copy conversation"}),bind_props(l,{value:u,watermark:n});});}function xl(e,l){e.component(t=>{let o,u$1,n=fallback(l.value,()=>[],true),s=null,h=l._fetch,c$1=l.load_component,i=l.allow_file_downloads,p=l.display_consecutive_in_same_bubble,_={};const v=typeof window<"u";async function y$1(){_=await il(xt(n),_,c$1);}let r$1=l.latex_delimiters,L=fallback(l.pending_message,false),z=fallback(l.generating,false),M=fallback(l.selectable,false),k=fallback(l.likeable,false),x=l.feedback_options,V=fallback(l.feedback_value,null),B=fallback(l.editable,null),A=fallback(l.show_share_button,false),j=fallback(l.show_copy_all_button,false),U=fallback(l.rtl,false),f=fallback(l.show_copy_button,false),S=fallback(l.buttons,null),W=fallback(l.on_custom_button_click,null),T=fallback(l.avatar_images,()=>[null,null],true),K=fallback(l.sanitize_html,true),Q=fallback(l.render_markdown,true),X=fallback(l.line_breaks,true),G=fallback(l.autoscroll,true),O=l.theme_mode,N=l.i18n,E=fallback(l.layout,"bubble"),q=fallback(l.placeholder,null),J=l.upload,Y=fallback(l.examples,null),P=fallback(l._retryable,false),$=fallback(l._undoable,false),tt=fallback(l.like_user_message,false),ot=fallback(l.allow_tags,false),lt=fallback(l.watermark,null),R=fallback(l.show_progress,"full"),at=null,d=null,b=[];const C=createEventDispatcher();async function et(){}function bt(m,H,g){if(g==="undo"||g==="retry"){const I=n;let w=I.length-1;for(;I[w].role==="assistant";)w--;C(g,{index:I[w].index,value:I[w].content});}else if(g=="edit")d=m,b.push(H.content);else if(g=="edit_cancel")d=null;else if(g=="edit_submit")d=null,C("edit",{index:H.index,_dispatch_value:[{type:"text",text:b[m].slice()}],value:b[m].slice(),previous_value:H.content});else {let I=g==="Like"?true:g==="Dislike"?false:g||"";if(!o)return;const w=o[m],[Z]=[w[0],w[w.length-1]];C("like",{index:Z.index,value:w.map(ut=>ut.content),liked:I});}}function zt(){if(!n||!o||o.length===0)return;const m=o[o.length-1];if(m[0].role==="assistant")return m[m.length-1].options}xt(n).sort().join(", "),y$1(),(n||L||_)&&et(),mt(n,s)||(s=n,C("change")),o=n&&ol(n,p),u$1=n&&zt();let it=true,nt;function At(m){if(n!==null&&n.length>0?(m.push(""),y(m,{buttons:S,on_custom_button_click:W,children:H=>{A?(H.push(""),w(H,{Icon:u,onclick:async()=>{try{const g=await Xt(n);C("share",{description:g});}catch(g){console.error(g);g instanceof c?g.message:"Share failed.";}}})):H.push(""),H.push(" "),w(H,{Icon:r,onclick:()=>C("clear"),label:N("chatbot.clear")}),H.push(" "),j?(H.push(""),kl(H,{value:n,watermark:lt})):H.push(""),H.push("");}})):m.push(""),m.push(` `),n!==null&&n.length>0&&o!==null){m.push(""),m.push('
    ');const H=ensure_array_like(o);for(let g=0,I=H.length;gF[0].role==="assistant").length,Dt=Z==="bot"&&V&&V[wt]?V[wt]:null;wl(m,{messages:w,display_consecutive_in_same_bubble:p,opposite_avatar_img:It,avatar_img:ut,role:Z,layout:E,dispatch:C,i18n:N,_fetch:h,line_breaks:X,theme_mode:O,target:at,upload:J,selectable:M,sanitize_html:K,render_markdown:Q,rtl:U,i:g,value:n,latex_delimiters:r$1,_components:_,generating:z,feedback_options:x,current_feedback:Dt,allow_tags:ot,watermark:lt,show_like:Z==="user"?k&&tt:k,show_retry:P&&kt(w,n),show_undo:$&&kt(w,n),show_edit:B==="all"||B=="user"&&Z==="user"&&w.length>0&&w[w.length-1].type=="text",in_edit_mode:d===g,show_copy_button:f,handle_action:F=>{F=="edit"&&b.splice(0,b.length),F==="edit"||F==="edit_submit"?w.forEach((Bt,Tt)=>{bt(F==="edit"?g:Tt,Bt,F);}):bt(g,w[0],F);},scroll:v?scroll:()=>{},allow_file_downloads:i,get edit_messages(){return b},set edit_messages(F){b=F,it=false;}}),m.push(" "),R!=="hidden"&&z&&w[w.length-1].role==="assistant"&&w[w.length-1].metadata?.status==="done"?(m.push(""),jt(m,{layout:E,avatar_images:T})):m.push(""),m.push("");}if(m.push(" "),R!=="hidden"&&L)m.push(""),jt(m,{layout:E,avatar_images:T});else {if(m.push(""),u$1){m.push(""),m.push('
    ');const g=ensure_array_like(u$1);for(let I=0,w=g.length;I${escape_html(Z.label||Z.value)}`);}m.push("
    ");}else m.push("");m.push("");}m.push("
    ");}else m.push(""),yl(m,{examples:Y,placeholder:q,latex_delimiters:r$1});m.push(" "),m.push(""),m.push("");}do it=true,nt=t.copy(),At(nt);while(!it);t.subsume(nt),bind_props(l,{value:n,_fetch:h,load_component:c$1,allow_file_downloads:i,display_consecutive_in_same_bubble:p,latex_delimiters:r$1,pending_message:L,generating:z,selectable:M,likeable:k,feedback_options:x,feedback_value:V,editable:B,show_share_button:A,show_copy_all_button:j,rtl:U,show_copy_button:f,buttons:S,on_custom_button_click:W,avatar_images:T,sanitize_html:K,render_markdown:Q,line_breaks:X,autoscroll:G,theme_mode:O,i18n:N,layout:E,placeholder:q,upload:J,examples:Y,_retryable:P,_undoable:$,like_user_message:tt,allow_tags:ot,watermark:lt,show_progress:R});});}function Kl(e,l){e.component(t=>{let{$$slots:o,$$events:u,...n}=l;const s=new $(n);let h=el(s.props.value,s.shared.root),c=s.shared.loading_status.status==="error"?"full":s.shared.loading_status.show_progress==="hidden"?"hidden":"minimal";G(t,{elem_id:s.shared.elem_id,elem_classes:s.shared.elem_classes,visible:s.shared.visible,padding:false,scale:s.shared.scale,min_width:s.shared.min_width,height:s.props.height,resizable:s.props.resizable,min_height:s.props.min_height,max_height:s.props.max_height,allow_overflow:true,flex:true,overflow_behavior:"auto",rtl:s.props.rtl,children:i=>{s.shared.loading_status?(i.push(""),W(i,spread_props([{autoscroll:s.shared.autoscroll,i18n:s.i18n},s.shared.loading_status,{show_progress:c,on_clear_status:()=>s.dispatch("clear_status",s.shared.loading_status)}]))):i.push(""),i.push('
    '),s.shared.show_label?(i.push(""),k(i,{show_label:s.shared.show_label,Icon:Yt,float:true,label:s.shared.label||"Chatbot"})):i.push(""),i.push(" "),xl(i,{i18n:s.i18n,selectable:s.props._selectable,likeable:s.props.likeable,feedback_options:s.props.feedback_options,feedback_value:s.props.feedback_value,show_share_button:(s.props.buttons??["share"]).some(p=>typeof p=="string"&&p==="share"),show_copy_all_button:(s.props.buttons??["copy_all"]).some(p=>typeof p=="string"&&p==="copy_all"),value:h,latex_delimiters:s.props.latex_delimiters,display_consecutive_in_same_bubble:s.props.group_consecutive_messages,render_markdown:s.props.render_markdown,theme_mode:s.shared.theme_mode,editable:s.props.editable,pending_message:s.shared.loading_status?.status==="pending",generating:s.shared.loading_status?.status==="generating",rtl:s.props.rtl,show_copy_button:(s.props.buttons??["copy"]).some(p=>typeof p=="string"&&p==="copy"),buttons:s.props.buttons,on_custom_button_click:p=>{s.dispatch("custom_button_click",{id:p});},like_user_message:s.props.like_user_message,show_progress:s.shared.loading_status?.show_progress||"full",avatar_images:s.props.avatar_images,sanitize_html:s.props.sanitize_html,line_breaks:s.props.line_breaks,autoscroll:s.props.autoscroll,layout:s.props.layout,placeholder:s.props.placeholder,examples:s.props.examples,_retryable:s.props._retryable,_undoable:s.props._undoable,upload:(...p)=>s.shared.client.upload(...p),_fetch:(...p)=>s.shared.client.fetch(...p),load_component:s.shared.load_component,allow_file_downloads:s.props.allow_file_downloads,allow_tags:s.props.allow_tags,watermark:s.props.watermark}),i.push("
    ");},$$slots:{default:true}});});} + +export { xl as BaseChatBot, Kl as default }; +//# sourceMappingURL=Index54-CG_RFEl_.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index55-BAtPzDMY.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index55-BAtPzDMY.js new file mode 100644 index 0000000000000000000000000000000000000000..02bea6de21ab4dc88f0438f8a698dfa370476408 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index55-BAtPzDMY.js @@ -0,0 +1,47 @@ +import './async-D55cHugf.js'; +import { d as bind_props, f as attr_class, g as attr_style, i as stringify, a as attr, e as ensure_array_like, c as spread_props, j as clsx } from './index-u8mz_F03.js'; +import { t as tick } from './index-server-CQz6EZl_.js'; +import { e as ee$1 } from './Upload2-uTutz1dY.js'; +import './2-BLdXJizP.js'; +import { Q as Qt } from './MarkdownCode-DLHRxFlS.js'; +import { d } from './Checkbox-C7eMNvyZ.js'; +import { e } from './Check-C7_ZsXgh.js'; +import { h } from './Copy-B8YOhH7c.js'; +import { w } from './IconButton-BRnu7KaR.js'; +import { k } from './FullscreenButton-D8PvgSmk.js'; +import { W } from './index3-Df92vI-L.js'; +import { G } from './Block-DZmzQwnI.js'; +import { $ } from './utils.svelte-B2py64Fz.js'; +export { default as BaseExample } from './Example14-s-dCDI60.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; +import { h as html } from './html-CfyvkLET.js'; +import './context-CBkBucIx.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; +import './prism-python--2v-p3P4.js'; +import './index50-G3WrDDFf.js'; +import 'path'; +import 'url'; +import 'fs'; +import './Maximize-CuHbK64j.js'; +import './Clear-D7Yjckqz.js'; +import './clone-Yk88IHKV.js'; + +function ce(e,o){return typeof e=="function"?e(o):e}function Y(e,o){return t=>{o.setState(n=>({...n,[e]:ce(t,n[e])}));}}function Pe(e){return e instanceof Function}function An(e){return Array.isArray(e)&&e.every(o=>typeof o=="number")}function Dn(e,o){const t=[],n=s=>{s.forEach(i=>{t.push(i);const l=o(i);l!=null&&l.length&&n(l);});};return n(e),t}function F(e,o,t){let n=[],s;return i=>{let l;t.key&&t.debug&&(l=Date.now());const r=e(i);if(!(r.length!==n.length||r.some((g,f)=>n[f]!==g)))return s;n=r;let c;if(t.key&&t.debug&&(c=Date.now()),s=o(...r),t==null||t.onChange==null||t.onChange(s),t.key&&t.debug&&t!=null&&t.debug()){const g=Math.round((Date.now()-l)*100)/100,f=Math.round((Date.now()-c)*100)/100,d=f/16,a=(p,_)=>{for(p=String(p);p.length<_;)p=" "+p;return p};console.info(`%c⏱ ${a(f,5)} /${a(g,5)} ms`,` + font-size: .6rem; + font-weight: bold; + color: hsl(${Math.max(0,Math.min(120-120*d,120))}deg 100% 31%);`,t?.key);}return s}}function M(e,o,t,n){return {debug:()=>{var s;return (s=e?.debugAll)!=null?s:e[o]},key:process.env.NODE_ENV==="development"&&t,onChange:n}}function zn(e,o,t,n){const s=()=>{var l;return (l=i.getValue())!=null?l:e.options.renderFallbackValue},i={id:`${o.id}_${t.id}`,row:o,column:t,getValue:()=>o.getValue(n),renderValue:s,getContext:F(()=>[e,t,o,i],(l,r,u,c)=>({table:l,column:r,row:u,cell:c,getValue:c.getValue,renderValue:c.renderValue}),M(e.options,"debugCells","cell.getContext"))};return e._features.forEach(l=>{l.createCell==null||l.createCell(i,t,o,e);},{}),i}function On(e,o,t,n){var s,i;const r={...e._getDefaultColumnDef(),...o},u=r.accessorKey;let c=(s=(i=r.id)!=null?i:u?typeof String.prototype.replaceAll=="function"?u.replaceAll(".","_"):u.replace(/\./g,"_"):void 0)!=null?s:typeof r.header=="string"?r.header:void 0,g;if(r.accessorFn?g=r.accessorFn:u&&(u.includes(".")?g=d=>{let a=d;for(const _ of u.split(".")){var p;a=(p=a)==null?void 0:p[_],process.env.NODE_ENV!=="production"&&a===void 0&&console.warn(`"${_}" in deeply nested key "${u}" returned undefined.`);}return a}:g=d=>d[r.accessorKey]),!c)throw process.env.NODE_ENV!=="production"?new Error(r.accessorFn?"Columns require an id when using an accessorFn":"Columns require an id when using a non-string header"):new Error;let f={id:`${String(c)}`,accessorFn:g,parent:n,depth:t,columnDef:r,columns:[],getFlatColumns:F(()=>[true],()=>{var d;return [f,...(d=f.columns)==null?void 0:d.flatMap(a=>a.getFlatColumns())]},M(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:F(()=>[e._getOrderColumnsFn()],d=>{var a;if((a=f.columns)!=null&&a.length){let p=f.columns.flatMap(_=>_.getLeafColumns());return d(p)}return [f]},M(e.options,"debugColumns","column.getLeafColumns"))};for(const d of e._features)d.createColumn==null||d.createColumn(f,e);return f}const q="debugHeaders";function St(e,o,t){var n;let i={id:(n=t.id)!=null?n:o.id,column:o,index:t.index,isPlaceholder:!!t.isPlaceholder,placeholderId:t.placeholderId,depth:t.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const l=[],r=u=>{u.subHeaders&&u.subHeaders.length&&u.subHeaders.map(r),l.push(u);};return r(i),l},getContext:()=>({table:e,header:i,column:o})};return e._features.forEach(l=>{l.createHeader==null||l.createHeader(i,e);}),i}const Ln={createTable:e=>{e.getHeaderGroups=F(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(o,t,n,s)=>{var i,l;const r=(i=n?.map(f=>t.find(d=>d.id===f)).filter(Boolean))!=null?i:[],u=(l=s?.map(f=>t.find(d=>d.id===f)).filter(Boolean))!=null?l:[],c=t.filter(f=>!(n!=null&&n.includes(f.id))&&!(s!=null&&s.includes(f.id)));return Ee(o,[...r,...c,...u],e)},M(e.options,q,"getHeaderGroups")),e.getCenterHeaderGroups=F(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(o,t,n,s)=>(t=t.filter(i=>!(n!=null&&n.includes(i.id))&&!(s!=null&&s.includes(i.id))),Ee(o,t,e,"center")),M(e.options,q,"getCenterHeaderGroups")),e.getLeftHeaderGroups=F(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(o,t,n)=>{var s;const i=(s=n?.map(l=>t.find(r=>r.id===l)).filter(Boolean))!=null?s:[];return Ee(o,i,e,"left")},M(e.options,q,"getLeftHeaderGroups")),e.getRightHeaderGroups=F(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(o,t,n)=>{var s;const i=(s=n?.map(l=>t.find(r=>r.id===l)).filter(Boolean))!=null?s:[];return Ee(o,i,e,"right")},M(e.options,q,"getRightHeaderGroups")),e.getFooterGroups=F(()=>[e.getHeaderGroups()],o=>[...o].reverse(),M(e.options,q,"getFooterGroups")),e.getLeftFooterGroups=F(()=>[e.getLeftHeaderGroups()],o=>[...o].reverse(),M(e.options,q,"getLeftFooterGroups")),e.getCenterFooterGroups=F(()=>[e.getCenterHeaderGroups()],o=>[...o].reverse(),M(e.options,q,"getCenterFooterGroups")),e.getRightFooterGroups=F(()=>[e.getRightHeaderGroups()],o=>[...o].reverse(),M(e.options,q,"getRightFooterGroups")),e.getFlatHeaders=F(()=>[e.getHeaderGroups()],o=>o.map(t=>t.headers).flat(),M(e.options,q,"getFlatHeaders")),e.getLeftFlatHeaders=F(()=>[e.getLeftHeaderGroups()],o=>o.map(t=>t.headers).flat(),M(e.options,q,"getLeftFlatHeaders")),e.getCenterFlatHeaders=F(()=>[e.getCenterHeaderGroups()],o=>o.map(t=>t.headers).flat(),M(e.options,q,"getCenterFlatHeaders")),e.getRightFlatHeaders=F(()=>[e.getRightHeaderGroups()],o=>o.map(t=>t.headers).flat(),M(e.options,q,"getRightFlatHeaders")),e.getCenterLeafHeaders=F(()=>[e.getCenterFlatHeaders()],o=>o.filter(t=>{var n;return !((n=t.subHeaders)!=null&&n.length)}),M(e.options,q,"getCenterLeafHeaders")),e.getLeftLeafHeaders=F(()=>[e.getLeftFlatHeaders()],o=>o.filter(t=>{var n;return !((n=t.subHeaders)!=null&&n.length)}),M(e.options,q,"getLeftLeafHeaders")),e.getRightLeafHeaders=F(()=>[e.getRightFlatHeaders()],o=>o.filter(t=>{var n;return !((n=t.subHeaders)!=null&&n.length)}),M(e.options,q,"getRightLeafHeaders")),e.getLeafHeaders=F(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(o,t,n)=>{var s,i,l,r,u,c;return [...(s=(i=o[0])==null?void 0:i.headers)!=null?s:[],...(l=(r=t[0])==null?void 0:r.headers)!=null?l:[],...(u=(c=n[0])==null?void 0:c.headers)!=null?u:[]].map(g=>g.getLeafHeaders()).flat()},M(e.options,q,"getLeafHeaders"));}};function Ee(e,o,t,n){var s,i;let l=0;const r=function(d,a){a===void 0&&(a=1),l=Math.max(l,a),d.filter(p=>p.getIsVisible()).forEach(p=>{var _;(_=p.columns)!=null&&_.length&&r(p.columns,a+1);},0);};r(e);let u=[];const c=(d,a)=>{const p={depth:a,id:[n,`${a}`].filter(Boolean).join("_"),headers:[]},_=[];d.forEach(C=>{const S=[..._].reverse()[0],x=C.column.depth===p.depth;let y,k=false;if(x&&C.column.parent?y=C.column.parent:(y=C.column,k=true),S&&S?.column===y)S.subHeaders.push(C);else {const A=St(t,y,{id:[n,a,y.id,C?.id].filter(Boolean).join("_"),isPlaceholder:k,placeholderId:k?`${_.filter(D=>D.column===y).length}`:void 0,depth:a,index:_.length});A.subHeaders.push(C),_.push(A);}p.headers.push(C),C.headerGroup=p;}),u.push(p),a>0&&c(_,a-1);},g=o.map((d,a)=>St(t,d,{depth:l,index:a}));c(g,l-1),u.reverse();const f=d=>d.filter(p=>p.column.getIsVisible()).map(p=>{let _=0,C=0,S=[0];p.subHeaders&&p.subHeaders.length?(S=[],f(p.subHeaders).forEach(y=>{let{colSpan:k,rowSpan:A}=y;_+=k,S.push(A);})):_=1;const x=Math.min(...S);return C=C+x,p.colSpan=_,p.rowSpan=C,{colSpan:_,rowSpan:C}});return f((s=(i=u[0])==null?void 0:i.headers)!=null?s:[]),u}const tt=(e,o,t,n,s,i,l)=>{let r={id:o,index:n,original:t,depth:s,parentId:l,_valuesCache:{},_uniqueValuesCache:{},getValue:u=>{if(r._valuesCache.hasOwnProperty(u))return r._valuesCache[u];const c=e.getColumn(u);if(c!=null&&c.accessorFn)return r._valuesCache[u]=c.accessorFn(r.original,n),r._valuesCache[u]},getUniqueValues:u=>{if(r._uniqueValuesCache.hasOwnProperty(u))return r._uniqueValuesCache[u];const c=e.getColumn(u);if(c!=null&&c.accessorFn)return c.columnDef.getUniqueValues?(r._uniqueValuesCache[u]=c.columnDef.getUniqueValues(r.original,n),r._uniqueValuesCache[u]):(r._uniqueValuesCache[u]=[r.getValue(u)],r._uniqueValuesCache[u])},renderValue:u=>{var c;return (c=r.getValue(u))!=null?c:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>Dn(r.subRows,u=>u.subRows),getParentRow:()=>r.parentId?e.getRow(r.parentId,true):void 0,getParentRows:()=>{let u=[],c=r;for(;;){const g=c.getParentRow();if(!g)break;u.push(g),c=g;}return u.reverse()},getAllCells:F(()=>[e.getAllLeafColumns()],u=>u.map(c=>zn(e,r,c,c.id)),M(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:F(()=>[r.getAllCells()],u=>u.reduce((c,g)=>(c[g.column.id]=g,c),{}),M(e.options,"debugRows","getAllCellsByColumnId"))};for(let u=0;u{e._getFacetedRowModel=o.options.getFacetedRowModel&&o.options.getFacetedRowModel(o,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():o.getPreFilteredRowModel(),e._getFacetedUniqueValues=o.options.getFacetedUniqueValues&&o.options.getFacetedUniqueValues(o,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=o.options.getFacetedMinMaxValues&&o.options.getFacetedMinMaxValues(o,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()};}},Pt=(e,o,t)=>{var n,s;const i=t==null||(n=t.toString())==null?void 0:n.toLowerCase();return !!(!((s=e.getValue(o))==null||(s=s.toString())==null||(s=s.toLowerCase())==null)&&s.includes(i))};Pt.autoRemove=e=>te(e);const At=(e,o,t)=>{var n;return !!(!((n=e.getValue(o))==null||(n=n.toString())==null)&&n.includes(t))};At.autoRemove=e=>te(e);const Dt=(e,o,t)=>{var n;return ((n=e.getValue(o))==null||(n=n.toString())==null?void 0:n.toLowerCase())===t?.toLowerCase()};Dt.autoRemove=e=>te(e);const zt=(e,o,t)=>{var n;return (n=e.getValue(o))==null?void 0:n.includes(t)};zt.autoRemove=e=>te(e);const Ot=(e,o,t)=>!t.some(n=>{var s;return !((s=e.getValue(o))!=null&&s.includes(n))});Ot.autoRemove=e=>te(e)||!(e!=null&&e.length);const Lt=(e,o,t)=>t.some(n=>{var s;return (s=e.getValue(o))==null?void 0:s.includes(n)});Lt.autoRemove=e=>te(e)||!(e!=null&&e.length);const Ht=(e,o,t)=>e.getValue(o)===t;Ht.autoRemove=e=>te(e);const jt=(e,o,t)=>e.getValue(o)==t;jt.autoRemove=e=>te(e);const nt=(e,o,t)=>{let[n,s]=t;const i=e.getValue(o);return i>=n&&i<=s};nt.resolveFilterValue=e=>{let[o,t]=e,n=typeof o!="number"?parseFloat(o):o,s=typeof t!="number"?parseFloat(t):t,i=o===null||Number.isNaN(n)?-1/0:n,l=t===null||Number.isNaN(s)?1/0:s;if(i>l){const r=i;i=l,l=r;}return [i,l]};nt.autoRemove=e=>te(e)||te(e[0])&&te(e[1]);const ie={includesString:Pt,includesStringSensitive:At,equalsString:Dt,arrIncludes:zt,arrIncludesAll:Ot,arrIncludesSome:Lt,equals:Ht,weakEquals:jt,inNumberRange:nt};function te(e){return e==null||e===""}const jn={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Y("columnFilters",e),filterFromLeafRows:false,maxLeafRowFilterDepth:100}),createColumn:(e,o)=>{e.getAutoFilterFn=()=>{const t=o.getCoreRowModel().flatRows[0],n=t?.getValue(e.id);return typeof n=="string"?ie.includesString:typeof n=="number"?ie.inNumberRange:typeof n=="boolean"||n!==null&&typeof n=="object"?ie.equals:Array.isArray(n)?ie.arrIncludes:ie.weakEquals},e.getFilterFn=()=>{var t,n;return Pe(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(t=(n=o.options.filterFns)==null?void 0:n[e.columnDef.filterFn])!=null?t:ie[e.columnDef.filterFn]},e.getCanFilter=()=>{var t,n,s;return ((t=e.columnDef.enableColumnFilter)!=null?t:true)&&((n=o.options.enableColumnFilters)!=null?n:true)&&((s=o.options.enableFilters)!=null?s:true)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var t;return (t=o.getState().columnFilters)==null||(t=t.find(n=>n.id===e.id))==null?void 0:t.value},e.getFilterIndex=()=>{var t,n;return (t=(n=o.getState().columnFilters)==null?void 0:n.findIndex(s=>s.id===e.id))!=null?t:-1},e.setFilterValue=t=>{o.setColumnFilters(n=>{const s=e.getFilterFn(),i=n?.find(g=>g.id===e.id),l=ce(t,i?i.value:void 0);if(Ct(s,l,e)){var r;return (r=n?.filter(g=>g.id!==e.id))!=null?r:[]}const u={id:e.id,value:l};if(i){var c;return (c=n?.map(g=>g.id===e.id?u:g))!=null?c:[]}return n!=null&&n.length?[...n,u]:[u]});};},createRow:(e,o)=>{e.columnFilters={},e.columnFiltersMeta={};},createTable:e=>{e.setColumnFilters=o=>{const t=e.getAllLeafColumns(),n=s=>{var i;return (i=ce(o,s))==null?void 0:i.filter(l=>{const r=t.find(u=>u.id===l.id);if(r){const u=r.getFilterFn();if(Ct(u,l.value,r))return false}return true})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(n);},e.resetColumnFilters=o=>{var t,n;e.setColumnFilters(o?[]:(t=(n=e.initialState)==null?void 0:n.columnFilters)!=null?t:[]);},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel());}};function Ct(e,o,t){return (e&&e.autoRemove?e.autoRemove(o,t):false)||typeof o>"u"||typeof o=="string"&&!o}const Gn=(e,o,t)=>t.reduce((n,s)=>{const i=s.getValue(e);return n+(typeof i=="number"?i:0)},0),Tn=(e,o,t)=>{let n;return t.forEach(s=>{const i=s.getValue(e);i!=null&&(n>i||n===void 0&&i>=i)&&(n=i);}),n},Bn=(e,o,t)=>{let n;return t.forEach(s=>{const i=s.getValue(e);i!=null&&(n=i)&&(n=i);}),n},Nn=(e,o,t)=>{let n,s;return t.forEach(i=>{const l=i.getValue(e);l!=null&&(n===void 0?l>=l&&(n=s=l):(n>l&&(n=l),s{let t=0,n=0;if(o.forEach(s=>{let i=s.getValue(e);i!=null&&(i=+i)>=i&&(++t,n+=i);}),t)return n/t},Un=(e,o)=>{if(!o.length)return;const t=o.map(i=>i.getValue(e));if(!An(t))return;if(t.length===1)return t[0];const n=Math.floor(t.length/2),s=t.sort((i,l)=>i-l);return t.length%2!==0?s[n]:(s[n-1]+s[n])/2},Wn=(e,o)=>Array.from(new Set(o.map(t=>t.getValue(e))).values()),Kn=(e,o)=>new Set(o.map(t=>t.getValue(e))).size,Xn=(e,o)=>o.length,Ge={sum:Gn,min:Tn,max:Bn,extent:Nn,mean:qn,median:Un,unique:Wn,uniqueCount:Kn,count:Xn},Jn={getDefaultColumnDef:()=>({aggregatedCell:e=>{var o,t;return (o=(t=e.getValue())==null||t.toString==null?void 0:t.toString())!=null?o:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:Y("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,o)=>{e.toggleGrouping=()=>{o.setGrouping(t=>t!=null&&t.includes(e.id)?t.filter(n=>n!==e.id):[...t??[],e.id]);},e.getCanGroup=()=>{var t,n;return ((t=e.columnDef.enableGrouping)!=null?t:true)&&((n=o.options.enableGrouping)!=null?n:true)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var t;return (t=o.getState().grouping)==null?void 0:t.includes(e.id)},e.getGroupedIndex=()=>{var t;return (t=o.getState().grouping)==null?void 0:t.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return ()=>{t&&e.toggleGrouping();}},e.getAutoAggregationFn=()=>{const t=o.getCoreRowModel().flatRows[0],n=t?.getValue(e.id);if(typeof n=="number")return Ge.sum;if(Object.prototype.toString.call(n)==="[object Date]")return Ge.extent},e.getAggregationFn=()=>{var t,n;if(!e)throw new Error;return Pe(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(t=(n=o.options.aggregationFns)==null?void 0:n[e.columnDef.aggregationFn])!=null?t:Ge[e.columnDef.aggregationFn]};},createTable:e=>{e.setGrouping=o=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(o),e.resetGrouping=o=>{var t,n;e.setGrouping(o?[]:(t=(n=e.initialState)==null?void 0:n.grouping)!=null?t:[]);},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel());},createRow:(e,o)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=t=>{if(e._groupingValuesCache.hasOwnProperty(t))return e._groupingValuesCache[t];const n=o.getColumn(t);return n!=null&&n.columnDef.getGroupingValue?(e._groupingValuesCache[t]=n.columnDef.getGroupingValue(e.original),e._groupingValuesCache[t]):e.getValue(t)},e._groupingValuesCache={};},createCell:(e,o,t,n)=>{e.getIsGrouped=()=>o.getIsGrouped()&&o.id===t.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&o.getIsGrouped(),e.getIsAggregated=()=>{var s;return !e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((s=t.subRows)!=null&&s.length)};}};function Yn(e,o,t){if(!(o!=null&&o.length)||!t)return e;const n=e.filter(i=>!o.includes(i.id));return t==="remove"?n:[...o.map(i=>e.find(l=>l.id===i)).filter(Boolean),...n]}const Zn={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Y("columnOrder",e)}),createColumn:(e,o)=>{e.getIndex=F(t=>[Fe(o,t)],t=>t.findIndex(n=>n.id===e.id),M(o.options,"debugColumns","getIndex")),e.getIsFirstColumn=t=>{var n;return ((n=Fe(o,t)[0])==null?void 0:n.id)===e.id},e.getIsLastColumn=t=>{var n;const s=Fe(o,t);return ((n=s[s.length-1])==null?void 0:n.id)===e.id};},createTable:e=>{e.setColumnOrder=o=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(o),e.resetColumnOrder=o=>{var t;e.setColumnOrder(o?[]:(t=e.initialState.columnOrder)!=null?t:[]);},e._getOrderColumnsFn=F(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(o,t,n)=>s=>{let i=[];if(!(o!=null&&o.length))i=s;else {const l=[...o],r=[...s];for(;r.length&&l.length;){const u=l.shift(),c=r.findIndex(g=>g.id===u);c>-1&&i.push(r.splice(c,1)[0]);}i=[...i,...r];}return Yn(i,t,n)},M(e.options,"debugTable","_getOrderColumnsFn"));}},Te=()=>({left:[],right:[]}),Qn={getInitialState:e=>({columnPinning:Te(),...e}),getDefaultOptions:e=>({onColumnPinningChange:Y("columnPinning",e)}),createColumn:(e,o)=>{e.pin=t=>{const n=e.getLeafColumns().map(s=>s.id).filter(Boolean);o.setColumnPinning(s=>{var i,l;if(t==="right"){var r,u;return {left:((r=s?.left)!=null?r:[]).filter(f=>!(n!=null&&n.includes(f))),right:[...((u=s?.right)!=null?u:[]).filter(f=>!(n!=null&&n.includes(f))),...n]}}if(t==="left"){var c,g;return {left:[...((c=s?.left)!=null?c:[]).filter(f=>!(n!=null&&n.includes(f))),...n],right:((g=s?.right)!=null?g:[]).filter(f=>!(n!=null&&n.includes(f)))}}return {left:((i=s?.left)!=null?i:[]).filter(f=>!(n!=null&&n.includes(f))),right:((l=s?.right)!=null?l:[]).filter(f=>!(n!=null&&n.includes(f)))}});},e.getCanPin=()=>e.getLeafColumns().some(n=>{var s,i,l;return ((s=n.columnDef.enablePinning)!=null?s:true)&&((i=(l=o.options.enableColumnPinning)!=null?l:o.options.enablePinning)!=null?i:true)}),e.getIsPinned=()=>{const t=e.getLeafColumns().map(r=>r.id),{left:n,right:s}=o.getState().columnPinning,i=t.some(r=>n?.includes(r)),l=t.some(r=>s?.includes(r));return i?"left":l?"right":false},e.getPinnedIndex=()=>{var t,n;const s=e.getIsPinned();return s?(t=(n=o.getState().columnPinning)==null||(n=n[s])==null?void 0:n.indexOf(e.id))!=null?t:-1:0};},createRow:(e,o)=>{e.getCenterVisibleCells=F(()=>[e._getAllVisibleCells(),o.getState().columnPinning.left,o.getState().columnPinning.right],(t,n,s)=>{const i=[...n??[],...s??[]];return t.filter(l=>!i.includes(l.column.id))},M(o.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=F(()=>[e._getAllVisibleCells(),o.getState().columnPinning.left],(t,n)=>(n??[]).map(i=>t.find(l=>l.column.id===i)).filter(Boolean).map(i=>({...i,position:"left"})),M(o.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=F(()=>[e._getAllVisibleCells(),o.getState().columnPinning.right],(t,n)=>(n??[]).map(i=>t.find(l=>l.column.id===i)).filter(Boolean).map(i=>({...i,position:"right"})),M(o.options,"debugRows","getRightVisibleCells"));},createTable:e=>{e.setColumnPinning=o=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(o),e.resetColumnPinning=o=>{var t,n;return e.setColumnPinning(o?Te():(t=(n=e.initialState)==null?void 0:n.columnPinning)!=null?t:Te())},e.getIsSomeColumnsPinned=o=>{var t;const n=e.getState().columnPinning;if(!o){var s,i;return !!((s=n.left)!=null&&s.length||(i=n.right)!=null&&i.length)}return !!((t=n[o])!=null&&t.length)},e.getLeftLeafColumns=F(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(o,t)=>(t??[]).map(n=>o.find(s=>s.id===n)).filter(Boolean),M(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=F(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(o,t)=>(t??[]).map(n=>o.find(s=>s.id===n)).filter(Boolean),M(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=F(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(o,t,n)=>{const s=[...t??[],...n??[]];return o.filter(i=>!s.includes(i.id))},M(e.options,"debugColumns","getCenterLeafColumns"));}};function $n(e){return e||(typeof document<"u"?document:null)}const ke={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},Be=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:false,columnSizingStart:[]}),eo={getDefaultColumnDef:()=>ke,getInitialState:e=>({columnSizing:{},columnSizingInfo:Be(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Y("columnSizing",e),onColumnSizingInfoChange:Y("columnSizingInfo",e)}),createColumn:(e,o)=>{e.getSize=()=>{var t,n,s;const i=o.getState().columnSizing[e.id];return Math.min(Math.max((t=e.columnDef.minSize)!=null?t:ke.minSize,(n=i??e.columnDef.size)!=null?n:ke.size),(s=e.columnDef.maxSize)!=null?s:ke.maxSize)},e.getStart=F(t=>[t,Fe(o,t),o.getState().columnSizing],(t,n)=>n.slice(0,e.getIndex(t)).reduce((s,i)=>s+i.getSize(),0),M(o.options,"debugColumns","getStart")),e.getAfter=F(t=>[t,Fe(o,t),o.getState().columnSizing],(t,n)=>n.slice(e.getIndex(t)+1).reduce((s,i)=>s+i.getSize(),0),M(o.options,"debugColumns","getAfter")),e.resetSize=()=>{o.setColumnSizing(t=>{let{[e.id]:n,...s}=t;return s});},e.getCanResize=()=>{var t,n;return ((t=e.columnDef.enableResizing)!=null?t:true)&&((n=o.options.enableColumnResizing)!=null?n:true)},e.getIsResizing=()=>o.getState().columnSizingInfo.isResizingColumn===e.id;},createHeader:(e,o)=>{e.getSize=()=>{let t=0;const n=s=>{if(s.subHeaders.length)s.subHeaders.forEach(n);else {var i;t+=(i=s.column.getSize())!=null?i:0;}};return n(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=t=>{const n=o.getColumn(e.column.id),s=n?.getCanResize();return i=>{if(!n||!s||(i.persist==null||i.persist(),Ne(i)&&i.touches&&i.touches.length>1))return;const l=e.getSize(),r=e?e.getLeafHeaders().map(S=>[S.column.id,S.column.getSize()]):[[n.id,n.getSize()]],u=Ne(i)?Math.round(i.touches[0].clientX):i.clientX,c={},g=(S,x)=>{typeof x=="number"&&(o.setColumnSizingInfo(y=>{var k,A;const D=o.options.columnResizeDirection==="rtl"?-1:1,G=(x-((k=y?.startOffset)!=null?k:0))*D,P=Math.max(G/((A=y?.startSize)!=null?A:0),-0.999999);return y.columnSizingStart.forEach(Z=>{let[X,T]=Z;c[X]=Math.round(Math.max(T+T*P,0)*100)/100;}),{...y,deltaOffset:G,deltaPercentage:P}}),(o.options.columnResizeMode==="onChange"||S==="end")&&o.setColumnSizing(y=>({...y,...c})));},f=S=>g("move",S),d=S=>{g("end",S),o.setColumnSizingInfo(x=>({...x,isResizingColumn:false,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}));},a=$n(t),p={moveHandler:S=>f(S.clientX),upHandler:S=>{a?.removeEventListener("mousemove",p.moveHandler),a?.removeEventListener("mouseup",p.upHandler),d(S.clientX);}},_={moveHandler:S=>(S.cancelable&&(S.preventDefault(),S.stopPropagation()),f(S.touches[0].clientX),false),upHandler:S=>{var x;a?.removeEventListener("touchmove",_.moveHandler),a?.removeEventListener("touchend",_.upHandler),S.cancelable&&(S.preventDefault(),S.stopPropagation()),d((x=S.touches[0])==null?void 0:x.clientX);}},C=to()?{passive:false}:false;Ne(i)?(a?.addEventListener("touchmove",_.moveHandler,C),a?.addEventListener("touchend",_.upHandler,C)):(a?.addEventListener("mousemove",p.moveHandler,C),a?.addEventListener("mouseup",p.upHandler,C)),o.setColumnSizingInfo(S=>({...S,startOffset:u,startSize:l,deltaOffset:0,deltaPercentage:0,columnSizingStart:r,isResizingColumn:n.id}));}};},createTable:e=>{e.setColumnSizing=o=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(o),e.setColumnSizingInfo=o=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(o),e.resetColumnSizing=o=>{var t;e.setColumnSizing(o?{}:(t=e.initialState.columnSizing)!=null?t:{});},e.resetHeaderSizeInfo=o=>{var t;e.setColumnSizingInfo(o?Be():(t=e.initialState.columnSizingInfo)!=null?t:Be());},e.getTotalSize=()=>{var o,t;return (o=(t=e.getHeaderGroups()[0])==null?void 0:t.headers.reduce((n,s)=>n+s.getSize(),0))!=null?o:0},e.getLeftTotalSize=()=>{var o,t;return (o=(t=e.getLeftHeaderGroups()[0])==null?void 0:t.headers.reduce((n,s)=>n+s.getSize(),0))!=null?o:0},e.getCenterTotalSize=()=>{var o,t;return (o=(t=e.getCenterHeaderGroups()[0])==null?void 0:t.headers.reduce((n,s)=>n+s.getSize(),0))!=null?o:0},e.getRightTotalSize=()=>{var o,t;return (o=(t=e.getRightHeaderGroups()[0])==null?void 0:t.headers.reduce((n,s)=>n+s.getSize(),0))!=null?o:0};}};let Ve=null;function to(){if(typeof Ve=="boolean")return Ve;let e=false;try{const o={get passive(){return e=!0,!1}},t=()=>{};window.addEventListener("test",t,o),window.removeEventListener("test",t);}catch{e=false;}return Ve=e,Ve}function Ne(e){return e.type==="touchstart"}const no={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Y("columnVisibility",e)}),createColumn:(e,o)=>{e.toggleVisibility=t=>{e.getCanHide()&&o.setColumnVisibility(n=>({...n,[e.id]:t??!e.getIsVisible()}));},e.getIsVisible=()=>{var t,n;const s=e.columns;return (t=s.length?s.some(i=>i.getIsVisible()):(n=o.getState().columnVisibility)==null?void 0:n[e.id])!=null?t:true},e.getCanHide=()=>{var t,n;return ((t=e.columnDef.enableHiding)!=null?t:true)&&((n=o.options.enableHiding)!=null?n:true)},e.getToggleVisibilityHandler=()=>t=>{e.toggleVisibility==null||e.toggleVisibility(t.target.checked);};},createRow:(e,o)=>{e._getAllVisibleCells=F(()=>[e.getAllCells(),o.getState().columnVisibility],t=>t.filter(n=>n.column.getIsVisible()),M(o.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=F(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(t,n,s)=>[...t,...n,...s],M(o.options,"debugRows","getVisibleCells"));},createTable:e=>{const o=(t,n)=>F(()=>[n(),n().filter(s=>s.getIsVisible()).map(s=>s.id).join("_")],s=>s.filter(i=>i.getIsVisible==null?void 0:i.getIsVisible()),M(e.options,"debugColumns",t));e.getVisibleFlatColumns=o("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=o("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=o("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=o("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=o("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=t=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:(n=e.initialState.columnVisibility)!=null?n:{});},e.toggleAllColumnsVisible=t=>{var n;t=(n=t)!=null?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((s,i)=>({...s,[i.id]:t||!(i.getCanHide!=null&&i.getCanHide())}),{}));},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(t=>!(t.getIsVisible!=null&&t.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(t=>t.getIsVisible==null?void 0:t.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible((n=t.target)==null?void 0:n.checked);};}};function Fe(e,o){return o?o==="center"?e.getCenterVisibleLeafColumns():o==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const oo={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()};}},so={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:Y("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:o=>{var t;const n=(t=e.getCoreRowModel().flatRows[0])==null||(t=t._getAllCellsByColumnId()[o.id])==null?void 0:t.getValue();return typeof n=="string"||typeof n=="number"}}),createColumn:(e,o)=>{e.getCanGlobalFilter=()=>{var t,n,s,i;return ((t=e.columnDef.enableGlobalFilter)!=null?t:true)&&((n=o.options.enableGlobalFilter)!=null?n:true)&&((s=o.options.enableFilters)!=null?s:true)&&((i=o.options.getColumnCanGlobalFilter==null?void 0:o.options.getColumnCanGlobalFilter(e))!=null?i:true)&&!!e.accessorFn};},createTable:e=>{e.getGlobalAutoFilterFn=()=>ie.includesString,e.getGlobalFilterFn=()=>{var o,t;const{globalFilterFn:n}=e.options;return Pe(n)?n:n==="auto"?e.getGlobalAutoFilterFn():(o=(t=e.options.filterFns)==null?void 0:t[n])!=null?o:ie[n]},e.setGlobalFilter=o=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(o);},e.resetGlobalFilter=o=>{e.setGlobalFilter(o?void 0:e.initialState.globalFilter);};}},io={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Y("expanded",e),paginateExpandedRows:true}),createTable:e=>{let o=false,t=false;e._autoResetExpanded=()=>{var n,s;if(!o){e._queue(()=>{o=true;});return}if((n=(s=e.options.autoResetAll)!=null?s:e.options.autoResetExpanded)!=null?n:!e.options.manualExpanding){if(t)return;t=true,e._queue(()=>{e.resetExpanded(),t=false;});}},e.setExpanded=n=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(n),e.toggleAllRowsExpanded=n=>{n??!e.getIsAllRowsExpanded()?e.setExpanded(true):e.setExpanded({});},e.resetExpanded=n=>{var s,i;e.setExpanded(n?{}:(s=(i=e.initialState)==null?void 0:i.expanded)!=null?s:{});},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(n=>n.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>n=>{n.persist==null||n.persist(),e.toggleAllRowsExpanded();},e.getIsSomeRowsExpanded=()=>{const n=e.getState().expanded;return n===true||Object.values(n).some(Boolean)},e.getIsAllRowsExpanded=()=>{const n=e.getState().expanded;return typeof n=="boolean"?n===true:!(!Object.keys(n).length||e.getRowModel().flatRows.some(s=>!s.getIsExpanded()))},e.getExpandedDepth=()=>{let n=0;return (e.getState().expanded===true?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(i=>{const l=i.split(".");n=Math.max(n,l.length);}),n},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel());},createRow:(e,o)=>{e.toggleExpanded=t=>{o.setExpanded(n=>{var s;const i=n===true?true:!!(n!=null&&n[e.id]);let l={};if(n===true?Object.keys(o.getRowModel().rowsById).forEach(r=>{l[r]=true;}):l=n,t=(s=t)!=null?s:!i,!i&&t)return {...l,[e.id]:true};if(i&&!t){const{[e.id]:r,...u}=l;return u}return n});},e.getIsExpanded=()=>{var t;const n=o.getState().expanded;return !!((t=o.options.getIsRowExpanded==null?void 0:o.options.getIsRowExpanded(e))!=null?t:n===true||n?.[e.id])},e.getCanExpand=()=>{var t,n,s;return (t=o.options.getRowCanExpand==null?void 0:o.options.getRowCanExpand(e))!=null?t:((n=o.options.enableExpanding)!=null?n:true)&&!!((s=e.subRows)!=null&&s.length)},e.getIsAllParentsExpanded=()=>{let t=true,n=e;for(;t&&n.parentId;)n=o.getRow(n.parentId,true),t=n.getIsExpanded();return t},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return ()=>{t&&e.toggleExpanded();}};}},Ye=0,Ze=10,qe=()=>({pageIndex:Ye,pageSize:Ze}),lo={getInitialState:e=>({...e,pagination:{...qe(),...e?.pagination}}),getDefaultOptions:e=>({onPaginationChange:Y("pagination",e)}),createTable:e=>{let o=false,t=false;e._autoResetPageIndex=()=>{var n,s;if(!o){e._queue(()=>{o=true;});return}if((n=(s=e.options.autoResetAll)!=null?s:e.options.autoResetPageIndex)!=null?n:!e.options.manualPagination){if(t)return;t=true,e._queue(()=>{e.resetPageIndex(),t=false;});}},e.setPagination=n=>{const s=i=>ce(n,i);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(s)},e.resetPagination=n=>{var s;e.setPagination(n?qe():(s=e.initialState.pagination)!=null?s:qe());},e.setPageIndex=n=>{e.setPagination(s=>{let i=ce(n,s.pageIndex);const l=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return i=Math.max(0,Math.min(i,l)),{...s,pageIndex:i}});},e.resetPageIndex=n=>{var s,i;e.setPageIndex(n?Ye:(s=(i=e.initialState)==null||(i=i.pagination)==null?void 0:i.pageIndex)!=null?s:Ye);},e.resetPageSize=n=>{var s,i;e.setPageSize(n?Ze:(s=(i=e.initialState)==null||(i=i.pagination)==null?void 0:i.pageSize)!=null?s:Ze);},e.setPageSize=n=>{e.setPagination(s=>{const i=Math.max(1,ce(n,s.pageSize)),l=s.pageSize*s.pageIndex,r=Math.floor(l/i);return {...s,pageIndex:r,pageSize:i}});},e.setPageCount=n=>e.setPagination(s=>{var i;let l=ce(n,(i=e.options.pageCount)!=null?i:-1);return typeof l=="number"&&(l=Math.max(-1,l)),{...s,pageCount:l}}),e.getPageOptions=F(()=>[e.getPageCount()],n=>{let s=[];return n&&n>0&&(s=[...new Array(n)].fill(null).map((i,l)=>l)),s},M(e.options,"debugTable","getPageOptions")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:n}=e.getState().pagination,s=e.getPageCount();return s===-1?true:s===0?false:ne.setPageIndex(n=>n-1),e.nextPage=()=>e.setPageIndex(n=>n+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var n;return (n=e.options.pageCount)!=null?n:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var n;return (n=e.options.rowCount)!=null?n:e.getPrePaginationRowModel().rows.length};}},Ue=()=>({top:[],bottom:[]}),ro={getInitialState:e=>({rowPinning:Ue(),...e}),getDefaultOptions:e=>({onRowPinningChange:Y("rowPinning",e)}),createRow:(e,o)=>{e.pin=(t,n,s)=>{const i=n?e.getLeafRows().map(u=>{let{id:c}=u;return c}):[],l=s?e.getParentRows().map(u=>{let{id:c}=u;return c}):[],r=new Set([...l,e.id,...i]);o.setRowPinning(u=>{var c,g;if(t==="bottom"){var f,d;return {top:((f=u?.top)!=null?f:[]).filter(_=>!(r!=null&&r.has(_))),bottom:[...((d=u?.bottom)!=null?d:[]).filter(_=>!(r!=null&&r.has(_))),...Array.from(r)]}}if(t==="top"){var a,p;return {top:[...((a=u?.top)!=null?a:[]).filter(_=>!(r!=null&&r.has(_))),...Array.from(r)],bottom:((p=u?.bottom)!=null?p:[]).filter(_=>!(r!=null&&r.has(_)))}}return {top:((c=u?.top)!=null?c:[]).filter(_=>!(r!=null&&r.has(_))),bottom:((g=u?.bottom)!=null?g:[]).filter(_=>!(r!=null&&r.has(_)))}});},e.getCanPin=()=>{var t;const{enableRowPinning:n,enablePinning:s}=o.options;return typeof n=="function"?n(e):(t=n??s)!=null?t:true},e.getIsPinned=()=>{const t=[e.id],{top:n,bottom:s}=o.getState().rowPinning,i=t.some(r=>n?.includes(r)),l=t.some(r=>s?.includes(r));return i?"top":l?"bottom":false},e.getPinnedIndex=()=>{var t,n;const s=e.getIsPinned();if(!s)return -1;const i=(t=s==="top"?o.getTopRows():o.getBottomRows())==null?void 0:t.map(l=>{let{id:r}=l;return r});return (n=i?.indexOf(e.id))!=null?n:-1};},createTable:e=>{e.setRowPinning=o=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(o),e.resetRowPinning=o=>{var t,n;return e.setRowPinning(o?Ue():(t=(n=e.initialState)==null?void 0:n.rowPinning)!=null?t:Ue())},e.getIsSomeRowsPinned=o=>{var t;const n=e.getState().rowPinning;if(!o){var s,i;return !!((s=n.top)!=null&&s.length||(i=n.bottom)!=null&&i.length)}return !!((t=n[o])!=null&&t.length)},e._getPinnedRows=(o,t,n)=>{var s;return ((s=e.options.keepPinnedRows)==null||s?(t??[]).map(l=>{const r=e.getRow(l,true);return r.getIsAllParentsExpanded()?r:null}):(t??[]).map(l=>o.find(r=>r.id===l))).filter(Boolean).map(l=>({...l,position:n}))},e.getTopRows=F(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(o,t)=>e._getPinnedRows(o,t,"top"),M(e.options,"debugRows","getTopRows")),e.getBottomRows=F(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(o,t)=>e._getPinnedRows(o,t,"bottom"),M(e.options,"debugRows","getBottomRows")),e.getCenterRows=F(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(o,t,n)=>{const s=new Set([...t??[],...n??[]]);return o.filter(i=>!s.has(i.id))},M(e.options,"debugRows","getCenterRows"));}},uo={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Y("rowSelection",e),enableRowSelection:true,enableMultiRowSelection:true,enableSubRowSelection:true}),createTable:e=>{e.setRowSelection=o=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(o),e.resetRowSelection=o=>{var t;return e.setRowSelection(o?{}:(t=e.initialState.rowSelection)!=null?t:{})},e.toggleAllRowsSelected=o=>{e.setRowSelection(t=>{o=typeof o<"u"?o:!e.getIsAllRowsSelected();const n={...t},s=e.getPreGroupedRowModel().flatRows;return o?s.forEach(i=>{i.getCanSelect()&&(n[i.id]=true);}):s.forEach(i=>{delete n[i.id];}),n});},e.toggleAllPageRowsSelected=o=>e.setRowSelection(t=>{const n=typeof o<"u"?o:!e.getIsAllPageRowsSelected(),s={...t};return e.getRowModel().rows.forEach(i=>{Qe(s,i.id,n,true,e);}),s}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=F(()=>[e.getState().rowSelection,e.getCoreRowModel()],(o,t)=>Object.keys(o).length?We(e,t):{rows:[],flatRows:[],rowsById:{}},M(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=F(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(o,t)=>Object.keys(o).length?We(e,t):{rows:[],flatRows:[],rowsById:{}},M(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=F(()=>[e.getState().rowSelection,e.getSortedRowModel()],(o,t)=>Object.keys(o).length?We(e,t):{rows:[],flatRows:[],rowsById:{}},M(e.options,"debugTable","getGroupedSelectedRowModel")),e.getIsAllRowsSelected=()=>{const o=e.getFilteredRowModel().flatRows,{rowSelection:t}=e.getState();let n=!!(o.length&&Object.keys(t).length);return n&&o.some(s=>s.getCanSelect()&&!t[s.id])&&(n=false),n},e.getIsAllPageRowsSelected=()=>{const o=e.getPaginationRowModel().flatRows.filter(s=>s.getCanSelect()),{rowSelection:t}=e.getState();let n=!!o.length;return n&&o.some(s=>!t[s.id])&&(n=false),n},e.getIsSomeRowsSelected=()=>{var o;const t=Object.keys((o=e.getState().rowSelection)!=null?o:{}).length;return t>0&&t{const o=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?false:o.filter(t=>t.getCanSelect()).some(t=>t.getIsSelected()||t.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>o=>{e.toggleAllRowsSelected(o.target.checked);},e.getToggleAllPageRowsSelectedHandler=()=>o=>{e.toggleAllPageRowsSelected(o.target.checked);};},createRow:(e,o)=>{e.toggleSelected=(t,n)=>{const s=e.getIsSelected();o.setRowSelection(i=>{var l;if(t=typeof t<"u"?t:!s,e.getCanSelect()&&s===t)return i;const r={...i};return Qe(r,e.id,t,(l=n?.selectChildren)!=null?l:true,o),r});},e.getIsSelected=()=>{const{rowSelection:t}=o.getState();return ot(e,t)},e.getIsSomeSelected=()=>{const{rowSelection:t}=o.getState();return $e(e,t)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:t}=o.getState();return $e(e,t)==="all"},e.getCanSelect=()=>{var t;return typeof o.options.enableRowSelection=="function"?o.options.enableRowSelection(e):(t=o.options.enableRowSelection)!=null?t:true},e.getCanSelectSubRows=()=>{var t;return typeof o.options.enableSubRowSelection=="function"?o.options.enableSubRowSelection(e):(t=o.options.enableSubRowSelection)!=null?t:true},e.getCanMultiSelect=()=>{var t;return typeof o.options.enableMultiRowSelection=="function"?o.options.enableMultiRowSelection(e):(t=o.options.enableMultiRowSelection)!=null?t:true},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return n=>{var s;t&&e.toggleSelected((s=n.target)==null?void 0:s.checked);}};}},Qe=(e,o,t,n,s)=>{var i;const l=s.getRow(o,true);t?(l.getCanMultiSelect()||Object.keys(e).forEach(r=>delete e[r]),l.getCanSelect()&&(e[o]=true)):delete e[o],n&&(i=l.subRows)!=null&&i.length&&l.getCanSelectSubRows()&&l.subRows.forEach(r=>Qe(e,r.id,t,n,s));};function We(e,o){const t=e.getState().rowSelection,n=[],s={},i=function(l,r){return l.map(u=>{var c;const g=ot(u,t);if(g&&(n.push(u),s[u.id]=u),(c=u.subRows)!=null&&c.length&&(u={...u,subRows:i(u.subRows)}),g)return u}).filter(Boolean)};return {rows:i(o.rows),flatRows:n,rowsById:s}}function ot(e,o){var t;return (t=o[e.id])!=null?t:false}function $e(e,o,t){var n;if(!((n=e.subRows)!=null&&n.length))return false;let s=true,i=false;return e.subRows.forEach(l=>{if(!(i&&!s)&&(l.getCanSelect()&&(ot(l,o)?i=true:s=false),l.subRows&&l.subRows.length)){const r=$e(l,o);r==="all"?i=true:(r==="some"&&(i=true),s=false);}}),s?"all":i?"some":false}const et=/([0-9]+)/gm,ao=(e,o,t)=>Gt(de(e.getValue(t)).toLowerCase(),de(o.getValue(t)).toLowerCase()),co=(e,o,t)=>Gt(de(e.getValue(t)),de(o.getValue(t))),go=(e,o,t)=>st(de(e.getValue(t)).toLowerCase(),de(o.getValue(t)).toLowerCase()),fo=(e,o,t)=>st(de(e.getValue(t)),de(o.getValue(t))),ho=(e,o,t)=>{const n=e.getValue(t),s=o.getValue(t);return n>s?1:nst(e.getValue(t),o.getValue(t));function st(e,o){return e===o?0:e>o?1:-1}function de(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function Gt(e,o){const t=e.split(et).filter(Boolean),n=o.split(et).filter(Boolean);for(;t.length&&n.length;){const s=t.shift(),i=n.shift(),l=parseInt(s,10),r=parseInt(i,10),u=[l,r].sort();if(isNaN(u[0])){if(s>i)return 1;if(i>s)return -1;continue}if(isNaN(u[1]))return isNaN(l)?-1:1;if(l>r)return 1;if(r>l)return -1}return t.length-n.length}const Re={alphanumeric:ao,alphanumericCaseSensitive:co,text:go,textCaseSensitive:fo,datetime:ho,basic:po},mo={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Y("sorting",e),isMultiSortEvent:o=>o.shiftKey}),createColumn:(e,o)=>{e.getAutoSortingFn=()=>{const t=o.getFilteredRowModel().flatRows.slice(10);let n=false;for(const s of t){const i=s?.getValue(e.id);if(Object.prototype.toString.call(i)==="[object Date]")return Re.datetime;if(typeof i=="string"&&(n=true,i.split(et).length>1))return Re.alphanumeric}return n?Re.text:Re.basic},e.getAutoSortDir=()=>{const t=o.getFilteredRowModel().flatRows[0];return typeof t?.getValue(e.id)=="string"?"asc":"desc"},e.getSortingFn=()=>{var t,n;if(!e)throw new Error;return Pe(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(t=(n=o.options.sortingFns)==null?void 0:n[e.columnDef.sortingFn])!=null?t:Re[e.columnDef.sortingFn]},e.toggleSorting=(t,n)=>{const s=e.getNextSortingOrder(),i=typeof t<"u"&&t!==null;o.setSorting(l=>{const r=l?.find(a=>a.id===e.id),u=l?.findIndex(a=>a.id===e.id);let c=[],g,f=i?t:s==="desc";if(l!=null&&l.length&&e.getCanMultiSort()&&n?r?g="toggle":g="add":l!=null&&l.length&&u!==l.length-1?g="replace":r?g="toggle":g="replace",g==="toggle"&&(i||s||(g="remove")),g==="add"){var d;c=[...l,{id:e.id,desc:f}],c.splice(0,c.length-((d=o.options.maxMultiSortColCount)!=null?d:Number.MAX_SAFE_INTEGER));}else g==="toggle"?c=l.map(a=>a.id===e.id?{...a,desc:f}:a):g==="remove"?c=l.filter(a=>a.id!==e.id):c=[{id:e.id,desc:f}];return c});},e.getFirstSortDir=()=>{var t,n;return ((t=(n=e.columnDef.sortDescFirst)!=null?n:o.options.sortDescFirst)!=null?t:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=t=>{var n,s;const i=e.getFirstSortDir(),l=e.getIsSorted();return l?l!==i&&((n=o.options.enableSortingRemoval)==null||n)&&(!(t&&(s=o.options.enableMultiRemove)!=null)||s)?false:l==="desc"?"asc":"desc":i},e.getCanSort=()=>{var t,n;return ((t=e.columnDef.enableSorting)!=null?t:true)&&((n=o.options.enableSorting)!=null?n:true)&&!!e.accessorFn},e.getCanMultiSort=()=>{var t,n;return (t=(n=e.columnDef.enableMultiSort)!=null?n:o.options.enableMultiSort)!=null?t:!!e.accessorFn},e.getIsSorted=()=>{var t;const n=(t=o.getState().sorting)==null?void 0:t.find(s=>s.id===e.id);return n?n.desc?"desc":"asc":false},e.getSortIndex=()=>{var t,n;return (t=(n=o.getState().sorting)==null?void 0:n.findIndex(s=>s.id===e.id))!=null?t:-1},e.clearSorting=()=>{o.setSorting(t=>t!=null&&t.length?t.filter(n=>n.id!==e.id):[]);},e.getToggleSortingHandler=()=>{const t=e.getCanSort();return n=>{t&&(n.persist==null||n.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?o.options.isMultiSortEvent==null?void 0:o.options.isMultiSortEvent(n):false));}};},createTable:e=>{e.setSorting=o=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(o),e.resetSorting=o=>{var t,n;e.setSorting(o?[]:(t=(n=e.initialState)==null?void 0:n.sorting)!=null?t:[]);},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel());}},_o=[Ln,no,Zn,Qn,Hn,jn,oo,so,mo,Jn,io,lo,ro,uo,eo];function vo(e){var o,t;process.env.NODE_ENV!=="production"&&(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");const n=[..._o,...(o=e._features)!=null?o:[]];let s={_features:n};const i=s._features.reduce((d,a)=>Object.assign(d,a.getDefaultOptions==null?void 0:a.getDefaultOptions(s)),{}),l=d=>s.options.mergeOptions?s.options.mergeOptions(i,d):{...i,...d};let u={...{},...(t=e.initialState)!=null?t:{}};s._features.forEach(d=>{var a;u=(a=d.getInitialState==null?void 0:d.getInitialState(u))!=null?a:u;});const c=[];let g=false;const f={_features:n,options:{...i,...e},initialState:u,_queue:d=>{c.push(d),g||(g=true,Promise.resolve().then(()=>{for(;c.length;)c.shift()();g=false;}).catch(a=>setTimeout(()=>{throw a})));},reset:()=>{s.setState(s.initialState);},setOptions:d=>{const a=ce(d,s.options);s.options=l(a);},getState:()=>s.options.state,setState:d=>{s.options.onStateChange==null||s.options.onStateChange(d);},_getRowId:(d,a,p)=>{var _;return (_=s.options.getRowId==null?void 0:s.options.getRowId(d,a,p))!=null?_:`${p?[p.id,a].join("."):a}`},getCoreRowModel:()=>(s._getCoreRowModel||(s._getCoreRowModel=s.options.getCoreRowModel(s)),s._getCoreRowModel()),getRowModel:()=>s.getPaginationRowModel(),getRow:(d,a)=>{let p=(a?s.getPrePaginationRowModel():s.getRowModel()).rowsById[d];if(!p&&(p=s.getCoreRowModel().rowsById[d],!p))throw process.env.NODE_ENV!=="production"?new Error(`getRow could not find row with ID: ${d}`):new Error;return p},_getDefaultColumnDef:F(()=>[s.options.defaultColumn],d=>{var a;return d=(a=d)!=null?a:{},{header:p=>{const _=p.header.column.columnDef;return _.accessorKey?_.accessorKey:_.accessorFn?_.id:null},cell:p=>{var _,C;return (_=(C=p.renderValue())==null||C.toString==null?void 0:C.toString())!=null?_:null},...s._features.reduce((p,_)=>Object.assign(p,_.getDefaultColumnDef==null?void 0:_.getDefaultColumnDef()),{}),...d}},M(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>s.options.columns,getAllColumns:F(()=>[s._getColumnDefs()],d=>{const a=function(p,_,C){return C===void 0&&(C=0),p.map(S=>{const x=On(s,S,C,_),y=S;return x.columns=y.columns?a(y.columns,x,C+1):[],x})};return a(d)},M(e,"debugColumns","getAllColumns")),getAllFlatColumns:F(()=>[s.getAllColumns()],d=>d.flatMap(a=>a.getFlatColumns()),M(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:F(()=>[s.getAllFlatColumns()],d=>d.reduce((a,p)=>(a[p.id]=p,a),{}),M(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:F(()=>[s.getAllColumns(),s._getOrderColumnsFn()],(d,a)=>{let p=d.flatMap(_=>_.getLeafColumns());return a(p)},M(e,"debugColumns","getAllLeafColumns")),getColumn:d=>{const a=s._getAllFlatColumnsById()[d];return process.env.NODE_ENV!=="production"&&!a&&console.error(`[Table] Column with id '${d}' does not exist.`),a}};Object.assign(s,f);for(let d=0;dF(()=>[e.options.data],o=>{const t={rows:[],flatRows:[],rowsById:{}},n=function(s,i,l){i===void 0&&(i=0);const r=[];for(let c=0;ce._autoResetPageIndex()))}function So(e,o,t){return t.options.filterFromLeafRows?Co(e,o,t):Ro(e,o,t)}function Co(e,o,t){var n;const s=[],i={},l=(n=t.options.maxLeafRowFilterDepth)!=null?n:100,r=function(u,c){c===void 0&&(c=0);const g=[];for(let d=0;dF(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(o,t,n)=>{if(!o.rows.length||!(t!=null&&t.length)&&!n){for(let d=0;d{var a;const p=e.getColumn(d.id);if(!p)return;const _=p.getFilterFn();if(!_){process.env.NODE_ENV!=="production"&&console.warn(`Could not find a valid 'column.filterFn' for column with the ID: ${p.id}.`);return}s.push({id:d.id,filterFn:_,resolvedValue:(a=_.resolveFilterValue==null?void 0:_.resolveFilterValue(d.value))!=null?a:d.value});});const l=(t??[]).map(d=>d.id),r=e.getGlobalFilterFn(),u=e.getAllLeafColumns().filter(d=>d.getCanGlobalFilter());n&&r&&u.length&&(l.push("__global__"),u.forEach(d=>{var a;i.push({id:d.id,filterFn:r,resolvedValue:(a=r.resolveFilterValue==null?void 0:r.resolveFilterValue(n))!=null?a:n});}));let c,g;for(let d=0;d{a.columnFiltersMeta[_]=C;});}if(i.length){for(let p=0;p{a.columnFiltersMeta[_]=C;})){a.columnFilters.__global__=true;break}}a.columnFilters.__global__!==true&&(a.columnFilters.__global__=false);}}const f=d=>{for(let a=0;ae._autoResetPageIndex()))}function yo(){return e=>F(()=>[e.getState().sorting,e.getPreSortedRowModel()],(o,t)=>{if(!t.rows.length||!(o!=null&&o.length))return t;const n=e.getState().sorting,s=[],i=n.filter(u=>{var c;return (c=e.getColumn(u.id))==null?void 0:c.getCanSort()}),l={};i.forEach(u=>{const c=e.getColumn(u.id);c&&(l[u.id]={sortUndefined:c.columnDef.sortUndefined,invertSorting:c.columnDef.invertSorting,sortingFn:c.getSortingFn()});});const r=u=>{const c=u.map(g=>({...g}));return c.sort((g,f)=>{for(let a=0;a{var f;s.push(g),(f=g.subRows)!=null&&f.length&&(g.subRows=r(g.subRows));}),c};return {rows:r(t.rows),flatRows:s,rowsById:t.rowsById}},M(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}function xe(...e){const o={};for(let t=0;t=0;l--){let r=e[l];typeof r=="function"&&(r=r());const u=(r||{})[i];if(u!==void 0)return u}}});}}return o}function Fo(e){const o=xe({state:{},onStateChange(){},renderFallbackValue:null,mergeOptions:(i,l)=>xe(i,l)},e),t=vo(o);let n=t.initialState;function s(){t.setOptions(i=>xe(i,e,{state:xe(n,e.state||{}),onStateChange:l=>{l instanceof Function?n=l(n):n=xe(n,l),e.onStateChange?.(l);}}));}return s(),{getRowModel:()=>t.getRowModel(),getHeaderGroups:()=>t.getHeaderGroups(),getColumn:i=>t.getColumn(i)}}function _e(e,o,t){let n=t.initialDeps??[],s,i=true;function l(){var r,u,c;let g;t.key&&((r=t.debug)!=null&&r.call(t))&&(g=Date.now());const f=e();if(!(f.length!==n.length||f.some((p,_)=>n[_]!==p)))return s;n=f;let a;if(t.key&&((u=t.debug)!=null&&u.call(t))&&(a=Date.now()),s=o(...f),t.key&&((c=t.debug)!=null&&c.call(t))){const p=Math.round((Date.now()-g)*100)/100,_=Math.round((Date.now()-a)*100)/100,C=_/16,S=(x,y)=>{for(x=String(x);x.length{n=r;},l}function Rt(e,o){if(e===void 0)throw new Error("Unexpected undefined");return e}const Mo=(e,o)=>Math.abs(e-o)<1.01,bo=(e,o,t)=>{let n;return function(...s){e.clearTimeout(n),n=e.setTimeout(()=>o.apply(this,s),t);}},xt=e=>{const{offsetWidth:o,offsetHeight:t}=e;return {width:o,height:t}},Io=e=>e,Eo=e=>{const o=Math.max(e.startIndex-e.overscan,0),t=Math.min(e.endIndex+e.overscan,e.count-1),n=[];for(let s=o;s<=t;s++)n.push(s);return n},ko=(e,o)=>{const t=e.scrollElement;if(!t)return;const n=e.targetWindow;if(!n)return;const s=l=>{const{width:r,height:u}=l;o({width:Math.round(r),height:Math.round(u)});};if(s(xt(t)),!n.ResizeObserver)return ()=>{};const i=new n.ResizeObserver(l=>{const r=()=>{const u=l[0];if(u?.borderBoxSize){const c=u.borderBoxSize[0];if(c){s({width:c.inlineSize,height:c.blockSize});return}}s(xt(t));};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(r):r();});return i.observe(t,{box:"border-box"}),()=>{i.unobserve(t);}},yt={passive:true},Ft=typeof window>"u"?true:"onscrollend"in window,Vo=(e,o)=>{const t=e.scrollElement;if(!t)return;const n=e.targetWindow;if(!n)return;let s=0;const i=e.options.useScrollendEvent&&Ft?()=>{}:bo(n,()=>{o(s,false);},e.options.isScrollingResetDelay),l=g=>()=>{const{horizontal:f,isRtl:d}=e.options;s=f?t.scrollLeft*(d&&-1||1):t.scrollTop,i(),o(s,g);},r=l(true),u=l(false);t.addEventListener("scroll",r,yt);const c=e.options.useScrollendEvent&&Ft;return c&&t.addEventListener("scrollend",u,yt),()=>{t.removeEventListener("scroll",r),c&&t.removeEventListener("scrollend",u);}},Po=(e,o,t)=>{if(o?.borderBoxSize){const n=o.borderBoxSize[0];if(n)return Math.round(n[t.options.horizontal?"inlineSize":"blockSize"])}return e[t.options.horizontal?"offsetWidth":"offsetHeight"]},Ao=(e,{adjustments:o=0,behavior:t},n)=>{var s,i;const l=e+o;(i=(s=n.scrollElement)==null?void 0:s.scrollTo)==null||i.call(s,{[n.options.horizontal?"left":"top"]:l,behavior:t});};class Do{constructor(o){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=false,this.scrollState=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=false,this.lanesSettling=false,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.now=()=>{var t,n,s;return ((s=(n=(t=this.targetWindow)==null?void 0:t.performance)==null?void 0:n.now)==null?void 0:s.call(n))??Date.now()},this.observer=(()=>{let t=null;const n=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(s=>{s.forEach(i=>{const l=()=>{const r=i.target,u=this.indexFromElement(r);if(!r.isConnected){this.observer.unobserve(r);return}this.shouldMeasureDuringScroll(u)&&this.resizeItem(u,this.options.measureElement(r,i,this));};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(l):l();});}));return {disconnect:()=>{var s;(s=n())==null||s.disconnect(),t=null;},observe:s=>{var i;return (i=n())==null?void 0:i.observe(s,{box:"border-box"})},unobserve:s=>{var i;return (i=n())==null?void 0:i.unobserve(s)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([n,s])=>{typeof s>"u"&&delete t[n];}),this.options={debug:false,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:false,getItemKey:Io,rangeExtractor:Eo,onChange:()=>{},measureElement:Po,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:true,isRtl:false,useScrollendEvent:false,useAnimationFrameWithResizeObserver:false,...t};},this.notify=t=>{var n,s;(s=(n=this.options).onChange)==null||s.call(n,this,t);},this.maybeNotify=_e(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),t=>{this.notify(t);},{key:process.env.NODE_ENV!=="production"&&"maybeNotify",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(t=>t()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.scrollElement=null,this.targetWindow=null;},this._didMount=()=>()=>{this.cleanup();},this._willUpdate=()=>{var t;const n=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==n){if(this.cleanup(),!n){this.maybeNotify();return}this.scrollElement=n,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((t=this.scrollElement)==null?void 0:t.window)??null,this.elementsCache.forEach(s=>{this.observer.observe(s);}),this.unsubs.push(this.options.observeElementRect(this,s=>{this.scrollRect=s,this.maybeNotify();})),this.unsubs.push(this.options.observeElementOffset(this,(s,i)=>{this.scrollAdjustments=0,this.scrollDirection=i?this.getScrollOffset()this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(t,n)=>{const s=new Map,i=new Map;for(let l=n-1;l>=0;l--){const r=t[l];if(s.has(r.lane))continue;const u=i.get(r.lane);if(u==null||r.end>u.end?i.set(r.lane,r):r.endl.end===r.end?l.index-r.index:l.end-r.end)[0]:void 0},this.getMeasurementOptions=_e(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(t,n,s,i,l,r)=>(this.prevLanes!==void 0&&this.prevLanes!==r&&(this.lanesChangedFlag=true),this.prevLanes=r,this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:n,scrollMargin:s,getItemKey:i,enabled:l,lanes:r}),{key:false}),this.getMeasurements=_e(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:n,scrollMargin:s,getItemKey:i,enabled:l,lanes:r},u)=>{if(!l)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>t)for(const d of this.laneAssignments.keys())d>=t&&this.laneAssignments.delete(d);this.lanesChangedFlag&&(this.lanesChangedFlag=false,this.lanesSettling=true,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(d=>{this.itemSizeCache.set(d.key,d.size);}));const c=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===t&&(this.lanesSettling=false);const g=this.measurementsCache.slice(0,c),f=new Array(r).fill(void 0);for(let d=0;d1){_=p;const k=f[_],A=k!==void 0?g[k]:void 0;C=A?A.end+this.options.gap:n+s;}else {const k=this.options.lanes===1?g[d-1]:this.getFurthestMeasurement(g,d);C=k?k.end+this.options.gap:n+s,_=k?k.lane:d%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(d,_);}const S=u.get(a),x=typeof S=="number"?S:this.options.estimateSize(d),y=C+x;g[d]={index:d,start:C,size:x,end:y,key:a,lane:_},f[_]=d;}return this.measurementsCache=g,g},{key:process.env.NODE_ENV!=="production"&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=_e(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(t,n,s,i)=>this.range=t.length>0&&n>0?zo({measurements:t,outerSize:n,scrollOffset:s,lanes:i}):null,{key:process.env.NODE_ENV!=="production"&&"calculateRange",debug:()=>this.options.debug}),this.getVirtualIndexes=_e(()=>{let t=null,n=null;const s=this.calculateRange();return s&&(t=s.startIndex,n=s.endIndex),this.maybeNotify.updateDeps([this.isScrolling,t,n]),[this.options.rangeExtractor,this.options.overscan,this.options.count,t,n]},(t,n,s,i,l)=>i===null||l===null?[]:t({startIndex:i,endIndex:l,overscan:n,count:s}),{key:process.env.NODE_ENV!=="production"&&"getVirtualIndexes",debug:()=>this.options.debug}),this.indexFromElement=t=>{const n=this.options.indexAttribute,s=t.getAttribute(n);return s?parseInt(s,10):(console.warn(`Missing attribute name '${n}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=t=>{var n;if(!this.scrollState||this.scrollState.behavior!=="smooth")return true;const s=this.scrollState.index??((n=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))==null?void 0:n.index);if(s!==void 0&&this.range){const i=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),l=Math.max(0,s-i),r=Math.min(this.options.count-1,s+i);return t>=l&&t<=r}return true},this.measureElement=t=>{if(!t){this.elementsCache.forEach((l,r)=>{l.isConnected||(this.observer.unobserve(l),this.elementsCache.delete(r));});return}const n=this.indexFromElement(t),s=this.options.getItemKey(n),i=this.elementsCache.get(s);i!==t&&(i&&this.observer.unobserve(i),this.observer.observe(t),this.elementsCache.set(s,t)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(n)&&this.resizeItem(n,this.options.measureElement(t,void 0,this));},this.resizeItem=(t,n)=>{var s;const i=this.measurementsCache[t];if(!i)return;const l=this.itemSizeCache.get(i.key)??i.size,r=n-l;r!==0&&(((s=this.scrollState)==null?void 0:s.behavior)!=="smooth"&&(this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(i,r,this):i.start[this.getVirtualIndexes(),this.getMeasurements()],(t,n)=>{const s=[];for(let i=0,l=t.length;ithis.options.debug}),this.getVirtualItemForOffset=t=>{const n=this.getMeasurements();if(n.length!==0)return Rt(n[Tt(0,n.length-1,s=>Rt(n[s]).start,t)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const t=this.scrollElement.document.documentElement;return this.options.horizontal?t.scrollWidth-this.scrollElement.innerWidth:t.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(t,n,s=0)=>{if(!this.scrollElement)return 0;const i=this.getSize(),l=this.getScrollOffset();n==="auto"&&(n=t>=l+i?"end":"start"),n==="center"?t+=(s-i)/2:n==="end"&&(t-=i);const r=this.getMaxScrollOffset();return Math.max(Math.min(r,t),0)},this.getOffsetForIndex=(t,n="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));const s=this.getSize(),i=this.getScrollOffset(),l=this.measurementsCache[t];if(!l)return;if(n==="auto")if(l.end>=i+s-this.options.scrollPaddingEnd)n="end";else if(l.start<=i+this.options.scrollPaddingStart)n="start";else return [i,n];if(n==="end"&&t===this.options.count-1)return [this.getMaxScrollOffset(),n];const r=n==="end"?l.end+this.options.scrollPaddingEnd:l.start-this.options.scrollPaddingStart;return [this.getOffsetForAlignment(r,n,l.size),n]},this.scrollToOffset=(t,{align:n="start",behavior:s="auto"}={})=>{const i=this.getOffsetForAlignment(t,n),l=this.now();this.scrollState={index:null,align:n,behavior:s,startedAt:l,lastTargetOffset:i,stableFrames:0},this._scrollToOffset(i,{adjustments:void 0,behavior:s}),this.scheduleScrollReconcile();},this.scrollToIndex=(t,{align:n="auto",behavior:s="auto"}={})=>{t=Math.max(0,Math.min(t,this.options.count-1));const i=this.getOffsetForIndex(t,n);if(!i)return;const[l,r]=i,u=this.now();this.scrollState={index:t,align:r,behavior:s,startedAt:u,lastTargetOffset:l,stableFrames:0},this._scrollToOffset(l,{adjustments:void 0,behavior:s}),this.scheduleScrollReconcile();},this.scrollBy=(t,{behavior:n="auto"}={})=>{const s=this.getScrollOffset()+t,i=this.now();this.scrollState={index:null,align:"start",behavior:n,startedAt:i,lastTargetOffset:s,stableFrames:0},this._scrollToOffset(s,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile();},this.getTotalSize=()=>{var t;const n=this.getMeasurements();let s;if(n.length===0)s=this.options.paddingStart;else if(this.options.lanes===1)s=((t=n[n.length-1])==null?void 0:t.end)??0;else {const i=Array(this.options.lanes).fill(null);let l=n.length-1;for(;l>=0&&i.some(r=>r===null);){const r=n[l];i[r.lane]===null&&(i[r.lane]=r.end),l--;}s=Math.max(...i.filter(r=>r!==null));}return Math.max(s-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(t,{adjustments:n,behavior:s})=>{this.options.scrollToFn(t,{behavior:s,adjustments:n},this);},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(false);},this.setOptions(o);}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId==null&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll();}));}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}const n=this.scrollState.index!=null?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,s=n?n[0]:this.scrollState.lastTargetOffset,i=1,l=s!==this.scrollState.lastTargetOffset;if(!l&&Mo(s,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=i){this.scrollState=null;return}}else this.scrollState.stableFrames=0,l&&(this.scrollState.lastTargetOffset=s,this.scrollState.behavior="auto",this._scrollToOffset(s,{adjustments:void 0,behavior:"auto"}));this.scheduleScrollReconcile();}}const Tt=(e,o,t,n)=>{for(;e<=o;){const s=(e+o)/2|0,i=t(s);if(in)o=s-1;else return s}return e>0?e-1:0};function zo({measurements:e,outerSize:o,scrollOffset:t,lanes:n}){const s=e.length-1,i=u=>e[u].start;if(e.length<=n)return {startIndex:0,endIndex:s};let l=Tt(0,s,i,t),r=l;if(n===1)for(;r1){const u=Array(n).fill(0);for(;rg=0&&c.some(g=>g>=t);){const g=e[l];c[g.lane]=g.start,l--;}l=Math.max(0,l-l%n),r=Math.min(s,r+(n-1-r%n));}return {startIndex:l,endIndex:r}}function Oo(e){const o=new Do({observeElementRect:ko,observeElementOffset:Vo,scrollToFn:Ao,...e,onChange:(t,n)=>{n||queueMicrotask(()=>{}),e.onChange?.(t,n);}});return {instance:o,virtualItems:()=>o.getVirtualItems(),totalSize:()=>o.getTotalSize()}}function Mt(e,o){e.component(t=>{let{position:n,coords:s,on_click:i=null}=o,l=n==="column"?s[0]===0:s[1]===0,r=n==="column"?l?"down":"up":l?"right":"left";t.push(``);});}function Lo(e,o){e.component(t=>{let{value:n=false,editable:s=true,on_change:i}=o;function l(g){s&&i(g);}let r=true,u;function c(g){g.push('
    '),d(g,{label:"",interactive:s,on_change:l,get value(){return n},set value(f){n=f,r=false;}}),g.push("
    ");}do r=true,u=t.copy(),c(u);while(!r);t.subsume(u),bind_props(o,{value:n});});}function Bt(e,o){e.component(t=>{let{edit:n,value:s="",display_value:i=null,styling:l="",header:r=false,datatype:u="str",latex_delimiters:c,line_breaks:g=true,editable:f=true,is_static:d=false,max_chars:a=null,components:p={},i18n:_,is_dragging:C=false,wrap_text:S=false,expanded:x=false,show_selection_buttons:y=false,coords:k,on_select_column:A=null,on_select_row:D=null,el:G=null,onblur:P,onkeydown:Z,pad_left:X=false}=o;function T(I,U=null,se=false){if(se)return String(I);const fe=String(I);return !U||U<=0||fe.length<=U?fe:fe.slice(0,U)+"..."}let ge=!n&&!x&&a!==null&&a>0,le=f?s:i!==null?i:s,re=ge?T(le,a,u==="image"):le;function ve(I){P?.({blur_event:I,coords:k});}function we(I){ve({target:{value:s}});}let pe=true,Se;function it(I){if(n&&u!=="bool"){I.push(""),I.push(``);const U=escape_html(s);U&&I.push(`${U}`),I.push("");}else I.push("");if(I.push(" "),u==="bool"&&typeof s=="boolean")I.push(""),Lo(I,{editable:f,on_change:we,get value(){return s},set value(U){s=U,pe=false;}});else {if(I.push(""),I.push(``),u==="image"&&p.image){I.push("");const U=p.image;I.push(""),U(I,{value:{url:re},show_label:false,label:"cell-image",show_download_button:false,i18n:_,gradio:{dispatch:()=>{}}}),I.push("");}else I.push(""),u==="html"?(I.push(""),I.push(`${html(re)}`)):(I.push(""),u==="markdown"?(I.push(""),Qt(I,{message:re.toLocaleString(),latex_delimiters:c,line_breaks:g,chatbot:false})):(I.push(""),I.push(`${escape_html(re)}`)),I.push("")),I.push("");I.push("");}I.push(" "),y&&k&&A&&D?(I.push(""),Mt(I,{position:"column",coords:k,on_click:()=>A(k[1])}),I.push(" "),Mt(I,{position:"row",coords:k,on_click:()=>D(k[0])}),I.push("")):I.push(""),I.push("");}do pe=true,Se=t.copy(),it(Se);while(!pe);t.subsume(Se),bind_props(o,{value:s,el:G});});}function Nt(e,o){e.component(t=>{let{on_click:n}=o;t.push('');});}function Ho(e,o){let{size:t=16}=o;e.push(`
    `);}function jo(e){e.push('');}function Go(e,o){let{size:t=16}=o;e.push(``);}function To(e,o){let{size:t=16}=o;e.push(``);}function Bo(e,o){e.component(t=>{let{value:n,col_idx:s,is_editing:i=false,is_selected:l=false,is_static:r=false,is_bool:u=false,select_all_state:c="unchecked",sort_direction:g=null,sort_priority:f=null,multi_sort:d$1=false,is_filtered:a=false,show_menu_button:p=false,is_first_column:_=false,latex_delimiters:C,line_breaks:S=true,editable:x=true,max_chars:y=void 0,i18n:k,wrap_text:A=false,onclick:D,on_menu_click:G,on_end_edit:P,on_select_all:Z}=o,X=u&&x&&!r&&!!Z;t.push(`
    `),X?(t.push(""),t.push('
    '),d(t,{value:c==="checked",indeterminate:c==="indeterminate",label:`Toggle all: ${n}`,interactive:true,on_select:()=>Z?.(s,c!=="checked")}),t.push("
    ")):t.push(""),t.push(" "),Bt(t,{value:n,latex_delimiters:C,line_breaks:S,edit:i,onkeydown:T=>{["Enter","Escape","Tab"].includes(T.key)&&P(T.key);},header:true,editable:x,is_static:r,i18n:k,max_chars:y,wrap_text:A,coords:[s,0],pad_left:!!X}),t.push("
    "),g||a||r?(t.push(""),t.push(''),a?(t.push(""),t.push(''),jo(t),t.push("")):t.push(""),t.push(" "),g?(t.push(""),t.push(``),g==="asc"?(t.push(""),Go(t,{size:13})):(t.push(""),To(t,{size:13})),t.push(" "),d$1&&f!=null?(t.push(""),t.push(`${escape_html(f)}`)):t.push(""),t.push("")):t.push(""),t.push(" "),r?(t.push(""),Ho(t,{size:11})):t.push(""),t.push("")):t.push(""),t.push(" "),p?(t.push(""),Nt(t,{on_click:T=>G(T,s)})):t.push(""),t.push("
    ");});}function No(e,o){e.component(t=>{let{value:n,display_value:s=null,datatype:i="str",row_idx:l,col_idx:r,col_style:u="",cell_style:c="",selection_classes:g="",is_editing:f=false,is_flash:d=false,is_static:a=false,show_menu_button:p=false,show_selection_buttons:_=false,is_first_column:C=false,is_solo:S=false,latex_delimiters:x,line_breaks:y=true,editable:k=true,max_chars:A=void 0,i18n:D,components:G={},is_dragging:P=false,wrap_text:Z=false,onmousedown:X,ondblclick:T,oncontextmenu:ge,onblur:le,on_menu_click:re,on_select_column:ve,on_select_row:we}=o;t.push(`
    `),Bt(t,{value:n,display_value:s,latex_delimiters:x,line_breaks:y,editable:k,is_static:a,edit:f,datatype:i,onblur:le,max_chars:A,i18n:D,components:G,show_selection_buttons:_,coords:[l,r],on_select_column:ve,on_select_row:we,is_dragging:P,wrap_text:Z,expanded:S}),t.push(" "),p?(t.push(""),Nt(t,{on_click:re})):t.push(""),t.push("
    ");});}function qo(e,o){e.push('');}function Uo(e,o){if(e==null)return e;if(o==="number"){const t=Number(e);return isNaN(t)?e:t}if(o==="bool"){if(typeof e=="boolean")return e;if(typeof e=="number")return e!==0;const t=String(e).toLowerCase();return t==="true"||t==="1"?true:t==="false"||t==="0"?false:e}if(o==="date"){const t=new Date(e);return isNaN(t.getTime())?e:t.toISOString()}return e}function ee(e,o){let{icon:t}=o;t=="add-column-right"?(e.push(""),e.push('')):(e.push(""),t=="add-column-left"?(e.push(""),e.push('')):(e.push(""),t=="add-row-above"?(e.push(""),e.push('')):(e.push(""),t=="add-row-below"?(e.push(""),e.push('')):(e.push(""),t=="delete-row"?(e.push(""),e.push('')):(e.push(""),t=="delete-column"?(e.push(""),e.push('')):(e.push(""),t=="sort-asc"?(e.push(""),e.push('')):(e.push(""),t=="sort-desc"?(e.push(""),e.push('')):(e.push(""),t=="clear-sort"?(e.push(""),e.push('')):(e.push(""),t=="filter"?(e.push(""),e.push('')):(e.push(""),t=="clear-filter"?(e.push(""),e.push('')):e.push(""),e.push("")),e.push("")),e.push("")),e.push("")),e.push("")),e.push("")),e.push("")),e.push("")),e.push("")),e.push("")),e.push("");}function Wo(e,o){e.component(t=>{let{x:n,y:s,on_add_row_above:i,on_add_row_below:l,on_add_column_left:r,on_add_column_right:u,row:c,col_count:g,row_count:f,on_delete_row:d,on_delete_col:a,can_delete_rows:p,can_delete_cols:_,on_sort:C=()=>{},on_clear_sort:S=()=>{},sort_direction:x=null,sort_priority:y=null,on_filter:k=()=>{},on_clear_filter:A=()=>{},filter_active:D=null,editable:G=true,i18n:P}=o,Z=null,X=c===-1,T=G&&f[1]==="dynamic",ge=G&&g[1]==="dynamic";t.push(' "),t.push(""),t.push("");});}function Ko(e$1,o){e$1.component(t=>{let{show_fullscreen_button:n=false,show_copy_button:s=false,show_search:i="none",fullscreen:l=false,on_copy:r,current_search_query:u=null,onfullscreen:c}=o,g=false,f;function d(){g=true,f&&clearTimeout(f),f=setTimeout(()=>{g=false;},2e3);}async function a(){await r(),d();}t.push('");});}function Xo(e,o){const[t,n]=e;return o.some(([s,i])=>s===t&&i===n)}function Jo(e,o){const[t,n]=e;if(!o.some(([u,c])=>u===t&&c===n))return "";const s=o.some(([u,c])=>u===t-1&&c===n),i=o.some(([u,c])=>u===t+1&&c===n),l=o.some(([u,c])=>u===t&&c===n-1),r=o.some(([u,c])=>u===t&&c===n+1);return `cell-selected${s?" no-top":""}${i?" no-bottom":""}${l?" no-left":""}${r?" no-right":""}`}var bt={},Ke={},Xe=34,ye=10,Je=13;function qt(e){return new Function("d","return {"+e.map(function(o,t){return JSON.stringify(o)+": d["+t+'] || ""'}).join(",")+"}")}function Zo(e,o){var t=qt(e);return function(n,s){return o(t(n),s,e)}}function It(e){var o=Object.create(null),t=[];return e.forEach(function(n){for(var s in n)s in o||t.push(o[s]=s);}),t}function K(e,o){var t=e+"",n=t.length;return n9999?"+"+K(e,6):K(e,4)}function $o(e){var o=e.getUTCHours(),t=e.getUTCMinutes(),n=e.getUTCSeconds(),s=e.getUTCMilliseconds();return isNaN(e)?"Invalid Date":Qo(e.getUTCFullYear())+"-"+K(e.getUTCMonth()+1,2)+"-"+K(e.getUTCDate(),2)+(s?"T"+K(o,2)+":"+K(t,2)+":"+K(n,2)+"."+K(s,3)+"Z":n?"T"+K(o,2)+":"+K(t,2)+":"+K(n,2)+"Z":t||o?"T"+K(o,2)+":"+K(t,2)+"Z":"")}function es(e){var o=new RegExp('["'+e+` +\r]`),t=e.charCodeAt(0);function n(f,d){var a,p,_=s(f,function(C,S){if(a)return a(C,S-1);p=C,a=d?Zo(C,d):qt(C);});return _.columns=p||[],_}function s(f,d){var a=[],p=f.length,_=0,C=0,S,x=p<=0,y=false;f.charCodeAt(p-1)===ye&&--p,f.charCodeAt(p-1)===Je&&--p;function k(){if(x)return Ke;if(y)return y=false,bt;var D,G=_,P;if(f.charCodeAt(G)===Xe){for(;_++=p?x=true:(P=f.charCodeAt(_++))===ye?y=true:P===Je&&(y=true,f.charCodeAt(_)===ye&&++_),f.slice(G+1,D-1).replace(/""/g,'"')}for(;_r.map((c,g)=>[u,g]))).reduce((r,[u,c])=>{r[u]=r[u]||{};const g=String(e[u][c].value);return r[u][c]=g.includes(",")||g.includes('"')||g.includes(` +`)?`"${g.replace(/"/g,'""')}"`:g,r},{}),s=Object.keys(n).sort((r,u)=>+r-+u);if(!s.length)return;const i=Object.keys(n[s[0]]).sort((r,u)=>+r-+u),l=s.map(r=>i.map(u=>n[r][u]||"").join(",")).join(` +`);try{await navigator.clipboard.writeText(l);}catch(r){throw new Error("Failed to copy to clipboard: "+r.message)}}function ns(e,o){return o.filter(t);function t(n){var s=-1;return e.split(` +`).every(i);function i(l){if(!l)return true;var r=l.split(n).length;return s<0&&(s=r),s===r&&r>1}}}function os(e){const o=atob(e.split(",")[1]),t=e.split(",")[0].split(":")[1].split(";")[0],n=new ArrayBuffer(o.length),s=new Uint8Array(n);for(let i=0;i{if(!i?.target?.result||typeof i.target.result!="string")return;const[l]=ns(i.target.result,[","," "]),[r,...u]=es(l).parseRows(i.target.result);o(r),t(u);}),s.readAsText(n);}function is(e,o,t){const{dtype:n,filter:s,value:i}=t,l=String(e.getValue(o)??""),r=i??"";if(n==="number"){const g=parseFloat(l),f=parseFloat(r);if(isNaN(g)||isNaN(f))return s==="Is empty"?l.trim()==="":s==="Is not empty"?l.trim()!=="":true;switch(s){case "=":return g===f;case "≠":return g!==f;case ">":return g>f;case "<":return g=f;case "≤":return g<=f;case "Is empty":return l.trim()==="";case "Is not empty":return l.trim()!=="";default:return true}}const u=l.toLowerCase(),c=r.toLowerCase();switch(s){case "Contains":return u.includes(c);case "Does not contain":return !u.includes(c);case "Starts with":return u.startsWith(c);case "Ends with":return u.endsWith(c);case "Is":return u===c;case "Is not":return u!==c;case "Is empty":return l.trim()==="";case "Is not empty":return l.trim()!=="";default:return true}}function ls(e){let o=[],t=0,n=0,s=[];function i(u,c){if(!u||u==="auto")return null;if(u.endsWith("%")){const f=parseFloat(u);return !isFinite(f)||c<=0?null:f/100*c}if(u.endsWith("px")){const f=parseFloat(u);return isFinite(f)?f:null}const g=parseFloat(u);return isFinite(g)?g:null}let l=(()=>{if(!e.show_row_numbers())return 0;const u=e.header_row_el();return u?u.querySelector(".row-number-header")?.getBoundingClientRect().width??48:0})();function r(u){if(o[u]!==void 0)return `width: ${o[u]}px; flex: 0 0 ${o[u]}px;`;const c=i(e.column_widths()[u],e.viewport_width());return c!=null?`width: ${c}px; flex: 0 0 ${c}px;`:"width: 150px; flex: 0 0 150px;"}return {get col_widths(){return o},get col_lefts(){return s},get total_header_width(){return t},get header_height(){return n},get row_num_width(){return l},get_col_style:r}}function rs(e,o){e.component(t=>{let{datatype:n,label:s=null,show_label:i=true,headers:l=[],values:r=[],col_count:u,row_count:c,latex_delimiters:g,components:f={},editable:d=true,wrap:a=false,root:p,i18n:_,max_height:C=500,line_breaks:S=true,column_widths:x=[],show_row_numbers:y=false,upload:k,stream_handler:A,buttons:D=null,value_is_output:G=false,max_chars:P=void 0,show_search:Z="none",pinned_columns:X=0,static_columns:T=[],fullscreen:ge=false,display_value:le=null,styling:re=null,onchange:ve,oninput:we,onselect:pe,onedit:Se,onsearch:it,onfullscreen:I}=o,U=(r??[]).map((h,m)=>{const w={_index:m};return (h??[]).forEach((R,b)=>{const z=Array.isArray(n)?n[b]:n;w[`col_${b}`]=Uo(R,z);}),w}),se=(()=>{let h=l??[];return u[1]==="fixed"&&h.length`${w+h.length}`)]),h.length||(h=Array(u[0]).fill(null).map((m,w)=>`${w}`)),h.map(m=>m??"")})(),fe=se.map((h,m)=>({id:`col_${m}`,accessorKey:`col_${m}`,header:h,size:150,minSize:45,filterFn:is,meta:{colIndex:m,datatype:Array.isArray(n)?n[m]:n,isStatic:T.includes(m)||T.includes(h),isPinned:mmh.id)};const lt=Fo({get data(){return U},get columns(){return fe},state:{get sorting(){return J},get columnFilters(){return ne},get globalFilter(){return Me},get columnPinning(){return Ut}},onSortingChange:h=>{J=typeof h=="function"?h(J):h;},onColumnFiltersChange:h=>{ne=typeof h=="function"?h(ne):h;},onGlobalFilterChange:h=>{Me=typeof h=="function"?h(Me):h;},getCoreRowModel:wo(),getSortedRowModel:yo(),getFilteredRowModel:xo(),globalFilterFn:"includesString",enableSorting:true,enableMultiSort:true,maxMultiSortColCount:3});let me=lt.getRowModel().rows,rt=lt.getHeaderGroups(),Wt;const ut=Oo({get count(){return me.length},getScrollElement:()=>Wt,estimateSize:()=>35,overscan:10,measureElement:(h,m,w)=>{const R=h.getBoundingClientRect().height;if(R>0)return R;const b=h.getAttribute("data-index");if(b!=null){const z=w.itemSizeCache?.get(Number(b));if(typeof z=="number")return z}return 35}});let Kt=ut.virtualItems(),Xt=ut.totalSize(),L=[],$=false,ue=false,Ce=false,be=false,H=null,V=null,Ae=false,at=false,ct=false,dt;function De(h){return Array.isArray(n)?n[h]??"str":n}const gt=[2.2,1.7,1.4,1.2,1.1,1.05];function Jt(h){const m=h.match(/^\s*(#{1,6})\s+(.+)/);if(m){const w=m[1].length;return m[2].replace(/[*_`[\]()]/g,"").length*gt[w-1]}return h.replace(/[*_`#[\]()]/g,"").length}function Yt(h){const m=h.replace(/<[^>]+>/g,"").length,w=h.match(/0&&m!=="image"&&h.length>P?h.slice(0,P)+"...":h}function Qt$1(){return (rt[0]?.headers??[]).map(m=>{const w=m.column.columnDef.meta?.colIndex??0,R=De(w),b=`col_${w}`;if(R==="bool")return {val:"false",col_idx:w,dtype:R};const z=R==="markdown"?Jt:R==="html"?Yt:E=>E.length;let O="",j=-1;for(const E of me){const oe=E.original._index,B=d?E.original[b]:le?.[oe]?.[w]??r?.[oe]?.[w];if(B==null)continue;const N=Zt(String(B),R),ae=z(N);ae>j&&(j=ae,O=N);}return {val:O,col_idx:w,dtype:R}})}function $t(h,m){return le?.[h]?.[m]!==void 0?le[h][m]:String(r?.[h]?.[m]??"")}function en(h,m){return re?.[h]?.[m]??""}function he(h,m){ve?.({data:h??r,headers:m??se,metadata:null}),G||we?.(),G=false;}function tn(h,m,w){const R=!d||T.includes(w)||T.includes(se[w]);R||h.preventDefault(),h.stopPropagation();const b=[m,w];if(h.shiftKey&&$){const[z,O]=$,[j,E]=b,oe=[];for(let B=Math.min(z,j);B<=Math.max(z,j);B++)for(let N=Math.min(O,E);N<=Math.max(O,E);N++)oe.push([B,N]);L=oe;}else h.metaKey||h.ctrlKey?L=L.some(([O,j])=>O===m&&j===w)?L.filter(([O,j])=>!(O===m&&j===w)):[...L,b]:L=[b];$=b,Ce=false,be=false,H=null,V=null,ue=false,pe?.({index:b,value:r?.[m]?.[w],row_value:r?.[m]??[],col_value:r?.map(z=>z[w])??[]}),R||tick().then(()=>dt?.focus());}function nn(h,m,w){!d||T.includes(w)||T.includes(se[w])||(h.preventDefault(),h.stopPropagation(),ue=[m,w]);}function on(h){const{coords:m}=h,w=h.blur_event.target;if(!w||w.value===void 0)return;const[R,b]=m,z=r?.[R]?.[b],O=w.value;if(String(z)!==String(O)){const j=r.map(E=>[...E]);j[R][b]=O,r=j,Se?.({index:[R,b],value:O,previous_value:String(z??"")}),he(j);}}function sn(h,m){h.target instanceof HTMLAnchorElement||(h.preventDefault(),h.stopPropagation(),d&&(ue=false,$=false,L=[],H=null,V=null,be=m,Ce=d?m:false));}function ln(h){["Escape","Enter","Tab"].includes(h)&&(Ce=false);}function rn(h,m){if(h.stopPropagation(),V?.col===m)V=null;else {const w=h.target.closest("th");if(w){const R=w.getBoundingClientRect();V={col:m,x:R.right,y:R.bottom};}}}function un(h,m){const w=`col_${h}`,R=m==="desc",b=J.findIndex(z=>z.id===w);b>=0&&J[b].desc===R?J=J.filter(z=>z.id!==w):J=[...J.filter(z=>z.id!==w),{id:w,desc:R}].slice(-3);}function an(){J=[];}function cn(h,m,w,R){const b=`col_${h}`;ne.findIndex(O=>O.id===b)>=0?ne=ne.filter(O=>O.id!==b):ne=[...ne,{id:b,value:{dtype:m,filter:w,value:R}}];}function dn(){ne=[];}function gn(h){if(c[1]!=="dynamic")return;const m=r[0]?.length||se.length||1,w=Array(m).fill(""),R=[...r];h!==void 0?R.splice(h,0,w):R.push(w),r=R,he(R),$=[h??R.length-1,0];}function fn(h){if(u[1]!=="dynamic")return;const m=[...l??[],`Header ${(l?.length??0)+1}`],w=r.map(R=>[...R,""]);h!==void 0&&(m.splice(h,0,m.pop()),w.forEach(R=>R.splice(h,0,R.pop()))),r=w,l=m,he(w,m);}function hn(h){r.length<=1||(r=[...r.slice(0,h),...r.slice(h+1)],he(r),H=null,V=null);}function pn(h){u[1]==="dynamic"&&((r[0]?.length??0)<=1||(r=r.map(m=>[...m.slice(0,h),...m.slice(h+1)]),l=[...(l??[]).slice(0,h),...(l??[]).slice(h+1)],he(r,l),H=null,V=null,$=false,L=[],ue=false));}function ft(h,m){gn(m==="above"?h:h+1),H=null;}function ht(h,m){fn(m==="left"?h:h+1),H=null;}function mn(h,m){const w=r.map(R=>{const b=[...R];return b[h]=m,b});r=w,he(w);}function _n(h){if(!r.length)return "unchecked";let m=0;for(const w of r){const R=w[h];(R===true||R==="true"||R==="True")&&m++;}return m===0?"unchecked":m===r.length?"checked":"indeterminate"}async function vn(){const h=r.map(w=>w.map((R,b)=>({id:`${b}`,value:R}))),m=L.length>0?L:null;await ts(h,m),Ae=true,setTimeout(()=>Ae=false,800);}function mt(h,m,w){if(h.stopPropagation(),H?.row===m&&H.col===w)H=null;else {const R=h.target.closest(".body-cell, td");if(R){const b=R.getBoundingClientRect();H={row:m,col:w,x:b.right,y:b.bottom};}}}function wn(h){ss(typeof h=="string"?h:h?.data??"",m=>(l=m.map(w=>w??""),l.map((w,R)=>({id:`h_${R}`,value:w}))),m=>{r=m,he(m,l);});}let Sn,Cn,_t=0;const ze=ls({header_row_el:()=>Sn,header_table_el:()=>Cn,resolved_headers:()=>se,row_data:()=>U,show_row_numbers:()=>y,column_widths:()=>x,viewport_width:()=>_t,on_resize:void 0});let Rn=H!==null||V!==null;$!==false&&$[0];function Ie(h){const m=`col_${h}`,w=J.findIndex(R=>R.id===m);return w===-1?{direction:null,priority:null}:{direction:J[w].desc?"desc":"asc",priority:w+1}}function vt(h){return ne.some(m=>m.id===`col_${h}`)}let Oe=true,Le;function xn(h){h.push(``),s&&s.length!==0&&i||(D===null||D.includes("fullscreen"))||(D===null||D.includes("copy"))||Z!=="none"?(h.push(""),h.push('
    '),s&&s.length!==0&&i?(h.push(""),h.push(`

    ${escape_html(s)}

    `)):h.push(""),h.push(" "),Ko(h,{show_fullscreen_button:D===null?true:D.includes("fullscreen"),fullscreen:ge,on_copy:vn,show_copy_button:D===null?true:D.includes("copy"),show_search:Z,onfullscreen:I,current_search_query:Me||null}),h.push("
    ")):h.push(""),h.push(` `),ee$1(h,{upload:k,stream_handler:A,flex:false,center:false,boundedheight:false,disable_click:true,root:p,onload:wn,aria_label:_("dataframe.drop_to_upload"),get dragging(){return ct},set dragging(m){ct=m,Oe=false;},children:m=>{m.push(``),s&&s.length!==0?(m.push(""),m.push(`${escape_html(s)}`)):m.push(""),m.push(' '),y?(m.push(""),m.push('')):m.push(""),m.push("");const w=ensure_array_like(rt);for(let b=0,z=w.length;b");const j=ensure_array_like(O.headers);for(let E=0,oe=j.length;E1,is_filtered:vt(N),show_menu_button:u[1]==="dynamic",is_first_column:N===0&&!y,latex_delimiters:g,line_breaks:S,editable:d,max_chars:P,i18n:_,wrap_text:a,onclick:sn,on_menu_click:rn,on_end_edit:ln,on_select_all:mn});}m.push("");}if(m.push(''),me.length>0){m.push("");const b=Qt$1();m.push(''),y?(m.push(""),m.push(``)):m.push(""),m.push("");const z=ensure_array_like(b);for(let O=0,j=z.length;O
    '),E.dtype==="markdown"?(m.push(""),Qt(m,{message:E.val,latex_delimiters:g,line_breaks:S,chatbot:false})):(m.push(""),E.dtype==="html"?(m.push(""),m.push(`${html(E.val)}`)):(m.push(""),m.push(`${escape_html(E.val)}`)),m.push("")),m.push("
    ");}m.push("
    ");}else m.push("");m.push(`
     
    `);const R=ensure_array_like(Kt);for(let b=0,z=R.length;b"),m.push(`B===E)?" z-index: 3;":"")}`)}>`),y?(m.push(""),m.push(`
    ${escape_html(E+1)}
    `)):m.push(""),m.push(" ");const oe=ensure_array_like(j.getVisibleCells());for(let B=0,N=oe.length;Btn(Q,E,W),ondblclick:Q=>nn(Q,E,W),oncontextmenu:Q=>{const He=!!ae.column.columnDef.meta?.isStatic;!d||He||(Q.preventDefault(),mt(Q,E,W));},onblur:on,on_menu_click:Q=>mt(Q,E,W),on_select_column:Q=>{L=me.map((He,je)=>[je,Q]),$=L[0];},on_select_row:Q=>{L=se.map((He,je)=>[Q,je]),$=L[0];}});}m.push("
    ");}else m.push("");m.push("");}m.push("");},$$slots:{default:true}}),h.push(" "),h.push(""),h.push(" "),H||V?(h.push(""),Wo(h,{x:H?.x??V?.x??0,y:H?.y??V?.y??0,row:V?-1:H?.row??0,col_count:u,row_count:c,on_add_row_above:()=>ft(H?.row??-1,"above"),on_add_row_below:()=>ft(H?.row??-1,"below"),on_add_column_left:()=>ht(H?.col??V?.col??-1,"left"),on_add_column_right:()=>ht(H?.col??V?.col??-1,"right"),on_delete_row:()=>hn(H?.row??-1),on_delete_col:()=>pn(H?.col??V?.col??-1),editable:d,can_delete_rows:!V&&r.length>1&&d,can_delete_cols:r.length>0&&(r[0]?.length??0)>1&&d,i18n:_,on_sort:V?m=>{un(V.col,m),V=null;}:void 0,on_clear_sort:V?()=>{an(),V=null;}:void 0,sort_direction:V?Ie(V.col).direction:null,sort_priority:V?Ie(V.col).priority:null,on_filter:V?(m,w,R)=>{cn(V.col,m,w,R),V=null;}:void 0,on_clear_filter:V?()=>{dn(),V=null;}:void 0,filter_active:V?vt(V.col):null})):h.push(""),h.push(" "),r.length===0&&d&&c[1]==="dynamic"?(h.push(""),qo(h)):h.push(""),h.push("");}do Oe=true,Le=t.copy(),xn(Le);while(!Oe);t.subsume(Le),bind_props(o,{headers:l,values:r,value_is_output:G});});}function Ms(e,o){e.component(t=>{let{$$slots:n,$$events:s,...i}=o;const l=new $(i);let r=l.props.fullscreen??false,u=(()=>{const p=l.props.datatype;if(!Array.isArray(p))return p;const _=l.props.headers,C=l.props.value?.headers;if(!_||!C)return p;const S=new Map;for(let x=0;xS.get(x)??p[y]??"str")})(),c=l.props.value?JSON.stringify(l.props.value):null;function g(p){l.props.value=p;const _=JSON.stringify(p);_!==c&&(c=_,l.dispatch("change",p));}function f(){l.dispatch("input");}function d(p){l.dispatch("select",p);}function a(p){l.dispatch("edit",p);}G(t,{visible:l.shared.visible,elem_id:l.shared.elem_id,elem_classes:l.shared.elem_classes,scale:l.shared.scale,min_width:l.shared.min_width,padding:false,container:false,fullscreen:r,children:p=>{W(p,spread_props([{autoscroll:l.shared.autoscroll,i18n:l.i18n},l.shared.loading_status])),p.push(" "),rs(p,{headers:l.props.value?.headers??[],values:l.props.value?.data??[],display_value:l.props.value?.metadata?.display_value??null,styling:l.props.value?.metadata?.styling??null,col_count:l.props.col_count,row_count:l.props.row_count,label:l.shared.label,show_label:l.shared.show_label,wrap:l.props.wrap,datatype:u,latex_delimiters:l.props.latex_delimiters,max_height:l.props.max_height,editable:l.shared.interactive??true,line_breaks:l.props.line_breaks,column_widths:l.props.column_widths??[],root:l.shared.root,i18n:l.i18n,upload:l.shared.client?.upload,stream_handler:l.shared.client?.stream,buttons:l.props.buttons,max_chars:l.props.max_chars,show_row_numbers:l.props.show_row_numbers,show_search:l.props.show_search,pinned_columns:l.props.pinned_columns,static_columns:l.props.static_columns??[],fullscreen:r,onfullscreen:()=>{r=!r;},onchange:g,oninput:f,onselect:d,onedit:a}),p.push("");},$$slots:{default:true}});});} + +export { rs as BaseDataFrame, Ms as default }; +//# sourceMappingURL=Index55-BAtPzDMY.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index56-OtsFTROQ.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index56-OtsFTROQ.js new file mode 100644 index 0000000000000000000000000000000000000000..3d6c6c38d6cb5902afa42a041d1285c5f6045bf5 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index56-OtsFTROQ.js @@ -0,0 +1,13 @@ +import './async-D55cHugf.js'; +import { o as on, u as us } from './2-BLdXJizP.js'; +import { r } from './_commonjs-dynamic-modules-DX_xVkta.js'; +import { $ } from './utils.svelte-B2py64Fz.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; +import './clone-Yk88IHKV.js'; + +var l0={exports:{}},E0={exports:{}},Er=E0.exports,lx;function L(){return lx||(lx=1,(function(R,q){(function(h,a){R.exports=a();})(Er,function(){var h=h||(function(a,D){var A;if(typeof window<"u"&&window.crypto&&(A=window.crypto),typeof self<"u"&&self.crypto&&(A=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(A=globalThis.crypto),!A&&typeof window<"u"&&window.msCrypto&&(A=window.msCrypto),!A&&typeof us<"u"&&us.crypto&&(A=us.crypto),!A&&typeof r=="function")try{A=require("crypto");}catch{}var y=function(){if(A){if(typeof A.getRandomValues=="function")try{return A.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof A.randomBytes=="function")try{return A.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},d=Object.create||(function(){function t(){}return function(n){var i;return t.prototype=n,i=new t,t.prototype=null,i}})(),u={},x=u.lib={},e=x.Base=(function(){return {extend:function(t){var n=d(this);return t&&n.mixIn(t),(!n.hasOwnProperty("init")||this.init===n.init)&&(n.init=function(){n.$super.init.apply(this,arguments);}),n.init.prototype=n,n.$super=this,n},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var n in t)t.hasOwnProperty(n)&&(this[n]=t[n]);t.hasOwnProperty("toString")&&(this.toString=t.toString);},clone:function(){return this.init.prototype.extend(this)}}})(),B=x.WordArray=e.extend({init:function(t,n){t=this.words=t||[],n!=D?this.sigBytes=n:this.sigBytes=t.length*4;},toString:function(t){return (t||f).stringify(this)},concat:function(t){var n=this.words,i=t.words,E=this.sigBytes,l=t.sigBytes;if(this.clamp(),E%4)for(var p=0;p>>2]>>>24-p%4*8&255;n[E+p>>>2]|=_<<24-(E+p)%4*8;}else for(var S=0;S>>2]=i[S>>>2];return this.sigBytes+=l,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=a.ceil(n/4);},clone:function(){var t=e.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var n=[],i=0;i>>2]>>>24-l%4*8&255;E.push((p>>>4).toString(16)),E.push((p&15).toString(16));}return E.join("")},parse:function(t){for(var n=t.length,i=[],E=0;E>>3]|=parseInt(t.substr(E,2),16)<<24-E%8*4;return new B.init(i,n/2)}},o=r$1.Latin1={stringify:function(t){for(var n=t.words,i=t.sigBytes,E=[],l=0;l>>2]>>>24-l%4*8&255;E.push(String.fromCharCode(p));}return E.join("")},parse:function(t){for(var n=t.length,i=[],E=0;E>>2]|=(t.charCodeAt(E)&255)<<24-E%4*8;return new B.init(i,n)}},c=r$1.Utf8={stringify:function(t){try{return decodeURIComponent(escape(o.stringify(t)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(t){return o.parse(unescape(encodeURIComponent(t)))}},s=x.BufferedBlockAlgorithm=e.extend({reset:function(){this._data=new B.init,this._nDataBytes=0;},_append:function(t){typeof t=="string"&&(t=c.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes;},_process:function(t){var n,i=this._data,E=i.words,l=i.sigBytes,p=this.blockSize,_=p*4,S=l/_;t?S=a.ceil(S):S=a.max((S|0)-this._minBufferSize,0);var v=S*p,F=a.min(v*4,l);if(v){for(var g=0;g>>2]|=u[B]<<24-B%4*8;y.call(this,e,x);}else y.apply(this,arguments);};d.prototype=A;}})(),h.lib.WordArray});})(p0)),p0.exports}var F0={exports:{}},Dr=F0.exports,px;function _r(){return px||(px=1,(function(R,q){(function(h,a){R.exports=a(L());})(Dr,function(h){return (function(){var a=h,D=a.lib,A=D.WordArray,y=a.enc;y.Utf16=y.Utf16BE={stringify:function(u){for(var x=u.words,e=u.sigBytes,B=[],r=0;r>>2]>>>16-r%4*8&65535;B.push(String.fromCharCode(f));}return B.join("")},parse:function(u){for(var x=u.length,e=[],B=0;B>>1]|=u.charCodeAt(B)<<16-B%2*16;return A.create(e,x*2)}},y.Utf16LE={stringify:function(u){for(var x=u.words,e=u.sigBytes,B=[],r=0;r>>2]>>>16-r%4*8&65535);B.push(String.fromCharCode(f));}return B.join("")},parse:function(u){for(var x=u.length,e=[],B=0;B>>1]|=d(u.charCodeAt(B)<<16-B%2*16);return A.create(e,x*2)}};function d(u){return u<<8&4278255360|u>>>8&16711935}})(),h.enc.Utf16});})(F0)),F0.exports}var D0={exports:{}},br=D0.exports,Fx;function r0(){return Fx||(Fx=1,(function(R,q){(function(h,a){R.exports=a(L());})(br,function(h){return (function(){var a=h,D=a.lib,A=D.WordArray,y=a.enc;y.Base64={stringify:function(u){var x=u.words,e=u.sigBytes,B=this._map;u.clamp();for(var r=[],f=0;f>>2]>>>24-f%4*8&255,c=x[f+1>>>2]>>>24-(f+1)%4*8&255,s=x[f+2>>>2]>>>24-(f+2)%4*8&255,C=o<<16|c<<8|s,t=0;t<4&&f+t*.75>>6*(3-t)&63));var n=B.charAt(64);if(n)for(;r.length%4;)r.push(n);return r.join("")},parse:function(u){var x=u.length,e=this._map,B=this._reverseMap;if(!B){B=this._reverseMap=[];for(var r=0;r>>6-f%4*2,s=o|c;B[r>>>2]|=s<<24-r%4*8,r++;}return A.create(B,r)}})(),h.enc.Base64});})(D0)),D0.exports}var _0={exports:{}},yr=_0.exports,Dx;function gr(){return Dx||(Dx=1,(function(R,q){(function(h,a){R.exports=a(L());})(yr,function(h){return (function(){var a=h,D=a.lib,A=D.WordArray,y=a.enc;y.Base64url={stringify:function(u,x){x===void 0&&(x=true);var e=u.words,B=u.sigBytes,r=x?this._safe_map:this._map;u.clamp();for(var f=[],o=0;o>>2]>>>24-o%4*8&255,s=e[o+1>>>2]>>>24-(o+1)%4*8&255,C=e[o+2>>>2]>>>24-(o+2)%4*8&255,t=c<<16|s<<8|C,n=0;n<4&&o+n*.75>>6*(3-n)&63));var i=r.charAt(64);if(i)for(;f.length%4;)f.push(i);return f.join("")},parse:function(u,x){x===void 0&&(x=true);var e=u.length,B=x?this._safe_map:this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var f=0;f>>6-f%4*2,s=o|c;B[r>>>2]|=s<<24-r%4*8,r++;}return A.create(B,r)}})(),h.enc.Base64url});})(_0)),_0.exports}var b0={exports:{}},kr=b0.exports,_x;function e0(){return _x||(_x=1,(function(R,q){(function(h,a){R.exports=a(L());})(kr,function(h){return (function(a){var D=h,A=D.lib,y=A.WordArray,d=A.Hasher,u=D.algo,x=[];(function(){for(var c=0;c<64;c++)x[c]=a.abs(a.sin(c+1))*4294967296|0;})();var e=u.MD5=d.extend({_doReset:function(){this._hash=new y.init([1732584193,4023233417,2562383102,271733878]);},_doProcessBlock:function(c,s){for(var C=0;C<16;C++){var t=s+C,n=c[t];c[t]=(n<<8|n>>>24)&16711935|(n<<24|n>>>8)&4278255360;}var i=this._hash.words,E=c[s+0],l=c[s+1],p=c[s+2],_=c[s+3],S=c[s+4],v=c[s+5],F=c[s+6],g=c[s+7],k=c[s+8],z=c[s+9],$=c[s+10],P=c[s+11],K=c[s+12],I=c[s+13],N=c[s+14],T=c[s+15],b=i[0],w=i[1],m=i[2],H=i[3];b=B(b,w,m,H,E,7,x[0]),H=B(H,b,w,m,l,12,x[1]),m=B(m,H,b,w,p,17,x[2]),w=B(w,m,H,b,_,22,x[3]),b=B(b,w,m,H,S,7,x[4]),H=B(H,b,w,m,v,12,x[5]),m=B(m,H,b,w,F,17,x[6]),w=B(w,m,H,b,g,22,x[7]),b=B(b,w,m,H,k,7,x[8]),H=B(H,b,w,m,z,12,x[9]),m=B(m,H,b,w,$,17,x[10]),w=B(w,m,H,b,P,22,x[11]),b=B(b,w,m,H,K,7,x[12]),H=B(H,b,w,m,I,12,x[13]),m=B(m,H,b,w,N,17,x[14]),w=B(w,m,H,b,T,22,x[15]),b=r(b,w,m,H,l,5,x[16]),H=r(H,b,w,m,F,9,x[17]),m=r(m,H,b,w,P,14,x[18]),w=r(w,m,H,b,E,20,x[19]),b=r(b,w,m,H,v,5,x[20]),H=r(H,b,w,m,$,9,x[21]),m=r(m,H,b,w,T,14,x[22]),w=r(w,m,H,b,S,20,x[23]),b=r(b,w,m,H,z,5,x[24]),H=r(H,b,w,m,N,9,x[25]),m=r(m,H,b,w,_,14,x[26]),w=r(w,m,H,b,k,20,x[27]),b=r(b,w,m,H,I,5,x[28]),H=r(H,b,w,m,p,9,x[29]),m=r(m,H,b,w,g,14,x[30]),w=r(w,m,H,b,K,20,x[31]),b=f(b,w,m,H,v,4,x[32]),H=f(H,b,w,m,k,11,x[33]),m=f(m,H,b,w,P,16,x[34]),w=f(w,m,H,b,N,23,x[35]),b=f(b,w,m,H,l,4,x[36]),H=f(H,b,w,m,S,11,x[37]),m=f(m,H,b,w,g,16,x[38]),w=f(w,m,H,b,$,23,x[39]),b=f(b,w,m,H,I,4,x[40]),H=f(H,b,w,m,E,11,x[41]),m=f(m,H,b,w,_,16,x[42]),w=f(w,m,H,b,F,23,x[43]),b=f(b,w,m,H,z,4,x[44]),H=f(H,b,w,m,K,11,x[45]),m=f(m,H,b,w,T,16,x[46]),w=f(w,m,H,b,p,23,x[47]),b=o(b,w,m,H,E,6,x[48]),H=o(H,b,w,m,g,10,x[49]),m=o(m,H,b,w,N,15,x[50]),w=o(w,m,H,b,v,21,x[51]),b=o(b,w,m,H,K,6,x[52]),H=o(H,b,w,m,_,10,x[53]),m=o(m,H,b,w,$,15,x[54]),w=o(w,m,H,b,l,21,x[55]),b=o(b,w,m,H,k,6,x[56]),H=o(H,b,w,m,T,10,x[57]),m=o(m,H,b,w,F,15,x[58]),w=o(w,m,H,b,I,21,x[59]),b=o(b,w,m,H,S,6,x[60]),H=o(H,b,w,m,P,10,x[61]),m=o(m,H,b,w,p,15,x[62]),w=o(w,m,H,b,z,21,x[63]),i[0]=i[0]+b|0,i[1]=i[1]+w|0,i[2]=i[2]+m|0,i[3]=i[3]+H|0;},_doFinalize:function(){var c=this._data,s=c.words,C=this._nDataBytes*8,t=c.sigBytes*8;s[t>>>5]|=128<<24-t%32;var n=a.floor(C/4294967296),i=C;s[(t+64>>>9<<4)+15]=(n<<8|n>>>24)&16711935|(n<<24|n>>>8)&4278255360,s[(t+64>>>9<<4)+14]=(i<<8|i>>>24)&16711935|(i<<24|i>>>8)&4278255360,c.sigBytes=(s.length+1)*4,this._process();for(var E=this._hash,l=E.words,p=0;p<4;p++){var _=l[p];l[p]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360;}return E},clone:function(){var c=d.clone.call(this);return c._hash=this._hash.clone(),c}});function B(c,s,C,t,n,i,E){var l=c+(s&C|~s&t)+n+E;return (l<>>32-i)+s}function r(c,s,C,t,n,i,E){var l=c+(s&t|C&~t)+n+E;return (l<>>32-i)+s}function f(c,s,C,t,n,i,E){var l=c+(s^C^t)+n+E;return (l<>>32-i)+s}function o(c,s,C,t,n,i,E){var l=c+(C^(s|~t))+n+E;return (l<>>32-i)+s}D.MD5=d._createHelper(e),D.HmacMD5=d._createHmacHelper(e);})(Math),h.MD5});})(b0)),b0.exports}var y0={exports:{}},Hr=y0.exports,bx;function Jx(){return bx||(bx=1,(function(R,q){(function(h,a){R.exports=a(L());})(Hr,function(h){return (function(){var a=h,D=a.lib,A=D.WordArray,y=D.Hasher,d=a.algo,u=[],x=d.SHA1=y.extend({_doReset:function(){this._hash=new A.init([1732584193,4023233417,2562383102,271733878,3285377520]);},_doProcessBlock:function(e,B){for(var r=this._hash.words,f=r[0],o=r[1],c=r[2],s=r[3],C=r[4],t=0;t<80;t++){if(t<16)u[t]=e[B+t]|0;else {var n=u[t-3]^u[t-8]^u[t-14]^u[t-16];u[t]=n<<1|n>>>31;}var i=(f<<5|f>>>27)+C+u[t];t<20?i+=(o&c|~o&s)+1518500249:t<40?i+=(o^c^s)+1859775393:t<60?i+=(o&c|o&s|c&s)-1894007588:i+=(o^c^s)-899497514,C=s,s=c,c=o<<30|o>>>2,o=f,f=i;}r[0]=r[0]+f|0,r[1]=r[1]+o|0,r[2]=r[2]+c|0,r[3]=r[3]+s|0,r[4]=r[4]+C|0;},_doFinalize:function(){var e=this._data,B=e.words,r=this._nDataBytes*8,f=e.sigBytes*8;return B[f>>>5]|=128<<24-f%32,B[(f+64>>>9<<4)+14]=Math.floor(r/4294967296),B[(f+64>>>9<<4)+15]=r,e.sigBytes=B.length*4,this._process(),this._hash},clone:function(){var e=y.clone.call(this);return e._hash=this._hash.clone(),e}});a.SHA1=y._createHelper(x),a.HmacSHA1=y._createHmacHelper(x);})(),h.SHA1});})(y0)),y0.exports}var g0={exports:{}},wr=g0.exports,yx;function tx(){return yx||(yx=1,(function(R,q){(function(h,a){R.exports=a(L());})(wr,function(h){return (function(a){var D=h,A=D.lib,y=A.WordArray,d=A.Hasher,u=D.algo,x=[],e=[];(function(){function f(C){for(var t=a.sqrt(C),n=2;n<=t;n++)if(!(C%n))return false;return true}function o(C){return (C-(C|0))*4294967296|0}for(var c=2,s=0;s<64;)f(c)&&(s<8&&(x[s]=o(a.pow(c,1/2))),e[s]=o(a.pow(c,1/3)),s++),c++;})();var B=[],r=u.SHA256=d.extend({_doReset:function(){this._hash=new y.init(x.slice(0));},_doProcessBlock:function(f,o){for(var c=this._hash.words,s=c[0],C=c[1],t=c[2],n=c[3],i=c[4],E=c[5],l=c[6],p=c[7],_=0;_<64;_++){if(_<16)B[_]=f[o+_]|0;else {var S=B[_-15],v=(S<<25|S>>>7)^(S<<14|S>>>18)^S>>>3,F=B[_-2],g=(F<<15|F>>>17)^(F<<13|F>>>19)^F>>>10;B[_]=v+B[_-7]+g+B[_-16];}var k=i&E^~i&l,z=s&C^s&t^C&t,$=(s<<30|s>>>2)^(s<<19|s>>>13)^(s<<10|s>>>22),P=(i<<26|i>>>6)^(i<<21|i>>>11)^(i<<7|i>>>25),K=p+P+k+e[_]+B[_],I=$+z;p=l,l=E,E=i,i=n+K|0,n=t,t=C,C=s,s=K+I|0;}c[0]=c[0]+s|0,c[1]=c[1]+C|0,c[2]=c[2]+t|0,c[3]=c[3]+n|0,c[4]=c[4]+i|0,c[5]=c[5]+E|0,c[6]=c[6]+l|0,c[7]=c[7]+p|0;},_doFinalize:function(){var f=this._data,o=f.words,c=this._nDataBytes*8,s=f.sigBytes*8;return o[s>>>5]|=128<<24-s%32,o[(s+64>>>9<<4)+14]=a.floor(c/4294967296),o[(s+64>>>9<<4)+15]=c,f.sigBytes=o.length*4,this._process(),this._hash},clone:function(){var f=d.clone.call(this);return f._hash=this._hash.clone(),f}});D.SHA256=d._createHelper(r),D.HmacSHA256=d._createHmacHelper(r);})(Math),h.SHA256});})(g0)),g0.exports}var k0={exports:{}},mr=k0.exports,gx;function Sr(){return gx||(gx=1,(function(R,q){(function(h,a,D){R.exports=a(L(),tx());})(mr,function(h){return (function(){var a=h,D=a.lib,A=D.WordArray,y=a.algo,d=y.SHA256,u=y.SHA224=d.extend({_doReset:function(){this._hash=new A.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]);},_doFinalize:function(){var x=d._doFinalize.call(this);return x.sigBytes-=4,x}});a.SHA224=d._createHelper(u),a.HmacSHA224=d._createHmacHelper(u);})(),h.SHA224});})(k0)),k0.exports}var H0={exports:{}},Rr=H0.exports,kx;function xr(){return kx||(kx=1,(function(R,q){(function(h,a,D){R.exports=a(L(),J0());})(Rr,function(h){return (function(){var a=h,D=a.lib,A=D.Hasher,y=a.x64,d=y.Word,u=y.WordArray,x=a.algo;function e(){return d.create.apply(d,arguments)}var B=[e(1116352408,3609767458),e(1899447441,602891725),e(3049323471,3964484399),e(3921009573,2173295548),e(961987163,4081628472),e(1508970993,3053834265),e(2453635748,2937671579),e(2870763221,3664609560),e(3624381080,2734883394),e(310598401,1164996542),e(607225278,1323610764),e(1426881987,3590304994),e(1925078388,4068182383),e(2162078206,991336113),e(2614888103,633803317),e(3248222580,3479774868),e(3835390401,2666613458),e(4022224774,944711139),e(264347078,2341262773),e(604807628,2007800933),e(770255983,1495990901),e(1249150122,1856431235),e(1555081692,3175218132),e(1996064986,2198950837),e(2554220882,3999719339),e(2821834349,766784016),e(2952996808,2566594879),e(3210313671,3203337956),e(3336571891,1034457026),e(3584528711,2466948901),e(113926993,3758326383),e(338241895,168717936),e(666307205,1188179964),e(773529912,1546045734),e(1294757372,1522805485),e(1396182291,2643833823),e(1695183700,2343527390),e(1986661051,1014477480),e(2177026350,1206759142),e(2456956037,344077627),e(2730485921,1290863460),e(2820302411,3158454273),e(3259730800,3505952657),e(3345764771,106217008),e(3516065817,3606008344),e(3600352804,1432725776),e(4094571909,1467031594),e(275423344,851169720),e(430227734,3100823752),e(506948616,1363258195),e(659060556,3750685593),e(883997877,3785050280),e(958139571,3318307427),e(1322822218,3812723403),e(1537002063,2003034995),e(1747873779,3602036899),e(1955562222,1575990012),e(2024104815,1125592928),e(2227730452,2716904306),e(2361852424,442776044),e(2428436474,593698344),e(2756734187,3733110249),e(3204031479,2999351573),e(3329325298,3815920427),e(3391569614,3928383900),e(3515267271,566280711),e(3940187606,3454069534),e(4118630271,4000239992),e(116418474,1914138554),e(174292421,2731055270),e(289380356,3203993006),e(460393269,320620315),e(685471733,587496836),e(852142971,1086792851),e(1017036298,365543100),e(1126000580,2618297676),e(1288033470,3409855158),e(1501505948,4234509866),e(1607167915,987167468),e(1816402316,1246189591)],r=[];(function(){for(var o=0;o<80;o++)r[o]=e();})();var f=x.SHA512=A.extend({_doReset:function(){this._hash=new u.init([new d.init(1779033703,4089235720),new d.init(3144134277,2227873595),new d.init(1013904242,4271175723),new d.init(2773480762,1595750129),new d.init(1359893119,2917565137),new d.init(2600822924,725511199),new d.init(528734635,4215389547),new d.init(1541459225,327033209)]);},_doProcessBlock:function(o,c){for(var s=this._hash.words,C=s[0],t=s[1],n=s[2],i=s[3],E=s[4],l=s[5],p=s[6],_=s[7],S=C.high,v=C.low,F=t.high,g=t.low,k=n.high,z=n.low,$=i.high,P=i.low,K=E.high,I=E.low,N=l.high,T=l.low,b=p.high,w=p.low,m=_.high,H=_.low,O=S,X=v,G=F,W=g,i0=k,t0=z,xx=$,s0=P,M=K,Z=I,B0=N,f0=T,h0=b,c0=w,rx=m,v0=H,V=0;V<80;V++){var Y,j,C0=r[V];if(V<16)j=C0.high=o[c+V*2]|0,Y=C0.low=o[c+V*2+1]|0;else {var nx=r[V-15],a0=nx.high,d0=nx.low,rr=(a0>>>1|d0<<31)^(a0>>>8|d0<<24)^a0>>>7,ox=(d0>>>1|a0<<31)^(d0>>>8|a0<<24)^(d0>>>7|a0<<25),ix=r[V-2],n0=ix.high,u0=ix.low,er=(n0>>>19|u0<<13)^(n0<<3|u0>>>29)^n0>>>6,sx=(u0>>>19|n0<<13)^(u0<<3|n0>>>29)^(u0>>>6|n0<<26),fx=r[V-7],tr=fx.high,ar=fx.low,cx=r[V-16],nr=cx.high,vx=cx.low;Y=ox+ar,j=rr+tr+(Y>>>0>>0?1:0),Y=Y+sx,j=j+er+(Y>>>0>>0?1:0),Y=Y+vx,j=j+nr+(Y>>>0>>0?1:0),C0.high=j,C0.low=Y;}var or=M&B0^~M&h0,dx=Z&f0^~Z&c0,ir=O&G^O&i0^G&i0,sr=X&W^X&t0^W&t0,fr=(O>>>28|X<<4)^(O<<30|X>>>2)^(O<<25|X>>>7),ux=(X>>>28|O<<4)^(X<<30|O>>>2)^(X<<25|O>>>7),cr=(M>>>14|Z<<18)^(M>>>18|Z<<14)^(M<<23|Z>>>9),vr=(Z>>>14|M<<18)^(Z>>>18|M<<14)^(Z<<23|M>>>9),Bx=B[V],dr=Bx.high,hx=Bx.low,Q=v0+vr,J=rx+cr+(Q>>>0>>0?1:0),Q=Q+dx,J=J+or+(Q>>>0>>0?1:0),Q=Q+hx,J=J+dr+(Q>>>0>>0?1:0),Q=Q+Y,J=J+j+(Q>>>0>>0?1:0),Cx=ux+sr,ur=fr+ir+(Cx>>>0>>0?1:0);rx=h0,v0=c0,h0=B0,c0=f0,B0=M,f0=Z,Z=s0+Q|0,M=xx+J+(Z>>>0>>0?1:0)|0,xx=i0,s0=t0,i0=G,t0=W,G=O,W=X,X=Q+Cx|0,O=J+ur+(X>>>0>>0?1:0)|0;}v=C.low=v+X,C.high=S+O+(v>>>0>>0?1:0),g=t.low=g+W,t.high=F+G+(g>>>0>>0?1:0),z=n.low=z+t0,n.high=k+i0+(z>>>0>>0?1:0),P=i.low=P+s0,i.high=$+xx+(P>>>0>>0?1:0),I=E.low=I+Z,E.high=K+M+(I>>>0>>0?1:0),T=l.low=T+f0,l.high=N+B0+(T>>>0>>0?1:0),w=p.low=w+c0,p.high=b+h0+(w>>>0>>0?1:0),H=_.low=H+v0,_.high=m+rx+(H>>>0>>0?1:0);},_doFinalize:function(){var o=this._data,c=o.words,s=this._nDataBytes*8,C=o.sigBytes*8;c[C>>>5]|=128<<24-C%32,c[(C+128>>>10<<5)+30]=Math.floor(s/4294967296),c[(C+128>>>10<<5)+31]=s,o.sigBytes=c.length*4,this._process();var t=this._hash.toX32();return t},clone:function(){var o=A.clone.call(this);return o._hash=this._hash.clone(),o},blockSize:1024/32});a.SHA512=A._createHelper(f),a.HmacSHA512=A._createHmacHelper(f);})(),h.SHA512});})(H0)),H0.exports}var w0={exports:{}},zr=w0.exports,Hx;function $r(){return Hx||(Hx=1,(function(R,q){(function(h,a,D){R.exports=a(L(),J0(),xr());})(zr,function(h){return (function(){var a=h,D=a.x64,A=D.Word,y=D.WordArray,d=a.algo,u=d.SHA512,x=d.SHA384=u.extend({_doReset:function(){this._hash=new y.init([new A.init(3418070365,3238371032),new A.init(1654270250,914150663),new A.init(2438529370,812702999),new A.init(355462360,4144912697),new A.init(1731405415,4290775857),new A.init(2394180231,1750603025),new A.init(3675008525,1694076839),new A.init(1203062813,3204075428)]);},_doFinalize:function(){var e=u._doFinalize.call(this);return e.sigBytes-=16,e}});a.SHA384=u._createHelper(x),a.HmacSHA384=u._createHmacHelper(x);})(),h.SHA384});})(w0)),w0.exports}var m0={exports:{}},qr=m0.exports,wx;function Pr(){return wx||(wx=1,(function(R,q){(function(h,a,D){R.exports=a(L(),J0());})(qr,function(h){return (function(a){var D=h,A=D.lib,y=A.WordArray,d=A.Hasher,u=D.x64,x=u.Word,e=D.algo,B=[],r=[],f=[];(function(){for(var s=1,C=0,t=0;t<24;t++){B[s+5*C]=(t+1)*(t+2)/2%64;var n=C%5,i=(2*s+3*C)%5;s=n,C=i;}for(var s=0;s<5;s++)for(var C=0;C<5;C++)r[s+5*C]=C+(2*s+3*C)%5*5;for(var E=1,l=0;l<24;l++){for(var p=0,_=0,S=0;S<7;S++){if(E&1){var v=(1<>>24)&16711935|(E<<24|E>>>8)&4278255360,l=(l<<8|l>>>24)&16711935|(l<<24|l>>>8)&4278255360;var p=t[i];p.high^=l,p.low^=E;}for(var _=0;_<24;_++){for(var S=0;S<5;S++){for(var v=0,F=0,g=0;g<5;g++){var p=t[S+5*g];v^=p.high,F^=p.low;}var k=o[S];k.high=v,k.low=F;}for(var S=0;S<5;S++)for(var z=o[(S+4)%5],$=o[(S+1)%5],P=$.high,K=$.low,v=z.high^(P<<1|K>>>31),F=z.low^(K<<1|P>>>31),g=0;g<5;g++){var p=t[S+5*g];p.high^=v,p.low^=F;}for(var I=1;I<25;I++){var v,F,p=t[I],N=p.high,T=p.low,b=B[I];b<32?(v=N<>>32-b,F=T<>>32-b):(v=T<>>64-b,F=N<>>64-b);var w=o[r[I]];w.high=v,w.low=F;}var m=o[0],H=t[0];m.high=H.high,m.low=H.low;for(var S=0;S<5;S++)for(var g=0;g<5;g++){var I=S+5*g,p=t[I],O=o[I],X=o[(S+1)%5+5*g],G=o[(S+2)%5+5*g];p.high=O.high^~X.high&G.high,p.low=O.low^~X.low&G.low;}var p=t[0],W=f[_];p.high^=W.high,p.low^=W.low;}},_doFinalize:function(){var s=this._data,C=s.words;this._nDataBytes*8;var t=s.sigBytes*8,n=this.blockSize*32;C[t>>>5]|=1<<24-t%32,C[(a.ceil((t+1)/n)*n>>>5)-1]|=128,s.sigBytes=C.length*4,this._process();for(var i=this._state,E=this.cfg.outputLength/8,l=E/8,p=[],_=0;_>>24)&16711935|(v<<24|v>>>8)&4278255360,F=(F<<8|F>>>24)&16711935|(F<<24|F>>>8)&4278255360,p.push(F),p.push(v);}return new y.init(p,E)},clone:function(){for(var s=d.clone.call(this),C=s._state=this._state.slice(0),t=0;t<25;t++)C[t]=C[t].clone();return s}});D.SHA3=d._createHelper(c),D.HmacSHA3=d._createHmacHelper(c);})(Math),h.SHA3});})(m0)),m0.exports}var S0={exports:{}},Wr=S0.exports,mx;function Lr(){return mx||(mx=1,(function(R,q){(function(h,a){R.exports=a(L());})(Wr,function(h){return (function(a){var D=h,A=D.lib,y=A.WordArray,d=A.Hasher,u=D.algo,x=y.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),e=y.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),B=y.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),r=y.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),f=y.create([0,1518500249,1859775393,2400959708,2840853838]),o=y.create([1352829926,1548603684,1836072691,2053994217,0]),c=u.RIPEMD160=d.extend({_doReset:function(){this._hash=y.create([1732584193,4023233417,2562383102,271733878,3285377520]);},_doProcessBlock:function(l,p){for(var _=0;_<16;_++){var S=p+_,v=l[S];l[S]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360;}var F=this._hash.words,g=f.words,k=o.words,z=x.words,$=e.words,P=B.words,K=r.words,I,N,T,b,w,m,H,O,X,G;m=I=F[0],H=N=F[1],O=T=F[2],X=b=F[3],G=w=F[4];for(var W,_=0;_<80;_+=1)W=I+l[p+z[_]]|0,_<16?W+=s(N,T,b)+g[0]:_<32?W+=C(N,T,b)+g[1]:_<48?W+=t(N,T,b)+g[2]:_<64?W+=n(N,T,b)+g[3]:W+=i(N,T,b)+g[4],W=W|0,W=E(W,P[_]),W=W+w|0,I=w,w=b,b=E(T,10),T=N,N=W,W=m+l[p+$[_]]|0,_<16?W+=i(H,O,X)+k[0]:_<32?W+=n(H,O,X)+k[1]:_<48?W+=t(H,O,X)+k[2]:_<64?W+=C(H,O,X)+k[3]:W+=s(H,O,X)+k[4],W=W|0,W=E(W,K[_]),W=W+G|0,m=G,G=X,X=E(O,10),O=H,H=W;W=F[1]+T+X|0,F[1]=F[2]+b+G|0,F[2]=F[3]+w+m|0,F[3]=F[4]+I+H|0,F[4]=F[0]+N+O|0,F[0]=W;},_doFinalize:function(){var l=this._data,p=l.words,_=this._nDataBytes*8,S=l.sigBytes*8;p[S>>>5]|=128<<24-S%32,p[(S+64>>>9<<4)+14]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,l.sigBytes=(p.length+1)*4,this._process();for(var v=this._hash,F=v.words,g=0;g<5;g++){var k=F[g];F[g]=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360;}return v},clone:function(){var l=d.clone.call(this);return l._hash=this._hash.clone(),l}});function s(l,p,_){return l^p^_}function C(l,p,_){return l&p|~l&_}function t(l,p,_){return (l|~p)^_}function n(l,p,_){return l&_|p&~_}function i(l,p,_){return l^(p|~_)}function E(l,p){return l<>>32-p}D.RIPEMD160=d._createHelper(c),D.HmacRIPEMD160=d._createHmacHelper(c);})(),h.RIPEMD160});})(S0)),S0.exports}var R0={exports:{}},Ir=R0.exports,Sx;function ax(){return Sx||(Sx=1,(function(R,q){(function(h,a){R.exports=a(L());})(Ir,function(h){(function(){var a=h,D=a.lib,A=D.Base,y=a.enc,d=y.Utf8,u=a.algo;u.HMAC=A.extend({init:function(x,e){x=this._hasher=new x.init,typeof e=="string"&&(e=d.parse(e));var B=x.blockSize,r=B*4;e.sigBytes>r&&(e=x.finalize(e)),e.clamp();for(var f=this._oKey=e.clone(),o=this._iKey=e.clone(),c=f.words,s=o.words,C=0;C>>2]&255;v.sigBytes-=F;}};A.BlockCipher=f.extend({cfg:f.cfg.extend({mode:s,padding:t}),reset:function(){var v;f.reset.call(this);var F=this.cfg,g=F.iv,k=F.mode;this._xformMode==this._ENC_XFORM_MODE?v=k.createEncryptor:(v=k.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==v?this._mode.init(this,g&&g.words):(this._mode=v.call(k,this,g&&g.words),this._mode.__creator=v);},_doProcessBlock:function(v,F){this._mode.processBlock(v,F);},_doFinalize:function(){var v,F=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(F.pad(this._data,this.blockSize),v=this._process(true)):(v=this._process(true),F.unpad(v)),v},blockSize:128/32});var n=A.CipherParams=y.extend({init:function(v){this.mixIn(v);},toString:function(v){return (v||this.formatter).stringify(this)}}),i=D.format={},E=i.OpenSSL={stringify:function(v){var F,g=v.ciphertext,k=v.salt;return k?F=d.create([1398893684,1701076831]).concat(k).concat(g):F=g,F.toString(e)},parse:function(v){var F,g=e.parse(v),k=g.words;return k[0]==1398893684&&k[1]==1701076831&&(F=d.create(k.slice(2,4)),k.splice(0,4),g.sigBytes-=16),n.create({ciphertext:g,salt:F})}},l=A.SerializableCipher=y.extend({cfg:y.extend({format:E}),encrypt:function(v,F,g,k){k=this.cfg.extend(k);var z=v.createEncryptor(g,k),$=z.finalize(F),P=z.cfg;return n.create({ciphertext:$,key:g,iv:P.iv,algorithm:v,mode:P.mode,padding:P.padding,blockSize:v.blockSize,formatter:k.format})},decrypt:function(v,F,g,k){k=this.cfg.extend(k),F=this._parse(F,k.format);var z=v.createDecryptor(g,k).finalize(F.ciphertext);return z},_parse:function(v,F){return typeof v=="string"?F.parse(v,this):v}}),p=D.kdf={},_=p.OpenSSL={execute:function(v,F,g,k,z){if(k||(k=d.random(64/8)),z)var $=r.create({keySize:F+g,hasher:z}).compute(v,k);else var $=r.create({keySize:F+g}).compute(v,k);var P=d.create($.words.slice(F),g*4);return $.sigBytes=F*4,n.create({key:$,iv:P,salt:k})}},S=A.PasswordBasedCipher=l.extend({cfg:l.cfg.extend({kdf:_}),encrypt:function(v,F,g,k){k=this.cfg.extend(k);var z=k.kdf.execute(g,v.keySize,v.ivSize,k.salt,k.hasher);k.iv=z.iv;var $=l.encrypt.call(this,v,F,z.key,k);return $.mixIn(z),$},decrypt:function(v,F,g,k){k=this.cfg.extend(k),F=this._parse(F,k.format);var z=k.kdf.execute(g,v.keySize,v.ivSize,F.salt,k.hasher);k.iv=z.iv;var $=l.decrypt.call(this,v,F,z.key,k);return $}});})();});})(q0)),q0.exports}var P0={exports:{}},Or=P0.exports,qx;function Ur(){return qx||(qx=1,(function(R,q){(function(h,a,D){R.exports=a(L(),U());})(Or,function(h){return h.mode.CFB=(function(){var a=h.lib.BlockCipherMode.extend();a.Encryptor=a.extend({processBlock:function(A,y){var d=this._cipher,u=d.blockSize;D.call(this,A,y,u,d),this._prevBlock=A.slice(y,y+u);}}),a.Decryptor=a.extend({processBlock:function(A,y){var d=this._cipher,u=d.blockSize,x=A.slice(y,y+u);D.call(this,A,y,u,d),this._prevBlock=x;}});function D(A,y,d,u){var x,e=this._iv;e?(x=e.slice(0),this._iv=void 0):x=this._prevBlock,u.encryptBlock(x,0);for(var B=0;B>24&255)===255){var u=d>>16&255,x=d>>8&255,e=d&255;u===255?(u=0,x===255?(x=0,e===255?e=0:++e):++x):++u,d=0,d+=u<<16,d+=x<<8,d+=e;}else d+=1<<24;return d}function A(d){return (d[0]=D(d[0]))===0&&(d[1]=D(d[1])),d}var y=a.Encryptor=a.extend({processBlock:function(d,u){var x=this._cipher,e=x.blockSize,B=this._iv,r=this._counter;B&&(r=this._counter=B.slice(0),this._iv=void 0),A(r);var f=r.slice(0);x.encryptBlock(f,0);for(var o=0;o>>2]|=d<<24-u%4*8,a.sigBytes+=d;},unpad:function(a){var D=a.words[a.sigBytes-1>>>2]&255;a.sigBytes-=D;}},h.pad.Ansix923});})(N0)),N0.exports}var X0={exports:{}},ee=X0.exports,Nx;function te(){return Nx||(Nx=1,(function(R,q){(function(h,a,D){R.exports=a(L(),U());})(ee,function(h){return h.pad.Iso10126={pad:function(a,D){var A=D*4,y=A-a.sigBytes%A;a.concat(h.lib.WordArray.random(y-1)).concat(h.lib.WordArray.create([y<<24],1));},unpad:function(a){var D=a.words[a.sigBytes-1>>>2]&255;a.sigBytes-=D;}},h.pad.Iso10126});})(X0)),X0.exports}var K0={exports:{}},ae=K0.exports,Xx;function ne(){return Xx||(Xx=1,(function(R,q){(function(h,a,D){R.exports=a(L(),U());})(ae,function(h){return h.pad.Iso97971={pad:function(a,D){a.concat(h.lib.WordArray.create([2147483648],1)),h.pad.ZeroPadding.pad(a,D);},unpad:function(a){h.pad.ZeroPadding.unpad(a),a.sigBytes--;}},h.pad.Iso97971});})(K0)),K0.exports}var O0={exports:{}},oe=O0.exports,Kx;function ie(){return Kx||(Kx=1,(function(R,q){(function(h,a,D){R.exports=a(L(),U());})(oe,function(h){return h.pad.ZeroPadding={pad:function(a,D){var A=D*4;a.clamp(),a.sigBytes+=A-(a.sigBytes%A||A);},unpad:function(a){for(var D=a.words,A=a.sigBytes-1,A=a.sigBytes-1;A>=0;A--)if(D[A>>>2]>>>24-A%4*8&255){a.sigBytes=A+1;break}}},h.pad.ZeroPadding});})(O0)),O0.exports}var U0={exports:{}},se=U0.exports,Ox;function fe(){return Ox||(Ox=1,(function(R,q){(function(h,a,D){R.exports=a(L(),U());})(se,function(h){return h.pad.NoPadding={pad:function(){},unpad:function(){}},h.pad.NoPadding});})(U0)),U0.exports}var G0={exports:{}},ce=G0.exports,Ux;function ve(){return Ux||(Ux=1,(function(R,q){(function(h,a,D){R.exports=a(L(),U());})(ce,function(h){return (function(a){var D=h,A=D.lib,y=A.CipherParams,d=D.enc,u=d.Hex,x=D.format;x.Hex={stringify:function(e){return e.ciphertext.toString(u)},parse:function(e){var B=u.parse(e);return y.create({ciphertext:B})}};})(),h.format.Hex});})(G0)),G0.exports}var Z0={exports:{}},de=Z0.exports,Gx;function ue(){return Gx||(Gx=1,(function(R,q){(function(h,a,D){R.exports=a(L(),r0(),e0(),x0(),U());})(de,function(h){return (function(){var a=h,D=a.lib,A=D.BlockCipher,y=a.algo,d=[],u=[],x=[],e=[],B=[],r=[],f=[],o=[],c=[],s=[];(function(){for(var n=[],i=0;i<256;i++)i<128?n[i]=i<<1:n[i]=i<<1^283;for(var E=0,l=0,i=0;i<256;i++){var p=l^l<<1^l<<2^l<<3^l<<4;p=p>>>8^p&255^99,d[E]=p,u[p]=E;var _=n[E],S=n[_],v=n[S],F=n[p]*257^p*16843008;x[E]=F<<24|F>>>8,e[E]=F<<16|F>>>16,B[E]=F<<8|F>>>24,r[E]=F;var F=v*16843009^S*65537^_*257^E*16843008;f[p]=F<<24|F>>>8,o[p]=F<<16|F>>>16,c[p]=F<<8|F>>>24,s[p]=F,E?(E=_^n[n[n[v^_]]],l^=n[n[l]]):E=l=1;}})();var C=[0,1,2,4,8,16,32,64,128,27,54],t=y.AES=A.extend({_doReset:function(){var n;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var i=this._keyPriorReset=this._key,E=i.words,l=i.sigBytes/4,p=this._nRounds=l+6,_=(p+1)*4,S=this._keySchedule=[],v=0;v<_;v++)v6&&v%l==4&&(n=d[n>>>24]<<24|d[n>>>16&255]<<16|d[n>>>8&255]<<8|d[n&255]):(n=n<<8|n>>>24,n=d[n>>>24]<<24|d[n>>>16&255]<<16|d[n>>>8&255]<<8|d[n&255],n^=C[v/l|0]<<24),S[v]=S[v-l]^n);for(var F=this._invKeySchedule=[],g=0;g<_;g++){var v=_-g;if(g%4)var n=S[v];else var n=S[v-4];g<4||v<=4?F[g]=n:F[g]=f[d[n>>>24]]^o[d[n>>>16&255]]^c[d[n>>>8&255]]^s[d[n&255]];}}},encryptBlock:function(n,i){this._doCryptBlock(n,i,this._keySchedule,x,e,B,r,d);},decryptBlock:function(n,i){var E=n[i+1];n[i+1]=n[i+3],n[i+3]=E,this._doCryptBlock(n,i,this._invKeySchedule,f,o,c,s,u);var E=n[i+1];n[i+1]=n[i+3],n[i+3]=E;},_doCryptBlock:function(n,i,E,l,p,_,S,v){for(var F=this._nRounds,g=n[i]^E[0],k=n[i+1]^E[1],z=n[i+2]^E[2],$=n[i+3]^E[3],P=4,K=1;K>>24]^p[k>>>16&255]^_[z>>>8&255]^S[$&255]^E[P++],N=l[k>>>24]^p[z>>>16&255]^_[$>>>8&255]^S[g&255]^E[P++],T=l[z>>>24]^p[$>>>16&255]^_[g>>>8&255]^S[k&255]^E[P++],b=l[$>>>24]^p[g>>>16&255]^_[k>>>8&255]^S[z&255]^E[P++];g=I,k=N,z=T,$=b;}var I=(v[g>>>24]<<24|v[k>>>16&255]<<16|v[z>>>8&255]<<8|v[$&255])^E[P++],N=(v[k>>>24]<<24|v[z>>>16&255]<<16|v[$>>>8&255]<<8|v[g&255])^E[P++],T=(v[z>>>24]<<24|v[$>>>16&255]<<16|v[g>>>8&255]<<8|v[k&255])^E[P++],b=(v[$>>>24]<<24|v[g>>>16&255]<<16|v[k>>>8&255]<<8|v[z&255])^E[P++];n[i]=I,n[i+1]=N,n[i+2]=T,n[i+3]=b;},keySize:256/32});a.AES=A._createHelper(t);})(),h.AES});})(Z0)),Z0.exports}var Q0={exports:{}},Be=Q0.exports,Zx;function he(){return Zx||(Zx=1,(function(R,q){(function(h,a,D){R.exports=a(L(),r0(),e0(),x0(),U());})(Be,function(h){return (function(){var a=h,D=a.lib,A=D.WordArray,y=D.BlockCipher,d=a.algo,u=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],x=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],e=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],B=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],r=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],f=d.DES=y.extend({_doReset:function(){for(var C=this._key,t=C.words,n=[],i=0;i<56;i++){var E=u[i]-1;n[i]=t[E>>>5]>>>31-E%32&1;}for(var l=this._subKeys=[],p=0;p<16;p++){for(var _=l[p]=[],S=e[p],i=0;i<24;i++)_[i/6|0]|=n[(x[i]-1+S)%28]<<31-i%6,_[4+(i/6|0)]|=n[28+(x[i+24]-1+S)%28]<<31-i%6;_[0]=_[0]<<1|_[0]>>>31;for(var i=1;i<7;i++)_[i]=_[i]>>>(i-1)*4+3;_[7]=_[7]<<5|_[7]>>>27;}for(var v=this._invSubKeys=[],i=0;i<16;i++)v[i]=l[15-i];},encryptBlock:function(C,t){this._doCryptBlock(C,t,this._subKeys);},decryptBlock:function(C,t){this._doCryptBlock(C,t,this._invSubKeys);},_doCryptBlock:function(C,t,n){this._lBlock=C[t],this._rBlock=C[t+1],o.call(this,4,252645135),o.call(this,16,65535),c.call(this,2,858993459),c.call(this,8,16711935),o.call(this,1,1431655765);for(var i=0;i<16;i++){for(var E=n[i],l=this._lBlock,p=this._rBlock,_=0,S=0;S<8;S++)_|=B[S][((p^E[S])&r[S])>>>0];this._lBlock=p,this._rBlock=l^_;}var v=this._lBlock;this._lBlock=this._rBlock,this._rBlock=v,o.call(this,1,1431655765),c.call(this,8,16711935),c.call(this,2,858993459),o.call(this,16,65535),o.call(this,4,252645135),C[t]=this._lBlock,C[t+1]=this._rBlock;},keySize:64/32,ivSize:64/32,blockSize:64/32});function o(C,t){var n=(this._lBlock>>>C^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<>>C^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<192.");var n=t.slice(0,2),i=t.length<4?t.slice(0,2):t.slice(2,4),E=t.length<6?t.slice(0,2):t.slice(4,6);this._des1=f.createEncryptor(A.create(n)),this._des2=f.createEncryptor(A.create(i)),this._des3=f.createEncryptor(A.create(E));},encryptBlock:function(C,t){this._des1.encryptBlock(C,t),this._des2.decryptBlock(C,t),this._des3.encryptBlock(C,t);},decryptBlock:function(C,t){this._des3.decryptBlock(C,t),this._des2.encryptBlock(C,t),this._des1.decryptBlock(C,t);},keySize:192/32,ivSize:64/32,blockSize:64/32});a.TripleDES=y._createHelper(s);})(),h.TripleDES});})(Q0)),Q0.exports}var Y0={exports:{}},Ce=Y0.exports,Qx;function le(){return Qx||(Qx=1,(function(R,q){(function(h,a,D){R.exports=a(L(),r0(),e0(),x0(),U());})(Ce,function(h){return (function(){var a=h,D=a.lib,A=D.StreamCipher,y=a.algo,d=y.RC4=A.extend({_doReset:function(){for(var e=this._key,B=e.words,r=e.sigBytes,f=this._S=[],o=0;o<256;o++)f[o]=o;for(var o=0,c=0;o<256;o++){var s=o%r,C=B[s>>>2]>>>24-s%4*8&255;c=(c+f[o]+C)%256;var t=f[o];f[o]=f[c],f[c]=t;}this._i=this._j=0;},_doProcessBlock:function(e,B){e[B]^=u.call(this);},keySize:256/32,ivSize:0});function u(){for(var e=this._S,B=this._i,r=this._j,f=0,o=0;o<4;o++){B=(B+1)%256,r=(r+e[B])%256;var c=e[B];e[B]=e[r],e[r]=c,f|=e[(e[B]+e[r])%256]<<24-o*8;}return this._i=B,this._j=r,f}a.RC4=A._createHelper(d);var x=y.RC4Drop=d.extend({cfg:d.cfg.extend({drop:192}),_doReset:function(){d._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)u.call(this);}});a.RC4Drop=A._createHelper(x);})(),h.RC4});})(Y0)),Y0.exports}var M0={exports:{}},Ee=M0.exports,Yx;function Ae(){return Yx||(Yx=1,(function(R,q){(function(h,a,D){R.exports=a(L(),r0(),e0(),x0(),U());})(Ee,function(h){return (function(){var a=h,D=a.lib,A=D.StreamCipher,y=a.algo,d=[],u=[],x=[],e=y.Rabbit=A.extend({_doReset:function(){for(var r=this._key.words,f=this.cfg.iv,o=0;o<4;o++)r[o]=(r[o]<<8|r[o]>>>24)&16711935|(r[o]<<24|r[o]>>>8)&4278255360;var c=this._X=[r[0],r[3]<<16|r[2]>>>16,r[1],r[0]<<16|r[3]>>>16,r[2],r[1]<<16|r[0]>>>16,r[3],r[2]<<16|r[1]>>>16],s=this._C=[r[2]<<16|r[2]>>>16,r[0]&4294901760|r[1]&65535,r[3]<<16|r[3]>>>16,r[1]&4294901760|r[2]&65535,r[0]<<16|r[0]>>>16,r[2]&4294901760|r[3]&65535,r[1]<<16|r[1]>>>16,r[3]&4294901760|r[0]&65535];this._b=0;for(var o=0;o<4;o++)B.call(this);for(var o=0;o<8;o++)s[o]^=c[o+4&7];if(f){var C=f.words,t=C[0],n=C[1],i=(t<<8|t>>>24)&16711935|(t<<24|t>>>8)&4278255360,E=(n<<8|n>>>24)&16711935|(n<<24|n>>>8)&4278255360,l=i>>>16|E&4294901760,p=E<<16|i&65535;s[0]^=i,s[1]^=l,s[2]^=E,s[3]^=p,s[4]^=i,s[5]^=l,s[6]^=E,s[7]^=p;for(var o=0;o<4;o++)B.call(this);}},_doProcessBlock:function(r,f){var o=this._X;B.call(this),d[0]=o[0]^o[5]>>>16^o[3]<<16,d[1]=o[2]^o[7]>>>16^o[5]<<16,d[2]=o[4]^o[1]>>>16^o[7]<<16,d[3]=o[6]^o[3]>>>16^o[1]<<16;for(var c=0;c<4;c++)d[c]=(d[c]<<8|d[c]>>>24)&16711935|(d[c]<<24|d[c]>>>8)&4278255360,r[f+c]^=d[c];},blockSize:128/32,ivSize:64/32});function B(){for(var r=this._X,f=this._C,o=0;o<8;o++)u[o]=f[o];f[0]=f[0]+1295307597+this._b|0,f[1]=f[1]+3545052371+(f[0]>>>0>>0?1:0)|0,f[2]=f[2]+886263092+(f[1]>>>0>>0?1:0)|0,f[3]=f[3]+1295307597+(f[2]>>>0>>0?1:0)|0,f[4]=f[4]+3545052371+(f[3]>>>0>>0?1:0)|0,f[5]=f[5]+886263092+(f[4]>>>0>>0?1:0)|0,f[6]=f[6]+1295307597+(f[5]>>>0>>0?1:0)|0,f[7]=f[7]+3545052371+(f[6]>>>0>>0?1:0)|0,this._b=f[7]>>>0>>0?1:0;for(var o=0;o<8;o++){var c=r[o]+f[o],s=c&65535,C=c>>>16,t=((s*s>>>17)+s*C>>>15)+C*C,n=((c&4294901760)*c|0)+((c&65535)*c|0);x[o]=t^n;}r[0]=x[0]+(x[7]<<16|x[7]>>>16)+(x[6]<<16|x[6]>>>16)|0,r[1]=x[1]+(x[0]<<8|x[0]>>>24)+x[7]|0,r[2]=x[2]+(x[1]<<16|x[1]>>>16)+(x[0]<<16|x[0]>>>16)|0,r[3]=x[3]+(x[2]<<8|x[2]>>>24)+x[1]|0,r[4]=x[4]+(x[3]<<16|x[3]>>>16)+(x[2]<<16|x[2]>>>16)|0,r[5]=x[5]+(x[4]<<8|x[4]>>>24)+x[3]|0,r[6]=x[6]+(x[5]<<16|x[5]>>>16)+(x[4]<<16|x[4]>>>16)|0,r[7]=x[7]+(x[6]<<8|x[6]>>>24)+x[5]|0;}a.Rabbit=A._createHelper(e);})(),h.Rabbit});})(M0)),M0.exports}var V0={exports:{}},pe=V0.exports,Mx;function Fe(){return Mx||(Mx=1,(function(R,q){(function(h,a,D){R.exports=a(L(),r0(),e0(),x0(),U());})(pe,function(h){return (function(){var a=h,D=a.lib,A=D.StreamCipher,y=a.algo,d=[],u=[],x=[],e=y.RabbitLegacy=A.extend({_doReset:function(){var r=this._key.words,f=this.cfg.iv,o=this._X=[r[0],r[3]<<16|r[2]>>>16,r[1],r[0]<<16|r[3]>>>16,r[2],r[1]<<16|r[0]>>>16,r[3],r[2]<<16|r[1]>>>16],c=this._C=[r[2]<<16|r[2]>>>16,r[0]&4294901760|r[1]&65535,r[3]<<16|r[3]>>>16,r[1]&4294901760|r[2]&65535,r[0]<<16|r[0]>>>16,r[2]&4294901760|r[3]&65535,r[1]<<16|r[1]>>>16,r[3]&4294901760|r[0]&65535];this._b=0;for(var s=0;s<4;s++)B.call(this);for(var s=0;s<8;s++)c[s]^=o[s+4&7];if(f){var C=f.words,t=C[0],n=C[1],i=(t<<8|t>>>24)&16711935|(t<<24|t>>>8)&4278255360,E=(n<<8|n>>>24)&16711935|(n<<24|n>>>8)&4278255360,l=i>>>16|E&4294901760,p=E<<16|i&65535;c[0]^=i,c[1]^=l,c[2]^=E,c[3]^=p,c[4]^=i,c[5]^=l,c[6]^=E,c[7]^=p;for(var s=0;s<4;s++)B.call(this);}},_doProcessBlock:function(r,f){var o=this._X;B.call(this),d[0]=o[0]^o[5]>>>16^o[3]<<16,d[1]=o[2]^o[7]>>>16^o[5]<<16,d[2]=o[4]^o[1]>>>16^o[7]<<16,d[3]=o[6]^o[3]>>>16^o[1]<<16;for(var c=0;c<4;c++)d[c]=(d[c]<<8|d[c]>>>24)&16711935|(d[c]<<24|d[c]>>>8)&4278255360,r[f+c]^=d[c];},blockSize:128/32,ivSize:64/32});function B(){for(var r=this._X,f=this._C,o=0;o<8;o++)u[o]=f[o];f[0]=f[0]+1295307597+this._b|0,f[1]=f[1]+3545052371+(f[0]>>>0>>0?1:0)|0,f[2]=f[2]+886263092+(f[1]>>>0>>0?1:0)|0,f[3]=f[3]+1295307597+(f[2]>>>0>>0?1:0)|0,f[4]=f[4]+3545052371+(f[3]>>>0>>0?1:0)|0,f[5]=f[5]+886263092+(f[4]>>>0>>0?1:0)|0,f[6]=f[6]+1295307597+(f[5]>>>0>>0?1:0)|0,f[7]=f[7]+3545052371+(f[6]>>>0>>0?1:0)|0,this._b=f[7]>>>0>>0?1:0;for(var o=0;o<8;o++){var c=r[o]+f[o],s=c&65535,C=c>>>16,t=((s*s>>>17)+s*C>>>15)+C*C,n=((c&4294901760)*c|0)+((c&65535)*c|0);x[o]=t^n;}r[0]=x[0]+(x[7]<<16|x[7]>>>16)+(x[6]<<16|x[6]>>>16)|0,r[1]=x[1]+(x[0]<<8|x[0]>>>24)+x[7]|0,r[2]=x[2]+(x[1]<<16|x[1]>>>16)+(x[0]<<16|x[0]>>>16)|0,r[3]=x[3]+(x[2]<<8|x[2]>>>24)+x[1]|0,r[4]=x[4]+(x[3]<<16|x[3]>>>16)+(x[2]<<16|x[2]>>>16)|0,r[5]=x[5]+(x[4]<<8|x[4]>>>24)+x[3]|0,r[6]=x[6]+(x[5]<<16|x[5]>>>16)+(x[4]<<16|x[4]>>>16)|0,r[7]=x[7]+(x[6]<<8|x[6]>>>24)+x[5]|0;}a.RabbitLegacy=A._createHelper(e);})(),h.RabbitLegacy});})(V0)),V0.exports}var j0={exports:{}},De=j0.exports,Vx;function _e(){return Vx||(Vx=1,(function(R,q){(function(h,a,D){R.exports=a(L(),r0(),e0(),x0(),U());})(De,function(h){return (function(){var a=h,D=a.lib,A=D.BlockCipher,y=a.algo;const d=16,u=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],x=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var e={pbox:[],sbox:[]};function B(s,C){let t=C>>24&255,n=C>>16&255,i=C>>8&255,E=C&255,l=s.sbox[0][t]+s.sbox[1][n];return l=l^s.sbox[2][i],l=l+s.sbox[3][E],l}function r(s,C,t){let n=C,i=t,E;for(let l=0;l1;--l)n=n^s.pbox[l],i=B(s,n)^i,E=n,n=i,i=E;return E=n,n=i,i=E,i=i^s.pbox[1],n=n^s.pbox[0],{left:n,right:i}}function o(s,C,t){for(let p=0;p<4;p++){s.sbox[p]=[];for(let _=0;_<256;_++)s.sbox[p][_]=x[p][_];}let n=0;for(let p=0;p=t&&(n=0);let i=0,E=0,l=0;for(let p=0;p{let{$$slots:a,$$events:D,...A}=q,y=new $(A);y.props.value;});} + +export { $e as default }; +//# sourceMappingURL=Index56-OtsFTROQ.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index57-BitBxvfY.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index57-BitBxvfY.js new file mode 100644 index 0000000000000000000000000000000000000000..2ab2e3e6068a967ee52a81022497b5a436297e2c --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index57-BitBxvfY.js @@ -0,0 +1,197 @@ +import { f as fallback } from './async-D55cHugf.js'; +import { c as spread_props, b as store_get, u as unsubscribe_stores, d as bind_props, f as attr_class, s as slot, g as attr_style, i as stringify, n as sanitize_props, r as rest_props, m as attributes } from './index-u8mz_F03.js'; +import { t as tick } from './index-server-CQz6EZl_.js'; +import './2-BLdXJizP.js'; +import { $ } from './utils.svelte-B2py64Fz.js'; +import { k } from './BlockLabel-bKYWnOzQ.js'; +import { u } from './DownloadLink-nj1p0krE.js'; +import { w } from './IconButton-BRnu7KaR.js'; +import { p } from './Empty-DGRbZO0a.js'; +import { o } from './Clear-D7Yjckqz.js'; +import { l } from './Download-DcU5dONL.js'; +import { i } from './Image2-vcp9_ifi.js'; +import { r } from './Undo-Ce01x-M5.js'; +import { y } from './IconButtonWrapper-CjFRPb3y.js'; +import { k as k$1 } from './FullscreenButton-D8PvgSmk.js'; +import { w as writable } from './index-Cg-Pg6j3.js'; +import { l as loop, r as raf, i as is_date, W } from './index3-Df92vI-L.js'; +import { e as ee$1 } from './Upload2-uTutz1dY.js'; +import { G } from './Block-DZmzQwnI.js'; +import { k as k$2 } from './UploadText-BDXc1cBO.js'; +import './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './clone-Yk88IHKV.js'; +import './Maximize-CuHbK64j.js'; +import './Upload-BbxeBrrD.js'; + +/* +Adapted from https://github.com/mattdesl +Distributed under MIT License https://github.com/mattdesl/eases/blob/master/LICENSE.md +*/ + +/** + * @param {number} t + * @returns {number} + */ +function linear(t) { + return t; +} + +/** @import { Task } from '../internal/client/types' */ +/** @import { Tweened } from './public' */ +/** @import { TweenedOptions } from './private' */ + +/** + * @template T + * @param {T} a + * @param {T} b + * @returns {(t: number) => T} + */ +function get_interpolator(a, b) { + if (a === b || a !== a) return () => a; + + const type = typeof a; + if (type !== typeof b || Array.isArray(a) !== Array.isArray(b)) { + throw new Error('Cannot interpolate values of different type'); + } + + if (Array.isArray(a)) { + const arr = /** @type {Array} */ (b).map((bi, i) => { + return get_interpolator(/** @type {Array} */ (a)[i], bi); + }); + + // @ts-ignore + return (t) => arr.map((fn) => fn(t)); + } + + if (type === 'object') { + if (!a || !b) { + throw new Error('Object cannot be null'); + } + + if (is_date(a) && is_date(b)) { + const an = a.getTime(); + const bn = b.getTime(); + const delta = bn - an; + + // @ts-ignore + return (t) => new Date(an + t * delta); + } + + const keys = Object.keys(b); + + /** @type {Record T>} */ + const interpolators = {}; + keys.forEach((key) => { + // @ts-ignore + interpolators[key] = get_interpolator(a[key], b[key]); + }); + + // @ts-ignore + return (t) => { + /** @type {Record} */ + const result = {}; + keys.forEach((key) => { + result[key] = interpolators[key](t); + }); + return result; + }; + } + + if (type === 'number') { + const delta = /** @type {number} */ (b) - /** @type {number} */ (a); + // @ts-ignore + return (t) => a + t * delta; + } + + // for non-numeric values, snap to the final value immediately + return () => b; +} + +/** + * A tweened store in Svelte is a special type of store that provides smooth transitions between state values over time. + * + * @deprecated Use [`Tween`](https://svelte.dev/docs/svelte/svelte-motion#Tween) instead + * @template T + * @param {T} [value] + * @param {TweenedOptions} [defaults] + * @returns {Tweened} + */ +function tweened(value, defaults = {}) { + const store = writable(value); + /** @type {Task} */ + let task; + let target_value = value; + /** + * @param {T} new_value + * @param {TweenedOptions} [opts] + */ + function set(new_value, opts) { + target_value = new_value; + + if (value == null) { + store.set((value = new_value)); + return Promise.resolve(); + } + + /** @type {Task | null} */ + let previous_task = task; + + let started = false; + let { + delay = 0, + duration = 400, + easing = linear, + interpolate = get_interpolator + } = { ...defaults, ...opts }; + + if (duration === 0) { + if (previous_task) { + previous_task.abort(); + previous_task = null; + } + store.set((value = target_value)); + return Promise.resolve(); + } + + const start = raf.now() + delay; + + /** @type {(t: number) => T} */ + let fn; + task = loop((now) => { + if (now < start) return true; + if (!started) { + fn = interpolate(/** @type {any} */ (value), new_value); + if (typeof duration === 'function') + duration = duration(/** @type {any} */ (value), new_value); + started = true; + } + if (previous_task) { + previous_task.abort(); + previous_task = null; + } + const elapsed = now - start; + if (elapsed > /** @type {number} */ (duration)) { + store.set((value = new_value)); + return false; + } + // @ts-ignore + store.set((value = fn(easing(elapsed / duration)))); + return true; + }); + return task.promise; + } + return { + set, + update: (fn, opts) => + set(fn(/** @type {any} */ (target_value), /** @type {any} */ (value)), opts), + subscribe: store.subscribe + }; +} + +/* empty css */var It={value:()=>{}};function H(t){this._=t;}function Bt(t,e){return t.trim().split(/^|\s+/).map(function(n){var i="",s=n.indexOf(".");if(s>=0&&(i=n.slice(s+1),n=n.slice(0,s)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return {type:n,name:i}})}H.prototype={constructor:H,on:function(t,e){var n=this._,i=Bt(t+"",n),s,o=-1,a=i.length;if(arguments.length<2){for(;++o0)for(var n=new Array(s),i=0,s,o;i=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),ut.hasOwnProperty(e)?{space:ut[e],local:t}:t}function Pt(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===tt&&e.documentElement.namespaceURI===tt?e.createElement(t):e.createElementNS(n,t)}}function Ut(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function vt(t){var e=mt(t);return (e.local?Ut:Pt)(e)}function Ft(){}function wt(t){return t==null?Ft:function(){return this.querySelector(t)}}function Ot(t){typeof t!="function"&&(t=wt(t));for(var e=this._groups,n=e.length,i=new Array(n),s=0;s=T&&(T=X+1);!(_=g[T])&&++T=0;)(a=i[s])&&(o&&a.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(a,o),o=a);return this}function ge(t){t||(t=pe);function e(m,d){return m&&d?t(m.__data__,d.__data__):!m-!d}for(var n=this._groups,i=n.length,s=new Array(i),o=0;oe?1:t>=e?0:NaN}function me(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function ve(){return Array.from(this)}function we(){for(var t=this._groups,e=0,n=t.length;e1?this.each((e==null?Se:typeof e=="function"?Ce:Te)(t,e,n??"")):De(this.node(),t)}function De(t,e){return t.style.getPropertyValue(e)||xt(t).getComputedStyle(t,null).getPropertyValue(e)}function Le(t){return function(){delete this[t];}}function Ie(t,e){return function(){this[t]=e;}}function Be(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n;}}function Ne(t,e){return arguments.length>1?this.each((e==null?Le:typeof e=="function"?Be:Ie)(t,e)):this.node()[t]}function zt(t){return t.trim().split(/^|\s+/)}function st(t){return t.classList||new kt(t)}function kt(t){this._node=t,this._names=zt(t.getAttribute("class")||"");}kt.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")));},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")));},contains:function(t){return this._names.indexOf(t)>=0}};function Et(t,e){for(var n=st(t),i=-1,s=e.length;++i=0&&(n=e.slice(i+1),e=e.slice(0,i)),{type:e,name:n}})}function dn(t){return function(){var e=this.__on;if(e){for(var n=0,i=-1,s=e.length,o;n{function i(_,Y,k){return Math.min(Math.max(_,Y),k)}let s=fallback(e.position,.5),o=fallback(e.disabled,false),a=fallback(e.slider_color,"var(--border-color-primary)"),r=fallback(e.image_size,()=>({top:0,left:0,width:0,height:0}),true),l=fallback(e.el,void 0),h=fallback(e.parent_el,void 0),m=0,d=false,b=0;function E(_){b=h?.getBoundingClientRect().width||0,_===0&&(r.width=l?.getBoundingClientRect().width||0),m=i(r.width*s+r.left,0,b);}function c(_){m=i(r.width*_+r.left,0,b);}E(r.width),c(s),n.push('
    '),slot(n,e,"default",{}),n.push(`
    ◢◢
    `),bind_props(e,{position:s,disabled:o,slider_color:a,image_size:r,el:l,parent_el:h});});}function J(t,e){const n=sanitize_props(e),i=rest_props(n,["src","fullscreen","fixed","transform","img_el","hidden","variant","max_height"]);t.component(s=>{let o=fallback(e.src,void 0),a=fallback(e.fullscreen,false),r=fallback(e.fixed,false),l=fallback(e.transform,"translate(0px, 0px) scale(1)"),h=fallback(e.img_el,null),f=fallback(e.hidden,false),m=fallback(e.variant,"upload"),d=fallback(e.max_height,500);s.push(``),bind_props(e,{src:o,fullscreen:a,fixed:r,transform:l,img_el:h,hidden:f,variant:m,max_height:d});});}class Tn{container;image;scale;offsetX;offsetY;isDragging;lastX;lastY;initial_left_padding;initial_top_padding;initial_width;initial_height;subscribers;handleImageLoad;real_image_size={top:0,left:0,width:0,height:0};last_touch_distance;constructor(e,n){this.container=e,this.image=n,this.scale=1,this.offsetX=0,this.offsetY=0,this.isDragging=false,this.lastX=0,this.lastY=0,this.initial_left_padding=0,this.initial_top_padding=0,this.initial_width=0,this.initial_height=0,this.subscribers=[],this.last_touch_distance=0,this.handleWheel=this.handleWheel.bind(this),this.handleMouseDown=this.handleMouseDown.bind(this),this.handleMouseMove=this.handleMouseMove.bind(this),this.handleMouseUp=this.handleMouseUp.bind(this),this.handleImageLoad=this.init.bind(this),this.handleTouchStart=this.handleTouchStart.bind(this),this.handleTouchMove=this.handleTouchMove.bind(this),this.handleTouchEnd=this.handleTouchEnd.bind(this),this.image.addEventListener("load",this.handleImageLoad),this.container.addEventListener("wheel",this.handleWheel),this.container.addEventListener("mousedown",this.handleMouseDown),document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp),this.container.addEventListener("touchstart",this.handleTouchStart),document.addEventListener("touchmove",this.handleTouchMove),document.addEventListener("touchend",this.handleTouchEnd),new ResizeObserver(s=>{for(const o of s)o.target===this.container&&(this.handleResize(),this.get_image_size(this.image));}).observe(this.container);}handleResize(){this.init();}init(){const e=this.container.getBoundingClientRect(),n=this.image.getBoundingClientRect();this.initial_left_padding=n.left-e.left,this.initial_top_padding=n.top-e.top,this.initial_width=n.width,this.initial_height=n.height,this.reset_zoom(),this.updateTransform();}reset_zoom(){this.scale=1,this.offsetX=0,this.offsetY=0,this.updateTransform();}handleMouseDown(e){const n=this.image.getBoundingClientRect();if(e.clientX>=n.left&&e.clientX<=n.right&&e.clientY>=n.top&&e.clientY<=n.bottom){if(e.preventDefault(),this.scale===1)return;this.isDragging=true,this.lastX=e.clientX,this.lastY=e.clientY,this.image.style.cursor="grabbing";}}handleMouseMove(e){if(!this.isDragging)return;const n=e.clientX-this.lastX,i=e.clientY-this.lastY;this.offsetX+=n,this.offsetY+=i,this.lastX=e.clientX,this.lastY=e.clientY,this.updateTransform(),this.updateTransform();}handleMouseUp(){this.isDragging&&(this.constrain_to_bounds(true),this.updateTransform(),this.isDragging=false,this.image.style.cursor=this.scale>1?"grab":"zoom-in");}async handleWheel(e){e.preventDefault();const n=this.container.getBoundingClientRect(),i=this.image.getBoundingClientRect();if(e.clientXi.right||e.clientYi.bottom)return;const s=1.05,o=this.scale,a=-Math.sign(e.deltaY)>0?Math.min(15,o*s):Math.max(1,o/s);if(a===o)return;const r=e.clientX-n.left-this.initial_left_padding,l=e.clientY-n.top-this.initial_top_padding;this.scale=a,this.offsetX=this.compute_new_offset({cursor_position:r,current_offset:this.offsetX,new_scale:a,old_scale:o}),this.offsetY=this.compute_new_offset({cursor_position:l,current_offset:this.offsetY,new_scale:a,old_scale:o}),this.updateTransform(),this.constrain_to_bounds(),this.updateTransform(),this.image.style.cursor=this.scale>1?"grab":"zoom-in";}compute_new_position({position:e,scale:n,anchor_position:i}){return e-(e-i)*(n/this.scale)}compute_new_offset({cursor_position:e,current_offset:n,new_scale:i,old_scale:s}){return e-i/s*(e-n)}constrain_to_bounds(e=false){if(this.scale===1){this.offsetX=0,this.offsetY=0;return}const n={top:this.real_image_size.top*this.scale+this.offsetY,left:this.real_image_size.left*this.scale+this.offsetX,width:this.real_image_size.width*this.scale,height:this.real_image_size.height*this.scale,bottom:this.real_image_size.top*this.scale+this.offsetY+this.real_image_size.height*this.scale,right:this.real_image_size.left*this.scale+this.offsetX+this.real_image_size.width*this.scale},i=this.real_image_size.left+this.real_image_size.width,s=this.real_image_size.top+this.real_image_size.height;e&&(n.top>this.real_image_size.top?this.offsetY=this.calculate_position(this.real_image_size.top,0,"y"):n.bottomthis.real_image_size.left?this.offsetX=this.calculate_position(this.real_image_size.left,0,"x"):n.rightn!==e);}notify({x:e,y:n,scale:i}){this.subscribers.forEach(s=>s({x:e,y:n,scale:i}));}handleTouchStart(e){e.preventDefault();const n=this.image.getBoundingClientRect(),i=e.touches[0];if(i.clientX>=n.left&&i.clientX<=n.right&&i.clientY>=n.top&&i.clientY<=n.bottom){if(e.touches.length===1&&this.scale>1)this.isDragging=true,this.lastX=i.clientX,this.lastY=i.clientY;else if(e.touches.length===2){const s=e.touches[0],o=e.touches[1];this.last_touch_distance=Math.hypot(o.clientX-s.clientX,o.clientY-s.clientY);}}}get_image_size(e){if(!e)return;const n=e.parentElement?.getBoundingClientRect();if(!n)return;const i=e.naturalWidth/e.naturalHeight,s=n.width/n.height;let o,a;i>s?(o=n.width,a=n.width/i):(a=n.height,o=n.height*i);const r=(n.width-o)/2,l=(n.height-a)/2;this.real_image_size={top:l,left:r,width:o,height:a};}handleTouchMove(e){if(e.touches.length===1&&this.isDragging){e.preventDefault();const n=e.touches[0],i=n.clientX-this.lastX,s=n.clientY-this.lastY;this.offsetX+=i,this.offsetY+=s,this.lastX=n.clientX,this.lastY=n.clientY,this.updateTransform();}else if(e.touches.length===2){e.preventDefault();const n=e.touches[0],i=e.touches[1],s=Math.hypot(i.clientX-n.clientX,i.clientY-n.clientY);if(this.last_touch_distance===0){this.last_touch_distance=s;return}const o=s/this.last_touch_distance,a=this.scale,r=Math.min(15,Math.max(1,a*o));if(r===a){this.last_touch_distance=s;return}const l=this.container.getBoundingClientRect(),h=(n.clientX+i.clientX)/2-l.left-this.initial_left_padding,f=(n.clientY+i.clientY)/2-l.top-this.initial_top_padding;this.scale=r,this.offsetX=this.compute_new_offset({cursor_position:h,current_offset:this.offsetX,new_scale:r,old_scale:a}),this.offsetY=this.compute_new_offset({cursor_position:f,current_offset:this.offsetY,new_scale:r,old_scale:a}),this.updateTransform(),this.constrain_to_bounds(),this.updateTransform(),this.last_touch_distance=s,this.image.style.cursor=this.scale>1?"grab":"zoom-in";}}handleTouchEnd(e){this.isDragging&&(this.constrain_to_bounds(true),this.updateTransform(),this.isDragging=false),e.touches.length===0&&(this.last_touch_distance=0);}calculate_position(e,n,i){if(this.container.getBoundingClientRect(),i==="x"){const s=e,o=this.real_image_size.left+n*this.real_image_size.width;return s-o*this.scale}if(i==="y"){const s=e,o=this.real_image_size.top+n*this.real_image_size.height;return s-o*this.scale}return 0}}function Cn(t,e){t.component(n=>{var i$1;let s,o$1,a=fallback(e.value,()=>[null,null],true),r$1=fallback(e.label,void 0),l$1=fallback(e.show_download_button,true),h=e.show_label,f=e.i18n,m=e.position,d=fallback(e.layer_images,true),b=fallback(e.show_single,false),E=e.slider_color,z=fallback(e.show_fullscreen_button,true),g=fallback(e.fullscreen,false),p$1=fallback(e.buttons,null),X=fallback(e.on_custom_button_click,null),T=fallback(e.el_width,0),c=e.max_height,_=fallback(e.interactive,true);let k$2,A,M=tweened({x:0,y:0,z:1},{duration:75}),R;function x(S,y,D,B,j,Mt){return (S*D+B-j)/Mt/y}let v=0,w$1=null,L=null;function Q(S,y){!S||!y||(w$1?.destroy(),L?.disconnect(),S?.getBoundingClientRect().width,v=y?.getBoundingClientRect().width||0,w$1=new Tn(y,S),w$1.subscribe(({x:D,y:B,scale:j})=>{M.set({x:D,y:B,z:j});}),L=new ResizeObserver(D=>{for(const B of D)B.target===y&&(v=B.contentRect.width),B.target===S&&B.contentRect.width;}),L.observe(y),L.observe(S));}let N={top:0,left:0,width:0,height:0};s=x(m,v,N.width,N.left,store_get(i$1??={},"$transform",M).x,store_get(i$1??={},"$transform",M).z),o$1=d?`clip-path: inset(0 0 0 ${s*100}%)`:"",Q(k$2,A);let I=true,U;function W(S){k(S,{show_label:h,Icon:i,label:r$1||f("image.image")}),S.push(" "),(a===null||a[0]===null||a[1]===null)&&!b?(S.push(""),p(S,{unpadded_box:true,size:"large",children:y=>{i(y);},$$slots:{default:true}})):(S.push(""),S.push('
    '),y(S,{buttons:p$1,on_custom_button_click:X,children:y=>{w(y,{Icon:r,label:f("common.undo"),disabled:store_get(i$1??={},"$transform",M).z===1,onclick:()=>w$1?.reset_zoom()}),y.push(" "),z?(y.push(""),k$1(y,{fullscreen:g})):y.push(""),y.push(" "),l$1?(y.push(""),u(y,{href:a[1]?.url,download:a[1]?.orig_name||"image",children:D=>{w(D,{Icon:l,label:f("common.download")});},$$slots:{default:true}})):y.push(""),y.push(" "),_?(y.push(""),w(y,{Icon:o,label:"Remove Image",onclick:D=>{a=[null,null],D.stopPropagation();}})):y.push(""),y.push("");}}),S.push(` `),At(S,{slider_color:E,image_size:N,get position(){return m},set position(y){m=y,I=false;},get el(){return A},set el(y){A=y,I=false;},get parent_el(){return R},set parent_el(y){R=y,I=false;},children:y=>{J(y,{src:a?.[0]?.url,alt:"",loading:"lazy",variant:"preview",transform:`translate(${stringify(store_get(i$1??={},"$transform",M).x)}px, ${stringify(store_get(i$1??={},"$transform",M).y)}px) scale(${stringify(store_get(i$1??={},"$transform",M).z)})`,fullscreen:g,max_height:c,get img_el(){return k$2},set img_el(D){k$2=D,I=false;}}),y.push(" "),J(y,{variant:"preview",fixed:d,hidden:!a?.[1]?.url,src:a?.[1]?.url,alt:"",loading:"lazy",style:`${stringify(o$1)}; background: var(--block-background-fill);`,transform:`translate(${stringify(store_get(i$1??={},"$transform",M).x)}px, ${stringify(store_get(i$1??={},"$transform",M).y)}px) scale(${stringify(store_get(i$1??={},"$transform",M).z)})`,fullscreen:g,max_height:c}),y.push("");},$$slots:{default:true}}),S.push("
    ")),S.push("");}do I=true,U=n.copy(),W(U);while(!I);n.subsume(U),i$1&&unsubscribe_stores(i$1),bind_props(e,{value:a,label:r$1,show_download_button:l$1,show_label:h,i18n:f,position:m,layer_images:d,show_single:b,slider_color:E,show_fullscreen_button:z,fullscreen:g,buttons:p$1,on_custom_button_click:X,el_width:T,max_height:c,interactive:_});});}function Rn(t,e){t.component(n=>{n.push('
    '),w(n,{Icon:o,label:"Remove Image",onclick:s=>{s.stopPropagation();}}),n.push("
    ");});}function Dn(t,e){t.component(n=>{let i$1=e.value,s=fallback(e.label,void 0),o=e.show_label,a=e.root,r=e.position,l$1=fallback(e.upload_count,2),h=fallback(e.show_download_button,true),f=e.slider_color,m=e.upload,d=e.stream_handler,b=fallback(e.max_file_size,null),E=e.i18n,z=e.max_height,g=fallback(e.upload_promise,null),p$1=i$1||[null,null],X,T;async function c(x,v){const w=[i$1[0],i$1[1]];x.length>1?w[v]=x[0]:w[v]=x[v],i$1=w,await tick();}let _="";let k$1=fallback(e.dragging,false);JSON.stringify(i$1)!==_&&(_=JSON.stringify(i$1),p$1=i$1);let A=true,M;function R(x){k(x,{show_label:o,Icon:i,label:s||E("image.image")}),x.push('
    '),i$1?.[0]?.url||i$1?.[1]?.url?(x.push(""),Rn(x)):x.push(""),x.push(" "),i$1?.[1]?.url?(x.push(""),x.push('
    '),h?(x.push(""),u(x,{href:i$1[1].url,download:i$1[1].orig_name||"image",children:v=>{w(v,{Icon:l});},$$slots:{default:true}})):x.push(""),x.push("
    ")):x.push(""),x.push(" "),At(x,{disabled:l$1==2||!i$1?.[0],slider_color:f,get position(){return r},set position(v){r=v,A=false;},children:v=>{v.push(``),p$1?.[0]?(v.push(""),J(v,{variant:"upload",src:p$1[0]?.url,alt:"",max_height:z,get img_el(){return X},set img_el(w){X=w,A=false;}})):(v.push(""),v.push(``),ee$1(v,{filetype:"image/*",onload:w=>c(w,0),disable_click:!!i$1?.[0],root:a,file_count:"multiple",upload:m,stream_handler:d,max_file_size:b,get upload_promise(){return g},set upload_promise(w){g=w,A=false;},get dragging(){return k$1},set dragging(w){k$1=w,A=false;},children:w=>{w.push(""),slot(w,e,"default",{}),w.push("");},$$slots:{default:true}}),v.push("
    ")),v.push(" "),!p$1?.[1]&&l$1===2?(v.push(""),ee$1(v,{filetype:"image/*",onload:w=>c(w,1),disable_click:!!i$1?.[1],root:a,file_count:"multiple",upload:m,stream_handler:d,max_file_size:b,get upload_promise(){return g},set upload_promise(w){g=w,A=false;},get dragging(){return k$1},set dragging(w){k$1=w,A=false;},children:w=>{w.push(""),slot(w,e,"default",{}),w.push("");},$$slots:{default:true}})):(v.push(""),!p$1?.[1]&&l$1===1?(v.push(""),v.push(``),p(v,{unpadded_box:true,size:"large",children:w=>{i(w);},$$slots:{default:true}}),v.push("")):(v.push(""),p$1?.[1]?(v.push(""),J(v,{variant:"upload",src:p$1[1].url,alt:"",fixed:l$1===1,transform:"translate(0px, 0px) scale(1)",max_height:z})):v.push(""),v.push("")),v.push("")),v.push("");},$$slots:{default:true}}),x.push("");}do A=true,M=n.copy(),R(M);while(!A);n.subsume(M),bind_props(e,{value:i$1,label:s,show_label:o,root:a,position:r,upload_count:l$1,show_download_button:h,slider_color:f,upload:m,stream_handler:d,max_file_size:b,i18n:E,max_height:z,upload_promise:g,dragging:k$1});});}function Ln(t,e){let n=fallback(e.value,()=>[null,null],true),i=e.upload,s=e.stream_handler,o=e.label,a=e.show_label,r=e.i18n,l=e.root,h=fallback(e.upload_count,1),f=e.dragging,m=e.max_height,d=fallback(e.max_file_size,null),b=fallback(e.upload_promise,null),E=true,z;function g(p){Dn(p,{slider_color:"var(--border-color-primary)",position:.5,root:l,label:o,show_label:a,upload_count:h,stream_handler:s,upload:i,max_file_size:d,max_height:m,i18n:r,get upload_promise(){return b},set upload_promise(X){b=X,E=false;},get value(){return n},set value(X){n=X,E=false;},get dragging(){return f},set dragging(X){f=X,E=false;},children:X=>{X.push(""),slot(X,e,"default",{}),X.push("");},$$slots:{default:true}});}do E=true,z=t.copy(),g(z);while(!E);t.subsume(z),bind_props(e,{value:n,upload:i,stream_handler:s,label:o,show_label:a,i18n:r,root:l,upload_count:h,dragging:f,max_height:m,max_file_size:d,upload_promise:b});}function ui(t,e){t.component(n=>{let i;class s extends ${async get_data(){return i&&(await i,await tick()),await super.get_data()}}const{$$slots:o,$$events:a,...r}=e,l=new s(r);let h=false,f=false,m=Math.max(0,Math.min(100,l.props.slider_position))/100;l.watch_for_change();let d=true,b;function E(z){!l.shared.interactive||l.props.value?.[1]&&l.props.value?.[0]?(z.push(""),G(z,{visible:l.shared.visible,variant:"solid",border_mode:f?"focus":"base",padding:false,elem_id:l.shared.elem_id,elem_classes:l.shared.elem_classes,height:l.props.height||void 0,width:l.props.width,allow_overflow:false,container:l.shared.container,scale:l.shared.scale,min_width:l.shared.min_width,get fullscreen(){return h},set fullscreen(g){h=g,d=false;},children:g=>{W(g,spread_props([{autoscroll:l.shared.autoscroll,i18n:l.i18n},l.shared.loading_status])),g.push(" "),Cn(g,{fullscreen:h,interactive:l.shared.interactive,label:l.shared.label,show_label:l.shared.show_label,show_download_button:l.props.buttons.some(p=>typeof p=="string"&&p==="download"),i18n:l.i18n,show_fullscreen_button:l.props.buttons.some(p=>typeof p=="string"&&p==="fullscreen"),buttons:l.props.buttons,on_custom_button_click:p=>{l.dispatch("custom_button_click",{id:p});},position:m,slider_color:l.props.slider_color,max_height:l.props.max_height,get value(){return l.props.value},set value(p){l.props.value=p,d=false;}}),g.push("");},$$slots:{default:true}})):(z.push(""),G(z,{visible:l.shared.visible,variant:l.props.value===null?"dashed":"solid",border_mode:f?"focus":"base",padding:false,elem_id:l.shared.elem_id,elem_classes:l.shared.elem_classes,height:l.props.height||void 0,width:l.props.width,allow_overflow:false,container:l.shared.container,scale:l.shared.scale,min_width:l.shared.min_width,children:g=>{W(g,spread_props([{autoscroll:l.shared.autoscroll,i18n:l.i18n},l.shared.loading_status,{on_clear_status:()=>l.dispatch("clear_status",l.shared.loading_status)}])),g.push(" "),Ln(g,{root:l.shared.root,label:l.shared.label,show_label:l.shared.show_label,upload_count:l.props.upload_count,max_file_size:l.shared.max_file_size,i18n:l.i18n,upload:(...p)=>l.shared.client.upload(...p),stream_handler:l.shared.client?.stream,max_height:l.props.max_height,get upload_promise(){return i},set upload_promise(p){i=p,d=false;},get value(){return l.props.value},set value(p){l.props.value=p,d=false;},get dragging(){return f},set dragging(p){f=p,d=false;},children:p=>{p.push(""),k$2(p,{i18n:l.i18n,type:"image",placeholder:l.props.placeholder}),p.push("");},$$slots:{default:true}}),g.push("");},$$slots:{default:true}})),z.push("");}do d=true,b=n.copy(),E(b);while(!d);n.subsume(b);});} + +export { ui as default }; +//# sourceMappingURL=Index57-BitBxvfY.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index6-Dg9kw5g4.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index6-Dg9kw5g4.js new file mode 100644 index 0000000000000000000000000000000000000000..541dc7b47eb648858ed2f2f52d2f562b6161d64f --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index6-Dg9kw5g4.js @@ -0,0 +1,14 @@ +import { f as fallback } from './async-D55cHugf.js'; +import { d as bind_props, s as slot } from './index-u8mz_F03.js'; +import { G } from './Block-DZmzQwnI.js'; +import './2-BLdXJizP.js'; +import './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; + +function b(a,l){let i=l.elem_id,s=l.elem_classes,m=fallback(l.visible,true);G(a,{elem_id:i,elem_classes:s,visible:m,explicit_call:true,children:t=>{t.push(""),slot(t,l,"default",{}),t.push("");},$$slots:{default:true}}),bind_props(l,{elem_id:i,elem_classes:s,visible:m});} + +export { b as default }; +//# sourceMappingURL=Index6-Dg9kw5g4.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index7-Dolnx2KV.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index7-Dolnx2KV.js new file mode 100644 index 0000000000000000000000000000000000000000..0b2d489cc663091012bcdf13dd88d351d2fc93c0 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index7-Dolnx2KV.js @@ -0,0 +1,17 @@ +import './async-D55cHugf.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; +import './2-BLdXJizP.js'; +import { $ } from './utils.svelte-B2py64Fz.js'; +import { q } from './Button-C_X4rUwO.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; +import './clone-Yk88IHKV.js'; +import './index-u8mz_F03.js'; +import './context-CBkBucIx.js'; +import './Image-CuPo5pWT.js'; + +function v(s,i){s.component(a=>{let{$$slots:c,$$events:d,...r}=i;const e=new $(r);function o(){e.dispatch("click");}q(a,{value:e.props.value,variant:e.props.variant,elem_id:e.shared.elem_id,elem_classes:e.shared.elem_classes,size:e.props.size,scale:e.shared.scale,link:e.props.link,icon:e.props.icon,min_width:e.shared.min_width,visible:e.shared.visible,disabled:!e.shared.interactive,link_target:e.props.link_target,onclick:o,children:t=>{t.push(`${escape_html(e.props.value??"")}`);}});});} + +export { q as BaseButton, v as default }; +//# sourceMappingURL=Index7-Dolnx2KV.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index8-sgQSOedG.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index8-sgQSOedG.js new file mode 100644 index 0000000000000000000000000000000000000000..37d1ce617f83c8e87f4562580710d21969b87310 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index8-sgQSOedG.js @@ -0,0 +1,23 @@ +import './async-D55cHugf.js'; +import { c as spread_props } from './index-u8mz_F03.js'; +import './2-BLdXJizP.js'; +import { $ } from './utils.svelte-B2py64Fz.js'; +import { G } from './Block-DZmzQwnI.js'; +import { u } from './Info-DU6zbiUl.js'; +import { y } from './IconButtonWrapper-CjFRPb3y.js'; +import { W } from './index3-Df92vI-L.js'; +import { d } from './Checkbox-C7eMNvyZ.js'; +import './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; +import './clone-Yk88IHKV.js'; +import './html-CfyvkLET.js'; +import './IconButton-BRnu7KaR.js'; +import './Clear-D7Yjckqz.js'; + +function A(e,l){e.component(i=>{let{$$slots:v,$$events:g,...u$1}=l;const s=new $(u$1);let a=true,p;function c(h){G(h,{visible:s.shared.visible,elem_id:s.shared.elem_id,elem_classes:s.shared.elem_classes,children:t=>{W(t,spread_props([{autoscroll:s.shared.autoscroll,i18n:s.i18n},s.shared.loading_status,{on_clear_status:()=>s.dispatch("clear_status",s.shared.loading_status)}])),t.push(" "),s.shared.show_label&&s.props.buttons&&s.props.buttons.length>0?(t.push(""),y(t,{buttons:s.props.buttons,on_custom_button_click:o=>{s.dispatch("custom_button_click",{id:o});}})):t.push(""),t.push(" "),d(t,{label:s.shared.label||s.i18n("checkbox.checkbox"),interactive:s.shared.interactive,show_label:s.shared.show_label,on_change:o=>s.dispatch("change",o),on_input:()=>s.dispatch("input"),on_select:o=>s.dispatch("select",o),get value(){return s.props.value},set value(o){s.props.value=o,a=false;}}),t.push(" "),s.props.info?(t.push(""),u(t,{info:s.props.info})):t.push(""),t.push("");},$$slots:{default:true}});}do a=true,p=i.copy(),c(p);while(!a);i.subsume(p);});} + +export { d as BaseCheckbox, A as default }; +//# sourceMappingURL=Index8-sgQSOedG.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index9-lTiGg_Yw.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index9-lTiGg_Yw.js new file mode 100644 index 0000000000000000000000000000000000000000..7abbc8aad805401d9ab5eca1d095586d63be40de --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Index9-lTiGg_Yw.js @@ -0,0 +1,19 @@ +import './async-D55cHugf.js'; +import { c as spread_props, s as slot } from './index-u8mz_F03.js'; +import './2-BLdXJizP.js'; +import { $ } from './utils.svelte-B2py64Fz.js'; +import { y } from './Index.svelte_svelte_type_style_lang-DXpx_9zF.js'; +import './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; +import './clone-Yk88IHKV.js'; +import './index3-Df92vI-L.js'; +import './IconButton-BRnu7KaR.js'; +import './Clear-D7Yjckqz.js'; + +function h(a,t){a.component(p=>{let{$$slots:i,$$events:n,...l}=t;const m=new $(l);y(p,spread_props([m.shared,{children:o=>{o.push(""),slot(o,t,"default",{}),o.push("");},$$slots:{default:true}}]));});} + +export { y as BaseColumn, h as default }; +//# sourceMappingURL=Index9-lTiGg_Yw.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Info-DU6zbiUl.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Info-DU6zbiUl.js new file mode 100644 index 0000000000000000000000000000000000000000..2322e7090272587b04b59288292ecdf6c7594ede --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Info-DU6zbiUl.js @@ -0,0 +1,8 @@ +import './async-D55cHugf.js'; +import { d as bind_props } from './index-u8mz_F03.js'; +import { h as html } from './html-CfyvkLET.js'; + +/* empty css */const c=/`([^`]+)`/g,a=/\[([^\]]+)\]\(([^)]+)\)/g,_=/\*\*(.+?)\*\*/g,l=/__(.+?)__/g,s=/\*(.+?)\*/g,p=/(?/g,">").replace(/"/g,""")}function m(n,e,t){const r=t.trim();return i.test(r)?/^https?:/i.test(r)?`${e}`:e:`${e}`}function f(n){let e=g(n);return e=e.replace(c,"$1"),e=e.replace(a,m),e=e.replace(_,"$1"),e=e.replace(l,"$1"),e=e.replace(s,"$1"),e=e.replace(p,"$1"),e=e.replace(/\n/g,"
    "),e}function u(n,e){n.component(t=>{let r=e.info;t.push(`
    ${html(f(r))}
    `),bind_props(e,{info:r});});} + +export { u }; +//# sourceMappingURL=Info-DU6zbiUl.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/JSON-CDSHpFEC.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/JSON-CDSHpFEC.js new file mode 100644 index 0000000000000000000000000000000000000000..e05bb42b618f4f2162644a424518bfe3305f4674 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/JSON-CDSHpFEC.js @@ -0,0 +1,14 @@ +import './async-D55cHugf.js'; +import { g as attr_style, f as attr_class, i as stringify, a as attr, e as ensure_array_like } from './index-u8mz_F03.js'; +import { e } from './Check-C7_ZsXgh.js'; +import { h } from './Copy-B8YOhH7c.js'; +import { w as w$1 } from './IconButton-BRnu7KaR.js'; +import { p } from './Empty-DGRbZO0a.js'; +import './2-BLdXJizP.js'; +import { y } from './IconButtonWrapper-CjFRPb3y.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; + +function J(c){c.push('');}function w(c,b){c.component(s=>{let{value:t,depth:n=0,is_root:g=false,is_last_item:f=true,key:y=null,open:_=false,theme_mode:m="system",show_indices:h=false,interactive:v=true}=b,o=_?false:n>=3,u=[];function i(l){return l!==null&&(typeof l=="object"||Array.isArray(l))}function d(l){return Array.isArray(l)?`Array(${l.length})`:typeof l=="object"&&l!==null?`Object(${Object.keys(l).length})`:String(l)}if(s.push(` `),i(t)?(s.push(""),s.push(``)):s.push(""),s.push(" "),y!==null?(s.push(""),s.push(`"${escape_html(y)}":`)):s.push(""),s.push(" "),i(t)?(s.push(""),s.push(`${escape_html(Array.isArray(t)?"[":"{")} `),o?(s.push(""),s.push(` ${escape_html(Array.isArray(t)?"]":"}")}`)):s.push(""),s.push("")):(s.push(""),typeof t=="string"?(s.push(""),s.push(`"${escape_html(t)}"`)):(s.push(""),typeof t=="number"?(s.push(""),s.push(`${escape_html(t)}`)):(s.push(""),typeof t=="boolean"?(s.push(""),s.push(`${escape_html(t.toString())}`)):(s.push(""),t===null?(s.push(""),s.push('null')):(s.push(""),s.push(`${escape_html(t)}`)),s.push("")),s.push("")),s.push("")),s.push("")),s.push(" "),!f&&(!i(t)||o)?(s.push(""),s.push(',')):s.push(""),s.push(" "),i(t)){s.push(""),s.push(``);const l=ensure_array_like(u);for(let e=0,p=l.length;e
    ${escape_html(Array.isArray(t)?"]":"}")} `),f?s.push(""):(s.push(""),s.push(',')),s.push("
    ");}else s.push("");s.push("");});}function K(c,b){c.component(s=>{let{value:t={},open:n=false,theme_mode:g="system",show_indices:f=false,label_height:y$1,interactive:_=true,show_copy_button:m=true,buttons:h$1=null,on_custom_button_click:v=null}=b,o=`calc(100% - ${y$1}px)`,u=false,i;function d(){u=true,i&&clearTimeout(i),i=setTimeout(()=>{u=false;},1e3);}async function l(){"clipboard"in navigator&&(await navigator.clipboard.writeText(JSON.stringify(t,null,2)),d());}function e$1(p){return p&&Object.keys(p).length===0&&Object.getPrototypeOf(p)===Object.prototype&&JSON.stringify(p)===JSON.stringify({})}t&&t!=='""'&&!e$1(t)?(s.push(""),m||h$1&&h$1.some(p=>typeof p!="string")?(s.push(""),y(s,{buttons:h$1,on_custom_button_click:v,children:p=>{m?(p.push(""),w$1(p,{show_label:false,label:u?"Copied":"Copy",Icon:u?e:h,onclick:()=>l()})):p.push(""),p.push("");}})):s.push(""),s.push(`
    `),w(s,{value:t,depth:0,is_root:true,open:n,theme_mode:g,show_indices:f,interactive:_}),s.push("
    ")):(s.push(""),s.push('
    '),p(s,{children:p=>{J(p);},$$slots:{default:true}}),s.push("
    ")),s.push("");});} + +export { J, K }; +//# sourceMappingURL=JSON-CDSHpFEC.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/LineChart-DIvFgn2j.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/LineChart-DIvFgn2j.js new file mode 100644 index 0000000000000000000000000000000000000000..ab3dcdc99ed38d84be5ea4da95d8369cefe0bf07 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/LineChart-DIvFgn2j.js @@ -0,0 +1,6 @@ +import './async-D55cHugf.js'; + +function e(i){i.push('');} + +export { e }; +//# sourceMappingURL=LineChart-DIvFgn2j.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/MarkdownCode-DLHRxFlS.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/MarkdownCode-DLHRxFlS.js new file mode 100644 index 0000000000000000000000000000000000000000..a947c249eaaea08f0bca983d26b3ec054f3d0d7b --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/MarkdownCode-DLHRxFlS.js @@ -0,0 +1,74 @@ +import './async-D55cHugf.js'; +import { f as attr_class } from './index-u8mz_F03.js'; +import { n as ne$1 } from './prism-python--2v-p3P4.js'; +import { Z as Ze$1 } from './index50-G3WrDDFf.js'; +import { h as html } from './html-CfyvkLET.js'; + +function q(){return {async:false,breaks:false,extensions:null,gfm:true,hooks:null,pedantic:false,renderer:null,silent:false,tokenizer:null,walkTokens:null}}let S=q();function me(i){S=i;}const Ae=/[&<>"']/,Ue=new RegExp(Ae.source,"g"),ke=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,He=new RegExp(ke.source,"g"),Ge={"&":"&","<":"<",">":">",'"':""","'":"'"},J=i=>Ge[i];function k(i,t){if(t){if(Ae.test(i))return i.replace(Ue,J)}else if(ke.test(i))return i.replace(He,J);return i}const qe=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function Ze(i){return i.replace(qe,(t,e)=>(e=e.toLowerCase(),e==="colon"?":":e.charAt(0)==="#"?e.charAt(1)==="x"?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):""))}const Xe=/(^|[^\[])\^/g;function g(i,t){let e=typeof i=="string"?i:i.source;t=t||"";const n={replace:(u,s)=>{let r=typeof s=="string"?s:s.source;return r=r.replace(Xe,"$1"),e=e.replace(u,r),n},getRegex:()=>new RegExp(e,t)};return n}function ee(i){try{i=encodeURI(i).replace(/%25/g,"%");}catch{return null}return i}const R={exec:()=>null};function te(i,t){const e=i.replace(/\|/g,(s,r,a)=>{let o=false,c=r;for(;--c>=0&&a[c]==="\\";)o=!o;return o?"|":" |"}),n=e.split(/ \|/);let u=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length{const s=u.match(/^\s+/);if(s===null)return u;const[r]=s;return r.length>=n.length?u.slice(n.length):u}).join(` +`)}class v{options;rules;lexer;constructor(t){this.options=t||S;}space(t){const e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return {type:"space",raw:e[0]}}code(t){const e=this.rules.block.code.exec(t);if(e){const n=e[0].replace(/^ {1,4}/gm,"");return {type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?n:O(n,` +`)}}}fences(t){const e=this.rules.block.fences.exec(t);if(e){const n=e[0],u=Ke(n,e[3]||"");return {type:"code",raw:n,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:u}}}heading(t){const e=this.rules.block.heading.exec(t);if(e){let n=e[2].trim();if(/#$/.test(n)){const u=O(n,"#");(this.options.pedantic||!u||/ $/.test(u))&&(n=u.trim());}return {type:"heading",raw:e[0],depth:e[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(t){const e=this.rules.block.hr.exec(t);if(e)return {type:"hr",raw:e[0]}}blockquote(t){const e=this.rules.block.blockquote.exec(t);if(e){let n=e[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,` + $1`);n=O(n.replace(/^ *>[ \t]?/gm,""),` +`);const u=this.lexer.state.top;this.lexer.state.top=true;const s=this.lexer.blockTokens(n);return this.lexer.state.top=u,{type:"blockquote",raw:e[0],tokens:s,text:n}}}list(t){let e=this.rules.block.list.exec(t);if(e){let n=e[1].trim();const u=n.length>1,s={type:"list",raw:"",ordered:u,start:u?+n.slice(0,-1):"",loose:false,items:[]};n=u?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=u?n:"[*+-]");const r=new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`);let a="",o="",c=false;for(;t;){let l=false;if(!(e=r.exec(t))||this.rules.block.hr.test(t))break;a=e[0],t=t.substring(a.length);let D=e[2].split(` +`,1)[0].replace(/^\t+/,m=>" ".repeat(3*m.length)),p=t.split(` +`,1)[0],d=0;this.options.pedantic?(d=2,o=D.trimStart()):(d=e[2].search(/[^ ]/),d=d>4?1:d,o=D.slice(d),d+=e[1].length);let F=false;if(!D&&/^ *$/.test(p)&&(a+=p+` +`,t=t.substring(p.length+1),l=true),!l){const m=new RegExp(`^ {0,${Math.min(3,d-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),f=new RegExp(`^ {0,${Math.min(3,d-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),w=new RegExp(`^ {0,${Math.min(3,d-1)}}(?:\`\`\`|~~~)`),b=new RegExp(`^ {0,${Math.min(3,d-1)}}#`);for(;t;){const A=t.split(` +`,1)[0];if(p=A,this.options.pedantic&&(p=p.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),w.test(p)||b.test(p)||m.test(p)||f.test(t))break;if(p.search(/[^ ]/)>=d||!p.trim())o+=` +`+p.slice(d);else {if(F||D.search(/[^ ]/)>=4||w.test(D)||b.test(D)||f.test(D))break;o+=` +`+p;}!F&&!p.trim()&&(F=true),a+=A+` +`,t=t.substring(A.length+1),D=p.slice(d);}}s.loose||(c?s.loose=true:/\n *\n *$/.test(a)&&(c=true));let E=null,C;this.options.gfm&&(E=/^\[[ xX]\] /.exec(o),E&&(C=E[0]!=="[ ] ",o=o.replace(/^\[[ xX]\] +/,""))),s.items.push({type:"list_item",raw:a,task:!!E,checked:C,loose:false,text:o,tokens:[]}),s.raw+=a;}s.items[s.items.length-1].raw=a.trimEnd(),s.items[s.items.length-1].text=o.trimEnd(),s.raw=s.raw.trimEnd();for(let l=0;ld.type==="space"),p=D.length>0&&D.some(d=>/\n.*\n/.test(d.raw));s.loose=p;}if(s.loose)for(let l=0;l$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return {type:"def",tag:n,raw:e[0],href:u,title:s}}}table(t){const e=this.rules.block.table.exec(t);if(!e||!/[:|]/.test(e[2]))return;const n=te(e[1]),u=e[2].replace(/^\||\| *$/g,"").split("|"),s=e[3]&&e[3].trim()?e[3].replace(/\n[ \t]*$/,"").split(` +`):[],r={type:"table",raw:e[0],header:[],align:[],rows:[]};if(n.length===u.length){for(const a of u)/^ *-+: *$/.test(a)?r.align.push("right"):/^ *:-+: *$/.test(a)?r.align.push("center"):/^ *:-+ *$/.test(a)?r.align.push("left"):r.align.push(null);for(const a of n)r.header.push({text:a,tokens:this.lexer.inline(a)});for(const a of s)r.rows.push(te(a,r.header.length).map(o=>({text:o,tokens:this.lexer.inline(o)})));return r}}lheading(t){const e=this.rules.block.lheading.exec(t);if(e)return {type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(t){const e=this.rules.block.paragraph.exec(t);if(e){const n=e[1].charAt(e[1].length-1)===` +`?e[1].slice(0,-1):e[1];return {type:"paragraph",raw:e[0],text:n,tokens:this.lexer.inline(n)}}}text(t){const e=this.rules.block.text.exec(t);if(e)return {type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){const e=this.rules.inline.escape.exec(t);if(e)return {type:"escape",raw:e[0],text:k(e[1])}}tag(t){const e=this.rules.inline.tag.exec(t);if(e)return !this.lexer.state.inLink&&/^/i.test(e[0])&&(this.lexer.state.inLink=false),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(e[0])?this.lexer.state.inRawBlock=true:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(e[0])&&(this.lexer.state.inRawBlock=false),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:false,text:e[0]}}link(t){const e=this.rules.inline.link.exec(t);if(e){const n=e[2].trim();if(!this.options.pedantic&&/^$/.test(n))return;const r=O(n.slice(0,-1),"\\");if((n.length-r.length)%2===0)return}else {const r=Ye(e[2],"()");if(r>-1){const o=(e[0].indexOf("!")===0?5:4)+e[1].length+r;e[2]=e[2].substring(0,r),e[0]=e[0].substring(0,o).trim(),e[3]="";}}let u=e[2],s="";if(this.options.pedantic){const r=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(u);r&&(u=r[1],s=r[3]);}else s=e[3]?e[3].slice(1,-1):"";return u=u.trim(),/^$/.test(n)?u=u.slice(1):u=u.slice(1,-1)),ne(e,{href:u&&u.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer)}}reflink(t,e){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){const u=(n[2]||n[1]).replace(/\s+/g," "),s=e[u.toLowerCase()];if(!s){const r=n[0].charAt(0);return {type:"text",raw:r,text:r}}return ne(n,s,n[0],this.lexer)}}emStrong(t,e,n=""){let u=this.rules.inline.emStrongLDelim.exec(t);if(!u||u[3]&&n.match(/[\p{L}\p{N}]/u))return;if(!(u[1]||u[2]||"")||!n||this.rules.inline.punctuation.exec(n)){const r=[...u[0]].length-1;let a,o,c=r,l=0;const D=u[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(D.lastIndex=0,e=e.slice(-1*t.length+r);(u=D.exec(e))!=null;){if(a=u[1]||u[2]||u[3]||u[4]||u[5]||u[6],!a)continue;if(o=[...a].length,u[3]||u[4]){c+=o;continue}else if((u[5]||u[6])&&r%3&&!((r+o)%3)){l+=o;continue}if(c-=o,c>0)continue;o=Math.min(o,o+c+l);const p=[...u[0]][0].length,d=t.slice(0,r+u.index+p+o);if(Math.min(r,o)%2){const E=d.slice(1,-1);return {type:"em",raw:d,text:E,tokens:this.lexer.inlineTokens(E)}}const F=d.slice(2,-2);return {type:"strong",raw:d,text:F,tokens:this.lexer.inlineTokens(F)}}}}codespan(t){const e=this.rules.inline.code.exec(t);if(e){let n=e[2].replace(/\n/g," ");const u=/[^ ]/.test(n),s=/^ /.test(n)&&/ $/.test(n);return u&&s&&(n=n.substring(1,n.length-1)),n=k(n,true),{type:"codespan",raw:e[0],text:n}}}br(t){const e=this.rules.inline.br.exec(t);if(e)return {type:"br",raw:e[0]}}del(t){const e=this.rules.inline.del.exec(t);if(e)return {type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(t){const e=this.rules.inline.autolink.exec(t);if(e){let n,u;return e[2]==="@"?(n=k(e[1]),u="mailto:"+n):(n=k(e[1]),u=n),{type:"link",raw:e[0],text:n,href:u,tokens:[{type:"text",raw:n,text:n}]}}}url(t){let e;if(e=this.rules.inline.url.exec(t)){let n,u;if(e[2]==="@")n=k(e[0]),u="mailto:"+n;else {let s;do s=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(s!==e[0]);n=k(e[0]),e[1]==="www."?u="http://"+e[0]:u=e[0];}return {type:"link",raw:e[0],text:n,href:u,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(t){const e=this.rules.inline.text.exec(t);if(e){let n;return this.lexer.state.inRawBlock?n=e[0]:n=k(e[0]),{type:"text",raw:e[0],text:n}}}}const Ve=/^(?: *(?:\n|$))+/,je=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,We=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,I=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Qe=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ce=/(?:[*+-]|\d{1,9}[.)])/,we=g(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,Ce).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),Z=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Je=/^[^\n]+/,X=/(?!\s*\])(?:\\.|[^\[\]\\])+/,et=g(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",X).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),tt=g(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Ce).getRegex(),M="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|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Y=/|$))/,nt=g("^ {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|$))","i").replace("comment",Y).replace("tag",M).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),xe=g(Z).replace("hr",I).replace("heading"," {0,3}#{1,6}(?:\\s|$)").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",M).getRegex(),rt=g(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",xe).getRegex(),K={blockquote:rt,code:je,def:et,fences:We,heading:Qe,hr:I,html:nt,lheading:we,list:tt,newline:Ve,paragraph:xe,table:R,text:Je},re=g("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",I).replace("heading"," {0,3}#{1,6}(?:\\s|$)").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",M).getRegex(),ut={...K,table:re,paragraph:g(Z).replace("hr",I).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",re).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",M).getRegex()},st={...K,html:g(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Y).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:R,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:g(Z).replace("hr",I).replace("heading",` *#{1,6} *[^ +]`).replace("lheading",we).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Te=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,it=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ye=/^( {2,}|\\)\n(?!\s*$)/,at=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g,ct=g(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,N).getRegex(),pt=g("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,N).getRegex(),Dt=g("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,N).getRegex(),dt=g(/\\([punct])/,"gu").replace(/punct/g,N).getRegex(),ht=g(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("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])?)+(?![-_])/).getRegex(),gt=g(Y).replace("(?:-->|$)","-->").getRegex(),ft=g("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",gt).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),z=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Et=g(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",z).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Se=g(/^!?\[(label)\]\[(ref)\]/).replace("label",z).replace("ref",X).getRegex(),Be=g(/^!?\[(ref)\](?:\[\])?/).replace("ref",X).getRegex(),Ft=g("reflink|nolink(?!\\()","g").replace("reflink",Se).replace("nolink",Be).getRegex(),V={_backpedal:R,anyPunctuation:dt,autolink:ht,blockSkip:lt,br:ye,code:it,del:R,emStrongLDelim:ct,emStrongRDelimAst:pt,emStrongRDelimUnd:Dt,escape:Te,link:Et,nolink:Be,punctuation:ot,reflink:Se,reflinkSearch:Ft,tag:ft,text:at,url:R},bt={...V,link:g(/^!?\[(label)\]\((.*?)\)/).replace("label",z).getRegex(),reflink:g(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",z).getRegex()},G={...V,escape:g(Te).replace("])","~|])").getRegex(),url:g(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\o+" ".repeat(c.length));let n,u,s,r;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(a=>(n=a.call({lexer:this},t,e))?(t=t.substring(n.raw.length),e.push(n),true):false))){if(n=this.tokenizer.space(t)){t=t.substring(n.raw.length),n.raw.length===1&&e.length>0?e[e.length-1].raw+=` +`:e.push(n);continue}if(n=this.tokenizer.code(t)){t=t.substring(n.raw.length),u=e[e.length-1],u&&(u.type==="paragraph"||u.type==="text")?(u.raw+=` +`+n.raw,u.text+=` +`+n.text,this.inlineQueue[this.inlineQueue.length-1].src=u.text):e.push(n);continue}if(n=this.tokenizer.fences(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.heading(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.hr(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.blockquote(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.list(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.html(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.def(t)){t=t.substring(n.raw.length),u=e[e.length-1],u&&(u.type==="paragraph"||u.type==="text")?(u.raw+=` +`+n.raw,u.text+=` +`+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=u.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title});continue}if(n=this.tokenizer.table(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.lheading(t)){t=t.substring(n.raw.length),e.push(n);continue}if(s=t,this.options.extensions&&this.options.extensions.startBlock){let a=1/0;const o=t.slice(1);let c;this.options.extensions.startBlock.forEach(l=>{c=l.call({lexer:this},o),typeof c=="number"&&c>=0&&(a=Math.min(a,c));}),a<1/0&&a>=0&&(s=t.substring(0,a+1));}if(this.state.top&&(n=this.tokenizer.paragraph(s))){u=e[e.length-1],r&&u.type==="paragraph"?(u.raw+=` +`+n.raw,u.text+=` +`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=u.text):e.push(n),r=s.length!==t.length,t=t.substring(n.raw.length);continue}if(n=this.tokenizer.text(t)){t=t.substring(n.raw.length),u=e[e.length-1],u&&u.type==="text"?(u.raw+=` +`+n.raw,u.text+=` +`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=u.text):e.push(n);continue}if(t){const a="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=true,e}inline(t,e=[]){return this.inlineQueue.push({src:t,tokens:e}),e}inlineTokens(t,e=[]){let n,u,s,r=t,a,o,c;if(this.tokens.links){const l=Object.keys(this.tokens.links);if(l.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)l.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex));}for(;(a=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)r=r.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(a=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,a.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;t;)if(o||(c=""),o=false,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(l=>(n=l.call({lexer:this},t,e))?(t=t.substring(n.raw.length),e.push(n),true):false))){if(n=this.tokenizer.escape(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.tag(t)){t=t.substring(n.raw.length),u=e[e.length-1],u&&n.type==="text"&&u.type==="text"?(u.raw+=n.raw,u.text+=n.text):e.push(n);continue}if(n=this.tokenizer.link(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(n.raw.length),u=e[e.length-1],u&&n.type==="text"&&u.type==="text"?(u.raw+=n.raw,u.text+=n.text):e.push(n);continue}if(n=this.tokenizer.emStrong(t,r,c)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.codespan(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.br(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.del(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.autolink(t)){t=t.substring(n.raw.length),e.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(t))){t=t.substring(n.raw.length),e.push(n);continue}if(s=t,this.options.extensions&&this.options.extensions.startInline){let l=1/0;const D=t.slice(1);let p;this.options.extensions.startInline.forEach(d=>{p=d.call({lexer:this},D),typeof p=="number"&&p>=0&&(l=Math.min(l,p));}),l<1/0&&l>=0&&(s=t.substring(0,l+1));}if(n=this.tokenizer.inlineText(s)){t=t.substring(n.raw.length),n.raw.slice(-1)!=="_"&&(c=n.raw.slice(-1)),o=true,u=e[e.length-1],u&&u.type==="text"?(u.raw+=n.raw,u.text+=n.text):e.push(n);continue}if(t){const l="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}return e}}class P{options;constructor(t){this.options=t||S;}code(t,e,n){const u=(e||"").match(/^\S*/)?.[0];return t=t.replace(/\n$/,"")+` +`,u?'
    '+(n?t:k(t,true))+`
    +`:"
    "+(n?t:k(t,true))+`
    +`}blockquote(t){return `
    +${t}
    +`}html(t,e){return t}heading(t,e,n){return `${t} +`}hr(){return `
    +`}list(t,e,n){const u=e?"ol":"ul",s=e&&n!==1?' start="'+n+'"':"";return "<"+u+s+`> +`+t+" +`}listitem(t,e,n){return `
  • ${t}
  • +`}checkbox(t){return "'}paragraph(t){return `

    ${t}

    +`}table(t,e){return e&&(e=`${e}`),` + +`+t+` +`+e+`
    +`}tablerow(t){return ` +${t} +`}tablecell(t,e){const n=e.header?"th":"td";return (e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+` +`}strong(t){return `${t}`}em(t){return `${t}`}codespan(t){return `${t}`}br(){return "
    "}del(t){return `${t}`}link(t,e,n){const u=ee(t);if(u===null)return n;t=u;let s='
    ",s}image(t,e,n){const u=ee(t);if(u===null)return n;t=u;let s=`${n}0&&p.tokens[0].type==="paragraph"?(p.tokens[0].text=C+" "+p.tokens[0].text,p.tokens[0].tokens&&p.tokens[0].tokens.length>0&&p.tokens[0].tokens[0].type==="text"&&(p.tokens[0].tokens[0].text=C+" "+p.tokens[0].tokens[0].text)):p.tokens.unshift({type:"text",text:C+" "}):E+=C+" ";}E+=this.parse(p.tokens,c),l+=this.renderer.listitem(E,F,!!d);}n+=this.renderer.list(l,a,o);continue}case "html":{const r=s;n+=this.renderer.html(r.text,r.block);continue}case "paragraph":{const r=s;n+=this.renderer.paragraph(this.parseInline(r.tokens));continue}case "text":{let r=s,a=r.tokens?this.parseInline(r.tokens):r.text;for(;u+1{const a=s[r].flat(1/0);n=n.concat(this.walkTokens(a,e));}):s.tokens&&(n=n.concat(this.walkTokens(s.tokens,e)));}}return n}use(...t){const e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(n=>{const u={...n};if(u.async=this.defaults.async||u.async||false,n.extensions&&(n.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){const r=e.renderers[s.name];r?e.renderers[s.name]=function(...a){let o=s.renderer.apply(this,a);return o===false&&(o=r.apply(this,a)),o}:e.renderers[s.name]=s.renderer;}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const r=e[s.level];r?r.unshift(s.tokenizer):e[s.level]=[s.tokenizer],s.start&&(s.level==="block"?e.startBlock?e.startBlock.push(s.start):e.startBlock=[s.start]:s.level==="inline"&&(e.startInline?e.startInline.push(s.start):e.startInline=[s.start]));}"childTokens"in s&&s.childTokens&&(e.childTokens[s.name]=s.childTokens);}),u.extensions=e),n.renderer){const s=this.defaults.renderer||new P(this.defaults);for(const r in n.renderer){if(!(r in s))throw new Error(`renderer '${r}' does not exist`);if(r==="options")continue;const a=r,o=n.renderer[a],c=s[a];s[a]=(...l)=>{let D=o.apply(s,l);return D===false&&(D=c.apply(s,l)),D||""};}u.renderer=s;}if(n.tokenizer){const s=this.defaults.tokenizer||new v(this.defaults);for(const r in n.tokenizer){if(!(r in s))throw new Error(`tokenizer '${r}' does not exist`);if(["options","rules","lexer"].includes(r))continue;const a=r,o=n.tokenizer[a],c=s[a];s[a]=(...l)=>{let D=o.apply(s,l);return D===false&&(D=c.apply(s,l)),D};}u.tokenizer=s;}if(n.hooks){const s=this.defaults.hooks||new $;for(const r in n.hooks){if(!(r in s))throw new Error(`hook '${r}' does not exist`);if(r==="options")continue;const a=r,o=n.hooks[a],c=s[a];$.passThroughHooks.has(r)?s[a]=l=>{if(this.defaults.async)return Promise.resolve(o.call(s,l)).then(p=>c.call(s,p));const D=o.call(s,l);return c.call(s,D)}:s[a]=(...l)=>{let D=o.apply(s,l);return D===false&&(D=c.apply(s,l)),D};}u.hooks=s;}if(n.walkTokens){const s=this.defaults.walkTokens,r=n.walkTokens;u.walkTokens=function(a){let o=[];return o.push(r.call(this,a)),s&&(o=o.concat(s.call(this,a))),o};}this.defaults={...this.defaults,...u};}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return x.lex(t,e??this.defaults)}parser(t,e){return T.parse(t,e??this.defaults)}#e(t,e){return (n,u)=>{const s={...u},r={...this.defaults,...s};this.defaults.async===true&&s.async===false&&(r.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),r.async=true);const a=this.#t(!!r.silent,!!r.async);if(typeof n>"u"||n===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(r.hooks&&(r.hooks.options=r),r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(n):n).then(o=>t(o,r)).then(o=>r.hooks?r.hooks.processAllTokens(o):o).then(o=>r.walkTokens?Promise.all(this.walkTokens(o,r.walkTokens)).then(()=>o):o).then(o=>e(o,r)).then(o=>r.hooks?r.hooks.postprocess(o):o).catch(a);try{r.hooks&&(n=r.hooks.preprocess(n));let o=t(n,r);r.hooks&&(o=r.hooks.processAllTokens(o)),r.walkTokens&&this.walkTokens(o,r.walkTokens);let c=e(o,r);return r.hooks&&(c=r.hooks.postprocess(c)),c}catch(o){return a(o)}}}#t(t,e){return n=>{if(n.message+=` +Please report this to https://github.com/markedjs/marked.`,t){const u="

    An error occurred:

    "+k(n.message+"",true)+"
    ";return e?Promise.resolve(u):u}if(e)return Promise.reject(n);throw n}}}const y=new _e;function h(i,t){return y.parse(i,t)}h.options=h.setOptions=function(i){return y.setOptions(i),h.defaults=y.defaults,me(h.defaults),h};h.getDefaults=q;h.defaults=S;h.use=function(...i){return y.use(...i),h.defaults=y.defaults,me(h.defaults),h};h.walkTokens=function(i,t){return y.walkTokens(i,t)};h.parseInline=y.parseInline;h.Parser=T;h.parser=T.parse;h.Renderer=P;h.TextRenderer=j;h.Lexer=x;h.lexer=x.lex;h.Tokenizer=v;h.Hooks=$;h.parse=h;h.options;h.setOptions;h.use;h.walkTokens;h.parseInline;T.parse;x.lex;function At(i){if(typeof i=="function"&&(i={highlight:i}),!i||typeof i.highlight!="function")throw new Error("Must provide highlight function");return typeof i.langPrefix!="string"&&(i.langPrefix="language-"),typeof i.emptyLangClass!="string"&&(i.emptyLangClass=""),{async:!!i.async,walkTokens(t){if(t.type!=="code")return;const e=ue(t.lang);if(i.async)return Promise.resolve(i.highlight(t.text,e,t.lang||"")).then(se(t));const n=i.highlight(t.text,e,t.lang||"");if(n instanceof Promise)throw new Error("markedHighlight is not set to async but the highlight function is async. Set the async option to true on markedHighlight to await the async highlight function.");se(t)(n);},useNewRenderer:true,renderer:{code(t,e,n){typeof t=="object"&&(n=t.escaped,e=t.lang,t=t.text);const u=ue(e),s=u?i.langPrefix+ae(u):i.emptyLangClass,r=s?` class="${s}"`:"";return t=t.replace(/\n$/,""),`
    ${n?t:ae(t,true)}
    +
    `}}}}function ue(i){return (i||"").match(/\S*/)[0]}function se(i){return t=>{typeof t=="string"&&t!==i.text&&(i.escaped=true,i.text=t);}}const Re=/[&<>"']/,kt=new RegExp(Re.source,"g"),Ie=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Ct=new RegExp(Ie.source,"g"),wt={"&":"&","<":"<",">":">",'"':""","'":"'"},ie=i=>wt[i];function ae(i,t){if(t){if(Re.test(i))return i.replace(kt,ie)}else if(Ie.test(i))return i.replace(Ct,ie);return i}const xt=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,Tt=Object.hasOwnProperty;class W{constructor(){this.occurrences,this.reset();}slug(t,e){const n=this;let u=yt(t,e===true);const s=u;for(;Tt.call(n.occurrences,u);)n.occurrences[s]++,u=s+"-"+n.occurrences[s];return n.occurrences[u]=0,u}reset(){this.occurrences=Object.create(null);}}function yt(i,t){return typeof i!="string"?"":(t||(i=i.toLowerCase()),i.replace(xt,"").replace(/ /g,"-"))}let Ne=new W,Oe=[];function St({prefix:i="",globalSlugs:t=false}={}){return {headerIds:false,hooks:{preprocess(e){return t||Bt(),e}},renderer:{heading(e,n,u){u=u.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"");const s=`${i}${Ne.slug(u)}`,r={level:n,text:e,id:s};return Oe.push(r),`${e} +`}}}}function Bt(){Oe=[],Ne=new W;}(function(i){var t=/\\(?:[^a-z()[\]]|[a-z*]+)/i,e={"equation-command":{pattern:t,alias:"regex"}};i.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:true},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:e,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:true,inside:e,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:true},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:true},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:true,alias:"class-name"},function:{pattern:t,alias:"selector"},punctuation:/[[\]{}&]/},i.languages.tex=i.languages.latex,i.languages.context=i.languages.latex;})(Prism);(function(i){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",e={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:true,alias:"punctuation",inside:null},n={bash:e,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:true,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:true},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:true,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:true,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:true,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};i.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:true},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:true,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:true},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:true,alias:"constant"}},alias:"variable",lookbehind:true},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:true},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:true,greedy:true,inside:n},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:true,greedy:true,inside:{bash:e}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:true,greedy:true,inside:n},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:true,greedy:true},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:true,inside:{entity:n.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:n.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:true},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:true},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:true,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:true},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:true}},e.inside=i.languages.bash;for(var u=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],s=n.variable[1].inside,r=0;r>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/});Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:true}});Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:true,greedy:true,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:true},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:true},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:true,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:true,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}});Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/});delete Prism.languages.c.boolean;var oe={},le;function _t(){return le||(le=1,(function(i){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,e=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return t.source});i.languages.cpp=i.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return t.source})),lookbehind:true},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:true},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),i.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,function(){return e})+")"),lookbehind:true,greedy:true,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:true}}),i.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:i.languages.cpp}}}}),i.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),i.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:true,greedy:true,inside:i.languages.extend("cpp",{})}}),i.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},i.languages.cpp["base-clause"]);})(Prism)),oe}_t();Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:true,greedy:true},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:true,greedy:true},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:true},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}};Prism.languages.webmanifest=Prism.languages.json;Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:true},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:true},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:true,lookbehind:true},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:true,lookbehind:true,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/};var ce={},pe;function Rt(){return pe||(pe=1,(function(i){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,e=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,n={pattern:RegExp(/(^|[^\w.])/.source+e+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:true,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};i.languages.java=i.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:true,greedy:true},"class-name":[n,{pattern:RegExp(/(^|[^\w.])/.source+e+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:true,inside:n.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+e+/[A-Z]\w*\b/.source),lookbehind:true,inside:n.inside}],keyword:t,function:[i.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:true}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:true},constant:/\b[A-Z][A-Z_\d]+\b/}),i.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:true,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:true}}),i.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:true,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":n,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+e+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:true,inside:{namespace:n.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+e+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:true,alias:"static",inside:{namespace:n.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,function(){return t.source})),lookbehind:true,inside:{punctuation:/\./}}});})(Prism)),ce}Rt();Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:true,greedy:true},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/});Prism.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:true}});delete Prism.languages.go["class-name"];var De={},de;function It(){return de||(de=1,(function(i){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|)*\*\//.source,e=0;e<2;e++)t=t.replace(//g,function(){return t});t=t.replace(//g,function(){return /[^\s\S]/.source}),i.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:true,greedy:true},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:true,greedy:true}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:true},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:true},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:true,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:true,greedy:true,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:true,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:true,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:true,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:true,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:true,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/},i.languages.rust["closure-params"].inside.rest=i.languages.rust,i.languages.rust.attribute.inside.string=i.languages.rust.string;})(Prism)),De}It();var he={},ge;function Nt(){return ge||(ge=1,(function(i){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,e=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:true,lookbehind:true},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:true,lookbehind:true},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],n=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,u=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,s=/[{}\[\](),:;]/;i.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:true,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:true,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:true,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:true,lookbehind:true},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:true,lookbehind:true},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:true,lookbehind:true},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:true},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:true,lookbehind:true},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:true},{pattern:/(\byield\s+)from\b/i,lookbehind:true},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:true}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:true},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:true,lookbehind:true},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:true,lookbehind:true},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:true},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:true,lookbehind:true,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:true,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:true,lookbehind:true,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:true},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:true,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:true},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:true,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:true,lookbehind:true},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:true,lookbehind:true,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:true,lookbehind:true},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:true,lookbehind:true,inside:{punctuation:/\\/}}],constant:e,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:true,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:true},number:n,operator:u,punctuation:s};var r={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:true,inside:i.languages.php},a=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:true,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:true,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:r}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:true},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:true},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:true,inside:{interpolation:r}}];i.languages.insertBefore("php","variable",{string:a,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:true,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:true,inside:{comment:t,string:a,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:true,lookbehind:true},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:true,lookbehind:true,inside:{punctuation:/\\/}}],constant:e,number:n,operator:u,punctuation:s}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),i.hooks.add("before-tokenize",function(o){if(/<\?/.test(o.code)){var c=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;i.languages["markup-templating"].buildPlaceholders(o,"php",c);}}),i.hooks.add("after-tokenize",function(o){i.languages["markup-templating"].tokenizePlaceholders(o,"php");});})(Prism)),he}Nt();(function(i){var t=/[*&][^\s[\]{},]+/,e=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,n="(?:"+e.source+"(?:[ ]+"+t.source+")?|"+t.source+"(?:[ ]+"+e.source+")?)",u=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return /[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),s=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function r(a,o){o=(o||"").replace(/m/g,"")+"m";var c=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return n}).replace(/<>/g,function(){return a});return RegExp(c,o)}i.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return n})),lookbehind:true,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return n}).replace(/<>/g,function(){return "(?:"+u+"|"+s+")"})),lookbehind:true,greedy:true,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:true,alias:"important"},datetime:{pattern:r(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:true,alias:"number"},boolean:{pattern:r(/false|true/.source,"i"),lookbehind:true,alias:"important"},null:{pattern:r(/null|~/.source,"i"),lookbehind:true,alias:"important"},string:{pattern:r(s),lookbehind:true,greedy:true},number:{pattern:r(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:true},tag:e,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},i.languages.yml=i.languages.yaml;})(Prism);(function(i){function t(e,n){return "___"+e.toUpperCase()+n+"___"}Object.defineProperties(i.languages["markup-templating"]={},{buildPlaceholders:{value:function(e,n,u,s){if(e.language===n){var r=e.tokenStack=[];e.code=e.code.replace(u,function(a){if(typeof s=="function"&&!s(a))return a;for(var o=r.length,c;e.code.indexOf(c=t(n,o))!==-1;)++o;return r[o]=a,c}),e.grammar=i.languages.markup;}}},tokenizePlaceholders:{value:function(e,n){if(e.language!==n||!e.tokenStack)return;e.grammar=i.languages[n];var u=0,s=Object.keys(e.tokenStack);function r(a){for(var o=0;o=s.length);o++){var c=a[o];if(typeof c=="string"||c.content&&typeof c.content=="string"){var l=s[u],D=e.tokenStack[l],p=typeof c=="string"?c:c.content,d=t(n,l),F=p.indexOf(d);if(F>-1){++u;var E=p.substring(0,F),C=new i.Token(n,i.tokenize(D,e.grammar),"language-"+n,D),m=p.substring(F+d.length),f=[];E&&f.push.apply(f,r([E])),f.push(C),m&&f.push.apply(f,r([m])),typeof c=="string"?a.splice.apply(a,[o,1].concat(f)):c.content=f;}}else c.content&&r(c.content);}return a}r(e.tokens);}}});})(Prism);const Ot='',Lt=` + + +`,$t=` +`,fe=``,Le=/[&<>"']/,vt=new RegExp(Le.source,"g"),$e=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,zt=new RegExp($e.source,"g"),Pt={"&":"&","<":"<",">":">",'"':""","'":"'"},Ee=i=>Pt[i]||"";function H(i,t){if(t){if(Le.test(i))return i.replace(vt,Ee)}else if($e.test(i))return i.replace(zt,Ee);return i}function Mt(i){const t=i.map(e=>({start:new RegExp(e.left.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")),end:new RegExp(e.right.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))}));return {name:"latex",level:"block",start(e){for(const n of t){const u=e.match(n.start);if(u)return u.index}return -1},tokenizer(e,n){for(const u of t){const s=new RegExp(`${u.start.source}([\\s\\S]+?)${u.end.source}`).exec(e);if(s)return {type:"latex",raw:s[0],text:s[1].trim()}}},renderer(e){return `
    ${e.text}
    `}}}function Ut(){return {name:"mermaid",level:"block",start(i){return i.match(/^```mermaid\s*\n/)?.index},tokenizer(i){const t=/^```mermaid\s*\n([\s\S]*?)```\s*(?:\n|$)/.exec(i);if(t)return {type:"mermaid",raw:t[0],text:t[1].trim()}},renderer(i){return `
    ${i.text}
    +`}}}const Ht={code(i,t,e){const n=(t??"").match(/\S*/)?.[0]??"";return i=i.replace(/\n$/,"")+` +`,!n||n==="mermaid"?'
    '+fe+"
    "+(e?i:H(i,true))+`
    +`:'
    '+fe+'
    '+(e?i:H(i,true))+`
    +`}},Gt=new W;function qt({header_links:i,line_breaks:t,latex_delimiters:e}){const n=new _e;n.use({gfm:true,pedantic:false,breaks:t},At({highlight:(r,a)=>ne$1.languages?.[a]?ne$1.highlight(r,ne$1.languages[a],a):r}),{renderer:Ht}),i&&(n.use(St()),n.use({extensions:[{name:"heading",level:"block",renderer(r){const a=r.raw.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,""),o="h"+Gt.slug(a),c=r.depth,l=this.parser.parseInline(r.tokens);return `
    ${Ot}${l} +`}}]}));const u=Ut(),s=Mt(e);return n.use({extensions:[u,s]}),n}function Fe(i){return Ze$1(i)}const be=["!--","!doctype","a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","big","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","menu","meta","meter","nav","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","search","section","select","small","source","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr"],Zt=["g","defs","use","symbol","rect","circle","ellipse","line","polyline","polygon","path","image","text","tspan","textPath","linearGradient","radialGradient","stop","pattern","clipPath","mask","filter","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feGaussianBlur","feMerge","feMorphology","feOffset","feSpecularLighting","feTurbulence","feMergeNode","feFuncR","feFuncG","feFuncB","feFuncA","feDistantLight","fePointLight","feSpotLight","feFlood","feTile","animate","animateTransform","animateMotion","mpath","set","view","cursor","foreignObject","desc","title","metadata","switch"],Xt=[...be,...Zt.filter(i=>!be.includes(i))];function Qt(i,t){i.component(e=>{let{chatbot:n=true,message:u,sanitize_html:s=true,latex_delimiters:r=[],render_markdown:a=true,line_breaks:o=true,header_links:c=false,allow_tags:l=false,theme_mode:D="system"}=t;const p=qt({header_links:c,line_breaks:o,latex_delimiters:r||[]});let d=u&&u.trim()?C(u):"";function F(m){return m.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function E(m,f){if(f===true){const w=/<\/?([a-zA-Z][a-zA-Z0-9-]*)([\s>])/g;return m.replace(w,(b,A,B)=>Xt.includes(A.toLowerCase())?b:b.replace(//g,">"))}if(Array.isArray(f)){const w=f.map(A=>({open:new RegExp(`<(${A})(\\s+[^>]*)?>`,"gi"),close:new RegExp(``,"gi")}));let b=m;return w.forEach(A=>{b=b.replace(A.open,B=>B.replace(//g,">")),b=b.replace(A.close,B=>B.replace(//g,">"));}),b}return m}function C(m){let f=m;if(a){const w=[];r.forEach((b,A)=>{const B=F(b.left),ve=F(b.right),ze=new RegExp(`${B}([\\s\\S]+?)${ve}`,"g");f=f.replace(ze,(Pe,Yt)=>(w.push(Pe),`%%%LATEX_BLOCK_${w.length-1}%%%`));}),f=p.parse(f),f=f.replace(/%%%LATEX_BLOCK_(\d+)%%%/g,(b,A)=>w[parseInt(A,10)]);}return l&&(f=E(f,l)),s&&Fe&&(f=Fe(f)),f}e.push(`${html(d)}`);});} + +export { Qt as Q }; +//# sourceMappingURL=MarkdownCode-DLHRxFlS.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Microphone-BMM9-23W.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Microphone-BMM9-23W.js new file mode 100644 index 0000000000000000000000000000000000000000..aae0d0c468d0246ec38265fcd2c74b4af6ac08f1 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Microphone-BMM9-23W.js @@ -0,0 +1,6 @@ +import './async-D55cHugf.js'; + +function i(e){e.push('');} + +export { i }; +//# sourceMappingURL=Microphone-BMM9-23W.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/MinimalAudioPlayer-CtXDbTgQ.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/MinimalAudioPlayer-CtXDbTgQ.js new file mode 100644 index 0000000000000000000000000000000000000000..6a62041fc6c2c769624b2af581305afa62ef4f15 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/MinimalAudioPlayer-CtXDbTgQ.js @@ -0,0 +1,11 @@ +import './async-D55cHugf.js'; +import { a as attr } from './index-u8mz_F03.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; +import { o as onDestroy } from './index-server-CQz6EZl_.js'; +import './2-BLdXJizP.js'; +import { w } from './utils.svelte-B2py64Fz.js'; + +function Z(c,t){c.component(e=>{let{value:i,label:s,loop:n=false}=t,r=0;i.url;onDestroy(()=>{}),e.push(`
    ${escape_html(w(r))}
    `);});} + +export { Z }; +//# sourceMappingURL=MinimalAudioPlayer-CtXDbTgQ.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Model3D-D4sSC2vC.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Model3D-D4sSC2vC.js new file mode 100644 index 0000000000000000000000000000000000000000..1fcdaaee3b15e068b71bd22c207affc10f2f0383 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Model3D-D4sSC2vC.js @@ -0,0 +1,19 @@ +import './async-D55cHugf.js'; +import { a as attr } from './index-u8mz_F03.js'; +import { k } from './BlockLabel-bKYWnOzQ.js'; +import { w } from './IconButton-BRnu7KaR.js'; +import { l } from './Download-DcU5dONL.js'; +import { i } from './File-DQh5d1OO.js'; +import { r } from './Undo-Ce01x-M5.js'; +import './2-BLdXJizP.js'; +import { y } from './IconButtonWrapper-CjFRPb3y.js'; +import './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; + +function q(i$1,m){i$1.component(o=>{let{value:a,display_mode:w$1="solid",clear_color:I=[0,0,0,0],label:u="",show_label:_,i18n:t,zoom_speed:D=1,pan_speed:v=1,camera_position:B=[null,null,null],has_change_history:h=false}=m;k(o,{show_label:_,Icon:i,label:u||t("3D_model.3d_model")}),o.push(" "),a?(o.push(""),o.push('
    '),y(o,{children:l$1=>{l$1.push(""),w(l$1,{Icon:r,label:"Undo",onclick:()=>void 0,disabled:!h}),l$1.push(` `),w(l$1,{Icon:l,label:t("common.download")}),l$1.push("");}}),o.push(" "),o.push(""),o.push(""),o.push(""),o.push("
    ")):o.push(""),o.push("");});} + +export { q as default }; +//# sourceMappingURL=Model3D-D4sSC2vC.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Music-B6sg6ISZ.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Music-B6sg6ISZ.js new file mode 100644 index 0000000000000000000000000000000000000000..ef10b08d1ea3a2d50228b680a5e9aa1fc469d885 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Music-B6sg6ISZ.js @@ -0,0 +1,6 @@ +import './async-D55cHugf.js'; + +function t(r){r.push('');} + +export { t }; +//# sourceMappingURL=Music-B6sg6ISZ.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Play-B_z3rKL1.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Play-B_z3rKL1.js new file mode 100644 index 0000000000000000000000000000000000000000..91635e389006644041156810de8f11599aa146f9 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Play-B_z3rKL1.js @@ -0,0 +1,6 @@ +import './async-D55cHugf.js'; + +function n(o){o.push('');} + +export { n }; +//# sourceMappingURL=Play-B_z3rKL1.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Plot-DFLslTNw.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Plot-DFLslTNw.js new file mode 100644 index 0000000000000000000000000000000000000000..ece391bdda78a328fc4427112c00bea48a9c6069 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Plot-DFLslTNw.js @@ -0,0 +1,14 @@ +import './async-D55cHugf.js'; +import { p } from './Empty-DGRbZO0a.js'; +import './2-BLdXJizP.js'; +import './index-u8mz_F03.js'; +import './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; + +function y(t){t.push('');}function b(t,u){t.component(i=>{let {value:s,theme_mode:p$1,caption:a,bokeh_version:h,show_actions_button:_,_selectable:f,x_lim:m,show_fullscreen_button:g,show_label:d,on_change:v}=u,o=true,e;function w(l){(l.push(""),p(l,{unpadded_box:true,size:"large",children:c=>{y(c);},$$slots:{default:true}})),l.push("");}do o=true,e=i.copy(),w(e);while(!o);i.subsume(e);});}const E=Object.freeze(Object.defineProperty({__proto__:null,default:b},Symbol.toStringTag,{value:"Module"})); + +export { y as P, b as a, E as b }; +//# sourceMappingURL=Plot-DFLslTNw.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/ScrollFade-Yfqlww91.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/ScrollFade-Yfqlww91.js new file mode 100644 index 0000000000000000000000000000000000000000..09f4815c4891544407563865ea6d3fec2adcb923 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/ScrollFade-Yfqlww91.js @@ -0,0 +1,7 @@ +import './async-D55cHugf.js'; +import { f as attr_class } from './index-u8mz_F03.js'; + +/* empty css */function u(s,i){let{visible:o=false,position:t="sticky"}=i;o?(s.push(""),s.push(``)):s.push(""),s.push("");} + +export { u }; +//# sourceMappingURL=ScrollFade-Yfqlww91.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/SelectSource-Bhpgvmj9.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/SelectSource-Bhpgvmj9.js new file mode 100644 index 0000000000000000000000000000000000000000..6c1e94785ebcb3abf5290a39d28d71c1ee19ef3d --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/SelectSource-Bhpgvmj9.js @@ -0,0 +1,11 @@ +import './async-D55cHugf.js'; +import { f as attr_class, d as bind_props } from './index-u8mz_F03.js'; +import { h, e } from './Upload-BbxeBrrD.js'; +import { i } from './Microphone-BMM9-23W.js'; +import { r } from './Video-FfbWmOVG.js'; +import { h as h$1 } from './Webcam-CvKMKUzA.js'; + +function w(c,u){c.component(s=>{let{sources:o,active_source:t=void 0,handle_clear:b=()=>{},handle_select:v=()=>{}}=u;[...new Set(o)].length>1||o.includes("clipboard")?(s.push(""),s.push(''),o.includes("upload")?(s.push(""),s.push(``),h(s),s.push("")):s.push(""),s.push(" "),o.includes("microphone")?(s.push(""),s.push(``),i(s),s.push("")):s.push(""),s.push(" "),o.includes("webcam")?(s.push(""),s.push(``),h$1(s),s.push("")):s.push(""),s.push(" "),o.includes("webcam-video")?(s.push(""),s.push(``),r(s),s.push("")):s.push(""),s.push(" "),o.includes("clipboard")?(s.push(""),s.push(``),e(s),s.push("")):s.push(""),s.push("")):s.push(""),s.push(""),bind_props(u,{active_source:t});});} + +export { w }; +//# sourceMappingURL=SelectSource-Bhpgvmj9.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Send-C1RPCeF6.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Send-C1RPCeF6.js new file mode 100644 index 0000000000000000000000000000000000000000..aada379f2a67bf96f9b56dfc5bc792e457942cef --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Send-C1RPCeF6.js @@ -0,0 +1,6 @@ +import './async-D55cHugf.js'; + +function M(L){L.push('');} + +export { M }; +//# sourceMappingURL=Send-C1RPCeF6.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/SharedSystems-CTk4bhlr.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/SharedSystems-CTk4bhlr.js new file mode 100644 index 0000000000000000000000000000000000000000..948725bb361fb334f272c3072c78afedd3b1f2ed --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/SharedSystems-CTk4bhlr.js @@ -0,0 +1,332 @@ +import { E as B$1, e as ft$1, z as Fc, b as ql, V as Qe, C as U, S as ll, a8 as Fl, a1 as ot$1, w as J$1, P as N$1, M as H, d as pi, R as Ss, l as fo, a6 as D$1, a7 as j$1, W as Z, D as $$1, K as we, a0 as wi, J as Lt$1, a3 as Wn, a4 as mt$1, t as W, T as ri, L as vr, H as Pt$1, I as Dn, i as bo, a5 as Ao, j as $n, u as st$1, k as It$1, Q as ul, c as Ke, B as vt$1, X as Pl, a2 as zh, N as q$1, a as Ot$1, Y as Ar, O as tl, F as Ts, v as $a, x as Zt, y as ve$1, Z as Xi, _ as Sr, $ as Rh } from './Index4-BvPFZOEY.js'; +import { s, a } from './colorToUniform-CrQRsPlb.js'; + +var rt=`in vec2 vMaskCoord; +in vec2 vTextureCoord; + +uniform sampler2D uTexture; +uniform sampler2D uMaskTexture; + +uniform float uAlpha; +uniform vec4 uMaskClamp; +uniform float uInverse; + +out vec4 finalColor; + +void main(void) +{ + float clip = step(3.5, + step(uMaskClamp.x, vMaskCoord.x) + + step(uMaskClamp.y, vMaskCoord.y) + + step(vMaskCoord.x, uMaskClamp.z) + + step(vMaskCoord.y, uMaskClamp.w)); + + // TODO look into why this is needed + float npmAlpha = uAlpha; + vec4 original = texture(uTexture, vTextureCoord); + vec4 masky = texture(uMaskTexture, vMaskCoord); + float alphaMul = 1.0 - npmAlpha * (1.0 - masky.a); + + float a = alphaMul * masky.r * npmAlpha * clip; + + if (uInverse == 1.0) { + a = 1.0 - a; + } + + finalColor = original * a; +} +`,st=`in vec2 aPosition; + +out vec2 vTextureCoord; +out vec2 vMaskCoord; + + +uniform vec4 uInputSize; +uniform vec4 uOutputFrame; +uniform vec4 uOutputTexture; +uniform mat3 uFilterMatrix; + +vec4 filterVertexPosition( vec2 aPosition ) +{ + vec2 position = aPosition * uOutputFrame.zw + uOutputFrame.xy; + + position.x = position.x * (2.0 / uOutputTexture.x) - 1.0; + position.y = position.y * (2.0*uOutputTexture.z / uOutputTexture.y) - uOutputTexture.z; + + return vec4(position, 0.0, 1.0); +} + +vec2 filterTextureCoord( vec2 aPosition ) +{ + return aPosition * (uOutputFrame.zw * uInputSize.zw); +} + +vec2 getFilterCoord( vec2 aPosition ) +{ + return ( uFilterMatrix * vec3( filterTextureCoord(aPosition), 1.0) ).xy; +} + +void main(void) +{ + gl_Position = filterVertexPosition(aPosition); + vTextureCoord = filterTextureCoord(aPosition); + vMaskCoord = getFilterCoord(aPosition); +} +`,re=`struct GlobalFilterUniforms { + uInputSize:vec4, + uInputPixel:vec4, + uInputClamp:vec4, + uOutputFrame:vec4, + uGlobalFrame:vec4, + uOutputTexture:vec4, +}; + +struct MaskUniforms { + uFilterMatrix:mat3x3, + uMaskClamp:vec4, + uAlpha:f32, + uInverse:f32, +}; + +@group(0) @binding(0) var gfu: GlobalFilterUniforms; +@group(0) @binding(1) var uTexture: texture_2d; +@group(0) @binding(2) var uSampler : sampler; + +@group(1) @binding(0) var filterUniforms : MaskUniforms; +@group(1) @binding(1) var uMaskTexture: texture_2d; + +struct VSOutput { + @builtin(position) position: vec4, + @location(0) uv : vec2, + @location(1) filterUv : vec2, +}; + +fn filterVertexPosition(aPosition:vec2) -> vec4 +{ + var position = aPosition * gfu.uOutputFrame.zw + gfu.uOutputFrame.xy; + + position.x = position.x * (2.0 / gfu.uOutputTexture.x) - 1.0; + position.y = position.y * (2.0*gfu.uOutputTexture.z / gfu.uOutputTexture.y) - gfu.uOutputTexture.z; + + return vec4(position, 0.0, 1.0); +} + +fn filterTextureCoord( aPosition:vec2 ) -> vec2 +{ + return aPosition * (gfu.uOutputFrame.zw * gfu.uInputSize.zw); +} + +fn globalTextureCoord( aPosition:vec2 ) -> vec2 +{ + return (aPosition.xy / gfu.uGlobalFrame.zw) + (gfu.uGlobalFrame.xy / gfu.uGlobalFrame.zw); +} + +fn getFilterCoord(aPosition:vec2 ) -> vec2 +{ + return ( filterUniforms.uFilterMatrix * vec3( filterTextureCoord(aPosition), 1.0) ).xy; +} + +fn getSize() -> vec2 +{ + return gfu.uGlobalFrame.zw; +} + +@vertex +fn mainVertex( + @location(0) aPosition : vec2, +) -> VSOutput { + return VSOutput( + filterVertexPosition(aPosition), + filterTextureCoord(aPosition), + getFilterCoord(aPosition) + ); +} + +@fragment +fn mainFragment( + @location(0) uv: vec2, + @location(1) filterUv: vec2, + @builtin(position) position: vec4 +) -> @location(0) vec4 { + + var maskClamp = filterUniforms.uMaskClamp; + var uAlpha = filterUniforms.uAlpha; + + var clip = step(3.5, + step(maskClamp.x, filterUv.x) + + step(maskClamp.y, filterUv.y) + + step(filterUv.x, maskClamp.z) + + step(filterUv.y, maskClamp.w)); + + var mask = textureSample(uMaskTexture, uSampler, filterUv); + var source = textureSample(uTexture, uSampler, uv); + var alphaMul = 1.0 - uAlpha * (1.0 - mask.a); + + var a: f32 = alphaMul * mask.r * uAlpha * clip; + + if (filterUniforms.uInverse == 1.0) { + a = 1.0 - a; + } + + return source * a; +} +`;class at extends Ts{constructor(e){const{sprite:t,...r}=e,s=new $a(t.texture),a=new fo({uFilterMatrix:{value:new H,type:"mat3x3"},uMaskClamp:{value:s.uClampFrame,type:"vec4"},uAlpha:{value:1,type:"f32"},uInverse:{value:e.inverse?1:0,type:"f32"}}),i=Zt.from({vertex:{source:re,entryPoint:"mainVertex"},fragment:{source:re,entryPoint:"mainFragment"}}),o=ve$1.from({vertex:st,fragment:rt,name:"mask-filter"});super({...r,gpuProgram:i,glProgram:o,clipToViewport:false,resources:{filterUniforms:a,uMaskTexture:t.texture.source}}),this.sprite=t,this._textureMatrix=s;}set inverse(e){this.resources.filterUniforms.uniforms.uInverse=e?1:0;}get inverse(){return this.resources.filterUniforms.uniforms.uInverse===1}apply(e,t,r,s){this._textureMatrix.texture=this.sprite.texture,e.calculateSpriteMatrix(this.resources.filterUniforms.uniforms.uFilterMatrix,this.sprite).prepend(this._textureMatrix.mapCoord),this.resources.uMaskTexture=this.sprite.texture.source,e.applyFilter(this,t,r,s);}}const V=class pe{constructor(e,t){this.state=ll.for2d(),this._batchersByInstructionSet=Object.create(null),this._activeBatches=Object.create(null),this.renderer=e,this._adaptor=t,this._adaptor.init?.(this);}static getBatcher(e){return new this._availableBatchers[e]}buildStart(e){let t=this._batchersByInstructionSet[e.uid];t||(t=this._batchersByInstructionSet[e.uid]=Object.create(null),t.default||(t.default=new Fc({maxTextures:this.renderer.limits.maxBatchableTextures}))),this._activeBatches=t,this._activeBatch=this._activeBatches.default;for(const r in this._activeBatches)this._activeBatches[r].begin();}addToBatch(e,t){if(this._activeBatch.name!==e.batcherName){this._activeBatch.break(t);let r=this._activeBatches[e.batcherName];r||(r=this._activeBatches[e.batcherName]=pe.getBatcher(e.batcherName),r.begin()),this._activeBatch=r;}this._activeBatch.add(e);}break(e){this._activeBatch.break(e);}buildEnd(e){this._activeBatch.break(e);const t=this._activeBatches;for(const r in t){const s=t[r],a=s.geometry;a.indexBuffer.setDataWithSize(s.indexBuffer,s.indexSize,true),a.buffers[0].setDataWithSize(s.attributeBuffer.float32View,s.attributeSize,false);}}upload(e){const t=this._batchersByInstructionSet[e.uid];for(const r in t){const s=t[r],a=s.geometry;s.dirty&&(s.dirty=false,a.buffers[0].update(s.attributeSize*4));}}execute(e){if(e.action==="startBatch"){const t=e.batcher,r=t.geometry,s=t.shader;this._adaptor.start(this,r,s);}this._adaptor.execute(this,e);}destroy(){this.state=null,this.renderer=null,this._adaptor=null;for(const e in this._activeBatches)this._activeBatches[e].destroy();this._activeBatches=null;}};V.extension={type:[B$1.WebGLPipes,B$1.WebGPUPipes,B$1.CanvasPipes],name:"batch"};V._availableBatchers=Object.create(null);let me=V;ft$1.handleByMap(B$1.Batcher,me._availableBatchers);ft$1.add(Fc);const At={name:"texture-bit",vertex:{header:` + + struct TextureUniforms { + uTextureMatrix:mat3x3, + } + + @group(2) @binding(2) var textureUniforms : TextureUniforms; + `,main:` + uv = (textureUniforms.uTextureMatrix * vec3(uv, 1.0)).xy; + `},fragment:{header:` + @group(2) @binding(0) var uTexture: texture_2d; + @group(2) @binding(1) var uSampler: sampler; + + + `,main:` + outColor = textureSample(uTexture, uSampler, vUV); + `}},It={name:"texture-bit",vertex:{header:` + uniform mat3 uTextureMatrix; + `,main:` + uv = (uTextureMatrix * vec3(uv, 1.0)).xy; + `},fragment:{header:` + uniform sampler2D uTexture; + + + `,main:` + outColor = texture(uTexture, vUV); + `}},nt=new Lt$1;class it extends vr{constructor(){super(),this.filters=[new at({sprite:new q$1(W.EMPTY),inverse:false,resolution:"inherit",antialias:"inherit"})];}get sprite(){return this.filters[0].sprite}set sprite(e){this.filters[0].sprite=e;}get inverse(){return this.filters[0].inverse}set inverse(e){this.filters[0].inverse=e;}}class ge{constructor(e){this._activeMaskStage=[],this._renderer=e;}push(e,t,r){const s=this._renderer;if(s.renderPipes.batch.break(r),r.add({renderPipeId:"alphaMask",action:"pushMaskBegin",mask:e,inverse:t._maskOptions.inverse,canBundle:false,maskedContainer:t}),e.inverse=t._maskOptions.inverse,e.renderMaskToTexture){const a=e.mask;a.includeInBuild=true,a.collectRenderables(r,s,null),a.includeInBuild=false;}s.renderPipes.batch.break(r),r.add({renderPipeId:"alphaMask",action:"pushMaskEnd",mask:e,maskedContainer:t,inverse:t._maskOptions.inverse,canBundle:false});}pop(e,t,r){this._renderer.renderPipes.batch.break(r),r.add({renderPipeId:"alphaMask",action:"popMaskEnd",mask:e,inverse:t._maskOptions.inverse,canBundle:false});}execute(e){const t=this._renderer,r=e.mask.renderMaskToTexture;if(e.action==="pushMaskBegin"){const s=Pt$1.get(it);if(s.inverse=e.inverse,r){e.mask.mask.measurable=true;const a=Dn(e.mask.mask,true,nt);e.mask.mask.measurable=false,a.ceil();const i=t.renderTarget.renderTarget.colorTexture.source,o=we.getOptimalTexture(a.width,a.height,i._resolution,i.antialias);t.renderTarget.push(o,true),t.globalUniforms.push({offset:a,worldColor:4294967295});const l=s.sprite;l.texture=o,l.worldTransform.tx=a.minX,l.worldTransform.ty=a.minY,this._activeMaskStage.push({filterEffect:s,maskedContainer:e.maskedContainer,filterTexture:o});}else s.sprite=e.mask.mask,this._activeMaskStage.push({filterEffect:s,maskedContainer:e.maskedContainer});}else if(e.action==="pushMaskEnd"){const s=this._activeMaskStage[this._activeMaskStage.length-1];r&&(t.type===Ss.WEBGL&&t.renderTarget.finishRenderPass(),t.renderTarget.pop(),t.globalUniforms.pop()),t.filter.push({renderPipeId:"filter",action:"pushFilter",container:s.maskedContainer,filterEffect:s.filterEffect,canBundle:false});}else if(e.action==="popMaskEnd"){t.filter.pop();const s=this._activeMaskStage.pop();r&&we.returnTexture(s.filterTexture),Pt$1.return(s.filterEffect);}}destroy(){this._renderer=null,this._activeMaskStage=null;}}ge.extension={type:[B$1.WebGLPipes,B$1.WebGPUPipes,B$1.CanvasPipes],name:"alphaMask"};class _e{constructor(e){this._colorStack=[],this._colorStackIndex=0,this._currentColor=0,this._renderer=e;}buildStart(){this._colorStack[0]=15,this._colorStackIndex=1,this._currentColor=15;}push(e,t,r){this._renderer.renderPipes.batch.break(r);const a=this._colorStack;a[this._colorStackIndex]=a[this._colorStackIndex-1]&e.mask;const i=this._colorStack[this._colorStackIndex];i!==this._currentColor&&(this._currentColor=i,r.add({renderPipeId:"colorMask",colorMask:i,canBundle:false})),this._colorStackIndex++;}pop(e,t,r){this._renderer.renderPipes.batch.break(r);const a=this._colorStack;this._colorStackIndex--;const i=a[this._colorStackIndex-1];i!==this._currentColor&&(this._currentColor=i,r.add({renderPipeId:"colorMask",colorMask:i,canBundle:false}));}execute(e){this._renderer.colorMask.setMask(e.colorMask);}destroy(){this._renderer=null,this._colorStack=null;}}_e.extension={type:[B$1.WebGLPipes,B$1.WebGPUPipes,B$1.CanvasPipes],name:"colorMask"};class ve{constructor(e){this._maskStackHash={},this._maskHash=new WeakMap,this._renderer=e;}push(e,t,r){var s;const a=e,i=this._renderer;i.renderPipes.batch.break(r),i.renderPipes.blendMode.setBlendMode(a.mask,"none",r),r.add({renderPipeId:"stencilMask",action:"pushMaskBegin",mask:e,inverse:t._maskOptions.inverse,canBundle:false});const o=a.mask;o.includeInBuild=true,this._maskHash.has(a)||this._maskHash.set(a,{instructionsStart:0,instructionsLength:0});const l=this._maskHash.get(a);l.instructionsStart=r.instructionSize,o.collectRenderables(r,i,null),o.includeInBuild=false,i.renderPipes.batch.break(r),r.add({renderPipeId:"stencilMask",action:"pushMaskEnd",mask:e,inverse:t._maskOptions.inverse,canBundle:false});const d=r.instructionSize-l.instructionsStart-1;l.instructionsLength=d;const c=i.renderTarget.renderTarget.uid;(s=this._maskStackHash)[c]??(s[c]=0);}pop(e,t,r){const s=e,a=this._renderer;a.renderPipes.batch.break(r),a.renderPipes.blendMode.setBlendMode(s.mask,"none",r),r.add({renderPipeId:"stencilMask",action:"popMaskBegin",inverse:t._maskOptions.inverse,canBundle:false});const i=this._maskHash.get(e);for(let o=0;oe.uniformStructures[o]),a=this._adaptor.createUboElements(s),i=this._generateUboSync(a.uboElements);r=this._syncFunctionHash[t]={layout:a,syncFunction:i};}return this._syncFunctionHash[t]}_generateUboSync(e){return this._adaptor.generateUboSync(e)}syncUniformGroup(e,t,r){const s=this.getUniformGroupData(e);e.buffer||(e.buffer=new Ke({data:new Float32Array(s.layout.size/4),usage:vt$1.UNIFORM|vt$1.COPY_DST}));let a=null;return t||(t=e.buffer.data,a=e.buffer.dataInt32),r||(r=0),s.syncFunction(e.uniforms,t,a,r),true}updateUniformGroup(e){if(e.isStatic&&!e._dirtyId)return false;e._dirtyId=0;const t=this.syncUniformGroup(e);return e.buffer.update(),t}destroy(){this._syncFunctionHash=null;}}const C=[{type:"mat3x3",test:n=>n.value.a!==void 0,ubo:` + var matrix = uv[name].toArray(true); + data[offset] = matrix[0]; + data[offset + 1] = matrix[1]; + data[offset + 2] = matrix[2]; + data[offset + 4] = matrix[3]; + data[offset + 5] = matrix[4]; + data[offset + 6] = matrix[5]; + data[offset + 8] = matrix[6]; + data[offset + 9] = matrix[7]; + data[offset + 10] = matrix[8]; + `,uniform:` + gl.uniformMatrix3fv(ud[name].location, false, uv[name].toArray(true)); + `},{type:"vec4",test:n=>n.type==="vec4"&&n.size===1&&n.value.width!==void 0,ubo:` + v = uv[name]; + data[offset] = v.x; + data[offset + 1] = v.y; + data[offset + 2] = v.width; + data[offset + 3] = v.height; + `,uniform:` + cv = ud[name].value; + v = uv[name]; + if (cv[0] !== v.x || cv[1] !== v.y || cv[2] !== v.width || cv[3] !== v.height) { + cv[0] = v.x; + cv[1] = v.y; + cv[2] = v.width; + cv[3] = v.height; + gl.uniform4f(ud[name].location, v.x, v.y, v.width, v.height); + } + `},{type:"vec2",test:n=>n.type==="vec2"&&n.size===1&&n.value.x!==void 0,ubo:` + v = uv[name]; + data[offset] = v.x; + data[offset + 1] = v.y; + `,uniform:` + cv = ud[name].value; + v = uv[name]; + if (cv[0] !== v.x || cv[1] !== v.y) { + cv[0] = v.x; + cv[1] = v.y; + gl.uniform2f(ud[name].location, v.x, v.y); + } + `},{type:"vec4",test:n=>n.type==="vec4"&&n.size===1&&n.value.red!==void 0,ubo:` + v = uv[name]; + data[offset] = v.red; + data[offset + 1] = v.green; + data[offset + 2] = v.blue; + data[offset + 3] = v.alpha; + `,uniform:` + cv = ud[name].value; + v = uv[name]; + if (cv[0] !== v.red || cv[1] !== v.green || cv[2] !== v.blue || cv[3] !== v.alpha) { + cv[0] = v.red; + cv[1] = v.green; + cv[2] = v.blue; + cv[3] = v.alpha; + gl.uniform4f(ud[name].location, v.red, v.green, v.blue, v.alpha); + } + `},{type:"vec3",test:n=>n.type==="vec3"&&n.size===1&&n.value.red!==void 0,ubo:` + v = uv[name]; + data[offset] = v.red; + data[offset + 1] = v.green; + data[offset + 2] = v.blue; + `,uniform:` + cv = ud[name].value; + v = uv[name]; + if (cv[0] !== v.red || cv[1] !== v.green || cv[2] !== v.blue) { + cv[0] = v.red; + cv[1] = v.green; + cv[2] = v.blue; + gl.uniform3f(ud[name].location, v.red, v.green, v.blue); + } + `}];function Ot(n,e,t,r){const s=[` + var v = null; + var v2 = null; + var t = 0; + var index = 0; + var name = null; + var arrayOffset = null; + `];let a=0;for(let o=0;o1)h=l.offset/4,s.push(t(l,h-a));else {const p=r[l.data.type];h=l.offset/4,s.push(` + v = uv.${d}; + offset += ${h-a}; + ${p}; + `);}a=h;}const i=s.join(` +`);return new Function("uv","data","dataInt32","offset",i)}function _(n,e){return ` + for (let i = 0; i < ${n*e}; i++) { + data[offset + (((i / ${n})|0) * 4) + (i % ${n})] = v[i]; + } + `}const lt={f32:` + data[offset] = v;`,i32:` + dataInt32[offset] = v;`,"vec2":` + data[offset] = v[0]; + data[offset + 1] = v[1];`,"vec3":` + data[offset] = v[0]; + data[offset + 1] = v[1]; + data[offset + 2] = v[2];`,"vec4":` + data[offset] = v[0]; + data[offset + 1] = v[1]; + data[offset + 2] = v[2]; + data[offset + 3] = v[3];`,"vec2":` + dataInt32[offset] = v[0]; + dataInt32[offset + 1] = v[1];`,"vec3":` + dataInt32[offset] = v[0]; + dataInt32[offset + 1] = v[1]; + dataInt32[offset + 2] = v[2];`,"vec4":` + dataInt32[offset] = v[0]; + dataInt32[offset + 1] = v[1]; + dataInt32[offset + 2] = v[2]; + dataInt32[offset + 3] = v[3];`,"mat2x2":` + data[offset] = v[0]; + data[offset + 1] = v[1]; + data[offset + 4] = v[2]; + data[offset + 5] = v[3];`,"mat3x3":` + data[offset] = v[0]; + data[offset + 1] = v[1]; + data[offset + 2] = v[2]; + data[offset + 4] = v[3]; + data[offset + 5] = v[4]; + data[offset + 6] = v[5]; + data[offset + 8] = v[6]; + data[offset + 9] = v[7]; + data[offset + 10] = v[8];`,"mat4x4":` + for (let i = 0; i < 16; i++) { + data[offset + i] = v[i]; + }`,"mat3x2":_(3,2),"mat4x2":_(4,2),"mat2x3":_(2,3),"mat4x3":_(4,3),"mat2x4":_(2,4),"mat3x4":_(3,4)},Ft={...lt,"mat2x2":` + data[offset] = v[0]; + data[offset + 1] = v[1]; + data[offset + 2] = v[2]; + data[offset + 3] = v[3]; + `};function ut(n,e,t,r,s,a){const i=a?1:-1;return n.identity(),n.a=1/r*2,n.d=i*(1/s*2),n.tx=-1-e*n.a,n.ty=-i-t*n.d,n}const x=new Map;Qe.register(x);function xe(n,e){if(!x.has(n)){const t=new W({source:new $n({resource:n,...e})}),r=()=>{x.get(n)===t&&x.delete(n);};t.once("destroy",r),t.source.once("destroy",r),x.set(n,t);}return x.get(n)}function dt(n){const e=n.colorTexture.source.resource;return globalThis.HTMLCanvasElement&&e instanceof HTMLCanvasElement&&document.body.contains(e)}const be=class ye{constructor(e={}){if(this.uid=st$1("renderTarget"),this.colorTextures=[],this.dirtyId=0,this.isRoot=false,this._size=new Float32Array(2),this._managedColorTextures=false,e={...ye.defaultOptions,...e},this.stencil=e.stencil,this.depth=e.depth,this.isRoot=e.isRoot,typeof e.colorTextures=="number"){this._managedColorTextures=true;for(let t=0;tr.source)];const t=this.colorTexture.source;this.resize(t.width,t.height,t._resolution);}this.colorTexture.source.on("resize",this.onSourceResize,this),(e.depthStencilTexture||this.stencil)&&(e.depthStencilTexture instanceof W||e.depthStencilTexture instanceof It$1?this.depthStencilTexture=e.depthStencilTexture.source:this.ensureDepthStencilTexture());}get size(){const e=this._size;return e[0]=this.pixelWidth,e[1]=this.pixelHeight,e}get width(){return this.colorTexture.source.width}get height(){return this.colorTexture.source.height}get pixelWidth(){return this.colorTexture.source.pixelWidth}get pixelHeight(){return this.colorTexture.source.pixelHeight}get resolution(){return this.colorTexture.source._resolution}get colorTexture(){return this.colorTextures[0]}onSourceResize(e){this.resize(e.width,e.height,e._resolution,true);}ensureDepthStencilTexture(){this.depthStencilTexture||(this.depthStencilTexture=new It$1({width:this.width,height:this.height,resolution:this.resolution,format:"depth24plus-stencil8",autoGenerateMipmaps:false,antialias:false,mipLevelCount:1}));}resize(e,t,r=this.resolution,s=false){this.dirtyId++,this.colorTextures.forEach((a,i)=>{s&&i===0||a.source.resize(e,t,r);}),this.depthStencilTexture&&this.depthStencilTexture.source.resize(e,t,r);}destroy(){this.colorTexture.source.off("resize",this.onSourceResize,this),this._managedColorTextures&&this.colorTextures.forEach(e=>{e.destroy();}),this.depthStencilTexture&&(this.depthStencilTexture.destroy(),delete this.depthStencilTexture);}};be.defaultOptions={width:0,height:0,resolution:1,colorTextures:1,stencil:false,depth:false,antialias:false,isRoot:false};let D=be;class Lt{constructor(e){this.rootViewPort=new Z,this.viewport=new Z,this.onRenderTargetChange=new Pl("onRenderTargetChange"),this.projectionMatrix=new H,this.defaultClearColor=[0,0,0,0],this._renderSurfaceToRenderTargetHash=new Map,this._gpuRenderTargetHash=Object.create(null),this._renderTargetStack=[],this._renderer=e,e.renderableGC.addManagedHash(this,"_gpuRenderTargetHash");}finishRenderPass(){this.adaptor.finishRenderPass(this.renderTarget);}renderStart({target:e,clear:t,clearColor:r,frame:s}){this._renderTargetStack.length=0,this.push(e,t,r,s),this.rootViewPort.copyFrom(this.viewport),this.rootRenderTarget=this.renderTarget,this.renderingToScreen=dt(this.rootRenderTarget),this.adaptor.prerender?.(this.rootRenderTarget);}postrender(){this.adaptor.postrender?.(this.rootRenderTarget);}bind(e,t=true,r,s){const a=this.getRenderTarget(e),i=this.renderTarget!==a;this.renderTarget=a,this.renderSurface=e;const o=this.getGpuRenderTarget(a);(a.pixelWidth!==o.width||a.pixelHeight!==o.height)&&(this.adaptor.resizeGpuRenderTarget(a),o.width=a.pixelWidth,o.height=a.pixelHeight);const l=a.colorTexture,d=this.viewport,c=l.pixelWidth,h=l.pixelHeight;if(!s&&e instanceof W&&(s=e.frame),s){const p=l._resolution;d.x=s.x*p+.5|0,d.y=s.y*p+.5|0,d.width=s.width*p+.5|0,d.height=s.height*p+.5|0;}else d.x=0,d.y=0,d.width=c,d.height=h;return ut(this.projectionMatrix,0,0,d.width/l.resolution,d.height/l.resolution,!a.isRoot),this.adaptor.startRenderPass(a,t,r,d),i&&this.onRenderTargetChange.emit(a),a}clear(e,t=bo.ALL,r){t&&(e&&(e=this.getRenderTarget(e)),this.adaptor.clear(e||this.renderTarget,t,r,this.viewport));}contextChange(){this._gpuRenderTargetHash=Object.create(null);}push(e,t=bo.ALL,r,s){const a=this.bind(e,t,r,s);return this._renderTargetStack.push({renderTarget:a,frame:s}),a}pop(){this._renderTargetStack.pop();const e=this._renderTargetStack[this._renderTargetStack.length-1];this.bind(e.renderTarget,false,null,e.frame);}getRenderTarget(e){return e.isTexture&&(e=e.source),this._renderSurfaceToRenderTargetHash.get(e)??this._initRenderTarget(e)}copyToTexture(e,t,r,s,a){r.x<0&&(s.width+=r.x,a.x-=r.x,r.x=0),r.y<0&&(s.height+=r.y,a.y-=r.y,r.y=0);const{pixelWidth:i,pixelHeight:o}=e;return s.width=Math.min(s.width,i-r.x),s.height=Math.min(s.height,o-r.y),this.adaptor.copyToTexture(e,t,r,s,a)}ensureDepthStencil(){this.renderTarget.stencil||(this.renderTarget.stencil=true,this.adaptor.startRenderPass(this.renderTarget,false,null,this.viewport));}destroy(){this._renderer=null,this._renderSurfaceToRenderTargetHash.forEach((e,t)=>{e!==t&&e.destroy();}),this._renderSurfaceToRenderTargetHash.clear(),this._gpuRenderTargetHash=Object.create(null);}_initRenderTarget(e){let t=null;return $n.test(e)&&(e=xe(e).source),e instanceof D?t=e:e instanceof It$1&&(t=new D({colorTextures:[e]}),e.source instanceof $n&&(t.isRoot=true),e.once("destroy",()=>{t.destroy(),this._renderSurfaceToRenderTargetHash.delete(e);const r=this._gpuRenderTargetHash[t.uid];r&&(this._gpuRenderTargetHash[t.uid]=null,this.adaptor.destroyGpuRenderTarget(r));})),this._renderSurfaceToRenderTargetHash.set(e,t),t}getGpuRenderTarget(e){return this._gpuRenderTargetHash[e.uid]||(this._gpuRenderTargetHash[e.uid]=this.adaptor.initGpuRenderTarget(e))}resetState(){this.renderTarget=null,this.renderSurface=null;}}class Ht extends Ot$1{constructor({buffer:e,offset:t,size:r}){super(),this.uid=st$1("buffer"),this._resourceType="bufferResource",this._touched=0,this._resourceId=st$1("resource"),this._bufferResource=true,this.destroyed=false,this.buffer=e,this.offset=t|0,this.size=r,this.buffer.on("change",this.onBufferChange,this);}onBufferChange(){this._resourceId=st$1("resource"),this.emit("change",this);}destroy(e=false){this.destroyed=true,e&&this.buffer.destroy(),this.emit("change",this),this.buffer=null,this.removeAllListeners();}}class Te{constructor(e){this._renderer=e;}updateRenderable(){}destroyRenderable(){}validateRenderable(){return false}addRenderable(e,t){this._renderer.renderPipes.batch.break(t),t.add(e);}execute(e){e.isRenderable&&e.render(this._renderer);}destroy(){this._renderer=null;}}Te.extension={type:[B$1.WebGLPipes,B$1.WebGPUPipes,B$1.CanvasPipes],name:"customRender"};function E(n,e){const t=n.instructionSet,r=t.instructions;for(let s=0;s1?1:t,n.worldAlpha=t,n.worldColorAlpha=n.worldColor+((t*255|0)<<24);}function Me(n,e,t){if(e===n.updateTick)return;n.updateTick=e,n.didChange=false;const r=n.localTransform;n.updateLocalTransform();const s=n.parent;if(s&&!s.renderGroup?(t|=n._updateFlags,n.relativeGroupTransform.appendFrom(r,s.relativeGroupTransform),t&se&&ae(n,s,t)):(t=n._updateFlags,n.relativeGroupTransform.copyFrom(r),t&se&&ae(n,ht,t)),!n.renderGroup){const a=n.children,i=a.length;for(let d=0;d1?1:r,n.groupAlpha=r,n.groupColorAlpha=n.groupColor+((r*255|0)<<24);}t&Rh&&(n.groupBlendMode=n.localBlendMode==="inherit"?e.groupBlendMode:n.localBlendMode),t&Xi&&(n.globalDisplayStatus=n.localDisplayStatus&e.globalDisplayStatus),n._updateFlags=0;}function pt(n,e){const{list:t}=n.childrenRenderablesToUpdate;let r=false;for(let s=0;s=0;r--)this._updateCachedRenderGroups(e.renderGroupChildren[r],t);if(e.invalidateMatrices(),e.isCachedAsTexture){if(e.textureNeedsUpdate){const r=e.root.getLocalBounds();r.ceil();const s=e.texture;e.texture&&we.returnTexture(e.texture,true);const a=this._renderer,i=e.textureOptions.resolution||a.view.resolution,o=e.textureOptions.antialias??a.view.antialias,l=e.textureOptions.scaleMode??"linear",d=we.getOptimalTexture(r.width,r.height,i,o);d._source.style=new wi({scaleMode:l}),e.texture=d,e._textureBounds||(e._textureBounds=new Lt$1),e._textureBounds.copyFrom(r),s!==e.texture&&e.renderGroupParent&&(e.renderGroupParent.structureDidChange=true);}}else e.texture&&(we.returnTexture(e.texture,true),e.texture=null);}_updateRenderGroups(e){const t=this._renderer,r=t.renderPipes;if(e.runOnRender(t),e.instructionSet.renderPipes=r,e.structureDidChange?O(e.childrenRenderablesToUpdate.list,0):pt(e,r),Ce(e),e.structureDidChange?(e.structureDidChange=false,this._buildInstructions(e,t)):this._updateRenderables(e),e.childrenRenderablesToUpdate.index=0,t.renderPipes.batch.upload(e.instructionSet),!(e.isCachedAsTexture&&!e.textureNeedsUpdate))for(let s=0;s{if(!n.name)throw new Error("BlendMode extension must have a name property");T[n.name]=n.ref;},n=>{delete T[n.name];});class Pe{constructor(e){this._blendModeStack=[],this._isAdvanced=false,this._filterHash=Object.create(null),this._renderer=e,this._renderer.runners.prerender.add(this);}prerender(){this._activeBlendMode="normal",this._isAdvanced=false;}pushBlendMode(e,t,r){this._blendModeStack.push(t),this.setBlendMode(e,t,r);}popBlendMode(e){this._blendModeStack.pop();const t=this._blendModeStack[this._activeBlendMode.length-1]??"normal";this.setBlendMode(null,t,e);}setBlendMode(e,t,r){const s=e instanceof zh;if(this._activeBlendMode===t){this._isAdvanced&&e&&!s&&this._renderableList?.push(e);return}this._isAdvanced&&this._endAdvancedBlendMode(r),this._activeBlendMode=t,e&&(this._isAdvanced=!!T[t],this._isAdvanced&&this._beginAdvancedBlendMode(e,r));}_beginAdvancedBlendMode(e,t){this._renderer.renderPipes.batch.break(t);const r=this._activeBlendMode;if(!T[r]){J$1(`Unable to assign BlendMode: '${r}'. You may want to include: import 'pixi.js/advanced-blend-modes'`);return}const s=this._ensureFilterEffect(r),a=e instanceof zh,i={renderPipeId:"filter",action:"pushFilter",filterEffect:s,renderables:a?null:[e],container:a?e.root:null,canBundle:false};this._renderableList=i.renderables,t.add(i);}_ensureFilterEffect(e){let t=this._filterHash[e];return t||(t=this._filterHash[e]=new vr,t.filters=[new T[e]]),t}_endAdvancedBlendMode(e){this._isAdvanced=false,this._renderableList=null,this._renderer.renderPipes.batch.break(e),e.add({renderPipeId:"filter",action:"popFilter",canBundle:false});}buildStart(){this._isAdvanced=false;}buildEnd(e){this._isAdvanced&&this._endAdvancedBlendMode(e);}destroy(){this._renderer=null,this._renderableList=null;for(const e in this._filterHash)this._filterHash[e].destroy();this._filterHash=null;}}Pe.extension={type:[B$1.WebGLPipes,B$1.WebGPUPipes,B$1.CanvasPipes],name:"blendMode"};const B={png:"image/png",jpg:"image/jpeg",webp:"image/webp"},j=class Ue{constructor(e){this._renderer=e;}_normalizeOptions(e,t={}){return e instanceof U||e instanceof W?{target:e,...t}:{...t,...e}}async image(e){const t=$$1.get().createImage();return t.src=await this.base64(e),t}async base64(e){e=this._normalizeOptions(e,Ue.defaultImageOptions);const{format:t,quality:r}=e,s=this.canvas(e);if(s.toBlob!==void 0)return new Promise((a,i)=>{s.toBlob(o=>{if(!o){i(new Error("ICanvas.toBlob failed!"));return}const l=new FileReader;l.onload=()=>a(l.result),l.onerror=i,l.readAsDataURL(o);},B[t],r);});if(s.toDataURL!==void 0)return s.toDataURL(B[t],r);if(s.convertToBlob!==void 0){const a=await s.convertToBlob({type:B[t],quality:r});return new Promise((i,o)=>{const l=new FileReader;l.onload=()=>i(l.result),l.onerror=o,l.readAsDataURL(a);})}throw new Error("Extract.base64() requires ICanvas.toDataURL, ICanvas.toBlob, or ICanvas.convertToBlob to be implemented")}canvas(e){e=this._normalizeOptions(e);const t=e.target,r=this._renderer;if(t instanceof W)return r.texture.generateCanvas(t);const s=r.textureGenerator.generateTexture(e),a=r.texture.generateCanvas(s);return s.destroy(true),a}pixels(e){e=this._normalizeOptions(e);const t=e.target,r=this._renderer,s=t instanceof W?t:r.textureGenerator.generateTexture(e),a=r.texture.getPixels(s);return t instanceof U&&s.destroy(true),a}texture(e){return e=this._normalizeOptions(e),e.target instanceof W?e.target:this._renderer.textureGenerator.generateTexture(e)}download(e){e=this._normalizeOptions(e);const t=this.canvas(e),r=document.createElement("a");r.download=e.filename??"image.png",r.href=t.toDataURL("image/png"),document.body.appendChild(r),r.click(),document.body.removeChild(r);}log(e){const t=e.width??200;e=this._normalizeOptions(e);const r=this.canvas(e),s=r.toDataURL();console.log(`[Pixi Texture] ${r.width}px ${r.height}px`);const a=["font-size: 1px;",`padding: ${t}px 300px;`,`background: url(${s}) no-repeat;`,"background-size: contain;"].join(" ");console.log("%c ",a);}destroy(){this._renderer=null;}};j.extension={type:[B$1.WebGLSystem,B$1.WebGPUSystem],name:"extract"};j.defaultImageOptions={format:"png",quality:1};let _t=j;const vt=new Z,xt=new Lt$1,bt=[0,0,0,0];class Be{constructor(e){this._renderer=e;}generateTexture(e){e instanceof U&&(e={target:e,frame:void 0,textureSourceOptions:{},resolution:void 0});const t=e.resolution||this._renderer.resolution,r=e.antialias||this._renderer.view.antialias,s=e.target;let a=e.clearColor;a?a=Array.isArray(a)&&a.length===4?a:ot$1.shared.setValue(a).toArray():a=bt;const i=e.frame?.copyTo(vt)||Wn(s,xt).rectangle;i.width=Math.max(i.width,1/t)|0,i.height=Math.max(i.height,1/t)|0;const o=mt$1.create({...e.textureSourceOptions,width:i.width,height:i.height,resolution:t,antialias:r}),l=H.shared.translate(-i.x,-i.y);return this._renderer.render({container:s,transform:l,target:o,clearColor:a}),o.source.updateMipmaps(),o}destroy(){this._renderer=null;}}Be.extension={type:[B$1.WebGLSystem,B$1.WebGPUSystem],name:"textureGenerator"};const q=class Ge{constructor(e){this._managedResources=[],this._managedResourceHashes=[],this._ready=false,this._renderer=e;}init(e){e={...Ge.defaultOptions,...e},this.maxUnusedTime=e.gcMaxUnusedTime,this._frequency=e.gcFrequency,this.enabled=e.gcActive,this.now=performance.now();}get enabled(){return !!this._handler}set enabled(e){this.enabled!==e&&(e?this._handler=this._renderer.scheduler.repeat(()=>{this._ready=true;},this._frequency,false):(this._renderer.scheduler.cancel(this._handler),this._handler=0));}prerender({container:e}){this.now=performance.now(),e.renderGroup.gcTick=this._renderer.tick++,this._updateInstructionGCTick(e.renderGroup,e.renderGroup.gcTick);}postrender(){!this._ready||!this.enabled||(this.run(),this._ready=false);}_updateInstructionGCTick(e,t){e.instructionSet.gcTick=t;for(const r of e.renderGroupChildren)this._updateInstructionGCTick(r,t);}addResource(e,t){if(e._gcLastUsed!==-1){e._gcLastUsed=this.now,e._onTouch?.(this.now);return}const r=this._managedResources.length;e._gcData={index:r,type:t},e._gcLastUsed=this.now,e._onTouch?.(this.now),e.once("unload",this.removeResource,this),this._managedResources.push(e);}removeResource(e){const t=e._gcData;if(!t)return;const r=t.index,s=this._managedResources.length-1;if(r!==s){const a=this._managedResources[s];this._managedResources[r]=a,a._gcData.index=r;}this._managedResources.length--,e._gcData=null,e._gcLastUsed=-1;}addResourceHash(e,t,r,s=0){this._managedResourceHashes.push({context:e,hash:t,type:r,priority:s}),this._managedResourceHashes.sort((a,i)=>a.priority-i.priority);}run(){const e=performance.now(),t=this._managedResourceHashes;for(const s of t)this.runOnHash(s,e);let r=0;for(let s=0;s{e.off("unload",this.removeResource,this);}),this._managedResources.length=0,this._managedResourceHashes.length=0,this._renderer=null;}};q.extension={type:[B$1.WebGLSystem,B$1.WebGPUSystem],name:"gc",priority:0};q.defaultOptions={gcActive:true,gcMaxUnusedTime:6e4,gcFrequency:3e4};let yt=q;class Ae{constructor(e){this._stackIndex=0,this._globalUniformDataStack=[],this._uniformsPool=[],this._activeUniforms=[],this._bindGroupPool=[],this._activeBindGroups=[],this._renderer=e;}reset(){this._stackIndex=0;for(let e=0;e"},uWorldTransformMatrix:{value:new H,type:"mat3x3"},uWorldColorAlpha:{value:new Float32Array(4),type:"vec4"},uResolution:{value:[0,0],type:"vec2"}},{isStatic:true})}destroy(){this._renderer=null,this._globalUniformDataStack.length=0,this._uniformsPool.length=0,this._activeUniforms.length=0,this._bindGroupPool.length=0,this._activeBindGroups.length=0,this._currentGlobalUniformData=null;}}Ae.extension={type:[B$1.WebGLSystem,B$1.WebGPUSystem,B$1.CanvasSystem],name:"globalUniforms"};let Tt=1;class Ie{constructor(){this._tasks=[],this._offset=0;}init(){ri.system.add(this._update,this);}repeat(e,t,r=true){const s=Tt++;let a=0;return r&&(this._offset+=1e3,a=this._offset),this._tasks.push({func:e,duration:t,start:performance.now(),offset:a,last:performance.now(),repeat:true,id:s}),s}cancel(e){for(let t=0;t=r.duration){const s=e-r.start;r.func(s),r.last=e;}}}destroy(){ri.system.remove(this._update,this),this._tasks.length=0;}}Ie.extension={type:[B$1.WebGLSystem,B$1.WebGPUSystem,B$1.CanvasSystem],name:"scheduler",priority:0};let ne=false;function kt(n){if(!ne){if($$1.get().getNavigator().userAgent.toLowerCase().indexOf("chrome")>-1){const e=[`%c %c %c %c %c PixiJS %c v${Ao} (${n}) http://www.pixijs.com/ + +`,"background: #E72264; padding:5px 0;","background: #6CA2EA; padding:5px 0;","background: #B5D33D; padding:5px 0;","background: #FED23F; padding:5px 0;","color: #FFFFFF; background: #E72264; padding:5px 0;","color: #E72264; background: #FFFFFF; padding:5px 0;"];globalThis.console.log(...e);}else globalThis.console&&globalThis.console.log(`PixiJS ${Ao} - ${n} - http://www.pixijs.com/`);ne=true;}}class ${constructor(e){this._renderer=e;}init(e){if(e.hello){let t=this._renderer.name;this._renderer.type===Ss.WEBGL&&(t+=` ${this._renderer.context.webGLVersion}`),kt(t);}}}$.extension={type:[B$1.WebGLSystem,B$1.WebGPUSystem,B$1.CanvasSystem],name:"hello",priority:-2};$.defaultOptions={hello:false};function Ct(n){let e=false;for(const r in n)if(n[r]==null){e=true;break}if(!e)return n;const t=Object.create(null);for(const r in n){const s=n[r];s&&(t[r]=s);}return t}function Mt(n){let e=0;for(let t=0;tthis.run(),this._frequency,false),this._hashHandler=this._renderer.scheduler.repeat(()=>{for(const t of this._managedHashes)t.context[t.hash]=Ct(t.context[t.hash]);},this._frequency),this._arrayHandler=this._renderer.scheduler.repeat(()=>{for(const t of this._managedArrays)Mt(t.context[t.hash]);},this._frequency)):(this._renderer.scheduler.cancel(this._handler),this._renderer.scheduler.cancel(this._hashHandler),this._renderer.scheduler.cancel(this._arrayHandler)));}addManagedHash(e,t){this._managedHashes.push({context:e,hash:t});}addManagedArray(e,t){this._managedArrays.push({context:e,hash:t});}prerender({container:e}){this._now=performance.now(),e.renderGroup.gcTick=St++,this._updateInstructionGCTick(e.renderGroup,e.renderGroup.gcTick);}addRenderable(e){this.enabled&&(e._lastUsed===-1&&(this._managedRenderables.push(e),e.once("destroyed",this._removeRenderable,this)),e._lastUsed=this._now);}run(){const e=this._now,t=this._managedRenderables,r=this._renderer.renderPipes;let s=0;for(let a=0;athis.maxUnusedTime){if(!i.destroyed){const d=r;o&&(o.structureDidChange=true),d[i.renderPipeId].destroyRenderable(i);}i._lastUsed=-1,s++,i.off("destroyed",this._removeRenderable,this);}else t[a-s]=i;}t.length-=s;}destroy(){this.enabled=false,this._renderer=null,this._managedRenderables.length=0,this._managedHashes.length=0,this._managedArrays.length=0;}_removeRenderable(e){const t=this._managedRenderables.indexOf(e);t>=0&&(e.off("destroyed",this._removeRenderable,this),this._managedRenderables[t]=null);}_updateInstructionGCTick(e,t){e.instructionSet.gcTick=t;for(const r of e.renderGroupChildren)this._updateInstructionGCTick(r,t);}};K.extension={type:[B$1.WebGLSystem,B$1.WebGPUSystem],name:"renderableGC",priority:0};K.defaultOptions={renderableGCActive:true,renderableGCMaxUnusedTime:6e4,renderableGCFrequency:3e4};let Rt=K;const Y=class R{get count(){return this._renderer.tick}get checkCount(){return this._checkCount}set checkCount(e){D$1("8.15.0","TextureGCSystem.run is deprecated, please use the GCSystem instead."),this._checkCount=e;}get maxIdle(){return this._renderer.gc.maxUnusedTime/1e3*60}set maxIdle(e){D$1("8.15.0","TextureGCSystem.run is deprecated, please use the GCSystem instead."),this._renderer.gc.maxUnusedTime=e/60*1e3;}get checkCountMax(){return Math.floor(this._renderer.gc._frequency/1e3)}set checkCountMax(e){D$1("8.15.0","TextureGCSystem.run is deprecated, please use the GCSystem instead.");}get active(){return this._renderer.gc.enabled}set active(e){D$1("8.15.0","TextureGCSystem.run is deprecated, please use the GCSystem instead."),this._renderer.gc.enabled=e;}constructor(e){this._renderer=e,this._checkCount=0;}init(e){e.textureGCActive!==R.defaultOptions.textureGCActive&&(this.active=e.textureGCActive),e.textureGCMaxIdle!==R.defaultOptions.textureGCMaxIdle&&(this.maxIdle=e.textureGCMaxIdle),e.textureGCCheckCountMax!==R.defaultOptions.textureGCCheckCountMax&&(this.checkCountMax=e.textureGCCheckCountMax);}run(){D$1("8.15.0","TextureGCSystem.run is deprecated, please use the GCSystem instead."),this._renderer.gc.run();}destroy(){this._renderer=null;}};Y.extension={type:[B$1.WebGLSystem,B$1.WebGPUSystem],name:"textureGC"};Y.defaultOptions={textureGCActive:true,textureGCAMaxIdle:null,textureGCMaxIdle:3600,textureGCCheckCountMax:600};let wt=Y;const J=class Ee{get autoDensity(){return this.texture.source.autoDensity}set autoDensity(e){this.texture.source.autoDensity=e;}get resolution(){return this.texture.source._resolution}set resolution(e){this.texture.source.resize(this.texture.source.width,this.texture.source.height,e);}init(e){e={...Ee.defaultOptions,...e},e.view&&(D$1(j$1,"ViewSystem.view has been renamed to ViewSystem.canvas"),e.canvas=e.view),this.screen=new Z(0,0,e.width,e.height),this.canvas=e.canvas||$$1.get().createCanvas(),this.antialias=!!e.antialias,this.texture=xe(this.canvas,e),this.renderTarget=new D({colorTextures:[this.texture],depth:!!e.depth,isRoot:true}),this.texture.source.transparent=e.backgroundAlpha<1,this.resolution=e.resolution;}resize(e,t,r){this.texture.source.resize(e,t,r),this.screen.width=this.texture.frame.width,this.screen.height=this.texture.frame.height;}destroy(e=false){(typeof e=="boolean"?e:e?.removeView)&&this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this.texture.destroy();}};J.extension={type:[B$1.WebGLSystem,B$1.WebGPUSystem,B$1.CanvasSystem],name:"view",priority:0};J.defaultOptions={width:800,height:600,autoDensity:false,antialias:false};let Pt=J;const Wt=[gt,Ae,$,Pt,Se,yt,wt,Be,_t,Fl,Rt,Ie],zt=[Pe,me,Re,ke,ge,ve,_e,Te]; + +export { At as A, C, Dt as D, Et as E, Ft as F, Ht as H, It as I, Lt as L, Ot as O, Wt as W, b, lt as l, zt as z }; +//# sourceMappingURL=SharedSystems-CTk4bhlr.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Square-CDuLMWYC.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Square-CDuLMWYC.js new file mode 100644 index 0000000000000000000000000000000000000000..d25366c1ac54ab3e11c8ec9ee79ea7918bc40a34 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Square-CDuLMWYC.js @@ -0,0 +1,7 @@ +import { f as fallback } from './async-D55cHugf.js'; +import { a as attr, d as bind_props } from './index-u8mz_F03.js'; + +function s(i,r){let e=fallback(r.fill,"currentColor"),o=fallback(r.stroke_width,1.5);i.push(``),bind_props(r,{fill:e,stroke_width:o});} + +export { s }; +//# sourceMappingURL=Square-CDuLMWYC.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/StaticAudio-CgMOYc6I.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/StaticAudio-CgMOYc6I.js new file mode 100644 index 0000000000000000000000000000000000000000..07c80ee9054162f74e1c536fa9c401bdbde4a74a --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/StaticAudio-CgMOYc6I.js @@ -0,0 +1,53 @@ +import './async-D55cHugf.js'; +import { d as bind_props, f as attr_class, a as attr, g as attr_style, i as stringify } from './index-u8mz_F03.js'; +import './2-BLdXJizP.js'; +import { b as b$1, w as w$2 } from './utils.svelte-B2py64Fz.js'; +import { k as k$1 } from './BlockLabel-bKYWnOzQ.js'; +import { u } from './DownloadLink-nj1p0krE.js'; +import { w as w$1 } from './IconButton-BRnu7KaR.js'; +import { p } from './Empty-DGRbZO0a.js'; +import { y as y$1 } from './ShareButton-7VTs9dOO.js'; +import { l } from './Download-DcU5dONL.js'; +import { t } from './Music-B6sg6ISZ.js'; +import { y } from './IconButtonWrapper-CjFRPb3y.js'; +import { Z } from './MinimalAudioPlayer-CtXDbTgQ.js'; +import { p as p$1, u as u$1, c } from './VolumeLevels-DlU2d99x.js'; +import { n } from './Play-B_z3rKL1.js'; +import { r } from './Undo-Ce01x-M5.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; +import './clone-Yk88IHKV.js'; +import './index-server-CQz6EZl_.js'; + +function Dn(r){r.push('');}function Cn(r){r.push('CC');}function _n(r){r.push('');}const ps=(r,t)=>(t||(t=5),r/100*t||5);function On(r,t){r.component(e=>{let{currentVolume:s=void 0,show_volume_slider:i=void 0,waveform:n}=t;e.push(``),bind_props(t,{currentVolume:s,show_volume_slider:i});});}function Mn(r$1,t){r$1.component(e=>{let {waveform:s,audio_duration:i,i18n:n$1,playing:o,show_redo:a=false,interactive:l=false,handle_trim_audio:c$1,mode:h=void 0,container:u,handle_reset_value:d,waveform_options:f={},trim_region_settings:g={},show_volume_slider:m=void 0,editable:p=true,subtitles_toggle:y=void 0,show_subtitles:A=false,trimDuration:T=void 0}=t,R=[.5,1,1.5,2],E=R[1],v=1;let P=true,L;function _(D){D.push(`
    "),m?(D.push(""),On(D,{waveform:s,get currentVolume(){return v},set currentVolume(q){v=q,P=false;},get show_volume_slider(){return m},set show_volume_slider(q){m=q,P=false;}})):D.push(""),D.push(` ${escape_html(E)}x
    '),A?(D.push(""),D.push(`")):D.push(""),D.push(" "),p&&l?(D.push(""),a&&!h?(D.push(""),D.push('")):D.push(""),D.push(" "),h?(D.push(""),D.push(' ')):(D.push(""),D.push('")),D.push("")):D.push(""),D.push("
    ");}do P=true,L=e.copy(),_(L);while(!P);e.subsume(L),bind_props(t,{mode:h,show_volume_slider:m,subtitles_toggle:y,trimDuration:T});});}function Nn(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Un={exports:{}};(function(r,t){(function(e){var s=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,i=/^(?=([^\/?#]*))\1([^]*)$/,n=/(?:\/|^)\.(?=\/)/g,o=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,a={buildAbsoluteURL:function(l,c,h){if(h=h||{},l=l.trim(),c=c.trim(),!c){if(!h.alwaysNormalize)return l;var u=a.parseURL(l);if(!u)throw new Error("Error trying to parse base URL.");return u.path=a.normalizePath(u.path),a.buildURLFromParts(u)}var d=a.parseURL(c);if(!d)throw new Error("Error trying to parse relative URL.");if(d.scheme)return h.alwaysNormalize?(d.path=a.normalizePath(d.path),a.buildURLFromParts(d)):c;var f=a.parseURL(l);if(!f)throw new Error("Error trying to parse base URL.");if(!f.netLoc&&f.path&&f.path[0]!=="/"){var g=i.exec(f.path);f.netLoc=g[1],f.path=g[2];}f.netLoc&&!f.path&&(f.path="/");var m={scheme:f.scheme,netLoc:d.netLoc,path:null,params:d.params,query:d.query,fragment:d.fragment};if(!d.netLoc&&(m.netLoc=f.netLoc,d.path[0]!=="/"))if(!d.path)m.path=f.path,d.params||(m.params=f.params,d.query||(m.query=f.query));else {var p=f.path,y=p.substring(0,p.lastIndexOf("/")+1)+d.path;m.path=a.normalizePath(y);}return m.path===null&&(m.path=h.alwaysNormalize?a.normalizePath(d.path):d.path),a.buildURLFromParts(m)},parseURL:function(l){var c=s.exec(l);return c?{scheme:c[1]||"",netLoc:c[2]||"",path:c[3]||"",params:c[4]||"",query:c[5]||"",fragment:c[6]||""}:null},normalizePath:function(l){for(l=l.split("").reverse().join("").replace(n,"");l.length!==(l=l.replace(o,"")).length;);return l.split("").reverse().join("")},buildURLFromParts:function(l){return l.scheme+l.netLoc+l.path+l.params+l.query+l.fragment}};r.exports=a;})();})(Un);function ys(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);t&&(s=s.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),e.push.apply(e,s);}return e}function ut(r){for(var t=1;tt.substring(0,2)==="X-")}decimalInteger(t){const e=parseInt(this[t],10);return e>Number.MAX_SAFE_INTEGER?1/0:e}hexadecimalInteger(t){if(this[t]){let e=(this[t]||"0x").slice(2);e=(e.length&1?"0":"")+e;const s=new Uint8Array(e.length/2);for(let i=0;iNumber.MAX_SAFE_INTEGER?1/0:e}decimalFloatingPoint(t){return parseFloat(this[t])}optionalFloat(t,e){const s=this[t];return s?parseFloat(s):e}enumeratedString(t){return this[t]}bool(t){return this[t]==="YES"}decimalResolution(t){const e=Yn.exec(this[t]);if(e!==null)return {width:parseInt(e[1],10),height:parseInt(e[2],10)}}static parseAttrList(t){let e;const s={};for(Ts.lastIndex=0;(e=Ts.exec(t))!==null;){let n=e[2];n.indexOf('"')===0&&n.lastIndexOf('"')===n.length-1&&(n=n.slice(1,-1));const o=e[1].trim();s[o]=n;}return s}}class zn{constructor(t,e){if(this.attr=void 0,this._startDate=void 0,this._endDate=void 0,this._badValueForSameId=void 0,e){const s=e.attr;for(const i in s)if(Object.prototype.hasOwnProperty.call(t,i)&&t[i]!==s[i]){b.warn(`DATERANGE tag attribute: "${i}" does not match for tags with ID: "${t.ID}"`),this._badValueForSameId=i;break}t=ct(new Qt({}),s,t);}if(this.attr=t,this._startDate=new Date(t["START-DATE"]),"END-DATE"in this.attr){const s=new Date(this.attr["END-DATE"]);$(s.getTime())&&(this._endDate=s);}}get id(){return this.attr.ID}get class(){return this.attr.CLASS}get startDate(){return this._startDate}get endDate(){if(this._endDate)return this._endDate;const t=this.duration;return t!==null?new Date(this._startDate.getTime()+t*1e3):null}get duration(){if("DURATION"in this.attr){const t=this.attr.decimalFloatingPoint("DURATION");if($(t))return t}else if(this._endDate)return (this._endDate.getTime()-this._startDate.getTime())/1e3;return null}get plannedDuration(){return "PLANNED-DURATION"in this.attr?this.attr.decimalFloatingPoint("PLANNED-DURATION"):null}get endOnNext(){return this.attr.bool("END-ON-NEXT")}get isValid(){return !!this.id&&!this._badValueForSameId&&$(this.startDate.getTime())&&(this.duration===null||this.duration>=0)&&(!this.endOnNext||!!this.class)}}class qn{constructor(){this.aborted=false,this.loaded=0,this.retry=0,this.total=0,this.chunkCount=0,this.bwEstimate=0,this.loading={start:0,first:0,end:0},this.parsing={start:0,end:0},this.buffering={start:0,first:0,end:0};}}var lt={AUDIO:"audio",VIDEO:"video",AUDIOVIDEO:"audiovideo"};function is(r){return Uint8Array.from(atob(r),t=>t.charCodeAt(0))}function jn(r){const t=He(r).subarray(0,16),e=new Uint8Array(16);return e.set(t,16-t.length),e}function Xn(r){const t=function(s,i,n){const o=s[i];s[i]=s[n],s[n]=o;};t(r,0,3),t(r,1,2),t(r,4,5),t(r,6,7);}function Qn(r){const t=r.split(":");let e=null;if(t[0]==="data"&&t.length===2){const s=t[1].split(";"),i=s[s.length-1].split(",");if(i.length===2){const n=i[0]==="base64",o=i[1];n?(s.splice(-1,1),e=is(o)):e=jn(o);}}return e}function He(r){return Uint8Array.from(unescape(encodeURIComponent(r)),t=>t.charCodeAt(0))}const Kt=typeof self<"u"?self:void 0;var J={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},ht={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function Ss(r){switch(r){case ht.FAIRPLAY:return J.FAIRPLAY;case ht.PLAYREADY:return J.PLAYREADY;case ht.WIDEVINE:return J.WIDEVINE;case ht.CLEARKEY:return J.CLEARKEY}}var ui={WIDEVINE:"edef8ba979d64acea3c827dcd51d21ed"};function Zn(r){if(r===ui.WIDEVINE)return J.WIDEVINE}function Es(r){switch(r){case J.FAIRPLAY:return ht.FAIRPLAY;case J.PLAYREADY:return ht.PLAYREADY;case J.WIDEVINE:return ht.WIDEVINE;case J.CLEARKEY:return ht.CLEARKEY}}function Ie(r){const{drmSystems:t,widevineLicenseUrl:e}=r,s=t?[J.FAIRPLAY,J.WIDEVINE,J.PLAYREADY,J.CLEARKEY].filter(i=>!!t[i]):[];return !s[J.WIDEVINE]&&e&&s.push(J.WIDEVINE),s}const di=(function(r){return Kt!=null&&(r=Kt.navigator)!=null&&r.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null})();function Jn(r,t,e,s){let i;switch(r){case J.FAIRPLAY:i=["cenc","sinf"];break;case J.WIDEVINE:case J.PLAYREADY:i=["cenc"];break;case J.CLEARKEY:i=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${r}`)}return tr(i,t,e,s)}function tr(r,t,e,s){return [{initDataTypes:r,persistentState:s.persistentState||"optional",distinctiveIdentifier:s.distinctiveIdentifier||"optional",sessionTypes:s.sessionTypes||[s.sessionType||"temporary"],audioCapabilities:t.map(n=>({contentType:`audio/mp4; codecs="${n}"`,robustness:s.audioRobustness||"",encryptionScheme:s.audioEncryptionScheme||null})),videoCapabilities:e.map(n=>({contentType:`video/mp4; codecs="${n}"`,robustness:s.videoRobustness||"",encryptionScheme:s.videoEncryptionScheme||null}))}]}function Ft(r,t,e){return Uint8Array.prototype.slice?r.slice(t,e):new Uint8Array(Array.prototype.slice.call(r,t,e))}const ns=(r,t)=>t+10<=r.length&&r[t]===73&&r[t+1]===68&&r[t+2]===51&&r[t+3]<255&&r[t+4]<255&&r[t+6]<128&&r[t+7]<128&&r[t+8]<128&&r[t+9]<128,fi=(r,t)=>t+10<=r.length&&r[t]===51&&r[t+1]===68&&r[t+2]===73&&r[t+3]<255&&r[t+4]<255&&r[t+6]<128&&r[t+7]<128&&r[t+8]<128&&r[t+9]<128,jt=(r,t)=>{const e=t;let s=0;for(;ns(r,t);){s+=10;const i=Le(r,t+6);s+=i,fi(r,t+10)&&(s+=10),t+=s;}if(s>0)return r.subarray(e,e+s)},Le=(r,t)=>{let e=0;return e=(r[t]&127)<<21,e|=(r[t+1]&127)<<14,e|=(r[t+2]&127)<<7,e|=r[t+3]&127,e},er=(r,t)=>ns(r,t)&&Le(r,t+6)+10<=r.length-t,rs=r=>{const t=nr(r);for(let e=0;er&&r.key==="PRIV"&&r.info==="com.apple.streaming.transportStreamTimestamp",ir=r=>{const t=String.fromCharCode(r[0],r[1],r[2],r[3]),e=Le(r,4),s=10;return {type:t,size:e,data:r.subarray(s,s+e)}},nr=r=>{let t=0;const e=[];for(;ns(r,t);){const s=Le(r,t+6);t+=10;const i=t+s;for(;t+8r.type==="PRIV"?or(r):r.type[0]==="W"?lr(r):ar(r),or=r=>{if(r.size<2)return;const t=At(r.data,true),e=new Uint8Array(r.data.subarray(t.length+1));return {key:r.type,info:t,data:e.buffer}},ar=r=>{if(r.size<2)return;if(r.type==="TXXX"){let e=1;const s=At(r.data.subarray(e),true);e+=s.length+1;const i=At(r.data.subarray(e));return {key:r.type,info:s,data:i}}const t=At(r.data.subarray(1));return {key:r.type,data:t}},lr=r=>{if(r.type==="WXXX"){if(r.size<2)return;let e=1;const s=At(r.data.subarray(e),true);e+=s.length+1;const i=At(r.data.subarray(e));return {key:r.type,info:s,data:i}}const t=At(r.data);return {key:r.type,data:t}},cr=r=>{if(r.data.byteLength===8){const t=new Uint8Array(r.data),e=t[3]&1;let s=(t[4]<<23)+(t[5]<<15)+(t[6]<<7)+t[7];return s/=45,e&&(s+=4772185884e-2),Math.round(s)}},At=(r,t=false)=>{const e=hr();if(e){const c=e.decode(r);if(t){const h=c.indexOf("\0");return h!==-1?c.substring(0,h):c}return c.replace(/\0/g,"")}const s=r.length;let i,n,o,a="",l=0;for(;l>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:a+=String.fromCharCode(i);break;case 12:case 13:n=r[l++],a+=String.fromCharCode((i&31)<<6|n&63);break;case 14:n=r[l++],o=r[l++],a+=String.fromCharCode((i&15)<<12|(n&63)<<6|(o&63)<<0);break}}return a};let we;function hr(){if(!navigator.userAgent.includes("PlayStation 4"))return !we&&typeof self.TextDecoder<"u"&&(we=new self.TextDecoder("utf-8")),we}const St={hexDump:function(r){let t="";for(let e=0;e>24,r[t+1]=e>>16&255,r[t+2]=e>>8&255,r[t+3]=e&255;}function dr(r){const t=r.byteLength;for(let e=0;e8&&r[e+4]===109&&r[e+5]===111&&r[e+6]===111&&r[e+7]===102)return true;e=s>1?e+s:t;}return false}function K(r,t){const e=[];if(!t.length)return e;const s=r.byteLength;for(let i=0;i1?i+n:s;if(o===t[0])if(t.length===1)e.push(r.subarray(i+8,a));else {const l=K(r.subarray(i+8,a),t.slice(1));l.length&&ur.apply(e,l);}i=a;}return e}function fr(r){const t=[],e=r[0];let s=8;const i=M(r,s);s+=4;let n=0,o=0;e===0?(n=M(r,s),o=M(r,s+4),s+=8):(n=vs(r,s),o=vs(r,s+8),s+=16),s+=2;let a=r.length+o;const l=mi(r,s);s+=2;for(let c=0;c>>31===1)return b.warn("SIDX has hierarchical references (not supported)"),null;const g=M(r,h);h+=4,t.push({referenceSize:d,subsegmentDuration:g,info:{duration:g/i,start:a,end:a+d-1}}),a+=d,h+=4,s=h;}return {earliestPresentationTime:n,timescale:i,version:e,referencesCount:l,references:t}}function xi(r){const t=[],e=K(r,["moov","trak"]);for(let i=0;i{const n=M(i,4),o=t[n];o&&(o.default={duration:M(i,12),flags:M(i,20)});}),t}function gr(r){const t=r.subarray(8),e=t.subarray(86),s=st(t.subarray(4,8));let i=s;const n=s==="enca"||s==="encv";if(n){const a=K(t,[s])[0].subarray(s==="enca"?28:78);K(a,["sinf"]).forEach(c=>{const h=K(c,["schm"])[0];if(h){const u=st(h.subarray(4,8));if(u==="cbcs"||u==="cenc"){const d=K(c,["frma"])[0];d&&(i=st(d));}}});}switch(i){case "avc1":case "avc2":case "avc3":case "avc4":{const o=K(e,["avcC"])[0];i+="."+Jt(o[1])+Jt(o[2])+Jt(o[3]);break}case "mp4a":{const o=K(t,[s])[0],a=K(o.subarray(28),["esds"])[0];if(a&&a.length>12){let l=4;if(a[l++]!==3)break;l=Ce(a,l),l+=2;const c=a[l++];if(c&128&&(l+=2),c&64&&(l+=a[l++]),a[l++]!==4)break;l=Ce(a,l);const h=a[l++];if(h===64)i+="."+Jt(h);else break;if(l+=12,a[l++]!==5)break;l=Ce(a,l);const u=a[l++];let d=(u&248)>>3;d===31&&(d+=1+((u&7)<<3)+((a[l]&224)>>5)),i+="."+d;}break}case "hvc1":case "hev1":{const o=K(e,["hvcC"])[0],a=o[1],l=["","A","B","C"][a>>6],c=a&31,h=M(o,2),u=(a&32)>>5?"H":"L",d=o[12],f=o.subarray(6,12);i+="."+l+c,i+="."+h.toString(16).toUpperCase(),i+="."+u+d;let g="";for(let m=f.length;m--;){const p=f[m];(p||g)&&(g="."+p.toString(16).toUpperCase()+g);}i+=g;break}case "dvh1":case "dvhe":{const o=K(e,["dvcC"])[0],a=o[2]>>1&127,l=o[2]<<5&32|o[3]>>3&31;i+="."+Tt(a)+"."+Tt(l);break}case "vp09":{const o=K(e,["vpcC"])[0],a=o[4],l=o[5],c=o[6]>>4&15;i+="."+Tt(a)+"."+Tt(l)+"."+Tt(c);break}case "av01":{const o=K(e,["av1C"])[0],a=o[1]>>>5,l=o[1]&31,c=o[2]>>>7?"H":"M",h=(o[2]&64)>>6,u=(o[2]&32)>>5,d=a===2&&h?u?12:10:h?10:8,f=(o[2]&16)>>4,g=(o[2]&8)>>3,m=(o[2]&4)>>2,p=o[2]&3;i+="."+a+"."+Tt(l)+c+"."+Tt(d)+"."+f+"."+g+m+p+"."+Tt(1)+"."+Tt(1)+"."+Tt(1)+"."+0;break}}return {codec:i,encrypted:n}}function Ce(r,t){const e=t+5;for(;r[t++]&128&&t{const o=K(i,["mdia","minf","stbl","stsd"])[0].subarray(8);let a=K(o,["enca"]);const l=a.length>0;l||(a=K(o,["encv"])),a.forEach(c=>{const h=l?c.subarray(28):c.subarray(78);K(h,["sinf"]).forEach(d=>{const f=yi(d);if(f){const g=f.subarray(8,24);g.some(m=>m!==0)||(b.log(`[eme] Patching keyId in 'enc${l?"a":"v"}>sinf>>tenc' box: ${St.hexDump(g)} -> ${St.hexDump(e)}`),f.set(e,8));}});});}),r}function yi(r){const t=K(r,["schm"])[0];if(t){const e=st(t.subarray(4,8));if(e==="cbcs"||e==="cenc")return K(r,["schi","tenc"])[0]}return b.error("[eme] missing 'schm' box"),null}function pr(r,t){return K(t,["moof","traf"]).reduce((e,s)=>{const i=K(s,["tfdt"])[0],n=i[0],o=K(s,["tfhd"]).reduce((a,l)=>{const c=M(l,4),h=r[c];if(h){let u=M(i,4);if(n===1){if(u===pe)return b.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"),a;u*=pe+1,u+=M(i,8);}const d=h.timescale||9e4,f=u/d;if($(f)&&(a===null||ff+g.info.duration||0,0);a=Math.max(a,d+u.earliestPresentationTime/u.timescale),l=a-o;}}if(l&&$(l))return l}return s||i}function yr(r){const t=M(r,0);let e=8;t&1&&(e+=4),t&4&&(e+=4);let s=0;const i=M(r,4);for(let n=0;n{K(s,["tfhd"]).forEach(i=>{const n=M(i,4),o=r[n];if(!o)return;const a=o.timescale||9e4;K(s,["tfdt"]).forEach(l=>{const c=l[0],h=e*a;if(h){let u=M(l,4);if(c===0)u-=h,u=Math.max(u,0),De(l,4,u);else {u*=Math.pow(2,32),u+=M(l,8),u-=h,u=Math.max(u,0);const d=Math.floor(u/(pe+1)),f=Math.floor(u%(pe+1));De(l,4,d),De(l,8,f);}}});});});}function Sr(r){const t={valid:null,remainder:null},e=K(r,["moof"]);if(e.length<2)return t.remainder=r,t;const s=e[e.length-1];return t.valid=Ft(r,0,s.byteOffset-8),t.remainder=Ft(r,s.byteOffset-8),t}function gt(r,t){const e=new Uint8Array(r.length+t.length);return e.set(r),e.set(t,r.length),e}function As(r,t){const e=[],s=t.samples,i=t.timescale,n=t.id;let o=false;return K(s,["moof"]).map(l=>{const c=l.byteOffset-8;K(l,["traf"]).map(u=>{const d=K(u,["tfdt"]).map(f=>{const g=f[0];let m=M(f,4);return g===1&&(m*=Math.pow(2,32),m+=M(f,8)),m/i})[0];return d!==void 0&&(r=d),K(u,["tfhd"]).map(f=>{const g=M(f,4),m=M(f,0)&16777215,p=(m&1)!==0,y=(m&2)!==0,A=(m&8)!==0;let T=0;const R=(m&16)!==0;let E=0;const I=(m&32)!==0;let v=8;g===n&&(p&&(v+=8),y&&(v+=4),A&&(T=M(f,v),v+=4),R&&(E=M(f,v),v+=4),I&&(v+=4),t.type==="video"&&(o=Er(t.codec)),K(u,["trun"]).map(C=>{const P=C[0],L=M(C,0)&16777215,_=(L&1)!==0;let D=0;const q=(L&4)!==0,X=(L&256)!==0;let V=0;const B=(L&512)!==0;let j=0;const Q=(L&1024)!==0,O=(L&2048)!==0;let F=0;const Y=M(C,4);let G=8;_&&(D=M(C,G),G+=4),q&&(G+=4);let z=D+c;for(let tt=0;tt>1&63;return e===39||e===40}else return (t&31)===6}function Ti(r,t,e,s){const i=Si(r);let n=0;n+=t;let o=0,a=0,l=0;for(;n=i.length)break;l=i[n++],o+=l;}while(l===255);a=0;do{if(n>=i.length)break;l=i[n++],a+=l;}while(l===255);const c=i.length-n;let h=n;if(ac){b.error(`Malformed SEI payload. ${a} is too small, only ${c} bytes left to parse.`);break}if(o===4){if(i[h++]===181){const d=mi(i,h);if(h+=2,d===49){const f=M(i,h);if(h+=4,f===1195456820){const g=i[h++];if(g===3){const m=i[h++],p=31&m,y=64&m,A=y?2+p*3:0,T=new Uint8Array(A);if(y){T[0]=m;for(let R=1;R16){const u=[];for(let g=0;g<16;g++){const m=i[h++].toString(16);u.push(m.length==1?"0"+m:m),(g===3||g===5||g===7||g===9)&&u.push("-");}const d=a-16,f=new Uint8Array(d);for(let g=0;g>24&255,n[1]=s>>16&255,n[2]=s>>8&255,n[3]=s&255,n.set(r,4),i=0,s=8;i0?(n=new Uint8Array(4),t.length>0&&new DataView(n.buffer).setUint32(0,t.length,false)):n=new Uint8Array;const o=new Uint8Array(4);return e&&e.byteLength>0&&new DataView(o.buffer).setUint32(0,e.byteLength,false),br([112,115,115,104],new Uint8Array([s,0,0,0]),r,n,i,o,e||new Uint8Array)}function Lr(r){if(!(r instanceof ArrayBuffer)||r.byteLength<32)return null;const t={version:0,systemId:"",kids:null,data:null},e=new DataView(r),s=e.getUint32(0);if(r.byteLength!==s&&s>44||e.getUint32(4)!==1886614376||(t.version=e.getUint32(8)>>>24,t.version>1))return null;t.systemId=St.hexDump(new Uint8Array(r,12,16));const n=e.getUint32(28);if(t.version===0){if(s-32=22&&(this.keyId=e.subarray(e.length-22,e.length-6));break;case ht.PLAYREADY:{const s=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=Rr(s,null,e);const i=new Uint16Array(e.buffer,e.byteOffset,e.byteLength/2),n=String.fromCharCode.apply(null,Array.from(i)),o=n.substring(n.indexOf("<"),n.length),c=new DOMParser().parseFromString(o,"text/xml").getElementsByTagName("KID")[0];if(c){const h=c.childNodes[0]?c.childNodes[0].nodeValue:c.getAttribute("VALUE");if(h){const u=is(h).subarray(0,16);Xn(u),this.keyId=u;}}break}default:{let s=e.subarray(0,16);if(s.length!==16){const i=new Uint8Array(16);i.set(s,16-s.length),s=i;}this.keyId=s;break}}if(!this.keyId||this.keyId.byteLength!==16){let s=te[this.uri];if(!s){const i=Object.keys(te).length%Number.MAX_SAFE_INTEGER;s=new Uint8Array(16),new DataView(s.buffer,12,4).setUint32(0,i),te[this.uri]=s;}this.keyId=s;}return this}}function Ir(r){const t=new Uint8Array(16);for(let e=12;e<16;e++)t[e]=r>>8*(15-e)&255;return t}function ye(r=true){return typeof self>"u"?void 0:(r||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function wr(r){return typeof self<"u"&&r===self.ManagedMediaSource}const bs={audio:{a3ds:1,"ac-3":.95,"ac-4":1,alac:.9,alaw:1,dra1:1,"dts+":1,"dts-":1,dtsc:1,dtse:1,dtsh:1,"ec-3":.9,enca:1,fLaC:.9,flac:.9,FLAC:.9,g719:1,g726:1,m4ae:1,mha1:1,mha2:1,mhm1:1,mhm2:1,mlpa:1,mp4a:1,"raw ":1,Opus:1,opus:1,samr:1,sawb:1,sawp:1,sevc:1,sqcp:1,ssmv:1,twos:1,ulaw:1},video:{avc1:1,avc2:1,avc3:1,avc4:1,avcp:1,av01:.8,drac:1,dva1:1,dvav:1,dvh1:.7,dvhe:.7,encv:1,hev1:.75,hvc1:.75,mjp2:1,mp4v:1,mvc1:1,mvc2:1,mvc3:1,mvc4:1,resv:1,rv60:1,s263:1,svc1:1,svc2:1,"vc-1":1,vp08:1,vp09:.9}};function Dr(r,t,e=true){var s;const i=ye(e);return (s=i?.isTypeSupported(We(r,t)))!=null?s:false}function We(r,t){return `${t}/mp4;codecs="${r}"`}function Rs(r){return r.split(",").reduce((t,e)=>{const s=bs.video[e];return s?(s*2+t)/(t?3:2):(bs.audio[e]+t)/(t?2:1)},0)}const _e={};function Cr(r,t=true){if(_e[r])return _e[r];const e={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"]}[r];for(let s=0;sCr(e.toLowerCase(),t))}function Ls(r,t){return r&&r!=="mp4a"?r:t&&t.split(",")[0]}var wt={AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},W={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"};function kr(r,t){let e;try{e=new Event("addtrack");}catch{e=document.createEvent("Event"),e.initEvent("addtrack",false,false);}e.track=r,t.dispatchEvent(e);}function Ei(r,t){const e=r.mode;if(e==="disabled"&&(r.mode="hidden"),r.cues&&!r.cues.getCueById(t.id))try{if(r.addCue(t),!r.cues.getCueById(t.id))throw new Error(`addCue is failed for: ${t}`)}catch(s){b.debug(`[texttrack-utils]: ${s}`);try{const i=new self.TextTrackCue(t.startTime,t.endTime,t.text);i.id=t.id,r.addCue(i);}catch(i){b.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${i}`);}}e==="disabled"&&(r.mode=e);}function qt(r){const t=r.mode;if(t==="disabled"&&(r.mode="hidden"),r.cues)for(let e=r.cues.length;e--;)r.removeCue(r.cues[e]);t==="disabled"&&(r.mode=t);}function Is(r,t,e,s){const i=r.mode;if(i==="disabled"&&(r.mode="hidden"),r.cues&&r.cues.length>0){const n=Fr(r.cues,t,e);for(let o=0;or[e].endTime)return -1;let s=0,i=e;for(;s<=i;){const n=Math.floor((i+s)/2);if(tr[n].startTime&&s-1)for(let n=i,o=r.length;n=t&&a.endTime<=e)s.push(a);else if(a.startTime>e)return s}return s}function ce(r){const t=[];for(let e=0;e"u"))return self.VTTCue||self.TextTrackCue}(()=>{const r=Or();try{r&&new r(0,Number.POSITIVE_INFINITY,"");}catch{return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();const ws=["NONE","TYPE-0","TYPE-1",null],Mr=["SDR","PQ","HLG"];var he={No:"",Yes:"YES",v2:"v2"};function Ds(r){const{canSkipUntil:t,canSkipDateRanges:e,age:s}=r,i=s!!e).map(e=>e.substring(0,4)).join(","),this.addGroupId("audio",t.attrs.AUDIO),this.addGroupId("text",t.attrs.SUBTITLES);}get maxBitrate(){return Math.max(this.realBitrate,this.bitrate)}get averageBitrate(){return this._avgBitrate||this.realBitrate||this.bitrate}get attrs(){return this._attrs[0]}get codecs(){return this.attrs.CODECS||""}get pathwayId(){return this.attrs["PATHWAY-ID"]||"."}get videoRange(){return this.attrs["VIDEO-RANGE"]||"SDR"}get score(){return this.attrs.optionalFloat("SCORE",0)}get uri(){return this.url[0]||""}hasAudioGroup(t){return _s(this._audioGroups,t)}hasSubtitleGroup(t){return _s(this._subtitleGroups,t)}get audioGroups(){return this._audioGroups}get subtitleGroups(){return this._subtitleGroups}addGroupId(t,e){if(e){if(t==="audio"){let s=this._audioGroups;s||(s=this._audioGroups=[]),s.indexOf(e)===-1&&s.push(e);}else if(t==="text"){let s=this._subtitleGroups;s||(s=this._subtitleGroups=[]),s.indexOf(e)===-1&&s.push(e);}}}get urlId(){return 0}set urlId(t){}get audioGroupIds(){return this.audioGroups?[this.audioGroupId]:void 0}get textGroupIds(){return this.subtitleGroups?[this.textGroupId]:void 0}get audioGroupId(){var t;return (t=this.audioGroups)==null?void 0:t[0]}get textGroupId(){var t;return (t=this.subtitleGroups)==null?void 0:t[0]}addFallback(){}}function _s(r,t){return !t||!r?false:r.indexOf(t)!==-1}function ke(r,t){const e=t.startPTS;if($(e)){let s=0,i;t.sn>r.sn?(s=e-r.start,i=r):(s=r.start-e,i=t),i.duration!==s&&(i.duration=s);}else t.sn>r.sn?r.cc===t.cc&&r.minEndPTS?t.start=r.start+(r.minEndPTS-r.start):t.start=r.start+r.duration:t.start=Math.max(r.start-t.duration,0);}function vi(r,t,e,s,i,n){s-e<=0&&(b.warn("Fragment should have a positive duration",t),s=e+t.duration,n=i+t.duration);let a=e,l=s;const c=t.startPTS,h=t.endPTS;if($(c)){const p=Math.abs(c-e);$(t.deltaPTS)?t.deltaPTS=Math.max(p,t.deltaPTS):t.deltaPTS=p,a=Math.max(e,c),e=Math.min(e,c),i=Math.min(i,t.startDTS),l=Math.min(s,h),s=Math.max(s,h),n=Math.max(n,t.endDTS);}const u=e-t.start;t.start!==0&&(t.start=e),t.duration=s-t.start,t.startPTS=e,t.maxStartPTS=a,t.startDTS=i,t.endPTS=s,t.minEndPTS=l,t.endDTS=n;const d=t.sn;if(!r||dr.endSN)return 0;let f;const g=d-r.startSN,m=r.fragments;for(m[g]=t,f=g;f>0;f--)ke(m[f],m[f-1]);for(f=g;f=0;l--){const c=s[l].initSegment;if(c){e=c;break}}r.fragmentHint&&delete r.fragmentHint.endPTS;let i=0,n;if($r(r,t,(l,c)=>{l.relurl&&(i=l.cc-c.cc),$(l.startPTS)&&$(l.endPTS)&&(c.start=c.startPTS=l.startPTS,c.startDTS=l.startDTS,c.maxStartPTS=l.maxStartPTS,c.endPTS=l.endPTS,c.endDTS=l.endDTS,c.minEndPTS=l.minEndPTS,c.duration=l.endPTS-l.startPTS,c.duration&&(n=c),t.PTSKnown=t.alignedSliding=true),c.elementaryStreams=l.elementaryStreams,c.loader=l.loader,c.stats=l.stats,l.initSegment&&(c.initSegment=l.initSegment,e=l.initSegment);}),e&&(t.fragmentHint?t.fragments.concat(t.fragmentHint):t.fragments).forEach(c=>{var h;c&&(!c.initSegment||c.initSegment.relurl===((h=e)==null?void 0:h.relurl))&&(c.initSegment=e);}),t.skippedSegments)if(t.deltaUpdateFailed=t.fragments.some(l=>!l),t.deltaUpdateFailed){b.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(let l=t.skippedSegments;l--;)t.fragments.shift();t.startSN=t.fragments[0].sn,t.startCC=t.fragments[0].cc;}else t.canSkipDateRanges&&(t.dateRanges=Ur(r.dateRanges,t.dateRanges,t.recentlyRemovedDateranges));const o=t.fragments;if(i){b.warn("discontinuity sliding from playlist, take drift into account");for(let l=0;l{c.elementaryStreams=l.elementaryStreams,c.stats=l.stats;}),n?vi(t,n,n.startPTS,n.endPTS,n.startDTS,n.endDTS):Ai(r,t),o.length&&(t.totalduration=t.edge-o[0].start),t.driftStartTime=r.driftStartTime,t.driftStart=r.driftStart;const a=t.advancedDateTime;if(t.advanced&&a){const l=t.edge;t.driftStart||(t.driftStartTime=a,t.driftStart=l),t.driftEndTime=a,t.driftEnd=l;}else t.driftEndTime=r.driftEndTime,t.driftEnd=r.driftEnd,t.advancedDateTime=r.advancedDateTime;}function Ur(r,t,e){const s=ct({},r);return e&&e.forEach(i=>{delete s[i];}),Object.keys(t).forEach(i=>{const n=new zn(t[i].attr,s[i]);n.isValid?s[i]=n:b.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${JSON.stringify(t[i].attr)}"`);}),s}function Br(r,t,e){if(r&&t){let s=0;for(let i=0,n=r.length;i<=n;i++){const o=r[i],a=t[i+s];o&&a&&o.index===a.index&&o.fragment.sn===a.fragment.sn?e(o,a):s--;}}}function $r(r,t,e){const s=t.skippedSegments,i=Math.max(r.startSN,t.startSN)-t.startSN,n=(r.fragmentHint?1:0)+(s?t.endSN:Math.min(r.endSN,t.endSN))-t.startSN,o=t.startSN-r.startSN,a=t.fragmentHint?t.fragments.concat(t.fragmentHint):t.fragments,l=r.fragmentHint?r.fragments.concat(r.fragmentHint):r.fragments;for(let c=i;c<=n;c++){const h=l[o+c];let u=a[c];s&&!u&&c=s.length||ze(t,s[e].start);}function ze(r,t){if(t){const e=r.fragments;for(let s=r.skippedSegments;st){const n=s[s.length-1].duration*1e3;n{const{details:s}=t;s!=null&&s.fragments&&s.fragments.forEach(i=>{i.level=e;});});}function Se(r){switch(r.details){case w.FRAG_LOAD_TIMEOUT:case w.KEY_LOAD_TIMEOUT:case w.LEVEL_LOAD_TIMEOUT:case w.MANIFEST_LOAD_TIMEOUT:return true}return false}function Ps(r,t){const e=Se(t);return r.default[`${e?"timeout":"error"}Retry`]}function os(r,t){const e=r.backoff==="linear"?1:Math.pow(2,t);return Math.min(e*r.retryDelayMs,r.maxRetryDelayMs)}function Fs(r){return ut(ut({},r),{errorRetry:null,timeoutRetry:null})}function Ee(r,t,e,s){if(!r)return false;const i=s?.code,n=t499)}const Ri={search:function(r,t){let e=0,s=r.length-1,i=null,n=null;for(;e<=s;){i=(e+s)/2|0,n=r[i];const o=t(n);if(o>0)e=i+1;else if(o<0)s=i-1;else return n}return null}};function Wr(r,t,e){if(t===null||!Array.isArray(r)||!r.length||!$(t))return null;const s=r[0].programDateTime;if(t<(s||0))return null;const i=r[r.length-1].endProgramDateTime;if(t>=(i||0))return null;e=e||0;for(let n=0;n0&&a<15e-7&&(e+=15e-7);}else e===0&&t[0].start===0&&(n=t[0]);if(n&&((!r||r.level===n.level)&&qe(e,s,n)===0||Yr(n,r,Math.min(i,s))))return n;const o=Ri.search(t,qe.bind(null,e,s));return o&&(o!==r||!n)?o:n}function Yr(r,t,e){if(t&&t.start===0&&t.level0){const s=t.tagList.reduce((i,n)=>(n[0]==="INF"&&(i+=parseFloat(n[1])),i),e);return r.start<=s}return false}function qe(r=0,t=0,e){if(e.start<=r&&e.start+e.duration>r)return 0;const s=Math.min(t,e.duration+(e.deltaPTS?e.deltaPTS:0));return e.start+e.duration-s<=r?1:e.start-s>r&&e.start?-1:0}function zr(r,t,e){const s=Math.min(t,e.duration+(e.deltaPTS?e.deltaPTS:0))*1e3;return (e.endProgramDateTime||0)-s>r}function qr(r,t){return Ri.search(r,e=>e.cct?-1:0)}var rt={DoNothing:0,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,RetryRequest:5},mt={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2};class jr{constructor(t){this.hls=void 0,this.playlistError=0,this.penalizedRenditions={},this.log=void 0,this.warn=void 0,this.error=void 0,this.hls=t,this.log=b.log.bind(b,"[info]:"),this.warn=b.warn.bind(b,"[warning]:"),this.error=b.error.bind(b,"[error]:"),this.registerListeners();}registerListeners(){const t=this.hls;t.on(x.ERROR,this.onError,this),t.on(x.MANIFEST_LOADING,this.onManifestLoading,this),t.on(x.LEVEL_UPDATED,this.onLevelUpdated,this);}unregisterListeners(){const t=this.hls;t&&(t.off(x.ERROR,this.onError,this),t.off(x.ERROR,this.onErrorOut,this),t.off(x.MANIFEST_LOADING,this.onManifestLoading,this),t.off(x.LEVEL_UPDATED,this.onLevelUpdated,this));}destroy(){this.unregisterListeners(),this.hls=null,this.penalizedRenditions={};}startLoad(t){}stopLoad(){this.playlistError=0;}getVariantLevelIndex(t){return t?.type===W.MAIN?t.level:this.hls.loadLevel}onManifestLoading(){this.playlistError=0,this.penalizedRenditions={};}onLevelUpdated(){this.playlistError=0;}onError(t,e){var s,i;if(e.fatal)return;const n=this.hls,o=e.context;switch(e.details){case w.FRAG_LOAD_ERROR:case w.FRAG_LOAD_TIMEOUT:case w.KEY_LOAD_ERROR:case w.KEY_LOAD_TIMEOUT:e.errorAction=this.getFragRetryOrSwitchAction(e);return;case w.FRAG_PARSING_ERROR:if((s=e.frag)!=null&&s.gap){e.errorAction={action:rt.DoNothing,flags:mt.None};return}case w.FRAG_GAP:case w.FRAG_DECRYPT_ERROR:{e.errorAction=this.getFragRetryOrSwitchAction(e),e.errorAction.action=rt.SendAlternateToPenaltyBox;return}case w.LEVEL_EMPTY_ERROR:case w.LEVEL_PARSING_ERROR:{var a,l;const c=e.parent===W.MAIN?e.level:n.loadLevel;e.details===w.LEVEL_EMPTY_ERROR&&((a=e.context)!=null&&(l=a.levelDetails)!=null&&l.live)?e.errorAction=this.getPlaylistRetryOrSwitchAction(e,c):(e.levelRetry=false,e.errorAction=this.getLevelSwitchAction(e,c));}return;case w.LEVEL_LOAD_ERROR:case w.LEVEL_LOAD_TIMEOUT:typeof o?.level=="number"&&(e.errorAction=this.getPlaylistRetryOrSwitchAction(e,o.level));return;case w.AUDIO_TRACK_LOAD_ERROR:case w.AUDIO_TRACK_LOAD_TIMEOUT:case w.SUBTITLE_LOAD_ERROR:case w.SUBTITLE_TRACK_LOAD_TIMEOUT:if(o){const c=n.levels[n.loadLevel];if(c&&(o.type===wt.AUDIO_TRACK&&c.hasAudioGroup(o.groupId)||o.type===wt.SUBTITLE_TRACK&&c.hasSubtitleGroup(o.groupId))){e.errorAction=this.getPlaylistRetryOrSwitchAction(e,n.loadLevel),e.errorAction.action=rt.SendAlternateToPenaltyBox,e.errorAction.flags=mt.MoveAllAlternatesMatchingHost;return}}return;case w.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:{const c=n.levels[n.loadLevel],h=c?.attrs["HDCP-LEVEL"];h?e.errorAction={action:rt.SendAlternateToPenaltyBox,flags:mt.MoveAllAlternatesMatchingHDCP,hdcpLevel:h}:this.keySystemError(e);}return;case w.BUFFER_ADD_CODEC_ERROR:case w.REMUX_ALLOC_ERROR:case w.BUFFER_APPEND_ERROR:e.errorAction=this.getLevelSwitchAction(e,(i=e.level)!=null?i:n.loadLevel);return;case w.INTERNAL_EXCEPTION:case w.BUFFER_APPENDING_ERROR:case w.BUFFER_FULL_ERROR:case w.LEVEL_SWITCH_ERROR:case w.BUFFER_STALLED_ERROR:case w.BUFFER_SEEK_OVER_HOLE:case w.BUFFER_NUDGE_ON_STALL:e.errorAction={action:rt.DoNothing,flags:mt.None};return}e.type===H.KEY_SYSTEM_ERROR&&this.keySystemError(e);}keySystemError(t){const e=this.getVariantLevelIndex(t.frag);t.levelRetry=false,t.errorAction=this.getLevelSwitchAction(t,e);}getPlaylistRetryOrSwitchAction(t,e){const s=this.hls,i=Ps(s.config.playlistLoadPolicy,t),n=this.playlistError++;if(Ee(i,n,Se(t),t.response))return {action:rt.RetryRequest,flags:mt.None,retryConfig:i,retryCount:n};const a=this.getLevelSwitchAction(t,e);return i&&(a.retryConfig=i,a.retryCount=n),a}getFragRetryOrSwitchAction(t){const e=this.hls,s=this.getVariantLevelIndex(t.frag),i=e.levels[s],{fragLoadPolicy:n,keyLoadPolicy:o}=e.config,a=Ps(t.details.startsWith("key")?o:n,t),l=e.levels.reduce((h,u)=>h+u.fragmentError,0);if(i&&(t.details!==w.FRAG_GAP&&i.fragmentError++,Ee(a,l,Se(t),t.response)))return {action:rt.RetryRequest,flags:mt.None,retryConfig:a,retryCount:l};const c=this.getLevelSwitchAction(t,s);return a&&(c.retryConfig=a,c.retryCount=l),c}getLevelSwitchAction(t,e){const s=this.hls;e==null&&(e=s.loadLevel);const i=this.hls.levels[e];if(i){var n,o;const c=t.details;i.loadError++,c===w.BUFFER_APPEND_ERROR&&i.fragmentError++;let h=-1;const{levels:u,loadLevel:d,minAutoLevel:f,maxAutoLevel:g}=s;s.autoLevelEnabled||(s.loadLevel=-1);const m=(n=t.frag)==null?void 0:n.type,y=(m===W.AUDIO&&c===w.FRAG_PARSING_ERROR||t.sourceBufferName==="audio"&&(c===w.BUFFER_ADD_CODEC_ERROR||c===w.BUFFER_APPEND_ERROR))&&u.some(({audioCodec:I})=>i.audioCodec!==I),T=t.sourceBufferName==="video"&&(c===w.BUFFER_ADD_CODEC_ERROR||c===w.BUFFER_APPEND_ERROR)&&u.some(({codecSet:I,audioCodec:v})=>i.codecSet!==I&&i.audioCodec===v),{type:R,groupId:E}=(o=t.context)!=null?o:{};for(let I=u.length;I--;){const v=(I+d)%u.length;if(v!==d&&v>=f&&v<=g&&u[v].loadError===0){var a,l;const C=u[v];if(c===w.FRAG_GAP&&m===W.MAIN&&t.frag){const P=u[v].details;if(P){const L=ve(t.frag,P.fragments,t.frag.start);if(L!=null&&L.gap)continue}}else {if(R===wt.AUDIO_TRACK&&C.hasAudioGroup(E)||R===wt.SUBTITLE_TRACK&&C.hasSubtitleGroup(E))continue;if(m===W.AUDIO&&(a=i.audioGroups)!=null&&a.some(P=>C.hasAudioGroup(P))||m===W.SUBTITLE&&(l=i.subtitleGroups)!=null&&l.some(P=>C.hasSubtitleGroup(P))||y&&i.audioCodec===C.audioCodec||!y&&i.audioCodec!==C.audioCodec||T&&i.codecSet===C.codecSet)continue}h=v;break}}if(h>-1&&s.loadLevel!==h)return t.levelRetry=true,this.playlistError=0,{action:rt.SendAlternateToPenaltyBox,flags:mt.None,nextAutoLevel:h}}return {action:rt.SendAlternateToPenaltyBox,flags:mt.MoveAllAlternatesMatchingHost}}onErrorOut(t,e){var s;switch((s=e.errorAction)==null?void 0:s.action){case rt.DoNothing:break;case rt.SendAlternateToPenaltyBox:this.sendAlternateToPenaltyBox(e),!e.errorAction.resolved&&e.details!==w.FRAG_GAP?e.fatal=true:/MediaSource readyState: ended/.test(e.error.message)&&(this.warn(`MediaSource ended after "${e.sourceBufferName}" sourceBuffer append error. Attempting to recover from media error.`),this.hls.recoverMediaError());break}if(e.fatal){this.hls.stopLoad();return}}sendAlternateToPenaltyBox(t){const e=this.hls,s=t.errorAction;if(!s)return;const{flags:i,hdcpLevel:n,nextAutoLevel:o}=s;switch(i){case mt.None:this.switchLevel(t,o);break;case mt.MoveAllAlternatesMatchingHDCP:n&&(e.maxHdcpLevel=ws[ws.indexOf(n)-1],s.resolved=true),this.warn(`Restricting playback to HDCP-LEVEL of "${e.maxHdcpLevel}" or lower`);break}s.resolved||this.switchLevel(t,o);}switchLevel(t,e){e!==void 0&&t.errorAction&&(this.warn(`switching to level ${e} after ${t.details}`),this.hls.nextAutoLevel=e,t.errorAction.resolved=true,this.hls.nextLoadLevel=this.hls.nextAutoLevel);}}class Li{constructor(t,e){this.hls=void 0,this.timer=-1,this.requestScheduled=-1,this.canLoad=false,this.log=void 0,this.warn=void 0,this.log=b.log.bind(b,`${e}:`),this.warn=b.warn.bind(b,`${e}:`),this.hls=t;}destroy(){this.clearTimer(),this.hls=this.log=this.warn=null;}clearTimer(){this.timer!==-1&&(self.clearTimeout(this.timer),this.timer=-1);}startLoad(){this.canLoad=true,this.requestScheduled=-1,this.loadPlaylist();}stopLoad(){this.canLoad=false,this.clearTimer();}switchParams(t,e,s){const i=e?.renditionReports;if(i){let n=-1;for(let o=0;o=0&&h>e.partTarget&&(l+=1);}const c=s&&Ds(s);return new Cs(a,l>=0?l:void 0,c)}}}loadPlaylist(t){this.requestScheduled===-1&&(this.requestScheduled=self.performance.now());}shouldLoadPlaylist(t){return this.canLoad&&!!t&&!!t.url&&(!t.details||t.details.live)}shouldReloadPlaylist(t){return this.timer===-1&&this.requestScheduled===-1&&this.shouldLoadPlaylist(t)}playlistLoaded(t,e,s){const{details:i,stats:n}=e,o=self.performance.now(),a=n.loading.first?Math.max(0,o-n.loading.first):0;if(i.advancedDateTime=Date.now()-a,i.live||s!=null&&s.live){if(i.reloaded(s),s&&this.log(`live playlist ${t} ${i.advanced?"REFRESHED "+i.lastPartSn+"-"+i.lastPartIndex:i.updated?"UPDATED":"MISSED"}`),s&&i.fragments.length>0&&Nr(s,i),!this.canLoad||!i.live)return;let l,c,h;if(i.canBlockReload&&i.endSN&&i.advanced){const p=this.hls.config.lowLatencyMode,y=i.lastPartSn,A=i.endSN,T=i.lastPartIndex,R=T!==-1,E=y===A,I=p?0:T;R?(c=E?A+1:y,h=E?I:T+1):c=A+1;const v=i.age,C=v+i.ageHeader;let P=Math.min(C-i.partTarget,i.targetduration*1.5);if(P>0){if(s&&P>s.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${s.tuneInGoal} to: ${P} with playlist age: ${i.age}`),P=0;else {const L=Math.floor(P/i.targetduration);if(c+=L,h!==void 0){const _=Math.round(P%i.targetduration/i.partTarget);h+=_;}this.log(`CDN Tune-in age: ${i.ageHeader}s last advanced ${v.toFixed(2)}s goal: ${P} skip sn ${L} to part ${h}`);}i.tuneInGoal=P;}if(l=this.getDeliveryDirectives(i,e.deliveryDirectives,c,h),p||!E){this.loadPlaylist(l);return}}else (i.canBlockReload||i.canSkipUntil)&&(l=this.getDeliveryDirectives(i,e.deliveryDirectives,c,h));const u=this.hls.mainForwardBufferInfo,d=u?u.end-u.len:0,f=(i.edge-d)*1e3,g=Gr(i,f);i.updated&&o>this.requestScheduled+g&&(this.requestScheduled=n.loading.start),c!==void 0&&i.canBlockReload?this.requestScheduled=n.loading.first+g-(i.partTarget*1e3||1e3):this.requestScheduled===-1||this.requestScheduled+gthis.loadPlaylist(l),m);}else this.clearTimer();}getDeliveryDirectives(t,e,s,i){let n=Ds(t);return e!=null&&e.skip&&t.deltaUpdateFailed&&(s=e.msn,i=e.part,n=he.No),new Cs(s,i,n)}checkRetry(t){const e=t.details,s=Se(t),i=t.errorAction,{action:n,retryCount:o=0,retryConfig:a}=i||{},l=!!i&&!!a&&(n===rt.RetryRequest||!i.resolved&&n===rt.SendAlternateToPenaltyBox);if(l){var c;if(this.requestScheduled=-1,o>=a.maxNumRetry)return false;if(s&&(c=t.context)!=null&&c.deliveryDirectives)this.warn(`Retrying playlist loading ${o+1}/${a.maxNumRetry} after "${e}" without delivery-directives`),this.loadPlaylist();else {const h=os(a,o);this.timer=self.setTimeout(()=>this.loadPlaylist(),h),this.warn(`Retrying playlist loading ${o+1}/${a.maxNumRetry} after "${e}" in ${h}ms`);}t.levelRetry=true,i.resolved=true;}return l}}class Mt{constructor(t,e=0,s=0){this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=t,this.alpha_=t?Math.exp(Math.log(.5)/t):0,this.estimate_=e,this.totalWeight_=s;}sample(t,e){const s=Math.pow(this.alpha_,t);this.estimate_=e*(1-s)+s*this.estimate_,this.totalWeight_+=t;}getTotalWeight(){return this.totalWeight_}getEstimate(){if(this.alpha_){const t=1-Math.pow(this.alpha_,this.totalWeight_);if(t)return this.estimate_/t}return this.estimate_}}class Xr{constructor(t,e,s,i=100){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultTTFB_=void 0,this.ttfb_=void 0,this.defaultEstimate_=s,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new Mt(t),this.fast_=new Mt(e),this.defaultTTFB_=i,this.ttfb_=new Mt(t);}update(t,e){const{slow_:s,fast_:i,ttfb_:n}=this;s.halfLife!==t&&(this.slow_=new Mt(t,s.getEstimate(),s.getTotalWeight())),i.halfLife!==e&&(this.fast_=new Mt(e,i.getEstimate(),i.getTotalWeight())),n.halfLife!==t&&(this.ttfb_=new Mt(t,n.getEstimate(),n.getTotalWeight()));}sample(t,e){t=Math.max(t,this.minDelayMs_);const s=8*e,i=t/1e3,n=s/i;this.fast_.sample(i,n),this.slow_.sample(i,n);}sampleTTFB(t){const e=t/1e3,s=Math.sqrt(2)*Math.exp(-Math.pow(e,2)/2);this.ttfb_.sample(s,Math.max(t,5));}canEstimate(){return this.fast_.getTotalWeight()>=this.minWeight_}getEstimate(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_}getEstimateTTFB(){return this.ttfb_.getTotalWeight()>=this.minWeight_?this.ttfb_.getEstimate():this.defaultTTFB_}destroy(){}}const Ii={supported:true,configurations:[],decodingInfoResults:[{supported:true,powerEfficient:true,smooth:true}]},Os={};function Qr(r,t,e,s,i,n){const o=r.audioCodec?r.audioGroups:null,a=n?.audioCodec,l=n?.channels,c=l?parseInt(l):a?1/0:2;let h=null;if(o!=null&&o.length)try{o.length===1&&o[0]?h=t.groups[o[0]].channels:h=o.reduce((u,d)=>{if(d){const f=t.groups[d];if(!f)throw new Error(`Audio track group ${d} not found`);Object.keys(f.channels).forEach(g=>{u[g]=(u[g]||0)+f.channels[g];});}return u},{2:0});}catch{return true}return r.videoCodec!==void 0&&(r.width>1920&&r.height>1088||r.height>1920&&r.width>1088||r.frameRate>Math.max(s,30)||r.videoRange!=="SDR"&&r.videoRange!==e||r.bitrate>Math.max(i,8e6))||!!h&&$(c)&&Object.keys(h).some(u=>parseInt(u)>c)}function Zr(r,t,e){const s=r.videoCodec,i=r.audioCodec;if(!s||!i||!e)return Promise.resolve(Ii);const n={width:r.width,height:r.height,bitrate:Math.ceil(Math.max(r.bitrate*.9,r.averageBitrate)),framerate:r.frameRate||30},o=r.videoRange;o!=="SDR"&&(n.transferFunction=o.toLowerCase());const a=s.split(",").map(l=>({type:"media-source",video:ut(ut({},n),{},{contentType:We(l,"video")})}));return i&&r.audioGroups&&r.audioGroups.forEach(l=>{var c;l&&((c=t.groups[l])==null||c.tracks.forEach(h=>{if(h.groupId===l){const u=h.channels||"",d=parseFloat(u);$(d)&&d>2&&a.push.apply(a,i.split(",").map(f=>({type:"media-source",audio:{contentType:We(f,"audio"),channels:""+d}})));}}));}),Promise.all(a.map(l=>{const c=Jr(l);return Os[c]||(Os[c]=e.decodingInfo(l))})).then(l=>({supported:!l.some(c=>!c.supported),configurations:a,decodingInfoResults:l})).catch(l=>({supported:false,configurations:a,decodingInfoResults:[],error:l}))}function Jr(r){const{audio:t,video:e}=r,s=e||t;if(s){const i=s.contentType.split('"')[1];if(e)return `r${e.height}x${e.width}f${Math.ceil(e.framerate)}${e.transferFunction||"sd"}_${i}_${Math.ceil(e.bitrate/1e5)}`;if(t)return `c${t.channels}${t.spatialRendering?"s":"n"}_${i}`}return ""}function to(){if(typeof matchMedia=="function"){const r=matchMedia("(dynamic-range: high)"),t=matchMedia("bad query");if(r.media!==t.media)return r.matches===true}return false}function eo(r,t){let e=false,s=[];return r&&(e=r!=="SDR",s=[r]),t&&(s=t.allowedVideoRanges||Mr.slice(0),e=t.preferHDR!==void 0?t.preferHDR:to(),e?s=s.filter(i=>i!=="SDR"):s=["SDR"]),{preferHDR:e,allowedVideoRanges:s}}function so(r,t,e,s,i){const n=Object.keys(r),o=s?.channels,a=s?.audioCodec,l=o&&parseInt(o)===2;let c=true,h=false,u=1/0,d=1/0,f=1/0,g=0,m=[];const{preferHDR:p,allowedVideoRanges:y}=eo(t,i);for(let E=n.length;E--;){const I=r[n[E]];c=I.channels[2]>0,u=Math.min(u,I.minHeight),d=Math.min(d,I.minFramerate),f=Math.min(f,I.minBitrate);const v=y.filter(C=>I.videoRanges[C]>0);v.length>0&&(h=true,m=v);}u=$(u)?u:0,d=$(d)?d:0;const A=Math.max(1080,u),T=Math.max(30,d);return f=$(f)?f:e,e=Math.max(f,e),h||(t=void 0,m=[]),{codecSet:n.reduce((E,I)=>{const v=r[I];if(I===E)return E;if(v.minBitrate>e)return Rt(I,`min bitrate of ${v.minBitrate} > current estimate of ${e}`),E;if(!v.hasDefaultAudio)return Rt(I,"no renditions with default or auto-select sound found"),E;if(a&&I.indexOf(a.substring(0,4))%5!==0)return Rt(I,`audio codec preference "${a}" not found`),E;if(o&&!l){if(!v.channels[o])return Rt(I,`no renditions with ${o} channel sound found (channels options: ${Object.keys(v.channels)})`),E}else if((!a||l)&&c&&v.channels[2]===0)return Rt(I,"no renditions with stereo sound found"),E;return v.minHeight>A?(Rt(I,`min resolution of ${v.minHeight} > maximum of ${A}`),E):v.minFramerate>T?(Rt(I,`min framerate of ${v.minFramerate} > maximum of ${T}`),E):m.some(C=>v.videoRanges[C]>0)?v.maxScore=Rs(E)||v.fragmentError>r[E].fragmentError)?E:(g=v.maxScore,I):(Rt(I,`no variants with VIDEO-RANGE of ${JSON.stringify(m)} found`),E)},void 0),videoRanges:m,preferHDR:p,minFramerate:d,minBitrate:f}}function Rt(r,t){b.log(`[abr] start candidates with "${r}" ignored because ${t}`);}function io(r){return r.reduce((t,e)=>{let s=t.groups[e.groupId];s||(s=t.groups[e.groupId]={tracks:[],channels:{2:0},hasDefault:false,hasAutoSelect:false}),s.tracks.push(e);const i=e.channels||"2";return s.channels[i]=(s.channels[i]||0)+1,s.hasDefault=s.hasDefault||e.default,s.hasAutoSelect=s.hasAutoSelect||e.autoselect,s.hasDefault&&(t.hasDefaultAudio=true),s.hasAutoSelect&&(t.hasAutoSelectAudio=true),t},{hasDefaultAudio:false,hasAutoSelectAudio:false,groups:{}})}function no(r,t,e,s){return r.slice(e,s+1).reduce((i,n)=>{if(!n.codecSet)return i;const o=n.audioGroups;let a=i[n.codecSet];a||(i[n.codecSet]=a={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!o,fragmentError:0}),a.minBitrate=Math.min(a.minBitrate,n.bitrate);const l=Math.min(n.height,n.width);return a.minHeight=Math.min(a.minHeight,l),a.minFramerate=Math.min(a.minFramerate,n.frameRate),a.maxScore=Math.max(a.maxScore,n.score),a.fragmentError+=n.fragmentError,a.videoRanges[n.videoRange]=(a.videoRanges[n.videoRange]||0)+1,o&&o.forEach(c=>{if(!c)return;const h=t.groups[c];h&&(a.hasDefaultAudio=a.hasDefaultAudio||t.hasDefaultAudio?h.hasDefault:h.hasAutoSelect||!t.hasDefaultAudio&&!t.hasAutoSelectAudio,Object.keys(h.channels).forEach(u=>{a.channels[u]=(a.channels[u]||0)+h.channels[u];}));}),i},{})}function vt(r,t,e){if("attrs"in r){const s=t.indexOf(r);if(s!==-1)return s}for(let s=0;ss.indexOf(i)===-1)}function Nt(r,t){const{audioCodec:e,channels:s}=r;return (e===void 0||(t.audioCodec||"").substring(0,4)===e.substring(0,4))&&(s===void 0||s===(t.channels||"2"))}function oo(r,t,e,s,i){const n=t[s],a=t.reduce((d,f,g)=>{const m=f.uri;return (d[m]||(d[m]=[])).push(g),d},{})[n.uri];a.length>1&&(s=Math.max.apply(Math,a));const l=n.videoRange,c=n.frameRate,h=n.codecSet.substring(0,4),u=Ms(t,s,d=>{if(d.videoRange!==l||d.frameRate!==c||d.codecSet.substring(0,4)!==h)return false;const f=d.audioGroups,g=e.filter(m=>!f||f.indexOf(m.groupId)!==-1);return vt(r,g,i)>-1});return u>-1?u:Ms(t,s,d=>{const f=d.audioGroups,g=e.filter(m=>!f||f.indexOf(m.groupId)!==-1);return vt(r,g,i)>-1})}function Ms(r,t,e){for(let s=t;s;s--)if(e(r[s]))return s;for(let s=t+1;s{const{fragCurrent:e,partCurrent:s,hls:i}=this,{autoLevelEnabled:n,media:o}=i;if(!e||!o)return;const a=performance.now(),l=s?s.stats:e.stats,c=s?s.duration:e.duration,h=a-l.loading.start,u=i.minAutoLevel;if(l.aborted||l.loaded&&l.loaded===l.total||e.level<=u){this.clearTimer(),this._nextAutoLevel=-1;return}if(!n||o.paused||!o.playbackRate||!o.readyState)return;const d=i.mainForwardBufferInfo;if(d===null)return;const f=this.bwEstimator.getEstimateTTFB(),g=Math.abs(o.playbackRate);if(h<=Math.max(f,1e3*(c/(g*2))))return;const m=d.len/g,p=l.loading.first?l.loading.first-l.loading.start:-1,y=l.loaded&&p>-1,A=this.getBwEstimate(),T=i.levels,R=T[e.level],E=l.total||Math.max(l.loaded,Math.round(c*R.averageBitrate/8));let I=y?h-p:h;I<1&&y&&(I=Math.min(h,l.loaded*8/A));const v=y?l.loaded*1e3/I:0,C=v?(E-l.loaded)/v:E*8/A+f/1e3;if(C<=m)return;const P=v?v*8:A;let L=Number.POSITIVE_INFINITY,_;for(_=e.level-1;_>u;_--){const q=T[_].maxBitrate;if(L=this.getTimeToLoadFrag(f/1e3,P,c*q,!T[_].details),L=C||L>c*10)return;i.nextLoadLevel=i.nextAutoLevel=_,y?this.bwEstimator.sample(h-Math.min(f,p),l.loaded):this.bwEstimator.sampleTTFB(h);const D=T[_].maxBitrate;this.getBwEstimate()*this.hls.config.abrBandWidthUpFactor>D&&this.resetEstimator(D),this.clearTimer(),b.warn(`[abr] Fragment ${e.sn}${s?" part "+s.index:""} of level ${e.level} is loading too slowly; + Time to underbuffer: ${m.toFixed(3)} s + Estimated load time for current fragment: ${C.toFixed(3)} s + Estimated load time for down switch fragment: ${L.toFixed(3)} s + TTFB estimate: ${p|0} ms + Current BW estimate: ${$(A)?A|0:"Unknown"} bps + New BW estimate: ${this.getBwEstimate()|0} bps + Switching to level ${_} @ ${D|0} bps`),i.trigger(x.FRAG_LOAD_EMERGENCY_ABORTED,{frag:e,part:s,stats:l});},this.hls=t,this.bwEstimator=this.initEstimator(),this.registerListeners();}resetEstimator(t){t&&(b.log(`setting initial bwe to ${t}`),this.hls.config.abrEwmaDefaultEstimate=t),this.firstSelection=-1,this.bwEstimator=this.initEstimator();}initEstimator(){const t=this.hls.config;return new Xr(t.abrEwmaSlowVoD,t.abrEwmaFastVoD,t.abrEwmaDefaultEstimate)}registerListeners(){const{hls:t}=this;t.on(x.MANIFEST_LOADING,this.onManifestLoading,this),t.on(x.FRAG_LOADING,this.onFragLoading,this),t.on(x.FRAG_LOADED,this.onFragLoaded,this),t.on(x.FRAG_BUFFERED,this.onFragBuffered,this),t.on(x.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(x.LEVEL_LOADED,this.onLevelLoaded,this),t.on(x.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(x.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),t.on(x.ERROR,this.onError,this);}unregisterListeners(){const{hls:t}=this;t&&(t.off(x.MANIFEST_LOADING,this.onManifestLoading,this),t.off(x.FRAG_LOADING,this.onFragLoading,this),t.off(x.FRAG_LOADED,this.onFragLoaded,this),t.off(x.FRAG_BUFFERED,this.onFragBuffered,this),t.off(x.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(x.LEVEL_LOADED,this.onLevelLoaded,this),t.off(x.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(x.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),t.off(x.ERROR,this.onError,this));}destroy(){this.unregisterListeners(),this.clearTimer(),this.hls=this._abandonRulesCheck=null,this.fragCurrent=this.partCurrent=null;}onManifestLoading(t,e){this.lastLoadedFragLevel=-1,this.firstSelection=-1,this.lastLevelLoadSec=0,this.fragCurrent=this.partCurrent=null,this.onLevelsUpdated(),this.clearTimer();}onLevelsUpdated(){this.lastLoadedFragLevel>-1&&this.fragCurrent&&(this.lastLoadedFragLevel=this.fragCurrent.level),this._nextAutoLevel=-1,this.onMaxAutoLevelUpdated(),this.codecTiers=null,this.audioTracksByGroup=null;}onMaxAutoLevelUpdated(){this.firstSelection=-1,this.nextAutoLevelKey="";}onFragLoading(t,e){const s=e.frag;if(!this.ignoreFragment(s)){if(!s.bitrateTest){var i;this.fragCurrent=s,this.partCurrent=(i=e.part)!=null?i:null;}this.clearTimer(),this.timer=self.setInterval(this._abandonRulesCheck,100);}}onLevelSwitching(t,e){this.clearTimer();}onError(t,e){if(!e.fatal)switch(e.details){case w.BUFFER_ADD_CODEC_ERROR:case w.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case w.FRAG_LOAD_TIMEOUT:{const s=e.frag,{fragCurrent:i,partCurrent:n}=this;if(s&&i&&s.sn===i.sn&&s.level===i.level){const o=performance.now(),a=n?n.stats:s.stats,l=o-a.loading.start,c=a.loading.first?a.loading.first-a.loading.start:-1;if(a.loaded&&c>-1){const u=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(l-Math.min(u,c),a.loaded);}else this.bwEstimator.sampleTTFB(l);}break}}}getTimeToLoadFrag(t,e,s,i){const n=t+s/e,o=i?this.lastLevelLoadSec:0;return n+o}onLevelLoaded(t,e){const s=this.hls.config,{loading:i}=e.stats,n=i.end-i.start;$(n)&&(this.lastLevelLoadSec=n/1e3),e.details.live?this.bwEstimator.update(s.abrEwmaSlowLive,s.abrEwmaFastLive):this.bwEstimator.update(s.abrEwmaSlowVoD,s.abrEwmaFastVoD);}onFragLoaded(t,{frag:e,part:s}){const i=s?s.stats:e.stats;if(e.type===W.MAIN&&this.bwEstimator.sampleTTFB(i.loading.first-i.loading.start),!this.ignoreFragment(e)){if(this.clearTimer(),e.level===this._nextAutoLevel&&(this._nextAutoLevel=-1),this.firstSelection=-1,this.hls.config.abrMaxWithRealBitrate){const n=s?s.duration:e.duration,o=this.hls.levels[e.level],a=(o.loaded?o.loaded.bytes:0)+i.loaded,l=(o.loaded?o.loaded.duration:0)+n;o.loaded={bytes:a,duration:l},o.realBitrate=Math.round(8*a/l);}if(e.bitrateTest){const n={stats:i,frag:e,part:s,id:e.type};this.onFragBuffered(x.FRAG_BUFFERED,n),e.bitrateTest=false;}else this.lastLoadedFragLevel=e.level;}}onFragBuffered(t,e){const{frag:s,part:i}=e,n=i!=null&&i.stats.loaded?i.stats:s.stats;if(n.aborted||this.ignoreFragment(s))return;const o=n.parsing.end-n.loading.start-Math.min(n.loading.first-n.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(o,n.loaded),n.bwEstimate=this.getBwEstimate(),s.bitrateTest?this.bitrateTestDelay=o/1e3:this.bitrateTestDelay=0;}ignoreFragment(t){return t.type!==W.MAIN||t.sn==="initSegment"}clearTimer(){this.timer>-1&&(self.clearInterval(this.timer),this.timer=-1);}get firstAutoLevel(){const{maxAutoLevel:t,minAutoLevel:e}=this.hls,s=this.getBwEstimate(),i=this.hls.config.maxStarvationDelay,n=this.findBestLevel(s,e,t,0,i,1,1);if(n>-1)return n;const o=this.hls.firstLevel,a=Math.min(Math.max(o,e),t);return b.warn(`[abr] Could not find best starting auto level. Defaulting to first in playlist ${o} clamped to ${a}`),a}get forcedAutoLevel(){return this.nextAutoLevelKey?-1:this._nextAutoLevel}get nextAutoLevel(){const t=this.forcedAutoLevel,s=this.bwEstimator.canEstimate(),i=this.lastLoadedFragLevel>-1;if(t!==-1&&(!s||!i||this.nextAutoLevelKey===this.getAutoLevelKey()))return t;const n=s&&i?this.getNextABRAutoLevel():this.firstAutoLevel;if(t!==-1){const o=this.hls.levels;if(o.length>Math.max(t,n)&&o[t].loadError<=o[n].loadError)return t}return this._nextAutoLevel=n,this.nextAutoLevelKey=this.getAutoLevelKey(),n}getAutoLevelKey(){return `${this.getBwEstimate()}_${this.getStarvationDelay().toFixed(2)}`}getNextABRAutoLevel(){const{fragCurrent:t,partCurrent:e,hls:s}=this,{maxAutoLevel:i,config:n,minAutoLevel:o}=s,a=e?e.duration:t?t.duration:0,l=this.getBwEstimate(),c=this.getStarvationDelay();let h=n.abrBandWidthFactor,u=n.abrBandWidthUpFactor;if(c){const p=this.findBestLevel(l,o,i,c,0,h,u);if(p>=0)return p}let d=a?Math.min(a,n.maxStarvationDelay):n.maxStarvationDelay;if(!c){const p=this.bitrateTestDelay;p&&(d=(a?Math.min(a,n.maxLoadingDelay):n.maxLoadingDelay)-p,b.info(`[abr] bitrate test took ${Math.round(1e3*p)}ms, set first fragment max fetchDuration to ${Math.round(1e3*d)} ms`),h=u=1);}const f=this.findBestLevel(l,o,i,c,d,h,u);if(b.info(`[abr] ${c?"rebuffering expected":"buffer is empty"}, optimal quality level ${f}`),f>-1)return f;const g=s.levels[o],m=s.levels[s.loadLevel];return g?.bitrate=e;V--){var X;const B=g[V],j=V>u;if(!B)continue;if(y.useMediaCapabilities&&!B.supportedResult&&!B.supportedPromise){const tt=navigator.mediaCapabilities;typeof tt?.decodingInfo=="function"&&Qr(B,L,I,v,t,C)?(B.supportedPromise=Zr(B,L,tt),B.supportedPromise.then(U=>{if(!this.hls)return;B.supportedResult=U;const N=this.hls.levels,Z=N.indexOf(B);U.error?b.warn(`[abr] MediaCapabilities decodingInfo error: "${U.error}" for level ${Z} ${JSON.stringify(U)}`):U.supported||(b.warn(`[abr] Unsupported MediaCapabilities decodingInfo result for level ${Z} ${JSON.stringify(U)}`),Z>-1&&N.length>1&&(b.log(`[abr] Removing unsupported level ${Z}`),this.hls.removeLevel(Z)));})):B.supportedResult=Ii;}if(E&&B.codecSet!==E||I&&B.videoRange!==I||j&&v>B.frameRate||!j&&v>0&&v=_*2&&n===0?g[V].averageBitrate:g[V].maxBitrate,G=this.getTimeToLoadFrag(D,F,Y*O,Q===void 0);if(F>=Y&&(V===h||B.loadError===0&&B.fragmentError===0)&&(G<=D||!$(G)||T&&!this.bitrateTestDelay||G${V} adjustedbw(${Math.round(F)})-bitrate=${Math.round(F-Y)} ttfb:${D.toFixed(1)} avgDuration:${O.toFixed(1)} maxFetchDuration:${c.toFixed(1)} fetchDuration:${G.toFixed(1)} firstSelection:${R} codecSet:${E} videoRange:${I} hls.loadLevel:${p}`)),R&&(this.firstSelection=V),V}}return -1}set nextAutoLevel(t){const{maxAutoLevel:e,minAutoLevel:s}=this.hls,i=Math.min(Math.max(t,s),e);this._nextAutoLevel!==i&&(this.nextAutoLevelKey="",this._nextAutoLevel=i);}}class lo{constructor(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this);}destroy(){this.onHandlerDestroying(),this.onHandlerDestroyed();}onHandlerDestroying(){this.clearNextTick(),this.clearInterval();}onHandlerDestroyed(){}hasInterval(){return !!this._tickInterval}hasNextTick(){return !!this._tickTimer}setInterval(t){return this._tickInterval?false:(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,t),true)}clearInterval(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,true):false}clearNextTick(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,true):false}tick(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0);}tickImmediate(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0);}doTick(){}}var xt={NOT_LOADED:"NOT_LOADED",APPENDING:"APPENDING",PARTIAL:"PARTIAL",OK:"OK"};const co={length:0,start:()=>0,end:()=>0};class nt{static isBuffered(t,e){try{if(t){const s=nt.getBuffered(t);for(let i=0;i=s.start(i)&&e<=s.end(i))return !0}}catch{}return false}static bufferInfo(t,e,s){try{if(t){const i=nt.getBuffered(t),n=[];let o;for(o=0;ou&&(i[h-1].end=t[c].end):i.push(t[c]);}else i.push(t[c]);}else i=t;let n=0,o,a=e,l=e;for(let c=0;c=h&&ee.startCC||r&&r.cc{if(this.loader&&this.loader.destroy(),t.gap)if(t.tagList.some(f=>f[0]==="GAP")){l($s(t));return}else t.gap=false;const c=this.loader=t.loader=n?new n(i):new o(i),h=Bs(t),u=Fs(i.fragLoadPolicy.default),d={loadPolicy:u,timeout:u.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:t.sn==="initSegment"?1/0:Us};t.stats=c.stats,c.load(h,d,{onSuccess:(f,g,m,p)=>{this.resetLoader(t,c);let y=f.data;m.resetIV&&t.decryptdata&&(t.decryptdata.iv=new Uint8Array(y.slice(0,16)),y=y.slice(16)),a({frag:t,part:null,payload:y,networkDetails:p});},onError:(f,g,m,p)=>{this.resetLoader(t,c),l(new Ct({type:H.NETWORK_ERROR,details:w.FRAG_LOAD_ERROR,fatal:false,frag:t,response:ut({url:s,data:void 0},f),error:new Error(`HTTP Error ${f.code} ${f.text}`),networkDetails:m,stats:p}));},onAbort:(f,g,m)=>{this.resetLoader(t,c),l(new Ct({type:H.NETWORK_ERROR,details:w.INTERNAL_ABORTED,fatal:false,frag:t,error:new Error("Aborted"),networkDetails:m,stats:f}));},onTimeout:(f,g,m)=>{this.resetLoader(t,c),l(new Ct({type:H.NETWORK_ERROR,details:w.FRAG_LOAD_TIMEOUT,fatal:false,frag:t,error:new Error(`Timeout after ${d.timeout}ms`),networkDetails:m,stats:f}));},onProgress:(f,g,m,p)=>{e&&e({frag:t,part:null,payload:m,networkDetails:p});}});})}loadPart(t,e,s){this.abort();const i=this.config,n=i.fLoader,o=i.loader;return new Promise((a,l)=>{if(this.loader&&this.loader.destroy(),t.gap||e.gap){l($s(t,e));return}const c=this.loader=t.loader=n?new n(i):new o(i),h=Bs(t,e),u=Fs(i.fragLoadPolicy.default),d={loadPolicy:u,timeout:u.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:Us};e.stats=c.stats,c.load(h,d,{onSuccess:(f,g,m,p)=>{this.resetLoader(t,c),this.updateStatsFromPart(t,e);const y={frag:t,part:e,payload:f.data,networkDetails:p};s(y),a(y);},onError:(f,g,m,p)=>{this.resetLoader(t,c),l(new Ct({type:H.NETWORK_ERROR,details:w.FRAG_LOAD_ERROR,fatal:false,frag:t,part:e,response:ut({url:h.url,data:void 0},f),error:new Error(`HTTP Error ${f.code} ${f.text}`),networkDetails:m,stats:p}));},onAbort:(f,g,m)=>{t.stats.aborted=e.stats.aborted,this.resetLoader(t,c),l(new Ct({type:H.NETWORK_ERROR,details:w.INTERNAL_ABORTED,fatal:false,frag:t,part:e,error:new Error("Aborted"),networkDetails:m,stats:f}));},onTimeout:(f,g,m)=>{this.resetLoader(t,c),l(new Ct({type:H.NETWORK_ERROR,details:w.FRAG_LOAD_TIMEOUT,fatal:false,frag:t,part:e,error:new Error(`Timeout after ${d.timeout}ms`),networkDetails:m,stats:f}));}});})}updateStatsFromPart(t,e){const s=t.stats,i=e.stats,n=i.total;if(s.loaded+=i.loaded,n){const l=Math.round(t.duration/e.duration),c=Math.min(Math.round(s.loaded/n),l),u=(l-c)*Math.round(s.loaded/c);s.total=s.loaded+u;}else s.total=Math.max(s.loaded,s.total);const o=s.loading,a=i.loading;o.start?o.first+=a.first-a.start:(o.start=a.start,o.first=a.first),o.end=a.end;}resetLoader(t,e){t.loader=null,this.loader===e&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),e.destroy();}}function Bs(r,t=null){const e=t||r,s={frag:r,part:t,responseType:"arraybuffer",url:e.url,headers:{},rangeStart:0,rangeEnd:0},i=e.byteRangeStartOffset,n=e.byteRangeEndOffset;if($(i)&&$(n)){var o;let a=i,l=n;if(r.sn==="initSegment"&&((o=r.decryptdata)==null?void 0:o.method)==="AES-128"){const c=n-i;c%16&&(l=n+(16-c%16)),i!==0&&(s.resetIV=true,a=i-16);}s.rangeStart=a,s.rangeEnd=l;}return s}function $s(r,t){const e=new Error(`GAP ${r.gap?"tag":"attribute"} found`),s={type:H.MEDIA_ERROR,details:w.FRAG_GAP,fatal:false,frag:r,error:e,networkDetails:null};return t&&(s.part=t),(t||r).stats.aborted=true,new Ct(s)}class Ct extends Error{constructor(t){super(t.error.message),this.data=void 0,this.data=t;}}class po{constructor(t,e){this.subtle=void 0,this.aesIV=void 0,this.subtle=t,this.aesIV=e;}decrypt(t,e){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},e,t)}}class xo{constructor(t,e){this.subtle=void 0,this.key=void 0,this.subtle=t,this.key=e;}expandKey(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},false,["encrypt","decrypt"])}}function yo(r){const t=r.byteLength,e=t&&new DataView(r.buffer).getUint8(t-1);return e?Ft(r,0,t-e):r}class To{constructor(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable();}uint8ArrayToUint32Array_(t){const e=new DataView(t),s=new Uint32Array(4);for(let i=0;i<4;i++)s[i]=e.getUint32(i*4);return s}initTable(){const t=this.sBox,e=this.invSBox,s=this.subMix,i=s[0],n=s[1],o=s[2],a=s[3],l=this.invSubMix,c=l[0],h=l[1],u=l[2],d=l[3],f=new Uint32Array(256);let g=0,m=0,p=0;for(p=0;p<256;p++)p<128?f[p]=p<<1:f[p]=p<<1^283;for(p=0;p<256;p++){let y=m^m<<1^m<<2^m<<3^m<<4;y=y>>>8^y&255^99,t[g]=y,e[y]=g;const A=f[g],T=f[A],R=f[T];let E=f[y]*257^y*16843008;i[g]=E<<24|E>>>8,n[g]=E<<16|E>>>16,o[g]=E<<8|E>>>24,a[g]=E,E=R*16843009^T*65537^A*257^g*16843008,c[y]=E<<24|E>>>8,h[y]=E<<16|E>>>16,u[y]=E<<8|E>>>24,d[y]=E,g?(g=A^f[f[f[R^A]]],m^=f[f[m]]):g=m=1;}}expandKey(t){const e=this.uint8ArrayToUint32Array_(t);let s=true,i=0;for(;ithis.subtle?(this.logOnce("WebCrypto AES decrypt"),new po(this.subtle,new Uint8Array(s)).decrypt(t.buffer,i)):Promise.reject(new Error("web crypto not initialized"))).catch(i=>(b.warn(`[decrypter]: WebCrypto Error, disable WebCrypto API, ${i.name}: ${i.message}`),this.onWebCryptoError(t,e,s)))}onWebCryptoError(t,e,s){this.useSoftware=true,this.logEnabled=true,this.softwareDecrypt(t,e,s);const i=this.flush();if(i)return i.buffer;throw new Error("WebCrypto and softwareDecrypt: failed to decrypt data")}getValidChunk(t){let e=t;const s=t.length-t.length%So;return s!==t.length&&(e=Ft(t,0,s),this.remainderData=Ft(t,s)),e}logOnce(t){this.logEnabled&&(b.log(`[decrypter]: ${t}`),this.logEnabled=false);}}const Eo={toString:function(r){let t="";const e=r.length;for(let s=0;sa.end){const u=o>h;(o{if(this.fragContextChanged(t)){this.warn(`Fragment ${t.sn}${n.part?" p: "+n.part.index:""} of level ${t.level} was dropped during download.`),this.fragmentTracker.removeFragment(t);return}t.stats.chunkCount++,this._handleFragmentLoadProgress(n);};this._doFragLoad(t,e,s,i).then(n=>{if(!n)return;const o=this.state;if(this.fragContextChanged(t)){(o===k.FRAG_LOADING||!this.fragCurrent&&o===k.PARSING)&&(this.fragmentTracker.removeFragment(t),this.state=k.IDLE);return}"payload"in n&&(this.log(`Loaded fragment ${t.sn} of level ${t.level}`),this.hls.trigger(x.FRAG_LOADED,n)),this._handleFragmentLoadComplete(n);}).catch(n=>{this.state===k.STOPPED||this.state===k.ERROR||(this.warn(`Frag error: ${n?.message||n}`),this.resetFragmentLoading(t));});}clearTrackerIfNeeded(t){var e;const{fragmentTracker:s}=this;if(s.getState(t)===xt.APPENDING){const n=t.type,o=this.getFwdBufferInfo(this.mediaBuffer,n),a=Math.max(t.duration,o?o.len:this.config.maxBufferLength),l=this.backtrackFragment;((l?t.sn-l.sn:0)===1||this.reduceMaxBufferLength(a,t.duration))&&s.removeFragment(t);}else ((e=this.mediaBuffer)==null?void 0:e.buffered.length)===0?s.removeAllFragments():s.hasParts(t.type)&&(s.detectPartialFragments({frag:t,part:null,stats:t.stats,id:t.type}),s.getState(t)===xt.PARTIAL&&s.removeFragment(t));}checkLiveUpdate(t){if(t.updated&&!t.live){const e=t.fragments[t.fragments.length-1];this.fragmentTracker.detectPartialFragments({frag:e,part:null,stats:e.stats,id:e.type});}t.fragments[0]||(t.deltaUpdateFailed=true);}flushMainBuffer(t,e,s=null){if(!(t-e))return;const i={startOffset:t,endOffset:e,type:s};this.hls.trigger(x.BUFFER_FLUSHING,i);}_loadInitSegment(t,e){this._doFragLoad(t,e).then(s=>{if(!s||this.fragContextChanged(t)||!this.levels)throw new Error("init load aborted");return s}).then(s=>{const{hls:i}=this,{payload:n}=s,o=t.decryptdata;if(n&&n.byteLength>0&&o!=null&&o.key&&o.iv&&o.method==="AES-128"){const a=self.performance.now();return this.decrypter.decrypt(new Uint8Array(n),o.key.buffer,o.iv.buffer).catch(l=>{throw i.trigger(x.ERROR,{type:H.MEDIA_ERROR,details:w.FRAG_DECRYPT_ERROR,fatal:false,error:l,reason:l.message,frag:t}),l}).then(l=>{const c=self.performance.now();return i.trigger(x.FRAG_DECRYPTED,{frag:t,payload:l,stats:{tstart:a,tdecrypt:c}}),s.payload=l,this.completeInitSegmentLoad(s)})}return this.completeInitSegmentLoad(s)}).catch(s=>{this.state===k.STOPPED||this.state===k.ERROR||(this.warn(s),this.resetFragmentLoading(t));});}completeInitSegmentLoad(t){const{levels:e}=this;if(!e)throw new Error("init load aborted, missing levels");const s=t.frag.stats;this.state=k.IDLE,t.frag.data=new Uint8Array(t.payload),s.parsing.start=s.buffering.start=self.performance.now(),s.parsing.end=s.buffering.end=self.performance.now(),this.tick();}fragContextChanged(t){const{fragCurrent:e}=this;return !t||!e||t.sn!==e.sn||t.level!==e.level}fragBufferedComplete(t,e){var s,i,n,o;const a=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log(`Buffered ${t.type} sn: ${t.sn}${e?" part: "+e.index:""} of ${this.playlistType===W.MAIN?"level":"track"} ${t.level} (frag:[${((s=t.startPTS)!=null?s:NaN).toFixed(3)}-${((i=t.endPTS)!=null?i:NaN).toFixed(3)}] > buffer:${a?Eo.toString(nt.getBuffered(a)):"(detached)"})`),t.sn!=="initSegment"){var l;if(t.type!==W.SUBTITLE){const h=t.elementaryStreams;if(!Object.keys(h).some(u=>!!h[u])){this.state=k.IDLE;return}}const c=(l=this.levels)==null?void 0:l[t.level];c!=null&&c.fragmentError&&(this.log(`Resetting level fragment error count of ${c.fragmentError} on frag buffered`),c.fragmentError=0);}this.state=k.IDLE,a&&(!this.loadedmetadata&&t.type==W.MAIN&&a.buffered.length&&((n=this.fragCurrent)==null?void 0:n.sn)===((o=this.fragPrevious)==null?void 0:o.sn)&&(this.loadedmetadata=true,this.seekToStartPos()),this.tick());}seekToStartPos(){}_handleFragmentLoadComplete(t){const{transmuxer:e}=this;if(!e)return;const{frag:s,part:i,partsLoaded:n}=t,o=!n||n.length===0||n.some(l=>!l),a=new wi(s.level,s.sn,s.stats.chunkCount+1,0,i?i.index:-1,!o);e.flush(a);}_handleFragmentLoadProgress(t){}_doFragLoad(t,e,s=null,i){var n;const o=e?.details;if(!this.levels||!o)throw new Error(`frag load aborted, missing level${o?"":" detail"}s`);let a=null;if(t.encrypted&&!((n=t.decryptdata)!=null&&n.key)?(this.log(`Loading key for ${t.sn} of [${o.startSN}-${o.endSN}], ${this.logPrefix==="[stream-controller]"?"level":"track"} ${t.level}`),this.state=k.KEY_LOADING,this.fragCurrent=t,a=this.keyLoader.load(t).then(h=>{if(!this.fragContextChanged(h.frag))return this.hls.trigger(x.KEY_LOADED,h),this.state===k.KEY_LOADING&&(this.state=k.IDLE),h}),this.hls.trigger(x.KEY_LOADING,{frag:t}),this.fragCurrent===null&&(a=Promise.reject(new Error("frag load aborted, context changed in KEY_LOADING")))):!t.encrypted&&o.encryptedFragments.length&&this.keyLoader.loadClear(t,o.encryptedFragments),s=Math.max(t.start,s||0),this.config.lowLatencyMode&&t.sn!=="initSegment"){const h=o.partList;if(h&&i){s>t.end&&o.fragmentHint&&(t=o.fragmentHint);const u=this.getNextPart(h,t,s);if(u>-1){const d=h[u];this.log(`Loading part sn: ${t.sn} p: ${d.index} cc: ${t.cc} of playlist [${o.startSN}-${o.endSN}] parts [0-${u}-${h.length-1}] ${this.logPrefix==="[stream-controller]"?"level":"track"}: ${t.level}, target: ${parseFloat(s.toFixed(3))}`),this.nextLoadPosition=d.start+d.duration,this.state=k.FRAG_LOADING;let f;return a?f=a.then(g=>!g||this.fragContextChanged(g.frag)?null:this.doFragPartsLoad(t,d,e,i)).catch(g=>this.handleFragLoadError(g)):f=this.doFragPartsLoad(t,d,e,i).catch(g=>this.handleFragLoadError(g)),this.hls.trigger(x.FRAG_LOADING,{frag:t,part:d,targetBufferTime:s}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):f}else if(!t.url||this.loadedEndOfParts(h,s))return Promise.resolve(null)}}this.log(`Loading fragment ${t.sn} cc: ${t.cc} ${o?"of ["+o.startSN+"-"+o.endSN+"] ":""}${this.logPrefix==="[stream-controller]"?"level":"track"}: ${t.level}, target: ${parseFloat(s.toFixed(3))}`),$(t.sn)&&!this.bitrateTest&&(this.nextLoadPosition=t.start+t.duration),this.state=k.FRAG_LOADING;const l=this.config.progressive;let c;return l&&a?c=a.then(h=>!h||this.fragContextChanged(h?.frag)?null:this.fragmentLoader.load(t,i)).catch(h=>this.handleFragLoadError(h)):c=Promise.all([this.fragmentLoader.load(t,l?i:void 0),a]).then(([h])=>(!l&&h&&i&&i(h),h)).catch(h=>this.handleFragLoadError(h)),this.hls.trigger(x.FRAG_LOADING,{frag:t,targetBufferTime:s}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):c}doFragPartsLoad(t,e,s,i){return new Promise((n,o)=>{var a;const l=[],c=(a=s.details)==null?void 0:a.partList,h=u=>{this.fragmentLoader.loadPart(t,u,i).then(d=>{l[u.index]=d;const f=d.part;this.hls.trigger(x.FRAG_LOADED,d);const g=ks(s,t.sn,u.index+1)||bi(c,t.sn,u.index+1);if(g)h(g);else return n({frag:t,part:f,partsLoaded:l})}).catch(o);};h(e);})}handleFragLoadError(t){if("data"in t){const e=t.data;t.data&&e.details===w.INTERNAL_ABORTED?this.handleFragLoadAborted(e.frag,e.part):this.hls.trigger(x.ERROR,e);}else this.hls.trigger(x.ERROR,{type:H.OTHER_ERROR,details:w.INTERNAL_EXCEPTION,err:t,error:t,fatal:true});return null}_handleTransmuxerFlush(t){const e=this.getCurrentContext(t);if(!e||this.state!==k.PARSING){!this.fragCurrent&&this.state!==k.STOPPED&&this.state!==k.ERROR&&(this.state=k.IDLE);return}const{frag:s,part:i,level:n}=e,o=self.performance.now();s.stats.parsing.end=o,i&&(i.stats.parsing.end=o),this.updateLevelTiming(s,i,n,t.partial);}getCurrentContext(t){const{levels:e,fragCurrent:s}=this,{level:i,sn:n,part:o}=t;if(!(e!=null&&e[i]))return this.warn(`Levels object was unset while buffering fragment ${n} of level ${i}. The current chunk will not be buffered.`),null;const a=e[i],l=o>-1?ks(a,n,o):null,c=l?l.fragment:Kr(a,n,s);return c?(s&&s!==c&&(c.stats=s.stats),{frag:c,part:l,level:a}):null}bufferFragmentData(t,e,s,i,n){var o;if(!t||this.state!==k.PARSING)return;const{data1:a,data2:l}=t;let c=a;if(a&&l&&(c=gt(a,l)),!((o=c)!=null&&o.length))return;const h={type:t.type,frag:e,part:s,chunkMeta:i,parent:e.type,data:c};if(this.hls.trigger(x.BUFFER_APPENDING,h),t.dropped&&t.independent&&!s){if(n)return;this.flushBufferGap(e);}}flushBufferGap(t){const e=this.media;if(!e)return;if(!nt.isBuffered(e,e.currentTime)){this.flushMainBuffer(0,t.start);return}const s=e.currentTime,i=nt.bufferInfo(e,s,0),n=t.duration,o=Math.min(this.config.maxFragLookUpTolerance*2,n*.25),a=Math.max(Math.min(t.start-o,i.end-o),s+o);t.start-a>o&&this.flushMainBuffer(a,t.start);}getFwdBufferInfo(t,e){const s=this.getLoadPosition();return $(s)?this.getFwdBufferInfoAtPos(t,s,e):null}getFwdBufferInfoAtPos(t,e,s){const{config:{maxBufferHole:i}}=this,n=nt.bufferInfo(t,e,i);if(n.len===0&&n.nextStart!==void 0){const o=this.fragmentTracker.getBufferedFrag(e,s);if(o&&n.nextStart=i?(s.maxMaxBufferLength=n,this.warn(`Reduce max buffer length to ${n}s`),true):false}getAppendedFrag(t,e=W.MAIN){const s=this.fragmentTracker.getAppendedFrag(t,W.MAIN);return s&&"fragment"in s?s.fragment:s}getNextFragment(t,e){const s=e.fragments,i=s.length;if(!i)return null;const{config:n}=this,o=s[0].start;let a;if(e.live){const l=n.initialLiveManifestSize;if(ie}getNextFragmentLoopLoading(t,e,s,i,n){const o=t.gap,a=this.getNextFragment(this.nextLoadPosition,e);if(a===null)return a;if(t=a,o&&t&&!t.gap&&s.nextStart){const l=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,s.nextStart,i);if(l!==null&&s.len+l.len>=n)return this.log(`buffer full after gaps in "${i}" playlist starting at sn: ${t.sn}`),null}return t}mapToInitFragWhenRequired(t){return t!=null&&t.initSegment&&!(t!=null&&t.initSegment.data)&&!this.bitrateTest?t.initSegment:t}getNextPart(t,e,s){let i=-1,n=false,o=true;for(let a=0,l=t.length;a-1&&ss.start&&s.loaded}getInitialLiveFragment(t,e){const s=this.fragPrevious;let i=null;if(s){if(t.hasProgramDateTime&&(this.log(`Live playlist, switching playlist, load frag with same PDT: ${s.programDateTime}`),i=Wr(e,s.endProgramDateTime,this.config.maxFragLookUpTolerance)),!i){const n=s.sn+1;if(n>=t.startSN&&n<=t.endSN){const o=e[n-t.startSN];s.cc===o.cc&&(i=o,this.log(`Live playlist, switching playlist, load frag with next SN: ${i.sn}`));}i||(i=qr(e,s.cc),i&&this.log(`Live playlist, switching playlist, load frag with same CC: ${i.sn}`));}}else {const n=this.hls.liveSyncPosition;n!==null&&(i=this.getFragmentAtPosition(n,this.bitrateTest?t.fragmentEnd:t.edge,t));}return i}getFragmentAtPosition(t,e,s){const{config:i}=this;let{fragPrevious:n}=this,{fragments:o,endSN:a}=s;const{fragmentHint:l}=s,{maxFragLookUpTolerance:c}=i,h=s.partList,u=!!(i.lowLatencyMode&&h!=null&&h.length&&l);u&&l&&!this.bitrateTest&&(o=o.concat(l),a=l.sn);let d;if(te-c?0:c;d=ve(n,o,t,f);}else d=o[o.length-1];if(d){const f=d.sn-s.startSN,g=this.fragmentTracker.getState(d);if((g===xt.OK||g===xt.PARTIAL&&d.gap)&&(n=d),n&&d.sn===n.sn&&(!u||h[0].fragment.sn>d.sn)&&n&&d.level===n.level){const p=o[f+1];d.sn=o-e.maxFragLookUpTolerance&&n<=a;if(i!==null&&s.duration>i&&(n${t.startSN} prev-sn: ${l?l.sn:"na"} fragments: ${i}`),c}return n}waitForCdnTuneIn(t){return t.live&&t.canBlockReload&&t.partTarget&&t.tuneInGoal>Math.max(t.partHoldBack,t.partTarget*3)}setStartPosition(t,e){let s=this.startPosition;if(s ${(i=this.fragCurrent)==null?void 0:i.url}`);return}const n=e.details===w.FRAG_GAP;n&&this.fragmentTracker.fragBuffered(s,true);const o=e.errorAction,{action:a,retryCount:l=0,retryConfig:c}=o||{};if(o&&a===rt.RetryRequest&&c){this.resetStartWhenNotLoaded(this.levelLastLoaded);const h=os(c,l);this.warn(`Fragment ${s.sn} of ${t} ${s.level} errored with ${e.details}, retrying loading ${l+1}/${c.maxNumRetry} in ${h}ms`),o.resolved=true,this.retryDate=self.performance.now()+h,this.state=k.FRAG_LOADING_WAITING_RETRY;}else if(c&&o)if(this.resetFragmentErrors(t),l.5;n&&this.reduceMaxBufferLength(i.len,e?.duration||10);const o=!n;return o&&this.warn(`Buffer full error while media.currentTime is not buffered, flush ${s} buffer`),e&&(this.fragmentTracker.removeFragment(e),this.nextLoadPosition=e.start),this.resetLoadingState(),o}return false}resetFragmentErrors(t){t===W.AUDIO&&(this.fragCurrent=null),this.loadedmetadata||(this.startFragRequested=false),this.state!==k.STOPPED&&(this.state=k.IDLE);}afterBufferFlushed(t,e,s){if(!t)return;const i=nt.getBuffered(t);this.fragmentTracker.detectEvictedFragments(e,i,s),this.state===k.ENDED&&this.resetLoadingState();}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state=k.IDLE;}resetStartWhenNotLoaded(t){if(!this.loadedmetadata){this.startFragRequested=false;const e=t?t.details:null;e!=null&&e.live?(this.startPosition=-1,this.setStartPosition(e,0),this.resetLoadingState()):this.nextLoadPosition=this.startPosition;}}resetWhenMissingContext(t){this.warn(`The loading context changed while buffering fragment ${t.sn} of level ${t.level}. This chunk will not be buffered.`),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState();}removeUnbufferedFrags(t=0){this.fragmentTracker.removeFragmentsInRange(t,1/0,this.playlistType,false,true);}updateLevelTiming(t,e,s,i){var n;const o=s.details;if(!o){this.warn("level.details undefined");return}if(!Object.keys(t.elementaryStreams).reduce((l,c)=>{const h=t.elementaryStreams[c];if(h){const u=h.endPTS-h.startPTS;if(u<=0)return this.warn(`Could not parse fragment ${t.sn} ${c} duration reliably (${u})`),l||false;const d=i?0:vi(o,t,h.startPTS,h.endPTS,h.startDTS,h.endDTS);return this.hls.trigger(x.LEVEL_PTS_UPDATED,{details:o,level:s,drift:d,type:c,frag:t,start:h.startPTS,end:h.endPTS}),true}return l},false)&&((n=this.transmuxer)==null?void 0:n.error)===null){const l=new Error(`Found no media in fragment ${t.sn} of level ${t.level} resetting transmuxer to fallback to playlist timing`);if(s.fragmentError===0&&(s.fragmentError++,t.gap=true,this.fragmentTracker.removeFragment(t),this.fragmentTracker.fragBuffered(t,true)),this.warn(l.message),this.hls.trigger(x.ERROR,{type:H.MEDIA_ERROR,details:w.FRAG_PARSING_ERROR,fatal:false,error:l,frag:t,reason:`Found no media in msn ${t.sn} of level "${s.url}"`}),!this.hls)return;this.resetTransmuxer();}this.state=k.PARSED,this.hls.trigger(x.FRAG_PARSED,{frag:t,part:e});}resetTransmuxer(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null);}recoverWorkerError(t){t.event==="demuxerWorker"&&(this.fragmentTracker.removeAllFragments(),this.resetTransmuxer(),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState());}set state(t){const e=this._state;e!==t&&(this._state=t,this.log(`${e}->${t}`));}get state(){return this._state}}class vo{constructor(){this.chunks=[],this.dataLength=0;}push(t){this.chunks.push(t),this.dataLength+=t.length;}flush(){const{chunks:t,dataLength:e}=this;let s;if(t.length)t.length===1?s=t[0]:s=Ao(t,e);else return new Uint8Array(0);return this.reset(),s}reset(){this.chunks.length=0,this.dataLength=0;}}function Ao(r,t){const e=new Uint8Array(t);let s=0;for(let i=0;i0&&a.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:s,type:Xt.audioId3,duration:Number.POSITIVE_INFINITY});i{if($(r))return r*90;const s=e?e.baseTime*9e4/e.timescale:0;return t*9e4+s};function wo(r,t,e,s){let i,n,o,a;const l=navigator.userAgent.toLowerCase(),c=s,h=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];i=((t[e+2]&192)>>>6)+1;const u=(t[e+2]&60)>>>2;if(u>h.length-1){const d=new Error(`invalid ADTS sampling index:${u}`);r.emit(x.ERROR,x.ERROR,{type:H.MEDIA_ERROR,details:w.FRAG_PARSING_ERROR,fatal:true,error:d,reason:d.message});return}return o=(t[e+2]&1)<<2,o|=(t[e+3]&192)>>>6,b.log(`manifest codec:${s}, ADTS type:${i}, samplingIndex:${u}`),/firefox/i.test(l)?u>=6?(i=5,a=new Array(4),n=u-3):(i=2,a=new Array(2),n=u):l.indexOf("android")!==-1?(i=2,a=new Array(2),n=u):(i=5,a=new Array(4),s&&(s.indexOf("mp4a.40.29")!==-1||s.indexOf("mp4a.40.5")!==-1)||!s&&u>=6?n=u-3:((s&&s.indexOf("mp4a.40.2")!==-1&&(u>=6&&o===1||/vivaldi/i.test(l))||!s&&o===1)&&(i=2,a=new Array(2)),n=u)),a[0]=i<<3,a[0]|=(u&14)>>1,a[1]|=(u&1)<<7,a[1]|=o<<3,i===5&&(a[1]|=(n&14)>>1,a[2]=(n&1)<<7,a[2]|=8,a[3]=0),{config:a,samplerate:h[u],channelCount:o,codec:"mp4a.40."+i,manifestCodec:c}}function _i(r,t){return r[t]===255&&(r[t+1]&246)===240}function ki(r,t){return r[t+1]&1?7:9}function cs(r,t){return (r[t+3]&3)<<11|r[t+4]<<3|(r[t+5]&224)>>>5}function Do(r,t){return t+5=r.length)return false;const s=cs(r,t);if(s<=e)return false;const i=t+s;return i===r.length||be(r,i)}return false}function Pi(r,t,e,s,i){if(!r.samplerate){const n=wo(t,e,s,i);if(!n)return;r.config=n.config,r.samplerate=n.samplerate,r.channelCount=n.channelCount,r.codec=n.codec,r.manifestCodec=n.manifestCodec,b.log(`parsed codec:${r.codec}, rate:${n.samplerate}, channels:${n.channelCount}`);}}function Fi(r){return 1024*9e4/r}function ko(r,t){const e=ki(r,t);if(t+e<=r.length){const s=cs(r,t)-e;if(s>0)return {headerLength:e,frameLength:s}}}function Oi(r,t,e,s,i){const n=Fi(r.samplerate),o=s+i*n,a=ko(t,e);let l;if(a){const{frameLength:u,headerLength:d}=a,f=d+u,g=Math.max(0,e+f-t.length);g?(l=new Uint8Array(f-d),l.set(t.subarray(e+d,t.length),0)):l=t.subarray(e+d,e+f);const m={unit:l,pts:o};return g||r.samples.push(m),{sample:m,length:f,missing:g}}const c=t.length-e;return l=new Uint8Array(c),l.set(t.subarray(e,t.length),0),{sample:{unit:l,pts:o},length:c,missing:-1}}let se=null;const Po=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],Fo=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],Oo=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],Mo=[0,1,1,4];function Mi(r,t,e,s,i){if(e+24>t.length)return;const n=Ni(t,e);if(n&&e+n.frameLength<=t.length){const o=n.samplesPerFrame*9e4/n.sampleRate,a=s+i*o,l={unit:t.subarray(e,e+n.frameLength),pts:a,dts:a};return r.config=[],r.channelCount=n.channelCount,r.samplerate=n.sampleRate,r.samples.push(l),{sample:l,length:n.frameLength,missing:0}}}function Ni(r,t){const e=r[t+1]>>3&3,s=r[t+1]>>1&3,i=r[t+2]>>4&15,n=r[t+2]>>2&3;if(e!==1&&i!==0&&i!==15&&n!==3){const o=r[t+2]>>1&1,a=r[t+3]>>6,l=e===3?3-s:s===3?3:4,c=Po[l*14+i-1]*1e3,u=Fo[(e===3?0:e===2?1:2)*3+n],d=a===3?1:2,f=Oo[e][s],g=Mo[s],m=f*8*g,p=Math.floor(f*c/u+o)*g;if(se===null){const T=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);se=T?parseInt(T[1]):0;}return se&&se<=87&&s===2&&c>=224e3&&a===0&&(r[t+3]=r[t+3]|128),{sampleRate:u,channelCount:d,frameLength:p,samplesPerFrame:m}}}function hs(r,t){return r[t]===255&&(r[t+1]&224)===224&&(r[t+1]&6)!==0}function Ui(r,t){return t+1{const o=Ar(n);if(Bo.test(o.schemeIdUri)){const a=$(o.presentationTime)?o.presentationTime/o.timeScale:e+o.presentationTimeDelta/o.timeScale;let l=o.eventDuration===4294967295?Number.POSITIVE_INFINITY:o.eventDuration/o.timeScale;l<=.001&&(l=Number.POSITIVE_INFINITY);const c=o.payload;s.samples.push({data:c,len:c.byteLength,dts:a,pts:a,type:Xt.emsg,duration:l});}});}return s}demuxSampleAes(t,e,s){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))}destroy(){}}const $i=(r,t)=>{let e=0,s=5;t+=s;const i=new Uint32Array(1),n=new Uint32Array(1),o=new Uint8Array(1);for(;s>0;){o[0]=r[t];const a=Math.min(s,8),l=8-a;n[0]=4278190080>>>24+l<>l,e=e?e<t.length||t[e]!==11||t[e+1]!==119)return -1;const n=t[e+4]>>6;if(n>=3)return -1;const a=[48e3,44100,32e3][n],l=t[e+4]&63,h=[64,69,96,64,70,96,80,87,120,80,88,120,96,104,144,96,105,144,112,121,168,112,122,168,128,139,192,128,140,192,160,174,240,160,175,240,192,208,288,192,209,288,224,243,336,224,244,336,256,278,384,256,279,384,320,348,480,320,349,480,384,417,576,384,418,576,448,487,672,448,488,672,512,557,768,512,558,768,640,696,960,640,697,960,768,835,1152,768,836,1152,896,975,1344,896,976,1344,1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][l*3+n]*2;if(e+h>t.length)return -1;const u=t[e+6]>>5;let d=0;u===2?d+=2:(u&1&&u!==1&&(d+=2),u&4&&(d+=2));const f=(t[e+6]<<8|t[e+7])>>12-d&1,m=[2,1,2,3,3,4,4,5][u]+f,p=t[e+5]>>3,y=t[e+5]&7,A=new Uint8Array([n<<6|p<<1|y>>2,(y&3)<<6|u<<3|f<<2|l>>4,l<<4&224]),T=1536/a*9e4,R=s+i*T,E=t.subarray(e,e+h);return r.config=A,r.channelCount=m,r.samplerate=a,r.samples.push({unit:E,pts:R}),h}class Ko{constructor(){this.VideoSample=null;}createVideoSample(t,e,s,i){return {key:t,frame:false,pts:e,dts:s,units:[],debug:i,length:0}}getLastNalUnit(t){var e;let s=this.VideoSample,i;if((!s||s.units.length===0)&&(s=t[t.length-1]),(e=s)!=null&&e.units){const n=s.units;i=n[n.length-1];}return i}pushAccessUnit(t,e){if(t.units.length&&t.frame){if(t.pts===void 0){const s=e.samples,i=s.length;if(i){const n=s[i-1];t.pts=n.pts,t.dts=n.dts;}else {e.dropped++;return}}e.samples.push(t);}t.debug.length&&b.log(t.pts+"/"+t.dts+":"+t.debug);}}class Gs{constructor(t){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=t,this.bytesAvailable=t.byteLength,this.word=0,this.bitsAvailable=0;}loadWord(){const t=this.data,e=this.bytesAvailable,s=t.byteLength-e,i=new Uint8Array(4),n=Math.min(4,e);if(n===0)throw new Error("no bytes available");i.set(t.subarray(s,s+n)),this.word=new DataView(i.buffer).getUint32(0),this.bitsAvailable=n*8,this.bytesAvailable-=n;}skipBits(t){let e;t=Math.min(t,this.bytesAvailable*8+this.bitsAvailable),this.bitsAvailable>t?(this.word<<=t,this.bitsAvailable-=t):(t-=this.bitsAvailable,e=t>>3,t-=e<<3,this.bytesAvailable-=e,this.loadWord(),this.word<<=t,this.bitsAvailable-=t);}readBits(t){let e=Math.min(this.bitsAvailable,t);const s=this.word>>>32-e;if(t>32&&b.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=e,this.bitsAvailable>0)this.word<<=e;else if(this.bytesAvailable>0)this.loadWord();else throw new Error("no bits available");return e=t-e,e>0&&this.bitsAvailable?s<>>t)!==0)return this.word<<=t,this.bitsAvailable-=t,t;return this.loadWord(),t+this.skipLZ()}skipUEG(){this.skipBits(1+this.skipLZ());}skipEG(){this.skipBits(1+this.skipLZ());}readUEG(){const t=this.skipLZ();return this.readBits(t+1)-1}readEG(){const t=this.readUEG();return 1&t?1+t>>>1:-1*(t>>>1)}readBoolean(){return this.readBits(1)===1}readUByte(){return this.readBits(8)}readUShort(){return this.readBits(16)}readUInt(){return this.readBits(32)}skipScalingList(t){let e=8,s=8,i;for(let n=0;n{var u;switch(h.type){case 1:{let m=false;l=true;const p=h.data;if(c&&p.length>4){const y=new Gs(p).readSliceType();(y===2||y===4||y===7||y===9)&&(m=true);}if(m){var d;(d=a)!=null&&d.frame&&!a.key&&(this.pushAccessUnit(a,t),a=this.VideoSample=null);}a||(a=this.VideoSample=this.createVideoSample(true,s.pts,s.dts,"")),a.frame=true,a.key=m;break}case 5:l=true,(u=a)!=null&&u.frame&&!a.key&&(this.pushAccessUnit(a,t),a=this.VideoSample=null),a||(a=this.VideoSample=this.createVideoSample(true,s.pts,s.dts,"")),a.key=true,a.frame=true;break;case 6:{l=true,Ti(h.data,1,s.pts,e.samples);break}case 7:{var f,g;l=true,c=true;const m=h.data,y=new Gs(m).readSPS();if(!t.sps||t.width!==y.width||t.height!==y.height||((f=t.pixelRatio)==null?void 0:f[0])!==y.pixelRatio[0]||((g=t.pixelRatio)==null?void 0:g[1])!==y.pixelRatio[1]){t.width=y.width,t.height=y.height,t.pixelRatio=y.pixelRatio,t.sps=[m],t.duration=n;const A=m.subarray(1,4);let T="avc1.";for(let R=0;R<3;R++){let E=A[R].toString(16);E.length<2&&(E="0"+E),T+=E;}t.codec=T;}break}case 8:l=true,t.pps=[h.data];break;case 9:l=true,t.audFound=true,a&&this.pushAccessUnit(a,t),a=this.VideoSample=this.createVideoSample(false,s.pts,s.dts,"");break;case 12:l=true;break;default:l=false,a&&(a.debug+="unknown NAL "+h.type+" ");break}a&&l&&a.units.push(h);}),i&&a&&(this.pushAccessUnit(a,t),this.VideoSample=null);}parseAVCNALu(t,e){const s=e.byteLength;let i=t.naluState||0;const n=i,o=[];let a=0,l,c,h,u=-1,d=0;for(i===-1&&(u=0,d=e[0]&31,i=0,a=1);a=0){const f={data:e.subarray(u,c),type:d};o.push(f);}else {const f=this.getLastNalUnit(t.samples);f&&(n&&a<=4-n&&f.state&&(f.data=f.data.subarray(0,f.data.byteLength-n)),c>0&&(f.data=gt(f.data,e.subarray(0,c)),f.state=0));}a=0&&i>=0){const f={data:e.subarray(u,s),type:d,state:i};o.push(f);}if(o.length===0){const f=this.getLastNalUnit(t.samples);f&&(f.data=gt(f.data,e));}return t.naluState=i,o}}class Ho{constructor(t,e,s){this.keyData=void 0,this.decrypter=void 0,this.keyData=s,this.decrypter=new as(e,{removePKCS7Padding:false});}decryptBuffer(t){return this.decrypter.decrypt(t,this.keyData.key.buffer,this.keyData.iv.buffer)}decryptAacSample(t,e,s){const i=t[e].unit;if(i.length<=16)return;const n=i.subarray(16,i.length-i.length%16),o=n.buffer.slice(n.byteOffset,n.byteOffset+n.length);this.decryptBuffer(o).then(a=>{const l=new Uint8Array(a);i.set(l,16),this.decrypter.isSync()||this.decryptAacSamples(t,e+1,s);});}decryptAacSamples(t,e,s){for(;;e++){if(e>=t.length){s();return}if(!(t[e].unit.length<32)&&(this.decryptAacSample(t,e,s),!this.decrypter.isSync()))return}}getAvcEncryptedData(t){const e=Math.floor((t.length-48)/160)*16+16,s=new Int8Array(e);let i=0;for(let n=32;n{n.data=this.getAvcDecryptedUnit(o,l),this.decrypter.isSync()||this.decryptAvcSamples(t,e,s+1,i);});}decryptAvcSamples(t,e,s,i){if(t instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;e++,s=0){if(e>=t.length){i();return}const n=t[e].units;for(;!(s>=n.length);s++){const o=n[s];if(!(o.data.length<=48||o.type!==1&&o.type!==5)&&(this.decryptAvcSample(t,e,s,i,o),!this.decrypter.isSync()))return}}}}const it=188;class _t{constructor(t,e,s){this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=false,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this._pmtId=-1,this._videoTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.remainderData=null,this.videoParser=void 0,this.observer=t,this.config=e,this.typeSupported=s,this.videoParser=new Vo;}static probe(t){const e=_t.syncOffset(t);return e>0&&b.warn(`MPEG2-TS detected but first sync word found @ offset ${e}`),e!==-1}static syncOffset(t){const e=t.length;let s=Math.min(it*5,e-it)+1,i=0;for(;i1&&(o===0&&a>2||l+it>s))return o}else {if(a)return -1;break}i++;}return -1}static createTrack(t,e){return {container:t==="video"||t==="audio"?"video/mp2t":void 0,type:t,id:gi[t],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:t==="audio"?e:void 0}}resetInitSegment(t,e,s,i){this.pmtParsed=false,this._pmtId=-1,this._videoTrack=_t.createTrack("video"),this._audioTrack=_t.createTrack("audio",i),this._id3Track=_t.createTrack("id3"),this._txtTrack=_t.createTrack("text"),this._audioTrack.segmentCodec="aac",this.aacOverFlow=null,this.remainderData=null,this.audioCodec=e,this.videoCodec=s,this._duration=i;}resetTimeStamp(){}resetContiguity(){const{_audioTrack:t,_videoTrack:e,_id3Track:s}=this;t&&(t.pesData=null),e&&(e.pesData=null),s&&(s.pesData=null),this.aacOverFlow=null,this.remainderData=null;}demux(t,e,s=false,i=false){s||(this.sampleAes=null);let n;const o=this._videoTrack,a=this._audioTrack,l=this._id3Track,c=this._txtTrack;let h=o.pid,u=o.pesData,d=a.pid,f=l.pid,g=a.pesData,m=l.pesData,p=null,y=this.pmtParsed,A=this._pmtId,T=t.length;if(this.remainderData&&(t=gt(this.remainderData,t),T=t.length,this.remainderData=null),T>4;let _;if(L>1){if(_=v+5+t[v+4],_===v+it)continue}else _=v+4;switch(P){case h:C&&(u&&(n=Ut(u))&&this.videoParser.parseAVCPES(o,c,n,false,this._duration),u={data:[],size:0}),u&&(u.data.push(t.subarray(_,v+it)),u.size+=v+it-_);break;case d:if(C){if(g&&(n=Ut(g)))switch(a.segmentCodec){case "aac":this.parseAACPES(a,n);break;case "mp3":this.parseMPEGPES(a,n);break;case "ac3":this.parseAC3PES(a,n);break}g={data:[],size:0};}g&&(g.data.push(t.subarray(_,v+it)),g.size+=v+it-_);break;case f:C&&(m&&(n=Ut(m))&&this.parseID3PES(l,n),m={data:[],size:0}),m&&(m.data.push(t.subarray(_,v+it)),m.size+=v+it-_);break;case 0:C&&(_+=t[_]+1),A=this._pmtId=Wo(t,_);break;case A:{C&&(_+=t[_]+1);const D=Yo(t,_,this.typeSupported,s,this.observer);h=D.videoPid,h>0&&(o.pid=h,o.segmentCodec=D.segmentVideoCodec),d=D.audioPid,d>0&&(a.pid=d,a.segmentCodec=D.segmentAudioCodec),f=D.id3Pid,f>0&&(l.pid=f),p!==null&&!y&&(b.warn(`MPEG-TS PMT found at ${v} after unknown PID '${p}'. Backtracking to sync byte @${R} to parse all TS packets.`),p=null,v=R-188),y=this.pmtParsed=true;break}case 17:case 8191:break;default:p=P;break}}else E++;E>0&&Re(this.observer,new Error(`Found ${E} TS packet/s that do not start with 0x47`)),o.pesData=u,a.pesData=g,l.pesData=m;const I={audioTrack:a,videoTrack:o,id3Track:l,textTrack:c};return i&&this.extractRemainingSamples(I),I}flush(){const{remainderData:t}=this;this.remainderData=null;let e;return t?e=this.demux(t,-1,false,true):e={videoTrack:this._videoTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(e),this.sampleAes?this.decrypt(e,this.sampleAes):e}extractRemainingSamples(t){const{audioTrack:e,videoTrack:s,id3Track:i,textTrack:n}=t,o=s.pesData,a=e.pesData,l=i.pesData;let c;if(o&&(c=Ut(o))?(this.videoParser.parseAVCPES(s,n,c,true,this._duration),s.pesData=null):s.pesData=o,a&&(c=Ut(a))){switch(e.segmentCodec){case "aac":this.parseAACPES(e,c);break;case "mp3":this.parseMPEGPES(e,c);break;case "ac3":this.parseAC3PES(e,c);break}e.pesData=null;}else a!=null&&a.size&&b.log("last AAC PES packet truncated,might overlap between fragments"),e.pesData=a;l&&(c=Ut(l))?(this.parseID3PES(i,c),i.pesData=null):i.pesData=l;}demuxSampleAes(t,e,s){const i=this.demux(t,s,true,!this.config.progressive),n=this.sampleAes=new Ho(this.observer,this.config,e);return this.decrypt(i,n)}decrypt(t,e){return new Promise(s=>{const{audioTrack:i,videoTrack:n}=t;i.samples&&i.segmentCodec==="aac"?e.decryptAacSamples(i.samples,0,()=>{n.samples?e.decryptAvcSamples(n.samples,0,0,()=>{s(t);}):s(t);}):n.samples&&e.decryptAvcSamples(n.samples,0,0,()=>{s(t);});})}destroy(){this._duration=0;}parseAACPES(t,e){let s=0;const i=this.aacOverFlow;let n=e.data;if(i){this.aacOverFlow=null;const u=i.missing,d=i.sample.unit.byteLength;if(u===-1)n=gt(i.sample.unit,n);else {const f=d-u;i.sample.unit.set(n.subarray(0,u),f),t.samples.push(i.sample),s=i.missing;}}let o,a;for(o=s,a=n.length;o0;)a+=l;}}parseID3PES(t,e){if(e.pts===void 0){b.warn("[tsdemuxer]: ID3 PES unknown PTS");return}const s=ct({},e,{type:this._videoTrack?Xt.emsg:Xt.audioId3,duration:Number.POSITIVE_INFINITY});t.samples.push(s);}}function je(r,t){return ((r[t+1]&31)<<8)+r[t+2]}function Wo(r,t){return (r[t+10]&31)<<8|r[t+11]}function Yo(r,t,e,s,i){const n={audioPid:-1,videoPid:-1,id3Pid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},o=(r[t+1]&15)<<8|r[t+2],a=t+3+o-4,l=(r[t+10]&15)<<8|r[t+11];for(t+=12+l;t0){let u=t+5,d=h;for(;d>2;){r[u]===106&&(e.ac3!==true?b.log("AC-3 audio found, not supported in this browser for now"):(n.audioPid=c,n.segmentAudioCodec="ac3"));const g=r[u+1]+2;u+=g,d-=g;}}break;case 194:case 135:return Re(i,new Error("Unsupported EC-3 in M2TS found")),n;case 36:return Re(i,new Error("Unsupported HEVC in M2TS found")),n}t+=h+5;}return n}function Re(r,t,e){b.warn(`parsing error: ${t.message}`),r.emit(x.ERROR,x.ERROR,{type:H.MEDIA_ERROR,details:w.FRAG_PARSING_ERROR,fatal:false,levelRetry:e,error:t,reason:t.message});}function Pe(r){b.log(`${r} with AES-128-CBC encryption found in unencrypted stream`);}function Ut(r){let t=0,e,s,i,n,o;const a=r.data;if(!r||r.size===0)return null;for(;a[0].length<19&&a.length>1;)a[0]=gt(a[0],a[1]),a.splice(1,1);if(e=a[0],(e[0]<<16)+(e[1]<<8)+e[2]===1){if(s=(e[4]<<8)+e[5],s&&s>r.size-6)return null;const c=e[7];c&192&&(n=(e[9]&14)*536870912+(e[10]&255)*4194304+(e[11]&254)*16384+(e[12]&255)*128+(e[13]&254)/2,c&64?(o=(e[14]&14)*536870912+(e[15]&255)*4194304+(e[16]&254)*16384+(e[17]&255)*128+(e[18]&254)/2,n-o>60*9e4&&(b.warn(`${Math.round((n-o)/9e4)}s delta between PTS and DTS, align them`),n=o)):o=n),i=e[8];let h=i+9;if(r.size<=h)return null;r.size-=h;const u=new Uint8Array(r.size);for(let d=0,f=a.length;dg){h-=g;continue}else e=e.subarray(h),g-=h,h=0;u.set(e,t),t+=g;}return s&&(s-=i+3),{data:u,pts:n,dts:o,len:s}}return null}class zo extends ls{resetInitSegment(t,e,s,i){super.resetInitSegment(t,e,s,i),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:e,duration:i,inputTimeScale:9e4,dropped:0};}static probe(t){if(!t)return false;const e=jt(t,0);let s=e?.length||0;if(e&&t[s]===11&&t[s+1]===119&&rs(e)!==void 0&&$i(t,s)<=16)return false;for(let i=t.length;s>24&255,o[1]=s>>16&255,o[2]=s>>8&255,o[3]=s&255,o.set(t,4),i=0,s=8;i>24&255,t>>16&255,t>>8&255,t&255,s>>24,s>>16&255,s>>8&255,s&255,i>>24,i>>16&255,i>>8&255,i&255,85,196,0,0]))}static mdia(t){return S.box(S.types.mdia,S.mdhd(t.timescale,t.duration),S.hdlr(t.type),S.minf(t))}static mfhd(t){return S.box(S.types.mfhd,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,t&255]))}static minf(t){return t.type==="audio"?S.box(S.types.minf,S.box(S.types.smhd,S.SMHD),S.DINF,S.stbl(t)):S.box(S.types.minf,S.box(S.types.vmhd,S.VMHD),S.DINF,S.stbl(t))}static moof(t,e,s){return S.box(S.types.moof,S.mfhd(t),S.traf(s,e))}static moov(t){let e=t.length;const s=[];for(;e--;)s[e]=S.trak(t[e]);return S.box.apply(null,[S.types.moov,S.mvhd(t[0].timescale,t[0].duration)].concat(s).concat(S.mvex(t)))}static mvex(t){let e=t.length;const s=[];for(;e--;)s[e]=S.trex(t[e]);return S.box.apply(null,[S.types.mvex,...s])}static mvhd(t,e){e*=t;const s=Math.floor(e/(Dt+1)),i=Math.floor(e%(Dt+1)),n=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,t&255,s>>24,s>>16&255,s>>8&255,s&255,i>>24,i>>16&255,i>>8&255,i&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return S.box(S.types.mvhd,n)}static sdtp(t){const e=t.samples||[],s=new Uint8Array(4+e.length);let i,n;for(i=0;i>>8&255),e.push(o&255),e=e.concat(Array.prototype.slice.call(n));for(i=0;i>>8&255),s.push(o&255),s=s.concat(Array.prototype.slice.call(n));const a=S.box(S.types.avcC,new Uint8Array([1,e[3],e[4],e[5],255,224|t.sps.length].concat(e).concat([t.pps.length]).concat(s))),l=t.width,c=t.height,h=t.pixelRatio[0],u=t.pixelRatio[1];return S.box(S.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,l>>8&255,l&255,c>>8&255,c&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),a,S.box(S.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),S.box(S.types.pasp,new Uint8Array([h>>24,h>>16&255,h>>8&255,h&255,u>>24,u>>16&255,u>>8&255,u&255])))}static esds(t){const e=t.config.length;return new Uint8Array([0,0,0,0,3,23+e,0,1,0,4,15+e,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([e]).concat(t.config).concat([6,1,2]))}static audioStsd(t){const e=t.samplerate;return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t.channelCount,0,16,0,0,0,0,e>>8&255,e&255,0,0])}static mp4a(t){return S.box(S.types.mp4a,S.audioStsd(t),S.box(S.types.esds,S.esds(t)))}static mp3(t){return S.box(S.types[".mp3"],S.audioStsd(t))}static ac3(t){return S.box(S.types["ac-3"],S.audioStsd(t),S.box(S.types.dac3,t.config))}static stsd(t){return t.type==="audio"?t.segmentCodec==="mp3"&&t.codec==="mp3"?S.box(S.types.stsd,S.STSD,S.mp3(t)):t.segmentCodec==="ac3"?S.box(S.types.stsd,S.STSD,S.ac3(t)):S.box(S.types.stsd,S.STSD,S.mp4a(t)):S.box(S.types.stsd,S.STSD,S.avc1(t))}static tkhd(t){const e=t.id,s=t.duration*t.timescale,i=t.width,n=t.height,o=Math.floor(s/(Dt+1)),a=Math.floor(s%(Dt+1));return S.box(S.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,e&255,0,0,0,0,o>>24,o>>16&255,o>>8&255,o&255,a>>24,a>>16&255,a>>8&255,a&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,i>>8&255,i&255,0,0,n>>8&255,n&255,0,0]))}static traf(t,e){const s=S.sdtp(t),i=t.id,n=Math.floor(e/(Dt+1)),o=Math.floor(e%(Dt+1));return S.box(S.types.traf,S.box(S.types.tfhd,new Uint8Array([0,0,0,0,i>>24,i>>16&255,i>>8&255,i&255])),S.box(S.types.tfdt,new Uint8Array([1,0,0,0,n>>24,n>>16&255,n>>8&255,n&255,o>>24,o>>16&255,o>>8&255,o&255])),S.trun(t,s.length+16+20+8+16+8+8),s)}static trak(t){return t.duration=t.duration||4294967295,S.box(S.types.trak,S.tkhd(t),S.mdia(t))}static trex(t){const e=t.id;return S.box(S.types.trex,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,e&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}static trun(t,e){const s=t.samples||[],i=s.length,n=12+16*i,o=new Uint8Array(n);let a,l,c,h,u,d;for(e+=8+n,o.set([t.type==="video"?1:0,0,15,1,i>>>24&255,i>>>16&255,i>>>8&255,i&255,e>>>24&255,e>>>16&255,e>>>8&255,e&255],0),a=0;a>>24&255,c>>>16&255,c>>>8&255,c&255,h>>>24&255,h>>>16&255,h>>>8&255,h&255,u.isLeading<<2|u.dependsOn,u.isDependedOn<<6|u.hasRedundancy<<4|u.paddingValue<<1|u.isNonSync,u.degradPrio&61440,u.degradPrio&15,d>>>24&255,d>>>16&255,d>>>8&255,d&255],12+16*a);return S.box(S.types.trun,o)}static initSegment(t){S.types||S.init();const e=S.moov(t);return gt(S.FTYP,e)}}S.types=void 0;S.HDLR_TYPES=void 0;S.STTS=void 0;S.STSC=void 0;S.STCO=void 0;S.STSZ=void 0;S.VMHD=void 0;S.SMHD=void 0;S.STSD=void 0;S.FTYP=void 0;S.DINF=void 0;const Ki=9e4;function us(r,t,e=1,s=false){const i=r*t*e;return s?Math.round(i):i}function qo(r,t,e=1,s=false){return us(r,t,1/e,s)}function Yt(r,t=false){return us(r,1e3,1/Ki,t)}function jo(r,t=1){return us(r,Ki,1/t)}const Xo=10*1e3,Vs=1024,Qo=1152,Zo=1536;let Bt=null,Fe=null;class de{constructor(t,e,s,i=""){if(this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=false,this._initPTS=null,this._initDTS=null,this.nextAvcDts=null,this.nextAudioPts=null,this.videoSampleDuration=null,this.isAudioContiguous=false,this.isVideoContiguous=false,this.videoTrackConfig=void 0,this.observer=t,this.config=e,this.typeSupported=s,this.ISGenerated=false,Bt===null){const o=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Bt=o?parseInt(o[1]):0;}if(Fe===null){const n=navigator.userAgent.match(/Safari\/(\d+)/i);Fe=n?parseInt(n[1]):0;}}destroy(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null;}resetTimeStamp(t){b.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=t;}resetNextTimestamp(){b.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=false,this.isAudioContiguous=false;}resetInitSegment(){b.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=false,this.videoTrackConfig=void 0;}getVideoStartPts(t){let e=false;const s=t.reduce((i,n)=>{const o=n.pts-i;return o<-4294967296?(e=true,ft(i,n.pts)):o>0?i:n.pts},t[0].pts);return e&&b.debug("PTS rollover detected"),s}remux(t,e,s,i,n,o,a,l){let c,h,u,d,f,g,m=n,p=n;const y=t.pid>-1,A=e.pid>-1,T=e.samples.length,R=t.samples.length>0,E=a&&T>0||T>1;if((!y||R)&&(!A||E)||this.ISGenerated||a){if(this.ISGenerated){var v,C,P,L;const X=this.videoTrackConfig;X&&(e.width!==X.width||e.height!==X.height||((v=e.pixelRatio)==null?void 0:v[0])!==((C=X.pixelRatio)==null?void 0:C[0])||((P=e.pixelRatio)==null?void 0:P[1])!==((L=X.pixelRatio)==null?void 0:L[1]))&&this.resetInitSegment();}else u=this.generateIS(t,e,n,o);const _=this.isVideoContiguous;let D=-1,q;if(E&&(D=Jo(e.samples),!_&&this.config.forceKeyFrameOnDiscontinuity))if(g=true,D>0){b.warn(`[mp4-remuxer]: Dropped ${D} out of ${T} video samples due to a missing keyframe`);const X=this.getVideoStartPts(e.samples);e.samples=e.samples.slice(D),e.dropped+=D,p+=(e.samples[0].pts-X)/e.inputTimeScale,q=p;}else D===-1&&(b.warn(`[mp4-remuxer]: No keyframe found out of ${T} video samples`),g=false);if(this.ISGenerated){if(R&&E){const X=this.getVideoStartPts(e.samples),B=(ft(t.samples[0].pts,X)-X)/e.inputTimeScale;m+=Math.max(0,B),p+=Math.max(0,-B);}if(R){if(t.samplerate||(b.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),u=this.generateIS(t,e,n,o)),h=this.remuxAudio(t,m,this.isAudioContiguous,o,A||E||l===W.AUDIO?p:void 0),E){const X=h?h.endPTS-h.startPTS:0;e.inputTimeScale||(b.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),u=this.generateIS(t,e,n,o)),c=this.remuxVideo(e,p,_,X);}}else E&&(c=this.remuxVideo(e,p,_,0));c&&(c.firstKeyFrame=D,c.independent=D!==-1,c.firstKeyFramePTS=q);}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(s.samples.length&&(f=Vi(s,n,this._initPTS,this._initDTS)),i.samples.length&&(d=Hi(i,n,this._initPTS))),{audio:h,video:c,initSegment:u,independent:g,text:d,id3:f}}generateIS(t,e,s,i){const n=t.samples,o=e.samples,a=this.typeSupported,l={},c=this._initPTS;let h=!c||i,u="audio/mp4",d,f,g;if(h&&(d=f=1/0),t.config&&n.length){switch(t.timescale=t.samplerate,t.segmentCodec){case "mp3":a.mpeg?(u="audio/mpeg",t.codec=""):a.mp3&&(t.codec="mp3");break;case "ac3":t.codec="ac-3";break}l.audio={id:"audio",container:u,codec:t.codec,initSegment:t.segmentCodec==="mp3"&&a.mpeg?new Uint8Array(0):S.initSegment([t]),metadata:{channelCount:t.channelCount}},h&&(g=t.inputTimeScale,!c||g!==c.timescale?d=f=n[0].pts-Math.round(g*s):h=false);}if(e.sps&&e.pps&&o.length){if(e.timescale=e.inputTimeScale,l.video={id:"main",container:"video/mp4",codec:e.codec,initSegment:S.initSegment([e]),metadata:{width:e.width,height:e.height}},h)if(g=e.inputTimeScale,!c||g!==c.timescale){const m=this.getVideoStartPts(o),p=Math.round(g*s);f=Math.min(f,ft(o[0].dts,m)-p),d=Math.min(d,m-p);}else h=false;this.videoTrackConfig={width:e.width,height:e.height,pixelRatio:e.pixelRatio};}if(Object.keys(l).length)return this.ISGenerated=true,h?(this._initPTS={baseTime:d,timescale:g},this._initDTS={baseTime:f,timescale:g}):d=g=void 0,{tracks:l,initPTS:d,timescale:g}}remuxVideo(t,e,s,i){const n=t.inputTimeScale,o=t.samples,a=[],l=o.length,c=this._initPTS;let h=this.nextAvcDts,u=8,d=this.videoSampleDuration,f,g,m=Number.POSITIVE_INFINITY,p=Number.NEGATIVE_INFINITY,y=false;if(!s||h===null){const O=e*n,F=o[0].pts-ft(o[0].dts,o[0].pts);Bt&&h!==null&&Math.abs(O-F-h)<15e3?s=true:h=O-F;}const A=c.baseTime*n/c.timescale;for(let O=0;O0?O-1:O].dts&&(y=true);}y&&o.sort(function(O,F){const Y=O.dts-F.dts,G=O.pts-F.pts;return Y||G}),f=o[0].dts,g=o[o.length-1].dts;const T=g-f,R=T?Math.round(T/(l-1)):d||t.inputTimeScale/30;if(s){const O=f-h,F=O>R,Y=O<-1;if((F||Y)&&(F?b.warn(`AVC: ${Yt(O,true)} ms (${O}dts) hole between fragments detected at ${e.toFixed(3)}`):b.warn(`AVC: ${Yt(-O,true)} ms (${O}dts) overlapping between fragments detected at ${e.toFixed(3)}`),!Y||h>=o[0].pts||Bt)){f=h;const G=o[0].pts-O;if(F)o[0].dts=f,o[0].pts=G;else for(let z=0;zG);z++)o[z].dts-=O,o[z].pts-=O;b.log(`Video: Initial PTS/DTS adjusted: ${Yt(G,true)}/${Yt(f,true)}, delta: ${Yt(O,true)} ms`);}}f=Math.max(0,f);let E=0,I=0,v=f;for(let O=0;O0?F.dts-o[O-1].dts:R;if(z=O>0?F.pts-o[O-1].pts:R,U.stretchShortVideoTrack&&this.nextAudioPts!==null){const Z=Math.floor(U.maxBufferHole*n),ot=(i?m+i*n:this.nextAudioPts)-F.pts;ot>Z?(d=ot-N,d<0?d=N:_=true,b.log(`[mp4-remuxer]: It is approximately ${ot/90} ms to the next segment; using duration ${d/90} ms for the last video frame.`)):d=N;}else d=N;}const tt=Math.round(F.pts-F.dts);D=Math.min(D,d),X=Math.max(X,d),q=Math.min(q,z),V=Math.max(V,z),a.push(new Hs(F.key,d,G,tt));}if(a.length){if(Bt){if(Bt<70){const O=a[0].flags;O.dependsOn=2,O.isNonSync=0;}}else if(Fe&&V-q0&&(i&&Math.abs(A-y)<9e3||Math.abs(ft(m[0].pts-T,A)-y)<20*h),m.forEach(function(B){B.pts=ft(B.pts-T,A);}),!s||y<0){if(m=m.filter(B=>B.pts>=0),!m.length)return;n===0?y=0:i&&!g?y=Math.max(0,A):y=m[0].pts;}if(t.segmentCodec==="aac"){const B=this.config.maxAudioFramesDrift;for(let j=0,Q=y;j=B*h&&G0){v+=p;try{I=new Uint8Array(v);}catch(G){this.observer.emit(x.ERROR,x.ERROR,{type:H.MUX_ERROR,details:w.REMUX_ALLOC_ERROR,fatal:false,error:G,bytes:v,reason:`fail allocating audio mdat ${v}`});return}d||(new DataView(I.buffer).setUint32(0,v),I.set(S.types.mdat,4));}else return;I.set(O,p);const Y=O.byteLength;p+=Y,f.push(new Hs(true,c,Y,0)),E=F;}const P=f.length;if(!P)return;const L=f[f.length-1];this.nextAudioPts=y=E+l*L.duration;const _=d?new Uint8Array(0):S.moof(t.sequenceNumber++,R/l,ct({},t,{samples:f}));t.samples=[];const D=R/o,q=y/o,V={data1:_,data2:I,startPTS:D,endPTS:q,startDTS:D,endDTS:q,type:"audio",hasAudio:true,hasVideo:false,nb:P};return this.isAudioContiguous=true,V}remuxEmptyAudio(t,e,s,i){const n=t.inputTimeScale,o=t.samplerate?t.samplerate:n,a=n/o,l=this.nextAudioPts,c=this._initDTS,h=c.baseTime*9e4/c.timescale,u=(l!==null?l:i.startDTS*n)+h,d=i.endDTS*n+h,f=a*Vs,g=Math.ceil((d-u)/f),m=Ks.getSilentFrame(t.manifestCodec||t.codec,t.channelCount);if(b.warn("[mp4-remuxer]: remux empty Audio"),!m){b.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}const p=[];for(let y=0;y4294967296;)r+=e;return r}function Jo(r){for(let t=0;to.pts-a.pts);const n=r.samples;return r.samples=[],{samples:n}}class Hs{constructor(t,e,s,i){this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=e,this.size=s,this.cts=i,this.flags={isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:t?2:1,isNonSync:t?0:1};}}class ta{constructor(){this.emitInitSegment=false,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=null,this.initTracks=void 0,this.lastEndTime=null;}destroy(){}resetTimeStamp(t){this.initPTS=t,this.lastEndTime=null;}resetNextTimestamp(){this.lastEndTime=null;}resetInitSegment(t,e,s,i){this.audioCodec=e,this.videoCodec=s,this.generateInitSegment(mr(t,i)),this.emitInitSegment=true;}generateInitSegment(t){let{audioCodec:e,videoCodec:s}=this;if(!(t!=null&&t.byteLength)){this.initTracks=void 0,this.initData=void 0;return}const i=this.initData=xi(t);i.audio&&(e=Ws(i.audio,lt.AUDIO)),i.video&&(s=Ws(i.video,lt.VIDEO));const n={};i.audio&&i.video?n.audiovideo={container:"video/mp4",codec:e+","+s,initSegment:t,id:"main"}:i.audio?n.audio={container:"audio/mp4",codec:e,initSegment:t,id:"audio"}:i.video?n.video={container:"video/mp4",codec:s,initSegment:t,id:"main"}:b.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=n;}remux(t,e,s,i,n,o){var a,l;let{initPTS:c,lastEndTime:h}=this;const u={audio:void 0,video:void 0,text:i,id3:s,initSegment:void 0};$(h)||(h=this.lastEndTime=n||0);const d=e.samples;if(!(d!=null&&d.length))return u;const f={initPTS:void 0,timescale:1};let g=this.initData;if((a=g)!=null&&a.length||(this.generateInitSegment(d),g=this.initData),!((l=g)!=null&&l.length))return b.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),u;this.emitInitSegment&&(f.tracks=this.initTracks,this.emitInitSegment=false);const m=xr(d,g),p=pr(g,d),y=p===null?n:p;(ea(c,y,n,m)||f.timescale!==c.timescale&&o)&&(f.initPTS=y-n,c&&c.timescale===1&&b.warn(`Adjusting initPTS by ${f.initPTS-c.baseTime}`),this.initPTS=c={baseTime:f.initPTS,timescale:1});const A=t?y-c.baseTime/c.timescale:h,T=A+m;Tr(g,d,c.baseTime/c.timescale),m>0?this.lastEndTime=T:(b.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const R=!!g.audio,E=!!g.video;let I="";R&&(I+="audio"),E&&(I+="video");const v={data1:d,startPTS:A,startDTS:A,endPTS:T,endDTS:T,type:I,hasAudio:R,hasVideo:E,nb:1,dropped:0};return u.audio=v.type==="audio"?v:void 0,u.video=v.type!=="audio"?v:void 0,u.initSegment=f,u.id3=Vi(s,n,c,c),i.samples.length&&(u.text=Hi(i,n,c)),u}}function ea(r,t,e,s){if(r===null)return true;const i=Math.max(s,1),n=t-r.baseTime/r.timescale;return Math.abs(n-e)>i}function Ws(r,t){const e=r?.codec;if(e&&e.length>4)return e;if(t===lt.AUDIO){if(e==="ec-3"||e==="ac-3"||e==="alac")return e;if(e==="fLaC"||e==="Opus")return Ye(e,false);const s="mp4a.40.5";return b.info(`Parsed audio codec "${e}" or audio object type not handled. Using "${s}"`),s}return b.warn(`Unhandled video codec "${e}"`),e==="hvc1"||e==="hev1"?"hvc1.1.6.L120.90":e==="av01"?"av01.0.04M.08":"avc1.42e01e"}let It;try{It=self.performance.now.bind(self.performance);}catch{b.debug("Unable to use Performance API on this environment"),It=Kt?.Date.now;}const fe=[{demux:$o,remux:ta},{demux:_t,remux:de},{demux:Uo,remux:de},{demux:zo,remux:de}];fe.splice(2,0,{demux:Go,remux:de});class Ys{constructor(t,e,s,i,n){this.async=false,this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.observer=t,this.typeSupported=e,this.config=s,this.vendor=i,this.id=n;}configure(t){this.transmuxConfig=t,this.decrypter&&this.decrypter.reset();}push(t,e,s,i){const n=s.transmuxing;n.executeStart=It();let o=new Uint8Array(t);const{currentTransmuxState:a,transmuxConfig:l}=this;i&&(this.currentTransmuxState=i);const{contiguous:c,discontinuity:h,trackSwitch:u,accurateTimeOffset:d,timeOffset:f,initSegmentChange:g}=i||a,{audioCodec:m,videoCodec:p,defaultInitPts:y,duration:A,initSegmentData:T}=l,R=sa(o,e);if(R&&R.method==="AES-128"){const C=this.getDecrypter();if(C.isSync()){let P=C.softwareDecrypt(o,R.key.buffer,R.iv.buffer);if(s.part>-1&&(P=C.flush()),!P)return n.executeEnd=It(),Oe(s);o=new Uint8Array(P);}else return this.decryptionPromise=C.webCryptoDecrypt(o,R.key.buffer,R.iv.buffer).then(P=>{const L=this.push(P,null,s);return this.decryptionPromise=null,L}),this.decryptionPromise}const E=this.needsProbing(h,u);if(E){const C=this.configureTransmuxer(o);if(C)return b.warn(`[transmuxer] ${C.message}`),this.observer.emit(x.ERROR,x.ERROR,{type:H.MEDIA_ERROR,details:w.FRAG_PARSING_ERROR,fatal:false,error:C,reason:C.message}),n.executeEnd=It(),Oe(s)}(h||u||g||E)&&this.resetInitSegment(T,m,p,A,e),(h||g||E)&&this.resetInitialTimestamp(y),c||this.resetContiguity();const I=this.transmux(o,R,f,d,s),v=this.currentTransmuxState;return v.contiguous=true,v.discontinuity=false,v.trackSwitch=false,n.executeEnd=It(),I}flush(t){const e=t.transmuxing;e.executeStart=It();const{decrypter:s,currentTransmuxState:i,decryptionPromise:n}=this;if(n)return n.then(()=>this.flush(t));const o=[],{timeOffset:a}=i;if(s){const u=s.flush();u&&o.push(this.push(u,null,t));}const{demuxer:l,remuxer:c}=this;if(!l||!c)return e.executeEnd=It(),[Oe(t)];const h=l.flush(a);return ge(h)?h.then(u=>(this.flushRemux(o,u,t),o)):(this.flushRemux(o,h,t),o)}flushRemux(t,e,s){const{audioTrack:i,videoTrack:n,id3Track:o,textTrack:a}=e,{accurateTimeOffset:l,timeOffset:c}=this.currentTransmuxState;b.log(`[transmuxer.ts]: Flushed fragment ${s.sn}${s.part>-1?" p: "+s.part:""} of level ${s.level}`);const h=this.remuxer.remux(i,n,o,a,c,l,true,this.id);t.push({remuxResult:h,chunkMeta:s}),s.transmuxing.executeEnd=It();}resetInitialTimestamp(t){const{demuxer:e,remuxer:s}=this;!e||!s||(e.resetTimeStamp(t),s.resetTimeStamp(t));}resetContiguity(){const{demuxer:t,remuxer:e}=this;!t||!e||(t.resetContiguity(),e.resetNextTimestamp());}resetInitSegment(t,e,s,i,n){const{demuxer:o,remuxer:a}=this;!o||!a||(o.resetInitSegment(t,e,s,i),a.resetInitSegment(t,e,s,n));}destroy(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0);}transmux(t,e,s,i,n){let o;return e&&e.method==="SAMPLE-AES"?o=this.transmuxSampleAes(t,e,s,i,n):o=this.transmuxUnencrypted(t,s,i,n),o}transmuxUnencrypted(t,e,s,i){const{audioTrack:n,videoTrack:o,id3Track:a,textTrack:l}=this.demuxer.demux(t,e,false,!this.config.progressive);return {remuxResult:this.remuxer.remux(n,o,a,l,e,s,false,this.id),chunkMeta:i}}transmuxSampleAes(t,e,s,i,n){return this.demuxer.demuxSampleAes(t,e,s).then(o=>({remuxResult:this.remuxer.remux(o.audioTrack,o.videoTrack,o.id3Track,o.textTrack,s,i,false,this.id),chunkMeta:n}))}configureTransmuxer(t){const{config:e,observer:s,typeSupported:i,vendor:n}=this;let o;for(let d=0,f=fe.length;d0&&t?.key!=null&&t.iv!==null&&t.method!=null&&(e=t),e}const Oe=r=>({remuxResult:{},chunkMeta:r});function ge(r){return "then"in r&&r.then instanceof Function}class ia{constructor(t,e,s,i,n){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=t,this.videoCodec=e,this.initSegmentData=s,this.duration=i,this.defaultInitPts=n||null;}}class na{constructor(t,e,s,i,n,o){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.initSegmentChange=void 0,this.discontinuity=t,this.contiguous=e,this.accurateTimeOffset=s,this.trackSwitch=i,this.timeOffset=n,this.initSegmentChange=o;}}var Wi={exports:{}};(function(r){var t=Object.prototype.hasOwnProperty,e="~";function s(){}Object.create&&(s.prototype=Object.create(null),new s().__proto__||(e=false));function i(l,c,h){this.fn=l,this.context=c,this.once=h||false;}function n(l,c,h,u,d){if(typeof h!="function")throw new TypeError("The listener must be a function");var f=new i(h,u||l,d),g=e?e+c:c;return l._events[g]?l._events[g].fn?l._events[g]=[l._events[g],f]:l._events[g].push(f):(l._events[g]=f,l._eventsCount++),l}function o(l,c){--l._eventsCount===0?l._events=new s:delete l._events[c];}function a(){this._events=new s,this._eventsCount=0;}a.prototype.eventNames=function(){var c=[],h,u;if(this._eventsCount===0)return c;for(u in h=this._events)t.call(h,u)&&c.push(e?u.slice(1):u);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(h)):c},a.prototype.listeners=function(c){var h=e?e+c:c,u=this._events[h];if(!u)return [];if(u.fn)return [u.fn];for(var d=0,f=u.length,g=new Array(f);d{h=h||{},h.frag=this.frag,h.id=this.id,c===x.ERROR&&(this.error=h.error),this.hls.trigger(c,h);};this.observer=new Yi,this.observer.on(x.FRAG_DECRYPTED,o),this.observer.on(x.ERROR,o);const a=ye(n.preferManagedMediaSource)||{isTypeSupported:()=>false},l={mpeg:a.isTypeSupported("audio/mpeg"),mp3:a.isTypeSupported('audio/mp4; codecs="mp3"'),ac3:a.isTypeSupported('audio/mp4; codecs="ac-3"')};if(this.useWorker&&typeof Worker<"u"&&(n.workerPath||bo())){try{n.workerPath?(b.log(`loading Web Worker ${n.workerPath} for "${e}"`),this.workerContext=Lo(n.workerPath)):(b.log(`injecting Web Worker for "${e}"`),this.workerContext=Ro()),this.onwmsg=u=>this.onWorkerMessage(u);const{worker:h}=this.workerContext;h.addEventListener("message",this.onwmsg),h.onerror=u=>{const d=new Error(`${u.message} (${u.filename}:${u.lineno})`);n.enableWorker=!1,b.warn(`Error in "${e}" Web Worker, fallback to inline`),this.hls.trigger(x.ERROR,{type:H.OTHER_ERROR,details:w.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:d});},h.postMessage({cmd:"init",typeSupported:l,vendor:"",id:e,config:JSON.stringify(n)});}catch(h){b.warn(`Error setting up "${e}" Web Worker, fallback to inline`,h),this.resetWorker(),this.error=null,this.transmuxer=new Ys(this.observer,l,n,"",e);}return}this.transmuxer=new Ys(this.observer,l,n,"",e);}resetWorker(){if(this.workerContext){const{worker:t,objectURL:e}=this.workerContext;e&&self.URL.revokeObjectURL(e),t.removeEventListener("message",this.onwmsg),t.onerror=null,t.terminate(),this.workerContext=null;}}destroy(){if(this.workerContext)this.resetWorker(),this.onwmsg=void 0;else {const e=this.transmuxer;e&&(e.destroy(),this.transmuxer=null);}const t=this.observer;t&&t.removeAllListeners(),this.frag=null,this.observer=null,this.hls=null;}push(t,e,s,i,n,o,a,l,c,h){var u,d;c.transmuxing.start=self.performance.now();const{transmuxer:f}=this,g=o?o.start:n.start,m=n.decryptdata,p=this.frag,y=!(p&&n.cc===p.cc),A=!(p&&c.level===p.level),T=p?c.sn-p.sn:-1,R=this.part?c.part-this.part.index:-1,E=T===0&&c.id>1&&c.id===p?.stats.chunkCount,I=!A&&(T===1||T===0&&(R===1||E&&R<=0)),v=self.performance.now();(A||T||n.stats.parsing.start===0)&&(n.stats.parsing.start=v),o&&(R||!I)&&(o.stats.parsing.start=v);const C=!(p&&((u=n.initSegment)==null?void 0:u.url)===((d=p.initSegment)==null?void 0:d.url)),P=new na(y,I,l,A,g,C);if(!I||y||C){b.log(`[transmuxer-interface, ${n.type}]: Starting new transmux session for sn: ${c.sn} p: ${c.part} level: ${c.level} id: ${c.id} + discontinuity: ${y} + trackSwitch: ${A} + contiguous: ${I} + accurateTimeOffset: ${l} + timeOffset: ${g} + initSegmentChange: ${C}`);const L=new ia(s,i,e,a,h);this.configureTransmuxer(L);}if(this.frag=n,this.part=o,this.workerContext)this.workerContext.worker.postMessage({cmd:"demux",data:t,decryptdata:m,chunkMeta:c,state:P},t instanceof ArrayBuffer?[t]:[]);else if(f){const L=f.push(t,m,c,P);ge(L)?(f.async=true,L.then(_=>{this.handleTransmuxComplete(_);}).catch(_=>{this.transmuxerError(_,c,"transmuxer-interface push error");})):(f.async=false,this.handleTransmuxComplete(L));}}flush(t){t.transmuxing.start=self.performance.now();const{transmuxer:e}=this;if(this.workerContext)this.workerContext.worker.postMessage({cmd:"flush",chunkMeta:t});else if(e){let s=e.flush(t);ge(s)||e.async?(ge(s)||(s=Promise.resolve(s)),s.then(n=>{this.handleFlushResult(n,t);}).catch(n=>{this.transmuxerError(n,t,"transmuxer-interface flush error");})):this.handleFlushResult(s,t);}}transmuxerError(t,e,s){this.hls&&(this.error=t,this.hls.trigger(x.ERROR,{type:H.MEDIA_ERROR,details:w.FRAG_PARSING_ERROR,chunkMeta:e,frag:this.frag||void 0,fatal:false,error:t,err:t,reason:s}));}handleFlushResult(t,e){t.forEach(s=>{this.handleTransmuxComplete(s);}),this.onFlush(e);}onWorkerMessage(t){const e=t.data;if(!(e!=null&&e.event)){b.warn(`worker message received with no ${e?"event name":"data"}`);return}const s=this.hls;if(this.hls)switch(e.event){case "init":{var i;const n=(i=this.workerContext)==null?void 0:i.objectURL;n&&self.URL.revokeObjectURL(n);break}case "transmuxComplete":{this.handleTransmuxComplete(e.data);break}case "flush":{this.onFlush(e.data);break}case "workerLog":b[e.data.logType]&&b[e.data.logType](e.data.message);break;default:{e.data=e.data||{},e.data.frag=this.frag,e.data.id=this.id,s.trigger(e.event,e.data);break}}}configureTransmuxer(t){const{transmuxer:e}=this;this.workerContext?this.workerContext.worker.postMessage({cmd:"configure",config:t}):e&&e.configure(t);}handleTransmuxComplete(t){t.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(t);}}function zi(r,t){if(r.length!==t.length)return false;for(let e=0;er[i]!==t[i])}function Xe(r,t){return t.label.toLowerCase()===r.name.toLowerCase()&&(!t.language||t.language.toLowerCase()===(r.lang||"").toLowerCase())}const zs=100;class aa extends Ci{constructor(t,e,s){super(t,e,s,"[audio-stream-controller]",W.AUDIO),this.videoBuffer=null,this.videoTrackCC=-1,this.waitingVideoCC=-1,this.bufferedTrack=null,this.switchingTrack=null,this.trackId=-1,this.waitingData=null,this.mainDetails=null,this.flushing=false,this.bufferFlushed=false,this.cachedTrackLoadedData=null,this._registerListeners();}onHandlerDestroying(){this._unregisterListeners(),super.onHandlerDestroying(),this.mainDetails=null,this.bufferedTrack=null,this.switchingTrack=null;}_registerListeners(){const{hls:t}=this;t.on(x.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(x.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(x.MANIFEST_LOADING,this.onManifestLoading,this),t.on(x.LEVEL_LOADED,this.onLevelLoaded,this),t.on(x.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),t.on(x.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(x.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.on(x.ERROR,this.onError,this),t.on(x.BUFFER_RESET,this.onBufferReset,this),t.on(x.BUFFER_CREATED,this.onBufferCreated,this),t.on(x.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(x.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(x.INIT_PTS_FOUND,this.onInitPtsFound,this),t.on(x.FRAG_BUFFERED,this.onFragBuffered,this);}_unregisterListeners(){const{hls:t}=this;t.off(x.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(x.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(x.MANIFEST_LOADING,this.onManifestLoading,this),t.off(x.LEVEL_LOADED,this.onLevelLoaded,this),t.off(x.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),t.off(x.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(x.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.off(x.ERROR,this.onError,this),t.off(x.BUFFER_RESET,this.onBufferReset,this),t.off(x.BUFFER_CREATED,this.onBufferCreated,this),t.off(x.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(x.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(x.INIT_PTS_FOUND,this.onInitPtsFound,this),t.off(x.FRAG_BUFFERED,this.onFragBuffered,this);}onInitPtsFound(t,{frag:e,id:s,initPTS:i,timescale:n}){if(s==="main"){const o=e.cc;this.initPTS[e.cc]={baseTime:i,timescale:n},this.log(`InitPTS for cc: ${o} found from main: ${i}`),this.videoTrackCC=o,this.state===k.WAITING_INIT_PTS&&this.tick();}}startLoad(t){if(!this.levels){this.startPosition=t,this.state=k.STOPPED;return}const e=this.lastCurrentTime;this.stopLoad(),this.setInterval(zs),e>0&&t===-1?(this.log(`Override startPosition with lastCurrentTime @${e.toFixed(3)}`),t=e,this.state=k.IDLE):(this.loadedmetadata=false,this.state=k.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=t,this.tick();}doTick(){switch(this.state){case k.IDLE:this.doTickIdle();break;case k.WAITING_TRACK:{var t;const{levels:s,trackId:i}=this,n=s==null||(t=s[i])==null?void 0:t.details;if(n){if(this.waitForCdnTuneIn(n))break;this.state=k.WAITING_INIT_PTS;}break}case k.FRAG_LOADING_WAITING_RETRY:{var e;const s=performance.now(),i=this.retryDate;if(!i||s>=i||(e=this.media)!=null&&e.seeking){const{levels:n,trackId:o}=this;this.log("RetryDate reached, switch back to IDLE state"),this.resetStartWhenNotLoaded(n?.[o]||null),this.state=k.IDLE;}break}case k.WAITING_INIT_PTS:{const s=this.waitingData;if(s){const{frag:i,part:n,cache:o,complete:a}=s;if(this.initPTS[i.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=k.FRAG_LOADING;const l=o.flush(),c={frag:i,part:n,payload:l,networkDetails:null};this._handleFragmentLoadProgress(c),a&&super._handleFragmentLoadComplete(c);}else if(this.videoTrackCC!==this.waitingVideoCC)this.log(`Waiting fragment cc (${i.cc}) cancelled because video is at cc ${this.videoTrackCC}`),this.clearWaitingFragment();else {const l=this.getLoadPosition(),c=nt.bufferInfo(this.mediaBuffer,l,this.config.maxBufferHole);qe(c.end,this.config.maxFragLookUpTolerance,i)<0&&(this.log(`Waiting fragment cc (${i.cc}) @ ${i.start} cancelled because another fragment at ${c.end} is needed`),this.clearWaitingFragment());}}else this.state=k.IDLE;}}this.onTickEnd();}clearWaitingFragment(){const t=this.waitingData;t&&(this.fragmentTracker.removeFragment(t.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=k.IDLE);}resetLoadingState(){this.clearWaitingFragment(),super.resetLoadingState();}onTickEnd(){const{media:t}=this;t!=null&&t.readyState&&(this.lastCurrentTime=t.currentTime);}doTickIdle(){const{hls:t,levels:e,media:s,trackId:i}=this,n=t.config;if(!s&&(this.startFragRequested||!n.startFragPrefetch)||!(e!=null&&e[i]))return;const o=e[i],a=o.details;if(!a||a.live&&this.levelLastLoaded!==o||this.waitForCdnTuneIn(a)){this.state=k.WAITING_TRACK;return}const l=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&l&&(this.bufferFlushed=false,this.afterBufferFlushed(l,lt.AUDIO,W.AUDIO));const c=this.getFwdBufferInfo(l,W.AUDIO);if(c===null)return;const{bufferedTrack:h,switchingTrack:u}=this;if(!u&&this._streamEnded(c,a)){t.trigger(x.BUFFER_EOS,{type:"audio"}),this.state=k.ENDED;return}const d=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,W.MAIN),f=c.len,g=this.getMaxBufferLength(d?.len),m=a.fragments,p=m[0].start;let y=this.flushing?this.getLoadPosition():c.end;if(u&&s){const E=this.getLoadPosition();h&&!Vt(u.attrs,h.attrs)&&(y=E),a.PTSKnown&&Ep||c.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),s.currentTime=p+.05);}if(f>=g&&!u&&yd.end+a.targetduration;if(R||!(d!=null&&d.len)&&c.len){const E=this.getAppendedFrag(A.start,W.MAIN);if(E===null||(T||(T=!!E.gap||!!R&&d.len===0),R&&!T||T&&c.nextStart&&c.nextStartnew Te(s));}onAudioTrackSwitching(t,e){const s=!!e.url;this.trackId=e.id;const{fragCurrent:i}=this;i&&(i.abortRequests(),this.removeUnbufferedFrags(i.start)),this.resetLoadingState(),s?this.setInterval(zs):this.resetTransmuxer(),s?(this.switchingTrack=e,this.state=k.IDLE,this.flushAudioIfNeeded(e)):(this.switchingTrack=null,this.bufferedTrack=e,this.state=k.STOPPED),this.tick();}onManifestLoading(){this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=this.flushing=false,this.levels=this.mainDetails=this.waitingData=this.bufferedTrack=this.cachedTrackLoadedData=this.switchingTrack=null,this.startFragRequested=false,this.trackId=this.videoTrackCC=this.waitingVideoCC=-1;}onLevelLoaded(t,e){this.mainDetails=e.details,this.cachedTrackLoadedData!==null&&(this.hls.trigger(x.AUDIO_TRACK_LOADED,this.cachedTrackLoadedData),this.cachedTrackLoadedData=null);}onAudioTrackLoaded(t,e){var s;if(this.mainDetails==null){this.cachedTrackLoadedData=e;return}const{levels:i}=this,{details:n,id:o}=e;if(!i){this.warn(`Audio tracks were reset while loading level ${o}`);return}this.log(`Audio track ${o} loaded [${n.startSN},${n.endSN}]${n.lastPartSn?`[part-${n.lastPartSn}-${n.lastPartIndex}]`:""},duration:${n.totalduration}`);const a=i[o];let l=0;if(n.live||(s=a.details)!=null&&s.live){this.checkLiveUpdate(n);const h=this.mainDetails;if(n.deltaUpdateFailed||!h)return;if(!a.details&&n.hasProgramDateTime&&h.hasProgramDateTime)Ae(n,h),l=n.fragments[0].start;else {var c;l=this.alignPlaylists(n,a.details,(c=this.levelLastLoaded)==null?void 0:c.details);}}a.details=n,this.levelLastLoaded=a,!this.startFragRequested&&(this.mainDetails||!n.live)&&this.setStartPosition(this.mainDetails||n,l),this.state===k.WAITING_TRACK&&!this.waitForCdnTuneIn(n)&&(this.state=k.IDLE),this.tick();}_handleFragmentLoadProgress(t){var e;const{frag:s,part:i,payload:n}=t,{config:o,trackId:a,levels:l}=this;if(!l){this.warn(`Audio tracks were reset while fragment load was in progress. Fragment ${s.sn} of level ${s.level} will not be buffered`);return}const c=l[a];if(!c){this.warn("Audio track is undefined on fragment load progress");return}const h=c.details;if(!h){this.warn("Audio track details undefined on fragment load progress"),this.removeUnbufferedFrags(s.start);return}const u=o.defaultAudioCodec||c.audioCodec||"mp4a.40.2";let d=this.transmuxer;d||(d=this.transmuxer=new oa(this.hls,W.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));const f=this.initPTS[s.cc],g=(e=s.initSegment)==null?void 0:e.data;if(f!==void 0){const p=i?i.index:-1,y=p!==-1,A=new wi(s.level,s.sn,s.stats.chunkCount,n.byteLength,p,y);d.push(n,g,u,"",s,i,h.totalduration,false,A,f);}else {this.log(`Unknown video PTS for cc ${s.cc}, waiting for video PTS before demuxing audio frag ${s.sn} of [${h.startSN} ,${h.endSN}],track ${a}`);const{cache:m}=this.waitingData=this.waitingData||{frag:s,part:i,cache:new vo,complete:false};m.push(new Uint8Array(n)),this.waitingVideoCC=this.videoTrackCC,this.state=k.WAITING_INIT_PTS;}}_handleFragmentLoadComplete(t){if(this.waitingData){this.waitingData.complete=true;return}super._handleFragmentLoadComplete(t);}onBufferReset(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=false;}onBufferCreated(t,e){const s=e.tracks.audio;s&&(this.mediaBuffer=s.buffer||null),e.tracks.video&&(this.videoBuffer=e.tracks.video.buffer||null);}onFragBuffered(t,e){const{frag:s,part:i}=e;if(s.type!==W.AUDIO){if(!this.loadedmetadata&&s.type===W.MAIN){const n=this.videoBuffer||this.media;n&&nt.getBuffered(n).length&&(this.loadedmetadata=true);}return}if(this.fragContextChanged(s)){this.warn(`Fragment ${s.sn}${i?" p: "+i.index:""} of level ${s.level} finished buffering, but was aborted. state: ${this.state}, audioSwitch: ${this.switchingTrack?this.switchingTrack.name:"false"}`);return}if(s.sn!=="initSegment"){this.fragPrevious=s;const n=this.switchingTrack;n&&(this.bufferedTrack=n,this.switchingTrack=null,this.hls.trigger(x.AUDIO_TRACK_SWITCHED,ut({},n)));}this.fragBufferedComplete(s,i);}onError(t,e){var s;if(e.fatal){this.state=k.ERROR;return}switch(e.details){case w.FRAG_GAP:case w.FRAG_PARSING_ERROR:case w.FRAG_DECRYPT_ERROR:case w.FRAG_LOAD_ERROR:case w.FRAG_LOAD_TIMEOUT:case w.KEY_LOAD_ERROR:case w.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(W.AUDIO,e);break;case w.AUDIO_TRACK_LOAD_ERROR:case w.AUDIO_TRACK_LOAD_TIMEOUT:case w.LEVEL_PARSING_ERROR:!e.levelRetry&&this.state===k.WAITING_TRACK&&((s=e.context)==null?void 0:s.type)===wt.AUDIO_TRACK&&(this.state=k.IDLE);break;case w.BUFFER_APPEND_ERROR:case w.BUFFER_FULL_ERROR:if(!e.parent||e.parent!=="audio")return;if(e.details===w.BUFFER_APPEND_ERROR){this.resetLoadingState();return}this.reduceLengthAndFlushBuffer(e)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case w.INTERNAL_EXCEPTION:this.recoverWorkerError(e);break}}onBufferFlushing(t,{type:e}){e!==lt.VIDEO&&(this.flushing=true);}onBufferFlushed(t,{type:e}){if(e!==lt.VIDEO){this.flushing=false,this.bufferFlushed=true,this.state===k.ENDED&&(this.state=k.IDLE);const s=this.mediaBuffer||this.media;s&&(this.afterBufferFlushed(s,e,W.AUDIO),this.tick());}}_handleTransmuxComplete(t){var e;const s="audio",{hls:i}=this,{remuxResult:n,chunkMeta:o}=t,a=this.getCurrentContext(o);if(!a){this.resetWhenMissingContext(o);return}const{frag:l,part:c,level:h}=a,{details:u}=h,{audio:d,text:f,id3:g,initSegment:m}=n;if(this.fragContextChanged(l)||!u){this.fragmentTracker.removeFragment(l);return}if(this.state=k.PARSING,this.switchingTrack&&d&&this.completeAudioSwitch(this.switchingTrack),m!=null&&m.tracks){const p=l.initSegment||l;this._bufferInitSegment(h,m.tracks,p,o),i.trigger(x.FRAG_PARSING_INIT_SEGMENT,{frag:p,id:s,tracks:m.tracks});}if(d){const{startPTS:p,endPTS:y,startDTS:A,endDTS:T}=d;c&&(c.elementaryStreams[lt.AUDIO]={startPTS:p,endPTS:y,startDTS:A,endDTS:T}),l.setElementaryStreamInfo(lt.AUDIO,p,y,A,T),this.bufferFragmentData(d,l,c,o);}if(g!=null&&(e=g.samples)!=null&&e.length){const p=ct({id:s,frag:l,details:u},g);i.trigger(x.FRAG_PARSING_METADATA,p);}if(f){const p=ct({id:s,frag:l,details:u},f);i.trigger(x.FRAG_PARSING_USERDATA,p);}}_bufferInitSegment(t,e,s,i){if(this.state!==k.PARSING)return;e.video&&delete e.video;const n=e.audio;if(!n)return;n.id="audio";const o=t.audioCodec;this.log(`Init audio buffer, container:${n.container}, codecs[level/parsed]=[${o}/${n.codec}]`),o&&o.split(",").length===1&&(n.levelCodec=o),this.hls.trigger(x.BUFFER_CODECS,e);const a=n.initSegment;if(a!=null&&a.byteLength){const l={type:"audio",frag:s,part:null,chunkMeta:i,parent:s.type,data:a};this.hls.trigger(x.BUFFER_APPENDING,l);}this.tickImmediate();}loadFragment(t,e,s){const i=this.fragmentTracker.getState(t);if(this.fragCurrent=t,this.switchingTrack||i===xt.NOT_LOADED||i===xt.PARTIAL){var n;if(t.sn==="initSegment")this._loadInitSegment(t,e);else if((n=e.details)!=null&&n.live&&!this.initPTS[t.cc]){this.log(`Waiting for video PTS in continuity counter ${t.cc} of live stream before loading audio fragment ${t.sn} of level ${this.trackId}`),this.state=k.WAITING_INIT_PTS;const o=this.mainDetails;o&&o.fragments[0].start!==e.details.fragments[0].start&&Ae(e.details,o);}else this.startFragRequested=true,super.loadFragment(t,e,s);}else this.clearTrackerIfNeeded(t);}flushAudioIfNeeded(t){const{media:e,bufferedTrack:s}=this,i=s?.attrs,n=t.attrs;e&&i&&(i.CHANNELS!==n.CHANNELS||s.name!==t.name||s.lang!==t.lang)&&(this.log("Switching audio track : flushing all audio"),super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"),this.bufferedTrack=null);}completeAudioSwitch(t){const{hls:e}=this;this.flushAudioIfNeeded(t),this.bufferedTrack=t,this.switchingTrack=null,e.trigger(x.AUDIO_TRACK_SWITCHED,ut({},t));}}class la extends Li{constructor(t){super(t,"[audio-track-controller]"),this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=true,this.registerListeners();}registerListeners(){const{hls:t}=this;t.on(x.MANIFEST_LOADING,this.onManifestLoading,this),t.on(x.MANIFEST_PARSED,this.onManifestParsed,this),t.on(x.LEVEL_LOADING,this.onLevelLoading,this),t.on(x.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(x.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.on(x.ERROR,this.onError,this);}unregisterListeners(){const{hls:t}=this;t.off(x.MANIFEST_LOADING,this.onManifestLoading,this),t.off(x.MANIFEST_PARSED,this.onManifestParsed,this),t.off(x.LEVEL_LOADING,this.onLevelLoading,this),t.off(x.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(x.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.off(x.ERROR,this.onError,this);}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,super.destroy();}onManifestLoading(){this.tracks=[],this.tracksInGroup=[],this.groupIds=null,this.currentTrack=null,this.trackId=-1,this.selectDefaultTrack=true;}onManifestParsed(t,e){this.tracks=e.audioTracks||[];}onAudioTrackLoaded(t,e){const{id:s,groupId:i,details:n}=e,o=this.tracksInGroup[s];if(!o||o.groupId!==i){this.warn(`Audio track with id:${s} and group:${i} not found in active group ${o?.groupId}`);return}const a=o.details;o.details=e.details,this.log(`Audio track ${s} "${o.name}" lang:${o.lang} group:${i} loaded [${n.startSN}-${n.endSN}]`),s===this.trackId&&this.playlistLoaded(s,e,a);}onLevelLoading(t,e){this.switchLevel(e.level);}onLevelSwitching(t,e){this.switchLevel(e.level);}switchLevel(t){const e=this.hls.levels[t];if(!e)return;const s=e.audioGroups||null,i=this.groupIds;let n=this.currentTrack;if(!s||i?.length!==s?.length||s!=null&&s.some(a=>i?.indexOf(a)===-1)){this.groupIds=s,this.trackId=-1,this.currentTrack=null;const a=this.tracks.filter(d=>!s||s.indexOf(d.groupId)!==-1);if(a.length)this.selectDefaultTrack&&!a.some(d=>d.default)&&(this.selectDefaultTrack=false),a.forEach((d,f)=>{d.id=f;});else if(!n&&!this.tracksInGroup.length)return;this.tracksInGroup=a;const l=this.hls.config.audioPreference;if(!n&&l){const d=vt(l,a,Nt);if(d>-1)n=a[d];else {const f=vt(l,this.tracks);n=this.tracks[f];}}let c=this.findTrackId(n);c===-1&&n&&(c=this.findTrackId(null));const h={audioTracks:a};this.log(`Updating audio tracks, ${a.length} track(s) found in group(s): ${s?.join(",")}`),this.hls.trigger(x.AUDIO_TRACKS_UPDATED,h);const u=this.trackId;if(c!==-1&&u===-1)this.setAudioTrack(c);else if(a.length&&u===-1){var o;const d=new Error(`No audio track selected for current audio group-ID(s): ${(o=this.groupIds)==null?void 0:o.join(",")} track count: ${a.length}`);this.warn(d.message),this.hls.trigger(x.ERROR,{type:H.MEDIA_ERROR,details:w.AUDIO_TRACK_LOAD_ERROR,fatal:true,error:d});}}else this.shouldReloadPlaylist(n)&&this.setAudioTrack(this.trackId);}onError(t,e){e.fatal||!e.context||e.context.type===wt.AUDIO_TRACK&&e.context.id===this.trackId&&(!this.groupIds||this.groupIds.indexOf(e.context.groupId)!==-1)&&(this.requestScheduled=-1,this.checkRetry(e));}get allAudioTracks(){return this.tracks}get audioTracks(){return this.tracksInGroup}get audioTrack(){return this.trackId}set audioTrack(t){this.selectDefaultTrack=false,this.setAudioTrack(t);}setAudioOption(t){const e=this.hls;if(e.config.audioPreference=t,t){const s=this.allAudioTracks;if(this.selectDefaultTrack=false,s.length){const i=this.currentTrack;if(i&&$t(t,i,Nt))return i;const n=vt(t,this.tracksInGroup,Nt);if(n>-1){const o=this.tracksInGroup[n];return this.setAudioTrack(n),o}else if(i){let o=e.loadLevel;o===-1&&(o=e.firstAutoLevel);const a=oo(t,e.levels,s,o,Nt);if(a===-1)return null;e.nextLoadLevel=a;}if(t.channels||t.audioCodec){const o=vt(t,s);if(o>-1)return s[o]}}}return null}setAudioTrack(t){const e=this.tracksInGroup;if(t<0||t>=e.length){this.warn(`Invalid audio track id: ${t}`);return}this.clearTimer(),this.selectDefaultTrack=false;const s=this.currentTrack,i=e[t],n=i.details&&!i.details.live;if(t===this.trackId&&i===s&&n||(this.log(`Switching to audio-track ${t} "${i.name}" lang:${i.lang} group:${i.groupId} channels:${i.channels}`),this.trackId=t,this.currentTrack=i,this.hls.trigger(x.AUDIO_TRACK_SWITCHING,ut({},i)),n))return;const o=this.switchParams(i.url,s?.details,i.details);this.loadPlaylist(o);}findTrackId(t){const e=this.tracksInGroup;for(let s=0;s=n[c].start&&a<=n[c].end){o=n[c];break}const l=s.start+s.duration;o?o.end=l:(o={start:a,end:l},n.push(o)),this.fragmentTracker.fragBuffered(s),this.fragBufferedComplete(s,null);}onBufferFlushing(t,e){const{startOffset:s,endOffset:i}=e;if(s===0&&i!==Number.POSITIVE_INFINITY){const n=i-1;if(n<=0)return;e.endOffsetSubtitles=Math.max(0,n),this.tracksBuffered.forEach(o=>{for(let a=0;anew Te(s));return}this.tracksBuffered=[],this.levels=e.map(s=>{const i=new Te(s);return this.tracksBuffered[i.id]=[],i}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,W.SUBTITLE),this.fragPrevious=null,this.mediaBuffer=null;}onSubtitleTrackSwitch(t,e){var s;if(this.currentTrackId=e.id,!((s=this.levels)!=null&&s.length)||this.currentTrackId===-1){this.clearInterval();return}const i=this.levels[this.currentTrackId];i!=null&&i.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,i&&this.setInterval(qs);}onSubtitleTrackLoaded(t,e){var s;const{currentTrackId:i,levels:n}=this,{details:o,id:a}=e;if(!n){this.warn(`Subtitle tracks were reset while loading level ${a}`);return}const l=n[a];if(a>=n.length||!l)return;this.log(`Subtitle track ${a} loaded [${o.startSN},${o.endSN}]${o.lastPartSn?`[part-${o.lastPartSn}-${o.lastPartIndex}]`:""},duration:${o.totalduration}`),this.mediaBuffer=this.mediaBufferTimeRanges;let c=0;if(o.live||(s=l.details)!=null&&s.live){const u=this.mainDetails;if(o.deltaUpdateFailed||!u)return;const d=u.fragments[0];if(!l.details)o.hasProgramDateTime&&u.hasProgramDateTime?(Ae(o,u),c=o.fragments[0].start):d&&(c=d.start,ze(o,c));else {var h;c=this.alignPlaylists(o,l.details,(h=this.levelLastLoaded)==null?void 0:h.details),c===0&&d&&(c=d.start,ze(o,c));}}l.details=o,this.levelLastLoaded=l,a===i&&(!this.startFragRequested&&(this.mainDetails||!o.live)&&this.setStartPosition(this.mainDetails||o,c),this.tick(),o.live&&!this.fragCurrent&&this.media&&this.state===k.IDLE&&(ve(null,o.fragments,this.media.currentTime,0)||(this.warn("Subtitle playlist not aligned with playback"),l.details=void 0)));}_handleFragmentLoadComplete(t){const{frag:e,payload:s}=t,i=e.decryptdata,n=this.hls;if(!this.fragContextChanged(e)&&s&&s.byteLength>0&&i!=null&&i.key&&i.iv&&i.method==="AES-128"){const o=performance.now();this.decrypter.decrypt(new Uint8Array(s),i.key.buffer,i.iv.buffer).catch(a=>{throw n.trigger(x.ERROR,{type:H.MEDIA_ERROR,details:w.FRAG_DECRYPT_ERROR,fatal:false,error:a,reason:a.message,frag:e}),a}).then(a=>{const l=performance.now();n.trigger(x.FRAG_DECRYPTED,{frag:e,payload:a,stats:{tstart:o,tdecrypt:l}});}).catch(a=>{this.warn(`${a.name}: ${a.message}`),this.state=k.IDLE;});}}doTick(){if(!this.media){this.state=k.IDLE;return}if(this.state===k.IDLE){const{currentTrackId:t,levels:e}=this,s=e?.[t];if(!s||!e.length||!s.details)return;const{config:i}=this,n=this.getLoadPosition(),o=nt.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],n,i.maxBufferHole),{end:a,len:l}=o,c=this.getFwdBufferInfo(this.media,W.MAIN),h=s.details,u=this.getMaxBufferLength(c?.len)+h.levelTargetDuration;if(l>u)return;const d=h.fragments,f=d.length,g=h.edge;let m=null;const p=this.fragPrevious;if(ag-y?0:y;m=ve(p,d,Math.max(d[0].start,a),A),!m&&p&&p.start{if(i=i>>>0,i>n-1)throw new DOMException(`Failed to execute '${s}' on 'TimeRanges': The index provided (${i}) is greater than the maximum bound (${n})`);return t[i][s]};this.buffered={get length(){return t.length},end(s){return e("end",s,t.length)},start(s){return e("start",s,t.length)}};}}class ua extends Li{constructor(t){super(t,"[subtitle-track-controller]"),this.media=null,this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=true,this.queuedDefaultTrack=-1,this.asyncPollTrackChange=()=>this.pollTrackChange(0),this.useTextTrackPolling=false,this.subtitlePollingInterval=-1,this._subtitleDisplay=true,this.onTextTracksChanged=()=>{if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;let e=null;const s=ce(this.media.textTracks);for(let n=0;n-1&&this.toggleTrackModes();}registerListeners(){const{hls:t}=this;t.on(x.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(x.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(x.MANIFEST_LOADING,this.onManifestLoading,this),t.on(x.MANIFEST_PARSED,this.onManifestParsed,this),t.on(x.LEVEL_LOADING,this.onLevelLoading,this),t.on(x.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(x.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.on(x.ERROR,this.onError,this);}unregisterListeners(){const{hls:t}=this;t.off(x.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(x.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(x.MANIFEST_LOADING,this.onManifestLoading,this),t.off(x.MANIFEST_PARSED,this.onManifestParsed,this),t.off(x.LEVEL_LOADING,this.onLevelLoading,this),t.off(x.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(x.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.off(x.ERROR,this.onError,this);}onMediaAttached(t,e){this.media=e.media,this.media&&(this.queuedDefaultTrack>-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange));}pollTrackChange(t){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.onTextTracksChanged,t);}onMediaDetaching(){if(!this.media)return;self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId),ce(this.media.textTracks).forEach(e=>{qt(e);}),this.subtitleTrack=-1,this.media=null;}onManifestLoading(){this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=true;}onManifestParsed(t,e){this.tracks=e.subtitleTracks;}onSubtitleTrackLoaded(t,e){const{id:s,groupId:i,details:n}=e,o=this.tracksInGroup[s];if(!o||o.groupId!==i){this.warn(`Subtitle track with id:${s} and group:${i} not found in active group ${o?.groupId}`);return}const a=o.details;o.details=e.details,this.log(`Subtitle track ${s} "${o.name}" lang:${o.lang} group:${i} loaded [${n.startSN}-${n.endSN}]`),s===this.trackId&&this.playlistLoaded(s,e,a);}onLevelLoading(t,e){this.switchLevel(e.level);}onLevelSwitching(t,e){this.switchLevel(e.level);}switchLevel(t){const e=this.hls.levels[t];if(!e)return;const s=e.subtitleGroups||null,i=this.groupIds;let n=this.currentTrack;if(!s||i?.length!==s?.length||s!=null&&s.some(o=>i?.indexOf(o)===-1)){this.groupIds=s,this.trackId=-1,this.currentTrack=null;const o=this.tracks.filter(h=>!s||s.indexOf(h.groupId)!==-1);if(o.length)this.selectDefaultTrack&&!o.some(h=>h.default)&&(this.selectDefaultTrack=false),o.forEach((h,u)=>{h.id=u;});else if(!n&&!this.tracksInGroup.length)return;this.tracksInGroup=o;const a=this.hls.config.subtitlePreference;if(!n&&a){this.selectDefaultTrack=false;const h=vt(a,o);if(h>-1)n=o[h];else {const u=vt(a,this.tracks);n=this.tracks[u];}}let l=this.findTrackId(n);l===-1&&n&&(l=this.findTrackId(null));const c={subtitleTracks:o};this.log(`Updating subtitle tracks, ${o.length} track(s) found in "${s?.join(",")}" group-id`),this.hls.trigger(x.SUBTITLE_TRACKS_UPDATED,c),l!==-1&&this.trackId===-1&&this.setSubtitleTrack(l);}else this.shouldReloadPlaylist(n)&&this.setSubtitleTrack(this.trackId);}findTrackId(t){const e=this.tracksInGroup,s=this.selectDefaultTrack;for(let i=0;i-1){const n=this.tracksInGroup[i];return this.setSubtitleTrack(i),n}else {if(s)return null;{const n=vt(t,e);if(n>-1)return e[n]}}}}return null}loadPlaylist(t){super.loadPlaylist();const e=this.currentTrack;if(this.shouldLoadPlaylist(e)&&e){const s=e.id,i=e.groupId;let n=e.url;if(t)try{n=t.addDirectives(n);}catch(o){this.warn(`Could not construct new URL with HLS Delivery Directives: ${o}`);}this.log(`Loading subtitle playlist for id ${s}`),this.hls.trigger(x.SUBTITLE_TRACK_LOADING,{url:n,id:s,groupId:i,deliveryDirectives:t||null});}}toggleTrackModes(){const{media:t}=this;if(!t)return;const e=ce(t.textTracks),s=this.currentTrack;let i;if(s&&(i=e.filter(n=>Xe(s,n))[0],i||this.warn(`Unable to find subtitle TextTrack with name "${s.name}" and language "${s.lang}"`)),[].slice.call(e).forEach(n=>{n.mode!=="disabled"&&n!==i&&(n.mode="disabled");}),i){const n=this.subtitleDisplay?"showing":"hidden";i.mode!==n&&(i.mode=n);}}setSubtitleTrack(t){const e=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=t;return}if(t<-1||t>=e.length||!$(t)){this.warn(`Invalid subtitle track id: ${t}`);return}this.clearTimer(),this.selectDefaultTrack=false;const s=this.currentTrack,i=e[t]||null;if(this.trackId=t,this.currentTrack=i,this.toggleTrackModes(),!i){this.hls.trigger(x.SUBTITLE_TRACK_SWITCH,{id:t});return}const n=!!i.details&&!i.details.live;if(t===this.trackId&&i===s&&n)return;this.log(`Switching to subtitle-track ${t}`+(i?` "${i.name}" lang:${i.lang} group:${i.groupId}`:""));const{id:o,groupId:a="",name:l,type:c,url:h}=i;this.hls.trigger(x.SUBTITLE_TRACK_SWITCH,{id:o,groupId:a,name:l,type:c,url:h});const u=this.switchParams(i.url,s?.details,i.details);this.loadPlaylist(u);}}class da{constructor(t){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=t;}append(t,e,s){const i=this.queues[e];i.push(t),i.length===1&&!s&&this.executeNext(e);}insertAbort(t,e){this.queues[e].unshift(t),this.executeNext(e);}appendBlocker(t){let e;const s=new Promise(n=>{e=n;}),i={execute:e,onStart:()=>{},onComplete:()=>{},onError:()=>{}};return this.append(i,t),s}executeNext(t){const e=this.queues[t];if(e.length){const s=e[0];try{s.execute();}catch(i){b.warn(`[buffer-operation-queue]: Exception executing "${t}" SourceBuffer operation: ${i}`),s.onError(i);const n=this.buffers[t];n!=null&&n.updating||this.shiftAndExecuteNext(t);}}}shiftAndExecuteNext(t){this.queues[t].shift(),this.executeNext(t);}current(t){return this.queues[t][0]}}const js=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/;class fa{constructor(t){this.details=null,this._objectUrl=null,this.operationQueue=void 0,this.listeners=void 0,this.hls=void 0,this.bufferCodecEventsExpected=0,this._bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.lastMpegAudioChunk=null,this.appendSource=void 0,this.appendErrors={audio:0,video:0,audiovideo:0},this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this.log=void 0,this.warn=void 0,this.error=void 0,this._onEndStreaming=s=>{this.hls&&this.hls.pauseBuffering();},this._onStartStreaming=s=>{this.hls&&this.hls.resumeBuffering();},this._onMediaSourceOpen=()=>{const{media:s,mediaSource:i}=this;this.log("Media source opened"),s&&(s.removeEventListener("emptied",this._onMediaEmptied),this.updateMediaElementDuration(),this.hls.trigger(x.MEDIA_ATTACHED,{media:s,mediaSource:i})),i&&i.removeEventListener("sourceopen",this._onMediaSourceOpen),this.checkPendingTracks();},this._onMediaSourceClose=()=>{this.log("Media source closed");},this._onMediaSourceEnded=()=>{this.log("Media source ended");},this._onMediaEmptied=()=>{const{mediaSrc:s,_objectUrl:i}=this;s!==i&&b.error(`Media element src was set while attaching MediaSource (${i} > ${s})`);},this.hls=t;const e="[buffer-controller]";this.appendSource=wr(ye(t.config.preferManagedMediaSource)),this.log=b.log.bind(b,e),this.warn=b.warn.bind(b,e),this.error=b.error.bind(b,e),this._initSourceBuffer(),this.registerListeners();}hasSourceTypes(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0}destroy(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=null,this.hls=null;}registerListeners(){const{hls:t}=this;t.on(x.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(x.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(x.MANIFEST_LOADING,this.onManifestLoading,this),t.on(x.MANIFEST_PARSED,this.onManifestParsed,this),t.on(x.BUFFER_RESET,this.onBufferReset,this),t.on(x.BUFFER_APPENDING,this.onBufferAppending,this),t.on(x.BUFFER_CODECS,this.onBufferCodecs,this),t.on(x.BUFFER_EOS,this.onBufferEos,this),t.on(x.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(x.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(x.FRAG_PARSED,this.onFragParsed,this),t.on(x.FRAG_CHANGED,this.onFragChanged,this);}unregisterListeners(){const{hls:t}=this;t.off(x.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(x.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(x.MANIFEST_LOADING,this.onManifestLoading,this),t.off(x.MANIFEST_PARSED,this.onManifestParsed,this),t.off(x.BUFFER_RESET,this.onBufferReset,this),t.off(x.BUFFER_APPENDING,this.onBufferAppending,this),t.off(x.BUFFER_CODECS,this.onBufferCodecs,this),t.off(x.BUFFER_EOS,this.onBufferEos,this),t.off(x.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(x.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(x.FRAG_PARSED,this.onFragParsed,this),t.off(x.FRAG_CHANGED,this.onFragChanged,this);}_initSourceBuffer(){this.sourceBuffer={},this.operationQueue=new da(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]},this.appendErrors={audio:0,video:0,audiovideo:0},this.lastMpegAudioChunk=null;}onManifestLoading(){this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=0,this.details=null;}onManifestParsed(t,e){let s=2;(e.audio&&!e.video||!e.altAudio)&&(s=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=s,this.log(`${this.bufferCodecEventsExpected} bufferCodec event(s) expected`);}onMediaAttaching(t,e){const s=this.media=e.media,i=ye(this.appendSource);if(s&&i){var n;const o=this.mediaSource=new i;this.log(`created media source: ${(n=o.constructor)==null?void 0:n.name}`),o.addEventListener("sourceopen",this._onMediaSourceOpen),o.addEventListener("sourceended",this._onMediaSourceEnded),o.addEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(o.addEventListener("startstreaming",this._onStartStreaming),o.addEventListener("endstreaming",this._onEndStreaming));const a=this._objectUrl=self.URL.createObjectURL(o);if(this.appendSource)try{s.removeAttribute("src");const l=self.ManagedMediaSource;s.disableRemotePlayback=s.disableRemotePlayback||l&&o instanceof l,Xs(s),ga(s,a),s.load();}catch{s.src=a;}else s.src=a;s.addEventListener("emptied",this._onMediaEmptied);}}onMediaDetaching(){const{media:t,mediaSource:e,_objectUrl:s}=this;if(e){if(this.log("media source detaching"),e.readyState==="open")try{e.endOfStream();}catch(i){this.warn(`onMediaDetaching: ${i.message} while calling endOfStream`);}this.onBufferReset(),e.removeEventListener("sourceopen",this._onMediaSourceOpen),e.removeEventListener("sourceended",this._onMediaSourceEnded),e.removeEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(e.removeEventListener("startstreaming",this._onStartStreaming),e.removeEventListener("endstreaming",this._onEndStreaming)),t&&(t.removeEventListener("emptied",this._onMediaEmptied),s&&self.URL.revokeObjectURL(s),this.mediaSrc===s?(t.removeAttribute("src"),this.appendSource&&Xs(t),t.load()):this.warn("media|source.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={};}this.hls.trigger(x.MEDIA_DETACHED,void 0);}onBufferReset(){this.getSourceBufferTypes().forEach(t=>{this.resetBuffer(t);}),this._initSourceBuffer();}resetBuffer(t){const e=this.sourceBuffer[t];try{if(e){var s;this.removeBufferListeners(t),this.sourceBuffer[t]=void 0,(s=this.mediaSource)!=null&&s.sourceBuffers.length&&this.mediaSource.removeSourceBuffer(e);}}catch(i){this.warn(`onBufferReset ${t}`,i);}}onBufferCodecs(t,e){const s=this.getSourceBufferTypes().length,i=Object.keys(e);if(i.forEach(o=>{if(s){const l=this.tracks[o];if(l&&typeof l.buffer.changeType=="function"){var a;const{id:c,codec:h,levelCodec:u,container:d,metadata:f}=e[o],g=Ls(l.codec,l.levelCodec),m=g?.replace(js,"$1");let p=Ls(h,u);const y=(a=p)==null?void 0:a.replace(js,"$1");if(p&&m!==y){o.slice(0,5)==="audio"&&(p=Ye(p,this.appendSource));const A=`${d};codecs=${p}`;this.appendChangeType(o,A),this.log(`switching codec ${g} to ${p}`),this.tracks[o]={buffer:l.buffer,codec:h,container:d,levelCodec:u,metadata:f,id:c};}}}else this.pendingTracks[o]=e[o];}),s)return;const n=Math.max(this.bufferCodecEventsExpected-1,0);this.bufferCodecEventsExpected!==n&&(this.log(`${n} bufferCodec event(s) expected ${i.join(",")}`),this.bufferCodecEventsExpected=n),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks();}appendChangeType(t,e){const{operationQueue:s}=this,i={execute:()=>{const n=this.sourceBuffer[t];n&&(this.log(`changing ${t} sourceBuffer type to ${e}`),n.changeType(e)),s.shiftAndExecuteNext(t);},onStart:()=>{},onComplete:()=>{},onError:n=>{this.warn(`Failed to change ${t} SourceBuffer type`,n);}};s.append(i,t,!!this.pendingTracks[t]);}onBufferAppending(t,e){const{hls:s,operationQueue:i,tracks:n}=this,{data:o,type:a,frag:l,part:c,chunkMeta:h}=e,u=h.buffering[a],d=self.performance.now();u.start=d;const f=l.stats.buffering,g=c?c.stats.buffering:null;f.start===0&&(f.start=d),g&&g.start===0&&(g.start=d);const m=n.audio;let p=false;a==="audio"&&m?.container==="audio/mpeg"&&(p=!this.lastMpegAudioChunk||h.id===1||this.lastMpegAudioChunk.sn!==h.sn,this.lastMpegAudioChunk=h);const y=l.start,A={execute:()=>{if(u.executeStart=self.performance.now(),p){const T=this.sourceBuffer[a];if(T){const R=y-T.timestampOffset;Math.abs(R)>=.1&&(this.log(`Updating audio SourceBuffer timestampOffset to ${y} (delta: ${R}) sn: ${l.sn})`),T.timestampOffset=y);}}this.appendExecutor(o,a);},onStart:()=>{},onComplete:()=>{const T=self.performance.now();u.executeEnd=u.end=T,f.first===0&&(f.first=T),g&&g.first===0&&(g.first=T);const{sourceBuffer:R}=this,E={};for(const I in R)E[I]=nt.getBuffered(R[I]);this.appendErrors[a]=0,a==="audio"||a==="video"?this.appendErrors.audiovideo=0:(this.appendErrors.audio=0,this.appendErrors.video=0),this.hls.trigger(x.BUFFER_APPENDED,{type:a,frag:l,part:c,chunkMeta:h,parent:l.type,timeRanges:E});},onError:T=>{const R={type:H.MEDIA_ERROR,parent:l.type,details:w.BUFFER_APPEND_ERROR,sourceBufferName:a,frag:l,part:c,chunkMeta:h,error:T,err:T,fatal:false};if(T.code===DOMException.QUOTA_EXCEEDED_ERR)R.details=w.BUFFER_FULL_ERROR;else {const E=++this.appendErrors[a];R.details=w.BUFFER_APPEND_ERROR,this.warn(`Failed ${E}/${s.config.appendErrorMaxRetry} times to append segment in "${a}" sourceBuffer`),E>=s.config.appendErrorMaxRetry&&(R.fatal=true);}s.trigger(x.ERROR,R);}};i.append(A,a,!!this.pendingTracks[a]);}onBufferFlushing(t,e){const{operationQueue:s}=this,i=n=>({execute:this.removeExecutor.bind(this,n,e.startOffset,e.endOffset),onStart:()=>{},onComplete:()=>{this.hls.trigger(x.BUFFER_FLUSHED,{type:n});},onError:o=>{this.warn(`Failed to remove from ${n} SourceBuffer`,o);}});e.type?s.append(i(e.type),e.type):this.getSourceBufferTypes().forEach(n=>{s.append(i(n),n);});}onFragParsed(t,e){const{frag:s,part:i}=e,n=[],o=i?i.elementaryStreams:s.elementaryStreams;o[lt.AUDIOVIDEO]?n.push("audiovideo"):(o[lt.AUDIO]&&n.push("audio"),o[lt.VIDEO]&&n.push("video"));const a=()=>{const l=self.performance.now();s.stats.buffering.end=l,i&&(i.stats.buffering.end=l);const c=i?i.stats:s.stats;this.hls.trigger(x.FRAG_BUFFERED,{frag:s,part:i,stats:c,id:s.type});};n.length===0&&this.warn(`Fragments must have at least one ElementaryStreamType set. type: ${s.type} level: ${s.level} sn: ${s.sn}`),this.blockBuffers(a,n);}onFragChanged(t,e){this.trimBuffers();}onBufferEos(t,e){this.getSourceBufferTypes().reduce((i,n)=>{const o=this.sourceBuffer[n];return o&&(!e.type||e.type===n)&&(o.ending=true,o.ended||(o.ended=true,this.log(`${n} sourceBuffer now EOS`))),i&&!!(!o||o.ended)},true)&&(this.log("Queueing mediaSource.endOfStream()"),this.blockBuffers(()=>{this.getSourceBufferTypes().forEach(n=>{const o=this.sourceBuffer[n];o&&(o.ending=false);});const{mediaSource:i}=this;if(!i||i.readyState!=="open"){i&&this.log(`Could not call mediaSource.endOfStream(). mediaSource.readyState: ${i.readyState}`);return}this.log("Calling mediaSource.endOfStream()"),i.endOfStream();}));}onLevelUpdated(t,{details:e}){e.fragments.length&&(this.details=e,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration());}trimBuffers(){const{hls:t,details:e,media:s}=this;if(!s||e===null||!this.getSourceBufferTypes().length)return;const n=t.config,o=s.currentTime,a=e.levelTargetDuration,l=e.live&&n.liveBackBufferLength!==null?n.liveBackBufferLength:n.backBufferLength;if($(l)&&l>0){const c=Math.max(l,a),h=Math.floor(o/a)*a-c;this.flushBackBuffer(o,a,h);}if($(n.frontBufferFlushThreshold)&&n.frontBufferFlushThreshold>0){const c=Math.max(n.maxBufferLength,n.frontBufferFlushThreshold),h=Math.max(c,a),u=Math.floor(o/a)*a+h;this.flushFrontBuffer(o,a,u);}}flushBackBuffer(t,e,s){const{details:i,sourceBuffer:n}=this;this.getSourceBufferTypes().forEach(a=>{const l=n[a];if(l){const c=nt.getBuffered(l);if(c.length>0&&s>c.start(0)){if(this.hls.trigger(x.BACK_BUFFER_REACHED,{bufferEnd:s}),i!=null&&i.live)this.hls.trigger(x.LIVE_BACK_BUFFER_REACHED,{bufferEnd:s});else if(l.ended&&c.end(c.length-1)-t{const a=i[o];if(a){const l=nt.getBuffered(a),c=l.length;if(c<2)return;const h=l.start(c-1),u=l.end(c-1);if(s>h||t>=h&&t<=u)return;if(a.ended&&t-u<2*e){this.log(`Cannot flush ${o} front buffer while SourceBuffer is in ended state`);return}this.hls.trigger(x.BUFFER_FLUSHING,{startOffset:h,endOffset:1/0,type:o});}});}updateMediaElementDuration(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;const{details:t,hls:e,media:s,mediaSource:i}=this,n=t.fragments[0].start+t.totalduration,o=s.duration,a=$(i.duration)?i.duration:0;t.live&&e.config.liveDurationInfinity?(i.duration=1/0,this.updateSeekableRange(t)):(n>a&&n>o||!$(o))&&(this.log(`Updating Media Source duration to ${n.toFixed(3)}`),i.duration=n);}updateSeekableRange(t){const e=this.mediaSource,s=t.fragments;if(s.length&&t.live&&e!=null&&e.setLiveSeekableRange){const n=Math.max(0,s[0].start),o=Math.max(n,n+t.totalduration);this.log(`Media Source duration is set to ${e.duration}. Setting seekable range to ${n}-${o}.`),e.setLiveSeekableRange(n,o);}}checkPendingTracks(){const{bufferCodecEventsExpected:t,operationQueue:e,pendingTracks:s}=this,i=Object.keys(s).length;if(i&&(!t||i===2||"audiovideo"in s)){this.createSourceBuffers(s),this.pendingTracks={};const n=this.getSourceBufferTypes();if(n.length)this.hls.trigger(x.BUFFER_CREATED,{tracks:this.tracks}),n.forEach(o=>{e.executeNext(o);});else {const o=new Error("could not create source buffer for media codec(s)");this.hls.trigger(x.ERROR,{type:H.MEDIA_ERROR,details:w.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:true,error:o,reason:o.message});}}}createSourceBuffers(t){const{sourceBuffer:e,mediaSource:s}=this;if(!s)throw Error("createSourceBuffers called when mediaSource was null");for(const n in t)if(!e[n]){var i;const o=t[n];if(!o)throw Error(`source buffer exists for track ${n}, however track does not`);let a=((i=o.levelCodec)==null?void 0:i.indexOf(","))===-1?o.levelCodec:o.codec;a&&n.slice(0,5)==="audio"&&(a=Ye(a,this.appendSource));const l=`${o.container};codecs=${a}`;this.log(`creating sourceBuffer(${l})`);try{const c=e[n]=s.addSourceBuffer(l),h=n;this.addBufferListener(h,"updatestart",this._onSBUpdateStart),this.addBufferListener(h,"updateend",this._onSBUpdateEnd),this.addBufferListener(h,"error",this._onSBUpdateError),this.appendSource&&this.addBufferListener(h,"bufferedchange",(u,d)=>{const f=d.removedRanges;f!=null&&f.length&&this.hls.trigger(x.BUFFER_FLUSHED,{type:n});}),this.tracks[n]={buffer:c,codec:a,container:o.container,levelCodec:o.levelCodec,metadata:o.metadata,id:o.id};}catch(c){this.error(`error while trying to add sourceBuffer: ${c.message}`),this.hls.trigger(x.ERROR,{type:H.MEDIA_ERROR,details:w.BUFFER_ADD_CODEC_ERROR,fatal:false,error:c,sourceBufferName:n,mimeType:l});}}}get mediaSrc(){var t;const e=((t=this.media)==null?void 0:t.firstChild)||this.media;return e?.src}_onSBUpdateStart(t){const{operationQueue:e}=this;e.current(t).onStart();}_onSBUpdateEnd(t){var e;if(((e=this.mediaSource)==null?void 0:e.readyState)==="closed"){this.resetBuffer(t);return}const{operationQueue:s}=this;s.current(t).onComplete(),s.shiftAndExecuteNext(t);}_onSBUpdateError(t,e){var s;const i=new Error(`${t} SourceBuffer error. MediaSource readyState: ${(s=this.mediaSource)==null?void 0:s.readyState}`);this.error(`${i}`,e),this.hls.trigger(x.ERROR,{type:H.MEDIA_ERROR,details:w.BUFFER_APPENDING_ERROR,sourceBufferName:t,error:i,fatal:false});const n=this.operationQueue.current(t);n&&n.onError(i);}removeExecutor(t,e,s){const{media:i,mediaSource:n,operationQueue:o,sourceBuffer:a}=this,l=a[t];if(!i||!n||!l){this.warn(`Attempting to remove from the ${t} SourceBuffer, but it does not exist`),o.shiftAndExecuteNext(t);return}const c=$(i.duration)?i.duration:1/0,h=$(n.duration)?n.duration:1/0,u=Math.max(0,e),d=Math.min(s,c,h);d>u&&(!l.ending||l.ended)?(l.ended=false,this.log(`Removing [${u},${d}] from the ${t} SourceBuffer`),l.remove(u,d)):o.shiftAndExecuteNext(t);}appendExecutor(t,e){const s=this.sourceBuffer[e];if(!s){if(!this.pendingTracks[e])throw new Error(`Attempting to append to the ${e} SourceBuffer, but it does not exist`);return}s.ended=false,s.appendBuffer(t);}blockBuffers(t,e=this.getSourceBufferTypes()){if(!e.length){this.log("Blocking operation requested, but no SourceBuffers exist"),Promise.resolve().then(t);return}const{operationQueue:s}=this,i=e.map(n=>s.appendBlocker(n));Promise.all(i).then(()=>{t(),e.forEach(n=>{const o=this.sourceBuffer[n];o!=null&&o.updating||s.shiftAndExecuteNext(n);});});}getSourceBufferTypes(){return Object.keys(this.sourceBuffer)}addBufferListener(t,e,s){const i=this.sourceBuffer[t];if(!i)return;const n=s.bind(this,t);this.listeners[t].push({event:e,listener:n}),i.addEventListener(e,n);}removeBufferListeners(t){const e=this.sourceBuffer[t];e&&this.listeners[t].forEach(s=>{e.removeEventListener(s.event,s.listener);});}}function Xs(r){const t=r.querySelectorAll("source");[].slice.call(t).forEach(e=>{r.removeChild(e);});}function ga(r,t){const e=self.document.createElement("source");e.type="video/mp4",e.src=t,r.appendChild(e);}const ma={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},qi=r=>String.fromCharCode(ma[r]||r),pt=15,Lt=100,pa={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},xa={17:2,18:4,21:6,22:8,23:10,19:13,20:15},ya={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},Ta={25:2,26:4,29:6,30:8,31:10,27:13,28:15},Sa=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];class Ea{constructor(){this.time=null,this.verboseLevel=0;}log(t,e){if(this.verboseLevel>=t){const s=typeof e=="function"?e():e;b.log(`${this.time} [${t}] ${s}`);}}}const kt=function(t){const e=[];for(let s=0;sLt&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=Lt);}moveCursor(t){const e=this.pos+t;if(t>1)for(let s=this.pos+1;s=144&&this.backSpace();const e=qi(t);if(this.pos>=Lt){this.logger.log(0,()=>"Cannot insert "+t.toString(16)+" ("+e+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(e,this.currPenState),this.moveCursor(1);}clearFromPos(t){let e;for(e=t;e"pacData = "+JSON.stringify(t));let e=t.row-1;if(this.nrRollUpRows&&e"bkgData = "+JSON.stringify(t)),this.backSpace(),this.setPen(t),this.insertChar(32);}setRollUpRows(t){this.nrRollUpRows=t;}rollUp(){if(this.nrRollUpRows===null){this.logger.log(3,"roll_up but nrRollUpRows not set yet");return}this.logger.log(1,()=>this.getDisplayText());const t=this.currRow+1-this.nrRollUpRows,e=this.rows.splice(t,1)[0];e.clear(),this.rows.splice(this.currRow,0,e),this.logger.log(2,"Rolling up");}getDisplayText(t){t=t||false;const e=[];let s="",i=-1;for(let n=0;n0&&(t?s="["+e.join(" | ")+"]":s=e.join(` +`)),s}getTextAndFormat(){return this.rows}}class Qs{constructor(t,e,s){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=t,this.outputFilter=e,this.mode=null,this.verbose=0,this.displayedMemory=new Me(s),this.nonDisplayedMemory=new Me(s),this.lastOutputScreen=new Me(s),this.currRollUpRow=this.displayedMemory.rows[pt-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=s;}reset(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[pt-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null;}getHandler(){return this.outputFilter}setHandler(t){this.outputFilter=t;}setPAC(t){this.writeScreen.setPAC(t);}setBkgData(t){this.writeScreen.setBkgData(t);}setMode(t){t!==this.mode&&(this.mode=t,this.logger.log(2,()=>"MODE="+t),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=t);}insertChars(t){for(let s=0;se+": "+this.writeScreen.getDisplayText(true)),(this.mode==="MODE_PAINT-ON"||this.mode==="MODE_ROLL-UP")&&(this.logger.log(1,()=>"DISPLAYED: "+this.displayedMemory.getDisplayText(true)),this.outputDataUpdate());}ccRCL(){this.logger.log(2,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON");}ccBS(){this.logger.log(2,"BS - BackSpace"),this.mode!=="MODE_TEXT"&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate());}ccAOF(){}ccAON(){}ccDER(){this.logger.log(2,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate();}ccRU(t){this.logger.log(2,"RU("+t+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(t);}ccFON(){this.logger.log(2,"FON - Flash On"),this.writeScreen.setPen({flash:true});}ccRDC(){this.logger.log(2,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON");}ccTR(){this.logger.log(2,"TR"),this.setMode("MODE_TEXT");}ccRTD(){this.logger.log(2,"RTD"),this.setMode("MODE_TEXT");}ccEDM(){this.logger.log(2,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(true);}ccCR(){this.logger.log(2,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(true);}ccENM(){this.logger.log(2,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset();}ccEOC(){if(this.logger.log(2,"EOC - End Of Caption"),this.mode==="MODE_POP-ON"){const t=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=t,this.writeScreen=this.nonDisplayedMemory,this.logger.log(1,()=>"DISP: "+this.displayedMemory.getDisplayText());}this.outputDataUpdate(true);}ccTO(t){this.logger.log(2,"TO("+t+") - Tab Offset"),this.writeScreen.moveCursor(t);}ccMIDROW(t){const e={flash:false};if(e.underline=t%2===1,e.italics=t>=46,e.italics)e.foreground="white";else {const s=Math.floor(t/2)-16,i=["white","green","blue","cyan","red","yellow","magenta"];e.foreground=i[s];}this.logger.log(2,"MIDROW: "+JSON.stringify(e)),this.writeScreen.setPen(e);}outputDataUpdate(t=false){const e=this.logger.time;e!==null&&this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=e:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,e,this.lastOutputScreen),t&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:e),this.lastOutputScreen.copy(this.displayedMemory));}cueSplitAtTime(t){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,t,this.displayedMemory),this.cueStartTime=t));}}class Zs{constructor(t,e,s){this.channels=void 0,this.currentChannel=0,this.cmdHistory=Ra(),this.logger=void 0;const i=this.logger=new Ea;this.channels=[null,new Qs(t,e,i),new Qs(t+1,s,i)];}getHandler(t){return this.channels[t].getHandler()}setHandler(t,e){this.channels[t].setHandler(e);}addData(t,e){this.logger.time=t;for(let s=0;s"["+kt([e[s],e[s+1]])+"] -> ("+kt([i,n])+")");const l=this.cmdHistory;if(i>=16&&i<=31){if(ba(i,n,l)){ie(null,null,l),this.logger.log(3,()=>"Repeated command ("+kt([i,n])+") is dropped");continue}ie(i,n,this.cmdHistory),o=this.parseCmd(i,n),o||(o=this.parseMidrow(i,n)),o||(o=this.parsePAC(i,n)),o||(o=this.parseBackgroundAttributes(i,n));}else ie(null,null,l);if(!o&&(a=this.parseChars(i,n),a)){const h=this.currentChannel;h&&h>0?this.channels[h].insertChars(a):this.logger.log(2,"No channel found yet. TEXT-MODE?");}!o&&!a&&this.logger.log(2,()=>"Couldn't parse cleaned data "+kt([i,n])+" orig: "+kt([e[s],e[s+1]]));}}parseCmd(t,e){const s=(t===20||t===28||t===21||t===29)&&e>=32&&e<=47,i=(t===23||t===31)&&e>=33&&e<=35;if(!(s||i))return false;const n=t===20||t===21||t===23?1:2,o=this.channels[n];return t===20||t===21||t===28||t===29?e===32?o.ccRCL():e===33?o.ccBS():e===34?o.ccAOF():e===35?o.ccAON():e===36?o.ccDER():e===37?o.ccRU(2):e===38?o.ccRU(3):e===39?o.ccRU(4):e===40?o.ccFON():e===41?o.ccRDC():e===42?o.ccTR():e===43?o.ccRTD():e===44?o.ccEDM():e===45?o.ccCR():e===46?o.ccENM():e===47&&o.ccEOC():o.ccTO(e-32),this.currentChannel=n,true}parseMidrow(t,e){let s=0;if((t===17||t===25)&&e>=32&&e<=47){if(t===17?s=1:s=2,s!==this.currentChannel)return this.logger.log(0,"Mismatch channel in midrow parsing"),false;const i=this.channels[s];return i?(i.ccMIDROW(e),this.logger.log(3,()=>"MIDROW ("+kt([t,e])+")"),true):false}return false}parsePAC(t,e){let s;const i=(t>=17&&t<=23||t>=25&&t<=31)&&e>=64&&e<=127,n=(t===16||t===24)&&e>=64&&e<=95;if(!(i||n))return false;const o=t<=23?1:2;e>=64&&e<=95?s=o===1?pa[t]:ya[t]:s=o===1?xa[t]:Ta[t];const a=this.channels[o];return a?(a.setPAC(this.interpretPAC(s,e)),this.currentChannel=o,true):false}interpretPAC(t,e){let s;const i={color:null,italics:false,indent:null,underline:false,row:t};return e>95?s=e-96:s=e-64,i.underline=(s&1)===1,s<=13?i.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(s/2)]:s<=15?(i.italics=true,i.color="white"):i.indent=Math.floor((s-16)/2)*4,i}parseChars(t,e){let s,i=null,n=null;if(t>=25?(s=2,n=t-8):(s=1,n=t),n>=17&&n<=19){let o;n===17?o=e+80:n===18?o=e+112:o=e+144,this.logger.log(2,()=>"Special char '"+qi(o)+"' in channel "+s),i=[o];}else t>=32&&t<=127&&(i=e===0?[t]:[t,e]);return i&&this.logger.log(3,()=>"Char codes = "+kt(i).join(",")),i}parseBackgroundAttributes(t,e){const s=(t===16||t===24)&&e>=32&&e<=47,i=(t===23||t===31)&&e>=45&&e<=47;if(!(s||i))return false;let n;const o={};t===16||t===24?(n=Math.floor((e-32)/2),o.background=Sa[n],e%2===1&&(o.background=o.background+"_semi")):e===45?o.background="transparent":(o.foreground="black",e===47&&(o.underline=true));const a=t<=23?1:2;return this.channels[a].setBkgData(o),true}reset(){for(let t=0;tt)&&(this.startTime=t),this.endTime=e,this.screen=s,this.timelineController.createCaptionsTrack(this.trackName);}reset(){this.cueRanges=[],this.startTime=null;}}var ds=(function(){if(Kt!=null&&Kt.VTTCue)return self.VTTCue;const r=["","lr","rl"],t=["start","middle","end","left","right"];function e(a,l){if(typeof l!="string"||!Array.isArray(a))return false;const c=l.toLowerCase();return ~a.indexOf(c)?c:false}function s(a){return e(r,a)}function i(a){return e(t,a)}function n(a,...l){let c=1;for(;c100)throw new Error("Position must be between 0 and 100.");I=L,this.hasBeenReset=true;}})),Object.defineProperty(h,"positionAlign",n({},u,{get:function(){return v},set:function(L){const _=i(L);if(!_)throw new SyntaxError("An invalid or illegal string was specified.");v=_,this.hasBeenReset=true;}})),Object.defineProperty(h,"size",n({},u,{get:function(){return C},set:function(L){if(L<0||L>100)throw new Error("Size must be between 0 and 100.");C=L,this.hasBeenReset=true;}})),Object.defineProperty(h,"align",n({},u,{get:function(){return P},set:function(L){const _=i(L);if(!_)throw new SyntaxError("An invalid or illegal string was specified.");P=_,this.hasBeenReset=true;}})),h.displayState=void 0;}return o.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},o})();class La{decode(t,e){if(!t)return "";if(typeof t!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}function Xi(r){function t(s,i,n,o){return (s|0)*3600+(i|0)*60+(n|0)+parseFloat(o||0)}const e=r.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return e?parseFloat(e[2])>59?t(e[2],e[3],0,e[4]):t(e[1],e[2],e[3],e[4]):null}class Ia{constructor(){this.values=Object.create(null);}set(t,e){!this.get(t)&&e!==""&&(this.values[t]=e);}get(t,e,s){return s?this.has(t)?this.values[t]:e[s]:this.has(t)?this.values[t]:e}has(t){return t in this.values}alt(t,e,s){for(let i=0;i=0&&s<=100)return this.set(t,s),true}return false}}function Qi(r,t,e,s){const i=s?r.split(s):[r];for(const n in i){if(typeof i[n]!="string")continue;const o=i[n].split(e);if(o.length!==2)continue;const a=o[0],l=o[1];t(a,l);}}const Qe=new ds(0,0,""),re=Qe.align==="middle"?"middle":"center";function wa(r,t,e){const s=r;function i(){const a=Xi(r);if(a===null)throw new Error("Malformed timestamp: "+s);return r=r.replace(/^[^\sa-zA-Z-]+/,""),a}function n(a,l){const c=new Ia;Qi(a,function(d,f){let g;switch(d){case "region":for(let m=e.length-1;m>=0;m--)if(e[m].id===f){c.set(d,e[m].region);break}break;case "vertical":c.alt(d,f,["rl","lr"]);break;case "line":g=f.split(","),c.integer(d,g[0]),c.percent(d,g[0])&&c.set("snapToLines",false),c.alt(d,g[0],["auto"]),g.length===2&&c.alt("lineAlign",g[1],["start",re,"end"]);break;case "position":g=f.split(","),c.percent(d,g[0]),g.length===2&&c.alt("positionAlign",g[1],["start",re,"end","line-left","line-right","auto"]);break;case "size":c.percent(d,f);break;case "align":c.alt(d,f,["start",re,"end","left","right"]);break}},/:/,/\s/),l.region=c.get("region",null),l.vertical=c.get("vertical","");let h=c.get("line","auto");h==="auto"&&Qe.line===-1&&(h=-1),l.line=h,l.lineAlign=c.get("lineAlign","start"),l.snapToLines=c.get("snapToLines",true),l.size=c.get("size",100),l.align=c.get("align",re);let u=c.get("position","auto");u==="auto"&&Qe.position===50&&(u=l.align==="start"||l.align==="left"?0:l.align==="end"||l.align==="right"?100:50),l.position=u;}function o(){r=r.replace(/^\s+/,"");}if(o(),t.startTime=i(),o(),r.slice(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+s);r=r.slice(3),o(),t.endTime=i(),o(),n(r,t);}function Zi(r){return r.replace(//gi,` +`)}class Da{constructor(){this.state="INITIAL",this.buffer="",this.decoder=new La,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0;}parse(t){const e=this;t&&(e.buffer+=e.decoder.decode(t,{stream:true}));function s(){let n=e.buffer,o=0;for(n=Zi(n);o")===-1){e.cue.id=n;continue}case "CUE":if(!e.cue){e.state="BADCUE";continue}try{wa(n,e.cue,e.regionList);}catch{e.cue=null,e.state="BADCUE";continue}e.state="CUETEXT";continue;case "CUETEXT":{const a=n.indexOf("-->")!==-1;if(!n||a&&(o=!0)){e.oncue&&e.cue&&e.oncue(e.cue),e.cue=null,e.state="ID";continue}if(e.cue===null)continue;e.cue.text&&(e.cue.text+=` +`),e.cue.text+=n;}continue;case "BADCUE":n||(e.state="ID");}}}catch{e.state==="CUETEXT"&&e.cue&&e.oncue&&e.oncue(e.cue),e.cue=null,e.state=e.state==="INITIAL"?"BADWEBVTT":"BADCUE";}return this}flush(){const t=this;try{if((t.cue||t.state==="HEADER")&&(t.buffer+=` + +`,t.parse()),t.state==="INITIAL"||t.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(e){t.onparsingerror&&t.onparsingerror(e);}return t.onflush&&t.onflush(),this}}const Ca=/\r\n|\n\r|\n|\r/g,Ne=function(t,e,s=0){return t.slice(s,s+e.length)===e},_a=function(t){let e=parseInt(t.slice(-3));const s=parseInt(t.slice(-6,-4)),i=parseInt(t.slice(-9,-7)),n=t.length>9?parseInt(t.substring(0,t.indexOf(":"))):0;if(!$(e)||!$(s)||!$(i)||!$(n))throw Error(`Malformed X-TIMESTAMP-MAP: Local:${t}`);return e+=1e3*s,e+=60*1e3*i,e+=3600*1e3*n,e},Ue=function(t){let e=5381,s=t.length;for(;s;)e=e*33^t.charCodeAt(--s);return (e>>>0).toString()};function fs(r,t,e){return Ue(r.toString())+Ue(t.toString())+Ue(e)}const ka=function(t,e,s){let i=t[e],n=t[i.prevCC];if(!n||!n.new&&i.new){t.ccOffset=t.presentationOffset=i.start,i.new=false;return}for(;(o=n)!=null&&o.new;){var o;t.ccOffset+=i.start-n.start,i.new=false,i=n,n=t[i.prevCC];}t.presentationOffset=s;};function Pa(r,t,e,s,i,n,o){const a=new Da,l=At(new Uint8Array(r)).trim().replace(Ca,` +`).split(` +`),c=[],h=t?jo(t.baseTime,t.timescale):0;let u="00:00.000",d=0,f=0,g,m=true;a.oncue=function(p){const y=e[s];let A=e.ccOffset;const T=(d-h)/9e4;if(y!=null&&y.new&&(f!==void 0?A=e.ccOffset=y.start:ka(e,s,T)),T){if(!t){g=new Error("Missing initPTS for VTT MPEGTS");return}A=T-e.presentationOffset;}const R=p.endTime-p.startTime,E=ft((p.startTime+A-f)*9e4,i*9e4)/9e4;p.startTime=Math.max(E,0),p.endTime=Math.max(E+R,0);const I=p.text.trim();p.text=decodeURIComponent(encodeURIComponent(I)),p.id||(p.id=fs(p.startTime,p.endTime,I)),p.endTime>0&&c.push(p);},a.onparsingerror=function(p){g=p;},a.onflush=function(){if(g){o(g);return}n(c);},l.forEach(p=>{if(m)if(Ne(p,"X-TIMESTAMP-MAP=")){m=false,p.slice(16).split(",").forEach(y=>{Ne(y,"LOCAL:")?u=y.slice(6):Ne(y,"MPEGTS:")&&(d=parseInt(y.slice(7)));});try{f=_a(u)/1e3;}catch(y){g=y;}return}else p===""&&(m=false);a.parse(p+` +`);}),a.flush();}const Be="stpp.ttml.im1t",Ji=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,tn=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,Fa={left:"start",center:"center",right:"end",start:"start",end:"end"};function Js(r,t,e,s){const i=K(new Uint8Array(r),["mdat"]);if(i.length===0){s(new Error("Could not parse IMSC1 mdat"));return}const n=i.map(a=>At(a)),o=qo(t.baseTime,1,t.timescale);try{n.forEach(a=>e(Oa(a,o)));}catch(a){s(a);}}function Oa(r,t){const i=new DOMParser().parseFromString(r,"text/xml").getElementsByTagName("tt")[0];if(!i)throw new Error("Invalid ttml");const n={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},o=Object.keys(n).reduce((u,d)=>(u[d]=i.getAttribute(`ttp:${d}`)||n[d],u),{}),a=i.getAttribute("xml:space")!=="preserve",l=ti($e(i,"styling","style")),c=ti($e(i,"layout","region")),h=$e(i,"body","[begin]");return [].map.call(h,u=>{const d=en(u,a);if(!d||!u.hasAttribute("begin"))return null;const f=Ke(u.getAttribute("begin"),o),g=Ke(u.getAttribute("dur"),o);let m=Ke(u.getAttribute("end"),o);if(f===null)throw ei(u);if(m===null){if(g===null)throw ei(u);m=f+g;}const p=new ds(f-t,m-t,d);p.id=fs(p.startTime,p.endTime,p.text);const y=c[u.getAttribute("region")],A=l[u.getAttribute("style")],T=Ma(y,A,l),{textAlign:R}=T;if(R){const E=Fa[R];E&&(p.lineAlign=E),p.align=R;}return ct(p,T),p}).filter(u=>u!==null)}function $e(r,t,e){const s=r.getElementsByTagName(t)[0];return s?[].slice.call(s.querySelectorAll(e)):[]}function ti(r){return r.reduce((t,e)=>{const s=e.getAttribute("xml:id");return s&&(t[s]=e),t},{})}function en(r,t){return [].slice.call(r.childNodes).reduce((e,s,i)=>{var n;return s.nodeName==="br"&&i?e+` +`:(n=s.childNodes)!=null&&n.length?en(s,t):t?e+s.textContent.trim().replace(/\s+/g," "):e+s.textContent},"")}function Ma(r,t,e){const s="http://www.w3.org/ns/ttml#styling";let i=null;const n=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],o=r!=null&&r.hasAttribute("style")?r.getAttribute("style"):null;return o&&e.hasOwnProperty(o)&&(i=e[o]),n.reduce((a,l)=>{const c=Ge(t,s,l)||Ge(r,s,l)||Ge(i,s,l);return c&&(a[l]=c),a},{})}function Ge(r,t,e){return r&&r.hasAttributeNS(t,e)?r.getAttributeNS(t,e):null}function ei(r){return new Error(`Could not parse ttml timestamp ${r}`)}function Ke(r,t){if(!r)return null;let e=Xi(r);return e===null&&(Ji.test(r)?e=Na(r,t):tn.test(r)&&(e=Ua(r,t))),e}function Na(r,t){const e=Ji.exec(r),s=(e[4]|0)+(e[5]|0)/t.subFrameRate;return (e[1]|0)*3600+(e[2]|0)*60+(e[3]|0)+s/t.frameRate}function Ua(r,t){const e=tn.exec(r),s=Number(e[1]);switch(e[2]){case "h":return s*3600;case "m":return s*60;case "ms":return s*1e3;case "f":return s/t.frameRate;case "t":return s/t.tickRate}return s}class Ba{constructor(t){this.hls=void 0,this.media=null,this.config=void 0,this.enabled=true,this.Cues=void 0,this.textTracks=[],this.tracks=[],this.initPTS=[],this.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=ii(),this.captionsProperties=void 0,this.hls=t,this.config=t.config,this.Cues=t.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}},t.on(x.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(x.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(x.MANIFEST_LOADING,this.onManifestLoading,this),t.on(x.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(x.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.on(x.FRAG_LOADING,this.onFragLoading,this),t.on(x.FRAG_LOADED,this.onFragLoaded,this),t.on(x.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.on(x.FRAG_DECRYPTED,this.onFragDecrypted,this),t.on(x.INIT_PTS_FOUND,this.onInitPtsFound,this),t.on(x.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.on(x.BUFFER_FLUSHING,this.onBufferFlushing,this);}destroy(){const{hls:t}=this;t.off(x.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(x.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(x.MANIFEST_LOADING,this.onManifestLoading,this),t.off(x.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(x.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.off(x.FRAG_LOADING,this.onFragLoading,this),t.off(x.FRAG_LOADED,this.onFragLoaded,this),t.off(x.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.off(x.FRAG_DECRYPTED,this.onFragDecrypted,this),t.off(x.INIT_PTS_FOUND,this.onInitPtsFound,this),t.off(x.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.off(x.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=null,this.cea608Parser1=this.cea608Parser2=void 0;}initCea608Parsers(){if(this.config.enableCEA708Captions&&(!this.cea608Parser1||!this.cea608Parser2)){const t=new ne(this,"textTrack1"),e=new ne(this,"textTrack2"),s=new ne(this,"textTrack3"),i=new ne(this,"textTrack4");this.cea608Parser1=new Zs(1,t,e),this.cea608Parser2=new Zs(3,s,i);}}addCues(t,e,s,i,n){let o=false;for(let a=n.length;a--;){const l=n[a],c=$a(l[0],l[1],e,s);if(c>=0&&(l[0]=Math.min(l[0],e),l[1]=Math.max(l[1],s),o=true,c/(s-e)>.5))return}if(o||n.push([e,s]),this.config.renderTextTracksNatively){const a=this.captionsTracks[t];this.Cues.newCue(a,e,s,i);}else {const a=this.Cues.newCue(null,e,s,i);this.hls.trigger(x.CUES_PARSED,{type:"captions",cues:a,track:t});}}onInitPtsFound(t,{frag:e,id:s,initPTS:i,timescale:n}){const{unparsedVttFrags:o}=this;s==="main"&&(this.initPTS[e.cc]={baseTime:i,timescale:n}),o.length&&(this.unparsedVttFrags=[],o.forEach(a=>{this.onFragLoaded(x.FRAG_LOADED,a);}));}getExistingTrack(t,e){const{media:s}=this;if(s)for(let i=0;i{qt(t[e]),delete t[e];}),this.nonNativeCaptionsTracks={};}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=ii(),this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=[],this.initPTS=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset());}_cleanTracks(){const{media:t}=this;if(!t)return;const e=t.textTracks;if(e)for(let s=0;sn.textCodec===Be);if(this.config.enableWebVTT||i&&this.config.enableIMSC1){if(zi(this.tracks,s)){this.tracks=s;return}if(this.textTracks=[],this.tracks=s,this.config.renderTextTracksNatively){const o=this.media,a=o?ce(o.textTracks):null;if(this.tracks.forEach((l,c)=>{let h;if(a){let u=null;for(let d=0;dc!==null).map(c=>c.label);l.length&&b.warn(`Media element contains unused subtitle tracks: ${l.join(", ")}. Replace media element for each source to clear TextTracks and captions menu.`);}}else if(this.tracks.length){const o=this.tracks.map(a=>({label:a.name,kind:a.type.toLowerCase(),default:a.default,subtitleTrack:a}));this.hls.trigger(x.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:o});}}}onManifestLoaded(t,e){this.config.enableCEA708Captions&&e.captions&&e.captions.forEach(s=>{const i=/(?:CC|SERVICE)([1-4])/.exec(s.instreamId);if(!i)return;const n=`textTrack${i[1]}`,o=this.captionsProperties[n];o&&(o.label=s.name,s.lang&&(o.languageCode=s.lang),o.media=s);});}closedCaptionsForLevel(t){const e=this.hls.levels[t.level];return e?.attrs["CLOSED-CAPTIONS"]}onFragLoading(t,e){if(this.enabled&&e.frag.type===W.MAIN){var s,i;const{cea608Parser1:n,cea608Parser2:o,lastSn:a}=this,{cc:l,sn:c}=e.frag,h=(s=(i=e.part)==null?void 0:i.index)!=null?s:-1;n&&o&&(c!==a+1||c===a&&h!==this.lastPartIndex+1||l!==this.lastCc)&&(n.reset(),o.reset()),this.lastCc=l,this.lastSn=c,this.lastPartIndex=h;}}onFragLoaded(t,e){const{frag:s,payload:i}=e;if(s.type===W.SUBTITLE)if(i.byteLength){const n=s.decryptdata,o="stats"in e;if(n==null||!n.encrypted||o){const a=this.tracks[s.level],l=this.vttCCs;l[s.cc]||(l[s.cc]={start:s.start,prevCC:this.prevCC,new:true},this.prevCC=s.cc),a&&a.textCodec===Be?this._parseIMSC1(s,i):this._parseVTTs(e);}}else this.hls.trigger(x.SUBTITLE_FRAG_PROCESSED,{success:false,frag:s,error:new Error("Empty subtitle payload")});}_parseIMSC1(t,e){const s=this.hls;Js(e,this.initPTS[t.cc],i=>{this._appendCues(i,t.level),s.trigger(x.SUBTITLE_FRAG_PROCESSED,{success:true,frag:t});},i=>{b.log(`Failed to parse IMSC1: ${i}`),s.trigger(x.SUBTITLE_FRAG_PROCESSED,{success:false,frag:t,error:i});});}_parseVTTs(t){var e;const{frag:s,payload:i}=t,{initPTS:n,unparsedVttFrags:o}=this,a=n.length-1;if(!n[s.cc]&&a===-1){o.push(t);return}const l=this.hls,c=(e=s.initSegment)!=null&&e.data?gt(s.initSegment.data,new Uint8Array(i)):i;Pa(c,this.initPTS[s.cc],this.vttCCs,s.cc,s.start,h=>{this._appendCues(h,s.level),l.trigger(x.SUBTITLE_FRAG_PROCESSED,{success:true,frag:s});},h=>{const u=h.message==="Missing initPTS for VTT MPEGTS";u?o.push(t):this._fallbackToIMSC1(s,i),b.log(`Failed to parse VTT cue: ${h}`),!(u&&a>s.cc)&&l.trigger(x.SUBTITLE_FRAG_PROCESSED,{success:false,frag:s,error:h});});}_fallbackToIMSC1(t,e){const s=this.tracks[t.level];s.textCodec||Js(e,this.initPTS[t.cc],()=>{s.textCodec=Be,this._parseIMSC1(t,e);},()=>{s.textCodec="wvtt";});}_appendCues(t,e){const s=this.hls;if(this.config.renderTextTracksNatively){const i=this.textTracks[e];if(!i||i.mode==="disabled")return;t.forEach(n=>Ei(i,n));}else {const i=this.tracks[e];if(!i)return;const n=i.default?"default":"subtitles"+e;s.trigger(x.CUES_PARSED,{type:"subtitles",cues:t,track:n});}}onFragDecrypted(t,e){const{frag:s}=e;s.type===W.SUBTITLE&&this.onFragLoaded(x.FRAG_LOADED,e);}onSubtitleTracksCleared(){this.tracks=[],this.captionsTracks={};}onFragParsingUserdata(t,e){this.initCea608Parsers();const{cea608Parser1:s,cea608Parser2:i}=this;if(!this.enabled||!s||!i)return;const{frag:n,samples:o}=e;if(!(n.type===W.MAIN&&this.closedCaptionsForLevel(n)==="NONE"))for(let a=0;aIs(a[l],e,s));}if(this.config.renderTextTracksNatively&&e===0&&i!==void 0){const{textTracks:a}=this;Object.keys(a).forEach(l=>Is(a[l],e,i));}}}extractCea608Data(t){const e=[[],[]],s=t[0]&31;let i=2;for(let n=0;nthis.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=e.autoLevelCapping;}}}getMaxLevel(t){const e=this.hls.levels;if(!e.length)return -1;const s=e.filter((i,n)=>this.isLevelAllowed(i)&&n<=t);return this.clientRect=null,gs.getMaxLevelByMediaSize(s,this.mediaWidth,this.mediaHeight)}startCapping(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize());}stopCapping(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0);}getDimensions(){if(this.clientRect)return this.clientRect;const t=this.media,e={width:0,height:0};if(t){const s=t.getBoundingClientRect();e.width=s.width,e.height=s.height,!e.width&&!e.height&&(e.width=s.right-s.left||t.width||0,e.height=s.bottom-s.top||t.height||0);}return this.clientRect=e,e}get mediaWidth(){return this.getDimensions().width*this.contentScaleFactor}get mediaHeight(){return this.getDimensions().height*this.contentScaleFactor}get contentScaleFactor(){let t=1;if(!this.hls.config.ignoreDevicePixelRatio)try{t=self.devicePixelRatio;}catch{}return t}isLevelAllowed(t){return !this.restrictedLevels.some(s=>t.bitrate===s.bitrate&&t.width===s.width&&t.height===s.height)}static getMaxLevelByMediaSize(t,e,s){if(!(t!=null&&t.length))return -1;const i=(a,l)=>l?a.width!==l.width||a.height!==l.height:true;let n=t.length-1;const o=Math.max(e,s);for(let a=0;a=o||l.height>=o)&&i(l,t[a+1])){n=a;break}}return n}}class Ga{constructor(t){this.hls=void 0,this.isVideoPlaybackQualityAvailable=false,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=t,this.registerListeners();}setStreamController(t){this.streamController=t;}registerListeners(){this.hls.on(x.MEDIA_ATTACHING,this.onMediaAttaching,this);}unregisterListeners(){this.hls.off(x.MEDIA_ATTACHING,this.onMediaAttaching,this);}destroy(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=false,this.media=null;}onMediaAttaching(t,e){const s=this.hls.config;if(s.capLevelOnFPSDrop){const i=e.media instanceof self.HTMLVideoElement?e.media:null;this.media=i,i&&typeof i.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=true),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),s.fpsDroppedMonitoringPeriod);}}checkFPS(t,e,s){const i=performance.now();if(e){if(this.lastTime){const n=i-this.lastTime,o=s-this.lastDroppedFrames,a=e-this.lastDecodedFrames,l=1e3*o/n,c=this.hls;if(c.trigger(x.FPS_DROP,{currentDropped:o,currentDecoded:a,totalDroppedFrames:s}),l>0&&o>c.config.fpsDroppedMonitoringThreshold*a){let h=c.currentLevel;b.warn("drop FPS ratio greater than max allowed value for currentLevel: "+h),h>0&&(c.autoLevelCapping===-1||c.autoLevelCapping>=h)&&(h=h-1,c.trigger(x.FPS_DROP_LEVEL_CAPPING,{level:h,droppedLevel:c.currentLevel}),c.autoLevelCapping=h,this.streamController.nextLevelSwitch());}}this.lastTime=i,this.lastDroppedFrames=s,this.lastDecodedFrames=e;}}checkFPSInterval(){const t=this.media;if(t)if(this.isVideoPlaybackQualityAvailable){const e=t.getVideoPlaybackQuality();this.checkFPS(t,e.totalVideoFrames,e.droppedVideoFrames);}else this.checkFPS(t,t.webkitDecodedFrameCount,t.webkitDroppedFrameCount);}}const oe="[eme]";class Gt{constructor(t){this.hls=void 0,this.config=void 0,this.media=null,this.keyFormatPromise=null,this.keySystemAccessPromises={},this._requestLicenseFailureCount=0,this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},this.setMediaKeysQueue=Gt.CDMCleanupPromise?[Gt.CDMCleanupPromise]:[],this.onMediaEncrypted=this._onMediaEncrypted.bind(this),this.onWaitingForKey=this._onWaitingForKey.bind(this),this.debug=b.debug.bind(b,oe),this.log=b.log.bind(b,oe),this.warn=b.warn.bind(b,oe),this.error=b.error.bind(b,oe),this.hls=t,this.config=t.config,this.registerListeners();}destroy(){this.unregisterListeners(),this.onMediaDetached();const t=this.config;t.requestMediaKeySystemAccessFunc=null,t.licenseXhrSetup=t.licenseResponseCallback=void 0,t.drmSystems=t.drmSystemOptions={},this.hls=this.onMediaEncrypted=this.onWaitingForKey=this.keyIdToKeySessionPromise=null,this.config=null;}registerListeners(){this.hls.on(x.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(x.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(x.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(x.MANIFEST_LOADED,this.onManifestLoaded,this);}unregisterListeners(){this.hls.off(x.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(x.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(x.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(x.MANIFEST_LOADED,this.onManifestLoaded,this);}getLicenseServerUrl(t){const{drmSystems:e,widevineLicenseUrl:s}=this.config,i=e[t];if(i)return i.licenseUrl;if(t===J.WIDEVINE&&s)return s;throw new Error(`no license server URL configured for key-system "${t}"`)}getServerCertificateUrl(t){const{drmSystems:e}=this.config,s=e[t];if(s)return s.serverCertificateUrl;this.log(`No Server Certificate in config.drmSystems["${t}"]`);}attemptKeySystemAccess(t){const e=this.hls.levels,s=(o,a,l)=>!!o&&l.indexOf(o)===a,i=e.map(o=>o.audioCodec).filter(s),n=e.map(o=>o.videoCodec).filter(s);return i.length+n.length===0&&n.push("avc1.42e01e"),new Promise((o,a)=>{const l=c=>{const h=c.shift();this.getMediaKeysPromise(h,i,n).then(u=>o({keySystem:h,mediaKeys:u})).catch(u=>{c.length?l(c):u instanceof dt?a(u):a(new dt({type:H.KEY_SYSTEM_ERROR,details:w.KEY_SYSTEM_NO_ACCESS,error:u,fatal:true},u.message));});};l(t);})}requestMediaKeySystemAccess(t,e){const{requestMediaKeySystemAccessFunc:s}=this.config;if(typeof s!="function"){let i=`Configured requestMediaKeySystemAccess is not a function ${s}`;return di===null&&self.location.protocol==="http:"&&(i=`navigator.requestMediaKeySystemAccess is not available over insecure protocol ${location.protocol}`),Promise.reject(new Error(i))}return s(t,e)}getMediaKeysPromise(t,e,s){const i=Jn(t,e,s,this.config.drmSystemOptions),n=this.keySystemAccessPromises[t];let o=n?.keySystemAccess;if(!o){this.log(`Requesting encrypted media "${t}" key-system access with config: ${JSON.stringify(i)}`),o=this.requestMediaKeySystemAccess(t,i);const a=this.keySystemAccessPromises[t]={keySystemAccess:o};return o.catch(l=>{this.log(`Failed to obtain access to key-system "${t}": ${l}`);}),o.then(l=>{this.log(`Access for key-system "${l.keySystem}" obtained`);const c=this.fetchServerCertificate(t);return this.log(`Create media-keys for "${t}"`),a.mediaKeys=l.createMediaKeys().then(h=>(this.log(`Media-keys created for "${t}"`),c.then(u=>u?this.setMediaKeysServerCertificate(h,t,u):h))),a.mediaKeys.catch(h=>{this.error(`Failed to create media-keys for "${t}"}: ${h}`);}),a.mediaKeys})}return o.then(()=>n.mediaKeys)}createMediaKeySessionContext({decryptdata:t,keySystem:e,mediaKeys:s}){this.log(`Creating key-system session "${e}" keyId: ${St.hexDump(t.keyId||[])}`);const i=s.createSession(),n={decryptdata:t,keySystem:e,mediaKeys:s,mediaKeysSession:i,keyStatus:"status-pending"};return this.mediaKeySessions.push(n),n}renewKeySession(t){const e=t.decryptdata;if(e.pssh){const s=this.createMediaKeySessionContext(t),i=this.getKeyIdString(e),n="cenc";this.keyIdToKeySessionPromise[i]=this.generateRequestWithPreferredKeySession(s,n,e.pssh,"expired");}else this.warn("Could not renew expired session. Missing pssh initData.");this.removeSession(t);}getKeyIdString(t){if(!t)throw new Error("Could not read keyId of undefined decryptdata");if(t.keyId===null)throw new Error("keyId is null");return St.hexDump(t.keyId)}updateKeySession(t,e){var s;const i=t.mediaKeysSession;return this.log(`Updating key-session "${i.sessionId}" for keyID ${St.hexDump(((s=t.decryptdata)==null?void 0:s.keyId)||[])} + } (data length: ${e&&e.byteLength})`),i.update(e)}selectKeySystemFormat(t){const e=Object.keys(t.levelkeys||{});return this.keyFormatPromise||(this.log(`Selecting key-system from fragment (sn: ${t.sn} ${t.type}: ${t.level}) key formats ${e.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(e)),this.keyFormatPromise}getKeyFormatPromise(t){return new Promise((e,s)=>{const i=Ie(this.config),n=t.map(Ss).filter(o=>!!o&&i.indexOf(o)!==-1);return this.getKeySystemSelectionPromise(n).then(({keySystem:o})=>{const a=Es(o);a?e(a):s(new Error(`Unable to find format for key-system "${o}"`));}).catch(s)})}loadKey(t){const e=t.keyInfo.decryptdata,s=this.getKeyIdString(e),i=`(keyId: ${s} format: "${e.keyFormat}" method: ${e.method} uri: ${e.uri})`;this.log(`Starting session for key ${i}`);let n=this.keyIdToKeySessionPromise[s];return n||(n=this.keyIdToKeySessionPromise[s]=this.getKeySystemForKeyPromise(e).then(({keySystem:o,mediaKeys:a})=>(this.throwIfDestroyed(),this.log(`Handle encrypted media sn: ${t.frag.sn} ${t.frag.type}: ${t.frag.level} using key ${i}`),this.attemptSetMediaKeys(o,a).then(()=>{this.throwIfDestroyed();const l=this.createMediaKeySessionContext({keySystem:o,mediaKeys:a,decryptdata:e});return this.generateRequestWithPreferredKeySession(l,"cenc",e.pssh,"playlist-key")}))),n.catch(o=>this.handleError(o))),n}throwIfDestroyed(t="Invalid state"){if(!this.hls)throw new Error("invalid state")}handleError(t){this.hls&&(this.error(t.message),t instanceof dt?this.hls.trigger(x.ERROR,t.data):this.hls.trigger(x.ERROR,{type:H.KEY_SYSTEM_ERROR,details:w.KEY_SYSTEM_NO_KEYS,error:t,fatal:true}));}getKeySystemForKeyPromise(t){const e=this.getKeyIdString(t),s=this.keyIdToKeySessionPromise[e];if(!s){const i=Ss(t.keyFormat),n=i?[i]:Ie(this.config);return this.attemptKeySystemAccess(n)}return s}getKeySystemSelectionPromise(t){if(t.length||(t=Ie(this.config)),t.length===0)throw new dt({type:H.KEY_SYSTEM_ERROR,details:w.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:true},`Missing key-system license configuration options ${JSON.stringify({drmSystems:this.config.drmSystems})}`);return this.attemptKeySystemAccess(t)}_onMediaEncrypted(t){const{initDataType:e,initData:s}=t;if(this.debug(`"${t.type}" event: init data type: "${e}"`),s===null)return;let i,n;if(e==="sinf"&&this.config.drmSystems[J.FAIRPLAY]){const h=st(new Uint8Array(s));try{const u=is(JSON.parse(h).sinf),d=yi(new Uint8Array(u));if(!d)return;i=d.subarray(8,24),n=J.FAIRPLAY;}catch{this.warn('Failed to parse sinf "encrypted" event message initData');return}}else {const h=Lr(s);if(h===null)return;h.version===0&&h.systemId===ui.WIDEVINE&&h.data&&(i=h.data.subarray(8,24)),n=Zn(h.systemId);}if(!n||!i)return;const o=St.hexDump(i),{keyIdToKeySessionPromise:a,mediaKeySessions:l}=this;let c=a[o];for(let h=0;hthis.generateRequestWithPreferredKeySession(u,e,s,"encrypted-event-key-match"));break}}c||(c=a[o]=this.getKeySystemSelectionPromise([n]).then(({keySystem:h,mediaKeys:u})=>{var d;this.throwIfDestroyed();const f=new xe("ISO-23001-7",o,(d=Es(h))!=null?d:"");return f.pssh=new Uint8Array(s),f.keyId=i,this.attemptSetMediaKeys(h,u).then(()=>{this.throwIfDestroyed();const g=this.createMediaKeySessionContext({decryptdata:f,keySystem:h,mediaKeys:u});return this.generateRequestWithPreferredKeySession(g,e,s,"encrypted-event-no-match")})})),c.catch(h=>this.handleError(h));}_onWaitingForKey(t){this.log(`"${t.type}" event`);}attemptSetMediaKeys(t,e){const s=this.setMediaKeysQueue.slice();this.log(`Setting media-keys for "${t}"`);const i=Promise.all(s).then(()=>{if(!this.media)throw new Error("Attempted to set mediaKeys without media element attached");return this.media.setMediaKeys(e)});return this.setMediaKeysQueue.push(i),i.then(()=>{this.log(`Media-keys set for "${t}"`),s.push(i),this.setMediaKeysQueue=this.setMediaKeysQueue.filter(n=>s.indexOf(n)===-1);})}generateRequestWithPreferredKeySession(t,e,s,i){var n,o;const a=(n=this.config.drmSystems)==null||(o=n[t.keySystem])==null?void 0:o.generateRequest;if(a)try{const g=a.call(this.hls,e,s,t);if(!g)throw new Error("Invalid response from configured generateRequest filter");e=g.initDataType,s=t.decryptdata.pssh=g.initData?new Uint8Array(g.initData):null;}catch(g){var l;if(this.warn(g.message),(l=this.hls)!=null&&l.config.debug)throw g}if(s===null)return this.log(`Skipping key-session request for "${i}" (no initData)`),Promise.resolve(t);const c=this.getKeyIdString(t.decryptdata);this.log(`Generating key-session request for "${i}": ${c} (init data type: ${e} length: ${s?s.byteLength:null})`);const h=new Yi,u=t._onmessage=g=>{const m=t.mediaKeysSession;if(!m){h.emit("error",new Error("invalid state"));return}const{messageType:p,message:y}=g;this.log(`"${p}" message event for session "${m.sessionId}" message size: ${y.byteLength}`),p==="license-request"||p==="license-renewal"?this.renewLicense(t,y).catch(A=>{this.handleError(A),h.emit("error",A);}):p==="license-release"?t.keySystem===J.FAIRPLAY&&(this.updateKeySession(t,He("acknowledged")),this.removeSession(t)):this.warn(`unhandled media key message type "${p}"`);},d=t._onkeystatuseschange=g=>{if(!t.mediaKeysSession){h.emit("error",new Error("invalid state"));return}this.onKeyStatusChange(t);const p=t.keyStatus;h.emit("keyStatus",p),p==="expired"&&(this.warn(`${t.keySystem} expired for key ${c}`),this.renewKeySession(t));};t.mediaKeysSession.addEventListener("message",u),t.mediaKeysSession.addEventListener("keystatuseschange",d);const f=new Promise((g,m)=>{h.on("error",m),h.on("keyStatus",p=>{p.startsWith("usable")?g():p==="output-restricted"?m(new dt({type:H.KEY_SYSTEM_ERROR,details:w.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:false},"HDCP level output restricted")):p==="internal-error"?m(new dt({type:H.KEY_SYSTEM_ERROR,details:w.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:true},`key status changed to "${p}"`)):p==="expired"?m(new Error("key expired while generating request")):this.warn(`unhandled key status change "${p}"`);});});return t.mediaKeysSession.generateRequest(e,s).then(()=>{var g;this.log(`Request generated for key-session "${(g=t.mediaKeysSession)==null?void 0:g.sessionId}" keyId: ${c}`);}).catch(g=>{throw new dt({type:H.KEY_SYSTEM_ERROR,details:w.KEY_SYSTEM_NO_SESSION,error:g,fatal:false},`Error generating key-session request: ${g}`)}).then(()=>f).catch(g=>{throw h.removeAllListeners(),this.removeSession(t),g}).then(()=>(h.removeAllListeners(),t))}onKeyStatusChange(t){t.mediaKeysSession.keyStatuses.forEach((e,s)=>{this.log(`key status change "${e}" for keyStatuses keyId: ${St.hexDump("buffer"in s?new Uint8Array(s.buffer,s.byteOffset,s.byteLength):new Uint8Array(s))} session keyId: ${St.hexDump(new Uint8Array(t.decryptdata.keyId||[]))} uri: ${t.decryptdata.uri}`),t.keyStatus=e;});}fetchServerCertificate(t){const e=this.config,s=e.loader,i=new s(e),n=this.getServerCertificateUrl(t);return n?(this.log(`Fetching server certificate for "${t}"`),new Promise((o,a)=>{const l={responseType:"arraybuffer",url:n},c=e.certLoadPolicy.default,h={loadPolicy:c,timeout:c.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},u={onSuccess:(d,f,g,m)=>{o(d.data);},onError:(d,f,g,m)=>{a(new dt({type:H.KEY_SYSTEM_ERROR,details:w.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:true,networkDetails:g,response:ut({url:l.url,data:void 0},d)},`"${t}" certificate request failed (${n}). Status: ${d.code} (${d.text})`));},onTimeout:(d,f,g)=>{a(new dt({type:H.KEY_SYSTEM_ERROR,details:w.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:true,networkDetails:g,response:{url:l.url,data:void 0}},`"${t}" certificate request timed out (${n})`));},onAbort:(d,f,g)=>{a(new Error("aborted"));}};i.load(l,h,u);})):Promise.resolve()}setMediaKeysServerCertificate(t,e,s){return new Promise((i,n)=>{t.setServerCertificate(s).then(o=>{this.log(`setServerCertificate ${o?"success":"not supported by CDM"} (${s?.byteLength}) on "${e}"`),i(t);}).catch(o=>{n(new dt({type:H.KEY_SYSTEM_ERROR,details:w.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:o,fatal:true},o.message));});})}renewLicense(t,e){return this.requestLicense(t,new Uint8Array(e)).then(s=>this.updateKeySession(t,new Uint8Array(s)).catch(i=>{throw new dt({type:H.KEY_SYSTEM_ERROR,details:w.KEY_SYSTEM_SESSION_UPDATE_FAILED,error:i,fatal:true},i.message)}))}unpackPlayReadyKeyMessage(t,e){const s=String.fromCharCode.apply(null,new Uint16Array(e.buffer));if(!s.includes("PlayReadyKeyMessage"))return t.setRequestHeader("Content-Type","text/xml; charset=utf-8"),e;const i=new DOMParser().parseFromString(s,"application/xml"),n=i.querySelectorAll("HttpHeader");if(n.length>0){let h;for(let u=0,d=n.length;u in key message");return He(atob(c))}setupLicenseXHR(t,e,s,i){const n=this.config.licenseXhrSetup;return n?Promise.resolve().then(()=>{if(!s.decryptdata)throw new Error("Key removed");return n.call(this.hls,t,e,s,i)}).catch(o=>{if(!s.decryptdata)throw o;return t.open("POST",e,true),n.call(this.hls,t,e,s,i)}).then(o=>(t.readyState||t.open("POST",e,true),{xhr:t,licenseChallenge:o||i})):(t.open("POST",e,true),Promise.resolve({xhr:t,licenseChallenge:i}))}requestLicense(t,e){const s=this.config.keyLoadPolicy.default;return new Promise((i,n)=>{const o=this.getLicenseServerUrl(t.keySystem);this.log(`Sending license request to URL: ${o}`);const a=new XMLHttpRequest;a.responseType="arraybuffer",a.onreadystatechange=()=>{if(!this.hls||!t.mediaKeysSession)return n(new Error("invalid state"));if(a.readyState===4)if(a.status===200){this._requestLicenseFailureCount=0;let l=a.response;this.log(`License received ${l instanceof ArrayBuffer?l.byteLength:l}`);const c=this.config.licenseResponseCallback;if(c)try{l=c.call(this.hls,a,o,t);}catch(h){this.error(h);}i(l);}else {const l=s.errorRetry,c=l?l.maxNumRetry:0;if(this._requestLicenseFailureCount++,this._requestLicenseFailureCount>c||a.status>=400&&a.status<500)n(new dt({type:H.KEY_SYSTEM_ERROR,details:w.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:true,networkDetails:a,response:{url:o,data:void 0,code:a.status,text:a.statusText}},`License Request XHR failed (${o}). Status: ${a.status} (${a.statusText})`));else {const h=c-this._requestLicenseFailureCount+1;this.warn(`Retrying license request, ${h} attempts left`),this.requestLicense(t,e).then(i,n);}}},t.licenseXhr&&t.licenseXhr.readyState!==XMLHttpRequest.DONE&&t.licenseXhr.abort(),t.licenseXhr=a,this.setupLicenseXHR(a,o,t,e).then(({xhr:l,licenseChallenge:c})=>{t.keySystem==J.PLAYREADY&&(c=this.unpackPlayReadyKeyMessage(l,c)),l.send(c);});})}onMediaAttached(t,e){if(!this.config.emeEnabled)return;const s=e.media;this.media=s,s.addEventListener("encrypted",this.onMediaEncrypted),s.addEventListener("waitingforkey",this.onWaitingForKey);}onMediaDetached(){const t=this.media,e=this.mediaKeySessions;t&&(t.removeEventListener("encrypted",this.onMediaEncrypted),t.removeEventListener("waitingforkey",this.onWaitingForKey),this.media=null),this._requestLicenseFailureCount=0,this.setMediaKeysQueue=[],this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},xe.clearKeyUriToKeyIdMap();const s=e.length;Gt.CDMCleanupPromise=Promise.all(e.map(i=>this.removeSession(i)).concat(t?.setMediaKeys(null).catch(i=>{this.log(`Could not clear media keys: ${i}`);}))).then(()=>{s&&(this.log("finished closing key sessions and clearing media keys"),e.length=0);}).catch(i=>{this.log(`Could not close sessions and clear media keys: ${i}`);});}onManifestLoading(){this.keyFormatPromise=null;}onManifestLoaded(t,{sessionKeys:e}){if(!(!e||!this.config.emeEnabled)&&!this.keyFormatPromise){const s=e.reduce((i,n)=>(i.indexOf(n.keyFormat)===-1&&i.push(n.keyFormat),i),[]);this.log(`Selecting key-system from session-keys ${s.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(s);}}removeSession(t){const{mediaKeysSession:e,licenseXhr:s}=t;if(e){this.log(`Remove licenses and keys and close session ${e.sessionId}`),t._onmessage&&(e.removeEventListener("message",t._onmessage),t._onmessage=void 0),t._onkeystatuseschange&&(e.removeEventListener("keystatuseschange",t._onkeystatuseschange),t._onkeystatuseschange=void 0),s&&s.readyState!==XMLHttpRequest.DONE&&s.abort(),t.mediaKeysSession=t.decryptdata=t.licenseXhr=void 0;const i=this.mediaKeySessions.indexOf(t);return i>-1&&this.mediaKeySessions.splice(i,1),e.remove().catch(n=>{this.log(`Could not remove session: ${n}`);}).then(()=>e.close()).catch(n=>{this.log(`Could not close session: ${n}`);})}}}Gt.CDMCleanupPromise=void 0;class dt extends Error{constructor(t,e){super(e),this.data=void 0,t.error||(t.error=new Error(e)),this.data=t,t.err=t.error;}}var at;(function(r){r.MANIFEST="m",r.AUDIO="a",r.VIDEO="v",r.MUXED="av",r.INIT="i",r.CAPTION="c",r.TIMED_TEXT="tt",r.KEY="k",r.OTHER="o";})(at||(at={}));var Ze;(function(r){r.DASH="d",r.HLS="h",r.SMOOTH="s",r.OTHER="o";})(Ze||(Ze={}));var Pt;(function(r){r.OBJECT="CMCD-Object",r.REQUEST="CMCD-Request",r.SESSION="CMCD-Session",r.STATUS="CMCD-Status";})(Pt||(Pt={}));const Ka={[Pt.OBJECT]:["br","d","ot","tb"],[Pt.REQUEST]:["bl","dl","mtp","nor","nrr","su"],[Pt.SESSION]:["cid","pr","sf","sid","st","v"],[Pt.STATUS]:["bs","rtp"]};class Ht{constructor(t,e){this.value=void 0,this.params=void 0,Array.isArray(t)&&(t=t.map(s=>s instanceof Ht?s:new Ht(s))),this.value=t,this.params=e;}}class nn{constructor(t){this.description=void 0,this.description=t;}}const Va="Dict";function Ha(r){return Array.isArray(r)?JSON.stringify(r):r instanceof Map?"Map{}":r instanceof Set?"Set{}":typeof r=="object"?JSON.stringify(r):String(r)}function Wa(r,t,e,s){return new Error(`failed to ${r} "${Ha(t)}" as ${e}`,{cause:s})}const ni="Bare Item",Ya="Boolean",za="Byte Sequence",qa="Decimal",ja="Integer";function Xa(r){return r<-999999999999999||99999999999999912)throw bt(r,qa);const e=t.toString();return e.includes(".")?e:`${e}.0`}const rl="String";function ol(r){if(Qa.test(r))throw bt(r,rl);return `"${r.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function al(r){return r.description||r.toString().slice(7,-1)}function ri(r){const t=al(r);if(/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(t)===false)throw bt(t,Za);return t}function Je(r){switch(typeof r){case "number":if(!$(r))throw bt(r,ni);return Number.isInteger(r)?rn(r):nl(r);case "string":return ol(r);case "symbol":return ri(r);case "boolean":return tl(r);case "object":if(r instanceof Date)return il(r);if(r instanceof Uint8Array)return sl(r);if(r instanceof nn)return ri(r);default:throw bt(r,ni)}}function ts(r){if(/^[a-z*][a-z0-9\-_.*]*$/.test(r)===false)throw bt(r,Ja);return r}function ms(r){return r==null?"":Object.entries(r).map(([t,e])=>e===true?`;${ts(t)}`:`;${ts(t)}=${Je(e)}`).join("")}function an(r){return r instanceof Ht?`${Je(r.value)}${ms(r.params)}`:Je(r)}function ll(r){return `(${r.value.map(an).join(" ")})${ms(r.params)}`}function cl(r,t={whitespace:true}){if(typeof r!="object")throw bt(r,Va);const e=r instanceof Map?r.entries():Object.entries(r),s=t!=null&&t.whitespace?" ":"";return Array.from(e).map(([i,n])=>{n instanceof Ht||(n=new Ht(n));let o=ts(i);return n.value===true?o+=ms(n.params):(o+="=",Array.isArray(n.value)?o+=ll(n):o+=an(n)),o}).join(`,${s}`)}function hl(r,t){return cl(r,t)}const ul=r=>r==="ot"||r==="sf"||r==="st",dl=r=>typeof r=="number"?$(r):r!=null&&r!==""&&r!==false;function fl(r,t){const e=new URL(r),s=new URL(t);if(e.origin!==s.origin)return r;const i=e.pathname.split("/").slice(1),n=s.pathname.split("/").slice(1,-1);for(;i[0]===n[0];)i.shift(),n.shift();for(;n.length;)n.shift(),i.unshift("..");return i.join("/")}function gl(){try{return crypto.randomUUID()}catch{try{const t=URL.createObjectURL(new Blob),e=t.toString();return URL.revokeObjectURL(t),e.slice(e.lastIndexOf("/")+1)}catch{let e=new Date().getTime();return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,i=>{const n=(e+Math.random()*16)%16|0;return e=Math.floor(e/16),(i=="x"?n:n&3|8).toString(16)})}}}const me=r=>Math.round(r),ml=(r,t)=>(t!=null&&t.baseUrl&&(r=fl(r,t.baseUrl)),encodeURIComponent(r)),ae=r=>me(r/100)*100,pl={br:me,d:me,bl:ae,dl:ae,mtp:ae,nor:ml,rtp:ae,tb:me};function xl(r,t){const e={};if(r==null||typeof r!="object")return e;const s=Object.keys(r).sort(),i=ct({},pl,t?.formatters),n=t?.filter;return s.forEach(o=>{if(n!=null&&n(o))return;let a=r[o];const l=i[o];l&&(a=l(a,t)),!(o==="v"&&a===1)&&(o=="pr"&&a===1||dl(a)&&(ul(o)&&typeof a=="string"&&(a=new nn(a)),e[o]=a));}),e}function ln(r,t={}){return r?hl(xl(r,t),ct({whitespace:false},t)):""}function yl(r,t={}){if(!r)return {};const e=Object.entries(r),s=Object.entries(Ka).concat(Object.entries(t?.customHeaderMap||{})),i=e.reduce((n,o)=>{var a;const[c,h]=o,u=((a=s.find(d=>d[1].includes(c)))==null?void 0:a[0])||Pt.REQUEST;return (n[u])!=null||(n[u]={}),n[u][c]=h,n},{});return Object.entries(i).reduce((n,[o,a])=>(n[o]=ln(a,t),n),{})}function Tl(r,t,e){return ct(r,yl(t,e))}const Sl="CMCD";function El(r,t={}){if(!r)return "";const e=ln(r,t);return `${Sl}=${encodeURIComponent(e)}`}const oi=/CMCD=[^&#]+/;function vl(r,t,e){const s=El(t,e);if(!s)return r;if(oi.test(r))return r.replace(oi,s);const i=r.includes("?")?"&":"?";return `${r}${i}${s}`}class Al{constructor(t){this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=false,this.includeKeys=void 0,this.initialized=false,this.starved=false,this.buffering=true,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=()=>{this.initialized&&(this.starved=true),this.buffering=true;},this.onPlaying=()=>{this.initialized||(this.initialized=true),this.buffering=false;},this.applyPlaylistData=i=>{try{this.apply(i,{ot:at.MANIFEST,su:!this.initialized});}catch(n){b.warn("Could not generate manifest CMCD data.",n);}},this.applyFragmentData=i=>{try{const n=i.frag,o=this.hls.levels[n.level],a=this.getObjectType(n),l={d:n.duration*1e3,ot:a};(a===at.VIDEO||a===at.AUDIO||a==at.MUXED)&&(l.br=o.bitrate/1e3,l.tb=this.getTopBandwidth(a)/1e3,l.bl=this.getBufferLength(a)),this.apply(i,l);}catch(n){b.warn("Could not generate segment CMCD data.",n);}},this.hls=t;const e=this.config=t.config,{cmcd:s}=e;s!=null&&(e.pLoader=this.createPlaylistLoader(),e.fLoader=this.createFragmentLoader(),this.sid=s.sessionId||gl(),this.cid=s.contentId,this.useHeaders=s.useHeaders===true,this.includeKeys=s.includeKeys,this.registerListeners());}registerListeners(){const t=this.hls;t.on(x.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(x.MEDIA_DETACHED,this.onMediaDetached,this),t.on(x.BUFFER_CREATED,this.onBufferCreated,this);}unregisterListeners(){const t=this.hls;t.off(x.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(x.MEDIA_DETACHED,this.onMediaDetached,this),t.off(x.BUFFER_CREATED,this.onBufferCreated,this);}destroy(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null,this.onWaiting=this.onPlaying=null;}onMediaAttached(t,e){this.media=e.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying);}onMediaDetached(){this.media&&(this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null);}onBufferCreated(t,e){var s,i;this.audioBuffer=(s=e.tracks.audio)==null?void 0:s.buffer,this.videoBuffer=(i=e.tracks.video)==null?void 0:i.buffer;}createData(){var t;return {v:1,sf:Ze.HLS,sid:this.sid,cid:this.cid,pr:(t=this.media)==null?void 0:t.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(t,e={}){ct(e,this.createData());const s=e.ot===at.INIT||e.ot===at.VIDEO||e.ot===at.MUXED;this.starved&&s&&(e.bs=true,e.su=true,this.starved=false),e.su==null&&(e.su=this.buffering);const{includeKeys:i}=this;i&&(e=Object.keys(e).reduce((n,o)=>(i.includes(o)&&(n[o]=e[o]),n),{})),this.useHeaders?(t.headers||(t.headers={}),Tl(t.headers,e)):t.url=vl(t.url,e);}getObjectType(t){const{type:e}=t;if(e==="subtitle")return at.TIMED_TEXT;if(t.sn==="initSegment")return at.INIT;if(e==="audio")return at.AUDIO;if(e==="main")return this.hls.audioTracks.length?at.VIDEO:at.MUXED}getTopBandwidth(t){let e=0,s;const i=this.hls;if(t===at.AUDIO)s=i.audioTracks;else {const n=i.maxAutoLevel,o=n>-1?n+1:i.levels.length;s=i.levels.slice(0,o);}for(const n of s)n.bitrate>e&&(e=n.bitrate);return e>0?e:NaN}getBufferLength(t){const e=this.hls.media,s=t===at.AUDIO?this.audioBuffer:this.videoBuffer;return !s||!e?NaN:nt.bufferInfo(s,e.currentTime,this.config.maxBufferHole).len*1e3}createPlaylistLoader(){const{pLoader:t}=this.config,e=this.applyPlaylistData,s=t||this.config.loader;return class{constructor(n){this.loader=void 0,this.loader=new s(n);}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy();}abort(){this.loader.abort();}load(n,o,a){e(n),this.loader.load(n,o,a);}}}createFragmentLoader(){const{fLoader:t}=this.config,e=this.applyFragmentData,s=t||this.config.loader;return class{constructor(n){this.loader=void 0,this.loader=new s(n);}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy();}abort(){this.loader.abort();}load(n,o,a){e(n),this.loader.load(n,o,a);}}}}const bl=3e5;class Rl{constructor(t){this.hls=void 0,this.log=void 0,this.loader=null,this.uri=null,this.pathwayId=".",this.pathwayPriority=null,this.timeToLoad=300,this.reloadTimer=-1,this.updated=0,this.started=false,this.enabled=true,this.levels=null,this.audioTracks=null,this.subtitleTracks=null,this.penalizedPathways={},this.hls=t,this.log=b.log.bind(b,"[content-steering]:"),this.registerListeners();}registerListeners(){const t=this.hls;t.on(x.MANIFEST_LOADING,this.onManifestLoading,this),t.on(x.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(x.MANIFEST_PARSED,this.onManifestParsed,this),t.on(x.ERROR,this.onError,this);}unregisterListeners(){const t=this.hls;t&&(t.off(x.MANIFEST_LOADING,this.onManifestLoading,this),t.off(x.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(x.MANIFEST_PARSED,this.onManifestParsed,this),t.off(x.ERROR,this.onError,this));}startLoad(){if(this.started=true,this.clearTimeout(),this.enabled&&this.uri){if(this.updated){const t=this.timeToLoad*1e3-(performance.now()-this.updated);if(t>0){this.scheduleRefresh(this.uri,t);return}}this.loadSteeringManifest(this.uri);}}stopLoad(){this.started=false,this.loader&&(this.loader.destroy(),this.loader=null),this.clearTimeout();}clearTimeout(){this.reloadTimer!==-1&&(self.clearTimeout(this.reloadTimer),this.reloadTimer=-1);}destroy(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null;}removeLevel(t){const e=this.levels;e&&(this.levels=e.filter(s=>s!==t));}onManifestLoading(){this.stopLoad(),this.enabled=true,this.timeToLoad=300,this.updated=0,this.uri=null,this.pathwayId=".",this.levels=this.audioTracks=this.subtitleTracks=null;}onManifestLoaded(t,e){const{contentSteering:s}=e;s!==null&&(this.pathwayId=s.pathwayId,this.uri=s.uri,this.started&&this.startLoad());}onManifestParsed(t,e){this.audioTracks=e.audioTracks,this.subtitleTracks=e.subtitleTracks;}onError(t,e){const{errorAction:s}=e;if(s?.action===rt.SendAlternateToPenaltyBox&&s.flags===mt.MoveAllAlternatesMatchingHost){const i=this.levels;let n=this.pathwayPriority,o=this.pathwayId;if(e.context){const{groupId:a,pathwayId:l,type:c}=e.context;a&&i?o=this.getPathwayForGroupId(a,c,o):l&&(o=l);}o in this.penalizedPathways||(this.penalizedPathways[o]=performance.now()),!n&&i&&(n=i.reduce((a,l)=>(a.indexOf(l.pathwayId)===-1&&a.push(l.pathwayId),a),[])),n&&n.length>1&&(this.updatePathwayPriority(n),s.resolved=this.pathwayId!==o),s.resolved||b.warn(`Could not resolve ${e.details} ("${e.error.message}") with content-steering for Pathway: ${o} levels: ${i&&i.length} priorities: ${JSON.stringify(n)} penalized: ${JSON.stringify(this.penalizedPathways)}`);}}filterParsedLevels(t){this.levels=t;let e=this.getLevelsForPathway(this.pathwayId);if(e.length===0){const s=t[0].pathwayId;this.log(`No levels found in Pathway ${this.pathwayId}. Setting initial Pathway to "${s}"`),e=this.getLevelsForPathway(s),this.pathwayId=s;}return e.length!==t.length?(this.log(`Found ${e.length}/${t.length} levels in Pathway "${this.pathwayId}"`),e):t}getLevelsForPathway(t){return this.levels===null?[]:this.levels.filter(e=>t===e.pathwayId)}updatePathwayPriority(t){this.pathwayPriority=t;let e;const s=this.penalizedPathways,i=performance.now();Object.keys(s).forEach(n=>{i-s[n]>bl&&delete s[n];});for(let n=0;n0){this.log(`Setting Pathway to "${o}"`),this.pathwayId=o,Vr(e),this.hls.trigger(x.LEVELS_UPDATED,{levels:e});const c=this.hls.levels[a];l&&c&&this.levels&&(c.attrs["STABLE-VARIANT-ID"]!==l.attrs["STABLE-VARIANT-ID"]&&c.bitrate!==l.bitrate&&this.log(`Unstable Pathways change from bitrate ${l.bitrate} to ${c.bitrate}`),this.hls.nextLoadLevel=a);break}}}getPathwayForGroupId(t,e,s){const i=this.getLevelsForPathway(s).concat(this.levels||[]);for(let n=0;n{const{ID:o,"BASE-ID":a,"URI-REPLACEMENT":l}=n;if(e.some(h=>h.pathwayId===o))return;const c=this.getLevelsForPathway(a).map(h=>{const u=new Qt(h.attrs);u["PATHWAY-ID"]=o;const d=u.AUDIO&&`${u.AUDIO}_clone_${o}`,f=u.SUBTITLES&&`${u.SUBTITLES}_clone_${o}`;d&&(s[u.AUDIO]=d,u.AUDIO=d),f&&(i[u.SUBTITLES]=f,u.SUBTITLES=f);const g=cn(h.uri,u["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",l),m=new Te({attrs:u,audioCodec:h.audioCodec,bitrate:h.bitrate,height:h.height,name:h.name,url:g,videoCodec:h.videoCodec,width:h.width});if(h.audioGroups)for(let p=1;p{this.log(`Loaded steering manifest: "${i}"`);const g=h.data;if(g.VERSION!==1){this.log(`Steering VERSION ${g.VERSION} not supported!`);return}this.updated=performance.now(),this.timeToLoad=g.TTL;const{"RELOAD-URI":m,"PATHWAY-CLONES":p,"PATHWAY-PRIORITY":y}=g;if(m)try{this.uri=new self.URL(m,i).href;}catch{this.enabled=false,this.log(`Failed to parse Steering Manifest RELOAD-URI: ${m}`);return}this.scheduleRefresh(this.uri||d.url),p&&this.clonePathways(p);const A={steeringManifest:g,url:i.toString()};this.hls.trigger(x.STEERING_MANIFEST_LOADED,A),y&&this.updatePathwayPriority(y);},onError:(h,u,d,f)=>{if(this.log(`Error loading steering manifest: ${h.code} ${h.text} (${u.url})`),this.stopLoad(),h.code===410){this.enabled=false,this.log(`Steering manifest ${u.url} no longer available`);return}let g=this.timeToLoad*1e3;if(h.code===429){const m=this.loader;if(typeof m?.getResponseHeader=="function"){const p=m.getResponseHeader("Retry-After");p&&(g=parseFloat(p)*1e3);}this.log(`Steering manifest ${u.url} rate limited`);return}this.scheduleRefresh(this.uri||u.url,g);},onTimeout:(h,u,d)=>{this.log(`Timeout loading steering manifest (${u.url})`),this.scheduleRefresh(this.uri||u.url);}};this.log(`Requesting steering manifest: ${i}`),this.loader.load(n,l,c);}scheduleRefresh(t,e=this.timeToLoad*1e3){this.clearTimeout(),this.reloadTimer=self.setTimeout(()=>{var s;const i=(s=this.hls)==null?void 0:s.media;if(i&&!i.ended){this.loadSteeringManifest(t);return}this.scheduleRefresh(t,this.timeToLoad*1e3);},e);}}function ai(r,t,e,s){r&&Object.keys(t).forEach(i=>{const n=r.filter(o=>o.groupId===i).map(o=>{const a=ct({},o);return a.details=void 0,a.attrs=new Qt(a.attrs),a.url=a.attrs.URI=cn(o.url,o.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",e),a.groupId=a.attrs["GROUP-ID"]=t[i],a.attrs["PATHWAY-ID"]=s,a});r.push(...n);});}function cn(r,t,e,s){const{HOST:i,PARAMS:n,[e]:o}=s;let a;t&&(a=o?.[t],a&&(r=a));const l=new self.URL(r);return i&&!a&&(l.host=i),n&&Object.keys(n).sort().forEach(c=>{c&&l.searchParams.set(c,n[c]);}),l.href}const Ll=/^age:\s*[\d.]+\s*$/im;class Il{constructor(t){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=null,this.loader=null,this.stats=void 0,this.xhrSetup=t&&t.xhrSetup||null,this.stats=new qn,this.retryDelay=0;}destroy(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null,this.context=null,this.xhrSetup=null;}abortInternal(){const t=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),t&&(t.onreadystatechange=null,t.onprogress=null,t.readyState!==4&&(this.stats.aborted=true,t.abort()));}abort(){var t;this.abortInternal(),(t=this.callbacks)!=null&&t.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader);}load(t,e,s){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=t,this.config=e,this.callbacks=s,this.loadInternal();}loadInternal(){const{config:t,context:e}=this;if(!t||!e)return;const s=this.loader=new self.XMLHttpRequest,i=this.stats;i.loading.first=0,i.loaded=0,i.aborted=false;const n=this.xhrSetup;n?Promise.resolve().then(()=>{if(!(this.loader!==s||this.stats.aborted))return n(s,e.url)}).catch(o=>{if(!(this.loader!==s||this.stats.aborted))return s.open("GET",e.url,true),n(s,e.url)}).then(()=>{this.loader!==s||this.stats.aborted||this.openAndSendXhr(s,e,t);}).catch(o=>{this.callbacks.onError({code:s.status,text:o.message},e,s,i);}):this.openAndSendXhr(s,e,t);}openAndSendXhr(t,e,s){t.readyState||t.open("GET",e.url,true);const i=e.headers,{maxTimeToFirstByteMs:n,maxLoadTimeMs:o}=s.loadPolicy;if(i)for(const a in i)t.setRequestHeader(a,i[a]);e.rangeEnd&&t.setRequestHeader("Range","bytes="+e.rangeStart+"-"+(e.rangeEnd-1)),t.onreadystatechange=this.readystatechange.bind(this),t.onprogress=this.loadprogress.bind(this),t.responseType=e.responseType,self.clearTimeout(this.requestTimeout),s.timeout=n&&$(n)?n:o,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),s.timeout),t.send();}readystatechange(){const{context:t,loader:e,stats:s}=this;if(!t||!e)return;const i=e.readyState,n=this.config;if(!s.aborted&&i>=2&&(s.loading.first===0&&(s.loading.first=Math.max(self.performance.now(),s.loading.start),n.timeout!==n.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),n.timeout=n.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),n.loadPolicy.maxLoadTimeMs-(s.loading.first-s.loading.start)))),i===4)){self.clearTimeout(this.requestTimeout),e.onreadystatechange=null,e.onprogress=null;const o=e.status,a=e.responseType!=="text";if(o>=200&&o<300&&(a&&e.response||e.responseText!==null)){s.loading.end=Math.max(self.performance.now(),s.loading.first);const l=a?e.response:e.responseText,c=e.responseType==="arraybuffer"?l.byteLength:l.length;if(s.loaded=s.total=c,s.bwEstimate=s.total*8e3/(s.loading.end-s.loading.first),!this.callbacks)return;const h=this.callbacks.onProgress;if(h&&h(s,t,l,e),!this.callbacks)return;const u={url:e.responseURL,data:l,code:o};this.callbacks.onSuccess(u,s,t,e);}else {const l=n.loadPolicy.errorRetry,c=s.retry,h={url:t.url,data:void 0,code:o};Ee(l,c,false,h)?this.retry(l):(b.error(`${o} while loading ${t.url}`),this.callbacks.onError({code:o,text:e.statusText},t,e,s));}}}loadtimeout(){if(!this.config)return;const t=this.config.loadPolicy.timeoutRetry,e=this.stats.retry;if(Ee(t,e,true))this.retry(t);else {var s;b.warn(`timeout while loading ${(s=this.context)==null?void 0:s.url}`);const i=this.callbacks;i&&(this.abortInternal(),i.onTimeout(this.stats,this.context,this.loader));}}retry(t){const{context:e,stats:s}=this;this.retryDelay=os(t,s.retry),s.retry++,b.warn(`${status?"HTTP Status "+status:"Timeout"} while loading ${e?.url}, retrying ${s.retry}/${t.maxNumRetry} in ${this.retryDelay}ms`),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay);}loadprogress(t){const e=this.stats;e.loaded=t.loaded,t.lengthComputable&&(e.total=t.total);}getCacheAge(){let t=null;if(this.loader&&Ll.test(this.loader.getAllResponseHeaders())){const e=this.loader.getResponseHeader("age");t=e?parseFloat(e):null;}return t}getResponseHeader(t){return this.loader&&new RegExp(`^${t}:\\s*[\\d.]+\\s*$`,"im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(t):null}}const wl=/\s/,Dl={newCue(r,t,e,s){const i=[];let n,o,a,l,c;const h=self.VTTCue||self.TextTrackCue;for(let d=0;d=16?l--:l++;const f=Zi(c.trim()),g=fs(t,e,f);r!=null&&(u=r.cues)!=null&&u.getCueById(g)||(o=new h(t,e,f),o.id=g,o.line=d+1,o.align="left",o.position=10+Math.min(80,Math.floor(l*8/32)*10),i.push(o));}return r&&i.length&&(i.sort((d,f)=>d.line==="auto"||f.line==="auto"?0:d.line>8&&f.line>8?f.line-d.line:d.line-f.line),i.forEach(d=>Ei(r,d))),i}},Cl={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null};ut(ut({autoStartLoad:true,startPosition:-1,defaultAudioCodec:void 0,debug:false,capLevelOnFPSDrop:false,capLevelToPlayerSize:false,ignoreDevicePixelRatio:false,preferManagedMediaSource:true,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,frontBufferFlushThreshold:1/0,maxBufferSize:60*1e3*1e3,maxBufferHole:.1,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:false,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:true,workerPath:null,enableSoftwareAES:true,startLevel:void 0,startFragPrefetch:false,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:Il,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:ao,bufferController:fa,capLevelController:gs,errorController:jr,fpsController:Ga,stretchShortVideoTrack:false,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:true,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrEwmaDefaultEstimateMax:5e6,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:false,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:false,widevineLicenseUrl:void 0,drmSystems:{},drmSystemOptions:{},requestMediaKeySystemAccessFunc:di,testBandwidth:true,progressive:false,lowLatencyMode:true,cmcd:void 0,enableDateRangeMetadataCues:true,enableEmsgMetadataCues:true,enableID3MetadataCues:true,useMediaCapabilities:true,certLoadPolicy:{default:Cl},keyLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"},errorRetry:{maxNumRetry:8,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"}}},manifestLoadPolicy:{default:{maxTimeToFirstByteMs:1/0,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:2,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:4,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:6,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},steeringManifestLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},_l()),{},{subtitleStreamController:ca,subtitleTrackController:ua,timelineController:Ba,audioStreamController:aa,audioTrackController:la,emeController:Gt,cmcdController:Al,contentSteeringController:Rl});function _l(){return {cueHandler:Dl,enableWebVTT:true,enableIMSC1:true,enableCEA708Captions:true,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:true}}function kl(r,t$1){r.component(e=>{let{value:s=null,subtitles:i=null,label:n,i18n:o,dispatch_blob:a=()=>Promise.resolve(),interactive:l=false,editable:c=true,trim_region_settings:h={},waveform_settings:u,waveform_options:d,mode:f=void 0,loop:g,handle_reset_value:m=()=>{},playback_position:p$1=void 0,onstop:y,onplay:A,onpause:T,onedit:R,onload:E}=t$1;s?.url;let I,v,C=false,L=0,_=0,D=false,q=true,V=d.show_recording_waveform&&!s?.is_stream;const j=async(U,N)=>{f="";R?.();};let G=true,z;function tt(U){U.push(` `),s===null?(U.push(""),p(U,{size:"small",children:N=>{t(N);},$$slots:{default:true}})):(U.push(""),V?(U.push(""),U.push(`
    `),f==="edit"&&_>0?(U.push(""),U.push(``)):U.push(""),U.push('
    '),Mn(U,{container:I,waveform:v,playing:C,audio_duration:L,i18n:o,interactive:l,handle_trim_audio:j,show_redo:l,handle_reset_value:m,waveform_options:d,trim_region_settings:h,editable:c,show_subtitles:i!==null,get mode(){return f},set mode(N){f=N,G=false;},get trimDuration(){return _},set trimDuration(N){_=N,G=false;},get show_volume_slider(){return D},set show_volume_slider(N){D=N,G=false;},get subtitles_toggle(){return q},set subtitles_toggle(N){q=N,G=false;}}),U.push("
    ")):U.push(""),U.push("")),U.push("");}do G=true,z=e.copy(),tt(z);while(!G);e.subsume(z),bind_props(t$1,{mode:f,playback_position:p$1});});}function Pl(r,t$1){r.component(e=>{let{value:s=null,subtitles:i=null,label:n,show_label:o=true,buttons:a=[],on_custom_button_click:l$1=null,i18n:c,waveform_settings:h={},waveform_options:u$1={show_recording_waveform:true},editable:d=true,loop:f,display_icon_button_wrapper_top_corner:g=false,minimal:m=false,playback_position:p$1=void 0,onchange:y$2,onplay:A,onpause:T,onstop:R,onshare:E,onerror:I}=t$1,v=true,C;function P(L){k$1(L,{show_label:o,Icon:t,float:false,label:n||c("audio.audio")}),L.push(" "),s!==null?(L.push(""),m?(L.push(""),Z(L,{value:s,label:n||c("audio.audio"),loop:f})):(L.push(""),y(L,{display_top_corner:g,buttons:a,on_custom_button_click:l$1,children:_=>{a.some(D=>typeof D=="string"&&D==="download")?(_.push(""),u(_,{href:s.is_stream?s.url?.replace("playlist.m3u8","playlist-file"):s.url,download:s.orig_name||s.path,children:D=>{w$1(D,{Icon:l,label:c("common.download")});},$$slots:{default:true}})):_.push(""),_.push(" "),a.some(D=>typeof D=="string"&&D==="share")?(_.push(""),y$1(_,{i18n:c,onerror:I,onshare:E,formatter:async D=>!D||!D.url?"":``,value:s})):_.push(""),_.push("");}}),L.push(" "),kl(L,{value:s,subtitles:Array.isArray(i)?i:i?.url,label:n,i18n:c,waveform_settings:h,waveform_options:u$1,editable:d,loop:f,onpause:T,onplay:A,onstop:R,onload:()=>{},get playback_position(){return p$1},set playback_position(_){p$1=_,v=false;}}),L.push("")),L.push("")):(L.push(""),p(L,{size:"small",children:_=>{t(_);},$$slots:{default:true}})),L.push("");}do v=true,C=e.copy(),P(C);while(!v);e.subsume(C),bind_props(t$1,{playback_position:p$1});});}const Jl=Object.freeze(Object.defineProperty({__proto__:null,default:Pl},Symbol.toStringTag,{value:"Module"})); + +export { kl as A, Pl as S, Jl as a }; +//# sourceMappingURL=StaticAudio-CgMOYc6I.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/StreamingBar-BGU65w2M.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/StreamingBar-BGU65w2M.js new file mode 100644 index 0000000000000000000000000000000000000000..4eef3511be41a8c9361152c4a05235d9320e00fa --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/StreamingBar-BGU65w2M.js @@ -0,0 +1,7 @@ +import './async-D55cHugf.js'; +import { g as attr_style, i as stringify } from './index-u8mz_F03.js'; + +/* empty css */function o(i,a){let{time_limit:t}=a;t?(i.push(""),i.push(`
    `)):i.push(""),i.push("");} + +export { o }; +//# sourceMappingURL=StreamingBar-BGU65w2M.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Textbox-DO7UelKj.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Textbox-DO7UelKj.js new file mode 100644 index 0000000000000000000000000000000000000000..e34db1ab034a1be5934d2e03b722b9144268a14f --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Textbox-DO7UelKj.js @@ -0,0 +1,16 @@ +import './async-D55cHugf.js'; +import { f as attr_class, a as attr, g as attr_style, d as bind_props } from './index-u8mz_F03.js'; +import { c } from './BlockTitle-BnJIYf6a.js'; +import { w } from './IconButton-BRnu7KaR.js'; +import { e } from './Check-C7_ZsXgh.js'; +import { h } from './Copy-B8YOhH7c.js'; +import { M } from './Send-C1RPCeF6.js'; +import { s } from './Square-CDuLMWYC.js'; +import './2-BLdXJizP.js'; +import { y } from './IconButtonWrapper-CjFRPb3y.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; + +/* empty css */function et(y$1,v){y$1.component(a=>{let{value:s$1="",value_is_output:w$1=false,lines:_=1,placeholder:p="",label:z,info:C=void 0,disabled:c$1=false,show_label:d=true,container:I=true,max_lines:R=void 0,type:r="text",buttons:h$1=null,oncustombuttonclick:T=null,submit_btn:i=null,stop_btn:e$1=null,rtl:k=false,autofocus:n=false,text_align:b=void 0,autoscroll:W=true,max_length:m=void 0,html_attributes:o=null,validation_error:u=void 0,onchange:Y,onsubmit:j,onstop:H,onblur:J,onselect:K,oninput:M$1,onfocus:Q,oncopy:B}=v,f=false,x,S=1;const A=!i;async function D(){if("clipboard"in navigator){try{await navigator.clipboard.writeText(s$1),B?.({value:s$1});}catch(l){console.error("COPYING CLIPBOARD FAILED",l);}L();}}function L(){f=true,x&&clearTimeout(x),x=setTimeout(()=>{f=false;},1e3);}if(a.push(``),d&&h$1&&h$1.length>0?(a.push(""),y(a,{buttons:h$1,on_custom_button_click:T,children:l=>{h$1.some(g=>typeof g=="string"&&g==="copy")?(l.push(""),w(l,{Icon:f?e:h,onclick:D,label:f?"Copied":"Copy"})):l.push(""),l.push("");}})):a.push(""),a.push(" "),c(a,{show_label:u?true:d,info:C,children:l=>{l.push(`${escape_html(z)} `),u?(l.push(""),l.push(`
    ${escape_html(u)}
    `)):l.push(""),l.push("");},$$slots:{default:true}}),a.push('
    '),_===1&&S===1)a.push(""),r==="text"?(a.push(""),a.push(``)):(a.push(""),r==="password"?(a.push(""),a.push(``)):(a.push(""),r==="email"?(a.push(""),a.push(``)):a.push(""),a.push("")),a.push("")),a.push("");else {a.push(""),a.push(`");}a.push(" "),i?(a.push(""),a.push(``),i===true?(a.push(""),M(a)):(a.push(""),a.push(`${escape_html(i)}`)),a.push("")):a.push(""),a.push(" "),e$1?(a.push(""),a.push(``),e$1===true?(a.push(""),s(a,{fill:"none",stroke_width:2.5})):(a.push(""),a.push(`${escape_html(e$1)}`)),a.push("")):a.push(""),a.push("
    "),bind_props(v,{value:s$1,value_is_output:w$1});});} + +export { et as e }; +//# sourceMappingURL=Textbox-DO7UelKj.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Trash-DLGOAhrN.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Trash-DLGOAhrN.js new file mode 100644 index 0000000000000000000000000000000000000000..577a3a7e04960d67b0fc0b88eb2bd066244b05ce --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Trash-DLGOAhrN.js @@ -0,0 +1,9 @@ +import './async-D55cHugf.js'; + +function r(t){t.push(``);} + +export { r }; +//# sourceMappingURL=Trash-DLGOAhrN.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Undo-Ce01x-M5.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Undo-Ce01x-M5.js new file mode 100644 index 0000000000000000000000000000000000000000..81029b39df1078f7d27beecb1455b6ae6f7ae4e3 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Undo-Ce01x-M5.js @@ -0,0 +1,6 @@ +import './async-D55cHugf.js'; + +function r(o){o.push('');} + +export { r }; +//# sourceMappingURL=Undo-Ce01x-M5.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Upload2-uTutz1dY.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Upload2-uTutz1dY.js new file mode 100644 index 0000000000000000000000000000000000000000..38fddb00c4ec64071c9fbe53148bf49508369ab2 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Upload2-uTutz1dY.js @@ -0,0 +1,11 @@ +import './async-D55cHugf.js'; +import { a as attr, f as attr_class, g as attr_style, d as bind_props } from './index-u8mz_F03.js'; +import { o as onDestroy, t as tick } from './index-server-CQz6EZl_.js'; +import { b as bs } from './2-BLdXJizP.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; + +/* empty css */function Q(P,m){P.component(e=>{let {upload_id:r,root:y,files:b,stream_handler:v,ondone:w}=m,h=false,n=d[0],d=b.map(u=>({...u,progress:0}));function x(u){return u.progress*100/(u.size||0)||0}onDestroy(()=>{}),e.push(`Uploading ${escape_html(d.length)} + ${escape_html(d.length>1?"files":"file")}... `),n?(e.push(""),e.push(`
    ${escape_html(n.orig_name)}
    `)):e.push(""),e.push("");});}function ee(P,m){P.component(e=>{let{filetype:r=null,dragging:y=false,boundedheight:b=true,center:v=true,flex:w=true,file_count:o="single",disable_click:h=false,root:_,hidden:n=false,format:d="file",uploading:c=false,show_progress:x=true,max_file_size:u=null,upload:p,stream_handler:g,icon_upload:W=false,height:f=void 0,aria_label:z=void 0,upload_promise:U=void 0,onload:C,onerror:E,children:k}=m;function S(){}let A="",F,I=null,L=(()=>{if(typeof navigator<"u"){const t=navigator.userAgent.toLowerCase();return t.indexOf("iphone")>-1||t.indexOf("ipad")>-1}return false})();const D=["image","video","audio","text","file"],J=t=>L&&t.startsWith(".")?(I=true,t):L&&t.includes("file/*")?"*":t.startsWith(".")||t.endsWith("/*")?t:D.includes(t)?t+"/*":"."+t;function N(){navigator.clipboard.read().then(async t=>{for(let i=0;is.startsWith("image/"));if(l){t[i].getType(l).then(async s=>{const T=new File([s],`clipboard.${l.replace("image/","")}`);await O([T]);});break}}});}function R(){}async function j(t,i){return i?A=i:A=Math.random().toString(36).substring(2,15),await tick(),c=true,U=new Promise(async l=>{try{const s=await p(t,_,A,u??1/0);C?.(o==="single"?s?.[0]:s),l(s||[]),c=!1;}catch(s){E?.(s.message),c=false,l([]);}}),U}async function O(t,i){if(!t.length)return;let l=t.map(s=>new File([s],s instanceof File?s.name:"file",{type:s.type}));return L&&I&&(l=l.filter(s=>M(s)?true:(E?.(`Invalid file type: ${s.name}. Only ${r} allowed.`),false)),l.length===0)?[]:(F=await bs(l),await j(F,i))}function M(t){return r?(Array.isArray(r)?r:[r]).some(l=>{const s=J(l);if(s.startsWith("."))return t.name.toLowerCase().endsWith(s.toLowerCase());if(s==="*")return true;if(s.endsWith("/*")){const[T]=s.split("/");return t.type.startsWith(T+"/")}return t.type===s}):true}async function q(t){if(y=false,!t.dataTransfer?.files)return;const i=Array.from(t.dataTransfer.files).filter(M);if(d!="blob")await O(i);else {if(o==="single"){C?.(i[0]);return}C?.(i);}}r==="clipboard"?(e.push(""),e.push(``),k?(e.push(""),k(e),e.push("")):e.push(""),e.push("")):(e.push(""),c&&x?(e.push(""),n?e.push(""):(e.push(""),Q(e,{root:_,upload_id:A,files:F,stream_handler:g})),e.push("")):(e.push(""),e.push(``),k?(e.push(""),k(e),e.push("")):e.push(""),e.push("")),e.push("")),e.push(""),bind_props(m,{dragging:y,uploading:c,upload_promise:U,open_upload:S,paste_clipboard:N,open_file_upload:R,load_files:O,load_files_from_drop:q});});} + +export { Q, ee as e }; +//# sourceMappingURL=Upload2-uTutz1dY.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/UploadText-BDXc1cBO.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/UploadText-BDXc1cBO.js new file mode 100644 index 0000000000000000000000000000000000000000..55b2758d253921ca92dbfdd6c611cd6683294979 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/UploadText-BDXc1cBO.js @@ -0,0 +1,9 @@ +import { f as fallback } from './async-D55cHugf.js'; +import { f as attr_class, d as bind_props } from './index-u8mz_F03.js'; +import { e, h } from './Upload-BbxeBrrD.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; + +const n=/^(#\s*)(.+)$/m;function v(c){const s=c.trim(),a=s.match(n);if(!a)return [false,s||false];const[l,,o]=a,p=o.trim();if(s===l)return [p,false];const i=a.index!==void 0?a.index+l.length:0,e=s.substring(i).trim()||false;return [p,e]}function k(c,s){c.component(a=>{let l,o,p=fallback(s.type,"file"),i=s.i18n,u=fallback(s.message,void 0),e$1=fallback(s.mode,"full"),d=fallback(s.hovered,false),h$1=fallback(s.placeholder,void 0);const f={image:"upload_text.drop_image",video:"upload_text.drop_video",audio:"upload_text.drop_audio",file:"upload_text.drop_file",csv:"upload_text.drop_csv",gallery:"upload_text.drop_gallery",clipboard:"upload_text.paste_clipboard"};[l,o]=h$1?v(h$1):[false,false],a.push(`
    `),p==="clipboard"?(a.push(""),e(a)):(a.push(""),h(a)),a.push(" "),l||o?(a.push(""),l?(a.push(""),a.push(`

    ${escape_html(l)}

    `)):a.push(""),a.push(" "),o?(a.push(""),a.push(`

    ${escape_html(o)}

    `)):a.push(""),a.push("")):(a.push(""),a.push(`${escape_html(i(f[p]||f.file))} `),e$1!=="short"?(a.push(""),a.push(`- ${escape_html(i("common.or"))} - ${escape_html(u||i("upload_text.click_to_upload"))}`)):a.push(""),a.push("")),a.push("
    "),bind_props(s,{type:p,i18n:i,message:u,mode:e$1,hovered:d,placeholder:h$1});});} + +export { k }; +//# sourceMappingURL=UploadText-BDXc1cBO.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Video-FfbWmOVG.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Video-FfbWmOVG.js new file mode 100644 index 0000000000000000000000000000000000000000..512e8d5e7224daed4cf7b48381e29d02572ee832 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Video-FfbWmOVG.js @@ -0,0 +1,6 @@ +import './async-D55cHugf.js'; + +function r(o){o.push('');} + +export { r }; +//# sourceMappingURL=Video-FfbWmOVG.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/VideoPreview-BCm0_09s.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/VideoPreview-BCm0_09s.js new file mode 100644 index 0000000000000000000000000000000000000000..16886d0ff556564a07ee21432200ace00c9afb45 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/VideoPreview-BCm0_09s.js @@ -0,0 +1,32 @@ +import './async-D55cHugf.js'; +import { d as bind_props, f as attr_class, a as attr, g as attr_style, i as stringify, e as ensure_array_like } from './index-u8mz_F03.js'; +import { o as onDestroy } from './index-server-CQz6EZl_.js'; +import { k } from './BlockLabel-bKYWnOzQ.js'; +import { u as u$1 } from './DownloadLink-nj1p0krE.js'; +import { w as w$1 } from './IconButton-BRnu7KaR.js'; +import { p as p$1 } from './Empty-DGRbZO0a.js'; +import { y as y$1 } from './ShareButton-7VTs9dOO.js'; +import { l } from './Download-DcU5dONL.js'; +import { r as r$1 } from './Video-FfbWmOVG.js'; +import { y } from './IconButtonWrapper-CjFRPb3y.js'; +import { b as bs } from './2-BLdXJizP.js'; +import { w, b } from './utils.svelte-B2py64Fz.js'; +import { i } from './Maximize-CuHbK64j.js'; +import { p, c, u } from './VolumeLevels-DlU2d99x.js'; +import { n } from './Play-B_z3rKL1.js'; +import { r } from './Undo-Ce01x-M5.js'; +import { c as ch } from './Video2-BN5I0jvO.js'; +import { v } from './ModifyUpload-CWSi2EyW.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; +import './clone-Yk88IHKV.js'; +import './Clear-D7Yjckqz.js'; +import './Edit-DWZSi_T0.js'; + +const $e=a=>{let t=["B","KB","MB","GB","PB"],e=0;for(;a>1024;)a/=1024,e++;let s=t[e];return a.toFixed(1)+" "+s},et=()=>true;function tt(a,{autoplay:t}){async function e(){t&&await a.play();}return a.addEventListener("loadeddata",e),{destroy(){a.removeEventListener("loadeddata",e);}}}function Ie(a,t){a.component(e=>{let{videoElement:s,trimmedDuration:o=null,dragStart:w=0,dragEnd:p=0,loadingTimeline:_=false}=t,k=[],L=10,m,f=0,v=100,D=null,M=k.length!==L;const x=()=>{D=null;},I=(r,d)=>{if(D){const y=document.getElementById("timeline");if(!y)return;const b=y.getBoundingClientRect();let n=(r.clientX-b.left)/b.width*100;if(d?n=D==="left"?f+d:v+d:n=(r.clientX-b.left)/b.width*100,n=Math.max(0,Math.min(n,100)),D==="left"){f=Math.min(n,v);const g=f/100*m;s.currentTime=g,w=g;}else if(D==="right"){v=Math.max(n,f);const g=v/100*m;s.currentTime=g,p=g;}const c=f/100*m;o=v/100*m-c,f=f,v=v;}},F=r=>{if(D){const d=1/m*100;r.key==="ArrowLeft"?I({clientX:0},-d):r.key==="ArrowRight"&&I({clientX:0},d);}};if(onDestroy(()=>{window.removeEventListener("mousemove",I),window.removeEventListener("mouseup",x),window.removeEventListener("keydown",F);}),e.push('
    '),M)e.push(""),e.push('
    ');else {e.push(""),e.push(`
    `);const r=ensure_array_like(k);for(let d=0,y=r.length;d`);}e.push(`
    `);}e.push("
    "),bind_props(t,{trimmedDuration:o,dragStart:w,dragEnd:p,loadingTimeline:_});});}function Oe(a,t){a.component(e=>{let{videoElement:s=void 0,showRedo:o=false,interactive:w$2=true,mode:p="",handle_reset_value:_,handle_trim_video:k,processingVideo:L=false,i18n:m,value:f=null,show_download_button:v$1=false,handle_clear:D=()=>{},has_change_history:M=false}=t;let x=null,I=0,F=0,O=false;const r$1=()=>{p==="edit"?(p="",s&&(x=s.duration)):p="edit";};let d=true,y;function b(n){n.push(``),p==="edit"&&s?(n.push(""),n.push('
    '),Ie(n,{videoElement:s,get dragStart(){return I},set dragStart(c){I=c,d=false;},get dragEnd(){return F},set dragEnd(c){F=c,d=false;},get trimmedDuration(){return x},set trimmedDuration(c){x=c,d=false;},get loadingTimeline(){return O},set loadingTimeline(c){O=c,d=false;}}),n.push("
    ")):n.push(""),n.push('
    '),p==="edit"&&x!==null?(n.push(""),n.push(`
    Trim Cancel
    `)):(n.push(""),n.push('
    ')),n.push("
    "),v(n,{i18n:m,onclear:()=>D(),download:v$1?f?.url:null,children:c$1=>{o&&p===""?(c$1.push(""),w$1(c$1,{Icon:r,label:"Reset video to initial value",disabled:L||!M,onclick:()=>{_(),p="";}})):c$1.push(""),c$1.push(" "),w$2&&p===""?(c$1.push(""),w$1(c$1,{Icon:c,label:"Trim video to selection",disabled:L,onclick:r$1})):c$1.push(""),c$1.push("");}}),n.push("");}do d=true,y=e.copy(),b(y);while(!d);e.subsume(y),bind_props(t,{mode:p,processingVideo:L});});}function Me(a,t){a.component(e=>{let{root:s="",src:o,subtitle:w$1=null,mirror:p$1,autoplay:_,loop:k,label:L="test",interactive:m=false,handle_change:f=()=>{},handle_reset_value:v=()=>{},upload:D,is_stream:M=void 0,i18n:x,show_download_button:I=false,value:F=null,handle_clear:O=()=>{},has_change_history:r$1=false,playback_position:d=void 0,onplay:y,onpause:b,onstop:n$1,onend:c,onerror:U,onloadstart:g,onloadeddata:T,onloadedmetadata:E}=t,A=0,B=0,S=true,h,C=false,X=1,N=false;async function Q(){h&&document.fullscreenElement!=h&&(h.currentTime>0&&!h.paused&&!h.ended&&h.readyState>h.HAVE_CURRENT_DATA?h.pause():await h.play());}function Z(){n$1?.(),c?.();}const $=async i=>{let R=new File([i],"video.mp4");const ae=await bs([R]);let oe=(await D(ae,s))?.filter(Boolean)[0];f(oe);};let G=1;const ee=.001;function te(){h&&Math.abs(h.volume-G)>ee&&(X=h.volume,G=h.volume);}onDestroy(()=>{h&&h.removeEventListener("volumechange",te);});let P=true,j;function se(i$1){i$1.push(`
    `),ch(i$1,{src:o,preload:"auto",autoplay:_,loop:k,is_stream:M,controls:N,onclick:Q,onplay:()=>y?.(),onpause:()=>b?.(),onerror:R=>U?.(R),onended:Z,"data-testid":`${L}-player`,processingVideo:C,onloadstart:()=>g?.(),onloadeddata:()=>T?.(),onloadedmetadata:()=>E?.(),get currentTime(){return A},set currentTime(R){A=R,P=false;},get duration(){return B},set duration(R){B=R,P=false;},get paused(){return S},set paused(R){S=R,P=false;},get node(){return h},set node(R){h=R,P=false;},children:R=>{R.push(``);},$$slots:{default:true}}),i$1.push('
    '),A===B?(i$1.push(""),r(i$1)):(i$1.push(""),S?(i$1.push(""),n(i$1)):(i$1.push(""),u(i$1)),i$1.push("")),i$1.push(` ${escape_html(w(A))} / ${escape_html(w(B))}
    "),i$1.push(""),i$1.push("
    "),i$1.push(""),i$1.push('
    '),i(i$1),i$1.push("
    "),i$1.push("
    "),m?(i$1.push(""),Oe(i$1,{videoElement:h,showRedo:true,handle_trim_video:$,handle_reset_value:v,value:F,i18n:x,show_download_button:I,handle_clear:O,has_change_history:r$1,get processingVideo(){return C},set processingVideo(R){C=R,P=false;}})):i$1.push(""),i$1.push("");}do P=true,j=e.copy(),se(j);while(!P);e.subsume(j),bind_props(t,{playback_position:d});});}function Fe(a,t){a.component(e=>{let{value:s=null,subtitle:o=null,label:w=void 0,show_label:p=true,autoplay:_,buttons:k$1=null,on_custom_button_click:L=null,loop:m,i18n:f,upload:v,display_icon_button_wrapper_top_corner:D=false,playback_position:M=void 0,onplay:x,onpause:I,onend:F,onstop:O,onload:r,onchange:d,onerror:y$2,onshare:b$1}=t,n=true,c;function U(g){k(g,{show_label:p,Icon:r$1,label:w||"Video"}),g.push(" "),!s||s.url===void 0?(g.push(""),p$1(g,{unpadded_box:true,size:"large",children:T=>{r$1(T);},$$slots:{default:true}})):(g.push(""),g.push(""),Me(g,{src:s.url,subtitle:o?.url,is_stream:s.is_stream,autoplay:_,onplay:()=>x?.(),onpause:()=>I?.(),onstop:()=>O?.(),onend:()=>F?.(),onloadedmetadata:()=>{r?.();},mirror:false,label:w,loop:m,interactive:false,upload:v,i18n:f,get playback_position(){return M},set playback_position(T){M=T,n=false;}}),g.push('
    '),y(g,{display_top_corner:D,buttons:k$1??["download","share"],on_custom_button_click:L,children:T=>{k$1?.some(E=>typeof E=="string"&&E==="download")?(T.push(""),u$1(T,{href:s.is_stream?s.url?.replace("playlist.m3u8","playlist-file"):s.url,download:s.orig_name||s.path,children:E=>{w$1(E,{Icon:l,label:"Download"});},$$slots:{default:true}})):T.push(""),T.push(" "),k$1?.some(E=>typeof E=="string"&&E==="share")?(T.push(""),y$1(T,{i18n:f,onerror:E=>y$2?.(E),onshare:E=>b$1?.(E),value:s,formatter:async E=>E?await b(E.data):""})):T.push(""),T.push("");}}),g.push("
    ")),g.push("");}do n=true,c=e.copy(),U(c);while(!n);e.subsume(c),bind_props(t,{value:s,playback_position:M});});}const st=Object.freeze(Object.defineProperty({__proto__:null,default:Fe},Symbol.toStringTag,{value:"Module"})); + +export { Me as P, Fe as V, et as a, st as b, tt as l, $e as p }; +//# sourceMappingURL=VideoPreview-BCm0_09s.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/VolumeLevels-DlU2d99x.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/VolumeLevels-DlU2d99x.js new file mode 100644 index 0000000000000000000000000000000000000000..abdd742bd3b9746f9f10a6110120f9a44fa5b549 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/VolumeLevels-DlU2d99x.js @@ -0,0 +1,6 @@ +import './async-D55cHugf.js'; + +/* empty css */function u(t){t.push('');}function c(t){t.push('');}function e(t){t.push('Low volume');}function s(t){t.push('High volume');}function h(t){t.push('Muted volume');}function p(t,i){let{currentVolume:o}=i;o==0?(t.push(""),h(t)):(t.push(""),o<.5?(t.push(""),e(t)):(t.push(""),o>=.5?(t.push(""),s(t)):t.push(""),t.push("")),t.push("")),t.push("");} + +export { c, p, u }; +//# sourceMappingURL=VolumeLevels-DlU2d99x.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Walkthrough.svelte_svelte_type_style_lang-DRIsDysA.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Walkthrough.svelte_svelte_type_style_lang-DRIsDysA.js new file mode 100644 index 0000000000000000000000000000000000000000..9e1dc6ad3622bae8d253c52c5e00fd11d5d9f25b --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Walkthrough.svelte_svelte_type_style_lang-DRIsDysA.js @@ -0,0 +1,10 @@ +import { f as fallback } from './async-D55cHugf.js'; +import { b as store_get, o as store_set, f as attr_class, a as attr, g as attr_style, i as stringify, s as slot, u as unsubscribe_stores, d as bind_props, e as ensure_array_like } from './index-u8mz_F03.js'; +import { a as setContext } from './context-CBkBucIx.js'; +import { w as writable } from './index-Cg-Pg6j3.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; + +function O(v){v.push('');}const z={};function J(v,_){v.component(e=>{var o;let p,m,r=fallback(_.visible,true),w=fallback(_.elem_id,""),y=fallback(_.elem_classes,()=>[],true),u=_.selected,h=_.initial_tabs,c=[...h],T=[...h],x=[],q=false,g=new Set;function I(s){for(let l=0;ls?.id===u)||0);let k=false;setContext(z,{register_tab:(s,l)=>(g.add(l),c[l]=s,store_get(o??={},"$selected_tab",n)===false&&s.visible!==false&&s.interactive&&(store_set(n,s.id),store_set(b,l)),l),unregister_tab:(s,l)=>{g.delete(l),store_get(o??={},"$selected_tab",n)===s.id&&store_set(n,c[0]?.id||false),c[l]=null;},selected_tab:n,selected_tab_index:b});function S(s){const l=c.find(d=>d?.id===s);s!==void 0&&l&&l.interactive&&l.visible!==false&&store_get(o??={},"$selected_tab",n)!==l.id&&(u=s,store_set(n,s),store_set(b,c.findIndex(d=>d?.id===s)),q=false);}async function j(){}function A(s){return s===false?false:x.some(l=>l?.id===s)}if(I(h),p=c.length>0,u!==null&&S(u),j(),k=A(store_get(o??={},"$selected_tab",n)),m=c[store_get(o??={},"$selected_tab_index",b)>=0?store_get(o??={},"$selected_tab_index",b):0]?.scale,e.push(``),p){e.push(""),e.push('
    ');const l=ensure_array_like(T);for(let i=0,f=l.length;i"),e.push(``)):e.push(""),e.push("");}e.push(`
    `),O(e),e.push(` `);const d=ensure_array_like(x);for(let i=0,f=d.length;i"),e.push(`${escape_html(a?.label)}`)):e.push(""),e.push("");}e.push("
    ");}else e.push("");e.push(" "),slot(e,_,"default",{}),e.push(""),o&&unsubscribe_stores(o),bind_props(_,{visible:r,elem_id:w,elem_classes:y,selected:u,initial_tabs:h});});} + +export { J, z }; +//# sourceMappingURL=Walkthrough.svelte_svelte_type_style_lang-DRIsDysA.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Webcam-CvKMKUzA.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Webcam-CvKMKUzA.js new file mode 100644 index 0000000000000000000000000000000000000000..8888203951125397439ca568eec42dac139f8cf4 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Webcam-CvKMKUzA.js @@ -0,0 +1,6 @@ +import './async-D55cHugf.js'; + +function h(t){t.push('');} + +export { h }; +//# sourceMappingURL=Webcam-CvKMKUzA.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Webcam2-CNM_PDwT.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Webcam2-CNM_PDwT.js new file mode 100644 index 0000000000000000000000000000000000000000..b6e8c8218749e0d5f685586e76ad54fa11e3a7e7 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/Webcam2-CNM_PDwT.js @@ -0,0 +1,11 @@ +import { f as fallback } from './async-D55cHugf.js'; +import { f as attr_class, a as attr, d as bind_props, g as attr_style } from './index-u8mz_F03.js'; +import { o as onDestroy } from './index-server-CQz6EZl_.js'; +import { b as bs } from './2-BLdXJizP.js'; +import { o } from './StreamingBar-BGU65w2M.js'; +import { h } from './Webcam-CvKMKUzA.js'; + +/* empty css */function U(p,e){p.component(l=>{l.push(`");});}function Z(p,e){p.component(l=>{let o$1,_=fallback(e.stream_state,"closed"),d,r=fallback(e.streaming,false),M=fallback(e.pending,false),h=fallback(e.root,""),w=fallback(e.stream_every,1),u=fallback(e.mode,"image"),b=e.mirror_webcam,E=e.include_audio,L=fallback(e.webcam_constraints,null),T=e.i18n,k=e.upload,y=fallback(e.value,null),W=fallback(e.time_limit,null);function B(){if((!r||r&&s)&&o$1.videoWidth&&o$1.videoHeight){var i=d.getContext("2d");if(d.width=o$1.videoWidth,d.height=o$1.videoHeight,i.drawImage(o$1,0,0,o$1.videoWidth,o$1.videoHeight),b&&(i.scale(-1,1),i.drawImage(o$1,-o$1.videoWidth,0)),r&&(!s||_==="waiting"))return;if(r){d.toDataURL("image/jpeg");return}d.toBlob(a=>{},`image/${r?"jpeg":"png"}`,.8);}}let s=false,g=[],D,c,f;function j(){if(s){f.stop();let i=new Blob(g,{type:c}),a=new FileReader;a.onload=async function(v){if(v.target){let m=new File([i],"sample."+c.substring(6));const H=await bs([m]);(await k(H,h))?.filter(Boolean)[0];}},a.readAsDataURL(i);}else if(typeof MediaRecorder<"u"){g=[];let i=["video/webm","video/mp4"];for(let a of i)if(MediaRecorder.isTypeSupported(a)){c=a;break}if(c===null){console.error("No supported MediaRecorder mimeType");return}f=new MediaRecorder(D,{mimeType:c}),f.addEventListener("dataavailable",function(a){g.push(a.data);}),f.start(200);}s=!s;}function q({destroy:i}={}){u==="image"&&r&&(s=!s),i||(u==="image"?B():j());}function z(i,a){const v=m=>{i&&!i.contains(m.target)&&!m.defaultPrevented&&a(m);};return document.addEventListener("click",v,true),{destroy(){document.removeEventListener("click",v,true);}}}onDestroy(()=>{typeof window>"u"||q({destroy:true});}),l.push('
    '),o(l,{time_limit:W}),l.push(` `),l.push(""),l.push('
    '),U(l),l.push("
    "),l.push("
    "),bind_props(e,{stream_state:_,streaming:r,pending:M,root:h,stream_every:w,mode:u,mirror_webcam:b,include_audio:E,webcam_constraints:L,i18n:T,upload:k,value:y,time_limit:W,click_outside:z});});} + +export { Z }; +//# sourceMappingURL=Webcam2-CNM_PDwT.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/_commonjs-dynamic-modules-DX_xVkta.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/_commonjs-dynamic-modules-DX_xVkta.js new file mode 100644 index 0000000000000000000000000000000000000000..0bc9942a58f3e05789dc8d67525c6c1c5c74b058 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/_commonjs-dynamic-modules-DX_xVkta.js @@ -0,0 +1,4 @@ +function r(o){throw new Error('Could not dynamically require "'+o+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')} + +export { r }; +//# sourceMappingURL=_commonjs-dynamic-modules-DX_xVkta.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/_layout.svelte-D_OOsCko.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/_layout.svelte-D_OOsCko.js new file mode 100644 index 0000000000000000000000000000000000000000..5a3704c3afe84d159ff5d0c0d61071048914834d --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/_layout.svelte-D_OOsCko.js @@ -0,0 +1,9 @@ +import './async-D55cHugf.js'; +import { s as slot } from './index-u8mz_F03.js'; +import './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; + +function a(t,o){t.push(""),slot(t,o,"default",{}),t.push("");} + +export { a as default }; +//# sourceMappingURL=_layout.svelte-D_OOsCko.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/_page.svelte-BWlVXSOW.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/_page.svelte-BWlVXSOW.js new file mode 100644 index 0000000000000000000000000000000000000000..d6b2035af0e6e12b84ec6188b9d5efb0b214b7de --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/_page.svelte-BWlVXSOW.js @@ -0,0 +1,45 @@ +import './async-D55cHugf.js'; +import { h as head, a as attr, e as ensure_array_like, b as store_get, c as spread_props, u as unsubscribe_stores, d as bind_props, f as attr_class, g as attr_style } from './index-u8mz_F03.js'; +import { r as run } from './legacy-server-CxBQ4HtA.js'; +import { g as getContext } from './context-CBkBucIx.js'; +import { Embed as ct, AppTree as ht } from './index-CF7WUfN6.js'; +import { l as ls, p as ps, g as gs } from './2-BLdXJizP.js'; +import { e, s } from './dev-fallback-Bc5Ork7Y.js'; +import { A } from './client-6TQ9sIPg.js'; +import { a } from './index5-BoOEKc6P.js'; +import { d as derived, w as writable, g as get } from './index-Cg-Pg6j3.js'; +import { V, U } from './state.svelte-CyN-p1Tk.js'; +import { d, k } from './utils.svelte-B2py64Fz.js'; +import { o } from './BaseForm-AADCIM1D.js'; +import { e as et } from './Textbox-DO7UelKj.js'; +import { G } from './Block-DZmzQwnI.js'; +import { q } from './Button-C_X4rUwO.js'; +import { y } from './Index.svelte_svelte_type_style_lang-DXpx_9zF.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; +import { h as html } from './html-CfyvkLET.js'; +import './index-server-CQz6EZl_.js'; +import './exports-Caq1H35p.js'; +import './index50-G3WrDDFf.js'; +import 'path'; +import 'url'; +import 'fs'; +import './index3-Df92vI-L.js'; +import './IconButton-BRnu7KaR.js'; +import './Clear-D7Yjckqz.js'; +import './clone-Yk88IHKV.js'; +import './BlockTitle-BnJIYf6a.js'; +import './Info-DU6zbiUl.js'; +import './Check-C7_ZsXgh.js'; +import './Copy-B8YOhH7c.js'; +import './Send-C1RPCeF6.js'; +import './Square-CDuLMWYC.js'; +import './IconButtonWrapper-CjFRPb3y.js'; +import './Image-CuPo5pWT.js'; + +const vt=()=>{const s$1=s?A:getContext("__svelte__");return {page:{subscribe:s$1.page.subscribe},navigating:{subscribe:s$1.navigating.subscribe},updated:s$1.updated}},Vt={subscribe(s){return (e?Zt("page"):vt().page).subscribe(s)}};function Zt(s){try{return vt()[s]}catch{throw new Error(`Cannot subscribe to '${s}' store on the server outside of a Svelte component, as it is bound to the current request via component context. This prevents state from leaking between users.For more information, see https://svelte.dev/docs/kit/state-management#avoid-shared-state-on-the-server`)}}var Wt=()=>{const s=document.createElement("link");s.href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700;1,900&display=swap",s.rel="stylesheet";const t=document.createElement("link");t.href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600;700&display=swap",t.rel="stylesheet",document.head.appendChild(s),document.head.appendChild(t);},Ht=()=>{const s=document.createElement("div");return s.style.backgroundImage="linear-gradient(to top, #f9fafb, white)",s.style.border="1px solid #e5e7eb",s.style.borderRadius="0.75rem",s.style.boxShadow="0 0 10px rgba(0, 0, 0, 0.1)",s.style.color="#374151",s.style.display="flex",s.style.flexDirection="row",s.style.alignItems="center",s.style.height="40px",s.style.justifyContent="space-between",s.style.overflow="hidden",s.style.position="fixed",s.style.right=".75rem",s.style.top=".75rem",s.style.width="auto",s.style.zIndex="20",s.style.paddingLeft="1rem",s.setAttribute("id","huggingface-space-header"),window.matchMedia("(max-width: 768px)").addEventListener("change",t=>{t.matches?s.style.display="none":s.style.display="flex";}),s},Jt=()=>{const s=document.createElementNS("http://www.w3.org/2000/svg","svg");s.setAttribute("xmlns","http://www.w3.org/2000/svg"),s.setAttribute("xmlns:link","http://www.w3.org/1999/xlink"),s.setAttribute("aria-hidden","true"),s.setAttribute("focusable","false"),s.setAttribute("role","img"),s.setAttribute("width","1em"),s.setAttribute("height","1em"),s.setAttribute("preserveAspectRatio","xMidYMid meet"),s.setAttribute("viewBox","0 0 12 12"),s.setAttribute("fill","currentColor");const t=document.createElementNS("http://www.w3.org/2000/svg","path");return t.setAttribute("d","M0.375001 10.3828L0.375 1.61719C0.375 1.104 0.816001 0.687501 1.35938 0.687501L10.6406 0.6875C10.9017 0.6875 11.1521 0.785449 11.3367 0.959797C11.5213 1.13415 11.625 1.37062 11.625 1.61719V10.3828C11.625 10.6294 11.5213 10.8659 11.3367 11.0402C11.1521 11.2145 10.9017 11.3125 10.6406 11.3125H1.35938C0.816001 11.3125 0.375001 10.896 0.375001 10.3828ZM1.35938 10.5156H10.6406C10.7183 10.5156 10.7813 10.4561 10.7813 10.3828V4.40625H1.21875V10.3828C1.21875 10.418 1.23356 10.4518 1.25994 10.4767C1.28631 10.5017 1.32208 10.5156 1.35938 10.5156ZM4.61052 6.38251L5.9999 7.69472L7.38927 6.38251C7.44083 6.33007 7.50645 6.29173 7.57913 6.27153C7.6518 6.25134 7.72898 6.25003 7.8024 6.26776C7.87583 6.28549 7.9428 6.3216 7.99628 6.37227C8.04983 6.42295 8.08785 6.48631 8.10645 6.5557C8.12528 6.62497 8.12393 6.69773 8.10263 6.76635C8.0814 6.83497 8.0409 6.8969 7.98555 6.94564L6.29802 8.53936C6.21892 8.61399 6.11169 8.65592 5.9999 8.65592C5.8881 8.65592 5.78087 8.61399 5.70177 8.53936L4.01427 6.94564C3.95874 6.89694 3.91814 6.835 3.89676 6.76633C3.87538 6.69766 3.874 6.62483 3.89277 6.55549C3.91154 6.48615 3.94977 6.42287 4.00343 6.37233C4.05708 6.32179 4.12418 6.28585 4.19765 6.2683C4.27098 6.25054 4.34803 6.25178 4.42068 6.27188C4.49334 6.29198 4.55891 6.3302 4.61052 6.38251Z"),s.appendChild(t),s},Yt=(s,t)=>{const i=document.createElement("div");return i.setAttribute("id","space-header__collapse"),i.style.display="flex",i.style.flexDirection="row",i.style.alignItems="center",i.style.justifyContent="center",i.style.fontSize="16px",i.style.paddingLeft="10px",i.style.paddingRight="10px",i.style.height="40px",i.style.cursor="pointer",i.style.color="#40546e",i.style.transitionDuration="0.1s",i.style.transitionProperty="all",i.style.transitionTimingFunction="ease-in-out",i.appendChild(Jt()),i.addEventListener("click",e=>{e.preventDefault(),e.stopPropagation(),t();}),i.addEventListener("mouseenter",()=>{i.style.color="#213551";}),i.addEventListener("mouseleave",()=>{i.style.color="#40546e";}),i},Kt=s=>{const t=document.createElement("p");return t.style.margin="0",t.style.padding="0",t.style.color="#9ca3af",t.style.fontSize="14px",t.style.fontFamily="Source Sans Pro, sans-serif",t.style.padding="0px 6px",t.style.borderLeft="1px solid #e5e7eb",t.style.marginLeft="4px",t.textContent=(s??0).toString(),t},Qt=()=>{const s=document.createElementNS("http://www.w3.org/2000/svg","svg");s.setAttribute("xmlns","http://www.w3.org/2000/svg"),s.setAttribute("xmlns:link","http://www.w3.org/1999/xlink"),s.setAttribute("aria-hidden","true"),s.setAttribute("focusable","false"),s.setAttribute("role","img"),s.setAttribute("width","1em"),s.setAttribute("height","1em"),s.setAttribute("preserveAspectRatio","xMidYMid meet"),s.setAttribute("viewBox","0 0 32 32"),s.setAttribute("fill","#6b7280");const t=document.createElementNS("http://www.w3.org/2000/svg","path");return t.setAttribute("d","M22.45,6a5.47,5.47,0,0,1,3.91,1.64,5.7,5.7,0,0,1,0,8L16,26.13,5.64,15.64a5.7,5.7,0,0,1,0-8,5.48,5.48,0,0,1,7.82,0L16,10.24l2.53-2.58A5.44,5.44,0,0,1,22.45,6m0-2a7.47,7.47,0,0,0-5.34,2.24L16,7.36,14.89,6.24a7.49,7.49,0,0,0-10.68,0,7.72,7.72,0,0,0,0,10.82L16,29,27.79,17.06a7.72,7.72,0,0,0,0-10.82A7.49,7.49,0,0,0,22.45,4Z"),s.appendChild(t),s},Xt=s=>{const t=document.createElement("a");return t.setAttribute("href",`https://huggingface.co/spaces/${s.id}`),t.setAttribute("rel","noopener noreferrer"),t.setAttribute("target","_blank"),t.style.border="1px solid #e5e7eb",t.style.borderRadius="6px",t.style.display="flex",t.style.flexDirection="row",t.style.alignItems="center",t.style.margin="0 0 0 12px",t.style.fontSize="14px",t.style.paddingLeft="4px",t.style.textDecoration="none",t.appendChild(Qt()),t.appendChild(Kt(s.likes)),t},$t=(s,t="user")=>{const i=t==="user"?"users":"organizations",e=document.createElement("img");return e.src=`https://huggingface.co/api/${i}/${s}/avatar`,e.style.width="0.875rem",e.style.height="0.875rem",e.style.borderRadius="50%",e.style.flex="none",e.style.marginRight="0.375rem",e},te=s=>{const[t,i]=s.split("/"),e=document.createElement("a");return e.setAttribute("href",`https://huggingface.co/spaces/${s}`),e.setAttribute("rel","noopener noreferrer"),e.setAttribute("target","_blank"),e.style.color="#1f2937",e.style.textDecoration="none",e.style.fontWeight="600",e.style.fontSize="15px",e.style.lineHeight="24px",e.style.flex="none",e.style.fontFamily="IBM Plex Mono, sans-serif",e.addEventListener("mouseover",()=>{e.style.color="#2563eb";}),e.addEventListener("mouseout",()=>{e.style.color="#1f2937";}),e.textContent=i,e},ee=()=>{const s=document.createElement("div");return s.style.marginLeft=".125rem",s.style.marginRight=".125rem",s.style.color="#d1d5db",s.textContent="/",s},se=s=>{const t=document.createElement("a");return t.setAttribute("href",`https://huggingface.co/${s}`),t.setAttribute("rel","noopener noreferrer"),t.setAttribute("target","_blank"),t.style.color="rgb(107, 114, 128)",t.style.textDecoration="none",t.style.fontWeight="400",t.style.fontSize="16px",t.style.lineHeight="24px",t.style.flex="none",t.style.fontFamily="Source Sans Pro, sans-serif",t.addEventListener("mouseover",()=>{t.style.color="#2563eb";}),t.addEventListener("mouseout",()=>{t.style.color="rgb(107, 114, 128)";}),t.textContent=s,t},ie=s=>{const t=document.createElement("div");return t.style.display="flex",t.style.flexDirection="row",t.style.alignItems="center",t.style.justifyContent="center",t.style.borderRight="1px solid #e5e7eb",t.style.paddingRight="12px",t.style.height="40px",s.type!=="unknown"&&t.appendChild($t(s.author,s.type)),t.appendChild(se(s.author)),t.appendChild(ee()),t.appendChild(te(s.id)),t.appendChild(Xt(s)),t},ne=s=>{const t=Ht(),i=()=>t.style.display="none";return t.appendChild(ie(s)),t.appendChild(Yt(s,i)),t},mt=async(s,t="user")=>{const i=t==="user"?"users":"organizations";try{return (await fetch(`https://huggingface.co/api/${i}/${s}/avatar`)).ok}catch{return false}},ae=async s=>{try{return await(await fetch(`https://huggingface.co/api/spaces/${s}`)).json()}catch{return null}},oe=(s,t)=>{if(document.body===null)return console.error("document.body is null");document.body.appendChild(s);};async function re(s,t){if(window===void 0)return console.error("Please run this script in a browser environment");if(Object.values(window.location?.ancestorOrigins??{0:window.document.referrer}).some(u=>new URL(u)?.origin==="https://huggingface.co"))return;Wt();let e;if(typeof s=="string"){if(e=await ae(s),e===null)return console.error("Space not found")}else e=s;const[n,o]=await Promise.all([mt(e.author,"user"),mt(e.author,"org")]);e.type=n?"user":o?"org":"unknown";const l=ne(e);return oe(l),{element:l}}var le=(s,t)=>re(s);function ce(s,t){s.component(i=>{let{node:e,children:n,$$slots:o,$$events:l,...u}=t;i.run([async()=>await e.component,async()=>await e.runtime,()=>null,()=>{}]),i.push("");});}function ot(s,t){s.component(i=>{let{node:e,$$slots:n,$$events:o,...l}=t;var u,p=i.run([async()=>u=await e.component]);i.async_block([p[0]],C=>{e&&u?(C.push(""),C.async_block([p[0]],A=>{e.props.shared_props.visible&&!e.runtime?(A.push(""),A.async_block([p[0]],_=>{_.push(""),u.default?.(_,{shared_props:e.props.shared_props,props:e.props.props,children:w=>{w.async_block([p[0]],y=>{e.children&&e.children.length?(y.push(""),y.push(""),y.async_block([p[0]],E=>{const c=ensure_array_like(e.children);for(let h=0,m=c.length;h")):y.push("");}),w.push("");},$$slots:{default:true}});})):(A.push(""),A.async_block([p[0]],_=>{e.props.shared_props.visible&&e.runtime?(_.push(""),_.async_block([p[0]],w=>{ce(w,spread_props([l,{node:e,children:y=>{y.async_block([p[0]],E=>{e.children&&e.children.length?(E.push(""),E.push(""),E.async_block([p[0]],c=>{const h=ensure_array_like(e.children);for(let m=0,L=h.length;m")):E.push("");}),y.push("");},$$slots:{default:true}}]));})):_.push("");}),A.push(""));}),C.push("")):C.push("");}),i.push("");});}function ue(s){if(s==null)return "";const t=String(s),i=get(ls);if(t.includes(d))return k(t,i);const e=i(t);return typeof e=="string"&&e!==t?e:t}const j=derived(ls,()=>ue),de="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='576'%20height='576'%20viewBox='0%200%20576%20576'%20fill='none'%3e%3cpath%20d='M287.5%20229L86%20344.5L287.5%20460L489%20344.5L287.5%20229Z'%20stroke='url(%23paint0_linear_102_7)'%20stroke-width='59'%20stroke-linejoin='round'/%3e%3cpath%20d='M287.5%20116L86%20231.5L287.5%20347L489%20231.5L287.5%20116Z'%20stroke='url(%23paint1_linear_102_7)'%20stroke-width='59'%20stroke-linejoin='round'/%3e%3cpath%20d='M86%20344L288%20229'%20stroke='url(%23paint2_linear_102_7)'%20stroke-width='59'%20stroke-linejoin='bevel'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_102_7'%20x1='60'%20y1='341'%20x2='429.5'%20y2='344'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23F9D100'/%3e%3cstop%20offset='1'%20stop-color='%23F97700'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_102_7'%20x1='513.5'%20y1='231'%20x2='143.5'%20y2='231'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23F9D100'/%3e%3cstop%20offset='1'%20stop-color='%23F97700'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint2_linear_102_7'%20x1='60'%20y1='344'%20x2='428.987'%20y2='341.811'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23F9D100'/%3e%3cstop%20offset='1'%20stop-color='%23F97700'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",pe="data:image/svg+xml,%3csvg%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M26.9425%202.94265C27.4632%202.42195%2027.4632%201.57773%2026.9425%201.05703C26.4218%200.536329%2025.5776%200.536329%2025.0569%201.05703L22.5713%203.54256C21.1213%202.59333%2019.5367%202.43378%2018.1753%202.64006C16.5495%202.88638%2015.1127%203.66838%2014.3905%204.39053L12.3905%206.39053C12.1405%206.64058%2012%206.97972%2012%207.33334C12%207.68697%2012.1405%208.0261%2012.3905%208.27615L19.7239%2015.6095C20.2446%2016.1302%2021.0888%2016.1302%2021.6095%2015.6095L23.6095%2013.6095C24.3316%2012.8873%2025.1136%2011.4505%2025.36%209.82475C25.5663%208.46312%2025.4066%206.87827%2024.4571%205.42807L26.9425%202.94265Z'%20fill='%233c4555'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.276%2012.9426C12.7967%2012.4219%2012.7967%2011.5777%2012.276%2011.057C11.7553%2010.5363%2010.9111%2010.5363%2010.3904%2011.057L8.66651%2012.7809L8.27615%2012.3905C8.0261%2012.1405%207.68697%2012%207.33334%2012C6.97972%2012%206.64058%2012.1405%206.39053%2012.3905L4.39053%2014.3905C3.66838%2015.1127%202.88638%2016.5495%202.64006%2018.1753C2.43377%2019.5367%202.59333%2021.1214%203.54262%2022.5714L1.05703%2025.057C0.536329%2025.5777%200.536329%2026.4219%201.05703%2026.9426C1.57773%2027.4633%202.42195%2027.4633%202.94265%2026.9426L5.42817%2024.4571C6.87835%2025.4066%208.46315%2025.5663%209.82475%2025.36C11.4505%2025.1136%2012.8873%2024.3316%2013.6095%2023.6095L15.6095%2021.6095C16.1302%2021.0888%2016.1302%2020.2446%2015.6095%2019.7239L15.2188%2019.3332L16.9426%2017.6093C17.4633%2017.0886%2017.4633%2016.2444%2016.9426%2015.7237C16.4219%2015.203%2015.5777%2015.203%2015.057%2015.7237L13.3332%2017.4475L10.5521%2014.6665L12.276%2012.9426Z'%20fill='%23FF7C00'/%3e%3c/svg%3e",_e="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3c!--%20Outer%20gear%20teeth%20(gray)%20--%3e%3cpath%20d='M19.14%2012.94c.04-.3.06-.61.06-.94%200-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24%200-.43.17-.47.41l-.36%202.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47%200-.59.22L2.74%208.87c-.12.21-.08.47.12.61l2.03%201.58c-.05.3-.07.62-.07.94s.02.64.07.94l-2.03%201.58c-.18.14-.23.41-.12.61l1.92%203.32c.12.22.37.29.59.22l2.39-.96c.5.38%201.03.7%201.62.94l.36%202.54c.05.24.24.41.48.41h3.84c.24%200%20.44-.17.47-.41l.36-2.54c.59-.24%201.13-.56%201.62-.94l2.39.96c.22.08.47%200%20.59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12%2015.6c-1.98%200-3.6-1.62-3.6-3.6s1.62-3.6%203.6-3.6%203.6%201.62%203.6%203.6-1.62%203.6-3.6%203.6z'%20fill='%23808080'/%3e%3c!--%20Inner%20circle%20(now%20gray)%20--%3e%3ccircle%20cx='12'%20cy='12'%20r='2.5'%20fill='%23808080'/%3e%3c/svg%3e",he="data:image/svg+xml,%3csvg%20viewBox='0%200%2020%2020'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='%23000000'%3e%3cg%20id='SVGRepo_bgCarrier'%20stroke-width='0'%3e%3c/g%3e%3cg%20id='SVGRepo_tracerCarrier'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3c/g%3e%3cg%20id='SVGRepo_iconCarrier'%3e%3ctitle%3erecord%20[%23982]%3c/title%3e%3cdesc%3eCreated%20with%20Sketch.%3c/desc%3e%3cdefs%3e%3c/defs%3e%3cg%20id='Page-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Dribbble-Light-Preview'%20transform='translate(-380.000000,%20-3839.000000)'%20fill='%23FF0000'%3e%3cg%20id='icons'%20transform='translate(56.000000,%20160.000000)'%3e%3cpath%20d='M338,3689%20C338,3691.209%20336.209,3693%20334,3693%20C331.791,3693%20330,3691.209%20330,3689%20C330,3686.791%20331.791,3685%20334,3685%20C336.209,3685%20338,3686.791%20338,3689%20M334,3697%20C329.589,3697%20326,3693.411%20326,3689%20C326,3684.589%20329.589,3681%20334,3681%20C338.411,3681%20342,3684.589%20342,3689%20C342,3693.411%20338.411,3697%20334,3697%20M334,3679%20C328.477,3679%20324,3683.477%20324,3689%20C324,3694.523%20328.477,3699%20334,3699%20C339.523,3699%20344,3694.523%20344,3689%20C344,3683.477%20339.523,3679%20334,3679'%20id='record-[%23982]'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",fe=/^'([^]+)'$/,bt=Symbol("NOVALUE");class ge{id;inputs;outputs;cancels;pending=false;trigger_modes;event_args={};targets=[];connection_type;triggers=[];original_trigger_id=null;show_progress_on=null;component_prop_inputs=[];show_progress;functions;constructor(t){this.id=t.id,this.original_trigger_id=t.id,this.inputs=t.inputs,this.outputs=t.outputs,this.connection_type=t.connection,this.show_progress=t.show_progress,this.functions={frontend:t.js?ve(t.js,t.backend_fn,t.inputs.length,t.outputs.length):void 0,backend:t.backend_fn,backend_js:t.js_implementation?new gs(`let result = await (${t.js_implementation})(...arguments); + return (!Array.isArray(result)) ? [result] : result;`):void 0},this.targets=t.targets,this.cancels=t.cancels,this.trigger_modes=t.trigger_mode,this.show_progress_on=t.show_progress_on||null,this.component_prop_inputs=t.component_prop_inputs||[];for(let i=0;it==="success").map(([t])=>t),failure:this.triggers.filter(([,t])=>t==="failure").map(([t])=>t),all:this.triggers.filter(([,t])=>t==="all").map(([t])=>t)}}}class me{dependencies_by_fn=new Map;dependencies_by_event=new Map;render_id_deps=new Map;submissions=new Map;client;queue=new Set;add_to_api_calls;update_state_cb;get_state_cb;rerender_cb;log_cb;on_connection_lost_cb;loading_stati=new V;connection_lost=false;constructor(t,i,e,n,o,l,u,p){this.add_to_api_calls=u,this.log_cb=l,this.update_state_cb=e,this.get_state_cb=n,this.rerender_cb=o,this.on_connection_lost_cb=p,this.client=i,this.reload(t,e,n,o,i);}reload(t,i,e,n,o){const{by_id:l,by_event:u}=this.create(t);this.dependencies_by_event=u,this.dependencies_by_fn=l,this.client=o,this.update_state_cb=i,this.get_state_cb=e,this.rerender_cb=n;for(const[p,C]of this.dependencies_by_fn)for(const[A]of C.targets)this.set_event_args(A,C.event_args);this.register_loading_stati(l);}register_loading_stati(t){for(const[i,e]of t)this.loading_stati.register(e.id,e.show_progress_on||e.outputs,e.inputs,e.show_progress);}clear_loading_status(t){this.loading_stati.clear(t);}async update_loading_stati_state(){for(const[t,i]of Object.entries(this.loading_stati.current))this.update_state_cb(Number(t),{loading_status:i},false);}dispatch_state_change_events(t){if(t.changed_state_ids)for(const i of t.changed_state_ids)this.dependencies_by_event.get("change-"+i)?.forEach(n=>{this.dispatch({type:"fn",fn_index:n.id,target_id:i,event_data:null});});}async dispatch(t){if(this.connection_lost)return;let i;if(t.type==="fn"){const e=this.dependencies_by_fn.get(t.fn_index);e&&(i=[e]);}else i=this.dependencies_by_event.get(`${t.event_name}-${t.target_id}`);for(let e=0;e<(i?.length||0);e++){const n=i?i[e]:void 0;if(n){this.cancel(n.cancels);const o=ye(n.trigger_modes,this.submissions.has(n.id));if(o==="skip")continue;if(o==="defer"){this.queue.add(n.id);continue}n.functions.backend&&(this.loading_stati.update({status:"pending",fn_index:n.id,stream_state:null}),this.update_loading_stati_state());const l=await this.gather_state(n.inputs,n.component_prop_inputs),u=await Promise.all(n.targets.map(([_])=>this.set_event_args(_,n.event_args))),{success:p,failure:C,all:A}=n.get_triggers();try{let _=null;if(t.target_id!==void 0||t.type==="event"?_=t.target_id||null:_=n.original_trigger_id,n.connection_type==="stream"&&this.submissions.has(n.id)){const y=this.submissions.get(n.id);let E={fn_index:n.id,data:l,event_data:t.event_data};y.send_chunk(E),u.forEach(c=>c());continue}this.add_to_api_calls({fn_index:n.id,data:l,event_data:t.event_data,trigger_id:_});const w=await n.run(this.client,l,t.event_data,_);if(w.type==="void")u.forEach(y=>y());else if(w.type==="data")await this.handle_data(n.outputs,w.data),u.forEach(y=>y());else {let y=null;n.connection_type==="stream"&&!this.submissions.has(n.id)&&(y="waiting"),this.submissions.set(n.id,w.data);let E=0;t:for await(const c of w.data)if(E===0&&n.inputs.forEach(h=>{this.update_state_cb(h,{loading_status:{validation_error:null}},!1);}),E+=1,c!==null){if(c.type==="data"&&await this.handle_data(n.outputs,c.data),c.type==="status"){c.original_msg==="process_starts"&&n.connection_type==="stream"&&(y="open");const{fn_index:h,...m}=c;if(c.stage==="complete"){y="closed",p.forEach(L=>{this.dispatch({type:"fn",fn_index:L,event_data:null,target_id:_});}),this.dispatch_state_change_events(c),this.loading_stati.update({...m,status:m.stage,fn_index:n.id,stream_state:y}),this.update_loading_stati_state();break t}else if(c.stage==="generating")this.dispatch_state_change_events(c),this.loading_stati.update({...m,status:m.stage,fn_index:n.id,stream_state:y}),this.update_loading_stati_state();else if(c.stage==="error"){if(c.broken||c.session_not_found){this.connection_lost||(this.connection_lost=!0,this.on_connection_lost_cb()),this.loading_stati.update({status:"complete",fn_index:n.id,stream_state:null}),this.update_loading_stati_state();break t}if(Array.isArray(c?.message)){c.message.forEach((x,O)=>{this.update_state_cb(n.inputs[O],{loading_status:{validation_error:x.is_valid?null:x.message,show_validation_error:!0}},!1);}),n.outputs.forEach(x=>{n.inputs.includes(x)||this.update_state_cb(x,{loading_status:{status:null}},!1);}),u.forEach(x=>x()),this.submissions.delete(n.id),this.queue.has(n.id)&&(this.queue.delete(n.id),this.dispatch(t));return}const L=c?.message?.replace(fe,(x,O)=>O);throw this.log_cb(c?._title??"Error",L||"",h,"error",m.duration,m.visible),new Error("Dependency function failed")}else this.loading_stati.update({...m,status:m.stage,fn_index:n.id,stream_state:y}),this.update_loading_stati_state();}if(c.type==="render"){this.loading_stati.update({status:"complete",fn_index:n.id,stream_state:null}),this.update_loading_stati_state();const{layout:h,components:m,render_id:L,dependencies:x}=c.data;this.rerender_cb(m,h);const{by_id:O,by_event:H}=this.create(x);this.register_loading_stati(O),O.forEach(M=>this.dependencies_by_fn.set(M.id,M)),H.forEach((M,U)=>this.dependencies_by_event.set(U,M));const G=this.render_id_deps.get(L);G&&G.forEach(M=>{O.has(M)||this.dependencies_by_fn.delete(M);}),this.render_id_deps.set(L,new Set(Array.from(O.keys()))),this.register_loading_stati(O);break t}c.type==="log"&&this.handle_log(c);}A.forEach(c=>{this.dispatch({type:"fn",fn_index:c,event_data:null,target_id:_});}),u.forEach(c=>c()),this.submissions.delete(n.id),this.queue.has(n.id)&&(this.queue.delete(n.id),this.dispatch(t));}}catch{this.loading_stati.update({status:"error",fn_index:n.id,eta:0,queue:false,stream_state:null}),this.update_loading_stati_state(),this.submissions.delete(n.id),C.forEach(w=>{this.dispatch({type:"fn",fn_index:w,event_data:null});});}}}}create(t){const i=new Map,e=new Map,n=[];for(const o of t){const l=new ge(o);for(const[u,p]of o.targets)e.has(`${p}-${u}`)||e.set(`${p}-${u}`,[]),e.get(`${p}-${u}`)?.push(l);if(i.set(o.id,l),o.trigger_after!==void 0){const u=o.trigger_only_on_failure?"failure":o.trigger_only_on_success?"success":"all";n.push([o.id,o.trigger_after,u]);}}for(const[o,l,u]of n){const p=i.get(l);p&&(p.add_trigger(o,u),p.original_trigger_id=we(t,l));}return {by_id:i,by_event:e}}handle_log(t){const{title:i,log:e,fn_index:n,level:o,duration:l,visible:u}=t;this.log_cb(i,e,n,o,l,u);}async handle_data(t,i){await Promise.all(t.map(async(e,n)=>{const o=i[n]===void 0?bt:i[n];if(o!==bt)if(be(o)){let l=false,u=null;for(const[p,C]of Object.entries(o))if(p!=="__type__"){if(p==="visible"){l=true,u=C;continue}await this.update_state_cb(t[n],{[p]:C},false);}l&&await this.update_state_cb(t[n],{visible:u},true);}else await this.update_state_cb(e,{value:o},false);}));}async gather_state(t,i=[]){return (await Promise.all(t.map(e=>this.get_state_cb(e)))).map((e,n)=>i.includes(n)?e??null:e?.value??null)}async set_event_args(t,i){let e={};const n=await this.get_state_cb?.(t);if(!n)return ()=>{};for(const[o]of Object.entries(i))e[o]=n?.[o]??null;return Object.keys(i).length===0?()=>{}:(await this.update_state_cb(t,i,false),()=>{this.update_state_cb(t,e,false);})}async cancel(t){if(t)for(const i of t){const e=this.submissions.get(i);if(e){await e.cancel(),this.loading_stati.update({status:"complete",fn_index:i,eta:0,queue:false,stream_state:null}),this.update_loading_stati_state(),this.submissions.delete(i);const{failure:n,all:o}=this.dependencies_by_fn.get(i)?.get_triggers()||{failure:[],all:[]};n.forEach(l=>{this.dispatch({type:"fn",fn_index:l,event_data:null,target_id:i});}),o.forEach(l=>{this.dispatch({type:"fn",fn_index:l,event_data:null,target_id:i});});}}}dispatch_load_events(){this.dependencies_by_fn.forEach(t=>{t.targets.forEach(([i,e])=>{e==="load"&&this.dispatch({type:"fn",fn_index:t.id,event_data:null,target_id:i});});});}get_fns_from_targets(t){const i=[];return this.dependencies_by_event.forEach((e,n)=>{const[,o]=n.split("-");Number(o)===t&&e.forEach(l=>{i.push(l.id);});}),i}close_stream(t){const i=this.get_fns_from_targets(t);for(const e of i){const n=this.submissions.get(e);n&&(n.close_stream(),this.submissions.delete(e)),this.loading_stati.update({status:"complete",fn_index:e,eta:0,queue:false,stream_state:"closed"});}this.update_loading_stati_state();}}function be(s){return typeof s=="object"&&s!==null&&"__type__"in s&&s?.__type__==="update"}function ye(s,t){return t?s==="always_last"?"defer":s==="multiple"?"run":s==="once"?"skip":"run":"run"}function ve(s,t,i,e){const n=t?i===1:e===1;try{return new gs("__fn_args",` let result = await (${s})(...__fn_args); + if (typeof result === "undefined") return []; + return (${n} && !Array.isArray(result)) ? [result] : result;`)}catch(o){throw o}}function we(s,t){let i=new Map,e=t,n=0;for(;n<100;){const o=i.get(e)||s.find(l=>l.id===e);if(!o||(i.set(o.id,o),o.trigger_after===null||o.trigger_after===void 0))break;e=o.trigger_after,n+=1;}return e}function xe(s,t){s.component(i=>{var e;let{root:n,components:o,layout:l,dependencies:u,title:p,target:C,autoscroll:A,footer_links:_,control_page_title:w,app_mode:y,theme_mode:E,app:c,space_id:h,version:m,js:L,fill_height:x,username:O,api_prefix:H,max_file_size:G,initial_layout:M,css:U$1,vibe_mode:q,search_params:V,render_complete:z=false,ready:Q=false,reload_count:J=0,add_new_message:N=void 0}=t;o.forEach(a=>{a.props.i18n||(a.props.i18n=store_get(e??={},"$reactive_formatter",j));});let D=[],T=null;function f(a,g,R){if(g==="share"){const{title:W,description:_t}=R;}else if(g==="error")K("Error",R,-1,g,10,true);else if(g==="warning")K("Warning",R,-1,g,10,true);else if(g==="info")K("Info",R,-1,g,10,true);else if(g==="gradio_expand"||g==="gradio_tab_select"){const W=g==="gradio_expand"?a:R.component_id;S.render_previously_invisible_children(W);}else if(g=="clear_status")S.update_state(a,{loading_status:{}},false),b.clear_loading_status(a);else if(g=="close_stream")b.close_stream(a);else if(g==="custom_button_click"){const W=R.id;P(W,"click",null);}else g==="select"&&a in S.initial_tabs&&(a=R.id),b.dispatch({type:"event",event_name:g,target_id:a,event_data:R});}let S=new ht(o,l,u,{root:n,theme:E,version:m,api_prefix:H,max_file_size:G,autoscroll:A,fill_height:x},c,store_get(e??={},"$reactive_formatter",j),f);function P(a,g,R){b.dispatch({type:"event",event_name:g,target_id:a,event_data:R});}let Z=[],X=null,v=a=>{X=a,Y&&(Z=[...Z,X]);};function d(){D=D.filter(a=>a.type!=="error"),++st,D.push({title:"Connection Lost",message:xt,fn_index:-1,type:"error",id:st,duration:null,visible:true}),T=setInterval(async()=>{try{const a=await c.reconnect();(a==="connected"||a==="changed")&&(clearInterval(T),T=null,window.location.reload());}catch(a){console.debug(a);}},2e3);}let b=new me(u,c,S.update_state.bind(S),S.get_state.bind(S),S.rerender.bind(S),K,v,d),k=350,F=V.get("view")==="api"&&_.includes("api"),B=V.get("view")==="settings",Y=V.get("view")==="api-recorder"&&_.includes("api"),ct=null,$=null;function K(a,g,R,W,_t=10,ht=false){ht&&D.push({title:a,message:g,fn_index:R,type:W,id:++st,duration:_t,visible:ht});}N=K;let st=-1;store_get(e??={},"$reactive_formatter",j)("blocks.long_requests_queue"),store_get(e??={},"$reactive_formatter",j)("blocks.connection_can_break");const xt="Connection to the server was lost. Attempting reconnection...";store_get(e??={},"$reactive_formatter",j)("blocks.waiting_for_inputs");let ut=writable(false);function kt(a){D=D.filter(g=>g.id!==a);}let pt=true,nt;function Et(a){head("zxu34v",a,g=>{w?(g.push(""),g.title(R=>{R.push(`${escape_html(p)}`);})):g.push(""),g.push(" "),U$1?(g.push(""),g.push(`${html(``)}`)):g.push(""),g.push("");}),a.push(`
    `),ot(a,{node:S.root}),a.push("
    "),_.length>0?(a.push(""),a.push('
    '),_.includes("api")?(a.push(""),a.push('`)):a.push(""),a.push(" "),_.includes("gradio")?(a.push(""),a.push(`
    ·
    ${escape_html(store_get(e??={},"$reactive_formatter",j)("common.built_with_gradio"))} `)):a.push(""),a.push(` ${escape_html(store_get(e??={},"$reactive_formatter",j)("common.stop_recording"))}
    ·
    `),_.includes("settings")?(a.push(""),a.push(`·
    `)):a.push(""),a.push("")):a.push(""),a.push(" "),a.push(""),a.push(" "),F&&S.root&&ct||a.push(""),a.push(" "),B&&c.config&&S.root&&$||a.push(""),a.push(" "),a.push(""),a.push(" "),D?(a.push(""),U(a,{messages:D,on_close:kt})):a.push(""),a.push("");}do pt=true,nt=i.copy(),Et(nt);while(!pt);i.subsume(nt),e&&unsubscribe_stores(e),bind_props(t,{ready:Q,reload_count:J,add_new_message:N});});}function Ce(s,t){s.component(i=>{let e=t.root,n=t.auth_message,o$1=t.app_mode,l=t.space_id,u=t.i18n,p="",C="",A=false;const _=async()=>{const c=new FormData;c.append("username",p),c.append("password",C);const h=new URL("login",e.endsWith("/")?e:e+"/").href;let m=await fetch(h,{method:"POST",body:c});m.status===400?(A=true,p="",C=""):m.status==200&&location.reload();};let w=true,y$1;function E(c){c.push(``),y(c,{variant:"panel",min_width:480,children:h=>{h.push(`

    ${escape_html(u("login.login"))}

    `),n?(h.push(""),h.push(`

    ${html(n)}

    `)):h.push(""),h.push(" "),l?(h.push(""),h.push(`

    ${escape_html(u("login.enable_cookies"))}

    `)):h.push(""),h.push(" "),A?(h.push(""),h.push(`

    ${escape_html(u("login.incorrect_credentials"))}

    `)):h.push(""),h.push(" "),o(h,{children:m=>{G(m,{children:L=>{et(L,{label:u("login.username"),lines:1,show_label:true,max_lines:1,onsubmit:_,get value(){return p},set value(x){p=x,w=false;}});},$$slots:{default:true}}),m.push(" "),G(m,{children:L=>{et(L,{label:u("login.password"),lines:1,show_label:true,max_lines:1,type:"password",onsubmit:_,get value(){return C},set value(x){C=x,w=false;}});},$$slots:{default:true}}),m.push("");},$$slots:{default:true}}),h.push(" "),q(h,{size:"lg",variant:"primary",onclick:_,children:m=>{m.push(`${escape_html(u("login.login"))}`);}}),h.push("");},$$slots:{default:true}}),c.push("");}do w=true,y$1=i.copy(),E(y$1);while(!w);i.subsume(y$1),bind_props(t,{root:e,auth_message:n,app_mode:o$1,space_id:l,i18n:u});});}function He(s,t){s.component(i=>{var e;let {data:l,autoscroll:u=false,version:p="6-13-0",initial_height:C,app_mode:A=true,is_embed:_=false,theme_mode:w=null,control_page_title:y=true,container:E,space:c}=t;function h(v){let d;const k=new URL(window.location.toString()).searchParams.get("__theme");return d=w||k||"system",d==="dark"||d==="light"?L(v,d):d=m(v),d}function m(v){const d=b();window?.matchMedia("(prefers-color-scheme: dark)")?.addEventListener("change",b);function b(){let k=window?.matchMedia?.("(prefers-color-scheme: dark)").matches?"dark":"light";return L(v,k),k}return d}function L(v,d){const b=_?v.parentElement:document.body,k=_?v:v.parentElement;k.style.background="var(--body-background-fill)",b.classList.add("theme-loaded"),d==="dark"?b.classList.add("dark"):b.classList.remove("dark");}let x;a&&(x=h(document.body));let G="complete",M,U=false,q=false;({subscribe:writable({}).subscribe});let z=l.app;let J=false;a&&l.config&&(window.gradio_config=l.config);let N;let D;async function T(v,d){if(v&&!d&&window.self===window.top){D&&(D.remove(),D=void 0);const b=await le(v);b&&(D=b.element);}}let f=l.config,S=(()=>{if(!a)return f.root;const v=new URL(window.location.toString()),d=new URL(f.root);return new URL(d.pathname,v).toString()})();run(()=>{f?.app_id&&f.app_id;}),run(()=>{N&&J&&(N("Error","Deep link was not valid",-1,"error",10,true),J=false);}),run(()=>{q&&M.dispatchEvent(new CustomEvent("render",{bubbles:true,cancelable:false,composed:true}));}),run(()=>{z?.config&&a&&T(z?.config?.space_id,_);});let P=true,Z;function X(v){head("1gmqcbx",v,d=>{if(d.push(`"),d.push("");const b=ensure_array_like(f.stylesheets);for(let k=0,F=b.length;k"),d.push(``)):d.push(""),d.push("");}d.push("");}else d.push("");d.push(' ');}),ct(v,{display:E&&_,is_embed:_,info:false,version:p,initial_height:C,space:c,pages:f.pages,current_page:f.current_page,root:f.root,components:f.components,loaded:G==="complete",fill_width:f?.fill_width||false,get wrapper(){return M},set wrapper(d){M=d,P=false;},children:d=>{f?.auth_required?(d.push(""),Ce(d,{auth_message:f.auth_message,root:f.root,space_id:c,app_mode:A,i18n:store_get(e??={},"$_",ls)})):(d.push(""),f&&z?(d.push(""),xe(d,spread_props([{app:z},f,{fill_height:!_&&f.fill_height,theme_mode:x,control_page_title:y,target:M,autoscroll:u,footer_links:_?[]:f.footer_links,app_mode:A,version:p,search_params:store_get(e??={},"$page",Vt).url.searchParams,initial_layout:l.layout,get ready(){return U},set ready(b){U=b,P=false;},get render_complete(){return q},set render_complete(b){q=b,P=false;},get add_new_message(){return N},set add_new_message(b){N=b,P=false;}}]))):d.push(""),d.push("")),d.push("");},$$slots:{default:true}});}do P=true,Z=i.copy(),X(Z);while(!P);i.subsume(Z),e&&unsubscribe_stores(e);});} + +export { He as default }; +//# sourceMappingURL=_page.svelte-BWlVXSOW.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/ar-oZrlju6V.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/ar-oZrlju6V.js new file mode 100644 index 0000000000000000000000000000000000000000..46774e427c38d9dfbb5725245b34248a8af41287 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/ar-oZrlju6V.js @@ -0,0 +1,4 @@ +const o="العربية",e={annotated_image:"صورة مشروحة"},r={allow_recording_access:"يرجى السماح بالوصول إلى الميكروفون للتسجيل",audio:"صوتي",record_from_microphone:"تسجيل من الميكروفون",stop_recording:"إيقاف التسجيل",no_device_support:"لا يمكن الوصول إلى أجهزة الوسائط. تأكد من أنك تعمل على مصدر آمن (https) أو localhost (أو قمت بتمرير شهادة SSL صالحة إلى ssl_verify)، وأنك سمحت للمتصفح بالوصول إلى جهازك.",stop:"إيقاف",resume:"استئناف",record:"تسجيل",no_microphone:"لم يتم العثور على ميكروفون",pause:"إيقاف مؤقت",play:"تشغيل",waiting:"جاري الانتظار",drop_to_upload:"اسقط ملف صوت هنا للتحميل"},t={connection_can_break:"على الهاتف المحمول، يمكن أن ينقطع الاتصال إذا تم تغيير التبويب لهذه الصفحةة أو دخل الجهاز في وضع السكون، مما يؤدي إلى فقدان موقعك في قائمة الانتظار.",long_requests_queue:"هناك قائمة انتظار طويلة من الطلبات المعلقة. قم بنسخ هذه المساحة للتخطي.",lost_connection:"تم فقدان الاتصال بسبب مغادرة الصفحة. جارٍ إعادة الانضمام إلى قائمة الانتظار...",waiting_for_inputs:"إنتظر انتهاء رفع الملف(ات)، يرجى إعادة المحاولة."},_={checkbox:"خانة اختيار",checkbox_group:"مجموعة خانات الاختيار"},c={code:"الكود"},a={color_picker:"منتقي الألوان"},n={built_with:"بُني باستخدام",built_with_gradio:"بني بإستخدام Gradio",clear:"أمسح",download:"تنزيل",edit:"تعديل",empty:"فارغ",error:"خطأ",hosted_on:"مستضاف على",loading:"جاري التحميل",logo:"شعار",or:"أو",remove:"إزالة",settings:"الإعدادات",share:"مشاركة",submit:"أرسل",undo:"تراجع",no_devices:"لم يتم العثور على أجهزة",language:"اللغة",display_theme:"مظهر العرض",pwa:"تطبيق ويب تقدمي",record:"تسجيل",stop_recording:"إيقاف التسجيل",screen_studio:"شاشة الأستوديو",share_gradio_tab:"مشاركة تبويبة صفحة Gradio",run:"تشغيل"},s={incorrect_format:"تنسيق غير صحيح، يتم دعم ملفات CSV و TSV فقط",new_column:"إضافة عمود",new_row:"صف جديد",add_row_above:"إضافة صف فوق",add_row_below:"إضافة صف تحت",add_column_left:"إضافة عمود لليسار",add_column_right:"إضافة عمود لليمين",delete_row:"حذف الصف",delete_column:"حذف العمود",sort_column:"فرز العمود",sort_ascending:"فرز تصاعدي",sort_descending:"فرز تنازلي",drop_to_upload:"اسقط ملفات CSV أو TSV هنا لاستيراد البيانات إلى الإطر الجدولية",clear_sort:"مسح الترتيب",filter:"مرشح",clear_filter:"مسح المرشحات"},d={dropdown:"قائمة منسدلة"},i={build_error:"هناك خطأ في البناء",config_error:"هناك خطأ في التكوين",contact_page_author:"يرجى التواصل مع مبرمج الصفحة",no_app_file:"لا يوجد ملف تطبيق",runtime_error:"هناك خطأ أثناء التشغيل",space_not_working:"المساحة لا تعمل لأن {0}",space_paused:"المساحة متوقفة مؤقتًا",use_via_api:"إستخدام عبر API",use_via_api_or_mcp:"إستخدام عبر واجهة برمجة التطبيقات API أو خادم MCP"},l={uploading:"جاري الرفع..."},p={highlighted_text:"نص محدد"},u={allow_webcam_access:"يرجى السماح بالوصول إلى كاميرا الويب للتسجيل.",brush_color:"لون الفرشاة",brush_radius:"حجم الفرشاة",image:"صورة",remove_image:"إزالة الصورة",select_brush_color:"اختر لون الفرشاة",start_drawing:"ابدأ الرسم",use_brush:"استخدم الفرشاة",drop_to_upload:"اسقط ملف الصورة هنا لتحميله"},g={label:"ملصق"},m={enable_cookies:"إذا كنت تزور مساحة HuggingFace في وضع التصفح المتخفي، يجب عليك تمكين ملفات تعريف الارتباط من الجهات الخارجية.",incorrect_credentials:"بيانات الاعتماد غير صحيحة",username:"اسم المستخدم",password:"كلمة المرور",login:"تسجيل الدخول"},b={number:"رقم"},h={plot:"رسم بياني"},w={radio:"زر راديو"},f={slider:"شريط التمرير"},k={click_to_upload:"انقر للتحميل",drop_audio:"أسقط الملف الصوتي هنا",drop_csv:"أسقط ملف البيانات هنا",drop_file:"أسقط الملف هنا",drop_image:"أسقط الصورة هنا",drop_video:"أسقط الفيديو هنا",drop_gallery:"أسقط الوسائط هنا",paste_clipboard:"لصق من الحافظة"},v={drop_to_upload:"اسقط ملف الفيديو هنا للتحميل"},x={edit:"تعديل",retry:"إعادة المحاولة",undo:"تراجع",submit:"إرسال",cancel:"إلغاء",like:"إعجاب",dislike:"عدم الإعجاب",clear:"مسح المحادثة"},y={_name:o,"3D_model":{"3d_model":"نموذج ثلاثي الأبعاد",drop_to_upload:"اسقط ملف نموذج ثلاثي الأبعاد 3D (.obj، .glb، .stl، .gltf، .splat، أو .ply) هنا للتحميل"},annotated_image:e,audio:r,blocks:t,checkbox:_,code:c,color_picker:a,common:n,dataframe:s,dropdown:d,errors:i,file:l,highlighted_text:p,image:u,label:g,login:m,number:b,plot:h,radio:w,slider:f,upload_text:k,video:v,chatbot:x}; + +export { o as _name, e as annotated_image, r as audio, t as blocks, x as chatbot, _ as checkbox, c as code, a as color_picker, n as common, s as dataframe, y as default, d as dropdown, i as errors, l as file, p as highlighted_text, u as image, g as label, m as login, b as number, h as plot, w as radio, f as slider, k as upload_text, v as video }; +//# sourceMappingURL=ar-oZrlju6V.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/async-D55cHugf.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/async-D55cHugf.js new file mode 100644 index 0000000000000000000000000000000000000000..d482b6c289578895a578efa20025d1364d2e2b23 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/async-D55cHugf.js @@ -0,0 +1,2891 @@ +var DEV = false; + +// General flags +const DERIVED = 1 << 1; +const EFFECT = 1 << 2; +const RENDER_EFFECT = 1 << 3; +/** + * An effect that does not destroy its child effects when it reruns. + * Runs as part of render effects, i.e. not eagerly as part of tree traversal or effect flushing. + */ +const MANAGED_EFFECT = 1 << 24; +/** + * An effect that does not destroy its child effects when it reruns (like MANAGED_EFFECT). + * Runs eagerly as part of tree traversal or effect flushing. + */ +const BLOCK_EFFECT = 1 << 4; +const BRANCH_EFFECT = 1 << 5; +const ROOT_EFFECT = 1 << 6; +const BOUNDARY_EFFECT = 1 << 7; +/** + * Indicates that a reaction is connected to an effect root — either it is an effect, + * or it is a derived that is depended on by at least one effect. If a derived has + * no dependents, we can disconnect it from the graph, allowing it to either be + * GC'd or reconnected later if an effect comes to depend on it again + */ +const CONNECTED = 1 << 9; +const CLEAN = 1 << 10; +const DIRTY = 1 << 11; +const MAYBE_DIRTY = 1 << 12; +const INERT = 1 << 13; +const DESTROYED = 1 << 14; + +// Flags exclusive to effects +/** Set once an effect that should run synchronously has run */ +const EFFECT_RAN = 1 << 15; +/** + * 'Transparent' effects do not create a transition boundary. + * This is on a block effect 99% of the time but may also be on a branch effect if its parent block effect was pruned + */ +const EFFECT_TRANSPARENT = 1 << 16; +const EAGER_EFFECT = 1 << 17; +const HEAD_EFFECT = 1 << 18; +const EFFECT_PRESERVED = 1 << 19; +const USER_EFFECT = 1 << 20; + +// Flags exclusive to deriveds +/** + * Tells that we marked this derived and its reactions as visited during the "mark as (maybe) dirty"-phase. + * Will be lifted during execution of the derived and during checking its dirty state (both are necessary + * because a derived might be checked but not executed). + */ +const WAS_MARKED = 1 << 15; + +// Flags used for async +const REACTION_IS_UPDATING = 1 << 21; +const ASYNC = 1 << 22; + +const ERROR_VALUE = 1 << 23; + +const STATE_SYMBOL = Symbol('$state'); +const LEGACY_PROPS = Symbol('legacy props'); + +/** allow users to ignore aborted signal errors if `reason.name === 'StaleReactionError` */ +const STALE_REACTION = new (class StaleReactionError extends Error { + name = 'StaleReactionError'; + message = 'The reaction that called `getAbortSignal()` was re-run or destroyed'; +})(); +const COMMENT_NODE = 8; + +// Store the references to globals in case someone tries to monkey patch these, causing the below +// to de-opt (this occurs often when using popular extensions). +var is_array = Array.isArray; +var index_of = Array.prototype.indexOf; +var array_from = Array.from; +var define_property = Object.defineProperty; +var get_descriptor = Object.getOwnPropertyDescriptor; +var object_prototype = Object.prototype; +var array_prototype = Array.prototype; +var get_prototype_of = Object.getPrototypeOf; +var is_extensible = Object.isExtensible; + +const noop = () => {}; + +// Adapted from https://github.com/then/is-promise/blob/master/index.js +// Distributed under MIT License https://github.com/then/is-promise/blob/master/LICENSE + +/** + * @template [T=any] + * @param {any} value + * @returns {value is PromiseLike} + */ +function is_promise(value) { + return typeof value?.then === 'function'; +} + +/** @param {Array<() => void>} arr */ +function run_all(arr) { + for (var i = 0; i < arr.length; i++) { + arr[i](); + } +} + +/** + * TODO replace with Promise.withResolvers once supported widely enough + * @template [T=void] + */ +function deferred() { + /** @type {(value: T) => void} */ + var resolve; + + /** @type {(reason: any) => void} */ + var reject; + + /** @type {Promise} */ + var promise = new Promise((res, rej) => { + resolve = res; + reject = rej; + }); + + // @ts-expect-error + return { promise, resolve, reject }; +} + +/** + * @template V + * @param {V} value + * @param {V | (() => V)} fallback + * @param {boolean} [lazy] + * @returns {V} + */ +function fallback(value, fallback, lazy = false) { + return value === undefined + ? lazy + ? /** @type {() => V} */ (fallback)() + : /** @type {V} */ (fallback) + : value; +} + +/** @import { Equals } from '#client' */ + +/** @type {Equals} */ +function equals(value) { + return value === this.v; +} + +/** + * @param {unknown} a + * @param {unknown} b + * @returns {boolean} + */ +function safe_not_equal(a, b) { + return a != a + ? b == b + : a !== b || (a !== null && typeof a === 'object') || typeof a === 'function'; +} + +/** @type {Equals} */ +function safe_equals(value) { + return !safe_not_equal(value, this.v); +} + +/* This file is generated by scripts/process-messages/index.js. Do not edit! */ + + +/** + * Maximum update depth exceeded. This typically indicates that an effect reads and writes the same piece of state + * @returns {never} + */ +function effect_update_depth_exceeded() { + { + throw new Error(`https://svelte.dev/e/effect_update_depth_exceeded`); + } +} + +/** + * Failed to hydrate the application + * @returns {never} + */ +function hydration_failed() { + { + throw new Error(`https://svelte.dev/e/hydration_failed`); + } +} + +/** + * Property descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`. + * @returns {never} + */ +function state_descriptors_fixed() { + { + throw new Error(`https://svelte.dev/e/state_descriptors_fixed`); + } +} + +/** + * Cannot set prototype of `$state` object + * @returns {never} + */ +function state_prototype_fixed() { + { + throw new Error(`https://svelte.dev/e/state_prototype_fixed`); + } +} + +/** + * Updating state inside `$derived(...)`, `$inspect(...)` or a template expression is forbidden. If the value should not be reactive, declare it without `$state` + * @returns {never} + */ +function state_unsafe_mutation() { + { + throw new Error(`https://svelte.dev/e/state_unsafe_mutation`); + } +} + +/** + * A `` `reset` function cannot be called while an error is still being handled + * @returns {never} + */ +function svelte_boundary_reset_onerror() { + { + throw new Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`); + } +} + +/** True if experimental.async=true */ +let async_mode_flag = false; +/** True if $inspect.trace is used */ +let tracing_mode_flag = false; + +function enable_async_mode_flag() { + async_mode_flag = true; +} + +const HYDRATION_START = '['; +/** used to indicate that an `{:else}...` block was rendered */ +const HYDRATION_START_ELSE = '[!'; +const HYDRATION_END = ']'; +const HYDRATION_ERROR = {}; + +const ELEMENT_IS_NAMESPACED = 1; +const ELEMENT_PRESERVE_ATTRIBUTE_CASE = 1 << 1; +const ELEMENT_IS_INPUT = 1 << 2; + +const UNINITIALIZED = Symbol(); + +/** @import { ComponentContext, DevStackEntry, Effect } from '#client' */ + +/** @type {ComponentContext | null} */ +let component_context = null; + +/** @param {ComponentContext | null} context */ +function set_component_context(context) { + component_context = context; +} + +/** + * @param {Record} props + * @param {any} runes + * @param {Function} [fn] + * @returns {void} + */ +function push(props, runes = false, fn) { + component_context = { + p: component_context, + i: false, + c: null, + e: null, + s: props, + x: null, + l: null + }; +} + +/** + * @template {Record} T + * @param {T} [component] + * @returns {T} + */ +function pop(component) { + var context = /** @type {ComponentContext} */ (component_context); + var effects = context.e; + + if (effects !== null) { + context.e = null; + + for (var fn of effects) { + create_user_effect(fn); + } + } + + context.i = true; + + component_context = context.p; + + return /** @type {T} */ ({}); +} + +/** @returns {boolean} */ +function is_runes() { + return true; +} + +/** @type {Array<() => void>} */ +let micro_tasks = []; + +function run_micro_tasks() { + var tasks = micro_tasks; + micro_tasks = []; + run_all(tasks); +} + +/** + * @param {() => void} fn + */ +function queue_micro_task(fn) { + if (micro_tasks.length === 0 && !is_flushing_sync) { + var tasks = micro_tasks; + queueMicrotask(() => { + // If this is false, a flushSync happened in the meantime. Do _not_ run new scheduled microtasks in that case + // as the ordering of microtasks would be broken at that point - consider this case: + // - queue_micro_task schedules microtask A to flush task X + // - synchronously after, flushSync runs, processing task X + // - synchronously after, some other microtask B is scheduled, but not through queue_micro_task but for example a Promise.resolve() in user code + // - synchronously after, queue_micro_task schedules microtask C to flush task Y + // - one tick later, microtask A now resolves, flushing task Y before microtask B, which is incorrect + // This if check prevents that race condition (that realistically will only happen in tests) + if (tasks === micro_tasks) run_micro_tasks(); + }); + } + + micro_tasks.push(fn); +} + +/** + * Synchronously run any queued tasks. + */ +function flush_tasks() { + while (micro_tasks.length > 0) { + run_micro_tasks(); + } +} + +/** @import { Source } from '#client' */ + +/** + * @template T + * @param {T} value + * @returns {T} + */ +function proxy(value) { + // if non-proxyable, or is already a proxy, return `value` + if (typeof value !== 'object' || value === null || STATE_SYMBOL in value) { + return value; + } + + const prototype = get_prototype_of(value); + + if (prototype !== object_prototype && prototype !== array_prototype) { + return value; + } + + /** @type {Map>} */ + var sources = new Map(); + var is_proxied_array = is_array(value); + var version = state(0); + var parent_version = update_version; + + /** + * Executes the proxy in the context of the reaction it was originally created in, if any + * @template T + * @param {() => T} fn + */ + var with_parent = (fn) => { + if (update_version === parent_version) { + return fn(); + } + + // child source is being created after the initial proxy — + // prevent it from being associated with the current reaction + var reaction = active_reaction; + var version = update_version; + + set_active_reaction(null); + set_update_version(parent_version); + + var result = fn(); + + set_active_reaction(reaction); + set_update_version(version); + + return result; + }; + + if (is_proxied_array) { + // We need to create the length source eagerly to ensure that + // mutations to the array are properly synced with our proxy + sources.set('length', state(/** @type {any[]} */ (value).length)); + } + + return new Proxy(/** @type {any} */ (value), { + defineProperty(_, prop, descriptor) { + if ( + !('value' in descriptor) || + descriptor.configurable === false || + descriptor.enumerable === false || + descriptor.writable === false + ) { + // we disallow non-basic descriptors, because unless they are applied to the + // target object — which we avoid, so that state can be forked — we will run + // afoul of the various invariants + // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy/Proxy/getOwnPropertyDescriptor#invariants + state_descriptors_fixed(); + } + var s = sources.get(prop); + if (s === undefined) { + s = with_parent(() => { + var s = state(descriptor.value); + sources.set(prop, s); + return s; + }); + } else { + set(s, descriptor.value, true); + } + + return true; + }, + + deleteProperty(target, prop) { + var s = sources.get(prop); + + if (s === undefined) { + if (prop in target) { + const s = with_parent(() => state(UNINITIALIZED)); + sources.set(prop, s); + increment(version); + } + } else { + set(s, UNINITIALIZED); + increment(version); + } + + return true; + }, + + get(target, prop, receiver) { + if (prop === STATE_SYMBOL) { + return value; + } + + var s = sources.get(prop); + var exists = prop in target; + + // create a source, but only if it's an own property and not a prototype property + if (s === undefined && (!exists || get_descriptor(target, prop)?.writable)) { + s = with_parent(() => { + var p = proxy(exists ? target[prop] : UNINITIALIZED); + var s = state(p); + + return s; + }); + + sources.set(prop, s); + } + + if (s !== undefined) { + var v = get(s); + return v === UNINITIALIZED ? undefined : v; + } + + return Reflect.get(target, prop, receiver); + }, + + getOwnPropertyDescriptor(target, prop) { + var descriptor = Reflect.getOwnPropertyDescriptor(target, prop); + + if (descriptor && 'value' in descriptor) { + var s = sources.get(prop); + if (s) descriptor.value = get(s); + } else if (descriptor === undefined) { + var source = sources.get(prop); + var value = source?.v; + + if (source !== undefined && value !== UNINITIALIZED) { + return { + enumerable: true, + configurable: true, + value, + writable: true + }; + } + } + + return descriptor; + }, + + has(target, prop) { + if (prop === STATE_SYMBOL) { + return true; + } + + var s = sources.get(prop); + var has = (s !== undefined && s.v !== UNINITIALIZED) || Reflect.has(target, prop); + + if ( + s !== undefined || + (active_effect !== null && (!has || get_descriptor(target, prop)?.writable)) + ) { + if (s === undefined) { + s = with_parent(() => { + var p = has ? proxy(target[prop]) : UNINITIALIZED; + var s = state(p); + + return s; + }); + + sources.set(prop, s); + } + + var value = get(s); + if (value === UNINITIALIZED) { + return false; + } + } + + return has; + }, + + set(target, prop, value, receiver) { + var s = sources.get(prop); + var has = prop in target; + + // variable.length = value -> clear all signals with index >= value + if (is_proxied_array && prop === 'length') { + for (var i = value; i < /** @type {Source} */ (s).v; i += 1) { + var other_s = sources.get(i + ''); + if (other_s !== undefined) { + set(other_s, UNINITIALIZED); + } else if (i in target) { + // If the item exists in the original, we need to create an uninitialized source, + // else a later read of the property would result in a source being created with + // the value of the original item at that index. + other_s = with_parent(() => state(UNINITIALIZED)); + sources.set(i + '', other_s); + } + } + } + + // If we haven't yet created a source for this property, we need to ensure + // we do so otherwise if we read it later, then the write won't be tracked and + // the heuristics of effects will be different vs if we had read the proxied + // object property before writing to that property. + if (s === undefined) { + if (!has || get_descriptor(target, prop)?.writable) { + s = with_parent(() => state(undefined)); + set(s, proxy(value)); + + sources.set(prop, s); + } + } else { + has = s.v !== UNINITIALIZED; + + var p = with_parent(() => proxy(value)); + set(s, p); + } + + var descriptor = Reflect.getOwnPropertyDescriptor(target, prop); + + // Set the new value before updating any signals so that any listeners get the new value + if (descriptor?.set) { + descriptor.set.call(receiver, value); + } + + if (!has) { + // If we have mutated an array directly, we might need to + // signal that length has also changed. Do it before updating metadata + // to ensure that iterating over the array as a result of a metadata update + // will not cause the length to be out of sync. + if (is_proxied_array && typeof prop === 'string') { + var ls = /** @type {Source} */ (sources.get('length')); + var n = Number(prop); + + if (Number.isInteger(n) && n >= ls.v) { + set(ls, n + 1); + } + } + + increment(version); + } + + return true; + }, + + ownKeys(target) { + get(version); + + var own_keys = Reflect.ownKeys(target).filter((key) => { + var source = sources.get(key); + return source === undefined || source.v !== UNINITIALIZED; + }); + + for (var [key, source] of sources) { + if (source.v !== UNINITIALIZED && !(key in target)) { + own_keys.push(key); + } + } + + return own_keys; + }, + + setPrototypeOf() { + state_prototype_fixed(); + } + }); +} + +/** @import { Effect, TemplateNode } from '#client' */ + +// export these for reference in the compiled code, making global name deduplication unnecessary +/** @type {Window} */ +var $window; + +/** @type {() => Node | null} */ +var first_child_getter; +/** @type {() => Node | null} */ +var next_sibling_getter; + +/** + * Initialize these lazily to avoid issues when using the runtime in a server context + * where these globals are not available while avoiding a separate server entry point + */ +function init_operations() { + if ($window !== undefined) { + return; + } + + $window = window; + + var element_prototype = Element.prototype; + var node_prototype = Node.prototype; + var text_prototype = Text.prototype; + + // @ts-ignore + first_child_getter = get_descriptor(node_prototype, 'firstChild').get; + // @ts-ignore + next_sibling_getter = get_descriptor(node_prototype, 'nextSibling').get; + + if (is_extensible(element_prototype)) { + // the following assignments improve perf of lookups on DOM nodes + // @ts-expect-error + element_prototype.__click = undefined; + // @ts-expect-error + element_prototype.__className = undefined; + // @ts-expect-error + element_prototype.__attributes = null; + // @ts-expect-error + element_prototype.__style = undefined; + // @ts-expect-error + element_prototype.__e = undefined; + } + + if (is_extensible(text_prototype)) { + // @ts-expect-error + text_prototype.__t = undefined; + } +} + +/** + * @param {string} value + * @returns {Text} + */ +function create_text(value = '') { + return document.createTextNode(value); +} + +/** + * @template {Node} N + * @param {N} node + */ +/*@__NO_SIDE_EFFECTS__*/ +function get_first_child(node) { + return /** @type {TemplateNode | null} */ (first_child_getter.call(node)); +} + +/** + * @template {Node} N + * @param {N} node + */ +/*@__NO_SIDE_EFFECTS__*/ +function get_next_sibling(node) { + return /** @type {TemplateNode | null} */ (next_sibling_getter.call(node)); +} + +/** + * @template {Node} N + * @param {N} node + * @returns {void} + */ +function clear_text_content(node) { + node.textContent = ''; +} + +/** @import { Derived, Effect } from '#client' */ +/** @import { Boundary } from './dom/blocks/boundary.js' */ + +/** + * @param {unknown} error + */ +function handle_error(error) { + var effect = active_effect; + + // for unowned deriveds, don't throw until we read the value + if (effect === null) { + /** @type {Derived} */ (active_reaction).f |= ERROR_VALUE; + return error; + } + + if ((effect.f & EFFECT_RAN) === 0) { + // if the error occurred while creating this subtree, we let it + // bubble up until it hits a boundary that can handle it + if ((effect.f & BOUNDARY_EFFECT) === 0) { + + throw error; + } + + /** @type {Boundary} */ (effect.b).error(error); + } else { + // otherwise we bubble up the effect tree ourselves + invoke_error_boundary(error, effect); + } +} + +/** + * @param {unknown} error + * @param {Effect | null} effect + */ +function invoke_error_boundary(error, effect) { + while (effect !== null) { + if ((effect.f & BOUNDARY_EFFECT) !== 0) { + try { + /** @type {Boundary} */ (effect.b).error(error); + return; + } catch (e) { + error = e; + } + } + + effect = effect.parent; + } + + throw error; +} + +/** @import { Derived, Signal } from '#client' */ + +const STATUS_MASK = -7169; + +/** + * @param {Signal} signal + * @param {number} status + */ +function set_signal_status(signal, status) { + signal.f = (signal.f & STATUS_MASK) | status; +} + +/** + * Set a derived's status to CLEAN or MAYBE_DIRTY based on its connection state. + * @param {Derived} derived + */ +function update_derived_status(derived) { + // Only mark as MAYBE_DIRTY if disconnected and has dependencies. + if ((derived.f & CONNECTED) !== 0 || derived.deps === null) { + set_signal_status(derived, CLEAN); + } else { + set_signal_status(derived, MAYBE_DIRTY); + } +} + +/** @import { Derived, Effect, Value } from '#client' */ + +/** + * @param {Value[] | null} deps + */ +function clear_marked(deps) { + if (deps === null) return; + + for (const dep of deps) { + if ((dep.f & DERIVED) === 0 || (dep.f & WAS_MARKED) === 0) { + continue; + } + + dep.f ^= WAS_MARKED; + + clear_marked(/** @type {Derived} */ (dep).deps); + } +} + +/** + * @param {Effect} effect + * @param {Set} dirty_effects + * @param {Set} maybe_dirty_effects + */ +function defer_effect(effect, dirty_effects, maybe_dirty_effects) { + if ((effect.f & DIRTY) !== 0) { + dirty_effects.add(effect); + } else if ((effect.f & MAYBE_DIRTY) !== 0) { + maybe_dirty_effects.add(effect); + } + + // Since we're not executing these effects now, we need to clear any WAS_MARKED flags + // so that other batches can correctly reach these effects during their own traversal + clear_marked(effect.deps); + + // mark as clean so they get scheduled if they depend on pending async state + set_signal_status(effect, CLEAN); +} + +/** @import { Fork } from 'svelte' */ +/** @import { Derived, Effect, Reaction, Source, Value } from '#client' */ +/** @import { Boundary } from '../dom/blocks/boundary' */ + +/** @type {Set} */ +const batches = new Set(); + +/** @type {Batch | null} */ +let current_batch = null; + +/** + * When time travelling (i.e. working in one batch, while other batches + * still have ongoing work), we ignore the real values of affected + * signals in favour of their values within the batch + * @type {Map | null} + */ +let batch_values = null; + +// TODO this should really be a property of `batch` +/** @type {Effect[]} */ +let queued_root_effects = []; + +/** @type {Effect | null} */ +let last_scheduled_effect = null; + +let is_flushing = false; +let is_flushing_sync = false; + +class Batch { + committed = false; + + /** + * The current values of any sources that are updated in this batch + * They keys of this map are identical to `this.#previous` + * @type {Map} + */ + current = new Map(); + + /** + * The values of any sources that are updated in this batch _before_ those updates took place. + * They keys of this map are identical to `this.#current` + * @type {Map} + */ + previous = new Map(); + + /** + * When the batch is committed (and the DOM is updated), we need to remove old branches + * and append new ones by calling the functions added inside (if/each/key/etc) blocks + * @type {Set<() => void>} + */ + #commit_callbacks = new Set(); + + /** + * If a fork is discarded, we need to destroy any effects that are no longer needed + * @type {Set<(batch: Batch) => void>} + */ + #discard_callbacks = new Set(); + + /** + * The number of async effects that are currently in flight + */ + #pending = 0; + + /** + * The number of async effects that are currently in flight, _not_ inside a pending boundary + */ + #blocking_pending = 0; + + /** + * A deferred that resolves when the batch is committed, used with `settled()` + * TODO replace with Promise.withResolvers once supported widely enough + * @type {{ promise: Promise, resolve: (value?: any) => void, reject: (reason: unknown) => void } | null} + */ + #deferred = null; + + /** + * Deferred effects (which run after async work has completed) that are DIRTY + * @type {Set} + */ + #dirty_effects = new Set(); + + /** + * Deferred effects that are MAYBE_DIRTY + * @type {Set} + */ + #maybe_dirty_effects = new Set(); + + /** + * A set of branches that still exist, but will be destroyed when this batch + * is committed — we skip over these during `process` + * @type {Set} + */ + skipped_effects = new Set(); + + is_fork = false; + + is_deferred() { + return this.is_fork || this.#blocking_pending > 0; + } + + /** + * + * @param {Effect[]} root_effects + */ + process(root_effects) { + queued_root_effects = []; + + this.apply(); + + /** @type {Effect[]} */ + var effects = []; + + /** @type {Effect[]} */ + var render_effects = []; + + for (const root of root_effects) { + this.#traverse_effect_tree(root, effects, render_effects); + // Note: #traverse_effect_tree runs block effects eagerly, which can schedule effects, + // which means queued_root_effects now may be filled again. + + // Helpful for debugging reactivity loss that has to do with branches being skipped: + // log_inconsistent_branches(root); + } + + if (!this.is_fork) { + this.#resolve(); + } + + if (this.is_deferred()) { + this.#defer_effects(render_effects); + this.#defer_effects(effects); + } else { + current_batch = null; + + flush_queued_effects(render_effects); + flush_queued_effects(effects); + + this.#deferred?.resolve(); + } + + batch_values = null; + } + + /** + * Traverse the effect tree, executing effects or stashing + * them for later execution as appropriate + * @param {Effect} root + * @param {Effect[]} effects + * @param {Effect[]} render_effects + */ + #traverse_effect_tree(root, effects, render_effects) { + root.f ^= CLEAN; + + var effect = root.first; + + /** @type {Effect | null} */ + var pending_boundary = null; + + while (effect !== null) { + var flags = effect.f; + var is_branch = (flags & (BRANCH_EFFECT | ROOT_EFFECT)) !== 0; + var is_skippable_branch = is_branch && (flags & CLEAN) !== 0; + + var skip = is_skippable_branch || (flags & INERT) !== 0 || this.skipped_effects.has(effect); + + // Inside a `` with a pending snippet, + // all effects are deferred until the boundary resolves + // (except block/async effects, which run immediately) + if ( + async_mode_flag && + pending_boundary === null && + (flags & BOUNDARY_EFFECT) !== 0 && + effect.b?.is_pending + ) { + pending_boundary = effect; + } + + if (!skip && effect.fn !== null) { + if (is_branch) { + effect.f ^= CLEAN; + } else if ( + pending_boundary !== null && + (flags & (EFFECT | RENDER_EFFECT | MANAGED_EFFECT)) !== 0 + ) { + /** @type {Boundary} */ (pending_boundary.b).defer_effect(effect); + } else if ((flags & EFFECT) !== 0) { + effects.push(effect); + } else if (async_mode_flag && (flags & (RENDER_EFFECT | MANAGED_EFFECT)) !== 0) { + render_effects.push(effect); + } else if (is_dirty(effect)) { + if ((flags & BLOCK_EFFECT) !== 0) this.#dirty_effects.add(effect); + update_effect(effect); + } + + var child = effect.first; + + if (child !== null) { + effect = child; + continue; + } + } + + var parent = effect.parent; + effect = effect.next; + + while (effect === null && parent !== null) { + if (parent === pending_boundary) { + pending_boundary = null; + } + + effect = parent.next; + parent = parent.parent; + } + } + } + + /** + * @param {Effect[]} effects + */ + #defer_effects(effects) { + for (var i = 0; i < effects.length; i += 1) { + defer_effect(effects[i], this.#dirty_effects, this.#maybe_dirty_effects); + } + } + + /** + * Associate a change to a given source with the current + * batch, noting its previous and current values + * @param {Source} source + * @param {any} value + */ + capture(source, value) { + if (value !== UNINITIALIZED && !this.previous.has(source)) { + this.previous.set(source, value); + } + + // Don't save errors in `batch_values`, or they won't be thrown in `runtime.js#get` + if ((source.f & ERROR_VALUE) === 0) { + this.current.set(source, source.v); + batch_values?.set(source, source.v); + } + } + + activate() { + current_batch = this; + this.apply(); + } + + deactivate() { + // If we're not the current batch, don't deactivate, + // else we could create zombie batches that are never flushed + if (current_batch !== this) return; + + current_batch = null; + batch_values = null; + } + + flush() { + this.activate(); + + if (queued_root_effects.length > 0) { + flush_effects(); + + if (current_batch !== null && current_batch !== this) { + // this can happen if a new batch was created during `flush_effects()` + return; + } + } else if (this.#pending === 0) { + this.process([]); // TODO this feels awkward + } + + this.deactivate(); + } + + discard() { + for (const fn of this.#discard_callbacks) fn(this); + this.#discard_callbacks.clear(); + } + + #resolve() { + if (this.#blocking_pending === 0) { + // append/remove branches + for (const fn of this.#commit_callbacks) fn(); + this.#commit_callbacks.clear(); + } + + if (this.#pending === 0) { + this.#commit(); + } + } + + #commit() { + // If there are other pending batches, they now need to be 'rebased' — + // in other words, we re-run block/async effects with the newly + // committed state, unless the batch in question has a more + // recent value for a given source + if (batches.size > 1) { + this.previous.clear(); + + var previous_batch_values = batch_values; + var is_earlier = true; + + for (const batch of batches) { + if (batch === this) { + is_earlier = false; + continue; + } + + /** @type {Source[]} */ + const sources = []; + + for (const [source, value] of this.current) { + if (batch.current.has(source)) { + if (is_earlier && value !== batch.current.get(source)) { + // bring the value up to date + batch.current.set(source, value); + } else { + // same value or later batch has more recent value, + // no need to re-run these effects + continue; + } + } + + sources.push(source); + } + + if (sources.length === 0) { + continue; + } + + // Re-run async/block effects that depend on distinct values changed in both batches + const others = [...batch.current.keys()].filter((s) => !this.current.has(s)); + if (others.length > 0) { + // Avoid running queued root effects on the wrong branch + var prev_queued_root_effects = queued_root_effects; + queued_root_effects = []; + + /** @type {Set} */ + const marked = new Set(); + /** @type {Map} */ + const checked = new Map(); + for (const source of sources) { + mark_effects(source, others, marked, checked); + } + + if (queued_root_effects.length > 0) { + current_batch = batch; + batch.apply(); + + for (const root of queued_root_effects) { + batch.#traverse_effect_tree(root, [], []); + } + + // TODO do we need to do anything with the dummy effect arrays? + + batch.deactivate(); + } + + queued_root_effects = prev_queued_root_effects; + } + } + + current_batch = null; + batch_values = previous_batch_values; + } + + this.committed = true; + batches.delete(this); + } + + /** + * + * @param {boolean} blocking + */ + increment(blocking) { + this.#pending += 1; + if (blocking) this.#blocking_pending += 1; + } + + /** + * + * @param {boolean} blocking + */ + decrement(blocking) { + this.#pending -= 1; + if (blocking) this.#blocking_pending -= 1; + + this.revive(); + } + + revive() { + for (const e of this.#dirty_effects) { + this.#maybe_dirty_effects.delete(e); + set_signal_status(e, DIRTY); + schedule_effect(e); + } + + for (const e of this.#maybe_dirty_effects) { + set_signal_status(e, MAYBE_DIRTY); + schedule_effect(e); + } + + this.flush(); + } + + /** @param {() => void} fn */ + oncommit(fn) { + this.#commit_callbacks.add(fn); + } + + /** @param {(batch: Batch) => void} fn */ + ondiscard(fn) { + this.#discard_callbacks.add(fn); + } + + settled() { + return (this.#deferred ??= deferred()).promise; + } + + static ensure() { + if (current_batch === null) { + const batch = (current_batch = new Batch()); + batches.add(current_batch); + + if (!is_flushing_sync) { + Batch.enqueue(() => { + if (current_batch !== batch) { + // a flushSync happened in the meantime + return; + } + + batch.flush(); + }); + } + } + + return current_batch; + } + + /** @param {() => void} task */ + static enqueue(task) { + queue_micro_task(task); + } + + apply() { + if (!async_mode_flag || (!this.is_fork && batches.size === 1)) return; + + // if there are multiple batches, we are 'time travelling' — + // we need to override values with the ones in this batch... + batch_values = new Map(this.current); + + // ...and undo changes belonging to other batches + for (const batch of batches) { + if (batch === this) continue; + + for (const [source, previous] of batch.previous) { + if (!batch_values.has(source)) { + batch_values.set(source, previous); + } + } + } + } +} + +/** + * Synchronously flush any pending updates. + * Returns void if no callback is provided, otherwise returns the result of calling the callback. + * @template [T=void] + * @param {(() => T) | undefined} [fn] + * @returns {T} + */ +function flushSync(fn) { + var was_flushing_sync = is_flushing_sync; + is_flushing_sync = true; + + try { + var result; + + if (fn) ; + + while (true) { + flush_tasks(); + + if (queued_root_effects.length === 0) { + current_batch?.flush(); + + // we need to check again, in case we just updated an `$effect.pending()` + if (queued_root_effects.length === 0) { + // this would be reset in `flush_effects()` but since we are early returning here, + // we need to reset it here as well in case the first time there's 0 queued root effects + last_scheduled_effect = null; + + return /** @type {T} */ (result); + } + } + + flush_effects(); + } + } finally { + is_flushing_sync = was_flushing_sync; + } +} + +function flush_effects() { + var was_updating_effect = is_updating_effect; + is_flushing = true; + + var source_stacks = null; + + try { + var flush_count = 0; + set_is_updating_effect(true); + + while (queued_root_effects.length > 0) { + var batch = Batch.ensure(); + + if (flush_count++ > 1000) { + var updates, entry; if (DEV) ; + + infinite_loop_guard(); + } + + batch.process(queued_root_effects); + old_values.clear(); + + if (DEV) ; + } + } finally { + is_flushing = false; + set_is_updating_effect(was_updating_effect); + + last_scheduled_effect = null; + } +} + +function infinite_loop_guard() { + try { + effect_update_depth_exceeded(); + } catch (error) { + + // Best effort: invoke the boundary nearest the most recent + // effect and hope that it's relevant to the infinite loop + invoke_error_boundary(error, last_scheduled_effect); + } +} + +/** @type {Set | null} */ +let eager_block_effects = null; + +/** + * @param {Array} effects + * @returns {void} + */ +function flush_queued_effects(effects) { + var length = effects.length; + if (length === 0) return; + + var i = 0; + + while (i < length) { + var effect = effects[i++]; + + if ((effect.f & (DESTROYED | INERT)) === 0 && is_dirty(effect)) { + eager_block_effects = new Set(); + + update_effect(effect); + + // Effects with no dependencies or teardown do not get added to the effect tree. + // Deferred effects (e.g. `$effect(...)`) _are_ added to the tree because we + // don't know if we need to keep them until they are executed. Doing the check + // here (rather than in `update_effect`) allows us to skip the work for + // immediate effects. + if (effect.deps === null && effect.first === null && effect.nodes === null) { + // if there's no teardown or abort controller we completely unlink + // the effect from the graph + if (effect.teardown === null && effect.ac === null) { + // remove this effect from the graph + unlink_effect(effect); + } else { + // keep the effect in the graph, but free up some memory + effect.fn = null; + } + } + + // If update_effect() has a flushSync() in it, we may have flushed another flush_queued_effects(), + // which already handled this logic and did set eager_block_effects to null. + if (eager_block_effects?.size > 0) { + old_values.clear(); + + for (const e of eager_block_effects) { + // Skip eager effects that have already been unmounted + if ((e.f & (DESTROYED | INERT)) !== 0) continue; + + // Run effects in order from ancestor to descendant, else we could run into nullpointers + /** @type {Effect[]} */ + const ordered_effects = [e]; + let ancestor = e.parent; + while (ancestor !== null) { + if (eager_block_effects.has(ancestor)) { + eager_block_effects.delete(ancestor); + ordered_effects.push(ancestor); + } + ancestor = ancestor.parent; + } + + for (let j = ordered_effects.length - 1; j >= 0; j--) { + const e = ordered_effects[j]; + // Skip eager effects that have already been unmounted + if ((e.f & (DESTROYED | INERT)) !== 0) continue; + update_effect(e); + } + } + + eager_block_effects.clear(); + } + } + } + + eager_block_effects = null; +} + +/** + * This is similar to `mark_reactions`, but it only marks async/block effects + * depending on `value` and at least one of the other `sources`, so that + * these effects can re-run after another batch has been committed + * @param {Value} value + * @param {Source[]} sources + * @param {Set} marked + * @param {Map} checked + */ +function mark_effects(value, sources, marked, checked) { + if (marked.has(value)) return; + marked.add(value); + + if (value.reactions !== null) { + for (const reaction of value.reactions) { + const flags = reaction.f; + + if ((flags & DERIVED) !== 0) { + mark_effects(/** @type {Derived} */ (reaction), sources, marked, checked); + } else if ( + (flags & (ASYNC | BLOCK_EFFECT)) !== 0 && + (flags & DIRTY) === 0 && + depends_on(reaction, sources, checked) + ) { + set_signal_status(reaction, DIRTY); + schedule_effect(/** @type {Effect} */ (reaction)); + } + } + } +} + +/** + * @param {Reaction} reaction + * @param {Source[]} sources + * @param {Map} checked + */ +function depends_on(reaction, sources, checked) { + const depends = checked.get(reaction); + if (depends !== undefined) return depends; + + if (reaction.deps !== null) { + for (const dep of reaction.deps) { + if (sources.includes(dep)) { + return true; + } + + if ((dep.f & DERIVED) !== 0 && depends_on(/** @type {Derived} */ (dep), sources, checked)) { + checked.set(/** @type {Derived} */ (dep), true); + return true; + } + } + } + + checked.set(reaction, false); + + return false; +} + +/** + * @param {Effect} signal + * @returns {void} + */ +function schedule_effect(signal) { + var effect = (last_scheduled_effect = signal); + + while (effect.parent !== null) { + effect = effect.parent; + var flags = effect.f; + + // if the effect is being scheduled because a parent (each/await/etc) block + // updated an internal source, bail out or we'll cause a second flush + if ( + is_flushing && + effect === active_effect && + (flags & BLOCK_EFFECT) !== 0 && + (flags & HEAD_EFFECT) === 0 + ) { + return; + } + + if ((flags & (ROOT_EFFECT | BRANCH_EFFECT)) !== 0) { + if ((flags & CLEAN) === 0) return; + effect.f ^= CLEAN; + } + } + + queued_root_effects.push(effect); +} + +/** @import { Derived, Effect, Source } from '#client' */ +/** @import { Batch } from './batch.js'; */ + +/** + * @param {Derived} derived + * @returns {void} + */ +function destroy_derived_effects(derived) { + var effects = derived.effects; + + if (effects !== null) { + derived.effects = null; + + for (var i = 0; i < effects.length; i += 1) { + destroy_effect(/** @type {Effect} */ (effects[i])); + } + } +} + +/** + * @param {Derived} derived + * @returns {Effect | null} + */ +function get_derived_parent_effect(derived) { + var parent = derived.parent; + while (parent !== null) { + if ((parent.f & DERIVED) === 0) { + // The original parent effect might've been destroyed but the derived + // is used elsewhere now - do not return the destroyed effect in that case + return (parent.f & DESTROYED) === 0 ? /** @type {Effect} */ (parent) : null; + } + parent = parent.parent; + } + return null; +} + +/** + * @template T + * @param {Derived} derived + * @returns {T} + */ +function execute_derived(derived) { + var value; + var prev_active_effect = active_effect; + + set_active_effect(get_derived_parent_effect(derived)); + + { + try { + derived.f &= ~WAS_MARKED; + destroy_derived_effects(derived); + value = update_reaction(derived); + } finally { + set_active_effect(prev_active_effect); + } + } + + return value; +} + +/** + * @param {Derived} derived + * @returns {void} + */ +function update_derived(derived) { + var value = execute_derived(derived); + + if (!derived.equals(value)) { + derived.wv = increment_write_version(); + + // in a fork, we don't update the underlying value, just `batch_values`. + // the underlying value will be updated when the fork is committed. + // otherwise, the next time we get here after a 'real world' state + // change, `derived.equals` may incorrectly return `true` + if (!current_batch?.is_fork || derived.deps === null) { + derived.v = value; + + // deriveds without dependencies should never be recomputed + if (derived.deps === null) { + set_signal_status(derived, CLEAN); + return; + } + } + } + + // don't mark derived clean if we're reading it inside a + // cleanup function, or it will cache a stale value + if (is_destroying_effect) { + return; + } + + // During time traveling we don't want to reset the status so that + // traversal of the graph in the other batches still happens + if (batch_values !== null) { + // only cache the value if we're in a tracking context, otherwise we won't + // clear the cache in `mark_reactions` when dependencies are updated + if (effect_tracking() || current_batch?.is_fork) { + batch_values.set(derived, value); + } + } else { + update_derived_status(derived); + } +} + +/** @import { Derived, Effect, Source, Value } from '#client' */ + +/** @type {Set} */ +let eager_effects = new Set(); + +/** @type {Map} */ +const old_values = new Map(); + +let eager_effects_deferred = false; + +/** + * @template V + * @param {V} v + * @param {Error | null} [stack] + * @returns {Source} + */ +// TODO rename this to `state` throughout the codebase +function source(v, stack) { + /** @type {Value} */ + var signal = { + f: 0, // TODO ideally we could skip this altogether, but it causes type errors + v, + reactions: null, + equals, + rv: 0, + wv: 0 + }; + + return signal; +} + +/** + * @template V + * @param {V} v + * @param {Error | null} [stack] + */ +/*#__NO_SIDE_EFFECTS__*/ +function state(v, stack) { + const s = source(v); + + push_reaction_value(s); + + return s; +} + +/** + * @template V + * @param {V} initial_value + * @param {boolean} [immutable] + * @returns {Source} + */ +/*#__NO_SIDE_EFFECTS__*/ +function mutable_source(initial_value, immutable = false, trackable = true) { + const s = source(initial_value); + if (!immutable) { + s.equals = safe_equals; + } + + return s; +} + +/** + * @template V + * @param {Source} source + * @param {V} value + * @param {boolean} [should_proxy] + * @returns {V} + */ +function set(source, value, should_proxy = false) { + if ( + active_reaction !== null && + // since we are untracking the function inside `$inspect.with` we need to add this check + // to ensure we error if state is set inside an inspect effect + (!untracking || (active_reaction.f & EAGER_EFFECT) !== 0) && + is_runes() && + (active_reaction.f & (DERIVED | BLOCK_EFFECT | ASYNC | EAGER_EFFECT)) !== 0 && + !current_sources?.includes(source) + ) { + state_unsafe_mutation(); + } + + let new_value = should_proxy ? proxy(value) : value; + + return internal_set(source, new_value); +} + +/** + * @template V + * @param {Source} source + * @param {V} value + * @returns {V} + */ +function internal_set(source, value) { + if (!source.equals(value)) { + var old_value = source.v; + + if (is_destroying_effect) { + old_values.set(source, value); + } else { + old_values.set(source, old_value); + } + + source.v = value; + + var batch = Batch.ensure(); + batch.capture(source, old_value); + + if ((source.f & DERIVED) !== 0) { + const derived = /** @type {Derived} */ (source); + + // if we are assigning to a dirty derived we set it to clean/maybe dirty but we also eagerly execute it to track the dependencies + if ((source.f & DIRTY) !== 0) { + execute_derived(derived); + } + + update_derived_status(derived); + } + + source.wv = increment_write_version(); + + // For debugging, in case you want to know which reactions are being scheduled: + // log_reactions(source); + mark_reactions(source, DIRTY); + + // It's possible that the current reaction might not have up-to-date dependencies + // whilst it's actively running. So in the case of ensuring it registers the reaction + // properly for itself, we need to ensure the current effect actually gets + // scheduled. i.e: `$effect(() => x++)` + if ( + active_effect !== null && + (active_effect.f & CLEAN) !== 0 && + (active_effect.f & (BRANCH_EFFECT | ROOT_EFFECT)) === 0 + ) { + if (untracked_writes === null) { + set_untracked_writes([source]); + } else { + untracked_writes.push(source); + } + } + + if (!batch.is_fork && eager_effects.size > 0 && !eager_effects_deferred) { + flush_eager_effects(); + } + } + + return value; +} + +function flush_eager_effects() { + eager_effects_deferred = false; + var prev_is_updating_effect = is_updating_effect; + set_is_updating_effect(true); + + const inspects = Array.from(eager_effects); + + try { + for (const effect of inspects) { + // Mark clean inspect-effects as maybe dirty and then check their dirtiness + // instead of just updating the effects - this way we avoid overfiring. + if ((effect.f & CLEAN) !== 0) { + set_signal_status(effect, MAYBE_DIRTY); + } + + if (is_dirty(effect)) { + update_effect(effect); + } + } + } finally { + set_is_updating_effect(prev_is_updating_effect); + } + + eager_effects.clear(); +} + +/** + * Silently (without using `get`) increment a source + * @param {Source} source + */ +function increment(source) { + set(source, source.v + 1); +} + +/** + * @param {Value} signal + * @param {number} status should be DIRTY or MAYBE_DIRTY + * @returns {void} + */ +function mark_reactions(signal, status) { + var reactions = signal.reactions; + if (reactions === null) return; + var length = reactions.length; + + for (var i = 0; i < length; i++) { + var reaction = reactions[i]; + var flags = reaction.f; + + var not_dirty = (flags & DIRTY) === 0; + + // don't set a DIRTY reaction to MAYBE_DIRTY + if (not_dirty) { + set_signal_status(reaction, status); + } + + if ((flags & DERIVED) !== 0) { + var derived = /** @type {Derived} */ (reaction); + + batch_values?.delete(derived); + + if ((flags & WAS_MARKED) === 0) { + // Only connected deriveds can be reliably unmarked right away + if (flags & CONNECTED) { + reaction.f |= WAS_MARKED; + } + + mark_reactions(derived, MAYBE_DIRTY); + } + } else if (not_dirty) { + if ((flags & BLOCK_EFFECT) !== 0 && eager_block_effects !== null) { + eager_block_effects.add(/** @type {Effect} */ (reaction)); + } + + schedule_effect(/** @type {Effect} */ (reaction)); + } + } +} + +/** + * @template T + * @param {() => T} fn + */ +function without_reactive_context(fn) { + var previous_reaction = active_reaction; + var previous_effect = active_effect; + set_active_reaction(null); + set_active_effect(null); + try { + return fn(); + } finally { + set_active_reaction(previous_reaction); + set_active_effect(previous_effect); + } +} + +/** @import { Derived, Effect, Reaction, Source, Value } from '#client' */ + +let is_updating_effect = false; + +/** @param {boolean} value */ +function set_is_updating_effect(value) { + is_updating_effect = value; +} + +let is_destroying_effect = false; + +/** @param {boolean} value */ +function set_is_destroying_effect(value) { + is_destroying_effect = value; +} + +/** @type {null | Reaction} */ +let active_reaction = null; + +let untracking = false; + +/** @param {null | Reaction} reaction */ +function set_active_reaction(reaction) { + active_reaction = reaction; +} + +/** @type {null | Effect} */ +let active_effect = null; + +/** @param {null | Effect} effect */ +function set_active_effect(effect) { + active_effect = effect; +} + +/** + * When sources are created within a reaction, reading and writing + * them within that reaction should not cause a re-run + * @type {null | Source[]} + */ +let current_sources = null; + +/** @param {Value} value */ +function push_reaction_value(value) { + if (active_reaction !== null && (!async_mode_flag || (active_reaction.f & DERIVED) !== 0)) { + if (current_sources === null) { + current_sources = [value]; + } else { + current_sources.push(value); + } + } +} + +/** + * The dependencies of the reaction that is currently being executed. In many cases, + * the dependencies are unchanged between runs, and so this will be `null` unless + * and until a new dependency is accessed — we track this via `skipped_deps` + * @type {null | Value[]} + */ +let new_deps = null; + +let skipped_deps = 0; + +/** + * Tracks writes that the effect it's executed in doesn't listen to yet, + * so that the dependency can be added to the effect later on if it then reads it + * @type {null | Source[]} + */ +let untracked_writes = null; + +/** @param {null | Source[]} value */ +function set_untracked_writes(value) { + untracked_writes = value; +} + +/** + * @type {number} Used by sources and deriveds for handling updates. + * Version starts from 1 so that unowned deriveds differentiate between a created effect and a run one for tracing + **/ +let write_version = 1; + +/** @type {number} Used to version each read of a source of derived to avoid duplicating depedencies inside a reaction */ +let read_version = 0; + +let update_version = read_version; + +/** @param {number} value */ +function set_update_version(value) { + update_version = value; +} + +function increment_write_version() { + return ++write_version; +} + +/** + * Determines whether a derived or effect is dirty. + * If it is MAYBE_DIRTY, will set the status to CLEAN + * @param {Reaction} reaction + * @returns {boolean} + */ +function is_dirty(reaction) { + var flags = reaction.f; + + if ((flags & DIRTY) !== 0) { + return true; + } + + if (flags & DERIVED) { + reaction.f &= ~WAS_MARKED; + } + + if ((flags & MAYBE_DIRTY) !== 0) { + var dependencies = /** @type {Value[]} */ (reaction.deps); + var length = dependencies.length; + + for (var i = 0; i < length; i++) { + var dependency = dependencies[i]; + + if (is_dirty(/** @type {Derived} */ (dependency))) { + update_derived(/** @type {Derived} */ (dependency)); + } + + if (dependency.wv > reaction.wv) { + return true; + } + } + + if ( + (flags & CONNECTED) !== 0 && + // During time traveling we don't want to reset the status so that + // traversal of the graph in the other batches still happens + batch_values === null + ) { + set_signal_status(reaction, CLEAN); + } + } + + return false; +} + +/** + * @param {Value} signal + * @param {Effect} effect + * @param {boolean} [root] + */ +function schedule_possible_effect_self_invalidation(signal, effect, root = true) { + var reactions = signal.reactions; + if (reactions === null) return; + + if (!async_mode_flag && current_sources?.includes(signal)) { + return; + } + + for (var i = 0; i < reactions.length; i++) { + var reaction = reactions[i]; + + if ((reaction.f & DERIVED) !== 0) { + schedule_possible_effect_self_invalidation(/** @type {Derived} */ (reaction), effect, false); + } else if (effect === reaction) { + if (root) { + set_signal_status(reaction, DIRTY); + } else if ((reaction.f & CLEAN) !== 0) { + set_signal_status(reaction, MAYBE_DIRTY); + } + schedule_effect(/** @type {Effect} */ (reaction)); + } + } +} + +/** @param {Reaction} reaction */ +function update_reaction(reaction) { + var previous_deps = new_deps; + var previous_skipped_deps = skipped_deps; + var previous_untracked_writes = untracked_writes; + var previous_reaction = active_reaction; + var previous_sources = current_sources; + var previous_component_context = component_context; + var previous_untracking = untracking; + var previous_update_version = update_version; + + var flags = reaction.f; + + new_deps = /** @type {null | Value[]} */ (null); + skipped_deps = 0; + untracked_writes = null; + active_reaction = (flags & (BRANCH_EFFECT | ROOT_EFFECT)) === 0 ? reaction : null; + + current_sources = null; + set_component_context(reaction.ctx); + untracking = false; + update_version = ++read_version; + + if (reaction.ac !== null) { + without_reactive_context(() => { + /** @type {AbortController} */ (reaction.ac).abort(STALE_REACTION); + }); + + reaction.ac = null; + } + + try { + reaction.f |= REACTION_IS_UPDATING; + var fn = /** @type {Function} */ (reaction.fn); + var result = fn(); + var deps = reaction.deps; + + if (new_deps !== null) { + var i; + + remove_reactions(reaction, skipped_deps); + + if (deps !== null && skipped_deps > 0) { + deps.length = skipped_deps + new_deps.length; + for (i = 0; i < new_deps.length; i++) { + deps[skipped_deps + i] = new_deps[i]; + } + } else { + reaction.deps = deps = new_deps; + } + + if (effect_tracking() && (reaction.f & CONNECTED) !== 0) { + for (i = skipped_deps; i < deps.length; i++) { + (deps[i].reactions ??= []).push(reaction); + } + } + } else if (deps !== null && skipped_deps < deps.length) { + remove_reactions(reaction, skipped_deps); + deps.length = skipped_deps; + } + + // If we're inside an effect and we have untracked writes, then we need to + // ensure that if any of those untracked writes result in re-invalidation + // of the current effect, then that happens accordingly + if ( + is_runes() && + untracked_writes !== null && + !untracking && + deps !== null && + (reaction.f & (DERIVED | MAYBE_DIRTY | DIRTY)) === 0 + ) { + for (i = 0; i < /** @type {Source[]} */ (untracked_writes).length; i++) { + schedule_possible_effect_self_invalidation( + untracked_writes[i], + /** @type {Effect} */ (reaction) + ); + } + } + + // If we are returning to an previous reaction then + // we need to increment the read version to ensure that + // any dependencies in this reaction aren't marked with + // the same version + if (previous_reaction !== null && previous_reaction !== reaction) { + read_version++; + + // update the `rv` of the previous reaction's deps — both existing and new — + // so that they are not added again + if (previous_reaction.deps !== null) { + for (let i = 0; i < previous_skipped_deps; i += 1) { + previous_reaction.deps[i].rv = read_version; + } + } + + if (previous_deps !== null) { + for (const dep of previous_deps) { + dep.rv = read_version; + } + } + + if (untracked_writes !== null) { + if (previous_untracked_writes === null) { + previous_untracked_writes = untracked_writes; + } else { + previous_untracked_writes.push(.../** @type {Source[]} */ (untracked_writes)); + } + } + } + + if ((reaction.f & ERROR_VALUE) !== 0) { + reaction.f ^= ERROR_VALUE; + } + + return result; + } catch (error) { + return handle_error(error); + } finally { + reaction.f ^= REACTION_IS_UPDATING; + new_deps = previous_deps; + skipped_deps = previous_skipped_deps; + untracked_writes = previous_untracked_writes; + active_reaction = previous_reaction; + current_sources = previous_sources; + set_component_context(previous_component_context); + untracking = previous_untracking; + update_version = previous_update_version; + } +} + +/** + * @template V + * @param {Reaction} signal + * @param {Value} dependency + * @returns {void} + */ +function remove_reaction(signal, dependency) { + let reactions = dependency.reactions; + if (reactions !== null) { + var index = index_of.call(reactions, signal); + if (index !== -1) { + var new_length = reactions.length - 1; + if (new_length === 0) { + reactions = dependency.reactions = null; + } else { + // Swap with last element and then remove. + reactions[index] = reactions[new_length]; + reactions.pop(); + } + } + } + + // If the derived has no reactions, then we can disconnect it from the graph, + // allowing it to either reconnect in the future, or be GC'd by the VM. + if ( + reactions === null && + (dependency.f & DERIVED) !== 0 && + // Destroying a child effect while updating a parent effect can cause a dependency to appear + // to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps` + // allows us to skip the expensive work of disconnecting and immediately reconnecting it + (new_deps === null || !new_deps.includes(dependency)) + ) { + var derived = /** @type {Derived} */ (dependency); + + // If we are working with a derived that is owned by an effect, then mark it as being + // disconnected and remove the mark flag, as it cannot be reliably removed otherwise + if ((derived.f & CONNECTED) !== 0) { + derived.f ^= CONNECTED; + derived.f &= ~WAS_MARKED; + } + + update_derived_status(derived); + + // Disconnect any reactions owned by this reaction + destroy_derived_effects(derived); + remove_reactions(derived, 0); + } +} + +/** + * @param {Reaction} signal + * @param {number} start_index + * @returns {void} + */ +function remove_reactions(signal, start_index) { + var dependencies = signal.deps; + if (dependencies === null) return; + + for (var i = start_index; i < dependencies.length; i++) { + remove_reaction(signal, dependencies[i]); + } +} + +/** + * @param {Effect} effect + * @returns {void} + */ +function update_effect(effect) { + var flags = effect.f; + + if ((flags & DESTROYED) !== 0) { + return; + } + + set_signal_status(effect, CLEAN); + + var previous_effect = active_effect; + var was_updating_effect = is_updating_effect; + + active_effect = effect; + is_updating_effect = true; + + try { + if ((flags & (BLOCK_EFFECT | MANAGED_EFFECT)) !== 0) { + destroy_block_effect_children(effect); + } else { + destroy_effect_children(effect); + } + + execute_effect_teardown(effect); + var teardown = update_reaction(effect); + effect.teardown = typeof teardown === 'function' ? teardown : null; + effect.wv = write_version; + + // In DEV, increment versions of any sources that were written to during the effect, + // so that they are correctly marked as dirty when the effect re-runs + var dep; if (DEV && tracing_mode_flag && (effect.f & DIRTY) !== 0 && effect.deps !== null) ; + } finally { + is_updating_effect = was_updating_effect; + active_effect = previous_effect; + } +} + +/** + * @template V + * @param {Value} signal + * @returns {V} + */ +function get(signal) { + var flags = signal.f; + var is_derived = (flags & DERIVED) !== 0; + + // Register the dependency on the current reaction signal. + if (active_reaction !== null && !untracking) { + // if we're in a derived that is being read inside an _async_ derived, + // it's possible that the effect was already destroyed. In this case, + // we don't add the dependency, because that would create a memory leak + var destroyed = active_effect !== null && (active_effect.f & DESTROYED) !== 0; + + if (!destroyed && !current_sources?.includes(signal)) { + var deps = active_reaction.deps; + + if ((active_reaction.f & REACTION_IS_UPDATING) !== 0) { + // we're in the effect init/update cycle + if (signal.rv < read_version) { + signal.rv = read_version; + + // If the signal is accessing the same dependencies in the same + // order as it did last time, increment `skipped_deps` + // rather than updating `new_deps`, which creates GC cost + if (new_deps === null && deps !== null && deps[skipped_deps] === signal) { + skipped_deps++; + } else if (new_deps === null) { + new_deps = [signal]; + } else { + new_deps.push(signal); + } + } + } else { + // we're adding a dependency outside the init/update cycle + // (i.e. after an `await`) + (active_reaction.deps ??= []).push(signal); + + var reactions = signal.reactions; + + if (reactions === null) { + signal.reactions = [active_reaction]; + } else if (!reactions.includes(active_reaction)) { + reactions.push(active_reaction); + } + } + } + } + + if (is_destroying_effect && old_values.has(signal)) { + return old_values.get(signal); + } + + if (is_derived) { + var derived = /** @type {Derived} */ (signal); + + if (is_destroying_effect) { + var value = derived.v; + + // if the derived is dirty and has reactions, or depends on the values that just changed, re-execute + // (a derived can be maybe_dirty due to the effect destroy removing its last reaction) + if ( + ((derived.f & CLEAN) === 0 && derived.reactions !== null) || + depends_on_old_values(derived) + ) { + value = execute_derived(derived); + } + + old_values.set(derived, value); + + return value; + } + + // connect disconnected deriveds if we are reading them inside an effect, + // or inside another derived that is already connected + var should_connect = + (derived.f & CONNECTED) === 0 && + !untracking && + active_reaction !== null && + (is_updating_effect || (active_reaction.f & CONNECTED) !== 0); + + var is_new = derived.deps === null; + + if (is_dirty(derived)) { + if (should_connect) { + // set the flag before `update_derived`, so that the derived + // is added as a reaction to its dependencies + derived.f |= CONNECTED; + } + + update_derived(derived); + } + + if (should_connect && !is_new) { + reconnect(derived); + } + } + + if (batch_values?.has(signal)) { + return batch_values.get(signal); + } + + if ((signal.f & ERROR_VALUE) !== 0) { + throw signal.v; + } + + return signal.v; +} + +/** + * (Re)connect a disconnected derived, so that it is notified + * of changes in `mark_reactions` + * @param {Derived} derived + */ +function reconnect(derived) { + if (derived.deps === null) return; + + derived.f |= CONNECTED; + + for (const dep of derived.deps) { + (dep.reactions ??= []).push(derived); + + if ((dep.f & DERIVED) !== 0 && (dep.f & CONNECTED) === 0) { + reconnect(/** @type {Derived} */ (dep)); + } + } +} + +/** @param {Derived} derived */ +function depends_on_old_values(derived) { + if (derived.v === UNINITIALIZED) return true; // we don't know, so assume the worst + if (derived.deps === null) return false; + + for (const dep of derived.deps) { + if (old_values.has(dep)) { + return true; + } + + if ((dep.f & DERIVED) !== 0 && depends_on_old_values(/** @type {Derived} */ (dep))) { + return true; + } + } + + return false; +} + +/** + * When used inside a [`$derived`](https://svelte.dev/docs/svelte/$derived) or [`$effect`](https://svelte.dev/docs/svelte/$effect), + * any state read inside `fn` will not be treated as a dependency. + * + * ```ts + * $effect(() => { + * // this will run when `data` changes, but not when `time` changes + * save(data, { + * timestamp: untrack(() => time) + * }); + * }); + * ``` + * @template T + * @param {() => T} fn + * @returns {T} + */ +function untrack(fn) { + var previous_untracking = untracking; + try { + untracking = true; + return fn(); + } finally { + untracking = previous_untracking; + } +} + +/** @import { ComponentContext, ComponentContextLegacy, Derived, Effect, TemplateNode, TransitionManager } from '#client' */ + +/** + * @param {Effect} effect + * @param {Effect} parent_effect + */ +function push_effect(effect, parent_effect) { + var parent_last = parent_effect.last; + if (parent_last === null) { + parent_effect.last = parent_effect.first = effect; + } else { + parent_last.next = effect; + effect.prev = parent_last; + parent_effect.last = effect; + } +} + +/** + * @param {number} type + * @param {null | (() => void | (() => void))} fn + * @param {boolean} sync + * @returns {Effect} + */ +function create_effect(type, fn, sync) { + var parent = active_effect; + + if (parent !== null && (parent.f & INERT) !== 0) { + type |= INERT; + } + + /** @type {Effect} */ + var effect = { + ctx: component_context, + deps: null, + nodes: null, + f: type | DIRTY | CONNECTED, + first: null, + fn, + last: null, + next: null, + parent, + b: parent && parent.b, + prev: null, + teardown: null, + wv: 0, + ac: null + }; + + if (sync) { + try { + update_effect(effect); + effect.f |= EFFECT_RAN; + } catch (e) { + destroy_effect(effect); + throw e; + } + } else if (fn !== null) { + schedule_effect(effect); + } + + /** @type {Effect | null} */ + var e = effect; + + // if an effect has already ran and doesn't need to be kept in the tree + // (because it won't re-run, has no DOM, and has no teardown etc) + // then we skip it and go to its child (if any) + if ( + sync && + e.deps === null && + e.teardown === null && + e.nodes === null && + e.first === e.last && // either `null`, or a singular child + (e.f & EFFECT_PRESERVED) === 0 + ) { + e = e.first; + if ((type & BLOCK_EFFECT) !== 0 && (type & EFFECT_TRANSPARENT) !== 0 && e !== null) { + e.f |= EFFECT_TRANSPARENT; + } + } + + if (e !== null) { + e.parent = parent; + + if (parent !== null) { + push_effect(e, parent); + } + + // if we're in a derived, add the effect there too + if ( + active_reaction !== null && + (active_reaction.f & DERIVED) !== 0 && + (type & ROOT_EFFECT) === 0 + ) { + var derived = /** @type {Derived} */ (active_reaction); + (derived.effects ??= []).push(e); + } + } + + return effect; +} + +/** + * Internal representation of `$effect.tracking()` + * @returns {boolean} + */ +function effect_tracking() { + return active_reaction !== null && !untracking; +} + +/** + * @param {() => void | (() => void)} fn + */ +function create_user_effect(fn) { + return create_effect(EFFECT | USER_EFFECT, fn, false); +} + +/** + * An effect root whose children can transition out + * @param {() => void} fn + * @returns {(options?: { outro?: boolean }) => Promise} + */ +function component_root(fn) { + Batch.ensure(); + const effect = create_effect(ROOT_EFFECT | EFFECT_PRESERVED, fn, true); + + return (options = {}) => { + return new Promise((fulfil) => { + if (options.outro) { + pause_effect(effect, () => { + destroy_effect(effect); + fulfil(undefined); + }); + } else { + destroy_effect(effect); + fulfil(undefined); + } + }); + }; +} + +/** + * @param {() => void | (() => void)} fn + * @returns {Effect} + */ +function render_effect(fn, flags = 0) { + return create_effect(RENDER_EFFECT | flags, fn, true); +} + +/** + * @param {(() => void)} fn + * @param {number} flags + */ +function block(fn, flags = 0) { + var effect = create_effect(BLOCK_EFFECT | flags, fn, true); + return effect; +} + +/** + * @param {(() => void)} fn + */ +function branch(fn) { + return create_effect(BRANCH_EFFECT | EFFECT_PRESERVED, fn, true); +} + +/** + * @param {Effect} effect + */ +function execute_effect_teardown(effect) { + var teardown = effect.teardown; + if (teardown !== null) { + const previously_destroying_effect = is_destroying_effect; + const previous_reaction = active_reaction; + set_is_destroying_effect(true); + set_active_reaction(null); + try { + teardown.call(null); + } finally { + set_is_destroying_effect(previously_destroying_effect); + set_active_reaction(previous_reaction); + } + } +} + +/** + * @param {Effect} signal + * @param {boolean} remove_dom + * @returns {void} + */ +function destroy_effect_children(signal, remove_dom = false) { + var effect = signal.first; + signal.first = signal.last = null; + + while (effect !== null) { + const controller = effect.ac; + + if (controller !== null) { + without_reactive_context(() => { + controller.abort(STALE_REACTION); + }); + } + + var next = effect.next; + + if ((effect.f & ROOT_EFFECT) !== 0) { + // this is now an independent root + effect.parent = null; + } else { + destroy_effect(effect, remove_dom); + } + + effect = next; + } +} + +/** + * @param {Effect} signal + * @returns {void} + */ +function destroy_block_effect_children(signal) { + var effect = signal.first; + + while (effect !== null) { + var next = effect.next; + if ((effect.f & BRANCH_EFFECT) === 0) { + destroy_effect(effect); + } + effect = next; + } +} + +/** + * @param {Effect} effect + * @param {boolean} [remove_dom] + * @returns {void} + */ +function destroy_effect(effect, remove_dom = true) { + var removed = false; + + if ( + (remove_dom || (effect.f & HEAD_EFFECT) !== 0) && + effect.nodes !== null && + effect.nodes.end !== null + ) { + remove_effect_dom(effect.nodes.start, /** @type {TemplateNode} */ (effect.nodes.end)); + removed = true; + } + + destroy_effect_children(effect, remove_dom && !removed); + remove_reactions(effect, 0); + set_signal_status(effect, DESTROYED); + + var transitions = effect.nodes && effect.nodes.t; + + if (transitions !== null) { + for (const transition of transitions) { + transition.stop(); + } + } + + execute_effect_teardown(effect); + + var parent = effect.parent; + + // If the parent doesn't have any children, then skip this work altogether + if (parent !== null && parent.first !== null) { + unlink_effect(effect); + } + + // `first` and `child` are nulled out in destroy_effect_children + // we don't null out `parent` so that error propagation can work correctly + effect.next = + effect.prev = + effect.teardown = + effect.ctx = + effect.deps = + effect.fn = + effect.nodes = + effect.ac = + null; +} + +/** + * + * @param {TemplateNode | null} node + * @param {TemplateNode} end + */ +function remove_effect_dom(node, end) { + while (node !== null) { + /** @type {TemplateNode | null} */ + var next = node === end ? null : get_next_sibling(node); + + node.remove(); + node = next; + } +} + +/** + * Detach an effect from the effect tree, freeing up memory and + * reducing the amount of work that happens on subsequent traversals + * @param {Effect} effect + */ +function unlink_effect(effect) { + var parent = effect.parent; + var prev = effect.prev; + var next = effect.next; + + if (prev !== null) prev.next = next; + if (next !== null) next.prev = prev; + + if (parent !== null) { + if (parent.first === effect) parent.first = next; + if (parent.last === effect) parent.last = prev; + } +} + +/** + * When a block effect is removed, we don't immediately destroy it or yank it + * out of the DOM, because it might have transitions. Instead, we 'pause' it. + * It stays around (in memory, and in the DOM) until outro transitions have + * completed, and if the state change is reversed then we _resume_ it. + * A paused effect does not update, and the DOM subtree becomes inert. + * @param {Effect} effect + * @param {() => void} [callback] + * @param {boolean} [destroy] + */ +function pause_effect(effect, callback, destroy = true) { + /** @type {TransitionManager[]} */ + var transitions = []; + + pause_children(effect, transitions, true); + + var fn = () => { + if (destroy) destroy_effect(effect); + if (callback) callback(); + }; + + var remaining = transitions.length; + if (remaining > 0) { + var check = () => --remaining || fn(); + for (var transition of transitions) { + transition.out(check); + } + } else { + fn(); + } +} + +/** + * @param {Effect} effect + * @param {TransitionManager[]} transitions + * @param {boolean} local + */ +function pause_children(effect, transitions, local) { + if ((effect.f & INERT) !== 0) return; + effect.f ^= INERT; + + var t = effect.nodes && effect.nodes.t; + + if (t !== null) { + for (const transition of t) { + if (transition.is_global || local) { + transitions.push(transition); + } + } + } + + var child = effect.first; + + while (child !== null) { + var sibling = child.next; + var transparent = + (child.f & EFFECT_TRANSPARENT) !== 0 || + // If this is a branch effect without a block effect parent, + // it means the parent block effect was pruned. In that case, + // transparency information was transferred to the branch effect. + ((child.f & BRANCH_EFFECT) !== 0 && (effect.f & BLOCK_EFFECT) !== 0); + // TODO we don't need to call pause_children recursively with a linked list in place + // it's slightly more involved though as we have to account for `transparent` changing + // through the tree. + pause_children(child, transitions, transparent ? local : false); + child = sibling; + } +} + +/** + * @param {Effect} effect + * @param {DocumentFragment} fragment + */ +function move_effect(effect, fragment) { + if (!effect.nodes) return; + + /** @type {TemplateNode | null} */ + var node = effect.nodes.start; + var end = effect.nodes.end; + + while (node !== null) { + /** @type {TemplateNode | null} */ + var next = node === end ? null : get_next_sibling(node); + + fragment.append(node); + node = next; + } +} + +/** @import { Readable } from './public' */ + +/** + * @template T + * @param {Readable | null | undefined} store + * @param {(value: T) => void} run + * @param {(value: T) => void} [invalidate] + * @returns {() => void} + */ +function subscribe_to_store(store, run, invalidate) { + if (store == null) { + // @ts-expect-error + run(undefined); + + // @ts-expect-error + if (invalidate) invalidate(undefined); + + return noop; + } + + // Svelte store takes a private second argument + // StartStopNotifier could mutate state, and we want to silence the corresponding validation error + const unsub = untrack(() => + store.subscribe( + run, + // @ts-expect-error + invalidate + ) + ); + + // Also support RxJS + // @ts-expect-error TODO fix this in the types? + return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub; +} + +enable_async_mode_flag(); + +export { push as $, set_active_reaction as A, Batch as B, COMMENT_NODE as C, set_component_context as D, handle_error as E, active_reaction as F, component_context as G, HYDRATION_ERROR as H, move_effect as I, set_signal_status as J, DIRTY as K, schedule_effect as L, MAYBE_DIRTY as M, internal_set as N, destroy_effect as O, invoke_error_boundary as P, svelte_boundary_reset_onerror as Q, EFFECT_TRANSPARENT as R, EFFECT_PRESERVED as S, BOUNDARY_EFFECT as T, define_property as U, init_operations as V, get_first_child as W, hydration_failed as X, clear_text_content as Y, array_from as Z, component_root as _, subscribe_to_store as a, pop as a0, set as a1, LEGACY_PROPS as a2, async_mode_flag as a3, flushSync as a4, mutable_source as a5, STALE_REACTION as a6, deferred as a7, ELEMENT_PRESERVE_ATTRIBUTE_CASE as a8, ELEMENT_IS_INPUT as a9, ELEMENT_IS_NAMESPACED as aa, is_promise as ab, HYDRATION_END as b, get_next_sibling as c, HYDRATION_START as d, HYDRATION_START_ELSE as e, fallback as f, get_prototype_of as g, effect_tracking as h, is_array as i, get as j, source as k, render_effect as l, increment as m, noop as n, object_prototype as o, active_effect as p, queue_micro_task as q, run_all as r, safe_not_equal as s, block as t, untrack as u, branch as v, pause_effect as w, create_text as x, defer_effect as y, set_active_effect as z }; +//# sourceMappingURL=async-D55cHugf.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/browserAll-D1iqaGoY.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/browserAll-D1iqaGoY.js new file mode 100644 index 0000000000000000000000000000000000000000..e9a73f86eafc3f9c31de89fbf6bc7eb459b6e5cb --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/browserAll-D1iqaGoY.js @@ -0,0 +1,47 @@ +import { E as B$1, e as ft, C as U$1, r as _h, T as ri, U as ws, P as N$1, a as Ot, w as J } from './Index4-BvPFZOEY.js'; +import './webworkerAll-B81XBg67.js'; +import './async-D55cHugf.js'; +import './index-u8mz_F03.js'; +import './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; +import './2-BLdXJizP.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; +import './index-server-CQz6EZl_.js'; +import './utils.svelte-B2py64Fz.js'; +import './clone-Yk88IHKV.js'; +import './ImagePreview-Ca2hvNZZ.js'; +import './BlockLabel-bKYWnOzQ.js'; +import './DownloadLink-nj1p0krE.js'; +import './IconButton-BRnu7KaR.js'; +import './Empty-DGRbZO0a.js'; +import './ShareButton-7VTs9dOO.js'; +import './Download-DcU5dONL.js'; +import './Image2-vcp9_ifi.js'; +import './IconButtonWrapper-CjFRPb3y.js'; +import './FullscreenButton-D8PvgSmk.js'; +import './Maximize-CuHbK64j.js'; +import './Image-CuPo5pWT.js'; +import './Block-DZmzQwnI.js'; +import './index3-Df92vI-L.js'; +import './Clear-D7Yjckqz.js'; +import './tinycolor-DfhFic3A.js'; +import './Check-C7_ZsXgh.js'; +import './colorToUniform-CrQRsPlb.js'; + +class q{constructor(e){this._lastTransform="",this._observer=null,this._tickerAttached=false,this.updateTranslation=()=>{if(!this._canvas)return;const t=this._canvas.getBoundingClientRect(),i=this._canvas.width,n=this._canvas.height,s=t.width/i*this._renderer.resolution,o=t.height/n*this._renderer.resolution,r=t.left,l=t.top,d=`translate(${r}px, ${l}px) scale(${s}, ${o})`;d!==this._lastTransform&&(this._domElement.style.transform=d,this._lastTransform=d);},this._domElement=e.domElement,this._renderer=e.renderer,!(globalThis.OffscreenCanvas&&this._renderer.canvas instanceof OffscreenCanvas)&&(this._canvas=this._renderer.canvas,this._attachObserver());}get canvas(){return this._canvas}ensureAttached(){!this._domElement.parentNode&&this._canvas.parentNode&&(this._canvas.parentNode.appendChild(this._domElement),this.updateTranslation());}_attachObserver(){"ResizeObserver"in globalThis?(this._observer&&(this._observer.disconnect(),this._observer=null),this._observer=new ResizeObserver(e=>{for(const t of e){if(t.target!==this._canvas)continue;const i=this.canvas.width,n=this.canvas.height,s=t.contentRect.width/i*this._renderer.resolution,o=t.contentRect.height/n*this._renderer.resolution;(this._lastScaleX!==s||this._lastScaleY!==o)&&(this.updateTranslation(),this._lastScaleX=s,this._lastScaleY=o);}}),this._observer.observe(this._canvas)):this._tickerAttached||ri.shared.add(this.updateTranslation,this,ws.HIGH);}destroy(){this._observer?(this._observer.disconnect(),this._observer=null):this._tickerAttached&&ri.shared.remove(this.updateTranslation),this._domElement=null,this._renderer=null,this._canvas=null,this._tickerAttached=false,this._lastTransform="",this._lastScaleX=null,this._lastScaleY=null;}}class w{constructor(e){this.bubbles=true,this.cancelBubble=true,this.cancelable=false,this.composed=false,this.defaultPrevented=false,this.eventPhase=w.prototype.NONE,this.propagationStopped=false,this.propagationImmediatelyStopped=false,this.layer=new N$1,this.page=new N$1,this.NONE=0,this.CAPTURING_PHASE=1,this.AT_TARGET=2,this.BUBBLING_PHASE=3,this.manager=e;}get layerX(){return this.layer.x}get layerY(){return this.layer.y}get pageX(){return this.page.x}get pageY(){return this.page.y}get data(){return this}composedPath(){return this.manager&&(!this.path||this.path[this.path.length-1]!==this.target)&&(this.path=this.target?this.manager.propagationPath(this.target):[]),this.path}initEvent(e,t,i){throw new Error("initEvent() is a legacy DOM API. It is not implemented in the Federated Events API.")}initUIEvent(e,t,i,n,s){throw new Error("initUIEvent() is a legacy DOM API. It is not implemented in the Federated Events API.")}preventDefault(){this.nativeEvent instanceof Event&&this.nativeEvent.cancelable&&this.nativeEvent.preventDefault(),this.defaultPrevented=true;}stopImmediatePropagation(){this.propagationImmediatelyStopped=true;}stopPropagation(){this.propagationStopped=true;}}var I=/iPhone/i,B=/iPod/i,C=/iPad/i,U=/\biOS-universal(?:.+)Mac\b/i,k=/\bAndroid(?:.+)Mobile\b/i,R=/Android/i,b=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,O=/Silk/i,v=/Windows Phone/i,X=/\bWindows(?:.+)ARM\b/i,Y=/BlackBerry/i,H=/BB10/i,F=/Opera Mini/i,N=/\b(CriOS|Chrome)(?:.+)Mobile/i,$=/Mobile(?:.+)Firefox\b/i,K=function(a){return typeof a<"u"&&a.platform==="MacIntel"&&typeof a.maxTouchPoints=="number"&&a.maxTouchPoints>1&&typeof MSStream>"u"};function ne(a){return function(e){return e.test(a)}}function G(a){var e={userAgent:"",platform:"",maxTouchPoints:0};!a&&typeof navigator<"u"?e={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof a=="string"?e.userAgent=a:a&&a.userAgent&&(e={userAgent:a.userAgent,platform:a.platform,maxTouchPoints:a.maxTouchPoints||0});var t=e.userAgent,i=t.split("[FBAN");typeof i[1]<"u"&&(t=i[0]),i=t.split("Twitter"),typeof i[1]<"u"&&(t=i[0]);var n=ne(t),s={apple:{phone:n(I)&&!n(v),ipod:n(B),tablet:!n(I)&&(n(C)||K(e))&&!n(v),universal:n(U),device:(n(I)||n(B)||n(C)||n(U)||K(e))&&!n(v)},amazon:{phone:n(b),tablet:!n(b)&&n(O),device:n(b)||n(O)},android:{phone:!n(v)&&n(b)||!n(v)&&n(k),tablet:!n(v)&&!n(b)&&!n(k)&&(n(O)||n(R)),device:!n(v)&&(n(b)||n(O)||n(k)||n(R))||n(/\bokhttp\b/i)},windows:{phone:n(v),tablet:n(X),device:n(v)||n(X)},other:{blackberry:n(Y),blackberry10:n(H),opera:n(F),firefox:n($),chrome:n(N),device:n(Y)||n(H)||n(F)||n($)||n(N)},any:false,phone:false,tablet:false};return s.any=s.apple.device||s.android.device||s.windows.device||s.other.device,s.phone=s.apple.phone||s.android.phone||s.windows.phone,s.tablet=s.apple.tablet||s.android.tablet||s.windows.tablet,s}const se=G.default??G,oe=se(globalThis.navigator),re=9,W=100,ae=0,le=0,j=2,z=1,he=-1e3,ce=-1e3,de=2,L=class J{constructor(e,t=oe){this._mobileInfo=t,this.debug=false,this._activateOnTab=true,this._deactivateOnMouseMove=true,this._isActive=false,this._isMobileAccessibility=false,this._div=null,this._pools={},this._renderId=0,this._children=[],this._androidUpdateCount=0,this._androidUpdateFrequency=500,this._isRunningTests=false,this._boundOnKeyDown=this._onKeyDown.bind(this),this._boundOnMouseMove=this._onMouseMove.bind(this),this._hookDiv=null,(t.tablet||t.phone)&&this._createTouchHook(),this._renderer=e;}get isActive(){return this._isActive}get isMobileAccessibility(){return this._isMobileAccessibility}get hookDiv(){return this._hookDiv}get div(){return this._div}_createTouchHook(){const e=document.createElement("button");e.style.width=`${z}px`,e.style.height=`${z}px`,e.style.position="absolute",e.style.top=`${he}px`,e.style.left=`${ce}px`,e.style.zIndex=de.toString(),e.style.backgroundColor="#FF0000",e.title="select to enable accessibility for this content",e.addEventListener("focus",()=>{this._isMobileAccessibility=true,this._activate(),this._destroyTouchHook();}),document.body.appendChild(e),this._hookDiv=e;}_destroyTouchHook(){this._hookDiv&&(document.body.removeChild(this._hookDiv),this._hookDiv=null);}_activate(){if(this._isActive)return;this._isActive=true,this._div||(this._div=document.createElement("div"),this._div.style.position="absolute",this._div.style.top=`${ae}px`,this._div.style.left=`${le}px`,this._div.style.pointerEvents="none",this._div.style.zIndex=j.toString(),this._canvasObserver=new q({domElement:this._div,renderer:this._renderer})),this._activateOnTab&&globalThis.addEventListener("keydown",this._boundOnKeyDown,false),this._deactivateOnMouseMove&&globalThis.document.addEventListener("mousemove",this._boundOnMouseMove,true);const e=this._renderer.view.canvas;if(e.parentNode)this._canvasObserver.ensureAttached(),this._initAccessibilitySetup();else {const t=new MutationObserver(()=>{e.parentNode&&(t.disconnect(),this._canvasObserver.ensureAttached(),this._initAccessibilitySetup());});t.observe(document.body,{childList:true,subtree:true});}}_initAccessibilitySetup(){this._renderer.runners.postrender.add(this),this._renderer.lastObjectRendered&&this._updateAccessibleObjects(this._renderer.lastObjectRendered);}_deactivate(){if(!(!this._isActive||this._isMobileAccessibility)){this._isActive=false,globalThis.document.removeEventListener("mousemove",this._boundOnMouseMove,true),this._activateOnTab&&globalThis.addEventListener("keydown",this._boundOnKeyDown,false),this._renderer.runners.postrender.remove(this);for(const e of this._children)e._accessibleDiv?.parentNode&&(e._accessibleDiv.parentNode.removeChild(e._accessibleDiv),e._accessibleDiv=null),e._accessibleActive=false;for(const e in this._pools)this._pools[e].forEach(i=>{i.parentNode&&i.parentNode.removeChild(i);}),delete this._pools[e];this._div?.parentNode&&this._div.parentNode.removeChild(this._div),this._pools={},this._children=[];}}_updateAccessibleObjects(e){if(!e.visible||!e.accessibleChildren)return;e.accessible&&(e._accessibleActive||this._addChild(e),e._renderId=this._renderId);const t=e.children;if(t)for(let i=0;i=0;i--){const n=this._children[i];t.has(i)||(n._accessibleDiv&&n._accessibleDiv.parentNode&&(n._accessibleDiv.parentNode.removeChild(n._accessibleDiv),this._getPool(n.accessibleType).push(n._accessibleDiv),n._accessibleDiv=null),n._accessibleActive=false,_h(this._children,i,1));}this._renderer.renderingToScreen&&this._canvasObserver.ensureAttached();for(let i=0;i title : ${e.title}
    tabIndex: ${e.tabIndex}`;}_capHitArea(e){e.x<0&&(e.width+=e.x,e.x=0),e.y<0&&(e.height+=e.y,e.y=0);const{width:t,height:i}=this._renderer;e.x+e.width>t&&(e.width=t-e.x),e.y+e.height>i&&(e.height=i-e.y);}_addChild(e){let i=this._getPool(e.accessibleType).pop();i?(i.innerHTML="",i.removeAttribute("title"),i.removeAttribute("aria-label"),i.tabIndex=0):(e.accessibleType==="button"?i=document.createElement("button"):(i=document.createElement(e.accessibleType),i.style.cssText=` + color: transparent; + pointer-events: none; + padding: 0; + margin: 0; + border: 0; + outline: 0; + background: transparent; + box-sizing: border-box; + user-select: none; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + `,e.accessibleText&&(i.innerText=e.accessibleText)),i.style.width=`${W}px`,i.style.height=`${W}px`,i.style.backgroundColor=this.debug?"rgba(255,255,255,0.5)":"transparent",i.style.position="absolute",i.style.zIndex=j.toString(),i.style.borderStyle="none",navigator.userAgent.toLowerCase().includes("chrome")?i.setAttribute("aria-live","off"):i.setAttribute("aria-live","polite"),navigator.userAgent.match(/rv:.*Gecko\//)?i.setAttribute("aria-relevant","additions"):i.setAttribute("aria-relevant","text"),i.addEventListener("click",this._onClick.bind(this)),i.addEventListener("focus",this._onFocus.bind(this)),i.addEventListener("focusout",this._onFocusOut.bind(this))),i.style.pointerEvents=e.accessiblePointerEvents,i.type=e.accessibleType,e.accessibleTitle&&e.accessibleTitle!==null?i.title=e.accessibleTitle:(!e.accessibleHint||e.accessibleHint===null)&&(i.title=`container ${e.tabIndex}`),e.accessibleHint&&e.accessibleHint!==null&&i.setAttribute("aria-label",e.accessibleHint),e.interactive?i.tabIndex=e.tabIndex:i.tabIndex=0,this.debug&&this._updateDebugHTML(i),e._accessibleActive=true,e._accessibleDiv=i,i.container=e,this._children.push(e),this._div.appendChild(e._accessibleDiv);}_dispatchEvent(e,t){const{container:i}=e.target,n=this._renderer.events.rootBoundary,s=Object.assign(new w(n),{target:i});n.rootTarget=this._renderer.lastObjectRendered,t.forEach(o=>n.dispatchEvent(s,o));}_onClick(e){this._dispatchEvent(e,["click","pointertap","tap"]);}_onFocus(e){e.target.getAttribute("aria-live")||e.target.setAttribute("aria-live","assertive"),this._dispatchEvent(e,["mouseover"]);}_onFocusOut(e){e.target.getAttribute("aria-live")||e.target.setAttribute("aria-live","polite"),this._dispatchEvent(e,["mouseout"]);}_onKeyDown(e){e.keyCode!==re||!this._activateOnTab||this._activate();}_onMouseMove(e){e.movementX===0&&e.movementY===0||this._deactivate();}destroy(){this._deactivate(),this._destroyTouchHook(),this._canvasObserver?.destroy(),this._canvasObserver=null,this._div=null,this._pools=null,this._children=null,this._renderer=null,this._hookDiv=null,globalThis.removeEventListener("keydown",this._boundOnKeyDown),this._boundOnKeyDown=null,globalThis.document.removeEventListener("mousemove",this._boundOnMouseMove,true),this._boundOnMouseMove=null;}setAccessibilityEnabled(e){e?this._activate():this._deactivate();}_getPool(e){return this._pools[e]||(this._pools[e]=[]),this._pools[e]}};L.extension={type:[B$1.WebGLSystem,B$1.WebGPUSystem],name:"accessibility"};L.defaultOptions={enabledByDefault:false,debug:false,activateOnTab:true,deactivateOnMouseMove:true};let ue=L;const pe={accessible:false,accessibleTitle:null,accessibleHint:null,tabIndex:0,accessibleType:"button",accessibleText:null,accessiblePointerEvents:"auto",accessibleChildren:true,_accessibleActive:false,_accessibleDiv:null,_renderId:-1};class Q{constructor(e){this._attachedDomElements=[],this._renderer=e,this._renderer.runners.postrender.add(this),this._renderer.runners.init.add(this),this._domElement=document.createElement("div"),this._domElement.style.position="absolute",this._domElement.style.top="0",this._domElement.style.left="0",this._domElement.style.pointerEvents="none",this._domElement.style.zIndex="1000";}init(){this._canvasObserver=new q({domElement:this._domElement,renderer:this._renderer});}addRenderable(e,t){this._attachedDomElements.includes(e)||this._attachedDomElements.push(e);}updateRenderable(e){}validateRenderable(e){return true}postrender(){const e=this._attachedDomElements;if(e.length===0){this._domElement.remove();return}this._canvasObserver.ensureAttached();for(let t=0;ti.priority-n.priority);}dispatchEvent(e,t){e.propagationStopped=false,e.propagationImmediatelyStopped=false,this.propagate(e,t),this.dispatch.emit(t||e.type,e);}mapEvent(e){if(!this.rootTarget)return;const t=this.mappingTable[e.type];if(t)for(let i=0,n=t.length;i=0;n--)if(e.currentTarget=i[n],this.notifyTarget(e,t),e.propagationStopped||e.propagationImmediatelyStopped)return}}all(e,t,i=this._allInteractiveElements){if(i.length===0)return;e.eventPhase=e.BUBBLING_PHASE;const n=Array.isArray(t)?t:[t];for(let s=i.length-1;s>=0;s--)n.forEach(o=>{e.currentTarget=i[s],this.notifyTarget(e,o);});}propagationPath(e){const t=[e];for(let i=0;i=0;_--){const c=h[_],p=this.hitTestMoveRecursive(c,this._isInteractive(t)?t:c.eventMode,i,n,s,o||s(e,i));if(p){if(p.length>0&&!p[p.length-1].parent)continue;const D=e.isInteractive();(p.length>0||D)&&(D&&this._allInteractiveElements.push(e),p.push(e)),this._hitElements.length===0&&(this._hitElements=p),r=true;}}}const l=this._isInteractive(t),d=e.isInteractive();return d&&d&&this._allInteractiveElements.push(e),o||this._hitElements.length>0?null:r?this._hitElements:l&&!s(e,i)&&n(e,i)?d?[e]:[]:null}hitTestRecursive(e,t,i,n,s){if(this._interactivePrune(e)||s(e,i))return null;if((e.eventMode==="dynamic"||t==="dynamic")&&(f.pauseUpdate=false),e.interactiveChildren&&e.children){const l=e.children,d=i;for(let h=l.length-1;h>=0;h--){const _=l[h],c=this.hitTestRecursive(_,this._isInteractive(t)?t:_.eventMode,d,n,s);if(c){if(c.length>0&&!c[c.length-1].parent)continue;const p=e.isInteractive();return (c.length>0||p)&&c.push(e),c}}}const o=this._isInteractive(t),r=e.isInteractive();return o&&n(e,i)?r?[e]:[]:null}_isInteractive(e){return e==="static"||e==="dynamic"}_interactivePrune(e){return !e||!e.visible||!e.renderable||!e.measurable||e.eventMode==="none"||e.eventMode==="passive"&&!e.interactiveChildren}hitPruneFn(e,t){if(e.hitArea&&(e.worldTransform.applyInverse(t,T),!e.hitArea.contains(T.x,T.y)))return true;if(e.effects&&e.effects.length)for(let i=0;i0&&s!==t.target){const l=e.type==="mousemove"?"mouseout":"pointerout",d=this.createPointerEvent(e,l,s);if(this.dispatchEvent(d,"pointerout"),i&&this.dispatchEvent(d,"mouseout"),!t.composedPath().includes(s)){const h=this.createPointerEvent(e,"pointerleave",s);for(h.eventPhase=h.AT_TARGET;h.target&&!t.composedPath().includes(h.target);)h.currentTarget=h.target,this.notifyTarget(h),i&&this.notifyTarget(h,"mouseleave"),h.target=h.target.parent;this.freeEvent(h);}this.freeEvent(d);}if(s!==t.target){const l=e.type==="mousemove"?"mouseover":"pointerover",d=this.clonePointerEvent(t,l);this.dispatchEvent(d,"pointerover"),i&&this.dispatchEvent(d,"mouseover");let h=s?.parent;for(;h&&h!==this.rootTarget.parent&&h!==t.target;)h=h.parent;if(!h||h===this.rootTarget.parent){const c=this.clonePointerEvent(t,"pointerenter");for(c.eventPhase=c.AT_TARGET;c.target&&c.target!==s&&c.target!==this.rootTarget.parent;)c.currentTarget=c.target,this.notifyTarget(c),i&&this.notifyTarget(c,"mouseenter"),c.target=c.target.parent;this.freeEvent(c);}this.freeEvent(d);}const o=[],r=this.enableGlobalMoveEvents??true;this.moveOnAll?o.push("pointermove"):this.dispatchEvent(t,"pointermove"),r&&o.push("globalpointermove"),t.pointerType==="touch"&&(this.moveOnAll?o.splice(1,0,"touchmove"):this.dispatchEvent(t,"touchmove"),r&&o.push("globaltouchmove")),i&&(this.moveOnAll?o.splice(1,0,"mousemove"):this.dispatchEvent(t,"mousemove"),r&&o.push("globalmousemove"),this.cursor=t.target?.cursor),o.length>0&&this.all(t,o),this._allInteractiveElements.length=0,this._hitElements.length=0,n.overTargets=t.composedPath(),this.freeEvent(t);}mapPointerOver(e){if(!(e instanceof u)){J("EventBoundary cannot map a non-pointer event as a pointer event");return}const t=this.trackingData(e.pointerId),i=this.createPointerEvent(e),n=i.pointerType==="mouse"||i.pointerType==="pen";this.dispatchEvent(i,"pointerover"),n&&this.dispatchEvent(i,"mouseover"),i.pointerType==="mouse"&&(this.cursor=i.target?.cursor);const s=this.clonePointerEvent(i,"pointerenter");for(s.eventPhase=s.AT_TARGET;s.target&&s.target!==this.rootTarget.parent;)s.currentTarget=s.target,this.notifyTarget(s),n&&this.notifyTarget(s,"mouseenter"),s.target=s.target.parent;t.overTargets=i.composedPath(),this.freeEvent(i),this.freeEvent(s);}mapPointerOut(e){if(!(e instanceof u)){J("EventBoundary cannot map a non-pointer event as a pointer event");return}const t=this.trackingData(e.pointerId);if(t.overTargets){const i=e.pointerType==="mouse"||e.pointerType==="pen",n=this.findMountedTarget(t.overTargets),s=this.createPointerEvent(e,"pointerout",n);this.dispatchEvent(s),i&&this.dispatchEvent(s,"mouseout");const o=this.createPointerEvent(e,"pointerleave",n);for(o.eventPhase=o.AT_TARGET;o.target&&o.target!==this.rootTarget.parent;)o.currentTarget=o.target,this.notifyTarget(o),i&&this.notifyTarget(o,"mouseleave"),o.target=o.target.parent;t.overTargets=null,this.freeEvent(s),this.freeEvent(o);}this.cursor=null;}mapPointerUp(e){if(!(e instanceof u)){J("EventBoundary cannot map a non-pointer event as a pointer event");return}const t=performance.now(),i=this.createPointerEvent(e);if(this.dispatchEvent(i,"pointerup"),i.pointerType==="touch")this.dispatchEvent(i,"touchend");else if(i.pointerType==="mouse"||i.pointerType==="pen"){const r=i.button===2;this.dispatchEvent(i,r?"rightup":"mouseup");}const n=this.trackingData(e.pointerId),s=this.findMountedTarget(n.pressTargetsByButton[e.button]);let o=s;if(s&&!i.composedPath().includes(s)){let r=s;for(;r&&!i.composedPath().includes(r);){if(i.currentTarget=r,this.notifyTarget(i,"pointerupoutside"),i.pointerType==="touch")this.notifyTarget(i,"touchendoutside");else if(i.pointerType==="mouse"||i.pointerType==="pen"){const l=i.button===2;this.notifyTarget(i,l?"rightupoutside":"mouseupoutside");}r=r.parent;}delete n.pressTargetsByButton[e.button],o=r;}if(o){const r=this.clonePointerEvent(i,"click");r.target=o,r.path=null,n.clicksByButton[e.button]||(n.clicksByButton[e.button]={clickCount:0,target:r.target,timeStamp:t});const l=n.clicksByButton[e.button];if(l.target===r.target&&t-l.timeStamp<200?++l.clickCount:l.clickCount=1,l.target=r.target,l.timeStamp=t,r.detail=l.clickCount,r.pointerType==="mouse"){const d=r.button===2;this.dispatchEvent(r,d?"rightclick":"click");}else r.pointerType==="touch"&&this.dispatchEvent(r,"tap");this.dispatchEvent(r,"pointertap"),this.freeEvent(r);}this.freeEvent(i);}mapPointerUpOutside(e){if(!(e instanceof u)){J("EventBoundary cannot map a non-pointer event as a pointer event");return}const t=this.trackingData(e.pointerId),i=this.findMountedTarget(t.pressTargetsByButton[e.button]),n=this.createPointerEvent(e);if(i){let s=i;for(;s;)n.currentTarget=s,this.notifyTarget(n,"pointerupoutside"),n.pointerType==="touch"?this.notifyTarget(n,"touchendoutside"):(n.pointerType==="mouse"||n.pointerType==="pen")&&this.notifyTarget(n,n.button===2?"rightupoutside":"mouseupoutside"),s=s.parent;delete t.pressTargetsByButton[e.button];}this.freeEvent(n);}mapWheel(e){if(!(e instanceof E)){J("EventBoundary cannot map a non-wheel event as a wheel event");return}const t=this.createWheelEvent(e);this.dispatchEvent(t),this.freeEvent(t);}findMountedTarget(e){if(!e)return null;let t=e[0];for(let i=1;i(i==="globalMove"&&(this.rootBoundary.enableGlobalMoveEvents=n),t[i]=n,true)}),this._onPointerDown=this._onPointerDown.bind(this),this._onPointerMove=this._onPointerMove.bind(this),this._onPointerUp=this._onPointerUp.bind(this),this._onPointerOverOut=this._onPointerOverOut.bind(this),this.onWheel=this.onWheel.bind(this);}static get defaultEventMode(){return this._defaultEventMode}init(e){const{canvas:t,resolution:i}=this.renderer;this.setTargetElement(t),this.resolution=i,x._defaultEventMode=e.eventMode??"passive",Object.assign(this.features,e.eventFeatures??{}),this.rootBoundary.enableGlobalMoveEvents=this.features.globalMove;}resolutionChange(e){this.resolution=e;}destroy(){f.destroy(),this.setTargetElement(null),this.renderer=null,this._currentCursor=null;}setCursor(e){e||(e="default");let t=true;if(globalThis.OffscreenCanvas&&this.domElement instanceof OffscreenCanvas&&(t=false),this._currentCursor===e)return;this._currentCursor=e;const i=this.cursorStyles[e];if(i)switch(typeof i){case "string":t&&(this.domElement.style.cursor=i);break;case "function":i(e);break;case "object":t&&Object.assign(this.domElement.style,i);break}else t&&typeof e=="string"&&!Object.prototype.hasOwnProperty.call(this.cursorStyles,e)&&(this.domElement.style.cursor=e);}get pointer(){return this._rootPointerEvent}_onPointerDown(e){if(!this.features.click)return;this.rootBoundary.rootTarget=this.renderer.lastObjectRendered;const t=this._normalizeToPointerData(e);this.autoPreventDefault&&t[0].isNormalized&&(e.cancelable||!("cancelable"in e))&&e.preventDefault();for(let i=0,n=t.length;i0&&(t=e.composedPath()[0]);const i=t!==this.domElement?"outside":"",n=this._normalizeToPointerData(e);for(let s=0,o=n.length;s"u"&&(s.button=0),typeof s.buttons>"u"&&(s.buttons=1),typeof s.isPrimary>"u"&&(s.isPrimary=e.touches.length===1&&e.type==="touchstart"),typeof s.width>"u"&&(s.width=s.radiusX||1),typeof s.height>"u"&&(s.height=s.radiusY||1),typeof s.tiltX>"u"&&(s.tiltX=0),typeof s.tiltY>"u"&&(s.tiltY=0),typeof s.pointerType>"u"&&(s.pointerType="touch"),typeof s.pointerId>"u"&&(s.pointerId=s.identifier||0),typeof s.pressure>"u"&&(s.pressure=s.force||.5),typeof s.twist>"u"&&(s.twist=0),typeof s.tangentialPressure>"u"&&(s.tangentialPressure=0),typeof s.layerX>"u"&&(s.layerX=s.offsetX=s.clientX),typeof s.layerY>"u"&&(s.layerY=s.offsetY=s.clientY),s.isNormalized=true,s.type=e.type,t.push(s);}else if(!globalThis.MouseEvent||e instanceof MouseEvent&&(!this.supportsPointerEvents||!(e instanceof globalThis.PointerEvent))){const i=e;typeof i.isPrimary>"u"&&(i.isPrimary=true),typeof i.width>"u"&&(i.width=1),typeof i.height>"u"&&(i.height=1),typeof i.tiltX>"u"&&(i.tiltX=0),typeof i.tiltY>"u"&&(i.tiltY=0),typeof i.pointerType>"u"&&(i.pointerType="mouse"),typeof i.pointerId>"u"&&(i.pointerId=ge),typeof i.pressure>"u"&&(i.pressure=.5),typeof i.twist>"u"&&(i.twist=0),typeof i.tangentialPressure>"u"&&(i.tangentialPressure=0),i.isNormalized=true,t.push(i);}else t.push(e);return t}normalizeWheelEvent(e){const t=this._rootWheelEvent;return this._transferMouseData(t,e),t.deltaX=e.deltaX,t.deltaY=e.deltaY,t.deltaZ=e.deltaZ,t.deltaMode=e.deltaMode,this.mapPositionToPoint(t.screen,e.clientX,e.clientY),t.global.copyFrom(t.screen),t.offset.copyFrom(t.screen),t.nativeEvent=e,t.type=e.type,t}_bootstrapEvent(e,t){return e.originalEvent=null,e.nativeEvent=t,e.pointerId=t.pointerId,e.width=t.width,e.height=t.height,e.isPrimary=t.isPrimary,e.pointerType=t.pointerType,e.pressure=t.pressure,e.tangentialPressure=t.tangentialPressure,e.tiltX=t.tiltX,e.tiltY=t.tiltY,e.twist=t.twist,this._transferMouseData(e,t),this.mapPositionToPoint(e.screen,t.clientX,t.clientY),e.global.copyFrom(e.screen),e.offset.copyFrom(e.screen),e.isTrusted=t.isTrusted,e.type==="pointerleave"&&(e.type="pointerout"),e.type.startsWith("mouse")&&(e.type=e.type.replace("mouse","pointer")),e.type.startsWith("touch")&&(e.type=ye[e.type]||e.type),e}_transferMouseData(e,t){e.isTrusted=t.isTrusted,e.srcElement=t.srcElement,e.timeStamp=performance.now(),e.type=t.type,e.altKey=t.altKey,e.button=t.button,e.buttons=t.buttons,e.client.x=t.clientX,e.client.y=t.clientY,e.ctrlKey=t.ctrlKey,e.metaKey=t.metaKey,e.movement.x=t.movementX,e.movement.y=t.movementY,e.page.x=t.pageX,e.page.y=t.pageY,e.relatedTarget=null,e.shiftKey=t.shiftKey;}};S.extension={name:"events",type:[B$1.WebGLSystem,B$1.CanvasSystem,B$1.WebGPUSystem],priority:-1};S.defaultEventFeatures={move:true,globalMove:true,click:true,wheel:true};let ee=S;const be={onclick:null,onmousedown:null,onmouseenter:null,onmouseleave:null,onmousemove:null,onglobalmousemove:null,onmouseout:null,onmouseover:null,onmouseup:null,onmouseupoutside:null,onpointercancel:null,onpointerdown:null,onpointerenter:null,onpointerleave:null,onpointermove:null,onglobalpointermove:null,onpointerout:null,onpointerover:null,onpointertap:null,onpointerup:null,onpointerupoutside:null,onrightclick:null,onrightdown:null,onrightup:null,onrightupoutside:null,ontap:null,ontouchcancel:null,ontouchend:null,ontouchendoutside:null,ontouchmove:null,onglobaltouchmove:null,ontouchstart:null,onwheel:null,get interactive(){return this.eventMode==="dynamic"||this.eventMode==="static"},set interactive(a){this.eventMode=a?"static":"passive";},_internalEventMode:void 0,get eventMode(){return this._internalEventMode??ee.defaultEventMode},set eventMode(a){this._internalEventMode=a;},isInteractive(){return this.eventMode==="static"||this.eventMode==="dynamic"},interactiveChildren:true,hitArea:null,addEventListener(a,e,t){const i=typeof t=="boolean"&&t||typeof t=="object"&&t.capture,n=typeof t=="object"?t.signal:void 0,s=typeof t=="object"?t.once===true:false,o=typeof e=="function"?void 0:e;a=i?`${a}capture`:a;const r=typeof e=="function"?e:e.handleEvent,l=this;n&&n.addEventListener("abort",()=>{l.off(a,r,o);}),s?l.once(a,r,o):l.on(a,r,o);},removeEventListener(a,e,t){const i=typeof t=="boolean"&&t||typeof t=="object"&&t.capture,n=typeof e=="function"?void 0:e;a=i?`${a}capture`:a,e=typeof e=="function"?e:e.handleEvent,this.off(a,e,n);},dispatchEvent(a){if(!(a instanceof w))throw new Error("Container cannot propagate events outside of the Federated Events API");return a.defaultPrevented=false,a.path=null,a.target=this,a.manager.dispatchEvent(a),!a.defaultPrevented}};ft.add(ue);ft.mixin(U$1,pe);ft.add(ee);ft.mixin(U$1,be);ft.add(Q); +//# sourceMappingURL=browserAll-D1iqaGoY.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/ca-D4CQWB70.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/ca-D4CQWB70.js new file mode 100644 index 0000000000000000000000000000000000000000..e36287cdcf46281c4238a04ab734b7537783fdea --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/ca-D4CQWB70.js @@ -0,0 +1,4 @@ +const a="Català",e={annotated_image:"Imatge Anotada"},r={allow_recording_access:"Si us plau, permeteu l'accés al micròfon per gravar.",audio:"Àudio",record_from_microphone:"Gravar des del micròfon",stop_recording:"Aturar la gravació",no_device_support:"No s'ha pogut accedir als dispositius multimèdia. Comproveu que esteu executant en un origen segur (https) o localhost (o heu passat un certificat SSL vàlid a ssl_verify), i que heu permès l'accés del navegador al vostre dispositiu.",stop:"Aturar",resume:"Reprendre",record:"Gravar",no_microphone:"No s'ha trobat cap micròfon",pause:"Pausa",play:"Reproduir",waiting:"Esperant",drop_to_upload:"Arrossega un fitxer d'àudio aquí per pujar-lo"},o={connection_can_break:"En dispositius mòbils, la connexió es pot trencar si aquesta pestanya perd el focus o el dispositiu s'adorm, perdent la vostra posició a la cua.",long_requests_queue:"Hi ha una llarga cua de sol·licituds pendents. Dupliqueu aquest Space per saltar-la.",lost_connection:"S'ha perdut la connexió en deixar la pàgina. Tornant a la cua...",waiting_for_inputs:"Esperant la finalització de la pujada dels fitxers, si us plau, torna a provar."},i={checkbox:"Casella de selecció",checkbox_group:"Grup de caselles"},t={code:"Codi"},l={color_picker:"Selector de color"},s={built_with:"construït amb",built_with_gradio:"Construït amb Gradio",clear:"Neteja",download:"Descarregar",edit:"Editar",empty:"Buit",error:"Error",hosted_on:"Allotjat a",loading:"S'està carregant",logo:"logotip",or:"o",remove:"Eliminar",settings:"Configuració",share:"Compartir",submit:"Envia",undo:"Desfer",no_devices:"No s'han trobat dispositius",language:"Idioma",display_theme:"Tema de visualització",pwa:"Aplicació web progressiva"},n={incorrect_format:"Format incorrecte, només s'admeten fitxers CSV i TSV",new_column:"Afegir columna",new_row:"Nova fila",add_row_above:"Afegir fila a dalt",add_row_below:"Afegir fila a baix",add_column_left:"Afegir columna a l'esquerra",add_column_right:"Afegir columna a la dreta",delete_row:"Esborrar fila",delete_column:"Suprimeix la columna",sort_column:"Ordena la columna",sort_ascending:"Ordena ascendent",sort_descending:"Ordena descendent",drop_to_upload:"Arrossega fitxers CSV o TSV aquí per importar dades al dataframe",clear_sort:"Neteja la classificació"},c={dropdown:"Desplegable"},d={build_error:"hi ha un error de compilació",config_error:"hi ha un error de configuració",contact_page_author:"Si us plau, contacteu amb l'autor de la pàgina per informar-lo.",no_app_file:"no hi ha fitxer d'aplicació",runtime_error:"hi ha un error d'execució",space_not_working:`"L'Space no funciona perquè" {0}`,space_paused:"l'space està en pausa",use_via_api:"Utilitzar via API"},u={uploading:"Pujant..."},p={highlighted_text:"Text ressaltat"},_={allow_webcam_access:"Si us plau, permeteu l'accés a la càmera web per gravar.",brush_color:"Color del pinzell",brush_radius:"Radi del pinzell",image:"Imatge",remove_image:"Eliminar imatge",select_brush_color:"Seleccionar color del pinzell",start_drawing:"Començar a dibuixar",use_brush:"Utilitzar pinzell",drop_to_upload:"Arrossega un fitxer d'imatge aquí per pujar-lo"},m={label:"Etiqueta"},g={enable_cookies:"Si esteu visitant un Space de HuggingFace en mode Incògnit, heu d'habilitar les cookies de tercers.",incorrect_credentials:"Credencials incorrectes",username:"nom d'usuari",password:"contrasenya",login:"Iniciar sessió"},f={number:"Número"},h={plot:"Gràfic"},b={radio:"Ràdio"},x={slider:"Control lliscant"},v={click_to_upload:"Feu clic per pujar",drop_audio:"Deixeu anar l'àudio aquí",drop_csv:"Deixeu anar el CSV aquí",drop_file:"Deixeu anar el fitxer aquí",drop_image:"Deixeu anar la imatge aquí",drop_video:"Deixeu anar el vídeo aquí",drop_gallery:"Deixeu anar els mitjans aquí",paste_clipboard:"Enganxar del porta-retalls"},w={drop_to_upload:"Arrossega un fitxer de vídeo aquí per pujar-lo"},q={edit:"Editar",retry:"Tornar a provar",undo:"Desfer",submit:"Enviar",cancel:"Cancel·lar",like:"M'agrada",dislike:"No m'agrada",clear:"Netejar xat"},S={_name:a,"3D_model":{"3d_model":"Model 3D",drop_to_upload:"Arrossega un model 3D (.obj, .glb, .stl, .gltf, .splat o .ply) aquí per pujar-lo."},annotated_image:e,audio:r,blocks:o,checkbox:i,code:t,color_picker:l,common:s,dataframe:n,dropdown:c,errors:d,file:u,highlighted_text:p,image:_,label:m,login:g,number:f,plot:h,radio:b,slider:x,upload_text:v,video:w,chatbot:q}; + +export { a as _name, e as annotated_image, r as audio, o as blocks, q as chatbot, i as checkbox, t as code, l as color_picker, s as common, n as dataframe, S as default, c as dropdown, d as errors, u as file, p as highlighted_text, _ as image, m as label, g as login, f as number, h as plot, b as radio, x as slider, v as upload_text, w as video }; +//# sourceMappingURL=ca-D4CQWB70.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/client-6TQ9sIPg.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/client-6TQ9sIPg.js new file mode 100644 index 0000000000000000000000000000000000000000..a38aa63f7fe917f504855bfcd4aa0ed0845f0bb9 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/client-6TQ9sIPg.js @@ -0,0 +1,12 @@ +import { e, s } from './dev-fallback-Bc5Ork7Y.js'; +import { n as noop } from './async-D55cHugf.js'; +import { w as writable } from './index-Cg-Pg6j3.js'; +import { t, f } from './exports-Caq1H35p.js'; + +function b(e){const r=writable(e);let t=true;function n(){t=true,r.update(o=>o);}function a(o){t=false,r.set(o);}function s(o){let c;return r.subscribe(l=>{(c===void 0||t&&l!==c)&&o(c=l);})}return {notify:n,set:a,subscribe:s}}const y={v:()=>{}};function E(){const{set:e$1,subscribe:r}=writable(false);if(e||!s)return {subscribe:r,check:async()=>false};let t$1;async function n(){clearTimeout(t$1);try{const a=await fetch(`${t}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return !1;const o=(await a.json()).version!==f;return o&&(e$1(!0),y.v(),clearTimeout(t$1)),o}catch{return false}}return {subscribe:r,check:n}}let m,d;const R=noop.toString().includes("$$")||/function \w+\(\) \{\}/.test(noop.toString());R?(m={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},d={current:false}):(m=new class{data={};form=null;error=null;params={};route={id:null};state={};status=-1;url=new URL("https://example.com")},d=new class{current=false},y.v=()=>d.current=true);let $=0;const w=s?window.fetch:(()=>{});if(e&&s){let e=false;(async()=>e=new Error().stack.includes("check_stack_trace"))(),window.fetch=(t,n)=>{const a=t instanceof Request?t.url:t.toString(),s=new Error().stack.split(` +`),o=s.findIndex(h=>h.includes("load@")||h.includes("at load")),c=s.slice(0,o+2).join(` +`),l=e?c.includes("src/runtime/client/client.js"):$,v=n?.__sveltekit_fetch__;return l&&!v&&console.warn(`Loading ${a} using \`window.fetch\`. For best results, use the \`fetch\` that is passed to your \`load\` function: https://svelte.dev/docs/kit/load#making-fetch-requests`),(t instanceof Request?t.method:n?.method||"GET")!=="GET"&&_.delete(k(t)),w(t,n)};}else s&&(window.fetch=(e,r)=>((e instanceof Request?e.method:r?.method||"GET")!=="GET"&&_.delete(k(e)),w(e,r)));const _=new Map;function k(e,r){return `script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`}if(e&&s){let e=false;const r=import.meta.url.split("?")[0],t=()=>{if(e)return;let s=new Error().stack?.split(` +`);s&&(!s[0].includes("https:")&&!s[0].includes("http:")&&(s=s.slice(1)),s=s.slice(2),!s[0]?.includes(r)&&(e=true,console.warn("Avoid using `history.pushState(...)` and `history.replaceState(...)` as these will conflict with SvelteKit's router. Use the `pushState` and `replaceState` imports from `$app/navigation` instead.")));},n=history.pushState;history.pushState=(...s)=>(t(),n.apply(history,s));const a=history.replaceState;history.replaceState=(...s)=>(t(),a.apply(history,s));}const A={page:b({}),navigating:writable(null),updated:E()};if(e){const e=console.warn;console.warn=function(...t){t.length===1&&/<(Layout|Page|Error)(_[\w$]+)?> was created (with unknown|without expected) prop '(data|form)'/.test(t[0])||e(...t);};} + +export { A, m }; +//# sourceMappingURL=client-6TQ9sIPg.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/clone-Yk88IHKV.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/clone-Yk88IHKV.js new file mode 100644 index 0000000000000000000000000000000000000000..e2d9a0d37114539dfa6e11069ff420ce46e0d4a9 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/clone-Yk88IHKV.js @@ -0,0 +1,115 @@ +import { i as is_array, g as get_prototype_of, o as object_prototype } from './async-D55cHugf.js'; + +/** @import { Snapshot } from './types' */ + +/** + * In dev, we keep track of which properties could not be cloned. In prod + * we don't bother, but we keep a dummy array around so that the + * signature stays the same + * @type {string[]} + */ +const empty = []; + +/** + * @template T + * @param {T} value + * @param {boolean} [skip_warning] + * @param {boolean} [no_tojson] + * @returns {Snapshot} + */ +function snapshot(value, skip_warning = false, no_tojson = false) { + + return clone(value, new Map(), '', empty, null, no_tojson); +} + +/** + * @template T + * @param {T} value + * @param {Map>} cloned + * @param {string} path + * @param {string[]} paths + * @param {null | T} [original] The original value, if `value` was produced from a `toJSON` call + * @param {boolean} [no_tojson] + * @returns {Snapshot} + */ +function clone(value, cloned, path, paths, original = null, no_tojson = false) { + if (typeof value === 'object' && value !== null) { + var unwrapped = cloned.get(value); + if (unwrapped !== undefined) return unwrapped; + + if (value instanceof Map) return /** @type {Snapshot} */ (new Map(value)); + if (value instanceof Set) return /** @type {Snapshot} */ (new Set(value)); + + if (is_array(value)) { + var copy = /** @type {Snapshot} */ (Array(value.length)); + cloned.set(value, copy); + + if (original !== null) { + cloned.set(original, copy); + } + + for (var i = 0; i < value.length; i += 1) { + var element = value[i]; + if (i in value) { + copy[i] = clone(element, cloned, path, paths, null, no_tojson); + } + } + + return copy; + } + + if (get_prototype_of(value) === object_prototype) { + /** @type {Snapshot} */ + copy = {}; + cloned.set(value, copy); + + if (original !== null) { + cloned.set(original, copy); + } + + for (var key in value) { + copy[key] = clone( + // @ts-expect-error + value[key], + cloned, + path, + paths, + null, + no_tojson + ); + } + + return copy; + } + + if (value instanceof Date) { + return /** @type {Snapshot} */ (structuredClone(value)); + } + + if (typeof (/** @type {T & { toJSON?: any } } */ (value).toJSON) === 'function' && !no_tojson) { + return clone( + /** @type {T & { toJSON(): any } } */ (value).toJSON(), + cloned, + path, + paths, + // Associate the instance with the toJSON clone + value + ); + } + } + + if (value instanceof EventTarget) { + // can't be cloned + return /** @type {Snapshot} */ (value); + } + + try { + return /** @type {Snapshot} */ (structuredClone(value)); + } catch (e) { + + return /** @type {Snapshot} */ (value); + } +} + +export { snapshot as s }; +//# sourceMappingURL=clone-Yk88IHKV.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/colorToUniform-CrQRsPlb.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/colorToUniform-CrQRsPlb.js new file mode 100644 index 0000000000000000000000000000000000000000..3c215e7864a54ee6973bf7ca87c6a3c5246fafcb --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/colorToUniform-CrQRsPlb.js @@ -0,0 +1,34 @@ +const l={name:"local-uniform-bit",vertex:{header:` + + struct LocalUniforms { + uTransformMatrix:mat3x3, + uColor:vec4, + uRound:f32, + } + + @group(1) @binding(0) var localUniforms : LocalUniforms; + `,main:` + vColor *= localUniforms.uColor; + modelMatrix *= localUniforms.uTransformMatrix; + `,end:` + if(localUniforms.uRound == 1) + { + vPosition = vec4(roundPixels(vPosition.xy, globalUniforms.uResolution), vPosition.zw); + } + `}},e={...l,vertex:{...l.vertex,header:l.vertex.header.replace("group(1)","group(2)")}},n={name:"local-uniform-bit",vertex:{header:` + + uniform mat3 uTransformMatrix; + uniform vec4 uColor; + uniform float uRound; + `,main:` + vColor *= uColor; + modelMatrix = uTransformMatrix; + `,end:` + if(uRound == 1.) + { + gl_Position.xy = roundPixels(gl_Position.xy, uResolution); + } + `}};class a{constructor(){this.batcherName="default",this.topology="triangle-list",this.attributeSize=4,this.indexSize=6,this.packAsQuad=true,this.roundPixels=0,this._attributeStart=0,this._batcher=null,this._batch=null;}get blendMode(){return this.renderable.groupBlendMode}get color(){return this.renderable.groupColorAlpha}reset(){this.renderable=null,this.texture=null,this._batcher=null,this._batch=null,this.bounds=null;}destroy(){this.reset();}}function s(o,r,t){const i=(o>>24&255)/255;r[t++]=(o&255)/255*i,r[t++]=(o>>8&255)/255*i,r[t++]=(o>>16&255)/255*i,r[t++]=i;} + +export { a, e, l, n, s }; +//# sourceMappingURL=colorToUniform-CrQRsPlb.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/context-CBkBucIx.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/context-CBkBucIx.js new file mode 100644 index 0000000000000000000000000000000000000000..2341106beaec9f0cb1d26816d3686d1b5590e397 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/context-CBkBucIx.js @@ -0,0 +1,90 @@ +/* This file is generated by scripts/process-messages/index.js. Do not edit! */ + + +/** + * `%name%(...)` can only be used during component initialisation + * @param {string} name + * @returns {never} + */ +function lifecycle_outside_component(name) { + { + throw new Error(`https://svelte.dev/e/lifecycle_outside_component`); + } +} + +/** @import { SSRContext } from '#server' */ + +/** @type {SSRContext | null} */ +var ssr_context = null; + +/** @param {SSRContext | null} v */ +function set_ssr_context(v) { + ssr_context = v; +} + +/** + * @template T + * @param {any} key + * @returns {T} + */ +function getContext(key) { + const context_map = get_or_init_context_map(); + const result = /** @type {T} */ (context_map.get(key)); + + return result; +} + +/** + * @template T + * @param {any} key + * @param {T} context + * @returns {T} + */ +function setContext(key, context) { + get_or_init_context_map().set(key, context); + return context; +} + +/** + * @param {string} name + * @returns {Map} + */ +function get_or_init_context_map(name) { + if (ssr_context === null) { + lifecycle_outside_component(); + } + + return (ssr_context.c ??= new Map(get_parent_context(ssr_context) || undefined)); +} + +/** + * @param {Function} [fn] + */ +function push(fn) { + ssr_context = { p: ssr_context, c: null, r: null }; +} + +function pop() { + ssr_context = /** @type {SSRContext} */ (ssr_context).p; +} + +/** + * @param {SSRContext} ssr_context + * @returns {Map | null} + */ +function get_parent_context(ssr_context) { + let parent = ssr_context.p; + + while (parent !== null) { + const context_map = parent.c; + if (context_map !== null) { + return context_map; + } + parent = parent.p; + } + + return null; +} + +export { setContext as a, set_ssr_context as b, pop as c, getContext as g, push as p, ssr_context as s }; +//# sourceMappingURL=context-CBkBucIx.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/de-CHgt1urw.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/de-CHgt1urw.js new file mode 100644 index 0000000000000000000000000000000000000000..b58f142816c93d085d1a9655ec43e8dc6aefd5d5 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/de-CHgt1urw.js @@ -0,0 +1,4 @@ +const e="Deutsch",n={annotated_image:"Annotiertes Bild"},i={allow_recording_access:"Bitte erlauben Sie den Zugriff auf das Mikrofon für die Aufnahme.",audio:"Audio",record_from_microphone:"Vom Mikrofon aufnehmen",stop_recording:"Aufnahme stoppen",no_device_support:"Auf Mediengeräte konnte nicht zugegriffen werden. Stellen Sie sicher, dass Sie sich auf einer sicheren Quelle (https) oder localhost befinden (oder ein gültiges SSL-Zertifikat an ssl_verify übergeben haben) und Sie dem Browser den Zugriff auf Ihr Gerät erlaubt haben.",stop:"Stopp",resume:"Fortsetzen",record:"Aufnehmen",no_microphone:"Kein Mikrofon gefunden",pause:"Pause",play:"Abspielen",waiting:"Warten",drop_to_upload:"Laden Sie eine Audiodatei hier ab, um sie hochzuladen."},r={connection_can_break:"Auf Mobilgeräten kann die Verbindung unterbrochen werden, wenn dieser Tab den Fokus verliert oder das Gerät in den Ruhezustand geht, wodurch Ihre Position in der Warteschlange verloren geht.",long_requests_queue:"Es gibt eine lange Warteschlange ausstehender Anfragen. Duplizieren Sie diesen Space zum Überspringen.",lost_connection:"Verbindung durch Verlassen der Seite verloren. Kehre zur Warteschlange zurück...",waiting_for_inputs:"Warten auf das Hochladen der Datei(en), bitte versuchen Sie es erneut."},o={checkbox:"Kontrollkästchen",checkbox_group:"Kontrollkästchengruppe"},t={code:"Code"},a={color_picker:"Farbwähler"},d={built_with:"erstellt mit",built_with_gradio:"Mit Gradio erstellt",clear:"Löschen",download:"Herunterladen",edit:"Bearbeiten",empty:"Leer",error:"Fehler",hosted_on:"Gehostet auf",loading:"Laden",logo:"Logo",or:"oder",remove:"Entfernen",settings:"Einstellungen",share:"Teilen",submit:"Absenden",undo:"Rückgängig",no_devices:"Keine Geräte gefunden",language:"Sprache",display_theme:"Anzeigedesign",pwa:"Progressive Web App"},l={incorrect_format:"Falsches Format, nur CSV- und TSV-Dateien werden unterstützt",new_column:"Spalte hinzufügen",new_row:"Neue Zeile",add_row_above:"Zeile oben hinzufügen",add_row_below:"Zeile unten hinzufügen",add_column_left:"Spalte links hinzufügen",add_column_right:"Spalte rechts hinzufügen",delete_row:"Zeile löschen",delete_column:"Spalte löschen",sort_column:"Spalte sortieren",sort_ascending:"Aufsteigend sortieren",sort_descending:"Absteigend sortieren",drop_to_upload:"CSV- oder TSV-Dateien hier ablegen, um Daten in den DataFrame zu importieren.",clear_sort:"Sortierung aufheben"},s={dropdown:"Dropdown-Menü"},c={build_error:"Es gibt einen Build-Fehler",config_error:"Es gibt einen Konfigurationsfehler",contact_page_author:"Bitte kontaktieren Sie den Autor der Seite.",no_app_file:"Es gibt keine App-Datei",runtime_error:"Es gibt einen Laufzeitfehler",space_not_working:'"Space funktioniert nicht, weil" {0}',space_paused:"Der Space ist pausiert",use_via_api:"Über API verwenden"},u={uploading:"Hochladen..."},h={highlighted_text:"Hervorgehobener Text"},g={allow_webcam_access:"Bitte erlauben Sie den Zugriff auf die Webcam für die Aufnahme.",brush_color:"Pinselfarbe",brush_radius:"Pinselgröße",image:"Bild",remove_image:"Bild entfernen",select_brush_color:"Pinselfarbe auswählen",start_drawing:"Zeichnen beginnen",use_brush:"Pinsel verwenden",drop_to_upload:"Laden Sie ein Bild hier ab, um es hochzuladen."},_={label:"Beschriftung"},p={enable_cookies:"Wenn Sie einen HuggingFace Space im Inkognito-Modus besuchen, müssen Sie Cookies von Drittanbietern aktivieren.",incorrect_credentials:"Falsche Anmeldedaten",username:"Benutzername",password:"Passwort",login:"Anmelden"},b={number:"Zahl"},f={plot:"Diagramm"},m={radio:"Optionsfeld"},S={slider:"Schieberegler"},w={click_to_upload:"Hochladen",drop_audio:"Audio hier ablegen",drop_csv:"CSV Datei hier ablegen",drop_file:"Datei hier ablegen",drop_image:"Bild hier ablegen",drop_video:"Video hier ablegen",drop_gallery:"Medien hier ablegen",paste_clipboard:"Aus Zwischenablage einfügen"},k={drop_to_upload:"Laden Sie eine Video-Datei hier ab, um sie hochzuladen."},A={edit:"Bearbeiten",retry:"Wiederholen",undo:"Rückgängig",submit:"Senden",cancel:"Abbrechen",like:"Gefällt mir",dislike:"Gefällt mir nicht",clear:"Chat leeren"},z={_name:e,"3D_model":{"3d_model":"3D-Modell",drop_to_upload:"Laden Sie eine 3D-Modell-Datei (.obj, .glb, .stl, .gltf, .splat oder .ply) hier ab, um sie hochzuladen."},annotated_image:n,audio:i,blocks:r,checkbox:o,code:t,color_picker:a,common:d,dataframe:l,dropdown:s,errors:c,file:u,highlighted_text:h,image:g,label:_,login:p,number:b,plot:f,radio:m,slider:S,upload_text:w,video:k,chatbot:A}; + +export { e as _name, n as annotated_image, i as audio, r as blocks, A as chatbot, o as checkbox, t as code, a as color_picker, d as common, l as dataframe, z as default, s as dropdown, c as errors, u as file, h as highlighted_text, g as image, _ as label, p as login, b as number, f as plot, m as radio, S as slider, w as upload_text, k as video }; +//# sourceMappingURL=de-CHgt1urw.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/dev-fallback-Bc5Ork7Y.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/dev-fallback-Bc5Ork7Y.js new file mode 100644 index 0000000000000000000000000000000000000000..cd81fa50475e8ff2a13419028422f1194015f128 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/dev-fallback-Bc5Ork7Y.js @@ -0,0 +1,4 @@ +const s=typeof window<"u",o=globalThis.process?.env?.NODE_ENV,e=o&&!o.toLowerCase().startsWith("prod"); + +export { e, s }; +//# sourceMappingURL=dev-fallback-Bc5Ork7Y.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/error.svelte-Ce7oGBBD.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/error.svelte-Ce7oGBBD.js new file mode 100644 index 0000000000000000000000000000000000000000..98670e7974c684747e9b4e5ed4fda532b2b596e7 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/error.svelte-Ce7oGBBD.js @@ -0,0 +1,12 @@ +import './async-D55cHugf.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; +import { g as getContext } from './context-CBkBucIx.js'; +import { m as m$1, A } from './client-6TQ9sIPg.js'; +import { s, e } from './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; +import './exports-Caq1H35p.js'; + +const g={get error(){return m$1.error},get status(){return m$1.status}};A.updated.check;function t(){return getContext("__request__")}function n(e){try{return t()}catch{throw new Error(`Can only read '${e}' on the server during rendering (not in e.g. \`load\` functions), as it is bound to the current request via component context. This prevents state from leaking between users.For more information, see https://svelte.dev/docs/kit/state-management#avoid-shared-state-on-the-server`)}}const m={get error(){return (e?n("page.error"):t()).page.error},get status(){return (e?n("page.status"):t()).page.status}},a=s?g:m;function l(e,d){e.component(p=>{p.push(`

    ${escape_html(a.status)}

    ${escape_html(a.error?.message)}

    `);});} + +export { l as default }; +//# sourceMappingURL=error.svelte-Ce7oGBBD.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/es-CHrrrvnD.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/es-CHrrrvnD.js new file mode 100644 index 0000000000000000000000000000000000000000..28168e6547b7ae12f9f9b18d87a31830d8fd5bcf --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/es-CHrrrvnD.js @@ -0,0 +1,4 @@ +const a="Español",o={annotated_image:"Imagen Anotada"},e={allow_recording_access:"Por favor, permita el acceso al micrófono para grabar.",audio:"Audio",record_from_microphone:"Grabar desde el micrófono",stop_recording:"Detener grabación",no_device_support:"No se pudo acceder a los dispositivos multimedia. Compruebe que está ejecutando en un origen seguro (https) o localhost (o que ha pasado un certificado SSL válido a ssl_verify), y que ha permitido el acceso del navegador a su dispositivo.",stop:"Detener",resume:"Reanudar",record:"Grabar",no_microphone:"No se encontró micrófono",pause:"Pausar",play:"Reproducir",waiting:"Esperando",drop_to_upload:"Arrastra un archivo de audio aquí para subirlo"},r={connection_can_break:"En dispositivos móviles, la conexión puede interrumpirse si esta pestaña pierde el foco o el dispositivo entra en reposo, perdiendo su posición en la cola.",long_requests_queue:"Hay una larga cola de solicitudes pendientes. Duplique este Space para saltarse la cola.",lost_connection:"Se perdió la conexión al abandonar la página. Volviendo a la cola...",waiting_for_inputs:"Esperando a que se complete(n) la(s) carga(s) de archivo(s), por favor inténtelo de nuevo."},i={checkbox:"Casilla de verificación",checkbox_group:"Grupo de casillas"},n={code:"Código"},c={color_picker:"Selector de color"},l={built_with:"construido con",built_with_gradio:"Construido con Gradio",clear:"Limpiar",download:"Descargar",edit:"Editar",empty:"Vacío",error:"Error",flag:"Marcar",hosted_on:"Alojado en",loading:"Cargando",logo:"logo",or:"o",remove:"Eliminar",settings:"Configuración",share:"Compartir",submit:"Enviar",undo:"Deshacer",no_devices:"No se encontraron dispositivos",language:"Idioma",display_theme:"Tema de visualización",pwa:"Aplicación web progresiva"},s={incorrect_format:"Formato incorrecto, solo se admiten archivos CSV y TSV",new_column:"Agregar columna",new_row:"Nueva fila",add_row_above:"Agregar fila arriba",add_row_below:"Agregar fila abajo",add_column_left:"Agregar columna a la izquierda",add_column_right:"Agregar columna a la derecha",delete_row:"Eliminar fila",delete_column:"Eliminar columna",sort_column:"Ordenar columna",sort_ascending:"Ordenar ascendente",sort_descending:"Ordenar descendente",drop_to_upload:"Arrastra y suelta los archivos CSV o TSV aquí para importar datos al dataframe",clear_sort:"Limpiar ordenamiento"},d={dropdown:"Menú desplegable"},t={build_error:"hay un error de compilación",config_error:"hay un error de configuración",contact_page_author:"Por favor, contacte al autor de la página para informarle.",no_app_file:"no hay archivo de aplicación",runtime_error:"hay un error de ejecución",space_not_working:'"El Space no funciona porque" {0}',space_paused:"el space está pausado",use_via_api:"Usar vía API",use_via_api_or_mcp:"Usar vía API o MCP"},u={uploading:"Subiendo..."},p={highlighted_text:"Texto resaltado"},_={allow_webcam_access:"Por favor, permita el acceso a la cámara web para grabar.",brush_color:"Color del pincel",brush_radius:"Radio del pincel",image:"Imagen",remove_image:"Eliminar imagen",select_brush_color:"Seleccionar color del pincel",start_drawing:"Empezar a dibujar",use_brush:"Usar pincel",drop_to_upload:"Arrastra un archivo de imagen aquí para subirlo"},g={label:"Etiqueta"},m={enable_cookies:"Si está visitando un Space de HuggingFace en modo Incógnito, debe habilitar las cookies de terceros.",incorrect_credentials:"Credenciales incorrectas",username:"usuario",password:"contraseña",login:"Iniciar sesión"},b={number:"Número"},h={plot:"Gráfico"},v={radio:"Radio"},f={slider:"Deslizador"},q={click_to_upload:"Haga clic para cargar",drop_audio:"Coloque el audio aquí",drop_csv:"Coloque el CSV aquí",drop_file:"Coloque el archivo aquí",drop_image:"Coloque la imagen aquí",drop_video:"Coloque el video aquí",drop_gallery:"Coloque las imágenes aquí",paste_clipboard:"Pegar desde el portapapeles"},w={drop_to_upload:"Arrastra un archivo de video aquí para subirlo"},C={edit:"Editar",retry:"Reintentar",undo:"Deshacer",submit:"Enviar",cancel:"Cancelar",like:"Me gusta",dislike:"No me gusta",clear:"Limpiar chat"},y={_name:a,"3D_model":{"3d_model":"Modelo 3D",drop_to_upload:"Arrastra y suelta un archivo de modelo 3D (.obj, .glb, .stl, .gltf, .splat o .ply) aquí para cargarlo."},annotated_image:o,audio:e,blocks:r,checkbox:i,code:n,color_picker:c,common:l,dataframe:s,dropdown:d,errors:t,file:u,highlighted_text:p,image:_,label:g,login:m,number:b,plot:h,radio:v,slider:f,upload_text:q,video:w,chatbot:C}; + +export { a as _name, o as annotated_image, e as audio, r as blocks, C as chatbot, i as checkbox, n as code, c as color_picker, l as common, s as dataframe, y as default, d as dropdown, t as errors, u as file, p as highlighted_text, _ as image, g as label, m as login, b as number, h as plot, v as radio, f as slider, q as upload_text, w as video }; +//# sourceMappingURL=es-CHrrrvnD.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/escaping-CBnpiEl5.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/escaping-CBnpiEl5.js new file mode 100644 index 0000000000000000000000000000000000000000..c741d1da78d40cf4379f2bd0e899c3c585b7aac7 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/escaping-CBnpiEl5.js @@ -0,0 +1,29 @@ +const ATTR_REGEX = /[&"<]/g; +const CONTENT_REGEX = /[&<]/g; + +/** + * @template V + * @param {V} value + * @param {boolean} [is_attr] + */ +function escape_html(value, is_attr) { + const str = String(value ?? ''); + + const pattern = is_attr ? ATTR_REGEX : CONTENT_REGEX; + pattern.lastIndex = 0; + + let escaped = ''; + let last = 0; + + while (pattern.test(str)) { + const i = pattern.lastIndex - 1; + const ch = str[i]; + escaped += str.substring(last, i) + (ch === '&' ? '&' : ch === '"' ? '"' : '<'); + last = i + 1; + } + + return escaped + str.substring(last); +} + +export { escape_html as e }; +//# sourceMappingURL=escaping-CBnpiEl5.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/eu-B4ttIBss.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/eu-B4ttIBss.js new file mode 100644 index 0000000000000000000000000000000000000000..d09cb74e113aff6905698862531312ba8dd78803 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/eu-B4ttIBss.js @@ -0,0 +1,4 @@ +const a="Euskara",e={annotated_image:"Irudi Erantsia"},o={allow_recording_access:"Mesedez, baimendu mikrofonoaren sarbidea grabatzeko.",audio:"Audioa",record_from_microphone:"Mikrofonotik grabatu",stop_recording:"Grabaketa gelditu",no_device_support:"Ezin izan da multimedia gailuetara sartu. Ziurtatu jatorri seguru batean (https) edo localhost-en exekutatzen ari zarela (edo SSL ziurtagiri baliozkoa eman diozula ssl_verify-ri), eta nabigatzaileari zure gailura sarbidea eman diozula.",stop:"Gelditu",resume:"Jarraitu",record:"Grabatu",no_microphone:"Ez da mikrofonorik aurkitu",pause:"Pausatu",play:"Erreproduzitu",waiting:"Itxaroten",drop_to_upload:"Arrastatu audio fitxategia hemen igotzeko"},t={connection_can_break:"Mugikorretan, konexioa eten daiteke fitxa honek fokua galtzen badu edo gailua lokartu egiten bada, ilaran duzun posizioa galduz.",long_requests_queue:"Eskaera ilara luzea dago zain. Space hau bikoiztu saltatzeko.",lost_connection:"Konexioa galdu da orria uzteagatik. Ilarara itzultzen...",waiting_for_inputs:"Itxaron fitxategiak igo arte, saiatu berriro mesedez"},i={checkbox:"Kontrol-laukia",checkbox_group:"Kontrol-laukien taldea"},r={code:"Kodea"},n={color_picker:"Kolore hautatzailea"},u={built_with:"honekin eraikia",built_with_gradio:"Gradio-rekin eraikia",clear:"Garbitu",download:"Deskargatu",edit:"Editatu",empty:"Hutsik",error:"Errorea",hosted_on:"Ostatatuta",loading:"Kargatzen",logo:"logoa",or:"edo",remove:"Kendu",settings:"Ezarpenak",share:"Partekatu",submit:"Bidali",undo:"Desegin",no_devices:"Ez da gailurik aurkitu",language:"Hizkuntza",display_theme:"Bistaratze gaia",pwa:"Web Aplikazio Aurreratua"},d={incorrect_format:"Formatu okerra, CSV eta TSV fitxategiak soilik onartzen dira",new_column:"Zutabea gehitu",new_row:"Errenkada berria",add_row_above:"Errenkada gehitu gainean",add_row_below:"Errenkada gehitu azpian",add_column_left:"Zutabea gehitu ezkerrean",add_column_right:"Zutabea gehitu eskuinean",delete_row:"Ezabatu errenkila",delete_column:"Ezabatu zutabea",sort_column:"Ordenatu zutabea",sort_ascending:"Behetik gorako ordena",sort_descending:"Goitik beherako ordena",drop_to_upload:"Arrastatu CSV edo TSV fitxategiak hemen datuak dataframe-an inportatzeko",clear_sort:"Garbitu ordena"},l={dropdown:"Goitibeherako menua"},s={build_error:"eraikitze errore bat dago",config_error:"konfigurazio errore bat dago",contact_page_author:"Mesedez, jarri harremanetan orriaren egilearekin jakinarazteko.",no_app_file:"ez dago aplikazio fitxategirik",runtime_error:"exekuzio errore bat dago",space_not_working:'"Space-a ez dabil honako arrazoi honengatik:" {0}',space_paused:"space-a pausatuta dago",use_via_api:"API bidez erabili"},k={uploading:"Igotzen..."},g={highlighted_text:"Nabarmendutako testua"},c={allow_webcam_access:"Mesedez, baimendu web-kameraren sarbidea grabatzeko.",brush_color:"Pintzelaren kolorea",brush_radius:"Pintzelaren tamaina",image:"Irudia",remove_image:"Irudia kendu",select_brush_color:"Aukeratu pintzelaren kolorea",start_drawing:"Hasi marrazten",use_brush:"Pintzela erabili",drop_to_upload:"Arrastatu irudi fitxategia hemen igotzeko"},_={label:"Etiketa"},z={enable_cookies:"HuggingFace Space bat Inkognito moduan bisitatzen ari bazara, hirugarrenen cookieak gaitu behar dituzu.",incorrect_credentials:"Kredentzial okerrak",username:"erabiltzaile izena",password:"pasahitza",login:"Saioa hasi"},b={number:"Zenbakia"},p={plot:"Grafikoa"},m={radio:"Aukera botoia"},h={slider:"Graduatzailea"},f={click_to_upload:"Klikatu igotzeko",drop_audio:"Utzi audioa hemen",drop_csv:"Utzi CSV-a hemen",drop_file:"Utzi fitxategia hemen",drop_image:"Utzi irudia hemen",drop_video:"Utzi bideoa hemen",drop_gallery:"Utzi multimedia hemen",paste_clipboard:"Itsatsi arbeleko edukia"},x={drop_to_upload:"Arrastatu bideo fitxategia hemen igotzeko"},w={edit:"Editatu",retry:"Saiatu berriro",undo:"Desegin",submit:"Bidali",cancel:"Utzi",like:"Gustuko dut",dislike:"Ez dut gustuko",clear:"Garbitu txata"},E={_name:a,"3D_model":{"3d_model":"3D Modeloa",drop_to_upload:"Arrastatu 3D modelo bat (.obj, .glb, .stl, .gltf, .splat edo .ply) igotzeko."},annotated_image:e,audio:o,blocks:t,checkbox:i,code:r,color_picker:n,common:u,dataframe:d,dropdown:l,errors:s,file:k,highlighted_text:g,image:c,label:_,login:z,number:b,plot:p,radio:m,slider:h,upload_text:f,video:x,chatbot:w}; + +export { a as _name, e as annotated_image, o as audio, t as blocks, w as chatbot, i as checkbox, r as code, n as color_picker, u as common, d as dataframe, E as default, l as dropdown, s as errors, k as file, g as highlighted_text, c as image, _ as label, z as login, b as number, p as plot, m as radio, h as slider, f as upload_text, x as video }; +//# sourceMappingURL=eu-B4ttIBss.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/exports-Caq1H35p.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/exports-Caq1H35p.js new file mode 100644 index 0000000000000000000000000000000000000000..ea22a1dd1a004995cf1bc036aed4daa17fecc0b0 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/exports-Caq1H35p.js @@ -0,0 +1,54 @@ +import { s as s$1, e as e$1 } from './dev-fallback-Bc5Ork7Y.js'; + +// eslint-disable-next-line n/prefer-global/process +const IN_WEBCONTAINER = !!globalThis.process?.versions?.webcontainer; + +/** @import { RequestEvent } from '@sveltejs/kit' */ +/** @import { RequestStore } from 'types' */ +/** @import { AsyncLocalStorage } from 'node:async_hooks' */ + + +/** @type {RequestStore | null} */ +let sync_store = null; + +/** @type {AsyncLocalStorage | null} */ +let als; + +import('node:async_hooks') + .then((hooks) => (als = new hooks.AsyncLocalStorage())) + .catch(() => { + // can't use AsyncLocalStorage, but can still call getRequestEvent synchronously. + // this isn't behind `supports` because it's basically just StackBlitz (i.e. + // in-browser usage) that doesn't support it AFAICT + }); + +function try_get_request_store() { + return sync_store ?? als?.getStore() ?? null; +} + +/** + * @template T + * @param {RequestStore | null} store + * @param {() => T} fn + */ +function with_request_store(store, fn) { + try { + sync_store = store; + return als ? als.run(store, fn) : fn(); + } finally { + // Since AsyncLocalStorage is not working in webcontainers, we don't reset `sync_store` + // and handle only one request at a time in `src/runtime/server/index.js`. + if (!IN_WEBCONTAINER) { + sync_store = null; + } + } +} + +let e="",t=e;const i="_app",r=true,a={base:e,assets:t};function o(s){e=s.base,t=s.assets;}function c$2(){e=a.base,t=a.assets;}const f$1="1776726696036"; + +const s=new TextEncoder,f=new TextDecoder;function l$1(r,o){const t=r.split(/[/\\]/),e=o.split(/[/\\]/);for(t.pop();t[0]===e[0];)t.shift(),e.shift();let n=t.length;for(;n--;)t[n]="..";return t.concat(e).join("/")}function c$1(r){if(!s$1&&globalThis.Buffer)return globalThis.Buffer.from(r).toString("base64");let o="";for(let t=0;t(n(p),s[a](p,...w));r();const i=Reflect.get(s,a);return typeof i=="function"?i.bind(s):i}}),enumerable:true,configurable:true});const u=["href","pathname","search","toString","toJSON"];o&&u.push("hash");for(const s of u)Object.defineProperty(t,s,{get(){return r(),e[s]},enumerable:true,configurable:true});return s$1||(t[Symbol.for("nodejs.util.inspect.custom")]=(s,a,i)=>i(e,a),t.searchParams[Symbol.for("nodejs.util.inspect.custom")]=(s,a,i)=>i(e.searchParams,a)),(e$1||!s$1)&&!o&&b(t),t}function b(e){_(e),Object.defineProperty(e,"hash",{get(){throw new Error("Cannot access event.url.hash. Consider using `page.url.hash` inside a component instead")}});}function U(e){_(e);for(const r of ["search","searchParams"])Object.defineProperty(e,r,{get(){throw new Error(`Cannot access url.${r} on a page with prerendering enabled`)}});}function _(e){s$1||(e[Symbol.for("nodejs.util.inspect.custom")]=(r,n,o)=>o(new URL(e),n));}function c(e){function r(n,o){if(n)for(const t in n){if(t[0]==="_"||e.has(t))continue;const u=[...e.values()],s=$(t,o?.slice(o.lastIndexOf(".")))??`valid exports are ${u.join(", ")}, or anything with a '_' prefix`;throw new Error(`Invalid export '${t}'${o?` in ${o}`:""} (${s})`)}}return r}function $(e,r=".js"){const n=[];if(l.has(e)&&n.push(`+layout${r}`),v.has(e)&&n.push(`+page${r}`),d.has(e)&&n.push(`+layout.server${r}`),g.has(e)&&n.push(`+page.server${r}`),m.has(e)&&n.push(`+server${r}`),n.length>0)return `'${e}' is a valid export in ${n.slice(0,-1).join(", ")}${n.length>1?" or ":""}${n.at(-1)}`}const l=new Set(["load","prerender","csr","ssr","trailingSlash","config"]),v=new Set([...l,"entries"]),d=new Set([...l]),g=new Set([...d,"actions","entries"]),m=new Set(["GET","POST","PATCH","PUT","DELETE","OPTIONS","HEAD","fallback","prerender","trailingSlash","config","entries"]),C=c(l),L=c(v),T=c(d),I=c(g),D=c(m); + +export { C, D, E, I, L, O, R, T, U, f as a, try_get_request_store as b, c$1 as c, c$2 as d, e, f$1 as f, h$1 as h, i, j, l$1 as l, o, r, s, t, with_request_store as w, x, y }; +//# sourceMappingURL=exports-Caq1H35p.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/fa-Cftza7v_.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/fa-Cftza7v_.js new file mode 100644 index 0000000000000000000000000000000000000000..028268315f4ebf3a42e34a1a6fe1e1cdb7ef70c6 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/fa-Cftza7v_.js @@ -0,0 +1,4 @@ +const o="فارسی",e={annotated_image:"تصویر حاشیه‌نویسی شده"},r={allow_recording_access:"لطفاً برای ضبط صدا، دسترسی به میکروفون را مجاز کنید.",audio:"صدا",record_from_microphone:"ضبط از میکروفون",stop_recording:"توقف ضبط",no_device_support:"دسترسی به دستگاه‌های رسانه‌ای امکان‌پذیر نیست. اطمینان حاصل کنید که در یک منبع امن (https) یا localhost اجرا می‌شود (یا یک گواهی SSL معتبر به ssl_verify داده‌اید)، و به مرورگر اجازه دسترسی به دستگاه خود را داده‌اید.",stop:"توقف",resume:"ادامه",record:"ضبط",no_microphone:"میکروفونی یافت نشد",pause:"مکث",play:"پخش",waiting:"در حال انتظار",drop_to_upload:"فایل صوتی خود را اینجا رها کنید تا بارگذاری شود"},t={connection_can_break:"در موبایل، اگر این تب از حالت فعال خارج شود یا دستگاه به خواب برود، اتصال می‌تواند قطع شود و موقعیت شما در صف از دست می‌رود.",long_requests_queue:"صف طولانی از درخواست‌های در انتظار وجود دارد. برای رد کردن صف، این Space را تکثیر کنید.",lost_connection:"اتصال به دلیل ترک صفحه قطع شد. در حال بازگشت به صف...",waiting_for_inputs:"در انتظار به پایان رسیدن بارگذاری فایل‌ها، لطفاً مجدداً امتحان کنید."},c={checkbox:"چک‌باکس",checkbox_group:"گروه چک‌باکس"},_={code:"کد"},a={color_picker:"انتخابگر رنگ"},n={built_with:"ساخته شده با",built_with_gradio:"ساخته شده با Gradio",clear:"پاک کردن",download:"دانلود",edit:"ویرایش",empty:"خالی",error:"خطا",hosted_on:"میزبانی شده در",loading:"در حال بارگذاری",logo:"لوگو",or:"یا",remove:"حذف",settings:"تنظیمات",share:"اشتراک‌گذاری",submit:"ارسال",undo:"واگرد",no_devices:"هیچ دستگاهی یافت نشد",language:"زبان",display_theme:"تم نمایش",pwa:"وب‌اپلیکیشن پیشرونده"},s={incorrect_format:"فرمت نادرست، فقط فایل‌های CSV و TSV پشتیبانی می‌شوند",new_column:"افزودن ستون",new_row:"سطر جدید",add_row_above:"افزودن سطر در بالا",add_row_below:"افزودن سطر در پایین",add_column_left:"افزودن ستون در چپ",add_column_right:"افزودن ستون در راست",delete_row:"حذف سطر",delete_column:"حذف ستون",sort_column:"ستون را مرتب کنید",sort_ascending:"مرتب‌سازی صعودی",sort_descending:"مرتب‌سازی نزولی",drop_to_upload:"فایل‌های CSV یا TSV را اینجا رها کنید تا داده‌ها را به دیتافریم وارد کنید",clear_sort:"مرتب‌سازی را پاک کنید"},d={dropdown:"منوی کشویی"},l={build_error:"خطای ساخت وجود دارد",config_error:"خطای پیکربندی وجود دارد",contact_page_author:"لطفاً با نویسنده صفحه تماس بگیرید تا به او اطلاع دهید.",no_app_file:"فایل برنامه وجود ندارد",runtime_error:"خطای زمان اجرا وجود دارد",space_not_working:'"Space کار نمی‌کند زیرا" {0}',space_paused:"Space متوقف شده است",use_via_api:"استفاده از طریق API"},i={uploading:"در حال آپلود..."},p={highlighted_text:"متن برجسته شده"},u={allow_webcam_access:"لطفاً برای ضبط، دسترسی به وب‌کم را مجاز کنید.",brush_color:"رنگ قلم",brush_radius:"اندازه قلم",image:"تصویر",remove_image:"حذف تصویر",select_brush_color:"انتخاب رنگ قلم",start_drawing:"شروع طراحی",use_brush:"استفاده از قلم",drop_to_upload:"فایل تصویر را اینجا رها کنید تا آپلود شود"},g={label:"برچسب"},m={enable_cookies:"اگر در حالت ناشناس از HuggingFace Space بازدید می‌کنید، باید کوکی‌های شخص ثالث را فعال کنید.",incorrect_credentials:"اطلاعات ورود نادرست",username:"نام کاربری",password:"رمز عبور",login:"ورود"},b={number:"عدد"},h={plot:"نمودار"},w={radio:"دکمه رادیویی"},f={slider:"اسلایدر"},k={click_to_upload:"برای آپلود کلیک کنید",drop_audio:"فایل صوتی را اینجا رها کنید",drop_csv:"CSV را اینجا رها کنید",drop_file:"فایل را اینجا رها کنید",drop_image:"تصویر را اینجا رها کنید",drop_video:"ویدیو را اینجا رها کنید",drop_gallery:"رسانه را اینجا رها کنید",paste_clipboard:"چسباندن از کلیپ‌بورد"},S={drop_to_upload:"فایل ویدیو را اینجا رها کنید تا آپلود شود"},v={edit:"ویرایش",retry:"تلاش مجدد",undo:"بازگشت",submit:"ارسال",cancel:"لغو",like:"پسندیدم",dislike:"نپسندیدم",clear:"پاک کردن گفتگو"},x={_name:o,"3D_model":{"3d_model":"مدل سه‌بعدی",drop_to_upload:"فایل مدل سه‌بعدی (.obj، .glb، .stl، .gltf، .splat یا .ply) را اینجا رها کنید تا بارگذاری شود."},annotated_image:e,audio:r,blocks:t,checkbox:c,code:_,color_picker:a,common:n,dataframe:s,dropdown:d,errors:l,file:i,highlighted_text:p,image:u,label:g,login:m,number:b,plot:h,radio:w,slider:f,upload_text:k,video:S,chatbot:v}; + +export { o as _name, e as annotated_image, r as audio, t as blocks, v as chatbot, c as checkbox, _ as code, a as color_picker, n as common, s as dataframe, x as default, d as dropdown, l as errors, i as file, p as highlighted_text, u as image, g as label, m as login, b as number, h as plot, w as radio, f as slider, k as upload_text, S as video }; +//# sourceMappingURL=fa-Cftza7v_.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/fi-CsmdXgQC.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/fi-CsmdXgQC.js new file mode 100644 index 0000000000000000000000000000000000000000..10a0506194939cc55db98ad74784949b0a044617 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/fi-CsmdXgQC.js @@ -0,0 +1,4 @@ +const t="Suomi",a={annotated_image:"Merkitty kuva"},e={allow_recording_access:"Anna lupa mikrofonin käyttöön nauhoitusta varten.",audio:"Ääni",record_from_microphone:"Nauhoita mikrofonista",stop_recording:"Lopeta nauhoitus",no_device_support:"Medialaitteisiin ei saada yhteyttä. Varmista, että käytät suojattua lähdettä (https) tai localhostia (tai olet antanut kelvollisen SSL-varmenteen ssl_verify:lle), ja olet antanut selaimelle luvan käyttää laitettasi.",stop:"Pysäytä",resume:"Jatka",record:"Nauhoita",no_microphone:"Mikrofonia ei löydy",pause:"Tauko",play:"Toista",waiting:"Odotetaan",drop_to_upload:"Lataa kuvatiedosto tähän pudottamalla se"},o={connection_can_break:"Mobiililaitteilla yhteys voi katketa, jos tämä välilehti menettää fokuksen tai laite menee lepotilaan, jolloin paikkasi jonossa menetetään.",long_requests_queue:"Jonossa on paljon odottavia pyyntöjä. Monista tämä Space ohittaaksesi jonon.",lost_connection:"Yhteys katkesi sivulta poistumisen vuoksi. Palataan jonoon...",waiting_for_inputs:"Odotetaan tiedostojen lataamisen päättymistä, yritä uudelleen."},i={checkbox:"Valintaruutu",checkbox_group:"Valintaruuturyhmä"},n={code:"Koodi"},s={color_picker:"Värivalitsin"},l={built_with:"Tehty käyttäen",built_with_gradio:"Tehty Gradiolla",clear:"Tyhjennä",download:"Lataa",edit:"Muokkaa",empty:"Tyhjä",error:"Virhe",hosted_on:"Isännöity palvelimella",loading:"Ladataan",logo:"logo",or:"tai",remove:"Poista",settings:"Asetukset",share:"Jaa",submit:"Lähetä",undo:"Kumoa",no_devices:"Laitteita ei löytynyt",language:"Kieli",display_theme:"Näyttöteema",pwa:"Progressiivinen verkkosovellus"},r={incorrect_format:"Väärä muoto, vain CSV- ja TSV-tiedostot ovat tuettuja",new_column:"Lisää sarake",new_row:"Uusi rivi",add_row_above:"Lisää rivi yläpuolelle",add_row_below:"Lisää rivi alapuolelle",add_column_left:"Lisää sarake vasemmalle",add_column_right:"Lisää sarake oikealle",delete_row:"Poista rivi",delete_column:"Poista sarake",sort_column:"Lajittele sarake",sort_ascending:"Lajittele nousevaan järjestykseen",sort_descending:"Lajittele laskevaan järjestykseen",drop_to_upload:"Lataa CSV- tai TSV-tiedostoja tähän tuodaaksesi datan dataframeen.",clear_sort:"Tyhjennä järjestys"},u={dropdown:"Pudotusvalikko"},d={build_error:"rakennusvirhe",config_error:"määritysvirhe",contact_page_author:"Ota yhteyttä sivun tekijään ilmoittaaksesi.",no_app_file:"sovellustiedostoa ei ole",runtime_error:"ajonaikainen virhe",space_not_working:'"Space ei toimi koska" {0}',space_paused:"Space on keskeytetty",use_via_api:"Käytä API:n kautta"},c={uploading:"Ladataan..."},_={highlighted_text:"Korostettu teksti"},k={allow_webcam_access:"Anna lupa web-kameran käyttöön nauhoitusta varten.",brush_color:"Siveltimen väri",brush_radius:"Siveltimen koko",image:"Kuva",remove_image:"Poista kuva",select_brush_color:"Valitse siveltimen väri",start_drawing:"Aloita piirtäminen",use_brush:"Käytä sivellintä",drop_to_upload:"Lataa kuva tiedosto tähän pudottamalla se"},p={label:"Tunniste"},m={enable_cookies:"Jos vierailet HuggingFace Spacessa Incognito-tilassa, sinun täytyy sallia kolmannen osapuolen evästeet.",incorrect_credentials:"Virheelliset kirjautumistiedot",username:"käyttäjätunnus",password:"salasana",login:"Kirjaudu sisään"},h={number:"Numero"},v={plot:"Kaavio"},y={radio:"Valintanappi"},g={slider:"Liukusäädin"},j={click_to_upload:"Napsauta ladataksesi",drop_audio:"Pudota äänitiedosto tähän",drop_csv:"Pudota CSV-tiedosto tähän",drop_file:"Pudota tiedosto tähän",drop_image:"Pudota kuva tähän",drop_video:"Pudota video tähän",drop_gallery:"Pudota media tähän",paste_clipboard:"Liitä leikepöydältä"},b={drop_to_upload:"Lataa videotiedosto pudottamalla se tähän."},L={edit:"Muokkaa",retry:"Yritä uudelleen",undo:"Kumoa",submit:"Lähetä",cancel:"Peruuta",like:"Tykkää",dislike:"En tykkää",clear:"Tyhjennä keskustelu"},w={_name:t,"3D_model":{"3d_model":"3D-malli",drop_to_upload:"Lataa 3D-malli (.obj, .glb, .stl, .gltf, .splat tai .ply) tähän pudottamalla tiedosto."},annotated_image:a,audio:e,blocks:o,checkbox:i,code:n,color_picker:s,common:l,dataframe:r,dropdown:u,errors:d,file:c,highlighted_text:_,image:k,label:p,login:m,number:h,plot:v,radio:y,slider:g,upload_text:j,video:b,chatbot:L}; + +export { t as _name, a as annotated_image, e as audio, o as blocks, L as chatbot, i as checkbox, n as code, s as color_picker, l as common, r as dataframe, w as default, u as dropdown, d as errors, c as file, _ as highlighted_text, k as image, p as label, m as login, h as number, v as plot, y as radio, g as slider, j as upload_text, b as video }; +//# sourceMappingURL=fi-CsmdXgQC.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/fr-DpHhFOlo.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/fr-DpHhFOlo.js new file mode 100644 index 0000000000000000000000000000000000000000..0b8b331151f241748b265814bfe074614c65b583 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/fr-DpHhFOlo.js @@ -0,0 +1,4 @@ +const e="Français",r={annotated_image:"Image annotée"},o={allow_recording_access:"Veuillez autoriser l'accès au microphone pour l'enregistrement.",audio:"Audio",record_from_microphone:"Enregistrer depuis le microphone",stop_recording:"Arrêter l'enregistrement",no_device_support:"Impossible d'accéder aux périphériques multimédias. Assurez-vous que vous êtes sur une source sécurisée (https) ou localhost (ou avez passé un certificat SSL valide à ssl_verify), et que vous avez autorisé l'accès du navigateur à votre appareil.",stop:"Arrêter",resume:"Reprendre",record:"Enregistrer",no_microphone:"Aucun microphone trouvé",pause:"Pause",play:"Lecture",waiting:"En attente",drop_to_upload:"Déposez un fichier audio ici pour le télécharger"},i={connection_can_break:"Sur mobile, la connexion peut être interrompue si cet onglet perd le focus ou si l'appareil se met en veille, perdant votre position dans la file d'attente.",long_requests_queue:"Il y a une longue file d'attente de requêtes en attente. Dupliquez ce Space pour la contourner.",lost_connection:"Connexion perdue en quittant la page. Retour à la file d'attente...",waiting_for_inputs:"En attente de la fin du téléchargement des fichier(s), veuillez réessayer."},n={checkbox:"Case à cocher",checkbox_group:"Groupe de cases à cocher"},a={code:"Code"},t={color_picker:"Sélecteur de couleur"},c={built_with:"créé avec",built_with_gradio:"Créé avec Gradio",clear:"Effacer",download:"Télécharger",edit:"Modifier",empty:"Vide",flag:"Marquer",error:"Erreur",hosted_on:"Hébergé sur",loading:"Chargement",logo:"logo",or:"ou",remove:"Supprimer",settings:"Paramètres",share:"Partager",submit:"Envoyer",undo:"Annuler",no_devices:"Aucun périphérique trouvé",language:"Langue",display_theme:"Thème d'affichage",pwa:"Application web progressive",run:"Exécuter"},s={incorrect_format:"Format incorrect, seuls les fichiers CSV et TSV sont pris en charge",new_column:"Ajouter une colonne",new_row:"Nouvelle ligne",add_row_above:"Ajouter une ligne au-dessus",add_row_below:"Ajouter une ligne en dessous",add_column_left:"Ajouter une colonne à gauche",add_column_right:"Ajouter une colonne à droite",delete_row:"Supprimer la ligne",delete_column:"Supprimer la colonne",sort_column:"Trier la colonne",sort_ascending:"Trier par ordre croissant",sort_descending:"Trier par ordre décroissant",drop_to_upload:"Déposez ici les fichiers CSV ou TSV pour importer les données dans le dataframe.",clear_sort:"Effacer le tri"},u={dropdown:"Menu déroulant"},l={build_error:"il y a une erreur de construction",config_error:"il y a une erreur de configuration",contact_page_author:"Veuillez contacter l'auteur de la page pour l'informer.",no_app_file:"il n'y a pas de fichier d'application",runtime_error:"il y a une erreur d'exécution",space_not_working:'"Le Space ne fonctionne pas car" {0}',space_paused:"le Space est en pause",use_via_api:"Utiliser via API",use_via_api_or_mcp:"Utiliser via API ou MCP"},d={uploading:"Téléchargement..."},p={highlighted_text:"Texte surligné"},_={allow_webcam_access:"Veuillez autoriser l'accès à la webcam pour l'enregistrement.",brush_color:"Couleur du pinceau",brush_radius:"Taille du pinceau",image:"Image",remove_image:"Supprimer l'image",select_brush_color:"Sélectionner la couleur du pinceau",start_drawing:"Commencer à dessiner",use_brush:"Utiliser le pinceau",drop_to_upload:"Déposez un fichier image ici pour télécharger"},g={label:"Étiquette"},m={enable_cookies:"Si vous visitez un Space HuggingFace en mode Incognito, vous devez activer les cookies tiers.",incorrect_credentials:"Identifiants incorrects",username:"nom d'utilisateur",password:"mot de passe",login:"Connexion"},h={number:"Nombre"},f={plot:"Graphique"},v={radio:"Bouton radio"},b={slider:"Curseur"},w={click_to_upload:"Cliquez pour télécharger un fichier",drop_audio:"Déposez l'audio ici",drop_csv:"Déposez le fichier CSV ici",drop_file:"Déposez le fichier ici",drop_image:"Déposez l'image ici",drop_video:"Déposez la vidéo ici",drop_gallery:"Déposez les médias ici",paste_clipboard:"Coller depuis le presse-papiers"},z={drop_to_upload:"Déposez un fichier vidéo ici pour le télécharger"},S={edit:"Modifier",retry:"Réessayer",undo:"Annuler",submit:"Envoyer",cancel:"Annuler",like:"J'aime",dislike:"Je n'aime pas",clear:"Effacer la conversation"},A={_name:e,"3D_model":{"3d_model":"Modèle 3D",drop_to_upload:"Déposez un fichier image ici pour le télécharger"},annotated_image:r,audio:o,blocks:i,checkbox:n,code:a,color_picker:t,common:c,dataframe:s,dropdown:u,errors:l,file:d,highlighted_text:p,image:_,label:g,login:m,number:h,plot:f,radio:v,slider:b,upload_text:w,video:z,chatbot:S}; + +export { e as _name, r as annotated_image, o as audio, i as blocks, S as chatbot, n as checkbox, a as code, t as color_picker, c as common, s as dataframe, A as default, u as dropdown, l as errors, d as file, p as highlighted_text, _ as image, g as label, m as login, h as number, f as plot, v as radio, b as slider, w as upload_text, z as video }; +//# sourceMappingURL=fr-DpHhFOlo.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/he-BDmdmDW-.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/he-BDmdmDW-.js new file mode 100644 index 0000000000000000000000000000000000000000..91115c7c1c00578f88a8cfc963f6ba5f978c7c98 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/he-BDmdmDW-.js @@ -0,0 +1,4 @@ +const o="עברית",e={annotated_image:"תמונה מוערת"},r={allow_recording_access:"אנא אפשר/י גישה למיקרופון להקלטה.",audio:"שמע",record_from_microphone:"הקלט ממיקרופון",stop_recording:"עצור הקלטה",no_device_support:"לא ניתן לגשת להתקני מדיה. וודא שאתה מריץ ממקור מאובטח (https) או localhost (או שהעברת אישור SSL תקף ל-ssl_verify), ושאישרת לדפדפן גישה למכשיר שלך.",stop:"עצור",resume:"המשך",record:"הקלט",no_microphone:"לא נמצא מיקרופון",pause:"השהה",play:"נגן",waiting:"ממתין",drop_to_upload:"הטילו קובץ אודיו כאן כדי להעלות"},t={connection_can_break:"בנייד, החיבור עלול להתנתק אם כרטיסייה זו מאבדת מיקוד או המכשיר נכנס למצב שינה, מה שיגרום לאיבוד מקומך בתור.",long_requests_queue:"יש תור ארוך של בקשות ממתינות. שכפל Space זה כדי לדלג על התור.",lost_connection:"החיבור אבד בגלל עזיבת העמוד. חוזר לתור...",waiting_for_inputs:"מחכים לסיום העלאה של הקבצים, אנא נסה שוב."},c={checkbox:"תיבת סימון",checkbox_group:"קבוצת תיבות סימון"},a={code:"קוד"},_={color_picker:"בוחר צבעים"},n={built_with:"נבנה עם",built_with_gradio:"נבנה עם Gradio",clear:"נקה",download:"הורד",edit:"ערוך",empty:"ריק",error:"שגיאה",hosted_on:"מאוחסן ב",loading:"טוען",logo:"לוגו",or:"או",remove:"הסר",settings:"הגדרות",share:"שתף",submit:"שלח",undo:"בטל",no_devices:"לא נמצאו התקנים",language:"שפה",display_theme:"ערכת נושא",pwa:"יישום ווב מתקדם"},d={incorrect_format:"פורמט שגוי, רק קבצי CSV ו-TSV נתמכים",new_column:"הוסף עמודה",new_row:"שורה חדשה",add_row_above:"הוסף שורה מעל",add_row_below:"הוסף שורה מתחת",add_column_left:"הוסף עמודה משמאל",add_column_right:"הוסף עמודה מימין",delete_row:"מחק שורה",delete_column:"מחק עמודה",sort_column:"מיין עמודה",sort_ascending:"מיין בסדר עולה",sort_descending:"מיין בסדר יורד",drop_to_upload:"הטילו קבצי CSV או TSV כאן כדי לייבא נתונים לתוך dataframe",clear_sort:"נקה סדר"},s={dropdown:"תפריט נפתח"},i={build_error:"יש שגיאת בנייה",config_error:"יש שגיאת תצורה",contact_page_author:"אנא צור קשר עם מחבר העמוד כדי ליידע אותו.",no_app_file:"אין קובץ יישום",runtime_error:"יש שגיאת זמן ריצה",space_not_working:'"ה-Space לא עובד כי" {0}',space_paused:"ה-Space מושהה",use_via_api:"השתמש דרך API"},l={uploading:"מעלה..."},p={highlighted_text:"טקסט מודגש"},u={allow_webcam_access:"אנא אפשר גישה למצלמת האינטרנט להקלטה.",brush_color:"צבע מברשת",brush_radius:"גודל מברשת",image:"תמונה",remove_image:"הסר תמונה",select_brush_color:"בחר צבע מברשת",start_drawing:"התחל לצייר",use_brush:"השתמש במברשת",drop_to_upload:"הטילו קובץ תמונה כאן כדי להעלות"},g={label:"תווית"},m={enable_cookies:"אם אתה מבקר ב-Space של HuggingFace במצב גלישה בסתר, עליך לאפשר קובצי cookie של צד שלישי.",incorrect_credentials:"פרטי התחברות שגויים",username:"שם משתמש",password:"סיסמה",login:"התחבר"},b={number:"מספר"},h={plot:"תרשים"},w={radio:"כפתור רדיו"},f={slider:"מחוון"},k={click_to_upload:"לחץ להעלאה",drop_audio:"שחרר קובץ שמע כאן",drop_csv:"שחרר קובץ CSV כאן",drop_file:"שחרר קובץ כאן",drop_image:"שחרר תמונה כאן",drop_video:"שחרר וידאו כאן",drop_gallery:"שחרר מדיה כאן",paste_clipboard:"הדבק מהלוח"},S={drop_to_upload:"הטילו קובץ וידאו כאן כדי להעלות"},v={edit:"עריכה",retry:"נסה שוב",undo:"בטל",submit:"שלח",cancel:"ביטול",like:"אהבתי",dislike:"לא אהבתי",clear:"נקה שיחה"},x={_name:o,"3D_model":{"3d_model":"מודל תלת מימד",drop_to_upload:"הטילו קובץ מודל 3D (.obj, .glb, .stl, .gltf, .splat או .ply) כאן כדי להעלות"},annotated_image:e,audio:r,blocks:t,checkbox:c,code:a,color_picker:_,common:n,dataframe:d,dropdown:s,errors:i,file:l,highlighted_text:p,image:u,label:g,login:m,number:b,plot:h,radio:w,slider:f,upload_text:k,video:S,chatbot:v}; + +export { o as _name, e as annotated_image, r as audio, t as blocks, v as chatbot, c as checkbox, a as code, _ as color_picker, n as common, d as dataframe, x as default, s as dropdown, i as errors, l as file, p as highlighted_text, u as image, g as label, m as login, b as number, h as plot, w as radio, f as slider, k as upload_text, S as video }; +//# sourceMappingURL=he-BDmdmDW-.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/hi-BEwoCZ2B.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/hi-BEwoCZ2B.js new file mode 100644 index 0000000000000000000000000000000000000000..590818264f6c2cf660abfc5b41213685fab74ea0 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/hi-BEwoCZ2B.js @@ -0,0 +1,4 @@ +const o="हिंदी",e={annotated_image:"एनोटेट की गई छवि"},r={allow_recording_access:"कृपया रिकॉर्डिंग के लिए माइक्रोफ़ोन एक्सेस की अनुमति दें।",audio:"ऑडियो",record_from_microphone:"माइक्रोफ़ोन से रिकॉर्ड करें",stop_recording:"रिकॉर्डिंग रोकें",no_device_support:"मीडिया डिवाइस तक पहुंच नहीं हो सकी। सुनिश्चित करें कि आप एक सुरक्षित स्रोत (https) या localhost पर चल रहे हैं (या ssl_verify को एक वैध SSL प्रमाणपत्र दिया है), और आपने अपने ब्राउज़र को अपने डिवाइस तक पहुंच की अनुमति दी है।",stop:"रोकें",resume:"जारी रखें",record:"रिकॉर्ड",no_microphone:"कोई माइक्रोफ़ोन नहीं मिला",pause:"रोकें",play:"चलाएं",waiting:"प्रतीक्षा कर रहा है",drop_to_upload:"यहाँ एक ऑडियो फाइल डालें अपलोड करने के लिए"},t={connection_can_break:"मोबाइल पर, यदि यह टैब फोकस खो देता है या डिवाइस स्लीप मोड में चला जाता है, तो कनेक्शन टूट सकता है, जिससे कतार में आपका स्थान खो जाएगा।",long_requests_queue:"लंबित अनुरोधों की एक लंबी कतार है। इसे छोड़ने के लिए इस Space को डुप्लिकेट करें।",lost_connection:"पेज छोड़ने के कारण कनेक्शन टूट गया। कतार में वापस जा रहा है...",waiting_for_inputs:"फाइलें अपलोड होने का इंतजार कर रहे हैं, कृपया पुन: प्रयास करें।"},c={checkbox:"चेकबॉक्स",checkbox_group:"चेकबॉक्स समूह"},_={code:"कोड"},a={color_picker:"रंग चयनकर्ता"},n={built_with:"के साथ बनाया गया",built_with_gradio:"Gradio के साथ बनाया गया",clear:"साफ़ करें",download:"डाउनलोड",edit:"संपादित करें",empty:"खाली",error:"त्रुटि",hosted_on:"पर होस्ट किया गया",loading:"लोड हो रहा है",logo:"लोगो",or:"या",remove:"हटाएं",settings:"सेटिंग्स",share:"साझा करें",submit:"सबमिट करें",undo:"पूर्ववत करें",no_devices:"कोई डिवाइस नहीं मिला",language:"भाषा",display_theme:"प्रदर्शन थीम",pwa:"प्रोग्रेसिव वेब ऐप"},s={incorrect_format:"गलत प्रारूप, केवल CSV और TSV फ़ाइलें समर्थित हैं",new_column:"कॉलम जोड़ें",new_row:"नई पंक्ति",add_row_above:"ऊपर पंक्ति जोड़ें",add_row_below:"नीचे पंक्ति जोड़ें",add_column_left:"बाएं कॉलम जोड़ें",add_column_right:"दाएं कॉलम जोड़ें",delete_row:"पंक्ति हटाएं",delete_column:"कॉलम हटाएं",sort_column:"कॉलम को क्रमबद्ध करें",sort_ascending:"आरोही क्रम में क्रमबद्ध करें",sort_descending:"अवरोही क्रम में क्रमबद्ध करें",drop_to_upload:"यहाँ CSV या TSV फाइलें ड्रॉप करें ताकि डेटा डेटाफ़्रेम में आयात किया जा सके",clear_sort:"क्रमबद्धता हटाएं"},d={dropdown:"ड्रॉपडाउन"},i={build_error:"एक बिल्ड त्रुटि है",config_error:"एक कॉन्फ़िगरेशन त्रुटि है",contact_page_author:"कृपया पेज के लेखक को सूचित करने के लिए संपर्क करें।",no_app_file:"कोई ऐप फ़ाइल नहीं है",runtime_error:"एक रनटाइम त्रुटि है",space_not_working:'"Space काम नहीं कर रहा है क्योंकि" {0}',space_paused:"Space रोका गया है",use_via_api:"API के माध्यम से उपयोग करें"},l={uploading:"अपलोड हो रहा है..."},p={highlighted_text:"हाइलाइट किया गया टेक्स्ट"},u={allow_webcam_access:"कृपया रिकॉर्डिंग के लिए वेबकैम एक्सेस की अनुमति दें।",brush_color:"ब्रश का रंग",brush_radius:"ब्रश का आकार",image:"छवि",remove_image:"छवि हटाएं",select_brush_color:"ब्रश का रंग चुनें",start_drawing:"चित्रकारी शुरू करें",use_brush:"ब्रश का उपयोग करें",drop_to_upload:"यहाँ एक छवि फाइल डालें अपलोड करने के लिए"},g={label:"लेबल"},m={enable_cookies:"यदि आप इनकॉग्निटो मोड में HuggingFace Space का दौरा कर रहे हैं, तो आपको थर्ड-पार्टी कुकीज़ को सक्षम करना होगा।",incorrect_credentials:"गलत क्रेडेंशियल्स",username:"उपयोगकर्ता नाम",password:"पासवर्ड",login:"लॉग इन करें"},b={number:"संख्या"},h={plot:"प्लॉट"},w={radio:"रेडियो बटन"},f={slider:"स्लाइडर"},k={click_to_upload:"अपलोड करने के लिए क्लिक करें",drop_audio:"ऑडियो यहाँ छोड़ें",drop_csv:"CSV फाइल यहाँ छोड़ें",drop_file:"फ़ाइल यहाँ छोड़ें",drop_image:"छवि यहाँ छोड़ें",drop_video:"वीडियो यहाँ छोड़ें",drop_gallery:"मीडिया यहाँ छोड़ें",paste_clipboard:"क्लिपबोर्ड से पेस्ट करें"},S={drop_to_upload:"यहाँ एक वीडियो फाइल डालें अपलोड करने के लिए"},v={edit:"संपादित करें",retry:"पुनः प्रयास करें",undo:"वापस लें",submit:"भेजें",cancel:"रद्द करें",like:"पसंद",dislike:"नापसंद",clear:"चैट साफ़ करें"},x={_name:o,"3D_model":{"3d_model":"3D मॉडल",drop_to_upload:"यहाँ 3D मॉडल (.obj, .glb, .stl, .gltf, .splat, या .ply) फ़ाइल ड्रॉप करें अपलोड करने के लिए"},annotated_image:e,audio:r,blocks:t,checkbox:c,code:_,color_picker:a,common:n,dataframe:s,dropdown:d,errors:i,file:l,highlighted_text:p,image:u,label:g,login:m,number:b,plot:h,radio:w,slider:f,upload_text:k,video:S,chatbot:v}; + +export { o as _name, e as annotated_image, r as audio, t as blocks, v as chatbot, c as checkbox, _ as code, a as color_picker, n as common, s as dataframe, x as default, d as dropdown, i as errors, l as file, p as highlighted_text, u as image, g as label, m as login, b as number, h as plot, w as radio, f as slider, k as upload_text, S as video }; +//# sourceMappingURL=hi-BEwoCZ2B.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/html-CfyvkLET.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/html-CfyvkLET.js new file mode 100644 index 0000000000000000000000000000000000000000..dda2b90a04957015e7786f6b67b9db1095980253 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/html-CfyvkLET.js @@ -0,0 +1,11 @@ +/** + * @param {string} value + */ +function html(value) { + var html = String(value ?? ''); + var open = ''; + return open + html + ''; +} + +export { html as h }; +//# sourceMappingURL=html-CfyvkLET.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/id-B4bhjheo.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/id-B4bhjheo.js new file mode 100644 index 0000000000000000000000000000000000000000..284dfaa6a4ea2271b81e82f19d9cd3123412e207 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/id-B4bhjheo.js @@ -0,0 +1,4 @@ +const a="Bahasa Indonesia",n={annotated_image:"Gambar Beranotasi"},e={allow_recording_access:"Mohon izinkan akses ke mikrofon untuk merekam.",audio:"Audio",record_from_microphone:"Rekam dari mikrofon",stop_recording:"Hentikan rekaman",no_device_support:"Perangkat media tidak dapat diakses. Pastikan Anda menjalankan dari sumber yang aman (https) atau localhost (atau Anda telah meneruskan sertifikat SSL yang valid ke ssl_verify), dan Anda telah mengizinkan akses browser ke perangkat Anda.",stop:"Berhenti",resume:"Lanjutkan",record:"Rekam",no_microphone:"Tidak ada mikrofon yang ditemukan",pause:"Jeda",play:"Putar",waiting:"Menunggu",drop_to_upload:"Letakkan file audio di sini untuk mengunggah"},i={connection_can_break:"Di perangkat seluler, koneksi dapat terputus jika tab ini tidak dalam fokus atau perangkat dalam mode tidur, sehingga Anda kehilangan posisi dalam antrian.",long_requests_queue:"Ada antrian panjang dari permintaan yang tertunda. Gandakan Ruang ini untuk melompati antrian.",lost_connection:"Koneksi terputus karena meninggalkan halaman. Bergabung kembali ke antrian...",waiting_for_inputs:"Menunggu file selesai diunggah, mohon coba lagi."},o={checkbox:"Kotak centang",checkbox_group:"Grup kotak centang"},r={code:"Kode"},t={color_picker:"Pemilih Warna"},d={built_with:"dibuat dengan",built_with_gradio:"Dibuat dengan Gradio",clear:"Bersihkan",download:"Unduh",edit:"Edit",empty:"Kosong",error:"Error",hosted_on:"Di-hosting di",loading:"Memuat",logo:"logo",or:"atau",remove:"Hapus",settings:"Pengaturan",share:"Bagikan",submit:"Kirim",undo:"Urungkan",no_devices:"Tidak ada perangkat yang ditemukan",language:"Bahasa",display_theme:"Tema Tampilan",pwa:"Aplikasi Web Progresif"},u={incorrect_format:"Format salah, hanya file CSV dan TSV yang didukung",new_column:"Tambah kolom",new_row:"Baris baru",add_row_above:"Tambah baris di atas",add_row_below:"Tambah baris di bawah",add_column_left:"Tambah kolom ke kiri",add_column_right:"Tambah kolom ke kanan",delete_row:"Hapus baris",delete_column:"Hapus kolom",sort_column:"Urutkan kolom",sort_ascending:"Urutkan menaik",sort_descending:"Urutkan menurun",drop_to_upload:"Letakkan file CSV atau TSV di sini untuk mengimpor data ke dataframe",clear_sort:"Bersihkan pengurutan"},s={dropdown:"Dropdown"},k={build_error:"ada error saat membangun",config_error:"ada error konfigurasi",contact_page_author:"Mohon hubungi penulis halaman untuk memberitahu mereka.",no_app_file:"tidak ada file aplikasi",runtime_error:"ada error runtime",space_not_working:'"Ruang tidak berfungsi karena" {0}',space_paused:"ruang sedang dijeda",use_via_api:"Gunakan melalui API"},l={uploading:"Mengunggah..."},g={highlighted_text:"Teks yang Disorot"},m={allow_webcam_access:"Mohon izinkan akses ke webcam untuk merekam.",brush_color:"Warna kuas",brush_radius:"Radius kuas",image:"Gambar",remove_image:"Hapus Gambar",select_brush_color:"Pilih warna kuas",start_drawing:"Mulai menggambar",use_brush:"Gunakan kuas",drop_to_upload:"Letakkan file gambar di sini untuk mengunggah"},c={label:"Label"},_={enable_cookies:"Jika Anda mengunjungi Ruang HuggingFace dalam mode Penyamaran, Anda harus mengaktifkan cookie pihak ketiga.",incorrect_credentials:"Kredensial salah",username:"nama pengguna",password:"kata sandi",login:"Masuk"},p={number:"Nomor"},h={plot:"Plot"},b={radio:"Tombol Radio"},f={slider:"Penggeser"},w={click_to_upload:"Klik untuk Mengunggah",drop_audio:"Letakkan Audio di Sini",drop_csv:"Letakkan CSV di Sini",drop_file:"Letakkan File di Sini",drop_image:"Letakkan Gambar di Sini",drop_video:"Letakkan Video di Sini",drop_gallery:"Letakkan Media di Sini",paste_clipboard:"Tempel dari Papan Klip"},y={drop_to_upload:"Letakkan file video di sini untuk mengunggah"},S={edit:"Edit",retry:"Coba lagi",undo:"Urungkan",submit:"Kirim",cancel:"Batal",like:"Suka",dislike:"Tidak Suka",clear:"Bersihkan obrolan"},T={_name:a,"3D_model":{"3d_model":"Model 3D",drop_to_upload:"Letakkan file model 3D (.obj, .glb, .stl, .gltf, .splat, atau .ply) di sini untuk mengunggah"},annotated_image:n,audio:e,blocks:i,checkbox:o,code:r,color_picker:t,common:d,dataframe:u,dropdown:s,errors:k,file:l,highlighted_text:g,image:m,label:c,login:_,number:p,plot:h,radio:b,slider:f,upload_text:w,video:y,chatbot:S}; + +export { a as _name, n as annotated_image, e as audio, i as blocks, S as chatbot, o as checkbox, r as code, t as color_picker, d as common, u as dataframe, T as default, s as dropdown, k as errors, l as file, g as highlighted_text, m as image, c as label, _ as login, p as number, h as plot, b as radio, f as slider, w as upload_text, y as video }; +//# sourceMappingURL=id-B4bhjheo.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/index-CF7WUfN6.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/index-CF7WUfN6.js new file mode 100644 index 0000000000000000000000000000000000000000..b217ab7cc4dc4a90d8ebc586405107814164dc8d --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/index-CF7WUfN6.js @@ -0,0 +1,18 @@ +import { f as fallback } from './async-D55cHugf.js'; +import { b as store_get, f as attr_class, g as attr_style, s as slot, a as attr, i as stringify, u as unsubscribe_stores, d as bind_props, e as ensure_array_like } from './index-u8mz_F03.js'; +import { t as tick } from './index-server-CQz6EZl_.js'; +import { h as hs, l as ls, m as ms, d as ds, _ as _s } from './2-BLdXJizP.js'; +export { E as changeLocale, x as get_initial_locale, y as is_translation_metadata, w as language_choices, a as load_translations, f as mount_css, p as prefix_css, r as process_langs, v as setupi18n } from './2-BLdXJizP.js'; +import { u } from './utils.svelte-B2py64Fz.js'; +export { d as i18n_marker } from './utils.svelte-B2py64Fz.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; +import './clone-Yk88IHKV.js'; + +const $="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='10'%20height='10'%20fill='none'%3e%3cpath%20fill='%23FF3270'%20d='M1.93%206.03v2.04h2.04V6.03H1.93Z'/%3e%3cpath%20fill='%23861FFF'%20d='M6.03%206.03v2.04h2.04V6.03H6.03Z'/%3e%3cpath%20fill='%23097EFF'%20d='M1.93%201.93v2.04h2.04V1.93H1.93Z'/%3e%3cpath%20fill='%23000'%20fill-rule='evenodd'%20d='M.5%201.4c0-.5.4-.9.9-.9h3.1a.9.9%200%200%201%20.87.67A2.44%202.44%200%200%201%209.5%202.95c0%20.65-.25%201.24-.67%201.68.39.1.67.46.67.88v3.08c0%20.5-.4.91-.9.91H1.4a.9.9%200%200%201-.9-.9V1.4Zm1.43.53v2.04h2.04V1.93H1.93Zm0%206.14V6.03h2.04v2.04H1.93Zm4.1%200V6.03h2.04v2.04H6.03Zm0-5.12a1.02%201.02%200%201%201%202.04%200%201.02%201.02%200%200%201-2.04%200Z'%20clip-rule='evenodd'/%3e%3cpath%20fill='%23FFD702'%20d='M7.05%201.93a1.02%201.02%200%201%200%200%202.04%201.02%201.02%200%200%200%200-2.04Z'/%3e%3c/svg%3e";function ct(e,t){e.component(i=>{var s;let r,n,p=t.wrapper,a=t.version,l=t.initial_height,h=t.fill_width,c=t.is_embed,g=t.space,b=t.display,A=t.info,j=t.loaded,F=fallback(t.pages,()=>[],true),L=fallback(t.current_page,""),I=t.root,P=fallback(t.components,()=>[],true),M=P.find(f=>f.type==="navbar"),u=M?{visible:M.props.visible,main_page_name:M.props.main_page_name,value:M.props.value}:null;u&&hs.set(u);function U(f){let d=f.split("?")[0].split("#")[0];return d=d.replace(/^\/+|\/+$/g,""),d}function Q(f,d){return f.startsWith("http://")||f.startsWith("https://")?false:U(f)===U(d)}if(store_get(s??={},"$navbar_config",hs)&&(u={visible:store_get(s??={},"$navbar_config",hs).visible??true,main_page_name:store_get(s??={},"$navbar_config",hs).main_page_name??"Home",value:store_get(s??={},"$navbar_config",hs).value??null}),r=F.length>1&&(u===null||u.visible!==false),n=(()=>{let f=F.filter(([v,_,m],y)=>y===0&&v===""?u?.main_page_name!==false:m!==false),d=u&&u.main_page_name!==false&&u.main_page_name!=="Home"?f.map(([v,_,m],y)=>y===0&&v===""&&_==="Home"?[v,u.main_page_name]:[v,_]):f.map(([v,_])=>[v,_]);if(u?.value&&u.value.length>0){const v=new Set(d.map(([m])=>m)),_=u.value.map(([m,y])=>[y,m]).filter(([m])=>!v.has(m));return [...d,..._]}return d})(),i.push(``),r){i.push(""),i.push(`");}else i.push("");i.push(` `),slot(i,t,"default",{}),i.push("
    "),b&&g&&A?(i.push(""),i.push(`
    ${escape_html(g)} ${escape_html(store_get(s??={},"$_",ls)("common.built_with"))} Gradio. ${escape_html(store_get(s??={},"$_",ls)("common.hosted_on"))} Spaces
    `)):i.push(""),i.push("
    "),s&&unsubscribe_stores(s),bind_props(t,{wrapper:p,version:a,initial_height:l,fill_width:h,is_embed:c,space:g,display:b,info:A,loaded:j,pages:F,current_page:L,root:I,components:P});});}var R=Object.prototype.hasOwnProperty;function B(e,t,i){for(i of e.keys())if(E(i,t))return i}function E(e,t){var i,s,r;if(e===t)return true;if(e&&t&&(i=e.constructor)===t.constructor){if(i===Date)return e.getTime()===t.getTime();if(i===RegExp)return e.toString()===t.toString();if(i===Array){if((s=e.length)===t.length)for(;s--&&E(e[s],t[s]););return s===-1}if(i===Set){if(e.size!==t.size)return false;for(s of e)if(r=s,r&&typeof r=="object"&&(r=B(t,r),!r)||!t.has(r))return false;return true}if(i===Map){if(e.size!==t.size)return false;for(s of e)if(r=s[0],r&&typeof r=="object"&&(r=B(t,r),!r)||!E(s[1],t.get(r)))return false;return true}if(i===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(i===DataView){if((s=e.byteLength)===t.byteLength)for(;s--&&e.getInt8(s)===t.getInt8(s););return s===-1}if(ArrayBuffer.isView(e)){if((s=e.byteLength)===t.byteLength)for(;s--&&e[s]===t[s];);return s===-1}if(!i||typeof e=="object"){s=0;for(i in e)if(R.call(e,i)&&++s&&!R.call(t,i)||!(i in t)||!E(e[i],t[i]))return false;return Object.keys(t).length===s}}return e!==e&&t!==t}const tt={walkthrough:"tabs",walkthroughstep:"tabitem"};function O(e){const t=new URL(e.root),i=t.pathname.endsWith("/")?t.pathname:t.pathname+"/",s=e.api_prefix.startsWith("/")?e.api_prefix:"/"+e.api_prefix;return new URL(i.slice(0,-1)+s,t.origin).toString()}class ht{#p;#i;#s;reactive_formatter=t=>t;#t;client;root;root_untracked;#l=new Set;#o=new Set;#_=[];#c=new Map;#e=new Map;#r=new Map;#a;component_ids;initial_tabs={};components_to_register=new Set;ready;ready_resolve;resolved=false;#n=new Set;constructor(t,i,s,r,n,p,a){this.ready=new Promise(c=>{this.ready_resolve=c;}),this.reactive_formatter=p;const l=O(r);this.#t={...r,api_url:l},this.#p=t,this.#i=i,this.#s=s,this.#a=a,this.root=this.create_node({id:i.id,children:[]},new Map,true);for(const c of t)c.props.visible!=false&&this.components_to_register.add(c.id);this.client=n,this.prepare();const h=t.reduce((c,g)=>(c.set(g.id,g),c),new Map);this.root.children=this.#i.children.map(c=>this.traverse(c,g=>this.create_node(g,h,false,this.reactive_formatter))),this.component_ids=t.map(c=>c.id),this.initial_tabs={},W(this.root,this.initial_tabs),this.postprocess(this.root),this.root_untracked=this.root;}reload(t,i,s,r){this.#i=i,this.#p=t;const n=O(r);this.#t={...r,api_url:n},this.#s=s,this.root=this.create_node({id:i.id,children:[]},new Map,true);for(const a of t)a.props.visible!=false&&this.components_to_register.add(a.id);this.prepare();const p=t.reduce((a,l)=>(a.set(l.id,l),a),new Map);this.root.children=this.#i.children.map(a=>this.traverse(a,l=>this.create_node(l,p,false,this.reactive_formatter))),this.component_ids=t.map(a=>a.id),this.initial_tabs={},W(this.root,this.initial_tabs),this.postprocess(this.root);}register_component(t,i,s){this.#e.set(t,i),this.#c.set(t,s),this.components_to_register.delete(t);const r=this.#r.get(t);r&&(this.#r.delete(t),tick().then(()=>{const n=this.#e.get(t);n&&n(r);})),this.components_to_register.size===0&&!this.resolved&&(this.resolved=true,this.ready_resolve());}prepare(){const[t,i]=ms(this.#s);this.#l=t,this.#o=i;}process(){}postprocess(t){this.root=this.traverse(t,[i=>Z(i,this.#t.api_url),i=>rt(i,this.components_to_register),i=>T(i,this.initial_tabs),i=>this.find_attached_events(i,this.#s),i=>nt(i,this.components_to_register,this.#n)]);}find_attached_events(t,i){const s=i.filter(r=>r.targets.find(([n])=>n===t.id)).map(r=>{const n=r.targets.find(([p])=>p===t.id);return n?n[1]:null}).filter(Boolean);return t.props.shared_props.attached_events=s,t}traverse(t,i){function s(r,n,p){const a=n(r);return "children"in r&&r.children.length>0&&(a.children=r.children?.map(l=>p(l,n))||[]),a}if(Array.isArray(i)){let r=t;for(const n of i)r=s(r,n,this.traverse.bind(this));return r}else return s(t,i,this.traverse.bind(this))}create_node(t,i,s=false,r){let n;if(s?n={type:"column",id:t.id,props:{visible:true,root:"",theme_mode:"light",scale:this.#t.fill_height?1:null},component_class_id:"column",key:null}:n=i.get(t.id),!n)throw new Error(`Component with ID ${t.id} not found`);r&&(n.props.i18n=r);const p=it(t.id,n.props,[this.#l,this.#o],this.client,this.#t.api_url,{...this.#t,register_component:this.register_component.bind(this),dispatcher:this.#a.bind(this)}),a=tt[n.type]||n.type,l=p.shared_props.visible!==false?ds(n.type,n.component_class_id,this.#t.api_url||""):null;return {id:t.id,type:a,props:p,children:[],show_progress_on:null,component_class_id:n.component_class_id||n.type,component:p.shared_props.visible!==false&&l?.component||null,runtime:l?.runtime||false,key:n.key,rendered_in:n.rendered_in,documentation:n.documentation,original_visibility:p.shared_props.visible}}rerender(t,i){const s=t.reduce((a,l)=>(a.set(l.id,l),a),new Map),r=this.traverse(i,a=>this.create_node(a,s,false,this.reactive_formatter));W(r,this.initial_tabs);const n=this.traverse(r,a=>T(a,this.initial_tabs)),p=k(this.root,n.id);if(!p)throw new Error("Rerender failed: root node not found in current tree");p.children=n.children;}async update_state(t,i,s=true){const r=k(this.root,t);let n=false;s&&!r?.component&&(await tick(),this.root=this.traverse(this.root,[a=>st(a,t,i.visible),a=>Z(a,this.#t.api_url)]),await tick(),n=true);const p=this.#e.get(t);if(p)p&&p(i);else {const a=r?.props.props.value,l=J(i);for(const c in l.shared_props)r.props.shared_props[c]=l.shared_props[c];for(const c in l.props)r.props.props[c]=l.props[c];const h=this.#r.get(t)||{};this.#r.set(t,{...h,...i}),"value"in i&&!E(a,i.value)&&this.#a(t,"change",null),r?.type==="tabitem"&&this.#h(t,r);}!s||n||(await tick(),await this.update_visibility(r,i));}async update_visibility(t,i){t.children.forEach(s=>{const r=this.#e.get(s.id);r&&r(i),this.update_visibility(s,i);});}#h(t,i){const s=N(this.root,t);if(!s||s.type!=="tabs")return;const r=s.props.props.initial_tabs;if(!r)return;const n=r.findIndex(c=>c.component_id===i.id);if(n===-1)return;const p=i.props.props.i18n,a=i.props.shared_props.label,l="original_visibility"in i?i.original_visibility:i.props.shared_props.visible;r[n]={label:p?p(a):a,id:i.props.props.id,elem_id:i.props.shared_props.elem_id,visible:l,interactive:i.props.shared_props.interactive,scale:i.props.shared_props.scale||null,component_id:i.id},s.props.props.initial_tabs=[...r];const h=this.#e.get(s.id);h&&h({initial_tabs:s.props.props.initial_tabs});}async get_state(t){const i=this.#c.get(t),s=k(this.root,t);return !i&&!s?null:i?await i():s?Promise.resolve({value:s.props.props.value}):null}async render_previously_invisible_children(t){const i=k(this.root,t);i&&(!this.#n.has(i.id)&&!C(i,this.#n)||(V(i,this.#n,true),G(i,this.#t.api_url)));}}function V(e,t,i=false){if(e.props.shared_props.visible=t.has(e.id)?true:e.props.shared_props.visible,e.type==="tabs"){const s=e.props.props.selected??e.props.props.initial_tabs?.[0]?.id;e.children.forEach(r=>{r.type==="tabitem"&&(r.props.props.id===s||r.id===s)&&V(r,t,false);});}else e.type==="accordion"&&e.props.props.open===false&&!i||e.children.forEach(s=>{V(s,t,false);});}function C(e,t){for(const i of e.children)if(t.has(i.id)||C(i,t))return true;return false}function G(e,t){e.props.shared_props.visible&&!e.component&&(e.component=ds(e.type,e.component_class_id,t)),e.children.forEach(i=>G(i,t));}function et(e,t,i){return t?t.reduce((s,r)=>(s[r]=async(...n)=>(n.length===1&&(n=n[0]),await i.component_server(e,r,n)),s),{}):{}}function J(e){const t={},i={};for(const s in e)if(s==="id"||s==="autoscroll")i[s]=e[s];else if(u.includes(s)){const r=s;t[r]=e[s];}else i[s]=e[s];return {shared_props:t,props:i}}function it(e,t,i,s,r,n={}){const{shared_props:p,props:a}=J(t);p.server=et(e,t.server_fns,s);for(const l in n)if(u.includes(l)){const h=l;p[h]=n[l];}else a[l]=n[l];return p.client=s,p.id=e,p.interactive=_s(e,p.interactive,a.value,i),p.load_component=(l,h,c)=>ds(l,c||"",r,h),p.visible=p.visible===void 0?true:p.visible,p.loading_status={},{shared_props:p,props:a}}function Z(e,t){if(e.props.shared_props.visible&&!e.component){const i=ds(e.type,e.component_class_id,t),s={...e,component:i.component,children:[]};return e.children&&(s.children=e.children.map(r=>Z(r,t))),s}else return e}function st(e,t,i){return e.id==t&&(e.props.shared_props.visible=i),e}function H(e,t){t.delete(e.id),e.children&&e.children.forEach(i=>H(i,t));}function rt(e,t){return e.props.shared_props.visible!==true&&H(e,t),e}function z(e,t){return e.props.shared_props.visible===true&&(t.add(e.id),e.props.shared_props.visible=false),e.children.forEach(i=>{z(i,t);}),e}function nt(e,t,i){return e.type==="accordion"&&e.props.props.open===false&&(H(e,t),e.children&&e.children.forEach(s=>{z(s,i);})),e.type==="tabs"&&e.children.forEach(s=>{s.type==="tabitem"&&s.props.props.id!==(e.props.props.selected||e.props.props.initial_tabs[0].id)&&(H(s,t),z(s,i));}),e}function T(e,t){if(e.type==="tabs"&&e.id in t){const i=t[e.id].sort((s,r)=>s.order-r.order);e.props.props.initial_tabs=i;}else e.type==="tabitem"&&(e.props.props.component_id=e.id);return e}function K(e,t,i,s){if(i!==null&&e.type==="tabitem"){i in t||(t[i]=[]),"id"in e.props.props||(e.props.props.id=e.id);const r=e.props.props.i18n,n=e.props.shared_props.label;t[i].push({label:r?r(n):n,id:e.props.props.id,elem_id:e.props.shared_props.elem_id,visible:e.props.shared_props.visible,interactive:e.props.shared_props.interactive,scale:e.props.shared_props.scale||null,component_id:e.id}),e.props.props.order=s;}e.children&&e.children.forEach((r,n)=>{K(r,t,e.type==="tabs"?e.id:null,e.type==="tabs"?n:null);});}function W(e,t){function i(s){"children"in s&&s.children.length>0&&s.children?.forEach(r=>K(r,t,s.type==="tabs"?s.id:null,null));}return i(e)}function k(e,t){if(e.id===t)return e;if(e.children)for(const i of e.children){const s=k(i,t);if(s)return s}return null}function N(e,t){if(e.children)for(const i of e.children){if(i.id===t)return e;const s=N(i,t);if(s)return s}return null} + +export { ht as AppTree, ct as Embed }; +//# sourceMappingURL=index-CF7WUfN6.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/index-Cg-Pg6j3.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/index-Cg-Pg6j3.js new file mode 100644 index 0000000000000000000000000000000000000000..08e183882f8e2a1ed11156d05b5f750b73bba02f --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/index-Cg-Pg6j3.js @@ -0,0 +1,197 @@ +import { n as noop, s as safe_not_equal, a as subscribe_to_store, r as run_all } from './async-D55cHugf.js'; + +/** @import { Readable, StartStopNotifier, Subscriber, Unsubscriber, Updater, Writable } from '../public.js' */ +/** @import { Stores, StoresValues, SubscribeInvalidateTuple } from '../private.js' */ + +/** + * @type {Array | any>} + */ +const subscriber_queue = []; + +/** + * Creates a `Readable` store that allows reading by subscription. + * + * @template T + * @param {T} [value] initial value + * @param {StartStopNotifier} [start] + * @returns {Readable} + */ +function readable(value, start) { + return { + subscribe: writable(value, start).subscribe + }; +} + +/** + * Create a `Writable` store that allows both updating and reading by subscription. + * + * @template T + * @param {T} [value] initial value + * @param {StartStopNotifier} [start] + * @returns {Writable} + */ +function writable(value, start = noop) { + /** @type {Unsubscriber | null} */ + let stop = null; + + /** @type {Set>} */ + const subscribers = new Set(); + + /** + * @param {T} new_value + * @returns {void} + */ + function set(new_value) { + if (safe_not_equal(value, new_value)) { + value = new_value; + if (stop) { + // store is ready + const run_queue = !subscriber_queue.length; + for (const subscriber of subscribers) { + subscriber[1](); + subscriber_queue.push(subscriber, value); + } + if (run_queue) { + for (let i = 0; i < subscriber_queue.length; i += 2) { + subscriber_queue[i][0](subscriber_queue[i + 1]); + } + subscriber_queue.length = 0; + } + } + } + } + + /** + * @param {Updater} fn + * @returns {void} + */ + function update(fn) { + set(fn(/** @type {T} */ (value))); + } + + /** + * @param {Subscriber} run + * @param {() => void} [invalidate] + * @returns {Unsubscriber} + */ + function subscribe(run, invalidate = noop) { + /** @type {SubscribeInvalidateTuple} */ + const subscriber = [run, invalidate]; + subscribers.add(subscriber); + if (subscribers.size === 1) { + stop = start(set, update) || noop; + } + run(/** @type {T} */ (value)); + return () => { + subscribers.delete(subscriber); + if (subscribers.size === 0 && stop) { + stop(); + stop = null; + } + }; + } + return { set, update, subscribe }; +} + +/** + * Derived value store by synchronizing one or more readable stores and + * applying an aggregation function over its input values. + * + * @template {Stores} S + * @template T + * @overload + * @param {S} stores + * @param {(values: StoresValues, set: (value: T) => void, update: (fn: Updater) => void) => Unsubscriber | void} fn + * @param {T} [initial_value] + * @returns {Readable} + */ +/** + * Derived value store by synchronizing one or more readable stores and + * applying an aggregation function over its input values. + * + * @template {Stores} S + * @template T + * @overload + * @param {S} stores + * @param {(values: StoresValues) => T} fn + * @param {T} [initial_value] + * @returns {Readable} + */ +/** + * @template {Stores} S + * @template T + * @param {S} stores + * @param {Function} fn + * @param {T} [initial_value] + * @returns {Readable} + */ +function derived(stores, fn, initial_value) { + const single = !Array.isArray(stores); + /** @type {Array>} */ + const stores_array = single ? [stores] : stores; + if (!stores_array.every(Boolean)) { + throw new Error('derived() expects stores as input, got a falsy value'); + } + const auto = fn.length < 2; + return readable(initial_value, (set, update) => { + let started = false; + /** @type {T[]} */ + const values = []; + let pending = 0; + let cleanup = noop; + const sync = () => { + if (pending) { + return; + } + cleanup(); + const result = fn(single ? values[0] : values, set, update); + if (auto) { + set(result); + } else { + cleanup = typeof result === 'function' ? result : noop; + } + }; + const unsubscribers = stores_array.map((store, i) => + subscribe_to_store( + store, + (value) => { + values[i] = value; + pending &= ~(1 << i); + if (started) { + sync(); + } + }, + () => { + pending |= 1 << i; + } + ) + ); + started = true; + sync(); + return function stop() { + run_all(unsubscribers); + cleanup(); + // We need to set this to false because callbacks can still happen despite having unsubscribed: + // Callbacks might already be placed in the queue which doesn't know it should no longer + // invoke this derived store. + started = false; + }; + }); +} + +/** + * Get the current value from a store by subscribing and immediately unsubscribing. + * + * @template T + * @param {Readable} store + * @returns {T} + */ +function get(store) { + let value; + subscribe_to_store(store, (_) => (value = _))(); + // @ts-expect-error + return value; +} + +export { derived as d, get as g, readable as r, writable as w }; +//# sourceMappingURL=index-Cg-Pg6j3.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/index-server-CQz6EZl_.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/index-server-CQz6EZl_.js new file mode 100644 index 0000000000000000000000000000000000000000..9ce2b851d829abfcdcc05b4c8ec1bd310e3c43d9 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/index-server-CQz6EZl_.js @@ -0,0 +1,19 @@ +import { s as ssr_context } from './context-CBkBucIx.js'; +import { n as noop } from './async-D55cHugf.js'; + +/** @import { SSRContext } from '#server' */ +/** @import { Renderer } from './internal/server/renderer.js' */ + +/** @param {() => void} fn */ +function onDestroy(fn) { + /** @type {Renderer} */ (/** @type {SSRContext} */ (ssr_context).r).on_destroy(fn); +} + +function createEventDispatcher() { + return noop; +} + +async function tick() {} + +export { createEventDispatcher as c, onDestroy as o, tick as t }; +//# sourceMappingURL=index-server-CQz6EZl_.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/index-u8mz_F03.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/index-u8mz_F03.js new file mode 100644 index 0000000000000000000000000000000000000000..41c0e3f19952afbf25b86caab877c44f8434c607 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/index-u8mz_F03.js @@ -0,0 +1,2120 @@ +import { d as HYDRATION_START, b as HYDRATION_END, e as HYDRATION_START_ELSE, a6 as STALE_REACTION, n as noop, a7 as deferred, a3 as async_mode_flag, a8 as ELEMENT_PRESERVE_ATTRIBUTE_CASE, a9 as ELEMENT_IS_INPUT, aa as ELEMENT_IS_NAMESPACED, a as subscribe_to_store, ab as is_promise } from './async-D55cHugf.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; +import { b as set_ssr_context, s as ssr_context, p as push, c as pop } from './context-CBkBucIx.js'; + +const VOID_ELEMENT_NAMES = [ + 'area', + 'base', + 'br', + 'col', + 'command', + 'embed', + 'hr', + 'img', + 'input', + 'keygen', + 'link', + 'meta', + 'param', + 'source', + 'track', + 'wbr' +]; + +/** + * Returns `true` if `name` is of a void element + * @param {string} name + */ +function is_void(name) { + return VOID_ELEMENT_NAMES.includes(name) || name.toLowerCase() === '!doctype'; +} + +/** + * Attributes that are boolean, i.e. they are present or not present. + */ +const DOM_BOOLEAN_ATTRIBUTES = [ + 'allowfullscreen', + 'async', + 'autofocus', + 'autoplay', + 'checked', + 'controls', + 'default', + 'disabled', + 'formnovalidate', + 'indeterminate', + 'inert', + 'ismap', + 'loop', + 'multiple', + 'muted', + 'nomodule', + 'novalidate', + 'open', + 'playsinline', + 'readonly', + 'required', + 'reversed', + 'seamless', + 'selected', + 'webkitdirectory', + 'defer', + 'disablepictureinpicture', + 'disableremoteplayback' +]; + +/** + * Returns `true` if `name` is a boolean attribute + * @param {string} name + */ +function is_boolean_attribute(name) { + return DOM_BOOLEAN_ATTRIBUTES.includes(name); +} + +/** + * Subset of delegated events which should be passive by default. + * These two are already passive via browser defaults on window, document and body. + * But since + * - we're delegating them + * - they happen often + * - they apply to mobile which is generally less performant + * we're marking them as passive by default for other elements, too. + */ +const PASSIVE_EVENTS = ['touchstart', 'touchmove']; + +/** + * Returns `true` if `name` is a passive event + * @param {string} name + */ +function is_passive_event(name) { + return PASSIVE_EVENTS.includes(name); +} + +/** List of elements that require raw contents and should not have SSR comments put in them */ +const RAW_TEXT_ELEMENTS = /** @type {const} */ (['textarea', 'script', 'style', 'title']); + +/** @param {string} name */ +function is_raw_text_element(name) { + return RAW_TEXT_ELEMENTS.includes(/** @type {typeof RAW_TEXT_ELEMENTS[number]} */ (name)); +} + +function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t` should be rendered as `
    ` and _not_ + * `
    `, which is equivalent to `
    `. There + * may be other odd cases that need to be added to this list in future + * @type {Record>} + */ +const replacements = { + translate: new Map([ + [true, 'yes'], + [false, 'no'] + ]) +}; + +/** + * @template V + * @param {string} name + * @param {V} value + * @param {boolean} [is_boolean] + * @returns {string} + */ +function attr(name, value, is_boolean = false) { + // attribute hidden for values other than "until-found" behaves like a boolean attribute + if (name === 'hidden' && value !== 'until-found') { + is_boolean = true; + } + if (value == null || (!value && is_boolean)) return ''; + const normalized = (name in replacements && replacements[name].get(value)) || value; + const assignment = is_boolean ? '' : `="${escape_html(normalized, true)}"`; + return ` ${name}${assignment}`; +} + +/** + * Small wrapper around clsx to preserve Svelte's (weird) handling of falsy values. + * TODO Svelte 6 revisit this, and likely turn all falsy values into the empty string (what clsx also does) + * @param {any} value + */ +function clsx(value) { + if (typeof value === 'object') { + return clsx$1(value); + } else { + return value ?? ''; + } +} + +const whitespace = [...' \t\n\r\f\u00a0\u000b\ufeff']; + +/** + * @param {any} value + * @param {string | null} [hash] + * @param {Record} [directives] + * @returns {string | null} + */ +function to_class(value, hash, directives) { + var classname = value == null ? '' : '' + value; + + if (hash) { + classname = classname ? classname + ' ' + hash : hash; + } + + if (directives) { + for (var key in directives) { + if (directives[key]) { + classname = classname ? classname + ' ' + key : key; + } else if (classname.length) { + var len = key.length; + var a = 0; + + while ((a = classname.indexOf(key, a)) >= 0) { + var b = a + len; + + if ( + (a === 0 || whitespace.includes(classname[a - 1])) && + (b === classname.length || whitespace.includes(classname[b])) + ) { + classname = (a === 0 ? '' : classname.substring(0, a)) + classname.substring(b + 1); + } else { + a = b; + } + } + } + } + } + + return classname === '' ? null : classname; +} + +/** + * + * @param {Record} styles + * @param {boolean} important + */ +function append_styles(styles, important = false) { + var separator = important ? ' !important;' : ';'; + var css = ''; + + for (var key in styles) { + var value = styles[key]; + if (value != null && value !== '') { + css += ' ' + key + ': ' + value + separator; + } + } + + return css; +} + +/** + * @param {string} name + * @returns {string} + */ +function to_css_name(name) { + if (name[0] !== '-' || name[1] !== '-') { + return name.toLowerCase(); + } + return name; +} + +/** + * @param {any} value + * @param {Record | [Record, Record]} [styles] + * @returns {string | null} + */ +function to_style(value, styles) { + if (styles) { + var new_style = ''; + + /** @type {Record | undefined} */ + var normal_styles; + + /** @type {Record | undefined} */ + var important_styles; + + if (Array.isArray(styles)) { + normal_styles = styles[0]; + important_styles = styles[1]; + } else { + normal_styles = styles; + } + + if (value) { + value = String(value) + .replaceAll(/\s*\/\*.*?\*\/\s*/g, '') + .trim(); + + /** @type {boolean | '"' | "'"} */ + var in_str = false; + var in_apo = 0; + var in_comment = false; + + var reserved_names = []; + + if (normal_styles) { + reserved_names.push(...Object.keys(normal_styles).map(to_css_name)); + } + if (important_styles) { + reserved_names.push(...Object.keys(important_styles).map(to_css_name)); + } + + var start_index = 0; + var name_index = -1; + + const len = value.length; + for (var i = 0; i < len; i++) { + var c = value[i]; + + if (in_comment) { + if (c === '/' && value[i - 1] === '*') { + in_comment = false; + } + } else if (in_str) { + if (in_str === c) { + in_str = false; + } + } else if (c === '/' && value[i + 1] === '*') { + in_comment = true; + } else if (c === '"' || c === "'") { + in_str = c; + } else if (c === '(') { + in_apo++; + } else if (c === ')') { + in_apo--; + } + + if (!in_comment && in_str === false && in_apo === 0) { + if (c === ':' && name_index === -1) { + name_index = i; + } else if (c === ';' || i === len - 1) { + if (name_index !== -1) { + var name = to_css_name(value.substring(start_index, name_index).trim()); + + if (!reserved_names.includes(name)) { + if (c !== ';') { + i++; + } + + var property = value.substring(start_index, i).trim(); + new_style += ' ' + property + ';'; + } + } + + start_index = i + 1; + name_index = -1; + } + } + } + } + + if (normal_styles) { + new_style += append_styles(normal_styles); + } + + if (important_styles) { + new_style += append_styles(important_styles, true); + } + + new_style = new_style.trim(); + return new_style === '' ? null : new_style; + } + + return value == null ? null : String(value); +} + +const BLOCK_OPEN = ``; +const BLOCK_OPEN_ELSE = ``; +const BLOCK_CLOSE = ``; +const EMPTY_COMMENT = ``; + +/** @type {AbortController | null} */ +let controller = null; + +function abort() { + controller?.abort(STALE_REACTION); + controller = null; +} + +/* This file is generated by scripts/process-messages/index.js. Do not edit! */ + + +/** + * The node API `AsyncLocalStorage` is not available, but is required to use async server rendering. + * @returns {never} + */ +function async_local_storage_unavailable() { + const error = new Error(`async_local_storage_unavailable\nThe node API \`AsyncLocalStorage\` is not available, but is required to use async server rendering.\nhttps://svelte.dev/e/async_local_storage_unavailable`); + + error.name = 'Svelte error'; + + throw error; +} + +/** + * Encountered asynchronous work while rendering synchronously. + * @returns {never} + */ +function await_invalid() { + const error = new Error(`await_invalid\nEncountered asynchronous work while rendering synchronously.\nhttps://svelte.dev/e/await_invalid`); + + error.name = 'Svelte error'; + + throw error; +} + +/** + * The `html` property of server render results has been deprecated. Use `body` instead. + * @returns {never} + */ +function html_deprecated() { + const error = new Error(`html_deprecated\nThe \`html\` property of server render results has been deprecated. Use \`body\` instead.\nhttps://svelte.dev/e/html_deprecated`); + + error.name = 'Svelte error'; + + throw error; +} + +/** + * `csp.nonce` was set while `csp.hash` was `true`. These options cannot be used simultaneously. + * @returns {never} + */ +function invalid_csp() { + const error = new Error(`invalid_csp\n\`csp.nonce\` was set while \`csp.hash\` was \`true\`. These options cannot be used simultaneously.\nhttps://svelte.dev/e/invalid_csp`); + + error.name = 'Svelte error'; + + throw error; +} + +/** + * Could not resolve `render` context. + * @returns {never} + */ +function server_context_required() { + const error = new Error(`server_context_required\nCould not resolve \`render\` context.\nhttps://svelte.dev/e/server_context_required`); + + error.name = 'Svelte error'; + + throw error; +} + +/* This file is generated by scripts/process-messages/index.js. Do not edit! */ + + +/** + * A `hydratable` value with key `%key%` was created, but at least part of it was not used during the render. + * + * The `hydratable` was initialized in: + * %stack% + * @param {string} key + * @param {string} stack + */ +function unresolved_hydratable(key, stack) { + { + console.warn(`https://svelte.dev/e/unresolved_hydratable`); + } +} + +// @ts-ignore -- we don't include node types in the production build +/** @import { AsyncLocalStorage } from 'node:async_hooks' */ +/** @import { RenderContext } from '#server' */ + + +/** @type {Promise | null} */ +let current_render = null; + +/** @type {RenderContext | null} */ +let context = null; + +/** @returns {RenderContext} */ +function get_render_context() { + const store = context ?? als?.getStore(); + + if (!store) { + server_context_required(); + } + + return store; +} + +/** + * @template T + * @param {() => Promise} fn + * @returns {Promise} + */ +async function with_render_context(fn) { + context = { + hydratable: { + lookup: new Map(), + comparisons: [], + unresolved_promises: new Map() + } + }; + + if (in_webcontainer()) { + const { promise, resolve } = deferred(); + const previous_render = current_render; + current_render = promise; + await previous_render; + return fn().finally(resolve); + } + + try { + if (als === null) { + async_local_storage_unavailable(); + } + return als.run(context, fn); + } finally { + context = null; + } +} + +/** @type {AsyncLocalStorage | null} */ +let als = null; +/** @type {Promise | null} */ +let als_import = null; + +/** + * + * @returns {Promise} + */ +function init_render_context() { + // It's important the right side of this assignment can run a maximum of one time + // otherwise it's possible for a very, very well-timed race condition to assign to `als` + // at the beginning of a render, and then another render to assign to it again, which causes + // the first render's second half to use a new instance of `als` which doesn't have its + // context anymore. + // @ts-ignore -- we don't include node types in the production build + als_import ??= import('node:async_hooks') + .then((hooks) => { + als = new hooks.AsyncLocalStorage(); + }) + .then(noop, noop); + return als_import; +} + +// this has to be a function because rollup won't treeshake it if it's a constant +function in_webcontainer() { + // @ts-ignore -- this will fail when we run typecheck because we exclude node types + // eslint-disable-next-line n/prefer-global/process + return !!globalThis.process?.versions?.webcontainer; +} + +let text_encoder; +// TODO - remove this and use global `crypto` when we drop Node 18 +let crypto; + +/** @param {string} data */ +async function sha256(data) { + text_encoder ??= new TextEncoder(); + + // @ts-expect-error + crypto ??= globalThis.crypto?.subtle?.digest + ? globalThis.crypto + : // @ts-ignore - we don't install node types in the prod build + (await import('node:crypto')).webcrypto; + + const hash_buffer = await crypto.subtle.digest('SHA-256', text_encoder.encode(data)); + + return base64_encode(hash_buffer); +} + +/** + * @param {Uint8Array} bytes + * @returns {string} + */ +function base64_encode(bytes) { + // Using `Buffer` is faster than iterating + // @ts-ignore + if (globalThis.Buffer) { + // @ts-ignore + return globalThis.Buffer.from(bytes).toString('base64'); + } + + let binary = ''; + + for (let i = 0; i < bytes.length; i++) { + binary += String.fromCharCode(bytes[i]); + } + + return btoa(binary); +} + +/** @type {Record} */ +const escaped = { + '<': '\\u003C', + '\\': '\\\\', + '\b': '\\b', + '\f': '\\f', + '\n': '\\n', + '\r': '\\r', + '\t': '\\t', + '\u2028': '\\u2028', + '\u2029': '\\u2029' +}; + +class DevalueError extends Error { + /** + * @param {string} message + * @param {string[]} keys + * @param {any} [value] - The value that failed to be serialized + * @param {any} [root] - The root value being serialized + */ + constructor(message, keys, value, root) { + super(message); + this.name = 'DevalueError'; + this.path = keys.join(''); + this.value = value; + this.root = root; + } +} + +/** @param {any} thing */ +function is_primitive(thing) { + return Object(thing) !== thing; +} + +const object_proto_names = /* @__PURE__ */ Object.getOwnPropertyNames( + Object.prototype +) + .sort() + .join('\0'); + +/** @param {any} thing */ +function is_plain_object(thing) { + const proto = Object.getPrototypeOf(thing); + + return ( + proto === Object.prototype || + proto === null || + Object.getPrototypeOf(proto) === null || + Object.getOwnPropertyNames(proto).sort().join('\0') === object_proto_names + ); +} + +/** @param {any} thing */ +function get_type(thing) { + return Object.prototype.toString.call(thing).slice(8, -1); +} + +/** @param {string} char */ +function get_escaped_char(char) { + switch (char) { + case '"': + return '\\"'; + case '<': + return '\\u003C'; + case '\\': + return '\\\\'; + case '\n': + return '\\n'; + case '\r': + return '\\r'; + case '\t': + return '\\t'; + case '\b': + return '\\b'; + case '\f': + return '\\f'; + case '\u2028': + return '\\u2028'; + case '\u2029': + return '\\u2029'; + default: + return char < ' ' + ? `\\u${char.charCodeAt(0).toString(16).padStart(4, '0')}` + : ''; + } +} + +/** @param {string} str */ +function stringify_string(str) { + let result = ''; + let last_pos = 0; + const len = str.length; + + for (let i = 0; i < len; i += 1) { + const char = str[i]; + const replacement = get_escaped_char(char); + if (replacement) { + result += str.slice(last_pos, i) + replacement; + last_pos = i + 1; + } + } + + return `"${last_pos === 0 ? str : result + str.slice(last_pos)}"`; +} + +/** @param {Record} object */ +function enumerable_symbols(object) { + return Object.getOwnPropertySymbols(object).filter( + (symbol) => Object.getOwnPropertyDescriptor(object, symbol).enumerable + ); +} + +const is_identifier = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/; + +/** @param {string} key */ +function stringify_key(key) { + return is_identifier.test(key) ? '.' + key : '[' + JSON.stringify(key) + ']'; +} + +const chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_$'; +const unsafe_chars = /[<\b\f\n\r\t\0\u2028\u2029]/g; +const reserved = + /^(?:do|if|in|for|int|let|new|try|var|byte|case|char|else|enum|goto|long|this|void|with|await|break|catch|class|const|final|float|short|super|throw|while|yield|delete|double|export|import|native|return|switch|throws|typeof|boolean|default|extends|finally|package|private|abstract|continue|debugger|function|volatile|interface|protected|transient|implements|instanceof|synchronized)$/; + +/** + * Turn a value into the JavaScript that creates an equivalent value + * @param {any} value + * @param {(value: any, uneval: (value: any) => string) => string | void} [replacer] + */ +function uneval(value, replacer) { + const counts = new Map(); + + /** @type {string[]} */ + const keys = []; + + const custom = new Map(); + + /** @param {any} thing */ + function walk(thing) { + if (!is_primitive(thing)) { + if (counts.has(thing)) { + counts.set(thing, counts.get(thing) + 1); + return; + } + + counts.set(thing, 1); + + if (typeof thing === 'function') { + throw new DevalueError(`Cannot stringify a function`, keys, thing, value); + } + + const type = get_type(thing); + + switch (type) { + case 'Number': + case 'BigInt': + case 'String': + case 'Boolean': + case 'Date': + case 'RegExp': + case 'URL': + case 'URLSearchParams': + return; + + case 'Array': + /** @type {any[]} */ (thing).forEach((value, i) => { + keys.push(`[${i}]`); + walk(value); + keys.pop(); + }); + break; + + case 'Set': + Array.from(thing).forEach(walk); + break; + + case 'Map': + for (const [key, value] of thing) { + keys.push( + `.get(${is_primitive(key) ? stringify_primitive(key) : '...'})` + ); + walk(value); + keys.pop(); + } + break; + + case 'Int8Array': + case 'Uint8Array': + case 'Uint8ClampedArray': + case 'Int16Array': + case 'Uint16Array': + case 'Int32Array': + case 'Uint32Array': + case 'Float32Array': + case 'Float64Array': + case 'BigInt64Array': + case 'BigUint64Array': + walk(thing.buffer); + return; + + case 'ArrayBuffer': + return; + + case 'Temporal.Duration': + case 'Temporal.Instant': + case 'Temporal.PlainDate': + case 'Temporal.PlainTime': + case 'Temporal.PlainDateTime': + case 'Temporal.PlainMonthDay': + case 'Temporal.PlainYearMonth': + case 'Temporal.ZonedDateTime': + return; + + default: + if (!is_plain_object(thing)) { + throw new DevalueError( + `Cannot stringify arbitrary non-POJOs`, + keys, + thing, + value + ); + } + + if (enumerable_symbols(thing).length > 0) { + throw new DevalueError( + `Cannot stringify POJOs with symbolic keys`, + keys, + thing, + value + ); + } + + for (const key in thing) { + keys.push(stringify_key(key)); + walk(thing[key]); + keys.pop(); + } + } + } + } + + walk(value); + + const names = new Map(); + + Array.from(counts) + .filter((entry) => entry[1] > 1) + .sort((a, b) => b[1] - a[1]) + .forEach((entry, i) => { + names.set(entry[0], get_name(i)); + }); + + /** + * @param {any} thing + * @returns {string} + */ + function stringify(thing) { + if (names.has(thing)) { + return names.get(thing); + } + + if (is_primitive(thing)) { + return stringify_primitive(thing); + } + + if (custom.has(thing)) { + return custom.get(thing); + } + + const type = get_type(thing); + + switch (type) { + case 'Number': + case 'String': + case 'Boolean': + return `Object(${stringify(thing.valueOf())})`; + + case 'RegExp': + return `new RegExp(${stringify_string(thing.source)}, "${ + thing.flags + }")`; + + case 'Date': + return `new Date(${thing.getTime()})`; + + case 'URL': + return `new URL(${stringify_string(thing.toString())})`; + + case 'URLSearchParams': + return `new URLSearchParams(${stringify_string(thing.toString())})`; + + case 'Array': + const members = /** @type {any[]} */ (thing).map((v, i) => + i in thing ? stringify(v) : '' + ); + const tail = thing.length === 0 || thing.length - 1 in thing ? '' : ','; + return `[${members.join(',')}${tail}]`; + + case 'Set': + case 'Map': + return `new ${type}([${Array.from(thing).map(stringify).join(',')}])`; + + case 'Int8Array': + case 'Uint8Array': + case 'Uint8ClampedArray': + case 'Int16Array': + case 'Uint16Array': + case 'Int32Array': + case 'Uint32Array': + case 'Float32Array': + case 'Float64Array': + case 'BigInt64Array': + case 'BigUint64Array': { + let str = `new ${type}`; + + if (counts.get(thing.buffer) === 1) { + const array = new thing.constructor(thing.buffer); + str += `([${array}])`; + } else { + str += `([${stringify(thing.buffer)}])`; + } + + const a = thing.byteOffset; + const b = a + thing.byteLength; + + // handle subarrays + if (a > 0 || b !== thing.buffer.byteLength) { + const m = +/(\d+)/.exec(type)[1] / 8; + str += `.subarray(${a / m},${b / m})`; + } + + return str; + } + + case 'ArrayBuffer': { + const ui8 = new Uint8Array(thing); + return `new Uint8Array([${ui8.toString()}]).buffer`; + } + + case 'Temporal.Duration': + case 'Temporal.Instant': + case 'Temporal.PlainDate': + case 'Temporal.PlainTime': + case 'Temporal.PlainDateTime': + case 'Temporal.PlainMonthDay': + case 'Temporal.PlainYearMonth': + case 'Temporal.ZonedDateTime': + return `${type}.from(${stringify_string(thing.toString())})`; + + default: + const keys = Object.keys(thing); + const obj = keys + .map((key) => `${safe_key(key)}:${stringify(thing[key])}`) + .join(','); + const proto = Object.getPrototypeOf(thing); + if (proto === null) { + return keys.length > 0 + ? `{${obj},__proto__:null}` + : `{__proto__:null}`; + } + + return `{${obj}}`; + } + } + + const str = stringify(value); + + if (names.size) { + /** @type {string[]} */ + const params = []; + + /** @type {string[]} */ + const statements = []; + + /** @type {string[]} */ + const values = []; + + names.forEach((name, thing) => { + params.push(name); + + if (custom.has(thing)) { + values.push(/** @type {string} */ (custom.get(thing))); + return; + } + + if (is_primitive(thing)) { + values.push(stringify_primitive(thing)); + return; + } + + const type = get_type(thing); + + switch (type) { + case 'Number': + case 'String': + case 'Boolean': + values.push(`Object(${stringify(thing.valueOf())})`); + break; + + case 'RegExp': + values.push(thing.toString()); + break; + + case 'Date': + values.push(`new Date(${thing.getTime()})`); + break; + + case 'Array': + values.push(`Array(${thing.length})`); + /** @type {any[]} */ (thing).forEach((v, i) => { + statements.push(`${name}[${i}]=${stringify(v)}`); + }); + break; + + case 'Set': + values.push(`new Set`); + statements.push( + `${name}.${Array.from(thing) + .map((v) => `add(${stringify(v)})`) + .join('.')}` + ); + break; + + case 'Map': + values.push(`new Map`); + statements.push( + `${name}.${Array.from(thing) + .map(([k, v]) => `set(${stringify(k)}, ${stringify(v)})`) + .join('.')}` + ); + break; + + case 'ArrayBuffer': + values.push( + `new Uint8Array([${new Uint8Array(thing).join(',')}]).buffer` + ); + break; + + default: + values.push( + Object.getPrototypeOf(thing) === null ? 'Object.create(null)' : '{}' + ); + Object.keys(thing).forEach((key) => { + statements.push( + `${name}${safe_prop(key)}=${stringify(thing[key])}` + ); + }); + } + }); + + statements.push(`return ${str}`); + + return `(function(${params.join(',')}){${statements.join( + ';' + )}}(${values.join(',')}))`; + } else { + return str; + } +} + +/** @param {number} num */ +function get_name(num) { + let name = ''; + + do { + name = chars[num % chars.length] + name; + num = ~~(num / chars.length) - 1; + } while (num >= 0); + + return reserved.test(name) ? `${name}0` : name; +} + +/** @param {string} c */ +function escape_unsafe_char(c) { + return escaped[c] || c; +} + +/** @param {string} str */ +function escape_unsafe_chars(str) { + return str.replace(unsafe_chars, escape_unsafe_char); +} + +/** @param {string} key */ +function safe_key(key) { + return /^[_$a-zA-Z][_$a-zA-Z0-9]*$/.test(key) + ? key + : escape_unsafe_chars(JSON.stringify(key)); +} + +/** @param {string} key */ +function safe_prop(key) { + return /^[_$a-zA-Z][_$a-zA-Z0-9]*$/.test(key) + ? `.${key}` + : `[${escape_unsafe_chars(JSON.stringify(key))}]`; +} + +/** @param {any} thing */ +function stringify_primitive(thing) { + if (typeof thing === 'string') return stringify_string(thing); + if (thing === void 0) return 'void 0'; + if (thing === 0 && 1 / thing < 0) return '-0'; + const str = String(thing); + if (typeof thing === 'number') return str.replace(/^(-)?0\./, '$1.'); + if (typeof thing === 'bigint') return thing + 'n'; + return str; +} + +/** @import { Component } from 'svelte' */ +/** @import { Csp, HydratableContext, RenderOutput, SSRContext, SyncRenderOutput, Sha256Source } from './types.js' */ +/** @import { MaybePromise } from '#shared' */ + +/** @typedef {'head' | 'body'} RendererType */ +/** @typedef {{ [key in RendererType]: string }} AccumulatedContent */ + +/** + * @typedef {string | Renderer} RendererItem + */ + +/** + * Renderers are basically a tree of `string | Renderer`s, where each `Renderer` in the tree represents + * work that may or may not have completed. A renderer can be {@link collect}ed to aggregate the + * content from itself and all of its children, but this will throw if any of the children are + * performing asynchronous work. To asynchronously collect a renderer, just `await` it. + * + * The `string` values within a renderer are always associated with the {@link type} of that renderer. To switch types, + * call {@link child} with a different `type` argument. + */ +class Renderer { + /** + * The contents of the renderer. + * @type {RendererItem[]} + */ + #out = []; + + /** + * Any `onDestroy` callbacks registered during execution of this renderer. + * @type {(() => void)[] | undefined} + */ + #on_destroy = undefined; + + /** + * Whether this renderer is a component body. + * @type {boolean} + */ + #is_component_body = false; + + /** + * The type of string content that this renderer is accumulating. + * @type {RendererType} + */ + type; + + /** @type {Renderer | undefined} */ + #parent; + + /** + * Asynchronous work associated with this renderer + * @type {Promise | undefined} + */ + promise = undefined; + + /** + * State which is associated with the content tree as a whole. + * It will be re-exposed, uncopied, on all children. + * @type {SSRState} + * @readonly + */ + global; + + /** + * State that is local to the branch it is declared in. + * It will be shallow-copied to all children. + * + * @type {{ select_value: string | undefined }} + */ + local; + + /** + * @param {SSRState} global + * @param {Renderer | undefined} [parent] + */ + constructor(global, parent) { + this.#parent = parent; + + this.global = global; + this.local = parent ? { ...parent.local } : { select_value: undefined }; + this.type = parent ? parent.type : 'body'; + } + + /** + * @param {(renderer: Renderer) => void} fn + */ + head(fn) { + const head = new Renderer(this.global, this); + head.type = 'head'; + + this.#out.push(head); + head.child(fn); + } + + /** + * @param {Array>} blockers + * @param {(renderer: Renderer) => void} fn + */ + async_block(blockers, fn) { + this.#out.push(BLOCK_OPEN); + this.async(blockers, fn); + this.#out.push(BLOCK_CLOSE); + } + + /** + * @param {Array>} blockers + * @param {(renderer: Renderer) => void} fn + */ + async(blockers, fn) { + let callback = fn; + + if (blockers.length > 0) { + const context = ssr_context; + + callback = (renderer) => { + return Promise.all(blockers).then(() => { + const previous_context = ssr_context; + + try { + set_ssr_context(context); + return fn(renderer); + } finally { + set_ssr_context(previous_context); + } + }); + }; + } + + this.child(callback); + } + + /** + * @param {Array<() => void>} thunks + */ + run(thunks) { + const context = ssr_context; + + let promise = Promise.resolve(thunks[0]()); + const promises = [promise]; + + for (const fn of thunks.slice(1)) { + promise = promise.then(() => { + const previous_context = ssr_context; + set_ssr_context(context); + + try { + return fn(); + } finally { + set_ssr_context(previous_context); + } + }); + + promises.push(promise); + } + + return promises; + } + + /** + * Create a child renderer. The child renderer inherits the state from the parent, + * but has its own content. + * @param {(renderer: Renderer) => MaybePromise} fn + */ + child(fn) { + const child = new Renderer(this.global, this); + this.#out.push(child); + + const parent = ssr_context; + + set_ssr_context({ + ...ssr_context, + p: parent, + c: null, + r: child + }); + + const result = fn(child); + + set_ssr_context(parent); + + if (result instanceof Promise) { + if (child.global.mode === 'sync') { + await_invalid(); + } + // just to avoid unhandled promise rejections -- we'll end up throwing in `collect_async` if something fails + result.catch(() => {}); + child.promise = result; + } + + return child; + } + + /** + * Create a component renderer. The component renderer inherits the state from the parent, + * but has its own content. It is treated as an ordering boundary for ondestroy callbacks. + * @param {(renderer: Renderer) => MaybePromise} fn + * @param {Function} [component_fn] + * @returns {void} + */ + component(fn, component_fn) { + push(); + const child = this.child(fn); + child.#is_component_body = true; + pop(); + } + + /** + * @param {Record} attrs + * @param {(renderer: Renderer) => void} fn + * @param {string | undefined} [css_hash] + * @param {Record | undefined} [classes] + * @param {Record | undefined} [styles] + * @param {number | undefined} [flags] + * @param {boolean | undefined} [is_rich] + * @returns {void} + */ + select(attrs, fn, css_hash, classes, styles, flags, is_rich) { + const { value, ...select_attrs } = attrs; + + this.push(``); + this.child((renderer) => { + renderer.local.select_value = value; + fn(renderer); + }); + this.push(`${is_rich ? '' : ''}`); + } + + /** + * @param {Record} attrs + * @param {string | number | boolean | ((renderer: Renderer) => void)} body + * @param {string | undefined} [css_hash] + * @param {Record | undefined} [classes] + * @param {Record | undefined} [styles] + * @param {number | undefined} [flags] + * @param {boolean | undefined} [is_rich] + */ + option(attrs, body, css_hash, classes, styles, flags, is_rich) { + this.#out.push(` { + if ('value' in attrs) { + value = attrs.value; + } + + if (value === this.local.select_value) { + renderer.#out.push(' selected'); + } + + renderer.#out.push(`>${body}${is_rich ? '' : ''}`); + + // super edge case, but may as well handle it + if (head) { + renderer.head((child) => child.push(head)); + } + }; + + if (typeof body === 'function') { + this.child((renderer) => { + const r = new Renderer(this.global, this); + body(r); + + if (this.global.mode === 'async') { + return r.#collect_content_async().then((content) => { + close(renderer, content.body.replaceAll('', ''), content); + }); + } else { + const content = r.#collect_content(); + close(renderer, content.body.replaceAll('', ''), content); + } + }); + } else { + close(this, body, { body }); + } + } + + /** + * @param {(renderer: Renderer) => void} fn + */ + title(fn) { + const path = this.get_path(); + + /** @param {string} head */ + const close = (head) => { + this.global.set_title(head, path); + }; + + this.child((renderer) => { + const r = new Renderer(renderer.global, renderer); + fn(r); + + if (renderer.global.mode === 'async') { + return r.#collect_content_async().then((content) => { + close(content.head); + }); + } else { + const content = r.#collect_content(); + close(content.head); + } + }); + } + + /** + * @param {string | (() => Promise)} content + */ + push(content) { + if (typeof content === 'function') { + this.child(async (renderer) => renderer.push(await content())); + } else { + this.#out.push(content); + } + } + + /** + * @param {() => void} fn + */ + on_destroy(fn) { + (this.#on_destroy ??= []).push(fn); + } + + /** + * @returns {number[]} + */ + get_path() { + return this.#parent ? [...this.#parent.get_path(), this.#parent.#out.indexOf(this)] : []; + } + + /** + * @deprecated this is needed for legacy component bindings + */ + copy() { + const copy = new Renderer(this.global, this.#parent); + copy.#out = this.#out.map((item) => (item instanceof Renderer ? item.copy() : item)); + copy.promise = this.promise; + return copy; + } + + /** + * @param {Renderer} other + * @deprecated this is needed for legacy component bindings + */ + subsume(other) { + if (this.global.mode !== other.global.mode) { + throw new Error( + "invariant: A renderer cannot switch modes. If you're seeing this, there's a compiler bug. File an issue!" + ); + } + + this.local = other.local; + this.#out = other.#out.map((item) => { + if (item instanceof Renderer) { + item.subsume(item); + } + return item; + }); + this.promise = other.promise; + this.type = other.type; + } + + get length() { + return this.#out.length; + } + + /** + * Only available on the server and when compiling with the `server` option. + * Takes a component and returns an object with `body` and `head` properties on it, which you can use to populate the HTML when server-rendering your app. + * @template {Record} Props + * @param {Component} component + * @param {{ props?: Omit; context?: Map; idPrefix?: string; csp?: Csp }} [options] + * @returns {RenderOutput} + */ + static render(component, options = {}) { + /** @type {AccumulatedContent | undefined} */ + let sync; + /** @type {Promise | undefined} */ + let async; + + const result = /** @type {RenderOutput} */ ({}); + // making these properties non-enumerable so that console.logging + // doesn't trigger a sync render + Object.defineProperties(result, { + html: { + get: () => { + return (sync ??= Renderer.#render(component, options)).body; + } + }, + head: { + get: () => { + return (sync ??= Renderer.#render(component, options)).head; + } + }, + body: { + get: () => { + return (sync ??= Renderer.#render(component, options)).body; + } + }, + hashes: { + value: { + script: '' + } + }, + then: { + value: + /** + * this is not type-safe, but honestly it's the best I can do right now, and it's a straightforward function. + * + * @template TResult1 + * @template [TResult2=never] + * @param { (value: SyncRenderOutput) => TResult1 } onfulfilled + * @param { (reason: unknown) => TResult2 } onrejected + */ + (onfulfilled, onrejected) => { + if (!async_mode_flag) { + const result = (sync ??= Renderer.#render(component, options)); + const user_result = onfulfilled({ + head: result.head, + body: result.body, + html: result.body, + hashes: { script: [] } + }); + return Promise.resolve(user_result); + } + async ??= init_render_context().then(() => + with_render_context(() => Renderer.#render_async(component, options)) + ); + return async.then((result) => { + Object.defineProperty(result, 'html', { + // eslint-disable-next-line getter-return + get: () => { + html_deprecated(); + } + }); + return onfulfilled(/** @type {SyncRenderOutput} */ (result)); + }, onrejected); + } + } + }); + + return result; + } + + /** + * Collect all of the `onDestroy` callbacks registered during rendering. In an async context, this is only safe to call + * after awaiting `collect_async`. + * + * Child renderers are "porous" and don't affect execution order, but component body renderers + * create ordering boundaries. Within a renderer, callbacks run in order until hitting a component boundary. + * @returns {Iterable<() => void>} + */ + *#collect_on_destroy() { + for (const component of this.#traverse_components()) { + yield* component.#collect_ondestroy(); + } + } + + /** + * Performs a depth-first search of renderers, yielding the deepest components first, then additional components as we backtrack up the tree. + * @returns {Iterable} + */ + *#traverse_components() { + for (const child of this.#out) { + if (typeof child !== 'string') { + yield* child.#traverse_components(); + } + } + if (this.#is_component_body) { + yield this; + } + } + + /** + * @returns {Iterable<() => void>} + */ + *#collect_ondestroy() { + if (this.#on_destroy) { + for (const fn of this.#on_destroy) { + yield fn; + } + } + for (const child of this.#out) { + if (child instanceof Renderer && !child.#is_component_body) { + yield* child.#collect_ondestroy(); + } + } + } + + /** + * Render a component. Throws if any of the children are performing asynchronous work. + * + * @template {Record} Props + * @param {Component} component + * @param {{ props?: Omit; context?: Map; idPrefix?: string }} options + * @returns {AccumulatedContent} + */ + static #render(component, options) { + var previous_context = ssr_context; + try { + const renderer = Renderer.#open_render('sync', component, options); + + const content = renderer.#collect_content(); + return Renderer.#close_render(content, renderer); + } finally { + abort(); + set_ssr_context(previous_context); + } + } + + /** + * Render a component. + * + * @template {Record} Props + * @param {Component} component + * @param {{ props?: Omit; context?: Map; idPrefix?: string; csp?: Csp }} options + * @returns {Promise} + */ + static async #render_async(component, options) { + const previous_context = ssr_context; + + try { + const renderer = Renderer.#open_render('async', component, options); + const content = await renderer.#collect_content_async(); + const hydratables = await renderer.#collect_hydratables(); + if (hydratables !== null) { + content.head = hydratables + content.head; + } + return Renderer.#close_render(content, renderer); + } finally { + set_ssr_context(previous_context); + abort(); + } + } + + /** + * Collect all of the code from the `out` array and return it as a string, or a promise resolving to a string. + * @param {AccumulatedContent} content + * @returns {AccumulatedContent} + */ + #collect_content(content = { head: '', body: '' }) { + for (const item of this.#out) { + if (typeof item === 'string') { + content[this.type] += item; + } else if (item instanceof Renderer) { + item.#collect_content(content); + } + } + + return content; + } + + /** + * Collect all of the code from the `out` array and return it as a string. + * @param {AccumulatedContent} content + * @returns {Promise} + */ + async #collect_content_async(content = { head: '', body: '' }) { + await this.promise; + + // no danger to sequentially awaiting stuff in here; all of the work is already kicked off + for (const item of this.#out) { + if (typeof item === 'string') { + content[this.type] += item; + } else if (item instanceof Renderer) { + await item.#collect_content_async(content); + } + } + + return content; + } + + async #collect_hydratables() { + const ctx = get_render_context().hydratable; + + for (const [_, key] of ctx.unresolved_promises) { + // this is a problem -- it means we've finished the render but we're still waiting on a promise to resolve so we can + // serialize it, so we're blocking the response on useless content. + unresolved_hydratable(key, ctx.lookup.get(key)?.stack ?? ''); + } + + for (const comparison of ctx.comparisons) { + // these reject if there's a mismatch + await comparison; + } + + return await this.#hydratable_block(ctx); + } + + /** + * @template {Record} Props + * @param {'sync' | 'async'} mode + * @param {import('svelte').Component} component + * @param {{ props?: Omit; context?: Map; idPrefix?: string; csp?: Csp }} options + * @returns {Renderer} + */ + static #open_render(mode, component, options) { + const renderer = new Renderer( + new SSRState(mode, options.idPrefix ? options.idPrefix + '-' : '', options.csp) + ); + + renderer.push(BLOCK_OPEN); + + if (options.context) { + push(); + /** @type {SSRContext} */ (ssr_context).c = options.context; + /** @type {SSRContext} */ (ssr_context).r = renderer; + } + + // @ts-expect-error + component(renderer, options.props ?? {}); + + if (options.context) { + pop(); + } + + renderer.push(BLOCK_CLOSE); + + return renderer; + } + + /** + * @param {AccumulatedContent} content + * @param {Renderer} renderer + * @returns {AccumulatedContent & { hashes: { script: Sha256Source[] } }} + */ + static #close_render(content, renderer) { + for (const cleanup of renderer.#collect_on_destroy()) { + cleanup(); + } + + let head = content.head + renderer.global.get_title(); + let body = content.body; + + for (const { hash, code } of renderer.global.css) { + head += ``; + } + + return { + head, + body, + hashes: { + script: renderer.global.csp.script_hashes + } + }; + } + + /** + * @param {HydratableContext} ctx + */ + async #hydratable_block(ctx) { + if (ctx.lookup.size === 0) { + return null; + } + + let entries = []; + let has_promises = false; + + for (const [k, v] of ctx.lookup) { + if (v.promises) { + has_promises = true; + for (const p of v.promises) await p; + } + + entries.push(`[${uneval(k)},${v.serialized}]`); + } + + let prelude = `const h = (window.__svelte ??= {}).h ??= new Map();`; + + if (has_promises) { + prelude = `const r = (v) => Promise.resolve(v); + ${prelude}`; + } + + const body = ` + { + ${prelude} + + for (const [k, v] of [ + ${entries.join(',\n\t\t\t\t\t')} + ]) { + h.set(k, v); + } + } + `; + + let csp_attr = ''; + if (this.global.csp.nonce) { + csp_attr = ` nonce="${this.global.csp.nonce}"`; + } else if (this.global.csp.hash) { + // note to future selves: this doesn't need to be optimized with a Map + // because the it's impossible for identical data to occur multiple times in a single render + // (this would require the same hydratable key:value pair to be serialized multiple times) + const hash = await sha256(body); + this.global.csp.script_hashes.push(`sha256-${hash}`); + } + + return `\n\t\t${body}`; + } +} + +class SSRState { + /** @readonly @type {Csp & { script_hashes: Sha256Source[] }} */ + csp; + + /** @readonly @type {'sync' | 'async'} */ + mode; + + /** @readonly @type {() => string} */ + uid; + + /** @readonly @type {Set<{ hash: string; code: string }>} */ + css = new Set(); + + /** @type {{ path: number[], value: string }} */ + #title = { path: [], value: '' }; + + /** + * @param {'sync' | 'async'} mode + * @param {string} id_prefix + * @param {Csp} csp + */ + constructor(mode, id_prefix = '', csp = { hash: false }) { + this.mode = mode; + this.csp = { ...csp, script_hashes: [] }; + + let uid = 1; + this.uid = () => `${id_prefix}s${uid++}`; + } + + get_title() { + return this.#title.value; + } + + /** + * Performs a depth-first (lexicographic) comparison using the path. Rejects sets + * from earlier than or equal to the current value. + * @param {string} value + * @param {number[]} path + */ + set_title(value, path) { + const current = this.#title.path; + + let i = 0; + let l = Math.min(path.length, current.length); + + // skip identical prefixes - [1, 2, 3, ...] === [1, 2, 3, ...] + while (i < l && path[i] === current[i]) i += 1; + + if (path[i] === undefined) return; + + // replace title if + // - incoming path is longer - [7, 8, 9] > [7, 8] + // - incoming path is later - [7, 8, 9] > [7, 8, 8] + if (current[i] === undefined || path[i] > current[i]) { + this.#title.path = path; + this.#title.value = value; + } + } +} + +/** @import { ComponentType, SvelteComponent, Component } from 'svelte' */ +/** @import { Csp, RenderOutput } from '#server' */ +/** @import { Store } from '#shared' */ + +// https://html.spec.whatwg.org/multipage/syntax.html#attributes-2 +// https://infra.spec.whatwg.org/#noncharacter +const INVALID_ATTR_NAME_CHAR_REGEX = + /[\s'">/=\u{FDD0}-\u{FDEF}\u{FFFE}\u{FFFF}\u{1FFFE}\u{1FFFF}\u{2FFFE}\u{2FFFF}\u{3FFFE}\u{3FFFF}\u{4FFFE}\u{4FFFF}\u{5FFFE}\u{5FFFF}\u{6FFFE}\u{6FFFF}\u{7FFFE}\u{7FFFF}\u{8FFFE}\u{8FFFF}\u{9FFFE}\u{9FFFF}\u{AFFFE}\u{AFFFF}\u{BFFFE}\u{BFFFF}\u{CFFFE}\u{CFFFF}\u{DFFFE}\u{DFFFF}\u{EFFFE}\u{EFFFF}\u{FFFFE}\u{FFFFF}\u{10FFFE}\u{10FFFF}]/u; + +/** + * @param {Renderer} renderer + * @param {string} tag + * @param {() => void} attributes_fn + * @param {() => void} children_fn + * @returns {void} + */ +function element(renderer, tag, attributes_fn = noop, children_fn = noop) { + renderer.push(''); + + { + renderer.push(`<${tag}`); + attributes_fn(); + renderer.push(`>`); + + if (!is_void(tag)) { + children_fn(); + if (!is_raw_text_element(tag)) { + renderer.push(EMPTY_COMMENT); + } + renderer.push(``); + } + } + + renderer.push(''); +} + +/** + * Only available on the server and when compiling with the `server` option. + * Takes a component and returns an object with `body` and `head` properties on it, which you can use to populate the HTML when server-rendering your app. + * @template {Record} Props + * @param {Component | ComponentType>} component + * @param {{ props?: Omit; context?: Map; idPrefix?: string; csp?: Csp }} [options] + * @returns {RenderOutput} + */ +function render(component, options = {}) { + if (options.csp?.hash && options.csp.nonce) { + invalid_csp(); + } + return Renderer.render(/** @type {Component} */ (component), options); +} + +/** + * @param {string} hash + * @param {Renderer} renderer + * @param {(renderer: Renderer) => Promise | void} fn + * @returns {void} + */ +function head(hash, renderer, fn) { + renderer.head((renderer) => { + renderer.push(``); + renderer.child(fn); + renderer.push(EMPTY_COMMENT); + }); +} + +/** + * @param {Record} attrs + * @param {string} [css_hash] + * @param {Record} [classes] + * @param {Record} [styles] + * @param {number} [flags] + * @returns {string} + */ +function attributes(attrs, css_hash, classes, styles, flags = 0) { + if (styles) { + attrs.style = to_style(attrs.style, styles); + } + + if (attrs.class) { + attrs.class = clsx(attrs.class); + } + + if (css_hash || classes) { + attrs.class = to_class(attrs.class, css_hash, classes); + } + + let attr_str = ''; + let name; + + const is_html = (flags & ELEMENT_IS_NAMESPACED) === 0; + const lowercase = (flags & ELEMENT_PRESERVE_ATTRIBUTE_CASE) === 0; + const is_input = (flags & ELEMENT_IS_INPUT) !== 0; + + for (name in attrs) { + // omit functions, internal svelte properties and invalid attribute names + if (typeof attrs[name] === 'function') continue; + if (name[0] === '$' && name[1] === '$') continue; // faster than name.startsWith('$$') + if (INVALID_ATTR_NAME_CHAR_REGEX.test(name)) continue; + + var value = attrs[name]; + + if (lowercase) { + name = name.toLowerCase(); + } + + if (is_input) { + if (name === 'defaultvalue' || name === 'defaultchecked') { + name = name === 'defaultvalue' ? 'value' : 'checked'; + if (attrs[name]) continue; + } + } + + attr_str += attr(name, value, is_html && is_boolean_attribute(name)); + } + + return attr_str; +} + +/** + * @param {Record[]} props + * @returns {Record} + */ +function spread_props(props) { + /** @type {Record} */ + const merged_props = {}; + let key; + + for (let i = 0; i < props.length; i++) { + const obj = props[i]; + for (key in obj) { + const desc = Object.getOwnPropertyDescriptor(obj, key); + if (desc) { + Object.defineProperty(merged_props, key, desc); + } else { + merged_props[key] = obj[key]; + } + } + } + return merged_props; +} + +/** + * @param {unknown} value + * @returns {string} + */ +function stringify(value) { + return typeof value === 'string' ? value : value == null ? '' : value + ''; +} + +/** + * @param {any} value + * @param {string | undefined} [hash] + * @param {Record} [directives] + */ +function attr_class(value, hash, directives) { + var result = to_class(value, hash, directives); + return result ? ` class="${escape_html(result, true)}"` : ''; +} + +/** + * @param {any} value + * @param {Record|[Record,Record]} [directives] + */ +function attr_style(value, directives) { + var result = to_style(value, directives); + return result ? ` style="${escape_html(result, true)}"` : ''; +} + +/** + * @template V + * @param {Record} store_values + * @param {string} store_name + * @param {Store | null | undefined} store + * @returns {V} + */ +function store_get(store_values, store_name, store) { + + // it could be that someone eagerly updates the store in the instance script, so + // we should only reuse the store value in the template + if (store_name in store_values && store_values[store_name][0] === store) { + return store_values[store_name][2]; + } + + store_values[store_name]?.[1](); // if store was switched, unsubscribe from old store + store_values[store_name] = [store, null, undefined]; + const unsub = subscribe_to_store( + store, + /** @param {any} v */ (v) => (store_values[store_name][2] = v) + ); + store_values[store_name][1] = unsub; + return store_values[store_name][2]; +} + +/** + * Sets the new value of a store and returns that value. + * @template V + * @param {Store} store + * @param {V} value + * @returns {V} + */ +function store_set(store, value) { + store.set(value); + return value; +} + +/** @param {Record} store_values */ +function unsubscribe_stores(store_values) { + for (const store_name in store_values) { + store_values[store_name][1](); + } +} + +/** + * @param {Renderer} renderer + * @param {Record} $$props + * @param {string} name + * @param {Record} slot_props + * @param {null | (() => void)} fallback_fn + * @returns {void} + */ +function slot(renderer, $$props, name, slot_props, fallback_fn) { + var slot_fn = $$props.$$slots?.[name]; + // Interop: Can use snippets to fill slots + if (slot_fn === true) { + slot_fn = $$props[name === 'default' ? 'children' : name]; + } + + if (slot_fn !== undefined) { + slot_fn(renderer, slot_props); + } +} + +/** + * @param {Record} props + * @param {string[]} rest + * @returns {Record} + */ +function rest_props(props, rest) { + /** @type {Record} */ + const rest_props = {}; + let key; + for (key in props) { + if (!rest.includes(key)) { + rest_props[key] = props[key]; + } + } + return rest_props; +} + +/** + * @param {Record} props + * @returns {Record} + */ +function sanitize_props(props) { + const { children, $$slots, ...sanitized } = props; + return sanitized; +} + +/** + * Legacy mode: If the prop has a fallback and is bound in the + * parent component, propagate the fallback value upwards. + * @param {Record} props_parent + * @param {Record} props_now + */ +function bind_props(props_parent, props_now) { + for (const key in props_now) { + const initial_value = props_parent[key]; + const value = props_now[key]; + if ( + initial_value === undefined && + value !== undefined && + Object.getOwnPropertyDescriptor(props_parent, key)?.set + ) { + props_parent[key] = value; + } + } +} + +/** + * @template V + * @param {Renderer} renderer + * @param {Promise} promise + * @param {null | (() => void)} pending_fn + * @param {(value: V) => void} then_fn + * @returns {void} + */ +function await_block(renderer, promise, pending_fn, then_fn) { + if (is_promise(promise)) { + renderer.push(BLOCK_OPEN); + promise.then(null, noop); + if (pending_fn !== null) { + pending_fn(); + } + } else if (then_fn !== null) { + renderer.push(BLOCK_OPEN_ELSE); + then_fn(promise); + } +} + +/** @param {any} array_like_or_iterator */ +function ensure_array_like(array_like_or_iterator) { + if (array_like_or_iterator) { + return array_like_or_iterator.length !== undefined + ? array_like_or_iterator + : Array.from(array_like_or_iterator); + } + return []; +} + +export { attr as a, store_get as b, spread_props as c, bind_props as d, ensure_array_like as e, attr_class as f, attr_style as g, head as h, stringify as i, clsx as j, await_block as k, element as l, attributes as m, sanitize_props as n, store_set as o, is_passive_event as p, render as q, rest_props as r, slot as s, unsubscribe_stores as u }; +//# sourceMappingURL=index-u8mz_F03.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/index-wpIsICWW.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/index-wpIsICWW.js new file mode 100644 index 0000000000000000000000000000000000000000..687a4f2a4e2918633978f090e9c4c6076bfdf3a6 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/index-wpIsICWW.js @@ -0,0 +1,219 @@ +/** @import { StandardSchemaV1 } from '@standard-schema/spec' */ + +class HttpError { + /** + * @param {number} status + * @param {{message: string} extends App.Error ? (App.Error | string | undefined) : App.Error} body + */ + constructor(status, body) { + this.status = status; + if (typeof body === 'string') { + this.body = { message: body }; + } else if (body) { + this.body = body; + } else { + this.body = { message: `Error: ${status}` }; + } + } + + toString() { + return JSON.stringify(this.body); + } +} + +class Redirect { + /** + * @param {300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308} status + * @param {string} location + */ + constructor(status, location) { + this.status = status; + this.location = location; + } +} + +/** + * An error that was thrown from within the SvelteKit runtime that is not fatal and doesn't result in a 500, such as a 404. + * `SvelteKitError` goes through `handleError`. + * @extends Error + */ +class SvelteKitError extends Error { + /** + * @param {number} status + * @param {string} text + * @param {string} message + */ + constructor(status, text, message) { + super(message); + this.status = status; + this.text = text; + } +} + +/** + * @template [T=undefined] + */ +class ActionFailure { + /** + * @param {number} status + * @param {T} data + */ + constructor(status, data) { + this.status = status; + this.data = data; + } +} + +const text_encoder = new TextEncoder(); +new TextDecoder(); + +/** @import { StandardSchemaV1 } from '@standard-schema/spec' */ + + +// TODO 3.0: remove these types as they are not used anymore (we can't remove them yet because that would be a breaking change) +/** + * @template {number} TNumber + * @template {any[]} [TArray=[]] + * @typedef {TNumber extends TArray['length'] ? TArray[number] : LessThan} LessThan + */ + +/** + * @template {number} TStart + * @template {number} TEnd + * @typedef {Exclude, LessThan>} NumericRange + */ + +// Keep the status codes as `number` because restricting to certain numbers makes it unnecessarily hard to use compared to the benefits +// (we have runtime errors already to check for invalid codes). Also see https://github.com/sveltejs/kit/issues/11780 + +// we have to repeat the JSDoc because the display for function overloads is broken +// see https://github.com/microsoft/TypeScript/issues/55056 + +/** + * Throws an error with a HTTP status code and an optional message. + * When called during request handling, this will cause SvelteKit to + * return an error response without invoking `handleError`. + * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it. + * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599. + * @param {App.Error} body An object that conforms to the App.Error type. If a string is passed, it will be used as the message property. + * @overload + * @param {number} status + * @param {App.Error} body + * @return {never} + * @throws {HttpError} This error instructs SvelteKit to initiate HTTP error handling. + * @throws {Error} If the provided status is invalid (not between 400 and 599). + */ +/** + * Throws an error with a HTTP status code and an optional message. + * When called during request handling, this will cause SvelteKit to + * return an error response without invoking `handleError`. + * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it. + * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599. + * @param {{ message: string } extends App.Error ? App.Error | string | undefined : never} [body] An object that conforms to the App.Error type. If a string is passed, it will be used as the message property. + * @overload + * @param {number} status + * @param {{ message: string } extends App.Error ? App.Error | string | undefined : never} [body] + * @return {never} + * @throws {HttpError} This error instructs SvelteKit to initiate HTTP error handling. + * @throws {Error} If the provided status is invalid (not between 400 and 599). + */ +/** + * Throws an error with a HTTP status code and an optional message. + * When called during request handling, this will cause SvelteKit to + * return an error response without invoking `handleError`. + * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it. + * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599. + * @param {{ message: string } extends App.Error ? App.Error | string | undefined : never} body An object that conforms to the App.Error type. If a string is passed, it will be used as the message property. + * @return {never} + * @throws {HttpError} This error instructs SvelteKit to initiate HTTP error handling. + * @throws {Error} If the provided status is invalid (not between 400 and 599). + */ +function error(status, body) { + if ((isNaN(status) || status < 400 || status > 599)) { + throw new Error(`HTTP error status codes must be between 400 and 599 — ${status} is invalid`); + } + + throw new HttpError(status, body); +} + +/** + * Redirect a request. When called during request handling, SvelteKit will return a redirect response. + * Make sure you're not catching the thrown redirect, which would prevent SvelteKit from handling it. + * + * Most common status codes: + * * `303 See Other`: redirect as a GET request (often used after a form POST request) + * * `307 Temporary Redirect`: redirect will keep the request method + * * `308 Permanent Redirect`: redirect will keep the request method, SEO will be transferred to the new page + * + * [See all redirect status codes](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#redirection_messages) + * + * @param {300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | ({} & number)} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#redirection_messages). Must be in the range 300-308. + * @param {string | URL} location The location to redirect to. + * @throws {Redirect} This error instructs SvelteKit to redirect to the specified location. + * @throws {Error} If the provided status is invalid. + * @return {never} + */ +function redirect(status, location) { + if ((isNaN(status) || status < 300 || status > 308)) { + throw new Error('Invalid status code'); + } + + throw new Redirect( + // @ts-ignore + status, + location.toString() + ); +} + +/** + * Create a JSON `Response` object from the supplied data. + * @param {any} data The value that will be serialized as JSON. + * @param {ResponseInit} [init] Options such as `status` and `headers` that will be added to the response. `Content-Type: application/json` and `Content-Length` headers will be added automatically. + */ +function json(data, init) { + // TODO deprecate this in favour of `Response.json` when it's + // more widely supported + const body = JSON.stringify(data); + + // we can't just do `text(JSON.stringify(data), init)` because + // it will set a default `content-type` header. duplicated code + // means less duplicated work + const headers = new Headers(init?.headers); + if (!headers.has('content-length')) { + headers.set('content-length', text_encoder.encode(body).byteLength.toString()); + } + + if (!headers.has('content-type')) { + headers.set('content-type', 'application/json'); + } + + return new Response(body, { + ...init, + headers + }); +} + +/** + * Create a `Response` object from the supplied body. + * @param {string} body The value that will be used as-is. + * @param {ResponseInit} [init] Options such as `status` and `headers` that will be added to the response. A `Content-Length` header will be added automatically. + */ +function text(body, init) { + const headers = new Headers(init?.headers); + if (!headers.has('content-length')) { + const encoded = text_encoder.encode(body); + headers.set('content-length', encoded.byteLength.toString()); + return new Response(encoded, { + ...init, + headers + }); + } + + return new Response(body, { + ...init, + headers + }); +} + +export { ActionFailure as A, HttpError as H, Redirect as R, SvelteKitError as S, error as e, json as j, redirect as r, text as t }; +//# sourceMappingURL=index-wpIsICWW.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/index2-DB8QDf1e.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/index2-DB8QDf1e.js new file mode 100644 index 0000000000000000000000000000000000000000..efe0dd904e87ad0d3157962601e21b61d91e19ea --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/index2-DB8QDf1e.js @@ -0,0 +1,19 @@ +export { B as Loader, W as StatusTracker, W as default } from './index3-Df92vI-L.js'; +export { V as LoadingStatus, U as Toast } from './state.svelte-CyN-p1Tk.js'; +export { o as StreamingBar } from './StreamingBar-BGU65w2M.js'; +import './async-D55cHugf.js'; +import './index-u8mz_F03.js'; +import './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; +import './index-Cg-Pg6j3.js'; +import './IconButton-BRnu7KaR.js'; +import './Clear-D7Yjckqz.js'; +import './2-BLdXJizP.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index50-G3WrDDFf.js'; +import 'path'; +import 'url'; +import 'fs'; +import './html-CfyvkLET.js'; +//# sourceMappingURL=index2-DB8QDf1e.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/index43-Dng7U0k1.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/index43-Dng7U0k1.js new file mode 100644 index 0000000000000000000000000000000000000000..3d7da345d36092ae49c992fab8906ea215cd41ac --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/index43-Dng7U0k1.js @@ -0,0 +1,45 @@ +import './async-D55cHugf.js'; +import { d as bind_props, c as spread_props } from './index-u8mz_F03.js'; +import { e as ee } from './Upload2-uTutz1dY.js'; +import { k } from './BlockLabel-bKYWnOzQ.js'; +import { t as tick } from './index-server-CQz6EZl_.js'; +import { r } from './Video-FfbWmOVG.js'; +import './2-BLdXJizP.js'; +import { w } from './SelectSource-Bhpgvmj9.js'; +import { Z } from './Webcam2-CNM_PDwT.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; +import { P as Me, p as $e, V as Fe } from './VideoPreview-BCm0_09s.js'; +export { l as loaded, a as playable } from './VideoPreview-BCm0_09s.js'; +export { default as BaseExample } from './Example28-BxG4ajHL.js'; +import { G } from './Block-DZmzQwnI.js'; +import { $ } from './utils.svelte-B2py64Fz.js'; +import { k as k$1 } from './UploadText-BDXc1cBO.js'; +import { W } from './index3-Df92vI-L.js'; +import './context-CBkBucIx.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; +import './Upload-BbxeBrrD.js'; +import './Microphone-BMM9-23W.js'; +import './Webcam-CvKMKUzA.js'; +import './StreamingBar-BGU65w2M.js'; +import './DownloadLink-nj1p0krE.js'; +import './IconButton-BRnu7KaR.js'; +import './Empty-DGRbZO0a.js'; +import './ShareButton-7VTs9dOO.js'; +import './Download-DcU5dONL.js'; +import './IconButtonWrapper-CjFRPb3y.js'; +import './Maximize-CuHbK64j.js'; +import './VolumeLevels-DlU2d99x.js'; +import './Play-B_z3rKL1.js'; +import './Undo-Ce01x-M5.js'; +import './Video2-BN5I0jvO.js'; +import './ModifyUpload-CWSi2EyW.js'; +import './Clear-D7Yjckqz.js'; +import './Edit-DWZSi_T0.js'; +import './clone-Yk88IHKV.js'; + +function es(w$1,g){w$1.component(h=>{let{value:i=null,subtitle:P=null,sources:y=["webcam","upload"],label:u=void 0,show_download_button:k$1=false,show_label:s=true,webcam_options:c,include_audio:_,autoplay:m,root:n,i18n:f,active_source:x="webcam",handle_reset_value:z=()=>{},max_file_size:p=null,upload:r$1,stream_handler:B,loop:l,uploading:t=void 0,upload_promise:o=void 0,playback_position:V=void 0,buttons:ts=null,on_custom_button_click:ls=null,onchange:S,onclear:q,onplay:A,onpause:C,onend:D,ondrag:is,onerror:U,onupload:F,onstart_recording:ps,onstop_recording:us,onstop:H,children:G}=g,W=false,b=x??"webcam";function J(a){i=a,S?.(a),a&&F?.(a);}function E(){i=null,S?.(null),q?.();}function K(a){W=true,S?.(a);}let L=false,d=true,I;function M(a){k(a,{show_label:s,Icon:r,label:u||"Video"}),a.push('
    '),i===null||i?.url===void 0?(a.push(""),a.push('
    '),b==="upload"?(a.push(""),ee(a,{filetype:"video/x-m4v,video/*",onload:J,max_file_size:p,onerror:e=>U?.(e),root:n,upload:r$1,stream_handler:B,aria_label:f("video.drop_to_upload"),get upload_promise(){return o},set upload_promise(e){o=e,d=false;},get dragging(){return L},set dragging(e){L=e,d=false;},get uploading(){return t},set uploading(e){t=e,d=false;},children:e=>{G?(e.push(""),G(e),e.push("")):e.push(""),e.push("");},$$slots:{default:true}})):(a.push(""),b==="webcam"?(a.push(""),Z(a,{root:n,mirror_webcam:c.mirror,webcam_constraints:c.constraints,include_audio:_,mode:"video",i18n:f,upload:r$1,stream_every:1})):a.push(""),a.push("")),a.push("
    ")):(a.push(""),i?.url?(a.push(""),a.push(""),Me(a,{upload:r$1,root:n,interactive:true,autoplay:m,src:i.url,subtitle:P?.url,is_stream:false,onplay:()=>A?.(),onpause:()=>C?.(),onstop:()=>H?.(),onend:()=>D?.(),onerror:e=>U?.(e),mirror:c.mirror&&b==="webcam",label:u,handle_change:K,handle_reset_value:z,loop:l,value:i,i18n:f,show_download_button:k$1,handle_clear:E,has_change_history:W,get playback_position(){return V},set playback_position(e){V=e,d=false;}}),a.push("")):(a.push(""),i.size?(a.push(""),a.push(`
    ${escape_html(i.orig_name||i.url)}
    ${escape_html($e(i.size))}
    `)):a.push(""),a.push("")),a.push("")),a.push(" "),w(a,{sources:y,handle_clear:E,get active_source(){return b},set active_source(e){b=e,d=false;}}),a.push("
    ");}do d=true,I=h.copy(),M(I);while(!d);h.subsume(I),bind_props(g,{value:i,uploading:t,upload_promise:o,playback_position:V});});}function Gs(w,g){w.component(h=>{const{$$slots:i,$$events:P,...y}=g;let u;class k extends ${async get_data(){return u&&(await u,await tick()),await super.get_data()}}const s=new k(y);s.props.value;let c=false,_=false,m=s.props.sources?s.props.sources[0]:void 0,n=s.props.value;const f=()=>{n===null||s.props.value===n||(s.props.value=n);};function x(l){l!=null?s.props.value=l:s.props.value=null;}function z(l){const[t,o]=l.includes("Invalid file type")?["warning","complete"]:["error","error"];s.shared.loading_status.status=o,s.shared.loading_status.message=l,s.dispatch(t,l);}let p=true,r;function B(l){s.shared.interactive?(l.push(""),G(l,{visible:s.shared.visible,variant:s.props.value===null&&m==="upload"?"dashed":"solid",border_mode:_?"focus":"base",padding:false,elem_id:s.shared.elem_id,elem_classes:s.shared.elem_classes,height:s.props.height||void 0,width:s.props.width,container:s.shared.container,scale:s.shared.scale,min_width:s.shared.min_width,allow_overflow:false,children:t=>{W(t,spread_props([{autoscroll:s.shared.autoscroll,i18n:s.i18n},s.shared.loading_status,{on_clear_status:()=>s.dispatch("clear_status",s.shared.loading_status)}])),t.push(" "),es(t,{value:s.props.value,subtitle:s.props.subtitles,onchange:x,ondrag:o=>_=o,onerror:z,label:s.shared.label,show_label:s.shared.show_label,buttons:s.props.buttons??["download","share"],on_custom_button_click:o=>{s.dispatch("custom_button_click",{id:o});},sources:s.props.sources,active_source:m,webcam_options:s.props.webcam_options,include_audio:s.props.include_audio,autoplay:s.props.autoplay,root:s.shared.root,loop:s.props.loop,handle_reset_value:f,onclear:()=>{s.props.value=null,s.dispatch("clear"),s.dispatch("input");},onplay:()=>s.dispatch("play"),onpause:()=>s.dispatch("pause"),onupload:()=>{s.dispatch("upload"),s.dispatch("input");},onstop:()=>s.dispatch("stop"),onend:()=>s.dispatch("end"),onstart_recording:()=>s.dispatch("start_recording"),onstop_recording:()=>s.dispatch("stop_recording"),i18n:s.i18n,max_file_size:s.shared.max_file_size,upload:(...o)=>s.shared.client.upload(...o),stream_handler:(...o)=>s.shared.client.stream(...o),get upload_promise(){return u},set upload_promise(o){u=o,p=false;},get uploading(){return c},set uploading(o){c=o,p=false;},get playback_position(){return s.props.playback_position},set playback_position(o){s.props.playback_position=o,p=false;},children:o=>{k$1(o,{i18n:s.i18n,type:"video"});},$$slots:{default:true}}),t.push("");},$$slots:{default:true}})):(l.push(""),G(l,{visible:s.shared.visible,variant:s.props.value===null&&m==="upload"?"dashed":"solid",border_mode:_?"focus":"base",padding:false,elem_id:s.shared.elem_id,elem_classes:s.shared.elem_classes,height:s.props.height||void 0,width:s.props.width,container:s.shared.container,scale:s.shared.scale,min_width:s.shared.min_width,allow_overflow:false,children:t=>{W(t,spread_props([{autoscroll:s.shared.autoscroll,i18n:s.i18n},s.shared.loading_status,{on_clear_status:()=>s.dispatch("clear_status",s.shared.loading_status)}])),t.push(" "),Fe(t,{value:s.props.value,subtitle:s.props.subtitles,label:s.shared.label,show_label:s.shared.show_label,autoplay:s.props.autoplay,loop:s.props.loop,buttons:s.props.buttons??["download","share"],on_custom_button_click:o=>{s.dispatch("custom_button_click",{id:o});},onplay:()=>s.dispatch("play"),onpause:()=>s.dispatch("pause"),onstop:()=>s.dispatch("stop"),onend:()=>s.dispatch("end"),onshare:o=>s.dispatch("share",o),onerror:o=>s.dispatch("error",o),i18n:s.i18n,upload:(...o)=>s.shared.client.upload(...o),get playback_position(){return s.props.playback_position},set playback_position(o){s.props.playback_position=o,p=false;}}),t.push("");},$$slots:{default:true}})),l.push("");}do p=true,r=h.copy(),B(r);while(!p);h.subsume(r);});} + +export { es as BaseInteractiveVideo, Me as BasePlayer, Fe as BaseStaticVideo, Gs as default, $e as prettyBytes }; +//# sourceMappingURL=index43-Dng7U0k1.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/index5-BoOEKc6P.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/index5-BoOEKc6P.js new file mode 100644 index 0000000000000000000000000000000000000000..6e642968566e1fb90c63a97db43598a4dfbdf0e7 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/index5-BoOEKc6P.js @@ -0,0 +1,6 @@ +import { s, e } from './dev-fallback-Bc5Ork7Y.js'; + +const a=s,t=e; + +export { a, t }; +//# sourceMappingURL=index5-BoOEKc6P.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/index50-G3WrDDFf.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/index50-G3WrDDFf.js new file mode 100644 index 0000000000000000000000000000000000000000..38030591d5adf76567fc826433ac8a8f00b60db0 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/index50-G3WrDDFf.js @@ -0,0 +1,8234 @@ +import { o as on, s as sn } from './2-BLdXJizP.js'; +import require$$1 from 'path'; +import require$$3 from 'url'; +import require$$0 from 'fs'; + +function getDefaultExportFromCjs (x) { + return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x; +} + +var picocolors = {exports: {}}; + +var hasRequiredPicocolors; + +function requirePicocolors () { + if (hasRequiredPicocolors) return picocolors.exports; + hasRequiredPicocolors = 1; + let p = process || {}, argv = p.argv || [], env = p.env || {}; + let isColorSupported = + !(!!env.NO_COLOR || argv.includes("--no-color")) && + (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || ((p.stdout || {}).isTTY && env.TERM !== "dumb") || !!env.CI); + + let formatter = (open, close, replace = open) => + input => { + let string = "" + input, index = string.indexOf(close, open.length); + return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close + }; + + let replaceClose = (string, close, replace, index) => { + let result = "", cursor = 0; + do { + result += string.substring(cursor, index) + replace; + cursor = index + close.length; + index = string.indexOf(close, cursor); + } while (~index) + return result + string.substring(cursor) + }; + + let createColors = (enabled = isColorSupported) => { + let f = enabled ? formatter : () => String; + return { + isColorSupported: enabled, + reset: f("\x1b[0m", "\x1b[0m"), + bold: f("\x1b[1m", "\x1b[22m", "\x1b[22m\x1b[1m"), + dim: f("\x1b[2m", "\x1b[22m", "\x1b[22m\x1b[2m"), + italic: f("\x1b[3m", "\x1b[23m"), + underline: f("\x1b[4m", "\x1b[24m"), + inverse: f("\x1b[7m", "\x1b[27m"), + hidden: f("\x1b[8m", "\x1b[28m"), + strikethrough: f("\x1b[9m", "\x1b[29m"), + + black: f("\x1b[30m", "\x1b[39m"), + red: f("\x1b[31m", "\x1b[39m"), + green: f("\x1b[32m", "\x1b[39m"), + yellow: f("\x1b[33m", "\x1b[39m"), + blue: f("\x1b[34m", "\x1b[39m"), + magenta: f("\x1b[35m", "\x1b[39m"), + cyan: f("\x1b[36m", "\x1b[39m"), + white: f("\x1b[37m", "\x1b[39m"), + gray: f("\x1b[90m", "\x1b[39m"), + + bgBlack: f("\x1b[40m", "\x1b[49m"), + bgRed: f("\x1b[41m", "\x1b[49m"), + bgGreen: f("\x1b[42m", "\x1b[49m"), + bgYellow: f("\x1b[43m", "\x1b[49m"), + bgBlue: f("\x1b[44m", "\x1b[49m"), + bgMagenta: f("\x1b[45m", "\x1b[49m"), + bgCyan: f("\x1b[46m", "\x1b[49m"), + bgWhite: f("\x1b[47m", "\x1b[49m"), + + blackBright: f("\x1b[90m", "\x1b[39m"), + redBright: f("\x1b[91m", "\x1b[39m"), + greenBright: f("\x1b[92m", "\x1b[39m"), + yellowBright: f("\x1b[93m", "\x1b[39m"), + blueBright: f("\x1b[94m", "\x1b[39m"), + magentaBright: f("\x1b[95m", "\x1b[39m"), + cyanBright: f("\x1b[96m", "\x1b[39m"), + whiteBright: f("\x1b[97m", "\x1b[39m"), + + bgBlackBright: f("\x1b[100m", "\x1b[49m"), + bgRedBright: f("\x1b[101m", "\x1b[49m"), + bgGreenBright: f("\x1b[102m", "\x1b[49m"), + bgYellowBright: f("\x1b[103m", "\x1b[49m"), + bgBlueBright: f("\x1b[104m", "\x1b[49m"), + bgMagentaBright: f("\x1b[105m", "\x1b[49m"), + bgCyanBright: f("\x1b[106m", "\x1b[49m"), + bgWhiteBright: f("\x1b[107m", "\x1b[49m"), + } + }; + + picocolors.exports = createColors(); + picocolors.exports.createColors = createColors; + return picocolors.exports; +} + +var tokenize; +var hasRequiredTokenize; + +function requireTokenize () { + if (hasRequiredTokenize) return tokenize; + hasRequiredTokenize = 1; + + const SINGLE_QUOTE = "'".charCodeAt(0); + const DOUBLE_QUOTE = '"'.charCodeAt(0); + const BACKSLASH = '\\'.charCodeAt(0); + const SLASH = '/'.charCodeAt(0); + const NEWLINE = '\n'.charCodeAt(0); + const SPACE = ' '.charCodeAt(0); + const FEED = '\f'.charCodeAt(0); + const TAB = '\t'.charCodeAt(0); + const CR = '\r'.charCodeAt(0); + const OPEN_SQUARE = '['.charCodeAt(0); + const CLOSE_SQUARE = ']'.charCodeAt(0); + const OPEN_PARENTHESES = '('.charCodeAt(0); + const CLOSE_PARENTHESES = ')'.charCodeAt(0); + const OPEN_CURLY = '{'.charCodeAt(0); + const CLOSE_CURLY = '}'.charCodeAt(0); + const SEMICOLON = ';'.charCodeAt(0); + const ASTERISK = '*'.charCodeAt(0); + const COLON = ':'.charCodeAt(0); + const AT = '@'.charCodeAt(0); + + const RE_AT_END = /[\t\n\f\r "#'()/;[\\\]{}]/g; + const RE_WORD_END = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g; + const RE_BAD_BRACKET = /.[\r\n"'(/\\]/; + const RE_HEX_ESCAPE = /[\da-f]/i; + + tokenize = function tokenizer(input, options = {}) { + let css = input.css.valueOf(); + let ignore = options.ignoreErrors; + + let code, content, escape, next, quote; + let currentToken, escaped, escapePos, n, prev; + + let length = css.length; + let pos = 0; + let buffer = []; + let returned = []; + + function position() { + return pos + } + + function unclosed(what) { + throw input.error('Unclosed ' + what, pos) + } + + function endOfFile() { + return returned.length === 0 && pos >= length + } + + function nextToken(opts) { + if (returned.length) return returned.pop() + if (pos >= length) return + + let ignoreUnclosed = opts ? opts.ignoreUnclosed : false; + + code = css.charCodeAt(pos); + + switch (code) { + case NEWLINE: + case SPACE: + case TAB: + case CR: + case FEED: { + next = pos; + do { + next += 1; + code = css.charCodeAt(next); + } while ( + code === SPACE || + code === NEWLINE || + code === TAB || + code === CR || + code === FEED + ) + + currentToken = ['space', css.slice(pos, next)]; + pos = next - 1; + break + } + + case OPEN_SQUARE: + case CLOSE_SQUARE: + case OPEN_CURLY: + case CLOSE_CURLY: + case COLON: + case SEMICOLON: + case CLOSE_PARENTHESES: { + let controlChar = String.fromCharCode(code); + currentToken = [controlChar, controlChar, pos]; + break + } + + case OPEN_PARENTHESES: { + prev = buffer.length ? buffer.pop()[1] : ''; + n = css.charCodeAt(pos + 1); + if ( + prev === 'url' && + n !== SINGLE_QUOTE && + n !== DOUBLE_QUOTE && + n !== SPACE && + n !== NEWLINE && + n !== TAB && + n !== FEED && + n !== CR + ) { + next = pos; + do { + escaped = false; + next = css.indexOf(')', next + 1); + if (next === -1) { + if (ignore || ignoreUnclosed) { + next = pos; + break + } else { + unclosed('bracket'); + } + } + escapePos = next; + while (css.charCodeAt(escapePos - 1) === BACKSLASH) { + escapePos -= 1; + escaped = !escaped; + } + } while (escaped) + + currentToken = ['brackets', css.slice(pos, next + 1), pos, next]; + + pos = next; + } else { + next = css.indexOf(')', pos + 1); + content = css.slice(pos, next + 1); + + if (next === -1 || RE_BAD_BRACKET.test(content)) { + currentToken = ['(', '(', pos]; + } else { + currentToken = ['brackets', content, pos, next]; + pos = next; + } + } + + break + } + + case SINGLE_QUOTE: + case DOUBLE_QUOTE: { + quote = code === SINGLE_QUOTE ? "'" : '"'; + next = pos; + do { + escaped = false; + next = css.indexOf(quote, next + 1); + if (next === -1) { + if (ignore || ignoreUnclosed) { + next = pos + 1; + break + } else { + unclosed('string'); + } + } + escapePos = next; + while (css.charCodeAt(escapePos - 1) === BACKSLASH) { + escapePos -= 1; + escaped = !escaped; + } + } while (escaped) + + currentToken = ['string', css.slice(pos, next + 1), pos, next]; + pos = next; + break + } + + case AT: { + RE_AT_END.lastIndex = pos + 1; + RE_AT_END.test(css); + if (RE_AT_END.lastIndex === 0) { + next = css.length - 1; + } else { + next = RE_AT_END.lastIndex - 2; + } + + currentToken = ['at-word', css.slice(pos, next + 1), pos, next]; + + pos = next; + break + } + + case BACKSLASH: { + next = pos; + escape = true; + while (css.charCodeAt(next + 1) === BACKSLASH) { + next += 1; + escape = !escape; + } + code = css.charCodeAt(next + 1); + if ( + escape && + code !== SLASH && + code !== SPACE && + code !== NEWLINE && + code !== TAB && + code !== CR && + code !== FEED + ) { + next += 1; + if (RE_HEX_ESCAPE.test(css.charAt(next))) { + while (RE_HEX_ESCAPE.test(css.charAt(next + 1))) { + next += 1; + } + if (css.charCodeAt(next + 1) === SPACE) { + next += 1; + } + } + } + + currentToken = ['word', css.slice(pos, next + 1), pos, next]; + + pos = next; + break + } + + default: { + if (code === SLASH && css.charCodeAt(pos + 1) === ASTERISK) { + next = css.indexOf('*/', pos + 2) + 1; + if (next === 0) { + if (ignore || ignoreUnclosed) { + next = css.length; + } else { + unclosed('comment'); + } + } + + currentToken = ['comment', css.slice(pos, next + 1), pos, next]; + pos = next; + } else { + RE_WORD_END.lastIndex = pos + 1; + RE_WORD_END.test(css); + if (RE_WORD_END.lastIndex === 0) { + next = css.length - 1; + } else { + next = RE_WORD_END.lastIndex - 2; + } + + currentToken = ['word', css.slice(pos, next + 1), pos, next]; + buffer.push(currentToken); + pos = next; + } + + break + } + } + + pos++; + return currentToken + } + + function back(token) { + returned.push(token); + } + + return { + back, + endOfFile, + nextToken, + position + } + }; + return tokenize; +} + +var terminalHighlight_1; +var hasRequiredTerminalHighlight; + +function requireTerminalHighlight () { + if (hasRequiredTerminalHighlight) return terminalHighlight_1; + hasRequiredTerminalHighlight = 1; + + let pico = /*@__PURE__*/ requirePicocolors(); + + let tokenizer = requireTokenize(); + + let Input; + + function registerInput(dependant) { + Input = dependant; + } + + const HIGHLIGHT_THEME = { + ';': pico.yellow, + ':': pico.yellow, + '(': pico.cyan, + ')': pico.cyan, + '[': pico.yellow, + ']': pico.yellow, + '{': pico.yellow, + '}': pico.yellow, + 'at-word': pico.cyan, + 'brackets': pico.cyan, + 'call': pico.cyan, + 'class': pico.yellow, + 'comment': pico.gray, + 'hash': pico.magenta, + 'string': pico.green + }; + + function getTokenType([type, value], processor) { + if (type === 'word') { + if (value[0] === '.') { + return 'class' + } + if (value[0] === '#') { + return 'hash' + } + } + + if (!processor.endOfFile()) { + let next = processor.nextToken(); + processor.back(next); + if (next[0] === 'brackets' || next[0] === '(') return 'call' + } + + return type + } + + function terminalHighlight(css) { + let processor = tokenizer(new Input(css), { ignoreErrors: true }); + let result = ''; + while (!processor.endOfFile()) { + let token = processor.nextToken(); + let color = HIGHLIGHT_THEME[getTokenType(token, processor)]; + if (color) { + result += token[1] + .split(/\r?\n/) + .map(i => color(i)) + .join('\n'); + } else { + result += token[1]; + } + } + return result + } + + terminalHighlight.registerInput = registerInput; + + terminalHighlight_1 = terminalHighlight; + return terminalHighlight_1; +} + +var cssSyntaxError; +var hasRequiredCssSyntaxError; + +function requireCssSyntaxError () { + if (hasRequiredCssSyntaxError) return cssSyntaxError; + hasRequiredCssSyntaxError = 1; + + let pico = /*@__PURE__*/ requirePicocolors(); + + let terminalHighlight = requireTerminalHighlight(); + + class CssSyntaxError extends Error { + constructor(message, line, column, source, file, plugin) { + super(message); + this.name = 'CssSyntaxError'; + this.reason = message; + + if (file) { + this.file = file; + } + if (source) { + this.source = source; + } + if (plugin) { + this.plugin = plugin; + } + if (typeof line !== 'undefined' && typeof column !== 'undefined') { + if (typeof line === 'number') { + this.line = line; + this.column = column; + } else { + this.line = line.line; + this.column = line.column; + this.endLine = column.line; + this.endColumn = column.column; + } + } + + this.setMessage(); + + if (Error.captureStackTrace) { + Error.captureStackTrace(this, CssSyntaxError); + } + } + + setMessage() { + this.message = this.plugin ? this.plugin + ': ' : ''; + this.message += this.file ? this.file : ''; + if (typeof this.line !== 'undefined') { + this.message += ':' + this.line + ':' + this.column; + } + this.message += ': ' + this.reason; + } + + showSourceCode(color) { + if (!this.source) return '' + + let css = this.source; + if (color == null) color = pico.isColorSupported; + + let aside = text => text; + let mark = text => text; + let highlight = text => text; + if (color) { + let { bold, gray, red } = pico.createColors(true); + mark = text => bold(red(text)); + aside = text => gray(text); + if (terminalHighlight) { + highlight = text => terminalHighlight(text); + } + } + + let lines = css.split(/\r?\n/); + let start = Math.max(this.line - 3, 0); + let end = Math.min(this.line + 2, lines.length); + let maxWidth = String(end).length; + + return lines + .slice(start, end) + .map((line, index) => { + let number = start + 1 + index; + let gutter = ' ' + (' ' + number).slice(-maxWidth) + ' | '; + if (number === this.line) { + if (line.length > 160) { + let padding = 20; + let subLineStart = Math.max(0, this.column - padding); + let subLineEnd = Math.max( + this.column + padding, + this.endColumn + padding + ); + let subLine = line.slice(subLineStart, subLineEnd); + + let spacing = + aside(gutter.replace(/\d/g, ' ')) + + line + .slice(0, Math.min(this.column - 1, padding - 1)) + .replace(/[^\t]/g, ' '); + + return ( + mark('>') + + aside(gutter) + + highlight(subLine) + + '\n ' + + spacing + + mark('^') + ) + } + + let spacing = + aside(gutter.replace(/\d/g, ' ')) + + line.slice(0, this.column - 1).replace(/[^\t]/g, ' '); + + return ( + mark('>') + + aside(gutter) + + highlight(line) + + '\n ' + + spacing + + mark('^') + ) + } + + return ' ' + aside(gutter) + highlight(line) + }) + .join('\n') + } + + toString() { + let code = this.showSourceCode(); + if (code) { + code = '\n\n' + code + '\n'; + } + return this.name + ': ' + this.message + code + } + } + + cssSyntaxError = CssSyntaxError; + CssSyntaxError.default = CssSyntaxError; + return cssSyntaxError; +} + +var stringifier; +var hasRequiredStringifier; + +function requireStringifier () { + if (hasRequiredStringifier) return stringifier; + hasRequiredStringifier = 1; + + const DEFAULT_RAW = { + after: '\n', + beforeClose: '\n', + beforeComment: '\n', + beforeDecl: '\n', + beforeOpen: ' ', + beforeRule: '\n', + colon: ': ', + commentLeft: ' ', + commentRight: ' ', + emptyBody: '', + indent: ' ', + semicolon: false + }; + + function capitalize(str) { + return str[0].toUpperCase() + str.slice(1) + } + + class Stringifier { + constructor(builder) { + this.builder = builder; + } + + atrule(node, semicolon) { + let name = '@' + node.name; + let params = node.params ? this.rawValue(node, 'params') : ''; + + if (typeof node.raws.afterName !== 'undefined') { + name += node.raws.afterName; + } else if (params) { + name += ' '; + } + + if (node.nodes) { + this.block(node, name + params); + } else { + let end = (node.raws.between || '') + (semicolon ? ';' : ''); + this.builder(name + params + end, node); + } + } + + beforeAfter(node, detect) { + let value; + if (node.type === 'decl') { + value = this.raw(node, null, 'beforeDecl'); + } else if (node.type === 'comment') { + value = this.raw(node, null, 'beforeComment'); + } else if (detect === 'before') { + value = this.raw(node, null, 'beforeRule'); + } else { + value = this.raw(node, null, 'beforeClose'); + } + + let buf = node.parent; + let depth = 0; + while (buf && buf.type !== 'root') { + depth += 1; + buf = buf.parent; + } + + if (value.includes('\n')) { + let indent = this.raw(node, null, 'indent'); + if (indent.length) { + for (let step = 0; step < depth; step++) value += indent; + } + } + + return value + } + + block(node, start) { + let between = this.raw(node, 'between', 'beforeOpen'); + this.builder(start + between + '{', node, 'start'); + + let after; + if (node.nodes && node.nodes.length) { + this.body(node); + after = this.raw(node, 'after'); + } else { + after = this.raw(node, 'after', 'emptyBody'); + } + + if (after) this.builder(after); + this.builder('}', node, 'end'); + } + + body(node) { + let last = node.nodes.length - 1; + while (last > 0) { + if (node.nodes[last].type !== 'comment') break + last -= 1; + } + + let semicolon = this.raw(node, 'semicolon'); + for (let i = 0; i < node.nodes.length; i++) { + let child = node.nodes[i]; + let before = this.raw(child, 'before'); + if (before) this.builder(before); + this.stringify(child, last !== i || semicolon); + } + } + + comment(node) { + let left = this.raw(node, 'left', 'commentLeft'); + let right = this.raw(node, 'right', 'commentRight'); + this.builder('/*' + left + node.text + right + '*/', node); + } + + decl(node, semicolon) { + let between = this.raw(node, 'between', 'colon'); + let string = node.prop + between + this.rawValue(node, 'value'); + + if (node.important) { + string += node.raws.important || ' !important'; + } + + if (semicolon) string += ';'; + this.builder(string, node); + } + + document(node) { + this.body(node); + } + + raw(node, own, detect) { + let value; + if (!detect) detect = own; + + // Already had + if (own) { + value = node.raws[own]; + if (typeof value !== 'undefined') return value + } + + let parent = node.parent; + + if (detect === 'before') { + // Hack for first rule in CSS + if (!parent || (parent.type === 'root' && parent.first === node)) { + return '' + } + + // `root` nodes in `document` should use only their own raws + if (parent && parent.type === 'document') { + return '' + } + } + + // Floating child without parent + if (!parent) return DEFAULT_RAW[detect] + + // Detect style by other nodes + let root = node.root(); + if (!root.rawCache) root.rawCache = {}; + if (typeof root.rawCache[detect] !== 'undefined') { + return root.rawCache[detect] + } + + if (detect === 'before' || detect === 'after') { + return this.beforeAfter(node, detect) + } else { + let method = 'raw' + capitalize(detect); + if (this[method]) { + value = this[method](root, node); + } else { + root.walk(i => { + value = i.raws[own]; + if (typeof value !== 'undefined') return false + }); + } + } + + if (typeof value === 'undefined') value = DEFAULT_RAW[detect]; + + root.rawCache[detect] = value; + return value + } + + rawBeforeClose(root) { + let value; + root.walk(i => { + if (i.nodes && i.nodes.length > 0) { + if (typeof i.raws.after !== 'undefined') { + value = i.raws.after; + if (value.includes('\n')) { + value = value.replace(/[^\n]+$/, ''); + } + return false + } + } + }); + if (value) value = value.replace(/\S/g, ''); + return value + } + + rawBeforeComment(root, node) { + let value; + root.walkComments(i => { + if (typeof i.raws.before !== 'undefined') { + value = i.raws.before; + if (value.includes('\n')) { + value = value.replace(/[^\n]+$/, ''); + } + return false + } + }); + if (typeof value === 'undefined') { + value = this.raw(node, null, 'beforeDecl'); + } else if (value) { + value = value.replace(/\S/g, ''); + } + return value + } + + rawBeforeDecl(root, node) { + let value; + root.walkDecls(i => { + if (typeof i.raws.before !== 'undefined') { + value = i.raws.before; + if (value.includes('\n')) { + value = value.replace(/[^\n]+$/, ''); + } + return false + } + }); + if (typeof value === 'undefined') { + value = this.raw(node, null, 'beforeRule'); + } else if (value) { + value = value.replace(/\S/g, ''); + } + return value + } + + rawBeforeOpen(root) { + let value; + root.walk(i => { + if (i.type !== 'decl') { + value = i.raws.between; + if (typeof value !== 'undefined') return false + } + }); + return value + } + + rawBeforeRule(root) { + let value; + root.walk(i => { + if (i.nodes && (i.parent !== root || root.first !== i)) { + if (typeof i.raws.before !== 'undefined') { + value = i.raws.before; + if (value.includes('\n')) { + value = value.replace(/[^\n]+$/, ''); + } + return false + } + } + }); + if (value) value = value.replace(/\S/g, ''); + return value + } + + rawColon(root) { + let value; + root.walkDecls(i => { + if (typeof i.raws.between !== 'undefined') { + value = i.raws.between.replace(/[^\s:]/g, ''); + return false + } + }); + return value + } + + rawEmptyBody(root) { + let value; + root.walk(i => { + if (i.nodes && i.nodes.length === 0) { + value = i.raws.after; + if (typeof value !== 'undefined') return false + } + }); + return value + } + + rawIndent(root) { + if (root.raws.indent) return root.raws.indent + let value; + root.walk(i => { + let p = i.parent; + if (p && p !== root && p.parent && p.parent === root) { + if (typeof i.raws.before !== 'undefined') { + let parts = i.raws.before.split('\n'); + value = parts[parts.length - 1]; + value = value.replace(/\S/g, ''); + return false + } + } + }); + return value + } + + rawSemicolon(root) { + let value; + root.walk(i => { + if (i.nodes && i.nodes.length && i.last.type === 'decl') { + value = i.raws.semicolon; + if (typeof value !== 'undefined') return false + } + }); + return value + } + + rawValue(node, prop) { + let value = node[prop]; + let raw = node.raws[prop]; + if (raw && raw.value === value) { + return raw.raw + } + + return value + } + + root(node) { + this.body(node); + if (node.raws.after) this.builder(node.raws.after); + } + + rule(node) { + this.block(node, this.rawValue(node, 'selector')); + if (node.raws.ownSemicolon) { + this.builder(node.raws.ownSemicolon, node, 'end'); + } + } + + stringify(node, semicolon) { + /* c8 ignore start */ + if (!this[node.type]) { + throw new Error( + 'Unknown AST node type ' + + node.type + + '. ' + + 'Maybe you need to change PostCSS stringifier.' + ) + } + /* c8 ignore stop */ + this[node.type](node, semicolon); + } + } + + stringifier = Stringifier; + Stringifier.default = Stringifier; + return stringifier; +} + +var stringify_1; +var hasRequiredStringify; + +function requireStringify () { + if (hasRequiredStringify) return stringify_1; + hasRequiredStringify = 1; + + let Stringifier = requireStringifier(); + + function stringify(node, builder) { + let str = new Stringifier(builder); + str.stringify(node); + } + + stringify_1 = stringify; + stringify.default = stringify; + return stringify_1; +} + +var symbols = {}; + +var hasRequiredSymbols; + +function requireSymbols () { + if (hasRequiredSymbols) return symbols; + hasRequiredSymbols = 1; + + symbols.isClean = Symbol('isClean'); + + symbols.my = Symbol('my'); + return symbols; +} + +var node; +var hasRequiredNode; + +function requireNode () { + if (hasRequiredNode) return node; + hasRequiredNode = 1; + + let CssSyntaxError = requireCssSyntaxError(); + let Stringifier = requireStringifier(); + let stringify = requireStringify(); + let { isClean, my } = requireSymbols(); + + function cloneNode(obj, parent) { + let cloned = new obj.constructor(); + + for (let i in obj) { + if (!Object.prototype.hasOwnProperty.call(obj, i)) { + /* c8 ignore next 2 */ + continue + } + if (i === 'proxyCache') continue + let value = obj[i]; + let type = typeof value; + + if (i === 'parent' && type === 'object') { + if (parent) cloned[i] = parent; + } else if (i === 'source') { + cloned[i] = value; + } else if (Array.isArray(value)) { + cloned[i] = value.map(j => cloneNode(j, cloned)); + } else { + if (type === 'object' && value !== null) value = cloneNode(value); + cloned[i] = value; + } + } + + return cloned + } + + function sourceOffset(inputCSS, position) { + // Not all custom syntaxes support `offset` in `source.start` and `source.end` + if (position && typeof position.offset !== 'undefined') { + return position.offset + } + + let column = 1; + let line = 1; + let offset = 0; + + for (let i = 0; i < inputCSS.length; i++) { + if (line === position.line && column === position.column) { + offset = i; + break + } + + if (inputCSS[i] === '\n') { + column = 1; + line += 1; + } else { + column += 1; + } + } + + return offset + } + + class Node { + get proxyOf() { + return this + } + + constructor(defaults = {}) { + this.raws = {}; + this[isClean] = false; + this[my] = true; + + for (let name in defaults) { + if (name === 'nodes') { + this.nodes = []; + for (let node of defaults[name]) { + if (typeof node.clone === 'function') { + this.append(node.clone()); + } else { + this.append(node); + } + } + } else { + this[name] = defaults[name]; + } + } + } + + addToError(error) { + error.postcssNode = this; + if (error.stack && this.source && /\n\s{4}at /.test(error.stack)) { + let s = this.source; + error.stack = error.stack.replace( + /\n\s{4}at /, + `$&${s.input.from}:${s.start.line}:${s.start.column}$&` + ); + } + return error + } + + after(add) { + this.parent.insertAfter(this, add); + return this + } + + assign(overrides = {}) { + for (let name in overrides) { + this[name] = overrides[name]; + } + return this + } + + before(add) { + this.parent.insertBefore(this, add); + return this + } + + cleanRaws(keepBetween) { + delete this.raws.before; + delete this.raws.after; + if (!keepBetween) delete this.raws.between; + } + + clone(overrides = {}) { + let cloned = cloneNode(this); + for (let name in overrides) { + cloned[name] = overrides[name]; + } + return cloned + } + + cloneAfter(overrides = {}) { + let cloned = this.clone(overrides); + this.parent.insertAfter(this, cloned); + return cloned + } + + cloneBefore(overrides = {}) { + let cloned = this.clone(overrides); + this.parent.insertBefore(this, cloned); + return cloned + } + + error(message, opts = {}) { + if (this.source) { + let { end, start } = this.rangeBy(opts); + return this.source.input.error( + message, + { column: start.column, line: start.line }, + { column: end.column, line: end.line }, + opts + ) + } + return new CssSyntaxError(message) + } + + getProxyProcessor() { + return { + get(node, prop) { + if (prop === 'proxyOf') { + return node + } else if (prop === 'root') { + return () => node.root().toProxy() + } else { + return node[prop] + } + }, + + set(node, prop, value) { + if (node[prop] === value) return true + node[prop] = value; + if ( + prop === 'prop' || + prop === 'value' || + prop === 'name' || + prop === 'params' || + prop === 'important' || + /* c8 ignore next */ + prop === 'text' + ) { + node.markDirty(); + } + return true + } + } + } + + /* c8 ignore next 3 */ + markClean() { + this[isClean] = true; + } + + markDirty() { + if (this[isClean]) { + this[isClean] = false; + let next = this; + while ((next = next.parent)) { + next[isClean] = false; + } + } + } + + next() { + if (!this.parent) return undefined + let index = this.parent.index(this); + return this.parent.nodes[index + 1] + } + + positionBy(opts = {}) { + let pos = this.source.start; + if (opts.index) { + pos = this.positionInside(opts.index); + } else if (opts.word) { + let inputString = + 'document' in this.source.input + ? this.source.input.document + : this.source.input.css; + let stringRepresentation = inputString.slice( + sourceOffset(inputString, this.source.start), + sourceOffset(inputString, this.source.end) + ); + let index = stringRepresentation.indexOf(opts.word); + if (index !== -1) pos = this.positionInside(index); + } + return pos + } + + positionInside(index) { + let column = this.source.start.column; + let line = this.source.start.line; + let inputString = + 'document' in this.source.input + ? this.source.input.document + : this.source.input.css; + let offset = sourceOffset(inputString, this.source.start); + let end = offset + index; + + for (let i = offset; i < end; i++) { + if (inputString[i] === '\n') { + column = 1; + line += 1; + } else { + column += 1; + } + } + + return { column, line, offset: end } + } + + prev() { + if (!this.parent) return undefined + let index = this.parent.index(this); + return this.parent.nodes[index - 1] + } + + rangeBy(opts = {}) { + let inputString = + 'document' in this.source.input + ? this.source.input.document + : this.source.input.css; + let start = { + column: this.source.start.column, + line: this.source.start.line, + offset: sourceOffset(inputString, this.source.start) + }; + let end = this.source.end + ? { + column: this.source.end.column + 1, + line: this.source.end.line, + offset: + typeof this.source.end.offset === 'number' + ? // `source.end.offset` is exclusive, so we don't need to add 1 + this.source.end.offset + : // Since line/column in this.source.end is inclusive, + // the `sourceOffset(... , this.source.end)` returns an inclusive offset. + // So, we add 1 to convert it to exclusive. + sourceOffset(inputString, this.source.end) + 1 + } + : { + column: start.column + 1, + line: start.line, + offset: start.offset + 1 + }; + + if (opts.word) { + let stringRepresentation = inputString.slice( + sourceOffset(inputString, this.source.start), + sourceOffset(inputString, this.source.end) + ); + let index = stringRepresentation.indexOf(opts.word); + if (index !== -1) { + start = this.positionInside(index); + end = this.positionInside(index + opts.word.length); + } + } else { + if (opts.start) { + start = { + column: opts.start.column, + line: opts.start.line, + offset: sourceOffset(inputString, opts.start) + }; + } else if (opts.index) { + start = this.positionInside(opts.index); + } + + if (opts.end) { + end = { + column: opts.end.column, + line: opts.end.line, + offset: sourceOffset(inputString, opts.end) + }; + } else if (typeof opts.endIndex === 'number') { + end = this.positionInside(opts.endIndex); + } else if (opts.index) { + end = this.positionInside(opts.index + 1); + } + } + + if ( + end.line < start.line || + (end.line === start.line && end.column <= start.column) + ) { + end = { + column: start.column + 1, + line: start.line, + offset: start.offset + 1 + }; + } + + return { end, start } + } + + raw(prop, defaultType) { + let str = new Stringifier(); + return str.raw(this, prop, defaultType) + } + + remove() { + if (this.parent) { + this.parent.removeChild(this); + } + this.parent = undefined; + return this + } + + replaceWith(...nodes) { + if (this.parent) { + let bookmark = this; + let foundSelf = false; + for (let node of nodes) { + if (node === this) { + foundSelf = true; + } else if (foundSelf) { + this.parent.insertAfter(bookmark, node); + bookmark = node; + } else { + this.parent.insertBefore(bookmark, node); + } + } + + if (!foundSelf) { + this.remove(); + } + } + + return this + } + + root() { + let result = this; + while (result.parent && result.parent.type !== 'document') { + result = result.parent; + } + return result + } + + toJSON(_, inputs) { + let fixed = {}; + let emitInputs = inputs == null; + inputs = inputs || new Map(); + let inputsNextIndex = 0; + + for (let name in this) { + if (!Object.prototype.hasOwnProperty.call(this, name)) { + /* c8 ignore next 2 */ + continue + } + if (name === 'parent' || name === 'proxyCache') continue + let value = this[name]; + + if (Array.isArray(value)) { + fixed[name] = value.map(i => { + if (typeof i === 'object' && i.toJSON) { + return i.toJSON(null, inputs) + } else { + return i + } + }); + } else if (typeof value === 'object' && value.toJSON) { + fixed[name] = value.toJSON(null, inputs); + } else if (name === 'source') { + if (value == null) continue + let inputId = inputs.get(value.input); + if (inputId == null) { + inputId = inputsNextIndex; + inputs.set(value.input, inputsNextIndex); + inputsNextIndex++; + } + fixed[name] = { + end: value.end, + inputId, + start: value.start + }; + } else { + fixed[name] = value; + } + } + + if (emitInputs) { + fixed.inputs = [...inputs.keys()].map(input => input.toJSON()); + } + + return fixed + } + + toProxy() { + if (!this.proxyCache) { + this.proxyCache = new Proxy(this, this.getProxyProcessor()); + } + return this.proxyCache + } + + toString(stringifier = stringify) { + if (stringifier.stringify) stringifier = stringifier.stringify; + let result = ''; + stringifier(this, i => { + result += i; + }); + return result + } + + warn(result, text, opts = {}) { + let data = { node: this }; + for (let i in opts) data[i] = opts[i]; + return result.warn(text, data) + } + } + + node = Node; + Node.default = Node; + return node; +} + +var comment; +var hasRequiredComment; + +function requireComment () { + if (hasRequiredComment) return comment; + hasRequiredComment = 1; + + let Node = requireNode(); + + class Comment extends Node { + constructor(defaults) { + super(defaults); + this.type = 'comment'; + } + } + + comment = Comment; + Comment.default = Comment; + return comment; +} + +var declaration; +var hasRequiredDeclaration; + +function requireDeclaration () { + if (hasRequiredDeclaration) return declaration; + hasRequiredDeclaration = 1; + + let Node = requireNode(); + + class Declaration extends Node { + get variable() { + return this.prop.startsWith('--') || this.prop[0] === '$' + } + + constructor(defaults) { + if ( + defaults && + typeof defaults.value !== 'undefined' && + typeof defaults.value !== 'string' + ) { + defaults = { ...defaults, value: String(defaults.value) }; + } + super(defaults); + this.type = 'decl'; + } + } + + declaration = Declaration; + Declaration.default = Declaration; + return declaration; +} + +var container; +var hasRequiredContainer; + +function requireContainer () { + if (hasRequiredContainer) return container; + hasRequiredContainer = 1; + + let Comment = requireComment(); + let Declaration = requireDeclaration(); + let Node = requireNode(); + let { isClean, my } = requireSymbols(); + + let AtRule, parse, Root, Rule; + + function cleanSource(nodes) { + return nodes.map(i => { + if (i.nodes) i.nodes = cleanSource(i.nodes); + delete i.source; + return i + }) + } + + function markTreeDirty(node) { + node[isClean] = false; + if (node.proxyOf.nodes) { + for (let i of node.proxyOf.nodes) { + markTreeDirty(i); + } + } + } + + class Container extends Node { + get first() { + if (!this.proxyOf.nodes) return undefined + return this.proxyOf.nodes[0] + } + + get last() { + if (!this.proxyOf.nodes) return undefined + return this.proxyOf.nodes[this.proxyOf.nodes.length - 1] + } + + append(...children) { + for (let child of children) { + let nodes = this.normalize(child, this.last); + for (let node of nodes) this.proxyOf.nodes.push(node); + } + + this.markDirty(); + + return this + } + + cleanRaws(keepBetween) { + super.cleanRaws(keepBetween); + if (this.nodes) { + for (let node of this.nodes) node.cleanRaws(keepBetween); + } + } + + each(callback) { + if (!this.proxyOf.nodes) return undefined + let iterator = this.getIterator(); + + let index, result; + while (this.indexes[iterator] < this.proxyOf.nodes.length) { + index = this.indexes[iterator]; + result = callback(this.proxyOf.nodes[index], index); + if (result === false) break + + this.indexes[iterator] += 1; + } + + delete this.indexes[iterator]; + return result + } + + every(condition) { + return this.nodes.every(condition) + } + + getIterator() { + if (!this.lastEach) this.lastEach = 0; + if (!this.indexes) this.indexes = {}; + + this.lastEach += 1; + let iterator = this.lastEach; + this.indexes[iterator] = 0; + + return iterator + } + + getProxyProcessor() { + return { + get(node, prop) { + if (prop === 'proxyOf') { + return node + } else if (!node[prop]) { + return node[prop] + } else if ( + prop === 'each' || + (typeof prop === 'string' && prop.startsWith('walk')) + ) { + return (...args) => { + return node[prop]( + ...args.map(i => { + if (typeof i === 'function') { + return (child, index) => i(child.toProxy(), index) + } else { + return i + } + }) + ) + } + } else if (prop === 'every' || prop === 'some') { + return cb => { + return node[prop]((child, ...other) => + cb(child.toProxy(), ...other) + ) + } + } else if (prop === 'root') { + return () => node.root().toProxy() + } else if (prop === 'nodes') { + return node.nodes.map(i => i.toProxy()) + } else if (prop === 'first' || prop === 'last') { + return node[prop].toProxy() + } else { + return node[prop] + } + }, + + set(node, prop, value) { + if (node[prop] === value) return true + node[prop] = value; + if (prop === 'name' || prop === 'params' || prop === 'selector') { + node.markDirty(); + } + return true + } + } + } + + index(child) { + if (typeof child === 'number') return child + if (child.proxyOf) child = child.proxyOf; + return this.proxyOf.nodes.indexOf(child) + } + + insertAfter(exist, add) { + let existIndex = this.index(exist); + let nodes = this.normalize(add, this.proxyOf.nodes[existIndex]).reverse(); + existIndex = this.index(exist); + for (let node of nodes) this.proxyOf.nodes.splice(existIndex + 1, 0, node); + + let index; + for (let id in this.indexes) { + index = this.indexes[id]; + if (existIndex < index) { + this.indexes[id] = index + nodes.length; + } + } + + this.markDirty(); + + return this + } + + insertBefore(exist, add) { + let existIndex = this.index(exist); + let type = existIndex === 0 ? 'prepend' : false; + let nodes = this.normalize( + add, + this.proxyOf.nodes[existIndex], + type + ).reverse(); + existIndex = this.index(exist); + for (let node of nodes) this.proxyOf.nodes.splice(existIndex, 0, node); + + let index; + for (let id in this.indexes) { + index = this.indexes[id]; + if (existIndex <= index) { + this.indexes[id] = index + nodes.length; + } + } + + this.markDirty(); + + return this + } + + normalize(nodes, sample) { + if (typeof nodes === 'string') { + nodes = cleanSource(parse(nodes).nodes); + } else if (typeof nodes === 'undefined') { + nodes = []; + } else if (Array.isArray(nodes)) { + nodes = nodes.slice(0); + for (let i of nodes) { + if (i.parent) i.parent.removeChild(i, 'ignore'); + } + } else if (nodes.type === 'root' && this.type !== 'document') { + nodes = nodes.nodes.slice(0); + for (let i of nodes) { + if (i.parent) i.parent.removeChild(i, 'ignore'); + } + } else if (nodes.type) { + nodes = [nodes]; + } else if (nodes.prop) { + if (typeof nodes.value === 'undefined') { + throw new Error('Value field is missed in node creation') + } else if (typeof nodes.value !== 'string') { + nodes.value = String(nodes.value); + } + nodes = [new Declaration(nodes)]; + } else if (nodes.selector || nodes.selectors) { + nodes = [new Rule(nodes)]; + } else if (nodes.name) { + nodes = [new AtRule(nodes)]; + } else if (nodes.text) { + nodes = [new Comment(nodes)]; + } else { + throw new Error('Unknown node type in node creation') + } + + let processed = nodes.map(i => { + /* c8 ignore next */ + if (!i[my]) Container.rebuild(i); + i = i.proxyOf; + if (i.parent) i.parent.removeChild(i); + if (i[isClean]) markTreeDirty(i); + + if (!i.raws) i.raws = {}; + if (typeof i.raws.before === 'undefined') { + if (sample && typeof sample.raws.before !== 'undefined') { + i.raws.before = sample.raws.before.replace(/\S/g, ''); + } + } + i.parent = this.proxyOf; + return i + }); + + return processed + } + + prepend(...children) { + children = children.reverse(); + for (let child of children) { + let nodes = this.normalize(child, this.first, 'prepend').reverse(); + for (let node of nodes) this.proxyOf.nodes.unshift(node); + for (let id in this.indexes) { + this.indexes[id] = this.indexes[id] + nodes.length; + } + } + + this.markDirty(); + + return this + } + + push(child) { + child.parent = this; + this.proxyOf.nodes.push(child); + return this + } + + removeAll() { + for (let node of this.proxyOf.nodes) node.parent = undefined; + this.proxyOf.nodes = []; + + this.markDirty(); + + return this + } + + removeChild(child) { + child = this.index(child); + this.proxyOf.nodes[child].parent = undefined; + this.proxyOf.nodes.splice(child, 1); + + let index; + for (let id in this.indexes) { + index = this.indexes[id]; + if (index >= child) { + this.indexes[id] = index - 1; + } + } + + this.markDirty(); + + return this + } + + replaceValues(pattern, opts, callback) { + if (!callback) { + callback = opts; + opts = {}; + } + + this.walkDecls(decl => { + if (opts.props && !opts.props.includes(decl.prop)) return + if (opts.fast && !decl.value.includes(opts.fast)) return + + decl.value = decl.value.replace(pattern, callback); + }); + + this.markDirty(); + + return this + } + + some(condition) { + return this.nodes.some(condition) + } + + walk(callback) { + return this.each((child, i) => { + let result; + try { + result = callback(child, i); + } catch (e) { + throw child.addToError(e) + } + if (result !== false && child.walk) { + result = child.walk(callback); + } + + return result + }) + } + + walkAtRules(name, callback) { + if (!callback) { + callback = name; + return this.walk((child, i) => { + if (child.type === 'atrule') { + return callback(child, i) + } + }) + } + if (name instanceof RegExp) { + return this.walk((child, i) => { + if (child.type === 'atrule' && name.test(child.name)) { + return callback(child, i) + } + }) + } + return this.walk((child, i) => { + if (child.type === 'atrule' && child.name === name) { + return callback(child, i) + } + }) + } + + walkComments(callback) { + return this.walk((child, i) => { + if (child.type === 'comment') { + return callback(child, i) + } + }) + } + + walkDecls(prop, callback) { + if (!callback) { + callback = prop; + return this.walk((child, i) => { + if (child.type === 'decl') { + return callback(child, i) + } + }) + } + if (prop instanceof RegExp) { + return this.walk((child, i) => { + if (child.type === 'decl' && prop.test(child.prop)) { + return callback(child, i) + } + }) + } + return this.walk((child, i) => { + if (child.type === 'decl' && child.prop === prop) { + return callback(child, i) + } + }) + } + + walkRules(selector, callback) { + if (!callback) { + callback = selector; + + return this.walk((child, i) => { + if (child.type === 'rule') { + return callback(child, i) + } + }) + } + if (selector instanceof RegExp) { + return this.walk((child, i) => { + if (child.type === 'rule' && selector.test(child.selector)) { + return callback(child, i) + } + }) + } + return this.walk((child, i) => { + if (child.type === 'rule' && child.selector === selector) { + return callback(child, i) + } + }) + } + } + + Container.registerParse = dependant => { + parse = dependant; + }; + + Container.registerRule = dependant => { + Rule = dependant; + }; + + Container.registerAtRule = dependant => { + AtRule = dependant; + }; + + Container.registerRoot = dependant => { + Root = dependant; + }; + + container = Container; + Container.default = Container; + + /* c8 ignore start */ + Container.rebuild = node => { + if (node.type === 'atrule') { + Object.setPrototypeOf(node, AtRule.prototype); + } else if (node.type === 'rule') { + Object.setPrototypeOf(node, Rule.prototype); + } else if (node.type === 'decl') { + Object.setPrototypeOf(node, Declaration.prototype); + } else if (node.type === 'comment') { + Object.setPrototypeOf(node, Comment.prototype); + } else if (node.type === 'root') { + Object.setPrototypeOf(node, Root.prototype); + } + + node[my] = true; + + if (node.nodes) { + node.nodes.forEach(child => { + Container.rebuild(child); + }); + } + }; + /* c8 ignore stop */ + return container; +} + +var atRule; +var hasRequiredAtRule; + +function requireAtRule () { + if (hasRequiredAtRule) return atRule; + hasRequiredAtRule = 1; + + let Container = requireContainer(); + + class AtRule extends Container { + constructor(defaults) { + super(defaults); + this.type = 'atrule'; + } + + append(...children) { + if (!this.proxyOf.nodes) this.nodes = []; + return super.append(...children) + } + + prepend(...children) { + if (!this.proxyOf.nodes) this.nodes = []; + return super.prepend(...children) + } + } + + atRule = AtRule; + AtRule.default = AtRule; + + Container.registerAtRule(AtRule); + return atRule; +} + +var document; +var hasRequiredDocument; + +function requireDocument () { + if (hasRequiredDocument) return document; + hasRequiredDocument = 1; + + let Container = requireContainer(); + + let LazyResult, Processor; + + class Document extends Container { + constructor(defaults) { + // type needs to be passed to super, otherwise child roots won't be normalized correctly + super({ type: 'document', ...defaults }); + + if (!this.nodes) { + this.nodes = []; + } + } + + toResult(opts = {}) { + let lazy = new LazyResult(new Processor(), this, opts); + + return lazy.stringify() + } + } + + Document.registerLazyResult = dependant => { + LazyResult = dependant; + }; + + Document.registerProcessor = dependant => { + Processor = dependant; + }; + + document = Document; + Document.default = Document; + return document; +} + +var nonSecure; +var hasRequiredNonSecure; + +function requireNonSecure () { + if (hasRequiredNonSecure) return nonSecure; + hasRequiredNonSecure = 1; + // This alphabet uses `A-Za-z0-9_-` symbols. + // The order of characters is optimized for better gzip and brotli compression. + // References to the same file (works both for gzip and brotli): + // `'use`, `andom`, and `rict'` + // References to the brotli default dictionary: + // `-26T`, `1983`, `40px`, `75px`, `bush`, `jack`, `mind`, `very`, and `wolf` + let urlAlphabet = + 'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict'; + + let customAlphabet = (alphabet, defaultSize = 21) => { + return (size = defaultSize) => { + let id = ''; + // A compact alternative for `for (var i = 0; i < step; i++)`. + let i = size | 0; + while (i--) { + // `| 0` is more compact and faster than `Math.floor()`. + id += alphabet[(Math.random() * alphabet.length) | 0]; + } + return id + } + }; + + let nanoid = (size = 21) => { + let id = ''; + // A compact alternative for `for (var i = 0; i < step; i++)`. + let i = size | 0; + while (i--) { + // `| 0` is more compact and faster than `Math.floor()`. + id += urlAlphabet[(Math.random() * 64) | 0]; + } + return id + }; + + nonSecure = { nanoid, customAlphabet }; + return nonSecure; +} + +var sourceMap = {}; + +var sourceMapGenerator = {}; + +var base64Vlq = {}; + +var base64 = {}; + +/* -*- Mode: js; js-indent-level: 2; -*- */ + +var hasRequiredBase64; + +function requireBase64 () { + if (hasRequiredBase64) return base64; + hasRequiredBase64 = 1; + /* + * Copyright 2011 Mozilla Foundation and contributors + * Licensed under the New BSD license. See LICENSE or: + * http://opensource.org/licenses/BSD-3-Clause + */ + + var intToCharMap = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.split(''); + + /** + * Encode an integer in the range of 0 to 63 to a single base 64 digit. + */ + base64.encode = function (number) { + if (0 <= number && number < intToCharMap.length) { + return intToCharMap[number]; + } + throw new TypeError("Must be between 0 and 63: " + number); + }; + + /** + * Decode a single base 64 character code digit to an integer. Returns -1 on + * failure. + */ + base64.decode = function (charCode) { + var bigA = 65; // 'A' + var bigZ = 90; // 'Z' + + var littleA = 97; // 'a' + var littleZ = 122; // 'z' + + var zero = 48; // '0' + var nine = 57; // '9' + + var plus = 43; // '+' + var slash = 47; // '/' + + var littleOffset = 26; + var numberOffset = 52; + + // 0 - 25: ABCDEFGHIJKLMNOPQRSTUVWXYZ + if (bigA <= charCode && charCode <= bigZ) { + return (charCode - bigA); + } + + // 26 - 51: abcdefghijklmnopqrstuvwxyz + if (littleA <= charCode && charCode <= littleZ) { + return (charCode - littleA + littleOffset); + } + + // 52 - 61: 0123456789 + if (zero <= charCode && charCode <= nine) { + return (charCode - zero + numberOffset); + } + + // 62: + + if (charCode == plus) { + return 62; + } + + // 63: / + if (charCode == slash) { + return 63; + } + + // Invalid base64 digit. + return -1; + }; + return base64; +} + +/* -*- Mode: js; js-indent-level: 2; -*- */ + +var hasRequiredBase64Vlq; + +function requireBase64Vlq () { + if (hasRequiredBase64Vlq) return base64Vlq; + hasRequiredBase64Vlq = 1; + /* + * Copyright 2011 Mozilla Foundation and contributors + * Licensed under the New BSD license. See LICENSE or: + * http://opensource.org/licenses/BSD-3-Clause + * + * Based on the Base 64 VLQ implementation in Closure Compiler: + * https://code.google.com/p/closure-compiler/source/browse/trunk/src/com/google/debugging/sourcemap/Base64VLQ.java + * + * Copyright 2011 The Closure Compiler Authors. All rights reserved. + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following + * disclaimer in the documentation and/or other materials provided + * with the distribution. + * * Neither the name of Google Inc. nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + + var base64 = requireBase64(); + + // A single base 64 digit can contain 6 bits of data. For the base 64 variable + // length quantities we use in the source map spec, the first bit is the sign, + // the next four bits are the actual value, and the 6th bit is the + // continuation bit. The continuation bit tells us whether there are more + // digits in this value following this digit. + // + // Continuation + // | Sign + // | | + // V V + // 101011 + + var VLQ_BASE_SHIFT = 5; + + // binary: 100000 + var VLQ_BASE = 1 << VLQ_BASE_SHIFT; + + // binary: 011111 + var VLQ_BASE_MASK = VLQ_BASE - 1; + + // binary: 100000 + var VLQ_CONTINUATION_BIT = VLQ_BASE; + + /** + * Converts from a two-complement value to a value where the sign bit is + * placed in the least significant bit. For example, as decimals: + * 1 becomes 2 (10 binary), -1 becomes 3 (11 binary) + * 2 becomes 4 (100 binary), -2 becomes 5 (101 binary) + */ + function toVLQSigned(aValue) { + return aValue < 0 + ? ((-aValue) << 1) + 1 + : (aValue << 1) + 0; + } + + /** + * Converts to a two-complement value from a value where the sign bit is + * placed in the least significant bit. For example, as decimals: + * 2 (10 binary) becomes 1, 3 (11 binary) becomes -1 + * 4 (100 binary) becomes 2, 5 (101 binary) becomes -2 + */ + function fromVLQSigned(aValue) { + var isNegative = (aValue & 1) === 1; + var shifted = aValue >> 1; + return isNegative + ? -shifted + : shifted; + } + + /** + * Returns the base 64 VLQ encoded value. + */ + base64Vlq.encode = function base64VLQ_encode(aValue) { + var encoded = ""; + var digit; + + var vlq = toVLQSigned(aValue); + + do { + digit = vlq & VLQ_BASE_MASK; + vlq >>>= VLQ_BASE_SHIFT; + if (vlq > 0) { + // There are still more digits in this value, so we must make sure the + // continuation bit is marked. + digit |= VLQ_CONTINUATION_BIT; + } + encoded += base64.encode(digit); + } while (vlq > 0); + + return encoded; + }; + + /** + * Decodes the next base 64 VLQ value from the given string and returns the + * value and the rest of the string via the out parameter. + */ + base64Vlq.decode = function base64VLQ_decode(aStr, aIndex, aOutParam) { + var strLen = aStr.length; + var result = 0; + var shift = 0; + var continuation, digit; + + do { + if (aIndex >= strLen) { + throw new Error("Expected more digits in base 64 VLQ value."); + } + + digit = base64.decode(aStr.charCodeAt(aIndex++)); + if (digit === -1) { + throw new Error("Invalid base64 digit: " + aStr.charAt(aIndex - 1)); + } + + continuation = !!(digit & VLQ_CONTINUATION_BIT); + digit &= VLQ_BASE_MASK; + result = result + (digit << shift); + shift += VLQ_BASE_SHIFT; + } while (continuation); + + aOutParam.value = fromVLQSigned(result); + aOutParam.rest = aIndex; + }; + return base64Vlq; +} + +var util = {}; + +/* -*- Mode: js; js-indent-level: 2; -*- */ + +var hasRequiredUtil; + +function requireUtil () { + if (hasRequiredUtil) return util; + hasRequiredUtil = 1; + (function (exports$1) { + /* + * Copyright 2011 Mozilla Foundation and contributors + * Licensed under the New BSD license. See LICENSE or: + * http://opensource.org/licenses/BSD-3-Clause + */ + + /** + * This is a helper function for getting values from parameter/options + * objects. + * + * @param args The object we are extracting values from + * @param name The name of the property we are getting. + * @param defaultValue An optional value to return if the property is missing + * from the object. If this is not specified and the property is missing, an + * error will be thrown. + */ + function getArg(aArgs, aName, aDefaultValue) { + if (aName in aArgs) { + return aArgs[aName]; + } else if (arguments.length === 3) { + return aDefaultValue; + } else { + throw new Error('"' + aName + '" is a required argument.'); + } + } + exports$1.getArg = getArg; + + var urlRegexp = /^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/; + var dataUrlRegexp = /^data:.+\,.+$/; + + function urlParse(aUrl) { + var match = aUrl.match(urlRegexp); + if (!match) { + return null; + } + return { + scheme: match[1], + auth: match[2], + host: match[3], + port: match[4], + path: match[5] + }; + } + exports$1.urlParse = urlParse; + + function urlGenerate(aParsedUrl) { + var url = ''; + if (aParsedUrl.scheme) { + url += aParsedUrl.scheme + ':'; + } + url += '//'; + if (aParsedUrl.auth) { + url += aParsedUrl.auth + '@'; + } + if (aParsedUrl.host) { + url += aParsedUrl.host; + } + if (aParsedUrl.port) { + url += ":" + aParsedUrl.port; + } + if (aParsedUrl.path) { + url += aParsedUrl.path; + } + return url; + } + exports$1.urlGenerate = urlGenerate; + + var MAX_CACHED_INPUTS = 32; + + /** + * Takes some function `f(input) -> result` and returns a memoized version of + * `f`. + * + * We keep at most `MAX_CACHED_INPUTS` memoized results of `f` alive. The + * memoization is a dumb-simple, linear least-recently-used cache. + */ + function lruMemoize(f) { + var cache = []; + + return function(input) { + for (var i = 0; i < cache.length; i++) { + if (cache[i].input === input) { + var temp = cache[0]; + cache[0] = cache[i]; + cache[i] = temp; + return cache[0].result; + } + } + + var result = f(input); + + cache.unshift({ + input, + result, + }); + + if (cache.length > MAX_CACHED_INPUTS) { + cache.pop(); + } + + return result; + }; + } + + /** + * Normalizes a path, or the path portion of a URL: + * + * - Replaces consecutive slashes with one slash. + * - Removes unnecessary '.' parts. + * - Removes unnecessary '/..' parts. + * + * Based on code in the Node.js 'path' core module. + * + * @param aPath The path or url to normalize. + */ + var normalize = lruMemoize(function normalize(aPath) { + var path = aPath; + var url = urlParse(aPath); + if (url) { + if (!url.path) { + return aPath; + } + path = url.path; + } + var isAbsolute = exports$1.isAbsolute(path); + // Split the path into parts between `/` characters. This is much faster than + // using `.split(/\/+/g)`. + var parts = []; + var start = 0; + var i = 0; + while (true) { + start = i; + i = path.indexOf("/", start); + if (i === -1) { + parts.push(path.slice(start)); + break; + } else { + parts.push(path.slice(start, i)); + while (i < path.length && path[i] === "/") { + i++; + } + } + } + + for (var part, up = 0, i = parts.length - 1; i >= 0; i--) { + part = parts[i]; + if (part === '.') { + parts.splice(i, 1); + } else if (part === '..') { + up++; + } else if (up > 0) { + if (part === '') { + // The first part is blank if the path is absolute. Trying to go + // above the root is a no-op. Therefore we can remove all '..' parts + // directly after the root. + parts.splice(i + 1, up); + up = 0; + } else { + parts.splice(i, 2); + up--; + } + } + } + path = parts.join('/'); + + if (path === '') { + path = isAbsolute ? '/' : '.'; + } + + if (url) { + url.path = path; + return urlGenerate(url); + } + return path; + }); + exports$1.normalize = normalize; + + /** + * Joins two paths/URLs. + * + * @param aRoot The root path or URL. + * @param aPath The path or URL to be joined with the root. + * + * - If aPath is a URL or a data URI, aPath is returned, unless aPath is a + * scheme-relative URL: Then the scheme of aRoot, if any, is prepended + * first. + * - Otherwise aPath is a path. If aRoot is a URL, then its path portion + * is updated with the result and aRoot is returned. Otherwise the result + * is returned. + * - If aPath is absolute, the result is aPath. + * - Otherwise the two paths are joined with a slash. + * - Joining for example 'http://' and 'www.example.com' is also supported. + */ + function join(aRoot, aPath) { + if (aRoot === "") { + aRoot = "."; + } + if (aPath === "") { + aPath = "."; + } + var aPathUrl = urlParse(aPath); + var aRootUrl = urlParse(aRoot); + if (aRootUrl) { + aRoot = aRootUrl.path || '/'; + } + + // `join(foo, '//www.example.org')` + if (aPathUrl && !aPathUrl.scheme) { + if (aRootUrl) { + aPathUrl.scheme = aRootUrl.scheme; + } + return urlGenerate(aPathUrl); + } + + if (aPathUrl || aPath.match(dataUrlRegexp)) { + return aPath; + } + + // `join('http://', 'www.example.com')` + if (aRootUrl && !aRootUrl.host && !aRootUrl.path) { + aRootUrl.host = aPath; + return urlGenerate(aRootUrl); + } + + var joined = aPath.charAt(0) === '/' + ? aPath + : normalize(aRoot.replace(/\/+$/, '') + '/' + aPath); + + if (aRootUrl) { + aRootUrl.path = joined; + return urlGenerate(aRootUrl); + } + return joined; + } + exports$1.join = join; + + exports$1.isAbsolute = function (aPath) { + return aPath.charAt(0) === '/' || urlRegexp.test(aPath); + }; + + /** + * Make a path relative to a URL or another path. + * + * @param aRoot The root path or URL. + * @param aPath The path or URL to be made relative to aRoot. + */ + function relative(aRoot, aPath) { + if (aRoot === "") { + aRoot = "."; + } + + aRoot = aRoot.replace(/\/$/, ''); + + // It is possible for the path to be above the root. In this case, simply + // checking whether the root is a prefix of the path won't work. Instead, we + // need to remove components from the root one by one, until either we find + // a prefix that fits, or we run out of components to remove. + var level = 0; + while (aPath.indexOf(aRoot + '/') !== 0) { + var index = aRoot.lastIndexOf("/"); + if (index < 0) { + return aPath; + } + + // If the only part of the root that is left is the scheme (i.e. http://, + // file:///, etc.), one or more slashes (/), or simply nothing at all, we + // have exhausted all components, so the path is not relative to the root. + aRoot = aRoot.slice(0, index); + if (aRoot.match(/^([^\/]+:\/)?\/*$/)) { + return aPath; + } + + ++level; + } + + // Make sure we add a "../" for each component we removed from the root. + return Array(level + 1).join("../") + aPath.substr(aRoot.length + 1); + } + exports$1.relative = relative; + + var supportsNullProto = (function () { + var obj = Object.create(null); + return !('__proto__' in obj); + }()); + + function identity (s) { + return s; + } + + /** + * Because behavior goes wacky when you set `__proto__` on objects, we + * have to prefix all the strings in our set with an arbitrary character. + * + * See https://github.com/mozilla/source-map/pull/31 and + * https://github.com/mozilla/source-map/issues/30 + * + * @param String aStr + */ + function toSetString(aStr) { + if (isProtoString(aStr)) { + return '$' + aStr; + } + + return aStr; + } + exports$1.toSetString = supportsNullProto ? identity : toSetString; + + function fromSetString(aStr) { + if (isProtoString(aStr)) { + return aStr.slice(1); + } + + return aStr; + } + exports$1.fromSetString = supportsNullProto ? identity : fromSetString; + + function isProtoString(s) { + if (!s) { + return false; + } + + var length = s.length; + + if (length < 9 /* "__proto__".length */) { + return false; + } + + if (s.charCodeAt(length - 1) !== 95 /* '_' */ || + s.charCodeAt(length - 2) !== 95 /* '_' */ || + s.charCodeAt(length - 3) !== 111 /* 'o' */ || + s.charCodeAt(length - 4) !== 116 /* 't' */ || + s.charCodeAt(length - 5) !== 111 /* 'o' */ || + s.charCodeAt(length - 6) !== 114 /* 'r' */ || + s.charCodeAt(length - 7) !== 112 /* 'p' */ || + s.charCodeAt(length - 8) !== 95 /* '_' */ || + s.charCodeAt(length - 9) !== 95 /* '_' */) { + return false; + } + + for (var i = length - 10; i >= 0; i--) { + if (s.charCodeAt(i) !== 36 /* '$' */) { + return false; + } + } + + return true; + } + + /** + * Comparator between two mappings where the original positions are compared. + * + * Optionally pass in `true` as `onlyCompareGenerated` to consider two + * mappings with the same original source/line/column, but different generated + * line and column the same. Useful when searching for a mapping with a + * stubbed out mapping. + */ + function compareByOriginalPositions(mappingA, mappingB, onlyCompareOriginal) { + var cmp = strcmp(mappingA.source, mappingB.source); + if (cmp !== 0) { + return cmp; + } + + cmp = mappingA.originalLine - mappingB.originalLine; + if (cmp !== 0) { + return cmp; + } + + cmp = mappingA.originalColumn - mappingB.originalColumn; + if (cmp !== 0 || onlyCompareOriginal) { + return cmp; + } + + cmp = mappingA.generatedColumn - mappingB.generatedColumn; + if (cmp !== 0) { + return cmp; + } + + cmp = mappingA.generatedLine - mappingB.generatedLine; + if (cmp !== 0) { + return cmp; + } + + return strcmp(mappingA.name, mappingB.name); + } + exports$1.compareByOriginalPositions = compareByOriginalPositions; + + function compareByOriginalPositionsNoSource(mappingA, mappingB, onlyCompareOriginal) { + var cmp; + + cmp = mappingA.originalLine - mappingB.originalLine; + if (cmp !== 0) { + return cmp; + } + + cmp = mappingA.originalColumn - mappingB.originalColumn; + if (cmp !== 0 || onlyCompareOriginal) { + return cmp; + } + + cmp = mappingA.generatedColumn - mappingB.generatedColumn; + if (cmp !== 0) { + return cmp; + } + + cmp = mappingA.generatedLine - mappingB.generatedLine; + if (cmp !== 0) { + return cmp; + } + + return strcmp(mappingA.name, mappingB.name); + } + exports$1.compareByOriginalPositionsNoSource = compareByOriginalPositionsNoSource; + + /** + * Comparator between two mappings with deflated source and name indices where + * the generated positions are compared. + * + * Optionally pass in `true` as `onlyCompareGenerated` to consider two + * mappings with the same generated line and column, but different + * source/name/original line and column the same. Useful when searching for a + * mapping with a stubbed out mapping. + */ + function compareByGeneratedPositionsDeflated(mappingA, mappingB, onlyCompareGenerated) { + var cmp = mappingA.generatedLine - mappingB.generatedLine; + if (cmp !== 0) { + return cmp; + } + + cmp = mappingA.generatedColumn - mappingB.generatedColumn; + if (cmp !== 0 || onlyCompareGenerated) { + return cmp; + } + + cmp = strcmp(mappingA.source, mappingB.source); + if (cmp !== 0) { + return cmp; + } + + cmp = mappingA.originalLine - mappingB.originalLine; + if (cmp !== 0) { + return cmp; + } + + cmp = mappingA.originalColumn - mappingB.originalColumn; + if (cmp !== 0) { + return cmp; + } + + return strcmp(mappingA.name, mappingB.name); + } + exports$1.compareByGeneratedPositionsDeflated = compareByGeneratedPositionsDeflated; + + function compareByGeneratedPositionsDeflatedNoLine(mappingA, mappingB, onlyCompareGenerated) { + var cmp = mappingA.generatedColumn - mappingB.generatedColumn; + if (cmp !== 0 || onlyCompareGenerated) { + return cmp; + } + + cmp = strcmp(mappingA.source, mappingB.source); + if (cmp !== 0) { + return cmp; + } + + cmp = mappingA.originalLine - mappingB.originalLine; + if (cmp !== 0) { + return cmp; + } + + cmp = mappingA.originalColumn - mappingB.originalColumn; + if (cmp !== 0) { + return cmp; + } + + return strcmp(mappingA.name, mappingB.name); + } + exports$1.compareByGeneratedPositionsDeflatedNoLine = compareByGeneratedPositionsDeflatedNoLine; + + function strcmp(aStr1, aStr2) { + if (aStr1 === aStr2) { + return 0; + } + + if (aStr1 === null) { + return 1; // aStr2 !== null + } + + if (aStr2 === null) { + return -1; // aStr1 !== null + } + + if (aStr1 > aStr2) { + return 1; + } + + return -1; + } + + /** + * Comparator between two mappings with inflated source and name strings where + * the generated positions are compared. + */ + function compareByGeneratedPositionsInflated(mappingA, mappingB) { + var cmp = mappingA.generatedLine - mappingB.generatedLine; + if (cmp !== 0) { + return cmp; + } + + cmp = mappingA.generatedColumn - mappingB.generatedColumn; + if (cmp !== 0) { + return cmp; + } + + cmp = strcmp(mappingA.source, mappingB.source); + if (cmp !== 0) { + return cmp; + } + + cmp = mappingA.originalLine - mappingB.originalLine; + if (cmp !== 0) { + return cmp; + } + + cmp = mappingA.originalColumn - mappingB.originalColumn; + if (cmp !== 0) { + return cmp; + } + + return strcmp(mappingA.name, mappingB.name); + } + exports$1.compareByGeneratedPositionsInflated = compareByGeneratedPositionsInflated; + + /** + * Strip any JSON XSSI avoidance prefix from the string (as documented + * in the source maps specification), and then parse the string as + * JSON. + */ + function parseSourceMapInput(str) { + return JSON.parse(str.replace(/^\)]}'[^\n]*\n/, '')); + } + exports$1.parseSourceMapInput = parseSourceMapInput; + + /** + * Compute the URL of a source given the the source root, the source's + * URL, and the source map's URL. + */ + function computeSourceURL(sourceRoot, sourceURL, sourceMapURL) { + sourceURL = sourceURL || ''; + + if (sourceRoot) { + // This follows what Chrome does. + if (sourceRoot[sourceRoot.length - 1] !== '/' && sourceURL[0] !== '/') { + sourceRoot += '/'; + } + // The spec says: + // Line 4: An optional source root, useful for relocating source + // files on a server or removing repeated values in the + // “sources” entry. This value is prepended to the individual + // entries in the “source” field. + sourceURL = sourceRoot + sourceURL; + } + + // Historically, SourceMapConsumer did not take the sourceMapURL as + // a parameter. This mode is still somewhat supported, which is why + // this code block is conditional. However, it's preferable to pass + // the source map URL to SourceMapConsumer, so that this function + // can implement the source URL resolution algorithm as outlined in + // the spec. This block is basically the equivalent of: + // new URL(sourceURL, sourceMapURL).toString() + // ... except it avoids using URL, which wasn't available in the + // older releases of node still supported by this library. + // + // The spec says: + // If the sources are not absolute URLs after prepending of the + // “sourceRoot”, the sources are resolved relative to the + // SourceMap (like resolving script src in a html document). + if (sourceMapURL) { + var parsed = urlParse(sourceMapURL); + if (!parsed) { + throw new Error("sourceMapURL could not be parsed"); + } + if (parsed.path) { + // Strip the last path component, but keep the "/". + var index = parsed.path.lastIndexOf('/'); + if (index >= 0) { + parsed.path = parsed.path.substring(0, index + 1); + } + } + sourceURL = join(urlGenerate(parsed), sourceURL); + } + + return normalize(sourceURL); + } + exports$1.computeSourceURL = computeSourceURL; + } (util)); + return util; +} + +var arraySet = {}; + +/* -*- Mode: js; js-indent-level: 2; -*- */ + +var hasRequiredArraySet; + +function requireArraySet () { + if (hasRequiredArraySet) return arraySet; + hasRequiredArraySet = 1; + /* + * Copyright 2011 Mozilla Foundation and contributors + * Licensed under the New BSD license. See LICENSE or: + * http://opensource.org/licenses/BSD-3-Clause + */ + + var util = requireUtil(); + var has = Object.prototype.hasOwnProperty; + var hasNativeMap = typeof Map !== "undefined"; + + /** + * A data structure which is a combination of an array and a set. Adding a new + * member is O(1), testing for membership is O(1), and finding the index of an + * element is O(1). Removing elements from the set is not supported. Only + * strings are supported for membership. + */ + function ArraySet() { + this._array = []; + this._set = hasNativeMap ? new Map() : Object.create(null); + } + + /** + * Static method for creating ArraySet instances from an existing array. + */ + ArraySet.fromArray = function ArraySet_fromArray(aArray, aAllowDuplicates) { + var set = new ArraySet(); + for (var i = 0, len = aArray.length; i < len; i++) { + set.add(aArray[i], aAllowDuplicates); + } + return set; + }; + + /** + * Return how many unique items are in this ArraySet. If duplicates have been + * added, than those do not count towards the size. + * + * @returns Number + */ + ArraySet.prototype.size = function ArraySet_size() { + return hasNativeMap ? this._set.size : Object.getOwnPropertyNames(this._set).length; + }; + + /** + * Add the given string to this set. + * + * @param String aStr + */ + ArraySet.prototype.add = function ArraySet_add(aStr, aAllowDuplicates) { + var sStr = hasNativeMap ? aStr : util.toSetString(aStr); + var isDuplicate = hasNativeMap ? this.has(aStr) : has.call(this._set, sStr); + var idx = this._array.length; + if (!isDuplicate || aAllowDuplicates) { + this._array.push(aStr); + } + if (!isDuplicate) { + if (hasNativeMap) { + this._set.set(aStr, idx); + } else { + this._set[sStr] = idx; + } + } + }; + + /** + * Is the given string a member of this set? + * + * @param String aStr + */ + ArraySet.prototype.has = function ArraySet_has(aStr) { + if (hasNativeMap) { + return this._set.has(aStr); + } else { + var sStr = util.toSetString(aStr); + return has.call(this._set, sStr); + } + }; + + /** + * What is the index of the given string in the array? + * + * @param String aStr + */ + ArraySet.prototype.indexOf = function ArraySet_indexOf(aStr) { + if (hasNativeMap) { + var idx = this._set.get(aStr); + if (idx >= 0) { + return idx; + } + } else { + var sStr = util.toSetString(aStr); + if (has.call(this._set, sStr)) { + return this._set[sStr]; + } + } + + throw new Error('"' + aStr + '" is not in the set.'); + }; + + /** + * What is the element at the given index? + * + * @param Number aIdx + */ + ArraySet.prototype.at = function ArraySet_at(aIdx) { + if (aIdx >= 0 && aIdx < this._array.length) { + return this._array[aIdx]; + } + throw new Error('No element indexed by ' + aIdx); + }; + + /** + * Returns the array representation of this set (which has the proper indices + * indicated by indexOf). Note that this is a copy of the internal array used + * for storing the members so that no one can mess with internal state. + */ + ArraySet.prototype.toArray = function ArraySet_toArray() { + return this._array.slice(); + }; + + arraySet.ArraySet = ArraySet; + return arraySet; +} + +var mappingList = {}; + +/* -*- Mode: js; js-indent-level: 2; -*- */ + +var hasRequiredMappingList; + +function requireMappingList () { + if (hasRequiredMappingList) return mappingList; + hasRequiredMappingList = 1; + /* + * Copyright 2014 Mozilla Foundation and contributors + * Licensed under the New BSD license. See LICENSE or: + * http://opensource.org/licenses/BSD-3-Clause + */ + + var util = requireUtil(); + + /** + * Determine whether mappingB is after mappingA with respect to generated + * position. + */ + function generatedPositionAfter(mappingA, mappingB) { + // Optimized for most common case + var lineA = mappingA.generatedLine; + var lineB = mappingB.generatedLine; + var columnA = mappingA.generatedColumn; + var columnB = mappingB.generatedColumn; + return lineB > lineA || lineB == lineA && columnB >= columnA || + util.compareByGeneratedPositionsInflated(mappingA, mappingB) <= 0; + } + + /** + * A data structure to provide a sorted view of accumulated mappings in a + * performance conscious manner. It trades a neglibable overhead in general + * case for a large speedup in case of mappings being added in order. + */ + function MappingList() { + this._array = []; + this._sorted = true; + // Serves as infimum + this._last = {generatedLine: -1, generatedColumn: 0}; + } + + /** + * Iterate through internal items. This method takes the same arguments that + * `Array.prototype.forEach` takes. + * + * NOTE: The order of the mappings is NOT guaranteed. + */ + MappingList.prototype.unsortedForEach = + function MappingList_forEach(aCallback, aThisArg) { + this._array.forEach(aCallback, aThisArg); + }; + + /** + * Add the given source mapping. + * + * @param Object aMapping + */ + MappingList.prototype.add = function MappingList_add(aMapping) { + if (generatedPositionAfter(this._last, aMapping)) { + this._last = aMapping; + this._array.push(aMapping); + } else { + this._sorted = false; + this._array.push(aMapping); + } + }; + + /** + * Returns the flat, sorted array of mappings. The mappings are sorted by + * generated position. + * + * WARNING: This method returns internal data without copying, for + * performance. The return value must NOT be mutated, and should be treated as + * an immutable borrow. If you want to take ownership, you must make your own + * copy. + */ + MappingList.prototype.toArray = function MappingList_toArray() { + if (!this._sorted) { + this._array.sort(util.compareByGeneratedPositionsInflated); + this._sorted = true; + } + return this._array; + }; + + mappingList.MappingList = MappingList; + return mappingList; +} + +/* -*- Mode: js; js-indent-level: 2; -*- */ + +var hasRequiredSourceMapGenerator; + +function requireSourceMapGenerator () { + if (hasRequiredSourceMapGenerator) return sourceMapGenerator; + hasRequiredSourceMapGenerator = 1; + /* + * Copyright 2011 Mozilla Foundation and contributors + * Licensed under the New BSD license. See LICENSE or: + * http://opensource.org/licenses/BSD-3-Clause + */ + + var base64VLQ = requireBase64Vlq(); + var util = requireUtil(); + var ArraySet = requireArraySet().ArraySet; + var MappingList = requireMappingList().MappingList; + + /** + * An instance of the SourceMapGenerator represents a source map which is + * being built incrementally. You may pass an object with the following + * properties: + * + * - file: The filename of the generated source. + * - sourceRoot: A root for all relative URLs in this source map. + */ + function SourceMapGenerator(aArgs) { + if (!aArgs) { + aArgs = {}; + } + this._file = util.getArg(aArgs, 'file', null); + this._sourceRoot = util.getArg(aArgs, 'sourceRoot', null); + this._skipValidation = util.getArg(aArgs, 'skipValidation', false); + this._ignoreInvalidMapping = util.getArg(aArgs, 'ignoreInvalidMapping', false); + this._sources = new ArraySet(); + this._names = new ArraySet(); + this._mappings = new MappingList(); + this._sourcesContents = null; + } + + SourceMapGenerator.prototype._version = 3; + + /** + * Creates a new SourceMapGenerator based on a SourceMapConsumer + * + * @param aSourceMapConsumer The SourceMap. + */ + SourceMapGenerator.fromSourceMap = + function SourceMapGenerator_fromSourceMap(aSourceMapConsumer, generatorOps) { + var sourceRoot = aSourceMapConsumer.sourceRoot; + var generator = new SourceMapGenerator(Object.assign(generatorOps || {}, { + file: aSourceMapConsumer.file, + sourceRoot: sourceRoot + })); + aSourceMapConsumer.eachMapping(function (mapping) { + var newMapping = { + generated: { + line: mapping.generatedLine, + column: mapping.generatedColumn + } + }; + + if (mapping.source != null) { + newMapping.source = mapping.source; + if (sourceRoot != null) { + newMapping.source = util.relative(sourceRoot, newMapping.source); + } + + newMapping.original = { + line: mapping.originalLine, + column: mapping.originalColumn + }; + + if (mapping.name != null) { + newMapping.name = mapping.name; + } + } + + generator.addMapping(newMapping); + }); + aSourceMapConsumer.sources.forEach(function (sourceFile) { + var sourceRelative = sourceFile; + if (sourceRoot !== null) { + sourceRelative = util.relative(sourceRoot, sourceFile); + } + + if (!generator._sources.has(sourceRelative)) { + generator._sources.add(sourceRelative); + } + + var content = aSourceMapConsumer.sourceContentFor(sourceFile); + if (content != null) { + generator.setSourceContent(sourceFile, content); + } + }); + return generator; + }; + + /** + * Add a single mapping from original source line and column to the generated + * source's line and column for this source map being created. The mapping + * object should have the following properties: + * + * - generated: An object with the generated line and column positions. + * - original: An object with the original line and column positions. + * - source: The original source file (relative to the sourceRoot). + * - name: An optional original token name for this mapping. + */ + SourceMapGenerator.prototype.addMapping = + function SourceMapGenerator_addMapping(aArgs) { + var generated = util.getArg(aArgs, 'generated'); + var original = util.getArg(aArgs, 'original', null); + var source = util.getArg(aArgs, 'source', null); + var name = util.getArg(aArgs, 'name', null); + + if (!this._skipValidation) { + if (this._validateMapping(generated, original, source, name) === false) { + return; + } + } + + if (source != null) { + source = String(source); + if (!this._sources.has(source)) { + this._sources.add(source); + } + } + + if (name != null) { + name = String(name); + if (!this._names.has(name)) { + this._names.add(name); + } + } + + this._mappings.add({ + generatedLine: generated.line, + generatedColumn: generated.column, + originalLine: original != null && original.line, + originalColumn: original != null && original.column, + source: source, + name: name + }); + }; + + /** + * Set the source content for a source file. + */ + SourceMapGenerator.prototype.setSourceContent = + function SourceMapGenerator_setSourceContent(aSourceFile, aSourceContent) { + var source = aSourceFile; + if (this._sourceRoot != null) { + source = util.relative(this._sourceRoot, source); + } + + if (aSourceContent != null) { + // Add the source content to the _sourcesContents map. + // Create a new _sourcesContents map if the property is null. + if (!this._sourcesContents) { + this._sourcesContents = Object.create(null); + } + this._sourcesContents[util.toSetString(source)] = aSourceContent; + } else if (this._sourcesContents) { + // Remove the source file from the _sourcesContents map. + // If the _sourcesContents map is empty, set the property to null. + delete this._sourcesContents[util.toSetString(source)]; + if (Object.keys(this._sourcesContents).length === 0) { + this._sourcesContents = null; + } + } + }; + + /** + * Applies the mappings of a sub-source-map for a specific source file to the + * source map being generated. Each mapping to the supplied source file is + * rewritten using the supplied source map. Note: The resolution for the + * resulting mappings is the minimium of this map and the supplied map. + * + * @param aSourceMapConsumer The source map to be applied. + * @param aSourceFile Optional. The filename of the source file. + * If omitted, SourceMapConsumer's file property will be used. + * @param aSourceMapPath Optional. The dirname of the path to the source map + * to be applied. If relative, it is relative to the SourceMapConsumer. + * This parameter is needed when the two source maps aren't in the same + * directory, and the source map to be applied contains relative source + * paths. If so, those relative source paths need to be rewritten + * relative to the SourceMapGenerator. + */ + SourceMapGenerator.prototype.applySourceMap = + function SourceMapGenerator_applySourceMap(aSourceMapConsumer, aSourceFile, aSourceMapPath) { + var sourceFile = aSourceFile; + // If aSourceFile is omitted, we will use the file property of the SourceMap + if (aSourceFile == null) { + if (aSourceMapConsumer.file == null) { + throw new Error( + 'SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, ' + + 'or the source map\'s "file" property. Both were omitted.' + ); + } + sourceFile = aSourceMapConsumer.file; + } + var sourceRoot = this._sourceRoot; + // Make "sourceFile" relative if an absolute Url is passed. + if (sourceRoot != null) { + sourceFile = util.relative(sourceRoot, sourceFile); + } + // Applying the SourceMap can add and remove items from the sources and + // the names array. + var newSources = new ArraySet(); + var newNames = new ArraySet(); + + // Find mappings for the "sourceFile" + this._mappings.unsortedForEach(function (mapping) { + if (mapping.source === sourceFile && mapping.originalLine != null) { + // Check if it can be mapped by the source map, then update the mapping. + var original = aSourceMapConsumer.originalPositionFor({ + line: mapping.originalLine, + column: mapping.originalColumn + }); + if (original.source != null) { + // Copy mapping + mapping.source = original.source; + if (aSourceMapPath != null) { + mapping.source = util.join(aSourceMapPath, mapping.source); + } + if (sourceRoot != null) { + mapping.source = util.relative(sourceRoot, mapping.source); + } + mapping.originalLine = original.line; + mapping.originalColumn = original.column; + if (original.name != null) { + mapping.name = original.name; + } + } + } + + var source = mapping.source; + if (source != null && !newSources.has(source)) { + newSources.add(source); + } + + var name = mapping.name; + if (name != null && !newNames.has(name)) { + newNames.add(name); + } + + }, this); + this._sources = newSources; + this._names = newNames; + + // Copy sourcesContents of applied map. + aSourceMapConsumer.sources.forEach(function (sourceFile) { + var content = aSourceMapConsumer.sourceContentFor(sourceFile); + if (content != null) { + if (aSourceMapPath != null) { + sourceFile = util.join(aSourceMapPath, sourceFile); + } + if (sourceRoot != null) { + sourceFile = util.relative(sourceRoot, sourceFile); + } + this.setSourceContent(sourceFile, content); + } + }, this); + }; + + /** + * A mapping can have one of the three levels of data: + * + * 1. Just the generated position. + * 2. The Generated position, original position, and original source. + * 3. Generated and original position, original source, as well as a name + * token. + * + * To maintain consistency, we validate that any new mapping being added falls + * in to one of these categories. + */ + SourceMapGenerator.prototype._validateMapping = + function SourceMapGenerator_validateMapping(aGenerated, aOriginal, aSource, + aName) { + // When aOriginal is truthy but has empty values for .line and .column, + // it is most likely a programmer error. In this case we throw a very + // specific error message to try to guide them the right way. + // For example: https://github.com/Polymer/polymer-bundler/pull/519 + if (aOriginal && typeof aOriginal.line !== 'number' && typeof aOriginal.column !== 'number') { + var message = 'original.line and original.column are not numbers -- you probably meant to omit ' + + 'the original mapping entirely and only map the generated position. If so, pass ' + + 'null for the original mapping instead of an object with empty or null values.'; + + if (this._ignoreInvalidMapping) { + if (typeof console !== 'undefined' && console.warn) { + console.warn(message); + } + return false; + } else { + throw new Error(message); + } + } + + if (aGenerated && 'line' in aGenerated && 'column' in aGenerated + && aGenerated.line > 0 && aGenerated.column >= 0 + && !aOriginal && !aSource && !aName) { + // Case 1. + return; + } + else if (aGenerated && 'line' in aGenerated && 'column' in aGenerated + && aOriginal && 'line' in aOriginal && 'column' in aOriginal + && aGenerated.line > 0 && aGenerated.column >= 0 + && aOriginal.line > 0 && aOriginal.column >= 0 + && aSource) { + // Cases 2 and 3. + return; + } + else { + var message = 'Invalid mapping: ' + JSON.stringify({ + generated: aGenerated, + source: aSource, + original: aOriginal, + name: aName + }); + + if (this._ignoreInvalidMapping) { + if (typeof console !== 'undefined' && console.warn) { + console.warn(message); + } + return false; + } else { + throw new Error(message) + } + } + }; + + /** + * Serialize the accumulated mappings in to the stream of base 64 VLQs + * specified by the source map format. + */ + SourceMapGenerator.prototype._serializeMappings = + function SourceMapGenerator_serializeMappings() { + var previousGeneratedColumn = 0; + var previousGeneratedLine = 1; + var previousOriginalColumn = 0; + var previousOriginalLine = 0; + var previousName = 0; + var previousSource = 0; + var result = ''; + var next; + var mapping; + var nameIdx; + var sourceIdx; + + var mappings = this._mappings.toArray(); + for (var i = 0, len = mappings.length; i < len; i++) { + mapping = mappings[i]; + next = ''; + + if (mapping.generatedLine !== previousGeneratedLine) { + previousGeneratedColumn = 0; + while (mapping.generatedLine !== previousGeneratedLine) { + next += ';'; + previousGeneratedLine++; + } + } + else { + if (i > 0) { + if (!util.compareByGeneratedPositionsInflated(mapping, mappings[i - 1])) { + continue; + } + next += ','; + } + } + + next += base64VLQ.encode(mapping.generatedColumn + - previousGeneratedColumn); + previousGeneratedColumn = mapping.generatedColumn; + + if (mapping.source != null) { + sourceIdx = this._sources.indexOf(mapping.source); + next += base64VLQ.encode(sourceIdx - previousSource); + previousSource = sourceIdx; + + // lines are stored 0-based in SourceMap spec version 3 + next += base64VLQ.encode(mapping.originalLine - 1 + - previousOriginalLine); + previousOriginalLine = mapping.originalLine - 1; + + next += base64VLQ.encode(mapping.originalColumn + - previousOriginalColumn); + previousOriginalColumn = mapping.originalColumn; + + if (mapping.name != null) { + nameIdx = this._names.indexOf(mapping.name); + next += base64VLQ.encode(nameIdx - previousName); + previousName = nameIdx; + } + } + + result += next; + } + + return result; + }; + + SourceMapGenerator.prototype._generateSourcesContent = + function SourceMapGenerator_generateSourcesContent(aSources, aSourceRoot) { + return aSources.map(function (source) { + if (!this._sourcesContents) { + return null; + } + if (aSourceRoot != null) { + source = util.relative(aSourceRoot, source); + } + var key = util.toSetString(source); + return Object.prototype.hasOwnProperty.call(this._sourcesContents, key) + ? this._sourcesContents[key] + : null; + }, this); + }; + + /** + * Externalize the source map. + */ + SourceMapGenerator.prototype.toJSON = + function SourceMapGenerator_toJSON() { + var map = { + version: this._version, + sources: this._sources.toArray(), + names: this._names.toArray(), + mappings: this._serializeMappings() + }; + if (this._file != null) { + map.file = this._file; + } + if (this._sourceRoot != null) { + map.sourceRoot = this._sourceRoot; + } + if (this._sourcesContents) { + map.sourcesContent = this._generateSourcesContent(map.sources, map.sourceRoot); + } + + return map; + }; + + /** + * Render the source map being generated to a string. + */ + SourceMapGenerator.prototype.toString = + function SourceMapGenerator_toString() { + return JSON.stringify(this.toJSON()); + }; + + sourceMapGenerator.SourceMapGenerator = SourceMapGenerator; + return sourceMapGenerator; +} + +var sourceMapConsumer = {}; + +var binarySearch = {}; + +/* -*- Mode: js; js-indent-level: 2; -*- */ + +var hasRequiredBinarySearch; + +function requireBinarySearch () { + if (hasRequiredBinarySearch) return binarySearch; + hasRequiredBinarySearch = 1; + (function (exports$1) { + /* + * Copyright 2011 Mozilla Foundation and contributors + * Licensed under the New BSD license. See LICENSE or: + * http://opensource.org/licenses/BSD-3-Clause + */ + + exports$1.GREATEST_LOWER_BOUND = 1; + exports$1.LEAST_UPPER_BOUND = 2; + + /** + * Recursive implementation of binary search. + * + * @param aLow Indices here and lower do not contain the needle. + * @param aHigh Indices here and higher do not contain the needle. + * @param aNeedle The element being searched for. + * @param aHaystack The non-empty array being searched. + * @param aCompare Function which takes two elements and returns -1, 0, or 1. + * @param aBias Either 'binarySearch.GREATEST_LOWER_BOUND' or + * 'binarySearch.LEAST_UPPER_BOUND'. Specifies whether to return the + * closest element that is smaller than or greater than the one we are + * searching for, respectively, if the exact element cannot be found. + */ + function recursiveSearch(aLow, aHigh, aNeedle, aHaystack, aCompare, aBias) { + // This function terminates when one of the following is true: + // + // 1. We find the exact element we are looking for. + // + // 2. We did not find the exact element, but we can return the index of + // the next-closest element. + // + // 3. We did not find the exact element, and there is no next-closest + // element than the one we are searching for, so we return -1. + var mid = Math.floor((aHigh - aLow) / 2) + aLow; + var cmp = aCompare(aNeedle, aHaystack[mid], true); + if (cmp === 0) { + // Found the element we are looking for. + return mid; + } + else if (cmp > 0) { + // Our needle is greater than aHaystack[mid]. + if (aHigh - mid > 1) { + // The element is in the upper half. + return recursiveSearch(mid, aHigh, aNeedle, aHaystack, aCompare, aBias); + } + + // The exact needle element was not found in this haystack. Determine if + // we are in termination case (3) or (2) and return the appropriate thing. + if (aBias == exports$1.LEAST_UPPER_BOUND) { + return aHigh < aHaystack.length ? aHigh : -1; + } else { + return mid; + } + } + else { + // Our needle is less than aHaystack[mid]. + if (mid - aLow > 1) { + // The element is in the lower half. + return recursiveSearch(aLow, mid, aNeedle, aHaystack, aCompare, aBias); + } + + // we are in termination case (3) or (2) and return the appropriate thing. + if (aBias == exports$1.LEAST_UPPER_BOUND) { + return mid; + } else { + return aLow < 0 ? -1 : aLow; + } + } + } + + /** + * This is an implementation of binary search which will always try and return + * the index of the closest element if there is no exact hit. This is because + * mappings between original and generated line/col pairs are single points, + * and there is an implicit region between each of them, so a miss just means + * that you aren't on the very start of a region. + * + * @param aNeedle The element you are looking for. + * @param aHaystack The array that is being searched. + * @param aCompare A function which takes the needle and an element in the + * array and returns -1, 0, or 1 depending on whether the needle is less + * than, equal to, or greater than the element, respectively. + * @param aBias Either 'binarySearch.GREATEST_LOWER_BOUND' or + * 'binarySearch.LEAST_UPPER_BOUND'. Specifies whether to return the + * closest element that is smaller than or greater than the one we are + * searching for, respectively, if the exact element cannot be found. + * Defaults to 'binarySearch.GREATEST_LOWER_BOUND'. + */ + exports$1.search = function search(aNeedle, aHaystack, aCompare, aBias) { + if (aHaystack.length === 0) { + return -1; + } + + var index = recursiveSearch(-1, aHaystack.length, aNeedle, aHaystack, + aCompare, aBias || exports$1.GREATEST_LOWER_BOUND); + if (index < 0) { + return -1; + } + + // We have found either the exact element, or the next-closest element than + // the one we are searching for. However, there may be more than one such + // element. Make sure we always return the smallest of these. + while (index - 1 >= 0) { + if (aCompare(aHaystack[index], aHaystack[index - 1], true) !== 0) { + break; + } + --index; + } + + return index; + }; + } (binarySearch)); + return binarySearch; +} + +var quickSort = {}; + +/* -*- Mode: js; js-indent-level: 2; -*- */ + +var hasRequiredQuickSort; + +function requireQuickSort () { + if (hasRequiredQuickSort) return quickSort; + hasRequiredQuickSort = 1; + /* + * Copyright 2011 Mozilla Foundation and contributors + * Licensed under the New BSD license. See LICENSE or: + * http://opensource.org/licenses/BSD-3-Clause + */ + + // It turns out that some (most?) JavaScript engines don't self-host + // `Array.prototype.sort`. This makes sense because C++ will likely remain + // faster than JS when doing raw CPU-intensive sorting. However, when using a + // custom comparator function, calling back and forth between the VM's C++ and + // JIT'd JS is rather slow *and* loses JIT type information, resulting in + // worse generated code for the comparator function than would be optimal. In + // fact, when sorting with a comparator, these costs outweigh the benefits of + // sorting in C++. By using our own JS-implemented Quick Sort (below), we get + // a ~3500ms mean speed-up in `bench/bench.html`. + + function SortTemplate(comparator) { + + /** + * Swap the elements indexed by `x` and `y` in the array `ary`. + * + * @param {Array} ary + * The array. + * @param {Number} x + * The index of the first item. + * @param {Number} y + * The index of the second item. + */ + function swap(ary, x, y) { + var temp = ary[x]; + ary[x] = ary[y]; + ary[y] = temp; + } + + /** + * Returns a random integer within the range `low .. high` inclusive. + * + * @param {Number} low + * The lower bound on the range. + * @param {Number} high + * The upper bound on the range. + */ + function randomIntInRange(low, high) { + return Math.round(low + (Math.random() * (high - low))); + } + + /** + * The Quick Sort algorithm. + * + * @param {Array} ary + * An array to sort. + * @param {function} comparator + * Function to use to compare two items. + * @param {Number} p + * Start index of the array + * @param {Number} r + * End index of the array + */ + function doQuickSort(ary, comparator, p, r) { + // If our lower bound is less than our upper bound, we (1) partition the + // array into two pieces and (2) recurse on each half. If it is not, this is + // the empty array and our base case. + + if (p < r) { + // (1) Partitioning. + // + // The partitioning chooses a pivot between `p` and `r` and moves all + // elements that are less than or equal to the pivot to the before it, and + // all the elements that are greater than it after it. The effect is that + // once partition is done, the pivot is in the exact place it will be when + // the array is put in sorted order, and it will not need to be moved + // again. This runs in O(n) time. + + // Always choose a random pivot so that an input array which is reverse + // sorted does not cause O(n^2) running time. + var pivotIndex = randomIntInRange(p, r); + var i = p - 1; + + swap(ary, pivotIndex, r); + var pivot = ary[r]; + + // Immediately after `j` is incremented in this loop, the following hold + // true: + // + // * Every element in `ary[p .. i]` is less than or equal to the pivot. + // + // * Every element in `ary[i+1 .. j-1]` is greater than the pivot. + for (var j = p; j < r; j++) { + if (comparator(ary[j], pivot, false) <= 0) { + i += 1; + swap(ary, i, j); + } + } + + swap(ary, i + 1, j); + var q = i + 1; + + // (2) Recurse on each half. + + doQuickSort(ary, comparator, p, q - 1); + doQuickSort(ary, comparator, q + 1, r); + } + } + + return doQuickSort; + } + + function cloneSort(comparator) { + let template = SortTemplate.toString(); + let templateFn = new Function(`return ${template}`)(); + return templateFn(comparator); + } + + /** + * Sort the given array in-place with the given comparator function. + * + * @param {Array} ary + * An array to sort. + * @param {function} comparator + * Function to use to compare two items. + */ + + let sortCache = new WeakMap(); + quickSort.quickSort = function (ary, comparator, start = 0) { + let doQuickSort = sortCache.get(comparator); + if (doQuickSort === void 0) { + doQuickSort = cloneSort(comparator); + sortCache.set(comparator, doQuickSort); + } + doQuickSort(ary, comparator, start, ary.length - 1); + }; + return quickSort; +} + +/* -*- Mode: js; js-indent-level: 2; -*- */ + +var hasRequiredSourceMapConsumer; + +function requireSourceMapConsumer () { + if (hasRequiredSourceMapConsumer) return sourceMapConsumer; + hasRequiredSourceMapConsumer = 1; + /* + * Copyright 2011 Mozilla Foundation and contributors + * Licensed under the New BSD license. See LICENSE or: + * http://opensource.org/licenses/BSD-3-Clause + */ + + var util = requireUtil(); + var binarySearch = requireBinarySearch(); + var ArraySet = requireArraySet().ArraySet; + var base64VLQ = requireBase64Vlq(); + var quickSort = requireQuickSort().quickSort; + + function SourceMapConsumer(aSourceMap, aSourceMapURL) { + var sourceMap = aSourceMap; + if (typeof aSourceMap === 'string') { + sourceMap = util.parseSourceMapInput(aSourceMap); + } + + return sourceMap.sections != null + ? new IndexedSourceMapConsumer(sourceMap, aSourceMapURL) + : new BasicSourceMapConsumer(sourceMap, aSourceMapURL); + } + + SourceMapConsumer.fromSourceMap = function(aSourceMap, aSourceMapURL) { + return BasicSourceMapConsumer.fromSourceMap(aSourceMap, aSourceMapURL); + }; + + /** + * The version of the source mapping spec that we are consuming. + */ + SourceMapConsumer.prototype._version = 3; + + // `__generatedMappings` and `__originalMappings` are arrays that hold the + // parsed mapping coordinates from the source map's "mappings" attribute. They + // are lazily instantiated, accessed via the `_generatedMappings` and + // `_originalMappings` getters respectively, and we only parse the mappings + // and create these arrays once queried for a source location. We jump through + // these hoops because there can be many thousands of mappings, and parsing + // them is expensive, so we only want to do it if we must. + // + // Each object in the arrays is of the form: + // + // { + // generatedLine: The line number in the generated code, + // generatedColumn: The column number in the generated code, + // source: The path to the original source file that generated this + // chunk of code, + // originalLine: The line number in the original source that + // corresponds to this chunk of generated code, + // originalColumn: The column number in the original source that + // corresponds to this chunk of generated code, + // name: The name of the original symbol which generated this chunk of + // code. + // } + // + // All properties except for `generatedLine` and `generatedColumn` can be + // `null`. + // + // `_generatedMappings` is ordered by the generated positions. + // + // `_originalMappings` is ordered by the original positions. + + SourceMapConsumer.prototype.__generatedMappings = null; + Object.defineProperty(SourceMapConsumer.prototype, '_generatedMappings', { + configurable: true, + enumerable: true, + get: function () { + if (!this.__generatedMappings) { + this._parseMappings(this._mappings, this.sourceRoot); + } + + return this.__generatedMappings; + } + }); + + SourceMapConsumer.prototype.__originalMappings = null; + Object.defineProperty(SourceMapConsumer.prototype, '_originalMappings', { + configurable: true, + enumerable: true, + get: function () { + if (!this.__originalMappings) { + this._parseMappings(this._mappings, this.sourceRoot); + } + + return this.__originalMappings; + } + }); + + SourceMapConsumer.prototype._charIsMappingSeparator = + function SourceMapConsumer_charIsMappingSeparator(aStr, index) { + var c = aStr.charAt(index); + return c === ";" || c === ","; + }; + + /** + * Parse the mappings in a string in to a data structure which we can easily + * query (the ordered arrays in the `this.__generatedMappings` and + * `this.__originalMappings` properties). + */ + SourceMapConsumer.prototype._parseMappings = + function SourceMapConsumer_parseMappings(aStr, aSourceRoot) { + throw new Error("Subclasses must implement _parseMappings"); + }; + + SourceMapConsumer.GENERATED_ORDER = 1; + SourceMapConsumer.ORIGINAL_ORDER = 2; + + SourceMapConsumer.GREATEST_LOWER_BOUND = 1; + SourceMapConsumer.LEAST_UPPER_BOUND = 2; + + /** + * Iterate over each mapping between an original source/line/column and a + * generated line/column in this source map. + * + * @param Function aCallback + * The function that is called with each mapping. + * @param Object aContext + * Optional. If specified, this object will be the value of `this` every + * time that `aCallback` is called. + * @param aOrder + * Either `SourceMapConsumer.GENERATED_ORDER` or + * `SourceMapConsumer.ORIGINAL_ORDER`. Specifies whether you want to + * iterate over the mappings sorted by the generated file's line/column + * order or the original's source/line/column order, respectively. Defaults to + * `SourceMapConsumer.GENERATED_ORDER`. + */ + SourceMapConsumer.prototype.eachMapping = + function SourceMapConsumer_eachMapping(aCallback, aContext, aOrder) { + var context = aContext || null; + var order = aOrder || SourceMapConsumer.GENERATED_ORDER; + + var mappings; + switch (order) { + case SourceMapConsumer.GENERATED_ORDER: + mappings = this._generatedMappings; + break; + case SourceMapConsumer.ORIGINAL_ORDER: + mappings = this._originalMappings; + break; + default: + throw new Error("Unknown order of iteration."); + } + + var sourceRoot = this.sourceRoot; + var boundCallback = aCallback.bind(context); + var names = this._names; + var sources = this._sources; + var sourceMapURL = this._sourceMapURL; + + for (var i = 0, n = mappings.length; i < n; i++) { + var mapping = mappings[i]; + var source = mapping.source === null ? null : sources.at(mapping.source); + if(source !== null) { + source = util.computeSourceURL(sourceRoot, source, sourceMapURL); + } + boundCallback({ + source: source, + generatedLine: mapping.generatedLine, + generatedColumn: mapping.generatedColumn, + originalLine: mapping.originalLine, + originalColumn: mapping.originalColumn, + name: mapping.name === null ? null : names.at(mapping.name) + }); + } + }; + + /** + * Returns all generated line and column information for the original source, + * line, and column provided. If no column is provided, returns all mappings + * corresponding to a either the line we are searching for or the next + * closest line that has any mappings. Otherwise, returns all mappings + * corresponding to the given line and either the column we are searching for + * or the next closest column that has any offsets. + * + * The only argument is an object with the following properties: + * + * - source: The filename of the original source. + * - line: The line number in the original source. The line number is 1-based. + * - column: Optional. the column number in the original source. + * The column number is 0-based. + * + * and an array of objects is returned, each with the following properties: + * + * - line: The line number in the generated source, or null. The + * line number is 1-based. + * - column: The column number in the generated source, or null. + * The column number is 0-based. + */ + SourceMapConsumer.prototype.allGeneratedPositionsFor = + function SourceMapConsumer_allGeneratedPositionsFor(aArgs) { + var line = util.getArg(aArgs, 'line'); + + // When there is no exact match, BasicSourceMapConsumer.prototype._findMapping + // returns the index of the closest mapping less than the needle. By + // setting needle.originalColumn to 0, we thus find the last mapping for + // the given line, provided such a mapping exists. + var needle = { + source: util.getArg(aArgs, 'source'), + originalLine: line, + originalColumn: util.getArg(aArgs, 'column', 0) + }; + + needle.source = this._findSourceIndex(needle.source); + if (needle.source < 0) { + return []; + } + + var mappings = []; + + var index = this._findMapping(needle, + this._originalMappings, + "originalLine", + "originalColumn", + util.compareByOriginalPositions, + binarySearch.LEAST_UPPER_BOUND); + if (index >= 0) { + var mapping = this._originalMappings[index]; + + if (aArgs.column === undefined) { + var originalLine = mapping.originalLine; + + // Iterate until either we run out of mappings, or we run into + // a mapping for a different line than the one we found. Since + // mappings are sorted, this is guaranteed to find all mappings for + // the line we found. + while (mapping && mapping.originalLine === originalLine) { + mappings.push({ + line: util.getArg(mapping, 'generatedLine', null), + column: util.getArg(mapping, 'generatedColumn', null), + lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null) + }); + + mapping = this._originalMappings[++index]; + } + } else { + var originalColumn = mapping.originalColumn; + + // Iterate until either we run out of mappings, or we run into + // a mapping for a different line than the one we were searching for. + // Since mappings are sorted, this is guaranteed to find all mappings for + // the line we are searching for. + while (mapping && + mapping.originalLine === line && + mapping.originalColumn == originalColumn) { + mappings.push({ + line: util.getArg(mapping, 'generatedLine', null), + column: util.getArg(mapping, 'generatedColumn', null), + lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null) + }); + + mapping = this._originalMappings[++index]; + } + } + } + + return mappings; + }; + + sourceMapConsumer.SourceMapConsumer = SourceMapConsumer; + + /** + * A BasicSourceMapConsumer instance represents a parsed source map which we can + * query for information about the original file positions by giving it a file + * position in the generated source. + * + * The first parameter is the raw source map (either as a JSON string, or + * already parsed to an object). According to the spec, source maps have the + * following attributes: + * + * - version: Which version of the source map spec this map is following. + * - sources: An array of URLs to the original source files. + * - names: An array of identifiers which can be referrenced by individual mappings. + * - sourceRoot: Optional. The URL root from which all sources are relative. + * - sourcesContent: Optional. An array of contents of the original source files. + * - mappings: A string of base64 VLQs which contain the actual mappings. + * - file: Optional. The generated file this source map is associated with. + * + * Here is an example source map, taken from the source map spec[0]: + * + * { + * version : 3, + * file: "out.js", + * sourceRoot : "", + * sources: ["foo.js", "bar.js"], + * names: ["src", "maps", "are", "fun"], + * mappings: "AA,AB;;ABCDE;" + * } + * + * The second parameter, if given, is a string whose value is the URL + * at which the source map was found. This URL is used to compute the + * sources array. + * + * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit?pli=1# + */ + function BasicSourceMapConsumer(aSourceMap, aSourceMapURL) { + var sourceMap = aSourceMap; + if (typeof aSourceMap === 'string') { + sourceMap = util.parseSourceMapInput(aSourceMap); + } + + var version = util.getArg(sourceMap, 'version'); + var sources = util.getArg(sourceMap, 'sources'); + // Sass 3.3 leaves out the 'names' array, so we deviate from the spec (which + // requires the array) to play nice here. + var names = util.getArg(sourceMap, 'names', []); + var sourceRoot = util.getArg(sourceMap, 'sourceRoot', null); + var sourcesContent = util.getArg(sourceMap, 'sourcesContent', null); + var mappings = util.getArg(sourceMap, 'mappings'); + var file = util.getArg(sourceMap, 'file', null); + + // Once again, Sass deviates from the spec and supplies the version as a + // string rather than a number, so we use loose equality checking here. + if (version != this._version) { + throw new Error('Unsupported version: ' + version); + } + + if (sourceRoot) { + sourceRoot = util.normalize(sourceRoot); + } + + sources = sources + .map(String) + // Some source maps produce relative source paths like "./foo.js" instead of + // "foo.js". Normalize these first so that future comparisons will succeed. + // See bugzil.la/1090768. + .map(util.normalize) + // Always ensure that absolute sources are internally stored relative to + // the source root, if the source root is absolute. Not doing this would + // be particularly problematic when the source root is a prefix of the + // source (valid, but why??). See github issue #199 and bugzil.la/1188982. + .map(function (source) { + return sourceRoot && util.isAbsolute(sourceRoot) && util.isAbsolute(source) + ? util.relative(sourceRoot, source) + : source; + }); + + // Pass `true` below to allow duplicate names and sources. While source maps + // are intended to be compressed and deduplicated, the TypeScript compiler + // sometimes generates source maps with duplicates in them. See Github issue + // #72 and bugzil.la/889492. + this._names = ArraySet.fromArray(names.map(String), true); + this._sources = ArraySet.fromArray(sources, true); + + this._absoluteSources = this._sources.toArray().map(function (s) { + return util.computeSourceURL(sourceRoot, s, aSourceMapURL); + }); + + this.sourceRoot = sourceRoot; + this.sourcesContent = sourcesContent; + this._mappings = mappings; + this._sourceMapURL = aSourceMapURL; + this.file = file; + } + + BasicSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype); + BasicSourceMapConsumer.prototype.consumer = SourceMapConsumer; + + /** + * Utility function to find the index of a source. Returns -1 if not + * found. + */ + BasicSourceMapConsumer.prototype._findSourceIndex = function(aSource) { + var relativeSource = aSource; + if (this.sourceRoot != null) { + relativeSource = util.relative(this.sourceRoot, relativeSource); + } + + if (this._sources.has(relativeSource)) { + return this._sources.indexOf(relativeSource); + } + + // Maybe aSource is an absolute URL as returned by |sources|. In + // this case we can't simply undo the transform. + var i; + for (i = 0; i < this._absoluteSources.length; ++i) { + if (this._absoluteSources[i] == aSource) { + return i; + } + } + + return -1; + }; + + /** + * Create a BasicSourceMapConsumer from a SourceMapGenerator. + * + * @param SourceMapGenerator aSourceMap + * The source map that will be consumed. + * @param String aSourceMapURL + * The URL at which the source map can be found (optional) + * @returns BasicSourceMapConsumer + */ + BasicSourceMapConsumer.fromSourceMap = + function SourceMapConsumer_fromSourceMap(aSourceMap, aSourceMapURL) { + var smc = Object.create(BasicSourceMapConsumer.prototype); + + var names = smc._names = ArraySet.fromArray(aSourceMap._names.toArray(), true); + var sources = smc._sources = ArraySet.fromArray(aSourceMap._sources.toArray(), true); + smc.sourceRoot = aSourceMap._sourceRoot; + smc.sourcesContent = aSourceMap._generateSourcesContent(smc._sources.toArray(), + smc.sourceRoot); + smc.file = aSourceMap._file; + smc._sourceMapURL = aSourceMapURL; + smc._absoluteSources = smc._sources.toArray().map(function (s) { + return util.computeSourceURL(smc.sourceRoot, s, aSourceMapURL); + }); + + // Because we are modifying the entries (by converting string sources and + // names to indices into the sources and names ArraySets), we have to make + // a copy of the entry or else bad things happen. Shared mutable state + // strikes again! See github issue #191. + + var generatedMappings = aSourceMap._mappings.toArray().slice(); + var destGeneratedMappings = smc.__generatedMappings = []; + var destOriginalMappings = smc.__originalMappings = []; + + for (var i = 0, length = generatedMappings.length; i < length; i++) { + var srcMapping = generatedMappings[i]; + var destMapping = new Mapping; + destMapping.generatedLine = srcMapping.generatedLine; + destMapping.generatedColumn = srcMapping.generatedColumn; + + if (srcMapping.source) { + destMapping.source = sources.indexOf(srcMapping.source); + destMapping.originalLine = srcMapping.originalLine; + destMapping.originalColumn = srcMapping.originalColumn; + + if (srcMapping.name) { + destMapping.name = names.indexOf(srcMapping.name); + } + + destOriginalMappings.push(destMapping); + } + + destGeneratedMappings.push(destMapping); + } + + quickSort(smc.__originalMappings, util.compareByOriginalPositions); + + return smc; + }; + + /** + * The version of the source mapping spec that we are consuming. + */ + BasicSourceMapConsumer.prototype._version = 3; + + /** + * The list of original sources. + */ + Object.defineProperty(BasicSourceMapConsumer.prototype, 'sources', { + get: function () { + return this._absoluteSources.slice(); + } + }); + + /** + * Provide the JIT with a nice shape / hidden class. + */ + function Mapping() { + this.generatedLine = 0; + this.generatedColumn = 0; + this.source = null; + this.originalLine = null; + this.originalColumn = null; + this.name = null; + } + + /** + * Parse the mappings in a string in to a data structure which we can easily + * query (the ordered arrays in the `this.__generatedMappings` and + * `this.__originalMappings` properties). + */ + + const compareGenerated = util.compareByGeneratedPositionsDeflatedNoLine; + function sortGenerated(array, start) { + let l = array.length; + let n = array.length - start; + if (n <= 1) { + return; + } else if (n == 2) { + let a = array[start]; + let b = array[start + 1]; + if (compareGenerated(a, b) > 0) { + array[start] = b; + array[start + 1] = a; + } + } else if (n < 20) { + for (let i = start; i < l; i++) { + for (let j = i; j > start; j--) { + let a = array[j - 1]; + let b = array[j]; + if (compareGenerated(a, b) <= 0) { + break; + } + array[j - 1] = b; + array[j] = a; + } + } + } else { + quickSort(array, compareGenerated, start); + } + } + BasicSourceMapConsumer.prototype._parseMappings = + function SourceMapConsumer_parseMappings(aStr, aSourceRoot) { + var generatedLine = 1; + var previousGeneratedColumn = 0; + var previousOriginalLine = 0; + var previousOriginalColumn = 0; + var previousSource = 0; + var previousName = 0; + var length = aStr.length; + var index = 0; + var temp = {}; + var originalMappings = []; + var generatedMappings = []; + var mapping, segment, end, value; + + let subarrayStart = 0; + while (index < length) { + if (aStr.charAt(index) === ';') { + generatedLine++; + index++; + previousGeneratedColumn = 0; + + sortGenerated(generatedMappings, subarrayStart); + subarrayStart = generatedMappings.length; + } + else if (aStr.charAt(index) === ',') { + index++; + } + else { + mapping = new Mapping(); + mapping.generatedLine = generatedLine; + + for (end = index; end < length; end++) { + if (this._charIsMappingSeparator(aStr, end)) { + break; + } + } + aStr.slice(index, end); + + segment = []; + while (index < end) { + base64VLQ.decode(aStr, index, temp); + value = temp.value; + index = temp.rest; + segment.push(value); + } + + if (segment.length === 2) { + throw new Error('Found a source, but no line and column'); + } + + if (segment.length === 3) { + throw new Error('Found a source and line, but no column'); + } + + // Generated column. + mapping.generatedColumn = previousGeneratedColumn + segment[0]; + previousGeneratedColumn = mapping.generatedColumn; + + if (segment.length > 1) { + // Original source. + mapping.source = previousSource + segment[1]; + previousSource += segment[1]; + + // Original line. + mapping.originalLine = previousOriginalLine + segment[2]; + previousOriginalLine = mapping.originalLine; + // Lines are stored 0-based + mapping.originalLine += 1; + + // Original column. + mapping.originalColumn = previousOriginalColumn + segment[3]; + previousOriginalColumn = mapping.originalColumn; + + if (segment.length > 4) { + // Original name. + mapping.name = previousName + segment[4]; + previousName += segment[4]; + } + } + + generatedMappings.push(mapping); + if (typeof mapping.originalLine === 'number') { + let currentSource = mapping.source; + while (originalMappings.length <= currentSource) { + originalMappings.push(null); + } + if (originalMappings[currentSource] === null) { + originalMappings[currentSource] = []; + } + originalMappings[currentSource].push(mapping); + } + } + } + + sortGenerated(generatedMappings, subarrayStart); + this.__generatedMappings = generatedMappings; + + for (var i = 0; i < originalMappings.length; i++) { + if (originalMappings[i] != null) { + quickSort(originalMappings[i], util.compareByOriginalPositionsNoSource); + } + } + this.__originalMappings = [].concat(...originalMappings); + }; + + /** + * Find the mapping that best matches the hypothetical "needle" mapping that + * we are searching for in the given "haystack" of mappings. + */ + BasicSourceMapConsumer.prototype._findMapping = + function SourceMapConsumer_findMapping(aNeedle, aMappings, aLineName, + aColumnName, aComparator, aBias) { + // To return the position we are searching for, we must first find the + // mapping for the given position and then return the opposite position it + // points to. Because the mappings are sorted, we can use binary search to + // find the best mapping. + + if (aNeedle[aLineName] <= 0) { + throw new TypeError('Line must be greater than or equal to 1, got ' + + aNeedle[aLineName]); + } + if (aNeedle[aColumnName] < 0) { + throw new TypeError('Column must be greater than or equal to 0, got ' + + aNeedle[aColumnName]); + } + + return binarySearch.search(aNeedle, aMappings, aComparator, aBias); + }; + + /** + * Compute the last column for each generated mapping. The last column is + * inclusive. + */ + BasicSourceMapConsumer.prototype.computeColumnSpans = + function SourceMapConsumer_computeColumnSpans() { + for (var index = 0; index < this._generatedMappings.length; ++index) { + var mapping = this._generatedMappings[index]; + + // Mappings do not contain a field for the last generated columnt. We + // can come up with an optimistic estimate, however, by assuming that + // mappings are contiguous (i.e. given two consecutive mappings, the + // first mapping ends where the second one starts). + if (index + 1 < this._generatedMappings.length) { + var nextMapping = this._generatedMappings[index + 1]; + + if (mapping.generatedLine === nextMapping.generatedLine) { + mapping.lastGeneratedColumn = nextMapping.generatedColumn - 1; + continue; + } + } + + // The last mapping for each line spans the entire line. + mapping.lastGeneratedColumn = Infinity; + } + }; + + /** + * Returns the original source, line, and column information for the generated + * source's line and column positions provided. The only argument is an object + * with the following properties: + * + * - line: The line number in the generated source. The line number + * is 1-based. + * - column: The column number in the generated source. The column + * number is 0-based. + * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or + * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the + * closest element that is smaller than or greater than the one we are + * searching for, respectively, if the exact element cannot be found. + * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'. + * + * and an object is returned with the following properties: + * + * - source: The original source file, or null. + * - line: The line number in the original source, or null. The + * line number is 1-based. + * - column: The column number in the original source, or null. The + * column number is 0-based. + * - name: The original identifier, or null. + */ + BasicSourceMapConsumer.prototype.originalPositionFor = + function SourceMapConsumer_originalPositionFor(aArgs) { + var needle = { + generatedLine: util.getArg(aArgs, 'line'), + generatedColumn: util.getArg(aArgs, 'column') + }; + + var index = this._findMapping( + needle, + this._generatedMappings, + "generatedLine", + "generatedColumn", + util.compareByGeneratedPositionsDeflated, + util.getArg(aArgs, 'bias', SourceMapConsumer.GREATEST_LOWER_BOUND) + ); + + if (index >= 0) { + var mapping = this._generatedMappings[index]; + + if (mapping.generatedLine === needle.generatedLine) { + var source = util.getArg(mapping, 'source', null); + if (source !== null) { + source = this._sources.at(source); + source = util.computeSourceURL(this.sourceRoot, source, this._sourceMapURL); + } + var name = util.getArg(mapping, 'name', null); + if (name !== null) { + name = this._names.at(name); + } + return { + source: source, + line: util.getArg(mapping, 'originalLine', null), + column: util.getArg(mapping, 'originalColumn', null), + name: name + }; + } + } + + return { + source: null, + line: null, + column: null, + name: null + }; + }; + + /** + * Return true if we have the source content for every source in the source + * map, false otherwise. + */ + BasicSourceMapConsumer.prototype.hasContentsOfAllSources = + function BasicSourceMapConsumer_hasContentsOfAllSources() { + if (!this.sourcesContent) { + return false; + } + return this.sourcesContent.length >= this._sources.size() && + !this.sourcesContent.some(function (sc) { return sc == null; }); + }; + + /** + * Returns the original source content. The only argument is the url of the + * original source file. Returns null if no original source content is + * available. + */ + BasicSourceMapConsumer.prototype.sourceContentFor = + function SourceMapConsumer_sourceContentFor(aSource, nullOnMissing) { + if (!this.sourcesContent) { + return null; + } + + var index = this._findSourceIndex(aSource); + if (index >= 0) { + return this.sourcesContent[index]; + } + + var relativeSource = aSource; + if (this.sourceRoot != null) { + relativeSource = util.relative(this.sourceRoot, relativeSource); + } + + var url; + if (this.sourceRoot != null + && (url = util.urlParse(this.sourceRoot))) { + // XXX: file:// URIs and absolute paths lead to unexpected behavior for + // many users. We can help them out when they expect file:// URIs to + // behave like it would if they were running a local HTTP server. See + // https://bugzilla.mozilla.org/show_bug.cgi?id=885597. + var fileUriAbsPath = relativeSource.replace(/^file:\/\//, ""); + if (url.scheme == "file" + && this._sources.has(fileUriAbsPath)) { + return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)] + } + + if ((!url.path || url.path == "/") + && this._sources.has("/" + relativeSource)) { + return this.sourcesContent[this._sources.indexOf("/" + relativeSource)]; + } + } + + // This function is used recursively from + // IndexedSourceMapConsumer.prototype.sourceContentFor. In that case, we + // don't want to throw if we can't find the source - we just want to + // return null, so we provide a flag to exit gracefully. + if (nullOnMissing) { + return null; + } + else { + throw new Error('"' + relativeSource + '" is not in the SourceMap.'); + } + }; + + /** + * Returns the generated line and column information for the original source, + * line, and column positions provided. The only argument is an object with + * the following properties: + * + * - source: The filename of the original source. + * - line: The line number in the original source. The line number + * is 1-based. + * - column: The column number in the original source. The column + * number is 0-based. + * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or + * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the + * closest element that is smaller than or greater than the one we are + * searching for, respectively, if the exact element cannot be found. + * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'. + * + * and an object is returned with the following properties: + * + * - line: The line number in the generated source, or null. The + * line number is 1-based. + * - column: The column number in the generated source, or null. + * The column number is 0-based. + */ + BasicSourceMapConsumer.prototype.generatedPositionFor = + function SourceMapConsumer_generatedPositionFor(aArgs) { + var source = util.getArg(aArgs, 'source'); + source = this._findSourceIndex(source); + if (source < 0) { + return { + line: null, + column: null, + lastColumn: null + }; + } + + var needle = { + source: source, + originalLine: util.getArg(aArgs, 'line'), + originalColumn: util.getArg(aArgs, 'column') + }; + + var index = this._findMapping( + needle, + this._originalMappings, + "originalLine", + "originalColumn", + util.compareByOriginalPositions, + util.getArg(aArgs, 'bias', SourceMapConsumer.GREATEST_LOWER_BOUND) + ); + + if (index >= 0) { + var mapping = this._originalMappings[index]; + + if (mapping.source === needle.source) { + return { + line: util.getArg(mapping, 'generatedLine', null), + column: util.getArg(mapping, 'generatedColumn', null), + lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null) + }; + } + } + + return { + line: null, + column: null, + lastColumn: null + }; + }; + + sourceMapConsumer.BasicSourceMapConsumer = BasicSourceMapConsumer; + + /** + * An IndexedSourceMapConsumer instance represents a parsed source map which + * we can query for information. It differs from BasicSourceMapConsumer in + * that it takes "indexed" source maps (i.e. ones with a "sections" field) as + * input. + * + * The first parameter is a raw source map (either as a JSON string, or already + * parsed to an object). According to the spec for indexed source maps, they + * have the following attributes: + * + * - version: Which version of the source map spec this map is following. + * - file: Optional. The generated file this source map is associated with. + * - sections: A list of section definitions. + * + * Each value under the "sections" field has two fields: + * - offset: The offset into the original specified at which this section + * begins to apply, defined as an object with a "line" and "column" + * field. + * - map: A source map definition. This source map could also be indexed, + * but doesn't have to be. + * + * Instead of the "map" field, it's also possible to have a "url" field + * specifying a URL to retrieve a source map from, but that's currently + * unsupported. + * + * Here's an example source map, taken from the source map spec[0], but + * modified to omit a section which uses the "url" field. + * + * { + * version : 3, + * file: "app.js", + * sections: [{ + * offset: {line:100, column:10}, + * map: { + * version : 3, + * file: "section.js", + * sources: ["foo.js", "bar.js"], + * names: ["src", "maps", "are", "fun"], + * mappings: "AAAA,E;;ABCDE;" + * } + * }], + * } + * + * The second parameter, if given, is a string whose value is the URL + * at which the source map was found. This URL is used to compute the + * sources array. + * + * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit#heading=h.535es3xeprgt + */ + function IndexedSourceMapConsumer(aSourceMap, aSourceMapURL) { + var sourceMap = aSourceMap; + if (typeof aSourceMap === 'string') { + sourceMap = util.parseSourceMapInput(aSourceMap); + } + + var version = util.getArg(sourceMap, 'version'); + var sections = util.getArg(sourceMap, 'sections'); + + if (version != this._version) { + throw new Error('Unsupported version: ' + version); + } + + this._sources = new ArraySet(); + this._names = new ArraySet(); + + var lastOffset = { + line: -1, + column: 0 + }; + this._sections = sections.map(function (s) { + if (s.url) { + // The url field will require support for asynchronicity. + // See https://github.com/mozilla/source-map/issues/16 + throw new Error('Support for url field in sections not implemented.'); + } + var offset = util.getArg(s, 'offset'); + var offsetLine = util.getArg(offset, 'line'); + var offsetColumn = util.getArg(offset, 'column'); + + if (offsetLine < lastOffset.line || + (offsetLine === lastOffset.line && offsetColumn < lastOffset.column)) { + throw new Error('Section offsets must be ordered and non-overlapping.'); + } + lastOffset = offset; + + return { + generatedOffset: { + // The offset fields are 0-based, but we use 1-based indices when + // encoding/decoding from VLQ. + generatedLine: offsetLine + 1, + generatedColumn: offsetColumn + 1 + }, + consumer: new SourceMapConsumer(util.getArg(s, 'map'), aSourceMapURL) + } + }); + } + + IndexedSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype); + IndexedSourceMapConsumer.prototype.constructor = SourceMapConsumer; + + /** + * The version of the source mapping spec that we are consuming. + */ + IndexedSourceMapConsumer.prototype._version = 3; + + /** + * The list of original sources. + */ + Object.defineProperty(IndexedSourceMapConsumer.prototype, 'sources', { + get: function () { + var sources = []; + for (var i = 0; i < this._sections.length; i++) { + for (var j = 0; j < this._sections[i].consumer.sources.length; j++) { + sources.push(this._sections[i].consumer.sources[j]); + } + } + return sources; + } + }); + + /** + * Returns the original source, line, and column information for the generated + * source's line and column positions provided. The only argument is an object + * with the following properties: + * + * - line: The line number in the generated source. The line number + * is 1-based. + * - column: The column number in the generated source. The column + * number is 0-based. + * + * and an object is returned with the following properties: + * + * - source: The original source file, or null. + * - line: The line number in the original source, or null. The + * line number is 1-based. + * - column: The column number in the original source, or null. The + * column number is 0-based. + * - name: The original identifier, or null. + */ + IndexedSourceMapConsumer.prototype.originalPositionFor = + function IndexedSourceMapConsumer_originalPositionFor(aArgs) { + var needle = { + generatedLine: util.getArg(aArgs, 'line'), + generatedColumn: util.getArg(aArgs, 'column') + }; + + // Find the section containing the generated position we're trying to map + // to an original position. + var sectionIndex = binarySearch.search(needle, this._sections, + function(needle, section) { + var cmp = needle.generatedLine - section.generatedOffset.generatedLine; + if (cmp) { + return cmp; + } + + return (needle.generatedColumn - + section.generatedOffset.generatedColumn); + }); + var section = this._sections[sectionIndex]; + + if (!section) { + return { + source: null, + line: null, + column: null, + name: null + }; + } + + return section.consumer.originalPositionFor({ + line: needle.generatedLine - + (section.generatedOffset.generatedLine - 1), + column: needle.generatedColumn - + (section.generatedOffset.generatedLine === needle.generatedLine + ? section.generatedOffset.generatedColumn - 1 + : 0), + bias: aArgs.bias + }); + }; + + /** + * Return true if we have the source content for every source in the source + * map, false otherwise. + */ + IndexedSourceMapConsumer.prototype.hasContentsOfAllSources = + function IndexedSourceMapConsumer_hasContentsOfAllSources() { + return this._sections.every(function (s) { + return s.consumer.hasContentsOfAllSources(); + }); + }; + + /** + * Returns the original source content. The only argument is the url of the + * original source file. Returns null if no original source content is + * available. + */ + IndexedSourceMapConsumer.prototype.sourceContentFor = + function IndexedSourceMapConsumer_sourceContentFor(aSource, nullOnMissing) { + for (var i = 0; i < this._sections.length; i++) { + var section = this._sections[i]; + + var content = section.consumer.sourceContentFor(aSource, true); + if (content || content === '') { + return content; + } + } + if (nullOnMissing) { + return null; + } + else { + throw new Error('"' + aSource + '" is not in the SourceMap.'); + } + }; + + /** + * Returns the generated line and column information for the original source, + * line, and column positions provided. The only argument is an object with + * the following properties: + * + * - source: The filename of the original source. + * - line: The line number in the original source. The line number + * is 1-based. + * - column: The column number in the original source. The column + * number is 0-based. + * + * and an object is returned with the following properties: + * + * - line: The line number in the generated source, or null. The + * line number is 1-based. + * - column: The column number in the generated source, or null. + * The column number is 0-based. + */ + IndexedSourceMapConsumer.prototype.generatedPositionFor = + function IndexedSourceMapConsumer_generatedPositionFor(aArgs) { + for (var i = 0; i < this._sections.length; i++) { + var section = this._sections[i]; + + // Only consider this section if the requested source is in the list of + // sources of the consumer. + if (section.consumer._findSourceIndex(util.getArg(aArgs, 'source')) === -1) { + continue; + } + var generatedPosition = section.consumer.generatedPositionFor(aArgs); + if (generatedPosition) { + var ret = { + line: generatedPosition.line + + (section.generatedOffset.generatedLine - 1), + column: generatedPosition.column + + (section.generatedOffset.generatedLine === generatedPosition.line + ? section.generatedOffset.generatedColumn - 1 + : 0) + }; + return ret; + } + } + + return { + line: null, + column: null + }; + }; + + /** + * Parse the mappings in a string in to a data structure which we can easily + * query (the ordered arrays in the `this.__generatedMappings` and + * `this.__originalMappings` properties). + */ + IndexedSourceMapConsumer.prototype._parseMappings = + function IndexedSourceMapConsumer_parseMappings(aStr, aSourceRoot) { + this.__generatedMappings = []; + this.__originalMappings = []; + for (var i = 0; i < this._sections.length; i++) { + var section = this._sections[i]; + var sectionMappings = section.consumer._generatedMappings; + for (var j = 0; j < sectionMappings.length; j++) { + var mapping = sectionMappings[j]; + + var source = section.consumer._sources.at(mapping.source); + if(source !== null) { + source = util.computeSourceURL(section.consumer.sourceRoot, source, this._sourceMapURL); + } + this._sources.add(source); + source = this._sources.indexOf(source); + + var name = null; + if (mapping.name) { + name = section.consumer._names.at(mapping.name); + this._names.add(name); + name = this._names.indexOf(name); + } + + // The mappings coming from the consumer for the section have + // generated positions relative to the start of the section, so we + // need to offset them to be relative to the start of the concatenated + // generated file. + var adjustedMapping = { + source: source, + generatedLine: mapping.generatedLine + + (section.generatedOffset.generatedLine - 1), + generatedColumn: mapping.generatedColumn + + (section.generatedOffset.generatedLine === mapping.generatedLine + ? section.generatedOffset.generatedColumn - 1 + : 0), + originalLine: mapping.originalLine, + originalColumn: mapping.originalColumn, + name: name + }; + + this.__generatedMappings.push(adjustedMapping); + if (typeof adjustedMapping.originalLine === 'number') { + this.__originalMappings.push(adjustedMapping); + } + } + } + + quickSort(this.__generatedMappings, util.compareByGeneratedPositionsDeflated); + quickSort(this.__originalMappings, util.compareByOriginalPositions); + }; + + sourceMapConsumer.IndexedSourceMapConsumer = IndexedSourceMapConsumer; + return sourceMapConsumer; +} + +var sourceNode = {}; + +/* -*- Mode: js; js-indent-level: 2; -*- */ + +var hasRequiredSourceNode; + +function requireSourceNode () { + if (hasRequiredSourceNode) return sourceNode; + hasRequiredSourceNode = 1; + /* + * Copyright 2011 Mozilla Foundation and contributors + * Licensed under the New BSD license. See LICENSE or: + * http://opensource.org/licenses/BSD-3-Clause + */ + + var SourceMapGenerator = requireSourceMapGenerator().SourceMapGenerator; + var util = requireUtil(); + + // Matches a Windows-style `\r\n` newline or a `\n` newline used by all other + // operating systems these days (capturing the result). + var REGEX_NEWLINE = /(\r?\n)/; + + // Newline character code for charCodeAt() comparisons + var NEWLINE_CODE = 10; + + // Private symbol for identifying `SourceNode`s when multiple versions of + // the source-map library are loaded. This MUST NOT CHANGE across + // versions! + var isSourceNode = "$$$isSourceNode$$$"; + + /** + * SourceNodes provide a way to abstract over interpolating/concatenating + * snippets of generated JavaScript source code while maintaining the line and + * column information associated with the original source code. + * + * @param aLine The original line number. + * @param aColumn The original column number. + * @param aSource The original source's filename. + * @param aChunks Optional. An array of strings which are snippets of + * generated JS, or other SourceNodes. + * @param aName The original identifier. + */ + function SourceNode(aLine, aColumn, aSource, aChunks, aName) { + this.children = []; + this.sourceContents = {}; + this.line = aLine == null ? null : aLine; + this.column = aColumn == null ? null : aColumn; + this.source = aSource == null ? null : aSource; + this.name = aName == null ? null : aName; + this[isSourceNode] = true; + if (aChunks != null) this.add(aChunks); + } + + /** + * Creates a SourceNode from generated code and a SourceMapConsumer. + * + * @param aGeneratedCode The generated code + * @param aSourceMapConsumer The SourceMap for the generated code + * @param aRelativePath Optional. The path that relative sources in the + * SourceMapConsumer should be relative to. + */ + SourceNode.fromStringWithSourceMap = + function SourceNode_fromStringWithSourceMap(aGeneratedCode, aSourceMapConsumer, aRelativePath) { + // The SourceNode we want to fill with the generated code + // and the SourceMap + var node = new SourceNode(); + + // All even indices of this array are one line of the generated code, + // while all odd indices are the newlines between two adjacent lines + // (since `REGEX_NEWLINE` captures its match). + // Processed fragments are accessed by calling `shiftNextLine`. + var remainingLines = aGeneratedCode.split(REGEX_NEWLINE); + var remainingLinesIndex = 0; + var shiftNextLine = function() { + var lineContents = getNextLine(); + // The last line of a file might not have a newline. + var newLine = getNextLine() || ""; + return lineContents + newLine; + + function getNextLine() { + return remainingLinesIndex < remainingLines.length ? + remainingLines[remainingLinesIndex++] : undefined; + } + }; + + // We need to remember the position of "remainingLines" + var lastGeneratedLine = 1, lastGeneratedColumn = 0; + + // The generate SourceNodes we need a code range. + // To extract it current and last mapping is used. + // Here we store the last mapping. + var lastMapping = null; + + aSourceMapConsumer.eachMapping(function (mapping) { + if (lastMapping !== null) { + // We add the code from "lastMapping" to "mapping": + // First check if there is a new line in between. + if (lastGeneratedLine < mapping.generatedLine) { + // Associate first line with "lastMapping" + addMappingWithCode(lastMapping, shiftNextLine()); + lastGeneratedLine++; + lastGeneratedColumn = 0; + // The remaining code is added without mapping + } else { + // There is no new line in between. + // Associate the code between "lastGeneratedColumn" and + // "mapping.generatedColumn" with "lastMapping" + var nextLine = remainingLines[remainingLinesIndex] || ''; + var code = nextLine.substr(0, mapping.generatedColumn - + lastGeneratedColumn); + remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn - + lastGeneratedColumn); + lastGeneratedColumn = mapping.generatedColumn; + addMappingWithCode(lastMapping, code); + // No more remaining code, continue + lastMapping = mapping; + return; + } + } + // We add the generated code until the first mapping + // to the SourceNode without any mapping. + // Each line is added as separate string. + while (lastGeneratedLine < mapping.generatedLine) { + node.add(shiftNextLine()); + lastGeneratedLine++; + } + if (lastGeneratedColumn < mapping.generatedColumn) { + var nextLine = remainingLines[remainingLinesIndex] || ''; + node.add(nextLine.substr(0, mapping.generatedColumn)); + remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn); + lastGeneratedColumn = mapping.generatedColumn; + } + lastMapping = mapping; + }, this); + // We have processed all mappings. + if (remainingLinesIndex < remainingLines.length) { + if (lastMapping) { + // Associate the remaining code in the current line with "lastMapping" + addMappingWithCode(lastMapping, shiftNextLine()); + } + // and add the remaining lines without any mapping + node.add(remainingLines.splice(remainingLinesIndex).join("")); + } + + // Copy sourcesContent into SourceNode + aSourceMapConsumer.sources.forEach(function (sourceFile) { + var content = aSourceMapConsumer.sourceContentFor(sourceFile); + if (content != null) { + if (aRelativePath != null) { + sourceFile = util.join(aRelativePath, sourceFile); + } + node.setSourceContent(sourceFile, content); + } + }); + + return node; + + function addMappingWithCode(mapping, code) { + if (mapping === null || mapping.source === undefined) { + node.add(code); + } else { + var source = aRelativePath + ? util.join(aRelativePath, mapping.source) + : mapping.source; + node.add(new SourceNode(mapping.originalLine, + mapping.originalColumn, + source, + code, + mapping.name)); + } + } + }; + + /** + * Add a chunk of generated JS to this source node. + * + * @param aChunk A string snippet of generated JS code, another instance of + * SourceNode, or an array where each member is one of those things. + */ + SourceNode.prototype.add = function SourceNode_add(aChunk) { + if (Array.isArray(aChunk)) { + aChunk.forEach(function (chunk) { + this.add(chunk); + }, this); + } + else if (aChunk[isSourceNode] || typeof aChunk === "string") { + if (aChunk) { + this.children.push(aChunk); + } + } + else { + throw new TypeError( + "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk + ); + } + return this; + }; + + /** + * Add a chunk of generated JS to the beginning of this source node. + * + * @param aChunk A string snippet of generated JS code, another instance of + * SourceNode, or an array where each member is one of those things. + */ + SourceNode.prototype.prepend = function SourceNode_prepend(aChunk) { + if (Array.isArray(aChunk)) { + for (var i = aChunk.length-1; i >= 0; i--) { + this.prepend(aChunk[i]); + } + } + else if (aChunk[isSourceNode] || typeof aChunk === "string") { + this.children.unshift(aChunk); + } + else { + throw new TypeError( + "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk + ); + } + return this; + }; + + /** + * Walk over the tree of JS snippets in this node and its children. The + * walking function is called once for each snippet of JS and is passed that + * snippet and the its original associated source's line/column location. + * + * @param aFn The traversal function. + */ + SourceNode.prototype.walk = function SourceNode_walk(aFn) { + var chunk; + for (var i = 0, len = this.children.length; i < len; i++) { + chunk = this.children[i]; + if (chunk[isSourceNode]) { + chunk.walk(aFn); + } + else { + if (chunk !== '') { + aFn(chunk, { source: this.source, + line: this.line, + column: this.column, + name: this.name }); + } + } + } + }; + + /** + * Like `String.prototype.join` except for SourceNodes. Inserts `aStr` between + * each of `this.children`. + * + * @param aSep The separator. + */ + SourceNode.prototype.join = function SourceNode_join(aSep) { + var newChildren; + var i; + var len = this.children.length; + if (len > 0) { + newChildren = []; + for (i = 0; i < len-1; i++) { + newChildren.push(this.children[i]); + newChildren.push(aSep); + } + newChildren.push(this.children[i]); + this.children = newChildren; + } + return this; + }; + + /** + * Call String.prototype.replace on the very right-most source snippet. Useful + * for trimming whitespace from the end of a source node, etc. + * + * @param aPattern The pattern to replace. + * @param aReplacement The thing to replace the pattern with. + */ + SourceNode.prototype.replaceRight = function SourceNode_replaceRight(aPattern, aReplacement) { + var lastChild = this.children[this.children.length - 1]; + if (lastChild[isSourceNode]) { + lastChild.replaceRight(aPattern, aReplacement); + } + else if (typeof lastChild === 'string') { + this.children[this.children.length - 1] = lastChild.replace(aPattern, aReplacement); + } + else { + this.children.push(''.replace(aPattern, aReplacement)); + } + return this; + }; + + /** + * Set the source content for a source file. This will be added to the SourceMapGenerator + * in the sourcesContent field. + * + * @param aSourceFile The filename of the source file + * @param aSourceContent The content of the source file + */ + SourceNode.prototype.setSourceContent = + function SourceNode_setSourceContent(aSourceFile, aSourceContent) { + this.sourceContents[util.toSetString(aSourceFile)] = aSourceContent; + }; + + /** + * Walk over the tree of SourceNodes. The walking function is called for each + * source file content and is passed the filename and source content. + * + * @param aFn The traversal function. + */ + SourceNode.prototype.walkSourceContents = + function SourceNode_walkSourceContents(aFn) { + for (var i = 0, len = this.children.length; i < len; i++) { + if (this.children[i][isSourceNode]) { + this.children[i].walkSourceContents(aFn); + } + } + + var sources = Object.keys(this.sourceContents); + for (var i = 0, len = sources.length; i < len; i++) { + aFn(util.fromSetString(sources[i]), this.sourceContents[sources[i]]); + } + }; + + /** + * Return the string representation of this source node. Walks over the tree + * and concatenates all the various snippets together to one string. + */ + SourceNode.prototype.toString = function SourceNode_toString() { + var str = ""; + this.walk(function (chunk) { + str += chunk; + }); + return str; + }; + + /** + * Returns the string representation of this source node along with a source + * map. + */ + SourceNode.prototype.toStringWithSourceMap = function SourceNode_toStringWithSourceMap(aArgs) { + var generated = { + code: "", + line: 1, + column: 0 + }; + var map = new SourceMapGenerator(aArgs); + var sourceMappingActive = false; + var lastOriginalSource = null; + var lastOriginalLine = null; + var lastOriginalColumn = null; + var lastOriginalName = null; + this.walk(function (chunk, original) { + generated.code += chunk; + if (original.source !== null + && original.line !== null + && original.column !== null) { + if(lastOriginalSource !== original.source + || lastOriginalLine !== original.line + || lastOriginalColumn !== original.column + || lastOriginalName !== original.name) { + map.addMapping({ + source: original.source, + original: { + line: original.line, + column: original.column + }, + generated: { + line: generated.line, + column: generated.column + }, + name: original.name + }); + } + lastOriginalSource = original.source; + lastOriginalLine = original.line; + lastOriginalColumn = original.column; + lastOriginalName = original.name; + sourceMappingActive = true; + } else if (sourceMappingActive) { + map.addMapping({ + generated: { + line: generated.line, + column: generated.column + } + }); + lastOriginalSource = null; + sourceMappingActive = false; + } + for (var idx = 0, length = chunk.length; idx < length; idx++) { + if (chunk.charCodeAt(idx) === NEWLINE_CODE) { + generated.line++; + generated.column = 0; + // Mappings end at eol + if (idx + 1 === length) { + lastOriginalSource = null; + sourceMappingActive = false; + } else if (sourceMappingActive) { + map.addMapping({ + source: original.source, + original: { + line: original.line, + column: original.column + }, + generated: { + line: generated.line, + column: generated.column + }, + name: original.name + }); + } + } else { + generated.column++; + } + } + }); + this.walkSourceContents(function (sourceFile, sourceContent) { + map.setSourceContent(sourceFile, sourceContent); + }); + + return { code: generated.code, map: map }; + }; + + sourceNode.SourceNode = SourceNode; + return sourceNode; +} + +/* + * Copyright 2009-2011 Mozilla Foundation and contributors + * Licensed under the New BSD license. See LICENSE.txt or: + * http://opensource.org/licenses/BSD-3-Clause + */ + +var hasRequiredSourceMap; + +function requireSourceMap () { + if (hasRequiredSourceMap) return sourceMap; + hasRequiredSourceMap = 1; + sourceMap.SourceMapGenerator = requireSourceMapGenerator().SourceMapGenerator; + sourceMap.SourceMapConsumer = requireSourceMapConsumer().SourceMapConsumer; + sourceMap.SourceNode = requireSourceNode().SourceNode; + return sourceMap; +} + +var previousMap; +var hasRequiredPreviousMap; + +function requirePreviousMap () { + if (hasRequiredPreviousMap) return previousMap; + hasRequiredPreviousMap = 1; + + let { existsSync, readFileSync } = require$$0; + let { dirname, join } = require$$1; + let { SourceMapConsumer, SourceMapGenerator } = requireSourceMap(); + + function fromBase64(str) { + if (Buffer) { + return Buffer.from(str, 'base64').toString() + } else { + /* c8 ignore next 2 */ + return window.atob(str) + } + } + + class PreviousMap { + constructor(css, opts) { + if (opts.map === false) return + this.loadAnnotation(css); + this.inline = this.startWith(this.annotation, 'data:'); + + let prev = opts.map ? opts.map.prev : undefined; + let text = this.loadMap(opts.from, prev); + if (!this.mapFile && opts.from) { + this.mapFile = opts.from; + } + if (this.mapFile) this.root = dirname(this.mapFile); + if (text) this.text = text; + } + + consumer() { + if (!this.consumerCache) { + this.consumerCache = new SourceMapConsumer(this.text); + } + return this.consumerCache + } + + decodeInline(text) { + let baseCharsetUri = /^data:application\/json;charset=utf-?8;base64,/; + let baseUri = /^data:application\/json;base64,/; + let charsetUri = /^data:application\/json;charset=utf-?8,/; + let uri = /^data:application\/json,/; + + let uriMatch = text.match(charsetUri) || text.match(uri); + if (uriMatch) { + return decodeURIComponent(text.substr(uriMatch[0].length)) + } + + let baseUriMatch = text.match(baseCharsetUri) || text.match(baseUri); + if (baseUriMatch) { + return fromBase64(text.substr(baseUriMatch[0].length)) + } + + let encoding = text.match(/data:application\/json;([^,]+),/)[1]; + throw new Error('Unsupported source map encoding ' + encoding) + } + + getAnnotationURL(sourceMapString) { + return sourceMapString.replace(/^\/\*\s*# sourceMappingURL=/, '').trim() + } + + isMap(map) { + if (typeof map !== 'object') return false + return ( + typeof map.mappings === 'string' || + typeof map._mappings === 'string' || + Array.isArray(map.sections) + ) + } + + loadAnnotation(css) { + let comments = css.match(/\/\*\s*# sourceMappingURL=/g); + if (!comments) return + + // sourceMappingURLs from comments, strings, etc. + let start = css.lastIndexOf(comments.pop()); + let end = css.indexOf('*/', start); + + if (start > -1 && end > -1) { + // Locate the last sourceMappingURL to avoid pickin + this.annotation = this.getAnnotationURL(css.substring(start, end)); + } + } + + loadFile(path) { + this.root = dirname(path); + if (existsSync(path)) { + this.mapFile = path; + return readFileSync(path, 'utf-8').toString().trim() + } + } + + loadMap(file, prev) { + if (prev === false) return false + + if (prev) { + if (typeof prev === 'string') { + return prev + } else if (typeof prev === 'function') { + let prevPath = prev(file); + if (prevPath) { + let map = this.loadFile(prevPath); + if (!map) { + throw new Error( + 'Unable to load previous source map: ' + prevPath.toString() + ) + } + return map + } + } else if (prev instanceof SourceMapConsumer) { + return SourceMapGenerator.fromSourceMap(prev).toString() + } else if (prev instanceof SourceMapGenerator) { + return prev.toString() + } else if (this.isMap(prev)) { + return JSON.stringify(prev) + } else { + throw new Error( + 'Unsupported previous source map format: ' + prev.toString() + ) + } + } else if (this.inline) { + return this.decodeInline(this.annotation) + } else if (this.annotation) { + let map = this.annotation; + if (file) map = join(dirname(file), map); + return this.loadFile(map) + } + } + + startWith(string, start) { + if (!string) return false + return string.substr(0, start.length) === start + } + + withContent() { + return !!( + this.consumer().sourcesContent && + this.consumer().sourcesContent.length > 0 + ) + } + } + + previousMap = PreviousMap; + PreviousMap.default = PreviousMap; + return previousMap; +} + +var input; +var hasRequiredInput; + +function requireInput () { + if (hasRequiredInput) return input; + hasRequiredInput = 1; + + let { nanoid } = /*@__PURE__*/ requireNonSecure(); + let { isAbsolute, resolve } = require$$1; + let { SourceMapConsumer, SourceMapGenerator } = requireSourceMap(); + let { fileURLToPath, pathToFileURL } = require$$3; + + let CssSyntaxError = requireCssSyntaxError(); + let PreviousMap = requirePreviousMap(); + let terminalHighlight = requireTerminalHighlight(); + + let lineToIndexCache = Symbol('lineToIndexCache'); + + let sourceMapAvailable = Boolean(SourceMapConsumer && SourceMapGenerator); + let pathAvailable = Boolean(resolve && isAbsolute); + + function getLineToIndex(input) { + if (input[lineToIndexCache]) return input[lineToIndexCache] + let lines = input.css.split('\n'); + let lineToIndex = new Array(lines.length); + let prevIndex = 0; + + for (let i = 0, l = lines.length; i < l; i++) { + lineToIndex[i] = prevIndex; + prevIndex += lines[i].length + 1; + } + + input[lineToIndexCache] = lineToIndex; + return lineToIndex + } + + class Input { + get from() { + return this.file || this.id + } + + constructor(css, opts = {}) { + if ( + css === null || + typeof css === 'undefined' || + (typeof css === 'object' && !css.toString) + ) { + throw new Error(`PostCSS received ${css} instead of CSS string`) + } + + this.css = css.toString(); + + if (this.css[0] === '\uFEFF' || this.css[0] === '\uFFFE') { + this.hasBOM = true; + this.css = this.css.slice(1); + } else { + this.hasBOM = false; + } + + this.document = this.css; + if (opts.document) this.document = opts.document.toString(); + + if (opts.from) { + if ( + !pathAvailable || + /^\w+:\/\//.test(opts.from) || + isAbsolute(opts.from) + ) { + this.file = opts.from; + } else { + this.file = resolve(opts.from); + } + } + + if (pathAvailable && sourceMapAvailable) { + let map = new PreviousMap(this.css, opts); + if (map.text) { + this.map = map; + let file = map.consumer().file; + if (!this.file && file) this.file = this.mapResolve(file); + } + } + + if (!this.file) { + this.id = ''; + } + if (this.map) this.map.file = this.from; + } + + error(message, line, column, opts = {}) { + let endColumn, endLine, endOffset, offset, result; + + if (line && typeof line === 'object') { + let start = line; + let end = column; + if (typeof start.offset === 'number') { + offset = start.offset; + let pos = this.fromOffset(offset); + line = pos.line; + column = pos.col; + } else { + line = start.line; + column = start.column; + offset = this.fromLineAndColumn(line, column); + } + if (typeof end.offset === 'number') { + endOffset = end.offset; + let pos = this.fromOffset(endOffset); + endLine = pos.line; + endColumn = pos.col; + } else { + endLine = end.line; + endColumn = end.column; + endOffset = this.fromLineAndColumn(end.line, end.column); + } + } else if (!column) { + offset = line; + let pos = this.fromOffset(offset); + line = pos.line; + column = pos.col; + } else { + offset = this.fromLineAndColumn(line, column); + } + + let origin = this.origin(line, column, endLine, endColumn); + if (origin) { + result = new CssSyntaxError( + message, + origin.endLine === undefined + ? origin.line + : { column: origin.column, line: origin.line }, + origin.endLine === undefined + ? origin.column + : { column: origin.endColumn, line: origin.endLine }, + origin.source, + origin.file, + opts.plugin + ); + } else { + result = new CssSyntaxError( + message, + endLine === undefined ? line : { column, line }, + endLine === undefined ? column : { column: endColumn, line: endLine }, + this.css, + this.file, + opts.plugin + ); + } + + result.input = { column, endColumn, endLine, endOffset, line, offset, source: this.css }; + if (this.file) { + if (pathToFileURL) { + result.input.url = pathToFileURL(this.file).toString(); + } + result.input.file = this.file; + } + + return result + } + + fromLineAndColumn(line, column) { + let lineToIndex = getLineToIndex(this); + let index = lineToIndex[line - 1]; + return index + column - 1 + } + + fromOffset(offset) { + let lineToIndex = getLineToIndex(this); + let lastLine = lineToIndex[lineToIndex.length - 1]; + + let min = 0; + if (offset >= lastLine) { + min = lineToIndex.length - 1; + } else { + let max = lineToIndex.length - 2; + let mid; + while (min < max) { + mid = min + ((max - min) >> 1); + if (offset < lineToIndex[mid]) { + max = mid - 1; + } else if (offset >= lineToIndex[mid + 1]) { + min = mid + 1; + } else { + min = mid; + break + } + } + } + return { + col: offset - lineToIndex[min] + 1, + line: min + 1 + } + } + + mapResolve(file) { + if (/^\w+:\/\//.test(file)) { + return file + } + return resolve(this.map.consumer().sourceRoot || this.map.root || '.', file) + } + + origin(line, column, endLine, endColumn) { + if (!this.map) return false + let consumer = this.map.consumer(); + + let from = consumer.originalPositionFor({ column, line }); + if (!from.source) return false + + let to; + if (typeof endLine === 'number') { + to = consumer.originalPositionFor({ column: endColumn, line: endLine }); + } + + let fromUrl; + + if (isAbsolute(from.source)) { + fromUrl = pathToFileURL(from.source); + } else { + fromUrl = new URL( + from.source, + this.map.consumer().sourceRoot || pathToFileURL(this.map.mapFile) + ); + } + + let result = { + column: from.column, + endColumn: to && to.column, + endLine: to && to.line, + line: from.line, + url: fromUrl.toString() + }; + + if (fromUrl.protocol === 'file:') { + if (fileURLToPath) { + result.file = fileURLToPath(fromUrl); + } else { + /* c8 ignore next 2 */ + throw new Error(`file: protocol is not available in this PostCSS build`) + } + } + + let source = consumer.sourceContentFor(from.source); + if (source) result.source = source; + + return result + } + + toJSON() { + let json = {}; + for (let name of ['hasBOM', 'css', 'file', 'id']) { + if (this[name] != null) { + json[name] = this[name]; + } + } + if (this.map) { + json.map = { ...this.map }; + if (json.map.consumerCache) { + json.map.consumerCache = undefined; + } + } + return json + } + } + + input = Input; + Input.default = Input; + + if (terminalHighlight && terminalHighlight.registerInput) { + terminalHighlight.registerInput(Input); + } + return input; +} + +var root; +var hasRequiredRoot; + +function requireRoot () { + if (hasRequiredRoot) return root; + hasRequiredRoot = 1; + + let Container = requireContainer(); + + let LazyResult, Processor; + + class Root extends Container { + constructor(defaults) { + super(defaults); + this.type = 'root'; + if (!this.nodes) this.nodes = []; + } + + normalize(child, sample, type) { + let nodes = super.normalize(child); + + if (sample) { + if (type === 'prepend') { + if (this.nodes.length > 1) { + sample.raws.before = this.nodes[1].raws.before; + } else { + delete sample.raws.before; + } + } else if (this.first !== sample) { + for (let node of nodes) { + node.raws.before = sample.raws.before; + } + } + } + + return nodes + } + + removeChild(child, ignore) { + let index = this.index(child); + + if (!ignore && index === 0 && this.nodes.length > 1) { + this.nodes[1].raws.before = this.nodes[index].raws.before; + } + + return super.removeChild(child) + } + + toResult(opts = {}) { + let lazy = new LazyResult(new Processor(), this, opts); + return lazy.stringify() + } + } + + Root.registerLazyResult = dependant => { + LazyResult = dependant; + }; + + Root.registerProcessor = dependant => { + Processor = dependant; + }; + + root = Root; + Root.default = Root; + + Container.registerRoot(Root); + return root; +} + +var list_1; +var hasRequiredList; + +function requireList () { + if (hasRequiredList) return list_1; + hasRequiredList = 1; + + let list = { + comma(string) { + return list.split(string, [','], true) + }, + + space(string) { + let spaces = [' ', '\n', '\t']; + return list.split(string, spaces) + }, + + split(string, separators, last) { + let array = []; + let current = ''; + let split = false; + + let func = 0; + let inQuote = false; + let prevQuote = ''; + let escape = false; + + for (let letter of string) { + if (escape) { + escape = false; + } else if (letter === '\\') { + escape = true; + } else if (inQuote) { + if (letter === prevQuote) { + inQuote = false; + } + } else if (letter === '"' || letter === "'") { + inQuote = true; + prevQuote = letter; + } else if (letter === '(') { + func += 1; + } else if (letter === ')') { + if (func > 0) func -= 1; + } else if (func === 0) { + if (separators.includes(letter)) split = true; + } + + if (split) { + if (current !== '') array.push(current.trim()); + current = ''; + split = false; + } else { + current += letter; + } + } + + if (last || current !== '') array.push(current.trim()); + return array + } + }; + + list_1 = list; + list.default = list; + return list_1; +} + +var rule; +var hasRequiredRule; + +function requireRule () { + if (hasRequiredRule) return rule; + hasRequiredRule = 1; + + let Container = requireContainer(); + let list = requireList(); + + class Rule extends Container { + get selectors() { + return list.comma(this.selector) + } + + set selectors(values) { + let match = this.selector ? this.selector.match(/,\s*/) : null; + let sep = match ? match[0] : ',' + this.raw('between', 'beforeOpen'); + this.selector = values.join(sep); + } + + constructor(defaults) { + super(defaults); + this.type = 'rule'; + if (!this.nodes) this.nodes = []; + } + } + + rule = Rule; + Rule.default = Rule; + + Container.registerRule(Rule); + return rule; +} + +var fromJSON_1; +var hasRequiredFromJSON; + +function requireFromJSON () { + if (hasRequiredFromJSON) return fromJSON_1; + hasRequiredFromJSON = 1; + + let AtRule = requireAtRule(); + let Comment = requireComment(); + let Declaration = requireDeclaration(); + let Input = requireInput(); + let PreviousMap = requirePreviousMap(); + let Root = requireRoot(); + let Rule = requireRule(); + + function fromJSON(json, inputs) { + if (Array.isArray(json)) return json.map(n => fromJSON(n)) + + let { inputs: ownInputs, ...defaults } = json; + if (ownInputs) { + inputs = []; + for (let input of ownInputs) { + let inputHydrated = { ...input, __proto__: Input.prototype }; + if (inputHydrated.map) { + inputHydrated.map = { + ...inputHydrated.map, + __proto__: PreviousMap.prototype + }; + } + inputs.push(inputHydrated); + } + } + if (defaults.nodes) { + defaults.nodes = json.nodes.map(n => fromJSON(n, inputs)); + } + if (defaults.source) { + let { inputId, ...source } = defaults.source; + defaults.source = source; + if (inputId != null) { + defaults.source.input = inputs[inputId]; + } + } + if (defaults.type === 'root') { + return new Root(defaults) + } else if (defaults.type === 'decl') { + return new Declaration(defaults) + } else if (defaults.type === 'rule') { + return new Rule(defaults) + } else if (defaults.type === 'comment') { + return new Comment(defaults) + } else if (defaults.type === 'atrule') { + return new AtRule(defaults) + } else { + throw new Error('Unknown node type: ' + json.type) + } + } + + fromJSON_1 = fromJSON; + fromJSON.default = fromJSON; + return fromJSON_1; +} + +var mapGenerator; +var hasRequiredMapGenerator; + +function requireMapGenerator () { + if (hasRequiredMapGenerator) return mapGenerator; + hasRequiredMapGenerator = 1; + + let { dirname, relative, resolve, sep } = require$$1; + let { SourceMapConsumer, SourceMapGenerator } = requireSourceMap(); + let { pathToFileURL } = require$$3; + + let Input = requireInput(); + + let sourceMapAvailable = Boolean(SourceMapConsumer && SourceMapGenerator); + let pathAvailable = Boolean(dirname && resolve && relative && sep); + + class MapGenerator { + constructor(stringify, root, opts, cssString) { + this.stringify = stringify; + this.mapOpts = opts.map || {}; + this.root = root; + this.opts = opts; + this.css = cssString; + this.originalCSS = cssString; + this.usesFileUrls = !this.mapOpts.from && this.mapOpts.absolute; + + this.memoizedFileURLs = new Map(); + this.memoizedPaths = new Map(); + this.memoizedURLs = new Map(); + } + + addAnnotation() { + let content; + + if (this.isInline()) { + content = + 'data:application/json;base64,' + this.toBase64(this.map.toString()); + } else if (typeof this.mapOpts.annotation === 'string') { + content = this.mapOpts.annotation; + } else if (typeof this.mapOpts.annotation === 'function') { + content = this.mapOpts.annotation(this.opts.to, this.root); + } else { + content = this.outputFile() + '.map'; + } + let eol = '\n'; + if (this.css.includes('\r\n')) eol = '\r\n'; + + this.css += eol + '/*# sourceMappingURL=' + content + ' */'; + } + + applyPrevMaps() { + for (let prev of this.previous()) { + let from = this.toUrl(this.path(prev.file)); + let root = prev.root || dirname(prev.file); + let map; + + if (this.mapOpts.sourcesContent === false) { + map = new SourceMapConsumer(prev.text); + if (map.sourcesContent) { + map.sourcesContent = null; + } + } else { + map = prev.consumer(); + } + + this.map.applySourceMap(map, from, this.toUrl(this.path(root))); + } + } + + clearAnnotation() { + if (this.mapOpts.annotation === false) return + + if (this.root) { + let node; + for (let i = this.root.nodes.length - 1; i >= 0; i--) { + node = this.root.nodes[i]; + if (node.type !== 'comment') continue + if (node.text.startsWith('# sourceMappingURL=')) { + this.root.removeChild(i); + } + } + } else if (this.css) { + this.css = this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm, ''); + } + } + + generate() { + this.clearAnnotation(); + if (pathAvailable && sourceMapAvailable && this.isMap()) { + return this.generateMap() + } else { + let result = ''; + this.stringify(this.root, i => { + result += i; + }); + return [result] + } + } + + generateMap() { + if (this.root) { + this.generateString(); + } else if (this.previous().length === 1) { + let prev = this.previous()[0].consumer(); + prev.file = this.outputFile(); + this.map = SourceMapGenerator.fromSourceMap(prev, { + ignoreInvalidMapping: true + }); + } else { + this.map = new SourceMapGenerator({ + file: this.outputFile(), + ignoreInvalidMapping: true + }); + this.map.addMapping({ + generated: { column: 0, line: 1 }, + original: { column: 0, line: 1 }, + source: this.opts.from + ? this.toUrl(this.path(this.opts.from)) + : '' + }); + } + + if (this.isSourcesContent()) this.setSourcesContent(); + if (this.root && this.previous().length > 0) this.applyPrevMaps(); + if (this.isAnnotation()) this.addAnnotation(); + + if (this.isInline()) { + return [this.css] + } else { + return [this.css, this.map] + } + } + + generateString() { + this.css = ''; + this.map = new SourceMapGenerator({ + file: this.outputFile(), + ignoreInvalidMapping: true + }); + + let line = 1; + let column = 1; + + let noSource = ''; + let mapping = { + generated: { column: 0, line: 0 }, + original: { column: 0, line: 0 }, + source: '' + }; + + let last, lines; + this.stringify(this.root, (str, node, type) => { + this.css += str; + + if (node && type !== 'end') { + mapping.generated.line = line; + mapping.generated.column = column - 1; + if (node.source && node.source.start) { + mapping.source = this.sourcePath(node); + mapping.original.line = node.source.start.line; + mapping.original.column = node.source.start.column - 1; + this.map.addMapping(mapping); + } else { + mapping.source = noSource; + mapping.original.line = 1; + mapping.original.column = 0; + this.map.addMapping(mapping); + } + } + + lines = str.match(/\n/g); + if (lines) { + line += lines.length; + last = str.lastIndexOf('\n'); + column = str.length - last; + } else { + column += str.length; + } + + if (node && type !== 'start') { + let p = node.parent || { raws: {} }; + let childless = + node.type === 'decl' || (node.type === 'atrule' && !node.nodes); + if (!childless || node !== p.last || p.raws.semicolon) { + if (node.source && node.source.end) { + mapping.source = this.sourcePath(node); + mapping.original.line = node.source.end.line; + mapping.original.column = node.source.end.column - 1; + mapping.generated.line = line; + mapping.generated.column = column - 2; + this.map.addMapping(mapping); + } else { + mapping.source = noSource; + mapping.original.line = 1; + mapping.original.column = 0; + mapping.generated.line = line; + mapping.generated.column = column - 1; + this.map.addMapping(mapping); + } + } + } + }); + } + + isAnnotation() { + if (this.isInline()) { + return true + } + if (typeof this.mapOpts.annotation !== 'undefined') { + return this.mapOpts.annotation + } + if (this.previous().length) { + return this.previous().some(i => i.annotation) + } + return true + } + + isInline() { + if (typeof this.mapOpts.inline !== 'undefined') { + return this.mapOpts.inline + } + + let annotation = this.mapOpts.annotation; + if (typeof annotation !== 'undefined' && annotation !== true) { + return false + } + + if (this.previous().length) { + return this.previous().some(i => i.inline) + } + return true + } + + isMap() { + if (typeof this.opts.map !== 'undefined') { + return !!this.opts.map + } + return this.previous().length > 0 + } + + isSourcesContent() { + if (typeof this.mapOpts.sourcesContent !== 'undefined') { + return this.mapOpts.sourcesContent + } + if (this.previous().length) { + return this.previous().some(i => i.withContent()) + } + return true + } + + outputFile() { + if (this.opts.to) { + return this.path(this.opts.to) + } else if (this.opts.from) { + return this.path(this.opts.from) + } else { + return 'to.css' + } + } + + path(file) { + if (this.mapOpts.absolute) return file + if (file.charCodeAt(0) === 60 /* `<` */) return file + if (/^\w+:\/\//.test(file)) return file + let cached = this.memoizedPaths.get(file); + if (cached) return cached + + let from = this.opts.to ? dirname(this.opts.to) : '.'; + + if (typeof this.mapOpts.annotation === 'string') { + from = dirname(resolve(from, this.mapOpts.annotation)); + } + + let path = relative(from, file); + this.memoizedPaths.set(file, path); + + return path + } + + previous() { + if (!this.previousMaps) { + this.previousMaps = []; + if (this.root) { + this.root.walk(node => { + if (node.source && node.source.input.map) { + let map = node.source.input.map; + if (!this.previousMaps.includes(map)) { + this.previousMaps.push(map); + } + } + }); + } else { + let input = new Input(this.originalCSS, this.opts); + if (input.map) this.previousMaps.push(input.map); + } + } + + return this.previousMaps + } + + setSourcesContent() { + let already = {}; + if (this.root) { + this.root.walk(node => { + if (node.source) { + let from = node.source.input.from; + if (from && !already[from]) { + already[from] = true; + let fromUrl = this.usesFileUrls + ? this.toFileUrl(from) + : this.toUrl(this.path(from)); + this.map.setSourceContent(fromUrl, node.source.input.css); + } + } + }); + } else if (this.css) { + let from = this.opts.from + ? this.toUrl(this.path(this.opts.from)) + : ''; + this.map.setSourceContent(from, this.css); + } + } + + sourcePath(node) { + if (this.mapOpts.from) { + return this.toUrl(this.mapOpts.from) + } else if (this.usesFileUrls) { + return this.toFileUrl(node.source.input.from) + } else { + return this.toUrl(this.path(node.source.input.from)) + } + } + + toBase64(str) { + if (Buffer) { + return Buffer.from(str).toString('base64') + } else { + return window.btoa(unescape(encodeURIComponent(str))) + } + } + + toFileUrl(path) { + let cached = this.memoizedFileURLs.get(path); + if (cached) return cached + + if (pathToFileURL) { + let fileURL = pathToFileURL(path).toString(); + this.memoizedFileURLs.set(path, fileURL); + + return fileURL + } else { + throw new Error( + '`map.absolute` option is not available in this PostCSS build' + ) + } + } + + toUrl(path) { + let cached = this.memoizedURLs.get(path); + if (cached) return cached + + if (sep === '\\') { + path = path.replace(/\\/g, '/'); + } + + let url = encodeURI(path).replace(/[#?]/g, encodeURIComponent); + this.memoizedURLs.set(path, url); + + return url + } + } + + mapGenerator = MapGenerator; + return mapGenerator; +} + +var parser; +var hasRequiredParser; + +function requireParser () { + if (hasRequiredParser) return parser; + hasRequiredParser = 1; + + let AtRule = requireAtRule(); + let Comment = requireComment(); + let Declaration = requireDeclaration(); + let Root = requireRoot(); + let Rule = requireRule(); + let tokenizer = requireTokenize(); + + const SAFE_COMMENT_NEIGHBOR = { + empty: true, + space: true + }; + + function findLastWithPosition(tokens) { + for (let i = tokens.length - 1; i >= 0; i--) { + let token = tokens[i]; + let pos = token[3] || token[2]; + if (pos) return pos + } + } + + class Parser { + constructor(input) { + this.input = input; + + this.root = new Root(); + this.current = this.root; + this.spaces = ''; + this.semicolon = false; + + this.createTokenizer(); + this.root.source = { input, start: { column: 1, line: 1, offset: 0 } }; + } + + atrule(token) { + let node = new AtRule(); + node.name = token[1].slice(1); + if (node.name === '') { + this.unnamedAtrule(node, token); + } + this.init(node, token[2]); + + let type; + let prev; + let shift; + let last = false; + let open = false; + let params = []; + let brackets = []; + + while (!this.tokenizer.endOfFile()) { + token = this.tokenizer.nextToken(); + type = token[0]; + + if (type === '(' || type === '[') { + brackets.push(type === '(' ? ')' : ']'); + } else if (type === '{' && brackets.length > 0) { + brackets.push('}'); + } else if (type === brackets[brackets.length - 1]) { + brackets.pop(); + } + + if (brackets.length === 0) { + if (type === ';') { + node.source.end = this.getPosition(token[2]); + node.source.end.offset++; + this.semicolon = true; + break + } else if (type === '{') { + open = true; + break + } else if (type === '}') { + if (params.length > 0) { + shift = params.length - 1; + prev = params[shift]; + while (prev && prev[0] === 'space') { + prev = params[--shift]; + } + if (prev) { + node.source.end = this.getPosition(prev[3] || prev[2]); + node.source.end.offset++; + } + } + this.end(token); + break + } else { + params.push(token); + } + } else { + params.push(token); + } + + if (this.tokenizer.endOfFile()) { + last = true; + break + } + } + + node.raws.between = this.spacesAndCommentsFromEnd(params); + if (params.length) { + node.raws.afterName = this.spacesAndCommentsFromStart(params); + this.raw(node, 'params', params); + if (last) { + token = params[params.length - 1]; + node.source.end = this.getPosition(token[3] || token[2]); + node.source.end.offset++; + this.spaces = node.raws.between; + node.raws.between = ''; + } + } else { + node.raws.afterName = ''; + node.params = ''; + } + + if (open) { + node.nodes = []; + this.current = node; + } + } + + checkMissedSemicolon(tokens) { + let colon = this.colon(tokens); + if (colon === false) return + + let founded = 0; + let token; + for (let j = colon - 1; j >= 0; j--) { + token = tokens[j]; + if (token[0] !== 'space') { + founded += 1; + if (founded === 2) break + } + } + // If the token is a word, e.g. `!important`, `red` or any other valid property's value. + // Then we need to return the colon after that word token. [3] is the "end" colon of that word. + // And because we need it after that one we do +1 to get the next one. + throw this.input.error( + 'Missed semicolon', + token[0] === 'word' ? token[3] + 1 : token[2] + ) + } + + colon(tokens) { + let brackets = 0; + let prev, token, type; + for (let [i, element] of tokens.entries()) { + token = element; + type = token[0]; + + if (type === '(') { + brackets += 1; + } + if (type === ')') { + brackets -= 1; + } + if (brackets === 0 && type === ':') { + if (!prev) { + this.doubleColon(token); + } else if (prev[0] === 'word' && prev[1] === 'progid') { + continue + } else { + return i + } + } + + prev = token; + } + return false + } + + comment(token) { + let node = new Comment(); + this.init(node, token[2]); + node.source.end = this.getPosition(token[3] || token[2]); + node.source.end.offset++; + + let text = token[1].slice(2, -2); + if (/^\s*$/.test(text)) { + node.text = ''; + node.raws.left = text; + node.raws.right = ''; + } else { + let match = text.match(/^(\s*)([^]*\S)(\s*)$/); + node.text = match[2]; + node.raws.left = match[1]; + node.raws.right = match[3]; + } + } + + createTokenizer() { + this.tokenizer = tokenizer(this.input); + } + + decl(tokens, customProperty) { + let node = new Declaration(); + this.init(node, tokens[0][2]); + + let last = tokens[tokens.length - 1]; + if (last[0] === ';') { + this.semicolon = true; + tokens.pop(); + } + + node.source.end = this.getPosition( + last[3] || last[2] || findLastWithPosition(tokens) + ); + node.source.end.offset++; + + while (tokens[0][0] !== 'word') { + if (tokens.length === 1) this.unknownWord(tokens); + node.raws.before += tokens.shift()[1]; + } + node.source.start = this.getPosition(tokens[0][2]); + + node.prop = ''; + while (tokens.length) { + let type = tokens[0][0]; + if (type === ':' || type === 'space' || type === 'comment') { + break + } + node.prop += tokens.shift()[1]; + } + + node.raws.between = ''; + + let token; + while (tokens.length) { + token = tokens.shift(); + + if (token[0] === ':') { + node.raws.between += token[1]; + break + } else { + if (token[0] === 'word' && /\w/.test(token[1])) { + this.unknownWord([token]); + } + node.raws.between += token[1]; + } + } + + if (node.prop[0] === '_' || node.prop[0] === '*') { + node.raws.before += node.prop[0]; + node.prop = node.prop.slice(1); + } + + let firstSpaces = []; + let next; + while (tokens.length) { + next = tokens[0][0]; + if (next !== 'space' && next !== 'comment') break + firstSpaces.push(tokens.shift()); + } + + this.precheckMissedSemicolon(tokens); + + for (let i = tokens.length - 1; i >= 0; i--) { + token = tokens[i]; + if (token[1].toLowerCase() === '!important') { + node.important = true; + let string = this.stringFrom(tokens, i); + string = this.spacesFromEnd(tokens) + string; + if (string !== ' !important') node.raws.important = string; + break + } else if (token[1].toLowerCase() === 'important') { + let cache = tokens.slice(0); + let str = ''; + for (let j = i; j > 0; j--) { + let type = cache[j][0]; + if (str.trim().startsWith('!') && type !== 'space') { + break + } + str = cache.pop()[1] + str; + } + if (str.trim().startsWith('!')) { + node.important = true; + node.raws.important = str; + tokens = cache; + } + } + + if (token[0] !== 'space' && token[0] !== 'comment') { + break + } + } + + let hasWord = tokens.some(i => i[0] !== 'space' && i[0] !== 'comment'); + + if (hasWord) { + node.raws.between += firstSpaces.map(i => i[1]).join(''); + firstSpaces = []; + } + this.raw(node, 'value', firstSpaces.concat(tokens), customProperty); + + if (node.value.includes(':') && !customProperty) { + this.checkMissedSemicolon(tokens); + } + } + + doubleColon(token) { + throw this.input.error( + 'Double colon', + { offset: token[2] }, + { offset: token[2] + token[1].length } + ) + } + + emptyRule(token) { + let node = new Rule(); + this.init(node, token[2]); + node.selector = ''; + node.raws.between = ''; + this.current = node; + } + + end(token) { + if (this.current.nodes && this.current.nodes.length) { + this.current.raws.semicolon = this.semicolon; + } + this.semicolon = false; + + this.current.raws.after = (this.current.raws.after || '') + this.spaces; + this.spaces = ''; + + if (this.current.parent) { + this.current.source.end = this.getPosition(token[2]); + this.current.source.end.offset++; + this.current = this.current.parent; + } else { + this.unexpectedClose(token); + } + } + + endFile() { + if (this.current.parent) this.unclosedBlock(); + if (this.current.nodes && this.current.nodes.length) { + this.current.raws.semicolon = this.semicolon; + } + this.current.raws.after = (this.current.raws.after || '') + this.spaces; + this.root.source.end = this.getPosition(this.tokenizer.position()); + } + + freeSemicolon(token) { + this.spaces += token[1]; + if (this.current.nodes) { + let prev = this.current.nodes[this.current.nodes.length - 1]; + if (prev && prev.type === 'rule' && !prev.raws.ownSemicolon) { + prev.raws.ownSemicolon = this.spaces; + this.spaces = ''; + prev.source.end = this.getPosition(token[2]); + prev.source.end.offset += prev.raws.ownSemicolon.length; + } + } + } + + // Helpers + + getPosition(offset) { + let pos = this.input.fromOffset(offset); + return { + column: pos.col, + line: pos.line, + offset + } + } + + init(node, offset) { + this.current.push(node); + node.source = { + input: this.input, + start: this.getPosition(offset) + }; + node.raws.before = this.spaces; + this.spaces = ''; + if (node.type !== 'comment') this.semicolon = false; + } + + other(start) { + let end = false; + let type = null; + let colon = false; + let bracket = null; + let brackets = []; + let customProperty = start[1].startsWith('--'); + + let tokens = []; + let token = start; + while (token) { + type = token[0]; + tokens.push(token); + + if (type === '(' || type === '[') { + if (!bracket) bracket = token; + brackets.push(type === '(' ? ')' : ']'); + } else if (customProperty && colon && type === '{') { + if (!bracket) bracket = token; + brackets.push('}'); + } else if (brackets.length === 0) { + if (type === ';') { + if (colon) { + this.decl(tokens, customProperty); + return + } else { + break + } + } else if (type === '{') { + this.rule(tokens); + return + } else if (type === '}') { + this.tokenizer.back(tokens.pop()); + end = true; + break + } else if (type === ':') { + colon = true; + } + } else if (type === brackets[brackets.length - 1]) { + brackets.pop(); + if (brackets.length === 0) bracket = null; + } + + token = this.tokenizer.nextToken(); + } + + if (this.tokenizer.endOfFile()) end = true; + if (brackets.length > 0) this.unclosedBracket(bracket); + + if (end && colon) { + if (!customProperty) { + while (tokens.length) { + token = tokens[tokens.length - 1][0]; + if (token !== 'space' && token !== 'comment') break + this.tokenizer.back(tokens.pop()); + } + } + this.decl(tokens, customProperty); + } else { + this.unknownWord(tokens); + } + } + + parse() { + let token; + while (!this.tokenizer.endOfFile()) { + token = this.tokenizer.nextToken(); + + switch (token[0]) { + case 'space': + this.spaces += token[1]; + break + + case ';': + this.freeSemicolon(token); + break + + case '}': + this.end(token); + break + + case 'comment': + this.comment(token); + break + + case 'at-word': + this.atrule(token); + break + + case '{': + this.emptyRule(token); + break + + default: + this.other(token); + break + } + } + this.endFile(); + } + + precheckMissedSemicolon(/* tokens */) { + // Hook for Safe Parser + } + + raw(node, prop, tokens, customProperty) { + let token, type; + let length = tokens.length; + let value = ''; + let clean = true; + let next, prev; + + for (let i = 0; i < length; i += 1) { + token = tokens[i]; + type = token[0]; + if (type === 'space' && i === length - 1 && !customProperty) { + clean = false; + } else if (type === 'comment') { + prev = tokens[i - 1] ? tokens[i - 1][0] : 'empty'; + next = tokens[i + 1] ? tokens[i + 1][0] : 'empty'; + if (!SAFE_COMMENT_NEIGHBOR[prev] && !SAFE_COMMENT_NEIGHBOR[next]) { + if (value.slice(-1) === ',') { + clean = false; + } else { + value += token[1]; + } + } else { + clean = false; + } + } else { + value += token[1]; + } + } + if (!clean) { + let raw = tokens.reduce((all, i) => all + i[1], ''); + node.raws[prop] = { raw, value }; + } + node[prop] = value; + } + + rule(tokens) { + tokens.pop(); + + let node = new Rule(); + this.init(node, tokens[0][2]); + + node.raws.between = this.spacesAndCommentsFromEnd(tokens); + this.raw(node, 'selector', tokens); + this.current = node; + } + + spacesAndCommentsFromEnd(tokens) { + let lastTokenType; + let spaces = ''; + while (tokens.length) { + lastTokenType = tokens[tokens.length - 1][0]; + if (lastTokenType !== 'space' && lastTokenType !== 'comment') break + spaces = tokens.pop()[1] + spaces; + } + return spaces + } + + // Errors + + spacesAndCommentsFromStart(tokens) { + let next; + let spaces = ''; + while (tokens.length) { + next = tokens[0][0]; + if (next !== 'space' && next !== 'comment') break + spaces += tokens.shift()[1]; + } + return spaces + } + + spacesFromEnd(tokens) { + let lastTokenType; + let spaces = ''; + while (tokens.length) { + lastTokenType = tokens[tokens.length - 1][0]; + if (lastTokenType !== 'space') break + spaces = tokens.pop()[1] + spaces; + } + return spaces + } + + stringFrom(tokens, from) { + let result = ''; + for (let i = from; i < tokens.length; i++) { + result += tokens[i][1]; + } + tokens.splice(from, tokens.length - from); + return result + } + + unclosedBlock() { + let pos = this.current.source.start; + throw this.input.error('Unclosed block', pos.line, pos.column) + } + + unclosedBracket(bracket) { + throw this.input.error( + 'Unclosed bracket', + { offset: bracket[2] }, + { offset: bracket[2] + 1 } + ) + } + + unexpectedClose(token) { + throw this.input.error( + 'Unexpected }', + { offset: token[2] }, + { offset: token[2] + 1 } + ) + } + + unknownWord(tokens) { + throw this.input.error( + 'Unknown word ' + tokens[0][1], + { offset: tokens[0][2] }, + { offset: tokens[0][2] + tokens[0][1].length } + ) + } + + unnamedAtrule(node, token) { + throw this.input.error( + 'At-rule without name', + { offset: token[2] }, + { offset: token[2] + token[1].length } + ) + } + } + + parser = Parser; + return parser; +} + +var parse_1; +var hasRequiredParse; + +function requireParse () { + if (hasRequiredParse) return parse_1; + hasRequiredParse = 1; + + let Container = requireContainer(); + let Input = requireInput(); + let Parser = requireParser(); + + function parse(css, opts) { + let input = new Input(css, opts); + let parser = new Parser(input); + try { + parser.parse(); + } catch (e) { + if (process.env.NODE_ENV !== 'production') { + if (e.name === 'CssSyntaxError' && opts && opts.from) { + if (/\.scss$/i.test(opts.from)) { + e.message += + '\nYou tried to parse SCSS with ' + + 'the standard CSS parser; ' + + 'try again with the postcss-scss parser'; + } else if (/\.sass/i.test(opts.from)) { + e.message += + '\nYou tried to parse Sass with ' + + 'the standard CSS parser; ' + + 'try again with the postcss-sass parser'; + } else if (/\.less$/i.test(opts.from)) { + e.message += + '\nYou tried to parse Less with ' + + 'the standard CSS parser; ' + + 'try again with the postcss-less parser'; + } + } + } + throw e + } + + return parser.root + } + + parse_1 = parse; + parse.default = parse; + + Container.registerParse(parse); + return parse_1; +} + +var warning; +var hasRequiredWarning; + +function requireWarning () { + if (hasRequiredWarning) return warning; + hasRequiredWarning = 1; + + class Warning { + constructor(text, opts = {}) { + this.type = 'warning'; + this.text = text; + + if (opts.node && opts.node.source) { + let range = opts.node.rangeBy(opts); + this.line = range.start.line; + this.column = range.start.column; + this.endLine = range.end.line; + this.endColumn = range.end.column; + } + + for (let opt in opts) this[opt] = opts[opt]; + } + + toString() { + if (this.node) { + return this.node.error(this.text, { + index: this.index, + plugin: this.plugin, + word: this.word + }).message + } + + if (this.plugin) { + return this.plugin + ': ' + this.text + } + + return this.text + } + } + + warning = Warning; + Warning.default = Warning; + return warning; +} + +var result; +var hasRequiredResult; + +function requireResult () { + if (hasRequiredResult) return result; + hasRequiredResult = 1; + + let Warning = requireWarning(); + + class Result { + get content() { + return this.css + } + + constructor(processor, root, opts) { + this.processor = processor; + this.messages = []; + this.root = root; + this.opts = opts; + this.css = ''; + this.map = undefined; + } + + toString() { + return this.css + } + + warn(text, opts = {}) { + if (!opts.plugin) { + if (this.lastPlugin && this.lastPlugin.postcssPlugin) { + opts.plugin = this.lastPlugin.postcssPlugin; + } + } + + let warning = new Warning(text, opts); + this.messages.push(warning); + + return warning + } + + warnings() { + return this.messages.filter(i => i.type === 'warning') + } + } + + result = Result; + Result.default = Result; + return result; +} + +/* eslint-disable no-console */ + +var warnOnce; +var hasRequiredWarnOnce; + +function requireWarnOnce () { + if (hasRequiredWarnOnce) return warnOnce; + hasRequiredWarnOnce = 1; + + let printed = {}; + + warnOnce = function warnOnce(message) { + if (printed[message]) return + printed[message] = true; + + if (typeof console !== 'undefined' && console.warn) { + console.warn(message); + } + }; + return warnOnce; +} + +var lazyResult; +var hasRequiredLazyResult; + +function requireLazyResult () { + if (hasRequiredLazyResult) return lazyResult; + hasRequiredLazyResult = 1; + + let Container = requireContainer(); + let Document = requireDocument(); + let MapGenerator = requireMapGenerator(); + let parse = requireParse(); + let Result = requireResult(); + let Root = requireRoot(); + let stringify = requireStringify(); + let { isClean, my } = requireSymbols(); + let warnOnce = requireWarnOnce(); + + const TYPE_TO_CLASS_NAME = { + atrule: 'AtRule', + comment: 'Comment', + decl: 'Declaration', + document: 'Document', + root: 'Root', + rule: 'Rule' + }; + + const PLUGIN_PROPS = { + AtRule: true, + AtRuleExit: true, + Comment: true, + CommentExit: true, + Declaration: true, + DeclarationExit: true, + Document: true, + DocumentExit: true, + Once: true, + OnceExit: true, + postcssPlugin: true, + prepare: true, + Root: true, + RootExit: true, + Rule: true, + RuleExit: true + }; + + const NOT_VISITORS = { + Once: true, + postcssPlugin: true, + prepare: true + }; + + const CHILDREN = 0; + + function isPromise(obj) { + return typeof obj === 'object' && typeof obj.then === 'function' + } + + function getEvents(node) { + let key = false; + let type = TYPE_TO_CLASS_NAME[node.type]; + if (node.type === 'decl') { + key = node.prop.toLowerCase(); + } else if (node.type === 'atrule') { + key = node.name.toLowerCase(); + } + + if (key && node.append) { + return [ + type, + type + '-' + key, + CHILDREN, + type + 'Exit', + type + 'Exit-' + key + ] + } else if (key) { + return [type, type + '-' + key, type + 'Exit', type + 'Exit-' + key] + } else if (node.append) { + return [type, CHILDREN, type + 'Exit'] + } else { + return [type, type + 'Exit'] + } + } + + function toStack(node) { + let events; + if (node.type === 'document') { + events = ['Document', CHILDREN, 'DocumentExit']; + } else if (node.type === 'root') { + events = ['Root', CHILDREN, 'RootExit']; + } else { + events = getEvents(node); + } + + return { + eventIndex: 0, + events, + iterator: 0, + node, + visitorIndex: 0, + visitors: [] + } + } + + function cleanMarks(node) { + node[isClean] = false; + if (node.nodes) node.nodes.forEach(i => cleanMarks(i)); + return node + } + + let postcss = {}; + + class LazyResult { + get content() { + return this.stringify().content + } + + get css() { + return this.stringify().css + } + + get map() { + return this.stringify().map + } + + get messages() { + return this.sync().messages + } + + get opts() { + return this.result.opts + } + + get processor() { + return this.result.processor + } + + get root() { + return this.sync().root + } + + get [Symbol.toStringTag]() { + return 'LazyResult' + } + + constructor(processor, css, opts) { + this.stringified = false; + this.processed = false; + + let root; + if ( + typeof css === 'object' && + css !== null && + (css.type === 'root' || css.type === 'document') + ) { + root = cleanMarks(css); + } else if (css instanceof LazyResult || css instanceof Result) { + root = cleanMarks(css.root); + if (css.map) { + if (typeof opts.map === 'undefined') opts.map = {}; + if (!opts.map.inline) opts.map.inline = false; + opts.map.prev = css.map; + } + } else { + let parser = parse; + if (opts.syntax) parser = opts.syntax.parse; + if (opts.parser) parser = opts.parser; + if (parser.parse) parser = parser.parse; + + try { + root = parser(css, opts); + } catch (error) { + this.processed = true; + this.error = error; + } + + if (root && !root[my]) { + /* c8 ignore next 2 */ + Container.rebuild(root); + } + } + + this.result = new Result(processor, root, opts); + this.helpers = { ...postcss, postcss, result: this.result }; + this.plugins = this.processor.plugins.map(plugin => { + if (typeof plugin === 'object' && plugin.prepare) { + return { ...plugin, ...plugin.prepare(this.result) } + } else { + return plugin + } + }); + } + + async() { + if (this.error) return Promise.reject(this.error) + if (this.processed) return Promise.resolve(this.result) + if (!this.processing) { + this.processing = this.runAsync(); + } + return this.processing + } + + catch(onRejected) { + return this.async().catch(onRejected) + } + + finally(onFinally) { + return this.async().then(onFinally, onFinally) + } + + getAsyncError() { + throw new Error('Use process(css).then(cb) to work with async plugins') + } + + handleError(error, node) { + let plugin = this.result.lastPlugin; + try { + if (node) node.addToError(error); + this.error = error; + if (error.name === 'CssSyntaxError' && !error.plugin) { + error.plugin = plugin.postcssPlugin; + error.setMessage(); + } else if (plugin.postcssVersion) { + if (process.env.NODE_ENV !== 'production') { + let pluginName = plugin.postcssPlugin; + let pluginVer = plugin.postcssVersion; + let runtimeVer = this.result.processor.version; + let a = pluginVer.split('.'); + let b = runtimeVer.split('.'); + + if (a[0] !== b[0] || parseInt(a[1]) > parseInt(b[1])) { + // eslint-disable-next-line no-console + console.error( + 'Unknown error from PostCSS plugin. Your current PostCSS ' + + 'version is ' + + runtimeVer + + ', but ' + + pluginName + + ' uses ' + + pluginVer + + '. Perhaps this is the source of the error below.' + ); + } + } + } + } catch (err) { + /* c8 ignore next 3 */ + // eslint-disable-next-line no-console + if (console && console.error) console.error(err); + } + return error + } + + prepareVisitors() { + this.listeners = {}; + let add = (plugin, type, cb) => { + if (!this.listeners[type]) this.listeners[type] = []; + this.listeners[type].push([plugin, cb]); + }; + for (let plugin of this.plugins) { + if (typeof plugin === 'object') { + for (let event in plugin) { + if (!PLUGIN_PROPS[event] && /^[A-Z]/.test(event)) { + throw new Error( + `Unknown event ${event} in ${plugin.postcssPlugin}. ` + + `Try to update PostCSS (${this.processor.version} now).` + ) + } + if (!NOT_VISITORS[event]) { + if (typeof plugin[event] === 'object') { + for (let filter in plugin[event]) { + if (filter === '*') { + add(plugin, event, plugin[event][filter]); + } else { + add( + plugin, + event + '-' + filter.toLowerCase(), + plugin[event][filter] + ); + } + } + } else if (typeof plugin[event] === 'function') { + add(plugin, event, plugin[event]); + } + } + } + } + } + this.hasListener = Object.keys(this.listeners).length > 0; + } + + async runAsync() { + this.plugin = 0; + for (let i = 0; i < this.plugins.length; i++) { + let plugin = this.plugins[i]; + let promise = this.runOnRoot(plugin); + if (isPromise(promise)) { + try { + await promise; + } catch (error) { + throw this.handleError(error) + } + } + } + + this.prepareVisitors(); + if (this.hasListener) { + let root = this.result.root; + while (!root[isClean]) { + root[isClean] = true; + let stack = [toStack(root)]; + while (stack.length > 0) { + let promise = this.visitTick(stack); + if (isPromise(promise)) { + try { + await promise; + } catch (e) { + let node = stack[stack.length - 1].node; + throw this.handleError(e, node) + } + } + } + } + + if (this.listeners.OnceExit) { + for (let [plugin, visitor] of this.listeners.OnceExit) { + this.result.lastPlugin = plugin; + try { + if (root.type === 'document') { + let roots = root.nodes.map(subRoot => + visitor(subRoot, this.helpers) + ); + + await Promise.all(roots); + } else { + await visitor(root, this.helpers); + } + } catch (e) { + throw this.handleError(e) + } + } + } + } + + this.processed = true; + return this.stringify() + } + + runOnRoot(plugin) { + this.result.lastPlugin = plugin; + try { + if (typeof plugin === 'object' && plugin.Once) { + if (this.result.root.type === 'document') { + let roots = this.result.root.nodes.map(root => + plugin.Once(root, this.helpers) + ); + + if (isPromise(roots[0])) { + return Promise.all(roots) + } + + return roots + } + + return plugin.Once(this.result.root, this.helpers) + } else if (typeof plugin === 'function') { + return plugin(this.result.root, this.result) + } + } catch (error) { + throw this.handleError(error) + } + } + + stringify() { + if (this.error) throw this.error + if (this.stringified) return this.result + this.stringified = true; + + this.sync(); + + let opts = this.result.opts; + let str = stringify; + if (opts.syntax) str = opts.syntax.stringify; + if (opts.stringifier) str = opts.stringifier; + if (str.stringify) str = str.stringify; + + let map = new MapGenerator(str, this.result.root, this.result.opts); + let data = map.generate(); + this.result.css = data[0]; + this.result.map = data[1]; + + return this.result + } + + sync() { + if (this.error) throw this.error + if (this.processed) return this.result + this.processed = true; + + if (this.processing) { + throw this.getAsyncError() + } + + for (let plugin of this.plugins) { + let promise = this.runOnRoot(plugin); + if (isPromise(promise)) { + throw this.getAsyncError() + } + } + + this.prepareVisitors(); + if (this.hasListener) { + let root = this.result.root; + while (!root[isClean]) { + root[isClean] = true; + this.walkSync(root); + } + if (this.listeners.OnceExit) { + if (root.type === 'document') { + for (let subRoot of root.nodes) { + this.visitSync(this.listeners.OnceExit, subRoot); + } + } else { + this.visitSync(this.listeners.OnceExit, root); + } + } + } + + return this.result + } + + then(onFulfilled, onRejected) { + if (process.env.NODE_ENV !== 'production') { + if (!('from' in this.opts)) { + warnOnce( + 'Without `from` option PostCSS could generate wrong source map ' + + 'and will not find Browserslist config. Set it to CSS file path ' + + 'or to `undefined` to prevent this warning.' + ); + } + } + return this.async().then(onFulfilled, onRejected) + } + + toString() { + return this.css + } + + visitSync(visitors, node) { + for (let [plugin, visitor] of visitors) { + this.result.lastPlugin = plugin; + let promise; + try { + promise = visitor(node, this.helpers); + } catch (e) { + throw this.handleError(e, node.proxyOf) + } + if (node.type !== 'root' && node.type !== 'document' && !node.parent) { + return true + } + if (isPromise(promise)) { + throw this.getAsyncError() + } + } + } + + visitTick(stack) { + let visit = stack[stack.length - 1]; + let { node, visitors } = visit; + + if (node.type !== 'root' && node.type !== 'document' && !node.parent) { + stack.pop(); + return + } + + if (visitors.length > 0 && visit.visitorIndex < visitors.length) { + let [plugin, visitor] = visitors[visit.visitorIndex]; + visit.visitorIndex += 1; + if (visit.visitorIndex === visitors.length) { + visit.visitors = []; + visit.visitorIndex = 0; + } + this.result.lastPlugin = plugin; + try { + return visitor(node.toProxy(), this.helpers) + } catch (e) { + throw this.handleError(e, node) + } + } + + if (visit.iterator !== 0) { + let iterator = visit.iterator; + let child; + while ((child = node.nodes[node.indexes[iterator]])) { + node.indexes[iterator] += 1; + if (!child[isClean]) { + child[isClean] = true; + stack.push(toStack(child)); + return + } + } + visit.iterator = 0; + delete node.indexes[iterator]; + } + + let events = visit.events; + while (visit.eventIndex < events.length) { + let event = events[visit.eventIndex]; + visit.eventIndex += 1; + if (event === CHILDREN) { + if (node.nodes && node.nodes.length) { + node[isClean] = true; + visit.iterator = node.getIterator(); + } + return + } else if (this.listeners[event]) { + visit.visitors = this.listeners[event]; + return + } + } + stack.pop(); + } + + walkSync(node) { + node[isClean] = true; + let events = getEvents(node); + for (let event of events) { + if (event === CHILDREN) { + if (node.nodes) { + node.each(child => { + if (!child[isClean]) this.walkSync(child); + }); + } + } else { + let visitors = this.listeners[event]; + if (visitors) { + if (this.visitSync(visitors, node.toProxy())) return + } + } + } + } + + warnings() { + return this.sync().warnings() + } + } + + LazyResult.registerPostcss = dependant => { + postcss = dependant; + }; + + lazyResult = LazyResult; + LazyResult.default = LazyResult; + + Root.registerLazyResult(LazyResult); + Document.registerLazyResult(LazyResult); + return lazyResult; +} + +var noWorkResult; +var hasRequiredNoWorkResult; + +function requireNoWorkResult () { + if (hasRequiredNoWorkResult) return noWorkResult; + hasRequiredNoWorkResult = 1; + + let MapGenerator = requireMapGenerator(); + let parse = requireParse(); + const Result = requireResult(); + let stringify = requireStringify(); + let warnOnce = requireWarnOnce(); + + class NoWorkResult { + get content() { + return this.result.css + } + + get css() { + return this.result.css + } + + get map() { + return this.result.map + } + + get messages() { + return [] + } + + get opts() { + return this.result.opts + } + + get processor() { + return this.result.processor + } + + get root() { + if (this._root) { + return this._root + } + + let root; + let parser = parse; + + try { + root = parser(this._css, this._opts); + } catch (error) { + this.error = error; + } + + if (this.error) { + throw this.error + } else { + this._root = root; + return root + } + } + + get [Symbol.toStringTag]() { + return 'NoWorkResult' + } + + constructor(processor, css, opts) { + css = css.toString(); + this.stringified = false; + + this._processor = processor; + this._css = css; + this._opts = opts; + this._map = undefined; + let root; + + let str = stringify; + this.result = new Result(this._processor, root, this._opts); + this.result.css = css; + + let self = this; + Object.defineProperty(this.result, 'root', { + get() { + return self.root + } + }); + + let map = new MapGenerator(str, root, this._opts, css); + if (map.isMap()) { + let [generatedCSS, generatedMap] = map.generate(); + if (generatedCSS) { + this.result.css = generatedCSS; + } + if (generatedMap) { + this.result.map = generatedMap; + } + } else { + map.clearAnnotation(); + this.result.css = map.css; + } + } + + async() { + if (this.error) return Promise.reject(this.error) + return Promise.resolve(this.result) + } + + catch(onRejected) { + return this.async().catch(onRejected) + } + + finally(onFinally) { + return this.async().then(onFinally, onFinally) + } + + sync() { + if (this.error) throw this.error + return this.result + } + + then(onFulfilled, onRejected) { + if (process.env.NODE_ENV !== 'production') { + if (!('from' in this._opts)) { + warnOnce( + 'Without `from` option PostCSS could generate wrong source map ' + + 'and will not find Browserslist config. Set it to CSS file path ' + + 'or to `undefined` to prevent this warning.' + ); + } + } + + return this.async().then(onFulfilled, onRejected) + } + + toString() { + return this._css + } + + warnings() { + return [] + } + } + + noWorkResult = NoWorkResult; + NoWorkResult.default = NoWorkResult; + return noWorkResult; +} + +var processor; +var hasRequiredProcessor; + +function requireProcessor () { + if (hasRequiredProcessor) return processor; + hasRequiredProcessor = 1; + + let Document = requireDocument(); + let LazyResult = requireLazyResult(); + let NoWorkResult = requireNoWorkResult(); + let Root = requireRoot(); + + class Processor { + constructor(plugins = []) { + this.version = '8.5.6'; + this.plugins = this.normalize(plugins); + } + + normalize(plugins) { + let normalized = []; + for (let i of plugins) { + if (i.postcss === true) { + i = i(); + } else if (i.postcss) { + i = i.postcss; + } + + if (typeof i === 'object' && Array.isArray(i.plugins)) { + normalized = normalized.concat(i.plugins); + } else if (typeof i === 'object' && i.postcssPlugin) { + normalized.push(i); + } else if (typeof i === 'function') { + normalized.push(i); + } else if (typeof i === 'object' && (i.parse || i.stringify)) { + if (process.env.NODE_ENV !== 'production') { + throw new Error( + 'PostCSS syntaxes cannot be used as plugins. Instead, please use ' + + 'one of the syntax/parser/stringifier options as outlined ' + + 'in your PostCSS runner documentation.' + ) + } + } else { + throw new Error(i + ' is not a PostCSS plugin') + } + } + return normalized + } + + process(css, opts = {}) { + if ( + !this.plugins.length && + !opts.parser && + !opts.stringifier && + !opts.syntax + ) { + return new NoWorkResult(this, css, opts) + } else { + return new LazyResult(this, css, opts) + } + } + + use(plugin) { + this.plugins = this.plugins.concat(this.normalize([plugin])); + return this + } + } + + processor = Processor; + Processor.default = Processor; + + Root.registerProcessor(Processor); + Document.registerProcessor(Processor); + return processor; +} + +var postcss_1; +var hasRequiredPostcss; + +function requirePostcss () { + if (hasRequiredPostcss) return postcss_1; + hasRequiredPostcss = 1; + + let AtRule = requireAtRule(); + let Comment = requireComment(); + let Container = requireContainer(); + let CssSyntaxError = requireCssSyntaxError(); + let Declaration = requireDeclaration(); + let Document = requireDocument(); + let fromJSON = requireFromJSON(); + let Input = requireInput(); + let LazyResult = requireLazyResult(); + let list = requireList(); + let Node = requireNode(); + let parse = requireParse(); + let Processor = requireProcessor(); + let Result = requireResult(); + let Root = requireRoot(); + let Rule = requireRule(); + let stringify = requireStringify(); + let Warning = requireWarning(); + + function postcss(...plugins) { + if (plugins.length === 1 && Array.isArray(plugins[0])) { + plugins = plugins[0]; + } + return new Processor(plugins) + } + + postcss.plugin = function plugin(name, initializer) { + let warningPrinted = false; + function creator(...args) { + // eslint-disable-next-line no-console + if (console && console.warn && !warningPrinted) { + warningPrinted = true; + // eslint-disable-next-line no-console + console.warn( + name + + ': postcss.plugin was deprecated. Migration guide:\n' + + 'https://evilmartians.com/chronicles/postcss-8-plugin-migration' + ); + if (process.env.LANG && process.env.LANG.startsWith('cn')) { + /* c8 ignore next 7 */ + // eslint-disable-next-line no-console + console.warn( + name + + ': 里面 postcss.plugin 被弃用. 迁移指南:\n' + + 'https://www.w3ctech.com/topic/2226' + ); + } + } + let transformer = initializer(...args); + transformer.postcssPlugin = name; + transformer.postcssVersion = new Processor().version; + return transformer + } + + let cache; + Object.defineProperty(creator, 'postcss', { + get() { + if (!cache) cache = creator(); + return cache + } + }); + + creator.process = function (css, processOpts, pluginOpts) { + return postcss([creator(pluginOpts)]).process(css, processOpts) + }; + + return creator + }; + + postcss.stringify = stringify; + postcss.parse = parse; + postcss.fromJSON = fromJSON; + postcss.list = list; + + postcss.comment = defaults => new Comment(defaults); + postcss.atRule = defaults => new AtRule(defaults); + postcss.decl = defaults => new Declaration(defaults); + postcss.rule = defaults => new Rule(defaults); + postcss.root = defaults => new Root(defaults); + postcss.document = defaults => new Document(defaults); + + postcss.CssSyntaxError = CssSyntaxError; + postcss.Declaration = Declaration; + postcss.Container = Container; + postcss.Processor = Processor; + postcss.Document = Document; + postcss.Comment = Comment; + postcss.Warning = Warning; + postcss.AtRule = AtRule; + postcss.Result = Result; + postcss.Input = Input; + postcss.Rule = Rule; + postcss.Root = Root; + postcss.Node = Node; + + LazyResult.registerPostcss(postcss); + + postcss_1 = postcss; + postcss.default = postcss; + return postcss_1; +} + +var postcssExports = requirePostcss(); +var postcss = /*@__PURE__*/getDefaultExportFromCjs(postcssExports); + +postcss.stringify; +postcss.fromJSON; +postcss.plugin; +postcss.parse; +postcss.list; + +postcss.document; +postcss.comment; +postcss.atRule; +postcss.rule; +postcss.decl; +postcss.root; + +postcss.CssSyntaxError; +postcss.Declaration; +postcss.Container; +postcss.Processor; +postcss.Document; +postcss.Comment; +postcss.Warning; +postcss.AtRule; +postcss.Result; +postcss.Input; +postcss.Rule; +postcss.Root; +postcss.Node; + +var J={},Y={},Eu={},K={},pu={},Bu;function qe(){return Bu||(Bu=1,Object.defineProperty(pu,"__esModule",{value:true}),pu.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(function(t){return t.charCodeAt(0)}))),pu}var gu={},ju;function De(){return ju||(ju=1,Object.defineProperty(gu,"__esModule",{value:true}),gu.default=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(t){return t.charCodeAt(0)}))),gu}var Au={},Hu;function Uu(){return Hu||(Hu=1,(function(t){var w;Object.defineProperty(t,"__esModule",{value:true}),t.replaceCodePoint=t.fromCodePoint=void 0;var o=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);t.fromCodePoint=(w=String.fromCodePoint)!==null&&w!==void 0?w:function(y){var b="";return y>65535&&(y-=65536,b+=String.fromCharCode(y>>>10&1023|55296),y=56320|y&1023),b+=String.fromCharCode(y),b};function n(y){var b;return y>=55296&&y<=57343||y>1114111?65533:(b=o.get(y))!==null&&b!==void 0?b:y}t.replaceCodePoint=n;function A(y){return (0, t.fromCodePoint)(n(y))}t.default=A;})(Au)),Au}var Vu;function Tu(){return Vu||(Vu=1,(function(t){var w=K&&K.__createBinding||(Object.create?(function(p,_,D,O){O===void 0&&(O=D);var P=Object.getOwnPropertyDescriptor(_,D);(!P||("get"in P?!_.__esModule:P.writable||P.configurable))&&(P={enumerable:true,get:function(){return _[D]}}),Object.defineProperty(p,O,P);}):(function(p,_,D,O){O===void 0&&(O=D),p[O]=_[D];})),o=K&&K.__setModuleDefault||(Object.create?(function(p,_){Object.defineProperty(p,"default",{enumerable:true,value:_});}):function(p,_){p.default=_;}),n=K&&K.__importStar||function(p){if(p&&p.__esModule)return p;var _={};if(p!=null)for(var D in p)D!=="default"&&Object.prototype.hasOwnProperty.call(p,D)&&w(_,p,D);return o(_,p),_},A=K&&K.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(t,"__esModule",{value:true}),t.decodeXML=t.decodeHTMLStrict=t.decodeHTMLAttribute=t.decodeHTML=t.determineBranch=t.EntityDecoder=t.DecodingMode=t.BinTrieFlags=t.fromCodePoint=t.replaceCodePoint=t.decodeCodePoint=t.xmlDecodeTree=t.htmlDecodeTree=void 0;var y=A(qe());t.htmlDecodeTree=y.default;var b=A(De());t.xmlDecodeTree=b.default;var f=n(Uu());t.decodeCodePoint=f.default;var c=Uu();Object.defineProperty(t,"replaceCodePoint",{enumerable:true,get:function(){return c.replaceCodePoint}}),Object.defineProperty(t,"fromCodePoint",{enumerable:true,get:function(){return c.fromCodePoint}});var a;(function(p){p[p.NUM=35]="NUM",p[p.SEMI=59]="SEMI",p[p.EQUALS=61]="EQUALS",p[p.ZERO=48]="ZERO",p[p.NINE=57]="NINE",p[p.LOWER_A=97]="LOWER_A",p[p.LOWER_F=102]="LOWER_F",p[p.LOWER_X=120]="LOWER_X",p[p.LOWER_Z=122]="LOWER_Z",p[p.UPPER_A=65]="UPPER_A",p[p.UPPER_F=70]="UPPER_F",p[p.UPPER_Z=90]="UPPER_Z";})(a||(a={}));var v=32,T;(function(p){p[p.VALUE_LENGTH=49152]="VALUE_LENGTH",p[p.BRANCH_LENGTH=16256]="BRANCH_LENGTH",p[p.JUMP_TABLE=127]="JUMP_TABLE";})(T=t.BinTrieFlags||(t.BinTrieFlags={}));function u(p){return p>=a.ZERO&&p<=a.NINE}function e(p){return p>=a.UPPER_A&&p<=a.UPPER_F||p>=a.LOWER_A&&p<=a.LOWER_F}function l(p){return p>=a.UPPER_A&&p<=a.UPPER_Z||p>=a.LOWER_A&&p<=a.LOWER_Z||u(p)}function S(p){return p===a.EQUALS||l(p)}var m;(function(p){p[p.EntityStart=0]="EntityStart",p[p.NumericStart=1]="NumericStart",p[p.NumericDecimal=2]="NumericDecimal",p[p.NumericHex=3]="NumericHex",p[p.NamedEntity=4]="NamedEntity";})(m||(m={}));var r;(function(p){p[p.Legacy=0]="Legacy",p[p.Strict=1]="Strict",p[p.Attribute=2]="Attribute";})(r=t.DecodingMode||(t.DecodingMode={}));var h=(function(){function p(_,D,O){this.decodeTree=_,this.emitCodePoint=D,this.errors=O,this.state=m.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=r.Strict;}return p.prototype.startEntity=function(_){this.decodeMode=_,this.state=m.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1;},p.prototype.write=function(_,D){switch(this.state){case m.EntityStart:return _.charCodeAt(D)===a.NUM?(this.state=m.NumericStart,this.consumed+=1,this.stateNumericStart(_,D+1)):(this.state=m.NamedEntity,this.stateNamedEntity(_,D));case m.NumericStart:return this.stateNumericStart(_,D);case m.NumericDecimal:return this.stateNumericDecimal(_,D);case m.NumericHex:return this.stateNumericHex(_,D);case m.NamedEntity:return this.stateNamedEntity(_,D)}},p.prototype.stateNumericStart=function(_,D){return D>=_.length?-1:(_.charCodeAt(D)|v)===a.LOWER_X?(this.state=m.NumericHex,this.consumed+=1,this.stateNumericHex(_,D+1)):(this.state=m.NumericDecimal,this.stateNumericDecimal(_,D))},p.prototype.addToNumericResult=function(_,D,O,P){if(D!==O){var R=O-D;this.result=this.result*Math.pow(P,R)+parseInt(_.substr(D,R),P),this.consumed+=R;}},p.prototype.stateNumericHex=function(_,D){for(var O=D;D<_.length;){var P=_.charCodeAt(D);if(u(P)||e(P))D+=1;else return this.addToNumericResult(_,O,D,16),this.emitNumericEntity(P,3)}return this.addToNumericResult(_,O,D,16),-1},p.prototype.stateNumericDecimal=function(_,D){for(var O=D;D<_.length;){var P=_.charCodeAt(D);if(u(P))D+=1;else return this.addToNumericResult(_,O,D,10),this.emitNumericEntity(P,2)}return this.addToNumericResult(_,O,D,10),-1},p.prototype.emitNumericEntity=function(_,D){var O;if(this.consumed<=D)return (O=this.errors)===null||O===void 0||O.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(_===a.SEMI)this.consumed+=1;else if(this.decodeMode===r.Strict)return 0;return this.emitCodePoint((0, f.replaceCodePoint)(this.result),this.consumed),this.errors&&(_!==a.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed},p.prototype.stateNamedEntity=function(_,D){for(var O=this.decodeTree,P=O[this.treeIndex],R=(P&T.VALUE_LENGTH)>>14;D<_.length;D++,this.excess++){var V=_.charCodeAt(D);if(this.treeIndex=s(O,P,this.treeIndex+Math.max(1,R),V),this.treeIndex<0)return this.result===0||this.decodeMode===r.Attribute&&(R===0||S(V))?0:this.emitNotTerminatedNamedEntity();if(P=O[this.treeIndex],R=(P&T.VALUE_LENGTH)>>14,R!==0){if(V===a.SEMI)return this.emitNamedEntityData(this.treeIndex,R,this.consumed+this.excess);this.decodeMode!==r.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0);}}return -1},p.prototype.emitNotTerminatedNamedEntity=function(){var _,D=this,O=D.result,P=D.decodeTree,R=(P[O]&T.VALUE_LENGTH)>>14;return this.emitNamedEntityData(O,R,this.consumed),(_=this.errors)===null||_===void 0||_.missingSemicolonAfterCharacterReference(),this.consumed},p.prototype.emitNamedEntityData=function(_,D,O){var P=this.decodeTree;return this.emitCodePoint(D===1?P[_]&~T.VALUE_LENGTH:P[_+1],O),D===3&&this.emitCodePoint(P[_+2],O),O},p.prototype.end=function(){var _;switch(this.state){case m.NamedEntity:return this.result!==0&&(this.decodeMode!==r.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case m.NumericDecimal:return this.emitNumericEntity(0,2);case m.NumericHex:return this.emitNumericEntity(0,3);case m.NumericStart:return (_=this.errors)===null||_===void 0||_.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case m.EntityStart:return 0}},p})();t.EntityDecoder=h;function d(p){var _="",D=new h(p,function(O){return _+=(0, f.fromCodePoint)(O)});return function(P,R){for(var V=0,F=0;(F=P.indexOf("&",F))>=0;){_+=P.slice(V,F),D.startEntity(R);var z=D.write(P,F+1);if(z<0){V=F+D.end();break}V=F+z,F=z===0?V+1:V;}var Q=_+P.slice(V);return _="",Q}}function s(p,_,D,O){var P=(_&T.BRANCH_LENGTH)>>7,R=_&T.JUMP_TABLE;if(P===0)return R!==0&&O===R?D:-1;if(R){var V=O-R;return V<0||V>=P?-1:p[D+V]-1}for(var F=D,z=F+P-1;F<=z;){var Q=F+z>>>1,su=p[Q];if(suO)z=Q-1;else return p[Q+P]}return -1}t.determineBranch=s;var i=d(y.default),g=d(b.default);function x(p,_){return _===void 0&&(_=r.Legacy),i(p,_)}t.decodeHTML=x;function N(p){return i(p,r.Attribute)}t.decodeHTMLAttribute=N;function L(p){return i(p,r.Strict)}t.decodeHTMLStrict=L;function C(p){return g(p,r.Strict)}t.decodeXML=C;})(K)),K}var Fu;function ge(){return Fu||(Fu=1,(function(t){Object.defineProperty(t,"__esModule",{value:true}),t.QuoteType=void 0;var w=Tu(),o;(function(u){u[u.Tab=9]="Tab",u[u.NewLine=10]="NewLine",u[u.FormFeed=12]="FormFeed",u[u.CarriageReturn=13]="CarriageReturn",u[u.Space=32]="Space",u[u.ExclamationMark=33]="ExclamationMark",u[u.Number=35]="Number",u[u.Amp=38]="Amp",u[u.SingleQuote=39]="SingleQuote",u[u.DoubleQuote=34]="DoubleQuote",u[u.Dash=45]="Dash",u[u.Slash=47]="Slash",u[u.Zero=48]="Zero",u[u.Nine=57]="Nine",u[u.Semi=59]="Semi",u[u.Lt=60]="Lt",u[u.Eq=61]="Eq",u[u.Gt=62]="Gt",u[u.Questionmark=63]="Questionmark",u[u.UpperA=65]="UpperA",u[u.LowerA=97]="LowerA",u[u.UpperF=70]="UpperF",u[u.LowerF=102]="LowerF",u[u.UpperZ=90]="UpperZ",u[u.LowerZ=122]="LowerZ",u[u.LowerX=120]="LowerX",u[u.OpeningSquareBracket=91]="OpeningSquareBracket";})(o||(o={}));var n;(function(u){u[u.Text=1]="Text",u[u.BeforeTagName=2]="BeforeTagName",u[u.InTagName=3]="InTagName",u[u.InSelfClosingTag=4]="InSelfClosingTag",u[u.BeforeClosingTagName=5]="BeforeClosingTagName",u[u.InClosingTagName=6]="InClosingTagName",u[u.AfterClosingTagName=7]="AfterClosingTagName",u[u.BeforeAttributeName=8]="BeforeAttributeName",u[u.InAttributeName=9]="InAttributeName",u[u.AfterAttributeName=10]="AfterAttributeName",u[u.BeforeAttributeValue=11]="BeforeAttributeValue",u[u.InAttributeValueDq=12]="InAttributeValueDq",u[u.InAttributeValueSq=13]="InAttributeValueSq",u[u.InAttributeValueNq=14]="InAttributeValueNq",u[u.BeforeDeclaration=15]="BeforeDeclaration",u[u.InDeclaration=16]="InDeclaration",u[u.InProcessingInstruction=17]="InProcessingInstruction",u[u.BeforeComment=18]="BeforeComment",u[u.CDATASequence=19]="CDATASequence",u[u.InSpecialComment=20]="InSpecialComment",u[u.InCommentLike=21]="InCommentLike",u[u.BeforeSpecialS=22]="BeforeSpecialS",u[u.SpecialStartSequence=23]="SpecialStartSequence",u[u.InSpecialTag=24]="InSpecialTag",u[u.BeforeEntity=25]="BeforeEntity",u[u.BeforeNumericEntity=26]="BeforeNumericEntity",u[u.InNamedEntity=27]="InNamedEntity",u[u.InNumericEntity=28]="InNumericEntity",u[u.InHexEntity=29]="InHexEntity";})(n||(n={}));function A(u){return u===o.Space||u===o.NewLine||u===o.Tab||u===o.FormFeed||u===o.CarriageReturn}function y(u){return u===o.Slash||u===o.Gt||A(u)}function b(u){return u>=o.Zero&&u<=o.Nine}function f(u){return u>=o.LowerA&&u<=o.LowerZ||u>=o.UpperA&&u<=o.UpperZ}function c(u){return u>=o.UpperA&&u<=o.UpperF||u>=o.LowerA&&u<=o.LowerF}var a;(function(u){u[u.NoValue=0]="NoValue",u[u.Unquoted=1]="Unquoted",u[u.Single=2]="Single",u[u.Double=3]="Double";})(a=t.QuoteType||(t.QuoteType={}));var v={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},T=(function(){function u(e,l){var S=e.xmlMode,m=S===void 0?false:S,r=e.decodeEntities,h=r===void 0?true:r;this.cbs=l,this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.isSpecial=false,this.running=true,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=m,this.decodeEntities=h,this.entityTrie=m?w.xmlDecodeTree:w.htmlDecodeTree;}return u.prototype.reset=function(){this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.currentSequence=void 0,this.running=true,this.offset=0;},u.prototype.write=function(e){this.offset+=this.buffer.length,this.buffer=e,this.parse();},u.prototype.end=function(){this.running&&this.finish();},u.prototype.pause=function(){this.running=false;},u.prototype.resume=function(){this.running=true,this.indexthis.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=n.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===o.Amp&&(this.state=n.BeforeEntity);},u.prototype.stateSpecialStartSequence=function(e){var l=this.sequenceIndex===this.currentSequence.length,S=l?y(e):(e|32)===this.currentSequence[this.sequenceIndex];if(!S)this.isSpecial=false;else if(!l){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=n.InTagName,this.stateInTagName(e);},u.prototype.stateInSpecialTag=function(e){if(this.sequenceIndex===this.currentSequence.length){if(e===o.Gt||A(e)){var l=this.index-this.currentSequence.length;if(this.sectionStart>14)-1;if(!this.allowLegacyEntity()&&e!==o.Semi)this.trieIndex+=S;else {var m=this.index-this.entityExcess+1;m>this.sectionStart&&this.emitPartial(this.sectionStart,m),this.entityResult=this.trieIndex,this.trieIndex+=S,this.entityExcess=0,this.sectionStart=this.index+1,S===0&&this.emitNamedEntity();}}},u.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var e=(this.entityTrie[this.entityResult]&w.BinTrieFlags.VALUE_LENGTH)>>14;switch(e){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~w.BinTrieFlags.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2]);}}},u.prototype.stateBeforeNumericEntity=function(e){(e|32)===o.LowerX?(this.entityExcess++,this.state=n.InHexEntity):(this.state=n.InNumericEntity,this.stateInNumericEntity(e));},u.prototype.emitNumericEntity=function(e){var l=this.index-this.entityExcess-1,S=l+2+ +(this.state===n.InHexEntity);S!==this.index&&(l>this.sectionStart&&this.emitPartial(this.sectionStart,l),this.sectionStart=this.index+Number(e),this.emitCodePoint((0, w.replaceCodePoint)(this.entityResult))),this.state=this.baseState;},u.prototype.stateInNumericEntity=function(e){e===o.Semi?this.emitNumericEntity(true):b(e)?(this.entityResult=this.entityResult*10+(e-o.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(false):this.state=this.baseState,this.index--);},u.prototype.stateInHexEntity=function(e){e===o.Semi?this.emitNumericEntity(true):b(e)?(this.entityResult=this.entityResult*16+(e-o.Zero),this.entityExcess++):c(e)?(this.entityResult=this.entityResult*16+((e|32)-o.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(false):this.state=this.baseState,this.index--);},u.prototype.allowLegacyEntity=function(){return !this.xmlMode&&(this.baseState===n.Text||this.baseState===n.InSpecialTag)},u.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===n.Text||this.state===n.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===n.InAttributeValueDq||this.state===n.InAttributeValueSq||this.state===n.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index));},u.prototype.shouldContinue=function(){return this.index0&&g.has(this.stack[this.stack.length-1]);){var x=this.stack.pop();(d=(h=this.cbs).onclosetag)===null||d===void 0||d.call(h,x,true);}this.isVoidElement(r)||(this.stack.push(r),u.has(r)?this.foreignContext.push(true):e.has(r)&&this.foreignContext.push(false)),(i=(s=this.cbs).onopentagname)===null||i===void 0||i.call(s,r),this.cbs.onopentag&&(this.attribs={});},m.prototype.endOpenTag=function(r){var h,d;this.startIndex=this.openTagStart,this.attribs&&((d=(h=this.cbs).onopentag)===null||d===void 0||d.call(h,this.tagname,this.attribs,r),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,true),this.tagname="";},m.prototype.onopentagend=function(r){this.endIndex=r,this.endOpenTag(false),this.startIndex=r+1;},m.prototype.onclosetag=function(r,h){var d,s,i,g,x,N;this.endIndex=h;var L=this.getSlice(r,h);if(this.lowerCaseTagNames&&(L=L.toLowerCase()),(u.has(L)||e.has(L))&&this.foreignContext.pop(),this.isVoidElement(L))!this.options.xmlMode&&L==="br"&&((s=(d=this.cbs).onopentagname)===null||s===void 0||s.call(d,"br"),(g=(i=this.cbs).onopentag)===null||g===void 0||g.call(i,"br",{},true),(N=(x=this.cbs).onclosetag)===null||N===void 0||N.call(x,"br",false));else {var C=this.stack.lastIndexOf(L);if(C!==-1)if(this.cbs.onclosetag)for(var p=this.stack.length-C;p--;)this.cbs.onclosetag(this.stack.pop(),p!==0);else this.stack.length=C;else !this.options.xmlMode&&L==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(true));}this.startIndex=h+1;},m.prototype.onselfclosingtag=function(r){this.endIndex=r,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(false),this.startIndex=r+1):this.onopentagend(r);},m.prototype.closeCurrentTag=function(r){var h,d,s=this.tagname;this.endOpenTag(r),this.stack[this.stack.length-1]===s&&((d=(h=this.cbs).onclosetag)===null||d===void 0||d.call(h,s,!r),this.stack.pop());},m.prototype.onattribname=function(r,h){this.startIndex=r;var d=this.getSlice(r,h);this.attribname=this.lowerCaseAttributeNames?d.toLowerCase():d;},m.prototype.onattribdata=function(r,h){this.attribvalue+=this.getSlice(r,h);},m.prototype.onattribentity=function(r){this.attribvalue+=(0, A.fromCodePoint)(r);},m.prototype.onattribend=function(r,h){var d,s;this.endIndex=h,(s=(d=this.cbs).onattribute)===null||s===void 0||s.call(d,this.attribname,this.attribvalue,r===n.QuoteType.Double?'"':r===n.QuoteType.Single?"'":r===n.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue="";},m.prototype.getInstructionName=function(r){var h=r.search(l),d=h<0?r:r.substr(0,h);return this.lowerCaseTagNames&&(d=d.toLowerCase()),d},m.prototype.ondeclaration=function(r,h){this.endIndex=h;var d=this.getSlice(r,h);if(this.cbs.onprocessinginstruction){var s=this.getInstructionName(d);this.cbs.onprocessinginstruction("!".concat(s),"!".concat(d));}this.startIndex=h+1;},m.prototype.onprocessinginstruction=function(r,h){this.endIndex=h;var d=this.getSlice(r,h);if(this.cbs.onprocessinginstruction){var s=this.getInstructionName(d);this.cbs.onprocessinginstruction("?".concat(s),"?".concat(d));}this.startIndex=h+1;},m.prototype.oncomment=function(r,h,d){var s,i,g,x;this.endIndex=h,(i=(s=this.cbs).oncomment)===null||i===void 0||i.call(s,this.getSlice(r,h-d)),(x=(g=this.cbs).oncommentend)===null||x===void 0||x.call(g),this.startIndex=h+1;},m.prototype.oncdata=function(r,h,d){var s,i,g,x,N,L,C,p,_,D;this.endIndex=h;var O=this.getSlice(r,h-d);this.options.xmlMode||this.options.recognizeCDATA?((i=(s=this.cbs).oncdatastart)===null||i===void 0||i.call(s),(x=(g=this.cbs).ontext)===null||x===void 0||x.call(g,O),(L=(N=this.cbs).oncdataend)===null||L===void 0||L.call(N)):((p=(C=this.cbs).oncomment)===null||p===void 0||p.call(C,"[CDATA[".concat(O,"]]")),(D=(_=this.cbs).oncommentend)===null||D===void 0||D.call(_)),this.startIndex=h+1;},m.prototype.onend=function(){var r,h;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var d=this.stack.length;d>0;this.cbs.onclosetag(this.stack[--d],true));}(h=(r=this.cbs).onend)===null||h===void 0||h.call(r);},m.prototype.reset=function(){var r,h,d,s;(h=(r=this.cbs).onreset)===null||h===void 0||h.call(r),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(s=(d=this.cbs).onparserinit)===null||s===void 0||s.call(d,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=false;},m.prototype.parseComplete=function(r){this.reset(),this.end(r);},m.prototype.getSlice=function(r,h){for(;r-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var d=this.buffers[0].slice(r-this.bufferOffset,h-this.bufferOffset);h-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),d+=this.buffers[0].slice(0,h-this.bufferOffset);return d},m.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift();},m.prototype.write=function(r){var h,d;if(this.ended){(d=(h=this.cbs).onerror)===null||d===void 0||d.call(h,new Error(".write() after done!"));return}this.buffers.push(r),this.tokenizer.running&&(this.tokenizer.write(r),this.writeIndex++);},m.prototype.end=function(r){var h,d;if(this.ended){(d=(h=this.cbs).onerror)===null||d===void 0||d.call(h,new Error(".end() after done!"));return}r&&this.write(r),this.ended=true,this.tokenizer.end();},m.prototype.pause=function(){this.tokenizer.pause();},m.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex0?this.children[this.children.length-1]:null},enumerable:false,configurable:true}),Object.defineProperty(g.prototype,"childNodes",{get:function(){return this.children},set:function(x){this.children=x;},enumerable:false,configurable:true}),g})(n);k.NodeWithChildren=c;var a=(function(i){t(g,i);function g(){var x=i!==null&&i.apply(this,arguments)||this;return x.type=o.ElementType.CDATA,x}return Object.defineProperty(g.prototype,"nodeType",{get:function(){return 4},enumerable:false,configurable:true}),g})(c);k.CDATA=a;var v=(function(i){t(g,i);function g(){var x=i!==null&&i.apply(this,arguments)||this;return x.type=o.ElementType.Root,x}return Object.defineProperty(g.prototype,"nodeType",{get:function(){return 9},enumerable:false,configurable:true}),g})(c);k.Document=v;var T=(function(i){t(g,i);function g(x,N,L,C){L===void 0&&(L=[]),C===void 0&&(C=x==="script"?o.ElementType.Script:x==="style"?o.ElementType.Style:o.ElementType.Tag);var p=i.call(this,L)||this;return p.name=x,p.attribs=N,p.type=C,p}return Object.defineProperty(g.prototype,"nodeType",{get:function(){return 1},enumerable:false,configurable:true}),Object.defineProperty(g.prototype,"tagName",{get:function(){return this.name},set:function(x){this.name=x;},enumerable:false,configurable:true}),Object.defineProperty(g.prototype,"attributes",{get:function(){var x=this;return Object.keys(this.attribs).map(function(N){var L,C;return {name:N,value:x.attribs[N],namespace:(L=x["x-attribsNamespace"])===null||L===void 0?void 0:L[N],prefix:(C=x["x-attribsPrefix"])===null||C===void 0?void 0:C[N]}})},enumerable:false,configurable:true}),g})(c);k.Element=T;function u(i){return (0, o.isTag)(i)}k.isTag=u;function e(i){return i.type===o.ElementType.CDATA}k.isCDATA=e;function l(i){return i.type===o.ElementType.Text}k.isText=l;function S(i){return i.type===o.ElementType.Comment}k.isComment=S;function m(i){return i.type===o.ElementType.Directive}k.isDirective=m;function r(i){return i.type===o.ElementType.Root}k.isDocument=r;function h(i){return Object.prototype.hasOwnProperty.call(i,"children")}k.hasChildren=h;function d(i,g){g===void 0&&(g=false);var x;if(l(i))x=new y(i.data);else if(S(i))x=new b(i.data);else if(u(i)){var N=g?s(i.children):[],L=new T(i.name,w({},i.attribs),N);N.forEach(function(D){return D.parent=L}),i.namespace!=null&&(L.namespace=i.namespace),i["x-attribsNamespace"]&&(L["x-attribsNamespace"]=w({},i["x-attribsNamespace"])),i["x-attribsPrefix"]&&(L["x-attribsPrefix"]=w({},i["x-attribsPrefix"])),x=L;}else if(e(i)){var N=g?s(i.children):[],C=new a(N);N.forEach(function(O){return O.parent=C}),x=C;}else if(r(i)){var N=g?s(i.children):[],p=new v(N);N.forEach(function(O){return O.parent=p}),i["x-mode"]&&(p["x-mode"]=i["x-mode"]),x=p;}else if(m(i)){var _=new f(i.name,i.data);i["x-name"]!=null&&(_["x-name"]=i["x-name"],_["x-publicId"]=i["x-publicId"],_["x-systemId"]=i["x-systemId"]),x=_;}else throw new Error("Not implemented yet: ".concat(i.type));return x.startIndex=i.startIndex,x.endIndex=i.endIndex,i.sourceCodeLocation!=null&&(x.sourceCodeLocation=i.sourceCodeLocation),x}k.cloneNode=d;function s(i){for(var g=i.map(function(N){return d(N,true)}),x=1;x$\x80-\uFFFF]/g;var w=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);t.getCodePoint=String.prototype.codePointAt!=null?function(A,y){return A.codePointAt(y)}:function(A,y){return (A.charCodeAt(y)&64512)===55296?(A.charCodeAt(y)-55296)*1024+A.charCodeAt(y+1)-56320+65536:A.charCodeAt(y)};function o(A){for(var y="",b=0,f;(f=t.xmlReplacer.exec(A))!==null;){var c=f.index,a=A.charCodeAt(c),v=w.get(a);v!==void 0?(y+=A.substring(b,c)+v,b=c+1):(y+="".concat(A.substring(b,c),"&#x").concat((0, t.getCodePoint)(A,c).toString(16),";"),b=t.xmlReplacer.lastIndex+=+((a&64512)===55296));}return y+A.substr(b)}t.encodeXML=o,t.escape=o;function n(A,y){return function(f){for(var c,a=0,v="";c=A.exec(f);)a!==c.index&&(v+=f.substring(a,c.index)),v+=y.get(c[0].charCodeAt(0)),a=c.index+1;return v+f.substring(a)}}t.escapeUTF8=n(/[&<>'"]/g,w),t.escapeAttribute=n(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),t.escapeText=n(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]));})(_u)),_u}var Ku;function $u(){if(Ku)return tu;Ku=1;var t=tu&&tu.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(tu,"__esModule",{value:true}),tu.encodeNonAsciiHTML=tu.encodeHTML=void 0;var w=t(Ie()),o=Lu(),n=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function A(f){return b(n,f)}tu.encodeHTML=A;function y(f){return b(o.xmlReplacer,f)}tu.encodeNonAsciiHTML=y;function b(f,c){for(var a="",v=0,T;(T=f.exec(c))!==null;){var u=T.index;a+=c.substring(v,u);var e=c.charCodeAt(u),l=w.default.get(e);if(typeof l=="object"){if(u+10&&(x+=T(s.children,i)),(i.xmlMode||!v.has(s.name))&&(x+=""))),x}function m(s){return "<".concat(s.data,">")}function r(s,i){var g,x=s.data||"";return ((g=i.encodeEntities)!==null&&g!==void 0?g:i.decodeEntities)!==false&&!(!i.xmlMode&&s.parent&&f.has(s.parent.name))&&(x=i.xmlMode||i.encodeEntities!=="utf8"?(0, y.encodeXML)(x):(0, y.escapeText)(x)),x}function h(s){return "")}function d(s){return "")}return W}var re;function me(){if(re)return uu;re=1;var t=uu&&uu.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(uu,"__esModule",{value:true}),uu.getOuterHTML=A,uu.getInnerHTML=y,uu.getText=b,uu.textContent=f,uu.innerText=c;var w=cu(),o=t(Pe()),n=hu();function A(a,v){return (0, o.default)(a,v)}function y(a,v){return (0, w.hasChildren)(a)?a.children.map(function(T){return A(T,v)}).join(""):""}function b(a){return Array.isArray(a)?a.map(b).join(""):(0, w.isTag)(a)?a.name==="br"?` +`:b(a.children):(0, w.isCDATA)(a)?b(a.children):(0, w.isText)(a)?a.data:""}function f(a){return Array.isArray(a)?a.map(f).join(""):(0, w.hasChildren)(a)&&!(0, w.isComment)(a)?f(a.children):(0, w.isText)(a)?a.data:""}function c(a){return Array.isArray(a)?a.map(c).join(""):(0, w.hasChildren)(a)&&(a.type===n.ElementType.Tag||(0, w.isCDATA)(a))?c(a.children):(0, w.isText)(a)?a.data:""}return uu}var $={},ae;function Me(){if(ae)return $;ae=1,Object.defineProperty($,"__esModule",{value:true}),$.getChildren=w,$.getParent=o,$.getSiblings=n,$.getAttributeValue=A,$.hasAttrib=y,$.getName=b,$.nextElementSibling=f,$.prevElementSibling=c;var t=cu();function w(a){return (0, t.hasChildren)(a)?a.children:[]}function o(a){return a.parent||null}function n(a){var v,T,u=o(a);if(u!=null)return w(u);for(var e=[a],l=a.prev,S=a.next;l!=null;)e.unshift(l),v=l,l=v.prev;for(;S!=null;)e.push(S),T=S,S=T.next;return e}function A(a,v){var T;return (T=a.attribs)===null||T===void 0?void 0:T[v]}function y(a,v){return a.attribs!=null&&Object.prototype.hasOwnProperty.call(a.attribs,v)&&a.attribs[v]!=null}function b(a){return a.name}function f(a){for(var v,T=a.next;T!==null&&!(0, t.isTag)(T);)v=T,T=v.next;return T}function c(a){for(var v,T=a.prev;T!==null&&!(0, t.isTag)(T);)v=T,T=v.prev;return T}return $}var ru={},ie;function ke(){if(ie)return ru;ie=1,Object.defineProperty(ru,"__esModule",{value:true}),ru.removeElement=t,ru.replaceElement=w,ru.appendChild=o,ru.append=n,ru.prependChild=A,ru.prepend=y;function t(b){if(b.prev&&(b.prev.next=b.next),b.next&&(b.next.prev=b.prev),b.parent){var f=b.parent.children,c=f.lastIndexOf(b);c>=0&&f.splice(c,1);}b.next=null,b.prev=null,b.parent=null;}function w(b,f){var c=f.prev=b.prev;c&&(c.next=f);var a=f.next=b.next;a&&(a.prev=f);var v=f.parent=b.parent;if(v){var T=v.children;T[T.lastIndexOf(b)]=f,b.parent=null;}}function o(b,f){if(t(f),f.next=null,f.parent=b,b.children.push(f)>1){var c=b.children[b.children.length-2];c.next=f,f.prev=c;}else f.prev=null;}function n(b,f){t(f);var c=b.parent,a=b.next;if(f.next=a,f.prev=b,b.next=f,f.parent=c,a){if(a.prev=f,c){var v=c.children;v.splice(v.lastIndexOf(a),0,f);}}else c&&c.children.push(f);}function A(b,f){if(t(f),f.parent=b,f.prev=null,b.children.unshift(f)!==1){var c=b.children[1];c.prev=f,f.next=c;}else f.next=null;}function y(b,f){t(f);var c=b.parent;if(c){var a=c.children;a.splice(a.indexOf(b),0,f);}b.prev&&(b.prev.next=f),f.parent=c,f.prev=b.prev,f.next=b,b.prev=f;}return ru}var au={},ne;function ve(){if(ne)return au;ne=1,Object.defineProperty(au,"__esModule",{value:true}),au.filter=w,au.find=o,au.findOneChild=n,au.findOne=A,au.existsOne=y,au.findAll=b;var t=cu();function w(f,c,a,v){return a===void 0&&(a=true),v===void 0&&(v=1/0),o(f,Array.isArray(c)?c:[c],a,v)}function o(f,c,a,v){for(var T=[],u=[Array.isArray(c)?c:[c]],e=[0];;){if(e[0]>=u[0].length){if(e.length===1)return T;u.shift(),e.shift();continue}var l=u[0][e[0]++];if(f(l)&&(T.push(l),--v<=0))return T;a&&(0, t.hasChildren)(l)&&l.children.length>0&&(e.unshift(0),u.unshift(l.children));}}function n(f,c){return c.find(f)}function A(f,c,a){a===void 0&&(a=true);for(var v=Array.isArray(c)?c:[c],T=0;T0){var e=A(f,u.children,true);if(e)return e}}return null}function y(f,c){return (Array.isArray(c)?c:[c]).some(function(a){return (0, t.isTag)(a)&&f(a)||(0, t.hasChildren)(a)&&y(f,a.children)})}function b(f,c){for(var a=[],v=[Array.isArray(c)?c:[c]],T=[0];;){if(T[0]>=v[0].length){if(v.length===1)return a;v.shift(),T.shift();continue}var u=v[0][T[0]++];(0, t.isTag)(u)&&f(u)&&a.push(u),(0, t.hasChildren)(u)&&u.children.length>0&&(T.unshift(0),v.unshift(u.children));}}return au}var iu={},ce;function xe(){if(ce)return iu;ce=1,Object.defineProperty(iu,"__esModule",{value:true}),iu.testElement=b,iu.getElements=f,iu.getElementById=c,iu.getElementsByTagName=a,iu.getElementsByClassName=v,iu.getElementsByTagType=T;var t=cu(),w=ve(),o={tag_name:function(u){return typeof u=="function"?function(e){return (0, t.isTag)(e)&&u(e.name)}:u==="*"?t.isTag:function(e){return (0, t.isTag)(e)&&e.name===u}},tag_type:function(u){return typeof u=="function"?function(e){return u(e.type)}:function(e){return e.type===u}},tag_contains:function(u){return typeof u=="function"?function(e){return (0, t.isText)(e)&&u(e.data)}:function(e){return (0, t.isText)(e)&&e.data===u}}};function n(u,e){return typeof e=="function"?function(l){return (0, t.isTag)(l)&&e(l.attribs[u])}:function(l){return (0, t.isTag)(l)&&l.attribs[u]===e}}function A(u,e){return function(l){return u(l)||e(l)}}function y(u){var e=Object.keys(u).map(function(l){var S=u[l];return Object.prototype.hasOwnProperty.call(o,l)?o[l](S):n(l,S)});return e.length===0?null:e.reduce(A)}function b(u,e){var l=y(u);return l?l(e):true}function f(u,e,l,S){S===void 0&&(S=1/0);var m=y(u);return m?(0, w.filter)(m,e,l,S):[]}function c(u,e,l){return l===void 0&&(l=true),Array.isArray(e)||(e=[e]),(0, w.findOne)(n("id",u),e,l)}function a(u,e,l,S){return l===void 0&&(l=true),S===void 0&&(S=1/0),(0, w.filter)(o.tag_name(u),e,l,S)}function v(u,e,l,S){return l===void 0&&(l=true),S===void 0&&(S=1/0),(0, w.filter)(n("class",u),e,l,S)}function T(u,e,l,S){return l===void 0&&(l=true),S===void 0&&(S=1/0),(0, w.filter)(o.tag_type(u),e,l,S)}return iu}var nu={},se;function Ce(){if(se)return nu;se=1,Object.defineProperty(nu,"__esModule",{value:true}),nu.DocumentPosition=void 0,nu.removeSubsets=w,nu.compareDocumentPosition=n,nu.uniqueSort=A;var t=cu();function w(y){for(var b=y.length;--b>=0;){var f=y[b];if(b>0&&y.lastIndexOf(f,b-1)>=0){y.splice(b,1);continue}for(var c=f.parent;c;c=c.parent)if(y.includes(c)){y.splice(b,1);break}}return y}var o;(function(y){y[y.DISCONNECTED=1]="DISCONNECTED",y[y.PRECEDING=2]="PRECEDING",y[y.FOLLOWING=4]="FOLLOWING",y[y.CONTAINS=8]="CONTAINS",y[y.CONTAINED_BY=16]="CONTAINED_BY";})(o||(nu.DocumentPosition=o={}));function n(y,b){var f=[],c=[];if(y===b)return 0;for(var a=(0, t.hasChildren)(y)?y:y.parent;a;)f.unshift(a),a=a.parent;for(a=(0, t.hasChildren)(b)?b:b.parent;a;)c.unshift(a),a=a.parent;for(var v=Math.min(f.length,c.length),T=0;Te.indexOf(S)?u===b?o.FOLLOWING|o.CONTAINED_BY:o.FOLLOWING:u===y?o.PRECEDING|o.CONTAINS:o.PRECEDING}function A(y){return y=y.filter(function(b,f,c){return !c.includes(b,f+1)}),y.sort(function(b,f){var c=n(b,f);return c&o.PRECEDING?-1:c&o.FOLLOWING?1:0}),y}return nu}var vu={},oe;function Re(){if(oe)return vu;oe=1,Object.defineProperty(vu,"__esModule",{value:true}),vu.getFeed=o;var t=me(),w=xe();function o(u){var e=c(T,u);return e?e.name==="feed"?n(e):A(e):null}function n(u){var e,l=u.children,S={type:"atom",items:(0, w.getElementsByTagName)("entry",l).map(function(h){var d,s=h.children,i={media:f(s)};v(i,"id","id",s),v(i,"title","title",s);var g=(d=c("link",s))===null||d===void 0?void 0:d.attribs.href;g&&(i.link=g);var x=a("summary",s)||a("content",s);x&&(i.description=x);var N=a("updated",s);return N&&(i.pubDate=new Date(N)),i})};v(S,"id","id",l),v(S,"title","title",l);var m=(e=c("link",l))===null||e===void 0?void 0:e.attribs.href;m&&(S.link=m),v(S,"description","subtitle",l);var r=a("updated",l);return r&&(S.updated=new Date(r)),v(S,"author","email",l,true),S}function A(u){var e,l,S=(l=(e=c("channel",u.children))===null||e===void 0?void 0:e.children)!==null&&l!==void 0?l:[],m={type:u.name.substr(0,3),id:"",items:(0, w.getElementsByTagName)("item",u.children).map(function(h){var d=h.children,s={media:f(d)};v(s,"id","guid",d),v(s,"title","title",d),v(s,"link","link",d),v(s,"description","description",d);var i=a("pubDate",d)||a("dc:date",d);return i&&(s.pubDate=new Date(i)),s})};v(m,"title","title",S),v(m,"link","link",S),v(m,"description","description",S);var r=a("lastBuildDate",S);return r&&(m.updated=new Date(r)),v(m,"author","managingEditor",S,true),m}var y=["url","type","lang"],b=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function f(u){return (0, w.getElementsByTagName)("media:content",u).map(function(e){for(var l=e.attribs,S={medium:l.medium,isDefault:!!l.isDefault},m=0,r=y;m{if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}),Du}var xu={},be;function He(){if(be)return xu;be=1,Object.defineProperty(xu,"__esModule",{value:true});function t(o){return Object.prototype.toString.call(o)==="[object Object]"}function w(o){var n,A;return t(o)===false?false:(n=o.constructor,n===void 0?true:(A=n.prototype,!(t(A)===false||A.hasOwnProperty("isPrototypeOf")===false)))}return xu.isPlainObject=w,xu}var yu={exports:{}},Ue=yu.exports,he;function Ve(){return he||(he=1,(function(t){(function(w,o){t.exports?t.exports=o():w.parseSrcset=o();})(Ue,function(){return function(w){function o(s){return s===" "||s===" "||s===` +`||s==="\f"||s==="\r"}function n(s){var i,g=s.exec(w.substring(m));if(g)return i=g[0],m+=i.length,i}for(var A=w.length,y=/^[ \t\n\r\u000c]+/,b=/^[, \t\n\r\u000c]+/,f=/^[^ \t\n\r\u000c]+/,c=/[,]+$/,a=/^\d+$/,v=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,T,u,e,l,S,m=0,r=[];;){if(n(b),m>=A)return r;T=n(f),u=[],T.slice(-1)===","?(T=T.replace(c,""),d()):h();}function h(){for(n(y),e="",l="in descriptor";;){if(S=w.charAt(m),l==="in descriptor")if(o(S))e&&(u.push(e),e="",l="after descriptor");else if(S===","){m+=1,e&&u.push(e),d();return}else if(S==="(")e=e+S,l="in parens";else if(S===""){e&&u.push(e),d();return}else e=e+S;else if(l==="in parens")if(S===")")e=e+S,l="in descriptor";else if(S===""){u.push(e),d();return}else e=e+S;else if(l==="after descriptor"&&!o(S))if(S===""){d();return}else l="in descriptor",m-=1;m+=1;}}function d(){var s=false,i,g,x,N,L={},C,p,_,D,O;for(N=0;N]+$/;function l(m,r,h){if(m==null)return "";typeof m=="number"&&(m=m.toString());let d="",s="";function i(E,I){const q=this;this.tag=E,this.attribs=I||{},this.tagPosition=d.length,this.text="",this.openingTagLength=0,this.mediaChildren=[],this.updateParentNodeText=function(){if(R.length){const M=R[R.length-1];M.text+=q.text;}},this.updateParentNodeMediaChildren=function(){R.length&&b.includes(this.tag)&&R[R.length-1].mediaChildren.push(this.tag);};}r=Object.assign({},l.defaults,r),r.parser=Object.assign({},S,r.parser);const g=function(E){return r.allowedTags===false||(r.allowedTags||[]).indexOf(E)>-1};f.forEach(function(E){g(E)&&!r.allowVulnerableTags&&console.warn(` + +⚠️ Your \`allowedTags\` option includes, \`${E}\`, which is inherently +vulnerable to XSS attacks. Please remove it from \`allowedTags\`. +Or, to disable this warning, add the \`allowVulnerableTags\` option +and ensure you are accounting for this risk. + +`);});const x=r.nonTextTags||["script","style","textarea","option"];let N,L;r.allowedAttributes&&(N={},L={},c(r.allowedAttributes,function(E,I){N[I]=[];const q=[];E.forEach(function(M){typeof M=="string"&&M.indexOf("*")>=0?q.push(w(M).replace(/\\\*/g,".*")):N[I].push(M);}),q.length&&(L[I]=new RegExp("^("+q.join("|")+")$"));}));const C={},p={},_={};c(r.allowedClasses,function(E,I){if(N&&(a(N,I)||(N[I]=[]),N[I].push("class")),C[I]=E,Array.isArray(E)){const q=[];C[I]=[],_[I]=[],E.forEach(function(M){typeof M=="string"&&M.indexOf("*")>=0?q.push(w(M).replace(/\\\*/g,".*")):M instanceof RegExp?_[I].push(M):C[I].push(M);}),q.length&&(p[I]=new RegExp("^("+q.join("|")+")$"));}});const D={};let O;c(r.transformTags,function(E,I){let q;typeof E=="function"?q=E:typeof E=="string"&&(q=l.simpleTransform(E)),I==="*"?O=q:D[I]=q;});let P,R,V,F,z,Q,su=false;Pu();const Ou=new t.Parser({onopentag:function(E,I){if(r.onOpenTag&&r.onOpenTag(E,I),r.enforceHtmlBoundary&&E==="html"&&Pu(),z){Q++;return}const q=new i(E,I);R.push(q);let M=false;const G=!!q.text;let X;if(a(D,E)&&(X=D[E](E,I),q.attribs=I=X.attribs,X.text!==void 0&&(q.innerText=X.text),E!==X.tagName&&(q.name=E=X.tagName,F[P]=X.tagName)),O&&(X=O(E,I),q.attribs=I=X.attribs,E!==X.tagName&&(q.name=E=X.tagName,F[P]=X.tagName)),(!g(E)||r.disallowedTagsMode==="recursiveEscape"&&!T(V)||r.nestingLimit!=null&&P>=r.nestingLimit)&&(M=true,V[P]=true,(r.disallowedTagsMode==="discard"||r.disallowedTagsMode==="completelyDiscard")&&x.indexOf(E)!==-1&&(z=true,Q=1)),P++,M){if(r.disallowedTagsMode==="discard"||r.disallowedTagsMode==="completelyDiscard"){if(q.innerText&&!G){const U=ou(q.innerText);r.textFilter?d+=r.textFilter(U,E):d+=U,su=true;}return}s=d,d="";}d+="<"+E,E==="script"&&(r.allowedScriptHostnames||r.allowedScriptDomains)&&(q.innerText=""),M&&(r.disallowedTagsMode==="escape"||r.disallowedTagsMode==="recursiveEscape")&&r.preserveEscapedAttributes?c(I,function(U,B){d+=" "+B+'="'+ou(U||"",true)+'"';}):(!N||a(N,E)||N["*"])&&c(I,function(U,B){if(!e.test(B)){delete q.attribs[B];return}if(U===""&&!r.allowedEmptyAttributes.includes(B)&&(r.nonBooleanAttributes.includes(B)||r.nonBooleanAttributes.includes("*"))){delete q.attribs[B];return}let wu=false;if(!N||a(N,E)&&N[E].indexOf(B)!==-1||N["*"]&&N["*"].indexOf(B)!==-1||a(L,E)&&L[E].test(B)||L["*"]&&L["*"].test(B))wu=true;else if(N&&N[E]){for(const j of N[E])if(o(j)&&j.name&&j.name===B){wu=true;let H="";if(j.multiple===true){const du=U.split(" ");for(const eu of du)j.values.indexOf(eu)!==-1&&(H===""?H=eu:H+=" "+eu);}else j.values.indexOf(U)>=0&&(H=U);U=H;}}if(wu){if(r.allowedSchemesAppliedToAttributes.indexOf(B)!==-1&&Mu(E,U)){delete q.attribs[B];return}if(E==="script"&&B==="src"){let j=true;try{const H=ku(U);if(r.allowedScriptHostnames||r.allowedScriptDomains){const du=(r.allowedScriptHostnames||[]).find(function(Z){return Z===H.url.hostname}),eu=(r.allowedScriptDomains||[]).find(function(Z){return H.url.hostname===Z||H.url.hostname.endsWith(`.${Z}`)});j=du||eu;}}catch{j=false;}if(!j){delete q.attribs[B];return}}if(E==="iframe"&&B==="src"){let j=true;try{const H=ku(U);if(H.isRelativeUrl)j=a(r,"allowIframeRelativeUrls")?r.allowIframeRelativeUrls:!r.allowedIframeHostnames&&!r.allowedIframeDomains;else if(r.allowedIframeHostnames||r.allowedIframeDomains){const du=(r.allowedIframeHostnames||[]).find(function(Z){return Z===H.url.hostname}),eu=(r.allowedIframeDomains||[]).find(function(Z){return H.url.hostname===Z||H.url.hostname.endsWith(`.${Z}`)});j=du||eu;}}catch{j=false;}if(!j){delete q.attribs[B];return}}if(B==="srcset")try{let j=A(U);if(j.forEach(function(H){Mu("srcset",H.url)&&(H.evil=!0);}),j=v(j,function(H){return !H.evil}),j.length)U=u(v(j,function(H){return !H.evil})),q.attribs[B]=U;else {delete q.attribs[B];return}}catch{delete q.attribs[B];return}if(B==="class"){const j=C[E],H=C["*"],du=p[E],eu=_[E],Z=_["*"],Ee=p["*"],Ru=[du,Ee].concat(eu,Z).filter(function(Ae){return Ae});if(j&&H?U=Cu(U,n(j,H),Ru):U=Cu(U,j||H,Ru),!U.length){delete q.attribs[B];return}}if(B==="style"){if(r.parseStyleAttributes)try{const j=y(E+" {"+U+"}",{map:!1}),H=ye(j,r.allowedStyles);if(U=Te(H),U.length===0){delete q.attribs[B];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+E+" {"+U+`}", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547`),delete q.attribs[B];return}else if(r.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}d+=" "+B,U&&U.length?d+='="'+ou(U,true)+'"':r.allowedEmptyAttributes.includes(B)&&(d+='=""');}else delete q.attribs[B];}),r.selfClosing.indexOf(E)!==-1?d+=" />":(d+=">",q.innerText&&!G&&!r.textFilter&&(d+=ou(q.innerText),su=true)),M&&(d=s+ou(d),s=""),q.openingTagLength=d.length-q.tagPosition;},ontext:function(E){if(z)return;const I=R[R.length-1];let q;if(I&&(q=I.tag,E=I.innerText!==void 0?I.innerText:E),r.disallowedTagsMode==="completelyDiscard"&&!g(q))E="";else if((r.disallowedTagsMode==="discard"||r.disallowedTagsMode==="completelyDiscard")&&(q==="script"||q==="style"))d+=E;else if(!su){const M=ou(E,false);r.textFilter?d+=r.textFilter(M,q):d+=M;}if(R.length){const M=R[R.length-1];M.text+=E;}},onclosetag:function(E,I){if(r.onCloseTag&&r.onCloseTag(E,I),z)if(Q--,!Q)z=false;else return;const q=R.pop();if(!q)return;if(q.tag!==E){R.push(q);return}z=r.enforceHtmlBoundary?E==="html":false,P--;const M=V[P];if(M){if(delete V[P],r.disallowedTagsMode==="discard"||r.disallowedTagsMode==="completelyDiscard"){q.updateParentNodeText();return}s=d,d="";}if(F[P]&&(E=F[P],delete F[P]),r.exclusiveFilter){const G=r.exclusiveFilter(q);if(G==="excludeTag"){M&&(d=s,s=""),d=d.substring(0,q.tagPosition)+d.substring(q.tagPosition+q.openingTagLength);return}else if(G){d=d.substring(0,q.tagPosition);return}}if(q.updateParentNodeMediaChildren(),q.updateParentNodeText(),r.selfClosing.indexOf(E)!==-1||I&&!g(E)&&["escape","recursiveEscape"].indexOf(r.disallowedTagsMode)>=0){M&&(d=s,s="");return}d+="",M&&(d=s+ou(d),s=""),su=false;}},r.parser);return Ou.write(m),Ou.end(),d;function Pu(){d="",P=0,R=[],V={},F={},z=false,Q=0;}function ou(E,I){return typeof E!="string"&&(E=E+""),r.parser.decodeEntities&&(E=E.replace(/&/g,"&").replace(//g,">"),I&&(E=E.replace(/"/g,"""))),E=E.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(//g,">"),I&&(E=E.replace(/"/g,""")),E}function Mu(E,I){for(I=I.replace(/[\x00-\x20]+/g,"");;){const G=I.indexOf("",G+4);if(X===-1)break;I=I.substring(0,G)+I.substring(X+3);}const q=I.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!q)return I.match(/^[/\\]{2}/)?!r.allowProtocolRelative:false;const M=q[1].toLowerCase();return a(r.allowedSchemesByTag,E)?r.allowedSchemesByTag[E].indexOf(M)===-1:!r.allowedSchemes||r.allowedSchemes.indexOf(M)===-1}function ku(E){if(E=E.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),E.startsWith("relative:"))throw new Error("relative: exploit attempt");let I="relative://relative-site";for(let G=0;G<100;G++)I+=`/${G}`;const q=new URL(E,I);return {isRelativeUrl:q&&q.hostname==="relative-site"&&q.protocol==="relative:",url:q}}function ye(E,I){if(!I)return E;const q=E.nodes[0];let M;return I[q.selector]&&I["*"]?M=n(I[q.selector],I["*"]):M=I[q.selector]||I["*"],M&&(E.nodes[0].nodes=q.nodes.reduce(we(M),[])),E}function Te(E){return E.nodes[0].nodes.reduce(function(I,q){return I.push(`${q.prop}:${q.value}${q.important?" !important":""}`),I},[]).join(";")}function we(E){return function(I,q){return a(E,q.prop)&&E[q.prop].some(function(G){return G.test(q.value)})&&I.push(q),I}}function Cu(E,I,q){return I?(E=E.split(/\s+/),E.filter(function(M){return I.indexOf(M)!==-1||q.some(function(G){return G.test(M)})}).join(" ")):E}}const S={decodeEntities:true};return l.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","menu","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},allowedEmptyAttributes:["alt"],selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:true,enforceHtmlBoundary:false,parseStyleAttributes:true,preserveEscapedAttributes:false},l.simpleTransform=function(m,r,h){return h=h===void 0?true:h,r=r||{},function(d,s){let i;if(h)for(i in r)s[i]=r[i];else s=r;return {tagName:m,attribs:s}}},Iu}var Ge=Fe();const Ze=on(Ge); + +export { Ze as Z }; +//# sourceMappingURL=index50-G3WrDDFf.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/index53-wvB_-bo9.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/index53-wvB_-bo9.js new file mode 100644 index 0000000000000000000000000000000000000000..3f312ea01c38bd58aa70a8c0441afc03740b0077 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/index53-wvB_-bo9.js @@ -0,0 +1,43 @@ +import './async-D55cHugf.js'; +import { d as bind_props, f as attr_class, a as attr, i as stringify, c as spread_props, g as attr_style, j as clsx, e as ensure_array_like } from './index-u8mz_F03.js'; +import { o as onDestroy, t as tick } from './index-server-CQz6EZl_.js'; +import { b as bs } from './2-BLdXJizP.js'; +import { $, b } from './utils.svelte-B2py64Fz.js'; +import { W } from './index3-Df92vI-L.js'; +import { A as kl, S as Pl } from './StaticAudio-CgMOYc6I.js'; +import { e as ee } from './Upload2-uTutz1dY.js'; +import { v } from './ModifyUpload-CWSi2EyW.js'; +import { k } from './BlockLabel-bKYWnOzQ.js'; +import { y } from './ShareButton-7VTs9dOO.js'; +import { t } from './Music-B6sg6ISZ.js'; +import { w } from './SelectSource-Bhpgvmj9.js'; +import { v as v$1 } from './IconButtonWrapper-CjFRPb3y.js'; +import { o } from './StreamingBar-BGU65w2M.js'; +import { G } from './Block-DZmzQwnI.js'; +import { k as k$1 } from './UploadText-BDXc1cBO.js'; +export { default as BaseExample } from './Example10-_LenqteX.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; +import './clone-Yk88IHKV.js'; +import './IconButton-BRnu7KaR.js'; +import './Clear-D7Yjckqz.js'; +import './DownloadLink-nj1p0krE.js'; +import './Empty-DGRbZO0a.js'; +import './Download-DcU5dONL.js'; +import './MinimalAudioPlayer-CtXDbTgQ.js'; +import './VolumeLevels-DlU2d99x.js'; +import './Play-B_z3rKL1.js'; +import './Undo-Ce01x-M5.js'; +import './Edit-DWZSi_T0.js'; +import './Upload-BbxeBrrD.js'; +import './Microphone-BMM9-23W.js'; +import './Video-FfbWmOVG.js'; +import './Webcam-CvKMKUzA.js'; + +function Ms(f){f.push('');}function zs(f,_){f.component(l=>{let{i18n:i,micDevices:r=void 0,onerror:c}=_;if(l.push(`"),bind_props(_,{micDevices:r});});}function Es(f,_){f.component(l=>{let{mode:i=void 0,i18n:r,dispatch_blob:c,waveform_settings:u,waveform_options:d={show_recording_waveform:true},handle_reset_value:s,editable:m=true,recording:b=false,onstartrecording:S,onpauserecording:e,onstoprecording:x,onstop:h,onplay:B,onpause:M,onedit:A}=_;let y=true,v;function D(n){n.push('
    '),n.push(""),n.push(" "),n.push(""),n.push(" "),n.push(""),n.push("
    ");}do y=true,v=l.copy(),D(v);while(!y);l.subsume(v),bind_props(_,{mode:i});});}function Ps(f,_){f.component(l=>{let{recording:i=false,paused_recording:r=false,i18n:c,waveform_options:u={show_recording_waveform:true},waiting:d=false}=_,s=[];let m=true,b;function S(e){e.push('
    '),u.show_recording_waveform?(e.push(""),e.push(`
    `)):e.push(""),e.push('
    '),i&&!d?(e.push(""),e.push(` ${escape_html(c(r?"audio.pause":"audio.stop"))}`)):(e.push(""),i&&d?(e.push(""),e.push('`)):(e.push(""),e.push(``)),e.push("")),e.push(" "),zs(e,{i18n:c,get micDevices(){return s},set micDevices(x){s=x,m=false;}}),e.push("
    ");}do m=true,b=l.copy(),S(b);while(!m);l.subsume(b);});}let Z;async function Ts(){const{MediaRecorder:f,register:_}=await import('./module3-CsOA9qDp.js'),{connect:l}=await import('./module-BW3J_rLT.js');return _(await l()),Z=f,Z}function Us(f,_){f.component(l=>{let{value:i=null,subtitles:r=null,label:c,root:u,loop:d,show_label:s=true,buttons:m=["download","share"],on_custom_button_click:b$1=null,sources:S=["microphone","upload"],pending:e=false,streaming:x=false,i18n:h,waveform_settings:B,trim_region_settings:M={},waveform_options:A={},dragging:y$1=false,active_source:v$2="microphone",handle_reset_value:D=()=>{},editable:n=true,max_file_size:C=null,upload:T,stream_handler:w$1,stream_every:g=.1,uploading:a=false,recording:G=false,class_name:$="",upload_promise:R=void 0,initial_value:W=void 0,playback_position:j=void 0,time_limit:ss=null,stream_state:os="closed",onchange:q,onstream:as,onedit:H,onplay:ts,onpause:es,onstop:is,ondrag:Gs,onerror:O,onupload:ls,onclear:ns,onstart_recording:ps,onpause_recording:us,onstop_recording:J,onclose_stream:Rs,children:K}=_,I="";typeof window<"u"&&x&&Ts().then(t=>{});const rs=t=>t.map(o=>o instanceof Blob?o:o.slice()),Q=async(t,o)=>{let z=new File(rs(t),"audio.wav",{type:"audio/wav"});if(z.size===0)return;const E=await bs([z],o==="stream");W=i,i=(await T(E,u,void 0,C||void 0))?.filter(Boolean)[0],o==="stream"?as?.(i):o==="change"?q?.(i):o==="stop_recording"&&J?.();};onDestroy(()=>{});function F(){q?.(null),ns?.(),I="",i=null;}function cs(t){i=t,q?.(t),ls?.(t);}let k$1=true,L;function ds(t$1){k(t$1,{show_label:s,Icon:t,float:v$2==="upload"&&i===null,label:c||h("audio.audio")}),t$1.push(` `),o(t$1,{time_limit:ss}),t$1.push(" "),i==null||x?(t$1.push(""),v$2==="microphone"?(t$1.push(""),v(t$1,{i18n:h,onclear:F}),t$1.push(" "),x?(t$1.push(""),Ps(t$1,{recording:G,i18n:h,waveform_options:A,waiting:os==="waiting"})):(t$1.push(""),Es(t$1,{i18n:h,editable:n,recording:G,dispatch_blob:Q,waveform_settings:B,waveform_options:A,handle_reset_value:D,onstartrecording:()=>ps?.(),onpauserecording:()=>us?.(),onstoprecording:()=>J?.(),get mode(){return I},set mode(o){I=o,k$1=false;}})),t$1.push("")):(t$1.push(""),v$2==="upload"?(t$1.push(""),ee(t$1,{filetype:"audio/aac,audio/midi,audio/mpeg,audio/ogg,audio/wav,audio/x-wav,audio/opus,audio/webm,audio/flac,audio/vnd.rn-realaudio,audio/x-ms-wma,audio/x-aiff,audio/amr,audio/*",onload:cs,onerror:o=>O?.(o),root:u,max_file_size:C,upload:T,stream_handler:w$1,aria_label:h("audio.drop_to_upload"),get upload_promise(){return R},set upload_promise(o){R=o,k$1=false;},get dragging(){return y$1},set dragging(o){y$1=o,k$1=false;},get uploading(){return a},set uploading(o){a=o,k$1=false;},children:o=>{K?(o.push(""),K(o),o.push("")):o.push(""),o.push("");},$$slots:{default:true}})):t$1.push(""),t$1.push("")),t$1.push("")):(t$1.push(""),v(t$1,{i18n:h,onclear:F,onedit:()=>{I="edit",H?.();},download:m===null||m.some(o=>typeof o=="string"&&o==="download")?i.url:null,children:o=>{if(i!==null&&m){o.push(""),o.push("");const z=ensure_array_like(m);for(let E=0,ms=z.length;E"),N==="share"?(o.push(""),y(o,{i18n:h,onerror:O,onshare:()=>{},formatter:async P=>!P||!P.url?"":``,value:i})):o.push(""),o.push("")):(o.push(""),v$1(o,{button:N,on_click:P=>{b$1&&b$1(P);}})),o.push("");}o.push("");}else o.push("");o.push("");}}),t$1.push(" "),kl(t$1,{value:i,subtitles:Array.isArray(r)?r:r?.url,label:c,i18n:h,dispatch_blob:Q,waveform_settings:B,waveform_options:A,trim_region_settings:M,handle_reset_value:D,editable:n,loop:d,interactive:true,onstop:is,onplay:ts,onpause:es,onedit:H,get mode(){return I},set mode(o){I=o,k$1=false;},get playback_position(){return j},set playback_position(o){j=o,k$1=false;}}),t$1.push("")),t$1.push(" "),w(t$1,{sources:S,handle_clear:F,get active_source(){return v$2},set active_source(o){v$2=o,k$1=false;}}),t$1.push("
    ");}do k$1=true,L=l.copy(),ds(L);while(!k$1);l.subsume(L),bind_props(_,{value:i,dragging:y$1,active_source:v$2,uploading:a,recording:G,upload_promise:R,initial_value:W,playback_position:j});});}function uo(f,_){f.component(l=>{let{$$slots:i,$$events:r,...c}=_,u;c.props.stream_every=.1;class d extends ${async get_data(){return u&&(await u,await tick()),await super.get_data()}}const s=new d(c);let m=s.shared.label||s.i18n("audio.audio"),b=c.minimal??s.props.minimal??false,S=s.props.sources?s.props.sources[0]:null,e=s.props.value;const x=()=>{e===null||s.props.value===e||(s.props.value=e);};let h=false,B=s.props.recording??false,M="darkorange",A={height:50,barWidth:2,barGap:3,cursorWidth:2,cursorColor:"#ddd5e9",autoplay:s.props.autoplay,barRadius:10,dragToSeek:true,normalize:true,minPxPerSec:20,waveColor:s.props.waveform_options.waveform_color||"#9ca3af",progressColor:s.props.waveform_options.waveform_progress_color||M,mediaControls:s.props.waveform_options.show_controls??false,sampleRate:s.props.waveform_options.sample_rate||44100};const y={color:s.props.waveform_options.trim_region_color,drag:true,resize:true};function D(w){const[g,a]=w.includes("Invalid file type")?["warning","complete"]:["error","error"];s.shared.loading_status&&(s.shared.loading_status.status=a,s.shared.loading_status.message=w),s.dispatch(g,w);}s.watch_for_change();let n=true,C;function T(w){s.shared.interactive?(w.push(""),G(w,{variant:s.props.value===null&&S==="upload"?"dashed":"solid",border_mode:h?"focus":"base",padding:false,allow_overflow:false,elem_id:s.shared.elem_id,elem_classes:s.shared.elem_classes,visible:s.shared.visible,container:s.shared.container,scale:s.shared.scale,min_width:s.shared.min_width,children:g=>{W(g,spread_props([{autoscroll:s.shared.autoscroll,i18n:s.i18n},s.shared.loading_status,{on_clear_status:()=>s.dispatch("clear_status",s.shared.loading_status)}])),g.push(" "),Us(g,{label:m,show_label:s.shared.show_label,buttons:s.props.buttons??[],on_custom_button_click:a=>{s.dispatch("custom_button_click",{id:a});},value:s.props.value,subtitles:s.props.subtitles,onchange:a=>s.props.value=a,onstream:a=>{s.props.value=a,s.dispatch("stream",s.props.value);},ondrag:a=>h=a,root:s.shared.root,sources:s.props.sources,active_source:S||void 0,pending:s.shared.loading_status.pending,streaming:s.props.streaming,loop:s.props.loop,max_file_size:s.shared.max_file_size,handle_reset_value:x,editable:s.props.editable,onedit:()=>s.dispatch("edit"),onplay:()=>s.dispatch("play"),onpause:()=>s.dispatch("pause"),onstop:()=>s.dispatch("stop"),onstart_recording:()=>s.dispatch("start_recording"),onpause_recording:()=>s.dispatch("pause_recording"),onstop_recording:()=>{s.dispatch("stop_recording"),s.dispatch("input");},onupload:()=>{s.dispatch("upload"),s.dispatch("input");},onclear:()=>{s.dispatch("clear"),s.dispatch("input");},onerror:D,onclose_stream:()=>s.dispatch("close_stream","stream"),i18n:s.i18n,waveform_settings:A,waveform_options:s.props.waveform_options,trim_region_settings:y,stream_every:s.props.stream_every,stream_state:s.shared.loading_status.stream_state,upload:(...a)=>s.shared.client.upload(...a),stream_handler:(...a)=>s.shared.client.stream(...a),time_limit:s.shared.loading_status.time_limit,get upload_promise(){return u},set upload_promise(a){u=a,n=false;},get initial_value(){return e},set initial_value(a){e=a,n=false;},get recording(){return B},set recording(a){B=a,n=false;},get dragging(){return h},set dragging(a){h=a,n=false;},get playback_position(){return s.props.playback_position},set playback_position(a){s.props.playback_position=a,n=false;},children:a=>{k$1(a,{i18n:s.i18n,type:"audio"});},$$slots:{default:true}}),g.push("");},$$slots:{default:true}})):(w.push(""),G(w,{variant:"solid",border_mode:h?"focus":"base",padding:false,allow_overflow:false,elem_id:s.shared.elem_id,elem_classes:s.shared.elem_classes,visible:s.shared.visible,container:s.shared.container,scale:s.shared.scale,min_width:s.shared.min_width,children:g=>{W(g,spread_props([{autoscroll:s.shared.autoscroll,i18n:s.i18n},s.shared.loading_status,{on_clear_status:()=>s.dispatch("clear_status",s.shared.loading_status)}])),g.push(" "),Pl(g,{i18n:s.i18n,show_label:s.shared.show_label,buttons:s.props.buttons??["download","share"],value:s.props.value,subtitles:s.props.subtitles,label:m,loop:s.props.loop,waveform_settings:A,waveform_options:s.props.waveform_options,editable:s.props.editable,minimal:b,on_custom_button_click:a=>{s.dispatch("custom_button_click",{id:a});},onshare:a=>s.dispatch("share",a),onerror:a=>s.dispatch("error",a.detail),onplay:()=>s.dispatch("play"),onpause:()=>s.dispatch("pause"),onstop:()=>s.dispatch("stop"),get playback_position(){return s.props.playback_position},set playback_position(a){s.props.playback_position=a,n=false;}}),g.push("");},$$slots:{default:true}})),w.push("");}do n=true,C=l.copy(),T(C);while(!n);l.subsume(C);});} + +export { Us as BaseInteractiveAudio, kl as BasePlayer, Pl as BaseStaticAudio, uo as default }; +//# sourceMappingURL=index53-wvB_-bo9.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/ja-v-GO49IA.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/ja-v-GO49IA.js new file mode 100644 index 0000000000000000000000000000000000000000..f460776a4080fe29517f62acd4f55cbdbaa0d181 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/ja-v-GO49IA.js @@ -0,0 +1,4 @@ +const S="日本語",o={annotated_image:"注釈付き画像"},e={allow_recording_access:"録音のためにマイクへのアクセスを許可してください",audio:"音声",record_from_microphone:"マイクから録音",stop_recording:"録音を停止",no_device_support:"メディアデバイスにアクセスできません。安全なソース(https)またはlocalhostで実行していること(またはssl_verifyに有効なSSL証明書を渡していること)、ブラウザにデバイスへのアクセスを許可していることを確認してください",stop:"停止",resume:"再開",record:"録音",no_microphone:"マイクが見つかりません",pause:"一時停止",play:"再生",waiting:"待機中",drop_to_upload:"ここにオーディオファイルをドロップしてアップロードしてください"},r={connection_can_break:"モバイルでは、このタブがフォーカスを失うかデバイスがスリープモードになると接続が切断され、キュー内の位置が失われる可能性があります",long_requests_queue:"保留中のリクエストの長いキューがあります。このSpaceを複製してスキップしてください",lost_connection:"ページを離れたため接続が切断されました。キューに戻ります...",waiting_for_inputs:"ファイルのアップロードが完了するのを待っています。再度お試しください"},t={checkbox:"チェックボックス",checkbox_group:"チェックボックスグループ"},_={code:"コード"},c={color_picker:"カラーピッカー"},a={built_with:"で作成",built_with_gradio:"Gradioで作成",clear:"クリア",download:"ダウンロード",edit:"編集",empty:"空",error:"エラー",hosted_on:"でホスト",loading:"読み込み中",logo:"ロゴ",or:"または",remove:"削除",settings:"設定",share:"共有",submit:"送信",undo:"元に戻す",no_devices:"デバイスが見つかりません",language:"言語",display_theme:"表示テーマ",pwa:"プログレッシブウェブアプリ"},n={incorrect_format:"不正なフォーマット、CSVとTSVファイルのみサポートされています",new_column:"列を追加",new_row:"新しい行",add_row_above:"上に行を追加",add_row_below:"下に行を追加",add_column_left:"左に列を追加",add_column_right:"右に列を追加",delete_row:"行を削除",delete_column:"列を削除",sort_column:"列をソート",sort_ascending:"昇順に並べ替え",sort_descending:"降順に並べ替え",drop_to_upload:"CSVまたはTSVファイルをここにドロップして、データをデータフレームにインポートします",clear_sort:"ソートをクリア"},s={dropdown:"ドロップダウン"},d={build_error:"ビルドエラーがあります",config_error:"設定エラーがあります",contact_page_author:"ページの作者に連絡して知らせてください",no_app_file:"アプリファイルがありません",runtime_error:"ランタイムエラーがあります",space_not_working:'"Spaceが動作していません。理由:" {0}',space_paused:"Spaceが一時停止されています",use_via_api:"APIを介して使用",use_via_api_or_mcp:"APIまたはMCP経由で使用"},i={uploading:"アップロード中..."},l={highlighted_text:"ハイライトされたテキスト"},p={allow_webcam_access:"録画のためにウェブカメラへのアクセスを許可してください",brush_color:"ブラシの色",brush_radius:"ブラシのサイズ",image:"画像",remove_image:"画像を削除",select_brush_color:"ブラシの色を選択",start_drawing:"描画を開始",use_brush:"ブラシを使用",drop_to_upload:"ここに画像ファイルをドロップしてアップロードしてください"},u={label:"ラベル"},g={enable_cookies:"シークレットモードでHuggingFace Spaceを訪問している場合、サードパーティのCookieを有効にする必要があります",incorrect_credentials:"認証情報が正しくありません",username:"ユーザー名",password:"パスワード",login:"ログイン"},m={number:"数値"},b={plot:"プロット"},h={radio:"ラジオボタン"},w={slider:"スライダー"},k={click_to_upload:"クリックしてアップロード",drop_audio:"音声をここにドロップ",drop_csv:"CSVファイルをここにドロップ",drop_file:"ファイルをここにドロップ",drop_image:"画像をここにドロップ",drop_video:"動画をここにドロップ",drop_gallery:"メディアをここにドロップ",paste_clipboard:"クリップボードから貼り付け"},f={drop_to_upload:"ビデオファイルをここにドロップしてアップロードしてください"},v={edit:"編集",retry:"再試行",undo:"元に戻す",submit:"送信",cancel:"キャンセル",like:"いいね",dislike:"よくないね",clear:"会話をクリア"},x={_name:"日本語","3D_model":{"3d_model":"3Dモデル",drop_to_upload:"3D モデル (.obj, .glb, .stl, .gltf, .splat, .ply) ファイルをここにドロップしてアップロードしてください"},annotated_image:o,audio:e,blocks:r,checkbox:t,code:_,color_picker:c,common:a,dataframe:n,dropdown:s,errors:d,file:i,highlighted_text:l,image:p,label:u,login:g,number:m,plot:b,radio:h,slider:w,upload_text:k,video:f,chatbot:v}; + +export { S as _name, o as annotated_image, e as audio, r as blocks, v as chatbot, t as checkbox, _ as code, c as color_picker, a as common, n as dataframe, x as default, s as dropdown, d as errors, i as file, l as highlighted_text, p as image, u as label, g as login, m as number, b as plot, h as radio, w as slider, k as upload_text, f as video }; +//# sourceMappingURL=ja-v-GO49IA.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/ko-xc08dXGA.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/ko-xc08dXGA.js new file mode 100644 index 0000000000000000000000000000000000000000..b105a61344e7b4a6ad7ad8173a7b76440430e722 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/ko-xc08dXGA.js @@ -0,0 +1,4 @@ +const S="한국어",o={annotated_image:"주석이 달린 이미지"},e={allow_recording_access:"녹음을 위해 마이크 접근을 허용해 주세요.",audio:"오디오",record_from_microphone:"마이크로 녹음",stop_recording:"녹음 중지",no_device_support:"미디어 장치에 접근할 수 없습니다. 보안 소스(https) 또는 localhost에서 실행 중인지(또는 ssl_verify에 유효한 SSL 인증서를 전달했는지), 브라우저에 장치 접근 권한을 부여했는지 확인하세요.",stop:"중지",resume:"재개",record:"녹음",no_microphone:"마이크를 찾을 수 없습니다",pause:"일시정지",play:"재생",waiting:"대기 중",drop_to_upload:"오디오 파일을 여기에 놓아 업로드하세요."},r={connection_can_break:"모바일에서는 이 탭이 포커스를 잃거나 기기가 절전 모드로 전환되면 연결이 끊어져 대기열의 위치를 잃을 수 있습니다.",long_requests_queue:"대기 중인 요청의 긴 대기열이 있습니다. 이 Space를 복제하여 건너뛰세요.",lost_connection:"페이지를 떠나 연결이 끊어졌습니다. 대기열로 돌아가는 중...",waiting_for_inputs:"파일 업로드가 완료될 때까지 기다렸다가 다시 시도해주세요."},t={checkbox:"체크박스",checkbox_group:"체크박스 그룹"},_={code:"코드"},c={color_picker:"색상 선택기"},a={built_with:"로 제작됨",built_with_gradio:"Gradio로 제작됨",clear:"지우기",download:"다운로드",edit:"편집",empty:"비어 있음",error:"오류",hosted_on:"에서 호스팅됨",loading:"로딩 중",logo:"로고",or:"또는",remove:"제거",settings:"설정",share:"공유",submit:"제출",undo:"실행 취소",no_devices:"장치를 찾을 수 없습니다",language:"언어",display_theme:"디스플레이 테마",pwa:"프로그레시브 웹 앱"},n={incorrect_format:"잘못된 형식입니다. CSV 및 TSV 파일만 지원됩니다",new_column:"열 추가",new_row:"새 행",add_row_above:"위에 행 추가",add_row_below:"아래에 행 추가",add_column_left:"왼쪽에 열 추가",add_column_right:"오른쪽에 열 추가",delete_row:"행 삭제",delete_column:"열 삭제",sort_column:"정렬 열",sort_ascending:"오름차순 정렬",sort_descending:"내림차순 정렬",drop_to_upload:"CSV 또는 TSV 파일을 여기에 끌어다 놓아 데이터프레임에 데이터를 가져올 수 있습니다.",clear_sort:"정렬 해제"},s={dropdown:"드롭다운"},d={build_error:"빌드 오류가 있습니다",config_error:"구성 오류가 있습니다",contact_page_author:"페이지 작성자에게 연락하여 알려주세요.",no_app_file:"앱 파일이 없습니다",runtime_error:"런타임 오류가 있습니다",space_not_working:'"Space가 작동하지 않는 이유:" {0}',space_paused:"space가 일시 중지되었습니다",use_via_api:"API를 통해 사용",use_via_api_or_mcp:"API 또는 MCP를 통해 사용"},i={uploading:"업로드 중..."},l={highlighted_text:"강조 표시된 텍스트"},p={allow_webcam_access:"녹화를 위해 웹캠 접근을 허용해 주세요.",brush_color:"브러시 색상",brush_radius:"브러시 크기",image:"이미지",remove_image:"이미지 제거",select_brush_color:"브러시 색상 선택",start_drawing:"그리기 시작",use_brush:"브러시 사용",drop_to_upload:"이곳에 이미지 파일을 끌어다 놓으세요."},u={label:"레이블"},g={enable_cookies:"시크릿 모드에서 HuggingFace Space를 방문하는 경우 타사 쿠키를 활성화해야 합니다.",incorrect_credentials:"잘못된 자격 증명",username:"사용자 이름",password:"비밀번호",login:"로그인"},m={number:"숫자"},b={plot:"플롯"},h={radio:"라디오"},w={slider:"슬라이더"},k={click_to_upload:"클릭하여 업로드",drop_audio:"오디오를 여기에 드롭",drop_csv:"CSV를 여기에 드롭",drop_file:"파일을 여기에 드롭",drop_image:"이미지를 여기에 드롭",drop_video:"비디오를 여기에 드롭",drop_gallery:"미디어를 여기에 드롭",paste_clipboard:"클립보드에서 붙여넣기"},f={drop_to_upload:"여기에 비디오 파일을 끌어다 놓으세요."},v={edit:"편집",retry:"다시 시도",undo:"실행 취소",submit:"제출",cancel:"취소",like:"좋아요",dislike:"싫어요",clear:"대화 지우기"},x={_name:"한국어","3D_model":{"3d_model":"3D 모델",drop_to_upload:"3D 모델 (.obj, .glb, .stl, .gltf, .splat, 또는 .ply) 파일을 여기에 놓아 업로드하세요."},annotated_image:o,audio:e,blocks:r,checkbox:t,code:_,color_picker:c,common:a,dataframe:n,dropdown:s,errors:d,file:i,highlighted_text:l,image:p,label:u,login:g,number:m,plot:b,radio:h,slider:w,upload_text:k,video:f,chatbot:v}; + +export { S as _name, o as annotated_image, e as audio, r as blocks, v as chatbot, t as checkbox, _ as code, c as color_picker, a as common, n as dataframe, x as default, s as dropdown, d as errors, i as file, l as highlighted_text, p as image, u as label, g as login, m as number, b as plot, h as radio, w as slider, k as upload_text, f as video }; +//# sourceMappingURL=ko-xc08dXGA.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/legacy-server-CxBQ4HtA.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/legacy-server-CxBQ4HtA.js new file mode 100644 index 0000000000000000000000000000000000000000..ce55e44b5565215feb0a0e30a7d2fd3064af0826 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/legacy-server-CxBQ4HtA.js @@ -0,0 +1,1288 @@ +import { H as HYDRATION_ERROR, C as COMMENT_NODE, b as HYDRATION_END, c as get_next_sibling, d as HYDRATION_START, e as HYDRATION_START_ELSE, h as effect_tracking, j as get, k as source, l as render_effect, u as untrack, m as increment, q as queue_micro_task, p as active_effect, t as block, v as branch, B as Batch, w as pause_effect, x as create_text, y as defer_effect, z as set_active_effect, A as set_active_reaction, D as set_component_context, E as handle_error, F as active_reaction, G as component_context, I as move_effect, J as set_signal_status, K as DIRTY, L as schedule_effect, M as MAYBE_DIRTY, N as internal_set, O as destroy_effect, P as invoke_error_boundary, Q as svelte_boundary_reset_onerror, R as EFFECT_TRANSPARENT, S as EFFECT_PRESERVED, T as BOUNDARY_EFFECT, U as define_property, V as init_operations, W as get_first_child, X as hydration_failed, Y as clear_text_content, Z as array_from, _ as component_root, $ as push, a0 as pop, a1 as set, a2 as LEGACY_PROPS, a3 as async_mode_flag, a4 as flushSync, a5 as mutable_source } from './async-D55cHugf.js'; +import { p as is_passive_event, q as render } from './index-u8mz_F03.js'; + +/* This file is generated by scripts/process-messages/index.js. Do not edit! */ + + +/** + * Hydration failed because the initial UI does not match what was rendered on the server. The error occurred near %location% + * @param {string | undefined | null} [location] + */ +function hydration_mismatch(location) { + { + console.warn(`https://svelte.dev/e/hydration_mismatch`); + } +} + +/** + * A `` `reset` function only resets the boundary the first time it is called + */ +function svelte_boundary_reset_noop() { + { + console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`); + } +} + +/** @import { TemplateNode } from '#client' */ + + +/** + * Use this variable to guard everything related to hydration code so it can be treeshaken out + * if the user doesn't use the `hydrate` method and these code paths are therefore not needed. + */ +let hydrating = false; + +/** @param {boolean} value */ +function set_hydrating(value) { + hydrating = value; +} + +/** + * The node that is currently being hydrated. This starts out as the first node inside the opening + * comment, and updates each time a component calls `$.child(...)` or `$.sibling(...)`. + * When entering a block (e.g. `{#if ...}`), `hydrate_node` is the block opening comment; by the + * time we leave the block it is the closing comment, which serves as the block's anchor. + * @type {TemplateNode} + */ +let hydrate_node; + +/** @param {TemplateNode | null} node */ +function set_hydrate_node(node) { + if (node === null) { + hydration_mismatch(); + throw HYDRATION_ERROR; + } + + return (hydrate_node = node); +} + +function hydrate_next() { + return set_hydrate_node(get_next_sibling(hydrate_node)); +} + +function next(count = 1) { + if (hydrating) { + var i = count; + var node = hydrate_node; + + while (i--) { + node = /** @type {TemplateNode} */ (get_next_sibling(node)); + } + + hydrate_node = node; + } +} + +/** + * Skips or removes (depending on {@link remove}) all nodes starting at `hydrate_node` up until the next hydration end comment + * @param {boolean} remove + */ +function skip_nodes(remove = true) { + var depth = 0; + var node = hydrate_node; + + while (true) { + if (node.nodeType === COMMENT_NODE) { + var data = /** @type {Comment} */ (node).data; + + if (data === HYDRATION_END) { + if (depth === 0) return node; + depth -= 1; + } else if (data === HYDRATION_START || data === HYDRATION_START_ELSE) { + depth += 1; + } + } + + var next = /** @type {TemplateNode} */ (get_next_sibling(node)); + if (remove) node.remove(); + node = next; + } +} + +/** + * Returns a `subscribe` function that integrates external event-based systems with Svelte's reactivity. + * It's particularly useful for integrating with web APIs like `MediaQuery`, `IntersectionObserver`, or `WebSocket`. + * + * If `subscribe` is called inside an effect (including indirectly, for example inside a getter), + * the `start` callback will be called with an `update` function. Whenever `update` is called, the effect re-runs. + * + * If `start` returns a cleanup function, it will be called when the effect is destroyed. + * + * If `subscribe` is called in multiple effects, `start` will only be called once as long as the effects + * are active, and the returned teardown function will only be called when all effects are destroyed. + * + * It's best understood with an example. Here's an implementation of [`MediaQuery`](https://svelte.dev/docs/svelte/svelte-reactivity#MediaQuery): + * + * ```js + * import { createSubscriber } from 'svelte/reactivity'; + * import { on } from 'svelte/events'; + * + * export class MediaQuery { + * #query; + * #subscribe; + * + * constructor(query) { + * this.#query = window.matchMedia(`(${query})`); + * + * this.#subscribe = createSubscriber((update) => { + * // when the `change` event occurs, re-run any effects that read `this.current` + * const off = on(this.#query, 'change', update); + * + * // stop listening when all the effects are destroyed + * return () => off(); + * }); + * } + * + * get current() { + * // This makes the getter reactive, if read in an effect + * this.#subscribe(); + * + * // Return the current state of the query, whether or not we're in an effect + * return this.#query.matches; + * } + * } + * ``` + * @param {(update: () => void) => (() => void) | void} start + * @since 5.7.0 + */ +function createSubscriber(start) { + let subscribers = 0; + let version = source(0); + /** @type {(() => void) | void} */ + let stop; + + return () => { + if (effect_tracking()) { + get(version); + + render_effect(() => { + if (subscribers === 0) { + stop = untrack(() => start(() => increment(version))); + } + + subscribers += 1; + + return () => { + queue_micro_task(() => { + // Only count down after a microtask, else we would reach 0 before our own render effect reruns, + // but reach 1 again when the tick callback of the prior teardown runs. That would mean we + // re-subcribe unnecessarily and create a memory leak because the old subscription is never cleaned up. + subscribers -= 1; + + if (subscribers === 0) { + stop?.(); + stop = undefined; + // Increment the version to ensure any dependent deriveds are marked dirty when the subscription is picked up again later. + // If we didn't do this then the comparison of write versions would determine that the derived has a later version than + // the subscriber, and it would not be re-run. + increment(version); + } + }); + }; + }); + } + }; +} + +/** @import { Effect, Source, TemplateNode, } from '#client' */ + +/** + * @typedef {{ + * onerror?: (error: unknown, reset: () => void) => void; + * failed?: (anchor: Node, error: () => unknown, reset: () => () => void) => void; + * pending?: (anchor: Node) => void; + * }} BoundaryProps + */ + +var flags = EFFECT_TRANSPARENT | EFFECT_PRESERVED | BOUNDARY_EFFECT; + +/** + * @param {TemplateNode} node + * @param {BoundaryProps} props + * @param {((anchor: Node) => void)} children + * @returns {void} + */ +function boundary(node, props, children) { + new Boundary(node, props, children); +} + +class Boundary { + /** @type {Boundary | null} */ + parent; + + is_pending = false; + + /** @type {TemplateNode} */ + #anchor; + + /** @type {TemplateNode | null} */ + #hydrate_open = hydrating ? hydrate_node : null; + + /** @type {BoundaryProps} */ + #props; + + /** @type {((anchor: Node) => void)} */ + #children; + + /** @type {Effect} */ + #effect; + + /** @type {Effect | null} */ + #main_effect = null; + + /** @type {Effect | null} */ + #pending_effect = null; + + /** @type {Effect | null} */ + #failed_effect = null; + + /** @type {DocumentFragment | null} */ + #offscreen_fragment = null; + + /** @type {TemplateNode | null} */ + #pending_anchor = null; + + #local_pending_count = 0; + #pending_count = 0; + + #is_creating_fallback = false; + + /** @type {Set} */ + #dirty_effects = new Set(); + + /** @type {Set} */ + #maybe_dirty_effects = new Set(); + + /** + * A source containing the number of pending async deriveds/expressions. + * Only created if `$effect.pending()` is used inside the boundary, + * otherwise updating the source results in needless `Batch.ensure()` + * calls followed by no-op flushes + * @type {Source | null} + */ + #effect_pending = null; + + #effect_pending_subscriber = createSubscriber(() => { + this.#effect_pending = source(this.#local_pending_count); + + return () => { + this.#effect_pending = null; + }; + }); + + /** + * @param {TemplateNode} node + * @param {BoundaryProps} props + * @param {((anchor: Node) => void)} children + */ + constructor(node, props, children) { + this.#anchor = node; + this.#props = props; + this.#children = children; + + this.parent = /** @type {Effect} */ (active_effect).b; + + this.is_pending = !!this.#props.pending; + + this.#effect = block(() => { + /** @type {Effect} */ (active_effect).b = this; + + if (hydrating) { + const comment = this.#hydrate_open; + hydrate_next(); + + const server_rendered_pending = + /** @type {Comment} */ (comment).nodeType === COMMENT_NODE && + /** @type {Comment} */ (comment).data === HYDRATION_START_ELSE; + + if (server_rendered_pending) { + this.#hydrate_pending_content(); + } else { + this.#hydrate_resolved_content(); + + if (this.#pending_count === 0) { + this.is_pending = false; + } + } + } else { + var anchor = this.#get_anchor(); + + try { + this.#main_effect = branch(() => children(anchor)); + } catch (error) { + this.error(error); + } + + if (this.#pending_count > 0) { + this.#show_pending_snippet(); + } else { + this.is_pending = false; + } + } + + return () => { + this.#pending_anchor?.remove(); + }; + }, flags); + + if (hydrating) { + this.#anchor = hydrate_node; + } + } + + #hydrate_resolved_content() { + try { + this.#main_effect = branch(() => this.#children(this.#anchor)); + } catch (error) { + this.error(error); + } + } + + #hydrate_pending_content() { + const pending = this.#props.pending; + if (!pending) { + return; + } + this.#pending_effect = branch(() => pending(this.#anchor)); + + Batch.enqueue(() => { + var anchor = this.#get_anchor(); + + this.#main_effect = this.#run(() => { + Batch.ensure(); + return branch(() => this.#children(anchor)); + }); + + if (this.#pending_count > 0) { + this.#show_pending_snippet(); + } else { + pause_effect(/** @type {Effect} */ (this.#pending_effect), () => { + this.#pending_effect = null; + }); + + this.is_pending = false; + } + }); + } + + #get_anchor() { + var anchor = this.#anchor; + + if (this.is_pending) { + this.#pending_anchor = create_text(); + this.#anchor.before(this.#pending_anchor); + + anchor = this.#pending_anchor; + } + + return anchor; + } + + /** + * Defer an effect inside a pending boundary until the boundary resolves + * @param {Effect} effect + */ + defer_effect(effect) { + defer_effect(effect, this.#dirty_effects, this.#maybe_dirty_effects); + } + + /** + * Returns `false` if the effect exists inside a boundary whose pending snippet is shown + * @returns {boolean} + */ + is_rendered() { + return !this.is_pending && (!this.parent || this.parent.is_rendered()); + } + + has_pending_snippet() { + return !!this.#props.pending; + } + + /** + * @param {() => Effect | null} fn + */ + #run(fn) { + var previous_effect = active_effect; + var previous_reaction = active_reaction; + var previous_ctx = component_context; + + set_active_effect(this.#effect); + set_active_reaction(this.#effect); + set_component_context(this.#effect.ctx); + + try { + return fn(); + } catch (e) { + handle_error(e); + return null; + } finally { + set_active_effect(previous_effect); + set_active_reaction(previous_reaction); + set_component_context(previous_ctx); + } + } + + #show_pending_snippet() { + const pending = /** @type {(anchor: Node) => void} */ (this.#props.pending); + + if (this.#main_effect !== null) { + this.#offscreen_fragment = document.createDocumentFragment(); + this.#offscreen_fragment.append(/** @type {TemplateNode} */ (this.#pending_anchor)); + move_effect(this.#main_effect, this.#offscreen_fragment); + } + + if (this.#pending_effect === null) { + this.#pending_effect = branch(() => pending(this.#anchor)); + } + } + + /** + * Updates the pending count associated with the currently visible pending snippet, + * if any, such that we can replace the snippet with content once work is done + * @param {1 | -1} d + */ + #update_pending_count(d) { + if (!this.has_pending_snippet()) { + if (this.parent) { + this.parent.#update_pending_count(d); + } + + // if there's no parent, we're in a scope with no pending snippet + return; + } + + this.#pending_count += d; + + if (this.#pending_count === 0) { + this.is_pending = false; + + // any effects that were encountered and deferred during traversal + // should be rescheduled — after the next traversal (which will happen + // immediately, due to the same update that brought us here) + // the effects will be flushed + for (const e of this.#dirty_effects) { + set_signal_status(e, DIRTY); + schedule_effect(e); + } + + for (const e of this.#maybe_dirty_effects) { + set_signal_status(e, MAYBE_DIRTY); + schedule_effect(e); + } + + this.#dirty_effects.clear(); + this.#maybe_dirty_effects.clear(); + + if (this.#pending_effect) { + pause_effect(this.#pending_effect, () => { + this.#pending_effect = null; + }); + } + + if (this.#offscreen_fragment) { + this.#anchor.before(this.#offscreen_fragment); + this.#offscreen_fragment = null; + } + } + } + + /** + * Update the source that powers `$effect.pending()` inside this boundary, + * and controls when the current `pending` snippet (if any) is removed. + * Do not call from inside the class + * @param {1 | -1} d + */ + update_pending_count(d) { + this.#update_pending_count(d); + + this.#local_pending_count += d; + + if (this.#effect_pending) { + internal_set(this.#effect_pending, this.#local_pending_count); + } + } + + get_effect_pending() { + this.#effect_pending_subscriber(); + return get(/** @type {Source} */ (this.#effect_pending)); + } + + /** @param {unknown} error */ + error(error) { + var onerror = this.#props.onerror; + let failed = this.#props.failed; + + // If we have nothing to capture the error, or if we hit an error while + // rendering the fallback, re-throw for another boundary to handle + if (this.#is_creating_fallback || (!onerror && !failed)) { + throw error; + } + + if (this.#main_effect) { + destroy_effect(this.#main_effect); + this.#main_effect = null; + } + + if (this.#pending_effect) { + destroy_effect(this.#pending_effect); + this.#pending_effect = null; + } + + if (this.#failed_effect) { + destroy_effect(this.#failed_effect); + this.#failed_effect = null; + } + + if (hydrating) { + set_hydrate_node(/** @type {TemplateNode} */ (this.#hydrate_open)); + next(); + set_hydrate_node(skip_nodes()); + } + + var did_reset = false; + var calling_on_error = false; + + const reset = () => { + if (did_reset) { + svelte_boundary_reset_noop(); + return; + } + + did_reset = true; + + if (calling_on_error) { + svelte_boundary_reset_onerror(); + } + + // If the failure happened while flushing effects, current_batch can be null + Batch.ensure(); + + this.#local_pending_count = 0; + + if (this.#failed_effect !== null) { + pause_effect(this.#failed_effect, () => { + this.#failed_effect = null; + }); + } + + // we intentionally do not try to find the nearest pending boundary. If this boundary has one, we'll render it on reset + // but it would be really weird to show the parent's boundary on a child reset. + this.is_pending = this.has_pending_snippet(); + + this.#main_effect = this.#run(() => { + this.#is_creating_fallback = false; + return branch(() => this.#children(this.#anchor)); + }); + + if (this.#pending_count > 0) { + this.#show_pending_snippet(); + } else { + this.is_pending = false; + } + }; + + var previous_reaction = active_reaction; + + try { + set_active_reaction(null); + calling_on_error = true; + onerror?.(error, reset); + calling_on_error = false; + } catch (error) { + invoke_error_boundary(error, this.#effect && this.#effect.parent); + } finally { + set_active_reaction(previous_reaction); + } + + if (failed) { + queue_micro_task(() => { + this.#failed_effect = this.#run(() => { + Batch.ensure(); + this.#is_creating_fallback = true; + + try { + return branch(() => { + failed( + this.#anchor, + () => error, + () => reset + ); + }); + } catch (error) { + invoke_error_boundary(error, /** @type {Effect} */ (this.#effect.parent)); + return null; + } finally { + this.#is_creating_fallback = false; + } + }); + }); + } + } +} + +/** @type {Set} */ +const all_registered_events = new Set(); + +/** @type {Set<(events: Array) => void>} */ +const root_event_handles = new Set(); + +// used to store the reference to the currently propagated event +// to prevent garbage collection between microtasks in Firefox +// If the event object is GCed too early, the expando __root property +// set on the event object is lost, causing the event delegation +// to process the event twice +let last_propagated_event = null; + +/** + * @this {EventTarget} + * @param {Event} event + * @returns {void} + */ +function handle_event_propagation(event) { + var handler_element = this; + var owner_document = /** @type {Node} */ (handler_element).ownerDocument; + var event_name = event.type; + var path = event.composedPath?.() || []; + var current_target = /** @type {null | Element} */ (path[0] || event.target); + + last_propagated_event = event; + + // composedPath contains list of nodes the event has propagated through. + // We check __root to skip all nodes below it in case this is a + // parent of the __root node, which indicates that there's nested + // mounted apps. In this case we don't want to trigger events multiple times. + var path_idx = 0; + + // the `last_propagated_event === event` check is redundant, but + // without it the variable will be DCE'd and things will + // fail mysteriously in Firefox + // @ts-expect-error is added below + var handled_at = last_propagated_event === event && event.__root; + + if (handled_at) { + var at_idx = path.indexOf(handled_at); + if ( + at_idx !== -1 && + (handler_element === document || handler_element === /** @type {any} */ (window)) + ) { + // This is the fallback document listener or a window listener, but the event was already handled + // -> ignore, but set handle_at to document/window so that we're resetting the event + // chain in case someone manually dispatches the same event object again. + // @ts-expect-error + event.__root = handler_element; + return; + } + + // We're deliberately not skipping if the index is higher, because + // someone could create an event programmatically and emit it multiple times, + // in which case we want to handle the whole propagation chain properly each time. + // (this will only be a false negative if the event is dispatched multiple times and + // the fallback document listener isn't reached in between, but that's super rare) + var handler_idx = path.indexOf(handler_element); + if (handler_idx === -1) { + // handle_idx can theoretically be -1 (happened in some JSDOM testing scenarios with an event listener on the window object) + // so guard against that, too, and assume that everything was handled at this point. + return; + } + + if (at_idx <= handler_idx) { + path_idx = at_idx; + } + } + + current_target = /** @type {Element} */ (path[path_idx] || event.target); + // there can only be one delegated event per element, and we either already handled the current target, + // or this is the very first target in the chain which has a non-delegated listener, in which case it's safe + // to handle a possible delegated event on it later (through the root delegation listener for example). + if (current_target === handler_element) return; + + // Proxy currentTarget to correct target + define_property(event, 'currentTarget', { + configurable: true, + get() { + return current_target || owner_document; + } + }); + + // This started because of Chromium issue https://chromestatus.com/feature/5128696823545856, + // where removal or moving of of the DOM can cause sync `blur` events to fire, which can cause logic + // to run inside the current `active_reaction`, which isn't what we want at all. However, on reflection, + // it's probably best that all event handled by Svelte have this behaviour, as we don't really want + // an event handler to run in the context of another reaction or effect. + var previous_reaction = active_reaction; + var previous_effect = active_effect; + set_active_reaction(null); + set_active_effect(null); + + try { + /** + * @type {unknown} + */ + var throw_error; + /** + * @type {unknown[]} + */ + var other_errors = []; + + while (current_target !== null) { + /** @type {null | Element} */ + var parent_element = + current_target.assignedSlot || + current_target.parentNode || + /** @type {any} */ (current_target).host || + null; + + try { + // @ts-expect-error + var delegated = current_target['__' + event_name]; + + if ( + delegated != null && + (!(/** @type {any} */ (current_target).disabled) || + // DOM could've been updated already by the time this is reached, so we check this as well + // -> the target could not have been disabled because it emits the event in the first place + event.target === current_target) + ) { + delegated.call(current_target, event); + } + } catch (error) { + if (throw_error) { + other_errors.push(error); + } else { + throw_error = error; + } + } + if (event.cancelBubble || parent_element === handler_element || parent_element === null) { + break; + } + current_target = parent_element; + } + + if (throw_error) { + for (let error of other_errors) { + // Throw the rest of the errors, one-by-one on a microtask + queueMicrotask(() => { + throw error; + }); + } + throw throw_error; + } + } finally { + // @ts-expect-error is used above + event.__root = handler_element; + // @ts-ignore remove proxy on currentTarget + delete event.currentTarget; + set_active_reaction(previous_reaction); + set_active_effect(previous_effect); + } +} + +/** @import { Effect, EffectNodes, TemplateNode } from '#client' */ +/** @import { TemplateStructure } from './types' */ + +/** + * @param {TemplateNode} start + * @param {TemplateNode | null} end + */ +function assign_nodes(start, end) { + var effect = /** @type {Effect} */ (active_effect); + if (effect.nodes === null) { + effect.nodes = { start, end, a: null, t: null }; + } +} + +/** @import { ComponentContext, Effect, EffectNodes, TemplateNode } from '#client' */ +/** @import { Component, ComponentType, SvelteComponent, MountOptions } from '../../index.js' */ + +/** + * Mounts a component to the given target and returns the exports and potentially the props (if compiled with `accessors: true`) of the component. + * Transitions will play during the initial render unless the `intro` option is set to `false`. + * + * @template {Record} Props + * @template {Record} Exports + * @param {ComponentType> | Component} component + * @param {MountOptions} options + * @returns {Exports} + */ +function mount(component, options) { + return _mount(component, options); +} + +/** + * Hydrates a component on the given target and returns the exports and potentially the props (if compiled with `accessors: true`) of the component + * + * @template {Record} Props + * @template {Record} Exports + * @param {ComponentType> | Component} component + * @param {{} extends Props ? { + * target: Document | Element | ShadowRoot; + * props?: Props; + * events?: Record any>; + * context?: Map; + * intro?: boolean; + * recover?: boolean; + * } : { + * target: Document | Element | ShadowRoot; + * props: Props; + * events?: Record any>; + * context?: Map; + * intro?: boolean; + * recover?: boolean; + * }} options + * @returns {Exports} + */ +function hydrate(component, options) { + init_operations(); + options.intro = options.intro ?? false; + const target = options.target; + const was_hydrating = hydrating; + const previous_hydrate_node = hydrate_node; + + try { + var anchor = get_first_child(target); + + while ( + anchor && + (anchor.nodeType !== COMMENT_NODE || /** @type {Comment} */ (anchor).data !== HYDRATION_START) + ) { + anchor = get_next_sibling(anchor); + } + + if (!anchor) { + throw HYDRATION_ERROR; + } + + set_hydrating(true); + set_hydrate_node(/** @type {Comment} */ (anchor)); + + const instance = _mount(component, { ...options, anchor }); + + set_hydrating(false); + + return /** @type {Exports} */ (instance); + } catch (error) { + // re-throw Svelte errors - they are certainly not related to hydration + if ( + error instanceof Error && + error.message.split('\n').some((line) => line.startsWith('https://svelte.dev/e/')) + ) { + throw error; + } + if (error !== HYDRATION_ERROR) { + // eslint-disable-next-line no-console + console.warn('Failed to hydrate: ', error); + } + + if (options.recover === false) { + hydration_failed(); + } + + // If an error occurred above, the operations might not yet have been initialised. + init_operations(); + clear_text_content(target); + + set_hydrating(false); + return mount(component, options); + } finally { + set_hydrating(was_hydrating); + set_hydrate_node(previous_hydrate_node); + } +} + +/** @type {Map} */ +const document_listeners = new Map(); + +/** + * @template {Record} Exports + * @param {ComponentType> | Component} Component + * @param {MountOptions} options + * @returns {Exports} + */ +function _mount(Component, { target, anchor, props = {}, events, context, intro = true }) { + init_operations(); + + /** @type {Set} */ + var registered_events = new Set(); + + /** @param {Array} events */ + var event_handle = (events) => { + for (var i = 0; i < events.length; i++) { + var event_name = events[i]; + + if (registered_events.has(event_name)) continue; + registered_events.add(event_name); + + var passive = is_passive_event(event_name); + + // Add the event listener to both the container and the document. + // The container listener ensures we catch events from within in case + // the outer content stops propagation of the event. + target.addEventListener(event_name, handle_event_propagation, { passive }); + + var n = document_listeners.get(event_name); + + if (n === undefined) { + // The document listener ensures we catch events that originate from elements that were + // manually moved outside of the container (e.g. via manual portals). + document.addEventListener(event_name, handle_event_propagation, { passive }); + document_listeners.set(event_name, 1); + } else { + document_listeners.set(event_name, n + 1); + } + } + }; + + event_handle(array_from(all_registered_events)); + root_event_handles.add(event_handle); + + /** @type {Exports} */ + // @ts-expect-error will be defined because the render effect runs synchronously + var component = undefined; + + var unmount = component_root(() => { + var anchor_node = anchor ?? target.appendChild(create_text()); + + boundary( + /** @type {TemplateNode} */ (anchor_node), + { + pending: () => {} + }, + (anchor_node) => { + if (context) { + push({}); + var ctx = /** @type {ComponentContext} */ (component_context); + ctx.c = context; + } + + if (events) { + // We can't spread the object or else we'd lose the state proxy stuff, if it is one + /** @type {any} */ (props).$$events = events; + } + + if (hydrating) { + assign_nodes(/** @type {TemplateNode} */ (anchor_node), null); + } + // @ts-expect-error the public typings are not what the actual function looks like + component = Component(anchor_node, props) || {}; + + if (hydrating) { + /** @type {Effect & { nodes: EffectNodes }} */ (active_effect).nodes.end = hydrate_node; + + if ( + hydrate_node === null || + hydrate_node.nodeType !== COMMENT_NODE || + /** @type {Comment} */ (hydrate_node).data !== HYDRATION_END + ) { + hydration_mismatch(); + throw HYDRATION_ERROR; + } + } + + if (context) { + pop(); + } + } + ); + + return () => { + for (var event_name of registered_events) { + target.removeEventListener(event_name, handle_event_propagation); + + var n = /** @type {number} */ (document_listeners.get(event_name)); + + if (--n === 0) { + document.removeEventListener(event_name, handle_event_propagation); + document_listeners.delete(event_name); + } else { + document_listeners.set(event_name, n); + } + } + + root_event_handles.delete(event_handle); + + if (anchor_node !== anchor) { + anchor_node.parentNode?.removeChild(anchor_node); + } + }; + }); + + mounted_components.set(component, unmount); + return component; +} + +/** + * References of the components that were mounted or hydrated. + * Uses a `WeakMap` to avoid memory leaks. + */ +let mounted_components = new WeakMap(); + +/** + * Unmounts a component that was previously mounted using `mount` or `hydrate`. + * + * Since 5.13.0, if `options.outro` is `true`, [transitions](https://svelte.dev/docs/svelte/transition) will play before the component is removed from the DOM. + * + * Returns a `Promise` that resolves after transitions have completed if `options.outro` is true, or immediately otherwise (prior to 5.13.0, returns `void`). + * + * ```js + * import { mount, unmount } from 'svelte'; + * import App from './App.svelte'; + * + * const app = mount(App, { target: document.body }); + * + * // later... + * unmount(app, { outro: true }); + * ``` + * @param {Record} component + * @param {{ outro?: boolean }} [options] + * @returns {Promise} + */ +function unmount(component, options) { + const fn = mounted_components.get(component); + + if (fn) { + mounted_components.delete(component); + return fn(options); + } + + return Promise.resolve(); +} + +/** @import { ComponentConstructorOptions, ComponentType, SvelteComponent, Component } from 'svelte' */ + +/** + * Takes the component function and returns a Svelte 4 compatible component constructor. + * + * @deprecated Use this only as a temporary solution to migrate your imperative component code to Svelte 5. + * + * @template {Record} Props + * @template {Record} Exports + * @template {Record} Events + * @template {Record} Slots + * + * @param {SvelteComponent | Component} component + * @returns {ComponentType & Exports>} + */ +function asClassComponent$1(component) { + // @ts-expect-error $$prop_def etc are not actually defined + return class extends Svelte4Component { + /** @param {any} options */ + constructor(options) { + super({ + component, + ...options + }); + } + }; +} + +/** + * Support using the component as both a class and function during the transition period + * @typedef {{new (o: ComponentConstructorOptions): SvelteComponent;(...args: Parameters>>): ReturnType, Record>>;}} LegacyComponentType + */ + +class Svelte4Component { + /** @type {any} */ + #events; + + /** @type {Record} */ + #instance; + + /** + * @param {ComponentConstructorOptions & { + * component: any; + * }} options + */ + constructor(options) { + var sources = new Map(); + + /** + * @param {string | symbol} key + * @param {unknown} value + */ + var add_source = (key, value) => { + var s = mutable_source(value, false, false); + sources.set(key, s); + return s; + }; + + // Replicate coarse-grained props through a proxy that has a version source for + // each property, which is incremented on updates to the property itself. Do not + // use our $state proxy because that one has fine-grained reactivity. + const props = new Proxy( + { ...(options.props || {}), $$events: {} }, + { + get(target, prop) { + return get(sources.get(prop) ?? add_source(prop, Reflect.get(target, prop))); + }, + has(target, prop) { + // Necessary to not throw "invalid binding" validation errors on the component side + if (prop === LEGACY_PROPS) return true; + + get(sources.get(prop) ?? add_source(prop, Reflect.get(target, prop))); + return Reflect.has(target, prop); + }, + set(target, prop, value) { + set(sources.get(prop) ?? add_source(prop, value), value); + return Reflect.set(target, prop, value); + } + } + ); + + this.#instance = (options.hydrate ? hydrate : mount)(options.component, { + target: options.target, + anchor: options.anchor, + props, + context: options.context, + intro: options.intro ?? false, + recover: options.recover + }); + + // We don't flushSync for custom element wrappers or if the user doesn't want it, + // or if we're in async mode since `flushSync()` will fail + if (!async_mode_flag && (!options?.props?.$$host || options.sync === false)) { + flushSync(); + } + + this.#events = props.$$events; + + for (const key of Object.keys(this.#instance)) { + if (key === '$set' || key === '$destroy' || key === '$on') continue; + define_property(this, key, { + get() { + return this.#instance[key]; + }, + /** @param {any} value */ + set(value) { + this.#instance[key] = value; + }, + enumerable: true + }); + } + + this.#instance.$set = /** @param {Record} next */ (next) => { + Object.assign(props, next); + }; + + this.#instance.$destroy = () => { + unmount(this.#instance); + }; + } + + /** @param {Record} props */ + $set(props) { + this.#instance.$set(props); + } + + /** + * @param {string} event + * @param {(...args: any[]) => any} callback + * @returns {any} + */ + $on(event, callback) { + this.#events[event] = this.#events[event] || []; + + /** @param {any[]} args */ + const cb = (...args) => callback.call(this, ...args); + this.#events[event].push(cb); + return () => { + this.#events[event] = this.#events[event].filter(/** @param {any} fn */ (fn) => fn !== cb); + }; + } + + $destroy() { + this.#instance.$destroy(); + } +} + +/** @import { SvelteComponent } from '../index.js' */ +/** @import { Csp } from '#server' */ + +/** @typedef {{ head: string, html: string, css: { code: string, map: null }; hashes?: { script: `sha256-${string}`[] } }} LegacyRenderResult */ + +/** + * Takes a Svelte 5 component and returns a Svelte 4 compatible component constructor. + * + * @deprecated Use this only as a temporary solution to migrate your imperative component code to Svelte 5. + * + * @template {Record} Props + * @template {Record} Exports + * @template {Record} Events + * @template {Record} Slots + * + * @param {SvelteComponent} component + * @returns {typeof SvelteComponent & Exports} + */ +function asClassComponent(component) { + const component_constructor = asClassComponent$1(component); + /** @type {(props?: {}, opts?: { $$slots?: {}; context?: Map; csp?: Csp }) => LegacyRenderResult & PromiseLike } */ + const _render = (props, { context, csp } = {}) => { + // @ts-expect-error the typings are off, but this will work if the component is compiled in SSR mode + const result = render(component, { props, context, csp }); + + const munged = Object.defineProperties( + /** @type {LegacyRenderResult & PromiseLike} */ ({}), + { + css: { + value: { code: '', map: null } + }, + head: { + get: () => result.head + }, + html: { + get: () => result.body + }, + then: { + /** + * this is not type-safe, but honestly it's the best I can do right now, and it's a straightforward function. + * + * @template TResult1 + * @template [TResult2=never] + * @param { (value: LegacyRenderResult) => TResult1 } onfulfilled + * @param { (reason: unknown) => TResult2 } onrejected + */ + value: (onfulfilled, onrejected) => { + if (!async_mode_flag) { + const user_result = onfulfilled({ + css: munged.css, + head: munged.head, + html: munged.html + }); + return Promise.resolve(user_result); + } + + return result.then((result) => { + return onfulfilled({ + css: munged.css, + head: result.head, + html: result.body, + hashes: result.hashes + }); + }, onrejected); + } + } + } + ); + + return munged; + }; + + // @ts-expect-error this is present for SSR + component_constructor.render = _render; + + // @ts-ignore + return component_constructor; +} + +/** + * Runs the given function once immediately on the server, and works like `$effect.pre` on the client. + * + * @deprecated Use this only as a temporary solution to migrate your component code to Svelte 5. + * @param {() => void | (() => void)} fn + * @returns {void} + */ +function run(fn) { + fn(); +} + +export { asClassComponent as a, run as r }; +//# sourceMappingURL=legacy-server-CxBQ4HtA.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/lt-BSuzG0gL.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/lt-BSuzG0gL.js new file mode 100644 index 0000000000000000000000000000000000000000..08f5995bf35939a33bfcf7c80480ecef96ce0f7d --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/lt-BSuzG0gL.js @@ -0,0 +1,4 @@ +const i="Lietuvių",a={built_with_gradio:"Sukurta su Gradio",clear:"Išvalyti",or:"arba",submit:"Pateikti",settings:"Nustatymai",built_with:"sukurta su",download:"Atsisiųsti",edit:"Redaguoti",empty:"Tuščia",error:"Klaida",hosted_on:"Talpinama",loading:"Kraunama",logo:"logotipas",remove:"Pašalinti",share:"Dalintis",undo:"Atšaukti",no_devices:"Nerasta jokių įrenginių",language:"Kalba",display_theme:"Ekrano tema",pwa:"Progresyvi interneto programėlė"},e={click_to_upload:"Spustelėkite norėdami įkelti",drop_audio:"Įkelkite garso įrašą čia",drop_csv:"Įkelkite CSV čia",drop_file:"Įkelkite failą čia",drop_image:"Įkelkite paveikslėlį čia",drop_video:"Įkelkite vaizdo įrašą čia",drop_gallery:"Įkelkite mediją čia",paste_clipboard:"Įklijuoti iš iškarpinės"},t={annotated_image:"Pažymėtas paveikslėlis"},o={allow_recording_access:"Prašome suteikti prieigą prie mikrofono įrašymui.",audio:"Garsas",drop_to_upload:"Įkelkite garso failą čia",record_from_microphone:"Įrašyti iš mikrofono",stop_recording:"Stabdyti įrašymą",no_device_support:"Nepavyko pasiekti medijos įrenginių. Patikrinkite, ar naudojate saugią prieigą (https) arba localhost (arba perduodate galiojantį SSL sertifikatą į ssl_verify), ir leidžiate naršyklei prieiti prie jūsų įrenginio.",stop:"Stabdyti",resume:"Tęsti",record:"Įrašyti",no_microphone:"Mikrofonas nerastas",pause:"Pristabdyti",play:"Groti",waiting:"Laukiama"},r={connection_can_break:"Mobiliajame įrenginyje ryšys gali nutrūkti, jei šis skirtukas bus neaktyvus arba įrenginys užmigs, todėl galite prarasti savo vietą eilėje.",long_requests_queue:"Yra ilga laukiančių užklausų eilė. Dubliuokite šią erdvę, kad praleistumėte eilę.",lost_connection:"Ryšys nutrūko išėjus iš puslapio. Vėl jungiamasi į eilę...",waiting_for_inputs:"Laukiama, kol bus baigti įkelti failai, prašome bandyti dar kartą."},s={checkbox:"Žymimasis langelis",checkbox_group:"Žymimųjų langelių grupė"},l={code:"Kodas"},n={color_picker:"Spalvos pasirinkimas"},d={incorrect_format:"Neteisingas formatas, palaikomi tik CSV ir TSV failai",new_column:"Pridėti stulpelį",new_row:"Nauja eilutė",add_row_above:"Pridėti eilutę viršuje",add_row_below:"Pridėti eilutę žemiau",delete_row:"Ištrinti eilutę",delete_column:"Ištrinti stulpelį",add_column_left:"Pridėti stulpelį kairėje",add_column_right:"Pridėti stulpelį dešinėje",sort_column:"Rikiuoti stulpelį",sort_ascending:"Rikiuoti didėjančia tvarka",sort_descending:"Rikiuoti mažėjančia tvarka",drop_to_upload:"Įkelkite CSV arba TSV failus čia, kad importuotumėte duomenis į duomenų lentelę",clear_sort:"Išvalyti rikiavimą"},u={dropdown:"Išskleidžiamasis sąrašas"},k={build_error:"yra kompiliavimo klaida",config_error:"yra konfigūracijos klaida",contact_page_author:"Prašome susisiekti su puslapio autoriumi.",no_app_file:"nėra programos failo",runtime_error:"yra vykdymo klaida",space_not_working:'"Erdvė neveikia, nes" {0}',space_paused:"erdvė yra pristabdyta",use_via_api:"Naudoti per API",use_via_api_or_mcp:"Naudoti per API arba MCP"},p={uploading:"Įkeliama..."},_={highlighted_text:"Paryškintas tekstas"},c={allow_webcam_access:"Prašome suteikti prieigą prie internetinės kameros įrašymui.",brush_color:"Teptuko spalva",brush_radius:"Teptuko dydis",image:"Paveikslėlis",remove_image:"Pašalinti paveikslėlį",select_brush_color:"Pasirinkite teptuko spalvą",start_drawing:"Pradėti piešti",use_brush:"Naudoti teptuką",drop_to_upload:"Įkelkite paveikslėlio failą čia"},m={label:"Etiketė"},g={enable_cookies:"Jei lankotės HuggingFace erdvėje inkognito režimu, turite leisti trečiųjų šalių slapukus.",incorrect_credentials:"Neteisingi prisijungimo duomenys",username:"Vartotojo vardas",password:"Slaptažodis",login:"Prisijungti"},b={number:"Skaičius"},y={plot:"Grafikas"},v={radio:"Pasirinkimo mygtukas"},f={slider:"Slankiklis"},j={drop_to_upload:"Įkelkite vaizdo įrašo failą čia"},P={edit:"Redaguoti",retry:"Bandyti dar kartą",undo:"Atšaukti",submit:"Pateikti",cancel:"Atšaukti",like:"Patinka",dislike:"Nepatinka",clear:"Išvalyti pokalbį"},h={_name:i,common:a,upload_text:e,"3D_model":{"3d_model":"3D modelis",drop_to_upload:"Įkelkite 3D modelio failą (.obj, .glb, .stl, .gltf, .splat arba .ply) čia"},annotated_image:t,audio:o,blocks:r,checkbox:s,code:l,color_picker:n,dataframe:d,dropdown:u,errors:k,file:p,highlighted_text:_,image:c,label:m,login:g,number:b,plot:y,radio:v,slider:f,video:j,chatbot:P}; + +export { i as _name, t as annotated_image, o as audio, r as blocks, P as chatbot, s as checkbox, l as code, n as color_picker, a as common, d as dataframe, h as default, u as dropdown, k as errors, p as file, _ as highlighted_text, c as image, m as label, g as login, b as number, y as plot, v as radio, f as slider, e as upload_text, j as video }; +//# sourceMappingURL=lt-BSuzG0gL.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/module3-CsOA9qDp.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/module3-CsOA9qDp.js new file mode 100644 index 0000000000000000000000000000000000000000..f52296c5d07fb5610716744af6c027c2d3b1f0e0 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/module3-CsOA9qDp.js @@ -0,0 +1,8 @@ +import { q, y, g } from './module2-BgDPHXun.js'; + +const Mt=new Set,Hn=q({deregister:({call:e})=>t=>e("deregister",{port:t},[t]),encode:({call:e})=>async(t,n)=>{const r=await e("encode",{encoderId:t,timeslice:n});return Mt.delete(t),r},instantiate:({call:e})=>async(t,n)=>{const r=y(Mt),o=await e("instantiate",{encoderId:r,mimeType:t,sampleRate:n});return {encoderId:r,port:o}},register:({call:e})=>t=>e("register",{port:t},[t])}),Zn=e=>{const t=new Worker(e);return Hn(t)},Kn=`(()=>{var e={455:function(e,t){!function(e){"use strict";var t=function(e){return function(t){var r=e(t);return t.add(r),r}},r=function(e){return function(t,r){return e.set(t,r),r}},n=void 0===Number.MAX_SAFE_INTEGER?9007199254740991:Number.MAX_SAFE_INTEGER,o=536870912,s=2*o,a=function(e,t){return function(r){var a=t.get(r),i=void 0===a?r.size:an)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;r.has(i);)i=Math.floor(Math.random()*n);return e(r,i)}},i=new WeakMap,c=r(i),l=a(c,i),d=t(l);e.addUniqueNumber=d,e.generateUniqueNumber=l}(t)}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var s=t[n]={exports:{}};return e[n].call(s.exports,s,s.exports,r),s.exports}(()=>{"use strict";var e=r(455);const t=new WeakMap,n=new WeakMap,o=(r=>{const o=(s=r,{...s,connect:e=>{let{call:r}=e;return async()=>{const{port1:e,port2:n}=new MessageChannel,o=await r("connect",{port:e},[e]);return t.set(n,o),n}},disconnect:e=>{let{call:r}=e;return async e=>{const n=t.get(e);if(void 0===n)throw new Error("The given port is not connected.");await r("disconnect",{portId:n})}},isSupported:e=>{let{call:t}=e;return()=>t("isSupported")}});var s;return t=>{const r=(e=>{if(n.has(e))return n.get(e);const t=new Map;return n.set(e,t),t})(t);t.addEventListener("message",(e=>{let{data:t}=e;const{id:n}=t;if(null!==n&&r.has(n)){const{reject:e,resolve:o}=r.get(n);r.delete(n),void 0===t.error?o(t.result):e(new Error(t.error.message))}})),(e=>"function"==typeof e.start)(t)&&t.start();const s=function(n){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return new Promise(((a,i)=>{const c=(0,e.generateUniqueNumber)(r);r.set(c,{reject:i,resolve:a}),null===o?t.postMessage({id:c,method:n},s):t.postMessage({id:c,method:n,params:o},s)}))},a=function(e,r){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];t.postMessage({id:null,method:e,params:r},n)};let i={};for(const[e,t]of Object.entries(o))i={...i,[e]:t({call:s,notify:a})};return{...i}}})({characterize:e=>{let{call:t}=e;return()=>t("characterize")},encode:e=>{let{call:t}=e;return(e,r)=>t("encode",{recordingId:e,timeslice:r})},record:e=>{let{call:t}=e;return async(e,r,n)=>{await t("record",{recordingId:e,sampleRate:r,typedArrays:n},n.map((e=>{let{buffer:t}=e;return t})))}}}),s=-32603,a=-32602,i=-32601,c=(e,t)=>Object.assign(new Error(e),{status:t}),l=e=>c('The handler of the method called "'.concat(e,'" returned an unexpected result.'),s),d=(e,t)=>async r=>{let{data:{id:n,method:o,params:a}}=r;const d=t[o];try{if(void 0===d)throw(e=>c('The requested method called "'.concat(e,'" is not supported.'),i))(o);const t=void 0===a?d():d(a);if(void 0===t)throw(e=>c('The handler of the method called "'.concat(e,'" returned no required result.'),s))(o);const r=t instanceof Promise?await t:t;if(null===n){if(void 0!==r.result)throw l(o)}else{if(void 0===r.result)throw l(o);const{result:t,transferables:s=[]}=r;e.postMessage({id:n,result:t},s)}}catch(t){const{message:r,status:o=-32603}=t;e.postMessage({error:{code:o,message:r},id:n})}},u=new Map,h=(t,r,n)=>({...r,connect:n=>{let{port:o}=n;o.start();const s=t(o,r),a=(0,e.generateUniqueNumber)(u);return u.set(a,(()=>{s(),o.close(),u.delete(a)})),{result:a}},disconnect:e=>{let{portId:t}=e;const r=u.get(t);if(void 0===r)throw(e=>c('The specified parameter called "portId" with the given value "'.concat(e,'" does not identify a port connected to this worker.'),a))(t);return r(),{result:null}},isSupported:async()=>{if(await new Promise((e=>{const t=new ArrayBuffer(0),{port1:r,port2:n}=new MessageChannel;r.onmessage=t=>{let{data:r}=t;return e(null!==r)},n.postMessage(t,[t])}))){const e=n();return{result:e instanceof Promise?await e:e}}return{result:!1}}}),f=function(e,t){const r=h(f,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>!0),n=d(e,r);return e.addEventListener("message",n),()=>e.removeEventListener("message",n)},p=e=>{e.onmessage=null,e.close()},w=new Map,m=new WeakMap,g=((e,t)=>r=>{const n=t.get(r);if(void 0===n)throw new Error("There is no encoder stored which wraps this port.");e.delete(n),t.delete(r)})(w,m),v=new Map,y=(e=>t=>{const r=e.get(t);if(void 0===r)throw new Error("There was no instance of an encoder stored with the given id.");return r})(v),M=((e,t)=>r=>{const n=t(r);return e.delete(r),n})(v,y),E=((e,t)=>r=>{const[n,o,s,a]=t(r);return s?new Promise((t=>{o.onmessage=s=>{let{data:i}=s;0===i.length?(e(o),t(n.encode(r,null))):n.record(r,a,i)}})):n.encode(r,null)})(p,M),b=(e=>t=>{for(const[r,n]of Array.from(e.values()))if(r.test(t))return n;throw new Error("There is no encoder registered which could handle the given mimeType.")})(w),T=((e,t,r)=>(n,o,s)=>{if(t.has(n))throw new Error('There is already an encoder registered with an id called "'.concat(n,'".'));const a=r(o),{port1:i,port2:c}=new MessageChannel,l=[a,i,!0,s];return t.set(n,l),i.onmessage=t=>{let{data:r}=t;0===r.length?(e(i),l[2]=!1):a.record(n,s,r.map((e=>"number"==typeof e?new Float32Array(e):e)))},c})(p,v,b),I=((e,t,r)=>async n=>{const o=r(n),s=await o.characterize(),a=s.toString();if(e.has(a)||t.has(n))throw new Error("There is already an encoder stored which handles exactly the same mime types.");return e.set(a,[s,o]),t.set(n,a),s})(w,m,o),A=(e=>(t,r)=>{const[n]=e(t);return n.encode(t,r)})(y);f(self,{deregister:async e=>{let{port:t}=e;return{result:g(t)}},encode:async e=>{let{encoderId:t,timeslice:r}=e;const n=null===r?await E(t):await A(t,r);return{result:n,transferables:n}},instantiate:e=>{let{encoderId:t,mimeType:r,sampleRate:n}=e;const o=T(t,r,n);return{result:o,transferables:[o]}},register:async e=>{let{port:t}=e;return{result:await I(t)}}})})()})();`,Qn=new Blob([Kn],{type:"application/javascript; charset=utf-8"}),zt=URL.createObjectURL(Qn),it=Zn(zt),Se=it.encode,Xt=it.instantiate,Jn=it.register;URL.revokeObjectURL(zt);const er=e=>(t,n)=>{if(e===null)throw new Error("A native BlobEvent could not be created.");return new e(t,n)},tr=(e,t)=>(n,r,o)=>{const s=[];let a=r,c=0;for(;cclass{constructor(r=null){this._listeners=new WeakMap,this._nativeEventTarget=r===null?e():r;}addEventListener(r,o,s){if(o!==null){let a=this._listeners.get(o);a===void 0&&(a=t(this,o),typeof o=="function"&&this._listeners.set(o,a)),this._nativeEventTarget.addEventListener(r,a,s);}}dispatchEvent(r){return this._nativeEventTarget.dispatchEvent(r)}removeEventListener(r,o,s){const a=o===null?void 0:this._listeners.get(o);this._nativeEventTarget.removeEventListener(r,a===void 0?null:a,s);}},rr=e=>()=>{if(e===null)throw new Error("A native EventTarget could not be created.");return e.document.createElement("p")},or=(e="")=>{try{return new DOMException(e,"InvalidModificationError")}catch(t){return t.code=13,t.message=e,t.name="InvalidModificationError",t}},sr=()=>{try{return new DOMException("","InvalidStateError")}catch(e){return e.code=11,e.name="InvalidStateError",e}},ar=(e,t,n,r,o,s,a)=>class extends s{constructor(i,u={}){const{mimeType:d}=u;if(a!==null&&(d===void 0||a.isTypeSupported!==void 0&&a.isTypeSupported(d))){const l=e(a,i,u);super(l),this._internalMediaRecorder=l;}else if(d!==void 0&&o.some(l=>l.test(d)))super(),a!==null&&a.isTypeSupported!==void 0&&a.isTypeSupported("audio/webm;codecs=pcm")?this._internalMediaRecorder=r(this,a,i,d):this._internalMediaRecorder=n(this,i,d);else throw a!==null&&e(a,i,u),t();this._ondataavailable=null,this._onerror=null,this._onpause=null,this._onresume=null,this._onstart=null,this._onstop=null;}get mimeType(){return this._internalMediaRecorder.mimeType}get ondataavailable(){return this._ondataavailable===null?this._ondataavailable:this._ondataavailable[0]}set ondataavailable(i){if(this._ondataavailable!==null&&this.removeEventListener("dataavailable",this._ondataavailable[1]),typeof i=="function"){const u=i.bind(this);this.addEventListener("dataavailable",u),this._ondataavailable=[i,u];}else this._ondataavailable=null;}get onerror(){return this._onerror===null?this._onerror:this._onerror[0]}set onerror(i){if(this._onerror!==null&&this.removeEventListener("error",this._onerror[1]),typeof i=="function"){const u=i.bind(this);this.addEventListener("error",u),this._onerror=[i,u];}else this._onerror=null;}get onpause(){return this._onpause===null?this._onpause:this._onpause[0]}set onpause(i){if(this._onpause!==null&&this.removeEventListener("pause",this._onpause[1]),typeof i=="function"){const u=i.bind(this);this.addEventListener("pause",u),this._onpause=[i,u];}else this._onpause=null;}get onresume(){return this._onresume===null?this._onresume:this._onresume[0]}set onresume(i){if(this._onresume!==null&&this.removeEventListener("resume",this._onresume[1]),typeof i=="function"){const u=i.bind(this);this.addEventListener("resume",u),this._onresume=[i,u];}else this._onresume=null;}get onstart(){return this._onstart===null?this._onstart:this._onstart[0]}set onstart(i){if(this._onstart!==null&&this.removeEventListener("start",this._onstart[1]),typeof i=="function"){const u=i.bind(this);this.addEventListener("start",u),this._onstart=[i,u];}else this._onstart=null;}get onstop(){return this._onstop===null?this._onstop:this._onstop[0]}set onstop(i){if(this._onstop!==null&&this.removeEventListener("stop",this._onstop[1]),typeof i=="function"){const u=i.bind(this);this.addEventListener("stop",u),this._onstop=[i,u];}else this._onstop=null;}get state(){return this._internalMediaRecorder.state}pause(){return this._internalMediaRecorder.pause()}resume(){return this._internalMediaRecorder.resume()}start(i){return this._internalMediaRecorder.start(i)}stop(){return this._internalMediaRecorder.stop()}static isTypeSupported(i){return a!==null&&a.isTypeSupported!==void 0&&a.isTypeSupported(i)||o.some(u=>u.test(i))}},ir=e=>e!==null&&e.BlobEvent!==void 0?e.BlobEvent:null,cr=(e,t,n)=>{const r=new Map,o=new WeakMap,s=new WeakMap,a=new e(t,n),c=new WeakMap;let i=false;return a.addEventListener=(u=>(d,l,w)=>{let m=l;if(typeof l=="function")if(d==="dataavailable"){const h=[];m=f=>{i&&a.state==="inactive"?h.push(f):l.call(a,f);},r.set(l,h),o.set(l,m);}else d==="error"?(m=h=>{h instanceof ErrorEvent?l.call(a,h):l.call(a,new ErrorEvent("error",{error:h.error}));},s.set(l,m)):d==="stop"&&(m=h=>{for(const[f,g]of r.entries())if(g.length>0){const[p]=g;g.length>1&&Object.defineProperty(p,"data",{value:new Blob(g.map(({data:A})=>A),{type:p.data.type})}),g.length=0,f.call(a,p);}i=false,l.call(a,h);},c.set(l,m));return u.call(a,d,m,w)})(a.addEventListener),a.removeEventListener=(u=>(d,l,w)=>{let m=l;if(typeof l=="function"){if(d==="dataavailable"){r.delete(l);const h=o.get(l);h!==void 0&&(m=h);}else if(d==="error"){const h=s.get(l);h!==void 0&&(m=h);}else if(d==="stop"){const h=c.get(l);h!==void 0&&(m=h);}}return u.call(a,d,m,w)})(a.removeEventListener),a.start=(u=>d=>(i=d!==void 0,d===void 0?u.call(a):u.call(a,d)))(a.start),a},ur=e=>e===null||e.MediaRecorder===void 0?null:e.MediaRecorder,Yt=()=>{try{return new DOMException("","NotSupportedError")}catch(e){return e.code=9,e.name="NotSupportedError",e}},lr=e=>(t,n,r,o=2)=>{const s=e(t,n);if(s===null)return s;const{length:a,value:c}=s;if(r==="master")return {content:null,length:a};if(n+a+c>t.byteLength)return null;if(r==="binary"){const i=(c/Float32Array.BYTES_PER_ELEMENT-1)/o,u=Array.from({length:o},()=>new Float32Array(i));for(let d=0;d(t,n)=>{const r=e(t,n);if(r===null)return r;const{length:o,value:s}=r;return s===35?{length:o,type:"binary"}:s===46||s===97||s===88713574||s===106212971||s===139690087||s===172351395||s===256095861?{length:o,type:"master"}:{length:o,type:"unknown"}},fr=e=>(t,n)=>{const r=e(t,n);if(r===null)return r;const o=n+Math.floor((r-1)/8);if(o+r>t.byteLength)return null;let a=t.getUint8(o)&(1<<8-r%8)-1;for(let c=1;c{},Ot=e=>{throw e};function pr(e){return e?e.next&&e.error&&e.complete?e:{complete:(e.complete??Ne).bind(e),error:(e.error??Ot).bind(e),next:(e.next??Ne).bind(e)}:{complete:Ne,error:Ot,next:Ne}}const mr=e=>(t,n,r)=>e(o=>{const s=a=>o.next(a);return t.addEventListener(n,s,r),()=>t.removeEventListener(n,s,r)}),gr=(e,t)=>{const n=()=>{},r=o=>typeof o[0]=="function";return o=>{const s=((...a)=>{const c=o(r(a)?t({next:a[0]}):t(...a));return c!==void 0?c:n});return s[Symbol.observable]=()=>({subscribe:(...a)=>({unsubscribe:s(...a)})}),e(s)}},wr=gr(hr,pr),Ht=mr(wr),vr=(e,t,n)=>async r=>{const o=new e([n],{type:"application/javascript; charset=utf-8"}),s=t.createObjectURL(o);try{await r(s);}finally{t.revokeObjectURL(s);}},_r=e=>({data:t})=>{const{id:n}=t;if(n!==null){const r=e.get(n);if(r!==void 0){const{reject:o,resolve:s}=r;e.delete(n),t.error===void 0?s(t.result):o(new Error(t.error.message));}}},yr=e=>(t,n)=>(r,o=[])=>new Promise((s,a)=>{const c=e(t);t.set(c,{reject:a,resolve:s}),n.postMessage({id:c,...r},o);}),Er=(e,t,n,r)=>(o,s,a={})=>{const c={channelCountMode:"explicit",numberOfInputs:1,numberOfOutputs:0},i=new o(s,"recorder-audio-worklet-processor",{...a,...c}),u=new Map,d=t(u,i.port),l=n(i.port,"message")(e(u));i.port.start();let w="inactive";return Object.defineProperties(i,{pause:{get(){return async()=>(r(["recording"],w),w="paused",d({method:"pause"}))}},port:{get(){throw new Error("The port of a RecorderAudioWorkletNode can't be accessed.")}},record:{get(){return async m=>(r(["inactive"],w),w="recording",d({method:"record",params:{encoderPort:m}},[m]))}},resume:{get(){return async()=>(r(["paused"],w),w="recording",d({method:"resume"}))}},stop:{get(){return async()=>{r(["paused","recording"],w),w="stopped";try{await d({method:"stop"});}finally{l();}}}}}),i},br=(e,t)=>{if(!e.includes(t))throw new Error(`Expected the state to be ${e.map(n=>`"${n}"`).join(" or ")} but it was "${t}".`)},Ar='(()=>{"use strict";class e extends AudioWorkletProcessor{constructor(){super(),this._encoderPort=null,this._numberOfChannels=0,this._state="inactive",this.port.onmessage=({data:e})=>{"pause"===e.method?"active"===this._state||"recording"===this._state?(this._state="paused",this._sendAcknowledgement(e.id)):this._sendUnexpectedStateError(e.id):"record"===e.method?"inactive"===this._state?(this._encoderPort=e.params.encoderPort,this._state="active",this._sendAcknowledgement(e.id)):this._sendUnexpectedStateError(e.id):"resume"===e.method?"paused"===this._state?(this._state="active",this._sendAcknowledgement(e.id)):this._sendUnexpectedStateError(e.id):"stop"===e.method?"active"!==this._state&&"paused"!==this._state&&"recording"!==this._state||null===this._encoderPort?this._sendUnexpectedStateError(e.id):(this._stop(this._encoderPort),this._sendAcknowledgement(e.id)):"number"==typeof e.id&&this.port.postMessage({error:{code:-32601,message:"The requested method is not supported."},id:e.id})}}process([e]){if("inactive"===this._state||"paused"===this._state)return!0;if("active"===this._state){if(void 0===e)throw new Error("No channelData was received for the first input.");if(0===e.length)return!0;this._state="recording"}if("recording"===this._state&&null!==this._encoderPort){if(void 0===e)throw new Error("No channelData was received for the first input.");return 0===e.length?this._encoderPort.postMessage(Array.from({length:this._numberOfChannels},()=>128)):(this._encoderPort.postMessage(e,e.map(({buffer:e})=>e)),this._numberOfChannels=e.length),!0}return!1}_sendAcknowledgement(e){this.port.postMessage({id:e,result:null})}_sendUnexpectedStateError(e){this.port.postMessage({error:{code:-32603,message:"The internal state does not allow to process the given message."},id:e})}_stop(e){e.postMessage([]),e.close(),this._encoderPort=null,this._state="stopped"}}e.parameterDescriptors=[],registerProcessor("recorder-audio-worklet-processor",e)})();',Cr=vr(Blob,URL,Ar),Tr=Er(_r,yr(g),Ht,br),kt=(e,t,n)=>({endTime:t,insertTime:n,type:"exponentialRampToValue",value:e}),It=(e,t,n)=>({endTime:t,insertTime:n,type:"linearRampToValue",value:e}),Ke=(e,t)=>({startTime:t,type:"setValue",value:e}),Zt=(e,t,n)=>({duration:n,startTime:t,type:"setValueCurve",values:e}),Kt=(e,t,{startTime:n,target:r,timeConstant:o})=>r+(t-r)*Math.exp((n-e)/o),me=e=>e.type==="exponentialRampToValue",Re=e=>e.type==="linearRampToValue",re=e=>me(e)||Re(e),ct=e=>e.type==="setValue",J=e=>e.type==="setValueCurve",Le=(e,t,n,r)=>{const o=e[t];return o===void 0?r:re(o)||ct(o)?o.value:J(o)?o.values[o.values.length-1]:Kt(n,Le(e,t-1,o.startTime,r),o)},St=(e,t,n,r,o)=>n===void 0?[r.insertTime,o]:re(n)?[n.endTime,n.value]:ct(n)?[n.startTime,n.value]:J(n)?[n.startTime+n.duration,n.values[n.values.length-1]]:[n.startTime,Le(e,t-1,n.startTime,o)],Qe=e=>e.type==="cancelAndHold",Je=e=>e.type==="cancelScheduledValues",ne=e=>Qe(e)||Je(e)?e.cancelTime:me(e)||Re(e)?e.endTime:e.startTime,Rt=(e,t,n,{endTime:r,value:o})=>n===o?o:0n+(e-t)/(r-t)*(o-n),Mr=(e,t)=>{const n=Math.floor(t),r=Math.ceil(t);return n===r?e[n]:(1-(t-n))*e[n]+(1-(r-t))*e[r]},Nr=(e,{duration:t,startTime:n,values:r})=>{const o=(e-n)/t*(r.length-1);return Mr(r,o)},Oe=e=>e.type==="setTarget";class Or{constructor(t){this._automationEvents=[],this._currenTime=0,this._defaultValue=t;}[Symbol.iterator](){return this._automationEvents[Symbol.iterator]()}add(t){const n=ne(t);if(Qe(t)||Je(t)){const r=this._automationEvents.findIndex(s=>Je(t)&&J(s)?s.startTime+s.duration>=n:ne(s)>=n),o=this._automationEvents[r];if(r!==-1&&(this._automationEvents=this._automationEvents.slice(0,r)),Qe(t)){const s=this._automationEvents[this._automationEvents.length-1];if(o!==void 0&&re(o)){if(s!==void 0&&Oe(s))throw new Error("The internal list is malformed.");const a=s===void 0?o.insertTime:J(s)?s.startTime+s.duration:ne(s),c=s===void 0?this._defaultValue:J(s)?s.values[s.values.length-1]:s.value,i=me(o)?Rt(n,a,c,o):Lt(n,a,c,o),u=me(o)?kt(i,n,this._currenTime):It(i,n,this._currenTime);this._automationEvents.push(u);}if(s!==void 0&&Oe(s)&&this._automationEvents.push(Ke(this.getValue(n),n)),s!==void 0&&J(s)&&s.startTime+s.duration>n){const a=n-s.startTime,c=(s.values.length-1)/s.duration,i=Math.max(2,1+Math.ceil(a*c)),u=a/(i-1)*c,d=s.values.slice(0,i);if(u<1)for(let l=1;lne(a)>n),o=r===-1?this._automationEvents[this._automationEvents.length-1]:this._automationEvents[r-1];if(o!==void 0&&J(o)&&ne(o)+o.duration>n)return false;const s=me(t)?kt(t.value,t.endTime,this._currenTime):Re(t)?It(t.value,n,this._currenTime):t;if(r===-1)this._automationEvents.push(s);else {if(J(t)&&n+t.duration>ne(this._automationEvents[r]))return false;this._automationEvents.splice(r,0,s);}}return true}flush(t){const n=this._automationEvents.findIndex(r=>ne(r)>t);if(n>1){const r=this._automationEvents.slice(n-1),o=r[0];Oe(o)&&r.unshift(Ke(Le(this._automationEvents,n-2,o.startTime,this._defaultValue),o.startTime)),this._automationEvents=r;}}getValue(t){if(this._automationEvents.length===0)return this._defaultValue;const n=this._automationEvents.findIndex(a=>ne(a)>t),r=this._automationEvents[n],o=(n===-1?this._automationEvents.length:n)-1,s=this._automationEvents[o];if(s!==void 0&&Oe(s)&&(r===void 0||!re(r)||r.insertTime>t))return Kt(t,Le(this._automationEvents,o-1,s.startTime,this._defaultValue),s);if(s!==void 0&&ct(s)&&(r===void 0||!re(r)))return s.value;if(s!==void 0&&J(s)&&(r===void 0||!re(r)||s.startTime+s.duration>t))return t({cancelTime:e,type:"cancelAndHold"}),Ir=e=>({cancelTime:e,type:"cancelScheduledValues"}),Sr=(e,t)=>({endTime:t,type:"exponentialRampToValue",value:e}),Rr=(e,t)=>({endTime:t,type:"linearRampToValue",value:e}),Lr=(e,t,n)=>({startTime:t,target:e,timeConstant:n,type:"setTarget"}),Pr=()=>new DOMException("","AbortError"),Br=e=>(t,n,[r,o,s],a)=>{e(t[o],[n,r,s],c=>c[0]===n&&c[1]===r,a);},Ur=e=>(t,n,r)=>{const o=[];for(let s=0;s(t,n)=>{e.set(t,{activeInputs:new Set,passiveInputs:new WeakMap,renderer:n});},ge=new WeakSet,Qt=new WeakMap,Jt=new WeakMap,en=new WeakMap,tn=new WeakMap,nn=new WeakMap,rn=new WeakMap,et=new WeakMap,tt=new WeakMap,nt=new WeakMap,on={construct(){return on}},Wr=e=>{try{const t=new Proxy(e,on);new t;}catch{return false}return true},Pt=/^import(?:(?:[\s]+[\w]+|(?:[\s]+[\w]+[\s]*,)?[\s]*\{[\s]*[\w]+(?:[\s]+as[\s]+[\w]+)?(?:[\s]*,[\s]*[\w]+(?:[\s]+as[\s]+[\w]+)?)*[\s]*}|(?:[\s]+[\w]+[\s]*,)?[\s]*\*[\s]+as[\s]+[\w]+)[\s]+from)?(?:[\s]*)("([^"\\]|\\.)+"|'([^'\\]|\\.)+')(?:[\s]*);?/,Bt=(e,t)=>{const n=[];let r=e.replace(/^[\s]+/,""),o=r.match(Pt);for(;o!==null;){const s=o[1].slice(1,-1),a=o[0].replace(/([\s]+)?;?$/,"").replace(s,new URL(s,t).toString());n.push(a),r=r.slice(o[0].length).replace(/^[\s]+/,""),o=r.match(Pt);}return [n.join(";"),r]},Ut=e=>{if(e!==void 0&&!Array.isArray(e))throw new TypeError("The parameterDescriptors property of given value for processorCtor is not an array.")},Dt=e=>{if(!Wr(e))throw new TypeError("The given value for processorCtor should be a constructor.");if(e.prototype===null||typeof e.prototype!="object")throw new TypeError("The given value for processorCtor should have a prototype.")},Vr=(e,t,n,r,o,s,a,c,i,u,d,l,w)=>{let m=0;return (h,f,g={credentials:"omit"})=>{const p=d.get(h);if(p!==void 0&&p.has(f))return Promise.resolve();const A=u.get(h);if(A!==void 0){const E=A.get(f);if(E!==void 0)return E}const _=s(h),T=_.audioWorklet===void 0?o(f).then(([E,b])=>{const[y,v]=Bt(E,b),N=`${y};((a,b)=>{(a[b]=a[b]||[]).push((AudioWorkletProcessor,global,registerProcessor,sampleRate,self,window)=>{${v} +})})(window,'_AWGS')`;return n(N)}).then(()=>{const E=w._AWGS.pop();if(E===void 0)throw new SyntaxError;r(_.currentTime,_.sampleRate,()=>E(class{},void 0,(b,y)=>{if(b.trim()==="")throw t();const v=tt.get(_);if(v!==void 0){if(v.has(b))throw t();Dt(y),Ut(y.parameterDescriptors),v.set(b,y);}else Dt(y),Ut(y.parameterDescriptors),tt.set(_,new Map([[b,y]]));},_.sampleRate,void 0,void 0));}):Promise.all([o(f),Promise.resolve(e(l,l))]).then(([[E,b],y])=>{const v=m+1;m=v;const[N,I]=Bt(E,b),W=`${N};((AudioWorkletProcessor,registerProcessor)=>{${I} +})(${y?"AudioWorkletProcessor":"class extends AudioWorkletProcessor {__b=new WeakSet();constructor(){super();(p=>p.postMessage=(q=>(m,t)=>q.call(p,m,t?t.filter(u=>!this.__b.has(u)):t))(p.postMessage))(this.port)}}"},(n,p)=>registerProcessor(n,class extends p{${y?"":"__c = (a) => a.forEach(e=>this.__b.add(e.buffer));"}process(i,o,p){${y?"":"i.forEach(this.__c);o.forEach(this.__c);this.__c(Object.values(p));"}return super.process(i.map(j=>j.some(k=>k.length===0)?[]:j),o,p)}}));registerProcessor('__sac${v}',class extends AudioWorkletProcessor{process(){return !1}})`,B=new Blob([W],{type:"application/javascript; charset=utf-8"}),S=URL.createObjectURL(B);return _.audioWorklet.addModule(S,g).then(()=>{if(c(_))return _;const L=a(_);return L.audioWorklet.addModule(S,g).then(()=>L)}).then(L=>{if(i===null)throw new SyntaxError;try{new i(L,`__sac${v}`);}catch{throw new SyntaxError}}).finally(()=>URL.revokeObjectURL(S))});return A===void 0?u.set(h,new Map([[f,T]])):A.set(f,T),T.then(()=>{const E=d.get(h);E===void 0?d.set(h,new Set([f])):E.add(f);}).finally(()=>{const E=u.get(h);E!==void 0&&E.delete(f);}),T}},K=(e,t)=>{const n=e.get(t);if(n===void 0)throw new Error("A value with the given key could not be found.");return n},Ve=(e,t)=>{const n=Array.from(e).filter(t);if(n.length>1)throw Error("More than one element was found.");if(n.length===0)throw Error("No element was found.");const[r]=n;return e.delete(r),r},sn=(e,t,n,r)=>{const o=K(e,t),s=Ve(o,a=>a[0]===n&&a[1]===r);return o.size===0&&e.delete(t),s},be=e=>K(rn,e),Pe=e=>{if(ge.has(e))throw new Error("The AudioNode is already stored.");ge.add(e),be(e).forEach(t=>t(true));},an=e=>"port"in e,ut=e=>{if(!ge.has(e))throw new Error("The AudioNode is not stored.");ge.delete(e),be(e).forEach(t=>t(false));},rt=(e,t)=>{!an(e)&&t.every(n=>n.size===0)&&ut(e);},xr=(e,t,n,r,o,s,a,c,i,u,d,l,w)=>{const m=new WeakMap;return (h,f,g,p,A)=>{const{activeInputs:_,passiveInputs:T}=s(f),{outputs:E}=s(h),b=c(h),y=v=>{const N=i(f),I=i(h);if(v){const M=sn(T,h,g,p);e(_,h,M,false),!A&&!l(h)&&n(I,N,g,p),w(f)&&Pe(f);}else {const M=r(_,h,g,p);t(T,p,M,false),!A&&!l(h)&&o(I,N,g,p);const U=a(f);if(U===0)d(f)&&rt(f,_);else {const R=m.get(f);R!==void 0&&clearTimeout(R),m.set(f,setTimeout(()=>{d(f)&&rt(f,_);},U*1e3));}}};return u(E,[f,g,p],v=>v[0]===f&&v[1]===g&&v[2]===p,true)?(b.add(y),d(h)?e(_,h,[g,p,y],true):t(T,p,[h,g,y],true),true):false}},Fr=e=>(t,n,[r,o,s],a)=>{const c=t.get(r);c===void 0?t.set(r,new Set([[o,n,s]])):e(c,[o,n,s],i=>i[0]===o&&i[1]===n,a);},jr=e=>(t,n)=>{const r=e(t,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});n.connect(r).connect(t.destination);const o=()=>{n.removeEventListener("ended",o),n.disconnect(r),r.disconnect();};n.addEventListener("ended",o);},Gr=e=>(t,n)=>{e(t).add(n);},cn=(e,t)=>e.context===t,Wt=e=>{try{e.copyToChannel(new Float32Array(1),0,-1);}catch{return false}return true},ue=()=>new DOMException("","IndexSizeError"),$r=e=>{e.getChannelData=(t=>n=>{try{return t.call(e,n)}catch(r){throw r.code===12?ue():r}})(e.getChannelData);},qr={numberOfChannels:1},zr=(e,t,n,r,o,s,a,c)=>{let i=null;return class un{constructor(d){if(o===null)throw new Error("Missing the native OfflineAudioContext constructor.");const{length:l,numberOfChannels:w,sampleRate:m}={...qr,...d};i===null&&(i=new o(1,1,44100));const h=r!==null&&t(s,s)?new r({length:l,numberOfChannels:w,sampleRate:m}):i.createBuffer(w,l,m);if(h.numberOfChannels===0)throw n();return typeof h.copyFromChannel!="function"?(a(h),$r(h)):t(Wt,()=>Wt(h))||c(h),e.add(h),h}static[Symbol.hasInstance](d){return d!==null&&typeof d=="object"&&Object.getPrototypeOf(d)===un.prototype||e.has(d)}}},xe=-34028234663852886e22,lt=-xe,ae=e=>ge.has(e),Xr={buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:false,loopEnd:0,loopStart:0,playbackRate:1},Yr=(e,t,n,r,o,s,a,c)=>class extends e{constructor(u,d){const l=s(u),w={...Xr,...d},m=o(l,w),h=a(l),f=h?t():null;super(u,false,m,f),this._audioBufferSourceNodeRenderer=f,this._isBufferNullified=false,this._isBufferSet=w.buffer!==null,this._nativeAudioBufferSourceNode=m,this._onended=null,this._playbackRate=n(this,h,m.playbackRate,lt,xe);}get buffer(){return this._isBufferNullified?null:this._nativeAudioBufferSourceNode.buffer}set buffer(u){if(this._nativeAudioBufferSourceNode.buffer=u,u!==null){if(this._isBufferSet)throw r();this._isBufferSet=true;}}get loop(){return this._nativeAudioBufferSourceNode.loop}set loop(u){this._nativeAudioBufferSourceNode.loop=u;}get loopEnd(){return this._nativeAudioBufferSourceNode.loopEnd}set loopEnd(u){this._nativeAudioBufferSourceNode.loopEnd=u;}get loopStart(){return this._nativeAudioBufferSourceNode.loopStart}set loopStart(u){this._nativeAudioBufferSourceNode.loopStart=u;}get onended(){return this._onended}set onended(u){const d=typeof u=="function"?c(this,u):null;this._nativeAudioBufferSourceNode.onended=d;const l=this._nativeAudioBufferSourceNode.onended;this._onended=l!==null&&l===d?u:l;}get playbackRate(){return this._playbackRate}start(u=0,d=0,l){if(this._nativeAudioBufferSourceNode.start(u,d,l),this._audioBufferSourceNodeRenderer!==null&&(this._audioBufferSourceNodeRenderer.start=l===void 0?[u,d]:[u,d,l]),this.context.state!=="closed"){Pe(this);const w=()=>{this._nativeAudioBufferSourceNode.removeEventListener("ended",w),ae(this)&&ut(this);};this._nativeAudioBufferSourceNode.addEventListener("ended",w);}}stop(u=0){this._nativeAudioBufferSourceNode.stop(u),this._audioBufferSourceNodeRenderer!==null&&(this._audioBufferSourceNodeRenderer.stop=u);}},Hr=(e,t,n,r,o)=>()=>{const s=new WeakMap;let a=null,c=null;const i=async(u,d)=>{let l=n(u);const w=cn(l,d);if(!w){const m={buffer:l.buffer,channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,loop:l.loop,loopEnd:l.loopEnd,loopStart:l.loopStart,playbackRate:l.playbackRate.value};l=t(d,m),a!==null&&l.start(...a),c!==null&&l.stop(c);}return s.set(d,l),w?await e(d,u.playbackRate,l.playbackRate):await r(d,u.playbackRate,l.playbackRate),await o(u,d,l),l};return {set start(u){a=u;},set stop(u){c=u;},render(u,d){const l=s.get(d);return l!==void 0?Promise.resolve(l):i(u,d)}}},Zr=e=>"playbackRate"in e,Kr=e=>"frequency"in e&&"gain"in e,Qr=e=>"offset"in e,Jr=e=>!("frequency"in e)&&"gain"in e,eo=e=>"detune"in e&&"frequency"in e&&!("gain"in e),to=e=>"pan"in e,z=e=>K(Qt,e),Ae=e=>K(en,e),ot=(e,t)=>{const{activeInputs:n}=z(e);n.forEach(o=>o.forEach(([s])=>{t.includes(e)||ot(s,[...t,e]);}));const r=Zr(e)?[e.playbackRate]:an(e)?Array.from(e.parameters.values()):Kr(e)?[e.Q,e.detune,e.frequency,e.gain]:Qr(e)?[e.offset]:Jr(e)?[e.gain]:eo(e)?[e.detune,e.frequency]:to(e)?[e.pan]:[];for(const o of r){const s=Ae(o);s!==void 0&&s.activeInputs.forEach(([a])=>ot(a,t));}ae(e)&&ut(e);},no=e=>{ot(e.destination,[]);},ro=e=>e===void 0||typeof e=="number"||typeof e=="string"&&(e==="balanced"||e==="interactive"||e==="playback"),oo=(e,t,n,r,o,s,a,c)=>class extends e{constructor(u,d){const l=s(u),w=a(l),m=o(l,d,w),h=w?t(c):null;super(u,false,m,h),this._isNodeOfNativeOfflineAudioContext=w,this._nativeAudioDestinationNode=m;}get channelCount(){return this._nativeAudioDestinationNode.channelCount}set channelCount(u){if(this._isNodeOfNativeOfflineAudioContext)throw r();if(u>this._nativeAudioDestinationNode.maxChannelCount)throw n();this._nativeAudioDestinationNode.channelCount=u;}get channelCountMode(){return this._nativeAudioDestinationNode.channelCountMode}set channelCountMode(u){if(this._isNodeOfNativeOfflineAudioContext)throw r();this._nativeAudioDestinationNode.channelCountMode=u;}get maxChannelCount(){return this._nativeAudioDestinationNode.maxChannelCount}},so=e=>{const t=new WeakMap,n=async(r,o)=>{const s=o.destination;return t.set(o,s),await e(r,o,s),s};return {render(r,o){const s=t.get(o);return s!==void 0?Promise.resolve(s):n(r,o)}}},ao=(e,t,n,r,o,s,a,c)=>(i,u)=>{const d=u.listener,l=()=>{const E=new Float32Array(1),b=t(u,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:9}),y=a(u);let v=false,N=[0,0,-1,0,1,0],I=[0,0,0];const M=()=>{if(v)return;v=true;const B=r(u,256,9,0);B.onaudioprocess=({inputBuffer:S})=>{const L=[s(S,E,0),s(S,E,1),s(S,E,2),s(S,E,3),s(S,E,4),s(S,E,5)];L.some((O,P)=>O!==N[P])&&(d.setOrientation(...L),N=L);const D=[s(S,E,6),s(S,E,7),s(S,E,8)];D.some((O,P)=>O!==I[P])&&(d.setPosition(...D),I=D);},b.connect(B);},U=B=>S=>{S!==N[B]&&(N[B]=S,d.setOrientation(...N));},R=B=>S=>{S!==I[B]&&(I[B]=S,d.setPosition(...I));},W=(B,S,L)=>{const D=n(u,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:S});D.connect(b,0,B),D.start(),Object.defineProperty(D.offset,"defaultValue",{get(){return S}});const O=e({context:i},y,D.offset,lt,xe);return c(O,"value",P=>()=>P.call(O),P=>x=>{try{P.call(O,x);}catch($){if($.code!==9)throw $}M(),y&&L(x);}),O.cancelAndHoldAtTime=(P=>y?()=>{throw o()}:(...x)=>{const $=P.apply(O,x);return M(),$})(O.cancelAndHoldAtTime),O.cancelScheduledValues=(P=>y?()=>{throw o()}:(...x)=>{const $=P.apply(O,x);return M(),$})(O.cancelScheduledValues),O.exponentialRampToValueAtTime=(P=>y?()=>{throw o()}:(...x)=>{const $=P.apply(O,x);return M(),$})(O.exponentialRampToValueAtTime),O.linearRampToValueAtTime=(P=>y?()=>{throw o()}:(...x)=>{const $=P.apply(O,x);return M(),$})(O.linearRampToValueAtTime),O.setTargetAtTime=(P=>y?()=>{throw o()}:(...x)=>{const $=P.apply(O,x);return M(),$})(O.setTargetAtTime),O.setValueAtTime=(P=>y?()=>{throw o()}:(...x)=>{const $=P.apply(O,x);return M(),$})(O.setValueAtTime),O.setValueCurveAtTime=(P=>y?()=>{throw o()}:(...x)=>{const $=P.apply(O,x);return M(),$})(O.setValueCurveAtTime),O};return {forwardX:W(0,0,U(0)),forwardY:W(1,0,U(1)),forwardZ:W(2,-1,U(2)),positionX:W(6,0,R(0)),positionY:W(7,0,R(1)),positionZ:W(8,0,R(2)),upX:W(3,0,U(3)),upY:W(4,1,U(4)),upZ:W(5,0,U(5))}},{forwardX:w,forwardY:m,forwardZ:h,positionX:f,positionY:g,positionZ:p,upX:A,upY:_,upZ:T}=d.forwardX===void 0?l():d;return {get forwardX(){return w},get forwardY(){return m},get forwardZ(){return h},get positionX(){return f},get positionY(){return g},get positionZ(){return p},get upX(){return A},get upY(){return _},get upZ(){return T}}},Be=e=>"context"in e,Ce=e=>Be(e[0]),le=(e,t,n,r)=>{for(const o of e)if(n(o)){if(r)return false;throw Error("The set contains at least one similar element.")}return e.add(t),true},Vt=(e,t,[n,r],o)=>{le(e,[t,n,r],s=>s[0]===t&&s[1]===n,o);},xt=(e,[t,n,r],o)=>{const s=e.get(t);s===void 0?e.set(t,new Set([[n,r]])):le(s,[n,r],a=>a[0]===n,o);},ln=e=>"inputs"in e,st=(e,t,n,r)=>{if(ln(t)){const o=t.inputs[r];return e.connect(o,n,0),[o,n,0]}return e.connect(t,n,r),[t,n,r]},dn=(e,t,n)=>{for(const r of e)if(r[0]===t&&r[1]===n)return e.delete(r),r;return null},io=(e,t,n)=>Ve(e,r=>r[0]===t&&r[1]===n),fn=(e,t)=>{if(!be(e).delete(t))throw new Error("Missing the expected event listener.")},hn=(e,t,n)=>{const r=K(e,t),o=Ve(r,s=>s[0]===n);return r.size===0&&e.delete(t),o},at=(e,t,n,r)=>{ln(t)?e.disconnect(t.inputs[r],n,0):e.disconnect(t,n,r);},H=e=>K(Jt,e),ye=e=>K(tn,e),ie=e=>et.has(e),Ie=e=>!ge.has(e),Ft=(e,t)=>new Promise(n=>{if(t!==null)n(true);else {const r=e.createScriptProcessor(256,1,1),o=e.createGain(),s=e.createBuffer(1,2,44100),a=s.getChannelData(0);a[0]=1,a[1]=1;const c=e.createBufferSource();c.buffer=s,c.loop=true,c.connect(r).connect(e.destination),c.connect(o),c.disconnect(o),r.onaudioprocess=i=>{const u=i.inputBuffer.getChannelData(0);Array.prototype.some.call(u,d=>d===1)?n(true):n(false),c.stop(),r.onaudioprocess=null,c.disconnect(r),r.disconnect(e.destination);},c.start();}}),He=(e,t)=>{const n=new Map;for(const r of e)for(const o of r){const s=n.get(o);n.set(o,s===void 0?1:s+1);}n.forEach((r,o)=>t(o,r));},Ue=e=>"context"in e,co=e=>{const t=new Map;e.connect=(n=>(r,o=0,s=0)=>{const a=Ue(r)?n(r,o,s):n(r,o),c=t.get(r);return c===void 0?t.set(r,[{input:s,output:o}]):c.every(i=>i.input!==s||i.output!==o)&&c.push({input:s,output:o}),a})(e.connect.bind(e)),e.disconnect=(n=>(r,o,s)=>{if(n.apply(e),r===void 0)t.clear();else if(typeof r=="number")for(const[a,c]of t){const i=c.filter(u=>u.output!==r);i.length===0?t.delete(a):t.set(a,i);}else if(t.has(r))if(o===void 0)t.delete(r);else {const a=t.get(r);if(a!==void 0){const c=a.filter(i=>i.output!==o&&(i.input!==s||s===void 0));c.length===0?t.delete(r):t.set(r,c);}}for(const[a,c]of t)c.forEach(i=>{Ue(a)?e.connect(a,i.output,i.input):e.connect(a,i.output);});})(e.disconnect);},uo=(e,t,n,r)=>{const{activeInputs:o,passiveInputs:s}=Ae(t),{outputs:a}=z(e),c=be(e),i=u=>{const d=H(e),l=ye(t);if(u){const w=hn(s,e,n);Vt(o,e,w,false),!r&&!ie(e)&&d.connect(l,n);}else {const w=io(o,e,n);xt(s,w,false),!r&&!ie(e)&&d.disconnect(l,n);}};return le(a,[t,n],u=>u[0]===t&&u[1]===n,true)?(c.add(i),ae(e)?Vt(o,e,[n,i],true):xt(s,[e,n,i],true),true):false},lo=(e,t,n,r)=>{const{activeInputs:o,passiveInputs:s}=z(t),a=dn(o[r],e,n);return a===null?[sn(s,e,n,r)[2],false]:[a[2],true]},fo=(e,t,n)=>{const{activeInputs:r,passiveInputs:o}=Ae(t),s=dn(r,e,n);return s===null?[hn(o,e,n)[1],false]:[s[2],true]},dt=(e,t,n,r,o)=>{const[s,a]=lo(e,n,r,o);if(s!==null&&(fn(e,s),a&&!t&&!ie(e)&&at(H(e),H(n),r,o)),ae(n)){const{activeInputs:c}=z(n);rt(n,c);}},ft=(e,t,n,r)=>{const[o,s]=fo(e,n,r);o!==null&&(fn(e,o),s&&!t&&!ie(e)&&H(e).disconnect(ye(n),r));},ho=(e,t)=>{const n=z(e),r=[];for(const o of n.outputs)Ce(o)?dt(e,t,...o):ft(e,t,...o),r.push(o[0]);return n.outputs.clear(),r},po=(e,t,n)=>{const r=z(e),o=[];for(const s of r.outputs)s[1]===n&&(Ce(s)?dt(e,t,...s):ft(e,t,...s),o.push(s[0]),r.outputs.delete(s));return o},mo=(e,t,n,r,o)=>{const s=z(e);return Array.from(s.outputs).filter(a=>a[0]===n&&(r===void 0||a[1]===r)&&(o===void 0||a[2]===o)).map(a=>(Ce(a)?dt(e,t,...a):ft(e,t,...a),s.outputs.delete(a),a[0]))},go=(e,t,n,r,o,s,a,c,i,u,d,l,w,m,h,f)=>class extends u{constructor(p,A,_,T){super(_),this._context=p,this._nativeAudioNode=_;const E=d(p);l(E)&&n(Ft,()=>Ft(E,f))!==true&&co(_),Jt.set(this,_),rn.set(this,new Set),p.state!=="closed"&&A&&Pe(this),e(this,T,_);}get channelCount(){return this._nativeAudioNode.channelCount}set channelCount(p){this._nativeAudioNode.channelCount=p;}get channelCountMode(){return this._nativeAudioNode.channelCountMode}set channelCountMode(p){this._nativeAudioNode.channelCountMode=p;}get channelInterpretation(){return this._nativeAudioNode.channelInterpretation}set channelInterpretation(p){this._nativeAudioNode.channelInterpretation=p;}get context(){return this._context}get numberOfInputs(){return this._nativeAudioNode.numberOfInputs}get numberOfOutputs(){return this._nativeAudioNode.numberOfOutputs}connect(p,A=0,_=0){if(A<0||A>=this._nativeAudioNode.numberOfOutputs)throw o();const T=d(this._context),E=h(T);if(w(p)||m(p))throw s();if(Be(p)){const v=H(p);try{const I=st(this._nativeAudioNode,v,A,_),M=Ie(this);(E||M)&&this._nativeAudioNode.disconnect(...I),this.context.state!=="closed"&&!M&&Ie(p)&&Pe(p);}catch(I){throw I.code===12?s():I}if(t(this,p,A,_,E)){const I=i([this],p);He(I,r(E));}return p}const b=ye(p);if(b.name==="playbackRate"&&b.maxValue===1024)throw a();try{this._nativeAudioNode.connect(b,A),(E||Ie(this))&&this._nativeAudioNode.disconnect(b,A);}catch(v){throw v.code===12?s():v}if(uo(this,p,A,E)){const v=i([this],p);He(v,r(E));}}disconnect(p,A,_){let T;const E=d(this._context),b=h(E);if(p===void 0)T=ho(this,b);else if(typeof p=="number"){if(p<0||p>=this.numberOfOutputs)throw o();T=po(this,b,p);}else {if(A!==void 0&&(A<0||A>=this.numberOfOutputs)||Be(p)&&_!==void 0&&(_<0||_>=p.numberOfInputs))throw o();if(T=mo(this,b,p,A,_),T.length===0)throw s()}for(const y of T){const v=i([this],y);He(v,c);}}},wo=(e,t,n,r,o,s,a,c,i,u,d,l,w)=>(m,h,f,g=null,p=null)=>{const A=f.value,_=new Or(A),T=h?r(_):null,E={get defaultValue(){return A},get maxValue(){return g===null?f.maxValue:g},get minValue(){return p===null?f.minValue:p},get value(){return f.value},set value(b){f.value=b,E.setValueAtTime(b,m.context.currentTime);},cancelAndHoldAtTime(b){if(typeof f.cancelAndHoldAtTime=="function")T===null&&_.flush(m.context.currentTime),_.add(o(b)),f.cancelAndHoldAtTime(b);else {const y=Array.from(_).pop();T===null&&_.flush(m.context.currentTime),_.add(o(b));const v=Array.from(_).pop();f.cancelScheduledValues(b),y!==v&&v!==void 0&&(v.type==="exponentialRampToValue"?f.exponentialRampToValueAtTime(v.value,v.endTime):v.type==="linearRampToValue"?f.linearRampToValueAtTime(v.value,v.endTime):v.type==="setValue"?f.setValueAtTime(v.value,v.startTime):v.type==="setValueCurve"&&f.setValueCurveAtTime(v.values,v.startTime,v.duration));}return E},cancelScheduledValues(b){return T===null&&_.flush(m.context.currentTime),_.add(s(b)),f.cancelScheduledValues(b),E},exponentialRampToValueAtTime(b,y){if(b===0)throw new RangeError;if(!Number.isFinite(y)||y<0)throw new RangeError;const v=m.context.currentTime;return T===null&&_.flush(v),Array.from(_).length===0&&(_.add(u(A,v)),f.setValueAtTime(A,v)),_.add(a(b,y)),f.exponentialRampToValueAtTime(b,y),E},linearRampToValueAtTime(b,y){const v=m.context.currentTime;return T===null&&_.flush(v),Array.from(_).length===0&&(_.add(u(A,v)),f.setValueAtTime(A,v)),_.add(c(b,y)),f.linearRampToValueAtTime(b,y),E},setTargetAtTime(b,y,v){return T===null&&_.flush(m.context.currentTime),_.add(i(b,y,v)),f.setTargetAtTime(b,y,v),E},setValueAtTime(b,y){return T===null&&_.flush(m.context.currentTime),_.add(u(b,y)),f.setValueAtTime(b,y),E},setValueCurveAtTime(b,y,v){const N=b instanceof Float32Array?b:new Float32Array(b);if(l!==null&&l.name==="webkitAudioContext"){const I=y+v,M=m.context.sampleRate,U=Math.ceil(y*M),R=Math.floor(I*M),W=R-U,B=new Float32Array(W);for(let L=0;L({replay(t){for(const n of e)if(n.type==="exponentialRampToValue"){const{endTime:r,value:o}=n;t.exponentialRampToValueAtTime(o,r);}else if(n.type==="linearRampToValue"){const{endTime:r,value:o}=n;t.linearRampToValueAtTime(o,r);}else if(n.type==="setTarget"){const{startTime:r,target:o,timeConstant:s}=n;t.setTargetAtTime(o,r,s);}else if(n.type==="setValue"){const{startTime:r,value:o}=n;t.setValueAtTime(o,r);}else if(n.type==="setValueCurve"){const{duration:r,startTime:o,values:s}=n;t.setValueCurveAtTime(s,o,r);}else throw new Error("Can't apply an unknown automation.")}});class pn{constructor(t){this._map=new Map(t);}get size(){return this._map.size}entries(){return this._map.entries()}forEach(t,n=null){return this._map.forEach((r,o)=>t.call(n,r,o,this))}get(t){return this._map.get(t)}has(t){return this._map.has(t)}keys(){return this._map.keys()}values(){return this._map.values()}}const _o={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:1,numberOfOutputs:1,parameterData:{},processorOptions:{}},yo=(e,t,n,r,o,s,a,c,i,u,d,l,w,m)=>class extends t{constructor(f,g,p){var A;const _=c(f),T=i(_),E=d({..._o,...p});w(E);const b=tt.get(_),y=b?.get(g),v=T||_.state!=="closed"?_:(A=a(_))!==null&&A!==void 0?A:_,N=o(v,T?null:f.baseLatency,u,g,y,E),I=T?r(g,E,y):null;super(f,true,N,I);const M=[];N.parameters.forEach((R,W)=>{const B=n(this,T,R);M.push([W,B]);}),this._nativeAudioWorkletNode=N,this._onprocessorerror=null,this._parameters=new pn(M),T&&e(_,this);const{activeInputs:U}=s(this);l(N,U);}get onprocessorerror(){return this._onprocessorerror}set onprocessorerror(f){const g=typeof f=="function"?m(this,f):null;this._nativeAudioWorkletNode.onprocessorerror=g;const p=this._nativeAudioWorkletNode.onprocessorerror;this._onprocessorerror=p!==null&&p===g?f:p;}get parameters(){return this._parameters===null?this._nativeAudioWorkletNode.parameters:this._parameters}get port(){return this._nativeAudioWorkletNode.port}};function De(e,t,n,r,o){if(typeof e.copyFromChannel=="function")t[n].byteLength===0&&(t[n]=new Float32Array(128)),e.copyFromChannel(t[n],r,o);else {const s=e.getChannelData(r);if(t[n].byteLength===0)t[n]=s.slice(o,o+128);else {const a=new Float32Array(s.buffer,o*Float32Array.BYTES_PER_ELEMENT,128);t[n].set(a);}}}const mn=(e,t,n,r,o)=>{typeof e.copyToChannel=="function"?t[n].byteLength!==0&&e.copyToChannel(t[n],r,o):t[n].byteLength!==0&&e.getChannelData(r).set(t[n],o);},We=(e,t)=>{const n=[];for(let r=0;r{const n=K(nt,e),r=H(t);return K(n,r)},bo=async(e,t,n,r,o,s,a)=>{const c=t===null?Math.ceil(e.context.length/128)*128:t.length,i=r.channelCount*r.numberOfInputs,u=o.reduce((g,p)=>g+p,0),d=u===0?null:n.createBuffer(u,c,n.sampleRate);if(s===void 0)throw new Error("Missing the processor constructor.");const l=z(e),w=await Eo(n,e),m=We(r.numberOfInputs,r.channelCount),h=We(r.numberOfOutputs,o),f=Array.from(e.parameters.keys()).reduce((g,p)=>({...g,[p]:new Float32Array(128)}),{});for(let g=0;g0&&t!==null)for(let p=0;p{De(t,f,p,i+A,g);});for(let p=0;pl.activeInputs[T].size===0?[]:_),A=a(g/n.sampleRate,n.sampleRate,()=>w.process(p,h,f));if(d!==null)for(let _=0,T=0;_(g,p,A)=>{const _=new WeakMap;let T=null;const E=async(b,y)=>{let v=d(b),N=null;const I=cn(v,y),M=Array.isArray(p.outputChannelCount)?p.outputChannelCount:Array.from(p.outputChannelCount);if(l===null){const U=M.reduce((S,L)=>S+L,0),R=o(y,{channelCount:Math.max(1,U),channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:Math.max(1,U)}),W=[];for(let S=0;S{const x=new w(O,Math.ceil(b.context.length/128)*128,y.sampleRate),$=[],fe=[];for(let j=0;j{const X=s(x,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:j.value});return await m(x,j,X.offset),X})),pe=r(x,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:Math.max(1,L+D)});for(let j=0;jh(b,x,j))),f(x)})(),y,p,M,A,u);}const U=await T,R=n(y,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:false,loopEnd:0,loopStart:0,playbackRate:1}),[W,B,S]=N;U!==null&&(R.buffer=U,R.start(0)),R.connect(W);for(let L=0,D=0;L(n,r)=>{const o=t.get(n);if(o!==void 0)return o;const s=e.get(n);if(s!==void 0)return s;try{const a=r();return a instanceof Promise?(e.set(n,a),a.catch(()=>!1).then(c=>(e.delete(n),t.set(n,c),c))):(t.set(n,a),a)}catch{return t.set(n,false),false}},To=e=>(t,n,r)=>e(n,t,r),Mo=e=>(t,n,r=0,o=0)=>{const s=t[r];if(s===void 0)throw e();return Ue(n)?s.connect(n,0,o):s.connect(n,0)},No=e=>t=>(e[0]=t,e[0]),Oo=(e,t,n,r,o,s,a,c)=>(i,u)=>{const d=t.get(i);if(d===void 0)throw new Error("Missing the expected cycle count.");const l=s(i.context),w=c(l);if(d===u){if(t.delete(i),!w&&a(i)){const m=r(i),{outputs:h}=n(i);for(const f of h)if(Ce(f)){const g=r(f[0]);e(m,g,f[1],f[2]);}else {const g=o(f[0]);m.connect(g,f[1]);}}}else t.set(i,d-u);},ko=e=>(t,n,r,o)=>e(t[o],s=>s[0]===n&&s[1]===r),Io=e=>(t,n)=>{e(t).delete(n);},So=e=>"delayTime"in e,Ro=(e,t,n)=>function r(o,s){const a=Be(s)?s:n(e,s);if(So(a))return [];if(o[0]===a)return [o];if(o.includes(a))return [];const{outputs:c}=t(a);return Array.from(c).map(i=>r([...o,a],i[0])).reduce((i,u)=>i.concat(u),[])},ke=(e,t,n)=>{const r=t[n];if(r===void 0)throw e();return r},Lo=e=>(t,n=void 0,r=void 0,o=0)=>n===void 0?t.forEach(s=>s.disconnect()):typeof n=="number"?ke(e,t,n).disconnect():Ue(n)?r===void 0?t.forEach(s=>s.disconnect(n)):o===void 0?ke(e,t,r).disconnect(n,0):ke(e,t,r).disconnect(n,0,o):r===void 0?t.forEach(s=>s.disconnect(n)):ke(e,t,r).disconnect(n,0),Po=e=>t=>new Promise((n,r)=>{if(e===null){r(new SyntaxError);return}const o=e.document.head;if(o===null)r(new SyntaxError);else {const s=e.document.createElement("script"),a=new Blob([t],{type:"application/javascript"}),c=URL.createObjectURL(a),i=e.onerror,u=()=>{e.onerror=i,URL.revokeObjectURL(c);};e.onerror=(d,l,w,m,h)=>{if(l===c||l===e.location.href&&w===1&&m===1)return u(),r(h),false;if(i!==null)return i(d,l,w,m,h)},s.onerror=()=>{u(),r(new SyntaxError);},s.onload=()=>{u(),n();},s.src=c,s.type="module",o.appendChild(s);}}),Bo=e=>class{constructor(n){this._nativeEventTarget=n,this._listeners=new WeakMap;}addEventListener(n,r,o){if(r!==null){let s=this._listeners.get(r);s===void 0&&(s=e(this,r),typeof r=="function"&&this._listeners.set(r,s)),this._nativeEventTarget.addEventListener(n,s,o);}}dispatchEvent(n){return this._nativeEventTarget.dispatchEvent(n)}removeEventListener(n,r,o){const s=r===null?void 0:this._listeners.get(r);this._nativeEventTarget.removeEventListener(n,s===void 0?null:s,o);}},Uo=e=>(t,n,r)=>{Object.defineProperties(e,{currentFrame:{configurable:true,get(){return Math.round(t*n)}},currentTime:{configurable:true,get(){return t}}});try{return r()}finally{e!==null&&(delete e.currentFrame,delete e.currentTime);}},Do=e=>async t=>{try{const n=await fetch(t);if(n.ok)return [await n.text(),n.url]}catch{}throw e()},Wo=(e,t)=>n=>t(e,n),Vo=e=>t=>{const n=e(t);if(n.renderer===null)throw new Error("Missing the renderer of the given AudioNode in the audio graph.");return n.renderer},xo=e=>t=>{var n;return (n=e.get(t))!==null&&n!==void 0?n:0},Fo=e=>t=>{const n=e(t);if(n.renderer===null)throw new Error("Missing the renderer of the given AudioParam in the audio graph.");return n.renderer},jo=e=>t=>e.get(t),Z=()=>new DOMException("","InvalidStateError"),Go=e=>t=>{const n=e.get(t);if(n===void 0)throw Z();return n},$o=(e,t)=>n=>{let r=e.get(n);if(r!==void 0)return r;if(t===null)throw new Error("Missing the native OfflineAudioContext constructor.");return r=new t(1,1,44100),e.set(n,r),r},qo=e=>t=>{const n=e.get(t);if(n===void 0)throw new Error("The context has no set of AudioWorkletNodes.");return n},zo=()=>new DOMException("","InvalidAccessError"),Xo=(e,t,n,r,o,s)=>a=>(c,i)=>{const u=e.get(c);if(u===void 0){if(!a&&s(c)){const d=r(c),{outputs:l}=n(c);for(const w of l)if(Ce(w)){const m=r(w[0]);t(d,m,w[1],w[2]);}else {const m=o(w[0]);d.disconnect(m,w[1]);}}e.set(c,i);}else e.set(c,u+i);},Yo=e=>t=>e!==null&&t instanceof e,Ho=e=>t=>e!==null&&typeof e.AudioNode=="function"&&t instanceof e.AudioNode,Zo=e=>t=>e!==null&&typeof e.AudioParam=="function"&&t instanceof e.AudioParam,Ko=e=>t=>e!==null&&t instanceof e,Qo=e=>e!==null&&e.isSecureContext,Jo=(e,t,n,r)=>class extends e{constructor(s,a){const c=n(s),i=t(c,a);if(r(c))throw new TypeError;super(s,true,i,null),this._nativeMediaStreamAudioSourceNode=i;}get mediaStream(){return this._nativeMediaStreamAudioSourceNode.mediaStream}},es=(e,t,n,r,o)=>class extends r{constructor(a={}){if(o===null)throw new Error("Missing the native AudioContext constructor.");let c;try{c=new o(a);}catch(d){throw d.code===12&&d.message==="sampleRate is not in range"?t():d}if(c===null)throw n();if(!ro(a.latencyHint))throw new TypeError(`The provided value '${a.latencyHint}' is not a valid enum value of type AudioContextLatencyCategory.`);if(a.sampleRate!==void 0&&c.sampleRate!==a.sampleRate)throw t();super(c,2);const{latencyHint:i}=a,{sampleRate:u}=c;if(this._baseLatency=typeof c.baseLatency=="number"?c.baseLatency:i==="balanced"?512/u:i==="interactive"||i===void 0?256/u:i==="playback"?1024/u:Math.max(2,Math.min(128,Math.round(i*u/128)))*128/u,this._nativeAudioContext=c,o.name==="webkitAudioContext"?(this._nativeGainNode=c.createGain(),this._nativeOscillatorNode=c.createOscillator(),this._nativeGainNode.gain.value=1e-37,this._nativeOscillatorNode.connect(this._nativeGainNode).connect(c.destination),this._nativeOscillatorNode.start()):(this._nativeGainNode=null,this._nativeOscillatorNode=null),this._state=null,c.state==="running"){this._state="suspended";const d=()=>{this._state==="suspended"&&(this._state=null),c.removeEventListener("statechange",d);};c.addEventListener("statechange",d);}}get baseLatency(){return this._baseLatency}get state(){return this._state!==null?this._state:this._nativeAudioContext.state}close(){return this.state==="closed"?this._nativeAudioContext.close().then(()=>{throw e()}):(this._state==="suspended"&&(this._state=null),this._nativeAudioContext.close().then(()=>{this._nativeGainNode!==null&&this._nativeOscillatorNode!==null&&(this._nativeOscillatorNode.stop(),this._nativeGainNode.disconnect(),this._nativeOscillatorNode.disconnect()),no(this);}))}resume(){return this._state==="suspended"?new Promise((a,c)=>{const i=()=>{this._nativeAudioContext.removeEventListener("statechange",i),this._nativeAudioContext.state==="running"?a():this.resume().then(a,c);};this._nativeAudioContext.addEventListener("statechange",i);}):this._nativeAudioContext.resume().catch(a=>{throw a===void 0||a.code===15?e():a})}suspend(){return this._nativeAudioContext.suspend().catch(a=>{throw a===void 0?e():a})}},ts=(e,t,n,r,o,s)=>class extends n{constructor(c,i){super(c),this._nativeContext=c,nn.set(this,c),r(c)&&o.set(c,new Set),this._destination=new e(this,i),this._listener=t(this,c),this._onstatechange=null;}get currentTime(){return this._nativeContext.currentTime}get destination(){return this._destination}get listener(){return this._listener}get onstatechange(){return this._onstatechange}set onstatechange(c){const i=typeof c=="function"?s(this,c):null;this._nativeContext.onstatechange=i;const u=this._nativeContext.onstatechange;this._onstatechange=u!==null&&u===i?c:u;}get sampleRate(){return this._nativeContext.sampleRate}get state(){return this._nativeContext.state}},jt=e=>{const t=new Uint32Array([1179011410,40,1163280727,544501094,16,131073,44100,176400,1048580,1635017060,4,0]);try{const n=e.decodeAudioData(t.buffer,()=>{});return n===void 0?!1:(n.catch(()=>{}),!0)}catch{}return false},ns=(e,t)=>(n,r,o)=>{const s=new Set;return n.connect=(a=>(c,i=0,u=0)=>{const d=s.size===0;if(t(c))return a.call(n,c,i,u),e(s,[c,i,u],l=>l[0]===c&&l[1]===i&&l[2]===u,true),d&&r(),c;a.call(n,c,i),e(s,[c,i],l=>l[0]===c&&l[1]===i,true),d&&r();})(n.connect),n.disconnect=(a=>(c,i,u)=>{const d=s.size>0;if(c===void 0)a.apply(n),s.clear();else if(typeof c=="number"){a.call(n,c);for(const w of s)w[1]===c&&s.delete(w);}else {t(c)?a.call(n,c,i,u):a.call(n,c,i);for(const w of s)w[0]===c&&(i===void 0||w[1]===i)&&(u===void 0||w[2]===u)&&s.delete(w);}const l=s.size===0;d&&l&&o();})(n.disconnect),n},se=(e,t,n)=>{const r=t[n];r!==void 0&&r!==e[n]&&(e[n]=r);},Te=(e,t)=>{se(e,t,"channelCount"),se(e,t,"channelCountMode"),se(e,t,"channelInterpretation");},rs=e=>e===null?null:e.hasOwnProperty("AudioBuffer")?e.AudioBuffer:null,ht=(e,t,n)=>{const r=t[n];r!==void 0&&r!==e[n].value&&(e[n].value=r);},os=e=>{e.start=(t=>{let n=false;return (r=0,o=0,s)=>{if(n)throw Z();t.call(e,r,o,s),n=true;}})(e.start);},gn=e=>{e.start=(t=>(n=0,r=0,o)=>{if(typeof o=="number"&&o<0||r<0||n<0)throw new RangeError("The parameters can't be negative.");t.call(e,n,r,o);})(e.start);},wn=e=>{e.stop=(t=>(n=0)=>{if(n<0)throw new RangeError("The parameter can't be negative.");t.call(e,n);})(e.stop);},ss=(e,t,n,r,o,s,a,c,i,u,d)=>(l,w)=>{const m=l.createBufferSource();return Te(m,w),ht(m,w,"playbackRate"),se(m,w,"buffer"),se(m,w,"loop"),se(m,w,"loopEnd"),se(m,w,"loopStart"),t(n,()=>n(l))||os(m),t(r,()=>r(l))||i(m),t(o,()=>o(l))||u(m,l),t(s,()=>s(l))||gn(m),t(a,()=>a(l))||d(m,l),t(c,()=>c(l))||wn(m),e(l,m),m},as=e=>e===null?null:e.hasOwnProperty("AudioContext")?e.AudioContext:e.hasOwnProperty("webkitAudioContext")?e.webkitAudioContext:null,is=(e,t)=>(n,r,o)=>{const s=n.destination;if(s.channelCount!==r)try{s.channelCount=r;}catch{}o&&s.channelCountMode!=="explicit"&&(s.channelCountMode="explicit"),s.maxChannelCount===0&&Object.defineProperty(s,"maxChannelCount",{value:r});const a=e(n,{channelCount:r,channelCountMode:s.channelCountMode,channelInterpretation:s.channelInterpretation,gain:1});return t(a,"channelCount",c=>()=>c.call(a),c=>i=>{c.call(a,i);try{s.channelCount=i;}catch(u){if(i>s.maxChannelCount)throw u}}),t(a,"channelCountMode",c=>()=>c.call(a),c=>i=>{c.call(a,i),s.channelCountMode=i;}),t(a,"channelInterpretation",c=>()=>c.call(a),c=>i=>{c.call(a,i),s.channelInterpretation=i;}),Object.defineProperty(a,"maxChannelCount",{get:()=>s.maxChannelCount}),a.connect(s),a},cs=e=>e===null?null:e.hasOwnProperty("AudioWorkletNode")?e.AudioWorkletNode:null,us=e=>{const{port1:t}=new MessageChannel;try{t.postMessage(e);}finally{t.close();}},ls=(e,t,n,r,o)=>(s,a,c,i,u,d)=>{if(c!==null)try{const l=new c(s,i,d),w=new Map;let m=null;if(Object.defineProperties(l,{channelCount:{get:()=>d.channelCount,set:()=>{throw e()}},channelCountMode:{get:()=>"explicit",set:()=>{throw e()}},onprocessorerror:{get:()=>m,set:h=>{typeof m=="function"&&l.removeEventListener("processorerror",m),m=typeof h=="function"?h:null,typeof m=="function"&&l.addEventListener("processorerror",m);}}}),l.addEventListener=(h=>(...f)=>{if(f[0]==="processorerror"){const g=typeof f[1]=="function"?f[1]:typeof f[1]=="object"&&f[1]!==null&&typeof f[1].handleEvent=="function"?f[1].handleEvent:null;if(g!==null){const p=w.get(f[1]);p!==void 0?f[1]=p:(f[1]=A=>{A.type==="error"?(Object.defineProperties(A,{type:{value:"processorerror"}}),g(A)):g(new ErrorEvent(f[0],{...A}));},w.set(g,f[1]));}}return h.call(l,"error",f[1],f[2]),h.call(l,...f)})(l.addEventListener),l.removeEventListener=(h=>(...f)=>{if(f[0]==="processorerror"){const g=w.get(f[1]);g!==void 0&&(w.delete(f[1]),f[1]=g);}return h.call(l,"error",f[1],f[2]),h.call(l,f[0],f[1],f[2])})(l.removeEventListener),d.numberOfOutputs!==0){const h=n(s,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});return l.connect(h).connect(s.destination),o(l,()=>h.disconnect(),()=>h.connect(s.destination))}return l}catch(l){throw l.code===11?r():l}if(u===void 0)throw r();return us(d),t(s,a,u,d)},ds=(e,t)=>e===null?512:Math.max(512,Math.min(16384,Math.pow(2,Math.round(Math.log2(e*t))))),fs=e=>new Promise((t,n)=>{const{port1:r,port2:o}=new MessageChannel;r.onmessage=({data:s})=>{r.close(),o.close(),t(s);},r.onmessageerror=({data:s})=>{r.close(),o.close(),n(s);},o.postMessage(e);}),hs=async(e,t)=>{const n=await fs(t);return new e(n)},ps=(e,t,n,r)=>{let o=nt.get(e);o===void 0&&(o=new WeakMap,nt.set(e,o));const s=hs(n,r);return o.set(t,s),s},ms=(e,t,n,r,o,s,a,c,i,u,d,l,w)=>(m,h,f,g)=>{if(g.numberOfInputs===0&&g.numberOfOutputs===0)throw i();const p=Array.isArray(g.outputChannelCount)?g.outputChannelCount:Array.from(g.outputChannelCount);if(p.some(C=>C<1))throw i();if(p.length!==g.numberOfOutputs)throw t();if(g.channelCountMode!=="explicit")throw i();const A=g.channelCount*g.numberOfInputs,_=p.reduce((C,k)=>C+k,0),T=f.parameterDescriptors===void 0?0:f.parameterDescriptors.length;if(A+T>6||_>6)throw i();const E=new MessageChannel,b=[],y=[];for(let C=0;CC===void 0?0:C},maxValue:{get:()=>k===void 0?lt:k},minValue:{get:()=>q===void 0?xe:q}}),v.push(V);}const N=r(m,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:Math.max(1,A+T)}),I=ds(h,m.sampleRate),M=c(m,I,A+T,Math.max(1,_)),U=o(m,{channelCount:Math.max(1,_),channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:Math.max(1,_)}),R=[];for(let C=0;C{const q=v[k];return q.connect(N,0,A+k),q.start(0),[C,q.offset]}));N.connect(M);let B=g.channelInterpretation,S=null;const L=g.numberOfOutputs===0?[M]:R,D={get bufferSize(){return I},get channelCount(){return g.channelCount},set channelCount(C){throw n()},get channelCountMode(){return g.channelCountMode},set channelCountMode(C){throw n()},get channelInterpretation(){return B},set channelInterpretation(C){for(const k of b)k.channelInterpretation=C;B=C;},get context(){return M.context},get inputs(){return b},get numberOfInputs(){return g.numberOfInputs},get numberOfOutputs(){return g.numberOfOutputs},get onprocessorerror(){return S},set onprocessorerror(C){typeof S=="function"&&D.removeEventListener("processorerror",S),S=typeof C=="function"?C:null,typeof S=="function"&&D.addEventListener("processorerror",S);},get parameters(){return W},get port(){return E.port2},addEventListener(...C){return M.addEventListener(C[0],C[1],C[2])},connect:e.bind(null,L),disconnect:u.bind(null,L),dispatchEvent(...C){return M.dispatchEvent(C[0])},removeEventListener(...C){return M.removeEventListener(C[0],C[1],C[2])}},O=new Map;E.port1.addEventListener=(C=>(...k)=>{if(k[0]==="message"){const q=typeof k[1]=="function"?k[1]:typeof k[1]=="object"&&k[1]!==null&&typeof k[1].handleEvent=="function"?k[1].handleEvent:null;if(q!==null){const F=O.get(k[1]);F!==void 0?k[1]=F:(k[1]=V=>{d(m.currentTime,m.sampleRate,()=>q(V));},O.set(q,k[1]));}}return C.call(E.port1,k[0],k[1],k[2])})(E.port1.addEventListener),E.port1.removeEventListener=(C=>(...k)=>{if(k[0]==="message"){const q=O.get(k[1]);q!==void 0&&(O.delete(k[1]),k[1]=q);}return C.call(E.port1,k[0],k[1],k[2])})(E.port1.removeEventListener);let P=null;Object.defineProperty(E.port1,"onmessage",{get:()=>P,set:C=>{typeof P=="function"&&E.port1.removeEventListener("message",P),P=typeof C=="function"?C:null,typeof P=="function"&&(E.port1.addEventListener("message",P),E.port1.start());}}),f.prototype.port=E.port1;let x=null;ps(m,D,f,g).then(C=>x=C);const fe=We(g.numberOfInputs,g.channelCount),he=We(g.numberOfOutputs,p),pe=f.parameterDescriptors===void 0?[]:f.parameterDescriptors.reduce((C,{name:k})=>({...C,[k]:new Float32Array(128)}),{});let j=true;const X=()=>{g.numberOfOutputs>0&&M.disconnect(U);for(let C=0,k=0;C{if(x!==null){const q=l(D);for(let F=0;F{De(C,pe,V,A+G,F);});for(let V=0;V{if(q[te].size>0)return Me.set(te,I/128),Y;const Ye=Me.get(te);return Ye===void 0?[]:(Y.every($n=>$n.every(qn=>qn===0))&&(Ye===1?Me.delete(te):Me.set(te,Ye-1)),Y)});j=d(m.currentTime+F/m.sampleRate,m.sampleRate,()=>x.process(V,he,pe));for(let Y=0,te=0;YM.connect(Xe).connect(m.destination),Tt=()=>{M.disconnect(Xe),Xe.disconnect();},jn=()=>{if(j){Tt(),g.numberOfOutputs>0&&M.connect(U);for(let C=0,k=0;C{j&&(Ct(),X()),ze=false;};return Ct(),w(D,jn,Gn)},gs=(e,t)=>(n,r)=>{const o=n.createChannelMerger(r.numberOfInputs);return e!==null&&e.name==="webkitAudioContext"&&t(n,o),Te(o,r),o},ws=e=>{const t=e.numberOfOutputs;Object.defineProperty(e,"channelCount",{get:()=>t,set:n=>{if(n!==t)throw Z()}}),Object.defineProperty(e,"channelCountMode",{get:()=>"explicit",set:n=>{if(n!=="explicit")throw Z()}}),Object.defineProperty(e,"channelInterpretation",{get:()=>"discrete",set:n=>{if(n!=="discrete")throw Z()}});},vn=(e,t)=>{const n=e.createChannelSplitter(t.numberOfOutputs);return Te(n,t),ws(n),n},vs=(e,t,n,r,o)=>(s,a)=>{if(s.createConstantSource===void 0)return n(s,a);const c=s.createConstantSource();return Te(c,a),ht(c,a,"offset"),t(r,()=>r(s))||gn(c),t(o,()=>o(s))||wn(c),e(s,c),c},_n=(e,t)=>(e.connect=t.connect.bind(t),e.disconnect=t.disconnect.bind(t),e),_s=(e,t,n,r)=>(o,{offset:s,...a})=>{const c=o.createBuffer(1,2,44100),i=t(o,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:false,loopEnd:0,loopStart:0,playbackRate:1}),u=n(o,{...a,gain:s}),d=c.getChannelData(0);d[0]=1,d[1]=1,i.buffer=c,i.loop=true;const l={get bufferSize(){},get channelCount(){return u.channelCount},set channelCount(h){u.channelCount=h;},get channelCountMode(){return u.channelCountMode},set channelCountMode(h){u.channelCountMode=h;},get channelInterpretation(){return u.channelInterpretation},set channelInterpretation(h){u.channelInterpretation=h;},get context(){return u.context},get inputs(){return []},get numberOfInputs(){return i.numberOfInputs},get numberOfOutputs(){return u.numberOfOutputs},get offset(){return u.gain},get onended(){return i.onended},set onended(h){i.onended=h;},addEventListener(...h){return i.addEventListener(h[0],h[1],h[2])},dispatchEvent(...h){return i.dispatchEvent(h[0])},removeEventListener(...h){return i.removeEventListener(h[0],h[1],h[2])},start(h=0){i.start.call(i,h);},stop(h=0){i.stop.call(i,h);}},w=()=>i.connect(u),m=()=>i.disconnect(u);return e(o,i),r(_n(l,u),w,m)},oe=(e,t)=>{const n=e.createGain();return Te(n,t),ht(n,t,"gain"),n},ys=(e,{mediaStream:t})=>{const n=t.getAudioTracks();n.sort((s,a)=>s.ida.id?1:0);const r=n.slice(0,1),o=e.createMediaStreamSource(new MediaStream(r));return Object.defineProperty(o,"mediaStream",{value:t}),o},Es=e=>e===null?null:e.hasOwnProperty("OfflineAudioContext")?e.OfflineAudioContext:e.hasOwnProperty("webkitOfflineAudioContext")?e.webkitOfflineAudioContext:null,pt=(e,t,n,r)=>e.createScriptProcessor(t,n,r),de=()=>new DOMException("","NotSupportedError"),bs=(e,t)=>(n,r,o)=>(e(r).replay(o),t(r,n,o)),As=(e,t,n)=>async(r,o,s)=>{const a=e(r);await Promise.all(a.activeInputs.map((c,i)=>Array.from(c).map(async([u,d])=>{const w=await t(u).render(u,o),m=r.context.destination;!n(u)&&(r!==m||!n(r))&&w.connect(s,d,i);})).reduce((c,i)=>[...c,...i],[]));},Cs=(e,t,n)=>async(r,o,s)=>{const a=t(r);await Promise.all(Array.from(a.activeInputs).map(async([c,i])=>{const d=await e(c).render(c,o);n(c)||d.connect(s,i);}));},Ts=(e,t,n,r)=>o=>e(jt,()=>jt(o))?Promise.resolve(e(r,r)).then(s=>{if(!s){const a=n(o,512,0,1);o.oncomplete=()=>{a.onaudioprocess=null,a.disconnect();},a.onaudioprocess=()=>o.currentTime,a.connect(o.destination);}return o.startRendering()}):new Promise(s=>{const a=t(o,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});o.oncomplete=c=>{a.disconnect(),s(c.renderedBuffer);},a.connect(o.destination),o.startRendering();}),Ms=e=>(t,n)=>{e.set(t,n);},Ns=e=>()=>{if(e===null)return false;try{new e({length:1,sampleRate:44100});}catch{return false}return true},Os=(e,t)=>async()=>{if(e===null)return true;if(t===null)return false;const n=new Blob(['class A extends AudioWorkletProcessor{process(i){this.port.postMessage(i,[i[0][0].buffer])}}registerProcessor("a",A)'],{type:"application/javascript; charset=utf-8"}),r=new t(1,128,44100),o=URL.createObjectURL(n);let s=false,a=false;try{await r.audioWorklet.addModule(o);const c=new e(r,"a",{numberOfOutputs:0}),i=r.createOscillator();c.port.onmessage=()=>s=!0,c.onprocessorerror=()=>a=!0,i.connect(c),i.start(0),await r.startRendering(),await new Promise(u=>setTimeout(u));}catch{}finally{URL.revokeObjectURL(o);}return s&&!a},ks=(e,t)=>()=>{if(t===null)return Promise.resolve(false);const n=new t(1,1,44100),r=e(n,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});return new Promise(o=>{n.oncomplete=()=>{r.disconnect(),o(n.currentTime!==0);},n.startRendering();})},Is=()=>new DOMException("","UnknownError"),Ss=()=>typeof window>"u"?null:window,Rs=(e,t)=>n=>{n.copyFromChannel=(r,o,s=0)=>{const a=e(s),c=e(o);if(c>=n.numberOfChannels)throw t();const i=n.length,u=n.getChannelData(c),d=r.length;for(let l=a<0?-a:0;l+a{const a=e(s),c=e(o);if(c>=n.numberOfChannels)throw t();const i=n.length,u=n.getChannelData(c),d=r.length;for(let l=a<0?-a:0;l+at=>{t.copyFromChannel=(n=>(r,o,s=0)=>{const a=e(s),c=e(o);if(a(r,o,s=0)=>{const a=e(s),c=e(o);if(a(t,n)=>{const r=n.createBuffer(1,1,44100);t.buffer===null&&(t.buffer=r),e(t,"buffer",o=>()=>{const s=o.call(t);return s===r?null:s},o=>s=>o.call(t,s===null?r:s));},Bs=(e,t)=>(n,r)=>{r.channelCount=1,r.channelCountMode="explicit",Object.defineProperty(r,"channelCount",{get:()=>1,set:()=>{throw e()}}),Object.defineProperty(r,"channelCountMode",{get:()=>"explicit",set:()=>{throw e()}});const o=n.createBufferSource();t(r,()=>{const c=r.numberOfInputs;for(let i=0;io.disconnect(r));},Us=(e,t,n)=>e.copyFromChannel===void 0?e.getChannelData(n)[0]:(e.copyFromChannel(t,n),t[0]),mt=(e,t,n,r)=>{let o=e;for(;!o.hasOwnProperty(t);)o=Object.getPrototypeOf(o);const{get:s,set:a}=Object.getOwnPropertyDescriptor(o,t);Object.defineProperty(e,t,{get:n(s),set:r(a)});},Ds=e=>({...e,outputChannelCount:e.outputChannelCount!==void 0?e.outputChannelCount:e.numberOfInputs===1&&e.numberOfOutputs===1?[e.channelCount]:Array.from({length:e.numberOfOutputs},()=>1)}),yn=(e,t,n)=>{try{e.setValueAtTime(t,n);}catch(r){if(r.code!==9)throw r;yn(e,t,n+1e-7);}},Ws=e=>{const t=e.createBufferSource();t.start();try{t.start();}catch{return true}return false},Vs=e=>{const t=e.createBufferSource(),n=e.createBuffer(1,1,44100);t.buffer=n;try{t.start(0,1);}catch{return false}return true},xs=e=>{const t=e.createBufferSource();t.start();try{t.stop();}catch{return false}return true},En=e=>{const t=e.createOscillator();try{t.start(-1);}catch(n){return n instanceof RangeError}return false},Fs=e=>{const t=e.createBuffer(1,1,44100),n=e.createBufferSource();n.buffer=t,n.start(),n.stop();try{return n.stop(),!0}catch{return false}},bn=e=>{const t=e.createOscillator();try{t.stop(-1);}catch(n){return n instanceof RangeError}return false},js=e=>{const{port1:t,port2:n}=new MessageChannel;try{t.postMessage(e);}finally{t.close(),n.close();}},Gs=e=>{e.start=(t=>(n=0,r=0,o)=>{const s=e.buffer,a=s===null?r:Math.min(s.duration,r);s!==null&&a>s.duration-.5/e.context.sampleRate?t.call(e,n,0,0):t.call(e,n,a,o);})(e.start);},$s=(e,t)=>{const n=t.createGain();e.connect(n);const r=(o=>()=>{o.call(e,n),e.removeEventListener("ended",r);})(e.disconnect);e.addEventListener("ended",r),_n(e,n),e.stop=(o=>{let s=false;return (a=0)=>{if(s)try{o.call(e,a);}catch{n.gain.setValueAtTime(0,a);}else o.call(e,a),s=true;}})(e.stop);},Fe=(e,t)=>n=>{const r={value:e};return Object.defineProperties(n,{currentTarget:r,target:r}),typeof t=="function"?t.call(e,n):t.handleEvent.call(e,n)},qs=Br(le),zs=Fr(le),Xs=ko(Ve),Ys=new WeakMap,Hs=xo(Ys),we=Co(new Map,new WeakMap),Q=Ss(),An=Vo(z),gt=As(z,An,ie),ce=Go(nn),ve=Es(Q),ee=Ko(ve),Cn=new WeakMap,Tn=Bo(Fe),je=as(Q),Zs=Yo(je),Mn=Ho(Q),Ks=Zo(Q),Ee=cs(Q),Ge=go(Ur(Qt),xr(qs,zs,st,Xs,at,z,Hs,be,H,le,ae,ie,Ie),we,Xo(et,at,z,H,ye,ae),ue,zo,de,Oo(st,et,z,H,ye,ce,ae,ee),Ro(Cn,z,K),Tn,ce,Zs,Mn,Ks,ee,Ee),Qs=new WeakSet,Gt=rs(Q),Nn=No(new Uint32Array(1)),Js=Rs(Nn,ue),ea=Ls(Nn),ta=zr(Qs,we,de,Gt,ve,Ns(Gt),Js,ea),wt=jr(oe),On=Cs(An,Ae,ie),kn=To(On),$e=ss(wt,we,Ws,Vs,xs,En,Fs,bn,Gs,Ps(mt),$s),In=bs(Fo(Ae),On),na=Hr(kn,$e,H,In,gt),vt=wo(Dr(en),Cn,tn,vo,kr,Ir,Sr,Rr,Lr,Ke,Zt,je,yn),ra=Yr(Ge,na,vt,Z,$e,ce,ee,Fe),oa=oo(Ge,so,ue,Z,is(oe,mt),ce,ee,gt),qe=ns(le,Mn),sa=Bs(Z,qe),_t=gs(je,sa),aa=_s(wt,$e,oe,qe),yt=vs(wt,we,aa,En,bn),ia=Ts(we,oe,pt,ks(oe,ve)),ca=ao(vt,_t,yt,pt,de,Us,ee,mt),Sn=new WeakMap,ua=ts(oa,ca,Tn,ee,Sn,Fe),Rn=Qo(Q),Et=Uo(Q),Ln=new WeakMap,la=$o(Ln,ve),$t=Rn?Vr(we,de,Po(Q),Et,Do(Pr),ce,la,ee,Ee,new WeakMap,new WeakMap,Os(Ee,ve),Q):void 0,da=Jo(Ge,ys,ce,ee),Pn=qo(Sn),fa=Gr(Pn),Bn=Mo(ue),ha=Io(Pn),Un=Lo(ue),Dn=new WeakMap,pa=Wo(Dn,K),ma=ms(Bn,ue,Z,_t,vn,yt,oe,pt,de,Un,Et,pa,qe),ga=ls(Z,ma,oe,de,qe),wa=Ao(kn,Bn,$e,_t,vn,yt,oe,ha,Un,Et,H,Ee,ve,In,gt,ia),va=jo(Ln),_a=Ms(Dn),qt=Rn?yo(fa,Ge,vt,wa,ga,z,va,ce,ee,Ee,Ds,_a,js,Fe):void 0,ya=es(Z,de,Is,ua,je),Wn="Missing AudioWorklet support. Maybe this is not running in a secure context.",Ea=async(e,t,n,r,o)=>{const{encoderId:s,port:a}=await Xt(o,t.sampleRate);if(qt===void 0)throw new Error(Wn);const c=new ra(t,{buffer:e}),i=new da(t,{mediaStream:r}),u=Tr(qt,t,{channelCount:n});return {audioBufferSourceNode:c,encoderId:s,mediaStreamAudioSourceNode:i,port:a,recorderAudioWorkletNode:u}},ba=(e,t,n,r)=>(o,s,a)=>{var c;const i=(c=s.getAudioTracks()[0])===null||c===void 0?void 0:c.getSettings().sampleRate,u=new ya({latencyHint:"playback",sampleRate:i}),d=Math.max(1024,Math.ceil(u.baseLatency*u.sampleRate)),l=new ta({length:d,sampleRate:u.sampleRate}),w=[],m=Cr(v=>{if($t===void 0)throw new Error(Wn);return $t(u,v)});let h=null,f=null,g=null,p=null,A=true;const _=v=>{o.dispatchEvent(e("dataavailable",{data:new Blob(v,{type:a})}));},T=async(v,N)=>{const I=await Se(v,N);g===null?w.push(...I):(_(I),p=T(v,N));},E=()=>(A=true,u.resume()),b=()=>{g!==null&&(h!==null&&(s.removeEventListener("addtrack",h),s.removeEventListener("removetrack",h)),f!==null&&clearTimeout(f),g.then(async({encoderId:v,mediaStreamAudioSourceNode:N,recorderAudioWorkletNode:I})=>{p!==null&&(p.catch(()=>{}),p=null),await I.stop(),N.disconnect(I);const M=await Se(v,null);g===null&&await y(),_([...w,...M]),w.length=0,o.dispatchEvent(new Event("stop"));}),g=null);},y=()=>(A=false,u.suspend());return y(),{get mimeType(){return a},get state(){return g===null?"inactive":A?"recording":"paused"},pause(){if(g===null)throw n();A&&(y(),o.dispatchEvent(new Event("pause")));},resume(){if(g===null)throw n();A||(E(),o.dispatchEvent(new Event("resume")));},start(v){var N;if(g!==null)throw n();if(s.getVideoTracks().length>0)throw r();o.dispatchEvent(new Event("start"));const I=s.getAudioTracks(),M=I.length===0?2:(N=I[0].getSettings().channelCount)!==null&&N!==void 0?N:2;g=Promise.all([E(),m.then(()=>Ea(l,u,M,s,a))]).then(async([,{audioBufferSourceNode:R,encoderId:W,mediaStreamAudioSourceNode:B,port:S,recorderAudioWorkletNode:L}])=>(B.connect(L),await new Promise(D=>{R.onended=D,R.connect(L),R.start(u.currentTime+d/u.sampleRate);}),R.disconnect(L),await L.record(S),v!==void 0&&(p=T(W,v)),{encoderId:W,mediaStreamAudioSourceNode:B,recorderAudioWorkletNode:L}));const U=s.getTracks();h=()=>{b(),o.dispatchEvent(new ErrorEvent("error",{error:t()}));},s.addEventListener("addtrack",h),s.addEventListener("removetrack",h),f=setInterval(()=>{const R=s.getTracks();(R.length!==U.length||R.some((W,B)=>W!==U[B]))&&h!==null&&h();},1e3);},stop:b}};class Ze{constructor(t,n=0,r){if(n<0||r!==void 0&&r<0)throw new RangeError;const o=t.reduce((d,l)=>d+l.byteLength,0);if(n>o||r!==void 0&&n+r>o)throw new RangeError;const s=[],a=r===void 0?o-n:r,c=[];let i=0,u=n;for(const d of t)if(c.length===0)if(d.byteLength>u){i=d.byteLength-u;const l=i>a?a:i;s.push(new DataView(d,u,l)),c.push(d);}else u-=d.byteLength;else if(ia?d.byteLength-i+a:d.byteLength;s.push(new DataView(d,0,l)),c.push(d);}this._buffers=c,this._byteLength=a,this._byteOffset=u,this._dataViews=s,this._internalBuffer=new DataView(new ArrayBuffer(8));}get buffers(){return this._buffers}get byteLength(){return this._byteLength}get byteOffset(){return this._byteOffset}getFloat32(t,n){return this._internalBuffer.setUint8(0,this.getUint8(t+0)),this._internalBuffer.setUint8(1,this.getUint8(t+1)),this._internalBuffer.setUint8(2,this.getUint8(t+2)),this._internalBuffer.setUint8(3,this.getUint8(t+3)),this._internalBuffer.getFloat32(0,n)}getFloat64(t,n){return this._internalBuffer.setUint8(0,this.getUint8(t+0)),this._internalBuffer.setUint8(1,this.getUint8(t+1)),this._internalBuffer.setUint8(2,this.getUint8(t+2)),this._internalBuffer.setUint8(3,this.getUint8(t+3)),this._internalBuffer.setUint8(4,this.getUint8(t+4)),this._internalBuffer.setUint8(5,this.getUint8(t+5)),this._internalBuffer.setUint8(6,this.getUint8(t+6)),this._internalBuffer.setUint8(7,this.getUint8(t+7)),this._internalBuffer.getFloat64(0,n)}getInt16(t,n){return this._internalBuffer.setUint8(0,this.getUint8(t+0)),this._internalBuffer.setUint8(1,this.getUint8(t+1)),this._internalBuffer.getInt16(0,n)}getInt32(t,n){return this._internalBuffer.setUint8(0,this.getUint8(t+0)),this._internalBuffer.setUint8(1,this.getUint8(t+1)),this._internalBuffer.setUint8(2,this.getUint8(t+2)),this._internalBuffer.setUint8(3,this.getUint8(t+3)),this._internalBuffer.getInt32(0,n)}getInt8(t){const[n,r]=this._findDataViewWithOffset(t);return n.getInt8(t-r)}getUint16(t,n){return this._internalBuffer.setUint8(0,this.getUint8(t+0)),this._internalBuffer.setUint8(1,this.getUint8(t+1)),this._internalBuffer.getUint16(0,n)}getUint32(t,n){return this._internalBuffer.setUint8(0,this.getUint8(t+0)),this._internalBuffer.setUint8(1,this.getUint8(t+1)),this._internalBuffer.setUint8(2,this.getUint8(t+2)),this._internalBuffer.setUint8(3,this.getUint8(t+3)),this._internalBuffer.getUint32(0,n)}getUint8(t){const[n,r]=this._findDataViewWithOffset(t);return n.getUint8(t-r)}setFloat32(t,n,r){this._internalBuffer.setFloat32(0,n,r),this.setUint8(t,this._internalBuffer.getUint8(0)),this.setUint8(t+1,this._internalBuffer.getUint8(1)),this.setUint8(t+2,this._internalBuffer.getUint8(2)),this.setUint8(t+3,this._internalBuffer.getUint8(3));}setFloat64(t,n,r){this._internalBuffer.setFloat64(0,n,r),this.setUint8(t,this._internalBuffer.getUint8(0)),this.setUint8(t+1,this._internalBuffer.getUint8(1)),this.setUint8(t+2,this._internalBuffer.getUint8(2)),this.setUint8(t+3,this._internalBuffer.getUint8(3)),this.setUint8(t+4,this._internalBuffer.getUint8(4)),this.setUint8(t+5,this._internalBuffer.getUint8(5)),this.setUint8(t+6,this._internalBuffer.getUint8(6)),this.setUint8(t+7,this._internalBuffer.getUint8(7));}setInt16(t,n,r){this._internalBuffer.setInt16(0,n,r),this.setUint8(t,this._internalBuffer.getUint8(0)),this.setUint8(t+1,this._internalBuffer.getUint8(1));}setInt32(t,n,r){this._internalBuffer.setInt32(0,n,r),this.setUint8(t,this._internalBuffer.getUint8(0)),this.setUint8(t+1,this._internalBuffer.getUint8(1)),this.setUint8(t+2,this._internalBuffer.getUint8(2)),this.setUint8(t+3,this._internalBuffer.getUint8(3));}setInt8(t,n){const[r,o]=this._findDataViewWithOffset(t);r.setInt8(t-o,n);}setUint16(t,n,r){this._internalBuffer.setUint16(0,n,r),this.setUint8(t,this._internalBuffer.getUint8(0)),this.setUint8(t+1,this._internalBuffer.getUint8(1));}setUint32(t,n,r){this._internalBuffer.setUint32(0,n,r),this.setUint8(t,this._internalBuffer.getUint8(0)),this.setUint8(t+1,this._internalBuffer.getUint8(1)),this.setUint8(t+2,this._internalBuffer.getUint8(2)),this.setUint8(t+3,this._internalBuffer.getUint8(3));}setUint8(t,n){const[r,o]=this._findDataViewWithOffset(t);r.setUint8(t-o,n);}_findDataViewWithOffset(t){let n=0;for(const r of this._dataViews){const o=n+r.byteLength;if(t>=n&&t(r,o,s,a)=>{const c=[],i=new o(s,{mimeType:"audio/webm;codecs=pcm"});let u=null,d=()=>{};const l=h=>{r.dispatchEvent(e("dataavailable",{data:new Blob(h,{type:a})}));},w=async(h,f)=>{const g=await Se(h,f);i.state==="inactive"?c.push(...g):(l(g),u=w(h,f));},m=()=>{i.state!=="inactive"&&(u!==null&&(u.catch(()=>{}),u=null),d(),d=()=>{},i.stop());};return i.addEventListener("error",h=>{m(),r.dispatchEvent(new ErrorEvent("error",{error:h.error}));}),i.addEventListener("pause",()=>r.dispatchEvent(new Event("pause"))),i.addEventListener("resume",()=>r.dispatchEvent(new Event("resume"))),i.addEventListener("start",()=>r.dispatchEvent(new Event("start"))),{get mimeType(){return a},get state(){return i.state},pause(){return i.pause()},resume(){return i.resume()},start(h){const[f]=s.getAudioTracks();if(f!==void 0&&i.state==="inactive"){const{channelCount:g,sampleRate:p}=f.getSettings();if(g===void 0)throw new Error("The channelCount is not defined.");if(p===void 0)throw new Error("The sampleRate is not defined.");let A=false,_=false,T=0,E=Xt(a,p);d=()=>{_=true;};const b=Ht(i,"dataavailable")(({data:y})=>{T+=1,E=E.then(async({dataView:v=null,elementType:N=null,encoderId:I,port:M})=>{const U=await y.arrayBuffer();T-=1;const R=v===null?new Ze([U]):new Ze([...v.buffers,U],v.byteOffset);if(!A&&i.state==="recording"&&!_){const D=n(R,0);if(D===null)return {dataView:R,elementType:N,encoderId:I,port:M};const{value:O}=D;if(O!==172351395)return {dataView:v,elementType:N,encoderId:I,port:M};A=true;}const{currentElementType:W,offset:B,contents:S}=t(R,N,g),L=BM.postMessage(D,D.map(({buffer:O})=>O))),T===0&&(i.state==="inactive"||_)&&(Se(I,null).then(D=>{l([...c,...D]),c.length=0,r.dispatchEvent(new Event("stop"));}),M.postMessage([]),M.close(),b()),{dataView:L,elementType:W,encoderId:I,port:M}});});h!==void 0&&E.then(({encoderId:y})=>u=w(y,h));}i.start(100);},stop:m}},Ca=()=>typeof window>"u"?null:window,Vn=(e,t)=>{if(t>=e.byteLength)return null;const n=e.getUint8(t);if(n>127)return 1;if(n>63)return 2;if(n>31)return 3;if(n>15)return 4;if(n>7)return 5;if(n>3)return 6;if(n>1)return 7;if(n>0)return 8;const r=Vn(e,t+1);return r===null?null:r+8},Ta=(e,t)=>n=>{const r={value:e};return Object.defineProperties(n,{currentTarget:r,target:r}),typeof t=="function"?t.call(e,n):t.handleEvent.call(e,n)},xn=[],bt=Ca(),Ma=ir(bt),Fn=er(Ma),Na=ba(Fn,or,sr,Yt),At=fr(Vn),Oa=lr(At),ka=dr(At),Ia=tr(Oa,ka),Sa=Aa(Fn,Ia,At),Ra=rr(bt),La=ur(bt),za=ar(cr,Yt,Na,Sa,xn,nr(Ra,Ta),La),Xa=async e=>{xn.push(await Jn(e));}; + +export { za as MediaRecorder, Xa as register }; +//# sourceMappingURL=module3-CsOA9qDp.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/nb-vetOmdmu.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/nb-vetOmdmu.js new file mode 100644 index 0000000000000000000000000000000000000000..84b04344fa3fbef4d9af81ab0a6a5573764b1183 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/nb-vetOmdmu.js @@ -0,0 +1,4 @@ +const e="Norsk bokmål",o={annotated_image:"Annotert bilde"},r={allow_recording_access:"Vennligst tillat mikrofontilgang for opptak.",audio:"Lyd",record_from_microphone:"Ta opp fra mikrofon",stop_recording:"Stopp opptak",no_device_support:"Kan ikke få tilgang til medieenheter. Sørg for at du kjører på en sikker kilde (https) eller localhost (eller har gitt et gyldig SSL-sertifikat til ssl_verify), og at du har gitt nettleseren tilgang til enheten din.",stop:"Stopp",resume:"Fortsett",record:"Ta opp",no_microphone:"Ingen mikrofon funnet",pause:"Pause",play:"Spill av",waiting:"Venter",drop_to_upload:"Slipp en lydfil her for å laste opp"},t={connection_can_break:"På mobil kan tilkoblingen brytes hvis denne fanen mister fokus eller enheten går i dvale, og du mister plassen din i køen.",long_requests_queue:"Det er en lang kø med ventende forespørsler. Dupliser denne Space for å hoppe over køen.",lost_connection:"Mistet tilkobling på grunn av at siden ble forlatt. Går tilbake til køen...",waiting_for_inputs:"Venter på at fil(er) skal bli lastet opp, vennligst prøv igjen."},n={checkbox:"Avkrysningsboks",checkbox_group:"Avkrysningsboksgruppe"},i={code:"Kode"},l={color_picker:"Fargevelger"},a={built_with:"bygget med",built_with_gradio:"Bygget med Gradio",clear:"Tøm",download:"Last ned",edit:"Rediger",empty:"Tom",error:"Feil",hosted_on:"Hostet på",loading:"Laster",logo:"Logo",or:"eller",remove:"Fjern",settings:"Innstillinger",share:"Del",submit:"Send",undo:"Angre",no_devices:"Ingen enheter funnet",language:"Språk",display_theme:"Visningstema",pwa:"Progressiv webapplikasjon"},s={incorrect_format:"Feil format, kun CSV- og TSV-filer støttes",new_column:"Legg til kolonne",new_row:"Ny rad",add_row_above:"Legg til rad over",add_row_below:"Legg til rad under",add_column_left:"Legg til kolonne til venstre",add_column_right:"Legg til kolonne til høyre",delete_row:"Slett rad",delete_column:"Slett kolonne",sort_column:"Sorter kolonne",sort_ascending:"Sorter stigende",sort_descending:"Sorter synkende",drop_to_upload:"Slipp CSV- eller TSV-filer her for å importere data til dataramme",clear_sort:"Fjern sortering"},d={dropdown:"Nedtrekksmeny"},p={build_error:"Det er en byggefeil",config_error:"Det er en konfigurasjonsfeil",contact_page_author:"Vennligst kontakt sidens forfatter for å informere dem.",no_app_file:"Det er ingen app-fil",runtime_error:"Det er en kjøretidsfeil",space_not_working:'"Space fungerer ikke fordi" {0}',space_paused:"Space er pauset",use_via_api:"Bruk via API",use_via_api_or_mcp:"Bruk via API eller MCP"},g={uploading:"Laster opp..."},_={highlighted_text:"Uthevet tekst"},c={allow_webcam_access:"Vennligst tillat webkameratilgang for opptak.",brush_color:"Penselfarge",brush_radius:"Penselstørrelse",image:"Bilde",remove_image:"Fjern bilde",select_brush_color:"Velg penselfarge",start_drawing:"Start tegning",use_brush:"Bruk pensel",drop_to_upload:"Slipp en bildefil her for å laste opp"},k={label:"Etikett"},u={enable_cookies:"Hvis du besøker en HuggingFace Space i inkognitomodus, må du aktivere tredjeparts informasjonskapsler.",incorrect_credentials:"Feil påloggingsinformasjon",username:"Brukernavn",password:"Passord",login:"Logg inn"},m={number:"Tall"},f={plot:"Plott"},b={radio:"Radioknapp"},h={slider:"Glidebryter"},v={click_to_upload:"Klikk for å laste opp",drop_audio:"Slipp lyd her",drop_csv:"Slipp CSV her",drop_file:"Slipp fil her",drop_image:"Slipp bilde her",drop_video:"Slipp video her",drop_gallery:"Slipp media her",paste_clipboard:"Lim inn fra utklippstavle"},S={drop_to_upload:"Slipp en videofil her for å laste opp"},w={edit:"Rediger",retry:"Prøv igjen",undo:"Angre",submit:"Send",cancel:"Avbryt",like:"Liker",dislike:"Liker ikke",clear:"Tøm samtalen"},y={_name:e,"3D_model":{"3d_model":"3D-modell",drop_to_upload:"Slipp en 3D-modell (.obj, .glb, .stl, .gltf, .splat eller .ply) fil her for å laste opp"},annotated_image:o,audio:r,blocks:t,checkbox:n,code:i,color_picker:l,common:a,dataframe:s,dropdown:d,errors:p,file:g,highlighted_text:_,image:c,label:k,login:u,number:m,plot:f,radio:b,slider:h,upload_text:v,video:S,chatbot:w}; + +export { e as _name, o as annotated_image, r as audio, t as blocks, w as chatbot, n as checkbox, i as code, l as color_picker, a as common, s as dataframe, y as default, d as dropdown, p as errors, g as file, _ as highlighted_text, c as image, k as label, u as login, m as number, f as plot, b as radio, h as slider, v as upload_text, S as video }; +//# sourceMappingURL=nb-vetOmdmu.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/nl-B32Jky1V.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/nl-B32Jky1V.js new file mode 100644 index 0000000000000000000000000000000000000000..d0e8b255fd7c463492618b3d6b78abff54eab519 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/nl-B32Jky1V.js @@ -0,0 +1,4 @@ +const e="Nederlands",o={built_with_gradio:"Gemaakt met Gradio",clear:"Wissen",or:"of",submit:"Verzenden",settings:"Instellingen",built_with:"Gebouwd met",download:"Downloaden",edit:"Bewerken",empty:"Leeg",error:"Fout",hosted_on:"Gehost op",loading:"Laden",logo:"Logo",remove:"Verwijderen",share:"Delen",undo:"Ongedaan maken",no_devices:"Geen apparaten gevonden",language:"Taal",display_theme:"Weergavethema",pwa:"Progressieve Web App"},n={click_to_upload:"Klik om te uploaden",drop_audio:"Sleep een geluidsbestand hier",drop_csv:"Sleep een CSV-bestand hier",drop_file:"Sleep een bestand hier",drop_image:"Sleep een afbeelding hier",drop_video:"Sleep een video hier",drop_gallery:"Sleep media hier",paste_clipboard:"Plakken vanuit klembord"},a={annotated_image:"Geannoteerde afbeelding"},t={allow_recording_access:"Geef alstublieft toegang tot de microfoon voor opname.",audio:"Audio",drop_to_upload:"Sleep een audiobestand hier om te uploaden",record_from_microphone:"Opnemen via microfoon",stop_recording:"Opname stoppen",no_device_support:"Media-apparaten konden niet worden benaderd. Controleer of u werkt vanaf een beveiligde oorsprong (https) of localhost (of u een geldig SSL-certificaat heeft doorgegeven aan ssl_verify), en of u browsertoestemming heeft gegeven voor toegang tot uw apparaat.",stop:"Stoppen",resume:"Hervatten",record:"Opnemen",no_microphone:"Geen microfoon gevonden",pause:"Pauzeren",play:"Afspelen",waiting:"Wachten"},r={connection_can_break:"Op mobiel kan de verbinding verbroken worden als dit tabblad niet actief is of het apparaat in slaapstand gaat, waardoor je plaats in de wachtrij verloren gaat.",long_requests_queue:"Er is een lange wachtrij van aanvragen. Dupliceer deze Space om de wachtrij over te slaan.",lost_connection:"Verbinding verloren door het verlaten van de pagina. Opnieuw aansluiten in de wachtrij...",waiting_for_inputs:"Wachten tot het uploaden van bestand(en) is voltooid, probeer het opnieuw."},i={checkbox:"Selectievakje",checkbox_group:"Selectievakjesgroep"},d={code:"Code"},l={color_picker:"Kleurkiezer"},s={incorrect_format:"Onjuist formaat, alleen CSV- en TSV-bestanden worden ondersteund",new_column:"Kolom toevoegen",new_row:"Nieuwe rij",add_row_above:"Rij boven toevoegen",add_row_below:"Rij onder toevoegen",delete_row:"Rij verwijderen",delete_column:"Kolom verwijderen",add_column_left:"Kolom links toevoegen",add_column_right:"Kolom rechts toevoegen",sort_column:"Kolom sorteren",sort_ascending:"Oplopend sorteren",sort_descending:"Aflopend sorteren",drop_to_upload:"Sleep CSV- of TSV-bestanden hier om gegevens in het dataframe te importeren",clear_sort:"Sortering wissen"},c={dropdown:"Vervolgkeuzelijst"},p={build_error:"Er is een bouwfout",config_error:"Er is een configuratiefout",contact_page_author:"Neem contact op met de auteur van de pagina om dit te melden.",no_app_file:"Er is geen app-bestand",runtime_error:"Er is een runtime-fout",space_not_working:'"Space werkt niet omdat" {0}',space_paused:"De Space is gepauzeerd",use_via_api:"Gebruik via API",use_via_api_or_mcp:"Gebruik via API of MCP"},u={uploading:"Uploaden..."},g={highlighted_text:"Gemarkeerde tekst"},_={allow_webcam_access:"Geef alstublieft toegang tot de webcam voor opname.",brush_color:"Penseelkleur",brush_radius:"Penseelgrootte",image:"Afbeelding",remove_image:"Afbeelding verwijderen",select_brush_color:"Penseelkleur kiezen",start_drawing:"Beginnen met tekenen",use_brush:"Penseel gebruiken",drop_to_upload:"Sleep een afbeelding hier om te uploaden"},m={label:"Label"},b={enable_cookies:"Als u een HuggingFace Space bezoekt in incognitomodus, moet u cookies van derden inschakelen.",incorrect_credentials:"Onjuiste inloggegevens",username:"Gebruikersnaam",password:"Wachtwoord",login:"Inloggen"},v={number:"Getal"},h={plot:"Grafiek"},k={radio:"Keuzerondje"},w={slider:"Schuifbalk"},f={drop_to_upload:"Sleep een videobestand hier om te uploaden"},S={edit:"Bewerken",retry:"Opnieuw proberen",undo:"Ongedaan maken",submit:"Verzenden",cancel:"Annuleren",like:"Vind ik leuk",dislike:"Vind ik niet leuk",clear:"Gesprek wissen"},j={_name:e,common:o,upload_text:n,"3D_model":{"3d_model":"3D-model",drop_to_upload:"Sleep een 3D-model (.obj, .glb, .stl, .gltf, .splat of .ply) bestand hier om te uploaden"},annotated_image:a,audio:t,blocks:r,checkbox:i,code:d,color_picker:l,dataframe:s,dropdown:c,errors:p,file:u,highlighted_text:g,image:_,label:m,login:b,number:v,plot:h,radio:k,slider:w,video:f,chatbot:S}; + +export { e as _name, a as annotated_image, t as audio, r as blocks, S as chatbot, i as checkbox, d as code, l as color_picker, o as common, s as dataframe, j as default, c as dropdown, p as errors, u as file, g as highlighted_text, _ as image, m as label, b as login, v as number, h as plot, k as radio, w as slider, n as upload_text, f as video }; +//# sourceMappingURL=nl-B32Jky1V.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/pl-BGo_kgCP.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/pl-BGo_kgCP.js new file mode 100644 index 0000000000000000000000000000000000000000..aae571eba8f5875390933971a8c61eb8e5244d30 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/pl-BGo_kgCP.js @@ -0,0 +1,4 @@ +const o="Polski",a={annotated_image:"Obraz z adnotacjami"},e={allow_recording_access:"Proszę zezwolić na dostęp do mikrofonu w celu nagrywania.",audio:"Audio",record_from_microphone:"Nagraj z mikrofonu",stop_recording:"Zatrzymaj nagrywanie",no_device_support:"Nie można uzyskać dostępu do urządzeń multimedialnych. Upewnij się, że działasz na bezpiecznym źródle (https) lub localhost (lub przekazałeś prawidłowy certyfikat SSL do ssl_verify), i że zezwoliłeś przeglądarce na dostęp do twojego urządzenia.",stop:"Stop",resume:"Wznów",record:"Nagrywaj",no_microphone:"Nie znaleziono mikrofonu",pause:"Pauza",play:"Odtwórz",waiting:"Oczekiwanie",drop_to_upload:"Upuść plik audio tutaj, aby go przesłać"},i={connection_can_break:"Na urządzeniu mobilnym połączenie może zostać przerwane, jeśli ta karta straci fokus lub urządzenie przejdzie w tryb uśpienia, tracąc twoje miejsce w kolejce.",long_requests_queue:"Istnieje długa kolejka oczekujących żądań. Zduplikuj ten Space, aby ją pominąć.",lost_connection:"Utracono połączenie z powodu opuszczenia strony. Powrót do kolejki...",waiting_for_inputs:"Oczekiwanie na zakończenie przesyłania pliku(ów), proszę spróbować ponownie."},r={checkbox:"Pole wyboru",checkbox_group:"Grupa pól wyboru"},t={code:"Kod"},n={color_picker:"Wybór koloru"},l={built_with:"Zbudowane z",built_with_gradio:"Zbudowane z Gradio",clear:"Wyczyść",download:"Pobierz",edit:"Edytuj",empty:"Pusty",error:"Błąd",hosted_on:"Hostowane na",loading:"Ładowanie",logo:"Logo",or:"lub",remove:"Usuń",settings:"Ustawienia",share:"Udostępnij",submit:"Wyślij",undo:"Cofnij",no_devices:"Nie znaleziono urządzeń",language:"Język",display_theme:"Motyw wyświetlania",pwa:"Progresywna aplikacja webowa"},s={incorrect_format:"Nieprawidłowy format, obsługiwane są tylko pliki CSV i TSV",new_column:"Dodaj kolumnę",new_row:"Nowy wiersz",add_row_above:"Dodaj wiersz powyżej",add_row_below:"Dodaj wiersz poniżej",add_column_left:"Dodaj kolumnę po lewej",add_column_right:"Dodaj kolumnę po prawej",delete_row:"Usuń wiersz",delete_column:"Usuń kolumnę",sort_column:"Sortuj kolumnę",sort_ascending:"Sortuj rosnąco",sort_descending:"Sortuj malejąco",drop_to_upload:"Upuść pliki CSV lub TSV tutaj, aby zaimportować dane do ramki danych",clear_sort:"Wyczyść sortowanie"},d={dropdown:"Lista rozwijana"},p={build_error:"Wystąpił błąd kompilacji",config_error:"Wystąpił błąd konfiguracji",contact_page_author:"Proszę skontaktować się z autorem strony, aby go poinformować.",no_app_file:"Brak pliku aplikacji",runtime_error:"Wystąpił błąd wykonania",space_not_working:'"Space nie działa, ponieważ" {0}',space_paused:"Space jest wstrzymany",use_via_api:"Użyj przez API",use_via_api_or_mcp:"Użyj przez API lub MCP"},u={uploading:"Przesyłanie..."},c={highlighted_text:"Wyróżniony tekst"},z={allow_webcam_access:"Proszę zezwolić na dostęp do kamery internetowej w celu nagrywania.",brush_color:"Kolor pędzla",brush_radius:"Rozmiar pędzla",image:"Obraz",remove_image:"Usuń obraz",select_brush_color:"Wybierz kolor pędzla",start_drawing:"Rozpocznij rysowanie",use_brush:"Użyj pędzla",drop_to_upload:"Upuść plik obrazu tutaj, aby go przesłać"},_={label:"Etykieta"},w={enable_cookies:"Jeśli odwiedzasz HuggingFace Space w trybie incognito, musisz włączyć pliki cookie stron trzecich.",incorrect_credentials:"Nieprawidłowe dane logowania",username:"Nazwa użytkownika",password:"Hasło",login:"Zaloguj się"},y={number:"Liczba"},k={plot:"Wykres"},b={radio:"Przycisk opcji"},j={slider:"Suwak"},m={click_to_upload:"Kliknij, aby przesłać",drop_audio:"Upuść plik audio tutaj",drop_csv:"Upuść plik CSV tutaj",drop_file:"Upuść plik tutaj",drop_image:"Upuść obraz tutaj",drop_video:"Upuść plik wideo tutaj",drop_gallery:"Upuść media tutaj",paste_clipboard:"Wklej ze schowka"},g={drop_to_upload:"Upuść plik wideo tutaj, aby go przesłać"},h={edit:"Edytuj",retry:"Spróbuj ponownie",undo:"Cofnij",submit:"Wyślij",cancel:"Anuluj",like:"Lubię to",dislike:"Nie lubię tego",clear:"Wyczyść czat"},f={_name:o,"3D_model":{"3d_model":"Model 3D",drop_to_upload:"Upuść plik modelu 3D (.obj, .glb, .stl, .gltf, .splat lub .ply) tutaj, aby go przesłać"},annotated_image:a,audio:e,blocks:i,checkbox:r,code:t,color_picker:n,common:l,dataframe:s,dropdown:d,errors:p,file:u,highlighted_text:c,image:z,label:_,login:w,number:y,plot:k,radio:b,slider:j,upload_text:m,video:g,chatbot:h}; + +export { o as _name, a as annotated_image, e as audio, i as blocks, h as chatbot, r as checkbox, t as code, n as color_picker, l as common, s as dataframe, f as default, d as dropdown, p as errors, u as file, c as highlighted_text, z as image, _ as label, w as login, y as number, k as plot, b as radio, j as slider, m as upload_text, g as video }; +//# sourceMappingURL=pl-BGo_kgCP.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/prism-python--2v-p3P4.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/prism-python--2v-p3P4.js new file mode 100644 index 0000000000000000000000000000000000000000..0ef5764a510918f3d4d66c305c14f26d93f78b31 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/prism-python--2v-p3P4.js @@ -0,0 +1,7 @@ +import { o as on, u as us } from './2-BLdXJizP.js'; + +var q={exports:{}},X;function ae(){return X||(X=1,(function(G){var N=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};var i=(function(g){var h=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,y=0,F={},s={manual:g.Prism&&g.Prism.manual,disableWorkerMessageHandler:g.Prism&&g.Prism.disableWorkerMessageHandler,util:{encode:function t(e){return e instanceof b?new b(e.type,t(e.content),e.alias):Array.isArray(e)?e.map(t):e.replace(/&/g,"&").replace(/"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(n){var t=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(n.stack)||[])[1];if(t){var e=document.getElementsByTagName("script");for(var a in e)if(e[a].src==t)return e[a]}return null}},isActive:function(t,e,a){for(var n="no-"+e;t;){var r=t.classList;if(r.contains(e))return true;if(r.contains(n))return false;t=t.parentElement;}return !!a}},languages:{plain:F,plaintext:F,text:F,txt:F,extend:function(t,e){var a=s.util.clone(s.languages[t]);for(var n in e)a[n]=e[n];return a},insertBefore:function(t,e,a,n){n=n||s.languages;var r=n[t],l={};for(var o in r)if(r.hasOwnProperty(o)){if(o==e)for(var u in a)a.hasOwnProperty(u)&&(l[u]=a[u]);a.hasOwnProperty(o)||(l[o]=r[o]);}var d=n[t];return n[t]=l,s.languages.DFS(s.languages,function(m,A){A===d&&m!=t&&(this[m]=l);}),l},DFS:function t(e,a,n,r){r=r||{};var l=s.util.objId;for(var o in e)if(e.hasOwnProperty(o)){a.call(e,o,e[o],n||o);var u=e[o],d=s.util.type(u);d==="Object"&&!r[l(u)]?(r[l(u)]=true,t(u,a,null,r)):d==="Array"&&!r[l(u)]&&(r[l(u)]=true,t(u,a,o,r));}}},plugins:{},highlightAll:function(t,e){s.highlightAllUnder(document,t,e);},highlightAllUnder:function(t,e,a){var n={callback:a,container:t,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",n),n.elements=Array.prototype.slice.apply(n.container.querySelectorAll(n.selector)),s.hooks.run("before-all-elements-highlight",n);for(var r=0,l;l=n.elements[r++];)s.highlightElement(l,e===true,n.callback);},highlightElement:function(t,e,a){var n=s.util.getLanguage(t),r=s.languages[n];s.util.setLanguage(t,n);var l=t.parentElement;l&&l.nodeName.toLowerCase()==="pre"&&s.util.setLanguage(l,n);var o=t.textContent,u={element:t,language:n,grammar:r,code:o};function d(A){u.highlightedCode=A,s.hooks.run("before-insert",u),u.element.innerHTML=u.highlightedCode,s.hooks.run("after-highlight",u),s.hooks.run("complete",u),a&&a.call(u.element);}if(s.hooks.run("before-sanity-check",u),l=u.element.parentElement,l&&l.nodeName.toLowerCase()==="pre"&&!l.hasAttribute("tabindex")&&l.setAttribute("tabindex","0"),!u.code){s.hooks.run("complete",u),a&&a.call(u.element);return}if(s.hooks.run("before-highlight",u),!u.grammar){d(s.util.encode(u.code));return}if(e&&g.Worker){var m=new Worker(s.filename);m.onmessage=function(A){d(A.data);},m.postMessage(JSON.stringify({language:u.language,code:u.code,immediateClose:true}));}else d(s.highlight(u.code,u.grammar,u.language));},highlight:function(t,e,a){var n={code:t,grammar:e,language:a};if(s.hooks.run("before-tokenize",n),!n.grammar)throw new Error('The language "'+n.language+'" has no grammar.');return n.tokens=s.tokenize(n.code,n.grammar),s.hooks.run("after-tokenize",n),b.stringify(s.util.encode(n.tokens),n.language)},tokenize:function(t,e){var a=e.rest;if(a){for(var n in a)e[n]=a[n];delete e.rest;}var r=new _;return S(r,r.head,t),T(t,r,e,r.head,0),C(r)},hooks:{all:{},add:function(t,e){var a=s.hooks.all;a[t]=a[t]||[],a[t].push(e);},run:function(t,e){var a=s.hooks.all[t];if(!(!a||!a.length))for(var n=0,r;r=a[n++];)r(e);}},Token:b};g.Prism=s;function b(t,e,a,n){this.type=t,this.content=e,this.alias=a,this.length=(n||"").length|0;}b.stringify=function t(e,a){if(typeof e=="string")return e;if(Array.isArray(e)){var n="";return e.forEach(function(d){n+=t(d,a);}),n}var r={type:e.type,content:t(e.content,a),tag:"span",classes:["token",e.type],attributes:{},language:a},l=e.alias;l&&(Array.isArray(l)?Array.prototype.push.apply(r.classes,l):r.classes.push(l)),s.hooks.run("wrap",r);var o="";for(var u in r.attributes)o+=" "+u+'="'+(r.attributes[u]||"").replace(/"/g,""")+'"';return "<"+r.tag+' class="'+r.classes.join(" ")+'"'+o+">"+r.content+""};function E(t,e,a,n){t.lastIndex=e;var r=t.exec(a);if(r&&n&&r[1]){var l=r[1].length;r.index+=l,r[0]=r[0].slice(l);}return r}function T(t,e,a,n,r,l){for(var o in a)if(!(!a.hasOwnProperty(o)||!a[o])){var u=a[o];u=Array.isArray(u)?u:[u];for(var d=0;d=l.reach);w+=v.value.length,v=v.next){var $=v.value;if(e.length>t.length)return;if(!($ instanceof b)){var z=1,x;if(Z){if(x=E(B,w,t,H),!x||x.index>=t.length)break;var L=x.index,V=x.index+x[0].length,k=w;for(k+=v.value.length;L>=k;)v=v.next,k+=v.value.length;if(k-=v.value.length,w=k,v.value instanceof b)continue;for(var P=v;P!==e.tail&&(kl.reach&&(l.reach=R);var D=v.prev;M&&(D=S(e,D,M),w+=M.length),j(e,D,z);var ee=new b(o,A?s.tokenize(I,A):I,K,I);if(v=S(e,D,ee),U&&S(e,v,U),z>1){var O={cause:o+","+d,reach:R};T(t,e,a,v.prev,w,O),l&&O.reach>l.reach&&(l.reach=O.reach);}}}}}}function _(){var t={value:null,prev:null,next:null},e={value:null,prev:t,next:null};t.next=e,this.head=t,this.tail=e,this.length=0;}function S(t,e,a){var n=e.next,r={value:a,prev:e,next:n};return e.next=r,n.prev=r,t.length++,r}function j(t,e,a){for(var n=e.next,r=0;r/,greedy:true},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:true},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:true,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:true,greedy:true,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:true},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:true},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:true,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:true}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},i.languages.markup.tag.inside["attr-value"].inside.entity=i.languages.markup.entity,i.languages.markup.doctype.inside["internal-subset"].inside=i.languages.markup,i.hooks.add("wrap",function(g){g.type==="entity"&&(g.attributes.title=g.content.replace(/&/,"&"));}),Object.defineProperty(i.languages.markup.tag,"addInlined",{value:function(h,y){var F={};F["language-"+y]={pattern:/(^$)/i,lookbehind:true,inside:i.languages[y]},F.cdata=/^$/i;var s={"included-cdata":{pattern://i,inside:F}};s["language-"+y]={pattern:/[\s\S]+/,inside:i.languages[y]};var b={};b[h]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return h}),"i"),lookbehind:true,greedy:true,inside:s},i.languages.insertBefore("markup","cdata",b);}}),Object.defineProperty(i.languages.markup.tag,"addAttribute",{value:function(g,h){i.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+g+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:true,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:true,alias:[h,"language-"+h],inside:i.languages[h]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}});}}),i.languages.html=i.languages.markup,i.languages.mathml=i.languages.markup,i.languages.svg=i.languages.markup,i.languages.xml=i.languages.extend("markup",{}),i.languages.ssml=i.languages.xml,i.languages.atom=i.languages.xml,i.languages.rss=i.languages.xml,(function(g){var h=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;g.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+h.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:true,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:true}}},url:{pattern:RegExp("\\burl\\((?:"+h.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:true,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+h.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+h.source+")*(?=\\s*\\{)"),lookbehind:true},string:{pattern:h,greedy:true},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:true},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:true},punctuation:/[(){};:,]/},g.languages.css.atrule.inside.rest=g.languages.css;var y=g.languages.markup;y&&(y.tag.addInlined("style","css"),y.tag.addAttribute("style","css"));})(i),i.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:true,greedy:true},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:true,greedy:true}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:true},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:true,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},i.languages.javascript=i.languages.extend("clike",{"class-name":[i.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:true}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:true},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:true}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:true},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),i.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,i.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:true,greedy:true,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:true,alias:"language-regex",inside:i.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:true,inside:i.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:true,inside:i.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:true,inside:i.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:true,inside:i.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),i.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:true,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:true,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:true,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:i.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:true,greedy:true,alias:"property"}}),i.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:true,alias:"property"}}),i.languages.markup&&(i.languages.markup.tag.addInlined("script","javascript"),i.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),i.languages.js=i.languages.javascript,(function(){if(typeof i>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var g="Loading…",h=function(p,c){return "✖ Error "+p+" while fetching file: "+c},y="✖ Error: File does not exist or is empty",F={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},s="data-src-status",b="loading",E="loaded",T="failed",_="pre[data-src]:not(["+s+'="'+E+'"]):not(['+s+'="'+b+'"])';function S(p,c,f){var t=new XMLHttpRequest;t.open("GET",p,true),t.onreadystatechange=function(){t.readyState==4&&(t.status<400&&t.responseText?c(t.responseText):t.status>=400?f(h(t.status,t.statusText)):f(y));},t.send(null);}function j(p){var c=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(p||"");if(c){var f=Number(c[1]),t=c[2],e=c[3];return t?e?[f,Number(e)]:[f,void 0]:[f,f]}}i.hooks.add("before-highlightall",function(p){p.selector+=", "+_;}),i.hooks.add("before-sanity-check",function(p){var c=p.element;if(c.matches(_)){p.code="",c.setAttribute(s,b);var f=c.appendChild(document.createElement("CODE"));f.textContent=g;var t=c.getAttribute("data-src"),e=p.language;if(e==="none"){var a=(/\.(\w+)$/.exec(t)||[,"none"])[1];e=F[a]||a;}i.util.setLanguage(f,e),i.util.setLanguage(c,e);var n=i.plugins.autoloader;n&&n.loadLanguages(e),S(t,function(r){c.setAttribute(s,E);var l=j(c.getAttribute("data-range"));if(l){var o=r.split(/\r\n?|\n/g),u=l[0],d=l[1]==null?o.length:l[1];u<0&&(u+=o.length),u=Math.max(0,Math.min(u-1,o.length)),d<0&&(d+=o.length),d=Math.max(0,Math.min(d,o.length)),r=o.slice(u,d).join(` +`),c.hasAttribute("data-start")||c.setAttribute("data-start",String(u+1));}f.textContent=r,i.highlightElement(f);},function(r){c.setAttribute(s,T),f.textContent=r;});}}),i.plugins.fileHighlight={highlight:function(c){for(var f=(c||document).querySelectorAll(_),t=0,e;e=f[t++];)i.highlightElement(e);}};var C=false;i.fileHighlight=function(){C||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),C=true),i.plugins.fileHighlight.highlight.apply(this,arguments);};})();})(q)),q.exports}var ne=ae();const se=on(ne);var Y={},J;function re(){return J||(J=1,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:true,greedy:true},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:true,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:true,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:true},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:true,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:true},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:true},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:true},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:true,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python),Y}re(); + +export { ne as n, se as s }; +//# sourceMappingURL=prism-python--2v-p3P4.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/pt-BR-dOf4BQE4.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/pt-BR-dOf4BQE4.js new file mode 100644 index 0000000000000000000000000000000000000000..7f868438e5221db38028d17b52426ffc09032082 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/pt-BR-dOf4BQE4.js @@ -0,0 +1,4 @@ +const o="Português do Brasil",a={built_with_gradio:"Construído com Gradio",clear:"Limpar",error:"Erro",flag:"Marcar",loading:"Carregando",or:"ou",submit:"Enviar",built_with:"Construído com",download:"Baixar",edit:"Editar",empty:"Vazio",hosted_on:"Hospedado em",logo:"Logotipo",settings:"Configurações",undo:"Desfazer",no_devices:"Nenhum dispositivo encontrado",language:"Idioma",display_theme:"Tema de exibição",pwa:"Aplicativo web progressivo",share:"Compartilhar",remove:"Remover"},e={click_to_upload:"Clique para fazer upload",drop_audio:"Solte o áudio aqui",drop_csv:"Solte o CSV aqui",drop_file:"Solte o arquivo aqui",drop_image:"Solte a imagem aqui",drop_video:"Solte o vídeo aqui",drop_gallery:"Solte a mídia aqui",paste_clipboard:"Colar da área de transferência"},r={annotated_image:"Imagem anotada"},i={allow_recording_access:"Por favor, permita o acesso ao microfone para gravação.",audio:"Áudio",drop_to_upload:"Solte um arquivo de áudio aqui para fazer upload",record_from_microphone:"Gravar do microfone",stop_recording:"Parar gravação",no_device_support:"Os dispositivos de mídia não puderam ser acessados. Verifique se você está executando em uma origem segura (https) ou localhost (ou se forneceu um certificado SSL válido para ssl_verify), e se permitiu o acesso do navegador ao seu dispositivo.",stop:"Parar",resume:"Retomar",record:"Gravar",no_microphone:"Nenhum microfone encontrado",pause:"Pausar",play:"Reproduzir",waiting:"Aguardando"},d={connection_can_break:"No celular, a conexão pode ser interrompida se esta aba ficar em segundo plano ou se o dispositivo entrar em modo de repouso, fazendo você perder sua posição na fila.",long_requests_queue:"Há uma longa fila de solicitações pendentes. Duplique este Space para pular a fila.",lost_connection:"Conexão perdida ao sair da página. Retornando para a fila...",waiting_for_inputs:"Aguardando o(s) arquivo(s) terminar(em) de ser carregado(s), por favor, tente novamente."},n={checkbox:"Caixa de seleção",checkbox_group:"Grupo de caixas de seleção"},t={code:"Código"},s={color_picker:"Seletor de cor"},c={incorrect_format:"Formato incorreto, apenas arquivos CSV e TSV são suportados",new_column:"Adicionar coluna",new_row:"Nova linha",add_row_above:"Adicionar linha acima",add_row_below:"Adicionar linha abaixo",delete_row:"Excluir linha",delete_column:"Excluir coluna",add_column_left:"Adicionar coluna à esquerda",add_column_right:"Adicionar coluna à direita",sort_column:"Classificar coluna",sort_ascending:"Ordenar em ordem crescente",sort_descending:"Ordenar em ordem decrescente",drop_to_upload:"Solte arquivos CSV ou TSV aqui para importar dados para o dataframe",clear_sort:"Limpar classificação",filter:"Filtrar",clear_filter:"Limpar filtros"},l={dropdown:"Menu suspenso"},u={build_error:"Houve um erro de compilação",config_error:"Há um erro de configuração",contact_page_author:"Por favor, entre em contato com o autor da página para informá-lo.",no_app_file:"Não há arquivo de aplicativo",space_not_working:'"O Space não está funcionando porque" {0}',space_paused:"O Space está pausado",use_via_api:"Usar via API",use_via_api_or_mcp:"Usar via API ou MCP",runtime_error:"Houve um erro de execução"},p={uploading:"Carregando..."},m={highlighted_text:"Texto destacado"},_={allow_webcam_access:"Por favor, permita o acesso à webcam para gravação.",brush_color:"Cor do pincel",brush_radius:"Tamanho do pincel",image:"Imagem",remove_image:"Remover imagem",select_brush_color:"Selecione a cor do pincel",start_drawing:"Começar a desenhar",use_brush:"Usar pincel",drop_to_upload:"Solte um arquivo de imagem aqui para fazer upload"},g={label:"Rótulo"},v={enable_cookies:"Se você estiver visitando um HuggingFace Space no modo incógnito, você deve habilitar cookies de terceiros.",incorrect_credentials:"Credenciais incorretas",username:"Nome de usuário",password:"Senha",login:"Entrar"},f={number:"Número"},h={plot:"Gráfico"},b={radio:"Botão de opção"},q={slider:"Controle deslizante"},S={drop_to_upload:"Solte um arquivo de vídeo aqui para fazer upload"},w={edit:"Editar",retry:"Tentar novamente",undo:"Desfazer",submit:"Enviar",cancel:"Cancelar",like:"Gostei",dislike:"Não gostei",clear:"Limpar conversa"},C={_name:o,common:a,upload_text:e,"3D_model":{"3d_model":"Modelo 3D",drop_to_upload:"Solte um arquivo de modelo 3D (.obj, .glb, .stl, .gltf, .splat ou .ply) aqui para fazer upload"},annotated_image:r,audio:i,blocks:d,checkbox:n,code:t,color_picker:s,dataframe:c,dropdown:l,errors:u,file:p,highlighted_text:m,image:_,label:g,login:v,number:f,plot:h,radio:b,slider:q,video:S,chatbot:w}; + +export { o as _name, r as annotated_image, i as audio, d as blocks, w as chatbot, n as checkbox, t as code, s as color_picker, a as common, c as dataframe, C as default, l as dropdown, u as errors, p as file, m as highlighted_text, _ as image, g as label, v as login, f as number, h as plot, b as radio, q as slider, e as upload_text, S as video }; +//# sourceMappingURL=pt-BR-dOf4BQE4.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/pt-CFijILHh.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/pt-CFijILHh.js new file mode 100644 index 0000000000000000000000000000000000000000..b2725dfd94bbbf1ec1adbbc79a3405c65488db21 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/pt-CFijILHh.js @@ -0,0 +1,4 @@ +const o="Português",a={annotated_image:"Imagem anotada"},e={allow_recording_access:"Por favor, permita o acesso ao microfone para gravação.",audio:"Áudio",record_from_microphone:"Gravar do microfone",stop_recording:"Parar gravação",no_device_support:"Não é possível aceder a dispositivos de média. Certifique-se de que está a executar numa fonte segura (https) ou localhost (ou passou um certificado SSL válido para ssl_verify), e que permitiu o acesso do navegador ao seu dispositivo.",stop:"Parar",resume:"Retomar",record:"Gravar",no_microphone:"Nenhum microfone encontrado",pause:"Pausar",play:"Reproduzir",waiting:"Aguardando",drop_to_upload:"Solte um arquivo de áudio aqui para fazer upload"},r={connection_can_break:"No telemóvel, a ligação pode ser interrompida se este separador perder o foco ou o dispositivo entrar em modo de suspensão, perdendo a sua posição na fila.",long_requests_queue:"Há uma longa fila de solicitações pendentes. Duplique este Space para saltar a fila.",lost_connection:"Ligação perdida devido à saída da página. A voltar à fila...",waiting_for_inputs:"A aguardar o término do carregamento do(s) ficheiro(s), por favor, tente novamente."},i={checkbox:"Caixa de seleção",checkbox_group:"Grupo de caixas de seleção"},d={code:"Código"},t={color_picker:"Seletor de cor"},s={built_with:"Construído com",built_with_gradio:"Construído com Gradio",clear:"Limpar",download:"Descarregar",edit:"Editar",empty:"Vazio",error:"Erro",hosted_on:"Alojado em",loading:"A carregar",logo:"Logótipo",or:"ou",remove:"Remover",settings:"Configurações",share:"Partilhar",submit:"Enviar",undo:"Desfazer",no_devices:"Nenhum dispositivo encontrado",language:"Idioma",display_theme:"Tema de exibição",pwa:"Aplicação web progressiva"},n={incorrect_format:"Formato incorreto, apenas ficheiros CSV e TSV são suportados",new_column:"Adicionar coluna",new_row:"Nova linha",add_row_above:"Adicionar linha acima",add_row_below:"Adicionar linha abaixo",add_column_left:"Adicionar coluna à esquerda",add_column_right:"Adicionar coluna à direita",delete_row:"Eliminar linha",delete_column:"Eliminar coluna",sort_column:"Ordenar coluna",sort_ascending:"Ordenar por ordem crescente",sort_descending:"Ordenar por ordem decrescente",drop_to_upload:"Solte ficheiros CSV ou TSV aqui para importar dados para o dataframe",clear_sort:"Limpar ordenação",filter:"Filtrar",clear_filter:"Limpar filtros"},c={dropdown:"Lista suspensa"},l={build_error:"Há um erro de compilação",config_error:"Há um erro de configuração",contact_page_author:"Por favor, entre em contacto com o autor da página para informá-lo.",no_app_file:"Não há ficheiro de aplicação",runtime_error:"Há um erro de execução",space_not_working:'"O Space não está a funcionar porque" {0}',space_paused:"O Space está em pausa",use_via_api:"Usar via API",use_via_api_or_mcp:"Usar via API ou MCP"},u={uploading:"A carregar..."},p={highlighted_text:"Texto destacado"},m={allow_webcam_access:"Por favor, permita o acesso à webcam para gravação.",brush_color:"Cor do pincel",brush_radius:"Tamanho do pincel",image:"Imagem",remove_image:"Remover imagem",select_brush_color:"Selecionar cor do pincel",start_drawing:"Começar a desenhar",use_brush:"Usar pincel",drop_to_upload:"Solte um ficheiro de imagem aqui para fazer upload"},_={label:"Rótulo"},g={enable_cookies:"Se estiver a visitar um Space HuggingFace no modo anónimo, precisa de ativar cookies de terceiros.",incorrect_credentials:"Credenciais incorretas",username:"Nome de utilizador",password:"Palavra-passe",login:"Iniciar sessão"},f={number:"Número"},v={plot:"Gráfico"},h={radio:"Botão de opção"},b={slider:"Controlo deslizante"},S={click_to_upload:"Clique para carregar",drop_audio:"Solte o áudio aqui",drop_csv:"Solte o CSV aqui",drop_file:"Solte o ficheiro aqui",drop_image:"Solte a imagem aqui",drop_video:"Solte o vídeo aqui",drop_gallery:"Solte a média aqui",paste_clipboard:"Colar da área de transferência"},w={drop_to_upload:"Solte um ficheiro de vídeo aqui para fazer upload"},q={edit:"Editar",retry:"Tentar novamente",undo:"Desfazer",submit:"Enviar",cancel:"Cancelar",like:"Gosto",dislike:"Não gosto",clear:"Limpar conversa"},C={_name:o,"3D_model":{"3d_model":"Modelo 3D",drop_to_upload:"Solte um arquivo de modelo 3D (.obj, .glb, .stl, .gltf, .splat ou .ply) aqui para fazer upload"},annotated_image:a,audio:e,blocks:r,checkbox:i,code:d,color_picker:t,common:s,dataframe:n,dropdown:c,errors:l,file:u,highlighted_text:p,image:m,label:_,login:g,number:f,plot:v,radio:h,slider:b,upload_text:S,video:w,chatbot:q}; + +export { o as _name, a as annotated_image, e as audio, r as blocks, q as chatbot, i as checkbox, d as code, t as color_picker, s as common, n as dataframe, C as default, c as dropdown, l as errors, u as file, p as highlighted_text, m as image, _ as label, g as login, f as number, v as plot, h as radio, b as slider, S as upload_text, w as video }; +//# sourceMappingURL=pt-CFijILHh.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/ro-BeOmQJCE.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/ro-BeOmQJCE.js new file mode 100644 index 0000000000000000000000000000000000000000..f19d93193596cf759234fe0abec385f9aa89fb69 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/ro-BeOmQJCE.js @@ -0,0 +1,4 @@ +const e="Română",i={annotated_image:"Imagine adnotată"},a={allow_recording_access:"Vă rugăm să permiteți accesul la microfon pentru înregistrare.",audio:"Audio",record_from_microphone:"Înregistrare de la microfon",stop_recording:"Oprire înregistrare",no_device_support:"Nu se poate accesa dispozitivele media. Asigurați-vă că rulați pe o sursă sigură (https) sau localhost (sau ați transmis un certificat SSL valid la ssl_verify), și că ați permis browserului accesul la dispozitivul dvs.",stop:"Stop",resume:"Reluare",record:"Înregistrare",no_microphone:"Nu s-a găsit niciun microfon",pause:"Pauză",play:"Redare",waiting:"Așteptare",drop_to_upload:"Plasați un fișier audio aici pentru a-l încărca"},o={connection_can_break:"Pe mobil, conexiunea poate fi întreruptă dacă această filă își pierde focusul sau dispozitivul intră în modul de repaus, pierzându-vă poziția în coadă.",long_requests_queue:"Există o coadă lungă de cereri în așteptare. Duplicați acest Space pentru a o evita.",lost_connection:"Conexiune pierdută din cauza părăsirii paginii. Revenire la coadă...",waiting_for_inputs:"Așteptarea finalizării încărcării fișierului (fișierelor), vă rugăm să reîncercați."},r={checkbox:"Casetă de bifat",checkbox_group:"Grup de casete de bifat"},t={code:"Cod"},c={color_picker:"Selector de culoare"},n={built_with:"Construit cu",built_with_gradio:"Construit cu Gradio",clear:"Șterge",download:"Descarcă",edit:"Editează",empty:"Gol",error:"Eroare",hosted_on:"Găzduit pe",loading:"Se încarcă",logo:"Logo",or:"sau",remove:"Elimină",settings:"Setări",share:"Distribuie",submit:"Trimite",undo:"Anulează",no_devices:"Nu s-au găsit dispozitive",language:"Limbă",display_theme:"Temă de afișare",pwa:"Aplicație web progresivă"},s={incorrect_format:"Format incorect, sunt acceptate doar fișiere CSV și TSV",new_column:"Adaugă coloană",new_row:"Rând nou",add_row_above:"Adaugă rând deasupra",add_row_below:"Adaugă rând dedesubt",add_column_left:"Adaugă coloană la stânga",add_column_right:"Adaugă coloană la dreapta",delete_row:"Șterge rând",delete_column:"Șterge coloana",sort_column:"Sortează coloana",sort_ascending:"Sortează crescător",sort_descending:"Sortează descrescător",drop_to_upload:"Plasați fișiere CSV sau TSV aici pentru a importa datele în tabelul de date",clear_sort:"Șterge sortarea"},l={dropdown:"Listă derulantă"},u={build_error:"Există o eroare de compilare",config_error:"Există o eroare de configurare",contact_page_author:"Vă rugăm să contactați autorul paginii pentru a-l informa.",no_app_file:"Nu există fișier de aplicație",runtime_error:"Există o eroare de execuție",space_not_working:'"Space-ul nu funcționează deoarece" {0}',space_paused:"Space-ul este în pauză",use_via_api:"Utilizați prin API",use_via_api_or_mcp:"Utilizați prin API sau MCP"},d={uploading:"Se încarcă..."},p={highlighted_text:"Text evidențiat"},_={allow_webcam_access:"Vă rugăm să permiteți accesul la camera web pentru înregistrare.",brush_color:"Culoare pensulă",brush_radius:"Dimensiune pensulă",image:"Imagine",remove_image:"Elimină imaginea",select_brush_color:"Selectează culoarea pensulei",start_drawing:"Începe să desenezi",use_brush:"Folosește pensula",drop_to_upload:"Plasați un fișier imagine aici pentru a-l încărca"},g={label:"Etichetă"},m={enable_cookies:"Dacă vizitați un Space HuggingFace în modul incognito, trebuie să activați cookie-urile terțe.",incorrect_credentials:"Credențiale incorecte",username:"Nume de utilizator",password:"Parolă",login:"Autentificare"},b={number:"Număr"},f={plot:"Grafic"},v={radio:"Buton radio"},h={slider:"Glisor"},z={click_to_upload:"Click pentru încărcare",drop_audio:"Plasați audio aici",drop_csv:"Plasați CSV aici",drop_file:"Plasați fișierul aici",drop_image:"Plasați imaginea aici",drop_video:"Plasați video aici",drop_gallery:"Plasați media aici",paste_clipboard:"Lipește din clipboard"},w={drop_to_upload:"Plasați un fișier video aici pentru a-l încărca"},S={edit:"Editează",retry:"Încearcă din nou",undo:"Anulează",submit:"Trimite",cancel:"Anulează",like:"Îmi place",dislike:"Nu-mi place",clear:"Șterge conversația"},P={_name:e,"3D_model":{"3d_model":"Model 3D",drop_to_upload:"Plasați un fișier cu model 3D (.obj, .glb, .stl, .gltf, .splat sau .ply) aici pentru a-l încărca"},annotated_image:i,audio:a,blocks:o,checkbox:r,code:t,color_picker:c,common:n,dataframe:s,dropdown:l,errors:u,file:d,highlighted_text:p,image:_,label:g,login:m,number:b,plot:f,radio:v,slider:h,upload_text:z,video:w,chatbot:S}; + +export { e as _name, i as annotated_image, a as audio, o as blocks, S as chatbot, r as checkbox, t as code, c as color_picker, n as common, s as dataframe, P as default, l as dropdown, u as errors, d as file, p as highlighted_text, _ as image, g as label, m as login, b as number, f as plot, v as radio, h as slider, z as upload_text, w as video }; +//# sourceMappingURL=ro-BeOmQJCE.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/ru-D4j7Vj8W.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/ru-D4j7Vj8W.js new file mode 100644 index 0000000000000000000000000000000000000000..004de433cf95fd729f039fe66109499617c5bd2a --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/ru-D4j7Vj8W.js @@ -0,0 +1,4 @@ +const o="Русский",e={annotated_image:"Изображение с аннотациями"},t={allow_recording_access:"Пожалуйста, разрешите доступ к микрофону для записи.",audio:"Аудио",record_from_microphone:"Запись с микрофона",stop_recording:"Остановить запись",no_device_support:"Невозможно получить доступ к медиа-устройствам. Убедитесь, что вы работаете с безопасного источника (https) или localhost (или передали действительный SSL-сертификат в ssl_verify), и что вы разрешили браузеру доступ к вашему устройству.",stop:"Стоп",resume:"Продолжить",record:"Запись",no_microphone:"Микрофон не найден",pause:"Пауза",play:"Воспроизвести",waiting:"Ожидание",drop_to_upload:"Перетащите аудиофайл сюда для загрузки"},r={connection_can_break:"На мобильном устройстве соединение может прерваться, если эта вкладка потеряет фокус или устройство перейдет в спящий режим, что приведет к потере вашего места в очереди.",long_requests_queue:"Существует длинная очередь ожидающих запросов. Создайте дубликат этого Space, чтобы пропустить очередь.",lost_connection:"Соединение потеряно из-за ухода со страницы. Возвращение в очередь...",waiting_for_inputs:"Ожидание завершения загрузки файла(ов), пожалуйста, повторите попытку."},c={checkbox:"Флажок",checkbox_group:"Группа флажков"},a={code:"Код"},_={color_picker:"Выбор цвета"},n={built_with:"Создано с помощью",built_with_gradio:"Создано с помощью Gradio",clear:"Очистить",download:"Скачать",edit:"Редактировать",empty:"Пусто",error:"Ошибка",hosted_on:"Размещено на",loading:"Загрузка",logo:"Логотип",or:"или",remove:"Удалить",settings:"Настройки",share:"Поделиться",submit:"Отправить",undo:"Отменить",no_devices:"Устройства не найдены",language:"Язык",display_theme:"Тема оформления",pwa:"Прогрессивное веб-приложение"},s={incorrect_format:"Неверный формат, поддерживаются только файлы CSV и TSV",new_column:"Добавить столбец",new_row:"Новая строка",add_row_above:"Добавить строку выше",add_row_below:"Добавить строку ниже",add_column_left:"Добавить столбец слева",add_column_right:"Добавить столбец справа",delete_row:"Удалить строку",delete_column:"Удалить столбец",sort_column:"Сортировать столбец",sort_ascending:"Сортировать по возрастанию",sort_descending:"Сортировать по убыванию",drop_to_upload:"Перетащите файлы CSV или TSV сюда для импорта данных в таблицу данных",clear_sort:"Очистить сортировку"},d={dropdown:"Выпадающий список"},i={build_error:"Произошла ошибка сборки",config_error:"Произошла ошибка конфигурации",contact_page_author:"Пожалуйста, свяжитесь с автором страницы, чтобы сообщить об этом.",no_app_file:"Отсутствует файл приложения",runtime_error:"Произошла ошибка выполнения",space_not_working:'"Space не работает, потому что" {0}',space_paused:"Space приостановлен",use_via_api:"Использовать через API",use_via_api_or_mcp:"Использовать через API или MCP"},l={uploading:"Загрузка..."},p={highlighted_text:"Выделенный текст"},u={allow_webcam_access:"Пожалуйста, разрешите доступ к веб-камере для записи.",brush_color:"Цвет кисти",brush_radius:"Размер кисти",image:"Изображение",remove_image:"Удалить изображение",select_brush_color:"Выбрать цвет кисти",start_drawing:"Начать рисование",use_brush:"Использовать кисть",drop_to_upload:"Перетащите изображение сюда для загрузки"},g={label:"Метка"},m={enable_cookies:"Если вы посещаете Space HuggingFace в режиме инкогнито, вам необходимо включить сторонние куки.",incorrect_credentials:"Неверные учетные данные",username:"Имя пользователя",password:"Пароль",login:"Войти"},h={number:"Число"},b={plot:"График"},w={radio:"Переключатель"},f={slider:"Ползунок"},k={click_to_upload:"Нажмите для загрузки",drop_audio:"Перетащите аудио сюда",drop_csv:"Перетащите CSV сюда",drop_file:"Перетащите файл сюда",drop_image:"Перетащите изображение сюда",drop_video:"Перетащите видео сюда",drop_gallery:"Перетащите медиа сюда",paste_clipboard:"Вставить из буфера обмена"},v={drop_to_upload:"Перетащите видеофайл сюда для загрузки"},S={edit:"Редактировать",retry:"Повторить",undo:"Отменить",submit:"Отправить",cancel:"Отмена",like:"Нравится",dislike:"Не нравится",clear:"Очистить чат",copy_message:"Копировать сообщение",copied_message:"Сообщение скопировано"},y={new_chat:"Новый чат",message_placeholder:"Введите сообщение...",additional_inputs:"Дополнительные поля",chatbot:"Чат-бот",conversation:"Разговор"},x={_name:o,"3D_model":{"3d_model":"3D-модель",drop_to_upload:"Перетащите сюда 3D-модель (.obj, .glb, .stl, .gltf, .splat или .ply) для загрузки"},annotated_image:e,audio:t,blocks:r,checkbox:c,code:a,color_picker:_,common:n,dataframe:s,dropdown:d,errors:i,file:l,highlighted_text:p,image:u,label:g,login:m,number:h,plot:b,radio:w,slider:f,upload_text:k,video:v,chatbot:S,chat_interface:y}; + +export { o as _name, e as annotated_image, t as audio, r as blocks, y as chat_interface, S as chatbot, c as checkbox, a as code, _ as color_picker, n as common, s as dataframe, x as default, d as dropdown, i as errors, l as file, p as highlighted_text, u as image, g as label, m as login, h as number, b as plot, w as radio, f as slider, k as upload_text, v as video }; +//# sourceMappingURL=ru-D4j7Vj8W.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/state.svelte-CyN-p1Tk.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/state.svelte-CyN-p1Tk.js new file mode 100644 index 0000000000000000000000000000000000000000..03b21cb8aa8a8c0362f122d2dc41d347b391c728 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/state.svelte-CyN-p1Tk.js @@ -0,0 +1,11 @@ +import './async-D55cHugf.js'; +import { g as attr_style, i as stringify, b as store_get, e as ensure_array_like, u as unsubscribe_stores, f as attr_class } from './index-u8mz_F03.js'; +import { Z as Ze } from './index50-G3WrDDFf.js'; +import { s as spring } from './index3-Df92vI-L.js'; +import { e as escape_html } from './escaping-CBnpiEl5.js'; +import { h as html } from './html-CfyvkLET.js'; + +function M(e){e.push('');}function j(e){e.push('');}function C(e){e.push('');}function L(e){e.push('');}function q(e){e.push('');}function B(e){return Ze(e)}function H(e,o){e.component(t=>{let{type:i,messages:n=[],expanded:c=true}=o,h=0;const g={error:"An error occurred.",warning:"Warning.",success:"Success.",info:"Info."};let a=n.length,u=n[0],v=i.charAt(0).toUpperCase()+i.slice(1),l=u?.duration!==null,_=l?`${u.duration}s`:"0s";if(t.push(`
    `),i==="warning"?(t.push(""),q(t)):(t.push(""),i==="info"?(t.push(""),C(t)):(t.push(""),i==="success"?(t.push(""),L(t)):(t.push(""),i==="error"?(t.push(""),j(t)):t.push(""),t.push("")),t.push("")),t.push("")),t.push(`
    ${escape_html(v)} `),a>1?(t.push(""),t.push(`(${escape_html(a)})`)):t.push(""),t.push(` 0})}>`),M(t),t.push(`
    `),c){t.push(""),t.push('
    ');const f=ensure_array_like(n);for(let p=0,d=f.length;p${html(B(w.message||g[i]))}
    `),p"),t.push('
    ')):t.push(""),t.push("");}t.push("");}else t.push("");t.push(" "),l?(t.push(""),t.push(``)):t.push(""),t.push("");});}function U(e,o){e.component(t=>{var i;let{messages:n=[],on_close:c}=o;const h=spring(0,{stiffness:.4,damping:.5});let g=[];t.push(`
    `);const a=ensure_array_like(g);for(let u=0,v=a.length;u'),H(t,{type:l.type,messages:l.messages,expanded:l.expanded}),t.push("
    ");}t.push(""),i&&unsubscribe_stores(i);});}class V{current={};fn_outputs={};fn_inputs={};pending_outputs=new Map;fn_status={};show_progress={};register(o,t,i,n){this.fn_outputs[o]=t,this.fn_inputs[o]=i,this.show_progress[o]=n;}clear(o){o in this.current&&(this.current[o]={});}update(o){this.resolve_args(o).forEach(({id:i,queue_position:n,queue_size:c,eta:h,status:g,message:a,progress:u,stream_state:v,time_limit:l,type:_,used_cache:f,cache_duration:p,avg_time:d})=>{this.current[i]={queue:o.queue||false,queue_size:c,queue_position:n,eta:h,stream_state:v,message:a,progress:u||void 0,status:g,fn_index:o.fn_index,time_limit:l,type:_,show_progress:this.show_progress[o.fn_index],used_cache:f,cache_duration:p,avg_time:d};});}set_status(o,t){this.current[o].status=t;}resolve_args(o){const{fn_index:t,status:i,size:n=void 0,position:c=null,eta:h=null,message:g=null,stream_state:a=null,time_limit:u=null,progress_data:v=null,used_cache:l=null,cache_duration:_=null,avg_time:f=null}=o,p=this.fn_outputs[t],d=this.fn_status[t],w=this.fn_inputs[t];return p.concat(w).map(r=>{let m;const x=this.pending_outputs.get(r)||0;if(d==="pending"&&i!=="pending"){let k=x-1;this.pending_outputs.set(r,k<0?0:k),m=k>0?"pending":i;}else d==="pending"&&i==="pending"?m="pending":d!=="pending"&&i==="pending"?(m="pending",this.pending_outputs.set(r,x+1)):m=i;const y=w.includes(r)&&a?"input":p.includes(r)?"output":"skip";return {id:r,queue_position:c,queue_size:n,eta:h,status:m,message:g,progress:v,stream_state:a,time_limit:u,type:y,used_cache:l,cache_duration:_,avg_time:f}}).filter(r=>r.type!=="skip")}} + +export { U, V }; +//# sourceMappingURL=state.svelte-CyN-p1Tk.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/sv-B36J5JTf.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/sv-B36J5JTf.js new file mode 100644 index 0000000000000000000000000000000000000000..67479d45ed821e456953815ab23e7b5456b24516 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/sv-B36J5JTf.js @@ -0,0 +1,4 @@ +const e="Svenska",t={annotated_image:"Annoterad bild"},r={allow_recording_access:"Tillåt mikrofonåtkomst för inspelning.",audio:"Ljud",record_from_microphone:"Spela in från mikrofon",stop_recording:"Stoppa inspelning",no_device_support:"Kan inte få åtkomst till medieenheter. Se till att du använder en säker källa (https) eller localhost (eller har gett ett giltigt SSL-certifikat till ssl_verify) och att du har gett webbläsaren åtkomst till din enhet.",stop:"Stopp",resume:"Fortsätt",record:"Spela in",no_microphone:"Ingen mikrofon hittades",pause:"Paus",play:"Spela upp",waiting:"Väntar",drop_to_upload:"Släpp en ljudfil här för att ladda upp"},a={connection_can_break:"På mobila enheter kan anslutningen brytas om fliken lämnas eller om enheten går i viloläge, och du förlorar din plats i kön.",long_requests_queue:"Det är en lång kö med väntande förfrågningar. Duplicera detta Space för att hoppa över kön.",lost_connection:"Anslutningen bröts eftersom sidan lämnades. Återgår till kön...",waiting_for_inputs:"Väntar på att fil(er) ska vara klara att ladda upp, vänligen försök igen."},o={checkbox:"Kryssruta",checkbox_group:"Kryssrutgrupp"},n={code:"Kod"},l={color_picker:"Färgväljare"},i={built_with:"Byggt med",built_with_gradio:"Byggt med Gradio",clear:"Rensa",download:"Ladda ner",edit:"Redigera",empty:"Tom",error:"Fel",hosted_on:"Värd på",loading:"Laddar",logo:"Logotyp",or:"eller",remove:"Ta bort",settings:"Inställningar",share:"Dela",submit:"Skicka",undo:"Ångra",no_devices:"Inga enheter hittades",language:"Språk",display_theme:"Visningstema",pwa:"Progressiv webbapplikation"},d={incorrect_format:"Fel format, endast CSV- och TSV-filer stöds",new_column:"Lägg till kolumn",new_row:"Ny rad",add_row_above:"Lägg till rad ovanför",add_row_below:"Lägg till rad nedanför",add_column_left:"Lägg till kolumn till vänster",add_column_right:"Lägg till kolumn till höger",delete_row:"Ta bort rad",delete_column:"Ta bort kolumn",sort_column:"Sortera kolumn",sort_ascending:"Sortera stigande",sort_descending:"Sortera fallande",drop_to_upload:"Släpp CSV- eller TSV-filer här för att importera data till dataramverk",clear_sort:"Rensa sortering"},s={dropdown:"Rullgardinsmeny"},p={build_error:"Det finns ett byggfel",config_error:"Det finns ett konfigurationsfel",contact_page_author:"Kontakta sidans författare för att informera dem.",no_app_file:"Det finns ingen app-fil",runtime_error:"Det finns ett körtidsfel",space_not_working:'"Space fungerar inte eftersom" {0}',space_paused:"Space är pausat",use_via_api:"Använd via API",use_via_api_or_mcp:"Använd via API eller MCP"},g={uploading:"Laddar upp..."},c={highlighted_text:"Markerad text"},_={allow_webcam_access:"Tillåt webbkameråtkomst för inspelning.",brush_color:"Penselfärg",brush_radius:"Penselstorlek",image:"Bild",remove_image:"Ta bort bild",select_brush_color:"Välj penselfärg",start_drawing:"Börja rita",use_brush:"Använd pensel",drop_to_upload:"Släpp en bildfil här för att ladda upp"},u={label:"Etikett"},m={enable_cookies:"Om du besöker ett HuggingFace Space i inkognitoläge måste du aktivera tredjepartscookies.",incorrect_credentials:"Felaktiga inloggningsuppgifter",username:"Användarnamn",password:"Lösenord",login:"Logga in"},f={number:"Nummer"},k={plot:"Diagram"},h={radio:"Radioknapp"},b={slider:"Skjutreglage"},S={click_to_upload:"Klicka för att ladda upp",drop_audio:"Släpp ljud här",drop_csv:"Släpp CSV här",drop_file:"Släpp fil här",drop_image:"Släpp bild här",drop_video:"Släpp video här",drop_gallery:"Släpp media här",paste_clipboard:"Klistra in från urklipp"},v={drop_to_upload:"Släpp en videofil här för att ladda upp"},w={edit:"Redigera",retry:"Försök igen",undo:"Ångra",submit:"Skicka",cancel:"Avbryt",like:"Gilla",dislike:"Ogilla",clear:"Rensa chatten"},y={_name:e,"3D_model":{"3d_model":"3D-modell",drop_to_upload:"Släpp en 3D-modellfil (.obj, .glb, .stl, .gltf, .splat eller .ply) här för att ladda upp"},annotated_image:t,audio:r,blocks:a,checkbox:o,code:n,color_picker:l,common:i,dataframe:d,dropdown:s,errors:p,file:g,highlighted_text:c,image:_,label:u,login:m,number:f,plot:k,radio:h,slider:b,upload_text:S,video:v,chatbot:w}; + +export { e as _name, t as annotated_image, r as audio, a as blocks, w as chatbot, o as checkbox, n as code, l as color_picker, i as common, d as dataframe, y as default, s as dropdown, p as errors, g as file, c as highlighted_text, _ as image, u as label, m as login, f as number, k as plot, h as radio, b as slider, S as upload_text, v as video }; +//# sourceMappingURL=sv-B36J5JTf.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/tinycolor-DfhFic3A.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/tinycolor-DfhFic3A.js new file mode 100644 index 0000000000000000000000000000000000000000..b31231782d6e6976335ffe483ba73cf48256e8d2 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/tinycolor-DfhFic3A.js @@ -0,0 +1,4 @@ +function m(t){"@babel/helpers - typeof";return m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},m(t)}var T=/^\s+/,C=/\s+$/;function s(t,r){if(t=t||"",r=r||{},t instanceof s)return t;if(!(this instanceof s))return new s(t,r);var e=I(t);this._originalInput=t,this._r=e.r,this._g=e.g,this._b=e.b,this._a=e.a,this._roundA=Math.round(100*this._a)/100,this._format=r.format||e.format,this._gradientType=r.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=e.ok;}s.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return !this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var r=this.toRgb();return (r.r*299+r.g*587+r.b*114)/1e3},getLuminance:function(){var r=this.toRgb(),e,a,i,n,h,f;return e=r.r/255,a=r.g/255,i=r.b/255,e<=.03928?n=e/12.92:n=Math.pow((e+.055)/1.055,2.4),a<=.03928?h=a/12.92:h=Math.pow((a+.055)/1.055,2.4),i<=.03928?f=i/12.92:f=Math.pow((i+.055)/1.055,2.4),.2126*n+.7152*h+.0722*f},setAlpha:function(r){return this._a=w(r),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var r=A(this._r,this._g,this._b);return {h:r.h*360,s:r.s,v:r.v,a:this._a}},toHsvString:function(){var r=A(this._r,this._g,this._b),e=Math.round(r.h*360),a=Math.round(r.s*100),i=Math.round(r.v*100);return this._a==1?"hsv("+e+", "+a+"%, "+i+"%)":"hsva("+e+", "+a+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var r=x(this._r,this._g,this._b);return {h:r.h*360,s:r.s,l:r.l,a:this._a}},toHslString:function(){var r=x(this._r,this._g,this._b),e=Math.round(r.h*360),a=Math.round(r.s*100),i=Math.round(r.l*100);return this._a==1?"hsl("+e+", "+a+"%, "+i+"%)":"hsla("+e+", "+a+"%, "+i+"%, "+this._roundA+")"},toHex:function(r){return S(this._r,this._g,this._b,r)},toHexString:function(r){return "#"+this.toHex(r)},toHex8:function(r){return B(this._r,this._g,this._b,this._a,r)},toHex8String:function(r){return "#"+this.toHex8(r)},toRgb:function(){return {r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return {r:Math.round(u(this._r,255)*100)+"%",g:Math.round(u(this._g,255)*100)+"%",b:Math.round(u(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(u(this._r,255)*100)+"%, "+Math.round(u(this._g,255)*100)+"%, "+Math.round(u(this._b,255)*100)+"%)":"rgba("+Math.round(u(this._r,255)*100)+"%, "+Math.round(u(this._g,255)*100)+"%, "+Math.round(u(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?false:X[S(this._r,this._g,this._b,true)]||false},toFilter:function(r){var e="#"+k(this._r,this._g,this._b,this._a),a=e,i=this._gradientType?"GradientType = 1, ":"";if(r){var n=s(r);a="#"+k(n._r,n._g,n._b,n._a);}return "progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+e+",endColorstr="+a+")"},toString:function(r){var e=!!r;r=r||this._format;var a=false,i=this._a<1&&this._a>=0,n=!e&&i&&(r==="hex"||r==="hex6"||r==="hex3"||r==="hex4"||r==="hex8"||r==="name");return n?r==="name"&&this._a===0?this.toName():this.toRgbString():(r==="rgb"&&(a=this.toRgbString()),r==="prgb"&&(a=this.toPercentageRgbString()),(r==="hex"||r==="hex6")&&(a=this.toHexString()),r==="hex3"&&(a=this.toHexString(true)),r==="hex4"&&(a=this.toHex8String(true)),r==="hex8"&&(a=this.toHex8String()),r==="name"&&(a=this.toName()),r==="hsl"&&(a=this.toHslString()),r==="hsv"&&(a=this.toHsvString()),a||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(r,e){var a=r.apply(null,[this].concat([].slice.call(e)));return this._r=a._r,this._g=a._g,this._b=a._b,this.setAlpha(a._a),this},lighten:function(){return this._applyModification(O,arguments)},brighten:function(){return this._applyModification(q,arguments)},darken:function(){return this._applyModification(D,arguments)},desaturate:function(){return this._applyModification(z,arguments)},saturate:function(){return this._applyModification(G,arguments)},greyscale:function(){return this._applyModification(L,arguments)},spin:function(){return this._applyModification(U,arguments)},_applyCombination:function(r,e){return r.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(j,arguments)},complement:function(){return this._applyCombination(V,arguments)},monochromatic:function(){return this._applyCombination(W,arguments)},splitcomplement:function(){return this._applyCombination($,arguments)},triad:function(){return this._applyCombination(H,[3])},tetrad:function(){return this._applyCombination(H,[4])}};s.fromRatio=function(t,r){if(m(t)=="object"){var e={};for(var a in t)t.hasOwnProperty(a)&&(a==="a"?e[a]=t[a]:e[a]=_(t[a]));t=e;}return s(t,r)};function I(t){var r={r:0,g:0,b:0},e=1,a=null,i=null,n=null,h=false,f=false;return typeof t=="string"&&(t=Q(t)),m(t)=="object"&&(p(t.r)&&p(t.g)&&p(t.b)?(r=P(t.r,t.g,t.b),h=true,f=String(t.r).substr(-1)==="%"?"prgb":"rgb"):p(t.h)&&p(t.s)&&p(t.v)?(a=_(t.s),i=_(t.v),r=N(t.h,a,i),h=true,f="hsv"):p(t.h)&&p(t.s)&&p(t.l)&&(a=_(t.s),n=_(t.l),r=E(t.h,a,n),h=true,f="hsl"),t.hasOwnProperty("a")&&(e=t.a)),e=w(e),{ok:h,format:t.format||f,r:Math.min(255,Math.max(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:e}}function P(t,r,e){return {r:u(t,255)*255,g:u(r,255)*255,b:u(e,255)*255}}function x(t,r,e){t=u(t,255),r=u(r,255),e=u(e,255);var a=Math.max(t,r,e),i=Math.min(t,r,e),n,h,f=(a+i)/2;if(a==i)n=h=0;else {var o=a-i;switch(h=f>.5?o/(2-a-i):o/(a+i),a){case t:n=(r-e)/o+(r1&&(d-=1),d<1/6?g+(v-g)*6*d:d<1/2?v:d<2/3?g+(v-g)*(2/3-d)*6:g}if(r===0)a=i=n=e;else {var f=e<.5?e*(1+r):e+r-e*r,o=2*e-f;a=h(o,f,t+1/3),i=h(o,f,t),n=h(o,f,t-1/3);}return {r:a*255,g:i*255,b:n*255}}function A(t,r,e){t=u(t,255),r=u(r,255),e=u(e,255);var a=Math.max(t,r,e),i=Math.min(t,r,e),n,h,f=a,o=a-i;if(h=a===0?0:o/a,a==i)n=0;else {switch(a){case t:n=(r-e)/o+(r>1)+720)%360;--r;)a.h=(a.h+i)%360,n.push(s(a));return n}function W(t,r){r=r||6;for(var e=s(t).toHsv(),a=e.h,i=e.s,n=e.v,h=[],f=1/r;r--;)h.push(s({h:a,s:i,v:n})),n=(n+f)%1;return h}s.mix=function(t,r,e){e=e===0?0:e||50;var a=s(t).toRgb(),i=s(r).toRgb(),n=e/100,h={r:(i.r-a.r)*n+a.r,g:(i.g-a.g)*n+a.g,b:(i.b-a.b)*n+a.b,a:(i.a-a.a)*n+a.a};return s(h)};s.readability=function(t,r){var e=s(t),a=s(r);return (Math.max(e.getLuminance(),a.getLuminance())+.05)/(Math.min(e.getLuminance(),a.getLuminance())+.05)};s.isReadable=function(t,r,e){var a=s.readability(t,r),i,n;switch(n=false,i=Y(e),i.level+i.size){case "AAsmall":case "AAAlarge":n=a>=4.5;break;case "AAlarge":n=a>=3;break;case "AAAsmall":n=a>=7;break}return n};s.mostReadable=function(t,r,e){var a=null,i=0,n,h,f,o;e=e||{},h=e.includeFallbackColors,f=e.level,o=e.size;for(var g=0;gi&&(i=n,a=s(r[g]));return s.isReadable(t,a,{level:f,size:o})||!h?a:(e.includeFallbackColors=false,s.mostReadable(t,["#fff","#000"],e))};var M=s.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},X=s.hexNames=Z(M);function Z(t){var r={};for(var e in t)t.hasOwnProperty(e)&&(r[t[e]]=e);return r}function w(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function u(t,r){J(t)&&(t="100%");var e=K(t);return t=Math.min(r,Math.max(0,parseFloat(t))),e&&(t=parseInt(t*r,10)/100),Math.abs(t-r)<1e-6?1:t%r/parseFloat(r)}function y(t){return Math.min(1,Math.max(0,t))}function l(t){return parseInt(t,16)}function J(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function K(t){return typeof t=="string"&&t.indexOf("%")!=-1}function b(t){return t.length==1?"0"+t:""+t}function _(t){return t<=1&&(t=t*100+"%"),t}function F(t){return Math.round(parseFloat(t)*255).toString(16)}function R(t){return l(t)/255}var c=(function(){var t="[-\\+]?\\d+%?",r="[-\\+]?\\d*\\.\\d+%?",e="(?:"+r+")|(?:"+t+")",a="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?",i="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?";return {CSS_UNIT:new RegExp(e),rgb:new RegExp("rgb"+a),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+a),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+a),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function p(t){return !!c.CSS_UNIT.exec(t)}function Q(t){t=t.replace(T,"").replace(C,"").toLowerCase();var r=false;if(M[t])t=M[t],r=true;else if(t=="transparent")return {r:0,g:0,b:0,a:0,format:"name"};var e;return (e=c.rgb.exec(t))?{r:e[1],g:e[2],b:e[3]}:(e=c.rgba.exec(t))?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=c.hsl.exec(t))?{h:e[1],s:e[2],l:e[3]}:(e=c.hsla.exec(t))?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=c.hsv.exec(t))?{h:e[1],s:e[2],v:e[3]}:(e=c.hsva.exec(t))?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=c.hex8.exec(t))?{r:l(e[1]),g:l(e[2]),b:l(e[3]),a:R(e[4]),format:r?"name":"hex8"}:(e=c.hex6.exec(t))?{r:l(e[1]),g:l(e[2]),b:l(e[3]),format:r?"name":"hex"}:(e=c.hex4.exec(t))?{r:l(e[1]+""+e[1]),g:l(e[2]+""+e[2]),b:l(e[3]+""+e[3]),a:R(e[4]+""+e[4]),format:r?"name":"hex8"}:(e=c.hex3.exec(t))?{r:l(e[1]+""+e[1]),g:l(e[2]+""+e[2]),b:l(e[3]+""+e[3]),format:r?"name":"hex"}:false}function Y(t){var r,e;return t=t||{level:"AA",size:"small"},r=(t.level||"AA").toUpperCase(),e=(t.size||"small").toLowerCase(),r!=="AA"&&r!=="AAA"&&(r="AA"),e!=="small"&&e!=="large"&&(e="small"),{level:r,size:e}} + +export { s }; +//# sourceMappingURL=tinycolor-DfhFic3A.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/tr-DlXBx-Zg.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/tr-DlXBx-Zg.js new file mode 100644 index 0000000000000000000000000000000000000000..fb93a7496394d043867ebfdb8bb65f797630d64b --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/tr-DlXBx-Zg.js @@ -0,0 +1,4 @@ +const a="Türkçe",e={built_with_gradio:"Gradio ile oluşturulmuştur",clear:"Temizle",or:"veya",submit:"Gönder",built_with:"İle oluşturuldu",download:"İndir",edit:"Düzenle",empty:"Boş",error:"Hata",hosted_on:"Şurada barındırılıyor:",loading:"Yükleniyor",logo:"Logo",remove:"Kaldır",settings:"Ayarlar",share:"Paylaş",undo:"Geri Al",no_devices:"Hiçbir cihaz bulunamadı",language:"Dil",display_theme:"Görünüm Teması",pwa:"Progressive Web Uygulaması"},r={click_to_upload:"Yüklemek için tıkla",drop_audio:"Ses dosyasını buraya sürükle",drop_csv:"CSV dosyasını buraya sürükle",drop_file:"Dosyayı buraya sürükle",drop_image:"Resmi buraya sürükle",drop_video:"Videoyu buraya sürükle",drop_gallery:"Medyayı buraya bırak",paste_clipboard:"Panodan yapıştır"},i={annotated_image:"Açıklamalı Görüntü"},n={allow_recording_access:"Lütfen kayıt yapmak için mikrofona erişim izni verin.",audio:"Ses",drop_to_upload:"Yüklemek için bir ses dosyasını buraya bırakın",record_from_microphone:"Mikrofondan kaydet",stop_recording:"Kaydı durdur",no_device_support:"Medya cihazlarına erişilemedi. Güvenli bir kökende (https) veya yerel makinede (localhost) çalıştığınızdan emin olun (veya geçerli bir SSL sertifikası ile ssl_verify'yi geçtiniz) ve tarayıcınızın cihazınıza erişim izni verdiğini kontrol edin.",stop:"Durdur",resume:"Devam Et",record:"Kaydet",no_microphone:"Hiçbir mikrofon bulunamadı",pause:"Duraklat",play:"Oynat",waiting:"Bekliyor"},o={connection_can_break:"Mobil cihazda, bu sekme odaklanmadığında veya cihaz uyku moduna geçtiğinde bağlantı kopabilir ve kuyrukta olduğunuz yer kaybedilebilir.",long_requests_queue:"Bekleyen isteklerin uzun bir kuyruğu var. Kuyruktan atlamak için bu Space'i kopyalayın.",lost_connection:"Sayfa terk edildiği için bağlantı kaybedildi. Kuyruğa yeniden katılıyor...",waiting_for_inputs:"Dosya(lar)ın yükleme işlemini tamamlaması bekleniyor, lütfen yeniden deneyin."},l={checkbox:"Onay Kutusu",checkbox_group:"Onay Kutusu Grubu"},t={code:"Kod"},d={color_picker:"Renk Seçici"},s={incorrect_format:"Yanlış format, sadece CSV ve TSV dosyaları destekleniyor",new_column:"Sütun ekle",new_row:"Yeni satır",add_row_above:"Yukarıya satır ekle",add_row_below:"Aşağıya satır ekle",delete_row:"Satırı sil",delete_column:"Sütunu sil",add_column_left:"Sola sütun ekle",add_column_right:"Sağa sütun ekle",sort_column:"Sütunu sırala",sort_ascending:"Artan sırala",sort_descending:"Azalan sırala",drop_to_upload:"Veriyi veri çerçevesine aktarmak için CSV veya TSV dosyalarını buraya bırakın",clear_sort:"Sıralamayı temizle"},u={dropdown:"Açılır Liste"},c={build_error:"Bir derleme hatası var",config_error:"Bir yapılandırma hatası var",contact_page_author:"Lütfen sayfanın yazarıyla iletişime geçin ve bildirin.",no_app_file:"Uygulama dosyası yok",runtime_error:"Bir çalışma zamanı hatası var",space_not_working:'"Space çalışmıyor çünkü" {0}',space_paused:"Space duraklatıldı",use_via_api:"API üzerinden kullan",use_via_api_or_mcp:"API veya MCP üzerinden kullan"},y={uploading:"Yükleniyor..."},_={highlighted_text:"Vurgulanan Metin"},k={allow_webcam_access:"Lütfen kayıt için web kamerasına erişim izni verin.",brush_color:"Fırça rengi",brush_radius:"Fırça boyutu",image:"Görüntü",remove_image:"Resmi kaldır",select_brush_color:"Fırça rengini seç",start_drawing:"Çizim yapmaya başla",use_brush:"Fırça kullan",drop_to_upload:"Yüklemek için bir görüntü dosyasını buraya bırakın"},m={label:"Etiket"},b={enable_cookies:"Eğer HuggingFace Space'i Gizli Mod'da ziyaret ediyorsanız, üçüncü taraf çerezleri etkinleştirmelisiniz.",incorrect_credentials:"Yanlış kimlik bilgileri",username:"Kullanıcı adı",password:"Parola",login:"Giriş yap"},p={number:"Sayı"},g={plot:"Grafik"},v={radio:"Radyo Düğmesi"},h={slider:"Kaydırıcı"},z={drop_to_upload:"Yüklemek için bir video dosyasını buraya bırakın"},f={edit:"Düzenle",retry:"Tekrar Dene",undo:"Geri Al",submit:"Gönder",cancel:"İptal",like:"Beğen",dislike:"Beğenme",clear:"Sohbeti Temizle"},S={_name:a,common:e,upload_text:r,"3D_model":{"3d_model":"3D Model",drop_to_upload:"Yüklemek için bir 3D model dosyasını (.obj, .glb, .stl, .gltf, .splat veya .ply) buraya bırakın"},annotated_image:i,audio:n,blocks:o,checkbox:l,code:t,color_picker:d,dataframe:s,dropdown:u,errors:c,file:y,highlighted_text:_,image:k,label:m,login:b,number:p,plot:g,radio:v,slider:h,video:z,chatbot:f}; + +export { a as _name, i as annotated_image, n as audio, o as blocks, f as chatbot, l as checkbox, t as code, d as color_picker, e as common, s as dataframe, S as default, u as dropdown, c as errors, y as file, _ as highlighted_text, k as image, m as label, b as login, p as number, g as plot, v as radio, h as slider, r as upload_text, z as video }; +//# sourceMappingURL=tr-DlXBx-Zg.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/uk-DwKiM4Np.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/uk-DwKiM4Np.js new file mode 100644 index 0000000000000000000000000000000000000000..bd980ba5c3040e75b0d3d05bc2ff9f34ffc6d809 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/uk-DwKiM4Np.js @@ -0,0 +1,4 @@ +const o="Українська",e={built_with_gradio:"Зроблено на основі Gradio",clear:"Очистити",or:"або",submit:"Надіслати",settings:"Налаштування",built_with:"Зроблено з",download:"Завантажити",edit:"Редагувати",empty:"Порожній",error:"Помилка",hosted_on:"Розміщено на",loading:"Завантаження",logo:"Логотип",remove:"Видалити",share:"Поділитися",undo:"Скасувати",no_devices:"Пристроїв не знайдено",language:"Мова",display_theme:"Тема оформлення",pwa:"Прогресивний веб-додаток"},r={click_to_upload:"Натисніть, щоб завантажити",drop_audio:"Перетягніть аудіо сюди",drop_csv:"Перетягніть CSV-файл сюди",drop_file:"Перетягніть файл сюди",drop_image:"Перетягніть зображення сюди",drop_video:"Перетягніть відео сюди",drop_gallery:"Перетягніть медіа сюди",paste_clipboard:"Вставити з буфера обміну"},t={annotated_image:"Анотоване зображення"},_={allow_recording_access:"Будь ласка, дайте доступ до мікрофона для запису.",audio:"Аудіо",drop_to_upload:"Перетягніть аудіофайл сюди, щоб завантажити",record_from_microphone:"Записати з мікрофона",stop_recording:"Зупинити запис",no_device_support:"Медійні пристрої не можуть бути доступні. Переконайтеся, що ви запускаєте з захищеного джерела (https) або localhost (або ви передали дійсний SSL-сертифікат до ssl_verify), і ви дозволили браузеру доступ до вашого пристрою.",stop:"Зупинити",resume:"Відновити",record:"Записати",no_microphone:"Мікрофон не виявлено",pause:"Пауза",play:"Відтворити",waiting:"Очікування"},c={connection_can_break:"На мобільному пристрої з'єднання може перерватися, якщо ця вкладка втрачає фокус або пристрій увійде в режим сну, в результаті чого ви втратите своє місце в черзі.",long_requests_queue:"У черзі залишилось багато запитів. Скопіюйте цей Space, щоб пропустити чергу.",lost_connection:"З'єднання втрачено через вихід зі сторінки. Переміщення до кінця черги...",waiting_for_inputs:"Чекаємо завершення завантаження файлу(ів), будь ласка, спробуйте ще раз."},a={checkbox:"Прапорець",checkbox_group:"Група прапорців"},n={code:"Код"},s={color_picker:"Вибір кольору"},d={incorrect_format:"Неправильний формат, підтримуються лише файли CSV та TSV",new_column:"Додати стовпець",new_row:"Новий рядок",add_row_above:"Додати рядок вище",add_row_below:"Додати рядок нижче",delete_row:"Видалити рядок",delete_column:"Видалити стовпець",add_column_left:"Додати стовпець зліва",add_column_right:"Додати стовпець справа",sort_column:"Сортувати стовпець",sort_ascending:"Сортувати за зростанням",sort_descending:"Сортувати за спаданням",drop_to_upload:"Перетягніть CSV або TSV файли сюди, щоб імпортувати дані в таблицю даних",clear_sort:"Очистити сортування"},i={dropdown:"Випадне меню"},l={build_error:"Є помилка побудови",config_error:"Є помилка конфігурації",contact_page_author:"Будь ласка, зв'яжіться з автором сторінки, щоб повідомити.",no_app_file:"Немає файлу додатку",runtime_error:"Є помилка виконання",space_not_working:'"Space не працює, оскільки" {0}',space_paused:"Space призупинено",use_via_api:"Використовувати через API",use_via_api_or_mcp:"Використовувати через API або MCP"},p={uploading:"Завантаження..."},u={highlighted_text:"Виділений текст"},g={allow_webcam_access:"Будь ласка, дайте доступ до веб-камери для запису.",brush_color:"Колір пензля",brush_radius:"Розмір пензля",image:"Зображення",remove_image:"Видалити зображення",select_brush_color:"Виберіть колір пензля",start_drawing:"Почніть малювати",use_brush:"Використовуйте пензель",drop_to_upload:"Перетягніть файл зображення сюди, щоб завантажити"},m={label:"Мітка"},b={enable_cookies:"Якщо ви відвідуєте HuggingFace Space у режимі Інкогніто, вам потрібно увімкнути сторонні куки.",incorrect_credentials:"Неправильні облікові дані",username:"Ім'я користувача",password:"Пароль",login:"Увійти"},h={number:"Число"},w={plot:"Діаграма"},k={radio:"Перемикач"},f={slider:"Повзунок"},v={drop_to_upload:"Перетягніть відеофайл сюди, щоб завантажити"},S={edit:"Редагувати",retry:"Повторити",undo:"Скасувати",submit:"Надіслати",cancel:"Скасувати",like:"Подобається",dislike:"Не подобається",clear:"Очистити чат"},x={_name:o,common:e,upload_text:r,"3D_model":{"3d_model":"3D-модель",drop_to_upload:"Перетягніть файл 3D-моделі (.obj, .glb, .stl, .gltf, .splat або .ply) сюди, щоб завантажити"},annotated_image:t,audio:_,blocks:c,checkbox:a,code:n,color_picker:s,dataframe:d,dropdown:i,errors:l,file:p,highlighted_text:u,image:g,label:m,login:b,number:h,plot:w,radio:k,slider:f,video:v,chatbot:S}; + +export { o as _name, t as annotated_image, _ as audio, c as blocks, S as chatbot, a as checkbox, n as code, s as color_picker, e as common, d as dataframe, x as default, i as dropdown, l as errors, p as file, u as highlighted_text, g as image, m as label, b as login, h as number, w as plot, k as radio, f as slider, r as upload_text, v as video }; +//# sourceMappingURL=uk-DwKiM4Np.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/ur-7BCsXLxH.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/ur-7BCsXLxH.js new file mode 100644 index 0000000000000000000000000000000000000000..7ee3ce47d936c9b7f7cd2b13f31625c810f5267d --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/ur-7BCsXLxH.js @@ -0,0 +1,4 @@ +const o="اردو",e={built_with_gradio:"Gradio کے ساتھ بنایا گیا",clear:"صاف کریں",or:"یا",submit:"جمع کریں",settings:"ترتیبات",built_with:"کے ساتھ بنایا گیا",download:"ڈاؤن لوڈ کریں",edit:"ترمیم کریں",empty:"خالی",error:"خطا",hosted_on:"پر میزبانی کی جا رہی ہے",loading:"لوڈ ہو رہا ہے",logo:"لوگو",remove:"حذف کریں",share:"شیئر کریں",undo:"واپس لیں",no_devices:"کوئی ڈیوائس نہیں ملی",language:"زبان",display_theme:"تھیم کی نمائش",pwa:"پروگریسیو ویب ایپ"},r={click_to_upload:"اپ لوڈ کے لیے کلک کریں",drop_audio:"یہاں آڈیو ڈراپ کریں",drop_csv:"یہاں CSV ڈراپ کریں",drop_file:"یہاں فائل ڈراپ کریں",drop_image:"یہاں تصویر ڈراپ کریں",drop_video:"یہاں ویڈیو ڈراپ کریں",drop_gallery:"میڈیا یہاں ڈالیں",paste_clipboard:"کلپ بورڈ سے پیسٹ کریں"},t={annotated_image:"تشریحی تصویر"},_={allow_recording_access:"براہ مہربانی ریکارڈنگ کے لیے مائیکروفون تک رسائی کی اجازت دیں۔",audio:"آڈیو",drop_to_upload:"اپلوڈ کرنے کے لیے آڈیو فائل یہاں ڈراپ کریں",record_from_microphone:"مائیکروفون سے ریکارڈ کریں",stop_recording:"ریکارڈنگ بند کریں",no_device_support:"میڈیا ڈیوائسز تک رسائی حاصل نہیں کی جا سکی۔ یقینی بنائیں کہ آپ محفوظ ذریعہ (https) یا localhost پر چلا رہے ہیں (یا آپ نے ssl_verify میں درست SSL سرٹیفکیٹ منتقل کیا ہے)، اور آپ نے براؤزر کو اپنے ڈیوائس تک رسائی کی اجازت دی ہے۔",stop:"روکیں",resume:"دوبارہ شروع کریں",record:"ریکارڈ کریں",no_microphone:"کوئی مائیکروفون نہیں ملا",pause:"روکیں",play:"چلائیں",waiting:"انتظار کر رہا ہے"},c={connection_can_break:"موبائل پر، اگر اس ٹیب کا فوکس کھو جائے یا ڈیوائس سلیپ موڈ میں چلا جائے تو کنکشن ٹوٹ سکتا ہے، جس سے آپ قطار میں اپنی جگہ کھو سکتے ہیں۔",long_requests_queue:"درخواستوں کی ایک لمبی قطار زیر التواء ہے۔ قطار چھوڑنے کے لیے اس Space کو ڈپلیکیٹ کریں۔",lost_connection:"صفحہ چھوڑنے کی وجہ سے کنکشن کھو گیا۔ قطار میں دوبارہ شامل ہو رہا ہے...",waiting_for_inputs:"فائل(وں) کے اپ لوڈ ہونے کا انتظار ہے، براہ کرم دوبارہ کوشش کریں۔"},a={checkbox:"چیک باکس",checkbox_group:"چیک باکس گروپ"},n={code:"کوڈ"},s={color_picker:"رنگ منتخب کرنے والا"},d={incorrect_format:"غلط فارمیٹ، صرف CSV اور TSV فائلوں کی حمایت کی جاتی ہے",new_column:"کالم شامل کریں",new_row:"نئی قطار",add_row_above:"اوپر قطار شامل کریں",add_row_below:"نیچے قطار شامل کریں",delete_row:"قطار حذف کریں",delete_column:"کالم حذف کریں",add_column_left:"بائیں طرف کالم شامل کریں",add_column_right:"دائیں طرف کالم شامل کریں",sort_column:"کالم کو ترتیب دیں",sort_ascending:"صعودی ترتیب دیں",sort_descending:"نزولی ترتیب دیں",drop_to_upload:"ڈیٹا کو ڈیٹا فریم میں درآمد کرنے کے لیے CSV یا TSV فائلیں یہاں ڈراپ کریں",clear_sort:"ترتیب صاف کریں"},i={dropdown:"ڈراپ ڈاؤن"},l={build_error:"تعمیر میں خطا ہے",config_error:"ترتیب میں خطا ہے",contact_page_author:"براہ کرم صفحہ کے مصنف سے رابطہ کریں تاکہ انہیں مطلع کیا جا سکے۔",no_app_file:"کوئی ایپ فائل نہیں ہے",runtime_error:"رن ٹائم میں خطا ہے",space_not_working:'"Space کام نہیں کر رہا ہے کیونکہ" {0}',space_paused:"Space موقوف ہے",use_via_api:"API کے ذریعے استعمال کریں",use_via_api_or_mcp:"API یا MCP کے ذریعے استعمال کریں"},p={uploading:"اپلوڈ ہو رہا ہے..."},u={highlighted_text:"نمایاں کردہ متن"},g={allow_webcam_access:"براہ مہربانی ریکارڈنگ کے لیے ویب کیم تک رسائی کی اجازت دیں۔",brush_color:"برش کا رنگ",brush_radius:"برش کا سائز",image:"تصویر",remove_image:"تصویر حذف کریں",select_brush_color:"برش کا رنگ منتخب کریں",start_drawing:"ڈرائنگ شروع کریں",use_brush:"برش استعمال کریں",drop_to_upload:"اپلوڈ کرنے کے لیے تصویر فائل یہاں ڈراپ کریں"},m={label:"لیبل"},b={enable_cookies:"اگر آپ انکوگنیٹو موڈ میں HuggingFace Space ملاحظہ کر رہے ہیں تو، آپ کو تیسرے فریق کے کوکیز کو فعال کرنا ہوگا۔",incorrect_credentials:"غلط اسناد",username:"صارف نام",password:"پاس ورڈ",login:"لاگ ان کریں"},h={number:"نمبر"},w={plot:"گراف"},f={radio:"ریڈیو بٹن"},k={slider:"سلائیڈر"},v={drop_to_upload:"اپلوڈ کرنے کے لیے ویڈیو فائل یہاں ڈراپ کریں"},S={edit:"ترمیم",retry:"دوبارہ کوشش",undo:"واپس",submit:"جمع کریں",cancel:"منسوخ",like:"پسند",dislike:"ناپسند",clear:"گفتگو صاف کریں"},x={_name:o,common:e,upload_text:r,"3D_model":{"3d_model":"3D ماڈل",drop_to_upload:"اپلوڈ کرنے کے لیے 3D ماڈل (.obj, .glb, .stl, .gltf, .splat، یا .ply) فائل یہاں ڈراپ کریں"},annotated_image:t,audio:_,blocks:c,checkbox:a,code:n,color_picker:s,dataframe:d,dropdown:i,errors:l,file:p,highlighted_text:u,image:g,label:m,login:b,number:h,plot:w,radio:f,slider:k,video:v,chatbot:S}; + +export { o as _name, t as annotated_image, _ as audio, c as blocks, S as chatbot, a as checkbox, n as code, s as color_picker, e as common, d as dataframe, x as default, i as dropdown, l as errors, p as file, u as highlighted_text, g as image, m as label, b as login, h as number, w as plot, f as radio, k as slider, r as upload_text, v as video }; +//# sourceMappingURL=ur-7BCsXLxH.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/webworkerAll-B81XBg67.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/webworkerAll-B81XBg67.js new file mode 100644 index 0000000000000000000000000000000000000000..6ba43662c51c6916990bd81d738484495ecc351a --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/webworkerAll-B81XBg67.js @@ -0,0 +1,407 @@ +import { E as B, a9 as rc, e as ft, at as Wo, a6 as D, a7 as j$1, c as Ke$1, B as vt, U as ws, T as ri, S as ll, G as Bc, H as Pt, ak as Do, l as fo, M as H$1, d as pi, al as Ur, as as Si, a0 as wi, K as we$1, an as _n, ah as gi, ao as Bu, ap as Q, R as Ss, w as J, m as Gs, t as W, W as Z, ai as Rs, a1 as ot$1, aj as dn, J as Lt$1, ar as th, s as Mi, n as vc, o as Ac, q as Tc, p as zc, ab as kc, ac as Sc, ae as Ic, ad as Ec, af as Rc, aq as nt$1, D as $$1, F as Ts, x as Zt$1, y as ve$1, O as tl, am as Gr, ag as bi } from './Index4-BvPFZOEY.js'; +import { s, a, l, n } from './colorToUniform-CrQRsPlb.js'; +import './async-D55cHugf.js'; +import './index-u8mz_F03.js'; +import './escaping-CBnpiEl5.js'; +import './context-CBkBucIx.js'; +import './2-BLdXJizP.js'; +import './index5-BoOEKc6P.js'; +import './dev-fallback-Bc5Ork7Y.js'; +import './index-Cg-Pg6j3.js'; +import './index-server-CQz6EZl_.js'; +import './utils.svelte-B2py64Fz.js'; +import './clone-Yk88IHKV.js'; +import './ImagePreview-Ca2hvNZZ.js'; +import './BlockLabel-bKYWnOzQ.js'; +import './DownloadLink-nj1p0krE.js'; +import './IconButton-BRnu7KaR.js'; +import './Empty-DGRbZO0a.js'; +import './ShareButton-7VTs9dOO.js'; +import './Download-DcU5dONL.js'; +import './Image2-vcp9_ifi.js'; +import './IconButtonWrapper-CjFRPb3y.js'; +import './FullscreenButton-D8PvgSmk.js'; +import './Maximize-CuHbK64j.js'; +import './Image-CuPo5pWT.js'; +import './Block-DZmzQwnI.js'; +import './index3-Df92vI-L.js'; +import './Clear-D7Yjckqz.js'; +import './tinycolor-DfhFic3A.js'; +import './Check-C7_ZsXgh.js'; + +class Ee{static init(e){Object.defineProperty(this,"resizeTo",{configurable:true,set(t){globalThis.removeEventListener("resize",this.queueResize),this._resizeTo=t,t&&(globalThis.addEventListener("resize",this.queueResize),this.resize());},get(){return this._resizeTo}}),this.queueResize=()=>{this._resizeTo&&(this._cancelResize(),this._resizeId=requestAnimationFrame(()=>this.resize()));},this._cancelResize=()=>{this._resizeId&&(cancelAnimationFrame(this._resizeId),this._resizeId=null);},this.resize=()=>{if(!this._resizeTo)return;this._cancelResize();let t,r;if(this._resizeTo===globalThis.window)t=globalThis.innerWidth,r=globalThis.innerHeight;else {const{clientWidth:n,clientHeight:i}=this._resizeTo;t=n,r=i;}this.renderer.resize(t,r),this.render();},this._resizeId=null,this._resizeTo=null,this.resizeTo=e.resizeTo||null;}static destroy(){globalThis.removeEventListener("resize",this.queueResize),this._cancelResize(),this._cancelResize=null,this.queueResize=null,this.resizeTo=null,this.resize=null;}}Ee.extension=B.Application;class Ve{static init(e){e=Object.assign({autoStart:true,sharedTicker:false},e),Object.defineProperty(this,"ticker",{configurable:true,set(t){this._ticker&&this._ticker.remove(this.render,this),this._ticker=t,t&&t.add(this.render,this,ws.LOW);},get(){return this._ticker}}),this.stop=()=>{this._ticker.stop();},this.start=()=>{this._ticker.start();},this._ticker=null,this.ticker=e.sharedTicker?ri.shared:new ri,e.autoStart&&this.start();}static destroy(){if(this._ticker){const e=this._ticker;this.ticker=null,e.destroy();}}}Ve.extension=B.Application;var Rt=`in vec2 aPosition; +out vec2 vTextureCoord; + +uniform vec4 uInputSize; +uniform vec4 uOutputFrame; +uniform vec4 uOutputTexture; + +vec4 filterVertexPosition( void ) +{ + vec2 position = aPosition * uOutputFrame.zw + uOutputFrame.xy; + + position.x = position.x * (2.0 / uOutputTexture.x) - 1.0; + position.y = position.y * (2.0*uOutputTexture.z / uOutputTexture.y) - uOutputTexture.z; + + return vec4(position, 0.0, 1.0); +} + +vec2 filterTextureCoord( void ) +{ + return aPosition * (uOutputFrame.zw * uInputSize.zw); +} + +void main(void) +{ + gl_Position = filterVertexPosition(); + vTextureCoord = filterTextureCoord(); +} +`,Ut=`in vec2 vTextureCoord; +out vec4 finalColor; +uniform sampler2D uTexture; +void main() { + finalColor = texture(uTexture, vTextureCoord); +} +`,me=`struct GlobalFilterUniforms { + uInputSize: vec4, + uInputPixel: vec4, + uInputClamp: vec4, + uOutputFrame: vec4, + uGlobalFrame: vec4, + uOutputTexture: vec4, +}; + +@group(0) @binding(0) var gfu: GlobalFilterUniforms; +@group(0) @binding(1) var uTexture: texture_2d; +@group(0) @binding(2) var uSampler: sampler; + +struct VSOutput { + @builtin(position) position: vec4, + @location(0) uv: vec2 +}; + +fn filterVertexPosition(aPosition: vec2) -> vec4 +{ + var position = aPosition * gfu.uOutputFrame.zw + gfu.uOutputFrame.xy; + + position.x = position.x * (2.0 / gfu.uOutputTexture.x) - 1.0; + position.y = position.y * (2.0 * gfu.uOutputTexture.z / gfu.uOutputTexture.y) - gfu.uOutputTexture.z; + + return vec4(position, 0.0, 1.0); +} + +fn filterTextureCoord(aPosition: vec2) -> vec2 +{ + return aPosition * (gfu.uOutputFrame.zw * gfu.uInputSize.zw); +} + +@vertex +fn mainVertex( + @location(0) aPosition: vec2, +) -> VSOutput { + return VSOutput( + filterVertexPosition(aPosition), + filterTextureCoord(aPosition) + ); +} + +@fragment +fn mainFragment( + @location(0) uv: vec2, +) -> @location(0) vec4 { + return textureSample(uTexture, uSampler, uv); +} +`;class Bt extends Ts{constructor(){const e=Zt$1.from({vertex:{source:me,entryPoint:"mainVertex"},fragment:{source:me,entryPoint:"mainFragment"},name:"passthrough-filter"}),t=ve$1.from({vertex:Rt,fragment:Ut,name:"passthrough-filter"});super({gpuProgram:e,glProgram:t});}}class We{constructor(e){this._renderer=e;}push(e,t,r){this._renderer.renderPipes.batch.break(r),r.add({renderPipeId:"filter",canBundle:false,action:"pushFilter",container:t,filterEffect:e});}pop(e,t,r){this._renderer.renderPipes.batch.break(r),r.add({renderPipeId:"filter",action:"popFilter",canBundle:false});}execute(e){e.action==="pushFilter"?this._renderer.filter.push(e):e.action==="popFilter"&&this._renderer.filter.pop();}destroy(){this._renderer=null;}}We.extension={type:[B.WebGLPipes,B.WebGPUPipes,B.CanvasPipes],name:"filter"};const ge=new H$1;function Mt(o,e){e.clear();const t=e.matrix;for(let r=0;r"},uInputPixel:{value:new Float32Array(4),type:"vec4"},uInputClamp:{value:new Float32Array(4),type:"vec4"},uOutputFrame:{value:new Float32Array(4),type:"vec4"},uGlobalFrame:{value:new Float32Array(4),type:"vec4"},uOutputTexture:{value:new Float32Array(4),type:"vec4"}}),this._globalFilterBindGroup=new pi({}),this.renderer=e;}get activeBackTexture(){return this._activeFilterData?.backTexture}push(e){const t=this.renderer,r=e.filterEffect.filters,n=this._pushFilterData();n.skip=false,n.filters=r,n.container=e.container,n.outputRenderSurface=t.renderTarget.renderSurface;const i=t.renderTarget.renderTarget.colorTexture.source,s=i.resolution,a=i.antialias;if(r.every(f=>!f.enabled)){n.skip=true;return}const l=n.bounds;if(this._calculateFilterArea(e,l),this._calculateFilterBounds(n,t.renderTarget.rootViewPort,a,s,1),n.skip)return;const u=this._getPreviousFilterData(),h=this._findFilterResolution(s);let c=0,d=0;u&&(c=u.bounds.minX,d=u.bounds.minY),this._calculateGlobalFrame(n,c,d,h,i.width,i.height),this._setupFilterTextures(n,l,t,u);}generateFilteredTexture({texture:e,filters:t}){const r=this._pushFilterData();this._activeFilterData=r,r.skip=false,r.filters=t;const n=e.source,i=n.resolution,s=n.antialias;if(t.every(f=>!f.enabled))return r.skip=true,e;const a=r.bounds;if(a.addRect(e.frame),this._calculateFilterBounds(r,a.rectangle,s,i,0),r.skip)return e;const l=i;this._calculateGlobalFrame(r,0,0,l,n.width,n.height),r.outputRenderSurface=we$1.getOptimalTexture(a.width,a.height,r.resolution,r.antialias),r.backTexture=W.EMPTY,r.inputTexture=e,this.renderer.renderTarget.finishRenderPass(),this._applyFiltersToTexture(r,true);const d=r.outputRenderSurface;return d.source.alphaMode="premultiplied-alpha",d}pop(){const e=this.renderer,t=this._popFilterData();t.skip||(e.globalUniforms.pop(),e.renderTarget.finishRenderPass(),this._activeFilterData=t,this._applyFiltersToTexture(t,false),t.blendRequired&&we$1.returnTexture(t.backTexture),we$1.returnTexture(t.inputTexture));}getBackTexture(e,t,r){const n=e.colorTexture.source._resolution,i=we$1.getOptimalTexture(t.width,t.height,n,false);let s=t.minX,a=t.minY;r&&(s-=r.minX,a-=r.minY),s=Math.floor(s*n),a=Math.floor(a*n);const l=Math.ceil(t.width*n),u=Math.ceil(t.height*n);return this.renderer.renderTarget.copyToTexture(e,i,{x:s,y:a},{width:l,height:u},{x:0,y:0}),i}applyFilter(e,t,r,n){const i=this.renderer,s=this._activeFilterData,l=s.outputRenderSurface===r,u=i.renderTarget.rootRenderTarget.colorTexture.source._resolution,h=this._findFilterResolution(u);let c=0,d=0;if(l){const m=this._findPreviousFilterOffset();c=m.x,d=m.y;}this._updateFilterUniforms(t,r,s,c,d,h,l,n);const f=e.enabled?e:this._getPassthroughFilter();this._setupBindGroupsAndRender(f,t,i);}calculateSpriteMatrix(e,t){const r=this._activeFilterData,n=e.set(r.inputTexture._source.width,0,0,r.inputTexture._source.height,r.bounds.minX,r.bounds.minY),i=t.worldTransform.copyTo(H$1.shared),s=t.renderGroup||t.parentRenderGroup;return s&&s.cacheToLocalTransform&&i.prepend(s.cacheToLocalTransform),i.invert(),n.prepend(i),n.scale(1/t.texture.orig.width,1/t.texture.orig.height),n.translate(t.anchor.x,t.anchor.y),n}destroy(){this._passthroughFilter?.destroy(true),this._passthroughFilter=null;}_getPassthroughFilter(){return this._passthroughFilter??(this._passthroughFilter=new Bt),this._passthroughFilter}_setupBindGroupsAndRender(e,t,r){if(r.renderPipes.uniformBatch){const n=r.renderPipes.uniformBatch.getUboResource(this._filterGlobalUniforms);this._globalFilterBindGroup.setResource(n,0);}else this._globalFilterBindGroup.setResource(this._filterGlobalUniforms,0);this._globalFilterBindGroup.setResource(t.source,1),this._globalFilterBindGroup.setResource(t.source.style,2),e.groups[0]=this._globalFilterBindGroup,r.encoder.draw({geometry:Gt,shader:e,state:e._state,topology:"triangle-list"}),r.type===Ss.WEBGL&&r.renderTarget.finishRenderPass();}_setupFilterTextures(e,t,r,n){if(e.backTexture=W.EMPTY,e.inputTexture=we$1.getOptimalTexture(t.width,t.height,e.resolution,e.antialias),e.blendRequired){r.renderTarget.finishRenderPass();const i=r.renderTarget.getRenderTarget(e.outputRenderSurface);e.backTexture=this.getBackTexture(i,t,n?.bounds);}r.renderTarget.bind(e.inputTexture,true),r.globalUniforms.push({offset:t});}_calculateGlobalFrame(e,t,r,n,i,s){const a=e.globalFrame;a.x=t*n,a.y=r*n,a.width=i*n,a.height=s*n;}_updateFilterUniforms(e,t,r,n,i,s,a,l){const u=this._filterGlobalUniforms.uniforms,h=u.uOutputFrame,c=u.uInputSize,d=u.uInputPixel,f=u.uInputClamp,m=u.uGlobalFrame,x=u.uOutputTexture;a?(h[0]=r.bounds.minX-n,h[1]=r.bounds.minY-i):(h[0]=0,h[1]=0),h[2]=e.frame.width,h[3]=e.frame.height,c[0]=e.source.width,c[1]=e.source.height,c[2]=1/c[0],c[3]=1/c[1],d[0]=e.source.pixelWidth,d[1]=e.source.pixelHeight,d[2]=1/d[0],d[3]=1/d[1],f[0]=.5*d[2],f[1]=.5*d[3],f[2]=e.frame.width*c[2]-.5*d[2],f[3]=e.frame.height*c[3]-.5*d[3];const g=this.renderer.renderTarget.rootRenderTarget.colorTexture;m[0]=n*s,m[1]=i*s,m[2]=g.source.width*s,m[3]=g.source.height*s,t instanceof W&&(t.source.resource=null);const _=this.renderer.renderTarget.getRenderTarget(t);this.renderer.renderTarget.bind(t,!!l),t instanceof W?(x[0]=t.frame.width,x[1]=t.frame.height):(x[0]=_.width,x[1]=_.height),x[2]=_.isRoot?-1:1,this._filterGlobalUniforms.update();}_findFilterResolution(e){let t=this._filterStackIndex-1;for(;t>0&&this._filterStack[t].skip;)--t;return t>0&&this._filterStack[t].inputTexture?this._filterStack[t].inputTexture.source._resolution:e}_findPreviousFilterOffset(){let e=0,t=0,r=this._filterStackIndex;for(;r>0;){r--;const n=this._filterStack[r];if(!n.skip){e=n.bounds.minX,t=n.bounds.minY;break}}return {x:e,y:t}}_calculateFilterArea(e,t){if(e.renderables?Mt(e.renderables,t):e.filterEffect.filterArea?(t.clear(),t.addRect(e.filterEffect.filterArea),t.applyMatrix(e.container.worldTransform)):e.container.getFastGlobalBounds(true,t),e.container){const n=(e.container.renderGroup||e.container.parentRenderGroup).cacheToLocalTransform;n&&t.applyMatrix(n);}}_applyFiltersToTexture(e,t){const r=e.inputTexture,n=e.bounds,i=e.filters,s=e.firstEnabledIndex,a=e.lastEnabledIndex;if(this._globalFilterBindGroup.setResource(r.source.style,2),this._globalFilterBindGroup.setResource(e.backTexture.source,3),s===a)i[s].apply(this,r,e.outputRenderSurface,t);else {let l=e.inputTexture;const u=we$1.getOptimalTexture(n.width,n.height,l.source._resolution,false);let h=u;for(let c=s;c0&&(t--,e=this._filterStack[t],!!e.skip););return e}_pushFilterData(){let e=this._filterStack[this._filterStackIndex];return e||(e=this._filterStack[this._filterStackIndex]=new Dt),this._filterStackIndex++,e}}Le.extension={type:[B.WebGLSystem,B.WebGPUSystem],name:"filter"};const Ye=class He extends rc{constructor(...e){let t=e[0]??{};t instanceof Float32Array&&(D(j$1,"use new MeshGeometry({ positions, uvs, indices }) instead"),t={positions:t,uvs:e[1],indices:e[2]}),t={...He.defaultOptions,...t};const r=t.positions||new Float32Array([0,0,1,0,1,1,0,1]);let n=t.uvs;n||(t.positions?n=new Float32Array(r.length):n=new Float32Array([0,0,1,0,1,1,0,1]));const i=t.indices||new Uint32Array([0,1,2,0,2,3]),s=t.shrinkBuffersToFit,a=new Ke$1({data:r,label:"attribute-mesh-positions",shrinkToFit:s,usage:vt.VERTEX|vt.COPY_DST}),l=new Ke$1({data:n,label:"attribute-mesh-uvs",shrinkToFit:s,usage:vt.VERTEX|vt.COPY_DST}),u=new Ke$1({data:i,label:"index-mesh-buffer",shrinkToFit:s,usage:vt.INDEX|vt.COPY_DST});super({attributes:{aPosition:{buffer:a,format:"float32x2",stride:8,offset:0},aUV:{buffer:l,format:"float32x2",stride:8,offset:0}},indexBuffer:u,topology:t.topology}),this.batchMode="auto";}get positions(){return this.attributes.aPosition.buffer.data}set positions(e){this.attributes.aPosition.buffer.data=e;}get uvs(){return this.attributes.aUV.buffer.data}set uvs(e){this.attributes.aUV.buffer.data=e;}get indices(){return this.indexBuffer.data}set indices(e){this.indexBuffer.data=e;}};Ye.defaultOptions={topology:"triangle-list",shrinkBuffersToFit:false};let ae=Ye,U=null,S=null;function At(o,e){U||(U=$$1.get().createCanvas(256,128),S=U.getContext("2d",{willReadFrequently:true}),S.globalCompositeOperation="copy",S.globalAlpha=1),(U.width${e.cssStyle};
    ${o}
    `,n.setAttribute("style","transform-origin: top left; display: inline-block"),t&&(i.textContent=t),document.body.appendChild(s);const a=n.getBoundingClientRect();s.remove();const l=e.padding*2;return {width:a.width-l,height:a.height-l}}class It{constructor(){this.batches=[],this.batched=false;}destroy(){this.batches.forEach(e=>{Pt.return(e);}),this.batches.length=0;}}class Ke{constructor(e,t){this.state=ll.for2d(),this.renderer=e,this._adaptor=t,this.renderer.runners.contextChange.add(this),this._managedGraphics=new Bc({renderer:e,type:"renderable",priority:-1,name:"graphics"});}contextChange(){this._adaptor.contextChange(this.renderer);}validateRenderable(e){const t=e.context,r=!!e._gpuData,n=this.renderer.graphicsContext.updateGpuContext(t);return !!(n.isBatchable||r!==n.isBatchable)}addRenderable(e,t){const r=this.renderer.graphicsContext.updateGpuContext(e.context);e.didViewUpdate&&this._rebuild(e),r.isBatchable?this._addToBatcher(e,t):(this.renderer.renderPipes.batch.break(t),t.add(e));}updateRenderable(e){const r=this._getGpuDataForRenderable(e).batches;for(let n=0;n{const a=Pt.get(Do);return s.copyTo(a),a.renderable=e,a.roundPixels=i,a});}destroy(){this._managedGraphics.destroy(),this.renderer=null,this._adaptor.destroy(),this._adaptor=null,this.state=null;}}Ke.extension={type:[B.WebGLPipes,B.WebGPUPipes,B.CanvasPipes],name:"graphics"};const $e=class je extends ae{constructor(...e){super({});let t=e[0]??{};typeof t=="number"&&(D(j$1,"PlaneGeometry constructor changed please use { width, height, verticesX, verticesY } instead"),t={width:t,height:e[1],verticesX:e[2],verticesY:e[3]}),this.build(t);}build(e){e={...je.defaultOptions,...e},this.verticesX=this.verticesX??e.verticesX,this.verticesY=this.verticesY??e.verticesY,this.width=this.width??e.width,this.height=this.height??e.height;const t=this.verticesX*this.verticesY,r=[],n=[],i=[],s=this.verticesX-1,a=this.verticesY-1,l=this.width/s,u=this.height/a;for(let c=0;c"},uColor:{value:new Float32Array([1,1,1,1]),type:"vec4"},uRound:{value:0,type:"f32"}}),this.localUniformsBindGroup=new pi({0:this.localUniforms}),this.renderer=e,this._adaptor=t,this._adaptor.init();}validateRenderable(e){const t=this._getMeshData(e),r=t.batched,n=e.batched;if(t.batched=n,r!==n)return true;if(n){const i=e._geometry;if(i.indices.length!==t.indexSize||i.positions.length!==t.vertexSize)return t.indexSize=i.indices.length,t.vertexSize=i.positions.length,true;const s=this._getBatchableMesh(e);return s.texture.uid!==e._texture.uid&&(s._textureMatrixUpdateId=-1),!s._batcher.checkAndUpdateTexture(s,e._texture)}return false}addRenderable(e,t){const r=this.renderer.renderPipes.batch,n=this._getMeshData(e);if(e.didViewUpdate&&(n.indexSize=e._geometry.indices?.length,n.vertexSize=e._geometry.positions?.length),n.batched){const i=this._getBatchableMesh(e);i.setTexture(e._texture),i.geometry=e._geometry,r.addToBatch(i,t);}else r.break(t),t.add(e);}updateRenderable(e){if(e.batched){const t=this._getBatchableMesh(e);t.setTexture(e._texture),t.geometry=e._geometry,t._batcher.updateElement(t);}}execute(e){if(!e.isRenderable)return;e.state.blendMode=Ur(e.groupBlendMode,e.texture._source);const t=this.localUniforms;t.uniforms.uTransformMatrix=e.groupTransform,t.uniforms.uRound=this.renderer._roundPixels|e._roundPixels,t.update(),s(e.groupColorAlpha,t.uniforms.uColor,0),this._adaptor.execute(this,e);}_getMeshData(e){var t,r;return (t=e._gpuData)[r=this.renderer.uid]||(t[r]=new we),e._gpuData[this.renderer.uid].meshData||this._initMeshData(e)}_initMeshData(e){return e._gpuData[this.renderer.uid].meshData={batched:e.batched,indexSize:0,vertexSize:0},e._gpuData[this.renderer.uid].meshData}_getBatchableMesh(e){var t,r;return (t=e._gpuData)[r=this.renderer.uid]||(t[r]=new we),e._gpuData[this.renderer.uid].batchableMesh||this._initBatchableMesh(e)}_initBatchableMesh(e){const t=new oe;return t.renderable=e,t.setTexture(e._texture),t.transform=e.groupTransform,t.roundPixels=this.renderer._roundPixels|e._roundPixels,e._gpuData[this.renderer.uid].batchableMesh=t,t}destroy(){this.localUniforms=null,this.localUniformsBindGroup=null,this._adaptor.destroy(),this._adaptor=null,this.renderer=null;}}Ne.extension={type:[B.WebGLPipes,B.WebGPUPipes,B.CanvasPipes],name:"mesh"};class Vt{execute(e,t){const r=e.state,n=e.renderer,i=t.shader||e.defaultShader;i.resources.uTexture=t.texture._source,i.resources.uniforms=e.localUniforms;const s=n.gl,a=e.getBuffers(t);n.shader.bind(i),n.state.set(r),n.geometry.bind(a.geometry,i.glProgram);const u=a.geometry.indexBuffer.data.BYTES_PER_ELEMENT===2?s.UNSIGNED_SHORT:s.UNSIGNED_INT;s.drawElements(s.TRIANGLES,t.particleChildren.length*6,u,0);}}class Wt{execute(e,t){const r=e.renderer,n=t.shader||e.defaultShader;n.groups[0]=r.renderPipes.uniformBatch.getUniformBindGroup(e.localUniforms,true),n.groups[1]=r.texture.getTextureBindGroup(t.texture);const i=e.state,s=e.getBuffers(t);r.encoder.draw({geometry:s.geometry,shader:t.shader||e.defaultShader,state:i,size:t.particleChildren.length*6});}}function Ce(o,e=null){const t=o*6;if(t>65535?e||(e=new Uint32Array(t)):e||(e=new Uint16Array(t)),e.length!==t)throw new Error(`Out buffer length is incorrect, got ${e.length} and expected ${t}`);for(let r=0,n=0;rthis._size&&(t=true,this._size=Math.max(e.length,this._size*1.5|0),this.staticAttributeBuffer=new Gr(this._size*this._staticStride*4*4),this.dynamicAttributeBuffer=new Gr(this._size*this._dynamicStride*4*4),this.indexBuffer=Ce(this._size),this.geometry.indexBuffer.setDataWithSize(this.indexBuffer,this.indexBuffer.byteLength,true));const r=this.dynamicAttributeBuffer;if(this._dynamicUpload(e,r.float32View,r.uint32View),this._dynamicBuffer.setDataWithSize(this.dynamicAttributeBuffer.float32View,e.length*this._dynamicStride*4,true),t){const n=this.staticAttributeBuffer;this._staticUpload(e,n.float32View,n.uint32View),this._staticBuffer.setDataWithSize(n.float32View,e.length*this._staticStride*4,true);}}destroy(){this._staticBuffer.destroy(),this._dynamicBuffer.destroy(),this.geometry.destroy();}}function Ht(o){const e=[];for(const t in o){const r=o[t];e.push(t,r.code,r.dynamic?"d":"s");}return e.join("_")}var Xt=`varying vec2 vUV; +varying vec4 vColor; + +uniform sampler2D uTexture; + +void main(void){ + vec4 color = texture2D(uTexture, vUV) * vColor; + gl_FragColor = color; +}`,Kt=`attribute vec2 aVertex; +attribute vec2 aUV; +attribute vec4 aColor; + +attribute vec2 aPosition; +attribute float aRotation; + +uniform mat3 uTranslationMatrix; +uniform float uRound; +uniform vec2 uResolution; +uniform vec4 uColor; + +varying vec2 vUV; +varying vec4 vColor; + +vec2 roundPixels(vec2 position, vec2 targetSize) +{ + return (floor(((position * 0.5 + 0.5) * targetSize) + 0.5) / targetSize) * 2.0 - 1.0; +} + +void main(void){ + float cosRotation = cos(aRotation); + float sinRotation = sin(aRotation); + float x = aVertex.x * cosRotation - aVertex.y * sinRotation; + float y = aVertex.x * sinRotation + aVertex.y * cosRotation; + + vec2 v = vec2(x, y); + v = v + aPosition; + + gl_Position = vec4((uTranslationMatrix * vec3(v, 1.0)).xy, 0.0, 1.0); + + if(uRound == 1.0) + { + gl_Position.xy = roundPixels(gl_Position.xy, uResolution); + } + + vUV = aUV; + vColor = vec4(aColor.rgb * aColor.a, aColor.a) * uColor; +} +`,Se=` +struct ParticleUniforms { + uTranslationMatrix:mat3x3, + uColor:vec4, + uRound:f32, + uResolution:vec2, +}; + +fn roundPixels(position: vec2, targetSize: vec2) -> vec2 +{ + return (floor(((position * 0.5 + 0.5) * targetSize) + 0.5) / targetSize) * 2.0 - 1.0; +} + +@group(0) @binding(0) var uniforms: ParticleUniforms; + +@group(1) @binding(0) var uTexture: texture_2d; +@group(1) @binding(1) var uSampler : sampler; + +struct VSOutput { + @builtin(position) position: vec4, + @location(0) uv : vec2, + @location(1) color : vec4, + }; +@vertex +fn mainVertex( + @location(0) aVertex: vec2, + @location(1) aPosition: vec2, + @location(2) aUV: vec2, + @location(3) aColor: vec4, + @location(4) aRotation: f32, +) -> VSOutput { + + let v = vec2( + aVertex.x * cos(aRotation) - aVertex.y * sin(aRotation), + aVertex.x * sin(aRotation) + aVertex.y * cos(aRotation) + ) + aPosition; + + var position = vec4((uniforms.uTranslationMatrix * vec3(v, 1.0)).xy, 0.0, 1.0); + + if(uniforms.uRound == 1.0) { + position = vec4(roundPixels(position.xy, uniforms.uResolution), position.zw); + } + + let vColor = vec4(aColor.rgb * aColor.a, aColor.a) * uniforms.uColor; + + return VSOutput( + position, + aUV, + vColor, + ); +} + +@fragment +fn mainFragment( + @location(0) uv: vec2, + @location(1) color: vec4, + @builtin(position) position: vec4, +) -> @location(0) vec4 { + + var sample = textureSample(uTexture, uSampler, uv) * color; + + return sample; +}`;class $t extends Mi{constructor(){const e=ve$1.from({vertex:Kt,fragment:Xt}),t=Zt$1.from({fragment:{source:Se,entryPoint:"mainFragment"},vertex:{source:Se,entryPoint:"mainVertex"}});super({glProgram:e,gpuProgram:t,resources:{uTexture:W.WHITE.source,uSampler:new wi({}),uniforms:{uTranslationMatrix:{value:new H$1,type:"mat3x3"},uColor:{value:new ot$1(16777215),type:"vec4"},uRound:{value:1,type:"f32"},uResolution:{value:[0,0],type:"vec2"}}}});}}class qe{constructor(e,t){this.state=ll.for2d(),this.localUniforms=new fo({uTranslationMatrix:{value:new H$1,type:"mat3x3"},uColor:{value:new Float32Array(4),type:"vec4"},uRound:{value:1,type:"f32"},uResolution:{value:[0,0],type:"vec2"}}),this.renderer=e,this.adaptor=t,this.defaultShader=new $t,this.state=ll.for2d(),this._managedContainers=new Bc({renderer:e,type:"renderable",name:"particleContainer"});}validateRenderable(e){return false}addRenderable(e,t){this.renderer.renderPipes.batch.break(t),t.add(e);}getBuffers(e){return e._gpuData[this.renderer.uid]||this._initBuffer(e)}_initBuffer(e){return e._gpuData[this.renderer.uid]=new Yt({size:e.particleChildren.length,properties:e._properties}),this._managedContainers.add(e),e._gpuData[this.renderer.uid]}updateRenderable(e){}execute(e){const t=e.particleChildren;if(t.length===0)return;const r=this.renderer,n=this.getBuffers(e);e.texture||(e.texture=t[0].texture);const i=this.state;n.update(t,e._childrenDirty),e._childrenDirty=false,i.blendMode=Ur(e.blendMode,e.texture._source);const s$1=this.localUniforms.uniforms,a=s$1.uTranslationMatrix;e.worldTransform.copyTo(a),a.prepend(r.globalUniforms.globalUniformData.projectionMatrix),s$1.uResolution=r.globalUniforms.globalUniformData.resolution,s$1.uRound=r._roundPixels|e._roundPixels,s(e.groupColorAlpha,s$1.uColor,0),this.adaptor.execute(this,e);}destroy(){this._managedContainers.destroy(),this.renderer=null,this.defaultShader&&(this.defaultShader.destroy(),this.defaultShader=null);}}class Qe extends qe{constructor(e){super(e,new Vt);}}Qe.extension={type:[B.WebGLPipes],name:"particle"};class Je extends qe{constructor(e){super(e,new Wt);}}Je.extension={type:[B.WebGPUPipes],name:"particle"};const Ze=class et extends Et{constructor(e={}){e={...et.defaultOptions,...e},super({width:e.width,height:e.height,verticesX:4,verticesY:4}),this.update(e);}update(e){this.width=e.width??this.width,this.height=e.height??this.height,this._originalWidth=e.originalWidth??this._originalWidth,this._originalHeight=e.originalHeight??this._originalHeight,this._leftWidth=e.leftWidth??this._leftWidth,this._rightWidth=e.rightWidth??this._rightWidth,this._topHeight=e.topHeight??this._topHeight,this._bottomHeight=e.bottomHeight??this._bottomHeight,this._anchorX=e.anchor?.x,this._anchorY=e.anchor?.y,this.updateUvs(),this.updatePositions();}updatePositions(){const e=this.positions,{width:t,height:r,_leftWidth:n,_rightWidth:i,_topHeight:s,_bottomHeight:a,_anchorX:l,_anchorY:u}=this,h=n+i,c=t>h?1:t/h,d=s+a,f=r>d?1:r/d,m=Math.min(c,f),x=l*t,g=u*r;e[0]=e[8]=e[16]=e[24]=-x,e[2]=e[10]=e[18]=e[26]=n*m-x,e[4]=e[12]=e[20]=e[28]=t-i*m-x,e[6]=e[14]=e[22]=e[30]=t-x,e[1]=e[3]=e[5]=e[7]=-g,e[9]=e[11]=e[13]=e[15]=s*m-g,e[17]=e[19]=e[21]=e[23]=r-a*m-g,e[25]=e[27]=e[29]=e[31]=r-g,this.getBuffer("aPosition").update();}updateUvs(){const e=this.uvs;e[0]=e[8]=e[16]=e[24]=0,e[1]=e[3]=e[5]=e[7]=0,e[6]=e[14]=e[22]=e[30]=1,e[25]=e[27]=e[29]=e[31]=1;const t=1/this._originalWidth,r=1/this._originalHeight;e[2]=e[10]=e[18]=e[26]=t*this._leftWidth,e[9]=e[11]=e[13]=e[15]=r*this._topHeight,e[4]=e[12]=e[20]=e[28]=1-t*this._rightWidth,e[17]=e[19]=e[21]=e[23]=1-r*this._bottomHeight,this.getBuffer("aUV").update();}};Ze.defaultOptions={width:100,height:100,leftWidth:10,topHeight:10,rightWidth:10,bottomHeight:10,originalWidth:100,originalHeight:100};let jt=Ze;class Nt extends oe{constructor(){super(),this.geometry=new jt;}destroy(){this.geometry.destroy();}}class tt{constructor(e){this._renderer=e,this._managedSprites=new Bc({renderer:e,type:"renderable",name:"nineSliceSprite"});}addRenderable(e,t){const r=this._getGpuSprite(e);e.didViewUpdate&&this._updateBatchableSprite(e,r),this._renderer.renderPipes.batch.addToBatch(r,t);}updateRenderable(e){const t=this._getGpuSprite(e);e.didViewUpdate&&this._updateBatchableSprite(e,t),t._batcher.updateElement(t);}validateRenderable(e){const t=this._getGpuSprite(e);return !t._batcher.checkAndUpdateTexture(t,e._texture)}_updateBatchableSprite(e,t){t.geometry.update(e),t.setTexture(e._texture);}_getGpuSprite(e){return e._gpuData[this._renderer.uid]||this._initGPUSprite(e)}_initGPUSprite(e){const t=e._gpuData[this._renderer.uid]=new Nt,r=t;return r.renderable=e,r.transform=e.groupTransform,r.texture=e._texture,r.roundPixels=this._renderer._roundPixels|e._roundPixels,this._managedSprites.add(e),e.didViewUpdate||this._updateBatchableSprite(e,r),t}destroy(){this._managedSprites.destroy(),this._renderer=null;}}tt.extension={type:[B.WebGLPipes,B.WebGPUPipes,B.CanvasPipes],name:"nineSliceSprite"};const qt={name:"tiling-bit",vertex:{header:` + struct TilingUniforms { + uMapCoord:mat3x3, + uClampFrame:vec4, + uClampOffset:vec2, + uTextureTransform:mat3x3, + uSizeAnchor:vec4 + }; + + @group(2) @binding(0) var tilingUniforms: TilingUniforms; + @group(2) @binding(1) var uTexture: texture_2d; + @group(2) @binding(2) var uSampler: sampler; + `,main:` + uv = (tilingUniforms.uTextureTransform * vec3(uv, 1.0)).xy; + + position = (position - tilingUniforms.uSizeAnchor.zw) * tilingUniforms.uSizeAnchor.xy; + `},fragment:{header:` + struct TilingUniforms { + uMapCoord:mat3x3, + uClampFrame:vec4, + uClampOffset:vec2, + uTextureTransform:mat3x3, + uSizeAnchor:vec4 + }; + + @group(2) @binding(0) var tilingUniforms: TilingUniforms; + @group(2) @binding(1) var uTexture: texture_2d; + @group(2) @binding(2) var uSampler: sampler; + `,main:` + + var coord = vUV + ceil(tilingUniforms.uClampOffset - vUV); + coord = (tilingUniforms.uMapCoord * vec3(coord, 1.0)).xy; + var unclamped = coord; + coord = clamp(coord, tilingUniforms.uClampFrame.xy, tilingUniforms.uClampFrame.zw); + + var bias = 0.; + + if(unclamped.x == coord.x && unclamped.y == coord.y) + { + bias = -32.; + } + + outColor = textureSampleBias(uTexture, uSampler, coord, bias); + `}},Qt={name:"tiling-bit",vertex:{header:` + uniform mat3 uTextureTransform; + uniform vec4 uSizeAnchor; + + `,main:` + uv = (uTextureTransform * vec3(aUV, 1.0)).xy; + + position = (position - uSizeAnchor.zw) * uSizeAnchor.xy; + `},fragment:{header:` + uniform sampler2D uTexture; + uniform mat3 uMapCoord; + uniform vec4 uClampFrame; + uniform vec2 uClampOffset; + `,main:` + + vec2 coord = vUV + ceil(uClampOffset - vUV); + coord = (uMapCoord * vec3(coord, 1.0)).xy; + vec2 unclamped = coord; + coord = clamp(coord, uClampFrame.xy, uClampFrame.zw); + + outColor = texture(uTexture, coord, unclamped == coord ? 0.0 : -32.0);// lod-bias very negative to force lod 0 + + `}};let X,K;class Jt extends Mi{constructor(){X??(X=vc({name:"tiling-sprite-shader",bits:[l,qt,zc]})),K??(K=kc({name:"tiling-sprite-shader",bits:[n,Qt,Ec]}));const e=new fo({uMapCoord:{value:new H$1,type:"mat3x3"},uClampFrame:{value:new Float32Array([0,0,1,1]),type:"vec4"},uClampOffset:{value:new Float32Array([0,0]),type:"vec2"},uTextureTransform:{value:new H$1,type:"mat3x3"},uSizeAnchor:{value:new Float32Array([100,100,.5,.5]),type:"vec4"}});super({glProgram:K,gpuProgram:X,resources:{localUniforms:new fo({uTransformMatrix:{value:new H$1,type:"mat3x3"},uColor:{value:new Float32Array([1,1,1,1]),type:"vec4"},uRound:{value:0,type:"f32"}}),tilingUniforms:e,uTexture:W.EMPTY.source,uSampler:W.EMPTY.source.style}});}updateUniforms(e,t,r,n,i,s){const a=this.resources.tilingUniforms,l=s.width,u=s.height,h=s.textureMatrix,c=a.uniforms.uTextureTransform;c.set(r.a*l/e,r.b*l/t,r.c*u/e,r.d*u/t,r.tx/e,r.ty/t),c.invert(),a.uniforms.uMapCoord=h.mapCoord,a.uniforms.uClampFrame=h.uClampFrame,a.uniforms.uClampOffset=h.uClampOffset,a.uniforms.uTextureTransform=c,a.uniforms.uSizeAnchor[0]=e,a.uniforms.uSizeAnchor[1]=t,a.uniforms.uSizeAnchor[2]=n,a.uniforms.uSizeAnchor[3]=i,s&&(this.resources.uTexture=s.source,this.resources.uSampler=s.source.style);}}class Zt extends ae{constructor(){super({positions:new Float32Array([0,0,1,0,1,1,0,1]),uvs:new Float32Array([0,0,1,0,1,1,0,1]),indices:new Uint32Array([0,1,2,0,2,3])});}}function er(o,e){const t=o.anchor.x,r=o.anchor.y;e[0]=-t*o.width,e[1]=-r*o.height,e[2]=(1-t)*o.width,e[3]=-r*o.height,e[4]=(1-t)*o.width,e[5]=(1-r)*o.height,e[6]=-t*o.width,e[7]=(1-r)*o.height;}function tr(o,e,t,r){let n=0;const i=o.length/e,s=r.a,a=r.b,l=r.c,u=r.d,h=r.tx,c=r.ty;for(t*=e;n, + uTransformMatrix:mat3x3, + uDistance: f32, + uRound:f32, + } + + @group(2) @binding(0) var localUniforms : LocalUniforms; + `,main:` + vColor *= localUniforms.uColor; + modelMatrix *= localUniforms.uTransformMatrix; + `,end:` + if(localUniforms.uRound == 1) + { + vPosition = vec4(roundPixels(vPosition.xy, globalUniforms.uResolution), vPosition.zw); + } + `},fragment:{header:` + struct LocalUniforms { + uColor:vec4, + uTransformMatrix:mat3x3, + uDistance: f32 + } + + @group(2) @binding(0) var localUniforms : LocalUniforms; + `,main:` + outColor = vec4(calculateMSDFAlpha(outColor, localUniforms.uColor, localUniforms.uDistance)); + `}},sr={name:"local-uniform-msdf-bit",vertex:{header:` + uniform mat3 uTransformMatrix; + uniform vec4 uColor; + uniform float uRound; + `,main:` + vColor *= uColor; + modelMatrix *= uTransformMatrix; + `,end:` + if(uRound == 1.) + { + gl_Position.xy = roundPixels(gl_Position.xy, uResolution); + } + `},fragment:{header:` + uniform float uDistance; + `,main:` + outColor = vec4(calculateMSDFAlpha(outColor, vColor, uDistance)); + `}},ar={name:"msdf-bit",fragment:{header:` + fn calculateMSDFAlpha(msdfColor:vec4, shapeColor:vec4, distance:f32) -> f32 { + + // MSDF + var median = msdfColor.r + msdfColor.g + msdfColor.b - + min(msdfColor.r, min(msdfColor.g, msdfColor.b)) - + max(msdfColor.r, max(msdfColor.g, msdfColor.b)); + + // SDF + median = min(median, msdfColor.a); + + var screenPxDistance = distance * (median - 0.5); + var alpha = clamp(screenPxDistance + 0.5, 0.0, 1.0); + if (median < 0.01) { + alpha = 0.0; + } else if (median > 0.99) { + alpha = 1.0; + } + + // Gamma correction for coverage-like alpha + var luma: f32 = dot(shapeColor.rgb, vec3(0.299, 0.587, 0.114)); + var gamma: f32 = mix(1.0, 1.0 / 2.2, luma); + var coverage: f32 = pow(shapeColor.a * alpha, gamma); + + return coverage; + + } + `}},or={name:"msdf-bit",fragment:{header:` + float calculateMSDFAlpha(vec4 msdfColor, vec4 shapeColor, float distance) { + + // MSDF + float median = msdfColor.r + msdfColor.g + msdfColor.b - + min(msdfColor.r, min(msdfColor.g, msdfColor.b)) - + max(msdfColor.r, max(msdfColor.g, msdfColor.b)); + + // SDF + median = min(median, msdfColor.a); + + float screenPxDistance = distance * (median - 0.5); + float alpha = clamp(screenPxDistance + 0.5, 0.0, 1.0); + + if (median < 0.01) { + alpha = 0.0; + } else if (median > 0.99) { + alpha = 1.0; + } + + // Gamma correction for coverage-like alpha + float luma = dot(shapeColor.rgb, vec3(0.299, 0.587, 0.114)); + float gamma = mix(1.0, 1.0 / 2.2, luma); + float coverage = pow(shapeColor.a * alpha, gamma); + + return coverage; + } + `}};let $,j;class ur extends Mi{constructor(e){const t=new fo({uColor:{value:new Float32Array([1,1,1,1]),type:"vec4"},uTransformMatrix:{value:new H$1,type:"mat3x3"},uDistance:{value:4,type:"f32"},uRound:{value:0,type:"f32"}});$??($=vc({name:"sdf-shader",bits:[Ac,Tc(e),ir,ar,zc]})),j??(j=kc({name:"sdf-shader",bits:[Sc,Ic(e),sr,or,Ec]})),super({glProgram:j,gpuProgram:$,resources:{localUniforms:t,batchSamplers:Rc(e)}});}}class lr extends nt$1{destroy(){this.context.customShader&&this.context.customShader.destroy(),super.destroy();}}class nt{constructor(e){this._renderer=e,this._managedBitmapTexts=new Bc({renderer:e,type:"renderable",priority:-2,name:"bitmapText"});}validateRenderable(e){const t=this._getGpuBitmapText(e);return this._renderer.renderPipes.graphics.validateRenderable(t)}addRenderable(e,t){const r=this._getGpuBitmapText(e);Fe(e,r),e._didTextUpdate&&(e._didTextUpdate=false,this._updateContext(e,r)),this._renderer.renderPipes.graphics.addRenderable(r,t),r.context.customShader&&this._updateDistanceField(e);}updateRenderable(e){const t=this._getGpuBitmapText(e);Fe(e,t),this._renderer.renderPipes.graphics.updateRenderable(t),t.context.customShader&&this._updateDistanceField(e);}_updateContext(e,t){const{context:r}=t,n=_n.getFont(e.text,e._style);r.clear(),n.distanceField.type!=="none"&&(r.customShader||(r.customShader=new ur(this._renderer.limits.maxBatchableTextures)));const i=gi.graphemeSegmenter(e.text),s=e._style;let a=n.baseLineOffset;const l=Bu(i,s,n,true),u=s.padding,h=l.scale;let c=l.width,d=l.height+l.offsetY;s._stroke&&(c+=s._stroke.width/h,d+=s._stroke.width/h),r.translate(-e._anchor._x*c-u,-e._anchor._y*d-u).scale(h,h);const f=n.applyFillAsTint?s._fill.color:16777215;let m=n.fontMetrics.fontSize,x=n.lineHeight;s.lineHeight&&(m=s.fontSize/h,x=s.lineHeight/h);let g=(x-m)/2;g-n.baseLineOffset<0&&(g=0);for(let _=0;_{console.error(i);}),e._didTextUpdate=false,te(r,e);}this._renderer.renderPipes.batch.addToBatch(r,t);}updateRenderable(e){const t=this._getGpuText(e);t._batcher.updateElement(t);}async _updateGpuText(e){e._didTextUpdate=false;const t=this._getGpuText(e);if(t.generatingTexture)return;const r=t.texturePromise;t.texturePromise=null,t.generatingTexture=true,e._resolution=e._autoResolution?this._renderer.resolution:e.resolution;let n=this._renderer.htmlText.getTexturePromise(e);r&&(n=n.finally(()=>{this._renderer.htmlText.decreaseReferenceCount(t.currentKey),this._renderer.htmlText.returnTexturePromise(r);})),t.texturePromise=n,t.currentKey=e.styleKey,t.texture=await n;const i=e.renderGroup||e.parentRenderGroup;i&&(i.structureDidChange=true),t.generatingTexture=false,te(t,e);}_getGpuText(e){return e._gpuData[this._renderer.uid]||this.initGpuText(e)}initGpuText(e){const t=new cr;return t.renderable=e,t.transform=e.groupTransform,t.texture=W.EMPTY,t.bounds={minX:0,maxX:1,minY:0,maxY:0},t.roundPixels=this._renderer._roundPixels|e._roundPixels,e._resolution=e._autoResolution?this._renderer.resolution:e.resolution,e._gpuData[this._renderer.uid]=t,this._managedTexts.add(e),t}onTextUnload(e){const t=e._gpuData[this._renderer.uid];if(!t)return;const{htmlText:r}=this._renderer;r.getReferenceCount(t.currentKey)===null?r.returnTexturePromise(t.texturePromise):r.decreaseReferenceCount(t.currentKey);}destroy(){this._managedTexts.destroy(),this._renderer=null;}}it.extension={type:[B.WebGLPipes,B.WebGPUPipes,B.CanvasPipes],name:"htmlText"};function dr(){const{userAgent:o}=$$1.get().getNavigator();return /^((?!chrome|android).)*safari/i.test(o)}const hr=new Lt$1;function st(o,e,t,r){const n=hr;n.minX=0,n.minY=0,n.maxX=o.width/r|0,n.maxY=o.height/r|0;const i=we$1.getOptimalTexture(n.width,n.height,r,false);return i.source.uploadMethodId="image",i.source.resource=o,i.source.alphaMode="premultiply-alpha-on-upload",i.frame.width=e/r,i.frame.height=t/r,i.source.emit("update",i.source),i.updateUvs(),i}function fr(o,e){const t=e.fontFamily,r=[],n={},i=/font-family:([^;"\s]+)/g,s=o.match(i);function a(l){n[l]||(r.push(l),n[l]=true);}if(Array.isArray(t))for(let l=0;l{const u=l.split(":")[1].trim();a(u);});for(const l in e.tagStyles){const u=e.tagStyles[l].fontFamily;a(u);}return r}async function pr(o){const t=await(await $$1.get().fetch(o)).blob(),r=new FileReader;return await new Promise((i,s)=>{r.onloadend=()=>i(r.result),r.onerror=s,r.readAsDataURL(t);})}async function mr(o,e){const t=await pr(e);return `@font-face { + font-family: "${o.fontFamily}"; + font-weight: ${o.fontWeight}; + font-style: ${o.fontStyle}; + src: url('${t}'); + }`}const N=new Map;async function gr(o){const e=o.filter(t=>Q.has(`${t}-and-url`)).map(t=>{if(!N.has(t)){const{entries:r}=Q.get(`${t}-and-url`),n=[];r.forEach(i=>{const s=i.url,l=i.faces.map(u=>({weight:u.weight,style:u.style}));n.push(...l.map(u=>mr({fontWeight:u.weight,fontStyle:u.style,fontFamily:t},s)));}),N.set(t,Promise.all(n).then(i=>i.join(` +`)));}return N.get(t)});return (await Promise.all(e)).join(` +`)}function xr(o,e,t,r,n){const{domElement:i,styleElement:s,svgRoot:a}=n;i.innerHTML=`
    ${o}
    `,i.setAttribute("style",`transform: scale(${t});transform-origin: top left; display: inline-block`),s.textContent=r;const{width:l,height:u}=n.image;return a.setAttribute("width",l.toString()),a.setAttribute("height",u.toString()),new XMLSerializer().serializeToString(a)}function _r(o,e){const t=Gs.getOptimalCanvasAndContext(o.width,o.height,e),{context:r}=t;return r.clearRect(0,0,o.width,o.height),r.drawImage(o,0,0),t}function br(o,e,t){return new Promise(async r=>{t&&await new Promise(n=>setTimeout(n,100)),o.onload=()=>{r();},o.src=`data:image/svg+xml;charset=utf8,${encodeURIComponent(e)}`,o.crossOrigin="anonymous";})}class at{constructor(e){this._activeTextures={},this._renderer=e,this._createCanvas=e.type===Ss.WEBGPU;}getTexture(e){return this.getTexturePromise(e)}getManagedTexture(e){const t=e.styleKey;if(this._activeTextures[t])return this._increaseReferenceCount(t),this._activeTextures[t].promise;const r=this._buildTexturePromise(e).then(n=>(this._activeTextures[t].texture=n,n));return this._activeTextures[t]={texture:null,promise:r,usageCount:1},r}getReferenceCount(e){return this._activeTextures[e]?.usageCount??null}_increaseReferenceCount(e){this._activeTextures[e].usageCount++;}decreaseReferenceCount(e){const t=this._activeTextures[e];t&&(t.usageCount--,t.usageCount===0&&(t.texture?this._cleanUp(t.texture):t.promise.then(r=>{t.texture=r,this._cleanUp(t.texture);}).catch(()=>{J("HTMLTextSystem: Failed to clean texture");}),this._activeTextures[e]=null));}getTexturePromise(e){return this._buildTexturePromise(e)}async _buildTexturePromise(e){const{text:t,style:r,resolution:n,textureStyle:i}=e,s=Pt.get(Xe),a=fr(t,r),l=await gr(a),u=Ot(t,r,l,s),h=Math.ceil(Math.ceil(Math.max(1,u.width)+r.padding*2)*n),c=Math.ceil(Math.ceil(Math.max(1,u.height)+r.padding*2)*n),d=s.image,f=2;d.width=(h|0)+f,d.height=(c|0)+f;const m=xr(t,r,n,l,s);await br(d,m,dr()&&a.length>0);const x=d;let g;this._createCanvas&&(g=_r(d,n));const _=st(g?g.canvas:x,d.width-f,d.height-f,n);return i&&(_.source.style=i),this._createCanvas&&(this._renderer.texture.initSource(_.source),Gs.returnCanvasAndContext(g)),Pt.return(s),_}returnTexturePromise(e){e.then(t=>{this._cleanUp(t);}).catch(()=>{J("HTMLTextSystem: Failed to clean texture");});}_cleanUp(e){we$1.returnTexture(e,true),e.source.resource=null,e.source.uploadMethodId="unknown";}destroy(){this._renderer=null;for(const e in this._activeTextures)this._activeTextures[e]&&this.returnTexturePromise(this._activeTextures[e].promise);this._activeTextures=null;}}at.extension={type:[B.WebGLSystem,B.WebGPUSystem,B.CanvasSystem],name:"htmlText"};class vr extends a{}class ot{constructor(e){this._renderer=e,e.runners.resolutionChange.add(this),this._managedTexts=new Bc({renderer:e,type:"renderable",onUnload:this.onTextUnload.bind(this),name:"canvasText"});}resolutionChange(){for(const e in this._managedTexts.items){const t=this._managedTexts.items[e];t?._autoResolution&&t.onViewUpdate();}}validateRenderable(e){const t=this._getGpuText(e),r=e.styleKey;return t.currentKey!==r?true:e._didTextUpdate}addRenderable(e,t){const r=this._getGpuText(e);if(e._didTextUpdate){const n=e._autoResolution?this._renderer.resolution:e.resolution;(r.currentKey!==e.styleKey||e.resolution!==n)&&this._updateGpuText(e),e._didTextUpdate=false,te(r,e);}this._renderer.renderPipes.batch.addToBatch(r,t);}updateRenderable(e){const t=this._getGpuText(e);t._batcher.updateElement(t);}_updateGpuText(e){const t=this._getGpuText(e);t.texture&&this._renderer.canvasText.decreaseReferenceCount(t.currentKey),e._resolution=e._autoResolution?this._renderer.resolution:e.resolution,t.texture=this._renderer.canvasText.getManagedTexture(e),t.currentKey=e.styleKey;}_getGpuText(e){return e._gpuData[this._renderer.uid]||this.initGpuText(e)}initGpuText(e){const t=new vr;return t.currentKey="--",t.renderable=e,t.transform=e.groupTransform,t.bounds={minX:0,maxX:1,minY:0,maxY:0},t.roundPixels=this._renderer._roundPixels|e._roundPixels,e._gpuData[this._renderer.uid]=t,this._managedTexts.add(e),t}onTextUnload(e){const t=e._gpuData[this._renderer.uid];if(!t)return;const{canvasText:r}=this._renderer;r.getReferenceCount(t.currentKey)>0?r.decreaseReferenceCount(t.currentKey):t.texture&&r.returnTexture(t.texture);}destroy(){this._managedTexts.destroy(),this._renderer=null;}}ot.extension={type:[B.WebGLPipes,B.WebGPUPipes,B.CanvasPipes],name:"text"};class ut{constructor(e){this._activeTextures={},this._renderer=e;}getTexture(e,t,r,n){typeof e=="string"&&(D("8.0.0","CanvasTextSystem.getTexture: Use object TextOptions instead of separate arguments"),e={text:e,style:r,resolution:t}),e.style instanceof Si||(e.style=new Si(e.style)),e.textureStyle instanceof wi||(e.textureStyle=new wi(e.textureStyle)),typeof e.text!="string"&&(e.text=e.text.toString());const{text:i,style:s,textureStyle:a}=e,l=e.resolution??this._renderer.resolution,{frame:u,canvasAndContext:h}=H.getCanvasAndContext({text:i,style:s,resolution:l}),c=st(h.canvas,u.width,u.height,l);if(a&&(c.source.style=a),s.trim&&(u.pad(s.padding),c.frame.copyFrom(u),c.frame.scale(1/l),c.updateUvs()),s.filters){const d=this._applyFilters(c,s.filters);return this.returnTexture(c),H.returnCanvasAndContext(h),d}return this._renderer.texture.initSource(c._source),H.returnCanvasAndContext(h),c}returnTexture(e){const t=e.source;t.resource=null,t.uploadMethodId="unknown",t.alphaMode="no-premultiply-alpha",we$1.returnTexture(e,true);}renderTextToCanvas(){D("8.10.0","CanvasTextSystem.renderTextToCanvas: no longer supported, use CanvasTextSystem.getTexture instead");}getManagedTexture(e){e._resolution=e._autoResolution?this._renderer.resolution:e.resolution;const t=e.styleKey;if(this._activeTextures[t])return this._increaseReferenceCount(t),this._activeTextures[t].texture;const r=this.getTexture({text:e.text,style:e.style,resolution:e._resolution,textureStyle:e.textureStyle});return this._activeTextures[t]={texture:r,usageCount:1},r}decreaseReferenceCount(e){const t=this._activeTextures[e];t.usageCount--,t.usageCount===0&&(this.returnTexture(t.texture),this._activeTextures[e]=null);}getReferenceCount(e){return this._activeTextures[e]?.usageCount??0}_increaseReferenceCount(e){this._activeTextures[e].usageCount++;}_applyFilters(e,t){const r=this._renderer.renderTarget.renderTarget,n=this._renderer.filter.generateFilteredTexture({texture:e,filters:t});return this._renderer.renderTarget.bind(r,false),n}destroy(){this._renderer=null;for(const e in this._activeTextures)this._activeTextures[e]&&this.returnTexture(this._activeTextures[e].texture);this._activeTextures=null;}}ut.extension={type:[B.WebGLSystem,B.WebGPUSystem,B.CanvasSystem],name:"canvasText"};ft.add(Ee);ft.add(Ve);ft.add(Ke);ft.add(Wo);ft.add(Ne);ft.add(Qe);ft.add(Je);ft.add(ut);ft.add(ot);ft.add(nt);ft.add(at);ft.add(it);ft.add(rt);ft.add(tt);ft.add(Le);ft.add(We); +//# sourceMappingURL=webworkerAll-B81XBg67.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/zh-CN-DFscmJOp.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/zh-CN-DFscmJOp.js new file mode 100644 index 0000000000000000000000000000000000000000..3fbb8c32931574753453cd5bf0fb1fe1c899ae10 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/zh-CN-DFscmJOp.js @@ -0,0 +1,4 @@ +const o="简体中文",e={annotated_image:"标注图像"},r={allow_recording_access:"请允许访问麦克风以进行录音。",audio:"音频",record_from_microphone:"从麦克风录制",stop_recording:"停止录制",no_device_support:"无法访问媒体设备。请检查您是否在安全来源(https)或本地主机上运行(或者您已经通过 ssl_verify 传递了有效的 SSL 证书),并且您已经允许浏览器访问您的设备。",stop:"停止",resume:"继续",record:"录制",no_microphone:"找不到麦克风",pause:"暂停",play:"播放",waiting:"等待中",drop_to_upload:"将音频文件拖放到此处以上传"},t={connection_can_break:"在移动设备上,如果此标签页失去焦点或设备休眠,连接可能会中断,导致您在队列中失去位置。",long_requests_queue:"有一个长时间的待处理请求队列。复制此 Space 以跳过队列。",lost_connection:"由于离开页面,连接已丢失。正在重新加入队列...",waiting_for_inputs:"等待文件上传完成,请稍后重试。"},_={checkbox:"复选框",checkbox_group:"复选框组"},c={code:"代码"},a={color_picker:"颜色选择器"},n={built_with:"构建于",built_with_gradio:"使用 Gradio 构建",clear:"清除",download:"下载",edit:"编辑",empty:"空",error:"错误",hosted_on:"托管在",loading:"加载中",logo:"标志",or:"或",remove:"移除",share:"分享",submit:"提交",undo:"撤销",settings:"设置",no_devices:"未找到设备",language:"语言",display_theme:"显示主题",pwa:"渐进式 Web 应用"},s={incorrect_format:"格式不正确,仅支持 CSV 和 TSV 文件",new_column:"添加列",new_row:"新行",add_row_above:"在上方添加行",add_row_below:"在下方添加行",delete_row:"删除行",delete_column:"删除列",add_column_left:"在左侧添加列",add_column_right:"在右侧添加列",sort_column:"排序列",sort_ascending:"升序排序",sort_descending:"降序排序",drop_to_upload:"将 CSV 或 TSV 文件拖放到此处以将数据导入数据框",clear_sort:"清除排序"},d={dropdown:"下拉菜单"},i={build_error:"存在构建错误",config_error:"存在配置错误",contact_page_author:"请联系页面的作者并告知他们。",no_app_file:"不存在应用文件",runtime_error:"存在运行时错误",space_not_working:'"Space 无法工作,原因:" {0}',space_paused:"Space 已暂停",use_via_api:"通过 API 使用",use_via_api_or_mcp:"通过 API 或 MCP 使用"},l={uploading:"正在上传..."},p={highlighted_text:"高亮文本"},u={allow_webcam_access:"请允许访问网络摄像头以进行录制。",brush_color:"画笔颜色",brush_radius:"画笔大小",image:"图像",remove_image:"移除图像",select_brush_color:"选择画笔颜色",start_drawing:"开始绘画",use_brush:"使用画笔",drop_to_upload:"将图像文件拖放到此处以上传"},g={label:"标签"},m={enable_cookies:"如果您正在使用隐身模式访问 HuggingFace Space,您必须启用第三方 cookie。",incorrect_credentials:"凭据不正确",login:"登录",username:"用户名",password:"密码"},b={number:"数字"},h={plot:"图表"},w={radio:"单选框"},k={slider:"滑块"},f={click_to_upload:"点击上传",drop_audio:"将音频拖放到此处",drop_csv:"将 CSV 文件拖放到此处",drop_file:"将文件拖放到此处",drop_image:"将图像拖放到此处",drop_video:"将视频拖放到此处",drop_gallery:"在此处放置媒体文件",paste_clipboard:"从剪贴板粘贴"},v={drop_to_upload:"将视频文件拖放到此处以上传"},S={edit:"编辑",retry:"重试",undo:"撤销",submit:"发送",cancel:"取消",like:"赞",dislike:"踩",clear:"清空对话"},x={_name:o,"3D_model":{"3d_model":"3D模型",drop_to_upload:"将 3D 模型(.obj、.glb、.stl、.gltf、.splat 或 .ply)文件拖放到此处以上传"},annotated_image:e,audio:r,blocks:t,checkbox:_,code:c,color_picker:a,common:n,dataframe:s,dropdown:d,errors:i,file:l,highlighted_text:p,image:u,label:g,login:m,number:b,plot:h,radio:w,slider:k,upload_text:f,video:v,chatbot:S}; + +export { o as _name, e as annotated_image, r as audio, t as blocks, S as chatbot, _ as checkbox, c as code, a as color_picker, n as common, s as dataframe, x as default, d as dropdown, i as errors, l as file, p as highlighted_text, u as image, g as label, m as login, b as number, h as plot, w as radio, k as slider, f as upload_text, v as video }; +//# sourceMappingURL=zh-CN-DFscmJOp.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/zh-TW-DZ2Xs7L6.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/zh-TW-DZ2Xs7L6.js new file mode 100644 index 0000000000000000000000000000000000000000..d3b3d7d520a8689a854a15a50749558e21a005ec --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/chunks/zh-TW-DZ2Xs7L6.js @@ -0,0 +1,4 @@ +const o="繁體中文",e={built_with_gradio:"使用 Gradio 建構",clear:"清除",or:"或",submit:"提交",built_with:"使用",download:"下載",edit:"編輯",empty:"空白",error:"錯誤",hosted_on:"托管於",loading:"載入中",logo:"標誌",remove:"移除",settings:"設定",share:"分享",undo:"復原",no_devices:"未找到裝置",language:"語言",display_theme:"顯示主題",pwa:"漸進式網頁應用程式"},r={click_to_upload:"點擊上傳",drop_audio:"拖放音訊至此處",drop_csv:"拖放 CSV 至此處",drop_file:"拖放檔案至此處",drop_image:"拖放圖片至此處",drop_video:"拖放影片至此處",drop_gallery:"在此處拖放媒體",paste_clipboard:"從剪貼簿貼上"},t={annotated_image:"標註圖像"},_={allow_recording_access:"請允許存取麥克風以進行錄音。",audio:"音訊",drop_to_upload:"將音訊檔案拖放到這裡上傳",record_from_microphone:"從麥克風錄音",stop_recording:"停止錄製",no_device_support:"無法存取媒體裝置。請確認您正在使用安全來源(https)或本機主機(或您已提供有效的 SSL 憑證以進行 ssl_verify),並且已允許瀏覽器存取您的裝置。",stop:"停止",resume:"繼續",record:"錄製",no_microphone:"未找到麥克風",pause:"暫停",play:"播放",waiting:"等待中"},c={connection_can_break:"在行動裝置上,如果此分頁失去焦點或裝置進入睡眠模式,連線可能會中斷,導致您在隊列中的位置遺失。",long_requests_queue:"目前有許多待處理的請求。複製此 Space 以跳過隊列。",lost_connection:"因離開頁面而失去連接。正在重新加入隊列...",waiting_for_inputs:"等待檔案上傳完成,請稍後重試。"},a={checkbox:"核取方塊",checkbox_group:"核取方塊群組"},n={code:"程式碼"},s={color_picker:"顏色選擇器"},d={incorrect_format:"格式不正確,僅支援 CSV 和 TSV 檔案",new_column:"新增欄位",new_row:"新增列",add_row_above:"在上方新增列",add_row_below:"在下方新增列",delete_row:"刪除列",delete_column:"刪除欄位",add_column_left:"在左側新增欄位",add_column_right:"在右側新增欄位",sort_column:"排序欄位",sort_ascending:"升冪排序",sort_descending:"降冪排序",drop_to_upload:"將 CSV 或 TSV 檔案拖放到這裡以匯入資料到資料框中",clear_sort:"清除排序"},i={dropdown:"下拉選單"},l={build_error:"有建置錯誤",config_error:"有設定錯誤",contact_page_author:"請聯繫頁面的作者以通知他們。",no_app_file:"沒有應用程式檔案",runtime_error:"有執行時錯誤",space_not_working:'"Space 無法運作,因為" {0}',space_paused:"Space 已暫停",use_via_api:"透過 API 使用",use_via_api_or_mcp:"透過 API 或 MCP 使用"},p={uploading:"上傳中..."},u={highlighted_text:"醒目提示的文字"},g={allow_webcam_access:"請允許存取網路攝影機以進行錄製。",brush_color:"筆刷顏色",brush_radius:"筆刷大小",image:"圖像",remove_image:"移除圖片",select_brush_color:"選擇筆刷顏色",start_drawing:"開始繪圖",use_brush:"使用筆刷",drop_to_upload:"將圖像檔案拖放到這裡上傳"},m={label:"標籤"},b={enable_cookies:"如果您在無痕模式下訪問 HuggingFace Space,您必須啟用第三方 Cookie。",incorrect_credentials:"憑證錯誤",username:"使用者名稱",password:"密碼",login:"登入"},h={number:"數字"},w={plot:"圖表"},k={radio:"單選按鈕"},f={slider:"滑桿"},v={drop_to_upload:"將影片檔案拖放到這裡上傳"},S={edit:"編輯",retry:"重試",undo:"復原",submit:"送出",cancel:"取消",like:"讚",dislike:"不讚",clear:"清空對話"},x={_name:o,common:e,upload_text:r,"3D_model":{"3d_model":"3D 模型",drop_to_upload:"將 3D 模型 (.obj、.glb、.stl、.gltf、.splat 或 .ply) 檔案拖放到這裡上傳"},annotated_image:t,audio:_,blocks:c,checkbox:a,code:n,color_picker:s,dataframe:d,dropdown:i,errors:l,file:p,highlighted_text:u,image:g,label:m,login:b,number:h,plot:w,radio:k,slider:f,video:v,chatbot:S}; + +export { o as _name, t as annotated_image, _ as audio, c as blocks, S as chatbot, a as checkbox, n as code, s as color_picker, e as common, d as dataframe, x as default, i as dropdown, l as errors, p as file, u as highlighted_text, g as image, m as label, b as login, h as number, w as plot, k as radio, f as slider, r as upload_text, v as video }; +//# sourceMappingURL=zh-TW-DZ2Xs7L6.js.map diff --git a/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/index.js b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/index.js new file mode 100644 index 0000000000000000000000000000000000000000..3775e3d7c07fd90fb9737d38511a852dbcf6e251 --- /dev/null +++ b/.venv/lib/python3.10/site-packages/gradio/templates/node/build/server/index.js @@ -0,0 +1,257 @@ +import { e } from './chunks/dev-fallback-Bc5Ork7Y.js'; +import { S as SvelteKitError, j as json, t as text, R as Redirect, H as HttpError, e as error, A as ActionFailure } from './chunks/index-wpIsICWW.js'; +import { a as f, h, e as e$1, j as j$2, i, O as O$2, D, E as E$1, U as U$2, w as with_request_store, T as T$1, C as C$2, I as I$2, L, t, s, y, R as R$1, l, c, x as x$2, b as try_get_request_store, r, o, d as c$1 } from './chunks/exports-Caq1H35p.js'; +import { a as asClassComponent } from './chunks/legacy-server-CxBQ4HtA.js'; +import './chunks/async-D55cHugf.js'; +import { a as setContext } from './chunks/context-CBkBucIx.js'; +import { a } from './chunks/index5-BoOEKc6P.js'; +import { r as readable, w as writable } from './chunks/index-Cg-Pg6j3.js'; +import './chunks/index-u8mz_F03.js'; +import './chunks/escaping-CBnpiEl5.js'; + +/** + * @template {{ tracing: { enabled: boolean, root: import('@opentelemetry/api').Span, current: import('@opentelemetry/api').Span } }} T + * @param {T} event_like + * @param {import('@opentelemetry/api').Span} current + * @returns {T} + */ +function merge_tracing(event_like, current) { + return { + ...event_like, + tracing: { + ...event_like.tracing, + current + } + }; +} + +const ge={"<":"\\u003C","\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\u2028":"\\u2028","\u2029":"\\u2029"};let j$1 = class j extends Error{constructor(r,t,n,a){super(r),this.name="DevalueError",this.path=t.join(""),this.value=n,this.root=a;}};function R(e){return Object(e)!==e}const H=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function K(e){const r=Object.getPrototypeOf(e);return r===Object.prototype||r===null||Object.getPrototypeOf(r)===null||Object.getOwnPropertyNames(r).sort().join("\0")===H}function q(e){return Object.prototype.toString.call(e).slice(8,-1)}function Q(e){switch(e){case '"':return '\\"';case "<":return "\\u003C";case "\\":return "\\\\";case ` +`:return "\\n";case "\r":return "\\r";case " ":return "\\t";case "\b":return "\\b";case "\f":return "\\f";case "\u2028":return "\\u2028";case "\u2029":return "\\u2029";default:return e<" "?`\\u${e.charCodeAt(0).toString(16).padStart(4,"0")}`:""}}function A(e){let r="",t=0;const n=e.length;for(let a=0;aObject.getOwnPropertyDescriptor(e,r).enumerable)}const ee=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function B(e){return ee.test(e)?"."+e:"["+JSON.stringify(e)+"]"}function te(e){const r=new DataView(e);let t="";for(let n=0;n>16),r+=String.fromCharCode((t&65280)>>8),r+=String.fromCharCode(t&255),t=n=0);return n===12?(t>>=4,r+=String.fromCharCode(t)):n===18&&(t>>=2,r+=String.fromCharCode((t&65280)>>8),r+=String.fromCharCode(t&255)),r}function ae$1(e){let r="";for(let t=0;t>2,n[1]=(e.charCodeAt(t)&3)<<4,e.length>t+1&&(n[1]|=e.charCodeAt(t+1)>>4,n[2]=(e.charCodeAt(t+1)&15)<<2),e.length>t+2&&(n[2]|=e.charCodeAt(t+2)>>6,n[3]=e.charCodeAt(t+2)&63);for(let a=0;a"u"?r+="=":r+=x$1[n[a]];}return r}const T=-1,M$2=-2,F=-3,Y=-4,V=-5,P$1=-6;function Z(e,r){return se(JSON.parse(e),r)}function se(e,r){if(typeof e=="number")return s(e,true);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const t=e,n=Array(t.length);let a=null;function s(c,b=false){if(c===T)return;if(c===F)return NaN;if(c===Y)return 1/0;if(c===V)return -1/0;if(c===P$1)return -0;if(b||typeof c!="number")throw new Error("Invalid input");if(c in n)return n[c];const f=t[c];if(!f||typeof f!="object")n[c]=f;else if(Array.isArray(f))if(typeof f[0]=="string"){const o=f[0],l=r&&Object.hasOwn(r,o)?r[o]:void 0;if(l){let i=f[1];if(typeof i!="number"&&(i=t.push(f[1])-1),a??=new Set,a.has(i))throw new Error("Invalid circular reference");return a.add(i),n[c]=l(s(i)),a.delete(i),n[c]}switch(o){case "Date":n[c]=new Date(f[1]);break;case "Set":const i=new Set;n[c]=i;for(let y=1;y0&&(i+=","),h in o?(s.push(`[${h}]`),i+=b(o[h]),s.pop()):i+=M$2;i+="]";break;case "Set":i='["Set"';for(const h of o)i+=`,${b(h)}`;i+="]";break;case "Map":i='["Map"';for(const[h,d]of o)s.push(`.get(${R(h)?E(h):"..."})`),i+=`,${b(h)},${b(d)}`,s.pop();i+="]";break;case "Int8Array":case "Uint8Array":case "Uint8ClampedArray":case "Int16Array":case "Uint16Array":case "Int32Array":case "Uint32Array":case "Float32Array":case "Float64Array":case "BigInt64Array":case "BigUint64Array":{const h=o;i='["'+m+'",'+b(h.buffer);const d=o.byteOffset,p=d+o.byteLength;if(d>0||p!==h.buffer.byteLength){const g=+/(\d+)/.exec(m)[1]/8;i+=`,${d/g},${p/g}`;}i+="]";break}case "ArrayBuffer":{i=`["ArrayBuffer","${te(o)}"]`;break}case "Temporal.Duration":case "Temporal.Instant":case "Temporal.PlainDate":case "Temporal.PlainTime":case "Temporal.PlainDateTime":case "Temporal.PlainMonthDay":case "Temporal.PlainYearMonth":case "Temporal.ZonedDateTime":i=`["${m}",${A(o.toString())}]`;break;default:if(!K(o))throw new j$1("Cannot stringify arbitrary non-POJOs",s,o,e);if(X(o).length>0)throw new j$1("Cannot stringify POJOs with symbolic keys",s,o,e);if(Object.getPrototypeOf(o)===null){i='["null"';for(const h in o)s.push(B(h)),i+=`,${A(h)},${b(o[h])}`,s.pop();i+="]";}else {i="{";let h=false;for(const d in o)h&&(i+=","),h=true,s.push(B(d)),i+=`${A(d)}:${b(o[d])}`,s.pop();i+="}";}}}return t[l]=i,l}const f=b(e);return f<0?`${f}`:`[${t.join(",")}]`}function E(e){const r=typeof e;return r==="string"?A(e):e instanceof String?A(e.toString()):e===void 0?T.toString():e===0&&1/e<0?P$1.toString():r==="bigint"?`["BigInt","${e}"]`:String(e)}function ie(e,r,t){r.startsWith("n:")?(r=r.slice(2),t=t===""?void 0:parseFloat(t)):r.startsWith("b:")&&(r=r.slice(2),t=t==="on"),he$1(e,ue(r),t);}function ce$1(e){const r={};for(let t of e.keys()){const n=t.endsWith("[]");let a=e.getAll(t);if(n&&(t=t.slice(0,-2)),a.length>1&&!n)throw new Error(`Form cannot contain duplicated keys — "${t}" has ${a.length} values`);a=a.filter(s=>typeof s=="string"||s.name!==""||s.size>0),t.startsWith("n:")?(t=t.slice(2),a=a.map(s=>s===""?void 0:parseFloat(s))):t.startsWith("b:")&&(t=t.slice(2),a=a.map(s=>s==="on")),ie(r,t,n?a:a[0]);}return r}const fe="application/x-sveltekit-formdata",U$1=0,O$1=7;async function _e(e){if(e.headers.get("content-type")!==fe){const u=await e.formData();return {data:ce$1(u),meta:{},form_data:u}}if(!e.body)throw _("no body");const r=parseInt(e.headers.get("content-length")??"");if(Number.isNaN(r))throw _("invalid Content-Length header");const t=e.body.getReader(),n=[];function a(u){if(u in n)return n[u];let h=n.length;for(;h<=u;)n[h]=t.read().then(d=>d.value),h++;return n[u]}async function s(u,h){let d,p=0,g;for(g=0;;g++){const w=await a(g);if(!w)return null;const L=p+w.byteLength;if(u>=p&&uh-$&&(w=w.subarray(0,h-$)),N.push(w),$+=w.byteLength;}const D=new Uint8Array(h);$=0;for(const w of N)D.set(w,$),$+=w.byteLength;return D}const c=await s(0,O$1);if(!c)throw _("too short");if(c[0]!==U$1)throw _(`got version ${c[0]}, expected version ${U$1}`);const b=new DataView(c.buffer,c.byteOffset,c.byteLength),f$1=b.getUint32(1,true);if(O$1+f$1>r)throw _("data overflow");const o=b.getUint16(5,true);if(O$1+f$1+o>r)throw _("file offset table overflow");const l=await s(O$1,f$1);if(!l)throw _("data too short");let i,m;if(o>0){const u=await s(O$1+f$1,o);if(!u)throw _("file offset table too short");i=JSON.parse(f.decode(u)),m=O$1+f$1+o;}const[k,y]=Z(f.decode(l),{File:([u,h,d,p,g])=>{if(m+i[g]+d>r)throw _("file data overflow");return new Proxy(new C$1(u,h,d,p,a,m+i[g]),{getPrototypeOf(){return File.prototype}})}});return (async()=>{let u=true;for(;u;)u=!!await a(n.length);})(),{data:k,meta:y,form_data:null}}function _(e){return new SvelteKitError(400,"Bad Request",`Could not deserialize binary form: ${e}`)}let C$1 = class C{#t;#e;constructor(r,t,n,a,s,c){this.name=r,this.type=t,this.size=n,this.lastModified=a,this.webkitRelativePath="",this.#t=s,this.#e=c,this.arrayBuffer=this.arrayBuffer.bind(this),this.bytes=this.bytes.bind(this),this.slice=this.slice.bind(this),this.stream=this.stream.bind(this),this.text=this.text.bind(this);}#r;async arrayBuffer(){return this.#r??=await new Response(this.stream()).arrayBuffer(),this.#r}async bytes(){return new Uint8Array(await this.arrayBuffer())}slice(r=0,t=this.size,n=this.type){r<0?r=Math.max(this.size+r,0):r=Math.min(r,this.size),t<0?t=Math.max(this.size+t,0):t=Math.min(t,this.size);const a=Math.max(t-r,0);return new C(this.name,n,a,this.lastModified,this.#t,this.#e+r)}stream(){let r=0,t=0;return new ReadableStream({start:async n=>{let a=0,s=null;for(t=0;;t++){const c=await this.#t(t);if(!c)return null;const b=a+c.byteLength;if(this.#e>=a&&this.#e{t++;let a=await this.#t(t);if(!a){n.error("incomplete file data"),n.close();return}a.byteLength>this.size-r&&(a=a.subarray(0,this.size-r)),n.enqueue(a),r+=a.byteLength,r>=this.size&&n.close();}})}async text(){return f.decode(await this.arrayBuffer())}};const le=/^[a-zA-Z_$]\w*(\.[a-zA-Z_$]\w*|\[\d+\])*$/;function ue(e){if(!le.test(e))throw new Error(`Invalid path ${e}`);return e.split(/\.|\[|\]/).filter(Boolean)}function z(e$1){if(e$1==="__proto__"||e$1==="constructor"||e$1==="prototype")throw new Error(`Invalid key "${e$1}"`+(e?": This key is not allowed to prevent prototype pollution.":""))}function he$1(e,r,t){let n=e;for(let s=0;s[n,a.encode]));return oe(e,t)}function Se$1(e,r){if(!e)return;const t=f.decode(h(e.replaceAll("-","+").replaceAll("_","/"))),n=Object.fromEntries(Object.entries(r).map(([a,s])=>[a,s.decode]));return Z(t,n)}function Te(e,r){return e+"/"+r} + +let x={},G=n=>n?.stack;function O(n){}function P(n){x=n;}let k=null;function I$1(n){k=n;}function j(n,e){n.component(t=>{let{stores:i,page:a$1,constructors:s,components:u=[],form:r,data_0:c=null,data_1:f=null}=e;a||setContext("__svelte__",i),a||i.page.set(a$1);const g=s[1];if(s[1]){t.push("");const o=s[0];t.push(""),o(t,{data:c,form:r,params:a$1.params,children:p=>{p.push(""),g(p,{data:f,form:r,params:a$1.params}),p.push("");},$$slots:{default:true}}),t.push("");}else {t.push("");const o=s[0];t.push(""),o(t,{data:c,form:r,params:a$1.params}),t.push("");}t.push(" "),t.push(""),t.push("");});}const C=asClassComponent(j),M$1={app_template_contains_nonce:false,async:true,csp:{mode:"auto",directives:{"upgrade-insecure-requests":false,"block-all-mixed-content":false},reportOnly:{"upgrade-insecure-requests":false,"block-all-mixed-content":false}},csrf_check_origin:true,csrf_trusted_origins:[],embedded:false,env_public_prefix:"PUBLIC_",env_private_prefix:"",hash_routing:false,hooks:null,preload_strategy:"modulepreload",root:C,service_worker:false,service_worker_options:void 0,templates:{app:({head:n,body:e,assets:t,nonce:i,env:a})=>` + + + + + + + + + + + + + + + +