@foxy.io/elements 1.24.0-beta.3 → 1.24.0-beta.5

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/cdn/foxy-access-recovery-form.js +1 -1
  2. package/dist/cdn/foxy-address-card.js +1 -1
  3. package/dist/cdn/foxy-address-form.js +1 -1
  4. package/dist/cdn/foxy-admin-subscription-card.js +1 -1
  5. package/dist/cdn/foxy-api-browser.js +1 -1
  6. package/dist/cdn/foxy-applied-coupon-code-card.js +1 -1
  7. package/dist/cdn/foxy-applied-coupon-code-form.js +1 -1
  8. package/dist/cdn/foxy-applied-tax-card.js +1 -1
  9. package/dist/cdn/foxy-attribute-card.js +1 -1
  10. package/dist/cdn/foxy-attribute-form.js +1 -1
  11. package/dist/cdn/foxy-cancellation-form.js +1 -1
  12. package/dist/cdn/foxy-cart-card.js +1 -1
  13. package/dist/cdn/foxy-cart-form.js +1 -1
  14. package/dist/cdn/foxy-client-card.js +1 -1
  15. package/dist/cdn/foxy-client-form.js +1 -1
  16. package/dist/cdn/foxy-collection-page.js +1 -1
  17. package/dist/cdn/foxy-collection-pages.js +1 -1
  18. package/dist/cdn/foxy-copy-to-clipboard.js +1 -1
  19. package/dist/cdn/foxy-coupon-card.js +1 -1
  20. package/dist/cdn/foxy-coupon-code-form.js +1 -1
  21. package/dist/cdn/foxy-coupon-codes-form.js +1 -1
  22. package/dist/cdn/foxy-coupon-detail-card.js +1 -1
  23. package/dist/cdn/foxy-coupon-form.js +1 -1
  24. package/dist/cdn/foxy-custom-field-card.js +1 -1
  25. package/dist/cdn/foxy-custom-field-form.js +1 -1
  26. package/dist/cdn/foxy-customer-api.js +1 -1
  27. package/dist/cdn/foxy-customer-card.js +1 -1
  28. package/dist/cdn/foxy-customer-form.js +1 -1
  29. package/dist/cdn/foxy-customer-portal-settings.js +1 -1
  30. package/dist/cdn/foxy-customer-portal.js +2 -2
  31. package/dist/cdn/foxy-customer.js +1 -1
  32. package/dist/cdn/foxy-customers-table.js +1 -1
  33. package/dist/cdn/foxy-discount-builder.js +1 -1
  34. package/dist/cdn/foxy-discount-card.js +1 -1
  35. package/dist/cdn/foxy-discount-detail-card.js +1 -1
  36. package/dist/cdn/foxy-donation.js +1 -1
  37. package/dist/cdn/foxy-downloadable-card.js +1 -1
  38. package/dist/cdn/foxy-downloadable-form.js +1 -1
  39. package/dist/cdn/foxy-email-template-card.js +1 -1
  40. package/dist/cdn/foxy-email-template-form.js +1 -1
  41. package/dist/cdn/foxy-error-entry-card.js +1 -1
  42. package/dist/cdn/foxy-filter-attribute-card.js +1 -1
  43. package/dist/cdn/foxy-filter-attribute-form.js +1 -1
  44. package/dist/cdn/foxy-form-dialog.js +1 -1
  45. package/dist/cdn/foxy-generate-codes-form.js +1 -1
  46. package/dist/cdn/foxy-gift-card-card.js +1 -1
  47. package/dist/cdn/foxy-gift-card-code-form.js +1 -1
  48. package/dist/cdn/foxy-gift-card-code-log-card.js +1 -1
  49. package/dist/cdn/foxy-gift-card-codes-form.js +1 -1
  50. package/dist/cdn/foxy-gift-card-form.js +1 -1
  51. package/dist/cdn/foxy-i18n-editor.js +2 -2
  52. package/dist/cdn/foxy-i18n.js +1 -1
  53. package/dist/cdn/foxy-integration-card.js +1 -1
  54. package/dist/cdn/foxy-integration-form.js +1 -1
  55. package/dist/cdn/foxy-item-card.js +1 -1
  56. package/dist/cdn/foxy-item-category-card.js +1 -1
  57. package/dist/cdn/foxy-item-category-form.js +1 -1
  58. package/dist/cdn/foxy-item-form.js +1 -1
  59. package/dist/cdn/foxy-item-option-card.js +1 -1
  60. package/dist/cdn/foxy-item-option-form.js +1 -1
  61. package/dist/cdn/foxy-items-form.js +1 -1
  62. package/dist/cdn/foxy-nucleon-element.js +1 -1
  63. package/dist/cdn/foxy-pagination.js +1 -1
  64. package/dist/cdn/foxy-passkey-card.js +1 -1
  65. package/dist/cdn/foxy-passkey-form.js +1 -1
  66. package/dist/cdn/foxy-payment-card.js +1 -1
  67. package/dist/cdn/foxy-payment-method-card.js +1 -1
  68. package/dist/cdn/foxy-payments-api-fraud-protection-card.js +1 -1
  69. package/dist/cdn/foxy-payments-api-fraud-protection-form.js +1 -1
  70. package/dist/cdn/foxy-payments-api-payment-method-card.js +1 -1
  71. package/dist/cdn/foxy-payments-api-payment-method-form.js +1 -1
  72. package/dist/cdn/foxy-payments-api-payment-preset-card.js +1 -1
  73. package/dist/cdn/foxy-payments-api-payment-preset-form.js +1 -1
  74. package/dist/cdn/foxy-payments-api.js +1 -1
  75. package/dist/cdn/foxy-query-builder.js +1 -1
  76. package/dist/cdn/foxy-report-form.js +4 -4
  77. package/dist/cdn/foxy-reports-table.js +1 -1
  78. package/dist/cdn/foxy-shipment-card.js +1 -1
  79. package/dist/cdn/foxy-shipping-method-card.js +1 -1
  80. package/dist/cdn/foxy-sign-in-form.js +1 -1
  81. package/dist/cdn/foxy-spinner.js +2 -2
  82. package/dist/cdn/foxy-store-card.js +1 -1
  83. package/dist/cdn/foxy-store-form.js +1 -1
  84. package/dist/cdn/foxy-store-shipping-method-form.js +1 -1
  85. package/dist/cdn/foxy-subscription-card.js +1 -1
  86. package/dist/cdn/foxy-subscription-form.js +2 -2
  87. package/dist/cdn/foxy-subscription-settings-form.js +1 -1
  88. package/dist/cdn/foxy-subscriptions-table.js +1 -1
  89. package/dist/cdn/foxy-table.js +1 -1
  90. package/dist/cdn/foxy-tax-card.js +1 -1
  91. package/dist/cdn/foxy-tax-form.js +1 -1
  92. package/dist/cdn/foxy-template-config-form.js +1 -1
  93. package/dist/cdn/foxy-template-form.js +1 -1
  94. package/dist/cdn/foxy-template-set-card.js +1 -1
  95. package/dist/cdn/foxy-template-set-form.js +1 -1
  96. package/dist/cdn/foxy-transaction-card.js +1 -1
  97. package/dist/cdn/foxy-transaction.js +1 -1
  98. package/dist/cdn/foxy-transactions-table.js +1 -1
  99. package/dist/cdn/foxy-user-card.js +1 -1
  100. package/dist/cdn/foxy-user-form.js +1 -1
  101. package/dist/cdn/foxy-users-table.js +1 -1
  102. package/dist/cdn/foxy-webhook-card.js +1 -1
  103. package/dist/cdn/foxy-webhook-form.js +1 -1
  104. package/dist/cdn/foxy-webhook-log-card.js +1 -1
  105. package/dist/cdn/foxy-webhook-status-card.js +1 -1
  106. package/dist/cdn/{shared-9caffb4d.js → shared-017ab35f.js} +1 -1
  107. package/dist/cdn/{shared-e6828dbf.js → shared-0689b25a.js} +5 -5
  108. package/dist/cdn/shared-0dabe195.js +15 -0
  109. package/dist/cdn/{shared-1b060170.js → shared-125d1a00.js} +1 -1
  110. package/dist/cdn/shared-13cc4ed4.js +9 -0
  111. package/dist/cdn/{shared-ff992ead.js → shared-15fe0f50.js} +1 -1
  112. package/dist/cdn/{shared-379b37e6.js → shared-19c9fe00.js} +7 -11
  113. package/dist/cdn/shared-1b2e0709.js +1 -0
  114. package/dist/cdn/shared-1e43b4db.js +1 -0
  115. package/dist/cdn/{shared-c7f2f1ab.js → shared-1fd59009.js} +1 -1
  116. package/dist/cdn/{shared-31651a9c.js → shared-2fa6a5a0.js} +1 -1
  117. package/dist/cdn/{shared-65318cc1.js → shared-3164d0c3.js} +1 -1
  118. package/dist/cdn/{shared-e10052d0.js → shared-31a891e8.js} +3 -3
  119. package/dist/cdn/{shared-b3ac59eb.js → shared-403af08d.js} +2 -2
  120. package/dist/cdn/{shared-a92ae606.js → shared-421e46e9.js} +1 -1
  121. package/dist/cdn/{shared-dccf0420.js → shared-42adf053.js} +1 -1
  122. package/dist/cdn/{shared-77a4d8e8.js → shared-46f3f71c.js} +1 -1
  123. package/dist/cdn/{shared-e84fa0ea.js → shared-4966b3e4.js} +1 -1
  124. package/dist/cdn/{shared-b48a83b0.js → shared-4a0298cb.js} +1 -1
  125. package/dist/cdn/{shared-17d0db7f.js → shared-4bd1efd7.js} +3 -3
  126. package/dist/cdn/{shared-51d28e6d.js → shared-527abf31.js} +1 -1
  127. package/dist/cdn/{shared-fe54babe.js → shared-53532131.js} +1 -1
  128. package/dist/cdn/{shared-9c626d58.js → shared-5616a12f.js} +1 -1
  129. package/dist/cdn/{shared-c97e0d6e.js → shared-57922341.js} +1 -1
  130. package/dist/cdn/shared-619bcf83.js +1 -0
  131. package/dist/cdn/{shared-ba658670.js → shared-6273b7e1.js} +1 -1
  132. package/dist/cdn/{shared-4904bca4.js → shared-639dda4b.js} +1 -1
  133. package/dist/cdn/{shared-d14c2060.js → shared-6b0498b2.js} +3 -3
  134. package/dist/cdn/{shared-6f84ac3e.js → shared-6b3be508.js} +1 -1
  135. package/dist/cdn/{shared-c6c6ba69.js → shared-6dffe67d.js} +1 -1
  136. package/dist/cdn/{shared-4c956a8e.js → shared-72a13fda.js} +1 -1
  137. package/dist/cdn/{shared-4b67d699.js → shared-763a6797.js} +1 -1
  138. package/dist/cdn/shared-7680d300.js +122 -0
  139. package/dist/cdn/shared-79d01877.js +1 -0
  140. package/dist/cdn/{shared-6abdfcf2.js → shared-7bf6e728.js} +1 -1
  141. package/dist/cdn/{shared-69a21b9d.js → shared-7d4e0011.js} +1 -1
  142. package/dist/cdn/shared-7e887e5b.js +1 -0
  143. package/dist/cdn/{shared-8474bc4a.js → shared-7ead930c.js} +1 -1
  144. package/dist/cdn/shared-7f33a83a.js +12 -12
  145. package/dist/cdn/{shared-6dc64a17.js → shared-8128b5e3.js} +1 -1
  146. package/dist/cdn/{shared-984fcdf5.js → shared-8134d8a7.js} +3 -3
  147. package/dist/cdn/{shared-c4240bc6.js → shared-8465a37a.js} +1 -1
  148. package/dist/cdn/{shared-e7c3b7b6.js → shared-848813a4.js} +1 -1
  149. package/dist/cdn/shared-8528906b.js +1 -0
  150. package/dist/cdn/{shared-a3c73e91.js → shared-897ab5e6.js} +1 -1
  151. package/dist/cdn/{shared-4bbd600d.js → shared-8fbab85c.js} +1 -1
  152. package/dist/cdn/{shared-4dc58b73.js → shared-90be9ac7.js} +1 -1
  153. package/dist/cdn/{shared-0a248c0d.js → shared-91eb066c.js} +1 -1
  154. package/dist/cdn/{shared-1d28220a.js → shared-9765be8f.js} +1 -1
  155. package/dist/cdn/{shared-e6997950.js → shared-9bdd5400.js} +1 -1
  156. package/dist/cdn/{shared-dfe2602a.js → shared-a134d313.js} +1 -1
  157. package/dist/cdn/shared-a6517170.js +1 -0
  158. package/dist/cdn/shared-a7475f62.js +212 -0
  159. package/dist/cdn/shared-a88c5cf1.js +29 -0
  160. package/dist/cdn/{shared-479ad951.js → shared-a96a2154.js} +1 -1
  161. package/dist/cdn/shared-aa22ee61.js +1 -0
  162. package/dist/cdn/shared-aa569a99.js +804 -0
  163. package/dist/cdn/{shared-e8e92fe3.js → shared-ad0256d0.js} +2 -2
  164. package/dist/cdn/{shared-25f64060.js → shared-b334c8b6.js} +1 -1
  165. package/dist/cdn/{shared-1d08a5ad.js → shared-bbbb8894.js} +1 -1
  166. package/dist/cdn/{shared-bafcab47.js → shared-bf2113a4.js} +3 -3
  167. package/dist/cdn/{shared-88e36564.js → shared-c541c9e9.js} +26 -27
  168. package/dist/cdn/{shared-36725fe3.js → shared-c758220c.js} +1 -1
  169. package/dist/cdn/{shared-4674063d.js → shared-c97f7178.js} +27 -27
  170. package/dist/cdn/shared-d2222c8d.js +1 -0
  171. package/dist/cdn/{shared-64f98a0f.js → shared-db06114b.js} +7 -2
  172. package/dist/cdn/{shared-665d6cc4.js → shared-e5786b8b.js} +1 -1
  173. package/dist/cdn/shared-e640e9fa.js +1 -0
  174. package/dist/cdn/{shared-7995407d.js → shared-eb232194.js} +3 -3
  175. package/dist/cdn/{shared-bdb51db9.js → shared-f4822b9e.js} +1 -1
  176. package/dist/cdn/{shared-db21f6db.js → shared-fa5f0117.js} +2 -2
  177. package/dist/cdn/shared-fc77174e.js +1 -0
  178. package/dist/cdn/shared-fec6fd04.js +1 -0
  179. package/dist/cdn/translations/address-form/en.json +577 -0
  180. package/dist/cdn/translations/customer/en.json +577 -0
  181. package/dist/cdn/translations/customer-portal/en.json +579 -1
  182. package/dist/cdn/translations/error-entry-card/en.json +4 -0
  183. package/dist/cdn/translations/webhook-form/en.json +1 -1
  184. package/dist/elements/internal/InternalRadioGroupControl/InternalRadioGroupControl.js +2 -1
  185. package/dist/elements/internal/InternalRadioGroupControl/InternalRadioGroupControl.js.map +1 -1
  186. package/dist/elements/public/AddressForm/AddressForm.d.ts +2 -1
  187. package/dist/elements/public/AddressForm/AddressForm.js +53 -17
  188. package/dist/elements/public/AddressForm/AddressForm.js.map +1 -1
  189. package/dist/elements/public/AddressForm/countries.d.ts +1 -1
  190. package/dist/elements/public/AddressForm/countries.js +554 -251
  191. package/dist/elements/public/AddressForm/countries.js.map +1 -1
  192. package/dist/elements/public/ErrorEntryCard/ErrorEntryCard.d.ts +0 -1
  193. package/dist/elements/public/ErrorEntryCard/ErrorEntryCard.js +34 -30
  194. package/dist/elements/public/ErrorEntryCard/ErrorEntryCard.js.map +1 -1
  195. package/dist/elements/public/ErrorEntryCard/ResourceViewer.js +9 -0
  196. package/dist/elements/public/ErrorEntryCard/ResourceViewer.js.map +1 -1
  197. package/dist/elements/public/ItemCategoryForm/ItemCategoryForm.js +3 -0
  198. package/dist/elements/public/ItemCategoryForm/ItemCategoryForm.js.map +1 -1
  199. package/dist/elements/public/WebhookForm/WebhookForm.d.ts +2 -0
  200. package/dist/elements/public/WebhookForm/WebhookForm.js +7 -0
  201. package/dist/elements/public/WebhookForm/WebhookForm.js.map +1 -1
  202. package/package.json +10 -10
  203. package/dist/cdn/shared-09d4fbb8.js +0 -29
  204. package/dist/cdn/shared-1eac92fa.js +0 -1
  205. package/dist/cdn/shared-307262a1.js +0 -15
  206. package/dist/cdn/shared-332f2997.js +0 -1
  207. package/dist/cdn/shared-39f3b48d.js +0 -1
  208. package/dist/cdn/shared-432c5183.js +0 -9
  209. package/dist/cdn/shared-4dee79d4.js +0 -1
  210. package/dist/cdn/shared-53061389.js +0 -1
  211. package/dist/cdn/shared-59042137.js +0 -201
  212. package/dist/cdn/shared-65ba8b39.js +0 -1
  213. package/dist/cdn/shared-7f5618ba.js +0 -1
  214. package/dist/cdn/shared-92f27a38.js +0 -1
  215. package/dist/cdn/shared-b0f534ef.js +0 -1
  216. package/dist/cdn/shared-be24dd36.js +0 -804
  217. package/dist/cdn/shared-bf62a65b.js +0 -1
  218. package/dist/cdn/shared-c2d3b32b.js +0 -1
  219. package/dist/cdn/shared-cf269a17.js +0 -1
  220. package/dist/cdn/shared-fef9ecc1.js +0 -122
  221. package/dist/elements/public/AddressForm/regions.d.ts +0 -1
  222. package/dist/elements/public/AddressForm/regions.js +0 -67
  223. package/dist/elements/public/AddressForm/regions.js.map +0 -1
  224. /package/dist/cdn/{shared-64657919.js → shared-343d1fd7.js} +0 -0
  225. /package/dist/cdn/{shared-d6276c83.js → shared-3ab0306f.js} +0 -0
  226. /package/dist/cdn/{shared-e6f3e9f0.js → shared-bb05cfed.js} +0 -0
  227. /package/dist/cdn/{shared-99065f2a.js → shared-d7be11de.js} +0 -0
  228. /package/dist/cdn/{shared-0479553e.js → shared-f9180815.js} +0 -0
