@homepages/concrete 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (327) hide show
  1. package/CHANGELOG.md +59 -0
  2. package/README.md +174 -0
  3. package/codemods/manifest.json +9 -0
  4. package/dist/artifact/playground/client/assets/index-BSA1yutg.css +1 -0
  5. package/dist/artifact/playground/client/assets/index-JloQyj8h.js +1101 -0
  6. package/dist/artifact/playground/client/index.html +13 -0
  7. package/dist/artifact/playground/client/island-canvas-host.mjs +1 -0
  8. package/dist/artifact/playground/host.mjs +127 -0
  9. package/dist/asset-modules.d.ts +99 -0
  10. package/dist/base.css +220 -0
  11. package/dist/browser/site-config.d.ts +18 -0
  12. package/dist/browser/site-config.js +56 -0
  13. package/dist/browser/submit-lead.d.ts +98 -0
  14. package/dist/browser/submit-lead.js +188 -0
  15. package/dist/browser.d.ts +3 -0
  16. package/dist/browser.js +4 -0
  17. package/dist/cli/build/artifact.js +225 -0
  18. package/dist/cli/build/captures.js +67 -0
  19. package/dist/cli/build/esbuild.js +127 -0
  20. package/dist/cli/build/fixtures.js +96 -0
  21. package/dist/cli/build/icons.js +76 -0
  22. package/dist/cli/build/index.js +38 -0
  23. package/dist/cli/build/playground.js +31 -0
  24. package/dist/cli/build/sections.js +236 -0
  25. package/dist/cli/build/source.js +62 -0
  26. package/dist/cli/build/static.js +156 -0
  27. package/dist/cli/capture/bundle.js +37 -0
  28. package/dist/cli/capture/capture-browser.js +51 -0
  29. package/dist/cli/capture/capture.js +121 -0
  30. package/dist/cli/check/analyze.js +95 -0
  31. package/dist/cli/check/index.js +19 -0
  32. package/dist/cli/check/load-workspace.js +119 -0
  33. package/dist/cli/check/messages.js +16 -0
  34. package/dist/cli/check/render/class-conflicts.js +39 -0
  35. package/dist/cli/check/render/html.js +86 -0
  36. package/dist/cli/check/render/inputs.js +53 -0
  37. package/dist/cli/check/render/invariants.js +58 -0
  38. package/dist/cli/check/render/island-frames.js +72 -0
  39. package/dist/cli/check/render/marker-coverage.js +102 -0
  40. package/dist/cli/check/render/nav.js +64 -0
  41. package/dist/cli/check/report.js +73 -0
  42. package/dist/cli/check/stages/bundles.js +129 -0
  43. package/dist/cli/check/stages/composition.js +67 -0
  44. package/dist/cli/check/stages/contracts.js +22 -0
  45. package/dist/cli/check/stages/dependencies.js +261 -0
  46. package/dist/cli/check/stages/fixtures.js +74 -0
  47. package/dist/cli/check/stages/lint.js +41 -0
  48. package/dist/cli/check/stages/logic.js +63 -0
  49. package/dist/cli/check/stages/render.js +144 -0
  50. package/dist/cli/check/stages/sections.js +83 -0
  51. package/dist/cli/check/stages/stylesheet.js +31 -0
  52. package/dist/cli/check/stages/typecheck.js +68 -0
  53. package/dist/cli/check/stages/workspace.js +26 -0
  54. package/dist/cli/commands.js +342 -0
  55. package/dist/cli/currency/cache.js +89 -0
  56. package/dist/cli/currency/decide.js +65 -0
  57. package/dist/cli/currency/opt-out.js +16 -0
  58. package/dist/cli/currency/preamble.js +183 -0
  59. package/dist/cli/currency/prompt.js +28 -0
  60. package/dist/cli/currency/refresh.js +44 -0
  61. package/dist/cli/currency/resolve-latest.js +185 -0
  62. package/dist/cli/currency/version-order.js +38 -0
  63. package/dist/cli/dev/crop.js +22 -0
  64. package/dist/cli/dev/hmr.js +26 -0
  65. package/dist/cli/dev/http.js +129 -0
  66. package/dist/cli/dev/index.js +70 -0
  67. package/dist/cli/dev/islands.js +390 -0
  68. package/dist/cli/dev/load-template.js +46 -0
  69. package/dist/cli/dev/request-error.js +22 -0
  70. package/dist/cli/dev/server.js +307 -0
  71. package/dist/cli/dev/tsconfig-paths.js +95 -0
  72. package/dist/cli/dev/vite.js +85 -0
  73. package/dist/cli/dev/workspace-reader.js +274 -0
  74. package/dist/cli/io.d.ts +14 -0
  75. package/dist/cli/media/cache.js +125 -0
  76. package/dist/cli/media/derive.js +252 -0
  77. package/dist/cli/media/deriver-plugin.js +71 -0
  78. package/dist/cli/property/index.js +180 -0
  79. package/dist/cli/property/library.js +137 -0
  80. package/dist/cli/publish/client.js +119 -0
  81. package/dist/cli/publish/freshness.js +66 -0
  82. package/dist/cli/publish/git.js +43 -0
  83. package/dist/cli/publish/index.js +207 -0
  84. package/dist/cli/publish/pack.js +78 -0
  85. package/dist/cli/publish/report.js +98 -0
  86. package/dist/cli/publish/target.js +87 -0
  87. package/dist/cli/publish/wire.js +29 -0
  88. package/dist/cli/tar.js +87 -0
  89. package/dist/cli/upgrade/codemod.js +56 -0
  90. package/dist/cli/upgrade/index.js +263 -0
  91. package/dist/cli/upgrade/manifest.js +72 -0
  92. package/dist/cli/upgrade/plan.js +68 -0
  93. package/dist/cli/upgrade/stage.js +71 -0
  94. package/dist/cli/version.d.ts +12 -0
  95. package/dist/cli/version.js +15 -0
  96. package/dist/cli/workspace.js +108 -0
  97. package/dist/cli.d.ts +6 -0
  98. package/dist/cli.js +94 -0
  99. package/dist/css/compile.js +77 -0
  100. package/dist/css/graph.js +109 -0
  101. package/dist/css/inline.js +132 -0
  102. package/dist/css/rules.js +65 -0
  103. package/dist/design-system/format-variants.js +127 -0
  104. package/dist/eslint/authoring.js +46 -0
  105. package/dist/eslint/correctness.js +42 -0
  106. package/dist/eslint/rules/editor-declaration.js +103 -0
  107. package/dist/eslint/rules/editor-reason.js +135 -0
  108. package/dist/eslint/rules/island-imports.js +20 -0
  109. package/dist/eslint/rules/jsx-visitor.js +20 -0
  110. package/dist/eslint/rules/no-client-runtime.js +88 -0
  111. package/dist/eslint/rules/no-editor-globals.js +60 -0
  112. package/dist/eslint/rules/no-hard-coded-color.js +183 -0
  113. package/dist/eslint/rules/no-inline-style.js +24 -0
  114. package/dist/eslint/rules/no-marker-literal.js +37 -0
  115. package/dist/eslint/rules/no-nondeterminism.js +44 -0
  116. package/dist/eslint/rules/no-px-breakpoint.js +44 -0
  117. package/dist/eslint/rules/no-raw-values.js +45 -0
  118. package/dist/eslint/rules/serializable-props.js +95 -0
  119. package/dist/eslint.d.ts +6 -0
  120. package/dist/eslint.js +26 -0
  121. package/dist/fixtures/brand.d.ts +4 -0
  122. package/dist/fixtures/brand.js +9 -0
  123. package/dist/fixtures/bundle-rule.js +67 -0
  124. package/dist/fixtures/canonical.d.ts +149 -0
  125. package/dist/fixtures/image-dimensions.js +59 -0
  126. package/dist/fixtures/load.js +154 -0
  127. package/dist/fixtures/media-plugin.js +141 -0
  128. package/dist/fixtures/media.js +165 -0
  129. package/dist/fixtures/property.js +210 -0
  130. package/dist/fixtures/resolve.js +202 -0
  131. package/dist/fixtures/rows.js +108 -0
  132. package/dist/fixtures/synthesize-empties.js +42 -0
  133. package/dist/fixtures.d.ts +213 -0
  134. package/dist/fixtures.js +37 -0
  135. package/dist/index.d.ts +53 -0
  136. package/dist/index.js +37 -0
  137. package/dist/islands/client-module.js +97 -0
  138. package/dist/islands/marker.d.ts +43 -0
  139. package/dist/islands/marker.js +44 -0
  140. package/dist/node_modules/.pnpm/fflate@0.8.3/node_modules/fflate/esm/browser.js +687 -0
  141. package/dist/packages/external/concrete/package.js +5 -0
  142. package/dist/packages/internal/fact-interpolation/dist/index.js +22 -0
  143. package/dist/packages/internal/fill-bake/dist/bake-property-ref.js +111 -0
  144. package/dist/packages/internal/fill-bake/dist/display.js +9 -0
  145. package/dist/packages/internal/fill-bake/dist/index.js +6 -0
  146. package/dist/packages/internal/fill-bake/dist/reconcile-cross-section.js +170 -0
  147. package/dist/packages/internal/fill-vocabulary/dist/facts.d.ts +32 -0
  148. package/dist/packages/internal/fill-vocabulary/dist/facts.js +131 -0
  149. package/dist/packages/internal/fill-vocabulary/dist/row-planners.js +73 -0
  150. package/dist/packages/internal/format-geometry/dist/capture.js +404 -0
  151. package/dist/packages/internal/format-geometry/dist/format.d.ts +41 -0
  152. package/dist/packages/internal/format-geometry/dist/geometry.js +58 -0
  153. package/dist/packages/internal/format-geometry/dist/index.js +4 -0
  154. package/dist/packages/internal/image-descriptor/dist/index.d.ts +35 -0
  155. package/dist/packages/internal/image-ladder/dist/crop.js +82 -0
  156. package/dist/packages/internal/image-ladder/dist/encode.js +23 -0
  157. package/dist/packages/internal/image-ladder/dist/index.js +4 -0
  158. package/dist/packages/internal/image-ladder/dist/policy.js +102 -0
  159. package/dist/packages/internal/island-runtime/dist/capture-holds.d.ts +13 -0
  160. package/dist/packages/internal/island-runtime/dist/capture-holds.js +45 -0
  161. package/dist/packages/internal/island-runtime/dist/contract.d.ts +176 -0
  162. package/dist/packages/internal/island-runtime/dist/contract.js +94 -0
  163. package/dist/packages/internal/island-runtime/dist/editor-instance-context.js +15 -0
  164. package/dist/packages/internal/island-runtime/dist/index.d.ts +103 -0
  165. package/dist/packages/internal/island-runtime/dist/index.js +163 -0
  166. package/dist/packages/internal/island-runtime/dist/use-capture-ready.d.ts +19 -0
  167. package/dist/packages/internal/island-runtime/dist/use-capture-ready.js +39 -0
  168. package/dist/packages/internal/island-runtime/dist/use-editor.d.ts +22 -0
  169. package/dist/packages/internal/island-runtime/dist/use-editor.js +54 -0
  170. package/dist/packages/internal/island-runtime/dist/viewport-schedule.js +105 -0
  171. package/dist/packages/internal/property-facts/dist/derive-facts-view.js +25 -0
  172. package/dist/packages/internal/property-facts/dist/index.js +3 -0
  173. package/dist/packages/internal/property-facts/dist/property-facts-CSdkSuD7.js +181 -0
  174. package/dist/packages/internal/section-contracts/dist/cap-contract.js +59 -0
  175. package/dist/packages/internal/section-contracts/dist/catalog.js +102 -0
  176. package/dist/packages/internal/section-contracts/dist/choose-select-contract.js +24 -0
  177. package/dist/packages/internal/section-contracts/dist/count-bounds-contract.js +48 -0
  178. package/dist/packages/internal/section-contracts/dist/display-contract.js +30 -0
  179. package/dist/packages/internal/section-contracts/dist/display-evidence-contract.js +17 -0
  180. package/dist/packages/internal/section-contracts/dist/group-contract.js +21 -0
  181. package/dist/packages/internal/section-contracts/dist/index.js +26 -0
  182. package/dist/packages/internal/section-contracts/dist/interpolation-contract.js +48 -0
  183. package/dist/packages/internal/section-contracts/dist/list-fill-contract.js +53 -0
  184. package/dist/packages/internal/section-contracts/dist/list-scalar-contract.js +70 -0
  185. package/dist/packages/internal/section-contracts/dist/name-title-contract.js +27 -0
  186. package/dist/packages/internal/section-contracts/dist/nested-slot-contract.js +12 -0
  187. package/dist/packages/internal/section-contracts/dist/option-source-contract.js +22 -0
  188. package/dist/packages/internal/section-contracts/dist/poi-curation-contract.js +18 -0
  189. package/dist/packages/internal/section-contracts/dist/pooling-field-contract.js +30 -0
  190. package/dist/packages/internal/section-contracts/dist/record-collection-contract.js +24 -0
  191. package/dist/packages/internal/section-contracts/dist/row-contract.js +37 -0
  192. package/dist/packages/internal/section-contracts/dist/row-fill-contract.js +38 -0
  193. package/dist/packages/internal/section-contracts/dist/runners.js +181 -0
  194. package/dist/packages/internal/section-contracts/dist/select-contract.js +28 -0
  195. package/dist/packages/internal/section-contracts/dist/source-contract.js +48 -0
  196. package/dist/packages/internal/section-contracts/dist/source-filter-contract.js +15 -0
  197. package/dist/packages/internal/section-contracts/dist/sources-contract.js +28 -0
  198. package/dist/packages/internal/section-contracts/dist/url-contract.js +20 -0
  199. package/dist/packages/internal/source-resolution/dist/index.js +222 -0
  200. package/dist/packages/internal/template-artifact/dist/hash.js +50 -0
  201. package/dist/packages/internal/template-artifact/dist/index.js +7 -0
  202. package/dist/packages/internal/template-artifact/dist/layout.js +165 -0
  203. package/dist/packages/internal/template-artifact/dist/manifest.js +73 -0
  204. package/dist/packages/internal/template-artifact/dist/sha256.js +138 -0
  205. package/dist/packages/internal/template-artifact/dist/verify.js +275 -0
  206. package/dist/packages/internal/template-contracts/dist/collection-editing.js +38 -0
  207. package/dist/packages/internal/template-contracts/dist/content-categories.d.ts +10 -0
  208. package/dist/packages/internal/template-contracts/dist/content-categories.js +17 -0
  209. package/dist/packages/internal/template-contracts/dist/document-value.d.ts +33 -0
  210. package/dist/packages/internal/template-contracts/dist/facts-view.d.ts +81 -0
  211. package/dist/packages/internal/template-contracts/dist/facts-view.js +136 -0
  212. package/dist/packages/internal/template-contracts/dist/layout.js +17 -0
  213. package/dist/packages/internal/template-contracts/dist/markers.d.ts +40 -0
  214. package/dist/packages/internal/template-contracts/dist/markers.js +41 -0
  215. package/dist/packages/internal/template-contracts/dist/poi-row.d.ts +63 -0
  216. package/dist/packages/internal/template-contracts/dist/select-key.js +13 -0
  217. package/dist/packages/internal/template-contracts/dist/slot-catalog.d.ts +1112 -0
  218. package/dist/packages/internal/template-contracts/dist/slot-catalog.js +1109 -0
  219. package/dist/packages/internal/template-contracts/dist/slot-overrides.js +11 -0
  220. package/dist/packages/internal/template-contracts/dist/tour-value.d.ts +45 -0
  221. package/dist/packages/internal/template-contracts/dist/video-value.d.ts +63 -0
  222. package/dist/playground/host/page-state.js +12 -0
  223. package/dist/playground/host/paths.js +9 -0
  224. package/dist/playground/layout.js +24 -0
  225. package/dist/playground/wire.js +36 -0
  226. package/dist/playground-island-runtime.d.ts +3 -0
  227. package/dist/playground-island-runtime.js +4 -0
  228. package/dist/primitives/FrameShell.d.ts +29 -0
  229. package/dist/primitives/FrameShell.js +34 -0
  230. package/dist/primitives/Image.d.ts +119 -0
  231. package/dist/primitives/Image.js +173 -0
  232. package/dist/primitives/Section.d.ts +22 -0
  233. package/dist/primitives/Section.js +26 -0
  234. package/dist/primitives/Tour.d.ts +43 -0
  235. package/dist/primitives/Tour.js +72 -0
  236. package/dist/primitives/Video.d.ts +57 -0
  237. package/dist/primitives/Video.js +116 -0
  238. package/dist/primitives/embed-playback.js +50 -0
  239. package/dist/primitives/index.d.ts +11 -0
  240. package/dist/primitives/marker-attrs.js +44 -0
  241. package/dist/primitives/object-fit.js +11 -0
  242. package/dist/primitives/picture-sources.d.ts +24 -0
  243. package/dist/primitives/picture-sources.js +52 -0
  244. package/dist/primitives/probe-context.js +24 -0
  245. package/dist/primitives/slot-bindings.d.ts +96 -0
  246. package/dist/primitives/slot-bindings.js +226 -0
  247. package/dist/primitives/slot-document.d.ts +35 -0
  248. package/dist/primitives/slot-document.js +37 -0
  249. package/dist/primitives/slot-group.d.ts +40 -0
  250. package/dist/primitives/slot-group.js +45 -0
  251. package/dist/primitives/slot-list.d.ts +21 -0
  252. package/dist/primitives/slot-list.js +23 -0
  253. package/dist/primitives/slot-media.d.ts +71 -0
  254. package/dist/primitives/slot-media.js +98 -0
  255. package/dist/primitives/slot-scalar.d.ts +53 -0
  256. package/dist/primitives/slot-scalar.js +98 -0
  257. package/dist/primitives/slot.d.ts +26 -0
  258. package/dist/primitives/slot.js +28 -0
  259. package/dist/rules/registry.js +479 -0
  260. package/dist/schema/compute.d.ts +22 -0
  261. package/dist/schema/compute.js +30 -0
  262. package/dist/schema/define-schema.d.ts +27 -0
  263. package/dist/schema/define-schema.js +73 -0
  264. package/dist/schema/extract-fill-spec.js +246 -0
  265. package/dist/schema/extract-used-facts.js +176 -0
  266. package/dist/schema/fact.d.ts +65 -0
  267. package/dist/schema/fact.js +33 -0
  268. package/dist/schema/fill-builders.d.ts +387 -0
  269. package/dist/schema/fill-builders.js +263 -0
  270. package/dist/schema/fill-declaration.d.ts +76 -0
  271. package/dist/schema/fill-declaration.js +43 -0
  272. package/dist/schema/fill-spec.d.ts +18 -0
  273. package/dist/schema/fill-spec.js +170 -0
  274. package/dist/schema/format-presets.d.ts +27 -0
  275. package/dist/schema/format-presets.js +76 -0
  276. package/dist/schema/format.d.ts +22 -0
  277. package/dist/schema/format.js +40 -0
  278. package/dist/schema/formats.d.ts +6 -0
  279. package/dist/schema/formats.js +7 -0
  280. package/dist/schema/layout.d.ts +32 -0
  281. package/dist/schema/layout.js +30 -0
  282. package/dist/schema/manifest.js +300 -0
  283. package/dist/schema/property-facts.d.ts +83 -0
  284. package/dist/schema/runtime-values.d.ts +88 -0
  285. package/dist/schema/section-nav.d.ts +38 -0
  286. package/dist/schema/section-nav.js +29 -0
  287. package/dist/schema/section-props.d.ts +98 -0
  288. package/dist/schema/section-schema.d.ts +53 -0
  289. package/dist/schema/section-schema.js +54 -0
  290. package/dist/schema/slot-builders.d.ts +497 -0
  291. package/dist/schema/slot-builders.js +331 -0
  292. package/dist/schema/slot-types.d.ts +110 -0
  293. package/dist/schema/slot-types.js +187 -0
  294. package/dist/section/declare.d.ts +44 -0
  295. package/dist/section/declare.js +27 -0
  296. package/dist/section/discovery.js +76 -0
  297. package/dist/section/groups.js +74 -0
  298. package/dist/section/materialize.js +28 -0
  299. package/dist/section/placements.js +28 -0
  300. package/dist/section/section.d.ts +69 -0
  301. package/dist/section/section.js +101 -0
  302. package/dist/site-analytics.d.ts +1 -0
  303. package/dist/site-analytics.js +15 -0
  304. package/dist/site-runtime/analytics.js +97 -0
  305. package/dist/site-runtime/site-integrations.js +97 -0
  306. package/dist/styles.css +60 -0
  307. package/dist/template/define-template.d.ts +139 -0
  308. package/dist/template/define-template.js +98 -0
  309. package/dist/template/logic-build.js +191 -0
  310. package/dist/template/logic-shim.d.ts +43 -0
  311. package/dist/template/logic-shim.js +52 -0
  312. package/dist/template/logic-transform.js +92 -0
  313. package/dist/template/materialize.js +107 -0
  314. package/dist/template/reconcile.d.ts +67 -0
  315. package/dist/template/reconcile.js +25 -0
  316. package/dist/template/running-copy.js +58 -0
  317. package/guide/reference/cli/INDEX.md +79 -0
  318. package/guide/reference/cli/build.md +48 -0
  319. package/guide/reference/cli/check.md +49 -0
  320. package/guide/reference/cli/dev.md +46 -0
  321. package/guide/reference/cli/property-add.md +53 -0
  322. package/guide/reference/cli/property-list.md +46 -0
  323. package/guide/reference/cli/publish.md +54 -0
  324. package/guide/reference/cli/upgrade.md +48 -0
  325. package/guide/reference/rules/INDEX.md +190 -0
  326. package/package.json +137 -0
  327. package/tsconfig.base.json +16 -0
@@ -0,0 +1,1101 @@
1
+ var pg=n=>{throw TypeError(n)};var jd=(n,l,s)=>l.has(n)||pg("Cannot "+s);var E=(n,l,s)=>(jd(n,l,"read from private field"),s?s.call(n):l.get(n)),be=(n,l,s)=>l.has(n)?pg("Cannot add the same private member more than once"):l instanceof WeakSet?l.add(n):l.set(n,s),fe=(n,l,s,o)=>(jd(n,l,"write to private field"),o?o.call(n,s):l.set(n,s),s),je=(n,l,s)=>(jd(n,l,"access private method"),s);var qr=(n,l,s,o)=>({set _(u){fe(n,l,u,s)},get _(){return E(n,l,o)}});(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))o(u);new MutationObserver(u=>{for(const d of u)if(d.type==="childList")for(const h of d.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&o(h)}).observe(document,{childList:!0,subtree:!0});function s(u){const d={};return u.integrity&&(d.integrity=u.integrity),u.referrerPolicy&&(d.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?d.credentials="include":u.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function o(u){if(u.ep)return;u.ep=!0;const d=s(u);fetch(u.href,d)}})();function fw(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Md={exports:{}},eo={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var yg;function hw(){if(yg)return eo;yg=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function s(o,u,d){var h=null;if(d!==void 0&&(h=""+d),u.key!==void 0&&(h=""+u.key),"key"in u){d={};for(var m in u)m!=="key"&&(d[m]=u[m])}else d=u;return u=d.ref,{$$typeof:n,type:o,key:h,ref:u!==void 0?u:null,props:d}}return eo.Fragment=l,eo.jsx=s,eo.jsxs=s,eo}var gg;function mw(){return gg||(gg=1,Md.exports=hw()),Md.exports}var f=mw(),Ad={exports:{}},Ce={};/**
10
+ * @license React
11
+ * react.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var bg;function pw(){if(bg)return Ce;bg=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),h=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),k=Symbol.iterator;function S(M){return M===null||typeof M!="object"?null:(M=k&&M[k]||M["@@iterator"],typeof M=="function"?M:null)}var R={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,j={};function T(M,G,Z){this.props=M,this.context=G,this.refs=j,this.updater=Z||R}T.prototype.isReactComponent={},T.prototype.setState=function(M,G){if(typeof M!="object"&&typeof M!="function"&&M!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,M,G,"setState")},T.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function z(){}z.prototype=T.prototype;function D(M,G,Z){this.props=M,this.context=G,this.refs=j,this.updater=Z||R}var I=D.prototype=new z;I.constructor=D,C(I,T.prototype),I.isPureReactComponent=!0;var ie=Array.isArray;function ne(){}var ee={H:null,A:null,T:null,S:null},U=Object.prototype.hasOwnProperty;function ce(M,G,Z){var N=Z.ref;return{$$typeof:n,type:M,key:G,ref:N!==void 0?N:null,props:Z}}function de(M,G){return ce(M.type,G,M.props)}function re(M){return typeof M=="object"&&M!==null&&M.$$typeof===n}function le(M){var G={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(Z){return G[Z]})}var B=/\/+/g;function H(M,G){return typeof M=="object"&&M!==null&&M.key!=null?le(""+M.key):G.toString(36)}function K(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(ne,ne):(M.status="pending",M.then(function(G){M.status==="pending"&&(M.status="fulfilled",M.value=G)},function(G){M.status==="pending"&&(M.status="rejected",M.reason=G)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function _(M,G,Z,N,P){var X=typeof M;(X==="undefined"||X==="boolean")&&(M=null);var F=!1;if(M===null)F=!0;else switch(X){case"bigint":case"string":case"number":F=!0;break;case"object":switch(M.$$typeof){case n:case l:F=!0;break;case x:return F=M._init,_(F(M._payload),G,Z,N,P)}}if(F)return P=P(M),F=N===""?"."+H(M,0):N,ie(P)?(Z="",F!=null&&(Z=F.replace(B,"$&/")+"/"),_(P,G,Z,"",function(Ee){return Ee})):P!=null&&(re(P)&&(P=de(P,Z+(P.key==null||M&&M.key===P.key?"":(""+P.key).replace(B,"$&/")+"/")+F)),G.push(P)),1;F=0;var pe=N===""?".":N+":";if(ie(M))for(var ge=0;ge<M.length;ge++)N=M[ge],X=pe+H(N,ge),F+=_(N,G,Z,X,P);else if(ge=S(M),typeof ge=="function")for(M=ge.call(M),ge=0;!(N=M.next()).done;)N=N.value,X=pe+H(N,ge++),F+=_(N,G,Z,X,P);else if(X==="object"){if(typeof M.then=="function")return _(K(M),G,Z,N,P);throw G=String(M),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return F}function Y(M,G,Z){if(M==null)return M;var N=[],P=0;return _(M,N,"","",function(X){return G.call(Z,X,P++)}),N}function q(M){if(M._status===-1){var G=M._result;G=G(),G.then(function(Z){(M._status===0||M._status===-1)&&(M._status=1,M._result=Z)},function(Z){(M._status===0||M._status===-1)&&(M._status=2,M._result=Z)}),M._status===-1&&(M._status=0,M._result=G)}if(M._status===1)return M._result.default;throw M._result}var ue=typeof reportError=="function"?reportError:function(M){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof M=="object"&&M!==null&&typeof M.message=="string"?String(M.message):String(M),error:M});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",M);return}console.error(M)},W={map:Y,forEach:function(M,G,Z){Y(M,function(){G.apply(this,arguments)},Z)},count:function(M){var G=0;return Y(M,function(){G++}),G},toArray:function(M){return Y(M,function(G){return G})||[]},only:function(M){if(!re(M))throw Error("React.Children.only expected to receive a single React element child.");return M}};return Ce.Activity=b,Ce.Children=W,Ce.Component=T,Ce.Fragment=s,Ce.Profiler=u,Ce.PureComponent=D,Ce.StrictMode=o,Ce.Suspense=p,Ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ee,Ce.__COMPILER_RUNTIME={__proto__:null,c:function(M){return ee.H.useMemoCache(M)}},Ce.cache=function(M){return function(){return M.apply(null,arguments)}},Ce.cacheSignal=function(){return null},Ce.cloneElement=function(M,G,Z){if(M==null)throw Error("The argument must be a React element, but you passed "+M+".");var N=C({},M.props),P=M.key;if(G!=null)for(X in G.key!==void 0&&(P=""+G.key),G)!U.call(G,X)||X==="key"||X==="__self"||X==="__source"||X==="ref"&&G.ref===void 0||(N[X]=G[X]);var X=arguments.length-2;if(X===1)N.children=Z;else if(1<X){for(var F=Array(X),pe=0;pe<X;pe++)F[pe]=arguments[pe+2];N.children=F}return ce(M.type,P,N)},Ce.createContext=function(M){return M={$$typeof:h,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null},M.Provider=M,M.Consumer={$$typeof:d,_context:M},M},Ce.createElement=function(M,G,Z){var N,P={},X=null;if(G!=null)for(N in G.key!==void 0&&(X=""+G.key),G)U.call(G,N)&&N!=="key"&&N!=="__self"&&N!=="__source"&&(P[N]=G[N]);var F=arguments.length-2;if(F===1)P.children=Z;else if(1<F){for(var pe=Array(F),ge=0;ge<F;ge++)pe[ge]=arguments[ge+2];P.children=pe}if(M&&M.defaultProps)for(N in F=M.defaultProps,F)P[N]===void 0&&(P[N]=F[N]);return ce(M,X,P)},Ce.createRef=function(){return{current:null}},Ce.forwardRef=function(M){return{$$typeof:m,render:M}},Ce.isValidElement=re,Ce.lazy=function(M){return{$$typeof:x,_payload:{_status:-1,_result:M},_init:q}},Ce.memo=function(M,G){return{$$typeof:g,type:M,compare:G===void 0?null:G}},Ce.startTransition=function(M){var G=ee.T,Z={};ee.T=Z;try{var N=M(),P=ee.S;P!==null&&P(Z,N),typeof N=="object"&&N!==null&&typeof N.then=="function"&&N.then(ne,ue)}catch(X){ue(X)}finally{G!==null&&Z.types!==null&&(G.types=Z.types),ee.T=G}},Ce.unstable_useCacheRefresh=function(){return ee.H.useCacheRefresh()},Ce.use=function(M){return ee.H.use(M)},Ce.useActionState=function(M,G,Z){return ee.H.useActionState(M,G,Z)},Ce.useCallback=function(M,G){return ee.H.useCallback(M,G)},Ce.useContext=function(M){return ee.H.useContext(M)},Ce.useDebugValue=function(){},Ce.useDeferredValue=function(M,G){return ee.H.useDeferredValue(M,G)},Ce.useEffect=function(M,G){return ee.H.useEffect(M,G)},Ce.useEffectEvent=function(M){return ee.H.useEffectEvent(M)},Ce.useId=function(){return ee.H.useId()},Ce.useImperativeHandle=function(M,G,Z){return ee.H.useImperativeHandle(M,G,Z)},Ce.useInsertionEffect=function(M,G){return ee.H.useInsertionEffect(M,G)},Ce.useLayoutEffect=function(M,G){return ee.H.useLayoutEffect(M,G)},Ce.useMemo=function(M,G){return ee.H.useMemo(M,G)},Ce.useOptimistic=function(M,G){return ee.H.useOptimistic(M,G)},Ce.useReducer=function(M,G,Z){return ee.H.useReducer(M,G,Z)},Ce.useRef=function(M){return ee.H.useRef(M)},Ce.useState=function(M){return ee.H.useState(M)},Ce.useSyncExternalStore=function(M,G,Z){return ee.H.useSyncExternalStore(M,G,Z)},Ce.useTransition=function(){return ee.H.useTransition()},Ce.version="19.2.6",Ce}var vg;function Bf(){return vg||(vg=1,Ad.exports=pw()),Ad.exports}var w=Bf();const Gr=fw(w);var Cd={exports:{}},to={},Nd={exports:{}},Td={};/**
18
+ * @license React
19
+ * scheduler.production.js
20
+ *
21
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var xg;function yw(){return xg||(xg=1,(function(n){function l(_,Y){var q=_.length;_.push(Y);e:for(;0<q;){var ue=q-1>>>1,W=_[ue];if(0<u(W,Y))_[ue]=Y,_[q]=W,q=ue;else break e}}function s(_){return _.length===0?null:_[0]}function o(_){if(_.length===0)return null;var Y=_[0],q=_.pop();if(q!==Y){_[0]=q;e:for(var ue=0,W=_.length,M=W>>>1;ue<M;){var G=2*(ue+1)-1,Z=_[G],N=G+1,P=_[N];if(0>u(Z,q))N<W&&0>u(P,Z)?(_[ue]=P,_[N]=q,ue=N):(_[ue]=Z,_[G]=q,ue=G);else if(N<W&&0>u(P,q))_[ue]=P,_[N]=q,ue=N;else break e}}return Y}function u(_,Y){var q=_.sortIndex-Y.sortIndex;return q!==0?q:_.id-Y.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;n.unstable_now=function(){return d.now()}}else{var h=Date,m=h.now();n.unstable_now=function(){return h.now()-m}}var p=[],g=[],x=1,b=null,k=3,S=!1,R=!1,C=!1,j=!1,T=typeof setTimeout=="function"?setTimeout:null,z=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;function I(_){for(var Y=s(g);Y!==null;){if(Y.callback===null)o(g);else if(Y.startTime<=_)o(g),Y.sortIndex=Y.expirationTime,l(p,Y);else break;Y=s(g)}}function ie(_){if(C=!1,I(_),!R)if(s(p)!==null)R=!0,ne||(ne=!0,le());else{var Y=s(g);Y!==null&&K(ie,Y.startTime-_)}}var ne=!1,ee=-1,U=5,ce=-1;function de(){return j?!0:!(n.unstable_now()-ce<U)}function re(){if(j=!1,ne){var _=n.unstable_now();ce=_;var Y=!0;try{e:{R=!1,C&&(C=!1,z(ee),ee=-1),S=!0;var q=k;try{t:{for(I(_),b=s(p);b!==null&&!(b.expirationTime>_&&de());){var ue=b.callback;if(typeof ue=="function"){b.callback=null,k=b.priorityLevel;var W=ue(b.expirationTime<=_);if(_=n.unstable_now(),typeof W=="function"){b.callback=W,I(_),Y=!0;break t}b===s(p)&&o(p),I(_)}else o(p);b=s(p)}if(b!==null)Y=!0;else{var M=s(g);M!==null&&K(ie,M.startTime-_),Y=!1}}break e}finally{b=null,k=q,S=!1}Y=void 0}}finally{Y?le():ne=!1}}}var le;if(typeof D=="function")le=function(){D(re)};else if(typeof MessageChannel<"u"){var B=new MessageChannel,H=B.port2;B.port1.onmessage=re,le=function(){H.postMessage(null)}}else le=function(){T(re,0)};function K(_,Y){ee=T(function(){_(n.unstable_now())},Y)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(_){_.callback=null},n.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<_?Math.floor(1e3/_):5},n.unstable_getCurrentPriorityLevel=function(){return k},n.unstable_next=function(_){switch(k){case 1:case 2:case 3:var Y=3;break;default:Y=k}var q=k;k=Y;try{return _()}finally{k=q}},n.unstable_requestPaint=function(){j=!0},n.unstable_runWithPriority=function(_,Y){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var q=k;k=_;try{return Y()}finally{k=q}},n.unstable_scheduleCallback=function(_,Y,q){var ue=n.unstable_now();switch(typeof q=="object"&&q!==null?(q=q.delay,q=typeof q=="number"&&0<q?ue+q:ue):q=ue,_){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=q+W,_={id:x++,callback:Y,priorityLevel:_,startTime:q,expirationTime:W,sortIndex:-1},q>ue?(_.sortIndex=q,l(g,_),s(p)===null&&_===s(g)&&(C?(z(ee),ee=-1):C=!0,K(ie,q-ue))):(_.sortIndex=W,l(p,_),R||S||(R=!0,ne||(ne=!0,le()))),_},n.unstable_shouldYield=de,n.unstable_wrapCallback=function(_){var Y=k;return function(){var q=k;k=Y;try{return _.apply(this,arguments)}finally{k=q}}}})(Td)),Td}var wg;function gw(){return wg||(wg=1,Nd.exports=yw()),Nd.exports}var Od={exports:{}},Bt={};/**
26
+ * @license React
27
+ * react-dom.production.js
28
+ *
29
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var _g;function bw(){if(_g)return Bt;_g=1;var n=Bf();function l(p){var g="https://react.dev/errors/"+p;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)g+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+p+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var o={d:{f:s,r:function(){throw Error(l(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},u=Symbol.for("react.portal");function d(p,g,x){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:b==null?null:""+b,children:p,containerInfo:g,implementation:x}}var h=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(p,g){if(p==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return Bt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,Bt.createPortal=function(p,g){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(l(299));return d(p,g,null,x)},Bt.flushSync=function(p){var g=h.T,x=o.p;try{if(h.T=null,o.p=2,p)return p()}finally{h.T=g,o.p=x,o.d.f()}},Bt.preconnect=function(p,g){typeof p=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,o.d.C(p,g))},Bt.prefetchDNS=function(p){typeof p=="string"&&o.d.D(p)},Bt.preinit=function(p,g){if(typeof p=="string"&&g&&typeof g.as=="string"){var x=g.as,b=m(x,g.crossOrigin),k=typeof g.integrity=="string"?g.integrity:void 0,S=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;x==="style"?o.d.S(p,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:b,integrity:k,fetchPriority:S}):x==="script"&&o.d.X(p,{crossOrigin:b,integrity:k,fetchPriority:S,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},Bt.preinitModule=function(p,g){if(typeof p=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var x=m(g.as,g.crossOrigin);o.d.M(p,{crossOrigin:x,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&o.d.M(p)},Bt.preload=function(p,g){if(typeof p=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var x=g.as,b=m(x,g.crossOrigin);o.d.L(p,x,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},Bt.preloadModule=function(p,g){if(typeof p=="string")if(g){var x=m(g.as,g.crossOrigin);o.d.m(p,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:x,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else o.d.m(p)},Bt.requestFormReset=function(p){o.d.r(p)},Bt.unstable_batchedUpdates=function(p,g){return p(g)},Bt.useFormState=function(p,g,x){return h.H.useFormState(p,g,x)},Bt.useFormStatus=function(){return h.H.useHostTransitionStatus()},Bt.version="19.2.6",Bt}var Sg;function yb(){if(Sg)return Od.exports;Sg=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(l){console.error(l)}}return n(),Od.exports=bw(),Od.exports}/**
34
+ * @license React
35
+ * react-dom-client.production.js
36
+ *
37
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */var kg;function vw(){if(kg)return to;kg=1;var n=gw(),l=Bf(),s=yb();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function d(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(d(e)!==e)throw Error(o(188))}function g(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(o(188));return t!==e?null:e}for(var a=e,i=t;;){var r=a.return;if(r===null)break;var c=r.alternate;if(c===null){if(i=r.return,i!==null){a=i;continue}break}if(r.child===c.child){for(c=r.child;c;){if(c===a)return p(r),e;if(c===i)return p(r),t;c=c.sibling}throw Error(o(188))}if(a.return!==i.return)a=r,i=c;else{for(var y=!1,v=r.child;v;){if(v===a){y=!0,a=r,i=c;break}if(v===i){y=!0,i=r,a=c;break}v=v.sibling}if(!y){for(v=c.child;v;){if(v===a){y=!0,a=c,i=r;break}if(v===i){y=!0,i=c,a=r;break}v=v.sibling}if(!y)throw Error(o(189))}}if(a.alternate!==i)throw Error(o(190))}if(a.tag!==3)throw Error(o(188));return a.stateNode.current===a?e:t}function x(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=x(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,k=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),R=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),z=Symbol.for("react.consumer"),D=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),ie=Symbol.for("react.suspense"),ne=Symbol.for("react.suspense_list"),ee=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),ce=Symbol.for("react.activity"),de=Symbol.for("react.memo_cache_sentinel"),re=Symbol.iterator;function le(e){return e===null||typeof e!="object"?null:(e=re&&e[re]||e["@@iterator"],typeof e=="function"?e:null)}var B=Symbol.for("react.client.reference");function H(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===B?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case C:return"Fragment";case T:return"Profiler";case j:return"StrictMode";case ie:return"Suspense";case ne:return"SuspenseList";case ce:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case R:return"Portal";case D:return e.displayName||"Context";case z:return(e._context.displayName||"Context")+".Consumer";case I:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ee:return t=e.displayName||null,t!==null?t:H(e.type)||"Memo";case U:t=e._payload,e=e._init;try{return H(e(t))}catch{}}return null}var K=Array.isArray,_=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q={pending:!1,data:null,method:null,action:null},ue=[],W=-1;function M(e){return{current:e}}function G(e){0>W||(e.current=ue[W],ue[W]=null,W--)}function Z(e,t){W++,ue[W]=e.current,e.current=t}var N=M(null),P=M(null),X=M(null),F=M(null);function pe(e,t){switch(Z(X,t),Z(P,e),Z(N,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?By(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=By(t),e=Hy(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}G(N),Z(N,e)}function ge(){G(N),G(P),G(X)}function Ee(e){e.memoizedState!==null&&Z(F,e);var t=N.current,a=Hy(t,e.type);t!==a&&(Z(P,e),Z(N,a))}function Re(e){P.current===e&&(G(N),G(P)),F.current===e&&(G(F),Zs._currentValue=q)}var Ue,nt;function Ye(e){if(Ue===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Ue=t&&t[1]||"",nt=-1<a.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+Ue+e+nt}var Te=!1;function hn(e,t){if(!e||Te)return"";Te=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var oe=function(){throw Error()};if(Object.defineProperty(oe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(oe,[])}catch(J){var $=J}Reflect.construct(e,[],oe)}else{try{oe.call()}catch(J){$=J}e.call(oe.prototype)}}else{try{throw Error()}catch(J){$=J}(oe=e())&&typeof oe.catch=="function"&&oe.catch(function(){})}}catch(J){if(J&&$&&typeof J.stack=="string")return[J.stack,$.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=i.DetermineComponentFrameRoot(),y=c[0],v=c[1];if(y&&v){var A=y.split(`
44
+ `),V=v.split(`
45
+ `);for(r=i=0;i<A.length&&!A[i].includes("DetermineComponentFrameRoot");)i++;for(;r<V.length&&!V[r].includes("DetermineComponentFrameRoot");)r++;if(i===A.length||r===V.length)for(i=A.length-1,r=V.length-1;1<=i&&0<=r&&A[i]!==V[r];)r--;for(;1<=i&&0<=r;i--,r--)if(A[i]!==V[r]){if(i!==1||r!==1)do if(i--,r--,0>r||A[i]!==V[r]){var ae=`
46
+ `+A[i].replace(" at new "," at ");return e.displayName&&ae.includes("<anonymous>")&&(ae=ae.replace("<anonymous>",e.displayName)),ae}while(1<=i&&0<=r);break}}}finally{Te=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Ye(a):""}function So(e,t){switch(e.tag){case 26:case 27:case 5:return Ye(e.type);case 16:return Ye("Lazy");case 13:return e.child!==t&&t!==null?Ye("Suspense Fallback"):Ye("Suspense");case 19:return Ye("SuspenseList");case 0:case 15:return hn(e.type,!1);case 11:return hn(e.type.render,!1);case 1:return hn(e.type,!0);case 31:return Ye("Activity");default:return""}}function ko(e){try{var t="",a=null;do t+=So(e,a),a=e,e=e.return;while(e);return t}catch(i){return`
47
+ Error generating stack: `+i.message+`
48
+ `+i.stack}}var ei=Object.prototype.hasOwnProperty,ti=n.unstable_scheduleCallback,ni=n.unstable_cancelCallback,ul=n.unstable_shouldYield,Tn=n.unstable_requestPaint,ot=n.unstable_now,Eo=n.unstable_getCurrentPriorityLevel,us=n.unstable_ImmediatePriority,ai=n.unstable_UserBlockingPriority,dl=n.unstable_NormalPriority,li=n.unstable_LowPriority,it=n.unstable_IdlePriority,fl=n.log,jo=n.unstable_setDisableYieldValue,va=null,zt=null;function te(e){if(typeof fl=="function"&&jo(e),zt&&typeof zt.setStrictMode=="function")try{zt.setStrictMode(va,e)}catch{}}var he=Math.clz32?Math.clz32:Be,_e=Math.log,Me=Math.LN2;function Be(e){return e>>>=0,e===0?32:31-(_e(e)/Me|0)|0}var Ne=256,mt=262144,pt=4194304;function ct(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Dt(e,t,a){var i=e.pendingLanes;if(i===0)return 0;var r=0,c=e.suspendedLanes,y=e.pingedLanes;e=e.warmLanes;var v=i&134217727;return v!==0?(i=v&~c,i!==0?r=ct(i):(y&=v,y!==0?r=ct(y):a||(a=v&~e,a!==0&&(r=ct(a))))):(v=i&~c,v!==0?r=ct(v):y!==0?r=ct(y):a||(a=i&~e,a!==0&&(r=ct(a)))),r===0?0:t!==0&&t!==r&&(t&c)===0&&(c=r&-r,a=t&-t,c>=a||c===32&&(a&4194048)!==0)?t:r}function Ut(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Lt(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function En(){var e=pt;return pt<<=1,(pt&62914560)===0&&(pt=4194304),e}function hl(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function xa(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function wa(e,t,a,i,r,c){var y=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var v=e.entanglements,A=e.expirationTimes,V=e.hiddenUpdates;for(a=y&~a;0<a;){var ae=31-he(a),oe=1<<ae;v[ae]=0,A[ae]=-1;var $=V[ae];if($!==null)for(V[ae]=null,ae=0;ae<$.length;ae++){var J=$[ae];J!==null&&(J.lane&=-536870913)}a&=~oe}i!==0&&Mo(e,i,0),c!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=c&~(y&~t))}function Mo(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-he(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|a&261930}function wh(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var i=31-he(a),r=1<<i;r&t|e[i]&t&&(e[i]|=t),a&=~r}}function _h(e,t){var a=t&-t;return a=(a&42)!==0?1:pc(a),(a&(e.suspendedLanes|t))!==0?0:a}function pc(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function yc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Sh(){var e=Y.p;return e!==0?e:(e=window.event,e===void 0?32:rg(e.type))}function kh(e,t){var a=Y.p;try{return Y.p=e,t()}finally{Y.p=a}}var _a=Math.random().toString(36).slice(2),At="__reactFiber$"+_a,Vt="__reactProps$"+_a,ii="__reactContainer$"+_a,gc="__reactEvents$"+_a,tx="__reactListeners$"+_a,nx="__reactHandles$"+_a,Eh="__reactResources$"+_a,ds="__reactMarker$"+_a;function bc(e){delete e[At],delete e[Vt],delete e[gc],delete e[tx],delete e[nx]}function si(e){var t=e[At];if(t)return t;for(var a=e.parentNode;a;){if(t=a[ii]||a[At]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=$y(e);e!==null;){if(a=e[At])return a;e=$y(e)}return t}e=a,a=e.parentNode}return null}function oi(e){if(e=e[At]||e[ii]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function fs(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function ri(e){var t=e[Eh];return t||(t=e[Eh]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Et(e){e[ds]=!0}var jh=new Set,Mh={};function ml(e,t){ci(e,t),ci(e+"Capture",t)}function ci(e,t){for(Mh[e]=t,e=0;e<t.length;e++)jh.add(t[e])}var ax=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Ah={},Ch={};function lx(e){return ei.call(Ch,e)?!0:ei.call(Ah,e)?!1:ax.test(e)?Ch[e]=!0:(Ah[e]=!0,!1)}function Ao(e,t,a){if(lx(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Co(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function Yn(e,t,a,i){if(i===null)e.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+i)}}function mn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Nh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ix(e,t,a){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var r=i.get,c=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(y){a=""+y,c.call(this,y)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return a},setValue:function(y){a=""+y},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function vc(e){if(!e._valueTracker){var t=Nh(e)?"checked":"value";e._valueTracker=ix(e,t,""+e[t])}}function Th(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),i="";return e&&(i=Nh(e)?e.checked?"true":"false":e.value),e=i,e!==a?(t.setValue(e),!0):!1}function No(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var sx=/[\n"\\]/g;function pn(e){return e.replace(sx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function xc(e,t,a,i,r,c,y,v){e.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.type=y:e.removeAttribute("type"),t!=null?y==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+mn(t)):e.value!==""+mn(t)&&(e.value=""+mn(t)):y!=="submit"&&y!=="reset"||e.removeAttribute("value"),t!=null?wc(e,y,mn(t)):a!=null?wc(e,y,mn(a)):i!=null&&e.removeAttribute("value"),r==null&&c!=null&&(e.defaultChecked=!!c),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+mn(v):e.removeAttribute("name")}function Oh(e,t,a,i,r,c,y,v){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||a!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){vc(e);return}a=a!=null?""+mn(a):"",t=t!=null?""+mn(t):a,v||t===e.value||(e.value=t),e.defaultValue=t}i=i??r,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=v?e.checked:!!i,e.defaultChecked=!!i,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(e.name=y),vc(e)}function wc(e,t,a){t==="number"&&No(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function ui(e,t,a,i){if(e=e.options,t){t={};for(var r=0;r<a.length;r++)t["$"+a[r]]=!0;for(a=0;a<e.length;a++)r=t.hasOwnProperty("$"+e[a].value),e[a].selected!==r&&(e[a].selected=r),r&&i&&(e[a].defaultSelected=!0)}else{for(a=""+mn(a),t=null,r=0;r<e.length;r++){if(e[r].value===a){e[r].selected=!0,i&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function Rh(e,t,a){if(t!=null&&(t=""+mn(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+mn(a):""}function zh(e,t,a,i){if(t==null){if(i!=null){if(a!=null)throw Error(o(92));if(K(i)){if(1<i.length)throw Error(o(93));i=i[0]}a=i}a==null&&(a=""),t=a}a=mn(t),e.defaultValue=a,i=e.textContent,i===a&&i!==""&&i!==null&&(e.value=i),vc(e)}function di(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var ox=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Dh(e,t,a){var i=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,a):typeof a!="number"||a===0||ox.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Uh(e,t,a){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,a!=null){for(var i in a)!a.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var r in t)i=t[r],t.hasOwnProperty(r)&&a[r]!==i&&Dh(e,r,i)}else for(var c in t)t.hasOwnProperty(c)&&Dh(e,c,t[c])}function _c(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var rx=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),cx=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function To(e){return cx.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function $n(){}var Sc=null;function kc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var fi=null,hi=null;function Lh(e){var t=oi(e);if(t&&(e=t.stateNode)){var a=e[Vt]||null;e:switch(e=t.stateNode,t.type){case"input":if(xc(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+pn(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var i=a[t];if(i!==e&&i.form===e.form){var r=i[Vt]||null;if(!r)throw Error(o(90));xc(i,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<a.length;t++)i=a[t],i.form===e.form&&Th(i)}break e;case"textarea":Rh(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&ui(e,!!a.multiple,t,!1)}}}var Ec=!1;function Bh(e,t,a){if(Ec)return e(t,a);Ec=!0;try{var i=e(t);return i}finally{if(Ec=!1,(fi!==null||hi!==null)&&(br(),fi&&(t=fi,e=hi,hi=fi=null,Lh(t),e)))for(t=0;t<e.length;t++)Lh(e[t])}}function hs(e,t){var a=e.stateNode;if(a===null)return null;var i=a[Vt]||null;if(i===null)return null;a=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(o(231,t,typeof a));return a}var Kn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),jc=!1;if(Kn)try{var ms={};Object.defineProperty(ms,"passive",{get:function(){jc=!0}}),window.addEventListener("test",ms,ms),window.removeEventListener("test",ms,ms)}catch{jc=!1}var Sa=null,Mc=null,Oo=null;function Hh(){if(Oo)return Oo;var e,t=Mc,a=t.length,i,r="value"in Sa?Sa.value:Sa.textContent,c=r.length;for(e=0;e<a&&t[e]===r[e];e++);var y=a-e;for(i=1;i<=y&&t[a-i]===r[c-i];i++);return Oo=r.slice(e,1<i?1-i:void 0)}function Ro(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function zo(){return!0}function qh(){return!1}function Yt(e){function t(a,i,r,c,y){this._reactName=a,this._targetInst=r,this.type=i,this.nativeEvent=c,this.target=y,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(a=e[v],this[v]=a?a(c):c[v]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?zo:qh,this.isPropagationStopped=qh,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=zo)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=zo)},persist:function(){},isPersistent:zo}),t}var pl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Do=Yt(pl),ps=b({},pl,{view:0,detail:0}),ux=Yt(ps),Ac,Cc,ys,Uo=b({},ps,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ys&&(ys&&e.type==="mousemove"?(Ac=e.screenX-ys.screenX,Cc=e.screenY-ys.screenY):Cc=Ac=0,ys=e),Ac)},movementY:function(e){return"movementY"in e?e.movementY:Cc}}),Gh=Yt(Uo),dx=b({},Uo,{dataTransfer:0}),fx=Yt(dx),hx=b({},ps,{relatedTarget:0}),Nc=Yt(hx),mx=b({},pl,{animationName:0,elapsedTime:0,pseudoElement:0}),px=Yt(mx),yx=b({},pl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),gx=Yt(yx),bx=b({},pl,{data:0}),Qh=Yt(bx),vx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xx={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},wx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _x(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=wx[e])?!!t[e]:!1}function Tc(){return _x}var Sx=b({},ps,{key:function(e){if(e.key){var t=vx[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ro(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?xx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tc,charCode:function(e){return e.type==="keypress"?Ro(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ro(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),kx=Yt(Sx),Ex=b({},Uo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ih=Yt(Ex),jx=b({},ps,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tc}),Mx=Yt(jx),Ax=b({},pl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Cx=Yt(Ax),Nx=b({},Uo,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Tx=Yt(Nx),Ox=b({},pl,{newState:0,oldState:0}),Rx=Yt(Ox),zx=[9,13,27,32],Oc=Kn&&"CompositionEvent"in window,gs=null;Kn&&"documentMode"in document&&(gs=document.documentMode);var Dx=Kn&&"TextEvent"in window&&!gs,Vh=Kn&&(!Oc||gs&&8<gs&&11>=gs),Yh=" ",$h=!1;function Kh(e,t){switch(e){case"keyup":return zx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Xh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var mi=!1;function Ux(e,t){switch(e){case"compositionend":return Xh(t);case"keypress":return t.which!==32?null:($h=!0,Yh);case"textInput":return e=t.data,e===Yh&&$h?null:e;default:return null}}function Lx(e,t){if(mi)return e==="compositionend"||!Oc&&Kh(e,t)?(e=Hh(),Oo=Mc=Sa=null,mi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Vh&&t.locale!=="ko"?null:t.data;default:return null}}var Bx={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Fh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Bx[e.type]:t==="textarea"}function Zh(e,t,a,i){fi?hi?hi.push(i):hi=[i]:fi=i,t=Er(t,"onChange"),0<t.length&&(a=new Do("onChange","change",null,a,i),e.push({event:a,listeners:t}))}var bs=null,vs=null;function Hx(e){Oy(e,0)}function Lo(e){var t=fs(e);if(Th(t))return e}function Ph(e,t){if(e==="change")return t}var Jh=!1;if(Kn){var Rc;if(Kn){var zc="oninput"in document;if(!zc){var Wh=document.createElement("div");Wh.setAttribute("oninput","return;"),zc=typeof Wh.oninput=="function"}Rc=zc}else Rc=!1;Jh=Rc&&(!document.documentMode||9<document.documentMode)}function em(){bs&&(bs.detachEvent("onpropertychange",tm),vs=bs=null)}function tm(e){if(e.propertyName==="value"&&Lo(vs)){var t=[];Zh(t,vs,e,kc(e)),Bh(Hx,t)}}function qx(e,t,a){e==="focusin"?(em(),bs=t,vs=a,bs.attachEvent("onpropertychange",tm)):e==="focusout"&&em()}function Gx(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Lo(vs)}function Qx(e,t){if(e==="click")return Lo(t)}function Ix(e,t){if(e==="input"||e==="change")return Lo(t)}function Vx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var tn=typeof Object.is=="function"?Object.is:Vx;function xs(e,t){if(tn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),i=Object.keys(t);if(a.length!==i.length)return!1;for(i=0;i<a.length;i++){var r=a[i];if(!ei.call(t,r)||!tn(e[r],t[r]))return!1}return!0}function nm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function am(e,t){var a=nm(e);e=0;for(var i;a;){if(a.nodeType===3){if(i=e+a.textContent.length,e<=t&&i>=t)return{node:a,offset:t-e};e=i}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=nm(a)}}function lm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?lm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function im(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=No(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=No(e.document)}return t}function Dc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Yx=Kn&&"documentMode"in document&&11>=document.documentMode,pi=null,Uc=null,ws=null,Lc=!1;function sm(e,t,a){var i=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Lc||pi==null||pi!==No(i)||(i=pi,"selectionStart"in i&&Dc(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),ws&&xs(ws,i)||(ws=i,i=Er(Uc,"onSelect"),0<i.length&&(t=new Do("onSelect","select",null,t,a),e.push({event:t,listeners:i}),t.target=pi)))}function yl(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var yi={animationend:yl("Animation","AnimationEnd"),animationiteration:yl("Animation","AnimationIteration"),animationstart:yl("Animation","AnimationStart"),transitionrun:yl("Transition","TransitionRun"),transitionstart:yl("Transition","TransitionStart"),transitioncancel:yl("Transition","TransitionCancel"),transitionend:yl("Transition","TransitionEnd")},Bc={},om={};Kn&&(om=document.createElement("div").style,"AnimationEvent"in window||(delete yi.animationend.animation,delete yi.animationiteration.animation,delete yi.animationstart.animation),"TransitionEvent"in window||delete yi.transitionend.transition);function gl(e){if(Bc[e])return Bc[e];if(!yi[e])return e;var t=yi[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in om)return Bc[e]=t[a];return e}var rm=gl("animationend"),cm=gl("animationiteration"),um=gl("animationstart"),$x=gl("transitionrun"),Kx=gl("transitionstart"),Xx=gl("transitioncancel"),dm=gl("transitionend"),fm=new Map,Hc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Hc.push("scrollEnd");function jn(e,t){fm.set(e,t),ml(t,[e])}var Bo=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},yn=[],gi=0,qc=0;function Ho(){for(var e=gi,t=qc=gi=0;t<e;){var a=yn[t];yn[t++]=null;var i=yn[t];yn[t++]=null;var r=yn[t];yn[t++]=null;var c=yn[t];if(yn[t++]=null,i!==null&&r!==null){var y=i.pending;y===null?r.next=r:(r.next=y.next,y.next=r),i.pending=r}c!==0&&hm(a,r,c)}}function qo(e,t,a,i){yn[gi++]=e,yn[gi++]=t,yn[gi++]=a,yn[gi++]=i,qc|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function Gc(e,t,a,i){return qo(e,t,a,i),Go(e)}function bl(e,t){return qo(e,null,null,t),Go(e)}function hm(e,t,a){e.lanes|=a;var i=e.alternate;i!==null&&(i.lanes|=a);for(var r=!1,c=e.return;c!==null;)c.childLanes|=a,i=c.alternate,i!==null&&(i.childLanes|=a),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(r=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,r&&t!==null&&(r=31-he(a),e=c.hiddenUpdates,i=e[r],i===null?e[r]=[t]:i.push(t),t.lane=a|536870912),c):null}function Go(e){if(50<Is)throw Is=0,Zu=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var bi={};function Fx(e,t,a,i){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function nn(e,t,a,i){return new Fx(e,t,a,i)}function Qc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Xn(e,t){var a=e.alternate;return a===null?(a=nn(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function mm(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Qo(e,t,a,i,r,c){var y=0;if(i=e,typeof e=="function")Qc(e)&&(y=1);else if(typeof e=="string")y=ew(e,a,N.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ce:return e=nn(31,a,t,r),e.elementType=ce,e.lanes=c,e;case C:return vl(a.children,r,c,t);case j:y=8,r|=24;break;case T:return e=nn(12,a,t,r|2),e.elementType=T,e.lanes=c,e;case ie:return e=nn(13,a,t,r),e.elementType=ie,e.lanes=c,e;case ne:return e=nn(19,a,t,r),e.elementType=ne,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case D:y=10;break e;case z:y=9;break e;case I:y=11;break e;case ee:y=14;break e;case U:y=16,i=null;break e}y=29,a=Error(o(130,e===null?"null":typeof e,"")),i=null}return t=nn(y,a,t,r),t.elementType=e,t.type=i,t.lanes=c,t}function vl(e,t,a,i){return e=nn(7,e,i,t),e.lanes=a,e}function Ic(e,t,a){return e=nn(6,e,null,t),e.lanes=a,e}function pm(e){var t=nn(18,null,null,0);return t.stateNode=e,t}function Vc(e,t,a){return t=nn(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ym=new WeakMap;function gn(e,t){if(typeof e=="object"&&e!==null){var a=ym.get(e);return a!==void 0?a:(t={value:e,source:t,stack:ko(t)},ym.set(e,t),t)}return{value:e,source:t,stack:ko(t)}}var vi=[],xi=0,Io=null,_s=0,bn=[],vn=0,ka=null,On=1,Rn="";function Fn(e,t){vi[xi++]=_s,vi[xi++]=Io,Io=e,_s=t}function gm(e,t,a){bn[vn++]=On,bn[vn++]=Rn,bn[vn++]=ka,ka=e;var i=On;e=Rn;var r=32-he(i)-1;i&=~(1<<r),a+=1;var c=32-he(t)+r;if(30<c){var y=r-r%5;c=(i&(1<<y)-1).toString(32),i>>=y,r-=y,On=1<<32-he(t)+r|a<<r|i,Rn=c+e}else On=1<<c|a<<r|i,Rn=e}function Yc(e){e.return!==null&&(Fn(e,1),gm(e,1,0))}function $c(e){for(;e===Io;)Io=vi[--xi],vi[xi]=null,_s=vi[--xi],vi[xi]=null;for(;e===ka;)ka=bn[--vn],bn[vn]=null,Rn=bn[--vn],bn[vn]=null,On=bn[--vn],bn[vn]=null}function bm(e,t){bn[vn++]=On,bn[vn++]=Rn,bn[vn++]=ka,On=t.id,Rn=t.overflow,ka=e}var Ct=null,at=null,Ie=!1,Ea=null,xn=!1,Kc=Error(o(519));function ja(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ss(gn(t,e)),Kc}function vm(e){var t=e.stateNode,a=e.type,i=e.memoizedProps;switch(t[At]=e,t[Vt]=i,a){case"dialog":qe("cancel",t),qe("close",t);break;case"iframe":case"object":case"embed":qe("load",t);break;case"video":case"audio":for(a=0;a<Ys.length;a++)qe(Ys[a],t);break;case"source":qe("error",t);break;case"img":case"image":case"link":qe("error",t),qe("load",t);break;case"details":qe("toggle",t);break;case"input":qe("invalid",t),Oh(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":qe("invalid",t);break;case"textarea":qe("invalid",t),zh(t,i.value,i.defaultValue,i.children)}a=i.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||i.suppressHydrationWarning===!0||Uy(t.textContent,a)?(i.popover!=null&&(qe("beforetoggle",t),qe("toggle",t)),i.onScroll!=null&&qe("scroll",t),i.onScrollEnd!=null&&qe("scrollend",t),i.onClick!=null&&(t.onclick=$n),t=!0):t=!1,t||ja(e,!0)}function xm(e){for(Ct=e.return;Ct;)switch(Ct.tag){case 5:case 31:case 13:xn=!1;return;case 27:case 3:xn=!0;return;default:Ct=Ct.return}}function wi(e){if(e!==Ct)return!1;if(!Ie)return xm(e),Ie=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||dd(e.type,e.memoizedProps)),a=!a),a&&at&&ja(e),xm(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));at=Yy(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));at=Yy(e)}else t===27?(t=at,qa(e.type)?(e=yd,yd=null,at=e):at=t):at=Ct?_n(e.stateNode.nextSibling):null;return!0}function xl(){at=Ct=null,Ie=!1}function Xc(){var e=Ea;return e!==null&&(Ft===null?Ft=e:Ft.push.apply(Ft,e),Ea=null),e}function Ss(e){Ea===null?Ea=[e]:Ea.push(e)}var Fc=M(null),wl=null,Zn=null;function Ma(e,t,a){Z(Fc,t._currentValue),t._currentValue=a}function Pn(e){e._currentValue=Fc.current,G(Fc)}function Zc(e,t,a){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===a)break;e=e.return}}function Pc(e,t,a,i){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var c=r.dependencies;if(c!==null){var y=r.child;c=c.firstContext;e:for(;c!==null;){var v=c;c=r;for(var A=0;A<t.length;A++)if(v.context===t[A]){c.lanes|=a,v=c.alternate,v!==null&&(v.lanes|=a),Zc(c.return,a,e),i||(y=null);break e}c=v.next}}else if(r.tag===18){if(y=r.return,y===null)throw Error(o(341));y.lanes|=a,c=y.alternate,c!==null&&(c.lanes|=a),Zc(y,a,e),y=null}else y=r.child;if(y!==null)y.return=r;else for(y=r;y!==null;){if(y===e){y=null;break}if(r=y.sibling,r!==null){r.return=y.return,y=r;break}y=y.return}r=y}}function _i(e,t,a,i){e=null;for(var r=t,c=!1;r!==null;){if(!c){if((r.flags&524288)!==0)c=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var y=r.alternate;if(y===null)throw Error(o(387));if(y=y.memoizedProps,y!==null){var v=r.type;tn(r.pendingProps.value,y.value)||(e!==null?e.push(v):e=[v])}}else if(r===F.current){if(y=r.alternate,y===null)throw Error(o(387));y.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(Zs):e=[Zs])}r=r.return}e!==null&&Pc(t,e,a,i),t.flags|=262144}function Vo(e){for(e=e.firstContext;e!==null;){if(!tn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function _l(e){wl=e,Zn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Nt(e){return wm(wl,e)}function Yo(e,t){return wl===null&&_l(e),wm(e,t)}function wm(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Zn===null){if(e===null)throw Error(o(308));Zn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Zn=Zn.next=t;return a}var Zx=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},Px=n.unstable_scheduleCallback,Jx=n.unstable_NormalPriority,bt={$$typeof:D,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Jc(){return{controller:new Zx,data:new Map,refCount:0}}function ks(e){e.refCount--,e.refCount===0&&Px(Jx,function(){e.controller.abort()})}var Es=null,Wc=0,Si=0,ki=null;function Wx(e,t){if(Es===null){var a=Es=[];Wc=0,Si=nd(),ki={status:"pending",value:void 0,then:function(i){a.push(i)}}}return Wc++,t.then(_m,_m),t}function _m(){if(--Wc===0&&Es!==null){ki!==null&&(ki.status="fulfilled");var e=Es;Es=null,Si=0,ki=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function e2(e,t){var a=[],i={status:"pending",value:null,reason:null,then:function(r){a.push(r)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var r=0;r<a.length;r++)(0,a[r])(t)},function(r){for(i.status="rejected",i.reason=r,r=0;r<a.length;r++)(0,a[r])(void 0)}),i}var Sm=_.S;_.S=function(e,t){sy=ot(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Wx(e,t),Sm!==null&&Sm(e,t)};var Sl=M(null);function eu(){var e=Sl.current;return e!==null?e:tt.pooledCache}function $o(e,t){t===null?Z(Sl,Sl.current):Z(Sl,t.pool)}function km(){var e=eu();return e===null?null:{parent:bt._currentValue,pool:e}}var Ei=Error(o(460)),tu=Error(o(474)),Ko=Error(o(542)),Xo={then:function(){}};function Em(e){return e=e.status,e==="fulfilled"||e==="rejected"}function jm(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then($n,$n),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Am(e),e;default:if(typeof t.status=="string")t.then($n,$n);else{if(e=tt,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var r=t;r.status="fulfilled",r.value=i}},function(i){if(t.status==="pending"){var r=t;r.status="rejected",r.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Am(e),e}throw El=t,Ei}}function kl(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(El=a,Ei):a}}var El=null;function Mm(){if(El===null)throw Error(o(459));var e=El;return El=null,e}function Am(e){if(e===Ei||e===Ko)throw Error(o(483))}var ji=null,js=0;function Fo(e){var t=js;return js+=1,ji===null&&(ji=[]),jm(ji,e,t)}function Ms(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Zo(e,t){throw t.$$typeof===k?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Cm(e){function t(L,O){if(e){var Q=L.deletions;Q===null?(L.deletions=[O],L.flags|=16):Q.push(O)}}function a(L,O){if(!e)return null;for(;O!==null;)t(L,O),O=O.sibling;return null}function i(L){for(var O=new Map;L!==null;)L.key!==null?O.set(L.key,L):O.set(L.index,L),L=L.sibling;return O}function r(L,O){return L=Xn(L,O),L.index=0,L.sibling=null,L}function c(L,O,Q){return L.index=Q,e?(Q=L.alternate,Q!==null?(Q=Q.index,Q<O?(L.flags|=67108866,O):Q):(L.flags|=67108866,O)):(L.flags|=1048576,O)}function y(L){return e&&L.alternate===null&&(L.flags|=67108866),L}function v(L,O,Q,se){return O===null||O.tag!==6?(O=Ic(Q,L.mode,se),O.return=L,O):(O=r(O,Q),O.return=L,O)}function A(L,O,Q,se){var ke=Q.type;return ke===C?ae(L,O,Q.props.children,se,Q.key):O!==null&&(O.elementType===ke||typeof ke=="object"&&ke!==null&&ke.$$typeof===U&&kl(ke)===O.type)?(O=r(O,Q.props),Ms(O,Q),O.return=L,O):(O=Qo(Q.type,Q.key,Q.props,null,L.mode,se),Ms(O,Q),O.return=L,O)}function V(L,O,Q,se){return O===null||O.tag!==4||O.stateNode.containerInfo!==Q.containerInfo||O.stateNode.implementation!==Q.implementation?(O=Vc(Q,L.mode,se),O.return=L,O):(O=r(O,Q.children||[]),O.return=L,O)}function ae(L,O,Q,se,ke){return O===null||O.tag!==7?(O=vl(Q,L.mode,se,ke),O.return=L,O):(O=r(O,Q),O.return=L,O)}function oe(L,O,Q){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=Ic(""+O,L.mode,Q),O.return=L,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case S:return Q=Qo(O.type,O.key,O.props,null,L.mode,Q),Ms(Q,O),Q.return=L,Q;case R:return O=Vc(O,L.mode,Q),O.return=L,O;case U:return O=kl(O),oe(L,O,Q)}if(K(O)||le(O))return O=vl(O,L.mode,Q,null),O.return=L,O;if(typeof O.then=="function")return oe(L,Fo(O),Q);if(O.$$typeof===D)return oe(L,Yo(L,O),Q);Zo(L,O)}return null}function $(L,O,Q,se){var ke=O!==null?O.key:null;if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return ke!==null?null:v(L,O,""+Q,se);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case S:return Q.key===ke?A(L,O,Q,se):null;case R:return Q.key===ke?V(L,O,Q,se):null;case U:return Q=kl(Q),$(L,O,Q,se)}if(K(Q)||le(Q))return ke!==null?null:ae(L,O,Q,se,null);if(typeof Q.then=="function")return $(L,O,Fo(Q),se);if(Q.$$typeof===D)return $(L,O,Yo(L,Q),se);Zo(L,Q)}return null}function J(L,O,Q,se,ke){if(typeof se=="string"&&se!==""||typeof se=="number"||typeof se=="bigint")return L=L.get(Q)||null,v(O,L,""+se,ke);if(typeof se=="object"&&se!==null){switch(se.$$typeof){case S:return L=L.get(se.key===null?Q:se.key)||null,A(O,L,se,ke);case R:return L=L.get(se.key===null?Q:se.key)||null,V(O,L,se,ke);case U:return se=kl(se),J(L,O,Q,se,ke)}if(K(se)||le(se))return L=L.get(Q)||null,ae(O,L,se,ke,null);if(typeof se.then=="function")return J(L,O,Q,Fo(se),ke);if(se.$$typeof===D)return J(L,O,Q,Yo(O,se),ke);Zo(O,se)}return null}function we(L,O,Q,se){for(var ke=null,$e=null,Se=O,ze=O=0,Qe=null;Se!==null&&ze<Q.length;ze++){Se.index>ze?(Qe=Se,Se=null):Qe=Se.sibling;var Ke=$(L,Se,Q[ze],se);if(Ke===null){Se===null&&(Se=Qe);break}e&&Se&&Ke.alternate===null&&t(L,Se),O=c(Ke,O,ze),$e===null?ke=Ke:$e.sibling=Ke,$e=Ke,Se=Qe}if(ze===Q.length)return a(L,Se),Ie&&Fn(L,ze),ke;if(Se===null){for(;ze<Q.length;ze++)Se=oe(L,Q[ze],se),Se!==null&&(O=c(Se,O,ze),$e===null?ke=Se:$e.sibling=Se,$e=Se);return Ie&&Fn(L,ze),ke}for(Se=i(Se);ze<Q.length;ze++)Qe=J(Se,L,ze,Q[ze],se),Qe!==null&&(e&&Qe.alternate!==null&&Se.delete(Qe.key===null?ze:Qe.key),O=c(Qe,O,ze),$e===null?ke=Qe:$e.sibling=Qe,$e=Qe);return e&&Se.forEach(function(Ya){return t(L,Ya)}),Ie&&Fn(L,ze),ke}function Ae(L,O,Q,se){if(Q==null)throw Error(o(151));for(var ke=null,$e=null,Se=O,ze=O=0,Qe=null,Ke=Q.next();Se!==null&&!Ke.done;ze++,Ke=Q.next()){Se.index>ze?(Qe=Se,Se=null):Qe=Se.sibling;var Ya=$(L,Se,Ke.value,se);if(Ya===null){Se===null&&(Se=Qe);break}e&&Se&&Ya.alternate===null&&t(L,Se),O=c(Ya,O,ze),$e===null?ke=Ya:$e.sibling=Ya,$e=Ya,Se=Qe}if(Ke.done)return a(L,Se),Ie&&Fn(L,ze),ke;if(Se===null){for(;!Ke.done;ze++,Ke=Q.next())Ke=oe(L,Ke.value,se),Ke!==null&&(O=c(Ke,O,ze),$e===null?ke=Ke:$e.sibling=Ke,$e=Ke);return Ie&&Fn(L,ze),ke}for(Se=i(Se);!Ke.done;ze++,Ke=Q.next())Ke=J(Se,L,ze,Ke.value,se),Ke!==null&&(e&&Ke.alternate!==null&&Se.delete(Ke.key===null?ze:Ke.key),O=c(Ke,O,ze),$e===null?ke=Ke:$e.sibling=Ke,$e=Ke);return e&&Se.forEach(function(dw){return t(L,dw)}),Ie&&Fn(L,ze),ke}function et(L,O,Q,se){if(typeof Q=="object"&&Q!==null&&Q.type===C&&Q.key===null&&(Q=Q.props.children),typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case S:e:{for(var ke=Q.key;O!==null;){if(O.key===ke){if(ke=Q.type,ke===C){if(O.tag===7){a(L,O.sibling),se=r(O,Q.props.children),se.return=L,L=se;break e}}else if(O.elementType===ke||typeof ke=="object"&&ke!==null&&ke.$$typeof===U&&kl(ke)===O.type){a(L,O.sibling),se=r(O,Q.props),Ms(se,Q),se.return=L,L=se;break e}a(L,O);break}else t(L,O);O=O.sibling}Q.type===C?(se=vl(Q.props.children,L.mode,se,Q.key),se.return=L,L=se):(se=Qo(Q.type,Q.key,Q.props,null,L.mode,se),Ms(se,Q),se.return=L,L=se)}return y(L);case R:e:{for(ke=Q.key;O!==null;){if(O.key===ke)if(O.tag===4&&O.stateNode.containerInfo===Q.containerInfo&&O.stateNode.implementation===Q.implementation){a(L,O.sibling),se=r(O,Q.children||[]),se.return=L,L=se;break e}else{a(L,O);break}else t(L,O);O=O.sibling}se=Vc(Q,L.mode,se),se.return=L,L=se}return y(L);case U:return Q=kl(Q),et(L,O,Q,se)}if(K(Q))return we(L,O,Q,se);if(le(Q)){if(ke=le(Q),typeof ke!="function")throw Error(o(150));return Q=ke.call(Q),Ae(L,O,Q,se)}if(typeof Q.then=="function")return et(L,O,Fo(Q),se);if(Q.$$typeof===D)return et(L,O,Yo(L,Q),se);Zo(L,Q)}return typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint"?(Q=""+Q,O!==null&&O.tag===6?(a(L,O.sibling),se=r(O,Q),se.return=L,L=se):(a(L,O),se=Ic(Q,L.mode,se),se.return=L,L=se),y(L)):a(L,O)}return function(L,O,Q,se){try{js=0;var ke=et(L,O,Q,se);return ji=null,ke}catch(Se){if(Se===Ei||Se===Ko)throw Se;var $e=nn(29,Se,null,L.mode);return $e.lanes=se,$e.return=L,$e}finally{}}}var jl=Cm(!0),Nm=Cm(!1),Aa=!1;function nu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function au(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ca(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Na(e,t,a){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(Xe&2)!==0){var r=i.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),i.pending=t,t=Go(e),hm(e,null,a),t}return qo(e,i,t,a),Go(e)}function As(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,wh(e,a)}}function lu(e,t){var a=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,a===i)){var r=null,c=null;if(a=a.firstBaseUpdate,a!==null){do{var y={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?r=c=y:c=c.next=y,a=a.next}while(a!==null);c===null?r=c=t:c=c.next=t}else r=c=t;a={baseState:i.baseState,firstBaseUpdate:r,lastBaseUpdate:c,shared:i.shared,callbacks:i.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var iu=!1;function Cs(){if(iu){var e=ki;if(e!==null)throw e}}function Ns(e,t,a,i){iu=!1;var r=e.updateQueue;Aa=!1;var c=r.firstBaseUpdate,y=r.lastBaseUpdate,v=r.shared.pending;if(v!==null){r.shared.pending=null;var A=v,V=A.next;A.next=null,y===null?c=V:y.next=V,y=A;var ae=e.alternate;ae!==null&&(ae=ae.updateQueue,v=ae.lastBaseUpdate,v!==y&&(v===null?ae.firstBaseUpdate=V:v.next=V,ae.lastBaseUpdate=A))}if(c!==null){var oe=r.baseState;y=0,ae=V=A=null,v=c;do{var $=v.lane&-536870913,J=$!==v.lane;if(J?(Ge&$)===$:(i&$)===$){$!==0&&$===Si&&(iu=!0),ae!==null&&(ae=ae.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var we=e,Ae=v;$=t;var et=a;switch(Ae.tag){case 1:if(we=Ae.payload,typeof we=="function"){oe=we.call(et,oe,$);break e}oe=we;break e;case 3:we.flags=we.flags&-65537|128;case 0:if(we=Ae.payload,$=typeof we=="function"?we.call(et,oe,$):we,$==null)break e;oe=b({},oe,$);break e;case 2:Aa=!0}}$=v.callback,$!==null&&(e.flags|=64,J&&(e.flags|=8192),J=r.callbacks,J===null?r.callbacks=[$]:J.push($))}else J={lane:$,tag:v.tag,payload:v.payload,callback:v.callback,next:null},ae===null?(V=ae=J,A=oe):ae=ae.next=J,y|=$;if(v=v.next,v===null){if(v=r.shared.pending,v===null)break;J=v,v=J.next,J.next=null,r.lastBaseUpdate=J,r.shared.pending=null}}while(!0);ae===null&&(A=oe),r.baseState=A,r.firstBaseUpdate=V,r.lastBaseUpdate=ae,c===null&&(r.shared.lanes=0),Da|=y,e.lanes=y,e.memoizedState=oe}}function Tm(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function Om(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Tm(a[e],t)}var Mi=M(null),Po=M(0);function Rm(e,t){e=sa,Z(Po,e),Z(Mi,t),sa=e|t.baseLanes}function su(){Z(Po,sa),Z(Mi,Mi.current)}function ou(){sa=Po.current,G(Mi),G(Po)}var an=M(null),wn=null;function Ta(e){var t=e.alternate;Z(yt,yt.current&1),Z(an,e),wn===null&&(t===null||Mi.current!==null||t.memoizedState!==null)&&(wn=e)}function ru(e){Z(yt,yt.current),Z(an,e),wn===null&&(wn=e)}function zm(e){e.tag===22?(Z(yt,yt.current),Z(an,e),wn===null&&(wn=e)):Oa()}function Oa(){Z(yt,yt.current),Z(an,an.current)}function ln(e){G(an),wn===e&&(wn=null),G(yt)}var yt=M(0);function Jo(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||md(a)||pd(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Jn=0,Oe=null,Je=null,vt=null,Wo=!1,Ai=!1,Ml=!1,er=0,Ts=0,Ci=null,t2=0;function ut(){throw Error(o(321))}function cu(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!tn(e[a],t[a]))return!1;return!0}function uu(e,t,a,i,r,c){return Jn=c,Oe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_.H=e===null||e.memoizedState===null?gp:Eu,Ml=!1,c=a(i,r),Ml=!1,Ai&&(c=Um(t,a,i,r)),Dm(e),c}function Dm(e){_.H=zs;var t=Je!==null&&Je.next!==null;if(Jn=0,vt=Je=Oe=null,Wo=!1,Ts=0,Ci=null,t)throw Error(o(300));e===null||xt||(e=e.dependencies,e!==null&&Vo(e)&&(xt=!0))}function Um(e,t,a,i){Oe=e;var r=0;do{if(Ai&&(Ci=null),Ts=0,Ai=!1,25<=r)throw Error(o(301));if(r+=1,vt=Je=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}_.H=bp,c=t(a,i)}while(Ai);return c}function n2(){var e=_.H,t=e.useState()[0];return t=typeof t.then=="function"?Os(t):t,e=e.useState()[0],(Je!==null?Je.memoizedState:null)!==e&&(Oe.flags|=1024),t}function du(){var e=er!==0;return er=0,e}function fu(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function hu(e){if(Wo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Wo=!1}Jn=0,vt=Je=Oe=null,Ai=!1,Ts=er=0,Ci=null}function Gt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return vt===null?Oe.memoizedState=vt=e:vt=vt.next=e,vt}function gt(){if(Je===null){var e=Oe.alternate;e=e!==null?e.memoizedState:null}else e=Je.next;var t=vt===null?Oe.memoizedState:vt.next;if(t!==null)vt=t,Je=e;else{if(e===null)throw Oe.alternate===null?Error(o(467)):Error(o(310));Je=e,e={memoizedState:Je.memoizedState,baseState:Je.baseState,baseQueue:Je.baseQueue,queue:Je.queue,next:null},vt===null?Oe.memoizedState=vt=e:vt=vt.next=e}return vt}function tr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Os(e){var t=Ts;return Ts+=1,Ci===null&&(Ci=[]),e=jm(Ci,e,t),t=Oe,(vt===null?t.memoizedState:vt.next)===null&&(t=t.alternate,_.H=t===null||t.memoizedState===null?gp:Eu),e}function nr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Os(e);if(e.$$typeof===D)return Nt(e)}throw Error(o(438,String(e)))}function mu(e){var t=null,a=Oe.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var i=Oe.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=tr(),Oe.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),i=0;i<e;i++)a[i]=de;return t.index++,a}function Wn(e,t){return typeof t=="function"?t(e):t}function ar(e){var t=gt();return pu(t,Je,e)}function pu(e,t,a){var i=e.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=a;var r=e.baseQueue,c=i.pending;if(c!==null){if(r!==null){var y=r.next;r.next=c.next,c.next=y}t.baseQueue=r=c,i.pending=null}if(c=e.baseState,r===null)e.memoizedState=c;else{t=r.next;var v=y=null,A=null,V=t,ae=!1;do{var oe=V.lane&-536870913;if(oe!==V.lane?(Ge&oe)===oe:(Jn&oe)===oe){var $=V.revertLane;if($===0)A!==null&&(A=A.next={lane:0,revertLane:0,gesture:null,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null}),oe===Si&&(ae=!0);else if((Jn&$)===$){V=V.next,$===Si&&(ae=!0);continue}else oe={lane:0,revertLane:V.revertLane,gesture:null,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},A===null?(v=A=oe,y=c):A=A.next=oe,Oe.lanes|=$,Da|=$;oe=V.action,Ml&&a(c,oe),c=V.hasEagerState?V.eagerState:a(c,oe)}else $={lane:oe,revertLane:V.revertLane,gesture:V.gesture,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},A===null?(v=A=$,y=c):A=A.next=$,Oe.lanes|=oe,Da|=oe;V=V.next}while(V!==null&&V!==t);if(A===null?y=c:A.next=v,!tn(c,e.memoizedState)&&(xt=!0,ae&&(a=ki,a!==null)))throw a;e.memoizedState=c,e.baseState=y,e.baseQueue=A,i.lastRenderedState=c}return r===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function yu(e){var t=gt(),a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=e;var i=a.dispatch,r=a.pending,c=t.memoizedState;if(r!==null){a.pending=null;var y=r=r.next;do c=e(c,y.action),y=y.next;while(y!==r);tn(c,t.memoizedState)||(xt=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),a.lastRenderedState=c}return[c,i]}function Lm(e,t,a){var i=Oe,r=gt(),c=Ie;if(c){if(a===void 0)throw Error(o(407));a=a()}else a=t();var y=!tn((Je||r).memoizedState,a);if(y&&(r.memoizedState=a,xt=!0),r=r.queue,vu(qm.bind(null,i,r,e),[e]),r.getSnapshot!==t||y||vt!==null&&vt.memoizedState.tag&1){if(i.flags|=2048,Ni(9,{destroy:void 0},Hm.bind(null,i,r,a,t),null),tt===null)throw Error(o(349));c||(Jn&127)!==0||Bm(i,t,a)}return a}function Bm(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Oe.updateQueue,t===null?(t=tr(),Oe.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Hm(e,t,a,i){t.value=a,t.getSnapshot=i,Gm(t)&&Qm(e)}function qm(e,t,a){return a(function(){Gm(t)&&Qm(e)})}function Gm(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!tn(e,a)}catch{return!0}}function Qm(e){var t=bl(e,2);t!==null&&Zt(t,e,2)}function gu(e){var t=Gt();if(typeof e=="function"){var a=e;if(e=a(),Ml){te(!0);try{a()}finally{te(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wn,lastRenderedState:e},t}function Im(e,t,a,i){return e.baseState=a,pu(e,Je,typeof i=="function"?i:Wn)}function a2(e,t,a,i,r){if(sr(e))throw Error(o(485));if(e=t.action,e!==null){var c={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(y){c.listeners.push(y)}};_.T!==null?a(!0):c.isTransition=!1,i(c),a=t.pending,a===null?(c.next=t.pending=c,Vm(t,c)):(c.next=a.next,t.pending=a.next=c)}}function Vm(e,t){var a=t.action,i=t.payload,r=e.state;if(t.isTransition){var c=_.T,y={};_.T=y;try{var v=a(r,i),A=_.S;A!==null&&A(y,v),Ym(e,t,v)}catch(V){bu(e,t,V)}finally{c!==null&&y.types!==null&&(c.types=y.types),_.T=c}}else try{c=a(r,i),Ym(e,t,c)}catch(V){bu(e,t,V)}}function Ym(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(i){$m(e,t,i)},function(i){return bu(e,t,i)}):$m(e,t,a)}function $m(e,t,a){t.status="fulfilled",t.value=a,Km(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Vm(e,a)))}function bu(e,t,a){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=a,Km(t),t=t.next;while(t!==i)}e.action=null}function Km(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Xm(e,t){return t}function Fm(e,t){if(Ie){var a=tt.formState;if(a!==null){e:{var i=Oe;if(Ie){if(at){t:{for(var r=at,c=xn;r.nodeType!==8;){if(!c){r=null;break t}if(r=_n(r.nextSibling),r===null){r=null;break t}}c=r.data,r=c==="F!"||c==="F"?r:null}if(r){at=_n(r.nextSibling),i=r.data==="F!";break e}}ja(i)}i=!1}i&&(t=a[0])}}return a=Gt(),a.memoizedState=a.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xm,lastRenderedState:t},a.queue=i,a=mp.bind(null,Oe,i),i.dispatch=a,i=gu(!1),c=ku.bind(null,Oe,!1,i.queue),i=Gt(),r={state:t,dispatch:null,action:e,pending:null},i.queue=r,a=a2.bind(null,Oe,r,c,a),r.dispatch=a,i.memoizedState=e,[t,a,!1]}function Zm(e){var t=gt();return Pm(t,Je,e)}function Pm(e,t,a){if(t=pu(e,t,Xm)[0],e=ar(Wn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=Os(t)}catch(y){throw y===Ei?Ko:y}else i=t;t=gt();var r=t.queue,c=r.dispatch;return a!==t.memoizedState&&(Oe.flags|=2048,Ni(9,{destroy:void 0},l2.bind(null,r,a),null)),[i,c,e]}function l2(e,t){e.action=t}function Jm(e){var t=gt(),a=Je;if(a!==null)return Pm(t,a,e);gt(),t=t.memoizedState,a=gt();var i=a.queue.dispatch;return a.memoizedState=e,[t,i,!1]}function Ni(e,t,a,i){return e={tag:e,create:a,deps:i,inst:t,next:null},t=Oe.updateQueue,t===null&&(t=tr(),Oe.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(i=a.next,a.next=e,e.next=i,t.lastEffect=e),e}function Wm(){return gt().memoizedState}function lr(e,t,a,i){var r=Gt();Oe.flags|=e,r.memoizedState=Ni(1|t,{destroy:void 0},a,i===void 0?null:i)}function ir(e,t,a,i){var r=gt();i=i===void 0?null:i;var c=r.memoizedState.inst;Je!==null&&i!==null&&cu(i,Je.memoizedState.deps)?r.memoizedState=Ni(t,c,a,i):(Oe.flags|=e,r.memoizedState=Ni(1|t,c,a,i))}function ep(e,t){lr(8390656,8,e,t)}function vu(e,t){ir(2048,8,e,t)}function i2(e){Oe.flags|=4;var t=Oe.updateQueue;if(t===null)t=tr(),Oe.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function tp(e){var t=gt().memoizedState;return i2({ref:t,nextImpl:e}),function(){if((Xe&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function np(e,t){return ir(4,2,e,t)}function ap(e,t){return ir(4,4,e,t)}function lp(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ip(e,t,a){a=a!=null?a.concat([e]):null,ir(4,4,lp.bind(null,t,e),a)}function xu(){}function sp(e,t){var a=gt();t=t===void 0?null:t;var i=a.memoizedState;return t!==null&&cu(t,i[1])?i[0]:(a.memoizedState=[e,t],e)}function op(e,t){var a=gt();t=t===void 0?null:t;var i=a.memoizedState;if(t!==null&&cu(t,i[1]))return i[0];if(i=e(),Ml){te(!0);try{e()}finally{te(!1)}}return a.memoizedState=[i,t],i}function wu(e,t,a){return a===void 0||(Jn&1073741824)!==0&&(Ge&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=ry(),Oe.lanes|=e,Da|=e,a)}function rp(e,t,a,i){return tn(a,t)?a:Mi.current!==null?(e=wu(e,a,i),tn(e,t)||(xt=!0),e):(Jn&42)===0||(Jn&1073741824)!==0&&(Ge&261930)===0?(xt=!0,e.memoizedState=a):(e=ry(),Oe.lanes|=e,Da|=e,t)}function cp(e,t,a,i,r){var c=Y.p;Y.p=c!==0&&8>c?c:8;var y=_.T,v={};_.T=v,ku(e,!1,t,a);try{var A=r(),V=_.S;if(V!==null&&V(v,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var ae=e2(A,i);Rs(e,t,ae,rn(e))}else Rs(e,t,i,rn(e))}catch(oe){Rs(e,t,{then:function(){},status:"rejected",reason:oe},rn())}finally{Y.p=c,y!==null&&v.types!==null&&(y.types=v.types),_.T=y}}function s2(){}function _u(e,t,a,i){if(e.tag!==5)throw Error(o(476));var r=up(e).queue;cp(e,r,t,q,a===null?s2:function(){return dp(e),a(i)})}function up(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:q,baseState:q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wn,lastRenderedState:q},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function dp(e){var t=up(e);t.next===null&&(t=e.alternate.memoizedState),Rs(e,t.next.queue,{},rn())}function Su(){return Nt(Zs)}function fp(){return gt().memoizedState}function hp(){return gt().memoizedState}function o2(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=rn();e=Ca(a);var i=Na(t,e,a);i!==null&&(Zt(i,t,a),As(i,t,a)),t={cache:Jc()},e.payload=t;return}t=t.return}}function r2(e,t,a){var i=rn();a={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},sr(e)?pp(t,a):(a=Gc(e,t,a,i),a!==null&&(Zt(a,e,i),yp(a,t,i)))}function mp(e,t,a){var i=rn();Rs(e,t,a,i)}function Rs(e,t,a,i){var r={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(sr(e))pp(t,r);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var y=t.lastRenderedState,v=c(y,a);if(r.hasEagerState=!0,r.eagerState=v,tn(v,y))return qo(e,t,r,0),tt===null&&Ho(),!1}catch{}finally{}if(a=Gc(e,t,r,i),a!==null)return Zt(a,e,i),yp(a,t,i),!0}return!1}function ku(e,t,a,i){if(i={lane:2,revertLane:nd(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},sr(e)){if(t)throw Error(o(479))}else t=Gc(e,a,i,2),t!==null&&Zt(t,e,2)}function sr(e){var t=e.alternate;return e===Oe||t!==null&&t===Oe}function pp(e,t){Ai=Wo=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function yp(e,t,a){if((a&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,wh(e,a)}}var zs={readContext:Nt,use:nr,useCallback:ut,useContext:ut,useEffect:ut,useImperativeHandle:ut,useLayoutEffect:ut,useInsertionEffect:ut,useMemo:ut,useReducer:ut,useRef:ut,useState:ut,useDebugValue:ut,useDeferredValue:ut,useTransition:ut,useSyncExternalStore:ut,useId:ut,useHostTransitionStatus:ut,useFormState:ut,useActionState:ut,useOptimistic:ut,useMemoCache:ut,useCacheRefresh:ut};zs.useEffectEvent=ut;var gp={readContext:Nt,use:nr,useCallback:function(e,t){return Gt().memoizedState=[e,t===void 0?null:t],e},useContext:Nt,useEffect:ep,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,lr(4194308,4,lp.bind(null,t,e),a)},useLayoutEffect:function(e,t){return lr(4194308,4,e,t)},useInsertionEffect:function(e,t){lr(4,2,e,t)},useMemo:function(e,t){var a=Gt();t=t===void 0?null:t;var i=e();if(Ml){te(!0);try{e()}finally{te(!1)}}return a.memoizedState=[i,t],i},useReducer:function(e,t,a){var i=Gt();if(a!==void 0){var r=a(t);if(Ml){te(!0);try{a(t)}finally{te(!1)}}}else r=t;return i.memoizedState=i.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},i.queue=e,e=e.dispatch=r2.bind(null,Oe,e),[i.memoizedState,e]},useRef:function(e){var t=Gt();return e={current:e},t.memoizedState=e},useState:function(e){e=gu(e);var t=e.queue,a=mp.bind(null,Oe,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:xu,useDeferredValue:function(e,t){var a=Gt();return wu(a,e,t)},useTransition:function(){var e=gu(!1);return e=cp.bind(null,Oe,e.queue,!0,!1),Gt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var i=Oe,r=Gt();if(Ie){if(a===void 0)throw Error(o(407));a=a()}else{if(a=t(),tt===null)throw Error(o(349));(Ge&127)!==0||Bm(i,t,a)}r.memoizedState=a;var c={value:a,getSnapshot:t};return r.queue=c,ep(qm.bind(null,i,c,e),[e]),i.flags|=2048,Ni(9,{destroy:void 0},Hm.bind(null,i,c,a,t),null),a},useId:function(){var e=Gt(),t=tt.identifierPrefix;if(Ie){var a=Rn,i=On;a=(i&~(1<<32-he(i)-1)).toString(32)+a,t="_"+t+"R_"+a,a=er++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=t2++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Su,useFormState:Fm,useActionState:Fm,useOptimistic:function(e){var t=Gt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=ku.bind(null,Oe,!0,a),a.dispatch=t,[e,t]},useMemoCache:mu,useCacheRefresh:function(){return Gt().memoizedState=o2.bind(null,Oe)},useEffectEvent:function(e){var t=Gt(),a={impl:e};return t.memoizedState=a,function(){if((Xe&2)!==0)throw Error(o(440));return a.impl.apply(void 0,arguments)}}},Eu={readContext:Nt,use:nr,useCallback:sp,useContext:Nt,useEffect:vu,useImperativeHandle:ip,useInsertionEffect:np,useLayoutEffect:ap,useMemo:op,useReducer:ar,useRef:Wm,useState:function(){return ar(Wn)},useDebugValue:xu,useDeferredValue:function(e,t){var a=gt();return rp(a,Je.memoizedState,e,t)},useTransition:function(){var e=ar(Wn)[0],t=gt().memoizedState;return[typeof e=="boolean"?e:Os(e),t]},useSyncExternalStore:Lm,useId:fp,useHostTransitionStatus:Su,useFormState:Zm,useActionState:Zm,useOptimistic:function(e,t){var a=gt();return Im(a,Je,e,t)},useMemoCache:mu,useCacheRefresh:hp};Eu.useEffectEvent=tp;var bp={readContext:Nt,use:nr,useCallback:sp,useContext:Nt,useEffect:vu,useImperativeHandle:ip,useInsertionEffect:np,useLayoutEffect:ap,useMemo:op,useReducer:yu,useRef:Wm,useState:function(){return yu(Wn)},useDebugValue:xu,useDeferredValue:function(e,t){var a=gt();return Je===null?wu(a,e,t):rp(a,Je.memoizedState,e,t)},useTransition:function(){var e=yu(Wn)[0],t=gt().memoizedState;return[typeof e=="boolean"?e:Os(e),t]},useSyncExternalStore:Lm,useId:fp,useHostTransitionStatus:Su,useFormState:Jm,useActionState:Jm,useOptimistic:function(e,t){var a=gt();return Je!==null?Im(a,Je,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:mu,useCacheRefresh:hp};bp.useEffectEvent=tp;function ju(e,t,a,i){t=e.memoizedState,a=a(i,t),a=a==null?t:b({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Mu={enqueueSetState:function(e,t,a){e=e._reactInternals;var i=rn(),r=Ca(i);r.payload=t,a!=null&&(r.callback=a),t=Na(e,r,i),t!==null&&(Zt(t,e,i),As(t,e,i))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var i=rn(),r=Ca(i);r.tag=1,r.payload=t,a!=null&&(r.callback=a),t=Na(e,r,i),t!==null&&(Zt(t,e,i),As(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=rn(),i=Ca(a);i.tag=2,t!=null&&(i.callback=t),t=Na(e,i,a),t!==null&&(Zt(t,e,a),As(t,e,a))}};function vp(e,t,a,i,r,c,y){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,c,y):t.prototype&&t.prototype.isPureReactComponent?!xs(a,i)||!xs(r,c):!0}function xp(e,t,a,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,i),t.state!==e&&Mu.enqueueReplaceState(t,t.state,null)}function Al(e,t){var a=t;if("ref"in t){a={};for(var i in t)i!=="ref"&&(a[i]=t[i])}if(e=e.defaultProps){a===t&&(a=b({},a));for(var r in e)a[r]===void 0&&(a[r]=e[r])}return a}function wp(e){Bo(e)}function _p(e){console.error(e)}function Sp(e){Bo(e)}function or(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function kp(e,t,a){try{var i=e.onCaughtError;i(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function Au(e,t,a){return a=Ca(a),a.tag=3,a.payload={element:null},a.callback=function(){or(e,t)},a}function Ep(e){return e=Ca(e),e.tag=3,e}function jp(e,t,a,i){var r=a.type.getDerivedStateFromError;if(typeof r=="function"){var c=i.value;e.payload=function(){return r(c)},e.callback=function(){kp(t,a,i)}}var y=a.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(e.callback=function(){kp(t,a,i),typeof r!="function"&&(Ua===null?Ua=new Set([this]):Ua.add(this));var v=i.stack;this.componentDidCatch(i.value,{componentStack:v!==null?v:""})})}function c2(e,t,a,i,r){if(a.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=a.alternate,t!==null&&_i(t,a,r,!0),a=an.current,a!==null){switch(a.tag){case 31:case 13:return wn===null?vr():a.alternate===null&&dt===0&&(dt=3),a.flags&=-257,a.flags|=65536,a.lanes=r,i===Xo?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([i]):t.add(i),Wu(e,i,r)),!1;case 22:return a.flags|=65536,i===Xo?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([i]):a.add(i)),Wu(e,i,r)),!1}throw Error(o(435,a.tag))}return Wu(e,i,r),vr(),!1}if(Ie)return t=an.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,i!==Kc&&(e=Error(o(422),{cause:i}),Ss(gn(e,a)))):(i!==Kc&&(t=Error(o(423),{cause:i}),Ss(gn(t,a))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,i=gn(i,a),r=Au(e.stateNode,i,r),lu(e,r),dt!==4&&(dt=2)),!1;var c=Error(o(520),{cause:i});if(c=gn(c,a),Qs===null?Qs=[c]:Qs.push(c),dt!==4&&(dt=2),t===null)return!0;i=gn(i,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=r&-r,a.lanes|=e,e=Au(a.stateNode,i,e),lu(a,e),!1;case 1:if(t=a.type,c=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Ua===null||!Ua.has(c))))return a.flags|=65536,r&=-r,a.lanes|=r,r=Ep(r),jp(r,e,a,i),lu(a,r),!1}a=a.return}while(a!==null);return!1}var Cu=Error(o(461)),xt=!1;function Tt(e,t,a,i){t.child=e===null?Nm(t,null,a,i):jl(t,e.child,a,i)}function Mp(e,t,a,i,r){a=a.render;var c=t.ref;if("ref"in i){var y={};for(var v in i)v!=="ref"&&(y[v]=i[v])}else y=i;return _l(t),i=uu(e,t,a,y,c,r),v=du(),e!==null&&!xt?(fu(e,t,r),ea(e,t,r)):(Ie&&v&&Yc(t),t.flags|=1,Tt(e,t,i,r),t.child)}function Ap(e,t,a,i,r){if(e===null){var c=a.type;return typeof c=="function"&&!Qc(c)&&c.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=c,Cp(e,t,c,i,r)):(e=Qo(a.type,null,i,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Lu(e,r)){var y=c.memoizedProps;if(a=a.compare,a=a!==null?a:xs,a(y,i)&&e.ref===t.ref)return ea(e,t,r)}return t.flags|=1,e=Xn(c,i),e.ref=t.ref,e.return=t,t.child=e}function Cp(e,t,a,i,r){if(e!==null){var c=e.memoizedProps;if(xs(c,i)&&e.ref===t.ref)if(xt=!1,t.pendingProps=i=c,Lu(e,r))(e.flags&131072)!==0&&(xt=!0);else return t.lanes=e.lanes,ea(e,t,r)}return Nu(e,t,a,i,r)}function Np(e,t,a,i){var r=i.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|a:a,e!==null){for(i=t.child=e.child,r=0;i!==null;)r=r|i.lanes|i.childLanes,i=i.sibling;i=r&~c}else i=0,t.child=null;return Tp(e,t,c,a,i)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&$o(t,c!==null?c.cachePool:null),c!==null?Rm(t,c):su(),zm(t);else return i=t.lanes=536870912,Tp(e,t,c!==null?c.baseLanes|a:a,a,i)}else c!==null?($o(t,c.cachePool),Rm(t,c),Oa(),t.memoizedState=null):(e!==null&&$o(t,null),su(),Oa());return Tt(e,t,r,a),t.child}function Ds(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Tp(e,t,a,i,r){var c=eu();return c=c===null?null:{parent:bt._currentValue,pool:c},t.memoizedState={baseLanes:a,cachePool:c},e!==null&&$o(t,null),su(),zm(t),e!==null&&_i(e,t,i,!0),t.childLanes=r,null}function rr(e,t){return t=ur({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Op(e,t,a){return jl(t,e.child,null,a),e=rr(t,t.pendingProps),e.flags|=2,ln(t),t.memoizedState=null,e}function u2(e,t,a){var i=t.pendingProps,r=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ie){if(i.mode==="hidden")return e=rr(t,i),t.lanes=536870912,Ds(null,e);if(ru(t),(e=at)?(e=Vy(e,xn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ka!==null?{id:On,overflow:Rn}:null,retryLane:536870912,hydrationErrors:null},a=pm(e),a.return=t,t.child=a,Ct=t,at=null)):e=null,e===null)throw ja(t);return t.lanes=536870912,null}return rr(t,i)}var c=e.memoizedState;if(c!==null){var y=c.dehydrated;if(ru(t),r)if(t.flags&256)t.flags&=-257,t=Op(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(xt||_i(e,t,a,!1),r=(a&e.childLanes)!==0,xt||r){if(i=tt,i!==null&&(y=_h(i,a),y!==0&&y!==c.retryLane))throw c.retryLane=y,bl(e,y),Zt(i,e,y),Cu;vr(),t=Op(e,t,a)}else e=c.treeContext,at=_n(y.nextSibling),Ct=t,Ie=!0,Ea=null,xn=!1,e!==null&&bm(t,e),t=rr(t,i),t.flags|=4096;return t}return e=Xn(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function cr(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(o(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Nu(e,t,a,i,r){return _l(t),a=uu(e,t,a,i,void 0,r),i=du(),e!==null&&!xt?(fu(e,t,r),ea(e,t,r)):(Ie&&i&&Yc(t),t.flags|=1,Tt(e,t,a,r),t.child)}function Rp(e,t,a,i,r,c){return _l(t),t.updateQueue=null,a=Um(t,i,a,r),Dm(e),i=du(),e!==null&&!xt?(fu(e,t,c),ea(e,t,c)):(Ie&&i&&Yc(t),t.flags|=1,Tt(e,t,a,c),t.child)}function zp(e,t,a,i,r){if(_l(t),t.stateNode===null){var c=bi,y=a.contextType;typeof y=="object"&&y!==null&&(c=Nt(y)),c=new a(i,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Mu,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=i,c.state=t.memoizedState,c.refs={},nu(t),y=a.contextType,c.context=typeof y=="object"&&y!==null?Nt(y):bi,c.state=t.memoizedState,y=a.getDerivedStateFromProps,typeof y=="function"&&(ju(t,a,y,i),c.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(y=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),y!==c.state&&Mu.enqueueReplaceState(c,c.state,null),Ns(t,i,c,r),Cs(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){c=t.stateNode;var v=t.memoizedProps,A=Al(a,v);c.props=A;var V=c.context,ae=a.contextType;y=bi,typeof ae=="object"&&ae!==null&&(y=Nt(ae));var oe=a.getDerivedStateFromProps;ae=typeof oe=="function"||typeof c.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,ae||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(v||V!==y)&&xp(t,c,i,y),Aa=!1;var $=t.memoizedState;c.state=$,Ns(t,i,c,r),Cs(),V=t.memoizedState,v||$!==V||Aa?(typeof oe=="function"&&(ju(t,a,oe,i),V=t.memoizedState),(A=Aa||vp(t,a,A,i,$,V,y))?(ae||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=V),c.props=i,c.state=V,c.context=y,i=A):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{c=t.stateNode,au(e,t),y=t.memoizedProps,ae=Al(a,y),c.props=ae,oe=t.pendingProps,$=c.context,V=a.contextType,A=bi,typeof V=="object"&&V!==null&&(A=Nt(V)),v=a.getDerivedStateFromProps,(V=typeof v=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(y!==oe||$!==A)&&xp(t,c,i,A),Aa=!1,$=t.memoizedState,c.state=$,Ns(t,i,c,r),Cs();var J=t.memoizedState;y!==oe||$!==J||Aa||e!==null&&e.dependencies!==null&&Vo(e.dependencies)?(typeof v=="function"&&(ju(t,a,v,i),J=t.memoizedState),(ae=Aa||vp(t,a,ae,i,$,J,A)||e!==null&&e.dependencies!==null&&Vo(e.dependencies))?(V||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(i,J,A),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(i,J,A)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||y===e.memoizedProps&&$===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&$===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=J),c.props=i,c.state=J,c.context=A,i=ae):(typeof c.componentDidUpdate!="function"||y===e.memoizedProps&&$===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&$===e.memoizedState||(t.flags|=1024),i=!1)}return c=i,cr(e,t),i=(t.flags&128)!==0,c||i?(c=t.stateNode,a=i&&typeof a.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&i?(t.child=jl(t,e.child,null,r),t.child=jl(t,null,a,r)):Tt(e,t,a,r),t.memoizedState=c.state,e=t.child):e=ea(e,t,r),e}function Dp(e,t,a,i){return xl(),t.flags|=256,Tt(e,t,a,i),t.child}var Tu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ou(e){return{baseLanes:e,cachePool:km()}}function Ru(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=on),e}function Up(e,t,a){var i=t.pendingProps,r=!1,c=(t.flags&128)!==0,y;if((y=c)||(y=e!==null&&e.memoizedState===null?!1:(yt.current&2)!==0),y&&(r=!0,t.flags&=-129),y=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ie){if(r?Ta(t):Oa(),(e=at)?(e=Vy(e,xn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ka!==null?{id:On,overflow:Rn}:null,retryLane:536870912,hydrationErrors:null},a=pm(e),a.return=t,t.child=a,Ct=t,at=null)):e=null,e===null)throw ja(t);return pd(e)?t.lanes=32:t.lanes=536870912,null}var v=i.children;return i=i.fallback,r?(Oa(),r=t.mode,v=ur({mode:"hidden",children:v},r),i=vl(i,r,a,null),v.return=t,i.return=t,v.sibling=i,t.child=v,i=t.child,i.memoizedState=Ou(a),i.childLanes=Ru(e,y,a),t.memoizedState=Tu,Ds(null,i)):(Ta(t),zu(t,v))}var A=e.memoizedState;if(A!==null&&(v=A.dehydrated,v!==null)){if(c)t.flags&256?(Ta(t),t.flags&=-257,t=Du(e,t,a)):t.memoizedState!==null?(Oa(),t.child=e.child,t.flags|=128,t=null):(Oa(),v=i.fallback,r=t.mode,i=ur({mode:"visible",children:i.children},r),v=vl(v,r,a,null),v.flags|=2,i.return=t,v.return=t,i.sibling=v,t.child=i,jl(t,e.child,null,a),i=t.child,i.memoizedState=Ou(a),i.childLanes=Ru(e,y,a),t.memoizedState=Tu,t=Ds(null,i));else if(Ta(t),pd(v)){if(y=v.nextSibling&&v.nextSibling.dataset,y)var V=y.dgst;y=V,i=Error(o(419)),i.stack="",i.digest=y,Ss({value:i,source:null,stack:null}),t=Du(e,t,a)}else if(xt||_i(e,t,a,!1),y=(a&e.childLanes)!==0,xt||y){if(y=tt,y!==null&&(i=_h(y,a),i!==0&&i!==A.retryLane))throw A.retryLane=i,bl(e,i),Zt(y,e,i),Cu;md(v)||vr(),t=Du(e,t,a)}else md(v)?(t.flags|=192,t.child=e.child,t=null):(e=A.treeContext,at=_n(v.nextSibling),Ct=t,Ie=!0,Ea=null,xn=!1,e!==null&&bm(t,e),t=zu(t,i.children),t.flags|=4096);return t}return r?(Oa(),v=i.fallback,r=t.mode,A=e.child,V=A.sibling,i=Xn(A,{mode:"hidden",children:i.children}),i.subtreeFlags=A.subtreeFlags&65011712,V!==null?v=Xn(V,v):(v=vl(v,r,a,null),v.flags|=2),v.return=t,i.return=t,i.sibling=v,t.child=i,Ds(null,i),i=t.child,v=e.child.memoizedState,v===null?v=Ou(a):(r=v.cachePool,r!==null?(A=bt._currentValue,r=r.parent!==A?{parent:A,pool:A}:r):r=km(),v={baseLanes:v.baseLanes|a,cachePool:r}),i.memoizedState=v,i.childLanes=Ru(e,y,a),t.memoizedState=Tu,Ds(e.child,i)):(Ta(t),a=e.child,e=a.sibling,a=Xn(a,{mode:"visible",children:i.children}),a.return=t,a.sibling=null,e!==null&&(y=t.deletions,y===null?(t.deletions=[e],t.flags|=16):y.push(e)),t.child=a,t.memoizedState=null,a)}function zu(e,t){return t=ur({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ur(e,t){return e=nn(22,e,null,t),e.lanes=0,e}function Du(e,t,a){return jl(t,e.child,null,a),e=zu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Lp(e,t,a){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Zc(e.return,t,a)}function Uu(e,t,a,i,r,c){var y=e.memoizedState;y===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:a,tailMode:r,treeForkCount:c}:(y.isBackwards=t,y.rendering=null,y.renderingStartTime=0,y.last=i,y.tail=a,y.tailMode=r,y.treeForkCount=c)}function Bp(e,t,a){var i=t.pendingProps,r=i.revealOrder,c=i.tail;i=i.children;var y=yt.current,v=(y&2)!==0;if(v?(y=y&1|2,t.flags|=128):y&=1,Z(yt,y),Tt(e,t,i,a),i=Ie?_s:0,!v&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Lp(e,a,t);else if(e.tag===19)Lp(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(r){case"forwards":for(a=t.child,r=null;a!==null;)e=a.alternate,e!==null&&Jo(e)===null&&(r=a),a=a.sibling;a=r,a===null?(r=t.child,t.child=null):(r=a.sibling,a.sibling=null),Uu(t,!1,r,a,c,i);break;case"backwards":case"unstable_legacy-backwards":for(a=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&Jo(e)===null){t.child=r;break}e=r.sibling,r.sibling=a,a=r,r=e}Uu(t,!0,a,null,c,i);break;case"together":Uu(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function ea(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Da|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(_i(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,a=Xn(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Xn(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Lu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Vo(e)))}function d2(e,t,a){switch(t.tag){case 3:pe(t,t.stateNode.containerInfo),Ma(t,bt,e.memoizedState.cache),xl();break;case 27:case 5:Ee(t);break;case 4:pe(t,t.stateNode.containerInfo);break;case 10:Ma(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ru(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(Ta(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Up(e,t,a):(Ta(t),e=ea(e,t,a),e!==null?e.sibling:null);Ta(t);break;case 19:var r=(e.flags&128)!==0;if(i=(a&t.childLanes)!==0,i||(_i(e,t,a,!1),i=(a&t.childLanes)!==0),r){if(i)return Bp(e,t,a);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),Z(yt,yt.current),i)break;return null;case 22:return t.lanes=0,Np(e,t,a,t.pendingProps);case 24:Ma(t,bt,e.memoizedState.cache)}return ea(e,t,a)}function Hp(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)xt=!0;else{if(!Lu(e,a)&&(t.flags&128)===0)return xt=!1,d2(e,t,a);xt=(e.flags&131072)!==0}else xt=!1,Ie&&(t.flags&1048576)!==0&&gm(t,_s,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=kl(t.elementType),t.type=e,typeof e=="function")Qc(e)?(i=Al(e,i),t.tag=1,t=zp(null,t,e,i,a)):(t.tag=0,t=Nu(null,t,e,i,a));else{if(e!=null){var r=e.$$typeof;if(r===I){t.tag=11,t=Mp(null,t,e,i,a);break e}else if(r===ee){t.tag=14,t=Ap(null,t,e,i,a);break e}}throw t=H(e)||e,Error(o(306,t,""))}}return t;case 0:return Nu(e,t,t.type,t.pendingProps,a);case 1:return i=t.type,r=Al(i,t.pendingProps),zp(e,t,i,r,a);case 3:e:{if(pe(t,t.stateNode.containerInfo),e===null)throw Error(o(387));i=t.pendingProps;var c=t.memoizedState;r=c.element,au(e,t),Ns(t,i,null,a);var y=t.memoizedState;if(i=y.cache,Ma(t,bt,i),i!==c.cache&&Pc(t,[bt],a,!0),Cs(),i=y.element,c.isDehydrated)if(c={element:i,isDehydrated:!1,cache:y.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=Dp(e,t,i,a);break e}else if(i!==r){r=gn(Error(o(424)),t),Ss(r),t=Dp(e,t,i,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(at=_n(e.firstChild),Ct=t,Ie=!0,Ea=null,xn=!0,a=Nm(t,null,i,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(xl(),i===r){t=ea(e,t,a);break e}Tt(e,t,i,a)}t=t.child}return t;case 26:return cr(e,t),e===null?(a=Zy(t.type,null,t.pendingProps,null))?t.memoizedState=a:Ie||(a=t.type,e=t.pendingProps,i=jr(X.current).createElement(a),i[At]=t,i[Vt]=e,Ot(i,a,e),Et(i),t.stateNode=i):t.memoizedState=Zy(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ee(t),e===null&&Ie&&(i=t.stateNode=Ky(t.type,t.pendingProps,X.current),Ct=t,xn=!0,r=at,qa(t.type)?(yd=r,at=_n(i.firstChild)):at=r),Tt(e,t,t.pendingProps.children,a),cr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ie&&((r=i=at)&&(i=G2(i,t.type,t.pendingProps,xn),i!==null?(t.stateNode=i,Ct=t,at=_n(i.firstChild),xn=!1,r=!0):r=!1),r||ja(t)),Ee(t),r=t.type,c=t.pendingProps,y=e!==null?e.memoizedProps:null,i=c.children,dd(r,c)?i=null:y!==null&&dd(r,y)&&(t.flags|=32),t.memoizedState!==null&&(r=uu(e,t,n2,null,null,a),Zs._currentValue=r),cr(e,t),Tt(e,t,i,a),t.child;case 6:return e===null&&Ie&&((e=a=at)&&(a=Q2(a,t.pendingProps,xn),a!==null?(t.stateNode=a,Ct=t,at=null,e=!0):e=!1),e||ja(t)),null;case 13:return Up(e,t,a);case 4:return pe(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=jl(t,null,i,a):Tt(e,t,i,a),t.child;case 11:return Mp(e,t,t.type,t.pendingProps,a);case 7:return Tt(e,t,t.pendingProps,a),t.child;case 8:return Tt(e,t,t.pendingProps.children,a),t.child;case 12:return Tt(e,t,t.pendingProps.children,a),t.child;case 10:return i=t.pendingProps,Ma(t,t.type,i.value),Tt(e,t,i.children,a),t.child;case 9:return r=t.type._context,i=t.pendingProps.children,_l(t),r=Nt(r),i=i(r),t.flags|=1,Tt(e,t,i,a),t.child;case 14:return Ap(e,t,t.type,t.pendingProps,a);case 15:return Cp(e,t,t.type,t.pendingProps,a);case 19:return Bp(e,t,a);case 31:return u2(e,t,a);case 22:return Np(e,t,a,t.pendingProps);case 24:return _l(t),i=Nt(bt),e===null?(r=eu(),r===null&&(r=tt,c=Jc(),r.pooledCache=c,c.refCount++,c!==null&&(r.pooledCacheLanes|=a),r=c),t.memoizedState={parent:i,cache:r},nu(t),Ma(t,bt,r)):((e.lanes&a)!==0&&(au(e,t),Ns(t,null,null,a),Cs()),r=e.memoizedState,c=t.memoizedState,r.parent!==i?(r={parent:i,cache:i},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),Ma(t,bt,i)):(i=c.cache,Ma(t,bt,i),i!==r.cache&&Pc(t,[bt],a,!0))),Tt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function ta(e){e.flags|=4}function Bu(e,t,a,i,r){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if(fy())e.flags|=8192;else throw El=Xo,tu}else e.flags&=-16777217}function qp(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!tg(t))if(fy())e.flags|=8192;else throw El=Xo,tu}function dr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?En():536870912,e.lanes|=t,zi|=t)}function Us(e,t){if(!Ie)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var i=null;a!==null;)a.alternate!==null&&(i=a),a=a.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function lt(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,i=0;if(t)for(var r=e.child;r!==null;)a|=r.lanes|r.childLanes,i|=r.subtreeFlags&65011712,i|=r.flags&65011712,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)a|=r.lanes|r.childLanes,i|=r.subtreeFlags,i|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=i,e.childLanes=a,t}function f2(e,t,a){var i=t.pendingProps;switch($c(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return lt(t),null;case 1:return lt(t),null;case 3:return a=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),Pn(bt),ge(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(wi(t)?ta(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Xc())),lt(t),null;case 26:var r=t.type,c=t.memoizedState;return e===null?(ta(t),c!==null?(lt(t),qp(t,c)):(lt(t),Bu(t,r,null,i,a))):c?c!==e.memoizedState?(ta(t),lt(t),qp(t,c)):(lt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&ta(t),lt(t),Bu(t,r,e,i,a)),null;case 27:if(Re(t),a=X.current,r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&ta(t);else{if(!i){if(t.stateNode===null)throw Error(o(166));return lt(t),null}e=N.current,wi(t)?vm(t):(e=Ky(r,i,a),t.stateNode=e,ta(t))}return lt(t),null;case 5:if(Re(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&ta(t);else{if(!i){if(t.stateNode===null)throw Error(o(166));return lt(t),null}if(c=N.current,wi(t))vm(t);else{var y=jr(X.current);switch(c){case 1:c=y.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:c=y.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":c=y.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":c=y.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":c=y.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof i.is=="string"?y.createElement("select",{is:i.is}):y.createElement("select"),i.multiple?c.multiple=!0:i.size&&(c.size=i.size);break;default:c=typeof i.is=="string"?y.createElement(r,{is:i.is}):y.createElement(r)}}c[At]=t,c[Vt]=i;e:for(y=t.child;y!==null;){if(y.tag===5||y.tag===6)c.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===t)break e;for(;y.sibling===null;){if(y.return===null||y.return===t)break e;y=y.return}y.sibling.return=y.return,y=y.sibling}t.stateNode=c;e:switch(Ot(c,r,i),r){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&ta(t)}}return lt(t),Bu(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&ta(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(o(166));if(e=X.current,wi(t)){if(e=t.stateNode,a=t.memoizedProps,i=null,r=Ct,r!==null)switch(r.tag){case 27:case 5:i=r.memoizedProps}e[At]=t,e=!!(e.nodeValue===a||i!==null&&i.suppressHydrationWarning===!0||Uy(e.nodeValue,a)),e||ja(t,!0)}else e=jr(e).createTextNode(i),e[At]=t,t.stateNode=e}return lt(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(i=wi(t),a!==null){if(e===null){if(!i)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[At]=t}else xl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;lt(t),e=!1}else a=Xc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(ln(t),t):(ln(t),null);if((t.flags&128)!==0)throw Error(o(558))}return lt(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=wi(t),i!==null&&i.dehydrated!==null){if(e===null){if(!r)throw Error(o(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(o(317));r[At]=t}else xl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;lt(t),r=!1}else r=Xc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(ln(t),t):(ln(t),null)}return ln(t),(t.flags&128)!==0?(t.lanes=a,t):(a=i!==null,e=e!==null&&e.memoizedState!==null,a&&(i=t.child,r=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(r=i.alternate.memoizedState.cachePool.pool),c=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),c!==r&&(i.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),dr(t,t.updateQueue),lt(t),null);case 4:return ge(),e===null&&sd(t.stateNode.containerInfo),lt(t),null;case 10:return Pn(t.type),lt(t),null;case 19:if(G(yt),i=t.memoizedState,i===null)return lt(t),null;if(r=(t.flags&128)!==0,c=i.rendering,c===null)if(r)Us(i,!1);else{if(dt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Jo(e),c!==null){for(t.flags|=128,Us(i,!1),e=c.updateQueue,t.updateQueue=e,dr(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)mm(a,e),a=a.sibling;return Z(yt,yt.current&1|2),Ie&&Fn(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&ot()>yr&&(t.flags|=128,r=!0,Us(i,!1),t.lanes=4194304)}else{if(!r)if(e=Jo(c),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,dr(t,e),Us(i,!0),i.tail===null&&i.tailMode==="hidden"&&!c.alternate&&!Ie)return lt(t),null}else 2*ot()-i.renderingStartTime>yr&&a!==536870912&&(t.flags|=128,r=!0,Us(i,!1),t.lanes=4194304);i.isBackwards?(c.sibling=t.child,t.child=c):(e=i.last,e!==null?e.sibling=c:t.child=c,i.last=c)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=ot(),e.sibling=null,a=yt.current,Z(yt,r?a&1|2:a&1),Ie&&Fn(t,i.treeForkCount),e):(lt(t),null);case 22:case 23:return ln(t),ou(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(a&536870912)!==0&&(t.flags&128)===0&&(lt(t),t.subtreeFlags&6&&(t.flags|=8192)):lt(t),a=t.updateQueue,a!==null&&dr(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==a&&(t.flags|=2048),e!==null&&G(Sl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Pn(bt),lt(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function h2(e,t){switch($c(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Pn(bt),ge(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Re(t),null;case 31:if(t.memoizedState!==null){if(ln(t),t.alternate===null)throw Error(o(340));xl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(ln(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));xl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(yt),null;case 4:return ge(),null;case 10:return Pn(t.type),null;case 22:case 23:return ln(t),ou(),e!==null&&G(Sl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Pn(bt),null;case 25:return null;default:return null}}function Gp(e,t){switch($c(t),t.tag){case 3:Pn(bt),ge();break;case 26:case 27:case 5:Re(t);break;case 4:ge();break;case 31:t.memoizedState!==null&&ln(t);break;case 13:ln(t);break;case 19:G(yt);break;case 10:Pn(t.type);break;case 22:case 23:ln(t),ou(),e!==null&&G(Sl);break;case 24:Pn(bt)}}function Ls(e,t){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var r=i.next;a=r;do{if((a.tag&e)===e){i=void 0;var c=a.create,y=a.inst;i=c(),y.destroy=i}a=a.next}while(a!==r)}}catch(v){Pe(t,t.return,v)}}function Ra(e,t,a){try{var i=t.updateQueue,r=i!==null?i.lastEffect:null;if(r!==null){var c=r.next;i=c;do{if((i.tag&e)===e){var y=i.inst,v=y.destroy;if(v!==void 0){y.destroy=void 0,r=t;var A=a,V=v;try{V()}catch(ae){Pe(r,A,ae)}}}i=i.next}while(i!==c)}}catch(ae){Pe(t,t.return,ae)}}function Qp(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Om(t,a)}catch(i){Pe(e,e.return,i)}}}function Ip(e,t,a){a.props=Al(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(i){Pe(e,t,i)}}function Bs(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof a=="function"?e.refCleanup=a(i):a.current=i}}catch(r){Pe(e,t,r)}}function zn(e,t){var a=e.ref,i=e.refCleanup;if(a!==null)if(typeof i=="function")try{i()}catch(r){Pe(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(r){Pe(e,t,r)}else a.current=null}function Vp(e){var t=e.type,a=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&i.focus();break e;case"img":a.src?i.src=a.src:a.srcSet&&(i.srcset=a.srcSet)}}catch(r){Pe(e,e.return,r)}}function Hu(e,t,a){try{var i=e.stateNode;D2(i,e.type,a,t),i[Vt]=t}catch(r){Pe(e,e.return,r)}}function Yp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&qa(e.type)||e.tag===4}function qu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Yp(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&qa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Gu(e,t,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=$n));else if(i!==4&&(i===27&&qa(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Gu(e,t,a),e=e.sibling;e!==null;)Gu(e,t,a),e=e.sibling}function fr(e,t,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(i!==4&&(i===27&&qa(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(fr(e,t,a),e=e.sibling;e!==null;)fr(e,t,a),e=e.sibling}function $p(e){var t=e.stateNode,a=e.memoizedProps;try{for(var i=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);Ot(t,i,a),t[At]=e,t[Vt]=a}catch(c){Pe(e,e.return,c)}}var na=!1,wt=!1,Qu=!1,Kp=typeof WeakSet=="function"?WeakSet:Set,jt=null;function m2(e,t){if(e=e.containerInfo,cd=Rr,e=im(e),Dc(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var i=a.getSelection&&a.getSelection();if(i&&i.rangeCount!==0){a=i.anchorNode;var r=i.anchorOffset,c=i.focusNode;i=i.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break e}var y=0,v=-1,A=-1,V=0,ae=0,oe=e,$=null;t:for(;;){for(var J;oe!==a||r!==0&&oe.nodeType!==3||(v=y+r),oe!==c||i!==0&&oe.nodeType!==3||(A=y+i),oe.nodeType===3&&(y+=oe.nodeValue.length),(J=oe.firstChild)!==null;)$=oe,oe=J;for(;;){if(oe===e)break t;if($===a&&++V===r&&(v=y),$===c&&++ae===i&&(A=y),(J=oe.nextSibling)!==null)break;oe=$,$=oe.parentNode}oe=J}a=v===-1||A===-1?null:{start:v,end:A}}else a=null}a=a||{start:0,end:0}}else a=null;for(ud={focusedElem:e,selectionRange:a},Rr=!1,jt=t;jt!==null;)if(t=jt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,jt=e;else for(;jt!==null;){switch(t=jt,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)r=e[a],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,a=t,r=c.memoizedProps,c=c.memoizedState,i=a.stateNode;try{var we=Al(a.type,r);e=i.getSnapshotBeforeUpdate(we,c),i.__reactInternalSnapshotBeforeUpdate=e}catch(Ae){Pe(a,a.return,Ae)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)hd(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":hd(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,jt=e;break}jt=t.return}}function Xp(e,t,a){var i=a.flags;switch(a.tag){case 0:case 11:case 15:la(e,a),i&4&&Ls(5,a);break;case 1:if(la(e,a),i&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(y){Pe(a,a.return,y)}else{var r=Al(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(y){Pe(a,a.return,y)}}i&64&&Qp(a),i&512&&Bs(a,a.return);break;case 3:if(la(e,a),i&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Om(e,t)}catch(y){Pe(a,a.return,y)}}break;case 27:t===null&&i&4&&$p(a);case 26:case 5:la(e,a),t===null&&i&4&&Vp(a),i&512&&Bs(a,a.return);break;case 12:la(e,a);break;case 31:la(e,a),i&4&&Pp(e,a);break;case 13:la(e,a),i&4&&Jp(e,a),i&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=S2.bind(null,a),I2(e,a))));break;case 22:if(i=a.memoizedState!==null||na,!i){t=t!==null&&t.memoizedState!==null||wt,r=na;var c=wt;na=i,(wt=t)&&!c?ia(e,a,(a.subtreeFlags&8772)!==0):la(e,a),na=r,wt=c}break;case 30:break;default:la(e,a)}}function Fp(e){var t=e.alternate;t!==null&&(e.alternate=null,Fp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&bc(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var st=null,$t=!1;function aa(e,t,a){for(a=a.child;a!==null;)Zp(e,t,a),a=a.sibling}function Zp(e,t,a){if(zt&&typeof zt.onCommitFiberUnmount=="function")try{zt.onCommitFiberUnmount(va,a)}catch{}switch(a.tag){case 26:wt||zn(a,t),aa(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:wt||zn(a,t);var i=st,r=$t;qa(a.type)&&(st=a.stateNode,$t=!1),aa(e,t,a),Ks(a.stateNode),st=i,$t=r;break;case 5:wt||zn(a,t);case 6:if(i=st,r=$t,st=null,aa(e,t,a),st=i,$t=r,st!==null)if($t)try{(st.nodeType===9?st.body:st.nodeName==="HTML"?st.ownerDocument.body:st).removeChild(a.stateNode)}catch(c){Pe(a,t,c)}else try{st.removeChild(a.stateNode)}catch(c){Pe(a,t,c)}break;case 18:st!==null&&($t?(e=st,Qy(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Qi(e)):Qy(st,a.stateNode));break;case 4:i=st,r=$t,st=a.stateNode.containerInfo,$t=!0,aa(e,t,a),st=i,$t=r;break;case 0:case 11:case 14:case 15:Ra(2,a,t),wt||Ra(4,a,t),aa(e,t,a);break;case 1:wt||(zn(a,t),i=a.stateNode,typeof i.componentWillUnmount=="function"&&Ip(a,t,i)),aa(e,t,a);break;case 21:aa(e,t,a);break;case 22:wt=(i=wt)||a.memoizedState!==null,aa(e,t,a),wt=i;break;default:aa(e,t,a)}}function Pp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Qi(e)}catch(a){Pe(t,t.return,a)}}}function Jp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Qi(e)}catch(a){Pe(t,t.return,a)}}function p2(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Kp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Kp),t;default:throw Error(o(435,e.tag))}}function hr(e,t){var a=p2(e);t.forEach(function(i){if(!a.has(i)){a.add(i);var r=k2.bind(null,e,i);i.then(r,r)}})}function Kt(e,t){var a=t.deletions;if(a!==null)for(var i=0;i<a.length;i++){var r=a[i],c=e,y=t,v=y;e:for(;v!==null;){switch(v.tag){case 27:if(qa(v.type)){st=v.stateNode,$t=!1;break e}break;case 5:st=v.stateNode,$t=!1;break e;case 3:case 4:st=v.stateNode.containerInfo,$t=!0;break e}v=v.return}if(st===null)throw Error(o(160));Zp(c,y,r),st=null,$t=!1,c=r.alternate,c!==null&&(c.return=null),r.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Wp(t,e),t=t.sibling}var Mn=null;function Wp(e,t){var a=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Kt(t,e),Xt(e),i&4&&(Ra(3,e,e.return),Ls(3,e),Ra(5,e,e.return));break;case 1:Kt(t,e),Xt(e),i&512&&(wt||a===null||zn(a,a.return)),i&64&&na&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?i:a.concat(i))));break;case 26:var r=Mn;if(Kt(t,e),Xt(e),i&512&&(wt||a===null||zn(a,a.return)),i&4){var c=a!==null?a.memoizedState:null;if(i=e.memoizedState,a===null)if(i===null)if(e.stateNode===null){e:{i=e.type,a=e.memoizedProps,r=r.ownerDocument||r;t:switch(i){case"title":c=r.getElementsByTagName("title")[0],(!c||c[ds]||c[At]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=r.createElement(i),r.head.insertBefore(c,r.querySelector("head > title"))),Ot(c,i,a),c[At]=e,Et(c),i=c;break e;case"link":var y=Wy("link","href",r).get(i+(a.href||""));if(y){for(var v=0;v<y.length;v++)if(c=y[v],c.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&c.getAttribute("rel")===(a.rel==null?null:a.rel)&&c.getAttribute("title")===(a.title==null?null:a.title)&&c.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){y.splice(v,1);break t}}c=r.createElement(i),Ot(c,i,a),r.head.appendChild(c);break;case"meta":if(y=Wy("meta","content",r).get(i+(a.content||""))){for(v=0;v<y.length;v++)if(c=y[v],c.getAttribute("content")===(a.content==null?null:""+a.content)&&c.getAttribute("name")===(a.name==null?null:a.name)&&c.getAttribute("property")===(a.property==null?null:a.property)&&c.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&c.getAttribute("charset")===(a.charSet==null?null:a.charSet)){y.splice(v,1);break t}}c=r.createElement(i),Ot(c,i,a),r.head.appendChild(c);break;default:throw Error(o(468,i))}c[At]=e,Et(c),i=c}e.stateNode=i}else eg(r,e.type,e.stateNode);else e.stateNode=Jy(r,i,e.memoizedProps);else c!==i?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,i===null?eg(r,e.type,e.stateNode):Jy(r,i,e.memoizedProps)):i===null&&e.stateNode!==null&&Hu(e,e.memoizedProps,a.memoizedProps)}break;case 27:Kt(t,e),Xt(e),i&512&&(wt||a===null||zn(a,a.return)),a!==null&&i&4&&Hu(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Kt(t,e),Xt(e),i&512&&(wt||a===null||zn(a,a.return)),e.flags&32){r=e.stateNode;try{di(r,"")}catch(we){Pe(e,e.return,we)}}i&4&&e.stateNode!=null&&(r=e.memoizedProps,Hu(e,r,a!==null?a.memoizedProps:r)),i&1024&&(Qu=!0);break;case 6:if(Kt(t,e),Xt(e),i&4){if(e.stateNode===null)throw Error(o(162));i=e.memoizedProps,a=e.stateNode;try{a.nodeValue=i}catch(we){Pe(e,e.return,we)}}break;case 3:if(Cr=null,r=Mn,Mn=Mr(t.containerInfo),Kt(t,e),Mn=r,Xt(e),i&4&&a!==null&&a.memoizedState.isDehydrated)try{Qi(t.containerInfo)}catch(we){Pe(e,e.return,we)}Qu&&(Qu=!1,ey(e));break;case 4:i=Mn,Mn=Mr(e.stateNode.containerInfo),Kt(t,e),Xt(e),Mn=i;break;case 12:Kt(t,e),Xt(e);break;case 31:Kt(t,e),Xt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,hr(e,i)));break;case 13:Kt(t,e),Xt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(pr=ot()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,hr(e,i)));break;case 22:r=e.memoizedState!==null;var A=a!==null&&a.memoizedState!==null,V=na,ae=wt;if(na=V||r,wt=ae||A,Kt(t,e),wt=ae,na=V,Xt(e),i&8192)e:for(t=e.stateNode,t._visibility=r?t._visibility&-2:t._visibility|1,r&&(a===null||A||na||wt||Cl(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){A=a=t;try{if(c=A.stateNode,r)y=c.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{v=A.stateNode;var oe=A.memoizedProps.style,$=oe!=null&&oe.hasOwnProperty("display")?oe.display:null;v.style.display=$==null||typeof $=="boolean"?"":(""+$).trim()}}catch(we){Pe(A,A.return,we)}}}else if(t.tag===6){if(a===null){A=t;try{A.stateNode.nodeValue=r?"":A.memoizedProps}catch(we){Pe(A,A.return,we)}}}else if(t.tag===18){if(a===null){A=t;try{var J=A.stateNode;r?Iy(J,!0):Iy(A.stateNode,!1)}catch(we){Pe(A,A.return,we)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(a=i.retryQueue,a!==null&&(i.retryQueue=null,hr(e,a))));break;case 19:Kt(t,e),Xt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,hr(e,i)));break;case 30:break;case 21:break;default:Kt(t,e),Xt(e)}}function Xt(e){var t=e.flags;if(t&2){try{for(var a,i=e.return;i!==null;){if(Yp(i)){a=i;break}i=i.return}if(a==null)throw Error(o(160));switch(a.tag){case 27:var r=a.stateNode,c=qu(e);fr(e,c,r);break;case 5:var y=a.stateNode;a.flags&32&&(di(y,""),a.flags&=-33);var v=qu(e);fr(e,v,y);break;case 3:case 4:var A=a.stateNode.containerInfo,V=qu(e);Gu(e,V,A);break;default:throw Error(o(161))}}catch(ae){Pe(e,e.return,ae)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ey(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ey(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function la(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Xp(e,t.alternate,t),t=t.sibling}function Cl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ra(4,t,t.return),Cl(t);break;case 1:zn(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Ip(t,t.return,a),Cl(t);break;case 27:Ks(t.stateNode);case 26:case 5:zn(t,t.return),Cl(t);break;case 22:t.memoizedState===null&&Cl(t);break;case 30:Cl(t);break;default:Cl(t)}e=e.sibling}}function ia(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,r=e,c=t,y=c.flags;switch(c.tag){case 0:case 11:case 15:ia(r,c,a),Ls(4,c);break;case 1:if(ia(r,c,a),i=c,r=i.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(V){Pe(i,i.return,V)}if(i=c,r=i.updateQueue,r!==null){var v=i.stateNode;try{var A=r.shared.hiddenCallbacks;if(A!==null)for(r.shared.hiddenCallbacks=null,r=0;r<A.length;r++)Tm(A[r],v)}catch(V){Pe(i,i.return,V)}}a&&y&64&&Qp(c),Bs(c,c.return);break;case 27:$p(c);case 26:case 5:ia(r,c,a),a&&i===null&&y&4&&Vp(c),Bs(c,c.return);break;case 12:ia(r,c,a);break;case 31:ia(r,c,a),a&&y&4&&Pp(r,c);break;case 13:ia(r,c,a),a&&y&4&&Jp(r,c);break;case 22:c.memoizedState===null&&ia(r,c,a),Bs(c,c.return);break;case 30:break;default:ia(r,c,a)}t=t.sibling}}function Iu(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&ks(a))}function Vu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ks(e))}function An(e,t,a,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)ty(e,t,a,i),t=t.sibling}function ty(e,t,a,i){var r=t.flags;switch(t.tag){case 0:case 11:case 15:An(e,t,a,i),r&2048&&Ls(9,t);break;case 1:An(e,t,a,i);break;case 3:An(e,t,a,i),r&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ks(e)));break;case 12:if(r&2048){An(e,t,a,i),e=t.stateNode;try{var c=t.memoizedProps,y=c.id,v=c.onPostCommit;typeof v=="function"&&v(y,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(A){Pe(t,t.return,A)}}else An(e,t,a,i);break;case 31:An(e,t,a,i);break;case 13:An(e,t,a,i);break;case 23:break;case 22:c=t.stateNode,y=t.alternate,t.memoizedState!==null?c._visibility&2?An(e,t,a,i):Hs(e,t):c._visibility&2?An(e,t,a,i):(c._visibility|=2,Ti(e,t,a,i,(t.subtreeFlags&10256)!==0||!1)),r&2048&&Iu(y,t);break;case 24:An(e,t,a,i),r&2048&&Vu(t.alternate,t);break;default:An(e,t,a,i)}}function Ti(e,t,a,i,r){for(r=r&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,y=t,v=a,A=i,V=y.flags;switch(y.tag){case 0:case 11:case 15:Ti(c,y,v,A,r),Ls(8,y);break;case 23:break;case 22:var ae=y.stateNode;y.memoizedState!==null?ae._visibility&2?Ti(c,y,v,A,r):Hs(c,y):(ae._visibility|=2,Ti(c,y,v,A,r)),r&&V&2048&&Iu(y.alternate,y);break;case 24:Ti(c,y,v,A,r),r&&V&2048&&Vu(y.alternate,y);break;default:Ti(c,y,v,A,r)}t=t.sibling}}function Hs(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,i=t,r=i.flags;switch(i.tag){case 22:Hs(a,i),r&2048&&Iu(i.alternate,i);break;case 24:Hs(a,i),r&2048&&Vu(i.alternate,i);break;default:Hs(a,i)}t=t.sibling}}var qs=8192;function Oi(e,t,a){if(e.subtreeFlags&qs)for(e=e.child;e!==null;)ny(e,t,a),e=e.sibling}function ny(e,t,a){switch(e.tag){case 26:Oi(e,t,a),e.flags&qs&&e.memoizedState!==null&&tw(a,Mn,e.memoizedState,e.memoizedProps);break;case 5:Oi(e,t,a);break;case 3:case 4:var i=Mn;Mn=Mr(e.stateNode.containerInfo),Oi(e,t,a),Mn=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=qs,qs=16777216,Oi(e,t,a),qs=i):Oi(e,t,a));break;default:Oi(e,t,a)}}function ay(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Gs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var i=t[a];jt=i,iy(i,e)}ay(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ly(e),e=e.sibling}function ly(e){switch(e.tag){case 0:case 11:case 15:Gs(e),e.flags&2048&&Ra(9,e,e.return);break;case 3:Gs(e);break;case 12:Gs(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,mr(e)):Gs(e);break;default:Gs(e)}}function mr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var i=t[a];jt=i,iy(i,e)}ay(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ra(8,t,t.return),mr(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,mr(t));break;default:mr(t)}e=e.sibling}}function iy(e,t){for(;jt!==null;){var a=jt;switch(a.tag){case 0:case 11:case 15:Ra(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var i=a.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:ks(a.memoizedState.cache)}if(i=a.child,i!==null)i.return=a,jt=i;else e:for(a=e;jt!==null;){i=jt;var r=i.sibling,c=i.return;if(Fp(i),i===a){jt=null;break e}if(r!==null){r.return=c,jt=r;break e}jt=c}}}var y2={getCacheForType:function(e){var t=Nt(bt),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Nt(bt).controller.signal}},g2=typeof WeakMap=="function"?WeakMap:Map,Xe=0,tt=null,He=null,Ge=0,Ze=0,sn=null,za=!1,Ri=!1,Yu=!1,sa=0,dt=0,Da=0,Nl=0,$u=0,on=0,zi=0,Qs=null,Ft=null,Ku=!1,pr=0,sy=0,yr=1/0,gr=null,Ua=null,_t=0,La=null,Di=null,oa=0,Xu=0,Fu=null,oy=null,Is=0,Zu=null;function rn(){return(Xe&2)!==0&&Ge!==0?Ge&-Ge:_.T!==null?nd():Sh()}function ry(){if(on===0)if((Ge&536870912)===0||Ie){var e=mt;mt<<=1,(mt&3932160)===0&&(mt=262144),on=e}else on=536870912;return e=an.current,e!==null&&(e.flags|=32),on}function Zt(e,t,a){(e===tt&&(Ze===2||Ze===9)||e.cancelPendingCommit!==null)&&(Ui(e,0),Ba(e,Ge,on,!1)),xa(e,a),((Xe&2)===0||e!==tt)&&(e===tt&&((Xe&2)===0&&(Nl|=a),dt===4&&Ba(e,Ge,on,!1)),Dn(e))}function cy(e,t,a){if((Xe&6)!==0)throw Error(o(327));var i=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Ut(e,t),r=i?x2(e,t):Ju(e,t,!0),c=i;do{if(r===0){Ri&&!i&&Ba(e,t,0,!1);break}else{if(a=e.current.alternate,c&&!b2(a)){r=Ju(e,t,!1),c=!1;continue}if(r===2){if(c=t,e.errorRecoveryDisabledLanes&c)var y=0;else y=e.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){t=y;e:{var v=e;r=Qs;var A=v.current.memoizedState.isDehydrated;if(A&&(Ui(v,y).flags|=256),y=Ju(v,y,!1),y!==2){if(Yu&&!A){v.errorRecoveryDisabledLanes|=c,Nl|=c,r=4;break e}c=Ft,Ft=r,c!==null&&(Ft===null?Ft=c:Ft.push.apply(Ft,c))}r=y}if(c=!1,r!==2)continue}}if(r===1){Ui(e,0),Ba(e,t,0,!0);break}e:{switch(i=e,c=r,c){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:Ba(i,t,on,!za);break e;case 2:Ft=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(r=pr+300-ot(),10<r)){if(Ba(i,t,on,!za),Dt(i,0,!0)!==0)break e;oa=t,i.timeoutHandle=qy(uy.bind(null,i,a,Ft,gr,Ku,t,on,Nl,zi,za,c,"Throttled",-0,0),r);break e}uy(i,a,Ft,gr,Ku,t,on,Nl,zi,za,c,null,-0,0)}}break}while(!0);Dn(e)}function uy(e,t,a,i,r,c,y,v,A,V,ae,oe,$,J){if(e.timeoutHandle=-1,oe=t.subtreeFlags,oe&8192||(oe&16785408)===16785408){oe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:$n},ny(t,c,oe);var we=(c&62914560)===c?pr-ot():(c&4194048)===c?sy-ot():0;if(we=nw(oe,we),we!==null){oa=c,e.cancelPendingCommit=we(by.bind(null,e,t,c,a,i,r,y,v,A,ae,oe,null,$,J)),Ba(e,c,y,!V);return}}by(e,t,c,a,i,r,y,v,A)}function b2(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var i=0;i<a.length;i++){var r=a[i],c=r.getSnapshot;r=r.value;try{if(!tn(c(),r))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ba(e,t,a,i){t&=~$u,t&=~Nl,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var r=t;0<r;){var c=31-he(r),y=1<<c;i[c]=-1,r&=~y}a!==0&&Mo(e,a,t)}function br(){return(Xe&6)===0?(Vs(0),!1):!0}function Pu(){if(He!==null){if(Ze===0)var e=He.return;else e=He,Zn=wl=null,hu(e),ji=null,js=0,e=He;for(;e!==null;)Gp(e.alternate,e),e=e.return;He=null}}function Ui(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,B2(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),oa=0,Pu(),tt=e,He=a=Xn(e.current,null),Ge=t,Ze=0,sn=null,za=!1,Ri=Ut(e,t),Yu=!1,zi=on=$u=Nl=Da=dt=0,Ft=Qs=null,Ku=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var r=31-he(i),c=1<<r;t|=e[r],i&=~c}return sa=t,Ho(),a}function dy(e,t){Oe=null,_.H=zs,t===Ei||t===Ko?(t=Mm(),Ze=3):t===tu?(t=Mm(),Ze=4):Ze=t===Cu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,sn=t,He===null&&(dt=1,or(e,gn(t,e.current)))}function fy(){var e=an.current;return e===null?!0:(Ge&4194048)===Ge?wn===null:(Ge&62914560)===Ge||(Ge&536870912)!==0?e===wn:!1}function hy(){var e=_.H;return _.H=zs,e===null?zs:e}function my(){var e=_.A;return _.A=y2,e}function vr(){dt=4,za||(Ge&4194048)!==Ge&&an.current!==null||(Ri=!0),(Da&134217727)===0&&(Nl&134217727)===0||tt===null||Ba(tt,Ge,on,!1)}function Ju(e,t,a){var i=Xe;Xe|=2;var r=hy(),c=my();(tt!==e||Ge!==t)&&(gr=null,Ui(e,t)),t=!1;var y=dt;e:do try{if(Ze!==0&&He!==null){var v=He,A=sn;switch(Ze){case 8:Pu(),y=6;break e;case 3:case 2:case 9:case 6:an.current===null&&(t=!0);var V=Ze;if(Ze=0,sn=null,Li(e,v,A,V),a&&Ri){y=0;break e}break;default:V=Ze,Ze=0,sn=null,Li(e,v,A,V)}}v2(),y=dt;break}catch(ae){dy(e,ae)}while(!0);return t&&e.shellSuspendCounter++,Zn=wl=null,Xe=i,_.H=r,_.A=c,He===null&&(tt=null,Ge=0,Ho()),y}function v2(){for(;He!==null;)py(He)}function x2(e,t){var a=Xe;Xe|=2;var i=hy(),r=my();tt!==e||Ge!==t?(gr=null,yr=ot()+500,Ui(e,t)):Ri=Ut(e,t);e:do try{if(Ze!==0&&He!==null){t=He;var c=sn;t:switch(Ze){case 1:Ze=0,sn=null,Li(e,t,c,1);break;case 2:case 9:if(Em(c)){Ze=0,sn=null,yy(t);break}t=function(){Ze!==2&&Ze!==9||tt!==e||(Ze=7),Dn(e)},c.then(t,t);break e;case 3:Ze=7;break e;case 4:Ze=5;break e;case 7:Em(c)?(Ze=0,sn=null,yy(t)):(Ze=0,sn=null,Li(e,t,c,7));break;case 5:var y=null;switch(He.tag){case 26:y=He.memoizedState;case 5:case 27:var v=He;if(y?tg(y):v.stateNode.complete){Ze=0,sn=null;var A=v.sibling;if(A!==null)He=A;else{var V=v.return;V!==null?(He=V,xr(V)):He=null}break t}}Ze=0,sn=null,Li(e,t,c,5);break;case 6:Ze=0,sn=null,Li(e,t,c,6);break;case 8:Pu(),dt=6;break e;default:throw Error(o(462))}}w2();break}catch(ae){dy(e,ae)}while(!0);return Zn=wl=null,_.H=i,_.A=r,Xe=a,He!==null?0:(tt=null,Ge=0,Ho(),dt)}function w2(){for(;He!==null&&!ul();)py(He)}function py(e){var t=Hp(e.alternate,e,sa);e.memoizedProps=e.pendingProps,t===null?xr(e):He=t}function yy(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Rp(a,t,t.pendingProps,t.type,void 0,Ge);break;case 11:t=Rp(a,t,t.pendingProps,t.type.render,t.ref,Ge);break;case 5:hu(t);default:Gp(a,t),t=He=mm(t,sa),t=Hp(a,t,sa)}e.memoizedProps=e.pendingProps,t===null?xr(e):He=t}function Li(e,t,a,i){Zn=wl=null,hu(t),ji=null,js=0;var r=t.return;try{if(c2(e,r,t,a,Ge)){dt=1,or(e,gn(a,e.current)),He=null;return}}catch(c){if(r!==null)throw He=r,c;dt=1,or(e,gn(a,e.current)),He=null;return}t.flags&32768?(Ie||i===1?e=!0:Ri||(Ge&536870912)!==0?e=!1:(za=e=!0,(i===2||i===9||i===3||i===6)&&(i=an.current,i!==null&&i.tag===13&&(i.flags|=16384))),gy(t,e)):xr(t)}function xr(e){var t=e;do{if((t.flags&32768)!==0){gy(t,za);return}e=t.return;var a=f2(t.alternate,t,sa);if(a!==null){He=a;return}if(t=t.sibling,t!==null){He=t;return}He=t=e}while(t!==null);dt===0&&(dt=5)}function gy(e,t){do{var a=h2(e.alternate,e);if(a!==null){a.flags&=32767,He=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){He=e;return}He=e=a}while(e!==null);dt=6,He=null}function by(e,t,a,i,r,c,y,v,A){e.cancelPendingCommit=null;do wr();while(_t!==0);if((Xe&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(c=t.lanes|t.childLanes,c|=qc,wa(e,a,c,y,v,A),e===tt&&(He=tt=null,Ge=0),Di=t,La=e,oa=a,Xu=c,Fu=r,oy=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,E2(dl,function(){return Sy(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=_.T,_.T=null,r=Y.p,Y.p=2,y=Xe,Xe|=4;try{m2(e,t,a)}finally{Xe=y,Y.p=r,_.T=i}}_t=1,vy(),xy(),wy()}}function vy(){if(_t===1){_t=0;var e=La,t=Di,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=_.T,_.T=null;var i=Y.p;Y.p=2;var r=Xe;Xe|=4;try{Wp(t,e);var c=ud,y=im(e.containerInfo),v=c.focusedElem,A=c.selectionRange;if(y!==v&&v&&v.ownerDocument&&lm(v.ownerDocument.documentElement,v)){if(A!==null&&Dc(v)){var V=A.start,ae=A.end;if(ae===void 0&&(ae=V),"selectionStart"in v)v.selectionStart=V,v.selectionEnd=Math.min(ae,v.value.length);else{var oe=v.ownerDocument||document,$=oe&&oe.defaultView||window;if($.getSelection){var J=$.getSelection(),we=v.textContent.length,Ae=Math.min(A.start,we),et=A.end===void 0?Ae:Math.min(A.end,we);!J.extend&&Ae>et&&(y=et,et=Ae,Ae=y);var L=am(v,Ae),O=am(v,et);if(L&&O&&(J.rangeCount!==1||J.anchorNode!==L.node||J.anchorOffset!==L.offset||J.focusNode!==O.node||J.focusOffset!==O.offset)){var Q=oe.createRange();Q.setStart(L.node,L.offset),J.removeAllRanges(),Ae>et?(J.addRange(Q),J.extend(O.node,O.offset)):(Q.setEnd(O.node,O.offset),J.addRange(Q))}}}}for(oe=[],J=v;J=J.parentNode;)J.nodeType===1&&oe.push({element:J,left:J.scrollLeft,top:J.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<oe.length;v++){var se=oe[v];se.element.scrollLeft=se.left,se.element.scrollTop=se.top}}Rr=!!cd,ud=cd=null}finally{Xe=r,Y.p=i,_.T=a}}e.current=t,_t=2}}function xy(){if(_t===2){_t=0;var e=La,t=Di,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=_.T,_.T=null;var i=Y.p;Y.p=2;var r=Xe;Xe|=4;try{Xp(e,t.alternate,t)}finally{Xe=r,Y.p=i,_.T=a}}_t=3}}function wy(){if(_t===4||_t===3){_t=0,Tn();var e=La,t=Di,a=oa,i=oy;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?_t=5:(_t=0,Di=La=null,_y(e,e.pendingLanes));var r=e.pendingLanes;if(r===0&&(Ua=null),yc(a),t=t.stateNode,zt&&typeof zt.onCommitFiberRoot=="function")try{zt.onCommitFiberRoot(va,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=_.T,r=Y.p,Y.p=2,_.T=null;try{for(var c=e.onRecoverableError,y=0;y<i.length;y++){var v=i[y];c(v.value,{componentStack:v.stack})}}finally{_.T=t,Y.p=r}}(oa&3)!==0&&wr(),Dn(e),r=e.pendingLanes,(a&261930)!==0&&(r&42)!==0?e===Zu?Is++:(Is=0,Zu=e):Is=0,Vs(0)}}function _y(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ks(t)))}function wr(){return vy(),xy(),wy(),Sy()}function Sy(){if(_t!==5)return!1;var e=La,t=Xu;Xu=0;var a=yc(oa),i=_.T,r=Y.p;try{Y.p=32>a?32:a,_.T=null,a=Fu,Fu=null;var c=La,y=oa;if(_t=0,Di=La=null,oa=0,(Xe&6)!==0)throw Error(o(331));var v=Xe;if(Xe|=4,ly(c.current),ty(c,c.current,y,a),Xe=v,Vs(0,!1),zt&&typeof zt.onPostCommitFiberRoot=="function")try{zt.onPostCommitFiberRoot(va,c)}catch{}return!0}finally{Y.p=r,_.T=i,_y(e,t)}}function ky(e,t,a){t=gn(a,t),t=Au(e.stateNode,t,2),e=Na(e,t,2),e!==null&&(xa(e,2),Dn(e))}function Pe(e,t,a){if(e.tag===3)ky(e,e,a);else for(;t!==null;){if(t.tag===3){ky(t,e,a);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Ua===null||!Ua.has(i))){e=gn(a,e),a=Ep(2),i=Na(t,a,2),i!==null&&(jp(a,i,t,e),xa(i,2),Dn(i));break}}t=t.return}}function Wu(e,t,a){var i=e.pingCache;if(i===null){i=e.pingCache=new g2;var r=new Set;i.set(t,r)}else r=i.get(t),r===void 0&&(r=new Set,i.set(t,r));r.has(a)||(Yu=!0,r.add(a),e=_2.bind(null,e,t,a),t.then(e,e))}function _2(e,t,a){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,tt===e&&(Ge&a)===a&&(dt===4||dt===3&&(Ge&62914560)===Ge&&300>ot()-pr?(Xe&2)===0&&Ui(e,0):$u|=a,zi===Ge&&(zi=0)),Dn(e)}function Ey(e,t){t===0&&(t=En()),e=bl(e,t),e!==null&&(xa(e,t),Dn(e))}function S2(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Ey(e,a)}function k2(e,t){var a=0;switch(e.tag){case 31:case 13:var i=e.stateNode,r=e.memoizedState;r!==null&&(a=r.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(o(314))}i!==null&&i.delete(t),Ey(e,a)}function E2(e,t){return ti(e,t)}var _r=null,Bi=null,ed=!1,Sr=!1,td=!1,Ha=0;function Dn(e){e!==Bi&&e.next===null&&(Bi===null?_r=Bi=e:Bi=Bi.next=e),Sr=!0,ed||(ed=!0,M2())}function Vs(e,t){if(!td&&Sr){td=!0;do for(var a=!1,i=_r;i!==null;){if(e!==0){var r=i.pendingLanes;if(r===0)var c=0;else{var y=i.suspendedLanes,v=i.pingedLanes;c=(1<<31-he(42|e)+1)-1,c&=r&~(y&~v),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,Cy(i,c))}else c=Ge,c=Dt(i,i===tt?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(c&3)===0||Ut(i,c)||(a=!0,Cy(i,c));i=i.next}while(a);td=!1}}function j2(){jy()}function jy(){Sr=ed=!1;var e=0;Ha!==0&&L2()&&(e=Ha);for(var t=ot(),a=null,i=_r;i!==null;){var r=i.next,c=My(i,t);c===0?(i.next=null,a===null?_r=r:a.next=r,r===null&&(Bi=a)):(a=i,(e!==0||(c&3)!==0)&&(Sr=!0)),i=r}_t!==0&&_t!==5||Vs(e),Ha!==0&&(Ha=0)}function My(e,t){for(var a=e.suspendedLanes,i=e.pingedLanes,r=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var y=31-he(c),v=1<<y,A=r[y];A===-1?((v&a)===0||(v&i)!==0)&&(r[y]=Lt(v,t)):A<=t&&(e.expiredLanes|=v),c&=~v}if(t=tt,a=Ge,a=Dt(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,a===0||e===t&&(Ze===2||Ze===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&ni(i),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Ut(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(i!==null&&ni(i),yc(a)){case 2:case 8:a=ai;break;case 32:a=dl;break;case 268435456:a=it;break;default:a=dl}return i=Ay.bind(null,e),a=ti(a,i),e.callbackPriority=t,e.callbackNode=a,t}return i!==null&&i!==null&&ni(i),e.callbackPriority=2,e.callbackNode=null,2}function Ay(e,t){if(_t!==0&&_t!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(wr()&&e.callbackNode!==a)return null;var i=Ge;return i=Dt(e,e===tt?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(cy(e,i,t),My(e,ot()),e.callbackNode!=null&&e.callbackNode===a?Ay.bind(null,e):null)}function Cy(e,t){if(wr())return null;cy(e,t,!0)}function M2(){H2(function(){(Xe&6)!==0?ti(us,j2):jy()})}function nd(){if(Ha===0){var e=Si;e===0&&(e=Ne,Ne<<=1,(Ne&261888)===0&&(Ne=256)),Ha=e}return Ha}function Ny(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:To(""+e)}function Ty(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function A2(e,t,a,i,r){if(t==="submit"&&a&&a.stateNode===r){var c=Ny((r[Vt]||null).action),y=i.submitter;y&&(t=(t=y[Vt]||null)?Ny(t.formAction):y.getAttribute("formAction"),t!==null&&(c=t,y=null));var v=new Do("action","action",null,i,r);e.push({event:v,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(Ha!==0){var A=y?Ty(r,y):new FormData(r);_u(a,{pending:!0,data:A,method:r.method,action:c},null,A)}}else typeof c=="function"&&(v.preventDefault(),A=y?Ty(r,y):new FormData(r),_u(a,{pending:!0,data:A,method:r.method,action:c},c,A))},currentTarget:r}]})}}for(var ad=0;ad<Hc.length;ad++){var ld=Hc[ad],C2=ld.toLowerCase(),N2=ld[0].toUpperCase()+ld.slice(1);jn(C2,"on"+N2)}jn(rm,"onAnimationEnd"),jn(cm,"onAnimationIteration"),jn(um,"onAnimationStart"),jn("dblclick","onDoubleClick"),jn("focusin","onFocus"),jn("focusout","onBlur"),jn($x,"onTransitionRun"),jn(Kx,"onTransitionStart"),jn(Xx,"onTransitionCancel"),jn(dm,"onTransitionEnd"),ci("onMouseEnter",["mouseout","mouseover"]),ci("onMouseLeave",["mouseout","mouseover"]),ci("onPointerEnter",["pointerout","pointerover"]),ci("onPointerLeave",["pointerout","pointerover"]),ml("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ml("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ml("onBeforeInput",["compositionend","keypress","textInput","paste"]),ml("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ml("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ml("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ys="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),T2=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ys));function Oy(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var i=e[a],r=i.event;i=i.listeners;e:{var c=void 0;if(t)for(var y=i.length-1;0<=y;y--){var v=i[y],A=v.instance,V=v.currentTarget;if(v=v.listener,A!==c&&r.isPropagationStopped())break e;c=v,r.currentTarget=V;try{c(r)}catch(ae){Bo(ae)}r.currentTarget=null,c=A}else for(y=0;y<i.length;y++){if(v=i[y],A=v.instance,V=v.currentTarget,v=v.listener,A!==c&&r.isPropagationStopped())break e;c=v,r.currentTarget=V;try{c(r)}catch(ae){Bo(ae)}r.currentTarget=null,c=A}}}}function qe(e,t){var a=t[gc];a===void 0&&(a=t[gc]=new Set);var i=e+"__bubble";a.has(i)||(Ry(t,e,2,!1),a.add(i))}function id(e,t,a){var i=0;t&&(i|=4),Ry(a,e,i,t)}var kr="_reactListening"+Math.random().toString(36).slice(2);function sd(e){if(!e[kr]){e[kr]=!0,jh.forEach(function(a){a!=="selectionchange"&&(T2.has(a)||id(a,!1,e),id(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[kr]||(t[kr]=!0,id("selectionchange",!1,t))}}function Ry(e,t,a,i){switch(rg(t)){case 2:var r=iw;break;case 8:r=sw;break;default:r=wd}a=r.bind(null,t,a,e),r=void 0,!jc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),i?r!==void 0?e.addEventListener(t,a,{capture:!0,passive:r}):e.addEventListener(t,a,!0):r!==void 0?e.addEventListener(t,a,{passive:r}):e.addEventListener(t,a,!1)}function od(e,t,a,i,r){var c=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var y=i.tag;if(y===3||y===4){var v=i.stateNode.containerInfo;if(v===r)break;if(y===4)for(y=i.return;y!==null;){var A=y.tag;if((A===3||A===4)&&y.stateNode.containerInfo===r)return;y=y.return}for(;v!==null;){if(y=si(v),y===null)return;if(A=y.tag,A===5||A===6||A===26||A===27){i=c=y;continue e}v=v.parentNode}}i=i.return}Bh(function(){var V=c,ae=kc(a),oe=[];e:{var $=fm.get(e);if($!==void 0){var J=Do,we=e;switch(e){case"keypress":if(Ro(a)===0)break e;case"keydown":case"keyup":J=kx;break;case"focusin":we="focus",J=Nc;break;case"focusout":we="blur",J=Nc;break;case"beforeblur":case"afterblur":J=Nc;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":J=Gh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":J=fx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":J=Mx;break;case rm:case cm:case um:J=px;break;case dm:J=Cx;break;case"scroll":case"scrollend":J=ux;break;case"wheel":J=Tx;break;case"copy":case"cut":case"paste":J=gx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":J=Ih;break;case"toggle":case"beforetoggle":J=Rx}var Ae=(t&4)!==0,et=!Ae&&(e==="scroll"||e==="scrollend"),L=Ae?$!==null?$+"Capture":null:$;Ae=[];for(var O=V,Q;O!==null;){var se=O;if(Q=se.stateNode,se=se.tag,se!==5&&se!==26&&se!==27||Q===null||L===null||(se=hs(O,L),se!=null&&Ae.push($s(O,se,Q))),et)break;O=O.return}0<Ae.length&&($=new J($,we,null,a,ae),oe.push({event:$,listeners:Ae}))}}if((t&7)===0){e:{if($=e==="mouseover"||e==="pointerover",J=e==="mouseout"||e==="pointerout",$&&a!==Sc&&(we=a.relatedTarget||a.fromElement)&&(si(we)||we[ii]))break e;if((J||$)&&($=ae.window===ae?ae:($=ae.ownerDocument)?$.defaultView||$.parentWindow:window,J?(we=a.relatedTarget||a.toElement,J=V,we=we?si(we):null,we!==null&&(et=d(we),Ae=we.tag,we!==et||Ae!==5&&Ae!==27&&Ae!==6)&&(we=null)):(J=null,we=V),J!==we)){if(Ae=Gh,se="onMouseLeave",L="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(Ae=Ih,se="onPointerLeave",L="onPointerEnter",O="pointer"),et=J==null?$:fs(J),Q=we==null?$:fs(we),$=new Ae(se,O+"leave",J,a,ae),$.target=et,$.relatedTarget=Q,se=null,si(ae)===V&&(Ae=new Ae(L,O+"enter",we,a,ae),Ae.target=Q,Ae.relatedTarget=et,se=Ae),et=se,J&&we)t:{for(Ae=O2,L=J,O=we,Q=0,se=L;se;se=Ae(se))Q++;se=0;for(var ke=O;ke;ke=Ae(ke))se++;for(;0<Q-se;)L=Ae(L),Q--;for(;0<se-Q;)O=Ae(O),se--;for(;Q--;){if(L===O||O!==null&&L===O.alternate){Ae=L;break t}L=Ae(L),O=Ae(O)}Ae=null}else Ae=null;J!==null&&zy(oe,$,J,Ae,!1),we!==null&&et!==null&&zy(oe,et,we,Ae,!0)}}e:{if($=V?fs(V):window,J=$.nodeName&&$.nodeName.toLowerCase(),J==="select"||J==="input"&&$.type==="file")var $e=Ph;else if(Fh($))if(Jh)$e=Ix;else{$e=Gx;var Se=qx}else J=$.nodeName,!J||J.toLowerCase()!=="input"||$.type!=="checkbox"&&$.type!=="radio"?V&&_c(V.elementType)&&($e=Ph):$e=Qx;if($e&&($e=$e(e,V))){Zh(oe,$e,a,ae);break e}Se&&Se(e,$,V),e==="focusout"&&V&&$.type==="number"&&V.memoizedProps.value!=null&&wc($,"number",$.value)}switch(Se=V?fs(V):window,e){case"focusin":(Fh(Se)||Se.contentEditable==="true")&&(pi=Se,Uc=V,ws=null);break;case"focusout":ws=Uc=pi=null;break;case"mousedown":Lc=!0;break;case"contextmenu":case"mouseup":case"dragend":Lc=!1,sm(oe,a,ae);break;case"selectionchange":if(Yx)break;case"keydown":case"keyup":sm(oe,a,ae)}var ze;if(Oc)e:{switch(e){case"compositionstart":var Qe="onCompositionStart";break e;case"compositionend":Qe="onCompositionEnd";break e;case"compositionupdate":Qe="onCompositionUpdate";break e}Qe=void 0}else mi?Kh(e,a)&&(Qe="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Qe="onCompositionStart");Qe&&(Vh&&a.locale!=="ko"&&(mi||Qe!=="onCompositionStart"?Qe==="onCompositionEnd"&&mi&&(ze=Hh()):(Sa=ae,Mc="value"in Sa?Sa.value:Sa.textContent,mi=!0)),Se=Er(V,Qe),0<Se.length&&(Qe=new Qh(Qe,e,null,a,ae),oe.push({event:Qe,listeners:Se}),ze?Qe.data=ze:(ze=Xh(a),ze!==null&&(Qe.data=ze)))),(ze=Dx?Ux(e,a):Lx(e,a))&&(Qe=Er(V,"onBeforeInput"),0<Qe.length&&(Se=new Qh("onBeforeInput","beforeinput",null,a,ae),oe.push({event:Se,listeners:Qe}),Se.data=ze)),A2(oe,e,V,a,ae)}Oy(oe,t)})}function $s(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Er(e,t){for(var a=t+"Capture",i=[];e!==null;){var r=e,c=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||c===null||(r=hs(e,a),r!=null&&i.unshift($s(e,r,c)),r=hs(e,t),r!=null&&i.push($s(e,r,c))),e.tag===3)return i;e=e.return}return[]}function O2(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function zy(e,t,a,i,r){for(var c=t._reactName,y=[];a!==null&&a!==i;){var v=a,A=v.alternate,V=v.stateNode;if(v=v.tag,A!==null&&A===i)break;v!==5&&v!==26&&v!==27||V===null||(A=V,r?(V=hs(a,c),V!=null&&y.unshift($s(a,V,A))):r||(V=hs(a,c),V!=null&&y.push($s(a,V,A)))),a=a.return}y.length!==0&&e.push({event:t,listeners:y})}var R2=/\r\n?/g,z2=/\u0000|\uFFFD/g;function Dy(e){return(typeof e=="string"?e:""+e).replace(R2,`
49
+ `).replace(z2,"")}function Uy(e,t){return t=Dy(t),Dy(e)===t}function We(e,t,a,i,r,c){switch(a){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||di(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&di(e,""+i);break;case"className":Co(e,"class",i);break;case"tabIndex":Co(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Co(e,a,i);break;case"style":Uh(e,i,c);break;case"data":if(t!=="object"){Co(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(a);break}i=To(""+i),e.setAttribute(a,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(a==="formAction"?(t!=="input"&&We(e,t,"name",r.name,r,null),We(e,t,"formEncType",r.formEncType,r,null),We(e,t,"formMethod",r.formMethod,r,null),We(e,t,"formTarget",r.formTarget,r,null)):(We(e,t,"encType",r.encType,r,null),We(e,t,"method",r.method,r,null),We(e,t,"target",r.target,r,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(a);break}i=To(""+i),e.setAttribute(a,i);break;case"onClick":i!=null&&(e.onclick=$n);break;case"onScroll":i!=null&&qe("scroll",e);break;case"onScrollEnd":i!=null&&qe("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(o(61));if(a=i.__html,a!=null){if(r.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}a=To(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,""+i):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":i===!0?e.setAttribute(a,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,i):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(a,i):e.removeAttribute(a);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(a):e.setAttribute(a,i);break;case"popover":qe("beforetoggle",e),qe("toggle",e),Ao(e,"popover",i);break;case"xlinkActuate":Yn(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":Yn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":Yn(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":Yn(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":Yn(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":Yn(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":Yn(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":Yn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":Yn(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Ao(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=rx.get(a)||a,Ao(e,a,i))}}function rd(e,t,a,i,r,c){switch(a){case"style":Uh(e,i,c);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(o(61));if(a=i.__html,a!=null){if(r.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"children":typeof i=="string"?di(e,i):(typeof i=="number"||typeof i=="bigint")&&di(e,""+i);break;case"onScroll":i!=null&&qe("scroll",e);break;case"onScrollEnd":i!=null&&qe("scrollend",e);break;case"onClick":i!=null&&(e.onclick=$n);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Mh.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(r=a.endsWith("Capture"),t=a.slice(2,r?a.length-7:void 0),c=e[Vt]||null,c=c!=null?c[a]:null,typeof c=="function"&&e.removeEventListener(t,c,r),typeof i=="function")){typeof c!="function"&&c!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,i,r);break e}a in e?e[a]=i:i===!0?e.setAttribute(a,""):Ao(e,a,i)}}}function Ot(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":qe("error",e),qe("load",e);var i=!1,r=!1,c;for(c in a)if(a.hasOwnProperty(c)){var y=a[c];if(y!=null)switch(c){case"src":i=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:We(e,t,c,y,a,null)}}r&&We(e,t,"srcSet",a.srcSet,a,null),i&&We(e,t,"src",a.src,a,null);return;case"input":qe("invalid",e);var v=c=y=r=null,A=null,V=null;for(i in a)if(a.hasOwnProperty(i)){var ae=a[i];if(ae!=null)switch(i){case"name":r=ae;break;case"type":y=ae;break;case"checked":A=ae;break;case"defaultChecked":V=ae;break;case"value":c=ae;break;case"defaultValue":v=ae;break;case"children":case"dangerouslySetInnerHTML":if(ae!=null)throw Error(o(137,t));break;default:We(e,t,i,ae,a,null)}}Oh(e,c,v,A,V,y,r,!1);return;case"select":qe("invalid",e),i=y=c=null;for(r in a)if(a.hasOwnProperty(r)&&(v=a[r],v!=null))switch(r){case"value":c=v;break;case"defaultValue":y=v;break;case"multiple":i=v;default:We(e,t,r,v,a,null)}t=c,a=y,e.multiple=!!i,t!=null?ui(e,!!i,t,!1):a!=null&&ui(e,!!i,a,!0);return;case"textarea":qe("invalid",e),c=r=i=null;for(y in a)if(a.hasOwnProperty(y)&&(v=a[y],v!=null))switch(y){case"value":i=v;break;case"defaultValue":r=v;break;case"children":c=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(o(91));break;default:We(e,t,y,v,a,null)}zh(e,i,r,c);return;case"option":for(A in a)if(a.hasOwnProperty(A)&&(i=a[A],i!=null))switch(A){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:We(e,t,A,i,a,null)}return;case"dialog":qe("beforetoggle",e),qe("toggle",e),qe("cancel",e),qe("close",e);break;case"iframe":case"object":qe("load",e);break;case"video":case"audio":for(i=0;i<Ys.length;i++)qe(Ys[i],e);break;case"image":qe("error",e),qe("load",e);break;case"details":qe("toggle",e);break;case"embed":case"source":case"link":qe("error",e),qe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(V in a)if(a.hasOwnProperty(V)&&(i=a[V],i!=null))switch(V){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:We(e,t,V,i,a,null)}return;default:if(_c(t)){for(ae in a)a.hasOwnProperty(ae)&&(i=a[ae],i!==void 0&&rd(e,t,ae,i,a,void 0));return}}for(v in a)a.hasOwnProperty(v)&&(i=a[v],i!=null&&We(e,t,v,i,a,null))}function D2(e,t,a,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,c=null,y=null,v=null,A=null,V=null,ae=null;for(J in a){var oe=a[J];if(a.hasOwnProperty(J)&&oe!=null)switch(J){case"checked":break;case"value":break;case"defaultValue":A=oe;default:i.hasOwnProperty(J)||We(e,t,J,null,i,oe)}}for(var $ in i){var J=i[$];if(oe=a[$],i.hasOwnProperty($)&&(J!=null||oe!=null))switch($){case"type":c=J;break;case"name":r=J;break;case"checked":V=J;break;case"defaultChecked":ae=J;break;case"value":y=J;break;case"defaultValue":v=J;break;case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(o(137,t));break;default:J!==oe&&We(e,t,$,J,i,oe)}}xc(e,y,v,A,V,ae,c,r);return;case"select":J=y=v=$=null;for(c in a)if(A=a[c],a.hasOwnProperty(c)&&A!=null)switch(c){case"value":break;case"multiple":J=A;default:i.hasOwnProperty(c)||We(e,t,c,null,i,A)}for(r in i)if(c=i[r],A=a[r],i.hasOwnProperty(r)&&(c!=null||A!=null))switch(r){case"value":$=c;break;case"defaultValue":v=c;break;case"multiple":y=c;default:c!==A&&We(e,t,r,c,i,A)}t=v,a=y,i=J,$!=null?ui(e,!!a,$,!1):!!i!=!!a&&(t!=null?ui(e,!!a,t,!0):ui(e,!!a,a?[]:"",!1));return;case"textarea":J=$=null;for(v in a)if(r=a[v],a.hasOwnProperty(v)&&r!=null&&!i.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:We(e,t,v,null,i,r)}for(y in i)if(r=i[y],c=a[y],i.hasOwnProperty(y)&&(r!=null||c!=null))switch(y){case"value":$=r;break;case"defaultValue":J=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(o(91));break;default:r!==c&&We(e,t,y,r,i,c)}Rh(e,$,J);return;case"option":for(var we in a)if($=a[we],a.hasOwnProperty(we)&&$!=null&&!i.hasOwnProperty(we))switch(we){case"selected":e.selected=!1;break;default:We(e,t,we,null,i,$)}for(A in i)if($=i[A],J=a[A],i.hasOwnProperty(A)&&$!==J&&($!=null||J!=null))switch(A){case"selected":e.selected=$&&typeof $!="function"&&typeof $!="symbol";break;default:We(e,t,A,$,i,J)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ae in a)$=a[Ae],a.hasOwnProperty(Ae)&&$!=null&&!i.hasOwnProperty(Ae)&&We(e,t,Ae,null,i,$);for(V in i)if($=i[V],J=a[V],i.hasOwnProperty(V)&&$!==J&&($!=null||J!=null))switch(V){case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(o(137,t));break;default:We(e,t,V,$,i,J)}return;default:if(_c(t)){for(var et in a)$=a[et],a.hasOwnProperty(et)&&$!==void 0&&!i.hasOwnProperty(et)&&rd(e,t,et,void 0,i,$);for(ae in i)$=i[ae],J=a[ae],!i.hasOwnProperty(ae)||$===J||$===void 0&&J===void 0||rd(e,t,ae,$,i,J);return}}for(var L in a)$=a[L],a.hasOwnProperty(L)&&$!=null&&!i.hasOwnProperty(L)&&We(e,t,L,null,i,$);for(oe in i)$=i[oe],J=a[oe],!i.hasOwnProperty(oe)||$===J||$==null&&J==null||We(e,t,oe,$,i,J)}function Ly(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function U2(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),i=0;i<a.length;i++){var r=a[i],c=r.transferSize,y=r.initiatorType,v=r.duration;if(c&&v&&Ly(y)){for(y=0,v=r.responseEnd,i+=1;i<a.length;i++){var A=a[i],V=A.startTime;if(V>v)break;var ae=A.transferSize,oe=A.initiatorType;ae&&Ly(oe)&&(A=A.responseEnd,y+=ae*(A<v?1:(v-V)/(A-V)))}if(--i,t+=8*(c+y)/(r.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var cd=null,ud=null;function jr(e){return e.nodeType===9?e:e.ownerDocument}function By(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Hy(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function dd(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var fd=null;function L2(){var e=window.event;return e&&e.type==="popstate"?e===fd?!1:(fd=e,!0):(fd=null,!1)}var qy=typeof setTimeout=="function"?setTimeout:void 0,B2=typeof clearTimeout=="function"?clearTimeout:void 0,Gy=typeof Promise=="function"?Promise:void 0,H2=typeof queueMicrotask=="function"?queueMicrotask:typeof Gy<"u"?function(e){return Gy.resolve(null).then(e).catch(q2)}:qy;function q2(e){setTimeout(function(){throw e})}function qa(e){return e==="head"}function Qy(e,t){var a=t,i=0;do{var r=a.nextSibling;if(e.removeChild(a),r&&r.nodeType===8)if(a=r.data,a==="/$"||a==="/&"){if(i===0){e.removeChild(r),Qi(t);return}i--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")i++;else if(a==="html")Ks(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Ks(a);for(var c=a.firstChild;c;){var y=c.nextSibling,v=c.nodeName;c[ds]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&c.rel.toLowerCase()==="stylesheet"||a.removeChild(c),c=y}}else a==="body"&&Ks(e.ownerDocument.body);a=r}while(a);Qi(t)}function Iy(e,t){var a=e;e=0;do{var i=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),i&&i.nodeType===8)if(a=i.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=i}while(a)}function hd(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":hd(a),bc(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function G2(e,t,a,i){for(;e.nodeType===1;){var r=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[ds])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=_n(e.nextSibling),e===null)break}return null}function Q2(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=_n(e.nextSibling),e===null))return null;return e}function Vy(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=_n(e.nextSibling),e===null))return null;return e}function md(e){return e.data==="$?"||e.data==="$~"}function pd(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function I2(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var i=function(){t(),a.removeEventListener("DOMContentLoaded",i)};a.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function _n(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var yd=null;function Yy(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return _n(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function $y(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function Ky(e,t,a){switch(t=jr(a),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function Ks(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);bc(e)}var Sn=new Map,Xy=new Set;function Mr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ra=Y.d;Y.d={f:V2,r:Y2,D:$2,C:K2,L:X2,m:F2,X:P2,S:Z2,M:J2};function V2(){var e=ra.f(),t=br();return e||t}function Y2(e){var t=oi(e);t!==null&&t.tag===5&&t.type==="form"?dp(t):ra.r(e)}var Hi=typeof document>"u"?null:document;function Fy(e,t,a){var i=Hi;if(i&&typeof t=="string"&&t){var r=pn(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof a=="string"&&(r+='[crossorigin="'+a+'"]'),Xy.has(r)||(Xy.add(r),e={rel:e,crossOrigin:a,href:t},i.querySelector(r)===null&&(t=i.createElement("link"),Ot(t,"link",e),Et(t),i.head.appendChild(t)))}}function $2(e){ra.D(e),Fy("dns-prefetch",e,null)}function K2(e,t){ra.C(e,t),Fy("preconnect",e,t)}function X2(e,t,a){ra.L(e,t,a);var i=Hi;if(i&&e&&t){var r='link[rel="preload"][as="'+pn(t)+'"]';t==="image"&&a&&a.imageSrcSet?(r+='[imagesrcset="'+pn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(r+='[imagesizes="'+pn(a.imageSizes)+'"]')):r+='[href="'+pn(e)+'"]';var c=r;switch(t){case"style":c=qi(e);break;case"script":c=Gi(e)}Sn.has(c)||(e=b({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Sn.set(c,e),i.querySelector(r)!==null||t==="style"&&i.querySelector(Xs(c))||t==="script"&&i.querySelector(Fs(c))||(t=i.createElement("link"),Ot(t,"link",e),Et(t),i.head.appendChild(t)))}}function F2(e,t){ra.m(e,t);var a=Hi;if(a&&e){var i=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+pn(i)+'"][href="'+pn(e)+'"]',c=r;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Gi(e)}if(!Sn.has(c)&&(e=b({rel:"modulepreload",href:e},t),Sn.set(c,e),a.querySelector(r)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Fs(c)))return}i=a.createElement("link"),Ot(i,"link",e),Et(i),a.head.appendChild(i)}}}function Z2(e,t,a){ra.S(e,t,a);var i=Hi;if(i&&e){var r=ri(i).hoistableStyles,c=qi(e);t=t||"default";var y=r.get(c);if(!y){var v={loading:0,preload:null};if(y=i.querySelector(Xs(c)))v.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Sn.get(c))&&gd(e,a);var A=y=i.createElement("link");Et(A),Ot(A,"link",e),A._p=new Promise(function(V,ae){A.onload=V,A.onerror=ae}),A.addEventListener("load",function(){v.loading|=1}),A.addEventListener("error",function(){v.loading|=2}),v.loading|=4,Ar(y,t,i)}y={type:"stylesheet",instance:y,count:1,state:v},r.set(c,y)}}}function P2(e,t){ra.X(e,t);var a=Hi;if(a&&e){var i=ri(a).hoistableScripts,r=Gi(e),c=i.get(r);c||(c=a.querySelector(Fs(r)),c||(e=b({src:e,async:!0},t),(t=Sn.get(r))&&bd(e,t),c=a.createElement("script"),Et(c),Ot(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(r,c))}}function J2(e,t){ra.M(e,t);var a=Hi;if(a&&e){var i=ri(a).hoistableScripts,r=Gi(e),c=i.get(r);c||(c=a.querySelector(Fs(r)),c||(e=b({src:e,async:!0,type:"module"},t),(t=Sn.get(r))&&bd(e,t),c=a.createElement("script"),Et(c),Ot(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(r,c))}}function Zy(e,t,a,i){var r=(r=X.current)?Mr(r):null;if(!r)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=qi(a.href),a=ri(r).hoistableStyles,i=a.get(t),i||(i={type:"style",instance:null,count:0,state:null},a.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=qi(a.href);var c=ri(r).hoistableStyles,y=c.get(e);if(y||(r=r.ownerDocument||r,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,y),(c=r.querySelector(Xs(e)))&&!c._p&&(y.instance=c,y.state.loading=5),Sn.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Sn.set(e,a),c||W2(r,e,a,y.state))),t&&i===null)throw Error(o(528,""));return y}if(t&&i!==null)throw Error(o(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Gi(a),a=ri(r).hoistableScripts,i=a.get(t),i||(i={type:"script",instance:null,count:0,state:null},a.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function qi(e){return'href="'+pn(e)+'"'}function Xs(e){return'link[rel="stylesheet"]['+e+"]"}function Py(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function W2(e,t,a,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),Ot(t,"link",a),Et(t),e.head.appendChild(t))}function Gi(e){return'[src="'+pn(e)+'"]'}function Fs(e){return"script[async]"+e}function Jy(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+pn(a.href)+'"]');if(i)return t.instance=i,Et(i),i;var r=b({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),Et(i),Ot(i,"style",r),Ar(i,a.precedence,e),t.instance=i;case"stylesheet":r=qi(a.href);var c=e.querySelector(Xs(r));if(c)return t.state.loading|=4,t.instance=c,Et(c),c;i=Py(a),(r=Sn.get(r))&&gd(i,r),c=(e.ownerDocument||e).createElement("link"),Et(c);var y=c;return y._p=new Promise(function(v,A){y.onload=v,y.onerror=A}),Ot(c,"link",i),t.state.loading|=4,Ar(c,a.precedence,e),t.instance=c;case"script":return c=Gi(a.src),(r=e.querySelector(Fs(c)))?(t.instance=r,Et(r),r):(i=a,(r=Sn.get(c))&&(i=b({},a),bd(i,r)),e=e.ownerDocument||e,r=e.createElement("script"),Et(r),Ot(r,"link",i),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,Ar(i,a.precedence,e));return t.instance}function Ar(e,t,a){for(var i=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=i.length?i[i.length-1]:null,c=r,y=0;y<i.length;y++){var v=i[y];if(v.dataset.precedence===t)c=v;else if(c!==r)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function gd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function bd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Cr=null;function Wy(e,t,a){if(Cr===null){var i=new Map,r=Cr=new Map;r.set(a,i)}else r=Cr,i=r.get(a),i||(i=new Map,r.set(a,i));if(i.has(e))return i;for(i.set(e,null),a=a.getElementsByTagName(e),r=0;r<a.length;r++){var c=a[r];if(!(c[ds]||c[At]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var y=c.getAttribute(t)||"";y=e+y;var v=i.get(y);v?v.push(c):i.set(y,[c])}}return i}function eg(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function ew(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function tg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function tw(e,t,a,i){if(a.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var r=qi(i.href),c=t.querySelector(Xs(r));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Nr.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=c,Et(c);return}c=t.ownerDocument||t,i=Py(i),(r=Sn.get(r))&&gd(i,r),c=c.createElement("link"),Et(c);var y=c;y._p=new Promise(function(v,A){y.onload=v,y.onerror=A}),Ot(c,"link",i),a.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Nr.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var vd=0;function nw(e,t){return e.stylesheets&&e.count===0&&Or(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var i=setTimeout(function(){if(e.stylesheets&&Or(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&vd===0&&(vd=62500*U2());var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Or(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>vd?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(r)}}:null}function Nr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Or(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Tr=null;function Or(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Tr=new Map,t.forEach(aw,e),Tr=null,Nr.call(e))}function aw(e,t){if(!(t.state.loading&4)){var a=Tr.get(e);if(a)var i=a.get(null);else{a=new Map,Tr.set(e,a);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<r.length;c++){var y=r[c];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(a.set(y.dataset.precedence,y),i=y)}i&&a.set(null,i)}r=t.instance,y=r.getAttribute("data-precedence"),c=a.get(y)||i,c===i&&a.set(null,r),a.set(y,r),this.count++,i=Nr.bind(this),r.addEventListener("load",i),r.addEventListener("error",i),c?c.parentNode.insertBefore(r,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=4}}var Zs={$$typeof:D,Provider:null,Consumer:null,_currentValue:q,_currentValue2:q,_threadCount:0};function lw(e,t,a,i,r,c,y,v,A){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=hl(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=hl(0),this.hiddenUpdates=hl(null),this.identifierPrefix=i,this.onUncaughtError=r,this.onCaughtError=c,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.incompleteTransitions=new Map}function ng(e,t,a,i,r,c,y,v,A,V,ae,oe){return e=new lw(e,t,a,y,A,V,ae,oe,v),t=1,c===!0&&(t|=24),c=nn(3,null,null,t),e.current=c,c.stateNode=e,t=Jc(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:i,isDehydrated:a,cache:t},nu(c),e}function ag(e){return e?(e=bi,e):bi}function lg(e,t,a,i,r,c){r=ag(r),i.context===null?i.context=r:i.pendingContext=r,i=Ca(t),i.payload={element:a},c=c===void 0?null:c,c!==null&&(i.callback=c),a=Na(e,i,t),a!==null&&(Zt(a,e,t),As(a,e,t))}function ig(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function xd(e,t){ig(e,t),(e=e.alternate)&&ig(e,t)}function sg(e){if(e.tag===13||e.tag===31){var t=bl(e,67108864);t!==null&&Zt(t,e,67108864),xd(e,67108864)}}function og(e){if(e.tag===13||e.tag===31){var t=rn();t=pc(t);var a=bl(e,t);a!==null&&Zt(a,e,t),xd(e,t)}}var Rr=!0;function iw(e,t,a,i){var r=_.T;_.T=null;var c=Y.p;try{Y.p=2,wd(e,t,a,i)}finally{Y.p=c,_.T=r}}function sw(e,t,a,i){var r=_.T;_.T=null;var c=Y.p;try{Y.p=8,wd(e,t,a,i)}finally{Y.p=c,_.T=r}}function wd(e,t,a,i){if(Rr){var r=_d(i);if(r===null)od(e,t,i,zr,a),cg(e,i);else if(rw(r,e,t,a,i))i.stopPropagation();else if(cg(e,i),t&4&&-1<ow.indexOf(e)){for(;r!==null;){var c=oi(r);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var y=ct(c.pendingLanes);if(y!==0){var v=c;for(v.pendingLanes|=2,v.entangledLanes|=2;y;){var A=1<<31-he(y);v.entanglements[1]|=A,y&=~A}Dn(c),(Xe&6)===0&&(yr=ot()+500,Vs(0))}}break;case 31:case 13:v=bl(c,2),v!==null&&Zt(v,c,2),br(),xd(c,2)}if(c=_d(i),c===null&&od(e,t,i,zr,a),c===r)break;r=c}r!==null&&i.stopPropagation()}else od(e,t,i,null,a)}}function _d(e){return e=kc(e),Sd(e)}var zr=null;function Sd(e){if(zr=null,e=si(e),e!==null){var t=d(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=h(t),e!==null)return e;e=null}else if(a===31){if(e=m(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return zr=e,null}function rg(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Eo()){case us:return 2;case ai:return 8;case dl:case li:return 32;case it:return 268435456;default:return 32}default:return 32}}var kd=!1,Ga=null,Qa=null,Ia=null,Ps=new Map,Js=new Map,Va=[],ow="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function cg(e,t){switch(e){case"focusin":case"focusout":Ga=null;break;case"dragenter":case"dragleave":Qa=null;break;case"mouseover":case"mouseout":Ia=null;break;case"pointerover":case"pointerout":Ps.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Js.delete(t.pointerId)}}function Ws(e,t,a,i,r,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:a,eventSystemFlags:i,nativeEvent:c,targetContainers:[r]},t!==null&&(t=oi(t),t!==null&&sg(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function rw(e,t,a,i,r){switch(t){case"focusin":return Ga=Ws(Ga,e,t,a,i,r),!0;case"dragenter":return Qa=Ws(Qa,e,t,a,i,r),!0;case"mouseover":return Ia=Ws(Ia,e,t,a,i,r),!0;case"pointerover":var c=r.pointerId;return Ps.set(c,Ws(Ps.get(c)||null,e,t,a,i,r)),!0;case"gotpointercapture":return c=r.pointerId,Js.set(c,Ws(Js.get(c)||null,e,t,a,i,r)),!0}return!1}function ug(e){var t=si(e.target);if(t!==null){var a=d(t);if(a!==null){if(t=a.tag,t===13){if(t=h(a),t!==null){e.blockedOn=t,kh(e.priority,function(){og(a)});return}}else if(t===31){if(t=m(a),t!==null){e.blockedOn=t,kh(e.priority,function(){og(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Dr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=_d(e.nativeEvent);if(a===null){a=e.nativeEvent;var i=new a.constructor(a.type,a);Sc=i,a.target.dispatchEvent(i),Sc=null}else return t=oi(a),t!==null&&sg(t),e.blockedOn=a,!1;t.shift()}return!0}function dg(e,t,a){Dr(e)&&a.delete(t)}function cw(){kd=!1,Ga!==null&&Dr(Ga)&&(Ga=null),Qa!==null&&Dr(Qa)&&(Qa=null),Ia!==null&&Dr(Ia)&&(Ia=null),Ps.forEach(dg),Js.forEach(dg)}function Ur(e,t){e.blockedOn===t&&(e.blockedOn=null,kd||(kd=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,cw)))}var Lr=null;function fg(e){Lr!==e&&(Lr=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Lr===e&&(Lr=null);for(var t=0;t<e.length;t+=3){var a=e[t],i=e[t+1],r=e[t+2];if(typeof i!="function"){if(Sd(i||a)===null)continue;break}var c=oi(a);c!==null&&(e.splice(t,3),t-=3,_u(c,{pending:!0,data:r,method:a.method,action:i},i,r))}}))}function Qi(e){function t(A){return Ur(A,e)}Ga!==null&&Ur(Ga,e),Qa!==null&&Ur(Qa,e),Ia!==null&&Ur(Ia,e),Ps.forEach(t),Js.forEach(t);for(var a=0;a<Va.length;a++){var i=Va[a];i.blockedOn===e&&(i.blockedOn=null)}for(;0<Va.length&&(a=Va[0],a.blockedOn===null);)ug(a),a.blockedOn===null&&Va.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(i=0;i<a.length;i+=3){var r=a[i],c=a[i+1],y=r[Vt]||null;if(typeof c=="function")y||fg(a);else if(y){var v=null;if(c&&c.hasAttribute("formAction")){if(r=c,y=c[Vt]||null)v=y.formAction;else if(Sd(r)!==null)continue}else v=y.action;typeof v=="function"?a[i+1]=v:(a.splice(i,3),i-=3),fg(a)}}}function hg(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(y){return r=y})},focusReset:"manual",scroll:"manual"})}function t(){r!==null&&(r(),r=null),i||setTimeout(a,20)}function a(){if(!i&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,r=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),r!==null&&(r(),r=null)}}}function Ed(e){this._internalRoot=e}Br.prototype.render=Ed.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var a=t.current,i=rn();lg(a,i,e,t,null,null)},Br.prototype.unmount=Ed.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;lg(e.current,2,null,e,null,null),br(),t[ii]=null}};function Br(e){this._internalRoot=e}Br.prototype.unstable_scheduleHydration=function(e){if(e){var t=Sh();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Va.length&&t!==0&&t<Va[a].priority;a++);Va.splice(a,0,e),a===0&&ug(e)}};var mg=l.version;if(mg!=="19.2.6")throw Error(o(527,mg,"19.2.6"));Y.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=g(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var uw={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Hr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Hr.isDisabled&&Hr.supportsFiber)try{va=Hr.inject(uw),zt=Hr}catch{}}return to.createRoot=function(e,t){if(!u(e))throw Error(o(299));var a=!1,i="",r=wp,c=_p,y=Sp;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(y=t.onRecoverableError)),t=ng(e,1,!1,null,null,a,i,null,r,c,y,hg),e[ii]=t.current,sd(e),new Ed(t)},to.hydrateRoot=function(e,t,a){if(!u(e))throw Error(o(299));var i=!1,r="",c=wp,y=_p,v=Sp,A=null;return a!=null&&(a.unstable_strictMode===!0&&(i=!0),a.identifierPrefix!==void 0&&(r=a.identifierPrefix),a.onUncaughtError!==void 0&&(c=a.onUncaughtError),a.onCaughtError!==void 0&&(y=a.onCaughtError),a.onRecoverableError!==void 0&&(v=a.onRecoverableError),a.formState!==void 0&&(A=a.formState)),t=ng(e,1,!0,t,a??null,i,r,A,c,y,v,hg),t.context=ag(null),a=t.current,i=rn(),i=pc(i),r=Ca(i),r.callback=null,Na(a,r,i),a=i,t.current.lanes=a,xa(t,a),Dn(t),e[ii]=t.current,sd(e),new Br(t)},to.version="19.2.6",to}var Eg;function xw(){if(Eg)return Cd.exports;Eg=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(l){console.error(l)}}return n(),Cd.exports=vw(),Cd.exports}var ww=xw();function _w(n){if(!n)return null;const l=n.split("~"),s=l[0];if(!s)return null;if(l.length===1)return{kind:"section",instanceId:s};const o=l[1];if(!o)return null;const u=l[2],d=u!==void 0?Number(u):NaN;return{kind:"slot",instanceId:s,slotId:o,...Number.isInteger(d)?{itemIndex:d}:{}}}function Sw(n){if(!n)return null;if(n.kind==="section")return n.instanceId;const l=`${n.instanceId}~${n.slotId}`;return n.itemIndex!==void 0?`${l}~${n.itemIndex}`:l}function kw(n,l){const s=new URL(l).pathname,o=s.endsWith("/")?s:`${s}/`;return`${n}/`===o?"":n.startsWith(o)?n.slice(o.length):null}function Ew(n,l){const[s,o,u,d,...h]=n.split("/").filter(Boolean);if(s!=="fixtures"||!o||u!=="canvas"||h.length>0)return null;const m=new URLSearchParams(l);return{fixture:decodeURIComponent(o),canvasId:d?decodeURIComponent(d):null,format:m.get("format"),selection:_w(m.get("sel"))}}function jw(n){var s;const l=n.fixtures[0];return l===void 0?null:{fixture:l.id,canvasId:((s=n.template.canvases[0])==null?void 0:s.id)??null,format:null,selection:null}}function jg(n){const l=n.canvasId===null?"canvas":`canvas/${encodeURIComponent(n.canvasId)}`,s=`fixtures/${encodeURIComponent(n.fixture)}/${l}`,o=new URLSearchParams;n.format!==null&&o.set("format",n.format);const u=Sw(n.selection);u&&o.set("sel",u);const d=o.toString();return d?`${s}?${d}`:s}function gb(n,l){var s;return((s=n.parentElement)==null?void 0:s.closest(`[${l.slotId}],[${l.slotField}]`))??null}function ya(n,l){return!n.hasAttribute(l.slotUnselectable)}function bb(n,l,s,o){const u=[];for(const d of Array.from(n.querySelectorAll(l)))gb(d,o)===s&&u.push(d);return u}function Hf(n,l,s){return bb(n,`[${s.slotItem}="${String(l)}"]`,n,s)}function Mg(n,l,s,o){var d;let u=n.closest(`[${l}]`);for(;u&&s.contains(u);){if(ya(u,o)&&gb(u,o)===s)return u;u=((d=u.parentElement)==null?void 0:d.closest(`[${l}]`))??null}return null}const Rd=1,Mw=12;function Aw(n,l){return{"--we-r-top":`${n.top}px`,"--we-r-left":`${n.left}px`,"--we-r-w":`${n.width}px`,"--we-r-h":`${n.height}px`,"--we-r-off":`${l}px`}}function Cw(n){const l=rc(n);return l.width<=0||l.height<=0?!1:!Nw(n,l)}function Ag(n){return n==="hidden"||n==="scroll"||n==="auto"||n==="clip"}function Nw(n,l){const s=n.ownerDocument.defaultView;if(!s)return!1;let o=-1/0,u=-1/0,d=1/0,h=1/0;for(let g=n.parentElement;g;g=g.parentElement){const x=s.getComputedStyle(g),b=Ag(x.overflowX||x.overflow),k=Ag(x.overflowY||x.overflow);if(!b&&!k)continue;const S=g.getBoundingClientRect();b&&(u=Math.max(u,S.left),d=Math.min(d,S.right)),k&&(o=Math.max(o,S.top),h=Math.min(h,S.bottom))}const m=l.left+l.width<=u||l.left>=d,p=l.top+l.height<=o||l.top>=h;return m||p}function rc(n){const l=n.getBoundingClientRect();if(l.width>0&&l.height>0)return l;let s=1/0,o=1/0,u=-1/0,d=-1/0,h=!1;for(const m of Array.from(n.children)){const p=rc(m);p.width<=0||p.height<=0||(h=!0,s=Math.min(s,p.top),o=Math.min(o,p.left),u=Math.max(u,p.right),d=Math.max(d,p.bottom))}return h?new DOMRect(o,s,u-o,d-s):l}function vb(n,l,s,o){if(!n)return;if(!l){Fr(n);return}const u=Aw(rc(l),s);for(const[d,h]of Object.entries(u))n.style.setProperty(d,h);o&&n.setAttribute("data-kind",o),n.setAttribute("data-active","true")}function Fr(n){n&&(n.removeAttribute("data-active"),n.removeAttribute("data-kind"))}function Cg(n,l,s,o){if(!n)return[];const u=n.ownerDocument,d=Array.from(n.querySelectorAll(".we-chrome-ring--selection")),h=n.querySelector(":scope > .we-chrome-label");for(;d.length<l.length;){const m=u.createElement("div");m.className="we-chrome-ring we-chrome-ring--selection",n.insertBefore(m,h),d.push(m)}d.forEach((m,p)=>vb(m,l[p]??null,s,o));for(const m of d.slice(Math.max(l.length,1)))m.remove();return d.slice(0,l.length)}function Tw(n,l,s){if(!n)return;if(!l||!s){Fd(n);return}const o=rc(l),u=n.getAttribute("data-active")==="true",d=n.textContent!==s;n.textContent=s,n.style.setProperty("--we-l-top",`${o.top}px`),n.style.setProperty("--we-l-left",`${o.left}px`),n.style.setProperty("--we-l-indent",`${Mw}px`),u&&d&&(n.removeAttribute("data-active"),n.offsetWidth),n.setAttribute("data-active","true")}function Fd(n){n&&(n.removeAttribute("data-active"),n.textContent="")}function Kl(n){return typeof CSS<"u"&&CSS.escape?CSS.escape(n):n.replace(/[^a-zA-Z0-9_-]/g,l=>`\\${l}`)}function qf(n){const l=n.filter(s=>Cw(s));return l.length>0?l:n.slice(0,1)}function xb(n,l,s){const o=Array.from(n.querySelectorAll(`[${s.slotId}="${Kl(l)}"]`)).filter(u=>ya(u,s));return qf(o)}function Ow(n,l,s){if(!l||l.kind!=="slot"||l.item_index==null)return[];const o=[];for(const u of n)o.push(...Hf(u,l.item_index,s).filter(d=>ya(d,s)));return qf(o)}function wb(n,l,s){if(!l)return[];const o=n.querySelector(`[${s.sectionInstanceId}="${Kl(l.instance_id)}"]`);if(!o)return[];if(l.kind==="section")return[o];const u=xb(o,l.slot_id,s);if(u.length===0)return[];if(l.item_index!=null||l.field_name){const d=l.field_name?`[${s.slotField}="${Kl(l.field_name)}"]`:null,h=[];for(const m of u){let p=[m];if(!(l.item_index!=null&&(p=Hf(m,l.item_index,s).filter(g=>ya(g,s)),p.length===0)))for(const g of p)if(d){const x=bb(g,d,m,s).filter(b=>ya(b,s));if(x.length>0){h.push(...x);continue}g!==m&&h.push(g)}else h.push(g)}if(h.length>0)return qf(h)}return u.map(d=>{const h=d.closest(`[${s.slotGroup}]`);return h&&ya(h,s)?h:d})}function Rw(n,l,s){return wb(n,l,s)[0]??null}const Ng="we-enh-shield",zw="we-enh-shield--item",Ii="data-we-live";function Dw(n,l,s){if(!l||l.kind!=="slot"||l.item_index==null)return[];const o=[];for(const u of _b(n,l,s))o.push(...Hf(u,l.item_index,s).filter(d=>ya(d,s)));return o}function _b(n,l,s){if(!l||l.kind!=="slot")return[];const o=n.querySelector(`[${s.sectionInstanceId}="${Kl(l.instance_id)}"]`);return o?Array.from(o.querySelectorAll(`[${s.slotId}="${Kl(l.slot_id)}"]`)):[]}function Uw(n,l,s){if(n.querySelectorAll(`[${Ii}]`).forEach(u=>u.removeAttribute(Ii)),!l)return;const o=n.querySelector(`[${s.sectionInstanceId}="${Kl(l.instance_id)}"]`);if(o)if(l.kind==="section")o.setAttribute(Ii,"true");else{const u=Dw(n,l,s),d=u.length>0?u:_b(n,l,s).filter(h=>ya(h,s));for(const h of d)h.setAttribute(Ii,"true")}}const Yl=1440,Tg=Math.round(Yl*9/16),Sb=14,Gf="we-frame-defaults";function Lw(n){return`
50
+ /* Section wrapper -- structure only. No selection chrome here;
51
+ rings are painted by the host's overlay. Zero margin
52
+ + padding means sections butt edge-to-edge, matching publisher. */
53
+ [${n}] {
54
+ position: relative;
55
+ margin: 0;
56
+ padding: 0;
57
+ cursor: pointer;
58
+ display: grid;
59
+ grid-template-rows: 1fr;
60
+ /* Reveal transition — governs the hidden→visible direction because
61
+ CSS uses the destination state's transition property. Spring easing
62
+ gives a snappy entrance. */
63
+ transition:
64
+ grid-template-rows 200ms cubic-bezier(0.16, 1, 0.3, 1),
65
+ opacity 180ms cubic-bezier(0.16, 1, 0.3, 1);
66
+ }
67
+
68
+ /* Hidden state -- collapse the section out of the page so it reflows shut.
69
+ The 0-height wrapper stays in flow as the anchor for the section's
70
+ floating edge tab (built by the host in its own document). */
71
+ [${n}][data-hidden="true"] {
72
+ grid-template-rows: 0fr;
73
+ opacity: 0;
74
+ pointer-events: none;
75
+ /* Collapse transition — governs the visible→hidden direction.
76
+ Faster + accelerating so the hide feels decisive. */
77
+ transition:
78
+ grid-template-rows 150ms cubic-bezier(0.4, 0, 1, 1),
79
+ opacity 120ms cubic-bezier(0.4, 0, 1, 1);
80
+ }
81
+
82
+ /* Per-section body holds the API HTML.
83
+ 1. position:relative gives the body a positioning context for any
84
+ body-scoped chrome or future body-only effects.
85
+ 2. isolation:isolate SEALS the section's z-index hierarchy
86
+ inside this stacking context. Without it, any positioned
87
+ descendant with z-index > 0 (the header's sticky+z-50, a
88
+ dropdown's z-40, a sticky CTA) creates a stacking context
89
+ that escapes upward. Sections never need to know the
90
+ editor chrome exists -- internal z-index is unconstrained. */
91
+ /* overflow:hidden clips section content as the grid row collapses;
92
+ min-height:0 lets the grid child shrink below its content size.
93
+ Constraint: overflow:hidden is permanent (not just during animation), so
94
+ section content must not overflow its section-body boundary — sticky
95
+ elements, absolutely-positioned dropdowns, or shadows that bleed outside
96
+ the section edge will be silently clipped. Template sections are
97
+ self-contained blocks; this is safe in practice. */
98
+ .we-section-body { position: relative; isolation: isolate; overflow: hidden; min-height: 0; }`}function Bw(n){return`
99
+ [${n}] {
100
+ display: contents;
101
+ /* Computed even while boxless, so the collapse below has a 1fr start
102
+ value to animate from the instant the hidden box appears. */
103
+ grid-template-rows: 1fr;
104
+ cursor: pointer;
105
+ }
106
+ [${n}] > .we-section-body { display: contents; }
107
+
108
+ /* Hidden state -- the wrapper takes a real box again: a zero-height grid
109
+ item in the frame column, collapsing the section out of the page while
110
+ staying in flow as the anchor for its edge tab. display is not
111
+ transitioned, so the box appears at 1fr immediately and the collapse
112
+ animates its full run; the reveal returns to display:contents at once —
113
+ a boxless wrapper has nothing to animate, so re-entry is instant by
114
+ design. */
115
+ [${n}][data-hidden="true"] {
116
+ display: grid;
117
+ grid-template-rows: 0fr;
118
+ opacity: 0;
119
+ pointer-events: none;
120
+ transition:
121
+ grid-template-rows 150ms cubic-bezier(0.4, 0, 1, 1),
122
+ opacity 120ms cubic-bezier(0.4, 0, 1, 1);
123
+ }
124
+ [${n}][data-hidden="true"] > .we-section-body {
125
+ display: block;
126
+ overflow: hidden;
127
+ min-height: 0;
128
+ }
129
+
130
+ /* The frame stylesheet imposes flex-shrink:0 on the column's items from
131
+ outside the section; with the wrapper boxless the section IS that item,
132
+ so the same imposition lands here. Layered so an author utility on the
133
+ section root still wins, exactly as it does against the stylesheet's own
134
+ copy of this rule. */
135
+ @layer ${Gf} {
136
+ [${n}] > .we-section-body > * { flex-shrink: 0; }
137
+ }`}function Hw(n,l){const s=l?`#we-page {
138
+ padding: 0;
139
+ }`:`#we-page {
140
+ width: ${Yl}px;
141
+ min-height: ${Tg}px;
142
+ overflow: hidden;
143
+ border-radius: ${Sb}px;
144
+ background: #f5f3ee;
145
+ padding: 0;
146
+ }
147
+ /* The window this card stands for. The card's WIDTH is a real viewport, so
148
+ vw units and width queries need nothing from us; its HEIGHT is the page's
149
+ own measurement, which makes 100svh circular here — a section sized from it
150
+ asks for a window its own height is what produced, and climbs on every
151
+ pass. The kit's --tr-window-h token is the seam that ends it: a section
152
+ writes the token instead of the unit, and here it is the screen this card
153
+ is cut from (the floor above), a constant that settles in one pass.
154
+ Declared UNLAYERED, unlike the document defaults: this is not a fallback a
155
+ template may better, it is what the window IS on this surface, and the
156
+ kit's own declaration of the token is unlayered too. A page box takes none
157
+ of this — a frame document is given the window its format declares, so
158
+ 100svh there is already the truth. */
159
+ :root {
160
+ --tr-window-h: ${Tg}px;
161
+ }`;return`
162
+ html, body {
163
+ margin: 0;
164
+ /* The host owns the scroll container; this document never scrolls —
165
+ not even programmatically (overflow: clip pins scrollTop to 0), so a
166
+ transient gap while the host syncs the iframe's height to the page
167
+ can never flash a scrollbar or shift a measured rect. */
168
+ overflow: clip;
169
+ }
170
+ /* Document defaults, NOT document truth: the theme's own body mapping is
171
+ what the published page renders with, so it must win here too — fonts and
172
+ wraps in the frame diverge from capture otherwise. The layer (pre-declared
173
+ by the srcdoc, see FRAME_DEFAULTS_LAYER) is what makes these lose to any
174
+ template declaration. */
175
+ @layer ${Gf} {
176
+ html, body {
177
+ background: transparent;
178
+ }
179
+ body {
180
+ color: #14180F;
181
+ font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
182
+ }
183
+ }
184
+ ${s}
185
+ ${l?Bw(n.sectionInstanceId):Lw(n.sectionInstanceId)}
186
+
187
+ /* Slot wrapper -- structure only. No outline here; the host's overlay
188
+ ring handles slot hover + selection too. */
189
+ [${n.slotId}] {
190
+ cursor: pointer;
191
+ }
192
+
193
+ /* Slot-group container -- the gaps between grouped members (dividers,
194
+ padding) carry no slot id, so give the group container itself
195
+ the pointer cursor: the whole group reads as one clickable unit, and
196
+ the overlay ring outlines this container. */
197
+ [${n.slotGroup}],
198
+ [${n.slotItem}] {
199
+ cursor: pointer;
200
+ }
201
+
202
+ /* Deliberately NO position default on the marker elements: published pages
203
+ and captured artifacts set no position on them, so an unpositioned slot
204
+ must compute static here too — a relative default (even layered, losing
205
+ to author utilities) re-anchored an author's absolutely positioned
206
+ descendant to the slot on this surface while the published page anchored
207
+ it farther up, and could shift stacking the same way. Nothing in the
208
+ chrome needs it: rings measure client rects from the host overlay, and
209
+ everything that mounts absolute chrome inside the frame (island shields,
210
+ the crop spinner) checks the surface's computed position and forces an
211
+ inline relative itself. */
212
+
213
+ @media (prefers-reduced-motion: reduce) {
214
+ [${n.sectionInstanceId}] {
215
+ transition: none !important;
216
+ }
217
+ }
218
+
219
+ /* Render-error placeholder ------------------------------------- */
220
+ .we-render-error {
221
+ margin: 8px 0;
222
+ padding: 24px 16px;
223
+ border-radius: 6px;
224
+ border: 1px dashed #ebebe6;
225
+ background: #ffffff;
226
+ color: #8a877e;
227
+ font-size: 12.5px;
228
+ }
229
+ .we-render-error__title {
230
+ margin: 0;
231
+ color: #4a4842;
232
+ font-weight: 500;
233
+ }
234
+ .we-render-error__detail {
235
+ margin: 4px 0 0 0;
236
+ color: #b9b6ab;
237
+ font-size: 11.5px;
238
+ }
239
+
240
+ /* Island interaction shield: a transparent click layer derived from a live
241
+ island's own markup (island-shields.ts) — a base shield per island root box,
242
+ an item shield per rendered collection-item copy. Present until the shield's
243
+ owner carries the live-owner stamp; a click on a shield falls through to the
244
+ editor's resolver, which selects the nearest marked ancestor. Base z-index 1
245
+ sits on the island content's plane but below floating content that must stay
246
+ clickable at z-index 2 (e.g. the neighborhood card over the map canvas). Item
247
+ shields ride one plane above the base, so a click over an item copy hits the
248
+ ITEM's shield and one click selects that item. */
249
+ .${Ng} {
250
+ position: absolute;
251
+ inset: 0;
252
+ z-index: 1;
253
+ cursor: pointer;
254
+ background: transparent;
255
+ }
256
+ .${zw} { z-index: 2; }
257
+ [${Ii}] .${Ng} { display: none; }
258
+
259
+ /* Image slider: until the slider's \`images\` slot is the live selection, its
260
+ z-index:2 nav arrows would paint above the z-index:1 shield and stay
261
+ clickable, escaping the select-first gate. Disable them so the shield
262
+ catches the first click; restored once .tr-slider carries data-we-live.
263
+ Editor-only — deliberately not in published tokens.css. */
264
+ .tr-slider:not([${Ii}]) .tr-slider__nav { pointer-events: none; }
265
+ `}function qw(n,l){const o=n/Yl,u=Number.POSITIVE_INFINITY;return Math.max(.05,Math.min(.9,.72*o,.1926*o+.54,u))}const Gw=420,Og=.92;function Qw(n,l,s){if(!s)return n;const o=Math.max(n,Gw/s.width),u=Math.min(.9,n*Yl/s.width,Og*l.availableWidthPx/s.width,Og*l.availableHeightPx/s.height);return Math.max(.05,Math.min(o,u))}function Rg(n,l,s){var u;let o=n.closest(`[${l}]`);for(;o&&!ya(o,s);)o=((u=o.parentElement)==null?void 0:u.closest(`[${l}]`))??null;return o}function Iw(n,l,s){for(const o of Array.from(n.querySelectorAll(`[${s.markers.slotId}]`))){if(o.closest(`[${s.markers.slotGroup}]`)!==n)continue;const u=o.getAttribute(s.markers.slotId);if(u&&s.isSlotEditable(l,u))return u}return null}function Vw(n,l,s){if(!n)return null;const o=n.closest(`[${s.markers.sectionInstanceId}]`),u=o==null?void 0:o.getAttribute(s.markers.sectionInstanceId);if(!o||!u)return null;const d=l.find(j=>j.instance_id===u),h={selection:{kind:"section",instance_id:u},element:o};if(!d)return h;const m=Rg(n,s.markers.slotGroup,s.markers);if(m&&o.contains(m)){const j=Iw(m,u,s);return j?{selection:{kind:"slot",instance_id:u,slot_id:j},element:m}:h}const p=Rg(n,s.markers.slotId,s.markers),g=p==null?void 0:p.getAttribute(s.markers.slotId);if(!p||!g||!s.isSlotEditable(u,g))return h;const x=Mg(n,s.markers.slotItem,p,s.markers),b=x?Number(x.getAttribute(s.markers.slotItem)):NaN,k=Number.isInteger(b)?b:void 0,S=Mg(n,s.markers.slotField,p,s.markers),R=(S==null?void 0:S.getAttribute(s.markers.slotField))??null,C=R&&s.isSlotEditable(u,g,R)?R:null;return{selection:{kind:"slot",instance_id:u,slot_id:g,...k!==void 0?{item_index:k}:{},...C?{field_name:C}:{}},element:(C?S:null)??x??p}}function Zd(n){return n.section_display_name?n.section_display_name:n.section_key.split("-").map(l=>l&&l[0].toUpperCase()+l.slice(1)).join(" ")}function Yw(n){if(!n)return"null";let l=2166136261;for(let s=0;s<n.length;s++)l^=n.charCodeAt(s),l=Math.imul(l,16777619);return(l>>>0).toString(16)}function kb(n,l){var d;const s=l.createElement("div");s.className="we-render-error";const o=l.createElement("p");o.className="we-render-error__title",o.textContent="Couldn’t render this section.";const u=l.createElement("p");return u.className="we-render-error__detail",u.textContent=((d=n.render_error)==null?void 0:d.message)??"Unknown render error.",s.appendChild(o),s.appendChild(u),s}function $w(n,l,s,o){const u=l.createElement("div");u.setAttribute(s.sectionInstanceId,n.instance_id),u.setAttribute("data-section-label",Zd(n)),u.dataset.svId=n.section_version_id,u.dataset.htmlHash=Yw(n.html);const d=l.createElement("div");return d.className="we-section-body",n.render_error||n.html===null?d.appendChild(kb(n,l)):d.innerHTML=o(n.html),u.appendChild(d),u}function zg(n){return JSON.stringify(n).replace(/</g,"\\u003c").replace(/>/g,"\\u003e").replace(/&/g,"\\u0026")}const Kw="tr-frame";function zd(n){return n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function Xw(n,l){const s=Object.entries(l).map(([o,u])=>`${o}:${u}`).join(";");return{class:Kw,dataFormat:n,style:s}}function Fw(n){if(!n)return"";const l=Xw(n.formatId,n.tokens);return` class="${zd(l.class)}" data-format="${zd(l.dataFormat)}" style="${zd(l.style)}"`}function Zw(n){if(Object.keys(n.islandMap).length===0)return"";if(Object.keys(n.importMap).length===0&&!n.hostResolvesOwnImports)return console.error("canvas: this template version has islands but no import map, so nothing can resolve their React — sections render statically. Republish the template to emit the vendor."),"";const l=n.hostScriptSrc?`
266
+ <script id="tr-island-host" type="module" src="${n.hostScriptSrc}"><\/script>`:"";return`${Object.keys(n.importMap).length===0?"":`
267
+ <script type="importmap">${zg({imports:n.importMap})}<\/script>`}
268
+ <script>window.__TR_ISLAND_MAP=${zg(n.islandMap)};<\/script>
269
+ <!-- id is the contract the host's readiness gate keys off — it waits on THIS
270
+ element's load event, not a timeout, so a slow cold first load still
271
+ activates without a refresh. -->${l}`}function Pw(n,l){return n.replaceAll("/section-assets/",`${l}runtime/section-asset/`)}function Jw(n,l,s){const o=n.stylesheets.map(u=>`<link rel="stylesheet" href="${u}">`).join("");return`<!doctype html>
272
+ <html>
273
+ <head>
274
+ <meta charset="utf-8">
275
+ <base href="${n.basePath}">
276
+ <!-- Cascade-layer order is fixed by FIRST declaration, document-wide. The
277
+ kernel's document defaults must lose to everything a template declares,
278
+ so their layer is pre-declared here, before any template stylesheet,
279
+ pinning it below every layer those go on to declare. -->
280
+ <style>@layer ${Gf};</style>
281
+ ${o}${Zw(n)}
282
+ <style>${Hw(l,s)}</style>
283
+ </head>
284
+ <body>
285
+ <div id="we-page"${Fw(s)}></div>
286
+ </body>
287
+ </html>`}function Ww(n){return!!(n!=null&&n.getElementById("we-page"))}function Dg(n){const l=s=>Pw(s,n.assets.basePath);return{srcdoc:()=>Jw(n.assets,n.markers,n.pageBox),buildSectionWrapper:(s,o)=>$w(s,o,n.markers,l),buildErrorPlaceholder:kb,resolveTarget:(s,o)=>Vw(s,o,n),localizeSectionAssets:l,resolveSelectionEl:(s,o)=>Rw(s,o,n.markers),resolveSelectionEls:(s,o)=>wb(s,o,n.markers),resolveVisibleSlotEls:(s,o)=>xb(s,o,n.markers),resolveItemEls:(s,o)=>Ow(s,o,n.markers),setLiveOwner:(s,o)=>Uw(s,o,n.markers)}}const Eb=(n,l)=>`<svg class="${n}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">${l}</svg>`;function e_(n){return Eb(n,'<path d="M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49"/><path d="M14.084 14.158a3 3 0 0 1-4.242-4.242"/><path d="M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143"/><path d="m2 2 20 20"/>')}function t_(n){return Eb(n,'<path d="M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"/><circle cx="12" cy="12" r="3"/>')}const n_=42,jb=16;function a_(n,l){const s=[];for(const u of n)for(s.push({sum:u.y,n:1,items:[u]});s.length>1;){const d=s[s.length-1],h=s[s.length-2];if(!d||!h)break;const m=d.sum/d.n-(d.n-1)/2*l,p=h.sum/h.n+(h.n-1)/2*l;if(m-p<l)s.splice(s.length-2,2,{sum:h.sum+d.sum,n:h.n+d.n,items:h.items.concat(d.items)});else break}const o={};for(const u of s){const d=u.sum/u.n-(u.n-1)/2*l;u.items.forEach((h,m)=>{o[h.idx]=d+m*l})}return o}const l_=e_("we-htab-eye-off"),i_=t_("we-htab-eye-on"),Pd=new WeakMap;function s_(n,l,s,o){const u=n.createElement("button");u.type="button",u.className="we-htab",u.dataset.hiddenTab=l,u.title=`Show ${s}`,u.setAttribute("aria-label",`Show ${s}`),u.innerHTML=`<span class="we-htab-eye">${l_}${i_}</span><span class="we-htab-name"></span>`;const d=u.querySelector(".we-htab-name");return d&&(d.textContent=s),Pd.set(u,o),u.addEventListener("click",h=>{var m;h.stopPropagation(),(m=Pd.get(u))==null||m()}),u}function o_(n,l,s,o){const u=new Map;n.querySelectorAll(".we-htab").forEach(m=>{const p=m.dataset.hiddenTab;p&&u.set(p,m)});const d=new Set,h=[];for(const m of s){let p=u.get(m.instanceId);if(!p)p=s_(l,m.instanceId,m.label,()=>o(m.instanceId)),n.appendChild(p);else{const g=p.querySelector(".we-htab-name");g&&g.textContent!==m.label&&(g.textContent=m.label),p.title=`Show ${m.label}`,p.setAttribute("aria-label",`Show ${m.label}`),Pd.set(p,()=>o(m.instanceId))}d.add(m.instanceId),h.push(p)}return u.forEach((m,p)=>{d.has(p)||m.remove()}),h}function r_(n,l,s){const o=n.map((d,h)=>{const m=l(d.dataset.hiddenTab??""),p=m?m.getBoundingClientRect().top*s:0;return{idx:h,y:p}}),u=a_(o,n_);n.forEach((d,h)=>{d.style.top=`${u[h]}px`,d.style.left=`${jb-d.offsetWidth}px`})}const c_=48,u_=30,d_=`
288
+ @property --we-scale {
289
+ syntax: "<number>";
290
+ inherits: true;
291
+ initial-value: 1;
292
+ }
293
+
294
+ /* The scroll container + dotted canvas surface. The host lays this element
295
+ out — position and size are the host's (it must both bound the height and
296
+ be positioned, so the frame wrapper's offset parent is the stage);
297
+ everything inside is kernel-defined. Declaring position here would win
298
+ the cascade over a host's own positioning utility classes (this sheet
299
+ loads after theirs), which is how the app's absolutely-positioned stage
300
+ once silently became in-flow and unscrollable.
301
+ background-attachment: local makes the grid scroll together with
302
+ the page card so the canvas + website read as one scene being panned, not
303
+ a card sliding over a fixed grid. Padding aligns the page card with the
304
+ floating panel: top/bottom/left 20px; the right constant (40px) covers the
305
+ panel's right inset (20px) plus an equal 20px gap. Fallback 436px matches
306
+ the panel's base CSS width.
307
+ The top padding also carries the label lane: a page-title row is drawn
308
+ ABOVE its frame's box, so the topmost frame's row would otherwise sit in
309
+ the 20px margin. --we-frame-label-lane is set by the stage reconciler only
310
+ when some frame is labeled, so a canvas whose pages declare no label keeps
311
+ the original 20px exactly. */
312
+ .we-canvas-stage {
313
+ overflow: auto;
314
+ padding: calc(20px + var(--we-frame-label-lane, 0px))
315
+ calc(var(--we-panel-w, 436px) + 40px) 20px 20px;
316
+ transition: --we-scale 150ms cubic-bezier(0.4, 0, 0.2, 1);
317
+ background-image: radial-gradient(rgba(20, 18, 13, 0.13) 1px, transparent 1.2px);
318
+ background-size: 20px 20px;
319
+ background-position: 10px 10px;
320
+ background-attachment: local;
321
+ scrollbar-width: none;
322
+ -ms-overflow-style: none;
323
+ }
324
+ .we-canvas-stage::-webkit-scrollbar { width: 0; height: 0; display: none; }
325
+
326
+ /* The scaled page card's layout box: exactly the iframe's visual footprint,
327
+ so the stage scrolls and centers the card correctly. Auto inline margins
328
+ rather than flex centering: they collapse to 0 when the card overflows the
329
+ stage, keeping the left edge reachable by scroll at high zoom.
330
+
331
+ isolation:isolate SEALS the canvas's own stacking hierarchy (tab layer,
332
+ page card, chrome overlay) into this element, so those z-indexes are
333
+ ordered only against each other and the whole card paints at the stage's
334
+ position in the HOST's DOM order. Without it the overlay competed
335
+ directly with the host's floating chrome -- a panel, a zoom toolbar, a
336
+ notice banner -- and a hover outline drew straight over the controls.
337
+ Same reasoning as the section wrappers' isolate in the frame document. */
338
+ .we-canvas-frame {
339
+ position: relative;
340
+ width: calc(var(--we-page-w, ${Yl}px) * var(--we-scale, 1));
341
+ height: calc(var(--we-page-h, 0px) * var(--we-scale, 1));
342
+ margin-inline: auto;
343
+ isolation: isolate;
344
+ }
345
+
346
+ /* The multi-frame stack: one frame per row, in the canvas's page order, each
347
+ centered on the same axis a lone page card already used (the auto inline
348
+ margins above), separated by a constant host-px gap plus whatever lane the
349
+ label chips need. Expressed as an adjacent-sibling rule so a single-frame
350
+ canvas matches no selector at all and lays out byte-identically to what it
351
+ did before frames could stack. The gap does NOT ride --we-scale: it is
352
+ chrome between two artifacts, not a part of either, so it stays the same
353
+ distance at any zoom. */
354
+ .we-canvas-frame + .we-canvas-frame {
355
+ margin-top: calc(${c_}px + var(--we-frame-label-lane, 0px));
356
+ }
357
+
358
+ /* Page-title row -- "Front", "Back": which page of the canvas this frame
359
+ is, with the visibility toggle seated directly beside the name it acts
360
+ on (one group, never split across the page's corners). Drawn ABOVE the
361
+ frame's box (bottom: 100%, in the lane the stage padding and the
362
+ inter-frame gap reserve) so it never covers artwork, and sized in
363
+ --we-content like the edge tabs: constant visual size at any zoom,
364
+ because it names the page rather than belonging to it.
365
+ pointer-events:none at the row so the lane's empty run stays stage
366
+ surface (a deselect click must fall through); the toggle re-enables its
367
+ own. */
368
+ .we-frame-titlebar {
369
+ position: absolute;
370
+ bottom: 100%;
371
+ left: 0;
372
+ right: 0;
373
+ margin-bottom: calc(4 * var(--we-content, 1px));
374
+ display: flex;
375
+ align-items: center;
376
+ gap: calc(6 * var(--we-content, 1px));
377
+ pointer-events: none;
378
+ }
379
+ /* Quiet by design: the row annotates the artwork below it, so it reads in
380
+ a light gray that cedes attention to the page — the ink weights are
381
+ reserved for the states that earn them (hover, the engaged toggle). */
382
+ .we-canvas-frame-label {
383
+ min-width: 0;
384
+ overflow: hidden;
385
+ text-overflow: ellipsis;
386
+ white-space: nowrap;
387
+ color: #a09d94;
388
+ font-size: calc(13 * var(--we-content, 1px));
389
+ font-weight: 500;
390
+ letter-spacing: -0.01em;
391
+ line-height: 1;
392
+ }
393
+
394
+ /* Page-visibility toggle -- the eye beside the page title, resting in the
395
+ title's own gray so the row reads as one quiet group. Rendered only
396
+ for pages the composition marks optional (frame-visibility.ts). */
397
+ .we-frame-toggle {
398
+ flex: 0 0 auto;
399
+ display: grid;
400
+ place-items: center;
401
+ width: calc(24 * var(--we-content, 1px));
402
+ height: calc(22 * var(--we-content, 1px));
403
+ padding: 0;
404
+ border: 0;
405
+ border-radius: calc(6 * var(--we-content, 1px));
406
+ background: transparent;
407
+ color: #a09d94;
408
+ cursor: pointer;
409
+ pointer-events: auto;
410
+ transition: background-color 0.15s, color 0.15s;
411
+ }
412
+ .we-frame-toggle svg {
413
+ width: calc(14 * var(--we-content, 1px));
414
+ height: calc(14 * var(--we-content, 1px));
415
+ }
416
+ .we-frame-toggle:hover {
417
+ background: rgba(20, 18, 13, 0.06);
418
+ color: #14180F;
419
+ }
420
+ .we-frame-toggle:focus-visible {
421
+ outline: none;
422
+ background: rgba(20, 18, 13, 0.06);
423
+ color: #14180F;
424
+ box-shadow: 0 0 0 2px rgba(15, 42, 34, 0.5);
425
+ }
426
+ /* Hidden state reads as an engaged control (the section eye's hidden
427
+ treatment): filled box, full-ink glyph. */
428
+ .we-frame-toggle[data-page-visibility="hidden"] {
429
+ background: rgba(20, 18, 13, 0.06);
430
+ color: #14180F;
431
+ box-shadow: inset 0 0 0 1px #ebebe6;
432
+ }
433
+ /* Hidden page -- tinted to a clear deactivated state, in place and at full
434
+ footprint (a page never collapses the way a hidden section does), still
435
+ fully interactive: the tint says "excluded from the artifact", not
436
+ "locked". The title strikes through and lightens, the same reading as a
437
+ fully-hidden canvas's bar tab. The stamp is written by
438
+ frame-visibility.ts. */
439
+ .we-canvas-frame[data-page-hidden="true"] > iframe {
440
+ filter: grayscale(1) opacity(0.55);
441
+ }
442
+ .we-canvas-frame[data-page-hidden="true"] > .we-frame-titlebar > .we-canvas-frame-label {
443
+ text-decoration: line-through;
444
+ color: #b6b3aa;
445
+ }
446
+
447
+ /* The frame document: unscaled ${Yl}px layout, scaled here as an
448
+ element. The border-radius matches #we-page inside, so the card shadow
449
+ follows the content's silhouette; both radius and shadow ride the
450
+ transform, exactly as they rode the old in-document scaling. z-index 2
451
+ stacks the card above the edge tabs (z-index 1) so the shadow falls over a
452
+ tab's tucked-under inner edge, nestling it against the page. */
453
+ .we-canvas-frame > iframe {
454
+ display: block;
455
+ border: 0;
456
+ background: transparent;
457
+ width: var(--we-page-w, ${Yl}px);
458
+ height: var(--we-page-h, 0px);
459
+ border-radius: var(--we-page-radius, ${Sb}px);
460
+ box-shadow:
461
+ 0 1px 0 rgba(20,18,13,0.06),
462
+ 0 2px 6px -2px rgba(20,18,13,0.10),
463
+ 0 12px 28px -8px rgba(20,18,13,0.18),
464
+ 0 32px 64px -20px rgba(20,18,13,0.28);
465
+ transform: scale(var(--we-scale, 1));
466
+ transform-origin: 0 0;
467
+ position: relative;
468
+ z-index: 2;
469
+ transition: filter 0.2s ease;
470
+ }
471
+
472
+ /* Chrome overlay -- sized to the frame wrapper, i.e. the scaled page card,
473
+ so x=0/y=0 is the page's top-left corner. overflow stays visible: a ring
474
+ at the page boundary or a label straddling the top border extends past
475
+ the card and must not clip. pointer-events:none so clicks pass through to
476
+ the iframe underneath.
477
+
478
+ Positioning contract: chrome.ts measures a target in the FRAME document
479
+ (layout truth — that document never scales or scrolls) and writes the
480
+ rect as custom properties on the ring/label; the formulas here scale it
481
+ into host space. Keeping the formula in the stylesheet and the data in
482
+ properties is what lets a transitioned --we-scale move every ring in
483
+ lockstep with the iframe's own animated transform. The ring's offset
484
+ (its inflation past the target's edge) stays OUTSIDE the multiplication:
485
+ constant host px at any zoom.
486
+
487
+ z-index 3 -- one step above the page card, and nothing more: the frame's
488
+ isolate is what keeps the chrome under the host's own UI, so a large
489
+ value here would buy nothing and read as an escape hatch.
490
+
491
+ A CLASS, not an id: every frame on the stage carries one of these, and the
492
+ chrome functions are handed the overlay rather than resolving it by
493
+ document-global id. */
494
+ .we-chrome-overlay {
495
+ position: absolute;
496
+ inset: 0;
497
+ pointer-events: none;
498
+ z-index: 3;
499
+ }
500
+ .we-chrome-ring {
501
+ position: absolute;
502
+ pointer-events: none;
503
+ border: 2px solid transparent;
504
+ border-radius: 6px;
505
+ opacity: 0;
506
+ box-sizing: border-box;
507
+ top: calc(var(--we-r-top, 0px) * var(--we-scale, 1) - var(--we-r-off, 0px));
508
+ left: calc(var(--we-r-left, 0px) * var(--we-scale, 1) - var(--we-r-off, 0px));
509
+ width: calc(var(--we-r-w, 0px) * var(--we-scale, 1) + 2 * var(--we-r-off, 0px));
510
+ height: calc(var(--we-r-h, 0px) * var(--we-scale, 1) + 2 * var(--we-r-off, 0px));
511
+ }
512
+ /* Hover ring -- instant on cursor arrival, fades out on leave.
513
+ Position updates instantly (no top/left transition) so dragging
514
+ across elements never flickers. Ink stroke + white drop-shadow
515
+ halo keeps the ring readable on both light sections and dark ones. */
516
+ .we-chrome-ring--hover {
517
+ border-color: rgba(15,42,34,0.85);
518
+ filter: drop-shadow(0 0 1px rgba(255,255,255,0.95));
519
+ transition: opacity 70ms ease-in;
520
+ }
521
+ .we-chrome-ring--hover[data-active="true"] {
522
+ opacity: 1;
523
+ transition: opacity 100ms cubic-bezier(0.16, 1, 0.3, 1);
524
+ }
525
+ /* Selection ring -- appears instantly (continuous with hover),
526
+ then morphs ink → gold. No position transition so resize
527
+ tracking stays tight. Same ink + white halo as hover. */
528
+ .we-chrome-ring--selection {
529
+ border-color: rgba(15,42,34,0.85);
530
+ filter: drop-shadow(0 0 1px rgba(255,255,255,0.95));
531
+ transform: scale(1);
532
+ box-shadow: none;
533
+ transition:
534
+ opacity 50ms ease-in,
535
+ border-color 160ms cubic-bezier(0.2, 0, 0, 1),
536
+ box-shadow 160ms cubic-bezier(0.2, 0, 0, 1);
537
+ }
538
+ .we-chrome-ring--selection[data-active="true"] {
539
+ opacity: 1;
540
+ /* Instant show on select; only border + glow animate */
541
+ transition:
542
+ opacity 0ms,
543
+ border-color 180ms cubic-bezier(0.2, 0, 0, 1),
544
+ box-shadow 180ms cubic-bezier(0.2, 0, 0, 1);
545
+ }
546
+ .we-chrome-ring--selection[data-kind="section"],
547
+ .we-chrome-ring--selection[data-kind="slot"] {
548
+ border-color: #E5B832;
549
+ filter: drop-shadow(0 0 1px rgba(255,255,255,0.95));
550
+ box-shadow: 0 0 0 1px rgba(229,184,50,0.25), 0 8px 24px -10px rgba(229,184,50,0.35);
551
+ }
552
+
553
+ /* Geometry guides -- the trim line and the bleed region for a rendered-class
554
+ page. The overlay is the page (bleed) box exactly, so insetting all four
555
+ sides by the declared bleed gives the trim box with no arithmetic: the
556
+ border draws the trim line and the shadow's spread fills the band between
557
+ trim and page edge. Data/formula split as for the rings — guides.ts writes
558
+ --we-g-bleed in frame space, the multiplication happens here, so a
559
+ transitioned zoom moves the guides with the card. The 1px line itself
560
+ stays OUTSIDE the multiplication: constant host px at any zoom, like the
561
+ ring's offset.
562
+
563
+ Magenta rather than the chrome's ink/gold: a guide is an instrument about
564
+ the artifact, never a selection, and the print convention reads instantly.
565
+ The inset white hairline keeps the line legible over dark artwork, the
566
+ role the rings' drop-shadow halo plays for them. First child of the
567
+ overlay, so rings and the title pill paint above it. */
568
+ .we-guide {
569
+ position: absolute;
570
+ box-sizing: border-box;
571
+ pointer-events: none;
572
+ opacity: 0;
573
+ top: calc(var(--we-g-bleed, 0px) * var(--we-scale, 1));
574
+ right: calc(var(--we-g-bleed, 0px) * var(--we-scale, 1));
575
+ bottom: calc(var(--we-g-bleed, 0px) * var(--we-scale, 1));
576
+ left: calc(var(--we-g-bleed, 0px) * var(--we-scale, 1));
577
+ border: 1px solid rgba(214,32,140,0.9);
578
+ box-shadow:
579
+ inset 0 0 0 1px rgba(255,255,255,0.55),
580
+ 0 0 0 calc(var(--we-g-bleed, 0px) * var(--we-scale, 1)) rgba(214,32,140,0.16);
581
+ transition: opacity 90ms ease-in;
582
+ }
583
+ .we-guide[data-active="true"] { opacity: 1; }
584
+
585
+ /* Section title pill -- straddles the selection's top border; geometry set
586
+ by chrome.ts as custom properties, same contract as the rings. The left
587
+ indent is constant host px. Sections only; slots get the outline ring but
588
+ no on-canvas label. */
589
+ .we-chrome-label {
590
+ position: absolute;
591
+ top: calc(var(--we-l-top, 0px) * var(--we-scale, 1));
592
+ left: calc(var(--we-l-left, 0px) * var(--we-scale, 1) + var(--we-l-indent, 0px));
593
+ pointer-events: none;
594
+ z-index: 1;
595
+ background: rgba(229,184,50,0.95);
596
+ color: #282c32;
597
+ padding: 3px 8px;
598
+ border-radius: 4px;
599
+ font-size: 10.5px;
600
+ font-weight: 600;
601
+ line-height: 1;
602
+ white-space: nowrap;
603
+ opacity: 0;
604
+ transform: translateY(calc(-50% - 4px)) scale(0.96);
605
+ transition:
606
+ opacity 60ms ease-in,
607
+ transform 60ms ease-in;
608
+ }
609
+ .we-chrome-label[data-active="true"] {
610
+ opacity: 1;
611
+ transform: translateY(-50%) scale(1);
612
+ transition:
613
+ opacity 130ms cubic-bezier(0.16, 1, 0.3, 1) 50ms,
614
+ transform 130ms cubic-bezier(0.16, 1, 0.3, 1) 50ms;
615
+ }
616
+
617
+ /* Hidden-section edge tabs -------------------------------------
618
+ One dim chip-tab per hidden section, pinned to the page card's left edge
619
+ at the collapsed wrapper's reflow seam. Built + positioned by the host
620
+ orchestrator; de-collided via placeTabs. Constant visual size at any zoom
621
+ — the layer sits outside the scaled iframe. --we-content is the host's
622
+ interior scaling unit (its large-screen chrome scale); a host without one
623
+ leaves the 1px fallback in force. A class for the same reason the overlay
624
+ is one: one tab layer per frame, addressed through that frame's handle. */
625
+ .we-htabs {
626
+ position: absolute;
627
+ inset: 0;
628
+ pointer-events: none;
629
+ z-index: 1;
630
+ }
631
+ .we-htab {
632
+ position: absolute;
633
+ transform: translateY(-50%);
634
+ display: flex;
635
+ align-items: center;
636
+ gap: calc(9 * var(--we-content, 1px));
637
+ height: calc(34 * var(--we-content, 1px));
638
+ padding: 0 calc(${12+jb} * var(--we-content, 1px)) 0 calc(13 * var(--we-content, 1px));
639
+ background: #ffffff;
640
+ border: 1px solid #ebebe6;
641
+ border-radius: calc(9 * var(--we-content, 1px)) 0 0 calc(9 * var(--we-content, 1px));
642
+ box-shadow: 0 10px 24px -12px rgba(20,18,13,0.34);
643
+ color: #4a4842;
644
+ font: inherit;
645
+ cursor: pointer;
646
+ opacity: 1;
647
+ pointer-events: auto;
648
+ transition: transform 0.2s cubic-bezier(0.2,0.7,0.3,1),
649
+ border-color 0.18s, box-shadow 0.18s;
650
+ }
651
+ .we-htab-eye {
652
+ display: grid;
653
+ place-items: center;
654
+ flex: 0 0 auto;
655
+ color: #8a877e;
656
+ transition: color 0.18s;
657
+ }
658
+ .we-htab-eye svg { width: calc(14 * var(--we-content, 1px)); height: calc(14 * var(--we-content, 1px)); }
659
+ .we-htab-name {
660
+ font-size: calc(13 * var(--we-content, 1px));
661
+ font-weight: 600;
662
+ letter-spacing: -0.01em;
663
+ color: #14180F;
664
+ white-space: nowrap;
665
+ }
666
+ .we-htab:hover {
667
+ transform: translateY(-50%) scale(1.07);
668
+ border-color: rgba(15,42,34,0.5);
669
+ box-shadow: 0 13px 30px -12px rgba(15,42,34,0.45);
670
+ }
671
+ .we-htab:hover .we-htab-eye { color: #0F2A22; }
672
+ .we-htab:focus-visible {
673
+ outline: none;
674
+ transform: translateY(-50%) scale(1.07);
675
+ border-color: #0F2A22;
676
+ box-shadow: 0 0 0 3px #F3F6EF, 0 13px 30px -12px rgba(15,42,34,0.45);
677
+ }
678
+ /* Hover/focus swaps the eye-off glyph to the eye glyph in place — no width
679
+ change, no sliding label. Only one glyph is in flow at a time, so the eye
680
+ slot's grid keeps the shown glyph centered. */
681
+ .we-htab-eye-on { display: none; }
682
+ .we-htab:hover .we-htab-eye-off,
683
+ .we-htab:focus-visible .we-htab-eye-off { display: none; }
684
+ .we-htab:hover .we-htab-eye-on,
685
+ .we-htab:focus-visible .we-htab-eye-on { display: block; }
686
+
687
+ @media (prefers-reduced-motion: reduce) {
688
+ .we-canvas-stage,
689
+ .we-canvas-frame > iframe,
690
+ .we-chrome-ring,
691
+ .we-chrome-label,
692
+ .we-guide,
693
+ .we-htab,
694
+ .we-frame-toggle {
695
+ transition: none !important;
696
+ }
697
+ }
698
+ `,f_='<div class="we-guide"></div><div class="we-chrome-ring we-chrome-ring--hover"></div><div class="we-chrome-ring we-chrome-ring--selection"></div><div class="we-chrome-label"></div>',Wr="we-canvas-frame",Ug="we-frame-titlebar",Lg="we-canvas-frame-label",Bg="we-htabs",Hg="we-chrome-overlay";function Dd(n,l,s){const o=n.querySelector(l);if(o)return o;const u=s();return n.appendChild(u),u}function h_(n,l){const s=n.querySelector(`:scope > .${Ug}`);if(s)return s;const o=l.createElement("div");return o.className=Ug,n.insertBefore(o,n.firstChild),o}function m_(n){for(let l=n.nextElementSibling;l;l=l.nextElementSibling)if(l.classList.contains(Wr))return l;return null}function p_(n,l){const s=n.ownerDocument,o=h_(n,s),u=l.label??"",d=o.querySelector(`:scope > .${Lg}`);if(u==="")d==null||d.remove();else{const x=d??o.insertBefore(s.createElement("div"),o.firstChild);x.className=Lg,x.textContent!==u&&(x.textContent=u)}const h=Dd(n,":scope > iframe",()=>s.createElement("iframe"));l.title!==void 0&&h.title!==l.title&&(h.title=l.title),l.sandbox!==void 0&&h.getAttribute("sandbox")!==l.sandbox&&h.setAttribute("sandbox",l.sandbox),h.getAttribute("srcdoc")!==l.srcdoc&&h.setAttribute("srcdoc",l.srcdoc);const m=Dd(n,`:scope > .${Bg}`,()=>{const x=s.createElement("div");return x.className=Bg,x}),p=Dd(n,`:scope > .${Hg}`,()=>{const x=s.createElement("div");return x.className=Hg,x.setAttribute("aria-hidden","true"),x});p.childElementCount===0&&(p.innerHTML=f_);const g=l.pageBox;return g?(n.style.setProperty("--we-page-w",`${g.width}px`),n.style.setProperty("--we-page-h",`${g.height}px`),n.style.setProperty("--we-page-radius","0px")):(n.style.removeProperty("--we-page-w"),n.style.removeProperty("--we-page-radius")),{iframe:h,overlay:p,tabLayer:m}}function y_(n,l,s){const{iframe:o}=s;return{key:l,wrapper:n,iframe:o,overlay:s.overlay,tabLayer:s.tabLayer,get doc(){return o.contentDocument},setPageHeight(u){n.style.setProperty("--we-page-h",`${u}px`)}}}function g_(n,l){const s=n.ownerDocument,o=new Map;for(const p of Array.from(n.querySelectorAll(`:scope > .${Wr}`))){const g=p.dataset.frameKey;g!==void 0&&o.set(g,p)}const u=[],d=[],h=new Set;for(const p of l){let g=o.get(p.key);g||(g=s.createElement("div"),g.className=Wr,g.dataset.frameKey=p.key);const x=p_(g,p);u.push(g),h.add(p.key),d.push(y_(g,p.key,x))}let m=null;for(let p=u.length-1;p>=0;p--){const g=u[p];g&&((g.parentNode!==n||m_(g)!==m)&&n.insertBefore(g,m),m=g)}return o.forEach((p,g)=>{h.has(g)||p.remove()}),l.some(p=>(p.label??"")!=="")?n.style.setProperty("--we-frame-label-lane",`${u_}px`):n.style.removeProperty("--we-frame-label-lane"),d}function b_(n,l,s){const o=[];for(const u of n){const d=u.doc;if(!d)continue;const h=l.resolveSelectionEls(d,s);h.length>0&&o.push({handle:u,els:h})}return o}function v_(n,l){const s=n==null?void 0:n.querySelector(":scope > .we-guide");if(s){if(l===null){s.removeAttribute("data-active");return}s.style.setProperty("--we-g-bleed",`${l}px`),s.setAttribute("data-active","true")}}const x_=24;function w_(n,l,s,o){if(n.height+2*o<=l)return n.top>=o&&n.bottom<=l-o?null:n.top<o?Math.max(0,s+n.top-o):Math.max(0,s+n.bottom-(l-o));const d=Math.max(0,s+n.top-o);return Math.abs(d-s)<1?null:d}function __(n,l,s,o){const u=l+n.top*s-o,d=n.height*s;return{top:u,bottom:u+d,height:d}}const qg="__trEditorBridge",S_=1,Mb=new WeakMap;function k_(n){return n?n.kind==="section"?{kind:"section",instanceId:n.instance_id}:{kind:"slot",instanceId:n.instance_id,slotId:n.slot_id,...n.item_index!==void 0?{itemIndex:n.item_index}:{},...n.field_name!==void 0?{fieldName:n.field_name}:{}}:null}function E_(n){const l=n[qg];if(l)return l;const s=new Set,o={protocol:S_,selection:null,subscribe(u){return s.add(u),()=>{s.delete(u)}}};return Mb.set(o,s),n[qg]=o,o}function j_(n,l,s){if(!n||!l)return;const u=E_(n);u.selection=k_(s);for(const d of[...Mb.get(u)??[]])d()}function Ab(n){var l,s,o="";if(typeof n=="string"||typeof n=="number")o+=n;else if(typeof n=="object")if(Array.isArray(n)){var u=n.length;for(l=0;l<u;l++)n[l]&&(s=Ab(n[l]))&&(o&&(o+=" "),o+=s)}else for(s in n)n[s]&&(o&&(o+=" "),o+=s);return o}function Qf(){for(var n,l,s=0,o="",u=arguments.length;s<u;s++)(n=arguments[s])&&(l=Ab(n))&&(o&&(o+=" "),o+=l);return o}const M_=(n,l)=>{const s=new Array(n.length+l.length);for(let o=0;o<n.length;o++)s[o]=n[o];for(let o=0;o<l.length;o++)s[n.length+o]=l[o];return s},A_=(n,l)=>({classGroupId:n,validator:l}),Cb=(n=new Map,l=null,s)=>({nextPart:n,validators:l,classGroupId:s}),ec="-",Gg=[],C_="arbitrary..",N_=n=>{const l=O_(n),{conflictingClassGroups:s,conflictingClassGroupModifiers:o}=n;return{getClassGroupId:h=>{if(h.startsWith("[")&&h.endsWith("]"))return T_(h);const m=h.split(ec),p=m[0]===""&&m.length>1?1:0;return Nb(m,p,l)},getConflictingClassGroupIds:(h,m)=>{if(m){const p=o[h],g=s[h];return p?g?M_(g,p):p:g||Gg}return s[h]||Gg}}},Nb=(n,l,s)=>{if(n.length-l===0)return s.classGroupId;const u=n[l],d=s.nextPart.get(u);if(d){const g=Nb(n,l+1,d);if(g)return g}const h=s.validators;if(h===null)return;const m=l===0?n.join(ec):n.slice(l).join(ec),p=h.length;for(let g=0;g<p;g++){const x=h[g];if(x.validator(m))return x.classGroupId}},T_=n=>n.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const l=n.slice(1,-1),s=l.indexOf(":"),o=l.slice(0,s);return o?C_+o:void 0})(),O_=n=>{const{theme:l,classGroups:s}=n;return R_(s,l)},R_=(n,l)=>{const s=Cb();for(const o in n){const u=n[o];If(u,s,o,l)}return s},If=(n,l,s,o)=>{const u=n.length;for(let d=0;d<u;d++){const h=n[d];z_(h,l,s,o)}},z_=(n,l,s,o)=>{if(typeof n=="string"){D_(n,l,s);return}if(typeof n=="function"){U_(n,l,s,o);return}L_(n,l,s,o)},D_=(n,l,s)=>{const o=n===""?l:Tb(l,n);o.classGroupId=s},U_=(n,l,s,o)=>{if(B_(n)){If(n(o),l,s,o);return}l.validators===null&&(l.validators=[]),l.validators.push(A_(s,n))},L_=(n,l,s,o)=>{const u=Object.entries(n),d=u.length;for(let h=0;h<d;h++){const[m,p]=u[h];If(p,Tb(l,m),s,o)}},Tb=(n,l)=>{let s=n;const o=l.split(ec),u=o.length;for(let d=0;d<u;d++){const h=o[d];let m=s.nextPart.get(h);m||(m=Cb(),s.nextPart.set(h,m)),s=m}return s},B_=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,H_=n=>{if(n<1)return{get:()=>{},set:()=>{}};let l=0,s=Object.create(null),o=Object.create(null);const u=(d,h)=>{s[d]=h,l++,l>n&&(l=0,o=s,s=Object.create(null))};return{get(d){let h=s[d];if(h!==void 0)return h;if((h=o[d])!==void 0)return u(d,h),h},set(d,h){d in s?s[d]=h:u(d,h)}}},Jd="!",Qg=":",q_=[],Ig=(n,l,s,o,u)=>({modifiers:n,hasImportantModifier:l,baseClassName:s,maybePostfixModifierPosition:o,isExternal:u}),G_=n=>{const{prefix:l,experimentalParseClassName:s}=n;let o=u=>{const d=[];let h=0,m=0,p=0,g;const x=u.length;for(let C=0;C<x;C++){const j=u[C];if(h===0&&m===0){if(j===Qg){d.push(u.slice(p,C)),p=C+1;continue}if(j==="/"){g=C;continue}}j==="["?h++:j==="]"?h--:j==="("?m++:j===")"&&m--}const b=d.length===0?u:u.slice(p);let k=b,S=!1;b.endsWith(Jd)?(k=b.slice(0,-1),S=!0):b.startsWith(Jd)&&(k=b.slice(1),S=!0);const R=g&&g>p?g-p:void 0;return Ig(d,S,k,R)};if(l){const u=l+Qg,d=o;o=h=>h.startsWith(u)?d(h.slice(u.length)):Ig(q_,!1,h,void 0,!0)}if(s){const u=o;o=d=>s({className:d,parseClassName:u})}return o},Q_=n=>{const l=new Map;return n.orderSensitiveModifiers.forEach((s,o)=>{l.set(s,1e6+o)}),s=>{const o=[];let u=[];for(let d=0;d<s.length;d++){const h=s[d],m=h[0]==="[",p=l.has(h);m||p?(u.length>0&&(u.sort(),o.push(...u),u=[]),o.push(h)):u.push(h)}return u.length>0&&(u.sort(),o.push(...u)),o}},I_=n=>({cache:H_(n.cacheSize),parseClassName:G_(n),sortModifiers:Q_(n),postfixLookupClassGroupIds:V_(n),...N_(n)}),V_=n=>{const l=Object.create(null),s=n.postfixLookupClassGroups;if(s)for(let o=0;o<s.length;o++)l[s[o]]=!0;return l},Y_=/\s+/,$_=(n,l)=>{const{parseClassName:s,getClassGroupId:o,getConflictingClassGroupIds:u,sortModifiers:d,postfixLookupClassGroupIds:h}=l,m=[],p=n.trim().split(Y_);let g="";for(let x=p.length-1;x>=0;x-=1){const b=p[x],{isExternal:k,modifiers:S,hasImportantModifier:R,baseClassName:C,maybePostfixModifierPosition:j}=s(b);if(k){g=b+(g.length>0?" "+g:g);continue}let T=!!j,z;if(T){const ee=C.substring(0,j);z=o(ee);const U=z&&h[z]?o(C):void 0;U&&U!==z&&(z=U,T=!1)}else z=o(C);if(!z){if(!T){g=b+(g.length>0?" "+g:g);continue}if(z=o(C),!z){g=b+(g.length>0?" "+g:g);continue}T=!1}const D=S.length===0?"":S.length===1?S[0]:d(S).join(":"),I=R?D+Jd:D,ie=I+z;if(m.indexOf(ie)>-1)continue;m.push(ie);const ne=u(z,T);for(let ee=0;ee<ne.length;++ee){const U=ne[ee];m.push(I+U)}g=b+(g.length>0?" "+g:g)}return g},K_=(...n)=>{let l=0,s,o,u="";for(;l<n.length;)(s=n[l++])&&(o=Ob(s))&&(u&&(u+=" "),u+=o);return u},Ob=n=>{if(typeof n=="string")return n;let l,s="";for(let o=0;o<n.length;o++)n[o]&&(l=Ob(n[o]))&&(s&&(s+=" "),s+=l);return s},X_=(n,...l)=>{let s,o,u,d;const h=p=>{const g=l.reduce((x,b)=>b(x),n());return s=I_(g),o=s.cache.get,u=s.cache.set,d=m,m(p)},m=p=>{const g=o(p);if(g)return g;const x=$_(p,s);return u(p,x),x};return d=h,(...p)=>d(K_(...p))},F_=[],St=n=>{const l=s=>s[n]||F_;return l.isThemeGetter=!0,l},Rb=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,zb=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Z_=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,P_=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,J_=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,W_=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,eS=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,tS=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,$a=n=>Z_.test(n),Le=n=>!!n&&!Number.isNaN(Number(n)),Un=n=>!!n&&Number.isInteger(Number(n)),Ud=n=>n.endsWith("%")&&Le(n.slice(0,-1)),ca=n=>P_.test(n),Db=()=>!0,nS=n=>J_.test(n)&&!W_.test(n),Vf=()=>!1,aS=n=>eS.test(n),lS=n=>tS.test(n),iS=n=>!ve(n)&&!xe(n),sS=n=>n.startsWith("@container")&&(n[10]==="/"&&n[11]!==void 0||n[11]==="s"&&n[16]!==void 0&&n.startsWith("-size/",10)||n[11]==="n"&&n[18]!==void 0&&n.startsWith("-normal/",10)),oS=n=>ol(n,Bb,Vf),ve=n=>Rb.test(n),Tl=n=>ol(n,Hb,nS),Vg=n=>ol(n,pS,Le),rS=n=>ol(n,Gb,Db),cS=n=>ol(n,qb,Vf),Yg=n=>ol(n,Ub,Vf),uS=n=>ol(n,Lb,lS),Qr=n=>ol(n,Qb,aS),xe=n=>zb.test(n),no=n=>Pl(n,Hb),dS=n=>Pl(n,qb),$g=n=>Pl(n,Ub),fS=n=>Pl(n,Bb),hS=n=>Pl(n,Lb),Ir=n=>Pl(n,Qb,!0),mS=n=>Pl(n,Gb,!0),ol=(n,l,s)=>{const o=Rb.exec(n);return o?o[1]?l(o[1]):s(o[2]):!1},Pl=(n,l,s=!1)=>{const o=zb.exec(n);return o?o[1]?l(o[1]):s:!1},Ub=n=>n==="position"||n==="percentage",Lb=n=>n==="image"||n==="url",Bb=n=>n==="length"||n==="size"||n==="bg-size",Hb=n=>n==="length",pS=n=>n==="number",qb=n=>n==="family-name",Gb=n=>n==="number"||n==="weight",Qb=n=>n==="shadow",yS=()=>{const n=St("color"),l=St("font"),s=St("text"),o=St("font-weight"),u=St("tracking"),d=St("leading"),h=St("breakpoint"),m=St("container"),p=St("spacing"),g=St("radius"),x=St("shadow"),b=St("inset-shadow"),k=St("text-shadow"),S=St("drop-shadow"),R=St("blur"),C=St("perspective"),j=St("aspect"),T=St("ease"),z=St("animate"),D=()=>["auto","avoid","all","avoid-page","page","left","right","column"],I=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],ie=()=>[...I(),xe,ve],ne=()=>["auto","hidden","clip","visible","scroll"],ee=()=>["auto","contain","none"],U=()=>[xe,ve,p],ce=()=>[$a,"full","auto",...U()],de=()=>[Un,"none","subgrid",xe,ve],re=()=>["auto",{span:["full",Un,xe,ve]},Un,xe,ve],le=()=>[Un,"auto",xe,ve],B=()=>["auto","min","max","fr",xe,ve],H=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],K=()=>["start","end","center","stretch","center-safe","end-safe"],_=()=>["auto",...U()],Y=()=>[$a,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...U()],q=()=>[$a,"screen","full","dvw","lvw","svw","min","max","fit",...U()],ue=()=>[$a,"screen","full","lh","dvh","lvh","svh","min","max","fit",...U()],W=()=>[n,xe,ve],M=()=>[...I(),$g,Yg,{position:[xe,ve]}],G=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Z=()=>["auto","cover","contain",fS,oS,{size:[xe,ve]}],N=()=>[Ud,no,Tl],P=()=>["","none","full",g,xe,ve],X=()=>["",Le,no,Tl],F=()=>["solid","dashed","dotted","double"],pe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ge=()=>[Le,Ud,$g,Yg],Ee=()=>["","none",R,xe,ve],Re=()=>["none",Le,xe,ve],Ue=()=>["none",Le,xe,ve],nt=()=>[Le,xe,ve],Ye=()=>[$a,"full",...U()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ca],breakpoint:[ca],color:[Db],container:[ca],"drop-shadow":[ca],ease:["in","out","in-out"],font:[iS],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ca],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ca],shadow:[ca],spacing:["px",Le],text:[ca],"text-shadow":[ca],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",$a,ve,xe,j]}],container:["container"],"container-type":[{"@container":["","normal","size",xe,ve]}],"container-named":[sS],columns:[{columns:[Le,ve,xe,m]}],"break-after":[{"break-after":D()}],"break-before":[{"break-before":D()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:ie()}],overflow:[{overflow:ne()}],"overflow-x":[{"overflow-x":ne()}],"overflow-y":[{"overflow-y":ne()}],overscroll:[{overscroll:ee()}],"overscroll-x":[{"overscroll-x":ee()}],"overscroll-y":[{"overscroll-y":ee()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ce()}],"inset-x":[{"inset-x":ce()}],"inset-y":[{"inset-y":ce()}],start:[{"inset-s":ce(),start:ce()}],end:[{"inset-e":ce(),end:ce()}],"inset-bs":[{"inset-bs":ce()}],"inset-be":[{"inset-be":ce()}],top:[{top:ce()}],right:[{right:ce()}],bottom:[{bottom:ce()}],left:[{left:ce()}],visibility:["visible","invisible","collapse"],z:[{z:[Un,"auto",xe,ve]}],basis:[{basis:[$a,"full","auto",m,...U()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Le,$a,"auto","initial","none",ve]}],grow:[{grow:["",Le,xe,ve]}],shrink:[{shrink:["",Le,xe,ve]}],order:[{order:[Un,"first","last","none",xe,ve]}],"grid-cols":[{"grid-cols":de()}],"col-start-end":[{col:re()}],"col-start":[{"col-start":le()}],"col-end":[{"col-end":le()}],"grid-rows":[{"grid-rows":de()}],"row-start-end":[{row:re()}],"row-start":[{"row-start":le()}],"row-end":[{"row-end":le()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":B()}],"auto-rows":[{"auto-rows":B()}],gap:[{gap:U()}],"gap-x":[{"gap-x":U()}],"gap-y":[{"gap-y":U()}],"justify-content":[{justify:[...H(),"normal"]}],"justify-items":[{"justify-items":[...K(),"normal"]}],"justify-self":[{"justify-self":["auto",...K()]}],"align-content":[{content:["normal",...H()]}],"align-items":[{items:[...K(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...K(),{baseline:["","last"]}]}],"place-content":[{"place-content":H()}],"place-items":[{"place-items":[...K(),"baseline"]}],"place-self":[{"place-self":["auto",...K()]}],p:[{p:U()}],px:[{px:U()}],py:[{py:U()}],ps:[{ps:U()}],pe:[{pe:U()}],pbs:[{pbs:U()}],pbe:[{pbe:U()}],pt:[{pt:U()}],pr:[{pr:U()}],pb:[{pb:U()}],pl:[{pl:U()}],m:[{m:_()}],mx:[{mx:_()}],my:[{my:_()}],ms:[{ms:_()}],me:[{me:_()}],mbs:[{mbs:_()}],mbe:[{mbe:_()}],mt:[{mt:_()}],mr:[{mr:_()}],mb:[{mb:_()}],ml:[{ml:_()}],"space-x":[{"space-x":U()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":U()}],"space-y-reverse":["space-y-reverse"],size:[{size:Y()}],"inline-size":[{inline:["auto",...q()]}],"min-inline-size":[{"min-inline":["auto",...q()]}],"max-inline-size":[{"max-inline":["none",...q()]}],"block-size":[{block:["auto",...ue()]}],"min-block-size":[{"min-block":["auto",...ue()]}],"max-block-size":[{"max-block":["none",...ue()]}],w:[{w:[m,"screen",...Y()]}],"min-w":[{"min-w":[m,"screen","none",...Y()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[h]},...Y()]}],h:[{h:["screen","lh",...Y()]}],"min-h":[{"min-h":["screen","lh","none",...Y()]}],"max-h":[{"max-h":["screen","lh",...Y()]}],"font-size":[{text:["base",s,no,Tl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,mS,rS]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ud,ve]}],"font-family":[{font:[dS,cS,l]}],"font-features":[{"font-features":[ve]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[u,xe,ve]}],"line-clamp":[{"line-clamp":[Le,"none",xe,Vg]}],leading:[{leading:[d,...U()]}],"list-image":[{"list-image":["none",xe,ve]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",xe,ve]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:W()}],"text-color":[{text:W()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...F(),"wavy"]}],"text-decoration-thickness":[{decoration:[Le,"from-font","auto",xe,Tl]}],"text-decoration-color":[{decoration:W()}],"underline-offset":[{"underline-offset":[Le,"auto",xe,ve]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:U()}],"tab-size":[{tab:[Un,xe,ve]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",xe,ve]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",xe,ve]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:M()}],"bg-repeat":[{bg:G()}],"bg-size":[{bg:Z()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Un,xe,ve],radial:["",xe,ve],conic:[Un,xe,ve]},hS,uS]}],"bg-color":[{bg:W()}],"gradient-from-pos":[{from:N()}],"gradient-via-pos":[{via:N()}],"gradient-to-pos":[{to:N()}],"gradient-from":[{from:W()}],"gradient-via":[{via:W()}],"gradient-to":[{to:W()}],rounded:[{rounded:P()}],"rounded-s":[{"rounded-s":P()}],"rounded-e":[{"rounded-e":P()}],"rounded-t":[{"rounded-t":P()}],"rounded-r":[{"rounded-r":P()}],"rounded-b":[{"rounded-b":P()}],"rounded-l":[{"rounded-l":P()}],"rounded-ss":[{"rounded-ss":P()}],"rounded-se":[{"rounded-se":P()}],"rounded-ee":[{"rounded-ee":P()}],"rounded-es":[{"rounded-es":P()}],"rounded-tl":[{"rounded-tl":P()}],"rounded-tr":[{"rounded-tr":P()}],"rounded-br":[{"rounded-br":P()}],"rounded-bl":[{"rounded-bl":P()}],"border-w":[{border:X()}],"border-w-x":[{"border-x":X()}],"border-w-y":[{"border-y":X()}],"border-w-s":[{"border-s":X()}],"border-w-e":[{"border-e":X()}],"border-w-bs":[{"border-bs":X()}],"border-w-be":[{"border-be":X()}],"border-w-t":[{"border-t":X()}],"border-w-r":[{"border-r":X()}],"border-w-b":[{"border-b":X()}],"border-w-l":[{"border-l":X()}],"divide-x":[{"divide-x":X()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":X()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...F(),"hidden","none"]}],"divide-style":[{divide:[...F(),"hidden","none"]}],"border-color":[{border:W()}],"border-color-x":[{"border-x":W()}],"border-color-y":[{"border-y":W()}],"border-color-s":[{"border-s":W()}],"border-color-e":[{"border-e":W()}],"border-color-bs":[{"border-bs":W()}],"border-color-be":[{"border-be":W()}],"border-color-t":[{"border-t":W()}],"border-color-r":[{"border-r":W()}],"border-color-b":[{"border-b":W()}],"border-color-l":[{"border-l":W()}],"divide-color":[{divide:W()}],"outline-style":[{outline:[...F(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Le,xe,ve]}],"outline-w":[{outline:["",Le,no,Tl]}],"outline-color":[{outline:W()}],shadow:[{shadow:["","none",x,Ir,Qr]}],"shadow-color":[{shadow:W()}],"inset-shadow":[{"inset-shadow":["none",b,Ir,Qr]}],"inset-shadow-color":[{"inset-shadow":W()}],"ring-w":[{ring:X()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:W()}],"ring-offset-w":[{"ring-offset":[Le,Tl]}],"ring-offset-color":[{"ring-offset":W()}],"inset-ring-w":[{"inset-ring":X()}],"inset-ring-color":[{"inset-ring":W()}],"text-shadow":[{"text-shadow":["none",k,Ir,Qr]}],"text-shadow-color":[{"text-shadow":W()}],opacity:[{opacity:[Le,xe,ve]}],"mix-blend":[{"mix-blend":[...pe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":pe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Le]}],"mask-image-linear-from-pos":[{"mask-linear-from":ge()}],"mask-image-linear-to-pos":[{"mask-linear-to":ge()}],"mask-image-linear-from-color":[{"mask-linear-from":W()}],"mask-image-linear-to-color":[{"mask-linear-to":W()}],"mask-image-t-from-pos":[{"mask-t-from":ge()}],"mask-image-t-to-pos":[{"mask-t-to":ge()}],"mask-image-t-from-color":[{"mask-t-from":W()}],"mask-image-t-to-color":[{"mask-t-to":W()}],"mask-image-r-from-pos":[{"mask-r-from":ge()}],"mask-image-r-to-pos":[{"mask-r-to":ge()}],"mask-image-r-from-color":[{"mask-r-from":W()}],"mask-image-r-to-color":[{"mask-r-to":W()}],"mask-image-b-from-pos":[{"mask-b-from":ge()}],"mask-image-b-to-pos":[{"mask-b-to":ge()}],"mask-image-b-from-color":[{"mask-b-from":W()}],"mask-image-b-to-color":[{"mask-b-to":W()}],"mask-image-l-from-pos":[{"mask-l-from":ge()}],"mask-image-l-to-pos":[{"mask-l-to":ge()}],"mask-image-l-from-color":[{"mask-l-from":W()}],"mask-image-l-to-color":[{"mask-l-to":W()}],"mask-image-x-from-pos":[{"mask-x-from":ge()}],"mask-image-x-to-pos":[{"mask-x-to":ge()}],"mask-image-x-from-color":[{"mask-x-from":W()}],"mask-image-x-to-color":[{"mask-x-to":W()}],"mask-image-y-from-pos":[{"mask-y-from":ge()}],"mask-image-y-to-pos":[{"mask-y-to":ge()}],"mask-image-y-from-color":[{"mask-y-from":W()}],"mask-image-y-to-color":[{"mask-y-to":W()}],"mask-image-radial":[{"mask-radial":[xe,ve]}],"mask-image-radial-from-pos":[{"mask-radial-from":ge()}],"mask-image-radial-to-pos":[{"mask-radial-to":ge()}],"mask-image-radial-from-color":[{"mask-radial-from":W()}],"mask-image-radial-to-color":[{"mask-radial-to":W()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":I()}],"mask-image-conic-pos":[{"mask-conic":[Le]}],"mask-image-conic-from-pos":[{"mask-conic-from":ge()}],"mask-image-conic-to-pos":[{"mask-conic-to":ge()}],"mask-image-conic-from-color":[{"mask-conic-from":W()}],"mask-image-conic-to-color":[{"mask-conic-to":W()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:M()}],"mask-repeat":[{mask:G()}],"mask-size":[{mask:Z()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",xe,ve]}],filter:[{filter:["","none",xe,ve]}],blur:[{blur:Ee()}],brightness:[{brightness:[Le,xe,ve]}],contrast:[{contrast:[Le,xe,ve]}],"drop-shadow":[{"drop-shadow":["","none",S,Ir,Qr]}],"drop-shadow-color":[{"drop-shadow":W()}],grayscale:[{grayscale:["",Le,xe,ve]}],"hue-rotate":[{"hue-rotate":[Le,xe,ve]}],invert:[{invert:["",Le,xe,ve]}],saturate:[{saturate:[Le,xe,ve]}],sepia:[{sepia:["",Le,xe,ve]}],"backdrop-filter":[{"backdrop-filter":["","none",xe,ve]}],"backdrop-blur":[{"backdrop-blur":Ee()}],"backdrop-brightness":[{"backdrop-brightness":[Le,xe,ve]}],"backdrop-contrast":[{"backdrop-contrast":[Le,xe,ve]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Le,xe,ve]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Le,xe,ve]}],"backdrop-invert":[{"backdrop-invert":["",Le,xe,ve]}],"backdrop-opacity":[{"backdrop-opacity":[Le,xe,ve]}],"backdrop-saturate":[{"backdrop-saturate":[Le,xe,ve]}],"backdrop-sepia":[{"backdrop-sepia":["",Le,xe,ve]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":U()}],"border-spacing-x":[{"border-spacing-x":U()}],"border-spacing-y":[{"border-spacing-y":U()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",xe,ve]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Le,"initial",xe,ve]}],ease:[{ease:["linear","initial",T,xe,ve]}],delay:[{delay:[Le,xe,ve]}],animate:[{animate:["none",z,xe,ve]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[C,xe,ve]}],"perspective-origin":[{"perspective-origin":ie()}],rotate:[{rotate:Re()}],"rotate-x":[{"rotate-x":Re()}],"rotate-y":[{"rotate-y":Re()}],"rotate-z":[{"rotate-z":Re()}],scale:[{scale:Ue()}],"scale-x":[{"scale-x":Ue()}],"scale-y":[{"scale-y":Ue()}],"scale-z":[{"scale-z":Ue()}],"scale-3d":["scale-3d"],skew:[{skew:nt()}],"skew-x":[{"skew-x":nt()}],"skew-y":[{"skew-y":nt()}],transform:[{transform:[xe,ve,"","none","gpu","cpu"]}],"transform-origin":[{origin:ie()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ye()}],"translate-x":[{"translate-x":Ye()}],"translate-y":[{"translate-y":Ye()}],"translate-z":[{"translate-z":Ye()}],"translate-none":["translate-none"],zoom:[{zoom:[Un,xe,ve]}],accent:[{accent:W()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:W()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",xe,ve]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":W()}],"scrollbar-track-color":[{"scrollbar-track":W()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mbs":[{"scroll-mbs":U()}],"scroll-mbe":[{"scroll-mbe":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pbs":[{"scroll-pbs":U()}],"scroll-pbe":[{"scroll-pbe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",xe,ve]}],fill:[{fill:["none",...W()]}],"stroke-w":[{stroke:[Le,no,Tl,Vg]}],stroke:[{stroke:["none",...W()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Yf=X_(yS);function me(...n){return Yf(Qf(n))}function Kg(n){return(n==null?void 0:n.kind)!=="direct"?null:n.field==="logo_dark"?{kind:"logo",variant:"dark"}:n.field==="logo_light"?{kind:"logo",variant:"light"}:n.field==="headshot"?{kind:"headshot"}:null}function gS(n){return n.kind==="headshot"?"headshot":n.variant==="dark"?"logo_dark":"logo_light"}function Wd(n){if(typeof n!="object"||n===null)return null;const l=n,s=typeof l.photo_id=="string"&&l.photo_id.length>0?l.photo_id:null;return s||(typeof l.asset_id=="string"&&l.asset_id.length>0?l.asset_id:null)}/**
699
+ * @license lucide-react v1.28.0 - ISC
700
+ *
701
+ * This source code is licensed under the ISC license.
702
+ * See the LICENSE file in the root directory of this source tree.
703
+ */const Ib=(...n)=>n.filter((l,s,o)=>!!l&&l.trim()!==""&&o.indexOf(l)===s).join(" ").trim();/**
704
+ * @license lucide-react v1.28.0 - ISC
705
+ *
706
+ * This source code is licensed under the ISC license.
707
+ * See the LICENSE file in the root directory of this source tree.
708
+ */const bS=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
709
+ * @license lucide-react v1.28.0 - ISC
710
+ *
711
+ * This source code is licensed under the ISC license.
712
+ * See the LICENSE file in the root directory of this source tree.
713
+ */const vS=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(l,s,o)=>o?o.toUpperCase():s.toLowerCase());/**
714
+ * @license lucide-react v1.28.0 - ISC
715
+ *
716
+ * This source code is licensed under the ISC license.
717
+ * See the LICENSE file in the root directory of this source tree.
718
+ */const Xg=n=>{const l=vS(n);return l.charAt(0).toUpperCase()+l.slice(1)};/**
719
+ * @license lucide-react v1.28.0 - ISC
720
+ *
721
+ * This source code is licensed under the ISC license.
722
+ * See the LICENSE file in the root directory of this source tree.
723
+ */var Ld={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
724
+ * @license lucide-react v1.28.0 - ISC
725
+ *
726
+ * This source code is licensed under the ISC license.
727
+ * See the LICENSE file in the root directory of this source tree.
728
+ */const xS=n=>{for(const l in n)if(l.startsWith("aria-")||l==="role"||l==="title")return!0;return!1},wS=w.createContext({}),_S=()=>w.useContext(wS),SS=w.forwardRef(({color:n,size:l,strokeWidth:s,absoluteStrokeWidth:o,className:u="",children:d,iconNode:h,...m},p)=>{const{size:g=24,strokeWidth:x=2,absoluteStrokeWidth:b=!1,color:k="currentColor",className:S=""}=_S()??{},R=o??b?Number(s??x)*24/Number(l??g):s??x;return w.createElement("svg",{ref:p,...Ld,width:l??g??Ld.width,height:l??g??Ld.height,stroke:n??k,strokeWidth:R,className:Ib("lucide",S,u),...!d&&!xS(m)&&{"aria-hidden":"true"},...m},[...h.map(([C,j])=>w.createElement(C,j)),...Array.isArray(d)?d:[d]])});/**
729
+ * @license lucide-react v1.28.0 - ISC
730
+ *
731
+ * This source code is licensed under the ISC license.
732
+ * See the LICENSE file in the root directory of this source tree.
733
+ */const ye=(n,l)=>{const s=w.forwardRef(({className:o,...u},d)=>w.createElement(SS,{ref:d,iconNode:l,className:Ib(`lucide-${bS(Xg(n))}`,`lucide-${n}`,o),...u}));return s.displayName=Xg(n),s};/**
734
+ * @license lucide-react v1.28.0 - ISC
735
+ *
736
+ * This source code is licensed under the ISC license.
737
+ * See the LICENSE file in the root directory of this source tree.
738
+ */const kS=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],ES=ye("activity",kS);/**
739
+ * @license lucide-react v1.28.0 - ISC
740
+ *
741
+ * This source code is licensed under the ISC license.
742
+ * See the LICENSE file in the root directory of this source tree.
743
+ */const jS=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]],MS=ye("archive",jS);/**
744
+ * @license lucide-react v1.28.0 - ISC
745
+ *
746
+ * This source code is licensed under the ISC license.
747
+ * See the LICENSE file in the root directory of this source tree.
748
+ */const AS=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],CS=ye("arrow-down",AS);/**
749
+ * @license lucide-react v1.28.0 - ISC
750
+ *
751
+ * This source code is licensed under the ISC license.
752
+ * See the LICENSE file in the root directory of this source tree.
753
+ */const NS=[["path",{d:"M8 3 4 7l4 4",key:"9rb6wj"}],["path",{d:"M4 7h16",key:"6tx8e3"}],["path",{d:"m16 21 4-4-4-4",key:"siv7j2"}],["path",{d:"M20 17H4",key:"h6l3hr"}]],TS=ye("arrow-left-right",NS);/**
754
+ * @license lucide-react v1.28.0 - ISC
755
+ *
756
+ * This source code is licensed under the ISC license.
757
+ * See the LICENSE file in the root directory of this source tree.
758
+ */const OS=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],RS=ye("arrow-left",OS);/**
759
+ * @license lucide-react v1.28.0 - ISC
760
+ *
761
+ * This source code is licensed under the ISC license.
762
+ * See the LICENSE file in the root directory of this source tree.
763
+ */const zS=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],DS=ye("arrow-right",zS);/**
764
+ * @license lucide-react v1.28.0 - ISC
765
+ *
766
+ * This source code is licensed under the ISC license.
767
+ * See the LICENSE file in the root directory of this source tree.
768
+ */const US=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],LS=ye("arrow-up",US);/**
769
+ * @license lucide-react v1.28.0 - ISC
770
+ *
771
+ * This source code is licensed under the ISC license.
772
+ * See the LICENSE file in the root directory of this source tree.
773
+ */const BS=[["path",{d:"M12 5v16",key:"1f6ucr"}],["path",{d:"M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z",key:"1fyvmf"}]],HS=ye("book-open",BS);/**
774
+ * @license lucide-react v1.28.0 - ISC
775
+ *
776
+ * This source code is licensed under the ISC license.
777
+ * See the LICENSE file in the root directory of this source tree.
778
+ */const qS=[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]],$f=ye("box",qS);/**
779
+ * @license lucide-react v1.28.0 - ISC
780
+ *
781
+ * This source code is licensed under the ISC license.
782
+ * See the LICENSE file in the root directory of this source tree.
783
+ */const GS=[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]],QS=ye("building-2",GS);/**
784
+ * @license lucide-react v1.28.0 - ISC
785
+ *
786
+ * This source code is licensed under the ISC license.
787
+ * See the LICENSE file in the root directory of this source tree.
788
+ */const IS=[["path",{d:"M8 2v3",key:"1ioesn"}],["path",{d:"M16 2v3",key:"otl347"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["path",{d:"M3 9h18",key:"1pudct"}]],VS=ye("calendar",IS);/**
789
+ * @license lucide-react v1.28.0 - ISC
790
+ *
791
+ * This source code is licensed under the ISC license.
792
+ * See the LICENSE file in the root directory of this source tree.
793
+ */const YS=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]],$S=ye("chart-line",YS);/**
794
+ * @license lucide-react v1.28.0 - ISC
795
+ *
796
+ * This source code is licensed under the ISC license.
797
+ * See the LICENSE file in the root directory of this source tree.
798
+ */const KS=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Vb=ye("check",KS);/**
799
+ * @license lucide-react v1.28.0 - ISC
800
+ *
801
+ * This source code is licensed under the ISC license.
802
+ * See the LICENSE file in the root directory of this source tree.
803
+ */const XS=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],FS=ye("chevron-down",XS);/**
804
+ * @license lucide-react v1.28.0 - ISC
805
+ *
806
+ * This source code is licensed under the ISC license.
807
+ * See the LICENSE file in the root directory of this source tree.
808
+ */const ZS=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],PS=ye("chevron-right",ZS);/**
809
+ * @license lucide-react v1.28.0 - ISC
810
+ *
811
+ * This source code is licensed under the ISC license.
812
+ * See the LICENSE file in the root directory of this source tree.
813
+ */const JS=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],WS=ye("chevrons-up-down",JS);/**
814
+ * @license lucide-react v1.28.0 - ISC
815
+ *
816
+ * This source code is licensed under the ISC license.
817
+ * See the LICENSE file in the root directory of this source tree.
818
+ */const ek=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],tk=ye("circle-question-mark",ek);/**
819
+ * @license lucide-react v1.28.0 - ISC
820
+ *
821
+ * This source code is licensed under the ISC license.
822
+ * See the LICENSE file in the root directory of this source tree.
823
+ */const nk=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],ak=ye("clock",nk);/**
824
+ * @license lucide-react v1.28.0 - ISC
825
+ *
826
+ * This source code is licensed under the ISC license.
827
+ * See the LICENSE file in the root directory of this source tree.
828
+ */const lk=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],ik=ye("copy",lk);/**
829
+ * @license lucide-react v1.28.0 - ISC
830
+ *
831
+ * This source code is licensed under the ISC license.
832
+ * See the LICENSE file in the root directory of this source tree.
833
+ */const sk=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],ok=ye("credit-card",sk);/**
834
+ * @license lucide-react v1.28.0 - ISC
835
+ *
836
+ * This source code is licensed under the ISC license.
837
+ * See the LICENSE file in the root directory of this source tree.
838
+ */const rk=[["path",{d:"M6 2v14a2 2 0 0 0 2 2h14",key:"ron5a4"}],["path",{d:"M18 22V8a2 2 0 0 0-2-2H2",key:"7s9ehn"}]],ck=ye("crop",rk);/**
839
+ * @license lucide-react v1.28.0 - ISC
840
+ *
841
+ * This source code is licensed under the ISC license.
842
+ * See the LICENSE file in the root directory of this source tree.
843
+ */const uk=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],dk=ye("download",uk);/**
844
+ * @license lucide-react v1.28.0 - ISC
845
+ *
846
+ * This source code is licensed under the ISC license.
847
+ * See the LICENSE file in the root directory of this source tree.
848
+ */const fk=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],hk=ye("ellipsis",fk);/**
849
+ * @license lucide-react v1.28.0 - ISC
850
+ *
851
+ * This source code is licensed under the ISC license.
852
+ * See the LICENSE file in the root directory of this source tree.
853
+ */const mk=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Yb=ye("external-link",mk);/**
854
+ * @license lucide-react v1.28.0 - ISC
855
+ *
856
+ * This source code is licensed under the ISC license.
857
+ * See the LICENSE file in the root directory of this source tree.
858
+ */const pk=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],$b=ye("eye-off",pk);/**
859
+ * @license lucide-react v1.28.0 - ISC
860
+ *
861
+ * This source code is licensed under the ISC license.
862
+ * See the LICENSE file in the root directory of this source tree.
863
+ */const yk=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Kb=ye("eye",yk);/**
864
+ * @license lucide-react v1.28.0 - ISC
865
+ *
866
+ * This source code is licensed under the ISC license.
867
+ * See the LICENSE file in the root directory of this source tree.
868
+ */const gk=[["path",{d:"M14.364 13.634a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506l4.013-4.009a1 1 0 0 0-3.004-3.004z",key:"ukzhwg"}],["path",{d:"M14.487 7.858A1 1 0 0 1 14 7V2",key:"1klhew"}],["path",{d:"M20 19.645V20a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l2.516 2.516",key:"rxaxab"}],["path",{d:"M8 18h1",key:"13wk12"}]],bk=ye("file-pen-line",gk);/**
869
+ * @license lucide-react v1.28.0 - ISC
870
+ *
871
+ * This source code is licensed under the ISC license.
872
+ * See the LICENSE file in the root directory of this source tree.
873
+ */const vk=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]],xk=ye("file-spreadsheet",vk);/**
874
+ * @license lucide-react v1.28.0 - ISC
875
+ *
876
+ * This source code is licensed under the ISC license.
877
+ * See the LICENSE file in the root directory of this source tree.
878
+ */const wk=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Kf=ye("file-text",wk);/**
879
+ * @license lucide-react v1.28.0 - ISC
880
+ *
881
+ * This source code is licensed under the ISC license.
882
+ * See the LICENSE file in the root directory of this source tree.
883
+ */const _k=[["path",{d:"M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8",key:"14sh0y"}],["path",{d:"M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z",key:"1970lx"}],["path",{d:"M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1",key:"l4dndm"}]],Sk=ye("files",_k);/**
884
+ * @license lucide-react v1.28.0 - ISC
885
+ *
886
+ * This source code is licensed under the ISC license.
887
+ * See the LICENSE file in the root directory of this source tree.
888
+ */const kk=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]],Ek=ye("film",kk);/**
889
+ * @license lucide-react v1.28.0 - ISC
890
+ *
891
+ * This source code is licensed under the ISC license.
892
+ * See the LICENSE file in the root directory of this source tree.
893
+ */const jk=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],Mk=ye("globe",jk);/**
894
+ * @license lucide-react v1.28.0 - ISC
895
+ *
896
+ * This source code is licensed under the ISC license.
897
+ * See the LICENSE file in the root directory of this source tree.
898
+ */const Ak=[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]],Xb=ye("grip-vertical",Ak);/**
899
+ * @license lucide-react v1.28.0 - ISC
900
+ *
901
+ * This source code is licensed under the ISC license.
902
+ * See the LICENSE file in the root directory of this source tree.
903
+ */const Ck=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],Nk=ye("house",Ck);/**
904
+ * @license lucide-react v1.28.0 - ISC
905
+ *
906
+ * This source code is licensed under the ISC license.
907
+ * See the LICENSE file in the root directory of this source tree.
908
+ */const Tk=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],Xf=ye("image",Tk);/**
909
+ * @license lucide-react v1.28.0 - ISC
910
+ *
911
+ * This source code is licensed under the ISC license.
912
+ * See the LICENSE file in the root directory of this source tree.
913
+ */const Ok=[["path",{d:"m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16",key:"9kzy35"}],["path",{d:"M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2",key:"1t0f0t"}],["circle",{cx:"13",cy:"7",r:"1",fill:"currentColor",key:"1obus6"}],["rect",{x:"8",y:"2",width:"14",height:"14",rx:"2",key:"1gvhby"}]],Rk=ye("images",Ok);/**
914
+ * @license lucide-react v1.28.0 - ISC
915
+ *
916
+ * This source code is licensed under the ISC license.
917
+ * See the LICENSE file in the root directory of this source tree.
918
+ */const zk=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],Dk=ye("layout-grid",zk);/**
919
+ * @license lucide-react v1.28.0 - ISC
920
+ *
921
+ * This source code is licensed under the ISC license.
922
+ * See the LICENSE file in the root directory of this source tree.
923
+ */const Uk=[["rect",{width:"18",height:"7",x:"3",y:"3",rx:"1",key:"f1a2em"}],["rect",{width:"9",height:"7",x:"3",y:"14",rx:"1",key:"jqznyg"}],["rect",{width:"5",height:"7",x:"16",y:"14",rx:"1",key:"q5h2i8"}]],Lk=ye("layout-template",Uk);/**
924
+ * @license lucide-react v1.28.0 - ISC
925
+ *
926
+ * This source code is licensed under the ISC license.
927
+ * See the LICENSE file in the root directory of this source tree.
928
+ */const Bk=[["rect",{width:"8",height:"18",x:"3",y:"3",rx:"1",key:"oynpb5"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M20.4 18.9c.2.5-.1 1.1-.6 1.3l-1.9.7c-.5.2-1.1-.1-1.3-.6L11.1 5.1c-.2-.5.1-1.1.6-1.3l1.9-.7c.5-.2 1.1.1 1.3.6Z",key:"1qboyk"}]],Hk=ye("library-big",Bk);/**
929
+ * @license lucide-react v1.28.0 - ISC
930
+ *
931
+ * This source code is licensed under the ISC license.
932
+ * See the LICENSE file in the root directory of this source tree.
933
+ */const qk=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],Gk=ye("link-2",qk);/**
934
+ * @license lucide-react v1.28.0 - ISC
935
+ *
936
+ * This source code is licensed under the ISC license.
937
+ * See the LICENSE file in the root directory of this source tree.
938
+ */const Qk=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],Ik=ye("link",Qk);/**
939
+ * @license lucide-react v1.28.0 - ISC
940
+ *
941
+ * This source code is licensed under the ISC license.
942
+ * See the LICENSE file in the root directory of this source tree.
943
+ */const Vk=[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]],Yk=ye("list",Vk);/**
944
+ * @license lucide-react v1.28.0 - ISC
945
+ *
946
+ * This source code is licensed under the ISC license.
947
+ * See the LICENSE file in the root directory of this source tree.
948
+ */const $k=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],Kk=ye("lock",$k);/**
949
+ * @license lucide-react v1.28.0 - ISC
950
+ *
951
+ * This source code is licensed under the ISC license.
952
+ * See the LICENSE file in the root directory of this source tree.
953
+ */const Xk=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],Fk=ye("log-out",Xk);/**
954
+ * @license lucide-react v1.28.0 - ISC
955
+ *
956
+ * This source code is licensed under the ISC license.
957
+ * See the LICENSE file in the root directory of this source tree.
958
+ */const Zk=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Pk=ye("mail",Zk);/**
959
+ * @license lucide-react v1.28.0 - ISC
960
+ *
961
+ * This source code is licensed under the ISC license.
962
+ * See the LICENSE file in the root directory of this source tree.
963
+ */const Jk=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],Fb=ye("map-pin",Jk);/**
964
+ * @license lucide-react v1.28.0 - ISC
965
+ *
966
+ * This source code is licensed under the ISC license.
967
+ * See the LICENSE file in the root directory of this source tree.
968
+ */const Wk=[["path",{d:"M18 8c0 3.613-3.869 7.429-5.393 8.795a1 1 0 0 1-1.214 0C9.87 15.429 6 11.613 6 8a6 6 0 0 1 12 0",key:"11u0oz"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["path",{d:"M8.714 14h-3.71a1 1 0 0 0-.948.683l-2.004 6A1 1 0 0 0 3 22h18a1 1 0 0 0 .948-1.316l-2-6a1 1 0 0 0-.949-.684h-3.712",key:"q8zwxj"}]],e5=ye("map-pinned",Wk);/**
969
+ * @license lucide-react v1.28.0 - ISC
970
+ *
971
+ * This source code is licensed under the ISC license.
972
+ * See the LICENSE file in the root directory of this source tree.
973
+ */const t5=[["path",{d:"M5 12h14",key:"1ays0h"}]],n5=ye("minus",t5);/**
974
+ * @license lucide-react v1.28.0 - ISC
975
+ *
976
+ * This source code is licensed under the ISC license.
977
+ * See the LICENSE file in the root directory of this source tree.
978
+ */const a5=[["path",{d:"M14 4.1 12 6",key:"ita8i4"}],["path",{d:"m5.1 8-2.9-.8",key:"1go3kf"}],["path",{d:"m6 12-1.9 2",key:"mnht97"}],["path",{d:"M7.2 2.2 8 5.1",key:"1cfko1"}],["path",{d:"M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z",key:"s0h3yz"}]],l5=ye("mouse-pointer-click",a5);/**
979
+ * @license lucide-react v1.28.0 - ISC
980
+ *
981
+ * This source code is licensed under the ISC license.
982
+ * See the LICENSE file in the root directory of this source tree.
983
+ */const i5=[["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0v-9a2 2 0 0 1 2-2h2",key:"39pd36"}],["rect",{width:"8",height:"4",x:"10",y:"6",rx:"1",key:"aywv1n"}]],s5=ye("newspaper",i5);/**
984
+ * @license lucide-react v1.28.0 - ISC
985
+ *
986
+ * This source code is licensed under the ISC license.
987
+ * See the LICENSE file in the root directory of this source tree.
988
+ */const o5=[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]],r5=ye("palette",o5);/**
989
+ * @license lucide-react v1.28.0 - ISC
990
+ *
991
+ * This source code is licensed under the ISC license.
992
+ * See the LICENSE file in the root directory of this source tree.
993
+ */const c5=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],u5=ye("pencil",c5);/**
994
+ * @license lucide-react v1.28.0 - ISC
995
+ *
996
+ * This source code is licensed under the ISC license.
997
+ * See the LICENSE file in the root directory of this source tree.
998
+ */const d5=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],f5=ye("phone",d5);/**
999
+ * @license lucide-react v1.28.0 - ISC
1000
+ *
1001
+ * This source code is licensed under the ISC license.
1002
+ * See the LICENSE file in the root directory of this source tree.
1003
+ */const h5=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],m5=ye("play",h5);/**
1004
+ * @license lucide-react v1.28.0 - ISC
1005
+ *
1006
+ * This source code is licensed under the ISC license.
1007
+ * See the LICENSE file in the root directory of this source tree.
1008
+ */const p5=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]],y5=ye("plug",p5);/**
1009
+ * @license lucide-react v1.28.0 - ISC
1010
+ *
1011
+ * This source code is licensed under the ISC license.
1012
+ * See the LICENSE file in the root directory of this source tree.
1013
+ */const g5=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Zb=ye("plus",g5);/**
1014
+ * @license lucide-react v1.28.0 - ISC
1015
+ *
1016
+ * This source code is licensed under the ISC license.
1017
+ * See the LICENSE file in the root directory of this source tree.
1018
+ */const b5=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],v5=ye("power",b5);/**
1019
+ * @license lucide-react v1.28.0 - ISC
1020
+ *
1021
+ * This source code is licensed under the ISC license.
1022
+ * See the LICENSE file in the root directory of this source tree.
1023
+ */const x5=[["path",{d:"M2 3h20",key:"91anmk"}],["path",{d:"M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3",key:"2k9sn8"}],["path",{d:"m7 21 5-5 5 5",key:"bip4we"}]],Pb=ye("presentation",x5);/**
1024
+ * @license lucide-react v1.28.0 - ISC
1025
+ *
1026
+ * This source code is licensed under the ISC license.
1027
+ * See the LICENSE file in the root directory of this source tree.
1028
+ */const w5=[["path",{d:"m15 14 5-5-5-5",key:"12vg1m"}],["path",{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13",key:"6uklza"}]],_5=ye("redo-2",w5);/**
1029
+ * @license lucide-react v1.28.0 - ISC
1030
+ *
1031
+ * This source code is licensed under the ISC license.
1032
+ * See the LICENSE file in the root directory of this source tree.
1033
+ */const S5=[["path",{d:"m15.194 13.707 3.814 1.86-1.86 3.814",key:"16shm9"}],["path",{d:"M16.47214 7.52786 A 5 10 0 1 0 13 21.79796",key:"1245p8"}],["path",{d:"M21.79796 11 A 10 5 0 1 0 19 15.57071",key:"1i40ks"}]],Ff=ye("rotate-3d",S5);/**
1034
+ * @license lucide-react v1.28.0 - ISC
1035
+ *
1036
+ * This source code is licensed under the ISC license.
1037
+ * See the LICENSE file in the root directory of this source tree.
1038
+ */const k5=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Jb=ye("search",k5);/**
1039
+ * @license lucide-react v1.28.0 - ISC
1040
+ *
1041
+ * This source code is licensed under the ISC license.
1042
+ * See the LICENSE file in the root directory of this source tree.
1043
+ */const E5=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],j5=ye("settings",E5);/**
1044
+ * @license lucide-react v1.28.0 - ISC
1045
+ *
1046
+ * This source code is licensed under the ISC license.
1047
+ * See the LICENSE file in the root directory of this source tree.
1048
+ */const M5=[["path",{d:"M12 2v13",key:"1km8f5"}],["path",{d:"m16 6-4-4-4 4",key:"13yo43"}],["path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8",key:"1b2hhj"}]],A5=ye("share",M5);/**
1049
+ * @license lucide-react v1.28.0 - ISC
1050
+ *
1051
+ * This source code is licensed under the ISC license.
1052
+ * See the LICENSE file in the root directory of this source tree.
1053
+ */const C5=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],N5=ye("sparkles",C5);/**
1054
+ * @license lucide-react v1.28.0 - ISC
1055
+ *
1056
+ * This source code is licensed under the ISC license.
1057
+ * See the LICENSE file in the root directory of this source tree.
1058
+ */const T5=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Wb=ye("trash-2",T5);/**
1059
+ * @license lucide-react v1.28.0 - ISC
1060
+ *
1061
+ * This source code is licensed under the ISC license.
1062
+ * See the LICENSE file in the root directory of this source tree.
1063
+ */const O5=[["path",{d:"M12 4v16",key:"1654pz"}],["path",{d:"M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",key:"e0r10z"}],["path",{d:"M9 20h6",key:"s66wpe"}]],R5=ye("type",O5);/**
1064
+ * @license lucide-react v1.28.0 - ISC
1065
+ *
1066
+ * This source code is licensed under the ISC license.
1067
+ * See the LICENSE file in the root directory of this source tree.
1068
+ */const z5=[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]],D5=ye("undo-2",z5);/**
1069
+ * @license lucide-react v1.28.0 - ISC
1070
+ *
1071
+ * This source code is licensed under the ISC license.
1072
+ * See the LICENSE file in the root directory of this source tree.
1073
+ */const U5=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],ev=ye("upload",U5);/**
1074
+ * @license lucide-react v1.28.0 - ISC
1075
+ *
1076
+ * This source code is licensed under the ISC license.
1077
+ * See the LICENSE file in the root directory of this source tree.
1078
+ */const L5=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],B5=ye("user-plus",L5);/**
1079
+ * @license lucide-react v1.28.0 - ISC
1080
+ *
1081
+ * This source code is licensed under the ISC license.
1082
+ * See the LICENSE file in the root directory of this source tree.
1083
+ */const H5=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],q5=ye("user",H5);/**
1084
+ * @license lucide-react v1.28.0 - ISC
1085
+ *
1086
+ * This source code is licensed under the ISC license.
1087
+ * See the LICENSE file in the root directory of this source tree.
1088
+ */const G5=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],Q5=ye("users",G5);/**
1089
+ * @license lucide-react v1.28.0 - ISC
1090
+ *
1091
+ * This source code is licensed under the ISC license.
1092
+ * See the LICENSE file in the root directory of this source tree.
1093
+ */const I5=[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]],tv=ye("video",I5);/**
1094
+ * @license lucide-react v1.28.0 - ISC
1095
+ *
1096
+ * This source code is licensed under the ISC license.
1097
+ * See the LICENSE file in the root directory of this source tree.
1098
+ */const V5=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],nv=ye("x",V5),Zf="flex flex-col gap-3.5 pt-1",Qn="flex flex-col gap-1",Y5="flex items-center justify-between gap-2.5",ba="text-[length:calc(11*var(--content))] font-medium text-ink-4 pl-0.5",av="m-0 text-caption leading-[1.4] text-danger",cc="bg-[repeating-linear-gradient(135deg,rgba(20,18,13,0.05)_0_1px,transparent_1px_9px)]",rt="appearance-none cursor-pointer border-0 bg-transparent p-0 m-0 outline-none",vo="flex w-full items-stretch rounded-[calc(8*var(--content))] border border-line bg-white transition-[border-color,box-shadow] duration-[120ms] focus-within:border-accent focus-within:shadow-[0_0_0_3px_rgba(15,42,34,0.07)]",is="min-w-0 flex-1 appearance-none border-0 bg-transparent px-2.75 py-2.25 text-[length:calc(13.5*var(--content))] text-ink outline-none placeholder:text-ink-4",ef="flex items-center text-[length:calc(12.5*var(--content))] text-ink-4",$5=me(rt,"min-w-0 flex-1 bg-transparent text-ink outline-none placeholder:text-ink-4");function xo(n,l="Item"){const s=(n??"").trim().split(/\s+/).filter(Boolean),o=s.length>0?s[s.length-1]:l,u=K5(o);return u.charAt(0).toUpperCase()+u.slice(1)}function K5(n){return/[^aeiou]ies$/i.test(n)?n.slice(0,-3)+"y":/(?:s|x|z|ch|sh)es$/i.test(n)?n.slice(0,-2):/[^s]s$/i.test(n)?n.slice(0,-1):n}function X5(n,l){const s="font-mono text-[length:calc(10.5*var(--content))] text-ink-4 [font-feature-settings:'tnum'] shrink-0";return l==null?s:n>l?me(s,"text-danger"):n>=l*.9?me(s,"text-[#7a5a14]"):s}function lv({label:n,count:l,max:s,right:o,revealed:u=!0}){return f.jsxs("div",{className:Y5,children:[f.jsx("span",{className:ba,children:n}),f.jsx("div",{className:"flex items-center gap-1.5",children:o??(s!=null&&l!=null&&f.jsxs("span",{"aria-hidden":!u,className:me(X5(l,s),"transition-[opacity,transform] duration-150 ease-out motion-reduce:transition-none",u?"opacity-100 translate-y-0":"opacity-0 translate-y-1"),children:[l," / ",s]}))})]})}function Pf({children:n}){return f.jsx("span",{className:ba,children:n})}function Zr({value:n,onChange:l,label:s,max:o,count:u,headerRight:d,placeholder:h,multiline:m=!1,rows:p=3,inputMode:g,maxLength:x,spellCheck:b,bare:k=!1,className:S,ariaLabel:R,id:C}){const[j,T]=w.useState(!1),z=ne=>l(ne.target.value),D=()=>T(!0),I=()=>T(!1);if(k)return f.jsx("input",{id:C,className:me($5,S),value:n,placeholder:h,inputMode:g,maxLength:x,spellCheck:b,"aria-label":R,onChange:z});const ie=s!=null||d!=null||o!=null;return f.jsxs("div",{className:Qn,children:[ie&&f.jsx(lv,{label:s??"",count:u??n.length,max:o,right:d,revealed:j}),f.jsx("div",{className:vo,children:m?f.jsx("textarea",{id:C,className:me(is,"min-h-[calc(76*var(--content))] resize-none leading-[1.5]",S),rows:p,value:n,placeholder:h,maxLength:x,spellCheck:b,"aria-label":R,onChange:z,onFocus:D,onBlur:I}):f.jsx("input",{id:C,className:me(is,S),value:n,placeholder:h,inputMode:g,maxLength:x,spellCheck:b,"aria-label":R,onChange:z,onFocus:D,onBlur:I})})]})}function Qt(n,l,s=1.5){const o=n;return function({size:d=l}={}){return f.jsx(o,{size:d,strokeWidth:s,style:{width:`calc(${d} * var(--content))`,height:`calc(${d} * var(--content))`}})}}const De={swap:Qt(TS,13),crop:Qt(ck,13),eye:Qt(Kb,13),eyeOff:Qt($b,13),trash:Qt(Wb,11),plus:Qt(Zb,14),up:Qt(ev,15),link:Qt(Ik,13),play:({size:n=20}={})=>f.jsx(m5,{size:n,strokeWidth:0,fill:"currentColor",style:{width:`calc(${n} * var(--content))`,height:`calc(${n} * var(--content))`}}),tour:Qt(Ff,18),search:Qt(Jb,14),x:Qt(nv,15),check:Qt(Vb,13),minus:Qt(n5,16),external:Qt(Yb,11),grip:Qt(Xb,13,1.8)},F5="flex max-h-full w-full flex-col overflow-hidden rounded-[14px] bg-canvas shadow-[0_24px_70px_-24px_rgba(20,18,13,0.5),0_2px_0_rgba(20,18,13,0.04)]",iv="flex flex-shrink-0 items-center gap-[14px] border-b border-line-soft px-[18px] py-4",sv="mr-auto flex min-w-0 flex-col gap-0.5",ov="m-0 text-[16px] font-semibold tracking-[-0.01em]",Z5="text-[12px] text-ink-3",rv=me(rt,"grid size-8 flex-shrink-0 place-items-center rounded-[8px] text-ink-3 hover:bg-[#f1f0ea] hover:text-ink"),cv="flex flex-shrink-0 items-center justify-between gap-3 border-t border-line-soft px-[18px] py-[13px]",uv="ml-auto flex gap-2",dv=me(rt,"inline-flex h-9 items-center gap-1.5 rounded-[9px] border border-transparent px-4 text-[13px] font-semibold"),fv=me(dv,"border-line bg-white text-ink hover:bg-[#faf9f6]"),Jf=me(dv,"border-honey-2 bg-honey text-honey-ink hover:bg-honey-2 disabled:cursor-default disabled:opacity-45"),P5=me(rt,"inline-flex h-9 items-center px-1 font-medium text-ink-2 hover:text-ink"),Fg="flex flex-shrink-0 gap-2.5 px-[18px] pb-3 pt-[14px]",Zg="flex h-[38px] flex-1 items-center gap-2 rounded-[9px] border border-line bg-white px-3 transition-[border-color] duration-[120ms] focus-within:border-accent",Pg="grid flex-shrink-0 place-items-center text-ink-3",Jg="flex-1 border-0 bg-transparent text-[13.5px] text-ink",J5="min-h-0 flex-1 overflow-y-auto px-[18px] pb-[18px] pt-0.5",W5="grid grid-cols-4 gap-x-3 gap-y-[14px]",e4="col-span-full py-12 text-center text-[13px] text-ink-3",t4=me(rt,"group/cell flex flex-col gap-1.5 text-left"),n4="flex h-[120px] items-center justify-center",a4="relative mx-auto w-fit max-w-full overflow-hidden rounded-[9px] border border-line transition-[box-shadow,border-color] duration-[120ms] group-hover/cell:border-ink-4 group-data-[selected]/cell:border-accent group-data-[selected]/cell:shadow-[0_0_0_3px_rgba(15,42,34,0.18)]",Wg="block h-auto max-h-[120px] w-auto max-w-full",l4="absolute right-1.5 top-1.5 grid size-[22px] place-items-center rounded-full bg-accent text-white shadow-[0_2px_6px_rgba(0,0,0,0.25)]",i4="relative grid h-[120px] w-[160px] place-items-center bg-[#e6e3da] text-ink-3",s4="block w-full truncate text-center text-[11.5px] leading-[1.35] text-ink-2",o4="absolute bottom-1.5 left-1.5 rounded-full bg-[rgba(15,18,9,0.72)] px-1.5 py-0.5 text-[10.5px] font-semibold tabular-nums text-white",r4=me(rt,"group/up flex h-[120px] w-full flex-col items-center justify-center gap-[7px] self-start rounded-[9px] border-[1.5px] border-dashed border-ink-4 bg-[#fafaf8] text-ink-3 hover:border-accent hover:bg-white hover:text-accent"),c4="grid size-[38px] place-items-center rounded-full border border-line bg-white group-hover/up:border-accent",u4="text-[12px] font-semibold",d4="flex flex-shrink-0 gap-0.5 rounded-[9px] bg-[#f1f0ea] p-[3px]",f4=me(rt,"inline-flex h-8 items-center rounded-[7px] px-[13px] text-[12.5px] font-semibold text-ink-3");function h4(n,l=!1){return me(f4,n&&"bg-white text-ink shadow-[0_1px_3px_rgba(20,18,13,0.1)]",l&&"opacity-40 cursor-not-allowed")}var Wf=yb();function m4(...n){return Yf(Qf(n))}const hv=1e3;let p4=0;const sl=[];let mv="",pv="";function y4(){if(sl.length!==1||typeof document>"u")return;const n=document.body;mv=n.style.overflow,pv=n.style.paddingRight;const l=window.innerWidth-document.documentElement.clientWidth;n.style.overflow="hidden",l>0&&(n.style.paddingRight=`${l}px`)}function g4(){sl.length===0&&(typeof document>"u"||(document.body.style.overflow=mv,document.body.style.paddingRight=pv))}function b4(){const n=++p4;return sl.push(n),y4(),n}function e0(n){const l=sl.indexOf(n);l!==-1&&sl.splice(l,1),g4()}function v4(n){const l=sl.indexOf(n);return hv+(l===-1?0:l)*10}function t0(n){return sl[sl.length-1]===n}const x4="(prefers-reduced-motion: reduce)";function w4(){const[n,l]=w.useState(!1);return w.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const s=window.matchMedia(x4);l(s.matches);const o=u=>l(u.matches);return s.addEventListener("change",o),()=>s.removeEventListener("change",o)},[]),n}const _4={sm:"max-w-[calc(420*var(--frame))]",md:"max-w-[calc(520*var(--frame))]",lg:"max-w-[calc(800*var(--frame))]",xl:"max-w-[calc(1240*var(--frame))]",full:"max-w-[calc(100vw-80px)]"},S4='a[href],button:not([disabled]),textarea:not([disabled]),input:not([disabled]),select:not([disabled]),[tabindex]:not([tabindex="-1"])';function k4({open:n,onClose:l,className:s,size:o,closeOnBackdrop:u=!0,closeOnEsc:d=!0,labelledBy:h,ariaLabel:m,children:p}){const[g,x]=w.useState("closed"),b=w.useRef(null),k=w.useRef(null),S=w.useRef(null),[R,C]=w.useState(1e3),j=w4();w.useEffect(()=>{n&&g==="closed"?x("open"):!n&&g==="open"&&x(j?"closed":"closing")},[n,g,j]),w.useEffect(()=>{var D;if(g==="open"&&b.current===null){S.current=document.activeElement??null;const I=b4();b.current=I,C(v4(I)),(D=k.current)==null||D.focus()}},[g]),w.useEffect(()=>{var D,I;g==="closed"&&b.current!==null&&(e0(b.current),b.current=null,(I=(D=S.current)==null?void 0:D.focus)==null||I.call(D),S.current=null)},[g]),w.useEffect(()=>()=>{b.current!==null&&(e0(b.current),b.current=null)},[]),w.useEffect(()=>{if(g!=="closing")return;const D=setTimeout(()=>x("closed"),400);return()=>clearTimeout(D)},[g]),w.useEffect(()=>{if(g!=="open"||!d)return;const D=I=>{I.key==="Escape"&&(b.current===null||!t0(b.current)||(I.stopPropagation(),l()))};return document.addEventListener("keydown",D,!0),()=>document.removeEventListener("keydown",D,!0)},[g,d,l]),w.useEffect(()=>{if(g!=="open")return;const D=I=>{if(I.key!=="Tab"||b.current===null||!t0(b.current))return;const ie=k.current;if(!ie)return;const ne=ie.querySelectorAll(S4);if(ne.length===0){I.preventDefault();return}const ee=ne[0],U=ne[ne.length-1];I.shiftKey&&document.activeElement===ee?(I.preventDefault(),U==null||U.focus()):!I.shiftKey&&document.activeElement===U&&(I.preventDefault(),ee==null||ee.focus())};return document.addEventListener("keydown",D,!0),()=>document.removeEventListener("keydown",D,!0)},[g]);const T=w.useCallback(D=>{D.target===D.currentTarget&&g==="closing"&&x("closed")},[g]);if(g==="closed"||typeof document>"u")return null;const z=g==="closing"?"closing":"open";return Wf.createPortal(f.jsx("div",{className:"hp-modal-backdrop","data-state":z,style:{zIndex:R},onMouseDown:u?l:void 0,children:f.jsx("div",{ref:k,className:m4("hp-modal-panel",o?_4[o]:void 0,s),"data-state":z,role:"dialog","aria-modal":"true","aria-labelledby":h,"aria-label":m,tabIndex:-1,onMouseDown:D=>D.stopPropagation(),onAnimationEnd:T,children:p})}),document.body)}const E4={page:"max-w-[920px]",pick:"max-w-[700px]",crop:"max-w-[680px]"};function yv({open:n=!0,variant:l,onClose:s,children:o}){return f.jsx(k4,{open:n,onClose:s,className:me(F5,E4[l]),children:o})}const cn={Shell:yv,head:iv,titles:sv,title:ov,subtitle:Z5,close:rv,CloseIcon:De.x,foot:cv,actions:uv,buttonGhost:fv,buttonPrimary:Jf,buttonLink:P5,ZoomOutIcon:De.minus,ZoomInIcon:De.plus};function j4(n){return n.flatMap(l=>typeof l=="string"?[l]:[l[0],l[1]])}const M4=new Set(["text","number","select","url"]);function n0(n){return M4.has(n.type)?n.type!=="text"||n.size===void 0||n.size==="short":!1}function A4(n){const l=[];for(let s=0;s<n.length;s++){const o=n[s+1];n0(n[s])&&o!==void 0&&n0(o)?(l.push({kind:"pair",indices:[s,s+1]}),s++):l.push({kind:"single",index:s})}return l}function gv(n,l){const s=new Map(l.map((d,h)=>[d,h])),o=[],u=new Set;for(const d of n??[]){if(typeof d=="string"){const k=s.get(d);k!==void 0&&!u.has(d)&&(u.add(d),o.push({kind:"single",index:k}));continue}const[h,m]=d,p=s.get(h),g=s.get(m),x=p!==void 0&&!u.has(h),b=g!==void 0&&!u.has(m);x&&b?(u.add(h),u.add(m),o.push({kind:"pair",indices:[p,g]})):x?(u.add(h),o.push({kind:"single",index:p})):b&&(u.add(m),o.push({kind:"single",index:g}))}for(const d of l)u.has(d)||(u.add(d),o.push({kind:"single",index:s.get(d)}));return o}function bv({items:n,rows:l}){return f.jsx("div",{className:Zf,children:l.map(s=>s.kind==="pair"?f.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[n[s.indices[0]],n[s.indices[1]]]},`p${s.indices[0]}`):f.jsx("div",{children:n[s.index]},`s${s.index}`))})}function tf(n){var d;const l=n.crop,s=l!=null&&l.aspect&&l.aspect>0?l.aspect:16/10,o=(d=l==null?void 0:l.mobile)==null?void 0:d.aspect,u=o&&o>0&&Math.abs(o-s)>1e-4?o:void 0;return{mode:(l==null?void 0:l.mode)==="free"?"free":"locked",aspect:s,aspectLabel:l==null?void 0:l.aspectLabel,mobileAspect:u}}function C4(n,l){if(!n||!l)return{nx:0,ny:0,nw:1,nh:1};const s=Math.min(1,l/n),o=Math.min(1,n/l);return{nx:(1-s)/2,ny:(1-o)/2,nw:s,nh:o}}function vv(n,l,s){return n==="free"?{nx:0,ny:0,nw:1,nh:1}:C4(l,s)}function a0(n,l,s){const o=n.nx+n.nw/2,u=n.ny+n.nh/2;if(!l||!s)return{...n};const d=l/s;let h=n.nw,m=h/d;return m>n.nh&&(m=n.nh,h=m*d),{nx:o-h/2,ny:u-m/2,nw:h,nh:m}}function xv(n){const l=s=>Math.round(s*1e4)/1e4;return l(n.nx)===0&&l(n.ny)===0&&l(n.nw)===1&&l(n.nh)===1}function N4(n,l,s,o){const u=n==null?void 0:n.rect;return u&&u.nw&&u.nh?{nx:u.nx,ny:u.ny,nw:u.nw,nh:u.nh}:vv(l,s,o)}const Xa=52,T4=1,O4=6,R4=.94,Rt=(n,l,s)=>s<l?l:Math.max(l,Math.min(s,n));function Vr(n,l,s,o,u,d,h){n=Math.max(Xa,n);const m=u>0?h.r-s:s-h.l;n=Math.min(n,m);let p=n/l;const g=d>0?h.b-o:o-h.t;return p>g&&(p=g,n=p*l),{w:Math.max(Xa,n),h:Math.max(Xa,n/l)}}function z4({src:n,mode:l,aspect:s,seed:o}){const u=w.useRef(null),[,d]=w.useReducer(B=>B+1,0),h=w.useRef(null),m=w.useRef({w:0,h:0}),p=w.useRef({z:1,icx:0,icy:0}),g=w.useRef({x:0,y:0,w:0,h:0}),x=w.useRef(!1),b=w.useRef(o??null),[k,S]=w.useState(null),R=()=>{const B=h.current,H=m.current;if(!B||!H.w)return{w:0,h:0};const K=Math.min(H.w/B.w,H.h/B.h)*R4;return{w:B.w*K,h:B.h*K}},C=()=>{const B=R(),H=p.current,K=B.w*H.z,_=B.h*H.z;return{l:H.icx-K/2,t:H.icy-_/2,r:H.icx+K/2,b:H.icy+_/2,w:K,h:_}},j=()=>{const B=C(),H=m.current;return{l:Math.max(B.l,0),t:Math.max(B.t,0),r:Math.min(B.r,H.w),b:Math.min(B.b,H.h)}},T=()=>{const B=C(),H=g.current,K=p.current,_=B.w/2,Y=B.h/2;B.w>=H.w&&(K.icx=Rt(K.icx,H.x+H.w-_,H.x+_)),B.h>=H.h&&(K.icy=Rt(K.icy,H.y+H.h-Y,H.y+Y))},z=()=>{const B=g.current,H=j(),K=H.r-H.l,_=H.b-H.t;if(l==="locked"){let Y=Math.min(B.w,K),q=Y/s;q>_&&(q=_,Y=q*s),B.w=Y,B.h=q}else B.w=Math.min(B.w,K),B.h=Math.min(B.h,_);B.x=Rt(B.x,H.l,H.r-B.w),B.y=Rt(B.y,H.t,H.b-B.h)},D=()=>{z(),T(),z()},I=B=>{const H=m.current;if(!H.w||!h.current)return;p.current={z:1,icx:H.w/2,icy:H.h/2};const K=C(),_=h.current.w/h.current.h,Y=B?N4(b.current,l,_,s):vv(l,_,s);g.current={x:K.l+Y.nx*K.w,y:K.t+Y.ny*K.h,w:Y.nw*K.w,h:Y.nh*K.h},D(),x.current=!0,d()};w.useEffect(()=>{x.current=!1,h.current=null,d();const B=new Image;B.onload=()=>{h.current={w:B.naturalWidth||1,h:B.naturalHeight||1},I(!0)},B.src=n},[n]),w.useEffect(()=>{b.current=o??null},[o]),w.useEffect(()=>{h.current&&I(!1)},[l,s]),w.useLayoutEffect(()=>{const B=u.current;if(!B)return;const H=()=>{const _=B.getBoundingClientRect(),Y=m.current.w;m.current={w:_.width,h:_.height},!Y&&h.current?I(!0):Y&&(D(),d())};H();const K=new ResizeObserver(H);return K.observe(B),()=>K.disconnect()},[]);const ie=B=>{const H=u.current.getBoundingClientRect();return{x:B.clientX-H.left,y:B.clientY-H.top}},ne=B=>{var q,ue;if(B.button)return;B.stopPropagation(),(ue=(q=B.currentTarget).setPointerCapture)==null||ue.call(q,B.pointerId),S("move");const H=ie(B),K={...g.current},_=W=>{const M=ie(W),G=j(),Z=g.current;Z.x=Rt(K.x+(M.x-H.x),G.l,G.r-Z.w),Z.y=Rt(K.y+(M.y-H.y),G.t,G.b-Z.h),d()},Y=()=>{window.removeEventListener("pointermove",_),window.removeEventListener("pointerup",Y),window.removeEventListener("pointercancel",Y),S(null)};window.addEventListener("pointermove",_),window.addEventListener("pointerup",Y),window.addEventListener("pointercancel",Y)},ee=B=>H=>{var W,M;if(H.button)return;H.stopPropagation(),(M=(W=H.currentTarget).setPointerCapture)==null||M.call(W,H.pointerId),S(B);const K=g.current,_={l:K.x,t:K.y,r:K.x+K.w,b:K.y+K.h},Y=ie(H),q=G=>{const Z=ie(G),N=j(),P=Z.x-Y.x,X=Z.y-Y.y;let F=_.l,pe=_.t,ge=_.r,Ee=_.b;if(l==="free")B.includes("w")&&(F=Rt(_.l+P,N.l,ge-Xa)),B.includes("e")&&(ge=Rt(_.r+P,F+Xa,N.r)),B.includes("n")&&(pe=Rt(_.t+X,N.t,Ee-Xa)),B.includes("s")&&(Ee=Rt(_.b+X,pe+Xa,N.b));else{const Re=s;if(B==="se"){const Ue=Vr(_.r+P-_.l,Re,_.l,_.t,1,1,N);F=_.l,pe=_.t,ge=F+Ue.w,Ee=pe+Ue.h}else if(B==="nw"){const Ue=Vr(_.r-(_.l+P),Re,_.r,_.b,-1,-1,N);ge=_.r,Ee=_.b,F=ge-Ue.w,pe=Ee-Ue.h}else if(B==="ne"){const Ue=Vr(_.r+P-_.l,Re,_.l,_.b,1,-1,N);F=_.l,Ee=_.b,ge=F+Ue.w,pe=Ee-Ue.h}else if(B==="sw"){const Ue=Vr(_.r-(_.l+P),Re,_.r,_.t,-1,1,N);ge=_.r,pe=_.t,F=ge-Ue.w,Ee=pe+Ue.h}else{const Ue=(_.l+_.r)/2,nt=(_.t+_.b)/2;let Ye=K.w,Te=K.h;B==="e"?Ye=(_.r+P-Ue)*2:B==="w"?Ye=(Ue-(_.l+P))*2:B==="s"?(Te=(_.b+X-nt)*2,Ye=Te*Re):B==="n"&&(Te=(nt-(_.t+X))*2,Ye=Te*Re),Ye=Math.max(Xa,Ye),Te=Ye/Re,Ye=Math.min(Ye,N.r-N.l),Te=Ye/Re,Te>N.b-N.t&&(Te=N.b-N.t,Ye=Te*Re),F=Rt(Ue-Ye/2,N.l,N.r-Ye),pe=Rt(nt-Te/2,N.t,N.b-Te),ge=F+Ye,Ee=pe+Te}}g.current={x:F,y:pe,w:ge-F,h:Ee-pe},d()},ue=()=>{window.removeEventListener("pointermove",q),window.removeEventListener("pointerup",ue),window.removeEventListener("pointercancel",ue),S(null)};window.addEventListener("pointermove",q),window.addEventListener("pointerup",ue),window.addEventListener("pointercancel",ue)},U=(B,H,K)=>{const _=p.current;B=Rt(B,T4,O4);const Y=B/_.z;_.icx=H+(_.icx-H)*Y,_.icy=K+(_.icy-K)*Y,_.z=B,D(),d()},ce=B=>{const H=m.current;U(p.current.z*B,H.w/2,H.h/2)},de=w.useRef(()=>{});de.current=B=>{B.preventDefault();const H=m.current,K=Math.exp(-B.deltaY*.0015*(B.ctrlKey?2.6:1));U(p.current.z*K,H.w/2,H.h/2)},w.useEffect(()=>{const B=u.current;if(!B)return;const H=K=>de.current(K);return B.addEventListener("wheel",H,{passive:!1}),()=>B.removeEventListener("wheel",H)},[]);const re=()=>I(!1),le=()=>{const B=C(),H=g.current;return B.w?{nx:Rt((H.x-B.l)/B.w,0,1),ny:Rt((H.y-B.t)/B.h,0,1),nw:Rt(H.w/B.w,0,1),nh:Rt(H.h/B.h,0,1)}:{nx:0,ny:0,nw:1,nh:1}};return{stageRef:u,ready:x.current,activeHandle:k,imgRect:C,box:g.current,view:p.current,onBoxDown:ne,onHandleDown:ee,zoomBy:ce,reset:re,cropValue:le,natAspect:h.current?h.current.w/h.current.h:null}}function D4({chrome:n,pct:l,onZoomOut:s,onZoomIn:o,resetSlot:u,children:d}){return f.jsxs("div",{className:n.foot,children:[f.jsxs("div",{className:"flex items-center gap-3",children:[u,f.jsxs("div",{className:"flex h-9 items-center overflow-hidden rounded-[9px] border border-line",children:[f.jsx("button",{type:"button",className:"grid size-9 place-items-center text-ink-2 hover:bg-[#f1f0ea] hover:text-ink",onClick:s,"aria-label":"Zoom out",children:f.jsx(n.ZoomOutIcon,{})}),f.jsx("span",{className:"grid h-9 min-w-[54px] place-items-center border-x border-line font-mono text-[12px] text-ink-2",children:l}),f.jsx("button",{type:"button",className:"grid size-9 place-items-center text-ink-2 hover:bg-[#f1f0ea] hover:text-ink",onClick:o,"aria-label":"Zoom in",children:f.jsx(n.ZoomInIcon,{})})]})]}),f.jsx("div",{className:n.actions,children:d})]})}const U4=["n","s","e","w"],L4=["nw","ne","sw","se"];function B4({cr:n,mode:l,src:s,stageClassName:o}){const u=n.imgRect(),d=n.box,h=n.activeHandle!==null;return f.jsx("div",{className:`we-cs-stage ${o}`,ref:n.stageRef,children:n.ready&&f.jsxs(f.Fragment,{children:[f.jsx("img",{className:"we-cs-img",src:s,alt:"",draggable:!1,style:{left:u.l,top:u.t,width:u.w,height:u.h}}),f.jsxs("div",{className:`we-cs-box${h?" live":""}`,"data-mode":l,"data-crop-box":!0,style:{left:d.x,top:d.y,width:d.w,height:d.h},onPointerDown:n.onBoxDown,children:[f.jsx("div",{className:"we-cs-ring"}),f.jsxs("div",{className:"we-cs-thirds",children:[f.jsx("i",{}),f.jsx("i",{}),f.jsx("i",{}),f.jsx("i",{})]}),U4.map(m=>f.jsx("div",{"data-crop-handle":m,className:`we-cs-h edge ${m}`,onPointerDown:n.onHandleDown(m)},m)),L4.map(m=>f.jsx("div",{"data-crop-handle":m,className:`we-cs-h corner ${m}`,onPointerDown:n.onHandleDown(m)},m))]})]})})}const H4=w.forwardRef(function({chrome:l,src:s,mode:o,aspect:u,seed:d,stageClassName:h="h-[412px]",footerActions:m,onUserEdit:p},g){const x=z4({src:s,mode:o,aspect:u,seed:d});w.useImperativeHandle(g,()=>({cropValue:()=>x.cropValue(),natAspect:()=>x.natAspect}),[x]);const b=Math.round(x.view.z*100)+"%",k=w.useRef(!1),S=w.useRef(!1),R=()=>{S.current=!0},C=()=>{S.current&&!k.current&&(k.current=!0,p==null||p())},j=()=>{S.current=!1};return f.jsxs(f.Fragment,{children:[f.jsx("div",{onPointerDownCapture:R,onPointerMoveCapture:C,onPointerUpCapture:j,children:f.jsx(B4,{cr:x,mode:o,src:s,stageClassName:h})}),f.jsx(D4,{chrome:l,pct:b,onZoomOut:()=>x.zoomBy(1/1.25),onZoomIn:()=>x.zoomBy(1.25),resetSlot:f.jsx("button",{type:"button",className:l.buttonLink,onClick:x.reset,children:"Reset"}),children:m})]})});function l0(...n){return Yf(Qf(n))}function q4({view:n,onChange:l,className:s}){const o=(u,d,h)=>f.jsx("button",{type:"button","aria-label":d,"aria-pressed":n===u,onClick:()=>l(u),className:l0("flex h-7 w-8 items-center justify-center rounded-[6px] transition-[background,color] duration-[120ms]",n===u?"bg-white text-ink shadow-sm":"text-white/85 hover:text-white"),children:f.jsx("svg",{viewBox:"0 0 24 24",className:"h-4 w-4",fill:"none",stroke:"currentColor",strokeWidth:"1.8",children:f.jsx("path",{d:h})})});return f.jsxs("div",{className:l0("inline-flex gap-0.5 rounded-[8px] bg-[rgba(15,18,9,0.55)] p-0.5 backdrop-blur",s),children:[o("desktop","Desktop crop","M3 5h18v11H3zM8 20h8M12 16v4"),o("mobile","Mobile crop","M8 3h8a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zM11 18h2")]})}function eh({chrome:n,open:l=!0,src:s,mode:o,aspect:u,mobileAspect:d,seed:h,mobileSeed:m,onApply:p,onClose:g,title:x="Crop photo",subtitle:b,variant:k="crop",stageClassName:S="h-[412px]"}){const[R]=w.useState(s),C=d!=null&&Math.abs(d-u)>1e-4,[j,T]=w.useState("desktop"),[z,D]=w.useState({desktop:(h==null?void 0:h.rect)??null,mobile:(m==null?void 0:m.rect)??null}),I=w.useRef(!(m!=null&&m.rect)),ie=w.useRef(null),ne=B=>B==="mobile"?d??u:u,ee=()=>{var B;return((B=ie.current)==null?void 0:B.natAspect())??u},U=B=>B==="desktop"?{rect:z.desktop}:{rect:z.mobile??z.desktop},ce=()=>{var B;return((B=ie.current)==null?void 0:B.cropValue())??null},de=B=>{if(B===j)return;const H=ce();D(K=>{const _={...K,[j]:H??K[j]};if(j==="desktop"&&I.current){const Y=_.desktop??H;Y&&(_.mobile=a0(Y,d??u,ee()))}return _}),T(B)},re=()=>{j==="mobile"&&(I.current=!1)},le=()=>{const B=ce(),H=ee(),K=(j==="desktop"?B:z.desktop)??B??{nx:0,ny:0,nw:1,nh:1};let _={rect:K,ar:H};if(C){let Y=j==="mobile"?B:z.mobile;Y||(Y=a0(K,d??u,H)),_={..._,mobile:{rect:Y,derived:I.current}}}p(_)};return f.jsxs(n.Shell,{open:l,variant:k,onClose:g,children:[f.jsxs("div",{className:n.head,children:[f.jsxs("div",{className:n.titles,children:[f.jsx("h2",{className:n.title,children:x}),b?f.jsx("span",{className:n.subtitle,children:b}):null]}),f.jsx("button",{className:n.close,onClick:g,"aria-label":"Close",children:f.jsx(n.CloseIcon,{})})]}),f.jsxs("div",{className:"relative",children:[C&&f.jsx(q4,{view:j,onChange:de,className:"absolute right-3 top-3 z-10"}),f.jsx(H4,{ref:ie,chrome:n,src:R,mode:o,aspect:ne(j),seed:U(j),stageClassName:S,onUserEdit:re,footerActions:f.jsxs(f.Fragment,{children:[f.jsx("button",{className:n.buttonGhost,onClick:g,children:"Cancel"}),f.jsx("button",{className:n.buttonPrimary,onClick:le,children:"Apply crop"})]})},j)]})]})}function G4(n,l,s){return{nx:n.x/l,ny:n.y/s,nw:n.w/l,nh:n.h/s}}function Q4(n,l,s){return{x:n.nx*l,y:n.ny*s,w:n.nw*l,h:n.nh*s}}function I4(n,l,s,o){const u=Math.max(o,Math.min(n.w,l)),d=Math.max(o,Math.min(n.h,s)),h=Math.max(0,Math.min(n.x,l-u)),m=Math.max(0,Math.min(n.y,s-d));return{x:h,y:m,w:u,h:d}}function V4(n,l,s,o){return I4(Q4(n,l,s),l,s,o)}var Jl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Dl,Fa,Vi,lb,Y4=(lb=class extends Jl{constructor(){super();be(this,Dl);be(this,Fa);be(this,Vi);fe(this,Vi,l=>{if(typeof window<"u"&&window.addEventListener){const s=()=>l();return window.addEventListener("visibilitychange",s,!1),()=>{window.removeEventListener("visibilitychange",s)}}})}onSubscribe(){E(this,Fa)||this.setEventListener(E(this,Vi))}onUnsubscribe(){var l;this.hasListeners()||((l=E(this,Fa))==null||l.call(this),fe(this,Fa,void 0))}setEventListener(l){var s;fe(this,Vi,l),(s=E(this,Fa))==null||s.call(this),fe(this,Fa,l(o=>{typeof o=="boolean"?this.setFocused(o):this.onFocus()}))}setFocused(l){E(this,Dl)!==l&&(fe(this,Dl,l),this.onFocus())}onFocus(){const l=this.isFocused();this.listeners.forEach(s=>{s(l)})}isFocused(){var l;return typeof E(this,Dl)=="boolean"?E(this,Dl):((l=globalThis.document)==null?void 0:l.visibilityState)!=="hidden"}},Dl=new WeakMap,Fa=new WeakMap,Vi=new WeakMap,lb),th=new Y4,$4={setTimeout:(n,l)=>setTimeout(n,l),clearTimeout:n=>clearTimeout(n),setInterval:(n,l)=>setInterval(n,l),clearInterval:n=>clearInterval(n)},Za,Lf,ib,K4=(ib=class{constructor(){be(this,Za,$4);be(this,Lf,!1)}setTimeoutProvider(n){fe(this,Za,n)}setTimeout(n,l){return E(this,Za).setTimeout(n,l)}clearTimeout(n){E(this,Za).clearTimeout(n)}setInterval(n,l){return E(this,Za).setInterval(n,l)}clearInterval(n){E(this,Za).clearInterval(n)}},Za=new WeakMap,Lf=new WeakMap,ib),Rl=new K4;function X4(n){setTimeout(n,0)}var F4=typeof window>"u"||"Deno"in globalThis;function qt(){}function Z4(n,l){return typeof n=="function"?n(l):n}function nf(n){return typeof n=="number"&&n>=0&&n!==1/0}function wv(n,l){return Math.max(n+(l||0)-Date.now(),0)}function il(n,l){return typeof n=="function"?n(l):n}function fn(n,l){return typeof n=="function"?n(l):n}function i0(n,l){const{type:s="all",exact:o,fetchStatus:u,predicate:d,queryKey:h,stale:m}=n;if(h){if(o){if(l.queryHash!==nh(h,l.options))return!1}else if(!ss(l.queryKey,h))return!1}if(s!=="all"){const p=l.isActive();if(s==="active"&&!p||s==="inactive"&&p)return!1}return!(typeof m=="boolean"&&l.isStale()!==m||u&&u!==l.state.fetchStatus||d&&!d(l))}function s0(n,l){const{exact:s,status:o,predicate:u,mutationKey:d}=n;if(d){if(!l.options.mutationKey)return!1;if(s){if(Xl(l.options.mutationKey)!==Xl(d))return!1}else if(!ss(l.options.mutationKey,d))return!1}return!(o&&l.state.status!==o||u&&!u(l))}function nh(n,l){return((l==null?void 0:l.queryKeyHashFn)||Xl)(n)}function Xl(n){return JSON.stringify(n,(l,s)=>af(s)?Object.keys(s).sort().reduce((o,u)=>(o[u]=s[u],o),{}):s)}function ss(n,l){if(n===l)return!0;if(typeof n!=typeof l)return!1;if(n&&l&&typeof n=="object"&&typeof l=="object"){if(Array.isArray(n)&&Array.isArray(l)){for(let o=0;o<l.length;o++)if(!ss(n[o],l[o]))return!1;return!0}const s=Object.keys(l);for(const o of s)if(!ss(n[o],l[o]))return!1;return!0}return!1}var P4=Object.prototype.hasOwnProperty;function ah(n,l,s=0){if(n===l)return n;if(s>500)return l;const o=o0(n)&&o0(l);if(!o&&!(af(n)&&af(l)))return l;const d=(o?n:Object.keys(n)).length,h=o?l:Object.keys(l),m=h.length,p=o?new Array(m):{};let g=0;for(let x=0;x<m;x++){const b=o?x:h[x],k=n[b],S=l[b];if(k===S){p[b]=k,(o?x<d:P4.call(n,b))&&g++;continue}if(k===null||S===null||typeof k!="object"||typeof S!="object"){p[b]=S;continue}const R=ah(k,S,s+1);p[b]=R,R===k&&g++}return d===m&&g===d?n:p}function oo(n,l){if(!l||Object.keys(n).length!==Object.keys(l).length)return!1;for(const s in n)if(n[s]!==l[s])return!1;return!0}function o0(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function af(n){if(!r0(n))return!1;const l=n.constructor;if(l===void 0)return!0;const s=l.prototype;return!(!r0(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function r0(n){return Object.prototype.toString.call(n)==="[object Object]"}function J4(n){return new Promise(l=>{Rl.setTimeout(l,n)})}function lf(n,l,s){return typeof s.structuralSharing=="function"?s.structuralSharing(n,l):s.structuralSharing!==!1?ah(n,l):l}function W4(n,l,s=0){const o=[...n,l];return s&&o.length>s?o.slice(1):o}function eE(n,l,s=0){const o=[l,...n];return s&&o.length>s?o.slice(0,-1):o}var lh=Symbol();function _v(n,l){return!n.queryFn&&(l!=null&&l.initialPromise)?()=>l.initialPromise:!n.queryFn||n.queryFn===lh?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function ih(n,l){return typeof n=="function"?n(...l):!!n}function tE(n,l,s){let o=!1,u;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(u??(u=l()),o||(o=!0,u.aborted?s():u.addEventListener("abort",s,{once:!0})),u)}),n}var ro=(()=>{let n=()=>F4;return{isServer(){return n()},setIsServer(l){n=l}}})();function sf(){let n,l;const s=new Promise((u,d)=>{n=u,l=d});s.status="pending",s.catch(()=>{});function o(u){Object.assign(s,u),delete s.resolve,delete s.reject}return s.resolve=u=>{o({status:"fulfilled",value:u}),n(u)},s.reject=u=>{o({status:"rejected",reason:u}),l(u)},s}var nE=X4;function aE(){let n=[],l=0,s=m=>{m()},o=m=>{m()},u=nE;const d=m=>{l?n.push(m):u(()=>{s(m)})},h=()=>{const m=n;n=[],m.length&&u(()=>{o(()=>{m.forEach(p=>{s(p)})})})};return{batch:m=>{let p;l++;try{p=m()}finally{l--,l||h()}return p},batchCalls:m=>(...p)=>{d(()=>{m(...p)})},schedule:d,setNotifyFunction:m=>{s=m},setBatchNotifyFunction:m=>{o=m},setScheduler:m=>{u=m}}}var ht=aE(),Yi,Pa,$i,sb,lE=(sb=class extends Jl{constructor(){super();be(this,Yi,!0);be(this,Pa);be(this,$i);fe(this,$i,l=>{if(typeof window<"u"&&window.addEventListener){const s=()=>l(!0),o=()=>l(!1);return window.addEventListener("online",s,!1),window.addEventListener("offline",o,!1),()=>{window.removeEventListener("online",s),window.removeEventListener("offline",o)}}})}onSubscribe(){E(this,Pa)||this.setEventListener(E(this,$i))}onUnsubscribe(){var l;this.hasListeners()||((l=E(this,Pa))==null||l.call(this),fe(this,Pa,void 0))}setEventListener(l){var s;fe(this,$i,l),(s=E(this,Pa))==null||s.call(this),fe(this,Pa,l(this.setOnline.bind(this)))}setOnline(l){E(this,Yi)!==l&&(fe(this,Yi,l),this.listeners.forEach(o=>{o(l)}))}isOnline(){return E(this,Yi)}},Yi=new WeakMap,Pa=new WeakMap,$i=new WeakMap,sb),tc=new lE;function iE(n){return Math.min(1e3*2**n,3e4)}function Sv(n){return(n??"online")==="online"?tc.isOnline():!0}var of=class extends Error{constructor(n){super("CancelledError"),this.revert=n==null?void 0:n.revert,this.silent=n==null?void 0:n.silent}};function kv(n){let l=!1,s=0,o;const u=sf(),d=()=>u.status!=="pending",h=C=>{var j;if(!d()){const T=new of(C);k(T),(j=n.onCancel)==null||j.call(n,T)}},m=()=>{l=!0},p=()=>{l=!1},g=()=>th.isFocused()&&(n.networkMode==="always"||tc.isOnline())&&n.canRun(),x=()=>Sv(n.networkMode)&&n.canRun(),b=C=>{d()||(o==null||o(),u.resolve(C))},k=C=>{d()||(o==null||o(),u.reject(C))},S=()=>new Promise(C=>{var j;o=T=>{(d()||g())&&C(T)},(j=n.onPause)==null||j.call(n)}).then(()=>{var C;o=void 0,d()||(C=n.onContinue)==null||C.call(n)}),R=()=>{if(d())return;let C;const j=s===0?n.initialPromise:void 0;try{C=j??n.fn()}catch(T){C=Promise.reject(T)}Promise.resolve(C).then(b).catch(T=>{var ne;if(d())return;const z=n.retry??(ro.isServer()?0:3),D=n.retryDelay??iE,I=typeof D=="function"?D(s,T):D,ie=z===!0||typeof z=="number"&&s<z||typeof z=="function"&&z(s,T);if(l||!ie){k(T);return}s++,(ne=n.onFail)==null||ne.call(n,s,T),J4(I).then(()=>g()?void 0:S()).then(()=>{l?k(T):R()})})};return{promise:u,status:()=>u.status,cancel:h,continue:()=>(o==null||o(),u),cancelRetry:m,continueRetry:p,canStart:x,start:()=>(x()?R():S().then(R),u)}}var Ul,ob,Ev=(ob=class{constructor(){be(this,Ul)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),nf(this.gcTime)&&fe(this,Ul,Rl.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(ro.isServer()?1/0:300*1e3))}clearGcTimeout(){E(this,Ul)!==void 0&&(Rl.clearTimeout(E(this,Ul)),fe(this,Ul,void 0))}},Ul=new WeakMap,ob);function sE(n){return{onFetch:(l,s)=>{var x,b,k,S,R;const o=l.options,u=(k=(b=(x=l.fetchOptions)==null?void 0:x.meta)==null?void 0:b.fetchMore)==null?void 0:k.direction,d=((S=l.state.data)==null?void 0:S.pages)||[],h=((R=l.state.data)==null?void 0:R.pageParams)||[];let m={pages:[],pageParams:[]},p=0;const g=async()=>{let C=!1;const j=D=>{tE(D,()=>l.signal,()=>C=!0)},T=_v(l.options,l.fetchOptions),z=async(D,I,ie)=>{if(C)return Promise.reject(l.signal.reason);if(I==null&&D.pages.length)return Promise.resolve(D);const ee=(()=>{const re={client:l.client,queryKey:l.queryKey,pageParam:I,direction:ie?"backward":"forward",meta:l.options.meta};return j(re),re})(),U=await T(ee),{maxPages:ce}=l.options,de=ie?eE:W4;return{pages:de(D.pages,U,ce),pageParams:de(D.pageParams,I,ce)}};if(u&&d.length){const D=u==="backward",I=D?oE:c0,ie={pages:d,pageParams:h},ne=I(o,ie);m=await z(ie,ne,D)}else{const D=n??d.length;do{const I=p===0?h[0]??o.initialPageParam:c0(o,m);if(p>0&&I==null)break;m=await z(m,I),p++}while(p<D)}return m};l.options.persister?l.fetchFn=()=>{var C,j;return(j=(C=l.options).persister)==null?void 0:j.call(C,g,{client:l.client,queryKey:l.queryKey,meta:l.options.meta,signal:l.signal},s)}:l.fetchFn=g}}}function c0(n,{pages:l,pageParams:s}){const o=l.length-1;return l.length>0?n.getNextPageParam(l[o],l,s[o],s):void 0}function oE(n,{pages:l,pageParams:s}){var o;return l.length>0?(o=n.getPreviousPageParam)==null?void 0:o.call(n,l[0],l,s[0],s):void 0}var Ki,Ll,Xi,kn,Bl,Mt,co,Hl,dn,jv,da,rb,rE=(rb=class extends Ev{constructor(l){super();be(this,dn);be(this,Ki);be(this,Ll);be(this,Xi);be(this,kn);be(this,Bl);be(this,Mt);be(this,co);be(this,Hl);fe(this,Hl,!1),fe(this,co,l.defaultOptions),this.setOptions(l.options),this.observers=[],fe(this,Bl,l.client),fe(this,kn,E(this,Bl).getQueryCache()),this.queryKey=l.queryKey,this.queryHash=l.queryHash,fe(this,Ll,d0(this.options)),this.state=l.state??E(this,Ll),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return E(this,Ki)}get promise(){var l;return(l=E(this,Mt))==null?void 0:l.promise}setOptions(l){if(this.options={...E(this,co),...l},l!=null&&l._type&&fe(this,Ki,l._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const s=d0(this.options);s.data!==void 0&&(this.setState(u0(s.data,s.dataUpdatedAt)),fe(this,Ll,s))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&E(this,kn).remove(this)}setData(l,s){const o=lf(this.state.data,l,this.options);return je(this,dn,da).call(this,{data:o,type:"success",dataUpdatedAt:s==null?void 0:s.updatedAt,manual:s==null?void 0:s.manual}),o}setState(l){je(this,dn,da).call(this,{type:"setState",state:l})}cancel(l){var o,u;const s=(o=E(this,Mt))==null?void 0:o.promise;return(u=E(this,Mt))==null||u.cancel(l),s?s.then(qt).catch(qt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return E(this,Ll)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(l=>fn(l.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===lh||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(l=>il(l.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(l=>l.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(l=0){return this.state.data===void 0?!0:l==="static"?!1:this.state.isInvalidated?!0:!wv(this.state.dataUpdatedAt,l)}onFocus(){var s;const l=this.observers.find(o=>o.shouldFetchOnWindowFocus());l==null||l.refetch({cancelRefetch:!1}),(s=E(this,Mt))==null||s.continue()}onOnline(){var s;const l=this.observers.find(o=>o.shouldFetchOnReconnect());l==null||l.refetch({cancelRefetch:!1}),(s=E(this,Mt))==null||s.continue()}addObserver(l){this.observers.includes(l)||(this.observers.push(l),this.clearGcTimeout(),E(this,kn).notify({type:"observerAdded",query:this,observer:l}))}removeObserver(l){this.observers.includes(l)&&(this.observers=this.observers.filter(s=>s!==l),this.observers.length||(E(this,Mt)&&(E(this,Hl)||je(this,dn,jv).call(this)?E(this,Mt).cancel({revert:!0}):E(this,Mt).cancelRetry()),this.scheduleGc()),E(this,kn).notify({type:"observerRemoved",query:this,observer:l}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||je(this,dn,da).call(this,{type:"invalidate"})}async fetch(l,s){var g,x,b,k,S,R,C,j,T,z,D;if(this.state.fetchStatus!=="idle"&&((g=E(this,Mt))==null?void 0:g.status())!=="rejected"){if(this.state.data!==void 0&&(s!=null&&s.cancelRefetch))this.cancel({silent:!0});else if(E(this,Mt))return E(this,Mt).continueRetry(),E(this,Mt).promise}if(l&&this.setOptions(l),!this.options.queryFn){const I=this.observers.find(ie=>ie.options.queryFn);I&&this.setOptions(I.options)}const o=new AbortController,u=I=>{Object.defineProperty(I,"signal",{enumerable:!0,get:()=>(fe(this,Hl,!0),o.signal)})},d=()=>{const I=_v(this.options,s),ne=(()=>{const ee={client:E(this,Bl),queryKey:this.queryKey,meta:this.meta};return u(ee),ee})();return fe(this,Hl,!1),this.options.persister?this.options.persister(I,ne,this):I(ne)},m=(()=>{const I={fetchOptions:s,options:this.options,queryKey:this.queryKey,client:E(this,Bl),state:this.state,fetchFn:d};return u(I),I})(),p=E(this,Ki)==="infinite"?sE(this.options.pages):this.options.behavior;p==null||p.onFetch(m,this),fe(this,Xi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((x=m.fetchOptions)==null?void 0:x.meta))&&je(this,dn,da).call(this,{type:"fetch",meta:(b=m.fetchOptions)==null?void 0:b.meta}),fe(this,Mt,kv({initialPromise:s==null?void 0:s.initialPromise,fn:m.fetchFn,onCancel:I=>{I instanceof of&&I.revert&&this.setState({...E(this,Xi),fetchStatus:"idle"}),o.abort()},onFail:(I,ie)=>{je(this,dn,da).call(this,{type:"failed",failureCount:I,error:ie})},onPause:()=>{je(this,dn,da).call(this,{type:"pause"})},onContinue:()=>{je(this,dn,da).call(this,{type:"continue"})},retry:m.options.retry,retryDelay:m.options.retryDelay,networkMode:m.options.networkMode,canRun:()=>!0}));try{const I=await E(this,Mt).start();if(I===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(I),(S=(k=E(this,kn).config).onSuccess)==null||S.call(k,I,this),(C=(R=E(this,kn).config).onSettled)==null||C.call(R,I,this.state.error,this),I}catch(I){if(I instanceof of){if(I.silent)return E(this,Mt).promise;if(I.revert){if(this.state.data===void 0)throw I;return this.state.data}}throw je(this,dn,da).call(this,{type:"error",error:I}),(T=(j=E(this,kn).config).onError)==null||T.call(j,I,this),(D=(z=E(this,kn).config).onSettled)==null||D.call(z,this.state.data,I,this),I}finally{this.scheduleGc()}}},Ki=new WeakMap,Ll=new WeakMap,Xi=new WeakMap,kn=new WeakMap,Bl=new WeakMap,Mt=new WeakMap,co=new WeakMap,Hl=new WeakMap,dn=new WeakSet,jv=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},da=function(l){const s=o=>{switch(l.type){case"failed":return{...o,fetchFailureCount:l.failureCount,fetchFailureReason:l.error};case"pause":return{...o,fetchStatus:"paused"};case"continue":return{...o,fetchStatus:"fetching"};case"fetch":return{...o,...Mv(o.data,this.options),fetchMeta:l.meta??null};case"success":const u={...o,...u0(l.data,l.dataUpdatedAt),dataUpdateCount:o.dataUpdateCount+1,...!l.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return fe(this,Xi,l.manual?u:void 0),u;case"error":const d=l.error;return{...o,error:d,errorUpdateCount:o.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:o.fetchFailureCount+1,fetchFailureReason:d,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...o,isInvalidated:!0};case"setState":return{...o,...l.state}}};this.state=s(this.state),ht.batch(()=>{this.observers.forEach(o=>{o.onQueryUpdate()}),E(this,kn).notify({query:this,type:"updated",action:l})})},rb);function Mv(n,l){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Sv(l.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function u0(n,l){return{data:n,dataUpdatedAt:l??Date.now(),error:null,isInvalidated:!1,status:"success"}}function d0(n){const l=typeof n.initialData=="function"?n.initialData():n.initialData,s=l!==void 0,o=s?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:l,dataUpdateCount:0,dataUpdatedAt:s?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var Pt,Ve,uo,It,ql,Fi,fa,Ja,fo,Zi,Pi,Gl,Ql,Wa,Ji,Fe,so,rf,cf,uf,df,ff,hf,mf,Av,cb,sh=(cb=class extends Jl{constructor(l,s){super();be(this,Fe);be(this,Pt);be(this,Ve);be(this,uo);be(this,It);be(this,ql);be(this,Fi);be(this,fa);be(this,Ja);be(this,fo);be(this,Zi);be(this,Pi);be(this,Gl);be(this,Ql);be(this,Wa);be(this,Ji,new Set);this.options=s,fe(this,Pt,l),fe(this,Ja,null),fe(this,fa,sf()),this.bindMethods(),this.setOptions(s)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(E(this,Ve).addObserver(this),f0(E(this,Ve),this.options)?je(this,Fe,so).call(this):this.updateResult(),je(this,Fe,df).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return pf(E(this,Ve),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return pf(E(this,Ve),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,je(this,Fe,ff).call(this),je(this,Fe,hf).call(this),E(this,Ve).removeObserver(this)}setOptions(l){const s=this.options,o=E(this,Ve);if(this.options=E(this,Pt).defaultQueryOptions(l),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof fn(this.options.enabled,E(this,Ve))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");je(this,Fe,mf).call(this),E(this,Ve).setOptions(this.options),s._defaulted&&!oo(this.options,s)&&E(this,Pt).getQueryCache().notify({type:"observerOptionsUpdated",query:E(this,Ve),observer:this});const u=this.hasListeners();u&&h0(E(this,Ve),o,this.options,s)&&je(this,Fe,so).call(this),this.updateResult(),u&&(E(this,Ve)!==o||fn(this.options.enabled,E(this,Ve))!==fn(s.enabled,E(this,Ve))||il(this.options.staleTime,E(this,Ve))!==il(s.staleTime,E(this,Ve)))&&je(this,Fe,rf).call(this);const d=je(this,Fe,cf).call(this);u&&(E(this,Ve)!==o||fn(this.options.enabled,E(this,Ve))!==fn(s.enabled,E(this,Ve))||d!==E(this,Wa))&&je(this,Fe,uf).call(this,d)}getOptimisticResult(l){const s=E(this,Pt).getQueryCache().build(E(this,Pt),l),o=this.createResult(s,l);return uE(this,o)&&(fe(this,It,o),fe(this,Fi,this.options),fe(this,ql,E(this,Ve).state)),o}getCurrentResult(){return E(this,It)}trackResult(l,s){return new Proxy(l,{get:(o,u)=>(this.trackProp(u),s==null||s(u),u==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&E(this,fa).status==="pending"&&E(this,fa).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(o,u))})}trackProp(l){E(this,Ji).add(l)}getCurrentQuery(){return E(this,Ve)}refetch({...l}={}){return this.fetch({...l})}fetchOptimistic(l){const s=E(this,Pt).defaultQueryOptions(l),o=E(this,Pt).getQueryCache().build(E(this,Pt),s);return o.fetch().then(()=>this.createResult(o,s))}fetch(l){return je(this,Fe,so).call(this,{...l,cancelRefetch:l.cancelRefetch??!0}).then(()=>(this.updateResult(),E(this,It)))}createResult(l,s){var ce;const o=E(this,Ve),u=this.options,d=E(this,It),h=E(this,ql),m=E(this,Fi),g=l!==o?l.state:E(this,uo),{state:x}=l;let b={...x},k=!1,S;if(s._optimisticResults){const de=this.hasListeners(),re=!de&&f0(l,s),le=de&&h0(l,o,s,u);(re||le)&&(b={...b,...Mv(x.data,l.options)}),s._optimisticResults==="isRestoring"&&(b.fetchStatus="idle")}let{error:R,errorUpdatedAt:C,status:j}=b;S=b.data;let T=!1;if(s.placeholderData!==void 0&&S===void 0&&j==="pending"){let de;d!=null&&d.isPlaceholderData&&s.placeholderData===(m==null?void 0:m.placeholderData)?(de=d.data,T=!0):de=typeof s.placeholderData=="function"?s.placeholderData((ce=E(this,Pi))==null?void 0:ce.state.data,E(this,Pi)):s.placeholderData,de!==void 0&&(j="success",S=lf(d==null?void 0:d.data,de,s),k=!0)}if(s.select&&S!==void 0&&!T)if(d&&S===(h==null?void 0:h.data)&&s.select===E(this,fo))S=E(this,Zi);else try{fe(this,fo,s.select),S=s.select(S),S=lf(d==null?void 0:d.data,S,s),fe(this,Zi,S),fe(this,Ja,null)}catch(de){fe(this,Ja,de)}E(this,Ja)&&(R=E(this,Ja),S=E(this,Zi),C=Date.now(),j="error");const z=b.fetchStatus==="fetching",D=j==="pending",I=j==="error",ie=D&&z,ne=S!==void 0,U={status:j,fetchStatus:b.fetchStatus,isPending:D,isSuccess:j==="success",isError:I,isInitialLoading:ie,isLoading:ie,data:S,dataUpdatedAt:b.dataUpdatedAt,error:R,errorUpdatedAt:C,failureCount:b.fetchFailureCount,failureReason:b.fetchFailureReason,errorUpdateCount:b.errorUpdateCount,isFetched:l.isFetched(),isFetchedAfterMount:b.dataUpdateCount>g.dataUpdateCount||b.errorUpdateCount>g.errorUpdateCount,isFetching:z,isRefetching:z&&!D,isLoadingError:I&&!ne,isPaused:b.fetchStatus==="paused",isPlaceholderData:k,isRefetchError:I&&ne,isStale:oh(l,s),refetch:this.refetch,promise:E(this,fa),isEnabled:fn(s.enabled,l)!==!1};if(this.options.experimental_prefetchInRender){const de=U.data!==void 0,re=U.status==="error"&&!de,le=K=>{re?K.reject(U.error):de&&K.resolve(U.data)},B=()=>{const K=fe(this,fa,U.promise=sf());le(K)},H=E(this,fa);switch(H.status){case"pending":l.queryHash===o.queryHash&&le(H);break;case"fulfilled":(re||U.data!==H.value)&&B();break;case"rejected":(!re||U.error!==H.reason)&&B();break}}return U}updateResult(){const l=E(this,It),s=this.createResult(E(this,Ve),this.options);if(fe(this,ql,E(this,Ve).state),fe(this,Fi,this.options),E(this,ql).data!==void 0&&fe(this,Pi,E(this,Ve)),oo(s,l))return;fe(this,It,s);const o=()=>{if(!l)return!0;const{notifyOnChangeProps:u}=this.options,d=typeof u=="function"?u():u;if(d==="all"||!d&&!E(this,Ji).size)return!0;const h=new Set(d??E(this,Ji));return this.options.throwOnError&&h.add("error"),Object.keys(E(this,It)).some(m=>{const p=m;return E(this,It)[p]!==l[p]&&h.has(p)})};je(this,Fe,Av).call(this,{listeners:o()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&je(this,Fe,df).call(this)}},Pt=new WeakMap,Ve=new WeakMap,uo=new WeakMap,It=new WeakMap,ql=new WeakMap,Fi=new WeakMap,fa=new WeakMap,Ja=new WeakMap,fo=new WeakMap,Zi=new WeakMap,Pi=new WeakMap,Gl=new WeakMap,Ql=new WeakMap,Wa=new WeakMap,Ji=new WeakMap,Fe=new WeakSet,so=function(l){je(this,Fe,mf).call(this);let s=E(this,Ve).fetch(this.options,l);return l!=null&&l.throwOnError||(s=s.catch(qt)),s},rf=function(){je(this,Fe,ff).call(this);const l=il(this.options.staleTime,E(this,Ve));if(ro.isServer()||E(this,It).isStale||!nf(l))return;const o=wv(E(this,It).dataUpdatedAt,l)+1;fe(this,Gl,Rl.setTimeout(()=>{E(this,It).isStale||this.updateResult()},o))},cf=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(E(this,Ve)):this.options.refetchInterval)??!1},uf=function(l){je(this,Fe,hf).call(this),fe(this,Wa,l),!(ro.isServer()||fn(this.options.enabled,E(this,Ve))===!1||!nf(E(this,Wa))||E(this,Wa)===0)&&fe(this,Ql,Rl.setInterval(()=>{(this.options.refetchIntervalInBackground||th.isFocused())&&je(this,Fe,so).call(this)},E(this,Wa)))},df=function(){je(this,Fe,rf).call(this),je(this,Fe,uf).call(this,je(this,Fe,cf).call(this))},ff=function(){E(this,Gl)!==void 0&&(Rl.clearTimeout(E(this,Gl)),fe(this,Gl,void 0))},hf=function(){E(this,Ql)!==void 0&&(Rl.clearInterval(E(this,Ql)),fe(this,Ql,void 0))},mf=function(){const l=E(this,Pt).getQueryCache().build(E(this,Pt),this.options);if(l===E(this,Ve))return;const s=E(this,Ve);fe(this,Ve,l),fe(this,uo,l.state),this.hasListeners()&&(s==null||s.removeObserver(this),l.addObserver(this))},Av=function(l){ht.batch(()=>{l.listeners&&this.listeners.forEach(s=>{s(E(this,It))}),E(this,Pt).getQueryCache().notify({query:E(this,Ve),type:"observerResultsUpdated"})})},cb);function cE(n,l){return fn(l.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&fn(l.retryOnMount,n)===!1)}function f0(n,l){return cE(n,l)||n.state.data!==void 0&&pf(n,l,l.refetchOnMount)}function pf(n,l,s){if(fn(l.enabled,n)!==!1&&il(l.staleTime,n)!=="static"){const o=typeof s=="function"?s(n):s;return o==="always"||o!==!1&&oh(n,l)}return!1}function h0(n,l,s,o){return(n!==l||fn(o.enabled,n)===!1)&&(!s.suspense||n.state.status!=="error")&&oh(n,s)}function oh(n,l){return fn(l.enabled,n)!==!1&&n.isStaleByTime(il(l.staleTime,n))}function uE(n,l){return!oo(n.getCurrentResult(),l)}var ho,Hn,Ht,Il,qn,Ka,ub,dE=(ub=class extends Ev{constructor(l){super();be(this,qn);be(this,ho);be(this,Hn);be(this,Ht);be(this,Il);fe(this,ho,l.client),this.mutationId=l.mutationId,fe(this,Ht,l.mutationCache),fe(this,Hn,[]),this.state=l.state||Cv(),this.setOptions(l.options),this.scheduleGc()}setOptions(l){this.options=l,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(l){E(this,Hn).includes(l)||(E(this,Hn).push(l),this.clearGcTimeout(),E(this,Ht).notify({type:"observerAdded",mutation:this,observer:l}))}removeObserver(l){fe(this,Hn,E(this,Hn).filter(s=>s!==l)),this.scheduleGc(),E(this,Ht).notify({type:"observerRemoved",mutation:this,observer:l})}optionalRemove(){E(this,Hn).length||(this.state.status==="pending"?this.scheduleGc():E(this,Ht).remove(this))}continue(){var l;return((l=E(this,Il))==null?void 0:l.continue())??this.execute(this.state.variables)}async execute(l){var h,m,p,g,x,b,k,S,R,C,j,T,z,D,I,ie,ne,ee;const s=()=>{je(this,qn,Ka).call(this,{type:"continue"})},o={client:E(this,ho),meta:this.options.meta,mutationKey:this.options.mutationKey};fe(this,Il,kv({fn:()=>this.options.mutationFn?this.options.mutationFn(l,o):Promise.reject(new Error("No mutationFn found")),onFail:(U,ce)=>{je(this,qn,Ka).call(this,{type:"failed",failureCount:U,error:ce})},onPause:()=>{je(this,qn,Ka).call(this,{type:"pause"})},onContinue:s,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>E(this,Ht).canRun(this)}));const u=this.state.status==="pending",d=!E(this,Il).canStart();try{if(u)s();else{je(this,qn,Ka).call(this,{type:"pending",variables:l,isPaused:d}),E(this,Ht).config.onMutate&&await E(this,Ht).config.onMutate(l,this,o);const ce=await((m=(h=this.options).onMutate)==null?void 0:m.call(h,l,o));ce!==this.state.context&&je(this,qn,Ka).call(this,{type:"pending",context:ce,variables:l,isPaused:d})}const U=await E(this,Il).start();return await((g=(p=E(this,Ht).config).onSuccess)==null?void 0:g.call(p,U,l,this.state.context,this,o)),await((b=(x=this.options).onSuccess)==null?void 0:b.call(x,U,l,this.state.context,o)),await((S=(k=E(this,Ht).config).onSettled)==null?void 0:S.call(k,U,null,this.state.variables,this.state.context,this,o)),await((C=(R=this.options).onSettled)==null?void 0:C.call(R,U,null,l,this.state.context,o)),je(this,qn,Ka).call(this,{type:"success",data:U}),U}catch(U){try{await((T=(j=E(this,Ht).config).onError)==null?void 0:T.call(j,U,l,this.state.context,this,o))}catch(ce){Promise.reject(ce)}try{await((D=(z=this.options).onError)==null?void 0:D.call(z,U,l,this.state.context,o))}catch(ce){Promise.reject(ce)}try{await((ie=(I=E(this,Ht).config).onSettled)==null?void 0:ie.call(I,void 0,U,this.state.variables,this.state.context,this,o))}catch(ce){Promise.reject(ce)}try{await((ee=(ne=this.options).onSettled)==null?void 0:ee.call(ne,void 0,U,l,this.state.context,o))}catch(ce){Promise.reject(ce)}throw je(this,qn,Ka).call(this,{type:"error",error:U}),U}finally{E(this,Ht).runNext(this)}}},ho=new WeakMap,Hn=new WeakMap,Ht=new WeakMap,Il=new WeakMap,qn=new WeakSet,Ka=function(l){const s=o=>{switch(l.type){case"failed":return{...o,failureCount:l.failureCount,failureReason:l.error};case"pause":return{...o,isPaused:!0};case"continue":return{...o,isPaused:!1};case"pending":return{...o,context:l.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:l.isPaused,status:"pending",variables:l.variables,submittedAt:Date.now()};case"success":return{...o,data:l.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...o,data:void 0,error:l.error,failureCount:o.failureCount+1,failureReason:l.error,isPaused:!1,status:"error"}}};this.state=s(this.state),ht.batch(()=>{E(this,Hn).forEach(o=>{o.onMutationUpdate(l)}),E(this,Ht).notify({mutation:this,type:"updated",action:l})})},ub);function Cv(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ha,Cn,mo,db,fE=(db=class extends Jl{constructor(l={}){super();be(this,ha);be(this,Cn);be(this,mo);this.config=l,fe(this,ha,new Set),fe(this,Cn,new Map),fe(this,mo,0)}build(l,s,o){const u=new dE({client:l,mutationCache:this,mutationId:++qr(this,mo)._,options:l.defaultMutationOptions(s),state:o});return this.add(u),u}add(l){E(this,ha).add(l);const s=Yr(l);if(typeof s=="string"){const o=E(this,Cn).get(s);o?o.push(l):E(this,Cn).set(s,[l])}this.notify({type:"added",mutation:l})}remove(l){if(E(this,ha).delete(l)){const s=Yr(l);if(typeof s=="string"){const o=E(this,Cn).get(s);if(o)if(o.length>1){const u=o.indexOf(l);u!==-1&&o.splice(u,1)}else o[0]===l&&E(this,Cn).delete(s)}}this.notify({type:"removed",mutation:l})}canRun(l){const s=Yr(l);if(typeof s=="string"){const o=E(this,Cn).get(s),u=o==null?void 0:o.find(d=>d.state.status==="pending");return!u||u===l}else return!0}runNext(l){var o;const s=Yr(l);if(typeof s=="string"){const u=(o=E(this,Cn).get(s))==null?void 0:o.find(d=>d!==l&&d.state.isPaused);return(u==null?void 0:u.continue())??Promise.resolve()}else return Promise.resolve()}clear(){ht.batch(()=>{E(this,ha).forEach(l=>{this.notify({type:"removed",mutation:l})}),E(this,ha).clear(),E(this,Cn).clear()})}getAll(){return Array.from(E(this,ha))}find(l){const s={exact:!0,...l};return this.getAll().find(o=>s0(s,o))}findAll(l={}){return this.getAll().filter(s=>s0(l,s))}notify(l){ht.batch(()=>{this.listeners.forEach(s=>{s(l)})})}resumePausedMutations(){const l=this.getAll().filter(s=>s.state.isPaused);return ht.batch(()=>Promise.all(l.map(s=>s.continue().catch(qt))))}},ha=new WeakMap,Cn=new WeakMap,mo=new WeakMap,db);function Yr(n){var l;return(l=n.options.scope)==null?void 0:l.id}var ma,el,Jt,pa,ga,Pr,yf,fb,hE=(fb=class extends Jl{constructor(s,o){super();be(this,ga);be(this,ma);be(this,el);be(this,Jt);be(this,pa);fe(this,ma,s),this.setOptions(o),this.bindMethods(),je(this,ga,Pr).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(s){var u;const o=this.options;this.options=E(this,ma).defaultMutationOptions(s),oo(this.options,o)||E(this,ma).getMutationCache().notify({type:"observerOptionsUpdated",mutation:E(this,Jt),observer:this}),o!=null&&o.mutationKey&&this.options.mutationKey&&Xl(o.mutationKey)!==Xl(this.options.mutationKey)?this.reset():((u=E(this,Jt))==null?void 0:u.state.status)==="pending"&&E(this,Jt).setOptions(this.options)}onUnsubscribe(){var s;this.hasListeners()||(s=E(this,Jt))==null||s.removeObserver(this)}onMutationUpdate(s){je(this,ga,Pr).call(this),je(this,ga,yf).call(this,s)}getCurrentResult(){return E(this,el)}reset(){var s;(s=E(this,Jt))==null||s.removeObserver(this),fe(this,Jt,void 0),je(this,ga,Pr).call(this),je(this,ga,yf).call(this)}mutate(s,o){var u;return fe(this,pa,o),(u=E(this,Jt))==null||u.removeObserver(this),fe(this,Jt,E(this,ma).getMutationCache().build(E(this,ma),this.options)),E(this,Jt).addObserver(this),E(this,Jt).execute(s)}},ma=new WeakMap,el=new WeakMap,Jt=new WeakMap,pa=new WeakMap,ga=new WeakSet,Pr=function(){var o;const s=((o=E(this,Jt))==null?void 0:o.state)??Cv();fe(this,el,{...s,isPending:s.status==="pending",isSuccess:s.status==="success",isError:s.status==="error",isIdle:s.status==="idle",mutate:this.mutate,reset:this.reset})},yf=function(s){ht.batch(()=>{var o,u,d,h,m,p,g,x;if(E(this,pa)&&this.hasListeners()){const b=E(this,el).variables,k=E(this,el).context,S={client:E(this,ma),meta:this.options.meta,mutationKey:this.options.mutationKey};if((s==null?void 0:s.type)==="success"){try{(u=(o=E(this,pa)).onSuccess)==null||u.call(o,s.data,b,k,S)}catch(R){Promise.reject(R)}try{(h=(d=E(this,pa)).onSettled)==null||h.call(d,s.data,null,b,k,S)}catch(R){Promise.reject(R)}}else if((s==null?void 0:s.type)==="error"){try{(p=(m=E(this,pa)).onError)==null||p.call(m,s.error,b,k,S)}catch(R){Promise.reject(R)}try{(x=(g=E(this,pa)).onSettled)==null||x.call(g,void 0,s.error,b,k,S)}catch(R){Promise.reject(R)}}}this.listeners.forEach(b=>{b(E(this,el))})})},fb);function m0(n,l){const s=new Set(l);return n.filter(o=>!s.has(o))}function mE(n,l,s){const o=n.slice(0);return o[l]=s,o}var Wi,Wt,es,Vl,un,tl,po,yo,go,bo,kt,gf,bf,Nv,vf,xf,wf,hb,pE=(hb=class extends Jl{constructor(l,s,o){super();be(this,kt);be(this,Wi);be(this,Wt);be(this,es);be(this,Vl);be(this,un);be(this,tl);be(this,po);be(this,yo);be(this,go);be(this,bo,[]);fe(this,Wi,l),fe(this,Vl,o),fe(this,es,[]),fe(this,un,[]),fe(this,Wt,[]),this.setQueries(s)}onSubscribe(){this.listeners.size===1&&E(this,un).forEach(l=>{l.subscribe(s=>{je(this,kt,xf).call(this,l,s)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,E(this,un).forEach(l=>{l.destroy()})}setQueries(l,s){fe(this,es,l),fe(this,Vl,s),ht.batch(()=>{const o=E(this,un),u=je(this,kt,vf).call(this,E(this,es));u.forEach(b=>b.observer.setOptions(b.defaultedQueryOptions));const d=u.map(b=>b.observer),h=d.map(b=>b.getCurrentResult()),m=o.length!==d.length,p=d.some((b,k)=>b!==o[k]),g=m||p,x=g?!0:h.some((b,k)=>{const S=E(this,Wt)[k];return!S||!oo(b,S)});!g&&!x||(g&&(fe(this,bo,u),fe(this,un,d)),fe(this,Wt,h),this.hasListeners()&&(g&&(m0(o,d).forEach(b=>{b.destroy()}),m0(d,o).forEach(b=>{b.subscribe(k=>{je(this,kt,xf).call(this,b,k)})})),je(this,kt,wf).call(this)))})}getCurrentResult(){return E(this,Wt)}getQueries(){return E(this,un).map(l=>l.getCurrentQuery())}getObservers(){return E(this,un)}getOptimisticResult(l,s){const o=je(this,kt,vf).call(this,l),u=o.map(h=>h.observer.getOptimisticResult(h.defaultedQueryOptions)),d=o.map(h=>h.defaultedQueryOptions.queryHash);return[u,h=>je(this,kt,bf).call(this,h??u,s,d),()=>je(this,kt,gf).call(this,u,o)]}},Wi=new WeakMap,Wt=new WeakMap,es=new WeakMap,Vl=new WeakMap,un=new WeakMap,tl=new WeakMap,po=new WeakMap,yo=new WeakMap,go=new WeakMap,bo=new WeakMap,kt=new WeakSet,gf=function(l,s){return s.map((o,u)=>{const d=l[u];return o.defaultedQueryOptions.notifyOnChangeProps?d:o.observer.trackResult(d,h=>{s.forEach(m=>{m.observer.trackProp(h)})})})},bf=function(l,s,o){if(s){const u=E(this,go),d=o!==void 0&&u!==void 0&&(u.length!==o.length||o.some((h,m)=>h!==u[m]));return(!E(this,tl)||E(this,Wt)!==E(this,yo)||d||s!==E(this,po))&&(fe(this,po,s),fe(this,yo,E(this,Wt)),o!==void 0&&fe(this,go,o),fe(this,tl,ah(E(this,tl),s(l)))),E(this,tl)}return l},Nv=function(){var l;return((l=E(this,Vl))==null?void 0:l.combine)!==void 0&&E(this,un).some((s,o)=>{var u;return s.options.suspense&&((u=E(this,Wt)[o])==null?void 0:u.data)===void 0})},vf=function(l){const s=new Map;E(this,un).forEach(u=>{const d=u.options.queryHash;if(!d)return;const h=s.get(d);h?h.push(u):s.set(d,[u])});const o=[];return l.forEach(u=>{var p;const d=E(this,Wi).defaultQueryOptions(u),m=((p=s.get(d.queryHash))==null?void 0:p.shift())??new sh(E(this,Wi),d);o.push({defaultedQueryOptions:d,observer:m})}),o},xf=function(l,s){const o=E(this,un).indexOf(l);o!==-1&&(fe(this,Wt,mE(E(this,Wt),o,s)),je(this,kt,wf).call(this))},wf=function(){var l;if(this.hasListeners()){const s=je(this,kt,gf).call(this,E(this,Wt),E(this,bo)),o=je(this,kt,Nv).call(this),u=E(this,tl),d=o?u:je(this,kt,bf).call(this,s,(l=E(this,Vl))==null?void 0:l.combine);(o||u!==d)&&ht.batch(()=>{this.listeners.forEach(h=>{h(E(this,Wt))})})}},hb),Gn,mb,yE=(mb=class extends Jl{constructor(l={}){super();be(this,Gn);this.config=l,fe(this,Gn,new Map)}build(l,s,o){const u=s.queryKey,d=s.queryHash??nh(u,s);let h=this.get(d);return h||(h=new rE({client:l,queryKey:u,queryHash:d,options:l.defaultQueryOptions(s),state:o,defaultOptions:l.getQueryDefaults(u)}),this.add(h)),h}add(l){E(this,Gn).has(l.queryHash)||(E(this,Gn).set(l.queryHash,l),this.notify({type:"added",query:l}))}remove(l){const s=E(this,Gn).get(l.queryHash);s&&(l.destroy(),s===l&&E(this,Gn).delete(l.queryHash),this.notify({type:"removed",query:l}))}clear(){ht.batch(()=>{this.getAll().forEach(l=>{this.remove(l)})})}get(l){return E(this,Gn).get(l)}getAll(){return[...E(this,Gn).values()]}find(l){const s={exact:!0,...l};return this.getAll().find(o=>i0(s,o))}findAll(l={}){const s=this.getAll();return Object.keys(l).length>0?s.filter(o=>i0(l,o)):s}notify(l){ht.batch(()=>{this.listeners.forEach(s=>{s(l)})})}onFocus(){ht.batch(()=>{this.getAll().forEach(l=>{l.onFocus()})})}onOnline(){ht.batch(()=>{this.getAll().forEach(l=>{l.onOnline()})})}},Gn=new WeakMap,mb),ft,nl,al,ts,ns,ll,as,ls,pb,gE=(pb=class{constructor(n={}){be(this,ft);be(this,nl);be(this,al);be(this,ts);be(this,ns);be(this,ll);be(this,as);be(this,ls);fe(this,ft,n.queryCache||new yE),fe(this,nl,n.mutationCache||new fE),fe(this,al,n.defaultOptions||{}),fe(this,ts,new Map),fe(this,ns,new Map),fe(this,ll,0)}mount(){qr(this,ll)._++,E(this,ll)===1&&(fe(this,as,th.subscribe(async n=>{n&&(await this.resumePausedMutations(),E(this,ft).onFocus())})),fe(this,ls,tc.subscribe(async n=>{n&&(await this.resumePausedMutations(),E(this,ft).onOnline())})))}unmount(){var n,l;qr(this,ll)._--,E(this,ll)===0&&((n=E(this,as))==null||n.call(this),fe(this,as,void 0),(l=E(this,ls))==null||l.call(this),fe(this,ls,void 0))}isFetching(n){return E(this,ft).findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return E(this,nl).findAll({...n,status:"pending"}).length}getQueryData(n){var s;const l=this.defaultQueryOptions({queryKey:n});return(s=E(this,ft).get(l.queryHash))==null?void 0:s.state.data}ensureQueryData(n){const l=this.defaultQueryOptions(n),s=E(this,ft).build(this,l),o=s.state.data;return o===void 0?this.fetchQuery(n):(n.revalidateIfStale&&s.isStaleByTime(il(l.staleTime,s))&&this.prefetchQuery(l),Promise.resolve(o))}getQueriesData(n){return E(this,ft).findAll(n).map(({queryKey:l,state:s})=>{const o=s.data;return[l,o]})}setQueryData(n,l,s){const o=this.defaultQueryOptions({queryKey:n}),u=E(this,ft).get(o.queryHash),d=u==null?void 0:u.state.data,h=Z4(l,d);if(h!==void 0)return E(this,ft).build(this,o).setData(h,{...s,manual:!0})}setQueriesData(n,l,s){return ht.batch(()=>E(this,ft).findAll(n).map(({queryKey:o})=>[o,this.setQueryData(o,l,s)]))}getQueryState(n){var s;const l=this.defaultQueryOptions({queryKey:n});return(s=E(this,ft).get(l.queryHash))==null?void 0:s.state}removeQueries(n){const l=E(this,ft);ht.batch(()=>{l.findAll(n).forEach(s=>{l.remove(s)})})}resetQueries(n,l){const s=E(this,ft);return ht.batch(()=>(s.findAll(n).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...n},l)))}cancelQueries(n,l={}){const s={revert:!0,...l},o=ht.batch(()=>E(this,ft).findAll(n).map(u=>u.cancel(s)));return Promise.all(o).then(qt).catch(qt)}invalidateQueries(n,l={}){return ht.batch(()=>(E(this,ft).findAll(n).forEach(s=>{s.invalidate()}),(n==null?void 0:n.refetchType)==="none"?Promise.resolve():this.refetchQueries({...n,type:(n==null?void 0:n.refetchType)??(n==null?void 0:n.type)??"active"},l)))}refetchQueries(n,l={}){const s={...l,cancelRefetch:l.cancelRefetch??!0},o=ht.batch(()=>E(this,ft).findAll(n).filter(u=>!u.isDisabled()&&!u.isStatic()).map(u=>{let d=u.fetch(void 0,s);return s.throwOnError||(d=d.catch(qt)),u.state.fetchStatus==="paused"?Promise.resolve():d}));return Promise.all(o).then(qt)}fetchQuery(n){const l=this.defaultQueryOptions(n);l.retry===void 0&&(l.retry=!1);const s=E(this,ft).build(this,l);return s.isStaleByTime(il(l.staleTime,s))?s.fetch(l):Promise.resolve(s.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(qt).catch(qt)}fetchInfiniteQuery(n){return n._type="infinite",this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(qt).catch(qt)}ensureInfiniteQueryData(n){return n._type="infinite",this.ensureQueryData(n)}resumePausedMutations(){return tc.isOnline()?E(this,nl).resumePausedMutations():Promise.resolve()}getQueryCache(){return E(this,ft)}getMutationCache(){return E(this,nl)}getDefaultOptions(){return E(this,al)}setDefaultOptions(n){fe(this,al,n)}setQueryDefaults(n,l){E(this,ts).set(Xl(n),{queryKey:n,defaultOptions:l})}getQueryDefaults(n){const l=[...E(this,ts).values()],s={};return l.forEach(o=>{ss(n,o.queryKey)&&Object.assign(s,o.defaultOptions)}),s}setMutationDefaults(n,l){E(this,ns).set(Xl(n),{mutationKey:n,defaultOptions:l})}getMutationDefaults(n){const l=[...E(this,ns).values()],s={};return l.forEach(o=>{ss(n,o.mutationKey)&&Object.assign(s,o.defaultOptions)}),s}defaultQueryOptions(n){if(n._defaulted)return n;const l={...E(this,al).queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return l.queryHash||(l.queryHash=nh(l.queryKey,l)),l.refetchOnReconnect===void 0&&(l.refetchOnReconnect=l.networkMode!=="always"),l.throwOnError===void 0&&(l.throwOnError=!!l.suspense),!l.networkMode&&l.persister&&(l.networkMode="offlineFirst"),l.queryFn===lh&&(l.enabled=!1),l}defaultMutationOptions(n){return n!=null&&n._defaulted?n:{...E(this,al).mutations,...(n==null?void 0:n.mutationKey)&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){E(this,ft).clear(),E(this,nl).clear()}},ft=new WeakMap,nl=new WeakMap,al=new WeakMap,ts=new WeakMap,ns=new WeakMap,ll=new WeakMap,as=new WeakMap,ls=new WeakMap,pb),Tv=w.createContext(void 0),cs=n=>{const l=w.useContext(Tv);if(!l)throw new Error("No QueryClient set, use QueryClientProvider to set one");return l},bE=({client:n,children:l})=>(w.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),f.jsx(Tv.Provider,{value:n,children:l})),Ov=w.createContext(!1),Rv=()=>w.useContext(Ov);Ov.Provider;function vE(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var xE=w.createContext(vE()),zv=()=>w.useContext(xE),Dv=(n,l,s)=>{const o=s!=null&&s.state.error&&typeof n.throwOnError=="function"?ih(n.throwOnError,[s.state.error,s]):n.throwOnError;(n.suspense||n.experimental_prefetchInRender||o)&&(l.isReset()||(n.retryOnMount=!1))},Uv=n=>{w.useEffect(()=>{n.clearReset()},[n])},Lv=({result:n,errorResetBoundary:l,throwOnError:s,query:o,suspense:u})=>n.isError&&!l.isReset()&&!n.isFetching&&o&&(u&&n.data===void 0||ih(s,[n.error,o])),Bv=n=>{if(n.suspense){const s=u=>u==="static"?u:Math.max(u??1e3,1e3),o=n.staleTime;n.staleTime=typeof o=="function"?(...u)=>s(o(...u)):s(o),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},wE=(n,l)=>n.isLoading&&n.isFetching&&!l,_f=(n,l)=>(n==null?void 0:n.suspense)&&l.isPending,Sf=(n,l,s)=>l.fetchOptimistic(n).catch(()=>{s.clearReset()});function _E({queries:n,...l},s){const o=cs(),u=Rv(),d=zv(),h=w.useMemo(()=>n.map(C=>{const j=o.defaultQueryOptions(C);return j._optimisticResults=u?"isRestoring":"optimistic",j}),[n,o,u]);h.forEach(C=>{Bv(C);const j=o.getQueryCache().get(C.queryHash);Dv(C,d,j)}),Uv(d);const[m]=w.useState(()=>new pE(o,h,l)),[p,g,x]=m.getOptimisticResult(h,l.combine),b=!u&&l.subscribed!==!1;w.useSyncExternalStore(w.useCallback(C=>b?m.subscribe(ht.batchCalls(C)):qt,[m,b]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),w.useEffect(()=>{m.setQueries(h,l)},[h,l,m]);const S=p.some((C,j)=>_f(h[j],C))?p.flatMap((C,j)=>{const T=h[j];if(T&&_f(T,C)){const z=new sh(o,T);return Sf(T,z,d)}return[]}):[];if(S.length>0)throw Promise.all(S);const R=p.find((C,j)=>{const T=h[j];return T&&Lv({result:C,errorResetBoundary:d,throwOnError:T.throwOnError,query:o.getQueryCache().get(T.queryHash),suspense:T.suspense})});if(R!=null&&R.error)throw R.error;return g(x())}function SE(n,l,s){var S,R,C,j;const o=Rv(),u=zv(),d=cs(),h=d.defaultQueryOptions(n);(R=(S=d.getDefaultOptions().queries)==null?void 0:S._experimental_beforeQuery)==null||R.call(S,h);const m=d.getQueryCache().get(h.queryHash),p=n.subscribed!==!1;h._optimisticResults=o?"isRestoring":p?"optimistic":void 0,Bv(h),Dv(h,u,m),Uv(u);const g=!d.getQueryCache().get(h.queryHash),[x]=w.useState(()=>new l(d,h)),b=x.getOptimisticResult(h),k=!o&&p;if(w.useSyncExternalStore(w.useCallback(T=>{const z=k?x.subscribe(ht.batchCalls(T)):qt;return x.updateResult(),z},[x,k]),()=>x.getCurrentResult(),()=>x.getCurrentResult()),w.useEffect(()=>{x.setOptions(h)},[h,x]),_f(h,b))throw Sf(h,x,u);if(Lv({result:b,errorResetBoundary:u,throwOnError:h.throwOnError,query:m,suspense:h.suspense}))throw b.error;if((j=(C=d.getDefaultOptions().queries)==null?void 0:C._experimental_afterQuery)==null||j.call(C,h,b),h.experimental_prefetchInRender&&!ro.isServer()&&wE(b,o)){const T=g?Sf(h,x,u):m==null?void 0:m.promise;T==null||T.catch(qt).finally(()=>{x.updateResult()})}return h.notifyOnChangeProps?b:x.trackResult(b)}function en(n,l){return SE(n,sh)}function kE(n,l){const s=cs(),[o]=w.useState(()=>new hE(s,n));w.useEffect(()=>{o.setOptions(n)},[o,n]);const u=w.useSyncExternalStore(w.useCallback(h=>o.subscribe(ht.batchCalls(h)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),d=w.useCallback((h,m)=>{o.mutate(h,m).catch(qt)},[o]);if(u.error&&ih(o.options.throwOnError,[u.error]))throw u.error;return{...u,mutate:d,mutateAsync:u.mutate}}const p0=n=>{let l;const s=new Set,o=(g,x)=>{const b=typeof g=="function"?g(l):g;if(!Object.is(b,l)){const k=l;l=x??(typeof b!="object"||b===null)?b:Object.assign({},l,b),s.forEach(S=>S(l,k))}},u=()=>l,m={setState:o,getState:u,getInitialState:()=>p,subscribe:g=>(s.add(g),()=>s.delete(g))},p=l=n(o,u,m);return m},EE=(n=>n?p0(n):p0),jE=n=>n;function ME(n,l=jE){const s=Gr.useSyncExternalStore(n.subscribe,Gr.useCallback(()=>l(n.getState()),[n,l]),Gr.useCallback(()=>l(n.getInitialState()),[n,l]));return Gr.useDebugValue(s),s}const y0=n=>{const l=EE(n),s=o=>ME(l,o);return Object.assign(s,l),s},Hv=(n=>n?y0(n):y0),os=Hv(n=>({byKey:{},start:(l,s)=>n(o=>({byKey:{...o.byKey,[l]:s}})),finish:l=>n(s=>{if(!(l in s.byKey))return s;const o={...s.byKey};return delete o[l],{byKey:o}})})),g0=1e3,AE=6e4;function CE({getJobStatus:n}){const l=os(s=>s.byKey);return f.jsx(f.Fragment,{children:Object.entries(l).map(([s,o])=>f.jsx(NE,{entryKey:s,entry:o,getJobStatus:n},o.jobId))})}function NE({entryKey:n,entry:l,getJobStatus:s}){var R,C;const o=os(j=>j.finish),{jobId:u,propertyId:d,cropKey:h,mobileJobId:m,mobileCropKey:p,apply:g}=l,x=en({queryKey:["image-crop-job",d,u],queryFn:()=>s(d,u),refetchInterval:j=>{var z;const T=(z=j.state.data)==null?void 0:z.status;return T==="succeeded"||T==="failed"?!1:g0}}),b=en({queryKey:["image-crop-job",d,m],queryFn:()=>s(d,m),enabled:!!m,refetchInterval:j=>{var z;const T=(z=j.state.data)==null?void 0:z.status;return T==="succeeded"||T==="failed"?!1:g0}}),k=(R=x.data)==null?void 0:R.status,S=m?(C=b.data)==null?void 0:C.status:void 0;return w.useEffect(()=>{!(k==="succeeded"||k==="failed")||!(!m||S==="succeeded"||S==="failed")||(k==="failed"||S==="failed"||g(h,m?p:void 0),o(n))},[k,S,m,n,h,p,g,o]),w.useEffect(()=>{const j=setTimeout(()=>o(n),AE);return()=>clearTimeout(j)},[n,o]),null}const Jr={dimOpacity:.35,grayscale:.4,transitionMs:120,spinner:{diameter:28,stroke:3,trackColor:"rgba(20,18,13,.18)",headColor:"rgba(20,18,13,.6)",spinDurationMs:800}},TE={opacity:Jr.dimOpacity,filter:`grayscale(${Jr.grayscale})`,transition:`opacity ${Jr.transitionMs}ms`};function OE(){if(typeof document>"u"||document.getElementById("recrop-spin-kf"))return;const n=document.createElement("style");n.id="recrop-spin-kf",n.textContent="@keyframes recrop-spin{to{transform:rotate(360deg)}}",document.head.appendChild(n)}function qv(){OE();const n=Jr.spinner;return f.jsx("div",{"data-recrop-loading":!0,role:"status","aria-label":"Re-cropping…",className:"pointer-events-none absolute inset-0 z-[5] grid place-items-center",children:f.jsx("span",{"aria-hidden":!0,style:{width:n.diameter,height:n.diameter,border:`${n.stroke}px solid ${n.trackColor}`,borderTopColor:n.headColor,borderRadius:"50%",animation:`recrop-spin ${n.spinDurationMs}ms linear infinite`}})})}function Gv(n,l,s){const o=w.useMemo(()=>[...new Set(l.filter(d=>!!d))],[l]),u=_E({queries:o.map(d=>({queryKey:["crop-url",n,d],queryFn:()=>s(n,d),enabled:!!n,staleTime:600*1e3}))});return w.useMemo(()=>{const d=new Map;return o.forEach((h,m)=>{var g;const p=(g=u[m])==null?void 0:g.data;typeof p=="string"&&d.set(h,p)}),d},[o,u])}const Qv=w.createContext(null);function RE({api:n,children:l}){return f.jsx(Qv.Provider,{value:n,children:l})}function In(){const n=w.useContext(Qv);if(!n)throw new Error("useMediaLibraryApi: missing MediaLibraryApiProvider");return n}const nc=[{extension:".pdf",mimeTypes:["application/pdf"],family:"pdf"},{extension:".csv",mimeTypes:["text/csv","application/vnd.ms-excel"],family:"spreadsheet"},{extension:".xlsx",mimeTypes:["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],family:"spreadsheet"},{extension:".docx",mimeTypes:["application/vnd.openxmlformats-officedocument.wordprocessingml.document"],family:"text-document"},{extension:".doc",mimeTypes:["application/msword"],family:"text-document"},{extension:".txt",mimeTypes:["text/plain"],family:"text-document"},{extension:".pptx",mimeTypes:["application/vnd.openxmlformats-officedocument.presentationml.presentation"],family:"presentation"}],Iv=new Set(nc.map(n=>n.extension)),Vv=new Set(nc.flatMap(n=>n.mimeTypes));function uc(n){const l=n.indexOf(";");return(l===-1?n:n.slice(0,l)).trim().toLowerCase()}function rh(n){const l=Math.max(n.lastIndexOf("/"),n.lastIndexOf("\\")),s=n.slice(l+1),o=s.lastIndexOf(".");return o<=0?"":s.slice(o).toLowerCase()}function zE(n){return uc(n).startsWith("image/")}function DE(n){return uc(n).startsWith("video/")}function Yv(n,l){return Iv.has(rh(n))&&Vv.has(uc(l))}function UE(n,l){return zE(l)||DE(l)||Yv(n,l)}function LE(n,l){const s=rh(n),o=nc.find(h=>h.extension===s);if(o)return o.family;const u=uc(l),d=nc.find(h=>h.mimeTypes.includes(u));return d?d.family:null}const BE=[...Vv,...Iv].join(","),HE="an image, a video, or a document (PDF, Word, Excel .xlsx, PowerPoint .pptx, CSV, or text)";function qE(n){switch(n){case"pdf":return{glyph:"doc",typeNoun:"PDF"};case"spreadsheet":return{glyph:"spreadsheet",typeNoun:"Spreadsheet"};case"text-document":return{glyph:"doc",typeNoun:"Document"};case"presentation":return{glyph:"presentation",typeNoun:"Presentation"}}}function GE(n,l){const s=LE(n,l),{glyph:o,typeNoun:u}=s===null?{glyph:"doc",typeNoun:"File"}:qE(s);return{glyph:o,typeNoun:u,extension:rh(n).replace(".","").toUpperCase()}}const Nn={items:[],subs:new Set};function ch(){Nn.subs.forEach(n=>n())}function QE(n){Nn.items=[n,...Nn.items],ch()}function ua(n,l){Nn.items=Nn.items.map(s=>s.id===n?{...s,...l}:s),ch()}function b0(n){Nn.items=Nn.items.filter(l=>l.id!==n),ch()}function v0(){return Nn.items}function IE(){const[,n]=w.useReducer(l=>l+1,0);return w.useEffect(()=>(Nn.subs.add(n),()=>{Nn.subs.delete(n)}),[]),Nn.items}function $v(n){return n<1024?`${n} B`:n<1048576?`${(n/1024).toFixed(0)} KB`:`${(n/1048576).toFixed(1)} MB`}const VE=Hv(n=>({byPlan:{},start:(l,s,o)=>n(u=>({byPlan:{...u.byPlan,[l]:{jobId:s,propertyId:o}}})),advance:(l,s)=>n(o=>{const u=o.byPlan[l];return!u||u.jobId===s?o:{byPlan:{...o.byPlan,[l]:{...u,jobId:s}}}}),finish:l=>n(s=>{if(!(l in s.byPlan))return s;const o={...s.byPlan};return delete o[l],{byPlan:o}})})),YE=5,x0=500*1024*1024;function w0(n){return`${Math.round(n/(1024*1024))} MB`}function Kv(n){return n.size>x0?{ok:!1,message:`This file is ${w0(n.size)}. The maximum upload size is ${w0(x0)}.`}:UE(n.name,n.type)?{ok:!0}:{ok:!1,message:`This file type (${n.type||"unknown"}) isn't supported. Upload ${HE}.`}}function $E(n){const l=Kv(n);return l.ok?n.type.startsWith("image/")?{ok:!0}:{ok:!1,message:`A floor plan has to be an image. This file is ${n.type||"of an unknown type"}.`}:l}function KE(n){return n.committedUploadId?{kind:"replace",uploadId:n.committedUploadId}:n.attempt?{kind:"resume",attempt:n.attempt}:{kind:"fresh"}}function XE(n){return{id:n.id,kind:"document",name:n.name,size:n.size_bytes>0?$v(n.size_bytes):"",src:n.preview_url,mime:n.mime}}function Xv(n){var o;const{getDocuments:l}=In(),s=en({queryKey:["documents",n],queryFn:()=>l(n),enabled:!!n});return{items:(((o=s.data)==null?void 0:o.documents)??[]).map(XE),isLoading:s.isLoading}}function FE(n){var s;const l=new Map;for(const o of n){const u=((s=o.source)==null?void 0:s.upload_id)??o.id;l.has(u)||l.set(u,o)}return[...l.entries()].map(([o,u])=>({id:o,kind:"plan",name:u.display_label||"Floor plan",size:"",src:u.thumbnail_url}))}function ZE(n){var o;const{getFloorplans:l}=In(),s=en({queryKey:["floorplan-library",n],queryFn:()=>l(n),enabled:!!n});return{items:FE(((o=s.data)==null?void 0:o.floorplans)??[]),isLoading:s.isLoading}}async function PE(n,l,s){let o=0;const u=Math.max(1,Math.min(l,n.length)),d=Array.from({length:u},async()=>{for(;o<n.length;){const h=o++;try{await s(n[h],h)}catch{}}});await Promise.all(d)}function JE(n){return{id:n.id,kind:"plan",name:n.display_label,size:"",src:n.thumbnail_url,caption:null,ready:n.ready}}function Fv(n){var o;const{getFloorplans:l}=In(),s=en({queryKey:["floorplan-library",n],queryFn:()=>l(n),enabled:!!n});return{items:(((o=s.data)==null?void 0:o.floorplans)??[]).map(JE),isLoading:s.isLoading}}function WE(n){var o;const{getFloorplans:l}=In();return((o=en({queryKey:["floorplan-library",n],queryFn:()=>l(n),enabled:!!n}).data)==null?void 0:o.floorplans)??[]}function e3(n,l){n.invalidateQueries({queryKey:["floorplan-library",l]}),n.invalidateQueries({queryKey:["floorplans",l]})}function Zv(n){return n.type.startsWith("video/")?"video":Yv(n.name,n.type)?"document":"photo"}function t3(n){switch(n){case"photo":case"video":case"document":return n;case"floor_plan":case"link":case null:return null}}function n3(n,l){return[`${n}s`,l]}function a3(n){const{deleteUpload:l,getUploads:s,postUploadWithProgress:o}=In(),u=cs(),d=IE(),h=w.useCallback((b,k,S)=>(ua(b,{status:"uploading",error:void 0}),o(n,k,()=>{},{...S,onAttempt:R=>ua(b,{attempt:R??void 0})}).then(R=>{ua(b,{id:R.id,status:"classifying",committedUploadId:R.id})}).catch(R=>{ua(b,{status:"failed",error:R instanceof Error?R.message:"Upload failed"})})),[n,o]),m=w.useCallback((b,k)=>{const S=b?Array.from(b):[],R=(k==null?void 0:k.declaredType)==="floor_plan",C=[];for(const j of S){const T=crypto.randomUUID(),z=R?$E(j):Kv(j),D=R?"plan":Zv(j);QE({id:T,kind:D,name:j.name,size:$v(j.size),src:D==="photo"||D==="plan"?URL.createObjectURL(j):"",status:z.ok?"uploading":"failed",error:z.ok?void 0:z.message,file:j}),z.ok&&C.push({tempId:T,file:j})}PE(C,YE,async j=>{await h(j.tempId,j.file,k)})},[h]),p=w.useCallback(b=>{const k=v0().find(C=>C.id===b);if(!k)return;const S=k.kind==="plan"?{declaredType:"floor_plan"}:void 0,R=KE(k);if(R.kind==="resume"){h(b,k.file,{...S,attempt:R.attempt});return}if(R.kind==="fresh"){h(b,k.file,S);return}ua(b,{status:"uploading",error:void 0}),l(n,R.uploadId).then(()=>(ua(b,{attempt:void 0,committedUploadId:void 0}),h(b,k.file,S))).catch(C=>{ua(b,{status:"failed",error:C instanceof Error?C.message:"Upload failed"})})},[h,l,n]),g=d.some(b=>b.status==="classifying"),x=en({queryKey:["editor-upload-status",n],queryFn:()=>s(n),enabled:g,refetchInterval:g?1500:!1});return w.useEffect(()=>{var C;const b=(C=x.data)==null?void 0:C.uploads;if(!b)return;const k=new Map(b.map(j=>[j.id,j])),S=new Set;let R=!1;for(const j of v0()){if(j.status!=="classifying")continue;const T=k.get(j.id);if(!T)continue;if(T.status==="failed"){ua(j.id,{status:"failed",error:"Processing failed"});continue}if(j.kind==="plan"){b0(j.id),R=!0;continue}if(T.status!=="ready")continue;const z=t3(T.type);if(z===null){ua(j.id,{status:"not_photo",error:`Classified as ${T.type??"non-photo"}`});continue}b0(j.id),S.add(z)}for(const j of S)u.invalidateQueries({queryKey:n3(j,n)});R&&e3(u,n)},[x.data,n,u]),{items:d,addFiles:m,retry:p}}function $r(n){return typeof n=="string"&&n.length>0?n:null}function l3(n){var s,o,u,d;const l=[];for(const h of n){const m=$r((s=h.fields)==null?void 0:s.name),p=$r((o=h.fields)==null?void 0:o.avatar_upload_id);p&&h.avatar_url&&l.push({id:p,kind:"library",name:m?`${m} — headshot`:"Headshot",size:"",src:h.avatar_url,caption:null});const g=$r((u=h.fields)==null?void 0:u.logo_dark_upload_id);g&&h.logo_dark_url&&l.push({id:g,kind:"library",name:m?`${m} — logo (dark)`:"Logo (dark)",size:"",src:h.logo_dark_url,caption:null});const x=$r((d=h.fields)==null?void 0:d.logo_light_upload_id);x&&h.logo_light_url&&l.push({id:x,kind:"library",name:m?`${m} — logo (light)`:"Logo (light)",size:"",src:h.logo_light_url,caption:null})}return l}const i3=["library-items","contact"];function Pv(){var s;const{listLibraryItems:n}=In(),l=en({queryKey:i3,queryFn:()=>n("contact")});return{items:l3(((s=l.data)==null?void 0:s.items)??[]),isLoading:l.isLoading}}function s3(n){return{id:n.id,kind:"video",name:n.name,size:"",src:n.poster_url,caption:n.caption??null,ready:n.ready,durationMs:n.duration_ms,videoSource:n.source,...n.provider!==null?{provider:n.provider}:{}}}function wo(n){var o;const{getVideos:l}=In(),s=en({queryKey:["videos",n],queryFn:()=>l(n),enabled:!!n});return{items:(((o=s.data)==null?void 0:o.videos)??[]).map(s3),isLoading:s.isLoading}}function Jv(n){if(n==null||!Number.isFinite(n)||n<0)return"";const l=Math.round(n/1e3),s=Math.floor(l/60),o=l%60;return`${s}:${String(o).padStart(2,"0")}`}function o3(n){return{id:n.id,kind:"photo",name:n.name,size:"",src:n.thumbnail_url,caption:n.caption??null}}function uh(n){var o;const{getPhotos:l}=In(),s=en({queryKey:["photos",n],queryFn:()=>l(n),enabled:!!n});return{items:(((o=s.data)==null?void 0:o.photos)??[]).map(o3),isLoading:s.isLoading}}function dc(n){const{items:l}=uh(n),{items:s}=Fv(n),{items:o}=Pv(),{items:u}=wo(n);return w.useMemo(()=>{const d=new Map;for(const h of[...l,...s,...o,...u])h.src&&d.set(h.id,h.src);return d},[l,s,o,u])}const kf=(n,l)=>["floorplan-source-page",n,l];function r3(n){const{recropFloorplan:l}=In(),s=VE(u=>u.start),o=cs();return kE({mutationFn:({planId:u,bbox:d})=>l(n,u,d),onMutate:async({planId:u,bbox:d})=>{const h=kf(n,u);await o.cancelQueries({queryKey:h});const m=o.getQueryData(h);return o.setQueryData(h,p=>p&&{...p,source_bbox:d}),{prev:m,planId:u}},onError:(u,d,h)=>{h!=null&&h.prev&&o.setQueryData(kf(n,h.planId),h.prev)},onSuccess:(u,d)=>s(d.planId,u.job_id,n)})}function c3(n){return{id:n.id,kind:"tour",name:n.name,size:"",src:n.poster_url,caption:n.caption??null,ready:n.ready,provider:n.provider}}function dh(n){var o;const{getTours:l}=In(),s=en({queryKey:["tours",n],queryFn:()=>l(n),enabled:!!n});return{items:(((o=s.data)==null?void 0:o.tours)??[]).map(c3),isLoading:s.isLoading}}function u3(n,l,s){return n&&l?{w:n,h:l}:s?{w:s.w,h:s.h}:null}function d3(n){const[l,s]=w.useState(0),[o,u]=w.useState(null);w.useEffect(()=>{if(!n)return;let m=!0;const p=new Image;return p.onload=()=>{m&&u({src:n,attempt:l,size:{w:p.naturalWidth||1,h:p.naturalHeight||1}})},p.onerror=()=>{m&&u({src:n,attempt:l,size:null})},p.src=n,()=>{m=!1}},[n,l]);const d=w.useCallback(()=>{s(m=>m+1)},[]),h=o&&o.src===n&&o.attempt===l?o:null;return{size:(h==null?void 0:h.size)??null,failed:h!==null&&h.size===null,retry:d}}const f3=16,Wv="Crop floor plan",h3="Loading floor plan…",m3="Couldn't load this floor plan's source page.";function _0({tone:n,message:l,stageClassName:s,onClose:o,onRetry:u}){return f.jsxs(cn.Shell,{open:!0,variant:"page",onClose:o,children:[f.jsxs("div",{className:cn.head,children:[f.jsx("div",{className:cn.titles,children:f.jsx("h2",{className:cn.title,children:Wv})}),f.jsx("button",{type:"button",className:cn.close,onClick:o,"aria-label":"Close",children:f.jsx(cn.CloseIcon,{})})]}),f.jsxs("div",{role:n==="failed"?"alert":"status",className:me(s,"flex flex-col items-center justify-center gap-3 px-6 text-center"),children:[n==="pending"&&f.jsx("span",{"aria-hidden":!0,className:"size-5 animate-spin rounded-full border-2 border-line border-t-accent [animation-duration:0.7s]"}),f.jsx("p",{className:"m-0 text-[13px] text-ink-2",children:l})]}),f.jsx("div",{className:cn.foot,children:f.jsxs("div",{className:cn.actions,children:[f.jsx("button",{type:"button",className:cn.buttonGhost,onClick:o,children:"Cancel"}),u?f.jsx("button",{type:"button",className:cn.buttonPrimary,onClick:u,children:"Try again"}):null]})})]})}function p3({propertyId:n,planId:l,getSourcePage:s,onClose:o,stageClassName:u="h-[60vh] max-h-[620px]"}){const d=en({queryKey:kf(n,l),queryFn:()=>s(n,l)}),h=d.data,m=d3(h&&!(h.source_width&&h.source_height)?h.source_url:null),p=u3(h==null?void 0:h.source_width,h==null?void 0:h.source_height,m.size),g=r3(n);if(!d.isFetching&&(d.isError||m.failed))return f.jsx(_0,{tone:"failed",message:m3,stageClassName:u,onClose:o,onRetry:()=>{m.retry(),d.refetch()}});if(!h||!p)return f.jsx(_0,{tone:"pending",message:h3,stageClassName:u,onClose:o});const x=h.source_bbox?G4(h.source_bbox,p.w,p.h):{nx:0,ny:0,nw:1,nh:1};return f.jsx(eh,{chrome:cn,src:h.source_url,mode:"free",aspect:p.w/p.h,variant:"page",stageClassName:u,title:Wv,seed:{rect:x},onClose:o,onApply:b=>{o(),g.mutate({planId:l,bbox:V4(b.rect,p.w,p.h,f3)})}})}const y3=["Basement","Ground","1st floor","2nd floor","3rd floor","4th floor","Penthouse"],g3="fixed overflow-y-auto rounded-[calc(8*var(--content))] border border-line bg-white py-1 shadow-[0_16px_38px_-12px_rgba(20,18,13,0.4)]",Bd=240,e1=me(rt,"flex w-full items-center rounded-none px-2.5 py-2 text-left text-body text-ink hover:bg-accent-soft data-[active=true]:bg-accent-soft"),b3=me(e1,"text-accent"),ao=4,S0=140,lo=8,v3="flex w-full items-stretch rounded-[calc(5*var(--content))] border border-transparent bg-[#f3f1ea] transition-[background,border-color,box-shadow] duration-[120ms] hover:bg-[#ece9df] focus-within:border-ink-3 focus-within:bg-white focus-within:shadow-[0_0_0_3px_rgba(20,18,13,0.05)]",x3="min-w-0 flex-1 appearance-none border-0 bg-transparent px-1.75 py-1 text-[length:calc(11.5*var(--content))] font-semibold text-ink-2 placeholder:font-medium placeholder:text-ink-4";function w3({value:n,onChange:l,presets:s,label:o,placeholder:u="Label…",ariaLabel:d,compact:h=!1}){const[m,p]=w.useState(!1),[g,x]=w.useState(""),[b,k]=w.useState(0),[S,R]=w.useState(null),C=w.useId(),j=w.useRef(null),T=w.useRef(null),z=g.trim().toLowerCase(),D=m&&z?s.filter(K=>K.toLowerCase().includes(z)):s,I=s.some(K=>K.toLowerCase()===z),ie=g.trim().length>0&&!I,ne=D.length+(ie?1:0),ee=w.useCallback(()=>{if(!T.current)return;const K=T.current.getBoundingClientRect(),_=window.innerHeight-K.bottom-ao-lo;R({rect:K,above:_<Bd})},[]);function U(){ee(),p(!0)}function ce(K){l(K.trim()),de()}function de(){p(!1),x(""),k(0)}function re(K){if(!m&&(K.key==="ArrowDown"||K.key==="Enter")){U();return}if(K.key==="Escape"){de();return}K.key==="ArrowDown"?(K.preventDefault(),k(_=>Math.min(ne-1,_+1))):K.key==="ArrowUp"?(K.preventDefault(),k(_=>Math.max(0,_-1))):K.key==="Enter"&&(K.preventDefault(),b<D.length?ce(D[b]):ie&&ce(g))}function le(K){var ue,W;const _=K.relatedTarget,Y=(ue=j.current)==null?void 0:ue.contains(_),q=(W=document.getElementById(C))==null?void 0:W.contains(_);!Y&&!q&&de()}w.useEffect(()=>{if(m)return window.addEventListener("scroll",ee,!0),window.addEventListener("resize",ee),()=>{window.removeEventListener("scroll",ee,!0),window.removeEventListener("resize",ee)}},[m,ee]);const B=h?v3:me(vo,m&&"border-accent"),H=h?x3:is;return f.jsxs("div",{className:me(!h&&Qn),ref:j,onBlurCapture:le,children:[o&&!h&&f.jsx("span",{className:ba,children:o}),f.jsx("div",{className:B,ref:T,children:f.jsx("input",{className:H,value:m?g:n,placeholder:n||u,onFocus:U,onChange:K=>{x(K.target.value),m||U(),k(0)},onKeyDown:re,"aria-label":d??o??"Label","aria-expanded":m,"aria-controls":C,role:"combobox"})}),m&&ne>0&&S&&Wf.createPortal(f.jsxs("div",{className:g3,id:C,role:"listbox",style:{left:Math.max(lo,Math.min(S.rect.left,window.innerWidth-Math.max(S.rect.width,S0)-lo)),...S.above?{bottom:window.innerHeight-S.rect.top+ao,maxHeight:Math.min(S.rect.top-ao-lo,Bd)}:{top:S.rect.bottom+ao,maxHeight:Math.min(window.innerHeight-S.rect.bottom-ao-lo,Bd)},minWidth:Math.max(S.rect.width,S0),zIndex:hv+200},children:[D.map((K,_)=>f.jsx("button",{type:"button",role:"option","aria-selected":_===b,"data-active":_===b,className:e1,onMouseEnter:()=>k(_),onMouseDown:Y=>Y.preventDefault(),onClick:()=>ce(K),children:f.jsx("span",{className:"truncate",children:K})},K)),ie&&f.jsx("button",{type:"button",role:"option","aria-selected":b===D.length,"data-active":b===D.length,className:b3,onMouseEnter:()=>k(D.length),onMouseDown:K=>K.preventDefault(),onClick:()=>ce(g),children:f.jsxs("span",{className:"truncate",children:["Use “",g.trim(),"”"]})})]}),document.body)]})}const _3="group/card relative flex flex-col overflow-hidden rounded-[8px] border border-line bg-canvas transition-[border-color] duration-[120ms] hover:border-ink-4",S3="relative aspect-[4/3] touch-none select-none bg-[#fafaf6]",k3="absolute inset-0 block size-full object-contain",E3=me("absolute inset-0 grid place-items-center font-mono text-[12px] text-ink-3",cc),j3="absolute right-[5px] top-[5px] z-[4] flex gap-[3px] transition-opacity duration-[120ms]",M3="opacity-0 group-hover/card:opacity-100",Hd=me(rt,"we-no-drag grid size-5 place-items-center rounded-[4px] bg-white text-ink-2 shadow-[0_1px_2px_rgba(20,18,13,0.18)] transition-[background,color] duration-[120ms] hover:bg-[#f3f1ea] hover:text-ink"),A3="hover:bg-[#fbe6e2] hover:text-[#8e2c1e]",C3="border-t border-line-soft px-[7px] py-[6px]",N3="pointer-events-none absolute bottom-[6px] right-[6px] z-[3] grid size-[22px] place-items-center rounded-full bg-[rgba(255,255,255,0.94)] text-[11px] font-bold text-ink shadow-[0_1px_3px_rgba(20,18,13,0.25)]";function T3({src:n,alt:l="",floor:s,onFloorChange:o,onCrop:u,cropTitle:d="Crop floor plan",onRemove:h,removeTitle:m="Remove from unit",include:p,badge:g,drag:x}){const b=p?!p.on:!1,k=me(j3,b?"opacity-100":M3);return f.jsxs("div",{className:me(_3,b&&"opacity-60",(x==null?void 0:x.active)&&"opacity-[0.28]"),"data-dragid":x==null?void 0:x.dataDragId,children:[f.jsxs("div",{className:me(S3,x&&"cursor-grab",(x==null?void 0:x.active)&&"cursor-grabbing"),onPointerDown:x==null?void 0:x.onPointerDown,children:[n?f.jsx("img",{className:me(k3,b&&"grayscale"),src:n,alt:l,draggable:!1}):f.jsx("div",{className:E3}),f.jsxs("span",{className:k,children:[u&&f.jsx("button",{type:"button",className:Hd,title:d,onClick:u,children:f.jsx(De.crop,{})}),h&&f.jsx("button",{type:"button",className:me(Hd,A3),title:m,onClick:h,children:f.jsx(De.trash,{})}),p&&f.jsx("button",{type:"button",className:Hd,title:p.on?"Hide from site":"Show on site","aria-pressed":p.on,onClick:p.onToggle,children:p.on?f.jsx(De.eye,{}):f.jsx(De.eyeOff,{})})]}),g!=null&&f.jsx("span",{className:N3,children:g})]}),f.jsx("div",{className:C3,children:f.jsx(w3,{value:s,onChange:o,presets:y3,placeholder:"Floor",ariaLabel:"Floor label",compact:!0})})]})}const O3=24,R3=14;function z3(n){return n.length<=O3?n:`${n.slice(0,R3)}…${n.slice(-9)}`}function D3(n,l,s){return n?`${z3(n)}`:`Floor plan ${l}`}function U3(n){var s;if(n.fields!=null)return"row-editor";const l=(s=n.element)==null?void 0:s.type;return l==="image"||l==="video"||l==="tour"?"gallery":l==="poi"?"poi-curation":l==="document"?"document-list":"scalar-list"}function fh(n){const l=U3(n);return{editor:l,granularity:l==="row-editor"?"item":"unit"}}function t1(n){if(n!==null&&typeof n=="object"&&!Array.isArray(n)){const l=n;if(typeof l.asset_id=="string")return{asset_id:l.asset_id}}return{asset_id:""}}function L3(n){return n.map(t1).filter(l=>l.asset_id!=="")}function fc(n){switch(n.kind){case"document":return GE(n.name,n.mime??"");case"video":return{glyph:"video",typeNoun:"Video",extension:""};case"photo":case"plan":case"library":return{glyph:"image",typeNoun:"Image",extension:""};case"tour":return{glyph:"video",typeNoun:"3D tour",extension:""}}}function B3(n){return[fc(n).typeNoun,n.size].filter(Boolean).join(" · ")}function H3(n){const l=new Map;for(const s of n)for(const o of s)l.set(o.id,o);return l}function n1(n){const{items:l}=Xv(n),{items:s}=uh(n),{items:o}=ZE(n),{items:u}=wo(n),d=H3([s,o,u,l]);return h=>d.get(h)}const q3="group/row relative flex min-h-12 items-center gap-2.5 rounded-[calc(8*var(--content))] border border-line bg-white px-2.5 py-2 [transition:border-color_.14s,box-shadow_.14s,background_.3s]",G3="flex min-w-0 flex-1 flex-col gap-px",Q3="truncate text-[length:calc(13.5*var(--content))] text-ink",I3="truncate text-caption text-ink-3",V3="flex flex-col items-center gap-2 rounded-[calc(8*var(--content))] border border-dashed border-line px-3 py-4 text-center text-[length:calc(12.5*var(--content))] text-ink-4",Y3="we-no-drag flex flex-shrink-0 items-center gap-0.75",$3="flex items-center gap-0.75 opacity-0 transition-opacity duration-[120ms] group-hover/row:opacity-100",a1="grid size-6 cursor-pointer place-items-center rounded-md border-0 bg-transparent p-0 text-ink-3 outline-none hover:bg-[#f1f0ea] hover:text-ink-2",l1="relative grid size-[calc(34*var(--content))] flex-shrink-0 place-items-center overflow-hidden rounded-[calc(6*var(--content))] border border-line bg-[#f4f3ee] text-ink-3",K3="size-full object-cover",X3="absolute bottom-0 inset-x-0 truncate bg-[rgba(15,18,9,0.55)] px-0.5 text-center text-[length:calc(7.5*var(--content))] font-bold leading-[1.5] tracking-[0.02em] text-white",F3={doc:Kf,spreadsheet:xk,presentation:Pb,image:Xf,video:tv};function _o({glyph:n,extension:l,size:s=16,className:o}){const u=F3[n];return f.jsxs(f.Fragment,{children:[f.jsx(u,{size:s,strokeWidth:1.5,className:o,style:{width:`calc(${s} * var(--content))`,height:`calc(${s} * var(--content))`}}),l&&f.jsx("span",{className:X3,children:l})]})}function Z3({entry:n}){const{glyph:l,extension:s}=fc(n);return f.jsx("span",{className:l1,children:n.src?f.jsx("img",{className:K3,src:n.src,alt:"",draggable:!1}):f.jsx(_o,{glyph:l,extension:s})})}function i1({entry:n,trailing:l,onRemove:s,dragProps:o,dragging:u}){return f.jsxs("div",{...o,className:me(q3,o&&"cursor-grab hover:border-[#d9d5c9]",u&&"cursor-grabbing border-transparent bg-accent-soft [&>*]:opacity-[0.25]"),children:[n?f.jsx(Z3,{entry:n}):f.jsx("span",{className:l1,children:f.jsx(_o,{glyph:"doc",extension:""})}),f.jsxs("div",{className:G3,children:[f.jsx("span",{className:Q3,title:n==null?void 0:n.name,children:(n==null?void 0:n.name)??"Document unavailable"}),f.jsx("span",{className:I3,children:n?B3(n):"This file is no longer on the property"})]}),(l!==void 0||s!==void 0)&&f.jsx("div",{className:Y3,children:f.jsxs("span",{className:$3,children:[l,s&&f.jsx("button",{type:"button",className:me(a1,"hover:bg-[#fbecea] hover:text-danger"),title:"Remove",onClick:s,children:f.jsx(De.trash,{})})]})})]})}function P3({label:n,onAdd:l}){return f.jsxs("div",{className:V3,children:[f.jsx("span",{className:"text-ink-4",children:f.jsx(_o,{glyph:"doc",extension:"",size:22})}),f.jsx("span",{children:"No document yet"}),f.jsxs("button",{type:"button",className:"inline-flex h-6.5 cursor-pointer items-center gap-1.25 rounded-full border-0 bg-accent pl-2.25 pr-2.75 text-[length:calc(11.5*var(--content))] font-semibold text-white transition-[background] duration-[120ms] hover:bg-accent-ink",onClick:l,children:[f.jsx(De.plus,{})," ",n]})]})}const s1={units:{idKey:"unit_id",ownership:"property"},contacts:{idKey:"id",cap:12,min:1,ownership:"library"},comparables:{idKey:"id",ownership:"property"}};function o1(n){var s;if(((s=n.source)==null?void 0:s.kind)!=="direct")return null;const l=n.source.field;return l!==void 0&&Object.hasOwn(s1,l)?l:null}const J3=["tour","video","social","listing","file","map"],Fl={matterport:{kind:"tour",label:"Matterport",pattern:/(^|\.)matterport\.com$/i,strategy:"api"},biganto:{kind:"tour",label:"Biganto",pattern:/(^|\.)biganto\.com$/i,strategy:"opengraph"},youtube:{kind:"video",label:"YouTube",pattern:/(^|\.)(youtube\.com|youtu\.be)$/i,strategy:"oembed"},vimeo:{kind:"video",label:"Vimeo",pattern:/(^|\.)vimeo\.com$/i,strategy:"oembed"},zillow:{kind:"listing",label:"Zillow",pattern:/(^|\.)zillow\.com$/i,strategy:"none"},redfin:{kind:"listing",label:"Redfin",pattern:/(^|\.)redfin\.com$/i,strategy:"none"},dropbox:{kind:"file",label:"Dropbox",pattern:/(^|\.)dropbox\.com$/i,strategy:"none"},drive:{kind:"file",label:"Google Drive",pattern:/^drive\.google\.com$/i,strategy:"none"},maps:{kind:"map",label:"Google Maps",pattern:/(^|\.)google\.com$/i,path:/^\/maps(\/|$)/i,strategy:"none"}};function r1(n){let l;try{l=new URL(n)}catch{return null}if(l.protocol!=="http:"&&l.protocol!=="https:")return null;for(const[s,o]of Object.entries(Fl))if(o.pattern.test(l.hostname)&&!(o.path&&!o.path.test(l.pathname)))return s;return null}function Ef(n,l){const s=r1(l);return s===null?!1:s===n?!0:J3.includes(n)&&Fl[s].kind===n}const c1=w.createContext(null);function W3({ports:n,children:l}){return f.jsx(c1.Provider,{value:n,children:l})}function Vn(){const n=w.useContext(c1);if(!n)throw new Error("useSlotEditorPorts: missing SlotEditorPortsProvider");return n}function zl(n){return Vn().useEditorStore(n)}function ej(){return Vn().api}function u1(){return Vn()}function jf(n){var l;return n===void 0?"Link":((l=Fl[n])==null?void 0:l.label)??"Link"}function ac(n){return n.kind==="tour"?jf(n.provider):n.kind!=="video"?"":n.videoSource==="link"?jf(n.provider):n.ready===!1?"Processing…":Jv(n.durationMs)||"Video"}function hh({kind:n,size:l}){return n==="tour"?f.jsx(De.tour,{size:l}):f.jsx(De.play,{size:l})}const tj=me(rt,"inline-flex items-center gap-1.25 rounded-sm bg-[rgba(255,255,255,0.94)] px-2.5 py-1.5 text-[length:calc(11.5*var(--content))] font-semibold text-ink transition-[background] duration-[120ms] hover:bg-white"),nj="flex items-center justify-between gap-2 px-0.5 text-caption text-ink-3",aj="text-caption font-medium text-ink-4",lj="16 / 9",ij="relative block w-full overflow-hidden rounded-[calc(9*var(--content))] bg-[#e6e3da]",d1="block size-full object-cover",sj="pointer-events-none absolute bottom-1.25 left-1.25 z-[3] rounded-full bg-[rgba(15,18,9,0.72)] px-1.5 py-0.5 text-[10.5px] font-semibold tabular-nums text-white group-data-[ghost]/tile:hidden";function f1({kind:n,label:l,poster:s,hasSelection:o,addLabel:u,onPick:d,status:h,metaName:m,metaDetail:p,emptyText:g,noPosterText:x,children:b}){return f.jsxs("div",{className:Zf,children:[f.jsxs("div",{className:Qn,children:[f.jsx(Pf,{children:l}),f.jsxs("div",{className:"relative h-72.5 overflow-hidden rounded-[calc(9*var(--content))] bg-[#e6e3da]",children:[s?f.jsx("img",{className:"size-full object-cover",src:s,alt:""}):f.jsxs("div",{className:me("flex size-full flex-col items-center justify-center gap-1.5 text-small text-ink-3",cc),children:[o?f.jsx(hh,{kind:n,size:22}):f.jsx(De.up,{}),f.jsx("span",{children:o?x:g})]}),f.jsxs("div",{className:"absolute inset-x-0 bottom-0 flex items-center justify-between bg-[linear-gradient(to_top,rgba(15,18,9,0.55),transparent)] p-2.5",children:[f.jsx("button",{type:"button",className:tj,onClick:d,children:o?f.jsxs(f.Fragment,{children:[f.jsx(De.swap,{})," Replace"]}):f.jsxs(f.Fragment,{children:[f.jsx(De.up,{})," ",u]})}),h&&f.jsx("span",{className:aj,children:h})]})]})]}),m!==void 0&&f.jsxs("div",{className:nj,children:[f.jsx("span",{className:"truncate",children:m}),p&&f.jsx("span",{className:"shrink-0 tabular-nums",children:p})]}),b]})}function h1({kind:n,poster:l,index:s,ghost:o,badge:u,overlays:d,placeholderClassName:h}){return f.jsxs("span",{className:me(ij,o&&"opacity-[0.28]"),style:{aspectRatio:lj},children:[l?f.jsx("img",{className:d1,src:l,alt:"",draggable:!1}):f.jsxs("span",{className:me(h,"relative"),children:[f.jsx("span",{className:"absolute inset-0 grid place-items-center text-ink-3 opacity-40",children:f.jsx(hh,{kind:n,size:22})}),f.jsx("span",{className:"relative",children:s+1})]}),d,u&&f.jsx("span",{className:sj,children:u})]})}function m1({poster:n,index:l,placeholderClassName:s}){return n?f.jsx("img",{className:d1,src:n,alt:"",draggable:!1}):f.jsx("div",{className:s,children:l+1})}function Mf(n){if(n===void 0)return"Not a valid URL";const l=Object.entries(Fl).find(([o])=>o===n);if(l)return`Needs a ${l[1].label} link`;const s=p1(n);return s.length>0?`Needs a ${n} link (${s.join(", ")})`:`Needs a ${n} link`}function p1(n){return Object.values(Fl).filter(l=>l.kind===n).map(l=>l.label)}function oj(n){try{return new URL(n)}catch{return null}}function Af(n){const l=n.trim();return l&&(/^https?:\/\//i.test(l)?l:`https://${l}`)}function Cf(n){const l=oj(n);if(l===null||l.protocol!=="http:"&&l.protocol!=="https:")return!1;const s=l.hostname;return s.includes(".")&&!s.startsWith(".")&&!s.endsWith(".")}const rj={photo:"photos",plan:"floor plans",library:"library images",video:"videos",tour:"tours",document:"documents"},cj={photo:"Photos",plan:"Floor plans",library:"Library",video:"Videos",tour:"Tours",document:"Documents"},uj={video:"video",tour:"tour"},dj=["photo","plan","video","document"];function fj(n){return n==="video"?"video/*":n==="document"?BE:"image/*"}function qd(n){return n.kind==="plan"&&n.ready===!1||n.kind==="tour"&&n.ready===!1?!1:!n.status||n.status==="classifying"}function hj(n,l){const s=new Set(n);return s.has(l)?s.delete(l):s.add(l),s}function y1(n){const{items:l,addFiles:s,retry:o}=a3(n),{items:u}=uh(n),{items:d}=Fv(n),{items:h}=Pv(),{items:m}=wo(n),{items:p}=dh(n),{items:g}=Xv(n),x=new Set([...u.map(k=>k.id),...d.map(k=>k.id),...m.map(k=>k.id),...p.map(k=>k.id),...g.map(k=>k.id)]);return{items:[...l.filter(k=>!x.has(k.id)),...u,...d,...h,...m,...p,...g],addFiles:s,retry:o}}function mj({entry:n}){if(n.kind==="document"){const{glyph:l,extension:s}=fc(n);return f.jsx(_o,{glyph:l,extension:s,size:30})}return f.jsx(hh,{kind:n.kind==="tour"?"tour":"video",size:18})}function pj(n){switch(n){case"uploading":return"Uploading…";case"classifying":return"Processing…";case"failed":return"Failed — retry";case"not_photo":return"Not a photo"}}function k0({primaryLabel:n,primaryDisabled:l,onPrimary:s,onClose:o}){return f.jsx("div",{className:cv,children:f.jsxs("div",{className:uv,children:[f.jsx("button",{className:fv,onClick:o,children:"Cancel"}),f.jsx("button",{className:Jf,disabled:l,onClick:s,children:n})]})})}function yj({open:n,title:l,propertyId:s,onClose:o,footer:u,selectedIds:d,onCellClick:h,onCellDoubleClick:m,initialFilter:p,kinds:g,disabledKinds:x,videoSources:b,onPickOne:k}){const{items:S,addFiles:R,retry:C}=y1(s),j=cs(),{api:T,capabilities:z}=u1(),D=g??["photo","plan","library","video"],[I,ie]=w.useState(""),ne=x??[],ee=D.find(N=>!ne.includes(N))??D[0]??"photo",[U,ce]=w.useState(D.includes(p)&&!ne.includes(p)?p:ee),de=w.useRef(null),re=(b==null?void 0:b.includes("link"))??!1,le=U==="video"&&!re?null:uj[U]??null,B=I.trim().toLowerCase(),H=S.filter(N=>N.kind===U&&N.name.toLowerCase().includes(B)&&(re||N.videoSource!=="link")),[K,_]=w.useState(""),[Y,q]=w.useState(null),[ue,W]=w.useState(!1),M=async()=>{const N=K.trim();if(!N||ue||le===null)return;const P=Af(N);if(!Cf(P)||!Ef(le,P)){q(Mf(le));return}const X=r1(P);if(X===null){q(Mf(le));return}q(null),W(!0);try{const F=await T.postLink(s,P);await j.invalidateQueries({queryKey:[le==="tour"?"tours":"videos",s]}),_(""),k==null||k(le==="tour"?{id:F.id,kind:"tour",name:Fl[X].label,size:"",src:"",caption:null,ready:!0,provider:X}:{id:F.id,kind:"video",name:Fl[X].label,size:"",src:"",caption:null,ready:!0,durationMs:null,videoSource:"link",provider:X})}catch{q("Could not add that link. Try again.")}finally{W(!1)}},G=N=>{const P=N.target.files,X=U==="plan";if(R(P,X?{declaredType:"floor_plan"}:void 0),!X){const F=P==null?void 0:P[0],pe=F?Zv(F):"photo";D.includes(pe)&&!ne.includes(pe)&&ce(pe)}N.target.value=""},Z=N=>{if(N.status==="failed"){C(N.id);return}qd(N)&&h(N)};return f.jsxs(yv,{open:n,variant:"pick",onClose:o,children:[f.jsxs("div",{className:iv,children:[f.jsx("div",{className:sv,children:f.jsx("h2",{className:ov,children:l})}),f.jsx("button",{className:rv,onClick:o,"aria-label":"Close",children:f.jsx(De.x,{})})]}),f.jsxs("div",{className:Fg,children:[f.jsxs("div",{className:Zg,children:[f.jsx("span",{className:Pg,children:f.jsx(De.search,{})}),f.jsx("input",{className:Jg,autoFocus:!0,placeholder:"Search file names…",value:I,onChange:N=>ie(N.target.value)})]}),D.length>1&&f.jsx("div",{className:d4,children:D.map(N=>{const P=ne.includes(N);return f.jsx("button",{type:"button",className:h4(U===N,P),disabled:P,"aria-disabled":P||void 0,onClick:()=>!P&&ce(N),children:cj[N]},N)})})]}),le!==null&&f.jsxs("div",{className:Fg,children:[f.jsxs("div",{className:Zg,children:[f.jsx("span",{className:Pg,children:f.jsx(De.link,{})}),f.jsx("input",{className:Jg,placeholder:`Paste a ${le} link (${p1(le).join(" or ")})…`,value:K,disabled:ue,onChange:N=>{_(N.target.value),q(null)},onKeyDown:N=>{N.key==="Enter"&&M()}})]}),f.jsx("button",{type:"button",className:Jf,disabled:ue||K.trim().length===0,onClick:()=>void M(),children:ue?"Adding…":"Add link"})]}),Y&&f.jsx("div",{className:"px-4 pb-1 text-[11.5px] font-medium text-[#b4342b]",role:"alert",children:Y}),f.jsx("div",{className:J5,children:f.jsxs("div",{className:W5,children:[z.upload&&dj.includes(U)&&f.jsxs("button",{className:r4,onClick:()=>{var N;return(N=de.current)==null?void 0:N.click()},children:[f.jsx("span",{className:c4,children:f.jsx(De.up,{})}),f.jsx("span",{className:u4,children:"Upload"})]}),H.length===0?f.jsxs("div",{className:e4,children:["No ",rj[U]," match"," ",B?`”${I}”`:"your search","."]}):H.map(N=>f.jsxs("button",{className:t4,"data-selected":d.has(N.id)?"":void 0,"aria-disabled":!qd(N)&&N.status!=="failed",onClick:()=>Z(N),onDoubleClick:m&&qd(N)?()=>m(N):void 0,children:[f.jsx("span",{className:n4,children:f.jsxs("span",{className:a4,children:[N.src?f.jsx("img",{className:N.kind==="plan"&&N.ready===!1?`${Wg} opacity-40`:Wg,src:N.src,alt:""}):f.jsx("span",{className:i4,children:f.jsx(mj,{entry:N})}),d.has(N.id)&&f.jsx("span",{className:l4,children:f.jsx(De.check,{})}),!N.status&&ac(N)&&f.jsx("span",{className:o4,children:ac(N)}),N.status&&f.jsx("span",{className:"absolute inset-x-0 bottom-0 bg-[rgba(15,18,9,0.6)] px-1.5 py-1 text-[10.5px] font-semibold text-white",title:N.error??void 0,children:pj(N.status)}),N.kind==="tour"&&N.ready===!1&&f.jsx("span",{className:"absolute inset-x-0 bottom-0 bg-[rgba(15,18,9,0.6)] px-1.5 py-1 text-[10.5px] font-semibold text-white",role:"status",children:"Not embeddable"}),N.kind==="plan"&&N.ready===!1&&f.jsx("span",{className:"absolute inset-x-0 bottom-0 bg-[rgba(15,18,9,0.6)] px-1.5 py-1 text-[10.5px] font-semibold text-white",role:"status",children:"Processing…"})]})}),(N.kind==="document"||N.kind==="tour")&&f.jsx("span",{className:s4,title:N.name,children:N.name})]},N.id))]})}),u,z.upload&&f.jsx("input",{ref:de,type:"file",accept:fj(U),multiple:!0,hidden:!0,onChange:G})]})}function rl(n){var j,T;const{propertyId:l,onClose:s}=n,{items:o}=y1(l),u=((j=n.kinds)==null?void 0:j.length)===1?n.kinds[0]:void 0,d=n.noun??(u==="video"||u==="tour"?u:"photo"),[h,m]=w.useState(n.mode==="single"?n.currentId??null:null),[p,g]=w.useState(()=>n.mode==="multi"?new Set(n.selectedIds.filter(Boolean)):new Set),x=z=>{n.mode==="single"?m(z.id):g(D=>hj(D,z.id))};let b,k,S,R,C;if(n.mode==="single"){const{onPick:z,currentId:D}=n,I=o.find(ie=>ie.id===h)??null;b=new Set(h?[h]:[]),k=ie=>z(ie),S=f.jsx(k0,{primaryLabel:`Use ${d}`,primaryDisabled:!I,onPrimary:()=>I&&z(I),onClose:s}),R=`Choose a ${d}`,C=((T=o.find(ie=>ie.id===D))==null?void 0:T.kind)??"photo"}else{const{onApply:z}=n;b=p,k=void 0,S=f.jsx(k0,{primaryLabel:"Save selection",onPrimary:()=>z(o.filter(D=>p.has(D.id))),onClose:s}),R=`Choose ${d}s`,C="photo"}return f.jsx(yj,{open:n.open,title:n.title??R,propertyId:l,onClose:s,initialFilter:n.initialFilter??C,kinds:n.kinds,disabledKinds:n.disabledKinds,videoSources:n.videoSources,onPickOne:n.mode==="single"?n.onPick:void 0,selectedIds:b,onCellClick:x,onCellDoubleClick:k,footer:S})}function gj({slot:n,value:l,onChange:s,propertyId:o}){const[u,d]=w.useState(!1),h=(l==null?void 0:l.asset_id)??"",m=n1(o),p=h?m(h):void 0;return f.jsxs("div",{className:Qn,children:[f.jsx(Pf,{children:n.label}),h?f.jsx(i1,{entry:p,trailing:f.jsx("button",{type:"button",className:a1,title:"Replace",onClick:()=>d(!0),children:f.jsx(De.swap,{})}),onRemove:()=>s(null)}):f.jsx(P3,{label:`Add ${xo(n.label,"Document")}`,onAdd:()=>d(!0)}),u&&f.jsx(rl,{mode:"single",propertyId:o,noun:"document",kinds:["document","photo","video"],initialFilter:h?void 0:"document",currentId:h||void 0,onClose:()=>d(!1),onPick:g=>{d(!1),s({asset_id:g.id})}})]})}const bj={PanelUI:gj,applyOptimistic:null,coerce:t1};function vj(n,l,s){if(l===s||l<0||s<0)return n;const o=n.slice(),[u]=o.splice(l,1);return o.splice(s,0,u),o}const g1="data-drag-scope";function Gd(n){return Array.from(n.querySelectorAll("[data-dragid]")).filter(l=>l.closest(`[${g1}]`)===n)}function b1({items:n,getKey:l,onReorder:s,onDrop:o,axis:u="xy",threshold:d=4,ignoreSelector:h=".we-no-drag"}){const[m,p]=w.useState(null),[g,x]=w.useState({w:0,h:0}),b=w.useRef(null),k=w.useRef(null),S=w.useRef({}),R=w.useRef({grabX:0,grabY:0,scale:1}),C=w.useRef({x:0,y:0}),j=w.useRef(null),T=w.useRef(null),z=w.useRef(n),D=w.useRef(l),I=w.useRef({onReorder:s,onDrop:o});w.useLayoutEffect(()=>{I.current={onReorder:s,onDrop:o}});function ie(){const re=k.current,le=b.current;if(!re||!le)return;const B=le.getBoundingClientRect(),H=R.current.scale||1,K=(C.current.x-B.left)/H-R.current.grabX,_=(C.current.y-B.top)/H-R.current.grabY;u!=="y"&&(re.style.left=`${K}px`),re.style.top=`${_}px`}function ne(){const re=b.current,le=re.getBoundingClientRect(),B=R.current.scale||1,H=(C.current.x-le.left)/B,K=(C.current.y-le.top)/B,_=z.current;let Y=0,q=1/0;return Gd(re).forEach(ue=>{const W=_.findIndex(N=>D.current(N)===ue.dataset.dragid);if(W<0)return;const M=ue.offsetLeft+ue.offsetWidth/2,G=ue.offsetTop+ue.offsetHeight/2,Z=(H-M)**2+(K-G)**2;Z<q&&(q=Z,Y=W)}),Math.max(0,Math.min(_.length-1,Y))}w.useLayoutEffect(()=>{const re=b.current;if(!re)return;re.setAttribute(g1,"");const le=S.current,B={};Gd(re).forEach(H=>{const K=H.dataset.dragid,_={left:H.offsetLeft,top:H.offsetTop};B[K]=_;const Y=le[K];if(Y&&K!==T.current){const q=Y.left-_.left,ue=Y.top-_.top;(q||ue)&&H.animate([{transform:`translate(${q}px,${ue}px)`},{transform:"none"}],{duration:190,easing:"cubic-bezier(.2,.7,.3,1)"})}}),S.current=B,T.current&&ie()});function ee(re,le){var Y,q,ue,W,M;const B=b.current,H=Gd(B).find(G=>G.dataset.dragid===re)??null;if(!H)return;const K=H.getBoundingClientRect(),_=B.getBoundingClientRect().width/B.offsetWidth||1;R.current={grabX:(le.clientX-K.left)/_,grabY:(le.clientY-K.top)/_,scale:_},(q=(Y=document.activeElement)==null?void 0:Y.blur)==null||q.call(Y),(M=(W=(ue=window.getSelection)==null?void 0:ue.call(window))==null?void 0:W.removeAllRanges)==null||M.call(W),C.current={x:le.clientX,y:le.clientY},z.current=n,D.current=l,T.current=re,x({w:H.offsetWidth,h:H.offsetHeight}),p(re)}function U(re,le){re.button===0&&(re.target.closest(h)||(j.current={key:le,x:re.clientX,y:re.clientY},window.addEventListener("pointermove",ce),window.addEventListener("pointerup",de)))}function ce(re){const le=j.current;if(!le)return;if(!T.current){if(Math.hypot(re.clientX-le.x,re.clientY-le.y)<d)return;ee(le.key,re)}C.current={x:re.clientX,y:re.clientY},ie();const B=ne(),H=z.current,K=H.findIndex(Y=>D.current(Y)===T.current);if(K<0||K===B)return;const _=vj(H,K,B);z.current=_,I.current.onReorder(_)}function de(){window.removeEventListener("pointermove",ce),window.removeEventListener("pointerup",de),j.current=null,T.current&&(T.current=null,p(null),I.current.onDrop(z.current))}return{containerRef:b,cloneRef:k,getItemProps:re=>({"data-dragid":re,onPointerDown:le=>U(le,re)}),draggingKey:m,cloneBox:g}}const xj="flex min-h-6.5 items-center justify-between gap-2.5",wj=me(rt,"inline-flex h-6.5 items-center gap-1.25 rounded-full bg-accent pl-2.25 pr-2.75 text-[length:calc(11.5*var(--content))] font-semibold text-white transition-[background] duration-[120ms] hover:bg-accent-ink"),_j="relative grid grid-cols-2 gap-2",Sj="[grid-column:1/-1] py-4.5 text-center text-small text-ink-3",kj="pointer-events-none absolute z-[60] cursor-grabbing overflow-hidden rounded-[8px] bg-canvas shadow-[0_16px_38px_-8px_rgba(20,18,13,0.5)] after:absolute after:inset-0 after:rounded-[8px] after:border-2 after:border-dashed after:border-[#111] after:content-['']",Ej="relative aspect-[4/3] bg-[#fafaf6]",jj="absolute inset-0 block size-full object-contain";function E0(n){return Array.isArray(n)?n.map(l=>{if(typeof l!="object"||l===null)return null;const s=l;if(typeof s.key=="string")return s;const o=typeof s.id=="string"?s.id:"";return{key:x1(),id:o,uploadId:typeof s.upload_id=="string"?s.upload_id:"",url:"",alt:"",floor:typeof s.floor_label=="string"?s.floor_label:""}}).filter(l=>l!==null):[]}function Mj(n){return n.map((l,s)=>{const o=l.floor.trim();return{id:l.id,...l.uploadId?{upload_id:l.uploadId}:{},floor_label:o||null,position:s}})}function v1(n){return n.map(l=>({planId:l.id,label:l.floor}))}let j0=0;function x1(){return j0+=1,`pl-${j0}`}function Qd(n){return JSON.stringify(n.map(l=>[l.id,l.floor]))}function Aj(n,l,s){const o=new Map(l.map(u=>[u.id,u]));return n.map(u=>{const d=o.get(u.planId);return d?{...d,floor:u.label}:{key:x1(),id:u.planId,uploadId:"",url:s.get(u.planId)??"",alt:"",floor:u.label}})}function Cj(n){return{_key:"fp-sibling",label:n.label,beds:"",baths:"",sqft:"",price:"",plans:v1(n.plans),planExclusions:[],planFloors:{}}}function Nj({plans:n,propertyId:l,unitLabel:s,siblingUnits:o,unitIndex:u,onChange:d}){const{UnitPlanPicker:h,api:m}=u1(),[p,g]=w.useState(!1),[x,b]=w.useState(null),k=WE(l),S=w.useMemo(()=>{const H=new Map;for(const K of k)H.set(K.id,K.thumbnail_url);return H},[k]),R=H=>H.url||S.get(H.id)||"",[C,j]=w.useState(n),[T,z]=w.useState(()=>Qd(n)),D=H=>{j(H),z(Qd(H)),d(H)},{containerRef:I,cloneRef:ie,getItemProps:ne,draggingKey:ee,cloneBox:U}=b1({items:C,getKey:H=>H.key,onReorder:j,onDrop:D,axis:"xy"});if(!ee){const H=Qd(n);H!==T&&(z(H),j(n))}const ce=(H,K)=>D(C.map(_=>_.key===H?{..._,floor:K}:_)),de=H=>D(C.filter(K=>K.key!==H)),re=o==null?void 0:o.map(Cj),le=ee?C.find(H=>H.key===ee):null,B=le?R(le):"";return f.jsxs("div",{className:"flex flex-col gap-2.25",children:[f.jsxs("div",{className:xj,children:[f.jsxs("span",{className:ba,children:[C.length," floor plan",C.length===1?"":"s"]}),f.jsx("div",{className:"flex items-center gap-1.5",children:f.jsxs("button",{type:"button",className:wj,onClick:()=>g(!0),children:[f.jsx(De.plus,{})," Add"]})})]}),f.jsxs("div",{className:_j,ref:I,children:[C.length===0&&f.jsx("div",{className:Sj,children:"No floor plans yet — use Add to choose plans."}),C.map((H,K)=>f.jsx(T3,{src:R(H)||null,floor:H.floor,onFloorChange:_=>ce(H.key,_),onCrop:()=>b(H.id),onRemove:()=>de(H.key),removeTitle:"Remove from unit",badge:K+1,drag:{dataDragId:H.key,onPointerDown:ne(H.key).onPointerDown,active:ee===H.key}},H.key)),le&&f.jsx("div",{ref:ie,className:kj,style:{width:U.w,height:U.h,left:0,top:0},children:f.jsx("div",{className:Ej,children:B&&f.jsx("img",{className:jj,src:B,alt:"",draggable:!1})})})]}),p&&f.jsx(h,{open:!0,propertyId:l,unit:{_key:"fp-preview",label:s??"",beds:"",baths:"",sqft:"",price:"",plans:v1(C),planExclusions:[],planFloors:{}},units:re,unitIndex:u,library:k,onClose:()=>g(!1),onUnitPatch:H=>{H.plans&&D(Aj(H.plans,C,S))},onCrop:b}),x&&f.jsx(p3,{propertyId:l,planId:x,getSourcePage:m.getFloorplanSourcePage,onClose:()=>b(null)})]})}const Tj=360,Oj="relative overflow-hidden rounded-[calc(9*var(--content))]";function w1({src:n,derivativeUrl:l,mode:s,slotAspect:o,sizing:u,ar:d,dimmed:h,children:m}){const p=l??n,g=s==="locked"?"cover":"contain",x=w.useRef(null),[b,k]=w.useState(null);w.useLayoutEffect(()=>{if(s!=="free")return;const z=x.current;z!=null&&z.complete&&z.naturalWidth>0&&z.naturalHeight>0&&k({src:p,aspect:z.naturalWidth/z.naturalHeight})},[p,s]);const S=z=>{if(s!=="free")return;const D=z.currentTarget;D.naturalWidth>0&&D.naturalHeight>0&&k({src:p,aspect:D.naturalWidth/D.naturalHeight})},R=b&&b.src===p?b.aspect:typeof d=="number"&&d>0?d:o,C=s==="locked"?o:R,j=h?TE:void 0,T=u==="single"?{aspectRatio:String(C),width:"100%",maxWidth:`${Tj*C}px`,marginInline:"auto"}:{aspectRatio:String(C),width:"100%"};return f.jsxs("div",{className:Oj,style:T,children:[f.jsx("img",{ref:x,className:`block size-full object-center ${g==="cover"?"object-cover":"object-contain"}`,src:p,alt:"",draggable:!1,onLoad:S,style:j}),m]})}function Rj(n){var u,d;const l=ej(),o=(u=en({queryKey:["property",n],queryFn:()=>l.fetchProperty(n)}).data)==null?void 0:u.contacts;return((d=(o==null?void 0:o.find(h=>h.is_primary))??(o==null?void 0:o[0]))==null?void 0:d.library_item_id)??null}const Kr=me(rt,"inline-flex items-center gap-1.25 rounded-sm bg-[rgba(255,255,255,0.94)] px-2.5 py-1.5 text-[length:calc(11.5*var(--content))] font-semibold text-ink transition-[background] duration-[120ms] hover:bg-white");function M0({value:n,onChange:l,propertyId:s,cropKey:o,cropCfg:u,contactImage:d,displayName:h}){var Y;const{api:m}=Vn(),[p,g]=w.useState(null),x=dc(s),b=Gv(s,[n.crop_key],m.getCropDerivativeUrl),k=n.crop_key?b.get(n.crop_key):void 0,S=os(q=>o in q.byKey),R=o.startsWith(`${s}:`)?o.slice(s.length+1):o,[C="",j=""]=R.split(":"),T=Rj(s),z=(d==null?void 0:d.itemId)??T,D=w.useRef(null),[I,ie]=w.useState(!1),ne=d!==null&&z!==null,ee=Wd(n),U=ee?x.has(ee):!1,ce=en({queryKey:["staged-upload-url",z,ee],queryFn:()=>m.presignLibraryItemUpload(z,ee),enabled:!!z&&!!ee&&!U}),de=(ee?x.get(ee):void 0)??ce.data??n.url??void 0,re=w.useRef(null),le=async q=>{if(!z||!d)return;ie(!0);const ue=gS(d.kind==="headshot"?{kind:"headshot"}:{kind:"logo",variant:d.variant});try{const{upload_id:W,url:M}=await m.stageLibraryItemImage(z,q,ue),G=re.current;re.current=W,l({...n,photo_id:W,url:M,rect:null,ar:null,crop_key:null,mobile:null}),G&&G!==W&&m.deleteStagedLibraryItemImage(z,G).catch(()=>{})}catch(W){console.error("[editor] contact image stage failed",{field:ue,contactId:z,err:W})}finally{ie(!1)}},B=q=>{var W;const ue=(W=q.target.files)==null?void 0:W[0];q.target.value="",ue&&le(ue)},H=f.jsxs("button",{type:"button",className:Kr,disabled:I,onClick:()=>{var q;return(q=D.current)==null?void 0:q.click()},children:[f.jsx(De.up,{})," ",I?"Saving…":"Upload"]}),K=w.useRef(n);w.useEffect(()=>{K.current=n},[n]);const _=async q=>{var ue,W,M;if(g(null),!!n.photo_id){if(xv(q.rect)){(n.rect||n.crop_key||n.mobile)&&l({...n,rect:null,ar:null,crop_key:null,mobile:null});return}try{const G=await m.cropImage(s,n.photo_id,q.rect,((ue=q.mobile)==null?void 0:ue.rect)??null);os.getState().start(o,{jobId:G.job_id,propertyId:s,cropKey:G.crop_key,mobileJobId:(W=G.mobile)==null?void 0:W.job_id,mobileCropKey:(M=G.mobile)==null?void 0:M.crop_key,instanceId:C,slotId:j,apply:(Z,N)=>l({...K.current,rect:q.rect,ar:q.ar,crop_key:Z,mobile:q.mobile?{rect:q.mobile.rect,crop_key:N??null,derived:q.mobile.derived}:K.current.mobile??void 0})})}catch(G){console.error("[editor] image crop failed",{instanceId:C,slotId:j,err:G})}}};return f.jsxs("div",{className:Zf,children:[f.jsxs("div",{className:Qn,children:[f.jsx(Pf,{children:h??"Image"}),de?f.jsxs(w1,{src:de,derivativeUrl:k,ar:n.ar,mode:u.mode,slotAspect:u.aspect,sizing:"single",dimmed:S,children:[S&&f.jsx(qv,{}),f.jsx("div",{className:"absolute inset-x-0 bottom-0 flex items-center justify-between bg-[linear-gradient(to_top,rgba(15,18,9,0.55),transparent)] p-2.5",children:f.jsxs("div",{className:"flex items-center gap-1.5",children:[ne?H:f.jsxs("button",{type:"button",className:Kr,onClick:()=>g("pick"),children:[f.jsx(De.swap,{})," Replace"]}),f.jsxs("button",{type:"button",className:Kr,onClick:()=>g("crop"),children:[f.jsx(De.crop,{})," Crop"]})]})})]}):f.jsxs("div",{className:"relative h-72.5 overflow-hidden rounded-[calc(9*var(--content))] bg-[#e6e3da]",children:[f.jsxs("div",{className:me("flex size-full flex-col items-center justify-center gap-1.5 text-small text-ink-3",cc),children:[f.jsx(De.up,{}),f.jsx("span",{children:"No image yet"})]}),f.jsx("div",{className:"absolute inset-x-0 bottom-0 flex items-center justify-between bg-[linear-gradient(to_top,rgba(15,18,9,0.55),transparent)] p-2.5",children:ne?H:f.jsxs("button",{type:"button",className:Kr,onClick:()=>g("pick"),children:[f.jsx(De.up,{})," Add image"]})})]})]}),ne&&f.jsx("input",{ref:D,type:"file",accept:"image/*",hidden:!0,onChange:B}),p==="pick"&&f.jsx(rl,{mode:"single",propertyId:s,currentId:n.photo_id||void 0,onClose:()=>g(null),onPick:q=>{if(q.id===n.photo_id){l({...n,url:q.src}),g(null);return}l({...n,photo_id:q.id,url:q.src,alt:n.alt||q.caption||"",rect:null,ar:null,crop_key:null}),g(null)}}),p==="crop"&&de&&f.jsx(eh,{chrome:cn,src:de,mode:u.mode,aspect:u.aspect,aspectLabel:u.aspectLabel,mobileAspect:u.mobileAspect,seed:{rect:n.rect??null},mobileSeed:{rect:((Y=n.mobile)==null?void 0:Y.rect)??null},onClose:()=>g(null),onApply:q=>{_(q)}})]})}function zj({slot:n,instanceId:l,slotId:s,value:o,onChange:u,propertyId:d,recordContext:h}){var x;if(h){if(n.sourceFilter==="floorplans"&&d!=null){const b=(h.siblingRecords??[]).map(S=>({label:typeof S.unit_label=="string"?S.unit_label:"",plans:E0(S.floor_plans)})),k=h.itemIndex;return f.jsx(Nj,{plans:E0(o),propertyId:d,unitLabel:k!=null&&((x=b[k])==null?void 0:x.label)||void 0,unitIndex:k,siblingUnits:b,onChange:S=>u(Mj(S))})}if(d!=null&&l!=null&&s!=null){const b=Kg(n.source);return f.jsx(M0,{value:o,onChange:u,propertyId:d,cropKey:`${d}:${l}:${s}:${h.fieldKey}`,cropCfg:tf(n),displayName:n.label,contactImage:b?{...b,instanceId:l,slotId:s,itemId:h.itemId}:null})}return null}const m=tf(n),p=`${d}:${l}:${s}`,g=Kg(n.source);return f.jsx(M0,{value:o,onChange:u,propertyId:d,cropKey:p,cropCfg:m,contactImage:g?{...g,instanceId:l,slotId:s}:null,displayName:n.label})}function Dj(n,l){const s=n.querySelector("img");if(s){l.url&&s.setAttribute("src",l.url),s.setAttribute("alt",l.alt??""),s.style.transform="",s.style.transformOrigin="",s.style.objectPosition="";return}const o=n.querySelector("video");o&&(l.url?o.setAttribute("poster",l.url):o.removeAttribute("poster"))}function _1(n){if(n&&typeof n=="object"){const l=n;return{photo_id:typeof l.photo_id=="string"&&l.photo_id.length>0?l.photo_id:typeof l.asset_id=="string"?l.asset_id:"",url:typeof l.url=="string"?l.url:"",alt:typeof l.alt=="string"?l.alt:"",rect:l.rect&&typeof l.rect=="object"?l.rect:void 0,ar:typeof l.ar=="number"?l.ar:void 0,crop_key:typeof l.crop_key=="string"?l.crop_key:void 0,mobile:l.mobile&&typeof l.mobile=="object"&&l.mobile.rect?l.mobile:void 0}}return{photo_id:"",url:"",alt:""}}const Uj={PanelUI:zj,applyOptimistic:Dj,coerce:n=>Array.isArray(n)?n:_1(n)},Lj=me(rt,"inline-flex h-6.5 items-center gap-1.25 rounded-full bg-accent pl-2.25 pr-2.75 text-[length:calc(11.5*var(--content))] font-semibold text-white transition-[background] duration-[120ms] hover:bg-accent-ink"),Bj="group/tile relative cursor-grab touch-none select-none",rs=me("grid size-full place-items-center font-mono text-small text-ink-3",cc),Hj="absolute right-1.25 top-1.25 z-[4] flex gap-0.75 opacity-0 transition-opacity duration-[120ms] group-hover/tile:opacity-100 group-data-[ghost]/tile:hidden",S1=me(rt,"we-no-drag grid size-5 place-items-center rounded-[calc(4*var(--content))] bg-white text-ink-2 shadow-[0_1px_2px_rgba(20,18,13,0.18)] transition-[background,color] duration-[120ms] hover:bg-[#f3f1ea] hover:text-ink"),A0="pointer-events-none absolute bottom-1.25 right-1.25 z-[3] grid size-5.5 place-items-center rounded-full bg-[rgba(255,255,255,0.94)] text-caption font-bold text-ink shadow-[0_1px_3px_rgba(20,18,13,0.25)] group-data-[ghost]/tile:hidden",qj="pointer-events-none absolute z-[60] cursor-grabbing overflow-hidden rounded-[calc(9*var(--content))] shadow-[0_16px_38px_-8px_rgba(20,18,13,0.5)] after:absolute after:inset-0 after:rounded-[calc(9*var(--content))] after:border-2 after:border-dashed after:border-[#111] after:content-['']";function hc(n,l,s,o,u){const d=new Set(l.map(g=>g.id)),h=n.filter(g=>d.has(s(g.value))),m=new Set(h.map(g=>s(g.value))),p=l.filter(g=>!m.has(g.id)).map(g=>u(o(g)));return[...h,...p]}function mh({engine:n,noun:l,max:s,emptyText:o,onAdd:u,renderTile:d,renderClone:h,tileActions:m,children:p}){const{rows:g,atMax:x,canRemove:b}=n,{containerRef:k,cloneRef:S,getItemProps:R,draggingKey:C,cloneBox:j}=n.drag,T=C?n.indexOf(C):-1,z=T>=0?g[T]:null;return f.jsxs("div",{className:Qn,children:[f.jsxs("div",{className:"flex min-h-6.5 items-center justify-between gap-2.5",children:[f.jsxs("span",{className:ba,children:[g.length," ",l,g.length===1?"":"s"]}),f.jsxs("button",{type:"button",className:Lj,onClick:u,disabled:x,title:x?`Maximum ${s} ${l}s`:`Add ${l}s`,style:x?{opacity:.5,cursor:"default"}:void 0,children:[f.jsx(De.plus,{})," Add"]})]}),f.jsxs("div",{className:"relative grid grid-cols-2 gap-2",ref:k,children:[g.length===0&&f.jsx("div",{className:"[grid-column:1/-1] py-4.5 text-center text-small text-ink-3",children:o}),g.map((D,I)=>{const ie=f.jsxs(f.Fragment,{children:[f.jsxs("span",{className:Hj,children:[m==null?void 0:m(D),b&&f.jsx("button",{type:"button",className:me(S1,"hover:bg-[#FBE6E2] hover:text-[#8E2C1E]"),title:"Remove",onClick:()=>n.remove(D.key),children:f.jsx(De.trash,{})})]}),f.jsx("span",{className:A0,children:I+1})]});return f.jsx("div",{...R(D.key),"data-ghost":C===D.key?"":void 0,className:me(Bj,C===D.key&&"cursor-grabbing"),children:d(D,I,ie)},D.key)}),z&&f.jsxs("div",{ref:S,className:qj,style:{width:j.w,height:j.h,left:0,top:0},children:[h(z,T),f.jsx("span",{className:A0,children:T+1})]})]}),p]})}let Gj=0;function Qj(){return typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():`li-${(Gj++).toString(36)}`}function Nf(n,l){return{key:(l==null?void 0:l(n))??Qj(),value:n}}function C0(n,l){return n.map(s=>Nf(s,l))}function Id(n){return JSON.stringify(n)}function Wl({items:n,identityOf:l,min:s=0,max:o=1/0,axis:u="y",commit:d,onCommitted:h}){const[m,p]=w.useState(()=>C0(n,l)),[g,x]=w.useState(()=>Id(n)),b=w.useRef(m);w.useEffect(()=>{b.current=m},[m]);function k(j){b.current=j,p(j)}function S(j,T){k(j),x(Id(j.map(z=>z.value))),d(j,T),h==null||h(j,T)}const R=b1({items:m,getKey:j=>j.key,onReorder:k,onDrop:j=>S(j,"reorder"),axis:u,threshold:5});if(!R.draggingKey){const j=Id(n);j!==g&&(x(j),p(C0(n,l)))}function C(j,T){const z=b.current;z.some(D=>D.key===j)&&S(z.map(D=>D.key===j?{...D,value:T(D.value)}:D),"edit")}return{rows:m,drag:R,atMax:m.length>=o,canRemove:m.length>s,add:j=>{const T=b.current;T.length>=o||S([...T,Nf(j,l)],"add")},remove:j=>{const T=b.current;T.length<=s||S(T.filter(z=>z.key!==j),"remove")},setValue:(j,T)=>C(j,()=>T),updateValue:C,replace:j=>S(j.slice(0,o),"replace"),mint:j=>Nf(j,l),indexOf:j=>m.findIndex(T=>T.key===j),keyAt:j=>{var T;return((T=m[j])==null?void 0:T.key)??null},latestRows:()=>b.current}}const Ij="block h-auto max-h-35 w-auto max-w-full group-data-[ghost]/tile:opacity-[0.28]";function Vj(n){return n.map(_1)}function Yj({itemSlot:n,min:l,max:s,instanceId:o,slotId:u,value:d,propertyId:h,selectedItemIndex:m,commit:p}){var Y;const{api:g}=Vn(),x=tf(n),b=dc(h),k=os(q=>q.byKey),S=q=>`${h}:${o}:${u}:${q}`,R=q=>(q.photo_id?b.get(q.photo_id):void 0)??q.url,C=w.useMemo(()=>Vj(d),[d]),[j,T]=w.useState(!1),[z,D]=w.useState(null),I=Wl({items:C,min:l,max:s,axis:"xy",commit:p}),{rows:ie}=I,ne=Gv(h,ie.map(q=>q.value.crop_key),g.getCropDerivativeUrl),[ee,U]=w.useState(null),ce=m??null;if(!I.drag.draggingKey&&ce!==ee&&(U(ce),ce!=null)){const q=I.keyAt(ce);q&&D(q)}const de=async q=>{var G,Z,N;const ue=z;if(D(null),!ue)return;const W=ie.find(P=>P.key===ue);if(!W||!W.value.photo_id)return;if(xv(q.rect)){(W.value.rect||W.value.crop_key||W.value.mobile)&&I.updateValue(ue,P=>({...P,rect:null,ar:null,crop_key:null,mobile:null}));return}const M=I.indexOf(ue);try{const P=await g.cropImage(h,W.value.photo_id,q.rect,((G=q.mobile)==null?void 0:G.rect)??null);os.getState().start(S(ue),{jobId:P.job_id,propertyId:h,cropKey:P.crop_key,mobileJobId:(Z=P.mobile)==null?void 0:Z.job_id,mobileCropKey:(N=P.mobile)==null?void 0:N.crop_key,instanceId:o,slotId:u,itemIndex:M,apply:(X,F)=>I.updateValue(ue,pe=>({...pe,rect:q.rect,ar:q.ar,crop_key:X,mobile:q.mobile?{rect:q.mobile.rect,crop_key:F??null,derived:q.mobile.derived}:pe.mobile}))})}catch(P){console.error("[editor] image crop failed",{instanceId:o,slotId:u,key:ue,err:P})}},re=q=>{I.replace(hc(ie,q,ue=>ue.photo_id,ue=>({photo_id:ue.id,url:ue.src,alt:ue.caption??""}),I.mint)),T(!1)},le=z?ie.find(q=>q.key===z):null,B=le?R(le.value):"";function H(q,ue,W){const M=R(q.value),G=I.drag.draggingKey===q.key;return M?f.jsx("span",{"data-thumb":!0,className:me("block w-full",G&&"opacity-[0.28]"),children:f.jsxs(w1,{src:M,derivativeUrl:q.value.crop_key?ne.get(q.value.crop_key):void 0,ar:q.value.ar,mode:x.mode,slotAspect:x.aspect,sizing:"tile",dimmed:S(q.key)in k,children:[S(q.key)in k&&f.jsx(qv,{}),W]})}):f.jsxs("div",{className:me(rs,"relative w-full"),style:{aspectRatio:String(x.aspect)},children:[ue+1,W]})}function K(q,ue){const W=R(q.value);return W?f.jsx("img",{className:Ij,src:W,alt:"",draggable:!1}):f.jsx("div",{className:rs,children:ue+1})}function _(q){return f.jsx("button",{type:"button",className:S1,title:"Crop",onClick:()=>D(q.key),children:f.jsx(De.crop,{})})}return f.jsxs(mh,{engine:I,noun:"image",max:s,emptyText:"No images yet — use Add to choose photos.",onAdd:()=>T(!0),renderTile:H,renderClone:K,tileActions:_,children:[j&&f.jsx(rl,{mode:"multi",title:"Add photos",propertyId:h,selectedIds:ie.map(q=>q.value.photo_id),onApply:re,onClose:()=>T(!1)}),le&&B&&f.jsx(eh,{chrome:cn,src:B,mode:x.mode,aspect:x.aspect,aspectLabel:x.aspectLabel,mobileAspect:x.mobileAspect,seed:{rect:le.value.rect??null},mobileSeed:{rect:((Y=le.value.mobile)==null?void 0:Y.rect)??null},onApply:q=>{de(q)},onClose:()=>D(null)})]})}function $j({slot:n,value:l,onChange:s,propertyId:o}){const[u,d]=w.useState(!1),{items:h}=dh(o),m=l.tour_id?h.find(g=>g.id===l.tour_id):void 0,p=(m==null?void 0:m.src)||l.poster;return f.jsx(f1,{kind:"tour",label:n.label,poster:p,hasSelection:!!l.tour_id,addLabel:"Add tour",onPick:()=>d(!0),metaName:m==null?void 0:m.name,metaDetail:jf((m==null?void 0:m.provider)??l.provider),emptyText:"No tour yet",noPosterText:"No thumbnail from this provider",children:u&&f.jsx(rl,{mode:"single",title:"Choose a tour",propertyId:o,kinds:["tour"],initialFilter:"tour",noun:"tour",currentId:l.tour_id||void 0,onClose:()=>d(!1),onPick:g=>{d(!1),g.id!==l.tour_id&&s({...l,tour_id:g.id,url:"",poster:g.src,alt:l.alt||g.caption||"",...g.provider?{provider:g.provider}:{provider:void 0}})}})})}function Kj(n,l){const s=n.matches("img")?n:n.querySelector("img");s&&l.poster&&s.setAttribute("src",l.poster)}function k1(n){if(n&&typeof n=="object"){const l=n;return{tour_id:typeof l.tour_id=="string"&&l.tour_id.length>0?l.tour_id:typeof l.asset_id=="string"?l.asset_id:"",url:typeof l.url=="string"?l.url:"",poster:typeof l.poster=="string"?l.poster:"",alt:typeof l.alt=="string"?l.alt:"",...typeof l.provider=="string"&&l.provider?{provider:l.provider}:{}}}return{tour_id:"",url:"",poster:"",alt:""}}const Xj={PanelUI:$j,applyOptimistic:Kj,coerce:k1};function Fj(n){return n.map(k1)}function Zj({min:n,max:l,value:s,propertyId:o,commit:u}){const{items:d}=dh(o),h=j=>d.find(T=>T.id===j),m=j=>{var T;return(j.tour_id?(T=h(j.tour_id))==null?void 0:T.src:void 0)||j.poster},p=w.useMemo(()=>Fj(s),[s]),[g,x]=w.useState(!1),b=Wl({items:p,min:n,max:l,axis:"xy",commit:u}),{rows:k}=b,S=j=>{b.replace(hc(k,j,T=>T.tour_id,T=>({tour_id:T.id,url:"",poster:T.src,alt:T.caption??"",...T.provider?{provider:T.provider}:{}}),b.mint)),x(!1)};function R(j,T,z){const D=h(j.value.tour_id);return f.jsx(h1,{kind:"tour",poster:m(j.value),index:T,ghost:b.drag.draggingKey===j.key,badge:ac(D??{kind:"tour",provider:j.value.provider}),overlays:z,placeholderClassName:rs})}function C(j,T){return f.jsx(m1,{poster:m(j.value),index:T,placeholderClassName:rs})}return f.jsx(mh,{engine:b,noun:"tour",max:l,emptyText:"No tours yet — use Add to choose tours.",onAdd:()=>x(!0),renderTile:R,renderClone:C,children:g&&f.jsx(rl,{mode:"multi",title:"Add tours",propertyId:o,kinds:["tour"],initialFilter:"tour",noun:"tour",selectedIds:k.map(j=>j.value.tour_id),onApply:S,onClose:()=>x(!1)})})}function Pj({slot:n,value:l,onChange:s,propertyId:o}){const[u,d]=w.useState(!1),h=dc(o),{items:m}=wo(o),p=l.video_id?m.find(k=>k.id===l.video_id):void 0,g=(l.video_id?h.get(l.video_id):void 0)??l.poster,x=(p==null?void 0:p.ready)===!1,b=Jv(p==null?void 0:p.durationMs);return f.jsx(f1,{kind:"video",label:n.label,poster:g,hasSelection:!!l.video_id,addLabel:"Add video",onPick:()=>d(!0),status:x?"Processing…":null,metaName:p==null?void 0:p.name,metaDetail:b,emptyText:"No video yet",noPosterText:"Preparing poster…",children:u&&f.jsx(rl,{mode:"single",title:"Choose a video",propertyId:o,kinds:["video"],initialFilter:"video",videoSources:n.sources,currentId:l.video_id||void 0,onClose:()=>d(!1),onPick:k=>{d(!1),k.id!==l.video_id&&s({...l,video_id:k.id,url:"",poster:k.src,alt:l.alt||k.caption||"",...k.videoSource==="link"?{source:"link",...k.provider?{provider:k.provider}:{}}:{source:void 0,provider:void 0}})}})})}function N0(n,l){return n.matches(l)?n:n.querySelector(l)}function Jj(n,l){const s=N0(n,"video");if(s){l.poster&&s.setAttribute("poster",l.poster),l.url&&s.setAttribute("src",l.url),l.alt&&s.setAttribute("aria-label",l.alt);return}const o=N0(n,"img");o&&l.poster&&o.setAttribute("src",l.poster)}function E1(n){if(n&&typeof n=="object"){const l=n;return{video_id:typeof l.video_id=="string"&&l.video_id.length>0?l.video_id:typeof l.asset_id=="string"?l.asset_id:"",url:typeof l.url=="string"?l.url:"",poster:typeof l.poster=="string"?l.poster:"",alt:typeof l.alt=="string"?l.alt:"",width:typeof l.width=="number"?l.width:void 0,height:typeof l.height=="number"?l.height:void 0,...l.source==="link"?{source:"link"}:{},...typeof l.provider=="string"&&l.provider?{provider:l.provider}:{}}}return{video_id:"",url:"",poster:"",alt:""}}const Wj={PanelUI:Pj,applyOptimistic:Jj,coerce:E1};function eM(n){return n.map(E1)}function tM({itemSlot:n,min:l,max:s,value:o,propertyId:u,commit:d}){const h=dc(u),{items:m}=wo(u),p=z=>m.find(D=>D.id===z),g=z=>(z.video_id?h.get(z.video_id):void 0)??z.poster,x=w.useMemo(()=>eM(o),[o]),[b,k]=w.useState(!1),S=Wl({items:x,min:l,max:s,axis:"xy",commit:d}),{rows:R}=S,C=z=>{S.replace(hc(R,z,D=>D.video_id,D=>({video_id:D.id,url:"",poster:D.src,alt:D.caption??"",...D.videoSource==="link"?{source:"link",...D.provider?{provider:D.provider}:{}}:{}}),S.mint)),k(!1)};function j(z,D,I){const ie=p(z.value.video_id);return f.jsx(h1,{kind:"video",poster:g(z.value),index:D,ghost:S.drag.draggingKey===z.key,badge:ie?ac(ie):"",overlays:I,placeholderClassName:rs})}function T(z,D){return f.jsx(m1,{poster:g(z.value),index:D,placeholderClassName:rs})}return f.jsx(mh,{engine:S,noun:"video",max:s,emptyText:"No videos yet — use Add to choose videos.",onAdd:()=>k(!0),renderTile:j,renderClone:T,children:b&&f.jsx(rl,{mode:"multi",title:"Add videos",propertyId:u,kinds:["video"],initialFilter:"video",videoSources:n.sources,selectedIds:R.map(z=>z.value.video_id),onApply:C,onClose:()=>k(!1)})})}function nM(n){const l=n.fields;if(!l)return[];const s=n.item_order;if(!s||s.length===0)return Object.entries(l);const o=new Set,u=[];for(const d of s)d in l&&!o.has(d)&&(o.add(d),u.push([d,l[d]]));for(const[d,h]of Object.entries(l))o.has(d)||u.push([d,h]);return u}function aM(n){switch(n.type){case"text":case"select":case"url":return"";case"number":case"image":case"video":case"tour":case"poi":case"document":return null;case"list":return[]}}function T0(n){const l={};for(const[s,o]of n)l[s]=aM(o);return l}function O0(n,l,s,o){var p;const u=s.title;if(!u)return`Item ${o+1}`;const d=n[u],h=typeof d=="string"?d.trim():"";if(!h)return"Untitled";const m=(p=l.find(([g])=>g===u))==null?void 0:p[1];if((m==null?void 0:m.type)!=="select")return h;for(const g of m.values??[])if(typeof g!="string"&&g.value===h)return g.label;return h}function lM(n){const{editor:l,granularity:s}=fh(n),o=l==="row-editor"?{kind:"record",entries:nM(n)}:{kind:"single",slot:n.element??{type:"text",label:n.label}};return{editor:l,granularity:s,itemContent:o,min:typeof n.min=="number"?n.min:0,max:typeof n.max=="number"?n.max:1/0,axis:l==="gallery"?"xy":"y"}}const iM="flex flex-col gap-2.75",sM="flex items-center justify-between gap-2.5",oM="relative flex flex-col gap-1.75",rM="rounded-[calc(8*var(--content))] border border-dashed border-line px-3 py-3.5 text-center text-[length:calc(12.5*var(--content))] text-ink-4",cM=me(rt,"flex h-8.5 w-full items-center justify-start gap-1.5 rounded-[calc(8*var(--content))] px-2.5 text-[length:calc(12.5*var(--content))] font-medium text-ink-3 transition-colors duration-[120ms] hover:bg-line-soft hover:text-ink disabled:cursor-default disabled:opacity-45 disabled:hover:bg-transparent"),uM="pointer-events-none absolute z-[30] flex items-center gap-2.5 rounded-[calc(8*var(--content))] border border-accent bg-white px-2.5 py-1.75 shadow-[0_14px_30px_-10px_rgba(20,18,13,0.35)]",dM="truncate text-[length:calc(13.5*var(--content))] text-ink";function fM({entry:n}){const l=n?fc(n):void 0;return f.jsx(_o,{glyph:(l==null?void 0:l.glyph)??"doc",extension:""})}function hM({slot:n,min:l,max:s,value:o,propertyId:u,commit:d}){var I;const h=w.useMemo(()=>L3(o),[o]),[m,p]=w.useState(!1),g=n1(u),x=Wl({items:h,min:l,max:s,axis:"y",commit:d}),{rows:b}=x,k=ie=>{x.replace(hc(b,ie,ne=>ne.asset_id,ne=>({asset_id:ne.id}),x.mint)),p(!1)},{containerRef:S,cloneRef:R,getItemProps:C,draggingKey:j,cloneBox:T}=x.drag,z=j?b.find(ie=>ie.key===j):null,D=`Add ${xo(n.label,"Document")}`;return f.jsxs("div",{className:iM,children:[f.jsx("div",{className:sM,children:f.jsx("span",{className:ba,children:n.label})}),f.jsxs("div",{className:me(oM,j&&"select-none [&_*]:select-none"),ref:S,children:[b.length===0&&f.jsx("div",{className:rM,children:"No documents yet — use Add to choose one."}),b.map(ie=>f.jsx(i1,{entry:g(ie.value.asset_id),onRemove:x.canRemove?()=>x.remove(ie.key):void 0,dragProps:C(ie.key),dragging:j===ie.key},ie.key)),z&&f.jsxs("div",{ref:R,className:uM,style:{width:T.w,height:T.h,left:0,top:0},children:[f.jsx(fM,{entry:g(z.value.asset_id)}),f.jsx("span",{className:dM,children:((I=g(z.value.asset_id))==null?void 0:I.name)??"Document unavailable"})]})]}),f.jsxs("button",{type:"button",className:cM,disabled:x.atMax,title:x.atMax?`Maximum ${s} documents`:void 0,onClick:()=>p(!0),children:[f.jsx(De.plus,{})," ",D]}),m&&f.jsx(rl,{mode:"multi",propertyId:u,noun:"document",kinds:["document","photo","video"],initialFilter:"document",selectedIds:b.map(ie=>ie.value.asset_id),onApply:k,onClose:()=>p(!1)})]})}function mM(n,l){const s=Wd(n),o=Wd(l);return s!=null||o!=null?s===o:n===l?!0:n==null||l==null?!1:String(n)===String(l)}function pM(n,l,s,o,u){const d=zl(m=>m.markSlotOverridden),h=!u&&o1(n)===null;return function(p,g){h&&d(l,s,{kind:"scalar"}),o(p.map(x=>x.value))}}async function yM(n,l,s){const o=await n(`/properties/${l}/poi/search`,{method:"POST",json:{query:s}});return Array.isArray(o==null?void 0:o.results)?o.results:[]}async function j1(n,l,s){return n(`/properties/${l}/poi/${encodeURIComponent(s)}`)}async function gM(n,l,s){if(s.length===0)return{};const o=await n(`/properties/${l}/poi/photo-urls`,{method:"POST",json:{place_ids:s}});return(o==null?void 0:o.urls)??{}}function M1(n){if(n==null||!Number.isFinite(n))return null;const l=n/1609.344;return l<.1?"< 0.1 mi":`${l.toFixed(1)} mi`}let bM=0;function vM(){return`poi${++bM}${Math.random().toString(36).slice(2,6)}`}const lc=n=>typeof n=="number"&&Number.isFinite(n)?n:void 0,io=n=>typeof n=="string"&&n!==""?n:void 0;function xM(n){const l={},s=lc(n.rating);s!==void 0&&(l.rating=s);const o=lc(n.review_count);o!==void 0&&(l.review_count=o);const u=io(n.type_label);u!==void 0&&(l.type_label=u);const d=io(n.price_level);d!==void 0&&(l.price_level=d);const h=io(n.website_uri);h!==void 0&&(l.website_uri=h);const m=io(n.google_maps_uri);m!==void 0&&(l.google_maps_uri=m);const p=io(n.summary);p!==void 0&&(l.summary=p);const g=wM(n.photo);return g!==void 0&&(l.photo=g),l}function wM(n){if(!n||typeof n!="object")return;const l=n,s=lc(l.width),o=lc(l.height),u=l.attribution;if(!(s===void 0||o===void 0||typeof u!="string"))return{width:s,height:o,attribution:u}}function A1(n){if(!n||typeof n!="object")return null;const l=n;return typeof l.place_id!="string"||typeof l.name!="string"||typeof l.lat!="number"||typeof l.lng!="number"?null:{id:typeof l.id=="string"?l.id:vM(),place_id:l.place_id,name:l.name,address:typeof l.address=="string"?l.address:null,lat:l.lat,lng:l.lng,distance_m:typeof l.distance_m=="number"?l.distance_m:null,...xM(l)}}function _M(n){return n.map(A1).filter(l=>l!==null)}function SM(n){return[n.rating===void 0?null:`★ ${n.rating.toFixed(1)}${n.review_count===void 0?"":` (${n.review_count.toLocaleString()})`}`,n.type_label,M1(n.distance_m),n.address].filter(Boolean).join(" · ")}const ph="group/row relative flex min-h-10.5 items-center gap-2.5 rounded-[calc(8*var(--content))] border border-line bg-white px-2.5 py-1.75 [transition:border-color_.14s,box-shadow_.14s,background_.3s]",ic="grid w-5 flex-shrink-0 place-items-center text-ink-4",yh="flex min-w-0 flex-1 flex-col gap-px",sc="truncate text-[length:calc(13.5*var(--content))] text-ink",gh="truncate text-caption text-ink-3",C1="rounded-[calc(8*var(--content))] border border-dashed border-line px-3 py-3.5 text-center text-[length:calc(12.5*var(--content))] text-ink-4",N1="text-caption text-danger",T1="opacity-70",O1="size-[calc(14*var(--content))] flex-shrink-0 animate-[we-ml-spin_.7s_linear_infinite] rounded-full border-2 border-[#d9d5c9] border-t-accent",kM="size-[calc(26*var(--content))] flex-shrink-0 rounded-[calc(5*var(--content))] object-cover bg-[#f1f0ea]",EM="we-no-drag flex flex-shrink-0 items-center gap-0.75",jM="flex items-center gap-0.75 opacity-0 transition-opacity duration-[120ms] group-hover/row:opacity-100",MM="grid size-6 cursor-pointer place-items-center rounded-md border-0 bg-transparent p-0 text-ink-3 outline-none hover:bg-[#f1f0ea] hover:text-ink-2",R1=()=>f.jsxs("svg",{viewBox:"0 0 16 16",width:"14",height:"14",className:"w-[calc(14*var(--content))] h-[calc(14*var(--content))]",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[f.jsx("path",{d:"M8 14s4.5-4 4.5-7.5a4.5 4.5 0 0 0-9 0C3.5 10 8 14 8 14Z"}),f.jsx("circle",{cx:"8",cy:"6.4",r:"1.7"})]});function z1(n,l){const{apiFetch:s}=Vn().api,[o,u]=w.useState({}),d=l.filter(m=>m.photo).map(m=>m.place_id).sort().join(","),h=w.useRef(new Set);return w.useEffect(()=>{const p=(d===""?[]:d.split(",")).filter(g=>!h.current.has(g));p.length!==0&&(p.forEach(g=>h.current.add(g)),gM(s,n,p).then(g=>{u(x=>({...x,...g}))}).catch(()=>{p.forEach(g=>h.current.delete(g))}))},[d,n,s]),{urls:o,dropUrl:m=>u(p=>{if(!(m in p))return p;const g={...p};return delete g[m],g})}}function D1({row:n,photoUrl:l,onPhotoError:s,onRemove:o,dragProps:u,dragging:d,flashNew:h}){const m=SM(n);return f.jsxs("div",{...u,className:me(ph,u&&"cursor-grab hover:border-[#d9d5c9]",d&&"cursor-grabbing border-transparent bg-accent-soft [&>*]:opacity-[0.25]",h&&"animate-[we-ml-rowin_.26s_cubic-bezier(.2,.7,.3,1)_both]"),children:[l?f.jsx("img",{className:kM,src:l,alt:"",draggable:!1,onError:s}):f.jsx("span",{className:ic,children:f.jsx(R1,{})}),f.jsxs("div",{className:yh,children:[f.jsx("span",{className:sc,children:n.name}),m&&f.jsx("span",{className:gh,children:m})]}),o&&f.jsx("div",{className:EM,children:f.jsx("span",{className:jM,children:f.jsx("button",{type:"button",className:me(MM,"hover:bg-[#fbecea] hover:text-danger"),title:"Remove",onClick:o,children:f.jsx(De.trash,{})})})})]})}const AM="relative flex flex-col",CM="flex min-w-0 items-center gap-2 rounded-[calc(8*var(--content))] border border-line bg-white px-2.5 transition-[border-color,box-shadow] duration-[120ms] focus-within:border-accent focus-within:shadow-[0_0_0_3px_rgba(15,42,34,0.07)]",NM="grid flex-shrink-0 place-items-center text-ink-4",TM="min-w-0 flex-1 appearance-none border-0 bg-transparent py-2.25 text-[length:calc(13.5*var(--content))] text-ink placeholder:text-ink-4",OM="size-[calc(15*var(--content))] flex-shrink-0 animate-[we-ml-spin_.7s_linear_infinite] rounded-full border-2 border-[#d9d5c9] border-t-accent",RM="absolute left-0 right-0 top-[calc(100%+4*var(--content))] z-[40] overflow-hidden rounded-[calc(8*var(--content))] border border-line bg-white shadow-[0_14px_30px_-12px_rgba(20,18,13,0.28)]",zM="m-0 max-h-[calc(264*var(--content))] list-none overflow-y-auto p-1",DM=me(rt,"flex w-full flex-col gap-px rounded-md px-2 py-1.75 text-left"),UM="bg-accent-soft",LM="cursor-default opacity-55",BM="flex items-center gap-1.5 truncate text-[length:calc(13.5*var(--content))] text-ink",HM="truncate text-caption text-ink-3",Vd="px-3 py-3 text-center text-[length:calc(12.5*var(--content))] text-ink-4",qM="inline-flex flex-shrink-0 items-center gap-1 text-good",GM=2,QM=300;function U1({propertyId:n,placeholder:l,addedIds:s,disabled:o=!1,disabledHint:u,onSelect:d}){const{apiFetch:h}=Vn().api,[m,p]=w.useState(""),[g,x]=w.useState([]),[b,k]=w.useState("idle"),[S,R]=w.useState(0),[C,j]=w.useState(0),T=w.useRef(0),z=w.useId();w.useEffect(()=>{const ne=m.trim();if(ne.length<GM){++T.current,k("idle"),x([]);return}const ee=++T.current;k("loading");const U=setTimeout(()=>{yM(h,n,ne).then(ce=>{ee===T.current&&(x(ce),R(0),k(ce.length?"results":"empty"))}).catch(()=>{ee===T.current&&k("error")})},QM);return()=>clearTimeout(U)},[m,n,C,h]);function D(ne){s.has(ne.place_id)||(d(ne),p(""),x([]),k("idle"))}function I(ne){if(ne.key==="Escape"){k("idle"),x([]);return}if(b==="results"){if(ne.key==="ArrowDown")ne.preventDefault(),R(ee=>Math.min(g.length-1,ee+1));else if(ne.key==="ArrowUp")ne.preventDefault(),R(ee=>Math.max(0,ee-1));else if(ne.key==="Enter"){ne.preventDefault();const ee=g[S];ee&&D(ee)}}}const ie=b!=="idle";return f.jsxs("div",{className:AM,onBlur:ne=>{ne.currentTarget.contains(ne.relatedTarget)||k("idle")},children:[f.jsxs("div",{className:me(CM,o&&"opacity-55"),role:"combobox","aria-expanded":ie,"aria-haspopup":"listbox","aria-controls":z,children:[f.jsx("span",{className:NM,children:f.jsx(De.search,{})}),f.jsx("input",{className:TM,value:m,placeholder:l,disabled:o,title:o?u:void 0,onChange:ne=>p(ne.target.value),onKeyDown:I,"aria-label":l,"aria-autocomplete":"list","aria-activedescendant":b==="results"?`${z}-${S}`:void 0}),b==="loading"&&f.jsx("span",{className:OM})]}),ie&&f.jsxs("div",{className:RM,children:[b==="loading"&&f.jsx("div",{className:Vd,children:"Searching…"}),b==="empty"&&f.jsxs("div",{className:Vd,children:["No places found for “",m.trim(),"”."]}),b==="error"&&f.jsxs("div",{className:Vd,children:["Couldn't reach search."," ",f.jsx("button",{type:"button",className:"font-semibold text-accent-ink underline",onClick:()=>j(ne=>ne+1),children:"Retry"})]}),b==="results"&&f.jsx("ul",{className:zM,role:"listbox",id:z,children:g.map((ne,ee)=>{const U=s.has(ne.place_id),ce=[M1(ne.distance_m),ne.address].filter(Boolean).join(" · ");return f.jsx("li",{id:`${z}-${ee}`,role:"option","aria-selected":ee===S,children:f.jsxs("button",{type:"button",disabled:U,className:me(DM,ee===S&&!U&&UM,U&&LM),onMouseEnter:()=>R(ee),onClick:()=>D(ne),children:[f.jsxs("span",{className:BM,children:[U&&f.jsxs("span",{className:qM,children:[f.jsx(De.check,{size:12})," Added ·"]}),f.jsx("span",{className:"truncate",children:ne.name})]}),ce&&f.jsx("span",{className:HM,children:ce})]})},ne.place_id)})})]})]})}const IM="flex flex-col gap-2.75",VM="flex items-center justify-between gap-2.5 text-[length:calc(10.5*var(--content))] font-medium text-ink-4",YM="relative flex flex-col gap-1.75",$M="pointer-events-none absolute z-[30] flex items-center gap-2.5 rounded-[calc(8*var(--content))] border border-accent bg-white px-2.5 py-1.75 shadow-[0_14px_30px_-10px_rgba(20,18,13,0.35)]",KM=400;function XM({slot:n,min:l,max:s,value:o,propertyId:u,commit:d}){const{apiFetch:h}=Vn().api,m=w.useMemo(()=>_M(o),[o]),[p,g]=w.useState(null),[x,b]=w.useState(null),[k,S]=w.useState({}),R=w.useRef({});w.useEffect(()=>()=>{Object.values(R.current).forEach(clearTimeout)},[]);const C=Wl({items:m,identityOf:le=>le.id,min:l,max:s,axis:"y",commit:d}),{rows:j}=C,{urls:T,dropUrl:z}=z1(u,m);function D(le){S(B=>({...B,[le]:!0})),clearTimeout(R.current[le]),R.current[le]=setTimeout(()=>S(B=>{const H={...B};return delete H[le],H}),KM)}async function I(le){if(g(null),!C.atMax&&!C.latestRows().some(B=>B.value.place_id===le.place_id)){b(le);try{let B;try{B=await j1(h,u,le.place_id)}catch{g("Couldn't add that place — try again.");return}if(C.latestRows().some(H=>H.value.place_id===B.place_id))return;C.add(B),D(B.id)}finally{b(null)}}}const{containerRef:ie,cloneRef:ne,getItemProps:ee,draggingKey:U,cloneBox:ce}=C.drag,de=U?j.find(le=>le.key===U):null,re=new Set(j.map(le=>le.value.place_id));return f.jsxs("div",{className:IM,children:[f.jsx("div",{className:VM,children:f.jsx("span",{children:n.label})}),f.jsx(U1,{propertyId:u,placeholder:n.placeholder??"Search nearby…",addedIds:re,disabled:C.atMax,disabledHint:`Maximum ${s} places`,onSelect:le=>void I(le)}),p&&f.jsx("span",{className:N1,children:p}),f.jsxs("div",{className:me(YM,U&&"select-none [&_*]:select-none"),ref:ie,children:[j.length===0&&!x&&f.jsx("div",{className:C1,children:"No places yet — search above to add one."}),j.map(le=>f.jsx(D1,{row:le.value,photoUrl:T[le.value.place_id],onPhotoError:()=>z(le.value.place_id),onRemove:C.canRemove?()=>C.remove(le.key):void 0,dragProps:ee(le.key),dragging:U===le.key,flashNew:k[le.value.id]===!0},le.key)),x&&f.jsxs("div",{className:me(ph,T1),"aria-live":"polite",children:[f.jsx("span",{className:ic,children:f.jsx("span",{className:O1})}),f.jsxs("div",{className:yh,children:[f.jsx("span",{className:sc,children:x.name}),f.jsx("span",{className:gh,children:"Adding…"})]})]}),de&&f.jsxs("div",{ref:ne,className:$M,style:{width:ce.w,height:ce.h,left:0,top:0},children:[f.jsx("span",{className:ic,children:f.jsx(R1,{})}),f.jsx("span",{className:sc,children:de.value.name})]})]})]})}const FM='input, textarea, select, button, [tabindex]:not([tabindex="-1"]), [contenteditable="true"]',Tf="data-field-name";function ZM(n,l){var o;const s=Array.from(n.querySelectorAll(`[${Tf}]`)).find(u=>u.getAttribute(Tf)===l);s&&(s.scrollIntoView({block:"nearest"}),(o=s.querySelector(FM))==null||o.focus({preventScroll:!0}))}function Of({slot:n,instanceId:l,slotId:s,value:o,propertyId:u,onChange:d,overridden:h,selectedItemIndex:m,selectedFieldName:p,itemBaseline:g,recordContext:x}){const b=I1(n.type);if(!b)return null;const k=b.coerce(o),{PanelUI:S}=b;return f.jsx(S,{slot:n,instanceId:l,slotId:s,value:k,onChange:d,propertyId:u,selectedItemIndex:m,selectedFieldName:p,overridden:h,itemBaseline:g,recordContext:x})}function PM(n){var l,s;switch(fh(n).editor){case"gallery":return((l=n.element)==null?void 0:l.type)==="video"?Ek:((s=n.element)==null?void 0:s.type)==="tour"?Ff:Rk;case"poi-curation":return e5;case"document-list":return Sk;case"row-editor":return $f;case"scalar-list":return Yk}}function JM(n){switch(n.type){case"text":return R5;case"url":return Gk;case"image":return Xf;case"video":return tv;case"tour":return Ff;case"poi":return Fb;case"document":return Kf;case"select":return l5;case"list":return PM(n);default:return $f}}function L1(n){const l=new Set(n.map(JM));return l.size===1?[...l][0]:$f}function WM(){return`tmp_${globalThis.crypto.randomUUID()}`}function eA(n){return typeof n=="string"&&n.startsWith("tmp_")}const tA=me(rt,"flex w-full items-center justify-start gap-2 rounded-lg p-2.75 text-body font-semibold text-ink-3 transition-colors duration-[120ms] hover:bg-line-soft hover:text-ink"),nA=me(rt,"inline-flex items-center gap-1.75 self-start h-9 px-3 rounded-lg text-body font-medium text-danger transition-[background,color] duration-[120ms] hover:bg-danger/15 focus-visible:bg-danger/15 focus-visible:ring-2 focus-visible:ring-danger/25"),aA="relative flex flex-col gap-3",lA="data-[ghost]:opacity-40",iA="pointer-events-none absolute left-0 top-0 z-50 flex items-center gap-2.5 overflow-hidden rounded border border-line bg-canvas pl-2 pr-3.5 shadow-[0_16px_38px_-8px_rgba(20,18,13,0.5)]";function Yd(n,l){return l&&typeof n[l]=="string"?{key:l,value:n[l]}:null}function sA({slot:n,entries:l,min:s,max:o,instanceId:u,slotId:d,value:h,commit:m,selectedItemIndex:p,selectedFieldName:g,itemBaseline:x}){const{Accordion:b,AccordionHeader:k}=Vn(),S=l.filter(([,F])=>V1(F)),R=gv(n.layout,S.map(([F])=>F)),C=L1(l.map(([,F])=>F)),j=zl(F=>F.session.property_id),T=zl(F=>F.select),z=zl(F=>F.markSlotOverridden),D=zl(F=>F.relinkSlot),I=o1(n),ie=I?s1[I].idKey:null;function ne(F){T({kind:"slot",instance_id:u,slot_id:d,item_index:F})}const ee=w.useRef(null),U=Wl({items:h,identityOf:F=>{var pe;return((pe=Yd(F,ie))==null?void 0:pe.value)??null},min:s,max:o,axis:"y",commit:m,onCommitted:(F,pe)=>{const ge=ee.current;if(pe!=="reorder"||ge==null)return;const Ee=F.findIndex(Re=>Re.key===ge);Ee>=0&&ne(Ee)}}),{rows:ce}=U,de=p??null,re=de!=null?U.keyAt(de):null;w.useEffect(()=>{ee.current=re},[re]);const le=w.useRef(null);w.useEffect(()=>{re==null||!g||!le.current||ZM(le.current,g)},[re,g]);function B(){T({kind:"slot",instance_id:u,slot_id:d})}function H(F){if(re===F)return B();const pe=U.indexOf(F);pe<0||ne(pe)}function K(){if(U.atMax)return;const F=I?{...T0(l),[ie]:WM()}:T0(l);U.add(F),ne(ce.length)}function _(F){if(!U.canRemove)return;const pe=ce.find(Re=>Re.key===F),ge=pe==null?void 0:pe.value[ie??""];I!==null&&pe!=null&&typeof ge=="string"&&!eA(ge)&&z(u,d,{kind:"item_removed",item_id:ge});const Ee=U.indexOf(F);U.remove(F),re===F?B():de!=null&&Ee>=0&&Ee<de&&ne(de-1)}function Y(F,pe){const ge=ce.find(Re=>Re.key===F);if(ge==null)return;const Ee=Yd(ge.value,ie);if(Ee!=null){const Re=x==null?void 0:x.find(Ue=>Ue[Ee.key]===Ee.value);for(const Ue of Object.keys(pe))if(Ue!==Ee.key){const nt=Re==null?void 0:Re[Ue];Re!=null&&mM(pe[Ue],nt)?D(u,d,{kind:"item",item_id:Ee.value,field:Ue}):z(u,d,{kind:"item",item_id:Ee.value,field:Ue})}}U.setValue(F,{...ge.value,...pe})}const{containerRef:q,cloneRef:ue,getItemProps:W,draggingKey:M,cloneBox:G}=U.drag,Z=M?ce.find(F=>F.key===M):null,N=Z?ce.indexOf(Z):-1,P=Z?O0(Z.value,l,n,N):"";function X(){return f.jsx("div",{ref:ue,className:iA,style:{width:G.w,height:G.h},children:f.jsx(k,{icon:f.jsx(C,{size:14}),title:P,showGrip:!0,showChevron:!1})})}return f.jsxs("div",{className:"flex flex-col gap-3",children:[f.jsxs("div",{ref:q,className:me(aA,M&&"select-none [&_*]:select-none"),children:[ce.map((F,pe)=>{const ge=O0(F.value,l,n,pe);return f.jsx("div",{"data-ghost":M===F.key?"":void 0,className:lA,children:f.jsx(b,{open:M==null&&re===F.key,onToggle:()=>H(F.key),icon:f.jsx(C,{size:14}),title:ge,scrollKey:F.key,dragId:F.key,dragHandleProps:{onPointerDown:W(F.key).onPointerDown},children:f.jsxs("div",{className:"flex flex-col gap-4",ref:re===F.key?le:void 0,children:[f.jsx(bv,{rows:R,items:S.map(([Ee,Re])=>{var Ue;return f.jsx("div",{[Tf]:Ee,children:f.jsx(Of,{slot:Re,instanceId:u,slotId:d,value:F.value[Ee],propertyId:j,onChange:nt=>Y(F.key,{[Ee]:nt}),recordContext:{itemId:(Ue=Yd(F.value,ie))==null?void 0:Ue.value,itemIndex:pe,siblingRecords:ce.map(nt=>nt.value),fieldKey:Ee}})},Ee)})}),re===F.key&&U.canRemove&&f.jsxs("button",{type:"button",className:me(nA,"max-w-full"),onClick:()=>_(F.key),children:[f.jsx("span",{className:"inline-flex shrink-0",children:f.jsx(De.trash,{size:13})}),f.jsxs("span",{className:"min-w-0 truncate",children:["Delete ",ge]})]})]})})},F.key)}),Z?X():null]}),!U.atMax&&f.jsxs("button",{type:"button",className:tA,onClick:K,children:[f.jsx(De.plus,{})," Add ",xo(n.label)]})]})}const $d={listing_intent:n=>[{value:"for_sale",label:"For Sale"},{value:"for_rent",label:"For Rent"}]};function oA(n){return typeof n=="string"?{value:n,label:n}:{value:n.value,label:n.label}}function B1(n,l){var o,u;if(n.values)return n.values.map(oA);const s=(o=n.options)==null?void 0:o.source;return s!==void 0&&s!==""?((u=$d[s])==null?void 0:u.call($d,l))??[]:[]}function rA(n){return n.trim().toLowerCase().replace(/\s+/g,"-")}const cA="fixed z-[120] max-h-[calc(240*var(--content))] overflow-y-auto rounded-[calc(8*var(--content))] border border-line bg-white shadow-[0_16px_38px_-12px_rgba(20,18,13,0.4)]",H1=me(rt,"flex w-full items-center justify-between gap-2 rounded-none px-2.5 py-2 text-left text-body text-ink hover:bg-accent-soft data-[active=true]:bg-accent-soft"),uA=me(H1,"text-accent"),dA=4,R0=160,z0=8,fA=me(rt,"min-w-0 flex-1 cursor-text bg-transparent py-2.25 text-left text-[length:calc(13.5*var(--content))] text-ink outline-none placeholder:text-ink-4");function D0({open:n,className:l,onMouseDown:s}){return f.jsx("span",{className:me("flex flex-shrink-0 items-center text-ink-4 transition-transform duration-[120ms]",n&&"rotate-180",l),onMouseDown:s,"aria-hidden":"true",children:f.jsx("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:f.jsx("path",{d:"m6 9 6 6 6-6"})})})}function hA(){return f.jsx("svg",{className:"flex-shrink-0 text-ink-2",width:"13",height:"13",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:f.jsx("path",{d:"M3.5 8.5l3 3 6-6.5"})})}function mA(n,l){const s=l.toLowerCase().trim();return s?n.filter(o=>o.label.toLowerCase().includes(s)):n}function pA(n,l){const s=l.toLowerCase().trim();return n.some(o=>o.label.toLowerCase()===s)}function Rf({label:n,value:l,options:s,onChange:o,placeholder:u,bare:d=!1,autoOpen:h=!1,onDismiss:m,id:p,creatable:g=!1,canCreate:x}){const[b,k]=w.useState(h),[S,R]=w.useState(0),[C,j]=w.useState(null),[T,z]=w.useState(""),D=w.useId(),I=w.useRef(null),ie=w.useRef(null),ne=w.useRef(null),ee=s.findIndex(X=>X.value===l),U=ee>=0?s[ee]:void 0,ce=mA(s,b?T:""),de=rA(T),re=b&&de.length>0?s.find(X=>X.value===de):void 0,le=re&&!ce.some(X=>X.value===re.value)?[...ce,re]:ce,B=g&&de.length>0&&!pA(s,T)&&!re&&((x==null?void 0:x(de))??!0),H=le.length+(B?1:0);function K(){ne.current&&j(ne.current.getBoundingClientRect()),R(Math.max(0,ee)),k(!0)}const _=w.useCallback(()=>{k(!1),z(""),m==null||m()},[m]);function Y(X){var F;X.value!==l&&o(X.value),k(!1),z(""),(F=ie.current)==null||F.focus()}function q(X){var F;o(X),k(!1),z(""),(F=ie.current)==null||F.focus()}function ue(X){var F;if(!b){(X.key==="ArrowDown"||X.key==="Enter"||X.key===" ")&&(X.preventDefault(),K());return}if(X.key==="Escape")X.preventDefault(),(F=ie.current)==null||F.focus(),_();else if(X.key==="ArrowDown")X.preventDefault(),R(pe=>Math.min(H-1,pe+1));else if(X.key==="ArrowUp")X.preventDefault(),R(pe=>Math.max(0,pe-1));else if(X.key==="Enter")if(X.preventDefault(),S<le.length){const pe=le[S];pe&&Y(pe)}else B&&q(de)}const W=w.useCallback(X=>{var ge,Ee;const F=(ge=I.current)==null?void 0:ge.contains(X),pe=(Ee=document.getElementById(D))==null?void 0:Ee.contains(X);return!F&&!pe},[D]);function M(X){b&&W(X.relatedTarget)&&_()}w.useEffect(()=>{var X;h&&((X=ie.current)==null||X.focus())},[h]),w.useEffect(()=>{if(!b)return;const X=()=>{ne.current&&j(ne.current.getBoundingClientRect())};return X(),window.addEventListener("scroll",X,!0),window.addEventListener("resize",X),()=>{window.removeEventListener("scroll",X,!0),window.removeEventListener("resize",X)}},[b]),w.useEffect(()=>{if(!b)return;const X=F=>{W(F.target)&&_()};return document.addEventListener("mousedown",X),()=>document.removeEventListener("mousedown",X)},[b,W,_]);const G=X=>{X.preventDefault(),b||K()},Z=f.jsx("input",{ref:ie,id:p,className:d?fA:me(is,"cursor-text"),value:b?T:(U==null?void 0:U.label)??l,placeholder:u??"",role:"combobox","aria-haspopup":"listbox","aria-expanded":b,"aria-controls":D,"aria-label":n,onFocus:K,onClick:()=>{b||K()},onChange:X=>{z(X.target.value),b||K(),R(0)},onKeyDown:ue}),N=d?f.jsxs(f.Fragment,{children:[Z,f.jsx(D0,{open:b,className:"pl-2",onMouseDown:G})]}):f.jsxs(f.Fragment,{children:[Z,f.jsx(D0,{open:b,className:"pl-1 pr-2.75",onMouseDown:G})]}),P=b&&C&&H>0?Wf.createPortal(f.jsxs("div",{className:cA,id:D,role:"listbox",style:{left:Math.max(z0,Math.min(C.left,window.innerWidth-Math.max(C.width,R0)-z0)),top:C.bottom+dA,minWidth:Math.max(C.width,R0)},children:[le.map((X,F)=>f.jsxs("button",{type:"button",role:"option","aria-selected":X.value===l,"data-active":F===S,className:H1,onMouseEnter:()=>R(F),onMouseDown:pe=>pe.preventDefault(),onClick:()=>Y(X),children:[f.jsx("span",{className:"truncate",children:X.label}),X.value===l&&f.jsx(hA,{})]},X.value)),B&&f.jsx("button",{type:"button",role:"option","aria-selected":S===le.length,"data-active":S===le.length,className:uA,onMouseEnter:()=>R(le.length),onMouseDown:X=>X.preventDefault(),onClick:()=>q(de),children:f.jsxs("span",{className:"truncate",children:["Create “",de,"”"]})})]}),document.body):null;return d?f.jsxs("div",{className:"flex min-w-0 flex-1 items-center",ref:X=>{I.current=X,ne.current=X},onBlurCapture:M,children:[N,P]}):f.jsxs("div",{className:Qn,ref:I,onBlurCapture:M,children:[f.jsx("span",{className:ba,children:n}),f.jsx("div",{className:me(vo,b&&"border-accent"),ref:ne,children:N}),P]})}const yA="relative flex flex-col gap-2",gA="group/li flex cursor-text touch-none items-center gap-2 rounded-[calc(8*var(--content))] border border-line bg-white px-2.75 transition-[border-color,box-shadow] duration-[120ms] hover:border-[#d9d5c9] focus-within:border-accent",bA=me(rt,"we-no-drag grid size-5.5 flex-shrink-0 place-items-center rounded-[calc(5*var(--content))] text-ink-3 transition-[background,color] duration-[120ms] hover:bg-[#FBE6E2] hover:text-[#8E2C1E]"),vA="pointer-events-none absolute z-[60] flex cursor-grabbing items-center gap-2 overflow-hidden rounded-[calc(8*var(--content))] bg-white px-2.75 text-[length:calc(13.5*var(--content))] text-ink shadow-[0_16px_38px_-8px_rgba(20,18,13,0.5)] after:absolute after:inset-0 after:rounded-[calc(9*var(--content))] after:border after:border-solid after:border-[#d9d5c9] after:content-['']",xA=me(rt,"flex h-8.5 w-full items-center justify-start gap-1.5 rounded-[calc(8*var(--content))] px-2.5 text-[length:calc(12.5*var(--content))] font-medium text-ink-3 transition-colors duration-[120ms] hover:bg-line-soft hover:text-ink");function wA(n){const l=n.currentTarget.control;if(!l||n.target===l||n.target.closest("button")||(n.preventDefault(),l.focus(),!(l instanceof HTMLInputElement)))return;const o=n.clientX<l.getBoundingClientRect().left?0:l.value.length;l.setSelectionRange(o,o)}function q1({engine:n,label:l,addLabel:s=`Add ${xo(l)}`,renderControl:o,cloneText:u,onAdd:d,renderAdd:h,addDisabled:m=!1}){const{rows:p,drag:g}=n,{containerRef:x,cloneRef:b,getItemProps:k,draggingKey:S,cloneBox:R}=g,C=S?p.find(T=>T.key===S):null,j=h==null?void 0:h(n.add);return f.jsxs("div",{className:Qn,children:[f.jsx("span",{className:ba,children:l}),f.jsxs("div",{className:"flex flex-col gap-2",children:[f.jsxs("div",{className:me(yA,S&&"select-none [&_*]:select-none"),ref:x,children:[p.map(T=>f.jsxs("label",{htmlFor:T.key,onClick:wA,...k(T.key),"data-ghost":S===T.key?"":void 0,className:me(gA,S===T.key&&"cursor-grabbing border-transparent bg-accent-soft"),children:[f.jsx("span",{"aria-hidden":"true",className:"flex flex-shrink-0 cursor-grab items-center text-ink-4 transition-colors duration-[120ms] hover:text-ink-2 group-data-[ghost]/li:opacity-[0.25]",children:f.jsx(De.grip,{})}),o({id:T.key,value:T.value,onChange:z=>n.setValue(T.key,z)}),n.canRemove&&f.jsx("button",{type:"button",className:bA,title:"Remove",onClick:()=>n.remove(T.key),children:f.jsx(De.trash,{})})]},T.key)),C&&f.jsxs("div",{ref:b,className:vA,style:{width:R.w,height:R.h,left:0,top:0,position:"absolute"},children:[f.jsx("span",{"aria-hidden":"true",className:"flex flex-shrink-0 items-center text-ink-4",children:f.jsx(De.grip,{})}),f.jsx("span",{className:"min-w-0 flex-1 truncate py-2.25",children:u(C.value)})]})]}),j??(!n.atMax&&!m&&f.jsxs("button",{type:"button",className:xA,onClick:()=>d(n.add),children:[f.jsx(De.plus,{})," ",s]}))]})]})}function _A({engine:n,label:l,placeholder:s="List item",addLabel:o,maxLength:u}){return f.jsx(q1,{engine:n,label:l,addLabel:o,cloneText:d=>d,renderControl:({id:d,value:h,onChange:m})=>f.jsx(Zr,{bare:!0,id:d,value:h,onChange:m,placeholder:s,ariaLabel:s,maxLength:u,className:"cursor-[inherit] py-2.25 text-[length:calc(13.5*var(--content))] group-data-[ghost]/li:opacity-[0.25]"}),onAdd:d=>d("")})}function SA({engine:n,label:l,options:s,unique:o=!1,creatable:u=!1}){const[d,h]=w.useState(!1),m=n.rows.map(k=>k.value),p=k=>o?s.filter(S=>S.value===k||!m.includes(S.value)):s,g=p(null),x=k=>{var S;return((S=s.find(R=>R.value===k))==null?void 0:S.label)??k},b=k=>!o||!m.includes(k);return f.jsx(q1,{engine:n,label:l,addDisabled:!u&&g.length===0,cloneText:k=>x(k),renderControl:({id:k,value:S,onChange:R})=>f.jsx(Rf,{bare:!0,id:k,label:l,value:S,options:p(S),onChange:R,creatable:u,canCreate:b}),onAdd:()=>h(!0),renderAdd:k=>d?f.jsx(Rf,{bare:!0,autoOpen:!0,label:`Add ${xo(l)}`,value:"",placeholder:"Choose one",options:g,onDismiss:()=>h(!1),onChange:S=>{h(!1),k(S)},creatable:u,canCreate:b}):null})}function kA({slot:n,itemSlot:l,min:s,max:o,value:u,commit:d}){const h=zl(p=>p.session.listing_intent),m=Wl({items:u,min:s,max:o,axis:"y",commit:d});return l.type==="select"?f.jsx(SA,{engine:m,label:n.label,options:B1(l,{listingIntent:h}),creatable:l.creatable===!0,unique:n.unique===!0}):f.jsx(_A,{engine:m,label:n.label,maxLength:l.cap})}function EA(n){const{slot:l,instanceId:s,slotId:o,value:u,onChange:d,recordContext:h}=n,m=lM(l),p=pM(l,s,o,d,h!=null);if(m.itemContent.kind==="record")return f.jsx(sA,{slot:l,entries:m.itemContent.entries,min:m.min,max:m.max,instanceId:s,slotId:o,value:u,commit:p,selectedItemIndex:n.selectedItemIndex,selectedFieldName:n.selectedFieldName,itemBaseline:n.itemBaseline});const g=m.itemContent.slot;return m.editor==="gallery"?g.type==="tour"?f.jsx(Zj,{min:m.min,max:m.max,value:u,propertyId:n.propertyId,commit:p}):g.type==="video"?f.jsx(tM,{itemSlot:g,min:m.min,max:m.max,value:u,propertyId:n.propertyId,commit:p}):f.jsx(Yj,{itemSlot:g,min:m.min,max:m.max,instanceId:s,slotId:o,value:u,propertyId:n.propertyId,selectedItemIndex:n.selectedItemIndex,commit:p}):m.editor==="document-list"?f.jsx(hM,{slot:l,min:m.min,max:m.max,value:u,propertyId:n.propertyId,commit:p}):m.editor==="poi-curation"?f.jsx(XM,{slot:l,min:m.min,max:m.max,value:u,propertyId:n.propertyId,commit:p}):f.jsx(kA,{slot:l,itemSlot:g,min:m.min,max:m.max,value:u,commit:p})}const jA={PanelUI:EA,applyOptimistic:null,coerce:n=>Array.isArray(n)?n:[]};function MA(n,l){const s=String(n??"").replace(/[^\d.]/g,"");if(s==="")return"";const[o,u]=s.split("."),d=Number((o||"0").replace(/[^\d]/g,"")||0).toLocaleString("en-US");return u!=null?`${d}.${u}`:d}function AA(n,l){let s=n.replace(l!=null&&l.decimals?/[^\d.]/g:/[^\d]/g,"");if(l!=null&&l.decimals){const u=s.indexOf(".");u>=0&&(s=s.slice(0,u+1)+s.slice(u+1).replace(/\./g,""))}const o=s.replace(/[^\d]/g,"");return(l==null?void 0:l.maxDigits)!=null&&o.length>l.maxDigits?null:s}function CA({label:n,value:l,onChange:s,prefix:o,suffix:u,group:d,decimals:h,maxDigits:m,placeholder:p,errorText:g}){const x=d?MA(l):l;return f.jsxs("div",{className:Qn,children:[f.jsx("span",{className:ba,children:n}),f.jsxs("div",{className:me(vo,g&&"border-danger"),children:[o&&f.jsx("span",{className:me(ef,"pl-2.75"),children:o}),f.jsx("input",{className:me(is,"[font-variant-numeric:tabular-nums]",o&&"pl-1"),inputMode:h?"decimal":"numeric",value:x,placeholder:p??"0",onChange:b=>{const k=AA(b.target.value,{decimals:h,maxDigits:m});k!=null&&s(k)}}),u&&f.jsx("span",{className:me(ef,"pr-2.75"),children:u})]}),g&&f.jsx("p",{className:av,children:g})]})}function NA(n){return n==null?"":String(n)}function G1(n){const l=n.trim();if(l==="")return null;const s=Number(l);return Number.isFinite(s)?s:null}function TA({slot:n,value:l,onChange:s}){return f.jsx(CA,{label:n.label,value:NA(l),onChange:o=>s(G1(o)),prefix:n.prefix,suffix:n.suffix,group:n.thousandsSep,decimals:n.decimals,maxDigits:n.maxDigits,placeholder:n.placeholder})}const OA={PanelUI:TA,applyOptimistic:null,coerce:n=>typeof n=="number"?n:G1(typeof n=="string"?n:"")},RA="flex flex-col gap-2";function zA({slot:n,value:l,onChange:s,propertyId:o}){const{apiFetch:u}=Vn().api,[d,h]=w.useState(null),[m,p]=w.useState(null),g=w.useMemo(()=>l?[l]:[],[l]),{urls:x,dropUrl:b}=z1(o,g);async function k(S){if(h(null),(l==null?void 0:l.place_id)!==S.place_id){p(S);try{const R=await j1(u,o,S.place_id);s(R)}catch{h("Couldn't add that place — try again.")}finally{p(null)}}}return f.jsxs("div",{className:RA,children:[f.jsx(U1,{propertyId:o,placeholder:n.placeholder??"Search nearby…",addedIds:l?new Set([l.place_id]):new Set,onSelect:S=>void k(S)}),d&&f.jsx("span",{className:N1,children:d}),m?f.jsxs("div",{className:me(ph,T1),"aria-live":"polite",children:[f.jsx("span",{className:ic,children:f.jsx("span",{className:O1})}),f.jsxs("div",{className:yh,children:[f.jsx("span",{className:sc,children:m.name}),f.jsx("span",{className:gh,children:"Adding…"})]})]}):l?f.jsx(D1,{row:l,photoUrl:x[l.place_id],onPhotoError:()=>b(l.place_id),onRemove:()=>s(null)}):f.jsx("div",{className:C1,children:"No place yet — search above to choose one."})]})}const DA={PanelUI:zA,applyOptimistic:null,coerce:A1};function UA({slot:n,value:l,onChange:s}){const o=zl(d=>d.session.listing_intent),u=B1(n,{listingIntent:o});return f.jsx(Rf,{label:n.label,value:l??"",options:u,creatable:n.creatable??!1,placeholder:"Choose one",onChange:s})}const LA={PanelUI:UA,applyOptimistic:null,coerce:n=>typeof n=="string"?n:null},BA="data-slot-id",U0="data-slot-text-leaf",HA="data-slot-group",qA="data-slot-item",GA="data-slot-field",QA="data-slot-unselectable",mc="data-section-instance-id";function IA(n,l){const s=[];n.hasAttribute(U0)&&s.push(n),s.push(...Array.from(n.querySelectorAll(`[${U0}]`))),s.length!==0&&s.forEach(o=>{VA(o,l)})}function VA(n,l){const s=n.ownerDocument,o=[];l.split(`
1099
+ `).forEach((u,d)=>{d>0&&o.push(s.createElement("br")),o.push(s.createTextNode(u))}),n.replaceChildren(...o)}function Q1(n){return typeof n=="string"?n:n==null?"":typeof n=="number"||typeof n=="boolean"?String(n):""}const YA={short:120,medium:240,long:2e3};function $A(n){return YA[n]}function KA({slot:n,value:l,onChange:s}){const o=l??"",u=n.size??"short",d=typeof n.cap=="number"?n.cap:$A(u);return u==="long"?f.jsx(Zr,{value:o,onChange:s,label:n.label,max:d,maxLength:d,placeholder:n.placeholder,multiline:!0,rows:5}):u==="medium"?f.jsx(Zr,{value:o,onChange:s,label:n.label,max:d,maxLength:d,placeholder:n.placeholder,multiline:!0,rows:2}):f.jsx(Zr,{value:o,onChange:s,label:n.label,max:d,maxLength:d,placeholder:n.placeholder??""})}const XA={PanelUI:KA,applyOptimistic:IA,coerce:Q1};function FA({slot:n,value:l,onChange:s}){const o=l??"",[u,d]=w.useState(o),[h,m]=w.useState(o);o!==h&&(m(o),d(o));const p=Af(u),g=Cf(p),x=n.accepts,b=x===void 0||p===""||Ef(x,p),k=p!==""&&(!g||!b),S=R=>{const C=Af(R);C!==""&&!Cf(C)||C!==""&&x!==void 0&&!Ef(x,C)||(d(C),C!==o&&s(C))};return f.jsxs("div",{className:Qn,children:[f.jsx(lv,{label:n.label}),f.jsxs("div",{className:vo,children:[f.jsx("input",{className:is,type:"text",inputMode:"url",value:u,placeholder:n.placeholder??"https://",spellCheck:!1,onChange:R=>d(R.target.value),onBlur:R=>S(R.target.value)}),f.jsx("span",{className:me(ef,"pr-2.75"),children:g?f.jsx("a",{href:p,target:"_blank",rel:"noopener noreferrer",className:me(rt,"flex items-center text-ink-4 hover:text-accent transition-colors duration-[120ms]"),"aria-label":"Open URL in new tab",children:f.jsx(De.external,{})}):f.jsx("span",{className:"flex items-center text-ink-4 opacity-30",children:f.jsx(De.external,{})})})]}),k&&f.jsx("p",{className:av,children:g?Mf(x):"Not a valid URL"})]})}const ZA={PanelUI:FA,applyOptimistic:null,coerce:Q1};let L0=null;function PA(){return L0??(L0={text:XA,number:OA,select:LA,image:Uj,list:jA,poi:DA,url:ZA,video:Wj,tour:Xj,document:bj}),L0}function I1(n){const s=PA()[n];return s===void 0?null:s}function V1(n){const l=I1(n.type);return l?l.isEditable?l.isEditable(n):n.locked!==!0:!1}function JA(n,l){const s=n.variant;return!s||l==null?!0:s.cases.includes(l)}function WA(n){const l=Object.keys(n.slots),s=n.slot_order;if(!s||s.length===0)return l;const o=new Set,u=[];for(const d of s)d in n.slots&&!o.has(d)&&(o.add(d),u.push(d));for(const d of l)o.has(d)||u.push(d);return u}function Y1(n,l){const s=[],o=new Map,u=new Map;for(const p of n.groups??[])for(const g of j4(p.members))u.set(g,{id:p.id,label:p.label});for(const p of WA(n)){const g=n.slots[p];if(!V1(g)||!JA(g,l))continue;const x=u.get(p);if(x){let b=o.get(x.id);b||(b={kind:"group",key:x.id,label:x.label,Icon:null,items:[],rows:[]},o.set(x.id,b),s.push(b)),b.items.push({slotId:p,slot:g})}else fh(g).editor==="row-editor"?s.push({kind:"record",key:p,label:g.label,Icon:null,slotId:p,slot:g}):s.push({kind:"group",key:p,label:g.label,Icon:null,items:[{slotId:p,slot:g}],rows:[]})}const d=n.groups??[],h=d.some(p=>p.members.some(g=>typeof g!="string")),m=new Map(d.map(p=>[p.id,p.members]));for(const p of s)p.kind==="group"&&(p.rows=h?gv(m.get(p.key),p.items.map(g=>g.slotId)):A4(p.items.map(g=>g.slot)),p.Icon=L1(p.items.map(g=>g.slot)));return s}function eC(n){return n==null?!0:typeof n=="string"?n.trim()==="":Array.isArray(n)?n.length===0:typeof n=="object"?Object.keys(n).length===0:!1}function tC(n,l,s){const o=[];for(const u of Y1(n,l)){const d=u.kind==="group"?u.items:[{slotId:u.slotId,slot:u.slot}];for(const{slotId:h,slot:m}of d)m.variant&&eC(s(h))&&o.push(h)}return o}const nC=ye("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"ig-frame"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"ig-lens"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"ig-flash"}]]),aC=ye("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"fb-f"}]]),lC=ye("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"li-arm"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"li-stem"}],["circle",{cx:"4",cy:"4",r:"2",key:"li-dot"}]]),iC=ye("XLogo",[["path",{d:"M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z",transform:"translate(2 2) scale(0.8333)",fill:"currentColor",stroke:"none",key:"x-mark"}]]),sC={home:Nk,building:QS,template:Lk,palette:r5,filePen:bk,library:Hk,plug:y5,helpCircle:tk,lock:Kk,creditCard:ok,settings:j5,power:v5,user:q5,plus:Zb,globe:Mk,image:Xf,fileText:Kf,users:Q5,eye:Kb,eyeOff:$b,pulse:ES,search:Jb,chart:$S,layout:Dk,chevDown:FS,chevRight:PS,chevSelector:WS,pencil:u5,dots:hk,grip:Xb,external:Yb,copy:ik,trash:Wb,archive:MS,sparkle:N5,arrowUp:LS,arrowDown:CS,arrowLeft:RS,arrowRight:DS,undo:D5,redo:_5,logout:Fk,check:Vb,x:nv,clock:ak,calendar:VS,mapPin:Fb,userPlus:B5,mail:Pk,phone:f5,share:A5,upload:ev,bookOpen:HS,newspaper:s5,presentation:Pb,instagram:nC,facebook:aC,linkedin:lC,xLogo:iC};function Zl({name:n,size:l=18,stroke:s=2,fill:o,color:u,className:d,style:h}){const m=sC[n];return f.jsx(m,{size:l,strokeWidth:s,fill:o??"none",color:u,className:d,style:{flexShrink:0,width:`calc(${l} * var(--content))`,height:`calc(${l} * var(--content))`,color:u??"currentColor",...h},"aria-hidden":"true"})}function oC(){return f.jsxs("div",{className:"hp-rest-in flex min-h-0 flex-1 flex-col items-center justify-center px-8 pb-10 text-center",children:[f.jsx("span",{className:"text-ink-4","aria-hidden":"true",children:f.jsx(Zl,{name:"pencil",size:22,stroke:1.6})}),f.jsx("p",{className:"m-0 mt-3 text-body-lg font-medium text-ink-2",children:"Nothing selected"}),f.jsx("p",{className:"m-0 mt-1 max-w-[calc(220*var(--content))] text-body leading-[1.45] text-ink-4",children:"Click anything on the canvas to edit it"})]})}const B0=1;function H0(n){const l=new URLSearchParams;for(const[o,u]of Object.entries(n))u!=null&&u!==""&&l.set(o,u);const s=l.toString();return s===""?"":`?${s}`}const Ol={catalog:"api/catalog",render:"api/render",media:n=>`api/media${H0({fixture:n})}`,capture:(n,l)=>`api/capture/${n}${H0({fixture:l.fixture,format:l.format,page:l.page,canvas:l.canvas})}`,live:(n,l)=>`fixtures/${encodeURIComponent(n)}/live${l==="/"?"/":`${l}/`}`,hmr:"__hmr"},rC={source:"source:changed",stylesheet:"stylesheet:changed",fixtures:"fixtures:changed"};async function q0(n,l){const s=(await l.text().catch(()=>"")).trim();return new Error(s===""?`${n}: HTTP ${l.status}`:s)}function cC(n,l=(s,o)=>fetch(s,o)){const s=u=>new URL(u,n).href,o=async u=>{const d=await l(s(u));if(!d.ok)throw await q0(u,d);return await d.json()};return{base:n,async catalog(){const u=await o(Ol.catalog);if(u.wire!==B0)throw new Error(`This playground speaks wire ${B0}, and its host answered with wire ${String(u.wire)}.`);return u},async render(u){const d=await l(s(Ol.render),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(u)});if(!d.ok)throw await q0(Ol.render,d);return await d.json()},media:u=>o(Ol.media(u)),captureHref:(u,d)=>s(Ol.capture(u,d)),liveHref:(u,d)=>s(Ol.live(u,d)),subscribe(u){let d;try{d=new EventSource(s(Ol.hmr))}catch{return()=>{}}const h=Object.entries(u).map(([m,p])=>{const g=rC[m],x=()=>p();return d.addEventListener(g,x),()=>d.removeEventListener(g,x)});return()=>{for(const m of h)m();d.close()}}}}let zf=null;function uC(n){zf=n}function dC(){if(zf===null)throw new Error("The playground's host is not installed yet.");return zf}let $1=null;function fC(n){$1=n}function hC(){return $1}const G0={fixtures:"Fixtures",empties:"Empties"};function Q0(n,l){return`${n} ${l}${n===1?"":"s"}`}function mC(n){const l=[n.propertyType,n.listingIntent].filter(o=>o!==null).map(o=>o.replaceAll("_"," "));l.push(Q0(n.units,"unit"),Q0(n.photos,"photo"));const s=l.join(", ");return s.charAt(0).toUpperCase()+s.slice(1)}function pC(n){return`${n.label} (${mC(n.summary)})`}function yC(n){const l=n.filter(o=>o.group==="empties");if(l.length===0)return[{label:null,fixtures:n}];const s=n.filter(o=>o.group==="fixtures");return[{label:G0.fixtures,fixtures:s},{label:G0.empties,fixtures:l}].filter(o=>o.fixtures.length>0)}function gC(n,l){return`${n}${n.includes("?")?"&":"?"}v=${encodeURIComponent(l)}`}function bC(n){return{basePath:n.basePath,stylesheets:n.stylesheets.map(l=>gC(l,n.cssRev)),importMap:n.importMap,islandMap:n.islands,hostScriptSrc:n.hostScript,hostResolvesOwnImports:Object.keys(n.importMap).length===0}}function I0(n){const l=n.sectionSchemaByInstance??{};return{markers:{sectionInstanceId:mc,slotId:BA,slotGroup:HA,slotItem:qA,slotField:GA,slotUnselectable:QA},assets:bC(n),...n.pageBox===void 0?{}:{pageBox:n.pageBox},isSlotEditable:(s,o,u)=>{var h,m,p;const d=(h=l[s])==null?void 0:h.slots[o];return d===void 0||d.locked===!0?!1:u===void 0||((p=(m=d.fields)==null?void 0:m[u])==null?void 0:p.locked)!==!0}}}const vC=/^\/properties\/[^/]+\/poi\/search$/,xC=/^\/properties\/[^/]+\/poi\/([^/]+)$/,Df=[{place_id:"pg-coffee",name:"Bluebird Coffee",address:"88 Market St",lat:40.798,lng:-73.972,distance_m:210,rating:4.6,review_count:312,type_label:"Coffee shop",price_level:"PRICE_LEVEL_INEXPENSIVE"},{place_id:"pg-park",name:"Riverside Park",address:"500 Riverside Dr",lat:40.8,lng:-73.97,distance_m:320,type_label:"Park"},{place_id:"pg-grocer",name:"Corner Grocery",address:"45 Vine Ave",lat:40.796,lng:-73.968,distance_m:480,rating:4.1,review_count:88,type_label:"Grocery store"},{place_id:"pg-school",name:"Lincoln Elementary School",address:"12 School St",lat:40.803,lng:-73.965,distance_m:640,type_label:"Elementary school"},{place_id:"pg-transit",name:"Metro Station — 5th & Main",address:null,lat:40.799,lng:-73.975,distance_m:750,type_label:"Transit station"},{place_id:"pg-gym",name:"Eastside Fitness",address:"300 Water St",lat:40.805,lng:-73.961,distance_m:1100,rating:3.9,review_count:174,type_label:"Gym",summary:"A neighborhood gym with a lap pool and early hours."}];function wC(n){const l=typeof n=="object"&&n!==null?n.query:void 0,s=typeof l=="string"?l.trim().toLowerCase():"";return s?{results:Df.filter(o=>{var u;return o.name.toLowerCase().includes(s)||(((u=o.address)==null?void 0:u.toLowerCase().includes(s))??!1)})}:{results:Df}}let _C=0;function SC(n,l={}){const s=(l.method??"GET").toUpperCase();if(s==="POST"&&vC.test(n))return Promise.resolve(wC(l.json));const o=s==="GET"?xC.exec(n):null;if(o){const u=decodeURIComponent(o[1]),d=Df.find(h=>h.place_id===u);if(d)return Promise.resolve({...d,id:`pg-row-${++_C}`})}return Promise.reject(new Error(`No API backend in the playground: ${l.method??"GET"} ${n}. This capability is served by the host application; supply a provider to use it here.`))}function kC(n,l,s){const o=Math.min(Math.max(Math.round(n.nx*l),0),Math.max(l-1,0)),u=Math.min(Math.max(Math.round(n.ny*s),0),Math.max(s-1,0)),d=Math.max(Math.min(Math.round(n.nw*l),l-o),1),h=Math.max(Math.min(Math.round(n.nh*s),s-u),1);return{sx:o,sy:u,sw:d,sh:h}}function EC(n,l){return new Promise((s,o)=>{const u=l.createElement("img");u.onload=()=>s(u),u.onerror=()=>o(new Error(`Could not load ${n} to crop it.`)),u.src=n})}async function jC(n,l,s=document){const o=await EC(n,s),{sx:u,sy:d,sw:h,sh:m}=kC(l,o.naturalWidth,o.naturalHeight),p=s.createElement("canvas");p.width=h,p.height=m;const g=p.getContext("2d");if(!g)throw new Error("No 2d canvas context; cannot crop.");g.drawImage(o,u,d,h,m,0,0,h,m);const x=await new Promise(b=>p.toBlob(b));if(!x)throw new Error("Canvas produced no blob; cannot crop.");return URL.createObjectURL(x)}const $l="2026-01-01T00:00:00.000Z",V0=new Map;function cl(n){let l=V0.get(n);return l===void 0&&(l=dC().media(n).then(s=>s.items).catch(()=>[]),V0.set(n,l)),l}function MC(n,l){return l.filter(s=>s.kind==="photo").map(s=>({id:s.id,property_id:n,name:s.name,thumbnail_url:s.src,uploaded_at:$l,caption:s.caption??null}))}function AC(n,l){return l.filter(s=>s.kind==="video").map(s=>({id:s.id,property_id:n,name:s.name,poster_url:s.src,ready:s.ready??!0,duration_ms:s.durationMs??null,width:null,height:null,uploaded_at:$l,caption:s.caption??null,source:s.provider===void 0?"upload":"link",provider:s.provider??null}))}function CC(n){return n.filter(l=>l.kind==="tour").map(l=>({id:l.id,name:l.name,provider:l.provider??"",poster_url:l.src,caption:l.caption??null,ready:l.ready??!0}))}function NC(n,l){return l.filter(s=>s.kind==="document").map(s=>({id:s.id,property_id:n,name:s.name,mime:s.mime??"",size_bytes:s.sizeBytes??0,preview_url:s.src,uploaded_at:$l}))}function K1(n,l){return{floorplans:l.filter(o=>o.kind==="plan").map(o=>({id:o.id,property_id:n,source:null,thumbnail_url:o.src,ready:!0,uploaded_at:$l,display_label:D3(o.name,1)}))}}function bh(n){return Promise.reject(new Error(`${n} is served by the host application and has no playground equivalent. A fixture's media is read-only.`))}async function TC(n){return{photos:MC(n,await cl(n))}}async function OC(n){return{videos:AC(n,await cl(n))}}async function RC(n){return{tours:CC(await cl(n))}}async function zC(n){return{documents:NC(n,await cl(n))}}async function DC(n){return K1(n,await cl(n))}async function UC(n,l){const{floorplans:s}=K1(n,await cl(n)),o=s.find(u=>u.id===l);if(!o)throw new Error(`The fixture's property has no floor plan ${l}.`);return{source_url:o.thumbnail_url,source_bbox:null,ai_bbox:null,source_width:null,source_height:null}}function LC(n){return bh("Upload status")}function BC(n,l,s){return bh("Re-cropping a floor plan")}function HC(n,l,s){return bh("Pasting a link")}const Uf=new Map;let Y0=0;async function qC(n,l,s,o){const d=(await cl(n)).find(p=>p.id===l);if(!(d!=null&&d.src))throw new Error(`The fixture's property has no asset ${l} to crop.`);const h=`dev-crop-${++Y0}`;Uf.set(h,{sourceUrl:d.src,rect:s});const m={status:"processing",job_id:h,crop_key:h};if(o){const p=`dev-crop-${++Y0}`;Uf.set(p,{sourceUrl:d.src,rect:o}),m.mobile={job_id:p,crop_key:p}}return m}function GC(n,l){return Promise.resolve({id:l,kind:"image_crop",status:"succeeded",enqueued_at:$l,started_at:$l,completed_at:$l})}const $0=new Map;function QC(n,l){const s=Uf.get(l);if(!s)return Promise.reject(new Error(`Unknown crop ${l}.`));let o=$0.get(l);return o||(o=jC(s.sourceUrl,s.rect),$0.set(l,o)),o}const K0="2026-01-01T00:00:00.000Z";function IC(n){return n.endsWith("logo (dark)")?"logo_dark":n.endsWith("logo (light)")?"logo_light":"headshot"}function VC(n,l){if(l)return l;const[s]=n.split(" — ");return s??n}function YC(n){const l=new Map;for(const s of n){if(s.kind!=="library")continue;const o=VC(s.name,s.caption);let u=l.get(o);switch(u||(u={id:`dev-contact-${o.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"")}`,category:"contact",fields:{name:o},created_at:K0,updated_at:K0},l.set(o,u)),IC(s.name)){case"headshot":u.fields.avatar_upload_id=s.id,u.avatar_url=s.src;break;case"logo_dark":u.fields.logo_dark_upload_id=s.id,u.logo_dark_url=s.src;break;case"logo_light":u.fields.logo_light_upload_id=s.id,u.logo_light_url=s.src;break}}return[...l.values()]}async function $C(n="contact"){const l=hC();return{items:l===null?[]:YC(await cl(l))}}function vh(){return Promise.reject(new Error("Library uploads are served by the host application. The dev media pack is read-only."))}function KC(n,l){return vh()}function XC(n,l,s){return vh()}function FC(n,l){return vh()}function ZC(n){return Promise.reject(new Error("There is no property in the playground: the canvas renders a template, not a listing."))}const PC=12;function JC(n,l,s,o){if(n.top>=o&&n.bottom<=l-o)return null;const d=Math.max(0,s+n.top-o);return Math.abs(d-s)<1?null:d}function X1({icon:n,title:l,subtitle:s,showGrip:o=!1,showChevron:u=!0,open:d}){return f.jsxs(f.Fragment,{children:[o?f.jsx("span",{"aria-hidden":"true",className:"-mr-1 flex flex-shrink-0 cursor-grab items-center text-ink-4 transition-colors duration-[120ms] hover:text-ink-2 active:cursor-grabbing",children:f.jsx(Zl,{name:"grip",size:14,stroke:1.8})}):null,f.jsx("span",{className:"grid size-6.5 flex-shrink-0 place-items-center rounded-md bg-accent-soft text-accent-ink","aria-hidden":"true",children:n}),s?f.jsxs("span",{className:"flex min-w-0 flex-1 flex-col gap-px",children:[f.jsx("span",{className:"truncate text-[length:calc(13.5*var(--content))] font-medium text-ink-2",children:l}),f.jsx("span",{className:"truncate text-[length:calc(11.5*var(--content))] text-ink-3 [font-variant-numeric:tabular-nums]",children:s})]}):f.jsx("span",{className:"min-w-0 flex-1 truncate text-left text-[length:calc(13.5*var(--content))] font-medium text-ink-2",children:l}),u?f.jsx("span",{"data-acc-open":d,className:"grid flex-shrink-0 place-items-center text-ink-3 transition-transform duration-150 ease-[ease] data-[acc-open=true]:rotate-180","aria-hidden":"true",children:f.jsx(Zl,{name:"chevDown",size:14,stroke:1.8})}):null]})}function F1({open:n,onToggle:l,icon:s,title:o,subtitle:u,scrollKey:d,dragId:h,dragHandleProps:m,children:p}){const g=w.useRef(null);return w.useEffect(()=>{if(!n)return;const x=g.current,b=x==null?void 0:x.closest(".hp-sb-scroll");if(!x||!b)return;const k=window.matchMedia("(prefers-reduced-motion: reduce)").matches,S=()=>{const T=x.getBoundingClientRect(),z=b.getBoundingClientRect(),D=JC({top:T.top-z.top,bottom:T.bottom-z.top,height:T.height},b.clientHeight,b.scrollTop,PC);D!=null&&b.scrollTo({top:D,behavior:k?"auto":"smooth"})};if(k){const T=requestAnimationFrame(S);return()=>cancelAnimationFrame(T)}const R=new AbortController,C=()=>{R.abort(),window.clearTimeout(j),S()};x.addEventListener("transitionend",T=>{T.propertyName==="grid-template-rows"&&T.target instanceof Node&&T.target.parentNode===x&&C()},{signal:R.signal});const j=window.setTimeout(C,280);return()=>{R.abort(),window.clearTimeout(j)}},[n,d]),f.jsxs("div",{ref:g,"data-open":n,"data-dragid":h,className:me("we-acc flex-shrink-0 overflow-hidden rounded border border-line bg-canvas","origin-center [transform:scale(var(--gx,1),var(--gy,1))] [will-change:transform]","[transition:transform_.18s_cubic-bezier(.34,1.56,.64,1),box-shadow_.18s_ease,border-color_.16s_ease]","has-[>.we-acc-head:hover]:shadow-[0_4px_14px_-6px_rgba(20,24,15,0.18)]","has-[>.we-acc-head:active]:[transition-duration:.08s]","motion-reduce:[transform:none] motion-reduce:[transition:box-shadow_.18s_ease,border-color_.16s_ease]"),children:[f.jsx("button",{type:"button",className:me("we-acc-head flex w-full cursor-pointer appearance-none items-center gap-2.5 border-0 bg-transparent pr-3.5 py-3 text-left outline-none",m?"pl-2":"pl-3.5",m&&"touch-none"),onClick:l,onPointerDown:m==null?void 0:m.onPointerDown,"aria-expanded":n,children:f.jsx(X1,{icon:s,title:o,subtitle:u,showGrip:m!=null,open:n})}),f.jsx("div",{"data-acc-open":n,className:"grid grid-rows-[0fr] transition-[grid-template-rows] duration-200 ease-out data-[acc-open=true]:grid-rows-[1fr] motion-reduce:transition-none","aria-hidden":!n,children:f.jsx("div",{className:"min-h-0 overflow-hidden",children:f.jsx("div",{"data-acc-open":n,className:"bg-white px-3.5 pb-4 pt-2 opacity-0 transition-opacity duration-200 ease-out data-[acc-open=true]:opacity-100 motion-reduce:transition-none",children:p})})})]})}function WC(n,l,s){return Promise.reject(new Error("Uploading is served by the host application; the playground has no upload backend."))}function eN(n,l){return Promise.reject(new Error("Uploading is served by the host application; the playground has no upload backend."))}const tN={getPhotos:TC,getVideos:OC,getTours:RC,getDocuments:zC,getFloorplans:DC,getUploads:LC,recropFloorplan:BC,listLibraryItems:$C,postUploadWithProgress:WC,deleteUpload:eN};function nN({open:n,onClose:l}){return n?f.jsxs("div",{className:"rounded-md border border-dashed border-ink-4 bg-accent-soft px-3 py-2.5","data-testid":"unit-plan-picker-stub",role:"dialog","aria-label":"Floor-plan assignment",children:[f.jsx("p",{className:"text-caption font-medium text-ink-2",children:"Floor-plan assignment lives in the app"}),f.jsx("p",{className:"mt-1 text-caption text-ink-3",children:"Assigning a floor plan to a unit is a property-editing act, done against a real property. The playground has no property, so this picker is inert here."}),f.jsx("button",{type:"button",className:"mt-2 rounded-md border border-ink-4 px-2 py-1 text-caption text-ink-2",onClick:l,children:"Close"})]}):null}function oc(n){return n===null||typeof n!="object"?JSON.stringify(n)??"undefined":Array.isArray(n)?`[${n.map(oc).join(",")}]`:`{${Object.keys(n).sort().map(l=>`${JSON.stringify(l)}:${oc(n[l])}`).join(",")}}`}function aN(n,l,s,o){if(l===null||l.fixtureId!==s)return[];const u=[];for(const[d,h]of Object.entries(n.slots)){const m=oc(h);if(m===oc(l.slots[d]))continue;const p=o.slots[d];p!==void 0&&u.push({id:`${d}:scalar::@${m}`,kind:"scalar",label:p.label,slotId:d})}return u}const lN={fact:"border-accent/40 text-accent",computed:"border-accent/40 text-accent",authored:"border-line text-ink-2",empty:"border-dashed border-line text-ink-4",edited:"border-honey-2 bg-honey/20 text-honey-ink"};function Z1(n){return f.jsx("span",{className:"inline-flex flex-shrink-0 items-center gap-1","data-testid":"provenance-chips",children:n.chips.map(l=>f.jsx("span",{"data-testid":"provenance-chip","data-provenance":l.kind,"data-slots":l.slots.map(s=>s.id).join(" "),title:`${l.kind}: ${l.slots.map(s=>s.ref===null?s.id:`${s.id} ← ${s.ref}`).join(", ")}`,className:`pointer-events-auto inline-flex h-[18px] cursor-help items-center rounded-full border bg-canvas px-1.5 font-mono text-[10px] font-normal normal-case leading-none tracking-[0.02em] ${lN[l.kind]}`,children:l.kind},l.kind))})}function iN(n){return f.jsxs("div",{className:"relative",children:[n.children,f.jsx("div",{className:"pointer-events-none absolute right-10 top-[15px]",children:f.jsx(Z1,{chips:n.chips})})]})}function sN(n,l){const s=!l,o=n.required&&!s;return{hidden:s,locked:o,title:o?"Required section — cannot hide":s?"Hidden from live page":"Visible on live page"}}function P1(n){const{variant:l}=n;return l===null||l.locked||l.cases.length<2?null:l.cases}function oN(n,l){return l||(n==null?void 0:n.kind)==="session"?{kind:"edited",ref:null}:n===void 0?{kind:"empty",ref:null}:n.kind==="fact"||n.kind==="computed"?{kind:n.kind,ref:n.ref}:{kind:n.kind,ref:null}}function rN(n,l,s){const o=new Map;for(const u of n){const{kind:d,ref:h}=oN(l==null?void 0:l[u],s(u));o.set(d,[...o.get(d)??[],{id:u,ref:h}])}return[...o].map(([u,d])=>({kind:u,slots:d}))}const X0="grid h-8 w-8 cursor-pointer place-items-center rounded-md border-0 p-0 transition-colors";function cN(n){const l=sN(n.display,n.enabled);return f.jsxs("header",{className:"flex min-h-[calc(56*var(--content))] flex-shrink-0 items-center justify-between gap-3 px-5 pb-2 pt-4","data-testid":"section-header",children:[f.jsx("div",{className:"flex min-w-0 flex-1 items-center",children:f.jsx("h2",{className:"m-0 truncate text-body-lg font-semibold tracking-[-0.005em] text-ink",children:n.label})}),f.jsxs("div",{className:"inline-flex flex-shrink-0 items-center gap-0.5",children:[f.jsx("button",{type:"button","data-testid":"section-eye","aria-pressed":l.hidden,"aria-label":l.title,onClick:()=>!l.locked&&n.onSetEnabled(l.hidden),disabled:l.locked,title:l.title,className:`${X0} disabled:cursor-not-allowed disabled:text-ink-4 disabled:opacity-100 ${l.hidden?"bg-[rgba(20,18,13,0.06)] text-ink [box-shadow:inset_0_0_0_1px_var(--color-line)]":"bg-transparent text-ink-2 hover:bg-[rgba(20,18,13,0.06)] hover:text-ink disabled:hover:bg-transparent disabled:hover:text-ink-4"}`,children:f.jsx(Zl,{name:l.hidden?"eyeOff":"eye",size:15,stroke:1.8})}),P1(n.display)?f.jsx("button",{type:"button","data-testid":"section-gear",onClick:n.onOpenSettings,title:"Section settings","aria-label":"Section settings",className:`${X0} bg-transparent text-ink-2 hover:bg-[rgba(20,18,13,0.06)] hover:text-ink`,children:f.jsx(Zl,{name:"settings",size:15,stroke:1.8})}):null]})]})}const uN=me("group/case flex cursor-pointer items-center gap-2.5 rounded border border-line bg-canvas px-3 py-2.5","transition-[border-color,background-color] hover:border-[var(--color-ink-4)]","has-[:focus-visible]:border-accent","data-[selected=true]:border-accent data-[selected=true]:bg-accent-soft");function dN(n){const l=P1(n.display),s=tC(n.sectionSchema,n.variant,n.slotValue).length;return f.jsxs(f.Fragment,{children:[f.jsx("header",{className:"flex min-h-[calc(56*var(--content))] flex-shrink-0 items-center justify-between gap-3 px-5 pb-2 pt-4",children:f.jsxs("nav",{className:"inline-flex min-w-0 items-center gap-1.5 text-body-lg tracking-[-0.005em]","aria-label":"Breadcrumbs",children:[f.jsx("button",{type:"button","data-testid":"settings-back",onClick:n.onBack,className:"max-w-[calc(220*var(--content))] cursor-pointer truncate border-0 bg-transparent p-0 font-medium text-ink-3 hover:bg-transparent transition-colors hover:text-ink hover:underline hover:underline-offset-[3px]",children:n.label}),f.jsx("span",{className:"inline-grid place-items-center leading-none text-ink-4","aria-hidden":"true",children:f.jsx(Zl,{name:"chevRight",size:12,stroke:1.8})}),f.jsx("span",{className:"max-w-[calc(220*var(--content))] truncate font-semibold text-ink",children:"Settings"})]})}),f.jsx("div",{className:"hp-sb-scroll min-h-0 flex-1 overflow-y-auto px-4 pb-6 pt-2","data-testid":"section-settings",children:l?f.jsxs("section",{"aria-label":"Variation",className:"flex flex-col gap-2.5",children:[f.jsx("h3",{className:"px-1 text-[length:calc(11.5*var(--content))] font-medium uppercase tracking-[0.04em] text-ink-3",children:"Variation"}),f.jsx("div",{className:"flex flex-col gap-2",children:l.map(o=>f.jsxs("label",{"data-selected":o.value===n.variant,className:uN,children:[f.jsx("input",{type:"radio",className:"sr-only",name:`variation-${n.instanceId}`,value:o.value,checked:o.value===n.variant,onChange:()=>n.onSetVariant(o.value)}),f.jsx("span",{"aria-hidden":"true",className:"grid size-4 flex-shrink-0 place-items-center rounded-full border-[1.5px] border-ink-4 transition-colors group-data-[selected=true]/case:border-accent",children:f.jsx("span",{className:"size-2 rounded-full bg-accent opacity-0 transition-opacity group-data-[selected=true]/case:opacity-100"})}),f.jsx("span",{className:"min-w-0 flex-1 truncate text-[length:calc(13.5*var(--content))] font-medium text-ink",children:o.label})]},o.value))}),s>0?f.jsx("p",{"aria-live":"polite",className:"rounded border border-line bg-accent-soft px-3 py-2 text-[length:calc(12.5*var(--content))] leading-[1.45] text-ink-2",children:s===1?"1 empty field in this variation":`${s} empty fields in this variation`}):null]}):f.jsx("p",{className:"px-1 py-3 text-[length:calc(12.5*var(--content))] text-ink-3",children:"Nothing to configure in this section."})})]})}function fN(){return typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches}function F0(n){return f.jsx("svg",{viewBox:"0 0 14 14",width:"13",height:"13",fill:"none",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n,children:f.jsx("path",{d:"M2.5 7h9M8 3.5 11.5 7 8 10.5"})})}function hN(n){return f.jsx("svg",{viewBox:"0 0 16 16",width:"15",height:"15",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n,children:f.jsx("path",{d:"M3.5 8.5l3 3 6-6.5"})})}function Z0(n){return f.jsx("svg",{viewBox:"0 0 14 14",width:"13",height:"13",fill:"none",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round","aria-hidden":"true",...n,children:f.jsx("path",{d:"M3.5 3.5l7 7M10.5 3.5l-7 7"})})}function mN({items:n,onApply:l}){const s=n??[],o=s.length,u=s.map(de=>de.id).join("|"),[d,h]=w.useState(!1),[m,p]=w.useState("idle"),[g,x]=w.useState(!1),[b,k]=w.useState(0),S=w.useRef(null),R=w.useRef(null),C=w.useRef(null),j=w.useRef(null),T=w.useRef(s),z=w.useRef(!0);w.useLayoutEffect(()=>{T.current=s});const D=w.useRef(fN()).current,I=w.useCallback(de=>{const re=S.current;if(D||document.hidden||re==null||typeof re.animate!="function"){x(!1),h(!1),p("idle"),de==null||de();return}x(!0);const le=re.animate([{opacity:1,transform:"none"},{opacity:0,transform:"translateY(6px)"}],{duration:240,easing:"cubic-bezier(.4,0,.2,1)",fill:"forwards"});le.onfinish=()=>{x(!1),h(!1),p("idle"),de==null||de()}},[D]);w.useEffect(()=>(R.current!=null&&clearTimeout(R.current),o>0&&m==="idle"?u!==j.current&&!d&&(R.current=setTimeout(()=>{h(!0)},550)):o===0&&d&&!g&&m==="idle"&&I(),()=>{R.current!=null&&clearTimeout(R.current)}),[o,u,d,m,g,I]),w.useLayoutEffect(()=>{if(!d||m!=="idle"||D||g)return;const de=S.current;de!=null&&typeof de.animate=="function"&&!document.hidden&&de.animate([{opacity:.45,transform:"translateY(10px)"},{opacity:1,transform:"none"}],{duration:420,easing:"cubic-bezier(.18,.82,.25,1)"})},[d,m,D,g]),w.useEffect(()=>{if(m!=="applying")return;const de=re=>{re.preventDefault(),re.returnValue=""};return window.addEventListener("beforeunload",de),()=>window.removeEventListener("beforeunload",de)},[m]),w.useEffect(()=>(z.current=!0,()=>{z.current=!1,R.current!=null&&clearTimeout(R.current),C.current!=null&&clearTimeout(C.current)}),[]);const ie=()=>{const de=T.current;k(de.length),p("applying"),(async()=>{try{if(await l(de),!z.current)return;h(!1),p("success"),C.current!=null&&clearTimeout(C.current),C.current=setTimeout(()=>{I(()=>{j.current=null})},1200)}catch{if(!z.current)return;p("error")}})()},ne=()=>{j.current=u,I()};if(!d&&m!=="success"&&!g)return null;const ee=m==="applying",U=ee?b:o,ce=U===1?f.jsxs(f.Fragment,{children:[f.jsx("b",{className:"font-bold text-ink",children:"1"})," change to your property details"]}):f.jsxs(f.Fragment,{children:[f.jsx("b",{className:"font-bold text-ink",children:U})," changes to your property details"]});return f.jsx("div",{className:"pointer-events-none absolute bottom-[10px] left-0 right-0 z-[6]","aria-live":"polite",children:f.jsx("div",{className:"pointer-events-none",ref:S,children:f.jsx("div",{className:"pointer-events-auto relative mx-3 rounded-[calc(11*var(--content))] border border-line bg-canvas px-[calc(13*var(--content))] pb-[calc(12*var(--content))] pt-[calc(11*var(--content))] shadow-[0_8px_22px_-8px_rgba(20,18,13,.26),0_2px_6px_rgba(20,18,13,.08)] data-[done]:border-[#cfe6d4] data-[done]:bg-[#eef6ef]","data-done":m==="success"?"":void 0,children:m==="success"?f.jsxs("div",{className:"flex items-center gap-2 text-body font-semibold text-good",children:[f.jsx("span",{className:"grid flex-shrink-0 place-items-center [animation:we-ub-pop_.34s_cubic-bezier(.2,1.3,.4,1)_both]",children:f.jsx(hN,{})}),"Updated everywhere"]}):m==="error"?f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"flex items-start gap-[calc(9*var(--content))]",children:[f.jsxs("div",{className:"min-w-0 flex-1 text-body leading-[1.4]",children:[f.jsx("div",{className:"font-semibold text-danger",children:"Couldn't update"}),f.jsx("div",{className:"mt-0.5 text-[length:calc(11.5*var(--content))] text-ink-3",children:"Something went wrong. Please try again."})]}),f.jsx("button",{type:"button",className:"-mr-0.5 -mt-0.5 grid h-[calc(20*var(--content))] w-[calc(20*var(--content))] flex-shrink-0 cursor-pointer place-items-center rounded-[calc(5*var(--content))] text-ink-4 transition-[background-color,color] duration-[120ms] hover:bg-[rgba(20,18,13,.06)] hover:text-ink-2",onClick:ne,"aria-label":"Dismiss",children:f.jsx(Z0,{})})]}),f.jsxs("button",{type:"button","data-action":"retry",className:"mt-[calc(10*var(--content))] box-border inline-flex h-[calc(34*var(--content))] w-full cursor-pointer items-center justify-center gap-[calc(6*var(--content))] rounded-[calc(8*var(--content))] bg-accent text-[length:calc(12.5*var(--content))] font-semibold text-white transition-[background-color,transform] duration-[120ms] hover:bg-[#143a2f] active:translate-y-[0.5px]",onClick:ie,children:["Retry ",f.jsx(F0,{})]})]}):f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"flex items-start gap-[calc(9*var(--content))]",children:[f.jsxs("div",{className:"min-w-0 flex-1 text-body leading-[1.4] text-ink-2",children:[ce,f.jsx("div",{className:"mt-0.5 text-[length:calc(11.5*var(--content))] text-ink-3",children:"Update them everywhere these details are used."})]}),f.jsx("button",{type:"button",className:"-mr-0.5 -mt-0.5 grid h-[calc(20*var(--content))] w-[calc(20*var(--content))] flex-shrink-0 cursor-pointer place-items-center rounded-[calc(5*var(--content))] text-ink-4 transition-[background-color,color] duration-[120ms] hover:bg-[rgba(20,18,13,.06)] hover:text-ink-2 disabled:cursor-default disabled:opacity-50",onClick:ne,disabled:ee,"aria-label":"Dismiss",children:f.jsx(Z0,{})})]}),f.jsx("button",{type:"button","data-action":"apply",disabled:ee,className:"mt-[calc(10*var(--content))] box-border inline-flex h-[calc(34*var(--content))] w-full cursor-pointer items-center justify-center gap-[calc(6*var(--content))] rounded-[calc(8*var(--content))] bg-accent text-[length:calc(12.5*var(--content))] font-semibold text-white transition-[background-color,transform] duration-[120ms] hover:bg-[#143a2f] active:translate-y-[0.5px] disabled:cursor-default disabled:hover:bg-accent disabled:active:translate-y-0",onClick:ie,children:ee?f.jsxs(f.Fragment,{children:[f.jsx("span",{className:"inline-block size-[calc(14*var(--content))] animate-spin rounded-full border-2 border-white/40 border-t-white",role:"status","aria-label":"Updating"}),"Updating…"]}):f.jsxs(f.Fragment,{children:["Update everywhere ",f.jsx(F0,{})]})})]})})})})}const pN="Real editor chrome. The playground has no linked sources, so this cannot update anything — the flow above is a preview.",yN="Nothing was updated. In the app this writes the change to every deliverable sharing the linked source.";function gN({items:n}){const[l,s]=w.useState([]),o=n.filter(h=>!l.includes(h.id)),u=l.length>0&&o.length===0,d=w.useCallback(h=>{s(m=>[...m,...h.map(p=>p.id)])},[]);return f.jsxs("div",{className:"instance-panel__we",children:[f.jsx("div",{className:"instance-panel__we-anchor",children:f.jsx(mN,{items:o,onApply:d})}),o.length>0||u?f.jsx("p",{className:"instance-panel__we-caption","data-testid":"we-caption","data-phase":u?"applied":"preview",children:u?yN:pN}):null]})}const bN={apiFetch:SC,cropImage:qC,getCropDerivativeUrl:QC,getFloorplanSourcePage:UC,postLink:HC,stageLibraryItemImage:XC,presignLibraryItemUpload:KC,deleteStagedLibraryItemImage:FC,fetchProperty:ZC};function vN(n,l,s){return w.useMemo(()=>{const o={session:{property_id:n,listing_intent:null},select:u=>{if(u===null){s(null);return}if(u.kind==="section"){s({kind:"section",instanceId:u.instance_id});return}s({kind:"slot",instanceId:u.instance_id,slotId:u.slot_id,...u.item_index!==void 0?{itemIndex:u.item_index}:{}})},markSlotOverridden:()=>{},relinkSlot:()=>{}};return{useEditorStore:u=>u(o),Accordion:F1,AccordionHeader:X1,UnitPlanPicker:nN,capabilities:{upload:!1},api:bN}},[n,l,s])}function P0(n,l){const{selection:s}=n;if((s==null?void 0:s.kind)==="slot"&&!(s.instanceId!==n.instanceId||s.slotId!==l))return s.itemIndex}function J0(n,l){var s;return rN(l,(s=n.payload)==null?void 0:s.provenance,o=>n.override.slots[o]!==void 0)}function Kd(n,l){var o;const s=n.override.slots[l];return s!==void 0?s:(o=n.payload)==null?void 0:o.resolvedProps.slots[l]}function xN(n){var m;const l=vN(n.fixture,n.selection,n.onSelect),s=w.useMemo(()=>new gE,[]),o=n.displayState.variant,u=w.useMemo(()=>Y1(n.sectionSchema,o),[n.sectionSchema,o]),d=w.useMemo(()=>aN(n.override,n.baseline,n.fixture,n.sectionSchema),[n.override,n.baseline,n.fixture,n.sectionSchema]),h=((m=n.selection)==null?void 0:m.kind)==="slot"&&n.selection.instanceId===n.instanceId?n.selection.slotId:null;return f.jsxs("aside",{className:"instance-panel","data-testid":"instance-panel","data-instance-id":n.instanceId,children:[n.settingsOpen?f.jsx(dN,{instanceId:n.instanceId,label:n.label,display:n.display,sectionSchema:n.sectionSchema,variant:o,slotValue:p=>Kd(n,p),onSetVariant:n.onSetVariant,onBack:n.onCloseSettings}):f.jsx(cN,{label:n.label,display:n.display,enabled:n.displayState.enabled,onSetEnabled:n.onSetEnabled,onOpenSettings:n.onOpenSettings}),n.settingsOpen?null:n.renderError?f.jsx("p",{className:"instance-panel__error","data-testid":"render-error",children:n.renderError}):null,n.settingsOpen?null:n.payload===null?f.jsx("p",{className:"instance-panel__empty","data-testid":"panel-loading",children:"Loading…"}):f.jsx(bE,{client:s,children:f.jsx(RE,{api:tN,children:f.jsxs(W3,{ports:l,children:[f.jsx(CE,{getJobStatus:GC}),f.jsxs("div",{className:"instance-panel__dock",children:[f.jsxs("div",{className:"hp-sb-scroll instance-panel__cards","data-testid":"slot-cards","data-dirty":d.length>0?"":void 0,children:[u.map(p=>p.kind==="record"?f.jsxs("section",{"aria-label":p.label,"data-testid":"object-list-card",className:"flex flex-col gap-2.5",children:[f.jsxs("h3",{className:"flex items-center gap-1.5 px-1 text-[length:calc(11.5*var(--content))] font-medium uppercase tracking-[0.04em] text-ink-3",children:[p.Icon?f.jsx(p.Icon,{size:13}):null,p.label,f.jsx("span",{className:"ml-auto",children:f.jsx(Z1,{chips:J0(n,[p.slotId])})})]}),f.jsx("div",{className:"flex flex-col gap-3",children:f.jsx(Of,{slot:p.slot,instanceId:n.instanceId,slotId:p.slotId,value:Kd(n,p.slotId),propertyId:n.fixture,onChange:g=>n.onApplySlot(p.slotId,g),selectedItemIndex:P0(n,p.slotId)})})]},p.key):f.jsx(iN,{chips:J0(n,p.items.map(g=>g.slotId)),children:f.jsx(F1,{open:h!=null&&p.items.some(g=>g.slotId===h),onToggle:()=>h!=null&&p.items.some(g=>g.slotId===h)?n.onSelect({kind:"section",instanceId:n.instanceId}):n.onSelect({kind:"slot",instanceId:n.instanceId,slotId:p.items[0].slotId}),icon:p.Icon?f.jsx(p.Icon,{size:14}):null,title:p.label,scrollKey:p.key,children:f.jsx(bv,{items:p.items.map(({slotId:g,slot:x})=>f.jsx(Of,{slot:x,instanceId:n.instanceId,slotId:g,value:Kd(n,g),propertyId:n.fixture,onChange:b=>n.onApplySlot(g,b),selectedItemIndex:P0(n,g)},g)),rows:p.rows})})},p.key)),u.length===0?f.jsx("p",{className:"instance-panel__empty","data-testid":"no-editable-slots",children:"Nothing to edit in this section."}):null]}),f.jsx(gN,{items:d})]})]})})})]})}function wN(n,l){return n.find(s=>s.pages.includes(l))??null}function _N(n,l,s,o){const u=l.endsWith("/")?l:`${l}/`;if(!n.startsWith(u))return null;const d=n.indexOf("#"),h=d===-1?null:n.slice(d+1),m=(d===-1?n:n.slice(0,d)).slice(u.length).split("/").filter(Boolean),[p,g,x,b,...k]=m;if(p!=="fixtures"||g===void 0||x!=="live"||k.length>0)return null;const S=b===void 0?"/":`/${decodeURIComponent(b)}`,R=s.find(j=>j.path===S);if(!R)return null;const C=wN(o,R.id);return C?{pageId:R.id,canvasId:C.id,anchor:h||null}:null}const Xd="box-border inline-flex h-10 w-full items-center justify-center gap-1.75 rounded-lg border text-center text-[length:calc(13.5*var(--content))] font-semibold tracking-[-0.005em]",SN="group cursor-pointer border-line bg-canvas text-ink transition-[background-color,border-color,box-shadow,color,transform] hover:border-[var(--color-ink-4)] hover:bg-[#fafaf8] active:translate-y-[0.5px]",kN="cursor-pointer border-honey-2 bg-honey text-honey-ink transition-[background-color,border-color,box-shadow,color,transform] hover:bg-honey-2 hover:shadow-[0_2px_6px_rgba(40,44,50,0.12)] active:translate-y-[0.5px]",EN="cursor-not-allowed border-line bg-[#f3f1ea] text-ink-4";function jN({host:n,templateName:l,fixture:s,output:o,format:u,canvas:d,pagePath:h}){const m=o==="website"?{href:n.liveHref(s,h??"/"),title:`Open this page as it would publish — ${l}`}:null,p=o==="image"?{href:n.captureHref("bundle",{fixture:s,format:u,canvas:d}),title:`Download every page of this canvas as a zip — ${l}`}:o==="document"?{href:n.captureHref("print",{fixture:s,format:u}),title:`Download the PDF — ${l}`}:null;return f.jsx("footer",{className:"flex-shrink-0 border-t border-line-soft bg-canvas p-3","data-testid":"panel-footer",children:f.jsxs("div",{className:p&&!m?"w-full":"grid w-full grid-cols-2 gap-2",children:[m?f.jsxs("a",{href:m.href,target:"_blank",rel:"noopener noreferrer","data-testid":"view-live",title:m.title,className:`${Xd} ${SN}`,children:[f.jsx("span",{className:"grid place-items-center text-ink-3 transition-colors group-hover:text-ink",children:f.jsx(Zl,{name:"external",size:12,stroke:1.6})}),f.jsx("span",{"data-testid":"view-live-label",children:"View live"})]}):null,p?f.jsxs("a",{href:p.href,"data-testid":"download",title:p.title,className:`${Xd} ${kN}`,children:[f.jsx(dk,{size:14,className:"h-[calc(14*var(--content))] w-[calc(14*var(--content))]"}),f.jsx("span",{"data-testid":"download-label",children:"Download fixture render"})]}):f.jsx("button",{type:"button",disabled:!0,"data-testid":"publish",title:"Publishing needs a property and a deliverable — preview publish states in the application",className:`${Xd} ${EN}`,children:f.jsx("span",{children:"Publish"})})]})})}function MN(n,l,s,o){const u=n.ownerDocument,d=[],h=new Map;for(const m of Array.from(n.children)){const p=m,g=p.getAttribute(mc);g&&h.set(g,p)}for(const m of l){const p=h.get(m.instance_id),g=(p==null?void 0:p.dataset.svId)!==m.section_version_id;p&&g&&(o==null||o(p),p.remove());const x=p&&!g,b=x?p:s(m,u);x||d.push(b),n.appendChild(b),h.delete(m.instance_id)}return h.forEach(m=>{o==null||o(m),m.remove()}),d}function J1(n){return n==null?void 0:n.__trCanvasIslands}function AN(n,l,s,o){const u=n==null?void 0:n.querySelector(`[${mc}="${s}"]`);if(!u)return!1;const d=u.querySelector(":scope > .we-section-body")??u,h=J1(l);return h==null||h.unmountRoot(u),d.innerHTML=o,h==null||h.hydrateRoot(u),!0}function CN(){return{slots:{}}}function Bn(n,l,s){var o;return((o=n[l])==null?void 0:o[s])??CN()}function xh(n,l,s,o){return{...n,[l]:{...n[l],[s]:o}}}function NN(n,l,s,o,u){const d=Bn(n,l,s);return xh(n,l,s,{...d,slots:{...d.slots,[o]:u}})}function TN(n,l,s,o){return xh(n,l,s,{...Bn(n,l,s),enabled:o})}function ON(n,l,s,o){return xh(n,l,s,{...Bn(n,l,s),variant:o})}function RN(n,l){const s=n.enabled??(l==null?void 0:l.enabled)??!0,o=n.variant??(l==null?void 0:l.variant);return o===void 0?{enabled:s}:{enabled:s,variant:o}}function zN(n){return Object.keys(n.slots).length===0?{}:{slots:n.slots}}function DN(n,l){const s={};for(const[o,u]of Object.entries(n[l]??{}))u.enabled===void 0&&u.variant===void 0||(s[o]={...u.enabled===void 0?{}:{enabled:u.enabled},...u.variant===void 0?{}:{variant:u.variant}});return s}function UN(n,l){return Object.keys(n).filter(s=>l[s]!==n[s])}function W0(n,l){if(!l.some(o=>o in n))return n;const s={...n};for(const o of l)delete s[o];return s}function eb(n,l,s,o){return{...n,[l]:{...n[l],[s]:o}}}function LN(n,l,s){const o=n[l];if(!o||!(s in o))return n;const u={...o};return delete u[s],{...n,[l]:u}}function BN(n){const{host:l,fixture:s,doc:o,resolvedDisplay:u,sessions:d,pages:h,frameFor:m}=n,{edits:p,baselines:g,setEdits:x,setBaseline:b}=d,[k,S]=w.useState({}),[R,C]=w.useState({}),j=[s,o??"",...h.map(Z=>Z.id)].join("\0"),[T,z]=w.useState(j);T!==j&&(z(j),S({}),C({}));const D=w.useRef(k);D.current=k;const I=w.useRef(m);I.current=m;const ie=w.useRef(h);ie.current=h;const ne=w.useRef(p);ne.current=p;const ee=w.useRef(s);ee.current=s;const U=w.useRef(o);U.current=o;const ce=w.useRef(new Map),de=w.useCallback(Z=>Bn(p,s,Z),[p,s]),re=w.useCallback(Z=>RN(Bn(p,s,Z),u==null?void 0:u[Z]),[p,s,u]),le=w.useCallback((Z,N)=>{var P;return((P=R[Z])==null?void 0:P[N])??null},[R]),B=w.useCallback(Z=>{var N;for(const P of h){const X=(N=R[P.id])==null?void 0:N[Z];if(X!==void 0)return X}return null},[R,h]),H=w.useCallback(Z=>{var N;for(const P of h){const X=(N=k[P.id])==null?void 0:N[Z];if(X)return X}return null},[k,h]),K=w.useCallback(Z=>{var N;return((N=g[s])==null?void 0:N[Z])??null},[g,s]),_=w.useCallback(async(Z,N,P,X)=>{const F=Z.id,pe=ee.current,ge=U.current,Ee=`${F}\0${N}`,Re=(ce.current.get(Ee)??0)+1;ce.current.set(Ee,Re);const Ue=()=>pe!==ee.current||ge!==U.current||ce.current.get(Ee)!==Re;try{const nt=await l.render({page:F,instance:N,fixture:pe,session:zN(P),display:DN(ne.current,pe)});if(Ue()||(S(hn=>eb(hn,F,N,nt)),Object.keys(P.slots).length===0&&P.variant===void 0&&b(pe,N,{fixtureId:pe,slots:nt.resolvedProps.slots}),C(hn=>LN(hn,F,N)),!X))return;const{doc:Ye,win:Te}=I.current(F);AN(Ye,Te,N,nt.html)}catch(nt){if(Ue())return;const Ye=nt instanceof Error?nt.message:String(nt);C(Te=>eb(Te,F,N,Ye))}},[l,b]),Y=w.useCallback((Z,N)=>{var X;if((X=D.current[Z])!=null&&X[N])return;const P=ie.current.find(F=>F.id===Z);P&&_(P,N,Bn(ne.current,ee.current,N),!1)},[_]),q=w.useCallback((Z,N)=>{var P;for(const X of ie.current)((P=D.current[X.id])==null?void 0:P[Z])!==void 0&&_(X,Z,N,!0)},[_]),ue=w.useCallback(Z=>{q(Z,Bn(ne.current,ee.current,Z))},[q]),W=w.useCallback((Z,N,P)=>{const X=NN(ne.current,ee.current,Z,N,P);ne.current=X,x(X),q(Z,Bn(X,ee.current,Z))},[q,x]),M=w.useCallback((Z,N)=>{const P=TN(ne.current,ee.current,Z,N);ne.current=P,x(P);for(const X of ie.current)for(const F of Object.keys(D.current[X.id]??{}))_(X,F,Bn(P,ee.current,F),!0)},[_,x]),G=w.useCallback((Z,N)=>{const P=ON(ne.current,ee.current,Z,N);ne.current=P,x(P),q(Z,Bn(P,ee.current,Z))},[q,x]);return w.useMemo(()=>({overrideFor:de,displayFor:re,payloads:k,errorOn:le,errorFor:B,payloadFor:H,baselineFor:K,ensureLoaded:Y,reload:ue,applySlot:W,setEnabled:M,setVariant:G}),[de,re,k,le,B,H,K,Y,ue,W,M,G])}const HN={slots:{},slot_order:[]},qN={required:!1,variant:null},GN=[];function tb(n){return n?n.kind==="section"?{kind:"section",instance_id:n.instanceId}:{kind:"slot",instance_id:n.instanceId,slot_id:n.slotId,...n.itemIndex!==void 0?{item_index:n.itemIndex}:{}}:null}function QN(n){return n.kind==="section"?{kind:"section",instanceId:n.instance_id}:{kind:"slot",instanceId:n.instance_id,slotId:n.slot_id,...n.item_index!==void 0?{itemIndex:n.item_index}:{}}}function IN(n,l){if(!n)return[];const s=[];for(const o of n.pages){const u=l.find(d=>d.id===o);u&&s.push(u)}return s}function Xr(n,l,s,o){var p;const u=((p=l.doc)==null?void 0:p.getElementById(n))??null;if(!u||!s)return;const d=u.getBoundingClientRect(),h=__({top:d.top,height:d.height},l.wrapper.offsetTop,o,s.scrollTop),m=w_(h,s.clientHeight,s.scrollTop,x_);m!==null&&s.scrollTo({top:m,behavior:"smooth"})}function nb(n,l){return n.querySelector(`[${mc}="${Kl(l)}"]`)}function Ln(n){const l=JSON.stringify(n);return w.useMemo(()=>n,[l])}function VN(n){var jo,va,zt;const{host:l,catalog:s,view:o,onViewChange:u,sessions:d}=n,h=w.useRef(null),m=w.useRef([]),[p,g]=w.useState({}),[x,b]=w.useState(1),[k,S]=w.useState(0),[R,C]=w.useState(!1),[j,T]=w.useState(null),z=o.fixture,D=s.fixtures.find(te=>te.id===z),I=D==null?void 0:D.doc,ie=D==null?void 0:D.display,[ne,ee]=w.useState(null),U=w.useCallback(te=>{ee(null),u(te)},[u]);w.useEffect(()=>{fC(z)},[z]);const ce=w.useMemo(()=>new URL(l.base).pathname,[l.base]),de=Ln(s.template.pages),re=Ln(s.template.canvases),le=Ln(s.islands.map),B=Ln(s.stylesheets),H=s.islands.hostScript,K=Ln(s.islands.importMap),_=Ln(Object.fromEntries(s.template.instances.map(te=>[te.instanceId,te.sectionSchema]))),Y=Ln(Object.fromEntries(s.template.instances.map(te=>[te.instanceId,te.section]))),q=Ln(s.template.instances),ue=s.template.output,W=ue!=="website",M=W?s.template.formats:[],G=Ln(W?M.find(te=>te.id===o.format)??M[0]??null:null),Z=G===null?null:G.bleed,N=w.useMemo(()=>G?{formatId:G.id,width:G.cssWidth,height:G.cssHeight,tokens:G.tokens}:void 0,[G]),P=re.find(te=>te.id===o.canvasId)??(o.canvasId===null?re[0]??null:null),X=re.length>0&&P===null,F=w.useMemo(()=>P?IN(P,de):GN,[P,de]),pe=w.useMemo(()=>F.map(te=>({id:te.id})),[F]),ge={basePath:ce,stylesheets:B,cssRev:String(k),islands:le,hostScript:H,importMap:K},Ee=w.useMemo(()=>Dg(I0({...ge,sectionSchemaByInstance:_,...N?{pageBox:N}:{}})),[ce,B,k,le,H,K,_,N]),Re=w.useMemo(()=>Dg(I0({...ge,...N?{pageBox:N}:{}})).srcdoc(),[ce,B,k,le,H,K,N]),[Ue,nt]=w.useState(Re);Ue!==Re&&(nt(Re),g({}));const Ye=w.useCallback(te=>{const he=m.current.find(_e=>_e.key===te);return{doc:(he==null?void 0:he.doc)??null,win:(he==null?void 0:he.iframe.contentWindow)??null}},[]),Te=BN({host:l,fixture:z,doc:I,resolvedDisplay:ie,sessions:d,pages:pe,frameFor:Ye}),hn=Ln(q.map(te=>te.instanceId).filter(te=>!Te.displayFor(te).enabled)),[So,ko]=w.useState(null),ei=w.useRef(o.selection);ei.current=o.selection;const ti=w.useRef(Te);ti.current=Te;const ni=w.useRef(F);ni.current=F;const ul=w.useRef(x);ul.current=x;const Tn=w.useMemo(()=>F.map(te=>({key:te.id,srcdoc:Re,label:te.label,title:`Canvas preview — ${te.label}`,...N?{pageBox:N}:{}})),[F,Re,N]);w.useEffect(()=>{const te=h.current;if(!te)return;const he=g_(te,Tn);m.current=he;const _e=he.map(Me=>{const Be=()=>{Ww(Me.doc)&&g(Ne=>({...Ne,[Me.key]:!0}))};return Me.iframe.addEventListener("load",Be),()=>Me.iframe.removeEventListener("load",Be)});return()=>{for(const Me of _e)Me()}},[Tn]),w.useEffect(()=>{for(const te of m.current)v_(te.overlay,R?Z:null)},[R,Z,Tn]),w.useEffect(()=>{const te=h.current;if(!te||typeof ResizeObserver>"u")return;const he=new ResizeObserver(_e=>{var Ne;const Me=(Ne=_e[0])==null?void 0:Ne.contentRect;if(!(Me!=null&&Me.width))return;const Be=qw(Me.width);b(Qw(Be,{availableWidthPx:Me.width,availableHeightPx:Me.height},N?{width:N.width,height:N.height}:void 0))});return he.observe(te),()=>he.disconnect()},[N]),w.useEffect(()=>{var te;(te=h.current)==null||te.style.setProperty("--we-scale",String(x))},[x]),w.useEffect(()=>{var he;if(N)return;const te=[];for(const _e of m.current){if(!p[_e.key])continue;const Me=(he=_e.doc)==null?void 0:he.getElementById("we-page");if(!Me)continue;const Be=()=>_e.setPageHeight(Me.getBoundingClientRect().height);if(Be(),typeof ResizeObserver>"u")continue;const Ne=new ResizeObserver(Be);Ne.observe(Me),te.push(()=>Ne.disconnect())}return()=>{for(const _e of te)_e()}},[p,Tn,N]),w.useEffect(()=>{const te=So;if(!te)return;const he=()=>{document.documentElement.style.setProperty("--we-panel-w",`${te.offsetWidth}px`)};he();const _e=typeof ResizeObserver<"u"?new ResizeObserver(he):null;return _e==null||_e.observe(te),()=>{_e==null||_e.disconnect(),document.documentElement.style.removeProperty("--we-panel-w")}},[So]),w.useEffect(()=>{for(const te of F)for(const he of te.instanceIds)Te.ensureLoaded(te.id,he)},[F,Te.ensureLoaded,z,I]);const ot=w.useMemo(()=>{const te={};for(const he of F){const _e=Te.payloads[he.id]??{};te[he.id]=he.instanceIds.filter(Me=>_e[Me]??Te.errorOn(he.id,Me)).map(Me=>{var Ne,mt;const Be=Te.errorOn(he.id,Me);return{instance_id:Me,section_version_id:z,section_key:Y[Me]??Me,section_display_name:((Ne=q.find(pt=>pt.instanceId===Me))==null?void 0:Ne.label)??null,html:((mt=_e[Me])==null?void 0:mt.html)??null,render_error:Be?{code:"render_failed",message:Be}:null}})}return te},[F,Te.payloads,Te.errorOn,Y,q,z]);w.useEffect(()=>{let te=!1;for(const he of m.current){if(!p[he.key])continue;const _e=he.doc,Me=he.iframe.contentWindow,Be=_e==null?void 0:_e.getElementById("we-page");if(!Be)continue;const Ne=J1(Me),mt=MN(Be,ot[he.key]??[],(pt,ct)=>Ee.buildSectionWrapper(pt,ct),pt=>Ne==null?void 0:Ne.unmountRoot(pt));mt.length>0&&!Ne&&!te&&Object.keys(le).length>0&&(te=!0,console.warn("playground: no island host on a canvas frame, so nothing will hydrate and sections stay static. Expected window.__trCanvasIslands from the canvas island host script."));for(const pt of mt)Ne==null||Ne.hydrateRoot(pt).catch(ct=>{console.error("playground: canvas hydration pass failed:",ct)})}},[p,Tn,ot,Ee,le]);const Eo=w.useRef(()=>{});Eo.current=te=>{Te.setEnabled(te,!0),U({...o,selection:{kind:"section",instanceId:te}})},w.useEffect(()=>{var _e;const te=new Set(hn),he=[];for(const Me of m.current){if(!p[Me.key])continue;const Be=Me.doc;if(!Be)continue;const Ne=ot[Me.key]??[];for(const Lt of Ne)(_e=nb(Be,Lt.instance_id))==null||_e.setAttribute("data-hidden",te.has(Lt.instance_id)?"true":"false");const mt=Ne.filter(Lt=>te.has(Lt.instance_id)).map(Lt=>({instanceId:Lt.instance_id,label:Zd(Lt)})),pt=o_(Me.tabLayer,document,mt,Lt=>Eo.current(Lt)),ct=()=>r_(pt,Lt=>nb(Be,Lt),x);ct();const Dt=Be.getElementById("we-page");if(!Dt||typeof ResizeObserver>"u")continue;const Ut=new ResizeObserver(ct);Ut.observe(Dt),he.push(()=>Ut.disconnect())}return()=>{for(const Me of he)Me()}},[p,Tn,ot,hn,x]);const us=w.useCallback(()=>{const te=m.current,he=ei.current,_e=tb(he);for(const Ne of te)Ne.doc&&Ee.setLiveOwner(Ne.doc,_e);const Me=b_(te,Ee,_e),Be=he!==null&&hn.includes(he.instanceId);for(const Ne of te){const mt=Ne.overlay.querySelector(".we-chrome-label"),pt=he&&!Be?Me.find(ct=>ct.handle.key===Ne.key):void 0;if(!pt||!he){Cg(Ne.overlay,[],Rd),Fd(mt);continue}if(Cg(Ne.overlay,pt.els,Rd,he.kind),he.kind==="section"){const ct=(ot[Ne.key]??[]).find(Dt=>Dt.instance_id===he.instanceId);Tw(mt,pt.els[0]??null,ct?Zd(ct):"")}else Fd(mt)}},[Ee,ot,hn]);w.useEffect(()=>{us();for(const te of m.current){if(!p[te.key])continue;const he=te.doc,_e=te.iframe.contentWindow;he&&_e&&j_(_e,he,tb(o.selection))}},[p,Tn,o.selection,us]);const ai=w.useCallback((te,he)=>{const _e=te.getAttribute("href")??"";if(!_e||_e==="#")return;const Me=h.current;if(_e.startsWith("#")){Xr(_e.slice(1),he,Me,ul.current);return}const Be=_N(_e,ce,de,re);if(!Be){window.open(_e,"_blank","noopener,noreferrer");return}if(P!==null&&Be.canvasId===P.id){const Ne=m.current.find(mt=>mt.key===Be.pageId);if(!Ne)return;Be.anchor?Xr(Be.anchor,Ne,Me,ul.current):Ne!==he&&Xr("we-page",Ne,Me,ul.current);return}U({...o,canvasId:Be.canvasId,selection:null}),Be.anchor&&T({pageId:Be.pageId,anchor:Be.anchor})},[o,U,ce,de,re,P]);w.useEffect(()=>{var he;if(!j||!p[j.pageId])return;const te=m.current.find(_e=>_e.key===j.pageId);(he=te==null?void 0:te.doc)!=null&&he.getElementById(j.anchor)&&(Xr(j.anchor,te,h.current,ul.current),T(null))},[j,p,ot]),w.useEffect(()=>{const te=[];for(const he of m.current){if(!p[he.key])continue;const _e=he.doc;if(!_e)continue;const Me=ot[he.key]??[],Be=he.overlay.querySelector(".we-chrome-ring--hover"),Ne=Dt=>{var xa;const Ut=Dt.target,Lt=Ee.resolveTarget(Ut,Me);Fr(Be);const En=Lt?QN(Lt.selection):null,hl=((xa=Ut.closest)==null?void 0:xa.call(Ut,"a"))??null;if(hl){if(Dt.preventDefault(),(En==null?void 0:En.kind)==="slot"){const wa=o.selection,Mo=(wa==null?void 0:wa.kind)==="slot"&&wa.instanceId===En.instanceId&&wa.slotId===En.slotId&&wa.itemIndex===En.itemIndex;U({...o,selection:En}),Mo&&ai(hl,he);return}ai(hl,he);return}U({...o,selection:En})},mt=Dt=>{const Ut=Ee.resolveTarget(Dt.target,Me);Ut?vb(Be,Ut.element,Rd):Fr(Be)},pt=()=>Fr(Be),ct=Dt=>{Dt.key==="Escape"&&U({...o,selection:null})};_e.body.addEventListener("click",Ne),_e.body.addEventListener("mouseover",mt),_e.body.addEventListener("mouseleave",pt),_e.body.addEventListener("keydown",ct),te.push(()=>{_e.body.removeEventListener("click",Ne),_e.body.removeEventListener("mouseover",mt),_e.body.removeEventListener("mouseleave",pt),_e.body.removeEventListener("keydown",ct)})}return()=>{for(const he of te)he()}},[p,Tn,Ee,ot,o,U,ai]);const dl=s.capabilities.hmr;w.useEffect(()=>{if(!dl)return;const te=()=>{const he=new Set;for(const _e of ni.current)for(const Me of _e.instanceIds)he.has(Me)||(he.add(Me),ti.current.reload(Me))};return l.subscribe({source:te,stylesheet:()=>S(he=>he+1)})},[l,dl]);const li=o.selection,it=(li==null?void 0:li.instanceId)??null,fl=F.find(te=>it!==null&&te.instanceIds.includes(it))??F[0]??null;return w.useEffect(()=>{it&&fl&&Te.ensureLoaded(fl.id,it)},[it,fl==null?void 0:fl.id,Te.ensureLoaded]),X?f.jsxs("div",{className:"boot-error",children:['The template declares no canvas "',o.canvasId,'".',`
1100
+ `,"Declared canvases: ",re.map(te=>te.id).join(", ")]}):f.jsxs("div",{className:"canvas-mirror",children:[f.jsx("style",{children:d_}),re.length>1?f.jsx("div",{className:"canvas-bar",children:f.jsx("nav",{className:"canvas-bar__card","aria-label":"Canvases",children:re.map(te=>f.jsx("button",{type:"button",className:te.id===(P==null?void 0:P.id)?"canvas-bar__tab is-current":"canvas-bar__tab","aria-current":te.id===(P==null?void 0:P.id)?"page":void 0,onClick:()=>U({...o,canvasId:te.id,selection:null}),children:te.label},te.id))})}):null,f.jsx("div",{className:"we-canvas-stage canvas-mirror__stage",ref:h,onClick:te=>{var _e;const he=te.target;(he===h.current||(_e=he.classList)!=null&&_e.contains(Wr))&&U({...o,selection:null})}}),f.jsxs("div",{className:"canvas-mirror__sidebar",ref:ko,children:[f.jsxs("div",{className:"sidebar-template",children:[f.jsx("div",{className:"sidebar-template__name","data-testid":"template-name",children:s.template.name}),f.jsxs("label",{className:"sidebar-template__field",children:["Fixture",f.jsx("select",{"data-testid":"fixture-picker",value:z,onChange:te=>U({...o,fixture:te.target.value,selection:null}),children:yC(s.fixtures).map(te=>{const he=te.fixtures.map(_e=>f.jsx("option",{value:_e.id,children:pC(_e)},_e.id));return te.label===null?f.jsx(w.Fragment,{children:he},""):f.jsx("optgroup",{label:te.label,children:he},te.label)})})]}),W&&G?f.jsxs("label",{className:"sidebar-template__field",children:["Format",f.jsx("select",{"data-testid":"format-switcher",value:G.id,onChange:te=>u({...o,format:te.target.value}),children:M.map(te=>f.jsx("option",{value:te.id,children:`${te.id} — ${te.pixelWidth}×${te.pixelHeight}px${te.physical?` (${te.physical})`:""}`},te.id))})]}):null,W&&G?f.jsxs("label",{className:"sidebar-template__toggle",children:[f.jsx("input",{type:"checkbox","data-testid":"guides-toggle",checked:R,onChange:te=>C(te.target.checked)}),"Trim & bleed guides"]}):null]}),it?f.jsx(xN,{instanceId:it,label:((jo=q.find(te=>te.instanceId===it))==null?void 0:jo.label)??it,display:((va=q.find(te=>te.instanceId===it))==null?void 0:va.display)??qN,displayState:Te.displayFor(it),settingsOpen:ne===it,onSetEnabled:te=>Te.setEnabled(it,te),onSetVariant:te=>Te.setVariant(it,te),onOpenSettings:()=>ee(it),onCloseSettings:()=>ee(null),fixture:z,sectionSchema:_[it]??HN,override:Te.overrideFor(it),payload:Te.payloadFor(it),baseline:Te.baselineFor(it),renderError:Te.errorFor(it),selection:li,onSelect:te=>U({...o,selection:te}),onApplySlot:(te,he)=>Te.applySlot(it,te,he)}):f.jsx(oC,{}),s.capabilities.capture||ue==="website"?f.jsx(jN,{host:l,templateName:s.template.name,fixture:z,output:ue,format:(G==null?void 0:G.id)??null,canvas:(P==null?void 0:P.id)??null,pagePath:((zt=F[0])==null?void 0:zt.path)??null}):null]})]})}function YN(n){const[l,s]=w.useState({}),[o,u]=w.useState({}),[d,h]=w.useState(n);if(n!==null&&n!==d){const g=d===null?[]:UN(d,n);h(n),g.length>0&&(s(x=>W0(x,g)),u(x=>W0(x,g)))}const m=w.useCallback(g=>s(g),[]),p=w.useCallback((g,x,b)=>{u(k=>({...k,[g]:{...k[g],[x]:b}}))},[]);return w.useMemo(()=>({edits:l,baselines:o,setEdits:m,setBaseline:p}),[l,o,m,p])}function ab(n){const l=kw(window.location.pathname,n.base);return l===null?null:Ew(l,window.location.search)}function $N({host:n}){const[l,s]=w.useState(null),[o,u]=w.useState(null),[d,h]=w.useState(0),[m,p]=w.useState(()=>ab(n)),g=w.useMemo(()=>l===null||l.error!==void 0?null:Object.fromEntries(l.fixtures.map(S=>[S.id,S.doc])),[l]),x=YN(g);w.useEffect(()=>{let S=!0;return n.catalog().then(R=>{S&&(s(R),u(null))},R=>{S&&u(R instanceof Error?R.message:String(R))}),()=>{S=!1}},[n,d]);const b=(l==null?void 0:l.capabilities.hmr)===!0;w.useEffect(()=>{if(!b)return;const S=()=>h(R=>R+1);return n.subscribe({source:S,fixtures:S})},[n,b]),w.useEffect(()=>{const S=()=>p(ab(n));return window.addEventListener("popstate",S),()=>window.removeEventListener("popstate",S)},[n]),w.useEffect(()=>{if(m!==null||l===null)return;const S=jw(l);S!==null&&(window.history.replaceState({},"",new URL(jg(S),n.base).href),p(S))},[m,l,n]);const k=w.useCallback(S=>{window.history.replaceState({},"",new URL(jg(S),n.base).href),p(S)},[n]);return o?f.jsxs("div",{className:"boot-error",children:["The playground could not load its catalog — ",o,`
1101
+ `,"Is the server still starting? Try refreshing."]}):l?l.error!==void 0?f.jsx("div",{className:"boot-error","data-testid":"catalog-error",children:l.error}):l.fixtures.length===0?f.jsx("div",{className:"empty","data-testid":"no-fixtures",children:"No fixtures to render under. Export a defineFixture() value from a module under fixtures/."}):m?l.fixtures.some(S=>S.id===m.fixture)?f.jsx(VN,{host:n,catalog:l,view:m,onViewChange:k,sessions:x}):f.jsxs("div",{className:"boot-error","data-testid":"unknown-fixture",children:['There is no fixture "',m.fixture,'" (have: ',l.fixtures.filter(S=>S.group==="fixtures").map(S=>S.id).join(", "),")."]}):f.jsx("div",{className:"empty",children:"loading canvas…"}):f.jsx("div",{className:"empty",children:"loading…"})}const W1=document.getElementById("root");if(!W1)throw new Error("playground: #root missing from index.html");const ex=cC(document.baseURI);uC(ex);ww.createRoot(W1).render(f.jsx(w.StrictMode,{children:f.jsx($N,{host:ex})}));