From 208c02732cad119e364b7db04c5f6f1921ec7c4a Mon Sep 17 00:00:00 2001 From: Leandro Pereira Date: Wed, 9 Oct 2024 14:28:56 -0400 Subject: [PATCH 1/2] v0.1.0 --- CHANGELOG.md | 10 +++++++++- README.md | 2 +- assets/package-lock.json | 4 ++-- assets/package.json | 2 +- mix.exs | 2 +- mix.lock | 6 +++--- test/test_helper.exs | 6 +++--- 7 files changed, 20 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3c3257ec..48a98d6d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,14 +1,22 @@ # Changelog -## 0.1.0-dev +## 0.1.0 (2024-10-09) ### Enhancements + * [Visual Editor] Keep comments in their correct position in the tree #268 + * [Visual Editor] Allow to drag the parent of the selected element #267 + * [Visual Editor] Improve bidirectional drag and drop #266 + * [Visual Editor] Animate drag and drop using FLIP approach and simplify calculation of all elements #264 * Reorder pages - [#261](https://github.com/BeaconCMS/beacon_live_admin/pull/261) * Added Shared Info Handlers (`info_handle` callbacks) page - [#210](https://github.com/BeaconCMS/beacon_live_admin/pull/210) by [@ddink](https://github.com/ddink) ### Fixes + * [Page Editor] remove path whitespace in new pages form * Remove unnecessary `:plug_cowboy` dependency - [#262](https://github.com/BeaconCMS/beacon_live_admin/pull/262) +### Documentation + * Fix install guide link + ## 0.1.0-rc.2 (2024-09-21 ### Breaking Changes diff --git a/README.md b/README.md index 28e1b47a..d700aaef 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Admin UI to manage content for sites built by [Beacon](https://github.com/Beacon ## Status -Pre-release version. You can expect incomplete features and breaking changes before a stable v0.1.0 is released. +You can expect incomplete features and breaking changes before a stable v1.0 is released. ## Minimum Requirements diff --git a/assets/package-lock.json b/assets/package-lock.json index 88290464..ff6e3008 100644 --- a/assets/package-lock.json +++ b/assets/package-lock.json @@ -1,12 +1,12 @@ { "name": "beacon_live_admin", - "version": "0.1.0-rc.1", + "version": "0.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "beacon_live_admin", - "version": "0.1.0-rc.1", + "version": "0.1.0", "license": "MIT", "dependencies": { "@mhsdesign/jit-browser-tailwindcss": "^0.4", diff --git a/assets/package.json b/assets/package.json index b42ee0b1..d096fb77 100644 --- a/assets/package.json +++ b/assets/package.json @@ -1,6 +1,6 @@ { "name": "beacon_live_admin", - "version": "0.1.0-rc.1", + "version": "0.1.0", "license": "MIT", "repository": {}, "scripts": { diff --git a/mix.exs b/mix.exs index 5098192d..10e40038 100644 --- a/mix.exs +++ b/mix.exs @@ -1,7 +1,7 @@ defmodule Beacon.LiveAdmin.MixProject do use Mix.Project - @version "0.1.0-dev" + @version "0.1.0" @dev? String.ends_with?(@version, "-dev") @source_url "https://github.com/BeaconCMS/beacon_live_admin" @homepage_url "https://beaconcms.org" diff --git a/mix.lock b/mix.lock index 0cdd2c70..8530de42 100644 --- a/mix.lock +++ b/mix.lock @@ -1,7 +1,7 @@ %{ "accent": {:hex, :accent, "1.1.1", "20257356446d45078b19b91608f74669b407b39af891ee3db9ee6824d1cae19d", [:mix], [{:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}, {:plug, "~> 1.3", [hex: :plug, repo: "hexpm", optional: false]}], "hexpm", "6d5afa50d4886e3370e04fa501468cbaa6c4b5fe926f72ccfa844ad9e259adae"}, "bandit": {:hex, :bandit, "1.5.7", "6856b1e1df4f2b0cb3df1377eab7891bec2da6a7fd69dc78594ad3e152363a50", [:mix], [{:hpax, "~> 1.0.0", [hex: :hpax, repo: "hexpm", optional: false]}, {:plug, "~> 1.14", [hex: :plug, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}, {:thousand_island, "~> 1.0", [hex: :thousand_island, repo: "hexpm", optional: false]}, {:websock, "~> 0.5", [hex: :websock, repo: "hexpm", optional: false]}], "hexpm", "f2dd92ae87d2cbea2fa9aa1652db157b6cba6c405cb44d4f6dd87abba41371cd"}, - "beacon": {:git, "https://github.com/BeaconCMS/beacon.git", "a46e29f9953951cae8bf91a999c37abf03252d5f", []}, + "beacon": {:hex, :beacon, "0.1.0", "188c52024cd9c72f3de5a2f4743ca15a3192b893c8e830df928eeeba6b3aa84e", [:mix], [{:accent, "~> 1.1", [hex: :accent, repo: "hexpm", optional: false]}, {:ecto_sql, "~> 3.6", [hex: :ecto_sql, repo: "hexpm", optional: false]}, {:ex_aws, "~> 2.4.0", [hex: :ex_aws, repo: "hexpm", optional: false]}, {:ex_aws_s3, "~> 2.4.0", [hex: :ex_aws_s3, repo: "hexpm", optional: false]}, {:ex_brotli, "~> 0.3", [hex: :ex_brotli, repo: "hexpm", optional: false]}, {:floki, ">= 0.30.0", [hex: :floki, repo: "hexpm", optional: false]}, {:gettext, "~> 0.26", [hex: :gettext, repo: "hexpm", optional: false]}, {:hackney, "~> 1.16", [hex: :hackney, repo: "hexpm", optional: false]}, {:image, "~> 0.40", [hex: :image, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}, {:live_monaco_editor, "~> 0.1", [hex: :live_monaco_editor, repo: "hexpm", optional: false]}, {:mdex, "~> 0.2", [hex: :mdex, repo: "hexpm", optional: false]}, {:oembed, "~> 0.4.1", [hex: :oembed, repo: "hexpm", optional: false]}, {:phoenix, "~> 1.7", [hex: :phoenix, repo: "hexpm", optional: false]}, {:phoenix_ecto, "~> 4.4", [hex: :phoenix_ecto, repo: "hexpm", optional: false]}, {:phoenix_html, "~> 4.0", [hex: :phoenix_html, repo: "hexpm", optional: false]}, {:phoenix_html_helpers, "~> 1.0", [hex: :phoenix_html_helpers, repo: "hexpm", optional: false]}, {:phoenix_live_view, "~> 0.20", [hex: :phoenix_live_view, repo: "hexpm", optional: false]}, {:phoenix_pubsub, "~> 2.1", [hex: :phoenix_pubsub, repo: "hexpm", optional: false]}, {:postgrex, "~> 0.16", [hex: :postgrex, repo: "hexpm", optional: false]}, {:safe_code, "~> 0.2", [hex: :safe_code, repo: "hexpm", optional: false]}, {:solid, "~> 0.14", [hex: :solid, repo: "hexpm", optional: false]}, {:tailwind, "~> 0.2", [hex: :tailwind, repo: "hexpm", optional: false]}], "hexpm", "159faa40e7ac7249758190a142445b78b56fc8f82722e3d23f092f98c3c74550"}, "castore": {:hex, :castore, "1.0.9", "5cc77474afadf02c7c017823f460a17daa7908e991b0cc917febc90e466a375c", [:mix], [], "hexpm", "5ea956504f1ba6f2b4eb707061d8e17870de2bee95fb59d512872c2ef06925e7"}, "cc_precompiler": {:hex, :cc_precompiler, "0.1.10", "47c9c08d8869cf09b41da36538f62bc1abd3e19e41701c2cea2675b53c704258", [:mix], [{:elixir_make, "~> 0.7", [hex: :elixir_make, repo: "hexpm", optional: false]}], "hexpm", "f6e046254e53cd6b41c6bacd70ae728011aa82b2742a80d6e2214855c6e06b22"}, "certifi": {:hex, :certifi, "2.12.0", "2d1cca2ec95f59643862af91f001478c9863c2ac9cb6e2f89780bfd8de987329", [:rebar3], [], "hexpm", "ee68d85df22e554040cdb4be100f33873ac6051387baf6a8f6ce82272340ff1c"}, @@ -31,7 +31,7 @@ "makeup": {:hex, :makeup, "1.1.2", "9ba8837913bdf757787e71c1581c21f9d2455f4dd04cfca785c70bbfff1a76a3", [:mix], [{:nimble_parsec, "~> 1.2.2 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "cce1566b81fbcbd21eca8ffe808f33b221f9eee2cbc7a1706fc3da9ff18e6cac"}, "makeup_elixir": {:hex, :makeup_elixir, "0.16.2", "627e84b8e8bf22e60a2579dad15067c755531fea049ae26ef1020cad58fe9578", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}, {:nimble_parsec, "~> 1.2.3 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "41193978704763f6bbe6cc2758b84909e62984c7752b3784bd3c218bb341706b"}, "makeup_erlang": {:hex, :makeup_erlang, "1.0.1", "c7f58c120b2b5aa5fd80d540a89fdf866ed42f1f3994e4fe189abebeab610839", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm", "8a89a1eeccc2d798d6ea15496a6e4870b75e014d1af514b1b71fa33134f57814"}, - "mdex": {:hex, :mdex, "0.1.18", "20c5b12633e485f9a6eaf06e8d992fa186c5798be98d1405ee6a8bb6b465f59e", [:mix], [{:rustler, "~> 0.32", [hex: :rustler, repo: "hexpm", optional: true]}, {:rustler_precompiled, "~> 0.7", [hex: :rustler_precompiled, repo: "hexpm", optional: false]}], "hexpm", "726b1aee2cc197c08f5b004d73a64d268d28837f79f8eaba74478237ddc9930f"}, + "mdex": {:hex, :mdex, "0.2.0", "af93e03bc964f2628c3940d22ba03435b119e070bd423fd62d31772d428a7e6c", [:mix], [{:rustler, "~> 0.32", [hex: :rustler, repo: "hexpm", optional: true]}, {:rustler_precompiled, "~> 0.7", [hex: :rustler_precompiled, repo: "hexpm", optional: false]}], "hexpm", "d8d21d3d6ecb0b2a10f88b539f3a61df974f9570226bf6bd24404c9e361c8089"}, "metrics": {:hex, :metrics, "1.0.1", "25f094dea2cda98213cecc3aeff09e940299d950904393b2a29d191c346a8486", [:rebar3], [], "hexpm", "69b09adddc4f74a40716ae54d140f93beb0fb8978d8636eaded0c31b6f099f16"}, "mime": {:hex, :mime, "2.0.6", "8f18486773d9b15f95f4f4f1e39b710045fa1de891fada4516559967276e4dc2", [:mix], [], "hexpm", "c9945363a6b26d747389aac3643f8e0e09d30499a138ad64fe8fd1d13d9b153e"}, "mimerl": {:hex, :mimerl, "1.3.0", "d0cd9fc04b9061f82490f6581e0128379830e78535e017f7780f37fea7545726", [:rebar3], [], "hexpm", "a1e15a50d1887217de95f0b9b0793e32853f7c258a5cd227650889b38839fe9d"}, @@ -52,7 +52,7 @@ "poison": {:hex, :poison, "6.0.0", "9bbe86722355e36ffb62c51a552719534257ba53f3271dacd20fbbd6621a583a", [:mix], [{:decimal, "~> 2.1", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "bb9064632b94775a3964642d6a78281c07b7be1319e0016e1643790704e739a2"}, "poolboy": {:hex, :poolboy, "1.5.2", "392b007a1693a64540cead79830443abf5762f5d30cf50bc95cb2c1aaafa006b", [:rebar3], [], "hexpm", "dad79704ce5440f3d5a3681c8590b9dc25d1a561e8f5a9c995281012860901e3"}, "postgrex": {:hex, :postgrex, "0.19.1", "73b498508b69aded53907fe48a1fee811be34cc720e69ef4ccd568c8715495ea", [:mix], [{:db_connection, "~> 2.1", [hex: :db_connection, repo: "hexpm", optional: false]}, {:decimal, "~> 1.5 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}, {:table, "~> 0.1.0", [hex: :table, repo: "hexpm", optional: true]}], "hexpm", "8bac7885a18f381e091ec6caf41bda7bb8c77912bb0e9285212829afe5d8a8f8"}, - "rustler_precompiled": {:hex, :rustler_precompiled, "0.8.1", "8afe0b6f3a9a677ada046cdd23e3f4c6399618b91a6122289324774961281e1e", [:mix], [{:castore, "~> 0.1 or ~> 1.0", [hex: :castore, repo: "hexpm", optional: false]}, {:rustler, "~> 0.23", [hex: :rustler, repo: "hexpm", optional: true]}], "hexpm", "90b8c2297bf7959cfa1c927b2881faad7bb0707183124955369991b76177a166"}, + "rustler_precompiled": {:hex, :rustler_precompiled, "0.8.2", "5f25cbe220a8fac3e7ad62e6f950fcdca5a5a5f8501835d2823e8c74bf4268d5", [:mix], [{:castore, "~> 0.1 or ~> 1.0", [hex: :castore, repo: "hexpm", optional: false]}, {:rustler, "~> 0.23", [hex: :rustler, repo: "hexpm", optional: true]}], "hexpm", "63d1bd5f8e23096d1ff851839923162096364bac8656a4a3c00d1fff8e83ee0a"}, "safe_code": {:hex, :safe_code, "0.2.3", "c37329a03d4ac847ccd437344abdbb6d8a8ff6a46f1b6e5ad976bf9a86a5227f", [:mix], [{:jason, "~> 1.3", [hex: :jason, repo: "hexpm", optional: false]}, {:phoenix_live_view, ">= 0.18.17", [hex: :phoenix_live_view, repo: "hexpm", optional: false]}], "hexpm", "de5f3ad37d0f7804281f42be8dac32ee52f7b5f7c5c4c851eba34e42bffd4aef"}, "solid": {:hex, :solid, "0.15.2", "6921af98a3a862041bb6af72b5f6e094dbf0242366b142f98a92cabe4ed30d2a", [:mix], [{:nimble_parsec, "~> 1.0", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "18b062b04948b7f7b99ac4a9360681dac7e0bd142df5e62a7761696c7384be45"}, "ssl_verify_fun": {:hex, :ssl_verify_fun, "1.1.7", "354c321cf377240c7b8716899e182ce4890c5938111a1296add3ec74cf1715df", [:make, :mix, :rebar3], [], "hexpm", "fe4c190e8f37401d30167c8c405eda19469f34577987c76dde613e838bbc67f8"}, diff --git a/test/test_helper.exs b/test/test_helper.exs index 49ff17d3..aad957b6 100644 --- a/test/test_helper.exs +++ b/test/test_helper.exs @@ -86,7 +86,7 @@ Beacon.LiveAdminTest.Cluster.start_beacon(:"node1@127.0.0.1", sites: [ [ site: :site_a, - skip_boot?: true, + mode: :testing, repo: MyApp.Repo, endpoint: MyAppWeb.Endpoint, router: MyApp.Router, @@ -101,14 +101,14 @@ Beacon.LiveAdminTest.Cluster.start_beacon(:"node2@127.0.0.1", sites: [ [ site: :site_b, - skip_boot?: true, + mode: :testing, repo: MyApp.Repo, endpoint: MyAppWeb.Endpoint, router: MyApp.Router ], [ site: :site_c, - skip_boot?: true, + mode: :testing, repo: MyApp.Repo, endpoint: MyAppWeb.Endpoint, router: MyApp.Router From 424db326b714d70bb01fd266c89aa35305727422 Mon Sep 17 00:00:00 2001 From: Leandro Pereira Date: Wed, 9 Oct 2024 14:41:52 -0400 Subject: [PATCH 2/2] assets.build --- priv/static/beacon_live_admin.min.css.map | 2 +- priv/static/beacon_live_admin.min.js | 44 +++++++++++------------ priv/static/beacon_live_admin.min.js.map | 8 ++--- 3 files changed, 27 insertions(+), 27 deletions(-) diff --git a/priv/static/beacon_live_admin.min.css.map b/priv/static/beacon_live_admin.min.css.map index b6609912..24e6ef24 100644 --- a/priv/static/beacon_live_admin.min.css.map +++ b/priv/static/beacon_live_admin.min.css.map @@ -1 +1 @@ -{"version":3,"sources":["../../assets/css/beacon_live_admin.css","","%3Cinput%20css%20Q8xN9u%3E","../../deps/live_monaco_editor/assets/node_modules/@fontsource/jetbrains-mono/index.css"],"names":[],"mappings":"AAIA,uHAAuH;ACJvH,gEAAA,ACKA,iBAME,sBAAwD,CAHxD,qBAIF,CAEA,eAEE,eACF,CAYA,WAGE,6BAA8B,CAI9B,4BAA8E,CAE9E,uCAAwC,CAHxC,kIAAyJ,CAEzJ,8BAAkF,CANlF,eAAgB,CAEhB,eAAgB,CAChB,aAAW,CAAX,UAKF,CAOA,KAEE,mBAAoB,CADpB,QAEF,CAQA,GAGE,oBAAqB,CADrB,aAAc,CADd,QAGF,CAMA,oBACE,wCAAiC,CAAjC,gCACF,CAMA,kBAME,iBAAkB,CAClB,mBACF,CAMA,EACE,aAAc,CACd,uBACF,CAMA,SAEE,kBACF,CASA,kBAKE,4BAA8E,CAD9E,mGAAyI,CAGzI,aAAc,CADd,8BAEF,CAMA,MACE,aACF,CAMA,QAEE,aAAc,CACd,aAAc,CACd,iBAAkB,CAClB,sBACF,CAEA,IACE,aACF,CAEA,IACE,SACF,CAQA,MAGE,wBAAyB,CADzB,oBAAqB,CADrB,aAGF,CAQA,sCAME,6BAA8B,CAK9B,aAAc,CANd,mBAAoB,CAGpB,cAAe,CADf,+BAAgC,CAEhC,mBAAoB,CACpB,mBAAoB,CAEpB,QAAS,CACT,SACF,CAMA,cAEE,mBACF,CAOA,gDAIE,yBAA0B,CAC1B,wBAA6B,CAC7B,qBACF,CAMA,gBACE,YACF,CAMA,iBACE,eACF,CAMA,SACE,sBACF,CAMA,wDAEE,WACF,CAOA,cACE,4BAA6B,CAC7B,mBACF,CAMA,4BACE,uBACF,CAOA,6BACE,yBAA0B,CAC1B,YACF,CAMA,QACE,iBACF,CAMA,mDAaE,QACF,CAEA,SACE,QAEF,CAEA,gBAHE,SAKF,CAEA,WAGE,eAAgB,CAChB,QAAS,CACT,SACF,CAKA,OACE,SACF,CAMA,SACE,eACF,CAOA,mDAGE,aAAwC,CADxC,SAEF,CAJA,yCAGE,aAAwC,CADxC,SAEF,CAMA,qBAEE,cACF,CAKA,UACE,cACF,CAQA,+CAQE,aAAc,CACd,qBACF,CAMA,UAGE,WAAY,CADZ,cAEF,CAGA,SACE,YACF,CDhYA,6LAAA,sBAAA,wBAAA,qBAAA,gBAAA,sBAAA,qBAAA,gBAAA,iBAAA,eAAA,mBAAA,qBAAA,uRAAA,4CAAA,2BAAA,4BAAA,wBAAA,2GAAA,yGAAA,qBAAA,+EAAA,wBAAA,mBAAA,mDAAA,cAAA,UAAA,yCAAA,cAAA,UAAA,uCAAA,UAAA,8BAAA,iBAAA,+TAAA,iBAAA,cAAA,OAAA,iQAAA,uCAAA,4BAAA,4BAAA,qBAAA,iCAAA,yBAAA,WAAA,sBAAA,wBAAA,wBAAA,wBAAA,qBAAA,iCAAA,yBAAA,6BAAA,sBAAA,wBAAA,qBAAA,gBAAA,sBAAA,6BAAA,qBAAA,iBAAA,cAAA,qBAAA,cAAA,YAAA,UAAA,iCAAA,yBAAA,yBAAA,sBAAA,iBAAA,sBAAA,WAAA,gBAAA,gBAAA,aAAA,mBAAA,yCAAA,4CAAA,2BAAA,4BAAA,wBAAA,2GAAA,yGAAA,+EAAA,wBAAA,mBAAA,6CAAA,8BAAA,wBAAA,4BAAA,0BAAA,mBAAA,wBAAA,4RAAA,qBAAA,mLAAA,gJAAA,8BAAA,mBAAA,8BAAA,sPAAA,wBAAA,4BAAA,0BAAA,wEAAA,8BAAA,mBAAA,YAAA,iBAAA,qBAAA,gBAAA,eAAA,gBAAA,oBAAA,UAAA,kBAAA,6BAAA,0CAAA,4BAAA,wBAAA,wBAAA,mBAAA,mBAAA,cAAA,cAAA,cAAA,eAAA,eAAA,aAAA,aAAA,kBAAA,sCAAA,8BAAA,6BAAA,4BAAA,eAAA,oBAAA,sBAAA,uBAAA,wBAAA,kBAAA,2BAAA,4BAAA,0BAAA,kCAAA,2BAAA,sBAAA,8BAAA,YAAA,kBAAA,gBAAA,iBAAA,kBAAA,cAAA,gBAAA,aAAA,mBAAA,qBAAA,2BAAA,yBAAA,0BAAA,2BAAA,uBAAA,wBAAA,yBAAA,sBAAA,WAAA,WAAA,yBAAA,WAAA,gBAAA,CAAA,yBAAA,WAAA,gBAAA,CAAA,0BAAA,WAAA,iBAAA,CAAA,0BAAA,WAAA,iBAAA,CAAA,0BAAA,WAAA,iBAAA,CAAA,uBAAA,8WAAA,0CAAA,kCAAA,mDAAA,8BAAA,qBAAA,eAAA,sBAAA,cAAA,4BAAA,sXAAA,+CAAA,uCAAA,6BAAA,wXAAA,gDAAA,wCAAA,8CAAA,8BAAA,qBAAA,eAAA,sBAAA,cAAA,iBAAA,4ZAAA,oCAAA,4BAAA,qCAAA,mzBAAA,wDAAA,gDAAA,+DAAA,8BAAA,qBAAA,eAAA,sBAAA,cAAA,0BAAA,qqBAAA,6CAAA,qCAAA,8BAAA,iWAAA,iDAAA,yCAAA,wCAAA,8BAAA,qBAAA,eAAA,sBAAA,cAAA,UAAA,qgBAAA,6BAAA,qBAAA,gBAAA,ofAAA,mCAAA,2BAAA,8CAAA,8BAAA,qBAAA,eAAA,sBAAA,cAAA,8BAAA,qcAAA,iDAAA,yCAAA,oBAAA,ifAAA,uCAAA,+BAAA,gCAAA,8BAAA,qBAAA,eAAA,sBAAA,cAAA,YAAA,2oBAAA,+BAAA,uBAAA,mBAAA,gZAAA,8BAAA,qBAAA,eAAA,sCAAA,8BAAA,sBAAA,cAAA,SAAA,mBAAA,eAAA,WAAA,YAAA,gBAAA,UAAA,kBAAA,mBAAA,UAAA,WAAA,6BAAA,SAAA,mBAAA,WAAA,kBAAA,QAAA,gBAAA,OAAA,eAAA,UAAA,kBAAA,UAAA,kBAAA,QAAA,gBAAA,SAAA,QAAA,aAAA,YAAA,SAAA,WAAA,SAAA,MAAA,SAAA,aAAA,SAAA,WAAA,SAAA,cAAA,UAAA,cAAA,UAAA,YAAA,SAAA,YAAA,QAAA,OAAA,SAAA,QAAA,SAAA,aAAA,SAAA,YAAA,SAAA,cAAA,SAAA,cAAA,OAAA,MAAA,OAAA,WAAA,OAAA,UAAA,OAAA,WAAA,MAAA,WAAA,MAAA,WAAA,YAAA,0BAAA,eAAA,iBAAA,MAAA,eAAA,KAAA,cAAA,KAAA,YAAA,OAAA,oBAAA,iBAAA,SAAA,iBAAA,kBAAA,QAAA,mBAAA,MAAA,qBAAA,OAAA,qBAAA,OAAA,mBAAA,MAAA,oBAAA,MAAA,mBAAA,MAAA,mBAAA,MAAA,mBAAA,MAAA,kBAAA,MAAA,mBAAA,MAAA,iBAAA,MAAA,iBAAA,SAAA,iBAAA,MAAA,mBAAA,MAAA,aAAA,SAAA,mBAAA,MAAA,kBAAA,OAAA,kBAAA,OAAA,mBAAA,OAAA,kBAAA,OAAA,gBAAA,MAAA,iBAAA,MAAA,kBAAA,MAAA,gBAAA,MAAA,mBAAA,MAAA,kBAAA,MAAA,gBAAA,cAAA,4BAAA,qBAAA,oBAAA,gBAAA,OAAA,cAAA,cAAA,qBAAA,QAAA,eAAA,MAAA,aAAA,aAAA,oBAAA,OAAA,cAAA,MAAA,aAAA,UAAA,iBAAA,QAAA,aAAA,eAAA,iBAAA,MAAA,cAAA,MAAA,YAAA,KAAA,aAAA,MAAA,YAAA,KAAA,cAAA,KAAA,YAAA,KAAA,eAAA,KAAA,cAAA,KAAA,eAAA,4BAAA,0BAAA,4BAAA,0BAAA,QAAA,YAAA,QAAA,YAAA,UAAA,aAAA,UAAA,iBAAA,YAAA,gBAAA,gBAAA,gBAAA,YAAA,gBAAA,cAAA,iBAAA,QAAA,UAAA,MAAA,aAAA,MAAA,aAAA,KAAA,YAAA,KAAA,aAAA,KAAA,WAAA,KAAA,cAAA,MAAA,YAAA,KAAA,aAAA,MAAA,YAAA,KAAA,cAAA,MAAA,YAAA,KAAA,cAAA,MAAA,YAAA,aAAA,YAAA,QAAA,WAAA,iBAAA,gBAAA,iBAAA,gBAAA,WAAA,gBAAA,gBAAA,eAAA,iBAAA,iBAAA,UAAA,gBAAA,QAAA,YAAA,WAAA,UAAA,UAAA,cAAA,aAAA,sBAAA,aAAA,sBAAA,gBAAA,yBAAA,uCAAA,8LAAA,uBAAA,uBAAA,eAAA,qBAAA,8BAAA,8LAAA,eAAA,sBAAA,WAAA,kBAAA,sBAAA,8LAAA,gBAAA,GAAA,wBAAA,CAAA,cAAA,kCAAA,gBAAA,eAAA,eAAA,sBAAA,aAAA,8CAAA,aAAA,8CAAA,aAAA,2CAAA,UAAA,mBAAA,UAAA,sBAAA,WAAA,eAAA,aAAA,uBAAA,WAAA,qBAAA,cAAA,mBAAA,aAAA,yBAAA,gBAAA,uBAAA,iBAAA,8BAAA,OAAA,MAAA,UAAA,YAAA,OAAA,WAAA,UAAA,YAAA,OAAA,UAAA,OAAA,WAAA,OAAA,SAAA,OAAA,WAAA,SAAA,kBAAA,aAAA,YAAA,wBAAA,mBAAA,SAAA,uBAAA,kBAAA,SAAA,qBAAA,gBAAA,SAAA,uBAAA,kBAAA,SAAA,qBAAA,gBAAA,gBAAA,qBAAA,gBAAA,SAAA,aAAA,yCAAA,uBAAA,yDAAA,oDAAA,yCAAA,uBAAA,mDAAA,sDAAA,yCAAA,uBAAA,qDAAA,wDAAA,yCAAA,uBAAA,mDAAA,sDAAA,wCAAA,wBAAA,yDAAA,4DAAA,+CAAA,sBAAA,uDAAA,+CAAA,sBAAA,uDAAA,kBAAA,iBAAA,iBAAA,gBAAA,kBAAA,iBAAA,iBAAA,gBAAA,iBAAA,gBAAA,mBAAA,mBAAA,SAAA,qBAAA,aAAA,mBAAA,qBAAA,qBAAA,sBAAA,sBAAA,kBAAA,mBAAA,cAAA,qBAAA,YAAA,oBAAA,YAAA,sBAAA,YAAA,qBAAA,cAAA,iCAAA,kCAAA,oBAAA,4BAAA,6BAAA,cAAA,6BAAA,8BAAA,cAAA,8BAAA,+BAAA,QAAA,iBAAA,UAAA,iBAAA,UAAA,wBAAA,YAAA,wBAAA,YAAA,wBAAA,UAAA,sBAAA,UAAA,uBAAA,UAAA,qBAAA,cAAA,mBAAA,eAAA,oBAAA,iBAAA,sBAAA,sDAAA,iBAAA,sBAAA,qDAAA,iBAAA,sBAAA,qDAAA,iBAAA,sBAAA,uDAAA,iBAAA,sBAAA,uDAAA,iBAAA,sBAAA,uDAAA,qBAAA,uBAAA,iBAAA,sBAAA,uDAAA,kBAAA,sBAAA,uDAAA,oBAAA,mBAAA,iBAAA,sBAAA,uDAAA,iBAAA,sBAAA,uDAAA,mBAAA,sBAAA,8DAAA,cAAA,4BAAA,+DAAA,iBAAA,kBAAA,oDAAA,iBAAA,kBAAA,uDAAA,cAAA,kBAAA,uDAAA,cAAA,kBAAA,sDAAA,cAAA,2BAAA,aAAA,kBAAA,uDAAA,aAAA,kBAAA,sDAAA,aAAA,kBAAA,qDAAA,aAAA,kBAAA,uDAAA,aAAA,kBAAA,qDAAA,eAAA,kBAAA,uDAAA,aAAA,kBAAA,uDAAA,aAAA,kBAAA,uDAAA,YAAA,kBAAA,uDAAA,aAAA,kBAAA,sDAAA,YAAA,kBAAA,qDAAA,YAAA,kBAAA,qDAAA,YAAA,kBAAA,uDAAA,cAAA,kBAAA,uDAAA,aAAA,kBAAA,uDAAA,cAAA,kBAAA,oDAAA,UAAA,kBAAA,uDAAA,gBAAA,2BAAA,aAAA,kBAAA,oDAAA,eAAA,aAAA,eAAA,aAAA,gBAAA,aAAA,kBAAA,eAAA,KAAA,UAAA,KAAA,eAAA,MAAA,eAAA,KAAA,cAAA,KAAA,eAAA,KAAA,aAAA,KAAA,eAAA,MAAA,eAAA,gBAAA,SAAA,qBAAA,sBAAA,MAAA,oBAAA,qBAAA,SAAA,qBAAA,sBAAA,MAAA,mBAAA,oBAAA,SAAA,qBAAA,sBAAA,MAAA,oBAAA,qBAAA,SAAA,qBAAA,sBAAA,MAAA,kBAAA,mBAAA,MAAA,qBAAA,sBAAA,MAAA,oBAAA,qBAAA,MAAA,kBAAA,mBAAA,aAAA,kBAAA,mBAAA,MAAA,iBAAA,cAAA,SAAA,uBAAA,oBAAA,MAAA,sBAAA,mBAAA,OAAA,sBAAA,mBAAA,MAAA,qBAAA,kBAAA,SAAA,uBAAA,oBAAA,MAAA,sBAAA,mBAAA,SAAA,uBAAA,oBAAA,MAAA,oBAAA,iBAAA,MAAA,uBAAA,oBAAA,MAAA,sBAAA,mBAAA,MAAA,iBAAA,SAAA,uBAAA,OAAA,sBAAA,MAAA,oBAAA,MAAA,eAAA,MAAA,oBAAA,MAAA,gBAAA,MAAA,oBAAA,MAAA,qBAAA,MAAA,cAAA,MAAA,mBAAA,SAAA,oBAAA,OAAA,mBAAA,MAAA,kBAAA,MAAA,mBAAA,MAAA,iBAAA,MAAA,mBAAA,MAAA,oBAAA,MAAA,iBAAA,WAAA,gBAAA,aAAA,kBAAA,YAAA,iBAAA,WAAA,mIAAA,UAAA,iBAAA,iBAAA,WAAA,eAAA,mBAAA,SAAA,mBAAA,oBAAA,YAAA,mBAAA,mBAAA,qBAAA,kBAAA,oBAAA,SAAA,kBAAA,oBAAA,SAAA,iBAAA,iBAAA,WAAA,gBAAA,YAAA,gBAAA,aAAA,gBAAA,aAAA,gBAAA,eAAA,gBAAA,WAAA,yBAAA,YAAA,0BAAA,WAAA,iBAAA,WAAA,oBAAA,WAAA,mBAAA,WAAA,iBAAA,sBAAA,sBAAA,eAAA,sBAAA,gBAAA,qBAAA,iBAAA,oBAAA,gBAAA,8BAAA,sDAAA,mBAAA,oBAAA,yCAAA,mBAAA,oBAAA,2CAAA,mBAAA,oBAAA,2CAAA,mBAAA,oBAAA,4CAAA,mBAAA,oBAAA,6CAAA,mBAAA,oBAAA,4CAAA,eAAA,oBAAA,4CAAA,eAAA,oBAAA,4CAAA,eAAA,oBAAA,4CAAA,kBAAA,oBAAA,0CAAA,eAAA,oBAAA,8CAAA,cAAA,oBAAA,8CAAA,eAAA,oBAAA,8CAAA,eAAA,oBAAA,2CAAA,eAAA,oBAAA,2CAAA,gBAAA,oBAAA,4CAAA,gBAAA,oBAAA,4CAAA,cAAA,oBAAA,4CAAA,cAAA,oBAAA,4CAAA,eAAA,oBAAA,4CAAA,eAAA,oBAAA,4CAAA,gBAAA,oBAAA,2CAAA,YAAA,oBAAA,8CAAA,eAAA,oBAAA,8CAAA,eAAA,oBAAA,2CAAA,eAAA,oBAAA,2CAAA,eAAA,oBAAA,2CAAA,eAAA,oBAAA,2CAAA,aAAA,mCAAA,kCAAA,eAAA,oBAAA,WAAA,UAAA,aAAA,UAAA,YAAA,WAAA,YAAA,WAAA,YAAA,WAAA,YAAA,WAAA,QAAA,2DAAA,6FAAA,mBAAA,mGAAA,WAAA,gEAAA,kGAAA,WAAA,8DAAA,gGAAA,sBAAA,mGAAA,WAAA,kCAAA,uDAAA,WAAA,iEAAA,mGAAA,mGAAA,qBAAA,4BAAA,qCAAA,cAAA,wBAAA,mBAAA,SAAA,oBAAA,gBAAA,qBAAA,WAAA,kBAAA,QAAA,2GAAA,yGAAA,yFAAA,YAAA,sBAAA,eAAA,oBAAA,uDAAA,kBAAA,oBAAA,uDAAA,eAAA,oBAAA,wDAAA,eAAA,oBAAA,sDAAA,mBAAA,0BAAA,eAAA,2BAAA,QAAA,yBAAA,gBAAA,iLAAA,YAAA,yBAAA,sJAAA,8IAAA,sKAAA,mDAAA,gBAAA,yBAAA,wBAAA,mDAAA,mBAAA,yBAAA,0FAAA,mDAAA,oBAAA,yBAAA,4BAAA,mDAAA,sBAAA,yBAAA,8BAAA,mDAAA,cAAA,wBAAA,cAAA,wBAAA,cAAA,wBAAA,SAAA,kDAAA,UAAA,kDAAA,aAAA,2BAAA,AECA,WAGE,iBAAA,CAFA,0BAAA,CACA,iBAAA,CAEA,eAAA,CACA,+zHAAA,CACA,gFAAA,CAIF,WAGE,iBAAA,CAFA,0BAAA,CACA,iBAAA,CAEA,eAAA,CACA,+ggBAAA,CACA,+DAAA,CAIF,WAGE,iBAAA,CAFA,0BAAA,CACA,iBAAA,CAEA,eAAA,CACA,m7ZAAA,CACA,yBAAA,CAIF,WAGE,iBAAA,CAFA,0BAAA,CACA,iBAAA,CAEA,eAAA,CACA,29VAAA,CACA,0JAAA,CAIF,WAGE,iBAAA,CAFA,0BAAA,CACA,iBAAA,CAEA,eAAA,CACA,mmpBAAA,CACA,gJAAA,CAIF,WAGE,iBAAA,CAFA,0BAAA,CACA,iBAAA,CAEA,eAAA,CACA,+m9DAAA,CACA,qMAAA,CHzDF,0BAAA,WAAA,CAAA,6BAAA,cAAA,CAAA,8BAAA,qBAAA,CAAA,oDAAA,CAAA,8BAAA,qBAAA,CAAA,sDAAA,CAAA,2BAAA,qBAAA,CAAA,sDAAA,CAAA,8BAAA,iBAAA,CAAA,sDAAA,CAAA,0BAAA,iBAAA,CAAA,qDAAA,CAAA,0BAAA,iBAAA,CAAA,oDAAA,CAAA,0BAAA,iBAAA,CAAA,mDAAA,CAAA,0BAAA,iBAAA,CAAA,kDAAA,CAAA,yBAAA,iBAAA,CAAA,sDAAA,CAAA,yBAAA,iBAAA,CAAA,oDAAA,CAAA,2BAAA,iBAAA,CAAA,sDAAA,CAAA,0BAAA,iBAAA,CAAA,sDAAA,CAAA,yBAAA,iBAAA,CAAA,sDAAA,CAAA,0BAAA,iBAAA,CAAA,mDAAA,CAAA,gCAAA,mBAAA,CAAA,0CAAA,CAAA,gCAAA,mBAAA,CAAA,2CAAA,CAAA,4BAAA,mBAAA,CAAA,4CAAA,CAAA,4BAAA,mBAAA,CAAA,2CAAA,CAAA,4BAAA,mBAAA,CAAA,2CAAA,CAAA,4BAAA,mBAAA,CAAA,0CAAA,CAAA,2BAAA,mBAAA,CAAA,2CAAA,CAAA,yBAAA,mBAAA,CAAA,6CAAA,CAAA,4BAAA,mBAAA,CAAA,0CAAA,CAAA,wBAAA,8BAAA,CAAA,yBAAA,UAAA,CAAA,qBAAA,0GAAA,CAAA,wGAAA,CAAA,wFAAA,CAAA,4BAAA,mBAAA,CAAA,uDAAA,CAAA,4BAAA,0BAAA,CAAA,gCAAA,2BAAA,CAAA,8BAAA,qBAAA,CAAA,oDAAA,CAAA,8BAAA,qBAAA,CAAA,sDAAA,CAAA,8BAAA,qBAAA,CAAA,sDAAA,CAAA,2BAAA,uBAAA,CAAA,kBAAA,CAAA,qBAAA,0GAAA,CAAA,kGAAA,CAAA,0CAAA,wFAAA,CAAA,qBAAA,0GAAA,CAAA,wGAAA,CAAA,4BAAA,mBAAA,CAAA,uDAAA,CAAA,yBAAA,sBAAA,CAAA,sCAAA,oBAAA,CAAA,2CAAA,uBAAA,CAAA,kBAAA,CAAA,qCAAA,0GAAA,CAAA,wGAAA,CAAA,0EAAA,wFAAA,CAAA,qCAAA,0GAAA,CAAA,wGAAA,CAAA,4CAAA,mBAAA,CAAA,uDAAA,CAAA,4CAAA,mBAAA,CAAA,uDAAA,CAAA,8CAAA,mBAAA,CAAA,sDAAA,CAAA,2CAAA,uBAAA,CAAA,4BAAA,iBAAA,CAAA,oDAAA,CAAA,4BAAA,iBAAA,CAAA,qDAAA,CAAA,2BAAA,iBAAA,CAAA,oDAAA,CAAA,8BAAA,mBAAA,CAAA,4CAAA,CAAA,8BAAA,mBAAA,CAAA,2CAAA,CAAA,8BAAA,mBAAA,CAAA,2CAAA,CAAA,8BAAA,mBAAA,CAAA,2CAAA,CAAA,+BAAA,WAAA,CAAA,uCAAA,kBAAA,CAAA,gCAAA,iBAAA,CAAA,sDAAA,CAAA,uCAAA,aAAA,CAAA,mCAAA,kBAAA,CAAA,2CAAA,iBAAA,CAAA,sDAAA,CAAA,sCAAA,iBAAA,CAAA,sDAAA,CAAA,wCAAA,iBAAA,CAAA,0CAAA,mBAAA,CAAA,uCAAA,SAAA,CAAA,sCAAA,UAAA,CAAA,8BAAA,oBAAA,aAAA,CAAA,mBAAA,aAAA,CAAA,4BAAA,0BAAA,CAAA,uBAAA,WAAA,CAAA,oBAAA,SAAA,CAAA,kBAAA,aAAA,CAAA,mBAAA,kBAAA,CAAA,mBAAA,eAAA,CAAA,yBAAA,kBAAA,CAAA,mBAAA,CAAA,CAAA,8BAAA,yBAAA,UAAA,CAAA,uBAAA,WAAA,CAAA,oBAAA,UAAA,CAAA,mBAAA,kBAAA,CAAA,mBAAA,CAAA,sBAAA,sBAAA,CAAA,mBAAA,CAAA,sBAAA,sBAAA,CAAA,mBAAA,CAAA,mBAAA,mBAAA,CAAA,sBAAA,kBAAA,CAAA,mBAAA,CAAA,gCAAA,iBAAA,CAAA,gBAAA,CAAA,CAAA,8BAAA,yBAAA,UAAA,CAAA,uBAAA,WAAA,CAAA,oBAAA,QAAA,CAAA,sBAAA,sBAAA,CAAA,mBAAA,CAAA,iCAAA,kBAAA,CAAA,gBAAA,CAAA,sBAAA,iBAAA,CAAA,mBAAA,CAAA,CAAA,8BAAA,kBAAA,cAAA,CAAA,kBAAA,aAAA,CAAA,yBAAA,UAAA,CAAA,oBAAA,QAAA,CAAA,mBAAA,mBAAA,CAAA,gBAAA,CAAA,mBAAA,mBAAA,CAAA,uBAAA,gBAAA,CAAA,gBAAA,CAAA,iCAAA,iBAAA,CAAA,gBAAA,CAAA,CAAA,yCAAA,YAAA,CAAA,kDAAA,qBAAA,CAAA,sDAAA,CAAA,+DAAA,qBAAA,CAAA,oDAAA,CAAA,+DAAA,qBAAA,CAAA,sDAAA,CAAA,0CAAA,YAAA,CAAA,mDAAA,qBAAA,CAAA,sDAAA,CAAA,gEAAA,qBAAA,CAAA,oDAAA,CAAA,gEAAA,qBAAA,CAAA,sDAAA,CAAA,uGAAA,WAAA,CAAA,yBAAA,UAAA,YAAA,CAAA,UAAA,WAAA,CAAA,YAAA,UAAA,CAAA,YAAA,UAAA,CAAA,qBAAA,eAAA,CAAA,mBAAA,oBAAA,CAAA,kCAAA,6LAAA,CAAA,eAAA,cAAA,CAAA,cAAA,CAAA,cAAA,gBAAA,CAAA,gBAAA,CAAA,6LAAA,CAAA,WAAA,QAAA,CAAA,sBAAA,gBAAA,CAAA,kBAAA,gCAAA,CAAA,6BAAA,CAAA,kBAAA,iCAAA,CAAA,8BAAA,CAAA,SAAA,cAAA,CAAA,UAAA,cAAA,CAAA,eAAA,CAAA,UAAA,mBAAA,CAAA,oBAAA,CAAA,aAAA,iBAAA,CAAA,mBAAA,CAAA,eAAA,kBAAA,CAAA,CAAA,yBAAA,iBAAA,6CAAA,CAAA,cAAA,kBAAA,CAAA,iBAAA,gBAAA,CAAA,gBAAA,CAAA,CAAA,0BAAA,gBAAA,yBAAA,CAAA,gBAAA,yBAAA,CAAA,UAAA,aAAA,CAAA,cAAA,CAAA,iCAAA,0BAAA,CAAA,iCAAA,0BAAA,CAAA,YAAA,WAAA,CAAA,gBAAA,cAAA,CAAA,iBAAA,6CAAA,CAAA,qBAAA,eAAA,CAAA,oBAAA,2BAAA,CAAA,4BAAA,CAAA,4BAAA,8BAAA,CAAA,+BAAA,CAAA,UAAA,mBAAA,CAAA,oBAAA,CAAA,UAAA,iBAAA,CAAA,kBAAA,CAAA,UAAA,mBAAA,CAAA,gBAAA,CAAA,CAAA,2EAAA,0GAAA,CAAA,wGAAA,CAAA,wFAAA,CAAA,8BAAA,wFAAA,0GAAA,CAAA,wGAAA,CAAA,wFAAA,CAAA,CAAA,2BAAA,gBAAA,CAAA,4HAAA,2BAAA,CAAA,6DAAA,CAAA,iCAAA,uBAAA,CAAA,8BAAA,kBAAA,CAAA,6LAAA","file":"beacon_live_admin.min.css","sourcesContent":["@import \"tailwindcss/base\";\n@import \"tailwindcss/components\";\n@import \"tailwindcss/utilities\";\n@import \"../../deps/live_monaco_editor/priv/static/live_monaco_editor.min.css\";\n@import url(\"https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@200;300;400;500;600;700;800&display=swap\");\n",null,"/*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: theme('borderColor.DEFAULT', currentColor); /* 2 */\n}\n\n::before,\n::after {\n --tw-content: '';\n}\n\n/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user's configured `sans` font-family by default.\n5. Use the user's configured `sans` font-feature-settings by default.\n6. Use the user's configured `sans` font-variation-settings by default.\n7. Disable tap highlights on iOS\n*/\n\nhtml,\n:host {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n -moz-tab-size: 4; /* 3 */\n tab-size: 4; /* 3 */\n font-family: theme('fontFamily.sans', ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\"); /* 4 */\n font-feature-settings: theme('fontFamily.sans[1].fontFeatureSettings', normal); /* 5 */\n font-variation-settings: theme('fontFamily.sans[1].fontVariationSettings', normal); /* 6 */\n -webkit-tap-highlight-color: transparent; /* 7 */\n}\n\n/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/\n\nbody {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\n}\n\n/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\n\nhr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n}\n\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\n\nabbr:where([title]) {\n text-decoration: underline dotted;\n}\n\n/*\nRemove the default font size and weight for headings.\n*/\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-size: inherit;\n font-weight: inherit;\n}\n\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\n\na {\n color: inherit;\n text-decoration: inherit;\n}\n\n/*\nAdd the correct font weight in Edge and Safari.\n*/\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/*\n1. Use the user's configured `mono` font-family by default.\n2. Use the user's configured `mono` font-feature-settings by default.\n3. Use the user's configured `mono` font-variation-settings by default.\n4. Correct the odd `em` font sizing in all browsers.\n*/\n\ncode,\nkbd,\nsamp,\npre {\n font-family: theme('fontFamily.mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace); /* 1 */\n font-feature-settings: theme('fontFamily.mono[1].fontFeatureSettings', normal); /* 2 */\n font-variation-settings: theme('fontFamily.mono[1].fontVariationSettings', normal); /* 3 */\n font-size: 1em; /* 4 */\n}\n\n/*\nAdd the correct font size in all browsers.\n*/\n\nsmall {\n font-size: 80%;\n}\n\n/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\n\ntable {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n}\n\n/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-feature-settings: inherit; /* 1 */\n font-variation-settings: inherit; /* 1 */\n font-size: 100%; /* 1 */\n font-weight: inherit; /* 1 */\n line-height: inherit; /* 1 */\n color: inherit; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 3 */\n}\n\n/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\n\nbutton,\nselect {\n text-transform: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\n\nbutton,\n[type='button'],\n[type='reset'],\n[type='submit'] {\n -webkit-appearance: button; /* 1 */\n background-color: transparent; /* 2 */\n background-image: none; /* 2 */\n}\n\n/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n\n:-moz-focusring {\n outline: auto;\n}\n\n/*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n\n:-moz-ui-invalid {\n box-shadow: none;\n}\n\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n\nprogress {\n vertical-align: baseline;\n}\n\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n\n[type='search'] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/*\nAdd the correct display in Chrome and Safari.\n*/\n\nsummary {\n display: list-item;\n}\n\n/*\nRemoves the default spacing and border for appropriate elements.\n*/\n\nblockquote,\ndl,\ndd,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nhr,\nfigure,\np,\npre {\n margin: 0;\n}\n\nfieldset {\n margin: 0;\n padding: 0;\n}\n\nlegend {\n padding: 0;\n}\n\nol,\nul,\nmenu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n/*\nReset default styling for dialogs.\n*/\ndialog {\n padding: 0;\n}\n\n/*\nPrevent resizing textareas horizontally by default.\n*/\n\ntextarea {\n resize: vertical;\n}\n\n/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user's configured gray 400 color.\n*/\n\ninput::placeholder,\ntextarea::placeholder {\n opacity: 1; /* 1 */\n color: theme('colors.gray.400', #9ca3af); /* 2 */\n}\n\n/*\nSet the default cursor for buttons.\n*/\n\nbutton,\n[role=\"button\"] {\n cursor: pointer;\n}\n\n/*\nMake sure disabled buttons don't get the pointer cursor.\n*/\n:disabled {\n cursor: default;\n}\n\n/*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/\n\nimg,\nsvg,\nvideo,\ncanvas,\naudio,\niframe,\nembed,\nobject {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n}\n\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\n\nimg,\nvideo {\n max-width: 100%;\n height: auto;\n}\n\n/* Make elements with the HTML hidden attribute stay hidden by default */\n[hidden] {\n display: none;\n}\n","/* jetbrains-mono-cyrillic-ext-400-normal */\n@font-face {\n font-family: 'JetBrains Mono';\n font-style: normal;\n font-display: swap;\n font-weight: 400;\n src: url(./files/jetbrains-mono-cyrillic-ext-400-normal.woff2) format('woff2'), url(./files/jetbrains-mono-cyrillic-ext-400-normal.woff) format('woff');\n unicode-range: U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;\n}\n\n/* jetbrains-mono-cyrillic-400-normal */\n@font-face {\n font-family: 'JetBrains Mono';\n font-style: normal;\n font-display: swap;\n font-weight: 400;\n src: url(./files/jetbrains-mono-cyrillic-400-normal.woff2) format('woff2'), url(./files/jetbrains-mono-cyrillic-400-normal.woff) format('woff');\n unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;\n}\n\n/* jetbrains-mono-greek-400-normal */\n@font-face {\n font-family: 'JetBrains Mono';\n font-style: normal;\n font-display: swap;\n font-weight: 400;\n src: url(./files/jetbrains-mono-greek-400-normal.woff2) format('woff2'), url(./files/jetbrains-mono-greek-400-normal.woff) format('woff');\n unicode-range: U+0370-03FF;\n}\n\n/* jetbrains-mono-vietnamese-400-normal */\n@font-face {\n font-family: 'JetBrains Mono';\n font-style: normal;\n font-display: swap;\n font-weight: 400;\n src: url(./files/jetbrains-mono-vietnamese-400-normal.woff2) format('woff2'), url(./files/jetbrains-mono-vietnamese-400-normal.woff) format('woff');\n unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;\n}\n\n/* jetbrains-mono-latin-ext-400-normal */\n@font-face {\n font-family: 'JetBrains Mono';\n font-style: normal;\n font-display: swap;\n font-weight: 400;\n src: url(./files/jetbrains-mono-latin-ext-400-normal.woff2) format('woff2'), url(./files/jetbrains-mono-latin-ext-400-normal.woff) format('woff');\n unicode-range: U+0100-02AF,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;\n}\n\n/* jetbrains-mono-latin-400-normal */\n@font-face {\n font-family: 'JetBrains Mono';\n font-style: normal;\n font-display: swap;\n font-weight: 400;\n src: url(./files/jetbrains-mono-latin-400-normal.woff2) format('woff2'), url(./files/jetbrains-mono-latin-400-normal.woff) format('woff');\n unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;\n}"]} \ No newline at end of file +{"version":3,"sources":["../../assets/css/beacon_live_admin.css","","%3Cinput%20css%20bZZs4m%3E","../../deps/live_monaco_editor/assets/node_modules/@fontsource/jetbrains-mono/index.css"],"names":[],"mappings":"AAIA,uHAAuH;ACJvH,gEAAA,ACKA,iBAME,sBAAwD,CAHxD,qBAIF,CAEA,eAEE,eACF,CAYA,WAGE,6BAA8B,CAI9B,4BAA8E,CAE9E,uCAAwC,CAHxC,kIAAyJ,CAEzJ,8BAAkF,CANlF,eAAgB,CAEhB,eAAgB,CAChB,aAAW,CAAX,UAKF,CAOA,KAEE,mBAAoB,CADpB,QAEF,CAQA,GAGE,oBAAqB,CADrB,aAAc,CADd,QAGF,CAMA,oBACE,wCAAiC,CAAjC,gCACF,CAMA,kBAME,iBAAkB,CAClB,mBACF,CAMA,EACE,aAAc,CACd,uBACF,CAMA,SAEE,kBACF,CASA,kBAKE,4BAA8E,CAD9E,mGAAyI,CAGzI,aAAc,CADd,8BAEF,CAMA,MACE,aACF,CAMA,QAEE,aAAc,CACd,aAAc,CACd,iBAAkB,CAClB,sBACF,CAEA,IACE,aACF,CAEA,IACE,SACF,CAQA,MAGE,wBAAyB,CADzB,oBAAqB,CADrB,aAGF,CAQA,sCAME,6BAA8B,CAK9B,aAAc,CANd,mBAAoB,CAGpB,cAAe,CADf,+BAAgC,CAEhC,mBAAoB,CACpB,mBAAoB,CAEpB,QAAS,CACT,SACF,CAMA,cAEE,mBACF,CAOA,gDAIE,yBAA0B,CAC1B,wBAA6B,CAC7B,qBACF,CAMA,gBACE,YACF,CAMA,iBACE,eACF,CAMA,SACE,sBACF,CAMA,wDAEE,WACF,CAOA,cACE,4BAA6B,CAC7B,mBACF,CAMA,4BACE,uBACF,CAOA,6BACE,yBAA0B,CAC1B,YACF,CAMA,QACE,iBACF,CAMA,mDAaE,QACF,CAEA,SACE,QAEF,CAEA,gBAHE,SAKF,CAEA,WAGE,eAAgB,CAChB,QAAS,CACT,SACF,CAKA,OACE,SACF,CAMA,SACE,eACF,CAOA,mDAGE,aAAwC,CADxC,SAEF,CAJA,yCAGE,aAAwC,CADxC,SAEF,CAMA,qBAEE,cACF,CAKA,UACE,cACF,CAQA,+CAQE,aAAc,CACd,qBACF,CAMA,UAGE,WAAY,CADZ,cAEF,CAGA,SACE,YACF,CDhYA,6LAAA,sBAAA,wBAAA,qBAAA,gBAAA,sBAAA,qBAAA,gBAAA,iBAAA,eAAA,mBAAA,qBAAA,uRAAA,4CAAA,2BAAA,4BAAA,wBAAA,2GAAA,yGAAA,qBAAA,+EAAA,wBAAA,mBAAA,mDAAA,cAAA,UAAA,yCAAA,cAAA,UAAA,uCAAA,UAAA,8BAAA,iBAAA,+TAAA,iBAAA,cAAA,OAAA,iQAAA,uCAAA,4BAAA,4BAAA,qBAAA,iCAAA,yBAAA,WAAA,sBAAA,wBAAA,wBAAA,wBAAA,qBAAA,iCAAA,yBAAA,6BAAA,sBAAA,wBAAA,qBAAA,gBAAA,sBAAA,6BAAA,qBAAA,iBAAA,cAAA,qBAAA,cAAA,YAAA,UAAA,iCAAA,yBAAA,yBAAA,sBAAA,iBAAA,sBAAA,WAAA,gBAAA,gBAAA,aAAA,mBAAA,yCAAA,4CAAA,2BAAA,4BAAA,wBAAA,2GAAA,yGAAA,+EAAA,wBAAA,mBAAA,6CAAA,8BAAA,wBAAA,4BAAA,0BAAA,mBAAA,wBAAA,4RAAA,qBAAA,mLAAA,gJAAA,8BAAA,mBAAA,8BAAA,sPAAA,wBAAA,4BAAA,0BAAA,wEAAA,8BAAA,mBAAA,YAAA,iBAAA,qBAAA,gBAAA,eAAA,gBAAA,oBAAA,UAAA,kBAAA,6BAAA,0CAAA,4BAAA,wBAAA,wBAAA,mBAAA,mBAAA,cAAA,cAAA,cAAA,eAAA,eAAA,aAAA,aAAA,kBAAA,sCAAA,8BAAA,6BAAA,4BAAA,eAAA,oBAAA,sBAAA,uBAAA,wBAAA,kBAAA,2BAAA,4BAAA,0BAAA,kCAAA,2BAAA,sBAAA,8BAAA,YAAA,kBAAA,gBAAA,iBAAA,kBAAA,cAAA,gBAAA,aAAA,mBAAA,qBAAA,2BAAA,yBAAA,0BAAA,2BAAA,uBAAA,wBAAA,yBAAA,sBAAA,WAAA,WAAA,yBAAA,WAAA,gBAAA,CAAA,yBAAA,WAAA,gBAAA,CAAA,0BAAA,WAAA,iBAAA,CAAA,0BAAA,WAAA,iBAAA,CAAA,0BAAA,WAAA,iBAAA,CAAA,uBAAA,8WAAA,0CAAA,kCAAA,mDAAA,8BAAA,qBAAA,eAAA,sBAAA,cAAA,4BAAA,sXAAA,+CAAA,uCAAA,6BAAA,wXAAA,gDAAA,wCAAA,8CAAA,8BAAA,qBAAA,eAAA,sBAAA,cAAA,iBAAA,4ZAAA,oCAAA,4BAAA,0BAAA,uZAAA,6CAAA,qCAAA,kDAAA,8BAAA,qBAAA,eAAA,sBAAA,cAAA,wBAAA,0UAAA,2CAAA,mCAAA,qBAAA,sUAAA,wCAAA,gCAAA,0DAAA,8BAAA,qBAAA,eAAA,sBAAA,cAAA,qCAAA,mzBAAA,wDAAA,gDAAA,0BAAA,qqBAAA,6CAAA,qCAAA,wDAAA,8BAAA,qBAAA,eAAA,sBAAA,cAAA,8BAAA,iWAAA,iDAAA,yCAAA,UAAA,qgBAAA,6BAAA,qBAAA,0BAAA,8BAAA,qBAAA,eAAA,sBAAA,cAAA,gBAAA,ofAAA,mCAAA,2BAAA,8BAAA,qcAAA,iDAAA,yCAAA,kDAAA,8BAAA,qBAAA,eAAA,sBAAA,cAAA,oBAAA,ifAAA,uCAAA,+BAAA,YAAA,2oBAAA,+BAAA,uBAAA,+BAAA,8BAAA,qBAAA,eAAA,sBAAA,cAAA,mBAAA,gZAAA,sCAAA,8BAAA,SAAA,mBAAA,eAAA,WAAA,YAAA,gBAAA,UAAA,kBAAA,mBAAA,UAAA,WAAA,6BAAA,SAAA,mBAAA,WAAA,kBAAA,QAAA,gBAAA,OAAA,eAAA,UAAA,kBAAA,UAAA,kBAAA,QAAA,gBAAA,SAAA,QAAA,aAAA,YAAA,SAAA,WAAA,SAAA,MAAA,SAAA,aAAA,SAAA,WAAA,SAAA,cAAA,UAAA,cAAA,UAAA,YAAA,SAAA,YAAA,QAAA,OAAA,SAAA,QAAA,SAAA,aAAA,SAAA,YAAA,SAAA,cAAA,SAAA,cAAA,OAAA,MAAA,OAAA,WAAA,OAAA,UAAA,OAAA,WAAA,MAAA,WAAA,MAAA,WAAA,YAAA,0BAAA,eAAA,iBAAA,MAAA,eAAA,KAAA,cAAA,KAAA,YAAA,OAAA,oBAAA,iBAAA,SAAA,iBAAA,kBAAA,QAAA,mBAAA,MAAA,qBAAA,OAAA,qBAAA,OAAA,mBAAA,MAAA,oBAAA,MAAA,mBAAA,MAAA,mBAAA,MAAA,mBAAA,MAAA,kBAAA,MAAA,mBAAA,MAAA,iBAAA,MAAA,iBAAA,SAAA,iBAAA,MAAA,mBAAA,MAAA,aAAA,SAAA,mBAAA,MAAA,kBAAA,OAAA,kBAAA,OAAA,mBAAA,OAAA,kBAAA,OAAA,gBAAA,MAAA,iBAAA,MAAA,kBAAA,MAAA,gBAAA,MAAA,mBAAA,MAAA,kBAAA,MAAA,gBAAA,cAAA,4BAAA,qBAAA,oBAAA,gBAAA,OAAA,cAAA,cAAA,qBAAA,QAAA,eAAA,MAAA,aAAA,aAAA,oBAAA,OAAA,cAAA,MAAA,aAAA,UAAA,iBAAA,QAAA,aAAA,eAAA,iBAAA,MAAA,cAAA,MAAA,YAAA,KAAA,aAAA,MAAA,YAAA,KAAA,cAAA,KAAA,YAAA,KAAA,eAAA,KAAA,cAAA,KAAA,eAAA,4BAAA,0BAAA,4BAAA,0BAAA,QAAA,YAAA,QAAA,YAAA,UAAA,aAAA,UAAA,iBAAA,YAAA,gBAAA,gBAAA,gBAAA,YAAA,gBAAA,cAAA,iBAAA,QAAA,UAAA,MAAA,aAAA,MAAA,aAAA,KAAA,YAAA,KAAA,aAAA,KAAA,WAAA,KAAA,cAAA,MAAA,YAAA,KAAA,aAAA,MAAA,YAAA,KAAA,cAAA,MAAA,YAAA,KAAA,cAAA,MAAA,YAAA,aAAA,YAAA,QAAA,WAAA,iBAAA,gBAAA,iBAAA,gBAAA,WAAA,gBAAA,gBAAA,eAAA,iBAAA,iBAAA,UAAA,gBAAA,QAAA,YAAA,WAAA,UAAA,UAAA,cAAA,aAAA,sBAAA,aAAA,sBAAA,gBAAA,yBAAA,uCAAA,8LAAA,uBAAA,uBAAA,eAAA,qBAAA,8BAAA,8LAAA,eAAA,sBAAA,WAAA,8LAAA,gBAAA,GAAA,wBAAA,CAAA,cAAA,kCAAA,gBAAA,eAAA,eAAA,sBAAA,aAAA,8CAAA,aAAA,8CAAA,aAAA,2CAAA,UAAA,mBAAA,UAAA,sBAAA,WAAA,eAAA,aAAA,uBAAA,WAAA,qBAAA,cAAA,mBAAA,aAAA,yBAAA,gBAAA,uBAAA,iBAAA,8BAAA,OAAA,MAAA,UAAA,YAAA,OAAA,WAAA,UAAA,YAAA,OAAA,UAAA,OAAA,WAAA,OAAA,SAAA,OAAA,WAAA,SAAA,kBAAA,aAAA,YAAA,wBAAA,mBAAA,SAAA,uBAAA,kBAAA,SAAA,qBAAA,gBAAA,SAAA,uBAAA,kBAAA,SAAA,qBAAA,gBAAA,gBAAA,qBAAA,gBAAA,SAAA,aAAA,yCAAA,uBAAA,yDAAA,oDAAA,yCAAA,uBAAA,mDAAA,sDAAA,yCAAA,uBAAA,qDAAA,wDAAA,yCAAA,uBAAA,mDAAA,sDAAA,wCAAA,wBAAA,yDAAA,4DAAA,+CAAA,sBAAA,uDAAA,+CAAA,sBAAA,uDAAA,kBAAA,iBAAA,iBAAA,gBAAA,kBAAA,iBAAA,iBAAA,gBAAA,iBAAA,gBAAA,mBAAA,mBAAA,SAAA,qBAAA,aAAA,mBAAA,qBAAA,qBAAA,sBAAA,sBAAA,kBAAA,mBAAA,cAAA,qBAAA,YAAA,oBAAA,YAAA,sBAAA,YAAA,qBAAA,cAAA,iCAAA,kCAAA,oBAAA,4BAAA,6BAAA,cAAA,6BAAA,8BAAA,cAAA,8BAAA,+BAAA,QAAA,iBAAA,UAAA,iBAAA,UAAA,wBAAA,YAAA,wBAAA,YAAA,wBAAA,UAAA,sBAAA,UAAA,uBAAA,UAAA,qBAAA,cAAA,mBAAA,eAAA,oBAAA,iBAAA,sBAAA,sDAAA,iBAAA,sBAAA,qDAAA,iBAAA,sBAAA,qDAAA,iBAAA,sBAAA,uDAAA,iBAAA,sBAAA,uDAAA,iBAAA,sBAAA,uDAAA,qBAAA,uBAAA,iBAAA,sBAAA,uDAAA,kBAAA,sBAAA,uDAAA,oBAAA,mBAAA,iBAAA,sBAAA,uDAAA,iBAAA,sBAAA,uDAAA,mBAAA,sBAAA,8DAAA,cAAA,4BAAA,+DAAA,iBAAA,kBAAA,oDAAA,iBAAA,kBAAA,uDAAA,cAAA,kBAAA,uDAAA,cAAA,kBAAA,sDAAA,cAAA,2BAAA,aAAA,kBAAA,uDAAA,aAAA,kBAAA,sDAAA,aAAA,kBAAA,qDAAA,aAAA,kBAAA,uDAAA,aAAA,kBAAA,qDAAA,eAAA,kBAAA,uDAAA,aAAA,kBAAA,uDAAA,aAAA,kBAAA,uDAAA,YAAA,kBAAA,uDAAA,aAAA,kBAAA,sDAAA,YAAA,kBAAA,qDAAA,YAAA,kBAAA,qDAAA,YAAA,kBAAA,uDAAA,cAAA,kBAAA,uDAAA,aAAA,kBAAA,uDAAA,cAAA,kBAAA,oDAAA,UAAA,kBAAA,uDAAA,gBAAA,2BAAA,aAAA,kBAAA,oDAAA,eAAA,aAAA,eAAA,aAAA,gBAAA,aAAA,kBAAA,eAAA,KAAA,UAAA,KAAA,eAAA,MAAA,eAAA,KAAA,cAAA,KAAA,eAAA,KAAA,aAAA,KAAA,eAAA,MAAA,eAAA,gBAAA,SAAA,qBAAA,sBAAA,MAAA,oBAAA,qBAAA,SAAA,qBAAA,sBAAA,MAAA,mBAAA,oBAAA,SAAA,qBAAA,sBAAA,MAAA,oBAAA,qBAAA,SAAA,qBAAA,sBAAA,MAAA,kBAAA,mBAAA,MAAA,qBAAA,sBAAA,MAAA,oBAAA,qBAAA,MAAA,kBAAA,mBAAA,aAAA,kBAAA,mBAAA,MAAA,iBAAA,cAAA,SAAA,uBAAA,oBAAA,MAAA,sBAAA,mBAAA,OAAA,sBAAA,mBAAA,MAAA,qBAAA,kBAAA,SAAA,uBAAA,oBAAA,MAAA,sBAAA,mBAAA,SAAA,uBAAA,oBAAA,MAAA,oBAAA,iBAAA,MAAA,uBAAA,oBAAA,MAAA,sBAAA,mBAAA,MAAA,iBAAA,SAAA,uBAAA,OAAA,sBAAA,MAAA,oBAAA,MAAA,eAAA,MAAA,oBAAA,MAAA,gBAAA,MAAA,oBAAA,MAAA,qBAAA,MAAA,cAAA,MAAA,mBAAA,SAAA,oBAAA,OAAA,mBAAA,MAAA,kBAAA,MAAA,mBAAA,MAAA,iBAAA,MAAA,mBAAA,MAAA,oBAAA,MAAA,iBAAA,WAAA,gBAAA,aAAA,kBAAA,YAAA,iBAAA,WAAA,mIAAA,UAAA,iBAAA,iBAAA,WAAA,eAAA,mBAAA,SAAA,mBAAA,oBAAA,YAAA,mBAAA,mBAAA,qBAAA,kBAAA,oBAAA,SAAA,kBAAA,oBAAA,SAAA,iBAAA,iBAAA,WAAA,gBAAA,YAAA,gBAAA,aAAA,gBAAA,aAAA,gBAAA,eAAA,gBAAA,WAAA,yBAAA,YAAA,0BAAA,WAAA,iBAAA,WAAA,oBAAA,WAAA,mBAAA,WAAA,iBAAA,sBAAA,sBAAA,eAAA,sBAAA,gBAAA,qBAAA,iBAAA,oBAAA,gBAAA,8BAAA,sDAAA,mBAAA,oBAAA,yCAAA,mBAAA,oBAAA,2CAAA,mBAAA,oBAAA,2CAAA,mBAAA,oBAAA,4CAAA,mBAAA,oBAAA,6CAAA,mBAAA,oBAAA,4CAAA,eAAA,oBAAA,4CAAA,eAAA,oBAAA,4CAAA,eAAA,oBAAA,4CAAA,kBAAA,oBAAA,0CAAA,eAAA,oBAAA,8CAAA,cAAA,oBAAA,8CAAA,eAAA,oBAAA,8CAAA,eAAA,oBAAA,2CAAA,eAAA,oBAAA,2CAAA,gBAAA,oBAAA,4CAAA,gBAAA,oBAAA,4CAAA,cAAA,oBAAA,4CAAA,cAAA,oBAAA,4CAAA,eAAA,oBAAA,4CAAA,eAAA,oBAAA,4CAAA,gBAAA,oBAAA,2CAAA,YAAA,oBAAA,8CAAA,eAAA,oBAAA,8CAAA,eAAA,oBAAA,2CAAA,eAAA,oBAAA,2CAAA,eAAA,oBAAA,2CAAA,eAAA,oBAAA,2CAAA,aAAA,mCAAA,kCAAA,eAAA,oBAAA,WAAA,UAAA,aAAA,UAAA,YAAA,WAAA,YAAA,WAAA,YAAA,WAAA,YAAA,WAAA,QAAA,2DAAA,6FAAA,mBAAA,mGAAA,WAAA,gEAAA,kGAAA,WAAA,8DAAA,gGAAA,sBAAA,mGAAA,WAAA,kCAAA,uDAAA,WAAA,iEAAA,mGAAA,mGAAA,qBAAA,4BAAA,qCAAA,cAAA,wBAAA,mBAAA,SAAA,oBAAA,gBAAA,qBAAA,WAAA,kBAAA,QAAA,2GAAA,yGAAA,yFAAA,YAAA,sBAAA,eAAA,oBAAA,uDAAA,kBAAA,oBAAA,uDAAA,eAAA,oBAAA,wDAAA,eAAA,oBAAA,sDAAA,mBAAA,0BAAA,eAAA,2BAAA,QAAA,yBAAA,gBAAA,iLAAA,YAAA,yBAAA,sJAAA,8IAAA,sKAAA,mDAAA,gBAAA,yBAAA,wBAAA,mDAAA,mBAAA,yBAAA,0FAAA,mDAAA,oBAAA,yBAAA,4BAAA,mDAAA,sBAAA,yBAAA,8BAAA,mDAAA,cAAA,wBAAA,cAAA,wBAAA,cAAA,wBAAA,SAAA,kDAAA,UAAA,kDAAA,aAAA,2BAAA,AECA,WAGE,iBAAA,CAFA,0BAAA,CACA,iBAAA,CAEA,eAAA,CACA,+zHAAA,CACA,gFAAA,CAIF,WAGE,iBAAA,CAFA,0BAAA,CACA,iBAAA,CAEA,eAAA,CACA,+ggBAAA,CACA,+DAAA,CAIF,WAGE,iBAAA,CAFA,0BAAA,CACA,iBAAA,CAEA,eAAA,CACA,m7ZAAA,CACA,yBAAA,CAIF,WAGE,iBAAA,CAFA,0BAAA,CACA,iBAAA,CAEA,eAAA,CACA,29VAAA,CACA,0JAAA,CAIF,WAGE,iBAAA,CAFA,0BAAA,CACA,iBAAA,CAEA,eAAA,CACA,mmpBAAA,CACA,gJAAA,CAIF,WAGE,iBAAA,CAFA,0BAAA,CACA,iBAAA,CAEA,eAAA,CACA,+m9DAAA,CACA,qMAAA,CHzDF,0BAAA,WAAA,CAAA,6BAAA,cAAA,CAAA,8BAAA,qBAAA,CAAA,oDAAA,CAAA,8BAAA,qBAAA,CAAA,sDAAA,CAAA,2BAAA,qBAAA,CAAA,sDAAA,CAAA,8BAAA,iBAAA,CAAA,sDAAA,CAAA,0BAAA,iBAAA,CAAA,qDAAA,CAAA,0BAAA,iBAAA,CAAA,oDAAA,CAAA,0BAAA,iBAAA,CAAA,mDAAA,CAAA,0BAAA,iBAAA,CAAA,kDAAA,CAAA,yBAAA,iBAAA,CAAA,sDAAA,CAAA,yBAAA,iBAAA,CAAA,oDAAA,CAAA,2BAAA,iBAAA,CAAA,sDAAA,CAAA,0BAAA,iBAAA,CAAA,sDAAA,CAAA,yBAAA,iBAAA,CAAA,sDAAA,CAAA,0BAAA,iBAAA,CAAA,mDAAA,CAAA,gCAAA,mBAAA,CAAA,0CAAA,CAAA,gCAAA,mBAAA,CAAA,2CAAA,CAAA,4BAAA,mBAAA,CAAA,4CAAA,CAAA,4BAAA,mBAAA,CAAA,2CAAA,CAAA,4BAAA,mBAAA,CAAA,2CAAA,CAAA,4BAAA,mBAAA,CAAA,0CAAA,CAAA,2BAAA,mBAAA,CAAA,2CAAA,CAAA,yBAAA,mBAAA,CAAA,6CAAA,CAAA,4BAAA,mBAAA,CAAA,0CAAA,CAAA,wBAAA,8BAAA,CAAA,yBAAA,UAAA,CAAA,qBAAA,0GAAA,CAAA,wGAAA,CAAA,wFAAA,CAAA,4BAAA,mBAAA,CAAA,uDAAA,CAAA,4BAAA,0BAAA,CAAA,gCAAA,2BAAA,CAAA,8BAAA,qBAAA,CAAA,oDAAA,CAAA,8BAAA,qBAAA,CAAA,sDAAA,CAAA,8BAAA,qBAAA,CAAA,sDAAA,CAAA,2BAAA,uBAAA,CAAA,kBAAA,CAAA,qBAAA,0GAAA,CAAA,kGAAA,CAAA,0CAAA,wFAAA,CAAA,qBAAA,0GAAA,CAAA,wGAAA,CAAA,4BAAA,mBAAA,CAAA,uDAAA,CAAA,yBAAA,sBAAA,CAAA,sCAAA,oBAAA,CAAA,2CAAA,uBAAA,CAAA,kBAAA,CAAA,qCAAA,0GAAA,CAAA,wGAAA,CAAA,0EAAA,wFAAA,CAAA,qCAAA,0GAAA,CAAA,wGAAA,CAAA,4CAAA,mBAAA,CAAA,uDAAA,CAAA,4CAAA,mBAAA,CAAA,uDAAA,CAAA,8CAAA,mBAAA,CAAA,sDAAA,CAAA,2CAAA,uBAAA,CAAA,4BAAA,iBAAA,CAAA,oDAAA,CAAA,4BAAA,iBAAA,CAAA,qDAAA,CAAA,2BAAA,iBAAA,CAAA,oDAAA,CAAA,8BAAA,mBAAA,CAAA,4CAAA,CAAA,8BAAA,mBAAA,CAAA,2CAAA,CAAA,8BAAA,mBAAA,CAAA,2CAAA,CAAA,8BAAA,mBAAA,CAAA,2CAAA,CAAA,+BAAA,WAAA,CAAA,uCAAA,kBAAA,CAAA,gCAAA,iBAAA,CAAA,sDAAA,CAAA,uCAAA,aAAA,CAAA,mCAAA,kBAAA,CAAA,2CAAA,iBAAA,CAAA,sDAAA,CAAA,sCAAA,iBAAA,CAAA,sDAAA,CAAA,wCAAA,iBAAA,CAAA,0CAAA,mBAAA,CAAA,uCAAA,SAAA,CAAA,sCAAA,UAAA,CAAA,8BAAA,oBAAA,aAAA,CAAA,mBAAA,aAAA,CAAA,4BAAA,0BAAA,CAAA,uBAAA,WAAA,CAAA,oBAAA,SAAA,CAAA,kBAAA,aAAA,CAAA,mBAAA,kBAAA,CAAA,mBAAA,eAAA,CAAA,yBAAA,kBAAA,CAAA,mBAAA,CAAA,CAAA,8BAAA,yBAAA,UAAA,CAAA,uBAAA,WAAA,CAAA,oBAAA,UAAA,CAAA,mBAAA,kBAAA,CAAA,mBAAA,CAAA,sBAAA,sBAAA,CAAA,mBAAA,CAAA,sBAAA,sBAAA,CAAA,mBAAA,CAAA,mBAAA,mBAAA,CAAA,sBAAA,kBAAA,CAAA,mBAAA,CAAA,gCAAA,iBAAA,CAAA,gBAAA,CAAA,CAAA,8BAAA,yBAAA,UAAA,CAAA,uBAAA,WAAA,CAAA,oBAAA,QAAA,CAAA,sBAAA,sBAAA,CAAA,mBAAA,CAAA,iCAAA,kBAAA,CAAA,gBAAA,CAAA,sBAAA,iBAAA,CAAA,mBAAA,CAAA,CAAA,8BAAA,kBAAA,cAAA,CAAA,kBAAA,aAAA,CAAA,yBAAA,UAAA,CAAA,oBAAA,QAAA,CAAA,mBAAA,mBAAA,CAAA,gBAAA,CAAA,mBAAA,mBAAA,CAAA,uBAAA,gBAAA,CAAA,gBAAA,CAAA,iCAAA,iBAAA,CAAA,gBAAA,CAAA,CAAA,yCAAA,YAAA,CAAA,kDAAA,qBAAA,CAAA,sDAAA,CAAA,+DAAA,qBAAA,CAAA,oDAAA,CAAA,+DAAA,qBAAA,CAAA,sDAAA,CAAA,0CAAA,YAAA,CAAA,mDAAA,qBAAA,CAAA,sDAAA,CAAA,gEAAA,qBAAA,CAAA,oDAAA,CAAA,gEAAA,qBAAA,CAAA,sDAAA,CAAA,uGAAA,WAAA,CAAA,yBAAA,UAAA,YAAA,CAAA,UAAA,WAAA,CAAA,YAAA,UAAA,CAAA,YAAA,UAAA,CAAA,qBAAA,eAAA,CAAA,mBAAA,oBAAA,CAAA,kCAAA,6LAAA,CAAA,eAAA,cAAA,CAAA,cAAA,CAAA,cAAA,gBAAA,CAAA,gBAAA,CAAA,6LAAA,CAAA,WAAA,QAAA,CAAA,sBAAA,gBAAA,CAAA,kBAAA,gCAAA,CAAA,6BAAA,CAAA,kBAAA,iCAAA,CAAA,8BAAA,CAAA,SAAA,cAAA,CAAA,UAAA,cAAA,CAAA,eAAA,CAAA,UAAA,mBAAA,CAAA,oBAAA,CAAA,aAAA,iBAAA,CAAA,mBAAA,CAAA,eAAA,kBAAA,CAAA,CAAA,yBAAA,iBAAA,6CAAA,CAAA,cAAA,kBAAA,CAAA,iBAAA,gBAAA,CAAA,gBAAA,CAAA,CAAA,0BAAA,gBAAA,yBAAA,CAAA,gBAAA,yBAAA,CAAA,UAAA,aAAA,CAAA,cAAA,CAAA,iCAAA,0BAAA,CAAA,iCAAA,0BAAA,CAAA,YAAA,WAAA,CAAA,gBAAA,cAAA,CAAA,iBAAA,6CAAA,CAAA,qBAAA,eAAA,CAAA,oBAAA,2BAAA,CAAA,4BAAA,CAAA,4BAAA,8BAAA,CAAA,+BAAA,CAAA,UAAA,mBAAA,CAAA,oBAAA,CAAA,UAAA,iBAAA,CAAA,kBAAA,CAAA,UAAA,mBAAA,CAAA,gBAAA,CAAA,CAAA,2EAAA,0GAAA,CAAA,wGAAA,CAAA,wFAAA,CAAA,8BAAA,wFAAA,0GAAA,CAAA,wGAAA,CAAA,wFAAA,CAAA,CAAA,2BAAA,gBAAA,CAAA,4HAAA,2BAAA,CAAA,6DAAA,CAAA,iCAAA,uBAAA,CAAA,8BAAA,kBAAA,CAAA,6LAAA","file":"beacon_live_admin.min.css","sourcesContent":["@import \"tailwindcss/base\";\n@import \"tailwindcss/components\";\n@import \"tailwindcss/utilities\";\n@import \"../../deps/live_monaco_editor/priv/static/live_monaco_editor.min.css\";\n@import url(\"https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@200;300;400;500;600;700;800&display=swap\");\n",null,"/*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: theme('borderColor.DEFAULT', currentColor); /* 2 */\n}\n\n::before,\n::after {\n --tw-content: '';\n}\n\n/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user's configured `sans` font-family by default.\n5. Use the user's configured `sans` font-feature-settings by default.\n6. Use the user's configured `sans` font-variation-settings by default.\n7. Disable tap highlights on iOS\n*/\n\nhtml,\n:host {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n -moz-tab-size: 4; /* 3 */\n tab-size: 4; /* 3 */\n font-family: theme('fontFamily.sans', ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\"); /* 4 */\n font-feature-settings: theme('fontFamily.sans[1].fontFeatureSettings', normal); /* 5 */\n font-variation-settings: theme('fontFamily.sans[1].fontVariationSettings', normal); /* 6 */\n -webkit-tap-highlight-color: transparent; /* 7 */\n}\n\n/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/\n\nbody {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\n}\n\n/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\n\nhr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n}\n\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\n\nabbr:where([title]) {\n text-decoration: underline dotted;\n}\n\n/*\nRemove the default font size and weight for headings.\n*/\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-size: inherit;\n font-weight: inherit;\n}\n\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\n\na {\n color: inherit;\n text-decoration: inherit;\n}\n\n/*\nAdd the correct font weight in Edge and Safari.\n*/\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/*\n1. Use the user's configured `mono` font-family by default.\n2. Use the user's configured `mono` font-feature-settings by default.\n3. Use the user's configured `mono` font-variation-settings by default.\n4. Correct the odd `em` font sizing in all browsers.\n*/\n\ncode,\nkbd,\nsamp,\npre {\n font-family: theme('fontFamily.mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace); /* 1 */\n font-feature-settings: theme('fontFamily.mono[1].fontFeatureSettings', normal); /* 2 */\n font-variation-settings: theme('fontFamily.mono[1].fontVariationSettings', normal); /* 3 */\n font-size: 1em; /* 4 */\n}\n\n/*\nAdd the correct font size in all browsers.\n*/\n\nsmall {\n font-size: 80%;\n}\n\n/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\n\ntable {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n}\n\n/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-feature-settings: inherit; /* 1 */\n font-variation-settings: inherit; /* 1 */\n font-size: 100%; /* 1 */\n font-weight: inherit; /* 1 */\n line-height: inherit; /* 1 */\n color: inherit; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 3 */\n}\n\n/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\n\nbutton,\nselect {\n text-transform: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\n\nbutton,\n[type='button'],\n[type='reset'],\n[type='submit'] {\n -webkit-appearance: button; /* 1 */\n background-color: transparent; /* 2 */\n background-image: none; /* 2 */\n}\n\n/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n\n:-moz-focusring {\n outline: auto;\n}\n\n/*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n\n:-moz-ui-invalid {\n box-shadow: none;\n}\n\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n\nprogress {\n vertical-align: baseline;\n}\n\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n\n[type='search'] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/*\nAdd the correct display in Chrome and Safari.\n*/\n\nsummary {\n display: list-item;\n}\n\n/*\nRemoves the default spacing and border for appropriate elements.\n*/\n\nblockquote,\ndl,\ndd,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nhr,\nfigure,\np,\npre {\n margin: 0;\n}\n\nfieldset {\n margin: 0;\n padding: 0;\n}\n\nlegend {\n padding: 0;\n}\n\nol,\nul,\nmenu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n/*\nReset default styling for dialogs.\n*/\ndialog {\n padding: 0;\n}\n\n/*\nPrevent resizing textareas horizontally by default.\n*/\n\ntextarea {\n resize: vertical;\n}\n\n/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user's configured gray 400 color.\n*/\n\ninput::placeholder,\ntextarea::placeholder {\n opacity: 1; /* 1 */\n color: theme('colors.gray.400', #9ca3af); /* 2 */\n}\n\n/*\nSet the default cursor for buttons.\n*/\n\nbutton,\n[role=\"button\"] {\n cursor: pointer;\n}\n\n/*\nMake sure disabled buttons don't get the pointer cursor.\n*/\n:disabled {\n cursor: default;\n}\n\n/*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/\n\nimg,\nsvg,\nvideo,\ncanvas,\naudio,\niframe,\nembed,\nobject {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n}\n\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\n\nimg,\nvideo {\n max-width: 100%;\n height: auto;\n}\n\n/* Make elements with the HTML hidden attribute stay hidden by default */\n[hidden] {\n display: none;\n}\n","/* jetbrains-mono-cyrillic-ext-400-normal */\n@font-face {\n font-family: 'JetBrains Mono';\n font-style: normal;\n font-display: swap;\n font-weight: 400;\n src: url(./files/jetbrains-mono-cyrillic-ext-400-normal.woff2) format('woff2'), url(./files/jetbrains-mono-cyrillic-ext-400-normal.woff) format('woff');\n unicode-range: U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;\n}\n\n/* jetbrains-mono-cyrillic-400-normal */\n@font-face {\n font-family: 'JetBrains Mono';\n font-style: normal;\n font-display: swap;\n font-weight: 400;\n src: url(./files/jetbrains-mono-cyrillic-400-normal.woff2) format('woff2'), url(./files/jetbrains-mono-cyrillic-400-normal.woff) format('woff');\n unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;\n}\n\n/* jetbrains-mono-greek-400-normal */\n@font-face {\n font-family: 'JetBrains Mono';\n font-style: normal;\n font-display: swap;\n font-weight: 400;\n src: url(./files/jetbrains-mono-greek-400-normal.woff2) format('woff2'), url(./files/jetbrains-mono-greek-400-normal.woff) format('woff');\n unicode-range: U+0370-03FF;\n}\n\n/* jetbrains-mono-vietnamese-400-normal */\n@font-face {\n font-family: 'JetBrains Mono';\n font-style: normal;\n font-display: swap;\n font-weight: 400;\n src: url(./files/jetbrains-mono-vietnamese-400-normal.woff2) format('woff2'), url(./files/jetbrains-mono-vietnamese-400-normal.woff) format('woff');\n unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;\n}\n\n/* jetbrains-mono-latin-ext-400-normal */\n@font-face {\n font-family: 'JetBrains Mono';\n font-style: normal;\n font-display: swap;\n font-weight: 400;\n src: url(./files/jetbrains-mono-latin-ext-400-normal.woff2) format('woff2'), url(./files/jetbrains-mono-latin-ext-400-normal.woff) format('woff');\n unicode-range: U+0100-02AF,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;\n}\n\n/* jetbrains-mono-latin-400-normal */\n@font-face {\n font-family: 'JetBrains Mono';\n font-style: normal;\n font-display: swap;\n font-weight: 400;\n src: url(./files/jetbrains-mono-latin-400-normal.woff2) format('woff2'), url(./files/jetbrains-mono-latin-400-normal.woff) format('woff');\n unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;\n}"]} \ No newline at end of file diff --git a/priv/static/beacon_live_admin.min.js b/priv/static/beacon_live_admin.min.js index c6510be4..8f6ac1f6 100644 --- a/priv/static/beacon_live_admin.min.js +++ b/priv/static/beacon_live_admin.min.js @@ -1,33 +1,33 @@ -var BeaconLiveAdmin=(()=>{var Wm=Object.create;var wi=Object.defineProperty;var Vm=Object.getOwnPropertyDescriptor;var Hm=Object.getOwnPropertyNames;var Gm=Object.getPrototypeOf,Ym=Object.prototype.hasOwnProperty;var Qm=(t,e,r)=>e in t?wi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var j=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),tt=(t,e)=>{for(var r in e)wi(t,r,{get:e[r],enumerable:!0})},Km=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Hm(e))!Ym.call(t,i)&&i!==r&&wi(t,i,{get:()=>e[i],enumerable:!(n=Vm(e,i))||n.enumerable});return t};var Ze=(t,e,r)=>(r=t!=null?Wm(Gm(t)):{},Km(e||!t||!t.__esModule?wi(r,"default",{value:t,enumerable:!0}):r,t));var Fe=(t,e,r)=>(Qm(t,typeof e!="symbol"?e+"":e,r),r);var bu=j((gu,xi)=>{(function(t,e){"use strict";(function(){for(var f=0,g=["ms","moz","webkit","o"],w=0;wd.show(),f)}else i=!0,s!==null&&t.cancelAnimationFrame(s),r||p(),r.style.opacity=1,r.style.display="block",d.progress(0),u.autoRun&&function g(){o=t.requestAnimationFrame(g),d.progress("+"+.05*Math.pow(1-Math.sqrt(n),2))}()},progress:function(f){return typeof f>"u"||(typeof f=="string"&&(f=(f.indexOf("+")>=0||f.indexOf("-")>=0?n:0)+parseFloat(f)),n=f>1?1:f,c()),n},hide:function(){clearTimeout(l),l=null,i&&(i=!1,o!=null&&(t.cancelAnimationFrame(o),o=null),function f(){if(d.progress("+.1")>=1&&(r.style.opacity-=.05,r.style.opacity<=.05)){r.style.display="none",s=null;return}s=t.requestAnimationFrame(f)}())}};typeof xi=="object"&&typeof xi.exports=="object"?xi.exports=d:typeof define=="function"&&define.amd?define(function(){return d}):this.topbar=d}).call(gu,window,document)});var Jc=j((VA,Vs)=>{var De=String,Kc=function(){return{isColorSupported:!1,reset:De,bold:De,dim:De,italic:De,underline:De,inverse:De,hidden:De,strikethrough:De,black:De,red:De,green:De,yellow:De,blue:De,magenta:De,cyan:De,white:De,gray:De,bgBlack:De,bgRed:De,bgGreen:De,bgYellow:De,bgBlue:De,bgMagenta:De,bgCyan:De,bgWhite:De}};Vs.exports=Kc();Vs.exports.createColors=Kc});var Hs=j(()=>{});var no=j((YA,ef)=>{"use strict";var Xc=Jc(),Zc=Hs(),yn=class t extends Error{constructor(e,r,n,i,o,s){super(e),this.name="CssSyntaxError",this.reason=e,o&&(this.file=o),i&&(this.source=i),s&&(this.plugin=s),typeof r<"u"&&typeof n<"u"&&(typeof r=="number"?(this.line=r,this.column=n):(this.line=r.line,this.column=r.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,t)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let r=this.source;e==null&&(e=Xc.isColorSupported);let n=c=>c,i=c=>c,o=c=>c;if(e){let{bold:c,gray:p,red:d}=Xc.createColors(!0);i=f=>c(d(f)),n=f=>p(f),Zc&&(o=f=>Zc(f))}let s=r.split(/\r?\n/),l=Math.max(this.line-3,0),a=Math.min(this.line+2,s.length),u=String(a).length;return s.slice(l,a).map((c,p)=>{let d=l+1+p,f=" "+(" "+d).slice(-u)+" | ";if(d===this.line){if(c.length>160){let w=20,h=Math.max(0,this.column-w),m=Math.max(this.column+w,this.endColumn+w),b=c.slice(h,m),v=n(f.replace(/\d/g," "))+c.slice(0,Math.min(this.column-1,w-1)).replace(/[^\t]/g," ");return i(">")+n(f)+o(b)+` +var BeaconLiveAdmin=(()=>{var Vm=Object.create;var wi=Object.defineProperty;var Hm=Object.getOwnPropertyDescriptor;var Gm=Object.getOwnPropertyNames;var Ym=Object.getPrototypeOf,Qm=Object.prototype.hasOwnProperty;var Km=(t,e,r)=>e in t?wi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var j=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),it=(t,e)=>{for(var r in e)wi(t,r,{get:e[r],enumerable:!0})},Jm=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Gm(e))!Qm.call(t,i)&&i!==r&&wi(t,i,{get:()=>e[i],enumerable:!(n=Hm(e,i))||n.enumerable});return t};var rt=(t,e,r)=>(r=t!=null?Vm(Ym(t)):{},Jm(e||!t||!t.__esModule?wi(r,"default",{value:t,enumerable:!0}):r,t));var Re=(t,e,r)=>(Km(t,typeof e!="symbol"?e+"":e,r),r);var bu=j((gu,xi)=>{(function(t,e){"use strict";(function(){for(var f=0,g=["ms","moz","webkit","o"],w=0;wd.show(),f)}else i=!0,s!==null&&t.cancelAnimationFrame(s),r||p(),r.style.opacity=1,r.style.display="block",d.progress(0),u.autoRun&&function g(){o=t.requestAnimationFrame(g),d.progress("+"+.05*Math.pow(1-Math.sqrt(n),2))}()},progress:function(f){return typeof f>"u"||(typeof f=="string"&&(f=(f.indexOf("+")>=0||f.indexOf("-")>=0?n:0)+parseFloat(f)),n=f>1?1:f,c()),n},hide:function(){clearTimeout(l),l=null,i&&(i=!1,o!=null&&(t.cancelAnimationFrame(o),o=null),function f(){if(d.progress("+.1")>=1&&(r.style.opacity-=.05,r.style.opacity<=.05)){r.style.display="none",s=null;return}s=t.requestAnimationFrame(f)}())}};typeof xi=="object"&&typeof xi.exports=="object"?xi.exports=d:typeof define=="function"&&define.amd?define(function(){return d}):this.topbar=d}).call(gu,window,document)});var Jc=j((YA,Vs)=>{var Fe=String,Kc=function(){return{isColorSupported:!1,reset:Fe,bold:Fe,dim:Fe,italic:Fe,underline:Fe,inverse:Fe,hidden:Fe,strikethrough:Fe,black:Fe,red:Fe,green:Fe,yellow:Fe,blue:Fe,magenta:Fe,cyan:Fe,white:Fe,gray:Fe,bgBlack:Fe,bgRed:Fe,bgGreen:Fe,bgYellow:Fe,bgBlue:Fe,bgMagenta:Fe,bgCyan:Fe,bgWhite:Fe}};Vs.exports=Kc();Vs.exports.createColors=Kc});var Hs=j(()=>{});var no=j((JA,ef)=>{"use strict";var Xc=Jc(),Zc=Hs(),yn=class t extends Error{constructor(e,r,n,i,o,s){super(e),this.name="CssSyntaxError",this.reason=e,o&&(this.file=o),i&&(this.source=i),s&&(this.plugin=s),typeof r<"u"&&typeof n<"u"&&(typeof r=="number"?(this.line=r,this.column=n):(this.line=r.line,this.column=r.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,t)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let r=this.source;e==null&&(e=Xc.isColorSupported);let n=c=>c,i=c=>c,o=c=>c;if(e){let{bold:c,gray:p,red:d}=Xc.createColors(!0);i=f=>c(d(f)),n=f=>p(f),Zc&&(o=f=>Zc(f))}let s=r.split(/\r?\n/),l=Math.max(this.line-3,0),a=Math.min(this.line+2,s.length),u=String(a).length;return s.slice(l,a).map((c,p)=>{let d=l+1+p,f=" "+(" "+d).slice(-u)+" | ";if(d===this.line){if(c.length>160){let w=20,h=Math.max(0,this.column-w),m=Math.max(this.column+w,this.endColumn+w),b=c.slice(h,m),v=n(f.replace(/\d/g," "))+c.slice(0,Math.min(this.column-1,w-1)).replace(/[^\t]/g," ");return i(">")+n(f)+o(b)+` `+v+i("^")}let g=n(f.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return i(">")+n(f)+o(c)+` `+g+i("^")}return" "+n(f)+o(c)}).join(` `)}toString(){let e=this.showSourceCode();return e&&(e=` `+e+` -`),this.name+": "+this.message+e}};ef.exports=yn;yn.default=yn});var Gs=j((QA,rf)=>{"use strict";var tf={after:` +`),this.name+": "+this.message+e}};ef.exports=yn;yn.default=yn});var Gs=j((XA,rf)=>{"use strict";var tf={after:` `,beforeClose:` `,beforeComment:` `,beforeDecl:` `,beforeOpen:" ",beforeRule:` -`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Hb(t){return t[0].toUpperCase()+t.slice(1)}var _n=class{constructor(e){this.builder=e}atrule(e,r){let n="@"+e.name,i=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?n+=e.raws.afterName:i&&(n+=" "),e.nodes)this.block(e,n+i);else{let o=(e.raws.between||"")+(r?";":"");this.builder(n+i+o,e)}}beforeAfter(e,r){let n;e.type==="decl"?n=this.raw(e,null,"beforeDecl"):e.type==="comment"?n=this.raw(e,null,"beforeComment"):r==="before"?n=this.raw(e,null,"beforeRule"):n=this.raw(e,null,"beforeClose");let i=e.parent,o=0;for(;i&&i.type!=="root";)o+=1,i=i.parent;if(n.includes(` -`)){let s=this.raw(e,null,"indent");if(s.length)for(let l=0;l0&&e.nodes[r].type==="comment";)r-=1;let n=this.raw(e,"semicolon");for(let i=0;i{if(i=a.raws[r],typeof i<"u")return!1})}return typeof i>"u"&&(i=tf[n]),s.rawCache[n]=i,i}rawBeforeClose(e){let r;return e.walk(n=>{if(n.nodes&&n.nodes.length>0&&typeof n.raws.after<"u")return r=n.raws.after,r.includes(` +`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Gb(t){return t[0].toUpperCase()+t.slice(1)}var _n=class{constructor(e){this.builder=e}atrule(e,r){let n="@"+e.name,i=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?n+=e.raws.afterName:i&&(n+=" "),e.nodes)this.block(e,n+i);else{let o=(e.raws.between||"")+(r?";":"");this.builder(n+i+o,e)}}beforeAfter(e,r){let n;e.type==="decl"?n=this.raw(e,null,"beforeDecl"):e.type==="comment"?n=this.raw(e,null,"beforeComment"):r==="before"?n=this.raw(e,null,"beforeRule"):n=this.raw(e,null,"beforeClose");let i=e.parent,o=0;for(;i&&i.type!=="root";)o+=1,i=i.parent;if(n.includes(` +`)){let s=this.raw(e,null,"indent");if(s.length)for(let l=0;l0&&e.nodes[r].type==="comment";)r-=1;let n=this.raw(e,"semicolon");for(let i=0;i{if(i=a.raws[r],typeof i<"u")return!1})}return typeof i>"u"&&(i=tf[n]),s.rawCache[n]=i,i}rawBeforeClose(e){let r;return e.walk(n=>{if(n.nodes&&n.nodes.length>0&&typeof n.raws.after<"u")return r=n.raws.after,r.includes(` `)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r}rawBeforeComment(e,r){let n;return e.walkComments(i=>{if(typeof i.raws.before<"u")return n=i.raws.before,n.includes(` `)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(r,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,r){let n;return e.walkDecls(i=>{if(typeof i.raws.before<"u")return n=i.raws.before,n.includes(` `)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(r,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(e){let r;return e.walk(n=>{if(n.type!=="decl"&&(r=n.raws.between,typeof r<"u"))return!1}),r}rawBeforeRule(e){let r;return e.walk(n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&typeof n.raws.before<"u")return r=n.raws.before,r.includes(` `)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r}rawColon(e){let r;return e.walkDecls(n=>{if(typeof n.raws.between<"u")return r=n.raws.between.replace(/[^\s:]/g,""),!1}),r}rawEmptyBody(e){let r;return e.walk(n=>{if(n.nodes&&n.nodes.length===0&&(r=n.raws.after,typeof r<"u"))return!1}),r}rawIndent(e){if(e.raws.indent)return e.raws.indent;let r;return e.walk(n=>{let i=n.parent;if(i&&i!==e&&i.parent&&i.parent===e&&typeof n.raws.before<"u"){let o=n.raws.before.split(` -`);return r=o[o.length-1],r=r.replace(/\S/g,""),!1}}),r}rawSemicolon(e){let r;return e.walk(n=>{if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(r=n.raws.semicolon,typeof r<"u"))return!1}),r}rawValue(e,r){let n=e[r],i=e.raws[r];return i&&i.value===n?i.raw:n}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,r){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,r)}};rf.exports=_n;_n.default=_n});var wn=j((KA,nf)=>{"use strict";var Gb=Gs();function Ys(t,e){new Gb(e).stringify(t)}nf.exports=Ys;Ys.default=Ys});var io=j((JA,Qs)=>{"use strict";Qs.exports.isClean=Symbol("isClean");Qs.exports.my=Symbol("my")});var Sn=j((XA,of)=>{"use strict";var Yb=no(),Qb=Gs(),Kb=wn(),{isClean:xn,my:Jb}=io();function Ks(t,e){let r=new t.constructor;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n)||n==="proxyCache")continue;let i=t[n],o=typeof i;n==="parent"&&o==="object"?e&&(r[n]=e):n==="source"?r[n]=i:Array.isArray(i)?r[n]=i.map(s=>Ks(s,r)):(o==="object"&&i!==null&&(i=Ks(i)),r[n]=i)}return r}var kn=class{constructor(e={}){this.raws={},this[xn]=!1,this[Jb]=!0;for(let r in e)if(r==="nodes"){this.nodes=[];for(let n of e[r])typeof n.clone=="function"?this.append(n.clone()):this.append(n)}else this[r]=e[r]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let r=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${r.input.from}:${r.start.line}:${r.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let r in e)this[r]=e[r];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let r=Ks(this);for(let n in e)r[n]=e[n];return r}cloneAfter(e={}){let r=this.clone(e);return this.parent.insertAfter(this,r),r}cloneBefore(e={}){let r=this.clone(e);return this.parent.insertBefore(this,r),r}error(e,r={}){if(this.source){let{end:n,start:i}=this.rangeBy(r);return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},r)}return new Yb(e)}getProxyProcessor(){return{get(e,r){return r==="proxyOf"?e:r==="root"?()=>e.root().toProxy():e[r]},set(e,r,n){return e[r]===n||(e[r]=n,(r==="prop"||r==="value"||r==="name"||r==="params"||r==="important"||r==="text")&&e.markDirty()),!0}}}markClean(){this[xn]=!0}markDirty(){if(this[xn]){this[xn]=!1;let e=this;for(;e=e.parent;)e[xn]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,r){let n=this.source.start;if(e.index)n=this.positionInside(e.index,r);else if(e.word){r=this.toString();let i=r.indexOf(e.word);i!==-1&&(n=this.positionInside(i,r))}return n}positionInside(e,r){let n=r||this.toString(),i=this.source.start.column,o=this.source.start.line;for(let s=0;stypeof a=="object"&&a.toJSON?a.toJSON(null,r):a);else if(typeof l=="object"&&l.toJSON)n[s]=l.toJSON(null,r);else if(s==="source"){let a=r.get(l.input);a==null&&(a=o,r.set(l.input,o),o++),n[s]={end:l.end,inputId:a,start:l.start}}else n[s]=l}return i&&(n.inputs=[...r.keys()].map(s=>s.toJSON())),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Kb){e.stringify&&(e=e.stringify);let r="";return e(this,n=>{r+=n}),r}warn(e,r,n){let i={node:this};for(let o in n)i[o]=n[o];return e.warn(r,i)}get proxyOf(){return this}};of.exports=kn;kn.default=kn});var On=j((ZA,sf)=>{"use strict";var Xb=Sn(),En=class extends Xb{constructor(e){super(e),this.type="comment"}};sf.exports=En;En.default=En});var An=j((e5,af)=>{"use strict";var Zb=Sn(),Cn=class extends Zb{constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};af.exports=Cn;Cn.default=Cn});var or=j((t5,gf)=>{"use strict";var lf=On(),uf=An(),ev=Sn(),{isClean:cf,my:ff}=io(),Js,df,pf,Xs;function hf(t){return t.map(e=>(e.nodes&&(e.nodes=hf(e.nodes)),delete e.source,e))}function mf(t){if(t[cf]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)mf(e)}var Et=class t extends ev{append(...e){for(let r of e){let n=this.normalize(r,this.last);for(let i of n)this.proxyOf.nodes.push(i)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let r of this.nodes)r.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let r=this.getIterator(),n,i;for(;this.indexes[r]e[r](...n.map(i=>typeof i=="function"?(o,s)=>i(o.toProxy(),s):i)):r==="every"||r==="some"?n=>e[r]((i,...o)=>n(i.toProxy(),...o)):r==="root"?()=>e.root().toProxy():r==="nodes"?e.nodes.map(n=>n.toProxy()):r==="first"||r==="last"?e[r].toProxy():e[r]:e[r]},set(e,r,n){return e[r]===n||(e[r]=n,(r==="name"||r==="params"||r==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,r){let n=this.index(e),i=this.normalize(r,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let s of i)this.proxyOf.nodes.splice(n+1,0,s);let o;for(let s in this.indexes)o=this.indexes[s],n"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new uf(e)]}else if(e.selector||e.selectors)e=[new Xs(e)];else if(e.name)e=[new Js(e)];else if(e.text)e=[new lf(e)];else throw new Error("Unknown node type in node creation");return e.map(i=>((!i[ff]||!i.markClean)&&t.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[cf]&&mf(i),typeof i.raws.before>"u"&&r&&typeof r.raws.before<"u"&&(i.raws.before=r.raws.before.replace(/\S/g,"")),i.parent=this.proxyOf,i))}prepend(...e){e=e.reverse();for(let r of e){let n=this.normalize(r,this.first,"prepend").reverse();for(let i of n)this.proxyOf.nodes.unshift(i);for(let i in this.indexes)this.indexes[i]=this.indexes[i]+n.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let r;for(let n in this.indexes)r=this.indexes[n],r>=e&&(this.indexes[n]=r-1);return this.markDirty(),this}replaceValues(e,r,n){return n||(n=r,r={}),this.walkDecls(i=>{r.props&&!r.props.includes(i.prop)||r.fast&&!i.value.includes(r.fast)||(i.value=i.value.replace(e,n))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((r,n)=>{let i;try{i=e(r,n)}catch(o){throw r.addToError(o)}return i!==!1&&r.walk&&(i=r.walk(e)),i})}walkAtRules(e,r){return r?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="atrule"&&e.test(n.name))return r(n,i)}):this.walk((n,i)=>{if(n.type==="atrule"&&n.name===e)return r(n,i)}):(r=e,this.walk((n,i)=>{if(n.type==="atrule")return r(n,i)}))}walkComments(e){return this.walk((r,n)=>{if(r.type==="comment")return e(r,n)})}walkDecls(e,r){return r?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="decl"&&e.test(n.prop))return r(n,i)}):this.walk((n,i)=>{if(n.type==="decl"&&n.prop===e)return r(n,i)}):(r=e,this.walk((n,i)=>{if(n.type==="decl")return r(n,i)}))}walkRules(e,r){return r?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="rule"&&e.test(n.selector))return r(n,i)}):this.walk((n,i)=>{if(n.type==="rule"&&n.selector===e)return r(n,i)}):(r=e,this.walk((n,i)=>{if(n.type==="rule")return r(n,i)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};Et.registerParse=t=>{df=t};Et.registerRule=t=>{Xs=t};Et.registerAtRule=t=>{Js=t};Et.registerRoot=t=>{pf=t};gf.exports=Et;Et.default=Et;Et.rebuild=t=>{t.type==="atrule"?Object.setPrototypeOf(t,Js.prototype):t.type==="rule"?Object.setPrototypeOf(t,Xs.prototype):t.type==="decl"?Object.setPrototypeOf(t,uf.prototype):t.type==="comment"?Object.setPrototypeOf(t,lf.prototype):t.type==="root"&&Object.setPrototypeOf(t,pf.prototype),t[ff]=!0,t.nodes&&t.nodes.forEach(e=>{Et.rebuild(e)})}});var oo=j((r5,vf)=>{"use strict";var bf=or(),Fr=class extends bf{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};vf.exports=Fr;Fr.default=Fr;bf.registerAtRule(Fr)});var so=j((n5,wf)=>{"use strict";var tv=or(),yf,_f,vr=class extends tv{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new yf(new _f,this,e).stringify()}};vr.registerLazyResult=t=>{yf=t};vr.registerProcessor=t=>{_f=t};wf.exports=vr;vr.default=vr});var kf=j((i5,xf)=>{var rv="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",nv=(t,e=21)=>(r=e)=>{let n="",i=r;for(;i--;)n+=t[Math.random()*t.length|0];return n},iv=(t=21)=>{let e="",r=t;for(;r--;)e+=rv[Math.random()*64|0];return e};xf.exports={nanoid:iv,customAlphabet:nv}});var ao=j(()=>{});var lo=j(()=>{});var Zs=j(()=>{});var Sf=j(()=>{});var ta=j((p5,Cf)=>{"use strict";var{existsSync:ov,readFileSync:sv}=Sf(),{dirname:ea,join:av}=ao(),{SourceMapConsumer:Ef,SourceMapGenerator:Of}=lo();function lv(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}var Tn=class{constructor(e,r){if(r.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=r.map?r.map.prev:void 0,i=this.loadMap(r.from,n);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=ea(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new Ef(this.text)),this.consumerCache}decodeInline(e){let r=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,i=/^data:application\/json;charset=utf-?8,/,o=/^data:application\/json,/,s=e.match(i)||e.match(o);if(s)return decodeURIComponent(e.substr(s[0].length));let l=e.match(r)||e.match(n);if(l)return lv(e.substr(l[0].length));let a=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+a)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let r=e.match(/\/\*\s*# sourceMappingURL=/g);if(!r)return;let n=e.lastIndexOf(r.pop()),i=e.indexOf("*/",n);n>-1&&i>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,i)))}loadFile(e){if(this.root=ea(e),ov(e))return this.mapFile=e,sv(e,"utf-8").toString().trim()}loadMap(e,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){let n=r(e);if(n){let i=this.loadFile(n);if(!i)throw new Error("Unable to load previous source map: "+n.toString());return i}}else{if(r instanceof Ef)return Of.fromSourceMap(r).toString();if(r instanceof Of)return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let n=this.annotation;return e&&(n=av(ea(e),n)),this.loadFile(n)}}}startWith(e,r){return e?e.substr(0,r.length)===r:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};Cf.exports=Tn;Tn.default=Tn});var In=j((h5,Pf)=>{"use strict";var{nanoid:uv}=kf(),{isAbsolute:ia,resolve:oa}=ao(),{SourceMapConsumer:cv,SourceMapGenerator:fv}=lo(),{fileURLToPath:Af,pathToFileURL:uo}=Zs(),Tf=no(),dv=ta(),ra=Hs(),na=Symbol("fromOffsetCache"),pv=!!(cv&&fv),If=!!(oa&&ia),Lr=class{constructor(e,r={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,r.from&&(!If||/^\w+:\/\//.test(r.from)||ia(r.from)?this.file=r.from:this.file=oa(r.from)),If&&pv){let n=new dv(this.css,r);if(n.text){this.map=n;let i=n.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id=""),this.map&&(this.map.file=this.from)}error(e,r,n,i={}){let o,s,l;if(r&&typeof r=="object"){let u=r,c=n;if(typeof u.offset=="number"){let p=this.fromOffset(u.offset);r=p.line,n=p.col}else r=u.line,n=u.column;if(typeof c.offset=="number"){let p=this.fromOffset(c.offset);s=p.line,o=p.col}else s=c.line,o=c.column}else if(!n){let u=this.fromOffset(r);r=u.line,n=u.col}let a=this.origin(r,n,s,o);return a?l=new Tf(e,a.endLine===void 0?a.line:{column:a.column,line:a.line},a.endLine===void 0?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,i.plugin):l=new Tf(e,s===void 0?r:{column:n,line:r},s===void 0?n:{column:o,line:s},this.css,this.file,i.plugin),l.input={column:n,endColumn:o,endLine:s,line:r,source:this.css},this.file&&(uo&&(l.input.url=uo(this.file).toString()),l.input.file=this.file),l}fromOffset(e){let r,n;if(this[na])n=this[na];else{let o=this.css.split(` -`);n=new Array(o.length);let s=0;for(let l=0,a=o.length;l=r)i=n.length-1;else{let o=n.length-2,s;for(;i>1),e=n[s+1])i=s+1;else{i=s;break}}return{col:e-n[i]+1,line:i+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:oa(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,r,n,i){if(!this.map)return!1;let o=this.map.consumer(),s=o.originalPositionFor({column:r,line:e});if(!s.source)return!1;let l;typeof n=="number"&&(l=o.originalPositionFor({column:i,line:n}));let a;ia(s.source)?a=uo(s.source):a=new URL(s.source,this.map.consumer().sourceRoot||uo(this.map.mapFile));let u={column:s.column,endColumn:l&&l.column,endLine:l&&l.line,line:s.line,url:a.toString()};if(a.protocol==="file:")if(Af)u.file=Af(a);else throw new Error("file: protocol is not available in this PostCSS build");let c=o.sourceContentFor(s.source);return c&&(u.source=c),u}toJSON(){let e={};for(let r of["hasBOM","css","file","id"])this[r]!=null&&(e[r]=this[r]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};Pf.exports=Lr;Lr.default=Lr;ra&&ra.registerInput&&ra.registerInput(Lr)});var Nr=j((m5,Ff)=>{"use strict";var $f=or(),Df,Mf,sr=class extends $f{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,r,n){let i=super.normalize(e);if(r){if(n==="prepend")this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(let o of i)o.raws.before=r.raws.before}return i}removeChild(e,r){let n=this.index(e);return!r&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new Df(new Mf,this,e).stringify()}};sr.registerLazyResult=t=>{Df=t};sr.registerProcessor=t=>{Mf=t};Ff.exports=sr;sr.default=sr;$f.registerRoot(sr)});var sa=j((g5,Lf)=>{"use strict";var Pn={comma(t){return Pn.split(t,[","],!0)},space(t){let e=[" ",` -`," "];return Pn.split(t,e)},split(t,e,r){let n=[],i="",o=!1,s=0,l=!1,a="",u=!1;for(let c of t)u?u=!1:c==="\\"?u=!0:l?c===a&&(l=!1):c==='"'||c==="'"?(l=!0,a=c):c==="("?s+=1:c===")"?s>0&&(s-=1):s===0&&e.includes(c)&&(o=!0),o?(i!==""&&n.push(i.trim()),i="",o=!1):i+=c;return(r||i!=="")&&n.push(i.trim()),n}};Lf.exports=Pn;Pn.default=Pn});var co=j((b5,Rf)=>{"use strict";var Nf=or(),hv=sa(),Rr=class extends Nf{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return hv.comma(this.selector)}set selectors(e){let r=this.selector?this.selector.match(/,\s*/):null,n=r?r[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}};Rf.exports=Rr;Rr.default=Rr;Nf.registerRule(Rr)});var qf=j((v5,jf)=>{"use strict";var mv=oo(),gv=On(),bv=An(),vv=In(),yv=ta(),_v=Nr(),wv=co();function $n(t,e){if(Array.isArray(t))return t.map(i=>$n(i));let{inputs:r,...n}=t;if(r){e=[];for(let i of r){let o={...i,__proto__:vv.prototype};o.map&&(o.map={...o.map,__proto__:yv.prototype}),e.push(o)}}if(n.nodes&&(n.nodes=t.nodes.map(i=>$n(i,e))),n.source){let{inputId:i,...o}=n.source;n.source=o,i!=null&&(n.source.input=e[i])}if(n.type==="root")return new _v(n);if(n.type==="decl")return new bv(n);if(n.type==="rule")return new wv(n);if(n.type==="comment")return new gv(n);if(n.type==="atrule")return new mv(n);throw new Error("Unknown node type: "+t.type)}jf.exports=$n;$n.default=$n});var la=j((y5,Hf)=>{"use strict";var{dirname:fo,relative:Bf,resolve:zf,sep:Wf}=ao(),{SourceMapConsumer:Vf,SourceMapGenerator:po}=lo(),{pathToFileURL:Uf}=Zs(),xv=In(),kv=!!(Vf&&po),Sv=!!(fo&&zf&&Bf&&Wf),aa=class{constructor(e,r,n,i){this.stringify=e,this.mapOpts=n.map||{},this.root=r,this.opts=n,this.css=i,this.originalCSS=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let r=` +`);return r=o[o.length-1],r=r.replace(/\S/g,""),!1}}),r}rawSemicolon(e){let r;return e.walk(n=>{if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(r=n.raws.semicolon,typeof r<"u"))return!1}),r}rawValue(e,r){let n=e[r],i=e.raws[r];return i&&i.value===n?i.raw:n}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,r){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,r)}};rf.exports=_n;_n.default=_n});var wn=j((ZA,nf)=>{"use strict";var Yb=Gs();function Ys(t,e){new Yb(e).stringify(t)}nf.exports=Ys;Ys.default=Ys});var io=j((e5,Qs)=>{"use strict";Qs.exports.isClean=Symbol("isClean");Qs.exports.my=Symbol("my")});var Sn=j((t5,of)=>{"use strict";var Qb=no(),Kb=Gs(),Jb=wn(),{isClean:xn,my:Xb}=io();function Ks(t,e){let r=new t.constructor;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n)||n==="proxyCache")continue;let i=t[n],o=typeof i;n==="parent"&&o==="object"?e&&(r[n]=e):n==="source"?r[n]=i:Array.isArray(i)?r[n]=i.map(s=>Ks(s,r)):(o==="object"&&i!==null&&(i=Ks(i)),r[n]=i)}return r}var kn=class{constructor(e={}){this.raws={},this[xn]=!1,this[Xb]=!0;for(let r in e)if(r==="nodes"){this.nodes=[];for(let n of e[r])typeof n.clone=="function"?this.append(n.clone()):this.append(n)}else this[r]=e[r]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let r=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${r.input.from}:${r.start.line}:${r.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let r in e)this[r]=e[r];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let r=Ks(this);for(let n in e)r[n]=e[n];return r}cloneAfter(e={}){let r=this.clone(e);return this.parent.insertAfter(this,r),r}cloneBefore(e={}){let r=this.clone(e);return this.parent.insertBefore(this,r),r}error(e,r={}){if(this.source){let{end:n,start:i}=this.rangeBy(r);return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},r)}return new Qb(e)}getProxyProcessor(){return{get(e,r){return r==="proxyOf"?e:r==="root"?()=>e.root().toProxy():e[r]},set(e,r,n){return e[r]===n||(e[r]=n,(r==="prop"||r==="value"||r==="name"||r==="params"||r==="important"||r==="text")&&e.markDirty()),!0}}}markClean(){this[xn]=!0}markDirty(){if(this[xn]){this[xn]=!1;let e=this;for(;e=e.parent;)e[xn]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,r){let n=this.source.start;if(e.index)n=this.positionInside(e.index,r);else if(e.word){r=this.toString();let i=r.indexOf(e.word);i!==-1&&(n=this.positionInside(i,r))}return n}positionInside(e,r){let n=r||this.toString(),i=this.source.start.column,o=this.source.start.line;for(let s=0;stypeof a=="object"&&a.toJSON?a.toJSON(null,r):a);else if(typeof l=="object"&&l.toJSON)n[s]=l.toJSON(null,r);else if(s==="source"){let a=r.get(l.input);a==null&&(a=o,r.set(l.input,o),o++),n[s]={end:l.end,inputId:a,start:l.start}}else n[s]=l}return i&&(n.inputs=[...r.keys()].map(s=>s.toJSON())),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Jb){e.stringify&&(e=e.stringify);let r="";return e(this,n=>{r+=n}),r}warn(e,r,n){let i={node:this};for(let o in n)i[o]=n[o];return e.warn(r,i)}get proxyOf(){return this}};of.exports=kn;kn.default=kn});var On=j((r5,sf)=>{"use strict";var Zb=Sn(),En=class extends Zb{constructor(e){super(e),this.type="comment"}};sf.exports=En;En.default=En});var An=j((n5,af)=>{"use strict";var ev=Sn(),Cn=class extends ev{constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};af.exports=Cn;Cn.default=Cn});var or=j((i5,gf)=>{"use strict";var lf=On(),uf=An(),tv=Sn(),{isClean:cf,my:ff}=io(),Js,df,pf,Xs;function hf(t){return t.map(e=>(e.nodes&&(e.nodes=hf(e.nodes)),delete e.source,e))}function mf(t){if(t[cf]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)mf(e)}var Tt=class t extends tv{append(...e){for(let r of e){let n=this.normalize(r,this.last);for(let i of n)this.proxyOf.nodes.push(i)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let r of this.nodes)r.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let r=this.getIterator(),n,i;for(;this.indexes[r]e[r](...n.map(i=>typeof i=="function"?(o,s)=>i(o.toProxy(),s):i)):r==="every"||r==="some"?n=>e[r]((i,...o)=>n(i.toProxy(),...o)):r==="root"?()=>e.root().toProxy():r==="nodes"?e.nodes.map(n=>n.toProxy()):r==="first"||r==="last"?e[r].toProxy():e[r]:e[r]},set(e,r,n){return e[r]===n||(e[r]=n,(r==="name"||r==="params"||r==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,r){let n=this.index(e),i=this.normalize(r,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let s of i)this.proxyOf.nodes.splice(n+1,0,s);let o;for(let s in this.indexes)o=this.indexes[s],n"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new uf(e)]}else if(e.selector||e.selectors)e=[new Xs(e)];else if(e.name)e=[new Js(e)];else if(e.text)e=[new lf(e)];else throw new Error("Unknown node type in node creation");return e.map(i=>((!i[ff]||!i.markClean)&&t.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[cf]&&mf(i),typeof i.raws.before>"u"&&r&&typeof r.raws.before<"u"&&(i.raws.before=r.raws.before.replace(/\S/g,"")),i.parent=this.proxyOf,i))}prepend(...e){e=e.reverse();for(let r of e){let n=this.normalize(r,this.first,"prepend").reverse();for(let i of n)this.proxyOf.nodes.unshift(i);for(let i in this.indexes)this.indexes[i]=this.indexes[i]+n.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let r;for(let n in this.indexes)r=this.indexes[n],r>=e&&(this.indexes[n]=r-1);return this.markDirty(),this}replaceValues(e,r,n){return n||(n=r,r={}),this.walkDecls(i=>{r.props&&!r.props.includes(i.prop)||r.fast&&!i.value.includes(r.fast)||(i.value=i.value.replace(e,n))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((r,n)=>{let i;try{i=e(r,n)}catch(o){throw r.addToError(o)}return i!==!1&&r.walk&&(i=r.walk(e)),i})}walkAtRules(e,r){return r?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="atrule"&&e.test(n.name))return r(n,i)}):this.walk((n,i)=>{if(n.type==="atrule"&&n.name===e)return r(n,i)}):(r=e,this.walk((n,i)=>{if(n.type==="atrule")return r(n,i)}))}walkComments(e){return this.walk((r,n)=>{if(r.type==="comment")return e(r,n)})}walkDecls(e,r){return r?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="decl"&&e.test(n.prop))return r(n,i)}):this.walk((n,i)=>{if(n.type==="decl"&&n.prop===e)return r(n,i)}):(r=e,this.walk((n,i)=>{if(n.type==="decl")return r(n,i)}))}walkRules(e,r){return r?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="rule"&&e.test(n.selector))return r(n,i)}):this.walk((n,i)=>{if(n.type==="rule"&&n.selector===e)return r(n,i)}):(r=e,this.walk((n,i)=>{if(n.type==="rule")return r(n,i)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};Tt.registerParse=t=>{df=t};Tt.registerRule=t=>{Xs=t};Tt.registerAtRule=t=>{Js=t};Tt.registerRoot=t=>{pf=t};gf.exports=Tt;Tt.default=Tt;Tt.rebuild=t=>{t.type==="atrule"?Object.setPrototypeOf(t,Js.prototype):t.type==="rule"?Object.setPrototypeOf(t,Xs.prototype):t.type==="decl"?Object.setPrototypeOf(t,uf.prototype):t.type==="comment"?Object.setPrototypeOf(t,lf.prototype):t.type==="root"&&Object.setPrototypeOf(t,pf.prototype),t[ff]=!0,t.nodes&&t.nodes.forEach(e=>{Tt.rebuild(e)})}});var oo=j((o5,vf)=>{"use strict";var bf=or(),Lr=class extends bf{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};vf.exports=Lr;Lr.default=Lr;bf.registerAtRule(Lr)});var so=j((s5,wf)=>{"use strict";var rv=or(),yf,_f,yr=class extends rv{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new yf(new _f,this,e).stringify()}};yr.registerLazyResult=t=>{yf=t};yr.registerProcessor=t=>{_f=t};wf.exports=yr;yr.default=yr});var kf=j((a5,xf)=>{var nv="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",iv=(t,e=21)=>(r=e)=>{let n="",i=r;for(;i--;)n+=t[Math.random()*t.length|0];return n},ov=(t=21)=>{let e="",r=t;for(;r--;)e+=nv[Math.random()*64|0];return e};xf.exports={nanoid:ov,customAlphabet:iv}});var ao=j(()=>{});var lo=j(()=>{});var Zs=j(()=>{});var Sf=j(()=>{});var ta=j((g5,Cf)=>{"use strict";var{existsSync:sv,readFileSync:av}=Sf(),{dirname:ea,join:lv}=ao(),{SourceMapConsumer:Ef,SourceMapGenerator:Of}=lo();function uv(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}var Tn=class{constructor(e,r){if(r.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=r.map?r.map.prev:void 0,i=this.loadMap(r.from,n);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=ea(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new Ef(this.text)),this.consumerCache}decodeInline(e){let r=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,i=/^data:application\/json;charset=utf-?8,/,o=/^data:application\/json,/,s=e.match(i)||e.match(o);if(s)return decodeURIComponent(e.substr(s[0].length));let l=e.match(r)||e.match(n);if(l)return uv(e.substr(l[0].length));let a=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+a)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let r=e.match(/\/\*\s*# sourceMappingURL=/g);if(!r)return;let n=e.lastIndexOf(r.pop()),i=e.indexOf("*/",n);n>-1&&i>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,i)))}loadFile(e){if(this.root=ea(e),sv(e))return this.mapFile=e,av(e,"utf-8").toString().trim()}loadMap(e,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){let n=r(e);if(n){let i=this.loadFile(n);if(!i)throw new Error("Unable to load previous source map: "+n.toString());return i}}else{if(r instanceof Ef)return Of.fromSourceMap(r).toString();if(r instanceof Of)return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let n=this.annotation;return e&&(n=lv(ea(e),n)),this.loadFile(n)}}}startWith(e,r){return e?e.substr(0,r.length)===r:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};Cf.exports=Tn;Tn.default=Tn});var In=j((b5,Pf)=>{"use strict";var{nanoid:cv}=kf(),{isAbsolute:ia,resolve:oa}=ao(),{SourceMapConsumer:fv,SourceMapGenerator:dv}=lo(),{fileURLToPath:Af,pathToFileURL:uo}=Zs(),Tf=no(),pv=ta(),ra=Hs(),na=Symbol("fromOffsetCache"),hv=!!(fv&&dv),If=!!(oa&&ia),Nr=class{constructor(e,r={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,r.from&&(!If||/^\w+:\/\//.test(r.from)||ia(r.from)?this.file=r.from:this.file=oa(r.from)),If&&hv){let n=new pv(this.css,r);if(n.text){this.map=n;let i=n.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id=""),this.map&&(this.map.file=this.from)}error(e,r,n,i={}){let o,s,l;if(r&&typeof r=="object"){let u=r,c=n;if(typeof u.offset=="number"){let p=this.fromOffset(u.offset);r=p.line,n=p.col}else r=u.line,n=u.column;if(typeof c.offset=="number"){let p=this.fromOffset(c.offset);s=p.line,o=p.col}else s=c.line,o=c.column}else if(!n){let u=this.fromOffset(r);r=u.line,n=u.col}let a=this.origin(r,n,s,o);return a?l=new Tf(e,a.endLine===void 0?a.line:{column:a.column,line:a.line},a.endLine===void 0?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,i.plugin):l=new Tf(e,s===void 0?r:{column:n,line:r},s===void 0?n:{column:o,line:s},this.css,this.file,i.plugin),l.input={column:n,endColumn:o,endLine:s,line:r,source:this.css},this.file&&(uo&&(l.input.url=uo(this.file).toString()),l.input.file=this.file),l}fromOffset(e){let r,n;if(this[na])n=this[na];else{let o=this.css.split(` +`);n=new Array(o.length);let s=0;for(let l=0,a=o.length;l=r)i=n.length-1;else{let o=n.length-2,s;for(;i>1),e=n[s+1])i=s+1;else{i=s;break}}return{col:e-n[i]+1,line:i+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:oa(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,r,n,i){if(!this.map)return!1;let o=this.map.consumer(),s=o.originalPositionFor({column:r,line:e});if(!s.source)return!1;let l;typeof n=="number"&&(l=o.originalPositionFor({column:i,line:n}));let a;ia(s.source)?a=uo(s.source):a=new URL(s.source,this.map.consumer().sourceRoot||uo(this.map.mapFile));let u={column:s.column,endColumn:l&&l.column,endLine:l&&l.line,line:s.line,url:a.toString()};if(a.protocol==="file:")if(Af)u.file=Af(a);else throw new Error("file: protocol is not available in this PostCSS build");let c=o.sourceContentFor(s.source);return c&&(u.source=c),u}toJSON(){let e={};for(let r of["hasBOM","css","file","id"])this[r]!=null&&(e[r]=this[r]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};Pf.exports=Nr;Nr.default=Nr;ra&&ra.registerInput&&ra.registerInput(Nr)});var Rr=j((v5,Ff)=>{"use strict";var $f=or(),Df,Mf,sr=class extends $f{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,r,n){let i=super.normalize(e);if(r){if(n==="prepend")this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(let o of i)o.raws.before=r.raws.before}return i}removeChild(e,r){let n=this.index(e);return!r&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new Df(new Mf,this,e).stringify()}};sr.registerLazyResult=t=>{Df=t};sr.registerProcessor=t=>{Mf=t};Ff.exports=sr;sr.default=sr;$f.registerRoot(sr)});var sa=j((y5,Lf)=>{"use strict";var Pn={comma(t){return Pn.split(t,[","],!0)},space(t){let e=[" ",` +`," "];return Pn.split(t,e)},split(t,e,r){let n=[],i="",o=!1,s=0,l=!1,a="",u=!1;for(let c of t)u?u=!1:c==="\\"?u=!0:l?c===a&&(l=!1):c==='"'||c==="'"?(l=!0,a=c):c==="("?s+=1:c===")"?s>0&&(s-=1):s===0&&e.includes(c)&&(o=!0),o?(i!==""&&n.push(i.trim()),i="",o=!1):i+=c;return(r||i!=="")&&n.push(i.trim()),n}};Lf.exports=Pn;Pn.default=Pn});var co=j((_5,Rf)=>{"use strict";var Nf=or(),mv=sa(),jr=class extends Nf{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return mv.comma(this.selector)}set selectors(e){let r=this.selector?this.selector.match(/,\s*/):null,n=r?r[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}};Rf.exports=jr;jr.default=jr;Nf.registerRule(jr)});var qf=j((w5,jf)=>{"use strict";var gv=oo(),bv=On(),vv=An(),yv=In(),_v=ta(),wv=Rr(),xv=co();function $n(t,e){if(Array.isArray(t))return t.map(i=>$n(i));let{inputs:r,...n}=t;if(r){e=[];for(let i of r){let o={...i,__proto__:yv.prototype};o.map&&(o.map={...o.map,__proto__:_v.prototype}),e.push(o)}}if(n.nodes&&(n.nodes=t.nodes.map(i=>$n(i,e))),n.source){let{inputId:i,...o}=n.source;n.source=o,i!=null&&(n.source.input=e[i])}if(n.type==="root")return new wv(n);if(n.type==="decl")return new vv(n);if(n.type==="rule")return new xv(n);if(n.type==="comment")return new bv(n);if(n.type==="atrule")return new gv(n);throw new Error("Unknown node type: "+t.type)}jf.exports=$n;$n.default=$n});var la=j((x5,Hf)=>{"use strict";var{dirname:fo,relative:Bf,resolve:zf,sep:Wf}=ao(),{SourceMapConsumer:Vf,SourceMapGenerator:po}=lo(),{pathToFileURL:Uf}=Zs(),kv=In(),Sv=!!(Vf&&po),Ev=!!(fo&&zf&&Bf&&Wf),aa=class{constructor(e,r,n,i){this.stringify=e,this.mapOpts=n.map||{},this.root=r,this.opts=n,this.css=i,this.originalCSS=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let r=` `;this.css.includes(`\r `)&&(r=`\r -`),this.css+=r+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let r=this.toUrl(this.path(e.file)),n=e.root||fo(e.file),i;this.mapOpts.sourcesContent===!1?(i=new Vf(e.text),i.sourcesContent&&(i.sourcesContent=null)):i=e.consumer(),this.map.applySourceMap(i,r,this.toUrl(this.path(n)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let r=this.root.nodes.length-1;r>=0;r--)e=this.root.nodes[r],e.type==="comment"&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(r)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),Sv&&kv&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,r=>{e+=r}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=po.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new po({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):""});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new po({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,r=1,n="",i={generated:{column:0,line:0},original:{column:0,line:0},source:""},o,s;this.stringify(this.root,(l,a,u)=>{if(this.css+=l,a&&u!=="end"&&(i.generated.line=e,i.generated.column=r-1,a.source&&a.source.start?(i.source=this.sourcePath(a),i.original.line=a.source.start.line,i.original.column=a.source.start.column-1,this.map.addMapping(i)):(i.source=n,i.original.line=1,i.original.column=0,this.map.addMapping(i))),s=l.match(/\n/g),s?(e+=s.length,o=l.lastIndexOf(` -`),r=l.length-o):r+=l.length,a&&u!=="start"){let c=a.parent||{raws:{}};(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==c.last||c.raws.semicolon)&&(a.source&&a.source.end?(i.source=this.sourcePath(a),i.original.line=a.source.end.line,i.original.column=a.source.end.column-1,i.generated.line=e,i.generated.column=r-2,this.map.addMapping(i)):(i.source=n,i.original.line=1,i.original.column=0,i.generated.line=e,i.generated.column=r-1,this.map.addMapping(i)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(r=>r.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let r=this.memoizedPaths.get(e);if(r)return r;let n=this.opts.to?fo(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=fo(zf(n,this.mapOpts.annotation)));let i=Bf(n,e);return this.memoizedPaths.set(e,i),i}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let r=e.source.input.map;this.previousMaps.includes(r)||this.previousMaps.push(r)}});else{let e=new xv(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(r=>{if(r.source){let n=r.source.input.from;if(n&&!e[n]){e[n]=!0;let i=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){let r=this.opts.from?this.toUrl(this.path(this.opts.from)):"";this.map.setSourceContent(r,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let r=this.memoizedFileURLs.get(e);if(r)return r;if(Uf){let n=Uf(e).toString();return this.memoizedFileURLs.set(e,n),n}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let r=this.memoizedURLs.get(e);if(r)return r;Wf==="\\"&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}};Hf.exports=aa});var Qf=j((_5,Yf)=>{"use strict";var ho=/[\t\n\f\r "#'()/;[\\\]{}]/g,mo=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Ev=/.[\r\n"'(/\\]/,Gf=/[\da-f]/i;Yf.exports=function(e,r={}){let n=e.css.valueOf(),i=r.ignoreErrors,o,s,l,a,u,c,p,d,f,g,w=n.length,h=0,m=[],b=[];function v(){return h}function _(S){throw e.error("Unclosed "+S,h)}function y(){return b.length===0&&h>=w}function C(S){if(b.length)return b.pop();if(h>=w)return;let D=S?S.ignoreUnclosed:!1;switch(o=n.charCodeAt(h),o){case 10:case 32:case 9:case 13:case 12:{a=h;do a+=1,o=n.charCodeAt(a);while(o===32||o===10||o===9||o===13||o===12);c=["space",n.slice(h,a)],h=a-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let O=String.fromCharCode(o);c=[O,O,h];break}case 40:{if(g=m.length?m.pop()[1]:"",f=n.charCodeAt(h+1),g==="url"&&f!==39&&f!==34&&f!==32&&f!==10&&f!==9&&f!==12&&f!==13){a=h;do{if(p=!1,a=n.indexOf(")",a+1),a===-1)if(i||D){a=h;break}else _("bracket");for(d=a;n.charCodeAt(d-1)===92;)d-=1,p=!p}while(p);c=["brackets",n.slice(h,a+1),h,a],h=a}else a=n.indexOf(")",h+1),s=n.slice(h,a+1),a===-1||Ev.test(s)?c=["(","(",h]:(c=["brackets",s,h,a],h=a);break}case 39:case 34:{u=o===39?"'":'"',a=h;do{if(p=!1,a=n.indexOf(u,a+1),a===-1)if(i||D){a=h+1;break}else _("string");for(d=a;n.charCodeAt(d-1)===92;)d-=1,p=!p}while(p);c=["string",n.slice(h,a+1),h,a],h=a;break}case 64:{ho.lastIndex=h+1,ho.test(n),ho.lastIndex===0?a=n.length-1:a=ho.lastIndex-2,c=["at-word",n.slice(h,a+1),h,a],h=a;break}case 92:{for(a=h,l=!0;n.charCodeAt(a+1)===92;)a+=1,l=!l;if(o=n.charCodeAt(a+1),l&&o!==47&&o!==32&&o!==10&&o!==9&&o!==13&&o!==12&&(a+=1,Gf.test(n.charAt(a)))){for(;Gf.test(n.charAt(a+1));)a+=1;n.charCodeAt(a+1)===32&&(a+=1)}c=["word",n.slice(h,a+1),h,a],h=a;break}default:{o===47&&n.charCodeAt(h+1)===42?(a=n.indexOf("*/",h+2)+1,a===0&&(i||D?a=n.length:_("comment")),c=["comment",n.slice(h,a+1),h,a],h=a):(mo.lastIndex=h+1,mo.test(n),mo.lastIndex===0?a=n.length-1:a=mo.lastIndex-2,c=["word",n.slice(h,a+1),h,a],m.push(c),h=a);break}}return h++,c}function E(S){b.push(S)}return{back:E,endOfFile:y,nextToken:C,position:v}}});var Zf=j((w5,Xf)=>{"use strict";var Ov=oo(),Cv=On(),Av=An(),Tv=Nr(),Kf=co(),Iv=Qf(),Jf={empty:!0,space:!0};function Pv(t){for(let e=t.length-1;e>=0;e--){let r=t[e],n=r[3]||r[2];if(n)return n}}var ua=class{constructor(e){this.input=e,this.root=new Tv,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let r=new Ov;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);let n,i,o,s=!1,l=!1,a=[],u=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?u.push(n==="("?")":"]"):n==="{"&&u.length>0?u.push("}"):n===u[u.length-1]&&u.pop(),u.length===0)if(n===";"){r.source.end=this.getPosition(e[2]),r.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){l=!0;break}else if(n==="}"){if(a.length>0){for(o=a.length-1,i=a[o];i&&i[0]==="space";)i=a[--o];i&&(r.source.end=this.getPosition(i[3]||i[2]),r.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){s=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(r.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(r,"params",a),s&&(e=a[a.length-1],r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),l&&(r.nodes=[],this.current=r)}checkMissedSemicolon(e){let r=this.colon(e);if(r===!1)return;let n=0,i;for(let o=r-1;o>=0&&(i=e[o],!(i[0]!=="space"&&(n+=1,n===2)));o--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(e){let r=0,n,i,o;for(let[s,l]of e.entries()){if(i=l,o=i[0],o==="("&&(r+=1),o===")"&&(r-=1),r===0&&o===":")if(!n)this.doubleColon(i);else{if(n[0]==="word"&&n[1]==="progid")continue;return s}n=i}return!1}comment(e){let r=new Cv;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++;let n=e[1].slice(2,-2);if(/^\s*$/.test(n))r.text="",r.raws.left=n,r.raws.right="";else{let i=n.match(/^(\s*)([^]*\S)(\s*)$/);r.text=i[2],r.raws.left=i[1],r.raws.right=i[3]}}createTokenizer(){this.tokenizer=Iv(this.input)}decl(e,r){let n=new Av;this.init(n,e[0][2]);let i=e[e.length-1];for(i[0]===";"&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(i[3]||i[2]||Pv(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let u=e[0][0];if(u===":"||u==="space"||u==="comment")break;n.prop+=e.shift()[1]}n.raws.between="";let o;for(;e.length;)if(o=e.shift(),o[0]===":"){n.raws.between+=o[1];break}else o[0]==="word"&&/\w/.test(o[1])&&this.unknownWord([o]),n.raws.between+=o[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let s=[],l;for(;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)s.push(e.shift());this.precheckMissedSemicolon(e);for(let u=e.length-1;u>=0;u--){if(o=e[u],o[1].toLowerCase()==="!important"){n.important=!0;let c=this.stringFrom(e,u);c=this.spacesFromEnd(e)+c,c!==" !important"&&(n.raws.important=c);break}else if(o[1].toLowerCase()==="important"){let c=e.slice(0),p="";for(let d=u;d>0;d--){let f=c[d][0];if(p.trim().startsWith("!")&&f!=="space")break;p=c.pop()[1]+p}p.trim().startsWith("!")&&(n.important=!0,n.raws.important=p,e=c)}if(o[0]!=="space"&&o[0]!=="comment")break}e.some(u=>u[0]!=="space"&&u[0]!=="comment")&&(n.raws.between+=s.map(u=>u[1]).join(""),s=[]),this.raw(n,"value",s.concat(e),r),n.value.includes(":")&&!r&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let r=new Kf;this.init(r,e[2]),r.selector="",r.raws.between="",this.current=r}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),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(e){if(this.spaces+=e[1],this.current.nodes){let r=this.current.nodes[this.current.nodes.length-1];r&&r.type==="rule"&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let r=this.input.fromOffset(e);return{column:r.col,line:r.line,offset:e}}init(e,r){this.current.push(e),e.source={input:this.input,start:this.getPosition(r)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let r=!1,n=null,i=!1,o=null,s=[],l=e[1].startsWith("--"),a=[],u=e;for(;u;){if(n=u[0],a.push(u),n==="("||n==="[")o||(o=u),s.push(n==="("?")":"]");else if(l&&i&&n==="{")o||(o=u),s.push("}");else if(s.length===0)if(n===";")if(i){this.decl(a,l);return}else break;else if(n==="{"){this.rule(a);return}else if(n==="}"){this.tokenizer.back(a.pop()),r=!0;break}else n===":"&&(i=!0);else n===s[s.length-1]&&(s.pop(),s.length===0&&(o=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),s.length>0&&this.unclosedBracket(o),r&&i){if(!l)for(;a.length&&(u=a[a.length-1][0],!(u!=="space"&&u!=="comment"));)this.tokenizer.back(a.pop());this.decl(a,l)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,r,n,i){let o,s,l=n.length,a="",u=!0,c,p;for(let d=0;df+g[1],"");e.raws[r]={raw:d,value:a}}e[r]=a}rule(e){e.pop();let r=new Kf;this.init(r,e[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(r,"selector",e),this.current=r}spacesAndCommentsFromEnd(e){let r,n="";for(;e.length&&(r=e[e.length-1][0],!(r!=="space"&&r!=="comment"));)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let r,n="";for(;e.length&&(r=e[0][0],!(r!=="space"&&r!=="comment"));)n+=e.shift()[1];return n}spacesFromEnd(e){let r,n="";for(;e.length&&(r=e[e.length-1][0],r==="space");)n=e.pop()[1]+n;return n}stringFrom(e,r){let n="";for(let i=r;i{"use strict";var $v=or(),Dv=In(),Mv=Zf();function go(t,e){let r=new Dv(t,e),n=new Mv(r);try{n.parse()}catch(i){throw i}return n.root}ed.exports=go;go.default=go;$v.registerParse(go)});var ca=j((k5,td)=>{"use strict";var Dn=class{constructor(e,r={}){if(this.type="warning",this.text=e,r.node&&r.node.source){let n=r.node.rangeBy(r);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in r)this[n]=r[n]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};td.exports=Dn;Dn.default=Dn});var vo=j((S5,rd)=>{"use strict";var Fv=ca(),Mn=class{constructor(e,r,n){this.processor=e,this.messages=[],this.root=r,this.opts=n,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,r={}){r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);let n=new Fv(e,r);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};rd.exports=Mn;Mn.default=Mn});var fa=j((E5,id)=>{"use strict";var nd={};id.exports=function(e){nd[e]||(nd[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))}});var ha=j((C5,ld)=>{"use strict";var Lv=or(),Nv=so(),Rv=la(),jv=bo(),od=vo(),qv=Nr(),Uv=wn(),{isClean:Dt,my:Bv}=io(),O5=fa(),zv={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Wv={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Vv={Once:!0,postcssPlugin:!0,prepare:!0},jr=0;function Fn(t){return typeof t=="object"&&typeof t.then=="function"}function ad(t){let e=!1,r=zv[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[r,r+"-"+e,jr,r+"Exit",r+"Exit-"+e]:e?[r,r+"-"+e,r+"Exit",r+"Exit-"+e]:t.append?[r,jr,r+"Exit"]:[r,r+"Exit"]}function sd(t){let e;return t.type==="document"?e=["Document",jr,"DocumentExit"]:t.type==="root"?e=["Root",jr,"RootExit"]:e=ad(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function da(t){return t[Dt]=!1,t.nodes&&t.nodes.forEach(e=>da(e)),t}var pa={},ar=class t{constructor(e,r,n){this.stringified=!1,this.processed=!1;let i;if(typeof r=="object"&&r!==null&&(r.type==="root"||r.type==="document"))i=da(r);else if(r instanceof t||r instanceof od)i=da(r.root),r.map&&(typeof n.map>"u"&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{let o=jv;n.syntax&&(o=n.syntax.parse),n.parser&&(o=n.parser),o.parse&&(o=o.parse);try{i=o(r,n)}catch(s){this.processed=!0,this.error=s}i&&!i[Bv]&&Lv.rebuild(i)}this.result=new od(e,i,n),this.helpers={...pa,postcss:pa,result:this.result},this.plugins=this.processor.plugins.map(o=>typeof o=="object"&&o.prepare?{...o,...o.prepare(this.result)}:o)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,r){let n=this.result.lastPlugin;try{r&&r.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=n.postcssPlugin,e.setMessage()):n.postcssVersion}catch(i){console&&console.error&&console.error(i)}return e}prepareVisitors(){this.listeners={};let e=(r,n,i)=>{this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push([r,i])};for(let r of this.plugins)if(typeof r=="object")for(let n in r){if(!Wv[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${r.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Vv[n])if(typeof r[n]=="object")for(let i in r[n])i==="*"?e(r,n,r[n][i]):e(r,n+"-"+i.toLowerCase(),r[n][i]);else typeof r[n]=="function"&&e(r,n,r[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e0;){let n=this.visitTick(r);if(Fn(n))try{await n}catch(i){let o=r[r.length-1].node;throw this.handleError(i,o)}}}if(this.listeners.OnceExit)for(let[r,n]of this.listeners.OnceExit){this.result.lastPlugin=r;try{if(e.type==="document"){let i=e.nodes.map(o=>n(o,this.helpers));await Promise.all(i)}else await n(e,this.helpers)}catch(i){throw this.handleError(i)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let r=this.result.root.nodes.map(n=>e.Once(n,this.helpers));return Fn(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(r){throw this.handleError(r)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,r=Uv;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);let i=new Rv(r,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let r=this.runOnRoot(e);if(Fn(r))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Dt];)e[Dt]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let r of e.nodes)this.visitSync(this.listeners.OnceExit,r);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,r){return this.async().then(e,r)}toString(){return this.css}visitSync(e,r){for(let[n,i]of e){this.result.lastPlugin=n;let o;try{o=i(r,this.helpers)}catch(s){throw this.handleError(s,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(Fn(o))throw this.getAsyncError()}}visitTick(e){let r=e[e.length-1],{node:n,visitors:i}=r;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(i.length>0&&r.visitorIndex{i[Dt]||this.walkSync(i)});else{let i=this.listeners[n];if(i&&this.visitSync(i,e.toProxy()))return}}warnings(){return this.sync().warnings()}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"}};ar.registerPostcss=t=>{pa=t};ld.exports=ar;ar.default=ar;qv.registerLazyResult(ar);Nv.registerLazyResult(ar)});var cd=j((T5,ud)=>{"use strict";var Hv=la(),Gv=bo(),Yv=vo(),Qv=wn(),A5=fa(),Ln=class{constructor(e,r,n){r=r.toString(),this.stringified=!1,this._processor=e,this._css=r,this._opts=n,this._map=void 0;let i,o=Qv;this.result=new Yv(this._processor,i,this._opts),this.result.css=r;let s=this;Object.defineProperty(this.result,"root",{get(){return s.root}});let l=new Hv(o,i,this._opts,r);if(l.isMap()){let[a,u]=l.generate();a&&(this.result.css=a),u&&(this.result.map=u)}else l.clearAnnotation(),this.result.css=l.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,r){return this.async().then(e,r)}toString(){return this._css}warnings(){return[]}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 e,r=Gv;try{e=r(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};ud.exports=Ln;Ln.default=Ln});var dd=j((I5,fd)=>{"use strict";var Kv=so(),Jv=ha(),Xv=cd(),Zv=Nr(),yr=class{constructor(e=[]){this.version="8.4.44",this.plugins=this.normalize(e)}normalize(e){let r=[];for(let n of e)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n=="object"&&Array.isArray(n.plugins))r=r.concat(n.plugins);else if(typeof n=="object"&&n.postcssPlugin)r.push(n);else if(typeof n=="function")r.push(n);else if(!(typeof n=="object"&&(n.parse||n.stringify)))throw new Error(n+" is not a PostCSS plugin");return r}process(e,r={}){return!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new Xv(this,e,r):new Jv(this,e,r)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};fd.exports=yr;yr.default=yr;Zv.registerProcessor(yr);Kv.registerProcessor(yr)});var Nn=j((P5,yd)=>{"use strict";var pd=oo(),hd=On(),ey=or(),ty=no(),md=An(),gd=so(),ry=qf(),ny=In(),iy=ha(),oy=sa(),sy=Sn(),ay=bo(),ma=dd(),ly=vo(),bd=Nr(),vd=co(),uy=wn(),cy=ca();function ve(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new ma(t)}ve.plugin=function(e,r){let n=!1;function i(...s){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide: +`),this.css+=r+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let r=this.toUrl(this.path(e.file)),n=e.root||fo(e.file),i;this.mapOpts.sourcesContent===!1?(i=new Vf(e.text),i.sourcesContent&&(i.sourcesContent=null)):i=e.consumer(),this.map.applySourceMap(i,r,this.toUrl(this.path(n)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let r=this.root.nodes.length-1;r>=0;r--)e=this.root.nodes[r],e.type==="comment"&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(r)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),Ev&&Sv&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,r=>{e+=r}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=po.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new po({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):""});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new po({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,r=1,n="",i={generated:{column:0,line:0},original:{column:0,line:0},source:""},o,s;this.stringify(this.root,(l,a,u)=>{if(this.css+=l,a&&u!=="end"&&(i.generated.line=e,i.generated.column=r-1,a.source&&a.source.start?(i.source=this.sourcePath(a),i.original.line=a.source.start.line,i.original.column=a.source.start.column-1,this.map.addMapping(i)):(i.source=n,i.original.line=1,i.original.column=0,this.map.addMapping(i))),s=l.match(/\n/g),s?(e+=s.length,o=l.lastIndexOf(` +`),r=l.length-o):r+=l.length,a&&u!=="start"){let c=a.parent||{raws:{}};(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==c.last||c.raws.semicolon)&&(a.source&&a.source.end?(i.source=this.sourcePath(a),i.original.line=a.source.end.line,i.original.column=a.source.end.column-1,i.generated.line=e,i.generated.column=r-2,this.map.addMapping(i)):(i.source=n,i.original.line=1,i.original.column=0,i.generated.line=e,i.generated.column=r-1,this.map.addMapping(i)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(r=>r.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let r=this.memoizedPaths.get(e);if(r)return r;let n=this.opts.to?fo(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=fo(zf(n,this.mapOpts.annotation)));let i=Bf(n,e);return this.memoizedPaths.set(e,i),i}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let r=e.source.input.map;this.previousMaps.includes(r)||this.previousMaps.push(r)}});else{let e=new kv(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(r=>{if(r.source){let n=r.source.input.from;if(n&&!e[n]){e[n]=!0;let i=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){let r=this.opts.from?this.toUrl(this.path(this.opts.from)):"";this.map.setSourceContent(r,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let r=this.memoizedFileURLs.get(e);if(r)return r;if(Uf){let n=Uf(e).toString();return this.memoizedFileURLs.set(e,n),n}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let r=this.memoizedURLs.get(e);if(r)return r;Wf==="\\"&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}};Hf.exports=aa});var Qf=j((k5,Yf)=>{"use strict";var ho=/[\t\n\f\r "#'()/;[\\\]{}]/g,mo=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Ov=/.[\r\n"'(/\\]/,Gf=/[\da-f]/i;Yf.exports=function(e,r={}){let n=e.css.valueOf(),i=r.ignoreErrors,o,s,l,a,u,c,p,d,f,g,w=n.length,h=0,m=[],b=[];function v(){return h}function _(S){throw e.error("Unclosed "+S,h)}function y(){return b.length===0&&h>=w}function C(S){if(b.length)return b.pop();if(h>=w)return;let D=S?S.ignoreUnclosed:!1;switch(o=n.charCodeAt(h),o){case 10:case 32:case 9:case 13:case 12:{a=h;do a+=1,o=n.charCodeAt(a);while(o===32||o===10||o===9||o===13||o===12);c=["space",n.slice(h,a)],h=a-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let O=String.fromCharCode(o);c=[O,O,h];break}case 40:{if(g=m.length?m.pop()[1]:"",f=n.charCodeAt(h+1),g==="url"&&f!==39&&f!==34&&f!==32&&f!==10&&f!==9&&f!==12&&f!==13){a=h;do{if(p=!1,a=n.indexOf(")",a+1),a===-1)if(i||D){a=h;break}else _("bracket");for(d=a;n.charCodeAt(d-1)===92;)d-=1,p=!p}while(p);c=["brackets",n.slice(h,a+1),h,a],h=a}else a=n.indexOf(")",h+1),s=n.slice(h,a+1),a===-1||Ov.test(s)?c=["(","(",h]:(c=["brackets",s,h,a],h=a);break}case 39:case 34:{u=o===39?"'":'"',a=h;do{if(p=!1,a=n.indexOf(u,a+1),a===-1)if(i||D){a=h+1;break}else _("string");for(d=a;n.charCodeAt(d-1)===92;)d-=1,p=!p}while(p);c=["string",n.slice(h,a+1),h,a],h=a;break}case 64:{ho.lastIndex=h+1,ho.test(n),ho.lastIndex===0?a=n.length-1:a=ho.lastIndex-2,c=["at-word",n.slice(h,a+1),h,a],h=a;break}case 92:{for(a=h,l=!0;n.charCodeAt(a+1)===92;)a+=1,l=!l;if(o=n.charCodeAt(a+1),l&&o!==47&&o!==32&&o!==10&&o!==9&&o!==13&&o!==12&&(a+=1,Gf.test(n.charAt(a)))){for(;Gf.test(n.charAt(a+1));)a+=1;n.charCodeAt(a+1)===32&&(a+=1)}c=["word",n.slice(h,a+1),h,a],h=a;break}default:{o===47&&n.charCodeAt(h+1)===42?(a=n.indexOf("*/",h+2)+1,a===0&&(i||D?a=n.length:_("comment")),c=["comment",n.slice(h,a+1),h,a],h=a):(mo.lastIndex=h+1,mo.test(n),mo.lastIndex===0?a=n.length-1:a=mo.lastIndex-2,c=["word",n.slice(h,a+1),h,a],m.push(c),h=a);break}}return h++,c}function E(S){b.push(S)}return{back:E,endOfFile:y,nextToken:C,position:v}}});var Zf=j((S5,Xf)=>{"use strict";var Cv=oo(),Av=On(),Tv=An(),Iv=Rr(),Kf=co(),Pv=Qf(),Jf={empty:!0,space:!0};function $v(t){for(let e=t.length-1;e>=0;e--){let r=t[e],n=r[3]||r[2];if(n)return n}}var ua=class{constructor(e){this.input=e,this.root=new Iv,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let r=new Cv;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);let n,i,o,s=!1,l=!1,a=[],u=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?u.push(n==="("?")":"]"):n==="{"&&u.length>0?u.push("}"):n===u[u.length-1]&&u.pop(),u.length===0)if(n===";"){r.source.end=this.getPosition(e[2]),r.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){l=!0;break}else if(n==="}"){if(a.length>0){for(o=a.length-1,i=a[o];i&&i[0]==="space";)i=a[--o];i&&(r.source.end=this.getPosition(i[3]||i[2]),r.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){s=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(r.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(r,"params",a),s&&(e=a[a.length-1],r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),l&&(r.nodes=[],this.current=r)}checkMissedSemicolon(e){let r=this.colon(e);if(r===!1)return;let n=0,i;for(let o=r-1;o>=0&&(i=e[o],!(i[0]!=="space"&&(n+=1,n===2)));o--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(e){let r=0,n,i,o;for(let[s,l]of e.entries()){if(i=l,o=i[0],o==="("&&(r+=1),o===")"&&(r-=1),r===0&&o===":")if(!n)this.doubleColon(i);else{if(n[0]==="word"&&n[1]==="progid")continue;return s}n=i}return!1}comment(e){let r=new Av;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++;let n=e[1].slice(2,-2);if(/^\s*$/.test(n))r.text="",r.raws.left=n,r.raws.right="";else{let i=n.match(/^(\s*)([^]*\S)(\s*)$/);r.text=i[2],r.raws.left=i[1],r.raws.right=i[3]}}createTokenizer(){this.tokenizer=Pv(this.input)}decl(e,r){let n=new Tv;this.init(n,e[0][2]);let i=e[e.length-1];for(i[0]===";"&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(i[3]||i[2]||$v(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let u=e[0][0];if(u===":"||u==="space"||u==="comment")break;n.prop+=e.shift()[1]}n.raws.between="";let o;for(;e.length;)if(o=e.shift(),o[0]===":"){n.raws.between+=o[1];break}else o[0]==="word"&&/\w/.test(o[1])&&this.unknownWord([o]),n.raws.between+=o[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let s=[],l;for(;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)s.push(e.shift());this.precheckMissedSemicolon(e);for(let u=e.length-1;u>=0;u--){if(o=e[u],o[1].toLowerCase()==="!important"){n.important=!0;let c=this.stringFrom(e,u);c=this.spacesFromEnd(e)+c,c!==" !important"&&(n.raws.important=c);break}else if(o[1].toLowerCase()==="important"){let c=e.slice(0),p="";for(let d=u;d>0;d--){let f=c[d][0];if(p.trim().startsWith("!")&&f!=="space")break;p=c.pop()[1]+p}p.trim().startsWith("!")&&(n.important=!0,n.raws.important=p,e=c)}if(o[0]!=="space"&&o[0]!=="comment")break}e.some(u=>u[0]!=="space"&&u[0]!=="comment")&&(n.raws.between+=s.map(u=>u[1]).join(""),s=[]),this.raw(n,"value",s.concat(e),r),n.value.includes(":")&&!r&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let r=new Kf;this.init(r,e[2]),r.selector="",r.raws.between="",this.current=r}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),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(e){if(this.spaces+=e[1],this.current.nodes){let r=this.current.nodes[this.current.nodes.length-1];r&&r.type==="rule"&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let r=this.input.fromOffset(e);return{column:r.col,line:r.line,offset:e}}init(e,r){this.current.push(e),e.source={input:this.input,start:this.getPosition(r)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let r=!1,n=null,i=!1,o=null,s=[],l=e[1].startsWith("--"),a=[],u=e;for(;u;){if(n=u[0],a.push(u),n==="("||n==="[")o||(o=u),s.push(n==="("?")":"]");else if(l&&i&&n==="{")o||(o=u),s.push("}");else if(s.length===0)if(n===";")if(i){this.decl(a,l);return}else break;else if(n==="{"){this.rule(a);return}else if(n==="}"){this.tokenizer.back(a.pop()),r=!0;break}else n===":"&&(i=!0);else n===s[s.length-1]&&(s.pop(),s.length===0&&(o=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),s.length>0&&this.unclosedBracket(o),r&&i){if(!l)for(;a.length&&(u=a[a.length-1][0],!(u!=="space"&&u!=="comment"));)this.tokenizer.back(a.pop());this.decl(a,l)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,r,n,i){let o,s,l=n.length,a="",u=!0,c,p;for(let d=0;df+g[1],"");e.raws[r]={raw:d,value:a}}e[r]=a}rule(e){e.pop();let r=new Kf;this.init(r,e[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(r,"selector",e),this.current=r}spacesAndCommentsFromEnd(e){let r,n="";for(;e.length&&(r=e[e.length-1][0],!(r!=="space"&&r!=="comment"));)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let r,n="";for(;e.length&&(r=e[0][0],!(r!=="space"&&r!=="comment"));)n+=e.shift()[1];return n}spacesFromEnd(e){let r,n="";for(;e.length&&(r=e[e.length-1][0],r==="space");)n=e.pop()[1]+n;return n}stringFrom(e,r){let n="";for(let i=r;i{"use strict";var Dv=or(),Mv=In(),Fv=Zf();function go(t,e){let r=new Mv(t,e),n=new Fv(r);try{n.parse()}catch(i){throw i}return n.root}ed.exports=go;go.default=go;Dv.registerParse(go)});var ca=j((O5,td)=>{"use strict";var Dn=class{constructor(e,r={}){if(this.type="warning",this.text=e,r.node&&r.node.source){let n=r.node.rangeBy(r);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in r)this[n]=r[n]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};td.exports=Dn;Dn.default=Dn});var vo=j((C5,rd)=>{"use strict";var Lv=ca(),Mn=class{constructor(e,r,n){this.processor=e,this.messages=[],this.root=r,this.opts=n,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,r={}){r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);let n=new Lv(e,r);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};rd.exports=Mn;Mn.default=Mn});var fa=j((A5,id)=>{"use strict";var nd={};id.exports=function(e){nd[e]||(nd[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))}});var ha=j((I5,ld)=>{"use strict";var Nv=or(),Rv=so(),jv=la(),qv=bo(),od=vo(),Uv=Rr(),Bv=wn(),{isClean:Ft,my:zv}=io(),T5=fa(),Wv={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Vv={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Hv={Once:!0,postcssPlugin:!0,prepare:!0},qr=0;function Fn(t){return typeof t=="object"&&typeof t.then=="function"}function ad(t){let e=!1,r=Wv[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[r,r+"-"+e,qr,r+"Exit",r+"Exit-"+e]:e?[r,r+"-"+e,r+"Exit",r+"Exit-"+e]:t.append?[r,qr,r+"Exit"]:[r,r+"Exit"]}function sd(t){let e;return t.type==="document"?e=["Document",qr,"DocumentExit"]:t.type==="root"?e=["Root",qr,"RootExit"]:e=ad(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function da(t){return t[Ft]=!1,t.nodes&&t.nodes.forEach(e=>da(e)),t}var pa={},ar=class t{constructor(e,r,n){this.stringified=!1,this.processed=!1;let i;if(typeof r=="object"&&r!==null&&(r.type==="root"||r.type==="document"))i=da(r);else if(r instanceof t||r instanceof od)i=da(r.root),r.map&&(typeof n.map>"u"&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{let o=qv;n.syntax&&(o=n.syntax.parse),n.parser&&(o=n.parser),o.parse&&(o=o.parse);try{i=o(r,n)}catch(s){this.processed=!0,this.error=s}i&&!i[zv]&&Nv.rebuild(i)}this.result=new od(e,i,n),this.helpers={...pa,postcss:pa,result:this.result},this.plugins=this.processor.plugins.map(o=>typeof o=="object"&&o.prepare?{...o,...o.prepare(this.result)}:o)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,r){let n=this.result.lastPlugin;try{r&&r.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=n.postcssPlugin,e.setMessage()):n.postcssVersion}catch(i){console&&console.error&&console.error(i)}return e}prepareVisitors(){this.listeners={};let e=(r,n,i)=>{this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push([r,i])};for(let r of this.plugins)if(typeof r=="object")for(let n in r){if(!Vv[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${r.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Hv[n])if(typeof r[n]=="object")for(let i in r[n])i==="*"?e(r,n,r[n][i]):e(r,n+"-"+i.toLowerCase(),r[n][i]);else typeof r[n]=="function"&&e(r,n,r[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e0;){let n=this.visitTick(r);if(Fn(n))try{await n}catch(i){let o=r[r.length-1].node;throw this.handleError(i,o)}}}if(this.listeners.OnceExit)for(let[r,n]of this.listeners.OnceExit){this.result.lastPlugin=r;try{if(e.type==="document"){let i=e.nodes.map(o=>n(o,this.helpers));await Promise.all(i)}else await n(e,this.helpers)}catch(i){throw this.handleError(i)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let r=this.result.root.nodes.map(n=>e.Once(n,this.helpers));return Fn(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(r){throw this.handleError(r)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,r=Bv;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);let i=new jv(r,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let r=this.runOnRoot(e);if(Fn(r))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Ft];)e[Ft]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let r of e.nodes)this.visitSync(this.listeners.OnceExit,r);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,r){return this.async().then(e,r)}toString(){return this.css}visitSync(e,r){for(let[n,i]of e){this.result.lastPlugin=n;let o;try{o=i(r,this.helpers)}catch(s){throw this.handleError(s,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(Fn(o))throw this.getAsyncError()}}visitTick(e){let r=e[e.length-1],{node:n,visitors:i}=r;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(i.length>0&&r.visitorIndex{i[Ft]||this.walkSync(i)});else{let i=this.listeners[n];if(i&&this.visitSync(i,e.toProxy()))return}}warnings(){return this.sync().warnings()}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"}};ar.registerPostcss=t=>{pa=t};ld.exports=ar;ar.default=ar;Uv.registerLazyResult(ar);Rv.registerLazyResult(ar)});var cd=j(($5,ud)=>{"use strict";var Gv=la(),Yv=bo(),Qv=vo(),Kv=wn(),P5=fa(),Ln=class{constructor(e,r,n){r=r.toString(),this.stringified=!1,this._processor=e,this._css=r,this._opts=n,this._map=void 0;let i,o=Kv;this.result=new Qv(this._processor,i,this._opts),this.result.css=r;let s=this;Object.defineProperty(this.result,"root",{get(){return s.root}});let l=new Gv(o,i,this._opts,r);if(l.isMap()){let[a,u]=l.generate();a&&(this.result.css=a),u&&(this.result.map=u)}else l.clearAnnotation(),this.result.css=l.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,r){return this.async().then(e,r)}toString(){return this._css}warnings(){return[]}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 e,r=Yv;try{e=r(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};ud.exports=Ln;Ln.default=Ln});var dd=j((D5,fd)=>{"use strict";var Jv=so(),Xv=ha(),Zv=cd(),ey=Rr(),_r=class{constructor(e=[]){this.version="8.4.44",this.plugins=this.normalize(e)}normalize(e){let r=[];for(let n of e)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n=="object"&&Array.isArray(n.plugins))r=r.concat(n.plugins);else if(typeof n=="object"&&n.postcssPlugin)r.push(n);else if(typeof n=="function")r.push(n);else if(!(typeof n=="object"&&(n.parse||n.stringify)))throw new Error(n+" is not a PostCSS plugin");return r}process(e,r={}){return!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new Zv(this,e,r):new Xv(this,e,r)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};fd.exports=_r;_r.default=_r;ey.registerProcessor(_r);Jv.registerProcessor(_r)});var Nn=j((M5,yd)=>{"use strict";var pd=oo(),hd=On(),ty=or(),ry=no(),md=An(),gd=so(),ny=qf(),iy=In(),oy=ha(),sy=sa(),ay=Sn(),ly=bo(),ma=dd(),uy=vo(),bd=Rr(),vd=co(),cy=wn(),fy=ca();function ye(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new ma(t)}ye.plugin=function(e,r){let n=!1;function i(...s){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide: https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357: -https://www.w3ctech.com/topic/2226`));let l=r(...s);return l.postcssPlugin=e,l.postcssVersion=new ma().version,l}let o;return Object.defineProperty(i,"postcss",{get(){return o||(o=i()),o}}),i.process=function(s,l,a){return ve([i(a)]).process(s,l)},i};ve.stringify=uy;ve.parse=ay;ve.fromJSON=ry;ve.list=oy;ve.comment=t=>new hd(t);ve.atRule=t=>new pd(t);ve.decl=t=>new md(t);ve.rule=t=>new vd(t);ve.root=t=>new bd(t);ve.document=t=>new gd(t);ve.CssSyntaxError=ty;ve.Declaration=md;ve.Container=ey;ve.Processor=ma;ve.Document=gd;ve.Comment=hd;ve.Warning=cy;ve.AtRule=pd;ve.Result=ly;ve.Input=ny;ve.Rule=vd;ve.Root=bd;ve.Node=sy;iy.registerPostcss(ve);yd.exports=ve;ve.default=ve});var _o=j((yo,_d)=>{"use strict";yo.__esModule=!0;yo.default=py;function fy(t){for(var e=t.toLowerCase(),r="",n=!1,i=0;i<6&&e[i]!==void 0;i++){var o=e.charCodeAt(i),s=o>=97&&o<=102||o>=48&&o<=57;if(n=o===32,!s)break;r+=e[i]}if(r.length!==0){var l=parseInt(r,16),a=l>=55296&&l<=57343;return a||l===0||l>1114111?["\uFFFD",r.length+(n?1:0)]:[String.fromCodePoint(l),r.length+(n?1:0)]}}var dy=/\\/;function py(t){var e=dy.test(t);if(!e)return t;for(var r="",n=0;n{"use strict";wo.__esModule=!0;wo.default=hy;function hy(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n0;){var i=r.shift();if(!t[i])return;t=t[i]}return t}wd.exports=wo.default});var Sd=j((xo,kd)=>{"use strict";xo.__esModule=!0;xo.default=my;function my(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n0;){var i=r.shift();t[i]||(t[i]={}),t=t[i]}}kd.exports=xo.default});var Od=j((ko,Ed)=>{"use strict";ko.__esModule=!0;ko.default=gy;function gy(t){for(var e="",r=t.indexOf("/*"),n=0;r>=0;){e=e+t.slice(n,r);var i=t.indexOf("*/",r+2);if(i<0)return e;n=i+2,r=t.indexOf("/*",n)}return e=e+t.slice(n),e}Ed.exports=ko.default});var Rn=j(Mt=>{"use strict";Mt.__esModule=!0;Mt.unesc=Mt.stripComments=Mt.getProp=Mt.ensureObject=void 0;var by=So(_o());Mt.unesc=by.default;var vy=So(xd());Mt.getProp=vy.default;var yy=So(Sd());Mt.ensureObject=yy.default;var _y=So(Od());Mt.stripComments=_y.default;function So(t){return t&&t.__esModule?t:{default:t}}});var Ht=j((jn,Td)=>{"use strict";jn.__esModule=!0;jn.default=void 0;var Cd=Rn();function Ad(t,e){for(var r=0;rn||this.source.end.linei||this.source.end.line===n&&this.source.end.column{"use strict";Pe.__esModule=!0;Pe.UNIVERSAL=Pe.TAG=Pe.STRING=Pe.SELECTOR=Pe.ROOT=Pe.PSEUDO=Pe.NESTING=Pe.ID=Pe.COMMENT=Pe.COMBINATOR=Pe.CLASS=Pe.ATTRIBUTE=void 0;var Sy="tag";Pe.TAG=Sy;var Ey="string";Pe.STRING=Ey;var Oy="selector";Pe.SELECTOR=Oy;var Cy="root";Pe.ROOT=Cy;var Ay="pseudo";Pe.PSEUDO=Ay;var Ty="nesting";Pe.NESTING=Ty;var Iy="id";Pe.ID=Iy;var Py="comment";Pe.COMMENT=Py;var $y="combinator";Pe.COMBINATOR=$y;var Dy="class";Pe.CLASS=Dy;var My="attribute";Pe.ATTRIBUTE=My;var Fy="universal";Pe.UNIVERSAL=Fy});var Eo=j((qn,Dd)=>{"use strict";qn.__esModule=!0;qn.default=void 0;var Ly=Ry(Ht()),Gt=Ny(Je());function $d(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,r=new WeakMap;return($d=function(i){return i?r:e})(t)}function Ny(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var r=$d(e);if(r&&r.has(t))return r.get(t);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var s=i?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=t[o]}return n.default=t,r&&r.set(t,n),n}function Ry(t){return t&&t.__esModule?t:{default:t}}function jy(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=qy(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qy(t,e){if(t){if(typeof t=="string")return Id(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Id(t,e)}}function Id(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r=i&&(this.indexes[s]=o-1);return this},r.removeAll=function(){for(var i=jy(this.nodes),o;!(o=i()).done;){var s=o.value;s.parent=void 0}return this.nodes=[],this},r.empty=function(){return this.removeAll()},r.insertAfter=function(i,o){o.parent=this;var s=this.index(i);this.nodes.splice(s+1,0,o),o.parent=this;var l;for(var a in this.indexes)l=this.indexes[a],s<=l&&(this.indexes[a]=l+1);return this},r.insertBefore=function(i,o){o.parent=this;var s=this.index(i);this.nodes.splice(s,0,o),o.parent=this;var l;for(var a in this.indexes)l=this.indexes[a],l<=s&&(this.indexes[a]=l+1);return this},r._findChildAtPosition=function(i,o){var s=void 0;return this.each(function(l){if(l.atPosition){var a=l.atPosition(i,o);if(a)return s=a,!1}else if(l.isAtPosition(i,o))return s=l,!1}),s},r.atPosition=function(i,o){if(this.isAtPosition(i,o))return this._findChildAtPosition(i,o)||this},r._inferEndPosition=function(){this.last&&this.last.source&&this.last.source.end&&(this.source=this.source||{},this.source.end=this.source.end||{},Object.assign(this.source.end,this.last.source.end))},r.each=function(i){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var o=this.lastEach;if(this.indexes[o]=0,!!this.length){for(var s,l;this.indexes[o]{"use strict";Un.__esModule=!0;Un.default=void 0;var Wy=Hy(Eo()),Vy=Je();function Hy(t){return t&&t.__esModule?t:{default:t}}function Md(t,e){for(var r=0;r{"use strict";Bn.__esModule=!0;Bn.default=void 0;var Ky=Xy(Eo()),Jy=Je();function Xy(t){return t&&t.__esModule?t:{default:t}}function Zy(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,ya(t,e)}function ya(t,e){return ya=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ya(t,e)}var e_=function(t){Zy(e,t);function e(r){var n;return n=t.call(this,r)||this,n.type=Jy.SELECTOR,n}return e}(Ky.default);Bn.default=e_;Ld.exports=Bn.default});var Oo=j((o3,Nd)=>{"use strict";var t_={},r_=t_.hasOwnProperty,n_=function(e,r){if(!e)return r;var n={};for(var i in r)n[i]=r_.call(e,i)?e[i]:r[i];return n},i_=/[ -,\.\/:-@\[-\^`\{-~]/,o_=/[ -,\.\/:-@\[\]\^`\{-~]/,s_=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,wa=function t(e,r){r=n_(r,t.options),r.quotes!="single"&&r.quotes!="double"&&(r.quotes="single");for(var n=r.quotes=="double"?'"':"'",i=r.isIdentifier,o=e.charAt(0),s="",l=0,a=e.length;l126){if(c>=55296&&c<=56319&&l{"use strict";zn.__esModule=!0;zn.default=void 0;var a_=jd(Oo()),l_=Rn(),u_=jd(Ht()),c_=Je();function jd(t){return t&&t.__esModule?t:{default:t}}function Rd(t,e){for(var r=0;r{"use strict";Wn.__esModule=!0;Wn.default=void 0;var h_=g_(Ht()),m_=Je();function g_(t){return t&&t.__esModule?t:{default:t}}function b_(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Sa(t,e)}function Sa(t,e){return Sa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Sa(t,e)}var v_=function(t){b_(e,t);function e(r){var n;return n=t.call(this,r)||this,n.type=m_.COMMENT,n}return e}(h_.default);Wn.default=v_;Ud.exports=Wn.default});var Ca=j((Vn,Bd)=>{"use strict";Vn.__esModule=!0;Vn.default=void 0;var y_=w_(Ht()),__=Je();function w_(t){return t&&t.__esModule?t:{default:t}}function x_(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Oa(t,e)}function Oa(t,e){return Oa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Oa(t,e)}var k_=function(t){x_(e,t);function e(n){var i;return i=t.call(this,n)||this,i.type=__.ID,i}var r=e.prototype;return r.valueToString=function(){return"#"+t.prototype.valueToString.call(this)},e}(y_.default);Vn.default=k_;Bd.exports=Vn.default});var Co=j((Hn,Vd)=>{"use strict";Hn.__esModule=!0;Hn.default=void 0;var S_=Wd(Oo()),E_=Rn(),O_=Wd(Ht());function Wd(t){return t&&t.__esModule?t:{default:t}}function zd(t,e){for(var r=0;r{"use strict";Gn.__esModule=!0;Gn.default=void 0;var I_=$_(Co()),P_=Je();function $_(t){return t&&t.__esModule?t:{default:t}}function D_(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Ta(t,e)}function Ta(t,e){return Ta=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ta(t,e)}var M_=function(t){D_(e,t);function e(r){var n;return n=t.call(this,r)||this,n.type=P_.TAG,n}return e}(I_.default);Gn.default=M_;Hd.exports=Gn.default});var $a=j((Yn,Gd)=>{"use strict";Yn.__esModule=!0;Yn.default=void 0;var F_=N_(Ht()),L_=Je();function N_(t){return t&&t.__esModule?t:{default:t}}function R_(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Pa(t,e)}function Pa(t,e){return Pa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Pa(t,e)}var j_=function(t){R_(e,t);function e(r){var n;return n=t.call(this,r)||this,n.type=L_.STRING,n}return e}(F_.default);Yn.default=j_;Gd.exports=Yn.default});var Ma=j((Qn,Yd)=>{"use strict";Qn.__esModule=!0;Qn.default=void 0;var q_=B_(Eo()),U_=Je();function B_(t){return t&&t.__esModule?t:{default:t}}function z_(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Da(t,e)}function Da(t,e){return Da=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Da(t,e)}var W_=function(t){z_(e,t);function e(n){var i;return i=t.call(this,n)||this,i.type=U_.PSEUDO,i}var r=e.prototype;return r.toString=function(){var i=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),i,this.rawSpaceAfter].join("")},e}(q_.default);Qn.default=W_;Yd.exports=Qn.default});var Kd=j((s3,Qd)=>{Qd.exports=V_;function V_(t,e){if(Fa("noDeprecation"))return t;var r=!1;function n(){if(!r){if(Fa("throwDeprecation"))throw new Error(e);Fa("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}return n}function Fa(t){try{if(!global.localStorage)return!1}catch{return!1}var e=global.localStorage[t];return e==null?!1:String(e).toLowerCase()==="true"}});var Ua=j(Xn=>{"use strict";Xn.__esModule=!0;Xn.default=void 0;Xn.unescapeValue=qa;var Kn=ja(Oo()),H_=ja(_o()),G_=ja(Co()),Y_=Je(),La;function ja(t){return t&&t.__esModule?t:{default:t}}function Jd(t,e){for(var r=0;r0&&!i.quoted&&l.before.length===0&&!(i.spaces.value&&i.spaces.value.after)&&(l.before=" "),Xd(s,l)}))),o.push("]"),o.push(this.rawSpaceAfter),o.join("")},Q_(e,[{key:"quoted",get:function(){var i=this.quoteMark;return i==="'"||i==='"'},set:function(i){Z_()}},{key:"quoteMark",get:function(){return this._quoteMark},set:function(i){if(!this._constructed){this._quoteMark=i;return}this._quoteMark!==i&&(this._quoteMark=i,this._syncRawValue())}},{key:"qualifiedAttribute",get:function(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:"insensitiveFlag",get:function(){return this.insensitive?"i":""}},{key:"value",get:function(){return this._value},set:function(i){if(this._constructed){var o=qa(i),s=o.deprecatedUsage,l=o.unescaped,a=o.quoteMark;if(s&&X_(),l===this._value&&a===this._quoteMark)return;this._value=l,this._quoteMark=a,this._syncRawValue()}else this._value=i}},{key:"insensitive",get:function(){return this._insensitive},set:function(i){i||(this._insensitive=!1,this.raws&&(this.raws.insensitiveFlag==="I"||this.raws.insensitiveFlag==="i")&&(this.raws.insensitiveFlag=void 0)),this._insensitive=i}},{key:"attribute",get:function(){return this._attribute},set:function(i){this._handleEscapes("attribute",i),this._attribute=i}}]),e}(G_.default);Xn.default=Ao;Ao.NO_QUOTE=null;Ao.SINGLE_QUOTE="'";Ao.DOUBLE_QUOTE='"';var Na=(La={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},La[null]={isIdentifier:!0},La);function Xd(t,e){return""+e.before+t+e.after}});var za=j((Zn,Zd)=>{"use strict";Zn.__esModule=!0;Zn.default=void 0;var rw=iw(Co()),nw=Je();function iw(t){return t&&t.__esModule?t:{default:t}}function ow(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Ba(t,e)}function Ba(t,e){return Ba=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ba(t,e)}var sw=function(t){ow(e,t);function e(r){var n;return n=t.call(this,r)||this,n.type=nw.UNIVERSAL,n.value="*",n}return e}(rw.default);Zn.default=sw;Zd.exports=Zn.default});var Va=j((ei,ep)=>{"use strict";ei.__esModule=!0;ei.default=void 0;var aw=uw(Ht()),lw=Je();function uw(t){return t&&t.__esModule?t:{default:t}}function cw(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Wa(t,e)}function Wa(t,e){return Wa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Wa(t,e)}var fw=function(t){cw(e,t);function e(r){var n;return n=t.call(this,r)||this,n.type=lw.COMBINATOR,n}return e}(aw.default);ei.default=fw;ep.exports=ei.default});var Ga=j((ti,tp)=>{"use strict";ti.__esModule=!0;ti.default=void 0;var dw=hw(Ht()),pw=Je();function hw(t){return t&&t.__esModule?t:{default:t}}function mw(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Ha(t,e)}function Ha(t,e){return Ha=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ha(t,e)}var gw=function(t){mw(e,t);function e(r){var n;return n=t.call(this,r)||this,n.type=pw.NESTING,n.value="&",n}return e}(dw.default);ti.default=gw;tp.exports=ti.default});var np=j((To,rp)=>{"use strict";To.__esModule=!0;To.default=bw;function bw(t){return t.sort(function(e,r){return e-r})}rp.exports=To.default});var Ya=j(H=>{"use strict";H.__esModule=!0;H.word=H.tilde=H.tab=H.str=H.space=H.slash=H.singleQuote=H.semicolon=H.plus=H.pipe=H.openSquare=H.openParenthesis=H.newline=H.greaterThan=H.feed=H.equals=H.doubleQuote=H.dollar=H.cr=H.comment=H.comma=H.combinator=H.colon=H.closeSquare=H.closeParenthesis=H.caret=H.bang=H.backslash=H.at=H.asterisk=H.ampersand=void 0;var vw=38;H.ampersand=vw;var yw=42;H.asterisk=yw;var _w=64;H.at=_w;var ww=44;H.comma=ww;var xw=58;H.colon=xw;var kw=59;H.semicolon=kw;var Sw=40;H.openParenthesis=Sw;var Ew=41;H.closeParenthesis=Ew;var Ow=91;H.openSquare=Ow;var Cw=93;H.closeSquare=Cw;var Aw=36;H.dollar=Aw;var Tw=126;H.tilde=Tw;var Iw=94;H.caret=Iw;var Pw=43;H.plus=Pw;var $w=61;H.equals=$w;var Dw=124;H.pipe=Dw;var Mw=62;H.greaterThan=Mw;var Fw=32;H.space=Fw;var ip=39;H.singleQuote=ip;var Lw=34;H.doubleQuote=Lw;var Nw=47;H.slash=Nw;var Rw=33;H.bang=Rw;var jw=92;H.backslash=jw;var qw=13;H.cr=qw;var Uw=12;H.feed=Uw;var Bw=10;H.newline=Bw;var zw=9;H.tab=zw;var Ww=ip;H.str=Ww;var Vw=-1;H.comment=Vw;var Hw=-2;H.word=Hw;var Gw=-3;H.combinator=Gw});var ap=j(ri=>{"use strict";ri.__esModule=!0;ri.FIELDS=void 0;ri.default=e1;var q=Yw(Ya()),qr,Ce;function sp(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,r=new WeakMap;return(sp=function(i){return i?r:e})(t)}function Yw(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var r=sp(e);if(r&&r.has(t))return r.get(t);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var s=i?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=t[o]}return n.default=t,r&&r.set(t,n),n}var Qw=(qr={},qr[q.tab]=!0,qr[q.newline]=!0,qr[q.cr]=!0,qr[q.feed]=!0,qr),Kw=(Ce={},Ce[q.space]=!0,Ce[q.tab]=!0,Ce[q.newline]=!0,Ce[q.cr]=!0,Ce[q.feed]=!0,Ce[q.ampersand]=!0,Ce[q.asterisk]=!0,Ce[q.bang]=!0,Ce[q.comma]=!0,Ce[q.colon]=!0,Ce[q.semicolon]=!0,Ce[q.openParenthesis]=!0,Ce[q.closeParenthesis]=!0,Ce[q.openSquare]=!0,Ce[q.closeSquare]=!0,Ce[q.singleQuote]=!0,Ce[q.doubleQuote]=!0,Ce[q.plus]=!0,Ce[q.pipe]=!0,Ce[q.tilde]=!0,Ce[q.greaterThan]=!0,Ce[q.equals]=!0,Ce[q.dollar]=!0,Ce[q.caret]=!0,Ce[q.slash]=!0,Ce),Qa={},op="0123456789abcdefABCDEF";for(Io=0;Io0?(b=s+w,v=m-h[w].length):(b=s,v=o),y=q.comment,s=b,d=b,p=m-v):u===q.slash?(m=l,y=u,d=s,p=l-o,a=m+1):(m=Jw(r,l),y=q.word,d=s,p=m-o),a=m+1;break}e.push([y,s,l-o,d,p,l,a]),v&&(o=v,v=null),l=a}return e}});var mp=j((ni,hp)=>{"use strict";ni.__esModule=!0;ni.default=void 0;var t1=gt(va()),Ka=gt(_a()),r1=gt(ka()),lp=gt(Ea()),n1=gt(Ca()),i1=gt(Ia()),Ja=gt($a()),o1=gt(Ma()),up=Po(Ua()),s1=gt(za()),Xa=gt(Va()),a1=gt(Ga()),l1=gt(np()),N=Po(ap()),W=Po(Ya()),u1=Po(Je()),Ne=Rn(),_r,Za;function pp(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,r=new WeakMap;return(pp=function(i){return i?r:e})(t)}function Po(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var r=pp(e);if(r&&r.has(t))return r.get(t);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var s=i?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=t[o]}return n.default=t,r&&r.set(t,n),n}function gt(t){return t&&t.__esModule?t:{default:t}}function cp(t,e){for(var r=0;r0){var s=this.current.last;if(s){var l=this.convertWhitespaceNodesToSpace(o),a=l.space,u=l.rawSpace;u!==void 0&&(s.rawSpaceAfter+=u),s.spaces.after+=a}else o.forEach(function(y){return n.newNode(y)})}return}var c=this.currToken,p=void 0;i>this.position&&(p=this.parseWhitespaceEquivalentTokens(i));var d;if(this.isNamedCombinator()?d=this.namedCombinator():this.currToken[N.FIELDS.TYPE]===W.combinator?(d=new Xa.default({value:this.content(),source:Ur(this.currToken),sourceIndex:this.currToken[N.FIELDS.START_POS]}),this.position++):rl[this.currToken[N.FIELDS.TYPE]]||p||this.unexpected(),d){if(p){var f=this.convertWhitespaceNodesToSpace(p),g=f.space,w=f.rawSpace;d.spaces.before=g,d.rawSpaceBefore=w}}else{var h=this.convertWhitespaceNodesToSpace(p,!0),m=h.space,b=h.rawSpace;b||(b=m);var v={},_={spaces:{}};m.endsWith(" ")&&b.endsWith(" ")?(v.before=m.slice(0,m.length-1),_.spaces.before=b.slice(0,b.length-1)):m.startsWith(" ")&&b.startsWith(" ")?(v.after=m.slice(1),_.spaces.after=b.slice(1)):_.value=b,d=new Xa.default({value:" ",source:el(c,this.tokens[this.position-1]),sourceIndex:c[N.FIELDS.START_POS],spaces:v,raws:_})}return this.currToken&&this.currToken[N.FIELDS.TYPE]===W.space&&(d.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(d)},e.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var n=new Ka.default({source:{start:fp(this.tokens[this.position+1])}});this.current.parent.append(n),this.current=n,this.position++},e.comment=function(){var n=this.currToken;this.newNode(new lp.default({value:this.content(),source:Ur(n),sourceIndex:n[N.FIELDS.START_POS]})),this.position++},e.error=function(n,i){throw this.root.error(n,i)},e.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[N.FIELDS.START_POS]})},e.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[N.FIELDS.START_POS])},e.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[N.FIELDS.START_POS])},e.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[N.FIELDS.START_POS])},e.unexpectedPipe=function(){return this.error("Unexpected '|'.",this.currToken[N.FIELDS.START_POS])},e.namespace=function(){var n=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[N.FIELDS.TYPE]===W.word)return this.position++,this.word(n);if(this.nextToken[N.FIELDS.TYPE]===W.asterisk)return this.position++,this.universal(n);this.unexpectedPipe()},e.nesting=function(){if(this.nextToken){var n=this.content(this.nextToken);if(n==="|"){this.position++;return}}var i=this.currToken;this.newNode(new a1.default({value:this.content(),source:Ur(i),sourceIndex:i[N.FIELDS.START_POS]})),this.position++},e.parentheses=function(){var n=this.current.last,i=1;if(this.position++,n&&n.type===u1.PSEUDO){var o=new Ka.default({source:{start:fp(this.tokens[this.position-1])}}),s=this.current;for(n.append(o),this.current=o;this.position1&&n.nextToken&&n.nextToken[N.FIELDS.TYPE]===W.openParenthesis&&n.error("Misplaced parenthesis.",{index:n.nextToken[N.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[N.FIELDS.START_POS])},e.space=function(){var n=this.content();this.position===0||this.prevToken[N.FIELDS.TYPE]===W.comma||this.prevToken[N.FIELDS.TYPE]===W.openParenthesis||this.current.nodes.every(function(i){return i.type==="comment"})?(this.spaces=this.optionalSpace(n),this.position++):this.position===this.tokens.length-1||this.nextToken[N.FIELDS.TYPE]===W.comma||this.nextToken[N.FIELDS.TYPE]===W.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(n),this.position++):this.combinator()},e.string=function(){var n=this.currToken;this.newNode(new Ja.default({value:this.content(),source:Ur(n),sourceIndex:n[N.FIELDS.START_POS]})),this.position++},e.universal=function(n){var i=this.nextToken;if(i&&this.content(i)==="|")return this.position++,this.namespace();var o=this.currToken;this.newNode(new s1.default({value:this.content(),source:Ur(o),sourceIndex:o[N.FIELDS.START_POS]}),n),this.position++},e.splitWord=function(n,i){for(var o=this,s=this.nextToken,l=this.content();s&&~[W.dollar,W.caret,W.equals,W.word].indexOf(s[N.FIELDS.TYPE]);){this.position++;var a=this.content();if(l+=a,a.lastIndexOf("\\")===a.length-1){var u=this.nextToken;u&&u[N.FIELDS.TYPE]===W.space&&(l+=this.requiredSpace(this.content(u)),this.position++)}s=this.nextToken}var c=tl(l,".").filter(function(g){var w=l[g-1]==="\\",h=/^\d+\.\d+%$/.test(l);return!w&&!h}),p=tl(l,"#").filter(function(g){return l[g-1]!=="\\"}),d=tl(l,"#{");d.length&&(p=p.filter(function(g){return!~d.indexOf(g)}));var f=(0,l1.default)(d1([0].concat(c,p)));f.forEach(function(g,w){var h=f[w+1]||l.length,m=l.slice(g,h);if(w===0&&i)return i.call(o,m,f.length);var b,v=o.currToken,_=v[N.FIELDS.START_POS]+f[w],y=wr(v[1],v[2]+g,v[3],v[2]+(h-1));if(~c.indexOf(g)){var C={value:m.slice(1),source:y,sourceIndex:_};b=new r1.default(Br(C,"value"))}else if(~p.indexOf(g)){var E={value:m.slice(1),source:y,sourceIndex:_};b=new n1.default(Br(E,"value"))}else{var S={value:m,source:y,sourceIndex:_};Br(S,"value"),b=new i1.default(S)}o.newNode(b,n),n=null}),this.position++},e.word=function(n){var i=this.nextToken;return i&&this.content(i)==="|"?(this.position++,this.namespace()):this.splitWord(n)},e.loop=function(){for(;this.position{"use strict";ii.__esModule=!0;ii.default=void 0;var h1=m1(mp());function m1(t){return t&&t.__esModule?t:{default:t}}var g1=function(){function t(r,n){this.func=r||function(){},this.funcRes=null,this.options=n}var e=t.prototype;return e._shouldUpdateSelector=function(n,i){i===void 0&&(i={});var o=Object.assign({},this.options,i);return o.updateSelector===!1?!1:typeof n!="string"},e._isLossy=function(n){n===void 0&&(n={});var i=Object.assign({},this.options,n);return i.lossless===!1},e._root=function(n,i){i===void 0&&(i={});var o=new h1.default(n,this._parseOptions(i));return o.root},e._parseOptions=function(n){return{lossy:this._isLossy(n)}},e._run=function(n,i){var o=this;return i===void 0&&(i={}),new Promise(function(s,l){try{var a=o._root(n,i);Promise.resolve(o.func(a)).then(function(u){var c=void 0;return o._shouldUpdateSelector(n,i)&&(c=a.toString(),n.selector=c),{transform:u,root:a,string:c}}).then(s,l)}catch(u){l(u);return}})},e._runSync=function(n,i){i===void 0&&(i={});var o=this._root(n,i),s=this.func(o);if(s&&typeof s.then=="function")throw new Error("Selector processor returned a promise to a synchronous call.");var l=void 0;return i.updateSelector&&typeof n!="string"&&(l=o.toString(),n.selector=l),{transform:s,root:o,string:l}},e.ast=function(n,i){return this._run(n,i).then(function(o){return o.root})},e.astSync=function(n,i){return this._runSync(n,i).root},e.transform=function(n,i){return this._run(n,i).then(function(o){return o.transform})},e.transformSync=function(n,i){return this._runSync(n,i).transform},e.process=function(n,i){return this._run(n,i).then(function(o){return o.string||o.root.toString()})},e.processSync=function(n,i){var o=this._runSync(n,i);return o.string||o.root.toString()},t}();ii.default=g1;gp.exports=ii.default});var vp=j($e=>{"use strict";$e.__esModule=!0;$e.universal=$e.tag=$e.string=$e.selector=$e.root=$e.pseudo=$e.nesting=$e.id=$e.comment=$e.combinator=$e.className=$e.attribute=void 0;var b1=bt(Ua()),v1=bt(ka()),y1=bt(Va()),_1=bt(Ea()),w1=bt(Ca()),x1=bt(Ga()),k1=bt(Ma()),S1=bt(va()),E1=bt(_a()),O1=bt($a()),C1=bt(Ia()),A1=bt(za());function bt(t){return t&&t.__esModule?t:{default:t}}var T1=function(e){return new b1.default(e)};$e.attribute=T1;var I1=function(e){return new v1.default(e)};$e.className=I1;var P1=function(e){return new y1.default(e)};$e.combinator=P1;var $1=function(e){return new _1.default(e)};$e.comment=$1;var D1=function(e){return new w1.default(e)};$e.id=D1;var M1=function(e){return new x1.default(e)};$e.nesting=M1;var F1=function(e){return new k1.default(e)};$e.pseudo=F1;var L1=function(e){return new S1.default(e)};$e.root=L1;var N1=function(e){return new E1.default(e)};$e.selector=N1;var R1=function(e){return new O1.default(e)};$e.string=R1;var j1=function(e){return new C1.default(e)};$e.tag=j1;var q1=function(e){return new A1.default(e)};$e.universal=q1});var xp=j(me=>{"use strict";me.__esModule=!0;me.isComment=me.isCombinator=me.isClassName=me.isAttribute=void 0;me.isContainer=X1;me.isIdentifier=void 0;me.isNamespace=Z1;me.isNesting=void 0;me.isNode=nl;me.isPseudo=void 0;me.isPseudoClass=J1;me.isPseudoElement=wp;me.isUniversal=me.isTag=me.isString=me.isSelector=me.isRoot=void 0;var Re=Je(),ct,U1=(ct={},ct[Re.ATTRIBUTE]=!0,ct[Re.CLASS]=!0,ct[Re.COMBINATOR]=!0,ct[Re.COMMENT]=!0,ct[Re.ID]=!0,ct[Re.NESTING]=!0,ct[Re.PSEUDO]=!0,ct[Re.ROOT]=!0,ct[Re.SELECTOR]=!0,ct[Re.STRING]=!0,ct[Re.TAG]=!0,ct[Re.UNIVERSAL]=!0,ct);function nl(t){return typeof t=="object"&&U1[t.type]}function vt(t,e){return nl(e)&&e.type===t}var yp=vt.bind(null,Re.ATTRIBUTE);me.isAttribute=yp;var B1=vt.bind(null,Re.CLASS);me.isClassName=B1;var z1=vt.bind(null,Re.COMBINATOR);me.isCombinator=z1;var W1=vt.bind(null,Re.COMMENT);me.isComment=W1;var V1=vt.bind(null,Re.ID);me.isIdentifier=V1;var H1=vt.bind(null,Re.NESTING);me.isNesting=H1;var il=vt.bind(null,Re.PSEUDO);me.isPseudo=il;var G1=vt.bind(null,Re.ROOT);me.isRoot=G1;var Y1=vt.bind(null,Re.SELECTOR);me.isSelector=Y1;var Q1=vt.bind(null,Re.STRING);me.isString=Q1;var _p=vt.bind(null,Re.TAG);me.isTag=_p;var K1=vt.bind(null,Re.UNIVERSAL);me.isUniversal=K1;function wp(t){return il(t)&&t.value&&(t.value.startsWith("::")||t.value.toLowerCase()===":before"||t.value.toLowerCase()===":after"||t.value.toLowerCase()===":first-letter"||t.value.toLowerCase()===":first-line")}function J1(t){return il(t)&&!wp(t)}function X1(t){return!!(nl(t)&&t.walk)}function Z1(t){return yp(t)||_p(t)}});var kp=j(Ot=>{"use strict";Ot.__esModule=!0;var ol=Je();Object.keys(ol).forEach(function(t){t==="default"||t==="__esModule"||t in Ot&&Ot[t]===ol[t]||(Ot[t]=ol[t])});var sl=vp();Object.keys(sl).forEach(function(t){t==="default"||t==="__esModule"||t in Ot&&Ot[t]===sl[t]||(Ot[t]=sl[t])});var al=xp();Object.keys(al).forEach(function(t){t==="default"||t==="__esModule"||t in Ot&&Ot[t]===al[t]||(Ot[t]=al[t])})});var Ft=j((oi,Ep)=>{"use strict";oi.__esModule=!0;oi.default=void 0;var ex=nx(bp()),tx=rx(kp());function Sp(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,r=new WeakMap;return(Sp=function(i){return i?r:e})(t)}function rx(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var r=Sp(e);if(r&&r.has(t))return r.get(t);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var s=i?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=t[o]}return n.default=t,r&&r.set(t,n),n}function nx(t){return t&&t.__esModule?t:{default:t}}var ll=function(e){return new ex.default(e)};Object.assign(ll,tx);delete ll.__esModule;var ix=ll;oi.default=ix;Ep.exports=oi.default});var Ip=j((p3,dl)=>{var Cp=Ft();function fl(t,e){let r,n=Cp(i=>{r=i});try{n.processSync(t)}catch(i){throw t.includes(":")?e?e.error("Missed semicolon"):i:e?e.error(i.message):i}return r.at(0)}function Ap(t,e){let r=!1;return t.each(n=>{if(n.type==="nesting"){let i=e.clone();n.value!=="&"?n.replaceWith(fl(n.value.replace("&",i.toString()))):n.replaceWith(i),r=!0}else n.nodes&&Ap(n,e)&&(r=!0)}),r}function Tp(t,e){let r=[];return t.selectors.forEach(n=>{let i=fl(n,t);e.selectors.forEach(o=>{if(o.length){let s=fl(o,e);Ap(s,i)||(s.prepend(Cp.combinator({value:" "})),s.prepend(i.clone())),r.push(s.toString())}})}),r}function ul(t,e){return t&&t.type==="comment"?(e.after(t),t):e}function ox(t){return function e(r,n,i){let o=[];if(n.each(s=>{s.type==="comment"||s.type==="decl"?o.push(s):s.type==="rule"&&i?s.selectors=Tp(r,s):s.type==="atrule"&&(s.nodes&&t[s.name]?e(r,s,!0):o.push(s))}),i&&o.length){let s=r.clone({nodes:[]});for(let l of o)s.append(l);n.prepend(s)}}}function cl(t,e,r,n){let i=new n({selector:t,nodes:[]});for(let o of e)i.append(o);return r.after(i),i}function Op(t,e){let r={};for(let n of t)r[n]=!0;if(e)for(let n of e){let i=n.replace(/^@/,"");r[i]=!0}return r}dl.exports=(t={})=>{let e=Op(["media","supports"],t.bubble),r=ox(e),n=Op(["document","font-face","keyframes","-webkit-keyframes","-moz-keyframes"],t.unwrap),i=t.preserveEmpty;return{postcssPlugin:"postcss-nested",Rule(o,{Rule:s}){let l=!1,a=o,u=!1,c=[];o.each(p=>{if(p.type==="rule")c.length&&(a=cl(o.selector,c,a,s),c=[]),u=!0,l=!0,p.selectors=Tp(o,p),a=ul(p.prev(),a),a.after(p),a=p;else if(p.type==="atrule")if(c.length&&(a=cl(o.selector,c,a,s),c=[]),p.name==="at-root"){l=!0,r(o,p,!1);let d=p.nodes;p.params&&(d=new s({selector:p.params,nodes:d})),a.after(d),a=d,p.remove()}else e[p.name]?(u=!0,l=!0,r(o,p,!0),a=ul(p.prev(),a),a.after(p),a=p):n[p.name]?(u=!0,l=!0,r(o,p,!1),a=ul(p.prev(),a),a.after(p),a=p):u&&c.push(p);else p.type==="decl"&&u&&c.push(p)}),c.length&&(a=cl(o.selector,c,a,s)),l&&i!==!0&&(o.raws.semicolon=!0,o.nodes.length===0&&o.remove())}}};dl.exports.postcss=!0});var Mp=j((h3,Dp)=>{"use strict";var Pp=/-(\w|$)/g,$p=function(e,r){return r.toUpperCase()},sx=function(e){return e=e.toLowerCase(),e==="float"?"cssFloat":e.charCodeAt(0)===45&&e.charCodeAt(1)===109&&e.charCodeAt(2)===115&&e.charCodeAt(3)===45?e.substr(1).replace(Pp,$p):e.replace(Pp,$p)};Dp.exports=sx});var ml=j((m3,Fp)=>{var ax=Mp(),lx={boxFlex:!0,boxFlexGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0};function pl(t){return typeof t.nodes>"u"?!0:hl(t)}function hl(t){let e,r={};return t.each(n=>{if(n.type==="atrule")e="@"+n.name,n.params&&(e+=" "+n.params),typeof r[e]>"u"?r[e]=pl(n):Array.isArray(r[e])?r[e].push(pl(n)):r[e]=[r[e],pl(n)];else if(n.type==="rule"){let i=hl(n);if(r[n.selector])for(let o in i)r[n.selector][o]=i[o];else r[n.selector]=i}else if(n.type==="decl"){n.prop[0]==="-"&&n.prop[1]==="-"||n.parent&&n.parent.selector===":export"?e=n.prop:e=ax(n.prop);let i=n.value;!isNaN(n.value)&&lx[e]&&(i=parseFloat(n.value)),n.important&&(i+=" !important"),typeof r[e]>"u"?r[e]=i:Array.isArray(r[e])?r[e].push(i):r[e]=[r[e],i]}}),r}Fp.exports=hl});var $o=j((g3,jp)=>{var si=Nn(),Lp=/\s*!important\s*$/i,ux={"box-flex":!0,"box-flex-group":!0,"column-count":!0,flex:!0,"flex-grow":!0,"flex-positive":!0,"flex-shrink":!0,"flex-negative":!0,"font-weight":!0,"line-clamp":!0,"line-height":!0,opacity:!0,order:!0,orphans:!0,"tab-size":!0,widows:!0,"z-index":!0,zoom:!0,"fill-opacity":!0,"stroke-dashoffset":!0,"stroke-opacity":!0,"stroke-width":!0};function cx(t){return t.replace(/([A-Z])/g,"-$1").replace(/^ms-/,"-ms-").toLowerCase()}function Np(t,e,r){r===!1||r===null||(e.startsWith("--")||(e=cx(e)),typeof r=="number"&&(r===0||ux[e]?r=r.toString():r+="px"),e==="css-float"&&(e="float"),Lp.test(r)?(r=r.replace(Lp,""),t.push(si.decl({prop:e,value:r,important:!0}))):t.push(si.decl({prop:e,value:r})))}function Rp(t,e,r){let n=si.atRule({name:e[1],params:e[3]||""});typeof r=="object"&&(n.nodes=[],gl(r,n)),t.push(n)}function gl(t,e){let r,n,i;for(r in t)if(n=t[r],!(n===null||typeof n>"u"))if(r[0]==="@"){let o=r.match(/@(\S+)(\s+([\W\w]*)\s*)?/);if(Array.isArray(n))for(let s of n)Rp(e,o,s);else Rp(e,o,n)}else if(Array.isArray(n))for(let o of n)Np(e,r,o);else typeof n=="object"?(i=si.rule({selector:r}),gl(n,i),e.push(i)):Np(e,r,n)}jp.exports=function(t){let e=si.root();return gl(t,e),e}});var bl=j((b3,qp)=>{var fx=ml();qp.exports=function(e){return console&&console.warn&&e.warnings().forEach(r=>{let n=r.plugin||"PostCSS";console.warn(n+": "+r.text)}),fx(e.root)}});var Bp=j((v3,Up)=>{var dx=Nn(),px=bl(),hx=$o();Up.exports=function(e){let r=dx(e);return async n=>{let i=await r.process(n,{parser:hx,from:void 0});return px(i)}}});var Wp=j((y3,zp)=>{var mx=Nn(),gx=bl(),bx=$o();zp.exports=function(t){let e=mx(t);return r=>{let n=e.process(r,{parser:bx,from:void 0});return gx(n)}}});var Hp=j((_3,Vp)=>{var vx=ml(),yx=$o(),_x=Bp(),wx=Wp();Vp.exports={objectify:vx,parse:yx,async:_x,sync:wx}});var _l=j((vl,yl)=>{(function(t,e){typeof vl=="object"&&typeof yl<"u"?yl.exports=function(r,n,i,o,s){for(n=n.split?n.split("."):n,o=0;o{(function(){"use strict";function t(n,i,o){if(!n)return null;t.caseSensitive||(n=n.toLowerCase());var s=t.threshold===null?null:t.threshold*n.length,l=t.thresholdAbsolute,a;s!==null&&l!==null?a=Math.min(s,l):s!==null?a=s:l!==null?a=l:a=null;var u,c,p,d,f,g=i.length;for(f=0;fo)return o+1;var a=[],u,c,p,d,f;for(u=0;u<=l;u++)a[u]=[u];for(c=0;c<=s;c++)a[0][c]=c;for(u=1;u<=l;u++){for(p=e,d=1,u>o&&(d=u-o),f=l+1,f>o+u&&(f=o+u),c=1;c<=s;c++)cf?a[u][c]=o+1:i.charAt(u-1)===n.charAt(c-1)?a[u][c]=a[u-1][c-1]:a[u][c]=Math.min(a[u-1][c-1]+1,Math.min(a[u][c-1]+1,a[u-1][c]+1)),a[u][c]o)return o+1}return a[l][s]}})()});var ns=Ze(bu());function Jm(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function vu(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function yu(t){for(var e=1;e=0)&&(r[i]=t[i]);return r}function Zm(t,e){if(t==null)return{};var r=Xm(t,e),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function eg(t,e){return tg(t)||rg(t,e)||ng(t,e)||ig()}function tg(t){if(Array.isArray(t))return t}function rg(t,e){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(t)))){var r=[],n=!0,i=!1,o=void 0;try{for(var s=t[Symbol.iterator](),l;!(n=(l=s.next()).done)&&(r.push(l.value),!(e&&r.length===e));n=!0);}catch(a){i=!0,o=a}finally{try{!n&&s.return!=null&&s.return()}finally{if(i)throw o}}return r}}function ng(t,e){if(t){if(typeof t=="string")return _u(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _u(t,e)}}function _u(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r=t.length?t.apply(this,i):function(){for(var s=arguments.length,l=new Array(s),a=0;a1&&arguments[1]!==void 0?arguments[1]:{};ki.initial(t),ki.handler(e);var r={current:t},n=Jr(vg)(r,e),i=Jr(bg)(r),o=Jr(ki.changes)(t),s=Jr(gg)(r);function l(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(c){return c};return ki.selector(u),u(r.current)}function a(u){sg(n,i,o,s)(u)}return[l,a]}function gg(t,e){return Xr(e)?e(t.current):e}function bg(t,e){return t.current=xu(xu({},t.current),e),e}function vg(t,e,r){return Xr(e)?e(t.current):Object.keys(r).forEach(function(n){var i;return(i=e[n])===null||i===void 0?void 0:i.call(e,t.current[n])}),r}var yg={create:mg},_g=yg,wg={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}},xg=wg;function kg(t){return function e(){for(var r=this,n=arguments.length,i=new Array(n),o=0;o=t.length?t.apply(this,i):function(){for(var s=arguments.length,l=new Array(s),a=0;anew hd(t);ye.atRule=t=>new pd(t);ye.decl=t=>new md(t);ye.rule=t=>new vd(t);ye.root=t=>new bd(t);ye.document=t=>new gd(t);ye.CssSyntaxError=ry;ye.Declaration=md;ye.Container=ty;ye.Processor=ma;ye.Document=gd;ye.Comment=hd;ye.Warning=fy;ye.AtRule=pd;ye.Result=uy;ye.Input=iy;ye.Rule=vd;ye.Root=bd;ye.Node=ay;oy.registerPostcss(ye);yd.exports=ye;ye.default=ye});var _o=j((yo,_d)=>{"use strict";yo.__esModule=!0;yo.default=hy;function dy(t){for(var e=t.toLowerCase(),r="",n=!1,i=0;i<6&&e[i]!==void 0;i++){var o=e.charCodeAt(i),s=o>=97&&o<=102||o>=48&&o<=57;if(n=o===32,!s)break;r+=e[i]}if(r.length!==0){var l=parseInt(r,16),a=l>=55296&&l<=57343;return a||l===0||l>1114111?["\uFFFD",r.length+(n?1:0)]:[String.fromCodePoint(l),r.length+(n?1:0)]}}var py=/\\/;function hy(t){var e=py.test(t);if(!e)return t;for(var r="",n=0;n{"use strict";wo.__esModule=!0;wo.default=my;function my(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n0;){var i=r.shift();if(!t[i])return;t=t[i]}return t}wd.exports=wo.default});var Sd=j((xo,kd)=>{"use strict";xo.__esModule=!0;xo.default=gy;function gy(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n0;){var i=r.shift();t[i]||(t[i]={}),t=t[i]}}kd.exports=xo.default});var Od=j((ko,Ed)=>{"use strict";ko.__esModule=!0;ko.default=by;function by(t){for(var e="",r=t.indexOf("/*"),n=0;r>=0;){e=e+t.slice(n,r);var i=t.indexOf("*/",r+2);if(i<0)return e;n=i+2,r=t.indexOf("/*",n)}return e=e+t.slice(n),e}Ed.exports=ko.default});var Rn=j(Lt=>{"use strict";Lt.__esModule=!0;Lt.unesc=Lt.stripComments=Lt.getProp=Lt.ensureObject=void 0;var vy=So(_o());Lt.unesc=vy.default;var yy=So(xd());Lt.getProp=yy.default;var _y=So(Sd());Lt.ensureObject=_y.default;var wy=So(Od());Lt.stripComments=wy.default;function So(t){return t&&t.__esModule?t:{default:t}}});var Gt=j((jn,Td)=>{"use strict";jn.__esModule=!0;jn.default=void 0;var Cd=Rn();function Ad(t,e){for(var r=0;rn||this.source.end.linei||this.source.end.line===n&&this.source.end.column{"use strict";$e.__esModule=!0;$e.UNIVERSAL=$e.TAG=$e.STRING=$e.SELECTOR=$e.ROOT=$e.PSEUDO=$e.NESTING=$e.ID=$e.COMMENT=$e.COMBINATOR=$e.CLASS=$e.ATTRIBUTE=void 0;var Ey="tag";$e.TAG=Ey;var Oy="string";$e.STRING=Oy;var Cy="selector";$e.SELECTOR=Cy;var Ay="root";$e.ROOT=Ay;var Ty="pseudo";$e.PSEUDO=Ty;var Iy="nesting";$e.NESTING=Iy;var Py="id";$e.ID=Py;var $y="comment";$e.COMMENT=$y;var Dy="combinator";$e.COMBINATOR=Dy;var My="class";$e.CLASS=My;var Fy="attribute";$e.ATTRIBUTE=Fy;var Ly="universal";$e.UNIVERSAL=Ly});var Eo=j((qn,Dd)=>{"use strict";qn.__esModule=!0;qn.default=void 0;var Ny=jy(Gt()),Yt=Ry(et());function $d(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,r=new WeakMap;return($d=function(i){return i?r:e})(t)}function Ry(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var r=$d(e);if(r&&r.has(t))return r.get(t);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var s=i?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=t[o]}return n.default=t,r&&r.set(t,n),n}function jy(t){return t&&t.__esModule?t:{default:t}}function qy(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=Uy(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Uy(t,e){if(t){if(typeof t=="string")return Id(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Id(t,e)}}function Id(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r=i&&(this.indexes[s]=o-1);return this},r.removeAll=function(){for(var i=qy(this.nodes),o;!(o=i()).done;){var s=o.value;s.parent=void 0}return this.nodes=[],this},r.empty=function(){return this.removeAll()},r.insertAfter=function(i,o){o.parent=this;var s=this.index(i);this.nodes.splice(s+1,0,o),o.parent=this;var l;for(var a in this.indexes)l=this.indexes[a],s<=l&&(this.indexes[a]=l+1);return this},r.insertBefore=function(i,o){o.parent=this;var s=this.index(i);this.nodes.splice(s,0,o),o.parent=this;var l;for(var a in this.indexes)l=this.indexes[a],l<=s&&(this.indexes[a]=l+1);return this},r._findChildAtPosition=function(i,o){var s=void 0;return this.each(function(l){if(l.atPosition){var a=l.atPosition(i,o);if(a)return s=a,!1}else if(l.isAtPosition(i,o))return s=l,!1}),s},r.atPosition=function(i,o){if(this.isAtPosition(i,o))return this._findChildAtPosition(i,o)||this},r._inferEndPosition=function(){this.last&&this.last.source&&this.last.source.end&&(this.source=this.source||{},this.source.end=this.source.end||{},Object.assign(this.source.end,this.last.source.end))},r.each=function(i){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var o=this.lastEach;if(this.indexes[o]=0,!!this.length){for(var s,l;this.indexes[o]{"use strict";Un.__esModule=!0;Un.default=void 0;var Vy=Gy(Eo()),Hy=et();function Gy(t){return t&&t.__esModule?t:{default:t}}function Md(t,e){for(var r=0;r{"use strict";Bn.__esModule=!0;Bn.default=void 0;var Jy=Zy(Eo()),Xy=et();function Zy(t){return t&&t.__esModule?t:{default:t}}function e_(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,ya(t,e)}function ya(t,e){return ya=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ya(t,e)}var t_=function(t){e_(e,t);function e(r){var n;return n=t.call(this,r)||this,n.type=Xy.SELECTOR,n}return e}(Jy.default);Bn.default=t_;Ld.exports=Bn.default});var Oo=j((l3,Nd)=>{"use strict";var r_={},n_=r_.hasOwnProperty,i_=function(e,r){if(!e)return r;var n={};for(var i in r)n[i]=n_.call(e,i)?e[i]:r[i];return n},o_=/[ -,\.\/:-@\[-\^`\{-~]/,s_=/[ -,\.\/:-@\[\]\^`\{-~]/,a_=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,wa=function t(e,r){r=i_(r,t.options),r.quotes!="single"&&r.quotes!="double"&&(r.quotes="single");for(var n=r.quotes=="double"?'"':"'",i=r.isIdentifier,o=e.charAt(0),s="",l=0,a=e.length;l126){if(c>=55296&&c<=56319&&l{"use strict";zn.__esModule=!0;zn.default=void 0;var l_=jd(Oo()),u_=Rn(),c_=jd(Gt()),f_=et();function jd(t){return t&&t.__esModule?t:{default:t}}function Rd(t,e){for(var r=0;r{"use strict";Wn.__esModule=!0;Wn.default=void 0;var m_=b_(Gt()),g_=et();function b_(t){return t&&t.__esModule?t:{default:t}}function v_(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Sa(t,e)}function Sa(t,e){return Sa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Sa(t,e)}var y_=function(t){v_(e,t);function e(r){var n;return n=t.call(this,r)||this,n.type=g_.COMMENT,n}return e}(m_.default);Wn.default=y_;Ud.exports=Wn.default});var Ca=j((Vn,Bd)=>{"use strict";Vn.__esModule=!0;Vn.default=void 0;var __=x_(Gt()),w_=et();function x_(t){return t&&t.__esModule?t:{default:t}}function k_(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Oa(t,e)}function Oa(t,e){return Oa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Oa(t,e)}var S_=function(t){k_(e,t);function e(n){var i;return i=t.call(this,n)||this,i.type=w_.ID,i}var r=e.prototype;return r.valueToString=function(){return"#"+t.prototype.valueToString.call(this)},e}(__.default);Vn.default=S_;Bd.exports=Vn.default});var Co=j((Hn,Vd)=>{"use strict";Hn.__esModule=!0;Hn.default=void 0;var E_=Wd(Oo()),O_=Rn(),C_=Wd(Gt());function Wd(t){return t&&t.__esModule?t:{default:t}}function zd(t,e){for(var r=0;r{"use strict";Gn.__esModule=!0;Gn.default=void 0;var P_=D_(Co()),$_=et();function D_(t){return t&&t.__esModule?t:{default:t}}function M_(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Ta(t,e)}function Ta(t,e){return Ta=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ta(t,e)}var F_=function(t){M_(e,t);function e(r){var n;return n=t.call(this,r)||this,n.type=$_.TAG,n}return e}(P_.default);Gn.default=F_;Hd.exports=Gn.default});var $a=j((Yn,Gd)=>{"use strict";Yn.__esModule=!0;Yn.default=void 0;var L_=R_(Gt()),N_=et();function R_(t){return t&&t.__esModule?t:{default:t}}function j_(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Pa(t,e)}function Pa(t,e){return Pa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Pa(t,e)}var q_=function(t){j_(e,t);function e(r){var n;return n=t.call(this,r)||this,n.type=N_.STRING,n}return e}(L_.default);Yn.default=q_;Gd.exports=Yn.default});var Ma=j((Qn,Yd)=>{"use strict";Qn.__esModule=!0;Qn.default=void 0;var U_=z_(Eo()),B_=et();function z_(t){return t&&t.__esModule?t:{default:t}}function W_(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Da(t,e)}function Da(t,e){return Da=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Da(t,e)}var V_=function(t){W_(e,t);function e(n){var i;return i=t.call(this,n)||this,i.type=B_.PSEUDO,i}var r=e.prototype;return r.toString=function(){var i=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),i,this.rawSpaceAfter].join("")},e}(U_.default);Qn.default=V_;Yd.exports=Qn.default});var Kd=j((u3,Qd)=>{Qd.exports=H_;function H_(t,e){if(Fa("noDeprecation"))return t;var r=!1;function n(){if(!r){if(Fa("throwDeprecation"))throw new Error(e);Fa("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}return n}function Fa(t){try{if(!global.localStorage)return!1}catch{return!1}var e=global.localStorage[t];return e==null?!1:String(e).toLowerCase()==="true"}});var Ua=j(Xn=>{"use strict";Xn.__esModule=!0;Xn.default=void 0;Xn.unescapeValue=qa;var Kn=ja(Oo()),G_=ja(_o()),Y_=ja(Co()),Q_=et(),La;function ja(t){return t&&t.__esModule?t:{default:t}}function Jd(t,e){for(var r=0;r0&&!i.quoted&&l.before.length===0&&!(i.spaces.value&&i.spaces.value.after)&&(l.before=" "),Xd(s,l)}))),o.push("]"),o.push(this.rawSpaceAfter),o.join("")},K_(e,[{key:"quoted",get:function(){var i=this.quoteMark;return i==="'"||i==='"'},set:function(i){ew()}},{key:"quoteMark",get:function(){return this._quoteMark},set:function(i){if(!this._constructed){this._quoteMark=i;return}this._quoteMark!==i&&(this._quoteMark=i,this._syncRawValue())}},{key:"qualifiedAttribute",get:function(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:"insensitiveFlag",get:function(){return this.insensitive?"i":""}},{key:"value",get:function(){return this._value},set:function(i){if(this._constructed){var o=qa(i),s=o.deprecatedUsage,l=o.unescaped,a=o.quoteMark;if(s&&Z_(),l===this._value&&a===this._quoteMark)return;this._value=l,this._quoteMark=a,this._syncRawValue()}else this._value=i}},{key:"insensitive",get:function(){return this._insensitive},set:function(i){i||(this._insensitive=!1,this.raws&&(this.raws.insensitiveFlag==="I"||this.raws.insensitiveFlag==="i")&&(this.raws.insensitiveFlag=void 0)),this._insensitive=i}},{key:"attribute",get:function(){return this._attribute},set:function(i){this._handleEscapes("attribute",i),this._attribute=i}}]),e}(Y_.default);Xn.default=Ao;Ao.NO_QUOTE=null;Ao.SINGLE_QUOTE="'";Ao.DOUBLE_QUOTE='"';var Na=(La={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},La[null]={isIdentifier:!0},La);function Xd(t,e){return""+e.before+t+e.after}});var za=j((Zn,Zd)=>{"use strict";Zn.__esModule=!0;Zn.default=void 0;var nw=ow(Co()),iw=et();function ow(t){return t&&t.__esModule?t:{default:t}}function sw(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Ba(t,e)}function Ba(t,e){return Ba=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ba(t,e)}var aw=function(t){sw(e,t);function e(r){var n;return n=t.call(this,r)||this,n.type=iw.UNIVERSAL,n.value="*",n}return e}(nw.default);Zn.default=aw;Zd.exports=Zn.default});var Va=j((ei,ep)=>{"use strict";ei.__esModule=!0;ei.default=void 0;var lw=cw(Gt()),uw=et();function cw(t){return t&&t.__esModule?t:{default:t}}function fw(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Wa(t,e)}function Wa(t,e){return Wa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Wa(t,e)}var dw=function(t){fw(e,t);function e(r){var n;return n=t.call(this,r)||this,n.type=uw.COMBINATOR,n}return e}(lw.default);ei.default=dw;ep.exports=ei.default});var Ga=j((ti,tp)=>{"use strict";ti.__esModule=!0;ti.default=void 0;var pw=mw(Gt()),hw=et();function mw(t){return t&&t.__esModule?t:{default:t}}function gw(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Ha(t,e)}function Ha(t,e){return Ha=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ha(t,e)}var bw=function(t){gw(e,t);function e(r){var n;return n=t.call(this,r)||this,n.type=hw.NESTING,n.value="&",n}return e}(pw.default);ti.default=bw;tp.exports=ti.default});var np=j((To,rp)=>{"use strict";To.__esModule=!0;To.default=vw;function vw(t){return t.sort(function(e,r){return e-r})}rp.exports=To.default});var Ya=j(H=>{"use strict";H.__esModule=!0;H.word=H.tilde=H.tab=H.str=H.space=H.slash=H.singleQuote=H.semicolon=H.plus=H.pipe=H.openSquare=H.openParenthesis=H.newline=H.greaterThan=H.feed=H.equals=H.doubleQuote=H.dollar=H.cr=H.comment=H.comma=H.combinator=H.colon=H.closeSquare=H.closeParenthesis=H.caret=H.bang=H.backslash=H.at=H.asterisk=H.ampersand=void 0;var yw=38;H.ampersand=yw;var _w=42;H.asterisk=_w;var ww=64;H.at=ww;var xw=44;H.comma=xw;var kw=58;H.colon=kw;var Sw=59;H.semicolon=Sw;var Ew=40;H.openParenthesis=Ew;var Ow=41;H.closeParenthesis=Ow;var Cw=91;H.openSquare=Cw;var Aw=93;H.closeSquare=Aw;var Tw=36;H.dollar=Tw;var Iw=126;H.tilde=Iw;var Pw=94;H.caret=Pw;var $w=43;H.plus=$w;var Dw=61;H.equals=Dw;var Mw=124;H.pipe=Mw;var Fw=62;H.greaterThan=Fw;var Lw=32;H.space=Lw;var ip=39;H.singleQuote=ip;var Nw=34;H.doubleQuote=Nw;var Rw=47;H.slash=Rw;var jw=33;H.bang=jw;var qw=92;H.backslash=qw;var Uw=13;H.cr=Uw;var Bw=12;H.feed=Bw;var zw=10;H.newline=zw;var Ww=9;H.tab=Ww;var Vw=ip;H.str=Vw;var Hw=-1;H.comment=Hw;var Gw=-2;H.word=Gw;var Yw=-3;H.combinator=Yw});var ap=j(ri=>{"use strict";ri.__esModule=!0;ri.FIELDS=void 0;ri.default=t1;var q=Qw(Ya()),Ur,Ae;function sp(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,r=new WeakMap;return(sp=function(i){return i?r:e})(t)}function Qw(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var r=sp(e);if(r&&r.has(t))return r.get(t);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var s=i?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=t[o]}return n.default=t,r&&r.set(t,n),n}var Kw=(Ur={},Ur[q.tab]=!0,Ur[q.newline]=!0,Ur[q.cr]=!0,Ur[q.feed]=!0,Ur),Jw=(Ae={},Ae[q.space]=!0,Ae[q.tab]=!0,Ae[q.newline]=!0,Ae[q.cr]=!0,Ae[q.feed]=!0,Ae[q.ampersand]=!0,Ae[q.asterisk]=!0,Ae[q.bang]=!0,Ae[q.comma]=!0,Ae[q.colon]=!0,Ae[q.semicolon]=!0,Ae[q.openParenthesis]=!0,Ae[q.closeParenthesis]=!0,Ae[q.openSquare]=!0,Ae[q.closeSquare]=!0,Ae[q.singleQuote]=!0,Ae[q.doubleQuote]=!0,Ae[q.plus]=!0,Ae[q.pipe]=!0,Ae[q.tilde]=!0,Ae[q.greaterThan]=!0,Ae[q.equals]=!0,Ae[q.dollar]=!0,Ae[q.caret]=!0,Ae[q.slash]=!0,Ae),Qa={},op="0123456789abcdefABCDEF";for(Io=0;Io0?(b=s+w,v=m-h[w].length):(b=s,v=o),y=q.comment,s=b,d=b,p=m-v):u===q.slash?(m=l,y=u,d=s,p=l-o,a=m+1):(m=Xw(r,l),y=q.word,d=s,p=m-o),a=m+1;break}e.push([y,s,l-o,d,p,l,a]),v&&(o=v,v=null),l=a}return e}});var mp=j((ni,hp)=>{"use strict";ni.__esModule=!0;ni.default=void 0;var r1=yt(va()),Ka=yt(_a()),n1=yt(ka()),lp=yt(Ea()),i1=yt(Ca()),o1=yt(Ia()),Ja=yt($a()),s1=yt(Ma()),up=Po(Ua()),a1=yt(za()),Xa=yt(Va()),l1=yt(Ga()),u1=yt(np()),N=Po(ap()),z=Po(Ya()),c1=Po(et()),qe=Rn(),wr,Za;function pp(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,r=new WeakMap;return(pp=function(i){return i?r:e})(t)}function Po(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var r=pp(e);if(r&&r.has(t))return r.get(t);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var s=i?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=t[o]}return n.default=t,r&&r.set(t,n),n}function yt(t){return t&&t.__esModule?t:{default:t}}function cp(t,e){for(var r=0;r0){var s=this.current.last;if(s){var l=this.convertWhitespaceNodesToSpace(o),a=l.space,u=l.rawSpace;u!==void 0&&(s.rawSpaceAfter+=u),s.spaces.after+=a}else o.forEach(function(y){return n.newNode(y)})}return}var c=this.currToken,p=void 0;i>this.position&&(p=this.parseWhitespaceEquivalentTokens(i));var d;if(this.isNamedCombinator()?d=this.namedCombinator():this.currToken[N.FIELDS.TYPE]===z.combinator?(d=new Xa.default({value:this.content(),source:Br(this.currToken),sourceIndex:this.currToken[N.FIELDS.START_POS]}),this.position++):rl[this.currToken[N.FIELDS.TYPE]]||p||this.unexpected(),d){if(p){var f=this.convertWhitespaceNodesToSpace(p),g=f.space,w=f.rawSpace;d.spaces.before=g,d.rawSpaceBefore=w}}else{var h=this.convertWhitespaceNodesToSpace(p,!0),m=h.space,b=h.rawSpace;b||(b=m);var v={},_={spaces:{}};m.endsWith(" ")&&b.endsWith(" ")?(v.before=m.slice(0,m.length-1),_.spaces.before=b.slice(0,b.length-1)):m.startsWith(" ")&&b.startsWith(" ")?(v.after=m.slice(1),_.spaces.after=b.slice(1)):_.value=b,d=new Xa.default({value:" ",source:el(c,this.tokens[this.position-1]),sourceIndex:c[N.FIELDS.START_POS],spaces:v,raws:_})}return this.currToken&&this.currToken[N.FIELDS.TYPE]===z.space&&(d.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(d)},e.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var n=new Ka.default({source:{start:fp(this.tokens[this.position+1])}});this.current.parent.append(n),this.current=n,this.position++},e.comment=function(){var n=this.currToken;this.newNode(new lp.default({value:this.content(),source:Br(n),sourceIndex:n[N.FIELDS.START_POS]})),this.position++},e.error=function(n,i){throw this.root.error(n,i)},e.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[N.FIELDS.START_POS]})},e.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[N.FIELDS.START_POS])},e.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[N.FIELDS.START_POS])},e.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[N.FIELDS.START_POS])},e.unexpectedPipe=function(){return this.error("Unexpected '|'.",this.currToken[N.FIELDS.START_POS])},e.namespace=function(){var n=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[N.FIELDS.TYPE]===z.word)return this.position++,this.word(n);if(this.nextToken[N.FIELDS.TYPE]===z.asterisk)return this.position++,this.universal(n);this.unexpectedPipe()},e.nesting=function(){if(this.nextToken){var n=this.content(this.nextToken);if(n==="|"){this.position++;return}}var i=this.currToken;this.newNode(new l1.default({value:this.content(),source:Br(i),sourceIndex:i[N.FIELDS.START_POS]})),this.position++},e.parentheses=function(){var n=this.current.last,i=1;if(this.position++,n&&n.type===c1.PSEUDO){var o=new Ka.default({source:{start:fp(this.tokens[this.position-1])}}),s=this.current;for(n.append(o),this.current=o;this.position1&&n.nextToken&&n.nextToken[N.FIELDS.TYPE]===z.openParenthesis&&n.error("Misplaced parenthesis.",{index:n.nextToken[N.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[N.FIELDS.START_POS])},e.space=function(){var n=this.content();this.position===0||this.prevToken[N.FIELDS.TYPE]===z.comma||this.prevToken[N.FIELDS.TYPE]===z.openParenthesis||this.current.nodes.every(function(i){return i.type==="comment"})?(this.spaces=this.optionalSpace(n),this.position++):this.position===this.tokens.length-1||this.nextToken[N.FIELDS.TYPE]===z.comma||this.nextToken[N.FIELDS.TYPE]===z.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(n),this.position++):this.combinator()},e.string=function(){var n=this.currToken;this.newNode(new Ja.default({value:this.content(),source:Br(n),sourceIndex:n[N.FIELDS.START_POS]})),this.position++},e.universal=function(n){var i=this.nextToken;if(i&&this.content(i)==="|")return this.position++,this.namespace();var o=this.currToken;this.newNode(new a1.default({value:this.content(),source:Br(o),sourceIndex:o[N.FIELDS.START_POS]}),n),this.position++},e.splitWord=function(n,i){for(var o=this,s=this.nextToken,l=this.content();s&&~[z.dollar,z.caret,z.equals,z.word].indexOf(s[N.FIELDS.TYPE]);){this.position++;var a=this.content();if(l+=a,a.lastIndexOf("\\")===a.length-1){var u=this.nextToken;u&&u[N.FIELDS.TYPE]===z.space&&(l+=this.requiredSpace(this.content(u)),this.position++)}s=this.nextToken}var c=tl(l,".").filter(function(g){var w=l[g-1]==="\\",h=/^\d+\.\d+%$/.test(l);return!w&&!h}),p=tl(l,"#").filter(function(g){return l[g-1]!=="\\"}),d=tl(l,"#{");d.length&&(p=p.filter(function(g){return!~d.indexOf(g)}));var f=(0,u1.default)(p1([0].concat(c,p)));f.forEach(function(g,w){var h=f[w+1]||l.length,m=l.slice(g,h);if(w===0&&i)return i.call(o,m,f.length);var b,v=o.currToken,_=v[N.FIELDS.START_POS]+f[w],y=xr(v[1],v[2]+g,v[3],v[2]+(h-1));if(~c.indexOf(g)){var C={value:m.slice(1),source:y,sourceIndex:_};b=new n1.default(zr(C,"value"))}else if(~p.indexOf(g)){var E={value:m.slice(1),source:y,sourceIndex:_};b=new i1.default(zr(E,"value"))}else{var S={value:m,source:y,sourceIndex:_};zr(S,"value"),b=new o1.default(S)}o.newNode(b,n),n=null}),this.position++},e.word=function(n){var i=this.nextToken;return i&&this.content(i)==="|"?(this.position++,this.namespace()):this.splitWord(n)},e.loop=function(){for(;this.position{"use strict";ii.__esModule=!0;ii.default=void 0;var m1=g1(mp());function g1(t){return t&&t.__esModule?t:{default:t}}var b1=function(){function t(r,n){this.func=r||function(){},this.funcRes=null,this.options=n}var e=t.prototype;return e._shouldUpdateSelector=function(n,i){i===void 0&&(i={});var o=Object.assign({},this.options,i);return o.updateSelector===!1?!1:typeof n!="string"},e._isLossy=function(n){n===void 0&&(n={});var i=Object.assign({},this.options,n);return i.lossless===!1},e._root=function(n,i){i===void 0&&(i={});var o=new m1.default(n,this._parseOptions(i));return o.root},e._parseOptions=function(n){return{lossy:this._isLossy(n)}},e._run=function(n,i){var o=this;return i===void 0&&(i={}),new Promise(function(s,l){try{var a=o._root(n,i);Promise.resolve(o.func(a)).then(function(u){var c=void 0;return o._shouldUpdateSelector(n,i)&&(c=a.toString(),n.selector=c),{transform:u,root:a,string:c}}).then(s,l)}catch(u){l(u);return}})},e._runSync=function(n,i){i===void 0&&(i={});var o=this._root(n,i),s=this.func(o);if(s&&typeof s.then=="function")throw new Error("Selector processor returned a promise to a synchronous call.");var l=void 0;return i.updateSelector&&typeof n!="string"&&(l=o.toString(),n.selector=l),{transform:s,root:o,string:l}},e.ast=function(n,i){return this._run(n,i).then(function(o){return o.root})},e.astSync=function(n,i){return this._runSync(n,i).root},e.transform=function(n,i){return this._run(n,i).then(function(o){return o.transform})},e.transformSync=function(n,i){return this._runSync(n,i).transform},e.process=function(n,i){return this._run(n,i).then(function(o){return o.string||o.root.toString()})},e.processSync=function(n,i){var o=this._runSync(n,i);return o.string||o.root.toString()},t}();ii.default=b1;gp.exports=ii.default});var vp=j(De=>{"use strict";De.__esModule=!0;De.universal=De.tag=De.string=De.selector=De.root=De.pseudo=De.nesting=De.id=De.comment=De.combinator=De.className=De.attribute=void 0;var v1=_t(Ua()),y1=_t(ka()),_1=_t(Va()),w1=_t(Ea()),x1=_t(Ca()),k1=_t(Ga()),S1=_t(Ma()),E1=_t(va()),O1=_t(_a()),C1=_t($a()),A1=_t(Ia()),T1=_t(za());function _t(t){return t&&t.__esModule?t:{default:t}}var I1=function(e){return new v1.default(e)};De.attribute=I1;var P1=function(e){return new y1.default(e)};De.className=P1;var $1=function(e){return new _1.default(e)};De.combinator=$1;var D1=function(e){return new w1.default(e)};De.comment=D1;var M1=function(e){return new x1.default(e)};De.id=M1;var F1=function(e){return new k1.default(e)};De.nesting=F1;var L1=function(e){return new S1.default(e)};De.pseudo=L1;var N1=function(e){return new E1.default(e)};De.root=N1;var R1=function(e){return new O1.default(e)};De.selector=R1;var j1=function(e){return new C1.default(e)};De.string=j1;var q1=function(e){return new A1.default(e)};De.tag=q1;var U1=function(e){return new T1.default(e)};De.universal=U1});var xp=j(me=>{"use strict";me.__esModule=!0;me.isComment=me.isCombinator=me.isClassName=me.isAttribute=void 0;me.isContainer=Z1;me.isIdentifier=void 0;me.isNamespace=ex;me.isNesting=void 0;me.isNode=nl;me.isPseudo=void 0;me.isPseudoClass=X1;me.isPseudoElement=wp;me.isUniversal=me.isTag=me.isString=me.isSelector=me.isRoot=void 0;var Ue=et(),pt,B1=(pt={},pt[Ue.ATTRIBUTE]=!0,pt[Ue.CLASS]=!0,pt[Ue.COMBINATOR]=!0,pt[Ue.COMMENT]=!0,pt[Ue.ID]=!0,pt[Ue.NESTING]=!0,pt[Ue.PSEUDO]=!0,pt[Ue.ROOT]=!0,pt[Ue.SELECTOR]=!0,pt[Ue.STRING]=!0,pt[Ue.TAG]=!0,pt[Ue.UNIVERSAL]=!0,pt);function nl(t){return typeof t=="object"&&B1[t.type]}function wt(t,e){return nl(e)&&e.type===t}var yp=wt.bind(null,Ue.ATTRIBUTE);me.isAttribute=yp;var z1=wt.bind(null,Ue.CLASS);me.isClassName=z1;var W1=wt.bind(null,Ue.COMBINATOR);me.isCombinator=W1;var V1=wt.bind(null,Ue.COMMENT);me.isComment=V1;var H1=wt.bind(null,Ue.ID);me.isIdentifier=H1;var G1=wt.bind(null,Ue.NESTING);me.isNesting=G1;var il=wt.bind(null,Ue.PSEUDO);me.isPseudo=il;var Y1=wt.bind(null,Ue.ROOT);me.isRoot=Y1;var Q1=wt.bind(null,Ue.SELECTOR);me.isSelector=Q1;var K1=wt.bind(null,Ue.STRING);me.isString=K1;var _p=wt.bind(null,Ue.TAG);me.isTag=_p;var J1=wt.bind(null,Ue.UNIVERSAL);me.isUniversal=J1;function wp(t){return il(t)&&t.value&&(t.value.startsWith("::")||t.value.toLowerCase()===":before"||t.value.toLowerCase()===":after"||t.value.toLowerCase()===":first-letter"||t.value.toLowerCase()===":first-line")}function X1(t){return il(t)&&!wp(t)}function Z1(t){return!!(nl(t)&&t.walk)}function ex(t){return yp(t)||_p(t)}});var kp=j(It=>{"use strict";It.__esModule=!0;var ol=et();Object.keys(ol).forEach(function(t){t==="default"||t==="__esModule"||t in It&&It[t]===ol[t]||(It[t]=ol[t])});var sl=vp();Object.keys(sl).forEach(function(t){t==="default"||t==="__esModule"||t in It&&It[t]===sl[t]||(It[t]=sl[t])});var al=xp();Object.keys(al).forEach(function(t){t==="default"||t==="__esModule"||t in It&&It[t]===al[t]||(It[t]=al[t])})});var Nt=j((oi,Ep)=>{"use strict";oi.__esModule=!0;oi.default=void 0;var tx=ix(bp()),rx=nx(kp());function Sp(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,r=new WeakMap;return(Sp=function(i){return i?r:e})(t)}function nx(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var r=Sp(e);if(r&&r.has(t))return r.get(t);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)){var s=i?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=t[o]}return n.default=t,r&&r.set(t,n),n}function ix(t){return t&&t.__esModule?t:{default:t}}var ll=function(e){return new tx.default(e)};Object.assign(ll,rx);delete ll.__esModule;var ox=ll;oi.default=ox;Ep.exports=oi.default});var Ip=j((g3,dl)=>{var Cp=Nt();function fl(t,e){let r,n=Cp(i=>{r=i});try{n.processSync(t)}catch(i){throw t.includes(":")?e?e.error("Missed semicolon"):i:e?e.error(i.message):i}return r.at(0)}function Ap(t,e){let r=!1;return t.each(n=>{if(n.type==="nesting"){let i=e.clone();n.value!=="&"?n.replaceWith(fl(n.value.replace("&",i.toString()))):n.replaceWith(i),r=!0}else n.nodes&&Ap(n,e)&&(r=!0)}),r}function Tp(t,e){let r=[];return t.selectors.forEach(n=>{let i=fl(n,t);e.selectors.forEach(o=>{if(o.length){let s=fl(o,e);Ap(s,i)||(s.prepend(Cp.combinator({value:" "})),s.prepend(i.clone())),r.push(s.toString())}})}),r}function ul(t,e){return t&&t.type==="comment"?(e.after(t),t):e}function sx(t){return function e(r,n,i){let o=[];if(n.each(s=>{s.type==="comment"||s.type==="decl"?o.push(s):s.type==="rule"&&i?s.selectors=Tp(r,s):s.type==="atrule"&&(s.nodes&&t[s.name]?e(r,s,!0):o.push(s))}),i&&o.length){let s=r.clone({nodes:[]});for(let l of o)s.append(l);n.prepend(s)}}}function cl(t,e,r,n){let i=new n({selector:t,nodes:[]});for(let o of e)i.append(o);return r.after(i),i}function Op(t,e){let r={};for(let n of t)r[n]=!0;if(e)for(let n of e){let i=n.replace(/^@/,"");r[i]=!0}return r}dl.exports=(t={})=>{let e=Op(["media","supports"],t.bubble),r=sx(e),n=Op(["document","font-face","keyframes","-webkit-keyframes","-moz-keyframes"],t.unwrap),i=t.preserveEmpty;return{postcssPlugin:"postcss-nested",Rule(o,{Rule:s}){let l=!1,a=o,u=!1,c=[];o.each(p=>{if(p.type==="rule")c.length&&(a=cl(o.selector,c,a,s),c=[]),u=!0,l=!0,p.selectors=Tp(o,p),a=ul(p.prev(),a),a.after(p),a=p;else if(p.type==="atrule")if(c.length&&(a=cl(o.selector,c,a,s),c=[]),p.name==="at-root"){l=!0,r(o,p,!1);let d=p.nodes;p.params&&(d=new s({selector:p.params,nodes:d})),a.after(d),a=d,p.remove()}else e[p.name]?(u=!0,l=!0,r(o,p,!0),a=ul(p.prev(),a),a.after(p),a=p):n[p.name]?(u=!0,l=!0,r(o,p,!1),a=ul(p.prev(),a),a.after(p),a=p):u&&c.push(p);else p.type==="decl"&&u&&c.push(p)}),c.length&&(a=cl(o.selector,c,a,s)),l&&i!==!0&&(o.raws.semicolon=!0,o.nodes.length===0&&o.remove())}}};dl.exports.postcss=!0});var Mp=j((b3,Dp)=>{"use strict";var Pp=/-(\w|$)/g,$p=function(e,r){return r.toUpperCase()},ax=function(e){return e=e.toLowerCase(),e==="float"?"cssFloat":e.charCodeAt(0)===45&&e.charCodeAt(1)===109&&e.charCodeAt(2)===115&&e.charCodeAt(3)===45?e.substr(1).replace(Pp,$p):e.replace(Pp,$p)};Dp.exports=ax});var ml=j((v3,Fp)=>{var lx=Mp(),ux={boxFlex:!0,boxFlexGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0};function pl(t){return typeof t.nodes>"u"?!0:hl(t)}function hl(t){let e,r={};return t.each(n=>{if(n.type==="atrule")e="@"+n.name,n.params&&(e+=" "+n.params),typeof r[e]>"u"?r[e]=pl(n):Array.isArray(r[e])?r[e].push(pl(n)):r[e]=[r[e],pl(n)];else if(n.type==="rule"){let i=hl(n);if(r[n.selector])for(let o in i)r[n.selector][o]=i[o];else r[n.selector]=i}else if(n.type==="decl"){n.prop[0]==="-"&&n.prop[1]==="-"||n.parent&&n.parent.selector===":export"?e=n.prop:e=lx(n.prop);let i=n.value;!isNaN(n.value)&&ux[e]&&(i=parseFloat(n.value)),n.important&&(i+=" !important"),typeof r[e]>"u"?r[e]=i:Array.isArray(r[e])?r[e].push(i):r[e]=[r[e],i]}}),r}Fp.exports=hl});var $o=j((y3,jp)=>{var si=Nn(),Lp=/\s*!important\s*$/i,cx={"box-flex":!0,"box-flex-group":!0,"column-count":!0,flex:!0,"flex-grow":!0,"flex-positive":!0,"flex-shrink":!0,"flex-negative":!0,"font-weight":!0,"line-clamp":!0,"line-height":!0,opacity:!0,order:!0,orphans:!0,"tab-size":!0,widows:!0,"z-index":!0,zoom:!0,"fill-opacity":!0,"stroke-dashoffset":!0,"stroke-opacity":!0,"stroke-width":!0};function fx(t){return t.replace(/([A-Z])/g,"-$1").replace(/^ms-/,"-ms-").toLowerCase()}function Np(t,e,r){r===!1||r===null||(e.startsWith("--")||(e=fx(e)),typeof r=="number"&&(r===0||cx[e]?r=r.toString():r+="px"),e==="css-float"&&(e="float"),Lp.test(r)?(r=r.replace(Lp,""),t.push(si.decl({prop:e,value:r,important:!0}))):t.push(si.decl({prop:e,value:r})))}function Rp(t,e,r){let n=si.atRule({name:e[1],params:e[3]||""});typeof r=="object"&&(n.nodes=[],gl(r,n)),t.push(n)}function gl(t,e){let r,n,i;for(r in t)if(n=t[r],!(n===null||typeof n>"u"))if(r[0]==="@"){let o=r.match(/@(\S+)(\s+([\W\w]*)\s*)?/);if(Array.isArray(n))for(let s of n)Rp(e,o,s);else Rp(e,o,n)}else if(Array.isArray(n))for(let o of n)Np(e,r,o);else typeof n=="object"?(i=si.rule({selector:r}),gl(n,i),e.push(i)):Np(e,r,n)}jp.exports=function(t){let e=si.root();return gl(t,e),e}});var bl=j((_3,qp)=>{var dx=ml();qp.exports=function(e){return console&&console.warn&&e.warnings().forEach(r=>{let n=r.plugin||"PostCSS";console.warn(n+": "+r.text)}),dx(e.root)}});var Bp=j((w3,Up)=>{var px=Nn(),hx=bl(),mx=$o();Up.exports=function(e){let r=px(e);return async n=>{let i=await r.process(n,{parser:mx,from:void 0});return hx(i)}}});var Wp=j((x3,zp)=>{var gx=Nn(),bx=bl(),vx=$o();zp.exports=function(t){let e=gx(t);return r=>{let n=e.process(r,{parser:vx,from:void 0});return bx(n)}}});var Hp=j((k3,Vp)=>{var yx=ml(),_x=$o(),wx=Bp(),xx=Wp();Vp.exports={objectify:yx,parse:_x,async:wx,sync:xx}});var _l=j((vl,yl)=>{(function(t,e){typeof vl=="object"&&typeof yl<"u"?yl.exports=function(r,n,i,o,s){for(n=n.split?n.split("."):n,o=0;o{(function(){"use strict";function t(n,i,o){if(!n)return null;t.caseSensitive||(n=n.toLowerCase());var s=t.threshold===null?null:t.threshold*n.length,l=t.thresholdAbsolute,a;s!==null&&l!==null?a=Math.min(s,l):s!==null?a=s:l!==null?a=l:a=null;var u,c,p,d,f,g=i.length;for(f=0;fo)return o+1;var a=[],u,c,p,d,f;for(u=0;u<=l;u++)a[u]=[u];for(c=0;c<=s;c++)a[0][c]=c;for(u=1;u<=l;u++){for(p=e,d=1,u>o&&(d=u-o),f=l+1,f>o+u&&(f=o+u),c=1;c<=s;c++)cf?a[u][c]=o+1:i.charAt(u-1)===n.charAt(c-1)?a[u][c]=a[u-1][c-1]:a[u][c]=Math.min(a[u-1][c-1]+1,Math.min(a[u][c-1]+1,a[u-1][c]+1)),a[u][c]o)return o+1}return a[l][s]}})()});var ns=rt(bu());function Xm(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function vu(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function yu(t){for(var e=1;e=0)&&(r[i]=t[i]);return r}function eg(t,e){if(t==null)return{};var r=Zm(t,e),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function tg(t,e){return rg(t)||ng(t,e)||ig(t,e)||og()}function rg(t){if(Array.isArray(t))return t}function ng(t,e){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(t)))){var r=[],n=!0,i=!1,o=void 0;try{for(var s=t[Symbol.iterator](),l;!(n=(l=s.next()).done)&&(r.push(l.value),!(e&&r.length===e));n=!0);}catch(a){i=!0,o=a}finally{try{!n&&s.return!=null&&s.return()}finally{if(i)throw o}}return r}}function ig(t,e){if(t){if(typeof t=="string")return _u(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _u(t,e)}}function _u(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r=t.length?t.apply(this,i):function(){for(var s=arguments.length,l=new Array(s),a=0;a1&&arguments[1]!==void 0?arguments[1]:{};ki.initial(t),ki.handler(e);var r={current:t},n=Jr(yg)(r,e),i=Jr(vg)(r),o=Jr(ki.changes)(t),s=Jr(bg)(r);function l(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(c){return c};return ki.selector(u),u(r.current)}function a(u){ag(n,i,o,s)(u)}return[l,a]}function bg(t,e){return Xr(e)?e(t.current):e}function vg(t,e){return t.current=xu(xu({},t.current),e),e}function yg(t,e,r){return Xr(e)?e(t.current):Object.keys(r).forEach(function(n){var i;return(i=e[n])===null||i===void 0?void 0:i.call(e,t.current[n])}),r}var _g={create:gg},wg=_g,xg={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}},kg=xg;function Sg(t){return function e(){for(var r=this,n=arguments.length,i=new Array(n),o=0;o=t.length?t.apply(this,i):function(){for(var s=arguments.length,l=new Array(s),a=0;a[{token:"",foreground:t.default},{token:"variable",foreground:t.lightRed},{token:"constant",foreground:t.blue},{token:"constant.character.escape",foreground:t.blue},{token:"comment",foreground:t.gray},{token:"number",foreground:t.blue},{token:"regexp",foreground:t.lightRed},{token:"type",foreground:t.lightRed},{token:"string",foreground:t.green},{token:"keyword",foreground:t.purple},{token:"operator",foreground:t.peach},{token:"delimiter.bracket.embed",foreground:t.red},{token:"sigil",foreground:t.teal},{token:"function",foreground:t.blue},{token:"function.call",foreground:t.default},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"keyword.md",foreground:t.lightRed},{token:"keyword.table",foreground:t.lightRed},{token:"string.link.md",foreground:t.blue},{token:"variable.md",foreground:t.teal},{token:"string.md",foreground:t.default},{token:"variable.source.md",foreground:t.default},{token:"tag",foreground:t.lightRed},{token:"metatag",foreground:t.lightRed},{token:"attribute.name",foreground:t.peach},{token:"attribute.value",foreground:t.green},{token:"string.key",foreground:t.lightRed},{token:"keyword.json",foreground:t.blue},{token:"operator.sql",foreground:t.purple}],Gg={base:"vs-dark",inherit:!1,rules:Hg(cs),colors:{"editor.background":cs.background,"editor.foreground":cs.default,"editorLineNumber.foreground":"#636d83","editorCursor.foreground":"#636d83","editor.selectionBackground":"#3e4451","editor.findMatchHighlightBackground":"#528bff3d","editorSuggestWidget.background":"#21252b","editorSuggestWidget.border":"#181a1f","editorSuggestWidget.selectedBackground":"#2c313a","input.background":"#1b1d23","input.border":"#181a1f","editorBracketMatch.border":"#282c34","editorBracketMatch.background":"#3e4451"}},Yg=class{constructor(t,e,r,n){this.el=t,this.path=e,this.value=r,this.opts=n,this.standalone_code_editor=null,this._onMount=[]}isMounted(){return!!this.standalone_code_editor}mount(){if(this.isMounted())throw new Error("The monaco editor is already mounted");this._mountEditor()}onMount(t){this._onMount.push(t)}dispose(){if(this.isMounted()){let t=this.standalone_code_editor.getModel();t&&t.dispose(),this.standalone_code_editor.dispose()}}_mountEditor(){this.opts.value=this.value,Su.config({paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.45.0/min/vs"}}),Su.init().then(t=>{t.editor.defineTheme("default",Gg);let e=t.Uri.parse(this.path),r=this.opts.language,n=t.editor.createModel(this.value,r,e);this.opts.language=void 0,this.opts.model=n,this.standalone_code_editor=t.editor.create(this.el,this.opts),this._onMount.forEach(o=>o(t)),this._setScreenDependantEditorOptions(),this.standalone_code_editor.addAction({contextMenuGroupId:"word-wrapping",id:"enable-word-wrapping",label:"Enable word wrapping",precondition:"config.editor.wordWrap == off",keybindings:[t.KeyMod.Alt|t.KeyCode.KeyZ],run:o=>o.updateOptions({wordWrap:"on"})}),this.standalone_code_editor.addAction({contextMenuGroupId:"word-wrapping",id:"disable-word-wrapping",label:"Disable word wrapping",precondition:"config.editor.wordWrap == on",keybindings:[t.KeyMod.Alt|t.KeyCode.KeyZ],run:o=>o.updateOptions({wordWrap:"off"})}),new ResizeObserver(o=>{o.forEach(()=>{this.el.offsetHeight>0&&(this._setScreenDependantEditorOptions(),this.standalone_code_editor.layout())})}).observe(this.el),this.standalone_code_editor.onDidContentSizeChange(()=>{let o=this.standalone_code_editor.getContentHeight();this.el.style.height=`${o}px`})})}_setScreenDependantEditorOptions(){window.screen.width<768?this.standalone_code_editor.updateOptions({folding:!1,lineDecorationsWidth:16,lineNumbersMinChars:Math.floor(Math.log10(this.standalone_code_editor.getModel().getLineCount()))+3}):this.standalone_code_editor.updateOptions({folding:!0,lineDecorationsWidth:10,lineNumbersMinChars:5})}},Qg=Yg,Tu={mounted(){let t=JSON.parse(this.el.dataset.opts);this.codeEditor=new Qg(this.el,this.el.dataset.path,this.el.dataset.value,t),this.codeEditor.onMount(e=>{this.el.dataset.changeEvent&&this.el.dataset.changeEvent!==""&&this.codeEditor.standalone_code_editor.onDidChangeModelContent(()=>{this.el.dataset.target&&this.el.dataset.target!==""?this.pushEventTo(this.el.dataset.target,this.el.dataset.changeEvent,{value:this.codeEditor.standalone_code_editor.getValue()}):this.pushEvent(this.el.dataset.changeEvent,{value:this.codeEditor.standalone_code_editor.getValue()})}),this.handleEvent("lme:change_language:"+this.el.dataset.path,r=>{let n=this.codeEditor.standalone_code_editor.getModel();n.getLanguageId()!==r.mimeTypeOrLanguageId&&e.editor.setModelLanguage(n,r.mimeTypeOrLanguageId)}),this.handleEvent("lme:set_value:"+this.el.dataset.path,r=>{this.codeEditor.standalone_code_editor.setValue(r.value)}),this.el.querySelectorAll("textarea").forEach(r=>{r.setAttribute("name","live_monaco_editor["+this.el.dataset.path+"]")}),this.el.removeAttribute("data-value"),this.el.removeAttribute("data-opts"),this.el.dispatchEvent(new CustomEvent("lme:editor_mounted",{detail:{hook:this,editor:this.codeEditor},bubbles:!0}))}),this.codeEditor.isMounted()||this.codeEditor.mount()},destroyed(){this.codeEditor&&this.codeEditor.dispose()}};function Kg(t){if(!Array.isArray(t.default)||!Array.isArray(t.filenames))return t;let e={};for(let[r,n]of t.default.entries()){let i=n.default,o=t.filenames[r].replace("../svelte/","").replace(".svelte","");e[o]=i}return e}function en(t,e){let r=t.el.getAttribute(e);return r?JSON.parse(r):{}}function Iu(t){t.parentNode?.removeChild(t)}function Pu(t,e,r){t.insertBefore(e,r||null)}function $u(){}function Jg(t){let e={};for(let r in en(t,"data-slots")){let n=()=>({getElement(){let i=en(t,"data-slots")[r],o=document.createElement("div");return o.innerHTML=atob(i).trim(),o},update(){Iu(this.savedElement),this.savedElement=this.getElement(),Pu(this.savedTarget,this.savedElement,this.savedAnchor)},c:$u,m(i,o){this.savedTarget=i,this.savedAnchor=o,this.savedElement=this.getElement(),Pu(this.savedTarget,this.savedElement,this.savedAnchor)},d(i){i&&Iu(this.savedElement)},l:$u});e[r]=[n]}return e}function Xg(t){let e=en(t,"data-live-json");if(!Array.isArray(e))return e;let r={};for(let n of e){let i=window[n];i&&(r[n]=i)}return r}function Oi(t){return{...en(t,"data-props"),...Xg(t),live:t,$$slots:Jg(t),$$scope:{}}}function Zg(t){return t.$$.ctx.find(e=>e?.default)}function Du(t){return t=Kg(t),{SvelteHook:{mounted(){let r=this.el.getAttribute("data-name");if(!r)throw new Error("Component name must be provided");let n=t[r];if(!n)throw new Error(`Unable to find ${r} component.`);for(let i of Object.keys(en(this,"data-live-json")))window.addEventListener(`${i}_initialized`,o=>this._instance.$set(Oi(this)),!1),window.addEventListener(`${i}_patched`,o=>this._instance.$set(Oi(this)),!1);this._instance=new n({target:this.el,props:Oi(this),hydrate:this.el.hasAttribute("data-ssr")})},updated(){this._instance.$set(Oi(this));let r=Zg(this._instance);for(let n in r)r[n][0]().update()},destroyed(){this._instance&&window.addEventListener("phx:page-loading-stop",()=>this._instance.$destroy(),{once:!0})}}}}var du={};tt(du,{default:()=>d2,filenames:()=>p2});var Es={};tt(Es,{backdropVisible:()=>ji,default:()=>Ss});function Q(){}var Or=t=>t;function hr(t,e){for(let r in e)t[r]=e[r];return t}function fs(t){return t()}function Ai(){return Object.create(null)}function ce(t){t.forEach(fs)}function wt(t){return typeof t=="function"}function fe(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}var Ci;function ds(t,e){return t===e?!0:(Ci||(Ci=document.createElement("a")),Ci.href=e,t===Ci.href)}function Mu(t){return Object.keys(t).length===0}function Jt(t,...e){if(t==null){for(let n of e)n(void 0);return Q}let r=t.subscribe(...e);return r.unsubscribe?()=>r.unsubscribe():r}function qt(t){let e;return Jt(t,r=>e=r)(),e}function ee(t,e,r){t.$$.on_destroy.push(Jt(e,r))}function rt(t,e,r,n){if(t){let i=Fu(t,e,r,n);return t[0](i)}}function Fu(t,e,r,n){return t[1]&&n?hr(r.ctx.slice(),t[1](n(e))):r.ctx}function nt(t,e,r,n){if(t[2]&&n){let i=t[2](n(r));if(e.dirty===void 0)return i;if(typeof i=="object"){let o=[],s=Math.max(e.dirty.length,i.length);for(let l=0;l32){let e=[],r=t.ctx.length/32;for(let n=0;nwindow.performance.now():()=>Date.now(),tn=Ru?t=>requestAnimationFrame(t):Q;var Cr=new Set;function ju(t){Cr.forEach(e=>{e.c(t)||(Cr.delete(e),e.f())}),Cr.size!==0&&tn(ju)}function hs(t){let e;return Cr.size===0&&tn(ju),{promise:new Promise(r=>{Cr.add(e={c:t,f:r})}),abort(){Cr.delete(e)}}}var ms=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var Ti=class t{constructor(e){Fe(this,"_listeners","WeakMap"in ms?new WeakMap:void 0);Fe(this,"_observer");Fe(this,"options");this.options=e}observe(e,r){return this._listeners.set(e,r),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let r of e)t.entries.set(r.target,r),this._listeners.get(r.target)?.(r)}))}};Ti.entries="WeakMap"in ms?new WeakMap:void 0;var Ii=!1;function Uu(){Ii=!0}function Bu(){Ii=!1}function t0(t,e,r,n){for(;t>1);r(i)<=n?t=i+1:e=i}return t}function r0(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if(t.nodeName==="HEAD"){let a=[];for(let u=0;u0&&e[r[i]].claim_order<=u?i+1:t0(1,i,d=>e[r[d]].claim_order,u))-1;n[a]=r[c]+1;let p=c+1;r[p]=a,i=Math.max(p,i)}let o=[],s=[],l=e.length-1;for(let a=r[i]+1;a!=0;a=n[a-1]){for(o.push(e[a-1]);l>=a;l--)s.push(e[l]);l--}for(;l>=0;l--)s.push(e[l]);o.reverse(),s.sort((a,u)=>a.claim_order-u.claim_order);for(let a=0,u=0;a=o[u].claim_order;)u++;let c=ut.removeEventListener(e,r,n)}function $t(t){return function(e){return e.preventDefault(),t.call(this,e)}}function xt(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function k(t,e,r){r==null?t.removeAttribute(e):t.getAttribute(e)!==r&&t.setAttribute(e,r)}var n0=["width","height"];function i0(t,e){let r=Object.getOwnPropertyDescriptors(t.__proto__);for(let n in e)e[n]==null?t.removeAttribute(n):n==="style"?t.style.cssText=e[n]:n==="__value"?t.value=t[n]=e[n]:r[n]&&r[n].set&&n0.indexOf(n)===-1?t[n]=e[n]:k(t,n,e[n])}function o0(t,e){Object.keys(e).forEach(r=>{bs(t,r,e[r])})}function bs(t,e,r){let n=e.toLowerCase();n in t?t[n]=typeof t[n]=="boolean"&&r===""?!0:r:e in t?t[e]=typeof t[e]=="boolean"&&r===""?!0:r:k(t,e,r)}function Zt(t){return/-/.test(t)?o0:i0}function Ke(t){return t.dataset.svelteH}function M(t){return Array.from(t.childNodes)}function Hu(t){t.claim_info===void 0&&(t.claim_info={last_index:0,total_claimed:0})}function Gu(t,e,r,n,i=!1){Hu(t);let o=(()=>{for(let s=t.claim_info.last_index;s=0;s--){let l=t[s];if(e(l)){let a=r(l);return a===void 0?t.splice(s,1):t[s]=a,i?a===void 0&&t.claim_info.last_index--:t.claim_info.last_index=s,l}}return n()})();return o.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,o}function Yu(t,e,r,n){return Gu(t,i=>i.nodeName===e,i=>{let o=[];for(let s=0;si.removeAttribute(s))},()=>n(e))}function $(t,e,r){return Yu(t,e,r,I)}function pt(t,e,r){return Yu(t,e,r,at)}function ie(t,e){return Gu(t,r=>r.nodeType===3,r=>{let n=""+e;if(r.data.startsWith(n)){if(r.data.length!==n.length)return r.splitText(n.length)}else r.data=n},()=>re(e),!0)}function X(t){return ie(t," ")}function qu(t,e,r){for(let n=r;n{e[r.slot||"default"]=!0}),e}var Di=new Map,Mi=0;function s0(t){let e=5381,r=t.length;for(;r--;)e=(e<<5)-e^t.charCodeAt(r);return e>>>0}function a0(t,e){let r={stylesheet:Wu(e),rules:{}};return Di.set(t,r),r}function Fi(t,e,r,n,i,o,s,l=0){let a=16.666/n,u=`{ + `},ku=Eg(Ig)(Eu),Pg={config:Ag},$g=Pg,Dg=function(){for(var e=arguments.length,r=new Array(e),n=0;n[{token:"",foreground:t.default},{token:"variable",foreground:t.lightRed},{token:"constant",foreground:t.blue},{token:"constant.character.escape",foreground:t.blue},{token:"comment",foreground:t.gray},{token:"number",foreground:t.blue},{token:"regexp",foreground:t.lightRed},{token:"type",foreground:t.lightRed},{token:"string",foreground:t.green},{token:"keyword",foreground:t.purple},{token:"operator",foreground:t.peach},{token:"delimiter.bracket.embed",foreground:t.red},{token:"sigil",foreground:t.teal},{token:"function",foreground:t.blue},{token:"function.call",foreground:t.default},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"keyword.md",foreground:t.lightRed},{token:"keyword.table",foreground:t.lightRed},{token:"string.link.md",foreground:t.blue},{token:"variable.md",foreground:t.teal},{token:"string.md",foreground:t.default},{token:"variable.source.md",foreground:t.default},{token:"tag",foreground:t.lightRed},{token:"metatag",foreground:t.lightRed},{token:"attribute.name",foreground:t.peach},{token:"attribute.value",foreground:t.green},{token:"string.key",foreground:t.lightRed},{token:"keyword.json",foreground:t.blue},{token:"operator.sql",foreground:t.purple}],Yg={base:"vs-dark",inherit:!1,rules:Gg(cs),colors:{"editor.background":cs.background,"editor.foreground":cs.default,"editorLineNumber.foreground":"#636d83","editorCursor.foreground":"#636d83","editor.selectionBackground":"#3e4451","editor.findMatchHighlightBackground":"#528bff3d","editorSuggestWidget.background":"#21252b","editorSuggestWidget.border":"#181a1f","editorSuggestWidget.selectedBackground":"#2c313a","input.background":"#1b1d23","input.border":"#181a1f","editorBracketMatch.border":"#282c34","editorBracketMatch.background":"#3e4451"}},Qg=class{constructor(t,e,r,n){this.el=t,this.path=e,this.value=r,this.opts=n,this.standalone_code_editor=null,this._onMount=[]}isMounted(){return!!this.standalone_code_editor}mount(){if(this.isMounted())throw new Error("The monaco editor is already mounted");this._mountEditor()}onMount(t){this._onMount.push(t)}dispose(){if(this.isMounted()){let t=this.standalone_code_editor.getModel();t&&t.dispose(),this.standalone_code_editor.dispose()}}_mountEditor(){this.opts.value=this.value,Su.config({paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.45.0/min/vs"}}),Su.init().then(t=>{t.editor.defineTheme("default",Yg);let e=t.Uri.parse(this.path),r=this.opts.language,n=t.editor.createModel(this.value,r,e);this.opts.language=void 0,this.opts.model=n,this.standalone_code_editor=t.editor.create(this.el,this.opts),this._onMount.forEach(o=>o(t)),this._setScreenDependantEditorOptions(),this.standalone_code_editor.addAction({contextMenuGroupId:"word-wrapping",id:"enable-word-wrapping",label:"Enable word wrapping",precondition:"config.editor.wordWrap == off",keybindings:[t.KeyMod.Alt|t.KeyCode.KeyZ],run:o=>o.updateOptions({wordWrap:"on"})}),this.standalone_code_editor.addAction({contextMenuGroupId:"word-wrapping",id:"disable-word-wrapping",label:"Disable word wrapping",precondition:"config.editor.wordWrap == on",keybindings:[t.KeyMod.Alt|t.KeyCode.KeyZ],run:o=>o.updateOptions({wordWrap:"off"})}),new ResizeObserver(o=>{o.forEach(()=>{this.el.offsetHeight>0&&(this._setScreenDependantEditorOptions(),this.standalone_code_editor.layout())})}).observe(this.el),this.standalone_code_editor.onDidContentSizeChange(()=>{let o=this.standalone_code_editor.getContentHeight();this.el.style.height=`${o}px`})})}_setScreenDependantEditorOptions(){window.screen.width<768?this.standalone_code_editor.updateOptions({folding:!1,lineDecorationsWidth:16,lineNumbersMinChars:Math.floor(Math.log10(this.standalone_code_editor.getModel().getLineCount()))+3}):this.standalone_code_editor.updateOptions({folding:!0,lineDecorationsWidth:10,lineNumbersMinChars:5})}},Kg=Qg,Tu={mounted(){let t=JSON.parse(this.el.dataset.opts);this.codeEditor=new Kg(this.el,this.el.dataset.path,this.el.dataset.value,t),this.codeEditor.onMount(e=>{this.el.dataset.changeEvent&&this.el.dataset.changeEvent!==""&&this.codeEditor.standalone_code_editor.onDidChangeModelContent(()=>{this.el.dataset.target&&this.el.dataset.target!==""?this.pushEventTo(this.el.dataset.target,this.el.dataset.changeEvent,{value:this.codeEditor.standalone_code_editor.getValue()}):this.pushEvent(this.el.dataset.changeEvent,{value:this.codeEditor.standalone_code_editor.getValue()})}),this.handleEvent("lme:change_language:"+this.el.dataset.path,r=>{let n=this.codeEditor.standalone_code_editor.getModel();n.getLanguageId()!==r.mimeTypeOrLanguageId&&e.editor.setModelLanguage(n,r.mimeTypeOrLanguageId)}),this.handleEvent("lme:set_value:"+this.el.dataset.path,r=>{this.codeEditor.standalone_code_editor.setValue(r.value)}),this.el.querySelectorAll("textarea").forEach(r=>{r.setAttribute("name","live_monaco_editor["+this.el.dataset.path+"]")}),this.el.removeAttribute("data-value"),this.el.removeAttribute("data-opts"),this.el.dispatchEvent(new CustomEvent("lme:editor_mounted",{detail:{hook:this,editor:this.codeEditor},bubbles:!0}))}),this.codeEditor.isMounted()||this.codeEditor.mount()},destroyed(){this.codeEditor&&this.codeEditor.dispose()}};function Jg(t){if(!Array.isArray(t.default)||!Array.isArray(t.filenames))return t;let e={};for(let[r,n]of t.default.entries()){let i=n.default,o=t.filenames[r].replace("../svelte/","").replace(".svelte","");e[o]=i}return e}function en(t,e){let r=t.el.getAttribute(e);return r?JSON.parse(r):{}}function Iu(t){t.parentNode?.removeChild(t)}function Pu(t,e,r){t.insertBefore(e,r||null)}function $u(){}function Xg(t){let e={};for(let r in en(t,"data-slots")){let n=()=>({getElement(){let i=en(t,"data-slots")[r],o=document.createElement("div");return o.innerHTML=atob(i).trim(),o},update(){Iu(this.savedElement),this.savedElement=this.getElement(),Pu(this.savedTarget,this.savedElement,this.savedAnchor)},c:$u,m(i,o){this.savedTarget=i,this.savedAnchor=o,this.savedElement=this.getElement(),Pu(this.savedTarget,this.savedElement,this.savedAnchor)},d(i){i&&Iu(this.savedElement)},l:$u});e[r]=[n]}return e}function Zg(t){let e=en(t,"data-live-json");if(!Array.isArray(e))return e;let r={};for(let n of e){let i=window[n];i&&(r[n]=i)}return r}function Oi(t){return{...en(t,"data-props"),...Zg(t),live:t,$$slots:Xg(t),$$scope:{}}}function e0(t){return t.$$.ctx.find(e=>e?.default)}function Du(t){return t=Jg(t),{SvelteHook:{mounted(){let r=this.el.getAttribute("data-name");if(!r)throw new Error("Component name must be provided");let n=t[r];if(!n)throw new Error(`Unable to find ${r} component.`);for(let i of Object.keys(en(this,"data-live-json")))window.addEventListener(`${i}_initialized`,o=>this._instance.$set(Oi(this)),!1),window.addEventListener(`${i}_patched`,o=>this._instance.$set(Oi(this)),!1);this._instance=new n({target:this.el,props:Oi(this),hydrate:this.el.hasAttribute("data-ssr")})},updated(){this._instance.$set(Oi(this));let r=e0(this._instance);for(let n in r)r[n][0]().update()},destroyed(){this._instance&&window.addEventListener("phx:page-loading-stop",()=>this._instance.$destroy(),{once:!0})}}}}var du={};it(du,{default:()=>m2,filenames:()=>g2});var Es={};it(Es,{backdropVisible:()=>ji,default:()=>Ss});function Q(){}var Cr=t=>t;function mr(t,e){for(let r in e)t[r]=e[r];return t}function fs(t){return t()}function Ai(){return Object.create(null)}function ce(t){t.forEach(fs)}function Et(t){return typeof t=="function"}function fe(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}var Ci;function ds(t,e){return t===e?!0:(Ci||(Ci=document.createElement("a")),Ci.href=e,t===Ci.href)}function Mu(t){return Object.keys(t).length===0}function Jt(t,...e){if(t==null){for(let n of e)n(void 0);return Q}let r=t.subscribe(...e);return r.unsubscribe?()=>r.unsubscribe():r}function Ut(t){let e;return Jt(t,r=>e=r)(),e}function ee(t,e,r){t.$$.on_destroy.push(Jt(e,r))}function ot(t,e,r,n){if(t){let i=Fu(t,e,r,n);return t[0](i)}}function Fu(t,e,r,n){return t[1]&&n?mr(r.ctx.slice(),t[1](n(e))):r.ctx}function st(t,e,r,n){if(t[2]&&n){let i=t[2](n(r));if(e.dirty===void 0)return i;if(typeof i=="object"){let o=[],s=Math.max(e.dirty.length,i.length);for(let l=0;l32){let e=[],r=t.ctx.length/32;for(let n=0;nwindow.performance.now():()=>Date.now(),tn=Ru?t=>requestAnimationFrame(t):Q;var Ar=new Set;function ju(t){Ar.forEach(e=>{e.c(t)||(Ar.delete(e),e.f())}),Ar.size!==0&&tn(ju)}function hs(t){let e;return Ar.size===0&&tn(ju),{promise:new Promise(r=>{Ar.add(e={c:t,f:r})}),abort(){Ar.delete(e)}}}var ms=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var Ti=class t{constructor(e){Re(this,"_listeners","WeakMap"in ms?new WeakMap:void 0);Re(this,"_observer");Re(this,"options");this.options=e}observe(e,r){return this._listeners.set(e,r),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let r of e)t.entries.set(r.target,r),this._listeners.get(r.target)?.(r)}))}};Ti.entries="WeakMap"in ms?new WeakMap:void 0;var Ii=!1;function Uu(){Ii=!0}function Bu(){Ii=!1}function r0(t,e,r,n){for(;t>1);r(i)<=n?t=i+1:e=i}return t}function n0(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if(t.nodeName==="HEAD"){let a=[];for(let u=0;u0&&e[r[i]].claim_order<=u?i+1:r0(1,i,d=>e[r[d]].claim_order,u))-1;n[a]=r[c]+1;let p=c+1;r[p]=a,i=Math.max(p,i)}let o=[],s=[],l=e.length-1;for(let a=r[i]+1;a!=0;a=n[a-1]){for(o.push(e[a-1]);l>=a;l--)s.push(e[l]);l--}for(;l>=0;l--)s.push(e[l]);o.reverse(),s.sort((a,u)=>a.claim_order-u.claim_order);for(let a=0,u=0;a=o[u].claim_order;)u++;let c=ut.removeEventListener(e,r,n)}function Mt(t){return function(e){return e.preventDefault(),t.call(this,e)}}function Ot(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function k(t,e,r){r==null?t.removeAttribute(e):t.getAttribute(e)!==r&&t.setAttribute(e,r)}var i0=["width","height"];function o0(t,e){let r=Object.getOwnPropertyDescriptors(t.__proto__);for(let n in e)e[n]==null?t.removeAttribute(n):n==="style"?t.style.cssText=e[n]:n==="__value"?t.value=t[n]=e[n]:r[n]&&r[n].set&&i0.indexOf(n)===-1?t[n]=e[n]:k(t,n,e[n])}function s0(t,e){Object.keys(e).forEach(r=>{bs(t,r,e[r])})}function bs(t,e,r){let n=e.toLowerCase();n in t?t[n]=typeof t[n]=="boolean"&&r===""?!0:r:e in t?t[e]=typeof t[e]=="boolean"&&r===""?!0:r:k(t,e,r)}function Zt(t){return/-/.test(t)?s0:o0}function Ze(t){return t.dataset.svelteH}function M(t){return Array.from(t.childNodes)}function Hu(t){t.claim_info===void 0&&(t.claim_info={last_index:0,total_claimed:0})}function Gu(t,e,r,n,i=!1){Hu(t);let o=(()=>{for(let s=t.claim_info.last_index;s=0;s--){let l=t[s];if(e(l)){let a=r(l);return a===void 0?t.splice(s,1):t[s]=a,i?a===void 0&&t.claim_info.last_index--:t.claim_info.last_index=s,l}}return n()})();return o.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,o}function Yu(t,e,r,n){return Gu(t,i=>i.nodeName===e,i=>{let o=[];for(let s=0;si.removeAttribute(s))},()=>n(e))}function $(t,e,r){return Yu(t,e,r,I)}function gt(t,e,r){return Yu(t,e,r,ct)}function ie(t,e){return Gu(t,r=>r.nodeType===3,r=>{let n=""+e;if(r.data.startsWith(n)){if(r.data.length!==n.length)return r.splitText(n.length)}else r.data=n},()=>re(e),!0)}function X(t){return ie(t," ")}function qu(t,e,r){for(let n=r;n{e[r.slot||"default"]=!0}),e}var Di=new Map,Mi=0;function a0(t){let e=5381,r=t.length;for(;r--;)e=(e<<5)-e^t.charCodeAt(r);return e>>>0}function l0(t,e){let r={stylesheet:Wu(e),rules:{}};return Di.set(t,r),r}function Fi(t,e,r,n,i,o,s,l=0){let a=16.666/n,u=`{ `;for(let h=0;h<=1;h+=a){let m=e+(r-e)*o(h);u+=h*100+`%{${s(m,1-m)}} `}let c=u+`100% {${s(r,1-r)}} -}`,p=`__svelte_${s0(c)}_${l}`,d=Pi(t),{stylesheet:f,rules:g}=Di.get(d)||a0(d,t);g[p]||(g[p]=!0,f.insertRule(`@keyframes ${p} ${c}`,f.cssRules.length));let w=t.style.animation||"";return t.style.animation=`${w?`${w}, `:""}${p} ${n}ms linear ${i}ms 1 both`,Mi+=1,p}function vs(t,e){let r=(t.style.animation||"").split(", "),n=r.filter(e?o=>o.indexOf(e)<0:o=>o.indexOf("__svelte")===-1),i=r.length-n.length;i&&(t.style.animation=n.join(", "),Mi-=i,Mi||l0())}function l0(){tn(()=>{Mi||(Di.forEach(t=>{let{ownerNode:e}=t.stylesheet;e&&x(e)}),Di.clear())})}var er;function Bt(t){er=t}function Li(){if(!er)throw new Error("Function called outside component initialization");return er}function on(t){Li().$$.on_mount.push(t)}function sn(t){Li().$$.on_destroy.push(t)}function zt(){let t=Li();return(e,r,{cancelable:n=!1}={})=>{let i=t.$$.callbacks[e];if(i){let o=nn(e,r,{cancelable:n});return i.slice().forEach(s=>{s.call(t,o)}),!o.defaultPrevented}return!0}}var mr=[];var ut=[],Tr=[],Ju=[],Xu=Promise.resolve(),_s=!1;function ws(){_s||(_s=!0,Xu.then(de))}function an(){return ws(),Xu}function kt(t){Tr.push(t)}var ys=new Set,Ar=0;function de(){if(Ar!==0)return;let t=er;do{try{for(;Art.indexOf(n)===-1?e.push(n):r.push(n)),r.forEach(n=>n()),Tr=e}var ln;function c0(){return ln||(ln=Promise.resolve(),ln.then(()=>{ln=null})),ln}function xs(t,e,r){t.dispatchEvent(nn(`${e?"intro":"outro"}${r}`))}var Ni=new Set,Wt;function le(){Wt={r:0,c:[],p:Wt}}function ue(){Wt.r||ce(Wt.c),Wt=Wt.p}function P(t,e){t&&t.i&&(Ni.delete(t),t.i(e))}function L(t,e,r,n){if(t&&t.o){if(Ni.has(t))return;Ni.add(t),Wt.c.push(()=>{Ni.delete(t),n&&(r&&t.d(1),n())}),t.o(e)}else n&&n()}var f0={duration:0};function tr(t,e,r,n){let o=e(t,r,{direction:"both"}),s=n?0:1,l=null,a=null,u=null,c;function p(){u&&vs(t,u)}function d(g,w){let h=g.b-s;return w*=Math.abs(h),{a:s,b:g.b,d:h,duration:w,start:g.start,end:g.start+w,group:g.group}}function f(g){let{delay:w=0,duration:h=300,easing:m=Or,tick:b=Q,css:v}=o||f0,_={start:ps()+w,b:g};g||(_.group=Wt,Wt.r+=1),"inert"in t&&(g?c!==void 0&&(t.inert=c):(c=t.inert,t.inert=!0)),l||a?a=_:(v&&(p(),u=Fi(t,s,g,h,w,m,v)),g&&b(0,1),l=d(_,h),kt(()=>xs(t,g,"start")),hs(y=>{if(a&&y>a.start&&(l=d(a,h),a=null,xs(t,l.b,"start"),v&&(p(),u=Fi(t,s,l.b,l.duration,0,m,o.css))),l){if(y>=l.end)b(s=l.b,1-s),xs(t,l.b,"end"),a||(l.b?p():--l.group.r||ce(l.group.c)),l=null;else if(y>=l.start){let C=y-l.start;s=l.a+l.d*m(C/l.duration),b(s,1-s)}}return!!(l||a)}))}return{run(g){wt(o)?c0().then(()=>{o=o({direction:g?"in":"out"}),f(g)}):f(g)},end(){p(),l=a=null}}}function ge(t){return t?.length!==void 0?t:Array.from(t)}function ec(t,e){t.d(1),e.delete(t.key)}function tc(t,e){L(t,1,1,()=>{e.delete(t.key)})}function ks(t,e,r,n,i,o,s,l,a,u,c,p){let d=t.length,f=o.length,g=d,w={};for(;g--;)w[t[g].key]=g;let h=[],m=new Map,b=new Map,v=[];for(g=f;g--;){let E=p(i,o,g),S=r(E),D=s.get(S);D?n&&v.push(()=>D.p(E,e)):(D=u(S,E),D.c()),m.set(S,h[g]=D),S in w&&b.set(S,Math.abs(g-w[S]))}let _=new Set,y=new Set;function C(E){P(E,1),E.m(l,c),s.set(E.key,E),c=E.first,f--}for(;d&&f;){let E=h[f-1],S=t[d-1],D=E.key,O=S.key;E===S?(c=E.first,d--,f--):m.has(O)?!s.has(D)||_.has(D)?C(E):y.has(O)?d--:b.get(D)>b.get(O)?(y.add(D),C(E)):(_.add(O),d--):(a(S,s),d--)}for(;d--;){let E=t[d];m.has(E.key)||a(E,s)}for(;f;)C(h[f-1]);return ce(v),h}function un(t,e){let r={},n={},i={$$scope:1},o=t.length;for(;o--;){let s=t[o],l=e[o];if(l){for(let a in s)a in l||(n[a]=1);for(let a in l)i[a]||(r[a]=l[a],i[a]=1);t[o]=l}else for(let a in s)i[a]=1}for(let s in n)s in r||(r[s]=void 0);return r}var d0=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],p0=new Set([...d0]);function Ae(t){t&&t.c()}function Te(t,e){t&&t.l(e)}function Ee(t,e,r){let{fragment:n,after_update:i}=t.$$;n&&n.m(e,r),kt(()=>{let o=t.$$.on_mount.map(fs).filter(wt);t.$$.on_destroy?t.$$.on_destroy.push(...o):ce(o),t.$$.on_mount=[]}),i.forEach(kt)}function Oe(t,e){let r=t.$$;r.fragment!==null&&(Zu(r.after_update),ce(r.on_destroy),r.fragment&&r.fragment.d(e),r.on_destroy=r.fragment=null,r.ctx=[])}function m0(t,e){t.$$.dirty[0]===-1&&(mr.push(t),ws(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{let g=f.length?f[0]:d;return u.ctx&&i(u.ctx[p],u.ctx[p]=g)&&(!u.skip_bound&&u.bound[p]&&u.bound[p](g),c&&m0(t,p)),d}):[],u.update(),c=!0,ce(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Uu();let p=M(e.target);u.fragment&&u.fragment.l(p),p.forEach(x)}else u.fragment&&u.fragment.c();e.intro&&P(t.$$.fragment),Ee(t,e.target,e.anchor),Bu(),de()}Bt(a)}var rc;typeof HTMLElement=="function"&&(rc=class extends HTMLElement{constructor(e,r,n){super();Fe(this,"$$ctor");Fe(this,"$$s");Fe(this,"$$c");Fe(this,"$$cn",!1);Fe(this,"$$d",{});Fe(this,"$$r",!1);Fe(this,"$$p_d",{});Fe(this,"$$l",{});Fe(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=r,n&&this.attachShadow({mode:"open"})}addEventListener(e,r,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(r),this.$$c){let i=this.$$c.$on(e,r);this.$$l_u.set(r,i)}super.addEventListener(e,r,n)}removeEventListener(e,r,n){if(super.removeEventListener(e,r,n),this.$$c){let i=this.$$l_u.get(r);i&&(i(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(o){return()=>{let s;return{c:function(){s=I("slot"),o!=="default"&&k(s,"name",o)},m:function(u,c){$i(u,s,c)},d:function(u){u&&x(s)}}}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;let r={},n=Ku(this);for(let o of this.$$s)o in n&&(r[o]=[e(o)]);for(let o of this.attributes){let s=this.$$g_p(o.name);s in this.$$d||(this.$$d[s]=Ri(s,o.value,this.$$p_d,"toProp"))}for(let o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$scope:{ctx:[]}}});let i=()=>{this.$$r=!0;for(let o in this.$$p_d)if(this.$$d[o]=this.$$c.$$.ctx[this.$$c.$$.props[o]],this.$$p_d[o].reflect){let s=Ri(o,this.$$d[o],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,s)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(let o in this.$$l)for(let s of this.$$l[o]){let l=this.$$c.$on(o,s);this.$$l_u.set(s,l)}this.$$l={}}}attributeChangedCallback(e,r,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Ri(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{this.$$cn||(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(r=>this.$$p_d[r].attribute===e||!this.$$p_d[r].attribute&&r.toLowerCase()===e)||e}});function Ri(t,e,r,n){let i=r[t]?.type;if(e=i==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!r[t])return e;if(n==="toAttribute")switch(i){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(i){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function xe(t,e,r,n,i,o){let s=class extends rc{constructor(){super(t,r,i),this.$$p_d=e}static get observedAttributes(){return Object.keys(e).map(l=>(e[l].attribute||l).toLowerCase())}};return Object.keys(e).forEach(l=>{Object.defineProperty(s.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(a){a=Ri(l,a,e),this.$$d[l]=a,this.$$c?.$set({[l]:a})}})}),n.forEach(l=>{Object.defineProperty(s.prototype,l,{get(){return this.$$c?.[l]}})}),o&&(s=o(s)),t.element=s,s}var he=class{constructor(){Fe(this,"$$");Fe(this,"$$set")}$destroy(){Oe(this,1),this.$destroy=Q}$on(e,r){if(!wt(r))return Q;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(r),()=>{let i=n.indexOf(r);i!==-1&&n.splice(i,1)}}$set(e){this.$$set&&!Mu(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var nc="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(nc);function Ir(t,{delay:e=0,duration:r=400,easing:n=Or}={}){let i=+getComputedStyle(t).opacity;return{delay:e,duration:r,easing:n,css:o=>`opacity: ${o*i}`}}var Pr=[];function g0(t,e){return{subscribe:Ve(t,e).subscribe}}function Ve(t,e=Q){let r,n=new Set;function i(l){if(fe(t,l)&&(t=l,r)){let a=!Pr.length;for(let u of n)u[1](),Pr.push(u,t);if(a){for(let u=0;u{n.delete(u),n.size===0&&r&&(r(),r=null)}}return{set:i,update:o,subscribe:s}}function gr(t,e,r){let n=!Array.isArray(t),i=n?[t]:t;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let o=e.length<2;return g0(r,(s,l)=>{let a=!1,u=[],c=0,p=Q,d=()=>{if(c)return;p();let g=e(n?u[0]:u,s,l);o?s(g):p=wt(g)?g:Q},f=i.map((g,w)=>Jt(g,h=>{u[w]=h,c&=~(1<{c|=1<{n&&(r||(r=tr(e,Ir,{},!0)),r.run(1))}),n=!0)},o(i){i&&(r||(r=tr(e,Ir,{},!1)),r.run(0)),n=!1},d(i){i&&x(e),i&&r&&r.end()}}}function b0(t){let e,r=t[0]&&ic(t);return{c(){r&&r.c(),e=G()},l(n){r&&r.l(n),e=G()},m(n,i){r&&r.m(n,i),T(n,e,i)},p(n,[i]){n[0]?r?i&1&&P(r,1):(r=ic(n),r.c(),P(r,1),r.m(e.parentNode,e)):r&&(le(),L(r,1,1,()=>{r=null}),ue())},i(n){P(r)},o(n){L(r)},d(n){n&&x(e),r&&r.d(n)}}}var ji=Ve(!1);function v0(t,e,r){let n,i=Q,o=()=>(i(),i=Jt(ji,s=>r(0,n=s)),ji);return ee(t,ji,s=>r(0,n=s)),t.$$.on_destroy.push(()=>i()),[n]}var qi=class extends he{constructor(e){super(),we(this,e,v0,b0,fe,{})}};xe(qi,{},[],[],!0);var Ss=qi;var Cs={};tt(Cs,{default:()=>Os});function y0(t){let e,r,n,i=' ',o,s,l,a,u=oc(t[0])+"",c,p,d,f="",g,w,h=t[2].default,m=rt(h,t,t[1],null);return{c(){e=I("div"),r=I("div"),n=I("div"),n.innerHTML=i,o=J(),s=I("div"),l=I("div"),a=I("span"),c=re(u),p=J(),d=I("div"),d.innerHTML=f,g=J(),m&&m.c(),this.h()},l(b){e=$(b,"DIV",{class:!0,"data-test-id":!0});var v=M(e);r=$(v,"DIV",{class:!0,"data-test-id":!0});var _=M(r);n=$(_,"DIV",{class:!0,"data-svelte-h":!0}),Ke(n)!=="svelte-vi2fc4"&&(n.innerHTML=i),o=X(_),s=$(_,"DIV",{class:!0});var y=M(s);l=$(y,"DIV",{class:!0});var C=M(l);a=$(C,"SPAN",{"data-test-id":!0});var E=M(a);c=ie(E,u),E.forEach(x),C.forEach(x),y.forEach(x),p=X(_),d=$(_,"DIV",{class:!0,"data-svelte-h":!0}),Ke(d)!=="svelte-1czp51h"&&(d.innerHTML=f),_.forEach(x),g=X(v),m&&m.l(v),v.forEach(x),this.h()},h(){k(n,"class","py-2"),k(a,"data-test-id","url-box"),k(l,"class","rounded bg-gray-50 border-b border-gray-200 shadow max-w-xs mx-auto text-center py-0.5 relative"),k(s,"class","flex-1 py-2.5 overflow-visible"),k(d,"class","py-3"),k(r,"class","bg-gray-50 border-b border-gray-200 border-solid rounded-t-xl h-12 px-3.5 flex"),k(r,"data-test-id","address-bar"),k(e,"class","flex-1 flex flex-col"),k(e,"data-test-id","fake-browser")},m(b,v){T(b,e,v),A(e,r),A(r,n),A(r,o),A(r,s),A(s,l),A(l,a),A(a,c),A(r,p),A(r,d),A(e,g),m&&m.m(e,null),w=!0},p(b,[v]){(!w||v&1)&&u!==(u=oc(b[0])+"")&&We(c,u),m&&m.p&&(!w||v&2)&&it(m,h,b,b[1],w?nt(h,b[1],v,null):ot(b[1]),null)},i(b){w||(P(m,b),w=!0)},o(b){L(m,b),w=!1},d(b){b&&x(e),m&&m.d(b)}}}function oc(t){return!t.path||t.path===""?"index":t.path}function _0(t,e,r){let{$$slots:n={},$$scope:i}=e,{page:o}=e;return t.$$set=s=>{"page"in s&&r(0,o=s.page),"$$scope"in s&&r(1,i=s.$$scope)},[o,i,n]}var Ui=class extends he{constructor(e){super(),we(this,e,_0,y0,fe,{page:0})}get page(){return this.$$.ctx[0]}set page(e){this.$$set({page:e}),de()}};xe(Ui,{page:{}},["default"],[],!0);var Os=Ui;var Is={};tt(Is,{default:()=>ub});function w0(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function sc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function As(t){for(var e=1;e=0)&&(r[i]=t[i]);return r}function lc(t,e){if(t==null)return{};var r=x0(t,e),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function uc(t,e){return k0(t)||S0(t,e)||E0(t,e)||O0()}function k0(t){if(Array.isArray(t))return t}function S0(t,e){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(t)))){var r=[],n=!0,i=!1,o=void 0;try{for(var s=t[Symbol.iterator](),l;!(n=(l=s.next()).done)&&(r.push(l.value),!(e&&r.length===e));n=!0);}catch(a){i=!0,o=a}finally{try{!n&&s.return!=null&&s.return()}finally{if(i)throw o}}return r}}function E0(t,e){if(t){if(typeof t=="string")return ac(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ac(t,e)}}function ac(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r=t.length?t.apply(this,i):function(){for(var s=arguments.length,l=new Array(s),a=0;a1&&arguments[1]!==void 0?arguments[1]:{};Bi.initial(t),Bi.handler(e);var r={current:t},n=cn(q0)(r,e),i=cn(j0)(r),o=cn(Bi.changes)(t),s=cn(R0)(r);function l(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(c){return c};return Bi.selector(u),u(r.current)}function a(u){A0(n,i,o,s)(u)}return[l,a]}function R0(t,e){return fn(e)?e(t.current):e}function j0(t,e){return t.current=fc(fc({},t.current),e),e}function q0(t,e,r){return fn(e)?e(t.current):Object.keys(r).forEach(function(n){var i;return(i=e[n])===null||i===void 0?void 0:i.call(e,t.current[n])}),r}var U0={create:N0},dc=U0;var B0={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}},pc=B0;function z0(t){return function e(){for(var r=this,n=arguments.length,i=new Array(n),o=0;o=t.length?t.apply(this,i):function(){for(var s=arguments.length,l=new Array(s),a=0;ao.indexOf(e)<0:o=>o.indexOf("__svelte")===-1),i=r.length-n.length;i&&(t.style.animation=n.join(", "),Mi-=i,Mi||u0())}function u0(){tn(()=>{Mi||(Di.forEach(t=>{let{ownerNode:e}=t.stylesheet;e&&x(e)}),Di.clear())})}var er;function zt(t){er=t}function Li(){if(!er)throw new Error("Function called outside component initialization");return er}function on(t){Li().$$.on_mount.push(t)}function sn(t){Li().$$.on_destroy.push(t)}function Wt(){let t=Li();return(e,r,{cancelable:n=!1}={})=>{let i=t.$$.callbacks[e];if(i){let o=nn(e,r,{cancelable:n});return i.slice().forEach(s=>{s.call(t,o)}),!o.defaultPrevented}return!0}}var gr=[];var dt=[],Ir=[],Ju=[],Xu=Promise.resolve(),_s=!1;function ws(){_s||(_s=!0,Xu.then(de))}function an(){return ws(),Xu}function Ct(t){Ir.push(t)}var ys=new Set,Tr=0;function de(){if(Tr!==0)return;let t=er;do{try{for(;Trt.indexOf(n)===-1?e.push(n):r.push(n)),r.forEach(n=>n()),Ir=e}var ln;function f0(){return ln||(ln=Promise.resolve(),ln.then(()=>{ln=null})),ln}function xs(t,e,r){t.dispatchEvent(nn(`${e?"intro":"outro"}${r}`))}var Ni=new Set,Vt;function ae(){Vt={r:0,c:[],p:Vt}}function le(){Vt.r||ce(Vt.c),Vt=Vt.p}function P(t,e){t&&t.i&&(Ni.delete(t),t.i(e))}function L(t,e,r,n){if(t&&t.o){if(Ni.has(t))return;Ni.add(t),Vt.c.push(()=>{Ni.delete(t),n&&(r&&t.d(1),n())}),t.o(e)}else n&&n()}var d0={duration:0};function tr(t,e,r,n){let o=e(t,r,{direction:"both"}),s=n?0:1,l=null,a=null,u=null,c;function p(){u&&vs(t,u)}function d(g,w){let h=g.b-s;return w*=Math.abs(h),{a:s,b:g.b,d:h,duration:w,start:g.start,end:g.start+w,group:g.group}}function f(g){let{delay:w=0,duration:h=300,easing:m=Cr,tick:b=Q,css:v}=o||d0,_={start:ps()+w,b:g};g||(_.group=Vt,Vt.r+=1),"inert"in t&&(g?c!==void 0&&(t.inert=c):(c=t.inert,t.inert=!0)),l||a?a=_:(v&&(p(),u=Fi(t,s,g,h,w,m,v)),g&&b(0,1),l=d(_,h),Ct(()=>xs(t,g,"start")),hs(y=>{if(a&&y>a.start&&(l=d(a,h),a=null,xs(t,l.b,"start"),v&&(p(),u=Fi(t,s,l.b,l.duration,0,m,o.css))),l){if(y>=l.end)b(s=l.b,1-s),xs(t,l.b,"end"),a||(l.b?p():--l.group.r||ce(l.group.c)),l=null;else if(y>=l.start){let C=y-l.start;s=l.a+l.d*m(C/l.duration),b(s,1-s)}}return!!(l||a)}))}return{run(g){Et(o)?f0().then(()=>{o=o({direction:g?"in":"out"}),f(g)}):f(g)},end(){p(),l=a=null}}}function ge(t){return t?.length!==void 0?t:Array.from(t)}function ec(t,e){t.d(1),e.delete(t.key)}function tc(t,e){L(t,1,1,()=>{e.delete(t.key)})}function ks(t,e,r,n,i,o,s,l,a,u,c,p){let d=t.length,f=o.length,g=d,w={};for(;g--;)w[t[g].key]=g;let h=[],m=new Map,b=new Map,v=[];for(g=f;g--;){let E=p(i,o,g),S=r(E),D=s.get(S);D?n&&v.push(()=>D.p(E,e)):(D=u(S,E),D.c()),m.set(S,h[g]=D),S in w&&b.set(S,Math.abs(g-w[S]))}let _=new Set,y=new Set;function C(E){P(E,1),E.m(l,c),s.set(E.key,E),c=E.first,f--}for(;d&&f;){let E=h[f-1],S=t[d-1],D=E.key,O=S.key;E===S?(c=E.first,d--,f--):m.has(O)?!s.has(D)||_.has(D)?C(E):y.has(O)?d--:b.get(D)>b.get(O)?(y.add(D),C(E)):(_.add(O),d--):(a(S,s),d--)}for(;d--;){let E=t[d];m.has(E.key)||a(E,s)}for(;f;)C(h[f-1]);return ce(v),h}function un(t,e){let r={},n={},i={$$scope:1},o=t.length;for(;o--;){let s=t[o],l=e[o];if(l){for(let a in s)a in l||(n[a]=1);for(let a in l)i[a]||(r[a]=l[a],i[a]=1);t[o]=l}else for(let a in s)i[a]=1}for(let s in n)s in r||(r[s]=void 0);return r}var p0=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],h0=new Set([...p0]);function Te(t){t&&t.c()}function Ie(t,e){t&&t.l(e)}function Oe(t,e,r){let{fragment:n,after_update:i}=t.$$;n&&n.m(e,r),Ct(()=>{let o=t.$$.on_mount.map(fs).filter(Et);t.$$.on_destroy?t.$$.on_destroy.push(...o):ce(o),t.$$.on_mount=[]}),i.forEach(Ct)}function Ce(t,e){let r=t.$$;r.fragment!==null&&(Zu(r.after_update),ce(r.on_destroy),r.fragment&&r.fragment.d(e),r.on_destroy=r.fragment=null,r.ctx=[])}function g0(t,e){t.$$.dirty[0]===-1&&(gr.push(t),ws(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{let g=f.length?f[0]:d;return u.ctx&&i(u.ctx[p],u.ctx[p]=g)&&(!u.skip_bound&&u.bound[p]&&u.bound[p](g),c&&g0(t,p)),d}):[],u.update(),c=!0,ce(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Uu();let p=M(e.target);u.fragment&&u.fragment.l(p),p.forEach(x)}else u.fragment&&u.fragment.c();e.intro&&P(t.$$.fragment),Oe(t,e.target,e.anchor),Bu(),de()}zt(a)}var rc;typeof HTMLElement=="function"&&(rc=class extends HTMLElement{constructor(e,r,n){super();Re(this,"$$ctor");Re(this,"$$s");Re(this,"$$c");Re(this,"$$cn",!1);Re(this,"$$d",{});Re(this,"$$r",!1);Re(this,"$$p_d",{});Re(this,"$$l",{});Re(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=r,n&&this.attachShadow({mode:"open"})}addEventListener(e,r,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(r),this.$$c){let i=this.$$c.$on(e,r);this.$$l_u.set(r,i)}super.addEventListener(e,r,n)}removeEventListener(e,r,n){if(super.removeEventListener(e,r,n),this.$$c){let i=this.$$l_u.get(r);i&&(i(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(o){return()=>{let s;return{c:function(){s=I("slot"),o!=="default"&&k(s,"name",o)},m:function(u,c){$i(u,s,c)},d:function(u){u&&x(s)}}}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;let r={},n=Ku(this);for(let o of this.$$s)o in n&&(r[o]=[e(o)]);for(let o of this.attributes){let s=this.$$g_p(o.name);s in this.$$d||(this.$$d[s]=Ri(s,o.value,this.$$p_d,"toProp"))}for(let o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$scope:{ctx:[]}}});let i=()=>{this.$$r=!0;for(let o in this.$$p_d)if(this.$$d[o]=this.$$c.$$.ctx[this.$$c.$$.props[o]],this.$$p_d[o].reflect){let s=Ri(o,this.$$d[o],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,s)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(let o in this.$$l)for(let s of this.$$l[o]){let l=this.$$c.$on(o,s);this.$$l_u.set(s,l)}this.$$l={}}}attributeChangedCallback(e,r,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Ri(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{this.$$cn||(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(r=>this.$$p_d[r].attribute===e||!this.$$p_d[r].attribute&&r.toLowerCase()===e)||e}});function Ri(t,e,r,n){let i=r[t]?.type;if(e=i==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!r[t])return e;if(n==="toAttribute")switch(i){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(i){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function ke(t,e,r,n,i,o){let s=class extends rc{constructor(){super(t,r,i),this.$$p_d=e}static get observedAttributes(){return Object.keys(e).map(l=>(e[l].attribute||l).toLowerCase())}};return Object.keys(e).forEach(l=>{Object.defineProperty(s.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(a){a=Ri(l,a,e),this.$$d[l]=a,this.$$c?.$set({[l]:a})}})}),n.forEach(l=>{Object.defineProperty(s.prototype,l,{get(){return this.$$c?.[l]}})}),o&&(s=o(s)),t.element=s,s}var he=class{constructor(){Re(this,"$$");Re(this,"$$set")}$destroy(){Ce(this,1),this.$destroy=Q}$on(e,r){if(!Et(r))return Q;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(r),()=>{let i=n.indexOf(r);i!==-1&&n.splice(i,1)}}$set(e){this.$$set&&!Mu(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var nc="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(nc);function Pr(t,{delay:e=0,duration:r=400,easing:n=Cr}={}){let i=+getComputedStyle(t).opacity;return{delay:e,duration:r,easing:n,css:o=>`opacity: ${o*i}`}}var $r=[];function b0(t,e){return{subscribe:Ge(t,e).subscribe}}function Ge(t,e=Q){let r,n=new Set;function i(l){if(fe(t,l)&&(t=l,r)){let a=!$r.length;for(let u of n)u[1](),$r.push(u,t);if(a){for(let u=0;u<$r.length;u+=2)$r[u][0]($r[u+1]);$r.length=0}}}function o(l){i(l(t))}function s(l,a=Q){let u=[l,a];return n.add(u),n.size===1&&(r=e(i,o)||Q),l(t),()=>{n.delete(u),n.size===0&&r&&(r(),r=null)}}return{set:i,update:o,subscribe:s}}function br(t,e,r){let n=!Array.isArray(t),i=n?[t]:t;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let o=e.length<2;return b0(r,(s,l)=>{let a=!1,u=[],c=0,p=Q,d=()=>{if(c)return;p();let g=e(n?u[0]:u,s,l);o?s(g):p=Et(g)?g:Q},f=i.map((g,w)=>Jt(g,h=>{u[w]=h,c&=~(1<{c|=1<{n&&(r||(r=tr(e,Pr,{},!0)),r.run(1))}),n=!0)},o(i){i&&(r||(r=tr(e,Pr,{},!1)),r.run(0)),n=!1},d(i){i&&x(e),i&&r&&r.end()}}}function v0(t){let e,r=t[0]&&ic(t);return{c(){r&&r.c(),e=G()},l(n){r&&r.l(n),e=G()},m(n,i){r&&r.m(n,i),T(n,e,i)},p(n,[i]){n[0]?r?i&1&&P(r,1):(r=ic(n),r.c(),P(r,1),r.m(e.parentNode,e)):r&&(ae(),L(r,1,1,()=>{r=null}),le())},i(n){P(r)},o(n){L(r)},d(n){n&&x(e),r&&r.d(n)}}}var ji=Ge(!1);function y0(t,e,r){let n,i=Q,o=()=>(i(),i=Jt(ji,s=>r(0,n=s)),ji);return ee(t,ji,s=>r(0,n=s)),t.$$.on_destroy.push(()=>i()),[n]}var qi=class extends he{constructor(e){super(),xe(this,e,y0,v0,fe,{})}};ke(qi,{},[],[],!0);var Ss=qi;var Cs={};it(Cs,{default:()=>Os});function _0(t){let e,r,n,i=' ',o,s,l,a,u=oc(t[0])+"",c,p,d,f="",g,w,h=t[2].default,m=ot(h,t,t[1],null);return{c(){e=I("div"),r=I("div"),n=I("div"),n.innerHTML=i,o=J(),s=I("div"),l=I("div"),a=I("span"),c=re(u),p=J(),d=I("div"),d.innerHTML=f,g=J(),m&&m.c(),this.h()},l(b){e=$(b,"DIV",{class:!0,"data-test-id":!0});var v=M(e);r=$(v,"DIV",{class:!0,"data-test-id":!0});var _=M(r);n=$(_,"DIV",{class:!0,"data-svelte-h":!0}),Ze(n)!=="svelte-vi2fc4"&&(n.innerHTML=i),o=X(_),s=$(_,"DIV",{class:!0});var y=M(s);l=$(y,"DIV",{class:!0});var C=M(l);a=$(C,"SPAN",{"data-test-id":!0});var E=M(a);c=ie(E,u),E.forEach(x),C.forEach(x),y.forEach(x),p=X(_),d=$(_,"DIV",{class:!0,"data-svelte-h":!0}),Ze(d)!=="svelte-1czp51h"&&(d.innerHTML=f),_.forEach(x),g=X(v),m&&m.l(v),v.forEach(x),this.h()},h(){k(n,"class","py-2"),k(a,"data-test-id","url-box"),k(l,"class","rounded bg-gray-50 border-b border-gray-200 shadow max-w-xs mx-auto text-center py-0.5 relative"),k(s,"class","flex-1 py-2.5 overflow-visible"),k(d,"class","py-3"),k(r,"class","bg-gray-50 border-b border-gray-200 border-solid rounded-t-xl h-12 px-3.5 flex"),k(r,"data-test-id","address-bar"),k(e,"class","flex-1 flex flex-col"),k(e,"data-test-id","fake-browser")},m(b,v){T(b,e,v),A(e,r),A(r,n),A(r,o),A(r,s),A(s,l),A(l,a),A(a,c),A(r,p),A(r,d),A(e,g),m&&m.m(e,null),w=!0},p(b,[v]){(!w||v&1)&&u!==(u=oc(b[0])+"")&&He(c,u),m&&m.p&&(!w||v&2)&&at(m,h,b,b[1],w?st(h,b[1],v,null):lt(b[1]),null)},i(b){w||(P(m,b),w=!0)},o(b){L(m,b),w=!1},d(b){b&&x(e),m&&m.d(b)}}}function oc(t){return!t.path||t.path===""?"index":t.path}function w0(t,e,r){let{$$slots:n={},$$scope:i}=e,{page:o}=e;return t.$$set=s=>{"page"in s&&r(0,o=s.page),"$$scope"in s&&r(1,i=s.$$scope)},[o,i,n]}var Ui=class extends he{constructor(e){super(),xe(this,e,w0,_0,fe,{page:0})}get page(){return this.$$.ctx[0]}set page(e){this.$$set({page:e}),de()}};ke(Ui,{page:{}},["default"],[],!0);var Os=Ui;var Is={};it(Is,{default:()=>cb});function x0(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function sc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function As(t){for(var e=1;e=0)&&(r[i]=t[i]);return r}function lc(t,e){if(t==null)return{};var r=k0(t,e),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function uc(t,e){return S0(t)||E0(t,e)||O0(t,e)||C0()}function S0(t){if(Array.isArray(t))return t}function E0(t,e){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(t)))){var r=[],n=!0,i=!1,o=void 0;try{for(var s=t[Symbol.iterator](),l;!(n=(l=s.next()).done)&&(r.push(l.value),!(e&&r.length===e));n=!0);}catch(a){i=!0,o=a}finally{try{!n&&s.return!=null&&s.return()}finally{if(i)throw o}}return r}}function O0(t,e){if(t){if(typeof t=="string")return ac(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ac(t,e)}}function ac(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r=t.length?t.apply(this,i):function(){for(var s=arguments.length,l=new Array(s),a=0;a1&&arguments[1]!==void 0?arguments[1]:{};Bi.initial(t),Bi.handler(e);var r={current:t},n=cn(U0)(r,e),i=cn(q0)(r),o=cn(Bi.changes)(t),s=cn(j0)(r);function l(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(c){return c};return Bi.selector(u),u(r.current)}function a(u){T0(n,i,o,s)(u)}return[l,a]}function j0(t,e){return fn(e)?e(t.current):e}function q0(t,e){return t.current=fc(fc({},t.current),e),e}function U0(t,e,r){return fn(e)?e(t.current):Object.keys(r).forEach(function(n){var i;return(i=e[n])===null||i===void 0?void 0:i.call(e,t.current[n])}),r}var B0={create:R0},dc=B0;var z0={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}},pc=z0;function W0(t){return function e(){for(var r=this,n=arguments.length,i=new Array(n),o=0;o=t.length?t.apply(this,i):function(){for(var s=arguments.length,l=new Array(s),a=0;a{Hi.config({paths:{vs:"/node_modules/monaco-editor/min/vs"}}),s=await Hi.init();let u=s.editor.create(l,{value:n,language:"elixir",minimap:{enabled:!1},lineNumbers:"off",automaticLayout:!0});u.onDidBlurEditorWidget(c=>{let p=u.getValue();i("change",p)})}),sn(()=>{s?.editor.getModels().forEach(u=>u.dispose())});function a(u){ut[u?"unshift":"push"](()=>{l=u,r(0,l)})}return t.$$set=u=>{"value"in u&&r(1,n=u.value)},t.$$.update=()=>{t.$$.dirty&2&&o&&o.setValue(n)},[l,n,a]}var Gi=class extends he{constructor(e){super(),we(this,e,lb,ab,fe,{value:1})}get value(){return this.$$.ctx[1]}set value(e){this.$$set({value:e}),de()}};xe(Gi,{value:{}},[],[],!0);var ub=Gi;var Ds={};tt(Ds,{default:()=>$s});function Ps(t,{delay:e=0,duration:r=300,x:n=0,y:i=0}){return{delay:e,duration:r,css:o=>`transform: translate(${n*o}px, ${i*o}px)`}}var br=Ve(null);var St=Ve(null),Yi=()=>{St.update(()=>null)};function cb(t){Xt(t,"svelte-uvq63b","#left-sidebar.svelte-uvq63b{z-index:1000}#backdrop.svelte-uvq63b{z-index:999}")}function Sc(t,e,r){let n=t.slice();return n[18]=e[r],n}function Ec(t,e,r){let n=t.slice();return n[21]=e[r],n}function Oc(t,e,r){let n=t.slice();return n[24]=e[r],n}function Cc(t){let e,r,n=t[21].name+"",i;return{c(){e=I("li"),r=I("h3"),i=re(n),this.h()},l(o){e=$(o,"LI",{class:!0,"data-test-id":!0});var s=M(e);r=$(s,"H3",{class:!0});var l=M(r);i=ie(l,n),l.forEach(x),s.forEach(x),this.h()},h(){k(r,"class","text-xs font-bold uppercase"),k(e,"class","mb-1 px-4"),k(e,"data-test-id","nav-item")},m(o,s){T(o,e,s),A(e,r),A(r,i)},p(o,s){s&2&&n!==(n=o[21].name+"")&&We(i,n)},d(o){o&&x(e)}}}function Ac(t){let e,r,n=t[4][t[24].name]+"",i,o,s,l;function a(){return t[13](t[24])}return{c(){e=I("li"),r=I("div"),i=re(n),o=J(),this.h()},l(u){e=$(u,"LI",{class:!0,"data-test-id":!0});var c=M(e);r=$(c,"DIV",{});var p=M(r);i=ie(p,n),p.forEach(x),o=X(c),c.forEach(x),this.h()},h(){k(e,"class","p-2 pl-6 hover:bg-slate-50 hover:cursor-pointer"),k(e,"data-test-id","nav-item")},m(u,c){T(u,e,c),A(e,r),A(r,i),A(e,o),s||(l=[K(e,"mouseenter",a),K(e,"mouseleave",t[5])],s=!0)},p(u,c){t=u,c&2&&n!==(n=t[4][t[24].name]+"")&&We(i,n)},d(u){u&&x(e),s=!1,ce(l)}}}function Tc(t){let e,r,n=t[1].length>1&&Cc(t),i=ge(t[21].items),o=[];for(let s=0;s1?n?n.p(s,l):(n=Cc(s),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null),l&178){i=ge(s[21].items);let a;for(a=0;a{n&&(r||(r=tr(e,Ir,{duration:300},!0)),r.run(1))}),n=!0)},o(i){i&&(r||(r=tr(e,Ir,{duration:300},!1)),r.run(0)),n=!1},d(i){i&&x(e),i&&r&&r.end()}}}function fb(t){let e,r,n,i='

Components

',o,s,l,a,u,c=t[4][t[0]?.name]+"",p,d,f,g="Drag and drop an element into the page",w,h,m,b,v,_,y,C=ge(t[1]),E=[];for(let O=0;O{D=null}),ue())},i(O){v||(O&&kt(()=>{v&&(h||(h=tr(a,Ps,{x:384},!0)),h.run(1))}),P(D),v=!0)},o(O){O&&(h||(h=tr(a,Ps,{x:384},!1)),h.run(0)),L(D),v=!1},d(O){O&&(x(e),x(m),x(b)),st(E,O),S&&S.d(),O&&h&&h.end(),D&&D.d(O),_=!1,ce(y)}}}function db(t,e,r){let n,i,o,s,l;ee(t,St,y=>r(17,s=y)),ee(t,br,y=>r(0,l=y));let{components:a}=e,u=[],c={basic:"Basics",html_tag:"HTML Tags",data:"Data",element:"Elements",media:"Media",section:"Section"},p=!1,d,f;function g(){clearTimeout(f),d=setTimeout(()=>{r(2,p=!1)},400)}function w(){clearTimeout(d)}function h(y){s||(clearTimeout(d),p?f=setTimeout(()=>{_e(br,l=y,l),r(2,p=!0)},100):(_e(br,l=y,l),r(2,p=!0)))}function m(y,C){setTimeout(()=>{_e(St,s=y,s),r(2,p=!1)},100)}function b(){Yi()}let v=y=>h(y),_=(y,C)=>m(y,C);return t.$$set=y=>{"components"in y&&r(10,a=y.components)},t.$$.update=()=>{t.$$.dirty&1024&&r(12,n=a),t.$$.dirty&4096&&r(1,u=[{name:"Base",items:Array.from(new Set(n.map(y=>y.category))).map(y=>({id:y,name:y}))}]),t.$$.dirty&4096&&r(11,i=(n||[]).reduce((y,C)=>{var E;return y[E=C.category]||(y[E]=[]),y[C.category].push(C),y},{})),t.$$.dirty&2049&&r(3,o=l?i[l.id]:[])},[l,u,p,o,c,g,w,h,m,b,a,i,n,v,_]}var Qi=class extends he{constructor(e){super(),we(this,e,db,fb,fe,{components:10},cb)}get components(){return this.$$.ctx[10]}set components(e){this.$$set({components:e}),de()}};xe(Qi,{components:{}},[],[],!0);var $s=Qi;var Rs={};tt(Rs,{default:()=>Ns});var qe=Ve(),Ye=Ve(),Vt=Ve(),nr=Ve(),pb=gr([qe],([t])=>{if(t)return{tag:"root",attrs:{},content:t.ast}}),$r=gr([qe,Ye],([t,e])=>{if(t&&e)return Dr(t.ast,e)});function Dc(t){if(t==="root")return null;let e=t.split(".");return e.length===1?"root":(e.pop(),e.join("."))}var Mc=gr([Ye],([t])=>Dc(t)),hb=gr([Mc],([t])=>Dc(t)),Fc=gr([qe,Mc],([t,e])=>Dr(t.ast,e)),Lc=gr([qe,hb],([t,e])=>Dr(t.ast,e)),pn=Ve(null);function Ki(t){Ye.update(()=>t)}function Ms(t){pn.update(()=>t)}function hn(){Ye.update(()=>null),pn.update(()=>null)}function je(t){return typeof t!="string"}function Dr(t,e){if(e==="root")return qt(pb);let r=e.split(".").map(i=>parseInt(i,10)),n=t[r[0]];t=n.content;for(let i=1;i{s[c]=null}),ue(),r=s[e],r?r.p(a,u):(r=s[e]=o[e](a),r.c()),P(r,1),r.m(n.parentNode,n))},i(a){i||(P(r),i=!0)},o(a){L(r),i=!1},d(a){a&&x(n),s[e].d(a)}}}function bb(t){let e=t[0].tag,r,n,i=t[0].tag&&Fs(t);return{c(){i&&i.c(),r=G()},l(o){i&&i.l(o),r=G()},m(o,s){i&&i.m(o,s),T(o,r,s)},p(o,s){o[0].tag?e?fe(e,o[0].tag)?(i.d(1),i=Fs(o),e=o[0].tag,i.c(),i.m(r.parentNode,r)):i.p(o,s):(i=Fs(o),e=o[0].tag,i.c(),i.m(r.parentNode,r)):e&&(i.d(1),i=null,e=o[0].tag)},i:Q,o(o){L(i,o),n=!1},d(o){o&&x(r),i&&i.d(o)}}}function vb(t){let e=t[0].tag,r,n=t[0].tag&&Ls(t);return{c(){n&&n.c(),r=G()},l(i){n&&n.l(i),r=G()},m(i,o){n&&n.m(i,o),T(i,r,o)},p(i,o){i[0].tag?e?fe(e,i[0].tag)?(n.d(1),n=Ls(i),e=i[0].tag,n.c(),n.m(r.parentNode,r)):n.p(i,o):(n=Ls(i),e=i[0].tag,n.c(),n.m(r.parentNode,r)):e&&(n.d(1),n=null,e=i[0].tag)},i:Q,o:Q,d(i){i&&x(r),n&&n.d(i)}}}function yb(t){let e,r=t[0].rendered_html+"",n;return{c(){e=new lt(!1),n=G(),this.h()},l(i){e=Ut(i,!1),n=G(),this.h()},h(){e.a=n},m(i,o){e.m(r,i,o),T(i,n,o)},p(i,o){o&1&&r!==(r=i[0].rendered_html+"")&&e.p(r)},i:Q,o:Q,d(i){i&&(x(n),e.d())}}}function _b(t){let e,r=t[2].default,n=rt(r,t,t[1],null);return{c(){n&&n.c()},l(i){n&&n.l(i)},m(i,o){n&&n.m(i,o),e=!0},p(i,o){n&&n.p&&(!e||o&2)&&it(n,r,i,i[1],e?nt(r,i[1],o,null):ot(i[1]),null)},i(i){e||(P(n,i),e=!0)},o(i){L(n,i),e=!1},d(i){n&&n.d(i)}}}function wb(t){let e,r="",n;return{c(){e=new lt(!1),n=G(),this.h()},l(i){e=Ut(i,!1),n=G(),this.h()},h(){e.a=n},m(i,o){e.m(r,i,o),T(i,n,o)},p(i,o){o&1&&r!==(r="")&&e.p(r)},i:Q,o:Q,d(i){i&&(x(n),e.d())}}}function xb(t){let e,r="",n;return{c(){e=new lt(!1),n=G(),this.h()},l(i){e=Ut(i,!1),n=G(),this.h()},h(){e.a=n},m(i,o){e.m(r,i,o),T(i,n,o)},p(i,o){o&1&&r!==(r="")&&e.p(r)},i:Q,o:Q,d(i){i&&(x(n),e.d())}}}function Uc(t){let e,r,n=ge(t[0].content),i=[];for(let s=0;sL(i[s],1,1,()=>{i[s]=null});return{c(){for(let s=0;s{n=null}),ue()),Zt(s[0].tag)(e,o=un(i,[l&1&&s[0].attrs]))},i(s){r||(P(n),r=!0)},o(s){L(n),r=!1},d(s){s&&x(e),n&&n.d()}}}function Ls(t){let e,r=[t[0].attrs],n={};for(let i=0;i{l[p]=null}),ue(),n=l[r],n?n.p(u,c):(n=l[r]=s[r](u),n.c()),P(n,1),n.m(i.parentNode,i))},i(u){o||(P(n),o=!0)},o(u){L(n),o=!1},d(u){u&&x(i),l[r].d(u)}}}function Sb(t,e,r){let{$$slots:n={},$$scope:i}=e,{node:o}=e;return t.$$set=s=>{"node"in s&&r(0,o=s.node),"$$scope"in s&&r(1,i=s.$$scope)},[o,i,n]}var mn=class extends he{constructor(e){super(),we(this,e,Sb,kb,fe,{node:0})}get node(){return this.$$.ctx[0]}set node(e){this.$$set({node:e}),de()}};xe(mn,{node:{}},["default"],[],!0);var Ns=mn;var Bs={};tt(Bs,{default:()=>Us});var mt=Ve();function Ji(t=null){if(t){let e=t.split(".");return e.length===1?"root":e.slice(0,-1).join(".")}}function Xi(t,e){t&&je(t)&&(t.content=[e],Zi())}function Zi(){let t=qt(qe);qt(mt).pushEvent("update_page_ast",{id:t.id,ast:t.ast})}function eo(t){let e=qt(qe),r=qt(mt),n=Dr(e.ast,t),i=Ji(t),o=i&&i!=="root"?Dr(e.ast,i)?.content:e.ast;if(o){let s=o.indexOf(n);o.splice(s,1),Zi()}}function ir(t){return!0}function to(t,e){return e==="x"?t.x+t.width/2:t.y+t.height/2}function Eb(t){let e=!1,r=!1,n=5;for(let i=1;in&&an&&(r=!0)}return e&&r?"both":e?"horizontal":"vertical"}function js(t){let e=t?.parentElement;if(!e)return"vertical";let n=Array.from(e.children).map(i=>i.getBoundingClientRect());return Eb(n)}function Mr(t){if(window.getComputedStyle(t).display==="contents"){if(t.children.length===1)return t.children[0].getBoundingClientRect();let e=Array.from(t.children).map(s=>s.getBoundingClientRect()),r=Math.min(...e.map(s=>s.top)),n=Math.max(...e.map(s=>s.bottom)),i=Math.min(...e.map(s=>s.left)),o=Math.max(...e.map(s=>s.right));return{x:Math.min(...e.map(s=>s.x)),y:Math.min(...e.map(s=>s.y)),top:r,right:o,bottom:n,left:i,width:o-i,height:n-r}}return t.getBoundingClientRect()}function Vc(t,e,r){let n=Ab(e[r],t),i=r,o=0;for(let s=0;so){o=a,i=s;continue}if(a===o){let u=e[i];zc(l,u) iframe{pointer-events:none}")}function Hc(t,e,r){let n=t.slice();return n[27]=e[r],n[29]=r,n}function Ib(t){let e;return{c(){e=re(t[0])},l(r){e=ie(r,t[0])},m(r,n){T(r,e,n)},p(r,n){n&1&&We(e,r[0])},i:Q,o:Q,d(r){r&&x(e)}}}function Pb(t){let e,r,n,i,o=[Lb,Fb,Mb,Db,$b],s=[];function l(a,u){return a[0].tag==="html_comment"?0:a[0].tag==="eex_comment"?1:a[0].tag==="eex"&&a[0].content[0]==="@inner_content"?2:a[0].rendered_html?3:4}return e=l(t,-1),r=s[e]=o[e](t),{c(){r.c(),n=G()},l(a){r.l(a),n=G()},m(a,u){s[e].m(a,u),T(a,n,u),i=!0},p(a,u){let c=e;e=l(a,u),e===c?s[e].p(a,u):(le(),L(s[c],1,1,()=>{s[c]=null}),ue(),r=s[e],r?r.p(a,u):(r=s[e]=o[e](a),r.c()),P(r,1),r.m(n.parentNode,n))},i(a){i||(P(r),i=!0)},o(a){L(r),i=!1},d(a){a&&x(n),s[e].d(a)}}}function $b(t){let e=t[0].tag,r,n,i=t[0].tag&&qs(t);return{c(){i&&i.c(),r=G()},l(o){i&&i.l(o),r=G()},m(o,s){i&&i.m(o,s),T(o,r,s)},p(o,s){o[0].tag?e?fe(e,o[0].tag)?(i.d(1),i=qs(o),e=o[0].tag,i.c(),i.m(r.parentNode,r)):i.p(o,s):(i=qs(o),e=o[0].tag,i.c(),i.m(r.parentNode,r)):e&&(i.d(1),i=null,e=o[0].tag)},i:Q,o(o){L(i,o),n=!1},d(o){o&&x(r),i&&i.d(o)}}}function Db(t){let e,r,n=t[0].rendered_html+"",i,o,s;return{c(){e=I("div"),r=new lt(!1),this.h()},l(l){e=$(l,"DIV",{"data-selected":!0});var a=M(e);r=Ut(a,!1),a.forEach(x),this.h()},h(){r.a=null,k(e,"data-selected",t[4]),Le(e,"contents",t[7]),Le(e,"embedded-iframe",t[6])},m(l,a){T(l,e,a),r.m(n,e),t[25](e),o||(s=[K(e,"mouseover",xt(t[16])),K(e,"mouseout",xt(t[17])),K(e,"click",xt($t(t[18]))),Nu(i=qb.call(null,e,{selected:t[4],highlighted:t[10]}))],o=!0)},p(l,a){a&1&&n!==(n=l[0].rendered_html+"")&&r.p(n),a&16&&k(e,"data-selected",l[4]),i&&wt(i.update)&&a&1040&&i.update.call(null,{selected:l[4],highlighted:l[10]}),a&128&&Le(e,"contents",l[7]),a&64&&Le(e,"embedded-iframe",l[6])},i:Q,o:Q,d(l){l&&x(e),t[25](null),o=!1,ce(s)}}}function Mb(t){let e,r=t[24].default,n=rt(r,t,t[23],null);return{c(){n&&n.c()},l(i){n&&n.l(i)},m(i,o){n&&n.m(i,o),e=!0},p(i,o){n&&n.p&&(!e||o&8388608)&&it(n,r,i,i[23],e?nt(r,i[23],o,null):ot(i[23]),null)},i(i){e||(P(n,i),e=!0)},o(i){L(n,i),e=!1},d(i){n&&n.d(i)}}}function Fb(t){let e,r="",n;return{c(){e=new lt(!1),n=G(),this.h()},l(i){e=Ut(i,!1),n=G(),this.h()},h(){e.a=n},m(i,o){e.m(r,i,o),T(i,n,o)},p(i,o){o&1&&r!==(r="")&&e.p(r)},i:Q,o:Q,d(i){i&&(x(n),e.d())}}}function Lb(t){let e,r="",n;return{c(){e=new lt(!1),n=G(),this.h()},l(i){e=Ut(i,!1),n=G(),this.h()},h(){e.a=n},m(i,o){e.m(r,i,o),T(i,n,o)},p(i,o){o&1&&r!==(r="")&&e.p(r)},i:Q,o:Q,d(i){i&&(x(n),e.d())}}}function Gc(t){let e,r,n,i=ge(t[5]),o=[];for(let c=0;cL(o[c],1,1,()=>{o[c]=null});function l(c,p){if(c[11]&&c[12])return Rb;if(c[13])return Nb}let a=l(t,-1),u=a&&a(t);return{c(){for(let c=0;c{o=null}),ue()):o?(o.p(a,u),u&1&&P(o,1)):(o=Gc(a),o.c(),P(o,1),o.m(e,null)),Zt(a[0].tag)(e,l=un(s,[{class:"relative"},u&1&&a[0].attrs,(!r||u&16)&&{"data-selected":a[4]},(!r||u&256)&&{"data-selected-parent":a[8]},(!r||u&1024)&&{"data-highlighted":a[10]},(!r||u&2048)&&{"data-slot-target":a[11]},(!r||u&512)&&{contenteditable:a[9]}])),Le(e,"svelte-fu018p",!0)},i(a){r||(P(o),r=!0)},o(a){L(o),r=!1},d(a){a&&x(e),o&&o.d(),t[26](null),n=!1,ce(i)}}}function jb(t){let e,r,n,i,o,s=[Pb,Ib],l=[];function a(u,c){return c&1&&(e=null),e==null&&(e=!!je(u[0])),e?0:1}return r=a(t,-1),n=l[r]=s[r](t),{c(){n.c(),i=G()},l(u){n.l(u),i=G()},m(u,c){l[r].m(u,c),T(u,i,c),o=!0},p(u,[c]){let p=r;r=a(u,c),r===p?l[r].p(u,c):(le(),L(l[p],1,1,()=>{l[p]=null}),ue(),n=l[r],n?n.p(u,c):(n=l[r]=s[r](u),n.c()),P(n,1),n.m(i.parentNode,i))},i(u){o||(P(n),o=!0)},o(u){L(n),o=!1},d(u){u&&x(i),l[r].d(u)}}}function qb(t,{selected:e,highlighted:r}){let n=t.children.length===1;if(n){let i=t.children[0];i.setAttribute("data-selected",String(e)),i.setAttribute("data-highlighted",String(r))}return{update({selected:i,highlighted:o}){if(t.children.length===1){let s=t.children[0];s.setAttribute("data-selected",String(i)),s.setAttribute("data-highlighted",String(o))}else t.children.length===0&&t.childNodes.length===1?(t.setAttribute("data-nochildren","true"),t.setAttribute("data-selected",String(i)),t.setAttribute("data-highlighted",String(o))):n&&Array.from(t.children).forEach(s=>{s.removeAttribute("data-selected"),s.removeAttribute("data-highlighted")})},destroy(){}}}function Ub(t,e,r){let n,i,o,s,l,a,u,c,p,d,f;ee(t,Vt,U=>r(20,c=U)),ee(t,$r,U=>r(21,p=U)),ee(t,nr,U=>r(22,d=U)),ee(t,St,U=>r(12,f=U));let{$$slots:g={},$$scope:w}=e,{node:h}=e,{nodeId:m}=e,b,v,_,y;function C(){f&&je(h)&&ir(f)&&_e(nr,d=h,d)}function E(){je(h)&&ir(f)&&d===h&&_e(nr,d=void 0,d)}function S(){p||je(h)&&_e(Vt,c=h,c)}function D(){_e(Vt,c=void 0,c)}function O({currentTarget:U}){Ki(m),Ms(U)}function F({target:U}){let ne=U.children;if(je(h))if(ne.length===0)U.innerText!==h.content&&Xi(h,U.innerText);else{let pe=U.cloneNode(!0);Array.from(pe.children).forEach(R=>pe.removeChild(R));let ye=h.content.findIndex(R=>typeof R=="string"),Ue=pe.textContent.trim();h.content[ye]!==Ue&&(r(0,h.content[ye]=Ue,h),Zi())}}function Z(U){ut[U?"unshift":"push"](()=>{b=U,r(2,b)})}function Y(U){ut[U?"unshift":"push"](()=>{v=U,r(3,v)})}return t.$$set=U=>{"node"in U&&r(0,h=U.node),"nodeId"in U&&r(1,m=U.nodeId),"$$scope"in U&&r(23,w=U.$$scope)},t.$$.update=()=>{t.$$.dirty&4194305&&r(11,n=d===h),t.$$.dirty&2097153&&r(4,i=p===h),t.$$.dirty&1048577&&r(10,o=c===h),t.$$.dirty&17&&r(9,s=i&&je(h)&&Array.isArray(h.content)&&h.content.filter(U=>typeof U=="string").length===1&&!h.attrs?.selfClose),t.$$.dirty&2097153&&r(8,l=je(h)&&Array.isArray(h.content)?h.content.includes(p):!1),t.$$.dirty&1&&je(h)&&r(5,y=h.content),t.$$.dirty&4&&r(7,a=!!b&&b.childElementCount>1),t.$$.dirty&4&&r(6,u=!!b&&b.getElementsByTagName("iframe").length>0),t.$$.dirty&28&&i&&Ms(v||b)},[h,m,b,v,i,y,u,a,l,s,o,n,f,_,C,E,S,D,O,F,c,p,d,w,g,Z,Y]}var gn=class extends he{constructor(e){super(),we(this,e,Ub,jb,fe,{node:0,nodeId:1},Tb)}get node(){return this.$$.ctx[0]}set node(e){this.$$set({node:e}),de()}get nodeId(){return this.$$.ctx[1]}set nodeId(e){this.$$set({nodeId:e}),de()}};xe(gn,{node:{},nodeId:{}},["default"],[],!0);var Us=gn;var Ws={};tt(Ws,{default:()=>zs});function Bb(t){Xt(t,"svelte-r4h6jy",'.contents[data-nochildren="true"], .contents[data-nochildren="true"]{display:inline}[data-slot-target="true"]{outline-color:red;outline-width:2px;outline-style:dashed}')}function Qc(t){let e,r;return e=new Os({props:{page:t[1],$$slots:{default:[zb]},$$scope:{ctx:t}}}),{c(){Ae(e.$$.fragment)},l(n){Te(e.$$.fragment,n)},m(n,i){Ee(e,n,i),r=!0},p(n,i){let o={};i&2&&(o.page=n[1]),i&2053&&(o.$$scope={dirty:i,ctx:n}),e.$set(o)},i(n){r||(P(e.$$.fragment,n),r=!0)},o(n){L(e.$$.fragment,n),r=!1},d(n){Oe(e,n)}}}function zb(t){let e,r,n,i,o,s,l;return{c(){e=I("div"),r=I("div"),n=I("page-wrapper"),this.h()},l(a){e=$(a,"DIV",{role:!0,style:!0,id:!0,class:!0,"data-test-id":!0});var u=M(e);r=$(u,"DIV",{id:!0,class:!0,"data-selected":!0});var c=M(r);n=$(c,"PAGE-WRAPPER",{class:!0}),M(n).forEach(x),c.forEach(x),u.forEach(x),this.h()},h(){bs(n,"class","relative"),k(r,"id","page-wrapper"),k(r,"class","p-1 m-1"),k(r,"data-selected",i=t[2]==="root"),k(e,"role","document"),Qu(e,"--outlined-id","title-1"),k(e,"id","fake-browser-content"),k(e,"class",o="bg-white rounded-b-xl relative overflow-hidden flex-1 "+(t[0]&&"border-dashed border-blue-500 border-2")),k(e,"data-test-id","browser-content")},m(a,u){T(a,e,u),A(e,r),A(r,n),s||(l=[K(e,"drop",$t(t[3])),K(e,"dragover",$t(t[4]))],s=!0)},p(a,u){u&4&&i!==(i=a[2]==="root")&&k(r,"data-selected",i),u&1&&o!==(o="bg-white rounded-b-xl relative overflow-hidden flex-1 "+(a[0]&&"border-dashed border-blue-500 border-2"))&&k(e,"class",o)},d(a){a&&x(e),s=!1,ce(l)}}}function Wb(t){let e,r,n=t[1]&&Qc(t);return{c(){e=I("div"),n&&n.c(),this.h()},l(i){e=$(i,"DIV",{class:!0,"data-test-id":!0});var o=M(e);n&&n.l(o),o.forEach(x),this.h()},h(){k(e,"class","flex-1 px-8 pb-4 flex max-h-full"),k(e,"data-test-id","main")},m(i,o){T(i,e,o),n&&n.m(e,null),r=!0},p(i,[o]){i[1]?n?(n.p(i,o),o&2&&P(n,1)):(n=Qc(i),n.c(),P(n,1),n.m(e,null)):n&&(le(),L(n,1,1,()=>{n=null}),ue())},i(i){r||(P(n),r=!0)},o(i){L(n),r=!1},d(i){i&&x(e),n&&n.d()}}}function Vb(t,e,r){let n,i,o,s,l,a;ee(t,qe,g=>r(1,n=g)),ee(t,mt,g=>r(5,i=g)),ee(t,nr,g=>r(6,o=g)),ee(t,St,g=>r(7,s=g)),ee(t,br,g=>r(8,l=g)),ee(t,Ye,g=>r(2,a=g));let u=!1;async function c(g){let{target:w}=g;if(_e(br,l=null,l),!s)return;let h=s;if(w.id!=="fake-browser-content"&&ir(h)){if(!(w instanceof HTMLElement)||!o||o.attrs.selfClose){f();return}p(o)}else i.pushEvent("render_component_in_page",{component_id:h.id,page_id:n.id},({ast:m})=>{i.pushEvent("update_page_ast",{id:n.id,ast:[...n.ast,...m]})});f()}async function p(g){if(!s)return;let w=s;_e(St,s=null,s);let h=g;i.pushEvent("render_component_in_page",{component_id:w.id,page_id:n.id},({ast:m})=>{h?.content.push(...m),_e(nr,o=void 0,o),i.pushEvent("update_page_ast",{id:n.id,ast:n.ast})})}function d(){r(0,u=!0)}function f(){Yi(),r(0,u=!1)}return[u,n,a,c,d]}var ro=class extends he{constructor(e){super(),we(this,e,Vb,Wb,fe,{},Bb)}};xe(ro,{},[],[],!0);var zs=ro;var ru={};tt(ru,{default:()=>wE});var bn=Ve();var vn=Ve();var Ie=Ze(Nn(),1),be=Ie.default,$5=Ie.default.stringify,D5=Ie.default.fromJSON,M5=Ie.default.plugin,F5=Ie.default.parse,L5=Ie.default.list,N5=Ie.default.document,R5=Ie.default.comment,j5=Ie.default.atRule,q5=Ie.default.rule,U5=Ie.default.decl,B5=Ie.default.root,z5=Ie.default.CssSyntaxError,W5=Ie.default.Declaration,V5=Ie.default.Container,H5=Ie.default.Processor,G5=Ie.default.Document,Y5=Ie.default.Comment,Q5=Ie.default.Warning,K5=Ie.default.AtRule,J5=Ie.default.Result,X5=Ie.default.Input,Z5=Ie.default.Rule,e3=Ie.default.Root,t3=Ie.default.Node;var Wo=Ze(Ft(),1);var Eh=Ze(Ip(),1);var zr=Ze(Hp(),1),Gp=zr.default,w3=zr.default.objectify,x3=zr.default.parse,k3=zr.default.async,S3=zr.default.sync;var Oh=Ze(Ft(),1),Rt=Ze(Ft(),1),Lh=Ze(_o(),1),Nh=Ze(Ft(),1);var zh=Ze(_l(),1),Zl=Ze(Ft(),1);var Nl=Ze(Ft(),1);var Go=Ze(Ft(),1),ci=Ze(_l(),1),im=Ze(Yp(),1);var Yo=Ze(Ft(),1),xx=Object.create,wh=Object.defineProperty,kx=Object.getOwnPropertyDescriptor,xh=Object.getOwnPropertyNames,Sx=Object.getPrototypeOf,Ex=Object.prototype.hasOwnProperty,kr=(t,e)=>function(){return e||(0,t[xh(t)[0]])((e={exports:{}}).exports,e),e.exports},Ox=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of xh(e))!Ex.call(t,i)&&i!==r&&wh(t,i,{get:()=>e[i],enumerable:!(n=kx(e,i))||n.enumerable});return t},Bl=(t,e,r)=>(r=t!=null?xx(Sx(t)):{},Ox(e||!t||!t.__esModule?wh(r,"default",{value:t,enumerable:!0}):r,t)),Cx=kr({"node_modules/@alloc/quick-lru/index.js"(t,e){"use strict";var r=class{constructor(n={}){if(!(n.maxSize&&n.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if(typeof n.maxAge=="number"&&n.maxAge===0)throw new TypeError("`maxAge` must be a number greater than 0");this.maxSize=n.maxSize,this.maxAge=n.maxAge||1/0,this.onEviction=n.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_emitEvictions(n){if(typeof this.onEviction=="function")for(let[i,o]of n)this.onEviction(i,o.value)}_deleteIfExpired(n,i){return typeof i.expiry=="number"&&i.expiry<=Date.now()?(typeof this.onEviction=="function"&&this.onEviction(n,i.value),this.delete(n)):!1}_getOrDeleteIfExpired(n,i){if(this._deleteIfExpired(n,i)===!1)return i.value}_getItemValue(n,i){return i.expiry?this._getOrDeleteIfExpired(n,i):i.value}_peek(n,i){let o=i.get(n);return this._getItemValue(n,o)}_set(n,i){this.cache.set(n,i),this._size++,this._size>=this.maxSize&&(this._size=0,this._emitEvictions(this.oldCache),this.oldCache=this.cache,this.cache=new Map)}_moveToRecent(n,i){this.oldCache.delete(n),this._set(n,i)}*_entriesAscending(){for(let n of this.oldCache){let[i,o]=n;this.cache.has(i)||this._deleteIfExpired(i,o)===!1&&(yield n)}for(let n of this.cache){let[i,o]=n;this._deleteIfExpired(i,o)===!1&&(yield n)}}get(n){if(this.cache.has(n)){let i=this.cache.get(n);return this._getItemValue(n,i)}if(this.oldCache.has(n)){let i=this.oldCache.get(n);if(this._deleteIfExpired(n,i)===!1)return this._moveToRecent(n,i),i.value}}set(n,i,{maxAge:o=this.maxAge===1/0?void 0:Date.now()+this.maxAge}={}){this.cache.has(n)?this.cache.set(n,{value:i,maxAge:o}):this._set(n,{value:i,expiry:o})}has(n){return this.cache.has(n)?!this._deleteIfExpired(n,this.cache.get(n)):this.oldCache.has(n)?!this._deleteIfExpired(n,this.oldCache.get(n)):!1}peek(n){if(this.cache.has(n))return this._peek(n,this.cache);if(this.oldCache.has(n))return this._peek(n,this.oldCache)}delete(n){let i=this.cache.delete(n);return i&&this._size--,this.oldCache.delete(n)||i}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}resize(n){if(!(n&&n>0))throw new TypeError("`maxSize` must be a number greater than 0");let i=[...this._entriesAscending()],o=i.length-n;o<0?(this.cache=new Map(i),this.oldCache=new Map,this._size=i.length):(o>0&&this._emitEvictions(i.slice(0,o)),this.oldCache=new Map(i.slice(o)),this.cache=new Map,this._size=0),this.maxSize=n}*keys(){for(let[n]of this)yield n}*values(){for(let[,n]of this)yield n}*[Symbol.iterator](){for(let n of this.cache){let[i,o]=n;this._deleteIfExpired(i,o)===!1&&(yield[i,o.value])}for(let n of this.oldCache){let[i,o]=n;this.cache.has(i)||this._deleteIfExpired(i,o)===!1&&(yield[i,o.value])}}*entriesDescending(){let n=[...this.cache];for(let i=n.length-1;i>=0;--i){let o=n[i],[s,l]=o;this._deleteIfExpired(s,l)===!1&&(yield[s,l.value])}n=[...this.oldCache];for(let i=n.length-1;i>=0;--i){let o=n[i],[s,l]=o;this.cache.has(s)||this._deleteIfExpired(s,l)===!1&&(yield[s,l.value])}}*entriesAscending(){for(let[n,i]of this._entriesAscending())yield[n,i.value]}get size(){if(!this._size)return this.oldCache.size;let n=0;for(let i of this.oldCache.keys())this.cache.has(i)||n++;return Math.min(this._size+n,this.maxSize)}};e.exports=r}}),Ax=kr({"node_modules/tailwindcss/src/value-parser/parse.js"(t,e){var r=40,n=41,i=39,o=34,s=92,l=47,a=44,u=58,c=42,p=117,d=85,f=43,g=/^[a-f0-9?-]+$/i;e.exports=function(w){for(var h=[],m=w,b,v,_,y,C,E,S,D,O=0,F=m.charCodeAt(O),Z=m.length,Y=[{nodes:h}],U=0,ne,pe="",ye="",Ue="";O=48&&c<=57)return!0;var p=a.charCodeAt(2);return c===i&&p>=48&&p<=57}return u===i?(c=a.charCodeAt(1),c>=48&&c<=57):u>=48&&u<=57}e.exports=function(a){var u=0,c=a.length,p,d,f;if(c===0||!l(a))return!1;for(p=a.charCodeAt(u),(p===n||p===r)&&u++;u57));)u+=1;if(p=a.charCodeAt(u),d=a.charCodeAt(u+1),p===i&&d>=48&&d<=57)for(u+=2;u57));)u+=1;if(p=a.charCodeAt(u),d=a.charCodeAt(u+1),f=a.charCodeAt(u+2),(p===o||p===s)&&(d>=48&&d<=57||(d===n||d===r)&&f>=48&&f<=57))for(u+=d===n||d===r?3:2;u57));)u+=1;return{number:a.slice(0,u),unit:a.slice(u)}}}}),$x=kr({"node_modules/tailwindcss/src/value-parser/index.js"(t,e){var r=Ax(),n=Tx(),i=Ix();function o(s){return this instanceof o?(this.nodes=r(s),this):new o(s)}o.prototype.toString=function(){return Array.isArray(this.nodes)?i(this.nodes):""},o.prototype.walk=function(s,l){return n(this.nodes,s,l),this},o.unit=Px(),o.walk=n,o.stringify=i,e.exports=o}}),Dx=kr({"node_modules/tailwindcss/stubs/config.full.js"(t,e){e.exports={content:[],presets:[],darkMode:"media",theme:{accentColor:({theme:r})=>({...r("colors"),auto:"auto"}),animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"bounce 1s infinite"},aria:{busy:'busy="true"',checked:'checked="true"',disabled:'disabled="true"',expanded:'expanded="true"',hidden:'hidden="true"',pressed:'pressed="true"',readonly:'readonly="true"',required:'required="true"',selected:'selected="true"'},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9"},backdropBlur:({theme:r})=>r("blur"),backdropBrightness:({theme:r})=>r("brightness"),backdropContrast:({theme:r})=>r("contrast"),backdropGrayscale:({theme:r})=>r("grayscale"),backdropHueRotate:({theme:r})=>r("hueRotate"),backdropInvert:({theme:r})=>r("invert"),backdropOpacity:({theme:r})=>r("opacity"),backdropSaturate:({theme:r})=>r("saturate"),backdropSepia:({theme:r})=>r("sepia"),backgroundColor:({theme:r})=>r("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:r})=>r("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},borderColor:({theme:r})=>({...r("colors"),DEFAULT:r("colors.gray.200","currentColor")}),borderOpacity:({theme:r})=>r("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderSpacing:({theme:r})=>({...r("spacing")}),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px"},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:r})=>r("colors"),brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2"},caretColor:({theme:r})=>r("colors"),colors:({colors:r})=>({inherit:r.inherit,current:r.current,transparent:r.transparent,black:r.black,white:r.white,slate:r.slate,gray:r.gray,zinc:r.zinc,neutral:r.neutral,stone:r.stone,red:r.red,orange:r.orange,amber:r.amber,yellow:r.yellow,lime:r.lime,green:r.green,emerald:r.emerald,teal:r.teal,cyan:r.cyan,sky:r.sky,blue:r.blue,indigo:r.indigo,violet:r.violet,purple:r.purple,fuchsia:r.fuchsia,pink:r.pink,rose:r.rose}),columns:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2"},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"alias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:r})=>r("borderColor"),divideOpacity:({theme:r})=>r("borderOpacity"),divideWidth:({theme:r})=>r("borderWidth"),dropShadow:{sm:"0 1px 1px rgb(0 0 0 / 0.05)",DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 #0000"},fill:({theme:r})=>({none:"none",...r("colors")}),flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:r})=>({auto:"auto",...r("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%"}),flexGrow:{0:"0",DEFAULT:"1"},flexShrink:{0:"0",DEFAULT:"1"},fontFamily:{sans:["ui-sans-serif","system-ui","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:({theme:r})=>r("spacing"),gradientColorStops:({theme:r})=>r("colors"),gradientColorStopPositions:{"0%":"0%","5%":"5%","10%":"10%","15%":"15%","20%":"20%","25%":"25%","30%":"30%","35%":"35%","40%":"40%","45%":"45%","50%":"50%","55%":"55%","60%":"60%","65%":"65%","70%":"70%","75%":"75%","80%":"80%","85%":"85%","90%":"90%","95%":"95%","100%":"100%"},grayscale:{0:"0",DEFAULT:"100%"},gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridColumn:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridColumnStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridRow:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridRowEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridRowStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridTemplateColumns:{none:"none",subgrid:"subgrid",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))"},gridTemplateRows:{none:"none",subgrid:"subgrid",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))"},height:({theme:r})=>({auto:"auto",...r("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content"}),hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},inset:({theme:r})=>({auto:"auto",...r("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),invert:{0:"0",DEFAULT:"100%"},keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},listStyleImage:{none:"none"},margin:({theme:r})=>({auto:"auto",...r("spacing")}),lineClamp:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6"},maxHeight:({theme:r})=>({...r("spacing"),none:"none",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content"}),maxWidth:({theme:r,breakpoints:n})=>({...r("spacing"),none:"none",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch",...n(r("screens"))}),minHeight:({theme:r})=>({...r("spacing"),full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content"}),minWidth:({theme:r})=>({...r("spacing"),full:"100%",min:"min-content",max:"max-content",fit:"fit-content"}),objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",15:"0.15",20:"0.2",25:"0.25",30:"0.3",35:"0.35",40:"0.4",45:"0.45",50:"0.5",55:"0.55",60:"0.6",65:"0.65",70:"0.7",75:"0.75",80:"0.8",85:"0.85",90:"0.9",95:"0.95",100:"1"},order:{first:"-9999",last:"9999",none:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},outlineColor:({theme:r})=>r("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},padding:({theme:r})=>r("spacing"),placeholderColor:({theme:r})=>r("colors"),placeholderOpacity:({theme:r})=>r("opacity"),ringColor:({theme:r})=>({DEFAULT:r("colors.blue.500","#3b82f6"),...r("colors")}),ringOffsetColor:({theme:r})=>r("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},ringOpacity:({theme:r})=>({DEFAULT:"0.5",...r("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg"},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2"},scale:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5"},screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},scrollMargin:({theme:r})=>({...r("spacing")}),scrollPadding:({theme:r})=>r("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg"},space:({theme:r})=>({...r("spacing")}),spacing:{px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},stroke:({theme:r})=>({none:"none",...r("colors")}),strokeWidth:{0:"0",1:"1",2:"2"},supports:{},data:{},textColor:({theme:r})=>r("colors"),textDecorationColor:({theme:r})=>r("colors"),textDecorationThickness:{auto:"auto","from-font":"from-font",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},textIndent:({theme:r})=>({...r("spacing")}),textOpacity:({theme:r})=>r("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},transformOrigin:{center:"center",top:"top","top-right":"top right",right:"right","bottom-right":"bottom right",bottom:"bottom","bottom-left":"bottom left",left:"left","top-left":"top left"},transitionDelay:{0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},translate:({theme:r})=>({...r("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),size:({theme:r})=>({auto:"auto",...r("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"}),width:({theme:r})=>({auto:"auto",...r("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",screen:"100vw",svw:"100svw",lvw:"100lvw",dvw:"100dvw",min:"min-content",max:"max-content",fit:"fit-content"}),willChange:{auto:"auto",scroll:"scroll-position",contents:"contents",transform:"transform"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50"}},plugins:[]}}});function wl(){}var He={info:wl,warn:wl,risk:wl};function Mx(t){let e=new Set,r=new Set,n=new Set;if(t.walkAtRules(i=>{i.name==="apply"&&n.add(i),i.name==="import"&&(i.params==='"tailwindcss/base"'||i.params==="'tailwindcss/base'"?(i.name="tailwind",i.params="base"):i.params==='"tailwindcss/components"'||i.params==="'tailwindcss/components'"?(i.name="tailwind",i.params="components"):i.params==='"tailwindcss/utilities"'||i.params==="'tailwindcss/utilities'"?(i.name="tailwind",i.params="utilities"):(i.params==='"tailwindcss/screens"'||i.params==="'tailwindcss/screens'"||i.params==='"tailwindcss/variants"'||i.params==="'tailwindcss/variants'")&&(i.name="tailwind",i.params="variants")),i.name==="tailwind"&&(i.params==="screens"&&(i.params="variants"),e.add(i.params)),["layer","responsive","variants"].includes(i.name)&&(["responsive","variants"].includes(i.name)&&He.warn(`${i.name}-at-rule-deprecated`,[`The \`@${i.name}\` directive has been deprecated in Tailwind CSS v3.0.`,"Use `@layer utilities` or `@layer components` instead.","https://tailwindcss.com/docs/upgrade-guide#replace-variants-with-layer"]),r.add(i))}),!e.has("base")||!e.has("components")||!e.has("utilities")){for(let i of r)if(i.name==="layer"&&["base","components","utilities"].includes(i.params)){if(!e.has(i.params))throw i.error(`\`@layer ${i.params}\` is used but no matching \`@tailwind ${i.params}\` directive is present.`)}else if(i.name==="responsive"){if(!e.has("utilities"))throw i.error("`@responsive` is used but `@tailwind utilities` is missing.")}else if(i.name==="variants"&&!e.has("utilities"))throw i.error("`@variants` is used but `@tailwind utilities` is missing.")}return{tailwindDirectives:e,applyDirectives:n}}var Fx=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:theme("borderColor.DEFAULT",currentColor)}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:theme("fontFamily.sans",ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:theme("fontFamily.sans[1].fontFeatureSettings",normal);font-variation-settings:theme("fontFamily.sans[1].fontVariationSettings",normal);-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:theme("fontFamily.mono",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:theme("fontFamily.mono[1].fontFeatureSettings",normal);font-variation-settings:theme("fontFamily.mono[1].fontVariationSettings",normal);font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:theme("colors.gray.400",#9ca3af)}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none} -`,kh={readFileSync:()=>Fx},Lx=Bl(Cx()),Sh="3.4.1",Qp={name:"tailwindcss",version:Sh,description:"A utility-first CSS framework for rapidly building custom user interfaces.",license:"MIT",main:"lib/index.js",types:"types/index.d.ts",repository:"https://github.com/tailwindlabs/tailwindcss.git",bugs:"https://github.com/tailwindlabs/tailwindcss/issues",homepage:"https://tailwindcss.com",bin:{tailwind:"lib/cli.js",tailwindcss:"lib/cli.js"},tailwindcss:{engine:"stable"},scripts:{prebuild:"npm run generate && rimraf lib",build:`swc src --out-dir lib --copy-files --config jsc.transform.optimizer.globals.vars.__OXIDE__='"false"'`,postbuild:"esbuild lib/cli-peer-dependencies.js --bundle --platform=node --outfile=peers/index.js --define:process.env.CSS_TRANSFORMER_WASM=false","rebuild-fixtures":"npm run build && node -r @swc/register scripts/rebuildFixtures.js",style:"eslint .",pretest:"npm run generate",test:"jest","test:integrations":"npm run test --prefix ./integrations","install:integrations":"node scripts/install-integrations.js","generate:plugin-list":"node -r @swc/register scripts/create-plugin-list.js","generate:types":"node -r @swc/register scripts/generate-types.js",generate:"npm run generate:plugin-list && npm run generate:types","release-channel":"node ./scripts/release-channel.js","release-notes":"node ./scripts/release-notes.js",prepublishOnly:"npm install --force && npm run build"},files:["src/*","cli/*","lib/*","peers/*","scripts/*.js","stubs/*","nesting/*","types/**/*","*.d.ts","*.css","*.js"],devDependencies:{"@swc/cli":"^0.1.62","@swc/core":"^1.3.55","@swc/jest":"^0.2.26","@swc/register":"^0.1.10",autoprefixer:"^10.4.14",browserslist:"^4.21.5",concurrently:"^8.0.1",cssnano:"^6.0.0",esbuild:"^0.17.18",eslint:"^8.39.0","eslint-config-prettier":"^8.8.0","eslint-plugin-prettier":"^4.2.1",jest:"^29.6.0","jest-diff":"^29.6.0",lightningcss:"1.18.0",prettier:"^2.8.8",rimraf:"^5.0.0","source-map-js":"^1.0.2",turbo:"^1.9.3"},dependencies:{"@alloc/quick-lru":"^5.2.0",arg:"^5.0.2",chokidar:"^3.5.3",didyoumean:"^1.2.2",dlv:"^1.1.3","fast-glob":"^3.3.0","glob-parent":"^6.0.2","is-glob":"^4.0.3",jiti:"^1.19.1",lilconfig:"^2.1.0",micromatch:"^4.0.5","normalize-path":"^3.0.0","object-hash":"^3.0.0",picocolors:"^1.0.0",postcss:"^8.4.23","postcss-import":"^15.1.0","postcss-js":"^4.0.1","postcss-load-config":"^4.0.1","postcss-nested":"^6.0.1","postcss-selector-parser":"^6.0.11",resolve:"^1.22.2",sucrase:"^3.32.0"},browserslist:["> 1%","not edge <= 18","not ie 11","not op_mini all"],jest:{testTimeout:3e4,setupFilesAfterEnv:["/jest/customMatchers.js"],testPathIgnorePatterns:["/node_modules/","/integrations/","/standalone-cli/","\\.test\\.skip\\.js$"],transformIgnorePatterns:["node_modules/(?!lightningcss)"],transform:{"\\.js$":"@swc/jest","\\.ts$":"@swc/jest"}},engines:{node:">=14.0.0"}},Nx=typeof process<"u"?{NODE_ENV:"development",DEBUG:jx(void 0),ENGINE:Qp.tailwindcss.engine}:{NODE_ENV:"production",DEBUG:!1,ENGINE:Qp.tailwindcss.engine},Rx=new Map,Vr=new String("*"),Tl=Symbol("__NONE__");function jx(t){if(t===void 0)return!1;if(t==="true"||t==="1")return!0;if(t==="false"||t==="0")return!1;if(t==="*")return!0;let e=t.split(",").map(r=>r.split(":")[0]);return e.includes("-tailwindcss")?!1:!!e.includes("tailwindcss")}function zl(t){return Array.isArray(t)?t.flatMap(e=>be([(0,Eh.default)({bubble:["screen"]})]).process(e,{parser:Gp}).root.nodes):zl([t])}function At(t){if(Object.prototype.toString.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);return e===null||Object.getPrototypeOf(e)===null}function Wl(t,e,r=!1){if(t==="")return e;let n=typeof e=="string"?(0,Oh.default)().astSync(e):e;return n.walkClasses(i=>{let o=i.value,s=r&&o.startsWith("-");i.value=s?`-${t}${o.slice(1)}`:`${t}${o}`}),typeof e=="string"?n.toString():n}function Vl(t){return t.replace(/\\,/g,"\\2c ")}var Kp={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},qx=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,Ux=/^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,lr=/(?:\d+|\d*\.\d+)%?/,jo=/(?:\s*,\s*|\s+)/,Ch=/\s*[,/]\s*/,ur=/var\(--(?:[^ )]*?)(?:,(?:[^ )]*?|var\(--[^ )]*?\)))?\)/,Bx=new RegExp(`^(rgba?)\\(\\s*(${lr.source}|${ur.source})(?:${jo.source}(${lr.source}|${ur.source}))?(?:${jo.source}(${lr.source}|${ur.source}))?(?:${Ch.source}(${lr.source}|${ur.source}))?\\s*\\)$`),zx=new RegExp(`^(hsla?)\\(\\s*((?:${lr.source})(?:deg|rad|grad|turn)?|${ur.source})(?:${jo.source}(${lr.source}|${ur.source}))?(?:${jo.source}(${lr.source}|${ur.source}))?(?:${Ch.source}(${lr.source}|${ur.source}))?\\s*\\)$`);function Hl(t,{loose:e=!1}={}){if(typeof t!="string")return null;if(t=t.trim(),t==="transparent")return{mode:"rgb",color:["0","0","0"],alpha:"0"};if(t in Kp)return{mode:"rgb",color:Kp[t].map(o=>o.toString())};let r=t.replace(Ux,(o,s,l,a,u)=>["#",s,s,l,l,a,a,u?u+u:""].join("")).match(qx);if(r!==null)return{mode:"rgb",color:[parseInt(r[1],16),parseInt(r[2],16),parseInt(r[3],16)].map(o=>o.toString()),alpha:r[4]?(parseInt(r[4],16)/255).toString():void 0};let n=t.match(Bx)??t.match(zx);if(n===null)return null;let i=[n[2],n[3],n[4]].filter(Boolean).map(o=>o.toString());return i.length===2&&i[0].startsWith("var(")?{mode:n[1],color:[i[0]],alpha:i[1]}:!e&&i.length!==3||i.length<3&&!i.some(o=>/^var\(.*?\)$/.test(o))?null:{mode:n[1],color:i,alpha:n[5]?.toString?.()}}function Ah({mode:t,color:e,alpha:r}){let n=r!==void 0;return t==="rgba"||t==="hsla"?`${t}(${e.join(", ")}${n?`, ${r}`:""})`:`${t}(${e.join(" ")}${n?` / ${r}`:""})`}function Hr(t,e,r){if(typeof t=="function")return t({opacityValue:e});let n=Hl(t,{loose:!0});return n===null?r:Ah({...n,alpha:e})}function ft({color:t,property:e,variable:r}){let n=[].concat(e);if(typeof t=="function")return{[r]:"1",...Object.fromEntries(n.map(o=>[o,t({opacityVariable:r,opacityValue:`var(${r})`})]))};let i=Hl(t);return i===null?Object.fromEntries(n.map(o=>[o,t])):i.alpha!==void 0?Object.fromEntries(n.map(o=>[o,t])):{[r]:"1",...Object.fromEntries(n.map(o=>[o,Ah({...i,alpha:`var(${r})`})]))}}function Tt(t,e){let r=[],n=[],i=0,o=!1;for(let s=0;s{let n=r.trim(),i={raw:n},o=n.split(Vx),s=new Set;for(let l of o)Jp.lastIndex=0,!s.has("KEYWORD")&&Wx.has(l)?(i.keyword=l,s.add("KEYWORD")):Jp.test(l)?s.has("X")?s.has("Y")?s.has("BLUR")?s.has("SPREAD")||(i.spread=l,s.add("SPREAD")):(i.blur=l,s.add("BLUR")):(i.y=l,s.add("Y")):(i.x=l,s.add("X")):i.color?(i.unknown||(i.unknown=[]),i.unknown.push(l)):i.color=l;return i.valid=i.x!==void 0&&i.y!==void 0,i})}function Hx(t){return t.map(e=>e.valid?[e.keyword,e.x,e.y,e.blur,e.spread,e.color].filter(Boolean).join(" "):e.raw).join(", ")}var Gx=["min","max","clamp","calc"];function Gl(t){return Gx.some(e=>new RegExp(`^${e}\\(.*\\)`).test(t))}var Yx=new Set(["scroll-timeline-name","timeline-scope","view-timeline-name","font-palette","scroll-timeline","animation-timeline","view-timeline"]);function Se(t,e=null,r=!0){let n=e&&Yx.has(e.property);return t.startsWith("--")&&!n?`var(${t})`:t.includes("url(")?t.split(/(url\(.*?\))/g).filter(Boolean).map(i=>/^url\(.*?\)$/.test(i)?i:Se(i,e,!1)).join(""):(t=t.replace(/([^\\])_+/g,(i,o)=>o+" ".repeat(i.length-1)).replace(/^_/g," ").replace(/\\_/g,"_"),r&&(t=t.trim()),t=Qx(t),t)}function Qx(t){let e=["theme"],r=["min-content","max-content","fit-content","safe-area-inset-top","safe-area-inset-right","safe-area-inset-bottom","safe-area-inset-left","titlebar-area-x","titlebar-area-y","titlebar-area-width","titlebar-area-height","keyboard-inset-top","keyboard-inset-right","keyboard-inset-bottom","keyboard-inset-left","keyboard-inset-width","keyboard-inset-height","radial-gradient","linear-gradient","conic-gradient","repeating-radial-gradient","repeating-linear-gradient","repeating-conic-gradient"];return t.replace(/(calc|min|max|clamp)\(.+\)/g,n=>{let i="";function o(){let s=i.trimEnd();return s[s.length-1]}for(let s=0;sn[s+d]===p)},a=function(c){let p=1/0;for(let f of c){let g=n.indexOf(f,s);g!==-1&&gl(c))){let c=r.find(p=>l(p));i+=c,s+=c.length-1}else e.some(c=>l(c))?i+=a([")"]):l("[")?i+=a(["]"]):["+","-","*","/"].includes(u)&&!["(","+","-","*","/",","].includes(o())?i+=` ${u} `:i+=u}return i.replace(/\s+/g," ")})}function Ih(t){return t.startsWith("url(")}function Ph(t){return!isNaN(Number(t))||Gl(t)}function Yl(t){return t.endsWith("%")&&Ph(t.slice(0,-1))||Gl(t)}var Kx=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","rlh","vw","vh","vmin","vmax","vb","vi","svw","svh","lvw","lvh","dvw","dvh","cqw","cqh","cqi","cqb","cqmin","cqmax"],Jx=`(?:${Kx.join("|")})`;function Ql(t){return t==="0"||new RegExp(`^[+-]?[0-9]*.?[0-9]+(?:[eE][+-]?[0-9]+)?${Jx}$`).test(t)||Gl(t)}var Xx=new Set(["thin","medium","thick"]);function Zx(t){return Xx.has(t)}function ek(t){let e=Th(Se(t));for(let r of e)if(!r.valid)return!1;return!0}function tk(t){let e=0;return Tt(t,"_").every(n=>(n=Se(n),n.startsWith("var(")?!0:Hl(n,{loose:!0})!==null?(e++,!0):!1))?e>0:!1}function rk(t){let e=0;return Tt(t,",").every(n=>(n=Se(n),n.startsWith("var(")?!0:Ih(n)||ik(n)||["element(","image(","cross-fade(","image-set("].some(i=>n.startsWith(i))?(e++,!0):!1))?e>0:!1}var nk=new Set(["conic-gradient","linear-gradient","radial-gradient","repeating-conic-gradient","repeating-linear-gradient","repeating-radial-gradient"]);function ik(t){t=Se(t);for(let e of nk)if(t.startsWith(`${e}(`))return!0;return!1}var ok=new Set(["center","top","right","bottom","left"]);function sk(t){let e=0;return Tt(t,"_").every(n=>(n=Se(n),n.startsWith("var(")?!0:ok.has(n)||Ql(n)||Yl(n)?(e++,!0):!1))?e>0:!1}function ak(t){let e=0;return Tt(t,",").every(n=>(n=Se(n),n.startsWith("var(")?!0:n.includes(" ")&&!/(['"])([^"']+)\1/g.test(n)||/^\d/g.test(n)?!1:(e++,!0)))?e>0:!1}var lk=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"]);function uk(t){return lk.has(t)}var ck=new Set(["xx-small","x-small","small","medium","large","x-large","x-large","xxx-large"]);function fk(t){return ck.has(t)}var dk=new Set(["larger","smaller"]);function pk(t){return dk.has(t)}function qo(t){if(t=`${t}`,t==="0")return"0";if(/^[+-]?(\d+|\d*\.\d+)(e[+-]?\d+)?(%|\w+)?$/.test(t))return t.replace(/^[+-]?/,r=>r==="-"?"":"-");let e=["var","calc","min","max","clamp"];for(let r of e)if(t.includes(`${r}(`))return`calc(${t} * -1)`}function hk(t){let e=["cover","contain"];return Tt(t,",").every(r=>{let n=Tt(r,"_").filter(Boolean);return n.length===1&&e.includes(n[0])?!0:n.length!==1&&n.length!==2?!1:n.every(i=>Ql(i)||Yl(i)||i==="auto")})}var Xp={optimizeUniversalDefaults:!1,generalizedModifiers:!0,get disableColorOpacityUtilitiesByDefault(){return!1},get relativeContentPathsByDefault(){return!1}},Zp={future:["hoverOnlyWhenSupported","respectDefaultRingColorOpacity","disableColorOpacityUtilitiesByDefault","relativeContentPathsByDefault"],experimental:["optimizeUniversalDefaults","generalizedModifiers"]};function _t(t,e){return Zp.future.includes(e)?t.future==="all"||(t?.future?.[e]??Xp[e]??!1):Zp.experimental.includes(e)?t.experimental==="all"||(t?.experimental?.[e]??Xp[e]??!1):!1}function mk(t,e){t.walkClasses(r=>{r.value=e(r.value),r.raws&&r.raws.value&&(r.raws.value=Vl(r.raws.value))})}function $h(t,e){if(!cr(t))return;let r=t.slice(1,-1);if(e(r))return Se(r)}function gk(t,e={},r){let n=e[t];if(n!==void 0)return qo(n);if(cr(t)){let i=$h(t,r);return i===void 0?void 0:qo(i)}}function Vo(t,e={},{validate:r=()=>!0}={}){let n=e.values?.[t];return n!==void 0?n:e.supportsNegativeValues&&t.startsWith("-")?gk(t.slice(1),e.values,r):$h(t,r)}function cr(t){return t.startsWith("[")&&t.endsWith("]")}function Dh(t){let e=t.lastIndexOf("/"),r=t.lastIndexOf("[",e),n=t.indexOf("]",e);return t[e-1]==="]"||t[e+1]==="["||r!==-1&&n!==-1&&r")){let e=t;return({opacityValue:r=1})=>e.replace("",r)}return t}function Mh(t){return Se(t.slice(1,-1))}function bk(t,e={},{tailwindConfig:r={}}={}){if(e.values?.[t]!==void 0)return Uo(e.values?.[t]);let[n,i]=Dh(t);if(i!==void 0){let o=e.values?.[n]??(cr(n)?n.slice(1,-1):void 0);return o===void 0?void 0:(o=Uo(o),cr(i)?Hr(o,Mh(i)):r.theme?.opacity?.[i]===void 0?void 0:Hr(o,r.theme.opacity[i]))}return Vo(t,e,{validate:tk})}function vk(t,e={}){return e.values?.[t]}function ht(t){return(e,r)=>Vo(e,r,{validate:t})}var Kl={any:Vo,color:bk,url:ht(Ih),image:ht(rk),length:ht(Ql),percentage:ht(Yl),position:ht(sk),lookup:vk,"generic-name":ht(uk),"family-name":ht(ak),number:ht(Ph),"line-width":ht(Zx),"absolute-size":ht(fk),"relative-size":ht(pk),shadow:ht(ek),size:ht(hk)},eh=Object.keys(Kl);function yk(t,e){let r=t.indexOf(e);return r===-1?[void 0,t]:[t.slice(0,r),t.slice(r+1)]}function th(t,e,r,n){if(r.values&&e in r.values)for(let{type:o}of t??[]){let s=Kl[o](e,r,{tailwindConfig:n});if(s!==void 0)return[s,o,null]}if(cr(e)){let o=e.slice(1,-1),[s,l]=yk(o,":");if(!/^[\w-_]+$/g.test(s))l=o;else if(s!==void 0&&!eh.includes(s))return[];if(l.length>0&&eh.includes(s))return[Vo(`[${l}]`,r),s,null]}let i=Fh(t,e,r,n);for(let o of i)return o;return[]}function*Fh(t,e,r,n){let i=_t(n,"generalizedModifiers"),[o,s]=Dh(e);if(i&&r.modifiers!=null&&(r.modifiers==="any"||typeof r.modifiers=="object"&&(s&&cr(s)||s in r.modifiers))||(o=e,s=void 0),s!==void 0&&o===""&&(o="DEFAULT"),s!==void 0&&typeof r.modifiers=="object"){let a=r.modifiers?.[s]??null;a!==null?s=a:cr(s)&&(s=Mh(s))}for(let{type:a}of t??[]){let u=Kl[a](o,r,{tailwindConfig:n});u!==void 0&&(yield[u,a,s??null])}}function fr(t){let e=Nh.default.className();return e.value=t,Vl(e?.raws?.value??e.value)}var Il={"::after":["terminal","jumpable"],"::backdrop":["terminal","jumpable"],"::before":["terminal","jumpable"],"::cue":["terminal"],"::cue-region":["terminal"],"::first-letter":["terminal","jumpable"],"::first-line":["terminal","jumpable"],"::grammar-error":["terminal"],"::marker":["terminal","jumpable"],"::part":["terminal","actionable"],"::placeholder":["terminal","jumpable"],"::selection":["terminal","jumpable"],"::slotted":["terminal"],"::spelling-error":["terminal"],"::target-text":["terminal"],"::file-selector-button":["terminal","actionable"],"::deep":["actionable"],"::v-deep":["actionable"],"::ng-deep":["actionable"],":after":["terminal","jumpable"],":before":["terminal","jumpable"],":first-letter":["terminal","jumpable"],":first-line":["terminal","jumpable"],":where":[],":is":[],":has":[],__default__:["terminal","actionable"]};function Jl(t){let[e]=Rh(t);return e.forEach(([r,n])=>r.removeChild(n)),t.nodes.push(...e.map(([,r])=>r)),t}function Rh(t){let e=[],r=null;for(let n of t.nodes)if(n.type==="combinator")e=e.filter(([,i])=>Xl(i).includes("jumpable")),r=null;else if(n.type==="pseudo"){_k(n)?(r=n,e.push([t,n,null])):r&&wk(n,r)?e.push([t,n,r]):r=null;for(let i of n.nodes??[]){let[o,s]=Rh(i);r=s||r,e.push(...o)}}return[e,r]}function jh(t){return t.value.startsWith("::")||Il[t.value]!==void 0}function _k(t){return jh(t)&&Xl(t).includes("terminal")}function wk(t,e){return t.type!=="pseudo"||jh(t)?!1:Xl(e).includes("actionable")}function Xl(t){return Il[t.value]??Il.__default__}var Pl=":merge";function Bo(t,{context:e,candidate:r}){let n=e?.tailwindConfig.prefix??"",i=t.map(s=>{let l=(0,Rt.default)().astSync(s.format);return{...s,ast:s.respectPrefix?Wl(n,l):l}}),o=Rt.default.root({nodes:[Rt.default.selector({nodes:[Rt.default.className({value:fr(r)})]})]});for(let{ast:s}of i)[o,s]=kk(o,s),s.walkNesting(l=>l.replaceWith(...o.nodes[0].nodes)),o=s;return o}function rh(t){let e=[];for(;t.prev()&&t.prev().type!=="combinator";)t=t.prev();for(;t&&t.type!=="combinator";)e.push(t),t=t.next();return e}function xk(t){return t.sort((e,r)=>e.type==="tag"&&r.type==="class"?-1:e.type==="class"&&r.type==="tag"?1:e.type==="class"&&r.type==="pseudo"&&r.value.startsWith("::")?-1:e.type==="pseudo"&&e.value.startsWith("::")&&r.type==="class"?1:t.index(e)-t.index(r)),t}function qh(t,e){let r=!1;t.walk(n=>{if(n.type==="class"&&n.value===e)return r=!0,!1}),r||t.remove()}function Uh(t,e,{context:r,candidate:n,base:i}){let o=r?.tailwindConfig?.separator??":";i=i??Tt(n,o).pop();let s=(0,Rt.default)().astSync(t);if(s.walkClasses(c=>{c.raws&&c.value.includes(i)&&(c.raws.value=fr((0,Lh.default)(c.raws.value)))}),s.each(c=>qh(c,i)),s.length===0)return null;let l=Array.isArray(e)?Bo(e,{context:r,candidate:n}):e;if(l===null)return s.toString();let a=Rt.default.comment({value:"/*__simple__*/"}),u=Rt.default.comment({value:"/*__simple__*/"});return s.walkClasses(c=>{if(c.value!==i)return;let p=c.parent,d=l.nodes[0].nodes;if(p.nodes.length===1){c.replaceWith(...d);return}let f=rh(c);p.insertBefore(f[0],a),p.insertAfter(f[f.length-1],u);for(let w of d)p.insertBefore(f[0],w.clone());c.remove(),f=rh(a);let g=p.index(a);p.nodes.splice(g,f.length,...xk(Rt.default.selector({nodes:f})).nodes),a.remove(),u.remove()}),s.walkPseudos(c=>{c.value===Pl&&c.replaceWith(c.nodes)}),s.each(c=>Jl(c)),s.toString()}function kk(t,e){let r=[];return t.walkPseudos(n=>{n.value===Pl&&r.push({pseudo:n,value:n.nodes[0].toString()})}),e.walkPseudos(n=>{if(n.value!==Pl)return;let i=n.nodes[0].toString(),o=r.find(u=>u.value===i);if(!o)return;let s=[],l=n.next();for(;l&&l.type!=="combinator";)s.push(l),l=l.next();let a=l;o.pseudo.parent.insertAfter(o.pseudo,Rt.default.selector({nodes:s.map(u=>u.clone())})),n.remove(),s.forEach(u=>u.remove()),a&&a.type==="combinator"&&a.remove()}),[t,e]}function Bh(t){return Vl(`.${fr(t)}`)}function nh(t,e){return Bh(Fo(t,e))}function Fo(t,e){return e==="DEFAULT"?t:e==="-"||e==="-DEFAULT"?`-${t}`:e.startsWith("-")?`-${t}${e}`:e.startsWith("/")?`${t}${e}`:`${t}-${e}`}function Ho(t){return["fontSize","outline"].includes(t)?e=>(typeof e=="function"&&(e=e({})),Array.isArray(e)&&(e=e[0]),e):t==="fontFamily"?e=>{typeof e=="function"&&(e=e({}));let r=Array.isArray(e)&&At(e[1])?e[0]:e;return Array.isArray(r)?r.join(", "):r}:["boxShadow","transitionProperty","transitionDuration","transitionDelay","transitionTimingFunction","backgroundImage","backgroundSize","backgroundColor","cursor","animation"].includes(t)?e=>(typeof e=="function"&&(e=e({})),Array.isArray(e)&&(e=e.join(", ")),e):["gridTemplateColumns","gridTemplateRows","objectPosition"].includes(t)?e=>(typeof e=="function"&&(e=e({})),typeof e=="string"&&(e=be.list.comma(e).join(" ")),e):(e,r={})=>(typeof e=="function"&&(e=e(r)),e)}var Sk=()=>"";function V(t,e=[[t,[t]]],{filterDefault:r=!1,...n}={}){let i=Ho(t);return function({matchUtilities:o,theme:s}){for(let l of e){let a=Array.isArray(l[0])?l:[l];o(a.reduce((u,[c,p])=>Object.assign(u,{[c]:d=>p.reduce((f,g)=>Array.isArray(g)?Object.assign(f,{[g[0]]:g[1]}):Object.assign(f,{[g]:i(d)}),{})}),{}),{...n,values:r?Object.fromEntries(Object.entries(s(t)??{}).filter(([u])=>u!=="DEFAULT")):s(t)})}}}function zo(t){return t=Array.isArray(t)?t:[t],t.map(e=>{let r=e.values.map(n=>n.raw!==void 0?n.raw:[n.min&&`(min-width: ${n.min})`,n.max&&`(max-width: ${n.max})`].filter(Boolean).join(" and "));return e.not?`not all and ${r}`:r}).join(", ")}var Ek=new Set(["normal","reverse","alternate","alternate-reverse"]),Ok=new Set(["running","paused"]),Ck=new Set(["none","forwards","backwards","both"]),Ak=new Set(["infinite"]),Tk=new Set(["linear","ease","ease-in","ease-out","ease-in-out","step-start","step-end"]),Ik=["cubic-bezier","steps"],Pk=/\,(?![^(]*\))/g,$k=/\ +(?![^(]*\))/g,ih=/^(-?[\d.]+m?s)$/,Dk=/^(\d+)$/;function Mk(t){return t.split(Pk).map(r=>{let n=r.trim(),i={value:n},o=n.split($k),s=new Set;for(let l of o)!s.has("DIRECTIONS")&&Ek.has(l)?(i.direction=l,s.add("DIRECTIONS")):!s.has("PLAY_STATES")&&Ok.has(l)?(i.playState=l,s.add("PLAY_STATES")):!s.has("FILL_MODES")&&Ck.has(l)?(i.fillMode=l,s.add("FILL_MODES")):!s.has("ITERATION_COUNTS")&&(Ak.has(l)||Dk.test(l))?(i.iterationCount=l,s.add("ITERATION_COUNTS")):!s.has("TIMING_FUNCTION")&&Tk.has(l)||!s.has("TIMING_FUNCTION")&&Ik.some(a=>l.startsWith(`${a}(`))?(i.timingFunction=l,s.add("TIMING_FUNCTION")):!s.has("DURATION")&&ih.test(l)?(i.duration=l,s.add("DURATION")):!s.has("DELAY")&&ih.test(l)?(i.delay=l,s.add("DELAY")):s.has("NAME")?(i.unknown||(i.unknown=[]),i.unknown.push(l)):(i.name=l,s.add("NAME"));return i})}var Wh=t=>Object.assign({},...Object.entries(t??{}).flatMap(([e,r])=>typeof r=="object"?Object.entries(Wh(r)).map(([n,i])=>({[e+(n==="DEFAULT"?"":`-${n}`)]:i})):[{[`${e}`]:r}])),Xe=Wh;function ke(t){return typeof t=="function"?t({}):t}function pi(t,e=!0){return Array.isArray(t)?t.map(r=>{if(e&&Array.isArray(r))throw new Error("The tuple syntax is not supported for `screens`.");if(typeof r=="string")return{name:r.toString(),not:!1,values:[{min:r,max:void 0}]};let[n,i]=r;return n=n.toString(),typeof i=="string"?{name:n,not:!1,values:[{min:i,max:void 0}]}:Array.isArray(i)?{name:n,not:!1,values:i.map(o=>oh(o))}:{name:n,not:!1,values:[oh(i)]}}):pi(Object.entries(t??{}),!1)}function $l(t){return t.values.length!==1?{result:!1,reason:"multiple-values"}:t.values[0].raw!==void 0?{result:!1,reason:"raw-values"}:t.values[0].min!==void 0&&t.values[0].max!==void 0?{result:!1,reason:"min-and-max"}:{result:!0,reason:null}}function Fk(t,e,r){let n=Dl(e,t),i=Dl(r,t),o=$l(n),s=$l(i);if(o.reason==="multiple-values"||s.reason==="multiple-values")throw new Error("Attempted to sort a screen with multiple values. This should never happen. Please open a bug report.");if(o.reason==="raw-values"||s.reason==="raw-values")throw new Error("Attempted to sort a screen with raw values. This should never happen. Please open a bug report.");if(o.reason==="min-and-max"||s.reason==="min-and-max")throw new Error("Attempted to sort a screen with both min and max values. This should never happen. Please open a bug report.");let{min:l,max:a}=n.values[0],{min:u,max:c}=i.values[0];e.not&&([l,a]=[a,l]),r.not&&([u,c]=[c,u]),l=l===void 0?l:parseFloat(l),a=a===void 0?a:parseFloat(a),u=u===void 0?u:parseFloat(u),c=c===void 0?c:parseFloat(c);let[p,d]=t==="min"?[l,u]:[c,a];return p-d}function Dl(t,e){return typeof t=="object"?t:{name:"arbitrary-screen",values:[{[e]:t}]}}function oh({"min-width":t,min:e=t,max:r,raw:n}={}){return{min:e,max:r,raw:n}}function xl(t,e){t.walkDecls(r=>{if(e.includes(r.prop)){r.remove();return}for(let n of e)r.value.includes(`/ var(${n})`)&&(r.value=r.value.replace(`/ var(${n})`,""))})}var Me={childVariant:({addVariant:t})=>{t("*","& > *")},pseudoElementVariants:({addVariant:t})=>{t("first-letter","&::first-letter"),t("first-line","&::first-line"),t("marker",[({container:e})=>(xl(e,["--tw-text-opacity"]),"& *::marker"),({container:e})=>(xl(e,["--tw-text-opacity"]),"&::marker")]),t("selection",["& *::selection","&::selection"]),t("file","&::file-selector-button"),t("placeholder","&::placeholder"),t("backdrop","&::backdrop"),t("before",({container:e})=>(e.walkRules(r=>{let n=!1;r.walkDecls("content",()=>{n=!0}),n||r.prepend(be.decl({prop:"content",value:"var(--tw-content)"}))}),"&::before")),t("after",({container:e})=>(e.walkRules(r=>{let n=!1;r.walkDecls("content",()=>{n=!0}),n||r.prepend(be.decl({prop:"content",value:"var(--tw-content)"}))}),"&::after"))},pseudoClassVariants:({addVariant:t,matchVariant:e,config:r,prefix:n})=>{let i=[["first","&:first-child"],["last","&:last-child"],["only","&:only-child"],["odd","&:nth-child(odd)"],["even","&:nth-child(even)"],"first-of-type","last-of-type","only-of-type",["visited",({container:s})=>(xl(s,["--tw-text-opacity","--tw-border-opacity","--tw-bg-opacity"]),"&:visited")],"target",["open","&[open]"],"default","checked","indeterminate","placeholder-shown","autofill","optional","required","valid","invalid","in-range","out-of-range","read-only","empty","focus-within",["hover",_t(r(),"hoverOnlyWhenSupported")?"@media (hover: hover) and (pointer: fine) { &:hover }":"&:hover"],"focus","focus-visible","active","enabled","disabled"].map(s=>Array.isArray(s)?s:[s,`&:${s}`]);for(let[s,l]of i)t(s,a=>typeof l=="function"?l(a):l);let o={group:(s,{modifier:l})=>l?[`:merge(${n(".group")}\\/${fr(l)})`," &"]:[`:merge(${n(".group")})`," &"],peer:(s,{modifier:l})=>l?[`:merge(${n(".peer")}\\/${fr(l)})`," ~ &"]:[`:merge(${n(".peer")})`," ~ &"]};for(let[s,l]of Object.entries(o))e(s,(a="",u)=>{let c=Se(typeof a=="function"?a(u):a);c.includes("&")||(c="&"+c);let[p,d]=l("",u),f=null,g=null,w=0;for(let h=0;h{t("ltr",'&:where([dir="ltr"], [dir="ltr"] *)'),t("rtl",'&:where([dir="rtl"], [dir="rtl"] *)')},reducedMotionVariants:({addVariant:t})=>{t("motion-safe","@media (prefers-reduced-motion: no-preference)"),t("motion-reduce","@media (prefers-reduced-motion: reduce)")},darkVariants:({config:t,addVariant:e})=>{let[r,n=".dark"]=[].concat(t("darkMode","media"));if(r===!1&&(r="media",He.warn("darkmode-false",["The `darkMode` option in your Tailwind CSS configuration is set to `false`, which now behaves the same as `media`.","Change `darkMode` to `media` or remove it entirely.","https://tailwindcss.com/docs/upgrade-guide#remove-dark-mode-configuration"])),r==="variant"){let i;if(Array.isArray(n)||typeof n=="function"?i=n:typeof n=="string"&&(i=[n]),Array.isArray(i))for(let o of i)o===".dark"?(r=!1,He.warn("darkmode-variant-without-selector",["When using `variant` for `darkMode`, you must provide a selector.",'Example: `darkMode: ["variant", ".your-selector &"]`'])):o.includes("&")||(r=!1,He.warn("darkmode-variant-without-ampersand",["When using `variant` for `darkMode`, your selector must contain `&`.",'Example `darkMode: ["variant", ".your-selector &"]`']));n=i}r==="selector"?e("dark",`&:where(${n}, ${n} *)`):r==="media"?e("dark","@media (prefers-color-scheme: dark)"):r==="variant"?e("dark",n):r==="class"&&e("dark",`:is(${n} &)`)},printVariant:({addVariant:t})=>{t("print","@media print")},screenVariants:({theme:t,addVariant:e,matchVariant:r})=>{let n=t("screens")??{},i=Object.values(n).every(m=>typeof m=="string"),o=pi(t("screens")),s=new Set([]);function l(m){return m.match(/(\D+)$/)?.[1]??"(none)"}function a(m){m!==void 0&&s.add(l(m))}function u(m){return a(m),s.size===1}for(let m of o)for(let b of m.values)a(b.min),a(b.max);let c=s.size<=1;function p(m){return Object.fromEntries(o.filter(b=>$l(b).result).map(b=>{let{min:v,max:_}=b.values[0];if(m==="min"&&v!==void 0)return b;if(m==="min"&&_!==void 0)return{...b,not:!b.not};if(m==="max"&&_!==void 0)return b;if(m==="max"&&v!==void 0)return{...b,not:!b.not}}).map(b=>[b.name,b]))}function d(m){return(b,v)=>Fk(m,b.value,v.value)}let f=d("max"),g=d("min");function w(m){return b=>{if(i)if(c){if(typeof b=="string"&&!u(b))return He.warn("minmax-have-mixed-units",["The `min-*` and `max-*` variants are not supported with a `screens` configuration containing mixed units."]),[]}else return He.warn("mixed-screen-units",["The `min-*` and `max-*` variants are not supported with a `screens` configuration containing mixed units."]),[];else return He.warn("complex-screen-config",["The `min-*` and `max-*` variants are not supported with a `screens` configuration containing objects."]),[];return[`@media ${zo(Dl(b,m))}`]}}r("max",w("max"),{sort:f,values:i?p("max"):{}});let h="min-screens";for(let m of o)e(m.name,`@media ${zo(m)}`,{id:h,sort:i&&c?g:void 0,value:m});r("min",w("min"),{id:h,sort:g})},supportsVariants:({matchVariant:t,theme:e})=>{t("supports",(r="")=>{let n=Se(r),i=/^\w*\s*\(/.test(n);return n=i?n.replace(/\b(and|or|not)\b/g," $1 "):n,i?`@supports ${n}`:(n.includes(":")||(n=`${n}: var(--tw)`),n.startsWith("(")&&n.endsWith(")")||(n=`(${n})`),`@supports ${n}`)},{values:e("supports")??{}})},hasVariants:({matchVariant:t})=>{t("has",e=>`&:has(${Se(e)})`,{values:{}}),t("group-has",(e,{modifier:r})=>r?`:merge(.group\\/${r}):has(${Se(e)}) &`:`:merge(.group):has(${Se(e)}) &`,{values:{}}),t("peer-has",(e,{modifier:r})=>r?`:merge(.peer\\/${r}):has(${Se(e)}) ~ &`:`:merge(.peer):has(${Se(e)}) ~ &`,{values:{}})},ariaVariants:({matchVariant:t,theme:e})=>{t("aria",r=>`&[aria-${Se(r)}]`,{values:e("aria")??{}}),t("group-aria",(r,{modifier:n})=>n?`:merge(.group\\/${n})[aria-${Se(r)}] &`:`:merge(.group)[aria-${Se(r)}] &`,{values:e("aria")??{}}),t("peer-aria",(r,{modifier:n})=>n?`:merge(.peer\\/${n})[aria-${Se(r)}] ~ &`:`:merge(.peer)[aria-${Se(r)}] ~ &`,{values:e("aria")??{}})},dataVariants:({matchVariant:t,theme:e})=>{t("data",r=>`&[data-${Se(r)}]`,{values:e("data")??{}}),t("group-data",(r,{modifier:n})=>n?`:merge(.group\\/${n})[data-${Se(r)}] &`:`:merge(.group)[data-${Se(r)}] &`,{values:e("data")??{}}),t("peer-data",(r,{modifier:n})=>n?`:merge(.peer\\/${n})[data-${Se(r)}] ~ &`:`:merge(.peer)[data-${Se(r)}] ~ &`,{values:e("data")??{}})},orientationVariants:({addVariant:t})=>{t("portrait","@media (orientation: portrait)"),t("landscape","@media (orientation: landscape)")},prefersContrastVariants:({addVariant:t})=>{t("contrast-more","@media (prefers-contrast: more)"),t("contrast-less","@media (prefers-contrast: less)")},forcedColorsVariants:({addVariant:t})=>{t("forced-colors","@media (forced-colors: active)")}},Ct=["translate(var(--tw-translate-x), var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" "),Lt=["var(--tw-blur)","var(--tw-brightness)","var(--tw-contrast)","var(--tw-grayscale)","var(--tw-hue-rotate)","var(--tw-invert)","var(--tw-saturate)","var(--tw-sepia)","var(--tw-drop-shadow)"].join(" "),Nt=["var(--tw-backdrop-blur)","var(--tw-backdrop-brightness)","var(--tw-backdrop-contrast)","var(--tw-backdrop-grayscale)","var(--tw-backdrop-hue-rotate)","var(--tw-backdrop-invert)","var(--tw-backdrop-opacity)","var(--tw-backdrop-saturate)","var(--tw-backdrop-sepia)"].join(" "),Lk={preflight:({addBase:t})=>{let e=be.parse(kh.readFileSync(Sk("/","./css/preflight.css"),"utf8"));t([be.comment({text:`! tailwindcss v${Sh} | MIT License | https://tailwindcss.com`}),...e.nodes])},container:(()=>{function t(r=[]){return r.flatMap(n=>n.values.map(i=>i.min)).filter(n=>n!==void 0)}function e(r,n,i){if(typeof i>"u")return[];if(!(typeof i=="object"&&i!==null))return[{screen:"DEFAULT",minWidth:0,padding:i}];let o=[];i.DEFAULT&&o.push({screen:"DEFAULT",minWidth:0,padding:i.DEFAULT});for(let s of r)for(let l of n)for(let{min:a}of l.values)a===s&&o.push({minWidth:s,padding:i[l.name]});return o}return function({addComponents:r,theme:n}){let i=pi(n("container.screens",n("screens"))),o=t(i),s=e(o,i,n("container.padding")),l=u=>{let c=s.find(p=>p.minWidth===u);return c?{paddingRight:c.padding,paddingLeft:c.padding}:{}},a=Array.from(new Set(o.slice().sort((u,c)=>parseInt(u)-parseInt(c)))).map(u=>({[`@media (min-width: ${u})`]:{".container":{"max-width":u,...l(u)}}}));r([{".container":Object.assign({width:"100%"},n("container.center",!1)?{marginRight:"auto",marginLeft:"auto"}:{},l(0))},...a])}})(),accessibility:({addUtilities:t})=>{t({".sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},".not-sr-only":{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",clip:"auto",whiteSpace:"normal"}})},pointerEvents:({addUtilities:t})=>{t({".pointer-events-none":{"pointer-events":"none"},".pointer-events-auto":{"pointer-events":"auto"}})},visibility:({addUtilities:t})=>{t({".visible":{visibility:"visible"},".invisible":{visibility:"hidden"},".collapse":{visibility:"collapse"}})},position:({addUtilities:t})=>{t({".static":{position:"static"},".fixed":{position:"fixed"},".absolute":{position:"absolute"},".relative":{position:"relative"},".sticky":{position:"sticky"}})},inset:V("inset",[["inset",["inset"]],[["inset-x",["left","right"]],["inset-y",["top","bottom"]]],[["start",["inset-inline-start"]],["end",["inset-inline-end"]],["top",["top"]],["right",["right"]],["bottom",["bottom"]],["left",["left"]]]],{supportsNegativeValues:!0}),isolation:({addUtilities:t})=>{t({".isolate":{isolation:"isolate"},".isolation-auto":{isolation:"auto"}})},zIndex:V("zIndex",[["z",["zIndex"]]],{supportsNegativeValues:!0}),order:V("order",void 0,{supportsNegativeValues:!0}),gridColumn:V("gridColumn",[["col",["gridColumn"]]]),gridColumnStart:V("gridColumnStart",[["col-start",["gridColumnStart"]]]),gridColumnEnd:V("gridColumnEnd",[["col-end",["gridColumnEnd"]]]),gridRow:V("gridRow",[["row",["gridRow"]]]),gridRowStart:V("gridRowStart",[["row-start",["gridRowStart"]]]),gridRowEnd:V("gridRowEnd",[["row-end",["gridRowEnd"]]]),float:({addUtilities:t})=>{t({".float-start":{float:"inline-start"},".float-end":{float:"inline-end"},".float-right":{float:"right"},".float-left":{float:"left"},".float-none":{float:"none"}})},clear:({addUtilities:t})=>{t({".clear-start":{clear:"inline-start"},".clear-end":{clear:"inline-end"},".clear-left":{clear:"left"},".clear-right":{clear:"right"},".clear-both":{clear:"both"},".clear-none":{clear:"none"}})},margin:V("margin",[["m",["margin"]],[["mx",["margin-left","margin-right"]],["my",["margin-top","margin-bottom"]]],[["ms",["margin-inline-start"]],["me",["margin-inline-end"]],["mt",["margin-top"]],["mr",["margin-right"]],["mb",["margin-bottom"]],["ml",["margin-left"]]]],{supportsNegativeValues:!0}),boxSizing:({addUtilities:t})=>{t({".box-border":{"box-sizing":"border-box"},".box-content":{"box-sizing":"content-box"}})},lineClamp:({matchUtilities:t,addUtilities:e,theme:r})=>{t({"line-clamp":n=>({overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":`${n}`})},{values:r("lineClamp")}),e({".line-clamp-none":{overflow:"visible",display:"block","-webkit-box-orient":"horizontal","-webkit-line-clamp":"none"}})},display:({addUtilities:t})=>{t({".block":{display:"block"},".inline-block":{display:"inline-block"},".inline":{display:"inline"},".flex":{display:"flex"},".inline-flex":{display:"inline-flex"},".table":{display:"table"},".inline-table":{display:"inline-table"},".table-caption":{display:"table-caption"},".table-cell":{display:"table-cell"},".table-column":{display:"table-column"},".table-column-group":{display:"table-column-group"},".table-footer-group":{display:"table-footer-group"},".table-header-group":{display:"table-header-group"},".table-row-group":{display:"table-row-group"},".table-row":{display:"table-row"},".flow-root":{display:"flow-root"},".grid":{display:"grid"},".inline-grid":{display:"inline-grid"},".contents":{display:"contents"},".list-item":{display:"list-item"},".hidden":{display:"none"}})},aspectRatio:V("aspectRatio",[["aspect",["aspect-ratio"]]]),size:V("size",[["size",["width","height"]]]),height:V("height",[["h",["height"]]]),maxHeight:V("maxHeight",[["max-h",["maxHeight"]]]),minHeight:V("minHeight",[["min-h",["minHeight"]]]),width:V("width",[["w",["width"]]]),minWidth:V("minWidth",[["min-w",["minWidth"]]]),maxWidth:V("maxWidth",[["max-w",["maxWidth"]]]),flex:V("flex"),flexShrink:V("flexShrink",[["flex-shrink",["flex-shrink"]],["shrink",["flex-shrink"]]]),flexGrow:V("flexGrow",[["flex-grow",["flex-grow"]],["grow",["flex-grow"]]]),flexBasis:V("flexBasis",[["basis",["flex-basis"]]]),tableLayout:({addUtilities:t})=>{t({".table-auto":{"table-layout":"auto"},".table-fixed":{"table-layout":"fixed"}})},captionSide:({addUtilities:t})=>{t({".caption-top":{"caption-side":"top"},".caption-bottom":{"caption-side":"bottom"}})},borderCollapse:({addUtilities:t})=>{t({".border-collapse":{"border-collapse":"collapse"},".border-separate":{"border-collapse":"separate"}})},borderSpacing:({addDefaults:t,matchUtilities:e,theme:r})=>{t("border-spacing",{"--tw-border-spacing-x":0,"--tw-border-spacing-y":0}),e({"border-spacing":n=>({"--tw-border-spacing-x":n,"--tw-border-spacing-y":n,"@defaults border-spacing":{},"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"}),"border-spacing-x":n=>({"--tw-border-spacing-x":n,"@defaults border-spacing":{},"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"}),"border-spacing-y":n=>({"--tw-border-spacing-y":n,"@defaults border-spacing":{},"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})},{values:r("borderSpacing")})},transformOrigin:V("transformOrigin",[["origin",["transformOrigin"]]]),translate:V("translate",[[["translate-x",[["@defaults transform",{}],"--tw-translate-x",["transform",Ct]]],["translate-y",[["@defaults transform",{}],"--tw-translate-y",["transform",Ct]]]]],{supportsNegativeValues:!0}),rotate:V("rotate",[["rotate",[["@defaults transform",{}],"--tw-rotate",["transform",Ct]]]],{supportsNegativeValues:!0}),skew:V("skew",[[["skew-x",[["@defaults transform",{}],"--tw-skew-x",["transform",Ct]]],["skew-y",[["@defaults transform",{}],"--tw-skew-y",["transform",Ct]]]]],{supportsNegativeValues:!0}),scale:V("scale",[["scale",[["@defaults transform",{}],"--tw-scale-x","--tw-scale-y",["transform",Ct]]],[["scale-x",[["@defaults transform",{}],"--tw-scale-x",["transform",Ct]]],["scale-y",[["@defaults transform",{}],"--tw-scale-y",["transform",Ct]]]]],{supportsNegativeValues:!0}),transform:({addDefaults:t,addUtilities:e})=>{t("transform",{"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1"}),e({".transform":{"@defaults transform":{},transform:Ct},".transform-cpu":{transform:Ct},".transform-gpu":{transform:Ct.replace("translate(var(--tw-translate-x), var(--tw-translate-y))","translate3d(var(--tw-translate-x), var(--tw-translate-y), 0)")},".transform-none":{transform:"none"}})},animation:({matchUtilities:t,theme:e,config:r})=>{let n=o=>fr(r("prefix")+o),i=Object.fromEntries(Object.entries(e("keyframes")??{}).map(([o,s])=>[o,{[`@keyframes ${n(o)}`]:s}]));t({animate:o=>{let s=Mk(o);return[...s.flatMap(l=>i[l.name]),{animation:s.map(({name:l,value:a})=>l===void 0||i[l]===void 0?a:a.replace(l,n(l))).join(", ")}]}},{values:e("animation")})},cursor:V("cursor"),touchAction:({addDefaults:t,addUtilities:e})=>{t("touch-action",{"--tw-pan-x":" ","--tw-pan-y":" ","--tw-pinch-zoom":" "});let r="var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)";e({".touch-auto":{"touch-action":"auto"},".touch-none":{"touch-action":"none"},".touch-pan-x":{"@defaults touch-action":{},"--tw-pan-x":"pan-x","touch-action":r},".touch-pan-left":{"@defaults touch-action":{},"--tw-pan-x":"pan-left","touch-action":r},".touch-pan-right":{"@defaults touch-action":{},"--tw-pan-x":"pan-right","touch-action":r},".touch-pan-y":{"@defaults touch-action":{},"--tw-pan-y":"pan-y","touch-action":r},".touch-pan-up":{"@defaults touch-action":{},"--tw-pan-y":"pan-up","touch-action":r},".touch-pan-down":{"@defaults touch-action":{},"--tw-pan-y":"pan-down","touch-action":r},".touch-pinch-zoom":{"@defaults touch-action":{},"--tw-pinch-zoom":"pinch-zoom","touch-action":r},".touch-manipulation":{"touch-action":"manipulation"}})},userSelect:({addUtilities:t})=>{t({".select-none":{"user-select":"none"},".select-text":{"user-select":"text"},".select-all":{"user-select":"all"},".select-auto":{"user-select":"auto"}})},resize:({addUtilities:t})=>{t({".resize-none":{resize:"none"},".resize-y":{resize:"vertical"},".resize-x":{resize:"horizontal"},".resize":{resize:"both"}})},scrollSnapType:({addDefaults:t,addUtilities:e})=>{t("scroll-snap-type",{"--tw-scroll-snap-strictness":"proximity"}),e({".snap-none":{"scroll-snap-type":"none"},".snap-x":{"@defaults scroll-snap-type":{},"scroll-snap-type":"x var(--tw-scroll-snap-strictness)"},".snap-y":{"@defaults scroll-snap-type":{},"scroll-snap-type":"y var(--tw-scroll-snap-strictness)"},".snap-both":{"@defaults scroll-snap-type":{},"scroll-snap-type":"both var(--tw-scroll-snap-strictness)"},".snap-mandatory":{"--tw-scroll-snap-strictness":"mandatory"},".snap-proximity":{"--tw-scroll-snap-strictness":"proximity"}})},scrollSnapAlign:({addUtilities:t})=>{t({".snap-start":{"scroll-snap-align":"start"},".snap-end":{"scroll-snap-align":"end"},".snap-center":{"scroll-snap-align":"center"},".snap-align-none":{"scroll-snap-align":"none"}})},scrollSnapStop:({addUtilities:t})=>{t({".snap-normal":{"scroll-snap-stop":"normal"},".snap-always":{"scroll-snap-stop":"always"}})},scrollMargin:V("scrollMargin",[["scroll-m",["scroll-margin"]],[["scroll-mx",["scroll-margin-left","scroll-margin-right"]],["scroll-my",["scroll-margin-top","scroll-margin-bottom"]]],[["scroll-ms",["scroll-margin-inline-start"]],["scroll-me",["scroll-margin-inline-end"]],["scroll-mt",["scroll-margin-top"]],["scroll-mr",["scroll-margin-right"]],["scroll-mb",["scroll-margin-bottom"]],["scroll-ml",["scroll-margin-left"]]]],{supportsNegativeValues:!0}),scrollPadding:V("scrollPadding",[["scroll-p",["scroll-padding"]],[["scroll-px",["scroll-padding-left","scroll-padding-right"]],["scroll-py",["scroll-padding-top","scroll-padding-bottom"]]],[["scroll-ps",["scroll-padding-inline-start"]],["scroll-pe",["scroll-padding-inline-end"]],["scroll-pt",["scroll-padding-top"]],["scroll-pr",["scroll-padding-right"]],["scroll-pb",["scroll-padding-bottom"]],["scroll-pl",["scroll-padding-left"]]]]),listStylePosition:({addUtilities:t})=>{t({".list-inside":{"list-style-position":"inside"},".list-outside":{"list-style-position":"outside"}})},listStyleType:V("listStyleType",[["list",["listStyleType"]]]),listStyleImage:V("listStyleImage",[["list-image",["listStyleImage"]]]),appearance:({addUtilities:t})=>{t({".appearance-none":{appearance:"none"},".appearance-auto":{appearance:"auto"}})},columns:V("columns",[["columns",["columns"]]]),breakBefore:({addUtilities:t})=>{t({".break-before-auto":{"break-before":"auto"},".break-before-avoid":{"break-before":"avoid"},".break-before-all":{"break-before":"all"},".break-before-avoid-page":{"break-before":"avoid-page"},".break-before-page":{"break-before":"page"},".break-before-left":{"break-before":"left"},".break-before-right":{"break-before":"right"},".break-before-column":{"break-before":"column"}})},breakInside:({addUtilities:t})=>{t({".break-inside-auto":{"break-inside":"auto"},".break-inside-avoid":{"break-inside":"avoid"},".break-inside-avoid-page":{"break-inside":"avoid-page"},".break-inside-avoid-column":{"break-inside":"avoid-column"}})},breakAfter:({addUtilities:t})=>{t({".break-after-auto":{"break-after":"auto"},".break-after-avoid":{"break-after":"avoid"},".break-after-all":{"break-after":"all"},".break-after-avoid-page":{"break-after":"avoid-page"},".break-after-page":{"break-after":"page"},".break-after-left":{"break-after":"left"},".break-after-right":{"break-after":"right"},".break-after-column":{"break-after":"column"}})},gridAutoColumns:V("gridAutoColumns",[["auto-cols",["gridAutoColumns"]]]),gridAutoFlow:({addUtilities:t})=>{t({".grid-flow-row":{gridAutoFlow:"row"},".grid-flow-col":{gridAutoFlow:"column"},".grid-flow-dense":{gridAutoFlow:"dense"},".grid-flow-row-dense":{gridAutoFlow:"row dense"},".grid-flow-col-dense":{gridAutoFlow:"column dense"}})},gridAutoRows:V("gridAutoRows",[["auto-rows",["gridAutoRows"]]]),gridTemplateColumns:V("gridTemplateColumns",[["grid-cols",["gridTemplateColumns"]]]),gridTemplateRows:V("gridTemplateRows",[["grid-rows",["gridTemplateRows"]]]),flexDirection:({addUtilities:t})=>{t({".flex-row":{"flex-direction":"row"},".flex-row-reverse":{"flex-direction":"row-reverse"},".flex-col":{"flex-direction":"column"},".flex-col-reverse":{"flex-direction":"column-reverse"}})},flexWrap:({addUtilities:t})=>{t({".flex-wrap":{"flex-wrap":"wrap"},".flex-wrap-reverse":{"flex-wrap":"wrap-reverse"},".flex-nowrap":{"flex-wrap":"nowrap"}})},placeContent:({addUtilities:t})=>{t({".place-content-center":{"place-content":"center"},".place-content-start":{"place-content":"start"},".place-content-end":{"place-content":"end"},".place-content-between":{"place-content":"space-between"},".place-content-around":{"place-content":"space-around"},".place-content-evenly":{"place-content":"space-evenly"},".place-content-baseline":{"place-content":"baseline"},".place-content-stretch":{"place-content":"stretch"}})},placeItems:({addUtilities:t})=>{t({".place-items-start":{"place-items":"start"},".place-items-end":{"place-items":"end"},".place-items-center":{"place-items":"center"},".place-items-baseline":{"place-items":"baseline"},".place-items-stretch":{"place-items":"stretch"}})},alignContent:({addUtilities:t})=>{t({".content-normal":{"align-content":"normal"},".content-center":{"align-content":"center"},".content-start":{"align-content":"flex-start"},".content-end":{"align-content":"flex-end"},".content-between":{"align-content":"space-between"},".content-around":{"align-content":"space-around"},".content-evenly":{"align-content":"space-evenly"},".content-baseline":{"align-content":"baseline"},".content-stretch":{"align-content":"stretch"}})},alignItems:({addUtilities:t})=>{t({".items-start":{"align-items":"flex-start"},".items-end":{"align-items":"flex-end"},".items-center":{"align-items":"center"},".items-baseline":{"align-items":"baseline"},".items-stretch":{"align-items":"stretch"}})},justifyContent:({addUtilities:t})=>{t({".justify-normal":{"justify-content":"normal"},".justify-start":{"justify-content":"flex-start"},".justify-end":{"justify-content":"flex-end"},".justify-center":{"justify-content":"center"},".justify-between":{"justify-content":"space-between"},".justify-around":{"justify-content":"space-around"},".justify-evenly":{"justify-content":"space-evenly"},".justify-stretch":{"justify-content":"stretch"}})},justifyItems:({addUtilities:t})=>{t({".justify-items-start":{"justify-items":"start"},".justify-items-end":{"justify-items":"end"},".justify-items-center":{"justify-items":"center"},".justify-items-stretch":{"justify-items":"stretch"}})},gap:V("gap",[["gap",["gap"]],[["gap-x",["columnGap"]],["gap-y",["rowGap"]]]]),space:({matchUtilities:t,addUtilities:e,theme:r})=>{t({"space-x":n=>(n=n==="0"?"0px":n,{"& > :not([hidden]) ~ :not([hidden])":{"--tw-space-x-reverse":"0","margin-right":`calc(${n} * var(--tw-space-x-reverse))`,"margin-left":`calc(${n} * calc(1 - var(--tw-space-x-reverse)))`}}),"space-y":n=>(n=n==="0"?"0px":n,{"& > :not([hidden]) ~ :not([hidden])":{"--tw-space-y-reverse":"0","margin-top":`calc(${n} * calc(1 - var(--tw-space-y-reverse)))`,"margin-bottom":`calc(${n} * var(--tw-space-y-reverse))`}})},{values:r("space"),supportsNegativeValues:!0}),e({".space-y-reverse > :not([hidden]) ~ :not([hidden])":{"--tw-space-y-reverse":"1"},".space-x-reverse > :not([hidden]) ~ :not([hidden])":{"--tw-space-x-reverse":"1"}})},divideWidth:({matchUtilities:t,addUtilities:e,theme:r})=>{t({"divide-x":n=>(n=n==="0"?"0px":n,{"& > :not([hidden]) ~ :not([hidden])":{"@defaults border-width":{},"--tw-divide-x-reverse":"0","border-right-width":`calc(${n} * var(--tw-divide-x-reverse))`,"border-left-width":`calc(${n} * calc(1 - var(--tw-divide-x-reverse)))`}}),"divide-y":n=>(n=n==="0"?"0px":n,{"& > :not([hidden]) ~ :not([hidden])":{"@defaults border-width":{},"--tw-divide-y-reverse":"0","border-top-width":`calc(${n} * calc(1 - var(--tw-divide-y-reverse)))`,"border-bottom-width":`calc(${n} * var(--tw-divide-y-reverse))`}})},{values:r("divideWidth"),type:["line-width","length","any"]}),e({".divide-y-reverse > :not([hidden]) ~ :not([hidden])":{"@defaults border-width":{},"--tw-divide-y-reverse":"1"},".divide-x-reverse > :not([hidden]) ~ :not([hidden])":{"@defaults border-width":{},"--tw-divide-x-reverse":"1"}})},divideStyle:({addUtilities:t})=>{t({".divide-solid > :not([hidden]) ~ :not([hidden])":{"border-style":"solid"},".divide-dashed > :not([hidden]) ~ :not([hidden])":{"border-style":"dashed"},".divide-dotted > :not([hidden]) ~ :not([hidden])":{"border-style":"dotted"},".divide-double > :not([hidden]) ~ :not([hidden])":{"border-style":"double"},".divide-none > :not([hidden]) ~ :not([hidden])":{"border-style":"none"}})},divideColor:({matchUtilities:t,theme:e,corePlugins:r})=>{t({divide:n=>r("divideOpacity")?{"& > :not([hidden]) ~ :not([hidden])":ft({color:n,property:"border-color",variable:"--tw-divide-opacity"})}:{"& > :not([hidden]) ~ :not([hidden])":{"border-color":ke(n)}}},{values:(({DEFAULT:n,...i})=>i)(Xe(e("divideColor"))),type:["color","any"]})},divideOpacity:({matchUtilities:t,theme:e})=>{t({"divide-opacity":r=>({"& > :not([hidden]) ~ :not([hidden])":{"--tw-divide-opacity":r}})},{values:e("divideOpacity")})},placeSelf:({addUtilities:t})=>{t({".place-self-auto":{"place-self":"auto"},".place-self-start":{"place-self":"start"},".place-self-end":{"place-self":"end"},".place-self-center":{"place-self":"center"},".place-self-stretch":{"place-self":"stretch"}})},alignSelf:({addUtilities:t})=>{t({".self-auto":{"align-self":"auto"},".self-start":{"align-self":"flex-start"},".self-end":{"align-self":"flex-end"},".self-center":{"align-self":"center"},".self-stretch":{"align-self":"stretch"},".self-baseline":{"align-self":"baseline"}})},justifySelf:({addUtilities:t})=>{t({".justify-self-auto":{"justify-self":"auto"},".justify-self-start":{"justify-self":"start"},".justify-self-end":{"justify-self":"end"},".justify-self-center":{"justify-self":"center"},".justify-self-stretch":{"justify-self":"stretch"}})},overflow:({addUtilities:t})=>{t({".overflow-auto":{overflow:"auto"},".overflow-hidden":{overflow:"hidden"},".overflow-clip":{overflow:"clip"},".overflow-visible":{overflow:"visible"},".overflow-scroll":{overflow:"scroll"},".overflow-x-auto":{"overflow-x":"auto"},".overflow-y-auto":{"overflow-y":"auto"},".overflow-x-hidden":{"overflow-x":"hidden"},".overflow-y-hidden":{"overflow-y":"hidden"},".overflow-x-clip":{"overflow-x":"clip"},".overflow-y-clip":{"overflow-y":"clip"},".overflow-x-visible":{"overflow-x":"visible"},".overflow-y-visible":{"overflow-y":"visible"},".overflow-x-scroll":{"overflow-x":"scroll"},".overflow-y-scroll":{"overflow-y":"scroll"}})},overscrollBehavior:({addUtilities:t})=>{t({".overscroll-auto":{"overscroll-behavior":"auto"},".overscroll-contain":{"overscroll-behavior":"contain"},".overscroll-none":{"overscroll-behavior":"none"},".overscroll-y-auto":{"overscroll-behavior-y":"auto"},".overscroll-y-contain":{"overscroll-behavior-y":"contain"},".overscroll-y-none":{"overscroll-behavior-y":"none"},".overscroll-x-auto":{"overscroll-behavior-x":"auto"},".overscroll-x-contain":{"overscroll-behavior-x":"contain"},".overscroll-x-none":{"overscroll-behavior-x":"none"}})},scrollBehavior:({addUtilities:t})=>{t({".scroll-auto":{"scroll-behavior":"auto"},".scroll-smooth":{"scroll-behavior":"smooth"}})},textOverflow:({addUtilities:t})=>{t({".truncate":{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},".overflow-ellipsis":{"text-overflow":"ellipsis"},".text-ellipsis":{"text-overflow":"ellipsis"},".text-clip":{"text-overflow":"clip"}})},hyphens:({addUtilities:t})=>{t({".hyphens-none":{hyphens:"none"},".hyphens-manual":{hyphens:"manual"},".hyphens-auto":{hyphens:"auto"}})},whitespace:({addUtilities:t})=>{t({".whitespace-normal":{"white-space":"normal"},".whitespace-nowrap":{"white-space":"nowrap"},".whitespace-pre":{"white-space":"pre"},".whitespace-pre-line":{"white-space":"pre-line"},".whitespace-pre-wrap":{"white-space":"pre-wrap"},".whitespace-break-spaces":{"white-space":"break-spaces"}})},textWrap:({addUtilities:t})=>{t({".text-wrap":{"text-wrap":"wrap"},".text-nowrap":{"text-wrap":"nowrap"},".text-balance":{"text-wrap":"balance"},".text-pretty":{"text-wrap":"pretty"}})},wordBreak:({addUtilities:t})=>{t({".break-normal":{"overflow-wrap":"normal","word-break":"normal"},".break-words":{"overflow-wrap":"break-word"},".break-all":{"word-break":"break-all"},".break-keep":{"word-break":"keep-all"}})},borderRadius:V("borderRadius",[["rounded",["border-radius"]],[["rounded-s",["border-start-start-radius","border-end-start-radius"]],["rounded-e",["border-start-end-radius","border-end-end-radius"]],["rounded-t",["border-top-left-radius","border-top-right-radius"]],["rounded-r",["border-top-right-radius","border-bottom-right-radius"]],["rounded-b",["border-bottom-right-radius","border-bottom-left-radius"]],["rounded-l",["border-top-left-radius","border-bottom-left-radius"]]],[["rounded-ss",["border-start-start-radius"]],["rounded-se",["border-start-end-radius"]],["rounded-ee",["border-end-end-radius"]],["rounded-es",["border-end-start-radius"]],["rounded-tl",["border-top-left-radius"]],["rounded-tr",["border-top-right-radius"]],["rounded-br",["border-bottom-right-radius"]],["rounded-bl",["border-bottom-left-radius"]]]]),borderWidth:V("borderWidth",[["border",[["@defaults border-width",{}],"border-width"]],[["border-x",[["@defaults border-width",{}],"border-left-width","border-right-width"]],["border-y",[["@defaults border-width",{}],"border-top-width","border-bottom-width"]]],[["border-s",[["@defaults border-width",{}],"border-inline-start-width"]],["border-e",[["@defaults border-width",{}],"border-inline-end-width"]],["border-t",[["@defaults border-width",{}],"border-top-width"]],["border-r",[["@defaults border-width",{}],"border-right-width"]],["border-b",[["@defaults border-width",{}],"border-bottom-width"]],["border-l",[["@defaults border-width",{}],"border-left-width"]]]],{type:["line-width","length"]}),borderStyle:({addUtilities:t})=>{t({".border-solid":{"border-style":"solid"},".border-dashed":{"border-style":"dashed"},".border-dotted":{"border-style":"dotted"},".border-double":{"border-style":"double"},".border-hidden":{"border-style":"hidden"},".border-none":{"border-style":"none"}})},borderColor:({matchUtilities:t,theme:e,corePlugins:r})=>{t({border:n=>r("borderOpacity")?ft({color:n,property:"border-color",variable:"--tw-border-opacity"}):{"border-color":ke(n)}},{values:(({DEFAULT:n,...i})=>i)(Xe(e("borderColor"))),type:["color","any"]}),t({"border-x":n=>r("borderOpacity")?ft({color:n,property:["border-left-color","border-right-color"],variable:"--tw-border-opacity"}):{"border-left-color":ke(n),"border-right-color":ke(n)},"border-y":n=>r("borderOpacity")?ft({color:n,property:["border-top-color","border-bottom-color"],variable:"--tw-border-opacity"}):{"border-top-color":ke(n),"border-bottom-color":ke(n)}},{values:(({DEFAULT:n,...i})=>i)(Xe(e("borderColor"))),type:["color","any"]}),t({"border-s":n=>r("borderOpacity")?ft({color:n,property:"border-inline-start-color",variable:"--tw-border-opacity"}):{"border-inline-start-color":ke(n)},"border-e":n=>r("borderOpacity")?ft({color:n,property:"border-inline-end-color",variable:"--tw-border-opacity"}):{"border-inline-end-color":ke(n)},"border-t":n=>r("borderOpacity")?ft({color:n,property:"border-top-color",variable:"--tw-border-opacity"}):{"border-top-color":ke(n)},"border-r":n=>r("borderOpacity")?ft({color:n,property:"border-right-color",variable:"--tw-border-opacity"}):{"border-right-color":ke(n)},"border-b":n=>r("borderOpacity")?ft({color:n,property:"border-bottom-color",variable:"--tw-border-opacity"}):{"border-bottom-color":ke(n)},"border-l":n=>r("borderOpacity")?ft({color:n,property:"border-left-color",variable:"--tw-border-opacity"}):{"border-left-color":ke(n)}},{values:(({DEFAULT:n,...i})=>i)(Xe(e("borderColor"))),type:["color","any"]})},borderOpacity:V("borderOpacity",[["border-opacity",["--tw-border-opacity"]]]),backgroundColor:({matchUtilities:t,theme:e,corePlugins:r})=>{t({bg:n=>r("backgroundOpacity")?ft({color:n,property:"background-color",variable:"--tw-bg-opacity"}):{"background-color":ke(n)}},{values:Xe(e("backgroundColor")),type:["color","any"]})},backgroundOpacity:V("backgroundOpacity",[["bg-opacity",["--tw-bg-opacity"]]]),backgroundImage:V("backgroundImage",[["bg",["background-image"]]],{type:["lookup","image","url"]}),gradientColorStops:(()=>{function t(e){return Hr(e,0,"rgb(255 255 255 / 0)")}return function({matchUtilities:e,theme:r,addDefaults:n}){n("gradient-color-stops",{"--tw-gradient-from-position":" ","--tw-gradient-via-position":" ","--tw-gradient-to-position":" "});let i={values:Xe(r("gradientColorStops")),type:["color","any"]},o={values:r("gradientColorStopPositions"),type:["length","percentage"]};e({from:s=>{let l=t(s);return{"@defaults gradient-color-stops":{},"--tw-gradient-from":`${ke(s)} var(--tw-gradient-from-position)`,"--tw-gradient-to":`${l} var(--tw-gradient-to-position)`,"--tw-gradient-stops":"var(--tw-gradient-from), var(--tw-gradient-to)"}}},i),e({from:s=>({"--tw-gradient-from-position":s})},o),e({via:s=>{let l=t(s);return{"@defaults gradient-color-stops":{},"--tw-gradient-to":`${l} var(--tw-gradient-to-position)`,"--tw-gradient-stops":`var(--tw-gradient-from), ${ke(s)} var(--tw-gradient-via-position), var(--tw-gradient-to)`}}},i),e({via:s=>({"--tw-gradient-via-position":s})},o),e({to:s=>({"@defaults gradient-color-stops":{},"--tw-gradient-to":`${ke(s)} var(--tw-gradient-to-position)`})},i),e({to:s=>({"--tw-gradient-to-position":s})},o)}})(),boxDecorationBreak:({addUtilities:t})=>{t({".decoration-slice":{"box-decoration-break":"slice"},".decoration-clone":{"box-decoration-break":"clone"},".box-decoration-slice":{"box-decoration-break":"slice"},".box-decoration-clone":{"box-decoration-break":"clone"}})},backgroundSize:V("backgroundSize",[["bg",["background-size"]]],{type:["lookup","length","percentage","size"]}),backgroundAttachment:({addUtilities:t})=>{t({".bg-fixed":{"background-attachment":"fixed"},".bg-local":{"background-attachment":"local"},".bg-scroll":{"background-attachment":"scroll"}})},backgroundClip:({addUtilities:t})=>{t({".bg-clip-border":{"background-clip":"border-box"},".bg-clip-padding":{"background-clip":"padding-box"},".bg-clip-content":{"background-clip":"content-box"},".bg-clip-text":{"background-clip":"text"}})},backgroundPosition:V("backgroundPosition",[["bg",["background-position"]]],{type:["lookup",["position",{preferOnConflict:!0}]]}),backgroundRepeat:({addUtilities:t})=>{t({".bg-repeat":{"background-repeat":"repeat"},".bg-no-repeat":{"background-repeat":"no-repeat"},".bg-repeat-x":{"background-repeat":"repeat-x"},".bg-repeat-y":{"background-repeat":"repeat-y"},".bg-repeat-round":{"background-repeat":"round"},".bg-repeat-space":{"background-repeat":"space"}})},backgroundOrigin:({addUtilities:t})=>{t({".bg-origin-border":{"background-origin":"border-box"},".bg-origin-padding":{"background-origin":"padding-box"},".bg-origin-content":{"background-origin":"content-box"}})},fill:({matchUtilities:t,theme:e})=>{t({fill:r=>({fill:ke(r)})},{values:Xe(e("fill")),type:["color","any"]})},stroke:({matchUtilities:t,theme:e})=>{t({stroke:r=>({stroke:ke(r)})},{values:Xe(e("stroke")),type:["color","url","any"]})},strokeWidth:V("strokeWidth",[["stroke",["stroke-width"]]],{type:["length","number","percentage"]}),objectFit:({addUtilities:t})=>{t({".object-contain":{"object-fit":"contain"},".object-cover":{"object-fit":"cover"},".object-fill":{"object-fit":"fill"},".object-none":{"object-fit":"none"},".object-scale-down":{"object-fit":"scale-down"}})},objectPosition:V("objectPosition",[["object",["object-position"]]]),padding:V("padding",[["p",["padding"]],[["px",["padding-left","padding-right"]],["py",["padding-top","padding-bottom"]]],[["ps",["padding-inline-start"]],["pe",["padding-inline-end"]],["pt",["padding-top"]],["pr",["padding-right"]],["pb",["padding-bottom"]],["pl",["padding-left"]]]]),textAlign:({addUtilities:t})=>{t({".text-left":{"text-align":"left"},".text-center":{"text-align":"center"},".text-right":{"text-align":"right"},".text-justify":{"text-align":"justify"},".text-start":{"text-align":"start"},".text-end":{"text-align":"end"}})},textIndent:V("textIndent",[["indent",["text-indent"]]],{supportsNegativeValues:!0}),verticalAlign:({addUtilities:t,matchUtilities:e})=>{t({".align-baseline":{"vertical-align":"baseline"},".align-top":{"vertical-align":"top"},".align-middle":{"vertical-align":"middle"},".align-bottom":{"vertical-align":"bottom"},".align-text-top":{"vertical-align":"text-top"},".align-text-bottom":{"vertical-align":"text-bottom"},".align-sub":{"vertical-align":"sub"},".align-super":{"vertical-align":"super"}}),e({align:r=>({"vertical-align":r})})},fontFamily:({matchUtilities:t,theme:e})=>{t({font:r=>{let[n,i={}]=Array.isArray(r)&&At(r[1])?r:[r],{fontFeatureSettings:o,fontVariationSettings:s}=i;return{"font-family":Array.isArray(n)?n.join(", "):n,...o===void 0?{}:{"font-feature-settings":o},...s===void 0?{}:{"font-variation-settings":s}}}},{values:e("fontFamily"),type:["lookup","generic-name","family-name"]})},fontSize:({matchUtilities:t,theme:e})=>{t({text:(r,{modifier:n})=>{let[i,o]=Array.isArray(r)?r:[r];if(n)return{"font-size":i,"line-height":n};let{lineHeight:s,letterSpacing:l,fontWeight:a}=At(o)?o:{lineHeight:o};return{"font-size":i,...s===void 0?{}:{"line-height":s},...l===void 0?{}:{"letter-spacing":l},...a===void 0?{}:{"font-weight":a}}}},{values:e("fontSize"),modifiers:e("lineHeight"),type:["absolute-size","relative-size","length","percentage"]})},fontWeight:V("fontWeight",[["font",["fontWeight"]]],{type:["lookup","number","any"]}),textTransform:({addUtilities:t})=>{t({".uppercase":{"text-transform":"uppercase"},".lowercase":{"text-transform":"lowercase"},".capitalize":{"text-transform":"capitalize"},".normal-case":{"text-transform":"none"}})},fontStyle:({addUtilities:t})=>{t({".italic":{"font-style":"italic"},".not-italic":{"font-style":"normal"}})},fontVariantNumeric:({addDefaults:t,addUtilities:e})=>{let r="var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)";t("font-variant-numeric",{"--tw-ordinal":" ","--tw-slashed-zero":" ","--tw-numeric-figure":" ","--tw-numeric-spacing":" ","--tw-numeric-fraction":" "}),e({".normal-nums":{"font-variant-numeric":"normal"},".ordinal":{"@defaults font-variant-numeric":{},"--tw-ordinal":"ordinal","font-variant-numeric":r},".slashed-zero":{"@defaults font-variant-numeric":{},"--tw-slashed-zero":"slashed-zero","font-variant-numeric":r},".lining-nums":{"@defaults font-variant-numeric":{},"--tw-numeric-figure":"lining-nums","font-variant-numeric":r},".oldstyle-nums":{"@defaults font-variant-numeric":{},"--tw-numeric-figure":"oldstyle-nums","font-variant-numeric":r},".proportional-nums":{"@defaults font-variant-numeric":{},"--tw-numeric-spacing":"proportional-nums","font-variant-numeric":r},".tabular-nums":{"@defaults font-variant-numeric":{},"--tw-numeric-spacing":"tabular-nums","font-variant-numeric":r},".diagonal-fractions":{"@defaults font-variant-numeric":{},"--tw-numeric-fraction":"diagonal-fractions","font-variant-numeric":r},".stacked-fractions":{"@defaults font-variant-numeric":{},"--tw-numeric-fraction":"stacked-fractions","font-variant-numeric":r}})},lineHeight:V("lineHeight",[["leading",["lineHeight"]]]),letterSpacing:V("letterSpacing",[["tracking",["letterSpacing"]]],{supportsNegativeValues:!0}),textColor:({matchUtilities:t,theme:e,corePlugins:r})=>{t({text:n=>r("textOpacity")?ft({color:n,property:"color",variable:"--tw-text-opacity"}):{color:ke(n)}},{values:Xe(e("textColor")),type:["color","any"]})},textOpacity:V("textOpacity",[["text-opacity",["--tw-text-opacity"]]]),textDecoration:({addUtilities:t})=>{t({".underline":{"text-decoration-line":"underline"},".overline":{"text-decoration-line":"overline"},".line-through":{"text-decoration-line":"line-through"},".no-underline":{"text-decoration-line":"none"}})},textDecorationColor:({matchUtilities:t,theme:e})=>{t({decoration:r=>({"text-decoration-color":ke(r)})},{values:Xe(e("textDecorationColor")),type:["color","any"]})},textDecorationStyle:({addUtilities:t})=>{t({".decoration-solid":{"text-decoration-style":"solid"},".decoration-double":{"text-decoration-style":"double"},".decoration-dotted":{"text-decoration-style":"dotted"},".decoration-dashed":{"text-decoration-style":"dashed"},".decoration-wavy":{"text-decoration-style":"wavy"}})},textDecorationThickness:V("textDecorationThickness",[["decoration",["text-decoration-thickness"]]],{type:["length","percentage"]}),textUnderlineOffset:V("textUnderlineOffset",[["underline-offset",["text-underline-offset"]]],{type:["length","percentage","any"]}),fontSmoothing:({addUtilities:t})=>{t({".antialiased":{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"},".subpixel-antialiased":{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"}})},placeholderColor:({matchUtilities:t,theme:e,corePlugins:r})=>{t({placeholder:n=>r("placeholderOpacity")?{"&::placeholder":ft({color:n,property:"color",variable:"--tw-placeholder-opacity"})}:{"&::placeholder":{color:ke(n)}}},{values:Xe(e("placeholderColor")),type:["color","any"]})},placeholderOpacity:({matchUtilities:t,theme:e})=>{t({"placeholder-opacity":r=>({"&::placeholder":{"--tw-placeholder-opacity":r}})},{values:e("placeholderOpacity")})},caretColor:({matchUtilities:t,theme:e})=>{t({caret:r=>({"caret-color":ke(r)})},{values:Xe(e("caretColor")),type:["color","any"]})},accentColor:({matchUtilities:t,theme:e})=>{t({accent:r=>({"accent-color":ke(r)})},{values:Xe(e("accentColor")),type:["color","any"]})},opacity:V("opacity",[["opacity",["opacity"]]]),backgroundBlendMode:({addUtilities:t})=>{t({".bg-blend-normal":{"background-blend-mode":"normal"},".bg-blend-multiply":{"background-blend-mode":"multiply"},".bg-blend-screen":{"background-blend-mode":"screen"},".bg-blend-overlay":{"background-blend-mode":"overlay"},".bg-blend-darken":{"background-blend-mode":"darken"},".bg-blend-lighten":{"background-blend-mode":"lighten"},".bg-blend-color-dodge":{"background-blend-mode":"color-dodge"},".bg-blend-color-burn":{"background-blend-mode":"color-burn"},".bg-blend-hard-light":{"background-blend-mode":"hard-light"},".bg-blend-soft-light":{"background-blend-mode":"soft-light"},".bg-blend-difference":{"background-blend-mode":"difference"},".bg-blend-exclusion":{"background-blend-mode":"exclusion"},".bg-blend-hue":{"background-blend-mode":"hue"},".bg-blend-saturation":{"background-blend-mode":"saturation"},".bg-blend-color":{"background-blend-mode":"color"},".bg-blend-luminosity":{"background-blend-mode":"luminosity"}})},mixBlendMode:({addUtilities:t})=>{t({".mix-blend-normal":{"mix-blend-mode":"normal"},".mix-blend-multiply":{"mix-blend-mode":"multiply"},".mix-blend-screen":{"mix-blend-mode":"screen"},".mix-blend-overlay":{"mix-blend-mode":"overlay"},".mix-blend-darken":{"mix-blend-mode":"darken"},".mix-blend-lighten":{"mix-blend-mode":"lighten"},".mix-blend-color-dodge":{"mix-blend-mode":"color-dodge"},".mix-blend-color-burn":{"mix-blend-mode":"color-burn"},".mix-blend-hard-light":{"mix-blend-mode":"hard-light"},".mix-blend-soft-light":{"mix-blend-mode":"soft-light"},".mix-blend-difference":{"mix-blend-mode":"difference"},".mix-blend-exclusion":{"mix-blend-mode":"exclusion"},".mix-blend-hue":{"mix-blend-mode":"hue"},".mix-blend-saturation":{"mix-blend-mode":"saturation"},".mix-blend-color":{"mix-blend-mode":"color"},".mix-blend-luminosity":{"mix-blend-mode":"luminosity"},".mix-blend-plus-lighter":{"mix-blend-mode":"plus-lighter"}})},boxShadow:(()=>{let t=Ho("boxShadow"),e=["var(--tw-ring-offset-shadow, 0 0 #0000)","var(--tw-ring-shadow, 0 0 #0000)","var(--tw-shadow)"].join(", ");return function({matchUtilities:r,addDefaults:n,theme:i}){n(" box-shadow",{"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),r({shadow:o=>{o=t(o);let s=Th(o);for(let l of s)l.valid&&(l.color="var(--tw-shadow-color)");return{"@defaults box-shadow":{},"--tw-shadow":o==="none"?"0 0 #0000":o,"--tw-shadow-colored":o==="none"?"0 0 #0000":Hx(s),"box-shadow":e}}},{values:i("boxShadow"),type:["shadow"]})}})(),boxShadowColor:({matchUtilities:t,theme:e})=>{t({shadow:r=>({"--tw-shadow-color":ke(r),"--tw-shadow":"var(--tw-shadow-colored)"})},{values:Xe(e("boxShadowColor")),type:["color","any"]})},outlineStyle:({addUtilities:t})=>{t({".outline-none":{outline:"2px solid transparent","outline-offset":"2px"},".outline":{"outline-style":"solid"},".outline-dashed":{"outline-style":"dashed"},".outline-dotted":{"outline-style":"dotted"},".outline-double":{"outline-style":"double"}})},outlineWidth:V("outlineWidth",[["outline",["outline-width"]]],{type:["length","number","percentage"]}),outlineOffset:V("outlineOffset",[["outline-offset",["outline-offset"]]],{type:["length","number","percentage","any"],supportsNegativeValues:!0}),outlineColor:({matchUtilities:t,theme:e})=>{t({outline:r=>({"outline-color":ke(r)})},{values:Xe(e("outlineColor")),type:["color","any"]})},ringWidth:({matchUtilities:t,addDefaults:e,addUtilities:r,theme:n,config:i})=>{let o=(()=>{if(_t(i(),"respectDefaultRingColorOpacity"))return n("ringColor.DEFAULT");let s=n("ringOpacity.DEFAULT","0.5");return n("ringColor")?.DEFAULT?Hr(n("ringColor")?.DEFAULT,s,`rgb(147 197 253 / ${s})`):`rgb(147 197 253 / ${s})`})();e("ring-width",{"--tw-ring-inset":" ","--tw-ring-offset-width":n("ringOffsetWidth.DEFAULT","0px"),"--tw-ring-offset-color":n("ringOffsetColor.DEFAULT","#fff"),"--tw-ring-color":o,"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),t({ring:s=>({"@defaults ring-width":{},"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${s} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,"box-shadow":["var(--tw-ring-offset-shadow)","var(--tw-ring-shadow)","var(--tw-shadow, 0 0 #0000)"].join(", ")})},{values:n("ringWidth"),type:"length"}),r({".ring-inset":{"@defaults ring-width":{},"--tw-ring-inset":"inset"}})},ringColor:({matchUtilities:t,theme:e,corePlugins:r})=>{t({ring:n=>r("ringOpacity")?ft({color:n,property:"--tw-ring-color",variable:"--tw-ring-opacity"}):{"--tw-ring-color":ke(n)}},{values:Object.fromEntries(Object.entries(Xe(e("ringColor"))).filter(([n])=>n!=="DEFAULT")),type:["color","any"]})},ringOpacity:t=>{let{config:e}=t;return V("ringOpacity",[["ring-opacity",["--tw-ring-opacity"]]],{filterDefault:!_t(e(),"respectDefaultRingColorOpacity")})(t)},ringOffsetWidth:V("ringOffsetWidth",[["ring-offset",["--tw-ring-offset-width"]]],{type:"length"}),ringOffsetColor:({matchUtilities:t,theme:e})=>{t({"ring-offset":r=>({"--tw-ring-offset-color":ke(r)})},{values:Xe(e("ringOffsetColor")),type:["color","any"]})},blur:({matchUtilities:t,theme:e})=>{t({blur:r=>({"--tw-blur":`blur(${r})`,"@defaults filter":{},filter:Lt})},{values:e("blur")})},brightness:({matchUtilities:t,theme:e})=>{t({brightness:r=>({"--tw-brightness":`brightness(${r})`,"@defaults filter":{},filter:Lt})},{values:e("brightness")})},contrast:({matchUtilities:t,theme:e})=>{t({contrast:r=>({"--tw-contrast":`contrast(${r})`,"@defaults filter":{},filter:Lt})},{values:e("contrast")})},dropShadow:({matchUtilities:t,theme:e})=>{t({"drop-shadow":r=>({"--tw-drop-shadow":Array.isArray(r)?r.map(n=>`drop-shadow(${n})`).join(" "):`drop-shadow(${r})`,"@defaults filter":{},filter:Lt})},{values:e("dropShadow")})},grayscale:({matchUtilities:t,theme:e})=>{t({grayscale:r=>({"--tw-grayscale":`grayscale(${r})`,"@defaults filter":{},filter:Lt})},{values:e("grayscale")})},hueRotate:({matchUtilities:t,theme:e})=>{t({"hue-rotate":r=>({"--tw-hue-rotate":`hue-rotate(${r})`,"@defaults filter":{},filter:Lt})},{values:e("hueRotate"),supportsNegativeValues:!0})},invert:({matchUtilities:t,theme:e})=>{t({invert:r=>({"--tw-invert":`invert(${r})`,"@defaults filter":{},filter:Lt})},{values:e("invert")})},saturate:({matchUtilities:t,theme:e})=>{t({saturate:r=>({"--tw-saturate":`saturate(${r})`,"@defaults filter":{},filter:Lt})},{values:e("saturate")})},sepia:({matchUtilities:t,theme:e})=>{t({sepia:r=>({"--tw-sepia":`sepia(${r})`,"@defaults filter":{},filter:Lt})},{values:e("sepia")})},filter:({addDefaults:t,addUtilities:e})=>{t("filter",{"--tw-blur":" ","--tw-brightness":" ","--tw-contrast":" ","--tw-grayscale":" ","--tw-hue-rotate":" ","--tw-invert":" ","--tw-saturate":" ","--tw-sepia":" ","--tw-drop-shadow":" "}),e({".filter":{"@defaults filter":{},filter:Lt},".filter-none":{filter:"none"}})},backdropBlur:({matchUtilities:t,theme:e})=>{t({"backdrop-blur":r=>({"--tw-backdrop-blur":`blur(${r})`,"@defaults backdrop-filter":{},"backdrop-filter":Nt})},{values:e("backdropBlur")})},backdropBrightness:({matchUtilities:t,theme:e})=>{t({"backdrop-brightness":r=>({"--tw-backdrop-brightness":`brightness(${r})`,"@defaults backdrop-filter":{},"backdrop-filter":Nt})},{values:e("backdropBrightness")})},backdropContrast:({matchUtilities:t,theme:e})=>{t({"backdrop-contrast":r=>({"--tw-backdrop-contrast":`contrast(${r})`,"@defaults backdrop-filter":{},"backdrop-filter":Nt})},{values:e("backdropContrast")})},backdropGrayscale:({matchUtilities:t,theme:e})=>{t({"backdrop-grayscale":r=>({"--tw-backdrop-grayscale":`grayscale(${r})`,"@defaults backdrop-filter":{},"backdrop-filter":Nt})},{values:e("backdropGrayscale")})},backdropHueRotate:({matchUtilities:t,theme:e})=>{t({"backdrop-hue-rotate":r=>({"--tw-backdrop-hue-rotate":`hue-rotate(${r})`,"@defaults backdrop-filter":{},"backdrop-filter":Nt})},{values:e("backdropHueRotate"),supportsNegativeValues:!0})},backdropInvert:({matchUtilities:t,theme:e})=>{t({"backdrop-invert":r=>({"--tw-backdrop-invert":`invert(${r})`,"@defaults backdrop-filter":{},"backdrop-filter":Nt})},{values:e("backdropInvert")})},backdropOpacity:({matchUtilities:t,theme:e})=>{t({"backdrop-opacity":r=>({"--tw-backdrop-opacity":`opacity(${r})`,"@defaults backdrop-filter":{},"backdrop-filter":Nt})},{values:e("backdropOpacity")})},backdropSaturate:({matchUtilities:t,theme:e})=>{t({"backdrop-saturate":r=>({"--tw-backdrop-saturate":`saturate(${r})`,"@defaults backdrop-filter":{},"backdrop-filter":Nt})},{values:e("backdropSaturate")})},backdropSepia:({matchUtilities:t,theme:e})=>{t({"backdrop-sepia":r=>({"--tw-backdrop-sepia":`sepia(${r})`,"@defaults backdrop-filter":{},"backdrop-filter":Nt})},{values:e("backdropSepia")})},backdropFilter:({addDefaults:t,addUtilities:e})=>{t("backdrop-filter",{"--tw-backdrop-blur":" ","--tw-backdrop-brightness":" ","--tw-backdrop-contrast":" ","--tw-backdrop-grayscale":" ","--tw-backdrop-hue-rotate":" ","--tw-backdrop-invert":" ","--tw-backdrop-opacity":" ","--tw-backdrop-saturate":" ","--tw-backdrop-sepia":" "}),e({".backdrop-filter":{"@defaults backdrop-filter":{},"backdrop-filter":Nt},".backdrop-filter-none":{"backdrop-filter":"none"}})},transitionProperty:({matchUtilities:t,theme:e})=>{let r=e("transitionTimingFunction.DEFAULT"),n=e("transitionDuration.DEFAULT");t({transition:i=>({"transition-property":i,...i==="none"?{}:{"transition-timing-function":r,"transition-duration":n}})},{values:e("transitionProperty")})},transitionDelay:V("transitionDelay",[["delay",["transitionDelay"]]]),transitionDuration:V("transitionDuration",[["duration",["transitionDuration"]]],{filterDefault:!0}),transitionTimingFunction:V("transitionTimingFunction",[["ease",["transitionTimingFunction"]]],{filterDefault:!0}),willChange:V("willChange",[["will-change",["will-change"]]]),content:V("content",[["content",["--tw-content",["content","var(--tw-content)"]]]]),forcedColorAdjust:({addUtilities:t})=>{t({".forced-color-adjust-auto":{"forced-color-adjust":"auto"},".forced-color-adjust-none":{"forced-color-adjust":"none"}})}};function di(t){if(Array.isArray(t))return t;let e=t.split("[").length-1,r=t.split("]").length-1;if(e!==r)throw new Error(`Path is invalid. Has unbalanced brackets: ${t}`);return t.split(/\.(?![^\[]*\])|[\[\]]/g).filter(Boolean)}var Vh=new Map([["{","}"],["[","]"],["(",")"]]),sh=new Map(Array.from(Vh.entries()).map(([t,e])=>[e,t])),Nk=new Set(['"',"'","`"]);function Ml(t){let e=[],r=!1;for(let n=0;n0)}function ah(t){return(t>0n)-(t<0n)}function Rk(t,e){let r=0n,n=0n;for(let[i,o]of e)t&i&&(r=r|i,n=n|o);return t&~r|n}var jk=class{constructor(){this.offsets={defaults:0n,base:0n,components:0n,utilities:0n,variants:0n,user:0n},this.layerPositions={defaults:0n,base:1n,components:2n,utilities:3n,user:4n,variants:5n},this.reservedVariantBits=0n,this.variantOffsets=new Map}create(t){return{layer:t,parentLayer:t,arbitrary:0n,variants:0n,parallelIndex:0n,index:this.offsets[t]++,options:[]}}arbitraryProperty(){return{...this.create("utilities"),arbitrary:1n}}forVariant(t,e=0){let r=this.variantOffsets.get(t);if(r===void 0)throw new Error(`Cannot find offset for unknown variant ${t}`);return{...this.create("variants"),variants:r<n.startsWith("[")).sort(([n],[i])=>qk(n,i)),e=t.map(([,n])=>n).sort((n,i)=>ah(n-i));return t.map(([,n],i)=>[n,e[i]]).filter(([n,i])=>n!==i)}remapArbitraryVariantOffsets(t){let e=this.recalculateVariantOffsets();return e.length===0?t:t.map(r=>{let[n,i]=r;return n={...n,variants:Rk(n.variants,e)},[n,i]})}sort(t){return t=this.remapArbitraryVariantOffsets(t),t.sort(([e],[r])=>ah(this.compare(e,r)))}};function lh(t){let e=null;for(let r of t)e=e??r,e=e>r?e:r;return e}function qk(t,e){let r=t.length,n=e.length,i=rArray.isArray(n)?{type:n[0],...n[1]}:{type:n,preferOnConflict:!1})}}function Uk(t){let e=[],r="",n=0;for(let i=0;i0&&e.push(r.trim()),e=e.filter(i=>i!==""),e}function Bk(t,e,{before:r=[]}={}){if(r=[].concat(r),r.length<=0){t.push(e);return}let n=t.length-1;for(let i of r){let o=t.indexOf(i);o!==-1&&(n=Math.min(n,o))}t.splice(n,0,e)}function Hh(t){return Array.isArray(t)?t.flatMap(e=>!Array.isArray(e)&&!At(e)?e:zl(e)):Hh([t])}function zk(t,e){return(0,Zl.default)(n=>{let i=[];return e&&e(n),n.walkClasses(o=>{i.push(o.value)}),i}).transformSync(t)}function Wk(t){t.walkPseudos(e=>{e.value===":not"&&e.remove()})}function Vk(t,e={containsNonOnDemandable:!1},r=0){let n=[],i=[];t.type==="rule"?i.push(...t.selectors):t.type==="atrule"&&t.walkRules(o=>i.push(...o.selectors));for(let o of i){let s=zk(o,Wk);s.length===0&&(e.containsNonOnDemandable=!0);for(let l of s)n.push(l)}return r===0?[e.containsNonOnDemandable||n.length===0,n]:n}function Mo(t){return Hh(t).flatMap(e=>{let r=new Map,[n,i]=Vk(e);return n&&i.unshift(Vr),i.map(o=>(r.has(e)||r.set(e,e),[o,r.get(e)]))})}function Ll(t){return t.startsWith("@")||t.includes("&")}function Lo(t){t=t.replace(/\n+/g,"").replace(/\s{1,}/g," ").trim();let e=Uk(t).map(r=>{if(!r.startsWith("@"))return({format:o})=>o(r);let[,n,i]=/@(\S*)( .+|[({].*)?/g.exec(r);return({wrap:o})=>o(be.atRule({name:n,params:i?.trim()??""}))}).reverse();return r=>{for(let n of e)n(r)}}function Hk(t,e,{variantList:r,variantMap:n,offsets:i,classList:o}){function s(d,f){return d?(0,zh.default)(t,d,f):t}function l(d){return Wl(t.prefix,d)}function a(d,f){return d===Vr?Vr:f.respectPrefix?e.tailwindConfig.prefix+d:d}function u(d,f,g={}){let w=di(d),h=s(["theme",...w],f);return Ho(w[0])(h,g)}let c=0,p={postcss:be,prefix:l,e:fr,config:s,theme:u,corePlugins:d=>Array.isArray(t.corePlugins)?t.corePlugins.includes(d):s(["corePlugins",d],!0),variants:()=>[],addBase(d){for(let[f,g]of Mo(d)){let w=a(f,{}),h=i.create("base");e.candidateRuleMap.has(w)||e.candidateRuleMap.set(w,[]),e.candidateRuleMap.get(w).push([{sort:h,layer:"base"},g])}},addDefaults(d,f){let g={[`@defaults ${d}`]:f};for(let[w,h]of Mo(g)){let m=a(w,{});e.candidateRuleMap.has(m)||e.candidateRuleMap.set(m,[]),e.candidateRuleMap.get(m).push([{sort:i.create("defaults"),layer:"defaults"},h])}},addComponents(d,f){f=Object.assign({},{preserveSource:!1,respectPrefix:!0,respectImportant:!1},Array.isArray(f)?{}:f);for(let[w,h]of Mo(d)){let m=a(w,f);o.add(m),e.candidateRuleMap.has(m)||e.candidateRuleMap.set(m,[]),e.candidateRuleMap.get(m).push([{sort:i.create("components"),layer:"components",options:f},h])}},addUtilities(d,f){f=Object.assign({},{preserveSource:!1,respectPrefix:!0,respectImportant:!0},Array.isArray(f)?{}:f);for(let[w,h]of Mo(d)){let m=a(w,f);o.add(m),e.candidateRuleMap.has(m)||e.candidateRuleMap.set(m,[]),e.candidateRuleMap.get(m).push([{sort:i.create("utilities"),layer:"utilities",options:f},h])}},matchUtilities:function(d,f){f=uh({...{respectPrefix:!0,respectImportant:!0,modifiers:!1},...f});let w=i.create("utilities");for(let h in d){let m=function(y,{isOnlyPlugin:C}){let[E,S,D]=th(f.types,y,f,t);if(E===void 0)return[];if(!f.types.some(({type:Y})=>Y===S))if(C)He.warn([`Unnecessary typehint \`${S}\` in \`${h}-${y}\`.`,`You can safely update it to \`${h}-${y.replace(S+":","")}\`.`]);else return[];if(!Ml(E))return[];let O={get modifier(){return f.modifiers||He.warn(`modifier-used-without-options-for-${h}`,["Your plugin must set `modifiers: true` in its options to support modifiers."]),D}},F=_t(t,"generalizedModifiers");return[].concat(F?v(E,O):v(E)).filter(Boolean).map(Y=>({[nh(h,y)]:Y}))},b=a(h,f),v=d[h];o.add([b,f]);let _=[{sort:w,layer:"utilities",options:f},m];e.candidateRuleMap.has(b)||e.candidateRuleMap.set(b,[]),e.candidateRuleMap.get(b).push(_)}},matchComponents:function(d,f){f=uh({...{respectPrefix:!0,respectImportant:!1,modifiers:!1},...f});let w=i.create("components");for(let h in d){let m=function(y,{isOnlyPlugin:C}){let[E,S,D]=th(f.types,y,f,t);if(E===void 0)return[];if(!f.types.some(({type:Y})=>Y===S))if(C)He.warn([`Unnecessary typehint \`${S}\` in \`${h}-${y}\`.`,`You can safely update it to \`${h}-${y.replace(S+":","")}\`.`]);else return[];if(!Ml(E))return[];let O={get modifier(){return f.modifiers||He.warn(`modifier-used-without-options-for-${h}`,["Your plugin must set `modifiers: true` in its options to support modifiers."]),D}},F=_t(t,"generalizedModifiers");return[].concat(F?v(E,O):v(E)).filter(Boolean).map(Y=>({[nh(h,y)]:Y}))},b=a(h,f),v=d[h];o.add([b,f]);let _=[{sort:w,layer:"components",options:f},m];e.candidateRuleMap.has(b)||e.candidateRuleMap.set(b,[]),e.candidateRuleMap.get(b).push(_)}},addVariant(d,f,g={}){f=[].concat(f).map(w=>{if(typeof w!="string")return(h={})=>{let{args:m,modifySelectors:b,container:v,separator:_,wrap:y,format:C}=h,E=w(Object.assign({modifySelectors:b,container:v,separator:_},g.type===kl.MatchVariant&&{args:m,wrap:y,format:C}));if(typeof E=="string"&&!Ll(E))throw new Error(`Your custom variant \`${d}\` has an invalid format string. Make sure it's an at-rule or contains a \`&\` placeholder.`);return Array.isArray(E)?E.filter(S=>typeof S=="string").map(S=>Lo(S)):E&&typeof E=="string"&&Lo(E)(h)};if(!Ll(w))throw new Error(`Your custom variant \`${d}\` has an invalid format string. Make sure it's an at-rule or contains a \`&\` placeholder.`);return Lo(w)}),Bk(r,d,g),n.set(d,f),e.variantOptions.set(d,g)},matchVariant(d,f,g){let w=g?.id??++c,h=d==="@",m=_t(t,"generalizedModifiers");for(let[v,_]of Object.entries(g?.values??{}))v!=="DEFAULT"&&p.addVariant(h?`${d}${v}`:`${d}-${v}`,({args:y,container:C})=>f(_,m?{modifier:y?.modifier,container:C}:{container:C}),{...g,value:_,id:w,type:kl.MatchVariant,variantInfo:Fl.Base});let b="DEFAULT"in(g?.values??{});p.addVariant(d,({args:v,container:_})=>v?.value===Tl&&!b?null:f(v?.value===Tl?g.values.DEFAULT:v?.value??(typeof v=="string"?v:""),m?{modifier:v?.modifier,container:_}:{container:_}),{...g,id:w,type:kl.MatchVariant,variantInfo:Fl.Dynamic})}};return p}function Gh(t){t.walkAtRules(e=>{["responsive","variants"].includes(e.name)&&(Gh(e),e.before(e.nodes),e.remove())})}function Gk(t){let e=[];return t.each(r=>{r.type==="atrule"&&["responsive","variants"].includes(r.name)&&(r.name="layer",r.params="utilities")}),t.walkAtRules("layer",r=>{if(Gh(r),r.params==="base"){for(let n of r.nodes)e.push(function({addBase:i}){i(n,{respectPrefix:!1})});r.remove()}else if(r.params==="components"){for(let n of r.nodes)e.push(function({addComponents:i}){i(n,{respectPrefix:!1,preserveSource:!0})});r.remove()}else if(r.params==="utilities"){for(let n of r.nodes)e.push(function({addUtilities:i}){i(n,{respectPrefix:!1,preserveSource:!0})});r.remove()}}),e}function Yk(t,e){let r=Object.entries({...Me,...Lk}).map(([a,u])=>t.tailwindConfig.corePlugins.includes(a)?u:null).filter(Boolean),n=t.tailwindConfig.plugins.map(a=>(a.__isOptionsFunction&&(a=a()),typeof a=="function"?a:a.handler)),i=Gk(e),o=[Me.childVariant,Me.pseudoElementVariants,Me.pseudoClassVariants,Me.hasVariants,Me.ariaVariants,Me.dataVariants],s=[Me.supportsVariants,Me.reducedMotionVariants,Me.prefersContrastVariants,Me.screenVariants,Me.orientationVariants,Me.directionVariants,Me.darkVariants,Me.forcedColorsVariants,Me.printVariant];return(t.tailwindConfig.darkMode==="class"||Array.isArray(t.tailwindConfig.darkMode)&&t.tailwindConfig.darkMode[0]==="class")&&(s=[Me.supportsVariants,Me.reducedMotionVariants,Me.prefersContrastVariants,Me.darkVariants,Me.screenVariants,Me.orientationVariants,Me.directionVariants,Me.forcedColorsVariants,Me.printVariant]),[...r,...o,...n,...s,...i]}function Qk(t,e){let r=[],n=new Map;e.variantMap=n;let i=new jk;e.offsets=i;let o=new Set,s=Hk(e.tailwindConfig,e,{variantList:r,variantMap:n,offsets:i,classList:o});for(let c of t)if(Array.isArray(c))for(let p of c)p(s);else c?.(s);i.recordVariants(r,c=>n.get(c).length);for(let[c,p]of n.entries())e.variantMap.set(c,p.map((d,f)=>[i.forVariant(c,f),d]));let l=(e.tailwindConfig.safelist??[]).filter(Boolean);if(l.length>0){let c=[];for(let p of l){if(typeof p=="string"){e.changedContent.push({content:p,extension:"html"});continue}if(p instanceof RegExp){He.warn("root-regex",["Regular expressions in `safelist` work differently in Tailwind CSS v3.0.","Update your `safelist` configuration to eliminate this warning.","https://tailwindcss.com/docs/content-configuration#safelisting-classes"]);continue}c.push(p)}if(c.length>0){let p=new Map,d=e.tailwindConfig.prefix.length,f=c.some(g=>g.pattern.source.includes("!"));for(let g of o){let w=Array.isArray(g)?(()=>{let[h,m]=g,v=Object.keys(m?.values??{}).map(_=>Fo(h,_));return m?.supportsNegativeValues&&(v=[...v,...v.map(_=>"-"+_)],v=[...v,...v.map(_=>_.slice(0,d)+"-"+_.slice(d))]),m.types.some(({type:_})=>_==="color")&&(v=[...v,...v.flatMap(_=>Object.keys(e.tailwindConfig.theme.opacity).map(y=>`${_}/${y}`))]),f&&m?.respectImportant&&(v=[...v,...v.map(_=>"!"+_)]),v})():[g];for(let h of w)for(let{pattern:m,variants:b=[]}of c)if(m.lastIndex=0,p.has(m)||p.set(m,0),!!m.test(h)){p.set(m,p.get(m)+1),e.changedContent.push({content:h,extension:"html"});for(let v of b)e.changedContent.push({content:v+e.tailwindConfig.separator+h,extension:"html"})}}for(let[g,w]of p.entries())w===0&&He.warn([`The safelist pattern \`${g}\` doesn't match any Tailwind CSS classes.`,"Fix this pattern or remove it from your `safelist` configuration.","https://tailwindcss.com/docs/content-configuration#safelisting-classes"])}}let a=[].concat(e.tailwindConfig.darkMode??"media")[1]??"dark",u=[Sl(e,a),Sl(e,"group"),Sl(e,"peer")];e.getClassOrder=function(p){let d=[...p].sort((h,m)=>h===m?0:h[h,null])),g=Zh(new Set(d),e,!0);g=e.offsets.sort(g);let w=BigInt(u.length);for(let[,h]of g){let m=h.raws.tailwind.candidate;f.set(m,f.get(m)??w++)}return p.map(h=>{let m=f.get(h)??null,b=u.indexOf(h);return m===null&&b!==-1&&(m=BigInt(b)),[h,m]})},e.getClassList=function(p={}){let d=[];for(let f of o)if(Array.isArray(f)){let[g,w]=f,h=[],m=Object.keys(w?.modifiers??{});w?.types?.some(({type:_})=>_==="color")&&m.push(...Object.keys(e.tailwindConfig.theme.opacity??{}));let b={modifiers:m},v=p.includeMetadata&&m.length>0;for(let[_,y]of Object.entries(w?.values??{})){if(y==null)continue;let C=Fo(g,_);if(d.push(v?[C,b]:C),w?.supportsNegativeValues&&qo(y)){let E=Fo(g,`-${_}`);h.push(v?[E,b]:E)}}d.push(...h)}else d.push(f);return d},e.getVariants=function(){let p=[];for(let[d,f]of e.variantOptions.entries())f.variantInfo!==Fl.Base&&p.push({name:d,isArbitrary:f.type===Symbol.for("MATCH_VARIANT"),values:Object.keys(f.values??{}),hasDash:d!=="@",selectors({modifier:g,value:w}={}){let h="__TAILWIND_PLACEHOLDER__",m=be.rule({selector:`.${h}`}),b=be.root({nodes:[m.clone()]}),v=b.toString(),_=(e.variantMap.get(d)??[]).flatMap(([Y,U])=>U),y=[];for(let Y of _){let U=[],ne={args:{modifier:g,value:f.values?.[w]??w},separator:e.tailwindConfig.separator,modifySelectors(ye){return b.each(Ue=>{Ue.type==="rule"&&(Ue.selectors=Ue.selectors.map(R=>ye({get className(){return Kh(R)},selector:R})))}),b},format(ye){U.push(ye)},wrap(ye){U.push(`@${ye.name} ${ye.params} { & }`)},container:b},pe=Y(ne);if(U.length>0&&y.push(U),Array.isArray(pe))for(let ye of pe)U=[],ye(ne),y.push(U)}let C=[],E=b.toString();v!==E&&(b.walkRules(Y=>{let U=Y.selector,ne=(0,Zl.default)(pe=>{pe.walkClasses(ye=>{ye.value=`${d}${e.tailwindConfig.separator}${ye.value}`})}).processSync(U);C.push(U.replace(ne,"&").replace(h,"&"))}),b.walkAtRules(Y=>{C.push(`@${Y.name} (${Y.params}) { & }`)}));let S=!(w in(f.values??{})),D=f[eu]??{},O=!(S||D.respectPrefix===!1);y=y.map(Y=>Y.map(U=>({format:U,respectPrefix:O}))),C=C.map(Y=>({format:Y,respectPrefix:O}));let F={candidate:h,context:e},Z=y.map(Y=>Uh(`.${h}`,Bo(Y,F),F).replace(`.${h}`,"&").replace("{ & }","").trim());return C.length>0&&Z.push(Bo(C,F).toString().replace(`.${h}`,"&")),Z}});return p}}function Yh(t,e){t.classCache.has(e)&&(t.notClassCache.add(e),t.classCache.delete(e),t.applyClassCache.delete(e),t.candidateRuleMap.delete(e),t.candidateRuleCache.delete(e),t.stylesheetCache=null)}function Kk(t,e){let r=e.raws.tailwind.candidate;if(r){for(let n of t.ruleCache)n[1].raws.tailwind.candidate===r&&t.ruleCache.delete(n);Yh(t,r)}}function Jk(t,e=[],r=be.root()){let n={disposables:[],ruleCache:new Set,candidateRuleCache:new Map,classCache:new Map,applyClassCache:new Map,notClassCache:new Set(t.blocklist??[]),postCssNodeCache:new Map,candidateRuleMap:new Map,tailwindConfig:t,changedContent:e,variantMap:new Map,stylesheetCache:null,variantOptions:new Map,markInvalidUtilityCandidate:o=>Yh(n,o),markInvalidUtilityNode:o=>Kk(n,o)},i=Yk(n,r);return Qk(i,n),n}function Qh(t,e){let r=(0,Nl.default)().astSync(t);return r.each(n=>{n.nodes[0].type==="pseudo"&&n.nodes[0].value===":is"&&n.nodes.every(o=>o.type!=="combinator")||(n.nodes=[Nl.default.pseudo({value:":is",nodes:[n.clone()]})]),Jl(n)}),`${e} ${r.toString()}`}var Xk=(0,Wo.default)(t=>t.first.filter(({type:e})=>e==="class").pop().value);function Kh(t){return Xk.transformSync(t)}function*Zk(t){let e=1/0;for(;e>=0;){let r,n=!1;if(e===1/0&&t.endsWith("]")){let s=t.indexOf("[");t[s-1]==="-"?r=s-1:t[s-1]==="/"?(r=s-1,n=!0):r=-1}else e===1/0&&t.includes("/")?(r=t.lastIndexOf("/"),n=!0):r=t.lastIndexOf("-",e);if(r<0)break;let i=t.slice(0,r),o=t.slice(n?r:r+1);e=r-1,!(i===""||o==="/")&&(yield[i,o])}}function eS(t,e){if(t.length===0||e.tailwindConfig.prefix==="")return t;for(let r of t){let[n]=r;if(n.options.respectPrefix){let i=be.root({nodes:[r[1].clone()]}),o=r[1].raws.tailwind.classCandidate;i.walkRules(s=>{let l=o.startsWith("-");s.selector=Wl(e.tailwindConfig.prefix,s.selector,l)}),r[1]=i.nodes[0]}}return t}function tS(t,e){if(t.length===0)return t;let r=[];function n(i){return i.parent&&i.parent.type==="atrule"&&i.parent.name==="keyframes"}for(let[i,o]of t){let s=be.root({nodes:[o.clone()]});s.walkRules(l=>{if(n(l))return;let a=(0,Wo.default)().astSync(l.selector);a.each(u=>qh(u,e)),mk(a,u=>u===e?`!${u}`:u),l.selector=a.toString(),l.walkDecls(u=>u.important=!0)}),r.push([{...i,important:!0},s.nodes[0]])}return r}function rS(t,e,r){if(e.length===0)return e;let n={modifier:null,value:Tl};{let[i,...o]=Tt(t,"/");if(o.length>1&&(i=i+"/"+o.slice(0,-1).join("/"),o=o.slice(-1)),o.length&&!r.variantMap.has(t)&&(t=i,n.modifier=o[0],!_t(r.tailwindConfig,"generalizedModifiers")))return[]}if(t.endsWith("]")&&!t.startsWith("[")){let i=/(.)(-?)\[(.*)\]/g.exec(t);if(i){let[,o,s,l]=i;if(o==="@"&&s==="-")return[];if(o!=="@"&&s==="")return[];t=t.replace(`${s}[${l}]`,""),n.value=l}}if(jl(t)&&!r.variantMap.has(t)){let i=r.offsets.recordVariant(t),o=Se(t.slice(1,-1)),s=Tt(o,",");if(s.length>1)return[];if(!s.every(Ll))return[];let l=s.map((a,u)=>[r.offsets.applyParallelOffset(i,u),Lo(a.trim())]);r.variantMap.set(t,l)}if(r.variantMap.has(t)){let i=jl(t),o=r.variantOptions.get(t)?.[eu]??{},s=r.variantMap.get(t).slice(),l=[],a=!(i||o.respectPrefix===!1);for(let[u,c]of e){if(u.layer==="user")continue;let p=be.root({nodes:[c.clone()]});for(let[d,f,g]of s){let w=function(){m.raws.neededBackup||(m.raws.neededBackup=!0,m.walkRules(y=>y.raws.originalSelector=y.selector))},h=function(y){return w(),m.each(C=>{C.type==="rule"&&(C.selectors=C.selectors.map(E=>y({get className(){return Kh(E)},selector:E})))}),m},m=(g??p).clone(),b=[],v=f({get container(){return w(),m},separator:r.tailwindConfig.separator,modifySelectors:h,wrap(y){let C=m.nodes;m.removeAll(),y.append(C),m.append(y)},format(y){b.push({format:y,respectPrefix:a})},args:n});if(Array.isArray(v)){for(let[y,C]of v.entries())s.push([r.offsets.applyParallelOffset(d,y),C,m.clone()]);continue}if(typeof v=="string"&&b.push({format:v,respectPrefix:a}),v===null)continue;m.raws.neededBackup&&(delete m.raws.neededBackup,m.walkRules(y=>{let C=y.raws.originalSelector;if(!C||(delete y.raws.originalSelector,C===y.selector))return;let E=y.selector,S=(0,Wo.default)(D=>{D.walkClasses(O=>{O.value=`${t}${r.tailwindConfig.separator}${O.value}`})}).processSync(C);b.push({format:E.replace(S,"&"),respectPrefix:a}),y.selector=C})),m.nodes[0].raws.tailwind={...m.nodes[0].raws.tailwind,parentLayer:u.layer};let _=[{...u,sort:r.offsets.applyVariantOffset(u.sort,d,Object.assign(n,r.variantOptions.get(t))),collectedFormats:(u.collectedFormats??[]).concat(b)},m.nodes[0]];l.push(_)}}return l}return[]}function Rl(t,e,r={}){return!At(t)&&!Array.isArray(t)?[[t],r]:Array.isArray(t)?Rl(t[0],e,t[1]):(e.has(t)||e.set(t,zl(t)),[e.get(t),r])}var nS=/^[a-z_-]/;function iS(t){return nS.test(t)}function oS(t){if(!t.includes("://"))return!1;try{let e=new URL(t);return e.scheme!==""&&e.host!==""}catch{return!1}}function ch(t){let e=!0;return t.walkDecls(r=>{if(!Jh(r.prop,r.value))return e=!1,!1}),e}function Jh(t,e){if(oS(`${t}:${e}`))return!1;try{return be.parse(`a{${t}:${e}}`).toResult(),!0}catch{return!1}}function sS(t,e){let[,r,n]=t.match(/^\[([a-zA-Z0-9-_]+):(\S+)\]$/)??[];if(n===void 0||!iS(r)||!Ml(n))return null;let i=Se(n,{property:r});return Jh(r,i)?[[{sort:e.offsets.arbitraryProperty(),layer:"utilities"},()=>({[Bh(t)]:{[r]:i}})]]:null}function*aS(t,e){e.candidateRuleMap.has(t)&&(yield[e.candidateRuleMap.get(t),"DEFAULT"]),yield*function*(l){l!==null&&(yield[l,"DEFAULT"])}(sS(t,e));let r=t,n=!1,i=e.tailwindConfig.prefix,o=i.length,s=r.startsWith(i)||r.startsWith(`-${i}`);r[o]==="-"&&s&&(n=!0,r=i+r.slice(o+1)),n&&e.candidateRuleMap.has(r)&&(yield[e.candidateRuleMap.get(r),"-DEFAULT"]);for(let[l,a]of Zk(r))e.candidateRuleMap.has(l)&&(yield[e.candidateRuleMap.get(l),n?`-${a}`:a])}function lS(t,e){return t===Vr?[Vr]:Tt(t,e)}function*uS(t,e){for(let r of t)r[1].raws.tailwind={...r[1].raws.tailwind,classCandidate:e,preserveSource:r[0].options?.preserveSource??!1},yield r}function*Xh(t,e){let r=e.tailwindConfig.separator,[n,...i]=lS(t,r).reverse(),o=!1;n.startsWith("!")&&(o=!0,n=n.slice(1));for(let s of aS(n,e)){let l=[],a=new Map,[u,c]=s,p=u.length===1;for(let[d,f]of u){let g=[];if(typeof f=="function")for(let w of[].concat(f(c,{isOnlyPlugin:p}))){let[h,m]=Rl(w,e.postCssNodeCache);for(let b of h)g.push([{...d,options:{...d.options,...m}},b])}else if(c==="DEFAULT"||c==="-DEFAULT"){let w=f,[h,m]=Rl(w,e.postCssNodeCache);for(let b of h)g.push([{...d,options:{...d.options,...m}},b])}if(g.length>0){let w=Array.from(Fh(d.options?.types??[],c,d.options??{},e.tailwindConfig)).map(([h,m])=>m);w.length>0&&a.set(g,w),l.push(g)}}if(jl(c)){if(l.length>1){let d=function(h){return h.length===1?h[0]:h.find(m=>{let b=a.get(m);return m.some(([{options:v},_])=>ch(_)?v.types.some(({type:y,preferOnConflict:C})=>b.includes(y)&&C):!1)})},[f,g]=l.reduce((h,m)=>(m.some(([{options:v}])=>v.types.some(({type:_})=>_==="any"))?h[0].push(m):h[1].push(m),h),[[],[]]),w=d(g)??d(f);if(w)l=[w];else{let h=l.map(b=>new Set([...a.get(b)??[]]));for(let b of h)for(let v of b){let _=!1;for(let y of h)b!==y&&y.has(v)&&(y.delete(v),_=!0);_&&b.delete(v)}let m=[];for(let[b,v]of h.entries())for(let _ of v){let y=l[b].map(([,C])=>C).flat().map(C=>C.toString().split(` + `},gc=hc(Y0)(bc),Q0={config:H0},vc=Q0;var K0=function(){for(var e=arguments.length,r=new Array(e),n=0;n{Hi.config({paths:{vs:"/node_modules/monaco-editor/min/vs"}}),s=await Hi.init();let u=s.editor.create(l,{value:n,language:"elixir",minimap:{enabled:!1},lineNumbers:"off",automaticLayout:!0});u.onDidBlurEditorWidget(c=>{let p=u.getValue();i("change",p)})}),sn(()=>{s?.editor.getModels().forEach(u=>u.dispose())});function a(u){dt[u?"unshift":"push"](()=>{l=u,r(0,l)})}return t.$$set=u=>{"value"in u&&r(1,n=u.value)},t.$$.update=()=>{t.$$.dirty&2&&o&&o.setValue(n)},[l,n,a]}var Gi=class extends he{constructor(e){super(),xe(this,e,ub,lb,fe,{value:1})}get value(){return this.$$.ctx[1]}set value(e){this.$$set({value:e}),de()}};ke(Gi,{value:{}},[],[],!0);var cb=Gi;var Ds={};it(Ds,{default:()=>$s});function Ps(t,{delay:e=0,duration:r=300,x:n=0,y:i=0}){return{delay:e,duration:r,css:o=>`transform: translate(${n*o}px, ${i*o}px)`}}var vr=Ge(null);var At=Ge(null),Yi=()=>{At.update(()=>null)};function fb(t){Xt(t,"svelte-uvq63b","#left-sidebar.svelte-uvq63b{z-index:1000}#backdrop.svelte-uvq63b{z-index:999}")}function Sc(t,e,r){let n=t.slice();return n[18]=e[r],n}function Ec(t,e,r){let n=t.slice();return n[21]=e[r],n}function Oc(t,e,r){let n=t.slice();return n[24]=e[r],n}function Cc(t){let e,r,n=t[21].name+"",i;return{c(){e=I("li"),r=I("h3"),i=re(n),this.h()},l(o){e=$(o,"LI",{class:!0,"data-test-id":!0});var s=M(e);r=$(s,"H3",{class:!0});var l=M(r);i=ie(l,n),l.forEach(x),s.forEach(x),this.h()},h(){k(r,"class","text-xs font-bold uppercase"),k(e,"class","mb-1 px-4"),k(e,"data-test-id","nav-item")},m(o,s){T(o,e,s),A(e,r),A(r,i)},p(o,s){s&2&&n!==(n=o[21].name+"")&&He(i,n)},d(o){o&&x(e)}}}function Ac(t){let e,r,n=t[4][t[24].name]+"",i,o,s,l;function a(){return t[13](t[24])}return{c(){e=I("li"),r=I("div"),i=re(n),o=J(),this.h()},l(u){e=$(u,"LI",{class:!0,"data-test-id":!0});var c=M(e);r=$(c,"DIV",{});var p=M(r);i=ie(p,n),p.forEach(x),o=X(c),c.forEach(x),this.h()},h(){k(e,"class","p-2 pl-6 hover:bg-slate-50 hover:cursor-pointer"),k(e,"data-test-id","nav-item")},m(u,c){T(u,e,c),A(e,r),A(r,i),A(e,o),s||(l=[K(e,"mouseenter",a),K(e,"mouseleave",t[5])],s=!0)},p(u,c){t=u,c&2&&n!==(n=t[4][t[24].name]+"")&&He(i,n)},d(u){u&&x(e),s=!1,ce(l)}}}function Tc(t){let e,r,n=t[1].length>1&&Cc(t),i=ge(t[21].items),o=[];for(let s=0;s1?n?n.p(s,l):(n=Cc(s),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null),l&178){i=ge(s[21].items);let a;for(a=0;a{n&&(r||(r=tr(e,Pr,{duration:300},!0)),r.run(1))}),n=!0)},o(i){i&&(r||(r=tr(e,Pr,{duration:300},!1)),r.run(0)),n=!1},d(i){i&&x(e),i&&r&&r.end()}}}function db(t){let e,r,n,i='

Components

',o,s,l,a,u,c=t[4][t[0]?.name]+"",p,d,f,g="Drag and drop an element into the page",w,h,m,b,v,_,y,C=ge(t[1]),E=[];for(let O=0;O{D=null}),le())},i(O){v||(O&&Ct(()=>{v&&(h||(h=tr(a,Ps,{x:384},!0)),h.run(1))}),P(D),v=!0)},o(O){O&&(h||(h=tr(a,Ps,{x:384},!1)),h.run(0)),L(D),v=!1},d(O){O&&(x(e),x(m),x(b)),ut(E,O),S&&S.d(),O&&h&&h.end(),D&&D.d(O),_=!1,ce(y)}}}function pb(t,e,r){let n,i,o,s,l;ee(t,At,y=>r(17,s=y)),ee(t,vr,y=>r(0,l=y));let{components:a}=e,u=[],c={basic:"Basics",html_tag:"HTML Tags",data:"Data",element:"Elements",media:"Media",section:"Section"},p=!1,d,f;function g(){clearTimeout(f),d=setTimeout(()=>{r(2,p=!1)},400)}function w(){clearTimeout(d)}function h(y){s||(clearTimeout(d),p?f=setTimeout(()=>{we(vr,l=y,l),r(2,p=!0)},100):(we(vr,l=y,l),r(2,p=!0)))}function m(y,C){setTimeout(()=>{we(At,s=y,s),r(2,p=!1)},100)}function b(){Yi()}let v=y=>h(y),_=(y,C)=>m(y,C);return t.$$set=y=>{"components"in y&&r(10,a=y.components)},t.$$.update=()=>{t.$$.dirty&1024&&r(12,n=a),t.$$.dirty&4096&&r(1,u=[{name:"Base",items:Array.from(new Set(n.map(y=>y.category))).map(y=>({id:y,name:y}))}]),t.$$.dirty&4096&&r(11,i=(n||[]).reduce((y,C)=>{var E;return y[E=C.category]||(y[E]=[]),y[C.category].push(C),y},{})),t.$$.dirty&2049&&r(3,o=l?i[l.id]:[])},[l,u,p,o,c,g,w,h,m,b,a,i,n,v,_]}var Qi=class extends he{constructor(e){super(),xe(this,e,pb,db,fe,{components:10},fb)}get components(){return this.$$.ctx[10]}set components(e){this.$$set({components:e}),de()}};ke(Qi,{components:{}},[],[],!0);var $s=Qi;var Rs={};it(Rs,{default:()=>Ns});var We=Ge(),Je=Ge(),Ht=Ge(),nr=Ge(),hb=br([We],([t])=>{if(t)return{tag:"root",attrs:{},content:t.ast}}),Dr=br([We,Je],([t,e])=>{if(t&&e)return Mr(t.ast,e)});function Dc(t){if(t==="root")return null;let e=t.split(".");return e.length===1?"root":(e.pop(),e.join("."))}var Mc=br([Je],([t])=>Dc(t)),mb=br([Mc],([t])=>Dc(t)),Fc=br([We,Mc],([t,e])=>Mr(t.ast,e)),Lc=br([We,mb],([t,e])=>Mr(t.ast,e)),pn=Ge(null);function Ki(t){Je.update(()=>t)}function Ms(t){pn.update(()=>t)}function hn(){Je.update(()=>null),pn.update(()=>null)}function ze(t){return typeof t!="string"}function Mr(t,e){if(e==="root")return Ut(hb);if(!e)return null;let r=e.split(".").map(i=>parseInt(i,10)),n=t[r[0]];t=n.content;for(let i=1;i{s[c]=null}),le(),r=s[e],r?r.p(a,u):(r=s[e]=o[e](a),r.c()),P(r,1),r.m(n.parentNode,n))},i(a){i||(P(r),i=!0)},o(a){L(r),i=!1},d(a){a&&x(n),s[e].d(a)}}}function vb(t){let e=t[0].tag,r,n,i=t[0].tag&&Fs(t);return{c(){i&&i.c(),r=G()},l(o){i&&i.l(o),r=G()},m(o,s){i&&i.m(o,s),T(o,r,s)},p(o,s){o[0].tag?e?fe(e,o[0].tag)?(i.d(1),i=Fs(o),e=o[0].tag,i.c(),i.m(r.parentNode,r)):i.p(o,s):(i=Fs(o),e=o[0].tag,i.c(),i.m(r.parentNode,r)):e&&(i.d(1),i=null,e=o[0].tag)},i:Q,o(o){L(i,o),n=!1},d(o){o&&x(r),i&&i.d(o)}}}function yb(t){let e=t[0].tag,r,n=t[0].tag&&Ls(t);return{c(){n&&n.c(),r=G()},l(i){n&&n.l(i),r=G()},m(i,o){n&&n.m(i,o),T(i,r,o)},p(i,o){i[0].tag?e?fe(e,i[0].tag)?(n.d(1),n=Ls(i),e=i[0].tag,n.c(),n.m(r.parentNode,r)):n.p(i,o):(n=Ls(i),e=i[0].tag,n.c(),n.m(r.parentNode,r)):e&&(n.d(1),n=null,e=i[0].tag)},i:Q,o:Q,d(i){i&&x(r),n&&n.d(i)}}}function _b(t){let e,r=t[0].rendered_html+"",n;return{c(){e=new ft(!1),n=G(),this.h()},l(i){e=Bt(i,!1),n=G(),this.h()},h(){e.a=n},m(i,o){e.m(r,i,o),T(i,n,o)},p(i,o){o&1&&r!==(r=i[0].rendered_html+"")&&e.p(r)},i:Q,o:Q,d(i){i&&(x(n),e.d())}}}function wb(t){let e,r=t[2].default,n=ot(r,t,t[1],null);return{c(){n&&n.c()},l(i){n&&n.l(i)},m(i,o){n&&n.m(i,o),e=!0},p(i,o){n&&n.p&&(!e||o&2)&&at(n,r,i,i[1],e?st(r,i[1],o,null):lt(i[1]),null)},i(i){e||(P(n,i),e=!0)},o(i){L(n,i),e=!1},d(i){n&&n.d(i)}}}function xb(t){let e,r="",n;return{c(){e=new ft(!1),n=G(),this.h()},l(i){e=Bt(i,!1),n=G(),this.h()},h(){e.a=n},m(i,o){e.m(r,i,o),T(i,n,o)},p(i,o){o&1&&r!==(r="")&&e.p(r)},i:Q,o:Q,d(i){i&&(x(n),e.d())}}}function kb(t){let e,r="",n;return{c(){e=new ft(!1),n=G(),this.h()},l(i){e=Bt(i,!1),n=G(),this.h()},h(){e.a=n},m(i,o){e.m(r,i,o),T(i,n,o)},p(i,o){o&1&&r!==(r="")&&e.p(r)},i:Q,o:Q,d(i){i&&(x(n),e.d())}}}function Uc(t){let e,r,n=ge(t[0].content),i=[];for(let s=0;sL(i[s],1,1,()=>{i[s]=null});return{c(){for(let s=0;s{n=null}),le()),Zt(s[0].tag)(e,o=un(i,[l&1&&s[0].attrs]))},i(s){r||(P(n),r=!0)},o(s){L(n),r=!1},d(s){s&&x(e),n&&n.d()}}}function Ls(t){let e,r=[t[0].attrs],n={};for(let i=0;i{l[p]=null}),le(),n=l[r],n?n.p(u,c):(n=l[r]=s[r](u),n.c()),P(n,1),n.m(i.parentNode,i))},i(u){o||(P(n),o=!0)},o(u){L(n),o=!1},d(u){u&&x(i),l[r].d(u)}}}function Eb(t,e,r){let{$$slots:n={},$$scope:i}=e,{node:o}=e;return t.$$set=s=>{"node"in s&&r(0,o=s.node),"$$scope"in s&&r(1,i=s.$$scope)},[o,i,n]}var mn=class extends he{constructor(e){super(),xe(this,e,Eb,Sb,fe,{node:0})}get node(){return this.$$.ctx[0]}set node(e){this.$$set({node:e}),de()}};ke(mn,{node:{}},["default"],[],!0);var Ns=mn;var Bs={};it(Bs,{default:()=>Us});var vt=Ge();function Ji(t=null){if(t){let e=t.split(".");return e.length===1?"root":e.slice(0,-1).join(".")}}function Xi(t,e){t&&ze(t)&&(t.content=[e],Zi())}function Zi(){let t=Ut(We);Ut(vt).pushEvent("update_page_ast",{id:t.id,ast:t.ast})}function eo(t){let e=Ut(We),r=Ut(vt),n=Mr(e.ast,t),i=Ji(t),o=i&&i!=="root"?Mr(e.ast,i)?.content:e.ast;if(o){let s=o.indexOf(n);o.splice(s,1),Zi()}}function ir(t){return!0}function to(t,e){return e==="x"?t.x+t.width/2:t.y+t.height/2}function Ob(t){let e=!1,r=!1,n=5;for(let i=1;in&&an&&(r=!0)}return e&&r?"both":e?"horizontal":"vertical"}function js(t){let e=t?.parentElement;if(!e)return"vertical";let n=Array.from(e.children).map(i=>i.getBoundingClientRect());return Ob(n)}function Fr(t){if(window.getComputedStyle(t).display==="contents"){if(t.children.length===1)return t.children[0].getBoundingClientRect();let e=Array.from(t.children).map(s=>s.getBoundingClientRect()),r=Math.min(...e.map(s=>s.top)),n=Math.max(...e.map(s=>s.bottom)),i=Math.min(...e.map(s=>s.left)),o=Math.max(...e.map(s=>s.right));return{x:Math.min(...e.map(s=>s.x)),y:Math.min(...e.map(s=>s.y)),top:r,right:o,bottom:n,left:i,width:o-i,height:n-r}}return t.getBoundingClientRect()}function Vc(t,e,r){let n=Tb(e[r],t),i=r,o=0;for(let s=0;so){o=a,i=s;continue}if(a===o){let u=e[i];zc(l,u) iframe{pointer-events:none}")}function Hc(t,e,r){let n=t.slice();return n[27]=e[r],n[29]=r,n}function Pb(t){let e;return{c(){e=re(t[0])},l(r){e=ie(r,t[0])},m(r,n){T(r,e,n)},p(r,n){n&1&&He(e,r[0])},i:Q,o:Q,d(r){r&&x(e)}}}function $b(t){let e,r,n,i,o=[Nb,Lb,Fb,Mb,Db],s=[];function l(a,u){return a[0].tag==="html_comment"?0:a[0].tag==="eex_comment"?1:a[0].tag==="eex"&&a[0].content[0]==="@inner_content"?2:a[0].rendered_html?3:4}return e=l(t,-1),r=s[e]=o[e](t),{c(){r.c(),n=G()},l(a){r.l(a),n=G()},m(a,u){s[e].m(a,u),T(a,n,u),i=!0},p(a,u){let c=e;e=l(a,u),e===c?s[e].p(a,u):(ae(),L(s[c],1,1,()=>{s[c]=null}),le(),r=s[e],r?r.p(a,u):(r=s[e]=o[e](a),r.c()),P(r,1),r.m(n.parentNode,n))},i(a){i||(P(r),i=!0)},o(a){L(r),i=!1},d(a){a&&x(n),s[e].d(a)}}}function Db(t){let e=t[0].tag,r,n,i=t[0].tag&&qs(t);return{c(){i&&i.c(),r=G()},l(o){i&&i.l(o),r=G()},m(o,s){i&&i.m(o,s),T(o,r,s)},p(o,s){o[0].tag?e?fe(e,o[0].tag)?(i.d(1),i=qs(o),e=o[0].tag,i.c(),i.m(r.parentNode,r)):i.p(o,s):(i=qs(o),e=o[0].tag,i.c(),i.m(r.parentNode,r)):e&&(i.d(1),i=null,e=o[0].tag)},i:Q,o(o){L(i,o),n=!1},d(o){o&&x(r),i&&i.d(o)}}}function Mb(t){let e,r,n=t[0].rendered_html+"",i,o,s;return{c(){e=I("div"),r=new ft(!1),this.h()},l(l){e=$(l,"DIV",{"data-selected":!0});var a=M(e);r=Bt(a,!1),a.forEach(x),this.h()},h(){r.a=null,k(e,"data-selected",t[4]),je(e,"contents",t[7]),je(e,"embedded-iframe",t[6])},m(l,a){T(l,e,a),r.m(n,e),t[25](e),o||(s=[K(e,"mouseover",Ot(t[16])),K(e,"mouseout",Ot(t[17])),K(e,"click",Ot(Mt(t[18]))),Nu(i=Ub.call(null,e,{selected:t[4],highlighted:t[10]}))],o=!0)},p(l,a){a&1&&n!==(n=l[0].rendered_html+"")&&r.p(n),a&16&&k(e,"data-selected",l[4]),i&&Et(i.update)&&a&1040&&i.update.call(null,{selected:l[4],highlighted:l[10]}),a&128&&je(e,"contents",l[7]),a&64&&je(e,"embedded-iframe",l[6])},i:Q,o:Q,d(l){l&&x(e),t[25](null),o=!1,ce(s)}}}function Fb(t){let e,r=t[24].default,n=ot(r,t,t[23],null);return{c(){n&&n.c()},l(i){n&&n.l(i)},m(i,o){n&&n.m(i,o),e=!0},p(i,o){n&&n.p&&(!e||o&8388608)&&at(n,r,i,i[23],e?st(r,i[23],o,null):lt(i[23]),null)},i(i){e||(P(n,i),e=!0)},o(i){L(n,i),e=!1},d(i){n&&n.d(i)}}}function Lb(t){let e,r="",n;return{c(){e=new ft(!1),n=G(),this.h()},l(i){e=Bt(i,!1),n=G(),this.h()},h(){e.a=n},m(i,o){e.m(r,i,o),T(i,n,o)},p(i,o){o&1&&r!==(r="")&&e.p(r)},i:Q,o:Q,d(i){i&&(x(n),e.d())}}}function Nb(t){let e,r="",n;return{c(){e=new ft(!1),n=G(),this.h()},l(i){e=Bt(i,!1),n=G(),this.h()},h(){e.a=n},m(i,o){e.m(r,i,o),T(i,n,o)},p(i,o){o&1&&r!==(r="")&&e.p(r)},i:Q,o:Q,d(i){i&&(x(n),e.d())}}}function Gc(t){let e,r,n,i=ge(t[5]),o=[];for(let c=0;cL(o[c],1,1,()=>{o[c]=null});function l(c,p){if(c[11]&&c[12])return jb;if(c[13])return Rb}let a=l(t,-1),u=a&&a(t);return{c(){for(let c=0;c{o=null}),le()):o?(o.p(a,u),u&1&&P(o,1)):(o=Gc(a),o.c(),P(o,1),o.m(e,null)),Zt(a[0].tag)(e,l=un(s,[{class:"relative"},u&1&&a[0].attrs,(!r||u&16)&&{"data-selected":a[4]},(!r||u&256)&&{"data-selected-parent":a[8]},(!r||u&1024)&&{"data-highlighted":a[10]},(!r||u&2048)&&{"data-slot-target":a[11]},(!r||u&512)&&{contenteditable:a[9]}])),je(e,"svelte-fu018p",!0)},i(a){r||(P(o),r=!0)},o(a){L(o),r=!1},d(a){a&&x(e),o&&o.d(),t[26](null),n=!1,ce(i)}}}function qb(t){let e,r,n,i,o,s=[$b,Pb],l=[];function a(u,c){return c&1&&(e=null),e==null&&(e=!!ze(u[0])),e?0:1}return r=a(t,-1),n=l[r]=s[r](t),{c(){n.c(),i=G()},l(u){n.l(u),i=G()},m(u,c){l[r].m(u,c),T(u,i,c),o=!0},p(u,[c]){let p=r;r=a(u,c),r===p?l[r].p(u,c):(ae(),L(l[p],1,1,()=>{l[p]=null}),le(),n=l[r],n?n.p(u,c):(n=l[r]=s[r](u),n.c()),P(n,1),n.m(i.parentNode,i))},i(u){o||(P(n),o=!0)},o(u){L(n),o=!1},d(u){u&&x(i),l[r].d(u)}}}function Ub(t,{selected:e,highlighted:r}){let n=t.children.length===1;if(n){let i=t.children[0];i.setAttribute("data-selected",String(e)),i.setAttribute("data-highlighted",String(r))}return{update({selected:i,highlighted:o}){if(t.children.length===1){let s=t.children[0];s.setAttribute("data-selected",String(i)),s.setAttribute("data-highlighted",String(o))}else t.children.length===0&&t.childNodes.length===1?(t.setAttribute("data-nochildren","true"),t.setAttribute("data-selected",String(i)),t.setAttribute("data-highlighted",String(o))):n&&Array.from(t.children).forEach(s=>{s.removeAttribute("data-selected"),s.removeAttribute("data-highlighted")})},destroy(){}}}function Bb(t,e,r){let n,i,o,s,l,a,u,c,p,d,f;ee(t,Ht,U=>r(20,c=U)),ee(t,Dr,U=>r(21,p=U)),ee(t,nr,U=>r(22,d=U)),ee(t,At,U=>r(12,f=U));let{$$slots:g={},$$scope:w}=e,{node:h}=e,{nodeId:m}=e,b,v,_,y;function C(){f&&ze(h)&&ir(f)&&we(nr,d=h,d)}function E(){ze(h)&&ir(f)&&d===h&&we(nr,d=void 0,d)}function S(){p||ze(h)&&we(Ht,c=h,c)}function D(){we(Ht,c=void 0,c)}function O({currentTarget:U}){Ki(m),Ms(U)}function F({target:U}){let ne=U.children;if(ze(h))if(ne.length===0)U.innerText!==h.content&&Xi(h,U.innerText);else{let pe=U.cloneNode(!0);Array.from(pe.children).forEach(R=>pe.removeChild(R));let _e=h.content.findIndex(R=>typeof R=="string"),Ve=pe.textContent.trim();h.content[_e]!==Ve&&(r(0,h.content[_e]=Ve,h),Zi())}}function Z(U){dt[U?"unshift":"push"](()=>{b=U,r(2,b)})}function Y(U){dt[U?"unshift":"push"](()=>{v=U,r(3,v)})}return t.$$set=U=>{"node"in U&&r(0,h=U.node),"nodeId"in U&&r(1,m=U.nodeId),"$$scope"in U&&r(23,w=U.$$scope)},t.$$.update=()=>{t.$$.dirty&4194305&&r(11,n=d===h),t.$$.dirty&2097153&&r(4,i=p===h),t.$$.dirty&1048577&&r(10,o=c===h),t.$$.dirty&17&&r(9,s=i&&ze(h)&&Array.isArray(h.content)&&h.content.filter(U=>typeof U=="string").length===1&&!h.attrs?.selfClose),t.$$.dirty&2097153&&r(8,l=ze(h)&&Array.isArray(h.content)?h.content.includes(p):!1),t.$$.dirty&1&&ze(h)&&r(5,y=h.content),t.$$.dirty&4&&r(7,a=!!b&&b.childElementCount>1),t.$$.dirty&4&&r(6,u=!!b&&b.getElementsByTagName("iframe").length>0),t.$$.dirty&28&&i&&Ms(v||b)},[h,m,b,v,i,y,u,a,l,s,o,n,f,_,C,E,S,D,O,F,c,p,d,w,g,Z,Y]}var gn=class extends he{constructor(e){super(),xe(this,e,Bb,qb,fe,{node:0,nodeId:1},Ib)}get node(){return this.$$.ctx[0]}set node(e){this.$$set({node:e}),de()}get nodeId(){return this.$$.ctx[1]}set nodeId(e){this.$$set({nodeId:e}),de()}};ke(gn,{node:{},nodeId:{}},["default"],[],!0);var Us=gn;var Ws={};it(Ws,{default:()=>zs});function zb(t){Xt(t,"svelte-r4h6jy",'.contents[data-nochildren="true"], .contents[data-nochildren="true"]{display:inline}[data-slot-target="true"]{outline-color:red;outline-width:2px;outline-style:dashed}')}function Qc(t){let e,r;return e=new Os({props:{page:t[1],$$slots:{default:[Wb]},$$scope:{ctx:t}}}),{c(){Te(e.$$.fragment)},l(n){Ie(e.$$.fragment,n)},m(n,i){Oe(e,n,i),r=!0},p(n,i){let o={};i&2&&(o.page=n[1]),i&2053&&(o.$$scope={dirty:i,ctx:n}),e.$set(o)},i(n){r||(P(e.$$.fragment,n),r=!0)},o(n){L(e.$$.fragment,n),r=!1},d(n){Ce(e,n)}}}function Wb(t){let e,r,n,i,o,s,l;return{c(){e=I("div"),r=I("div"),n=I("page-wrapper"),this.h()},l(a){e=$(a,"DIV",{role:!0,style:!0,id:!0,class:!0,"data-test-id":!0});var u=M(e);r=$(u,"DIV",{id:!0,class:!0,"data-selected":!0});var c=M(r);n=$(c,"PAGE-WRAPPER",{class:!0}),M(n).forEach(x),c.forEach(x),u.forEach(x),this.h()},h(){bs(n,"class","relative"),k(r,"id","page-wrapper"),k(r,"class","p-1 m-1"),k(r,"data-selected",i=t[2]==="root"),k(e,"role","document"),Qu(e,"--outlined-id","title-1"),k(e,"id","fake-browser-content"),k(e,"class",o="bg-white rounded-b-xl relative overflow-hidden flex-1 "+(t[0]&&"border-dashed border-blue-500 border-2")),k(e,"data-test-id","browser-content")},m(a,u){T(a,e,u),A(e,r),A(r,n),s||(l=[K(e,"drop",Mt(t[3])),K(e,"dragover",Mt(t[4]))],s=!0)},p(a,u){u&4&&i!==(i=a[2]==="root")&&k(r,"data-selected",i),u&1&&o!==(o="bg-white rounded-b-xl relative overflow-hidden flex-1 "+(a[0]&&"border-dashed border-blue-500 border-2"))&&k(e,"class",o)},d(a){a&&x(e),s=!1,ce(l)}}}function Vb(t){let e,r,n=t[1]&&Qc(t);return{c(){e=I("div"),n&&n.c(),this.h()},l(i){e=$(i,"DIV",{class:!0,"data-test-id":!0});var o=M(e);n&&n.l(o),o.forEach(x),this.h()},h(){k(e,"class","flex-1 px-8 pb-4 flex max-h-full"),k(e,"data-test-id","main")},m(i,o){T(i,e,o),n&&n.m(e,null),r=!0},p(i,[o]){i[1]?n?(n.p(i,o),o&2&&P(n,1)):(n=Qc(i),n.c(),P(n,1),n.m(e,null)):n&&(ae(),L(n,1,1,()=>{n=null}),le())},i(i){r||(P(n),r=!0)},o(i){L(n),r=!1},d(i){i&&x(e),n&&n.d()}}}function Hb(t,e,r){let n,i,o,s,l,a;ee(t,We,g=>r(1,n=g)),ee(t,vt,g=>r(5,i=g)),ee(t,nr,g=>r(6,o=g)),ee(t,At,g=>r(7,s=g)),ee(t,vr,g=>r(8,l=g)),ee(t,Je,g=>r(2,a=g));let u=!1;async function c(g){let{target:w}=g;if(we(vr,l=null,l),!s)return;let h=s;if(w.id!=="fake-browser-content"&&ir(h)){if(!(w instanceof HTMLElement)||!o||o.attrs.selfClose){f();return}p(o)}else i.pushEvent("render_component_in_page",{component_id:h.id,page_id:n.id},({ast:m})=>{i.pushEvent("update_page_ast",{id:n.id,ast:[...n.ast,...m]})});f()}async function p(g){if(!s)return;let w=s;we(At,s=null,s);let h=g;i.pushEvent("render_component_in_page",{component_id:w.id,page_id:n.id},({ast:m})=>{h?.content.push(...m),we(nr,o=void 0,o),i.pushEvent("update_page_ast",{id:n.id,ast:n.ast})})}function d(){r(0,u=!0)}function f(){Yi(),r(0,u=!1)}return[u,n,a,c,d]}var ro=class extends he{constructor(e){super(),xe(this,e,Hb,Vb,fe,{},zb)}};ke(ro,{},[],[],!0);var zs=ro;var ru={};it(ru,{default:()=>xE});var bn=Ge();var vn=Ge();var Pe=rt(Nn(),1),be=Pe.default,F5=Pe.default.stringify,L5=Pe.default.fromJSON,N5=Pe.default.plugin,R5=Pe.default.parse,j5=Pe.default.list,q5=Pe.default.document,U5=Pe.default.comment,B5=Pe.default.atRule,z5=Pe.default.rule,W5=Pe.default.decl,V5=Pe.default.root,H5=Pe.default.CssSyntaxError,G5=Pe.default.Declaration,Y5=Pe.default.Container,Q5=Pe.default.Processor,K5=Pe.default.Document,J5=Pe.default.Comment,X5=Pe.default.Warning,Z5=Pe.default.AtRule,e3=Pe.default.Result,t3=Pe.default.Input,r3=Pe.default.Rule,n3=Pe.default.Root,i3=Pe.default.Node;var Wo=rt(Nt(),1);var Eh=rt(Ip(),1);var Wr=rt(Hp(),1),Gp=Wr.default,S3=Wr.default.objectify,E3=Wr.default.parse,O3=Wr.default.async,C3=Wr.default.sync;var Oh=rt(Nt(),1),qt=rt(Nt(),1),Lh=rt(_o(),1),Nh=rt(Nt(),1);var zh=rt(_l(),1),Zl=rt(Nt(),1);var Nl=rt(Nt(),1);var Go=rt(Nt(),1),ci=rt(_l(),1),im=rt(Yp(),1);var Yo=rt(Nt(),1),kx=Object.create,wh=Object.defineProperty,Sx=Object.getOwnPropertyDescriptor,xh=Object.getOwnPropertyNames,Ex=Object.getPrototypeOf,Ox=Object.prototype.hasOwnProperty,Sr=(t,e)=>function(){return e||(0,t[xh(t)[0]])((e={exports:{}}).exports,e),e.exports},Cx=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of xh(e))!Ox.call(t,i)&&i!==r&&wh(t,i,{get:()=>e[i],enumerable:!(n=Sx(e,i))||n.enumerable});return t},Bl=(t,e,r)=>(r=t!=null?kx(Ex(t)):{},Cx(e||!t||!t.__esModule?wh(r,"default",{value:t,enumerable:!0}):r,t)),Ax=Sr({"node_modules/@alloc/quick-lru/index.js"(t,e){"use strict";var r=class{constructor(n={}){if(!(n.maxSize&&n.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if(typeof n.maxAge=="number"&&n.maxAge===0)throw new TypeError("`maxAge` must be a number greater than 0");this.maxSize=n.maxSize,this.maxAge=n.maxAge||1/0,this.onEviction=n.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_emitEvictions(n){if(typeof this.onEviction=="function")for(let[i,o]of n)this.onEviction(i,o.value)}_deleteIfExpired(n,i){return typeof i.expiry=="number"&&i.expiry<=Date.now()?(typeof this.onEviction=="function"&&this.onEviction(n,i.value),this.delete(n)):!1}_getOrDeleteIfExpired(n,i){if(this._deleteIfExpired(n,i)===!1)return i.value}_getItemValue(n,i){return i.expiry?this._getOrDeleteIfExpired(n,i):i.value}_peek(n,i){let o=i.get(n);return this._getItemValue(n,o)}_set(n,i){this.cache.set(n,i),this._size++,this._size>=this.maxSize&&(this._size=0,this._emitEvictions(this.oldCache),this.oldCache=this.cache,this.cache=new Map)}_moveToRecent(n,i){this.oldCache.delete(n),this._set(n,i)}*_entriesAscending(){for(let n of this.oldCache){let[i,o]=n;this.cache.has(i)||this._deleteIfExpired(i,o)===!1&&(yield n)}for(let n of this.cache){let[i,o]=n;this._deleteIfExpired(i,o)===!1&&(yield n)}}get(n){if(this.cache.has(n)){let i=this.cache.get(n);return this._getItemValue(n,i)}if(this.oldCache.has(n)){let i=this.oldCache.get(n);if(this._deleteIfExpired(n,i)===!1)return this._moveToRecent(n,i),i.value}}set(n,i,{maxAge:o=this.maxAge===1/0?void 0:Date.now()+this.maxAge}={}){this.cache.has(n)?this.cache.set(n,{value:i,maxAge:o}):this._set(n,{value:i,expiry:o})}has(n){return this.cache.has(n)?!this._deleteIfExpired(n,this.cache.get(n)):this.oldCache.has(n)?!this._deleteIfExpired(n,this.oldCache.get(n)):!1}peek(n){if(this.cache.has(n))return this._peek(n,this.cache);if(this.oldCache.has(n))return this._peek(n,this.oldCache)}delete(n){let i=this.cache.delete(n);return i&&this._size--,this.oldCache.delete(n)||i}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}resize(n){if(!(n&&n>0))throw new TypeError("`maxSize` must be a number greater than 0");let i=[...this._entriesAscending()],o=i.length-n;o<0?(this.cache=new Map(i),this.oldCache=new Map,this._size=i.length):(o>0&&this._emitEvictions(i.slice(0,o)),this.oldCache=new Map(i.slice(o)),this.cache=new Map,this._size=0),this.maxSize=n}*keys(){for(let[n]of this)yield n}*values(){for(let[,n]of this)yield n}*[Symbol.iterator](){for(let n of this.cache){let[i,o]=n;this._deleteIfExpired(i,o)===!1&&(yield[i,o.value])}for(let n of this.oldCache){let[i,o]=n;this.cache.has(i)||this._deleteIfExpired(i,o)===!1&&(yield[i,o.value])}}*entriesDescending(){let n=[...this.cache];for(let i=n.length-1;i>=0;--i){let o=n[i],[s,l]=o;this._deleteIfExpired(s,l)===!1&&(yield[s,l.value])}n=[...this.oldCache];for(let i=n.length-1;i>=0;--i){let o=n[i],[s,l]=o;this.cache.has(s)||this._deleteIfExpired(s,l)===!1&&(yield[s,l.value])}}*entriesAscending(){for(let[n,i]of this._entriesAscending())yield[n,i.value]}get size(){if(!this._size)return this.oldCache.size;let n=0;for(let i of this.oldCache.keys())this.cache.has(i)||n++;return Math.min(this._size+n,this.maxSize)}};e.exports=r}}),Tx=Sr({"node_modules/tailwindcss/src/value-parser/parse.js"(t,e){var r=40,n=41,i=39,o=34,s=92,l=47,a=44,u=58,c=42,p=117,d=85,f=43,g=/^[a-f0-9?-]+$/i;e.exports=function(w){for(var h=[],m=w,b,v,_,y,C,E,S,D,O=0,F=m.charCodeAt(O),Z=m.length,Y=[{nodes:h}],U=0,ne,pe="",_e="",Ve="";O=48&&c<=57)return!0;var p=a.charCodeAt(2);return c===i&&p>=48&&p<=57}return u===i?(c=a.charCodeAt(1),c>=48&&c<=57):u>=48&&u<=57}e.exports=function(a){var u=0,c=a.length,p,d,f;if(c===0||!l(a))return!1;for(p=a.charCodeAt(u),(p===n||p===r)&&u++;u57));)u+=1;if(p=a.charCodeAt(u),d=a.charCodeAt(u+1),p===i&&d>=48&&d<=57)for(u+=2;u57));)u+=1;if(p=a.charCodeAt(u),d=a.charCodeAt(u+1),f=a.charCodeAt(u+2),(p===o||p===s)&&(d>=48&&d<=57||(d===n||d===r)&&f>=48&&f<=57))for(u+=d===n||d===r?3:2;u57));)u+=1;return{number:a.slice(0,u),unit:a.slice(u)}}}}),Dx=Sr({"node_modules/tailwindcss/src/value-parser/index.js"(t,e){var r=Tx(),n=Ix(),i=Px();function o(s){return this instanceof o?(this.nodes=r(s),this):new o(s)}o.prototype.toString=function(){return Array.isArray(this.nodes)?i(this.nodes):""},o.prototype.walk=function(s,l){return n(this.nodes,s,l),this},o.unit=$x(),o.walk=n,o.stringify=i,e.exports=o}}),Mx=Sr({"node_modules/tailwindcss/stubs/config.full.js"(t,e){e.exports={content:[],presets:[],darkMode:"media",theme:{accentColor:({theme:r})=>({...r("colors"),auto:"auto"}),animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"bounce 1s infinite"},aria:{busy:'busy="true"',checked:'checked="true"',disabled:'disabled="true"',expanded:'expanded="true"',hidden:'hidden="true"',pressed:'pressed="true"',readonly:'readonly="true"',required:'required="true"',selected:'selected="true"'},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9"},backdropBlur:({theme:r})=>r("blur"),backdropBrightness:({theme:r})=>r("brightness"),backdropContrast:({theme:r})=>r("contrast"),backdropGrayscale:({theme:r})=>r("grayscale"),backdropHueRotate:({theme:r})=>r("hueRotate"),backdropInvert:({theme:r})=>r("invert"),backdropOpacity:({theme:r})=>r("opacity"),backdropSaturate:({theme:r})=>r("saturate"),backdropSepia:({theme:r})=>r("sepia"),backgroundColor:({theme:r})=>r("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:r})=>r("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},borderColor:({theme:r})=>({...r("colors"),DEFAULT:r("colors.gray.200","currentColor")}),borderOpacity:({theme:r})=>r("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderSpacing:({theme:r})=>({...r("spacing")}),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px"},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:r})=>r("colors"),brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2"},caretColor:({theme:r})=>r("colors"),colors:({colors:r})=>({inherit:r.inherit,current:r.current,transparent:r.transparent,black:r.black,white:r.white,slate:r.slate,gray:r.gray,zinc:r.zinc,neutral:r.neutral,stone:r.stone,red:r.red,orange:r.orange,amber:r.amber,yellow:r.yellow,lime:r.lime,green:r.green,emerald:r.emerald,teal:r.teal,cyan:r.cyan,sky:r.sky,blue:r.blue,indigo:r.indigo,violet:r.violet,purple:r.purple,fuchsia:r.fuchsia,pink:r.pink,rose:r.rose}),columns:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2"},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"alias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:r})=>r("borderColor"),divideOpacity:({theme:r})=>r("borderOpacity"),divideWidth:({theme:r})=>r("borderWidth"),dropShadow:{sm:"0 1px 1px rgb(0 0 0 / 0.05)",DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 #0000"},fill:({theme:r})=>({none:"none",...r("colors")}),flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:r})=>({auto:"auto",...r("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%"}),flexGrow:{0:"0",DEFAULT:"1"},flexShrink:{0:"0",DEFAULT:"1"},fontFamily:{sans:["ui-sans-serif","system-ui","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:({theme:r})=>r("spacing"),gradientColorStops:({theme:r})=>r("colors"),gradientColorStopPositions:{"0%":"0%","5%":"5%","10%":"10%","15%":"15%","20%":"20%","25%":"25%","30%":"30%","35%":"35%","40%":"40%","45%":"45%","50%":"50%","55%":"55%","60%":"60%","65%":"65%","70%":"70%","75%":"75%","80%":"80%","85%":"85%","90%":"90%","95%":"95%","100%":"100%"},grayscale:{0:"0",DEFAULT:"100%"},gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridColumn:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridColumnStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridRow:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridRowEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridRowStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridTemplateColumns:{none:"none",subgrid:"subgrid",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))"},gridTemplateRows:{none:"none",subgrid:"subgrid",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))"},height:({theme:r})=>({auto:"auto",...r("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content"}),hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},inset:({theme:r})=>({auto:"auto",...r("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),invert:{0:"0",DEFAULT:"100%"},keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},listStyleImage:{none:"none"},margin:({theme:r})=>({auto:"auto",...r("spacing")}),lineClamp:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6"},maxHeight:({theme:r})=>({...r("spacing"),none:"none",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content"}),maxWidth:({theme:r,breakpoints:n})=>({...r("spacing"),none:"none",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch",...n(r("screens"))}),minHeight:({theme:r})=>({...r("spacing"),full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content"}),minWidth:({theme:r})=>({...r("spacing"),full:"100%",min:"min-content",max:"max-content",fit:"fit-content"}),objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",15:"0.15",20:"0.2",25:"0.25",30:"0.3",35:"0.35",40:"0.4",45:"0.45",50:"0.5",55:"0.55",60:"0.6",65:"0.65",70:"0.7",75:"0.75",80:"0.8",85:"0.85",90:"0.9",95:"0.95",100:"1"},order:{first:"-9999",last:"9999",none:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},outlineColor:({theme:r})=>r("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},padding:({theme:r})=>r("spacing"),placeholderColor:({theme:r})=>r("colors"),placeholderOpacity:({theme:r})=>r("opacity"),ringColor:({theme:r})=>({DEFAULT:r("colors.blue.500","#3b82f6"),...r("colors")}),ringOffsetColor:({theme:r})=>r("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},ringOpacity:({theme:r})=>({DEFAULT:"0.5",...r("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg"},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2"},scale:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5"},screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},scrollMargin:({theme:r})=>({...r("spacing")}),scrollPadding:({theme:r})=>r("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg"},space:({theme:r})=>({...r("spacing")}),spacing:{px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},stroke:({theme:r})=>({none:"none",...r("colors")}),strokeWidth:{0:"0",1:"1",2:"2"},supports:{},data:{},textColor:({theme:r})=>r("colors"),textDecorationColor:({theme:r})=>r("colors"),textDecorationThickness:{auto:"auto","from-font":"from-font",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},textIndent:({theme:r})=>({...r("spacing")}),textOpacity:({theme:r})=>r("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},transformOrigin:{center:"center",top:"top","top-right":"top right",right:"right","bottom-right":"bottom right",bottom:"bottom","bottom-left":"bottom left",left:"left","top-left":"top left"},transitionDelay:{0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},translate:({theme:r})=>({...r("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),size:({theme:r})=>({auto:"auto",...r("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"}),width:({theme:r})=>({auto:"auto",...r("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",screen:"100vw",svw:"100svw",lvw:"100lvw",dvw:"100dvw",min:"min-content",max:"max-content",fit:"fit-content"}),willChange:{auto:"auto",scroll:"scroll-position",contents:"contents",transform:"transform"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50"}},plugins:[]}}});function wl(){}var Ye={info:wl,warn:wl,risk:wl};function Fx(t){let e=new Set,r=new Set,n=new Set;if(t.walkAtRules(i=>{i.name==="apply"&&n.add(i),i.name==="import"&&(i.params==='"tailwindcss/base"'||i.params==="'tailwindcss/base'"?(i.name="tailwind",i.params="base"):i.params==='"tailwindcss/components"'||i.params==="'tailwindcss/components'"?(i.name="tailwind",i.params="components"):i.params==='"tailwindcss/utilities"'||i.params==="'tailwindcss/utilities'"?(i.name="tailwind",i.params="utilities"):(i.params==='"tailwindcss/screens"'||i.params==="'tailwindcss/screens'"||i.params==='"tailwindcss/variants"'||i.params==="'tailwindcss/variants'")&&(i.name="tailwind",i.params="variants")),i.name==="tailwind"&&(i.params==="screens"&&(i.params="variants"),e.add(i.params)),["layer","responsive","variants"].includes(i.name)&&(["responsive","variants"].includes(i.name)&&Ye.warn(`${i.name}-at-rule-deprecated`,[`The \`@${i.name}\` directive has been deprecated in Tailwind CSS v3.0.`,"Use `@layer utilities` or `@layer components` instead.","https://tailwindcss.com/docs/upgrade-guide#replace-variants-with-layer"]),r.add(i))}),!e.has("base")||!e.has("components")||!e.has("utilities")){for(let i of r)if(i.name==="layer"&&["base","components","utilities"].includes(i.params)){if(!e.has(i.params))throw i.error(`\`@layer ${i.params}\` is used but no matching \`@tailwind ${i.params}\` directive is present.`)}else if(i.name==="responsive"){if(!e.has("utilities"))throw i.error("`@responsive` is used but `@tailwind utilities` is missing.")}else if(i.name==="variants"&&!e.has("utilities"))throw i.error("`@variants` is used but `@tailwind utilities` is missing.")}return{tailwindDirectives:e,applyDirectives:n}}var Lx=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:theme("borderColor.DEFAULT",currentColor)}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:theme("fontFamily.sans",ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:theme("fontFamily.sans[1].fontFeatureSettings",normal);font-variation-settings:theme("fontFamily.sans[1].fontVariationSettings",normal);-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:theme("fontFamily.mono",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:theme("fontFamily.mono[1].fontFeatureSettings",normal);font-variation-settings:theme("fontFamily.mono[1].fontVariationSettings",normal);font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:theme("colors.gray.400",#9ca3af)}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none} +`,kh={readFileSync:()=>Lx},Nx=Bl(Ax()),Sh="3.4.1",Qp={name:"tailwindcss",version:Sh,description:"A utility-first CSS framework for rapidly building custom user interfaces.",license:"MIT",main:"lib/index.js",types:"types/index.d.ts",repository:"https://github.com/tailwindlabs/tailwindcss.git",bugs:"https://github.com/tailwindlabs/tailwindcss/issues",homepage:"https://tailwindcss.com",bin:{tailwind:"lib/cli.js",tailwindcss:"lib/cli.js"},tailwindcss:{engine:"stable"},scripts:{prebuild:"npm run generate && rimraf lib",build:`swc src --out-dir lib --copy-files --config jsc.transform.optimizer.globals.vars.__OXIDE__='"false"'`,postbuild:"esbuild lib/cli-peer-dependencies.js --bundle --platform=node --outfile=peers/index.js --define:process.env.CSS_TRANSFORMER_WASM=false","rebuild-fixtures":"npm run build && node -r @swc/register scripts/rebuildFixtures.js",style:"eslint .",pretest:"npm run generate",test:"jest","test:integrations":"npm run test --prefix ./integrations","install:integrations":"node scripts/install-integrations.js","generate:plugin-list":"node -r @swc/register scripts/create-plugin-list.js","generate:types":"node -r @swc/register scripts/generate-types.js",generate:"npm run generate:plugin-list && npm run generate:types","release-channel":"node ./scripts/release-channel.js","release-notes":"node ./scripts/release-notes.js",prepublishOnly:"npm install --force && npm run build"},files:["src/*","cli/*","lib/*","peers/*","scripts/*.js","stubs/*","nesting/*","types/**/*","*.d.ts","*.css","*.js"],devDependencies:{"@swc/cli":"^0.1.62","@swc/core":"^1.3.55","@swc/jest":"^0.2.26","@swc/register":"^0.1.10",autoprefixer:"^10.4.14",browserslist:"^4.21.5",concurrently:"^8.0.1",cssnano:"^6.0.0",esbuild:"^0.17.18",eslint:"^8.39.0","eslint-config-prettier":"^8.8.0","eslint-plugin-prettier":"^4.2.1",jest:"^29.6.0","jest-diff":"^29.6.0",lightningcss:"1.18.0",prettier:"^2.8.8",rimraf:"^5.0.0","source-map-js":"^1.0.2",turbo:"^1.9.3"},dependencies:{"@alloc/quick-lru":"^5.2.0",arg:"^5.0.2",chokidar:"^3.5.3",didyoumean:"^1.2.2",dlv:"^1.1.3","fast-glob":"^3.3.0","glob-parent":"^6.0.2","is-glob":"^4.0.3",jiti:"^1.19.1",lilconfig:"^2.1.0",micromatch:"^4.0.5","normalize-path":"^3.0.0","object-hash":"^3.0.0",picocolors:"^1.0.0",postcss:"^8.4.23","postcss-import":"^15.1.0","postcss-js":"^4.0.1","postcss-load-config":"^4.0.1","postcss-nested":"^6.0.1","postcss-selector-parser":"^6.0.11",resolve:"^1.22.2",sucrase:"^3.32.0"},browserslist:["> 1%","not edge <= 18","not ie 11","not op_mini all"],jest:{testTimeout:3e4,setupFilesAfterEnv:["/jest/customMatchers.js"],testPathIgnorePatterns:["/node_modules/","/integrations/","/standalone-cli/","\\.test\\.skip\\.js$"],transformIgnorePatterns:["node_modules/(?!lightningcss)"],transform:{"\\.js$":"@swc/jest","\\.ts$":"@swc/jest"}},engines:{node:">=14.0.0"}},Rx=typeof process<"u"?{NODE_ENV:"development",DEBUG:qx(void 0),ENGINE:Qp.tailwindcss.engine}:{NODE_ENV:"production",DEBUG:!1,ENGINE:Qp.tailwindcss.engine},jx=new Map,Hr=new String("*"),Tl=Symbol("__NONE__");function qx(t){if(t===void 0)return!1;if(t==="true"||t==="1")return!0;if(t==="false"||t==="0")return!1;if(t==="*")return!0;let e=t.split(",").map(r=>r.split(":")[0]);return e.includes("-tailwindcss")?!1:!!e.includes("tailwindcss")}function zl(t){return Array.isArray(t)?t.flatMap(e=>be([(0,Eh.default)({bubble:["screen"]})]).process(e,{parser:Gp}).root.nodes):zl([t])}function $t(t){if(Object.prototype.toString.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);return e===null||Object.getPrototypeOf(e)===null}function Wl(t,e,r=!1){if(t==="")return e;let n=typeof e=="string"?(0,Oh.default)().astSync(e):e;return n.walkClasses(i=>{let o=i.value,s=r&&o.startsWith("-");i.value=s?`-${t}${o.slice(1)}`:`${t}${o}`}),typeof e=="string"?n.toString():n}function Vl(t){return t.replace(/\\,/g,"\\2c ")}var Kp={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Ux=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,Bx=/^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,lr=/(?:\d+|\d*\.\d+)%?/,jo=/(?:\s*,\s*|\s+)/,Ch=/\s*[,/]\s*/,ur=/var\(--(?:[^ )]*?)(?:,(?:[^ )]*?|var\(--[^ )]*?\)))?\)/,zx=new RegExp(`^(rgba?)\\(\\s*(${lr.source}|${ur.source})(?:${jo.source}(${lr.source}|${ur.source}))?(?:${jo.source}(${lr.source}|${ur.source}))?(?:${Ch.source}(${lr.source}|${ur.source}))?\\s*\\)$`),Wx=new RegExp(`^(hsla?)\\(\\s*((?:${lr.source})(?:deg|rad|grad|turn)?|${ur.source})(?:${jo.source}(${lr.source}|${ur.source}))?(?:${jo.source}(${lr.source}|${ur.source}))?(?:${Ch.source}(${lr.source}|${ur.source}))?\\s*\\)$`);function Hl(t,{loose:e=!1}={}){if(typeof t!="string")return null;if(t=t.trim(),t==="transparent")return{mode:"rgb",color:["0","0","0"],alpha:"0"};if(t in Kp)return{mode:"rgb",color:Kp[t].map(o=>o.toString())};let r=t.replace(Bx,(o,s,l,a,u)=>["#",s,s,l,l,a,a,u?u+u:""].join("")).match(Ux);if(r!==null)return{mode:"rgb",color:[parseInt(r[1],16),parseInt(r[2],16),parseInt(r[3],16)].map(o=>o.toString()),alpha:r[4]?(parseInt(r[4],16)/255).toString():void 0};let n=t.match(zx)??t.match(Wx);if(n===null)return null;let i=[n[2],n[3],n[4]].filter(Boolean).map(o=>o.toString());return i.length===2&&i[0].startsWith("var(")?{mode:n[1],color:[i[0]],alpha:i[1]}:!e&&i.length!==3||i.length<3&&!i.some(o=>/^var\(.*?\)$/.test(o))?null:{mode:n[1],color:i,alpha:n[5]?.toString?.()}}function Ah({mode:t,color:e,alpha:r}){let n=r!==void 0;return t==="rgba"||t==="hsla"?`${t}(${e.join(", ")}${n?`, ${r}`:""})`:`${t}(${e.join(" ")}${n?` / ${r}`:""})`}function Gr(t,e,r){if(typeof t=="function")return t({opacityValue:e});let n=Hl(t,{loose:!0});return n===null?r:Ah({...n,alpha:e})}function ht({color:t,property:e,variable:r}){let n=[].concat(e);if(typeof t=="function")return{[r]:"1",...Object.fromEntries(n.map(o=>[o,t({opacityVariable:r,opacityValue:`var(${r})`})]))};let i=Hl(t);return i===null?Object.fromEntries(n.map(o=>[o,t])):i.alpha!==void 0?Object.fromEntries(n.map(o=>[o,t])):{[r]:"1",...Object.fromEntries(n.map(o=>[o,Ah({...i,alpha:`var(${r})`})]))}}function Dt(t,e){let r=[],n=[],i=0,o=!1;for(let s=0;s{let n=r.trim(),i={raw:n},o=n.split(Hx),s=new Set;for(let l of o)Jp.lastIndex=0,!s.has("KEYWORD")&&Vx.has(l)?(i.keyword=l,s.add("KEYWORD")):Jp.test(l)?s.has("X")?s.has("Y")?s.has("BLUR")?s.has("SPREAD")||(i.spread=l,s.add("SPREAD")):(i.blur=l,s.add("BLUR")):(i.y=l,s.add("Y")):(i.x=l,s.add("X")):i.color?(i.unknown||(i.unknown=[]),i.unknown.push(l)):i.color=l;return i.valid=i.x!==void 0&&i.y!==void 0,i})}function Gx(t){return t.map(e=>e.valid?[e.keyword,e.x,e.y,e.blur,e.spread,e.color].filter(Boolean).join(" "):e.raw).join(", ")}var Yx=["min","max","clamp","calc"];function Gl(t){return Yx.some(e=>new RegExp(`^${e}\\(.*\\)`).test(t))}var Qx=new Set(["scroll-timeline-name","timeline-scope","view-timeline-name","font-palette","scroll-timeline","animation-timeline","view-timeline"]);function Ee(t,e=null,r=!0){let n=e&&Qx.has(e.property);return t.startsWith("--")&&!n?`var(${t})`:t.includes("url(")?t.split(/(url\(.*?\))/g).filter(Boolean).map(i=>/^url\(.*?\)$/.test(i)?i:Ee(i,e,!1)).join(""):(t=t.replace(/([^\\])_+/g,(i,o)=>o+" ".repeat(i.length-1)).replace(/^_/g," ").replace(/\\_/g,"_"),r&&(t=t.trim()),t=Kx(t),t)}function Kx(t){let e=["theme"],r=["min-content","max-content","fit-content","safe-area-inset-top","safe-area-inset-right","safe-area-inset-bottom","safe-area-inset-left","titlebar-area-x","titlebar-area-y","titlebar-area-width","titlebar-area-height","keyboard-inset-top","keyboard-inset-right","keyboard-inset-bottom","keyboard-inset-left","keyboard-inset-width","keyboard-inset-height","radial-gradient","linear-gradient","conic-gradient","repeating-radial-gradient","repeating-linear-gradient","repeating-conic-gradient"];return t.replace(/(calc|min|max|clamp)\(.+\)/g,n=>{let i="";function o(){let s=i.trimEnd();return s[s.length-1]}for(let s=0;sn[s+d]===p)},a=function(c){let p=1/0;for(let f of c){let g=n.indexOf(f,s);g!==-1&&gl(c))){let c=r.find(p=>l(p));i+=c,s+=c.length-1}else e.some(c=>l(c))?i+=a([")"]):l("[")?i+=a(["]"]):["+","-","*","/"].includes(u)&&!["(","+","-","*","/",","].includes(o())?i+=` ${u} `:i+=u}return i.replace(/\s+/g," ")})}function Ih(t){return t.startsWith("url(")}function Ph(t){return!isNaN(Number(t))||Gl(t)}function Yl(t){return t.endsWith("%")&&Ph(t.slice(0,-1))||Gl(t)}var Jx=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","rlh","vw","vh","vmin","vmax","vb","vi","svw","svh","lvw","lvh","dvw","dvh","cqw","cqh","cqi","cqb","cqmin","cqmax"],Xx=`(?:${Jx.join("|")})`;function Ql(t){return t==="0"||new RegExp(`^[+-]?[0-9]*.?[0-9]+(?:[eE][+-]?[0-9]+)?${Xx}$`).test(t)||Gl(t)}var Zx=new Set(["thin","medium","thick"]);function ek(t){return Zx.has(t)}function tk(t){let e=Th(Ee(t));for(let r of e)if(!r.valid)return!1;return!0}function rk(t){let e=0;return Dt(t,"_").every(n=>(n=Ee(n),n.startsWith("var(")?!0:Hl(n,{loose:!0})!==null?(e++,!0):!1))?e>0:!1}function nk(t){let e=0;return Dt(t,",").every(n=>(n=Ee(n),n.startsWith("var(")?!0:Ih(n)||ok(n)||["element(","image(","cross-fade(","image-set("].some(i=>n.startsWith(i))?(e++,!0):!1))?e>0:!1}var ik=new Set(["conic-gradient","linear-gradient","radial-gradient","repeating-conic-gradient","repeating-linear-gradient","repeating-radial-gradient"]);function ok(t){t=Ee(t);for(let e of ik)if(t.startsWith(`${e}(`))return!0;return!1}var sk=new Set(["center","top","right","bottom","left"]);function ak(t){let e=0;return Dt(t,"_").every(n=>(n=Ee(n),n.startsWith("var(")?!0:sk.has(n)||Ql(n)||Yl(n)?(e++,!0):!1))?e>0:!1}function lk(t){let e=0;return Dt(t,",").every(n=>(n=Ee(n),n.startsWith("var(")?!0:n.includes(" ")&&!/(['"])([^"']+)\1/g.test(n)||/^\d/g.test(n)?!1:(e++,!0)))?e>0:!1}var uk=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"]);function ck(t){return uk.has(t)}var fk=new Set(["xx-small","x-small","small","medium","large","x-large","x-large","xxx-large"]);function dk(t){return fk.has(t)}var pk=new Set(["larger","smaller"]);function hk(t){return pk.has(t)}function qo(t){if(t=`${t}`,t==="0")return"0";if(/^[+-]?(\d+|\d*\.\d+)(e[+-]?\d+)?(%|\w+)?$/.test(t))return t.replace(/^[+-]?/,r=>r==="-"?"":"-");let e=["var","calc","min","max","clamp"];for(let r of e)if(t.includes(`${r}(`))return`calc(${t} * -1)`}function mk(t){let e=["cover","contain"];return Dt(t,",").every(r=>{let n=Dt(r,"_").filter(Boolean);return n.length===1&&e.includes(n[0])?!0:n.length!==1&&n.length!==2?!1:n.every(i=>Ql(i)||Yl(i)||i==="auto")})}var Xp={optimizeUniversalDefaults:!1,generalizedModifiers:!0,get disableColorOpacityUtilitiesByDefault(){return!1},get relativeContentPathsByDefault(){return!1}},Zp={future:["hoverOnlyWhenSupported","respectDefaultRingColorOpacity","disableColorOpacityUtilitiesByDefault","relativeContentPathsByDefault"],experimental:["optimizeUniversalDefaults","generalizedModifiers"]};function kt(t,e){return Zp.future.includes(e)?t.future==="all"||(t?.future?.[e]??Xp[e]??!1):Zp.experimental.includes(e)?t.experimental==="all"||(t?.experimental?.[e]??Xp[e]??!1):!1}function gk(t,e){t.walkClasses(r=>{r.value=e(r.value),r.raws&&r.raws.value&&(r.raws.value=Vl(r.raws.value))})}function $h(t,e){if(!cr(t))return;let r=t.slice(1,-1);if(e(r))return Ee(r)}function bk(t,e={},r){let n=e[t];if(n!==void 0)return qo(n);if(cr(t)){let i=$h(t,r);return i===void 0?void 0:qo(i)}}function Vo(t,e={},{validate:r=()=>!0}={}){let n=e.values?.[t];return n!==void 0?n:e.supportsNegativeValues&&t.startsWith("-")?bk(t.slice(1),e.values,r):$h(t,r)}function cr(t){return t.startsWith("[")&&t.endsWith("]")}function Dh(t){let e=t.lastIndexOf("/"),r=t.lastIndexOf("[",e),n=t.indexOf("]",e);return t[e-1]==="]"||t[e+1]==="["||r!==-1&&n!==-1&&r")){let e=t;return({opacityValue:r=1})=>e.replace("",r)}return t}function Mh(t){return Ee(t.slice(1,-1))}function vk(t,e={},{tailwindConfig:r={}}={}){if(e.values?.[t]!==void 0)return Uo(e.values?.[t]);let[n,i]=Dh(t);if(i!==void 0){let o=e.values?.[n]??(cr(n)?n.slice(1,-1):void 0);return o===void 0?void 0:(o=Uo(o),cr(i)?Gr(o,Mh(i)):r.theme?.opacity?.[i]===void 0?void 0:Gr(o,r.theme.opacity[i]))}return Vo(t,e,{validate:rk})}function yk(t,e={}){return e.values?.[t]}function bt(t){return(e,r)=>Vo(e,r,{validate:t})}var Kl={any:Vo,color:vk,url:bt(Ih),image:bt(nk),length:bt(Ql),percentage:bt(Yl),position:bt(ak),lookup:yk,"generic-name":bt(ck),"family-name":bt(lk),number:bt(Ph),"line-width":bt(ek),"absolute-size":bt(dk),"relative-size":bt(hk),shadow:bt(tk),size:bt(mk)},eh=Object.keys(Kl);function _k(t,e){let r=t.indexOf(e);return r===-1?[void 0,t]:[t.slice(0,r),t.slice(r+1)]}function th(t,e,r,n){if(r.values&&e in r.values)for(let{type:o}of t??[]){let s=Kl[o](e,r,{tailwindConfig:n});if(s!==void 0)return[s,o,null]}if(cr(e)){let o=e.slice(1,-1),[s,l]=_k(o,":");if(!/^[\w-_]+$/g.test(s))l=o;else if(s!==void 0&&!eh.includes(s))return[];if(l.length>0&&eh.includes(s))return[Vo(`[${l}]`,r),s,null]}let i=Fh(t,e,r,n);for(let o of i)return o;return[]}function*Fh(t,e,r,n){let i=kt(n,"generalizedModifiers"),[o,s]=Dh(e);if(i&&r.modifiers!=null&&(r.modifiers==="any"||typeof r.modifiers=="object"&&(s&&cr(s)||s in r.modifiers))||(o=e,s=void 0),s!==void 0&&o===""&&(o="DEFAULT"),s!==void 0&&typeof r.modifiers=="object"){let a=r.modifiers?.[s]??null;a!==null?s=a:cr(s)&&(s=Mh(s))}for(let{type:a}of t??[]){let u=Kl[a](o,r,{tailwindConfig:n});u!==void 0&&(yield[u,a,s??null])}}function fr(t){let e=Nh.default.className();return e.value=t,Vl(e?.raws?.value??e.value)}var Il={"::after":["terminal","jumpable"],"::backdrop":["terminal","jumpable"],"::before":["terminal","jumpable"],"::cue":["terminal"],"::cue-region":["terminal"],"::first-letter":["terminal","jumpable"],"::first-line":["terminal","jumpable"],"::grammar-error":["terminal"],"::marker":["terminal","jumpable"],"::part":["terminal","actionable"],"::placeholder":["terminal","jumpable"],"::selection":["terminal","jumpable"],"::slotted":["terminal"],"::spelling-error":["terminal"],"::target-text":["terminal"],"::file-selector-button":["terminal","actionable"],"::deep":["actionable"],"::v-deep":["actionable"],"::ng-deep":["actionable"],":after":["terminal","jumpable"],":before":["terminal","jumpable"],":first-letter":["terminal","jumpable"],":first-line":["terminal","jumpable"],":where":[],":is":[],":has":[],__default__:["terminal","actionable"]};function Jl(t){let[e]=Rh(t);return e.forEach(([r,n])=>r.removeChild(n)),t.nodes.push(...e.map(([,r])=>r)),t}function Rh(t){let e=[],r=null;for(let n of t.nodes)if(n.type==="combinator")e=e.filter(([,i])=>Xl(i).includes("jumpable")),r=null;else if(n.type==="pseudo"){wk(n)?(r=n,e.push([t,n,null])):r&&xk(n,r)?e.push([t,n,r]):r=null;for(let i of n.nodes??[]){let[o,s]=Rh(i);r=s||r,e.push(...o)}}return[e,r]}function jh(t){return t.value.startsWith("::")||Il[t.value]!==void 0}function wk(t){return jh(t)&&Xl(t).includes("terminal")}function xk(t,e){return t.type!=="pseudo"||jh(t)?!1:Xl(e).includes("actionable")}function Xl(t){return Il[t.value]??Il.__default__}var Pl=":merge";function Bo(t,{context:e,candidate:r}){let n=e?.tailwindConfig.prefix??"",i=t.map(s=>{let l=(0,qt.default)().astSync(s.format);return{...s,ast:s.respectPrefix?Wl(n,l):l}}),o=qt.default.root({nodes:[qt.default.selector({nodes:[qt.default.className({value:fr(r)})]})]});for(let{ast:s}of i)[o,s]=Sk(o,s),s.walkNesting(l=>l.replaceWith(...o.nodes[0].nodes)),o=s;return o}function rh(t){let e=[];for(;t.prev()&&t.prev().type!=="combinator";)t=t.prev();for(;t&&t.type!=="combinator";)e.push(t),t=t.next();return e}function kk(t){return t.sort((e,r)=>e.type==="tag"&&r.type==="class"?-1:e.type==="class"&&r.type==="tag"?1:e.type==="class"&&r.type==="pseudo"&&r.value.startsWith("::")?-1:e.type==="pseudo"&&e.value.startsWith("::")&&r.type==="class"?1:t.index(e)-t.index(r)),t}function qh(t,e){let r=!1;t.walk(n=>{if(n.type==="class"&&n.value===e)return r=!0,!1}),r||t.remove()}function Uh(t,e,{context:r,candidate:n,base:i}){let o=r?.tailwindConfig?.separator??":";i=i??Dt(n,o).pop();let s=(0,qt.default)().astSync(t);if(s.walkClasses(c=>{c.raws&&c.value.includes(i)&&(c.raws.value=fr((0,Lh.default)(c.raws.value)))}),s.each(c=>qh(c,i)),s.length===0)return null;let l=Array.isArray(e)?Bo(e,{context:r,candidate:n}):e;if(l===null)return s.toString();let a=qt.default.comment({value:"/*__simple__*/"}),u=qt.default.comment({value:"/*__simple__*/"});return s.walkClasses(c=>{if(c.value!==i)return;let p=c.parent,d=l.nodes[0].nodes;if(p.nodes.length===1){c.replaceWith(...d);return}let f=rh(c);p.insertBefore(f[0],a),p.insertAfter(f[f.length-1],u);for(let w of d)p.insertBefore(f[0],w.clone());c.remove(),f=rh(a);let g=p.index(a);p.nodes.splice(g,f.length,...kk(qt.default.selector({nodes:f})).nodes),a.remove(),u.remove()}),s.walkPseudos(c=>{c.value===Pl&&c.replaceWith(c.nodes)}),s.each(c=>Jl(c)),s.toString()}function Sk(t,e){let r=[];return t.walkPseudos(n=>{n.value===Pl&&r.push({pseudo:n,value:n.nodes[0].toString()})}),e.walkPseudos(n=>{if(n.value!==Pl)return;let i=n.nodes[0].toString(),o=r.find(u=>u.value===i);if(!o)return;let s=[],l=n.next();for(;l&&l.type!=="combinator";)s.push(l),l=l.next();let a=l;o.pseudo.parent.insertAfter(o.pseudo,qt.default.selector({nodes:s.map(u=>u.clone())})),n.remove(),s.forEach(u=>u.remove()),a&&a.type==="combinator"&&a.remove()}),[t,e]}function Bh(t){return Vl(`.${fr(t)}`)}function nh(t,e){return Bh(Fo(t,e))}function Fo(t,e){return e==="DEFAULT"?t:e==="-"||e==="-DEFAULT"?`-${t}`:e.startsWith("-")?`-${t}${e}`:e.startsWith("/")?`${t}${e}`:`${t}-${e}`}function Ho(t){return["fontSize","outline"].includes(t)?e=>(typeof e=="function"&&(e=e({})),Array.isArray(e)&&(e=e[0]),e):t==="fontFamily"?e=>{typeof e=="function"&&(e=e({}));let r=Array.isArray(e)&&$t(e[1])?e[0]:e;return Array.isArray(r)?r.join(", "):r}:["boxShadow","transitionProperty","transitionDuration","transitionDelay","transitionTimingFunction","backgroundImage","backgroundSize","backgroundColor","cursor","animation"].includes(t)?e=>(typeof e=="function"&&(e=e({})),Array.isArray(e)&&(e=e.join(", ")),e):["gridTemplateColumns","gridTemplateRows","objectPosition"].includes(t)?e=>(typeof e=="function"&&(e=e({})),typeof e=="string"&&(e=be.list.comma(e).join(" ")),e):(e,r={})=>(typeof e=="function"&&(e=e(r)),e)}var Ek=()=>"";function V(t,e=[[t,[t]]],{filterDefault:r=!1,...n}={}){let i=Ho(t);return function({matchUtilities:o,theme:s}){for(let l of e){let a=Array.isArray(l[0])?l:[l];o(a.reduce((u,[c,p])=>Object.assign(u,{[c]:d=>p.reduce((f,g)=>Array.isArray(g)?Object.assign(f,{[g[0]]:g[1]}):Object.assign(f,{[g]:i(d)}),{})}),{}),{...n,values:r?Object.fromEntries(Object.entries(s(t)??{}).filter(([u])=>u!=="DEFAULT")):s(t)})}}}function zo(t){return t=Array.isArray(t)?t:[t],t.map(e=>{let r=e.values.map(n=>n.raw!==void 0?n.raw:[n.min&&`(min-width: ${n.min})`,n.max&&`(max-width: ${n.max})`].filter(Boolean).join(" and "));return e.not?`not all and ${r}`:r}).join(", ")}var Ok=new Set(["normal","reverse","alternate","alternate-reverse"]),Ck=new Set(["running","paused"]),Ak=new Set(["none","forwards","backwards","both"]),Tk=new Set(["infinite"]),Ik=new Set(["linear","ease","ease-in","ease-out","ease-in-out","step-start","step-end"]),Pk=["cubic-bezier","steps"],$k=/\,(?![^(]*\))/g,Dk=/\ +(?![^(]*\))/g,ih=/^(-?[\d.]+m?s)$/,Mk=/^(\d+)$/;function Fk(t){return t.split($k).map(r=>{let n=r.trim(),i={value:n},o=n.split(Dk),s=new Set;for(let l of o)!s.has("DIRECTIONS")&&Ok.has(l)?(i.direction=l,s.add("DIRECTIONS")):!s.has("PLAY_STATES")&&Ck.has(l)?(i.playState=l,s.add("PLAY_STATES")):!s.has("FILL_MODES")&&Ak.has(l)?(i.fillMode=l,s.add("FILL_MODES")):!s.has("ITERATION_COUNTS")&&(Tk.has(l)||Mk.test(l))?(i.iterationCount=l,s.add("ITERATION_COUNTS")):!s.has("TIMING_FUNCTION")&&Ik.has(l)||!s.has("TIMING_FUNCTION")&&Pk.some(a=>l.startsWith(`${a}(`))?(i.timingFunction=l,s.add("TIMING_FUNCTION")):!s.has("DURATION")&&ih.test(l)?(i.duration=l,s.add("DURATION")):!s.has("DELAY")&&ih.test(l)?(i.delay=l,s.add("DELAY")):s.has("NAME")?(i.unknown||(i.unknown=[]),i.unknown.push(l)):(i.name=l,s.add("NAME"));return i})}var Wh=t=>Object.assign({},...Object.entries(t??{}).flatMap(([e,r])=>typeof r=="object"?Object.entries(Wh(r)).map(([n,i])=>({[e+(n==="DEFAULT"?"":`-${n}`)]:i})):[{[`${e}`]:r}])),tt=Wh;function Se(t){return typeof t=="function"?t({}):t}function pi(t,e=!0){return Array.isArray(t)?t.map(r=>{if(e&&Array.isArray(r))throw new Error("The tuple syntax is not supported for `screens`.");if(typeof r=="string")return{name:r.toString(),not:!1,values:[{min:r,max:void 0}]};let[n,i]=r;return n=n.toString(),typeof i=="string"?{name:n,not:!1,values:[{min:i,max:void 0}]}:Array.isArray(i)?{name:n,not:!1,values:i.map(o=>oh(o))}:{name:n,not:!1,values:[oh(i)]}}):pi(Object.entries(t??{}),!1)}function $l(t){return t.values.length!==1?{result:!1,reason:"multiple-values"}:t.values[0].raw!==void 0?{result:!1,reason:"raw-values"}:t.values[0].min!==void 0&&t.values[0].max!==void 0?{result:!1,reason:"min-and-max"}:{result:!0,reason:null}}function Lk(t,e,r){let n=Dl(e,t),i=Dl(r,t),o=$l(n),s=$l(i);if(o.reason==="multiple-values"||s.reason==="multiple-values")throw new Error("Attempted to sort a screen with multiple values. This should never happen. Please open a bug report.");if(o.reason==="raw-values"||s.reason==="raw-values")throw new Error("Attempted to sort a screen with raw values. This should never happen. Please open a bug report.");if(o.reason==="min-and-max"||s.reason==="min-and-max")throw new Error("Attempted to sort a screen with both min and max values. This should never happen. Please open a bug report.");let{min:l,max:a}=n.values[0],{min:u,max:c}=i.values[0];e.not&&([l,a]=[a,l]),r.not&&([u,c]=[c,u]),l=l===void 0?l:parseFloat(l),a=a===void 0?a:parseFloat(a),u=u===void 0?u:parseFloat(u),c=c===void 0?c:parseFloat(c);let[p,d]=t==="min"?[l,u]:[c,a];return p-d}function Dl(t,e){return typeof t=="object"?t:{name:"arbitrary-screen",values:[{[e]:t}]}}function oh({"min-width":t,min:e=t,max:r,raw:n}={}){return{min:e,max:r,raw:n}}function xl(t,e){t.walkDecls(r=>{if(e.includes(r.prop)){r.remove();return}for(let n of e)r.value.includes(`/ var(${n})`)&&(r.value=r.value.replace(`/ var(${n})`,""))})}var Le={childVariant:({addVariant:t})=>{t("*","& > *")},pseudoElementVariants:({addVariant:t})=>{t("first-letter","&::first-letter"),t("first-line","&::first-line"),t("marker",[({container:e})=>(xl(e,["--tw-text-opacity"]),"& *::marker"),({container:e})=>(xl(e,["--tw-text-opacity"]),"&::marker")]),t("selection",["& *::selection","&::selection"]),t("file","&::file-selector-button"),t("placeholder","&::placeholder"),t("backdrop","&::backdrop"),t("before",({container:e})=>(e.walkRules(r=>{let n=!1;r.walkDecls("content",()=>{n=!0}),n||r.prepend(be.decl({prop:"content",value:"var(--tw-content)"}))}),"&::before")),t("after",({container:e})=>(e.walkRules(r=>{let n=!1;r.walkDecls("content",()=>{n=!0}),n||r.prepend(be.decl({prop:"content",value:"var(--tw-content)"}))}),"&::after"))},pseudoClassVariants:({addVariant:t,matchVariant:e,config:r,prefix:n})=>{let i=[["first","&:first-child"],["last","&:last-child"],["only","&:only-child"],["odd","&:nth-child(odd)"],["even","&:nth-child(even)"],"first-of-type","last-of-type","only-of-type",["visited",({container:s})=>(xl(s,["--tw-text-opacity","--tw-border-opacity","--tw-bg-opacity"]),"&:visited")],"target",["open","&[open]"],"default","checked","indeterminate","placeholder-shown","autofill","optional","required","valid","invalid","in-range","out-of-range","read-only","empty","focus-within",["hover",kt(r(),"hoverOnlyWhenSupported")?"@media (hover: hover) and (pointer: fine) { &:hover }":"&:hover"],"focus","focus-visible","active","enabled","disabled"].map(s=>Array.isArray(s)?s:[s,`&:${s}`]);for(let[s,l]of i)t(s,a=>typeof l=="function"?l(a):l);let o={group:(s,{modifier:l})=>l?[`:merge(${n(".group")}\\/${fr(l)})`," &"]:[`:merge(${n(".group")})`," &"],peer:(s,{modifier:l})=>l?[`:merge(${n(".peer")}\\/${fr(l)})`," ~ &"]:[`:merge(${n(".peer")})`," ~ &"]};for(let[s,l]of Object.entries(o))e(s,(a="",u)=>{let c=Ee(typeof a=="function"?a(u):a);c.includes("&")||(c="&"+c);let[p,d]=l("",u),f=null,g=null,w=0;for(let h=0;h{t("ltr",'&:where([dir="ltr"], [dir="ltr"] *)'),t("rtl",'&:where([dir="rtl"], [dir="rtl"] *)')},reducedMotionVariants:({addVariant:t})=>{t("motion-safe","@media (prefers-reduced-motion: no-preference)"),t("motion-reduce","@media (prefers-reduced-motion: reduce)")},darkVariants:({config:t,addVariant:e})=>{let[r,n=".dark"]=[].concat(t("darkMode","media"));if(r===!1&&(r="media",Ye.warn("darkmode-false",["The `darkMode` option in your Tailwind CSS configuration is set to `false`, which now behaves the same as `media`.","Change `darkMode` to `media` or remove it entirely.","https://tailwindcss.com/docs/upgrade-guide#remove-dark-mode-configuration"])),r==="variant"){let i;if(Array.isArray(n)||typeof n=="function"?i=n:typeof n=="string"&&(i=[n]),Array.isArray(i))for(let o of i)o===".dark"?(r=!1,Ye.warn("darkmode-variant-without-selector",["When using `variant` for `darkMode`, you must provide a selector.",'Example: `darkMode: ["variant", ".your-selector &"]`'])):o.includes("&")||(r=!1,Ye.warn("darkmode-variant-without-ampersand",["When using `variant` for `darkMode`, your selector must contain `&`.",'Example `darkMode: ["variant", ".your-selector &"]`']));n=i}r==="selector"?e("dark",`&:where(${n}, ${n} *)`):r==="media"?e("dark","@media (prefers-color-scheme: dark)"):r==="variant"?e("dark",n):r==="class"&&e("dark",`:is(${n} &)`)},printVariant:({addVariant:t})=>{t("print","@media print")},screenVariants:({theme:t,addVariant:e,matchVariant:r})=>{let n=t("screens")??{},i=Object.values(n).every(m=>typeof m=="string"),o=pi(t("screens")),s=new Set([]);function l(m){return m.match(/(\D+)$/)?.[1]??"(none)"}function a(m){m!==void 0&&s.add(l(m))}function u(m){return a(m),s.size===1}for(let m of o)for(let b of m.values)a(b.min),a(b.max);let c=s.size<=1;function p(m){return Object.fromEntries(o.filter(b=>$l(b).result).map(b=>{let{min:v,max:_}=b.values[0];if(m==="min"&&v!==void 0)return b;if(m==="min"&&_!==void 0)return{...b,not:!b.not};if(m==="max"&&_!==void 0)return b;if(m==="max"&&v!==void 0)return{...b,not:!b.not}}).map(b=>[b.name,b]))}function d(m){return(b,v)=>Lk(m,b.value,v.value)}let f=d("max"),g=d("min");function w(m){return b=>{if(i)if(c){if(typeof b=="string"&&!u(b))return Ye.warn("minmax-have-mixed-units",["The `min-*` and `max-*` variants are not supported with a `screens` configuration containing mixed units."]),[]}else return Ye.warn("mixed-screen-units",["The `min-*` and `max-*` variants are not supported with a `screens` configuration containing mixed units."]),[];else return Ye.warn("complex-screen-config",["The `min-*` and `max-*` variants are not supported with a `screens` configuration containing objects."]),[];return[`@media ${zo(Dl(b,m))}`]}}r("max",w("max"),{sort:f,values:i?p("max"):{}});let h="min-screens";for(let m of o)e(m.name,`@media ${zo(m)}`,{id:h,sort:i&&c?g:void 0,value:m});r("min",w("min"),{id:h,sort:g})},supportsVariants:({matchVariant:t,theme:e})=>{t("supports",(r="")=>{let n=Ee(r),i=/^\w*\s*\(/.test(n);return n=i?n.replace(/\b(and|or|not)\b/g," $1 "):n,i?`@supports ${n}`:(n.includes(":")||(n=`${n}: var(--tw)`),n.startsWith("(")&&n.endsWith(")")||(n=`(${n})`),`@supports ${n}`)},{values:e("supports")??{}})},hasVariants:({matchVariant:t})=>{t("has",e=>`&:has(${Ee(e)})`,{values:{}}),t("group-has",(e,{modifier:r})=>r?`:merge(.group\\/${r}):has(${Ee(e)}) &`:`:merge(.group):has(${Ee(e)}) &`,{values:{}}),t("peer-has",(e,{modifier:r})=>r?`:merge(.peer\\/${r}):has(${Ee(e)}) ~ &`:`:merge(.peer):has(${Ee(e)}) ~ &`,{values:{}})},ariaVariants:({matchVariant:t,theme:e})=>{t("aria",r=>`&[aria-${Ee(r)}]`,{values:e("aria")??{}}),t("group-aria",(r,{modifier:n})=>n?`:merge(.group\\/${n})[aria-${Ee(r)}] &`:`:merge(.group)[aria-${Ee(r)}] &`,{values:e("aria")??{}}),t("peer-aria",(r,{modifier:n})=>n?`:merge(.peer\\/${n})[aria-${Ee(r)}] ~ &`:`:merge(.peer)[aria-${Ee(r)}] ~ &`,{values:e("aria")??{}})},dataVariants:({matchVariant:t,theme:e})=>{t("data",r=>`&[data-${Ee(r)}]`,{values:e("data")??{}}),t("group-data",(r,{modifier:n})=>n?`:merge(.group\\/${n})[data-${Ee(r)}] &`:`:merge(.group)[data-${Ee(r)}] &`,{values:e("data")??{}}),t("peer-data",(r,{modifier:n})=>n?`:merge(.peer\\/${n})[data-${Ee(r)}] ~ &`:`:merge(.peer)[data-${Ee(r)}] ~ &`,{values:e("data")??{}})},orientationVariants:({addVariant:t})=>{t("portrait","@media (orientation: portrait)"),t("landscape","@media (orientation: landscape)")},prefersContrastVariants:({addVariant:t})=>{t("contrast-more","@media (prefers-contrast: more)"),t("contrast-less","@media (prefers-contrast: less)")},forcedColorsVariants:({addVariant:t})=>{t("forced-colors","@media (forced-colors: active)")}},Pt=["translate(var(--tw-translate-x), var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" "),Rt=["var(--tw-blur)","var(--tw-brightness)","var(--tw-contrast)","var(--tw-grayscale)","var(--tw-hue-rotate)","var(--tw-invert)","var(--tw-saturate)","var(--tw-sepia)","var(--tw-drop-shadow)"].join(" "),jt=["var(--tw-backdrop-blur)","var(--tw-backdrop-brightness)","var(--tw-backdrop-contrast)","var(--tw-backdrop-grayscale)","var(--tw-backdrop-hue-rotate)","var(--tw-backdrop-invert)","var(--tw-backdrop-opacity)","var(--tw-backdrop-saturate)","var(--tw-backdrop-sepia)"].join(" "),Nk={preflight:({addBase:t})=>{let e=be.parse(kh.readFileSync(Ek("/","./css/preflight.css"),"utf8"));t([be.comment({text:`! tailwindcss v${Sh} | MIT License | https://tailwindcss.com`}),...e.nodes])},container:(()=>{function t(r=[]){return r.flatMap(n=>n.values.map(i=>i.min)).filter(n=>n!==void 0)}function e(r,n,i){if(typeof i>"u")return[];if(!(typeof i=="object"&&i!==null))return[{screen:"DEFAULT",minWidth:0,padding:i}];let o=[];i.DEFAULT&&o.push({screen:"DEFAULT",minWidth:0,padding:i.DEFAULT});for(let s of r)for(let l of n)for(let{min:a}of l.values)a===s&&o.push({minWidth:s,padding:i[l.name]});return o}return function({addComponents:r,theme:n}){let i=pi(n("container.screens",n("screens"))),o=t(i),s=e(o,i,n("container.padding")),l=u=>{let c=s.find(p=>p.minWidth===u);return c?{paddingRight:c.padding,paddingLeft:c.padding}:{}},a=Array.from(new Set(o.slice().sort((u,c)=>parseInt(u)-parseInt(c)))).map(u=>({[`@media (min-width: ${u})`]:{".container":{"max-width":u,...l(u)}}}));r([{".container":Object.assign({width:"100%"},n("container.center",!1)?{marginRight:"auto",marginLeft:"auto"}:{},l(0))},...a])}})(),accessibility:({addUtilities:t})=>{t({".sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},".not-sr-only":{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",clip:"auto",whiteSpace:"normal"}})},pointerEvents:({addUtilities:t})=>{t({".pointer-events-none":{"pointer-events":"none"},".pointer-events-auto":{"pointer-events":"auto"}})},visibility:({addUtilities:t})=>{t({".visible":{visibility:"visible"},".invisible":{visibility:"hidden"},".collapse":{visibility:"collapse"}})},position:({addUtilities:t})=>{t({".static":{position:"static"},".fixed":{position:"fixed"},".absolute":{position:"absolute"},".relative":{position:"relative"},".sticky":{position:"sticky"}})},inset:V("inset",[["inset",["inset"]],[["inset-x",["left","right"]],["inset-y",["top","bottom"]]],[["start",["inset-inline-start"]],["end",["inset-inline-end"]],["top",["top"]],["right",["right"]],["bottom",["bottom"]],["left",["left"]]]],{supportsNegativeValues:!0}),isolation:({addUtilities:t})=>{t({".isolate":{isolation:"isolate"},".isolation-auto":{isolation:"auto"}})},zIndex:V("zIndex",[["z",["zIndex"]]],{supportsNegativeValues:!0}),order:V("order",void 0,{supportsNegativeValues:!0}),gridColumn:V("gridColumn",[["col",["gridColumn"]]]),gridColumnStart:V("gridColumnStart",[["col-start",["gridColumnStart"]]]),gridColumnEnd:V("gridColumnEnd",[["col-end",["gridColumnEnd"]]]),gridRow:V("gridRow",[["row",["gridRow"]]]),gridRowStart:V("gridRowStart",[["row-start",["gridRowStart"]]]),gridRowEnd:V("gridRowEnd",[["row-end",["gridRowEnd"]]]),float:({addUtilities:t})=>{t({".float-start":{float:"inline-start"},".float-end":{float:"inline-end"},".float-right":{float:"right"},".float-left":{float:"left"},".float-none":{float:"none"}})},clear:({addUtilities:t})=>{t({".clear-start":{clear:"inline-start"},".clear-end":{clear:"inline-end"},".clear-left":{clear:"left"},".clear-right":{clear:"right"},".clear-both":{clear:"both"},".clear-none":{clear:"none"}})},margin:V("margin",[["m",["margin"]],[["mx",["margin-left","margin-right"]],["my",["margin-top","margin-bottom"]]],[["ms",["margin-inline-start"]],["me",["margin-inline-end"]],["mt",["margin-top"]],["mr",["margin-right"]],["mb",["margin-bottom"]],["ml",["margin-left"]]]],{supportsNegativeValues:!0}),boxSizing:({addUtilities:t})=>{t({".box-border":{"box-sizing":"border-box"},".box-content":{"box-sizing":"content-box"}})},lineClamp:({matchUtilities:t,addUtilities:e,theme:r})=>{t({"line-clamp":n=>({overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":`${n}`})},{values:r("lineClamp")}),e({".line-clamp-none":{overflow:"visible",display:"block","-webkit-box-orient":"horizontal","-webkit-line-clamp":"none"}})},display:({addUtilities:t})=>{t({".block":{display:"block"},".inline-block":{display:"inline-block"},".inline":{display:"inline"},".flex":{display:"flex"},".inline-flex":{display:"inline-flex"},".table":{display:"table"},".inline-table":{display:"inline-table"},".table-caption":{display:"table-caption"},".table-cell":{display:"table-cell"},".table-column":{display:"table-column"},".table-column-group":{display:"table-column-group"},".table-footer-group":{display:"table-footer-group"},".table-header-group":{display:"table-header-group"},".table-row-group":{display:"table-row-group"},".table-row":{display:"table-row"},".flow-root":{display:"flow-root"},".grid":{display:"grid"},".inline-grid":{display:"inline-grid"},".contents":{display:"contents"},".list-item":{display:"list-item"},".hidden":{display:"none"}})},aspectRatio:V("aspectRatio",[["aspect",["aspect-ratio"]]]),size:V("size",[["size",["width","height"]]]),height:V("height",[["h",["height"]]]),maxHeight:V("maxHeight",[["max-h",["maxHeight"]]]),minHeight:V("minHeight",[["min-h",["minHeight"]]]),width:V("width",[["w",["width"]]]),minWidth:V("minWidth",[["min-w",["minWidth"]]]),maxWidth:V("maxWidth",[["max-w",["maxWidth"]]]),flex:V("flex"),flexShrink:V("flexShrink",[["flex-shrink",["flex-shrink"]],["shrink",["flex-shrink"]]]),flexGrow:V("flexGrow",[["flex-grow",["flex-grow"]],["grow",["flex-grow"]]]),flexBasis:V("flexBasis",[["basis",["flex-basis"]]]),tableLayout:({addUtilities:t})=>{t({".table-auto":{"table-layout":"auto"},".table-fixed":{"table-layout":"fixed"}})},captionSide:({addUtilities:t})=>{t({".caption-top":{"caption-side":"top"},".caption-bottom":{"caption-side":"bottom"}})},borderCollapse:({addUtilities:t})=>{t({".border-collapse":{"border-collapse":"collapse"},".border-separate":{"border-collapse":"separate"}})},borderSpacing:({addDefaults:t,matchUtilities:e,theme:r})=>{t("border-spacing",{"--tw-border-spacing-x":0,"--tw-border-spacing-y":0}),e({"border-spacing":n=>({"--tw-border-spacing-x":n,"--tw-border-spacing-y":n,"@defaults border-spacing":{},"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"}),"border-spacing-x":n=>({"--tw-border-spacing-x":n,"@defaults border-spacing":{},"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"}),"border-spacing-y":n=>({"--tw-border-spacing-y":n,"@defaults border-spacing":{},"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})},{values:r("borderSpacing")})},transformOrigin:V("transformOrigin",[["origin",["transformOrigin"]]]),translate:V("translate",[[["translate-x",[["@defaults transform",{}],"--tw-translate-x",["transform",Pt]]],["translate-y",[["@defaults transform",{}],"--tw-translate-y",["transform",Pt]]]]],{supportsNegativeValues:!0}),rotate:V("rotate",[["rotate",[["@defaults transform",{}],"--tw-rotate",["transform",Pt]]]],{supportsNegativeValues:!0}),skew:V("skew",[[["skew-x",[["@defaults transform",{}],"--tw-skew-x",["transform",Pt]]],["skew-y",[["@defaults transform",{}],"--tw-skew-y",["transform",Pt]]]]],{supportsNegativeValues:!0}),scale:V("scale",[["scale",[["@defaults transform",{}],"--tw-scale-x","--tw-scale-y",["transform",Pt]]],[["scale-x",[["@defaults transform",{}],"--tw-scale-x",["transform",Pt]]],["scale-y",[["@defaults transform",{}],"--tw-scale-y",["transform",Pt]]]]],{supportsNegativeValues:!0}),transform:({addDefaults:t,addUtilities:e})=>{t("transform",{"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1"}),e({".transform":{"@defaults transform":{},transform:Pt},".transform-cpu":{transform:Pt},".transform-gpu":{transform:Pt.replace("translate(var(--tw-translate-x), var(--tw-translate-y))","translate3d(var(--tw-translate-x), var(--tw-translate-y), 0)")},".transform-none":{transform:"none"}})},animation:({matchUtilities:t,theme:e,config:r})=>{let n=o=>fr(r("prefix")+o),i=Object.fromEntries(Object.entries(e("keyframes")??{}).map(([o,s])=>[o,{[`@keyframes ${n(o)}`]:s}]));t({animate:o=>{let s=Fk(o);return[...s.flatMap(l=>i[l.name]),{animation:s.map(({name:l,value:a})=>l===void 0||i[l]===void 0?a:a.replace(l,n(l))).join(", ")}]}},{values:e("animation")})},cursor:V("cursor"),touchAction:({addDefaults:t,addUtilities:e})=>{t("touch-action",{"--tw-pan-x":" ","--tw-pan-y":" ","--tw-pinch-zoom":" "});let r="var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)";e({".touch-auto":{"touch-action":"auto"},".touch-none":{"touch-action":"none"},".touch-pan-x":{"@defaults touch-action":{},"--tw-pan-x":"pan-x","touch-action":r},".touch-pan-left":{"@defaults touch-action":{},"--tw-pan-x":"pan-left","touch-action":r},".touch-pan-right":{"@defaults touch-action":{},"--tw-pan-x":"pan-right","touch-action":r},".touch-pan-y":{"@defaults touch-action":{},"--tw-pan-y":"pan-y","touch-action":r},".touch-pan-up":{"@defaults touch-action":{},"--tw-pan-y":"pan-up","touch-action":r},".touch-pan-down":{"@defaults touch-action":{},"--tw-pan-y":"pan-down","touch-action":r},".touch-pinch-zoom":{"@defaults touch-action":{},"--tw-pinch-zoom":"pinch-zoom","touch-action":r},".touch-manipulation":{"touch-action":"manipulation"}})},userSelect:({addUtilities:t})=>{t({".select-none":{"user-select":"none"},".select-text":{"user-select":"text"},".select-all":{"user-select":"all"},".select-auto":{"user-select":"auto"}})},resize:({addUtilities:t})=>{t({".resize-none":{resize:"none"},".resize-y":{resize:"vertical"},".resize-x":{resize:"horizontal"},".resize":{resize:"both"}})},scrollSnapType:({addDefaults:t,addUtilities:e})=>{t("scroll-snap-type",{"--tw-scroll-snap-strictness":"proximity"}),e({".snap-none":{"scroll-snap-type":"none"},".snap-x":{"@defaults scroll-snap-type":{},"scroll-snap-type":"x var(--tw-scroll-snap-strictness)"},".snap-y":{"@defaults scroll-snap-type":{},"scroll-snap-type":"y var(--tw-scroll-snap-strictness)"},".snap-both":{"@defaults scroll-snap-type":{},"scroll-snap-type":"both var(--tw-scroll-snap-strictness)"},".snap-mandatory":{"--tw-scroll-snap-strictness":"mandatory"},".snap-proximity":{"--tw-scroll-snap-strictness":"proximity"}})},scrollSnapAlign:({addUtilities:t})=>{t({".snap-start":{"scroll-snap-align":"start"},".snap-end":{"scroll-snap-align":"end"},".snap-center":{"scroll-snap-align":"center"},".snap-align-none":{"scroll-snap-align":"none"}})},scrollSnapStop:({addUtilities:t})=>{t({".snap-normal":{"scroll-snap-stop":"normal"},".snap-always":{"scroll-snap-stop":"always"}})},scrollMargin:V("scrollMargin",[["scroll-m",["scroll-margin"]],[["scroll-mx",["scroll-margin-left","scroll-margin-right"]],["scroll-my",["scroll-margin-top","scroll-margin-bottom"]]],[["scroll-ms",["scroll-margin-inline-start"]],["scroll-me",["scroll-margin-inline-end"]],["scroll-mt",["scroll-margin-top"]],["scroll-mr",["scroll-margin-right"]],["scroll-mb",["scroll-margin-bottom"]],["scroll-ml",["scroll-margin-left"]]]],{supportsNegativeValues:!0}),scrollPadding:V("scrollPadding",[["scroll-p",["scroll-padding"]],[["scroll-px",["scroll-padding-left","scroll-padding-right"]],["scroll-py",["scroll-padding-top","scroll-padding-bottom"]]],[["scroll-ps",["scroll-padding-inline-start"]],["scroll-pe",["scroll-padding-inline-end"]],["scroll-pt",["scroll-padding-top"]],["scroll-pr",["scroll-padding-right"]],["scroll-pb",["scroll-padding-bottom"]],["scroll-pl",["scroll-padding-left"]]]]),listStylePosition:({addUtilities:t})=>{t({".list-inside":{"list-style-position":"inside"},".list-outside":{"list-style-position":"outside"}})},listStyleType:V("listStyleType",[["list",["listStyleType"]]]),listStyleImage:V("listStyleImage",[["list-image",["listStyleImage"]]]),appearance:({addUtilities:t})=>{t({".appearance-none":{appearance:"none"},".appearance-auto":{appearance:"auto"}})},columns:V("columns",[["columns",["columns"]]]),breakBefore:({addUtilities:t})=>{t({".break-before-auto":{"break-before":"auto"},".break-before-avoid":{"break-before":"avoid"},".break-before-all":{"break-before":"all"},".break-before-avoid-page":{"break-before":"avoid-page"},".break-before-page":{"break-before":"page"},".break-before-left":{"break-before":"left"},".break-before-right":{"break-before":"right"},".break-before-column":{"break-before":"column"}})},breakInside:({addUtilities:t})=>{t({".break-inside-auto":{"break-inside":"auto"},".break-inside-avoid":{"break-inside":"avoid"},".break-inside-avoid-page":{"break-inside":"avoid-page"},".break-inside-avoid-column":{"break-inside":"avoid-column"}})},breakAfter:({addUtilities:t})=>{t({".break-after-auto":{"break-after":"auto"},".break-after-avoid":{"break-after":"avoid"},".break-after-all":{"break-after":"all"},".break-after-avoid-page":{"break-after":"avoid-page"},".break-after-page":{"break-after":"page"},".break-after-left":{"break-after":"left"},".break-after-right":{"break-after":"right"},".break-after-column":{"break-after":"column"}})},gridAutoColumns:V("gridAutoColumns",[["auto-cols",["gridAutoColumns"]]]),gridAutoFlow:({addUtilities:t})=>{t({".grid-flow-row":{gridAutoFlow:"row"},".grid-flow-col":{gridAutoFlow:"column"},".grid-flow-dense":{gridAutoFlow:"dense"},".grid-flow-row-dense":{gridAutoFlow:"row dense"},".grid-flow-col-dense":{gridAutoFlow:"column dense"}})},gridAutoRows:V("gridAutoRows",[["auto-rows",["gridAutoRows"]]]),gridTemplateColumns:V("gridTemplateColumns",[["grid-cols",["gridTemplateColumns"]]]),gridTemplateRows:V("gridTemplateRows",[["grid-rows",["gridTemplateRows"]]]),flexDirection:({addUtilities:t})=>{t({".flex-row":{"flex-direction":"row"},".flex-row-reverse":{"flex-direction":"row-reverse"},".flex-col":{"flex-direction":"column"},".flex-col-reverse":{"flex-direction":"column-reverse"}})},flexWrap:({addUtilities:t})=>{t({".flex-wrap":{"flex-wrap":"wrap"},".flex-wrap-reverse":{"flex-wrap":"wrap-reverse"},".flex-nowrap":{"flex-wrap":"nowrap"}})},placeContent:({addUtilities:t})=>{t({".place-content-center":{"place-content":"center"},".place-content-start":{"place-content":"start"},".place-content-end":{"place-content":"end"},".place-content-between":{"place-content":"space-between"},".place-content-around":{"place-content":"space-around"},".place-content-evenly":{"place-content":"space-evenly"},".place-content-baseline":{"place-content":"baseline"},".place-content-stretch":{"place-content":"stretch"}})},placeItems:({addUtilities:t})=>{t({".place-items-start":{"place-items":"start"},".place-items-end":{"place-items":"end"},".place-items-center":{"place-items":"center"},".place-items-baseline":{"place-items":"baseline"},".place-items-stretch":{"place-items":"stretch"}})},alignContent:({addUtilities:t})=>{t({".content-normal":{"align-content":"normal"},".content-center":{"align-content":"center"},".content-start":{"align-content":"flex-start"},".content-end":{"align-content":"flex-end"},".content-between":{"align-content":"space-between"},".content-around":{"align-content":"space-around"},".content-evenly":{"align-content":"space-evenly"},".content-baseline":{"align-content":"baseline"},".content-stretch":{"align-content":"stretch"}})},alignItems:({addUtilities:t})=>{t({".items-start":{"align-items":"flex-start"},".items-end":{"align-items":"flex-end"},".items-center":{"align-items":"center"},".items-baseline":{"align-items":"baseline"},".items-stretch":{"align-items":"stretch"}})},justifyContent:({addUtilities:t})=>{t({".justify-normal":{"justify-content":"normal"},".justify-start":{"justify-content":"flex-start"},".justify-end":{"justify-content":"flex-end"},".justify-center":{"justify-content":"center"},".justify-between":{"justify-content":"space-between"},".justify-around":{"justify-content":"space-around"},".justify-evenly":{"justify-content":"space-evenly"},".justify-stretch":{"justify-content":"stretch"}})},justifyItems:({addUtilities:t})=>{t({".justify-items-start":{"justify-items":"start"},".justify-items-end":{"justify-items":"end"},".justify-items-center":{"justify-items":"center"},".justify-items-stretch":{"justify-items":"stretch"}})},gap:V("gap",[["gap",["gap"]],[["gap-x",["columnGap"]],["gap-y",["rowGap"]]]]),space:({matchUtilities:t,addUtilities:e,theme:r})=>{t({"space-x":n=>(n=n==="0"?"0px":n,{"& > :not([hidden]) ~ :not([hidden])":{"--tw-space-x-reverse":"0","margin-right":`calc(${n} * var(--tw-space-x-reverse))`,"margin-left":`calc(${n} * calc(1 - var(--tw-space-x-reverse)))`}}),"space-y":n=>(n=n==="0"?"0px":n,{"& > :not([hidden]) ~ :not([hidden])":{"--tw-space-y-reverse":"0","margin-top":`calc(${n} * calc(1 - var(--tw-space-y-reverse)))`,"margin-bottom":`calc(${n} * var(--tw-space-y-reverse))`}})},{values:r("space"),supportsNegativeValues:!0}),e({".space-y-reverse > :not([hidden]) ~ :not([hidden])":{"--tw-space-y-reverse":"1"},".space-x-reverse > :not([hidden]) ~ :not([hidden])":{"--tw-space-x-reverse":"1"}})},divideWidth:({matchUtilities:t,addUtilities:e,theme:r})=>{t({"divide-x":n=>(n=n==="0"?"0px":n,{"& > :not([hidden]) ~ :not([hidden])":{"@defaults border-width":{},"--tw-divide-x-reverse":"0","border-right-width":`calc(${n} * var(--tw-divide-x-reverse))`,"border-left-width":`calc(${n} * calc(1 - var(--tw-divide-x-reverse)))`}}),"divide-y":n=>(n=n==="0"?"0px":n,{"& > :not([hidden]) ~ :not([hidden])":{"@defaults border-width":{},"--tw-divide-y-reverse":"0","border-top-width":`calc(${n} * calc(1 - var(--tw-divide-y-reverse)))`,"border-bottom-width":`calc(${n} * var(--tw-divide-y-reverse))`}})},{values:r("divideWidth"),type:["line-width","length","any"]}),e({".divide-y-reverse > :not([hidden]) ~ :not([hidden])":{"@defaults border-width":{},"--tw-divide-y-reverse":"1"},".divide-x-reverse > :not([hidden]) ~ :not([hidden])":{"@defaults border-width":{},"--tw-divide-x-reverse":"1"}})},divideStyle:({addUtilities:t})=>{t({".divide-solid > :not([hidden]) ~ :not([hidden])":{"border-style":"solid"},".divide-dashed > :not([hidden]) ~ :not([hidden])":{"border-style":"dashed"},".divide-dotted > :not([hidden]) ~ :not([hidden])":{"border-style":"dotted"},".divide-double > :not([hidden]) ~ :not([hidden])":{"border-style":"double"},".divide-none > :not([hidden]) ~ :not([hidden])":{"border-style":"none"}})},divideColor:({matchUtilities:t,theme:e,corePlugins:r})=>{t({divide:n=>r("divideOpacity")?{"& > :not([hidden]) ~ :not([hidden])":ht({color:n,property:"border-color",variable:"--tw-divide-opacity"})}:{"& > :not([hidden]) ~ :not([hidden])":{"border-color":Se(n)}}},{values:(({DEFAULT:n,...i})=>i)(tt(e("divideColor"))),type:["color","any"]})},divideOpacity:({matchUtilities:t,theme:e})=>{t({"divide-opacity":r=>({"& > :not([hidden]) ~ :not([hidden])":{"--tw-divide-opacity":r}})},{values:e("divideOpacity")})},placeSelf:({addUtilities:t})=>{t({".place-self-auto":{"place-self":"auto"},".place-self-start":{"place-self":"start"},".place-self-end":{"place-self":"end"},".place-self-center":{"place-self":"center"},".place-self-stretch":{"place-self":"stretch"}})},alignSelf:({addUtilities:t})=>{t({".self-auto":{"align-self":"auto"},".self-start":{"align-self":"flex-start"},".self-end":{"align-self":"flex-end"},".self-center":{"align-self":"center"},".self-stretch":{"align-self":"stretch"},".self-baseline":{"align-self":"baseline"}})},justifySelf:({addUtilities:t})=>{t({".justify-self-auto":{"justify-self":"auto"},".justify-self-start":{"justify-self":"start"},".justify-self-end":{"justify-self":"end"},".justify-self-center":{"justify-self":"center"},".justify-self-stretch":{"justify-self":"stretch"}})},overflow:({addUtilities:t})=>{t({".overflow-auto":{overflow:"auto"},".overflow-hidden":{overflow:"hidden"},".overflow-clip":{overflow:"clip"},".overflow-visible":{overflow:"visible"},".overflow-scroll":{overflow:"scroll"},".overflow-x-auto":{"overflow-x":"auto"},".overflow-y-auto":{"overflow-y":"auto"},".overflow-x-hidden":{"overflow-x":"hidden"},".overflow-y-hidden":{"overflow-y":"hidden"},".overflow-x-clip":{"overflow-x":"clip"},".overflow-y-clip":{"overflow-y":"clip"},".overflow-x-visible":{"overflow-x":"visible"},".overflow-y-visible":{"overflow-y":"visible"},".overflow-x-scroll":{"overflow-x":"scroll"},".overflow-y-scroll":{"overflow-y":"scroll"}})},overscrollBehavior:({addUtilities:t})=>{t({".overscroll-auto":{"overscroll-behavior":"auto"},".overscroll-contain":{"overscroll-behavior":"contain"},".overscroll-none":{"overscroll-behavior":"none"},".overscroll-y-auto":{"overscroll-behavior-y":"auto"},".overscroll-y-contain":{"overscroll-behavior-y":"contain"},".overscroll-y-none":{"overscroll-behavior-y":"none"},".overscroll-x-auto":{"overscroll-behavior-x":"auto"},".overscroll-x-contain":{"overscroll-behavior-x":"contain"},".overscroll-x-none":{"overscroll-behavior-x":"none"}})},scrollBehavior:({addUtilities:t})=>{t({".scroll-auto":{"scroll-behavior":"auto"},".scroll-smooth":{"scroll-behavior":"smooth"}})},textOverflow:({addUtilities:t})=>{t({".truncate":{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},".overflow-ellipsis":{"text-overflow":"ellipsis"},".text-ellipsis":{"text-overflow":"ellipsis"},".text-clip":{"text-overflow":"clip"}})},hyphens:({addUtilities:t})=>{t({".hyphens-none":{hyphens:"none"},".hyphens-manual":{hyphens:"manual"},".hyphens-auto":{hyphens:"auto"}})},whitespace:({addUtilities:t})=>{t({".whitespace-normal":{"white-space":"normal"},".whitespace-nowrap":{"white-space":"nowrap"},".whitespace-pre":{"white-space":"pre"},".whitespace-pre-line":{"white-space":"pre-line"},".whitespace-pre-wrap":{"white-space":"pre-wrap"},".whitespace-break-spaces":{"white-space":"break-spaces"}})},textWrap:({addUtilities:t})=>{t({".text-wrap":{"text-wrap":"wrap"},".text-nowrap":{"text-wrap":"nowrap"},".text-balance":{"text-wrap":"balance"},".text-pretty":{"text-wrap":"pretty"}})},wordBreak:({addUtilities:t})=>{t({".break-normal":{"overflow-wrap":"normal","word-break":"normal"},".break-words":{"overflow-wrap":"break-word"},".break-all":{"word-break":"break-all"},".break-keep":{"word-break":"keep-all"}})},borderRadius:V("borderRadius",[["rounded",["border-radius"]],[["rounded-s",["border-start-start-radius","border-end-start-radius"]],["rounded-e",["border-start-end-radius","border-end-end-radius"]],["rounded-t",["border-top-left-radius","border-top-right-radius"]],["rounded-r",["border-top-right-radius","border-bottom-right-radius"]],["rounded-b",["border-bottom-right-radius","border-bottom-left-radius"]],["rounded-l",["border-top-left-radius","border-bottom-left-radius"]]],[["rounded-ss",["border-start-start-radius"]],["rounded-se",["border-start-end-radius"]],["rounded-ee",["border-end-end-radius"]],["rounded-es",["border-end-start-radius"]],["rounded-tl",["border-top-left-radius"]],["rounded-tr",["border-top-right-radius"]],["rounded-br",["border-bottom-right-radius"]],["rounded-bl",["border-bottom-left-radius"]]]]),borderWidth:V("borderWidth",[["border",[["@defaults border-width",{}],"border-width"]],[["border-x",[["@defaults border-width",{}],"border-left-width","border-right-width"]],["border-y",[["@defaults border-width",{}],"border-top-width","border-bottom-width"]]],[["border-s",[["@defaults border-width",{}],"border-inline-start-width"]],["border-e",[["@defaults border-width",{}],"border-inline-end-width"]],["border-t",[["@defaults border-width",{}],"border-top-width"]],["border-r",[["@defaults border-width",{}],"border-right-width"]],["border-b",[["@defaults border-width",{}],"border-bottom-width"]],["border-l",[["@defaults border-width",{}],"border-left-width"]]]],{type:["line-width","length"]}),borderStyle:({addUtilities:t})=>{t({".border-solid":{"border-style":"solid"},".border-dashed":{"border-style":"dashed"},".border-dotted":{"border-style":"dotted"},".border-double":{"border-style":"double"},".border-hidden":{"border-style":"hidden"},".border-none":{"border-style":"none"}})},borderColor:({matchUtilities:t,theme:e,corePlugins:r})=>{t({border:n=>r("borderOpacity")?ht({color:n,property:"border-color",variable:"--tw-border-opacity"}):{"border-color":Se(n)}},{values:(({DEFAULT:n,...i})=>i)(tt(e("borderColor"))),type:["color","any"]}),t({"border-x":n=>r("borderOpacity")?ht({color:n,property:["border-left-color","border-right-color"],variable:"--tw-border-opacity"}):{"border-left-color":Se(n),"border-right-color":Se(n)},"border-y":n=>r("borderOpacity")?ht({color:n,property:["border-top-color","border-bottom-color"],variable:"--tw-border-opacity"}):{"border-top-color":Se(n),"border-bottom-color":Se(n)}},{values:(({DEFAULT:n,...i})=>i)(tt(e("borderColor"))),type:["color","any"]}),t({"border-s":n=>r("borderOpacity")?ht({color:n,property:"border-inline-start-color",variable:"--tw-border-opacity"}):{"border-inline-start-color":Se(n)},"border-e":n=>r("borderOpacity")?ht({color:n,property:"border-inline-end-color",variable:"--tw-border-opacity"}):{"border-inline-end-color":Se(n)},"border-t":n=>r("borderOpacity")?ht({color:n,property:"border-top-color",variable:"--tw-border-opacity"}):{"border-top-color":Se(n)},"border-r":n=>r("borderOpacity")?ht({color:n,property:"border-right-color",variable:"--tw-border-opacity"}):{"border-right-color":Se(n)},"border-b":n=>r("borderOpacity")?ht({color:n,property:"border-bottom-color",variable:"--tw-border-opacity"}):{"border-bottom-color":Se(n)},"border-l":n=>r("borderOpacity")?ht({color:n,property:"border-left-color",variable:"--tw-border-opacity"}):{"border-left-color":Se(n)}},{values:(({DEFAULT:n,...i})=>i)(tt(e("borderColor"))),type:["color","any"]})},borderOpacity:V("borderOpacity",[["border-opacity",["--tw-border-opacity"]]]),backgroundColor:({matchUtilities:t,theme:e,corePlugins:r})=>{t({bg:n=>r("backgroundOpacity")?ht({color:n,property:"background-color",variable:"--tw-bg-opacity"}):{"background-color":Se(n)}},{values:tt(e("backgroundColor")),type:["color","any"]})},backgroundOpacity:V("backgroundOpacity",[["bg-opacity",["--tw-bg-opacity"]]]),backgroundImage:V("backgroundImage",[["bg",["background-image"]]],{type:["lookup","image","url"]}),gradientColorStops:(()=>{function t(e){return Gr(e,0,"rgb(255 255 255 / 0)")}return function({matchUtilities:e,theme:r,addDefaults:n}){n("gradient-color-stops",{"--tw-gradient-from-position":" ","--tw-gradient-via-position":" ","--tw-gradient-to-position":" "});let i={values:tt(r("gradientColorStops")),type:["color","any"]},o={values:r("gradientColorStopPositions"),type:["length","percentage"]};e({from:s=>{let l=t(s);return{"@defaults gradient-color-stops":{},"--tw-gradient-from":`${Se(s)} var(--tw-gradient-from-position)`,"--tw-gradient-to":`${l} var(--tw-gradient-to-position)`,"--tw-gradient-stops":"var(--tw-gradient-from), var(--tw-gradient-to)"}}},i),e({from:s=>({"--tw-gradient-from-position":s})},o),e({via:s=>{let l=t(s);return{"@defaults gradient-color-stops":{},"--tw-gradient-to":`${l} var(--tw-gradient-to-position)`,"--tw-gradient-stops":`var(--tw-gradient-from), ${Se(s)} var(--tw-gradient-via-position), var(--tw-gradient-to)`}}},i),e({via:s=>({"--tw-gradient-via-position":s})},o),e({to:s=>({"@defaults gradient-color-stops":{},"--tw-gradient-to":`${Se(s)} var(--tw-gradient-to-position)`})},i),e({to:s=>({"--tw-gradient-to-position":s})},o)}})(),boxDecorationBreak:({addUtilities:t})=>{t({".decoration-slice":{"box-decoration-break":"slice"},".decoration-clone":{"box-decoration-break":"clone"},".box-decoration-slice":{"box-decoration-break":"slice"},".box-decoration-clone":{"box-decoration-break":"clone"}})},backgroundSize:V("backgroundSize",[["bg",["background-size"]]],{type:["lookup","length","percentage","size"]}),backgroundAttachment:({addUtilities:t})=>{t({".bg-fixed":{"background-attachment":"fixed"},".bg-local":{"background-attachment":"local"},".bg-scroll":{"background-attachment":"scroll"}})},backgroundClip:({addUtilities:t})=>{t({".bg-clip-border":{"background-clip":"border-box"},".bg-clip-padding":{"background-clip":"padding-box"},".bg-clip-content":{"background-clip":"content-box"},".bg-clip-text":{"background-clip":"text"}})},backgroundPosition:V("backgroundPosition",[["bg",["background-position"]]],{type:["lookup",["position",{preferOnConflict:!0}]]}),backgroundRepeat:({addUtilities:t})=>{t({".bg-repeat":{"background-repeat":"repeat"},".bg-no-repeat":{"background-repeat":"no-repeat"},".bg-repeat-x":{"background-repeat":"repeat-x"},".bg-repeat-y":{"background-repeat":"repeat-y"},".bg-repeat-round":{"background-repeat":"round"},".bg-repeat-space":{"background-repeat":"space"}})},backgroundOrigin:({addUtilities:t})=>{t({".bg-origin-border":{"background-origin":"border-box"},".bg-origin-padding":{"background-origin":"padding-box"},".bg-origin-content":{"background-origin":"content-box"}})},fill:({matchUtilities:t,theme:e})=>{t({fill:r=>({fill:Se(r)})},{values:tt(e("fill")),type:["color","any"]})},stroke:({matchUtilities:t,theme:e})=>{t({stroke:r=>({stroke:Se(r)})},{values:tt(e("stroke")),type:["color","url","any"]})},strokeWidth:V("strokeWidth",[["stroke",["stroke-width"]]],{type:["length","number","percentage"]}),objectFit:({addUtilities:t})=>{t({".object-contain":{"object-fit":"contain"},".object-cover":{"object-fit":"cover"},".object-fill":{"object-fit":"fill"},".object-none":{"object-fit":"none"},".object-scale-down":{"object-fit":"scale-down"}})},objectPosition:V("objectPosition",[["object",["object-position"]]]),padding:V("padding",[["p",["padding"]],[["px",["padding-left","padding-right"]],["py",["padding-top","padding-bottom"]]],[["ps",["padding-inline-start"]],["pe",["padding-inline-end"]],["pt",["padding-top"]],["pr",["padding-right"]],["pb",["padding-bottom"]],["pl",["padding-left"]]]]),textAlign:({addUtilities:t})=>{t({".text-left":{"text-align":"left"},".text-center":{"text-align":"center"},".text-right":{"text-align":"right"},".text-justify":{"text-align":"justify"},".text-start":{"text-align":"start"},".text-end":{"text-align":"end"}})},textIndent:V("textIndent",[["indent",["text-indent"]]],{supportsNegativeValues:!0}),verticalAlign:({addUtilities:t,matchUtilities:e})=>{t({".align-baseline":{"vertical-align":"baseline"},".align-top":{"vertical-align":"top"},".align-middle":{"vertical-align":"middle"},".align-bottom":{"vertical-align":"bottom"},".align-text-top":{"vertical-align":"text-top"},".align-text-bottom":{"vertical-align":"text-bottom"},".align-sub":{"vertical-align":"sub"},".align-super":{"vertical-align":"super"}}),e({align:r=>({"vertical-align":r})})},fontFamily:({matchUtilities:t,theme:e})=>{t({font:r=>{let[n,i={}]=Array.isArray(r)&&$t(r[1])?r:[r],{fontFeatureSettings:o,fontVariationSettings:s}=i;return{"font-family":Array.isArray(n)?n.join(", "):n,...o===void 0?{}:{"font-feature-settings":o},...s===void 0?{}:{"font-variation-settings":s}}}},{values:e("fontFamily"),type:["lookup","generic-name","family-name"]})},fontSize:({matchUtilities:t,theme:e})=>{t({text:(r,{modifier:n})=>{let[i,o]=Array.isArray(r)?r:[r];if(n)return{"font-size":i,"line-height":n};let{lineHeight:s,letterSpacing:l,fontWeight:a}=$t(o)?o:{lineHeight:o};return{"font-size":i,...s===void 0?{}:{"line-height":s},...l===void 0?{}:{"letter-spacing":l},...a===void 0?{}:{"font-weight":a}}}},{values:e("fontSize"),modifiers:e("lineHeight"),type:["absolute-size","relative-size","length","percentage"]})},fontWeight:V("fontWeight",[["font",["fontWeight"]]],{type:["lookup","number","any"]}),textTransform:({addUtilities:t})=>{t({".uppercase":{"text-transform":"uppercase"},".lowercase":{"text-transform":"lowercase"},".capitalize":{"text-transform":"capitalize"},".normal-case":{"text-transform":"none"}})},fontStyle:({addUtilities:t})=>{t({".italic":{"font-style":"italic"},".not-italic":{"font-style":"normal"}})},fontVariantNumeric:({addDefaults:t,addUtilities:e})=>{let r="var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)";t("font-variant-numeric",{"--tw-ordinal":" ","--tw-slashed-zero":" ","--tw-numeric-figure":" ","--tw-numeric-spacing":" ","--tw-numeric-fraction":" "}),e({".normal-nums":{"font-variant-numeric":"normal"},".ordinal":{"@defaults font-variant-numeric":{},"--tw-ordinal":"ordinal","font-variant-numeric":r},".slashed-zero":{"@defaults font-variant-numeric":{},"--tw-slashed-zero":"slashed-zero","font-variant-numeric":r},".lining-nums":{"@defaults font-variant-numeric":{},"--tw-numeric-figure":"lining-nums","font-variant-numeric":r},".oldstyle-nums":{"@defaults font-variant-numeric":{},"--tw-numeric-figure":"oldstyle-nums","font-variant-numeric":r},".proportional-nums":{"@defaults font-variant-numeric":{},"--tw-numeric-spacing":"proportional-nums","font-variant-numeric":r},".tabular-nums":{"@defaults font-variant-numeric":{},"--tw-numeric-spacing":"tabular-nums","font-variant-numeric":r},".diagonal-fractions":{"@defaults font-variant-numeric":{},"--tw-numeric-fraction":"diagonal-fractions","font-variant-numeric":r},".stacked-fractions":{"@defaults font-variant-numeric":{},"--tw-numeric-fraction":"stacked-fractions","font-variant-numeric":r}})},lineHeight:V("lineHeight",[["leading",["lineHeight"]]]),letterSpacing:V("letterSpacing",[["tracking",["letterSpacing"]]],{supportsNegativeValues:!0}),textColor:({matchUtilities:t,theme:e,corePlugins:r})=>{t({text:n=>r("textOpacity")?ht({color:n,property:"color",variable:"--tw-text-opacity"}):{color:Se(n)}},{values:tt(e("textColor")),type:["color","any"]})},textOpacity:V("textOpacity",[["text-opacity",["--tw-text-opacity"]]]),textDecoration:({addUtilities:t})=>{t({".underline":{"text-decoration-line":"underline"},".overline":{"text-decoration-line":"overline"},".line-through":{"text-decoration-line":"line-through"},".no-underline":{"text-decoration-line":"none"}})},textDecorationColor:({matchUtilities:t,theme:e})=>{t({decoration:r=>({"text-decoration-color":Se(r)})},{values:tt(e("textDecorationColor")),type:["color","any"]})},textDecorationStyle:({addUtilities:t})=>{t({".decoration-solid":{"text-decoration-style":"solid"},".decoration-double":{"text-decoration-style":"double"},".decoration-dotted":{"text-decoration-style":"dotted"},".decoration-dashed":{"text-decoration-style":"dashed"},".decoration-wavy":{"text-decoration-style":"wavy"}})},textDecorationThickness:V("textDecorationThickness",[["decoration",["text-decoration-thickness"]]],{type:["length","percentage"]}),textUnderlineOffset:V("textUnderlineOffset",[["underline-offset",["text-underline-offset"]]],{type:["length","percentage","any"]}),fontSmoothing:({addUtilities:t})=>{t({".antialiased":{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"},".subpixel-antialiased":{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"}})},placeholderColor:({matchUtilities:t,theme:e,corePlugins:r})=>{t({placeholder:n=>r("placeholderOpacity")?{"&::placeholder":ht({color:n,property:"color",variable:"--tw-placeholder-opacity"})}:{"&::placeholder":{color:Se(n)}}},{values:tt(e("placeholderColor")),type:["color","any"]})},placeholderOpacity:({matchUtilities:t,theme:e})=>{t({"placeholder-opacity":r=>({"&::placeholder":{"--tw-placeholder-opacity":r}})},{values:e("placeholderOpacity")})},caretColor:({matchUtilities:t,theme:e})=>{t({caret:r=>({"caret-color":Se(r)})},{values:tt(e("caretColor")),type:["color","any"]})},accentColor:({matchUtilities:t,theme:e})=>{t({accent:r=>({"accent-color":Se(r)})},{values:tt(e("accentColor")),type:["color","any"]})},opacity:V("opacity",[["opacity",["opacity"]]]),backgroundBlendMode:({addUtilities:t})=>{t({".bg-blend-normal":{"background-blend-mode":"normal"},".bg-blend-multiply":{"background-blend-mode":"multiply"},".bg-blend-screen":{"background-blend-mode":"screen"},".bg-blend-overlay":{"background-blend-mode":"overlay"},".bg-blend-darken":{"background-blend-mode":"darken"},".bg-blend-lighten":{"background-blend-mode":"lighten"},".bg-blend-color-dodge":{"background-blend-mode":"color-dodge"},".bg-blend-color-burn":{"background-blend-mode":"color-burn"},".bg-blend-hard-light":{"background-blend-mode":"hard-light"},".bg-blend-soft-light":{"background-blend-mode":"soft-light"},".bg-blend-difference":{"background-blend-mode":"difference"},".bg-blend-exclusion":{"background-blend-mode":"exclusion"},".bg-blend-hue":{"background-blend-mode":"hue"},".bg-blend-saturation":{"background-blend-mode":"saturation"},".bg-blend-color":{"background-blend-mode":"color"},".bg-blend-luminosity":{"background-blend-mode":"luminosity"}})},mixBlendMode:({addUtilities:t})=>{t({".mix-blend-normal":{"mix-blend-mode":"normal"},".mix-blend-multiply":{"mix-blend-mode":"multiply"},".mix-blend-screen":{"mix-blend-mode":"screen"},".mix-blend-overlay":{"mix-blend-mode":"overlay"},".mix-blend-darken":{"mix-blend-mode":"darken"},".mix-blend-lighten":{"mix-blend-mode":"lighten"},".mix-blend-color-dodge":{"mix-blend-mode":"color-dodge"},".mix-blend-color-burn":{"mix-blend-mode":"color-burn"},".mix-blend-hard-light":{"mix-blend-mode":"hard-light"},".mix-blend-soft-light":{"mix-blend-mode":"soft-light"},".mix-blend-difference":{"mix-blend-mode":"difference"},".mix-blend-exclusion":{"mix-blend-mode":"exclusion"},".mix-blend-hue":{"mix-blend-mode":"hue"},".mix-blend-saturation":{"mix-blend-mode":"saturation"},".mix-blend-color":{"mix-blend-mode":"color"},".mix-blend-luminosity":{"mix-blend-mode":"luminosity"},".mix-blend-plus-lighter":{"mix-blend-mode":"plus-lighter"}})},boxShadow:(()=>{let t=Ho("boxShadow"),e=["var(--tw-ring-offset-shadow, 0 0 #0000)","var(--tw-ring-shadow, 0 0 #0000)","var(--tw-shadow)"].join(", ");return function({matchUtilities:r,addDefaults:n,theme:i}){n(" box-shadow",{"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),r({shadow:o=>{o=t(o);let s=Th(o);for(let l of s)l.valid&&(l.color="var(--tw-shadow-color)");return{"@defaults box-shadow":{},"--tw-shadow":o==="none"?"0 0 #0000":o,"--tw-shadow-colored":o==="none"?"0 0 #0000":Gx(s),"box-shadow":e}}},{values:i("boxShadow"),type:["shadow"]})}})(),boxShadowColor:({matchUtilities:t,theme:e})=>{t({shadow:r=>({"--tw-shadow-color":Se(r),"--tw-shadow":"var(--tw-shadow-colored)"})},{values:tt(e("boxShadowColor")),type:["color","any"]})},outlineStyle:({addUtilities:t})=>{t({".outline-none":{outline:"2px solid transparent","outline-offset":"2px"},".outline":{"outline-style":"solid"},".outline-dashed":{"outline-style":"dashed"},".outline-dotted":{"outline-style":"dotted"},".outline-double":{"outline-style":"double"}})},outlineWidth:V("outlineWidth",[["outline",["outline-width"]]],{type:["length","number","percentage"]}),outlineOffset:V("outlineOffset",[["outline-offset",["outline-offset"]]],{type:["length","number","percentage","any"],supportsNegativeValues:!0}),outlineColor:({matchUtilities:t,theme:e})=>{t({outline:r=>({"outline-color":Se(r)})},{values:tt(e("outlineColor")),type:["color","any"]})},ringWidth:({matchUtilities:t,addDefaults:e,addUtilities:r,theme:n,config:i})=>{let o=(()=>{if(kt(i(),"respectDefaultRingColorOpacity"))return n("ringColor.DEFAULT");let s=n("ringOpacity.DEFAULT","0.5");return n("ringColor")?.DEFAULT?Gr(n("ringColor")?.DEFAULT,s,`rgb(147 197 253 / ${s})`):`rgb(147 197 253 / ${s})`})();e("ring-width",{"--tw-ring-inset":" ","--tw-ring-offset-width":n("ringOffsetWidth.DEFAULT","0px"),"--tw-ring-offset-color":n("ringOffsetColor.DEFAULT","#fff"),"--tw-ring-color":o,"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),t({ring:s=>({"@defaults ring-width":{},"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${s} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,"box-shadow":["var(--tw-ring-offset-shadow)","var(--tw-ring-shadow)","var(--tw-shadow, 0 0 #0000)"].join(", ")})},{values:n("ringWidth"),type:"length"}),r({".ring-inset":{"@defaults ring-width":{},"--tw-ring-inset":"inset"}})},ringColor:({matchUtilities:t,theme:e,corePlugins:r})=>{t({ring:n=>r("ringOpacity")?ht({color:n,property:"--tw-ring-color",variable:"--tw-ring-opacity"}):{"--tw-ring-color":Se(n)}},{values:Object.fromEntries(Object.entries(tt(e("ringColor"))).filter(([n])=>n!=="DEFAULT")),type:["color","any"]})},ringOpacity:t=>{let{config:e}=t;return V("ringOpacity",[["ring-opacity",["--tw-ring-opacity"]]],{filterDefault:!kt(e(),"respectDefaultRingColorOpacity")})(t)},ringOffsetWidth:V("ringOffsetWidth",[["ring-offset",["--tw-ring-offset-width"]]],{type:"length"}),ringOffsetColor:({matchUtilities:t,theme:e})=>{t({"ring-offset":r=>({"--tw-ring-offset-color":Se(r)})},{values:tt(e("ringOffsetColor")),type:["color","any"]})},blur:({matchUtilities:t,theme:e})=>{t({blur:r=>({"--tw-blur":`blur(${r})`,"@defaults filter":{},filter:Rt})},{values:e("blur")})},brightness:({matchUtilities:t,theme:e})=>{t({brightness:r=>({"--tw-brightness":`brightness(${r})`,"@defaults filter":{},filter:Rt})},{values:e("brightness")})},contrast:({matchUtilities:t,theme:e})=>{t({contrast:r=>({"--tw-contrast":`contrast(${r})`,"@defaults filter":{},filter:Rt})},{values:e("contrast")})},dropShadow:({matchUtilities:t,theme:e})=>{t({"drop-shadow":r=>({"--tw-drop-shadow":Array.isArray(r)?r.map(n=>`drop-shadow(${n})`).join(" "):`drop-shadow(${r})`,"@defaults filter":{},filter:Rt})},{values:e("dropShadow")})},grayscale:({matchUtilities:t,theme:e})=>{t({grayscale:r=>({"--tw-grayscale":`grayscale(${r})`,"@defaults filter":{},filter:Rt})},{values:e("grayscale")})},hueRotate:({matchUtilities:t,theme:e})=>{t({"hue-rotate":r=>({"--tw-hue-rotate":`hue-rotate(${r})`,"@defaults filter":{},filter:Rt})},{values:e("hueRotate"),supportsNegativeValues:!0})},invert:({matchUtilities:t,theme:e})=>{t({invert:r=>({"--tw-invert":`invert(${r})`,"@defaults filter":{},filter:Rt})},{values:e("invert")})},saturate:({matchUtilities:t,theme:e})=>{t({saturate:r=>({"--tw-saturate":`saturate(${r})`,"@defaults filter":{},filter:Rt})},{values:e("saturate")})},sepia:({matchUtilities:t,theme:e})=>{t({sepia:r=>({"--tw-sepia":`sepia(${r})`,"@defaults filter":{},filter:Rt})},{values:e("sepia")})},filter:({addDefaults:t,addUtilities:e})=>{t("filter",{"--tw-blur":" ","--tw-brightness":" ","--tw-contrast":" ","--tw-grayscale":" ","--tw-hue-rotate":" ","--tw-invert":" ","--tw-saturate":" ","--tw-sepia":" ","--tw-drop-shadow":" "}),e({".filter":{"@defaults filter":{},filter:Rt},".filter-none":{filter:"none"}})},backdropBlur:({matchUtilities:t,theme:e})=>{t({"backdrop-blur":r=>({"--tw-backdrop-blur":`blur(${r})`,"@defaults backdrop-filter":{},"backdrop-filter":jt})},{values:e("backdropBlur")})},backdropBrightness:({matchUtilities:t,theme:e})=>{t({"backdrop-brightness":r=>({"--tw-backdrop-brightness":`brightness(${r})`,"@defaults backdrop-filter":{},"backdrop-filter":jt})},{values:e("backdropBrightness")})},backdropContrast:({matchUtilities:t,theme:e})=>{t({"backdrop-contrast":r=>({"--tw-backdrop-contrast":`contrast(${r})`,"@defaults backdrop-filter":{},"backdrop-filter":jt})},{values:e("backdropContrast")})},backdropGrayscale:({matchUtilities:t,theme:e})=>{t({"backdrop-grayscale":r=>({"--tw-backdrop-grayscale":`grayscale(${r})`,"@defaults backdrop-filter":{},"backdrop-filter":jt})},{values:e("backdropGrayscale")})},backdropHueRotate:({matchUtilities:t,theme:e})=>{t({"backdrop-hue-rotate":r=>({"--tw-backdrop-hue-rotate":`hue-rotate(${r})`,"@defaults backdrop-filter":{},"backdrop-filter":jt})},{values:e("backdropHueRotate"),supportsNegativeValues:!0})},backdropInvert:({matchUtilities:t,theme:e})=>{t({"backdrop-invert":r=>({"--tw-backdrop-invert":`invert(${r})`,"@defaults backdrop-filter":{},"backdrop-filter":jt})},{values:e("backdropInvert")})},backdropOpacity:({matchUtilities:t,theme:e})=>{t({"backdrop-opacity":r=>({"--tw-backdrop-opacity":`opacity(${r})`,"@defaults backdrop-filter":{},"backdrop-filter":jt})},{values:e("backdropOpacity")})},backdropSaturate:({matchUtilities:t,theme:e})=>{t({"backdrop-saturate":r=>({"--tw-backdrop-saturate":`saturate(${r})`,"@defaults backdrop-filter":{},"backdrop-filter":jt})},{values:e("backdropSaturate")})},backdropSepia:({matchUtilities:t,theme:e})=>{t({"backdrop-sepia":r=>({"--tw-backdrop-sepia":`sepia(${r})`,"@defaults backdrop-filter":{},"backdrop-filter":jt})},{values:e("backdropSepia")})},backdropFilter:({addDefaults:t,addUtilities:e})=>{t("backdrop-filter",{"--tw-backdrop-blur":" ","--tw-backdrop-brightness":" ","--tw-backdrop-contrast":" ","--tw-backdrop-grayscale":" ","--tw-backdrop-hue-rotate":" ","--tw-backdrop-invert":" ","--tw-backdrop-opacity":" ","--tw-backdrop-saturate":" ","--tw-backdrop-sepia":" "}),e({".backdrop-filter":{"@defaults backdrop-filter":{},"backdrop-filter":jt},".backdrop-filter-none":{"backdrop-filter":"none"}})},transitionProperty:({matchUtilities:t,theme:e})=>{let r=e("transitionTimingFunction.DEFAULT"),n=e("transitionDuration.DEFAULT");t({transition:i=>({"transition-property":i,...i==="none"?{}:{"transition-timing-function":r,"transition-duration":n}})},{values:e("transitionProperty")})},transitionDelay:V("transitionDelay",[["delay",["transitionDelay"]]]),transitionDuration:V("transitionDuration",[["duration",["transitionDuration"]]],{filterDefault:!0}),transitionTimingFunction:V("transitionTimingFunction",[["ease",["transitionTimingFunction"]]],{filterDefault:!0}),willChange:V("willChange",[["will-change",["will-change"]]]),content:V("content",[["content",["--tw-content",["content","var(--tw-content)"]]]]),forcedColorAdjust:({addUtilities:t})=>{t({".forced-color-adjust-auto":{"forced-color-adjust":"auto"},".forced-color-adjust-none":{"forced-color-adjust":"none"}})}};function di(t){if(Array.isArray(t))return t;let e=t.split("[").length-1,r=t.split("]").length-1;if(e!==r)throw new Error(`Path is invalid. Has unbalanced brackets: ${t}`);return t.split(/\.(?![^\[]*\])|[\[\]]/g).filter(Boolean)}var Vh=new Map([["{","}"],["[","]"],["(",")"]]),sh=new Map(Array.from(Vh.entries()).map(([t,e])=>[e,t])),Rk=new Set(['"',"'","`"]);function Ml(t){let e=[],r=!1;for(let n=0;n0)}function ah(t){return(t>0n)-(t<0n)}function jk(t,e){let r=0n,n=0n;for(let[i,o]of e)t&i&&(r=r|i,n=n|o);return t&~r|n}var qk=class{constructor(){this.offsets={defaults:0n,base:0n,components:0n,utilities:0n,variants:0n,user:0n},this.layerPositions={defaults:0n,base:1n,components:2n,utilities:3n,user:4n,variants:5n},this.reservedVariantBits=0n,this.variantOffsets=new Map}create(t){return{layer:t,parentLayer:t,arbitrary:0n,variants:0n,parallelIndex:0n,index:this.offsets[t]++,options:[]}}arbitraryProperty(){return{...this.create("utilities"),arbitrary:1n}}forVariant(t,e=0){let r=this.variantOffsets.get(t);if(r===void 0)throw new Error(`Cannot find offset for unknown variant ${t}`);return{...this.create("variants"),variants:r<n.startsWith("[")).sort(([n],[i])=>Uk(n,i)),e=t.map(([,n])=>n).sort((n,i)=>ah(n-i));return t.map(([,n],i)=>[n,e[i]]).filter(([n,i])=>n!==i)}remapArbitraryVariantOffsets(t){let e=this.recalculateVariantOffsets();return e.length===0?t:t.map(r=>{let[n,i]=r;return n={...n,variants:jk(n.variants,e)},[n,i]})}sort(t){return t=this.remapArbitraryVariantOffsets(t),t.sort(([e],[r])=>ah(this.compare(e,r)))}};function lh(t){let e=null;for(let r of t)e=e??r,e=e>r?e:r;return e}function Uk(t,e){let r=t.length,n=e.length,i=rArray.isArray(n)?{type:n[0],...n[1]}:{type:n,preferOnConflict:!1})}}function Bk(t){let e=[],r="",n=0;for(let i=0;i0&&e.push(r.trim()),e=e.filter(i=>i!==""),e}function zk(t,e,{before:r=[]}={}){if(r=[].concat(r),r.length<=0){t.push(e);return}let n=t.length-1;for(let i of r){let o=t.indexOf(i);o!==-1&&(n=Math.min(n,o))}t.splice(n,0,e)}function Hh(t){return Array.isArray(t)?t.flatMap(e=>!Array.isArray(e)&&!$t(e)?e:zl(e)):Hh([t])}function Wk(t,e){return(0,Zl.default)(n=>{let i=[];return e&&e(n),n.walkClasses(o=>{i.push(o.value)}),i}).transformSync(t)}function Vk(t){t.walkPseudos(e=>{e.value===":not"&&e.remove()})}function Hk(t,e={containsNonOnDemandable:!1},r=0){let n=[],i=[];t.type==="rule"?i.push(...t.selectors):t.type==="atrule"&&t.walkRules(o=>i.push(...o.selectors));for(let o of i){let s=Wk(o,Vk);s.length===0&&(e.containsNonOnDemandable=!0);for(let l of s)n.push(l)}return r===0?[e.containsNonOnDemandable||n.length===0,n]:n}function Mo(t){return Hh(t).flatMap(e=>{let r=new Map,[n,i]=Hk(e);return n&&i.unshift(Hr),i.map(o=>(r.has(e)||r.set(e,e),[o,r.get(e)]))})}function Ll(t){return t.startsWith("@")||t.includes("&")}function Lo(t){t=t.replace(/\n+/g,"").replace(/\s{1,}/g," ").trim();let e=Bk(t).map(r=>{if(!r.startsWith("@"))return({format:o})=>o(r);let[,n,i]=/@(\S*)( .+|[({].*)?/g.exec(r);return({wrap:o})=>o(be.atRule({name:n,params:i?.trim()??""}))}).reverse();return r=>{for(let n of e)n(r)}}function Gk(t,e,{variantList:r,variantMap:n,offsets:i,classList:o}){function s(d,f){return d?(0,zh.default)(t,d,f):t}function l(d){return Wl(t.prefix,d)}function a(d,f){return d===Hr?Hr:f.respectPrefix?e.tailwindConfig.prefix+d:d}function u(d,f,g={}){let w=di(d),h=s(["theme",...w],f);return Ho(w[0])(h,g)}let c=0,p={postcss:be,prefix:l,e:fr,config:s,theme:u,corePlugins:d=>Array.isArray(t.corePlugins)?t.corePlugins.includes(d):s(["corePlugins",d],!0),variants:()=>[],addBase(d){for(let[f,g]of Mo(d)){let w=a(f,{}),h=i.create("base");e.candidateRuleMap.has(w)||e.candidateRuleMap.set(w,[]),e.candidateRuleMap.get(w).push([{sort:h,layer:"base"},g])}},addDefaults(d,f){let g={[`@defaults ${d}`]:f};for(let[w,h]of Mo(g)){let m=a(w,{});e.candidateRuleMap.has(m)||e.candidateRuleMap.set(m,[]),e.candidateRuleMap.get(m).push([{sort:i.create("defaults"),layer:"defaults"},h])}},addComponents(d,f){f=Object.assign({},{preserveSource:!1,respectPrefix:!0,respectImportant:!1},Array.isArray(f)?{}:f);for(let[w,h]of Mo(d)){let m=a(w,f);o.add(m),e.candidateRuleMap.has(m)||e.candidateRuleMap.set(m,[]),e.candidateRuleMap.get(m).push([{sort:i.create("components"),layer:"components",options:f},h])}},addUtilities(d,f){f=Object.assign({},{preserveSource:!1,respectPrefix:!0,respectImportant:!0},Array.isArray(f)?{}:f);for(let[w,h]of Mo(d)){let m=a(w,f);o.add(m),e.candidateRuleMap.has(m)||e.candidateRuleMap.set(m,[]),e.candidateRuleMap.get(m).push([{sort:i.create("utilities"),layer:"utilities",options:f},h])}},matchUtilities:function(d,f){f=uh({...{respectPrefix:!0,respectImportant:!0,modifiers:!1},...f});let w=i.create("utilities");for(let h in d){let m=function(y,{isOnlyPlugin:C}){let[E,S,D]=th(f.types,y,f,t);if(E===void 0)return[];if(!f.types.some(({type:Y})=>Y===S))if(C)Ye.warn([`Unnecessary typehint \`${S}\` in \`${h}-${y}\`.`,`You can safely update it to \`${h}-${y.replace(S+":","")}\`.`]);else return[];if(!Ml(E))return[];let O={get modifier(){return f.modifiers||Ye.warn(`modifier-used-without-options-for-${h}`,["Your plugin must set `modifiers: true` in its options to support modifiers."]),D}},F=kt(t,"generalizedModifiers");return[].concat(F?v(E,O):v(E)).filter(Boolean).map(Y=>({[nh(h,y)]:Y}))},b=a(h,f),v=d[h];o.add([b,f]);let _=[{sort:w,layer:"utilities",options:f},m];e.candidateRuleMap.has(b)||e.candidateRuleMap.set(b,[]),e.candidateRuleMap.get(b).push(_)}},matchComponents:function(d,f){f=uh({...{respectPrefix:!0,respectImportant:!1,modifiers:!1},...f});let w=i.create("components");for(let h in d){let m=function(y,{isOnlyPlugin:C}){let[E,S,D]=th(f.types,y,f,t);if(E===void 0)return[];if(!f.types.some(({type:Y})=>Y===S))if(C)Ye.warn([`Unnecessary typehint \`${S}\` in \`${h}-${y}\`.`,`You can safely update it to \`${h}-${y.replace(S+":","")}\`.`]);else return[];if(!Ml(E))return[];let O={get modifier(){return f.modifiers||Ye.warn(`modifier-used-without-options-for-${h}`,["Your plugin must set `modifiers: true` in its options to support modifiers."]),D}},F=kt(t,"generalizedModifiers");return[].concat(F?v(E,O):v(E)).filter(Boolean).map(Y=>({[nh(h,y)]:Y}))},b=a(h,f),v=d[h];o.add([b,f]);let _=[{sort:w,layer:"components",options:f},m];e.candidateRuleMap.has(b)||e.candidateRuleMap.set(b,[]),e.candidateRuleMap.get(b).push(_)}},addVariant(d,f,g={}){f=[].concat(f).map(w=>{if(typeof w!="string")return(h={})=>{let{args:m,modifySelectors:b,container:v,separator:_,wrap:y,format:C}=h,E=w(Object.assign({modifySelectors:b,container:v,separator:_},g.type===kl.MatchVariant&&{args:m,wrap:y,format:C}));if(typeof E=="string"&&!Ll(E))throw new Error(`Your custom variant \`${d}\` has an invalid format string. Make sure it's an at-rule or contains a \`&\` placeholder.`);return Array.isArray(E)?E.filter(S=>typeof S=="string").map(S=>Lo(S)):E&&typeof E=="string"&&Lo(E)(h)};if(!Ll(w))throw new Error(`Your custom variant \`${d}\` has an invalid format string. Make sure it's an at-rule or contains a \`&\` placeholder.`);return Lo(w)}),zk(r,d,g),n.set(d,f),e.variantOptions.set(d,g)},matchVariant(d,f,g){let w=g?.id??++c,h=d==="@",m=kt(t,"generalizedModifiers");for(let[v,_]of Object.entries(g?.values??{}))v!=="DEFAULT"&&p.addVariant(h?`${d}${v}`:`${d}-${v}`,({args:y,container:C})=>f(_,m?{modifier:y?.modifier,container:C}:{container:C}),{...g,value:_,id:w,type:kl.MatchVariant,variantInfo:Fl.Base});let b="DEFAULT"in(g?.values??{});p.addVariant(d,({args:v,container:_})=>v?.value===Tl&&!b?null:f(v?.value===Tl?g.values.DEFAULT:v?.value??(typeof v=="string"?v:""),m?{modifier:v?.modifier,container:_}:{container:_}),{...g,id:w,type:kl.MatchVariant,variantInfo:Fl.Dynamic})}};return p}function Gh(t){t.walkAtRules(e=>{["responsive","variants"].includes(e.name)&&(Gh(e),e.before(e.nodes),e.remove())})}function Yk(t){let e=[];return t.each(r=>{r.type==="atrule"&&["responsive","variants"].includes(r.name)&&(r.name="layer",r.params="utilities")}),t.walkAtRules("layer",r=>{if(Gh(r),r.params==="base"){for(let n of r.nodes)e.push(function({addBase:i}){i(n,{respectPrefix:!1})});r.remove()}else if(r.params==="components"){for(let n of r.nodes)e.push(function({addComponents:i}){i(n,{respectPrefix:!1,preserveSource:!0})});r.remove()}else if(r.params==="utilities"){for(let n of r.nodes)e.push(function({addUtilities:i}){i(n,{respectPrefix:!1,preserveSource:!0})});r.remove()}}),e}function Qk(t,e){let r=Object.entries({...Le,...Nk}).map(([a,u])=>t.tailwindConfig.corePlugins.includes(a)?u:null).filter(Boolean),n=t.tailwindConfig.plugins.map(a=>(a.__isOptionsFunction&&(a=a()),typeof a=="function"?a:a.handler)),i=Yk(e),o=[Le.childVariant,Le.pseudoElementVariants,Le.pseudoClassVariants,Le.hasVariants,Le.ariaVariants,Le.dataVariants],s=[Le.supportsVariants,Le.reducedMotionVariants,Le.prefersContrastVariants,Le.screenVariants,Le.orientationVariants,Le.directionVariants,Le.darkVariants,Le.forcedColorsVariants,Le.printVariant];return(t.tailwindConfig.darkMode==="class"||Array.isArray(t.tailwindConfig.darkMode)&&t.tailwindConfig.darkMode[0]==="class")&&(s=[Le.supportsVariants,Le.reducedMotionVariants,Le.prefersContrastVariants,Le.darkVariants,Le.screenVariants,Le.orientationVariants,Le.directionVariants,Le.forcedColorsVariants,Le.printVariant]),[...r,...o,...n,...s,...i]}function Kk(t,e){let r=[],n=new Map;e.variantMap=n;let i=new qk;e.offsets=i;let o=new Set,s=Gk(e.tailwindConfig,e,{variantList:r,variantMap:n,offsets:i,classList:o});for(let c of t)if(Array.isArray(c))for(let p of c)p(s);else c?.(s);i.recordVariants(r,c=>n.get(c).length);for(let[c,p]of n.entries())e.variantMap.set(c,p.map((d,f)=>[i.forVariant(c,f),d]));let l=(e.tailwindConfig.safelist??[]).filter(Boolean);if(l.length>0){let c=[];for(let p of l){if(typeof p=="string"){e.changedContent.push({content:p,extension:"html"});continue}if(p instanceof RegExp){Ye.warn("root-regex",["Regular expressions in `safelist` work differently in Tailwind CSS v3.0.","Update your `safelist` configuration to eliminate this warning.","https://tailwindcss.com/docs/content-configuration#safelisting-classes"]);continue}c.push(p)}if(c.length>0){let p=new Map,d=e.tailwindConfig.prefix.length,f=c.some(g=>g.pattern.source.includes("!"));for(let g of o){let w=Array.isArray(g)?(()=>{let[h,m]=g,v=Object.keys(m?.values??{}).map(_=>Fo(h,_));return m?.supportsNegativeValues&&(v=[...v,...v.map(_=>"-"+_)],v=[...v,...v.map(_=>_.slice(0,d)+"-"+_.slice(d))]),m.types.some(({type:_})=>_==="color")&&(v=[...v,...v.flatMap(_=>Object.keys(e.tailwindConfig.theme.opacity).map(y=>`${_}/${y}`))]),f&&m?.respectImportant&&(v=[...v,...v.map(_=>"!"+_)]),v})():[g];for(let h of w)for(let{pattern:m,variants:b=[]}of c)if(m.lastIndex=0,p.has(m)||p.set(m,0),!!m.test(h)){p.set(m,p.get(m)+1),e.changedContent.push({content:h,extension:"html"});for(let v of b)e.changedContent.push({content:v+e.tailwindConfig.separator+h,extension:"html"})}}for(let[g,w]of p.entries())w===0&&Ye.warn([`The safelist pattern \`${g}\` doesn't match any Tailwind CSS classes.`,"Fix this pattern or remove it from your `safelist` configuration.","https://tailwindcss.com/docs/content-configuration#safelisting-classes"])}}let a=[].concat(e.tailwindConfig.darkMode??"media")[1]??"dark",u=[Sl(e,a),Sl(e,"group"),Sl(e,"peer")];e.getClassOrder=function(p){let d=[...p].sort((h,m)=>h===m?0:h[h,null])),g=Zh(new Set(d),e,!0);g=e.offsets.sort(g);let w=BigInt(u.length);for(let[,h]of g){let m=h.raws.tailwind.candidate;f.set(m,f.get(m)??w++)}return p.map(h=>{let m=f.get(h)??null,b=u.indexOf(h);return m===null&&b!==-1&&(m=BigInt(b)),[h,m]})},e.getClassList=function(p={}){let d=[];for(let f of o)if(Array.isArray(f)){let[g,w]=f,h=[],m=Object.keys(w?.modifiers??{});w?.types?.some(({type:_})=>_==="color")&&m.push(...Object.keys(e.tailwindConfig.theme.opacity??{}));let b={modifiers:m},v=p.includeMetadata&&m.length>0;for(let[_,y]of Object.entries(w?.values??{})){if(y==null)continue;let C=Fo(g,_);if(d.push(v?[C,b]:C),w?.supportsNegativeValues&&qo(y)){let E=Fo(g,`-${_}`);h.push(v?[E,b]:E)}}d.push(...h)}else d.push(f);return d},e.getVariants=function(){let p=[];for(let[d,f]of e.variantOptions.entries())f.variantInfo!==Fl.Base&&p.push({name:d,isArbitrary:f.type===Symbol.for("MATCH_VARIANT"),values:Object.keys(f.values??{}),hasDash:d!=="@",selectors({modifier:g,value:w}={}){let h="__TAILWIND_PLACEHOLDER__",m=be.rule({selector:`.${h}`}),b=be.root({nodes:[m.clone()]}),v=b.toString(),_=(e.variantMap.get(d)??[]).flatMap(([Y,U])=>U),y=[];for(let Y of _){let U=[],ne={args:{modifier:g,value:f.values?.[w]??w},separator:e.tailwindConfig.separator,modifySelectors(_e){return b.each(Ve=>{Ve.type==="rule"&&(Ve.selectors=Ve.selectors.map(R=>_e({get className(){return Kh(R)},selector:R})))}),b},format(_e){U.push(_e)},wrap(_e){U.push(`@${_e.name} ${_e.params} { & }`)},container:b},pe=Y(ne);if(U.length>0&&y.push(U),Array.isArray(pe))for(let _e of pe)U=[],_e(ne),y.push(U)}let C=[],E=b.toString();v!==E&&(b.walkRules(Y=>{let U=Y.selector,ne=(0,Zl.default)(pe=>{pe.walkClasses(_e=>{_e.value=`${d}${e.tailwindConfig.separator}${_e.value}`})}).processSync(U);C.push(U.replace(ne,"&").replace(h,"&"))}),b.walkAtRules(Y=>{C.push(`@${Y.name} (${Y.params}) { & }`)}));let S=!(w in(f.values??{})),D=f[eu]??{},O=!(S||D.respectPrefix===!1);y=y.map(Y=>Y.map(U=>({format:U,respectPrefix:O}))),C=C.map(Y=>({format:Y,respectPrefix:O}));let F={candidate:h,context:e},Z=y.map(Y=>Uh(`.${h}`,Bo(Y,F),F).replace(`.${h}`,"&").replace("{ & }","").trim());return C.length>0&&Z.push(Bo(C,F).toString().replace(`.${h}`,"&")),Z}});return p}}function Yh(t,e){t.classCache.has(e)&&(t.notClassCache.add(e),t.classCache.delete(e),t.applyClassCache.delete(e),t.candidateRuleMap.delete(e),t.candidateRuleCache.delete(e),t.stylesheetCache=null)}function Jk(t,e){let r=e.raws.tailwind.candidate;if(r){for(let n of t.ruleCache)n[1].raws.tailwind.candidate===r&&t.ruleCache.delete(n);Yh(t,r)}}function Xk(t,e=[],r=be.root()){let n={disposables:[],ruleCache:new Set,candidateRuleCache:new Map,classCache:new Map,applyClassCache:new Map,notClassCache:new Set(t.blocklist??[]),postCssNodeCache:new Map,candidateRuleMap:new Map,tailwindConfig:t,changedContent:e,variantMap:new Map,stylesheetCache:null,variantOptions:new Map,markInvalidUtilityCandidate:o=>Yh(n,o),markInvalidUtilityNode:o=>Jk(n,o)},i=Qk(n,r);return Kk(i,n),n}function Qh(t,e){let r=(0,Nl.default)().astSync(t);return r.each(n=>{n.nodes[0].type==="pseudo"&&n.nodes[0].value===":is"&&n.nodes.every(o=>o.type!=="combinator")||(n.nodes=[Nl.default.pseudo({value:":is",nodes:[n.clone()]})]),Jl(n)}),`${e} ${r.toString()}`}var Zk=(0,Wo.default)(t=>t.first.filter(({type:e})=>e==="class").pop().value);function Kh(t){return Zk.transformSync(t)}function*eS(t){let e=1/0;for(;e>=0;){let r,n=!1;if(e===1/0&&t.endsWith("]")){let s=t.indexOf("[");t[s-1]==="-"?r=s-1:t[s-1]==="/"?(r=s-1,n=!0):r=-1}else e===1/0&&t.includes("/")?(r=t.lastIndexOf("/"),n=!0):r=t.lastIndexOf("-",e);if(r<0)break;let i=t.slice(0,r),o=t.slice(n?r:r+1);e=r-1,!(i===""||o==="/")&&(yield[i,o])}}function tS(t,e){if(t.length===0||e.tailwindConfig.prefix==="")return t;for(let r of t){let[n]=r;if(n.options.respectPrefix){let i=be.root({nodes:[r[1].clone()]}),o=r[1].raws.tailwind.classCandidate;i.walkRules(s=>{let l=o.startsWith("-");s.selector=Wl(e.tailwindConfig.prefix,s.selector,l)}),r[1]=i.nodes[0]}}return t}function rS(t,e){if(t.length===0)return t;let r=[];function n(i){return i.parent&&i.parent.type==="atrule"&&i.parent.name==="keyframes"}for(let[i,o]of t){let s=be.root({nodes:[o.clone()]});s.walkRules(l=>{if(n(l))return;let a=(0,Wo.default)().astSync(l.selector);a.each(u=>qh(u,e)),gk(a,u=>u===e?`!${u}`:u),l.selector=a.toString(),l.walkDecls(u=>u.important=!0)}),r.push([{...i,important:!0},s.nodes[0]])}return r}function nS(t,e,r){if(e.length===0)return e;let n={modifier:null,value:Tl};{let[i,...o]=Dt(t,"/");if(o.length>1&&(i=i+"/"+o.slice(0,-1).join("/"),o=o.slice(-1)),o.length&&!r.variantMap.has(t)&&(t=i,n.modifier=o[0],!kt(r.tailwindConfig,"generalizedModifiers")))return[]}if(t.endsWith("]")&&!t.startsWith("[")){let i=/(.)(-?)\[(.*)\]/g.exec(t);if(i){let[,o,s,l]=i;if(o==="@"&&s==="-")return[];if(o!=="@"&&s==="")return[];t=t.replace(`${s}[${l}]`,""),n.value=l}}if(jl(t)&&!r.variantMap.has(t)){let i=r.offsets.recordVariant(t),o=Ee(t.slice(1,-1)),s=Dt(o,",");if(s.length>1)return[];if(!s.every(Ll))return[];let l=s.map((a,u)=>[r.offsets.applyParallelOffset(i,u),Lo(a.trim())]);r.variantMap.set(t,l)}if(r.variantMap.has(t)){let i=jl(t),o=r.variantOptions.get(t)?.[eu]??{},s=r.variantMap.get(t).slice(),l=[],a=!(i||o.respectPrefix===!1);for(let[u,c]of e){if(u.layer==="user")continue;let p=be.root({nodes:[c.clone()]});for(let[d,f,g]of s){let w=function(){m.raws.neededBackup||(m.raws.neededBackup=!0,m.walkRules(y=>y.raws.originalSelector=y.selector))},h=function(y){return w(),m.each(C=>{C.type==="rule"&&(C.selectors=C.selectors.map(E=>y({get className(){return Kh(E)},selector:E})))}),m},m=(g??p).clone(),b=[],v=f({get container(){return w(),m},separator:r.tailwindConfig.separator,modifySelectors:h,wrap(y){let C=m.nodes;m.removeAll(),y.append(C),m.append(y)},format(y){b.push({format:y,respectPrefix:a})},args:n});if(Array.isArray(v)){for(let[y,C]of v.entries())s.push([r.offsets.applyParallelOffset(d,y),C,m.clone()]);continue}if(typeof v=="string"&&b.push({format:v,respectPrefix:a}),v===null)continue;m.raws.neededBackup&&(delete m.raws.neededBackup,m.walkRules(y=>{let C=y.raws.originalSelector;if(!C||(delete y.raws.originalSelector,C===y.selector))return;let E=y.selector,S=(0,Wo.default)(D=>{D.walkClasses(O=>{O.value=`${t}${r.tailwindConfig.separator}${O.value}`})}).processSync(C);b.push({format:E.replace(S,"&"),respectPrefix:a}),y.selector=C})),m.nodes[0].raws.tailwind={...m.nodes[0].raws.tailwind,parentLayer:u.layer};let _=[{...u,sort:r.offsets.applyVariantOffset(u.sort,d,Object.assign(n,r.variantOptions.get(t))),collectedFormats:(u.collectedFormats??[]).concat(b)},m.nodes[0]];l.push(_)}}return l}return[]}function Rl(t,e,r={}){return!$t(t)&&!Array.isArray(t)?[[t],r]:Array.isArray(t)?Rl(t[0],e,t[1]):(e.has(t)||e.set(t,zl(t)),[e.get(t),r])}var iS=/^[a-z_-]/;function oS(t){return iS.test(t)}function sS(t){if(!t.includes("://"))return!1;try{let e=new URL(t);return e.scheme!==""&&e.host!==""}catch{return!1}}function ch(t){let e=!0;return t.walkDecls(r=>{if(!Jh(r.prop,r.value))return e=!1,!1}),e}function Jh(t,e){if(sS(`${t}:${e}`))return!1;try{return be.parse(`a{${t}:${e}}`).toResult(),!0}catch{return!1}}function aS(t,e){let[,r,n]=t.match(/^\[([a-zA-Z0-9-_]+):(\S+)\]$/)??[];if(n===void 0||!oS(r)||!Ml(n))return null;let i=Ee(n,{property:r});return Jh(r,i)?[[{sort:e.offsets.arbitraryProperty(),layer:"utilities"},()=>({[Bh(t)]:{[r]:i}})]]:null}function*lS(t,e){e.candidateRuleMap.has(t)&&(yield[e.candidateRuleMap.get(t),"DEFAULT"]),yield*function*(l){l!==null&&(yield[l,"DEFAULT"])}(aS(t,e));let r=t,n=!1,i=e.tailwindConfig.prefix,o=i.length,s=r.startsWith(i)||r.startsWith(`-${i}`);r[o]==="-"&&s&&(n=!0,r=i+r.slice(o+1)),n&&e.candidateRuleMap.has(r)&&(yield[e.candidateRuleMap.get(r),"-DEFAULT"]);for(let[l,a]of eS(r))e.candidateRuleMap.has(l)&&(yield[e.candidateRuleMap.get(l),n?`-${a}`:a])}function uS(t,e){return t===Hr?[Hr]:Dt(t,e)}function*cS(t,e){for(let r of t)r[1].raws.tailwind={...r[1].raws.tailwind,classCandidate:e,preserveSource:r[0].options?.preserveSource??!1},yield r}function*Xh(t,e){let r=e.tailwindConfig.separator,[n,...i]=uS(t,r).reverse(),o=!1;n.startsWith("!")&&(o=!0,n=n.slice(1));for(let s of lS(n,e)){let l=[],a=new Map,[u,c]=s,p=u.length===1;for(let[d,f]of u){let g=[];if(typeof f=="function")for(let w of[].concat(f(c,{isOnlyPlugin:p}))){let[h,m]=Rl(w,e.postCssNodeCache);for(let b of h)g.push([{...d,options:{...d.options,...m}},b])}else if(c==="DEFAULT"||c==="-DEFAULT"){let w=f,[h,m]=Rl(w,e.postCssNodeCache);for(let b of h)g.push([{...d,options:{...d.options,...m}},b])}if(g.length>0){let w=Array.from(Fh(d.options?.types??[],c,d.options??{},e.tailwindConfig)).map(([h,m])=>m);w.length>0&&a.set(g,w),l.push(g)}}if(jl(c)){if(l.length>1){let d=function(h){return h.length===1?h[0]:h.find(m=>{let b=a.get(m);return m.some(([{options:v},_])=>ch(_)?v.types.some(({type:y,preferOnConflict:C})=>b.includes(y)&&C):!1)})},[f,g]=l.reduce((h,m)=>(m.some(([{options:v}])=>v.types.some(({type:_})=>_==="any"))?h[0].push(m):h[1].push(m),h),[[],[]]),w=d(g)??d(f);if(w)l=[w];else{let h=l.map(b=>new Set([...a.get(b)??[]]));for(let b of h)for(let v of b){let _=!1;for(let y of h)b!==y&&y.has(v)&&(y.delete(v),_=!0);_&&b.delete(v)}let m=[];for(let[b,v]of h.entries())for(let _ of v){let y=l[b].map(([,C])=>C).flat().map(C=>C.toString().split(` `).slice(1,-1).map(E=>E.trim()).map(E=>` ${E}`).join(` `)).join(` -`);m.push(` Use \`${t.replace("[",`[${_}:`)}\` for \`${y.trim()}\``);break}He.warn([`The class \`${t}\` is ambiguous and matches multiple utilities.`,...m,`If this is content and not a class, replace it with \`${t.replace("[","[").replace("]","]")}\` to silence this warning.`]);continue}}l=l.map(d=>d.filter(f=>ch(f[1])))}l=l.flat(),l=Array.from(uS(l,n)),l=eS(l,e),o&&(l=tS(l,n));for(let d of i)l=rS(d,l,e);for(let d of l)d[1].raws.tailwind={...d[1].raws.tailwind,candidate:t},d=cS(d,{context:e,candidate:t}),d!==null&&(yield d)}}function cS(t,{context:e,candidate:r}){if(!t[0].collectedFormats)return t;let n=!0,i;try{i=Bo(t[0].collectedFormats,{context:e,candidate:r})}catch{return null}let o=be.root({nodes:[t[1].clone()]});return o.walkRules(s=>{if(!No(s))try{let l=Uh(s.selector,i,{candidate:r,context:e});if(l===null){s.remove();return}s.selector=l}catch{return n=!1,!1}}),!n||o.nodes.length===0?null:(t[1]=o.nodes[0],t)}function No(t){return t.parent&&t.parent.type==="atrule"&&t.parent.name==="keyframes"}function fS(t){if(t===!0)return e=>{No(e)||e.walkDecls(r=>{r.parent.type==="rule"&&!No(r.parent)&&(r.important=!0)})};if(typeof t=="string")return e=>{No(e)||(e.selectors=e.selectors.map(r=>Qh(r,t)))}}function Zh(t,e,r=!1){let n=[],i=fS(e.tailwindConfig.important);for(let o of t){if(e.notClassCache.has(o))continue;if(e.candidateRuleCache.has(o)){n=n.concat(Array.from(e.candidateRuleCache.get(o)));continue}let s=Array.from(Xh(o,e));if(s.length===0){e.notClassCache.add(o);continue}e.classCache.set(o,s);let l=e.candidateRuleCache.get(o)??new Set;e.candidateRuleCache.set(o,l);for(let a of s){let[{sort:u,options:c},p]=a;if(c.respectImportant&&i){let f=be.root({nodes:[p.clone()]});f.walkRules(i),p=f.nodes[0]}let d=[u,r?p.clone():p];l.add(d),e.ruleCache.add(d),n.push(d)}}return n}function jl(t){return t.startsWith("[")&&t.endsWith("]")}function ai(t,e=void 0,r=void 0){return t.map(n=>{let i=n.clone();return r!==void 0&&(i.raws.tailwind={...i.raws.tailwind,...r}),e!==void 0&&em(i,o=>{if(o.raws.tailwind?.preserveSource===!0&&o.source)return!1;o.source=e}),i})}function em(t,e){e(t)!==!1&&t.each?.(r=>em(r,e))}var tm=/[\\^$.*+?()[\]{}|]/g,dS=RegExp(tm.source);function tu(t){return t=Array.isArray(t)?t:[t],t=t.map(e=>e instanceof RegExp?e.source:e),t.join("")}function yt(t){return new RegExp(tu(t),"g")}function xr(t){return`(?:${t.map(tu).join("|")})`}function fh(t){return`(?:${tu(t)})?`}function pS(t){return t&&dS.test(t)?t.replace(tm,"\\$&"):t||""}function hS(t){let e=Array.from(mS(t));return r=>{let n=[];for(let i of e)for(let o of r.match(i)??[])n.push(vS(o));return n}}function*mS(t){let e=t.tailwindConfig.separator,r=t.tailwindConfig.prefix!==""?fh(yt([/-?/,pS(t.tailwindConfig.prefix)])):"",n=xr([/\[[^\s:'"`]+:[^\s\[\]]+\]/,/\[[^\s:'"`\]]+:[^\s]+?\[[^\s]+\][^\s]+?\]/,yt([xr([/-?(?:\w+)/,/@(?:\w+)/]),fh(xr([yt([xr([/-(?:\w+-)*\['[^\s]+'\]/,/-(?:\w+-)*\["[^\s]+"\]/,/-(?:\w+-)*\[`[^\s]+`\]/,/-(?:\w+-)*\[(?:[^\s\[\]]+\[[^\s\[\]]+\])*[^\s:\[\]]+\]/]),/(?![{([]])/,/(?:\/[^\s'"`\\><$]*)?/]),yt([xr([/-(?:\w+-)*\['[^\s]+'\]/,/-(?:\w+-)*\["[^\s]+"\]/,/-(?:\w+-)*\[`[^\s]+`\]/,/-(?:\w+-)*\[(?:[^\s\[\]]+\[[^\s\[\]]+\])*[^\s\[\]]+\]/]),/(?![{([]])/,/(?:\/[^\s'"`\\$]*)?/]),/[-\/][^\s'"`\\$={><]*/]))])]),i=[xr([yt([/@\[[^\s"'`]+\](\/[^\s"'`]+)?/,e]),yt([/([^\s"'`\[\\]+-)?\[[^\s"'`]+\]\/\w+/,e]),yt([/([^\s"'`\[\\]+-)?\[[^\s"'`]+\]/,e]),yt([/[^\s"'`\[\\]+/,e])]),xr([yt([/([^\s"'`\[\\]+-)?\[[^\s`]+\]\/\w+/,e]),yt([/([^\s"'`\[\\]+-)?\[[^\s`]+\]/,e]),yt([/[^\s`\[\\]+/,e])])];for(let o of i)yield yt(["((?=((",o,")+))\\2)?",/!?/,r,n]);yield/[^<>"'`\s.(){}[\]#=%$]*[^<>"'`\s.(){}[\]#=%:$]/g}var gS=/([\[\]'"`])([^\[\]'"`])?/g,bS=/[^"'`\s<>\]]+/;function vS(t){if(!t.includes("-["))return t;let e=0,r=[],n=t.matchAll(gS);n=Array.from(n).flatMap(i=>{let[,...o]=i;return o.map((s,l)=>Object.assign([],i,{index:i.index+l,0:s}))});for(let i of n){let o=i[0],s=r[r.length-1];if(o===s?r.pop():(o==="'"||o==='"'||o==="`")&&r.push(o),!s){if(o==="["){e++;continue}else if(o==="]"){e--;continue}if(e<0)return t.substring(0,i.index-1);if(e===0&&!bS.test(o))return t.substring(0,i.index)}}return t}var Yt=Nx,dh={DEFAULT:hS},ph={DEFAULT:t=>t,svelte:t=>t.replace(/(?:^|\s)class:/g," ")};function yS(t,e){let r=t.tailwindConfig.content.extract;return r[e]||r.DEFAULT||dh[e]||dh.DEFAULT(t)}function _S(t,e){let r=t.content.transform;return r[e]||r.DEFAULT||ph[e]||ph.DEFAULT}var li=new WeakMap;function wS(t,e,r,n){li.has(e)||li.set(e,new Lx.default({maxSize:25e3}));for(let i of t.split(` -`))if(i=i.trim(),!n.has(i))if(n.add(i),li.get(e).has(i))for(let o of li.get(e).get(i))r.add(o);else{let o=e(i).filter(l=>l!=="!*"),s=new Set(o);for(let l of s)r.add(l);li.get(e).set(i,s)}}function xS(t,e){let r=e.offsets.sort(t),n={base:new Set,defaults:new Set,components:new Set,utilities:new Set,variants:new Set};for(let[i,o]of r)n[i.layer].add(o);return n}function kS(t){return async e=>{let r={base:null,components:null,utilities:null,variants:null};if(e.walkAtRules(g=>{g.name==="tailwind"&&Object.keys(r).includes(g.params)&&(r[g.params]=g)}),Object.values(r).every(g=>g===null))return e;let n=new Set([...t.candidates??[],Vr]),i=new Set;Yt.DEBUG&&console.time("Reading changed files");{let g=[];for(let h of t.changedContent){let m=_S(t.tailwindConfig,h.extension),b=yS(t,h.extension);g.push([h,{transformer:m,extractor:b}])}let w=500;for(let h=0;h{v=b?await kh.promises.readFile(b,"utf8"):v,wS(_(v),y,n,i)}))}}Yt.DEBUG&&console.timeEnd("Reading changed files");let o=t.classCache.size;Yt.DEBUG&&console.time("Generate rules"),Yt.DEBUG&&console.time("Sorting candidates");let s=new Set([...n].sort((g,w)=>g===w?0:g{let w=g.raws.tailwind?.parentLayer;return w==="components"?r.components!==null:w==="utilities"?r.utilities!==null:!0});r.variants?(r.variants.before(ai(d,r.variants.source,{layer:"variants"})),r.variants.remove()):d.length>0&&e.append(ai(d,e.source,{layer:"variants"})),e.source.end=e.source.end??e.source.start;let f=d.some(g=>g.raws.tailwind?.parentLayer==="utilities");r.utilities&&c.size===0&&!f&&He.warn("content-problems",["No utility classes were detected in your source files. If this is unexpected, double-check the `content` option in your Tailwind CSS configuration.","https://tailwindcss.com/docs/content-configuration"]),Yt.DEBUG&&(console.log("Potential classes: ",n.size),console.log("Active contexts: ",Rx.size)),t.changedContent=[],e.walkAtRules("layer",g=>{Object.keys(r).includes(g.params)&&g.remove()})}}function Ro(t){let e=new Map;be.root({nodes:[t.clone()]}).walkRules(o=>{(0,Go.default)(s=>{s.walkClasses(l=>{let a=l.parent.toString(),u=e.get(a);u||e.set(a,u=new Set),u.add(l.value)})}).processSync(o.selector)});let n=Array.from(e.values(),o=>Array.from(o)),i=n.flat();return Object.assign(i,{groups:n})}var SS=(0,Go.default)();function El(t){return SS.astSync(t)}function hh(t,e){let r=new Set;for(let n of t)r.add(n.split(e).pop());return Array.from(r)}function mh(t,e){let r=t.tailwindConfig.prefix;return typeof r=="function"?r(e):r+e}function*rm(t){for(yield t;t.parent;)yield t.parent,t=t.parent}function ES(t,e={}){let r=t.nodes;t.nodes=[];let n=t.clone(e);return t.nodes=r,n}function OS(t){for(let e of rm(t))if(t!==e){if(e.type==="root")break;t=ES(e,{nodes:[t]})}return t}function CS(t,e){let r=new Map;return t.walkRules(n=>{for(let s of rm(n))if(s.raws.tailwind?.layer!==void 0)return;let i=OS(n),o=e.offsets.create("user");for(let s of Ro(n)){let l=r.get(s)||[];r.set(s,l),l.push([{layer:"user",sort:o,important:!1},i])}}),r}function AS(t,e){for(let r of t){if(e.notClassCache.has(r)||e.applyClassCache.has(r))continue;if(e.classCache.has(r)){e.applyClassCache.set(r,e.classCache.get(r).map(([i,o])=>[i,o.clone()]));continue}let n=Array.from(Xh(r,e));if(n.length===0){e.notClassCache.add(r);continue}e.applyClassCache.set(r,n)}return e.applyClassCache}function TS(t){let e=null;return{get:r=>(e=e||t(),e.get(r)),has:r=>(e=e||t(),e.has(r))}}function IS(t){return{get:e=>t.flatMap(r=>r.get(e)||[]),has:e=>t.some(r=>r.has(e))}}function gh(t){let e=t.split(/[\s\t\n]+/g);return e[e.length-1]==="!important"?[e.slice(0,-1),!0]:[e,!1]}function nm(t,e,r){let n=new Set,i=[];if(t.walkAtRules("apply",a=>{let[u]=gh(a.params);for(let c of u)n.add(c);i.push(a)}),i.length===0)return;let o=IS([r,AS(n,e)]);function s(a,u,c){let p=El(a),d=El(u),g=El(`.${fr(c)}`).nodes[0].nodes[0];return p.each(w=>{let h=new Set;d.each(m=>{let b=!1;m=m.clone(),m.walkClasses(v=>{v.value===g.value&&(b||(v.replaceWith(...w.nodes.map(_=>_.clone())),h.add(m),b=!0))})});for(let m of h){let b=[[]];for(let v of m.nodes)v.type==="combinator"?(b.push(v),b.push([])):b[b.length-1].push(v);m.nodes=[];for(let v of b)Array.isArray(v)&&v.sort((_,y)=>_.type==="tag"&&y.type==="class"?-1:_.type==="class"&&y.type==="tag"?1:_.type==="class"&&y.type==="pseudo"&&y.value.startsWith("::")?-1:_.type==="pseudo"&&_.value.startsWith("::")&&y.type==="class"?1:0),m.nodes=m.nodes.concat(v)}w.replaceWith(...h)}),p.toString()}let l=new Map;for(let a of i){let[u]=l.get(a.parent)||[[],a.source];l.set(a.parent,[u,a.source]);let[c,p]=gh(a.params);if(a.parent.type==="atrule"){if(a.parent.name==="screen"){let d=a.parent.params;throw a.error(`@apply is not supported within nested at-rules like @screen. We suggest you write this as @apply ${c.map(f=>`${d}:${f}`).join(" ")} instead.`)}throw a.error(`@apply is not supported within nested at-rules like @${a.parent.name}. You can fix this by un-nesting @${a.parent.name}.`)}for(let d of c){if([mh(e,"group"),mh(e,"peer")].includes(d))throw a.error(`@apply should not be used with the '${d}' utility`);if(!o.has(d))throw a.error(`The \`${d}\` class does not exist. If \`${d}\` is a custom class, make sure it is defined within a \`@layer\` directive.`);let f=o.get(d);u.push([d,p,f])}}for(let[a,[u,c]]of l){let p=[];for(let[f,g,w]of u){let h=[f,...hh([f],e.tailwindConfig.separator)];for(let[m,b]of w){let v=Ro(a),_=Ro(b);if(_=_.groups.filter(S=>S.some(D=>h.includes(D))).flat(),_=_.concat(hh(_,e.tailwindConfig.separator)),v.some(S=>_.includes(S)))throw b.error(`You cannot \`@apply\` the \`${f}\` utility here because it creates a circular dependency.`);let C=be.root({nodes:[b.clone()]});C.walk(S=>{S.source=c}),(b.type!=="atrule"||b.type==="atrule"&&b.name!=="keyframes")&&C.walkRules(S=>{if(!Ro(S).some(Y=>Y===f)){S.remove();return}let D=typeof e.tailwindConfig.important=="string"?e.tailwindConfig.important:null,F=a.raws.tailwind!==void 0&&D&&a.selector.indexOf(D)===0?a.selector.slice(D.length):a.selector;F===""&&(F=a.selector),S.selector=s(F,S.selector,f),D&&F!==a.selector&&(S.selector=Qh(S.selector,D)),S.walkDecls(Y=>{Y.important=m.important||g});let Z=(0,Go.default)().astSync(S.selector);Z.each(Y=>Jl(Y)),S.selector=Z.toString()}),C.nodes[0]&&p.push([m.sort,C.nodes[0]])}}let d=e.offsets.sort(p).map(f=>f[1]);a.after(d)}for(let a of i)a.parent.nodes.length>1?a.remove():a.parent.remove();nm(t,e,r)}function PS(t){return e=>{let r=TS(()=>CS(e,t));nm(e,t,r)}}var om=Bl($x());function Ol(t){return typeof t=="object"&&t!==null}function $S(t,e){let r=di(e);do if(r.pop(),(0,ci.default)(t,r)!==void 0)break;while(r.length);return r.length?r:void 0}function Wr(t){return typeof t=="string"?t:t.reduce((e,r,n)=>r.includes(".")?`${e}[${r}]`:n===0?r:`${e}.${r}`,"")}function sm(t){return t.map(e=>`'${e}'`).join(", ")}function bh(t){return sm(Object.keys(t))}function ql(t,e,r,n={}){let i=Array.isArray(e)?Wr(e):e.replace(/^['"]+|['"]+$/g,""),o=Array.isArray(e)?e:di(i),s=(0,ci.default)(t.theme,o,r);if(s===void 0){let a=`'${i}' does not exist in your theme config.`,u=o.slice(0,-1),c=(0,ci.default)(t.theme,u);if(Ol(c)){let p=Object.keys(c).filter(f=>ql(t,[...u,f]).isValid),d=(0,im.default)(o[o.length-1],p);d?a+=` Did you mean '${Wr([...u,d])}'?`:p.length>0&&(a+=` '${Wr(u)}' has the following valid keys: ${sm(p)}`)}else{let p=$S(t.theme,i);if(p){let d=(0,ci.default)(t.theme,p);Ol(d)?a+=` '${Wr(p)}' has the following keys: ${bh(d)}`:a+=` '${Wr(p)}' is not an object.`}else a+=` Your theme has the following top-level keys: ${bh(t.theme)}`}return{isValid:!1,error:a}}if(!(typeof s=="string"||typeof s=="number"||typeof s=="function"||s instanceof String||s instanceof Number||Array.isArray(s))){let a=`'${i}' was found but does not resolve to a string.`;if(Ol(s)){let u=Object.keys(s).filter(c=>ql(t,[...o,c]).isValid);u.length&&(a+=` Did you mean something like '${Wr([...o,u[0]])}'?`)}return{isValid:!1,error:a}}let[l]=o;return{isValid:!0,value:Ho(l)(s,n)}}function DS(t,e,r){e=e.map(i=>am(t,i,r));let n=[""];for(let i of e)i.type==="div"&&i.value===","?n.push(""):n[n.length-1]+=om.default.stringify(i);return n}function am(t,e,r){if(e.type==="function"&&r[e.value]!==void 0){let n=DS(t,e.nodes,r);e.type="word",e.value=r[e.value](t,...n)}return e}function MS(t,e,r){return Object.keys(r).some(i=>e.includes(`${i}(`))?(0,om.default)(e).walk(i=>{am(t,i,r)}).toString():e}var FS={atrule:"params",decl:"value"};function*LS(t){t=t.replace(/^['"]+|['"]+$/g,"");let e=t.match(/^([^\s]+)(?![^\[]*\])(?:\s*\/\s*([^\/\s]+))$/),r;yield[t,void 0],e&&(t=e[1],r=e[2],yield[t,r])}function NS(t,e,r){let n=Array.from(LS(e)).map(([i,o])=>Object.assign(ql(t,i,r,{opacityValue:o}),{resolvedPath:i,alpha:o}));return n.find(i=>i.isValid)??n[0]}function RS(t){let e=t.tailwindConfig,r={theme:(n,i,...o)=>{let{isValid:s,value:l,error:a,alpha:u}=NS(e,i,o.length?o:void 0);if(!s){let d=n.parent,f=d?.raws.tailwind?.candidate;if(d&&f!==void 0){t.markInvalidUtilityNode(d),d.remove(),He.warn("invalid-theme-key-in-class",[`The utility \`${f}\` contains an invalid theme value and was not generated.`]);return}throw n.error(a)}let c=Uo(l);return(u!==void 0||c!==void 0&&typeof c=="function")&&(u===void 0&&(u=1),l=Hr(c,u,c)),l},screen:(n,i)=>{i=i.replace(/^['"]+/g,"").replace(/['"]+$/g,"");let s=pi(e.theme.screens).find(({name:l})=>l===i);if(!s)throw n.error(`The '${i}' screen does not exist in your theme.`);return zo(s)}};return n=>{n.walk(i=>{let o=FS[i.type];o!==void 0&&(i[o]=MS(i,i[o],r))})}}function jS({tailwindConfig:{theme:t}}){return function(e){e.walkAtRules("screen",r=>{let n=r.params,o=pi(t.screens).find(({name:s})=>s===n);if(!o)throw r.error(`No \`${n}\` screen found.`);r.name="media",r.params=zo(o)})}}var vh={id(t){return Yo.default.attribute({attribute:"id",operator:"=",value:t.value,quoteMark:'"'})}};function qS(t){let e=t.filter(l=>l.type!=="pseudo"||l.nodes.length>0?!0:l.value.startsWith("::")||[":before",":after",":first-line",":first-letter"].includes(l.value)).reverse(),r=new Set(["tag","class","id","attribute"]),n=e.findIndex(l=>r.has(l.type));if(n===-1)return e.reverse().join("").trim();let i=e[n],o=vh[i.type]?vh[i.type](i):i;e=e.slice(0,n);let s=e.findIndex(l=>l.type==="combinator"&&l.value===">");return s!==-1&&(e.splice(0,s),e.unshift(Yo.default.universal())),[o,...e.reverse()].join("").trim()}var US=(0,Yo.default)(t=>t.map(e=>{let r=e.split(n=>n.type==="combinator"&&n.value===" ").pop();return qS(r)})),Cl=new Map;function BS(t){return Cl.has(t)||Cl.set(t,US.transformSync(t)),Cl.get(t)}function zS({tailwindConfig:t}){return e=>{let r=new Map,n=new Set;if(e.walkAtRules("defaults",i=>{if(i.nodes&&i.nodes.length>0){n.add(i);return}let o=i.params;r.has(o)||r.set(o,new Set),r.get(o).add(i.parent),i.remove()}),_t(t,"optimizeUniversalDefaults"))for(let i of n){let o=new Map,s=r.get(i.params)??[];for(let l of s)for(let a of BS(l.selector)){let u=a.includes(":-")||a.includes("::-")?a:"__DEFAULT__",c=o.get(u)??new Set;o.set(u,c),c.add(a)}if(_t(t,"optimizeUniversalDefaults")){if(o.size===0){i.remove();continue}for(let[,l]of o){let a=be.rule({source:i.source});a.selectors=[...l],a.append(i.nodes.map(u=>u.clone())),i.before(a)}}i.remove()}else if(n.size){let i=be.rule({selectors:["*","::before","::after"]});for(let s of n)i.append(s.nodes),i.parent||s.before(i),i.source||(i.source=s.source),s.remove();let o=i.clone({selectors:["::backdrop"]});i.after(o)}}}var lm={atrule:["name","params"],rule:["selector"]},WS=new Set(Object.keys(lm));function VS(){function t(e){let r=null;e.each(n=>{if(!WS.has(n.type)){r=null;return}if(r===null){r=n;return}let i=lm[n.type];n.type==="atrule"&&n.name==="font-face"?r=n:i.every(o=>(n[o]??"").replace(/\s+/g," ")===(r[o]??"").replace(/\s+/g," "))?(n.nodes&&r.append(n.nodes),n.remove()):r=n}),e.each(n=>{n.type==="atrule"&&t(n)})}return e=>{t(e)}}function HS(){return t=>{t.walkRules(e=>{let r=new Map,n=new Set([]),i=new Map;e.walkDecls(o=>{if(o.parent===e){if(r.has(o.prop)){if(r.get(o.prop).value===o.value){n.add(r.get(o.prop)),r.set(o.prop,o);return}i.has(o.prop)||i.set(o.prop,new Set),i.get(o.prop).add(r.get(o.prop)),i.get(o.prop).add(o)}r.set(o.prop,o)}});for(let o of n)o.remove();for(let o of i.values()){let s=new Map;for(let l of o){let a=YS(l.value);a!==null&&(s.has(a)||s.set(a,new Set),s.get(a).add(l))}for(let l of s.values()){let a=Array.from(l).slice(0,-1);for(let u of a)u.remove()}}})}}var GS=Symbol("unitless-number");function YS(t){let e=/^-?\d*.?\d+([\w%]+)?$/g.exec(t);return e?e[1]??GS:null}function QS(t){if(!t.walkAtRules)return;let e=new Set;if(t.walkAtRules("apply",r=>{e.add(r.parent)}),e.size!==0)for(let r of e){let n=[],i=[];for(let o of r.nodes)o.type==="atrule"&&o.name==="apply"?(i.length>0&&(n.push(i),i=[]),n.push([o])):i.push(o);if(i.length>0&&n.push(i),n.length!==1){for(let o of[...n].reverse()){let s=r.clone({nodes:[]});s.append(o),r.after(s)}r.remove()}}}function yh(){return t=>{QS(t)}}function KS(t){return t.type==="root"}function JS(t){return t.type==="atrule"&&t.name==="layer"}function XS(t){return(e,r)=>{let n=!1;e.walkAtRules("tailwind",i=>{if(n)return!1;if(i.parent&&!(KS(i.parent)||JS(i.parent)))return n=!0,i.warn(r,["Nested @tailwind rules were detected, but are not supported.","Consider using a prefix to scope Tailwind's classes: https://tailwindcss.com/docs/configuration#prefix","Alternatively, use the important selector strategy: https://tailwindcss.com/docs/configuration#selector-strategy"].join(` +`);m.push(` Use \`${t.replace("[",`[${_}:`)}\` for \`${y.trim()}\``);break}Ye.warn([`The class \`${t}\` is ambiguous and matches multiple utilities.`,...m,`If this is content and not a class, replace it with \`${t.replace("[","[").replace("]","]")}\` to silence this warning.`]);continue}}l=l.map(d=>d.filter(f=>ch(f[1])))}l=l.flat(),l=Array.from(cS(l,n)),l=tS(l,e),o&&(l=rS(l,n));for(let d of i)l=nS(d,l,e);for(let d of l)d[1].raws.tailwind={...d[1].raws.tailwind,candidate:t},d=fS(d,{context:e,candidate:t}),d!==null&&(yield d)}}function fS(t,{context:e,candidate:r}){if(!t[0].collectedFormats)return t;let n=!0,i;try{i=Bo(t[0].collectedFormats,{context:e,candidate:r})}catch{return null}let o=be.root({nodes:[t[1].clone()]});return o.walkRules(s=>{if(!No(s))try{let l=Uh(s.selector,i,{candidate:r,context:e});if(l===null){s.remove();return}s.selector=l}catch{return n=!1,!1}}),!n||o.nodes.length===0?null:(t[1]=o.nodes[0],t)}function No(t){return t.parent&&t.parent.type==="atrule"&&t.parent.name==="keyframes"}function dS(t){if(t===!0)return e=>{No(e)||e.walkDecls(r=>{r.parent.type==="rule"&&!No(r.parent)&&(r.important=!0)})};if(typeof t=="string")return e=>{No(e)||(e.selectors=e.selectors.map(r=>Qh(r,t)))}}function Zh(t,e,r=!1){let n=[],i=dS(e.tailwindConfig.important);for(let o of t){if(e.notClassCache.has(o))continue;if(e.candidateRuleCache.has(o)){n=n.concat(Array.from(e.candidateRuleCache.get(o)));continue}let s=Array.from(Xh(o,e));if(s.length===0){e.notClassCache.add(o);continue}e.classCache.set(o,s);let l=e.candidateRuleCache.get(o)??new Set;e.candidateRuleCache.set(o,l);for(let a of s){let[{sort:u,options:c},p]=a;if(c.respectImportant&&i){let f=be.root({nodes:[p.clone()]});f.walkRules(i),p=f.nodes[0]}let d=[u,r?p.clone():p];l.add(d),e.ruleCache.add(d),n.push(d)}}return n}function jl(t){return t.startsWith("[")&&t.endsWith("]")}function ai(t,e=void 0,r=void 0){return t.map(n=>{let i=n.clone();return r!==void 0&&(i.raws.tailwind={...i.raws.tailwind,...r}),e!==void 0&&em(i,o=>{if(o.raws.tailwind?.preserveSource===!0&&o.source)return!1;o.source=e}),i})}function em(t,e){e(t)!==!1&&t.each?.(r=>em(r,e))}var tm=/[\\^$.*+?()[\]{}|]/g,pS=RegExp(tm.source);function tu(t){return t=Array.isArray(t)?t:[t],t=t.map(e=>e instanceof RegExp?e.source:e),t.join("")}function xt(t){return new RegExp(tu(t),"g")}function kr(t){return`(?:${t.map(tu).join("|")})`}function fh(t){return`(?:${tu(t)})?`}function hS(t){return t&&pS.test(t)?t.replace(tm,"\\$&"):t||""}function mS(t){let e=Array.from(gS(t));return r=>{let n=[];for(let i of e)for(let o of r.match(i)??[])n.push(yS(o));return n}}function*gS(t){let e=t.tailwindConfig.separator,r=t.tailwindConfig.prefix!==""?fh(xt([/-?/,hS(t.tailwindConfig.prefix)])):"",n=kr([/\[[^\s:'"`]+:[^\s\[\]]+\]/,/\[[^\s:'"`\]]+:[^\s]+?\[[^\s]+\][^\s]+?\]/,xt([kr([/-?(?:\w+)/,/@(?:\w+)/]),fh(kr([xt([kr([/-(?:\w+-)*\['[^\s]+'\]/,/-(?:\w+-)*\["[^\s]+"\]/,/-(?:\w+-)*\[`[^\s]+`\]/,/-(?:\w+-)*\[(?:[^\s\[\]]+\[[^\s\[\]]+\])*[^\s:\[\]]+\]/]),/(?![{([]])/,/(?:\/[^\s'"`\\><$]*)?/]),xt([kr([/-(?:\w+-)*\['[^\s]+'\]/,/-(?:\w+-)*\["[^\s]+"\]/,/-(?:\w+-)*\[`[^\s]+`\]/,/-(?:\w+-)*\[(?:[^\s\[\]]+\[[^\s\[\]]+\])*[^\s\[\]]+\]/]),/(?![{([]])/,/(?:\/[^\s'"`\\$]*)?/]),/[-\/][^\s'"`\\$={><]*/]))])]),i=[kr([xt([/@\[[^\s"'`]+\](\/[^\s"'`]+)?/,e]),xt([/([^\s"'`\[\\]+-)?\[[^\s"'`]+\]\/\w+/,e]),xt([/([^\s"'`\[\\]+-)?\[[^\s"'`]+\]/,e]),xt([/[^\s"'`\[\\]+/,e])]),kr([xt([/([^\s"'`\[\\]+-)?\[[^\s`]+\]\/\w+/,e]),xt([/([^\s"'`\[\\]+-)?\[[^\s`]+\]/,e]),xt([/[^\s`\[\\]+/,e])])];for(let o of i)yield xt(["((?=((",o,")+))\\2)?",/!?/,r,n]);yield/[^<>"'`\s.(){}[\]#=%$]*[^<>"'`\s.(){}[\]#=%:$]/g}var bS=/([\[\]'"`])([^\[\]'"`])?/g,vS=/[^"'`\s<>\]]+/;function yS(t){if(!t.includes("-["))return t;let e=0,r=[],n=t.matchAll(bS);n=Array.from(n).flatMap(i=>{let[,...o]=i;return o.map((s,l)=>Object.assign([],i,{index:i.index+l,0:s}))});for(let i of n){let o=i[0],s=r[r.length-1];if(o===s?r.pop():(o==="'"||o==='"'||o==="`")&&r.push(o),!s){if(o==="["){e++;continue}else if(o==="]"){e--;continue}if(e<0)return t.substring(0,i.index-1);if(e===0&&!vS.test(o))return t.substring(0,i.index)}}return t}var Qt=Rx,dh={DEFAULT:mS},ph={DEFAULT:t=>t,svelte:t=>t.replace(/(?:^|\s)class:/g," ")};function _S(t,e){let r=t.tailwindConfig.content.extract;return r[e]||r.DEFAULT||dh[e]||dh.DEFAULT(t)}function wS(t,e){let r=t.content.transform;return r[e]||r.DEFAULT||ph[e]||ph.DEFAULT}var li=new WeakMap;function xS(t,e,r,n){li.has(e)||li.set(e,new Nx.default({maxSize:25e3}));for(let i of t.split(` +`))if(i=i.trim(),!n.has(i))if(n.add(i),li.get(e).has(i))for(let o of li.get(e).get(i))r.add(o);else{let o=e(i).filter(l=>l!=="!*"),s=new Set(o);for(let l of s)r.add(l);li.get(e).set(i,s)}}function kS(t,e){let r=e.offsets.sort(t),n={base:new Set,defaults:new Set,components:new Set,utilities:new Set,variants:new Set};for(let[i,o]of r)n[i.layer].add(o);return n}function SS(t){return async e=>{let r={base:null,components:null,utilities:null,variants:null};if(e.walkAtRules(g=>{g.name==="tailwind"&&Object.keys(r).includes(g.params)&&(r[g.params]=g)}),Object.values(r).every(g=>g===null))return e;let n=new Set([...t.candidates??[],Hr]),i=new Set;Qt.DEBUG&&console.time("Reading changed files");{let g=[];for(let h of t.changedContent){let m=wS(t.tailwindConfig,h.extension),b=_S(t,h.extension);g.push([h,{transformer:m,extractor:b}])}let w=500;for(let h=0;h{v=b?await kh.promises.readFile(b,"utf8"):v,xS(_(v),y,n,i)}))}}Qt.DEBUG&&console.timeEnd("Reading changed files");let o=t.classCache.size;Qt.DEBUG&&console.time("Generate rules"),Qt.DEBUG&&console.time("Sorting candidates");let s=new Set([...n].sort((g,w)=>g===w?0:g{let w=g.raws.tailwind?.parentLayer;return w==="components"?r.components!==null:w==="utilities"?r.utilities!==null:!0});r.variants?(r.variants.before(ai(d,r.variants.source,{layer:"variants"})),r.variants.remove()):d.length>0&&e.append(ai(d,e.source,{layer:"variants"})),e.source.end=e.source.end??e.source.start;let f=d.some(g=>g.raws.tailwind?.parentLayer==="utilities");r.utilities&&c.size===0&&!f&&Ye.warn("content-problems",["No utility classes were detected in your source files. If this is unexpected, double-check the `content` option in your Tailwind CSS configuration.","https://tailwindcss.com/docs/content-configuration"]),Qt.DEBUG&&(console.log("Potential classes: ",n.size),console.log("Active contexts: ",jx.size)),t.changedContent=[],e.walkAtRules("layer",g=>{Object.keys(r).includes(g.params)&&g.remove()})}}function Ro(t){let e=new Map;be.root({nodes:[t.clone()]}).walkRules(o=>{(0,Go.default)(s=>{s.walkClasses(l=>{let a=l.parent.toString(),u=e.get(a);u||e.set(a,u=new Set),u.add(l.value)})}).processSync(o.selector)});let n=Array.from(e.values(),o=>Array.from(o)),i=n.flat();return Object.assign(i,{groups:n})}var ES=(0,Go.default)();function El(t){return ES.astSync(t)}function hh(t,e){let r=new Set;for(let n of t)r.add(n.split(e).pop());return Array.from(r)}function mh(t,e){let r=t.tailwindConfig.prefix;return typeof r=="function"?r(e):r+e}function*rm(t){for(yield t;t.parent;)yield t.parent,t=t.parent}function OS(t,e={}){let r=t.nodes;t.nodes=[];let n=t.clone(e);return t.nodes=r,n}function CS(t){for(let e of rm(t))if(t!==e){if(e.type==="root")break;t=OS(e,{nodes:[t]})}return t}function AS(t,e){let r=new Map;return t.walkRules(n=>{for(let s of rm(n))if(s.raws.tailwind?.layer!==void 0)return;let i=CS(n),o=e.offsets.create("user");for(let s of Ro(n)){let l=r.get(s)||[];r.set(s,l),l.push([{layer:"user",sort:o,important:!1},i])}}),r}function TS(t,e){for(let r of t){if(e.notClassCache.has(r)||e.applyClassCache.has(r))continue;if(e.classCache.has(r)){e.applyClassCache.set(r,e.classCache.get(r).map(([i,o])=>[i,o.clone()]));continue}let n=Array.from(Xh(r,e));if(n.length===0){e.notClassCache.add(r);continue}e.applyClassCache.set(r,n)}return e.applyClassCache}function IS(t){let e=null;return{get:r=>(e=e||t(),e.get(r)),has:r=>(e=e||t(),e.has(r))}}function PS(t){return{get:e=>t.flatMap(r=>r.get(e)||[]),has:e=>t.some(r=>r.has(e))}}function gh(t){let e=t.split(/[\s\t\n]+/g);return e[e.length-1]==="!important"?[e.slice(0,-1),!0]:[e,!1]}function nm(t,e,r){let n=new Set,i=[];if(t.walkAtRules("apply",a=>{let[u]=gh(a.params);for(let c of u)n.add(c);i.push(a)}),i.length===0)return;let o=PS([r,TS(n,e)]);function s(a,u,c){let p=El(a),d=El(u),g=El(`.${fr(c)}`).nodes[0].nodes[0];return p.each(w=>{let h=new Set;d.each(m=>{let b=!1;m=m.clone(),m.walkClasses(v=>{v.value===g.value&&(b||(v.replaceWith(...w.nodes.map(_=>_.clone())),h.add(m),b=!0))})});for(let m of h){let b=[[]];for(let v of m.nodes)v.type==="combinator"?(b.push(v),b.push([])):b[b.length-1].push(v);m.nodes=[];for(let v of b)Array.isArray(v)&&v.sort((_,y)=>_.type==="tag"&&y.type==="class"?-1:_.type==="class"&&y.type==="tag"?1:_.type==="class"&&y.type==="pseudo"&&y.value.startsWith("::")?-1:_.type==="pseudo"&&_.value.startsWith("::")&&y.type==="class"?1:0),m.nodes=m.nodes.concat(v)}w.replaceWith(...h)}),p.toString()}let l=new Map;for(let a of i){let[u]=l.get(a.parent)||[[],a.source];l.set(a.parent,[u,a.source]);let[c,p]=gh(a.params);if(a.parent.type==="atrule"){if(a.parent.name==="screen"){let d=a.parent.params;throw a.error(`@apply is not supported within nested at-rules like @screen. We suggest you write this as @apply ${c.map(f=>`${d}:${f}`).join(" ")} instead.`)}throw a.error(`@apply is not supported within nested at-rules like @${a.parent.name}. You can fix this by un-nesting @${a.parent.name}.`)}for(let d of c){if([mh(e,"group"),mh(e,"peer")].includes(d))throw a.error(`@apply should not be used with the '${d}' utility`);if(!o.has(d))throw a.error(`The \`${d}\` class does not exist. If \`${d}\` is a custom class, make sure it is defined within a \`@layer\` directive.`);let f=o.get(d);u.push([d,p,f])}}for(let[a,[u,c]]of l){let p=[];for(let[f,g,w]of u){let h=[f,...hh([f],e.tailwindConfig.separator)];for(let[m,b]of w){let v=Ro(a),_=Ro(b);if(_=_.groups.filter(S=>S.some(D=>h.includes(D))).flat(),_=_.concat(hh(_,e.tailwindConfig.separator)),v.some(S=>_.includes(S)))throw b.error(`You cannot \`@apply\` the \`${f}\` utility here because it creates a circular dependency.`);let C=be.root({nodes:[b.clone()]});C.walk(S=>{S.source=c}),(b.type!=="atrule"||b.type==="atrule"&&b.name!=="keyframes")&&C.walkRules(S=>{if(!Ro(S).some(Y=>Y===f)){S.remove();return}let D=typeof e.tailwindConfig.important=="string"?e.tailwindConfig.important:null,F=a.raws.tailwind!==void 0&&D&&a.selector.indexOf(D)===0?a.selector.slice(D.length):a.selector;F===""&&(F=a.selector),S.selector=s(F,S.selector,f),D&&F!==a.selector&&(S.selector=Qh(S.selector,D)),S.walkDecls(Y=>{Y.important=m.important||g});let Z=(0,Go.default)().astSync(S.selector);Z.each(Y=>Jl(Y)),S.selector=Z.toString()}),C.nodes[0]&&p.push([m.sort,C.nodes[0]])}}let d=e.offsets.sort(p).map(f=>f[1]);a.after(d)}for(let a of i)a.parent.nodes.length>1?a.remove():a.parent.remove();nm(t,e,r)}function $S(t){return e=>{let r=IS(()=>AS(e,t));nm(e,t,r)}}var om=Bl(Dx());function Ol(t){return typeof t=="object"&&t!==null}function DS(t,e){let r=di(e);do if(r.pop(),(0,ci.default)(t,r)!==void 0)break;while(r.length);return r.length?r:void 0}function Vr(t){return typeof t=="string"?t:t.reduce((e,r,n)=>r.includes(".")?`${e}[${r}]`:n===0?r:`${e}.${r}`,"")}function sm(t){return t.map(e=>`'${e}'`).join(", ")}function bh(t){return sm(Object.keys(t))}function ql(t,e,r,n={}){let i=Array.isArray(e)?Vr(e):e.replace(/^['"]+|['"]+$/g,""),o=Array.isArray(e)?e:di(i),s=(0,ci.default)(t.theme,o,r);if(s===void 0){let a=`'${i}' does not exist in your theme config.`,u=o.slice(0,-1),c=(0,ci.default)(t.theme,u);if(Ol(c)){let p=Object.keys(c).filter(f=>ql(t,[...u,f]).isValid),d=(0,im.default)(o[o.length-1],p);d?a+=` Did you mean '${Vr([...u,d])}'?`:p.length>0&&(a+=` '${Vr(u)}' has the following valid keys: ${sm(p)}`)}else{let p=DS(t.theme,i);if(p){let d=(0,ci.default)(t.theme,p);Ol(d)?a+=` '${Vr(p)}' has the following keys: ${bh(d)}`:a+=` '${Vr(p)}' is not an object.`}else a+=` Your theme has the following top-level keys: ${bh(t.theme)}`}return{isValid:!1,error:a}}if(!(typeof s=="string"||typeof s=="number"||typeof s=="function"||s instanceof String||s instanceof Number||Array.isArray(s))){let a=`'${i}' was found but does not resolve to a string.`;if(Ol(s)){let u=Object.keys(s).filter(c=>ql(t,[...o,c]).isValid);u.length&&(a+=` Did you mean something like '${Vr([...o,u[0]])}'?`)}return{isValid:!1,error:a}}let[l]=o;return{isValid:!0,value:Ho(l)(s,n)}}function MS(t,e,r){e=e.map(i=>am(t,i,r));let n=[""];for(let i of e)i.type==="div"&&i.value===","?n.push(""):n[n.length-1]+=om.default.stringify(i);return n}function am(t,e,r){if(e.type==="function"&&r[e.value]!==void 0){let n=MS(t,e.nodes,r);e.type="word",e.value=r[e.value](t,...n)}return e}function FS(t,e,r){return Object.keys(r).some(i=>e.includes(`${i}(`))?(0,om.default)(e).walk(i=>{am(t,i,r)}).toString():e}var LS={atrule:"params",decl:"value"};function*NS(t){t=t.replace(/^['"]+|['"]+$/g,"");let e=t.match(/^([^\s]+)(?![^\[]*\])(?:\s*\/\s*([^\/\s]+))$/),r;yield[t,void 0],e&&(t=e[1],r=e[2],yield[t,r])}function RS(t,e,r){let n=Array.from(NS(e)).map(([i,o])=>Object.assign(ql(t,i,r,{opacityValue:o}),{resolvedPath:i,alpha:o}));return n.find(i=>i.isValid)??n[0]}function jS(t){let e=t.tailwindConfig,r={theme:(n,i,...o)=>{let{isValid:s,value:l,error:a,alpha:u}=RS(e,i,o.length?o:void 0);if(!s){let d=n.parent,f=d?.raws.tailwind?.candidate;if(d&&f!==void 0){t.markInvalidUtilityNode(d),d.remove(),Ye.warn("invalid-theme-key-in-class",[`The utility \`${f}\` contains an invalid theme value and was not generated.`]);return}throw n.error(a)}let c=Uo(l);return(u!==void 0||c!==void 0&&typeof c=="function")&&(u===void 0&&(u=1),l=Gr(c,u,c)),l},screen:(n,i)=>{i=i.replace(/^['"]+/g,"").replace(/['"]+$/g,"");let s=pi(e.theme.screens).find(({name:l})=>l===i);if(!s)throw n.error(`The '${i}' screen does not exist in your theme.`);return zo(s)}};return n=>{n.walk(i=>{let o=LS[i.type];o!==void 0&&(i[o]=FS(i,i[o],r))})}}function qS({tailwindConfig:{theme:t}}){return function(e){e.walkAtRules("screen",r=>{let n=r.params,o=pi(t.screens).find(({name:s})=>s===n);if(!o)throw r.error(`No \`${n}\` screen found.`);r.name="media",r.params=zo(o)})}}var vh={id(t){return Yo.default.attribute({attribute:"id",operator:"=",value:t.value,quoteMark:'"'})}};function US(t){let e=t.filter(l=>l.type!=="pseudo"||l.nodes.length>0?!0:l.value.startsWith("::")||[":before",":after",":first-line",":first-letter"].includes(l.value)).reverse(),r=new Set(["tag","class","id","attribute"]),n=e.findIndex(l=>r.has(l.type));if(n===-1)return e.reverse().join("").trim();let i=e[n],o=vh[i.type]?vh[i.type](i):i;e=e.slice(0,n);let s=e.findIndex(l=>l.type==="combinator"&&l.value===">");return s!==-1&&(e.splice(0,s),e.unshift(Yo.default.universal())),[o,...e.reverse()].join("").trim()}var BS=(0,Yo.default)(t=>t.map(e=>{let r=e.split(n=>n.type==="combinator"&&n.value===" ").pop();return US(r)})),Cl=new Map;function zS(t){return Cl.has(t)||Cl.set(t,BS.transformSync(t)),Cl.get(t)}function WS({tailwindConfig:t}){return e=>{let r=new Map,n=new Set;if(e.walkAtRules("defaults",i=>{if(i.nodes&&i.nodes.length>0){n.add(i);return}let o=i.params;r.has(o)||r.set(o,new Set),r.get(o).add(i.parent),i.remove()}),kt(t,"optimizeUniversalDefaults"))for(let i of n){let o=new Map,s=r.get(i.params)??[];for(let l of s)for(let a of zS(l.selector)){let u=a.includes(":-")||a.includes("::-")?a:"__DEFAULT__",c=o.get(u)??new Set;o.set(u,c),c.add(a)}if(kt(t,"optimizeUniversalDefaults")){if(o.size===0){i.remove();continue}for(let[,l]of o){let a=be.rule({source:i.source});a.selectors=[...l],a.append(i.nodes.map(u=>u.clone())),i.before(a)}}i.remove()}else if(n.size){let i=be.rule({selectors:["*","::before","::after"]});for(let s of n)i.append(s.nodes),i.parent||s.before(i),i.source||(i.source=s.source),s.remove();let o=i.clone({selectors:["::backdrop"]});i.after(o)}}}var lm={atrule:["name","params"],rule:["selector"]},VS=new Set(Object.keys(lm));function HS(){function t(e){let r=null;e.each(n=>{if(!VS.has(n.type)){r=null;return}if(r===null){r=n;return}let i=lm[n.type];n.type==="atrule"&&n.name==="font-face"?r=n:i.every(o=>(n[o]??"").replace(/\s+/g," ")===(r[o]??"").replace(/\s+/g," "))?(n.nodes&&r.append(n.nodes),n.remove()):r=n}),e.each(n=>{n.type==="atrule"&&t(n)})}return e=>{t(e)}}function GS(){return t=>{t.walkRules(e=>{let r=new Map,n=new Set([]),i=new Map;e.walkDecls(o=>{if(o.parent===e){if(r.has(o.prop)){if(r.get(o.prop).value===o.value){n.add(r.get(o.prop)),r.set(o.prop,o);return}i.has(o.prop)||i.set(o.prop,new Set),i.get(o.prop).add(r.get(o.prop)),i.get(o.prop).add(o)}r.set(o.prop,o)}});for(let o of n)o.remove();for(let o of i.values()){let s=new Map;for(let l of o){let a=QS(l.value);a!==null&&(s.has(a)||s.set(a,new Set),s.get(a).add(l))}for(let l of s.values()){let a=Array.from(l).slice(0,-1);for(let u of a)u.remove()}}})}}var YS=Symbol("unitless-number");function QS(t){let e=/^-?\d*.?\d+([\w%]+)?$/g.exec(t);return e?e[1]??YS:null}function KS(t){if(!t.walkAtRules)return;let e=new Set;if(t.walkAtRules("apply",r=>{e.add(r.parent)}),e.size!==0)for(let r of e){let n=[],i=[];for(let o of r.nodes)o.type==="atrule"&&o.name==="apply"?(i.length>0&&(n.push(i),i=[]),n.push([o])):i.push(o);if(i.length>0&&n.push(i),n.length!==1){for(let o of[...n].reverse()){let s=r.clone({nodes:[]});s.append(o),r.after(s)}r.remove()}}}function yh(){return t=>{KS(t)}}function JS(t){return t.type==="root"}function XS(t){return t.type==="atrule"&&t.name==="layer"}function ZS(t){return(e,r)=>{let n=!1;e.walkAtRules("tailwind",i=>{if(n)return!1;if(i.parent&&!(JS(i.parent)||XS(i.parent)))return n=!0,i.warn(r,["Nested @tailwind rules were detected, but are not supported.","Consider using a prefix to scope Tailwind's classes: https://tailwindcss.com/docs/configuration#prefix","Alternatively, use the important selector strategy: https://tailwindcss.com/docs/configuration#selector-strategy"].join(` `)),!1}),e.walkRules(i=>{if(n)return!1;i.walkRules(o=>(n=!0,o.warn(r,["Nested CSS was detected, but CSS nesting has not been configured correctly.","Please enable a CSS nesting plugin *before* Tailwind in your configuration.","See how here: https://tailwindcss.com/docs/using-with-preprocessors#nesting"].join(` -`)),!1))})}}function ZS(t){return async function(e,r){let{tailwindDirectives:n,applyDirectives:i}=Mx(e);XS()(e,r),yh()(e,r);let o=t({tailwindDirectives:n,applyDirectives:i,registerDependency(s){r.messages.push({plugin:"tailwindcss",parent:r.opts.from,...s})},createContext(s,l){return Jk(s,l,e)}})(e,r);if(o.tailwindConfig.separator==="-")throw new Error("The '-' character cannot be used as a custom separator in JIT mode due to parsing ambiguity. Please use another character like '_' instead.");o.tailwindConfig,await kS(o)(e,r),yh()(e,r),PS(o)(e,r),RS(o)(e,r),jS(o)(e,r),zS(o)(e,r),VS(o)(e,r),HS(o)(e,r)}}var eE=["preflight","container","accessibility","pointerEvents","visibility","position","inset","isolation","zIndex","order","gridColumn","gridColumnStart","gridColumnEnd","gridRow","gridRowStart","gridRowEnd","float","clear","margin","boxSizing","lineClamp","display","aspectRatio","size","height","maxHeight","minHeight","width","minWidth","maxWidth","flex","flexShrink","flexGrow","flexBasis","tableLayout","captionSide","borderCollapse","borderSpacing","transformOrigin","translate","rotate","skew","scale","transform","animation","cursor","touchAction","userSelect","resize","scrollSnapType","scrollSnapAlign","scrollSnapStop","scrollMargin","scrollPadding","listStylePosition","listStyleType","listStyleImage","appearance","columns","breakBefore","breakInside","breakAfter","gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateColumns","gridTemplateRows","flexDirection","flexWrap","placeContent","placeItems","alignContent","alignItems","justifyContent","justifyItems","gap","space","divideWidth","divideStyle","divideColor","divideOpacity","placeSelf","alignSelf","justifySelf","overflow","overscrollBehavior","scrollBehavior","textOverflow","hyphens","whitespace","textWrap","wordBreak","borderRadius","borderWidth","borderStyle","borderColor","borderOpacity","backgroundColor","backgroundOpacity","backgroundImage","gradientColorStops","boxDecorationBreak","backgroundSize","backgroundAttachment","backgroundClip","backgroundPosition","backgroundRepeat","backgroundOrigin","fill","stroke","strokeWidth","objectFit","objectPosition","padding","textAlign","textIndent","verticalAlign","fontFamily","fontSize","fontWeight","textTransform","fontStyle","fontVariantNumeric","lineHeight","letterSpacing","textColor","textOpacity","textDecoration","textDecorationColor","textDecorationStyle","textDecorationThickness","textUnderlineOffset","fontSmoothing","placeholderColor","placeholderOpacity","caretColor","accentColor","opacity","backgroundBlendMode","mixBlendMode","boxShadow","boxShadowColor","outlineStyle","outlineWidth","outlineOffset","outlineColor","ringWidth","ringColor","ringOpacity","ringOffsetWidth","ringOffsetColor","blur","brightness","contrast","dropShadow","grayscale","hueRotate","invert","saturate","sepia","filter","backdropBlur","backdropBrightness","backdropContrast","backdropGrayscale","backdropHueRotate","backdropInvert","backdropOpacity","backdropSaturate","backdropSepia","backdropFilter","transitionProperty","transitionDelay","transitionDuration","transitionTimingFunction","willChange","content","forcedColorAdjust"];function tE(t,e){return t===void 0?e:Array.isArray(t)?t:[...new Set(e.filter(n=>t!==!1&&t[n]!==!1).concat(Object.keys(t).filter(n=>t[n]!==!1)))]}function ui({version:t,from:e,to:r}){He.warn(`${e}-color-renamed`,[`As of Tailwind CSS ${t}, \`${e}\` has been renamed to \`${r}\`.`,"Update your configuration file to silence this warning."])}var rE={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"},get lightBlue(){return ui({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return ui({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return ui({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return ui({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return ui({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}};function um(t,...e){for(let r of e){for(let n in r)t?.hasOwnProperty?.(n)||(t[n]=r[n]);for(let n of Object.getOwnPropertySymbols(r))t?.hasOwnProperty?.(n)||(t[n]=r[n])}return t}function nE(t){(()=>{if(t.purge||!t.content||!Array.isArray(t.content)&&!(typeof t.content=="object"&&t.content!==null))return!1;if(Array.isArray(t.content))return t.content.every(r=>typeof r=="string"?!0:!(typeof r?.raw!="string"||r?.extension&&typeof r?.extension!="string"));if(typeof t.content=="object"&&t.content!==null){if(Object.keys(t.content).some(r=>!["files","relative","extract","transform"].includes(r)))return!1;if(Array.isArray(t.content.files)){if(!t.content.files.every(r=>typeof r=="string"?!0:!(typeof r?.raw!="string"||r?.extension&&typeof r?.extension!="string")))return!1;if(typeof t.content.extract=="object"){for(let r of Object.values(t.content.extract))if(typeof r!="function")return!1}else if(!(t.content.extract===void 0||typeof t.content.extract=="function"))return!1;if(typeof t.content.transform=="object"){for(let r of Object.values(t.content.transform))if(typeof r!="function")return!1}else if(!(t.content.transform===void 0||typeof t.content.transform=="function"))return!1;if(typeof t.content.relative!="boolean"&&typeof t.content.relative<"u")return!1}return!0}return!1})()||He.warn("purge-deprecation",["The `purge`/`content` options have changed in Tailwind CSS v3.0.","Update your configuration file to eliminate this warning.","https://tailwindcss.com/docs/upgrade-guide#configure-content-sources"]),t.safelist=(()=>{let{content:r,purge:n,safelist:i}=t;return Array.isArray(i)?i:Array.isArray(r?.safelist)?r.safelist:Array.isArray(n?.safelist)?n.safelist:Array.isArray(n?.options?.safelist)?n.options.safelist:[]})(),t.blocklist=(()=>{let{blocklist:r}=t;if(Array.isArray(r)){if(r.every(n=>typeof n=="string"))return r;He.warn("blocklist-invalid",["The `blocklist` option must be an array of strings.","https://tailwindcss.com/docs/content-configuration#discarding-classes"])}return[]})(),typeof t.prefix=="function"?(He.warn("prefix-function",["As of Tailwind CSS v3.0, `prefix` cannot be a function.","Update `prefix` in your configuration to be a string to eliminate this warning.","https://tailwindcss.com/docs/upgrade-guide#prefix-cannot-be-a-function"]),t.prefix=""):t.prefix=t.prefix??"",t.content={relative:(()=>{let{content:r}=t;return r?.relative?r.relative:_t(t,"relativeContentPathsByDefault")})(),files:(()=>{let{content:r,purge:n}=t;return Array.isArray(n)?n:Array.isArray(n?.content)?n.content:Array.isArray(r)?r:Array.isArray(r?.content)?r.content:Array.isArray(r?.files)?r.files:[]})(),extract:(()=>{let r=t.purge?.extract?t.purge.extract:t.content?.extract?t.content.extract:t.purge?.extract?.DEFAULT?t.purge.extract.DEFAULT:t.content?.extract?.DEFAULT?t.content.extract.DEFAULT:t.purge?.options?.extractors?t.purge.options.extractors:t.content?.options?.extractors?t.content.options.extractors:{},n={},i=(()=>{if(t.purge?.options?.defaultExtractor)return t.purge.options.defaultExtractor;if(t.content?.options?.defaultExtractor)return t.content.options.defaultExtractor})();if(i!==void 0&&(n.DEFAULT=i),typeof r=="function")n.DEFAULT=r;else if(Array.isArray(r))for(let{extensions:o,extractor:s}of r??[])for(let l of o)n[l]=s;else typeof r=="object"&&r!==null&&Object.assign(n,r);return n})(),transform:(()=>{let r=t.purge?.transform?t.purge.transform:t.content?.transform?t.content.transform:t.purge?.transform?.DEFAULT?t.purge.transform.DEFAULT:t.content?.transform?.DEFAULT?t.content.transform.DEFAULT:{},n={};return typeof r=="function"&&(n.DEFAULT=r),typeof r=="object"&&r!==null&&Object.assign(n,r),n})()};for(let r of t.content.files)if(typeof r=="string"&&/{([^,]*?)}/g.test(r)){He.warn("invalid-glob-braces",[`The glob pattern ${r} in your Tailwind CSS configuration is invalid.`,`Update it to ${r.replace(/{([^,]*?)}/g,"$1")} to silence this warning.`]);break}return t}function Ul(t){return Array.isArray(t)?t.map(e=>Ul(e)):typeof t=="object"&&t!==null?Object.fromEntries(Object.entries(t).map(([e,r])=>[e,Ul(r)])):t}function Gr(t){return typeof t=="function"}function fi(t,...e){let r=e.pop();for(let n of e)for(let i in n){let o=r(t[i],n[i]);o===void 0?At(t[i])&&At(n[i])?t[i]=fi({},t[i],n[i],r):t[i]=n[i]:t[i]=o}return t}var Al={colors:rE,negative(t){return Object.keys(t).filter(e=>t[e]!=="0").reduce((e,r)=>{let n=qo(t[r]);return n!==void 0&&(e[`-${r}`]=n),e},{})},breakpoints(t){return Object.keys(t).filter(e=>typeof t[e]=="string").reduce((e,r)=>({...e,[`screen-${r}`]:t[r]}),{})}};function iE(t,...e){return Gr(t)?t(...e):t}function oE(t){return t.reduce((e,{extend:r})=>fi(e,r,(n,i)=>n===void 0?[i]:Array.isArray(n)?[i,...n]:[i,n]),{})}function sE(t){return{...t.reduce((e,r)=>um(e,r),{}),extend:oE(t)}}function _h(t,e){if(Array.isArray(t)&&At(t[0]))return t.concat(e);if(Array.isArray(e)&&At(e[0])&&At(t))return[t,...e];if(Array.isArray(e))return e}function aE({extend:t,...e}){return fi(e,t,(r,n)=>!Gr(r)&&!n.some(Gr)?fi({},r,...n,_h):(i,o)=>fi({},...[r,...n].map(s=>iE(s,i,o)),_h))}function*lE(t){let e=di(t);if(e.length===0||(yield e,Array.isArray(t)))return;let r=/^(.*?)\s*\/\s*([^/]+)$/,n=t.match(r);if(n!==null){let[,i,o]=n,s=di(i);s.alpha=o,yield s}}function uE(t){let e=(r,n)=>{for(let i of lE(r)){let o=0,s=t;for(;s!=null&&o(r[n]=Gr(t[n])?t[n](e,Al):t[n],r),{})}function cm(t){let e=[];return t.forEach(r=>{e=[...e,r];let n=r?.plugins??[];n.length!==0&&n.forEach(i=>{i.__isOptionsFunction&&(i=i()),e=[...e,...cm([i?.config??{}])]})}),e}function cE(t){return[...t].reduceRight((r,n)=>Gr(n)?n({corePlugins:r}):tE(n,r),eE)}function fE(t){return[...t].reduceRight((r,n)=>[...r,...n],[])}function dE(t){let e=[...cm(t),{prefix:"",important:!1,separator:":"}];return nE(um({theme:uE(aE(sE(e.map(r=>r?.theme??{})))),corePlugins:cE(e.map(r=>r.corePlugins)),plugins:fE(t.map(r=>r?.plugins??[]))},...e))}var pE=Bl(Dx());function fm(t){let e=(t?.presets??[pE.default]).slice().reverse().flatMap(i=>fm(i instanceof Function?i():i)),r={respectDefaultRingColorOpacity:{theme:{ringColor:({theme:i})=>({DEFAULT:"#3b82f67f",...i("colors")})}},disableColorOpacityUtilitiesByDefault:{corePlugins:{backgroundOpacity:!1,borderOpacity:!1,divideOpacity:!1,placeholderOpacity:!1,ringOpacity:!1,textOpacity:!1}}},n=Object.keys(r).filter(i=>_t(t,i)).map(i=>r[i]);return[t,...n,...e]}function hE(...t){let[,...e]=fm(t[0]);return dE([...t,...e])}var dm=({tailwindConfig:t}={})=>{let e=t;return{setTailwindConfig(r){e=r},async generateStylesFromContent(r,n){let i=mE({tailwindConfig:e,content:n});return(await be([i]).process(r,{from:void 0})).css}}},mE=({tailwindConfig:t,content:e})=>{let r=hE(t??{});return ZS(i=>()=>i.createContext(r,e.map(o=>typeof o=="string"?{content:o}:o)))};function gE(t){Xt(t,"svelte-9t6pvg",'[data-selected="true"], [data-selected-parent="true"]{outline-color:#06b6d4;outline-width:1px;outline-style:solid}[data-selected="true"].contents > *, [data-selected-parent="true"].contents > *{outline-color:#06b6d4;outline-width:1px;outline-style:solid}[data-highlighted="true"]{outline-color:#06b6d4;outline-width:2px;outline-style:dashed}:before, :after{pointer-events:none}')}function pm(t,e,r){let n=t.slice();return n[9]=e[r],n}function hm(t,e,r){let n=t.slice();return n[12]=e[r],n[14]=r,n}function mm(t){let e,r;return e=new Us({props:{node:t[12],nodeId:String(t[14])}}),{c(){Ae(e.$$.fragment)},l(n){Te(e.$$.fragment,n)},m(n,i){Ee(e,n,i),r=!0},p(n,i){let o={};i&4&&(o.node=n[12]),e.$set(o)},i(n){r||(P(e.$$.fragment,n),r=!0)},o(n){L(e.$$.fragment,n),r=!1},d(n){Oe(e,n)}}}function bE(t){let e,r,n,i=ge(t[2].ast),o=[];for(let l=0;lL(o[l],1,1,()=>{o[l]=null});return{c(){e=I("div");for(let l=0;lL(a[c],1,1,()=>{a[c]=null});return{c(){e=I("span"),r=J(),n=I("div");for(let c=0;cr(5,n=d)),ee(t,bn,d=>r(6,i=d)),ee(t,qe,d=>r(2,o=d));let s,l,u=import(i);on(async()=>{let{default:d}=await u,f=dm({tailwindConfig:d}),g=async()=>{if(!s)return;let w=s.outerHTML,h=await f.generateStylesFromContent(n,[w]),m=document.createElement("style");m.textContent=h,l.appendChild(m)};window.reloadStylesheet=g,g()}),qe.subscribe(async()=>{await an(),window.reloadStylesheet&&window.reloadStylesheet()});function c(d){ut[d?"unshift":"push"](()=>{l=d,r(1,l)})}function p(d){ut[d?"unshift":"push"](()=>{s=d,r(0,s)})}return[s,l,o,c,p]}var Qo=class extends he{constructor(e){super(),we(this,e,_E,vE,fe,{},gE)}};customElements.define("page-wrapper",xe(Qo,{},[],[],!0));var wE=Qo;var iu={};tt(iu,{default:()=>nu});function xE(t){let e,r,n,i,o,s,l,a,u,c,p,d=t[2].default,f=rt(d,t,t[1],null),g=t[2].default,w=rt(g,t,t[1],null);return{c(){e=I("div"),f&&f.c(),r=J(),n=I("button"),i=I("span"),o=re("Delete class: "),w&&w.c(),s=J(),l=at("svg"),a=at("path"),this.h()},l(h){e=$(h,"DIV",{class:!0});var m=M(e);f&&f.l(m),r=X(m),n=$(m,"BUTTON",{class:!0,type:!0});var b=M(n);i=$(b,"SPAN",{class:!0});var v=M(i);o=ie(v,"Delete class: "),w&&w.l(v),v.forEach(x),s=X(b),l=pt(b,"svg",{xmlns:!0,viewBox:!0,fill:!0,class:!0});var _=M(l);a=pt(_,"path",{"fill-rule":!0,d:!0,"clip-rule":!0}),M(a).forEach(x),_.forEach(x),b.forEach(x),m.forEach(x),this.h()},h(){k(i,"class","sr-only"),k(a,"fill-rule","evenodd"),k(a,"d","M5.47 5.47a.75.75 0 0 1 1.06 0L12 10.94l5.47-5.47a.75.75 0 1 1 1.06 1.06L13.06 12l5.47 5.47a.75.75 0 1 1-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 0 1-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 0 1 0-1.06Z"),k(a,"clip-rule","evenodd"),k(l,"xmlns","http://www.w3.org/2000/svg"),k(l,"viewBox","0 0 24 24"),k(l,"fill","currentColor"),k(l,"class","w-3 h-3"),k(n,"class","p-2 rounded-full inline-block bg-slate-700 text-white hover:text-blue-400 active:text-blue-500"),k(n,"type","button"),k(e,"class","inline-flex items-center rounded-full bg-slate-700 text-white text-xs px-3 pr-0 m-1 leading-4")},m(h,m){T(h,e,m),f&&f.m(e,null),A(e,r),A(e,n),A(n,i),A(i,o),w&&w.m(i,null),A(n,s),A(n,l),A(l,a),u=!0,c||(p=K(n,"click",$t(t[3])),c=!0)},p(h,[m]){f&&f.p&&(!u||m&2)&&it(f,d,h,h[1],u?nt(d,h[1],m,null):ot(h[1]),null),w&&w.p&&(!u||m&2)&&it(w,g,h,h[1],u?nt(g,h[1],m,null):ot(h[1]),null)},i(h){u||(P(f,h),P(w,h),u=!0)},o(h){L(f,h),L(w,h),u=!1},d(h){h&&x(e),f&&f.d(h),w&&w.d(h),c=!1,p()}}}function kE(t,e,r){let{$$slots:n={},$$scope:i}=e,o=zt(),s=()=>o("delete");return t.$$set=l=>{"$$scope"in l&&r(1,i=l.$$scope)},[o,i,n,s]}var Ko=class extends he{constructor(e){super(),we(this,e,kE,xE,fe,{})}};xe(Ko,{},["default"],[],!0);var nu=Ko;var au={};tt(au,{default:()=>su});var ou={};tt(ou,{default:()=>dr});function bm(t,e,r){let n=t.slice();return n[32]=e[r],n[34]=r,n}var SE=t=>({}),vm=t=>({}),EE=t=>({}),ym=t=>({}),OE=t=>({}),_m=t=>({}),CE=t=>({}),wm=t=>({}),AE=t=>({}),xm=t=>({});function km(t){let e,r='',n,i;return{c(){e=I("button"),e.innerHTML=r,this.h()},l(o){e=$(o,"BUTTON",{type:!0,class:!0,title:!0,"data-svelte-h":!0}),Ke(e)!=="svelte-16fai8w"&&(e.innerHTML=r),this.h()},h(){k(e,"type","button"),k(e,"class","ml-4"),k(e,"title","Delete attribute")},m(o,s){T(o,e,s),n||(i=K(e,"click",xt(t[9])),n=!0)},p:Q,d(o){o&&x(e),n=!1,i()}}}function TE(t){let e,r=t[19].input,n=rt(r,t,t[18],ym),i=n||RE(t);return{c(){i&&i.c()},l(o){i&&i.l(o)},m(o,s){i&&i.m(o,s),e=!0},p(o,s){n?n.p&&(!e||s[0]&262144)&&it(n,r,o,o[18],e?nt(r,o[18],s,EE):ot(o[18]),ym):i&&i.p&&(!e||s[0]&295022)&&i.p(o,e?s:[-1,-1])},i(o){e||(P(i,o),e=!0)},o(o){L(i,o),e=!1},d(o){i&&i.d(o)}}}function IE(t){let e,r,n,i=t[19].input,o=rt(i,t,t[18],wm),s=o||jE(t),l=t[19].value,a=rt(l,t,t[18],_m);return{c(){s&&s.c(),e=J(),r=I("div"),a&&a.c(),this.h()},l(u){s&&s.l(u),e=X(u),r=$(u,"DIV",{class:!0});var c=M(r);a&&a.l(c),c.forEach(x),this.h()},h(){k(r,"class","pt-3")},m(u,c){s&&s.m(u,c),T(u,e,c),T(u,r,c),a&&a.m(r,null),n=!0},p(u,c){o?o.p&&(!n||c[0]&262144)&&it(o,i,u,u[18],n?nt(i,u[18],c,CE):ot(u[18]),wm):s&&s.p&&(!n||c[0]&68)&&s.p(u,n?c:[-1,-1]),a&&a.p&&(!n||c[0]&262144)&&it(a,l,u,u[18],n?nt(l,u[18],c,OE):ot(u[18]),_m)},i(u){n||(P(s,u),P(a,u),n=!0)},o(u){L(s,u),L(a,u),n=!1},d(u){u&&(x(e),x(r)),s&&s.d(u),a&&a.d(u)}}}function PE(t){let e,r=ge(t[1]),n=[];for(let i=0;i{l=null}),ue())},i(a){n||(P(l),n=!0)},o(a){L(l),n=!1},d(a){a&&(x(e),x(r)),s.d(a),l&&l.d(a)}}}function DE(t){let e,r,n,i;function o(...s){return t[27](t[34],...s)}return{c(){e=I("input"),this.h()},l(s){e=$(s,"INPUT",{type:!0,class:!0,placeholder:!0}),this.h()},h(){k(e,"type","text"),k(e,"class","w-full py-1 px-2 mt-5 bg-slate-100 border-slate-100 rounded-md leading-6 text-sm"),k(e,"placeholder",t[2]),e.value=r=t[32]},m(s,l){T(s,e,l),n||(i=[K(e,"keydown",t[10]),K(e,"change",o)],n=!0)},p(s,l){t=s,l[0]&4&&k(e,"placeholder",t[2]),l[0]&2&&r!==(r=t[32])&&e.value!==r&&(e.value=r)},d(s){s&&x(e),n=!1,ce(i)}}}function ME(t){let e,r,n,i;function o(...s){return t[26](t[34],...s)}return{c(){e=I("textarea"),this.h()},l(s){e=$(s,"TEXTAREA",{class:!0,placeholder:!0}),M(e).forEach(x),this.h()},h(){k(e,"class","w-full py-1 px-2 bg-slate-100 border-slate-100 rounded-md leading-6 text-sm"),k(e,"placeholder",t[2]),e.value=r=t[32]},m(s,l){T(s,e,l),n||(i=[K(e,"keydown",t[10]),K(e,"change",o)],n=!0)},p(s,l){t=s,l[0]&4&&k(e,"placeholder",t[2]),l[0]&2&&r!==(r=t[32])&&(e.value=r)},d(s){s&&x(e),n=!1,ce(i)}}}function FE(t){let e,r,n,i,o,s=t[32].tag+"",l,a,u,c,p,d,f=t[32].tag+"",g,w,h,m,b,v,_,y,C,E,S,D,O=t[32].tag+"",F,Z,Y,U,ne,pe,ye,Ue,R,ae,et,z,te=t[32].tag+"",B,se,oe,Be,Qe,ze,It,Pt,Ge,Qt;function Sr(){return t[21](t[32])}function Er(){return t[22](t[32])}function Yr(){return t[23](t[32])}function Qr(){return t[24](t[32])}return{c(){e=I("div"),r=I("div"),n=I("span"),i=I("code"),o=re("<"),l=re(s),a=re(">"),u=J(),c=I("button"),p=re("Edit "),d=I("span"),g=re(f),w=re(" element"),h=J(),m=at("svg"),b=at("path"),v=at("path"),_=J(),y=I("div"),C=I("button"),E=I("span"),S=re("Move "),D=I("span"),F=re(O),Z=re(" element"),Y=re(" up"),U=J(),ne=at("svg"),pe=at("path"),Ue=J(),R=I("button"),ae=I("span"),et=re("Move "),z=I("span"),B=re(te),se=re(" element"),oe=re(" down"),Be=J(),Qe=at("svg"),ze=at("path"),Pt=J(),this.h()},l(jt){e=$(jt,"DIV",{class:!0});var dt=M(e);r=$(dt,"DIV",{class:!0});var hi=M(r);n=$(hi,"SPAN",{});var pu=M(n);i=$(pu,"CODE",{});var mi=M(i);o=ie(mi,"<"),l=ie(mi,s),a=ie(mi,">"),mi.forEach(x),pu.forEach(x),u=X(hi),c=$(hi,"BUTTON",{class:!0});var Kr=M(c);p=ie(Kr,"Edit "),d=$(Kr,"SPAN",{class:!0});var is=M(d);g=ie(is,f),w=ie(is," element"),is.forEach(x),h=X(Kr),m=pt(Kr,"svg",{xmlns:!0,viewBox:!0,fill:!0,class:!0});var os=M(m);b=pt(os,"path",{d:!0}),M(b).forEach(x),v=pt(os,"path",{d:!0}),M(v).forEach(x),os.forEach(x),Kr.forEach(x),hi.forEach(x),_=X(dt),y=$(dt,"DIV",{class:!0});var gi=M(y);C=$(gi,"BUTTON",{class:!0});var bi=M(C);E=$(bi,"SPAN",{});var vi=M(E);S=ie(vi,"Move "),D=$(vi,"SPAN",{class:!0});var ss=M(D);F=ie(ss,O),Z=ie(ss," element"),ss.forEach(x),Y=ie(vi," up"),vi.forEach(x),U=X(bi),ne=pt(bi,"svg",{xmlns:!0,viewBox:!0,fill:!0,class:!0});var hu=M(ne);pe=pt(hu,"path",{"fill-rule":!0,d:!0,"clip-rule":!0}),M(pe).forEach(x),hu.forEach(x),bi.forEach(x),Ue=X(gi),R=$(gi,"BUTTON",{class:!0});var yi=M(R);ae=$(yi,"SPAN",{});var _i=M(ae);et=ie(_i,"Move "),z=$(_i,"SPAN",{class:!0});var as=M(z);B=ie(as,te),se=ie(as," element"),as.forEach(x),oe=ie(_i," down"),_i.forEach(x),Be=X(yi),Qe=pt(yi,"svg",{xmlns:!0,viewBox:!0,fill:!0,class:!0});var mu=M(Qe);ze=pt(mu,"path",{"fill-rule":!0,d:!0,"clip-rule":!0}),M(ze).forEach(x),mu.forEach(x),yi.forEach(x),gi.forEach(x),Pt=X(dt),dt.forEach(x),this.h()},h(){k(d,"class","sr-only"),k(b,"d","M21.731 2.269a2.625 2.625 0 0 0-3.712 0l-1.157 1.157 3.712 3.712 1.157-1.157a2.625 2.625 0 0 0 0-3.712ZM19.513 8.199l-3.712-3.712-8.4 8.4a5.25 5.25 0 0 0-1.32 2.214l-.8 2.685a.75.75 0 0 0 .933.933l2.685-.8a5.25 5.25 0 0 0 2.214-1.32l8.4-8.4Z"),k(v,"d","M5.25 5.25a3 3 0 0 0-3 3v10.5a3 3 0 0 0 3 3h10.5a3 3 0 0 0 3-3V13.5a.75.75 0 0 0-1.5 0v5.25a1.5 1.5 0 0 1-1.5 1.5H5.25a1.5 1.5 0 0 1-1.5-1.5V8.25a1.5 1.5 0 0 1 1.5-1.5h5.25a.75.75 0 0 0 0-1.5H5.25Z"),k(m,"xmlns","http://www.w3.org/2000/svg"),k(m,"viewBox","0 0 24 24"),k(m,"fill","currentColor"),k(m,"class","w-3 h-3"),k(c,"class","flex items-center justify-center gap-x-0.5 px-2 py-1 bg-cyan-300 font-bold text-xs uppercase tracking-wide rounded transition-colors hover:bg-cyan-900 active:bg-cyan-700 hover:text-white"),k(r,"class","flex items-center justify-between"),k(D,"class","sr-only"),k(pe,"fill-rule","evenodd"),k(pe,"d","M11.47 2.47a.75.75 0 0 1 1.06 0l7.5 7.5a.75.75 0 1 1-1.06 1.06l-6.22-6.22V21a.75.75 0 0 1-1.5 0V4.81l-6.22 6.22a.75.75 0 1 1-1.06-1.06l7.5-7.5Z"),k(pe,"clip-rule","evenodd"),k(ne,"xmlns","http://www.w3.org/2000/svg"),k(ne,"viewBox","0 0 24 24"),k(ne,"fill","currentColor"),k(ne,"class","w-3 h-3"),k(C,"class","flex items-center justify-center gap-x-0.5 px-1.5 py-1 bg-cyan-800 font-bold text-xs uppercase tracking-wide rounded hover:bg-cyan-950 active:bg-cyan-700 disabled:bg-gray-300 disabled:cursor-not-allowed text-white"),C.disabled=ye=t[34]===0,k(z,"class","sr-only"),k(ze,"fill-rule","evenodd"),k(ze,"d","M12 2.25a.75.75 0 0 1 .75.75v16.19l6.22-6.22a.75.75 0 1 1 1.06 1.06l-7.5 7.5a.75.75 0 0 1-1.06 0l-7.5-7.5a.75.75 0 1 1 1.06-1.06l6.22 6.22V3a.75.75 0 0 1 .75-.75Z"),k(ze,"clip-rule","evenodd"),k(Qe,"xmlns","http://www.w3.org/2000/svg"),k(Qe,"viewBox","0 0 24 24"),k(Qe,"fill","currentColor"),k(Qe,"class","w-3 h-3"),k(R,"class","flex items-center justify-center gap-x-0.5 px-1.5 py-1 bg-cyan-800 font-bold text-xs uppercase tracking-wide rounded hover:bg-cyan-950 active:bg-cyan-700 disabled:bg-gray-300 disabled:cursor-not-allowed text-white"),R.disabled=It=t[34]===t[1].length-1,k(y,"class","mt-2 grid grid-cols-2 gap-x-1"),k(e,"class","mt-5")},m(jt,dt){T(jt,e,dt),A(e,r),A(r,n),A(n,i),A(i,o),A(i,l),A(i,a),A(r,u),A(r,c),A(c,p),A(c,d),A(d,g),A(d,w),A(c,h),A(c,m),A(m,b),A(m,v),A(e,_),A(e,y),A(y,C),A(C,E),A(E,S),A(E,D),A(D,F),A(D,Z),A(E,Y),A(C,U),A(C,ne),A(ne,pe),A(y,Ue),A(y,R),A(R,ae),A(ae,et),A(ae,z),A(z,B),A(z,se),A(ae,oe),A(R,Be),A(R,Qe),A(Qe,ze),A(e,Pt),Ge||(Qt=[K(c,"click",Sr),K(C,"click",Er),K(R,"click",Yr),K(e,"mouseenter",Qr),K(e,"mouseleave",t[25])],Ge=!0)},p(jt,dt){t=jt,dt[0]&2&&s!==(s=t[32].tag+"")&&We(l,s),dt[0]&2&&f!==(f=t[32].tag+"")&&We(g,f),dt[0]&2&&O!==(O=t[32].tag+"")&&We(F,O),dt[0]&2&&te!==(te=t[32].tag+"")&&We(B,te),dt[0]&2&&It!==(It=t[34]===t[1].length-1)&&(R.disabled=It)},d(jt){jt&&x(e),Ge=!1,ce(Qt)}}}function Sm(t){let e,r;function n(s,l){return l[0]&2&&(e=null),e==null&&(e=!!je(s[32])),e?FE:s[3]?ME:DE}let i=n(t,[-1,-1]),o=i(t);return{c(){o.c(),r=G()},l(s){o.l(s),r=G()},m(s,l){o.m(s,l),T(s,r,l)},p(s,l){i===(i=n(s,l))&&o?o.p(s,l):(o.d(1),o=i(s),o&&(o.c(),o.m(r.parentNode,r)))},d(s){s&&x(r),o.d(s)}}}function LE(t){let e,r,n;return{c(){e=I("input"),this.h()},l(i){e=$(i,"INPUT",{type:!0,class:!0,placeholder:!0}),this.h()},h(){k(e,"type","text"),k(e,"class","w-full py-1 px-2 bg-slate-100 border-slate-100 rounded-md leading-6 text-sm"),k(e,"placeholder",t[2]),e.value=t[6]},m(i,o){T(i,e,o),r||(n=[K(e,"keydown",t[10]),K(e,"change",t[11])],r=!0)},p(i,o){o[0]&4&&k(e,"placeholder",i[2]),o[0]&64&&e.value!==i[6]&&(e.value=i[6])},d(i){i&&x(e),r=!1,ce(n)}}}function NE(t){let e,r,n;return{c(){e=I("textarea"),this.h()},l(i){e=$(i,"TEXTAREA",{class:!0,placeholder:!0}),M(e).forEach(x),this.h()},h(){k(e,"class","w-full py-1 px-2 bg-slate-100 border-slate-100 rounded-md leading-6 text-sm"),k(e,"placeholder",t[2]),e.value=t[6],e.disabled=t[5]},m(i,o){T(i,e,o),r||(n=[K(e,"keydown",t[10]),K(e,"change",t[11])],r=!0)},p(i,o){o[0]&4&&k(e,"placeholder",i[2]),o[0]&64&&(e.value=i[6]),o[0]&32&&(e.disabled=i[5])},d(i){i&&x(e),r=!1,ce(n)}}}function Em(t){let e,r,n=t[19].value,i=rt(n,t,t[18],vm);return{c(){e=I("div"),i&&i.c(),this.h()},l(o){e=$(o,"DIV",{class:!0});var s=M(e);i&&i.l(s),s.forEach(x),this.h()},h(){k(e,"class","pt-3")},m(o,s){T(o,e,s),i&&i.m(e,null),r=!0},p(o,s){i&&i.p&&(!r||s[0]&262144)&&it(i,n,o,o[18],r?nt(n,o[18],s,SE):ot(o[18]),vm)},i(o){r||(P(i,o),r=!0)},o(o){L(i,o),r=!1},d(o){o&&x(e),i&&i.d(o)}}}function RE(t){let e,r,n,i,o=[$E,PE],s=[];function l(a,u){return a[6]?0:a[1]?1:-1}return~(e=l(t,[-1,-1]))&&(r=s[e]=o[e](t)),{c(){r&&r.c(),n=G()},l(a){r&&r.l(a),n=G()},m(a,u){~e&&s[e].m(a,u),T(a,n,u),i=!0},p(a,u){let c=e;e=l(a,u),e===c?~e&&s[e].p(a,u):(r&&(le(),L(s[c],1,1,()=>{s[c]=null}),ue()),~e?(r=s[e],r?r.p(a,u):(r=s[e]=o[e](a),r.c()),P(r,1),r.m(n.parentNode,n)):r=null)},i(a){i||(P(r),i=!0)},o(a){L(r),i=!1},d(a){a&&x(n),~e&&s[e].d(a)}}}function jE(t){let e,r,n;return{c(){e=I("input"),this.h()},l(i){e=$(i,"INPUT",{type:!0,class:!0,placeholder:!0}),this.h()},h(){k(e,"type","text"),k(e,"class","w-full py-1 px-2 bg-gray-100 border-gray-100 rounded-md leading-6 text-sm"),k(e,"placeholder",t[2]),e.value=t[6]},m(i,o){T(i,e,o),r||(n=[K(e,"keydown",t[10]),K(e,"change",t[11])],r=!0)},p(i,o){o[0]&4&&k(e,"placeholder",i[2]),o[0]&64&&e.value!==i[6]&&(e.value=i[6])},d(i){i&&x(e),r=!1,ce(n)}}}function qE(t){let e,r,n,i,o,s,l,a,u,c,p,d,f,g,w,h,m,b=t[19].heading,v=rt(b,t,t[18],xm),_=!t[4]&&km(t),y=[IE,TE],C=[];function E(S,D){return S[15].value?0:S[0]?1:-1}return~(f=E(t,[-1,-1]))&&(g=C[f]=y[f](t)),{c(){e=I("section"),r=I("header"),n=I("button"),i=I("span"),o=I("span"),v&&v.c(),s=J(),_&&_.c(),l=J(),a=I("span"),u=at("svg"),c=at("path"),d=J(),g&&g.c(),this.h()},l(S){e=$(S,"SECTION",{class:!0});var D=M(e);r=$(D,"HEADER",{class:!0});var O=M(r);n=$(O,"BUTTON",{type:!0,class:!0,"aria-expanded":!0});var F=M(n);i=$(F,"SPAN",{});var Z=M(i);o=$(Z,"SPAN",{class:!0});var Y=M(o);v&&v.l(Y),Y.forEach(x),s=X(Z),_&&_.l(Z),Z.forEach(x),l=X(F),a=$(F,"SPAN",{class:!0});var U=M(a);u=pt(U,"svg",{xmlns:!0,viewBox:!0,fill:!0,class:!0});var ne=M(u);c=pt(ne,"path",{"fill-rule":!0,d:!0,"clip-rule":!0}),M(c).forEach(x),ne.forEach(x),U.forEach(x),F.forEach(x),O.forEach(x),d=X(D),g&&g.l(D),D.forEach(x),this.h()},h(){k(o,"class","hover:text-blue-700 active:text-blue-900"),k(c,"fill-rule","evenodd"),k(c,"d","M11.47 7.72a.75.75 0 0 1 1.06 0l7.5 7.5a.75.75 0 1 1-1.06 1.06L12 9.31l-6.97 6.97a.75.75 0 0 1-1.06-1.06l7.5-7.5Z"),k(c,"clip-rule","evenodd"),k(u,"xmlns","http://www.w3.org/2000/svg"),k(u,"viewBox","0 0 24 24"),k(u,"fill","currentColor"),k(u,"class","w-5 h-5 stroke-slate-500 fill-slate-500 group-hover:stroke-current group-hover:fill-current"),k(a,"class",p=t[0]?"":" [&_path]:origin-center [&_path]:rotate-180"),k(n,"type","button"),k(n,"class","w-full flex items-center justify-between gap-x-1 p-1 font-semibold group"),k(n,"aria-expanded",t[0]),k(r,"class","flex items-center text-sm mb-2 font-medium"),k(e,"class","p-4 border-b border-b-gray-100 border-solid")},m(S,D){T(S,e,D),A(e,r),A(r,n),A(n,i),A(i,o),v&&v.m(o,null),A(i,s),_&&_.m(i,null),A(n,l),A(n,a),A(a,u),A(u,c),A(e,d),~f&&C[f].m(e,null),w=!0,h||(m=K(n,"click",t[20]),h=!0)},p(S,D){v&&v.p&&(!w||D[0]&262144)&&it(v,b,S,S[18],w?nt(b,S[18],D,AE):ot(S[18]),xm),S[4]?_&&(_.d(1),_=null):_?_.p(S,D):(_=km(S),_.c(),_.m(i,null)),(!w||D[0]&1&&p!==(p=S[0]?"":" [&_path]:origin-center [&_path]:rotate-180"))&&k(a,"class",p),(!w||D[0]&1)&&k(n,"aria-expanded",S[0]);let O=f;f=E(S,D),f===O?~f&&C[f].p(S,D):(g&&(le(),L(C[O],1,1,()=>{C[O]=null}),ue()),~f?(g=C[f],g?g.p(S,D):(g=C[f]=y[f](S),g.c()),P(g,1),g.m(e,null)):g=null)},i(S){w||(P(v,S),P(g),w=!0)},o(S){L(v,S),L(g),w=!1},d(S){S&&x(e),v&&v.d(S),_&&_.d(),~f&&C[f].d(),h=!1,m()}}}function UE(t,e,r){let n,i,o;ee(t,Ye,R=>r(29,i=R)),ee(t,Vt,R=>r(30,o=R));let{$$slots:s={},$$scope:l}=e,a=Lu(s),u=zt(),{value:c=""}=e,{astNodes:p=null}=e,{clearOnUpdate:d=!1}=e,{expanded:f=!0}=e,{placeholder:g=""}=e,{large:w=!1}=e,{disableDelete:h=!1}=e,{disabled:m=!1}=e;function b(R){_e(Vt,o=R,o)}function v(){_e(Vt,o=void 0,o)}function _(){confirm("Are you sure you want to delete this attribute?")&&u("delete")}let y=n?null:c;function C(R){if(!(R.target instanceof HTMLInputElement))return;let ae=R.target.value;R.key==="Enter"&&ae&&ae.length>0&&ae!==c&&(u("update",ae),d&&(r(6,y=null),R.target.value=""))}function E(R){(R.target instanceof HTMLInputElement||R.target instanceof HTMLTextAreaElement)&&u("textChange",R.target.value)}function S(R){let ae=Nc(R);_e(Ye,i=ae,i)}function D(R,ae){if(!p)return;let et=Array.from(p),z=et.indexOf(ae);et.splice(z,1),et.splice(z+R,0,ae),u("nodesChange",et)}function O(R,ae){let et=[...p];et[ae]=R.target.value,u("nodesChange",et)}let F=()=>r(0,f=!f),Z=R=>S(R),Y=R=>D(-1,R),U=R=>D(1,R),ne=R=>b(R),pe=()=>v(),ye=(R,ae)=>O(ae,R),Ue=(R,ae)=>O(ae,R);return t.$$set=R=>{"value"in R&&r(16,c=R.value),"astNodes"in R&&r(1,p=R.astNodes),"clearOnUpdate"in R&&r(17,d=R.clearOnUpdate),"expanded"in R&&r(0,f=R.expanded),"placeholder"in R&&r(2,g=R.placeholder),"large"in R&&r(3,w=R.large),"disableDelete"in R&&r(4,h=R.disableDelete),"disabled"in R&&r(5,m=R.disabled),"$$scope"in R&&r(18,l=R.$$scope)},t.$$.update=()=>{if(t.$$.dirty[0]&2&&(n=(p||[]).filter(je)),t.$$.dirty[0]&2)if(p?.length===1){let R=p[0];je(R)||r(6,y=R)}else p&&r(6,y=null)},[f,p,g,w,h,m,y,b,v,_,C,E,S,D,O,a,c,d,l,s,F,Z,Y,U,ne,pe,ye,Ue]}var Jo=class extends he{constructor(e){super(),we(this,e,UE,qE,fe,{value:16,astNodes:1,clearOnUpdate:17,expanded:0,placeholder:2,large:3,disableDelete:4,disabled:5},null,[-1,-1])}get value(){return this.$$.ctx[16]}set value(e){this.$$set({value:e}),de()}get astNodes(){return this.$$.ctx[1]}set astNodes(e){this.$$set({astNodes:e}),de()}get clearOnUpdate(){return this.$$.ctx[17]}set clearOnUpdate(e){this.$$set({clearOnUpdate:e}),de()}get expanded(){return this.$$.ctx[0]}set expanded(e){this.$$set({expanded:e}),de()}get placeholder(){return this.$$.ctx[2]}set placeholder(e){this.$$set({placeholder:e}),de()}get large(){return this.$$.ctx[3]}set large(e){this.$$set({large:e}),de()}get disableDelete(){return this.$$.ctx[4]}set disableDelete(e){this.$$set({disableDelete:e}),de()}get disabled(){return this.$$.ctx[5]}set disabled(e){this.$$set({disabled:e}),de()}};xe(Jo,{value:{},astNodes:{},clearOnUpdate:{type:"Boolean"},expanded:{type:"Boolean"},placeholder:{},large:{type:"Boolean"},disableDelete:{type:"Boolean"},disabled:{type:"Boolean"}},["heading","input","value"],[],!0);var dr=Jo;function Om(t,e,r){let n=t.slice();return n[35]=e[r],n[36]=e,n[37]=r,n}function Cm(t,e,r){let n=t.slice();n[38]=e[r];let i=n[38];return n[39]=i[0],n[40]=i[1],n}function Am(t,e,r){let n=t.slice();return n[43]=e[r],n}function BE(t){let e,r="Select a component to edit its properties";return{c(){e=I("div"),e.textContent=r,this.h()},l(n){e=$(n,"DIV",{class:!0,"data-svelte-h":!0}),Ke(e)!=="svelte-y8jlza"&&(e.textContent=r),this.h()},h(){k(e,"class","p-4 pt-8 font-medium text-lg text-center")},m(n,i){T(n,e,i)},p:Q,i:Q,o:Q,d(n){n&&x(e)}}}function zE(t){let e,r,n,i,o,s='Close ',l,a,u,c,p=t[8]&&ir(t[8]),d,f,g,w,h,m,b=!t[5]&&Tm(t),v=t[4]&&Im(t),_=t[0].tag==="eex_block"&&Mm(t),y=p&&Fm(t),C=t[0].content?.length>0&&Lm(t);return g=new dr({props:{expanded:!1,disableDelete:!0,$$slots:{input:[ZE],heading:[XE]},$$scope:{ctx:t}}}),{c(){e=I("div"),r=re(t[6]),n=J(),b&&b.c(),i=J(),o=I("button"),o.innerHTML=s,l=J(),v&&v.c(),a=J(),_&&_.c(),u=J(),c=I("div"),y&&y.c(),d=J(),C&&C.c(),f=J(),Ae(g.$$.fragment),this.h()},l(E){e=$(E,"DIV",{class:!0});var S=M(e);r=ie(S,t[6]),n=X(S),b&&b.l(S),i=X(S),o=$(S,"BUTTON",{type:!0,class:!0,"data-svelte-h":!0}),Ke(o)!=="svelte-u311kl"&&(o.innerHTML=s),S.forEach(x),l=X(E),v&&v.l(E),a=X(E),_&&_.l(E),u=X(E),c=$(E,"DIV",{class:!0});var D=M(c);y&&y.l(D),d=X(D),C&&C.l(D),D.forEach(x),f=X(E),Te(g.$$.fragment,E),this.h()},h(){k(o,"type","button"),k(o,"class","absolute p-2 top-2 right-1"),k(e,"class","border-b text-lg font-medium leading-5 p-4 relative"),k(c,"class","relative")},m(E,S){T(E,e,S),A(e,r),A(e,n),b&&b.m(e,null),A(e,i),A(e,o),T(E,l,S),v&&v.m(E,S),T(E,a,S),_&&_.m(E,S),T(E,u,S),T(E,c,S),y&&y.m(c,null),A(c,d),C&&C.m(c,null),T(E,f,S),Ee(g,E,S),w=!0,h||(m=K(o,"click",hn),h=!0)},p(E,S){(!w||S[0]&64)&&We(r,E[6]),E[5]?b&&(b.d(1),b=null):b?b.p(E,S):(b=Tm(E),b.c(),b.m(e,i)),E[4]?v?(v.p(E,S),S[0]&16&&P(v,1)):(v=Im(E),v.c(),P(v,1),v.m(a.parentNode,a)):v&&(le(),L(v,1,1,()=>{v=null}),ue()),E[0].tag==="eex_block"?_?(_.p(E,S),S[0]&1&&P(_,1)):(_=Mm(E),_.c(),P(_,1),_.m(u.parentNode,u)):_&&(le(),L(_,1,1,()=>{_=null}),ue()),S[0]&256&&(p=E[8]&&ir(E[8])),p?y?y.p(E,S):(y=Fm(E),y.c(),y.m(c,d)):y&&(y.d(1),y=null),E[0].content?.length>0?C?(C.p(E,S),S[0]&1&&P(C,1)):(C=Lm(E),C.c(),P(C,1),C.m(c,null)):C&&(le(),L(C,1,1,()=>{C=null}),ue());let D={};S[0]&64|S[1]&32768&&(D.$$scope={dirty:S,ctx:E}),g.$set(D)},i(E){w||(P(v),P(_),P(C),P(g.$$.fragment,E),w=!0)},o(E){L(v),L(_),L(C),L(g.$$.fragment,E),w=!1},d(E){E&&(x(e),x(l),x(a),x(u),x(c),x(f)),b&&b.d(),v&&v.d(E),_&&_.d(E),y&&y.d(),C&&C.d(),Oe(g,E),h=!1,m()}}}function Tm(t){let e,r='Up one level ',n,i;return{c(){e=I("button"),e.innerHTML=r,this.h()},l(o){e=$(o,"BUTTON",{type:!0,class:!0,"data-svelte-h":!0}),Ke(e)!=="svelte-4v1xz6"&&(e.innerHTML=r),this.h()},h(){k(e,"type","button"),k(e,"class","absolute p-2 top-2 right-9 group")},m(o,s){T(o,e,s),n||(i=K(e,"click",t[13]),n=!0)},p:Q,d(o){o&&x(e),n=!1,i()}}}function Im(t){let e,r,n=[],i=new Map,o,s=[],l=new Map,a,u,c,p="+ Add attribute",d,f,g;e=new dr({props:{clearOnUpdate:!0,disableDelete:!0,placeholder:"Add new class",$$slots:{value:[HE],heading:[WE]},$$scope:{ctx:t}}}),e.$on("update",t[12]);let w=ge(t[7]),h=v=>v[38];for(let v=0;vv[35];for(let v=0;vL(i[s],1,1,()=>{i[s]=null});return{c(){for(let s=0;s{l[p]=null}),ue(),i=l[n],i?i.p(u,c):(i=l[n]=s[n](u),i.c()),P(i,1),i.m(r,null))},i(u){o||(P(i),o=!0)},o(u){L(i),o=!1},d(u){u&&x(e),l[n].d()}}}function t2(t,e,r){let n,i,o,s,l,a,u,c,p;ee(t,qe,z=>r(32,l=z)),ee(t,mt,z=>r(33,a=z)),ee(t,$r,z=>r(0,u=z)),ee(t,Ye,z=>r(22,c=z)),ee(t,St,z=>r(8,p=z));let d=zt(),f,g=[];function w(){r(2,g=[...g,{name:"",value:""}])}function h(z){let te=g[z];if(te.name&&te.value){let B=u;B&&je(B)&&(B.attrs[te.name]=te.value,a.pushEvent("update_page_ast",{id:l.id,ast:l.ast}),r(2,g=g.filter((se,oe)=>oe!==z)))}}function m(z){let te=u;te&&je(te)&&(delete te.attrs[z],a.pushEvent("update_page_ast",{id:l.id,ast:l.ast}))}async function b({detail:z}){let te=u;if(te){let B=z.split(" ").map(se=>se.trim());te.attrs.class=te.attrs.class?`${te.attrs.class} ${B.join(" ")}`:B.join(" "),a.pushEvent("update_page_ast",{id:l.id,ast:l.ast})}}function v(){let z=Ji(c);Ki(z)}async function _(z){let te=u;if(te){let B=te.attrs.class.split(" ").filter(se=>se!==z).join(" ");te.attrs.class=B,a.pushEvent("update_page_ast",{id:l.id,ast:l.ast})}}async function y(z){Xi(u,z.detail)}async function C(z){let te=u;te&&je(te)&&(te.arg=z.detail,a.pushEvent("update_page_ast",{id:l.id,ast:l.ast}))}async function E(z,te){let B=u;B&&je(B)&&(B.attrs[z]=te.detail,a.pushEvent("update_page_ast",{id:l.id,ast:l.ast}))}async function S(){c&&confirm("Are you sure you want to delete this component?")&&(eo(c),hn())}function D(){d("droppedIntoTarget",u)}let O=!1;function F(z){z.preventDefault(),r(3,O=!0),z.dataTransfer&&(z.dataTransfer.dropEffect="move")}async function Z({detail:z}){if(c==="root"){let te=l;te.ast=z}else{let te=u;if(!te)return;te.content=z}a.pushEvent("update_page_ast",{id:l.id,ast:l.ast})}let Y=z=>_(z),U=z=>m(z),ne=(z,te)=>E(z,te);function pe(z,te){z[te].name=this.value,r(2,g)}let ye=z=>h(z);function Ue(z,te){z[te].value=this.value,r(2,g)}let R=z=>h(z),ae=()=>r(3,O=!1),et=z=>y(z);return t.$$.update=()=>{if(t.$$.dirty[0]&1){let z=u?.attrs?.class;r(1,f=z?z.split(" ").filter(te=>te.trim().length>0):[])}t.$$.dirty[0]&1&&r(7,n=Object.entries(u?.attrs||{}).filter(([z,te])=>z!=="class"&&z!=="self_close"&&!/data-/.test(z))),t.$$.dirty[0]&1&&r(6,i=u?.tag),t.$$.dirty[0]&4194304&&r(5,o=!!c&&c==="root"),t.$$.dirty[0]&1&&r(4,s=!["eex","eex_block"].includes(u?.tag))},[u,f,g,O,s,o,i,n,p,w,h,m,b,v,_,y,C,E,S,D,F,Z,c,Y,U,ne,pe,ye,Ue,R,ae,et]}var Xo=class extends he{constructor(e){super(),we(this,e,t2,e2,fe,{},null,[-1,-1])}};xe(Xo,{},[],[],!0);var su=Xo;var cu={};tt(cu,{default:()=>uu});var lu={};tt(lu,{default:()=>es,isDragging:()=>pr});function Nm(t){let e,r,n,i,o,s=t[2]&&Rm(t);return{c(){s&&s.c(),e=J(),r=I("button"),n=I("span"),this.h()},l(l){s&&s.l(l),e=X(l),r=$(l,"BUTTON",{class:!0,style:!0});var a=M(r);n=$(a,"SPAN",{}),M(n).forEach(x),a.forEach(x),this.h()},h(){Le(n,"hero-arrows-right-left",t[3]==="horizontal"),Le(n,"hero-arrows-up-down",t[3]==="vertical"),Le(n,"hero-arrows-pointing-out",t[3]==="both"),k(r,"class","rounded-full w-6 h-6 flex justify-center items-center absolute bg-blue-600 text-white hover:bg-blue-700 focus:outline-none focus-visible:ring-4 focus-visible:ring-blue-200 active:bg-blue-800 transform"),k(r,"style",t[1])},m(l,a){s&&s.m(l,a),T(l,e,a),T(l,r,a),A(r,n),t[8](r),i||(o=K(r,"mousedown",t[5]),i=!0)},p(l,a){l[2]?s?s.p(l,a):(s=Rm(l),s.c(),s.m(e.parentNode,e)):s&&(s.d(1),s=null),a[0]&8&&Le(n,"hero-arrows-right-left",l[3]==="horizontal"),a[0]&8&&Le(n,"hero-arrows-up-down",l[3]==="vertical"),a[0]&8&&Le(n,"hero-arrows-pointing-out",l[3]==="both"),a[0]&2&&k(r,"style",l[1])},d(l){l&&(x(e),x(r)),s&&s.d(l),t[8](null),i=!1,o()}}}function Rm(t){let e,r;return{c(){e=I("div"),this.h()},l(n){e=$(n,"DIV",{class:!0,style:!0}),M(e).forEach(x),this.h()},h(){k(e,"class","absolute transition-all"),k(e,"style",r="background-color:aqua; opacity: 0.5; "+t[2])},m(n,i){T(n,e,i)},p(n,i){i[0]&4&&r!==(r="background-color:aqua; opacity: 0.5; "+n[2])&&k(e,"style",r)},d(n){n&&x(e)}}}function r2(t){let e,r=t[4]&&Nm(t);return{c(){r&&r.c(),e=G()},l(n){r&&r.l(n),e=G()},m(n,i){r&&r.m(n,i),T(n,e,i)},p(n,i){n[4]?r?r.p(n,i):(r=Nm(n),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null)},i:Q,o:Q,d(n){n&&x(e),r&&r.d(n)}}}var pr=Ve(!1);function n2(t,e){return e==="bottom"?t.x+t.width/2-5:t.x-25}function i2(t,e){return e==="bottom"?t.y+t.height+5:t.y+t.height/2-5}function o2(t,e,r){let n,i,o,s=Q,l=()=>(s(),s=Jt(pr,B=>r(15,o=B)),pr),a,u,c,p,d;ee(t,pr,B=>r(15,o=B)),ee(t,qe,B=>r(16,a=B)),ee(t,mt,B=>r(17,u=B)),ee(t,Ye,B=>r(18,c=B)),ee(t,Fc,B=>r(19,p=B)),ee(t,Lc,B=>r(20,d=B)),t.$$.on_destroy.push(()=>s());let{element:f}=e,{isParent:g=!1}=e,w,h,m="",b,v,_;function y(B,se){v=document.getElementById("ui-builder-app-container").closest(".relative").getBoundingClientRect();let oe=se?"left":"bottom";b={x:n2(B,oe)-v.x,y:i2(B,oe)-v.y}}function C(B,se=!1){let oe=_?_.originalSiblingRects[_.selectedIndex]:Mr(B);y(oe,se);let Be=[];b?.y&&Be.push(`top: ${b.y}px`),b?.x&&Be.push(`left: ${b.x}px`),r(1,m=Be.join(";"))}function E(){let B=Array.from(f.parentElement.children),se=B.indexOf(f),oe=f.parentElement.cloneNode(!0),Be=Array.from(oe.children);for(let ze=0;ze{let{x:Pt,y:Ge,width:Qt,height:Sr,top:Er,right:Yr,bottom:Qr,left:jt}=Mr(ze);return{x:Pt,y:Ge,width:Qt,height:Sr,top:Er,right:Yr,bottom:Qr,left:jt}}),newSiblingRects:null};let Qe=f.parentElement.style;Qe.display="none",f.parentElement.parentNode.insertBefore(oe,f.parentElement),w=Array.from(_.parentElementClone.children)}let S;async function D(B){_e(pr,o=!0,o),S=B,document.addEventListener("mousemove",z),document.addEventListener("mouseup",Z),E()}function O(){let B=g?d:p;if(ae!==null&&ae!==_.selectedIndex&&B){let se=B.content.splice(_.selectedIndex,1)[0];if(B.content.splice(ae,0,se),g){let oe=c.split(".");oe[oe.length-2]=ae.toString(),_e(Ye,c=oe.join("."),c)}else{let oe=c.split(".");oe[oe.length-1]=ae.toString(),_e(Ye,c=oe.join("."),c)}_e(qe,a.ast=[...a.ast],a),u.pushEvent("update_page_ast",{id:a.id,ast:a.ast})}}function F(){h&&(r(0,h.style.transform=null,h),h.style.setProperty("--tw-translate-y",null),h.style.setProperty("--tw-translate-x",null))}async function Z(B){document.removeEventListener("mousemove",z),document.removeEventListener("mouseup",Z),O(),_&&(r(6,f.parentElement.style.display=null,f),_.parentElementClone.remove(),_=null),S=null,await an(),_e(pr,o=!1,o),F(),r(2,R=null),w=null}function Y(){return _.parentElementClone.children.item(_.selectedIndex)}function U(B){let se=Vc(B,_.originalSiblingRects,_.selectedIndex);return se===-1?{currentIndex:_.selectedIndex,destinationIndex:_.selectedIndex}:{currentIndex:_.selectedIndex,destinationIndex:se}}function ne(B,se){let oe=_.parentElementClone,Be=Array.from(oe.children),Qe=Be.map(Ge=>Ge.getBoundingClientRect()),ze=[...w],It=ze.splice(B,1)[0];ze.splice(se,0,It),_.parentElementClone.replaceChildren(...ze);let Pt=Be.map(Ge=>Ge.getBoundingClientRect());Be.forEach((Ge,Qt)=>{if(Qt!==ae){let Sr=Qe[Qt],Er=Pt[Qt],Yr=Sr.left-Er.left,Qr=Sr.top-Er.top;Ge.style.transform=`translate(${Yr}px, ${Qr}px)`}else Ge.style.transform="none";Ge.style.transition="transform 0s"}),_.newSiblingRects=Array.from(_.parentElementClone.children).map(Ge=>Ge.getBoundingClientRect()),requestAnimationFrame(()=>{Be.forEach(Ge=>{Ge.style.transition="transform 0.2s",Ge.style.transform=""})})}function pe(B){let se=_.newSiblingRects[B];r(2,R=`top: ${se.top-v.top}px; left: ${se.left-v.left}px; height: ${se.height}px; width: ${se.width}px;`)}function ye(B,se,oe){let Be=_.parentElementClone.children.item(se),Qe=0,ze=0;if(B===se)Qe=oe.x,ze=oe.y;else{let It=_.originalSiblingRects[B],Pt=_.newSiblingRects[se];Qe=-(Pt.x-It.x-oe.x),ze=-(Pt.y-It.y-oe.y)}Be.style.transition="none",Be.style.transform=`translate(${Qe}px,${ze}px)`}function Ue(B){h.style.setProperty("--tw-translate-x",`${B.x}px`),h.style.setProperty("--tw-translate-y",`${B.y}px`)}let R=null,ae=null;function et(B){v||(v=document.getElementById("ui-builder-app-container").closest(".relative").getBoundingClientRect());let{currentIndex:se,destinationIndex:oe}=U(B);ae!==oe&&(ne(se,oe),pe(oe),ae=oe),ye(se,oe,B)}function z(B){let se=Y(),oe=js(se),Be={x:oe==="vertical"?0:B.x-S.x,y:oe==="horizontal"?0:B.y-S.y};et(Be),Ue(Be)}function te(B){ut[B?"unshift":"push"](()=>{h=B,r(0,h)})}return t.$$set=B=>{"element"in B&&r(6,f=B.element),"isParent"in B&&r(7,g=B.isParent)},t.$$.update=()=>{t.$$.dirty[0]&64&&r(4,n=f?.parentElement?.children?.length>1),t.$$.dirty[0]&64&&r(3,i=js(f)),t.$$.dirty[0]&192&&f&&C(f,g)},[h,m,R,i,n,D,f,g,te]}var Zo=class extends he{constructor(e){super(),we(this,e,o2,r2,fe,{element:6,isParent:7},null,[-1,-1])}get element(){return this.$$.ctx[6]}set element(e){this.$$set({element:e}),de()}get isParent(){return this.$$.ctx[7]}set isParent(e){this.$$set({isParent:e}),de()}};xe(Zo,{element:{},isParent:{type:"Boolean"}},[],[],!0);var es=Zo;function jm(t){let e,r,n,i,o,s,l,a=t[1]&&qm(t);i=new es({props:{element:t[2]}});let u=t[2]?.parentElement&&Um(t);return{c(){e=I("div"),a&&a.c(),n=J(),Ae(i.$$.fragment),o=J(),u&&u.c(),s=G(),this.h()},l(c){e=$(c,"DIV",{class:!0,style:!0});var p=M(e);a&&a.l(p),p.forEach(x),n=X(c),Te(i.$$.fragment,c),o=X(c),u&&u.l(c),s=G(),this.h()},h(){k(e,"class","selected-element-menu absolute"),k(e,"style",r=`top: ${t[3].y}px; left: ${t[3].x}px;`)},m(c,p){T(c,e,p),a&&a.m(e,null),t[7](e),T(c,n,p),Ee(i,c,p),T(c,o,p),u&&u.m(c,p),T(c,s,p),l=!0},p(c,p){c[1]?a?a.p(c,p):(a=qm(c),a.c(),a.m(e,null)):a&&(a.d(1),a=null),(!l||p&8&&r!==(r=`top: ${c[3].y}px; left: ${c[3].x}px;`))&&k(e,"style",r);let d={};p&4&&(d.element=c[2]),i.$set(d),c[2]?.parentElement?u?(u.p(c,p),p&4&&P(u,1)):(u=Um(c),u.c(),P(u,1),u.m(s.parentNode,s)):u&&(le(),L(u,1,1,()=>{u=null}),ue())},i(c){l||(P(i.$$.fragment,c),P(u),l=!0)},o(c){L(i.$$.fragment,c),L(u),l=!1},d(c){c&&(x(e),x(n),x(o),x(s)),a&&a.d(),t[7](null),Oe(i,c),u&&u.d(c)}}}function qm(t){let e,r,n,i,o;return{c(){e=I("button"),r=I("span"),this.h()},l(s){e=$(s,"BUTTON",{class:!0,style:!0,"aria-label":!0});var l=M(e);r=$(l,"SPAN",{class:!0}),M(r).forEach(x),l.forEach(x),this.h()},h(){k(r,"class","hero-trash"),k(e,"class","absolute top-0 -m-3 w-6 h-6 rounded-full flex justify-center items-center bg-red-500 text-white hover:bg-red-700 focus:outline-none focus-visible:ring-4 focus-visible:ring-blue-200 active:bg-red-800"),k(e,"style",n=`left: ${t[3].width}px;`),k(e,"aria-label","Delete component")},m(s,l){T(s,e,l),A(e,r),i||(o=K(e,"click",t[5]),i=!0)},p(s,l){l&8&&n!==(n=`left: ${s[3].width}px;`)&&k(e,"style",n)},d(s){s&&x(e),i=!1,o()}}}function Um(t){let e,r;return e=new es({props:{element:t[2].parentElement,isParent:!0}}),{c(){Ae(e.$$.fragment)},l(n){Te(e.$$.fragment,n)},m(n,i){Ee(e,n,i),r=!0},p(n,i){let o={};i&4&&(o.element=n[2].parentElement),e.$set(o)},i(n){r||(P(e.$$.fragment,n),r=!0)},o(n){L(e.$$.fragment,n),r=!1},d(n){Oe(e,n)}}}function s2(t){let e,r,n=t[4]&&jm(t);return{c(){n&&n.c(),e=G()},l(i){n&&n.l(i),e=G()},m(i,o){n&&n.m(i,o),T(i,e,o),r=!0},p(i,[o]){i[4]?n?(n.p(i,o),o&16&&P(n,1)):(n=jm(i),n.c(),P(n,1),n.m(e.parentNode,e)):n&&(le(),L(n,1,1,()=>{n=null}),ue())},i(i){r||(P(n),r=!0)},o(i){L(n),r=!1},d(i){i&&x(e),n&&n.d(i)}}}function a2(t,e,r){let n,i,o,s,l;ee(t,Ye,d=>r(8,i=d)),ee(t,pn,d=>r(2,o=d)),ee(t,pr,d=>r(6,s=d)),ee(t,$r,d=>r(4,l=d));let a,u;async function c(){i&&confirm("Are you sure you want to delete this component?")&&(eo(i),hn())}function p(d){ut[d?"unshift":"push"](()=>{a=d,r(0,a)})}return t.$$.update=()=>{t.$$.dirty&68&&r(1,n=!!o&&!s),t.$$.dirty&7&&r(3,u=(()=>{if(!(n&&document&&a&&o))return{x:0,y:0,width:0,height:0};let d=Mr(a.closest(".relative")),f=Mr(o);return{x:f.x-d.x,y:f.y-d.y,width:f.width,height:f.height}})())},[a,n,o,u,l,c,s,p]}var ts=class extends he{constructor(e){super(),we(this,e,a2,s2,fe,{})}};xe(ts,{},[],[],!0);var uu=ts;var fu={};tt(fu,{default:()=>c2});function l2(t){let e,r,n,i,o,s,l,a,u,c,p;return e=new Ss({}),i=new $s({props:{components:t[0]}}),s=new zs({}),a=new su({}),a.$on("droppedIntoTarget",t[5]),c=new uu({}),{c(){Ae(e.$$.fragment),r=J(),n=I("div"),Ae(i.$$.fragment),o=J(),Ae(s.$$.fragment),l=J(),Ae(a.$$.fragment),u=J(),Ae(c.$$.fragment),this.h()},l(d){Te(e.$$.fragment,d),r=X(d),n=$(d,"DIV",{class:!0,id:!0,"data-test-id":!0});var f=M(n);Te(i.$$.fragment,f),o=X(f),Te(s.$$.fragment,f),l=X(f),Te(a.$$.fragment,f),u=X(f),Te(c.$$.fragment,f),f.forEach(x),this.h()},h(){k(n,"class","flex min-h-screen bg-gray-100"),k(n,"id","ui-builder-app-container"),k(n,"data-test-id","app-container")},m(d,f){Ee(e,d,f),T(d,r,f),T(d,n,f),Ee(i,n,null),A(n,o),Ee(s,n,null),A(n,l),Ee(a,n,null),A(n,u),Ee(c,n,null),p=!0},p(d,[f]){let g={};f&1&&(g.components=d[0]),i.$set(g)},i(d){p||(P(e.$$.fragment,d),P(i.$$.fragment,d),P(s.$$.fragment,d),P(a.$$.fragment,d),P(c.$$.fragment,d),p=!0)},o(d){L(e.$$.fragment,d),L(i.$$.fragment,d),L(s.$$.fragment,d),L(a.$$.fragment,d),L(c.$$.fragment,d),p=!1},d(d){d&&(x(r),x(n)),Oe(e,d),Oe(i),Oe(s),Oe(a),Oe(c)}}}function u2(t,e,r){let n,i,o,s;ee(t,mt,f=>r(6,n=f)),ee(t,vn,f=>r(7,i=f)),ee(t,bn,f=>r(8,o=f)),ee(t,qe,f=>r(9,s=f));let{components:l}=e,{page:a}=e,{tailwindConfig:u}=e,{tailwindInput:c}=e,{live:p}=e;sn(()=>{jc()});let d=f=>(f.detail,void 0);return t.$$set=f=>{"components"in f&&r(0,l=f.components),"page"in f&&r(1,a=f.page),"tailwindConfig"in f&&r(2,u=f.tailwindConfig),"tailwindInput"in f&&r(3,c=f.tailwindInput),"live"in f&&r(4,p=f.live)},t.$$.update=()=>{t.$$.dirty&2&&_e(qe,s=a,s),t.$$.dirty&4&&_e(bn,o=u,o),t.$$.dirty&8&&_e(vn,i=c,i),t.$$.dirty&16&&_e(mt,n=p,n)},[l,a,u,c,p,d]}var rs=class extends he{constructor(e){super(),we(this,e,u2,l2,fe,{components:0,page:1,tailwindConfig:2,tailwindInput:3,live:4})}get components(){return this.$$.ctx[0]}set components(e){this.$$set({components:e}),de()}get page(){return this.$$.ctx[1]}set page(e){this.$$set({page:e}),de()}get tailwindConfig(){return this.$$.ctx[2]}set tailwindConfig(e){this.$$set({tailwindConfig:e}),de()}get tailwindInput(){return this.$$.ctx[3]}set tailwindInput(e){this.$$set({tailwindInput:e}),de()}get live(){return this.$$.ctx[4]}set live(e){this.$$set({live:e}),de()}};xe(rs,{components:{},page:{},tailwindConfig:{},tailwindInput:{},live:{}},[],[],!0);var c2=rs;var f2=[Es,Cs,Is,Ds,Rs,Bs,Ws,ru,iu,au,cu,lu,ou,fu],d2=f2,p2=["../svelte/components/Backdrop.svelte","../svelte/components/BrowserFrame.svelte","../svelte/components/CodeEditor.svelte","../svelte/components/ComponentsSidebar.svelte","../svelte/components/LayoutAstNode.svelte","../svelte/components/PageAstNode.svelte","../svelte/components/PagePreview.svelte","../svelte/components/PageWrapper.svelte","../svelte/components/Pill.svelte","../svelte/components/PropertiesSidebar.svelte","../svelte/components/SelectedElementFloatingMenu.svelte","../svelte/components/SelectedElementFloatingMenu/DragMenuOption.svelte","../svelte/components/SidebarSection.svelte","../svelte/components/UiBuilder.svelte"];var Bm={};Bm.CodeEditorHook=Tu;ns.default.config({barColors:{0:"#29d"},shadowColor:"rgba(0, 0, 0, .3)"});window.addEventListener("phx:page-loading-start",t=>ns.default.show(300));window.addEventListener("phx:page-loading-stop",t=>ns.default.hide());window.addEventListener("beacon_admin:clipcopy",t=>{let e=`${t.target.id}-copy-to-clipboard-result`,r=document.getElementById(e);"clipboard"in navigator?(t.target.tagName==="INPUT"?txt=t.target.value:txt=t.target.textContent,navigator.clipboard.writeText(txt).then(()=>{r.innerText="Copied to clipboard",r.classList.remove("invisible","text-red-500","opacity-0"),r.classList.add("text-green-500","opacity-100","-translate-y-2"),setTimeout(function(){r.classList.remove("text-green-500","opacity-100","-translate-y-2"),r.classList.add("invisible","text-red-500","opacity-0")},2e3)}).catch(()=>{r.innerText="Could not copy",r.classList.remove("invisible","text-green-500","opacity-0"),r.classList.add("text-red-500","opacity-100","-translate-y-2")})):alert("Sorry, your browser does not support clipboard copy.")});var h2=document.querySelector("html").getAttribute("phx-socket")||"/live",m2=document.querySelector("meta[name='csrf-token']").getAttribute("content"),zm=new LiveView.LiveSocket(h2,Phoenix.Socket,{hooks:{...Du(du),...Bm},params:{_csrf_token:m2}});zm.connect();window.liveSocket=zm;})(); +`)),!1))})}}function eE(t){return async function(e,r){let{tailwindDirectives:n,applyDirectives:i}=Fx(e);ZS()(e,r),yh()(e,r);let o=t({tailwindDirectives:n,applyDirectives:i,registerDependency(s){r.messages.push({plugin:"tailwindcss",parent:r.opts.from,...s})},createContext(s,l){return Xk(s,l,e)}})(e,r);if(o.tailwindConfig.separator==="-")throw new Error("The '-' character cannot be used as a custom separator in JIT mode due to parsing ambiguity. Please use another character like '_' instead.");o.tailwindConfig,await SS(o)(e,r),yh()(e,r),$S(o)(e,r),jS(o)(e,r),qS(o)(e,r),WS(o)(e,r),HS(o)(e,r),GS(o)(e,r)}}var tE=["preflight","container","accessibility","pointerEvents","visibility","position","inset","isolation","zIndex","order","gridColumn","gridColumnStart","gridColumnEnd","gridRow","gridRowStart","gridRowEnd","float","clear","margin","boxSizing","lineClamp","display","aspectRatio","size","height","maxHeight","minHeight","width","minWidth","maxWidth","flex","flexShrink","flexGrow","flexBasis","tableLayout","captionSide","borderCollapse","borderSpacing","transformOrigin","translate","rotate","skew","scale","transform","animation","cursor","touchAction","userSelect","resize","scrollSnapType","scrollSnapAlign","scrollSnapStop","scrollMargin","scrollPadding","listStylePosition","listStyleType","listStyleImage","appearance","columns","breakBefore","breakInside","breakAfter","gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateColumns","gridTemplateRows","flexDirection","flexWrap","placeContent","placeItems","alignContent","alignItems","justifyContent","justifyItems","gap","space","divideWidth","divideStyle","divideColor","divideOpacity","placeSelf","alignSelf","justifySelf","overflow","overscrollBehavior","scrollBehavior","textOverflow","hyphens","whitespace","textWrap","wordBreak","borderRadius","borderWidth","borderStyle","borderColor","borderOpacity","backgroundColor","backgroundOpacity","backgroundImage","gradientColorStops","boxDecorationBreak","backgroundSize","backgroundAttachment","backgroundClip","backgroundPosition","backgroundRepeat","backgroundOrigin","fill","stroke","strokeWidth","objectFit","objectPosition","padding","textAlign","textIndent","verticalAlign","fontFamily","fontSize","fontWeight","textTransform","fontStyle","fontVariantNumeric","lineHeight","letterSpacing","textColor","textOpacity","textDecoration","textDecorationColor","textDecorationStyle","textDecorationThickness","textUnderlineOffset","fontSmoothing","placeholderColor","placeholderOpacity","caretColor","accentColor","opacity","backgroundBlendMode","mixBlendMode","boxShadow","boxShadowColor","outlineStyle","outlineWidth","outlineOffset","outlineColor","ringWidth","ringColor","ringOpacity","ringOffsetWidth","ringOffsetColor","blur","brightness","contrast","dropShadow","grayscale","hueRotate","invert","saturate","sepia","filter","backdropBlur","backdropBrightness","backdropContrast","backdropGrayscale","backdropHueRotate","backdropInvert","backdropOpacity","backdropSaturate","backdropSepia","backdropFilter","transitionProperty","transitionDelay","transitionDuration","transitionTimingFunction","willChange","content","forcedColorAdjust"];function rE(t,e){return t===void 0?e:Array.isArray(t)?t:[...new Set(e.filter(n=>t!==!1&&t[n]!==!1).concat(Object.keys(t).filter(n=>t[n]!==!1)))]}function ui({version:t,from:e,to:r}){Ye.warn(`${e}-color-renamed`,[`As of Tailwind CSS ${t}, \`${e}\` has been renamed to \`${r}\`.`,"Update your configuration file to silence this warning."])}var nE={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"},get lightBlue(){return ui({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return ui({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return ui({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return ui({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return ui({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}};function um(t,...e){for(let r of e){for(let n in r)t?.hasOwnProperty?.(n)||(t[n]=r[n]);for(let n of Object.getOwnPropertySymbols(r))t?.hasOwnProperty?.(n)||(t[n]=r[n])}return t}function iE(t){(()=>{if(t.purge||!t.content||!Array.isArray(t.content)&&!(typeof t.content=="object"&&t.content!==null))return!1;if(Array.isArray(t.content))return t.content.every(r=>typeof r=="string"?!0:!(typeof r?.raw!="string"||r?.extension&&typeof r?.extension!="string"));if(typeof t.content=="object"&&t.content!==null){if(Object.keys(t.content).some(r=>!["files","relative","extract","transform"].includes(r)))return!1;if(Array.isArray(t.content.files)){if(!t.content.files.every(r=>typeof r=="string"?!0:!(typeof r?.raw!="string"||r?.extension&&typeof r?.extension!="string")))return!1;if(typeof t.content.extract=="object"){for(let r of Object.values(t.content.extract))if(typeof r!="function")return!1}else if(!(t.content.extract===void 0||typeof t.content.extract=="function"))return!1;if(typeof t.content.transform=="object"){for(let r of Object.values(t.content.transform))if(typeof r!="function")return!1}else if(!(t.content.transform===void 0||typeof t.content.transform=="function"))return!1;if(typeof t.content.relative!="boolean"&&typeof t.content.relative<"u")return!1}return!0}return!1})()||Ye.warn("purge-deprecation",["The `purge`/`content` options have changed in Tailwind CSS v3.0.","Update your configuration file to eliminate this warning.","https://tailwindcss.com/docs/upgrade-guide#configure-content-sources"]),t.safelist=(()=>{let{content:r,purge:n,safelist:i}=t;return Array.isArray(i)?i:Array.isArray(r?.safelist)?r.safelist:Array.isArray(n?.safelist)?n.safelist:Array.isArray(n?.options?.safelist)?n.options.safelist:[]})(),t.blocklist=(()=>{let{blocklist:r}=t;if(Array.isArray(r)){if(r.every(n=>typeof n=="string"))return r;Ye.warn("blocklist-invalid",["The `blocklist` option must be an array of strings.","https://tailwindcss.com/docs/content-configuration#discarding-classes"])}return[]})(),typeof t.prefix=="function"?(Ye.warn("prefix-function",["As of Tailwind CSS v3.0, `prefix` cannot be a function.","Update `prefix` in your configuration to be a string to eliminate this warning.","https://tailwindcss.com/docs/upgrade-guide#prefix-cannot-be-a-function"]),t.prefix=""):t.prefix=t.prefix??"",t.content={relative:(()=>{let{content:r}=t;return r?.relative?r.relative:kt(t,"relativeContentPathsByDefault")})(),files:(()=>{let{content:r,purge:n}=t;return Array.isArray(n)?n:Array.isArray(n?.content)?n.content:Array.isArray(r)?r:Array.isArray(r?.content)?r.content:Array.isArray(r?.files)?r.files:[]})(),extract:(()=>{let r=t.purge?.extract?t.purge.extract:t.content?.extract?t.content.extract:t.purge?.extract?.DEFAULT?t.purge.extract.DEFAULT:t.content?.extract?.DEFAULT?t.content.extract.DEFAULT:t.purge?.options?.extractors?t.purge.options.extractors:t.content?.options?.extractors?t.content.options.extractors:{},n={},i=(()=>{if(t.purge?.options?.defaultExtractor)return t.purge.options.defaultExtractor;if(t.content?.options?.defaultExtractor)return t.content.options.defaultExtractor})();if(i!==void 0&&(n.DEFAULT=i),typeof r=="function")n.DEFAULT=r;else if(Array.isArray(r))for(let{extensions:o,extractor:s}of r??[])for(let l of o)n[l]=s;else typeof r=="object"&&r!==null&&Object.assign(n,r);return n})(),transform:(()=>{let r=t.purge?.transform?t.purge.transform:t.content?.transform?t.content.transform:t.purge?.transform?.DEFAULT?t.purge.transform.DEFAULT:t.content?.transform?.DEFAULT?t.content.transform.DEFAULT:{},n={};return typeof r=="function"&&(n.DEFAULT=r),typeof r=="object"&&r!==null&&Object.assign(n,r),n})()};for(let r of t.content.files)if(typeof r=="string"&&/{([^,]*?)}/g.test(r)){Ye.warn("invalid-glob-braces",[`The glob pattern ${r} in your Tailwind CSS configuration is invalid.`,`Update it to ${r.replace(/{([^,]*?)}/g,"$1")} to silence this warning.`]);break}return t}function Ul(t){return Array.isArray(t)?t.map(e=>Ul(e)):typeof t=="object"&&t!==null?Object.fromEntries(Object.entries(t).map(([e,r])=>[e,Ul(r)])):t}function Yr(t){return typeof t=="function"}function fi(t,...e){let r=e.pop();for(let n of e)for(let i in n){let o=r(t[i],n[i]);o===void 0?$t(t[i])&&$t(n[i])?t[i]=fi({},t[i],n[i],r):t[i]=n[i]:t[i]=o}return t}var Al={colors:nE,negative(t){return Object.keys(t).filter(e=>t[e]!=="0").reduce((e,r)=>{let n=qo(t[r]);return n!==void 0&&(e[`-${r}`]=n),e},{})},breakpoints(t){return Object.keys(t).filter(e=>typeof t[e]=="string").reduce((e,r)=>({...e,[`screen-${r}`]:t[r]}),{})}};function oE(t,...e){return Yr(t)?t(...e):t}function sE(t){return t.reduce((e,{extend:r})=>fi(e,r,(n,i)=>n===void 0?[i]:Array.isArray(n)?[i,...n]:[i,n]),{})}function aE(t){return{...t.reduce((e,r)=>um(e,r),{}),extend:sE(t)}}function _h(t,e){if(Array.isArray(t)&&$t(t[0]))return t.concat(e);if(Array.isArray(e)&&$t(e[0])&&$t(t))return[t,...e];if(Array.isArray(e))return e}function lE({extend:t,...e}){return fi(e,t,(r,n)=>!Yr(r)&&!n.some(Yr)?fi({},r,...n,_h):(i,o)=>fi({},...[r,...n].map(s=>oE(s,i,o)),_h))}function*uE(t){let e=di(t);if(e.length===0||(yield e,Array.isArray(t)))return;let r=/^(.*?)\s*\/\s*([^/]+)$/,n=t.match(r);if(n!==null){let[,i,o]=n,s=di(i);s.alpha=o,yield s}}function cE(t){let e=(r,n)=>{for(let i of uE(r)){let o=0,s=t;for(;s!=null&&o(r[n]=Yr(t[n])?t[n](e,Al):t[n],r),{})}function cm(t){let e=[];return t.forEach(r=>{e=[...e,r];let n=r?.plugins??[];n.length!==0&&n.forEach(i=>{i.__isOptionsFunction&&(i=i()),e=[...e,...cm([i?.config??{}])]})}),e}function fE(t){return[...t].reduceRight((r,n)=>Yr(n)?n({corePlugins:r}):rE(n,r),tE)}function dE(t){return[...t].reduceRight((r,n)=>[...r,...n],[])}function pE(t){let e=[...cm(t),{prefix:"",important:!1,separator:":"}];return iE(um({theme:cE(lE(aE(e.map(r=>r?.theme??{})))),corePlugins:fE(e.map(r=>r.corePlugins)),plugins:dE(t.map(r=>r?.plugins??[]))},...e))}var hE=Bl(Mx());function fm(t){let e=(t?.presets??[hE.default]).slice().reverse().flatMap(i=>fm(i instanceof Function?i():i)),r={respectDefaultRingColorOpacity:{theme:{ringColor:({theme:i})=>({DEFAULT:"#3b82f67f",...i("colors")})}},disableColorOpacityUtilitiesByDefault:{corePlugins:{backgroundOpacity:!1,borderOpacity:!1,divideOpacity:!1,placeholderOpacity:!1,ringOpacity:!1,textOpacity:!1}}},n=Object.keys(r).filter(i=>kt(t,i)).map(i=>r[i]);return[t,...n,...e]}function mE(...t){let[,...e]=fm(t[0]);return pE([...t,...e])}var dm=({tailwindConfig:t}={})=>{let e=t;return{setTailwindConfig(r){e=r},async generateStylesFromContent(r,n){let i=gE({tailwindConfig:e,content:n});return(await be([i]).process(r,{from:void 0})).css}}},gE=({tailwindConfig:t,content:e})=>{let r=mE(t??{});return eE(i=>()=>i.createContext(r,e.map(o=>typeof o=="string"?{content:o}:o)))};function bE(t){Xt(t,"svelte-9t6pvg",'[data-selected="true"], [data-selected-parent="true"]{outline-color:#06b6d4;outline-width:1px;outline-style:solid}[data-selected="true"].contents > *, [data-selected-parent="true"].contents > *{outline-color:#06b6d4;outline-width:1px;outline-style:solid}[data-highlighted="true"]{outline-color:#06b6d4;outline-width:2px;outline-style:dashed}:before, :after{pointer-events:none}')}function pm(t,e,r){let n=t.slice();return n[9]=e[r],n}function hm(t,e,r){let n=t.slice();return n[12]=e[r],n[14]=r,n}function mm(t){let e,r;return e=new Us({props:{node:t[12],nodeId:String(t[14])}}),{c(){Te(e.$$.fragment)},l(n){Ie(e.$$.fragment,n)},m(n,i){Oe(e,n,i),r=!0},p(n,i){let o={};i&4&&(o.node=n[12]),e.$set(o)},i(n){r||(P(e.$$.fragment,n),r=!0)},o(n){L(e.$$.fragment,n),r=!1},d(n){Ce(e,n)}}}function vE(t){let e,r,n,i=ge(t[2].ast),o=[];for(let l=0;lL(o[l],1,1,()=>{o[l]=null});return{c(){e=I("div");for(let l=0;lL(a[c],1,1,()=>{a[c]=null});return{c(){e=I("span"),r=J(),n=I("div");for(let c=0;cr(5,n=d)),ee(t,bn,d=>r(6,i=d)),ee(t,We,d=>r(2,o=d));let s,l,u=import(i);on(async()=>{let{default:d}=await u,f=dm({tailwindConfig:d}),g=async()=>{if(!s)return;let w=s.outerHTML,h=await f.generateStylesFromContent(n,[w]),m=document.createElement("style");m.textContent=h,l.appendChild(m)};window.reloadStylesheet=g,g()}),We.subscribe(async()=>{await an(),window.reloadStylesheet&&window.reloadStylesheet()});function c(d){dt[d?"unshift":"push"](()=>{l=d,r(1,l)})}function p(d){dt[d?"unshift":"push"](()=>{s=d,r(0,s)})}return[s,l,o,c,p]}var Qo=class extends he{constructor(e){super(),xe(this,e,wE,yE,fe,{},bE)}};customElements.define("page-wrapper",ke(Qo,{},[],[],!0));var xE=Qo;var iu={};it(iu,{default:()=>nu});function kE(t){let e,r,n,i,o,s,l,a,u,c,p,d=t[2].default,f=ot(d,t,t[1],null),g=t[2].default,w=ot(g,t,t[1],null);return{c(){e=I("div"),f&&f.c(),r=J(),n=I("button"),i=I("span"),o=re("Delete class: "),w&&w.c(),s=J(),l=ct("svg"),a=ct("path"),this.h()},l(h){e=$(h,"DIV",{class:!0});var m=M(e);f&&f.l(m),r=X(m),n=$(m,"BUTTON",{class:!0,type:!0});var b=M(n);i=$(b,"SPAN",{class:!0});var v=M(i);o=ie(v,"Delete class: "),w&&w.l(v),v.forEach(x),s=X(b),l=gt(b,"svg",{xmlns:!0,viewBox:!0,fill:!0,class:!0});var _=M(l);a=gt(_,"path",{"fill-rule":!0,d:!0,"clip-rule":!0}),M(a).forEach(x),_.forEach(x),b.forEach(x),m.forEach(x),this.h()},h(){k(i,"class","sr-only"),k(a,"fill-rule","evenodd"),k(a,"d","M5.47 5.47a.75.75 0 0 1 1.06 0L12 10.94l5.47-5.47a.75.75 0 1 1 1.06 1.06L13.06 12l5.47 5.47a.75.75 0 1 1-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 0 1-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 0 1 0-1.06Z"),k(a,"clip-rule","evenodd"),k(l,"xmlns","http://www.w3.org/2000/svg"),k(l,"viewBox","0 0 24 24"),k(l,"fill","currentColor"),k(l,"class","w-3 h-3"),k(n,"class","p-2 rounded-full inline-block bg-slate-700 text-white hover:text-blue-400 active:text-blue-500"),k(n,"type","button"),k(e,"class","inline-flex items-center rounded-full bg-slate-700 text-white text-xs px-3 pr-0 m-1 leading-4")},m(h,m){T(h,e,m),f&&f.m(e,null),A(e,r),A(e,n),A(n,i),A(i,o),w&&w.m(i,null),A(n,s),A(n,l),A(l,a),u=!0,c||(p=K(n,"click",Mt(t[3])),c=!0)},p(h,[m]){f&&f.p&&(!u||m&2)&&at(f,d,h,h[1],u?st(d,h[1],m,null):lt(h[1]),null),w&&w.p&&(!u||m&2)&&at(w,g,h,h[1],u?st(g,h[1],m,null):lt(h[1]),null)},i(h){u||(P(f,h),P(w,h),u=!0)},o(h){L(f,h),L(w,h),u=!1},d(h){h&&x(e),f&&f.d(h),w&&w.d(h),c=!1,p()}}}function SE(t,e,r){let{$$slots:n={},$$scope:i}=e,o=Wt(),s=()=>o("delete");return t.$$set=l=>{"$$scope"in l&&r(1,i=l.$$scope)},[o,i,n,s]}var Ko=class extends he{constructor(e){super(),xe(this,e,SE,kE,fe,{})}};ke(Ko,{},["default"],[],!0);var nu=Ko;var au={};it(au,{default:()=>su});var ou={};it(ou,{default:()=>dr});function bm(t,e,r){let n=t.slice();return n[32]=e[r],n[34]=r,n}var EE=t=>({}),vm=t=>({}),OE=t=>({}),ym=t=>({}),CE=t=>({}),_m=t=>({}),AE=t=>({}),wm=t=>({}),TE=t=>({}),xm=t=>({});function km(t){let e,r='',n,i;return{c(){e=I("button"),e.innerHTML=r,this.h()},l(o){e=$(o,"BUTTON",{type:!0,class:!0,title:!0,"data-svelte-h":!0}),Ze(e)!=="svelte-16fai8w"&&(e.innerHTML=r),this.h()},h(){k(e,"type","button"),k(e,"class","ml-4"),k(e,"title","Delete attribute")},m(o,s){T(o,e,s),n||(i=K(e,"click",Ot(t[9])),n=!0)},p:Q,d(o){o&&x(e),n=!1,i()}}}function IE(t){let e,r=t[19].input,n=ot(r,t,t[18],ym),i=n||jE(t);return{c(){i&&i.c()},l(o){i&&i.l(o)},m(o,s){i&&i.m(o,s),e=!0},p(o,s){n?n.p&&(!e||s[0]&262144)&&at(n,r,o,o[18],e?st(r,o[18],s,OE):lt(o[18]),ym):i&&i.p&&(!e||s[0]&295022)&&i.p(o,e?s:[-1,-1])},i(o){e||(P(i,o),e=!0)},o(o){L(i,o),e=!1},d(o){i&&i.d(o)}}}function PE(t){let e,r,n,i=t[19].input,o=ot(i,t,t[18],wm),s=o||qE(t),l=t[19].value,a=ot(l,t,t[18],_m);return{c(){s&&s.c(),e=J(),r=I("div"),a&&a.c(),this.h()},l(u){s&&s.l(u),e=X(u),r=$(u,"DIV",{class:!0});var c=M(r);a&&a.l(c),c.forEach(x),this.h()},h(){k(r,"class","pt-3")},m(u,c){s&&s.m(u,c),T(u,e,c),T(u,r,c),a&&a.m(r,null),n=!0},p(u,c){o?o.p&&(!n||c[0]&262144)&&at(o,i,u,u[18],n?st(i,u[18],c,AE):lt(u[18]),wm):s&&s.p&&(!n||c[0]&68)&&s.p(u,n?c:[-1,-1]),a&&a.p&&(!n||c[0]&262144)&&at(a,l,u,u[18],n?st(l,u[18],c,CE):lt(u[18]),_m)},i(u){n||(P(s,u),P(a,u),n=!0)},o(u){L(s,u),L(a,u),n=!1},d(u){u&&(x(e),x(r)),s&&s.d(u),a&&a.d(u)}}}function $E(t){let e,r=ge(t[1]),n=[];for(let i=0;i{l=null}),le())},i(a){n||(P(l),n=!0)},o(a){L(l),n=!1},d(a){a&&(x(e),x(r)),s.d(a),l&&l.d(a)}}}function ME(t){let e,r,n,i;function o(...s){return t[27](t[34],...s)}return{c(){e=I("input"),this.h()},l(s){e=$(s,"INPUT",{type:!0,class:!0,placeholder:!0}),this.h()},h(){k(e,"type","text"),k(e,"class","w-full py-1 px-2 mt-5 bg-slate-100 border-slate-100 rounded-md leading-6 text-sm"),k(e,"placeholder",t[2]),e.value=r=t[32]},m(s,l){T(s,e,l),n||(i=[K(e,"keydown",t[10]),K(e,"change",o)],n=!0)},p(s,l){t=s,l[0]&4&&k(e,"placeholder",t[2]),l[0]&2&&r!==(r=t[32])&&e.value!==r&&(e.value=r)},d(s){s&&x(e),n=!1,ce(i)}}}function FE(t){let e,r,n,i;function o(...s){return t[26](t[34],...s)}return{c(){e=I("textarea"),this.h()},l(s){e=$(s,"TEXTAREA",{class:!0,placeholder:!0}),M(e).forEach(x),this.h()},h(){k(e,"class","w-full py-1 px-2 bg-slate-100 border-slate-100 rounded-md leading-6 text-sm"),k(e,"placeholder",t[2]),e.value=r=t[32]},m(s,l){T(s,e,l),n||(i=[K(e,"keydown",t[10]),K(e,"change",o)],n=!0)},p(s,l){t=s,l[0]&4&&k(e,"placeholder",t[2]),l[0]&2&&r!==(r=t[32])&&(e.value=r)},d(s){s&&x(e),n=!1,ce(i)}}}function LE(t){let e,r,n,i,o,s=t[32].tag+"",l,a,u,c,p,d,f=t[32].tag+"",g,w,h,m,b,v,_,y,C,E,S,D,O=t[32].tag+"",F,Z,Y,U,ne,pe,_e,Ve,R,ve,Qe,B,te=t[32].tag+"",Ke,W,oe,ue,se,Ne,Me,Be,mt,Xe;function hr(){return t[21](t[32])}function Er(){return t[22](t[32])}function Or(){return t[23](t[32])}function Qr(){return t[24](t[32])}return{c(){e=I("div"),r=I("div"),n=I("span"),i=I("code"),o=re("<"),l=re(s),a=re(">"),u=J(),c=I("button"),p=re("Edit "),d=I("span"),g=re(f),w=re(" element"),h=J(),m=ct("svg"),b=ct("path"),v=ct("path"),_=J(),y=I("div"),C=I("button"),E=I("span"),S=re("Move "),D=I("span"),F=re(O),Z=re(" element"),Y=re(" up"),U=J(),ne=ct("svg"),pe=ct("path"),Ve=J(),R=I("button"),ve=I("span"),Qe=re("Move "),B=I("span"),Ke=re(te),W=re(" element"),oe=re(" down"),ue=J(),se=ct("svg"),Ne=ct("path"),Be=J(),this.h()},l(St){e=$(St,"DIV",{class:!0});var nt=M(e);r=$(nt,"DIV",{class:!0});var hi=M(r);n=$(hi,"SPAN",{});var pu=M(n);i=$(pu,"CODE",{});var mi=M(i);o=ie(mi,"<"),l=ie(mi,s),a=ie(mi,">"),mi.forEach(x),pu.forEach(x),u=X(hi),c=$(hi,"BUTTON",{class:!0});var Kr=M(c);p=ie(Kr,"Edit "),d=$(Kr,"SPAN",{class:!0});var is=M(d);g=ie(is,f),w=ie(is," element"),is.forEach(x),h=X(Kr),m=gt(Kr,"svg",{xmlns:!0,viewBox:!0,fill:!0,class:!0});var os=M(m);b=gt(os,"path",{d:!0}),M(b).forEach(x),v=gt(os,"path",{d:!0}),M(v).forEach(x),os.forEach(x),Kr.forEach(x),hi.forEach(x),_=X(nt),y=$(nt,"DIV",{class:!0});var gi=M(y);C=$(gi,"BUTTON",{class:!0});var bi=M(C);E=$(bi,"SPAN",{});var vi=M(E);S=ie(vi,"Move "),D=$(vi,"SPAN",{class:!0});var ss=M(D);F=ie(ss,O),Z=ie(ss," element"),ss.forEach(x),Y=ie(vi," up"),vi.forEach(x),U=X(bi),ne=gt(bi,"svg",{xmlns:!0,viewBox:!0,fill:!0,class:!0});var hu=M(ne);pe=gt(hu,"path",{"fill-rule":!0,d:!0,"clip-rule":!0}),M(pe).forEach(x),hu.forEach(x),bi.forEach(x),Ve=X(gi),R=$(gi,"BUTTON",{class:!0});var yi=M(R);ve=$(yi,"SPAN",{});var _i=M(ve);Qe=ie(_i,"Move "),B=$(_i,"SPAN",{class:!0});var as=M(B);Ke=ie(as,te),W=ie(as," element"),as.forEach(x),oe=ie(_i," down"),_i.forEach(x),ue=X(yi),se=gt(yi,"svg",{xmlns:!0,viewBox:!0,fill:!0,class:!0});var mu=M(se);Ne=gt(mu,"path",{"fill-rule":!0,d:!0,"clip-rule":!0}),M(Ne).forEach(x),mu.forEach(x),yi.forEach(x),gi.forEach(x),Be=X(nt),nt.forEach(x),this.h()},h(){k(d,"class","sr-only"),k(b,"d","M21.731 2.269a2.625 2.625 0 0 0-3.712 0l-1.157 1.157 3.712 3.712 1.157-1.157a2.625 2.625 0 0 0 0-3.712ZM19.513 8.199l-3.712-3.712-8.4 8.4a5.25 5.25 0 0 0-1.32 2.214l-.8 2.685a.75.75 0 0 0 .933.933l2.685-.8a5.25 5.25 0 0 0 2.214-1.32l8.4-8.4Z"),k(v,"d","M5.25 5.25a3 3 0 0 0-3 3v10.5a3 3 0 0 0 3 3h10.5a3 3 0 0 0 3-3V13.5a.75.75 0 0 0-1.5 0v5.25a1.5 1.5 0 0 1-1.5 1.5H5.25a1.5 1.5 0 0 1-1.5-1.5V8.25a1.5 1.5 0 0 1 1.5-1.5h5.25a.75.75 0 0 0 0-1.5H5.25Z"),k(m,"xmlns","http://www.w3.org/2000/svg"),k(m,"viewBox","0 0 24 24"),k(m,"fill","currentColor"),k(m,"class","w-3 h-3"),k(c,"class","flex items-center justify-center gap-x-0.5 px-2 py-1 bg-cyan-300 font-bold text-xs uppercase tracking-wide rounded transition-colors hover:bg-cyan-900 active:bg-cyan-700 hover:text-white"),k(r,"class","flex items-center justify-between"),k(D,"class","sr-only"),k(pe,"fill-rule","evenodd"),k(pe,"d","M11.47 2.47a.75.75 0 0 1 1.06 0l7.5 7.5a.75.75 0 1 1-1.06 1.06l-6.22-6.22V21a.75.75 0 0 1-1.5 0V4.81l-6.22 6.22a.75.75 0 1 1-1.06-1.06l7.5-7.5Z"),k(pe,"clip-rule","evenodd"),k(ne,"xmlns","http://www.w3.org/2000/svg"),k(ne,"viewBox","0 0 24 24"),k(ne,"fill","currentColor"),k(ne,"class","w-3 h-3"),k(C,"class","flex items-center justify-center gap-x-0.5 px-1.5 py-1 bg-cyan-800 font-bold text-xs uppercase tracking-wide rounded hover:bg-cyan-950 active:bg-cyan-700 disabled:bg-gray-300 disabled:cursor-not-allowed text-white"),C.disabled=_e=t[34]===0,k(B,"class","sr-only"),k(Ne,"fill-rule","evenodd"),k(Ne,"d","M12 2.25a.75.75 0 0 1 .75.75v16.19l6.22-6.22a.75.75 0 1 1 1.06 1.06l-7.5 7.5a.75.75 0 0 1-1.06 0l-7.5-7.5a.75.75 0 1 1 1.06-1.06l6.22 6.22V3a.75.75 0 0 1 .75-.75Z"),k(Ne,"clip-rule","evenodd"),k(se,"xmlns","http://www.w3.org/2000/svg"),k(se,"viewBox","0 0 24 24"),k(se,"fill","currentColor"),k(se,"class","w-3 h-3"),k(R,"class","flex items-center justify-center gap-x-0.5 px-1.5 py-1 bg-cyan-800 font-bold text-xs uppercase tracking-wide rounded hover:bg-cyan-950 active:bg-cyan-700 disabled:bg-gray-300 disabled:cursor-not-allowed text-white"),R.disabled=Me=t[34]===t[1].length-1,k(y,"class","mt-2 grid grid-cols-2 gap-x-1"),k(e,"class","mt-5")},m(St,nt){T(St,e,nt),A(e,r),A(r,n),A(n,i),A(i,o),A(i,l),A(i,a),A(r,u),A(r,c),A(c,p),A(c,d),A(d,g),A(d,w),A(c,h),A(c,m),A(m,b),A(m,v),A(e,_),A(e,y),A(y,C),A(C,E),A(E,S),A(E,D),A(D,F),A(D,Z),A(E,Y),A(C,U),A(C,ne),A(ne,pe),A(y,Ve),A(y,R),A(R,ve),A(ve,Qe),A(ve,B),A(B,Ke),A(B,W),A(ve,oe),A(R,ue),A(R,se),A(se,Ne),A(e,Be),mt||(Xe=[K(c,"click",hr),K(C,"click",Er),K(R,"click",Or),K(e,"mouseenter",Qr),K(e,"mouseleave",t[25])],mt=!0)},p(St,nt){t=St,nt[0]&2&&s!==(s=t[32].tag+"")&&He(l,s),nt[0]&2&&f!==(f=t[32].tag+"")&&He(g,f),nt[0]&2&&O!==(O=t[32].tag+"")&&He(F,O),nt[0]&2&&te!==(te=t[32].tag+"")&&He(Ke,te),nt[0]&2&&Me!==(Me=t[34]===t[1].length-1)&&(R.disabled=Me)},d(St){St&&x(e),mt=!1,ce(Xe)}}}function Sm(t){let e,r;function n(s,l){return l[0]&2&&(e=null),e==null&&(e=!!ze(s[32])),e?LE:s[3]?FE:ME}let i=n(t,[-1,-1]),o=i(t);return{c(){o.c(),r=G()},l(s){o.l(s),r=G()},m(s,l){o.m(s,l),T(s,r,l)},p(s,l){i===(i=n(s,l))&&o?o.p(s,l):(o.d(1),o=i(s),o&&(o.c(),o.m(r.parentNode,r)))},d(s){s&&x(r),o.d(s)}}}function NE(t){let e,r,n;return{c(){e=I("input"),this.h()},l(i){e=$(i,"INPUT",{type:!0,class:!0,placeholder:!0}),this.h()},h(){k(e,"type","text"),k(e,"class","w-full py-1 px-2 bg-slate-100 border-slate-100 rounded-md leading-6 text-sm"),k(e,"placeholder",t[2]),e.value=t[6]},m(i,o){T(i,e,o),r||(n=[K(e,"keydown",t[10]),K(e,"change",t[11])],r=!0)},p(i,o){o[0]&4&&k(e,"placeholder",i[2]),o[0]&64&&e.value!==i[6]&&(e.value=i[6])},d(i){i&&x(e),r=!1,ce(n)}}}function RE(t){let e,r,n;return{c(){e=I("textarea"),this.h()},l(i){e=$(i,"TEXTAREA",{class:!0,placeholder:!0}),M(e).forEach(x),this.h()},h(){k(e,"class","w-full py-1 px-2 bg-slate-100 border-slate-100 rounded-md leading-6 text-sm"),k(e,"placeholder",t[2]),e.value=t[6],e.disabled=t[5]},m(i,o){T(i,e,o),r||(n=[K(e,"keydown",t[10]),K(e,"change",t[11])],r=!0)},p(i,o){o[0]&4&&k(e,"placeholder",i[2]),o[0]&64&&(e.value=i[6]),o[0]&32&&(e.disabled=i[5])},d(i){i&&x(e),r=!1,ce(n)}}}function Em(t){let e,r,n=t[19].value,i=ot(n,t,t[18],vm);return{c(){e=I("div"),i&&i.c(),this.h()},l(o){e=$(o,"DIV",{class:!0});var s=M(e);i&&i.l(s),s.forEach(x),this.h()},h(){k(e,"class","pt-3")},m(o,s){T(o,e,s),i&&i.m(e,null),r=!0},p(o,s){i&&i.p&&(!r||s[0]&262144)&&at(i,n,o,o[18],r?st(n,o[18],s,EE):lt(o[18]),vm)},i(o){r||(P(i,o),r=!0)},o(o){L(i,o),r=!1},d(o){o&&x(e),i&&i.d(o)}}}function jE(t){let e,r,n,i,o=[DE,$E],s=[];function l(a,u){return a[6]?0:a[1]?1:-1}return~(e=l(t,[-1,-1]))&&(r=s[e]=o[e](t)),{c(){r&&r.c(),n=G()},l(a){r&&r.l(a),n=G()},m(a,u){~e&&s[e].m(a,u),T(a,n,u),i=!0},p(a,u){let c=e;e=l(a,u),e===c?~e&&s[e].p(a,u):(r&&(ae(),L(s[c],1,1,()=>{s[c]=null}),le()),~e?(r=s[e],r?r.p(a,u):(r=s[e]=o[e](a),r.c()),P(r,1),r.m(n.parentNode,n)):r=null)},i(a){i||(P(r),i=!0)},o(a){L(r),i=!1},d(a){a&&x(n),~e&&s[e].d(a)}}}function qE(t){let e,r,n;return{c(){e=I("input"),this.h()},l(i){e=$(i,"INPUT",{type:!0,class:!0,placeholder:!0}),this.h()},h(){k(e,"type","text"),k(e,"class","w-full py-1 px-2 bg-gray-100 border-gray-100 rounded-md leading-6 text-sm"),k(e,"placeholder",t[2]),e.value=t[6]},m(i,o){T(i,e,o),r||(n=[K(e,"keydown",t[10]),K(e,"change",t[11])],r=!0)},p(i,o){o[0]&4&&k(e,"placeholder",i[2]),o[0]&64&&e.value!==i[6]&&(e.value=i[6])},d(i){i&&x(e),r=!1,ce(n)}}}function UE(t){let e,r,n,i,o,s,l,a,u,c,p,d,f,g,w,h,m,b=t[19].heading,v=ot(b,t,t[18],xm),_=!t[4]&&km(t),y=[PE,IE],C=[];function E(S,D){return S[15].value?0:S[0]?1:-1}return~(f=E(t,[-1,-1]))&&(g=C[f]=y[f](t)),{c(){e=I("section"),r=I("header"),n=I("button"),i=I("span"),o=I("span"),v&&v.c(),s=J(),_&&_.c(),l=J(),a=I("span"),u=ct("svg"),c=ct("path"),d=J(),g&&g.c(),this.h()},l(S){e=$(S,"SECTION",{class:!0});var D=M(e);r=$(D,"HEADER",{class:!0});var O=M(r);n=$(O,"BUTTON",{type:!0,class:!0,"aria-expanded":!0});var F=M(n);i=$(F,"SPAN",{});var Z=M(i);o=$(Z,"SPAN",{class:!0});var Y=M(o);v&&v.l(Y),Y.forEach(x),s=X(Z),_&&_.l(Z),Z.forEach(x),l=X(F),a=$(F,"SPAN",{class:!0});var U=M(a);u=gt(U,"svg",{xmlns:!0,viewBox:!0,fill:!0,class:!0});var ne=M(u);c=gt(ne,"path",{"fill-rule":!0,d:!0,"clip-rule":!0}),M(c).forEach(x),ne.forEach(x),U.forEach(x),F.forEach(x),O.forEach(x),d=X(D),g&&g.l(D),D.forEach(x),this.h()},h(){k(o,"class","hover:text-blue-700 active:text-blue-900"),k(c,"fill-rule","evenodd"),k(c,"d","M11.47 7.72a.75.75 0 0 1 1.06 0l7.5 7.5a.75.75 0 1 1-1.06 1.06L12 9.31l-6.97 6.97a.75.75 0 0 1-1.06-1.06l7.5-7.5Z"),k(c,"clip-rule","evenodd"),k(u,"xmlns","http://www.w3.org/2000/svg"),k(u,"viewBox","0 0 24 24"),k(u,"fill","currentColor"),k(u,"class","w-5 h-5 stroke-slate-500 fill-slate-500 group-hover:stroke-current group-hover:fill-current"),k(a,"class",p=t[0]?"":" [&_path]:origin-center [&_path]:rotate-180"),k(n,"type","button"),k(n,"class","w-full flex items-center justify-between gap-x-1 p-1 font-semibold group"),k(n,"aria-expanded",t[0]),k(r,"class","flex items-center text-sm mb-2 font-medium"),k(e,"class","p-4 border-b border-b-gray-100 border-solid")},m(S,D){T(S,e,D),A(e,r),A(r,n),A(n,i),A(i,o),v&&v.m(o,null),A(i,s),_&&_.m(i,null),A(n,l),A(n,a),A(a,u),A(u,c),A(e,d),~f&&C[f].m(e,null),w=!0,h||(m=K(n,"click",t[20]),h=!0)},p(S,D){v&&v.p&&(!w||D[0]&262144)&&at(v,b,S,S[18],w?st(b,S[18],D,TE):lt(S[18]),xm),S[4]?_&&(_.d(1),_=null):_?_.p(S,D):(_=km(S),_.c(),_.m(i,null)),(!w||D[0]&1&&p!==(p=S[0]?"":" [&_path]:origin-center [&_path]:rotate-180"))&&k(a,"class",p),(!w||D[0]&1)&&k(n,"aria-expanded",S[0]);let O=f;f=E(S,D),f===O?~f&&C[f].p(S,D):(g&&(ae(),L(C[O],1,1,()=>{C[O]=null}),le()),~f?(g=C[f],g?g.p(S,D):(g=C[f]=y[f](S),g.c()),P(g,1),g.m(e,null)):g=null)},i(S){w||(P(v,S),P(g),w=!0)},o(S){L(v,S),L(g),w=!1},d(S){S&&x(e),v&&v.d(S),_&&_.d(),~f&&C[f].d(),h=!1,m()}}}function BE(t,e,r){let n,i,o;ee(t,Je,R=>r(29,i=R)),ee(t,Ht,R=>r(30,o=R));let{$$slots:s={},$$scope:l}=e,a=Lu(s),u=Wt(),{value:c=""}=e,{astNodes:p=null}=e,{clearOnUpdate:d=!1}=e,{expanded:f=!0}=e,{placeholder:g=""}=e,{large:w=!1}=e,{disableDelete:h=!1}=e,{disabled:m=!1}=e;function b(R){we(Ht,o=R,o)}function v(){we(Ht,o=void 0,o)}function _(){confirm("Are you sure you want to delete this attribute?")&&u("delete")}let y=n?null:c;function C(R){if(!(R.target instanceof HTMLInputElement))return;let ve=R.target.value;R.key==="Enter"&&ve&&ve.length>0&&ve!==c&&(u("update",ve),d&&(r(6,y=null),R.target.value=""))}function E(R){(R.target instanceof HTMLInputElement||R.target instanceof HTMLTextAreaElement)&&u("textChange",R.target.value)}function S(R){let ve=Nc(R);we(Je,i=ve,i)}function D(R,ve){if(!p)return;let Qe=Array.from(p),B=Qe.indexOf(ve);Qe.splice(B,1),Qe.splice(B+R,0,ve),u("nodesChange",Qe)}function O(R,ve){let Qe=[...p];Qe[ve]=R.target.value,u("nodesChange",Qe)}let F=()=>r(0,f=!f),Z=R=>S(R),Y=R=>D(-1,R),U=R=>D(1,R),ne=R=>b(R),pe=()=>v(),_e=(R,ve)=>O(ve,R),Ve=(R,ve)=>O(ve,R);return t.$$set=R=>{"value"in R&&r(16,c=R.value),"astNodes"in R&&r(1,p=R.astNodes),"clearOnUpdate"in R&&r(17,d=R.clearOnUpdate),"expanded"in R&&r(0,f=R.expanded),"placeholder"in R&&r(2,g=R.placeholder),"large"in R&&r(3,w=R.large),"disableDelete"in R&&r(4,h=R.disableDelete),"disabled"in R&&r(5,m=R.disabled),"$$scope"in R&&r(18,l=R.$$scope)},t.$$.update=()=>{if(t.$$.dirty[0]&2&&(n=(p||[]).filter(ze)),t.$$.dirty[0]&2)if(p?.length===1){let R=p[0];ze(R)||r(6,y=R)}else p&&r(6,y=null)},[f,p,g,w,h,m,y,b,v,_,C,E,S,D,O,a,c,d,l,s,F,Z,Y,U,ne,pe,_e,Ve]}var Jo=class extends he{constructor(e){super(),xe(this,e,BE,UE,fe,{value:16,astNodes:1,clearOnUpdate:17,expanded:0,placeholder:2,large:3,disableDelete:4,disabled:5},null,[-1,-1])}get value(){return this.$$.ctx[16]}set value(e){this.$$set({value:e}),de()}get astNodes(){return this.$$.ctx[1]}set astNodes(e){this.$$set({astNodes:e}),de()}get clearOnUpdate(){return this.$$.ctx[17]}set clearOnUpdate(e){this.$$set({clearOnUpdate:e}),de()}get expanded(){return this.$$.ctx[0]}set expanded(e){this.$$set({expanded:e}),de()}get placeholder(){return this.$$.ctx[2]}set placeholder(e){this.$$set({placeholder:e}),de()}get large(){return this.$$.ctx[3]}set large(e){this.$$set({large:e}),de()}get disableDelete(){return this.$$.ctx[4]}set disableDelete(e){this.$$set({disableDelete:e}),de()}get disabled(){return this.$$.ctx[5]}set disabled(e){this.$$set({disabled:e}),de()}};ke(Jo,{value:{},astNodes:{},clearOnUpdate:{type:"Boolean"},expanded:{type:"Boolean"},placeholder:{},large:{type:"Boolean"},disableDelete:{type:"Boolean"},disabled:{type:"Boolean"}},["heading","input","value"],[],!0);var dr=Jo;function Om(t,e,r){let n=t.slice();return n[35]=e[r],n[36]=e,n[37]=r,n}function Cm(t,e,r){let n=t.slice();n[38]=e[r];let i=n[38];return n[39]=i[0],n[40]=i[1],n}function Am(t,e,r){let n=t.slice();return n[43]=e[r],n}function zE(t){let e,r="Select a component to edit its properties";return{c(){e=I("div"),e.textContent=r,this.h()},l(n){e=$(n,"DIV",{class:!0,"data-svelte-h":!0}),Ze(e)!=="svelte-y8jlza"&&(e.textContent=r),this.h()},h(){k(e,"class","p-4 pt-8 font-medium text-lg text-center")},m(n,i){T(n,e,i)},p:Q,i:Q,o:Q,d(n){n&&x(e)}}}function WE(t){let e,r,n,i,o,s='Close ',l,a,u,c,p=t[8]&&ir(t[8]),d,f,g,w,h,m,b=!t[5]&&Tm(t),v=t[4]&&Im(t),_=t[0].tag==="eex_block"&&Mm(t),y=p&&Fm(t),C=t[0].content?.length>0&&Lm(t);return g=new dr({props:{expanded:!1,disableDelete:!0,$$slots:{input:[e2],heading:[ZE]},$$scope:{ctx:t}}}),{c(){e=I("div"),r=re(t[6]),n=J(),b&&b.c(),i=J(),o=I("button"),o.innerHTML=s,l=J(),v&&v.c(),a=J(),_&&_.c(),u=J(),c=I("div"),y&&y.c(),d=J(),C&&C.c(),f=J(),Te(g.$$.fragment),this.h()},l(E){e=$(E,"DIV",{class:!0});var S=M(e);r=ie(S,t[6]),n=X(S),b&&b.l(S),i=X(S),o=$(S,"BUTTON",{type:!0,class:!0,"data-svelte-h":!0}),Ze(o)!=="svelte-u311kl"&&(o.innerHTML=s),S.forEach(x),l=X(E),v&&v.l(E),a=X(E),_&&_.l(E),u=X(E),c=$(E,"DIV",{class:!0});var D=M(c);y&&y.l(D),d=X(D),C&&C.l(D),D.forEach(x),f=X(E),Ie(g.$$.fragment,E),this.h()},h(){k(o,"type","button"),k(o,"class","absolute p-2 top-2 right-1"),k(e,"class","border-b text-lg font-medium leading-5 p-4 relative"),k(c,"class","relative")},m(E,S){T(E,e,S),A(e,r),A(e,n),b&&b.m(e,null),A(e,i),A(e,o),T(E,l,S),v&&v.m(E,S),T(E,a,S),_&&_.m(E,S),T(E,u,S),T(E,c,S),y&&y.m(c,null),A(c,d),C&&C.m(c,null),T(E,f,S),Oe(g,E,S),w=!0,h||(m=K(o,"click",hn),h=!0)},p(E,S){(!w||S[0]&64)&&He(r,E[6]),E[5]?b&&(b.d(1),b=null):b?b.p(E,S):(b=Tm(E),b.c(),b.m(e,i)),E[4]?v?(v.p(E,S),S[0]&16&&P(v,1)):(v=Im(E),v.c(),P(v,1),v.m(a.parentNode,a)):v&&(ae(),L(v,1,1,()=>{v=null}),le()),E[0].tag==="eex_block"?_?(_.p(E,S),S[0]&1&&P(_,1)):(_=Mm(E),_.c(),P(_,1),_.m(u.parentNode,u)):_&&(ae(),L(_,1,1,()=>{_=null}),le()),S[0]&256&&(p=E[8]&&ir(E[8])),p?y?y.p(E,S):(y=Fm(E),y.c(),y.m(c,d)):y&&(y.d(1),y=null),E[0].content?.length>0?C?(C.p(E,S),S[0]&1&&P(C,1)):(C=Lm(E),C.c(),P(C,1),C.m(c,null)):C&&(ae(),L(C,1,1,()=>{C=null}),le());let D={};S[0]&64|S[1]&32768&&(D.$$scope={dirty:S,ctx:E}),g.$set(D)},i(E){w||(P(v),P(_),P(C),P(g.$$.fragment,E),w=!0)},o(E){L(v),L(_),L(C),L(g.$$.fragment,E),w=!1},d(E){E&&(x(e),x(l),x(a),x(u),x(c),x(f)),b&&b.d(),v&&v.d(E),_&&_.d(E),y&&y.d(),C&&C.d(),Ce(g,E),h=!1,m()}}}function Tm(t){let e,r='Up one level ',n,i;return{c(){e=I("button"),e.innerHTML=r,this.h()},l(o){e=$(o,"BUTTON",{type:!0,class:!0,"data-svelte-h":!0}),Ze(e)!=="svelte-4v1xz6"&&(e.innerHTML=r),this.h()},h(){k(e,"type","button"),k(e,"class","absolute p-2 top-2 right-9 group")},m(o,s){T(o,e,s),n||(i=K(e,"click",t[13]),n=!0)},p:Q,d(o){o&&x(e),n=!1,i()}}}function Im(t){let e,r,n=[],i=new Map,o,s=[],l=new Map,a,u,c,p="+ Add attribute",d,f,g;e=new dr({props:{clearOnUpdate:!0,disableDelete:!0,placeholder:"Add new class",$$slots:{value:[GE],heading:[VE]},$$scope:{ctx:t}}}),e.$on("update",t[12]);let w=ge(t[7]),h=v=>v[38];for(let v=0;vv[35];for(let v=0;vL(i[s],1,1,()=>{i[s]=null});return{c(){for(let s=0;s{l[p]=null}),le(),i=l[n],i?i.p(u,c):(i=l[n]=s[n](u),i.c()),P(i,1),i.m(r,null))},i(u){o||(P(i),o=!0)},o(u){L(i),o=!1},d(u){u&&x(e),l[n].d()}}}function r2(t,e,r){let n,i,o,s,l,a,u,c,p;ee(t,We,B=>r(32,l=B)),ee(t,vt,B=>r(33,a=B)),ee(t,Dr,B=>r(0,u=B)),ee(t,Je,B=>r(22,c=B)),ee(t,At,B=>r(8,p=B));let d=Wt(),f,g=[];function w(){r(2,g=[...g,{name:"",value:""}])}function h(B){let te=g[B];if(te.name&&te.value){let Ke=u;Ke&&ze(Ke)&&(Ke.attrs[te.name]=te.value,a.pushEvent("update_page_ast",{id:l.id,ast:l.ast}),r(2,g=g.filter((W,oe)=>oe!==B)))}}function m(B){let te=u;te&&ze(te)&&(delete te.attrs[B],a.pushEvent("update_page_ast",{id:l.id,ast:l.ast}))}async function b({detail:B}){let te=u;if(te){let Ke=B.split(" ").map(W=>W.trim());te.attrs.class=te.attrs.class?`${te.attrs.class} ${Ke.join(" ")}`:Ke.join(" "),a.pushEvent("update_page_ast",{id:l.id,ast:l.ast})}}function v(){let B=Ji(c);Ki(B)}async function _(B){let te=u;if(te){let Ke=te.attrs.class.split(" ").filter(W=>W!==B).join(" ");te.attrs.class=Ke,a.pushEvent("update_page_ast",{id:l.id,ast:l.ast})}}async function y(B){Xi(u,B.detail)}async function C(B){let te=u;te&&ze(te)&&(te.arg=B.detail,a.pushEvent("update_page_ast",{id:l.id,ast:l.ast}))}async function E(B,te){let Ke=u;Ke&&ze(Ke)&&(Ke.attrs[B]=te.detail,a.pushEvent("update_page_ast",{id:l.id,ast:l.ast}))}async function S(){c&&confirm("Are you sure you want to delete this component?")&&(eo(c),hn())}function D(){d("droppedIntoTarget",u)}let O=!1;function F(B){B.preventDefault(),r(3,O=!0),B.dataTransfer&&(B.dataTransfer.dropEffect="move")}async function Z({detail:B}){if(c==="root"){let te=l;te.ast=B}else{let te=u;if(!te)return;te.content=B}a.pushEvent("update_page_ast",{id:l.id,ast:l.ast})}let Y=B=>_(B),U=B=>m(B),ne=(B,te)=>E(B,te);function pe(B,te){B[te].name=this.value,r(2,g)}let _e=B=>h(B);function Ve(B,te){B[te].value=this.value,r(2,g)}let R=B=>h(B),ve=()=>r(3,O=!1),Qe=B=>y(B);return t.$$.update=()=>{if(t.$$.dirty[0]&1){let B=u?.attrs?.class;r(1,f=B?B.split(" ").filter(te=>te.trim().length>0):[])}t.$$.dirty[0]&1&&r(7,n=Object.entries(u?.attrs||{}).filter(([B,te])=>B!=="class"&&B!=="self_close"&&!/data-/.test(B))),t.$$.dirty[0]&1&&r(6,i=u?.tag),t.$$.dirty[0]&4194304&&r(5,o=!!c&&c==="root"),t.$$.dirty[0]&1&&r(4,s=!["eex","eex_block"].includes(u?.tag))},[u,f,g,O,s,o,i,n,p,w,h,m,b,v,_,y,C,E,S,D,F,Z,c,Y,U,ne,pe,_e,Ve,R,ve,Qe]}var Xo=class extends he{constructor(e){super(),xe(this,e,r2,t2,fe,{},null,[-1,-1])}};ke(Xo,{},[],[],!0);var su=Xo;var cu={};it(cu,{default:()=>uu});var lu={};it(lu,{default:()=>es,isDragging:()=>pr});function Nm(t){let e,r,n,i,o,s=t[2]&&Rm(t);return{c(){s&&s.c(),e=J(),r=I("button"),n=I("span"),this.h()},l(l){s&&s.l(l),e=X(l),r=$(l,"BUTTON",{class:!0,style:!0});var a=M(r);n=$(a,"SPAN",{}),M(n).forEach(x),a.forEach(x),this.h()},h(){je(n,"hero-arrows-right-left",t[3]==="horizontal"),je(n,"hero-arrows-up-down",t[3]==="vertical"),je(n,"hero-arrows-pointing-out",t[3]==="both"),k(r,"class","rounded-full w-6 h-6 flex justify-center items-center absolute bg-blue-600 text-white hover:bg-blue-700 focus:outline-none focus-visible:ring-4 focus-visible:ring-blue-200 active:bg-blue-800 transform"),k(r,"style",t[1])},m(l,a){s&&s.m(l,a),T(l,e,a),T(l,r,a),A(r,n),t[8](r),i||(o=K(r,"mousedown",t[5]),i=!0)},p(l,a){l[2]?s?s.p(l,a):(s=Rm(l),s.c(),s.m(e.parentNode,e)):s&&(s.d(1),s=null),a[0]&8&&je(n,"hero-arrows-right-left",l[3]==="horizontal"),a[0]&8&&je(n,"hero-arrows-up-down",l[3]==="vertical"),a[0]&8&&je(n,"hero-arrows-pointing-out",l[3]==="both"),a[0]&2&&k(r,"style",l[1])},d(l){l&&(x(e),x(r)),s&&s.d(l),t[8](null),i=!1,o()}}}function Rm(t){let e,r;return{c(){e=I("div"),this.h()},l(n){e=$(n,"DIV",{class:!0,style:!0}),M(e).forEach(x),this.h()},h(){k(e,"class","absolute transition-all"),k(e,"style",r="background-color:aqua; opacity: 0.5; "+t[2])},m(n,i){T(n,e,i)},p(n,i){i[0]&4&&r!==(r="background-color:aqua; opacity: 0.5; "+n[2])&&k(e,"style",r)},d(n){n&&x(e)}}}function n2(t){let e,r=t[4]&&Nm(t);return{c(){r&&r.c(),e=G()},l(n){r&&r.l(n),e=G()},m(n,i){r&&r.m(n,i),T(n,e,i)},p(n,i){n[4]?r?r.p(n,i):(r=Nm(n),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null)},i:Q,o:Q,d(n){n&&x(e),r&&r.d(n)}}}var pr=Ge(!1);function i2(t,e){return e==="bottom"?t.x+t.width/2-5:t.x-25}function o2(t,e){return e==="bottom"?t.y+t.height+5:t.y+t.height/2-5}function jm(t){return t.nodeType===Node.COMMENT_NODE}function s2(t){return t.nodeType===Node.ELEMENT_NODE}function a2(t){return s2(t)||jm(t)}function l2(t,e,r){let n,i,o,s=Q,l=()=>(s(),s=Jt(pr,W=>r(15,o=W)),pr),a,u,c,p,d;ee(t,pr,W=>r(15,o=W)),ee(t,We,W=>r(16,a=W)),ee(t,vt,W=>r(17,u=W)),ee(t,Je,W=>r(18,c=W)),ee(t,Fc,W=>r(19,p=W)),ee(t,Lc,W=>r(20,d=W)),t.$$.on_destroy.push(()=>s());let{element:f}=e,{isParent:g=!1}=e,w,h,m="",b,v,_;function y(W,oe){let ue=document.getElementById("ui-builder-app-container");if(!ue)return;v=ue.closest(".relative").getBoundingClientRect();let se=oe?"left":"bottom";b={x:i2(W,se)-v.x,y:o2(W,se)-v.y}}function C(W,oe=!1){let ue=_?_.originalSiblingRects[_.selectedIndex]:Fr(W);y(ue,oe);let se=[];b?.y&&se.push(`top: ${b.y}px`),b?.x&&se.push(`left: ${b.x}px`),r(1,m=se.join(";"))}function E(){let W=Array.from(f.parentElement.children),oe=W.indexOf(f),ue=f.parentElement.cloneNode(!0),se=Array.from(ue.children);for(let Me=0;Me{let{x:mt,y:Xe,width:hr,height:Er,top:Or,right:Qr,bottom:St,left:nt}=Fr(Me);return{x:mt,y:Xe,width:hr,height:Er,top:Or,right:Qr,bottom:St,left:nt}}),newSiblingRects:null};let Ne=f.parentElement.style;Ne.display="none",f.parentElement.parentNode.insertBefore(ue,f.parentElement),w=Array.from(_.parentElementClone.children)}let S;async function D(W){we(pr,o=!0,o),S=W,document.addEventListener("mousemove",te),document.addEventListener("mouseup",Y),E()}function O(W){let oe=Array.from(f.parentElement.childNodes).filter(a2),se=Array.from(f.parentElement.children)[W],Ne=-1,Me=-1;for(let Be=0;BeXe.getBoundingClientRect()),Me=[...w],Be=Me.splice(W,1)[0];Me.splice(oe,0,Be),_.parentElementClone.replaceChildren(...Me);let mt=se.map(Xe=>Xe.getBoundingClientRect());se.forEach((Xe,hr)=>{if(hr!==Qe){let Er=Ne[hr],Or=mt[hr],Qr=Er.left-Or.left,St=Er.top-Or.top;Xe.style.transform=`translate(${Qr}px, ${St}px)`}else Xe.style.transform="none";Xe.style.transition="transform 0s"}),_.newSiblingRects=Array.from(_.parentElementClone.children).map(Xe=>Xe.getBoundingClientRect()),requestAnimationFrame(()=>{se.forEach(Xe=>{Xe.style.transition="transform 0.2s",Xe.style.transform=""})})}function _e(W){let oe=_.newSiblingRects[W];r(2,ve=`top: ${oe.top-v.top}px; left: ${oe.left-v.left}px; height: ${oe.height}px; width: ${oe.width}px;`)}function Ve(W,oe,ue){let se=_.parentElementClone.children.item(oe),Ne=0,Me=0;if(W===oe)Ne=ue.x,Me=ue.y;else{let Be=_.originalSiblingRects[W],mt=_.newSiblingRects[oe];Ne=-(mt.x-Be.x-ue.x),Me=-(mt.y-Be.y-ue.y)}se.style.transition="none",se.style.transform=`translate(${Ne}px,${Me}px)`}function R(W){h.style.setProperty("--tw-translate-x",`${W.x}px`),h.style.setProperty("--tw-translate-y",`${W.y}px`)}let ve=null,Qe=null;function B(W){v||(v=document.getElementById("ui-builder-app-container").closest(".relative").getBoundingClientRect());let{currentIndex:oe,destinationIndex:ue}=ne(W);Qe!==ue&&(pe(oe,ue),_e(ue),Qe=ue),Ve(oe,ue,W)}function te(W){let oe=U(),ue=js(oe),se={x:ue==="vertical"?0:W.x-S.x,y:ue==="horizontal"?0:W.y-S.y};B(se),R(se)}function Ke(W){dt[W?"unshift":"push"](()=>{h=W,r(0,h)})}return t.$$set=W=>{"element"in W&&r(6,f=W.element),"isParent"in W&&r(7,g=W.isParent)},t.$$.update=()=>{t.$$.dirty[0]&64&&r(4,n=f?.parentElement?.children?.length>1),t.$$.dirty[0]&64&&r(3,i=js(f)),t.$$.dirty[0]&192&&f&&C(f,g)},[h,m,ve,i,n,D,f,g,Ke]}var Zo=class extends he{constructor(e){super(),xe(this,e,l2,n2,fe,{element:6,isParent:7},null,[-1,-1])}get element(){return this.$$.ctx[6]}set element(e){this.$$set({element:e}),de()}get isParent(){return this.$$.ctx[7]}set isParent(e){this.$$set({isParent:e}),de()}};ke(Zo,{element:{},isParent:{type:"Boolean"}},[],[],!0);var es=Zo;function qm(t){let e,r,n,i,o,s,l,a=t[1]&&Um(t);i=new es({props:{element:t[2]}});let u=t[2]?.parentElement&&Bm(t);return{c(){e=I("div"),a&&a.c(),n=J(),Te(i.$$.fragment),o=J(),u&&u.c(),s=G(),this.h()},l(c){e=$(c,"DIV",{class:!0,style:!0});var p=M(e);a&&a.l(p),p.forEach(x),n=X(c),Ie(i.$$.fragment,c),o=X(c),u&&u.l(c),s=G(),this.h()},h(){k(e,"class","selected-element-menu absolute"),k(e,"style",r=`top: ${t[3].y}px; left: ${t[3].x}px;`)},m(c,p){T(c,e,p),a&&a.m(e,null),t[7](e),T(c,n,p),Oe(i,c,p),T(c,o,p),u&&u.m(c,p),T(c,s,p),l=!0},p(c,p){c[1]?a?a.p(c,p):(a=Um(c),a.c(),a.m(e,null)):a&&(a.d(1),a=null),(!l||p&8&&r!==(r=`top: ${c[3].y}px; left: ${c[3].x}px;`))&&k(e,"style",r);let d={};p&4&&(d.element=c[2]),i.$set(d),c[2]?.parentElement?u?(u.p(c,p),p&4&&P(u,1)):(u=Bm(c),u.c(),P(u,1),u.m(s.parentNode,s)):u&&(ae(),L(u,1,1,()=>{u=null}),le())},i(c){l||(P(i.$$.fragment,c),P(u),l=!0)},o(c){L(i.$$.fragment,c),L(u),l=!1},d(c){c&&(x(e),x(n),x(o),x(s)),a&&a.d(),t[7](null),Ce(i,c),u&&u.d(c)}}}function Um(t){let e,r,n,i,o;return{c(){e=I("button"),r=I("span"),this.h()},l(s){e=$(s,"BUTTON",{class:!0,style:!0,"aria-label":!0});var l=M(e);r=$(l,"SPAN",{class:!0}),M(r).forEach(x),l.forEach(x),this.h()},h(){k(r,"class","hero-trash"),k(e,"class","absolute top-0 -m-3 w-6 h-6 rounded-full flex justify-center items-center bg-red-500 text-white hover:bg-red-700 focus:outline-none focus-visible:ring-4 focus-visible:ring-blue-200 active:bg-red-800"),k(e,"style",n=`left: ${t[3].width}px;`),k(e,"aria-label","Delete component")},m(s,l){T(s,e,l),A(e,r),i||(o=K(e,"click",t[5]),i=!0)},p(s,l){l&8&&n!==(n=`left: ${s[3].width}px;`)&&k(e,"style",n)},d(s){s&&x(e),i=!1,o()}}}function Bm(t){let e,r;return e=new es({props:{element:t[2].parentElement,isParent:!0}}),{c(){Te(e.$$.fragment)},l(n){Ie(e.$$.fragment,n)},m(n,i){Oe(e,n,i),r=!0},p(n,i){let o={};i&4&&(o.element=n[2].parentElement),e.$set(o)},i(n){r||(P(e.$$.fragment,n),r=!0)},o(n){L(e.$$.fragment,n),r=!1},d(n){Ce(e,n)}}}function u2(t){let e,r,n=t[4]&&qm(t);return{c(){n&&n.c(),e=G()},l(i){n&&n.l(i),e=G()},m(i,o){n&&n.m(i,o),T(i,e,o),r=!0},p(i,[o]){i[4]?n?(n.p(i,o),o&16&&P(n,1)):(n=qm(i),n.c(),P(n,1),n.m(e.parentNode,e)):n&&(ae(),L(n,1,1,()=>{n=null}),le())},i(i){r||(P(n),r=!0)},o(i){L(n),r=!1},d(i){i&&x(e),n&&n.d(i)}}}function c2(t,e,r){let n,i,o,s,l;ee(t,Je,d=>r(8,i=d)),ee(t,pn,d=>r(2,o=d)),ee(t,pr,d=>r(6,s=d)),ee(t,Dr,d=>r(4,l=d));let a,u;async function c(){i&&confirm("Are you sure you want to delete this component?")&&(eo(i),hn())}function p(d){dt[d?"unshift":"push"](()=>{a=d,r(0,a)})}return t.$$.update=()=>{t.$$.dirty&68&&r(1,n=!!o&&!s),t.$$.dirty&7&&r(3,u=(()=>{if(!(n&&document&&a&&o))return{x:0,y:0,width:0,height:0};let d=Fr(a.closest(".relative")),f=Fr(o);return{x:f.x-d.x,y:f.y-d.y,width:f.width,height:f.height}})())},[a,n,o,u,l,c,s,p]}var ts=class extends he{constructor(e){super(),xe(this,e,c2,u2,fe,{})}};ke(ts,{},[],[],!0);var uu=ts;var fu={};it(fu,{default:()=>p2});function f2(t){let e,r,n,i,o,s,l,a,u,c,p;return e=new Ss({}),i=new $s({props:{components:t[0]}}),s=new zs({}),a=new su({}),a.$on("droppedIntoTarget",t[5]),c=new uu({}),{c(){Te(e.$$.fragment),r=J(),n=I("div"),Te(i.$$.fragment),o=J(),Te(s.$$.fragment),l=J(),Te(a.$$.fragment),u=J(),Te(c.$$.fragment),this.h()},l(d){Ie(e.$$.fragment,d),r=X(d),n=$(d,"DIV",{class:!0,id:!0,"data-test-id":!0});var f=M(n);Ie(i.$$.fragment,f),o=X(f),Ie(s.$$.fragment,f),l=X(f),Ie(a.$$.fragment,f),u=X(f),Ie(c.$$.fragment,f),f.forEach(x),this.h()},h(){k(n,"class","flex min-h-screen bg-gray-100"),k(n,"id","ui-builder-app-container"),k(n,"data-test-id","app-container")},m(d,f){Oe(e,d,f),T(d,r,f),T(d,n,f),Oe(i,n,null),A(n,o),Oe(s,n,null),A(n,l),Oe(a,n,null),A(n,u),Oe(c,n,null),p=!0},p(d,[f]){let g={};f&1&&(g.components=d[0]),i.$set(g)},i(d){p||(P(e.$$.fragment,d),P(i.$$.fragment,d),P(s.$$.fragment,d),P(a.$$.fragment,d),P(c.$$.fragment,d),p=!0)},o(d){L(e.$$.fragment,d),L(i.$$.fragment,d),L(s.$$.fragment,d),L(a.$$.fragment,d),L(c.$$.fragment,d),p=!1},d(d){d&&(x(r),x(n)),Ce(e,d),Ce(i),Ce(s),Ce(a),Ce(c)}}}function d2(t,e,r){let n,i,o,s;ee(t,vt,f=>r(6,n=f)),ee(t,vn,f=>r(7,i=f)),ee(t,bn,f=>r(8,o=f)),ee(t,We,f=>r(9,s=f));let{components:l}=e,{page:a}=e,{tailwindConfig:u}=e,{tailwindInput:c}=e,{live:p}=e;sn(()=>{jc()});let d=f=>(f.detail,void 0);return t.$$set=f=>{"components"in f&&r(0,l=f.components),"page"in f&&r(1,a=f.page),"tailwindConfig"in f&&r(2,u=f.tailwindConfig),"tailwindInput"in f&&r(3,c=f.tailwindInput),"live"in f&&r(4,p=f.live)},t.$$.update=()=>{t.$$.dirty&2&&we(We,s=a,s),t.$$.dirty&4&&we(bn,o=u,o),t.$$.dirty&8&&we(vn,i=c,i),t.$$.dirty&16&&we(vt,n=p,n)},[l,a,u,c,p,d]}var rs=class extends he{constructor(e){super(),xe(this,e,d2,f2,fe,{components:0,page:1,tailwindConfig:2,tailwindInput:3,live:4})}get components(){return this.$$.ctx[0]}set components(e){this.$$set({components:e}),de()}get page(){return this.$$.ctx[1]}set page(e){this.$$set({page:e}),de()}get tailwindConfig(){return this.$$.ctx[2]}set tailwindConfig(e){this.$$set({tailwindConfig:e}),de()}get tailwindInput(){return this.$$.ctx[3]}set tailwindInput(e){this.$$set({tailwindInput:e}),de()}get live(){return this.$$.ctx[4]}set live(e){this.$$set({live:e}),de()}};ke(rs,{components:{},page:{},tailwindConfig:{},tailwindInput:{},live:{}},[],[],!0);var p2=rs;var h2=[Es,Cs,Is,Ds,Rs,Bs,Ws,ru,iu,au,cu,lu,ou,fu],m2=h2,g2=["../svelte/components/Backdrop.svelte","../svelte/components/BrowserFrame.svelte","../svelte/components/CodeEditor.svelte","../svelte/components/ComponentsSidebar.svelte","../svelte/components/LayoutAstNode.svelte","../svelte/components/PageAstNode.svelte","../svelte/components/PagePreview.svelte","../svelte/components/PageWrapper.svelte","../svelte/components/Pill.svelte","../svelte/components/PropertiesSidebar.svelte","../svelte/components/SelectedElementFloatingMenu.svelte","../svelte/components/SelectedElementFloatingMenu/DragMenuOption.svelte","../svelte/components/SidebarSection.svelte","../svelte/components/UiBuilder.svelte"];var zm={};zm.CodeEditorHook=Tu;ns.default.config({barColors:{0:"#29d"},shadowColor:"rgba(0, 0, 0, .3)"});window.addEventListener("phx:page-loading-start",t=>ns.default.show(300));window.addEventListener("phx:page-loading-stop",t=>ns.default.hide());window.addEventListener("beacon_admin:clipcopy",t=>{let e=`${t.target.id}-copy-to-clipboard-result`,r=document.getElementById(e);"clipboard"in navigator?(t.target.tagName==="INPUT"?txt=t.target.value:txt=t.target.textContent,navigator.clipboard.writeText(txt).then(()=>{r.innerText="Copied to clipboard",r.classList.remove("invisible","text-red-500","opacity-0"),r.classList.add("text-green-500","opacity-100","-translate-y-2"),setTimeout(function(){r.classList.remove("text-green-500","opacity-100","-translate-y-2"),r.classList.add("invisible","text-red-500","opacity-0")},2e3)}).catch(()=>{r.innerText="Could not copy",r.classList.remove("invisible","text-green-500","opacity-0"),r.classList.add("text-red-500","opacity-100","-translate-y-2")})):alert("Sorry, your browser does not support clipboard copy.")});var b2=document.querySelector("html").getAttribute("phx-socket")||"/live",v2=document.querySelector("meta[name='csrf-token']").getAttribute("content"),Wm=new LiveView.LiveSocket(b2,Phoenix.Socket,{hooks:{...Du(du),...zm},params:{_csrf_token:v2}});Wm.connect();window.liveSocket=Wm;})(); /** * @license MIT * topbar 2.0.0, 2023-02-04 diff --git a/priv/static/beacon_live_admin.min.js.map b/priv/static/beacon_live_admin.min.js.map index effbef69..92c08429 100644 --- a/priv/static/beacon_live_admin.min.js.map +++ b/priv/static/beacon_live_admin.min.js.map @@ -1,7 +1,7 @@ { "version": 3, - "sources": ["../../assets/vendor/topbar.js", "../../assets/node_modules/picocolors/picocolors.browser.js", "../../assets/node_modules/postcss/lib/css-syntax-error.js", "../../assets/node_modules/postcss/lib/symbols.js", "../../assets/node_modules/postcss/lib/stringifier.js", "../../assets/node_modules/postcss/lib/stringify.js", "../../assets/node_modules/postcss/lib/node.js", "../../assets/node_modules/postcss/lib/declaration.js", "../../assets/node_modules/nanoid/non-secure/index.cjs", "../../assets/node_modules/postcss/lib/previous-map.js", "../../assets/node_modules/postcss/lib/input.js", "../../assets/node_modules/postcss/lib/map-generator.js", "../../assets/node_modules/postcss/lib/comment.js", "../../assets/node_modules/postcss/lib/container.js", "../../assets/node_modules/postcss/lib/document.js", "../../assets/node_modules/postcss/lib/warn-once.js", "../../assets/node_modules/postcss/lib/warning.js", "../../assets/node_modules/postcss/lib/result.js", "../../assets/node_modules/postcss/lib/tokenize.js", "../../assets/node_modules/postcss/lib/at-rule.js", "../../assets/node_modules/postcss/lib/root.js", "../../assets/node_modules/postcss/lib/list.js", "../../assets/node_modules/postcss/lib/rule.js", "../../assets/node_modules/postcss/lib/parser.js", "../../assets/node_modules/postcss/lib/parse.js", "../../assets/node_modules/postcss/lib/lazy-result.js", "../../assets/node_modules/postcss/lib/no-work-result.js", "../../assets/node_modules/postcss/lib/processor.js", "../../assets/node_modules/postcss/lib/fromJSON.js", "../../assets/node_modules/postcss/lib/postcss.js", "../../assets/node_modules/postcss-selector-parser/dist/util/unesc.js", "../../assets/node_modules/postcss-selector-parser/dist/util/getProp.js", "../../assets/node_modules/postcss-selector-parser/dist/util/ensureObject.js", "../../assets/node_modules/postcss-selector-parser/dist/util/stripComments.js", "../../assets/node_modules/postcss-selector-parser/dist/util/index.js", "../../assets/node_modules/postcss-selector-parser/dist/selectors/node.js", "../../assets/node_modules/postcss-selector-parser/dist/selectors/types.js", "../../assets/node_modules/postcss-selector-parser/dist/selectors/container.js", "../../assets/node_modules/postcss-selector-parser/dist/selectors/root.js", "../../assets/node_modules/postcss-selector-parser/dist/selectors/selector.js", "../../assets/node_modules/cssesc/cssesc.js", "../../assets/node_modules/postcss-selector-parser/dist/selectors/className.js", "../../assets/node_modules/postcss-selector-parser/dist/selectors/comment.js", "../../assets/node_modules/postcss-selector-parser/dist/selectors/id.js", "../../assets/node_modules/postcss-selector-parser/dist/selectors/namespace.js", "../../assets/node_modules/postcss-selector-parser/dist/selectors/tag.js", "../../assets/node_modules/postcss-selector-parser/dist/selectors/string.js", "../../assets/node_modules/postcss-selector-parser/dist/selectors/pseudo.js", "../../assets/node_modules/util-deprecate/browser.js", "../../assets/node_modules/postcss-selector-parser/dist/selectors/attribute.js", "../../assets/node_modules/postcss-selector-parser/dist/selectors/universal.js", "../../assets/node_modules/postcss-selector-parser/dist/selectors/combinator.js", "../../assets/node_modules/postcss-selector-parser/dist/selectors/nesting.js", "../../assets/node_modules/postcss-selector-parser/dist/sortAscending.js", "../../assets/node_modules/postcss-selector-parser/dist/tokenTypes.js", "../../assets/node_modules/postcss-selector-parser/dist/tokenize.js", "../../assets/node_modules/postcss-selector-parser/dist/parser.js", "../../assets/node_modules/postcss-selector-parser/dist/processor.js", "../../assets/node_modules/postcss-selector-parser/dist/selectors/constructors.js", "../../assets/node_modules/postcss-selector-parser/dist/selectors/guards.js", "../../assets/node_modules/postcss-selector-parser/dist/selectors/index.js", "../../assets/node_modules/postcss-selector-parser/dist/index.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/postcss-nested/index.js", "../../assets/node_modules/camelcase-css/index-es5.js", "../../assets/node_modules/postcss-js/objectifier.js", "../../assets/node_modules/postcss-js/parser.js", "../../assets/node_modules/postcss-js/process-result.js", "../../assets/node_modules/postcss-js/async.js", "../../assets/node_modules/postcss-js/sync.js", "../../assets/node_modules/postcss-js/index.js", "../../assets/node_modules/dlv/index.js", "../../assets/node_modules/didyoumean/didYouMean-1.2.1.js", "../../assets/js/beacon_live_admin.js", "../../deps/live_monaco_editor/assets/node_modules/@monaco-editor/loader/lib/es/_virtual/_rollupPluginBabelHelpers.js", "../../deps/live_monaco_editor/assets/node_modules/state-local/lib/es/state-local.js", "../../deps/live_monaco_editor/assets/node_modules/@monaco-editor/loader/lib/es/config/index.js", "../../deps/live_monaco_editor/assets/node_modules/@monaco-editor/loader/lib/es/utils/curry.js", "../../deps/live_monaco_editor/assets/node_modules/@monaco-editor/loader/lib/es/utils/isObject.js", "../../deps/live_monaco_editor/assets/node_modules/@monaco-editor/loader/lib/es/validators/index.js", "../../deps/live_monaco_editor/assets/node_modules/@monaco-editor/loader/lib/es/utils/compose.js", "../../deps/live_monaco_editor/assets/node_modules/@monaco-editor/loader/lib/es/utils/deepMerge.js", "../../deps/live_monaco_editor/assets/node_modules/@monaco-editor/loader/lib/es/utils/makeCancelable.js", "../../deps/live_monaco_editor/assets/node_modules/@monaco-editor/loader/lib/es/loader/index.js", "../../deps/live_monaco_editor/assets/js/live_monaco_editor/editor/themes.js", "../../deps/live_monaco_editor/assets/js/live_monaco_editor/editor/code_editor.js", "../../deps/live_monaco_editor/assets/js/live_monaco_editor/hooks/code_editor.js", "../../deps/live_svelte/assets/js/live_svelte/utils.js", "../../deps/live_svelte/assets/js/live_svelte/render.js", "../../deps/live_svelte/assets/js/live_svelte/hooks.js", "import-glob:../svelte/**/*.svelte", "../../assets/node_modules/svelte/src/runtime/internal/utils.js", "../../assets/node_modules/svelte/src/runtime/internal/environment.js", "../../assets/node_modules/svelte/src/runtime/internal/loop.js", "../../assets/node_modules/svelte/src/runtime/internal/globals.js", "../../assets/node_modules/svelte/src/runtime/internal/ResizeObserverSingleton.js", "../../assets/node_modules/svelte/src/runtime/internal/dom.js", "../../assets/node_modules/svelte/src/runtime/internal/style_manager.js", "../../assets/node_modules/svelte/src/runtime/internal/lifecycle.js", "../../assets/node_modules/svelte/src/runtime/internal/scheduler.js", "../../assets/node_modules/svelte/src/runtime/internal/transitions.js", "../../assets/node_modules/svelte/src/runtime/internal/each.js", "../../assets/node_modules/svelte/src/runtime/internal/spread.js", "../../assets/node_modules/svelte/src/shared/boolean_attributes.js", "../../assets/node_modules/svelte/src/runtime/internal/Component.js", "../../assets/node_modules/svelte/src/shared/version.js", "../../assets/node_modules/svelte/src/runtime/internal/disclose-version/index.js", "../../assets/node_modules/svelte/src/runtime/transition/index.js", "../../assets/node_modules/svelte/src/runtime/store/index.js", "../../assets/svelte/components/Backdrop.svelte", "../../assets/svelte/components/BrowserFrame.svelte", "../../assets/node_modules/@monaco-editor/loader/lib/es/_virtual/_rollupPluginBabelHelpers.js", "../../assets/node_modules/state-local/lib/es/state-local.js", "../../assets/node_modules/@monaco-editor/loader/lib/es/config/index.js", "../../assets/node_modules/@monaco-editor/loader/lib/es/utils/curry.js", "../../assets/node_modules/@monaco-editor/loader/lib/es/utils/isObject.js", "../../assets/node_modules/@monaco-editor/loader/lib/es/validators/index.js", "../../assets/node_modules/@monaco-editor/loader/lib/es/utils/compose.js", "../../assets/node_modules/@monaco-editor/loader/lib/es/utils/deepMerge.js", "../../assets/node_modules/@monaco-editor/loader/lib/es/utils/makeCancelable.js", "../../assets/node_modules/@monaco-editor/loader/lib/es/loader/index.js", "../../assets/svelte/components/CodeEditor.svelte", "../../assets/svelte/utils/animations.ts", "../../assets/svelte/stores/currentComponentCategory.ts", "../../assets/svelte/stores/dragAndDrop.ts", "../../assets/svelte/components/ComponentsSidebar.svelte", "../../assets/svelte/stores/page.ts", "../../assets/svelte/components/LayoutAstNode.svelte", "../../assets/svelte/utils/drag-helpers.ts", "../../assets/svelte/stores/live.ts", "../../assets/svelte/utils/ast-helpers.ts", "../../assets/svelte/utils/ast-manipulation.ts", "../../assets/svelte/components/SelectedElementFloatingMenu/DragMenuOption.svelte", "../../assets/svelte/components/PageAstNode.svelte", "../../assets/svelte/components/PagePreview.svelte", "../../assets/svelte/stores/tailwindConfig.ts", "../../assets/svelte/stores/tailwindInput.ts", "../../assets/node_modules/postcss/lib/postcss.mjs", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/@alloc/quick-lru/index.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/value-parser/parse.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/value-parser/walk.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/value-parser/stringify.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/value-parser/unit.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/value-parser/index.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/stubs/config.full.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/src/index.ts", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/src/stubs/tailwindcss/utils/log.ts", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/lib/normalizeTailwindDirectives.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/src/stubs/fs.ts", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/lib/expandTailwindAtRules.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/lib/sharedState.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/lib/generateRules.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/util/parseObjectStyles.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/util/isPlainObject.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/util/prefixSelector.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/util/escapeCommas.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/util/colorNames.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/util/color.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/util/withAlphaVariable.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/util/splitAtTopLevelOnly.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/util/parseBoxShadowValue.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/util/dataTypes.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/util/negateValue.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/util/validateFormalSyntax.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/src/stubs/picocolors.ts", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/featureFlags.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/util/pluginUtils.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/util/formatVariantSelector.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/util/escapeClassName.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/util/pseudoElements.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/util/nameClass.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/lib/setupContextUtils.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/util/transformThemeValue.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/src/stubs/path.ts", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/corePlugins.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/util/createUtilityPlugin.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/util/buildMediaQuery.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/util/parseAnimationValue.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/util/flattenColorPalette.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/util/toColorValue.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/util/normalizeScreens.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/util/removeAlphaVariables.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/util/toPath.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/util/isSyntacticallyValidPropertyValue.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/util/bigSign.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/lib/remap-bitfield.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/lib/offsets.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/util/applyImportantSelector.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/util/cloneNodes.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/lib/regex.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/lib/defaultExtractor.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/lib/expandApplyAtRules.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/lib/evaluateTailwindFunctions.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/lib/substituteScreenAtRules.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/lib/resolveDefaultsAtRules.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/lib/collapseAdjacentRules.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/lib/collapseDuplicateDeclarations.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/lib/partitionApplyAtRules.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/lib/detectNesting.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/processTailwindFeatures.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/corePluginList.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/util/configurePlugins.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/public/colors.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/util/defaults.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/util/normalizeConfig.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/util/cloneDeep.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/util/resolveConfig.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/util/getAllConfigs.js", "../../assets/node_modules/@mhsdesign/jit-browser-tailwindcss/node_modules/tailwindcss/src/public/resolve-config.js", "../../assets/node_modules/postcss-js/index.mjs", "../../assets/svelte/components/PageWrapper.svelte", "../../assets/svelte/components/Pill.svelte", "../../assets/svelte/components/SidebarSection.svelte", "../../assets/svelte/components/PropertiesSidebar.svelte", "../../assets/svelte/components/SelectedElementFloatingMenu.svelte", "../../assets/svelte/components/UiBuilder.svelte"], - "sourcesContent": ["/**\n * @license MIT\n * topbar 2.0.0, 2023-02-04\n * https://buunguyen.github.io/topbar\n * Copyright (c) 2021 Buu Nguyen\n */\n;(function (window, document) {\n \"use strict\"\n\n // https://gist.github.com/paulirish/1579671\n ;(function () {\n var lastTime = 0\n var vendors = [\"ms\", \"moz\", \"webkit\", \"o\"]\n for (var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) {\n window.requestAnimationFrame = window[vendors[x] + \"RequestAnimationFrame\"]\n window.cancelAnimationFrame =\n window[vendors[x] + \"CancelAnimationFrame\"] || window[vendors[x] + \"CancelRequestAnimationFrame\"]\n }\n if (!window.requestAnimationFrame)\n window.requestAnimationFrame = function (callback, element) {\n var currTime = new Date().getTime()\n var timeToCall = Math.max(0, 16 - (currTime - lastTime))\n var id = window.setTimeout(function () {\n callback(currTime + timeToCall)\n }, timeToCall)\n lastTime = currTime + timeToCall\n return id\n }\n if (!window.cancelAnimationFrame)\n window.cancelAnimationFrame = function (id) {\n clearTimeout(id)\n }\n })()\n\n var canvas,\n currentProgress,\n showing,\n progressTimerId = null,\n fadeTimerId = null,\n delayTimerId = null,\n addEvent = function (elem, type, handler) {\n if (elem.addEventListener) elem.addEventListener(type, handler, false)\n else if (elem.attachEvent) elem.attachEvent(\"on\" + type, handler)\n else elem[\"on\" + type] = handler\n },\n options = {\n autoRun: true,\n barThickness: 3,\n barColors: {\n 0: \"rgba(26, 188, 156, .9)\",\n \".25\": \"rgba(52, 152, 219, .9)\",\n \".50\": \"rgba(241, 196, 15, .9)\",\n \".75\": \"rgba(230, 126, 34, .9)\",\n \"1.0\": \"rgba(211, 84, 0, .9)\",\n },\n shadowBlur: 10,\n shadowColor: \"rgba(0, 0, 0, .6)\",\n className: null,\n },\n repaint = function () {\n canvas.width = window.innerWidth\n canvas.height = options.barThickness * 5 // need space for shadow\n\n var ctx = canvas.getContext(\"2d\")\n ctx.shadowBlur = options.shadowBlur\n ctx.shadowColor = options.shadowColor\n\n var lineGradient = ctx.createLinearGradient(0, 0, canvas.width, 0)\n for (var stop in options.barColors) lineGradient.addColorStop(stop, options.barColors[stop])\n ctx.lineWidth = options.barThickness\n ctx.beginPath()\n ctx.moveTo(0, options.barThickness / 2)\n ctx.lineTo(Math.ceil(currentProgress * canvas.width), options.barThickness / 2)\n ctx.strokeStyle = lineGradient\n ctx.stroke()\n },\n createCanvas = function () {\n canvas = document.createElement(\"canvas\")\n var style = canvas.style\n style.position = \"fixed\"\n style.top = style.left = style.right = style.margin = style.padding = 0\n style.zIndex = 100001\n style.display = \"none\"\n if (options.className) canvas.classList.add(options.className)\n document.body.appendChild(canvas)\n addEvent(window, \"resize\", repaint)\n },\n topbar = {\n config: function (opts) {\n for (var key in opts) if (options.hasOwnProperty(key)) options[key] = opts[key]\n },\n show: function (delay) {\n if (showing) return\n if (delay) {\n if (delayTimerId) return\n delayTimerId = setTimeout(() => topbar.show(), delay)\n } else {\n showing = true\n if (fadeTimerId !== null) window.cancelAnimationFrame(fadeTimerId)\n if (!canvas) createCanvas()\n canvas.style.opacity = 1\n canvas.style.display = \"block\"\n topbar.progress(0)\n if (options.autoRun) {\n ;(function loop() {\n progressTimerId = window.requestAnimationFrame(loop)\n topbar.progress(\"+\" + 0.05 * Math.pow(1 - Math.sqrt(currentProgress), 2))\n })()\n }\n }\n },\n progress: function (to) {\n if (typeof to === \"undefined\") return currentProgress\n if (typeof to === \"string\") {\n to = (to.indexOf(\"+\") >= 0 || to.indexOf(\"-\") >= 0 ? currentProgress : 0) + parseFloat(to)\n }\n currentProgress = to > 1 ? 1 : to\n repaint()\n return currentProgress\n },\n hide: function () {\n clearTimeout(delayTimerId)\n delayTimerId = null\n if (!showing) return\n showing = false\n if (progressTimerId != null) {\n window.cancelAnimationFrame(progressTimerId)\n progressTimerId = null\n }\n ;(function loop() {\n if (topbar.progress(\"+.1\") >= 1) {\n canvas.style.opacity -= 0.05\n if (canvas.style.opacity <= 0.05) {\n canvas.style.display = \"none\"\n fadeTimerId = null\n return\n }\n }\n fadeTimerId = window.requestAnimationFrame(loop)\n })()\n },\n }\n\n if (typeof module === \"object\" && typeof module.exports === \"object\") {\n module.exports = topbar\n } else if (typeof define === \"function\" && define.amd) {\n define(function () {\n return topbar\n })\n } else {\n this.topbar = topbar\n }\n}).call(this, window, document)\n", "var x=String;\nvar create=function() {return {isColorSupported:false,reset:x,bold:x,dim:x,italic:x,underline:x,inverse:x,hidden:x,strikethrough:x,black:x,red:x,green:x,yellow:x,blue:x,magenta:x,cyan:x,white:x,gray:x,bgBlack:x,bgRed:x,bgGreen:x,bgYellow:x,bgBlue:x,bgMagenta:x,bgCyan:x,bgWhite:x}};\nmodule.exports=create();\nmodule.exports.createColors = create;\n", "'use strict'\n\nlet pico = require('picocolors')\n\nlet terminalHighlight = require('./terminal-highlight')\n\nclass CssSyntaxError extends Error {\n constructor(message, line, column, source, file, plugin) {\n super(message)\n this.name = 'CssSyntaxError'\n this.reason = message\n\n if (file) {\n this.file = file\n }\n if (source) {\n this.source = source\n }\n if (plugin) {\n this.plugin = plugin\n }\n if (typeof line !== 'undefined' && typeof column !== 'undefined') {\n if (typeof line === 'number') {\n this.line = line\n this.column = column\n } else {\n this.line = line.line\n this.column = line.column\n this.endLine = column.line\n this.endColumn = column.column\n }\n }\n\n this.setMessage()\n\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, CssSyntaxError)\n }\n }\n\n setMessage() {\n this.message = this.plugin ? this.plugin + ': ' : ''\n this.message += this.file ? this.file : ''\n if (typeof this.line !== 'undefined') {\n this.message += ':' + this.line + ':' + this.column\n }\n this.message += ': ' + this.reason\n }\n\n showSourceCode(color) {\n if (!this.source) return ''\n\n let css = this.source\n if (color == null) color = pico.isColorSupported\n if (terminalHighlight) {\n if (color) css = terminalHighlight(css)\n }\n\n let lines = css.split(/\\r?\\n/)\n let start = Math.max(this.line - 3, 0)\n let end = Math.min(this.line + 2, lines.length)\n\n let maxWidth = String(end).length\n\n let mark, aside\n if (color) {\n let { bold, gray, red } = pico.createColors(true)\n mark = text => bold(red(text))\n aside = text => gray(text)\n } else {\n mark = aside = str => str\n }\n\n return lines\n .slice(start, end)\n .map((line, index) => {\n let number = start + 1 + index\n let gutter = ' ' + (' ' + number).slice(-maxWidth) + ' | '\n if (number === this.line) {\n let spacing =\n aside(gutter.replace(/\\d/g, ' ')) +\n line.slice(0, this.column - 1).replace(/[^\\t]/g, ' ')\n return mark('>') + aside(gutter) + line + '\\n ' + spacing + mark('^')\n }\n return ' ' + aside(gutter) + line\n })\n .join('\\n')\n }\n\n toString() {\n let code = this.showSourceCode()\n if (code) {\n code = '\\n\\n' + code + '\\n'\n }\n return this.name + ': ' + this.message + code\n }\n}\n\nmodule.exports = CssSyntaxError\nCssSyntaxError.default = CssSyntaxError\n", "'use strict'\n\nmodule.exports.isClean = Symbol('isClean')\n\nmodule.exports.my = Symbol('my')\n", "'use strict'\n\nconst DEFAULT_RAW = {\n after: '\\n',\n beforeClose: '\\n',\n beforeComment: '\\n',\n beforeDecl: '\\n',\n beforeOpen: ' ',\n beforeRule: '\\n',\n colon: ': ',\n commentLeft: ' ',\n commentRight: ' ',\n emptyBody: '',\n indent: ' ',\n semicolon: false\n}\n\nfunction capitalize(str) {\n return str[0].toUpperCase() + str.slice(1)\n}\n\nclass Stringifier {\n constructor(builder) {\n this.builder = builder\n }\n\n atrule(node, semicolon) {\n let name = '@' + node.name\n let params = node.params ? this.rawValue(node, 'params') : ''\n\n if (typeof node.raws.afterName !== 'undefined') {\n name += node.raws.afterName\n } else if (params) {\n name += ' '\n }\n\n if (node.nodes) {\n this.block(node, name + params)\n } else {\n let end = (node.raws.between || '') + (semicolon ? ';' : '')\n this.builder(name + params + end, node)\n }\n }\n\n beforeAfter(node, detect) {\n let value\n if (node.type === 'decl') {\n value = this.raw(node, null, 'beforeDecl')\n } else if (node.type === 'comment') {\n value = this.raw(node, null, 'beforeComment')\n } else if (detect === 'before') {\n value = this.raw(node, null, 'beforeRule')\n } else {\n value = this.raw(node, null, 'beforeClose')\n }\n\n let buf = node.parent\n let depth = 0\n while (buf && buf.type !== 'root') {\n depth += 1\n buf = buf.parent\n }\n\n if (value.includes('\\n')) {\n let indent = this.raw(node, null, 'indent')\n if (indent.length) {\n for (let step = 0; step < depth; step++) value += indent\n }\n }\n\n return value\n }\n\n block(node, start) {\n let between = this.raw(node, 'between', 'beforeOpen')\n this.builder(start + between + '{', node, 'start')\n\n let after\n if (node.nodes && node.nodes.length) {\n this.body(node)\n after = this.raw(node, 'after')\n } else {\n after = this.raw(node, 'after', 'emptyBody')\n }\n\n if (after) this.builder(after)\n this.builder('}', node, 'end')\n }\n\n body(node) {\n let last = node.nodes.length - 1\n while (last > 0) {\n if (node.nodes[last].type !== 'comment') break\n last -= 1\n }\n\n let semicolon = this.raw(node, 'semicolon')\n for (let i = 0; i < node.nodes.length; i++) {\n let child = node.nodes[i]\n let before = this.raw(child, 'before')\n if (before) this.builder(before)\n this.stringify(child, last !== i || semicolon)\n }\n }\n\n comment(node) {\n let left = this.raw(node, 'left', 'commentLeft')\n let right = this.raw(node, 'right', 'commentRight')\n this.builder('/*' + left + node.text + right + '*/', node)\n }\n\n decl(node, semicolon) {\n let between = this.raw(node, 'between', 'colon')\n let string = node.prop + between + this.rawValue(node, 'value')\n\n if (node.important) {\n string += node.raws.important || ' !important'\n }\n\n if (semicolon) string += ';'\n this.builder(string, node)\n }\n\n document(node) {\n this.body(node)\n }\n\n raw(node, own, detect) {\n let value\n if (!detect) detect = own\n\n // Already had\n if (own) {\n value = node.raws[own]\n if (typeof value !== 'undefined') return value\n }\n\n let parent = node.parent\n\n if (detect === 'before') {\n // Hack for first rule in CSS\n if (!parent || (parent.type === 'root' && parent.first === node)) {\n return ''\n }\n\n // `root` nodes in `document` should use only their own raws\n if (parent && parent.type === 'document') {\n return ''\n }\n }\n\n // Floating child without parent\n if (!parent) return DEFAULT_RAW[detect]\n\n // Detect style by other nodes\n let root = node.root()\n if (!root.rawCache) root.rawCache = {}\n if (typeof root.rawCache[detect] !== 'undefined') {\n return root.rawCache[detect]\n }\n\n if (detect === 'before' || detect === 'after') {\n return this.beforeAfter(node, detect)\n } else {\n let method = 'raw' + capitalize(detect)\n if (this[method]) {\n value = this[method](root, node)\n } else {\n root.walk(i => {\n value = i.raws[own]\n if (typeof value !== 'undefined') return false\n })\n }\n }\n\n if (typeof value === 'undefined') value = DEFAULT_RAW[detect]\n\n root.rawCache[detect] = value\n return value\n }\n\n rawBeforeClose(root) {\n let value\n root.walk(i => {\n if (i.nodes && i.nodes.length > 0) {\n if (typeof i.raws.after !== 'undefined') {\n value = i.raws.after\n if (value.includes('\\n')) {\n value = value.replace(/[^\\n]+$/, '')\n }\n return false\n }\n }\n })\n if (value) value = value.replace(/\\S/g, '')\n return value\n }\n\n rawBeforeComment(root, node) {\n let value\n root.walkComments(i => {\n if (typeof i.raws.before !== 'undefined') {\n value = i.raws.before\n if (value.includes('\\n')) {\n value = value.replace(/[^\\n]+$/, '')\n }\n return false\n }\n })\n if (typeof value === 'undefined') {\n value = this.raw(node, null, 'beforeDecl')\n } else if (value) {\n value = value.replace(/\\S/g, '')\n }\n return value\n }\n\n rawBeforeDecl(root, node) {\n let value\n root.walkDecls(i => {\n if (typeof i.raws.before !== 'undefined') {\n value = i.raws.before\n if (value.includes('\\n')) {\n value = value.replace(/[^\\n]+$/, '')\n }\n return false\n }\n })\n if (typeof value === 'undefined') {\n value = this.raw(node, null, 'beforeRule')\n } else if (value) {\n value = value.replace(/\\S/g, '')\n }\n return value\n }\n\n rawBeforeOpen(root) {\n let value\n root.walk(i => {\n if (i.type !== 'decl') {\n value = i.raws.between\n if (typeof value !== 'undefined') return false\n }\n })\n return value\n }\n\n rawBeforeRule(root) {\n let value\n root.walk(i => {\n if (i.nodes && (i.parent !== root || root.first !== i)) {\n if (typeof i.raws.before !== 'undefined') {\n value = i.raws.before\n if (value.includes('\\n')) {\n value = value.replace(/[^\\n]+$/, '')\n }\n return false\n }\n }\n })\n if (value) value = value.replace(/\\S/g, '')\n return value\n }\n\n rawColon(root) {\n let value\n root.walkDecls(i => {\n if (typeof i.raws.between !== 'undefined') {\n value = i.raws.between.replace(/[^\\s:]/g, '')\n return false\n }\n })\n return value\n }\n\n rawEmptyBody(root) {\n let value\n root.walk(i => {\n if (i.nodes && i.nodes.length === 0) {\n value = i.raws.after\n if (typeof value !== 'undefined') return false\n }\n })\n return value\n }\n\n rawIndent(root) {\n if (root.raws.indent) return root.raws.indent\n let value\n root.walk(i => {\n let p = i.parent\n if (p && p !== root && p.parent && p.parent === root) {\n if (typeof i.raws.before !== 'undefined') {\n let parts = i.raws.before.split('\\n')\n value = parts[parts.length - 1]\n value = value.replace(/\\S/g, '')\n return false\n }\n }\n })\n return value\n }\n\n rawSemicolon(root) {\n let value\n root.walk(i => {\n if (i.nodes && i.nodes.length && i.last.type === 'decl') {\n value = i.raws.semicolon\n if (typeof value !== 'undefined') return false\n }\n })\n return value\n }\n\n rawValue(node, prop) {\n let value = node[prop]\n let raw = node.raws[prop]\n if (raw && raw.value === value) {\n return raw.raw\n }\n\n return value\n }\n\n root(node) {\n this.body(node)\n if (node.raws.after) this.builder(node.raws.after)\n }\n\n rule(node) {\n this.block(node, this.rawValue(node, 'selector'))\n if (node.raws.ownSemicolon) {\n this.builder(node.raws.ownSemicolon, node, 'end')\n }\n }\n\n stringify(node, semicolon) {\n /* c8 ignore start */\n if (!this[node.type]) {\n throw new Error(\n 'Unknown AST node type ' +\n node.type +\n '. ' +\n 'Maybe you need to change PostCSS stringifier.'\n )\n }\n /* c8 ignore stop */\n this[node.type](node, semicolon)\n }\n}\n\nmodule.exports = Stringifier\nStringifier.default = Stringifier\n", "'use strict'\n\nlet Stringifier = require('./stringifier')\n\nfunction stringify(node, builder) {\n let str = new Stringifier(builder)\n str.stringify(node)\n}\n\nmodule.exports = stringify\nstringify.default = stringify\n", "'use strict'\n\nlet { isClean, my } = require('./symbols')\nlet CssSyntaxError = require('./css-syntax-error')\nlet Stringifier = require('./stringifier')\nlet stringify = require('./stringify')\n\nfunction cloneNode(obj, parent) {\n let cloned = new obj.constructor()\n\n for (let i in obj) {\n if (!Object.prototype.hasOwnProperty.call(obj, i)) {\n /* c8 ignore next 2 */\n continue\n }\n if (i === 'proxyCache') continue\n let value = obj[i]\n let type = typeof value\n\n if (i === 'parent' && type === 'object') {\n if (parent) cloned[i] = parent\n } else if (i === 'source') {\n cloned[i] = value\n } else if (Array.isArray(value)) {\n cloned[i] = value.map(j => cloneNode(j, cloned))\n } else {\n if (type === 'object' && value !== null) value = cloneNode(value)\n cloned[i] = value\n }\n }\n\n return cloned\n}\n\nclass Node {\n constructor(defaults = {}) {\n this.raws = {}\n this[isClean] = false\n this[my] = true\n\n for (let name in defaults) {\n if (name === 'nodes') {\n this.nodes = []\n for (let node of defaults[name]) {\n if (typeof node.clone === 'function') {\n this.append(node.clone())\n } else {\n this.append(node)\n }\n }\n } else {\n this[name] = defaults[name]\n }\n }\n }\n\n addToError(error) {\n error.postcssNode = this\n if (error.stack && this.source && /\\n\\s{4}at /.test(error.stack)) {\n let s = this.source\n error.stack = error.stack.replace(\n /\\n\\s{4}at /,\n `$&${s.input.from}:${s.start.line}:${s.start.column}$&`\n )\n }\n return error\n }\n\n after(add) {\n this.parent.insertAfter(this, add)\n return this\n }\n\n assign(overrides = {}) {\n for (let name in overrides) {\n this[name] = overrides[name]\n }\n return this\n }\n\n before(add) {\n this.parent.insertBefore(this, add)\n return this\n }\n\n cleanRaws(keepBetween) {\n delete this.raws.before\n delete this.raws.after\n if (!keepBetween) delete this.raws.between\n }\n\n clone(overrides = {}) {\n let cloned = cloneNode(this)\n for (let name in overrides) {\n cloned[name] = overrides[name]\n }\n return cloned\n }\n\n cloneAfter(overrides = {}) {\n let cloned = this.clone(overrides)\n this.parent.insertAfter(this, cloned)\n return cloned\n }\n\n cloneBefore(overrides = {}) {\n let cloned = this.clone(overrides)\n this.parent.insertBefore(this, cloned)\n return cloned\n }\n\n error(message, opts = {}) {\n if (this.source) {\n let { end, start } = this.rangeBy(opts)\n return this.source.input.error(\n message,\n { column: start.column, line: start.line },\n { column: end.column, line: end.line },\n opts\n )\n }\n return new CssSyntaxError(message)\n }\n\n getProxyProcessor() {\n return {\n get(node, prop) {\n if (prop === 'proxyOf') {\n return node\n } else if (prop === 'root') {\n return () => node.root().toProxy()\n } else {\n return node[prop]\n }\n },\n\n set(node, prop, value) {\n if (node[prop] === value) return true\n node[prop] = value\n if (\n prop === 'prop' ||\n prop === 'value' ||\n prop === 'name' ||\n prop === 'params' ||\n prop === 'important' ||\n /* c8 ignore next */\n prop === 'text'\n ) {\n node.markDirty()\n }\n return true\n }\n }\n }\n\n markDirty() {\n if (this[isClean]) {\n this[isClean] = false\n let next = this\n while ((next = next.parent)) {\n next[isClean] = false\n }\n }\n }\n\n next() {\n if (!this.parent) return undefined\n let index = this.parent.index(this)\n return this.parent.nodes[index + 1]\n }\n\n positionBy(opts, stringRepresentation) {\n let pos = this.source.start\n if (opts.index) {\n pos = this.positionInside(opts.index, stringRepresentation)\n } else if (opts.word) {\n stringRepresentation = this.toString()\n let index = stringRepresentation.indexOf(opts.word)\n if (index !== -1) pos = this.positionInside(index, stringRepresentation)\n }\n return pos\n }\n\n positionInside(index, stringRepresentation) {\n let string = stringRepresentation || this.toString()\n let column = this.source.start.column\n let line = this.source.start.line\n\n for (let i = 0; i < index; i++) {\n if (string[i] === '\\n') {\n column = 1\n line += 1\n } else {\n column += 1\n }\n }\n\n return { column, line }\n }\n\n prev() {\n if (!this.parent) return undefined\n let index = this.parent.index(this)\n return this.parent.nodes[index - 1]\n }\n\n rangeBy(opts) {\n let start = {\n column: this.source.start.column,\n line: this.source.start.line\n }\n let end = this.source.end\n ? {\n column: this.source.end.column + 1,\n line: this.source.end.line\n }\n : {\n column: start.column + 1,\n line: start.line\n }\n\n if (opts.word) {\n let stringRepresentation = this.toString()\n let index = stringRepresentation.indexOf(opts.word)\n if (index !== -1) {\n start = this.positionInside(index, stringRepresentation)\n end = this.positionInside(index + opts.word.length, stringRepresentation)\n }\n } else {\n if (opts.start) {\n start = {\n column: opts.start.column,\n line: opts.start.line\n }\n } else if (opts.index) {\n start = this.positionInside(opts.index)\n }\n\n if (opts.end) {\n end = {\n column: opts.end.column,\n line: opts.end.line\n }\n } else if (opts.endIndex) {\n end = this.positionInside(opts.endIndex)\n } else if (opts.index) {\n end = this.positionInside(opts.index + 1)\n }\n }\n\n if (\n end.line < start.line ||\n (end.line === start.line && end.column <= start.column)\n ) {\n end = { column: start.column + 1, line: start.line }\n }\n\n return { end, start }\n }\n\n raw(prop, defaultType) {\n let str = new Stringifier()\n return str.raw(this, prop, defaultType)\n }\n\n remove() {\n if (this.parent) {\n this.parent.removeChild(this)\n }\n this.parent = undefined\n return this\n }\n\n replaceWith(...nodes) {\n if (this.parent) {\n let bookmark = this\n let foundSelf = false\n for (let node of nodes) {\n if (node === this) {\n foundSelf = true\n } else if (foundSelf) {\n this.parent.insertAfter(bookmark, node)\n bookmark = node\n } else {\n this.parent.insertBefore(bookmark, node)\n }\n }\n\n if (!foundSelf) {\n this.remove()\n }\n }\n\n return this\n }\n\n root() {\n let result = this\n while (result.parent && result.parent.type !== 'document') {\n result = result.parent\n }\n return result\n }\n\n toJSON(_, inputs) {\n let fixed = {}\n let emitInputs = inputs == null\n inputs = inputs || new Map()\n let inputsNextIndex = 0\n\n for (let name in this) {\n if (!Object.prototype.hasOwnProperty.call(this, name)) {\n /* c8 ignore next 2 */\n continue\n }\n if (name === 'parent' || name === 'proxyCache') continue\n let value = this[name]\n\n if (Array.isArray(value)) {\n fixed[name] = value.map(i => {\n if (typeof i === 'object' && i.toJSON) {\n return i.toJSON(null, inputs)\n } else {\n return i\n }\n })\n } else if (typeof value === 'object' && value.toJSON) {\n fixed[name] = value.toJSON(null, inputs)\n } else if (name === 'source') {\n let inputId = inputs.get(value.input)\n if (inputId == null) {\n inputId = inputsNextIndex\n inputs.set(value.input, inputsNextIndex)\n inputsNextIndex++\n }\n fixed[name] = {\n end: value.end,\n inputId,\n start: value.start\n }\n } else {\n fixed[name] = value\n }\n }\n\n if (emitInputs) {\n fixed.inputs = [...inputs.keys()].map(input => input.toJSON())\n }\n\n return fixed\n }\n\n toProxy() {\n if (!this.proxyCache) {\n this.proxyCache = new Proxy(this, this.getProxyProcessor())\n }\n return this.proxyCache\n }\n\n toString(stringifier = stringify) {\n if (stringifier.stringify) stringifier = stringifier.stringify\n let result = ''\n stringifier(this, i => {\n result += i\n })\n return result\n }\n\n warn(result, text, opts) {\n let data = { node: this }\n for (let i in opts) data[i] = opts[i]\n return result.warn(text, data)\n }\n\n get proxyOf() {\n return this\n }\n}\n\nmodule.exports = Node\nNode.default = Node\n", "'use strict'\n\nlet Node = require('./node')\n\nclass Declaration extends Node {\n constructor(defaults) {\n if (\n defaults &&\n typeof defaults.value !== 'undefined' &&\n typeof defaults.value !== 'string'\n ) {\n defaults = { ...defaults, value: String(defaults.value) }\n }\n super(defaults)\n this.type = 'decl'\n }\n\n get variable() {\n return this.prop.startsWith('--') || this.prop[0] === '$'\n }\n}\n\nmodule.exports = Declaration\nDeclaration.default = Declaration\n", "let urlAlphabet =\n 'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict'\nlet customAlphabet = (alphabet, defaultSize = 21) => {\n return (size = defaultSize) => {\n let id = ''\n let i = size\n while (i--) {\n id += alphabet[(Math.random() * alphabet.length) | 0]\n }\n return id\n }\n}\nlet nanoid = (size = 21) => {\n let id = ''\n let i = size\n while (i--) {\n id += urlAlphabet[(Math.random() * 64) | 0]\n }\n return id\n}\nmodule.exports = { nanoid, customAlphabet }\n", "'use strict'\n\nlet { SourceMapConsumer, SourceMapGenerator } = require('source-map-js')\nlet { existsSync, readFileSync } = require('fs')\nlet { dirname, join } = require('path')\n\nfunction fromBase64(str) {\n if (Buffer) {\n return Buffer.from(str, 'base64').toString()\n } else {\n /* c8 ignore next 2 */\n return window.atob(str)\n }\n}\n\nclass PreviousMap {\n constructor(css, opts) {\n if (opts.map === false) return\n this.loadAnnotation(css)\n this.inline = this.startWith(this.annotation, 'data:')\n\n let prev = opts.map ? opts.map.prev : undefined\n let text = this.loadMap(opts.from, prev)\n if (!this.mapFile && opts.from) {\n this.mapFile = opts.from\n }\n if (this.mapFile) this.root = dirname(this.mapFile)\n if (text) this.text = text\n }\n\n consumer() {\n if (!this.consumerCache) {\n this.consumerCache = new SourceMapConsumer(this.text)\n }\n return this.consumerCache\n }\n\n decodeInline(text) {\n let baseCharsetUri = /^data:application\\/json;charset=utf-?8;base64,/\n let baseUri = /^data:application\\/json;base64,/\n let charsetUri = /^data:application\\/json;charset=utf-?8,/\n let uri = /^data:application\\/json,/\n\n if (charsetUri.test(text) || uri.test(text)) {\n return decodeURIComponent(text.substr(RegExp.lastMatch.length))\n }\n\n if (baseCharsetUri.test(text) || baseUri.test(text)) {\n return fromBase64(text.substr(RegExp.lastMatch.length))\n }\n\n let encoding = text.match(/data:application\\/json;([^,]+),/)[1]\n throw new Error('Unsupported source map encoding ' + encoding)\n }\n\n getAnnotationURL(sourceMapString) {\n return sourceMapString.replace(/^\\/\\*\\s*# sourceMappingURL=/, '').trim()\n }\n\n isMap(map) {\n if (typeof map !== 'object') return false\n return (\n typeof map.mappings === 'string' ||\n typeof map._mappings === 'string' ||\n Array.isArray(map.sections)\n )\n }\n\n loadAnnotation(css) {\n let comments = css.match(/\\/\\*\\s*# sourceMappingURL=/gm)\n if (!comments) return\n\n // sourceMappingURLs from comments, strings, etc.\n let start = css.lastIndexOf(comments.pop())\n let end = css.indexOf('*/', start)\n\n if (start > -1 && end > -1) {\n // Locate the last sourceMappingURL to avoid pickin\n this.annotation = this.getAnnotationURL(css.substring(start, end))\n }\n }\n\n loadFile(path) {\n this.root = dirname(path)\n if (existsSync(path)) {\n this.mapFile = path\n return readFileSync(path, 'utf-8').toString().trim()\n }\n }\n\n loadMap(file, prev) {\n if (prev === false) return false\n\n if (prev) {\n if (typeof prev === 'string') {\n return prev\n } else if (typeof prev === 'function') {\n let prevPath = prev(file)\n if (prevPath) {\n let map = this.loadFile(prevPath)\n if (!map) {\n throw new Error(\n 'Unable to load previous source map: ' + prevPath.toString()\n )\n }\n return map\n }\n } else if (prev instanceof SourceMapConsumer) {\n return SourceMapGenerator.fromSourceMap(prev).toString()\n } else if (prev instanceof SourceMapGenerator) {\n return prev.toString()\n } else if (this.isMap(prev)) {\n return JSON.stringify(prev)\n } else {\n throw new Error(\n 'Unsupported previous source map format: ' + prev.toString()\n )\n }\n } else if (this.inline) {\n return this.decodeInline(this.annotation)\n } else if (this.annotation) {\n let map = this.annotation\n if (file) map = join(dirname(file), map)\n return this.loadFile(map)\n }\n }\n\n startWith(string, start) {\n if (!string) return false\n return string.substr(0, start.length) === start\n }\n\n withContent() {\n return !!(\n this.consumer().sourcesContent &&\n this.consumer().sourcesContent.length > 0\n )\n }\n}\n\nmodule.exports = PreviousMap\nPreviousMap.default = PreviousMap\n", "'use strict'\n\nlet { SourceMapConsumer, SourceMapGenerator } = require('source-map-js')\nlet { fileURLToPath, pathToFileURL } = require('url')\nlet { isAbsolute, resolve } = require('path')\nlet { nanoid } = require('nanoid/non-secure')\n\nlet terminalHighlight = require('./terminal-highlight')\nlet CssSyntaxError = require('./css-syntax-error')\nlet PreviousMap = require('./previous-map')\n\nlet fromOffsetCache = Symbol('fromOffsetCache')\n\nlet sourceMapAvailable = Boolean(SourceMapConsumer && SourceMapGenerator)\nlet pathAvailable = Boolean(resolve && isAbsolute)\n\nclass Input {\n constructor(css, opts = {}) {\n if (\n css === null ||\n typeof css === 'undefined' ||\n (typeof css === 'object' && !css.toString)\n ) {\n throw new Error(`PostCSS received ${css} instead of CSS string`)\n }\n\n this.css = css.toString()\n\n if (this.css[0] === '\\uFEFF' || this.css[0] === '\\uFFFE') {\n this.hasBOM = true\n this.css = this.css.slice(1)\n } else {\n this.hasBOM = false\n }\n\n if (opts.from) {\n if (\n !pathAvailable ||\n /^\\w+:\\/\\//.test(opts.from) ||\n isAbsolute(opts.from)\n ) {\n this.file = opts.from\n } else {\n this.file = resolve(opts.from)\n }\n }\n\n if (pathAvailable && sourceMapAvailable) {\n let map = new PreviousMap(this.css, opts)\n if (map.text) {\n this.map = map\n let file = map.consumer().file\n if (!this.file && file) this.file = this.mapResolve(file)\n }\n }\n\n if (!this.file) {\n this.id = ''\n }\n if (this.map) this.map.file = this.from\n }\n\n error(message, line, column, opts = {}) {\n let result, endLine, endColumn\n\n if (line && typeof line === 'object') {\n let start = line\n let end = column\n if (typeof start.offset === 'number') {\n let pos = this.fromOffset(start.offset)\n line = pos.line\n column = pos.col\n } else {\n line = start.line\n column = start.column\n }\n if (typeof end.offset === 'number') {\n let pos = this.fromOffset(end.offset)\n endLine = pos.line\n endColumn = pos.col\n } else {\n endLine = end.line\n endColumn = end.column\n }\n } else if (!column) {\n let pos = this.fromOffset(line)\n line = pos.line\n column = pos.col\n }\n\n let origin = this.origin(line, column, endLine, endColumn)\n if (origin) {\n result = new CssSyntaxError(\n message,\n origin.endLine === undefined\n ? origin.line\n : { column: origin.column, line: origin.line },\n origin.endLine === undefined\n ? origin.column\n : { column: origin.endColumn, line: origin.endLine },\n origin.source,\n origin.file,\n opts.plugin\n )\n } else {\n result = new CssSyntaxError(\n message,\n endLine === undefined ? line : { column, line },\n endLine === undefined ? column : { column: endColumn, line: endLine },\n this.css,\n this.file,\n opts.plugin\n )\n }\n\n result.input = { column, endColumn, endLine, line, source: this.css }\n if (this.file) {\n if (pathToFileURL) {\n result.input.url = pathToFileURL(this.file).toString()\n }\n result.input.file = this.file\n }\n\n return result\n }\n\n fromOffset(offset) {\n let lastLine, lineToIndex\n if (!this[fromOffsetCache]) {\n let lines = this.css.split('\\n')\n lineToIndex = new Array(lines.length)\n let prevIndex = 0\n\n for (let i = 0, l = lines.length; i < l; i++) {\n lineToIndex[i] = prevIndex\n prevIndex += lines[i].length + 1\n }\n\n this[fromOffsetCache] = lineToIndex\n } else {\n lineToIndex = this[fromOffsetCache]\n }\n lastLine = lineToIndex[lineToIndex.length - 1]\n\n let min = 0\n if (offset >= lastLine) {\n min = lineToIndex.length - 1\n } else {\n let max = lineToIndex.length - 2\n let mid\n while (min < max) {\n mid = min + ((max - min) >> 1)\n if (offset < lineToIndex[mid]) {\n max = mid - 1\n } else if (offset >= lineToIndex[mid + 1]) {\n min = mid + 1\n } else {\n min = mid\n break\n }\n }\n }\n return {\n col: offset - lineToIndex[min] + 1,\n line: min + 1\n }\n }\n\n mapResolve(file) {\n if (/^\\w+:\\/\\//.test(file)) {\n return file\n }\n return resolve(this.map.consumer().sourceRoot || this.map.root || '.', file)\n }\n\n origin(line, column, endLine, endColumn) {\n if (!this.map) return false\n let consumer = this.map.consumer()\n\n let from = consumer.originalPositionFor({ column, line })\n if (!from.source) return false\n\n let to\n if (typeof endLine === 'number') {\n to = consumer.originalPositionFor({ column: endColumn, line: endLine })\n }\n\n let fromUrl\n\n if (isAbsolute(from.source)) {\n fromUrl = pathToFileURL(from.source)\n } else {\n fromUrl = new URL(\n from.source,\n this.map.consumer().sourceRoot || pathToFileURL(this.map.mapFile)\n )\n }\n\n let result = {\n column: from.column,\n endColumn: to && to.column,\n endLine: to && to.line,\n line: from.line,\n url: fromUrl.toString()\n }\n\n if (fromUrl.protocol === 'file:') {\n if (fileURLToPath) {\n result.file = fileURLToPath(fromUrl)\n } else {\n /* c8 ignore next 2 */\n throw new Error(`file: protocol is not available in this PostCSS build`)\n }\n }\n\n let source = consumer.sourceContentFor(from.source)\n if (source) result.source = source\n\n return result\n }\n\n toJSON() {\n let json = {}\n for (let name of ['hasBOM', 'css', 'file', 'id']) {\n if (this[name] != null) {\n json[name] = this[name]\n }\n }\n if (this.map) {\n json.map = { ...this.map }\n if (json.map.consumerCache) {\n json.map.consumerCache = undefined\n }\n }\n return json\n }\n\n get from() {\n return this.file || this.id\n }\n}\n\nmodule.exports = Input\nInput.default = Input\n\nif (terminalHighlight && terminalHighlight.registerInput) {\n terminalHighlight.registerInput(Input)\n}\n", "'use strict'\n\nlet { SourceMapConsumer, SourceMapGenerator } = require('source-map-js')\nlet { dirname, relative, resolve, sep } = require('path')\nlet { pathToFileURL } = require('url')\n\nlet Input = require('./input')\n\nlet sourceMapAvailable = Boolean(SourceMapConsumer && SourceMapGenerator)\nlet pathAvailable = Boolean(dirname && resolve && relative && sep)\n\nclass MapGenerator {\n constructor(stringify, root, opts, cssString) {\n this.stringify = stringify\n this.mapOpts = opts.map || {}\n this.root = root\n this.opts = opts\n this.css = cssString\n this.originalCSS = cssString\n this.usesFileUrls = !this.mapOpts.from && this.mapOpts.absolute\n\n this.memoizedFileURLs = new Map()\n this.memoizedPaths = new Map()\n this.memoizedURLs = new Map()\n }\n\n addAnnotation() {\n let content\n\n if (this.isInline()) {\n content =\n 'data:application/json;base64,' + this.toBase64(this.map.toString())\n } else if (typeof this.mapOpts.annotation === 'string') {\n content = this.mapOpts.annotation\n } else if (typeof this.mapOpts.annotation === 'function') {\n content = this.mapOpts.annotation(this.opts.to, this.root)\n } else {\n content = this.outputFile() + '.map'\n }\n let eol = '\\n'\n if (this.css.includes('\\r\\n')) eol = '\\r\\n'\n\n this.css += eol + '/*# sourceMappingURL=' + content + ' */'\n }\n\n applyPrevMaps() {\n for (let prev of this.previous()) {\n let from = this.toUrl(this.path(prev.file))\n let root = prev.root || dirname(prev.file)\n let map\n\n if (this.mapOpts.sourcesContent === false) {\n map = new SourceMapConsumer(prev.text)\n if (map.sourcesContent) {\n map.sourcesContent = null\n }\n } else {\n map = prev.consumer()\n }\n\n this.map.applySourceMap(map, from, this.toUrl(this.path(root)))\n }\n }\n\n clearAnnotation() {\n if (this.mapOpts.annotation === false) return\n\n if (this.root) {\n let node\n for (let i = this.root.nodes.length - 1; i >= 0; i--) {\n node = this.root.nodes[i]\n if (node.type !== 'comment') continue\n if (node.text.indexOf('# sourceMappingURL=') === 0) {\n this.root.removeChild(i)\n }\n }\n } else if (this.css) {\n this.css = this.css.replace(/\\n*?\\/\\*#[\\S\\s]*?\\*\\/$/gm, '')\n }\n }\n\n generate() {\n this.clearAnnotation()\n if (pathAvailable && sourceMapAvailable && this.isMap()) {\n return this.generateMap()\n } else {\n let result = ''\n this.stringify(this.root, i => {\n result += i\n })\n return [result]\n }\n }\n\n generateMap() {\n if (this.root) {\n this.generateString()\n } else if (this.previous().length === 1) {\n let prev = this.previous()[0].consumer()\n prev.file = this.outputFile()\n this.map = SourceMapGenerator.fromSourceMap(prev)\n } else {\n this.map = new SourceMapGenerator({ file: this.outputFile() })\n this.map.addMapping({\n generated: { column: 0, line: 1 },\n original: { column: 0, line: 1 },\n source: this.opts.from\n ? this.toUrl(this.path(this.opts.from))\n : ''\n })\n }\n\n if (this.isSourcesContent()) this.setSourcesContent()\n if (this.root && this.previous().length > 0) this.applyPrevMaps()\n if (this.isAnnotation()) this.addAnnotation()\n\n if (this.isInline()) {\n return [this.css]\n } else {\n return [this.css, this.map]\n }\n }\n\n generateString() {\n this.css = ''\n this.map = new SourceMapGenerator({ file: this.outputFile() })\n\n let line = 1\n let column = 1\n\n let noSource = ''\n let mapping = {\n generated: { column: 0, line: 0 },\n original: { column: 0, line: 0 },\n source: ''\n }\n\n let lines, last\n this.stringify(this.root, (str, node, type) => {\n this.css += str\n\n if (node && type !== 'end') {\n mapping.generated.line = line\n mapping.generated.column = column - 1\n if (node.source && node.source.start) {\n mapping.source = this.sourcePath(node)\n mapping.original.line = node.source.start.line\n mapping.original.column = node.source.start.column - 1\n this.map.addMapping(mapping)\n } else {\n mapping.source = noSource\n mapping.original.line = 1\n mapping.original.column = 0\n this.map.addMapping(mapping)\n }\n }\n\n lines = str.match(/\\n/g)\n if (lines) {\n line += lines.length\n last = str.lastIndexOf('\\n')\n column = str.length - last\n } else {\n column += str.length\n }\n\n if (node && type !== 'start') {\n let p = node.parent || { raws: {} }\n let childless =\n node.type === 'decl' || (node.type === 'atrule' && !node.nodes)\n if (!childless || node !== p.last || p.raws.semicolon) {\n if (node.source && node.source.end) {\n mapping.source = this.sourcePath(node)\n mapping.original.line = node.source.end.line\n mapping.original.column = node.source.end.column - 1\n mapping.generated.line = line\n mapping.generated.column = column - 2\n this.map.addMapping(mapping)\n } else {\n mapping.source = noSource\n mapping.original.line = 1\n mapping.original.column = 0\n mapping.generated.line = line\n mapping.generated.column = column - 1\n this.map.addMapping(mapping)\n }\n }\n }\n })\n }\n\n isAnnotation() {\n if (this.isInline()) {\n return true\n }\n if (typeof this.mapOpts.annotation !== 'undefined') {\n return this.mapOpts.annotation\n }\n if (this.previous().length) {\n return this.previous().some(i => i.annotation)\n }\n return true\n }\n\n isInline() {\n if (typeof this.mapOpts.inline !== 'undefined') {\n return this.mapOpts.inline\n }\n\n let annotation = this.mapOpts.annotation\n if (typeof annotation !== 'undefined' && annotation !== true) {\n return false\n }\n\n if (this.previous().length) {\n return this.previous().some(i => i.inline)\n }\n return true\n }\n\n isMap() {\n if (typeof this.opts.map !== 'undefined') {\n return !!this.opts.map\n }\n return this.previous().length > 0\n }\n\n isSourcesContent() {\n if (typeof this.mapOpts.sourcesContent !== 'undefined') {\n return this.mapOpts.sourcesContent\n }\n if (this.previous().length) {\n return this.previous().some(i => i.withContent())\n }\n return true\n }\n\n outputFile() {\n if (this.opts.to) {\n return this.path(this.opts.to)\n } else if (this.opts.from) {\n return this.path(this.opts.from)\n } else {\n return 'to.css'\n }\n }\n\n path(file) {\n if (this.mapOpts.absolute) return file\n if (file.charCodeAt(0) === 60 /* `<` */) return file\n if (/^\\w+:\\/\\//.test(file)) return file\n let cached = this.memoizedPaths.get(file)\n if (cached) return cached\n\n let from = this.opts.to ? dirname(this.opts.to) : '.'\n\n if (typeof this.mapOpts.annotation === 'string') {\n from = dirname(resolve(from, this.mapOpts.annotation))\n }\n\n let path = relative(from, file)\n this.memoizedPaths.set(file, path)\n\n return path\n }\n\n previous() {\n if (!this.previousMaps) {\n this.previousMaps = []\n if (this.root) {\n this.root.walk(node => {\n if (node.source && node.source.input.map) {\n let map = node.source.input.map\n if (!this.previousMaps.includes(map)) {\n this.previousMaps.push(map)\n }\n }\n })\n } else {\n let input = new Input(this.originalCSS, this.opts)\n if (input.map) this.previousMaps.push(input.map)\n }\n }\n\n return this.previousMaps\n }\n\n setSourcesContent() {\n let already = {}\n if (this.root) {\n this.root.walk(node => {\n if (node.source) {\n let from = node.source.input.from\n if (from && !already[from]) {\n already[from] = true\n let fromUrl = this.usesFileUrls\n ? this.toFileUrl(from)\n : this.toUrl(this.path(from))\n this.map.setSourceContent(fromUrl, node.source.input.css)\n }\n }\n })\n } else if (this.css) {\n let from = this.opts.from\n ? this.toUrl(this.path(this.opts.from))\n : ''\n this.map.setSourceContent(from, this.css)\n }\n }\n\n sourcePath(node) {\n if (this.mapOpts.from) {\n return this.toUrl(this.mapOpts.from)\n } else if (this.usesFileUrls) {\n return this.toFileUrl(node.source.input.from)\n } else {\n return this.toUrl(this.path(node.source.input.from))\n }\n }\n\n toBase64(str) {\n if (Buffer) {\n return Buffer.from(str).toString('base64')\n } else {\n return window.btoa(unescape(encodeURIComponent(str)))\n }\n }\n\n toFileUrl(path) {\n let cached = this.memoizedFileURLs.get(path)\n if (cached) return cached\n\n if (pathToFileURL) {\n let fileURL = pathToFileURL(path).toString()\n this.memoizedFileURLs.set(path, fileURL)\n\n return fileURL\n } else {\n throw new Error(\n '`map.absolute` option is not available in this PostCSS build'\n )\n }\n }\n\n toUrl(path) {\n let cached = this.memoizedURLs.get(path)\n if (cached) return cached\n\n if (sep === '\\\\') {\n path = path.replace(/\\\\/g, '/')\n }\n\n let url = encodeURI(path).replace(/[#?]/g, encodeURIComponent)\n this.memoizedURLs.set(path, url)\n\n return url\n }\n}\n\nmodule.exports = MapGenerator\n", "'use strict'\n\nlet Node = require('./node')\n\nclass Comment extends Node {\n constructor(defaults) {\n super(defaults)\n this.type = 'comment'\n }\n}\n\nmodule.exports = Comment\nComment.default = Comment\n", "'use strict'\n\nlet { isClean, my } = require('./symbols')\nlet Declaration = require('./declaration')\nlet Comment = require('./comment')\nlet Node = require('./node')\n\nlet parse, Rule, AtRule, Root\n\nfunction cleanSource(nodes) {\n return nodes.map(i => {\n if (i.nodes) i.nodes = cleanSource(i.nodes)\n delete i.source\n return i\n })\n}\n\nfunction markDirtyUp(node) {\n node[isClean] = false\n if (node.proxyOf.nodes) {\n for (let i of node.proxyOf.nodes) {\n markDirtyUp(i)\n }\n }\n}\n\nclass Container extends Node {\n append(...children) {\n for (let child of children) {\n let nodes = this.normalize(child, this.last)\n for (let node of nodes) this.proxyOf.nodes.push(node)\n }\n\n this.markDirty()\n\n return this\n }\n\n cleanRaws(keepBetween) {\n super.cleanRaws(keepBetween)\n if (this.nodes) {\n for (let node of this.nodes) node.cleanRaws(keepBetween)\n }\n }\n\n each(callback) {\n if (!this.proxyOf.nodes) return undefined\n let iterator = this.getIterator()\n\n let index, result\n while (this.indexes[iterator] < this.proxyOf.nodes.length) {\n index = this.indexes[iterator]\n result = callback(this.proxyOf.nodes[index], index)\n if (result === false) break\n\n this.indexes[iterator] += 1\n }\n\n delete this.indexes[iterator]\n return result\n }\n\n every(condition) {\n return this.nodes.every(condition)\n }\n\n getIterator() {\n if (!this.lastEach) this.lastEach = 0\n if (!this.indexes) this.indexes = {}\n\n this.lastEach += 1\n let iterator = this.lastEach\n this.indexes[iterator] = 0\n\n return iterator\n }\n\n getProxyProcessor() {\n return {\n get(node, prop) {\n if (prop === 'proxyOf') {\n return node\n } else if (!node[prop]) {\n return node[prop]\n } else if (\n prop === 'each' ||\n (typeof prop === 'string' && prop.startsWith('walk'))\n ) {\n return (...args) => {\n return node[prop](\n ...args.map(i => {\n if (typeof i === 'function') {\n return (child, index) => i(child.toProxy(), index)\n } else {\n return i\n }\n })\n )\n }\n } else if (prop === 'every' || prop === 'some') {\n return cb => {\n return node[prop]((child, ...other) =>\n cb(child.toProxy(), ...other)\n )\n }\n } else if (prop === 'root') {\n return () => node.root().toProxy()\n } else if (prop === 'nodes') {\n return node.nodes.map(i => i.toProxy())\n } else if (prop === 'first' || prop === 'last') {\n return node[prop].toProxy()\n } else {\n return node[prop]\n }\n },\n\n set(node, prop, value) {\n if (node[prop] === value) return true\n node[prop] = value\n if (prop === 'name' || prop === 'params' || prop === 'selector') {\n node.markDirty()\n }\n return true\n }\n }\n }\n\n index(child) {\n if (typeof child === 'number') return child\n if (child.proxyOf) child = child.proxyOf\n return this.proxyOf.nodes.indexOf(child)\n }\n\n insertAfter(exist, add) {\n let existIndex = this.index(exist)\n let nodes = this.normalize(add, this.proxyOf.nodes[existIndex]).reverse()\n existIndex = this.index(exist)\n for (let node of nodes) this.proxyOf.nodes.splice(existIndex + 1, 0, node)\n\n let index\n for (let id in this.indexes) {\n index = this.indexes[id]\n if (existIndex < index) {\n this.indexes[id] = index + nodes.length\n }\n }\n\n this.markDirty()\n\n return this\n }\n\n insertBefore(exist, add) {\n let existIndex = this.index(exist)\n let type = existIndex === 0 ? 'prepend' : false\n let nodes = this.normalize(add, this.proxyOf.nodes[existIndex], type).reverse()\n existIndex = this.index(exist)\n for (let node of nodes) this.proxyOf.nodes.splice(existIndex, 0, node)\n\n let index\n for (let id in this.indexes) {\n index = this.indexes[id]\n if (existIndex <= index) {\n this.indexes[id] = index + nodes.length\n }\n }\n\n this.markDirty()\n\n return this\n }\n\n normalize(nodes, sample) {\n if (typeof nodes === 'string') {\n nodes = cleanSource(parse(nodes).nodes)\n } else if (typeof nodes === 'undefined') {\n nodes = []\n } else if (Array.isArray(nodes)) {\n nodes = nodes.slice(0)\n for (let i of nodes) {\n if (i.parent) i.parent.removeChild(i, 'ignore')\n }\n } else if (nodes.type === 'root' && this.type !== 'document') {\n nodes = nodes.nodes.slice(0)\n for (let i of nodes) {\n if (i.parent) i.parent.removeChild(i, 'ignore')\n }\n } else if (nodes.type) {\n nodes = [nodes]\n } else if (nodes.prop) {\n if (typeof nodes.value === 'undefined') {\n throw new Error('Value field is missed in node creation')\n } else if (typeof nodes.value !== 'string') {\n nodes.value = String(nodes.value)\n }\n nodes = [new Declaration(nodes)]\n } else if (nodes.selector) {\n nodes = [new Rule(nodes)]\n } else if (nodes.name) {\n nodes = [new AtRule(nodes)]\n } else if (nodes.text) {\n nodes = [new Comment(nodes)]\n } else {\n throw new Error('Unknown node type in node creation')\n }\n\n let processed = nodes.map(i => {\n /* c8 ignore next */\n if (!i[my]) Container.rebuild(i)\n i = i.proxyOf\n if (i.parent) i.parent.removeChild(i)\n if (i[isClean]) markDirtyUp(i)\n if (typeof i.raws.before === 'undefined') {\n if (sample && typeof sample.raws.before !== 'undefined') {\n i.raws.before = sample.raws.before.replace(/\\S/g, '')\n }\n }\n i.parent = this.proxyOf\n return i\n })\n\n return processed\n }\n\n prepend(...children) {\n children = children.reverse()\n for (let child of children) {\n let nodes = this.normalize(child, this.first, 'prepend').reverse()\n for (let node of nodes) this.proxyOf.nodes.unshift(node)\n for (let id in this.indexes) {\n this.indexes[id] = this.indexes[id] + nodes.length\n }\n }\n\n this.markDirty()\n\n return this\n }\n\n push(child) {\n child.parent = this\n this.proxyOf.nodes.push(child)\n return this\n }\n\n removeAll() {\n for (let node of this.proxyOf.nodes) node.parent = undefined\n this.proxyOf.nodes = []\n\n this.markDirty()\n\n return this\n }\n\n removeChild(child) {\n child = this.index(child)\n this.proxyOf.nodes[child].parent = undefined\n this.proxyOf.nodes.splice(child, 1)\n\n let index\n for (let id in this.indexes) {\n index = this.indexes[id]\n if (index >= child) {\n this.indexes[id] = index - 1\n }\n }\n\n this.markDirty()\n\n return this\n }\n\n replaceValues(pattern, opts, callback) {\n if (!callback) {\n callback = opts\n opts = {}\n }\n\n this.walkDecls(decl => {\n if (opts.props && !opts.props.includes(decl.prop)) return\n if (opts.fast && !decl.value.includes(opts.fast)) return\n\n decl.value = decl.value.replace(pattern, callback)\n })\n\n this.markDirty()\n\n return this\n }\n\n some(condition) {\n return this.nodes.some(condition)\n }\n\n walk(callback) {\n return this.each((child, i) => {\n let result\n try {\n result = callback(child, i)\n } catch (e) {\n throw child.addToError(e)\n }\n if (result !== false && child.walk) {\n result = child.walk(callback)\n }\n\n return result\n })\n }\n\n walkAtRules(name, callback) {\n if (!callback) {\n callback = name\n return this.walk((child, i) => {\n if (child.type === 'atrule') {\n return callback(child, i)\n }\n })\n }\n if (name instanceof RegExp) {\n return this.walk((child, i) => {\n if (child.type === 'atrule' && name.test(child.name)) {\n return callback(child, i)\n }\n })\n }\n return this.walk((child, i) => {\n if (child.type === 'atrule' && child.name === name) {\n return callback(child, i)\n }\n })\n }\n\n walkComments(callback) {\n return this.walk((child, i) => {\n if (child.type === 'comment') {\n return callback(child, i)\n }\n })\n }\n\n walkDecls(prop, callback) {\n if (!callback) {\n callback = prop\n return this.walk((child, i) => {\n if (child.type === 'decl') {\n return callback(child, i)\n }\n })\n }\n if (prop instanceof RegExp) {\n return this.walk((child, i) => {\n if (child.type === 'decl' && prop.test(child.prop)) {\n return callback(child, i)\n }\n })\n }\n return this.walk((child, i) => {\n if (child.type === 'decl' && child.prop === prop) {\n return callback(child, i)\n }\n })\n }\n\n walkRules(selector, callback) {\n if (!callback) {\n callback = selector\n\n return this.walk((child, i) => {\n if (child.type === 'rule') {\n return callback(child, i)\n }\n })\n }\n if (selector instanceof RegExp) {\n return this.walk((child, i) => {\n if (child.type === 'rule' && selector.test(child.selector)) {\n return callback(child, i)\n }\n })\n }\n return this.walk((child, i) => {\n if (child.type === 'rule' && child.selector === selector) {\n return callback(child, i)\n }\n })\n }\n\n get first() {\n if (!this.proxyOf.nodes) return undefined\n return this.proxyOf.nodes[0]\n }\n\n get last() {\n if (!this.proxyOf.nodes) return undefined\n return this.proxyOf.nodes[this.proxyOf.nodes.length - 1]\n }\n}\n\nContainer.registerParse = dependant => {\n parse = dependant\n}\n\nContainer.registerRule = dependant => {\n Rule = dependant\n}\n\nContainer.registerAtRule = dependant => {\n AtRule = dependant\n}\n\nContainer.registerRoot = dependant => {\n Root = dependant\n}\n\nmodule.exports = Container\nContainer.default = Container\n\n/* c8 ignore start */\nContainer.rebuild = node => {\n if (node.type === 'atrule') {\n Object.setPrototypeOf(node, AtRule.prototype)\n } else if (node.type === 'rule') {\n Object.setPrototypeOf(node, Rule.prototype)\n } else if (node.type === 'decl') {\n Object.setPrototypeOf(node, Declaration.prototype)\n } else if (node.type === 'comment') {\n Object.setPrototypeOf(node, Comment.prototype)\n } else if (node.type === 'root') {\n Object.setPrototypeOf(node, Root.prototype)\n }\n\n node[my] = true\n\n if (node.nodes) {\n node.nodes.forEach(child => {\n Container.rebuild(child)\n })\n }\n}\n/* c8 ignore stop */\n", "'use strict'\n\nlet Container = require('./container')\n\nlet LazyResult, Processor\n\nclass Document extends Container {\n constructor(defaults) {\n // type needs to be passed to super, otherwise child roots won't be normalized correctly\n super({ type: 'document', ...defaults })\n\n if (!this.nodes) {\n this.nodes = []\n }\n }\n\n toResult(opts = {}) {\n let lazy = new LazyResult(new Processor(), this, opts)\n\n return lazy.stringify()\n }\n}\n\nDocument.registerLazyResult = dependant => {\n LazyResult = dependant\n}\n\nDocument.registerProcessor = dependant => {\n Processor = dependant\n}\n\nmodule.exports = Document\nDocument.default = Document\n", "/* eslint-disable no-console */\n'use strict'\n\nlet printed = {}\n\nmodule.exports = function warnOnce(message) {\n if (printed[message]) return\n printed[message] = true\n\n if (typeof console !== 'undefined' && console.warn) {\n console.warn(message)\n }\n}\n", "'use strict'\n\nclass Warning {\n constructor(text, opts = {}) {\n this.type = 'warning'\n this.text = text\n\n if (opts.node && opts.node.source) {\n let range = opts.node.rangeBy(opts)\n this.line = range.start.line\n this.column = range.start.column\n this.endLine = range.end.line\n this.endColumn = range.end.column\n }\n\n for (let opt in opts) this[opt] = opts[opt]\n }\n\n toString() {\n if (this.node) {\n return this.node.error(this.text, {\n index: this.index,\n plugin: this.plugin,\n word: this.word\n }).message\n }\n\n if (this.plugin) {\n return this.plugin + ': ' + this.text\n }\n\n return this.text\n }\n}\n\nmodule.exports = Warning\nWarning.default = Warning\n", "'use strict'\n\nlet Warning = require('./warning')\n\nclass Result {\n constructor(processor, root, opts) {\n this.processor = processor\n this.messages = []\n this.root = root\n this.opts = opts\n this.css = undefined\n this.map = undefined\n }\n\n toString() {\n return this.css\n }\n\n warn(text, opts = {}) {\n if (!opts.plugin) {\n if (this.lastPlugin && this.lastPlugin.postcssPlugin) {\n opts.plugin = this.lastPlugin.postcssPlugin\n }\n }\n\n let warning = new Warning(text, opts)\n this.messages.push(warning)\n\n return warning\n }\n\n warnings() {\n return this.messages.filter(i => i.type === 'warning')\n }\n\n get content() {\n return this.css\n }\n}\n\nmodule.exports = Result\nResult.default = Result\n", "'use strict'\n\nconst SINGLE_QUOTE = \"'\".charCodeAt(0)\nconst DOUBLE_QUOTE = '\"'.charCodeAt(0)\nconst BACKSLASH = '\\\\'.charCodeAt(0)\nconst SLASH = '/'.charCodeAt(0)\nconst NEWLINE = '\\n'.charCodeAt(0)\nconst SPACE = ' '.charCodeAt(0)\nconst FEED = '\\f'.charCodeAt(0)\nconst TAB = '\\t'.charCodeAt(0)\nconst CR = '\\r'.charCodeAt(0)\nconst OPEN_SQUARE = '['.charCodeAt(0)\nconst CLOSE_SQUARE = ']'.charCodeAt(0)\nconst OPEN_PARENTHESES = '('.charCodeAt(0)\nconst CLOSE_PARENTHESES = ')'.charCodeAt(0)\nconst OPEN_CURLY = '{'.charCodeAt(0)\nconst CLOSE_CURLY = '}'.charCodeAt(0)\nconst SEMICOLON = ';'.charCodeAt(0)\nconst ASTERISK = '*'.charCodeAt(0)\nconst COLON = ':'.charCodeAt(0)\nconst AT = '@'.charCodeAt(0)\n\nconst RE_AT_END = /[\\t\\n\\f\\r \"#'()/;[\\\\\\]{}]/g\nconst RE_WORD_END = /[\\t\\n\\f\\r !\"#'():;@[\\\\\\]{}]|\\/(?=\\*)/g\nconst RE_BAD_BRACKET = /.[\\r\\n\"'(/\\\\]/\nconst RE_HEX_ESCAPE = /[\\da-f]/i\n\nmodule.exports = function tokenizer(input, options = {}) {\n let css = input.css.valueOf()\n let ignore = options.ignoreErrors\n\n let code, next, quote, content, escape\n let escaped, escapePos, prev, n, currentToken\n\n let length = css.length\n let pos = 0\n let buffer = []\n let returned = []\n\n function position() {\n return pos\n }\n\n function unclosed(what) {\n throw input.error('Unclosed ' + what, pos)\n }\n\n function endOfFile() {\n return returned.length === 0 && pos >= length\n }\n\n function nextToken(opts) {\n if (returned.length) return returned.pop()\n if (pos >= length) return\n\n let ignoreUnclosed = opts ? opts.ignoreUnclosed : false\n\n code = css.charCodeAt(pos)\n\n switch (code) {\n case NEWLINE:\n case SPACE:\n case TAB:\n case CR:\n case FEED: {\n next = pos\n do {\n next += 1\n code = css.charCodeAt(next)\n } while (\n code === SPACE ||\n code === NEWLINE ||\n code === TAB ||\n code === CR ||\n code === FEED\n )\n\n currentToken = ['space', css.slice(pos, next)]\n pos = next - 1\n break\n }\n\n case OPEN_SQUARE:\n case CLOSE_SQUARE:\n case OPEN_CURLY:\n case CLOSE_CURLY:\n case COLON:\n case SEMICOLON:\n case CLOSE_PARENTHESES: {\n let controlChar = String.fromCharCode(code)\n currentToken = [controlChar, controlChar, pos]\n break\n }\n\n case OPEN_PARENTHESES: {\n prev = buffer.length ? buffer.pop()[1] : ''\n n = css.charCodeAt(pos + 1)\n if (\n prev === 'url' &&\n n !== SINGLE_QUOTE &&\n n !== DOUBLE_QUOTE &&\n n !== SPACE &&\n n !== NEWLINE &&\n n !== TAB &&\n n !== FEED &&\n n !== CR\n ) {\n next = pos\n do {\n escaped = false\n next = css.indexOf(')', next + 1)\n if (next === -1) {\n if (ignore || ignoreUnclosed) {\n next = pos\n break\n } else {\n unclosed('bracket')\n }\n }\n escapePos = next\n while (css.charCodeAt(escapePos - 1) === BACKSLASH) {\n escapePos -= 1\n escaped = !escaped\n }\n } while (escaped)\n\n currentToken = ['brackets', css.slice(pos, next + 1), pos, next]\n\n pos = next\n } else {\n next = css.indexOf(')', pos + 1)\n content = css.slice(pos, next + 1)\n\n if (next === -1 || RE_BAD_BRACKET.test(content)) {\n currentToken = ['(', '(', pos]\n } else {\n currentToken = ['brackets', content, pos, next]\n pos = next\n }\n }\n\n break\n }\n\n case SINGLE_QUOTE:\n case DOUBLE_QUOTE: {\n quote = code === SINGLE_QUOTE ? \"'\" : '\"'\n next = pos\n do {\n escaped = false\n next = css.indexOf(quote, next + 1)\n if (next === -1) {\n if (ignore || ignoreUnclosed) {\n next = pos + 1\n break\n } else {\n unclosed('string')\n }\n }\n escapePos = next\n while (css.charCodeAt(escapePos - 1) === BACKSLASH) {\n escapePos -= 1\n escaped = !escaped\n }\n } while (escaped)\n\n currentToken = ['string', css.slice(pos, next + 1), pos, next]\n pos = next\n break\n }\n\n case AT: {\n RE_AT_END.lastIndex = pos + 1\n RE_AT_END.test(css)\n if (RE_AT_END.lastIndex === 0) {\n next = css.length - 1\n } else {\n next = RE_AT_END.lastIndex - 2\n }\n\n currentToken = ['at-word', css.slice(pos, next + 1), pos, next]\n\n pos = next\n break\n }\n\n case BACKSLASH: {\n next = pos\n escape = true\n while (css.charCodeAt(next + 1) === BACKSLASH) {\n next += 1\n escape = !escape\n }\n code = css.charCodeAt(next + 1)\n if (\n escape &&\n code !== SLASH &&\n code !== SPACE &&\n code !== NEWLINE &&\n code !== TAB &&\n code !== CR &&\n code !== FEED\n ) {\n next += 1\n if (RE_HEX_ESCAPE.test(css.charAt(next))) {\n while (RE_HEX_ESCAPE.test(css.charAt(next + 1))) {\n next += 1\n }\n if (css.charCodeAt(next + 1) === SPACE) {\n next += 1\n }\n }\n }\n\n currentToken = ['word', css.slice(pos, next + 1), pos, next]\n\n pos = next\n break\n }\n\n default: {\n if (code === SLASH && css.charCodeAt(pos + 1) === ASTERISK) {\n next = css.indexOf('*/', pos + 2) + 1\n if (next === 0) {\n if (ignore || ignoreUnclosed) {\n next = css.length\n } else {\n unclosed('comment')\n }\n }\n\n currentToken = ['comment', css.slice(pos, next + 1), pos, next]\n pos = next\n } else {\n RE_WORD_END.lastIndex = pos + 1\n RE_WORD_END.test(css)\n if (RE_WORD_END.lastIndex === 0) {\n next = css.length - 1\n } else {\n next = RE_WORD_END.lastIndex - 2\n }\n\n currentToken = ['word', css.slice(pos, next + 1), pos, next]\n buffer.push(currentToken)\n pos = next\n }\n\n break\n }\n }\n\n pos++\n return currentToken\n }\n\n function back(token) {\n returned.push(token)\n }\n\n return {\n back,\n endOfFile,\n nextToken,\n position\n }\n}\n", "'use strict'\n\nlet Container = require('./container')\n\nclass AtRule extends Container {\n constructor(defaults) {\n super(defaults)\n this.type = 'atrule'\n }\n\n append(...children) {\n if (!this.proxyOf.nodes) this.nodes = []\n return super.append(...children)\n }\n\n prepend(...children) {\n if (!this.proxyOf.nodes) this.nodes = []\n return super.prepend(...children)\n }\n}\n\nmodule.exports = AtRule\nAtRule.default = AtRule\n\nContainer.registerAtRule(AtRule)\n", "'use strict'\n\nlet Container = require('./container')\n\nlet LazyResult, Processor\n\nclass Root extends Container {\n constructor(defaults) {\n super(defaults)\n this.type = 'root'\n if (!this.nodes) this.nodes = []\n }\n\n normalize(child, sample, type) {\n let nodes = super.normalize(child)\n\n if (sample) {\n if (type === 'prepend') {\n if (this.nodes.length > 1) {\n sample.raws.before = this.nodes[1].raws.before\n } else {\n delete sample.raws.before\n }\n } else if (this.first !== sample) {\n for (let node of nodes) {\n node.raws.before = sample.raws.before\n }\n }\n }\n\n return nodes\n }\n\n removeChild(child, ignore) {\n let index = this.index(child)\n\n if (!ignore && index === 0 && this.nodes.length > 1) {\n this.nodes[1].raws.before = this.nodes[index].raws.before\n }\n\n return super.removeChild(child)\n }\n\n toResult(opts = {}) {\n let lazy = new LazyResult(new Processor(), this, opts)\n return lazy.stringify()\n }\n}\n\nRoot.registerLazyResult = dependant => {\n LazyResult = dependant\n}\n\nRoot.registerProcessor = dependant => {\n Processor = dependant\n}\n\nmodule.exports = Root\nRoot.default = Root\n\nContainer.registerRoot(Root)\n", "'use strict'\n\nlet list = {\n comma(string) {\n return list.split(string, [','], true)\n },\n\n space(string) {\n let spaces = [' ', '\\n', '\\t']\n return list.split(string, spaces)\n },\n\n split(string, separators, last) {\n let array = []\n let current = ''\n let split = false\n\n let func = 0\n let inQuote = false\n let prevQuote = ''\n let escape = false\n\n for (let letter of string) {\n if (escape) {\n escape = false\n } else if (letter === '\\\\') {\n escape = true\n } else if (inQuote) {\n if (letter === prevQuote) {\n inQuote = false\n }\n } else if (letter === '\"' || letter === \"'\") {\n inQuote = true\n prevQuote = letter\n } else if (letter === '(') {\n func += 1\n } else if (letter === ')') {\n if (func > 0) func -= 1\n } else if (func === 0) {\n if (separators.includes(letter)) split = true\n }\n\n if (split) {\n if (current !== '') array.push(current.trim())\n current = ''\n split = false\n } else {\n current += letter\n }\n }\n\n if (last || current !== '') array.push(current.trim())\n return array\n }\n}\n\nmodule.exports = list\nlist.default = list\n", "'use strict'\n\nlet Container = require('./container')\nlet list = require('./list')\n\nclass Rule extends Container {\n constructor(defaults) {\n super(defaults)\n this.type = 'rule'\n if (!this.nodes) this.nodes = []\n }\n\n get selectors() {\n return list.comma(this.selector)\n }\n\n set selectors(values) {\n let match = this.selector ? this.selector.match(/,\\s*/) : null\n let sep = match ? match[0] : ',' + this.raw('between', 'beforeOpen')\n this.selector = values.join(sep)\n }\n}\n\nmodule.exports = Rule\nRule.default = Rule\n\nContainer.registerRule(Rule)\n", "'use strict'\n\nlet Declaration = require('./declaration')\nlet tokenizer = require('./tokenize')\nlet Comment = require('./comment')\nlet AtRule = require('./at-rule')\nlet Root = require('./root')\nlet Rule = require('./rule')\n\nconst SAFE_COMMENT_NEIGHBOR = {\n empty: true,\n space: true\n}\n\nfunction findLastWithPosition(tokens) {\n for (let i = tokens.length - 1; i >= 0; i--) {\n let token = tokens[i]\n let pos = token[3] || token[2]\n if (pos) return pos\n }\n}\n\nclass Parser {\n constructor(input) {\n this.input = input\n\n this.root = new Root()\n this.current = this.root\n this.spaces = ''\n this.semicolon = false\n\n this.createTokenizer()\n this.root.source = { input, start: { column: 1, line: 1, offset: 0 } }\n }\n\n atrule(token) {\n let node = new AtRule()\n node.name = token[1].slice(1)\n if (node.name === '') {\n this.unnamedAtrule(node, token)\n }\n this.init(node, token[2])\n\n let type\n let prev\n let shift\n let last = false\n let open = false\n let params = []\n let brackets = []\n\n while (!this.tokenizer.endOfFile()) {\n token = this.tokenizer.nextToken()\n type = token[0]\n\n if (type === '(' || type === '[') {\n brackets.push(type === '(' ? ')' : ']')\n } else if (type === '{' && brackets.length > 0) {\n brackets.push('}')\n } else if (type === brackets[brackets.length - 1]) {\n brackets.pop()\n }\n\n if (brackets.length === 0) {\n if (type === ';') {\n node.source.end = this.getPosition(token[2])\n node.source.end.offset++\n this.semicolon = true\n break\n } else if (type === '{') {\n open = true\n break\n } else if (type === '}') {\n if (params.length > 0) {\n shift = params.length - 1\n prev = params[shift]\n while (prev && prev[0] === 'space') {\n prev = params[--shift]\n }\n if (prev) {\n node.source.end = this.getPosition(prev[3] || prev[2])\n node.source.end.offset++\n }\n }\n this.end(token)\n break\n } else {\n params.push(token)\n }\n } else {\n params.push(token)\n }\n\n if (this.tokenizer.endOfFile()) {\n last = true\n break\n }\n }\n\n node.raws.between = this.spacesAndCommentsFromEnd(params)\n if (params.length) {\n node.raws.afterName = this.spacesAndCommentsFromStart(params)\n this.raw(node, 'params', params)\n if (last) {\n token = params[params.length - 1]\n node.source.end = this.getPosition(token[3] || token[2])\n node.source.end.offset++\n this.spaces = node.raws.between\n node.raws.between = ''\n }\n } else {\n node.raws.afterName = ''\n node.params = ''\n }\n\n if (open) {\n node.nodes = []\n this.current = node\n }\n }\n\n checkMissedSemicolon(tokens) {\n let colon = this.colon(tokens)\n if (colon === false) return\n\n let founded = 0\n let token\n for (let j = colon - 1; j >= 0; j--) {\n token = tokens[j]\n if (token[0] !== 'space') {\n founded += 1\n if (founded === 2) break\n }\n }\n // If the token is a word, e.g. `!important`, `red` or any other valid property's value.\n // Then we need to return the colon after that word token. [3] is the \"end\" colon of that word.\n // And because we need it after that one we do +1 to get the next one.\n throw this.input.error(\n 'Missed semicolon',\n token[0] === 'word' ? token[3] + 1 : token[2]\n )\n }\n\n colon(tokens) {\n let brackets = 0\n let token, type, prev\n for (let [i, element] of tokens.entries()) {\n token = element\n type = token[0]\n\n if (type === '(') {\n brackets += 1\n }\n if (type === ')') {\n brackets -= 1\n }\n if (brackets === 0 && type === ':') {\n if (!prev) {\n this.doubleColon(token)\n } else if (prev[0] === 'word' && prev[1] === 'progid') {\n continue\n } else {\n return i\n }\n }\n\n prev = token\n }\n return false\n }\n\n comment(token) {\n let node = new Comment()\n this.init(node, token[2])\n node.source.end = this.getPosition(token[3] || token[2])\n node.source.end.offset++\n\n let text = token[1].slice(2, -2)\n if (/^\\s*$/.test(text)) {\n node.text = ''\n node.raws.left = text\n node.raws.right = ''\n } else {\n let match = text.match(/^(\\s*)([^]*\\S)(\\s*)$/)\n node.text = match[2]\n node.raws.left = match[1]\n node.raws.right = match[3]\n }\n }\n\n createTokenizer() {\n this.tokenizer = tokenizer(this.input)\n }\n\n decl(tokens, customProperty) {\n let node = new Declaration()\n this.init(node, tokens[0][2])\n\n let last = tokens[tokens.length - 1]\n if (last[0] === ';') {\n this.semicolon = true\n tokens.pop()\n }\n\n node.source.end = this.getPosition(\n last[3] || last[2] || findLastWithPosition(tokens)\n )\n node.source.end.offset++\n\n while (tokens[0][0] !== 'word') {\n if (tokens.length === 1) this.unknownWord(tokens)\n node.raws.before += tokens.shift()[1]\n }\n node.source.start = this.getPosition(tokens[0][2])\n\n node.prop = ''\n while (tokens.length) {\n let type = tokens[0][0]\n if (type === ':' || type === 'space' || type === 'comment') {\n break\n }\n node.prop += tokens.shift()[1]\n }\n\n node.raws.between = ''\n\n let token\n while (tokens.length) {\n token = tokens.shift()\n\n if (token[0] === ':') {\n node.raws.between += token[1]\n break\n } else {\n if (token[0] === 'word' && /\\w/.test(token[1])) {\n this.unknownWord([token])\n }\n node.raws.between += token[1]\n }\n }\n\n if (node.prop[0] === '_' || node.prop[0] === '*') {\n node.raws.before += node.prop[0]\n node.prop = node.prop.slice(1)\n }\n\n let firstSpaces = []\n let next\n while (tokens.length) {\n next = tokens[0][0]\n if (next !== 'space' && next !== 'comment') break\n firstSpaces.push(tokens.shift())\n }\n\n this.precheckMissedSemicolon(tokens)\n\n for (let i = tokens.length - 1; i >= 0; i--) {\n token = tokens[i]\n if (token[1].toLowerCase() === '!important') {\n node.important = true\n let string = this.stringFrom(tokens, i)\n string = this.spacesFromEnd(tokens) + string\n if (string !== ' !important') node.raws.important = string\n break\n } else if (token[1].toLowerCase() === 'important') {\n let cache = tokens.slice(0)\n let str = ''\n for (let j = i; j > 0; j--) {\n let type = cache[j][0]\n if (str.trim().indexOf('!') === 0 && type !== 'space') {\n break\n }\n str = cache.pop()[1] + str\n }\n if (str.trim().indexOf('!') === 0) {\n node.important = true\n node.raws.important = str\n tokens = cache\n }\n }\n\n if (token[0] !== 'space' && token[0] !== 'comment') {\n break\n }\n }\n\n let hasWord = tokens.some(i => i[0] !== 'space' && i[0] !== 'comment')\n\n if (hasWord) {\n node.raws.between += firstSpaces.map(i => i[1]).join('')\n firstSpaces = []\n }\n this.raw(node, 'value', firstSpaces.concat(tokens), customProperty)\n\n if (node.value.includes(':') && !customProperty) {\n this.checkMissedSemicolon(tokens)\n }\n }\n\n doubleColon(token) {\n throw this.input.error(\n 'Double colon',\n { offset: token[2] },\n { offset: token[2] + token[1].length }\n )\n }\n\n emptyRule(token) {\n let node = new Rule()\n this.init(node, token[2])\n node.selector = ''\n node.raws.between = ''\n this.current = node\n }\n\n end(token) {\n if (this.current.nodes && this.current.nodes.length) {\n this.current.raws.semicolon = this.semicolon\n }\n this.semicolon = false\n\n this.current.raws.after = (this.current.raws.after || '') + this.spaces\n this.spaces = ''\n\n if (this.current.parent) {\n this.current.source.end = this.getPosition(token[2])\n this.current.source.end.offset++\n this.current = this.current.parent\n } else {\n this.unexpectedClose(token)\n }\n }\n\n endFile() {\n if (this.current.parent) this.unclosedBlock()\n if (this.current.nodes && this.current.nodes.length) {\n this.current.raws.semicolon = this.semicolon\n }\n this.current.raws.after = (this.current.raws.after || '') + this.spaces\n this.root.source.end = this.getPosition(this.tokenizer.position())\n }\n\n freeSemicolon(token) {\n this.spaces += token[1]\n if (this.current.nodes) {\n let prev = this.current.nodes[this.current.nodes.length - 1]\n if (prev && prev.type === 'rule' && !prev.raws.ownSemicolon) {\n prev.raws.ownSemicolon = this.spaces\n this.spaces = ''\n }\n }\n }\n\n // Helpers\n\n getPosition(offset) {\n let pos = this.input.fromOffset(offset)\n return {\n column: pos.col,\n line: pos.line,\n offset\n }\n }\n\n init(node, offset) {\n this.current.push(node)\n node.source = {\n input: this.input,\n start: this.getPosition(offset)\n }\n node.raws.before = this.spaces\n this.spaces = ''\n if (node.type !== 'comment') this.semicolon = false\n }\n\n other(start) {\n let end = false\n let type = null\n let colon = false\n let bracket = null\n let brackets = []\n let customProperty = start[1].startsWith('--')\n\n let tokens = []\n let token = start\n while (token) {\n type = token[0]\n tokens.push(token)\n\n if (type === '(' || type === '[') {\n if (!bracket) bracket = token\n brackets.push(type === '(' ? ')' : ']')\n } else if (customProperty && colon && type === '{') {\n if (!bracket) bracket = token\n brackets.push('}')\n } else if (brackets.length === 0) {\n if (type === ';') {\n if (colon) {\n this.decl(tokens, customProperty)\n return\n } else {\n break\n }\n } else if (type === '{') {\n this.rule(tokens)\n return\n } else if (type === '}') {\n this.tokenizer.back(tokens.pop())\n end = true\n break\n } else if (type === ':') {\n colon = true\n }\n } else if (type === brackets[brackets.length - 1]) {\n brackets.pop()\n if (brackets.length === 0) bracket = null\n }\n\n token = this.tokenizer.nextToken()\n }\n\n if (this.tokenizer.endOfFile()) end = true\n if (brackets.length > 0) this.unclosedBracket(bracket)\n\n if (end && colon) {\n if (!customProperty) {\n while (tokens.length) {\n token = tokens[tokens.length - 1][0]\n if (token !== 'space' && token !== 'comment') break\n this.tokenizer.back(tokens.pop())\n }\n }\n this.decl(tokens, customProperty)\n } else {\n this.unknownWord(tokens)\n }\n }\n\n parse() {\n let token\n while (!this.tokenizer.endOfFile()) {\n token = this.tokenizer.nextToken()\n\n switch (token[0]) {\n case 'space':\n this.spaces += token[1]\n break\n\n case ';':\n this.freeSemicolon(token)\n break\n\n case '}':\n this.end(token)\n break\n\n case 'comment':\n this.comment(token)\n break\n\n case 'at-word':\n this.atrule(token)\n break\n\n case '{':\n this.emptyRule(token)\n break\n\n default:\n this.other(token)\n break\n }\n }\n this.endFile()\n }\n\n precheckMissedSemicolon(/* tokens */) {\n // Hook for Safe Parser\n }\n\n raw(node, prop, tokens, customProperty) {\n let token, type\n let length = tokens.length\n let value = ''\n let clean = true\n let next, prev\n\n for (let i = 0; i < length; i += 1) {\n token = tokens[i]\n type = token[0]\n if (type === 'space' && i === length - 1 && !customProperty) {\n clean = false\n } else if (type === 'comment') {\n prev = tokens[i - 1] ? tokens[i - 1][0] : 'empty'\n next = tokens[i + 1] ? tokens[i + 1][0] : 'empty'\n if (!SAFE_COMMENT_NEIGHBOR[prev] && !SAFE_COMMENT_NEIGHBOR[next]) {\n if (value.slice(-1) === ',') {\n clean = false\n } else {\n value += token[1]\n }\n } else {\n clean = false\n }\n } else {\n value += token[1]\n }\n }\n if (!clean) {\n let raw = tokens.reduce((all, i) => all + i[1], '')\n node.raws[prop] = { raw, value }\n }\n node[prop] = value\n }\n\n rule(tokens) {\n tokens.pop()\n\n let node = new Rule()\n this.init(node, tokens[0][2])\n\n node.raws.between = this.spacesAndCommentsFromEnd(tokens)\n this.raw(node, 'selector', tokens)\n this.current = node\n }\n\n spacesAndCommentsFromEnd(tokens) {\n let lastTokenType\n let spaces = ''\n while (tokens.length) {\n lastTokenType = tokens[tokens.length - 1][0]\n if (lastTokenType !== 'space' && lastTokenType !== 'comment') break\n spaces = tokens.pop()[1] + spaces\n }\n return spaces\n }\n\n // Errors\n\n spacesAndCommentsFromStart(tokens) {\n let next\n let spaces = ''\n while (tokens.length) {\n next = tokens[0][0]\n if (next !== 'space' && next !== 'comment') break\n spaces += tokens.shift()[1]\n }\n return spaces\n }\n\n spacesFromEnd(tokens) {\n let lastTokenType\n let spaces = ''\n while (tokens.length) {\n lastTokenType = tokens[tokens.length - 1][0]\n if (lastTokenType !== 'space') break\n spaces = tokens.pop()[1] + spaces\n }\n return spaces\n }\n\n stringFrom(tokens, from) {\n let result = ''\n for (let i = from; i < tokens.length; i++) {\n result += tokens[i][1]\n }\n tokens.splice(from, tokens.length - from)\n return result\n }\n\n unclosedBlock() {\n let pos = this.current.source.start\n throw this.input.error('Unclosed block', pos.line, pos.column)\n }\n\n unclosedBracket(bracket) {\n throw this.input.error(\n 'Unclosed bracket',\n { offset: bracket[2] },\n { offset: bracket[2] + 1 }\n )\n }\n\n unexpectedClose(token) {\n throw this.input.error(\n 'Unexpected }',\n { offset: token[2] },\n { offset: token[2] + 1 }\n )\n }\n\n unknownWord(tokens) {\n throw this.input.error(\n 'Unknown word',\n { offset: tokens[0][2] },\n { offset: tokens[0][2] + tokens[0][1].length }\n )\n }\n\n unnamedAtrule(node, token) {\n throw this.input.error(\n 'At-rule without name',\n { offset: token[2] },\n { offset: token[2] + token[1].length }\n )\n }\n}\n\nmodule.exports = Parser\n", "'use strict'\n\nlet Container = require('./container')\nlet Parser = require('./parser')\nlet Input = require('./input')\n\nfunction parse(css, opts) {\n let input = new Input(css, opts)\n let parser = new Parser(input)\n try {\n parser.parse()\n } catch (e) {\n if (process.env.NODE_ENV !== 'production') {\n if (e.name === 'CssSyntaxError' && opts && opts.from) {\n if (/\\.scss$/i.test(opts.from)) {\n e.message +=\n '\\nYou tried to parse SCSS with ' +\n 'the standard CSS parser; ' +\n 'try again with the postcss-scss parser'\n } else if (/\\.sass/i.test(opts.from)) {\n e.message +=\n '\\nYou tried to parse Sass with ' +\n 'the standard CSS parser; ' +\n 'try again with the postcss-sass parser'\n } else if (/\\.less$/i.test(opts.from)) {\n e.message +=\n '\\nYou tried to parse Less with ' +\n 'the standard CSS parser; ' +\n 'try again with the postcss-less parser'\n }\n }\n }\n throw e\n }\n\n return parser.root\n}\n\nmodule.exports = parse\nparse.default = parse\n\nContainer.registerParse(parse)\n", "'use strict'\n\nlet { isClean, my } = require('./symbols')\nlet MapGenerator = require('./map-generator')\nlet stringify = require('./stringify')\nlet Container = require('./container')\nlet Document = require('./document')\nlet warnOnce = require('./warn-once')\nlet Result = require('./result')\nlet parse = require('./parse')\nlet Root = require('./root')\n\nconst TYPE_TO_CLASS_NAME = {\n atrule: 'AtRule',\n comment: 'Comment',\n decl: 'Declaration',\n document: 'Document',\n root: 'Root',\n rule: 'Rule'\n}\n\nconst PLUGIN_PROPS = {\n AtRule: true,\n AtRuleExit: true,\n Comment: true,\n CommentExit: true,\n Declaration: true,\n DeclarationExit: true,\n Document: true,\n DocumentExit: true,\n Once: true,\n OnceExit: true,\n postcssPlugin: true,\n prepare: true,\n Root: true,\n RootExit: true,\n Rule: true,\n RuleExit: true\n}\n\nconst NOT_VISITORS = {\n Once: true,\n postcssPlugin: true,\n prepare: true\n}\n\nconst CHILDREN = 0\n\nfunction isPromise(obj) {\n return typeof obj === 'object' && typeof obj.then === 'function'\n}\n\nfunction getEvents(node) {\n let key = false\n let type = TYPE_TO_CLASS_NAME[node.type]\n if (node.type === 'decl') {\n key = node.prop.toLowerCase()\n } else if (node.type === 'atrule') {\n key = node.name.toLowerCase()\n }\n\n if (key && node.append) {\n return [\n type,\n type + '-' + key,\n CHILDREN,\n type + 'Exit',\n type + 'Exit-' + key\n ]\n } else if (key) {\n return [type, type + '-' + key, type + 'Exit', type + 'Exit-' + key]\n } else if (node.append) {\n return [type, CHILDREN, type + 'Exit']\n } else {\n return [type, type + 'Exit']\n }\n}\n\nfunction toStack(node) {\n let events\n if (node.type === 'document') {\n events = ['Document', CHILDREN, 'DocumentExit']\n } else if (node.type === 'root') {\n events = ['Root', CHILDREN, 'RootExit']\n } else {\n events = getEvents(node)\n }\n\n return {\n eventIndex: 0,\n events,\n iterator: 0,\n node,\n visitorIndex: 0,\n visitors: []\n }\n}\n\nfunction cleanMarks(node) {\n node[isClean] = false\n if (node.nodes) node.nodes.forEach(i => cleanMarks(i))\n return node\n}\n\nlet postcss = {}\n\nclass LazyResult {\n constructor(processor, css, opts) {\n this.stringified = false\n this.processed = false\n\n let root\n if (\n typeof css === 'object' &&\n css !== null &&\n (css.type === 'root' || css.type === 'document')\n ) {\n root = cleanMarks(css)\n } else if (css instanceof LazyResult || css instanceof Result) {\n root = cleanMarks(css.root)\n if (css.map) {\n if (typeof opts.map === 'undefined') opts.map = {}\n if (!opts.map.inline) opts.map.inline = false\n opts.map.prev = css.map\n }\n } else {\n let parser = parse\n if (opts.syntax) parser = opts.syntax.parse\n if (opts.parser) parser = opts.parser\n if (parser.parse) parser = parser.parse\n\n try {\n root = parser(css, opts)\n } catch (error) {\n this.processed = true\n this.error = error\n }\n\n if (root && !root[my]) {\n /* c8 ignore next 2 */\n Container.rebuild(root)\n }\n }\n\n this.result = new Result(processor, root, opts)\n this.helpers = { ...postcss, postcss, result: this.result }\n this.plugins = this.processor.plugins.map(plugin => {\n if (typeof plugin === 'object' && plugin.prepare) {\n return { ...plugin, ...plugin.prepare(this.result) }\n } else {\n return plugin\n }\n })\n }\n\n async() {\n if (this.error) return Promise.reject(this.error)\n if (this.processed) return Promise.resolve(this.result)\n if (!this.processing) {\n this.processing = this.runAsync()\n }\n return this.processing\n }\n\n catch(onRejected) {\n return this.async().catch(onRejected)\n }\n\n finally(onFinally) {\n return this.async().then(onFinally, onFinally)\n }\n\n getAsyncError() {\n throw new Error('Use process(css).then(cb) to work with async plugins')\n }\n\n handleError(error, node) {\n let plugin = this.result.lastPlugin\n try {\n if (node) node.addToError(error)\n this.error = error\n if (error.name === 'CssSyntaxError' && !error.plugin) {\n error.plugin = plugin.postcssPlugin\n error.setMessage()\n } else if (plugin.postcssVersion) {\n if (process.env.NODE_ENV !== 'production') {\n let pluginName = plugin.postcssPlugin\n let pluginVer = plugin.postcssVersion\n let runtimeVer = this.result.processor.version\n let a = pluginVer.split('.')\n let b = runtimeVer.split('.')\n\n if (a[0] !== b[0] || parseInt(a[1]) > parseInt(b[1])) {\n // eslint-disable-next-line no-console\n console.error(\n 'Unknown error from PostCSS plugin. Your current PostCSS ' +\n 'version is ' +\n runtimeVer +\n ', but ' +\n pluginName +\n ' uses ' +\n pluginVer +\n '. Perhaps this is the source of the error below.'\n )\n }\n }\n }\n } catch (err) {\n /* c8 ignore next 3 */\n // eslint-disable-next-line no-console\n if (console && console.error) console.error(err)\n }\n return error\n }\n\n prepareVisitors() {\n this.listeners = {}\n let add = (plugin, type, cb) => {\n if (!this.listeners[type]) this.listeners[type] = []\n this.listeners[type].push([plugin, cb])\n }\n for (let plugin of this.plugins) {\n if (typeof plugin === 'object') {\n for (let event in plugin) {\n if (!PLUGIN_PROPS[event] && /^[A-Z]/.test(event)) {\n throw new Error(\n `Unknown event ${event} in ${plugin.postcssPlugin}. ` +\n `Try to update PostCSS (${this.processor.version} now).`\n )\n }\n if (!NOT_VISITORS[event]) {\n if (typeof plugin[event] === 'object') {\n for (let filter in plugin[event]) {\n if (filter === '*') {\n add(plugin, event, plugin[event][filter])\n } else {\n add(\n plugin,\n event + '-' + filter.toLowerCase(),\n plugin[event][filter]\n )\n }\n }\n } else if (typeof plugin[event] === 'function') {\n add(plugin, event, plugin[event])\n }\n }\n }\n }\n }\n this.hasListener = Object.keys(this.listeners).length > 0\n }\n\n async runAsync() {\n this.plugin = 0\n for (let i = 0; i < this.plugins.length; i++) {\n let plugin = this.plugins[i]\n let promise = this.runOnRoot(plugin)\n if (isPromise(promise)) {\n try {\n await promise\n } catch (error) {\n throw this.handleError(error)\n }\n }\n }\n\n this.prepareVisitors()\n if (this.hasListener) {\n let root = this.result.root\n while (!root[isClean]) {\n root[isClean] = true\n let stack = [toStack(root)]\n while (stack.length > 0) {\n let promise = this.visitTick(stack)\n if (isPromise(promise)) {\n try {\n await promise\n } catch (e) {\n let node = stack[stack.length - 1].node\n throw this.handleError(e, node)\n }\n }\n }\n }\n\n if (this.listeners.OnceExit) {\n for (let [plugin, visitor] of this.listeners.OnceExit) {\n this.result.lastPlugin = plugin\n try {\n if (root.type === 'document') {\n let roots = root.nodes.map(subRoot =>\n visitor(subRoot, this.helpers)\n )\n\n await Promise.all(roots)\n } else {\n await visitor(root, this.helpers)\n }\n } catch (e) {\n throw this.handleError(e)\n }\n }\n }\n }\n\n this.processed = true\n return this.stringify()\n }\n\n runOnRoot(plugin) {\n this.result.lastPlugin = plugin\n try {\n if (typeof plugin === 'object' && plugin.Once) {\n if (this.result.root.type === 'document') {\n let roots = this.result.root.nodes.map(root =>\n plugin.Once(root, this.helpers)\n )\n\n if (isPromise(roots[0])) {\n return Promise.all(roots)\n }\n\n return roots\n }\n\n return plugin.Once(this.result.root, this.helpers)\n } else if (typeof plugin === 'function') {\n return plugin(this.result.root, this.result)\n }\n } catch (error) {\n throw this.handleError(error)\n }\n }\n\n stringify() {\n if (this.error) throw this.error\n if (this.stringified) return this.result\n this.stringified = true\n\n this.sync()\n\n let opts = this.result.opts\n let str = stringify\n if (opts.syntax) str = opts.syntax.stringify\n if (opts.stringifier) str = opts.stringifier\n if (str.stringify) str = str.stringify\n\n let map = new MapGenerator(str, this.result.root, this.result.opts)\n let data = map.generate()\n this.result.css = data[0]\n this.result.map = data[1]\n\n return this.result\n }\n\n sync() {\n if (this.error) throw this.error\n if (this.processed) return this.result\n this.processed = true\n\n if (this.processing) {\n throw this.getAsyncError()\n }\n\n for (let plugin of this.plugins) {\n let promise = this.runOnRoot(plugin)\n if (isPromise(promise)) {\n throw this.getAsyncError()\n }\n }\n\n this.prepareVisitors()\n if (this.hasListener) {\n let root = this.result.root\n while (!root[isClean]) {\n root[isClean] = true\n this.walkSync(root)\n }\n if (this.listeners.OnceExit) {\n if (root.type === 'document') {\n for (let subRoot of root.nodes) {\n this.visitSync(this.listeners.OnceExit, subRoot)\n }\n } else {\n this.visitSync(this.listeners.OnceExit, root)\n }\n }\n }\n\n return this.result\n }\n\n then(onFulfilled, onRejected) {\n if (process.env.NODE_ENV !== 'production') {\n if (!('from' in this.opts)) {\n warnOnce(\n 'Without `from` option PostCSS could generate wrong source map ' +\n 'and will not find Browserslist config. Set it to CSS file path ' +\n 'or to `undefined` to prevent this warning.'\n )\n }\n }\n return this.async().then(onFulfilled, onRejected)\n }\n\n toString() {\n return this.css\n }\n\n visitSync(visitors, node) {\n for (let [plugin, visitor] of visitors) {\n this.result.lastPlugin = plugin\n let promise\n try {\n promise = visitor(node, this.helpers)\n } catch (e) {\n throw this.handleError(e, node.proxyOf)\n }\n if (node.type !== 'root' && node.type !== 'document' && !node.parent) {\n return true\n }\n if (isPromise(promise)) {\n throw this.getAsyncError()\n }\n }\n }\n\n visitTick(stack) {\n let visit = stack[stack.length - 1]\n let { node, visitors } = visit\n\n if (node.type !== 'root' && node.type !== 'document' && !node.parent) {\n stack.pop()\n return\n }\n\n if (visitors.length > 0 && visit.visitorIndex < visitors.length) {\n let [plugin, visitor] = visitors[visit.visitorIndex]\n visit.visitorIndex += 1\n if (visit.visitorIndex === visitors.length) {\n visit.visitors = []\n visit.visitorIndex = 0\n }\n this.result.lastPlugin = plugin\n try {\n return visitor(node.toProxy(), this.helpers)\n } catch (e) {\n throw this.handleError(e, node)\n }\n }\n\n if (visit.iterator !== 0) {\n let iterator = visit.iterator\n let child\n while ((child = node.nodes[node.indexes[iterator]])) {\n node.indexes[iterator] += 1\n if (!child[isClean]) {\n child[isClean] = true\n stack.push(toStack(child))\n return\n }\n }\n visit.iterator = 0\n delete node.indexes[iterator]\n }\n\n let events = visit.events\n while (visit.eventIndex < events.length) {\n let event = events[visit.eventIndex]\n visit.eventIndex += 1\n if (event === CHILDREN) {\n if (node.nodes && node.nodes.length) {\n node[isClean] = true\n visit.iterator = node.getIterator()\n }\n return\n } else if (this.listeners[event]) {\n visit.visitors = this.listeners[event]\n return\n }\n }\n stack.pop()\n }\n\n walkSync(node) {\n node[isClean] = true\n let events = getEvents(node)\n for (let event of events) {\n if (event === CHILDREN) {\n if (node.nodes) {\n node.each(child => {\n if (!child[isClean]) this.walkSync(child)\n })\n }\n } else {\n let visitors = this.listeners[event]\n if (visitors) {\n if (this.visitSync(visitors, node.toProxy())) return\n }\n }\n }\n }\n\n warnings() {\n return this.sync().warnings()\n }\n\n get content() {\n return this.stringify().content\n }\n\n get css() {\n return this.stringify().css\n }\n\n get map() {\n return this.stringify().map\n }\n\n get messages() {\n return this.sync().messages\n }\n\n get opts() {\n return this.result.opts\n }\n\n get processor() {\n return this.result.processor\n }\n\n get root() {\n return this.sync().root\n }\n\n get [Symbol.toStringTag]() {\n return 'LazyResult'\n }\n}\n\nLazyResult.registerPostcss = dependant => {\n postcss = dependant\n}\n\nmodule.exports = LazyResult\nLazyResult.default = LazyResult\n\nRoot.registerLazyResult(LazyResult)\nDocument.registerLazyResult(LazyResult)\n", "'use strict'\n\nlet MapGenerator = require('./map-generator')\nlet stringify = require('./stringify')\nlet warnOnce = require('./warn-once')\nlet parse = require('./parse')\nconst Result = require('./result')\n\nclass NoWorkResult {\n constructor(processor, css, opts) {\n css = css.toString()\n this.stringified = false\n\n this._processor = processor\n this._css = css\n this._opts = opts\n this._map = undefined\n let root\n\n let str = stringify\n this.result = new Result(this._processor, root, this._opts)\n this.result.css = css\n\n let self = this\n Object.defineProperty(this.result, 'root', {\n get() {\n return self.root\n }\n })\n\n let map = new MapGenerator(str, root, this._opts, css)\n if (map.isMap()) {\n let [generatedCSS, generatedMap] = map.generate()\n if (generatedCSS) {\n this.result.css = generatedCSS\n }\n if (generatedMap) {\n this.result.map = generatedMap\n }\n } else {\n map.clearAnnotation()\n this.result.css = map.css\n }\n }\n\n async() {\n if (this.error) return Promise.reject(this.error)\n return Promise.resolve(this.result)\n }\n\n catch(onRejected) {\n return this.async().catch(onRejected)\n }\n\n finally(onFinally) {\n return this.async().then(onFinally, onFinally)\n }\n\n sync() {\n if (this.error) throw this.error\n return this.result\n }\n\n then(onFulfilled, onRejected) {\n if (process.env.NODE_ENV !== 'production') {\n if (!('from' in this._opts)) {\n warnOnce(\n 'Without `from` option PostCSS could generate wrong source map ' +\n 'and will not find Browserslist config. Set it to CSS file path ' +\n 'or to `undefined` to prevent this warning.'\n )\n }\n }\n\n return this.async().then(onFulfilled, onRejected)\n }\n\n toString() {\n return this._css\n }\n\n warnings() {\n return []\n }\n\n get content() {\n return this.result.css\n }\n\n get css() {\n return this.result.css\n }\n\n get map() {\n return this.result.map\n }\n\n get messages() {\n return []\n }\n\n get opts() {\n return this.result.opts\n }\n\n get processor() {\n return this.result.processor\n }\n\n get root() {\n if (this._root) {\n return this._root\n }\n\n let root\n let parser = parse\n\n try {\n root = parser(this._css, this._opts)\n } catch (error) {\n this.error = error\n }\n\n if (this.error) {\n throw this.error\n } else {\n this._root = root\n return root\n }\n }\n\n get [Symbol.toStringTag]() {\n return 'NoWorkResult'\n }\n}\n\nmodule.exports = NoWorkResult\nNoWorkResult.default = NoWorkResult\n", "'use strict'\n\nlet NoWorkResult = require('./no-work-result')\nlet LazyResult = require('./lazy-result')\nlet Document = require('./document')\nlet Root = require('./root')\n\nclass Processor {\n constructor(plugins = []) {\n this.version = '8.4.35'\n this.plugins = this.normalize(plugins)\n }\n\n normalize(plugins) {\n let normalized = []\n for (let i of plugins) {\n if (i.postcss === true) {\n i = i()\n } else if (i.postcss) {\n i = i.postcss\n }\n\n if (typeof i === 'object' && Array.isArray(i.plugins)) {\n normalized = normalized.concat(i.plugins)\n } else if (typeof i === 'object' && i.postcssPlugin) {\n normalized.push(i)\n } else if (typeof i === 'function') {\n normalized.push(i)\n } else if (typeof i === 'object' && (i.parse || i.stringify)) {\n if (process.env.NODE_ENV !== 'production') {\n throw new Error(\n 'PostCSS syntaxes cannot be used as plugins. Instead, please use ' +\n 'one of the syntax/parser/stringifier options as outlined ' +\n 'in your PostCSS runner documentation.'\n )\n }\n } else {\n throw new Error(i + ' is not a PostCSS plugin')\n }\n }\n return normalized\n }\n\n process(css, opts = {}) {\n if (\n !this.plugins.length &&\n !opts.parser &&\n !opts.stringifier &&\n !opts.syntax\n ) {\n return new NoWorkResult(this, css, opts)\n } else {\n return new LazyResult(this, css, opts)\n }\n }\n\n use(plugin) {\n this.plugins = this.plugins.concat(this.normalize([plugin]))\n return this\n }\n}\n\nmodule.exports = Processor\nProcessor.default = Processor\n\nRoot.registerProcessor(Processor)\nDocument.registerProcessor(Processor)\n", "'use strict'\n\nlet Declaration = require('./declaration')\nlet PreviousMap = require('./previous-map')\nlet Comment = require('./comment')\nlet AtRule = require('./at-rule')\nlet Input = require('./input')\nlet Root = require('./root')\nlet Rule = require('./rule')\n\nfunction fromJSON(json, inputs) {\n if (Array.isArray(json)) return json.map(n => fromJSON(n))\n\n let { inputs: ownInputs, ...defaults } = json\n if (ownInputs) {\n inputs = []\n for (let input of ownInputs) {\n let inputHydrated = { ...input, __proto__: Input.prototype }\n if (inputHydrated.map) {\n inputHydrated.map = {\n ...inputHydrated.map,\n __proto__: PreviousMap.prototype\n }\n }\n inputs.push(inputHydrated)\n }\n }\n if (defaults.nodes) {\n defaults.nodes = json.nodes.map(n => fromJSON(n, inputs))\n }\n if (defaults.source) {\n let { inputId, ...source } = defaults.source\n defaults.source = source\n if (inputId != null) {\n defaults.source.input = inputs[inputId]\n }\n }\n if (defaults.type === 'root') {\n return new Root(defaults)\n } else if (defaults.type === 'decl') {\n return new Declaration(defaults)\n } else if (defaults.type === 'rule') {\n return new Rule(defaults)\n } else if (defaults.type === 'comment') {\n return new Comment(defaults)\n } else if (defaults.type === 'atrule') {\n return new AtRule(defaults)\n } else {\n throw new Error('Unknown node type: ' + json.type)\n }\n}\n\nmodule.exports = fromJSON\nfromJSON.default = fromJSON\n", "'use strict'\n\nlet CssSyntaxError = require('./css-syntax-error')\nlet Declaration = require('./declaration')\nlet LazyResult = require('./lazy-result')\nlet Container = require('./container')\nlet Processor = require('./processor')\nlet stringify = require('./stringify')\nlet fromJSON = require('./fromJSON')\nlet Document = require('./document')\nlet Warning = require('./warning')\nlet Comment = require('./comment')\nlet AtRule = require('./at-rule')\nlet Result = require('./result.js')\nlet Input = require('./input')\nlet parse = require('./parse')\nlet list = require('./list')\nlet Rule = require('./rule')\nlet Root = require('./root')\nlet Node = require('./node')\n\nfunction postcss(...plugins) {\n if (plugins.length === 1 && Array.isArray(plugins[0])) {\n plugins = plugins[0]\n }\n return new Processor(plugins)\n}\n\npostcss.plugin = function plugin(name, initializer) {\n let warningPrinted = false\n function creator(...args) {\n // eslint-disable-next-line no-console\n if (console && console.warn && !warningPrinted) {\n warningPrinted = true\n // eslint-disable-next-line no-console\n console.warn(\n name +\n ': postcss.plugin was deprecated. Migration guide:\\n' +\n 'https://evilmartians.com/chronicles/postcss-8-plugin-migration'\n )\n if (process.env.LANG && process.env.LANG.startsWith('cn')) {\n /* c8 ignore next 7 */\n // eslint-disable-next-line no-console\n console.warn(\n name +\n ': \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:\\n' +\n 'https://www.w3ctech.com/topic/2226'\n )\n }\n }\n let transformer = initializer(...args)\n transformer.postcssPlugin = name\n transformer.postcssVersion = new Processor().version\n return transformer\n }\n\n let cache\n Object.defineProperty(creator, 'postcss', {\n get() {\n if (!cache) cache = creator()\n return cache\n }\n })\n\n creator.process = function (css, processOpts, pluginOpts) {\n return postcss([creator(pluginOpts)]).process(css, processOpts)\n }\n\n return creator\n}\n\npostcss.stringify = stringify\npostcss.parse = parse\npostcss.fromJSON = fromJSON\npostcss.list = list\n\npostcss.comment = defaults => new Comment(defaults)\npostcss.atRule = defaults => new AtRule(defaults)\npostcss.decl = defaults => new Declaration(defaults)\npostcss.rule = defaults => new Rule(defaults)\npostcss.root = defaults => new Root(defaults)\npostcss.document = defaults => new Document(defaults)\n\npostcss.CssSyntaxError = CssSyntaxError\npostcss.Declaration = Declaration\npostcss.Container = Container\npostcss.Processor = Processor\npostcss.Document = Document\npostcss.Comment = Comment\npostcss.Warning = Warning\npostcss.AtRule = AtRule\npostcss.Result = Result\npostcss.Input = Input\npostcss.Rule = Rule\npostcss.Root = Root\npostcss.Node = Node\n\nLazyResult.registerPostcss(postcss)\n\nmodule.exports = postcss\npostcss.default = postcss\n", "\"use strict\";\n\nexports.__esModule = true;\nexports[\"default\"] = unesc;\n// Many thanks for this post which made this migration much easier.\n// https://mathiasbynens.be/notes/css-escapes\n\n/**\n * \n * @param {string} str \n * @returns {[string, number]|undefined}\n */\nfunction gobbleHex(str) {\n var lower = str.toLowerCase();\n var hex = '';\n var spaceTerminated = false;\n for (var i = 0; i < 6 && lower[i] !== undefined; i++) {\n var code = lower.charCodeAt(i);\n // check to see if we are dealing with a valid hex char [a-f|0-9]\n var valid = code >= 97 && code <= 102 || code >= 48 && code <= 57;\n // https://drafts.csswg.org/css-syntax/#consume-escaped-code-point\n spaceTerminated = code === 32;\n if (!valid) {\n break;\n }\n hex += lower[i];\n }\n if (hex.length === 0) {\n return undefined;\n }\n var codePoint = parseInt(hex, 16);\n var isSurrogate = codePoint >= 0xD800 && codePoint <= 0xDFFF;\n // Add special case for\n // \"If this number is zero, or is for a surrogate, or is greater than the maximum allowed code point\"\n // https://drafts.csswg.org/css-syntax/#maximum-allowed-code-point\n if (isSurrogate || codePoint === 0x0000 || codePoint > 0x10FFFF) {\n return [\"\\uFFFD\", hex.length + (spaceTerminated ? 1 : 0)];\n }\n return [String.fromCodePoint(codePoint), hex.length + (spaceTerminated ? 1 : 0)];\n}\nvar CONTAINS_ESCAPE = /\\\\/;\nfunction unesc(str) {\n var needToProcess = CONTAINS_ESCAPE.test(str);\n if (!needToProcess) {\n return str;\n }\n var ret = \"\";\n for (var i = 0; i < str.length; i++) {\n if (str[i] === \"\\\\\") {\n var gobbled = gobbleHex(str.slice(i + 1, i + 7));\n if (gobbled !== undefined) {\n ret += gobbled[0];\n i += gobbled[1];\n continue;\n }\n\n // Retain a pair of \\\\ if double escaped `\\\\\\\\`\n // https://github.com/postcss/postcss-selector-parser/commit/268c9a7656fb53f543dc620aa5b73a30ec3ff20e\n if (str[i + 1] === \"\\\\\") {\n ret += \"\\\\\";\n i++;\n continue;\n }\n\n // if \\\\ is at the end of the string retain it\n // https://github.com/postcss/postcss-selector-parser/commit/01a6b346e3612ce1ab20219acc26abdc259ccefb\n if (str.length === i + 1) {\n ret += str[i];\n }\n continue;\n }\n ret += str[i];\n }\n return ret;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nexports.__esModule = true;\nexports[\"default\"] = getProp;\nfunction getProp(obj) {\n for (var _len = arguments.length, props = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n props[_key - 1] = arguments[_key];\n }\n while (props.length > 0) {\n var prop = props.shift();\n if (!obj[prop]) {\n return undefined;\n }\n obj = obj[prop];\n }\n return obj;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nexports.__esModule = true;\nexports[\"default\"] = ensureObject;\nfunction ensureObject(obj) {\n for (var _len = arguments.length, props = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n props[_key - 1] = arguments[_key];\n }\n while (props.length > 0) {\n var prop = props.shift();\n if (!obj[prop]) {\n obj[prop] = {};\n }\n obj = obj[prop];\n }\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nexports.__esModule = true;\nexports[\"default\"] = stripComments;\nfunction stripComments(str) {\n var s = \"\";\n var commentStart = str.indexOf(\"/*\");\n var lastEnd = 0;\n while (commentStart >= 0) {\n s = s + str.slice(lastEnd, commentStart);\n var commentEnd = str.indexOf(\"*/\", commentStart + 2);\n if (commentEnd < 0) {\n return s;\n }\n lastEnd = commentEnd + 2;\n commentStart = str.indexOf(\"/*\", lastEnd);\n }\n s = s + str.slice(lastEnd);\n return s;\n}\nmodule.exports = exports.default;", "\"use strict\";\n\nexports.__esModule = true;\nexports.unesc = exports.stripComments = exports.getProp = exports.ensureObject = void 0;\nvar _unesc = _interopRequireDefault(require(\"./unesc\"));\nexports.unesc = _unesc[\"default\"];\nvar _getProp = _interopRequireDefault(require(\"./getProp\"));\nexports.getProp = _getProp[\"default\"];\nvar _ensureObject = _interopRequireDefault(require(\"./ensureObject\"));\nexports.ensureObject = _ensureObject[\"default\"];\nvar _stripComments = _interopRequireDefault(require(\"./stripComments\"));\nexports.stripComments = _stripComments[\"default\"];\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }", "\"use strict\";\n\nexports.__esModule = true;\nexports[\"default\"] = void 0;\nvar _util = require(\"../util\");\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nvar cloneNode = function cloneNode(obj, parent) {\n if (typeof obj !== 'object' || obj === null) {\n return obj;\n }\n var cloned = new obj.constructor();\n for (var i in obj) {\n if (!obj.hasOwnProperty(i)) {\n continue;\n }\n var value = obj[i];\n var type = typeof value;\n if (i === 'parent' && type === 'object') {\n if (parent) {\n cloned[i] = parent;\n }\n } else if (value instanceof Array) {\n cloned[i] = value.map(function (j) {\n return cloneNode(j, cloned);\n });\n } else {\n cloned[i] = cloneNode(value, cloned);\n }\n }\n return cloned;\n};\nvar Node = /*#__PURE__*/function () {\n function Node(opts) {\n if (opts === void 0) {\n opts = {};\n }\n Object.assign(this, opts);\n this.spaces = this.spaces || {};\n this.spaces.before = this.spaces.before || '';\n this.spaces.after = this.spaces.after || '';\n }\n var _proto = Node.prototype;\n _proto.remove = function remove() {\n if (this.parent) {\n this.parent.removeChild(this);\n }\n this.parent = undefined;\n return this;\n };\n _proto.replaceWith = function replaceWith() {\n if (this.parent) {\n for (var index in arguments) {\n this.parent.insertBefore(this, arguments[index]);\n }\n this.remove();\n }\n return this;\n };\n _proto.next = function next() {\n return this.parent.at(this.parent.index(this) + 1);\n };\n _proto.prev = function prev() {\n return this.parent.at(this.parent.index(this) - 1);\n };\n _proto.clone = function clone(overrides) {\n if (overrides === void 0) {\n overrides = {};\n }\n var cloned = cloneNode(this);\n for (var name in overrides) {\n cloned[name] = overrides[name];\n }\n return cloned;\n }\n\n /**\n * Some non-standard syntax doesn't follow normal escaping rules for css.\n * This allows non standard syntax to be appended to an existing property\n * by specifying the escaped value. By specifying the escaped value,\n * illegal characters are allowed to be directly inserted into css output.\n * @param {string} name the property to set\n * @param {any} value the unescaped value of the property\n * @param {string} valueEscaped optional. the escaped value of the property.\n */;\n _proto.appendToPropertyAndEscape = function appendToPropertyAndEscape(name, value, valueEscaped) {\n if (!this.raws) {\n this.raws = {};\n }\n var originalValue = this[name];\n var originalEscaped = this.raws[name];\n this[name] = originalValue + value; // this may trigger a setter that updates raws, so it has to be set first.\n if (originalEscaped || valueEscaped !== value) {\n this.raws[name] = (originalEscaped || originalValue) + valueEscaped;\n } else {\n delete this.raws[name]; // delete any escaped value that was created by the setter.\n }\n }\n\n /**\n * Some non-standard syntax doesn't follow normal escaping rules for css.\n * This allows the escaped value to be specified directly, allowing illegal\n * characters to be directly inserted into css output.\n * @param {string} name the property to set\n * @param {any} value the unescaped value of the property\n * @param {string} valueEscaped the escaped value of the property.\n */;\n _proto.setPropertyAndEscape = function setPropertyAndEscape(name, value, valueEscaped) {\n if (!this.raws) {\n this.raws = {};\n }\n this[name] = value; // this may trigger a setter that updates raws, so it has to be set first.\n this.raws[name] = valueEscaped;\n }\n\n /**\n * When you want a value to passed through to CSS directly. This method\n * deletes the corresponding raw value causing the stringifier to fallback\n * to the unescaped value.\n * @param {string} name the property to set.\n * @param {any} value The value that is both escaped and unescaped.\n */;\n _proto.setPropertyWithoutEscape = function setPropertyWithoutEscape(name, value) {\n this[name] = value; // this may trigger a setter that updates raws, so it has to be set first.\n if (this.raws) {\n delete this.raws[name];\n }\n }\n\n /**\n *\n * @param {number} line The number (starting with 1)\n * @param {number} column The column number (starting with 1)\n */;\n _proto.isAtPosition = function isAtPosition(line, column) {\n if (this.source && this.source.start && this.source.end) {\n if (this.source.start.line > line) {\n return false;\n }\n if (this.source.end.line < line) {\n return false;\n }\n if (this.source.start.line === line && this.source.start.column > column) {\n return false;\n }\n if (this.source.end.line === line && this.source.end.column < column) {\n return false;\n }\n return true;\n }\n return undefined;\n };\n _proto.stringifyProperty = function stringifyProperty(name) {\n return this.raws && this.raws[name] || this[name];\n };\n _proto.valueToString = function valueToString() {\n return String(this.stringifyProperty(\"value\"));\n };\n _proto.toString = function toString() {\n return [this.rawSpaceBefore, this.valueToString(), this.rawSpaceAfter].join('');\n };\n _createClass(Node, [{\n key: \"rawSpaceBefore\",\n get: function get() {\n var rawSpace = this.raws && this.raws.spaces && this.raws.spaces.before;\n if (rawSpace === undefined) {\n rawSpace = this.spaces && this.spaces.before;\n }\n return rawSpace || \"\";\n },\n set: function set(raw) {\n (0, _util.ensureObject)(this, \"raws\", \"spaces\");\n this.raws.spaces.before = raw;\n }\n }, {\n key: \"rawSpaceAfter\",\n get: function get() {\n var rawSpace = this.raws && this.raws.spaces && this.raws.spaces.after;\n if (rawSpace === undefined) {\n rawSpace = this.spaces.after;\n }\n return rawSpace || \"\";\n },\n set: function set(raw) {\n (0, _util.ensureObject)(this, \"raws\", \"spaces\");\n this.raws.spaces.after = raw;\n }\n }]);\n return Node;\n}();\nexports[\"default\"] = Node;\nmodule.exports = exports.default;", "\"use strict\";\n\nexports.__esModule = true;\nexports.UNIVERSAL = exports.TAG = exports.STRING = exports.SELECTOR = exports.ROOT = exports.PSEUDO = exports.NESTING = exports.ID = exports.COMMENT = exports.COMBINATOR = exports.CLASS = exports.ATTRIBUTE = void 0;\nvar TAG = 'tag';\nexports.TAG = TAG;\nvar STRING = 'string';\nexports.STRING = STRING;\nvar SELECTOR = 'selector';\nexports.SELECTOR = SELECTOR;\nvar ROOT = 'root';\nexports.ROOT = ROOT;\nvar PSEUDO = 'pseudo';\nexports.PSEUDO = PSEUDO;\nvar NESTING = 'nesting';\nexports.NESTING = NESTING;\nvar ID = 'id';\nexports.ID = ID;\nvar COMMENT = 'comment';\nexports.COMMENT = COMMENT;\nvar COMBINATOR = 'combinator';\nexports.COMBINATOR = COMBINATOR;\nvar CLASS = 'class';\nexports.CLASS = CLASS;\nvar ATTRIBUTE = 'attribute';\nexports.ATTRIBUTE = ATTRIBUTE;\nvar UNIVERSAL = 'universal';\nexports.UNIVERSAL = UNIVERSAL;", "\"use strict\";\n\nexports.__esModule = true;\nexports[\"default\"] = void 0;\nvar _node = _interopRequireDefault(require(\"./node\"));\nvar types = _interopRequireWildcard(require(\"./types\"));\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") { return { \"default\": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj[\"default\"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _createForOfIteratorHelperLoose(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nvar Container = /*#__PURE__*/function (_Node) {\n _inheritsLoose(Container, _Node);\n function Container(opts) {\n var _this;\n _this = _Node.call(this, opts) || this;\n if (!_this.nodes) {\n _this.nodes = [];\n }\n return _this;\n }\n var _proto = Container.prototype;\n _proto.append = function append(selector) {\n selector.parent = this;\n this.nodes.push(selector);\n return this;\n };\n _proto.prepend = function prepend(selector) {\n selector.parent = this;\n this.nodes.unshift(selector);\n return this;\n };\n _proto.at = function at(index) {\n return this.nodes[index];\n };\n _proto.index = function index(child) {\n if (typeof child === 'number') {\n return child;\n }\n return this.nodes.indexOf(child);\n };\n _proto.removeChild = function removeChild(child) {\n child = this.index(child);\n this.at(child).parent = undefined;\n this.nodes.splice(child, 1);\n var index;\n for (var id in this.indexes) {\n index = this.indexes[id];\n if (index >= child) {\n this.indexes[id] = index - 1;\n }\n }\n return this;\n };\n _proto.removeAll = function removeAll() {\n for (var _iterator = _createForOfIteratorHelperLoose(this.nodes), _step; !(_step = _iterator()).done;) {\n var node = _step.value;\n node.parent = undefined;\n }\n this.nodes = [];\n return this;\n };\n _proto.empty = function empty() {\n return this.removeAll();\n };\n _proto.insertAfter = function insertAfter(oldNode, newNode) {\n newNode.parent = this;\n var oldIndex = this.index(oldNode);\n this.nodes.splice(oldIndex + 1, 0, newNode);\n newNode.parent = this;\n var index;\n for (var id in this.indexes) {\n index = this.indexes[id];\n if (oldIndex <= index) {\n this.indexes[id] = index + 1;\n }\n }\n return this;\n };\n _proto.insertBefore = function insertBefore(oldNode, newNode) {\n newNode.parent = this;\n var oldIndex = this.index(oldNode);\n this.nodes.splice(oldIndex, 0, newNode);\n newNode.parent = this;\n var index;\n for (var id in this.indexes) {\n index = this.indexes[id];\n if (index <= oldIndex) {\n this.indexes[id] = index + 1;\n }\n }\n return this;\n };\n _proto._findChildAtPosition = function _findChildAtPosition(line, col) {\n var found = undefined;\n this.each(function (node) {\n if (node.atPosition) {\n var foundChild = node.atPosition(line, col);\n if (foundChild) {\n found = foundChild;\n return false;\n }\n } else if (node.isAtPosition(line, col)) {\n found = node;\n return false;\n }\n });\n return found;\n }\n\n /**\n * Return the most specific node at the line and column number given.\n * The source location is based on the original parsed location, locations aren't\n * updated as selector nodes are mutated.\n * \n * Note that this location is relative to the location of the first character\n * of the selector, and not the location of the selector in the overall document\n * when used in conjunction with postcss.\n *\n * If not found, returns undefined.\n * @param {number} line The line number of the node to find. (1-based index)\n * @param {number} col The column number of the node to find. (1-based index)\n */;\n _proto.atPosition = function atPosition(line, col) {\n if (this.isAtPosition(line, col)) {\n return this._findChildAtPosition(line, col) || this;\n } else {\n return undefined;\n }\n };\n _proto._inferEndPosition = function _inferEndPosition() {\n if (this.last && this.last.source && this.last.source.end) {\n this.source = this.source || {};\n this.source.end = this.source.end || {};\n Object.assign(this.source.end, this.last.source.end);\n }\n };\n _proto.each = function each(callback) {\n if (!this.lastEach) {\n this.lastEach = 0;\n }\n if (!this.indexes) {\n this.indexes = {};\n }\n this.lastEach++;\n var id = this.lastEach;\n this.indexes[id] = 0;\n if (!this.length) {\n return undefined;\n }\n var index, result;\n while (this.indexes[id] < this.length) {\n index = this.indexes[id];\n result = callback(this.at(index), index);\n if (result === false) {\n break;\n }\n this.indexes[id] += 1;\n }\n delete this.indexes[id];\n if (result === false) {\n return false;\n }\n };\n _proto.walk = function walk(callback) {\n return this.each(function (node, i) {\n var result = callback(node, i);\n if (result !== false && node.length) {\n result = node.walk(callback);\n }\n if (result === false) {\n return false;\n }\n });\n };\n _proto.walkAttributes = function walkAttributes(callback) {\n var _this2 = this;\n return this.walk(function (selector) {\n if (selector.type === types.ATTRIBUTE) {\n return callback.call(_this2, selector);\n }\n });\n };\n _proto.walkClasses = function walkClasses(callback) {\n var _this3 = this;\n return this.walk(function (selector) {\n if (selector.type === types.CLASS) {\n return callback.call(_this3, selector);\n }\n });\n };\n _proto.walkCombinators = function walkCombinators(callback) {\n var _this4 = this;\n return this.walk(function (selector) {\n if (selector.type === types.COMBINATOR) {\n return callback.call(_this4, selector);\n }\n });\n };\n _proto.walkComments = function walkComments(callback) {\n var _this5 = this;\n return this.walk(function (selector) {\n if (selector.type === types.COMMENT) {\n return callback.call(_this5, selector);\n }\n });\n };\n _proto.walkIds = function walkIds(callback) {\n var _this6 = this;\n return this.walk(function (selector) {\n if (selector.type === types.ID) {\n return callback.call(_this6, selector);\n }\n });\n };\n _proto.walkNesting = function walkNesting(callback) {\n var _this7 = this;\n return this.walk(function (selector) {\n if (selector.type === types.NESTING) {\n return callback.call(_this7, selector);\n }\n });\n };\n _proto.walkPseudos = function walkPseudos(callback) {\n var _this8 = this;\n return this.walk(function (selector) {\n if (selector.type === types.PSEUDO) {\n return callback.call(_this8, selector);\n }\n });\n };\n _proto.walkTags = function walkTags(callback) {\n var _this9 = this;\n return this.walk(function (selector) {\n if (selector.type === types.TAG) {\n return callback.call(_this9, selector);\n }\n });\n };\n _proto.walkUniversals = function walkUniversals(callback) {\n var _this10 = this;\n return this.walk(function (selector) {\n if (selector.type === types.UNIVERSAL) {\n return callback.call(_this10, selector);\n }\n });\n };\n _proto.split = function split(callback) {\n var _this11 = this;\n var current = [];\n return this.reduce(function (memo, node, index) {\n var split = callback.call(_this11, node);\n current.push(node);\n if (split) {\n memo.push(current);\n current = [];\n } else if (index === _this11.length - 1) {\n memo.push(current);\n }\n return memo;\n }, []);\n };\n _proto.map = function map(callback) {\n return this.nodes.map(callback);\n };\n _proto.reduce = function reduce(callback, memo) {\n return this.nodes.reduce(callback, memo);\n };\n _proto.every = function every(callback) {\n return this.nodes.every(callback);\n };\n _proto.some = function some(callback) {\n return this.nodes.some(callback);\n };\n _proto.filter = function filter(callback) {\n return this.nodes.filter(callback);\n };\n _proto.sort = function sort(callback) {\n return this.nodes.sort(callback);\n };\n _proto.toString = function toString() {\n return this.map(String).join('');\n };\n _createClass(Container, [{\n key: \"first\",\n get: function get() {\n return this.at(0);\n }\n }, {\n key: \"last\",\n get: function get() {\n return this.at(this.length - 1);\n }\n }, {\n key: \"length\",\n get: function get() {\n return this.nodes.length;\n }\n }]);\n return Container;\n}(_node[\"default\"]);\nexports[\"default\"] = Container;\nmodule.exports = exports.default;", "\"use strict\";\n\nexports.__esModule = true;\nexports[\"default\"] = void 0;\nvar _container = _interopRequireDefault(require(\"./container\"));\nvar _types = require(\"./types\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nvar Root = /*#__PURE__*/function (_Container) {\n _inheritsLoose(Root, _Container);\n function Root(opts) {\n var _this;\n _this = _Container.call(this, opts) || this;\n _this.type = _types.ROOT;\n return _this;\n }\n var _proto = Root.prototype;\n _proto.toString = function toString() {\n var str = this.reduce(function (memo, selector) {\n memo.push(String(selector));\n return memo;\n }, []).join(',');\n return this.trailingComma ? str + ',' : str;\n };\n _proto.error = function error(message, options) {\n if (this._error) {\n return this._error(message, options);\n } else {\n return new Error(message);\n }\n };\n _createClass(Root, [{\n key: \"errorGenerator\",\n set: function set(handler) {\n this._error = handler;\n }\n }]);\n return Root;\n}(_container[\"default\"]);\nexports[\"default\"] = Root;\nmodule.exports = exports.default;", "\"use strict\";\n\nexports.__esModule = true;\nexports[\"default\"] = void 0;\nvar _container = _interopRequireDefault(require(\"./container\"));\nvar _types = require(\"./types\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nvar Selector = /*#__PURE__*/function (_Container) {\n _inheritsLoose(Selector, _Container);\n function Selector(opts) {\n var _this;\n _this = _Container.call(this, opts) || this;\n _this.type = _types.SELECTOR;\n return _this;\n }\n return Selector;\n}(_container[\"default\"]);\nexports[\"default\"] = Selector;\nmodule.exports = exports.default;", "/*! https://mths.be/cssesc v3.0.0 by @mathias */\n'use strict';\n\nvar object = {};\nvar hasOwnProperty = object.hasOwnProperty;\nvar merge = function merge(options, defaults) {\n\tif (!options) {\n\t\treturn defaults;\n\t}\n\tvar result = {};\n\tfor (var key in defaults) {\n\t\t// `if (defaults.hasOwnProperty(key) { \u2026 }` is not needed here, since\n\t\t// only recognized option names are used.\n\t\tresult[key] = hasOwnProperty.call(options, key) ? options[key] : defaults[key];\n\t}\n\treturn result;\n};\n\nvar regexAnySingleEscape = /[ -,\\.\\/:-@\\[-\\^`\\{-~]/;\nvar regexSingleEscape = /[ -,\\.\\/:-@\\[\\]\\^`\\{-~]/;\nvar regexAlwaysEscape = /['\"\\\\]/;\nvar regexExcessiveSpaces = /(^|\\\\+)?(\\\\[A-F0-9]{1,6})\\x20(?![a-fA-F0-9\\x20])/g;\n\n// https://mathiasbynens.be/notes/css-escapes#css\nvar cssesc = function cssesc(string, options) {\n\toptions = merge(options, cssesc.options);\n\tif (options.quotes != 'single' && options.quotes != 'double') {\n\t\toptions.quotes = 'single';\n\t}\n\tvar quote = options.quotes == 'double' ? '\"' : '\\'';\n\tvar isIdentifier = options.isIdentifier;\n\n\tvar firstChar = string.charAt(0);\n\tvar output = '';\n\tvar counter = 0;\n\tvar length = string.length;\n\twhile (counter < length) {\n\t\tvar character = string.charAt(counter++);\n\t\tvar codePoint = character.charCodeAt();\n\t\tvar value = void 0;\n\t\t// If it\u2019s not a printable ASCII character\u2026\n\t\tif (codePoint < 0x20 || codePoint > 0x7E) {\n\t\t\tif (codePoint >= 0xD800 && codePoint <= 0xDBFF && counter < length) {\n\t\t\t\t// It\u2019s a high surrogate, and there is a next character.\n\t\t\t\tvar extra = string.charCodeAt(counter++);\n\t\t\t\tif ((extra & 0xFC00) == 0xDC00) {\n\t\t\t\t\t// next character is low surrogate\n\t\t\t\t\tcodePoint = ((codePoint & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000;\n\t\t\t\t} else {\n\t\t\t\t\t// It\u2019s an unmatched surrogate; only append this code unit, in case\n\t\t\t\t\t// the next code unit is the high surrogate of a surrogate pair.\n\t\t\t\t\tcounter--;\n\t\t\t\t}\n\t\t\t}\n\t\t\tvalue = '\\\\' + codePoint.toString(16).toUpperCase() + ' ';\n\t\t} else {\n\t\t\tif (options.escapeEverything) {\n\t\t\t\tif (regexAnySingleEscape.test(character)) {\n\t\t\t\t\tvalue = '\\\\' + character;\n\t\t\t\t} else {\n\t\t\t\t\tvalue = '\\\\' + codePoint.toString(16).toUpperCase() + ' ';\n\t\t\t\t}\n\t\t\t} else if (/[\\t\\n\\f\\r\\x0B]/.test(character)) {\n\t\t\t\tvalue = '\\\\' + codePoint.toString(16).toUpperCase() + ' ';\n\t\t\t} else if (character == '\\\\' || !isIdentifier && (character == '\"' && quote == character || character == '\\'' && quote == character) || isIdentifier && regexSingleEscape.test(character)) {\n\t\t\t\tvalue = '\\\\' + character;\n\t\t\t} else {\n\t\t\t\tvalue = character;\n\t\t\t}\n\t\t}\n\t\toutput += value;\n\t}\n\n\tif (isIdentifier) {\n\t\tif (/^-[-\\d]/.test(output)) {\n\t\t\toutput = '\\\\-' + output.slice(1);\n\t\t} else if (/\\d/.test(firstChar)) {\n\t\t\toutput = '\\\\3' + firstChar + ' ' + output.slice(1);\n\t\t}\n\t}\n\n\t// Remove spaces after `\\HEX` escapes that are not followed by a hex digit,\n\t// since they\u2019re redundant. Note that this is only possible if the escape\n\t// sequence isn\u2019t preceded by an odd number of backslashes.\n\toutput = output.replace(regexExcessiveSpaces, function ($0, $1, $2) {\n\t\tif ($1 && $1.length % 2) {\n\t\t\t// It\u2019s not safe to remove the space, so don\u2019t.\n\t\t\treturn $0;\n\t\t}\n\t\t// Strip the space.\n\t\treturn ($1 || '') + $2;\n\t});\n\n\tif (!isIdentifier && options.wrap) {\n\t\treturn quote + output + quote;\n\t}\n\treturn output;\n};\n\n// Expose default options (so they can be overridden globally).\ncssesc.options = {\n\t'escapeEverything': false,\n\t'isIdentifier': false,\n\t'quotes': 'single',\n\t'wrap': false\n};\n\ncssesc.version = '3.0.0';\n\nmodule.exports = cssesc;\n", "\"use strict\";\n\nexports.__esModule = true;\nexports[\"default\"] = void 0;\nvar _cssesc = _interopRequireDefault(require(\"cssesc\"));\nvar _util = require(\"../util\");\nvar _node = _interopRequireDefault(require(\"./node\"));\nvar _types = require(\"./types\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nvar ClassName = /*#__PURE__*/function (_Node) {\n _inheritsLoose(ClassName, _Node);\n function ClassName(opts) {\n var _this;\n _this = _Node.call(this, opts) || this;\n _this.type = _types.CLASS;\n _this._constructed = true;\n return _this;\n }\n var _proto = ClassName.prototype;\n _proto.valueToString = function valueToString() {\n return '.' + _Node.prototype.valueToString.call(this);\n };\n _createClass(ClassName, [{\n key: \"value\",\n get: function get() {\n return this._value;\n },\n set: function set(v) {\n if (this._constructed) {\n var escaped = (0, _cssesc[\"default\"])(v, {\n isIdentifier: true\n });\n if (escaped !== v) {\n (0, _util.ensureObject)(this, \"raws\");\n this.raws.value = escaped;\n } else if (this.raws) {\n delete this.raws.value;\n }\n }\n this._value = v;\n }\n }]);\n return ClassName;\n}(_node[\"default\"]);\nexports[\"default\"] = ClassName;\nmodule.exports = exports.default;", "\"use strict\";\n\nexports.__esModule = true;\nexports[\"default\"] = void 0;\nvar _node = _interopRequireDefault(require(\"./node\"));\nvar _types = require(\"./types\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nvar Comment = /*#__PURE__*/function (_Node) {\n _inheritsLoose(Comment, _Node);\n function Comment(opts) {\n var _this;\n _this = _Node.call(this, opts) || this;\n _this.type = _types.COMMENT;\n return _this;\n }\n return Comment;\n}(_node[\"default\"]);\nexports[\"default\"] = Comment;\nmodule.exports = exports.default;", "\"use strict\";\n\nexports.__esModule = true;\nexports[\"default\"] = void 0;\nvar _node = _interopRequireDefault(require(\"./node\"));\nvar _types = require(\"./types\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nvar ID = /*#__PURE__*/function (_Node) {\n _inheritsLoose(ID, _Node);\n function ID(opts) {\n var _this;\n _this = _Node.call(this, opts) || this;\n _this.type = _types.ID;\n return _this;\n }\n var _proto = ID.prototype;\n _proto.valueToString = function valueToString() {\n return '#' + _Node.prototype.valueToString.call(this);\n };\n return ID;\n}(_node[\"default\"]);\nexports[\"default\"] = ID;\nmodule.exports = exports.default;", "\"use strict\";\n\nexports.__esModule = true;\nexports[\"default\"] = void 0;\nvar _cssesc = _interopRequireDefault(require(\"cssesc\"));\nvar _util = require(\"../util\");\nvar _node = _interopRequireDefault(require(\"./node\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nvar Namespace = /*#__PURE__*/function (_Node) {\n _inheritsLoose(Namespace, _Node);\n function Namespace() {\n return _Node.apply(this, arguments) || this;\n }\n var _proto = Namespace.prototype;\n _proto.qualifiedName = function qualifiedName(value) {\n if (this.namespace) {\n return this.namespaceString + \"|\" + value;\n } else {\n return value;\n }\n };\n _proto.valueToString = function valueToString() {\n return this.qualifiedName(_Node.prototype.valueToString.call(this));\n };\n _createClass(Namespace, [{\n key: \"namespace\",\n get: function get() {\n return this._namespace;\n },\n set: function set(namespace) {\n if (namespace === true || namespace === \"*\" || namespace === \"&\") {\n this._namespace = namespace;\n if (this.raws) {\n delete this.raws.namespace;\n }\n return;\n }\n var escaped = (0, _cssesc[\"default\"])(namespace, {\n isIdentifier: true\n });\n this._namespace = namespace;\n if (escaped !== namespace) {\n (0, _util.ensureObject)(this, \"raws\");\n this.raws.namespace = escaped;\n } else if (this.raws) {\n delete this.raws.namespace;\n }\n }\n }, {\n key: \"ns\",\n get: function get() {\n return this._namespace;\n },\n set: function set(namespace) {\n this.namespace = namespace;\n }\n }, {\n key: \"namespaceString\",\n get: function get() {\n if (this.namespace) {\n var ns = this.stringifyProperty(\"namespace\");\n if (ns === true) {\n return '';\n } else {\n return ns;\n }\n } else {\n return '';\n }\n }\n }]);\n return Namespace;\n}(_node[\"default\"]);\nexports[\"default\"] = Namespace;\n;\nmodule.exports = exports.default;", "\"use strict\";\n\nexports.__esModule = true;\nexports[\"default\"] = void 0;\nvar _namespace = _interopRequireDefault(require(\"./namespace\"));\nvar _types = require(\"./types\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nvar Tag = /*#__PURE__*/function (_Namespace) {\n _inheritsLoose(Tag, _Namespace);\n function Tag(opts) {\n var _this;\n _this = _Namespace.call(this, opts) || this;\n _this.type = _types.TAG;\n return _this;\n }\n return Tag;\n}(_namespace[\"default\"]);\nexports[\"default\"] = Tag;\nmodule.exports = exports.default;", "\"use strict\";\n\nexports.__esModule = true;\nexports[\"default\"] = void 0;\nvar _node = _interopRequireDefault(require(\"./node\"));\nvar _types = require(\"./types\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nvar String = /*#__PURE__*/function (_Node) {\n _inheritsLoose(String, _Node);\n function String(opts) {\n var _this;\n _this = _Node.call(this, opts) || this;\n _this.type = _types.STRING;\n return _this;\n }\n return String;\n}(_node[\"default\"]);\nexports[\"default\"] = String;\nmodule.exports = exports.default;", "\"use strict\";\n\nexports.__esModule = true;\nexports[\"default\"] = void 0;\nvar _container = _interopRequireDefault(require(\"./container\"));\nvar _types = require(\"./types\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nvar Pseudo = /*#__PURE__*/function (_Container) {\n _inheritsLoose(Pseudo, _Container);\n function Pseudo(opts) {\n var _this;\n _this = _Container.call(this, opts) || this;\n _this.type = _types.PSEUDO;\n return _this;\n }\n var _proto = Pseudo.prototype;\n _proto.toString = function toString() {\n var params = this.length ? '(' + this.map(String).join(',') + ')' : '';\n return [this.rawSpaceBefore, this.stringifyProperty(\"value\"), params, this.rawSpaceAfter].join('');\n };\n return Pseudo;\n}(_container[\"default\"]);\nexports[\"default\"] = Pseudo;\nmodule.exports = exports.default;", "\n/**\n * Module exports.\n */\n\nmodule.exports = deprecate;\n\n/**\n * Mark that a method should not be used.\n * Returns a modified function which warns once by default.\n *\n * If `localStorage.noDeprecation = true` is set, then it is a no-op.\n *\n * If `localStorage.throwDeprecation = true` is set, then deprecated functions\n * will throw an Error when invoked.\n *\n * If `localStorage.traceDeprecation = true` is set, then deprecated functions\n * will invoke `console.trace()` instead of `console.error()`.\n *\n * @param {Function} fn - the function to deprecate\n * @param {String} msg - the string to print to the console when `fn` is invoked\n * @returns {Function} a new \"deprecated\" version of `fn`\n * @api public\n */\n\nfunction deprecate (fn, msg) {\n if (config('noDeprecation')) {\n return fn;\n }\n\n var warned = false;\n function deprecated() {\n if (!warned) {\n if (config('throwDeprecation')) {\n throw new Error(msg);\n } else if (config('traceDeprecation')) {\n console.trace(msg);\n } else {\n console.warn(msg);\n }\n warned = true;\n }\n return fn.apply(this, arguments);\n }\n\n return deprecated;\n}\n\n/**\n * Checks `localStorage` for boolean values for the given `name`.\n *\n * @param {String} name\n * @returns {Boolean}\n * @api private\n */\n\nfunction config (name) {\n // accessing global.localStorage can trigger a DOMException in sandboxed iframes\n try {\n if (!global.localStorage) return false;\n } catch (_) {\n return false;\n }\n var val = global.localStorage[name];\n if (null == val) return false;\n return String(val).toLowerCase() === 'true';\n}\n", "\"use strict\";\n\nexports.__esModule = true;\nexports[\"default\"] = void 0;\nexports.unescapeValue = unescapeValue;\nvar _cssesc = _interopRequireDefault(require(\"cssesc\"));\nvar _unesc = _interopRequireDefault(require(\"../util/unesc\"));\nvar _namespace = _interopRequireDefault(require(\"./namespace\"));\nvar _types = require(\"./types\");\nvar _CSSESC_QUOTE_OPTIONS;\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nvar deprecate = require(\"util-deprecate\");\nvar WRAPPED_IN_QUOTES = /^('|\")([^]*)\\1$/;\nvar warnOfDeprecatedValueAssignment = deprecate(function () {}, \"Assigning an attribute a value containing characters that might need to be escaped is deprecated. \" + \"Call attribute.setValue() instead.\");\nvar warnOfDeprecatedQuotedAssignment = deprecate(function () {}, \"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead.\");\nvar warnOfDeprecatedConstructor = deprecate(function () {}, \"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.\");\nfunction unescapeValue(value) {\n var deprecatedUsage = false;\n var quoteMark = null;\n var unescaped = value;\n var m = unescaped.match(WRAPPED_IN_QUOTES);\n if (m) {\n quoteMark = m[1];\n unescaped = m[2];\n }\n unescaped = (0, _unesc[\"default\"])(unescaped);\n if (unescaped !== value) {\n deprecatedUsage = true;\n }\n return {\n deprecatedUsage: deprecatedUsage,\n unescaped: unescaped,\n quoteMark: quoteMark\n };\n}\nfunction handleDeprecatedContructorOpts(opts) {\n if (opts.quoteMark !== undefined) {\n return opts;\n }\n if (opts.value === undefined) {\n return opts;\n }\n warnOfDeprecatedConstructor();\n var _unescapeValue = unescapeValue(opts.value),\n quoteMark = _unescapeValue.quoteMark,\n unescaped = _unescapeValue.unescaped;\n if (!opts.raws) {\n opts.raws = {};\n }\n if (opts.raws.value === undefined) {\n opts.raws.value = opts.value;\n }\n opts.value = unescaped;\n opts.quoteMark = quoteMark;\n return opts;\n}\nvar Attribute = /*#__PURE__*/function (_Namespace) {\n _inheritsLoose(Attribute, _Namespace);\n function Attribute(opts) {\n var _this;\n if (opts === void 0) {\n opts = {};\n }\n _this = _Namespace.call(this, handleDeprecatedContructorOpts(opts)) || this;\n _this.type = _types.ATTRIBUTE;\n _this.raws = _this.raws || {};\n Object.defineProperty(_this.raws, 'unquoted', {\n get: deprecate(function () {\n return _this.value;\n }, \"attr.raws.unquoted is deprecated. Call attr.value instead.\"),\n set: deprecate(function () {\n return _this.value;\n }, \"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.\")\n });\n _this._constructed = true;\n return _this;\n }\n\n /**\n * Returns the Attribute's value quoted such that it would be legal to use\n * in the value of a css file. The original value's quotation setting\n * used for stringification is left unchanged. See `setValue(value, options)`\n * if you want to control the quote settings of a new value for the attribute.\n *\n * You can also change the quotation used for the current value by setting quoteMark.\n *\n * Options:\n * * quoteMark {'\"' | \"'\" | null} - Use this value to quote the value. If this\n * option is not set, the original value for quoteMark will be used. If\n * indeterminate, a double quote is used. The legal values are:\n * * `null` - the value will be unquoted and characters will be escaped as necessary.\n * * `'` - the value will be quoted with a single quote and single quotes are escaped.\n * * `\"` - the value will be quoted with a double quote and double quotes are escaped.\n * * preferCurrentQuoteMark {boolean} - if true, prefer the source quote mark\n * over the quoteMark option value.\n * * smart {boolean} - if true, will select a quote mark based on the value\n * and the other options specified here. See the `smartQuoteMark()`\n * method.\n **/\n var _proto = Attribute.prototype;\n _proto.getQuotedValue = function getQuotedValue(options) {\n if (options === void 0) {\n options = {};\n }\n var quoteMark = this._determineQuoteMark(options);\n var cssescopts = CSSESC_QUOTE_OPTIONS[quoteMark];\n var escaped = (0, _cssesc[\"default\"])(this._value, cssescopts);\n return escaped;\n };\n _proto._determineQuoteMark = function _determineQuoteMark(options) {\n return options.smart ? this.smartQuoteMark(options) : this.preferredQuoteMark(options);\n }\n\n /**\n * Set the unescaped value with the specified quotation options. The value\n * provided must not include any wrapping quote marks -- those quotes will\n * be interpreted as part of the value and escaped accordingly.\n */;\n _proto.setValue = function setValue(value, options) {\n if (options === void 0) {\n options = {};\n }\n this._value = value;\n this._quoteMark = this._determineQuoteMark(options);\n this._syncRawValue();\n }\n\n /**\n * Intelligently select a quoteMark value based on the value's contents. If\n * the value is a legal CSS ident, it will not be quoted. Otherwise a quote\n * mark will be picked that minimizes the number of escapes.\n *\n * If there's no clear winner, the quote mark from these options is used,\n * then the source quote mark (this is inverted if `preferCurrentQuoteMark` is\n * true). If the quoteMark is unspecified, a double quote is used.\n *\n * @param options This takes the quoteMark and preferCurrentQuoteMark options\n * from the quoteValue method.\n */;\n _proto.smartQuoteMark = function smartQuoteMark(options) {\n var v = this.value;\n var numSingleQuotes = v.replace(/[^']/g, '').length;\n var numDoubleQuotes = v.replace(/[^\"]/g, '').length;\n if (numSingleQuotes + numDoubleQuotes === 0) {\n var escaped = (0, _cssesc[\"default\"])(v, {\n isIdentifier: true\n });\n if (escaped === v) {\n return Attribute.NO_QUOTE;\n } else {\n var pref = this.preferredQuoteMark(options);\n if (pref === Attribute.NO_QUOTE) {\n // pick a quote mark that isn't none and see if it's smaller\n var quote = this.quoteMark || options.quoteMark || Attribute.DOUBLE_QUOTE;\n var opts = CSSESC_QUOTE_OPTIONS[quote];\n var quoteValue = (0, _cssesc[\"default\"])(v, opts);\n if (quoteValue.length < escaped.length) {\n return quote;\n }\n }\n return pref;\n }\n } else if (numDoubleQuotes === numSingleQuotes) {\n return this.preferredQuoteMark(options);\n } else if (numDoubleQuotes < numSingleQuotes) {\n return Attribute.DOUBLE_QUOTE;\n } else {\n return Attribute.SINGLE_QUOTE;\n }\n }\n\n /**\n * Selects the preferred quote mark based on the options and the current quote mark value.\n * If you want the quote mark to depend on the attribute value, call `smartQuoteMark(opts)`\n * instead.\n */;\n _proto.preferredQuoteMark = function preferredQuoteMark(options) {\n var quoteMark = options.preferCurrentQuoteMark ? this.quoteMark : options.quoteMark;\n if (quoteMark === undefined) {\n quoteMark = options.preferCurrentQuoteMark ? options.quoteMark : this.quoteMark;\n }\n if (quoteMark === undefined) {\n quoteMark = Attribute.DOUBLE_QUOTE;\n }\n return quoteMark;\n };\n _proto._syncRawValue = function _syncRawValue() {\n var rawValue = (0, _cssesc[\"default\"])(this._value, CSSESC_QUOTE_OPTIONS[this.quoteMark]);\n if (rawValue === this._value) {\n if (this.raws) {\n delete this.raws.value;\n }\n } else {\n this.raws.value = rawValue;\n }\n };\n _proto._handleEscapes = function _handleEscapes(prop, value) {\n if (this._constructed) {\n var escaped = (0, _cssesc[\"default\"])(value, {\n isIdentifier: true\n });\n if (escaped !== value) {\n this.raws[prop] = escaped;\n } else {\n delete this.raws[prop];\n }\n }\n };\n _proto._spacesFor = function _spacesFor(name) {\n var attrSpaces = {\n before: '',\n after: ''\n };\n var spaces = this.spaces[name] || {};\n var rawSpaces = this.raws.spaces && this.raws.spaces[name] || {};\n return Object.assign(attrSpaces, spaces, rawSpaces);\n };\n _proto._stringFor = function _stringFor(name, spaceName, concat) {\n if (spaceName === void 0) {\n spaceName = name;\n }\n if (concat === void 0) {\n concat = defaultAttrConcat;\n }\n var attrSpaces = this._spacesFor(spaceName);\n return concat(this.stringifyProperty(name), attrSpaces);\n }\n\n /**\n * returns the offset of the attribute part specified relative to the\n * start of the node of the output string.\n *\n * * \"ns\" - alias for \"namespace\"\n * * \"namespace\" - the namespace if it exists.\n * * \"attribute\" - the attribute name\n * * \"attributeNS\" - the start of the attribute or its namespace\n * * \"operator\" - the match operator of the attribute\n * * \"value\" - The value (string or identifier)\n * * \"insensitive\" - the case insensitivity flag;\n * @param part One of the possible values inside an attribute.\n * @returns -1 if the name is invalid or the value doesn't exist in this attribute.\n */;\n _proto.offsetOf = function offsetOf(name) {\n var count = 1;\n var attributeSpaces = this._spacesFor(\"attribute\");\n count += attributeSpaces.before.length;\n if (name === \"namespace\" || name === \"ns\") {\n return this.namespace ? count : -1;\n }\n if (name === \"attributeNS\") {\n return count;\n }\n count += this.namespaceString.length;\n if (this.namespace) {\n count += 1;\n }\n if (name === \"attribute\") {\n return count;\n }\n count += this.stringifyProperty(\"attribute\").length;\n count += attributeSpaces.after.length;\n var operatorSpaces = this._spacesFor(\"operator\");\n count += operatorSpaces.before.length;\n var operator = this.stringifyProperty(\"operator\");\n if (name === \"operator\") {\n return operator ? count : -1;\n }\n count += operator.length;\n count += operatorSpaces.after.length;\n var valueSpaces = this._spacesFor(\"value\");\n count += valueSpaces.before.length;\n var value = this.stringifyProperty(\"value\");\n if (name === \"value\") {\n return value ? count : -1;\n }\n count += value.length;\n count += valueSpaces.after.length;\n var insensitiveSpaces = this._spacesFor(\"insensitive\");\n count += insensitiveSpaces.before.length;\n if (name === \"insensitive\") {\n return this.insensitive ? count : -1;\n }\n return -1;\n };\n _proto.toString = function toString() {\n var _this2 = this;\n var selector = [this.rawSpaceBefore, '['];\n selector.push(this._stringFor('qualifiedAttribute', 'attribute'));\n if (this.operator && (this.value || this.value === '')) {\n selector.push(this._stringFor('operator'));\n selector.push(this._stringFor('value'));\n selector.push(this._stringFor('insensitiveFlag', 'insensitive', function (attrValue, attrSpaces) {\n if (attrValue.length > 0 && !_this2.quoted && attrSpaces.before.length === 0 && !(_this2.spaces.value && _this2.spaces.value.after)) {\n attrSpaces.before = \" \";\n }\n return defaultAttrConcat(attrValue, attrSpaces);\n }));\n }\n selector.push(']');\n selector.push(this.rawSpaceAfter);\n return selector.join('');\n };\n _createClass(Attribute, [{\n key: \"quoted\",\n get: function get() {\n var qm = this.quoteMark;\n return qm === \"'\" || qm === '\"';\n },\n set: function set(value) {\n warnOfDeprecatedQuotedAssignment();\n }\n\n /**\n * returns a single (`'`) or double (`\"`) quote character if the value is quoted.\n * returns `null` if the value is not quoted.\n * returns `undefined` if the quotation state is unknown (this can happen when\n * the attribute is constructed without specifying a quote mark.)\n */\n }, {\n key: \"quoteMark\",\n get: function get() {\n return this._quoteMark;\n }\n\n /**\n * Set the quote mark to be used by this attribute's value.\n * If the quote mark changes, the raw (escaped) value at `attr.raws.value` of the attribute\n * value is updated accordingly.\n *\n * @param {\"'\" | '\"' | null} quoteMark The quote mark or `null` if the value should be unquoted.\n */,\n set: function set(quoteMark) {\n if (!this._constructed) {\n this._quoteMark = quoteMark;\n return;\n }\n if (this._quoteMark !== quoteMark) {\n this._quoteMark = quoteMark;\n this._syncRawValue();\n }\n }\n }, {\n key: \"qualifiedAttribute\",\n get: function get() {\n return this.qualifiedName(this.raws.attribute || this.attribute);\n }\n }, {\n key: \"insensitiveFlag\",\n get: function get() {\n return this.insensitive ? 'i' : '';\n }\n }, {\n key: \"value\",\n get: function get() {\n return this._value;\n },\n set:\n /**\n * Before 3.0, the value had to be set to an escaped value including any wrapped\n * quote marks. In 3.0, the semantics of `Attribute.value` changed so that the value\n * is unescaped during parsing and any quote marks are removed.\n *\n * Because the ambiguity of this semantic change, if you set `attr.value = newValue`,\n * a deprecation warning is raised when the new value contains any characters that would\n * require escaping (including if it contains wrapped quotes).\n *\n * Instead, you should call `attr.setValue(newValue, opts)` and pass options that describe\n * how the new value is quoted.\n */\n function set(v) {\n if (this._constructed) {\n var _unescapeValue2 = unescapeValue(v),\n deprecatedUsage = _unescapeValue2.deprecatedUsage,\n unescaped = _unescapeValue2.unescaped,\n quoteMark = _unescapeValue2.quoteMark;\n if (deprecatedUsage) {\n warnOfDeprecatedValueAssignment();\n }\n if (unescaped === this._value && quoteMark === this._quoteMark) {\n return;\n }\n this._value = unescaped;\n this._quoteMark = quoteMark;\n this._syncRawValue();\n } else {\n this._value = v;\n }\n }\n }, {\n key: \"insensitive\",\n get: function get() {\n return this._insensitive;\n }\n\n /**\n * Set the case insensitive flag.\n * If the case insensitive flag changes, the raw (escaped) value at `attr.raws.insensitiveFlag`\n * of the attribute is updated accordingly.\n *\n * @param {true | false} insensitive true if the attribute should match case-insensitively.\n */,\n set: function set(insensitive) {\n if (!insensitive) {\n this._insensitive = false;\n\n // \"i\" and \"I\" can be used in \"this.raws.insensitiveFlag\" to store the original notation.\n // When setting `attr.insensitive = false` both should be erased to ensure correct serialization.\n if (this.raws && (this.raws.insensitiveFlag === 'I' || this.raws.insensitiveFlag === 'i')) {\n this.raws.insensitiveFlag = undefined;\n }\n }\n this._insensitive = insensitive;\n }\n }, {\n key: \"attribute\",\n get: function get() {\n return this._attribute;\n },\n set: function set(name) {\n this._handleEscapes(\"attribute\", name);\n this._attribute = name;\n }\n }]);\n return Attribute;\n}(_namespace[\"default\"]);\nexports[\"default\"] = Attribute;\nAttribute.NO_QUOTE = null;\nAttribute.SINGLE_QUOTE = \"'\";\nAttribute.DOUBLE_QUOTE = '\"';\nvar CSSESC_QUOTE_OPTIONS = (_CSSESC_QUOTE_OPTIONS = {\n \"'\": {\n quotes: 'single',\n wrap: true\n },\n '\"': {\n quotes: 'double',\n wrap: true\n }\n}, _CSSESC_QUOTE_OPTIONS[null] = {\n isIdentifier: true\n}, _CSSESC_QUOTE_OPTIONS);\nfunction defaultAttrConcat(attrValue, attrSpaces) {\n return \"\" + attrSpaces.before + attrValue + attrSpaces.after;\n}", "\"use strict\";\n\nexports.__esModule = true;\nexports[\"default\"] = void 0;\nvar _namespace = _interopRequireDefault(require(\"./namespace\"));\nvar _types = require(\"./types\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nvar Universal = /*#__PURE__*/function (_Namespace) {\n _inheritsLoose(Universal, _Namespace);\n function Universal(opts) {\n var _this;\n _this = _Namespace.call(this, opts) || this;\n _this.type = _types.UNIVERSAL;\n _this.value = '*';\n return _this;\n }\n return Universal;\n}(_namespace[\"default\"]);\nexports[\"default\"] = Universal;\nmodule.exports = exports.default;", "\"use strict\";\n\nexports.__esModule = true;\nexports[\"default\"] = void 0;\nvar _node = _interopRequireDefault(require(\"./node\"));\nvar _types = require(\"./types\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nvar Combinator = /*#__PURE__*/function (_Node) {\n _inheritsLoose(Combinator, _Node);\n function Combinator(opts) {\n var _this;\n _this = _Node.call(this, opts) || this;\n _this.type = _types.COMBINATOR;\n return _this;\n }\n return Combinator;\n}(_node[\"default\"]);\nexports[\"default\"] = Combinator;\nmodule.exports = exports.default;", "\"use strict\";\n\nexports.__esModule = true;\nexports[\"default\"] = void 0;\nvar _node = _interopRequireDefault(require(\"./node\"));\nvar _types = require(\"./types\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nvar Nesting = /*#__PURE__*/function (_Node) {\n _inheritsLoose(Nesting, _Node);\n function Nesting(opts) {\n var _this;\n _this = _Node.call(this, opts) || this;\n _this.type = _types.NESTING;\n _this.value = '&';\n return _this;\n }\n return Nesting;\n}(_node[\"default\"]);\nexports[\"default\"] = Nesting;\nmodule.exports = exports.default;", "\"use strict\";\n\nexports.__esModule = true;\nexports[\"default\"] = sortAscending;\nfunction sortAscending(list) {\n return list.sort(function (a, b) {\n return a - b;\n });\n}\n;\nmodule.exports = exports.default;", "\"use strict\";\n\nexports.__esModule = true;\nexports.word = exports.tilde = exports.tab = exports.str = exports.space = exports.slash = exports.singleQuote = exports.semicolon = exports.plus = exports.pipe = exports.openSquare = exports.openParenthesis = exports.newline = exports.greaterThan = exports.feed = exports.equals = exports.doubleQuote = exports.dollar = exports.cr = exports.comment = exports.comma = exports.combinator = exports.colon = exports.closeSquare = exports.closeParenthesis = exports.caret = exports.bang = exports.backslash = exports.at = exports.asterisk = exports.ampersand = void 0;\nvar ampersand = 38; // `&`.charCodeAt(0);\nexports.ampersand = ampersand;\nvar asterisk = 42; // `*`.charCodeAt(0);\nexports.asterisk = asterisk;\nvar at = 64; // `@`.charCodeAt(0);\nexports.at = at;\nvar comma = 44; // `,`.charCodeAt(0);\nexports.comma = comma;\nvar colon = 58; // `:`.charCodeAt(0);\nexports.colon = colon;\nvar semicolon = 59; // `;`.charCodeAt(0);\nexports.semicolon = semicolon;\nvar openParenthesis = 40; // `(`.charCodeAt(0);\nexports.openParenthesis = openParenthesis;\nvar closeParenthesis = 41; // `)`.charCodeAt(0);\nexports.closeParenthesis = closeParenthesis;\nvar openSquare = 91; // `[`.charCodeAt(0);\nexports.openSquare = openSquare;\nvar closeSquare = 93; // `]`.charCodeAt(0);\nexports.closeSquare = closeSquare;\nvar dollar = 36; // `$`.charCodeAt(0);\nexports.dollar = dollar;\nvar tilde = 126; // `~`.charCodeAt(0);\nexports.tilde = tilde;\nvar caret = 94; // `^`.charCodeAt(0);\nexports.caret = caret;\nvar plus = 43; // `+`.charCodeAt(0);\nexports.plus = plus;\nvar equals = 61; // `=`.charCodeAt(0);\nexports.equals = equals;\nvar pipe = 124; // `|`.charCodeAt(0);\nexports.pipe = pipe;\nvar greaterThan = 62; // `>`.charCodeAt(0);\nexports.greaterThan = greaterThan;\nvar space = 32; // ` `.charCodeAt(0);\nexports.space = space;\nvar singleQuote = 39; // `'`.charCodeAt(0);\nexports.singleQuote = singleQuote;\nvar doubleQuote = 34; // `\"`.charCodeAt(0);\nexports.doubleQuote = doubleQuote;\nvar slash = 47; // `/`.charCodeAt(0);\nexports.slash = slash;\nvar bang = 33; // `!`.charCodeAt(0);\nexports.bang = bang;\nvar backslash = 92; // '\\\\'.charCodeAt(0);\nexports.backslash = backslash;\nvar cr = 13; // '\\r'.charCodeAt(0);\nexports.cr = cr;\nvar feed = 12; // '\\f'.charCodeAt(0);\nexports.feed = feed;\nvar newline = 10; // '\\n'.charCodeAt(0);\nexports.newline = newline;\nvar tab = 9; // '\\t'.charCodeAt(0);\n\n// Expose aliases primarily for readability.\nexports.tab = tab;\nvar str = singleQuote;\n\n// No good single character representation!\nexports.str = str;\nvar comment = -1;\nexports.comment = comment;\nvar word = -2;\nexports.word = word;\nvar combinator = -3;\nexports.combinator = combinator;", "\"use strict\";\n\nexports.__esModule = true;\nexports.FIELDS = void 0;\nexports[\"default\"] = tokenize;\nvar t = _interopRequireWildcard(require(\"./tokenTypes\"));\nvar _unescapable, _wordDelimiters;\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") { return { \"default\": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj[\"default\"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\nvar unescapable = (_unescapable = {}, _unescapable[t.tab] = true, _unescapable[t.newline] = true, _unescapable[t.cr] = true, _unescapable[t.feed] = true, _unescapable);\nvar wordDelimiters = (_wordDelimiters = {}, _wordDelimiters[t.space] = true, _wordDelimiters[t.tab] = true, _wordDelimiters[t.newline] = true, _wordDelimiters[t.cr] = true, _wordDelimiters[t.feed] = true, _wordDelimiters[t.ampersand] = true, _wordDelimiters[t.asterisk] = true, _wordDelimiters[t.bang] = true, _wordDelimiters[t.comma] = true, _wordDelimiters[t.colon] = true, _wordDelimiters[t.semicolon] = true, _wordDelimiters[t.openParenthesis] = true, _wordDelimiters[t.closeParenthesis] = true, _wordDelimiters[t.openSquare] = true, _wordDelimiters[t.closeSquare] = true, _wordDelimiters[t.singleQuote] = true, _wordDelimiters[t.doubleQuote] = true, _wordDelimiters[t.plus] = true, _wordDelimiters[t.pipe] = true, _wordDelimiters[t.tilde] = true, _wordDelimiters[t.greaterThan] = true, _wordDelimiters[t.equals] = true, _wordDelimiters[t.dollar] = true, _wordDelimiters[t.caret] = true, _wordDelimiters[t.slash] = true, _wordDelimiters);\nvar hex = {};\nvar hexChars = \"0123456789abcdefABCDEF\";\nfor (var i = 0; i < hexChars.length; i++) {\n hex[hexChars.charCodeAt(i)] = true;\n}\n\n/**\n * Returns the last index of the bar css word\n * @param {string} css The string in which the word begins\n * @param {number} start The index into the string where word's first letter occurs\n */\nfunction consumeWord(css, start) {\n var next = start;\n var code;\n do {\n code = css.charCodeAt(next);\n if (wordDelimiters[code]) {\n return next - 1;\n } else if (code === t.backslash) {\n next = consumeEscape(css, next) + 1;\n } else {\n // All other characters are part of the word\n next++;\n }\n } while (next < css.length);\n return next - 1;\n}\n\n/**\n * Returns the last index of the escape sequence\n * @param {string} css The string in which the sequence begins\n * @param {number} start The index into the string where escape character (`\\`) occurs.\n */\nfunction consumeEscape(css, start) {\n var next = start;\n var code = css.charCodeAt(next + 1);\n if (unescapable[code]) {\n // just consume the escape char\n } else if (hex[code]) {\n var hexDigits = 0;\n // consume up to 6 hex chars\n do {\n next++;\n hexDigits++;\n code = css.charCodeAt(next + 1);\n } while (hex[code] && hexDigits < 6);\n // if fewer than 6 hex chars, a trailing space ends the escape\n if (hexDigits < 6 && code === t.space) {\n next++;\n }\n } else {\n // the next char is part of the current word\n next++;\n }\n return next;\n}\nvar FIELDS = {\n TYPE: 0,\n START_LINE: 1,\n START_COL: 2,\n END_LINE: 3,\n END_COL: 4,\n START_POS: 5,\n END_POS: 6\n};\nexports.FIELDS = FIELDS;\nfunction tokenize(input) {\n var tokens = [];\n var css = input.css.valueOf();\n var _css = css,\n length = _css.length;\n var offset = -1;\n var line = 1;\n var start = 0;\n var end = 0;\n var code, content, endColumn, endLine, escaped, escapePos, last, lines, next, nextLine, nextOffset, quote, tokenType;\n function unclosed(what, fix) {\n if (input.safe) {\n // fyi: this is never set to true.\n css += fix;\n next = css.length - 1;\n } else {\n throw input.error('Unclosed ' + what, line, start - offset, start);\n }\n }\n while (start < length) {\n code = css.charCodeAt(start);\n if (code === t.newline) {\n offset = start;\n line += 1;\n }\n switch (code) {\n case t.space:\n case t.tab:\n case t.newline:\n case t.cr:\n case t.feed:\n next = start;\n do {\n next += 1;\n code = css.charCodeAt(next);\n if (code === t.newline) {\n offset = next;\n line += 1;\n }\n } while (code === t.space || code === t.newline || code === t.tab || code === t.cr || code === t.feed);\n tokenType = t.space;\n endLine = line;\n endColumn = next - offset - 1;\n end = next;\n break;\n case t.plus:\n case t.greaterThan:\n case t.tilde:\n case t.pipe:\n next = start;\n do {\n next += 1;\n code = css.charCodeAt(next);\n } while (code === t.plus || code === t.greaterThan || code === t.tilde || code === t.pipe);\n tokenType = t.combinator;\n endLine = line;\n endColumn = start - offset;\n end = next;\n break;\n\n // Consume these characters as single tokens.\n case t.asterisk:\n case t.ampersand:\n case t.bang:\n case t.comma:\n case t.equals:\n case t.dollar:\n case t.caret:\n case t.openSquare:\n case t.closeSquare:\n case t.colon:\n case t.semicolon:\n case t.openParenthesis:\n case t.closeParenthesis:\n next = start;\n tokenType = code;\n endLine = line;\n endColumn = start - offset;\n end = next + 1;\n break;\n case t.singleQuote:\n case t.doubleQuote:\n quote = code === t.singleQuote ? \"'\" : '\"';\n next = start;\n do {\n escaped = false;\n next = css.indexOf(quote, next + 1);\n if (next === -1) {\n unclosed('quote', quote);\n }\n escapePos = next;\n while (css.charCodeAt(escapePos - 1) === t.backslash) {\n escapePos -= 1;\n escaped = !escaped;\n }\n } while (escaped);\n tokenType = t.str;\n endLine = line;\n endColumn = start - offset;\n end = next + 1;\n break;\n default:\n if (code === t.slash && css.charCodeAt(start + 1) === t.asterisk) {\n next = css.indexOf('*/', start + 2) + 1;\n if (next === 0) {\n unclosed('comment', '*/');\n }\n content = css.slice(start, next + 1);\n lines = content.split('\\n');\n last = lines.length - 1;\n if (last > 0) {\n nextLine = line + last;\n nextOffset = next - lines[last].length;\n } else {\n nextLine = line;\n nextOffset = offset;\n }\n tokenType = t.comment;\n line = nextLine;\n endLine = nextLine;\n endColumn = next - nextOffset;\n } else if (code === t.slash) {\n next = start;\n tokenType = code;\n endLine = line;\n endColumn = start - offset;\n end = next + 1;\n } else {\n next = consumeWord(css, start);\n tokenType = t.word;\n endLine = line;\n endColumn = next - offset;\n }\n end = next + 1;\n break;\n }\n\n // Ensure that the token structure remains consistent\n tokens.push([tokenType,\n // [0] Token type\n line,\n // [1] Starting line\n start - offset,\n // [2] Starting column\n endLine,\n // [3] Ending line\n endColumn,\n // [4] Ending column\n start,\n // [5] Start position / Source index\n end // [6] End position\n ]);\n\n // Reset offset for the next token\n if (nextOffset) {\n offset = nextOffset;\n nextOffset = null;\n }\n start = end;\n }\n return tokens;\n}", "\"use strict\";\n\nexports.__esModule = true;\nexports[\"default\"] = void 0;\nvar _root = _interopRequireDefault(require(\"./selectors/root\"));\nvar _selector = _interopRequireDefault(require(\"./selectors/selector\"));\nvar _className = _interopRequireDefault(require(\"./selectors/className\"));\nvar _comment = _interopRequireDefault(require(\"./selectors/comment\"));\nvar _id = _interopRequireDefault(require(\"./selectors/id\"));\nvar _tag = _interopRequireDefault(require(\"./selectors/tag\"));\nvar _string = _interopRequireDefault(require(\"./selectors/string\"));\nvar _pseudo = _interopRequireDefault(require(\"./selectors/pseudo\"));\nvar _attribute = _interopRequireWildcard(require(\"./selectors/attribute\"));\nvar _universal = _interopRequireDefault(require(\"./selectors/universal\"));\nvar _combinator = _interopRequireDefault(require(\"./selectors/combinator\"));\nvar _nesting = _interopRequireDefault(require(\"./selectors/nesting\"));\nvar _sortAscending = _interopRequireDefault(require(\"./sortAscending\"));\nvar _tokenize = _interopRequireWildcard(require(\"./tokenize\"));\nvar tokens = _interopRequireWildcard(require(\"./tokenTypes\"));\nvar types = _interopRequireWildcard(require(\"./selectors/types\"));\nvar _util = require(\"./util\");\nvar _WHITESPACE_TOKENS, _Object$assign;\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") { return { \"default\": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj[\"default\"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nvar WHITESPACE_TOKENS = (_WHITESPACE_TOKENS = {}, _WHITESPACE_TOKENS[tokens.space] = true, _WHITESPACE_TOKENS[tokens.cr] = true, _WHITESPACE_TOKENS[tokens.feed] = true, _WHITESPACE_TOKENS[tokens.newline] = true, _WHITESPACE_TOKENS[tokens.tab] = true, _WHITESPACE_TOKENS);\nvar WHITESPACE_EQUIV_TOKENS = Object.assign({}, WHITESPACE_TOKENS, (_Object$assign = {}, _Object$assign[tokens.comment] = true, _Object$assign));\nfunction tokenStart(token) {\n return {\n line: token[_tokenize.FIELDS.START_LINE],\n column: token[_tokenize.FIELDS.START_COL]\n };\n}\nfunction tokenEnd(token) {\n return {\n line: token[_tokenize.FIELDS.END_LINE],\n column: token[_tokenize.FIELDS.END_COL]\n };\n}\nfunction getSource(startLine, startColumn, endLine, endColumn) {\n return {\n start: {\n line: startLine,\n column: startColumn\n },\n end: {\n line: endLine,\n column: endColumn\n }\n };\n}\nfunction getTokenSource(token) {\n return getSource(token[_tokenize.FIELDS.START_LINE], token[_tokenize.FIELDS.START_COL], token[_tokenize.FIELDS.END_LINE], token[_tokenize.FIELDS.END_COL]);\n}\nfunction getTokenSourceSpan(startToken, endToken) {\n if (!startToken) {\n return undefined;\n }\n return getSource(startToken[_tokenize.FIELDS.START_LINE], startToken[_tokenize.FIELDS.START_COL], endToken[_tokenize.FIELDS.END_LINE], endToken[_tokenize.FIELDS.END_COL]);\n}\nfunction unescapeProp(node, prop) {\n var value = node[prop];\n if (typeof value !== \"string\") {\n return;\n }\n if (value.indexOf(\"\\\\\") !== -1) {\n (0, _util.ensureObject)(node, 'raws');\n node[prop] = (0, _util.unesc)(value);\n if (node.raws[prop] === undefined) {\n node.raws[prop] = value;\n }\n }\n return node;\n}\nfunction indexesOf(array, item) {\n var i = -1;\n var indexes = [];\n while ((i = array.indexOf(item, i + 1)) !== -1) {\n indexes.push(i);\n }\n return indexes;\n}\nfunction uniqs() {\n var list = Array.prototype.concat.apply([], arguments);\n return list.filter(function (item, i) {\n return i === list.indexOf(item);\n });\n}\nvar Parser = /*#__PURE__*/function () {\n function Parser(rule, options) {\n if (options === void 0) {\n options = {};\n }\n this.rule = rule;\n this.options = Object.assign({\n lossy: false,\n safe: false\n }, options);\n this.position = 0;\n this.css = typeof this.rule === 'string' ? this.rule : this.rule.selector;\n this.tokens = (0, _tokenize[\"default\"])({\n css: this.css,\n error: this._errorGenerator(),\n safe: this.options.safe\n });\n var rootSource = getTokenSourceSpan(this.tokens[0], this.tokens[this.tokens.length - 1]);\n this.root = new _root[\"default\"]({\n source: rootSource\n });\n this.root.errorGenerator = this._errorGenerator();\n var selector = new _selector[\"default\"]({\n source: {\n start: {\n line: 1,\n column: 1\n }\n }\n });\n this.root.append(selector);\n this.current = selector;\n this.loop();\n }\n var _proto = Parser.prototype;\n _proto._errorGenerator = function _errorGenerator() {\n var _this = this;\n return function (message, errorOptions) {\n if (typeof _this.rule === 'string') {\n return new Error(message);\n }\n return _this.rule.error(message, errorOptions);\n };\n };\n _proto.attribute = function attribute() {\n var attr = [];\n var startingToken = this.currToken;\n this.position++;\n while (this.position < this.tokens.length && this.currToken[_tokenize.FIELDS.TYPE] !== tokens.closeSquare) {\n attr.push(this.currToken);\n this.position++;\n }\n if (this.currToken[_tokenize.FIELDS.TYPE] !== tokens.closeSquare) {\n return this.expected('closing square bracket', this.currToken[_tokenize.FIELDS.START_POS]);\n }\n var len = attr.length;\n var node = {\n source: getSource(startingToken[1], startingToken[2], this.currToken[3], this.currToken[4]),\n sourceIndex: startingToken[_tokenize.FIELDS.START_POS]\n };\n if (len === 1 && !~[tokens.word].indexOf(attr[0][_tokenize.FIELDS.TYPE])) {\n return this.expected('attribute', attr[0][_tokenize.FIELDS.START_POS]);\n }\n var pos = 0;\n var spaceBefore = '';\n var commentBefore = '';\n var lastAdded = null;\n var spaceAfterMeaningfulToken = false;\n while (pos < len) {\n var token = attr[pos];\n var content = this.content(token);\n var next = attr[pos + 1];\n switch (token[_tokenize.FIELDS.TYPE]) {\n case tokens.space:\n // if (\n // len === 1 ||\n // pos === 0 && this.content(next) === '|'\n // ) {\n // return this.expected('attribute', token[TOKEN.START_POS], content);\n // }\n spaceAfterMeaningfulToken = true;\n if (this.options.lossy) {\n break;\n }\n if (lastAdded) {\n (0, _util.ensureObject)(node, 'spaces', lastAdded);\n var prevContent = node.spaces[lastAdded].after || '';\n node.spaces[lastAdded].after = prevContent + content;\n var existingComment = (0, _util.getProp)(node, 'raws', 'spaces', lastAdded, 'after') || null;\n if (existingComment) {\n node.raws.spaces[lastAdded].after = existingComment + content;\n }\n } else {\n spaceBefore = spaceBefore + content;\n commentBefore = commentBefore + content;\n }\n break;\n case tokens.asterisk:\n if (next[_tokenize.FIELDS.TYPE] === tokens.equals) {\n node.operator = content;\n lastAdded = 'operator';\n } else if ((!node.namespace || lastAdded === \"namespace\" && !spaceAfterMeaningfulToken) && next) {\n if (spaceBefore) {\n (0, _util.ensureObject)(node, 'spaces', 'attribute');\n node.spaces.attribute.before = spaceBefore;\n spaceBefore = '';\n }\n if (commentBefore) {\n (0, _util.ensureObject)(node, 'raws', 'spaces', 'attribute');\n node.raws.spaces.attribute.before = spaceBefore;\n commentBefore = '';\n }\n node.namespace = (node.namespace || \"\") + content;\n var rawValue = (0, _util.getProp)(node, 'raws', 'namespace') || null;\n if (rawValue) {\n node.raws.namespace += content;\n }\n lastAdded = 'namespace';\n }\n spaceAfterMeaningfulToken = false;\n break;\n case tokens.dollar:\n if (lastAdded === \"value\") {\n var oldRawValue = (0, _util.getProp)(node, 'raws', 'value');\n node.value += \"$\";\n if (oldRawValue) {\n node.raws.value = oldRawValue + \"$\";\n }\n break;\n }\n // Falls through\n case tokens.caret:\n if (next[_tokenize.FIELDS.TYPE] === tokens.equals) {\n node.operator = content;\n lastAdded = 'operator';\n }\n spaceAfterMeaningfulToken = false;\n break;\n case tokens.combinator:\n if (content === '~' && next[_tokenize.FIELDS.TYPE] === tokens.equals) {\n node.operator = content;\n lastAdded = 'operator';\n }\n if (content !== '|') {\n spaceAfterMeaningfulToken = false;\n break;\n }\n if (next[_tokenize.FIELDS.TYPE] === tokens.equals) {\n node.operator = content;\n lastAdded = 'operator';\n } else if (!node.namespace && !node.attribute) {\n node.namespace = true;\n }\n spaceAfterMeaningfulToken = false;\n break;\n case tokens.word:\n if (next && this.content(next) === '|' && attr[pos + 2] && attr[pos + 2][_tokenize.FIELDS.TYPE] !== tokens.equals &&\n // this look-ahead probably fails with comment nodes involved.\n !node.operator && !node.namespace) {\n node.namespace = content;\n lastAdded = 'namespace';\n } else if (!node.attribute || lastAdded === \"attribute\" && !spaceAfterMeaningfulToken) {\n if (spaceBefore) {\n (0, _util.ensureObject)(node, 'spaces', 'attribute');\n node.spaces.attribute.before = spaceBefore;\n spaceBefore = '';\n }\n if (commentBefore) {\n (0, _util.ensureObject)(node, 'raws', 'spaces', 'attribute');\n node.raws.spaces.attribute.before = commentBefore;\n commentBefore = '';\n }\n node.attribute = (node.attribute || \"\") + content;\n var _rawValue = (0, _util.getProp)(node, 'raws', 'attribute') || null;\n if (_rawValue) {\n node.raws.attribute += content;\n }\n lastAdded = 'attribute';\n } else if (!node.value && node.value !== \"\" || lastAdded === \"value\" && !(spaceAfterMeaningfulToken || node.quoteMark)) {\n var _unescaped = (0, _util.unesc)(content);\n var _oldRawValue = (0, _util.getProp)(node, 'raws', 'value') || '';\n var oldValue = node.value || '';\n node.value = oldValue + _unescaped;\n node.quoteMark = null;\n if (_unescaped !== content || _oldRawValue) {\n (0, _util.ensureObject)(node, 'raws');\n node.raws.value = (_oldRawValue || oldValue) + content;\n }\n lastAdded = 'value';\n } else {\n var insensitive = content === 'i' || content === \"I\";\n if ((node.value || node.value === '') && (node.quoteMark || spaceAfterMeaningfulToken)) {\n node.insensitive = insensitive;\n if (!insensitive || content === \"I\") {\n (0, _util.ensureObject)(node, 'raws');\n node.raws.insensitiveFlag = content;\n }\n lastAdded = 'insensitive';\n if (spaceBefore) {\n (0, _util.ensureObject)(node, 'spaces', 'insensitive');\n node.spaces.insensitive.before = spaceBefore;\n spaceBefore = '';\n }\n if (commentBefore) {\n (0, _util.ensureObject)(node, 'raws', 'spaces', 'insensitive');\n node.raws.spaces.insensitive.before = commentBefore;\n commentBefore = '';\n }\n } else if (node.value || node.value === '') {\n lastAdded = 'value';\n node.value += content;\n if (node.raws.value) {\n node.raws.value += content;\n }\n }\n }\n spaceAfterMeaningfulToken = false;\n break;\n case tokens.str:\n if (!node.attribute || !node.operator) {\n return this.error(\"Expected an attribute followed by an operator preceding the string.\", {\n index: token[_tokenize.FIELDS.START_POS]\n });\n }\n var _unescapeValue = (0, _attribute.unescapeValue)(content),\n unescaped = _unescapeValue.unescaped,\n quoteMark = _unescapeValue.quoteMark;\n node.value = unescaped;\n node.quoteMark = quoteMark;\n lastAdded = 'value';\n (0, _util.ensureObject)(node, 'raws');\n node.raws.value = content;\n spaceAfterMeaningfulToken = false;\n break;\n case tokens.equals:\n if (!node.attribute) {\n return this.expected('attribute', token[_tokenize.FIELDS.START_POS], content);\n }\n if (node.value) {\n return this.error('Unexpected \"=\" found; an operator was already defined.', {\n index: token[_tokenize.FIELDS.START_POS]\n });\n }\n node.operator = node.operator ? node.operator + content : content;\n lastAdded = 'operator';\n spaceAfterMeaningfulToken = false;\n break;\n case tokens.comment:\n if (lastAdded) {\n if (spaceAfterMeaningfulToken || next && next[_tokenize.FIELDS.TYPE] === tokens.space || lastAdded === 'insensitive') {\n var lastComment = (0, _util.getProp)(node, 'spaces', lastAdded, 'after') || '';\n var rawLastComment = (0, _util.getProp)(node, 'raws', 'spaces', lastAdded, 'after') || lastComment;\n (0, _util.ensureObject)(node, 'raws', 'spaces', lastAdded);\n node.raws.spaces[lastAdded].after = rawLastComment + content;\n } else {\n var lastValue = node[lastAdded] || '';\n var rawLastValue = (0, _util.getProp)(node, 'raws', lastAdded) || lastValue;\n (0, _util.ensureObject)(node, 'raws');\n node.raws[lastAdded] = rawLastValue + content;\n }\n } else {\n commentBefore = commentBefore + content;\n }\n break;\n default:\n return this.error(\"Unexpected \\\"\" + content + \"\\\" found.\", {\n index: token[_tokenize.FIELDS.START_POS]\n });\n }\n pos++;\n }\n unescapeProp(node, \"attribute\");\n unescapeProp(node, \"namespace\");\n this.newNode(new _attribute[\"default\"](node));\n this.position++;\n }\n\n /**\n * return a node containing meaningless garbage up to (but not including) the specified token position.\n * if the token position is negative, all remaining tokens are consumed.\n *\n * This returns an array containing a single string node if all whitespace,\n * otherwise an array of comment nodes with space before and after.\n *\n * These tokens are not added to the current selector, the caller can add them or use them to amend\n * a previous node's space metadata.\n *\n * In lossy mode, this returns only comments.\n */;\n _proto.parseWhitespaceEquivalentTokens = function parseWhitespaceEquivalentTokens(stopPosition) {\n if (stopPosition < 0) {\n stopPosition = this.tokens.length;\n }\n var startPosition = this.position;\n var nodes = [];\n var space = \"\";\n var lastComment = undefined;\n do {\n if (WHITESPACE_TOKENS[this.currToken[_tokenize.FIELDS.TYPE]]) {\n if (!this.options.lossy) {\n space += this.content();\n }\n } else if (this.currToken[_tokenize.FIELDS.TYPE] === tokens.comment) {\n var spaces = {};\n if (space) {\n spaces.before = space;\n space = \"\";\n }\n lastComment = new _comment[\"default\"]({\n value: this.content(),\n source: getTokenSource(this.currToken),\n sourceIndex: this.currToken[_tokenize.FIELDS.START_POS],\n spaces: spaces\n });\n nodes.push(lastComment);\n }\n } while (++this.position < stopPosition);\n if (space) {\n if (lastComment) {\n lastComment.spaces.after = space;\n } else if (!this.options.lossy) {\n var firstToken = this.tokens[startPosition];\n var lastToken = this.tokens[this.position - 1];\n nodes.push(new _string[\"default\"]({\n value: '',\n source: getSource(firstToken[_tokenize.FIELDS.START_LINE], firstToken[_tokenize.FIELDS.START_COL], lastToken[_tokenize.FIELDS.END_LINE], lastToken[_tokenize.FIELDS.END_COL]),\n sourceIndex: firstToken[_tokenize.FIELDS.START_POS],\n spaces: {\n before: space,\n after: ''\n }\n }));\n }\n }\n return nodes;\n }\n\n /**\n *\n * @param {*} nodes\n */;\n _proto.convertWhitespaceNodesToSpace = function convertWhitespaceNodesToSpace(nodes, requiredSpace) {\n var _this2 = this;\n if (requiredSpace === void 0) {\n requiredSpace = false;\n }\n var space = \"\";\n var rawSpace = \"\";\n nodes.forEach(function (n) {\n var spaceBefore = _this2.lossySpace(n.spaces.before, requiredSpace);\n var rawSpaceBefore = _this2.lossySpace(n.rawSpaceBefore, requiredSpace);\n space += spaceBefore + _this2.lossySpace(n.spaces.after, requiredSpace && spaceBefore.length === 0);\n rawSpace += spaceBefore + n.value + _this2.lossySpace(n.rawSpaceAfter, requiredSpace && rawSpaceBefore.length === 0);\n });\n if (rawSpace === space) {\n rawSpace = undefined;\n }\n var result = {\n space: space,\n rawSpace: rawSpace\n };\n return result;\n };\n _proto.isNamedCombinator = function isNamedCombinator(position) {\n if (position === void 0) {\n position = this.position;\n }\n return this.tokens[position + 0] && this.tokens[position + 0][_tokenize.FIELDS.TYPE] === tokens.slash && this.tokens[position + 1] && this.tokens[position + 1][_tokenize.FIELDS.TYPE] === tokens.word && this.tokens[position + 2] && this.tokens[position + 2][_tokenize.FIELDS.TYPE] === tokens.slash;\n };\n _proto.namedCombinator = function namedCombinator() {\n if (this.isNamedCombinator()) {\n var nameRaw = this.content(this.tokens[this.position + 1]);\n var name = (0, _util.unesc)(nameRaw).toLowerCase();\n var raws = {};\n if (name !== nameRaw) {\n raws.value = \"/\" + nameRaw + \"/\";\n }\n var node = new _combinator[\"default\"]({\n value: \"/\" + name + \"/\",\n source: getSource(this.currToken[_tokenize.FIELDS.START_LINE], this.currToken[_tokenize.FIELDS.START_COL], this.tokens[this.position + 2][_tokenize.FIELDS.END_LINE], this.tokens[this.position + 2][_tokenize.FIELDS.END_COL]),\n sourceIndex: this.currToken[_tokenize.FIELDS.START_POS],\n raws: raws\n });\n this.position = this.position + 3;\n return node;\n } else {\n this.unexpected();\n }\n };\n _proto.combinator = function combinator() {\n var _this3 = this;\n if (this.content() === '|') {\n return this.namespace();\n }\n // We need to decide between a space that's a descendant combinator and meaningless whitespace at the end of a selector.\n var nextSigTokenPos = this.locateNextMeaningfulToken(this.position);\n if (nextSigTokenPos < 0 || this.tokens[nextSigTokenPos][_tokenize.FIELDS.TYPE] === tokens.comma) {\n var nodes = this.parseWhitespaceEquivalentTokens(nextSigTokenPos);\n if (nodes.length > 0) {\n var last = this.current.last;\n if (last) {\n var _this$convertWhitespa = this.convertWhitespaceNodesToSpace(nodes),\n space = _this$convertWhitespa.space,\n rawSpace = _this$convertWhitespa.rawSpace;\n if (rawSpace !== undefined) {\n last.rawSpaceAfter += rawSpace;\n }\n last.spaces.after += space;\n } else {\n nodes.forEach(function (n) {\n return _this3.newNode(n);\n });\n }\n }\n return;\n }\n var firstToken = this.currToken;\n var spaceOrDescendantSelectorNodes = undefined;\n if (nextSigTokenPos > this.position) {\n spaceOrDescendantSelectorNodes = this.parseWhitespaceEquivalentTokens(nextSigTokenPos);\n }\n var node;\n if (this.isNamedCombinator()) {\n node = this.namedCombinator();\n } else if (this.currToken[_tokenize.FIELDS.TYPE] === tokens.combinator) {\n node = new _combinator[\"default\"]({\n value: this.content(),\n source: getTokenSource(this.currToken),\n sourceIndex: this.currToken[_tokenize.FIELDS.START_POS]\n });\n this.position++;\n } else if (WHITESPACE_TOKENS[this.currToken[_tokenize.FIELDS.TYPE]]) {\n // pass\n } else if (!spaceOrDescendantSelectorNodes) {\n this.unexpected();\n }\n if (node) {\n if (spaceOrDescendantSelectorNodes) {\n var _this$convertWhitespa2 = this.convertWhitespaceNodesToSpace(spaceOrDescendantSelectorNodes),\n _space = _this$convertWhitespa2.space,\n _rawSpace = _this$convertWhitespa2.rawSpace;\n node.spaces.before = _space;\n node.rawSpaceBefore = _rawSpace;\n }\n } else {\n // descendant combinator\n var _this$convertWhitespa3 = this.convertWhitespaceNodesToSpace(spaceOrDescendantSelectorNodes, true),\n _space2 = _this$convertWhitespa3.space,\n _rawSpace2 = _this$convertWhitespa3.rawSpace;\n if (!_rawSpace2) {\n _rawSpace2 = _space2;\n }\n var spaces = {};\n var raws = {\n spaces: {}\n };\n if (_space2.endsWith(' ') && _rawSpace2.endsWith(' ')) {\n spaces.before = _space2.slice(0, _space2.length - 1);\n raws.spaces.before = _rawSpace2.slice(0, _rawSpace2.length - 1);\n } else if (_space2.startsWith(' ') && _rawSpace2.startsWith(' ')) {\n spaces.after = _space2.slice(1);\n raws.spaces.after = _rawSpace2.slice(1);\n } else {\n raws.value = _rawSpace2;\n }\n node = new _combinator[\"default\"]({\n value: ' ',\n source: getTokenSourceSpan(firstToken, this.tokens[this.position - 1]),\n sourceIndex: firstToken[_tokenize.FIELDS.START_POS],\n spaces: spaces,\n raws: raws\n });\n }\n if (this.currToken && this.currToken[_tokenize.FIELDS.TYPE] === tokens.space) {\n node.spaces.after = this.optionalSpace(this.content());\n this.position++;\n }\n return this.newNode(node);\n };\n _proto.comma = function comma() {\n if (this.position === this.tokens.length - 1) {\n this.root.trailingComma = true;\n this.position++;\n return;\n }\n this.current._inferEndPosition();\n var selector = new _selector[\"default\"]({\n source: {\n start: tokenStart(this.tokens[this.position + 1])\n }\n });\n this.current.parent.append(selector);\n this.current = selector;\n this.position++;\n };\n _proto.comment = function comment() {\n var current = this.currToken;\n this.newNode(new _comment[\"default\"]({\n value: this.content(),\n source: getTokenSource(current),\n sourceIndex: current[_tokenize.FIELDS.START_POS]\n }));\n this.position++;\n };\n _proto.error = function error(message, opts) {\n throw this.root.error(message, opts);\n };\n _proto.missingBackslash = function missingBackslash() {\n return this.error('Expected a backslash preceding the semicolon.', {\n index: this.currToken[_tokenize.FIELDS.START_POS]\n });\n };\n _proto.missingParenthesis = function missingParenthesis() {\n return this.expected('opening parenthesis', this.currToken[_tokenize.FIELDS.START_POS]);\n };\n _proto.missingSquareBracket = function missingSquareBracket() {\n return this.expected('opening square bracket', this.currToken[_tokenize.FIELDS.START_POS]);\n };\n _proto.unexpected = function unexpected() {\n return this.error(\"Unexpected '\" + this.content() + \"'. Escaping special characters with \\\\ may help.\", this.currToken[_tokenize.FIELDS.START_POS]);\n };\n _proto.unexpectedPipe = function unexpectedPipe() {\n return this.error(\"Unexpected '|'.\", this.currToken[_tokenize.FIELDS.START_POS]);\n };\n _proto.namespace = function namespace() {\n var before = this.prevToken && this.content(this.prevToken) || true;\n if (this.nextToken[_tokenize.FIELDS.TYPE] === tokens.word) {\n this.position++;\n return this.word(before);\n } else if (this.nextToken[_tokenize.FIELDS.TYPE] === tokens.asterisk) {\n this.position++;\n return this.universal(before);\n }\n this.unexpectedPipe();\n };\n _proto.nesting = function nesting() {\n if (this.nextToken) {\n var nextContent = this.content(this.nextToken);\n if (nextContent === \"|\") {\n this.position++;\n return;\n }\n }\n var current = this.currToken;\n this.newNode(new _nesting[\"default\"]({\n value: this.content(),\n source: getTokenSource(current),\n sourceIndex: current[_tokenize.FIELDS.START_POS]\n }));\n this.position++;\n };\n _proto.parentheses = function parentheses() {\n var last = this.current.last;\n var unbalanced = 1;\n this.position++;\n if (last && last.type === types.PSEUDO) {\n var selector = new _selector[\"default\"]({\n source: {\n start: tokenStart(this.tokens[this.position - 1])\n }\n });\n var cache = this.current;\n last.append(selector);\n this.current = selector;\n while (this.position < this.tokens.length && unbalanced) {\n if (this.currToken[_tokenize.FIELDS.TYPE] === tokens.openParenthesis) {\n unbalanced++;\n }\n if (this.currToken[_tokenize.FIELDS.TYPE] === tokens.closeParenthesis) {\n unbalanced--;\n }\n if (unbalanced) {\n this.parse();\n } else {\n this.current.source.end = tokenEnd(this.currToken);\n this.current.parent.source.end = tokenEnd(this.currToken);\n this.position++;\n }\n }\n this.current = cache;\n } else {\n // I think this case should be an error. It's used to implement a basic parse of media queries\n // but I don't think it's a good idea.\n var parenStart = this.currToken;\n var parenValue = \"(\";\n var parenEnd;\n while (this.position < this.tokens.length && unbalanced) {\n if (this.currToken[_tokenize.FIELDS.TYPE] === tokens.openParenthesis) {\n unbalanced++;\n }\n if (this.currToken[_tokenize.FIELDS.TYPE] === tokens.closeParenthesis) {\n unbalanced--;\n }\n parenEnd = this.currToken;\n parenValue += this.parseParenthesisToken(this.currToken);\n this.position++;\n }\n if (last) {\n last.appendToPropertyAndEscape(\"value\", parenValue, parenValue);\n } else {\n this.newNode(new _string[\"default\"]({\n value: parenValue,\n source: getSource(parenStart[_tokenize.FIELDS.START_LINE], parenStart[_tokenize.FIELDS.START_COL], parenEnd[_tokenize.FIELDS.END_LINE], parenEnd[_tokenize.FIELDS.END_COL]),\n sourceIndex: parenStart[_tokenize.FIELDS.START_POS]\n }));\n }\n }\n if (unbalanced) {\n return this.expected('closing parenthesis', this.currToken[_tokenize.FIELDS.START_POS]);\n }\n };\n _proto.pseudo = function pseudo() {\n var _this4 = this;\n var pseudoStr = '';\n var startingToken = this.currToken;\n while (this.currToken && this.currToken[_tokenize.FIELDS.TYPE] === tokens.colon) {\n pseudoStr += this.content();\n this.position++;\n }\n if (!this.currToken) {\n return this.expected(['pseudo-class', 'pseudo-element'], this.position - 1);\n }\n if (this.currToken[_tokenize.FIELDS.TYPE] === tokens.word) {\n this.splitWord(false, function (first, length) {\n pseudoStr += first;\n _this4.newNode(new _pseudo[\"default\"]({\n value: pseudoStr,\n source: getTokenSourceSpan(startingToken, _this4.currToken),\n sourceIndex: startingToken[_tokenize.FIELDS.START_POS]\n }));\n if (length > 1 && _this4.nextToken && _this4.nextToken[_tokenize.FIELDS.TYPE] === tokens.openParenthesis) {\n _this4.error('Misplaced parenthesis.', {\n index: _this4.nextToken[_tokenize.FIELDS.START_POS]\n });\n }\n });\n } else {\n return this.expected(['pseudo-class', 'pseudo-element'], this.currToken[_tokenize.FIELDS.START_POS]);\n }\n };\n _proto.space = function space() {\n var content = this.content();\n // Handle space before and after the selector\n if (this.position === 0 || this.prevToken[_tokenize.FIELDS.TYPE] === tokens.comma || this.prevToken[_tokenize.FIELDS.TYPE] === tokens.openParenthesis || this.current.nodes.every(function (node) {\n return node.type === 'comment';\n })) {\n this.spaces = this.optionalSpace(content);\n this.position++;\n } else if (this.position === this.tokens.length - 1 || this.nextToken[_tokenize.FIELDS.TYPE] === tokens.comma || this.nextToken[_tokenize.FIELDS.TYPE] === tokens.closeParenthesis) {\n this.current.last.spaces.after = this.optionalSpace(content);\n this.position++;\n } else {\n this.combinator();\n }\n };\n _proto.string = function string() {\n var current = this.currToken;\n this.newNode(new _string[\"default\"]({\n value: this.content(),\n source: getTokenSource(current),\n sourceIndex: current[_tokenize.FIELDS.START_POS]\n }));\n this.position++;\n };\n _proto.universal = function universal(namespace) {\n var nextToken = this.nextToken;\n if (nextToken && this.content(nextToken) === '|') {\n this.position++;\n return this.namespace();\n }\n var current = this.currToken;\n this.newNode(new _universal[\"default\"]({\n value: this.content(),\n source: getTokenSource(current),\n sourceIndex: current[_tokenize.FIELDS.START_POS]\n }), namespace);\n this.position++;\n };\n _proto.splitWord = function splitWord(namespace, firstCallback) {\n var _this5 = this;\n var nextToken = this.nextToken;\n var word = this.content();\n while (nextToken && ~[tokens.dollar, tokens.caret, tokens.equals, tokens.word].indexOf(nextToken[_tokenize.FIELDS.TYPE])) {\n this.position++;\n var current = this.content();\n word += current;\n if (current.lastIndexOf('\\\\') === current.length - 1) {\n var next = this.nextToken;\n if (next && next[_tokenize.FIELDS.TYPE] === tokens.space) {\n word += this.requiredSpace(this.content(next));\n this.position++;\n }\n }\n nextToken = this.nextToken;\n }\n var hasClass = indexesOf(word, '.').filter(function (i) {\n // Allow escaped dot within class name\n var escapedDot = word[i - 1] === '\\\\';\n // Allow decimal numbers percent in @keyframes\n var isKeyframesPercent = /^\\d+\\.\\d+%$/.test(word);\n return !escapedDot && !isKeyframesPercent;\n });\n var hasId = indexesOf(word, '#').filter(function (i) {\n return word[i - 1] !== '\\\\';\n });\n // Eliminate Sass interpolations from the list of id indexes\n var interpolations = indexesOf(word, '#{');\n if (interpolations.length) {\n hasId = hasId.filter(function (hashIndex) {\n return !~interpolations.indexOf(hashIndex);\n });\n }\n var indices = (0, _sortAscending[\"default\"])(uniqs([0].concat(hasClass, hasId)));\n indices.forEach(function (ind, i) {\n var index = indices[i + 1] || word.length;\n var value = word.slice(ind, index);\n if (i === 0 && firstCallback) {\n return firstCallback.call(_this5, value, indices.length);\n }\n var node;\n var current = _this5.currToken;\n var sourceIndex = current[_tokenize.FIELDS.START_POS] + indices[i];\n var source = getSource(current[1], current[2] + ind, current[3], current[2] + (index - 1));\n if (~hasClass.indexOf(ind)) {\n var classNameOpts = {\n value: value.slice(1),\n source: source,\n sourceIndex: sourceIndex\n };\n node = new _className[\"default\"](unescapeProp(classNameOpts, \"value\"));\n } else if (~hasId.indexOf(ind)) {\n var idOpts = {\n value: value.slice(1),\n source: source,\n sourceIndex: sourceIndex\n };\n node = new _id[\"default\"](unescapeProp(idOpts, \"value\"));\n } else {\n var tagOpts = {\n value: value,\n source: source,\n sourceIndex: sourceIndex\n };\n unescapeProp(tagOpts, \"value\");\n node = new _tag[\"default\"](tagOpts);\n }\n _this5.newNode(node, namespace);\n // Ensure that the namespace is used only once\n namespace = null;\n });\n this.position++;\n };\n _proto.word = function word(namespace) {\n var nextToken = this.nextToken;\n if (nextToken && this.content(nextToken) === '|') {\n this.position++;\n return this.namespace();\n }\n return this.splitWord(namespace);\n };\n _proto.loop = function loop() {\n while (this.position < this.tokens.length) {\n this.parse(true);\n }\n this.current._inferEndPosition();\n return this.root;\n };\n _proto.parse = function parse(throwOnParenthesis) {\n switch (this.currToken[_tokenize.FIELDS.TYPE]) {\n case tokens.space:\n this.space();\n break;\n case tokens.comment:\n this.comment();\n break;\n case tokens.openParenthesis:\n this.parentheses();\n break;\n case tokens.closeParenthesis:\n if (throwOnParenthesis) {\n this.missingParenthesis();\n }\n break;\n case tokens.openSquare:\n this.attribute();\n break;\n case tokens.dollar:\n case tokens.caret:\n case tokens.equals:\n case tokens.word:\n this.word();\n break;\n case tokens.colon:\n this.pseudo();\n break;\n case tokens.comma:\n this.comma();\n break;\n case tokens.asterisk:\n this.universal();\n break;\n case tokens.ampersand:\n this.nesting();\n break;\n case tokens.slash:\n case tokens.combinator:\n this.combinator();\n break;\n case tokens.str:\n this.string();\n break;\n // These cases throw; no break needed.\n case tokens.closeSquare:\n this.missingSquareBracket();\n case tokens.semicolon:\n this.missingBackslash();\n default:\n this.unexpected();\n }\n }\n\n /**\n * Helpers\n */;\n _proto.expected = function expected(description, index, found) {\n if (Array.isArray(description)) {\n var last = description.pop();\n description = description.join(', ') + \" or \" + last;\n }\n var an = /^[aeiou]/.test(description[0]) ? 'an' : 'a';\n if (!found) {\n return this.error(\"Expected \" + an + \" \" + description + \".\", {\n index: index\n });\n }\n return this.error(\"Expected \" + an + \" \" + description + \", found \\\"\" + found + \"\\\" instead.\", {\n index: index\n });\n };\n _proto.requiredSpace = function requiredSpace(space) {\n return this.options.lossy ? ' ' : space;\n };\n _proto.optionalSpace = function optionalSpace(space) {\n return this.options.lossy ? '' : space;\n };\n _proto.lossySpace = function lossySpace(space, required) {\n if (this.options.lossy) {\n return required ? ' ' : '';\n } else {\n return space;\n }\n };\n _proto.parseParenthesisToken = function parseParenthesisToken(token) {\n var content = this.content(token);\n if (token[_tokenize.FIELDS.TYPE] === tokens.space) {\n return this.requiredSpace(content);\n } else {\n return content;\n }\n };\n _proto.newNode = function newNode(node, namespace) {\n if (namespace) {\n if (/^ +$/.test(namespace)) {\n if (!this.options.lossy) {\n this.spaces = (this.spaces || '') + namespace;\n }\n namespace = true;\n }\n node.namespace = namespace;\n unescapeProp(node, \"namespace\");\n }\n if (this.spaces) {\n node.spaces.before = this.spaces;\n this.spaces = '';\n }\n return this.current.append(node);\n };\n _proto.content = function content(token) {\n if (token === void 0) {\n token = this.currToken;\n }\n return this.css.slice(token[_tokenize.FIELDS.START_POS], token[_tokenize.FIELDS.END_POS]);\n };\n /**\n * returns the index of the next non-whitespace, non-comment token.\n * returns -1 if no meaningful token is found.\n */\n _proto.locateNextMeaningfulToken = function locateNextMeaningfulToken(startPosition) {\n if (startPosition === void 0) {\n startPosition = this.position + 1;\n }\n var searchPosition = startPosition;\n while (searchPosition < this.tokens.length) {\n if (WHITESPACE_EQUIV_TOKENS[this.tokens[searchPosition][_tokenize.FIELDS.TYPE]]) {\n searchPosition++;\n continue;\n } else {\n return searchPosition;\n }\n }\n return -1;\n };\n _createClass(Parser, [{\n key: \"currToken\",\n get: function get() {\n return this.tokens[this.position];\n }\n }, {\n key: \"nextToken\",\n get: function get() {\n return this.tokens[this.position + 1];\n }\n }, {\n key: \"prevToken\",\n get: function get() {\n return this.tokens[this.position - 1];\n }\n }]);\n return Parser;\n}();\nexports[\"default\"] = Parser;\nmodule.exports = exports.default;", "\"use strict\";\n\nexports.__esModule = true;\nexports[\"default\"] = void 0;\nvar _parser = _interopRequireDefault(require(\"./parser\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nvar Processor = /*#__PURE__*/function () {\n function Processor(func, options) {\n this.func = func || function noop() {};\n this.funcRes = null;\n this.options = options;\n }\n var _proto = Processor.prototype;\n _proto._shouldUpdateSelector = function _shouldUpdateSelector(rule, options) {\n if (options === void 0) {\n options = {};\n }\n var merged = Object.assign({}, this.options, options);\n if (merged.updateSelector === false) {\n return false;\n } else {\n return typeof rule !== \"string\";\n }\n };\n _proto._isLossy = function _isLossy(options) {\n if (options === void 0) {\n options = {};\n }\n var merged = Object.assign({}, this.options, options);\n if (merged.lossless === false) {\n return true;\n } else {\n return false;\n }\n };\n _proto._root = function _root(rule, options) {\n if (options === void 0) {\n options = {};\n }\n var parser = new _parser[\"default\"](rule, this._parseOptions(options));\n return parser.root;\n };\n _proto._parseOptions = function _parseOptions(options) {\n return {\n lossy: this._isLossy(options)\n };\n };\n _proto._run = function _run(rule, options) {\n var _this = this;\n if (options === void 0) {\n options = {};\n }\n return new Promise(function (resolve, reject) {\n try {\n var root = _this._root(rule, options);\n Promise.resolve(_this.func(root)).then(function (transform) {\n var string = undefined;\n if (_this._shouldUpdateSelector(rule, options)) {\n string = root.toString();\n rule.selector = string;\n }\n return {\n transform: transform,\n root: root,\n string: string\n };\n }).then(resolve, reject);\n } catch (e) {\n reject(e);\n return;\n }\n });\n };\n _proto._runSync = function _runSync(rule, options) {\n if (options === void 0) {\n options = {};\n }\n var root = this._root(rule, options);\n var transform = this.func(root);\n if (transform && typeof transform.then === \"function\") {\n throw new Error(\"Selector processor returned a promise to a synchronous call.\");\n }\n var string = undefined;\n if (options.updateSelector && typeof rule !== \"string\") {\n string = root.toString();\n rule.selector = string;\n }\n return {\n transform: transform,\n root: root,\n string: string\n };\n }\n\n /**\n * Process rule into a selector AST.\n *\n * @param rule {postcss.Rule | string} The css selector to be processed\n * @param options The options for processing\n * @returns {Promise} The AST of the selector after processing it.\n */;\n _proto.ast = function ast(rule, options) {\n return this._run(rule, options).then(function (result) {\n return result.root;\n });\n }\n\n /**\n * Process rule into a selector AST synchronously.\n *\n * @param rule {postcss.Rule | string} The css selector to be processed\n * @param options The options for processing\n * @returns {parser.Root} The AST of the selector after processing it.\n */;\n _proto.astSync = function astSync(rule, options) {\n return this._runSync(rule, options).root;\n }\n\n /**\n * Process a selector into a transformed value asynchronously\n *\n * @param rule {postcss.Rule | string} The css selector to be processed\n * @param options The options for processing\n * @returns {Promise} The value returned by the processor.\n */;\n _proto.transform = function transform(rule, options) {\n return this._run(rule, options).then(function (result) {\n return result.transform;\n });\n }\n\n /**\n * Process a selector into a transformed value synchronously.\n *\n * @param rule {postcss.Rule | string} The css selector to be processed\n * @param options The options for processing\n * @returns {any} The value returned by the processor.\n */;\n _proto.transformSync = function transformSync(rule, options) {\n return this._runSync(rule, options).transform;\n }\n\n /**\n * Process a selector into a new selector string asynchronously.\n *\n * @param rule {postcss.Rule | string} The css selector to be processed\n * @param options The options for processing\n * @returns {string} the selector after processing.\n */;\n _proto.process = function process(rule, options) {\n return this._run(rule, options).then(function (result) {\n return result.string || result.root.toString();\n });\n }\n\n /**\n * Process a selector into a new selector string synchronously.\n *\n * @param rule {postcss.Rule | string} The css selector to be processed\n * @param options The options for processing\n * @returns {string} the selector after processing.\n */;\n _proto.processSync = function processSync(rule, options) {\n var result = this._runSync(rule, options);\n return result.string || result.root.toString();\n };\n return Processor;\n}();\nexports[\"default\"] = Processor;\nmodule.exports = exports.default;", "\"use strict\";\n\nexports.__esModule = true;\nexports.universal = exports.tag = exports.string = exports.selector = exports.root = exports.pseudo = exports.nesting = exports.id = exports.comment = exports.combinator = exports.className = exports.attribute = void 0;\nvar _attribute = _interopRequireDefault(require(\"./attribute\"));\nvar _className = _interopRequireDefault(require(\"./className\"));\nvar _combinator = _interopRequireDefault(require(\"./combinator\"));\nvar _comment = _interopRequireDefault(require(\"./comment\"));\nvar _id = _interopRequireDefault(require(\"./id\"));\nvar _nesting = _interopRequireDefault(require(\"./nesting\"));\nvar _pseudo = _interopRequireDefault(require(\"./pseudo\"));\nvar _root = _interopRequireDefault(require(\"./root\"));\nvar _selector = _interopRequireDefault(require(\"./selector\"));\nvar _string = _interopRequireDefault(require(\"./string\"));\nvar _tag = _interopRequireDefault(require(\"./tag\"));\nvar _universal = _interopRequireDefault(require(\"./universal\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nvar attribute = function attribute(opts) {\n return new _attribute[\"default\"](opts);\n};\nexports.attribute = attribute;\nvar className = function className(opts) {\n return new _className[\"default\"](opts);\n};\nexports.className = className;\nvar combinator = function combinator(opts) {\n return new _combinator[\"default\"](opts);\n};\nexports.combinator = combinator;\nvar comment = function comment(opts) {\n return new _comment[\"default\"](opts);\n};\nexports.comment = comment;\nvar id = function id(opts) {\n return new _id[\"default\"](opts);\n};\nexports.id = id;\nvar nesting = function nesting(opts) {\n return new _nesting[\"default\"](opts);\n};\nexports.nesting = nesting;\nvar pseudo = function pseudo(opts) {\n return new _pseudo[\"default\"](opts);\n};\nexports.pseudo = pseudo;\nvar root = function root(opts) {\n return new _root[\"default\"](opts);\n};\nexports.root = root;\nvar selector = function selector(opts) {\n return new _selector[\"default\"](opts);\n};\nexports.selector = selector;\nvar string = function string(opts) {\n return new _string[\"default\"](opts);\n};\nexports.string = string;\nvar tag = function tag(opts) {\n return new _tag[\"default\"](opts);\n};\nexports.tag = tag;\nvar universal = function universal(opts) {\n return new _universal[\"default\"](opts);\n};\nexports.universal = universal;", "\"use strict\";\n\nexports.__esModule = true;\nexports.isComment = exports.isCombinator = exports.isClassName = exports.isAttribute = void 0;\nexports.isContainer = isContainer;\nexports.isIdentifier = void 0;\nexports.isNamespace = isNamespace;\nexports.isNesting = void 0;\nexports.isNode = isNode;\nexports.isPseudo = void 0;\nexports.isPseudoClass = isPseudoClass;\nexports.isPseudoElement = isPseudoElement;\nexports.isUniversal = exports.isTag = exports.isString = exports.isSelector = exports.isRoot = void 0;\nvar _types = require(\"./types\");\nvar _IS_TYPE;\nvar IS_TYPE = (_IS_TYPE = {}, _IS_TYPE[_types.ATTRIBUTE] = true, _IS_TYPE[_types.CLASS] = true, _IS_TYPE[_types.COMBINATOR] = true, _IS_TYPE[_types.COMMENT] = true, _IS_TYPE[_types.ID] = true, _IS_TYPE[_types.NESTING] = true, _IS_TYPE[_types.PSEUDO] = true, _IS_TYPE[_types.ROOT] = true, _IS_TYPE[_types.SELECTOR] = true, _IS_TYPE[_types.STRING] = true, _IS_TYPE[_types.TAG] = true, _IS_TYPE[_types.UNIVERSAL] = true, _IS_TYPE);\nfunction isNode(node) {\n return typeof node === \"object\" && IS_TYPE[node.type];\n}\nfunction isNodeType(type, node) {\n return isNode(node) && node.type === type;\n}\nvar isAttribute = isNodeType.bind(null, _types.ATTRIBUTE);\nexports.isAttribute = isAttribute;\nvar isClassName = isNodeType.bind(null, _types.CLASS);\nexports.isClassName = isClassName;\nvar isCombinator = isNodeType.bind(null, _types.COMBINATOR);\nexports.isCombinator = isCombinator;\nvar isComment = isNodeType.bind(null, _types.COMMENT);\nexports.isComment = isComment;\nvar isIdentifier = isNodeType.bind(null, _types.ID);\nexports.isIdentifier = isIdentifier;\nvar isNesting = isNodeType.bind(null, _types.NESTING);\nexports.isNesting = isNesting;\nvar isPseudo = isNodeType.bind(null, _types.PSEUDO);\nexports.isPseudo = isPseudo;\nvar isRoot = isNodeType.bind(null, _types.ROOT);\nexports.isRoot = isRoot;\nvar isSelector = isNodeType.bind(null, _types.SELECTOR);\nexports.isSelector = isSelector;\nvar isString = isNodeType.bind(null, _types.STRING);\nexports.isString = isString;\nvar isTag = isNodeType.bind(null, _types.TAG);\nexports.isTag = isTag;\nvar isUniversal = isNodeType.bind(null, _types.UNIVERSAL);\nexports.isUniversal = isUniversal;\nfunction isPseudoElement(node) {\n return isPseudo(node) && node.value && (node.value.startsWith(\"::\") || node.value.toLowerCase() === \":before\" || node.value.toLowerCase() === \":after\" || node.value.toLowerCase() === \":first-letter\" || node.value.toLowerCase() === \":first-line\");\n}\nfunction isPseudoClass(node) {\n return isPseudo(node) && !isPseudoElement(node);\n}\nfunction isContainer(node) {\n return !!(isNode(node) && node.walk);\n}\nfunction isNamespace(node) {\n return isAttribute(node) || isTag(node);\n}", "\"use strict\";\n\nexports.__esModule = true;\nvar _types = require(\"./types\");\nObject.keys(_types).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _types[key]) return;\n exports[key] = _types[key];\n});\nvar _constructors = require(\"./constructors\");\nObject.keys(_constructors).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _constructors[key]) return;\n exports[key] = _constructors[key];\n});\nvar _guards = require(\"./guards\");\nObject.keys(_guards).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _guards[key]) return;\n exports[key] = _guards[key];\n});", "\"use strict\";\n\nexports.__esModule = true;\nexports[\"default\"] = void 0;\nvar _processor = _interopRequireDefault(require(\"./processor\"));\nvar selectors = _interopRequireWildcard(require(\"./selectors\"));\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") { return { \"default\": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj[\"default\"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nvar parser = function parser(processor) {\n return new _processor[\"default\"](processor);\n};\nObject.assign(parser, selectors);\ndelete parser.__esModule;\nvar _default = parser;\nexports[\"default\"] = _default;\nmodule.exports = exports.default;", "let parser = require('postcss-selector-parser')\n\nfunction parse (str, rule) {\n let nodes\n let saver = parser(parsed => {\n nodes = parsed\n })\n try {\n saver.processSync(str)\n } catch (e) {\n if (str.includes(':')) {\n throw rule ? rule.error('Missed semicolon') : e\n } else {\n throw rule ? rule.error(e.message) : e\n }\n }\n return nodes.at(0)\n}\n\nfunction replace (nodes, parent) {\n let replaced = false\n nodes.each(i => {\n if (i.type === 'nesting') {\n let clonedParent = parent.clone()\n if (i.value !== '&') {\n i.replaceWith(parse(i.value.replace('&', clonedParent.toString())))\n } else {\n i.replaceWith(clonedParent)\n }\n replaced = true\n } else if (i.nodes) {\n if (replace(i, parent)) {\n replaced = true\n }\n }\n })\n return replaced\n}\n\nfunction selectors (parent, child) {\n let result = []\n parent.selectors.forEach(i => {\n let parentNode = parse(i, parent)\n\n child.selectors.forEach(j => {\n if (j.length) {\n let node = parse(j, child)\n let replaced = replace(node, parentNode)\n if (!replaced) {\n node.prepend(parser.combinator({ value: ' ' }))\n node.prepend(parentNode.clone())\n }\n result.push(node.toString())\n }\n })\n })\n return result\n}\n\nfunction pickComment (comment, after) {\n if (comment && comment.type === 'comment') {\n after.after(comment)\n return comment\n } else {\n return after\n }\n}\n\nfunction createFnAtruleChilds (bubble) {\n return function atruleChilds (rule, atrule, bubbling) {\n let children = []\n atrule.each(child => {\n if (child.type === 'comment') {\n children.push(child)\n } else if (child.type === 'decl') {\n children.push(child)\n } else if (child.type === 'rule' && bubbling) {\n child.selectors = selectors(rule, child)\n } else if (child.type === 'atrule') {\n if (child.nodes && bubble[child.name]) {\n atruleChilds(rule, child, true)\n } else {\n children.push(child)\n }\n }\n })\n if (bubbling) {\n if (children.length) {\n let clone = rule.clone({ nodes: [] })\n for (let child of children) {\n clone.append(child)\n }\n atrule.prepend(clone)\n }\n }\n }\n}\n\nfunction pickDeclarations (selector, declarations, after, Rule) {\n let parent = new Rule({\n selector,\n nodes: []\n })\n\n for (let declaration of declarations) {\n parent.append(declaration)\n }\n\n after.after(parent)\n return parent\n}\n\nfunction atruleNames (defaults, custom) {\n let list = {}\n for (let i of defaults) {\n list[i] = true\n }\n if (custom) {\n for (let i of custom) {\n let name = i.replace(/^@/, '')\n list[name] = true\n }\n }\n return list\n}\n\nmodule.exports = (opts = {}) => {\n let bubble = atruleNames(['media', 'supports'], opts.bubble)\n let atruleChilds = createFnAtruleChilds(bubble)\n let unwrap = atruleNames(\n [\n 'document',\n 'font-face',\n 'keyframes',\n '-webkit-keyframes',\n '-moz-keyframes'\n ],\n opts.unwrap\n )\n let preserveEmpty = opts.preserveEmpty\n\n return {\n postcssPlugin: 'postcss-nested',\n Rule (rule, { Rule }) {\n let unwrapped = false\n let after = rule\n let copyDeclarations = false\n let declarations = []\n\n rule.each(child => {\n if (child.type === 'rule') {\n if (declarations.length) {\n after = pickDeclarations(rule.selector, declarations, after, Rule)\n declarations = []\n }\n\n copyDeclarations = true\n unwrapped = true\n child.selectors = selectors(rule, child)\n after = pickComment(child.prev(), after)\n after.after(child)\n after = child\n } else if (child.type === 'atrule') {\n if (declarations.length) {\n after = pickDeclarations(rule.selector, declarations, after, Rule)\n declarations = []\n }\n\n if (child.name === 'at-root') {\n unwrapped = true\n atruleChilds(rule, child, false)\n\n let nodes = child.nodes\n if (child.params) {\n nodes = new Rule({ selector: child.params, nodes })\n }\n\n after.after(nodes)\n after = nodes\n child.remove()\n } else if (bubble[child.name]) {\n copyDeclarations = true\n unwrapped = true\n atruleChilds(rule, child, true)\n after = pickComment(child.prev(), after)\n after.after(child)\n after = child\n } else if (unwrap[child.name]) {\n copyDeclarations = true\n unwrapped = true\n atruleChilds(rule, child, false)\n after = pickComment(child.prev(), after)\n after.after(child)\n after = child\n } else if (copyDeclarations) {\n declarations.push(child)\n }\n } else if (child.type === 'decl' && copyDeclarations) {\n declarations.push(child)\n }\n })\n\n if (declarations.length) {\n after = pickDeclarations(rule.selector, declarations, after, Rule)\n }\n\n if (unwrapped && preserveEmpty !== true) {\n rule.raws.semicolon = true\n if (rule.nodes.length === 0) rule.remove()\n }\n }\n }\n}\nmodule.exports.postcss = true\n", "\"use strict\";\n\nvar pattern = /-(\\w|$)/g;\n\nvar callback = function callback(dashChar, char) {\n\treturn char.toUpperCase();\n};\n\nvar camelCaseCSS = function camelCaseCSS(property) {\n\tproperty = property.toLowerCase();\n\n\t// NOTE :: IE8's \"styleFloat\" is intentionally not supported\n\tif (property === \"float\") {\n\t\treturn \"cssFloat\";\n\t}\n\t// Microsoft vendor-prefixes are uniquely cased\n\telse if (property.charCodeAt(0) === 45&& property.charCodeAt(1) === 109&& property.charCodeAt(2) === 115&& property.charCodeAt(3) === 45) {\n\t\t\treturn property.substr(1).replace(pattern, callback);\n\t\t} else {\n\t\t\treturn property.replace(pattern, callback);\n\t\t}\n};\n\nmodule.exports = camelCaseCSS;\n", "let camelcase = require('camelcase-css')\n\nlet UNITLESS = {\n boxFlex: true,\n boxFlexGroup: true,\n columnCount: true,\n flex: true,\n flexGrow: true,\n flexPositive: true,\n flexShrink: true,\n flexNegative: true,\n fontWeight: true,\n lineClamp: true,\n lineHeight: true,\n opacity: true,\n order: true,\n orphans: true,\n tabSize: true,\n widows: true,\n zIndex: true,\n zoom: true,\n fillOpacity: true,\n strokeDashoffset: true,\n strokeOpacity: true,\n strokeWidth: true\n}\n\nfunction atRule(node) {\n if (typeof node.nodes === 'undefined') {\n return true\n } else {\n return process(node)\n }\n}\n\nfunction process(node) {\n let name\n let result = {}\n\n node.each(child => {\n if (child.type === 'atrule') {\n name = '@' + child.name\n if (child.params) name += ' ' + child.params\n if (typeof result[name] === 'undefined') {\n result[name] = atRule(child)\n } else if (Array.isArray(result[name])) {\n result[name].push(atRule(child))\n } else {\n result[name] = [result[name], atRule(child)]\n }\n } else if (child.type === 'rule') {\n let body = process(child)\n if (result[child.selector]) {\n for (let i in body) {\n result[child.selector][i] = body[i]\n }\n } else {\n result[child.selector] = body\n }\n } else if (child.type === 'decl') {\n if (child.prop[0] === '-' && child.prop[1] === '-') {\n name = child.prop\n } else if (child.parent && child.parent.selector === ':export') {\n name = child.prop\n } else {\n name = camelcase(child.prop)\n }\n let value = child.value\n if (!isNaN(child.value) && UNITLESS[name]) {\n value = parseFloat(child.value)\n }\n if (child.important) value += ' !important'\n if (typeof result[name] === 'undefined') {\n result[name] = value\n } else if (Array.isArray(result[name])) {\n result[name].push(value)\n } else {\n result[name] = [result[name], value]\n }\n }\n })\n return result\n}\n\nmodule.exports = process\n", "let postcss = require('postcss')\n\nlet IMPORTANT = /\\s*!important\\s*$/i\n\nlet UNITLESS = {\n 'box-flex': true,\n 'box-flex-group': true,\n 'column-count': true,\n 'flex': true,\n 'flex-grow': true,\n 'flex-positive': true,\n 'flex-shrink': true,\n 'flex-negative': true,\n 'font-weight': true,\n 'line-clamp': true,\n 'line-height': true,\n 'opacity': true,\n 'order': true,\n 'orphans': true,\n 'tab-size': true,\n 'widows': true,\n 'z-index': true,\n 'zoom': true,\n 'fill-opacity': true,\n 'stroke-dashoffset': true,\n 'stroke-opacity': true,\n 'stroke-width': true\n}\n\nfunction dashify(str) {\n return str\n .replace(/([A-Z])/g, '-$1')\n .replace(/^ms-/, '-ms-')\n .toLowerCase()\n}\n\nfunction decl(parent, name, value) {\n if (value === false || value === null) return\n\n if (!name.startsWith('--')) {\n name = dashify(name)\n }\n\n if (typeof value === 'number') {\n if (value === 0 || UNITLESS[name]) {\n value = value.toString()\n } else {\n value += 'px'\n }\n }\n\n if (name === 'css-float') name = 'float'\n\n if (IMPORTANT.test(value)) {\n value = value.replace(IMPORTANT, '')\n parent.push(postcss.decl({ prop: name, value, important: true }))\n } else {\n parent.push(postcss.decl({ prop: name, value }))\n }\n}\n\nfunction atRule(parent, parts, value) {\n let node = postcss.atRule({ name: parts[1], params: parts[3] || '' })\n if (typeof value === 'object') {\n node.nodes = []\n parse(value, node)\n }\n parent.push(node)\n}\n\nfunction parse(obj, parent) {\n let name, value, node\n for (name in obj) {\n value = obj[name]\n if (value === null || typeof value === 'undefined') {\n continue\n } else if (name[0] === '@') {\n let parts = name.match(/@(\\S+)(\\s+([\\W\\w]*)\\s*)?/)\n if (Array.isArray(value)) {\n for (let i of value) {\n atRule(parent, parts, i)\n }\n } else {\n atRule(parent, parts, value)\n }\n } else if (Array.isArray(value)) {\n for (let i of value) {\n decl(parent, name, i)\n }\n } else if (typeof value === 'object') {\n node = postcss.rule({ selector: name })\n parse(value, node)\n parent.push(node)\n } else {\n decl(parent, name, value)\n }\n }\n}\n\nmodule.exports = function (obj) {\n let root = postcss.root()\n parse(obj, root)\n return root\n}\n", "let objectify = require('./objectifier')\n\nmodule.exports = function processResult(result) {\n if (console && console.warn) {\n result.warnings().forEach(warn => {\n let source = warn.plugin || 'PostCSS'\n console.warn(source + ': ' + warn.text)\n })\n }\n return objectify(result.root)\n}\n", "let postcss = require('postcss')\n\nlet processResult = require('./process-result')\nlet parse = require('./parser')\n\nmodule.exports = function async(plugins) {\n let processor = postcss(plugins)\n return async input => {\n let result = await processor.process(input, {\n parser: parse,\n from: undefined\n })\n return processResult(result)\n }\n}\n", "let postcss = require('postcss')\n\nlet processResult = require('./process-result')\nlet parse = require('./parser')\n\nmodule.exports = function (plugins) {\n let processor = postcss(plugins)\n return input => {\n let result = processor.process(input, { parser: parse, from: undefined })\n return processResult(result)\n }\n}\n", "let objectify = require('./objectifier')\nlet parse = require('./parser')\nlet async = require('./async')\nlet sync = require('./sync')\n\nmodule.exports = {\n objectify,\n parse,\n async,\n sync\n}\n", "export default function dlv(obj, key, def, p, undef) {\n\tkey = key.split ? key.split('.') : key;\n\tfor (p = 0; p < key.length; p++) {\n\t\tobj = obj ? obj[key[p]] : undef;\n\t}\n\treturn obj === undef ? def : obj;\n}\n", "/*\n\ndidYouMean.js - A simple JavaScript matching engine\n===================================================\n\n[Available on GitHub](https://github.com/dcporter/didyoumean.js).\n\nA super-simple, highly optimized JS library for matching human-quality input to a list of potential\nmatches. You can use it to suggest a misspelled command-line utility option to a user, or to offer\nlinks to nearby valid URLs on your 404 page. (The examples below are taken from a personal project,\nmy [HTML5 business card](http://dcporter.aws.af.cm/me), which uses didYouMean.js to suggest correct\nURLs from misspelled ones, such as [dcporter.aws.af.cm/me/instagarm](http://dcporter.aws.af.cm/me/instagarm).)\nUses the [Levenshtein distance algorithm](https://en.wikipedia.org/wiki/Levenshtein_distance).\n\ndidYouMean.js works in the browser as well as in node.js. To install it for use in node:\n\n```\nnpm install didyoumean\n```\n\n\nExamples\n--------\n\nMatching against a list of strings:\n```\nvar input = 'insargrm'\nvar list = ['facebook', 'twitter', 'instagram', 'linkedin'];\nconsole.log(didYouMean(input, list));\n> 'instagram'\n// The method matches 'insargrm' to 'instagram'.\n\ninput = 'google plus';\nconsole.log(didYouMean(input, list));\n> null\n// The method was unable to find 'google plus' in the list of options.\n```\n\nMatching against a list of objects:\n```\nvar input = 'insargrm';\nvar list = [ { id: 'facebook' }, { id: 'twitter' }, { id: 'instagram' }, { id: 'linkedin' } ];\nvar key = 'id';\nconsole.log(didYouMean(input, list, key));\n> 'instagram'\n// The method returns the matching value.\n\ndidYouMean.returnWinningObject = true;\nconsole.log(didYouMean(input, list, key));\n> { id: 'instagram' }\n// The method returns the matching object.\n```\n\n\ndidYouMean(str, list, [key])\n----------------------------\n\n- str: The string input to match.\n- list: An array of strings or objects to match against.\n- key (OPTIONAL): If your list array contains objects, you must specify the key which contains the string\n to match against.\n\nReturns: the closest matching string, or null if no strings exceed the threshold.\n\n\nOptions\n-------\n\nOptions are set on the didYouMean function object. You may change them at any time.\n\n### threshold\n\n By default, the method will only return strings whose edit distance is less than 40% (0.4x) of their length.\n For example, if a ten-letter string is five edits away from its nearest match, the method will return null.\n\n You can control this by setting the \"threshold\" value on the didYouMean function. For example, to set the\n edit distance threshold to 50% of the input string's length:\n\n ```\n didYouMean.threshold = 0.5;\n ```\n\n To return the nearest match no matter the threshold, set this value to null.\n\n### thresholdAbsolute\n\n This option behaves the same as threshold, but instead takes an integer number of edit steps. For example,\n if thresholdAbsolute is set to 20 (the default), then the method will only return strings whose edit distance\n is less than 20. Both options apply.\n\n### caseSensitive\n\n By default, the method will perform case-insensitive comparisons. If you wish to force case sensitivity, set\n the \"caseSensitive\" value to true:\n\n ```\n didYouMean.caseSensitive = true;\n ```\n\n### nullResultValue\n\n By default, the method will return null if there is no sufficiently close match. You can change this value here.\n\n### returnWinningObject\n\n By default, the method will return the winning string value (if any). If your list contains objects rather\n than strings, you may set returnWinningObject to true.\n \n ```\n didYouMean.returnWinningObject = true;\n ```\n \n This option has no effect on lists of strings.\n\n### returnFirstMatch\n \n By default, the method will search all values and return the closest match. If you're simply looking for a \"good-\n enough\" match, you can set your thresholds appropriately and set returnFirstMatch to true to substantially speed\n things up.\n\n\nLicense\n-------\n\ndidYouMean copyright (c) 2013-2014 Dave Porter.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License\n[here](http://www.apache.org/licenses/LICENSE-2.0).\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\n*/\n(function() {\n \"use strict\";\n\n // The didYouMean method.\n function didYouMean(str, list, key) {\n if (!str) return null;\n\n // If we're running a case-insensitive search, smallify str.\n if (!didYouMean.caseSensitive) { str = str.toLowerCase(); }\n\n // Calculate the initial value (the threshold) if present.\n var thresholdRelative = didYouMean.threshold === null ? null : didYouMean.threshold * str.length,\n thresholdAbsolute = didYouMean.thresholdAbsolute,\n winningVal;\n if (thresholdRelative !== null && thresholdAbsolute !== null) winningVal = Math.min(thresholdRelative, thresholdAbsolute);\n else if (thresholdRelative !== null) winningVal = thresholdRelative;\n else if (thresholdAbsolute !== null) winningVal = thresholdAbsolute;\n else winningVal = null;\n\n // Get the edit distance to each option. If the closest one is less than 40% (by default) of str's length,\n // then return it.\n var winner, candidate, testCandidate, val,\n i, len = list.length;\n for (i = 0; i < len; i++) {\n // Get item.\n candidate = list[i];\n // If there's a key, get the candidate value out of the object.\n if (key) { candidate = candidate[key]; }\n // Gatekeep.\n if (!candidate) { continue; }\n // If we're running a case-insensitive search, smallify the candidate.\n if (!didYouMean.caseSensitive) { testCandidate = candidate.toLowerCase(); }\n else { testCandidate = candidate; }\n // Get and compare edit distance.\n val = getEditDistance(str, testCandidate, winningVal);\n // If this value is smaller than our current winning value, OR if we have no winning val yet (i.e. the\n // threshold option is set to null, meaning the caller wants a match back no matter how bad it is), then\n // this is our new winner.\n if (winningVal === null || val < winningVal) {\n winningVal = val;\n // Set the winner to either the value or its object, depending on the returnWinningObject option.\n if (key && didYouMean.returnWinningObject) winner = list[i];\n else winner = candidate;\n // If we're returning the first match, return it now.\n if (didYouMean.returnFirstMatch) return winner;\n }\n }\n\n // If we have a winner, return it.\n return winner || didYouMean.nullResultValue;\n }\n\n // Set default options.\n didYouMean.threshold = 0.4;\n didYouMean.thresholdAbsolute = 20;\n didYouMean.caseSensitive = false;\n didYouMean.nullResultValue = null;\n didYouMean.returnWinningObject = null;\n didYouMean.returnFirstMatch = false;\n\n // Expose.\n // In node...\n if (typeof module !== 'undefined' && module.exports) {\n module.exports = didYouMean;\n }\n // Otherwise...\n else {\n window.didYouMean = didYouMean;\n }\n\n var MAX_INT = Math.pow(2,32) - 1; // We could probably go higher than this, but for practical reasons let's not.\n function getEditDistance(a, b, max) {\n // Handle null or undefined max.\n max = max || max === 0 ? max : MAX_INT;\n\n var lena = a.length;\n var lenb = b.length;\n\n // Fast path - no A or B.\n if (lena === 0) return Math.min(max + 1, lenb);\n if (lenb === 0) return Math.min(max + 1, lena);\n\n // Fast path - length diff larger than max.\n if (Math.abs(lena - lenb) > max) return max + 1;\n\n // Slow path.\n var matrix = [],\n i, j, colMin, minJ, maxJ;\n\n // Set up the first row ([0, 1, 2, 3, etc]).\n for (i = 0; i <= lenb; i++) { matrix[i] = [i]; }\n\n // Set up the first column (same).\n for (j = 0; j <= lena; j++) { matrix[0][j] = j; }\n\n // Loop over the rest of the columns.\n for (i = 1; i <= lenb; i++) {\n colMin = MAX_INT;\n minJ = 1;\n if (i > max) minJ = i - max;\n maxJ = lenb + 1;\n if (maxJ > max + i) maxJ = max + i;\n // Loop over the rest of the rows.\n for (j = 1; j <= lena; j++) {\n // If j is out of bounds, just put a large value in the slot.\n if (j < minJ || j > maxJ) {\n matrix[i][j] = max + 1;\n }\n\n // Otherwise do the normal Levenshtein thing.\n else {\n // If the characters are the same, there's no change in edit distance.\n if (b.charAt(i - 1) === a.charAt(j - 1)) {\n matrix[i][j] = matrix[i - 1][j - 1];\n }\n // Otherwise, see if we're substituting, inserting or deleting.\n else {\n matrix[i][j] = Math.min(matrix[i - 1][j - 1] + 1, // Substitute\n Math.min(matrix[i][j - 1] + 1, // Insert\n matrix[i - 1][j] + 1)); // Delete\n }\n }\n\n // Either way, update colMin.\n if (matrix[i][j] < colMin) colMin = matrix[i][j];\n }\n\n // If this column's minimum is greater than the allowed maximum, there's no point\n // in going on with life.\n if (colMin > max) return max + 1;\n }\n // If we made it this far without running into the max, then return the final matrix value.\n return matrix[lenb][lena];\n }\n\n})();\n", "import topbar from \"../vendor/topbar\"\nimport { CodeEditorHook } from \"../../deps/live_monaco_editor/priv/static/live_monaco_editor.esm\"\nimport { getHooks } from \"live_svelte\"\nimport * as Components from \"../svelte/**/*.svelte\"\nlet Hooks = {}\nHooks.CodeEditorHook = CodeEditorHook\ntopbar.config({ barColors: { 0: \"#29d\" }, shadowColor: \"rgba(0, 0, 0, .3)\" })\nwindow.addEventListener(\"phx:page-loading-start\", (_info) => topbar.show(300))\nwindow.addEventListener(\"phx:page-loading-stop\", (_info) => topbar.hide())\n\nwindow.addEventListener(\"beacon_admin:clipcopy\", (event) => {\n const result_id = `${event.target.id}-copy-to-clipboard-result`\n const el = document.getElementById(result_id)\n\n if (\"clipboard\" in navigator) {\n if (event.target.tagName === \"INPUT\") {\n txt = event.target.value\n } else {\n txt = event.target.textContent\n }\n\n navigator.clipboard\n .writeText(txt)\n .then(() => {\n el.innerText = \"Copied to clipboard\"\n // Make it visible\n el.classList.remove(\"invisible\", \"text-red-500\", \"opacity-0\")\n // Fade in and translate upwards\n el.classList.add(\"text-green-500\", \"opacity-100\", \"-translate-y-2\")\n\n setTimeout(function () {\n el.classList.remove(\"text-green-500\", \"opacity-100\", \"-translate-y-2\")\n el.classList.add(\"invisible\", \"text-red-500\", \"opacity-0\")\n }, 2000)\n })\n .catch(() => {\n el.innerText = \"Could not copy\"\n // Make it visible\n el.classList.remove(\"invisible\", \"text-green-500\", \"opacity-0\")\n // Fade in and translate upwards\n el.classList.add(\"text-red-500\", \"opacity-100\", \"-translate-y-2\")\n })\n } else {\n alert(\"Sorry, your browser does not support clipboard copy.\")\n }\n})\n\nlet socketPath = document.querySelector(\"html\").getAttribute(\"phx-socket\") || \"/live\"\nlet csrfToken = document.querySelector(\"meta[name='csrf-token']\").getAttribute(\"content\")\nlet liveSocket = new LiveView.LiveSocket(socketPath, Phoenix.Socket, {\n hooks: { ...getHooks(Components), ...Hooks },\n params: { _csrf_token: csrfToken },\n})\nliveSocket.connect()\nwindow.liveSocket = liveSocket\n", "function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();\n}\n\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nfunction _iterableToArrayLimit(arr, i) {\n if (typeof Symbol === \"undefined\" || !(Symbol.iterator in Object(arr))) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\n\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n\n return arr2;\n}\n\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nexport { _arrayLikeToArray as arrayLikeToArray, _arrayWithHoles as arrayWithHoles, _defineProperty as defineProperty, _iterableToArrayLimit as iterableToArrayLimit, _nonIterableRest as nonIterableRest, _objectSpread2 as objectSpread2, _objectWithoutProperties as objectWithoutProperties, _objectWithoutPropertiesLoose as objectWithoutPropertiesLoose, _slicedToArray as slicedToArray, _unsupportedIterableToArray as unsupportedIterableToArray };\n", "function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nfunction compose() {\n for (var _len = arguments.length, fns = new Array(_len), _key = 0; _key < _len; _key++) {\n fns[_key] = arguments[_key];\n }\n\n return function (x) {\n return fns.reduceRight(function (y, f) {\n return f(y);\n }, x);\n };\n}\n\nfunction curry(fn) {\n return function curried() {\n var _this = this;\n\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n return args.length >= fn.length ? fn.apply(this, args) : function () {\n for (var _len3 = arguments.length, nextArgs = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n nextArgs[_key3] = arguments[_key3];\n }\n\n return curried.apply(_this, [].concat(args, nextArgs));\n };\n };\n}\n\nfunction isObject(value) {\n return {}.toString.call(value).includes('Object');\n}\n\nfunction isEmpty(obj) {\n return !Object.keys(obj).length;\n}\n\nfunction isFunction(value) {\n return typeof value === 'function';\n}\n\nfunction hasOwnProperty(object, property) {\n return Object.prototype.hasOwnProperty.call(object, property);\n}\n\nfunction validateChanges(initial, changes) {\n if (!isObject(changes)) errorHandler('changeType');\n if (Object.keys(changes).some(function (field) {\n return !hasOwnProperty(initial, field);\n })) errorHandler('changeField');\n return changes;\n}\n\nfunction validateSelector(selector) {\n if (!isFunction(selector)) errorHandler('selectorType');\n}\n\nfunction validateHandler(handler) {\n if (!(isFunction(handler) || isObject(handler))) errorHandler('handlerType');\n if (isObject(handler) && Object.values(handler).some(function (_handler) {\n return !isFunction(_handler);\n })) errorHandler('handlersType');\n}\n\nfunction validateInitial(initial) {\n if (!initial) errorHandler('initialIsRequired');\n if (!isObject(initial)) errorHandler('initialType');\n if (isEmpty(initial)) errorHandler('initialContent');\n}\n\nfunction throwError(errorMessages, type) {\n throw new Error(errorMessages[type] || errorMessages[\"default\"]);\n}\n\nvar errorMessages = {\n initialIsRequired: 'initial state is required',\n initialType: 'initial state should be an object',\n initialContent: 'initial state shouldn\\'t be an empty object',\n handlerType: 'handler should be an object or a function',\n handlersType: 'all handlers should be a functions',\n selectorType: 'selector should be a function',\n changeType: 'provided value of changes should be an object',\n changeField: 'it seams you want to change a field in the state which is not specified in the \"initial\" state',\n \"default\": 'an unknown error accured in `state-local` package'\n};\nvar errorHandler = curry(throwError)(errorMessages);\nvar validators = {\n changes: validateChanges,\n selector: validateSelector,\n handler: validateHandler,\n initial: validateInitial\n};\n\nfunction create(initial) {\n var handler = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n validators.initial(initial);\n validators.handler(handler);\n var state = {\n current: initial\n };\n var didUpdate = curry(didStateUpdate)(state, handler);\n var update = curry(updateState)(state);\n var validate = curry(validators.changes)(initial);\n var getChanges = curry(extractChanges)(state);\n\n function getState() {\n var selector = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : function (state) {\n return state;\n };\n validators.selector(selector);\n return selector(state.current);\n }\n\n function setState(causedChanges) {\n compose(didUpdate, update, validate, getChanges)(causedChanges);\n }\n\n return [getState, setState];\n}\n\nfunction extractChanges(state, causedChanges) {\n return isFunction(causedChanges) ? causedChanges(state.current) : causedChanges;\n}\n\nfunction updateState(state, changes) {\n state.current = _objectSpread2(_objectSpread2({}, state.current), changes);\n return changes;\n}\n\nfunction didStateUpdate(state, handler, changes) {\n isFunction(handler) ? handler(state.current) : Object.keys(changes).forEach(function (field) {\n var _handler$field;\n\n return (_handler$field = handler[field]) === null || _handler$field === void 0 ? void 0 : _handler$field.call(handler, state.current[field]);\n });\n return changes;\n}\n\nvar index = {\n create: create\n};\n\nexport default index;\n", "var config = {\n paths: {\n vs: 'https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs'\n }\n};\n\nexport default config;\n", "function curry(fn) {\n return function curried() {\n var _this = this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return args.length >= fn.length ? fn.apply(this, args) : function () {\n for (var _len2 = arguments.length, nextArgs = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n nextArgs[_key2] = arguments[_key2];\n }\n\n return curried.apply(_this, [].concat(args, nextArgs));\n };\n };\n}\n\nexport default curry;\n", "function isObject(value) {\n return {}.toString.call(value).includes('Object');\n}\n\nexport default isObject;\n", "import curry from '../utils/curry.js';\nimport isObject from '../utils/isObject.js';\n\n/**\n * validates the configuration object and informs about deprecation\n * @param {Object} config - the configuration object \n * @return {Object} config - the validated configuration object\n */\n\nfunction validateConfig(config) {\n if (!config) errorHandler('configIsRequired');\n if (!isObject(config)) errorHandler('configType');\n\n if (config.urls) {\n informAboutDeprecation();\n return {\n paths: {\n vs: config.urls.monacoBase\n }\n };\n }\n\n return config;\n}\n/**\n * logs deprecation message\n */\n\n\nfunction informAboutDeprecation() {\n console.warn(errorMessages.deprecation);\n}\n\nfunction throwError(errorMessages, type) {\n throw new Error(errorMessages[type] || errorMessages[\"default\"]);\n}\n\nvar errorMessages = {\n configIsRequired: 'the configuration object is required',\n configType: 'the configuration object should be an object',\n \"default\": 'an unknown error accured in `@monaco-editor/loader` package',\n deprecation: \"Deprecation warning!\\n You are using deprecated way of configuration.\\n\\n Instead of using\\n monaco.config({ urls: { monacoBase: '...' } })\\n use\\n monaco.config({ paths: { vs: '...' } })\\n\\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\\n \"\n};\nvar errorHandler = curry(throwError)(errorMessages);\nvar validators = {\n config: validateConfig\n};\n\nexport default validators;\nexport { errorHandler, errorMessages };\n", "var compose = function compose() {\n for (var _len = arguments.length, fns = new Array(_len), _key = 0; _key < _len; _key++) {\n fns[_key] = arguments[_key];\n }\n\n return function (x) {\n return fns.reduceRight(function (y, f) {\n return f(y);\n }, x);\n };\n};\n\nexport default compose;\n", "import { objectSpread2 as _objectSpread2 } from '../_virtual/_rollupPluginBabelHelpers.js';\n\nfunction merge(target, source) {\n Object.keys(source).forEach(function (key) {\n if (source[key] instanceof Object) {\n if (target[key]) {\n Object.assign(source[key], merge(target[key], source[key]));\n }\n }\n });\n return _objectSpread2(_objectSpread2({}, target), source);\n}\n\nexport default merge;\n", "// The source (has been changed) is https://github.com/facebook/react/issues/5465#issuecomment-157888325\nvar CANCELATION_MESSAGE = {\n type: 'cancelation',\n msg: 'operation is manually canceled'\n};\n\nfunction makeCancelable(promise) {\n var hasCanceled_ = false;\n var wrappedPromise = new Promise(function (resolve, reject) {\n promise.then(function (val) {\n return hasCanceled_ ? reject(CANCELATION_MESSAGE) : resolve(val);\n });\n promise[\"catch\"](reject);\n });\n return wrappedPromise.cancel = function () {\n return hasCanceled_ = true;\n }, wrappedPromise;\n}\n\nexport default makeCancelable;\nexport { CANCELATION_MESSAGE };\n", "import { slicedToArray as _slicedToArray, objectWithoutProperties as _objectWithoutProperties } from '../_virtual/_rollupPluginBabelHelpers.js';\nimport state from 'state-local';\nimport config$1 from '../config/index.js';\nimport validators from '../validators/index.js';\nimport compose from '../utils/compose.js';\nimport merge from '../utils/deepMerge.js';\nimport makeCancelable from '../utils/makeCancelable.js';\n\n/** the local state of the module */\n\nvar _state$create = state.create({\n config: config$1,\n isInitialized: false,\n resolve: null,\n reject: null,\n monaco: null\n}),\n _state$create2 = _slicedToArray(_state$create, 2),\n getState = _state$create2[0],\n setState = _state$create2[1];\n/**\n * set the loader configuration\n * @param {Object} config - the configuration object\n */\n\n\nfunction config(globalConfig) {\n var _validators$config = validators.config(globalConfig),\n monaco = _validators$config.monaco,\n config = _objectWithoutProperties(_validators$config, [\"monaco\"]);\n\n setState(function (state) {\n return {\n config: merge(state.config, config),\n monaco: monaco\n };\n });\n}\n/**\n * handles the initialization of the monaco-editor\n * @return {Promise} - returns an instance of monaco (with a cancelable promise)\n */\n\n\nfunction init() {\n var state = getState(function (_ref) {\n var monaco = _ref.monaco,\n isInitialized = _ref.isInitialized,\n resolve = _ref.resolve;\n return {\n monaco: monaco,\n isInitialized: isInitialized,\n resolve: resolve\n };\n });\n\n if (!state.isInitialized) {\n setState({\n isInitialized: true\n });\n\n if (state.monaco) {\n state.resolve(state.monaco);\n return makeCancelable(wrapperPromise);\n }\n\n if (window.monaco && window.monaco.editor) {\n storeMonacoInstance(window.monaco);\n state.resolve(window.monaco);\n return makeCancelable(wrapperPromise);\n }\n\n compose(injectScripts, getMonacoLoaderScript)(configureLoader);\n }\n\n return makeCancelable(wrapperPromise);\n}\n/**\n * injects provided scripts into the document.body\n * @param {Object} script - an HTML script element\n * @return {Object} - the injected HTML script element\n */\n\n\nfunction injectScripts(script) {\n return document.body.appendChild(script);\n}\n/**\n * creates an HTML script element with/without provided src\n * @param {string} [src] - the source path of the script\n * @return {Object} - the created HTML script element\n */\n\n\nfunction createScript(src) {\n var script = document.createElement('script');\n return src && (script.src = src), script;\n}\n/**\n * creates an HTML script element with the monaco loader src\n * @return {Object} - the created HTML script element\n */\n\n\nfunction getMonacoLoaderScript(configureLoader) {\n var state = getState(function (_ref2) {\n var config = _ref2.config,\n reject = _ref2.reject;\n return {\n config: config,\n reject: reject\n };\n });\n var loaderScript = createScript(\"\".concat(state.config.paths.vs, \"/loader.js\"));\n\n loaderScript.onload = function () {\n return configureLoader();\n };\n\n loaderScript.onerror = state.reject;\n return loaderScript;\n}\n/**\n * configures the monaco loader\n */\n\n\nfunction configureLoader() {\n var state = getState(function (_ref3) {\n var config = _ref3.config,\n resolve = _ref3.resolve,\n reject = _ref3.reject;\n return {\n config: config,\n resolve: resolve,\n reject: reject\n };\n });\n var require = window.require;\n\n require.config(state.config);\n\n require(['vs/editor/editor.main'], function (monaco) {\n storeMonacoInstance(monaco);\n state.resolve(monaco);\n }, function (error) {\n state.reject(error);\n });\n}\n/**\n * store monaco instance in local state\n */\n\n\nfunction storeMonacoInstance(monaco) {\n if (!getState().monaco) {\n setState({\n monaco: monaco\n });\n }\n}\n/**\n * internal helper function\n * extracts stored monaco instance\n * @return {Object|null} - the monaco instance\n */\n\n\nfunction __getMonacoInstance() {\n return getState(function (_ref4) {\n var monaco = _ref4.monaco;\n return monaco;\n });\n}\n\nvar wrapperPromise = new Promise(function (resolve, reject) {\n return setState({\n resolve: resolve,\n reject: reject\n });\n});\nvar loader = {\n config: config,\n init: init,\n __getMonacoInstance: __getMonacoInstance\n};\n\nexport default loader;\n", "// Copied and modified from the original work available at https://github.com/livebook-dev/livebook/blob/23e58ac604de92ce54472f36fe3e28dc27576d6c/assets/js/hooks/cell_editor/live_editor/theme.js\n// Copyright (C) 2021 Dashbit\n// Licensed under Apache 2.0 available at https://www.apache.org/licenses/LICENSE-2.0\n\n// This is a port of the One Dark theme to the Monaco editor.\n// We color graded the comment so it has AA accessibility and\n// then similarly scaled the default font.\nconst colors = {\n background: \"#282c34\",\n default: \"#c4cad6\",\n lightRed: \"#e06c75\",\n blue: \"#61afef\",\n gray: \"#8c92a3\",\n green: \"#98c379\",\n purple: \"#c678dd\",\n red: \"#be5046\",\n teal: \"#56b6c2\",\n peach: \"#d19a66\",\n}\n\nconst rules = (colors) => [\n { token: \"\", foreground: colors.default },\n { token: \"variable\", foreground: colors.lightRed },\n { token: \"constant\", foreground: colors.blue },\n { token: \"constant.character.escape\", foreground: colors.blue },\n { token: \"comment\", foreground: colors.gray },\n { token: \"number\", foreground: colors.blue },\n { token: \"regexp\", foreground: colors.lightRed },\n { token: \"type\", foreground: colors.lightRed },\n { token: \"string\", foreground: colors.green },\n { token: \"keyword\", foreground: colors.purple },\n { token: \"operator\", foreground: colors.peach },\n { token: \"delimiter.bracket.embed\", foreground: colors.red },\n { token: \"sigil\", foreground: colors.teal },\n { token: \"function\", foreground: colors.blue },\n { token: \"function.call\", foreground: colors.default },\n\n // Markdown specific\n { token: \"emphasis\", fontStyle: \"italic\" },\n { token: \"strong\", fontStyle: \"bold\" },\n { token: \"keyword.md\", foreground: colors.lightRed },\n { token: \"keyword.table\", foreground: colors.lightRed },\n { token: \"string.link.md\", foreground: colors.blue },\n { token: \"variable.md\", foreground: colors.teal },\n { token: \"string.md\", foreground: colors.default },\n { token: \"variable.source.md\", foreground: colors.default },\n\n // XML specific\n { token: \"tag\", foreground: colors.lightRed },\n { token: \"metatag\", foreground: colors.lightRed },\n { token: \"attribute.name\", foreground: colors.peach },\n { token: \"attribute.value\", foreground: colors.green },\n\n // JSON specific\n { token: \"string.key\", foreground: colors.lightRed },\n { token: \"keyword.json\", foreground: colors.blue },\n\n // SQL specific\n { token: \"operator.sql\", foreground: colors.purple },\n]\n\nconst theme = {\n base: \"vs-dark\",\n inherit: false,\n rules: rules(colors),\n colors: {\n \"editor.background\": colors.background,\n \"editor.foreground\": colors.default,\n \"editorLineNumber.foreground\": \"#636d83\",\n \"editorCursor.foreground\": \"#636d83\",\n \"editor.selectionBackground\": \"#3e4451\",\n \"editor.findMatchHighlightBackground\": \"#528bff3d\",\n \"editorSuggestWidget.background\": \"#21252b\",\n \"editorSuggestWidget.border\": \"#181a1f\",\n \"editorSuggestWidget.selectedBackground\": \"#2c313a\",\n \"input.background\": \"#1b1d23\",\n \"input.border\": \"#181a1f\",\n \"editorBracketMatch.border\": \"#282c34\",\n \"editorBracketMatch.background\": \"#3e4451\",\n },\n}\n\nexport { theme }\n", "// Copied and modified from the original work available at https://github.com/livebook-dev/livebook/blob/8532bc334bdcf3c57fab9b694666e609877d279f/assets/js/hooks/cell_editor/live_editor.js\n// Copyright (C) 2021 Dashbit\n// Licensed under Apache 2.0 available at https://www.apache.org/licenses/LICENSE-2.0\n\nimport loader from \"@monaco-editor/loader\"\nimport { theme } from \"./themes\"\n\nclass CodeEditor {\n constructor(el, path, value, opts) {\n this.el = el\n this.path = path\n this.value = value\n this.opts = opts\n // https://microsoft.github.io/monaco-editor/docs.html#interfaces/editor.IStandaloneCodeEditor.html\n this.standalone_code_editor = null\n this._onMount = []\n }\n\n isMounted() {\n return !!this.standalone_code_editor\n }\n\n mount() {\n if (this.isMounted()) {\n throw new Error(\"The monaco editor is already mounted\")\n }\n\n this._mountEditor()\n }\n\n onMount(callback) {\n this._onMount.push(callback)\n }\n\n dispose() {\n if (this.isMounted()) {\n const model = this.standalone_code_editor.getModel()\n\n if (model) {\n model.dispose()\n }\n\n this.standalone_code_editor.dispose()\n }\n }\n\n _mountEditor() {\n this.opts.value = this.value\n\n loader.config({\n paths: { vs: \"https://cdn.jsdelivr.net/npm/monaco-editor@0.45.0/min/vs\" },\n })\n\n loader.init().then((monaco) => {\n monaco.editor.defineTheme(\"default\", theme)\n\n let modelUri = monaco.Uri.parse(this.path)\n let language = this.opts.language\n let model = monaco.editor.createModel(this.value, language, modelUri)\n\n this.opts.language = undefined\n this.opts.model = model\n this.standalone_code_editor = monaco.editor.create(this.el, this.opts)\n\n this._onMount.forEach((callback) => callback(monaco))\n\n this._setScreenDependantEditorOptions()\n\n this.standalone_code_editor.addAction({\n contextMenuGroupId: \"word-wrapping\",\n id: \"enable-word-wrapping\",\n label: \"Enable word wrapping\",\n precondition: \"config.editor.wordWrap == off\",\n keybindings: [monaco.KeyMod.Alt | monaco.KeyCode.KeyZ],\n run: (editor) => editor.updateOptions({ wordWrap: \"on\" }),\n })\n\n this.standalone_code_editor.addAction({\n contextMenuGroupId: \"word-wrapping\",\n id: \"disable-word-wrapping\",\n label: \"Disable word wrapping\",\n precondition: \"config.editor.wordWrap == on\",\n keybindings: [monaco.KeyMod.Alt | monaco.KeyCode.KeyZ],\n run: (editor) => editor.updateOptions({ wordWrap: \"off\" }),\n })\n\n const resizeObserver = new ResizeObserver((entries) => {\n entries.forEach(() => {\n if (this.el.offsetHeight > 0) {\n this._setScreenDependantEditorOptions()\n this.standalone_code_editor.layout()\n }\n })\n })\n\n resizeObserver.observe(this.el)\n\n this.standalone_code_editor.onDidContentSizeChange(() => {\n const contentHeight = this.standalone_code_editor.getContentHeight()\n this.el.style.height = `${contentHeight}px`\n })\n })\n }\n\n _setScreenDependantEditorOptions() {\n if (window.screen.width < 768) {\n this.standalone_code_editor.updateOptions({\n folding: false,\n lineDecorationsWidth: 16,\n lineNumbersMinChars:\n Math.floor(\n Math.log10(this.standalone_code_editor.getModel().getLineCount())\n ) + 3,\n })\n } else {\n this.standalone_code_editor.updateOptions({\n folding: true,\n lineDecorationsWidth: 10,\n lineNumbersMinChars: 5,\n })\n }\n }\n}\n\nexport default CodeEditor\n", "import CodeEditor from \"../editor/code_editor\"\n\nconst CodeEditorHook = {\n mounted() {\n // TODO: validate dataset\n const opts = JSON.parse(this.el.dataset.opts)\n\n this.codeEditor = new CodeEditor(\n this.el,\n this.el.dataset.path,\n this.el.dataset.value,\n opts\n )\n\n this.codeEditor.onMount((monaco) => {\n if (this.el.dataset.changeEvent && this.el.dataset.changeEvent !== \"\") {\n this.codeEditor.standalone_code_editor.onDidChangeModelContent(() => {\n if (this.el.dataset.target && this.el.dataset.target !== \"\") {\n this.pushEventTo(\n this.el.dataset.target,\n this.el.dataset.changeEvent,\n {\n value: this.codeEditor.standalone_code_editor.getValue(),\n }\n )\n } else {\n this.pushEvent(this.el.dataset.changeEvent, {\n value: this.codeEditor.standalone_code_editor.getValue(),\n })\n }\n })\n }\n\n this.handleEvent(\n \"lme:change_language:\" + this.el.dataset.path,\n (data) => {\n const model = this.codeEditor.standalone_code_editor.getModel()\n\n if (model.getLanguageId() !== data.mimeTypeOrLanguageId) {\n monaco.editor.setModelLanguage(model, data.mimeTypeOrLanguageId)\n }\n }\n )\n\n this.handleEvent(\"lme:set_value:\" + this.el.dataset.path, (data) => {\n this.codeEditor.standalone_code_editor.setValue(data.value)\n })\n\n this.el.querySelectorAll(\"textarea\").forEach((textarea) => {\n textarea.setAttribute(\n \"name\",\n \"live_monaco_editor[\" + this.el.dataset.path + \"]\"\n )\n })\n\n this.el.removeAttribute(\"data-value\")\n this.el.removeAttribute(\"data-opts\")\n\n this.el.dispatchEvent(\n new CustomEvent(\"lme:editor_mounted\", {\n detail: { hook: this, editor: this.codeEditor },\n bubbles: true,\n })\n )\n })\n\n if (!this.codeEditor.isMounted()) {\n this.codeEditor.mount()\n }\n },\n\n destroyed() {\n if (this.codeEditor) {\n this.codeEditor.dispose()\n }\n },\n}\n\nexport { CodeEditorHook }\n", "export function normalizeComponents(components) {\n if (!Array.isArray(components.default) || !Array.isArray(components.filenames)) return components\n\n const normalized = {}\n for (const [index, module] of components.default.entries()) {\n const Component = module.default\n const name = components.filenames[index].replace(\"../svelte/\", \"\").replace(\".svelte\", \"\")\n normalized[name] = Component\n }\n return normalized\n}\n", "import {normalizeComponents} from \"./utils\"\n\nexport function getRender(components) {\n components = normalizeComponents(components)\n\n return function render(name, props, slots) {\n const Component = components[name]\n const $$slots = Object.fromEntries(Object.entries(slots).map(([k, v]) => [k, () => v]))\n return Component.render(props, {$$slots})\n }\n}\n", "import { normalizeComponents } from \"./utils\"\n\nfunction getAttributeJson(ref, attributeName) {\n const data = ref.el.getAttribute(attributeName)\n return data ? JSON.parse(data) : {}\n}\n\nfunction detach(node) {\n node.parentNode?.removeChild(node)\n}\n\nfunction insert(target, node, anchor) {\n target.insertBefore(node, anchor || null)\n}\n\nfunction noop() { }\n\nfunction getSlots(ref) {\n const slots = {}\n\n for (const slotName in getAttributeJson(ref, \"data-slots\")) {\n const slot = () => {\n return {\n getElement() {\n const base64 = getAttributeJson(ref, \"data-slots\")[slotName]\n const element = document.createElement(\"div\")\n element.innerHTML = atob(base64).trim()\n return element\n },\n update() {\n detach(this.savedElement)\n this.savedElement = this.getElement()\n insert(this.savedTarget, this.savedElement, this.savedAnchor)\n },\n c: noop,\n m(target, anchor) {\n this.savedTarget = target\n this.savedAnchor = anchor\n this.savedElement = this.getElement()\n insert(this.savedTarget, this.savedElement, this.savedAnchor)\n },\n d(detaching) {\n if (detaching) detach(this.savedElement)\n },\n l: noop,\n }\n }\n\n slots[slotName] = [slot]\n }\n\n return slots\n}\n\nfunction getLiveJsonProps(ref) {\n const json = getAttributeJson(ref, \"data-live-json\")\n\n // On SSR, data-live-json is the full object we want\n // After SSR, data-live-json is an array of keys, and we'll get the data from the window\n if (!Array.isArray(json)) return json\n\n const liveJsonData = {}\n for (const liveJsonVariable of json) {\n const data = window[liveJsonVariable]\n if (data) liveJsonData[liveJsonVariable] = data\n }\n return liveJsonData\n}\n\nfunction getProps(ref) {\n return {\n ...getAttributeJson(ref, \"data-props\"),\n ...getLiveJsonProps(ref),\n live: ref,\n $$slots: getSlots(ref),\n $$scope: {},\n }\n}\n\nfunction findSlotCtx(component) {\n // The default slot always exists if there's a slot set\n // even if no slot is set for the explicit default slot\n return component.$$.ctx.find(ctxElement => ctxElement?.default)\n}\n\nexport function getHooks(components) {\n components = normalizeComponents(components)\n\n const SvelteHook = {\n mounted() {\n const componentName = this.el.getAttribute(\"data-name\")\n if (!componentName) {\n throw new Error(\"Component name must be provided\")\n }\n\n const Component = components[componentName]\n if (!Component) {\n throw new Error(`Unable to find ${componentName} component.`)\n }\n\n for (const liveJsonElement of Object.keys(getAttributeJson(this, \"data-live-json\"))) {\n window.addEventListener(`${liveJsonElement}_initialized`, event => this._instance.$set(getProps(this)), false)\n window.addEventListener(`${liveJsonElement}_patched`, event => this._instance.$set(getProps(this)), false)\n }\n\n this._instance = new Component({\n target: this.el,\n props: getProps(this),\n hydrate: this.el.hasAttribute(\"data-ssr\"),\n })\n },\n\n updated() {\n // Set the props\n this._instance.$set(getProps(this))\n\n // Set the slots\n const slotCtx = findSlotCtx(this._instance)\n for (const key in slotCtx) {\n slotCtx[key][0]().update()\n }\n },\n\n destroyed() {\n this._instance.$destroy()\n // window.addEventListener(\"phx:page-loading-stop\", () => this._instance.$destroy(), { once: true })\n },\n }\n\n return {\n SvelteHook,\n }\n}\n", "\n import * as module0 from '../svelte/components/Backdrop.svelte';import * as module1 from '../svelte/components/BrowserFrame.svelte';import * as module2 from '../svelte/components/CodeEditor.svelte';import * as module3 from '../svelte/components/ComponentsSidebar.svelte';import * as module4 from '../svelte/components/LayoutAstNode.svelte';import * as module5 from '../svelte/components/PageAstNode.svelte';import * as module6 from '../svelte/components/PagePreview.svelte';import * as module7 from '../svelte/components/PageWrapper.svelte';import * as module8 from '../svelte/components/Pill.svelte';import * as module9 from '../svelte/components/PropertiesSidebar.svelte';import * as module10 from '../svelte/components/SelectedElementFloatingMenu.svelte';import * as module11 from '../svelte/components/SelectedElementFloatingMenu/DragMenuOption.svelte';import * as module12 from '../svelte/components/SidebarSection.svelte';import * as module13 from '../svelte/components/UiBuilder.svelte'\n\n const modules = [module0,module1,module2,module3,module4,module5,module6,module7,module8,module9,module10,module11,module12,module13];\n\n export default modules;\n export const filenames = ['../svelte/components/Backdrop.svelte','../svelte/components/BrowserFrame.svelte','../svelte/components/CodeEditor.svelte','../svelte/components/ComponentsSidebar.svelte','../svelte/components/LayoutAstNode.svelte','../svelte/components/PageAstNode.svelte','../svelte/components/PagePreview.svelte','../svelte/components/PageWrapper.svelte','../svelte/components/Pill.svelte','../svelte/components/PropertiesSidebar.svelte','../svelte/components/SelectedElementFloatingMenu.svelte','../svelte/components/SelectedElementFloatingMenu/DragMenuOption.svelte','../svelte/components/SidebarSection.svelte','../svelte/components/UiBuilder.svelte']\n ", "/** @returns {void} */\nexport function noop() {}\n\nexport const identity = (x) => x;\n\n/**\n * @template T\n * @template S\n * @param {T} tar\n * @param {S} src\n * @returns {T & S}\n */\nexport function assign(tar, src) {\n\t// @ts-ignore\n\tfor (const k in src) tar[k] = src[k];\n\treturn /** @type {T & S} */ (tar);\n}\n\n// Adapted from https://github.com/then/is-promise/blob/master/index.js\n// Distributed under MIT License https://github.com/then/is-promise/blob/master/LICENSE\n/**\n * @param {any} value\n * @returns {value is PromiseLike}\n */\nexport function is_promise(value) {\n\treturn (\n\t\t!!value &&\n\t\t(typeof value === 'object' || typeof value === 'function') &&\n\t\ttypeof (/** @type {any} */ (value).then) === 'function'\n\t);\n}\n\n/** @returns {void} */\nexport function add_location(element, file, line, column, char) {\n\telement.__svelte_meta = {\n\t\tloc: { file, line, column, char }\n\t};\n}\n\nexport function run(fn) {\n\treturn fn();\n}\n\nexport function blank_object() {\n\treturn Object.create(null);\n}\n\n/**\n * @param {Function[]} fns\n * @returns {void}\n */\nexport function run_all(fns) {\n\tfns.forEach(run);\n}\n\n/**\n * @param {any} thing\n * @returns {thing is Function}\n */\nexport function is_function(thing) {\n\treturn typeof thing === 'function';\n}\n\n/** @returns {boolean} */\nexport function safe_not_equal(a, b) {\n\treturn a != a ? b == b : a !== b || (a && typeof a === 'object') || typeof a === 'function';\n}\n\nlet src_url_equal_anchor;\n\n/**\n * @param {string} element_src\n * @param {string} url\n * @returns {boolean}\n */\nexport function src_url_equal(element_src, url) {\n\tif (element_src === url) return true;\n\tif (!src_url_equal_anchor) {\n\t\tsrc_url_equal_anchor = document.createElement('a');\n\t}\n\t// This is actually faster than doing URL(..).href\n\tsrc_url_equal_anchor.href = url;\n\treturn element_src === src_url_equal_anchor.href;\n}\n\n/** @param {string} srcset */\nfunction split_srcset(srcset) {\n\treturn srcset.split(',').map((src) => src.trim().split(' ').filter(Boolean));\n}\n\n/**\n * @param {HTMLSourceElement | HTMLImageElement} element_srcset\n * @param {string | undefined | null} srcset\n * @returns {boolean}\n */\nexport function srcset_url_equal(element_srcset, srcset) {\n\tconst element_urls = split_srcset(element_srcset.srcset);\n\tconst urls = split_srcset(srcset || '');\n\n\treturn (\n\t\turls.length === element_urls.length &&\n\t\turls.every(\n\t\t\t([url, width], i) =>\n\t\t\t\twidth === element_urls[i][1] &&\n\t\t\t\t// We need to test both ways because Vite will create an a full URL with\n\t\t\t\t// `new URL(asset, import.meta.url).href` for the client when `base: './'`, and the\n\t\t\t\t// relative URLs inside srcset are not automatically resolved to absolute URLs by\n\t\t\t\t// browsers (in contrast to img.src). This means both SSR and DOM code could\n\t\t\t\t// contain relative or absolute URLs.\n\t\t\t\t(src_url_equal(element_urls[i][0], url) || src_url_equal(url, element_urls[i][0]))\n\t\t)\n\t);\n}\n\n/** @returns {boolean} */\nexport function not_equal(a, b) {\n\treturn a != a ? b == b : a !== b;\n}\n\n/** @returns {boolean} */\nexport function is_empty(obj) {\n\treturn Object.keys(obj).length === 0;\n}\n\n/** @returns {void} */\nexport function validate_store(store, name) {\n\tif (store != null && typeof store.subscribe !== 'function') {\n\t\tthrow new Error(`'${name}' is not a store with a 'subscribe' method`);\n\t}\n}\n\nexport function subscribe(store, ...callbacks) {\n\tif (store == null) {\n\t\tfor (const callback of callbacks) {\n\t\t\tcallback(undefined);\n\t\t}\n\t\treturn noop;\n\t}\n\tconst unsub = store.subscribe(...callbacks);\n\treturn unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;\n}\n\n/**\n * Get the current value from a store by subscribing and immediately unsubscribing.\n *\n * https://svelte.dev/docs/svelte-store#get\n * @template T\n * @param {import('../store/public.js').Readable} store\n * @returns {T}\n */\nexport function get_store_value(store) {\n\tlet value;\n\tsubscribe(store, (_) => (value = _))();\n\treturn value;\n}\n\n/** @returns {void} */\nexport function component_subscribe(component, store, callback) {\n\tcomponent.$$.on_destroy.push(subscribe(store, callback));\n}\n\nexport function create_slot(definition, ctx, $$scope, fn) {\n\tif (definition) {\n\t\tconst slot_ctx = get_slot_context(definition, ctx, $$scope, fn);\n\t\treturn definition[0](slot_ctx);\n\t}\n}\n\nfunction get_slot_context(definition, ctx, $$scope, fn) {\n\treturn definition[1] && fn ? assign($$scope.ctx.slice(), definition[1](fn(ctx))) : $$scope.ctx;\n}\n\nexport function get_slot_changes(definition, $$scope, dirty, fn) {\n\tif (definition[2] && fn) {\n\t\tconst lets = definition[2](fn(dirty));\n\t\tif ($$scope.dirty === undefined) {\n\t\t\treturn lets;\n\t\t}\n\t\tif (typeof lets === 'object') {\n\t\t\tconst merged = [];\n\t\t\tconst len = Math.max($$scope.dirty.length, lets.length);\n\t\t\tfor (let i = 0; i < len; i += 1) {\n\t\t\t\tmerged[i] = $$scope.dirty[i] | lets[i];\n\t\t\t}\n\t\t\treturn merged;\n\t\t}\n\t\treturn $$scope.dirty | lets;\n\t}\n\treturn $$scope.dirty;\n}\n\n/** @returns {void} */\nexport function update_slot_base(\n\tslot,\n\tslot_definition,\n\tctx,\n\t$$scope,\n\tslot_changes,\n\tget_slot_context_fn\n) {\n\tif (slot_changes) {\n\t\tconst slot_context = get_slot_context(slot_definition, ctx, $$scope, get_slot_context_fn);\n\t\tslot.p(slot_context, slot_changes);\n\t}\n}\n\n/** @returns {void} */\nexport function update_slot(\n\tslot,\n\tslot_definition,\n\tctx,\n\t$$scope,\n\tdirty,\n\tget_slot_changes_fn,\n\tget_slot_context_fn\n) {\n\tconst slot_changes = get_slot_changes(slot_definition, $$scope, dirty, get_slot_changes_fn);\n\tupdate_slot_base(slot, slot_definition, ctx, $$scope, slot_changes, get_slot_context_fn);\n}\n\n/** @returns {any[] | -1} */\nexport function get_all_dirty_from_scope($$scope) {\n\tif ($$scope.ctx.length > 32) {\n\t\tconst dirty = [];\n\t\tconst length = $$scope.ctx.length / 32;\n\t\tfor (let i = 0; i < length; i++) {\n\t\t\tdirty[i] = -1;\n\t\t}\n\t\treturn dirty;\n\t}\n\treturn -1;\n}\n\n/** @returns {{}} */\nexport function exclude_internal_props(props) {\n\tconst result = {};\n\tfor (const k in props) if (k[0] !== '$') result[k] = props[k];\n\treturn result;\n}\n\n/** @returns {{}} */\nexport function compute_rest_props(props, keys) {\n\tconst rest = {};\n\tkeys = new Set(keys);\n\tfor (const k in props) if (!keys.has(k) && k[0] !== '$') rest[k] = props[k];\n\treturn rest;\n}\n\n/** @returns {{}} */\nexport function compute_slots(slots) {\n\tconst result = {};\n\tfor (const key in slots) {\n\t\tresult[key] = true;\n\t}\n\treturn result;\n}\n\n/** @returns {(this: any, ...args: any[]) => void} */\nexport function once(fn) {\n\tlet ran = false;\n\treturn function (...args) {\n\t\tif (ran) return;\n\t\tran = true;\n\t\tfn.call(this, ...args);\n\t};\n}\n\nexport function null_to_empty(value) {\n\treturn value == null ? '' : value;\n}\n\nexport function set_store_value(store, ret, value) {\n\tstore.set(value);\n\treturn ret;\n}\n\nexport const has_prop = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);\n\nexport function action_destroyer(action_result) {\n\treturn action_result && is_function(action_result.destroy) ? action_result.destroy : noop;\n}\n\n/** @param {number | string} value\n * @returns {[number, string]}\n */\nexport function split_css_unit(value) {\n\tconst split = typeof value === 'string' && value.match(/^\\s*(-?[\\d.]+)([^\\s]*)\\s*$/);\n\treturn split ? [parseFloat(split[1]), split[2] || 'px'] : [/** @type {number} */ (value), 'px'];\n}\n\nexport const contenteditable_truthy_values = ['', true, 1, 'true', 'contenteditable'];\n", "import { noop } from './utils.js';\n\nexport const is_client = typeof window !== 'undefined';\n\n/** @type {() => number} */\nexport let now = is_client ? () => window.performance.now() : () => Date.now();\n\nexport let raf = is_client ? (cb) => requestAnimationFrame(cb) : noop;\n\n// used internally for testing\n/** @returns {void} */\nexport function set_now(fn) {\n\tnow = fn;\n}\n\n/** @returns {void} */\nexport function set_raf(fn) {\n\traf = fn;\n}\n", "import { raf } from './environment.js';\n\nconst tasks = new Set();\n\n/**\n * @param {number} now\n * @returns {void}\n */\nfunction run_tasks(now) {\n\ttasks.forEach((task) => {\n\t\tif (!task.c(now)) {\n\t\t\ttasks.delete(task);\n\t\t\ttask.f();\n\t\t}\n\t});\n\tif (tasks.size !== 0) raf(run_tasks);\n}\n\n/**\n * For testing purposes only!\n * @returns {void}\n */\nexport function clear_loops() {\n\ttasks.clear();\n}\n\n/**\n * Creates a new task that runs on each raf frame\n * until it returns a falsy value or is aborted\n * @param {import('./private.js').TaskCallback} callback\n * @returns {import('./private.js').Task}\n */\nexport function loop(callback) {\n\t/** @type {import('./private.js').TaskEntry} */\n\tlet task;\n\tif (tasks.size === 0) raf(run_tasks);\n\treturn {\n\t\tpromise: new Promise((fulfill) => {\n\t\t\ttasks.add((task = { c: callback, f: fulfill }));\n\t\t}),\n\t\tabort() {\n\t\t\ttasks.delete(task);\n\t\t}\n\t};\n}\n", "/** @type {typeof globalThis} */\nexport const globals =\n\ttypeof window !== 'undefined'\n\t\t? window\n\t\t: typeof globalThis !== 'undefined'\n\t\t? globalThis\n\t\t: // @ts-ignore Node typings have this\n\t\t global;\n", "import { globals } from './globals.js';\n\n/**\n * Resize observer singleton.\n * One listener per element only!\n * https://groups.google.com/a/chromium.org/g/blink-dev/c/z6ienONUb5A/m/F5-VcUZtBAAJ\n */\nexport class ResizeObserverSingleton {\n\t/**\n\t * @private\n\t * @readonly\n\t * @type {WeakMap}\n\t */\n\t_listeners = 'WeakMap' in globals ? new WeakMap() : undefined;\n\n\t/**\n\t * @private\n\t * @type {ResizeObserver}\n\t */\n\t_observer = undefined;\n\n\t/** @type {ResizeObserverOptions} */\n\toptions;\n\n\t/** @param {ResizeObserverOptions} options */\n\tconstructor(options) {\n\t\tthis.options = options;\n\t}\n\n\t/**\n\t * @param {Element} element\n\t * @param {import('./private.js').Listener} listener\n\t * @returns {() => void}\n\t */\n\tobserve(element, listener) {\n\t\tthis._listeners.set(element, listener);\n\t\tthis._getObserver().observe(element, this.options);\n\t\treturn () => {\n\t\t\tthis._listeners.delete(element);\n\t\t\tthis._observer.unobserve(element); // this line can probably be removed\n\t\t};\n\t}\n\n\t/**\n\t * @private\n\t */\n\t_getObserver() {\n\t\treturn (\n\t\t\tthis._observer ??\n\t\t\t(this._observer = new ResizeObserver((entries) => {\n\t\t\t\tfor (const entry of entries) {\n\t\t\t\t\tResizeObserverSingleton.entries.set(entry.target, entry);\n\t\t\t\t\tthis._listeners.get(entry.target)?.(entry);\n\t\t\t\t}\n\t\t\t}))\n\t\t);\n\t}\n}\n\n// Needs to be written like this to pass the tree-shake-test\nResizeObserverSingleton.entries = 'WeakMap' in globals ? new WeakMap() : undefined;\n", "import { contenteditable_truthy_values, has_prop } from './utils.js';\n\nimport { ResizeObserverSingleton } from './ResizeObserverSingleton.js';\n\n// Track which nodes are claimed during hydration. Unclaimed nodes can then be removed from the DOM\n// at the end of hydration without touching the remaining nodes.\nlet is_hydrating = false;\n\n/**\n * @returns {void}\n */\nexport function start_hydrating() {\n\tis_hydrating = true;\n}\n\n/**\n * @returns {void}\n */\nexport function end_hydrating() {\n\tis_hydrating = false;\n}\n\n/**\n * @param {number} low\n * @param {number} high\n * @param {(index: number) => number} key\n * @param {number} value\n * @returns {number}\n */\nfunction upper_bound(low, high, key, value) {\n\t// Return first index of value larger than input value in the range [low, high)\n\twhile (low < high) {\n\t\tconst mid = low + ((high - low) >> 1);\n\t\tif (key(mid) <= value) {\n\t\t\tlow = mid + 1;\n\t\t} else {\n\t\t\thigh = mid;\n\t\t}\n\t}\n\treturn low;\n}\n\n/**\n * @param {NodeEx} target\n * @returns {void}\n */\nfunction init_hydrate(target) {\n\tif (target.hydrate_init) return;\n\ttarget.hydrate_init = true;\n\t// We know that all children have claim_order values since the unclaimed have been detached if target is not \n\n\tlet children = /** @type {ArrayLike} */ (target.childNodes);\n\t// If target is , there may be children without claim_order\n\tif (target.nodeName === 'HEAD') {\n\t\tconst my_children = [];\n\t\tfor (let i = 0; i < children.length; i++) {\n\t\t\tconst node = children[i];\n\t\t\tif (node.claim_order !== undefined) {\n\t\t\t\tmy_children.push(node);\n\t\t\t}\n\t\t}\n\t\tchildren = my_children;\n\t}\n\t/*\n\t * Reorder claimed children optimally.\n\t * We can reorder claimed children optimally by finding the longest subsequence of\n\t * nodes that are already claimed in order and only moving the rest. The longest\n\t * subsequence of nodes that are claimed in order can be found by\n\t * computing the longest increasing subsequence of .claim_order values.\n\t *\n\t * This algorithm is optimal in generating the least amount of reorder operations\n\t * possible.\n\t *\n\t * Proof:\n\t * We know that, given a set of reordering operations, the nodes that do not move\n\t * always form an increasing subsequence, since they do not move among each other\n\t * meaning that they must be already ordered among each other. Thus, the maximal\n\t * set of nodes that do not move form a longest increasing subsequence.\n\t */\n\t// Compute longest increasing subsequence\n\t// m: subsequence length j => index k of smallest value that ends an increasing subsequence of length j\n\tconst m = new Int32Array(children.length + 1);\n\t// Predecessor indices + 1\n\tconst p = new Int32Array(children.length);\n\tm[0] = -1;\n\tlet longest = 0;\n\tfor (let i = 0; i < children.length; i++) {\n\t\tconst current = children[i].claim_order;\n\t\t// Find the largest subsequence length such that it ends in a value less than our current value\n\t\t// upper_bound returns first greater value, so we subtract one\n\t\t// with fast path for when we are on the current longest subsequence\n\t\tconst seq_len =\n\t\t\t(longest > 0 && children[m[longest]].claim_order <= current\n\t\t\t\t? longest + 1\n\t\t\t\t: upper_bound(1, longest, (idx) => children[m[idx]].claim_order, current)) - 1;\n\t\tp[i] = m[seq_len] + 1;\n\t\tconst new_len = seq_len + 1;\n\t\t// We can guarantee that current is the smallest value. Otherwise, we would have generated a longer sequence.\n\t\tm[new_len] = i;\n\t\tlongest = Math.max(new_len, longest);\n\t}\n\t// The longest increasing subsequence of nodes (initially reversed)\n\n\t/**\n\t * @type {NodeEx2[]}\n\t */\n\tconst lis = [];\n\t// The rest of the nodes, nodes that will be moved\n\n\t/**\n\t * @type {NodeEx2[]}\n\t */\n\tconst to_move = [];\n\tlet last = children.length - 1;\n\tfor (let cur = m[longest] + 1; cur != 0; cur = p[cur - 1]) {\n\t\tlis.push(children[cur - 1]);\n\t\tfor (; last >= cur; last--) {\n\t\t\tto_move.push(children[last]);\n\t\t}\n\t\tlast--;\n\t}\n\tfor (; last >= 0; last--) {\n\t\tto_move.push(children[last]);\n\t}\n\tlis.reverse();\n\t// We sort the nodes being moved to guarantee that their insertion order matches the claim order\n\tto_move.sort((a, b) => a.claim_order - b.claim_order);\n\t// Finally, we move the nodes\n\tfor (let i = 0, j = 0; i < to_move.length; i++) {\n\t\twhile (j < lis.length && to_move[i].claim_order >= lis[j].claim_order) {\n\t\t\tj++;\n\t\t}\n\t\tconst anchor = j < lis.length ? lis[j] : null;\n\t\ttarget.insertBefore(to_move[i], anchor);\n\t}\n}\n\n/**\n * @param {Node} target\n * @param {Node} node\n * @returns {void}\n */\nexport function append(target, node) {\n\ttarget.appendChild(node);\n}\n\n/**\n * @param {Node} target\n * @param {string} style_sheet_id\n * @param {string} styles\n * @returns {void}\n */\nexport function append_styles(target, style_sheet_id, styles) {\n\tconst append_styles_to = get_root_for_style(target);\n\tif (!append_styles_to.getElementById(style_sheet_id)) {\n\t\tconst style = element('style');\n\t\tstyle.id = style_sheet_id;\n\t\tstyle.textContent = styles;\n\t\tappend_stylesheet(append_styles_to, style);\n\t}\n}\n\n/**\n * @param {Node} node\n * @returns {ShadowRoot | Document}\n */\nexport function get_root_for_style(node) {\n\tif (!node) return document;\n\tconst root = node.getRootNode ? node.getRootNode() : node.ownerDocument;\n\tif (root && /** @type {ShadowRoot} */ (root).host) {\n\t\treturn /** @type {ShadowRoot} */ (root);\n\t}\n\treturn node.ownerDocument;\n}\n\n/**\n * @param {Node} node\n * @returns {CSSStyleSheet}\n */\nexport function append_empty_stylesheet(node) {\n\tconst style_element = element('style');\n\t// For transitions to work without 'style-src: unsafe-inline' Content Security Policy,\n\t// these empty tags need to be allowed with a hash as a workaround until we move to the Web Animations API.\n\t// Using the hash for the empty string (for an empty tag) works in all browsers except Safari.\n\t// So as a workaround for the workaround, when we append empty style tags we set their content to /* empty */.\n\t// The hash 'sha256-9OlNO0DNEeaVzHL4RZwCLsBHA8WBQ8toBp/4F5XV2nc=' will then work even in Safari.\n\tstyle_element.textContent = '/* empty */';\n\tappend_stylesheet(get_root_for_style(node), style_element);\n\treturn style_element.sheet;\n}\n\n/**\n * @param {ShadowRoot | Document} node\n * @param {HTMLStyleElement} style\n * @returns {CSSStyleSheet}\n */\nfunction append_stylesheet(node, style) {\n\tappend(/** @type {Document} */ (node).head || node, style);\n\treturn style.sheet;\n}\n\n/**\n * @param {NodeEx} target\n * @param {NodeEx} node\n * @returns {void}\n */\nexport function append_hydration(target, node) {\n\tif (is_hydrating) {\n\t\tinit_hydrate(target);\n\t\tif (\n\t\t\ttarget.actual_end_child === undefined ||\n\t\t\t(target.actual_end_child !== null && target.actual_end_child.parentNode !== target)\n\t\t) {\n\t\t\ttarget.actual_end_child = target.firstChild;\n\t\t}\n\t\t// Skip nodes of undefined ordering\n\t\twhile (target.actual_end_child !== null && target.actual_end_child.claim_order === undefined) {\n\t\t\ttarget.actual_end_child = target.actual_end_child.nextSibling;\n\t\t}\n\t\tif (node !== target.actual_end_child) {\n\t\t\t// We only insert if the ordering of this node should be modified or the parent node is not target\n\t\t\tif (node.claim_order !== undefined || node.parentNode !== target) {\n\t\t\t\ttarget.insertBefore(node, target.actual_end_child);\n\t\t\t}\n\t\t} else {\n\t\t\ttarget.actual_end_child = node.nextSibling;\n\t\t}\n\t} else if (node.parentNode !== target || node.nextSibling !== null) {\n\t\ttarget.appendChild(node);\n\t}\n}\n\n/**\n * @param {Node} target\n * @param {Node} node\n * @param {Node} [anchor]\n * @returns {void}\n */\nexport function insert(target, node, anchor) {\n\ttarget.insertBefore(node, anchor || null);\n}\n\n/**\n * @param {NodeEx} target\n * @param {NodeEx} node\n * @param {NodeEx} [anchor]\n * @returns {void}\n */\nexport function insert_hydration(target, node, anchor) {\n\tif (is_hydrating && !anchor) {\n\t\tappend_hydration(target, node);\n\t} else if (node.parentNode !== target || node.nextSibling != anchor) {\n\t\ttarget.insertBefore(node, anchor || null);\n\t}\n}\n\n/**\n * @param {Node} node\n * @returns {void}\n */\nexport function detach(node) {\n\tif (node.parentNode) {\n\t\tnode.parentNode.removeChild(node);\n\t}\n}\n\n/**\n * @returns {void} */\nexport function destroy_each(iterations, detaching) {\n\tfor (let i = 0; i < iterations.length; i += 1) {\n\t\tif (iterations[i]) iterations[i].d(detaching);\n\t}\n}\n\n/**\n * @template {keyof HTMLElementTagNameMap} K\n * @param {K} name\n * @returns {HTMLElementTagNameMap[K]}\n */\nexport function element(name) {\n\treturn document.createElement(name);\n}\n\n/**\n * @template {keyof HTMLElementTagNameMap} K\n * @param {K} name\n * @param {string} is\n * @returns {HTMLElementTagNameMap[K]}\n */\nexport function element_is(name, is) {\n\treturn document.createElement(name, { is });\n}\n\n/**\n * @template T\n * @template {keyof T} K\n * @param {T} obj\n * @param {K[]} exclude\n * @returns {Pick>}\n */\nexport function object_without_properties(obj, exclude) {\n\tconst target = /** @type {Pick>} */ ({});\n\tfor (const k in obj) {\n\t\tif (\n\t\t\thas_prop(obj, k) &&\n\t\t\t// @ts-ignore\n\t\t\texclude.indexOf(k) === -1\n\t\t) {\n\t\t\t// @ts-ignore\n\t\t\ttarget[k] = obj[k];\n\t\t}\n\t}\n\treturn target;\n}\n\n/**\n * @template {keyof SVGElementTagNameMap} K\n * @param {K} name\n * @returns {SVGElement}\n */\nexport function svg_element(name) {\n\treturn document.createElementNS('http://www.w3.org/2000/svg', name);\n}\n\n/**\n * @param {string} data\n * @returns {Text}\n */\nexport function text(data) {\n\treturn document.createTextNode(data);\n}\n\n/**\n * @returns {Text} */\nexport function space() {\n\treturn text(' ');\n}\n\n/**\n * @returns {Text} */\nexport function empty() {\n\treturn text('');\n}\n\n/**\n * @param {string} content\n * @returns {Comment}\n */\nexport function comment(content) {\n\treturn document.createComment(content);\n}\n\n/**\n * @param {EventTarget} node\n * @param {string} event\n * @param {EventListenerOrEventListenerObject} handler\n * @param {boolean | AddEventListenerOptions | EventListenerOptions} [options]\n * @returns {() => void}\n */\nexport function listen(node, event, handler, options) {\n\tnode.addEventListener(event, handler, options);\n\treturn () => node.removeEventListener(event, handler, options);\n}\n\n/**\n * @returns {(event: any) => any} */\nexport function prevent_default(fn) {\n\treturn function (event) {\n\t\tevent.preventDefault();\n\t\t// @ts-ignore\n\t\treturn fn.call(this, event);\n\t};\n}\n\n/**\n * @returns {(event: any) => any} */\nexport function stop_propagation(fn) {\n\treturn function (event) {\n\t\tevent.stopPropagation();\n\t\t// @ts-ignore\n\t\treturn fn.call(this, event);\n\t};\n}\n\n/**\n * @returns {(event: any) => any} */\nexport function stop_immediate_propagation(fn) {\n\treturn function (event) {\n\t\tevent.stopImmediatePropagation();\n\t\t// @ts-ignore\n\t\treturn fn.call(this, event);\n\t};\n}\n\n/**\n * @returns {(event: any) => void} */\nexport function self(fn) {\n\treturn function (event) {\n\t\t// @ts-ignore\n\t\tif (event.target === this) fn.call(this, event);\n\t};\n}\n\n/**\n * @returns {(event: any) => void} */\nexport function trusted(fn) {\n\treturn function (event) {\n\t\t// @ts-ignore\n\t\tif (event.isTrusted) fn.call(this, event);\n\t};\n}\n\n/**\n * @param {Element} node\n * @param {string} attribute\n * @param {string} [value]\n * @returns {void}\n */\nexport function attr(node, attribute, value) {\n\tif (value == null) node.removeAttribute(attribute);\n\telse if (node.getAttribute(attribute) !== value) node.setAttribute(attribute, value);\n}\n/**\n * List of attributes that should always be set through the attr method,\n * because updating them through the property setter doesn't work reliably.\n * In the example of `width`/`height`, the problem is that the setter only\n * accepts numeric values, but the attribute can also be set to a string like `50%`.\n * If this list becomes too big, rethink this approach.\n */\nconst always_set_through_set_attribute = ['width', 'height'];\n\n/**\n * @param {Element & ElementCSSInlineStyle} node\n * @param {{ [x: string]: string }} attributes\n * @returns {void}\n */\nexport function set_attributes(node, attributes) {\n\t// @ts-ignore\n\tconst descriptors = Object.getOwnPropertyDescriptors(node.__proto__);\n\tfor (const key in attributes) {\n\t\tif (attributes[key] == null) {\n\t\t\tnode.removeAttribute(key);\n\t\t} else if (key === 'style') {\n\t\t\tnode.style.cssText = attributes[key];\n\t\t} else if (key === '__value') {\n\t\t\t/** @type {any} */ (node).value = node[key] = attributes[key];\n\t\t} else if (\n\t\t\tdescriptors[key] &&\n\t\t\tdescriptors[key].set &&\n\t\t\talways_set_through_set_attribute.indexOf(key) === -1\n\t\t) {\n\t\t\tnode[key] = attributes[key];\n\t\t} else {\n\t\t\tattr(node, key, attributes[key]);\n\t\t}\n\t}\n}\n\n/**\n * @param {Element & ElementCSSInlineStyle} node\n * @param {{ [x: string]: string }} attributes\n * @returns {void}\n */\nexport function set_svg_attributes(node, attributes) {\n\tfor (const key in attributes) {\n\t\tattr(node, key, attributes[key]);\n\t}\n}\n\n/**\n * @param {Record} data_map\n * @returns {void}\n */\nexport function set_custom_element_data_map(node, data_map) {\n\tObject.keys(data_map).forEach((key) => {\n\t\tset_custom_element_data(node, key, data_map[key]);\n\t});\n}\n\n/**\n * @returns {void} */\nexport function set_custom_element_data(node, prop, value) {\n\tconst lower = prop.toLowerCase(); // for backwards compatibility with existing behavior we do lowercase first\n\tif (lower in node) {\n\t\tnode[lower] = typeof node[lower] === 'boolean' && value === '' ? true : value;\n\t} else if (prop in node) {\n\t\tnode[prop] = typeof node[prop] === 'boolean' && value === '' ? true : value;\n\t} else {\n\t\tattr(node, prop, value);\n\t}\n}\n\n/**\n * @param {string} tag\n */\nexport function set_dynamic_element_data(tag) {\n\treturn /-/.test(tag) ? set_custom_element_data_map : set_attributes;\n}\n\n/**\n * @returns {void}\n */\nexport function xlink_attr(node, attribute, value) {\n\tnode.setAttributeNS('http://www.w3.org/1999/xlink', attribute, value);\n}\n\n/**\n * @param {HTMLElement} node\n * @returns {string}\n */\nexport function get_svelte_dataset(node) {\n\treturn node.dataset.svelteH;\n}\n\n/**\n * @returns {unknown[]} */\nexport function get_binding_group_value(group, __value, checked) {\n\tconst value = new Set();\n\tfor (let i = 0; i < group.length; i += 1) {\n\t\tif (group[i].checked) value.add(group[i].__value);\n\t}\n\tif (!checked) {\n\t\tvalue.delete(__value);\n\t}\n\treturn Array.from(value);\n}\n\n/**\n * @param {HTMLInputElement[]} group\n * @returns {{ p(...inputs: HTMLInputElement[]): void; r(): void; }}\n */\nexport function init_binding_group(group) {\n\t/**\n\t * @type {HTMLInputElement[]} */\n\tlet _inputs;\n\treturn {\n\t\t/* push */ p(...inputs) {\n\t\t\t_inputs = inputs;\n\t\t\t_inputs.forEach((input) => group.push(input));\n\t\t},\n\t\t/* remove */ r() {\n\t\t\t_inputs.forEach((input) => group.splice(group.indexOf(input), 1));\n\t\t}\n\t};\n}\n\n/**\n * @param {number[]} indexes\n * @returns {{ u(new_indexes: number[]): void; p(...inputs: HTMLInputElement[]): void; r: () => void; }}\n */\nexport function init_binding_group_dynamic(group, indexes) {\n\t/**\n\t * @type {HTMLInputElement[]} */\n\tlet _group = get_binding_group(group);\n\n\t/**\n\t * @type {HTMLInputElement[]} */\n\tlet _inputs;\n\n\tfunction get_binding_group(group) {\n\t\tfor (let i = 0; i < indexes.length; i++) {\n\t\t\tgroup = group[indexes[i]] = group[indexes[i]] || [];\n\t\t}\n\t\treturn group;\n\t}\n\n\t/**\n\t * @returns {void} */\n\tfunction push() {\n\t\t_inputs.forEach((input) => _group.push(input));\n\t}\n\n\t/**\n\t * @returns {void} */\n\tfunction remove() {\n\t\t_inputs.forEach((input) => _group.splice(_group.indexOf(input), 1));\n\t}\n\treturn {\n\t\t/* update */ u(new_indexes) {\n\t\t\tindexes = new_indexes;\n\t\t\tconst new_group = get_binding_group(group);\n\t\t\tif (new_group !== _group) {\n\t\t\t\tremove();\n\t\t\t\t_group = new_group;\n\t\t\t\tpush();\n\t\t\t}\n\t\t},\n\t\t/* push */ p(...inputs) {\n\t\t\t_inputs = inputs;\n\t\t\tpush();\n\t\t},\n\t\t/* remove */ r: remove\n\t};\n}\n\n/** @returns {number} */\nexport function to_number(value) {\n\treturn value === '' ? null : +value;\n}\n\n/** @returns {any[]} */\nexport function time_ranges_to_array(ranges) {\n\tconst array = [];\n\tfor (let i = 0; i < ranges.length; i += 1) {\n\t\tarray.push({ start: ranges.start(i), end: ranges.end(i) });\n\t}\n\treturn array;\n}\n\n/**\n * @param {Element} element\n * @returns {ChildNode[]}\n */\nexport function children(element) {\n\treturn Array.from(element.childNodes);\n}\n\n/**\n * @param {ChildNodeArray} nodes\n * @returns {void}\n */\nfunction init_claim_info(nodes) {\n\tif (nodes.claim_info === undefined) {\n\t\tnodes.claim_info = { last_index: 0, total_claimed: 0 };\n\t}\n}\n\n/**\n * @template {ChildNodeEx} R\n * @param {ChildNodeArray} nodes\n * @param {(node: ChildNodeEx) => node is R} predicate\n * @param {(node: ChildNodeEx) => ChildNodeEx | undefined} process_node\n * @param {() => R} create_node\n * @param {boolean} dont_update_last_index\n * @returns {R}\n */\nfunction claim_node(nodes, predicate, process_node, create_node, dont_update_last_index = false) {\n\t// Try to find nodes in an order such that we lengthen the longest increasing subsequence\n\tinit_claim_info(nodes);\n\tconst result_node = (() => {\n\t\t// We first try to find an element after the previous one\n\t\tfor (let i = nodes.claim_info.last_index; i < nodes.length; i++) {\n\t\t\tconst node = nodes[i];\n\t\t\tif (predicate(node)) {\n\t\t\t\tconst replacement = process_node(node);\n\t\t\t\tif (replacement === undefined) {\n\t\t\t\t\tnodes.splice(i, 1);\n\t\t\t\t} else {\n\t\t\t\t\tnodes[i] = replacement;\n\t\t\t\t}\n\t\t\t\tif (!dont_update_last_index) {\n\t\t\t\t\tnodes.claim_info.last_index = i;\n\t\t\t\t}\n\t\t\t\treturn node;\n\t\t\t}\n\t\t}\n\t\t// Otherwise, we try to find one before\n\t\t// We iterate in reverse so that we don't go too far back\n\t\tfor (let i = nodes.claim_info.last_index - 1; i >= 0; i--) {\n\t\t\tconst node = nodes[i];\n\t\t\tif (predicate(node)) {\n\t\t\t\tconst replacement = process_node(node);\n\t\t\t\tif (replacement === undefined) {\n\t\t\t\t\tnodes.splice(i, 1);\n\t\t\t\t} else {\n\t\t\t\t\tnodes[i] = replacement;\n\t\t\t\t}\n\t\t\t\tif (!dont_update_last_index) {\n\t\t\t\t\tnodes.claim_info.last_index = i;\n\t\t\t\t} else if (replacement === undefined) {\n\t\t\t\t\t// Since we spliced before the last_index, we decrease it\n\t\t\t\t\tnodes.claim_info.last_index--;\n\t\t\t\t}\n\t\t\t\treturn node;\n\t\t\t}\n\t\t}\n\t\t// If we can't find any matching node, we create a new one\n\t\treturn create_node();\n\t})();\n\tresult_node.claim_order = nodes.claim_info.total_claimed;\n\tnodes.claim_info.total_claimed += 1;\n\treturn result_node;\n}\n\n/**\n * @param {ChildNodeArray} nodes\n * @param {string} name\n * @param {{ [key: string]: boolean }} attributes\n * @param {(name: string) => Element | SVGElement} create_element\n * @returns {Element | SVGElement}\n */\nfunction claim_element_base(nodes, name, attributes, create_element) {\n\treturn claim_node(\n\t\tnodes,\n\t\t/** @returns {node is Element | SVGElement} */\n\t\t(node) => node.nodeName === name,\n\t\t/** @param {Element} node */\n\t\t(node) => {\n\t\t\tconst remove = [];\n\t\t\tfor (let j = 0; j < node.attributes.length; j++) {\n\t\t\t\tconst attribute = node.attributes[j];\n\t\t\t\tif (!attributes[attribute.name]) {\n\t\t\t\t\tremove.push(attribute.name);\n\t\t\t\t}\n\t\t\t}\n\t\t\tremove.forEach((v) => node.removeAttribute(v));\n\t\t\treturn undefined;\n\t\t},\n\t\t() => create_element(name)\n\t);\n}\n\n/**\n * @param {ChildNodeArray} nodes\n * @param {string} name\n * @param {{ [key: string]: boolean }} attributes\n * @returns {Element | SVGElement}\n */\nexport function claim_element(nodes, name, attributes) {\n\treturn claim_element_base(nodes, name, attributes, element);\n}\n\n/**\n * @param {ChildNodeArray} nodes\n * @param {string} name\n * @param {{ [key: string]: boolean }} attributes\n * @returns {Element | SVGElement}\n */\nexport function claim_svg_element(nodes, name, attributes) {\n\treturn claim_element_base(nodes, name, attributes, svg_element);\n}\n\n/**\n * @param {ChildNodeArray} nodes\n * @returns {Text}\n */\nexport function claim_text(nodes, data) {\n\treturn claim_node(\n\t\tnodes,\n\t\t/** @returns {node is Text} */\n\t\t(node) => node.nodeType === 3,\n\t\t/** @param {Text} node */\n\t\t(node) => {\n\t\t\tconst data_str = '' + data;\n\t\t\tif (node.data.startsWith(data_str)) {\n\t\t\t\tif (node.data.length !== data_str.length) {\n\t\t\t\t\treturn node.splitText(data_str.length);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tnode.data = data_str;\n\t\t\t}\n\t\t},\n\t\t() => text(data),\n\t\ttrue // Text nodes should not update last index since it is likely not worth it to eliminate an increasing subsequence of actual elements\n\t);\n}\n\n/**\n * @returns {Text} */\nexport function claim_space(nodes) {\n\treturn claim_text(nodes, ' ');\n}\n\n/**\n * @param {ChildNodeArray} nodes\n * @returns {Comment}\n */\nexport function claim_comment(nodes, data) {\n\treturn claim_node(\n\t\tnodes,\n\t\t/** @returns {node is Comment} */\n\t\t(node) => node.nodeType === 8,\n\t\t/** @param {Comment} node */\n\t\t(node) => {\n\t\t\tnode.data = '' + data;\n\t\t\treturn undefined;\n\t\t},\n\t\t() => comment(data),\n\t\ttrue\n\t);\n}\n\nfunction get_comment_idx(nodes, text, start) {\n\tfor (let i = start; i < nodes.length; i += 1) {\n\t\tconst node = nodes[i];\n\t\tif (node.nodeType === 8 /* comment node */ && node.textContent.trim() === text) {\n\t\t\treturn i;\n\t\t}\n\t}\n\treturn -1;\n}\n\n/**\n * @param {boolean} is_svg\n * @returns {HtmlTagHydration}\n */\nexport function claim_html_tag(nodes, is_svg) {\n\t// find html opening tag\n\tconst start_index = get_comment_idx(nodes, 'HTML_TAG_START', 0);\n\tconst end_index = get_comment_idx(nodes, 'HTML_TAG_END', start_index + 1);\n\tif (start_index === -1 || end_index === -1) {\n\t\treturn new HtmlTagHydration(is_svg);\n\t}\n\n\tinit_claim_info(nodes);\n\tconst html_tag_nodes = nodes.splice(start_index, end_index - start_index + 1);\n\tdetach(html_tag_nodes[0]);\n\tdetach(html_tag_nodes[html_tag_nodes.length - 1]);\n\tconst claimed_nodes = html_tag_nodes.slice(1, html_tag_nodes.length - 1);\n\tif (claimed_nodes.length === 0) {\n\t\treturn new HtmlTagHydration(is_svg);\n\t}\n\tfor (const n of claimed_nodes) {\n\t\tn.claim_order = nodes.claim_info.total_claimed;\n\t\tnodes.claim_info.total_claimed += 1;\n\t}\n\treturn new HtmlTagHydration(is_svg, claimed_nodes);\n}\n\n/**\n * @param {Text} text\n * @param {unknown} data\n * @returns {void}\n */\nexport function set_data(text, data) {\n\tdata = '' + data;\n\tif (text.data === data) return;\n\ttext.data = /** @type {string} */ (data);\n}\n\n/**\n * @param {Text} text\n * @param {unknown} data\n * @returns {void}\n */\nexport function set_data_contenteditable(text, data) {\n\tdata = '' + data;\n\tif (text.wholeText === data) return;\n\ttext.data = /** @type {string} */ (data);\n}\n\n/**\n * @param {Text} text\n * @param {unknown} data\n * @param {string} attr_value\n * @returns {void}\n */\nexport function set_data_maybe_contenteditable(text, data, attr_value) {\n\tif (~contenteditable_truthy_values.indexOf(attr_value)) {\n\t\tset_data_contenteditable(text, data);\n\t} else {\n\t\tset_data(text, data);\n\t}\n}\n\n/**\n * @returns {void} */\nexport function set_input_value(input, value) {\n\tinput.value = value == null ? '' : value;\n}\n\n/**\n * @returns {void} */\nexport function set_input_type(input, type) {\n\ttry {\n\t\tinput.type = type;\n\t} catch (e) {\n\t\t// do nothing\n\t}\n}\n\n/**\n * @returns {void} */\nexport function set_style(node, key, value, important) {\n\tif (value == null) {\n\t\tnode.style.removeProperty(key);\n\t} else {\n\t\tnode.style.setProperty(key, value, important ? 'important' : '');\n\t}\n}\n\n/**\n * @returns {void} */\nexport function select_option(select, value, mounting) {\n\tfor (let i = 0; i < select.options.length; i += 1) {\n\t\tconst option = select.options[i];\n\t\tif (option.__value === value) {\n\t\t\toption.selected = true;\n\t\t\treturn;\n\t\t}\n\t}\n\tif (!mounting || value !== undefined) {\n\t\tselect.selectedIndex = -1; // no option should be selected\n\t}\n}\n\n/**\n * @returns {void} */\nexport function select_options(select, value) {\n\tfor (let i = 0; i < select.options.length; i += 1) {\n\t\tconst option = select.options[i];\n\t\toption.selected = ~value.indexOf(option.__value);\n\t}\n}\n\nexport function select_value(select) {\n\tconst selected_option = select.querySelector(':checked');\n\treturn selected_option && selected_option.__value;\n}\n\nexport function select_multiple_value(select) {\n\treturn [].map.call(select.querySelectorAll(':checked'), (option) => option.__value);\n}\n// unfortunately this can't be a constant as that wouldn't be tree-shakeable\n// so we cache the result instead\n\n/**\n * @type {boolean} */\nlet crossorigin;\n\n/**\n * @returns {boolean} */\nexport function is_crossorigin() {\n\tif (crossorigin === undefined) {\n\t\tcrossorigin = false;\n\t\ttry {\n\t\t\tif (typeof window !== 'undefined' && window.parent) {\n\t\t\t\tvoid window.parent.document;\n\t\t\t}\n\t\t} catch (error) {\n\t\t\tcrossorigin = true;\n\t\t}\n\t}\n\treturn crossorigin;\n}\n\n/**\n * @param {HTMLElement} node\n * @param {() => void} fn\n * @returns {() => void}\n */\nexport function add_iframe_resize_listener(node, fn) {\n\tconst computed_style = getComputedStyle(node);\n\tif (computed_style.position === 'static') {\n\t\tnode.style.position = 'relative';\n\t}\n\tconst iframe = element('iframe');\n\tiframe.setAttribute(\n\t\t'style',\n\t\t'display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; ' +\n\t\t\t'overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;'\n\t);\n\tiframe.setAttribute('aria-hidden', 'true');\n\tiframe.tabIndex = -1;\n\tconst crossorigin = is_crossorigin();\n\n\t/**\n\t * @type {() => void}\n\t */\n\tlet unsubscribe;\n\tif (crossorigin) {\n\t\tiframe.src = \"data:text/html,\";\n\t\tunsubscribe = listen(\n\t\t\twindow,\n\t\t\t'message',\n\t\t\t/** @param {MessageEvent} event */ (event) => {\n\t\t\t\tif (event.source === iframe.contentWindow) fn();\n\t\t\t}\n\t\t);\n\t} else {\n\t\tiframe.src = 'about:blank';\n\t\tiframe.onload = () => {\n\t\t\tunsubscribe = listen(iframe.contentWindow, 'resize', fn);\n\t\t\t// make sure an initial resize event is fired _after_ the iframe is loaded (which is asynchronous)\n\t\t\t// see https://github.com/sveltejs/svelte/issues/4233\n\t\t\tfn();\n\t\t};\n\t}\n\tappend(node, iframe);\n\treturn () => {\n\t\tif (crossorigin) {\n\t\t\tunsubscribe();\n\t\t} else if (unsubscribe && iframe.contentWindow) {\n\t\t\tunsubscribe();\n\t\t}\n\t\tdetach(iframe);\n\t};\n}\nexport const resize_observer_content_box = /* @__PURE__ */ new ResizeObserverSingleton({\n\tbox: 'content-box'\n});\nexport const resize_observer_border_box = /* @__PURE__ */ new ResizeObserverSingleton({\n\tbox: 'border-box'\n});\nexport const resize_observer_device_pixel_content_box = /* @__PURE__ */ new ResizeObserverSingleton(\n\t{ box: 'device-pixel-content-box' }\n);\nexport { ResizeObserverSingleton };\n\n/**\n * @returns {void} */\nexport function toggle_class(element, name, toggle) {\n\t// The `!!` is required because an `undefined` flag means flipping the current state.\n\telement.classList.toggle(name, !!toggle);\n}\n\n/**\n * @template T\n * @param {string} type\n * @param {T} [detail]\n * @param {{ bubbles?: boolean, cancelable?: boolean }} [options]\n * @returns {CustomEvent}\n */\nexport function custom_event(type, detail, { bubbles = false, cancelable = false } = {}) {\n\treturn new CustomEvent(type, { detail, bubbles, cancelable });\n}\n\n/**\n * @param {string} selector\n * @param {HTMLElement} parent\n * @returns {ChildNodeArray}\n */\nexport function query_selector_all(selector, parent = document.body) {\n\treturn Array.from(parent.querySelectorAll(selector));\n}\n\n/**\n * @param {string} nodeId\n * @param {HTMLElement} head\n * @returns {any[]}\n */\nexport function head_selector(nodeId, head) {\n\tconst result = [];\n\tlet started = 0;\n\tfor (const node of head.childNodes) {\n\t\tif (node.nodeType === 8 /* comment node */) {\n\t\t\tconst comment = node.textContent.trim();\n\t\t\tif (comment === `HEAD_${nodeId}_END`) {\n\t\t\t\tstarted -= 1;\n\t\t\t\tresult.push(node);\n\t\t\t} else if (comment === `HEAD_${nodeId}_START`) {\n\t\t\t\tstarted += 1;\n\t\t\t\tresult.push(node);\n\t\t\t}\n\t\t} else if (started > 0) {\n\t\t\tresult.push(node);\n\t\t}\n\t}\n\treturn result;\n}\n/** */\nexport class HtmlTag {\n\t/**\n\t * @private\n\t * @default false\n\t */\n\tis_svg = false;\n\t/** parent for creating node */\n\te = undefined;\n\t/** html tag nodes */\n\tn = undefined;\n\t/** target */\n\tt = undefined;\n\t/** anchor */\n\ta = undefined;\n\tconstructor(is_svg = false) {\n\t\tthis.is_svg = is_svg;\n\t\tthis.e = this.n = null;\n\t}\n\n\t/**\n\t * @param {string} html\n\t * @returns {void}\n\t */\n\tc(html) {\n\t\tthis.h(html);\n\t}\n\n\t/**\n\t * @param {string} html\n\t * @param {HTMLElement | SVGElement} target\n\t * @param {HTMLElement | SVGElement} anchor\n\t * @returns {void}\n\t */\n\tm(html, target, anchor = null) {\n\t\tif (!this.e) {\n\t\t\tif (this.is_svg)\n\t\t\t\tthis.e = svg_element(/** @type {keyof SVGElementTagNameMap} */ (target.nodeName));\n\t\t\t/** #7364 target for