@@ -1 +1 @@
1
- import"./shared-e6828dbf.js";import"./shared-e6997950.js";import"./shared-6dc64a17.js";import{I as e}from"./shared-25f64060.js";import"./foxy-spinner.js";import"./shared-77a4d8e8.js";import{v as t}from"./shared-b738ee96.js";import{S as s,R as r,a as i}from"./shared-09d4fbb8.js";import{i as l}from"./shared-d3bf9ac0.js";import{C as a}from"./shared-4c956a8e.js";import{G as n}from"./shared-4904bca4.js";import{s as o,h as d}from"./shared-7f33a83a.js";import{m as h}from"./shared-307262a1.js";let c,m,C,f,p=e=>e;const g=[{property:"is_merchant",icon:o(c||(c=p`<svg class="fill-current h-full w-full" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M22.8961 8.89L21.7932 4.52C21.5622 3.62 20.7429 3 19.7871 3H5.1979C4.25259 3 3.42283 3.63 3.20225 4.52L2.0994 8.89C1.84732 9.91 2.07839 10.95 2.75061 11.77C2.83464 11.88 2.95017 11.96 3.0447 12.06V19C3.0447 20.1 3.99001 21 5.14538 21H19.8501C21.0055 21 21.9508 20.1 21.9508 19V12.06C22.0453 11.97 22.1609 11.88 22.2449 11.78C22.9171 10.96 23.1587 9.91 22.8961 8.89ZM19.7556 4.99L20.8584 9.36C20.9635 9.78 20.8689 10.2 20.5958 10.53C20.4488 10.71 20.1337 11 19.6085 11C18.9678 11 18.4111 10.51 18.3376 9.86L17.7284 5L19.7556 4.99ZM13.5481 5H15.6067L16.1739 9.52C16.2264 9.91 16.1004 10.3 15.8273 10.59C15.5962 10.85 15.2601 11 14.8295 11C14.1258 11 13.5481 10.41 13.5481 9.69V5ZM8.81106 9.52L9.38874 5H11.4474V9.69C11.4474 10.41 10.8697 11 10.0925 11C9.73536 11 9.40975 10.85 9.15767 10.59C8.89509 10.3 8.76905 9.91 8.81106 9.52ZM4.13705 9.36L5.1979 5H7.26706L6.65787 9.86C6.57384 10.51 6.02766 11 5.38696 11C4.87229 11 4.54669 10.71 4.41014 10.53C4.12655 10.21 4.03202 9.78 4.13705 9.36ZM5.14538 19V12.97C5.22941 12.98 5.30293 13 5.38696 13C6.30075 13 7.13052 12.64 7.73971 12.05C8.36992 12.65 9.21019 13 10.166 13C11.0798 13 11.8991 12.64 12.5082 12.07C13.1279 12.64 13.9682 13 14.9135 13C15.7958 13 16.6361 12.65 17.2663 12.05C17.8755 12.64 18.7052 13 19.619 13C19.7031 13 19.7766 12.98 19.8606 12.97V19H5.14538Z" /></svg>`)),key:"merchant"},{property:"is_programmer",icon:o(m||(m=p`<svg class="fill-current h-full w-full" viewBox="0 0 20 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0 3C0 1.34315 1.34315 0 3 0H17C18.6569 0 20 1.34315 20 3V15C20 16.6569 18.6569 18 17 18H3C1.34315 18 0 16.6569 0 15V3ZM3 2C2.44772 2 2 2.44772 2 3V15C2 15.5523 2.44772 16 3 16H17C17.5523 16 18 15.5523 18 15V3C18 2.44772 17.5523 2 17 2H3ZM4.29289 4.29289C4.68342 3.90237 5.31658 3.90237 5.70711 4.29289L9.70711 8.29289C9.89464 8.48043 10 8.73478 10 9C10 9.26522 9.89464 9.51957 9.70711 9.70711L5.70711 13.7071C5.31658 14.0976 4.68342 14.0976 4.29289 13.7071C3.90237 13.3166 3.90237 12.6834 4.29289 12.2929L7.58579 9L4.29289 5.70711C3.90237 5.31658 3.90237 4.68342 4.29289 4.29289ZM9 13C9 12.4477 9.44771 12 10 12H15C15.5523 12 16 12.4477 16 13C16 13.5523 15.5523 14 15 14H10C9.44771 14 9 13.5523 9 13Z"/></svg>`)),key:"backend_developer"},{property:"is_front_end_developer",icon:o(C||(C=p`<svg class="fill-current h-full w-full" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M14.2747 4.03847C14.8058 4.1902 15.1132 4.74368 14.9615 5.27472L10.9615 19.2747C10.8098 19.8058 10.2563 20.1132 9.72528 19.9615C9.19424 19.8098 8.88675 19.2563 9.03848 18.7253L13.0385 4.72528C13.1902 4.19424 13.7437 3.88675 14.2747 4.03847ZM6.70711 7.29289C7.09763 7.68342 7.09763 8.31658 6.70711 8.7071L3.41421 12L6.70711 15.2929C7.09763 15.6834 7.09763 16.3166 6.70711 16.7071C6.31658 17.0976 5.68342 17.0976 5.29289 16.7071L1.29289 12.7071C0.902369 12.3166 0.902369 11.6834 1.29289 11.2929L5.29289 7.29289C5.68342 6.90237 6.31658 6.90237 6.70711 7.29289ZM17.2929 7.29289C17.6834 6.90237 18.3166 6.90237 18.7071 7.29289L22.7071 11.2929C22.8946 11.4804 23 11.7348 23 12C23 12.2652 22.8946 12.5196 22.7071 12.7071L18.7071 16.7071C18.3166 17.0976 17.6834 17.0976 17.2929 16.7071C16.9024 16.3166 16.9024 15.6834 17.2929 15.2929L20.5858 12L17.2929 8.70711C16.9024 8.31658 16.9024 7.68342 17.2929 7.29289Z" /></svg>`)),key:"frontend_developer"},{property:"is_designer",icon:o(f||(f=p`<svg class="fill-current h-full w-full" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10 20C4.49 20 0 15.51 0 10C0 4.49 4.49 0 10 0C15.51 0 20 4.04 20 9C20 12.31 17.31 15 14 15H12.23C11.95 15 11.73 15.22 11.73 15.5C11.73 15.62 11.78 15.73 11.86 15.83C12.27 16.3 12.5 16.89 12.5 17.5C12.5 18.88 11.38 20 10 20ZM10 2C5.59 2 2 5.59 2 10C2 14.41 5.59 18 10 18C10.28 18 10.5 17.78 10.5 17.5C10.5 17.34 10.42 17.22 10.36 17.15C9.95 16.69 9.73 16.1 9.73 15.5C9.73 14.12 10.85 13 12.23 13H14C16.21 13 18 11.21 18 9C18 5.14 14.41 2 10 2Z" /><path d="M4.5 11C5.32843 11 6 10.3284 6 9.5C6 8.67157 5.32843 8 4.5 8C3.67157 8 3 8.67157 3 9.5C3 10.3284 3.67157 11 4.5 11Z" /><path d="M7.5 7C8.32843 7 9 6.32843 9 5.5C9 4.67157 8.32843 4 7.5 4C6.67157 4 6 4.67157 6 5.5C6 6.32843 6.67157 7 7.5 7Z" /><path d="M12.5 7C13.3284 7 14 6.32843 14 5.5C14 4.67157 13.3284 4 12.5 4C11.6716 4 11 4.67157 11 5.5C11 6.32843 11.6716 7 12.5 7Z" /><path d="M15.5 11C16.3284 11 17 10.3284 17 9.5C17 8.67157 16.3284 8 15.5 8C14.6716 8 14 8.67157 14 9.5C14 10.3284 14.6716 11 15.5 11Z" /></svg>`)),key:"designer"}];let _,u,v,y,x,$=e=>e;const b=s(r(i(e,"user-form")));class w extends b{constructor(){super(...arguments),this.templates={},this.__getValidator=h((e=>()=>!this.errors.some((t=>t.startsWith(e))))),this.__bindField=h((e=>t=>{const s=t.target;this.edit({[e]:s.value})}))}static get scopedElements(){return{"foxy-internal-confirm-dialog":customElements.get("foxy-internal-confirm-dialog"),"foxy-internal-sandbox":customElements.get("foxy-internal-sandbox"),"vaadin-text-field":customElements.get("vaadin-text-field"),"vaadin-button":customElements.get("vaadin-button"),"foxy-spinner":customElements.get("foxy-spinner"),"x-checkbox":a,"foxy-i18n":customElements.get("foxy-i18n"),"x-group":n}}static get v8n(){return[({first_name:e})=>!e||e.length<=50||"first_name_too_long",({last_name:e})=>!e||e.length<=50||"last_name_too_long",({email:e})=>e&&e.length>0||"email_required",({email:e})=>!e||e.length<=100||"email_too_long",({email:e})=>!e||t(e)||"email_invalid_email",({phone:e})=>!e||e.length<=50||"phone_too_long"]}renderBody(){const e=this.hiddenSelector,t=this.href?"delete":"create";return d(_||(_=$` <div class="grid sm-grid-cols-2 gap-m"> ${0} ${0} ${0} </div> `),["first_name","last_name","email","phone"].map((e=>this.__renderField(e))),e.matches("role",!0)?"":this.__renderRole(),e.matches(t,!0)?"":this.__renderAction())}__renderField(e){const t=e.replace("_","-");if(!this.hiddenSelector.matches(t))return d(u||(u=$` <div> ${0} <vaadin-text-field error-message="${0}" data-testid="${0}" label="${0}" class="w-full" value="${0}" ?disabled="${0}" ?readonly="${0}" .checkValidity="${0}" @input="${0}" @keydown="${0}"> </vaadin-text-field> ${0} </div> `),this.renderTemplateOrSlot(`${t}:before`),this.__getErrorMessage(e),e,this.t(e),l(this.form[e]),!this.in("idle")||this.disabledSelector.matches(t,!0),this.readonlySelector.matches(t,!0),this.__getValidator(e),this.__bindField(e),this.__handleKeyDown,this.renderTemplateOrSlot(`${t}:after`))}__renderRole(){const e=!this.in("idle")||this.disabledSelector.matches("role",!0);return d(v||(v=$` <div class="sm-col-span-2"> ${0} <x-group data-testid="role" frame> ${0} </x-group> ${0} </div> `),this.renderTemplateOrSlot("role:before"),g.map(((t,s)=>d(y||(y=$` <hr class="${0}" style="margin-left:calc((var(--lumo-space-m) * 2) + 1.125rem)"> <x-checkbox data-testclass="role-option" class="w-full p-m" ?readonly="${0}" ?disabled="${0}" ?checked="${0}" @change="${0}"> <div class="flex items-start leading-s"> <div class="flex-1 flex flex-col"> <foxy-i18n key="${0}" infer=""></foxy-i18n> <foxy-i18n class="text-s ${0}" infer="" key="${0}_explainer"> </foxy-i18n> </div> <div class="mt-xs" style="width:1.125rem;height:1.125rem">${0}</div> </div> </x-checkbox> `),s>0?"border-contrast-10":"hidden",this.readonlySelector.matches("role",!0),e,this.form[t.property],(e=>{const s=e.currentTarget;this.edit({[t.property]:s.checked})}),t.key,e?"":"text-secondary",t.key,t.icon))),this.renderTemplateOrSlot("role:after"))}__renderAction(){const e=this.in({idle:{template:{dirty:"valid"}}}),t=this.in({idle:{snapshot:{dirty:"valid"}}}),s=e||t,r=this.href?"delete":"create",i=this.in({idle:"template"})&&!s||this.in("busy")||this.in("fail")||this.disabledSelector.matches(r,!0);return d(x||(x=$` <div class="sm-col-span-2"> ${0} <foxy-internal-confirm-dialog data-testid="confirm" message="delete_prompt" confirm="delete" cancel="cancel" header="delete" theme="primary error" lang="${0}" ns="${0}" id="confirm" @hide="${0}"> </foxy-internal-confirm-dialog> <vaadin-button data-testid="${0}" theme="${0}" class="w-full" ?disabled="${0}" @click="${0}"> <foxy-i18n lang="${0}" key="${0}" ns="${0}"></foxy-i18n> </vaadin-button> ${0} </div> `),this.renderTemplateOrSlot(`${r}:before`),this.lang,this.ns,this.__handleConfirmHide,r,this.in("idle")?""+(this.href?"error":"primary success"):"",i,this.__handleActionClick,this.lang,r,this.ns,this.renderTemplateOrSlot(`${r}:after`))}__getErrorMessage(e){const t=this.errors.find((t=>t.startsWith(e)));return t?this.t(t.replace(e,"v8n")):""}__handleActionClick(e){if(this.in({idle:"snapshot"})){this.renderRoot.querySelector("#confirm").show(e.currentTarget)}else this.submit()}__handleConfirmHide(e){e.detail.cancelled||this.delete()}__handleKeyDown(e){"Enter"===e.key&&this.submit()}}customElements.define("foxy-user-form",w);export{w as U,g as r};
1
+ import"./shared-0689b25a.js";import"./shared-9bdd5400.js";import"./shared-8128b5e3.js";import{I as e}from"./shared-b334c8b6.js";import"./foxy-spinner.js";import"./shared-46f3f71c.js";import{v as t}from"./shared-b738ee96.js";import{S as s,R as r,a as i}from"./shared-a88c5cf1.js";import{i as l}from"./shared-d3bf9ac0.js";import{C as a}from"./shared-72a13fda.js";import{G as n}from"./shared-639dda4b.js";import{s as o,h as d}from"./shared-7f33a83a.js";import{m as h}from"./shared-0dabe195.js";let c,m,f,C,p=e=>e;const g=[{property:"is_merchant",icon:o(c||(c=p`<svg class="fill-current h-full w-full" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M22.8961 8.89L21.7932 4.52C21.5622 3.62 20.7429 3 19.7871 3H5.1979C4.25259 3 3.42283 3.63 3.20225 4.52L2.0994 8.89C1.84732 9.91 2.07839 10.95 2.75061 11.77C2.83464 11.88 2.95017 11.96 3.0447 12.06V19C3.0447 20.1 3.99001 21 5.14538 21H19.8501C21.0055 21 21.9508 20.1 21.9508 19V12.06C22.0453 11.97 22.1609 11.88 22.2449 11.78C22.9171 10.96 23.1587 9.91 22.8961 8.89ZM19.7556 4.99L20.8584 9.36C20.9635 9.78 20.8689 10.2 20.5958 10.53C20.4488 10.71 20.1337 11 19.6085 11C18.9678 11 18.4111 10.51 18.3376 9.86L17.7284 5L19.7556 4.99ZM13.5481 5H15.6067L16.1739 9.52C16.2264 9.91 16.1004 10.3 15.8273 10.59C15.5962 10.85 15.2601 11 14.8295 11C14.1258 11 13.5481 10.41 13.5481 9.69V5ZM8.81106 9.52L9.38874 5H11.4474V9.69C11.4474 10.41 10.8697 11 10.0925 11C9.73536 11 9.40975 10.85 9.15767 10.59C8.89509 10.3 8.76905 9.91 8.81106 9.52ZM4.13705 9.36L5.1979 5H7.26706L6.65787 9.86C6.57384 10.51 6.02766 11 5.38696 11C4.87229 11 4.54669 10.71 4.41014 10.53C4.12655 10.21 4.03202 9.78 4.13705 9.36ZM5.14538 19V12.97C5.22941 12.98 5.30293 13 5.38696 13C6.30075 13 7.13052 12.64 7.73971 12.05C8.36992 12.65 9.21019 13 10.166 13C11.0798 13 11.8991 12.64 12.5082 12.07C13.1279 12.64 13.9682 13 14.9135 13C15.7958 13 16.6361 12.65 17.2663 12.05C17.8755 12.64 18.7052 13 19.619 13C19.7031 13 19.7766 12.98 19.8606 12.97V19H5.14538Z" /></svg>`)),key:"merchant"},{property:"is_programmer",icon:o(m||(m=p`<svg class="fill-current h-full w-full" viewBox="0 0 20 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0 3C0 1.34315 1.34315 0 3 0H17C18.6569 0 20 1.34315 20 3V15C20 16.6569 18.6569 18 17 18H3C1.34315 18 0 16.6569 0 15V3ZM3 2C2.44772 2 2 2.44772 2 3V15C2 15.5523 2.44772 16 3 16H17C17.5523 16 18 15.5523 18 15V3C18 2.44772 17.5523 2 17 2H3ZM4.29289 4.29289C4.68342 3.90237 5.31658 3.90237 5.70711 4.29289L9.70711 8.29289C9.89464 8.48043 10 8.73478 10 9C10 9.26522 9.89464 9.51957 9.70711 9.70711L5.70711 13.7071C5.31658 14.0976 4.68342 14.0976 4.29289 13.7071C3.90237 13.3166 3.90237 12.6834 4.29289 12.2929L7.58579 9L4.29289 5.70711C3.90237 5.31658 3.90237 4.68342 4.29289 4.29289ZM9 13C9 12.4477 9.44771 12 10 12H15C15.5523 12 16 12.4477 16 13C16 13.5523 15.5523 14 15 14H10C9.44771 14 9 13.5523 9 13Z"/></svg>`)),key:"backend_developer"},{property:"is_front_end_developer",icon:o(f||(f=p`<svg class="fill-current h-full w-full" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M14.2747 4.03847C14.8058 4.1902 15.1132 4.74368 14.9615 5.27472L10.9615 19.2747C10.8098 19.8058 10.2563 20.1132 9.72528 19.9615C9.19424 19.8098 8.88675 19.2563 9.03848 18.7253L13.0385 4.72528C13.1902 4.19424 13.7437 3.88675 14.2747 4.03847ZM6.70711 7.29289C7.09763 7.68342 7.09763 8.31658 6.70711 8.7071L3.41421 12L6.70711 15.2929C7.09763 15.6834 7.09763 16.3166 6.70711 16.7071C6.31658 17.0976 5.68342 17.0976 5.29289 16.7071L1.29289 12.7071C0.902369 12.3166 0.902369 11.6834 1.29289 11.2929L5.29289 7.29289C5.68342 6.90237 6.31658 6.90237 6.70711 7.29289ZM17.2929 7.29289C17.6834 6.90237 18.3166 6.90237 18.7071 7.29289L22.7071 11.2929C22.8946 11.4804 23 11.7348 23 12C23 12.2652 22.8946 12.5196 22.7071 12.7071L18.7071 16.7071C18.3166 17.0976 17.6834 17.0976 17.2929 16.7071C16.9024 16.3166 16.9024 15.6834 17.2929 15.2929L20.5858 12L17.2929 8.70711C16.9024 8.31658 16.9024 7.68342 17.2929 7.29289Z" /></svg>`)),key:"frontend_developer"},{property:"is_designer",icon:o(C||(C=p`<svg class="fill-current h-full w-full" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10 20C4.49 20 0 15.51 0 10C0 4.49 4.49 0 10 0C15.51 0 20 4.04 20 9C20 12.31 17.31 15 14 15H12.23C11.95 15 11.73 15.22 11.73 15.5C11.73 15.62 11.78 15.73 11.86 15.83C12.27 16.3 12.5 16.89 12.5 17.5C12.5 18.88 11.38 20 10 20ZM10 2C5.59 2 2 5.59 2 10C2 14.41 5.59 18 10 18C10.28 18 10.5 17.78 10.5 17.5C10.5 17.34 10.42 17.22 10.36 17.15C9.95 16.69 9.73 16.1 9.73 15.5C9.73 14.12 10.85 13 12.23 13H14C16.21 13 18 11.21 18 9C18 5.14 14.41 2 10 2Z" /><path d="M4.5 11C5.32843 11 6 10.3284 6 9.5C6 8.67157 5.32843 8 4.5 8C3.67157 8 3 8.67157 3 9.5C3 10.3284 3.67157 11 4.5 11Z" /><path d="M7.5 7C8.32843 7 9 6.32843 9 5.5C9 4.67157 8.32843 4 7.5 4C6.67157 4 6 4.67157 6 5.5C6 6.32843 6.67157 7 7.5 7Z" /><path d="M12.5 7C13.3284 7 14 6.32843 14 5.5C14 4.67157 13.3284 4 12.5 4C11.6716 4 11 4.67157 11 5.5C11 6.32843 11.6716 7 12.5 7Z" /><path d="M15.5 11C16.3284 11 17 10.3284 17 9.5C17 8.67157 16.3284 8 15.5 8C14.6716 8 14 8.67157 14 9.5C14 10.3284 14.6716 11 15.5 11Z" /></svg>`)),key:"designer"}];let _,u,v,y,x,$=e=>e;const b=s(r(i(e,"user-form")));class w extends b{constructor(){super(...arguments),this.templates={},this.__getValidator=h((e=>()=>!this.errors.some((t=>t.startsWith(e))))),this.__bindField=h((e=>t=>{const s=t.target;this.edit({[e]:s.value})}))}static get scopedElements(){return{"foxy-internal-confirm-dialog":customElements.get("foxy-internal-confirm-dialog"),"foxy-internal-sandbox":customElements.get("foxy-internal-sandbox"),"vaadin-text-field":customElements.get("vaadin-text-field"),"vaadin-button":customElements.get("vaadin-button"),"foxy-spinner":customElements.get("foxy-spinner"),"x-checkbox":a,"foxy-i18n":customElements.get("foxy-i18n"),"x-group":n}}static get v8n(){return[({first_name:e})=>!e||e.length<=50||"first_name_too_long",({last_name:e})=>!e||e.length<=50||"last_name_too_long",({email:e})=>e&&e.length>0||"email_required",({email:e})=>!e||e.length<=100||"email_too_long",({email:e})=>!e||t(e)||"email_invalid_email",({phone:e})=>!e||e.length<=50||"phone_too_long"]}renderBody(){const e=this.hiddenSelector,t=this.href?"delete":"create";return d(_||(_=$` <div class="grid sm-grid-cols-2 gap-m"> ${0} ${0} ${0} </div> `),["first_name","last_name","email","phone"].map((e=>this.__renderField(e))),e.matches("role",!0)?"":this.__renderRole(),e.matches(t,!0)?"":this.__renderAction())}__renderField(e){const t=e.replace("_","-");if(!this.hiddenSelector.matches(t))return d(u||(u=$` <div> ${0} <vaadin-text-field error-message="${0}" data-testid="${0}" label="${0}" class="w-full" value="${0}" ?disabled="${0}" ?readonly="${0}" .checkValidity="${0}" @input="${0}" @keydown="${0}"> </vaadin-text-field> ${0} </div> `),this.renderTemplateOrSlot(`${t}:before`),this.__getErrorMessage(e),e,this.t(e),l(this.form[e]),!this.in("idle")||this.disabledSelector.matches(t,!0),this.readonlySelector.matches(t,!0),this.__getValidator(e),this.__bindField(e),this.__handleKeyDown,this.renderTemplateOrSlot(`${t}:after`))}__renderRole(){const e=!this.in("idle")||this.disabledSelector.matches("role",!0);return d(v||(v=$` <div class="sm-col-span-2"> ${0} <x-group data-testid="role" frame> ${0} </x-group> ${0} </div> `),this.renderTemplateOrSlot("role:before"),g.map(((t,s)=>d(y||(y=$` <hr class="${0}" style="margin-left:calc((var(--lumo-space-m) * 2) + 1.125rem)"> <x-checkbox data-testclass="role-option" class="w-full p-m" ?readonly="${0}" ?disabled="${0}" ?checked="${0}" @change="${0}"> <div class="flex items-start leading-s"> <div class="flex-1 flex flex-col"> <foxy-i18n key="${0}" infer=""></foxy-i18n> <foxy-i18n class="text-s ${0}" infer="" key="${0}_explainer"> </foxy-i18n> </div> <div class="mt-xs" style="width:1.125rem;height:1.125rem">${0}</div> </div> </x-checkbox> `),s>0?"border-contrast-10":"hidden",this.readonlySelector.matches("role",!0),e,this.form[t.property],(e=>{const s=e.currentTarget;this.edit({[t.property]:s.checked})}),t.key,e?"":"text-secondary",t.key,t.icon))),this.renderTemplateOrSlot("role:after"))}__renderAction(){const e=this.in({idle:{template:{dirty:"valid"}}}),t=this.in({idle:{snapshot:{dirty:"valid"}}}),s=e||t,r=this.href?"delete":"create",i=this.in({idle:"template"})&&!s||this.in("busy")||this.in("fail")||this.disabledSelector.matches(r,!0);return d(x||(x=$` <div class="sm-col-span-2"> ${0} <foxy-internal-confirm-dialog data-testid="confirm" message="delete_prompt" confirm="delete" cancel="cancel" header="delete" theme="primary error" lang="${0}" ns="${0}" id="confirm" @hide="${0}"> </foxy-internal-confirm-dialog> <vaadin-button data-testid="${0}" theme="${0}" class="w-full" ?disabled="${0}" @click="${0}"> <foxy-i18n lang="${0}" key="${0}" ns="${0}"></foxy-i18n> </vaadin-button> ${0} </div> `),this.renderTemplateOrSlot(`${r}:before`),this.lang,this.ns,this.__handleConfirmHide,r,this.in("idle")?""+(this.href?"error":"primary success"):"",i,this.__handleActionClick,this.lang,r,this.ns,this.renderTemplateOrSlot(`${r}:after`))}__getErrorMessage(e){const t=this.errors.find((t=>t.startsWith(e)));return t?this.t(t.replace(e,"v8n")):""}__handleActionClick(e){if(this.in({idle:"snapshot"})){this.renderRoot.querySelector("#confirm").show(e.currentTarget)}else this.submit()}__handleConfirmHide(e){e.detail.cancelled||this.delete()}__handleKeyDown(e){"Enter"===e.key&&this.submit()}}customElements.define("foxy-user-form",w);export{w as U,g as r};
@@ -1,4 +1,4 @@
1
- import{E as e,C as t,T as r}from"./shared-17d0db7f.js";import"./shared-31651a9c.js";import{h as o,D as a,t as i,a as n,P as l}from"./shared-59042137.js";const s=document.createElement("template");s.innerHTML='<dom-module id="lumo-required-field">\n <template>\n <style>\n [part="label"] {\n align-self: flex-start;\n color: var(--lumo-secondary-text-color);\n font-weight: 500;\n font-size: var(--lumo-font-size-s);\n margin-left: calc(var(--lumo-border-radius-m) / 4);\n transition: color 0.2s;\n line-height: 1;\n padding-bottom: 0.5em;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n position: relative;\n max-width: 100%;\n box-sizing: border-box;\n }\n\n :host([has-label])::before {\n margin-top: calc(var(--lumo-font-size-s) * 1.5);\n }\n\n :host([has-label]) {\n padding-top: var(--lumo-space-m);\n }\n\n :host([required]) [part="label"] {\n padding-right: 1em;\n }\n\n [part="label"]::after {\n content: var(--lumo-required-field-indicator, "•");\n transition: opacity 0.2s;\n opacity: 0;\n color: var(--lumo-primary-text-color);\n position: absolute;\n right: 0;\n width: 1em;\n text-align: center;\n }\n\n :host([required]:not([has-value])) [part="label"]::after {\n opacity: 1;\n }\n\n :host([invalid]) [part="label"]::after {\n color: var(--lumo-error-text-color);\n }\n\n [part="error-message"] {\n margin-left: calc(var(--lumo-border-radius-m) / 4);\n font-size: var(--lumo-font-size-xs);\n line-height: var(--lumo-line-height-xs);\n color: var(--lumo-error-text-color);\n will-change: max-height;\n transition: 0.4s max-height;\n max-height: 5em;\n }\n\n /* Margin that doesn’t reserve space when there’s no error message */\n [part="error-message"]:not(:empty)::before,\n [part="error-message"]:not(:empty)::after {\n content: "";\n display: block;\n height: 0.4em;\n }\n\n :host(:not([invalid])) [part="error-message"] {\n max-height: 0;\n overflow: hidden;\n }\n\n /* RTL specific styles */\n\n :host([dir="rtl"]) [part="label"] {\n margin-left: 0;\n margin-right: calc(var(--lumo-border-radius-m) / 4);\n }\n\n :host([required][dir="rtl"]) [part="label"] {\n padding-left: 1em;\n padding-right: 0;\n }\n\n :host([dir="rtl"]) [part="label"]::after {\n right: auto;\n left: 0;\n }\n\n :host([dir="rtl"]) [part="error-message"] {\n margin-left: 0;\n margin-right: calc(var(--lumo-border-radius-m) / 4);\n }\n\n </style>\n </template>\n</dom-module>',document.head.appendChild(s.content);const d=document.createElement("template");d.innerHTML='<dom-module id="lumo-field-button">\n <template>\n <style>\n [part$="button"] {\n flex: none;\n width: 1em;\n height: 1em;\n line-height: 1;\n font-size: var(--lumo-icon-size-m);\n text-align: center;\n color: var(--lumo-contrast-60pct);\n transition: 0.2s color;\n cursor: var(--lumo-clickable-cursor);\n }\n\n :host(:not([readonly])) [part$="button"]:hover {\n color: var(--lumo-contrast-90pct);\n }\n\n :host([disabled]) [part$="button"],\n :host([readonly]) [part$="button"] {\n color: var(--lumo-contrast-20pct);\n }\n\n [part$="button"]::before {\n font-family: "lumo-icons";\n display: block;\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(d.content);const h=o`<dom-module id="lumo-text-field" theme-for="vaadin-text-field">
1
+ import{E as e,C as t,T as a}from"./shared-4bd1efd7.js";import"./shared-2fa6a5a0.js";import{h as n,D as r,t as i,a as o,P as l}from"./shared-a7475f62.js";const s=document.createElement("template");s.innerHTML='<dom-module id="lumo-required-field">\n <template>\n <style>\n [part="label"] {\n align-self: flex-start;\n color: var(--lumo-secondary-text-color);\n font-weight: 500;\n font-size: var(--lumo-font-size-s);\n margin-left: calc(var(--lumo-border-radius-m) / 4);\n transition: color 0.2s;\n line-height: 1;\n padding-bottom: 0.5em;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n position: relative;\n max-width: 100%;\n box-sizing: border-box;\n }\n\n :host([has-label])::before {\n margin-top: calc(var(--lumo-font-size-s) * 1.5);\n }\n\n :host([has-label]) {\n padding-top: var(--lumo-space-m);\n }\n\n :host([required]) [part="label"] {\n padding-right: 1em;\n }\n\n [part="label"]::after {\n content: var(--lumo-required-field-indicator, "•");\n transition: opacity 0.2s;\n opacity: 0;\n color: var(--lumo-primary-text-color);\n position: absolute;\n right: 0;\n width: 1em;\n text-align: center;\n }\n\n :host([required]:not([has-value])) [part="label"]::after {\n opacity: 1;\n }\n\n :host([invalid]) [part="label"]::after {\n color: var(--lumo-error-text-color);\n }\n\n [part="error-message"] {\n margin-left: calc(var(--lumo-border-radius-m) / 4);\n font-size: var(--lumo-font-size-xs);\n line-height: var(--lumo-line-height-xs);\n color: var(--lumo-error-text-color);\n will-change: max-height;\n transition: 0.4s max-height;\n max-height: 5em;\n }\n\n /* Margin that doesn’t reserve space when there’s no error message */\n [part="error-message"]:not(:empty)::before,\n [part="error-message"]:not(:empty)::after {\n content: "";\n display: block;\n height: 0.4em;\n }\n\n :host(:not([invalid])) [part="error-message"] {\n max-height: 0;\n overflow: hidden;\n }\n\n /* RTL specific styles */\n\n :host([dir="rtl"]) [part="label"] {\n margin-left: 0;\n margin-right: calc(var(--lumo-border-radius-m) / 4);\n }\n\n :host([required][dir="rtl"]) [part="label"] {\n padding-left: 1em;\n padding-right: 0;\n }\n\n :host([dir="rtl"]) [part="label"]::after {\n right: auto;\n left: 0;\n }\n\n :host([dir="rtl"]) [part="error-message"] {\n margin-left: 0;\n margin-right: calc(var(--lumo-border-radius-m) / 4);\n }\n\n </style>\n </template>\n</dom-module>',document.head.appendChild(s.content);const d=document.createElement("template");d.innerHTML='<dom-module id="lumo-field-button">\n <template>\n <style>\n [part$="button"] {\n flex: none;\n width: 1em;\n height: 1em;\n line-height: 1;\n font-size: var(--lumo-icon-size-m);\n text-align: center;\n color: var(--lumo-contrast-60pct);\n transition: 0.2s color;\n cursor: var(--lumo-clickable-cursor);\n }\n\n :host(:not([readonly])) [part$="button"]:hover {\n color: var(--lumo-contrast-90pct);\n }\n\n :host([disabled]) [part$="button"],\n :host([readonly]) [part$="button"] {\n color: var(--lumo-contrast-20pct);\n }\n\n [part$="button"]::before {\n font-family: "lumo-icons";\n display: block;\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(d.content);const h=n`<dom-module id="lumo-text-field" theme-for="vaadin-text-field">
2
2
  <template>
