@beamimpact/web-sdk 1.38.1 → 1.39.1

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 (228) hide show
  1. package/dist/chunks/_share-dialog-dependencies-45VkuwV_.esm.js +2 -0
  2. package/dist/chunks/_share-dialog-dependencies-45VkuwV_.esm.js.map +1 -0
  3. package/dist/chunks/_share-dialog-dependencies-zjR-bLve.esm.js +2 -0
  4. package/dist/chunks/_share-dialog-dependencies-zjR-bLve.esm.js.map +1 -0
  5. package/dist/chunks/{cart-contents-dKdDg09p.esm.d.ts → cart-contents-3-9fB-7m.esm.d.ts} +1 -1
  6. package/dist/chunks/{css-card-grid-inRnKSWs.esm.js → css-card-grid-7tObtoJx.esm.js} +2 -2
  7. package/dist/chunks/{css-card-grid-inRnKSWs.esm.js.map → css-card-grid-7tObtoJx.esm.js.map} +1 -1
  8. package/dist/chunks/{events-zF9NDtBD.esm.d.ts → events-7W7i4aV5.esm.d.ts} +1 -1
  9. package/dist/chunks/index-07spDV_A.esm.js +2 -0
  10. package/dist/chunks/index-07spDV_A.esm.js.map +1 -0
  11. package/dist/chunks/{index-tqTROh5B.esm.d.ts → index-HBDtoJlQ.esm.d.ts} +1 -1
  12. package/dist/chunks/{index-oLz4lmx2.esm.d.ts → index-Hb-jziQs.esm.d.ts} +3 -1
  13. package/dist/chunks/{index-UCh8HjVN.esm.js → index-IO0Z_buU.esm.js} +2 -2
  14. package/dist/chunks/{index-UCh8HjVN.esm.js.map → index-IO0Z_buU.esm.js.map} +1 -1
  15. package/dist/chunks/index-NF6VKqmo.esm.js +2 -0
  16. package/dist/chunks/index-NF6VKqmo.esm.js.map +1 -0
  17. package/dist/chunks/{index-6iInzwnG.esm.js → index-Q1vx4WtG.esm.js} +2 -2
  18. package/dist/chunks/{index-6iInzwnG.esm.js.map → index-Q1vx4WtG.esm.js.map} +1 -1
  19. package/dist/chunks/{index-EjqeU7Mu.esm.d.ts → index-SxFKifVJ.esm.d.ts} +1 -1
  20. package/dist/chunks/index-TD6ZYob2.esm.js +2 -0
  21. package/dist/chunks/index-TD6ZYob2.esm.js.map +1 -0
  22. package/dist/chunks/{index-cRyQ6D5G.esm.d.ts → index-TOzSFOvI.esm.d.ts} +1 -1
  23. package/dist/chunks/index-V-BsPYtl.esm.js +2 -0
  24. package/dist/chunks/index-V-BsPYtl.esm.js.map +1 -0
  25. package/dist/chunks/{index-dDBsHD_s.esm.d.ts → index-YwDVLm67.esm.d.ts} +1 -1
  26. package/dist/chunks/{index-Tnwxn22c.esm.d.ts → index-Zk634mW7.esm.d.ts} +4 -4
  27. package/dist/chunks/{index-iYxrQMxt.esm.d.ts → index-b-AHDeDB.esm.d.ts} +1 -1
  28. package/dist/chunks/index-b9nIxcaS.esm.js +2 -0
  29. package/dist/chunks/index-b9nIxcaS.esm.js.map +1 -0
  30. package/dist/chunks/index-cekgAcEE.esm.js +2 -0
  31. package/dist/chunks/index-cekgAcEE.esm.js.map +1 -0
  32. package/dist/chunks/index-i1kXw_4Z.esm.js +2 -0
  33. package/dist/chunks/index-i1kXw_4Z.esm.js.map +1 -0
  34. package/dist/chunks/index-qFEb98cw.esm.js +2 -0
  35. package/dist/chunks/index-qFEb98cw.esm.js.map +1 -0
  36. package/dist/chunks/{index-l7Ao8g5B.esm.js → index-uCfdsWtt.esm.js} +2 -2
  37. package/dist/chunks/{index-l7Ao8g5B.esm.js.map → index-uCfdsWtt.esm.js.map} +1 -1
  38. package/dist/chunks/{index-_WQFoMIz.esm.js → index-wrvDFuaS.esm.js} +2 -2
  39. package/dist/chunks/{index-_WQFoMIz.esm.js.map → index-wrvDFuaS.esm.js.map} +1 -1
  40. package/dist/chunks/{lit-HCWbxxT7.esm.js → lit-qtGbjGnK.esm.js} +2 -2
  41. package/dist/chunks/{lit-HCWbxxT7.esm.js.map → lit-qtGbjGnK.esm.js.map} +1 -1
  42. package/dist/chunks/loading-template-Av0IUyKF.esm.js +2 -0
  43. package/dist/chunks/loading-template-Av0IUyKF.esm.js.map +1 -0
  44. package/dist/chunks/localize-F31ae3j6.esm.js +30 -0
  45. package/dist/chunks/localize-F31ae3j6.esm.js.map +1 -0
  46. package/dist/chunks/localize-fH8KOrMi.esm.js +30 -0
  47. package/dist/chunks/localize-fH8KOrMi.esm.js.map +1 -0
  48. package/dist/chunks/{openapi-spec-fxMWpEwU.esm.d.ts → openapi-spec--MzXvfCC.esm.d.ts} +139 -10
  49. package/dist/chunks/{order-page-AezeN9KY.esm.d.ts → order-page-DPx5SUKM.esm.d.ts} +2 -2
  50. package/dist/chunks/{order-page-5VQO1Sil.esm.js → order-page-DTWyo57K.esm.js} +2 -2
  51. package/dist/chunks/{order-page-5VQO1Sil.esm.js.map → order-page-DTWyo57K.esm.js.map} +1 -1
  52. package/dist/chunks/{order-page-E7Kyu1JP.esm.js → order-page-r0Bn2_wR.esm.js} +2 -2
  53. package/dist/chunks/{order-page-E7Kyu1JP.esm.js.map → order-page-r0Bn2_wR.esm.js.map} +1 -1
  54. package/dist/chunks/{progress-bar-9vfd2JYm.esm.js → progress-bar-Sn2QspHy.esm.js} +2 -2
  55. package/dist/chunks/{progress-bar-9vfd2JYm.esm.js.map → progress-bar-Sn2QspHy.esm.js.map} +1 -1
  56. package/dist/chunks/{promo-pill-label-vCWNyiaj.esm.js → promo-pill-label-j0A8qZ0c.esm.js} +2 -2
  57. package/dist/chunks/{promo-pill-label-vCWNyiaj.esm.js.map → promo-pill-label-j0A8qZ0c.esm.js.map} +1 -1
  58. package/dist/chunks/{responsive-Bzkkpj11.esm.js → responsive-aWj_7ZN_.esm.js} +2 -2
  59. package/dist/chunks/responsive-aWj_7ZN_.esm.js.map +1 -0
  60. package/dist/chunks/routes-eEIGOCLH.esm.js +2 -0
  61. package/dist/chunks/{routes-UBDDazXd.esm.js.map → routes-eEIGOCLH.esm.js.map} +1 -1
  62. package/dist/chunks/routes-mFdr3VNw.esm.js +2 -0
  63. package/dist/chunks/{routes-t5eRHMRc.esm.js.map → routes-mFdr3VNw.esm.js.map} +1 -1
  64. package/dist/chunks/shoelace-components-jVPXTZPS.esm.js +2 -0
  65. package/dist/chunks/shoelace-components-jVPXTZPS.esm.js.map +1 -0
  66. package/dist/chunks/shoelace-components-yvcqUObE.esm.js +2 -0
  67. package/dist/chunks/shoelace-components-yvcqUObE.esm.js.map +1 -0
  68. package/dist/chunks/{update-cart-6fMyZd34.esm.js → update-cart--5PpQSrY.esm.js} +2 -2
  69. package/dist/chunks/{update-cart-6fMyZd34.esm.js.map → update-cart--5PpQSrY.esm.js.map} +1 -1
  70. package/dist/chunks/{update-cart-WfOplzik.esm.js → update-cart-TDb6pWxk.esm.js} +2 -2
  71. package/dist/chunks/{update-cart-WfOplzik.esm.js.map → update-cart-TDb6pWxk.esm.js.map} +1 -1
  72. package/dist/chunks/{update-cart-43LEXveI.esm.d.ts → update-cart-xaWdPxse.esm.d.ts} +1 -1
  73. package/dist/chunks/vendor-jQ8cxMpw.esm.js +1284 -0
  74. package/dist/chunks/vendor-jQ8cxMpw.esm.js.map +1 -0
  75. package/dist/components/beam-partner-logos.esm.js +1 -1
  76. package/dist/components/beam-partner-logos.js +1 -1
  77. package/dist/components/community-impact.esm.js +1 -1
  78. package/dist/components/community-impact.esm.js.map +1 -1
  79. package/dist/components/community-impact.js +1 -1
  80. package/dist/components/community-impact.js.map +1 -1
  81. package/dist/components/cumulative-impact.esm.js +1 -1
  82. package/dist/components/cumulative-impact.esm.js.map +1 -1
  83. package/dist/components/cumulative-impact.js +1 -1
  84. package/dist/components/cumulative-impact.js.map +1 -1
  85. package/dist/components/impact-overview.esm.js +7 -7
  86. package/dist/components/impact-overview.esm.js.map +1 -1
  87. package/dist/components/impact-overview.js +7 -7
  88. package/dist/components/impact-overview.js.map +1 -1
  89. package/dist/components/index.d.ts +3 -2
  90. package/dist/components/index.esm.js +1 -1
  91. package/dist/components/index.js +1 -1
  92. package/dist/components/post-purchase.d.ts +3 -3
  93. package/dist/components/post-purchase.esm.js +1 -1
  94. package/dist/components/post-purchase.esm.js.map +1 -1
  95. package/dist/components/post-purchase.js +1 -1
  96. package/dist/components/post-purchase.js.map +1 -1
  97. package/dist/components/product-details-page.d.ts +75 -0
  98. package/dist/components/product-details-page.esm.js +114 -0
  99. package/dist/components/product-details-page.esm.js.map +1 -0
  100. package/dist/components/product-details-page.js +114 -0
  101. package/dist/components/product-details-page.js.map +1 -0
  102. package/dist/components/redeem-transaction.d.ts +3 -3
  103. package/dist/components/redeem-transaction.esm.js +1 -1
  104. package/dist/components/redeem-transaction.esm.js.map +1 -1
  105. package/dist/components/redeem-transaction.js +1 -1
  106. package/dist/components/redeem-transaction.js.map +1 -1
  107. package/dist/components/select-nonprofit.d.ts +3 -3
  108. package/dist/components/select-nonprofit.esm.js +1 -1
  109. package/dist/components/select-nonprofit.esm.js.map +1 -1
  110. package/dist/components/select-nonprofit.js +1 -1
  111. package/dist/components/select-nonprofit.js.map +1 -1
  112. package/dist/components/shopify.d.ts +5 -5
  113. package/dist/components/shopify.esm.js +1 -1
  114. package/dist/components/shopify.esm.js.map +1 -1
  115. package/dist/components/shopify.js +1 -1
  116. package/dist/components/shopify.js.map +1 -1
  117. package/dist/components/subscription-management.d.ts +10 -3
  118. package/dist/components/subscription-management.esm.js +4 -4
  119. package/dist/components/subscription-management.esm.js.map +1 -1
  120. package/dist/components/subscription-management.js +4 -4
  121. package/dist/components/subscription-management.js.map +1 -1
  122. package/dist/index.d.ts +13 -12
  123. package/dist/index.esm.js +1 -1
  124. package/dist/index.js +1 -1
  125. package/dist/integrations/beam.esm.js +1 -1
  126. package/dist/integrations/beam.js +1 -1
  127. package/dist/integrations/cart.d.ts +3 -3
  128. package/dist/integrations/cart.esm.js +1 -1
  129. package/dist/integrations/cart.js +1 -1
  130. package/dist/integrations/index.d.ts +9 -9
  131. package/dist/integrations/index.esm.js +1 -1
  132. package/dist/integrations/index.js +1 -1
  133. package/dist/integrations/logs.d.ts +2 -2
  134. package/dist/integrations/logs.esm.js +1 -1
  135. package/dist/integrations/logs.js +1 -1
  136. package/dist/integrations/session.esm.js +1 -1
  137. package/dist/integrations/session.js +1 -1
  138. package/dist/integrations/shopify.d.ts +4 -4
  139. package/dist/integrations/shopify.esm.js +1 -1
  140. package/dist/integrations/shopify.js +1 -1
  141. package/dist/integrations/statsig.esm.js +3 -2
  142. package/dist/integrations/statsig.esm.js.map +1 -1
  143. package/dist/integrations/statsig.js +3 -2
  144. package/dist/integrations/statsig.js.map +1 -1
  145. package/dist/integrations/utils.d.ts +3 -3
  146. package/dist/react/beam-partner-logos.esm.js +1 -1
  147. package/dist/react/beam-partner-logos.js +1 -1
  148. package/dist/react/community-impact.esm.js +1 -1
  149. package/dist/react/community-impact.esm.js.map +1 -1
  150. package/dist/react/community-impact.js +1 -1
  151. package/dist/react/community-impact.js.map +1 -1
  152. package/dist/react/cumulative-impact.esm.js +1 -1
  153. package/dist/react/cumulative-impact.esm.js.map +1 -1
  154. package/dist/react/cumulative-impact.js +1 -1
  155. package/dist/react/cumulative-impact.js.map +1 -1
  156. package/dist/react/impact-overview.esm.js +1 -1
  157. package/dist/react/impact-overview.esm.js.map +1 -1
  158. package/dist/react/impact-overview.js +1 -1
  159. package/dist/react/impact-overview.js.map +1 -1
  160. package/dist/react/index.d.ts +3 -3
  161. package/dist/react/index.esm.js +1 -1
  162. package/dist/react/index.js +1 -1
  163. package/dist/react/post-purchase.d.ts +2 -2
  164. package/dist/react/post-purchase.esm.js +1 -1
  165. package/dist/react/post-purchase.esm.js.map +1 -1
  166. package/dist/react/post-purchase.js +1 -1
  167. package/dist/react/post-purchase.js.map +1 -1
  168. package/dist/react/product-details-page.d.ts +9 -0
  169. package/dist/react/product-details-page.esm.js +2 -0
  170. package/dist/react/product-details-page.esm.js.map +1 -0
  171. package/dist/react/product-details-page.js +2 -0
  172. package/dist/react/product-details-page.js.map +1 -0
  173. package/dist/react/redeem-transaction.d.ts +3 -3
  174. package/dist/react/redeem-transaction.esm.js +1 -1
  175. package/dist/react/redeem-transaction.esm.js.map +1 -1
  176. package/dist/react/redeem-transaction.js +1 -1
  177. package/dist/react/redeem-transaction.js.map +1 -1
  178. package/dist/react/select-nonprofit.d.ts +3 -3
  179. package/dist/react/select-nonprofit.esm.js +1 -1
  180. package/dist/react/select-nonprofit.esm.js.map +1 -1
  181. package/dist/react/select-nonprofit.js +1 -1
  182. package/dist/react/select-nonprofit.js.map +1 -1
  183. package/dist/react/subscription-management.d.ts +9 -2
  184. package/dist/react/subscription-management.esm.js +1 -1
  185. package/dist/react/subscription-management.esm.js.map +1 -1
  186. package/dist/react/subscription-management.js +1 -1
  187. package/dist/react/subscription-management.js.map +1 -1
  188. package/dist/utils/events.d.ts +3 -3
  189. package/dist/utils/index.d.ts +3 -3
  190. package/dist/utils/makeApiKeyHeader.d.ts +5 -0
  191. package/dist/utils/makeApiKeyHeader.esm.js +2 -0
  192. package/dist/utils/makeApiKeyHeader.esm.js.map +1 -0
  193. package/dist/utils/makeApiKeyHeader.js +2 -0
  194. package/dist/utils/makeApiKeyHeader.js.map +1 -0
  195. package/package.json +2 -2
  196. package/dist/chunks/_share-dialog-dependencies-0yVtRIRR.esm.js +0 -2
  197. package/dist/chunks/_share-dialog-dependencies-0yVtRIRR.esm.js.map +0 -1
  198. package/dist/chunks/_share-dialog-dependencies-HWissVga.esm.js +0 -2
  199. package/dist/chunks/_share-dialog-dependencies-HWissVga.esm.js.map +0 -1
  200. package/dist/chunks/enforce-config-7R9KCF_i.esm.js +0 -22
  201. package/dist/chunks/enforce-config-7R9KCF_i.esm.js.map +0 -1
  202. package/dist/chunks/enforce-config-iFdf1QkH.esm.js +0 -22
  203. package/dist/chunks/enforce-config-iFdf1QkH.esm.js.map +0 -1
  204. package/dist/chunks/index-5yFqo0yl.esm.js +0 -2
  205. package/dist/chunks/index-5yFqo0yl.esm.js.map +0 -1
  206. package/dist/chunks/index-FsVWk2WD.esm.js +0 -2
  207. package/dist/chunks/index-FsVWk2WD.esm.js.map +0 -1
  208. package/dist/chunks/index-IKTofhFw.esm.js +0 -2
  209. package/dist/chunks/index-IKTofhFw.esm.js.map +0 -1
  210. package/dist/chunks/index-IWF7IfQk.esm.js +0 -2
  211. package/dist/chunks/index-IWF7IfQk.esm.js.map +0 -1
  212. package/dist/chunks/index-IzAvjker.esm.js +0 -2
  213. package/dist/chunks/index-IzAvjker.esm.js.map +0 -1
  214. package/dist/chunks/index-MG0WE1Fz.esm.js +0 -2
  215. package/dist/chunks/index-MG0WE1Fz.esm.js.map +0 -1
  216. package/dist/chunks/index-NU6RpwSa.esm.js +0 -2
  217. package/dist/chunks/index-NU6RpwSa.esm.js.map +0 -1
  218. package/dist/chunks/index-QrlkSlnv.esm.js +0 -2
  219. package/dist/chunks/index-QrlkSlnv.esm.js.map +0 -1
  220. package/dist/chunks/localize-ZHtlNltZ.esm.js +0 -10
  221. package/dist/chunks/localize-ZHtlNltZ.esm.js.map +0 -1
  222. package/dist/chunks/localize-jRg7W6Ul.esm.js +0 -10
  223. package/dist/chunks/localize-jRg7W6Ul.esm.js.map +0 -1
  224. package/dist/chunks/responsive-Bzkkpj11.esm.js.map +0 -1
  225. package/dist/chunks/routes-UBDDazXd.esm.js +0 -2
  226. package/dist/chunks/routes-t5eRHMRc.esm.js +0 -2
  227. package/dist/chunks/vendor-h5FNKy-G.esm.js +0 -1147
  228. package/dist/chunks/vendor-h5FNKy-G.esm.js.map +0 -1
