@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,29 +0,0 @@
1
- import{c as e,g as t,a as r,b as o,d as a,r as n,i,e as s,_ as l}from"./shared-307262a1.js";import{t as c,m as u,T as p,a as d,C as m,c as h,L as f}from"./shared-7f33a83a.js";function g(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(r){if("default"!==r&&!(r in e)){var o=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,o.get?o:{enumerable:!0,get:function(){return t[r]}})}}))})),Object.freeze(e)}
2
- /**
3
- @license
4
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
5
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
6
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
7
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
8
- Code distributed by Google as part of the polymer project is also
9
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
10
- */window.JSCompiler_renameProperty=function(e,t){return e};
11
- /**
12
- @license
13
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
14
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
15
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
16
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
17
- Code distributed by Google as part of the polymer project is also
18
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
19
- */
20
- let v,b,w=/(url\()([^)]*)(\))/g,y=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/;function x(e,t){if(e&&y.test(e))return e;if("//"===e)return e;if(void 0===v){v=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",v="http://a/c%20d"===e.href}catch(e){}}if(t||(t=document.baseURI||window.location.href),v)try{return new URL(e,t).href}catch(t){return e}return b||(b=document.implementation.createHTMLDocument("temp"),b.base=b.createElement("base"),b.head.appendChild(b.base),b.anchor=b.createElement("a"),b.body.appendChild(b.anchor)),b.base.href=t,b.anchor.href=e,b.anchor.href||e}function k(e,t){return e.replace(w,(function(e,r,o,a){return r+"'"+x(o.replace(/["']/g,""),t)+"'"+a}))}function S(e){return e.substring(0,e.lastIndexOf("/")+1)}
21
- /**
22
- @license
23
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
24
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
25
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
26
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
27
- Code distributed by Google as part of the polymer project is also
28
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
29
- */const L=!window.ShadyDOM||!window.ShadyDOM.inUse;Boolean(!window.ShadyCSS||window.ShadyCSS.nativeCss);const O=L&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const e=new CSSStyleSheet;e.replaceSync("");const t=document.createElement("div");return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[e],t.shadowRoot.adoptedStyleSheets[0]===e}catch(e){return!1}})();let P=window.Polymer&&window.Polymer.rootPath||S(document.baseURI||window.location.href),j=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,C=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,E=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,R=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,_=window.Polymer&&window.Polymer.legacyOptimizations||!1,z=window.Polymer&&window.Polymer.legacyWarnings||!1,N=window.Polymer&&window.Polymer.syncInitialRender||!1,T=window.Polymer&&window.Polymer.legacyUndefined||!1,M=window.Polymer&&window.Polymer.orderedComputed||!1,A=window.Polymer&&window.Polymer.removeNestedTemplates||!1,I=window.Polymer&&window.Polymer.fastDomIf||!1,F=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,U=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,H=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1,q={},D={};function V(e,t){q[e]=D[e.toLowerCase()]=t}function $(e){return q[e]||D[e.toLowerCase()]}class B extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){if(e){let r=$(e);return r&&t?r.querySelector(t):r}return null}attributeChangedCallback(e,t,r,o){t!==r&&this.register()}get assetpath(){if(!this.__assetpath){const e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,t=x(this.getAttribute("assetpath")||"",e.baseURI);this.__assetpath=S(t)}return this.__assetpath}register(e){if(e=e||this.id){if(E&&void 0!==$(e))throw V(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);this.id=e,V(e,this),(t=this).querySelector("style")&&console.warn("dom-module %s has style outside template",t.id)}var t}}function W(e){return W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},W(e)}function K(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function X(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&o.push.apply(o,Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),o.forEach((function(t){K(e,t,r[t])}))}return e}function J(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Y(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function G(e,t,r){return t&&Y(e.prototype,t),r&&Y(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}B.prototype.modules=q,customElements.define("dom-module",B);var Q=e((function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})),Z=t(Q);function ee(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function te(e,t){if(t&&("object"===Z(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ee(e)}function re(e){return re=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},re(e)}function oe(e,t){return oe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},oe(e,t)}function ae(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),t&&oe(e,t)}var ne={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},ie=new(function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};J(this,e),this.init(t,r)}return G(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||ne,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,r,o){return o&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(r).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,X({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),se=function(){function e(){J(this,e),this.observers={}}return G(e,[{key:"on",value:function(e,t){var r=this;return e.split(" ").forEach((function(e){r.observers[e]=r.observers[e]||[],r.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];if(this.observers[e]){var a=[].concat(this.observers[e]);a.forEach((function(e){e.apply(void 0,r)}))}if(this.observers["*"]){var n=[].concat(this.observers["*"]);n.forEach((function(t){t.apply(t,[e].concat(r))}))}}}]),e}();function le(){var e,t,r=new Promise((function(r,o){e=r,t=o}));return r.resolve=e,r.reject=t,r}function ce(e){return null==e?"":""+e}function ue(e,t,r){e.forEach((function(e){t[e]&&(r[e]=t[e])}))}function pe(e,t,r){function o(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function a(){return!e||"string"==typeof e}for(var n="string"!=typeof t?[].concat(t):t.split(".");n.length>1;){if(a())return{};var i=o(n.shift());!e[i]&&r&&(e[i]=new r),e=Object.prototype.hasOwnProperty.call(e,i)?e[i]:{}}return a()?{}:{obj:e,k:o(n.shift())}}function de(e,t,r){var o=pe(e,t,Object);o.obj[o.k]=r}function me(e,t){var r=pe(e,t),o=r.obj,a=r.k;if(o)return o[a]}function he(e,t,r){var o=me(e,r);return void 0!==o?o:me(t,r)}function fe(e,t,r){for(var o in t)"__proto__"!==o&&"constructor"!==o&&(o in e?"string"==typeof e[o]||e[o]instanceof String||"string"==typeof t[o]||t[o]instanceof String?r&&(e[o]=t[o]):fe(e[o],t[o],r):e[o]=t[o]);return e}function ge(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var ve={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function be(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return ve[e]})):e}var we="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,ye=function(e){function t(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return J(this,t),r=te(this,re(t).call(this)),we&&se.call(ee(r)),r.data=e||{},r.options=o,void 0===r.options.keySeparator&&(r.options.keySeparator="."),r}return ae(t,se),G(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,n=[e,t];return r&&"string"!=typeof r&&(n=n.concat(r)),r&&"string"==typeof r&&(n=n.concat(a?r.split(a):r)),e.indexOf(".")>-1&&(n=e.split(".")),me(this.data,n)}},{key:"addResource",value:function(e,t,r,o){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},n=this.options.keySeparator;void 0===n&&(n=".");var i=[e,t];r&&(i=i.concat(n?r.split(n):r)),e.indexOf(".")>-1&&(o=t,t=(i=e.split("."))[1]),this.addNamespaces(t),de(this.data,i,o),a.silent||this.emit("added",e,t,r,o)}},{key:"addResources",value:function(e,t,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var a in r)"string"!=typeof r[a]&&"[object Array]"!==Object.prototype.toString.apply(r[a])||this.addResource(e,t,a,r[a],{silent:!0});o.silent||this.emit("added",e,t,r)}},{key:"addResourceBundle",value:function(e,t,r,o,a){var n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},i=[e,t];e.indexOf(".")>-1&&(o=r,r=t,t=(i=e.split("."))[1]),this.addNamespaces(t);var s=me(this.data,i)||{};o?fe(s,r,a):s=X({},s,r),de(this.data,i,s),n.silent||this.emit("added",e,t,r)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?X({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(),xe={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,o,a){var n=this;return e.forEach((function(e){n.processors[e]&&(t=n.processors[e].process(t,r,o,a))})),t}},ke={},Se=function(e){function t(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return J(this,t),r=te(this,re(t).call(this)),we&&se.call(ee(r)),ue(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,ee(r)),r.options=o,void 0===r.options.keySeparator&&(r.options.keySeparator="."),r.logger=ie.create("translator"),r}return ae(t,se),G(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},r=this.resolve(e,t);return r&&void 0!==r.res}},{key:"extractFromKey",value:function(e,t){var r=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");var o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,a=t.ns||this.options.defaultNS;if(r&&e.indexOf(r)>-1){var n=e.match(this.interpolator.nestingRegexp);if(n&&n.length>0)return{key:e,namespaces:a};var i=e.split(r);(r!==o||r===o&&this.options.ns.indexOf(i[0])>-1)&&(a=i.shift()),e=i.join(o)}return"string"==typeof a&&(a=[a]),{key:e,namespaces:a}}},{key:"translate",value:function(e,r,o){var a=this;if("object"!==W(r)&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r||(r={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var n=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=this.extractFromKey(e[e.length-1],r),s=i.key,l=i.namespaces,c=l[l.length-1],u=r.lng||this.language,p=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&"cimode"===u.toLowerCase()){if(p){var d=r.nsSeparator||this.options.nsSeparator;return c+d+s}return s}var m=this.resolve(e,r),h=m&&m.res,f=m&&m.usedKey||s,g=m&&m.exactUsedKey||s,v=Object.prototype.toString.apply(h),b=["[object Number]","[object Function]","[object RegExp]"],w=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,x="string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h;if(y&&h&&x&&b.indexOf(v)<0&&("string"!=typeof w||"[object Array]"!==v)){if(!r.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,h,r):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(n){var k="[object Array]"===v,S=k?[]:{},L=k?g:f;for(var O in h)if(Object.prototype.hasOwnProperty.call(h,O)){var P="".concat(L).concat(n).concat(O);S[O]=this.translate(P,X({},r,{joinArrays:!1,ns:l})),S[O]===P&&(S[O]=h[O])}h=S}}else if(y&&"string"==typeof w&&"[object Array]"===v)(h=h.join(w))&&(h=this.extendTranslation(h,e,r,o));else{var j=!1,C=!1,E=void 0!==r.count&&"string"!=typeof r.count,R=t.hasDefaultValue(r),_=E?this.pluralResolver.getSuffix(u,r.count):"",z=r["defaultValue".concat(_)]||r.defaultValue;!this.isValidLookup(h)&&R&&(j=!0,h=z),this.isValidLookup(h)||(C=!0,h=s);var N=R&&z!==h&&this.options.updateMissing;if(C||j||N){if(this.logger.log(N?"updateKey":"missingKey",u,c,s,N?z:h),n){var T=this.resolve(s,X({},r,{keySeparator:!1}));T&&T.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var M=[],A=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if("fallback"===this.options.saveMissingTo&&A&&A[0])for(var I=0;I<A.length;I++)M.push(A[I]);else"all"===this.options.saveMissingTo?M=this.languageUtils.toResolveHierarchy(r.lng||this.language):M.push(r.lng||this.language);var F=function(e,t,o){a.options.missingKeyHandler?a.options.missingKeyHandler(e,c,t,N?o:h,N,r):a.backendConnector&&a.backendConnector.saveMissing&&a.backendConnector.saveMissing(e,c,t,N?o:h,N,r),a.emit("missingKey",e,c,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&E?M.forEach((function(e){a.pluralResolver.getSuffixes(e).forEach((function(t){F([e],s+t,r["defaultValue".concat(t)]||z)}))})):F(M,s,z))}h=this.extendTranslation(h,e,r,m,o),C&&h===s&&this.options.appendNamespaceToMissingKey&&(h="".concat(c,":").concat(s)),C&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(h))}return h}},{key:"extendTranslation",value:function(e,t,r,o,a){var n=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,r,o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(X({},r,{interpolation:X({},this.options.interpolation,r.interpolation)}));var i,s=r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(s){var l=e.match(this.interpolator.nestingRegexp);i=l&&l.length}var c=r.replace&&"string"!=typeof r.replace?r.replace:r;if(this.options.interpolation.defaultVariables&&(c=X({},this.options.interpolation.defaultVariables,c)),e=this.interpolator.interpolate(e,c,r.lng||this.language,r),s){var u=e.match(this.interpolator.nestingRegexp);i<(u&&u.length)&&(r.nest=!1)}!1!==r.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return a&&a[0]===o[0]&&!r.context?(n.logger.warn("It seems you are nesting recursively key: ".concat(o[0]," in key: ").concat(t[0])),null):n.translate.apply(n,o.concat([t]))}),r)),r.interpolation&&this.interpolator.reset()}var p=r.postProcess||this.options.postProcess,d="string"==typeof p?[p]:p;return null!=e&&d&&d.length&&!1!==r.applyPostProcessor&&(e=xe.handle(d,e,t,this.options&&this.options.postProcessPassResolved?X({i18nResolved:o},r):r,this)),e}},{key:"resolve",value:function(e){var t,r,o,a,n,i=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!i.isValidLookup(t)){var l=i.extractFromKey(e,s),c=l.key;r=c;var u=l.namespaces;i.options.fallbackNS&&(u=u.concat(i.options.fallbackNS));var p=void 0!==s.count&&"string"!=typeof s.count,d=void 0!==s.context&&"string"==typeof s.context&&""!==s.context,m=s.lngs?s.lngs:i.languageUtils.toResolveHierarchy(s.lng||i.language,s.fallbackLng);u.forEach((function(e){i.isValidLookup(t)||(n=e,!ke["".concat(m[0],"-").concat(e)]&&i.utils&&i.utils.hasLoadedNamespace&&!i.utils.hasLoadedNamespace(n)&&(ke["".concat(m[0],"-").concat(e)]=!0,i.logger.warn('key "'.concat(r,'" for languages "').concat(m.join(", "),'" won\'t get resolved as namespace "').concat(n,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),m.forEach((function(r){if(!i.isValidLookup(t)){a=r;var n,l,u=c,m=[u];if(i.i18nFormat&&i.i18nFormat.addLookupKeys)i.i18nFormat.addLookupKeys(m,c,r,e,s);else p&&(n=i.pluralResolver.getSuffix(r,s.count)),p&&d&&m.push(u+n),d&&m.push(u+="".concat(i.options.contextSeparator).concat(s.context)),p&&m.push(u+=n);for(;l=m.pop();)i.isValidLookup(t)||(o=l,t=i.getResource(r,e,l,s))}})))}))}})),{res:t,usedKey:r,exactUsedKey:o,usedLng:a,usedNS:n}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,o):this.resourceStore.getResource(e,t,r,o)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t===r.substring(0,t.length)&&void 0!==e[r])return!0;return!1}}]),t}();function Le(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Oe=function(){function e(t){J(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ie.create("languageUtils")}return G(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],r=e.split("-");return this.options.lowerCaseLng?r=r.map((function(e){return e.toLowerCase()})):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=Le(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=Le(r[1].toLowerCase())),t.indexOf(r[2].toLowerCase())>-1&&(r[2]=Le(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,r=this;return e?(e.forEach((function(e){if(!t){var o=r.formatLanguageCode(e);r.options.supportedLngs&&!r.isSupportedCode(o)||(t=o)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var o=r.getLanguagePartFromCode(e);if(r.isSupportedCode(o))return t=o;t=r.options.supportedLngs.find((function(e){if(0===e.indexOf(o))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var r=e[t];return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}},{key:"toResolveHierarchy",value:function(e,t){var r=this,o=this.getFallbackCodes(t||this.options.fallbackLng||[],e),a=[],n=function(e){e&&(r.isSupportedCode(e)?a.push(e):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&n(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&n(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&n(this.getLanguagePartFromCode(e))):"string"==typeof e&&n(this.formatLanguageCode(e)),o.forEach((function(e){a.indexOf(e)<0&&n(r.formatLanguageCode(e))})),a}}]),e}(),Pe=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],je={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};function Ce(){var e={};return Pe.forEach((function(t){t.lngs.forEach((function(r){e[r]={numbers:t.nr,plurals:je[t.fc]}}))})),e}var Ee=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};J(this,e),this.languageUtils=t,this.options=r,this.logger=ie.create("pluralResolver"),this.rules=Ce()}return G(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,r=this.getRule(e);return r?r.numbers.map((function(r){return t.getSuffix(e,r)})):[]}},{key:"getSuffix",value:function(e,t){var r=this,o=this.getRule(e);if(o){var a=o.noAbs?o.plurals(t):o.plurals(Math.abs(t)),n=o.numbers[a];this.options.simplifyPluralSuffix&&2===o.numbers.length&&1===o.numbers[0]&&(2===n?n="plural":1===n&&(n=""));var i=function(){return r.options.prepend&&n.toString()?r.options.prepend+n.toString():n.toString()};return"v1"===this.options.compatibilityJSON?1===n?"":"number"==typeof n?"_plural_".concat(n.toString()):i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===o.numbers.length&&1===o.numbers[0]?i():this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),Re=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};J(this,e),this.logger=ie.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return G(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:be,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?ge(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?ge(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?ge(t.nestingPrefix):t.nestingPrefixEscaped||ge("$t("),this.nestingSuffix=t.nestingSuffix?ge(t.nestingSuffix):t.nestingSuffixEscaped||ge(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function(e,t,r,o){var a,n,i,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var u=function(e){if(e.indexOf(s.formatSeparator)<0){var a=he(t,l,e);return s.alwaysFormat?s.format(a,void 0,r):a}var n=e.split(s.formatSeparator),i=n.shift().trim(),c=n.join(s.formatSeparator).trim();return s.format(he(t,l,i),c,r,o)};this.resetRegExp();var p=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,d=o&&o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return c(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?c(s.escape(e)):c(e)}}].forEach((function(t){for(i=0;a=t.regex.exec(e);){if(void 0===(n=u(a[1].trim())))if("function"==typeof p){var r=p(e,a,o);n="string"==typeof r?r:""}else{if(d){n=a[0];continue}s.logger.warn("missed to pass in variable ".concat(a[1]," for interpolating ").concat(e)),n=""}else"string"==typeof n||s.useRawValueToEscape||(n=ce(n));if(e=e.replace(a[0],t.safeValue(n)),t.regex.lastIndex=0,++i>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var r,o,a=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=X({},n);function s(e,t){var r=this.nestingOptionsSeparator;if(e.indexOf(r)<0)return e;var o=e.split(new RegExp("".concat(r,"[ ]*{"))),a="{".concat(o[1]);e=o[0],a=(a=this.interpolate(a,i)).replace(/'/g,'"');try{i=JSON.parse(a),t&&(i=X({},t,i))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(r).concat(a)}return delete i.defaultValue,e}for(i.applyPostProcessor=!1,delete i.defaultValue;r=this.nestingRegexp.exec(e);){var l=[],c=!1;if(r[0].includes(this.formatSeparator)&&!/{.*}/.test(r[1])){var u=r[1].split(this.formatSeparator).map((function(e){return e.trim()}));r[1]=u.shift(),l=u,c=!0}if((o=t(s.call(this,r[1].trim(),i),i))&&r[0]===e&&"string"!=typeof o)return o;"string"!=typeof o&&(o=ce(o)),o||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(e)),o=""),c&&(o=l.reduce((function(e,t){return a.format(e,t,n.lng,n)}),o.trim())),e=e.replace(r[0],o),this.regexp.lastIndex=0}return e}}]),e}();var _e=function(e){function t(e,r,o){var a,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return J(this,t),a=te(this,re(t).call(this)),we&&se.call(ee(a)),a.backend=e,a.store=r,a.services=o,a.languageUtils=o.languageUtils,a.options=n,a.logger=ie.create("backendConnector"),a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(o,n.backend,n),a}return ae(t,se),G(t,[{key:"queueLoad",value:function(e,t,r,o){var a=this,n=[],i=[],s=[],l=[];return e.forEach((function(e){var o=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!r.reload&&a.store.hasResourceBundle(e,t)?a.state[s]=2:a.state[s]<0||(1===a.state[s]?i.indexOf(s)<0&&i.push(s):(a.state[s]=1,o=!1,i.indexOf(s)<0&&i.push(s),n.indexOf(s)<0&&n.push(s),l.indexOf(t)<0&&l.push(t)))})),o||s.push(e)})),(n.length||i.length)&&this.queue.push({pending:i,loaded:{},errors:[],callback:o}),{toLoad:n,pending:i,toLoadLanguages:s,toLoadNamespaces:l}}},{key:"loaded",value:function(e,t,r){var o=e.split("|"),a=o[0],n=o[1];t&&this.emit("failedLoading",a,n,t),r&&this.store.addResourceBundle(a,n,r),this.state[e]=t?-1:2;var i={};this.queue.forEach((function(r){var o,s,l,c,u,p;o=r.loaded,s=n,c=pe(o,[a],Object),u=c.obj,p=c.k,u[p]=u[p]||[],l&&(u[p]=u[p].concat(s)),l||u[p].push(s),function(e,t){for(var r=e.indexOf(t);-1!==r;)e.splice(r,1),r=e.indexOf(t)}(r.pending,e),t&&r.errors.push(t),0!==r.pending.length||r.done||(Object.keys(r.loaded).forEach((function(e){i[e]||(i[e]=[]),r.loaded[e].length&&r.loaded[e].forEach((function(t){i[e].indexOf(t)<0&&i[e].push(t)}))})),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())})),this.emit("loaded",i),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,r){var o=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,i=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[r](e,t,(function(s,l){s&&l&&a<5?setTimeout((function(){o.read.call(o,e,t,r,a+1,2*n,i)}),n):i(s,l)})):i(null,{})}},{key:"prepareLoading",value:function(e,t){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var n=this.queueLoad(e,t,o,a);if(!n.toLoad.length)return n.pending.length||a(),null;n.toLoad.forEach((function(e){r.loadOne(e)}))}},{key:"load",value:function(e,t,r){this.prepareLoading(e,t,{},r)}},{key:"reload",value:function(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}},{key:"loadOne",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=e.split("|"),a=o[0],n=o[1];this.read(a,n,"read",void 0,void 0,(function(o,i){o&&t.logger.warn("".concat(r,"loading namespace ").concat(n," for language ").concat(a," failed"),o),!o&&i&&t.logger.log("".concat(r,"loaded namespace ").concat(n," for language ").concat(a),i),t.loaded(e,o,i)}))}},{key:"saveMissing",value:function(e,t,r,o,a){var n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(r,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=r&&""!==r&&(this.backend&&this.backend.create&&this.backend.create(e,t,r,o,null,X({},n,{isUpdate:a})),e&&e[0]&&this.store.addResource(e[0],t,r,o))}}]),t}();function ze(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===W(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===W(e[2])||"object"===W(e[3])){var r=e[3]||e[2];Object.keys(r).forEach((function(e){t[e]=r[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,r,o){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function Ne(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Te(){}var Me=new(function(e){function t(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(J(this,t),e=te(this,re(t).call(this)),we&&se.call(ee(e)),e.options=Ne(r),e.services={},e.logger=ie,e.modules={external:[]},o&&!e.isInitialized&&!r.isClone){if(!e.options.initImmediate)return e.init(r,o),te(e,ee(e));setTimeout((function(){e.init(r,o)}),0)}return e}return ae(t,se),G(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;function o(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(r=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=X({},ze(),this.options,Ne(t)),this.format=this.options.interpolation.format,r||(r=Te),!this.options.isClone){this.modules.logger?ie.init(o(this.modules.logger),this.options):ie.init(null,this.options);var a=new Oe(this.options);this.store=new ye(this.options.resources,this.options);var n=this.services;n.logger=ie,n.resourceStore=this.store,n.languageUtils=a,n.pluralResolver=new Ee(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),n.interpolator=new Re(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new _e(o(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on("*",(function(t){for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];e.emit.apply(e,[t].concat(o))})),this.modules.languageDetector&&(n.languageDetector=o(this.modules.languageDetector),n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=o(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new Se(this.services,this.options),this.translator.on("*",(function(t){for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];e.emit.apply(e,[t].concat(o))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var i=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);i.length>0&&"dev"!==i[0]&&(this.options.lng=i[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var s=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];s.forEach((function(t){e[t]=function(){var r;return(r=e.store)[t].apply(r,arguments)}}));var l=["addResource","addResources","addResourceBundle","removeResourceBundle"];l.forEach((function(t){e[t]=function(){var r;return(r=e.store)[t].apply(r,arguments),e}}));var c=le(),u=function(){var t=function(t,o){e.isInitialized&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),c.resolve(o),r(t,o)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),c}},{key:"loadResources",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Te,o=r,a="string"==typeof e?e:this.language;if("function"==typeof e&&(o=e),!this.options.resources||this.options.partialBundledLanguages){if(a&&"cimode"===a.toLowerCase())return o();var n=[],i=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){n.indexOf(e)<0&&n.push(e)}))};if(a)i(a);else{var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.forEach((function(e){return i(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return i(e)})),this.services.backendConnector.load(n,this.options.ns,o)}else o(null)}},{key:"reloadResources",value:function(e,t,r){var o=le();return e||(e=this.languages),t||(t=this.options.ns),r||(r=Te),this.services.backendConnector.reload(e,t,(function(e){o.resolve(),r(e)})),o}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&xe.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var r=this;this.isLanguageChangingTo=e;var o=le();this.emit("languageChanging",e);var a=function(e){var a="string"==typeof e?e:r.services.languageUtils.getBestMatchFromCodes(e);a&&(r.language||(r.language=a,r.languages=r.services.languageUtils.toResolveHierarchy(a)),r.translator.language||r.translator.changeLanguage(a),r.services.languageDetector&&r.services.languageDetector.cacheUserLanguage(a)),r.loadResources(a,(function(e){!function(e,a){a?(r.language=a,r.languages=r.services.languageUtils.toResolveHierarchy(a),r.translator.changeLanguage(a),r.isLanguageChangingTo=void 0,r.emit("languageChanged",a),r.logger.log("languageChanged",a)):r.isLanguageChangingTo=void 0,o.resolve((function(){return r.t.apply(r,arguments)})),t&&t(e,(function(){return r.t.apply(r,arguments)}))}(e,a)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),o}},{key:"getFixedT",value:function(e,t){var r=this,o=function e(t,o){var a;if("object"!==W(o)){for(var n=arguments.length,i=new Array(n>2?n-2:0),s=2;s<n;s++)i[s-2]=arguments[s];a=r.options.overloadTranslationOptionHandler([t,o].concat(i))}else a=X({},o);return a.lng=a.lng||e.lng,a.lngs=a.lngs||e.lngs,a.ns=a.ns||e.ns,r.t(t,a)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var o=this.languages[0],a=!!this.options&&this.options.fallbackLng,n=this.languages[this.languages.length-1];if("cimode"===o.toLowerCase())return!0;var i=function(e,r){var o=t.services.backendConnector.state["".concat(e,"|").concat(r)];return-1===o||2===o};if(r.precheck){var s=r.precheck(this,i);if(void 0!==s)return s}return!!this.hasResourceBundle(o,e)||(!this.services.backendConnector.backend||!(!i(o,e)||a&&!i(n,e)))}},{key:"loadNamespaces",value:function(e,t){var r=this,o=le();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)})),this.loadResources((function(e){o.resolve(),t&&t(e)})),o):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var r=le();"string"==typeof e&&(e=[e]);var o=this.options.preload||[],a=e.filter((function(e){return o.indexOf(e)<0}));return a.length?(this.options.preload=o.concat(a),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),!e)return"rtl";return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr"}},{key:"createInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new t(e,r)}},{key:"cloneInstance",value:function(){var e=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Te,a=X({},this.options,r,{isClone:!0}),n=new t(a),i=["store","services","language"];return i.forEach((function(t){n[t]=e[t]})),n.services=X({},this.services),n.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},n.translator=new Se(n.services,n.options),n.translator.on("*",(function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];n.emit.apply(n,[e].concat(r))})),n.init(a,o),n.translator.options=n.options,n.translator.backendConnector.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},n}}]),t}());function Ae(e){return Ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ae(e)}var Ie=[],Fe=Ie.forEach,Ue=Ie.slice;function He(e){return Fe.call(Ue.call(arguments,1),(function(t){if(t)for(var r in t)void 0===e[r]&&(e[r]=t[r])})),e}function qe(){return"function"==typeof XMLHttpRequest||"object"===("undefined"==typeof XMLHttpRequest?"undefined":Ae(XMLHttpRequest))}var De,Ve,$e,Be=e((function(e,t){var n;if("function"==typeof fetch&&(void 0!==r&&r.fetch?n=r.fetch:"undefined"!=typeof window&&window.fetch&&(n=window.fetch)),void 0!==o&&("undefined"==typeof window||void 0===window.document)){var i=n||a;i.default&&(i=i.default),t.default=i,e.exports=t.default}})),We=g({__proto__:null,default:Be},[Be]);function Ke(e){return Ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ke(e)}"function"==typeof fetch&&("undefined"!=typeof global&&global.fetch?De=global.fetch:"undefined"!=typeof window&&window.fetch&&(De=window.fetch)),qe&&("undefined"!=typeof global&&global.XMLHttpRequest?Ve=global.XMLHttpRequest:"undefined"!=typeof window&&window.XMLHttpRequest&&(Ve=window.XMLHttpRequest)),"function"==typeof ActiveXObject&&("undefined"!=typeof global&&global.ActiveXObject?$e=global.ActiveXObject:"undefined"!=typeof window&&window.ActiveXObject&&($e=window.ActiveXObject)),De||!We||Ve||$e||(De=Be||We),"function"!=typeof De&&(De=void 0);var Xe=function(e,t){if(t&&"object"===Ke(t)){var r="";for(var o in t)r+="&"+encodeURIComponent(o)+"="+encodeURIComponent(t[o]);if(!r)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+r.slice(1)}return e},Je=function(e,t,r,o){return"function"==typeof r&&(o=r,r=void 0),o=o||function(){},De?function(e,t,r,o){e.queryStringParams&&(t=Xe(t,e.queryStringParams));var a=He({},"function"==typeof e.customHeaders?e.customHeaders():e.customHeaders);r&&(a["Content-Type"]="application/json"),De(t,He({method:r?"POST":"GET",body:r?e.stringify(r):void 0,headers:a},"function"==typeof e.requestOptions?e.requestOptions(r):e.requestOptions)).then((function(e){if(!e.ok)return o(e.statusText||"Error",{status:e.status});e.text().then((function(t){o(null,{status:e.status,data:t})})).catch(o)})).catch(o)}(e,t,r,o):qe||"function"==typeof ActiveXObject?function(e,t,r,o){r&&"object"===Ke(r)&&(r=Xe("",r).slice(1)),e.queryStringParams&&(t=Xe(t,e.queryStringParams));try{var a;(a=Ve?new Ve:new $e("MSXML2.XMLHTTP.3.0")).open(r?"POST":"GET",t,1),e.crossDomain||a.setRequestHeader("X-Requested-With","XMLHttpRequest"),a.withCredentials=!!e.withCredentials,r&&a.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),a.overrideMimeType&&a.overrideMimeType("application/json");var n=e.customHeaders;if(n="function"==typeof n?n():n)for(var i in n)a.setRequestHeader(i,n[i]);a.onreadystatechange=function(){a.readyState>3&&o(a.status>=400?a.statusText:null,{status:a.status,data:a.responseText})},a.send(r)}catch(e){console&&console.log(e)}}(e,t,r,o):void 0};function Ye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ge(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var Qe=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",allowMultiLoading:!1,parse:function(e){return JSON.parse(e)},stringify:JSON.stringify,parsePayload:function(e,t,r){return function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},t,r||"")},request:Je,reloadInterval:"undefined"==typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},Ze=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ye(this,e),this.services=t,this.options=r,this.allOptions=o,this.type="backend",this.init(t,r,o)}var t,r,o;return t=e,r=[{key:"init",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=He(r,this.options||{},Qe()),this.allOptions=o,this.services&&this.options.reloadInterval&&setInterval((function(){return t.reload()}),this.options.reloadInterval)}},{key:"readMulti",value:function(e,t,r){this._readAny(e,e,t,t,r)}},{key:"read",value:function(e,t,r){this._readAny([e],e,[t],t,r)}},{key:"_readAny",value:function(e,t,r,o,a){var n,i=this,s=this.options.loadPath;"function"==typeof this.options.loadPath&&(s=this.options.loadPath(e,r)),(s=function(e){return!!e&&"function"==typeof e.then}(n=s)?n:Promise.resolve(n)).then((function(n){var s=i.services.interpolator.interpolate(n,{lng:e.join("+"),ns:r.join("+")});i.loadUrl(s,a,t,o)}))}},{key:"loadUrl",value:function(e,t,r,o){var a=this;this.options.request(this.options,e,void 0,(function(n,i){if(i&&(i.status>=500&&i.status<600||!i.status))return t("failed loading "+e+"; status code: "+i.status,!0);if(i&&i.status>=400&&i.status<500)return t("failed loading "+e+"; status code: "+i.status,!1);if(!i&&n&&n.message&&n.message.indexOf("Failed to fetch")>-1)return t("failed loading "+e+": "+n.message,!0);if(n)return t(n,!1);var s,l;try{s="string"==typeof i.data?a.options.parse(i.data,r,o):i.data}catch(t){l="failed parsing "+e+" to json"}if(l)return t(l,!1);t(null,s)}))}},{key:"create",value:function(e,t,r,o,a){var n=this;if(this.options.addPath){"string"==typeof e&&(e=[e]);var i=this.options.parsePayload(t,r,o),s=0,l=[],c=[];e.forEach((function(r){var o=n.options.addPath;"function"==typeof n.options.addPath&&(o=n.options.addPath(r,t));var u=n.services.interpolator.interpolate(o,{lng:r,ns:t});n.options.request(n.options,u,i,(function(t,r){s+=1,l.push(t),c.push(r),s===e.length&&a&&a(l,c)}))}))}}},{key:"reload",value:function(){var e=this,t=this.services,r=t.backendConnector,o=t.languageUtils,a=t.logger,n=r.language;if(!n||"cimode"!==n.toLowerCase()){var i=[],s=function(e){o.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};s(n),this.allOptions.preload&&this.allOptions.preload.forEach((function(e){return s(e)})),i.forEach((function(t){e.allOptions.ns.forEach((function(e){r.read(t,e,"read",null,null,(function(o,n){o&&a.warn("loading namespace ".concat(e," for language ").concat(t," failed"),o),!o&&n&&a.log("loaded namespace ".concat(e," for language ").concat(t),n),r.loaded("".concat(t,"|").concat(e),o,n)}))}))}))}}}],r&&Ge(t.prototype,r),o&&Ge(t,o),e}();Ze.type="backend";var et=function(){return n.Date.now()},tt=/\s/;var rt=/^\s+/;function ot(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&tt.test(e.charAt(t)););return t}(e)+1).replace(rt,""):e}var at=/^[-+]0x[0-9a-f]+$/i,nt=/^0b[01]+$/i,it=/^0o[0-7]+$/i,st=parseInt;function lt(e){if("number"==typeof e)return e;if(i(e))return NaN;if(s(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=s(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=ot(e);var r=nt.test(e);return r||it.test(e)?st(e.slice(2),r?2:8):at.test(e)?NaN:+e}var ct=Math.max,ut=Math.min;function pt(e,t,r){var o,a,n,i,l,c,u=0,p=!1,d=!1,m=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function h(t){var r=o,n=a;return o=a=void 0,u=t,i=e.apply(n,r)}function f(e){return u=e,l=setTimeout(v,t),p?h(e):i}function g(e){var r=e-c;return void 0===c||r>=t||r<0||d&&e-u>=n}function v(){var e=et();if(g(e))return b(e);l=setTimeout(v,function(e){var r=t-(e-c);return d?ut(r,n-(e-u)):r}(e))}function b(e){return l=void 0,m&&o?h(e):(o=a=void 0,i)}function w(){var e=et(),r=g(e);if(o=arguments,a=this,c=e,r){if(void 0===l)return f(c);if(d)return clearTimeout(l),l=setTimeout(v,t),h(c)}return void 0===l&&(l=setTimeout(v,t)),i}return t=lt(t)||0,s(r)&&(p=!!r.leading,n=(d="maxWait"in r)?ct(lt(r.maxWait)||0,t):n,m="trailing"in r?!!r.trailing:m),w.cancel=function(){void 0!==l&&clearTimeout(l),u=0,o=c=a=l=void 0},w.flush=function(){return void 0===l?i:b(et())},w}const dt=Object.entries({sm:640,md:768,lg:1024,xl:1280}),mt=e=>class extends e{constructor(){super(...arguments),this.__handleResize=function(e,t,r){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return s(r)&&(o="leading"in r?!!r.leading:o,a="trailing"in r?!!r.trailing:a),pt(e,t,{leading:o,maxWait:t,trailing:a})}((e=>{e.forEach((({contentRect:e,target:t})=>{dt.forEach((([r,o])=>{e.width>=o?t.hasAttribute(r)||t.setAttribute(r,""):t.hasAttribute(r)&&t.removeAttribute(r)}))}))}),16,{trailing:!0,leading:!0})}connectedCallback(){if(super.connectedCallback(),window.ResizeObserver){const e=new ResizeObserver(this.__handleResize);e.observe(this),this.__removeBreakpoints=()=>e.disconnect()}}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this.__removeBreakpoints)||void 0===e||e.call(this),this.__handleResize.cancel()}},ht=new WeakMap;let ft=Math.round(1e5*Math.random());const gt=new RegExp("[a-z](-|\\.|[0-9]|[a-z])*-(-|\\.|[0-9]|[a-z])*"),vt=(e,t)=>{const r=`${e}-${ft+=1}`;return((e,t)=>!!t.get(e))(r,t)?vt(e,t):r};function bt(e,t=customElements){if(r=e,null===gt.exec(r))throw new Error("tagName is invalid");var r;return vt(e,t)}const wt=new Map,yt=(e,t)=>wt.set(t,e),xt=(e,t,r=customElements)=>{yt(e,t),r.define(e,class extends t{})},kt=(e,t,r)=>{const o=customElements;if(!(e=>Object.prototype.isPrototypeOf.call(HTMLElement,e))(t))return((e,t,r)=>{const o=bt(e,t);if(!r)throw new Error("Lazy scoped elements requires the use of tags cache");return r.set(e,o),o})(e,o,r);if(t===customElements.get(e))return yt(e,t),e;const a=bt(e,o);return xt(a,t,o),a};function St(e,t,r){return(e=>wt.get(e))(t)||r&&r.get(e)||kt(e,t,r)}const Lt="-|\\.|[0-9]|[a-z]",Ot=new RegExp(`<\\/?([a-z](${Lt})*-(${Lt})*)`,"g"),Pt=new Map,jt=(e,t,r,o)=>{const a=e.map((e=>{let r=e;const a=(e=>{const t=[];let r;for(;null!==(r=Ot.exec(e));)t.push(r);return t})(e);for(let e=a.length-1;e>=0;e-=1){const n=a[e],[i,s]=n,l=St(s,t[s],o),c=n.index+i.length-s.length,u=c+s.length,p=0===i.indexOf("</");r=r.slice(0,c)+(p?l:`${l} data-tag-name="${s}"`)+r.slice(u)}return r}));return r.set(e,a),a};let Ct=!0;const{ShadyCSS:Et}=window;(void 0===Et||void 0===Et.prepareTemplateDom)&&(Ct=!1);const Rt=new WeakMap,_t=new WeakMap,zt=e=>(_t.has(e)||_t.set(e,new Map),_t.get(e)),Nt=(e,t,r,o)=>e.map((e=>e instanceof d?Tt(e,t,r,o):Array.isArray(e)?Nt(e,t,r,o):e)),Tt=(e,t,r,o)=>new d(function(e,t,r=Pt,o){return r.get(e)||jt(e,t,r,o)}(e.strings,t,r,o),Nt(e.values,t,r,o),e.type,e.processor),Mt=(e,t,r,o)=>a=>{const n=Tt(a,t,r,o);return(e=>t=>{const r=((e,t)=>`${e}--${t}`)(t.type,e);let o=c.get(r);void 0===o&&(o={stringsArray:new WeakMap,keyString:new Map},c.set(r,o));let a=o.stringsArray.get(t.strings);if(void 0!==a)return a;const n=t.strings.join(u);if(a=o.keyString.get(n),void 0===a){const r=t.getTemplateElement();Ct&&Et.prepareTemplateDom(r,e),a=new p(t,r),o.keyString.set(n,a)}return o.stringsArray.set(t.strings,a),a})(e)(n)},At=(It=e=>class extends e{static get scopedElements(){return{}}static render(e,t,r){if(!r||"object"!=typeof r||!r.scopeName)throw new Error("The `scopeName` option is required.");const{scopeName:o}=r,a=(n=this,Rt.has(n)||Rt.set(n,new Map),Rt.get(n));var n;const i=zt(this),{scopedElements:s}=this;return super.render(e,t,{...r,templateFactory:Mt(o,s,a,i)})}defineScopedElement(e,t){return function(e,t,r){const o=r.get(e);o?void 0===customElements.get(o)&&xt(o,t,customElements):r.set(e,St(e,t,r))}(e,t,zt(this.constructor))}static getScopedTagName(e){const t=this.scopedElements[e];return t?St(e,t,zt(this)):zt(this).get(e)}},e=>{if(function(e,t){let r=t;for(;r;){if(ht.get(r)===e)return!0;r=Object.getPrototypeOf(r)}return!1}(It,e))return e;const t=It(e);return ht.set(t,It),t});var It;let Ft=0;const Ut={},Ht=(e,t,r)=>{const o=r&&r.moduleId||"custom-style-module-"+Ft++;Array.isArray(t)||(t=t?[t]:[]),t.forEach((e=>{if(!(e instanceof m))throw new Error("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`.");if(!Ut[e]){const t=document.createElement("dom-module");t.innerHTML=`\n <template>\n <style>${e.toString()}</style>\n </template>\n `;const r="custom-style-module-"+Ft++;t.register(r),Ut[e]=r}}));const a=document.createElement("dom-module");if(e){const t=window.customElements&&window.customElements.get(e);t&&t.hasOwnProperty("__finalized")&&console.warn(`The custom element definition for "${e}"\n was finalized before a style module was registered.\n Make sure to add component specific style modules before\n importing the corresponding custom element.`),a.setAttribute("theme-for",e)}const n=r&&r.include||[];a.innerHTML=`\n <template>\n ${n.map((e=>`<style include=${e}></style>`))}\n ${t.map((e=>`<style include=${Ut[e]}></style>`))}\n </template>\n `,a.register(o)};let qt,Dt,Vt,$t,Bt,Wt=e=>e;const Kt=e=>class extends e{static get styles(){const e=super.styles;return[...e?Array.isArray(e)?e:[e]:[],h(qt||(qt=Wt`/*! tailwindcss v2.2.19 | MIT License | https://tailwindcss.com *//*! modern-normalize v1.1.0 | MIT License | https://github.com/sindresorhus/modern-normalize */*,::after,::before{box-sizing:border-box}html{-moz-tab-size:4;tab-size:4}html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}body{font-family:system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji'}hr{height:0;color:inherit}abbr[title]{text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Consolas,'Liberation Mono',Menlo,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}::-moz-focus-inner{border-style:none;padding:0}legend{padding:0}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}button{background-color:transparent;background-image:none}fieldset{margin:0;padding:0}ol,ul{list-style:none;margin:0;padding:0}html{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";line-height:1.5}body{font-family:inherit;line-height:inherit}*,::after,::before{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}hr{border-top-width:1px}img{border-style:solid}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#a1a1aa}[role=button],button{cursor:pointer}table{border-collapse:collapse}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}button,input,optgroup,select,textarea{padding:0;line-height:inherit;color:inherit}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,::after,::before{border-color:currentColor}*{-webkit-tap-highlight-color:transparent;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host{display:block;color:var(--lumo-body-text-color);line-height:var(--lumo-line-height-m);font:normal var(--lumo-font-size-m) var(--lumo-font-family)}details>summary::-webkit-details-marker{display:none}details>summary{list-style:none}vaadin-select{margin-top:-4px;margin-bottom:-4px}vaadin-checkbox-group,vaadin-combo-box::part(text-field),vaadin-custom-field,vaadin-date-picker,vaadin-date-picker::part(text-field),vaadin-email-field,vaadin-integer-field,vaadin-number-field,vaadin-password-field,vaadin-radio-group,vaadin-text-area,vaadin-text-field{padding-top:0;padding-bottom:0}vaadin-checkbox-group::part(label),vaadin-combo-box::part(label),vaadin-custom-field::part(label),vaadin-date-picker::part(label),vaadin-email-field::part(label),vaadin-integer-field::part(label),vaadin-number-field::part(label),vaadin-password-field::part(label),vaadin-radio-group::part(label),vaadin-text-area::part(label),vaadin-text-field::part(label){margin-left:0}vaadin-date-time-picker,vaadin-time-picker{width:100%}vaadin-button,vaadin-checkbox::part(checkbox){margin:0}vaadin-checkbox::part(label){margin:.1875em var(--lumo-space-m)}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.appearance-none::-webkit-calendar-picker-indicator,.appearance-none::-webkit-inner-spin-button,.appearance-none::-webkit-list-button,.appearance-none::-webkit-outer-spin-button{opacity:0!important;width:0!important;margin:0!important;padding:0!important}input::-webkit-date-and-time-value{text-align:inherit!important}.container{width:100%}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}:host([sm]) .sm-not-sr-only{position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip:auto;white-space:normal}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset{top:var(--lumo-space-m,1rem);right:var(--lumo-space-m,1rem);bottom:var(--lumo-space-m,1rem);left:var(--lumo-space-m,1rem)}.top-0{top:0}.top{top:var(--lumo-space-m,1rem)}.right-0{right:0}.right{right:var(--lumo-space-m,1rem)}.bottom{bottom:var(--lumo-space-m,1rem)}.left{left:var(--lumo-space-m,1rem)}.z-0{z-index:0}.z-50{z-index:50}.focus-within-z-10:focus-within{z-index:10}.order-1{order:1}:host([sm]) .sm-order-1{order:1}.col-span-1{grid-column:span 1/span 1}.col-span-2{grid-column:span 2/span 2}:host([sm]) .sm-col-span-2{grid-column:span 2/span 2}:host([md]) .md-col-span-2{grid-column:span 2/span 2}.float-left{float:left}.m-0{margin:0}.m-auto{margin:auto}.m-xs{margin:var(--lumo-space-xs,.25rem)}.m-s{margin:var(--lumo-space-s,.5rem)}.m-m{margin:var(--lumo-space-m,1rem)}.m-l{margin:var(--lumo-space-l,1.5rem)}.m{margin:var(--lumo-space-m,1rem)}.-m-s{margin:calc(var(--lumo-space-s,.5rem) * -1)}:host([sm]) .sm-m-xl{margin:var(--lumo-space-xl,2.5rem)}.mx-auto{margin-left:auto;margin-right:auto}.mx-xs{margin-left:var(--lumo-space-xs,.25rem);margin-right:var(--lumo-space-xs,.25rem)}.mx-s{margin-left:var(--lumo-space-s,.5rem);margin-right:var(--lumo-space-s,.5rem)}.mx-m{margin-left:var(--lumo-space-m,1rem);margin-right:var(--lumo-space-m,1rem)}.-mx-xs{margin-left:calc(var(--lumo-space-xs,.25rem) * -1);margin-right:calc(var(--lumo-space-xs,.25rem) * -1)}.-mx-s{margin-left:calc(var(--lumo-space-s,.5rem) * -1);margin-right:calc(var(--lumo-space-s,.5rem) * -1)}.-mx-m{margin-left:calc(var(--lumo-space-m,1rem) * -1);margin-right:calc(var(--lumo-space-m,1rem) * -1)}.-mx-l{margin-left:calc(var(--lumo-space-l,1.5rem) * -1);margin-right:calc(var(--lumo-space-l,1.5rem) * -1)}.my-auto{margin-top:auto;margin-bottom:auto}.my-xs{margin-top:var(--lumo-space-xs,.25rem);margin-bottom:var(--lumo-space-xs,.25rem)}.my-s{margin-top:var(--lumo-space-s,.5rem);margin-bottom:var(--lumo-space-s,.5rem)}.my-m{margin-top:var(--lumo-space-m,1rem);margin-bottom:var(--lumo-space-m,1rem)}.my{margin-top:var(--lumo-space-m,1rem);margin-bottom:var(--lumo-space-m,1rem)}.-my-xs{margin-top:calc(var(--lumo-space-xs,.25rem) * -1);margin-bottom:calc(var(--lumo-space-xs,.25rem) * -1)}.-my-s{margin-top:calc(var(--lumo-space-s,.5rem) * -1);margin-bottom:calc(var(--lumo-space-s,.5rem) * -1)}.mt-0{margin-top:0}.mt-xs{margin-top:var(--lumo-space-xs,.25rem)}.mt-s{margin-top:var(--lumo-space-s,.5rem)}.mt-m{margin-top:var(--lumo-space-m,1rem)}.mt-xl{margin-top:var(--lumo-space-xl,2.5rem)}.-mt-xs{margin-top:calc(var(--lumo-space-xs,.25rem) * -1)}.-mt-m{margin-top:calc(var(--lumo-space-m,1rem) * -1)}.mr-auto{margin-right:auto}.mr-xs{margin-right:var(--lumo-space-xs,.25rem)}.mr-s{margin-right:var(--lumo-space-s,.5rem)}.mr-m{margin-right:var(--lumo-space-m,1rem)}.mr-l{margin-right:var(--lumo-space-l,1.5rem)}.mr-xl{margin-right:var(--lumo-space-xl,2.5rem)}.-mr-xs{margin-right:calc(var(--lumo-space-xs,.25rem) * -1)}.-mr-s{margin-right:calc(var(--lumo-space-s,.5rem) * -1)}.mb-xs{margin-bottom:var(--lumo-space-xs,.25rem)}.mb-s{margin-bottom:var(--lumo-space-s,.5rem)}.mb-m{margin-bottom:var(--lumo-space-m,1rem)}.mb-l{margin-bottom:var(--lumo-space-l,1.5rem)}.-mb-xs{margin-bottom:calc(var(--lumo-space-xs,.25rem) * -1)}.-mb-s{margin-bottom:calc(var(--lumo-space-s,.5rem) * -1)}.-mb-m{margin-bottom:calc(var(--lumo-space-m,1rem) * -1)}.ml-auto{margin-left:auto}.ml-xs{margin-left:var(--lumo-space-xs,.25rem)}.ml-s{margin-left:var(--lumo-space-s,.5rem)}.ml-m{margin-left:var(--lumo-space-m,1rem)}:host([sm]) .sm-mt-0{margin-top:0}:host([sm]) .sm-mr-s{margin-right:var(--lumo-space-s,.5rem)}:host([sm]) .sm-mb-0{margin-bottom:0}:host([sm]) .sm-ml-s{margin-left:var(--lumo-space-s,.5rem)}:host([sm]) .sm-ml-m{margin-left:var(--lumo-space-m,1rem)}:host([md]) .md-mr-s{margin-right:var(--lumo-space-s,.5rem)}:host([md]) .md-mb-0{margin-bottom:0}.box-content{box-sizing:content-box}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}:host([sm]) .sm-block{display:block}:host([sm]) .sm-flex{display:flex}:host([sm]) .sm-table-cell{display:table-cell}:host([md]) .md-flex{display:flex}:host([md]) .md-table-cell{display:table-cell}:host([lg]) .lg-table-cell{display:table-cell}:host([xl]) .xl-table-cell{display:table-cell}.h-0{height:0}.h-auto{height:auto}.h-xxs{height:var(--lumo-size-xxs,1.5rem)}.h-xs{height:var(--lumo-size-xs,1.625rem)}.h-s{height:var(--lumo-size-s,1.875rem)}.h-m{height:var(--lumo-size-m,2.25rem)}.h-l{height:var(--lumo-size-l,2.75rem)}.h-xl{height:var(--lumo-size-xl,3.5rem)}.h-full{height:100%}:host([sm]) .sm-h-xs{height:var(--lumo-size-xs,1.625rem)}:host([sm]) .sm-h-m{height:var(--lumo-size-m,2.25rem)}.min-h-0{min-height:0}.w-auto{width:auto}.w-xxs{width:var(--lumo-size-xxs,1.5rem)}.w-xs{width:var(--lumo-size-xs,1.625rem)}.w-s{width:var(--lumo-size-s,1.875rem)}.w-m{width:var(--lumo-size-m,2.25rem)}.w-l{width:var(--lumo-size-l,2.75rem)}.w-xl{width:var(--lumo-size-xl,3.5rem)}.w-1-3{width:33.333333%}.w-2-3{width:66.666667%}.w-full{width:100%}:host([sm]) .sm-w-auto{width:auto}:host([sm]) .sm-w-l{width:var(--lumo-size-l,2.75rem)}:host([md]) .md-w-auto{width:auto}:host([md]) .md-w-1-2{width:50%}.min-w-0{min-width:0}.min-w-full{min-width:100%}.max-w-0{max-width:0}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.flex-auto{flex:1 1 auto}.flex-shrink-0{flex-shrink:0}.flex-shrink{flex-shrink:1}.table-fixed{table-layout:fixed}.origin-top-right{transform-origin:top right}.origin-bottom-right{transform-origin:bottom right}.origin-bottom{transform-origin:bottom}.origin-bottom-left{transform-origin:bottom left}.origin-top-left{transform-origin:top left}:host([sm]) .sm-origin-center{transform-origin:center}.transform{--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;transform:translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x:0}.translate-x-l{--tw-translate-x:var(--lumo-space-l, 1.5rem)}.translate-y-0{--tw-translate-y:0}.-translate-y-s{--tw-translate-y:calc(var(--lumo-space-s, 0.5rem) * -1)}.-translate-y-m{--tw-translate-y:calc(var(--lumo-space-m, 1rem) * -1)}.-translate-y-l{--tw-translate-y:calc(var(--lumo-space-l, 1.5rem) * -1)}.translate-y-full{--tw-translate-y:100%}:host([sm]) .sm-translate-x-full{--tw-translate-x:100%}:host([sm]) .sm-translate-y-0{--tw-translate-y:0}.rotate-12{--tw-rotate:12deg}.-rotate-12{--tw-rotate:-12deg}.scale-0{--tw-scale-x:0;--tw-scale-y:0}.scale-90{--tw-scale-x:.9;--tw-scale-y:.9}.scale-95{--tw-scale-x:.95;--tw-scale-y:.95}.scale-100{--tw-scale-x:1;--tw-scale-y:1}.scale-110{--tw-scale-x:1.1;--tw-scale-y:1.1}:host([sm]) .sm-scale-110{--tw-scale-x:1.1;--tw-scale-y:1.1}@media (hover:hover){.group:hover .group-hover-scale-110{--tw-scale-x:1.1;--tw-scale-y:1.1}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes ping{100%,75%{transform:scale(2);opacity:0}}@keyframes pulse{50%{opacity:.5}}@keyframes bounce{0%,100%{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}@media (hover:hover){.hover-cursor-pointer:hover{cursor:pointer}}.disabled-cursor-default:disabled{cursor:default}.select-none{user-select:none}.select-text{user-select:text}.resize-none{resize:none}.resize{resize:both}.appearance-none{appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}:host([sm]) .sm-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}:host([sm]) .sm-grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}:host([sm]) .sm-grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}:host([md]) .md-grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}:host([sm]) .sm-grid-rows-1{grid-template-rows:repeat(1,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}:host([sm]) .sm-flex-row{flex-direction:row}:host([md]) .md-flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.flex-wrap-reverse{flex-wrap:wrap-reverse}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}:host([sm]) .sm-items-start{align-items:flex-start}:host([sm]) .sm-items-end{align-items:flex-end}:host([sm]) .sm-items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-evenly{justify-content:space-evenly}:host([sm]) .sm-justify-between{justify-content:space-between}.gap-xs{gap:var(--lumo-space-xs,.25rem)}.gap-s{gap:var(--lumo-space-s,.5rem)}.gap-m{gap:var(--lumo-space-m,1rem)}.gap-l{gap:var(--lumo-space-l,1.5rem)}.gap{gap:var(--lumo-space-m,1rem)}:host([sm]) .sm-gap-l{gap:var(--lumo-space-l,1.5rem)}.space-x-xs>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(var(--lumo-space-xs,.25rem) * var(--tw-space-x-reverse));margin-left:calc(var(--lumo-space-xs,.25rem) * calc(1 - var(--tw-space-x-reverse)))}.space-x-s>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(var(--lumo-space-s,.5rem) * var(--tw-space-x-reverse));margin-left:calc(var(--lumo-space-s,.5rem) * calc(1 - var(--tw-space-x-reverse)))}.space-x-m>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(var(--lumo-space-m,1rem) * var(--tw-space-x-reverse));margin-left:calc(var(--lumo-space-m,1rem) * calc(1 - var(--tw-space-x-reverse)))}.space-y-xs>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(var(--lumo-space-xs,.25rem) * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(var(--lumo-space-xs,.25rem) * var(--tw-space-y-reverse))}.space-y-s>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(var(--lumo-space-s,.5rem) * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(var(--lumo-space-s,.5rem) * var(--tw-space-y-reverse))}.space-y-m>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(var(--lumo-space-m,1rem) * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(var(--lumo-space-m,1rem) * var(--tw-space-y-reverse))}.space-y-l>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(var(--lumo-space-l,1.5rem) * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(var(--lumo-space-l,1.5rem) * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-transparent>:not([hidden])~:not([hidden]){border-color:transparent}.divide-contrast-5>:not([hidden])~:not([hidden]){border-color:var(--lumo-contrast-5pct,hsla(214,61%,25%,.05))}.divide-contrast-10>:not([hidden])~:not([hidden]){border-color:var(--lumo-contrast-10pct,hsla(214,57%,24%,.1))}@media (hover:hover){.group:hover .group-hover-divide-contrast-20{border-color:var(--lumo-contrast-20pct,hsla(214,53%,23%,.16))}}.self-start{align-self:flex-start}.self-center{align-self:center}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overscroll-contain{overscroll-behavior:contain}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-wrap{white-space:pre-wrap}.break-all{word-break:break-all}.rounded-none{border-radius:0}.rounded-s{border-radius:var(--lumo-border-radius-s,.25em)}.rounded-full{border-radius:100%}.rounded{border-radius:var(--lumo-border-radius,.5em)}.rounded-t-l{border-top-left-radius:var(--lumo-border-radius-l,.75em);border-top-right-radius:var(--lumo-border-radius-l,.75em)}.rounded-t{border-top-left-radius:var(--lumo-border-radius,.5em);border-top-right-radius:var(--lumo-border-radius,.5em)}.rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.rounded-b-l{border-bottom-right-radius:var(--lumo-border-radius-l,.75em);border-bottom-left-radius:var(--lumo-border-radius-l,.75em)}.rounded-b{border-bottom-right-radius:var(--lumo-border-radius,.5em);border-bottom-left-radius:var(--lumo-border-radius,.5em)}.rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}:host([sm]) .sm-rounded-b-l{border-bottom-right-radius:var(--lumo-border-radius-l,.75em);border-bottom-left-radius:var(--lumo-border-radius-l,.75em)}.rounded-tl{border-top-left-radius:var(--lumo-border-radius,.5em)}.rounded-tr{border-top-right-radius:var(--lumo-border-radius,.5em)}.rounded-br{border-bottom-right-radius:var(--lumo-border-radius,.5em)}.rounded-bl{border-bottom-left-radius:var(--lumo-border-radius,.5em)}:host([sm]) .sm-rounded-tr{border-top-right-radius:var(--lumo-border-radius,.5em)}:host([sm]) .sm-rounded-bl-none{border-bottom-left-radius:0}.border{border-width:1px}.border-t{border-top-width:1px}.border-r{border-right-width:1px}.border-b{border-bottom-width:1px}.border-l-2{border-left-width:2px}:host([sm]) .sm-border-l{border-left-width:1px}:host([md]) .md-border-r{border-right-width:1px}.border-solid{border-style:solid}.border-dashed{border-style:dashed}.border-transparent{border-color:transparent}.border-current{border-color:currentColor}.border-contrast-5{border-color:var(--lumo-contrast-5pct,hsla(214,61%,25%,.05))}.border-contrast-10{border-color:var(--lumo-contrast-10pct,hsla(214,57%,24%,.1))}.border-contrast-20{border-color:var(--lumo-contrast-20pct,hsla(214,53%,23%,.16))}.border-contrast-30{border-color:var(--lumo-contrast-30pct,hsla(214,50%,22%,.26))}.border-contrast-50{border-color:var(--lumo-contrast-50pct,hsla(214,45%,20%,.5))}.border-contrast{border-color:var(--lumo-contrast,#182433)}.border-primary-50{border-color:var(--lumo-primary-color-50pct,hsla(214,90%,52%,.5))}.border-primary{border-color:var(--lumo-primary-color,#1675f2)}.border-error{border-color:var(--lumo-error-color,#fe4238)}:host([sm]) .sm-border-transparent{border-color:transparent}:host([sm]) .sm-border-contrast-10{border-color:var(--lumo-contrast-10pct,hsla(214,57%,24%,.1))}:host([md]) .md-border-contrast-10{border-color:var(--lumo-contrast-10pct,hsla(214,57%,24%,.1))}@media (hover:hover){.group:hover .group-hover-border-contrast-20{border-color:var(--lumo-contrast-20pct,hsla(214,53%,23%,.16))}}.focus-within-border-primary-50:focus-within{border-color:var(--lumo-primary-color-50pct,hsla(214,90%,52%,.5))}@media (hover:hover){.hover-border-contrast-30:hover{border-color:var(--lumo-contrast-30pct,hsla(214,50%,22%,.26))}.hover-border-contrast-40:hover{border-color:var(--lumo-contrast-40pct,hsla(214,47%,21%,.38))}.hover-border-primary-10:hover{border-color:var(--lumo-primary-color-10pct,hsla(214,90%,52%,.1))}.hover-border-primary:hover{border-color:var(--lumo-primary-color,#1675f2)}}.focus-border-primary:focus{border-color:var(--lumo-primary-color,#1675f2)}.bg-transparent{background-color:transparent}.bg-current{background-color:currentColor}.bg-base{background-color:var(--lumo-base-color,#fff)}.bg-tint{background-color:var(--lumo-tint,#fff)}.bg-shade-50{background-color:var(--lumo-shade-50pct,hsla(214,45%,20%,.5))}.bg-contrast-5{background-color:var(--lumo-contrast-5pct,hsla(214,61%,25%,.05))}.bg-contrast-10{background-color:var(--lumo-contrast-10pct,hsla(214,57%,24%,.1))}.bg-contrast-20{background-color:var(--lumo-contrast-20pct,hsla(214,53%,23%,.16))}.bg-contrast-70{background-color:var(--lumo-contrast-70pct,hsla(214,42%,18%,.72))}.bg-contrast{background-color:var(--lumo-contrast,#182433)}.bg-primary-10{background-color:var(--lumo-primary-color-10pct,hsla(214,90%,52%,.1))}.bg-primary-50{background-color:var(--lumo-primary-color-50pct,hsla(214,90%,52%,.5))}.bg-primary{background-color:var(--lumo-primary-color,#1675f2)}.bg-error-10{background-color:var(--lumo-error-color-10pct,hsla(3,100%,60%,.1))}.bg-error{background-color:var(--lumo-error-color,#fe4238)}.bg-success-10{background-color:var(--lumo-success-color-10pct,hsla(145,76%,44%,.12))}.bg-success{background-color:var(--lumo-success-color,#15c05c)}@media (hover:hover){.group:hover .group-hover-bg-contrast-5{background-color:var(--lumo-contrast-5pct,hsla(214,61%,25%,.05))}.group:hover .group-hover-bg-contrast-20{background-color:var(--lumo-contrast-20pct,hsla(214,53%,23%,.16))}.group:hover .group-hover-bg-contrast-30{background-color:var(--lumo-contrast-30pct,hsla(214,50%,22%,.26))}}@media (hover:hover){.hover-bg-transparent:hover{background-color:transparent}.hover-bg-contrast-5:hover{background-color:var(--lumo-contrast-5pct,hsla(214,61%,25%,.05))}.hover-bg-contrast-10:hover{background-color:var(--lumo-contrast-10pct,hsla(214,57%,24%,.1))}.hover-bg-contrast-20:hover{background-color:var(--lumo-contrast-20pct,hsla(214,53%,23%,.16))}.hover-bg-primary-10:hover{background-color:var(--lumo-primary-color-10pct,hsla(214,90%,52%,.1))}.hover-bg-primary:hover{background-color:var(--lumo-primary-color,#1675f2)}.hover-bg-error-10:hover{background-color:var(--lumo-error-color-10pct,hsla(3,100%,60%,.1))}.hover-bg-success:hover{background-color:var(--lumo-success-color,#15c05c)}}.fill-current{fill:currentColor}.stroke-current{stroke:currentColor}.object-cover{object-fit:cover}.p-0{padding:0}.p-xs{padding:var(--lumo-space-xs,.25rem)}.p-s{padding:var(--lumo-space-s,.5rem)}.p-m{padding:var(--lumo-space-m,1rem)}.p-l{padding:var(--lumo-space-l,1.5rem)}.p-xl{padding:var(--lumo-space-xl,2.5rem)}.p{padding:var(--lumo-space-m,1rem)}:host([sm]) .sm-p-0{padding:0}.px-xs{padding-left:var(--lumo-space-xs,.25rem);padding-right:var(--lumo-space-xs,.25rem)}.px-s{padding-left:var(--lumo-space-s,.5rem);padding-right:var(--lumo-space-s,.5rem)}.px-m{padding-left:var(--lumo-space-m,1rem);padding-right:var(--lumo-space-m,1rem)}.px{padding-left:var(--lumo-space-m,1rem);padding-right:var(--lumo-space-m,1rem)}.py-0{padding-top:0;padding-bottom:0}.py-xs{padding-top:var(--lumo-space-xs,.25rem);padding-bottom:var(--lumo-space-xs,.25rem)}.py-s{padding-top:var(--lumo-space-s,.5rem);padding-bottom:var(--lumo-space-s,.5rem)}.pt-s{padding-top:var(--lumo-space-s,.5rem)}.pt-m{padding-top:var(--lumo-space-m,1rem)}.pr-xs{padding-right:var(--lumo-space-xs,.25rem)}.pr-s{padding-right:var(--lumo-space-s,.5rem)}.pr-m{padding-right:var(--lumo-space-m,1rem)}.pb-s{padding-bottom:var(--lumo-space-s,.5rem)}.pb-m{padding-bottom:var(--lumo-space-m,1rem)}.pl-xs{padding-left:var(--lumo-space-xs,.25rem)}.pl-s{padding-left:var(--lumo-space-s,.5rem)}.pl-m{padding-left:var(--lumo-space-m,1rem)}.pl{padding-left:var(--lumo-space-m,1rem)}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}:host([sm]) .sm-text-left{text-align:left}:host([sm]) .sm-text-right{text-align:right}:host([md]) .md-text-left{text-align:left}.align-middle{vertical-align:middle}.font-lumo{font-family:var(--lumo-font-family, -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol")}.text-xxs{font-size:var(--lumo-font-size-xxs,.75rem)}.text-xs{font-size:var(--lumo-font-size-xs,.8125rem)}.text-s{font-size:var(--lumo-font-size-s,.875rem)}.text-m{font-size:var(--lumo-font-size-m,1rem)}.text-l{font-size:var(--lumo-font-size-l,1.125rem)}.text-xl{font-size:var(--lumo-font-size-xl,1.375rem)}.text-xxl{font-size:var(--lumo-font-size-xxl,1.75rem)}.text-xxxl{font-size:var(--lumo-font-size-xxxl,2.5rem)}:host([sm]) .sm-text-m{font-size:var(--lumo-font-size-m,1rem)}:host([sm]) .sm-text-l{font-size:var(--lumo-font-size-l,1.125rem)}.font-normal{font-weight:400}.font-medium{font-weight:500}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}:host([sm]) .sm-normal-case{text-transform:none}.ordinal{--tw-ordinal:var(--tw-empty, );/*!*//*!*/--tw-slashed-zero:var(--tw-empty, );/*!*//*!*/--tw-numeric-figure:var(--tw-empty, );/*!*//*!*/--tw-numeric-spacing:var(--tw-empty, );/*!*//*!*/--tw-numeric-fraction:var(--tw-empty, );/*!*//*!*/font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.ordinal{--tw-ordinal:ordinal}.leading-none{line-height:1}.leading-xs{line-height:var(--lumo-line-height-xs,1.25)}.leading-s{line-height:var(--lumo-line-height-s,1.375)}.leading-m{line-height:var(--lumo-line-height-m,1.625)}.tracking-wide{letter-spacing:.025em}.tracking-wider{letter-spacing:.05em}.tracking-widest{letter-spacing:.1em}:host([sm]) .sm-tracking-normal{letter-spacing:0}.text-transparent{color:transparent}.text-base{color:var(--lumo-base-color,#fff)}.text-tint{color:var(--lumo-tint,#fff)}.text-contrast-30{color:var(--lumo-contrast-30pct,hsla(214,50%,22%,.26))}.text-contrast-70{color:var(--lumo-contrast-70pct,hsla(214,42%,18%,.72))}.text-contrast{color:var(--lumo-contrast,#182433)}.text-primary{color:var(--lumo-primary-text-color,#1675f2)}.text-primary-contrast{color:var(--lumo-primary-contrast-color,#fff)}.text-error{color:var(--lumo-error-text-color,#f52318)}.text-error-contrast{color:var(--lumo-error-contrast-color,#fff)}.text-success{color:var(--lumo-success-text-color,#00a344)}.text-success-contrast{color:var(--lumo-success-contrast-color,#fff)}.text-header{color:var(--lumo-header-text-color,#182433)}.text-body{color:var(--lumo-body-text-color,hsla(214,40%,16%,.94))}.text-disabled{color:var(--lumo-disabled-text-color,hsla(214,50%,22%,.26))}.text-secondary{color:var(--lumo-secondary-text-color,hsla(214,42%,18%,.72))}.text-tertiary{color:var(--lumo-tertiary-text-color,hsla(214,45%,20%,.5))}:host([sm]) .sm-text-body{color:var(--lumo-body-text-color,hsla(214,40%,16%,.94))}@media (hover:hover){.group:hover .group-hover-text-body{color:var(--lumo-body-text-color,hsla(214,40%,16%,.94))}}@media (hover:hover){.hover-text-primary:hover{color:var(--lumo-primary-text-color,#1675f2)}.hover-text-primary-contrast:hover{color:var(--lumo-primary-contrast-color,#fff)}.hover-text-error:hover{color:var(--lumo-error-text-color,#f52318)}.hover-text-success-contrast:hover{color:var(--lumo-success-contrast-color,#fff)}.hover-text-body:hover{color:var(--lumo-body-text-color,hsla(214,40%,16%,.94))}.hover-text-secondary:hover{color:var(--lumo-secondary-text-color,hsla(214,42%,18%,.72))}}.focus-text-body:focus{color:var(--lumo-body-text-color,hsla(214,40%,16%,.94))}.disabled-text-tertiary:disabled{color:var(--lumo-tertiary-text-color,hsla(214,45%,20%,.5))}@media (hover:hover){.hover-underline:hover{text-decoration:underline}}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-25{opacity:.25}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.opacity-100{opacity:1}:host([sm]) .sm-opacity-0{opacity:0}@media (hover:hover){.group:hover .group-hover-opacity-80{opacity:.8}}@media (hover:hover){.hover-opacity-75:hover{opacity:.75}}.focus-opacity-100:focus{opacity:1}.disabled-opacity-50:disabled{opacity:.5}*,::after,::before{--tw-shadow:0 0 #0000}.shadow-xs{--tw-shadow:var(--lumo-box-shadow-xs, 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.4));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-m{--tw-shadow:var(--lumo-box-shadow-m, 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12), 0 5px 5px -3px rgba(0, 0, 0, 0.4));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-xxl{--tw-shadow:var(--lumo-box-shadow-xxl, 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12), 0 11px 15px -7px rgba(0, 0, 0, 0.4));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}@media (hover:hover){.group:hover .group-hover-shadow-s{--tw-shadow:var(--lumo-box-shadow-s, 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12), 0 3px 5px -1px rgba(0, 0, 0, 0.4));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}}.focus-within-shadow-outline:focus-within{--tw-shadow:0 0 0 2px var(--lumo-primary-color-50pct, hsla(214, 90%, 52%, 0.5));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.focus-within-shadow-outline-success:focus-within{--tw-shadow:0 0 0 2px var(--lumo-success-color-50pct, hsla(145, 76%, 44%, 0.55));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.focus-within-shadow-outline-error:focus-within{--tw-shadow:0 0 0 2px var(--lumo-error-color-50pct, hsla(3, 100%, 60%, 0.1));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.focus-shadow-outline:focus{--tw-shadow:0 0 0 2px var(--lumo-primary-color-50pct, hsla(214, 90%, 52%, 0.5));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.focus-outline-none:focus{outline:2px solid transparent;outline-offset:2px}*,::after,::before{--tw-ring-inset:var(--tw-empty, );/*!*//*!*/--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59, 130, 246, 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000}.ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-within-ring-1:focus-within{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-within-ring-2:focus-within{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-inset{--tw-ring-inset:inset}.focus-ring-inset:focus{--tw-ring-inset:inset}.ring-contrast-10{--tw-ring-color:var(--lumo-contrast-10pct, hsla(214, 57%, 24%, 0.1))}.ring-primary-50{--tw-ring-color:var(--lumo-primary-color-50pct, hsla(214, 90%, 52%, 0.5))}.ring-error-50{--tw-ring-color:var(--lumo-error-color-50pct, hsla(3, 100%, 60%, 0.5))}.ring-error{--tw-ring-color:var(--lumo-error-color, hsl(3, 100%, 61%))}.ring-success-50{--tw-ring-color:var(--lumo-success-color-50pct, hsla(145, 76%, 44%, 0.55))}.ring-success{--tw-ring-color:var(--lumo-success-color, hsl(145, 80%, 42%))}.focus-within-ring-primary-50:focus-within{--tw-ring-color:var(--lumo-primary-color-50pct, hsla(214, 90%, 52%, 0.5))}@media (hover:hover){.hover-ring-contrast-20:hover{--tw-ring-color:var(--lumo-contrast-20pct, hsla(214, 53%, 23%, 0.16))}}.focus-ring-primary-50:focus{--tw-ring-color:var(--lumo-primary-color-50pct, hsla(214, 90%, 52%, 0.5))}.focus-ring-primary:focus{--tw-ring-color:var(--lumo-primary-color, hsl(214, 90%, 52%))}.ring-offset-2{--tw-ring-offset-width:2px}.ring-offset-4{--tw-ring-offset-width:4px}.ring-offset-base{--tw-ring-offset-color:var(--lumo-base-color, #fff)}.filter{--tw-blur:var(--tw-empty, );/*!*//*!*/--tw-brightness:var(--tw-empty, );/*!*//*!*/--tw-contrast:var(--tw-empty, );/*!*//*!*/--tw-grayscale:var(--tw-empty, );/*!*//*!*/--tw-hue-rotate:var(--tw-empty, );/*!*//*!*/--tw-invert:var(--tw-empty, );/*!*//*!*/--tw-saturate:var(--tw-empty, );/*!*//*!*/--tw-sepia:var(--tw-empty, );/*!*//*!*/--tw-drop-shadow:var(--tw-empty, );/*!*//*!*/filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.blur{--tw-blur:blur(8px)}.grayscale{--tw-grayscale:grayscale(100%)}.backdrop-filter{--tw-backdrop-blur:var(--tw-empty, );/*!*//*!*/--tw-backdrop-brightness:var(--tw-empty, );/*!*//*!*/--tw-backdrop-contrast:var(--tw-empty, );/*!*//*!*/--tw-backdrop-grayscale:var(--tw-empty, );/*!*//*!*/--tw-backdrop-hue-rotate:var(--tw-empty, );/*!*//*!*/--tw-backdrop-invert:var(--tw-empty, );/*!*//*!*/--tw-backdrop-opacity:var(--tw-empty, );/*!*//*!*/--tw-backdrop-saturate:var(--tw-empty, );/*!*//*!*/--tw-backdrop-sepia:var(--tw-empty, );/*!*//*!*/backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:150ms}.transition{transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:150ms}.transition-colors{transition-property:background-color,border-color,color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:150ms}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:150ms}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:150ms}.duration-100{transition-duration:.1s}.duration-150{transition-duration:150ms}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.duration-700{transition-duration:.7s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.border-radius-overflow-fix{-webkit-mask-image:-webkit-radial-gradient(white,#000)}.grid-rows-auto{grid-auto-rows:1fr}.icon-inline{--iron-icon-height:1em;--iron-icon-width:1em}.bg-blurred{backdrop-filter:blur(25px);background:var(--lumo-tint-80pct)}.max-w-modal{max-width:28rem}.max-w-modal-wide{max-width:50rem}.w-narrow-modal{width:18rem}.snap-x-mandatory{scroll-snap-type:x mandatory}.snap-start{scroll-snap-align:start}:host([sm]) .sm-max-w-modal{max-width:28rem}:host([sm]) .sm-max-w-modal-wide{max-width:50rem}`))]}};Ht("vaadin-date-time-picker",h(Dt||(Dt=Wt`vaadin-date-time-picker-custom-field{--lumo-text-field-size:auto;padding:0}vaadin-date-time-picker-custom-field::part(label){padding-bottom:.5em}`))),Ht("vaadin-date-time-picker-date-picker",h(Vt||(Vt=Wt`:host{--lumo-text-field-size:auto}vaadin-date-time-picker-date-text-field{padding:0}`))),Ht("vaadin-date-time-picker-time-picker",h($t||($t=Wt`:host{--lumo-text-field-size:auto}vaadin-date-time-picker-time-text-field{padding:0}`))),Ht("vaadin-button",h(Bt||(Bt=Wt`:host([theme~=primary]){font-weight:500}`)));class Xt extends(At(mt(Kt(f)))){}let Jt="";try{Jt="https://static.www.foxycart.com/beta/foxy-elements/0.3.0"}catch(e){}class Yt extends Xt{constructor(e="global"){super(),this.__lang=this._i18n.options.fallbackLng[0],this.__ns=this._i18n.options.fallbackNS[0],this.ns=e,this._whenI18nReady.then((()=>this.requestUpdate()))}static get properties(){return l(l({},super.properties),{},{lang:{type:String,noAccessor:!0},ns:{type:String,noAccessor:!0}})}get lang(){return this.__lang}set lang(e){e&&"undefined"!==e&&(this.__lang=e,this._i18n.loadLanguages(e).then((()=>{this.__lang===e&&this.requestUpdate()})))}get ns(){return this.__ns}set ns(e){this.__ns=e,this._i18n.loadNamespaces(e).then((()=>{this.__ns===e&&this.requestUpdate()}))}static __initI18N(){return this.__i18n=Me.createInstance(),this.__i18n.use(Ze),this.__whenI18NReady=this.__i18n.init({ns:["global"],supportedLngs:["nl","en","es","sv","fi","fr","de","zh","no","it","pl","se"],interpolation:{format:Yt.__f},fallbackLng:"en",fallbackNS:"global",defaultNS:"global",detection:{order:["querystring","navigator","htmlTag","path","subdomain"],caches:[]},backend:{loadPath:`${Jt}/translations/{{ns}}/{{lng}}.json`}}),this.__whenI18NReady.then((()=>this.__isI18NReady=!0)),this.__i18n}get _i18n(){var e;return null!==(e=Yt.__i18n)&&void 0!==e?e:Yt.__initI18N()}get _whenI18nReady(){return Yt.__whenI18NReady}get _isI18nReady(){return Yt.__isI18NReady}get _t(){const e=[this.__ns,this._i18n.options.fallbackNS];return this._i18n.getFixedT(this.__lang,e)}}Yt.__fLowercase=e=>e.toLowerCase(),Yt.__fList=e=>e.map(((e,t,r)=>{if(0===t)return e;return`${t===r.length-1?" $t(and) ":","} ${e}`})).join(""),Yt.__f=(...e)=>{var t,r;const o=e[0];return(null!==(r=null===(t=e[1])||void 0===t?void 0:t.split(" "))&&void 0!==r?r:[]).reduce(((e,t)=>{switch(t){case"lowercase":return Yt.__fLowercase(e);case"list":return Yt.__fList(e);default:return e}}),o)},Yt.__isI18NReady=!1;const Gt=(e,t="")=>class extends e{constructor(){super(...arguments),this.lang="",this.ns=t,this.t=(e,t)=>{const r=customElements.get("foxy-i18n");if(!r)return e;const o=[...this.ns.split(" ").reverse().map((e=>e.trim())).filter((e=>e.length>0)).reverse().map(((t,r,o)=>`${t}:${[...o.slice(r+1),e].join(".")}`)),`shared:${e}`];return r.i18next.t(o,l({lng:this.lang},t)).toString()}}static get inferredProperties(){return[...super.inferredProperties,"lang","ns"]}static get properties(){return l(l({},super.properties),{},{lang:{type:String},ns:{type:String}})}static get defaultNS(){return t}connectedCallback(){super.connectedCallback();const e=customElements.get("foxy-i18n");this.__untrackTranslations=null==e?void 0:e.onTranslationChange((()=>this.requestUpdate()))}updated(e){super.updated(e);const t=customElements.get("foxy-i18n");t&&(e.has("lang")&&t.i18next.loadLanguages(this.lang),e.has("ns")&&t.i18next.loadNamespaces(this.ns.split(" ")))}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this.__untrackTranslations)||void 0===e||e.call(this)}applyInferredProperties(e){if(super.applyInferredProperties(e),null===this.infer)return;const r=e.get("lang"),o=e.get("ns");this.lang=null!=r?r:"",this.ns=o?`${o} ${this.infer}`.trim():t}};export{pt as A,B as D,mt as R,At as S,Kt as T,Gt as a,_ as b,z as c,F as d,T as e,I as f,A as g,j as h,Me as i,P as j,x as k,U as l,N as m,H as n,M as o,S as p,O as q,k as r,E as s,R as t,L as u,C as v,Xt as w,Yt as x,Ht as y,lt as z};
@@ -1 +0,0 @@
1
- import{A as e,al as t,d as s}from"./shared-307262a1.js";var n=function(e,t,s,n){return new(s||(s=Promise))((function(i,o){function r(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s((function(e){e(t)}))).then(r,a)}c((n=n.apply(e,t||[])).next())}))};class i extends e{constructor(e){super(Object.assign(Object.assign({},e),{fetch:(...e)=>this.__fetch(...e)}))}signIn(t){return n(this,void 0,void 0,(function*(){i.v8n.credentials.check(t);const s=yield this.fetch(new URL("./authenticate",this.base).toString(),{body:JSON.stringify(t),method:"POST"});if(!s.ok){const t=401===s.status?"UNAUTHORIZED":"UNKNOWN";throw new e.AuthError({code:t})}{const e=yield s.json(),t=Object.assign(Object.assign({},e),{date_created:(new Date).toISOString()});this.storage.setItem(i.SESSION,JSON.stringify(t))}}))}sendPasswordResetEmail(t){return n(this,void 0,void 0,(function*(){i.v8n.email.check(t.email);if(!(yield this.fetch(new URL("./forgot_password",this.base).toString(),{body:JSON.stringify(t),method:"POST"})).ok)throw new e.AuthError({code:"UNKNOWN"})}))}signOut(){return n(this,void 0,void 0,(function*(){if(!(yield this.fetch(new URL("./authenticate",this.base).toString(),{method:"DELETE"})).ok)throw new e.AuthError({code:"UNKNOWN"});this.storage.clear(),this.cache.clear()}))}__fetch(e,t){var o;return n(this,void 0,void 0,(function*(){let n=JSON.parse(null!==(o=this.storage.getItem(i.SESSION))&&void 0!==o?o:"null");const r=new s.Request(e,t);if(null!==n){new Date(n.date_created).getTime()+1e3*n.expires_in<Date.now()?(this.console.info("Session has expired, signing out."),this.storage.clear(),this.cache.clear(),n=null):r.headers.set("Authorization",`Bearer ${n.session_token}`)}r.headers.set("Content-Type","application/json"),r.headers.set("FOXY-API-VERSION","1"),this.console.trace(`${r.method} ${r.url}`);const a=yield s.fetch(r);if(n&&a.ok){const e=Object.assign(Object.assign({},n),{date_created:(new Date).toISOString()});this.storage.setItem(i.SESSION,JSON.stringify(e))}return a}))}}i.SESSION="session",i.v8n=Object.assign({},e.v8n,{credentials:t().schema({email:t().string(),newPassword:t().optional(t().string()),password:t().string()}),email:t().string()});let o=/(-?(?:\d+\.?\d*|\d*\.?\d+)(?:e[-+]?\d+)?)\s*([a-zµμ]*)/gi;function r(e="",t="ms"){var s=null;return(e=e.replace(/(\d),(\d)/g,"$1$2")).replace(o,(function(e,t,n){(n=r[n]||r[n.toLowerCase().replace(/s$/,"")])&&(s=(s||0)+parseFloat(t,10)*n)})),s&&s/r[t]}r.nanosecond=r.ns=1e-6,r["µs"]=r["μs"]=r.us=r.microsecond=.001,r.millisecond=r.ms=1,r.second=r.sec=r.s=1e3*r.ms,r.minute=r.min=r.m=60*r.s,r.hour=r.hr=r.h=60*r.m,r.day=r.d=24*r.h,r.week=r.wk=r.w=7*r.d,r.month=r.b=30.4375*r.d,r.year=r.yr=r.y=365.25*r.d;export{i as A,r as p};
@@ -1,15 +0,0 @@
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,i){var a=new RegExp(t,n);return e.set(a,i||e.get(t)),o(a,r.prototype)}function a(t,n){var r=e.get(n);return Object.keys(r).reduce((function(e,n){return e[n]=t[r[n]],e}),Object.create(null))}return i(r,RegExp),r.prototype.exec=function(e){var n=t.exec.call(this,e);return n&&(n.groups=a(n,this)),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){return"$"+i[e]})))}if("function"==typeof r){var o=this;return t[Symbol.replace].call(this,n,(function(){var t=arguments;return"object"!=typeof t[t.length-1]&&(t=[].slice.call(t)).push(a(t,o)),r.apply(this,t)}))}return t[Symbol.replace].call(this,n,r)},n.apply(this,arguments)}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){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&&o(t,e)}function o(t,e){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},o(t,e)}function a(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 s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function c(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function u(t){var e={exports:{}};return t(e,e.exports),e.exports}function l(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.')}var f=u((function(t,e){var n="undefined"!=typeof self?self:s,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 j=[301,302,303,307,308];w.redirect=function(t,e){if(-1===j.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 x(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)}))}x.polyfill=!0,t.fetch||(t.fetch=x,t.Headers=h,t.Request=_,t.Response=w),e.Headers=h,e.Request=_,e.Response=w,e.fetch=x,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}));function h(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var p="object"==typeof global&&global&&global.Object===Object&&global,d="object"==typeof self&&self&&self.Object===Object&&self,y=p||d||Function("return this")(),v=y.Symbol,g=Object.prototype,b=g.hasOwnProperty,_=g.toString,m=v?v.toStringTag:void 0;var w=Object.prototype.toString;var j=v?v.toStringTag:void 0;function x(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":j&&j in Object(t)?function(t){var e=b.call(t,m),n=t[m];try{t[m]=void 0;var r=!0}catch(t){}var i=_.call(t);return r&&(e?t[m]=n:delete t[m]),i}(t):function(t){return w.call(t)}(t)}function O(t){return null!=t&&"object"==typeof t}function S(t){return"symbol"==typeof t||O(t)&&"[object Symbol]"==x(t)}
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 E=function(){return E=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},E.apply(this,arguments)};function k(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 A(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 P(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 T(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(P(arguments[e]));return t}var R={};function D(t){return Object.keys(t)}function N(t,e,n){void 0===n&&(n=".");var r=C(t,n),i=C(e,n);return Z(i)?!!Z(r)&&i===r:Z(r)?r in i:D(r).every((function(t){return t in i&&N(r[t],i[t])}))}function I(t){try{return Z(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 L(t,e){try{return K(t)?t:t.toString().split(e)}catch(e){throw new Error("'"+t+"' is not a valid state path.")}}function C(t,e){return"object"==typeof(n=t)&&"value"in n&&"context"in n&&"event"in n&&"_event"in n?t.value:K(t)?F(t):"string"!=typeof t?t:F(L(t,e));var n}function F(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 U(t,e){for(var n={},r=D(t),i=0;i<r.length;i++){var o=r[i];n[o]=e(t[o],o,t,i)}return n}function M(t,e,n){var r,i,o={};try{for(var a=A(D(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 $=function(t){return function(e){var n,r,i=e;try{for(var o=A(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 B(t){return t?Z(t)?[[t]]:z(D(t).map((function(e){var n=t[e];return"string"==typeof n||n&&Object.keys(n).length?B(t[e]).map((function(t){return[e].concat(t)})):[[e]]}))):[[]]}function z(t){var e;return(e=[]).concat.apply(e,T(t))}function V(t){return K(t)?t:[t]}function W(t){return void 0===t?[]:V(t)}function q(t,e,n){var r,i;if(Q(t))return t(e,n.data);var o={};try{for(var a=A(Object.keys(t)),s=a.next();!s.done;s=a.next()){var c=s.value,u=t[c];Q(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 H(t){return t instanceof Promise||!(null===t||!Q(t)&&"object"!=typeof t||!Q(t.then))}function G(t,e){var n,r,i=P([[],[]],2),o=i[0],a=i[1];try{for(var s=A(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 J(t,e){return U(t.states,(function(t,n){if(t){var r=(Z(e)?void 0:e[n])||(t?t.current:void 0);if(r)return{current:r,states:J(t,r)}}}))}function K(t){return Array.isArray(t)}function Q(t){return"function"==typeof t}function Z(t){return"string"==typeof t}function X(t,e){if(t)return Z(t)?{type:"xstate.guard",name:t,predicate:e?e[t]:void 0}:Q(t)?{type:"xstate.guard",name:t.name,predicate:t}:t}function Y(t){try{return"subscribe"in t&&Q(t.subscribe)}catch(t){return!1}}var tt,et,nt=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function rt(t){try{return"__xstatenode"in t}catch(t){return!1}}function it(t){return!!t&&"function"==typeof t.send}function ot(t,e){return Z(t)||"number"==typeof t?E({type:t},e):t}function at(t,e){if(!Z(t)&&"$$type"in t&&"scxml"===t.$$type)return t;var n=ot(t);return E({name:n.type,data:n,$$type:"scxml",type:"external"},e)}function st(t,e){return V(e).map((function(e){return void 0===e||"string"==typeof e||rt(e)?{target:e,event:t}:E(E({},e),{event:t})}))}function ct(t,e,n,r,i){var o=t.options.guards,a={state:i,cond:e,_event:r};if("xstate.guard"===e.type)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 ut(t){return"string"==typeof t?{type:t}:t}function lt(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"}(tt||(tt={})),function(t){t.Parent="#_parent",t.Internal="#_internal"}(et||(et={}));var ft=tt.Start,ht=tt.Stop,pt=tt.Raise,dt=tt.Send,yt=tt.Cancel,vt=tt.NullEvent,gt=tt.Assign;tt.After,tt.DoneState;var bt=tt.Log,_t=tt.Init,mt=tt.Invoke;tt.ErrorExecution;var wt=tt.ErrorPlatform,jt=tt.ErrorCustom,xt=tt.Update,Ot=tt.Choose,St=tt.Pure,Et=at({type:_t});function kt(t,e){return e&&e[t]||void 0}function At(t,e){var n;if(Z(t)||"number"==typeof t){var r=kt(t,e);n=Q(r)?{type:t,exec:r}:r||{type:t,exec:void 0}}else if(Q(t))n={type:t.name||t.toString(),exec:t};else{if(Q(r=kt(t.type,e)))n=E(E({},t),{exec:r});else if(r){var i=r.type||t.type;n=E(E(E({},r),t),{type:i})}else n=t}return Object.defineProperty(n,"toString",{value:function(){return n.type},enumerable:!1,configurable:!0}),n}var Pt=function(t,e){return t?(K(t)?t:[t]).map((function(t){return At(t,e)})):[]};function Tt(t){var e=At(t);return E(E({id:Z(t)?t:e.id},e),{type:e.type})}function Rt(t){return Z(t)?{type:pt,event:t}:Dt(t,{to:et.Internal})}function Dt(t,e){return{to:e?e.to:void 0,type:dt,event:Q(t)?t:ot(t),delay:e?e.delay:void 0,id:e&&void 0!==e.id?e.id:Q(t)?t.name:I(t)}}function Nt(t,e){return Dt(t,E(E({},e),{to:et.Parent}))}function It(){return Nt(xt)}function Lt(t,e){return Dt(t,E(E({},e),{to:function(t,e,n){return n._event.origin}}))}var Ct=function(t,e){return{context:t,event:e}};function Ft(t,e){return void 0===t&&(t=Ct),{type:bt,label:e,expr:t}}var Ut=function(t){return{type:yt,sendId:t}};function Mt(t){var e=Tt(t);return{type:tt.Start,activity:e,exec:void 0}}function $t(t){var e=Q(t)?t:Tt(t);return{type:tt.Stop,activity:e,exec:void 0}}var Bt=function(t){return{type:gt,assignment:t}};function zt(t,e){var n=e?"#"+e:"";return tt.After+"("+t+")"+n}function Vt(t,e){var n=tt.DoneState+"."+t,r={type:n,data:e,toString:function(){return n}};return r}function Wt(t,e){var n=tt.DoneInvoke+"."+t,r={type:n,data:e,toString:function(){return n}};return r}function qt(t,e){var n=tt.ErrorPlatform+"."+t,r={type:n,data:e,toString:function(){return n}};return r}function Ht(t){return{type:tt.Pure,get:t}}function Gt(t,e){return Dt((function(t,e){return e}),E(E({},e),{to:t}))}function Jt(t,e){return Nt((function(e,n,r){return{type:jt,data:Q(t)?t(e,n,r):t}}),E(E({},e),{to:et.Parent}))}function Kt(t){return{type:tt.Choose,conds:t}}function Qt(t,e,n,r,i){var o=P(G(i,(function(t){return t.type===gt})),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(Q(a))c=a(t,e.data,s);else try{for(var u=A(D(a)),l=u.next();!l.done;l=u.next()){var f=l.value,h=a[f];c[f]=Q(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=z(s.map((function(n){var i;switch(n.type){case pt:return{type:pt,_event:at(n.event)};case dt:var o=function(t,e,n,r){var i,o={_event:n},a=at(Q(t.event)?t.event(e,n.data,o):t.event);if(Z(t.delay)){var s=r&&r[t.delay];i=Q(s)?s(e,n.data,o):s}else i=Q(t.delay)?t.delay(e,n.data,o):t.delay;var c=Q(t.to)?t.to(e,n.data,o):t.to;return E(E({},t),{to:c,_event:a,event:a.data,delay:i})}(n,c,r,t.options.delays);return o;case bt:return function(t,e,n){return E(E({},t),{value:Z(t.expr)?t.expr:t.expr(e,n.data,{_event:n})})}(n,c,r);case Ot:if(!(s=null===(i=n.conds.find((function(n){var i=X(n.cond,t.options.guards);return!i||ct(t,i,c,r,e)})))||void 0===i?void 0:i.actions))return[];var a=Qt(t,e,c,r,Pt(W(s),t.options.actions));return c=a[1],a[0];case St:var s;if(!(s=n.get(c,r.data)))return[];a=Qt(t,e,c,r,Pt(W(s),t.options.actions));return c=a[1],a[0];case ht:return function(t,e,n){var r=Q(t.activity)?t.activity(e,n.data):t.activity,i="string"==typeof r?{id:r}:r;return{type:tt.Stop,activity:i}}(n,c,r);default:return At(n,t.options.actions)}})));return[u,c]}var Zt=function(t){return"atomic"===t.type||"final"===t.type};function Xt(t){return D(t.states).map((function(e){return t.states[e]}))}function Yt(t){var e=[t];return Zt(t)?e:e.concat(z(Xt(t).map(Yt)))}function te(t,e){var n,r,i,o,a,s,c,u,l=ne(new Set(t)),f=new Set(e);try{for(var h=A(f),p=h.next();!p.done;p=h.next())for(var d=(x=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=ne(f);try{for(var v=A(f),g=v.next();!g.done;g=v.next()){if("compound"!==(x=g.value).type||y.get(x)&&y.get(x).length){if("parallel"===x.type)try{for(var b=(a=void 0,A(Xt(x))),_=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(x)?l.get(x).forEach((function(t){return f.add(t)})):x.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=A(f),j=w.next();!j.done;j=w.next()){var x;for(d=(x=j.value).parent;d&&!f.has(d);)f.add(d),d=d.parent}}catch(t){c={error:t}}finally{try{j&&!j.done&&(u=w.return)&&u.call(w)}finally{if(c)throw c.error}}return f}function ee(t,e){var n=e.get(t);if(!n)return{};if("compound"===t.type){var r=n[0];if(!r)return{};if(Zt(r))return r.key}var i={};return n.forEach((function(t){i[t.key]=ee(t,e)})),i}function ne(t){var e,n,r=new Map;try{for(var i=A(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 re(t,e){return ee(t,ne(te([t],e)))}function ie(t,e){return Array.isArray(t)?t.some((function(t){return t===e})):t instanceof Set&&t.has(e)}function oe(t,e){return"compound"===e.type?Xt(e).some((function(e){return"final"===e.type&&ie(t,e)})):"parallel"===e.type&&Xt(e).every((function(e){return oe(t,e)}))}function ae(t,e){if(t===e)return!0;if(void 0===t||void 0===e)return!1;if(Z(t)||Z(e))return t===e;var n=D(t),r=D(e);return n.length===r.length&&n.every((function(n){return ae(t[n],e[n])}))}function se(t){return!Z(t)&&("value"in t&&"history"in t)}function ce(t,e){var n=t.exec;return E(E({},t),{exec:void 0!==n?function(){return n(e.context,e.event,{action:t,state:e,_event:e._event})}:void 0})}var ue=function(){function t(t){var e=this;this.actions=[],this.activities=R,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||R,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,z(T(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:Et,_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=Et;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="."),Z(t))return[t];var r=D(t);return r.concat.apply(r,T(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,k(t,["configuration","transitions"])},t.prototype.matches=function(t){return N(t,this.value)},t}(),le=function(t,e){return e(t)};function fe(t){return{id:t,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},toJSON:function(){return{id:t}}}}function he(t,e,n,r){var i,o=ut(t.src),a=null===(i=null==e?void 0:e.options.services)||void 0===i?void 0:i[o.type],s=t.data?q(t.data,n,r):void 0,c=a?function(t,e,n){var r=fe(e);r.deferred=!0,rt(t)&&(r.state=le(void 0,(function(){return(n?t.withContext(n):t).initialState})));return r}(a,t.id,s):fe(t.id);return c.meta=t,c}function pe(t){return function(t){try{return"function"==typeof t.send}catch(t){return!1}}(t)&&"id"in t}function de(t){if("string"==typeof t){var e={type:t,toString:function(){return t}};return e}return t}function ye(t){return E(E({type:mt},t),{toJSON:function(){t.onDone,t.onError;var e=k(t,["onDone","onError"]);return E(E({},e),{type:mt,src:de(t.src)})}})}var ve={},ge=function(t){return"#"===t[0]},be=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||T([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&&D(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.initial=this.config.initial,this.states=this.config.states?U(this.config.states,(function(e,n){var r,o=new t(e,{_parent:i,_key:n});return Object.assign(i.idMap,E(((r={})[o.id]=o,r),o.idMap)),o})):ve;var o=0;!function t(e){var n,r;e.order=o++;try{for(var i=A(Xt(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=W(this.config.entry||this.config.onEntry).map((function(t){return At(t)})),this.onExit=W(this.config.exit||this.config.onExit).map((function(t){return At(t)})),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=W(this.config.invoke).map((function(t,e){var n,r;if(rt(t))return i.machine.options.services=E(((n={})[t.id]=t,n),i.machine.options.services),ye({src:t.id,id:t.id});if(Z(t.src))return ye(E(E({},t),{id:t.id||t.src,src:t.src}));if(rt(t.src)||Q(t.src)){var o=i.id+":invocation["+e+"]";return i.machine.options.services=E(((r={})[o]=t.src,r),i.machine.options.services),ye(E(E({id:o},t),{src:o}))}var a=t.src;return ye(E(E({id:a.type},t),{src:a}))})),this.activities=W(this.config.activities).concat(this.invoke).map((function(t){return Tt(t)})),this.transition=this.transition.bind(this)}return t.prototype._init=function(){this.__cache.transitions||Yt(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:E(E({},i),e.actions),activities:E(E({},o),e.activities),guards:E(E({},a),e.guards),services:E(E({},s),e.services),delays:E(E({},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:U(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}));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=zt(Q(e)?t.id+":delay["+n+"]":e,t.id);return t.onEntry.push(Dt(r,{delay:e})),t.onExit.push(Ut(r)),r};return(K(e)?e.map((function(t,e){var r=n(t.delay,e);return E(E({},t),{event:r})})):z(D(e).map((function(t,r){var i=e[t],o=Z(i)?{target:i}:i,a=isNaN(+t)?t:+t,s=n(a,r);return W(o).map((function(t){return E(E({},t),{event:s,delay:a})}))})))).map((function(e){var n=e.delay;return E(E({},t.formatTransition(e)),{delay:n})}))},t.prototype.getStateNodes=function(t){var e,n=this;if(!t)return[];var r=t instanceof ue?t.value:C(t,this.delimiter);if(Z(r)){var i=this.getStateNode(r).initial;return void 0!==i?this.getStateNodes(((e={})[r]=i,e)):[this.states[r]]}var o=D(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=I(t);return this.events.includes(e)},t.prototype.resolveState=function(t){var e=Array.from(te([],this.getStateNodes(t.value)));return new ue(E(E({},t),{value:this.resolve(t.value),configuration:e,done:oe(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=D(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=A(D(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=D(o).map((function(t){return o[t]})),h=z(f.map((function(t){return t.transitions})));if(!f.some((function(t){return t.transitions.length>0})))return this.next(e,n);var p=z(f.map((function(t){return t.entrySet}))),d=z(D(o).map((function(t){return o[t].configuration})));return{transitions:h,entrySet:p,exitSet:z(f.map((function(t){return t.exitSet}))),configuration:d,source:e,actions:z(D(o).map((function(t){return o[t].actions})))}},t.prototype._transition=function(t,e,n){return Z(t)?this.transitionLeafNode(t,e,n):1===D(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=A(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||(Z(p)&&ge(p)?t.matches(C(this.getStateNodeById(p).path,this.delimiter)):N(C(p,this.delimiter),$(this.path.slice(0,-2))(t.value))),v=!1;try{v=!h||ct(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,T(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=z(c.map((function(e){return o.getRelativeStateNodes(e,t.historyValue)}))),b=!!i.internal;return{transitions:[i],entrySet:b?[]:z(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=te([],r?this.getStateNodes(r.value):[this]),u=t.configuration.length?te(c,t.configuration):c;try{for(var l=A(u),f=l.next();!f.done;f=l.next()){ie(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=A(c),p=h.next();!p.done;p=h.next()){var d;ie(u,d=p.value)&&!ie(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=z(t.entrySet.map((function(r){var i=[];if("final"!==r.type)return i;var o=r.parent;if(!o.parent)return i;i.push(Vt(r.id,r.doneData),Vt(o.id,r.doneData?q(r.doneData,e,n):void 0));var a=o.parent;return"parallel"===a.type&&Xt(a).every((function(e){return oe(t.configuration,e)}))&&i.push(Vt(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=P([z(Array.from(v).map((function(t){return T(t.activities.map((function(t){return Mt(t)})),t.onEntry)}))).concat(y.map(Rt)),z(Array.from(g).map((function(t){return T(t.onExit,t.activities.map((function(t){return $t(t)})))})))],2),_=b[0],m=b[1];return Pt(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=at(e);if(t instanceof ue)r=void 0===n?t:this.resolveState(ue.from(t,n));else{var a=Z(t)?this.resolve(F(this.getResolvedPath(t))):this.resolve(t),s=n||this.machine.context;r=this.resolveState(ue.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=te([],this.getStateNodes(r.value)),l=c.configuration.length?te(u,c.configuration):u;return c.configuration=T(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,T(i)),t},t.prototype.resolveTransition=function(t,e,n,r){var i,o,a=this;void 0===n&&(n=Et),void 0===r&&(r=this.machine.context);var s=t.configuration,c=!e||t.transitions.length>0?re(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?E({},e.activities):{};try{for(var p=A(f),d=p.next();!d.done;d=p.next()){var y=d.value;y.type===ft?h[y.activity.id||y.activity.type]=y:y.type===ht&&(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=P(Qt(this,e,l,n,f),2),_=b[0],m=b[1],w=P(G(_,(function(t){return t.type===pt||t.type===dt&&t.to===et.Internal})),2),j=w[0],x=w[1],O=_.filter((function(t){var e;return t.type===ft&&(null===(e=t.activity)||void 0===e?void 0:e.type)===mt})),S=O.reduce((function(t,e){return t[e.activity.id]=he(e.activity,a.machine,m,n),t}),e?E({},e.children):{}),k=c?t.configuration:e?e.configuration:[],T=k.reduce((function(t,e){return void 0!==e.meta&&(t[e.id]=e.meta),t}),{}),R=oe(k,this),D=new ue({value:c||e.value,context:m,_event:n,_sessionid:e?e._sessionid:null,historyValue:c?u?(v=u,g=c,{current:g,states:J(v,g)}):void 0:e?e.historyValue:void 0,history:!c||t.source?e:void 0,actions:c?x:[],activities:c?h:e?e.activities:{},meta:c?T:e?e.meta:void 0,events:[],configuration:k,transitions:t.transitions,children:S,done:R}),N=l!==m;D.changed=n.name===xt||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:vt},n));j.length;){var C=j.shift();L=this.resolveRaisedTransition(L,C._event,n)}var F=L.changed||(I?!!L.actions.length||N||typeof I.value!=typeof L.value||!ae(L.value,I.value):void 0);return L.changed=F,L.history=I,L},t.prototype.getStateNode=function(t){if(ge(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=ge(t)?t.slice("#".length):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&&ge(t))try{return this.getStateNodeById(t.slice(1))}catch(t){}for(var e=L(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||ve;switch(this.type){case"parallel":return U(this.initialStateValue,(function(e,r){return e?n.getStateNode(r).resolve(t[r]||e):ve}));case"compound":if(Z(t)){var r=this.getStateNode(t);return"parallel"===r.type||"compound"===r.type?((e={})[t]=r.initialStateValue,e):t}return D(t).length?U(t,(function(t,e){return t?n.getStateNode(e).resolve(t):ve})):this.initialStateValue||{};default:return t||ve}},t.prototype.getResolvedPath=function(t){if(ge(t)){var e=this.machine.idMap[t.slice("#".length)];if(!e)throw new Error("Unable to find state node '"+t+"'");return e.path}return L(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=M(this.states,(function(t){return t.initialStateValue||ve}),(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=Zt(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=Z(e.target)&&ge(e.target)?F(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 Zt(this)?[this]:"compound"!==this.type||this.initial?z(B(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=P(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(D(this.states).length)return{current:t||this.initialStateValue,states:M(this.states,(function(e,n){if(!t)return e.historyValue();var r=Z(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?z(B(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=A(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 Z(a)?[n.getStateNode(a)]:z(B(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=z(D(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=A(D(i)),s=a.next();!s.done;s=a.next()){var c=i[s.value];if(c.states)try{for(var u=(n=void 0,A(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(!Z(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 W(t)}(t.target),r="internal"in t?t.internal:!n||n.some((function(t){return Z(t)&&t[0]===e.delimiter})),i=this.machine.options.guards,o=this.resolveTarget(n),a=E(E({},t),{actions:Pt(W(t.actions)),cond:X(t.cond,i),target:o,source:this,internal:r,eventType:t.event,toJSON:function(){return E(E({},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="*",a=i[o],s=void 0===a?[]:a,c=k(i,["*"]);n=z(D(c).map((function(t){var e=st(t,c[t]);return e})).concat(st("*",s)))}else n=[];var u=this.config.always?st("",this.config.always):[],l=this.config.onDone?st(String(Vt(this.id)),this.config.onDone):[];var f=z(this.invoke.map((function(t){var e=[];return t.onDone&&e.push.apply(e,T(st(String(Wt(t.id)),t.onDone))),t.onError&&e.push.apply(e,T(st(String(qt(t.id)),t.onError))),e}))),h=this.after,p=z(T(l,f,n,u).map((function(t){return W(t).map((function(t){return r.formatTransition(t)}))})));try{for(var d=A(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 _e(t,e,n){void 0===n&&(n=t.context);var r="function"==typeof n?n():n;return new be(t,e,r)}function me(t,e){var n="function"==typeof t.context?t.context():t.context;return new be(t,e,n)}const we=Bt({failure:null}),je=Bt({errors:[]}),xe=Bt({edits:null}),Oe=Bt({data:null}),Se=je,Ee=Bt({failure:(t,e)=>e.data}),ke=Bt({errors:(t,e)=>e.data}),Ae=Bt({data:(t,e)=>e.data}),Pe=Bt({edits:(t,e)=>Object.assign(Object.assign({},t.edits),e.data)});const Te=me({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:we,clearErrors:je,clearEdits:xe,clearData:Oe,validate:Se,setFailure:Ee,setErrors:ke,setData:Ae,applyEdit:Pe}),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 Re{constructor(t){this.__tree=Re.__parse(t)}static get True(){return Ne}static get False(){return De}static fromAttribute(t,e){return null===t?Re.False:""===t||t===e?Re.True:new Re(t)}matches(t,e=!1){const n=this.zoom(t).toString();return e?"not=*"===n:""!==n}zoom(t){const e=new Re("");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 Re.__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 De=new Re(""),Ne=new Re("not=*");var Ie=Array.isArray,Le=v?v.prototype:void 0,Ce=Le?Le.toString:void 0;function Fe(t){if("string"==typeof t)return t;if(Ie(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,Fe)+"";if(S(t))return Ce?Ce.call(t):"";var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e}function Ue(t){if(!h(t))return!1;var e=x(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}var Me,$e=y["__core-js_shared__"],Be=(Me=/[^.]+$/.exec($e&&$e.keys&&$e.keys.IE_PROTO||""))?"Symbol(src)_1."+Me:"";var ze=Function.prototype.toString;function Ve(t){if(null!=t){try{return ze.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var We=/^\[object .+?Constructor\]$/,qe=Function.prototype,He=Object.prototype,Ge=qe.toString,Je=He.hasOwnProperty,Ke=RegExp("^"+Ge.call(Je).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Qe(t){return!(!h(t)||(e=t,Be&&Be in e))&&(Ue(t)?Ke:We).test(Ve(t));var e}function Ze(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return Qe(n)?n:void 0}var Xe=Ze(y,"WeakMap"),Ye=/^(?:0|[1-9]\d*)$/;function tn(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ye.test(t))&&t>-1&&t%1==0&&t<e}function en(t,e){return t===e||t!=t&&e!=e}function nn(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function rn(t){return null!=t&&nn(t.length)&&!Ue(t)}var on=Object.prototype;function an(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||on)}function sn(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function cn(t){return O(t)&&"[object Arguments]"==x(t)}var un=Object.prototype,ln=un.hasOwnProperty,fn=un.propertyIsEnumerable,hn=cn(function(){return arguments}())?cn:function(t){return O(t)&&ln.call(t,"callee")&&!fn.call(t,"callee")};var pn="object"==typeof exports&&exports&&!exports.nodeType&&exports,dn=pn&&"object"==typeof module&&module&&!module.nodeType&&module,yn=dn&&dn.exports===pn?y.Buffer:void 0,vn=(yn?yn.isBuffer:void 0)||function(){return!1},gn={};function bn(t){return function(e){return t(e)}}gn["[object Float32Array]"]=gn["[object Float64Array]"]=gn["[object Int8Array]"]=gn["[object Int16Array]"]=gn["[object Int32Array]"]=gn["[object Uint8Array]"]=gn["[object Uint8ClampedArray]"]=gn["[object Uint16Array]"]=gn["[object Uint32Array]"]=!0,gn["[object Arguments]"]=gn["[object Array]"]=gn["[object ArrayBuffer]"]=gn["[object Boolean]"]=gn["[object DataView]"]=gn["[object Date]"]=gn["[object Error]"]=gn["[object Function]"]=gn["[object Map]"]=gn["[object Number]"]=gn["[object Object]"]=gn["[object RegExp]"]=gn["[object Set]"]=gn["[object String]"]=gn["[object WeakMap]"]=!1;var _n="object"==typeof exports&&exports&&!exports.nodeType&&exports,mn=_n&&"object"==typeof module&&module&&!module.nodeType&&module,wn=mn&&mn.exports===_n&&p.process,jn=function(){try{var t=mn&&mn.require&&mn.require("util").types;return t||wn&&wn.binding&&wn.binding("util")}catch(t){}}(),xn=jn&&jn.isTypedArray,On=xn?bn(xn):function(t){return O(t)&&nn(t.length)&&!!gn[x(t)]},Sn=Object.prototype.hasOwnProperty;function En(t,e){var n=Ie(t),r=!n&&hn(t),i=!n&&!r&&vn(t),o=!n&&!r&&!i&&On(t),a=n||r||i||o,s=a?sn(t.length,String):[],c=s.length;for(var u in t)!e&&!Sn.call(t,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||tn(u,c))||s.push(u);return s}function kn(t,e){return function(n){return t(e(n))}}var An=kn(Object.keys,Object),Pn=Object.prototype.hasOwnProperty;function Tn(t){return rn(t)?En(t):function(t){if(!an(t))return An(t);var e=[];for(var n in Object(t))Pn.call(t,n)&&"constructor"!=n&&e.push(n);return e}(t)}var Rn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Dn=/^\w*$/;var Nn=Ze(Object,"create");var In=Object.prototype.hasOwnProperty;var Ln=Object.prototype.hasOwnProperty;function Cn(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 Fn(t,e){for(var n=t.length;n--;)if(en(t[n][0],e))return n;return-1}Cn.prototype.clear=function(){this.__data__=Nn?Nn(null):{},this.size=0},Cn.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Cn.prototype.get=function(t){var e=this.__data__;if(Nn){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return In.call(e,t)?e[t]:void 0},Cn.prototype.has=function(t){var e=this.__data__;return Nn?void 0!==e[t]:Ln.call(e,t)},Cn.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Nn&&void 0===e?"__lodash_hash_undefined__":e,this};var Un=Array.prototype.splice;function Mn(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])}}Mn.prototype.clear=function(){this.__data__=[],this.size=0},Mn.prototype.delete=function(t){var e=this.__data__,n=Fn(e,t);return!(n<0)&&(n==e.length-1?e.pop():Un.call(e,n,1),--this.size,!0)},Mn.prototype.get=function(t){var e=this.__data__,n=Fn(e,t);return n<0?void 0:e[n][1]},Mn.prototype.has=function(t){return Fn(this.__data__,t)>-1},Mn.prototype.set=function(t,e){var n=this.__data__,r=Fn(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};var $n=Ze(y,"Map");function Bn(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 zn(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])}}zn.prototype.clear=function(){this.size=0,this.__data__={hash:new Cn,map:new($n||Mn),string:new Cn}},zn.prototype.delete=function(t){var e=Bn(this,t).delete(t);return this.size-=e?1:0,e},zn.prototype.get=function(t){return Bn(this,t).get(t)},zn.prototype.has=function(t){return Bn(this,t).has(t)},zn.prototype.set=function(t,e){var n=Bn(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function Vn(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");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(Vn.Cache||zn),n}Vn.Cache=zn;var Wn,qn,Hn,Gn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Jn=/\\(\\)?/g,Kn=(Wn=function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Gn,(function(t,n,r,i){e.push(r?i.replace(Jn,"$1"):n||t)})),e},qn=Vn(Wn,(function(t){return 500===Hn.size&&Hn.clear(),t})),Hn=qn.cache,qn),Qn=Kn;function Zn(t,e){return Ie(t)?t:function(t,e){if(Ie(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!S(t))||Dn.test(t)||!Rn.test(t)||null!=e&&t in Object(e)}(t,e)?[t]:Qn(function(t){return null==t?"":Fe(t)}(t))}function Xn(t){if("string"==typeof t||S(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e}function Yn(t,e,n){var r=null==t?void 0:function(t,e){for(var n=0,r=(e=Zn(e,t)).length;null!=t&&n<r;)t=t[Xn(e[n++])];return n&&n==r?t:void 0}(t,e);return void 0===r?n:r}function tr(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function er(t){var e=this.__data__=new Mn(t);this.size=e.size}function nr(){return[]}er.prototype.clear=function(){this.__data__=new Mn,this.size=0},er.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},er.prototype.get=function(t){return this.__data__.get(t)},er.prototype.has=function(t){return this.__data__.has(t)},er.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Mn){var r=n.__data__;if(!$n||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new zn(r)}return n.set(t,e),this.size=n.size,this};var rr=Object.prototype.propertyIsEnumerable,ir=Object.getOwnPropertySymbols,or=ir?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}(ir(t),(function(e){return rr.call(t,e)})))}:nr,ar=or;function sr(t,e,n){var r=e(t);return Ie(t)?r:tr(r,n(t))}function cr(t){return sr(t,Tn,ar)}var ur=Ze(y,"DataView"),lr=Ze(y,"Promise"),fr=Ze(y,"Set"),hr=Ve(ur),pr=Ve($n),dr=Ve(lr),yr=Ve(fr),vr=Ve(Xe),gr=x;(ur&&"[object DataView]"!=gr(new ur(new ArrayBuffer(1)))||$n&&"[object Map]"!=gr(new $n)||lr&&"[object Promise]"!=gr(lr.resolve())||fr&&"[object Set]"!=gr(new fr)||Xe&&"[object WeakMap]"!=gr(new Xe))&&(gr=function(t){var e=x(t),n="[object Object]"==e?t.constructor:void 0,r=n?Ve(n):"";if(r)switch(r){case hr:return"[object DataView]";case pr:return"[object Map]";case dr:return"[object Promise]";case yr:return"[object Set]";case vr:return"[object WeakMap]"}return e});var br=gr,_r=y.Uint8Array;function mr(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new zn;++e<n;)this.add(t[e])}function wr(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 jr(t,e){return t.has(e)}mr.prototype.add=mr.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},mr.prototype.has=function(t){return this.__data__.has(t)};function xr(t,e,n,r,i,o){var a=1&n,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=2&n?new mr: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(!wr(e,(function(t,e){if(!jr(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 Or(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function Sr(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var Er=v?v.prototype:void 0,kr=Er?Er.valueOf:void 0;var Ar=Object.prototype.hasOwnProperty;var Pr="[object Object]",Tr=Object.prototype.hasOwnProperty;function Rr(t,e,n,r,i,o){var a=Ie(t),s=Ie(e),c=a?"[object Array]":br(t),u=s?"[object Array]":br(e),l=(c="[object Arguments]"==c?Pr:c)==Pr,f=(u="[object Arguments]"==u?Pr:u)==Pr,h=c==u;if(h&&vn(t)){if(!vn(e))return!1;a=!0,l=!1}if(h&&!l)return o||(o=new er),a||On(t)?xr(t,e,n,r,i,o):function(t,e,n,r,i,o,a){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!o(new _r(t),new _r(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return en(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var s=Or;case"[object Set]":var c=1&r;if(s||(s=Sr),t.size!=e.size&&!c)return!1;var u=a.get(t);if(u)return u==e;r|=2,a.set(t,e);var l=xr(s(t),s(e),r,i,o,a);return a.delete(t),l;case"[object Symbol]":if(kr)return kr.call(t)==kr.call(e)}return!1}(t,e,c,n,r,i,o);if(!(1&n)){var p=l&&Tr.call(t,"__wrapped__"),d=f&&Tr.call(e,"__wrapped__");if(p||d){var y=p?t.value():t,v=d?e.value():e;return o||(o=new er),i(y,v,n,r,o)}}return!!h&&(o||(o=new er),function(t,e,n,r,i,o){var a=1&n,s=cr(t),c=s.length;if(c!=cr(e).length&&!a)return!1;for(var u=c;u--;){var l=s[u];if(!(a?l in e:Ar.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 Dr(t,e,n,r,i){return t===e||(null==t||null==e||!O(t)&&!O(e)?t!=t&&e!=e:Rr(t,e,n,r,Dr,i))}function Nr(t,e){return Dr(t,e)}class Ir extends Error{constructor(){super("not enough info to update; please reload resource instead")}}var Lr=u((function(t){var e=t.exports=function(t){return new n(t)};function n(t){this.value=t}function r(t,e,n){var r=[],a=[],l=!0;return function t(f){var h=n?i(f):f,p={},d=!0,y={node:h,node_:f,path:[].concat(r),parent:a[a.length-1],parents:a,key:r.slice(-1)[0],isRoot:0===r.length,level:r.length,circular:null,update:function(t,e){y.isRoot||(y.parent.node[y.key]=t),y.node=t,e&&(d=!1)},delete:function(t){delete y.parent.node[y.key],t&&(d=!1)},remove:function(t){s(y.parent.node)?y.parent.node.splice(y.key,1):delete y.parent.node[y.key],t&&(d=!1)},keys:null,before:function(t){p.before=t},after:function(t){p.after=t},pre:function(t){p.pre=t},post:function(t){p.post=t},stop:function(){l=!1},block:function(){d=!1}};if(!l)return y;function v(){if("object"==typeof y.node&&null!==y.node){y.keys&&y.node_===y.node||(y.keys=o(y.node)),y.isLeaf=0==y.keys.length;for(var t=0;t<a.length;t++)if(a[t].node_===f){y.circular=a[t];break}}else y.isLeaf=!0,y.keys=null;y.notLeaf=!y.isLeaf,y.notRoot=!y.isRoot}v();var g=e.call(y,y.node);return void 0!==g&&y.update&&y.update(g),p.before&&p.before.call(y,y.node),d?("object"!=typeof y.node||null===y.node||y.circular||(a.push(y),v(),c(y.keys,(function(e,i){r.push(e),p.pre&&p.pre.call(y,y.node[e],e);var o=t(y.node[e]);n&&u.call(y.node,e)&&(y.node[e]=o.node),o.isLast=i==y.keys.length-1,o.isFirst=0==i,p.post&&p.post.call(y,o),r.pop()})),a.pop()),p.after&&p.after.call(y,y.node),y):y}(t).node}function i(t){if("object"==typeof t&&null!==t){var e;if(s(t))e=[];else if("[object Date]"===a(t))e=new Date(t.getTime?t.getTime():t);else if(function(t){return"[object RegExp]"===a(t)}(t))e=new RegExp(t);else if(function(t){return"[object Error]"===a(t)}(t))e={message:t.message};else if(function(t){return"[object Boolean]"===a(t)}(t))e=new Boolean(t);else if(function(t){return"[object Number]"===a(t)}(t))e=new Number(t);else if(function(t){return"[object String]"===a(t)}(t))e=new String(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 c(o(t),(function(n){e[n]=t[n]})),e}return t}n.prototype.get=function(t){for(var e=this.value,n=0;n<t.length;n++){var r=t[n];if(!e||!u.call(e,r)){e=void 0;break}e=e[r]}return e},n.prototype.has=function(t){for(var e=this.value,n=0;n<t.length;n++){var r=t[n];if(!e||!u.call(e,r))return!1;e=e[r]}return!0},n.prototype.set=function(t,e){for(var n=this.value,r=0;r<t.length-1;r++){var i=t[r];u.call(n,i)||(n[i]={}),n=n[i]}return n[t[r]]=e,e},n.prototype.map=function(t){return r(this.value,t,!0)},n.prototype.forEach=function(t){return this.value=r(this.value,t,!1),this.value},n.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},n.prototype.paths=function(){var t=[];return this.forEach((function(e){t.push(this.path)})),t},n.prototype.nodes=function(){var t=[];return this.forEach((function(e){t.push(this.node)})),t},n.prototype.clone=function(){var t=[],e=[];return function n(r){for(var a=0;a<t.length;a++)if(t[a]===r)return e[a];if("object"==typeof r&&null!==r){var s=i(r);return t.push(r),e.push(s),c(o(r),(function(t){s[t]=n(r[t])})),t.pop(),e.pop(),s}return r}(this.value)};var o=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};function a(t){return Object.prototype.toString.call(t)}var s=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},c=function(t,e){if(t.forEach)return t.forEach(e);for(var n=0;n<t.length;n++)e(t[n],n,t)};c(o(n.prototype),(function(t){e[t]=function(e){var r=[].slice.call(arguments,1),i=new n(e);return i[t].apply(i,r)}}));var u=Object.hasOwnProperty||function(t,e){return e in t}}));class Cr{constructor(){this.__callbacks=[]}share(t){const{related:e,source:n,data:r}=t,i=null===r?new Map([[n,null]]):Cr.__createPatch(r);[...this.__callbacks].forEach((t=>{t((t=>{const n=Cr.__applyPatch(i,t,e);return Nr(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 Yn(t,"_links.first.href")}static __isResource(t){return"string"==typeof Yn(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 Lr(t).reduce((function(t,e){if(!Cr.__isResource(e)||Cr.__isCollection(e))return t;const n=Lr(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=>Cr.__approximateURI(t))))&&void 0!==r?r:[];return null!==(i=Lr({data:e}).map((function(e){if(!Cr.__isResource(e))return;const n=e._links.self.href,r=Cr.__approximateURI(n);if(o.includes(r))throw new Cr.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 Cr.UpdateError}})).data)&&void 0!==i?i:null}}Cr.UpdateError=Ir;var Fr=u((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)}()})),Ur=function(t,e,n,r){this.name=t,this.fn=e,this.args=n,this.modifiers=r};function Mr(t,e){return void 0===e&&(e="simple"),"object"==typeof t?t[e]:t}function $r(t,e,n){if(t.length){var r=t.shift(),i=$r(t,e,n);return r.perform(i,n)}return Mr(e)}function Br(t,e,n){if(t.length){var r=t.shift(),i=Br(t,e,n);return r.performAsync(i,n)}return function(t){return Promise.resolve(Mr(e,"async")(t))}}Ur.prototype._test=function(t){var e=this.fn;try{$r(this.modifiers.slice(),e,this)(t)}catch(t){e=function(){return!1}}try{return $r(this.modifiers.slice(),e,this)(t)}catch(t){return!1}},Ur.prototype._check=function(t){try{$r(this.modifiers.slice(),this.fn,this)(t)}catch(t){if($r(this.modifiers.slice(),(function(t){return t}),this)(!1))return}if(!$r(this.modifiers.slice(),this.fn,this)(t))throw null},Ur.prototype._testAsync=function(t){var e=this;return new Promise((function(n,r){Br(e.modifiers.slice(),e.fn,e)(t).then((function(e){e?n(t):r(null)})).catch((function(t){return r(t)}))}))};var zr=function(t,e,n){this.name=t,this.perform=e,this.performAsync=n},Vr=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),Wr=function(t,e){void 0===t&&(t=[]),void 0===e&&(e=[]),this.chain=t,this.nextRuleModifiers=e};function qr(t,e,n,r){if(e.length){var i=e.shift();i._testAsync(t).then((function(){qr(t,e,n,r)}),(function(e){r(new Vr(i,t,e))}))}else n(t)}Wr.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 Ur(e,t.apply(n,r),r,n.nextRuleModifiers)),n.nextRuleModifiers=[],n}},Wr.prototype._applyModifier=function(t,e){return this.nextRuleModifiers.push(new zr(e,t.simple,t.async)),this},Wr.prototype._clone=function(){return new Wr(this.chain.slice(),this.nextRuleModifiers.slice())},Wr.prototype.test=function(t){return this.chain.every((function(e){return e._test(t)}))},Wr.prototype.testAll=function(t){var e=[];return this.chain.forEach((function(n){try{n._check(t)}catch(r){e.push(new Vr(n,t,r))}})),e},Wr.prototype.check=function(t){this.chain.forEach((function(e){try{e._check(t)}catch(n){throw new Vr(e,t,n)}}))},Wr.prototype.testAsync=function(t){var e=this;return new Promise((function(n,r){qr(t,e.chain.slice(),n,r)}))};var Hr=function(t,e){return!(!e||"string"!=typeof t||0!==t.trim().length)||null==t};function Gr(){return"undefined"!=typeof Proxy?Kr(new Wr):Qr(new Wr)}var Jr={};function Kr(t){return new Proxy(t,{get:function(e,n){if(n in e)return e[n];var r=Kr(t._clone());return n in Zr?r._applyModifier(Zr[n],n):n in Jr?r._applyRule(Jr[n],n):n in ti?r._applyRule(ti[n],n):void 0}})}function Qr(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];var o=Qr(e._clone()),a=o._applyRule(t[n],n).apply(void 0,r);return a}})),e},n=e(ti,t),r=e(Jr,n);return Object.keys(Zr).forEach((function(t){Object.defineProperty(r,t,{get:function(){return Qr(r._clone())._applyModifier(Zr[t],t)}})})),r}Gr.extend=function(t){Object.assign(Jr,t)},Gr.clearCustomRules=function(){Jr={}};var Zr={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 Yr(e).some((function(e){try{return t(e)}catch(t){return!1}}))}},async:function(t){return function(e){return Promise.all(Yr(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&&Yr(e).every(t)}},async:function(t){return function(e){return Promise.all(Yr(e).map(t)).then((function(t){return t.every(Boolean)}))}}},strict:{simple:function(t,e){return function(n){return Xr(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 Xr(e)&&n&&"object"==typeof n?Object.keys(e.args[0]).length===Object.keys(n).length&&t:t})).catch((function(){return!1}))}}}};function Xr(t){return t&&"schema"===t.name&&t.args.length>0&&"object"==typeof t.args[0]}function Yr(t){return"string"==typeof t?t.split(""):t}var ti={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||ni)(t)}},numeric:function(){return function(t){return!isNaN(parseFloat(t))&&isFinite(t)}},string:function(){return ei("string")},boolean:function(){return ei("boolean")},undefined:function(){return ei("undefined")},null:function(){return ei("null")},array:function(){return ei("array")},object:function(){return ei("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 Hr(n,e)||void 0===t.check(n)},async:function(n){return Hr(n,e)||t.testAsync(n)}}}};function ei(t){return function(e){return Array.isArray(e)&&"array"===t||null===e&&"null"===t||typeof e===t}}function ni(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}Gr.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 ri=Gr().schema({clear:Gr().typeOf("function"),getItem:Gr().typeOf("function"),key:Gr().typeOf("function"),length:Gr().number(),removeItem:Gr().typeOf("function"),setItem:Gr().typeOf("function")});class ii extends Error{constructor(t){ii.v8n.constructor.check(t),super(`authentication failed with code ${t.code}`),this.originalError=t.originalError,this.code=t.code}}ii.NEW_PASSWORD_REQUIRED="NEW_PASSWORD_REQUIRED",ii.INVALID_NEW_PASSWORD="INVALID_NEW_PASSWORD",ii.UNAUTHORIZED="UNAUTHORIZED",ii.UNKNOWN="UNKNOWN",ii.v8n={constructor:Gr().schema({code:Gr().passesAnyOf(Gr().exact(ii.NEW_PASSWORD_REQUIRED),Gr().exact(ii.INVALID_NEW_PASSWORD),Gr().exact(ii.UNAUTHORIZED),Gr().exact(ii.UNKNOWN))})};var oi=c(u((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,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}))),ai=u((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})),si=u((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})),ci=c(u((function(t){t.exports=function(t,e){var n=si(t,e,"get");return ai(t,n)},t.exports.__esModule=!0,t.exports.default=t.exports}))),ui=new WeakMap,li=function(){function t(){ui.set(this,{writable:!0,value:new Map})}var e=t.prototype;return e.key=function(t){t=Number.parseInt(t,10);for(var e=ci(this,ui).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=ci(this,ui).get(""+t))?e:null},e.setItem=function(t,e){ci(this,ui).set(""+t,""+e)},e.removeItem=function(t){ci(this,ui).delete(""+t)},e.clear=function(){ci(this,ui).clear()},oi(t,[{key:"length",get:function(){return ci(this,ui).size}}]),t}(),fi=li;class hi extends Error{constructor(t){super(),hi.v8n.constructor.check(t),this.response=t}}hi.v8n={constructor:Gr().instanceOf(f.Response)};var pi=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())}))},di=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 yi(t){const{json:e}=t,n=di(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 mi(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=>yi(Object.assign(Object.assign({},n),{json:t})))):yi(Object.assign(Object.assign({},n),{json:r}))})),{})}return e}class vi extends f.Response{constructor(t){vi.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 pi(this,void 0,void 0,(function*(){const e=yield t.json.call(this),n={cache:this._cache,console:this._console,fetch:this._fetch};return yi(Object.assign({json:e},n))}))}}vi.v8n={constructor:Gr().schema({cache:ri,console:Gr().instanceOf(Fr.constructor),fetch:Gr().typeOf("function")})};var gi=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 bi(t,e){const n=""===t?"":t+":";return"string"==typeof e?n+e:Array.isArray(e)?e.map((e=>bi(t,e))).join():Object.entries(e).map((([t,e])=>bi(n+t,e))).join()}function _i(t){return"string"==typeof t?t:Array.isArray(t)?t.map((t=>_i(t))).join():Object.entries(t).map((([t,e])=>`${t} ${e}`)).join()}class mi{constructor(t){mi.v8n.classConstructor.check(t),this._path=t.path,this._fetch=t.fetch,this._cache=t.cache,this._console=t.console}get(t){return gi(this,void 0,void 0,(function*(){mi.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",_i(a)),void 0!==s&&e.searchParams.set("zoom",bi("",s));const c=yield this._fetch(new f.Request(e.toString())),u={cache:this._cache,console:this._console,fetch:this._fetch};return new vi(Object.assign(Object.assign(Object.assign({},u),c),{body:yield c.text()}))}))}put(t){return gi(this,void 0,void 0,(function*(){const e=yield this._resolve(),n=new f.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 vi(Object.assign(Object.assign(Object.assign({},i),r),{body:yield r.text()}))}))}post(t){return gi(this,void 0,void 0,(function*(){const e=yield this._resolve(),n=new f.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 vi(Object.assign(Object.assign(Object.assign({},i),r),{body:yield r.text()}))}))}patch(t){return gi(this,void 0,void 0,(function*(){const e=yield this._resolve(),n=new f.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 vi(Object.assign(Object.assign(Object.assign({},i),r),{body:yield r.text()}))}))}delete(){return gi(this,void 0,void 0,(function*(){const t=yield this._resolve(),e=new f.Request(t.toString(),{method:"DELETE"}),n=yield this._fetch(e),r={cache:this._cache,console:this._console,fetch:this._fetch};return new vi(Object.assign(Object.assign(Object.assign({},r),n),{body:yield n.text()}))}))}follow(t){mi.v8n.follow.check(t);const e={cache:this._cache,console:this._console,fetch:this._fetch},n=this._path.concat(t);return new mi(Object.assign(Object.assign({},e),{path:n}))}_resolve(){return gi(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 mi(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 mi(Object.assign(Object.assign({},r),{path:o}))._resolve()}}throw this._console.error(`Failed to resolve ${n}.`),new hi(o)}))}}mi.v8n={classConstructor:Gr().schema({cache:ri,console:Gr().instanceOf(Fr.constructor),fetch:Gr().typeOf("function"),path:Gr().curieChain()}),follow:Gr().string(),get:Gr().optional(Gr().schema({fields:Gr().optional(Gr().array().every.string()),filters:Gr().optional(Gr().array().every.string()),limit:Gr().optional(Gr().number()),offset:Gr().optional(Gr().number()),order:Gr().optional(Gr().passesAnyOf(Gr().string(),Gr().object(),Gr().array())),zoom:Gr().optional(Gr().passesAnyOf(Gr().string(),Gr().object(),Gr().array()))}))},mi.ResolutionError=hi,mi.Response=vi;var wi=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 ji extends mi{constructor(t){var e,n,r;ji.v8n.classConstructor.check(t),super({cache:null!==(e=t.cache)&&void 0!==e?e:new fi,console:Fr.create({level:t.level}).withTag("@foxy.io/sdk"),fetch:null!==(n=t.fetch)&&void 0!==n?n:f.fetch,path:[t.base]}),this.console=this._console,this.storage=null!==(r=t.storage)&&void 0!==r?r:new fi,this.cache=this._cache,this.base=t.base}fetch(...t){return wi(this,void 0,void 0,(function*(){return this._fetch(...t)}))}}ji.WHATWGResponse=f.Response,ji.WHATWGRequest=f.Request,ji.WHATWGHeaders=f.Headers,ji.whatwgFetch=f.fetch,ji.AuthError=ii,ji.Node=mi,ji.v8n={classConstructor:Gr().schema({base:Gr().instanceOf(URL),cache:Gr().optional(ri),fetch:Gr().optional(Gr().typeOf("function")),level:Gr().optional(Gr().integer()),storage:Gr().optional(ri)})};export{Yn as $,ji as A,Re as B,ht as C,ft as D,tt as E,ut as F,H as G,Y as H,rt as I,yt as J,dt as K,pe as L,xt as M,qt as N,nt as O,K as P,ot as Q,Cr as R,ue as S,et as T,Z as U,it as V,jt as W,T as X,ce as Y,lt as Z,e as _,s as a,Rt as a0,Dt as a1,Nt as a2,It as a3,Ft as a4,Ut as a5,Mt as a6,$t as a7,zt as a8,Vt as a9,v as aA,O as aB,br as aC,jn as aD,bn as aE,Ie as aF,vn as aG,er as aH,cr as aI,n as aJ,nn as aK,hn as aL,Lt as aa,Gt as ab,Jt as ac,Kt as ad,Ht as ae,me as af,Zn as ag,Xn as ah,tn as ai,Ze as aj,en as ak,Gr as al,a as am,rn as an,sn as ao,_e as ap,Nr as aq,an as ar,En as as,kn as at,Tn as au,ar as av,nr as aw,tr as ax,sr as ay,_r as az,l as b,u as c,f as d,h as e,Te as f,c as g,Bt as h,S as i,E as j,A as k,oe as l,Vn as m,q as n,Wt as o,le as p,se as q,y as r,Et as s,Lr as t,Q as u,D as v,at as w,wt as x,kt as y,bt as z};