3
3
  <style include="lumo-required-field lumo-field-button">
4
4
  :host {
@@ -391,7 +391,7 @@ import{E as e,C as t,T as r}from"./shared-17d0db7f.js";import"./shared-31651a9c.
391
391
  Copyright (c) 2017 Vaadin Ltd.
392
392
  This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
393
393
  */
394
- const u=o`<dom-module id="vaadin-text-field-shared-styles">
394
+ const u=n`<dom-module id="vaadin-text-field-shared-styles">
395
395
  <template>
396
396
  <style>
397
397
  :host {
@@ -489,12 +489,12 @@ const u=o`<dom-module id="vaadin-text-field-shared-styles">
489
489
  }
490
490
  </style>
491
491
  </template>
492
- </dom-module>`;document.head.appendChild(u.content);const p={default:["list","autofocus","pattern","autocapitalize","autocorrect","maxlength","minlength","name","placeholder","autocomplete","title","disabled","readonly","required"],accessible:["invalid"]},c={DEFAULT:"default",ACCESSIBLE:"accessible"},m=e=>class extends e{static get properties(){return{autocomplete:{type:String},autocorrect:{type:String},autocapitalize:{type:String},autoselect:{type:Boolean,value:!1},clearButtonVisible:{type:Boolean,value:!1},errorMessage:{type:String,value:"",observer:"_errorMessageChanged"},i18n:{type:Object,value:()=>({clear:"Clear"})},label:{type:String,value:"",observer:"_labelChanged"},helperText:{type:String,value:"",observer:"_helperTextChanged"},maxlength:{type:Number},minlength:{type:Number},name:{type:String},placeholder:{type:String},readonly:{type:Boolean,reflectToAttribute:!0},required:{type:Boolean,reflectToAttribute:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0},invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},hasValue:{type:Boolean,reflectToAttribute:!0},preventInvalidInput:{type:Boolean},_enabledCharPattern:String,_labelId:String,_helperTextId:String,_errorId:String,_inputId:String,_hasSlottedHelper:Boolean}}static get observers(){return["_stateChanged(disabled, readonly, clearButtonVisible, hasValue)","_hostPropsChanged("+p.default.join(", ")+")","_hostAccessiblePropsChanged("+p.accessible.join(", ")+")","_getActiveErrorId(invalid, errorMessage, _errorId, helperText, _helperTextId, _hasSlottedHelper)","_getActiveLabelId(label, _labelId, _inputId)","__observeOffsetHeight(errorMessage, invalid, label, helperText)","__enabledCharPatternChanged(_enabledCharPattern)"]}get focusElement(){if(!this.shadowRoot)return;const e=this.querySelector(`${this._slottedTagName}[slot="${this._slottedTagName}"]`);return e||this.shadowRoot.querySelector('[part="value"]')}get inputElement(){return this.focusElement}get _slottedTagName(){return"input"}_createConstraintsObserver(){this._createMethodObserver("_constraintsChanged(required, minlength, maxlength, pattern)")}_onInput(e){if(this.__preventInput)return e.stopImmediatePropagation(),void(this.__preventInput=!1);if(this.preventInvalidInput){const e=this.inputElement;if(e.value.length>0&&!this.checkValidity())return e.value=this.value||"",this.setAttribute("input-prevented",""),void(this._inputDebouncer=a.debounce(this._inputDebouncer,i.after(200),(()=>{this.removeAttribute("input-prevented")})))}e.__fromClearButton||(this.__userInput=!0),this.value=e.target.value,this.__userInput=!1}_stateChanged(e,t,r,o){!e&&!t&&r&&o?this.$.clearButton.removeAttribute("hidden"):this.$.clearButton.setAttribute("hidden",!0)}_onChange(e){if(this._valueClearing)return;const t=new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable});this.dispatchEvent(t)}_valueChanged(e,t){""===e&&void 0===t||(this.hasValue=""!==e&&null!=e,this.__userInput||(void 0!==e?this.inputElement.value=e:this.value=this.inputElement.value="",this.invalid&&this.validate()))}_labelChanged(e){this._setOrToggleAttribute("has-label",!!e,this)}_helperTextChanged(e){this._setOrToggleAttribute("has-helper",!!e,this)}_errorMessageChanged(e){this._setOrToggleAttribute("has-error-message",!!e,this)}_onHelperSlotChange(){const e=this.shadowRoot.querySelector('[name="helper"]').assignedNodes({flatten:!0});this._hasSlottedHelper=e.filter((e=>3!==e.nodeType)).length,this._hasSlottedHelper?this.setAttribute("has-helper","slotted"):""!==this.helperText&&null!==this.helperText||this.removeAttribute("has-helper")}_onSlotChange(){const e=this.querySelector(`${this._slottedTagName}[slot="${this._slottedTagName}"]`);this.value&&(this.inputElement.value=this.value,this.validate()),e&&!this._slottedInput?(this._validateSlottedValue(e),this._addInputListeners(e),this._addIEListeners(e),this._slottedInput=e):!e&&this._slottedInput&&(this._removeInputListeners(this._slottedInput),this._removeIEListeners(this._slottedInput),this._slottedInput=void 0),Object.keys(c).map((e=>c[e])).forEach((e=>this._propagateHostAttributes(p[e].map((e=>this[e])),e)))}_hostPropsChanged(...e){this._propagateHostAttributes(e,c.DEFAULT)}_hostAccessiblePropsChanged(...e){this._propagateHostAttributes(e,c.ACCESSIBLE)}_validateSlottedValue(e){e.value!==this.value&&(console.warn("Please define value on the vaadin-text-field component!"),e.value="")}_propagateHostAttributes(e,t){const r=this.inputElement,o=p[t];t===c.ACCESSIBLE?o.forEach(((t,o)=>{this._setOrToggleAttribute(t,e[o],r),this._setOrToggleAttribute(`aria-${t}`,!!e[o]&&"true",r)})):o.forEach(((t,o)=>{this._setOrToggleAttribute(t,e[o],r)}))}_setOrToggleAttribute(e,t,r){e&&r&&(t?r.setAttribute(e,"boolean"==typeof t?"":t):r.removeAttribute(e))}_constraintsChanged(e,t,r,o){this.invalid&&(e||t||r||o?this.validate():this.invalid=!1)}checkValidity(){return this.required||this.pattern||this.maxlength||this.minlength||this.__forceCheckValidity?this.inputElement.checkValidity():!this.invalid}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange),e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus),e.addEventListener("paste",this._boundOnPaste),e.addEventListener("drop",this._boundOnDrop),e.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange),e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus),e.removeEventListener("paste",this._boundOnPaste),e.removeEventListener("drop",this._boundOnDrop),e.removeEventListener("beforeinput",this._boundOnBeforeInput)}ready(){super.ready(),this._createConstraintsObserver(),this._boundOnInput=this._onInput.bind(this),this._boundOnChange=this._onChange.bind(this),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this),this._boundOnPaste=this._onPaste.bind(this),this._boundOnDrop=this._onDrop.bind(this),this._boundOnBeforeInput=this._onBeforeInput.bind(this);const e=this.shadowRoot.querySelector('[part="value"]');this._slottedInput=this.querySelector(`${this._slottedTagName}[slot="${this._slottedTagName}"]`),this._addInputListeners(e),this._addIEListeners(e),this._slottedInput&&(this._addIEListeners(this._slottedInput),this._addInputListeners(this._slottedInput)),this.shadowRoot.querySelector('[name="input"], [name="textarea"]').addEventListener("slotchange",this._onSlotChange.bind(this)),this._onHelperSlotChange(),this.shadowRoot.querySelector('[name="helper"]').addEventListener("slotchange",this._onHelperSlotChange.bind(this)),window.ShadyCSS&&window.ShadyCSS.nativeCss||this.updateStyles(),this.$.clearButton.addEventListener("mousedown",(()=>this._valueClearing=!0)),this.$.clearButton.addEventListener("mouseleave",(()=>this._valueClearing=!1)),this.$.clearButton.addEventListener("click",this._onClearButtonClick.bind(this)),this.addEventListener("keydown",this._onKeyDown.bind(this));var t=m._uniqueId=1+m._uniqueId||0;this._errorId=`${this.constructor.is}-error-${t}`,this._labelId=`${this.constructor.is}-label-${t}`,this._helperTextId=`${this.constructor.is}-helper-${t}`,this._inputId=`${this.constructor.is}-input-${t}`,this.shadowRoot.querySelector('[part="error-message"]').addEventListener("transitionend",(()=>{this.__observeOffsetHeight()}))}validate(){return!(this.invalid=!this.checkValidity())}clear(){this.value=""}_onBlur(){this.validate()}_onFocus(){this.autoselect&&(this.inputElement.select(),setTimeout((()=>{try{this.inputElement.setSelectionRange(0,9999)}catch(e){}})))}_onClearButtonClick(e){e.preventDefault(),this.inputElement.focus(),this.clear(),this._valueClearing=!1,navigator.userAgent.match(/Trident/)&&(this.__preventInput=!1);const t=new Event("input",{bubbles:!0,composed:!0});t.__fromClearButton=!0;const r=new Event("change",{bubbles:!this._slottedInput});r.__fromClearButton=!0,this.inputElement.dispatchEvent(t),this.inputElement.dispatchEvent(r)}_onKeyDown(e){if(27===e.keyCode&&this.clearButtonVisible){const e=!!this.value;this.clear(),e&&this.inputElement.dispatchEvent(new Event("change",{bubbles:!this._slottedInput}))}this._enabledCharPattern&&!this.__shouldAcceptKey(e)&&e.preventDefault()}__shouldAcceptKey(e){return e.metaKey||e.ctrlKey||!e.key||1!==e.key.length||this.__enabledCharRegExp.test(e.key)}_onPaste(e){if(this._enabledCharPattern){const t=(e.clipboardData||window.clipboardData).getData("text");this.__enabledTextRegExp.test(t)||e.preventDefault()}}_onDrop(e){if(this._enabledCharPattern){const t=e.dataTransfer.getData("text");this.__enabledTextRegExp.test(t)||e.preventDefault()}}_onBeforeInput(e){this._enabledCharPattern&&e.data&&!this.__enabledTextRegExp.test(e.data)&&e.preventDefault()}__enabledCharPatternChanged(e){this.__enabledCharRegExp=e&&new RegExp("^"+e+"$"),this.__enabledTextRegExp=e&&new RegExp("^"+e+"*$")}_addIEListeners(e){navigator.userAgent.match(/Trident/)&&(this._shouldPreventInput=()=>{this.__preventInput=!0,requestAnimationFrame((()=>{this.__preventInput=!1}))},e.addEventListener("focusin",this._shouldPreventInput),e.addEventListener("focusout",this._shouldPreventInput),this._createPropertyObserver("placeholder",this._shouldPreventInput))}_removeIEListeners(e){navigator.userAgent.match(/Trident/)&&(e.removeEventListener("focusin",this._shouldPreventInput),e.removeEventListener("focusout",this._shouldPreventInput))}_getActiveErrorId(e,t,r,o,a,i){const n=[];(o||i)&&n.push(a),t&&e&&n.push(r),this._setOrToggleAttribute("aria-describedby",n.join(" "),this.focusElement)}_getActiveLabelId(e,t,r){let o=r;e&&(o=`${t} ${r}`),this.focusElement.setAttribute("aria-labelledby",o)}_getErrorMessageAriaHidden(e,t,r){return(!(t&&e?r:void 0)).toString()}_dispatchIronResizeEventIfNeeded(e,t){const r="__previous"+e;void 0!==this[r]&&this[r]!==t&&this.dispatchEvent(new CustomEvent("iron-resize",{bubbles:!0,composed:!0})),this[r]=t}__observeOffsetHeight(){this.__observeOffsetHeightDebouncer=a.debounce(this.__observeOffsetHeightDebouncer,n,(()=>{this._dispatchIronResizeEventIfNeeded("Height",this.offsetHeight)}))}attributeChangedCallback(e,t,r){super.attributeChangedCallback(e,t,r),window.ShadyCSS&&window.ShadyCSS.nativeCss||!/^(focused|focus-ring|invalid|disabled|placeholder|has-value)$/.test(e)||this.updateStyles();if(/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&this.root){const e="-webkit-backface-visibility";this.root.querySelectorAll("*").forEach((t=>{t.style[e]="visible",t.style[e]=""}))}}get __data(){return this.__dataValue||{}}set __data(e){this.__dataValue=e}}
492
+ </dom-module>`;document.head.appendChild(u.content);const p={default:["list","autofocus","pattern","autocapitalize","autocorrect","maxlength","minlength","name","placeholder","autocomplete","title","disabled","readonly","required"],accessible:["invalid"]},c={DEFAULT:"default",ACCESSIBLE:"accessible"},m=e=>class extends e{static get properties(){return{autocomplete:{type:String},autocorrect:{type:String},autocapitalize:{type:String},autoselect:{type:Boolean,value:!1},clearButtonVisible:{type:Boolean,value:!1},errorMessage:{type:String,value:"",observer:"_errorMessageChanged"},i18n:{type:Object,value:()=>({clear:"Clear"})},label:{type:String,value:"",observer:"_labelChanged"},helperText:{type:String,value:"",observer:"_helperTextChanged"},maxlength:{type:Number},minlength:{type:Number},name:{type:String},placeholder:{type:String},readonly:{type:Boolean,reflectToAttribute:!0},required:{type:Boolean,reflectToAttribute:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"},invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},hasValue:{type:Boolean,reflectToAttribute:!0},preventInvalidInput:{type:Boolean},_enabledCharPattern:String,_labelId:String,_helperTextId:String,_errorId:String,_inputId:String,_hasSlottedHelper:Boolean}}static get observers(){return["_stateChanged(disabled, readonly, clearButtonVisible, hasValue)","_hostPropsChanged("+p.default.join(", ")+")","_hostAccessiblePropsChanged("+p.accessible.join(", ")+")","_getActiveErrorId(invalid, errorMessage, _errorId, helperText, _helperTextId, _hasSlottedHelper)","_getActiveLabelId(label, _labelId, _inputId)","__observeOffsetHeight(errorMessage, invalid, label, helperText)","__enabledCharPatternChanged(_enabledCharPattern)"]}get focusElement(){if(!this.shadowRoot)return;const e=this.querySelector(`${this._slottedTagName}[slot="${this._slottedTagName}"]`);return e||this.shadowRoot.querySelector('[part="value"]')}get inputElement(){return this.focusElement}get _slottedTagName(){return"input"}_createConstraintsObserver(){this._createMethodObserver("_constraintsChanged(required, minlength, maxlength, pattern)")}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(e){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=e)}_setHasInputValue(e){this._hasInputValue=e.target.value.length>0}__onInput(e){this._setHasInputValue(e),this._onInput(e)}_onInput(e){if(this.__preventInput)return e.stopImmediatePropagation(),void(this.__preventInput=!1);if(this.preventInvalidInput){const e=this.inputElement;if(e.value.length>0&&!this.checkValidity())return e.value=this.value||"",this.setAttribute("input-prevented",""),void(this._inputDebouncer=r.debounce(this._inputDebouncer,i.after(200),(()=>{this.removeAttribute("input-prevented")})))}e.__fromClearButton||(this.__userInput=!0),this.value=e.target.value,this.__userInput=!1}_stateChanged(e,t,a,n){!e&&!t&&a&&n?this.$.clearButton.removeAttribute("hidden"):this.$.clearButton.setAttribute("hidden",!0)}_hasInputValueChanged(e,t){(e||t)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}_onChange(e){if(this._valueClearing)return;const t=new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable});this.dispatchEvent(t)}_valueChanged(e,t){""===e&&void 0===t||(this.hasValue=""!==e&&null!=e,this.__userInput||(void 0!==e?this._inputElementValue=e:this.value=this._inputElementValue="",this.invalid&&this.validate()))}_labelChanged(e){this._setOrToggleAttribute("has-label",!!e,this)}_helperTextChanged(e){this._setOrToggleAttribute("has-helper",!!e,this)}_errorMessageChanged(e){this._setOrToggleAttribute("has-error-message",!!e,this)}_onHelperSlotChange(){const e=this.shadowRoot.querySelector('[name="helper"]').assignedNodes({flatten:!0});this._hasSlottedHelper=e.filter((e=>3!==e.nodeType)).length,this._hasSlottedHelper?this.setAttribute("has-helper","slotted"):""!==this.helperText&&null!==this.helperText||this.removeAttribute("has-helper")}_onSlotChange(){const e=this.querySelector(`${this._slottedTagName}[slot="${this._slottedTagName}"]`);this.value&&(this._inputElementValue=this.value,this.validate()),e&&!this._slottedInput?(this._validateSlottedValue(e),this._addInputListeners(e),this._addIEListeners(e),this._slottedInput=e):!e&&this._slottedInput&&(this._removeInputListeners(this._slottedInput),this._removeIEListeners(this._slottedInput),this._slottedInput=void 0),Object.keys(c).map((e=>c[e])).forEach((e=>this._propagateHostAttributes(p[e].map((e=>this[e])),e)))}_hostPropsChanged(...e){this._propagateHostAttributes(e,c.DEFAULT)}_hostAccessiblePropsChanged(...e){this._propagateHostAttributes(e,c.ACCESSIBLE)}_validateSlottedValue(e){e.value!==this.value&&(console.warn("Please define value on the vaadin-text-field component!"),e.value="")}_propagateHostAttributes(e,t){const a=this.inputElement,n=p[t];t===c.ACCESSIBLE?n.forEach(((t,n)=>{this._setOrToggleAttribute(t,e[n],a),this._setOrToggleAttribute(`aria-${t}`,!!e[n]&&"true",a)})):n.forEach(((t,n)=>{this._setOrToggleAttribute(t,e[n],a)}))}_setOrToggleAttribute(e,t,a){e&&a&&(t?a.setAttribute(e,"boolean"==typeof t?"":t):a.removeAttribute(e))}_constraintsChanged(e,t,a,n){this.invalid&&(e||t||a||n?this.validate():this._setInvalid(!1))}checkValidity(){return this.required||this.pattern||this.maxlength||this.minlength||this.__forceCheckValidity?this.inputElement.checkValidity():!this.invalid}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange),e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus),e.addEventListener("paste",this._boundOnPaste),e.addEventListener("drop",this._boundOnDrop),e.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange),e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus),e.removeEventListener("paste",this._boundOnPaste),e.removeEventListener("drop",this._boundOnDrop),e.removeEventListener("beforeinput",this._boundOnBeforeInput)}ready(){super.ready(),this._createConstraintsObserver(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this),this._boundOnPaste=this._onPaste.bind(this),this._boundOnDrop=this._onDrop.bind(this),this._boundOnBeforeInput=this._onBeforeInput.bind(this);const e=this.shadowRoot.querySelector('[part="value"]');this._slottedInput=this.querySelector(`${this._slottedTagName}[slot="${this._slottedTagName}"]`),this._addInputListeners(e),this._addIEListeners(e),this._slottedInput&&(this._addIEListeners(this._slottedInput),this._addInputListeners(this._slottedInput)),this.shadowRoot.querySelector('[name="input"], [name="textarea"]').addEventListener("slotchange",this._onSlotChange.bind(this)),this._onHelperSlotChange(),this.shadowRoot.querySelector('[name="helper"]').addEventListener("slotchange",this._onHelperSlotChange.bind(this)),window.ShadyCSS&&window.ShadyCSS.nativeCss||this.updateStyles(),this.$.clearButton.addEventListener("mousedown",(()=>this._valueClearing=!0)),this.$.clearButton.addEventListener("mouseleave",(()=>this._valueClearing=!1)),this.$.clearButton.addEventListener("click",this._onClearButtonClick.bind(this)),this.addEventListener("keydown",this._onKeyDown.bind(this));var t=m._uniqueId=1+m._uniqueId||0;this._errorId=`${this.constructor.is}-error-${t}`,this._labelId=`${this.constructor.is}-label-${t}`,this._helperTextId=`${this.constructor.is}-helper-${t}`,this._inputId=`${this.constructor.is}-input-${t}`,this.shadowRoot.querySelector('[part="error-message"]').addEventListener("transitionend",(()=>{this.__observeOffsetHeight()}))}_setInvalid(e){this._shouldSetInvalid(e)&&(this.invalid=e)}_shouldSetInvalid(e){return!0}validate(){const e=this.checkValidity();return this._setInvalid(!e),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:e}})),e}clear(){this._hasInputValue=!1,this.value=""}_onBlur(){this.validate()}_onFocus(){this.autoselect&&(this.inputElement.select(),setTimeout((()=>{try{this.inputElement.setSelectionRange(0,9999)}catch(e){}})))}_onClearButtonClick(e){e.preventDefault(),this.inputElement.focus(),this.clear(),this._valueClearing=!1,navigator.userAgent.match(/Trident/)&&(this.__preventInput=!1);const t=new Event("input",{bubbles:!0,composed:!0});t.__fromClearButton=!0;const a=new Event("change",{bubbles:!this._slottedInput});a.__fromClearButton=!0,this.inputElement.dispatchEvent(t),this.inputElement.dispatchEvent(a)}_onKeyDown(e){if(27===e.keyCode&&this.clearButtonVisible){const e=!!this.value;this.clear(),e&&this.inputElement.dispatchEvent(new Event("change",{bubbles:!this._slottedInput}))}this._enabledCharPattern&&!this.__shouldAcceptKey(e)&&e.preventDefault()}__shouldAcceptKey(e){return e.metaKey||e.ctrlKey||!e.key||1!==e.key.length||this.__enabledCharRegExp.test(e.key)}_onPaste(e){if(this._enabledCharPattern){const t=(e.clipboardData||window.clipboardData).getData("text");this.__enabledTextRegExp.test(t)||e.preventDefault()}}_onDrop(e){if(this._enabledCharPattern){const t=e.dataTransfer.getData("text");this.__enabledTextRegExp.test(t)||e.preventDefault()}}_onBeforeInput(e){this._enabledCharPattern&&e.data&&!this.__enabledTextRegExp.test(e.data)&&e.preventDefault()}__enabledCharPatternChanged(e){this.__enabledCharRegExp=e&&new RegExp("^"+e+"$"),this.__enabledTextRegExp=e&&new RegExp("^"+e+"*$")}_addIEListeners(e){navigator.userAgent.match(/Trident/)&&(this._shouldPreventInput=()=>{this.__preventInput=!0,requestAnimationFrame((()=>{this.__preventInput=!1}))},e.addEventListener("focusin",this._shouldPreventInput),e.addEventListener("focusout",this._shouldPreventInput),this._createPropertyObserver("placeholder",this._shouldPreventInput))}_removeIEListeners(e){navigator.userAgent.match(/Trident/)&&(e.removeEventListener("focusin",this._shouldPreventInput),e.removeEventListener("focusout",this._shouldPreventInput))}_getActiveErrorId(e,t,a,n,r,i){const o=[];(n||i)&&o.push(r),t&&e&&o.push(a),this._setOrToggleAttribute("aria-describedby",o.join(" "),this.focusElement)}_getActiveLabelId(e,t,a){let n=a;e&&(n=`${t} ${a}`),this.focusElement.setAttribute("aria-labelledby",n)}_getErrorMessageAriaHidden(e,t,a){return(!(t&&e?a:void 0)).toString()}_dispatchIronResizeEventIfNeeded(e,t){const a="__previous"+e;void 0!==this[a]&&this[a]!==t&&this.dispatchEvent(new CustomEvent("iron-resize",{bubbles:!0,composed:!0})),this[a]=t}__observeOffsetHeight(){this.__observeOffsetHeightDebouncer=r.debounce(this.__observeOffsetHeightDebouncer,o,(()=>{this._dispatchIronResizeEventIfNeeded("Height",this.offsetHeight)}))}attributeChangedCallback(e,t,a){super.attributeChangedCallback(e,t,a),window.ShadyCSS&&window.ShadyCSS.nativeCss||!/^(focused|focus-ring|invalid|disabled|placeholder|has-value)$/.test(e)||this.updateStyles();if(/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&this.root){const e="-webkit-backface-visibility";this.root.querySelectorAll("*").forEach((t=>{t.style[e]="visible",t.style[e]=""}))}}get __data(){return this.__dataValue||{}}set __data(e){this.__dataValue=e}}
493
493
  /**
494
494
  @license
495
495
  Copyright (c) 2017 Vaadin Ltd.
496
496
  This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
497
- */;class v extends(e(m(t(r(l))))){static get template(){return o`
497
+ */;class v extends(e(m(t(a(l))))){static get template(){return n`
498
498
  <style include="vaadin-text-field-shared-styles">
499
499
  /* polymer-cli linter breaks with empty line */
500
500
  </style>
@@ -523,4 +523,4 @@ This program is available under Apache License Version 2.0, available at https:/
523
523
  <div part="error-message" id="[[_errorId]]" aria-live="assertive" aria-hidden\$="[[_getErrorMessageAriaHidden(invalid, errorMessage, _errorId)]]">[[errorMessage]]</div>
524
524
 
525
525
  </div>
526
- `}static get is(){return"vaadin-text-field"}static get version(){return"2.9.2"}static get properties(){return{list:{type:String},pattern:{type:String},title:{type:String}}}}customElements.define(v.is,v);export{v as T,m as a};
526
+ `}static get is(){return"vaadin-text-field"}static get version(){return"2.10.0"}static get properties(){return{list:{type:String},pattern:{type:String},title:{type:String}}}}customElements.define(v.is,v);export{v as T,m as a};
@@ -0,0 +1,15 @@
1
+ function t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function e(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?t(Object(i),!0).forEach((function(t){r(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):t(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function n(){n=function(t,e){return new r(t,void 0,e)};var t=RegExp.prototype,e=new WeakMap;function r(t,n,o){var a=new RegExp(t,n);return e.set(a,o||e.get(t)),i(a,r.prototype)}function o(t,n){var r=e.get(n);return Object.keys(r).reduce((function(e,n){var i=r[n];if("number"==typeof i)e[n]=t[i];else{for(var o=0;void 0===t[i[o]]&&o+1<i.length;)o++;e[n]=t[i[o]]}return e}),Object.create(null))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(r,RegExp),r.prototype.exec=function(e){var n=t.exec.call(this,e);if(n){n.groups=o(n,this);var r=n.indices;r&&(r.groups=o(r,this))}return n},r.prototype[Symbol.replace]=function(n,r){if("string"==typeof r){var i=e.get(this);return t[Symbol.replace].call(this,n,r.replace(/\$<([^>]+)>/g,(function(t,e){var n=i[e];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof r){var a=this;return t[Symbol.replace].call(this,n,(function(){var t=arguments;return"object"!=typeof t[t.length-1]&&(t=[].slice.call(t)).push(o(t,a)),r.apply(this,t)}))}return t[Symbol.replace].call(this,n,r)},n.apply(this,arguments)}function r(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function s(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function c(t){var e={exports:{}};return t(e,e.exports),e.exports}function u(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets option of @rollup/plugin-commonjs appropriately for this require call to behave properly.')}function l(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var f="object"==typeof global&&global&&global.Object===Object&&global,h="object"==typeof self&&self&&self.Object===Object&&self,p=f||h||Function("return this")(),d=p.Symbol,y=Object.prototype,v=y.hasOwnProperty,g=y.toString,b=d?d.toStringTag:void 0;var _=Object.prototype.toString;var m="[object Null]",w="[object Undefined]",x=d?d.toStringTag:void 0;function j(t){return null==t?void 0===t?w:m:x&&x in Object(t)?function(t){var e=v.call(t,b),n=t[b];try{t[b]=void 0;var r=!0}catch(t){}var i=g.call(t);return r&&(e?t[b]=n:delete t[b]),i}(t):function(t){return _.call(t)}(t)}function O(t){return null!=t&&"object"==typeof t}var S="[object Symbol]";function E(t){return"symbol"==typeof t||O(t)&&j(t)==S}
2
+ /*! *****************************************************************************
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
+ PERFORMANCE OF THIS SOFTWARE.
15
+ ***************************************************************************** */var k=function(){return k=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},k.apply(this,arguments)};function A(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function P(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function T(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function R(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(T(arguments[e]));return t}var D={},N="xstate.guard";function I(t){return Object.keys(t)}function L(t,e,n){void 0===n&&(n=".");var r=U(t,n),i=U(e,n);return Y(i)?!!Y(r)&&i===r:Y(r)?r in i:I(r).every((function(t){return t in i&&L(r[t],i[t])}))}function C(t){try{return Y(t)||"number"==typeof t?""+t:t.type}catch(t){throw new Error("Events must be strings or objects with a string event.type property.")}}function F(t,e){try{return Z(t)?t:t.toString().split(e)}catch(e){throw new Error("'"+t+"' is not a valid state path.")}}function U(t,e){return"object"==typeof(n=t)&&"value"in n&&"context"in n&&"event"in n&&"_event"in n?t.value:Z(t)?M(t):"string"!=typeof t?t:M(F(t,e));var n}function M(t){if(1===t.length)return t[0];for(var e={},n=e,r=0;r<t.length-1;r++)r===t.length-2?n[t[r]]=t[r+1]:(n[t[r]]={},n=n[t[r]]);return e}function $(t,e){for(var n={},r=I(t),i=0;i<r.length;i++){var o=r[i];n[o]=e(t[o],o,t,i)}return n}function B(t,e,n){var r,i,o={};try{for(var a=P(I(t)),s=a.next();!s.done;s=a.next()){var c=s.value,u=t[c];n(u)&&(o[c]=e(u,c,t))}}catch(t){r={error:t}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return o}var z=function(t){return function(e){var n,r,i=e;try{for(var o=P(t),a=o.next();!a.done;a=o.next()){i=i[a.value]}}catch(t){n={error:t}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i}};function V(t){return t?Y(t)?[[t]]:W(I(t).map((function(e){var n=t[e];return"string"==typeof n||n&&Object.keys(n).length?V(t[e]).map((function(t){return[e].concat(t)})):[[e]]}))):[[]]}function W(t){var e;return(e=[]).concat.apply(e,R(t))}function q(t){return Z(t)?t:[t]}function H(t){return void 0===t?[]:q(t)}function G(t,e,n){var r,i;if(X(t))return t(e,n.data);var o={};try{for(var a=P(Object.keys(t)),s=a.next();!s.done;s=a.next()){var c=s.value,u=t[c];X(u)?o[c]=u(e,n.data):o[c]=u}}catch(t){r={error:t}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return o}function J(t){return t instanceof Promise||!(null===t||!X(t)&&"object"!=typeof t||!X(t.then))}function K(t,e){var n,r,i=T([[],[]],2),o=i[0],a=i[1];try{for(var s=P(t),c=s.next();!c.done;c=s.next()){var u=c.value;e(u)?o.push(u):a.push(u)}}catch(t){n={error:t}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return[o,a]}function Q(t,e){return $(t.states,(function(t,n){if(t){var r=(Y(e)?void 0:e[n])||(t?t.current:void 0);if(r)return{current:r,states:Q(t,r)}}}))}function Z(t){return Array.isArray(t)}function X(t){return"function"==typeof t}function Y(t){return"string"==typeof t}function tt(t,e){if(t)return Y(t)?{type:N,name:t,predicate:e?e[t]:void 0}:X(t)?{type:N,name:t.name,predicate:t}:t}function et(t){try{return"subscribe"in t&&X(t.subscribe)}catch(t){return!1}}var nt,rt,it=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function ot(t){try{return"__xstatenode"in t}catch(t){return!1}}function at(t){return!!t&&"function"==typeof t.send}function st(t,e){return Y(t)||"number"==typeof t?k({type:t},e):t}function ct(t,e){if(!Y(t)&&"$$type"in t&&"scxml"===t.$$type)return t;var n=st(t);return k({name:n.type,data:n,$$type:"scxml",type:"external"},e)}function ut(t,e){return q(e).map((function(e){return void 0===e||"string"==typeof e||ot(e)?{target:e,event:t}:k(k({},e),{event:t})}))}function lt(t,e,n,r,i){var o=t.options.guards,a={state:i,cond:e,_event:r};if(e.type===N)return e.predicate(n,r.data,a);var s=o[e.type];if(!s)throw new Error("Guard '"+e.type+"' is not implemented on machine '"+t.id+"'.");return s(n,r.data,a)}function ft(t){return"string"==typeof t?{type:t}:t}function ht(t,e,n){if("object"==typeof t)return t;var r=function(){};return{next:t,error:e||r,complete:n||r}}!function(t){t.Start="xstate.start",t.Stop="xstate.stop",t.Raise="xstate.raise",t.Send="xstate.send",t.Cancel="xstate.cancel",t.NullEvent="",t.Assign="xstate.assign",t.After="xstate.after",t.DoneState="done.state",t.DoneInvoke="done.invoke",t.Log="xstate.log",t.Init="xstate.init",t.Invoke="xstate.invoke",t.ErrorExecution="error.execution",t.ErrorCommunication="error.communication",t.ErrorPlatform="error.platform",t.ErrorCustom="xstate.error",t.Update="xstate.update",t.Pure="xstate.pure",t.Choose="xstate.choose"}(nt||(nt={})),function(t){t.Parent="#_parent",t.Internal="#_internal"}(rt||(rt={}));var pt=nt.Start,dt=nt.Stop,yt=nt.Raise,vt=nt.Send,gt=nt.Cancel,bt=nt.NullEvent,_t=nt.Assign;nt.After,nt.DoneState;var mt=nt.Log,wt=nt.Init,xt=nt.Invoke;nt.ErrorExecution;var jt=nt.ErrorPlatform,Ot=nt.ErrorCustom,St=nt.Update,Et=nt.Choose,kt=nt.Pure,At=ct({type:wt});function Pt(t,e){return e&&e[t]||void 0}function Tt(t,e){var n;if(Y(t)||"number"==typeof t){var r=Pt(t,e);n=X(r)?{type:t,exec:r}:r||{type:t,exec:void 0}}else if(X(t))n={type:t.name||t.toString(),exec:t};else{if(X(r=Pt(t.type,e)))n=k(k({},t),{exec:r});else if(r){var i=r.type||t.type;n=k(k(k({},r),t),{type:i})}else n=t}return Object.defineProperty(n,"toString",{value:function(){return n.type},enumerable:!1,configurable:!0}),n}var Rt=function(t,e){return t?(Z(t)?t:[t]).map((function(t){return Tt(t,e)})):[]};function Dt(t){var e=Tt(t);return k(k({id:Y(t)?t:e.id},e),{type:e.type})}function Nt(t){return Y(t)?{type:yt,event:t}:It(t,{to:rt.Internal})}function It(t,e){return{to:e?e.to:void 0,type:vt,event:X(t)?t:st(t),delay:e?e.delay:void 0,id:e&&void 0!==e.id?e.id:X(t)?t.name:C(t)}}function Lt(t,e){return It(t,k(k({},e),{to:rt.Parent}))}function Ct(){return Lt(St)}function Ft(t,e){return It(t,k(k({},e),{to:function(t,e,n){return n._event.origin}}))}var Ut=function(t,e){return{context:t,event:e}};function Mt(t,e){return void 0===t&&(t=Ut),{type:mt,label:e,expr:t}}var $t=function(t){return{type:gt,sendId:t}};function Bt(t){var e=Dt(t);return{type:nt.Start,activity:e,exec:void 0}}function zt(t){var e=X(t)?t:Dt(t);return{type:nt.Stop,activity:e,exec:void 0}}var Vt=function(t){return{type:_t,assignment:t}};function Wt(t,e){var n=e?"#"+e:"";return nt.After+"("+t+")"+n}function qt(t,e){var n=nt.DoneState+"."+t,r={type:n,data:e,toString:function(){return n}};return r}function Ht(t,e){var n=nt.DoneInvoke+"."+t,r={type:n,data:e,toString:function(){return n}};return r}function Gt(t,e){var n=nt.ErrorPlatform+"."+t,r={type:n,data:e,toString:function(){return n}};return r}function Jt(t){return{type:nt.Pure,get:t}}function Kt(t,e){return It((function(t,e){return e}),k(k({},e),{to:t}))}function Qt(t,e){return Lt((function(e,n,r){return{type:Ot,data:X(t)?t(e,n,r):t}}),k(k({},e),{to:rt.Parent}))}function Zt(t){return{type:nt.Choose,conds:t}}function Xt(t,e,n,r,i){var o=T(K(i,(function(t){return t.type===_t})),2),a=o[0],s=o[1],c=a.length?function(t,e,n,r){return t?n.reduce((function(t,n){var i,o,a=n.assignment,s={state:r,action:n,_event:e},c={};if(X(a))c=a(t,e.data,s);else try{for(var u=P(I(a)),l=u.next();!l.done;l=u.next()){var f=l.value,h=a[f];c[f]=X(h)?h(t,e.data,s):h}}catch(t){i={error:t}}finally{try{l&&!l.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}return Object.assign({},t,c)}),t):t}(n,r,a,e):n,u=W(s.map((function(n){var i;switch(n.type){case yt:return{type:yt,_event:ct(n.event)};case vt:var o=function(t,e,n,r){var i,o={_event:n},a=ct(X(t.event)?t.event(e,n.data,o):t.event);if(Y(t.delay)){var s=r&&r[t.delay];i=X(s)?s(e,n.data,o):s}else i=X(t.delay)?t.delay(e,n.data,o):t.delay;var c=X(t.to)?t.to(e,n.data,o):t.to;return k(k({},t),{to:c,_event:a,event:a.data,delay:i})}(n,c,r,t.options.delays);return o;case mt:return function(t,e,n){return k(k({},t),{value:Y(t.expr)?t.expr:t.expr(e,n.data,{_event:n})})}(n,c,r);case Et:if(!(s=null===(i=n.conds.find((function(n){var i=tt(n.cond,t.options.guards);return!i||lt(t,i,c,r,e)})))||void 0===i?void 0:i.actions))return[];var a=Xt(t,e,c,r,Rt(H(s),t.options.actions));return c=a[1],a[0];case kt:var s;if(!(s=n.get(c,r.data)))return[];a=Xt(t,e,c,r,Rt(H(s),t.options.actions));return c=a[1],a[0];case dt:return function(t,e,n){var r=X(t.activity)?t.activity(e,n.data):t.activity,i="string"==typeof r?{id:r}:r;return{type:nt.Stop,activity:i}}(n,c,r);default:return Tt(n,t.options.actions)}})));return[u,c]}var Yt=function(t){return"atomic"===t.type||"final"===t.type};function te(t){return I(t.states).map((function(e){return t.states[e]}))}function ee(t){var e=[t];return Yt(t)?e:e.concat(W(te(t).map(ee)))}function ne(t,e){var n,r,i,o,a,s,c,u,l=ie(new Set(t)),f=new Set(e);try{for(var h=P(f),p=h.next();!p.done;p=h.next())for(var d=(j=p.value).parent;d&&!f.has(d);)f.add(d),d=d.parent}catch(t){n={error:t}}finally{try{p&&!p.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}var y=ie(f);try{for(var v=P(f),g=v.next();!g.done;g=v.next()){if("compound"!==(j=g.value).type||y.get(j)&&y.get(j).length){if("parallel"===j.type)try{for(var b=(a=void 0,P(te(j))),_=b.next();!_.done;_=b.next()){var m=_.value;"history"!==m.type&&(f.has(m)||(f.add(m),l.get(m)?l.get(m).forEach((function(t){return f.add(t)})):m.initialStateNodes.forEach((function(t){return f.add(t)}))))}}catch(t){a={error:t}}finally{try{_&&!_.done&&(s=b.return)&&s.call(b)}finally{if(a)throw a.error}}}else l.get(j)?l.get(j).forEach((function(t){return f.add(t)})):j.initialStateNodes.forEach((function(t){return f.add(t)}))}}catch(t){i={error:t}}finally{try{g&&!g.done&&(o=v.return)&&o.call(v)}finally{if(i)throw i.error}}try{for(var w=P(f),x=w.next();!x.done;x=w.next()){var j;for(d=(j=x.value).parent;d&&!f.has(d);)f.add(d),d=d.parent}}catch(t){c={error:t}}finally{try{x&&!x.done&&(u=w.return)&&u.call(w)}finally{if(c)throw c.error}}return f}function re(t,e){var n=e.get(t);if(!n)return{};if("compound"===t.type){var r=n[0];if(!r)return{};if(Yt(r))return r.key}var i={};return n.forEach((function(t){i[t.key]=re(t,e)})),i}function ie(t){var e,n,r=new Map;try{for(var i=P(t),o=i.next();!o.done;o=i.next()){var a=o.value;r.has(a)||r.set(a,[]),a.parent&&(r.has(a.parent)||r.set(a.parent,[]),r.get(a.parent).push(a))}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r}function oe(t,e){return re(t,ie(ne([t],e)))}function ae(t,e){return Array.isArray(t)?t.some((function(t){return t===e})):t instanceof Set&&t.has(e)}function se(t,e){return"compound"===e.type?te(e).some((function(e){return"final"===e.type&&ae(t,e)})):"parallel"===e.type&&te(e).every((function(e){return se(t,e)}))}function ce(t,e){if(t===e)return!0;if(void 0===t||void 0===e)return!1;if(Y(t)||Y(e))return t===e;var n=I(t),r=I(e);return n.length===r.length&&n.every((function(n){return ce(t[n],e[n])}))}function ue(t){return!Y(t)&&("value"in t&&"history"in t)}function le(t,e){var n=t.exec;return k(k({},t),{exec:void 0!==n?function(){return n(e.context,e.event,{action:t,state:e,_event:e._event})}:void 0})}var fe=function(){function t(t){var e=this;this.actions=[],this.activities=D,this.meta={},this.events=[],this.value=t.value,this.context=t.context,this._event=t._event,this._sessionid=t._sessionid,this.event=this._event.data,this.historyValue=t.historyValue,this.history=t.history,this.actions=t.actions||[],this.activities=t.activities||D,this.meta=t.meta||{},this.events=t.events||[],this.matches=this.matches.bind(this),this.toStrings=this.toStrings.bind(this),this.configuration=t.configuration,this.transitions=t.transitions,this.children=t.children,this.done=!!t.done,Object.defineProperty(this,"nextEvents",{get:function(){return t=e.configuration,W(R(new Set(t.map((function(t){return t.ownEvents})))));var t}})}return t.from=function(e,n){return e instanceof t?e.context!==n?new t({value:e.value,context:n,_event:e._event,_sessionid:null,historyValue:e.historyValue,history:e.history,actions:[],activities:e.activities,meta:{},events:[],configuration:[],transitions:[],children:{}}):e:new t({value:e,context:n,_event:At,_sessionid:null,historyValue:void 0,history:void 0,actions:[],activities:void 0,meta:void 0,events:[],configuration:[],transitions:[],children:{}})},t.create=function(e){return new t(e)},t.inert=function(e,n){if(e instanceof t){if(!e.actions.length)return e;var r=At;return new t({value:e.value,context:n,_event:r,_sessionid:null,historyValue:e.historyValue,history:e.history,activities:e.activities,configuration:e.configuration,transitions:[],children:{}})}return t.from(e,n)},t.prototype.toStrings=function(t,e){var n=this;if(void 0===t&&(t=this.value),void 0===e&&(e="."),Y(t))return[t];var r=I(t);return r.concat.apply(r,R(r.map((function(r){return n.toStrings(t[r],e).map((function(t){return r+e+t}))}))))},t.prototype.toJSON=function(){var t=this;return t.configuration,t.transitions,A(t,["configuration","transitions"])},t.prototype.matches=function(t){return L(t,this.value)},t}(),he=function(t,e){return e(t)};function pe(t){return{id:t,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},toJSON:function(){return{id:t}}}}function de(t,e,n,r){var i,o=ft(t.src),a=null===(i=null==e?void 0:e.options.services)||void 0===i?void 0:i[o.type],s=t.data?G(t.data,n,r):void 0,c=a?function(t,e,n){var r=pe(e);r.deferred=!0,ot(t)&&(r.state=he(void 0,(function(){return(n?t.withContext(n):t).initialState})));return r}(a,t.id,s):pe(t.id);return c.meta=t,c}function ye(t){return function(t){try{return"function"==typeof t.send}catch(t){return!1}}(t)&&"id"in t}function ve(t){if("string"==typeof t){var e={type:t,toString:function(){return t}};return e}return t}function ge(t){return k(k({type:xt},t),{toJSON:function(){t.onDone,t.onError;var e=A(t,["onDone","onError"]);return k(k({},e),{type:xt,src:ve(t.src)})}})}var be="*",_e={},me=function(t){return"#"===t[0]},we=function(){function t(e,n,r){var i=this;this.config=e,this.context=r,this.order=-1,this.__xstatenode=!0,this.__cache={events:void 0,relativeValue:new Map,initialStateValue:void 0,initialState:void 0,on:void 0,transitions:void 0,candidates:{},delayedTransitions:void 0},this.idMap={},this.options=Object.assign({actions:{},guards:{},services:{},activities:{},delays:{}},n),this.parent=this.options._parent,this.key=this.config.key||this.options._key||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:"."),this.id=this.config.id||R([this.machine.key],this.path).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&I(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.initial=this.config.initial,this.states=this.config.states?$(this.config.states,(function(e,n){var r,o=new t(e,{_parent:i,_key:n});return Object.assign(i.idMap,k(((r={})[o.id]=o,r),o.idMap)),o})):_e;var o=0;!function t(e){var n,r;e.order=o++;try{for(var i=P(te(e)),a=i.next();!a.done;a=i.next()){t(a.value)}}catch(t){n={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}(this),this.history=!0===this.config.history?"shallow":this.config.history||!1,this._transient=!!this.config.always||!!this.config.on&&(Array.isArray(this.config.on)?this.config.on.some((function(t){return""===t.event})):""in this.config.on),this.strict=!!this.config.strict,this.onEntry=H(this.config.entry||this.config.onEntry).map((function(t){return Tt(t)})),this.onExit=H(this.config.exit||this.config.onExit).map((function(t){return Tt(t)})),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=H(this.config.invoke).map((function(t,e){var n,r;if(ot(t))return i.machine.options.services=k(((n={})[t.id]=t,n),i.machine.options.services),ge({src:t.id,id:t.id});if(Y(t.src))return ge(k(k({},t),{id:t.id||t.src,src:t.src}));if(ot(t.src)||X(t.src)){var o=i.id+":invocation["+e+"]";return i.machine.options.services=k(((r={})[o]=t.src,r),i.machine.options.services),ge(k(k({id:o},t),{src:o}))}var a=t.src;return ge(k(k({id:a.type},t),{src:a}))})),this.activities=H(this.config.activities).concat(this.invoke).map((function(t){return Dt(t)})),this.transition=this.transition.bind(this)}return t.prototype._init=function(){this.__cache.transitions||ee(this).forEach((function(t){return t.on}))},t.prototype.withConfig=function(e,n){void 0===n&&(n=this.context);var r=this.options,i=r.actions,o=r.activities,a=r.guards,s=r.services,c=r.delays;return new t(this.config,{actions:k(k({},i),e.actions),activities:k(k({},o),e.activities),guards:k(k({},a),e.guards),services:k(k({},s),e.services),delays:k(k({},c),e.delays)},n)},t.prototype.withContext=function(e){return new t(this.config,this.options,e)},Object.defineProperty(t.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:$(this.states,(function(t){return t.definition})),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke}},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){return this.definition},Object.defineProperty(t.prototype,"on",{get:function(){if(this.__cache.on)return this.__cache.on;var t=this.transitions;return this.__cache.on=t.reduce((function(t,e){return t[e.eventType]=t[e.eventType]||[],t[e.eventType].push(e),t}),{})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),t.prototype.getCandidates=function(t){if(this.__cache.candidates[t])return this.__cache.candidates[t];var e=""===t,n=this.transitions.filter((function(n){var r=n.eventType===t;return e?r:r||n.eventType===be}));return this.__cache.candidates[t]=n,n},t.prototype.getDelayedTransitions=function(){var t=this,e=this.config.after;if(!e)return[];var n=function(e,n){var r=Wt(X(e)?t.id+":delay["+n+"]":e,t.id);return t.onEntry.push(It(r,{delay:e})),t.onExit.push($t(r)),r};return(Z(e)?e.map((function(t,e){var r=n(t.delay,e);return k(k({},t),{event:r})})):W(I(e).map((function(t,r){var i=e[t],o=Y(i)?{target:i}:i,a=isNaN(+t)?t:+t,s=n(a,r);return H(o).map((function(t){return k(k({},t),{event:s,delay:a})}))})))).map((function(e){var n=e.delay;return k(k({},t.formatTransition(e)),{delay:n})}))},t.prototype.getStateNodes=function(t){var e,n=this;if(!t)return[];var r=t instanceof fe?t.value:U(t,this.delimiter);if(Y(r)){var i=this.getStateNode(r).initial;return void 0!==i?this.getStateNodes(((e={})[r]=i,e)):[this.states[r]]}var o=I(r);return o.map((function(t){return n.getStateNode(t)})).concat(o.reduce((function(t,e){var i=n.getStateNode(e).getStateNodes(r[e]);return t.concat(i)}),[]))},t.prototype.handles=function(t){var e=C(t);return this.events.includes(e)},t.prototype.resolveState=function(t){var e=Array.from(ne([],this.getStateNodes(t.value)));return new fe(k(k({},t),{value:this.resolve(t.value),configuration:e,done:se(e,this)}))},t.prototype.transitionLeafNode=function(t,e,n){var r=this.getStateNode(t).next(e,n);return r&&r.transitions.length?r:this.next(e,n)},t.prototype.transitionCompoundNode=function(t,e,n){var r=I(t),i=this.getStateNode(r[0])._transition(t[r[0]],e,n);return i&&i.transitions.length?i:this.next(e,n)},t.prototype.transitionParallelNode=function(t,e,n){var r,i,o={};try{for(var a=P(I(t)),s=a.next();!s.done;s=a.next()){var c=s.value,u=t[c];if(u){var l=this.getStateNode(c)._transition(u,e,n);l&&(o[c]=l)}}}catch(t){r={error:t}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}var f=I(o).map((function(t){return o[t]})),h=W(f.map((function(t){return t.transitions})));if(!f.some((function(t){return t.transitions.length>0})))return this.next(e,n);var p=W(f.map((function(t){return t.entrySet}))),d=W(I(o).map((function(t){return o[t].configuration})));return{transitions:h,entrySet:p,exitSet:W(f.map((function(t){return t.exitSet}))),configuration:d,source:e,actions:W(I(o).map((function(t){return o[t].actions})))}},t.prototype._transition=function(t,e,n){return Y(t)?this.transitionLeafNode(t,e,n):1===I(t).length?this.transitionCompoundNode(t,e,n):this.transitionParallelNode(t,e,n)},t.prototype.next=function(t,e){var n,r,i,o=this,a=e.name,s=[],c=[];try{for(var u=P(this.getCandidates(a)),l=u.next();!l.done;l=u.next()){var f=l.value,h=f.cond,p=f.in,d=t.context,y=!p||(Y(p)&&me(p)?t.matches(U(this.getStateNodeById(p).path,this.delimiter)):L(U(p,this.delimiter),z(this.path.slice(0,-2))(t.value))),v=!1;try{v=!h||lt(this.machine,h,d,e,t)}catch(t){throw new Error("Unable to evaluate guard '"+(h.name||h.type)+"' in transition for event '"+a+"' in state node '"+this.id+"':\n"+t.message)}if(v&&y){void 0!==f.target&&(c=f.target),s.push.apply(s,R(f.actions)),i=f;break}}}catch(t){n={error:t}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}if(i){if(!c.length)return{transitions:[i],entrySet:[],exitSet:[],configuration:t.value?[this]:[],source:t,actions:s};var g=W(c.map((function(e){return o.getRelativeStateNodes(e,t.historyValue)}))),b=!!i.internal;return{transitions:[i],entrySet:b?[]:W(g.map((function(t){return o.nodesFromChild(t)}))),exitSet:b?[]:[this],configuration:g,source:t,actions:s}}},t.prototype.nodesFromChild=function(t){if(t.escapes(this))return[];for(var e=[],n=t;n&&n!==this;)e.push(n),n=n.parent;return e.push(this),e},t.prototype.escapes=function(t){if(this===t)return!1;for(var e=this.parent;e;){if(e===t)return!1;e=e.parent}return!0},t.prototype.getActions=function(t,e,n,r){var i,o,a,s,c=ne([],r?this.getStateNodes(r.value):[this]),u=t.configuration.length?ne(c,t.configuration):c;try{for(var l=P(u),f=l.next();!f.done;f=l.next()){ae(c,d=f.value)||t.entrySet.push(d)}}catch(t){i={error:t}}finally{try{f&&!f.done&&(o=l.return)&&o.call(l)}finally{if(i)throw i.error}}try{for(var h=P(c),p=h.next();!p.done;p=h.next()){var d;ae(u,d=p.value)&&!ae(t.exitSet,d.parent)||t.exitSet.push(d)}}catch(t){a={error:t}}finally{try{p&&!p.done&&(s=h.return)&&s.call(h)}finally{if(a)throw a.error}}t.source||(t.exitSet=[],t.entrySet.push(this));var y=W(t.entrySet.map((function(r){var i=[];if("final"!==r.type)return i;var o=r.parent;if(!o.parent)return i;i.push(qt(r.id,r.doneData),qt(o.id,r.doneData?G(r.doneData,e,n):void 0));var a=o.parent;return"parallel"===a.type&&te(a).every((function(e){return se(t.configuration,e)}))&&i.push(qt(a.id)),i})));t.exitSet.sort((function(t,e){return e.order-t.order})),t.entrySet.sort((function(t,e){return t.order-e.order}));var v=new Set(t.entrySet),g=new Set(t.exitSet),b=T([W(Array.from(v).map((function(t){return R(t.activities.map((function(t){return Bt(t)})),t.onEntry)}))).concat(y.map(Nt)),W(Array.from(g).map((function(t){return R(t.onExit,t.activities.map((function(t){return zt(t)})))})))],2),_=b[0],m=b[1];return Rt(m.concat(t.actions).concat(_),this.machine.options.actions)},t.prototype.transition=function(t,e,n){void 0===t&&(t=this.initialState);var r,i,o=ct(e);if(t instanceof fe)r=void 0===n?t:this.resolveState(fe.from(t,n));else{var a=Y(t)?this.resolve(M(this.getResolvedPath(t))):this.resolve(t),s=n||this.machine.context;r=this.resolveState(fe.from(a,s))}if(this.strict&&!this.events.includes(o.name)&&(i=o.name,!/^(done|error)\./.test(i)))throw new Error("Machine '"+this.id+"' does not accept event '"+o.name+"'");var c=this._transition(r.value,r,o)||{transitions:[],configuration:[],entrySet:[],exitSet:[],source:r,actions:[]},u=ne([],this.getStateNodes(r.value)),l=c.configuration.length?ne(u,c.configuration):u;return c.configuration=R(l),this.resolveTransition(c,r,o)},t.prototype.resolveRaisedTransition=function(t,e,n){var r,i=t.actions;return(t=this.transition(t,e))._event=n,t.event=n.data,(r=t.actions).unshift.apply(r,R(i)),t},t.prototype.resolveTransition=function(t,e,n,r){var i,o,a=this;void 0===n&&(n=At),void 0===r&&(r=this.machine.context);var s=t.configuration,c=!e||t.transitions.length>0?oe(this.machine,s):void 0,u=e?e.historyValue?e.historyValue:t.source?this.machine.historyValue(e.value):void 0:void 0,l=e?e.context:r,f=this.getActions(t,l,n,e),h=e?k({},e.activities):{};try{for(var p=P(f),d=p.next();!d.done;d=p.next()){var y=d.value;y.type===pt?h[y.activity.id||y.activity.type]=y:y.type===dt&&(h[y.activity.id||y.activity.type]=!1)}}catch(t){i={error:t}}finally{try{d&&!d.done&&(o=p.return)&&o.call(p)}finally{if(i)throw i.error}}var v,g,b=T(Xt(this,e,l,n,f),2),_=b[0],m=b[1],w=T(K(_,(function(t){return t.type===yt||t.type===vt&&t.to===rt.Internal})),2),x=w[0],j=w[1],O=_.filter((function(t){var e;return t.type===pt&&(null===(e=t.activity)||void 0===e?void 0:e.type)===xt})),S=O.reduce((function(t,e){return t[e.activity.id]=de(e.activity,a.machine,m,n),t}),e?k({},e.children):{}),E=c?t.configuration:e?e.configuration:[],A=E.reduce((function(t,e){return void 0!==e.meta&&(t[e.id]=e.meta),t}),{}),R=se(E,this),D=new fe({value:c||e.value,context:m,_event:n,_sessionid:e?e._sessionid:null,historyValue:c?u?(v=u,g=c,{current:g,states:Q(v,g)}):void 0:e?e.historyValue:void 0,history:!c||t.source?e:void 0,actions:c?j:[],activities:c?h:e?e.activities:{},meta:c?A:e?e.meta:void 0,events:[],configuration:E,transitions:t.transitions,children:S,done:R}),N=l!==m;D.changed=n.name===St||N;var I=D.history;if(I&&delete I.history,!c)return D;var L=D;if(!R)for((this._transient||s.some((function(t){return t._transient})))&&(L=this.resolveRaisedTransition(L,{type:bt},n));x.length;){var C=x.shift();L=this.resolveRaisedTransition(L,C._event,n)}var F=L.changed||(I?!!L.actions.length||N||typeof I.value!=typeof L.value||!ce(L.value,I.value):void 0);return L.changed=F,L.history=I,L},t.prototype.getStateNode=function(t){if(me(t))return this.machine.getStateNodeById(t);if(!this.states)throw new Error("Unable to retrieve child state '"+t+"' from '"+this.id+"'; no child states exist.");var e=this.states[t];if(!e)throw new Error("Child state '"+t+"' does not exist on '"+this.id+"'");return e},t.prototype.getStateNodeById=function(t){var e=me(t)?t.slice(1):t;if(e===this.id)return this;var n=this.machine.idMap[e];if(!n)throw new Error("Child state node '#"+e+"' does not exist on machine '"+this.id+"'");return n},t.prototype.getStateNodeByPath=function(t){if("string"==typeof t&&me(t))try{return this.getStateNodeById(t.slice(1))}catch(t){}for(var e=F(t,this.delimiter).slice(),n=this;e.length;){var r=e.shift();if(!r.length)break;n=n.getStateNode(r)}return n},t.prototype.resolve=function(t){var e,n=this;if(!t)return this.initialStateValue||_e;switch(this.type){case"parallel":return $(this.initialStateValue,(function(e,r){return e?n.getStateNode(r).resolve(t[r]||e):_e}));case"compound":if(Y(t)){var r=this.getStateNode(t);return"parallel"===r.type||"compound"===r.type?((e={})[t]=r.initialStateValue,e):t}return I(t).length?$(t,(function(t,e){return t?n.getStateNode(e).resolve(t):_e})):this.initialStateValue||{};default:return t||_e}},t.prototype.getResolvedPath=function(t){if(me(t)){var e=this.machine.idMap[t.slice(1)];if(!e)throw new Error("Unable to find state node '"+t+"'");return e.path}return F(t,this.delimiter)},Object.defineProperty(t.prototype,"initialStateValue",{get:function(){var t,e;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;if("parallel"===this.type)e=B(this.states,(function(t){return t.initialStateValue||_e}),(function(t){return!("history"===t.type)}));else if(void 0!==this.initial){if(!this.states[this.initial])throw new Error("Initial state '"+this.initial+"' not found on '"+this.key+"'");e=Yt(this.states[this.initial])?this.initial:((t={})[this.initial]=this.states[this.initial].initialStateValue,t)}return this.__cache.initialStateValue=e,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),t.prototype.getInitialState=function(t,e){var n=this.getStateNodes(t);return this.resolveTransition({configuration:n,entrySet:n,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,void 0,e)},Object.defineProperty(t.prototype,"initialState",{get:function(){this._init();var t=this.initialStateValue;if(!t)throw new Error("Cannot retrieve initial state from simple state '"+this.id+"'.");return this.getInitialState(t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"target",{get:function(){var t;if("history"===this.type){var e=this.config;t=Y(e.target)&&me(e.target)?M(this.machine.getStateNodeById(e.target).path.slice(this.path.length-1)):e.target}return t},enumerable:!1,configurable:!0}),t.prototype.getRelativeStateNodes=function(t,e,n){return void 0===n&&(n=!0),n?"history"===t.type?t.resolveHistory(e):t.initialStateNodes:[t]},Object.defineProperty(t.prototype,"initialStateNodes",{get:function(){var t=this;return Yt(this)?[this]:"compound"!==this.type||this.initial?W(V(this.initialStateValue).map((function(e){return t.getFromRelativePath(e)}))):[this]},enumerable:!1,configurable:!0}),t.prototype.getFromRelativePath=function(t){if(!t.length)return[this];var e=T(t),n=e[0],r=e.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '"+n+"' from node with no states");var i=this.getStateNode(n);if("history"===i.type)return i.resolveHistory();if(!this.states[n])throw new Error("Child state '"+n+"' does not exist on '"+this.id+"'");return this.states[n].getFromRelativePath(r)},t.prototype.historyValue=function(t){if(I(this.states).length)return{current:t||this.initialStateValue,states:B(this.states,(function(e,n){if(!t)return e.historyValue();var r=Y(t)?void 0:t[n];return e.historyValue(r||e.initialStateValue)}),(function(t){return!t.history}))}},t.prototype.resolveHistory=function(t){var e=this;if("history"!==this.type)return[this];var n=this.parent;if(!t){var r=this.target;return r?W(V(r).map((function(t){return n.getFromRelativePath(t)}))):n.initialStateNodes}var i,o,a=(i=n.path,o="states",function(t){var e,n,r=t;try{for(var a=P(i),s=a.next();!s.done;s=a.next()){var c=s.value;r=r[o][c]}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return r})(t).current;return Y(a)?[n.getStateNode(a)]:W(V(a).map((function(t){return"deep"===e.history?n.getFromRelativePath(t):[n.states[t[0]]]})))},Object.defineProperty(t.prototype,"stateIds",{get:function(){var t=this,e=W(I(this.states).map((function(e){return t.states[e].stateIds})));return[this.id].concat(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"events",{get:function(){var t,e,n,r;if(this.__cache.events)return this.__cache.events;var i=this.states,o=new Set(this.ownEvents);if(i)try{for(var a=P(I(i)),s=a.next();!s.done;s=a.next()){var c=i[s.value];if(c.states)try{for(var u=(n=void 0,P(c.events)),l=u.next();!l.done;l=u.next()){var f=l.value;o.add(""+f)}}catch(t){n={error:t}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}}catch(e){t={error:e}}finally{try{s&&!s.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}return this.__cache.events=Array.from(o)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ownEvents",{get:function(){var t=new Set(this.transitions.filter((function(t){return!(!t.target&&!t.actions.length&&t.internal)})).map((function(t){return t.eventType})));return Array.from(t)},enumerable:!1,configurable:!0}),t.prototype.resolveTarget=function(t){var e=this;if(void 0!==t)return t.map((function(t){if(!Y(t))return t;var n=t[0]===e.delimiter;if(n&&!e.parent)return e.getStateNodeByPath(t.slice(1));var r=n?e.key+t:t;if(!e.parent)return e.getStateNodeByPath(r);try{return e.parent.getStateNodeByPath(r)}catch(t){throw new Error("Invalid transition definition for state node '"+e.id+"':\n"+t.message)}}))},t.prototype.formatTransition=function(t){var e=this,n=function(t){if(void 0!==t&&""!==t)return H(t)}(t.target),r="internal"in t?t.internal:!n||n.some((function(t){return Y(t)&&t[0]===e.delimiter})),i=this.machine.options.guards,o=this.resolveTarget(n),a=k(k({},t),{actions:Rt(H(t.actions)),cond:tt(t.cond,i),target:o,source:this,internal:r,eventType:t.event,toJSON:function(){return k(k({},a),{target:a.target?a.target.map((function(t){return"#"+t.id})):void 0,source:"#"+e.id})}});return a},t.prototype.formatTransitions=function(){var t,e,n,r=this;if(this.config.on)if(Array.isArray(this.config.on))n=this.config.on;else{var i=this.config.on,o=be,a=i[o],s=void 0===a?[]:a,c=A(i,["*"]);n=W(I(c).map((function(t){var e=ut(t,c[t]);return e})).concat(ut(be,s)))}else n=[];var u=this.config.always?ut("",this.config.always):[],l=this.config.onDone?ut(String(qt(this.id)),this.config.onDone):[];var f=W(this.invoke.map((function(t){var e=[];return t.onDone&&e.push.apply(e,R(ut(String(Ht(t.id)),t.onDone))),t.onError&&e.push.apply(e,R(ut(String(Gt(t.id)),t.onError))),e}))),h=this.after,p=W(R(l,f,n,u).map((function(t){return H(t).map((function(t){return r.formatTransition(t)}))})));try{for(var d=P(h),y=d.next();!y.done;y=d.next()){var v=y.value;p.push(v)}}catch(e){t={error:e}}finally{try{y&&!y.done&&(e=d.return)&&e.call(d)}finally{if(t)throw t.error}}return p},t}();function xe(t,e,n){void 0===n&&(n=t.context);var r="function"==typeof n?n():n;return new we(t,e,r)}function je(t,e){var n="function"==typeof t.context?t.context():t.context;return new we(t,e,n)}const Oe=Vt({failure:null}),Se=Vt({errors:[]}),Ee=Vt({edits:null}),ke=Vt({data:null}),Ae=Se,Pe=Vt({failure:(t,e)=>e.data}),Te=Vt({errors:(t,e)=>e.data}),Re=Vt({data:(t,e)=>e.data}),De=Vt({edits:(t,e)=>Object.assign(Object.assign({},t.edits),e.data)});const Ne=je({context:{data:null,edits:null,errors:[],failure:null},entry:["validate"],id:"nucleon",initial:"init",on:{DELETE:{target:"#nucleon.busy.deleting"},FETCH:{actions:["clearData","clearEdits","clearErrors"],target:"#nucleon.busy.fetching"},REFRESH:{target:"#nucleon.busy.fetching"},SET_DATA:{actions:["setData","clearEdits","clearErrors"],target:"#nucleon.init"}},states:{busy:{states:{creating:{invoke:{onDone:{actions:["setData","clearEdits","validate"],target:"#nucleon.idle.snapshot"},onError:[{actions:"setErrors",cond:"isV8nErrorEvent",target:"#nucleon.idle"},{actions:"setFailure",target:"#nucleon.fail"}],src:"sendPost"}},deleting:{invoke:{onDone:{actions:["clearData","clearEdits","validate"],target:"#nucleon.idle.template"},onError:[{actions:"setErrors",cond:"isV8nErrorEvent",target:"#nucleon.idle"},{actions:"setFailure",target:"#nucleon.fail"}],src:"sendDelete"}},fetching:{invoke:{onDone:{actions:["setData","clearErrors","validate"],target:"#nucleon.idle.snapshot"},onError:[{actions:"setErrors",cond:"isV8nErrorEvent",target:"#nucleon.idle"},{actions:"setFailure",target:"#nucleon.fail"}],src:"sendGet"}},updating:{invoke:{onDone:{actions:["setData","clearEdits","validate"],target:"#nucleon.idle.snapshot"},onError:[{actions:"setErrors",cond:"isV8nErrorEvent",target:"#nucleon.idle"},{actions:"setFailure",target:"#nucleon.fail"}],src:"sendPatch"}}}},fail:{exit:"clearFailure"},idle:{initial:"unknown",on:{EDIT:{actions:["applyEdit","validate"],target:".unknown"}},states:{snapshot:{initial:"unknown",states:{clean:{initial:"unknown",states:{invalid:{},unknown:{always:[{cond:"hasErrors",target:"invalid"},{target:"valid"}]},valid:{}}},dirty:{initial:"unknown",on:{UNDO:{actions:["clearEdits","clearErrors","validate"],target:"#nucleon.idle.snapshot.clean"}},states:{invalid:{},unknown:{always:[{cond:"hasErrors",target:"invalid"},{target:"valid"}]},valid:{on:{SUBMIT:{target:"#nucleon.busy.updating"}}}}},unknown:{always:[{cond:"hasEdits",target:"dirty"},{target:"clean"}]}}},template:{initial:"unknown",states:{clean:{initial:"unknown",states:{invalid:{},unknown:{always:[{cond:"hasErrors",target:"invalid"},{target:"valid"}]},valid:{}}},dirty:{initial:"unknown",on:{UNDO:{actions:["clearEdits","clearErrors","validate"],target:"#nucleon.idle.template.clean"}},states:{invalid:{},unknown:{always:[{cond:"hasErrors",target:"invalid"},{target:"valid"}]},valid:{on:{SUBMIT:{target:"#nucleon.busy.creating"}}}}},unknown:{always:[{cond:"hasEdits",target:"dirty"},{target:"clean"}]}}},unknown:{always:[{cond:"hasData",target:"snapshot"},{target:"template"}]}}},init:{always:[{cond:"hasData",target:"idle.snapshot"},{target:"idle.template"}]}}},{actions:Object.freeze({__proto__:null,clearFailure:Oe,clearErrors:Se,clearEdits:Ee,clearData:ke,validate:Ae,setFailure:Pe,setErrors:Te,setData:Re,applyEdit:De}),guards:Object.freeze({__proto__:null,hasData:t=>null!==t.data,hasEdits:t=>null!==t.edits,hasErrors:t=>t.errors.length>0,isV8nErrorEvent:(t,e)=>Array.isArray(e.data)})});class Ie{constructor(t){this.__tree=Ie.__parse(t)}static get True(){return Ce}static get False(){return Le}static fromAttribute(t,e){return null===t?Ie.False:""===t||t===e?Ie.True:new Ie(t)}matches(t,e=!1){const n=this.zoom(t).toString();return e?"not=*"===n:""!==n}zoom(t){const e=new Ie("");return e.__tree=t.split(":").reduce(((t,e)=>{let n;if("include"in t){if(n=t.include[e],void 0===n)return{include:{}};if(!0===n)return{exclude:{"*":!0}}}else{if(n=t.exclude[e],void 0===n)return{exclude:{"*":!0}};if(!0===n)return{include:{}}}return n}),this.__tree),e}toString(){return Ie.__stringifyTree(this.__tree)}toAttribute(t=""){const e=this.toString();return"not=*"===e?t:0===e.length?null:e}static __parsePath(t,e){const n=t.indexOf(":"),r=t.substring(0,n),i=t.substring(n+1);if("exclude"in e){const t=e.exclude[r];t&&(e.exclude[r]=this.__parseListItem(i,!0===t?void 0:t))}else{const t=e.include[r];!0!==t&&(e.include[r]=this.__parseListItem(i,t))}return e}static __parseSet(t,e){const n=t.split(",");if("include"in e){e={exclude:e.include};for(const t in e.exclude)n.includes(t)||delete e.exclude[t];for(const t of n)t in e.exclude?delete e.exclude[t]:e.exclude[t]=!0}else for(const t in e.exclude)n.includes(t)||delete e.exclude[t];return e}static __parseListItem(t,e={include:{}}){if(t.includes(":"))return this.__parsePath(t,e);if(t.startsWith("not="))return this.__parseSet(t.substring(4),e);if("include"in e)e.include[t]=!0;else for(const n in e.exclude)n===t&&delete e.exclude[n];return e}static __parseList(t,e={include:{}}){return t.split(" ").reduce(((t,e)=>this.__parseListItem(e,t)),e)}static __lintList(t){var e;let n="list",r="";for(let i=0;i<t.length;++i){const o=t.charAt(i);try{if("list"===n){if(/^\s$/.test(o)){/^\s$/.test(null!==(e=t[i-1])&&void 0!==e?e:" ")||(r+=" ");continue}if(/^[a-z]$/.test(o)){r+=o,n="path";continue}throw new SyntaxError(`Expected [a-z] or a whitespace, but got "${o}" instead.`)}if("path"===n){if(/^[a-z]$/.test(o)){r+=o;continue}if("-"===o){if("-"===t[i-1]||":"===t[i-1])throw new SyntaxError(`Expected [a-z], but got "${o}" instead.`);r+=o;continue}if(":"===o){if(":"===t[i-1]||"-"===t[i-1])throw new SyntaxError(`Expected [a-z], but got "${o}" instead.`);r+=o;continue}if("="===o){if("="===t[i-1]||":"===t[i-1]||"-"===t[i-1])throw new SyntaxError(`Expected [a-z], but got "${o}" instead.`);if(!r.endsWith("not")||3!==r.length&&/[a-z]|-/.test(r[i-4]))throw new SyntaxError(`Expected [a-z] or ":", but got "${o}" instead.`);r+=o,n="set";continue}if(/^\s$/.test(o)){r+=" ",n="list";continue}throw new SyntaxError(`Expected [a-z], ",", ":", ":" or a whitespace, but got "${o}" instead.`)}if("set"===n){if(/^\s$/.test(o))continue;if(/^[a-z]|\*$/.test(o)){n="set-item",r+=o;continue}throw new SyntaxError(`Expected [a-z] or a whitespace, but got "${o}" instead.`)}if("set-item"===n){if("*"===t[i-1]){if(","===o){r+=o,n="set";continue}if(/^\s$/.test(o)){i!==t.length-1&&(r+=" "),n="list";continue}throw new SyntaxError(`Expected "," or a whitespace, but got "${o}" instead.`)}if(/^[a-z]$/.test(o)){r+=o;continue}if("-"===o){if("-"===t[i-1]||":"===t[i-1]||"="===t[i-1])throw new SyntaxError(`Expected [a-z], but got "${o}" instead.`);r+=o;continue}if(","===o){r+=o,n="set";continue}if(/^\s$/.test(o)){i!==t.length-1&&(r+=" "),n="list";continue}throw new SyntaxError(`Expected [a-z], "," or a whitespace, but got "${o}" instead.`)}}catch(e){const n="This error occured at: ",r=t=>t.substring(Math.max(0,i-30),i+30),o=r(t),a=" ".repeat(n.length)+r("^".padStart(i+1," "));throw new SyntaxError([e.message,`${n}${o}`,a].join("\n"))}}return r.trimEnd()}static __parse(t){return this.__parseList(this.__lintList(t))}static __stringifyTree(t,e){const n=[];if("include"in t)for(const r in t.include){const i=t.include[r],o=e?[e,r].join(":"):r;!0===i?n.push(o):n.push(this.__stringifyTree(i,o))}else{const r=[],i=[];for(const n in t.exclude){const o=t.exclude[n],a=e?[e,n].join(":"):n;r.push(n),!0!==o&&i.push(this.__stringifyTree(o,a))}n.push(`${e?`${e}:`:""}not=${r.join(",")}`,...i)}return n.join(" ")}}const Le=new Ie(""),Ce=new Ie("not=*");var Fe=Array.isArray,Ue=1/0,Me=d?d.prototype:void 0,$e=Me?Me.toString:void 0;function Be(t){if("string"==typeof t)return t;if(Fe(t))return function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}(t,Be)+"";if(E(t))return $e?$e.call(t):"";var e=t+"";return"0"==e&&1/t==-Ue?"-0":e}var ze="[object AsyncFunction]",Ve="[object Function]",We="[object GeneratorFunction]",qe="[object Proxy]";function He(t){if(!l(t))return!1;var e=j(t);return e==Ve||e==We||e==ze||e==qe}var Ge,Je=p["__core-js_shared__"],Ke=(Ge=/[^.]+$/.exec(Je&&Je.keys&&Je.keys.IE_PROTO||""))?"Symbol(src)_1."+Ge:"";var Qe=Function.prototype.toString;function Ze(t){if(null!=t){try{return Qe.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var Xe=/^\[object .+?Constructor\]$/,Ye=Function.prototype,tn=Object.prototype,en=Ye.toString,nn=tn.hasOwnProperty,rn=RegExp("^"+en.call(nn).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function on(t){return!(!l(t)||(e=t,Ke&&Ke in e))&&(He(t)?rn:Xe).test(Ze(t));var e}function an(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return on(n)?n:void 0}var sn=an(p,"WeakMap"),cn=9007199254740991,un=/^(?:0|[1-9]\d*)$/;function ln(t,e){var n=typeof t;return!!(e=null==e?cn:e)&&("number"==n||"symbol"!=n&&un.test(t))&&t>-1&&t%1==0&&t<e}function fn(t,e){return t===e||t!=t&&e!=e}var hn=9007199254740991;function pn(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=hn}function dn(t){return null!=t&&pn(t.length)&&!He(t)}var yn=Object.prototype;function vn(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||yn)}function gn(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function bn(t){return O(t)&&"[object Arguments]"==j(t)}var _n=Object.prototype,mn=_n.hasOwnProperty,wn=_n.propertyIsEnumerable,xn=bn(function(){return arguments}())?bn:function(t){return O(t)&&mn.call(t,"callee")&&!wn.call(t,"callee")};var jn="object"==typeof exports&&exports&&!exports.nodeType&&exports,On=jn&&"object"==typeof module&&module&&!module.nodeType&&module,Sn=On&&On.exports===jn?p.Buffer:void 0,En=(Sn?Sn.isBuffer:void 0)||function(){return!1},kn={};function An(t){return function(e){return t(e)}}kn["[object Float32Array]"]=kn["[object Float64Array]"]=kn["[object Int8Array]"]=kn["[object Int16Array]"]=kn["[object Int32Array]"]=kn["[object Uint8Array]"]=kn["[object Uint8ClampedArray]"]=kn["[object Uint16Array]"]=kn["[object Uint32Array]"]=!0,kn["[object Arguments]"]=kn["[object Array]"]=kn["[object ArrayBuffer]"]=kn["[object Boolean]"]=kn["[object DataView]"]=kn["[object Date]"]=kn["[object Error]"]=kn["[object Function]"]=kn["[object Map]"]=kn["[object Number]"]=kn["[object Object]"]=kn["[object RegExp]"]=kn["[object Set]"]=kn["[object String]"]=kn["[object WeakMap]"]=!1;var Pn="object"==typeof exports&&exports&&!exports.nodeType&&exports,Tn=Pn&&"object"==typeof module&&module&&!module.nodeType&&module,Rn=Tn&&Tn.exports===Pn&&f.process,Dn=function(){try{var t=Tn&&Tn.require&&Tn.require("util").types;return t||Rn&&Rn.binding&&Rn.binding("util")}catch(t){}}(),Nn=Dn&&Dn.isTypedArray,In=Nn?An(Nn):function(t){return O(t)&&pn(t.length)&&!!kn[j(t)]},Ln=Object.prototype.hasOwnProperty;function Cn(t,e){var n=Fe(t),r=!n&&xn(t),i=!n&&!r&&En(t),o=!n&&!r&&!i&&In(t),a=n||r||i||o,s=a?gn(t.length,String):[],c=s.length;for(var u in t)!e&&!Ln.call(t,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||ln(u,c))||s.push(u);return s}function Fn(t,e){return function(n){return t(e(n))}}var Un=Fn(Object.keys,Object),Mn=Object.prototype.hasOwnProperty;function $n(t){return dn(t)?Cn(t):function(t){if(!vn(t))return Un(t);var e=[];for(var n in Object(t))Mn.call(t,n)&&"constructor"!=n&&e.push(n);return e}(t)}var Bn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,zn=/^\w*$/;var Vn=an(Object,"create");var Wn=Object.prototype.hasOwnProperty;var qn=Object.prototype.hasOwnProperty;function Hn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Gn(t,e){for(var n=t.length;n--;)if(fn(t[n][0],e))return n;return-1}Hn.prototype.clear=function(){this.__data__=Vn?Vn(null):{},this.size=0},Hn.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Hn.prototype.get=function(t){var e=this.__data__;if(Vn){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Wn.call(e,t)?e[t]:void 0},Hn.prototype.has=function(t){var e=this.__data__;return Vn?void 0!==e[t]:qn.call(e,t)},Hn.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Vn&&void 0===e?"__lodash_hash_undefined__":e,this};var Jn=Array.prototype.splice;function Kn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Kn.prototype.clear=function(){this.__data__=[],this.size=0},Kn.prototype.delete=function(t){var e=this.__data__,n=Gn(e,t);return!(n<0)&&(n==e.length-1?e.pop():Jn.call(e,n,1),--this.size,!0)},Kn.prototype.get=function(t){var e=this.__data__,n=Gn(e,t);return n<0?void 0:e[n][1]},Kn.prototype.has=function(t){return Gn(this.__data__,t)>-1},Kn.prototype.set=function(t,e){var n=this.__data__,r=Gn(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};var Qn=an(p,"Map");function Zn(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function Xn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Xn.prototype.clear=function(){this.size=0,this.__data__={hash:new Hn,map:new(Qn||Kn),string:new Hn}},Xn.prototype.delete=function(t){var e=Zn(this,t).delete(t);return this.size-=e?1:0,e},Xn.prototype.get=function(t){return Zn(this,t).get(t)},Xn.prototype.has=function(t){return Zn(this,t).has(t)},Xn.prototype.set=function(t,e){var n=Zn(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};var Yn="Expected a function";function tr(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(Yn);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(tr.Cache||Xn),n}tr.Cache=Xn;var er,nr,rr,ir=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,or=/\\(\\)?/g,ar=(er=function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ir,(function(t,n,r,i){e.push(r?i.replace(or,"$1"):n||t)})),e},nr=tr(er,(function(t){return 500===rr.size&&rr.clear(),t})),rr=nr.cache,nr),sr=ar;function cr(t,e){return Fe(t)?t:function(t,e){if(Fe(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!E(t))||zn.test(t)||!Bn.test(t)||null!=e&&t in Object(e)}(t,e)?[t]:sr(function(t){return null==t?"":Be(t)}(t))}var ur=1/0;function lr(t){if("string"==typeof t||E(t))return t;var e=t+"";return"0"==e&&1/t==-ur?"-0":e}function fr(t,e,n){var r=null==t?void 0:function(t,e){for(var n=0,r=(e=cr(e,t)).length;null!=t&&n<r;)t=t[lr(e[n++])];return n&&n==r?t:void 0}(t,e);return void 0===r?n:r}function hr(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function pr(t){var e=this.__data__=new Kn(t);this.size=e.size}function dr(){return[]}pr.prototype.clear=function(){this.__data__=new Kn,this.size=0},pr.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},pr.prototype.get=function(t){return this.__data__.get(t)},pr.prototype.has=function(t){return this.__data__.has(t)},pr.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Kn){var r=n.__data__;if(!Qn||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Xn(r)}return n.set(t,e),this.size=n.size,this};var yr=Object.prototype.propertyIsEnumerable,vr=Object.getOwnPropertySymbols,gr=vr?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}(vr(t),(function(e){return yr.call(t,e)})))}:dr,br=gr;function _r(t,e,n){var r=e(t);return Fe(t)?r:hr(r,n(t))}function mr(t){return _r(t,$n,br)}var wr=an(p,"DataView"),xr=an(p,"Promise"),jr=an(p,"Set"),Or="[object Map]",Sr="[object Promise]",Er="[object Set]",kr="[object WeakMap]",Ar="[object DataView]",Pr=Ze(wr),Tr=Ze(Qn),Rr=Ze(xr),Dr=Ze(jr),Nr=Ze(sn),Ir=j;(wr&&Ir(new wr(new ArrayBuffer(1)))!=Ar||Qn&&Ir(new Qn)!=Or||xr&&Ir(xr.resolve())!=Sr||jr&&Ir(new jr)!=Er||sn&&Ir(new sn)!=kr)&&(Ir=function(t){var e=j(t),n="[object Object]"==e?t.constructor:void 0,r=n?Ze(n):"";if(r)switch(r){case Pr:return Ar;case Tr:return Or;case Rr:return Sr;case Dr:return Er;case Nr:return kr}return e});var Lr=Ir,Cr=p.Uint8Array;function Fr(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Xn;++e<n;)this.add(t[e])}function Ur(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function Mr(t,e){return t.has(e)}Fr.prototype.add=Fr.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Fr.prototype.has=function(t){return this.__data__.has(t)};var $r=1,Br=2;function zr(t,e,n,r,i,o){var a=n&$r,s=t.length,c=e.length;if(s!=c&&!(a&&c>s))return!1;var u=o.get(t),l=o.get(e);if(u&&l)return u==e&&l==t;var f=-1,h=!0,p=n&Br?new Fr:void 0;for(o.set(t,e),o.set(e,t);++f<s;){var d=t[f],y=e[f];if(r)var v=a?r(y,d,f,e,t,o):r(d,y,f,t,e,o);if(void 0!==v){if(v)continue;h=!1;break}if(p){if(!Ur(e,(function(t,e){if(!Mr(p,e)&&(d===t||i(d,t,n,r,o)))return p.push(e)}))){h=!1;break}}else if(d!==y&&!i(d,y,n,r,o)){h=!1;break}}return o.delete(t),o.delete(e),h}function Vr(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function Wr(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var qr=1,Hr=2,Gr="[object Boolean]",Jr="[object Date]",Kr="[object Error]",Qr="[object Map]",Zr="[object Number]",Xr="[object RegExp]",Yr="[object Set]",ti="[object String]",ei="[object Symbol]",ni="[object ArrayBuffer]",ri="[object DataView]",ii=d?d.prototype:void 0,oi=ii?ii.valueOf:void 0;var ai=1,si=Object.prototype.hasOwnProperty;var ci=1,ui="[object Arguments]",li="[object Array]",fi="[object Object]",hi=Object.prototype.hasOwnProperty;function pi(t,e,n,r,i,o){var a=Fe(t),s=Fe(e),c=a?li:Lr(t),u=s?li:Lr(e),l=(c=c==ui?fi:c)==fi,f=(u=u==ui?fi:u)==fi,h=c==u;if(h&&En(t)){if(!En(e))return!1;a=!0,l=!1}if(h&&!l)return o||(o=new pr),a||In(t)?zr(t,e,n,r,i,o):function(t,e,n,r,i,o,a){switch(n){case ri:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case ni:return!(t.byteLength!=e.byteLength||!o(new Cr(t),new Cr(e)));case Gr:case Jr:case Zr:return fn(+t,+e);case Kr:return t.name==e.name&&t.message==e.message;case Xr:case ti:return t==e+"";case Qr:var s=Vr;case Yr:var c=r&qr;if(s||(s=Wr),t.size!=e.size&&!c)return!1;var u=a.get(t);if(u)return u==e;r|=Hr,a.set(t,e);var l=zr(s(t),s(e),r,i,o,a);return a.delete(t),l;case ei:if(oi)return oi.call(t)==oi.call(e)}return!1}(t,e,c,n,r,i,o);if(!(n&ci)){var p=l&&hi.call(t,"__wrapped__"),d=f&&hi.call(e,"__wrapped__");if(p||d){var y=p?t.value():t,v=d?e.value():e;return o||(o=new pr),i(y,v,n,r,o)}}return!!h&&(o||(o=new pr),function(t,e,n,r,i,o){var a=n&ai,s=mr(t),c=s.length;if(c!=mr(e).length&&!a)return!1;for(var u=c;u--;){var l=s[u];if(!(a?l in e:si.call(e,l)))return!1}var f=o.get(t),h=o.get(e);if(f&&h)return f==e&&h==t;var p=!0;o.set(t,e),o.set(e,t);for(var d=a;++u<c;){var y=t[l=s[u]],v=e[l];if(r)var g=a?r(v,y,l,e,t,o):r(y,v,l,t,e,o);if(!(void 0===g?y===v||i(y,v,n,r,o):g)){p=!1;break}d||(d="constructor"==l)}if(p&&!d){var b=t.constructor,_=e.constructor;b==_||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof _&&_ instanceof _||(p=!1)}return o.delete(t),o.delete(e),p}(t,e,n,r,i,o))}function di(t,e,n,r,i){return t===e||(null==t||null==e||!O(t)&&!O(e)?t!=t&&e!=e:pi(t,e,n,r,di,i))}function yi(t,e){return di(t,e)}class vi extends Error{constructor(){super("not enough info to update; please reload resource instead")}}function gi(t){return Object.prototype.toString.call(t)}var bi=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function _i(t,e){if(t.forEach)return t.forEach(e);for(var n=0;n<t.length;n++)e(t[n],n,t)}var mi=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e},wi=Object.prototype.hasOwnProperty||function(t,e){return e in t};function xi(t){if("object"==typeof t&&null!==t){var e;if(bi(t))e=[];else if("[object Date]"===gi(t))e=new Date(t.getTime?t.getTime():t);else if(function(t){return"[object RegExp]"===gi(t)}(t))e=new RegExp(t);else if(function(t){return"[object Error]"===gi(t)}(t))e={message:t.message};else if(function(t){return"[object Boolean]"===gi(t)}(t)||function(t){return"[object Number]"===gi(t)}(t)||function(t){return"[object String]"===gi(t)}(t))e=Object(t);else if(Object.create&&Object.getPrototypeOf)e=Object.create(Object.getPrototypeOf(t));else if(t.constructor===Object)e={};else{var n=t.constructor&&t.constructor.prototype||t.__proto__||{},r=function(){};r.prototype=n,e=new r}return _i(mi(t),(function(n){e[n]=t[n]})),e}return t}function ji(t,e,n){var r=[],i=[],o=!0;return function t(a){var s=n?xi(a):a,c={},u=!0,l={node:s,node_:a,path:[].concat(r),parent:i[i.length-1],parents:i,key:r[r.length-1],isRoot:0===r.length,level:r.length,circular:null,update:function(t,e){l.isRoot||(l.parent.node[l.key]=t),l.node=t,e&&(u=!1)},delete:function(t){delete l.parent.node[l.key],t&&(u=!1)},remove:function(t){bi(l.parent.node)?l.parent.node.splice(l.key,1):delete l.parent.node[l.key],t&&(u=!1)},keys:null,before:function(t){c.before=t},after:function(t){c.after=t},pre:function(t){c.pre=t},post:function(t){c.post=t},stop:function(){o=!1},block:function(){u=!1}};if(!o)return l;function f(){if("object"==typeof l.node&&null!==l.node){l.keys&&l.node_===l.node||(l.keys=mi(l.node)),l.isLeaf=0===l.keys.length;for(var t=0;t<i.length;t++)if(i[t].node_===a){l.circular=i[t];break}}else l.isLeaf=!0,l.keys=null;l.notLeaf=!l.isLeaf,l.notRoot=!l.isRoot}f();var h=e.call(l,l.node);return void 0!==h&&l.update&&l.update(h),c.before&&c.before.call(l,l.node),u?("object"!=typeof l.node||null===l.node||l.circular||(i.push(l),f(),_i(l.keys,(function(e,i){r.push(e),c.pre&&c.pre.call(l,l.node[e],e);var o=t(l.node[e]);n&&wi.call(l.node,e)&&(l.node[e]=o.node),o.isLast=i===l.keys.length-1,o.isFirst=0===i,c.post&&c.post.call(l,o),r.pop()})),i.pop()),c.after&&c.after.call(l,l.node),l):l}(t).node}function Oi(t){this.value=t}function Si(t){return new Oi(t)}Oi.prototype.get=function(t){for(var e=this.value,n=0;n<t.length;n++){var r=t[n];if(!e||!wi.call(e,r))return;e=e[r]}return e},Oi.prototype.has=function(t){for(var e=this.value,n=0;n<t.length;n++){var r=t[n];if(!e||!wi.call(e,r))return!1;e=e[r]}return!0},Oi.prototype.set=function(t,e){for(var n=this.value,r=0;r<t.length-1;r++){var i=t[r];wi.call(n,i)||(n[i]={}),n=n[i]}return n[t[r]]=e,e},Oi.prototype.map=function(t){return ji(this.value,t,!0)},Oi.prototype.forEach=function(t){return this.value=ji(this.value,t,!1),this.value},Oi.prototype.reduce=function(t,e){var n=1===arguments.length,r=n?this.value:e;return this.forEach((function(e){this.isRoot&&n||(r=t.call(this,r,e))})),r},Oi.prototype.paths=function(){var t=[];return this.forEach((function(){t.push(this.path)})),t},Oi.prototype.nodes=function(){var t=[];return this.forEach((function(){t.push(this.node)})),t},Oi.prototype.clone=function(){var t=[],e=[];return function n(r){for(var i=0;i<t.length;i++)if(t[i]===r)return e[i];if("object"==typeof r&&null!==r){var o=xi(r);return t.push(r),e.push(o),_i(mi(r),(function(t){o[t]=n(r[t])})),t.pop(),e.pop(),o}return r}(this.value)},_i(mi(Oi.prototype),(function(t){Si[t]=function(e){var n=[].slice.call(arguments,1),r=new Oi(e);return r[t].apply(r,n)}}));var Ei=Si;class ki{constructor(){this.__callbacks=[]}share(t){const{related:e,source:n,data:r}=t,i=null===r?new Map([[n,null]]):ki.__createPatch(r);[...this.__callbacks].forEach((t=>{t((t=>{const n=ki.__applyPatch(i,t,e);return yi(t,n)?t:n}))}))}track(t){return this.__callbacks.push(t),()=>{this.__callbacks.splice(this.__callbacks.indexOf(t),1)}}cease(){this.__callbacks.length=0}static __isCollection(t){return"string"==typeof fr(t,"_links.first.href")}static __isResource(t){return"string"==typeof fr(t,"_links.self.href")}static __approximateURI(t){try{const e=new URL(t);return e.search="",e.hash="",e.toString()}catch(e){return t}}static __createPatch(t){return Ei(t).reduce((function(t,e){if(!ki.__isResource(e)||ki.__isCollection(e))return t;const n=Ei(e).map((function(){var t;(null===(t=this.key)||void 0===t?void 0:t.startsWith("_"))&&this.delete(!0)}));return t.set(e._links.self.href,n),t}),new Map)}static __applyPatch(t,e,n){var r,i;const o=null!==(r=null==n?void 0:n.map((t=>ki.__approximateURI(t))))&&void 0!==r?r:[];return null!==(i=Ei({data:e}).map((function(e){if(!ki.__isResource(e))return;const n=e._links.self.href,r=ki.__approximateURI(n);if(o.includes(r))throw new ki.UpdateError;if(t.has(n)){const r=t.get(n);if(r)return this.update(Object.assign(Object.assign({},e),r),!0);if(!this.parent.parent)return this.delete(!0);throw new ki.UpdateError}})).data)&&void 0!==i?i:null}}ki.UpdateError=vi;var Ai=c((function(t,e){var n="undefined"!=typeof self?self:a,r=function(){function t(){this.fetch=!1,this.DOMException=n.DOMException}return t.prototype=n,new t}();!function(t){!function(e){var n="URLSearchParams"in t,r="Symbol"in t&&"iterator"in Symbol,i="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),o="FormData"in t,a="ArrayBuffer"in t;if(a)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(t){return t&&s.indexOf(Object.prototype.toString.call(t))>-1};function u(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function l(t){return"string"!=typeof t&&(t=String(t)),t}function f(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return r&&(e[Symbol.iterator]=function(){return e}),e}function h(t){this.map={},t instanceof h?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function p(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function d(t){return new Promise((function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function y(t){var e=new FileReader,n=d(e);return e.readAsArrayBuffer(t),n}function v(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function g(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:i&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:n&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():a&&i&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=v(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(t)||c(t))?this._bodyArrayBuffer=v(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var t=p(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?p(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(y)}),this.text=function(){var t,e,n,r=p(this);if(r)return r;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,n=d(e),e.readAsText(t),n;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r<e.length;r++)n[r]=String.fromCharCode(e[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o&&(this.formData=function(){return this.text().then(m)}),this.json=function(){return this.text().then(JSON.parse)},this}h.prototype.append=function(t,e){t=u(t),e=l(e);var n=this.map[t];this.map[t]=n?n+", "+e:e},h.prototype.delete=function(t){delete this.map[u(t)]},h.prototype.get=function(t){return t=u(t),this.has(t)?this.map[t]:null},h.prototype.has=function(t){return this.map.hasOwnProperty(u(t))},h.prototype.set=function(t,e){this.map[u(t)]=l(e)},h.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)},h.prototype.keys=function(){var t=[];return this.forEach((function(e,n){t.push(n)})),f(t)},h.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),f(t)},h.prototype.entries=function(){var t=[];return this.forEach((function(e,n){t.push([n,e])})),f(t)},r&&(h.prototype[Symbol.iterator]=h.prototype.entries);var b=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function _(t,e){var n,r,i=(e=e||{}).body;if(t instanceof _){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new h(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new h(e.headers)),this.method=(n=e.method||this.method||"GET",r=n.toUpperCase(),b.indexOf(r)>-1?r:n),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function m(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(i))}})),e}function w(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new h(e.headers),this.url=e.url||"",this._initBody(t)}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},g.call(_.prototype),g.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},w.error=function(){var t=new w(null,{status:0,statusText:""});return t.type="error",t};var x=[301,302,303,307,308];w.redirect=function(t,e){if(-1===x.indexOf(e))throw new RangeError("Invalid status code");return new w(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function j(t,n){return new Promise((function(r,o){var a=new _(t,n);if(a.signal&&a.signal.aborted)return o(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var t,e,n={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new h,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var n=t.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();e.append(r,i)}})),e)};n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;r(new w(i,n))},s.onerror=function(){o(new TypeError("Network request failed"))},s.ontimeout=function(){o(new TypeError("Network request failed"))},s.onabort=function(){o(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&i&&(s.responseType="blob"),a.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}j.polyfill=!0,t.fetch||(t.fetch=j,t.Headers=h,t.Request=_,t.Response=w),e.Headers=h,e.Request=_,e.Response=w,e.fetch=j,Object.defineProperty(e,"__esModule",{value:!0})}({})}(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=r;(e=i.fetch).default=i.fetch,e.fetch=i.fetch,e.Headers=i.Headers,e.Request=i.Request,e.Response=i.Response,t.exports=e})),Pi=c((function(t,e){t.exports=function(){function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function n(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function a(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||s(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){if(t){if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function u(t){if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(t=s(t))){var e=0,n=function(){};return{s:n,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i,o=!0,a=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return o=t.done,t},e:function(t){a=!0,i=t},f:function(){try{o||null==r.return||r.return()}finally{if(a)throw i}}}}var l={};l[l.Fatal=0]="Fatal",l[l.Error=0]="Error",l[l.Warn=1]="Warn",l[l.Log=2]="Log",l[l.Info=3]="Info",l[l.Success=3]="Success",l[l.Debug=4]="Debug",l[l.Trace=5]="Trace",l[l.Silent=-1/0]="Silent",l[l.Verbose=1/0]="Verbose";var f={silent:{level:-1},fatal:{level:l.Fatal},error:{level:l.Error},warn:{level:l.Warn},log:{level:l.Log},info:{level:l.Info},success:{level:l.Success},debug:{level:l.Debug},trace:{level:l.Trace},verbose:{level:l.Trace},ready:{level:l.Info},start:{level:l.Info}};function h(t){return e=t,!("[object Object]"!==Object.prototype.toString.call(e)||!t.message&&!t.args||t.stack);var e}var p=!1,d=[],y=function(){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var r in t(this,e),this._reporters=n.reporters||[],this._types=n.types||f,this.level=void 0!==n.level?n.level:3,this._defaults=n.defaults||{},this._async=void 0!==n.async?n.async:void 0,this._stdout=n.stdout,this._stderr=n.stderr,this._mockFn=n.mockFn,this._throttle=n.throttle||1e3,this._throttleMin=n.throttleMin||5,this._types){var i=o(o({type:r},this._types[r]),this._defaults);this[r]=this._wrapLogFn(i),this[r].raw=this._wrapLogFn(i,!0)}this._mockFn&&this.mockTypes(),this._lastLogSerialized=void 0,this._lastLog=void 0,this._lastLogTime=void 0,this._lastLogCount=0,this._throttleTimeout=void 0}return n(e,[{key:"create",value:function(t){return new e(Object.assign({reporters:this._reporters,level:this.level,types:this._types,defaults:this._defaults,stdout:this._stdout,stderr:this._stderr,mockFn:this._mockFn},t))}},{key:"withDefaults",value:function(t){return this.create({defaults:Object.assign({},this._defaults,t)})}},{key:"withTag",value:function(t){return this.withDefaults({tag:this._defaults.tag?this._defaults.tag+":"+t:t})}},{key:"addReporter",value:function(t){return this._reporters.push(t),this}},{key:"removeReporter",value:function(t){if(t){var e=this._reporters.indexOf(t);if(e>=0)return this._reporters.splice(e,1)}else this._reporters.splice(0);return this}},{key:"setReporters",value:function(t){return this._reporters=Array.isArray(t)?t:[t],this}},{key:"wrapAll",value:function(){this.wrapConsole(),this.wrapStd()}},{key:"restoreAll",value:function(){this.restoreConsole(),this.restoreStd()}},{key:"wrapConsole",value:function(){for(var t in this._types)console["__"+t]||(console["__"+t]=console[t]),console[t]=this[t].raw}},{key:"restoreConsole",value:function(){for(var t in this._types)console["__"+t]&&(console[t]=console["__"+t],delete console["__"+t])}},{key:"wrapStd",value:function(){this._wrapStream(this.stdout,"log"),this._wrapStream(this.stderr,"log")}},{key:"_wrapStream",value:function(t,e){var n=this;t&&(t.__write||(t.__write=t.write),t.write=function(t){n[e].raw(String(t).trim())})}},{key:"restoreStd",value:function(){this._restoreStream(this.stdout),this._restoreStream(this.stderr)}},{key:"_restoreStream",value:function(t){t&&t.__write&&(t.write=t.__write,delete t.__write)}},{key:"pauseLogs",value:function(){p=!0}},{key:"resumeLogs",value:function(){p=!1;var t,e=u(d.splice(0));try{for(e.s();!(t=e.n()).done;){var n=t.value;n[0]._logFn(n[1],n[2])}}catch(t){e.e(t)}finally{e.f()}}},{key:"mockTypes",value:function(t){if(this._mockFn=t||this._mockFn,"function"==typeof this._mockFn)for(var e in this._types)this[e]=this._mockFn(e,this._types[e])||this[e],this[e].raw=this[e]}},{key:"_wrapLogFn",value:function(t,e){var n=this;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];if(!p)return n._logFn(t,i,e);d.push([n,t,i,e])}}},{key:"_logFn",value:function(t,e,n){var r=this;if(t.level>this.level)return!!this._async&&Promise.resolve(!1);var i=Object.assign({date:new Date,args:[]},t);!n&&1===e.length&&h(e[0])?Object.assign(i,e[0]):i.args=Array.from(e),i.message&&(i.args.unshift(i.message),delete i.message),i.additional&&(Array.isArray(i.additional)||(i.additional=i.additional.split("\n")),i.args.push("\n"+i.additional.join("\n")),delete i.additional),i.type="string"==typeof i.type?i.type.toLowerCase():"",i.tag="string"==typeof i.tag?i.tag.toLowerCase():"";var s=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=r._lastLogCount-r._throttleMin;if(r._lastLog&&e>0){var n=a(r._lastLog.args);e>1&&n.push("(repeated ".concat(e," times)")),r._log(o(o({},r._lastLog),{},{args:n})),r._lastLogCount=1}if(t){if(r._lastLog=i,r._async)return r._logAsync(i);r._log(i)}};clearTimeout(this._throttleTimeout);var c=this._lastLogTime?i.date-this._lastLogTime:0;if(this._lastLogTime=i.date,c<this._throttle)try{var u=JSON.stringify([i.type,i.tag,i.args]),l=this._lastLogSerialized===u;if(this._lastLogSerialized=u,l&&(this._lastLogCount++,this._lastLogCount>this._throttleMin))return void(this._throttleTimeout=setTimeout(s,this._throttle))}catch(t){}s(!0)}},{key:"_log",value:function(t){var e,n=u(this._reporters);try{for(n.s();!(e=n.n()).done;)e.value.log(t,{async:!1,stdout:this.stdout,stderr:this.stderr})}catch(t){n.e(t)}finally{n.f()}}},{key:"_logAsync",value:function(t){var e=this;return Promise.all(this._reporters.map((function(n){return n.log(t,{async:!0,stdout:e.stdout,stderr:e.stderr})})))}},{key:"stdout",get:function(){return this._stdout||console._stdout}},{key:"stderr",get:function(){return this._stderr||console._stderr}}]),e}();y.prototype.add=y.prototype.addReporter,y.prototype.remove=y.prototype.removeReporter,y.prototype.clear=y.prototype.removeReporter,y.prototype.withScope=y.prototype.withTag,y.prototype.mock=y.prototype.mockTypes,y.prototype.pause=y.prototype.pauseLogs,y.prototype.resume=y.prototype.resumeLogs;var v,g=function(){function e(n){t(this,e),this.options=Object.assign({},n),this.defaultColor="#7f8c8d",this.levelColorMap={0:"#c0392b",1:"#f39c12",3:"#00BCD4"},this.typeColorMap={success:"#2ecc71"}}return n(e,[{key:"log",value:function(t){var e=t.level<1?console.__error||console.error:1===t.level&&console.warn?console.__warn||console.warn:console.__log||console.log,n="log"!==t.type?t.type:"",r=t.tag?t.tag:"",i=this.typeColorMap[t.type]||this.levelColorMap[t.level]||this.defaultColor,o="\n background: ".concat(i,";\n border-radius: 0.5em;\n color: white;\n font-weight: bold;\n padding: 2px 0.5em;\n "),s="%c".concat([r,n].filter(Boolean).join(":"));"string"==typeof t.args[0]?e.apply(void 0,["".concat(s,"%c ").concat(t.args[0]),o,""].concat(a(t.args.slice(1)))):e.apply(void 0,[s,o].concat(a(t.args)))}}]),e}();return"undefined"!=typeof window&&window.consola||((v=new y({reporters:[new g]})).Consola=y,v.LogLevel=l,v.BrowserReporter=g,v)}()})),Ti=function(t,e,n,r){this.name=t,this.fn=e,this.args=n,this.modifiers=r};function Ri(t,e){return void 0===e&&(e="simple"),"object"==typeof t?t[e]:t}function Di(t,e,n){if(t.length){var r=t.shift(),i=Di(t,e,n);return r.perform(i,n)}return Ri(e)}function Ni(t,e,n){if(t.length){var r=t.shift(),i=Ni(t,e,n);return r.performAsync(i,n)}return function(t){return Promise.resolve(Ri(e,"async")(t))}}Ti.prototype._test=function(t){var e=this.fn;try{Di(this.modifiers.slice(),e,this)(t)}catch(t){e=function(){return!1}}try{return Di(this.modifiers.slice(),e,this)(t)}catch(t){return!1}},Ti.prototype._check=function(t){try{Di(this.modifiers.slice(),this.fn,this)(t)}catch(t){if(Di(this.modifiers.slice(),(function(t){return t}),this)(!1))return}if(!Di(this.modifiers.slice(),this.fn,this)(t))throw null},Ti.prototype._testAsync=function(t){var e=this;return new Promise((function(n,r){Ni(e.modifiers.slice(),e.fn,e)(t).then((function(e){e?n(t):r(null)})).catch((function(t){return r(t)}))}))};var Ii=function(t,e,n){this.name=t,this.perform=e,this.performAsync=n},Li=function(t){function e(n,r,i,o){for(var a=[],s=arguments.length-4;s-- >0;)a[s]=arguments[s+4];t.call(this,a),t.captureStackTrace&&t.captureStackTrace(this,e),this.rule=n,this.value=r,this.cause=i,this.target=o}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Error),Ci=function(t,e){void 0===t&&(t=[]),void 0===e&&(e=[]),this.chain=t,this.nextRuleModifiers=e};function Fi(t,e,n,r){if(e.length){var i=e.shift();i._testAsync(t).then((function(){Fi(t,e,n,r)}),(function(e){r(new Li(i,t,e))}))}else n(t)}Ci.prototype._applyRule=function(t,e){var n=this;return function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return n.chain.push(new Ti(e,t.apply(n,r),r,n.nextRuleModifiers)),n.nextRuleModifiers=[],n}},Ci.prototype._applyModifier=function(t,e){return this.nextRuleModifiers.push(new Ii(e,t.simple,t.async)),this},Ci.prototype._clone=function(){return new Ci(this.chain.slice(),this.nextRuleModifiers.slice())},Ci.prototype.test=function(t){return this.chain.every((function(e){return e._test(t)}))},Ci.prototype.testAll=function(t){var e=[];return this.chain.forEach((function(n){try{n._check(t)}catch(r){e.push(new Li(n,t,r))}})),e},Ci.prototype.check=function(t){this.chain.forEach((function(e){try{e._check(t)}catch(n){throw new Li(e,t,n)}}))},Ci.prototype.testAsync=function(t){var e=this;return new Promise((function(n,r){Fi(t,e.chain.slice(),n,r)}))};var Ui=function(t,e){return!(!e||"string"!=typeof t||0!==t.trim().length)||null==t};function Mi(){return"undefined"!=typeof Proxy?Bi(new Ci):zi(new Ci)}var $i={};function Bi(t){return new Proxy(t,{get:function(e,n){if(n in e)return e[n];var r=Bi(t._clone());return n in Vi?r._applyModifier(Vi[n],n):n in $i?r._applyRule($i[n],n):n in Hi?r._applyRule(Hi[n],n):void 0}})}function zi(t){var e=function(t,e){return Object.keys(t).forEach((function(n){e[n]=function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return zi(e._clone())._applyRule(t[n],n).apply(void 0,r)}})),e},n=e(Hi,t),r=e($i,n);return Object.keys(Vi).forEach((function(t){Object.defineProperty(r,t,{get:function(){return zi(r._clone())._applyModifier(Vi[t],t)}})})),r}Mi.extend=function(t){Object.assign($i,t)},Mi.clearCustomRules=function(){$i={}};var Vi={not:{simple:function(t){return function(e){return!t(e)}},async:function(t){return function(e){return Promise.resolve(t(e)).then((function(t){return!t})).catch((function(){return!0}))}}},some:{simple:function(t){return function(e){return qi(e).some((function(e){try{return t(e)}catch(t){return!1}}))}},async:function(t){return function(e){return Promise.all(qi(e).map((function(e){try{return t(e).catch((function(){return!1}))}catch(t){return!1}}))).then((function(t){return t.some(Boolean)}))}}},every:{simple:function(t){return function(e){return!1!==e&&qi(e).every(t)}},async:function(t){return function(e){return Promise.all(qi(e).map(t)).then((function(t){return t.every(Boolean)}))}}},strict:{simple:function(t,e){return function(n){return Wi(e)&&n&&"object"==typeof n?Object.keys(e.args[0]).length===Object.keys(n).length&&t(n):t(n)}},async:function(t,e){return function(n){return Promise.resolve(t(n)).then((function(t){return Wi(e)&&n&&"object"==typeof n?Object.keys(e.args[0]).length===Object.keys(n).length&&t:t})).catch((function(){return!1}))}}}};function Wi(t){return t&&"schema"===t.name&&t.args.length>0&&"object"==typeof t.args[0]}function qi(t){return"string"==typeof t?t.split(""):t}var Hi={equal:function(t){return function(e){return e==t}},exact:function(t){return function(e){return e===t}},number:function(t){return void 0===t&&(t=!0),function(e){return"number"==typeof e&&(t||isFinite(e))}},integer:function(){return function(t){return(Number.isInteger||Ji)(t)}},numeric:function(){return function(t){return!isNaN(parseFloat(t))&&isFinite(t)}},string:function(){return Gi("string")},boolean:function(){return Gi("boolean")},undefined:function(){return Gi("undefined")},null:function(){return Gi("null")},array:function(){return Gi("array")},object:function(){return Gi("object")},instanceOf:function(t){return function(e){return e instanceof t}},pattern:function(t){return function(e){return t.test(e)}},lowercase:function(){return function(t){return"boolean"==typeof t||t===t.toLowerCase()&&""!==t.trim()}},uppercase:function(){return function(t){return t===t.toUpperCase()&&""!==t.trim()}},vowel:function(){return function(t){return/^[aeiou]+$/i.test(t)}},consonant:function(){return function(t){return/^(?=[^aeiou])([a-z]+)$/i.test(t)}},first:function(t){return function(e){return e[0]==t}},last:function(t){return function(e){return e[e.length-1]==t}},empty:function(){return function(t){return 0===t.length}},length:function(t,e){return function(n){return n.length>=t&&n.length<=(e||t)}},minLength:function(t){return function(e){return e.length>=t}},maxLength:function(t){return function(e){return e.length<=t}},negative:function(){return function(t){return t<0}},positive:function(){return function(t){return t>=0}},between:function(t,e){return function(n){return n>=t&&n<=e}},range:function(t,e){return function(n){return n>=t&&n<=e}},lessThan:function(t){return function(e){return e<t}},lessThanOrEqual:function(t){return function(e){return e<=t}},greaterThan:function(t){return function(e){return e>t}},greaterThanOrEqual:function(t){return function(e){return e>=t}},even:function(){return function(t){return t%2==0}},odd:function(){return function(t){return t%2!=0}},includes:function(t){return function(e){return~e.indexOf(t)}},schema:function(t){return function(t){return{simple:function(e){var n=[];if(Object.keys(t).forEach((function(r){var i=t[r];try{i.check((e||{})[r])}catch(t){t.target=r,n.push(t)}})),n.length>0)throw n;return!0},async:function(e){var n=[],r=Object.keys(t).map((function(r){return t[r].testAsync((e||{})[r]).catch((function(t){t.target=r,n.push(t)}))}));return Promise.all(r).then((function(){if(n.length>0)throw n;return!0}))}}}(t)},passesAnyOf:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return function(e){return t.some((function(t){return t.test(e)}))}},optional:function(t,e){return void 0===e&&(e=!1),{simple:function(n){return Ui(n,e)||void 0===t.check(n)},async:function(n){return Ui(n,e)||t.testAsync(n)}}}};function Gi(t){return function(e){return Array.isArray(e)&&"array"===t||null===e&&"null"===t||typeof e===t}}function Ji(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}Mi.extend({curieChain:()=>t=>Array.isArray(t)&&t[0]instanceof URL&&t.slice(1).every((t=>"string"==typeof t)),typeOf:t=>e=>typeof e===t});const Ki=Mi().schema({clear:Mi().typeOf("function"),getItem:Mi().typeOf("function"),key:Mi().typeOf("function"),length:Mi().number(),removeItem:Mi().typeOf("function"),setItem:Mi().typeOf("function")});class Qi extends Error{constructor(t){Qi.v8n.constructor.check(t),super(`authentication failed with code ${t.code}`),this.originalError=t.originalError,this.code=t.code}}Qi.NEW_PASSWORD_REQUIRED="NEW_PASSWORD_REQUIRED",Qi.INVALID_NEW_PASSWORD="INVALID_NEW_PASSWORD",Qi.UNAUTHORIZED="UNAUTHORIZED",Qi.UNKNOWN="UNKNOWN",Qi.v8n={constructor:Mi().schema({code:Mi().passesAnyOf(Mi().exact(Qi.NEW_PASSWORD_REQUIRED),Mi().exact(Qi.INVALID_NEW_PASSWORD),Mi().exact(Qi.UNAUTHORIZED),Mi().exact(Qi.UNKNOWN))})};var Zi=c((function(t){function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})),Xi=c((function(t){var e=Zi.default;t.exports=function(t,n){if("object"!==e(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,n||"default");if("object"!==e(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports})),Yi=c((function(t){var e=Zi.default;t.exports=function(t){var n=Xi(t,"string");return"symbol"===e(n)?n:String(n)},t.exports.__esModule=!0,t.exports.default=t.exports})),to=s(c((function(t){function e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Yi(r.key),r)}}t.exports=function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports}))),eo=c((function(t){t.exports=function(t,e){return e.get?e.get.call(t):e.value},t.exports.__esModule=!0,t.exports.default=t.exports})),no=c((function(t){t.exports=function(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)},t.exports.__esModule=!0,t.exports.default=t.exports})),ro=s(c((function(t){t.exports=function(t,e){var n=no(t,e,"get");return eo(t,n)},t.exports.__esModule=!0,t.exports.default=t.exports}))),io=new WeakMap,oo=function(){function t(){io.set(this,{writable:!0,value:new Map})}var e=t.prototype;return e.key=function(t){t=Number.parseInt(t,10);for(var e=ro(this,io).keys(),n=0,r=e.next();!r.done;){if(n===t)return r.value;n+=1,r=e.next()}return null},e.getItem=function(t){var e;return null!=(e=ro(this,io).get(""+t))?e:null},e.setItem=function(t,e){ro(this,io).set(""+t,""+e)},e.removeItem=function(t){ro(this,io).delete(""+t)},e.clear=function(){ro(this,io).clear()},to(t,[{key:"length",get:function(){return ro(this,io).size}}]),t}(),ao=oo;class so extends Error{constructor(t){super(),so.v8n.constructor.check(t),this.response=t}}so.v8n={constructor:Mi().instanceOf(Ai.Response)};var co=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))},uo=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};function lo(t){const{json:e}=t,n=uo(t,["json"]);if("_links"in e){const t=e._links;e._links=Object.entries(t).reduce(((t,[e,r])=>{if(Array.isArray(r))return Object.assign(Object.assign({},t),{[e]:r});const i=new vo(Object.assign(Object.assign({},n),{path:[new URL(r.href)]})),o={delete:i.delete.bind(i),follow:i.follow.bind(i),get:i.get.bind(i),patch:i.patch.bind(i),post:i.post.bind(i),put:i.put.bind(i)};return Object.assign(Object.assign({},t),{[e]:Object.assign(Object.assign({},r),o)})}),{})}if("_embedded"in e){const t=e._embedded;e._embedded=Object.entries(t).reduce(((t,[e,r])=>Object.assign(t,{[e]:Array.isArray(r)?r.map((t=>lo(Object.assign(Object.assign({},n),{json:t})))):lo(Object.assign(Object.assign({},n),{json:r}))})),{})}return e}class fo extends Ai.Response{constructor(t){fo.v8n.constructor.check(t),super(t.body,t),this._console=t.console,this._fetch=t.fetch,this._cache=t.cache}json(){const t=Object.create(null,{json:{get:()=>super.json}});return co(this,void 0,void 0,(function*(){const e=yield t.json.call(this),n={cache:this._cache,console:this._console,fetch:this._fetch};return lo(Object.assign({json:e},n))}))}}fo.v8n={constructor:Mi().schema({cache:Ki,console:Mi().instanceOf(Pi.constructor),fetch:Mi().typeOf("function")})};var ho=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))};function po(t,e){const n=""===t?"":t+":";return"string"==typeof e?n+e:Array.isArray(e)?e.map((e=>po(t,e))).join():Object.entries(e).map((([t,e])=>po(n+t,e))).join()}function yo(t){return"string"==typeof t?t:Array.isArray(t)?t.map((t=>yo(t))).join():Object.entries(t).map((([t,e])=>`${t} ${e}`)).join()}class vo{constructor(t){vo.v8n.classConstructor.check(t),this._path=t.path,this._fetch=t.fetch,this._cache=t.cache,this._console=t.console}get(t){return ho(this,void 0,void 0,(function*(){vo.v8n.get.check(t);const e=yield this._resolve(),{filters:n,fields:r,offset:i,limit:o,order:a,zoom:s}=null!=t?t:{};void 0!==n&&n.forEach((t=>{const[n,r=""]=t.split("=");n&&e.searchParams.append(n,r)})),void 0!==r&&e.searchParams.set("fields",r.join(",")),void 0!==i&&e.searchParams.set("offset",String(i)),void 0!==o&&e.searchParams.set("limit",String(o)),void 0!==a&&e.searchParams.set("order",yo(a)),void 0!==s&&e.searchParams.set("zoom",po("",s));const c=yield this._fetch(new Ai.Request(e.toString())),u={cache:this._cache,console:this._console,fetch:this._fetch};return new fo(Object.assign(Object.assign(Object.assign({},u),c),{body:yield c.text()}))}))}put(t){return ho(this,void 0,void 0,(function*(){const e=yield this._resolve(),n=new Ai.Request(e.toString(),{body:JSON.stringify(t),method:"PUT"}),r=yield this._fetch(n),i={cache:this._cache,console:this._console,fetch:this._fetch};return new fo(Object.assign(Object.assign(Object.assign({},i),r),{body:yield r.text()}))}))}post(t){return ho(this,void 0,void 0,(function*(){const e=yield this._resolve(),n=new Ai.Request(e.toString(),{body:JSON.stringify(t),method:"POST"}),r=yield this._fetch(n),i={cache:this._cache,console:this._console,fetch:this._fetch};return new fo(Object.assign(Object.assign(Object.assign({},i),r),{body:yield r.text()}))}))}patch(t){return ho(this,void 0,void 0,(function*(){const e=yield this._resolve(),n=new Ai.Request(e.toString(),{body:JSON.stringify(t),method:"PATCH"}),r=yield this._fetch(n),i={cache:this._cache,console:this._console,fetch:this._fetch};return new fo(Object.assign(Object.assign(Object.assign({},i),r),{body:yield r.text()}))}))}delete(){return ho(this,void 0,void 0,(function*(){const t=yield this._resolve(),e=new Ai.Request(t.toString(),{method:"DELETE"}),n=yield this._fetch(e),r={cache:this._cache,console:this._console,fetch:this._fetch};return new fo(Object.assign(Object.assign(Object.assign({},r),n),{body:yield n.text()}))}))}follow(t){vo.v8n.follow.check(t);const e={cache:this._cache,console:this._console,fetch:this._fetch},n=this._path.concat(t);return new vo(Object.assign(Object.assign({},e),{path:n}))}_resolve(){return ho(this,void 0,void 0,(function*(){if(1===this._path.length)return new URL(this._path[0].toString());const[t,e]=this._path,n=`${t.toString()} > ${e}`,r={cache:this._cache,console:this._console,fetch:this._fetch};this._console.trace(`Trying to resolve ${n}...`);const i=this._cache.getItem(n);if(i){this._console.success(`Resolved ${n} to ${i.toString()} using cache.`);const t=[new URL(i),...this._path.slice(2)];return new vo(Object.assign(Object.assign({},r),{path:t}))._resolve()}const o=yield this._fetch(t.toString());if(o.ok){const t=yield o.clone().json();if(t._links[e]){const i=new URL(t._links[e].href),o=[i,...this._path.slice(2)];return this._cache.setItem(n,i.toString()),this._console.trace(`Cached ${i.toString()} for ${n}.`),this._console.success(`Resolved ${n} to ${i.toString()} online.`),new vo(Object.assign(Object.assign({},r),{path:o}))._resolve()}}throw this._console.error(`Failed to resolve ${n}.`),new so(o)}))}}vo.v8n={classConstructor:Mi().schema({cache:Ki,console:Mi().instanceOf(Pi.constructor),fetch:Mi().typeOf("function"),path:Mi().curieChain()}),follow:Mi().string(),get:Mi().optional(Mi().schema({fields:Mi().optional(Mi().array().every.string()),filters:Mi().optional(Mi().array().every.string()),limit:Mi().optional(Mi().number()),offset:Mi().optional(Mi().number()),order:Mi().optional(Mi().passesAnyOf(Mi().string(),Mi().object(),Mi().array())),zoom:Mi().optional(Mi().passesAnyOf(Mi().string(),Mi().object(),Mi().array()))}))},vo.ResolutionError=so,vo.Response=fo;var go=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))};class bo extends vo{constructor(t){var e,n,r;bo.v8n.classConstructor.check(t),super({cache:null!==(e=t.cache)&&void 0!==e?e:new ao,console:Pi.create({level:t.level}).withTag("@foxy.io/sdk"),fetch:null!==(n=t.fetch)&&void 0!==n?n:Ai.fetch,path:[t.base]}),this.console=this._console,this.storage=null!==(r=t.storage)&&void 0!==r?r:new ao,this.cache=this._cache,this.base=t.base}fetch(...t){return go(this,void 0,void 0,(function*(){return this._fetch(...t)}))}}bo.WHATWGResponse=Ai.Response,bo.WHATWGRequest=Ai.Request,bo.WHATWGHeaders=Ai.Headers,bo.whatwgFetch=Ai.fetch,bo.AuthError=Qi,bo.Node=vo,bo.v8n={classConstructor:Mi().schema({base:Mi().instanceOf(URL),cache:Mi().optional(Ki),fetch:Mi().optional(Mi().typeOf("function")),level:Mi().optional(Mi().integer()),storage:Mi().optional(Ki)})};export{It as $,bo as A,Ie as B,ft as C,J as D,et as E,ot as F,gt as G,vt as H,ye as I,St as J,Gt as K,it as L,Z as M,st as N,Y as O,at as P,Ot as Q,ki as R,rt as S,ue as T,fe as U,R as V,le as W,ht as X,fr as Y,Nt as Z,e as _,a,Lt as a0,Ct as a1,Mt as a2,$t as a3,Bt as a4,zt as a5,Wt as a6,qt as a7,Ft as a8,Kt as a9,d as aA,O as aB,Lr as aC,Dn as aD,An as aE,Fe as aF,En as aG,pr as aH,mr as aI,n as aJ,pn as aK,xn as aL,Qt as aa,Zt as ab,Jt as ac,je as ad,cr as ae,lr as af,ln as ag,an as ah,fn as ai,Mi as aj,Ai as ak,o as al,s as am,dn as an,gn as ao,xe as ap,yi as aq,vn as ar,Cn as as,Fn as at,$n as au,br as av,dr as aw,hr as ax,_r as ay,Cr as az,u as b,c,l as d,Ne as e,Vt as f,k as g,P as h,E as i,se as j,G as k,Ht as l,tr as m,At as n,X as o,he as p,I as q,p as r,ct as s,Ei as t,jt as u,Pt as v,mt as w,dt as x,pt as y,nt as z};
@@ -1 +1 @@
1
- import{_ as t}from"./shared-307262a1.js";import{h as e,L as s}from"./shared-7f33a83a.js";import{C as i}from"./shared-c7f2f1ab.js";import{a as r,T as o}from"./shared-09d4fbb8.js";import{c as n}from"./shared-4e709717.js";import{l as a}from"./shared-f3b35364.js";import{r as l}from"./shared-d519a301.js";import{I as d}from"./shared-4b67d699.js";let c,h,u,m=t=>t;const p=r(i(o(d(s))));class b extends p{constructor(){super(...arguments),this.options=[],this.items=[],this.__newItem=""}static get properties(){return t(t({},super.properties),{},{options:{type:Array},items:{type:Array},__newItem:{attribute:!1}})}render(){const t=n({"w-xs h-xs mr-xs rounded-full transition-colors flex-shrink-0":!0,"focus-outline-none focus-ring-2 ring-inset ring-error-50":!0,"text-tertiary hover-bg-error-10 hover-text-error":!this.disabled,"cursor-default text-disabled":this.disabled,"flex items-center justify-center":!this.readonly,hidden:this.readonly}),s=n({"transition-colors h-l ml-m flex items-center":!0,"text-secondary":this.readonly,"text-disabled":this.disabled}),i=this.disabled||!this.__newItem,r=()=>{this.__newItem&&(this.items.push({value:this.__newItem}),this.requestUpdate("items"),this.dispatchEvent(new CustomEvent("change")),this.__newItem="")};return e(c||(c=m` <slot></slot> <ol class="divide-y divide-contrast-10"> ${0} </ol> <div class="${0}"> <input placeholder="${0}" class="w-full bg-transparent appearance-none h-m focus-outline-none" list="list" .value="${0}" ?disabled="${0}" ?readonly="${0}" @keydown="${0}" @change="${0}" @input="${0}"> <datalist id="list"> ${0} </datalist> <div class="transition-opacity ${0}"> <button aria-label="${0}" class="${0}" ?disabled="${0}" @click="${0}"> <iron-icon icon="lumo:plus" class="icon-inline text-l"></iron-icon> </button> </div> </div> `),l(this.items,(t=>t.value),((i,r)=>{var o;return e(h||(h=m` <li class="${0}"> <div class="flex-1 mr-s">${0}</div> <button aria-label="${0}" class="${0}" ?disabled="${0}" @click="${0}"> <iron-icon icon="lumo:cross" class="icon-inline text-xl"></iron-icon> </button> </li> `),s,null!==(o=i.label)&&void 0!==o?o:i.value,this.t("delete"),t,this.disabled,(()=>{this.items.splice(r,1),this.requestUpdate("items"),this.dispatchEvent(new CustomEvent("change"))}))})),n({"ml-m h-l flex items-center":!0,"border-t border-contrast-10":this.items.length>0,flex:!this.readonly,hidden:this.readonly}),this.t("type_here"),a(this.__newItem),this.disabled,this.readonly,(t=>"Enter"===t.key&&r()),(t=>t.stopPropagation()),(t=>{this.__newItem=t.currentTarget.value.trim()}),this.options.map((({label:t,value:s})=>{if(!this.items.some((t=>t.value===s)))return e(u||(u=m`<option value="${0}">${0}</option>`),s,null!=t?t:s)})),this.__newItem?"opacity-100":"opacity-0",this.t("submit"),n({"w-xs h-xs mr-xs flex-shrink-0 ring-inset ring-success-50 focus-outline-none":!0,"flex items-center justify-center rounded-full transition-colors":!0,"bg-contrast-5 text-disabled cursor-default":i,"bg-success-10 text-success cursor-pointer":!i,"hover-bg-success hover-text-success-contrast":!i,"focus-ring-2":!i}),i,r)}}export{b as E};
1
+ import{_ as t}from"./shared-0dabe195.js";import{h as e,L as s}from"./shared-7f33a83a.js";import{C as i}from"./shared-1fd59009.js";import{a as r,T as o}from"./shared-a88c5cf1.js";import{c as n}from"./shared-4e709717.js";import{l as a}from"./shared-f3b35364.js";import{r as l}from"./shared-d519a301.js";import{I as d}from"./shared-763a6797.js";let c,h,u,m=t=>t;const p=r(i(o(d(s))));class f extends p{constructor(){super(...arguments),this.options=[],this.items=[],this.__newItem=""}static get properties(){return t(t({},super.properties),{},{options:{type:Array},items:{type:Array},__newItem:{attribute:!1}})}render(){const t=n({"w-xs h-xs mr-xs rounded-full transition-colors flex-shrink-0":!0,"focus-outline-none focus-ring-2 ring-inset ring-error-50":!0,"text-tertiary hover-bg-error-10 hover-text-error":!this.disabled,"cursor-default text-disabled":this.disabled,"flex items-center justify-center":!this.readonly,hidden:this.readonly}),s=n({"transition-colors h-l ml-m flex items-center":!0,"text-secondary":this.readonly,"text-disabled":this.disabled}),i=this.disabled||!this.__newItem,r=()=>{this.__newItem&&(this.items.push({value:this.__newItem}),this.requestUpdate("items"),this.dispatchEvent(new CustomEvent("change")),this.__newItem="")};return e(c||(c=m` <slot></slot> <ol class="divide-y divide-contrast-10"> ${0} </ol> <div class="${0}"> <input placeholder="${0}" class="w-full bg-transparent appearance-none h-m focus-outline-none" list="list" .value="${0}" ?disabled="${0}" ?readonly="${0}" @keydown="${0}" @change="${0}" @input="${0}"> <datalist id="list"> ${0} </datalist> <div class="transition-opacity ${0}"> <button aria-label="${0}" class="${0}" ?disabled="${0}" @click="${0}"> <iron-icon icon="lumo:plus" class="icon-inline text-l"></iron-icon> </button> </div> </div> `),l(this.items,(t=>t.value),((i,r)=>{var o;return e(h||(h=m` <li class="${0}"> <div class="flex-1 mr-s">${0}</div> <button aria-label="${0}" class="${0}" ?disabled="${0}" @click="${0}"> <iron-icon icon="lumo:cross" class="icon-inline text-xl"></iron-icon> </button> </li> `),s,null!==(o=i.label)&&void 0!==o?o:i.value,this.t("delete"),t,this.disabled,(()=>{this.items.splice(r,1),this.requestUpdate("items"),this.dispatchEvent(new CustomEvent("change"))}))})),n({"ml-m h-l flex items-center":!0,"border-t border-contrast-10":this.items.length>0,flex:!this.readonly,hidden:this.readonly}),this.t("type_here"),a(this.__newItem),this.disabled,this.readonly,(t=>"Enter"===t.key&&r()),(t=>t.stopPropagation()),(t=>{this.__newItem=t.currentTarget.value.trim()}),this.options.map((({label:t,value:s})=>{if(!this.items.some((t=>t.value===s)))return e(u||(u=m`<option value="${0}">${0}</option>`),s,null!=t?t:s)})),this.__newItem?"opacity-100":"opacity-0",this.t("submit"),n({"w-xs h-xs mr-xs flex-shrink-0 ring-inset ring-success-50 focus-outline-none":!0,"flex items-center justify-center rounded-full transition-colors":!0,"bg-contrast-5 text-disabled cursor-default":i,"bg-success-10 text-success cursor-pointer":!i,"hover-bg-success hover-text-success-contrast":!i,"focus-ring-2":!i}),i,r)}}export{f as E};
@@ -0,0 +1,9 @@
1
+ import{h as e}from"./shared-a7475f62.js";import{N as t}from"./shared-7680d300.js";
2
+ /**
3
+ @license
4
+ Copyright (c) 2019 Vaadin Ltd.
5
+ This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6
+ */const n=e`<dom-module id="vaadin-integer-field-template">
7
+
8
+
9
+ </dom-module>`;document.head.appendChild(n.content);class i extends t{static get is(){return"vaadin-integer-field"}static get version(){return"2.10.0"}static get properties(){return{pattern:String,preventInvalidInput:Boolean,minlength:Number,maxlength:Number}}ready(){super.ready(),this._enabledCharPattern="[-+\\d]"}_valueChanged(e,t){if(""!==e&&!this.__isInteger(e))return console.warn(`Trying to set non-integer value "${e}" to <vaadin-integer-field>. Clearing the value.`),void(this.value="");super._valueChanged(e,t)}_stepChanged(e,t){if(!this.__hasOnlyDigits(e))return console.warn(`Trying to set invalid step size "${e}", which is not a positive integer, to <vaadin-integer-field>. Resetting the default value 1.`),void(this.step=1);super._stepChanged(e,t)}__isInteger(e){return/^(-\d)?\d*$/.test(String(e))}__hasOnlyDigits(e){return/^\d*$/.test(String(e))}}window.customElements.define(i.is,i);export{i as I};
@@ -1 +1 @@
1
- import{C as t}from"./shared-c7f2f1ab.js";import{R as e}from"./shared-09d4fbb8.js";import{I as s}from"./shared-a92ae606.js";import{h as i}from"./shared-7f33a83a.js";let r,a,d,l=t=>t;const o=e(t(s));class n extends o{constructor(){super(...arguments),this.templates={},this.__renderTitle=t=>i(r||(r=l` <div data-testid="title"> ${0} <div class="font-medium truncate"> ${0}&ZeroWidthSpace; </div> ${0} </div> `),this.renderTemplateOrSlot("title:before"),this.data?null==t?void 0:t(this.data):"",this.renderTemplateOrSlot("title:after")),this.__renderSubtitle=t=>i(a||(a=l` <div data-testid="subtitle"> ${0} <div class="text-tertiary truncate text-s sm-text-m"> ${0}&ZeroWidthSpace; </div> ${0} </div> `),this.renderTemplateOrSlot("subtitle:before"),this.data?null==t?void 0:t(this.data):"",this.renderTemplateOrSlot("subtitle:after"))}renderBody(t){const e=this.hiddenSelector;return i(d||(d=l` <div class="h-s flex flex-col justify-center relative text-body text-m font-lumo leading-xs sm-h-xs sm-flex-row sm-items-center sm-justify-between"> ${0} ${0} </div> `),e.matches("title",!0)?"":this.__renderTitle(null==t?void 0:t.title),e.matches("subtitle",!0)?"":this.__renderSubtitle(null==t?void 0:t.subtitle))}}export{n as T};
1
+ import{C as t}from"./shared-1fd59009.js";import{R as e}from"./shared-a88c5cf1.js";import{I as s}from"./shared-421e46e9.js";import{h as i}from"./shared-7f33a83a.js";let r,d,a,l=t=>t;const o=e(t(s));class n extends o{constructor(){super(...arguments),this.templates={},this.__renderTitle=t=>i(r||(r=l` <div data-testid="title"> ${0} <div class="font-medium truncate"> ${0}&ZeroWidthSpace; </div> ${0} </div> `),this.renderTemplateOrSlot("title:before"),this.data?null==t?void 0:t(this.data):"",this.renderTemplateOrSlot("title:after")),this.__renderSubtitle=t=>i(d||(d=l` <div data-testid="subtitle"> ${0} <div class="text-tertiary truncate text-s sm-text-m"> ${0}&ZeroWidthSpace; </div> ${0} </div> `),this.renderTemplateOrSlot("subtitle:before"),this.data?null==t?void 0:t(this.data):"",this.renderTemplateOrSlot("subtitle:after"))}renderBody(t){const e=this.hiddenSelector;return i(a||(a=l` <div class="h-s flex flex-col justify-center relative text-body text-m font-lumo leading-xs sm-h-xs sm-flex-row sm-items-center sm-justify-between"> ${0} ${0} </div> `),e.matches("title",!0)?"":this.__renderTitle(null==t?void 0:t.title),e.matches("subtitle",!0)?"":this.__renderSubtitle(null==t?void 0:t.subtitle))}}export{n as T};