@@ -0,0 +1,1284 @@
1
+ import{i as U,n as u,s as Xe,x as Y,e as ot,a as I,r as Lt,b as Ye,c as zt,d as Ot,o as E}from"./lit-qtGbjGnK.esm.js";var qt="";function Kt(t){qt=t}function Ze(t=""){if(!qt){const e=[...document.getElementsByTagName("script")],o=e.find(r=>r.hasAttribute("data-shoelace"));if(o)Kt(o.getAttribute("data-shoelace"));else{const r=e.find(n=>/shoelace(\.min)?\.js($|\?)/.test(n.src)||/shoelace-autoloader(\.min)?\.js($|\?)/.test(n.src));let i="";r&&(i=r.getAttribute("src")),Kt(i.split("/").slice(0,-1).join("/"))}}return qt.replace(/\/$/,"")+(t?`/${t.replace(/^\//,"")}`:"")}var he=Object.defineProperty,Ge=Object.defineProperties,Je=Object.getOwnPropertyDescriptor,Qe=Object.getOwnPropertyDescriptors,pe=Object.getOwnPropertySymbols,to=Object.prototype.hasOwnProperty,eo=Object.prototype.propertyIsEnumerable,Xt=(t,e)=>(e=Symbol[t])?e:Symbol.for("Symbol."+t),fe=(t,e,o)=>e in t?he(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,rt=(t,e)=>{for(var o in e||(e={}))to.call(e,o)&&fe(t,o,e[o]);if(pe)for(var o of pe(e))eo.call(e,o)&&fe(t,o,e[o]);return t},$t=(t,e)=>Ge(t,Qe(e)),c=(t,e,o,r)=>{for(var i=r>1?void 0:r?Je(e,o):e,n=t.length-1,s;n>=0;n--)(s=t[n])&&(i=(r?s(e,o,i):s(i))||i);return r&&i&&he(e,o,i),i},oo=function(t,e){this[0]=t,this[1]=e},ro=t=>{var e=t[Xt("asyncIterator")],o=!1,r,i={};return e==null?(e=t[Xt("iterator")](),r=n=>i[n]=s=>e[n](s)):(e=e.call(t),r=n=>i[n]=s=>{if(o){if(o=!1,n==="throw")throw s;return s}return o=!0,{done:!1,value:new oo(new Promise(a=>{var l=e[n](s);if(!(l instanceof Object))throw TypeError("Object expected");a(l)}),1)}}),i[Xt("iterator")]=()=>i,r("next"),"throw"in e?r("throw"):i.throw=n=>{throw n},"return"in e&&r("return"),i},io={name:"default",resolver:t=>Ze(`assets/icons/${t}.svg`)},no=io,be={caret:`
2
+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
3
+ <polyline points="6 9 12 15 18 9"></polyline>
4
+ </svg>
5
+ `,check:`
6
+ <svg part="checked-icon" class="checkbox__icon" viewBox="0 0 16 16">
7
+ <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round">
8
+ <g stroke="currentColor">
9
+ <g transform="translate(3.428571, 3.428571)">
10
+ <path d="M0,5.71428571 L3.42857143,9.14285714"></path>
11
+ <path d="M9.14285714,0 L3.42857143,9.14285714"></path>
12
+ </g>
13
+ </g>
14
+ </g>
15
+ </svg>
16
+ `,"chevron-down":`
17
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-down" viewBox="0 0 16 16">
18
+ <path fill-rule="evenodd" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"/>
19
+ </svg>
20
+ `,"chevron-left":`
21
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-left" viewBox="0 0 16 16">
22
+ <path fill-rule="evenodd" d="M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"/>
23
+ </svg>
24
+ `,"chevron-right":`
25
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-right" viewBox="0 0 16 16">
26
+ <path fill-rule="evenodd" d="M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"/>
27
+ </svg>
28
+ `,copy:`
29
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-copy" viewBox="0 0 16 16">
30
+ <path fill-rule="evenodd" d="M4 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V2Zm2-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H6ZM2 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-1h1v1a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1v1H2Z"/>
31
+ </svg>
32
+ `,eye:`
33
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eye" viewBox="0 0 16 16">
34
+ <path d="M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8zM1.173 8a13.133 13.133 0 0 1 1.66-2.043C4.12 4.668 5.88 3.5 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.133 13.133 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755C11.879 11.332 10.119 12.5 8 12.5c-2.12 0-3.879-1.168-5.168-2.457A13.134 13.134 0 0 1 1.172 8z"/>
35
+ <path d="M8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5zM4.5 8a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0z"/>
36
+ </svg>
37
+ `,"eye-slash":`
38
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eye-slash" viewBox="0 0 16 16">
39
+ <path d="M13.359 11.238C15.06 9.72 16 8 16 8s-3-5.5-8-5.5a7.028 7.028 0 0 0-2.79.588l.77.771A5.944 5.944 0 0 1 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.134 13.134 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755-.165.165-.337.328-.517.486l.708.709z"/>
40
+ <path d="M11.297 9.176a3.5 3.5 0 0 0-4.474-4.474l.823.823a2.5 2.5 0 0 1 2.829 2.829l.822.822zm-2.943 1.299.822.822a3.5 3.5 0 0 1-4.474-4.474l.823.823a2.5 2.5 0 0 0 2.829 2.829z"/>
41
+ <path d="M3.35 5.47c-.18.16-.353.322-.518.487A13.134 13.134 0 0 0 1.172 8l.195.288c.335.48.83 1.12 1.465 1.755C4.121 11.332 5.881 12.5 8 12.5c.716 0 1.39-.133 2.02-.36l.77.772A7.029 7.029 0 0 1 8 13.5C3 13.5 0 8 0 8s.939-1.721 2.641-3.238l.708.709zm10.296 8.884-12-12 .708-.708 12 12-.708.708z"/>
42
+ </svg>
43
+ `,eyedropper:`
44
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eyedropper" viewBox="0 0 16 16">
45
+ <path d="M13.354.646a1.207 1.207 0 0 0-1.708 0L8.5 3.793l-.646-.647a.5.5 0 1 0-.708.708L8.293 5l-7.147 7.146A.5.5 0 0 0 1 12.5v1.793l-.854.853a.5.5 0 1 0 .708.707L1.707 15H3.5a.5.5 0 0 0 .354-.146L11 7.707l1.146 1.147a.5.5 0 0 0 .708-.708l-.647-.646 3.147-3.146a1.207 1.207 0 0 0 0-1.708l-2-2zM2 12.707l7-7L10.293 7l-7 7H2v-1.293z"></path>
46
+ </svg>
47
+ `,"grip-vertical":`
48
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-grip-vertical" viewBox="0 0 16 16">
49
+ <path d="M7 2a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zM7 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zM7 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-3 3a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-3 3a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"></path>
50
+ </svg>
51
+ `,indeterminate:`
52
+ <svg part="indeterminate-icon" class="checkbox__icon" viewBox="0 0 16 16">
53
+ <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round">
54
+ <g stroke="currentColor" stroke-width="2">
55
+ <g transform="translate(2.285714, 6.857143)">
56
+ <path d="M10.2857143,1.14285714 L1.14285714,1.14285714"></path>
57
+ </g>
58
+ </g>
59
+ </g>
60
+ </svg>
61
+ `,"person-fill":`
62
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-person-fill" viewBox="0 0 16 16">
63
+ <path d="M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H3zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"/>
64
+ </svg>
65
+ `,"play-fill":`
66
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-play-fill" viewBox="0 0 16 16">
67
+ <path d="m11.596 8.697-6.363 3.692c-.54.313-1.233-.066-1.233-.697V4.308c0-.63.692-1.01 1.233-.696l6.363 3.692a.802.802 0 0 1 0 1.393z"></path>
68
+ </svg>
69
+ `,"pause-fill":`
70
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-pause-fill" viewBox="0 0 16 16">
71
+ <path d="M5.5 3.5A1.5 1.5 0 0 1 7 5v6a1.5 1.5 0 0 1-3 0V5a1.5 1.5 0 0 1 1.5-1.5zm5 0A1.5 1.5 0 0 1 12 5v6a1.5 1.5 0 0 1-3 0V5a1.5 1.5 0 0 1 1.5-1.5z"></path>
72
+ </svg>
73
+ `,radio:`
74
+ <svg part="checked-icon" class="radio__icon" viewBox="0 0 16 16">
75
+ <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
76
+ <g fill="currentColor">
77
+ <circle cx="8" cy="8" r="3.42857143"></circle>
78
+ </g>
79
+ </g>
80
+ </svg>
81
+ `,"star-fill":`
82
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-star-fill" viewBox="0 0 16 16">
83
+ <path d="M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z"/>
84
+ </svg>
85
+ `,"x-lg":`
86
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-x-lg" viewBox="0 0 16 16">
87
+ <path d="M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8 2.146 2.854Z"/>
88
+ </svg>
89
+ `,"x-circle-fill":`
90
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-x-circle-fill" viewBox="0 0 16 16">
91
+ <path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM5.354 4.646a.5.5 0 1 0-.708.708L7.293 8l-2.647 2.646a.5.5 0 0 0 .708.708L8 8.707l2.646 2.647a.5.5 0 0 0 .708-.708L8.707 8l2.647-2.646a.5.5 0 0 0-.708-.708L8 7.293 5.354 4.646z"></path>
92
+ </svg>
93
+ `},so={name:"system",resolver:t=>t in be?`data:image/svg+xml,${encodeURIComponent(be[t])}`:""},ao=so,Pt=[no,ao],Ft=[];function lo(t){Ft.push(t)}function co(t){Ft=Ft.filter(e=>e!==t)}function ge(t){return Pt.find(e=>e.name===t)}function uo(t,e){ho(t),Pt.push({name:t,resolver:e.resolver,mutator:e.mutator,spriteSheet:e.spriteSheet}),Ft.forEach(o=>{o.library===t&&o.setIcon()})}function ho(t){Pt=Pt.filter(e=>e.name!==t)}var po=U`
94
+ :host {
95
+ display: inline-flex;
96
+ }
97
+
98
+ .badge {
99
+ display: inline-flex;
100
+ align-items: center;
101
+ justify-content: center;
102
+ font-size: max(12px, 0.75em);
103
+ font-weight: var(--sl-font-weight-semibold);
104
+ letter-spacing: var(--sl-letter-spacing-normal);
105
+ line-height: 1;
106
+ border-radius: var(--sl-border-radius-small);
107
+ border: solid 1px var(--sl-color-neutral-0);
108
+ white-space: nowrap;
109
+ padding: 0.35em 0.6em;
110
+ user-select: none;
111
+ -webkit-user-select: none;
112
+ cursor: inherit;
113
+ }
114
+
115
+ /* Variant modifiers */
116
+ .badge--primary {
117
+ background-color: var(--sl-color-primary-600);
118
+ color: var(--sl-color-neutral-0);
119
+ }
120
+
121
+ .badge--success {
122
+ background-color: var(--sl-color-success-600);
123
+ color: var(--sl-color-neutral-0);
124
+ }
125
+
126
+ .badge--neutral {
127
+ background-color: var(--sl-color-neutral-600);
128
+ color: var(--sl-color-neutral-0);
129
+ }
130
+
131
+ .badge--warning {
132
+ background-color: var(--sl-color-warning-600);
133
+ color: var(--sl-color-neutral-0);
134
+ }
135
+
136
+ .badge--danger {
137
+ background-color: var(--sl-color-danger-600);
138
+ color: var(--sl-color-neutral-0);
139
+ }
140
+
141
+ /* Pill modifier */
142
+ .badge--pill {
143
+ border-radius: var(--sl-border-radius-pill);
144
+ }
145
+
146
+ /* Pulse modifier */
147
+ .badge--pulse {
148
+ animation: pulse 1.5s infinite;
149
+ }
150
+
151
+ .badge--pulse.badge--primary {
152
+ --pulse-color: var(--sl-color-primary-600);
153
+ }
154
+
155
+ .badge--pulse.badge--success {
156
+ --pulse-color: var(--sl-color-success-600);
157
+ }
158
+
159
+ .badge--pulse.badge--neutral {
160
+ --pulse-color: var(--sl-color-neutral-600);
161
+ }
162
+
163
+ .badge--pulse.badge--warning {
164
+ --pulse-color: var(--sl-color-warning-600);
165
+ }
166
+
167
+ .badge--pulse.badge--danger {
168
+ --pulse-color: var(--sl-color-danger-600);
169
+ }
170
+
171
+ @keyframes pulse {
172
+ 0% {
173
+ box-shadow: 0 0 0 0 var(--pulse-color);
174
+ }
175
+ 70% {
176
+ box-shadow: 0 0 0 0.5rem transparent;
177
+ }
178
+ 100% {
179
+ box-shadow: 0 0 0 0 transparent;
180
+ }
181
+ }
182
+ `,Z=U`
183
+ :host {
184
+ box-sizing: border-box;
185
+ }
186
+
187
+ :host *,
188
+ :host *::before,
189
+ :host *::after {
190
+ box-sizing: inherit;
191
+ }
192
+
193
+ [hidden] {
194
+ display: none !important;
195
+ }
196
+ `,B=class extends Xe{constructor(){super(),Object.entries(this.constructor.dependencies).forEach(([t,e])=>{this.constructor.define(t,e)})}emit(t,e){const o=new CustomEvent(t,rt({bubbles:!0,cancelable:!1,composed:!0,detail:{}},e));return this.dispatchEvent(o),o}static define(t,e=this,o={}){const r=customElements.get(t);if(!r){customElements.define(t,class extends e{},o);return}let i=" (unknown version)",n=i;"version"in e&&e.version&&(i=" v"+e.version),"version"in r&&r.version&&(n=" v"+r.version),!(i&&n&&i===n)&&console.warn(`Attempted to register <${t}>${i}, but <${t}>${n} has already been registered.`)}};B.version="2.15.0",B.dependencies={},c([u()],B.prototype,"dir",2),c([u()],B.prototype,"lang",2);var yt=class extends B{constructor(){super(...arguments),this.variant="primary",this.pill=!1,this.pulse=!1}render(){return Y`
197
+ <span
198
+ part="base"
199
+ class=${ot({badge:!0,"badge--primary":this.variant==="primary","badge--success":this.variant==="success","badge--neutral":this.variant==="neutral","badge--warning":this.variant==="warning","badge--danger":this.variant==="danger","badge--pill":this.pill,"badge--pulse":this.pulse})}
200
+ role="status"
201
+ >
202
+ <slot></slot>
203
+ </span>
204
+ `}};yt.styles=[Z,po],c([u({reflect:!0})],yt.prototype,"variant",2),c([u({type:Boolean,reflect:!0})],yt.prototype,"pill",2),c([u({type:Boolean,reflect:!0})],yt.prototype,"pulse",2),yt.define("sl-badge");var fo=U`
205
+ :host {
206
+ --max-width: 20rem;
207
+ --hide-delay: 0ms;
208
+ --show-delay: 150ms;
209
+
210
+ display: contents;
211
+ }
212
+
213
+ .tooltip {
214
+ --arrow-size: var(--sl-tooltip-arrow-size);
215
+ --arrow-color: var(--sl-tooltip-background-color);
216
+ }
217
+
218
+ .tooltip::part(popup) {
219
+ z-index: var(--sl-z-index-tooltip);
220
+ }
221
+
222
+ .tooltip[placement^='top']::part(popup) {
223
+ transform-origin: bottom;
224
+ }
225
+
226
+ .tooltip[placement^='bottom']::part(popup) {
227
+ transform-origin: top;
228
+ }
229
+
230
+ .tooltip[placement^='left']::part(popup) {
231
+ transform-origin: right;
232
+ }
233
+
234
+ .tooltip[placement^='right']::part(popup) {
235
+ transform-origin: left;
236
+ }
237
+
238
+ .tooltip__body {
239
+ display: block;
240
+ width: max-content;
241
+ max-width: var(--max-width);
242
+ border-radius: var(--sl-tooltip-border-radius);
243
+ background-color: var(--sl-tooltip-background-color);
244
+ font-family: var(--sl-tooltip-font-family);
245
+ font-size: var(--sl-tooltip-font-size);
246
+ font-weight: var(--sl-tooltip-font-weight);
247
+ line-height: var(--sl-tooltip-line-height);
248
+ color: var(--sl-tooltip-color);
249
+ padding: var(--sl-tooltip-padding);
250
+ pointer-events: none;
251
+ user-select: none;
252
+ -webkit-user-select: none;
253
+ }
254
+ `,bo=U`
255
+ :host {
256
+ --arrow-color: var(--sl-color-neutral-1000);
257
+ --arrow-size: 6px;
258
+
259
+ /*
260
+ * These properties are computed to account for the arrow's dimensions after being rotated 45º. The constant
261
+ * 0.7071 is derived from sin(45), which is the diagonal size of the arrow's container after rotating.
262
+ */
263
+ --arrow-size-diagonal: calc(var(--arrow-size) * 0.7071);
264
+ --arrow-padding-offset: calc(var(--arrow-size-diagonal) - var(--arrow-size));
265
+
266
+ display: contents;
267
+ }
268
+
269
+ .popup {
270
+ position: absolute;
271
+ isolation: isolate;
272
+ max-width: var(--auto-size-available-width, none);
273
+ max-height: var(--auto-size-available-height, none);
274
+ }
275
+
276
+ .popup--fixed {
277
+ position: fixed;
278
+ }
279
+
280
+ .popup:not(.popup--active) {
281
+ display: none;
282
+ }
283
+
284
+ .popup__arrow {
285
+ position: absolute;
286
+ width: calc(var(--arrow-size-diagonal) * 2);
287
+ height: calc(var(--arrow-size-diagonal) * 2);
288
+ rotate: 45deg;
289
+ background: var(--arrow-color);
290
+ z-index: -1;
291
+ }
292
+
293
+ /* Hover bridge */
294
+ .popup-hover-bridge:not(.popup-hover-bridge--visible) {
295
+ display: none;
296
+ }
297
+
298
+ .popup-hover-bridge {
299
+ position: fixed;
300
+ z-index: calc(var(--sl-z-index-dropdown) - 1);
301
+ top: 0;
302
+ right: 0;
303
+ bottom: 0;
304
+ left: 0;
305
+ clip-path: polygon(
306
+ var(--hover-bridge-top-left-x, 0) var(--hover-bridge-top-left-y, 0),
307
+ var(--hover-bridge-top-right-x, 0) var(--hover-bridge-top-right-y, 0),
308
+ var(--hover-bridge-bottom-right-x, 0) var(--hover-bridge-bottom-right-y, 0),
309
+ var(--hover-bridge-bottom-left-x, 0) var(--hover-bridge-bottom-left-y, 0)
310
+ );
311
+ }
312
+ `;const G=Math.min,P=Math.max,Rt=Math.round,Bt=Math.floor,J=t=>({x:t,y:t}),go={left:"right",right:"left",bottom:"top",top:"bottom"},mo={start:"end",end:"start"};function Yt(t,e,o){return P(t,G(e,o))}function dt(t,e){return typeof t=="function"?t(e):t}function Q(t){return t.split("-")[0]}function ut(t){return t.split("-")[1]}function me(t){return t==="x"?"y":"x"}function Zt(t){return t==="y"?"height":"width"}function wt(t){return["top","bottom"].includes(Q(t))?"y":"x"}function Gt(t){return me(wt(t))}function vo(t,e,o){o===void 0&&(o=!1);const r=ut(t),i=Gt(t),n=Zt(i);let s=i==="x"?r===(o?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[n]>e.floating[n]&&(s=Tt(s)),[s,Tt(s)]}function yo(t){const e=Tt(t);return[Jt(t),e,Jt(e)]}function Jt(t){return t.replace(/start|end/g,e=>mo[e])}function wo(t,e,o){const r=["left","right"],i=["right","left"],n=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return o?e?i:r:e?r:i;case"left":case"right":return e?n:s;default:return[]}}function xo(t,e,o,r){const i=ut(t);let n=wo(Q(t),o==="start",r);return i&&(n=n.map(s=>s+"-"+i),e&&(n=n.concat(n.map(Jt)))),n}function Tt(t){return t.replace(/left|right|bottom|top/g,e=>go[e])}function ko(t){return{top:0,right:0,bottom:0,left:0,...t}}function ve(t){return typeof t!="number"?ko(t):{top:t,right:t,bottom:t,left:t}}function Dt(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function ye(t,e,o){let{reference:r,floating:i}=t;const n=wt(e),s=Gt(e),a=Zt(s),l=Q(e),d=n==="y",p=r.x+r.width/2-i.width/2,b=r.y+r.height/2-i.height/2,g=r[a]/2-i[a]/2;let h;switch(l){case"top":h={x:p,y:r.y-i.height};break;case"bottom":h={x:p,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:b};break;case"left":h={x:r.x-i.width,y:b};break;default:h={x:r.x,y:r.y}}switch(ut(e)){case"start":h[s]-=g*(o&&d?-1:1);break;case"end":h[s]+=g*(o&&d?-1:1);break}return h}const _o=async(t,e,o)=>{const{placement:r="bottom",strategy:i="absolute",middleware:n=[],platform:s}=o,a=n.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(e));let d=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:p,y:b}=ye(d,r,l),g=r,h={},f=0;for(let m=0;m<a.length;m++){const{name:y,fn:v}=a[m],{x,y:_,data:A,reset:C}=await v({x:p,y:b,initialPlacement:r,placement:g,strategy:i,middlewareData:h,rects:d,platform:s,elements:{reference:t,floating:e}});if(p=x??p,b=_??b,h={...h,[y]:{...h[y],...A}},C&&f<=50){f++,typeof C=="object"&&(C.placement&&(g=C.placement),C.rects&&(d=C.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):C.rects),{x:p,y:b}=ye(d,g,l)),m=-1;continue}}return{x:p,y:b,placement:g,strategy:i,middlewareData:h}};async function Qt(t,e){var o;e===void 0&&(e={});const{x:r,y:i,platform:n,rects:s,elements:a,strategy:l}=t,{boundary:d="clippingAncestors",rootBoundary:p="viewport",elementContext:b="floating",altBoundary:g=!1,padding:h=0}=dt(e,t),f=ve(h),y=a[g?b==="floating"?"reference":"floating":b],v=Dt(await n.getClippingRect({element:(o=await(n.isElement==null?void 0:n.isElement(y)))==null||o?y:y.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(a.floating)),boundary:d,rootBoundary:p,strategy:l})),x=b==="floating"?{...s.floating,x:r,y:i}:s.reference,_=await(n.getOffsetParent==null?void 0:n.getOffsetParent(a.floating)),A=await(n.isElement==null?void 0:n.isElement(_))?await(n.getScale==null?void 0:n.getScale(_))||{x:1,y:1}:{x:1,y:1},C=Dt(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:x,offsetParent:_,strategy:l}):x);return{top:(v.top-C.top+f.top)/A.y,bottom:(C.bottom-v.bottom+f.bottom)/A.y,left:(v.left-C.left+f.left)/A.x,right:(C.right-v.right+f.right)/A.x}}const Co=t=>({name:"arrow",options:t,async fn(e){const{x:o,y:r,placement:i,rects:n,platform:s,elements:a,middlewareData:l}=e,{element:d,padding:p=0}=dt(t,e)||{};if(d==null)return{};const b=ve(p),g={x:o,y:r},h=Gt(i),f=Zt(h),m=await s.getDimensions(d),y=h==="y",v=y?"top":"left",x=y?"bottom":"right",_=y?"clientHeight":"clientWidth",A=n.reference[f]+n.reference[h]-g[h]-n.floating[f],C=g[h]-n.reference[h],S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let O=S?S[_]:0;(!O||!await(s.isElement==null?void 0:s.isElement(S)))&&(O=a.floating[_]||n.floating[f]);const V=A/2-C/2,X=O/2-m[f]/2-1,gt=G(b[v],X),mt=G(b[x],X),R=gt,vt=O-m[f]-mt,$=O/2-m[f]/2+V,M=Yt(R,$,vt),N=!l.arrow&&ut(i)!=null&&$!=M&&n.reference[f]/2-($<R?gt:mt)-m[f]/2<0,j=N?$<R?$-R:$-vt:0;return{[h]:g[h]+j,data:{[h]:M,centerOffset:$-M-j,...N&&{alignmentOffset:j}},reset:N}}}),Eo=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var o,r;const{placement:i,middlewareData:n,rects:s,initialPlacement:a,platform:l,elements:d}=e,{mainAxis:p=!0,crossAxis:b=!0,fallbackPlacements:g,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:m=!0,...y}=dt(t,e);if((o=n.arrow)!=null&&o.alignmentOffset)return{};const v=Q(i),x=Q(a)===a,_=await(l.isRTL==null?void 0:l.isRTL(d.floating)),A=g||(x||!m?[Tt(a)]:yo(a));!g&&f!=="none"&&A.push(...xo(a,m,f,_));const C=[a,...A],S=await Qt(e,y),O=[];let V=((r=n.flip)==null?void 0:r.overflows)||[];if(p&&O.push(S[v]),b){const R=vo(i,s,_);O.push(S[R[0]],S[R[1]])}if(V=[...V,{placement:i,overflows:O}],!O.every(R=>R<=0)){var X,gt;const R=(((X=n.flip)==null?void 0:X.index)||0)+1,vt=C[R];if(vt)return{data:{index:R,overflows:V},reset:{placement:vt}};let $=(gt=V.filter(M=>M.overflows[0]<=0).sort((M,N)=>M.overflows[1]-N.overflows[1])[0])==null?void 0:gt.placement;if(!$)switch(h){case"bestFit":{var mt;const M=(mt=V.map(N=>[N.placement,N.overflows.filter(j=>j>0).reduce((j,Ke)=>j+Ke,0)]).sort((N,j)=>N[1]-j[1])[0])==null?void 0:mt[0];M&&($=M);break}case"initialPlacement":$=a;break}if(i!==$)return{reset:{placement:$}}}return{}}}};async function So(t,e){const{placement:o,platform:r,elements:i}=t,n=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=Q(o),a=ut(o),l=wt(o)==="y",d=["left","top"].includes(s)?-1:1,p=n&&l?-1:1,b=dt(e,t);let{mainAxis:g,crossAxis:h,alignmentAxis:f}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...b};return a&&typeof f=="number"&&(h=a==="end"?f*-1:f),l?{x:h*p,y:g*d}:{x:g*d,y:h*p}}const Ao=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){const{x:o,y:r}=e,i=await So(e,t);return{x:o+i.x,y:r+i.y,data:i}}}},Lo=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:o,y:r,placement:i}=e,{mainAxis:n=!0,crossAxis:s=!1,limiter:a={fn:y=>{let{x:v,y:x}=y;return{x:v,y:x}}},...l}=dt(t,e),d={x:o,y:r},p=await Qt(e,l),b=wt(Q(i)),g=me(b);let h=d[g],f=d[b];if(n){const y=g==="y"?"top":"left",v=g==="y"?"bottom":"right",x=h+p[y],_=h-p[v];h=Yt(x,h,_)}if(s){const y=b==="y"?"top":"left",v=b==="y"?"bottom":"right",x=f+p[y],_=f-p[v];f=Yt(x,f,_)}const m=a.fn({...e,[g]:h,[b]:f});return{...m,data:{x:m.x-o,y:m.y-r}}}}},we=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:o,rects:r,platform:i,elements:n}=e,{apply:s=()=>{},...a}=dt(t,e),l=await Qt(e,a),d=Q(o),p=ut(o),b=wt(o)==="y",{width:g,height:h}=r.floating;let f,m;d==="top"||d==="bottom"?(f=d,m=p===(await(i.isRTL==null?void 0:i.isRTL(n.floating))?"start":"end")?"left":"right"):(m=d,f=p==="end"?"top":"bottom");const y=h-l[f],v=g-l[m],x=!e.middlewareData.shift;let _=y,A=v;if(b){const S=g-l.left-l.right;A=p||x?G(v,S):S}else{const S=h-l.top-l.bottom;_=p||x?G(y,S):S}if(x&&!p){const S=P(l.left,0),O=P(l.right,0),V=P(l.top,0),X=P(l.bottom,0);b?A=g-2*(S!==0||O!==0?S+O:P(l.left,l.right)):_=h-2*(V!==0||X!==0?V+X:P(l.top,l.bottom))}await s({...e,availableWidth:A,availableHeight:_});const C=await i.getDimensions(n.floating);return g!==C.width||h!==C.height?{reset:{rects:!0}}:{}}}};function tt(t){return xe(t)?(t.nodeName||"").toLowerCase():"#document"}function F(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function q(t){var e;return(e=(xe(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function xe(t){return t instanceof Node||t instanceof F(t).Node}function K(t){return t instanceof Element||t instanceof F(t).Element}function W(t){return t instanceof HTMLElement||t instanceof F(t).HTMLElement}function ke(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof F(t).ShadowRoot}function xt(t){const{overflow:e,overflowX:o,overflowY:r,display:i}=T(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+o)&&!["inline","contents"].includes(i)}function zo(t){return["table","td","th"].includes(tt(t))}function te(t){const e=ee(),o=T(t);return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!e&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!e&&(o.filter?o.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(o.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(o.contain||"").includes(r))}function Oo(t){let e=ht(t);for(;W(e)&&!Vt(e);){if(te(e))return e;e=ht(e)}return null}function ee(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Vt(t){return["html","body","#document"].includes(tt(t))}function T(t){return F(t).getComputedStyle(t)}function Mt(t){return K(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ht(t){if(tt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||ke(t)&&t.host||q(t);return ke(e)?e.host:e}function _e(t){const e=ht(t);return Vt(e)?t.ownerDocument?t.ownerDocument.body:t.body:W(e)&&xt(e)?e:_e(e)}function kt(t,e,o){var r;e===void 0&&(e=[]),o===void 0&&(o=!0);const i=_e(t),n=i===((r=t.ownerDocument)==null?void 0:r.body),s=F(i);return n?e.concat(s,s.visualViewport||[],xt(i)?i:[],s.frameElement&&o?kt(s.frameElement):[]):e.concat(i,kt(i,[],o))}function Ce(t){const e=T(t);let o=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const i=W(t),n=i?t.offsetWidth:o,s=i?t.offsetHeight:r,a=Rt(o)!==n||Rt(r)!==s;return a&&(o=n,r=s),{width:o,height:r,$:a}}function oe(t){return K(t)?t:t.contextElement}function pt(t){const e=oe(t);if(!W(e))return J(1);const o=e.getBoundingClientRect(),{width:r,height:i,$:n}=Ce(e);let s=(n?Rt(o.width):o.width)/r,a=(n?Rt(o.height):o.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const $o=J(0);function Ee(t){const e=F(t);return!ee()||!e.visualViewport?$o:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Po(t,e,o){return e===void 0&&(e=!1),!o||e&&o!==F(t)?!1:e}function it(t,e,o,r){e===void 0&&(e=!1),o===void 0&&(o=!1);const i=t.getBoundingClientRect(),n=oe(t);let s=J(1);e&&(r?K(r)&&(s=pt(r)):s=pt(t));const a=Po(n,o,r)?Ee(n):J(0);let l=(i.left+a.x)/s.x,d=(i.top+a.y)/s.y,p=i.width/s.x,b=i.height/s.y;if(n){const g=F(n),h=r&&K(r)?F(r):r;let f=g.frameElement;for(;f&&r&&h!==g;){const m=pt(f),y=f.getBoundingClientRect(),v=T(f),x=y.left+(f.clientLeft+parseFloat(v.paddingLeft))*m.x,_=y.top+(f.clientTop+parseFloat(v.paddingTop))*m.y;l*=m.x,d*=m.y,p*=m.x,b*=m.y,l+=x,d+=_,f=F(f).frameElement}}return Dt({width:p,height:b,x:l,y:d})}function Fo(t){let{rect:e,offsetParent:o,strategy:r}=t;const i=W(o),n=q(o);if(o===n)return e;let s={scrollLeft:0,scrollTop:0},a=J(1);const l=J(0);if((i||!i&&r!=="fixed")&&((tt(o)!=="body"||xt(n))&&(s=Mt(o)),W(o))){const d=it(o);a=pt(o),l.x=d.x+o.clientLeft,l.y=d.y+o.clientTop}return{width:e.width*a.x,height:e.height*a.y,x:e.x*a.x-s.scrollLeft*a.x+l.x,y:e.y*a.y-s.scrollTop*a.y+l.y}}function Ro(t){return Array.from(t.getClientRects())}function Se(t){return it(q(t)).left+Mt(t).scrollLeft}function Bo(t){const e=q(t),o=Mt(t),r=t.ownerDocument.body,i=P(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),n=P(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let s=-o.scrollLeft+Se(t);const a=-o.scrollTop;return T(r).direction==="rtl"&&(s+=P(e.clientWidth,r.clientWidth)-i),{width:i,height:n,x:s,y:a}}function To(t,e){const o=F(t),r=q(t),i=o.visualViewport;let n=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){n=i.width,s=i.height;const d=ee();(!d||d&&e==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:n,height:s,x:a,y:l}}function Do(t,e){const o=it(t,!0,e==="fixed"),r=o.top+t.clientTop,i=o.left+t.clientLeft,n=W(t)?pt(t):J(1),s=t.clientWidth*n.x,a=t.clientHeight*n.y,l=i*n.x,d=r*n.y;return{width:s,height:a,x:l,y:d}}function Ae(t,e,o){let r;if(e==="viewport")r=To(t,o);else if(e==="document")r=Bo(q(t));else if(K(e))r=Do(e,o);else{const i=Ee(t);r={...e,x:e.x-i.x,y:e.y-i.y}}return Dt(r)}function Le(t,e){const o=ht(t);return o===e||!K(o)||Vt(o)?!1:T(o).position==="fixed"||Le(o,e)}function Vo(t,e){const o=e.get(t);if(o)return o;let r=kt(t,[],!1).filter(a=>K(a)&&tt(a)!=="body"),i=null;const n=T(t).position==="fixed";let s=n?ht(t):t;for(;K(s)&&!Vt(s);){const a=T(s),l=te(s);!l&&a.position==="fixed"&&(i=null),(n?!l&&!i:!l&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||xt(s)&&!l&&Le(t,s))?r=r.filter(p=>p!==s):i=a,s=ht(s)}return e.set(t,r),r}function Mo(t){let{element:e,boundary:o,rootBoundary:r,strategy:i}=t;const s=[...o==="clippingAncestors"?Vo(e,this._c):[].concat(o),r],a=s[0],l=s.reduce((d,p)=>{const b=Ae(e,p,i);return d.top=P(b.top,d.top),d.right=G(b.right,d.right),d.bottom=G(b.bottom,d.bottom),d.left=P(b.left,d.left),d},Ae(e,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function No(t){return Ce(t)}function Io(t,e,o){const r=W(e),i=q(e),n=o==="fixed",s=it(t,!0,n,e);let a={scrollLeft:0,scrollTop:0};const l=J(0);if(r||!r&&!n)if((tt(e)!=="body"||xt(i))&&(a=Mt(e)),r){const d=it(e,!0,n,e);l.x=d.x+e.clientLeft,l.y=d.y+e.clientTop}else i&&(l.x=Se(i));return{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function ze(t,e){return!W(t)||T(t).position==="fixed"?null:e?e(t):t.offsetParent}function Oe(t,e){const o=F(t);if(!W(t))return o;let r=ze(t,e);for(;r&&zo(r)&&T(r).position==="static";)r=ze(r,e);return r&&(tt(r)==="html"||tt(r)==="body"&&T(r).position==="static"&&!te(r))?o:r||Oo(t)||o}const Wo=async function(t){let{reference:e,floating:o,strategy:r}=t;const i=this.getOffsetParent||Oe,n=this.getDimensions;return{reference:Io(e,await i(o),r),floating:{x:0,y:0,...await n(o)}}};function Ho(t){return T(t).direction==="rtl"}const Nt={convertOffsetParentRelativeRectToViewportRelativeRect:Fo,getDocumentElement:q,getClippingRect:Mo,getOffsetParent:Oe,getElementRects:Wo,getClientRects:Ro,getDimensions:No,getScale:pt,isElement:K,isRTL:Ho};function jo(t,e){let o=null,r;const i=q(t);function n(){clearTimeout(r),o&&o.disconnect(),o=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),n();const{left:d,top:p,width:b,height:g}=t.getBoundingClientRect();if(a||e(),!b||!g)return;const h=Bt(p),f=Bt(i.clientWidth-(d+b)),m=Bt(i.clientHeight-(p+g)),y=Bt(d),x={rootMargin:-h+"px "+-f+"px "+-m+"px "+-y+"px",threshold:P(0,G(1,l))||1};let _=!0;function A(C){const S=C[0].intersectionRatio;if(S!==l){if(!_)return s();S?s(!1,S):r=setTimeout(()=>{s(!1,1e-7)},100)}_=!1}try{o=new IntersectionObserver(A,{...x,root:i.ownerDocument})}catch{o=new IntersectionObserver(A,x)}o.observe(t)}return s(!0),n}function Uo(t,e,o,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:n=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,d=oe(t),p=i||n?[...d?kt(d):[],...kt(e)]:[];p.forEach(v=>{i&&v.addEventListener("scroll",o,{passive:!0}),n&&v.addEventListener("resize",o)});const b=d&&a?jo(d,o):null;let g=-1,h=null;s&&(h=new ResizeObserver(v=>{let[x]=v;x&&x.target===d&&h&&(h.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{h&&h.observe(e)})),o()}),d&&!l&&h.observe(d),h.observe(e));let f,m=l?it(t):null;l&&y();function y(){const v=it(t);m&&(v.x!==m.x||v.y!==m.y||v.width!==m.width||v.height!==m.height)&&o(),m=v,f=requestAnimationFrame(y)}return o(),()=>{p.forEach(v=>{i&&v.removeEventListener("scroll",o),n&&v.removeEventListener("resize",o)}),b&&b(),h&&h.disconnect(),h=null,l&&cancelAnimationFrame(f)}}const qo=(t,e,o)=>{const r=new Map,i={platform:Nt,...o},n={...i.platform,_c:r};return _o(t,e,{...i,platform:n})};function Ko(t){return Xo(t)}function re(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Xo(t){for(let e=t;e;e=re(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=re(t);e;e=re(e)){if(!(e instanceof Element))continue;const o=getComputedStyle(e);if(o.display!=="contents"&&(o.position!=="static"||o.filter!=="none"||e.tagName==="BODY"))return e}return null}function Yo(t){return t!==null&&typeof t=="object"&&"getBoundingClientRect"in t&&("contextElement"in t?t instanceof Element:!0)}var k=class extends B{constructor(){super(...arguments),this.active=!1,this.placement="top",this.strategy="absolute",this.distance=0,this.skidding=0,this.arrow=!1,this.arrowPlacement="anchor",this.arrowPadding=10,this.flip=!1,this.flipFallbackPlacements="",this.flipFallbackStrategy="best-fit",this.flipPadding=0,this.shift=!1,this.shiftPadding=0,this.autoSizePadding=0,this.hoverBridge=!1,this.updateHoverBridge=()=>{if(this.hoverBridge&&this.anchorEl){const t=this.anchorEl.getBoundingClientRect(),e=this.popup.getBoundingClientRect(),o=this.placement.includes("top")||this.placement.includes("bottom");let r=0,i=0,n=0,s=0,a=0,l=0,d=0,p=0;o?t.top<e.top?(r=t.left,i=t.bottom,n=t.right,s=t.bottom,a=e.left,l=e.top,d=e.right,p=e.top):(r=e.left,i=e.bottom,n=e.right,s=e.bottom,a=t.left,l=t.top,d=t.right,p=t.top):t.left<e.left?(r=t.right,i=t.top,n=e.left,s=e.top,a=t.right,l=t.bottom,d=e.left,p=e.bottom):(r=e.right,i=e.top,n=t.left,s=t.top,a=e.right,l=e.bottom,d=t.left,p=t.bottom),this.style.setProperty("--hover-bridge-top-left-x",`${r}px`),this.style.setProperty("--hover-bridge-top-left-y",`${i}px`),this.style.setProperty("--hover-bridge-top-right-x",`${n}px`),this.style.setProperty("--hover-bridge-top-right-y",`${s}px`),this.style.setProperty("--hover-bridge-bottom-left-x",`${a}px`),this.style.setProperty("--hover-bridge-bottom-left-y",`${l}px`),this.style.setProperty("--hover-bridge-bottom-right-x",`${d}px`),this.style.setProperty("--hover-bridge-bottom-right-y",`${p}px`)}}}async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.start()}disconnectedCallback(){super.disconnectedCallback(),this.stop()}async updated(t){super.updated(t),t.has("active")&&(this.active?this.start():this.stop()),t.has("anchor")&&this.handleAnchorChange(),this.active&&(await this.updateComplete,this.reposition())}async handleAnchorChange(){if(await this.stop(),this.anchor&&typeof this.anchor=="string"){const t=this.getRootNode();this.anchorEl=t.getElementById(this.anchor)}else this.anchor instanceof Element||Yo(this.anchor)?this.anchorEl=this.anchor:this.anchorEl=this.querySelector('[slot="anchor"]');this.anchorEl instanceof HTMLSlotElement&&(this.anchorEl=this.anchorEl.assignedElements({flatten:!0})[0]),this.anchorEl&&this.start()}start(){this.anchorEl&&(this.cleanup=Uo(this.anchorEl,this.popup,()=>{this.reposition()}))}async stop(){return new Promise(t=>{this.cleanup?(this.cleanup(),this.cleanup=void 0,this.removeAttribute("data-current-placement"),this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height"),requestAnimationFrame(()=>t())):t()})}reposition(){if(!this.active||!this.anchorEl)return;const t=[Ao({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?t.push(we({apply:({rects:o})=>{const r=this.sync==="width"||this.sync==="both",i=this.sync==="height"||this.sync==="both";this.popup.style.width=r?`${o.reference.width}px`:"",this.popup.style.height=i?`${o.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&t.push(Eo({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:this.flipFallbackStrategy==="best-fit"?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&t.push(Lo({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?t.push(we({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:({availableWidth:o,availableHeight:r})=>{this.autoSize==="vertical"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-height",`${r}px`):this.style.removeProperty("--auto-size-available-height"),this.autoSize==="horizontal"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-width",`${o}px`):this.style.removeProperty("--auto-size-available-width")}})):(this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height")),this.arrow&&t.push(Co({element:this.arrowEl,padding:this.arrowPadding}));const e=this.strategy==="absolute"?o=>Nt.getOffsetParent(o,Ko):Nt.getOffsetParent;qo(this.anchorEl,this.popup,{placement:this.placement,middleware:t,strategy:this.strategy,platform:$t(rt({},Nt),{getOffsetParent:e})}).then(({x:o,y:r,middlewareData:i,placement:n})=>{const s=getComputedStyle(this).direction==="rtl",a={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]];if(this.setAttribute("data-current-placement",n),Object.assign(this.popup.style,{left:`${o}px`,top:`${r}px`}),this.arrow){const l=i.arrow.x,d=i.arrow.y;let p="",b="",g="",h="";if(this.arrowPlacement==="start"){const f=typeof l=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";p=typeof d=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",b=s?f:"",h=s?"":f}else if(this.arrowPlacement==="end"){const f=typeof l=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";b=s?"":f,h=s?f:"",g=typeof d=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""}else this.arrowPlacement==="center"?(h=typeof l=="number"?"calc(50% - var(--arrow-size-diagonal))":"",p=typeof d=="number"?"calc(50% - var(--arrow-size-diagonal))":""):(h=typeof l=="number"?`${l}px`:"",p=typeof d=="number"?`${d}px`:"");Object.assign(this.arrowEl.style,{top:p,right:b,bottom:g,left:h,[a]:"calc(var(--arrow-size-diagonal) * -1)"})}}),requestAnimationFrame(()=>this.updateHoverBridge()),this.emit("sl-reposition")}render(){return Y`
313
+ <slot name="anchor" @slotchange=${this.handleAnchorChange}></slot>
314
+
315
+ <span
316
+ part="hover-bridge"
317
+ class=${ot({"popup-hover-bridge":!0,"popup-hover-bridge--visible":this.hoverBridge&&this.active})}
318
+ ></span>
319
+
320
+ <div
321
+ part="popup"
322
+ class=${ot({popup:!0,"popup--active":this.active,"popup--fixed":this.strategy==="fixed","popup--has-arrow":this.arrow})}
323
+ >
324
+ <slot></slot>
325
+ ${this.arrow?Y`<div part="arrow" class="popup__arrow" role="presentation"></div>`:""}
326
+ </div>
327
+ `}};k.styles=[Z,bo],c([I(".popup")],k.prototype,"popup",2),c([I(".popup__arrow")],k.prototype,"arrowEl",2),c([u()],k.prototype,"anchor",2),c([u({type:Boolean,reflect:!0})],k.prototype,"active",2),c([u({reflect:!0})],k.prototype,"placement",2),c([u({reflect:!0})],k.prototype,"strategy",2),c([u({type:Number})],k.prototype,"distance",2),c([u({type:Number})],k.prototype,"skidding",2),c([u({type:Boolean})],k.prototype,"arrow",2),c([u({attribute:"arrow-placement"})],k.prototype,"arrowPlacement",2),c([u({attribute:"arrow-padding",type:Number})],k.prototype,"arrowPadding",2),c([u({type:Boolean})],k.prototype,"flip",2),c([u({attribute:"flip-fallback-placements",converter:{fromAttribute:t=>t.split(" ").map(e=>e.trim()).filter(e=>e!==""),toAttribute:t=>t.join(" ")}})],k.prototype,"flipFallbackPlacements",2),c([u({attribute:"flip-fallback-strategy"})],k.prototype,"flipFallbackStrategy",2),c([u({type:Object})],k.prototype,"flipBoundary",2),c([u({attribute:"flip-padding",type:Number})],k.prototype,"flipPadding",2),c([u({type:Boolean})],k.prototype,"shift",2),c([u({type:Object})],k.prototype,"shiftBoundary",2),c([u({attribute:"shift-padding",type:Number})],k.prototype,"shiftPadding",2),c([u({attribute:"auto-size"})],k.prototype,"autoSize",2),c([u()],k.prototype,"sync",2),c([u({type:Object})],k.prototype,"autoSizeBoundary",2),c([u({attribute:"auto-size-padding",type:Number})],k.prototype,"autoSizePadding",2),c([u({attribute:"hover-bridge",type:Boolean})],k.prototype,"hoverBridge",2);var $e=new Map,Zo=new WeakMap;function Go(t){return t??{keyframes:[],options:{duration:0}}}function Pe(t,e){return e.toLowerCase()==="rtl"?{keyframes:t.rtlKeyframes||t.keyframes,options:t.options}:t}function nt(t,e){$e.set(t,Go(e))}function st(t,e,o){const r=Zo.get(t);if(r?.[e])return Pe(r[e],o.dir);const i=$e.get(e);return i?Pe(i,o.dir):{keyframes:[],options:{duration:0}}}function It(t,e){return new Promise(o=>{function r(i){i.target===t&&(t.removeEventListener(e,r),o())}t.addEventListener(e,r)})}function at(t,e,o){return new Promise(r=>{if(o?.duration===1/0)throw new Error("Promise-based animations must be finite.");const i=t.animate(e,$t(rt({},o),{duration:Jo()?0:o.duration}));i.addEventListener("cancel",r,{once:!0}),i.addEventListener("finish",r,{once:!0})})}function Fe(t){return t=t.toString().toLowerCase(),t.indexOf("ms")>-1?parseFloat(t):t.indexOf("s")>-1?parseFloat(t)*1e3:parseFloat(t)}function Jo(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}function ft(t){return Promise.all(t.getAnimations().map(e=>new Promise(o=>{e.cancel(),requestAnimationFrame(o)})))}const ie=new Set,Qo=new MutationObserver(De),bt=new Map;let Re=document.documentElement.dir||"ltr",Be=document.documentElement.lang||navigator.language,lt;Qo.observe(document.documentElement,{attributes:!0,attributeFilter:["dir","lang"]});function Te(...t){t.map(e=>{const o=e.$code.toLowerCase();bt.has(o)?bt.set(o,Object.assign(Object.assign({},bt.get(o)),e)):bt.set(o,e),lt||(lt=e)}),De()}function De(){Re=document.documentElement.dir||"ltr",Be=document.documentElement.lang||navigator.language,[...ie.keys()].map(t=>{typeof t.requestUpdate=="function"&&t.requestUpdate()})}let tr=class{constructor(e){this.host=e,this.host.addController(this)}hostConnected(){ie.add(this.host)}hostDisconnected(){ie.delete(this.host)}dir(){return`${this.host.dir||Re}`.toLowerCase()}lang(){return`${this.host.lang||Be}`.toLowerCase()}getTranslationData(e){var o,r;const i=new Intl.Locale(e.replace(/_/g,"-")),n=i?.language.toLowerCase(),s=(r=(o=i?.region)===null||o===void 0?void 0:o.toLowerCase())!==null&&r!==void 0?r:"",a=bt.get(`${n}-${s}`),l=bt.get(n);return{locale:i,language:n,region:s,primary:a,secondary:l}}exists(e,o){var r;const{primary:i,secondary:n}=this.getTranslationData((r=o.lang)!==null&&r!==void 0?r:this.lang());return o=Object.assign({includeFallback:!1},o),!!(i&&i[e]||n&&n[e]||o.includeFallback&&lt&&lt[e])}term(e,...o){const{primary:r,secondary:i}=this.getTranslationData(this.lang());let n;if(r&&r[e])n=r[e];else if(i&&i[e])n=i[e];else if(lt&&lt[e])n=lt[e];else return console.error(`No translation found for: ${String(e)}`),String(e);return typeof n=="function"?n(...o):n}date(e,o){return e=new Date(e),new Intl.DateTimeFormat(this.lang(),o).format(e)}number(e,o){return e=Number(e),isNaN(e)?"":new Intl.NumberFormat(this.lang(),o).format(e)}relativeTime(e,o,r){return new Intl.RelativeTimeFormat(this.lang(),r).format(e,o)}};var Ve={$code:"en",$name:"English",$dir:"ltr",carousel:"Carousel",clearEntry:"Clear entry",close:"Close",copied:"Copied",copy:"Copy",currentValue:"Current value",error:"Error",goToSlide:(t,e)=>`Go to slide ${t} of ${e}`,hidePassword:"Hide password",loading:"Loading",nextSlide:"Next slide",numOptionsSelected:t=>t===0?"No options selected":t===1?"1 option selected":`${t} options selected`,previousSlide:"Previous slide",progress:"Progress",remove:"Remove",resize:"Resize",scrollToEnd:"Scroll to end",scrollToStart:"Scroll to start",selectAColorFromTheScreen:"Select a color from the screen",showPassword:"Show password",slideNum:t=>`Slide ${t}`,toggleColorFormat:"Toggle color format"};Te(Ve);var er=Ve,Wt=class extends tr{};Te(er);function ct(t,e){const o=rt({waitUntilFirstUpdate:!1},e);return(r,i)=>{const{update:n}=r,s=Array.isArray(t)?t:[t];r.update=function(a){s.forEach(l=>{const d=l;if(a.has(d)){const p=a.get(d),b=this[d];p!==b&&(!o.waitUntilFirstUpdate||this.hasUpdated)&&this[i](p,b)}}),n.call(this,a)}}}var L=class extends B{constructor(){super(),this.localize=new Wt(this),this.content="",this.placement="top",this.disabled=!1,this.distance=8,this.open=!1,this.skidding=0,this.trigger="hover focus",this.hoist=!1,this.handleBlur=()=>{this.hasTrigger("focus")&&this.hide()},this.handleClick=()=>{this.hasTrigger("click")&&(this.open?this.hide():this.show())},this.handleFocus=()=>{this.hasTrigger("focus")&&this.show()},this.handleDocumentKeyDown=t=>{t.key==="Escape"&&(t.stopPropagation(),this.hide())},this.handleMouseOver=()=>{if(this.hasTrigger("hover")){const t=Fe(getComputedStyle(this).getPropertyValue("--show-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.show(),t)}},this.handleMouseOut=()=>{if(this.hasTrigger("hover")){const t=Fe(getComputedStyle(this).getPropertyValue("--hide-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.hide(),t)}},this.addEventListener("blur",this.handleBlur,!0),this.addEventListener("focus",this.handleFocus,!0),this.addEventListener("click",this.handleClick),this.addEventListener("mouseover",this.handleMouseOver),this.addEventListener("mouseout",this.handleMouseOut)}disconnectedCallback(){var t;(t=this.closeWatcher)==null||t.destroy(),document.removeEventListener("keydown",this.handleDocumentKeyDown)}firstUpdated(){this.body.hidden=!this.open,this.open&&(this.popup.active=!0,this.popup.reposition())}hasTrigger(t){return this.trigger.split(" ").includes(t)}async handleOpenChange(){var t,e;if(this.open){if(this.disabled)return;this.emit("sl-show"),"CloseWatcher"in window?((t=this.closeWatcher)==null||t.destroy(),this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>{this.hide()}):document.addEventListener("keydown",this.handleDocumentKeyDown),await ft(this.body),this.body.hidden=!1,this.popup.active=!0;const{keyframes:o,options:r}=st(this,"tooltip.show",{dir:this.localize.dir()});await at(this.popup.popup,o,r),this.popup.reposition(),this.emit("sl-after-show")}else{this.emit("sl-hide"),(e=this.closeWatcher)==null||e.destroy(),document.removeEventListener("keydown",this.handleDocumentKeyDown),await ft(this.body);const{keyframes:o,options:r}=st(this,"tooltip.hide",{dir:this.localize.dir()});await at(this.popup.popup,o,r),this.popup.active=!1,this.body.hidden=!0,this.emit("sl-after-hide")}}async handleOptionsChange(){this.hasUpdated&&(await this.updateComplete,this.popup.reposition())}handleDisabledChange(){this.disabled&&this.open&&this.hide()}async show(){if(!this.open)return this.open=!0,It(this,"sl-after-show")}async hide(){if(this.open)return this.open=!1,It(this,"sl-after-hide")}render(){return Y`
328
+ <sl-popup
329
+ part="base"
330
+ exportparts="
331
+ popup:base__popup,
332
+ arrow:base__arrow
333
+ "
334
+ class=${ot({tooltip:!0,"tooltip--open":this.open})}
335
+ placement=${this.placement}
336
+ distance=${this.distance}
337
+ skidding=${this.skidding}
338
+ strategy=${this.hoist?"fixed":"absolute"}
339
+ flip
340
+ shift
341
+ arrow
342
+ hover-bridge
343
+ >
344
+ ${""}
345
+ <slot slot="anchor" aria-describedby="tooltip"></slot>
346
+
347
+ ${""}
348
+ <div part="body" id="tooltip" class="tooltip__body" role="tooltip" aria-live=${this.open?"polite":"off"}>
349
+ <slot name="content">${this.content}</slot>
350
+ </div>
351
+ </sl-popup>
352
+ `}};L.styles=[Z,fo],L.dependencies={"sl-popup":k},c([I("slot:not([name])")],L.prototype,"defaultSlot",2),c([I(".tooltip__body")],L.prototype,"body",2),c([I("sl-popup")],L.prototype,"popup",2),c([u()],L.prototype,"content",2),c([u()],L.prototype,"placement",2),c([u({type:Boolean,reflect:!0})],L.prototype,"disabled",2),c([u({type:Number})],L.prototype,"distance",2),c([u({type:Boolean,reflect:!0})],L.prototype,"open",2),c([u({type:Number})],L.prototype,"skidding",2),c([u()],L.prototype,"trigger",2),c([u({type:Boolean})],L.prototype,"hoist",2),c([ct("open",{waitUntilFirstUpdate:!0})],L.prototype,"handleOpenChange",1),c([ct(["content","distance","hoist","placement","skidding"])],L.prototype,"handleOptionsChange",1),c([ct("disabled")],L.prototype,"handleDisabledChange",1),nt("tooltip.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:150,easing:"ease"}}),nt("tooltip.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:150,easing:"ease"}}),L.define("sl-tooltip");function or(t){return crypto.getRandomValues(new Uint8Array(t))}for(var Me=4096,Ht=[],et=0,ne;et<256;et++)Ht[et]=(et+256).toString(16).substring(1);function rr(){(!ne||et+16>Me)&&(ne=or(Me),et=0);for(var t=0,e,o="";t<16;t++)e=ne[et+t],t==6?o+=Ht[e&15|64]:t==8?o+=Ht[e&63|128]:o+=Ht[e],t&1&&t>1&&t<11&&(o+="-");return et+=16,o}var ir=U`
353
+ :host {
354
+ --track-width: 2px;
355
+ --track-color: rgb(128 128 128 / 25%);
356
+ --indicator-color: var(--sl-color-primary-600);
357
+ --speed: 2s;
358
+
359
+ display: inline-flex;
360
+ width: 1em;
361
+ height: 1em;
362
+ flex: none;
363
+ }
364
+
365
+ .spinner {
366
+ flex: 1 1 auto;
367
+ height: 100%;
368
+ width: 100%;
369
+ }
370
+
371
+ .spinner__track,
372
+ .spinner__indicator {
373
+ fill: none;
374
+ stroke-width: var(--track-width);
375
+ r: calc(0.5em - var(--track-width) / 2);
376
+ cx: 0.5em;
377
+ cy: 0.5em;
378
+ transform-origin: 50% 50%;
379
+ }
380
+
381
+ .spinner__track {
382
+ stroke: var(--track-color);
383
+ transform-origin: 0% 0%;
384
+ }
385
+
386
+ .spinner__indicator {
387
+ stroke: var(--indicator-color);
388
+ stroke-linecap: round;
389
+ stroke-dasharray: 150% 75%;
390
+ animation: spin var(--speed) linear infinite;
391
+ }
392
+
393
+ @keyframes spin {
394
+ 0% {
395
+ transform: rotate(0deg);
396
+ stroke-dasharray: 0.05em, 3em;
397
+ }
398
+
399
+ 50% {
400
+ transform: rotate(450deg);
401
+ stroke-dasharray: 1.375em, 1.375em;
402
+ }
403
+
404
+ 100% {
405
+ transform: rotate(1080deg);
406
+ stroke-dasharray: 0.05em, 3em;
407
+ }
408
+ }
409
+ `,Ne=class extends B{constructor(){super(...arguments),this.localize=new Wt(this)}render(){return Y`
410
+ <svg part="base" class="spinner" role="progressbar" aria-label=${this.localize.term("loading")}>
411
+ <circle class="spinner__track"></circle>
412
+ <circle class="spinner__indicator"></circle>
413
+ </svg>
414
+ `}};Ne.styles=[Z,ir];var _t=new WeakMap,Ct=new WeakMap,Et=new WeakMap,se=new WeakSet,jt=new WeakMap,nr=class{constructor(t,e){this.handleFormData=o=>{const r=this.options.disabled(this.host),i=this.options.name(this.host),n=this.options.value(this.host),s=this.host.tagName.toLowerCase()==="sl-button";this.host.isConnected&&!r&&!s&&typeof i=="string"&&i.length>0&&typeof n<"u"&&(Array.isArray(n)?n.forEach(a=>{o.formData.append(i,a.toString())}):o.formData.append(i,n.toString()))},this.handleFormSubmit=o=>{var r;const i=this.options.disabled(this.host),n=this.options.reportValidity;this.form&&!this.form.noValidate&&((r=_t.get(this.form))==null||r.forEach(s=>{this.setUserInteracted(s,!0)})),this.form&&!this.form.noValidate&&!i&&!n(this.host)&&(o.preventDefault(),o.stopImmediatePropagation())},this.handleFormReset=()=>{this.options.setValue(this.host,this.options.defaultValue(this.host)),this.setUserInteracted(this.host,!1),jt.set(this.host,[])},this.handleInteraction=o=>{const r=jt.get(this.host);r.includes(o.type)||r.push(o.type),r.length===this.options.assumeInteractionOn.length&&this.setUserInteracted(this.host,!0)},this.checkFormValidity=()=>{if(this.form&&!this.form.noValidate){const o=this.form.querySelectorAll("*");for(const r of o)if(typeof r.checkValidity=="function"&&!r.checkValidity())return!1}return!0},this.reportFormValidity=()=>{if(this.form&&!this.form.noValidate){const o=this.form.querySelectorAll("*");for(const r of o)if(typeof r.reportValidity=="function"&&!r.reportValidity())return!1}return!0},(this.host=t).addController(this),this.options=rt({form:o=>{const r=o.form;if(r){const n=o.getRootNode().querySelector(`#${r}`);if(n)return n}return o.closest("form")},name:o=>o.name,value:o=>o.value,defaultValue:o=>o.defaultValue,disabled:o=>{var r;return(r=o.disabled)!=null?r:!1},reportValidity:o=>typeof o.reportValidity=="function"?o.reportValidity():!0,checkValidity:o=>typeof o.checkValidity=="function"?o.checkValidity():!0,setValue:(o,r)=>o.value=r,assumeInteractionOn:["sl-input"]},e)}hostConnected(){const t=this.options.form(this.host);t&&this.attachForm(t),jt.set(this.host,[]),this.options.assumeInteractionOn.forEach(e=>{this.host.addEventListener(e,this.handleInteraction)})}hostDisconnected(){this.detachForm(),jt.delete(this.host),this.options.assumeInteractionOn.forEach(t=>{this.host.removeEventListener(t,this.handleInteraction)})}hostUpdated(){const t=this.options.form(this.host);t||this.detachForm(),t&&this.form!==t&&(this.detachForm(),this.attachForm(t)),this.host.hasUpdated&&this.setValidity(this.host.validity.valid)}attachForm(t){t?(this.form=t,_t.has(this.form)?_t.get(this.form).add(this.host):_t.set(this.form,new Set([this.host])),this.form.addEventListener("formdata",this.handleFormData),this.form.addEventListener("submit",this.handleFormSubmit),this.form.addEventListener("reset",this.handleFormReset),Ct.has(this.form)||(Ct.set(this.form,this.form.reportValidity),this.form.reportValidity=()=>this.reportFormValidity()),Et.has(this.form)||(Et.set(this.form,this.form.checkValidity),this.form.checkValidity=()=>this.checkFormValidity())):this.form=void 0}detachForm(){if(!this.form)return;const t=_t.get(this.form);t&&(t.delete(this.host),t.size<=0&&(this.form.removeEventListener("formdata",this.handleFormData),this.form.removeEventListener("submit",this.handleFormSubmit),this.form.removeEventListener("reset",this.handleFormReset),Ct.has(this.form)&&(this.form.reportValidity=Ct.get(this.form),Ct.delete(this.form)),Et.has(this.form)&&(this.form.checkValidity=Et.get(this.form),Et.delete(this.form)),this.form=void 0))}setUserInteracted(t,e){e?se.add(t):se.delete(t),t.requestUpdate()}doAction(t,e){if(this.form){const o=document.createElement("button");o.type=t,o.style.position="absolute",o.style.width="0",o.style.height="0",o.style.clipPath="inset(50%)",o.style.overflow="hidden",o.style.whiteSpace="nowrap",e&&(o.name=e.name,o.value=e.value,["formaction","formenctype","formmethod","formnovalidate","formtarget"].forEach(r=>{e.hasAttribute(r)&&o.setAttribute(r,e.getAttribute(r))})),this.form.append(o),o.click(),o.remove()}}getForm(){var t;return(t=this.form)!=null?t:null}reset(t){this.doAction("reset",t)}submit(t){this.doAction("submit",t)}setValidity(t){const e=this.host,o=!!se.has(e),r=!!e.required;e.toggleAttribute("data-required",r),e.toggleAttribute("data-optional",!r),e.toggleAttribute("data-invalid",!t),e.toggleAttribute("data-valid",t),e.toggleAttribute("data-user-invalid",!t&&o),e.toggleAttribute("data-user-valid",t&&o)}updateValidity(){const t=this.host;this.setValidity(t.validity.valid)}emitInvalidEvent(t){const e=new CustomEvent("sl-invalid",{bubbles:!1,composed:!1,cancelable:!0,detail:{}});t||e.preventDefault(),this.host.dispatchEvent(e)||t?.preventDefault()}},ae=Object.freeze({badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:!0,valueMissing:!1});Object.freeze($t(rt({},ae),{valid:!1,valueMissing:!0})),Object.freeze($t(rt({},ae),{valid:!1,customError:!0}));var sr=U`
415
+ :host {
416
+ display: inline-block;
417
+ position: relative;
418
+ width: auto;
419
+ cursor: pointer;
420
+ }
421
+
422
+ .button {
423
+ display: inline-flex;
424
+ align-items: stretch;
425
+ justify-content: center;
426
+ width: 100%;
427
+ border-style: solid;
428
+ border-width: var(--sl-input-border-width);
429
+ font-family: var(--sl-input-font-family);
430
+ font-weight: var(--sl-font-weight-semibold);
431
+ text-decoration: none;
432
+ user-select: none;
433
+ -webkit-user-select: none;
434
+ white-space: nowrap;
435
+ vertical-align: middle;
436
+ padding: 0;
437
+ transition:
438
+ var(--sl-transition-x-fast) background-color,
439
+ var(--sl-transition-x-fast) color,
440
+ var(--sl-transition-x-fast) border,
441
+ var(--sl-transition-x-fast) box-shadow;
442
+ cursor: inherit;
443
+ }
444
+
445
+ .button::-moz-focus-inner {
446
+ border: 0;
447
+ }
448
+
449
+ .button:focus {
450
+ outline: none;
451
+ }
452
+
453
+ .button:focus-visible {
454
+ outline: var(--sl-focus-ring);
455
+ outline-offset: var(--sl-focus-ring-offset);
456
+ }
457
+
458
+ .button--disabled {
459
+ opacity: 0.5;
460
+ cursor: not-allowed;
461
+ }
462
+
463
+ /* When disabled, prevent mouse events from bubbling up from children */
464
+ .button--disabled * {
465
+ pointer-events: none;
466
+ }
467
+
468
+ .button__prefix,
469
+ .button__suffix {
470
+ flex: 0 0 auto;
471
+ display: flex;
472
+ align-items: center;
473
+ pointer-events: none;
474
+ }
475
+
476
+ .button__label {
477
+ display: inline-block;
478
+ }
479
+
480
+ .button__label::slotted(sl-icon) {
481
+ vertical-align: -2px;
482
+ }
483
+
484
+ /*
485
+ * Standard buttons
486
+ */
487
+
488
+ /* Default */
489
+ .button--standard.button--default {
490
+ background-color: var(--sl-color-neutral-0);
491
+ border-color: var(--sl-color-neutral-300);
492
+ color: var(--sl-color-neutral-700);
493
+ }
494
+
495
+ .button--standard.button--default:hover:not(.button--disabled) {
496
+ background-color: var(--sl-color-primary-50);
497
+ border-color: var(--sl-color-primary-300);
498
+ color: var(--sl-color-primary-700);
499
+ }
500
+
501
+ .button--standard.button--default:active:not(.button--disabled) {
502
+ background-color: var(--sl-color-primary-100);
503
+ border-color: var(--sl-color-primary-400);
504
+ color: var(--sl-color-primary-700);
505
+ }
506
+
507
+ /* Primary */
508
+ .button--standard.button--primary {
509
+ background-color: var(--sl-color-primary-600);
510
+ border-color: var(--sl-color-primary-600);
511
+ color: var(--sl-color-neutral-0);
512
+ }
513
+
514
+ .button--standard.button--primary:hover:not(.button--disabled) {
515
+ background-color: var(--sl-color-primary-500);
516
+ border-color: var(--sl-color-primary-500);
517
+ color: var(--sl-color-neutral-0);
518
+ }
519
+
520
+ .button--standard.button--primary:active:not(.button--disabled) {
521
+ background-color: var(--sl-color-primary-600);
522
+ border-color: var(--sl-color-primary-600);
523
+ color: var(--sl-color-neutral-0);
524
+ }
525
+
526
+ /* Success */
527
+ .button--standard.button--success {
528
+ background-color: var(--sl-color-success-600);
529
+ border-color: var(--sl-color-success-600);
530
+ color: var(--sl-color-neutral-0);
531
+ }
532
+
533
+ .button--standard.button--success:hover:not(.button--disabled) {
534
+ background-color: var(--sl-color-success-500);
535
+ border-color: var(--sl-color-success-500);
536
+ color: var(--sl-color-neutral-0);
537
+ }
538
+
539
+ .button--standard.button--success:active:not(.button--disabled) {
540
+ background-color: var(--sl-color-success-600);
541
+ border-color: var(--sl-color-success-600);
542
+ color: var(--sl-color-neutral-0);
543
+ }
544
+
545
+ /* Neutral */
546
+ .button--standard.button--neutral {
547
+ background-color: var(--sl-color-neutral-600);
548
+ border-color: var(--sl-color-neutral-600);
549
+ color: var(--sl-color-neutral-0);
550
+ }
551
+
552
+ .button--standard.button--neutral:hover:not(.button--disabled) {
553
+ background-color: var(--sl-color-neutral-500);
554
+ border-color: var(--sl-color-neutral-500);
555
+ color: var(--sl-color-neutral-0);
556
+ }
557
+
558
+ .button--standard.button--neutral:active:not(.button--disabled) {
559
+ background-color: var(--sl-color-neutral-600);
560
+ border-color: var(--sl-color-neutral-600);
561
+ color: var(--sl-color-neutral-0);
562
+ }
563
+
564
+ /* Warning */
565
+ .button--standard.button--warning {
566
+ background-color: var(--sl-color-warning-600);
567
+ border-color: var(--sl-color-warning-600);
568
+ color: var(--sl-color-neutral-0);
569
+ }
570
+ .button--standard.button--warning:hover:not(.button--disabled) {
571
+ background-color: var(--sl-color-warning-500);
572
+ border-color: var(--sl-color-warning-500);
573
+ color: var(--sl-color-neutral-0);
574
+ }
575
+
576
+ .button--standard.button--warning:active:not(.button--disabled) {
577
+ background-color: var(--sl-color-warning-600);
578
+ border-color: var(--sl-color-warning-600);
579
+ color: var(--sl-color-neutral-0);
580
+ }
581
+
582
+ /* Danger */
583
+ .button--standard.button--danger {
584
+ background-color: var(--sl-color-danger-600);
585
+ border-color: var(--sl-color-danger-600);
586
+ color: var(--sl-color-neutral-0);
587
+ }
588
+
589
+ .button--standard.button--danger:hover:not(.button--disabled) {
590
+ background-color: var(--sl-color-danger-500);
591
+ border-color: var(--sl-color-danger-500);
592
+ color: var(--sl-color-neutral-0);
593
+ }
594
+
595
+ .button--standard.button--danger:active:not(.button--disabled) {
596
+ background-color: var(--sl-color-danger-600);
597
+ border-color: var(--sl-color-danger-600);
598
+ color: var(--sl-color-neutral-0);
599
+ }
600
+
601
+ /*
602
+ * Outline buttons
603
+ */
604
+
605
+ .button--outline {
606
+ background: none;
607
+ border: solid 1px;
608
+ }
609
+
610
+ /* Default */
611
+ .button--outline.button--default {
612
+ border-color: var(--sl-color-neutral-300);
613
+ color: var(--sl-color-neutral-700);
614
+ }
615
+
616
+ .button--outline.button--default:hover:not(.button--disabled),
617
+ .button--outline.button--default.button--checked:not(.button--disabled) {
618
+ border-color: var(--sl-color-primary-600);
619
+ background-color: var(--sl-color-primary-600);
620
+ color: var(--sl-color-neutral-0);
621
+ }
622
+
623
+ .button--outline.button--default:active:not(.button--disabled) {
624
+ border-color: var(--sl-color-primary-700);
625
+ background-color: var(--sl-color-primary-700);
626
+ color: var(--sl-color-neutral-0);
627
+ }
628
+
629
+ /* Primary */
630
+ .button--outline.button--primary {
631
+ border-color: var(--sl-color-primary-600);
632
+ color: var(--sl-color-primary-600);
633
+ }
634
+
635
+ .button--outline.button--primary:hover:not(.button--disabled),
636
+ .button--outline.button--primary.button--checked:not(.button--disabled) {
637
+ background-color: var(--sl-color-primary-600);
638
+ color: var(--sl-color-neutral-0);
639
+ }
640
+
641
+ .button--outline.button--primary:active:not(.button--disabled) {
642
+ border-color: var(--sl-color-primary-700);
643
+ background-color: var(--sl-color-primary-700);
644
+ color: var(--sl-color-neutral-0);
645
+ }
646
+
647
+ /* Success */
648
+ .button--outline.button--success {
649
+ border-color: var(--sl-color-success-600);
650
+ color: var(--sl-color-success-600);
651
+ }
652
+
653
+ .button--outline.button--success:hover:not(.button--disabled),
654
+ .button--outline.button--success.button--checked:not(.button--disabled) {
655
+ background-color: var(--sl-color-success-600);
656
+ color: var(--sl-color-neutral-0);
657
+ }
658
+
659
+ .button--outline.button--success:active:not(.button--disabled) {
660
+ border-color: var(--sl-color-success-700);
661
+ background-color: var(--sl-color-success-700);
662
+ color: var(--sl-color-neutral-0);
663
+ }
664
+
665
+ /* Neutral */
666
+ .button--outline.button--neutral {
667
+ border-color: var(--sl-color-neutral-600);
668
+ color: var(--sl-color-neutral-600);
669
+ }
670
+
671
+ .button--outline.button--neutral:hover:not(.button--disabled),
672
+ .button--outline.button--neutral.button--checked:not(.button--disabled) {
673
+ background-color: var(--sl-color-neutral-600);
674
+ color: var(--sl-color-neutral-0);
675
+ }
676
+
677
+ .button--outline.button--neutral:active:not(.button--disabled) {
678
+ border-color: var(--sl-color-neutral-700);
679
+ background-color: var(--sl-color-neutral-700);
680
+ color: var(--sl-color-neutral-0);
681
+ }
682
+
683
+ /* Warning */
684
+ .button--outline.button--warning {
685
+ border-color: var(--sl-color-warning-600);
686
+ color: var(--sl-color-warning-600);
687
+ }
688
+
689
+ .button--outline.button--warning:hover:not(.button--disabled),
690
+ .button--outline.button--warning.button--checked:not(.button--disabled) {
691
+ background-color: var(--sl-color-warning-600);
692
+ color: var(--sl-color-neutral-0);
693
+ }
694
+
695
+ .button--outline.button--warning:active:not(.button--disabled) {
696
+ border-color: var(--sl-color-warning-700);
697
+ background-color: var(--sl-color-warning-700);
698
+ color: var(--sl-color-neutral-0);
699
+ }
700
+
701
+ /* Danger */
702
+ .button--outline.button--danger {
703
+ border-color: var(--sl-color-danger-600);
704
+ color: var(--sl-color-danger-600);
705
+ }
706
+
707
+ .button--outline.button--danger:hover:not(.button--disabled),
708
+ .button--outline.button--danger.button--checked:not(.button--disabled) {
709
+ background-color: var(--sl-color-danger-600);
710
+ color: var(--sl-color-neutral-0);
711
+ }
712
+
713
+ .button--outline.button--danger:active:not(.button--disabled) {
714
+ border-color: var(--sl-color-danger-700);
715
+ background-color: var(--sl-color-danger-700);
716
+ color: var(--sl-color-neutral-0);
717
+ }
718
+
719
+ @media (forced-colors: active) {
720
+ .button.button--outline.button--checked:not(.button--disabled) {
721
+ outline: solid 2px transparent;
722
+ }
723
+ }
724
+
725
+ /*
726
+ * Text buttons
727
+ */
728
+
729
+ .button--text {
730
+ background-color: transparent;
731
+ border-color: transparent;
732
+ color: var(--sl-color-primary-600);
733
+ }
734
+
735
+ .button--text:hover:not(.button--disabled) {
736
+ background-color: transparent;
737
+ border-color: transparent;
738
+ color: var(--sl-color-primary-500);
739
+ }
740
+
741
+ .button--text:focus-visible:not(.button--disabled) {
742
+ background-color: transparent;
743
+ border-color: transparent;
744
+ color: var(--sl-color-primary-500);
745
+ }
746
+
747
+ .button--text:active:not(.button--disabled) {
748
+ background-color: transparent;
749
+ border-color: transparent;
750
+ color: var(--sl-color-primary-700);
751
+ }
752
+
753
+ /*
754
+ * Size modifiers
755
+ */
756
+
757
+ .button--small {
758
+ height: auto;
759
+ min-height: var(--sl-input-height-small);
760
+ font-size: var(--sl-button-font-size-small);
761
+ line-height: calc(var(--sl-input-height-small) - var(--sl-input-border-width) * 2);
762
+ border-radius: var(--sl-input-border-radius-small);
763
+ }
764
+
765
+ .button--medium {
766
+ height: auto;
767
+ min-height: var(--sl-input-height-medium);
768
+ font-size: var(--sl-button-font-size-medium);
769
+ line-height: calc(var(--sl-input-height-medium) - var(--sl-input-border-width) * 2);
770
+ border-radius: var(--sl-input-border-radius-medium);
771
+ }
772
+
773
+ .button--large {
774
+ height: auto;
775
+ min-height: var(--sl-input-height-large);
776
+ font-size: var(--sl-button-font-size-large);
777
+ line-height: calc(var(--sl-input-height-large) - var(--sl-input-border-width) * 2);
778
+ border-radius: var(--sl-input-border-radius-large);
779
+ }
780
+
781
+ /*
782
+ * Pill modifier
783
+ */
784
+
785
+ .button--pill.button--small {
786
+ border-radius: var(--sl-input-height-small);
787
+ }
788
+
789
+ .button--pill.button--medium {
790
+ border-radius: var(--sl-input-height-medium);
791
+ }
792
+
793
+ .button--pill.button--large {
794
+ border-radius: var(--sl-input-height-large);
795
+ }
796
+
797
+ /*
798
+ * Circle modifier
799
+ */
800
+
801
+ .button--circle {
802
+ padding-left: 0;
803
+ padding-right: 0;
804
+ }
805
+
806
+ .button--circle.button--small {
807
+ width: var(--sl-input-height-small);
808
+ border-radius: 50%;
809
+ }
810
+
811
+ .button--circle.button--medium {
812
+ width: var(--sl-input-height-medium);
813
+ border-radius: 50%;
814
+ }
815
+
816
+ .button--circle.button--large {
817
+ width: var(--sl-input-height-large);
818
+ border-radius: 50%;
819
+ }
820
+
821
+ .button--circle .button__prefix,
822
+ .button--circle .button__suffix,
823
+ .button--circle .button__caret {
824
+ display: none;
825
+ }
826
+
827
+ /*
828
+ * Caret modifier
829
+ */
830
+
831
+ .button--caret .button__suffix {
832
+ display: none;
833
+ }
834
+
835
+ .button--caret .button__caret {
836
+ height: auto;
837
+ }
838
+
839
+ /*
840
+ * Loading modifier
841
+ */
842
+
843
+ .button--loading {
844
+ position: relative;
845
+ cursor: wait;
846
+ }
847
+
848
+ .button--loading .button__prefix,
849
+ .button--loading .button__label,
850
+ .button--loading .button__suffix,
851
+ .button--loading .button__caret {
852
+ visibility: hidden;
853
+ }
854
+
855
+ .button--loading sl-spinner {
856
+ --indicator-color: currentColor;
857
+ position: absolute;
858
+ font-size: 1em;
859
+ height: 1em;
860
+ width: 1em;
861
+ top: calc(50% - 0.5em);
862
+ left: calc(50% - 0.5em);
863
+ }
864
+
865
+ /*
866
+ * Badges
867
+ */
868
+
869
+ .button ::slotted(sl-badge) {
870
+ position: absolute;
871
+ top: 0;
872
+ right: 0;
873
+ translate: 50% -50%;
874
+ pointer-events: none;
875
+ }
876
+
877
+ .button--rtl ::slotted(sl-badge) {
878
+ right: auto;
879
+ left: 0;
880
+ translate: -50% -50%;
881
+ }
882
+
883
+ /*
884
+ * Button spacing
885
+ */
886
+
887
+ .button--has-label.button--small .button__label {
888
+ padding: 0 var(--sl-spacing-small);
889
+ }
890
+
891
+ .button--has-label.button--medium .button__label {
892
+ padding: 0 var(--sl-spacing-medium);
893
+ }
894
+
895
+ .button--has-label.button--large .button__label {
896
+ padding: 0 var(--sl-spacing-large);
897
+ }
898
+
899
+ .button--has-prefix.button--small {
900
+ padding-inline-start: var(--sl-spacing-x-small);
901
+ }
902
+
903
+ .button--has-prefix.button--small .button__label {
904
+ padding-inline-start: var(--sl-spacing-x-small);
905
+ }
906
+
907
+ .button--has-prefix.button--medium {
908
+ padding-inline-start: var(--sl-spacing-small);
909
+ }
910
+
911
+ .button--has-prefix.button--medium .button__label {
912
+ padding-inline-start: var(--sl-spacing-small);
913
+ }
914
+
915
+ .button--has-prefix.button--large {
916
+ padding-inline-start: var(--sl-spacing-small);
917
+ }
918
+
919
+ .button--has-prefix.button--large .button__label {
920
+ padding-inline-start: var(--sl-spacing-small);
921
+ }
922
+
923
+ .button--has-suffix.button--small,
924
+ .button--caret.button--small {
925
+ padding-inline-end: var(--sl-spacing-x-small);
926
+ }
927
+
928
+ .button--has-suffix.button--small .button__label,
929
+ .button--caret.button--small .button__label {
930
+ padding-inline-end: var(--sl-spacing-x-small);
931
+ }
932
+
933
+ .button--has-suffix.button--medium,
934
+ .button--caret.button--medium {
935
+ padding-inline-end: var(--sl-spacing-small);
936
+ }
937
+
938
+ .button--has-suffix.button--medium .button__label,
939
+ .button--caret.button--medium .button__label {
940
+ padding-inline-end: var(--sl-spacing-small);
941
+ }
942
+
943
+ .button--has-suffix.button--large,
944
+ .button--caret.button--large {
945
+ padding-inline-end: var(--sl-spacing-small);
946
+ }
947
+
948
+ .button--has-suffix.button--large .button__label,
949
+ .button--caret.button--large .button__label {
950
+ padding-inline-end: var(--sl-spacing-small);
951
+ }
952
+
953
+ /*
954
+ * Button groups support a variety of button types (e.g. buttons with tooltips, buttons as dropdown triggers, etc.).
955
+ * This means buttons aren't always direct descendants of the button group, thus we can't target them with the
956
+ * ::slotted selector. To work around this, the button group component does some magic to add these special classes to
957
+ * buttons and we style them here instead.
958
+ */
959
+
960
+ :host([data-sl-button-group__button--first]:not([data-sl-button-group__button--last])) .button {
961
+ border-start-end-radius: 0;
962
+ border-end-end-radius: 0;
963
+ }
964
+
965
+ :host([data-sl-button-group__button--inner]) .button {
966
+ border-radius: 0;
967
+ }
968
+
969
+ :host([data-sl-button-group__button--last]:not([data-sl-button-group__button--first])) .button {
970
+ border-start-start-radius: 0;
971
+ border-end-start-radius: 0;
972
+ }
973
+
974
+ /* All except the first */
975
+ :host([data-sl-button-group__button]:not([data-sl-button-group__button--first])) {
976
+ margin-inline-start: calc(-1 * var(--sl-input-border-width));
977
+ }
978
+
979
+ /* Add a visual separator between solid buttons */
980
+ :host(
981
+ [data-sl-button-group__button]:not(
982
+ [data-sl-button-group__button--first],
983
+ [data-sl-button-group__button--radio],
984
+ [variant='default']
985
+ ):not(:hover)
986
+ )
987
+ .button:after {
988
+ content: '';
989
+ position: absolute;
990
+ top: 0;
991
+ inset-inline-start: 0;
992
+ bottom: 0;
993
+ border-left: solid 1px rgb(128 128 128 / 33%);
994
+ mix-blend-mode: multiply;
995
+ }
996
+
997
+ /* Bump hovered, focused, and checked buttons up so their focus ring isn't clipped */
998
+ :host([data-sl-button-group__button--hover]) {
999
+ z-index: 1;
1000
+ }
1001
+
1002
+ /* Focus and checked are always on top */
1003
+ :host([data-sl-button-group__button--focus]),
1004
+ :host([data-sl-button-group__button[checked]]) {
1005
+ z-index: 2;
1006
+ }
1007
+ `,Ie=class{constructor(t,...e){this.slotNames=[],this.handleSlotChange=o=>{const r=o.target;(this.slotNames.includes("[default]")&&!r.name||r.name&&this.slotNames.includes(r.name))&&this.host.requestUpdate()},(this.host=t).addController(this),this.slotNames=e}hasDefaultSlot(){return[...this.host.childNodes].some(t=>{if(t.nodeType===t.TEXT_NODE&&t.textContent.trim()!=="")return!0;if(t.nodeType===t.ELEMENT_NODE){const e=t;if(e.tagName.toLowerCase()==="sl-visually-hidden")return!1;if(!e.hasAttribute("slot"))return!0}return!1})}hasNamedSlot(t){return this.host.querySelector(`:scope > [slot="${t}"]`)!==null}test(t){return t==="[default]"?this.hasDefaultSlot():this.hasNamedSlot(t)}hostConnected(){this.host.shadowRoot.addEventListener("slotchange",this.handleSlotChange)}hostDisconnected(){this.host.shadowRoot.removeEventListener("slotchange",this.handleSlotChange)}},ar=U`
1008
+ :host {
1009
+ display: inline-block;
1010
+ width: 1em;
1011
+ height: 1em;
1012
+ box-sizing: content-box !important;
1013
+ }
1014
+
1015
+ svg {
1016
+ display: block;
1017
+ height: 100%;
1018
+ width: 100%;
1019
+ }
1020
+ `,St=Symbol(),Ut=Symbol(),le,ce=new Map,D=class extends B{constructor(){super(...arguments),this.initialRender=!1,this.svg=null,this.label="",this.library="default"}async resolveIcon(t,e){var o;let r;if(e?.spriteSheet){this.svg=Y`<svg part="svg">
1021
+ <use part="use" href="${t}"></use>
1022
+ </svg>`,await this.updateComplete;const i=this.shadowRoot.querySelector("[part='svg']");return typeof e.mutator=="function"&&e.mutator(i),this.svg}try{if(r=await fetch(t,{mode:"cors"}),!r.ok)return r.status===410?St:Ut}catch{return Ut}try{const i=document.createElement("div");i.innerHTML=await r.text();const n=i.firstElementChild;if(((o=n?.tagName)==null?void 0:o.toLowerCase())!=="svg")return St;le||(le=new DOMParser);const a=le.parseFromString(n.outerHTML,"text/html").body.querySelector("svg");return a?(a.part.add("svg"),document.adoptNode(a)):St}catch{return St}}connectedCallback(){super.connectedCallback(),lo(this)}firstUpdated(){this.initialRender=!0,this.setIcon()}disconnectedCallback(){super.disconnectedCallback(),co(this)}getIconSource(){const t=ge(this.library);return this.name&&t?{url:t.resolver(this.name),fromLibrary:!0}:{url:this.src,fromLibrary:!1}}handleLabelChange(){typeof this.label=="string"&&this.label.length>0?(this.setAttribute("role","img"),this.setAttribute("aria-label",this.label),this.removeAttribute("aria-hidden")):(this.removeAttribute("role"),this.removeAttribute("aria-label"),this.setAttribute("aria-hidden","true"))}async setIcon(){var t;const{url:e,fromLibrary:o}=this.getIconSource(),r=o?ge(this.library):void 0;if(!e){this.svg=null;return}let i=ce.get(e);if(i||(i=this.resolveIcon(e,r),ce.set(e,i)),!this.initialRender)return;const n=await i;if(n===Ut&&ce.delete(e),e===this.getIconSource().url){if(Ye(n)){this.svg=n;return}switch(n){case Ut:case St:this.svg=null,this.emit("sl-error");break;default:this.svg=n.cloneNode(!0),(t=r?.mutator)==null||t.call(r,this.svg),this.emit("sl-load")}}}render(){return this.svg}};D.styles=[Z,ar],c([Lt()],D.prototype,"svg",2),c([u({reflect:!0})],D.prototype,"name",2),c([u()],D.prototype,"src",2),c([u()],D.prototype,"label",2),c([u({reflect:!0})],D.prototype,"library",2),c([ct("label")],D.prototype,"handleLabelChange",1),c([ct(["name","src","library"])],D.prototype,"setIcon",1);var w=class extends B{constructor(){super(...arguments),this.formControlController=new nr(this,{assumeInteractionOn:["click"]}),this.hasSlotController=new Ie(this,"[default]","prefix","suffix"),this.localize=new Wt(this),this.hasFocus=!1,this.invalid=!1,this.title="",this.variant="default",this.size="medium",this.caret=!1,this.disabled=!1,this.loading=!1,this.outline=!1,this.pill=!1,this.circle=!1,this.type="button",this.name="",this.value="",this.href="",this.rel="noreferrer noopener"}get validity(){return this.isButton()?this.button.validity:ae}get validationMessage(){return this.isButton()?this.button.validationMessage:""}firstUpdated(){this.isButton()&&this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit("sl-blur")}handleFocus(){this.hasFocus=!0,this.emit("sl-focus")}handleClick(){this.type==="submit"&&this.formControlController.submit(this),this.type==="reset"&&this.formControlController.reset(this)}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}isButton(){return!this.href}isLink(){return!!this.href}handleDisabledChange(){this.isButton()&&this.formControlController.setValidity(this.disabled)}click(){this.button.click()}focus(t){this.button.focus(t)}blur(){this.button.blur()}checkValidity(){return this.isButton()?this.button.checkValidity():!0}getForm(){return this.formControlController.getForm()}reportValidity(){return this.isButton()?this.button.reportValidity():!0}setCustomValidity(t){this.isButton()&&(this.button.setCustomValidity(t),this.formControlController.updateValidity())}render(){const t=this.isLink(),e=t?zt`a`:zt`button`;return Ot`
1023
+ <${e}
1024
+ part="base"
1025
+ class=${ot({button:!0,"button--default":this.variant==="default","button--primary":this.variant==="primary","button--success":this.variant==="success","button--neutral":this.variant==="neutral","button--warning":this.variant==="warning","button--danger":this.variant==="danger","button--text":this.variant==="text","button--small":this.size==="small","button--medium":this.size==="medium","button--large":this.size==="large","button--caret":this.caret,"button--circle":this.circle,"button--disabled":this.disabled,"button--focused":this.hasFocus,"button--loading":this.loading,"button--standard":!this.outline,"button--outline":this.outline,"button--pill":this.pill,"button--rtl":this.localize.dir()==="rtl","button--has-label":this.hasSlotController.test("[default]"),"button--has-prefix":this.hasSlotController.test("prefix"),"button--has-suffix":this.hasSlotController.test("suffix")})}
1026
+ ?disabled=${E(t?void 0:this.disabled)}
1027
+ type=${E(t?void 0:this.type)}
1028
+ title=${this.title}
1029
+ name=${E(t?void 0:this.name)}
1030
+ value=${E(t?void 0:this.value)}
1031
+ href=${E(t?this.href:void 0)}
1032
+ target=${E(t?this.target:void 0)}
1033
+ download=${E(t?this.download:void 0)}
1034
+ rel=${E(t?this.rel:void 0)}
1035
+ role=${E(t?void 0:"button")}
1036
+ aria-disabled=${this.disabled?"true":"false"}
1037
+ tabindex=${this.disabled?"-1":"0"}
1038
+ @blur=${this.handleBlur}
1039
+ @focus=${this.handleFocus}
1040
+ @invalid=${this.isButton()?this.handleInvalid:null}
1041
+ @click=${this.handleClick}
1042
+ >
1043
+ <slot name="prefix" part="prefix" class="button__prefix"></slot>
1044
+ <slot part="label" class="button__label"></slot>
1045
+ <slot name="suffix" part="suffix" class="button__suffix"></slot>
1046
+ ${this.caret?Ot` <sl-icon part="caret" class="button__caret" library="system" name="caret"></sl-icon> `:""}
1047
+ ${this.loading?Ot`<sl-spinner part="spinner"></sl-spinner>`:""}
1048
+ </${e}>
1049
+ `}};w.styles=[Z,sr],w.dependencies={"sl-icon":D,"sl-spinner":Ne},c([I(".button")],w.prototype,"button",2),c([Lt()],w.prototype,"hasFocus",2),c([Lt()],w.prototype,"invalid",2),c([u()],w.prototype,"title",2),c([u({reflect:!0})],w.prototype,"variant",2),c([u({reflect:!0})],w.prototype,"size",2),c([u({type:Boolean,reflect:!0})],w.prototype,"caret",2),c([u({type:Boolean,reflect:!0})],w.prototype,"disabled",2),c([u({type:Boolean,reflect:!0})],w.prototype,"loading",2),c([u({type:Boolean,reflect:!0})],w.prototype,"outline",2),c([u({type:Boolean,reflect:!0})],w.prototype,"pill",2),c([u({type:Boolean,reflect:!0})],w.prototype,"circle",2),c([u()],w.prototype,"type",2),c([u()],w.prototype,"name",2),c([u()],w.prototype,"value",2),c([u()],w.prototype,"href",2),c([u()],w.prototype,"target",2),c([u()],w.prototype,"rel",2),c([u()],w.prototype,"download",2),c([u()],w.prototype,"form",2),c([u({attribute:"formaction"})],w.prototype,"formAction",2),c([u({attribute:"formenctype"})],w.prototype,"formEnctype",2),c([u({attribute:"formmethod"})],w.prototype,"formMethod",2),c([u({attribute:"formnovalidate",type:Boolean})],w.prototype,"formNoValidate",2),c([u({attribute:"formtarget"})],w.prototype,"formTarget",2),c([ct("disabled",{waitUntilFirstUpdate:!0})],w.prototype,"handleDisabledChange",1),w.define("sl-button");var We=new WeakMap;function He(t){let e=We.get(t);return e||(e=window.getComputedStyle(t,null),We.set(t,e)),e}function lr(t){if(typeof t.checkVisibility=="function")return t.checkVisibility({checkOpacity:!1,checkVisibilityCSS:!0});const e=He(t);return e.visibility!=="hidden"&&e.display!=="none"}function cr(t){const e=He(t),{overflowY:o,overflowX:r}=e;return o==="scroll"||r==="scroll"?!0:o!=="auto"||r!=="auto"?!1:t.scrollHeight>t.clientHeight&&o==="auto"||t.scrollWidth>t.clientWidth&&r==="auto"}function dr(t){const e=t.tagName.toLowerCase(),o=Number(t.getAttribute("tabindex"));return t.hasAttribute("tabindex")&&(isNaN(o)||o<=-1)||t.hasAttribute("disabled")||t.closest("[inert]")||e==="input"&&t.getAttribute("type")==="radio"&&!t.hasAttribute("checked")||!lr(t)?!1:(e==="audio"||e==="video")&&t.hasAttribute("controls")||t.hasAttribute("tabindex")||t.hasAttribute("contenteditable")&&t.getAttribute("contenteditable")!=="false"||["button","input","select","textarea","a","audio","video","summary","iframe"].includes(e)?!0:cr(t)}function ur(t,e){var o;return((o=t.getRootNode({composed:!0}))==null?void 0:o.host)!==e}function je(t){const e=new WeakMap,o=[];function r(i){if(i instanceof Element){if(i.hasAttribute("inert")||i.closest("[inert]")||e.has(i))return;e.set(i,!0),!o.includes(i)&&dr(i)&&o.push(i),i instanceof HTMLSlotElement&&ur(i,t)&&i.assignedElements({flatten:!0}).forEach(n=>{r(n)}),i.shadowRoot!==null&&i.shadowRoot.mode==="open"&&r(i.shadowRoot)}for(const n of i.children)r(n)}return r(t),o.sort((i,n)=>{const s=Number(i.getAttribute("tabindex"))||0;return(Number(n.getAttribute("tabindex"))||0)-s})}function*de(t=document.activeElement){t!=null&&(yield t,"shadowRoot"in t&&t.shadowRoot&&t.shadowRoot.mode!=="closed"&&(yield*ro(de(t.shadowRoot.activeElement))))}function hr(){return[...de()].pop()}var At=[],pr=class{constructor(t){this.tabDirection="forward",this.handleFocusIn=()=>{this.isActive()&&this.checkFocus()},this.handleKeyDown=e=>{var o;if(e.key!=="Tab"||this.isExternalActivated||!this.isActive())return;const r=hr();if(this.previousFocus=r,this.previousFocus&&this.possiblyHasTabbableChildren(this.previousFocus))return;e.shiftKey?this.tabDirection="backward":this.tabDirection="forward";const i=je(this.element);let n=i.findIndex(a=>a===r);this.previousFocus=this.currentFocus;const s=this.tabDirection==="forward"?1:-1;for(;;){n+s>=i.length?n=0:n+s<0?n=i.length-1:n+=s,this.previousFocus=this.currentFocus;const a=i[n];if(this.tabDirection==="backward"&&this.previousFocus&&this.possiblyHasTabbableChildren(this.previousFocus)||a&&this.possiblyHasTabbableChildren(a))return;e.preventDefault(),this.currentFocus=a,(o=this.currentFocus)==null||o.focus({preventScroll:!1});const l=[...de()];if(l.includes(this.currentFocus)||!l.includes(this.previousFocus))break}setTimeout(()=>this.checkFocus())},this.handleKeyUp=()=>{this.tabDirection="forward"},this.element=t,this.elementsWithTabbableControls=["iframe"]}activate(){At.push(this.element),document.addEventListener("focusin",this.handleFocusIn),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp)}deactivate(){At=At.filter(t=>t!==this.element),this.currentFocus=null,document.removeEventListener("focusin",this.handleFocusIn),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp)}isActive(){return At[At.length-1]===this.element}activateExternal(){this.isExternalActivated=!0}deactivateExternal(){this.isExternalActivated=!1}checkFocus(){if(this.isActive()&&!this.isExternalActivated){const t=je(this.element);if(!this.element.matches(":focus-within")){const e=t[0],o=t[t.length-1],r=this.tabDirection==="forward"?e:o;typeof r?.focus=="function"&&(this.currentFocus=r,r.focus({preventScroll:!1}))}}}possiblyHasTabbableChildren(t){return this.elementsWithTabbableControls.includes(t.tagName.toLowerCase())||t.hasAttribute("controls")}},ue=new Set;function fr(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function br(){const t=Number(getComputedStyle(document.body).paddingRight.replace(/px/,""));return isNaN(t)||!t?0:t}function Ue(t){if(ue.add(t),!document.documentElement.classList.contains("sl-scroll-lock")){const e=fr()+br();document.documentElement.classList.add("sl-scroll-lock"),document.documentElement.style.setProperty("--sl-scroll-lock-size",`${e}px`)}}function qe(t){ue.delete(t),ue.size===0&&(document.documentElement.classList.remove("sl-scroll-lock"),document.documentElement.style.removeProperty("--sl-scroll-lock-size"))}var gr=U`
1050
+ :host {
1051
+ --width: 31rem;
1052
+ --header-spacing: var(--sl-spacing-large);
1053
+ --body-spacing: var(--sl-spacing-large);
1054
+ --footer-spacing: var(--sl-spacing-large);
1055
+
1056
+ display: contents;
1057
+ }
1058
+
1059
+ .dialog {
1060
+ display: flex;
1061
+ align-items: center;
1062
+ justify-content: center;
1063
+ position: fixed;
1064
+ top: 0;
1065
+ right: 0;
1066
+ bottom: 0;
1067
+ left: 0;
1068
+ z-index: var(--sl-z-index-dialog);
1069
+ }
1070
+
1071
+ .dialog__panel {
1072
+ display: flex;
1073
+ flex-direction: column;
1074
+ z-index: 2;
1075
+ width: var(--width);
1076
+ max-width: calc(100% - var(--sl-spacing-2x-large));
1077
+ max-height: calc(100% - var(--sl-spacing-2x-large));
1078
+ background-color: var(--sl-panel-background-color);
1079
+ border-radius: var(--sl-border-radius-medium);
1080
+ box-shadow: var(--sl-shadow-x-large);
1081
+ }
1082
+
1083
+ .dialog__panel:focus {
1084
+ outline: none;
1085
+ }
1086
+
1087
+ /* Ensure there's enough vertical padding for phones that don't update vh when chrome appears (e.g. iPhone) */
1088
+ @media screen and (max-width: 420px) {
1089
+ .dialog__panel {
1090
+ max-height: 80vh;
1091
+ }
1092
+ }
1093
+
1094
+ .dialog--open .dialog__panel {
1095
+ display: flex;
1096
+ opacity: 1;
1097
+ }
1098
+
1099
+ .dialog__header {
1100
+ flex: 0 0 auto;
1101
+ display: flex;
1102
+ }
1103
+
1104
+ .dialog__title {
1105
+ flex: 1 1 auto;
1106
+ font: inherit;
1107
+ font-size: var(--sl-font-size-large);
1108
+ line-height: var(--sl-line-height-dense);
1109
+ padding: var(--header-spacing);
1110
+ margin: 0;
1111
+ }
1112
+
1113
+ .dialog__header-actions {
1114
+ flex-shrink: 0;
1115
+ display: flex;
1116
+ flex-wrap: wrap;
1117
+ justify-content: end;
1118
+ gap: var(--sl-spacing-2x-small);
1119
+ padding: 0 var(--header-spacing);
1120
+ }
1121
+
1122
+ .dialog__header-actions sl-icon-button,
1123
+ .dialog__header-actions ::slotted(sl-icon-button) {
1124
+ flex: 0 0 auto;
1125
+ display: flex;
1126
+ align-items: center;
1127
+ font-size: var(--sl-font-size-medium);
1128
+ }
1129
+
1130
+ .dialog__body {
1131
+ flex: 1 1 auto;
1132
+ display: block;
1133
+ padding: var(--body-spacing);
1134
+ overflow: auto;
1135
+ -webkit-overflow-scrolling: touch;
1136
+ }
1137
+
1138
+ .dialog__footer {
1139
+ flex: 0 0 auto;
1140
+ text-align: right;
1141
+ padding: var(--footer-spacing);
1142
+ }
1143
+
1144
+ .dialog__footer ::slotted(sl-button:not(:first-of-type)) {
1145
+ margin-inline-start: var(--sl-spacing-x-small);
1146
+ }
1147
+
1148
+ .dialog:not(.dialog--has-footer) .dialog__footer {
1149
+ display: none;
1150
+ }
1151
+
1152
+ .dialog__overlay {
1153
+ position: fixed;
1154
+ top: 0;
1155
+ right: 0;
1156
+ bottom: 0;
1157
+ left: 0;
1158
+ background-color: var(--sl-overlay-background-color);
1159
+ }
1160
+
1161
+ @media (forced-colors: active) {
1162
+ .dialog__panel {
1163
+ border: solid 1px var(--sl-color-neutral-0);
1164
+ }
1165
+ }
1166
+ `,mr=U`
1167
+ :host {
1168
+ display: inline-block;
1169
+ color: var(--sl-color-neutral-600);
1170
+ }
1171
+
1172
+ .icon-button {
1173
+ flex: 0 0 auto;
1174
+ display: flex;
1175
+ align-items: center;
1176
+ background: none;
1177
+ border: none;
1178
+ border-radius: var(--sl-border-radius-medium);
1179
+ font-size: inherit;
1180
+ color: inherit;
1181
+ padding: var(--sl-spacing-x-small);
1182
+ cursor: pointer;
1183
+ transition: var(--sl-transition-x-fast) color;
1184
+ -webkit-appearance: none;
1185
+ }
1186
+
1187
+ .icon-button:hover:not(.icon-button--disabled),
1188
+ .icon-button:focus-visible:not(.icon-button--disabled) {
1189
+ color: var(--sl-color-primary-600);
1190
+ }
1191
+
1192
+ .icon-button:active:not(.icon-button--disabled) {
1193
+ color: var(--sl-color-primary-700);
1194
+ }
1195
+
1196
+ .icon-button:focus {
1197
+ outline: none;
1198
+ }
1199
+
1200
+ .icon-button--disabled {
1201
+ opacity: 0.5;
1202
+ cursor: not-allowed;
1203
+ }
1204
+
1205
+ .icon-button:focus-visible {
1206
+ outline: var(--sl-focus-ring);
1207
+ outline-offset: var(--sl-focus-ring-offset);
1208
+ }
1209
+
1210
+ .icon-button__icon {
1211
+ pointer-events: none;
1212
+ }
1213
+ `,z=class extends B{constructor(){super(...arguments),this.hasFocus=!1,this.label="",this.disabled=!1}handleBlur(){this.hasFocus=!1,this.emit("sl-blur")}handleFocus(){this.hasFocus=!0,this.emit("sl-focus")}handleClick(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}click(){this.button.click()}focus(t){this.button.focus(t)}blur(){this.button.blur()}render(){const t=!!this.href,e=t?zt`a`:zt`button`;return Ot`
1214
+ <${e}
1215
+ part="base"
1216
+ class=${ot({"icon-button":!0,"icon-button--disabled":!t&&this.disabled,"icon-button--focused":this.hasFocus})}
1217
+ ?disabled=${E(t?void 0:this.disabled)}
1218
+ type=${E(t?void 0:"button")}
1219
+ href=${E(t?this.href:void 0)}
1220
+ target=${E(t?this.target:void 0)}
1221
+ download=${E(t?this.download:void 0)}
1222
+ rel=${E(t&&this.target?"noreferrer noopener":void 0)}
1223
+ role=${E(t?void 0:"button")}
1224
+ aria-disabled=${this.disabled?"true":"false"}
1225
+ aria-label="${this.label}"
1226
+ tabindex=${this.disabled?"-1":"0"}
1227
+ @blur=${this.handleBlur}
1228
+ @focus=${this.handleFocus}
1229
+ @click=${this.handleClick}
1230
+ >
1231
+ <sl-icon
1232
+ class="icon-button__icon"
1233
+ name=${E(this.name)}
1234
+ library=${E(this.library)}
1235
+ src=${E(this.src)}
1236
+ aria-hidden="true"
1237
+ ></sl-icon>
1238
+ </${e}>
1239
+ `}};z.styles=[Z,mr],z.dependencies={"sl-icon":D},c([I(".icon-button")],z.prototype,"button",2),c([Lt()],z.prototype,"hasFocus",2),c([u()],z.prototype,"name",2),c([u()],z.prototype,"library",2),c([u()],z.prototype,"src",2),c([u()],z.prototype,"href",2),c([u()],z.prototype,"target",2),c([u()],z.prototype,"download",2),c([u()],z.prototype,"label",2),c([u({type:Boolean,reflect:!0})],z.prototype,"disabled",2);var H=class extends B{constructor(){super(...arguments),this.hasSlotController=new Ie(this,"footer"),this.localize=new Wt(this),this.modal=new pr(this),this.open=!1,this.label="",this.noHeader=!1,this.handleDocumentKeyDown=t=>{t.key==="Escape"&&this.modal.isActive()&&this.open&&(t.stopPropagation(),this.requestClose("keyboard"))}}firstUpdated(){this.dialog.hidden=!this.open,this.open&&(this.addOpenListeners(),this.modal.activate(),Ue(this))}disconnectedCallback(){var t;super.disconnectedCallback(),this.modal.deactivate(),qe(this),(t=this.closeWatcher)==null||t.destroy()}requestClose(t){if(this.emit("sl-request-close",{cancelable:!0,detail:{source:t}}).defaultPrevented){const o=st(this,"dialog.denyClose",{dir:this.localize.dir()});at(this.panel,o.keyframes,o.options);return}this.hide()}addOpenListeners(){var t;"CloseWatcher"in window?((t=this.closeWatcher)==null||t.destroy(),this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>this.requestClose("keyboard")):document.addEventListener("keydown",this.handleDocumentKeyDown)}removeOpenListeners(){var t;(t=this.closeWatcher)==null||t.destroy(),document.removeEventListener("keydown",this.handleDocumentKeyDown)}async handleOpenChange(){if(this.open){this.emit("sl-show"),this.addOpenListeners(),this.originalTrigger=document.activeElement,this.modal.activate(),Ue(this);const t=this.querySelector("[autofocus]");t&&t.removeAttribute("autofocus"),await Promise.all([ft(this.dialog),ft(this.overlay)]),this.dialog.hidden=!1,requestAnimationFrame(()=>{this.emit("sl-initial-focus",{cancelable:!0}).defaultPrevented||(t?t.focus({preventScroll:!0}):this.panel.focus({preventScroll:!0})),t&&t.setAttribute("autofocus","")});const e=st(this,"dialog.show",{dir:this.localize.dir()}),o=st(this,"dialog.overlay.show",{dir:this.localize.dir()});await Promise.all([at(this.panel,e.keyframes,e.options),at(this.overlay,o.keyframes,o.options)]),this.emit("sl-after-show")}else{this.emit("sl-hide"),this.removeOpenListeners(),this.modal.deactivate(),await Promise.all([ft(this.dialog),ft(this.overlay)]);const t=st(this,"dialog.hide",{dir:this.localize.dir()}),e=st(this,"dialog.overlay.hide",{dir:this.localize.dir()});await Promise.all([at(this.overlay,e.keyframes,e.options).then(()=>{this.overlay.hidden=!0}),at(this.panel,t.keyframes,t.options).then(()=>{this.panel.hidden=!0})]),this.dialog.hidden=!0,this.overlay.hidden=!1,this.panel.hidden=!1,qe(this);const o=this.originalTrigger;typeof o?.focus=="function"&&setTimeout(()=>o.focus()),this.emit("sl-after-hide")}}async show(){if(!this.open)return this.open=!0,It(this,"sl-after-show")}async hide(){if(this.open)return this.open=!1,It(this,"sl-after-hide")}render(){return Y`
1240
+ <div
1241
+ part="base"
1242
+ class=${ot({dialog:!0,"dialog--open":this.open,"dialog--has-footer":this.hasSlotController.test("footer")})}
1243
+ >
1244
+ <div part="overlay" class="dialog__overlay" @click=${()=>this.requestClose("overlay")} tabindex="-1"></div>
1245
+
1246
+ <div
1247
+ part="panel"
1248
+ class="dialog__panel"
1249
+ role="dialog"
1250
+ aria-modal="true"
1251
+ aria-hidden=${this.open?"false":"true"}
1252
+ aria-label=${E(this.noHeader?this.label:void 0)}
1253
+ aria-labelledby=${E(this.noHeader?void 0:"title")}
1254
+ tabindex="-1"
1255
+ >
1256
+ ${this.noHeader?"":Y`
1257
+ <header part="header" class="dialog__header">
1258
+ <h2 part="title" class="dialog__title" id="title">
1259
+ <slot name="label"> ${this.label.length>0?this.label:String.fromCharCode(65279)} </slot>
1260
+ </h2>
1261
+ <div part="header-actions" class="dialog__header-actions">
1262
+ <slot name="header-actions"></slot>
1263
+ <sl-icon-button
1264
+ part="close-button"
1265
+ exportparts="base:close-button__base"
1266
+ class="dialog__close"
1267
+ name="x-lg"
1268
+ label=${this.localize.term("close")}
1269
+ library="system"
1270
+ @click="${()=>this.requestClose("close-button")}"
1271
+ ></sl-icon-button>
1272
+ </div>
1273
+ </header>
1274
+ `}
1275
+ ${""}
1276
+ <div part="body" class="dialog__body" tabindex="-1"><slot></slot></div>
1277
+
1278
+ <footer part="footer" class="dialog__footer">
1279
+ <slot name="footer"></slot>
1280
+ </footer>
1281
+ </div>
1282
+ </div>
1283
+ `}};H.styles=[Z,gr],H.dependencies={"sl-icon-button":z},c([I(".dialog")],H.prototype,"dialog",2),c([I(".dialog__panel")],H.prototype,"panel",2),c([I(".dialog__overlay")],H.prototype,"overlay",2),c([u({type:Boolean,reflect:!0})],H.prototype,"open",2),c([u({reflect:!0})],H.prototype,"label",2),c([u({attribute:"no-header",type:Boolean,reflect:!0})],H.prototype,"noHeader",2),c([ct("open",{waitUntilFirstUpdate:!0})],H.prototype,"handleOpenChange",1),nt("dialog.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:250,easing:"ease"}}),nt("dialog.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:250,easing:"ease"}}),nt("dialog.denyClose",{keyframes:[{scale:1},{scale:1.02},{scale:1}],options:{duration:250}}),nt("dialog.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:250}}),nt("dialog.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:250}}),H.define("sl-dialog"),D.define("sl-icon"),z.define("sl-icon-button");export{uo as r,Kt as s,rr as v};
1284
+ //# sourceMappingURL=vendor-jQ8cxMpw.esm.js.map