@foxy.io/elements 1.14.0-beta.2 → 1.14.0-beta.6
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.
- package/README.md +1 -1
- package/dist/cdn/foxy-access-recovery-form.js +1 -1
- package/dist/cdn/foxy-address-card.js +1 -1
- package/dist/cdn/foxy-address-form.js +1 -1
- package/dist/cdn/foxy-applied-tax-card.js +1 -1
- package/dist/cdn/foxy-attribute-card.js +1 -1
- package/dist/cdn/foxy-attribute-form.js +1 -1
- package/dist/cdn/foxy-cancellation-form.js +1 -1
- package/dist/cdn/foxy-collection-page.js +1 -1
- package/dist/cdn/foxy-collection-pages.js +1 -1
- package/dist/cdn/foxy-custom-field-card.js +1 -1
- package/dist/cdn/foxy-custom-field-form.js +1 -1
- package/dist/cdn/foxy-customer-api.js +1 -1
- package/dist/cdn/foxy-customer-card.js +1 -1
- package/dist/cdn/foxy-customer-form.js +1 -1
- package/dist/cdn/foxy-customer-portal-settings.js +10 -10
- package/dist/cdn/foxy-customer-portal.js +2 -2
- package/dist/cdn/foxy-customer.js +2 -2
- package/dist/cdn/foxy-customers-table.js +1 -1
- package/dist/cdn/foxy-discount-card.js +1 -1
- package/dist/cdn/foxy-donation.js +1 -1
- package/dist/cdn/foxy-email-template-form.js +1 -1
- package/dist/cdn/foxy-error-entry-card.js +1 -1
- package/dist/cdn/foxy-form-dialog.js +1 -1
- package/dist/cdn/foxy-i18n.js +1 -1
- package/dist/cdn/foxy-items-form.js +1 -1
- package/dist/cdn/foxy-nucleon-element.js +1 -1
- package/dist/cdn/foxy-payment-card.js +1 -1
- package/dist/cdn/foxy-payment-method-card.js +1 -1
- package/dist/cdn/foxy-query-builder.js +2 -2
- package/dist/cdn/foxy-sign-in-form.js +1 -1
- package/dist/cdn/foxy-spinner.js +2 -2
- package/dist/cdn/foxy-subscription-card.js +1 -1
- package/dist/cdn/foxy-subscription-form.js +26 -9
- package/dist/cdn/foxy-subscriptions-table.js +1 -1
- package/dist/cdn/foxy-table.js +1 -1
- package/dist/cdn/foxy-tax-card.js +1 -1
- package/dist/cdn/foxy-tax-form.js +1 -1
- package/dist/cdn/foxy-template-config-form.js +14 -0
- package/dist/cdn/foxy-template-form.js +1 -1
- package/dist/cdn/foxy-transaction-card.js +1 -1
- package/dist/cdn/foxy-transactions-table.js +1 -1
- package/dist/cdn/foxy-user-form.js +1 -1
- package/dist/cdn/foxy-users-table.js +1 -1
- package/dist/cdn/{shared-d4dad105.js → shared-00563cb0.js} +1 -1
- package/dist/cdn/shared-09feabf8.js +1 -0
- package/dist/cdn/{shared-6783c996.js → shared-0ba88744.js} +1 -1
- package/dist/cdn/shared-0ced76a0.js +358 -0
- package/dist/cdn/{shared-dbbe03f9.js → shared-16e28f3b.js} +1 -1
- package/dist/cdn/{shared-f4119f12.js → shared-16f72e27.js} +1 -1
- package/dist/cdn/shared-1761daef.js +15 -0
- package/dist/cdn/{shared-35415106.js → shared-1bafffd0.js} +1 -1
- package/dist/cdn/{shared-5fedf5e4.js → shared-200f613b.js} +2 -2
- package/dist/cdn/{shared-4059f633.js → shared-218ba06e.js} +1 -1
- package/dist/cdn/{shared-e9920617.js → shared-34b2c1e2.js} +1 -1
- package/dist/cdn/shared-3f35fa81.js +1 -0
- package/dist/cdn/{shared-cf248335.js → shared-44cfc617.js} +1 -1
- package/dist/cdn/{shared-45d647e4.js → shared-46ee137f.js} +1 -1
- package/dist/cdn/{shared-5d286626.js → shared-4d3c7828.js} +1 -1
- package/dist/cdn/{shared-151ca103.js → shared-50c7a176.js} +5 -5
- package/dist/cdn/{shared-f0199313.js → shared-593f7e2c.js} +1 -1
- package/dist/cdn/shared-59e44f29.js +1 -0
- package/dist/cdn/{shared-cd700eac.js → shared-60126eee.js} +1 -1
- package/dist/cdn/{shared-17968c53.js → shared-63eaded9.js} +3 -3
- package/dist/cdn/shared-691da586.js +1 -0
- package/dist/cdn/shared-6b7602c7.js +1 -0
- package/dist/cdn/{shared-98ee7fad.js → shared-6d45a07b.js} +1 -1
- package/dist/cdn/{shared-99f45065.js → shared-6ecbc785.js} +1 -1
- package/dist/cdn/shared-6f7f752e.js +1 -0
- package/dist/cdn/shared-7629a1a5.js +314 -0
- package/dist/cdn/shared-8edee4e1.js +264 -0
- package/dist/cdn/{shared-84fa75d9.js → shared-9221e6b2.js} +1 -1
- package/dist/cdn/{shared-2860a3d3.js → shared-94b0ae99.js} +2 -2
- package/dist/cdn/shared-a46edf4b.js +1 -0
- package/dist/cdn/{shared-566252ac.js → shared-a6c047b1.js} +1 -1
- package/dist/cdn/shared-ace85f1b.js +1 -0
- package/dist/cdn/{shared-54702b33.js → shared-b0f0e8b5.js} +1 -1
- package/dist/cdn/{shared-ed4ed7a5.js → shared-b710881a.js} +2 -2
- package/dist/cdn/{shared-3ae39e52.js → shared-bb824ab4.js} +3 -3
- package/dist/cdn/{shared-f2a4fd27.js → shared-c66e9946.js} +1 -1
- package/dist/cdn/shared-d8852c42.js +1 -0
- package/dist/cdn/shared-df573cea.js +12 -0
- package/dist/cdn/{shared-e5de8675.js → shared-e7f8ffe9.js} +1 -1
- package/dist/cdn/{shared-54c485d2.js → shared-ec861f31.js} +21 -21
- package/dist/cdn/{shared-e0248713.js → shared-f0a83bd6.js} +1 -1
- package/dist/cdn/{shared-747b0842.js → shared-ff79f3f9.js} +1 -1
- package/dist/cdn/translations/shared/en.json +83 -1
- package/dist/elements/private/Checkbox/Checkbox.js +5 -1
- package/dist/elements/private/Checkbox/Checkbox.js.map +1 -1
- package/dist/elements/private/Choice/Choice.js +3 -3
- package/dist/elements/private/Choice/Choice.js.map +1 -1
- package/dist/elements/private/Group/Group.js +1 -1
- package/dist/elements/private/Group/Group.js.map +1 -1
- package/dist/elements/private/I18N/I18N.js +1 -1
- package/dist/elements/private/I18N/I18N.js.map +1 -1
- package/dist/elements/public/AddressForm/AddressForm.js +8 -4
- package/dist/elements/public/AddressForm/AddressForm.js.map +1 -1
- package/dist/elements/public/AttributeForm/AttributeForm.js +8 -4
- package/dist/elements/public/AttributeForm/AttributeForm.js.map +1 -1
- package/dist/elements/public/CustomFieldForm/CustomFieldForm.js +8 -4
- package/dist/elements/public/CustomFieldForm/CustomFieldForm.js.map +1 -1
- package/dist/elements/public/CustomerForm/CustomerForm.js +8 -4
- package/dist/elements/public/CustomerForm/CustomerForm.js.map +1 -1
- package/dist/elements/public/EmailTemplateForm/EmailTemplateForm.js +10 -6
- package/dist/elements/public/EmailTemplateForm/EmailTemplateForm.js.map +1 -1
- package/dist/elements/public/ItemsForm/ItemsForm.js +2 -2
- package/dist/elements/public/ItemsForm/ItemsForm.js.map +1 -1
- package/dist/elements/public/NucleonElement/serveFromCache.js +1 -0
- package/dist/elements/public/NucleonElement/serveFromCache.js.map +1 -1
- package/dist/elements/public/TaxForm/TaxForm.js +8 -4
- package/dist/elements/public/TaxForm/TaxForm.js.map +1 -1
- package/dist/elements/public/TemplateConfigForm/CountriesList.d.ts +23 -0
- package/dist/elements/public/TemplateConfigForm/CountriesList.js +129 -0
- package/dist/elements/public/TemplateConfigForm/CountriesList.js.map +1 -0
- package/dist/elements/public/TemplateConfigForm/CountryCard.d.ts +20 -0
- package/dist/elements/public/TemplateConfigForm/CountryCard.js +125 -0
- package/dist/elements/public/TemplateConfigForm/CountryCard.js.map +1 -0
- package/dist/elements/public/TemplateConfigForm/TemplateConfigForm.d.ts +34 -0
- package/dist/elements/public/TemplateConfigForm/TemplateConfigForm.js +1117 -0
- package/dist/elements/public/TemplateConfigForm/TemplateConfigForm.js.map +1 -0
- package/dist/elements/public/TemplateConfigForm/defaults.d.ts +2 -0
- package/dist/elements/public/TemplateConfigForm/defaults.js +95 -0
- package/dist/elements/public/TemplateConfigForm/defaults.js.map +1 -0
- package/dist/elements/public/TemplateConfigForm/index.d.ts +9 -0
- package/dist/elements/public/TemplateConfigForm/index.js +11 -0
- package/dist/elements/public/TemplateConfigForm/index.js.map +1 -0
- package/dist/elements/public/TemplateConfigForm/types.d.ts +116 -0
- package/dist/elements/public/TemplateConfigForm/types.js +2 -0
- package/dist/elements/public/TemplateConfigForm/types.js.map +1 -0
- package/dist/elements/public/TemplateForm/TemplateForm.js +10 -6
- package/dist/elements/public/TemplateForm/TemplateForm.js.map +1 -1
- package/dist/elements/public/index.d.ts +1 -0
- package/dist/elements/public/index.defined.d.ts +1 -0
- package/dist/elements/public/index.defined.js +1 -0
- package/dist/elements/public/index.defined.js.map +1 -1
- package/dist/elements/public/index.js +1 -0
- package/dist/elements/public/index.js.map +1 -1
- package/dist/mixins/themeable.js +107 -12
- package/dist/mixins/themeable.js.map +1 -1
- package/package.json +2 -7
- package/dist/cdn/shared-35502e88.js +0 -1
- package/dist/cdn/shared-50744508.js +0 -15
- package/dist/cdn/shared-5388f705.js +0 -1
- package/dist/cdn/shared-7f588649.js +0 -1
- package/dist/cdn/shared-9467cb31.js +0 -572
- package/dist/cdn/shared-b98f88c9.js +0 -369
- package/dist/cdn/shared-c0161e6a.js +0 -1
- package/dist/cdn/shared-dbcffd8e.js +0 -1
- package/dist/cdn/shared-e057788f.js +0 -1
- package/dist/cdn/shared-e21a2aac.js +0 -1
- package/dist/cdn/shared-ebbef842.js +0 -1
- package/dist/cdn/shared-fd5b81be.js +0 -1
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import{S as t,i as e,e as n,l as r,r as i,n as o,o as a,c as s,a as c,g as u,d as l}from"./shared-17968c53.js";class f extends Event{constructor(t,e){super(t,e),this.request=e.request,this.__reject=e.reject,this.__resolve=e.resolve}respondWith(t){this.preventDefault(),this.stopImmediatePropagation(),t.then(this.__resolve).catch(this.__reject)}}
|
|
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 h=function(){return(h=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}).apply(this,arguments)};function p(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 d(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 v(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 y(t,e){for(var n=0,r=e.length,i=t.length;n<r;n++,i++)t[i]=e[n];return t}var g={};function _(t){return Object.keys(t)}function b(t,e,n){void 0===n&&(n=".");var r=j(t,n),i=j(e,n);return $(i)?!!$(r)&&i===r:$(r)?r in i:_(r).every((function(t){return t in i&&b(r[t],i[t])}))}function m(t){try{return $(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 w(t,e){try{return C(t)?t:t.toString().split(e)}catch(e){throw new Error("'"+t+"' is not a valid state path.")}}function j(t,e){return"object"==typeof(n=t)&&"value"in n&&"context"in n&&"event"in n&&"_event"in n?t.value:C(t)?S(t):"string"!=typeof t?t:S(w(t,e));var n}function S(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 x(t,e){for(var n={},r=_(t),i=0;i<r.length;i++){var o=r[i];n[o]=e(t[o],o,t,i)}return n}function O(t,e,n){var r,i,o={};try{for(var 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 E=function(t){return function(e){var n,r,i=e;try{for(var o=d(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 k(t){return t?$(t)?[[t]]:A(_(t).map((function(e){var n=t[e];return"string"==typeof n||n&&Object.keys(n).length?k(t[e]).map((function(t){return[e].concat(t)})):[[e]]}))):[[]]}function A(t){var e;return(e=[]).concat.apply(e,y([],v(t)))}function P(t){return C(t)?t:[t]}function T(t){return void 0===t?[]:P(t)}function R(t,e,n){var r,i;if(F(t))return t(e,n.data);var o={};try{for(var a=d(Object.keys(t)),s=a.next();!s.done;s=a.next()){var c=s.value,u=t[c];F(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 N(t){return t instanceof Promise||!(null===t||!F(t)&&"object"!=typeof t||!F(t.then))}function D(t){return null!==t&&"object"==typeof t&&"transition"in t&&"function"==typeof t.transition}function I(t,e){var n,r,i=v([[],[]],2),o=i[0],a=i[1];try{for(var s=d(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 L(t,e){return x(t.states,(function(t,n){if(t){var r=($(e)?void 0:e[n])||(t?t.current:void 0);if(r)return{current:r,states:L(t,r)}}}))}function C(t){return Array.isArray(t)}function F(t){return"function"==typeof t}function $(t){return"string"==typeof t}function V(t,e){if(t)return $(t)?{type:"xstate.guard",name:t,predicate:e?e[t]:void 0}:F(t)?{type:"xstate.guard",name:t.name,predicate:t}:t}function M(t){try{return"subscribe"in t&&F(t.subscribe)}catch(t){return!1}}var U,z,W=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function B(t){try{return"__xstatenode"in t}catch(t){return!1}}function q(t){return!!t&&"function"==typeof t.send}function H(t,e){return $(t)||"number"==typeof t?h({type:t},e):t}function J(t,e){if(!$(t)&&"$$type"in t&&"scxml"===t.$$type)return t;var n=H(t);return h({name:n.type,data:n,$$type:"scxml",type:"external"},e)}function G(t,e){return P(e).map((function(e){return void 0===e||"string"==typeof e||B(e)?{target:e,event:t}:h(h({},e),{event:t})}))}function Z(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 K(t){return"string"==typeof t?{type:t}:t}function Q(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"}(U||(U={})),function(t){t.Parent="#_parent",t.Internal="#_internal"}(z||(z={}));var X=U.Start,Y=U.Stop,tt=U.Raise,et=U.Send,nt=U.Cancel,rt=U.NullEvent,it=U.Assign;U.After,U.DoneState;var ot=U.Log,at=U.Init,st=U.Invoke;U.ErrorExecution;var ct=U.ErrorPlatform,ut=U.ErrorCustom,lt=U.Update,ft=U.Choose,ht=U.Pure,pt=J({type:at});function dt(t,e){return e&&e[t]||void 0}function vt(t,e){var n;if($(t)||"number"==typeof t){var r=dt(t,e);n=F(r)?{type:t,exec:r}:r||{type:t,exec:void 0}}else if(F(t))n={type:t.name||t.toString(),exec:t};else{if(F(r=dt(t.type,e)))n=h(h({},t),{exec:r});else if(r){var i=r.type||t.type;n=h(h(h({},r),t),{type:i})}else n=t}return Object.defineProperty(n,"toString",{value:function(){return n.type},enumerable:!1,configurable:!0}),n}var yt=function(t,e){return t?(C(t)?t:[t]).map((function(t){return vt(t,e)})):[]};function gt(t){var e=vt(t);return h(h({id:$(t)?t:e.id},e),{type:e.type})}function _t(t){return $(t)?{type:tt,event:t}:bt(t,{to:z.Internal})}function bt(t,e){return{to:e?e.to:void 0,type:et,event:F(t)?t:H(t),delay:e?e.delay:void 0,id:e&&void 0!==e.id?e.id:F(t)?t.name:m(t)}}function mt(t,e){return bt(t,h(h({},e),{to:z.Parent}))}function wt(){return mt(lt)}function jt(t,e){return bt(t,h(h({},e),{to:function(t,e,n){return n._event.origin}}))}var St=function(t,e){return{context:t,event:e}};function xt(t,e){return void 0===t&&(t=St),{type:ot,label:e,expr:t}}var Ot=function(t){return{type:nt,sendId:t}};function Et(t){var e=gt(t);return{type:U.Start,activity:e,exec:void 0}}function kt(t){var e=F(t)?t:gt(t);return{type:U.Stop,activity:e,exec:void 0}}var At=function(t){return{type:it,assignment:t}};function Pt(t,e){var n=e?"#"+e:"";return U.After+"("+t+")"+n}function Tt(t,e){var n=U.DoneState+"."+t,r={type:n,data:e,toString:function(){return n}};return r}function Rt(t,e){var n=U.DoneInvoke+"."+t,r={type:n,data:e,toString:function(){return n}};return r}function Nt(t,e){var n=U.ErrorPlatform+"."+t,r={type:n,data:e,toString:function(){return n}};return r}function Dt(t){return{type:U.Pure,get:t}}function It(t,e){return bt((function(t,e){return e}),h(h({},e),{to:t}))}function Lt(t,e){return mt((function(e,n,r){return{type:ut,data:F(t)?t(e,n,r):t}}),h(h({},e),{to:z.Parent}))}function Ct(t){return{type:U.Choose,conds:t}}function Ft(t,e,n,r,i){var o=v(I(i,(function(t){return t.type===it})),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(F(a))c=a(t,e.data,s);else try{for(var u=d(_(a)),l=u.next();!l.done;l=u.next()){var f=l.value,h=a[f];c[f]=F(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;return[A(s.map((function(n){var i;switch(n.type){case tt:return{type:tt,_event:J(n.event)};case et:return function(t,e,n,r){var i,o={_event:n},a=J(F(t.event)?t.event(e,n.data,o):t.event);if($(t.delay)){var s=r&&r[t.delay];i=F(s)?s(e,n.data,o):s}else i=F(t.delay)?t.delay(e,n.data,o):t.delay;var c=F(t.to)?t.to(e,n.data,o):t.to;return h(h({},t),{to:c,_event:a,event:a.data,delay:i})}(n,c,r,t.options.delays);case ot:return function(t,e,n){return h(h({},t),{value:$(t.expr)?t.expr:t.expr(e,n.data,{_event:n})})}(n,c,r);case ft:if(!(a=null===(i=n.conds.find((function(n){var i=V(n.cond,t.options.guards);return!i||Z(t,i,c,r,e)})))||void 0===i?void 0:i.actions))return[];var o=Ft(t,e,c,r,yt(T(a),t.options.actions));return c=o[1],o[0];case ht:var a;if(!(a=n.get(c,r.data)))return[];o=Ft(t,e,c,r,yt(T(a),t.options.actions));return c=o[1],o[0];case Y:return function(t,e,n){var r=F(t.activity)?t.activity(e,n.data):t.activity,i="string"==typeof r?{id:r}:r;return{type:U.Stop,activity:i}}(n,c,r);default:return vt(n,t.options.actions)}}))),c]}var $t=function(t){return"atomic"===t.type||"final"===t.type};function Vt(t){return _(t.states).map((function(e){return t.states[e]}))}function Mt(t){var e=[t];return $t(t)?e:e.concat(A(Vt(t).map(Mt)))}function Ut(t,e){var n,r,i,o,a,s,c,u,l=Wt(new Set(t)),f=new Set(e);try{for(var h=d(f),p=h.next();!p.done;p=h.next())for(var v=(x=p.value).parent;v&&!f.has(v);)f.add(v),v=v.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=Wt(f);try{for(var g=d(f),_=g.next();!_.done;_=g.next()){if("compound"!==(x=_.value).type||y.get(x)&&y.get(x).length){if("parallel"===x.type)try{for(var b=(a=void 0,d(Vt(x))),m=b.next();!m.done;m=b.next()){var w=m.value;"history"!==w.type&&(f.has(w)||(f.add(w),l.get(w)?l.get(w).forEach((function(t){return f.add(t)})):w.initialStateNodes.forEach((function(t){return f.add(t)}))))}}catch(t){a={error:t}}finally{try{m&&!m.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{_&&!_.done&&(o=g.return)&&o.call(g)}finally{if(i)throw i.error}}try{for(var j=d(f),S=j.next();!S.done;S=j.next()){var x;for(v=(x=S.value).parent;v&&!f.has(v);)f.add(v),v=v.parent}}catch(t){c={error:t}}finally{try{S&&!S.done&&(u=j.return)&&u.call(j)}finally{if(c)throw c.error}}return f}function zt(t,e){var n=e.get(t);if(!n)return{};if("compound"===t.type){var r=n[0];if(!r)return{};if($t(r))return r.key}var i={};return n.forEach((function(t){i[t.key]=zt(t,e)})),i}function Wt(t){var e,n,r=new Map;try{for(var i=d(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 Bt(t,e){return zt(t,Wt(Ut([t],e)))}function qt(t,e){return Array.isArray(t)?t.some((function(t){return t===e})):t instanceof Set&&t.has(e)}function Ht(t,e){return"compound"===e.type?Vt(e).some((function(e){return"final"===e.type&&qt(t,e)})):"parallel"===e.type&&Vt(e).every((function(e){return Ht(t,e)}))}function Jt(t,e){if(t===e)return!0;if(void 0===t||void 0===e)return!1;if($(t)||$(e))return t===e;var n=_(t),r=_(e);return n.length===r.length&&n.every((function(n){return Jt(t[n],e[n])}))}function Gt(t){return!$(t)&&("value"in t&&"history"in t)}function Zt(t,e){var n=t.exec;return h(h({},t),{exec:void 0!==n?function(){return n(e.context,e.event,{action:t,state:e,_event:e._event})}:void 0})}var Kt=function(){function t(t){var e,n,r=this;this.actions=[],this.activities=g,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||g,this.meta=(void 0===(n=t.configuration)&&(n=[]),n.reduce((function(t,e){return void 0!==e.meta&&(t[e.id]=e.meta),t}),{})),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,this.tags=null!==(e=t.tags)&&void 0!==e?e:new Set,Object.defineProperty(this,"nextEvents",{get:function(){return function(t){return y([],v(new Set(A(y([],v(t.map((function(t){return t.ownEvents}))))))))}(r.configuration)}})}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:pt,_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=pt;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="."),$(t))return[t];var r=_(t);return r.concat.apply(r,y([],v(r.map((function(r){return n.toStrings(t[r],e).map((function(t){return r+e+t}))})))))},t.prototype.toJSON=function(){var t=this;t.configuration,t.transitions;var e=t.tags,n=p(t,["configuration","transitions","tags"]);return h(h({},n),{tags:Array.from(e)})},t.prototype.matches=function(t){return b(t,this.value)},t.prototype.hasTag=function(t){return this.tags.has(t)},t}(),Qt=function(t,e){return e(t)};function Xt(t){return{id:t,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:t}}}}function Yt(t,e,n,r){var i,o=K(t.src),a=null===(i=null==e?void 0:e.options.services)||void 0===i?void 0:i[o.type],s=t.data?R(t.data,n,r):void 0,c=a?function(t,e,n){var r=Xt(e);if(r.deferred=!0,B(t)){var i=r.state=Qt(void 0,(function(){return(n?t.withContext(n):t).initialState}));r.getSnapshot=function(){return i}}return r}(a,t.id,s):Xt(t.id);return c.meta=t,c}function te(t){return function(t){try{return"function"==typeof t.send}catch(t){return!1}}(t)&&"id"in t}function ee(t){return h({subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}},t)}function ne(t){if("string"==typeof t){var e={type:t,toString:function(){return t}};return e}return t}function re(t){return h(h({type:st},t),{toJSON:function(){t.onDone,t.onError;var e=p(t,["onDone","onError"]);return h(h({},e),{type:st,src:ne(t.src)})}})}var ie={},oe=function(t){return"#"===t[0]},ae=function(){function t(e,n,r){var i,o=this;void 0===r&&(r=e.context),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.tags=[],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||y([this.machine.key],v(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&&_(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.schema=this.parent?this.machine.schema:null!==(i=this.config.schema)&&void 0!==i?i:{},this.initial=this.config.initial,this.states=this.config.states?x(this.config.states,(function(e,n){var r,i=new t(e,{_parent:o,_key:n});return Object.assign(o.idMap,h(((r={})[i.id]=i,r),i.idMap)),i})):ie;var a=0;!function t(e){var n,r;e.order=a++;try{for(var i=d(Vt(e)),o=i.next();!o.done;o=i.next()){t(o.value)}}catch(t){n={error:t}}finally{try{o&&!o.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=T(this.config.entry||this.config.onEntry).map((function(t){return vt(t)})),this.onExit=T(this.config.exit||this.config.onExit).map((function(t){return vt(t)})),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=T(this.config.invoke).map((function(t,e){var n,r;if(B(t))return o.machine.options.services=h(((n={})[t.id]=t,n),o.machine.options.services),re({src:t.id,id:t.id});if($(t.src))return re(h(h({},t),{id:t.id||t.src,src:t.src}));if(B(t.src)||F(t.src)){var i=o.id+":invocation["+e+"]";return o.machine.options.services=h(((r={})[i]=t.src,r),o.machine.options.services),re(h(h({id:i},t),{src:i}))}var a=t.src;return re(h(h({id:a.type},t),{src:a}))})),this.activities=T(this.config.activities).concat(this.invoke).map((function(t){return gt(t)})),this.transition=this.transition.bind(this),this.tags=T(this.config.tags)}return t.prototype._init=function(){this.__cache.transitions||Mt(this).forEach((function(t){return t.on}))},t.prototype.withConfig=function(e,n){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:h(h({},i),e.actions),activities:h(h({},o),e.activities),guards:h(h({},a),e.guards),services:h(h({},s),e.services),delays:h(h({},c),e.delays)},null!=n?n:this.context)},t.prototype.withContext=function(e){return new t(this.config,this.options,e)},Object.defineProperty(t.prototype,"context",{get:function(){return F(this._context)?this._context():this._context},enumerable:!1,configurable:!0}),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:x(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=Pt(F(e)?t.id+":delay["+n+"]":e,t.id);return t.onEntry.push(bt(r,{delay:e})),t.onExit.push(Ot(r)),r};return(C(e)?e.map((function(t,e){var r=n(t.delay,e);return h(h({},t),{event:r})})):A(_(e).map((function(t,r){var i=e[t],o=$(i)?{target:i}:i,a=isNaN(+t)?t:+t,s=n(a,r);return T(o).map((function(t){return h(h({},t),{event:s,delay:a})}))})))).map((function(e){var n=e.delay;return h(h({},t.formatTransition(e)),{delay:n})}))},t.prototype.getStateNodes=function(t){var e,n=this;if(!t)return[];var r=t instanceof Kt?t.value:j(t,this.delimiter);if($(r)){var i=this.getStateNode(r).initial;return void 0!==i?this.getStateNodes(((e={})[r]=i,e)):[this,this.states[r]]}var o=_(r),a=o.map((function(t){return n.getStateNode(t)}));return a.push(this),a.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=m(t);return this.events.includes(e)},t.prototype.resolveState=function(t){var e=Array.from(Ut([],this.getStateNodes(t.value)));return new Kt(h(h({},t),{value:this.resolve(t.value),configuration:e,done:Ht(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=_(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=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=_(o).map((function(t){return o[t]})),h=A(f.map((function(t){return t.transitions})));if(!f.some((function(t){return t.transitions.length>0})))return this.next(e,n);var p=A(f.map((function(t){return t.entrySet}))),v=A(_(o).map((function(t){return o[t].configuration})));return{transitions:h,entrySet:p,exitSet:A(f.map((function(t){return t.exitSet}))),configuration:v,source:e,actions:A(_(o).map((function(t){return o[t].actions})))}},t.prototype._transition=function(t,e,n){return $(t)?this.transitionLeafNode(t,e,n):1===_(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=d(this.getCandidates(a)),l=u.next();!l.done;l=u.next()){var f=l.value,h=f.cond,p=f.in,g=t.context,_=!p||($(p)&&oe(p)?t.matches(j(this.getStateNodeById(p).path,this.delimiter)):b(j(p,this.delimiter),E(this.path.slice(0,-2))(t.value))),m=!1;try{m=!h||Z(this.machine,h,g,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(m&&_){void 0!==f.target&&(c=f.target),s.push.apply(s,y([],v(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 w=A(c.map((function(e){return o.getRelativeStateNodes(e,t.historyValue)}))),S=!!i.internal;return{transitions:[i],entrySet:S?[]:A(w.map((function(t){return o.nodesFromChild(t)}))),exitSet:S?[]:[this],configuration:w,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=Ut([],r?this.getStateNodes(r.value):[this]),u=t.configuration.length?Ut(c,t.configuration):c;try{for(var l=d(u),f=l.next();!f.done;f=l.next()){qt(c,g=f.value)||t.entrySet.push(g)}}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=d(c),p=h.next();!p.done;p=h.next()){var g;qt(u,g=p.value)&&!qt(t.exitSet,g.parent)||t.exitSet.push(g)}}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 _=A(t.entrySet.map((function(r){var i=[];if("final"!==r.type)return i;var o=r.parent;if(!o.parent)return i;i.push(Tt(r.id,r.doneData),Tt(o.id,r.doneData?R(r.doneData,e,n):void 0));var a=o.parent;return"parallel"===a.type&&Vt(a).every((function(e){return Ht(t.configuration,e)}))&&i.push(Tt(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 b=new Set(t.entrySet),m=new Set(t.exitSet),w=v([A(Array.from(b).map((function(t){return y(y([],v(t.activities.map((function(t){return Et(t)})))),v(t.onEntry))}))).concat(_.map(_t)),A(Array.from(m).map((function(t){return y(y([],v(t.onExit)),v(t.activities.map((function(t){return kt(t)}))))})))],2),j=w[0],S=w[1];return yt(S.concat(t.actions).concat(j),this.machine.options.actions)},t.prototype.transition=function(t,e,n){void 0===t&&(t=this.initialState);var r,i,o=J(e);if(t instanceof Kt)r=void 0===n?t:this.resolveState(Kt.from(t,n));else{var a=$(t)?this.resolve(S(this.getResolvedPath(t))):this.resolve(t),s=null!=n?n:this.machine.context;r=this.resolveState(Kt.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=Ut([],this.getStateNodes(r.value)),l=c.configuration.length?Ut(u,c.configuration):u;return c.configuration=y([],v(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,y([],v(i))),t},t.prototype.resolveTransition=function(t,e,n,r){var i,o,a=this;void 0===n&&(n=pt),void 0===r&&(r=this.machine.context);var s=t.configuration,c=!e||t.transitions.length>0,u=c?Bt(this.machine,s):void 0,l=e?e.historyValue?e.historyValue:t.source?this.machine.historyValue(e.value):void 0:void 0,f=e?e.context:r,p=this.getActions(t,f,n,e),y=e?h({},e.activities):{};try{for(var g=d(p),_=g.next();!_.done;_=g.next()){var b=_.value;b.type===X?y[b.activity.id||b.activity.type]=b:b.type===Y&&(y[b.activity.id||b.activity.type]=!1)}}catch(t){i={error:t}}finally{try{_&&!_.done&&(o=g.return)&&o.call(g)}finally{if(i)throw i.error}}var m,w,j=v(Ft(this,e,f,n,p),2),S=j[0],x=j[1],O=v(I(S,(function(t){return t.type===tt||t.type===et&&t.to===z.Internal})),2),E=O[0],k=O[1],P=S.filter((function(t){var e;return t.type===X&&(null===(e=t.activity)||void 0===e?void 0:e.type)===st})).reduce((function(t,e){return t[e.activity.id]=Yt(e.activity,a.machine,x,n),t}),e?h({},e.children):{}),T=u?t.configuration:e?e.configuration:[],R=Ht(T,this),N=new Kt({value:u||e.value,context:x,_event:n,_sessionid:e?e._sessionid:null,historyValue:u?l?(m=l,w=u,{current:w,states:L(m,w)}):void 0:e?e.historyValue:void 0,history:!u||t.source?e:void 0,actions:u?k:[],activities:u?y:e?e.activities:{},events:[],configuration:T,transitions:t.transitions,children:P,done:R,tags:null==e?void 0:e.tags}),D=f!==x;N.changed=n.name===lt||D;var C=N.history;C&&delete C.history;var F=!R&&(this._transient||s.some((function(t){return t._transient})));if(!(c||F&&""!==n.name))return N;var $=N;if(!R)for(F&&($=this.resolveRaisedTransition($,{type:rt},n));E.length;){var V=E.shift();$=this.resolveRaisedTransition($,V._event,n)}var M=$.changed||(C?!!$.actions.length||D||typeof C.value!=typeof $.value||!Jt($.value,C.value):void 0);return $.changed=M,$.history=C,$.tags=new Set(A($.configuration.map((function(t){return t.tags})))),$},t.prototype.getStateNode=function(t){if(oe(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=oe(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&&oe(t))try{return this.getStateNodeById(t.slice(1))}catch(t){}for(var e=w(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||ie;switch(this.type){case"parallel":return x(this.initialStateValue,(function(e,r){return e?n.getStateNode(r).resolve(t[r]||e):ie}));case"compound":if($(t)){var r=this.getStateNode(t);return"parallel"===r.type||"compound"===r.type?((e={})[t]=r.initialStateValue,e):t}return _(t).length?x(t,(function(t,e){return t?n.getStateNode(e).resolve(t):ie})):this.initialStateValue||{};default:return t||ie}},t.prototype.getResolvedPath=function(t){if(oe(t)){var e=this.machine.idMap[t.slice("#".length)];if(!e)throw new Error("Unable to find state node '"+t+"'");return e.path}return w(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=O(this.states,(function(t){return t.initialStateValue||ie}),(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=$t(this.states[this.initial])?this.initial:((t={})[this.initial]=this.states[this.initial].initialStateValue,t)}else e={};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=$(e.target)&&oe(e.target)?S(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 $t(this)?[this]:"compound"!==this.type||this.initial?A(k(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=v(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(_(this.states).length)return{current:t||this.initialStateValue,states:O(this.states,(function(e,n){if(!t)return e.historyValue();var r=$(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?A(k(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=d(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 $(a)?[n.getStateNode(a)]:A(k(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=A(_(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=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,d(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(!$(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 T(t)}(t.target),r="internal"in t?t.internal:!n||n.some((function(t){return $(t)&&t[0]===e.delimiter})),i=this.machine.options.guards,o=this.resolveTarget(n),a=h(h({},t),{actions:yt(T(t.actions)),cond:V(t.cond,i),target:o,source:this,internal:r,eventType:t.event,toJSON:function(){return h(h({},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=p(i,["*"]);n=A(_(c).map((function(t){return G(t,c[t])})).concat(G("*",s)))}else n=[];var u=this.config.always?G("",this.config.always):[],l=this.config.onDone?G(String(Tt(this.id)),this.config.onDone):[],f=A(this.invoke.map((function(t){var e=[];return t.onDone&&e.push.apply(e,y([],v(G(String(Rt(t.id)),t.onDone)))),t.onError&&e.push.apply(e,y([],v(G(String(Nt(t.id)),t.onError)))),e}))),h=this.after,g=A(y(y(y(y([],v(l)),v(f)),v(n)),v(u)).map((function(t){return T(t).map((function(t){return r.formatTransition(t)}))})));try{for(var b=d(h),m=b.next();!m.done;m=b.next()){var w=m.value;g.push(w)}}catch(e){t={error:e}}finally{try{m&&!m.done&&(e=b.return)&&e.call(b)}finally{if(t)throw t.error}}return g},t}();function se(t,e,n){return void 0===n&&(n=t.context),new ae(t,e,n)}function ce(t,e){return new ae(t,e)}const ue=At({failure:null}),le=At({errors:[]}),fe=At({edits:null}),he=At({data:null}),pe=le,de=At({failure:(t,e)=>e.data}),ve=At({errors:(t,e)=>e.data}),ye=At({data:(t,e)=>e.data}),ge=At({edits:(t,e)=>Object.assign(Object.assign({},t.edits),e.data)});const _e=ce({context:{data:null,edits:null,errors:[],failure:null},entry:["validate"],id:"nucleon",initial:"init",on:{DELETE:{actions:["clearData","clearEdits","clearErrors"],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:ue,clearErrors:le,clearEdits:fe,clearData:he,validate:pe,setFailure:de,setErrors:ve,setData:ye,applyEdit:ge}),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)})});var be;!function(t){t[t.List=0]="List",t[t.Set=1]="Set"}(be||(be={}));class me{constructor(t){this.__value=t,this.__tree=me.__parse(t)}static get True(){return je}static get False(){return we}static fromAttribute(t,e){return null===t?me.False:""===t||t===e?me.True:new me(t)}matches(t,e=!1){const n=this.zoom(t).toString();return e?"not=*"===n:""!==n}zoom(t){const[e,...n]=t.split(":"),{only:r,not:i}=this.__tree;if(null==r?void 0:r[e]){const t=new me(me.__stringify(r[e]));return 0===n.length?t:t.zoom(n.join(":"))}return!i||i.includes(e)?me.False:me.True}toString(){return this.__value}toAttribute(t=""){var e;return"*"===(null===(e=this.__tree.not)||void 0===e?void 0:e[0])?t:0===this.__value.trim().length?null:this.toString()}static __stringify(t,e=""){return t.only?Object.entries(t.only).reduce(((t,[n,r])=>{const i=me.__stringify(r,0===e.length?n:`${e}:${n}`);return 0===t.length?i:`${t} ${i}`}),""):t.not?`${0===e.length?"":`${e}:`}not=${t.not.join(",")}`:e}static __parse(t){const e={},n={branch:e,buffer:"",entity:be.List,tree:e};return Array.from(`${t} `).forEach(((e,r)=>{try{me.__processors[n.entity](n,e)}catch(e){const n="This error occured at: ",i=t=>t.substring(Math.max(0,r-30),r+30),o=i(t),a=" ".repeat(n.length)+i("^".padStart(r+1," "));throw new SyntaxError([e.message,`${n}${o}`,a].join("\n"))}})),e}}me.__processors={[be.List](t,e){var n,r,i,o;if(Array.isArray(t.branch))throw new SyntaxError("Paths are not allowed in sets.");if("="===e){if("not"===t.buffer){const e=null!==(n=t.branch.not)&&void 0!==n?n:[];return delete t.branch.only,t.branch.not=e,t.entity=be.Set,t.branch=e,void(t.buffer="")}throw new SyntaxError(`Unknown modifier "${t.buffer}".`)}if(/^\s$/.test(e)||":"===e){if(t.buffer.length>0){const n=t.buffer,a=null!==(i=null===(r=t.branch.only)||void 0===r?void 0:r[n])&&void 0!==i?i:{};":"!==e&&(a.not=["*"]),!0!==(null===(o=t.branch.not)||void 0===o?void 0:o.includes("*"))&&(t.branch.only=Object.assign(Object.assign({},t.branch.only),{[n]:a}),delete t.branch.not),t.branch=":"===e?a:t.tree,t.buffer=""}}else{if(!/^[a-z]|-$/.test(e))throw new SyntaxError(`Expected [a-z], "-", ":" or a whitespace, but got "${e}" instead.`);t.buffer+=e}},[be.Set](t,e){if(!Array.isArray(t.branch))throw new SyntaxError("Unexpected set item.");if(0!==t.buffer.length||!/^\s$/.test(e)){if(","===e||"*"===e||/^\s$/.test(e)){const n="*"===e?"*":t.buffer,r=new Set([...t.branch,n]),i=r.has("*")?new Set(["*"]):r;return t.branch.splice(0,t.branch.length,...i),t.entity=","===e?be.Set:be.List,t.branch=","===e?t.branch:t.tree,void(t.buffer="")}if(!/^[a-z]|-$/.test(e))throw new SyntaxError(`Expected [a-z], "-", "," or a whitespace, but got "${e}" instead.`);t.buffer+=e}}};const we=new me(""),je=new me("not=*");var Se=Array.isArray,xe=t?t.prototype:void 0,Oe=xe?xe.toString:void 0;function Ee(t){if("string"==typeof t)return t;if(Se(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,Ee)+"";if(e(t))return Oe?Oe.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n}function ke(t){if(!n(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}var Ae,Pe=i["__core-js_shared__"],Te=(Ae=/[^.]+$/.exec(Pe&&Pe.keys&&Pe.keys.IE_PROTO||""))?"Symbol(src)_1."+Ae:"";var Re=Function.prototype.toString;function Ne(t){if(null!=t){try{return Re.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var De=/^\[object .+?Constructor\]$/,Ie=Function.prototype,Le=Object.prototype,Ce=Ie.toString,Fe=Le.hasOwnProperty,$e=RegExp("^"+Ce.call(Fe).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ve(t){return!(!n(t)||(e=t,Te&&Te in e))&&(ke(t)?$e:De).test(Ne(t));var e}function Me(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return Ve(n)?n:void 0}var Ue=Me(i,"WeakMap"),ze=/^(?:0|[1-9]\d*)$/;function We(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&ze.test(t))&&t>-1&&t%1==0&&t<e}function Be(t,e){return t===e||t!=t&&e!=e}function qe(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function He(t){return null!=t&&qe(t.length)&&!ke(t)}var Je=Object.prototype;function Ge(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Je)}function Ze(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function Ke(t){return o(t)&&"[object Arguments]"==r(t)}var Qe=Object.prototype,Xe=Qe.hasOwnProperty,Ye=Qe.propertyIsEnumerable,tn=Ke(function(){return arguments}())?Ke:function(t){return o(t)&&Xe.call(t,"callee")&&!Ye.call(t,"callee")};var en="object"==typeof exports&&exports&&!exports.nodeType&&exports,nn=en&&"object"==typeof module&&module&&!module.nodeType&&module,rn=nn&&nn.exports===en?i.Buffer:void 0,on=(rn?rn.isBuffer:void 0)||function(){return!1},an={};function sn(t){return function(e){return t(e)}}an["[object Float32Array]"]=an["[object Float64Array]"]=an["[object Int8Array]"]=an["[object Int16Array]"]=an["[object Int32Array]"]=an["[object Uint8Array]"]=an["[object Uint8ClampedArray]"]=an["[object Uint16Array]"]=an["[object Uint32Array]"]=!0,an["[object Arguments]"]=an["[object Array]"]=an["[object ArrayBuffer]"]=an["[object Boolean]"]=an["[object DataView]"]=an["[object Date]"]=an["[object Error]"]=an["[object Function]"]=an["[object Map]"]=an["[object Number]"]=an["[object Object]"]=an["[object RegExp]"]=an["[object Set]"]=an["[object String]"]=an["[object WeakMap]"]=!1;var cn="object"==typeof exports&&exports&&!exports.nodeType&&exports,un=cn&&"object"==typeof module&&module&&!module.nodeType&&module,ln=un&&un.exports===cn&&a.process,fn=function(){try{var t=un&&un.require&&un.require("util").types;return t||ln&&ln.binding&&ln.binding("util")}catch(t){}}(),hn=fn&&fn.isTypedArray,pn=hn?sn(hn):function(t){return o(t)&&qe(t.length)&&!!an[r(t)]},dn=Object.prototype.hasOwnProperty;function vn(t,e){var n=Se(t),r=!n&&tn(t),i=!n&&!r&&on(t),o=!n&&!r&&!i&&pn(t),a=n||r||i||o,s=a?Ze(t.length,String):[],c=s.length;for(var u in t)!e&&!dn.call(t,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||We(u,c))||s.push(u);return s}function yn(t,e){return function(n){return t(e(n))}}var gn=yn(Object.keys,Object),_n=Object.prototype.hasOwnProperty;function bn(t){return He(t)?vn(t):function(t){if(!Ge(t))return gn(t);var e=[];for(var n in Object(t))_n.call(t,n)&&"constructor"!=n&&e.push(n);return e}(t)}var mn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wn=/^\w*$/;var jn=Me(Object,"create");var Sn=Object.prototype.hasOwnProperty;var xn=Object.prototype.hasOwnProperty;function On(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 En(t,e){for(var n=t.length;n--;)if(Be(t[n][0],e))return n;return-1}On.prototype.clear=function(){this.__data__=jn?jn(null):{},this.size=0},On.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},On.prototype.get=function(t){var e=this.__data__;if(jn){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Sn.call(e,t)?e[t]:void 0},On.prototype.has=function(t){var e=this.__data__;return jn?void 0!==e[t]:xn.call(e,t)},On.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=jn&&void 0===e?"__lodash_hash_undefined__":e,this};var kn=Array.prototype.splice;function An(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])}}An.prototype.clear=function(){this.__data__=[],this.size=0},An.prototype.delete=function(t){var e=this.__data__,n=En(e,t);return!(n<0)&&(n==e.length-1?e.pop():kn.call(e,n,1),--this.size,!0)},An.prototype.get=function(t){var e=this.__data__,n=En(e,t);return n<0?void 0:e[n][1]},An.prototype.has=function(t){return En(this.__data__,t)>-1},An.prototype.set=function(t,e){var n=this.__data__,r=En(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};var Pn=Me(i,"Map");function Tn(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 Rn(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])}}Rn.prototype.clear=function(){this.size=0,this.__data__={hash:new On,map:new(Pn||An),string:new On}},Rn.prototype.delete=function(t){var e=Tn(this,t).delete(t);return this.size-=e?1:0,e},Rn.prototype.get=function(t){return Tn(this,t).get(t)},Rn.prototype.has=function(t){return Tn(this,t).has(t)},Rn.prototype.set=function(t,e){var n=Tn(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function Nn(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(Nn.Cache||Rn),n}Nn.Cache=Rn;var Dn,In,Ln,Cn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fn=/\\(\\)?/g,$n=(Dn=function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Cn,(function(t,n,r,i){e.push(r?i.replace(Fn,"$1"):n||t)})),e},In=Nn(Dn,(function(t){return 500===Ln.size&&Ln.clear(),t})),Ln=In.cache,In);function Vn(t,n){return Se(t)?t:function(t,n){if(Se(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!e(t))||wn.test(t)||!mn.test(t)||null!=n&&t in Object(n)}(t,n)?[t]:$n(function(t){return null==t?"":Ee(t)}(t))}function Mn(t){if("string"==typeof t||e(t))return t;var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n}function Un(t,e,n){var r=null==t?void 0:function(t,e){for(var n=0,r=(e=Vn(e,t)).length;null!=t&&n<r;)t=t[Mn(e[n++])];return n&&n==r?t:void 0}(t,e);return void 0===r?n:r}function zn(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function Wn(t){var e=this.__data__=new An(t);this.size=e.size}function Bn(){return[]}Wn.prototype.clear=function(){this.__data__=new An,this.size=0},Wn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Wn.prototype.get=function(t){return this.__data__.get(t)},Wn.prototype.has=function(t){return this.__data__.has(t)},Wn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof An){var r=n.__data__;if(!Pn||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Rn(r)}return n.set(t,e),this.size=n.size,this};var qn=Object.prototype.propertyIsEnumerable,Hn=Object.getOwnPropertySymbols,Jn=Hn?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}(Hn(t),(function(e){return qn.call(t,e)})))}:Bn;function Gn(t,e,n){var r=e(t);return Se(t)?r:zn(r,n(t))}function Zn(t){return Gn(t,bn,Jn)}var Kn=Me(i,"DataView"),Qn=Me(i,"Promise"),Xn=Me(i,"Set"),Yn=Ne(Kn),tr=Ne(Pn),er=Ne(Qn),nr=Ne(Xn),rr=Ne(Ue),ir=r;(Kn&&"[object DataView]"!=ir(new Kn(new ArrayBuffer(1)))||Pn&&"[object Map]"!=ir(new Pn)||Qn&&"[object Promise]"!=ir(Qn.resolve())||Xn&&"[object Set]"!=ir(new Xn)||Ue&&"[object WeakMap]"!=ir(new Ue))&&(ir=function(t){var e=r(t),n="[object Object]"==e?t.constructor:void 0,i=n?Ne(n):"";if(i)switch(i){case Yn:return"[object DataView]";case tr:return"[object Map]";case er:return"[object Promise]";case nr:return"[object Set]";case rr:return"[object WeakMap]"}return e});var or=ir,ar=i.Uint8Array;function sr(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Rn;++e<n;)this.add(t[e])}function cr(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 ur(t,e){return t.has(e)}sr.prototype.add=sr.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},sr.prototype.has=function(t){return this.__data__.has(t)};function lr(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 sr:void 0;for(o.set(t,e),o.set(e,t);++f<s;){var d=t[f],v=e[f];if(r)var y=a?r(v,d,f,e,t,o):r(d,v,f,t,e,o);if(void 0!==y){if(y)continue;h=!1;break}if(p){if(!cr(e,(function(t,e){if(!ur(p,e)&&(d===t||i(d,t,n,r,o)))return p.push(e)}))){h=!1;break}}else if(d!==v&&!i(d,v,n,r,o)){h=!1;break}}return o.delete(t),o.delete(e),h}function fr(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function hr(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var pr=t?t.prototype:void 0,dr=pr?pr.valueOf:void 0;var vr=Object.prototype.hasOwnProperty;var yr="[object Object]",gr=Object.prototype.hasOwnProperty;function _r(t,e,n,r,i,o){var a=Se(t),s=Se(e),c=a?"[object Array]":or(t),u=s?"[object Array]":or(e),l=(c="[object Arguments]"==c?yr:c)==yr,f=(u="[object Arguments]"==u?yr:u)==yr,h=c==u;if(h&&on(t)){if(!on(e))return!1;a=!0,l=!1}if(h&&!l)return o||(o=new Wn),a||pn(t)?lr(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 ar(t),new ar(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Be(+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=fr;case"[object Set]":var c=1&r;if(s||(s=hr),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=lr(s(t),s(e),r,i,o,a);return a.delete(t),l;case"[object Symbol]":if(dr)return dr.call(t)==dr.call(e)}return!1}(t,e,c,n,r,i,o);if(!(1&n)){var p=l&&gr.call(t,"__wrapped__"),d=f&&gr.call(e,"__wrapped__");if(p||d){var v=p?t.value():t,y=d?e.value():e;return o||(o=new Wn),i(v,y,n,r,o)}}return!!h&&(o||(o=new Wn),function(t,e,n,r,i,o){var a=1&n,s=Zn(t),c=s.length;if(c!=Zn(e).length&&!a)return!1;for(var u=c;u--;){var l=s[u];if(!(a?l in e:vr.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 v=t[l=s[u]],y=e[l];if(r)var g=a?r(y,v,l,e,t,o):r(v,y,l,t,e,o);if(!(void 0===g?v===y||i(v,y,n,r,o):g)){p=!1;break}d||(d="constructor"==l)}if(p&&!d){var _=t.constructor,b=e.constructor;_==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof _&&_ instanceof _&&"function"==typeof b&&b instanceof b||(p=!1)}return o.delete(t),o.delete(e),p}(t,e,n,r,i,o))}function br(t,e,n,r,i){return t===e||(null==t||null==e||!o(t)&&!o(e)?t!=t&&e!=e:_r(t,e,n,r,br,i))}function mr(t,e){return br(t,e)}class wr extends Error{constructor(){super("not enough info to update; please reload resource instead")}}var jr=s((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,v={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){v.isRoot||(v.parent.node[v.key]=t),v.node=t,e&&(d=!1)},delete:function(t){delete v.parent.node[v.key],t&&(d=!1)},remove:function(t){s(v.parent.node)?v.parent.node.splice(v.key,1):delete v.parent.node[v.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 v;function y(){if("object"==typeof v.node&&null!==v.node){v.keys&&v.node_===v.node||(v.keys=o(v.node)),v.isLeaf=0==v.keys.length;for(var t=0;t<a.length;t++)if(a[t].node_===f){v.circular=a[t];break}}else v.isLeaf=!0,v.keys=null;v.notLeaf=!v.isLeaf,v.notRoot=!v.isRoot}y();var g=e.call(v,v.node);return void 0!==g&&v.update&&v.update(g),p.before&&p.before.call(v,v.node),d?("object"!=typeof v.node||null===v.node||v.circular||(a.push(v),y(),c(v.keys,(function(e,i){r.push(e),p.pre&&p.pre.call(v,v.node[e],e);var o=t(v.node[e]);n&&u.call(v.node,e)&&(v.node[e]=o.node),o.isLast=i==v.keys.length-1,o.isFirst=0==i,p.post&&p.post.call(v,o),r.pop()})),a.pop()),p.after&&p.after.call(v,v.node),v):v}(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 Sr{constructor(){this.__callbacks=[]}share(t){const{related:e,source:n,data:r}=t,i=null===r?new Map([[n,null]]):Sr.__createPatch(r);[...this.__callbacks].forEach((t=>{t((t=>{const n=Sr.__applyPatch(i,t,e);return mr(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 __isResource(t){return"string"==typeof Un(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 jr(t).reduce((function(t,e){if(!Sr.__isResource(e))return t;const n=jr(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=>Sr.__approximateURI(t))))&&void 0!==r?r:[];return null!==(i=jr({data:e}).map((function(e){if(!Sr.__isResource(e))return;const n=e._links.self.href,r=Sr.__approximateURI(n);if(o.includes(r))throw new Sr.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 Sr.UpdateError}})).data)&&void 0!==i?i:null}}Sr.UpdateError=wr;var xr=s((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=[],v=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}();v.prototype.add=v.prototype.addReporter,v.prototype.remove=v.prototype.removeReporter,v.prototype.clear=v.prototype.removeReporter,v.prototype.withScope=v.prototype.withTag,v.prototype.mock=v.prototype.mockTypes,v.prototype.pause=v.prototype.pauseLogs,v.prototype.resume=v.prototype.resumeLogs;var y,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||((y=new v({reporters:[new g]})).Consola=v,y.LogLevel=l,y.BrowserReporter=g,y)}()})),Or=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},Er=function(){function t(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)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),kr=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e},Ar=function(){function t(e,n,r,i){Or(this,t),this.name=e,this.fn=n,this.args=r,this.modifiers=i}return Er(t,[{key:"_test",value:function(t){var e=this.fn;try{Tr(this.modifiers.slice(),e)(t)}catch(t){e=function(){return!1}}try{return Tr(this.modifiers.slice(),e)(t)}catch(t){return!1}}},{key:"_check",value:function(t){try{Tr(this.modifiers.slice(),this.fn)(t)}catch(t){if(Tr(this.modifiers.slice(),(function(t){return t}))(!1))return}if(!Tr(this.modifiers.slice(),this.fn)(t))throw null}},{key:"_testAsync",value:function(t){var e=this;return new Promise((function(n,r){Rr(e.modifiers.slice(),e.fn)(t).then((function(e){e?n(t):r(null)})).catch((function(t){return r(t)}))}))}}]),t}();function Pr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"simple";return"object"==typeof t?t[e]:t}function Tr(t,e){if(t.length){var n=t.shift(),r=Tr(t,e);return n.perform(r)}return Pr(e)}function Rr(t,e){if(t.length){var n=t.shift(),r=Rr(t,e);return n.performAsync(r)}return function(t){return Promise.resolve(Pr(e,"async")(t))}}var Nr=function t(e,n,r){Or(this,t),this.name=e,this.perform=n,this.performAsync=r},Dr=function(t){function e(t,n,r,i){Or(this,e);for(var o=arguments.length,a=Array(o>4?o-4:0),s=4;s<o;s++)a[s-4]=arguments[s];var c=kr(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,a));return Error.captureStackTrace&&Error.captureStackTrace(c,e),c.rule=t,c.value=n,c.cause=r,c.target=i,c}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,Error),e}(),Ir=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];Or(this,t),this.chain=e,this.nextRuleModifiers=n}return Er(t,[{key:"_applyRule",value:function(t,e){var n=this;return function(){for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return n.chain.push(new Ar(e,t.apply(n,i),i,n.nextRuleModifiers)),n.nextRuleModifiers=[],n}}},{key:"_applyModifier",value:function(t,e){return this.nextRuleModifiers.push(new Nr(e,t.simple,t.async)),this}},{key:"_clone",value:function(){return new t(this.chain.slice(),this.nextRuleModifiers.slice())}},{key:"test",value:function(t){return this.chain.every((function(e){return e._test(t)}))}},{key:"testAll",value:function(t){var e=[];return this.chain.forEach((function(n){try{n._check(t)}catch(r){e.push(new Dr(n,t,r))}})),e}},{key:"check",value:function(t){this.chain.forEach((function(e){try{e._check(t)}catch(n){throw new Dr(e,t,n)}}))}},{key:"testAsync",value:function(t){var e=this;return new Promise((function(n,r){Lr(t,e.chain.slice(),n,r)}))}}]),t}();function Lr(t,e,n,r){if(e.length){var i=e.shift();i._testAsync(t).then((function(){Lr(t,e,n,r)}),(function(e){r(new Dr(i,t,e))}))}else n(t)}function Cr(){return $r(new Ir)}var Fr={};function $r(t){return new Proxy(t,{get:function(e,n){if(n in e)return e[n];var r=$r(t._clone());return n in Vr?r._applyModifier(Vr[n],n):n in Fr?r._applyRule(Fr[n],n):n in Ur?r._applyRule(Ur[n],n):void 0}})}Cr.extend=function(t){Object.assign(Fr,t)},Cr.clearCustomRules=function(){Fr={}};var Vr={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(t){return!0}))}}},some:{simple:function(t){return function(e){return Mr(e).some((function(e){try{return t(e)}catch(t){return!1}}))}},async:function(t){return function(e){return Promise.all(Mr(e).map((function(e){try{return t(e).catch((function(t){return!1}))}catch(t){return!1}}))).then((function(t){return t.some(Boolean)}))}}},every:{simple:function(t){return function(e){return Mr(e).every(t)}},async:function(t){return function(e){return Promise.all(Mr(e).map(t)).then((function(t){return t.every(Boolean)}))}}}};function Mr(t){return"string"==typeof t?t.split(""):t}var Ur={equal:function(t){return function(e){return e==t}},exact:function(t){return function(e){return e===t}},number:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(e){return"number"==typeof e&&(t||isFinite(e))}},integer:function(){return function(t){return(Number.isInteger||Wr)(t)}},numeric:function(){return function(t){return!isNaN(parseFloat(t))&&isFinite(t)}},string:function(){return zr("string")},boolean:function(){return zr("boolean")},undefined:function(){return zr("undefined")},null:function(){return zr("null")},array:function(){return zr("array")},object:function(){return zr("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/^([a-z]+\s*)+$/.test(t)}},uppercase:function(){return function(t){return/^([A-Z]+\s*)+$/.test(t)}},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(t){if(n.length>0)throw n;return!0}))}}}(t)},passesAnyOf:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return e.some((function(e){return e.test(t)}))}},optional:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){return e&&"string"==typeof n&&""===n.trim()||null!=n&&t.check(n),!0}}};function zr(t){return function(e){return Array.isArray(e)&&"array"===t||null===e&&"null"===t||typeof e===t}}function Wr(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}Cr.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 Br=Cr().schema({clear:Cr().typeOf("function"),getItem:Cr().typeOf("function"),key:Cr().typeOf("function"),length:Cr().number(),removeItem:Cr().typeOf("function"),setItem:Cr().typeOf("function")});class qr extends Error{constructor(t){qr.v8n.constructor.check(t),super(`authentication failed with code ${t.code}`),this.originalError=t.originalError,this.code=t.code}}qr.NEW_PASSWORD_REQUIRED="NEW_PASSWORD_REQUIRED",qr.INVALID_NEW_PASSWORD="INVALID_NEW_PASSWORD",qr.UNAUTHORIZED="UNAUTHORIZED",qr.UNKNOWN="UNKNOWN",qr.v8n={constructor:Cr().schema({code:Cr().passesAnyOf(Cr().exact(qr.NEW_PASSWORD_REQUIRED),Cr().exact(qr.INVALID_NEW_PASSWORD),Cr().exact(qr.UNAUTHORIZED),Cr().exact(qr.UNKNOWN))})};var Hr=u(s((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),t},t.exports.default=t.exports,t.exports.__esModule=!0}))),Jr=s((function(t){t.exports=function(t,e){return e.get?e.get.call(t):e.value},t.exports.default=t.exports,t.exports.__esModule=!0})),Gr=s((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.default=t.exports,t.exports.__esModule=!0})),Zr=u(s((function(t){t.exports=function(t,e){var n=Gr(t,e,"get");return Jr(t,n)},t.exports.default=t.exports,t.exports.__esModule=!0}))),Kr=new WeakMap,Qr=function(){function t(){Kr.set(this,{writable:!0,value:new Map})}var e=t.prototype;return e.key=function(t){t=Number.parseInt(t,10);for(var e=Zr(this,Kr).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=Zr(this,Kr).get(""+t))?e:null},e.setItem=function(t,e){Zr(this,Kr).set(""+t,""+e)},e.removeItem=function(t){Zr(this,Kr).delete(""+t)},e.clear=function(){Zr(this,Kr).clear()},Hr(t,[{key:"length",get:function(){return Zr(this,Kr).size}}]),t}();class Xr extends Error{constructor(t){super(),Xr.v8n.constructor.check(t),this.response=t}}Xr.v8n={constructor:Cr().instanceOf(l.Response)};var Yr=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())}))},ti=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 ei(t){const{json:e}=t,n=ti(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 ai(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=>ei(Object.assign(Object.assign({},n),{json:t})))):ei(Object.assign(Object.assign({},n),{json:r}))})),{})}return e}class ni extends l.Response{constructor(t){ni.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 Yr(this,void 0,void 0,(function*(){const e=yield t.json.call(this),n={cache:this._cache,console:this._console,fetch:this._fetch};return ei(Object.assign({json:e},n))}))}}ni.v8n={constructor:Cr().schema({cache:Br,console:Cr().instanceOf(xr.constructor),fetch:Cr().typeOf("function")})};var ri=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 ii(t,e){const n=""===t?"":t+":";return"string"==typeof e?n+e:Array.isArray(e)?e.map((e=>ii(t,e))).join():Object.entries(e).map((([t,e])=>ii(n+t,e))).join()}function oi(t){return"string"==typeof t?t:Array.isArray(t)?t.map((t=>oi(t))).join():Object.entries(t).map((([t,e])=>`${t} ${e}`)).join()}class ai{constructor(t){ai.v8n.classConstructor.check(t),this._path=t.path,this._fetch=t.fetch,this._cache=t.cache,this._console=t.console}get(t){return ri(this,void 0,void 0,(function*(){ai.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=>{[...new URLSearchParams(t).entries()].forEach((([t,n])=>e.searchParams.append(t,n)))})),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",oi(a)),void 0!==s&&e.searchParams.set("zoom",ii("",s));const c=yield this._fetch(new l.Request(e.toString())),u={cache:this._cache,console:this._console,fetch:this._fetch};return new ni(Object.assign(Object.assign(Object.assign({},u),c),{body:yield c.text()}))}))}put(t){return ri(this,void 0,void 0,(function*(){const e=yield this._resolve(),n=new l.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 ni(Object.assign(Object.assign(Object.assign({},i),r),{body:yield r.text()}))}))}post(t){return ri(this,void 0,void 0,(function*(){const e=yield this._resolve(),n=new l.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 ni(Object.assign(Object.assign(Object.assign({},i),r),{body:yield r.text()}))}))}patch(t){return ri(this,void 0,void 0,(function*(){const e=yield this._resolve(),n=new l.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 ni(Object.assign(Object.assign(Object.assign({},i),r),{body:yield r.text()}))}))}delete(){return ri(this,void 0,void 0,(function*(){const t=yield this._resolve(),e=new l.Request(t.toString(),{method:"DELETE"}),n=yield this._fetch(e),r={cache:this._cache,console:this._console,fetch:this._fetch};return new ni(Object.assign(Object.assign(Object.assign({},r),n),{body:yield n.text()}))}))}follow(t){ai.v8n.follow.check(t);const e={cache:this._cache,console:this._console,fetch:this._fetch},n=this._path.concat(t);return new ai(Object.assign(Object.assign({},e),{path:n}))}_resolve(){return ri(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 ai(Object.assign(Object.assign({},r),{path:t}))._resolve()}const o=yield this._fetch(t.toString());if(o.ok){const t=yield o.json(),i=new URL(t._links[e].href),a=[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 ai(Object.assign(Object.assign({},r),{path:a}))._resolve()}throw this._console.error(`Failed to resolve ${n}.`),new Xr(o)}))}}ai.v8n={classConstructor:Cr().schema({cache:Br,console:Cr().instanceOf(xr.constructor),fetch:Cr().typeOf("function"),path:Cr().curieChain()}),follow:Cr().string(),get:Cr().optional(Cr().schema({fields:Cr().optional(Cr().array().every.string()),filters:Cr().optional(Cr().array().every.string()),limit:Cr().optional(Cr().number()),offset:Cr().optional(Cr().number()),order:Cr().optional(Cr().passesAnyOf(Cr().string(),Cr().object(),Cr().array())),zoom:Cr().optional(Cr().passesAnyOf(Cr().string(),Cr().object(),Cr().array()))}))},ai.ResolutionError=Xr,ai.Response=ni;var si=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 ci extends ai{constructor(t){var e,n,r;ci.v8n.classConstructor.check(t),super({cache:null!==(e=t.cache)&&void 0!==e?e:new Qr,console:xr.create({level:t.level}).withTag("@foxy.io/sdk"),fetch:null!==(n=t.fetch)&&void 0!==n?n:l.fetch,path:[t.base]}),this.console=this._console,this.storage=null!==(r=t.storage)&&void 0!==r?r:new Qr,this.cache=this._cache,this.base=t.base}fetch(...t){return si(this,void 0,void 0,(function*(){return this._fetch(...t)}))}}ci.WHATWGResponse=l.Response,ci.WHATWGRequest=l.Request,ci.WHATWGHeaders=l.Headers,ci.whatwgFetch=l.fetch,ci.AuthError=qr,ci.Node=ai,ci.v8n={classConstructor:Cr().schema({base:Cr().instanceOf(URL),cache:Cr().optional(Br),fetch:Cr().optional(Cr().typeOf("function")),level:Cr().optional(Cr().integer()),storage:Cr().optional(Br)})};export{Ot as $,ci as A,me as B,te as C,M as D,D as E,f as F,lt as G,Nt as H,W as I,C as J,H as K,$ as L,q as M,ut as N,Gt as O,Kt as P,y as Q,Sr as R,z as S,v as T,Zt as U,_t as V,bt as W,mt as X,wt as Y,xt as Z,h as _,At as a,Et as a0,kt as a1,Pt as a2,Tt as a3,jt as a4,It as a5,Lt as a6,Ct as a7,Dt as a8,ce as a9,Cr as aa,Me as ab,Be as ac,He as ad,We as ae,Ge as af,vn as ag,yn as ah,bn as ai,Jn as aj,Bn as ak,zn as al,Gn as am,ar as an,or as ao,fn as ap,sn as aq,on as ar,Wn as as,Se as at,Zn as au,Ze as av,se as aw,mr as ax,Nn as b,ee as c,Q as d,d as e,R as f,Rt as g,pt as h,Ht as i,F as j,_ as k,J as l,_e as m,ct as n,dt as o,Qt as p,ot as q,X as r,Y as s,jr as t,U as u,K as v,B as w,nt as x,et as y,N as z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as t,g as e,a as r,b as o,d as a,r as n,i,e as s,t as l,m as c,T as u,f as p,j as d,L as f,_ as g}from"./shared-17968c53.js";function h(t){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function m(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function v(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?Object(arguments[e]):{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),o.forEach((function(e){m(t,e,r[e])}))}return t}function b(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function w(t,e,r){return e&&y(t.prototype,e),r&&y(t,r),t}var x=e(t((function(t){function e(r){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(t.exports=e=function(t){return typeof t},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.default=t.exports,t.exports.__esModule=!0),e(r)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0})));function k(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function S(t,e){return!e||"object"!==x(e)&&"function"!=typeof e?k(t):e}function L(t){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function O(t,e){return(O=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function j(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}}),e&&O(t,e)}var R={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,e){console&&console[t]&&console[t].apply(console,e)}},C=new(function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};b(this,t),this.init(e,r)}return w(t,[{key:"init",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=e.prefix||"i18next:",this.logger=t||R,this.options=e,this.debug=e.debug}},{key:"setDebug",value:function(t){this.debug=t}},{key:"log",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.forward(e,"log","",!0)}},{key:"warn",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.forward(e,"warn","",!0)}},{key:"error",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.forward(e,"error","")}},{key:"deprecate",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(t,e,r,o){return o&&!this.debug?null:("string"==typeof t[0]&&(t[0]="".concat(r).concat(this.prefix," ").concat(t[0])),this.logger[e](t))}},{key:"create",value:function(e){return new t(this.logger,v({},{prefix:"".concat(this.prefix,":").concat(e,":")},this.options))}}]),t}()),E=function(){function t(){b(this,t),this.observers={}}return w(t,[{key:"on",value:function(t,e){var r=this;return t.split(" ").forEach((function(t){r.observers[t]=r.observers[t]||[],r.observers[t].push(e)})),this}},{key:"off",value:function(t,e){this.observers[t]&&(e?this.observers[t]=this.observers[t].filter((function(t){return t!==e})):delete this.observers[t])}},{key:"emit",value:function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];if(this.observers[t]){var a=[].concat(this.observers[t]);a.forEach((function(t){t.apply(void 0,r)}))}if(this.observers["*"]){var n=[].concat(this.observers["*"]);n.forEach((function(e){e.apply(e,[t].concat(r))}))}}}]),t}();function N(){var t,e,r=new Promise((function(r,o){t=r,e=o}));return r.resolve=t,r.reject=e,r}function _(t){return null==t?"":""+t}function P(t,e,r){t.forEach((function(t){e[t]&&(r[t]=e[t])}))}function z(t,e,r){function o(t){return t&&t.indexOf("###")>-1?t.replace(/###/g,"."):t}function a(){return!t||"string"==typeof t}for(var n="string"!=typeof e?[].concat(e):e.split(".");n.length>1;){if(a())return{};var i=o(n.shift());!t[i]&&r&&(t[i]=new r),t=Object.prototype.hasOwnProperty.call(t,i)?t[i]:{}}return a()?{}:{obj:t,k:o(n.shift())}}function T(t,e,r){var o=z(t,e,Object);o.obj[o.k]=r}function M(t,e){var r=z(t,e),o=r.obj,a=r.k;if(o)return o[a]}function A(t,e,r){var o=M(t,r);return void 0!==o?o:M(e,r)}function F(t,e,r){for(var o in e)"__proto__"!==o&&"constructor"!==o&&(o in t?"string"==typeof t[o]||t[o]instanceof String||"string"==typeof e[o]||e[o]instanceof String?r&&(t[o]=e[o]):F(t[o],e[o],r):t[o]=e[o]);return t}function I(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var U={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function H(t){return"string"==typeof t?t.replace(/[&<>"'\/]/g,(function(t){return U[t]})):t}var q="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,V=function(t){function e(t){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return b(this,e),r=S(this,L(e).call(this)),q&&E.call(k(r)),r.data=t||{},r.options=o,void 0===r.options.keySeparator&&(r.options.keySeparator="."),r}return j(e,E),w(e,[{key:"addNamespaces",value:function(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}},{key:"removeNamespaces",value:function(t){var e=this.options.ns.indexOf(t);e>-1&&this.options.ns.splice(e,1)}},{key:"getResource",value:function(t,e,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,n=[t,e];return r&&"string"!=typeof r&&(n=n.concat(r)),r&&"string"==typeof r&&(n=n.concat(a?r.split(a):r)),t.indexOf(".")>-1&&(n=t.split(".")),M(this.data,n)}},{key:"addResource",value:function(t,e,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=[t,e];r&&(i=i.concat(n?r.split(n):r)),t.indexOf(".")>-1&&(o=e,e=(i=t.split("."))[1]),this.addNamespaces(e),T(this.data,i,o),a.silent||this.emit("added",t,e,r,o)}},{key:"addResources",value:function(t,e,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(t,e,a,r[a],{silent:!0});o.silent||this.emit("added",t,e,r)}},{key:"addResourceBundle",value:function(t,e,r,o,a){var n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},i=[t,e];t.indexOf(".")>-1&&(o=r,r=e,e=(i=t.split("."))[1]),this.addNamespaces(e);var s=M(this.data,i)||{};o?F(s,r,a):s=v({},s,r),T(this.data,i,s),n.silent||this.emit("added",t,e,r)}},{key:"removeResourceBundle",value:function(t,e){this.hasResourceBundle(t,e)&&delete this.data[t][e],this.removeNamespaces(e),this.emit("removed",t,e)}},{key:"hasResourceBundle",value:function(t,e){return void 0!==this.getResource(t,e)}},{key:"getResourceBundle",value:function(t,e){return e||(e=this.options.defaultNS),"v1"===this.options.compatibilityAPI?v({},{},this.getResource(t,e)):this.getResource(t,e)}},{key:"getDataByLanguage",value:function(t){return this.data[t]}},{key:"toJSON",value:function(){return this.data}}]),e}(),D={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,e,r,o,a){var n=this;return t.forEach((function(t){n.processors[t]&&(e=n.processors[t].process(e,r,o,a))})),e}},$={},B=function(t){function e(t){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return b(this,e),r=S(this,L(e).call(this)),q&&E.call(k(r)),P(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,k(r)),r.options=o,void 0===r.options.keySeparator&&(r.options.keySeparator="."),r.logger=C.create("translator"),r}return j(e,E),w(e,[{key:"changeLanguage",value:function(t){t&&(this.language=t)}},{key:"exists",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},r=this.resolve(t,e);return r&&void 0!==r.res}},{key:"extractFromKey",value:function(t,e){var r=void 0!==e.nsSeparator?e.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");var o=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,a=e.ns||this.options.defaultNS;if(r&&t.indexOf(r)>-1){var n=t.match(this.interpolator.nestingRegexp);if(n&&n.length>0)return{key:t,namespaces:a};var i=t.split(r);(r!==o||r===o&&this.options.ns.indexOf(i[0])>-1)&&(a=i.shift()),t=i.join(o)}return"string"==typeof a&&(a=[a]),{key:t,namespaces:a}}},{key:"translate",value:function(t,r,o){var a=this;if("object"!==h(r)&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r||(r={}),null==t)return"";Array.isArray(t)||(t=[String(t)]);var n=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=this.extractFromKey(t[t.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 f=this.resolve(t,r),g=f&&f.res,m=f&&f.usedKey||s,b=f&&f.exactUsedKey||s,y=Object.prototype.toString.apply(g),w=["[object Number]","[object Function]","[object RegExp]"],x=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,k=!this.i18nFormat||this.i18nFormat.handleAsObject,S="string"!=typeof g&&"boolean"!=typeof g&&"number"!=typeof g;if(k&&g&&S&&w.indexOf(y)<0&&("string"!=typeof x||"[object Array]"!==y)){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(m,g,r):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(n){var L="[object Array]"===y,O=L?[]:{},j=L?b:m;for(var R in g)if(Object.prototype.hasOwnProperty.call(g,R)){var C="".concat(j).concat(n).concat(R);O[R]=this.translate(C,v({},r,{joinArrays:!1,ns:l})),O[R]===C&&(O[R]=g[R])}g=O}}else if(k&&"string"==typeof x&&"[object Array]"===y)(g=g.join(x))&&(g=this.extendTranslation(g,t,r,o));else{var E=!1,N=!1,_=void 0!==r.count&&"string"!=typeof r.count,P=e.hasDefaultValue(r),z=_?this.pluralResolver.getSuffix(u,r.count):"",T=r["defaultValue".concat(z)]||r.defaultValue;!this.isValidLookup(g)&&P&&(E=!0,g=T),this.isValidLookup(g)||(N=!0,g=s);var M=P&&T!==g&&this.options.updateMissing;if(N||E||M){if(this.logger.log(M?"updateKey":"missingKey",u,c,s,M?T:g),n){var A=this.resolve(s,v({},r,{keySeparator:!1}));A&&A.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 F=[],I=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if("fallback"===this.options.saveMissingTo&&I&&I[0])for(var U=0;U<I.length;U++)F.push(I[U]);else"all"===this.options.saveMissingTo?F=this.languageUtils.toResolveHierarchy(r.lng||this.language):F.push(r.lng||this.language);var H=function(t,e,o){a.options.missingKeyHandler?a.options.missingKeyHandler(t,c,e,M?o:g,M,r):a.backendConnector&&a.backendConnector.saveMissing&&a.backendConnector.saveMissing(t,c,e,M?o:g,M,r),a.emit("missingKey",t,c,e,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&_?F.forEach((function(t){a.pluralResolver.getSuffixes(t).forEach((function(e){H([t],s+e,r["defaultValue".concat(e)]||T)}))})):H(F,s,T))}g=this.extendTranslation(g,t,r,f,o),N&&g===s&&this.options.appendNamespaceToMissingKey&&(g="".concat(c,":").concat(s)),N&&this.options.parseMissingKeyHandler&&(g=this.options.parseMissingKeyHandler(g))}return g}},{key:"extendTranslation",value:function(t,e,r,o,a){var n=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,r,o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(v({},r,{interpolation:v({},this.options.interpolation,r.interpolation)}));var i,s=r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(s){var l=t.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=v({},this.options.interpolation.defaultVariables,c)),t=this.interpolator.interpolate(t,c,r.lng||this.language,r),s){var u=t.match(this.interpolator.nestingRegexp);i<(u&&u.length)&&(r.nest=!1)}!1!==r.nest&&(t=this.interpolator.nest(t,(function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;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(e[0])),null):n.translate.apply(n,o.concat([e]))}),r)),r.interpolation&&this.interpolator.reset()}var p=r.postProcess||this.options.postProcess,d="string"==typeof p?[p]:p;return null!=t&&d&&d.length&&!1!==r.applyPostProcessor&&(t=D.handle(d,t,e,this.options&&this.options.postProcessPassResolved?v({i18nResolved:o},r):r,this)),t}},{key:"resolve",value:function(t){var e,r,o,a,n,i=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof t&&(t=[t]),t.forEach((function(t){if(!i.isValidLookup(e)){var l=i.extractFromKey(t,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,f=s.lngs?s.lngs:i.languageUtils.toResolveHierarchy(s.lng||i.language,s.fallbackLng);u.forEach((function(t){i.isValidLookup(e)||(n=t,!$["".concat(f[0],"-").concat(t)]&&i.utils&&i.utils.hasLoadedNamespace&&!i.utils.hasLoadedNamespace(n)&&($["".concat(f[0],"-").concat(t)]=!0,i.logger.warn('key "'.concat(r,'" for languages "').concat(f.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!!!")),f.forEach((function(r){if(!i.isValidLookup(e)){a=r;var n,l,u=c,f=[u];if(i.i18nFormat&&i.i18nFormat.addLookupKeys)i.i18nFormat.addLookupKeys(f,c,r,t,s);else p&&(n=i.pluralResolver.getSuffix(r,s.count)),p&&d&&f.push(u+n),d&&f.push(u+="".concat(i.options.contextSeparator).concat(s.context)),p&&f.push(u+=n);for(;l=f.pop();)i.isValidLookup(e)||(o=l,e=i.getResource(r,t,l,s))}})))}))}})),{res:e,usedKey:r,exactUsedKey:o,usedLng:a,usedNS:n}}},{key:"isValidLookup",value:function(t){return!(void 0===t||!this.options.returnNull&&null===t||!this.options.returnEmptyString&&""===t)}},{key:"getResource",value:function(t,e,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,e,r,o):this.resourceStore.getResource(t,e,r,o)}}],[{key:"hasDefaultValue",value:function(t){var e="defaultValue";for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&e===r.substring(0,e.length)&&void 0!==t[r])return!0;return!1}}]),e}();function K(t){return t.charAt(0).toUpperCase()+t.slice(1)}var W=function(){function t(e){b(this,t),this.options=e,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=C.create("languageUtils")}return w(t,[{key:"getScriptPartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return null;var e=t.split("-");return 2===e.length?null:(e.pop(),"x"===e[e.length-1].toLowerCase()?null:this.formatLanguageCode(e.join("-")))}},{key:"getLanguagePartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return t;var e=t.split("-");return this.formatLanguageCode(e[0])}},{key:"formatLanguageCode",value:function(t){if("string"==typeof t&&t.indexOf("-")>-1){var e=["hans","hant","latn","cyrl","cans","mong","arab"],r=t.split("-");return this.options.lowerCaseLng?r=r.map((function(t){return t.toLowerCase()})):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),e.indexOf(r[1].toLowerCase())>-1&&(r[1]=K(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()),e.indexOf(r[1].toLowerCase())>-1&&(r[1]=K(r[1].toLowerCase())),e.indexOf(r[2].toLowerCase())>-1&&(r[2]=K(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}},{key:"isWhitelisted",value:function(t){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(t)}},{key:"isSupportedCode",value:function(t){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}},{key:"getBestMatchFromCodes",value:function(t){var e,r=this;return t?(t.forEach((function(t){if(!e){var o=r.formatLanguageCode(t);r.options.supportedLngs&&!r.isSupportedCode(o)||(e=o)}})),!e&&this.options.supportedLngs&&t.forEach((function(t){if(!e){var o=r.getLanguagePartFromCode(t);if(r.isSupportedCode(o))return e=o;e=r.options.supportedLngs.find((function(t){if(0===t.indexOf(o))return t}))}})),e||(e=this.getFallbackCodes(this.options.fallbackLng)[0]),e):null}},{key:"getFallbackCodes",value:function(t,e){if(!t)return[];if("function"==typeof t&&(t=t(e)),"string"==typeof t&&(t=[t]),"[object Array]"===Object.prototype.toString.apply(t))return t;if(!e)return t.default||[];var r=t[e];return r||(r=t[this.getScriptPartFromCode(e)]),r||(r=t[this.formatLanguageCode(e)]),r||(r=t[this.getLanguagePartFromCode(e)]),r||(r=t.default),r||[]}},{key:"toResolveHierarchy",value:function(t,e){var r=this,o=this.getFallbackCodes(e||this.options.fallbackLng||[],t),a=[],n=function(t){t&&(r.isSupportedCode(t)?a.push(t):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(t)))};return"string"==typeof t&&t.indexOf("-")>-1?("languageOnly"!==this.options.load&&n(this.formatLanguageCode(t)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&n(this.getScriptPartFromCode(t)),"currentOnly"!==this.options.load&&n(this.getLanguagePartFromCode(t))):"string"==typeof t&&n(this.formatLanguageCode(t)),o.forEach((function(t){a.indexOf(t)<0&&n(r.formatLanguageCode(t))})),a}}]),t}(),X=[{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}],J={1:function(t){return Number(t>1)},2:function(t){return Number(1!=t)},3:function(t){return 0},4:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function(t){return Number(0==t?0:1==t?1:2==t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function(t){return Number(1==t?0:t>=2&&t<=4?1:2)},7:function(t){return Number(1==t?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function(t){return Number(1==t?0:2==t?1:8!=t&&11!=t?2:3)},9:function(t){return Number(t>=2)},10:function(t){return Number(1==t?0:2==t?1:t<7?2:t<11?3:4)},11:function(t){return Number(1==t||11==t?0:2==t||12==t?1:t>2&&t<20?2:3)},12:function(t){return Number(t%10!=1||t%100==11)},13:function(t){return Number(0!==t)},14:function(t){return Number(1==t?0:2==t?1:3==t?2:3)},15:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function(t){return Number(t%10==1&&t%100!=11?0:0!==t?1:2)},17:function(t){return Number(1==t||t%10==1&&t%100!=11?0:1)},18:function(t){return Number(0==t?0:1==t?1:2)},19:function(t){return Number(1==t?0:0==t||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function(t){return Number(1==t?0:0==t||t%100>0&&t%100<20?1:2)},21:function(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function(t){return Number(1==t?0:2==t?1:(t<0||t>10)&&t%10==0?2:3)}};function Y(){var t={};return X.forEach((function(e){e.lngs.forEach((function(r){t[r]={numbers:e.nr,plurals:J[e.fc]}}))})),t}var G=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};b(this,t),this.languageUtils=e,this.options=r,this.logger=C.create("pluralResolver"),this.rules=Y()}return w(t,[{key:"addRule",value:function(t,e){this.rules[t]=e}},{key:"getRule",value:function(t){return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}},{key:"needsPlural",value:function(t){var e=this.getRule(t);return e&&e.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(t,e){return this.getSuffixes(t).map((function(t){return e+t}))}},{key:"getSuffixes",value:function(t){var e=this,r=this.getRule(t);return r?r.numbers.map((function(r){return e.getSuffix(t,r)})):[]}},{key:"getSuffix",value:function(t,e){var r=this,o=this.getRule(t);if(o){var a=o.noAbs?o.plurals(e):o.plurals(Math.abs(e)),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(t)),""}}]),t}(),Q=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};b(this,t),this.logger=C.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(t){return t},this.init(e)}return w(t,[{key:"init",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});var e=t.interpolation;this.escape=void 0!==e.escape?e.escape:H,this.escapeValue=void 0===e.escapeValue||e.escapeValue,this.useRawValueToEscape=void 0!==e.useRawValueToEscape&&e.useRawValueToEscape,this.prefix=e.prefix?I(e.prefix):e.prefixEscaped||"{{",this.suffix=e.suffix?I(e.suffix):e.suffixEscaped||"}}",this.formatSeparator=e.formatSeparator?e.formatSeparator:e.formatSeparator||",",this.unescapePrefix=e.unescapeSuffix?"":e.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":e.unescapeSuffix||"",this.nestingPrefix=e.nestingPrefix?I(e.nestingPrefix):e.nestingPrefixEscaped||I("$t("),this.nestingSuffix=e.nestingSuffix?I(e.nestingSuffix):e.nestingSuffixEscaped||I(")"),this.nestingOptionsSeparator=e.nestingOptionsSeparator?e.nestingOptionsSeparator:e.nestingOptionsSeparator||",",this.maxReplaces=e.maxReplaces?e.maxReplaces:1e3,this.alwaysFormat=void 0!==e.alwaysFormat&&e.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var t="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(t,"g");var e="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(e,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function(t,e,r,o){var a,n,i,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(t){return t.replace(/\$/g,"$$$$")}var u=function(t){if(t.indexOf(s.formatSeparator)<0){var a=A(e,l,t);return s.alwaysFormat?s.format(a,void 0,r):a}var n=t.split(s.formatSeparator),i=n.shift().trim(),c=n.join(s.formatSeparator).trim();return s.format(A(e,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(t){return c(t)}},{regex:this.regexp,safeValue:function(t){return s.escapeValue?c(s.escape(t)):c(t)}}].forEach((function(e){for(i=0;a=e.regex.exec(t);){if(void 0===(n=u(a[1].trim())))if("function"==typeof p){var r=p(t,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(t)),n=""}else"string"==typeof n||s.useRawValueToEscape||(n=_(n));if(t=t.replace(a[0],e.safeValue(n)),e.regex.lastIndex=0,++i>=s.maxReplaces)break}})),t}},{key:"nest",value:function(t,e){var r,o,a=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=v({},n);function s(t,e){var r=this.nestingOptionsSeparator;if(t.indexOf(r)<0)return t;var o=t.split(new RegExp("".concat(r,"[ ]*{"))),a="{".concat(o[1]);t=o[0],a=(a=this.interpolate(a,i)).replace(/'/g,'"');try{i=JSON.parse(a),e&&(i=v({},e,i))}catch(e){return this.logger.warn("failed parsing options string in nesting for key ".concat(t),e),"".concat(t).concat(r).concat(a)}return delete i.defaultValue,t}for(i.applyPostProcessor=!1,delete i.defaultValue;r=this.nestingRegexp.exec(t);){var l=[],c=!1;if(r[0].includes(this.formatSeparator)&&!/{.*}/.test(r[1])){var u=r[1].split(this.formatSeparator).map((function(t){return t.trim()}));r[1]=u.shift(),l=u,c=!0}if((o=e(s.call(this,r[1].trim(),i),i))&&r[0]===t&&"string"!=typeof o)return o;"string"!=typeof o&&(o=_(o)),o||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(t)),o=""),c&&(o=l.reduce((function(t,e){return a.format(t,e,n.lng,n)}),o.trim())),t=t.replace(r[0],o),this.regexp.lastIndex=0}return t}}]),t}();var Z=function(t){function e(t,r,o){var a,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return b(this,e),a=S(this,L(e).call(this)),q&&E.call(k(a)),a.backend=t,a.store=r,a.services=o,a.languageUtils=o.languageUtils,a.options=n,a.logger=C.create("backendConnector"),a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(o,n.backend,n),a}return j(e,E),w(e,[{key:"queueLoad",value:function(t,e,r,o){var a=this,n=[],i=[],s=[],l=[];return t.forEach((function(t){var o=!0;e.forEach((function(e){var s="".concat(t,"|").concat(e);!r.reload&&a.store.hasResourceBundle(t,e)?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(e)<0&&l.push(e)))})),o||s.push(t)})),(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(t,e,r){var o=t.split("|"),a=o[0],n=o[1];e&&this.emit("failedLoading",a,n,e),r&&this.store.addResourceBundle(a,n,r),this.state[t]=e?-1:2;var i={};this.queue.forEach((function(r){var o,s,l,c,u,p;o=r.loaded,s=n,c=z(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(t,e){for(var r=t.indexOf(e);-1!==r;)t.splice(r,1),r=t.indexOf(e)}(r.pending,t),e&&r.errors.push(e),0!==r.pending.length||r.done||(Object.keys(r.loaded).forEach((function(t){i[t]||(i[t]=[]),r.loaded[t].length&&r.loaded[t].forEach((function(e){i[t].indexOf(e)<0&&i[t].push(e)}))})),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())})),this.emit("loaded",i),this.queue=this.queue.filter((function(t){return!t.done}))}},{key:"read",value:function(t,e,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 t.length?this.backend[r](t,e,(function(s,l){s&&l&&a<5?setTimeout((function(){o.read.call(o,t,e,r,a+1,2*n,i)}),n):i(s,l)})):i(null,{})}},{key:"prepareLoading",value:function(t,e){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 t&&(t=this.languageUtils.toResolveHierarchy(t)),"string"==typeof e&&(e=[e]);var n=this.queueLoad(t,e,o,a);if(!n.toLoad.length)return n.pending.length||a(),null;n.toLoad.forEach((function(t){r.loadOne(t)}))}},{key:"load",value:function(t,e,r){this.prepareLoading(t,e,{},r)}},{key:"reload",value:function(t,e,r){this.prepareLoading(t,e,{reload:!0},r)}},{key:"loadOne",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=t.split("|"),a=o[0],n=o[1];this.read(a,n,"read",void 0,void 0,(function(o,i){o&&e.logger.warn("".concat(r,"loading namespace ").concat(n," for language ").concat(a," failed"),o),!o&&i&&e.logger.log("".concat(r,"loaded namespace ").concat(n," for language ").concat(a),i),e.loaded(t,o,i)}))}},{key:"saveMissing",value:function(t,e,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(e)?this.logger.warn('did not save key "'.concat(r,'" as the namespace "').concat(e,'" 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(t,e,r,o,null,v({},n,{isUpdate:a})),t&&t[0]&&this.store.addResource(t[0],e,r,o))}}]),e}();function tt(){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(t){var e={};if("object"===h(t[1])&&(e=t[1]),"string"==typeof t[1]&&(e.defaultValue=t[1]),"string"==typeof t[2]&&(e.tDescription=t[2]),"object"===h(t[2])||"object"===h(t[3])){var r=t[3]||t[2];Object.keys(r).forEach((function(t){e[t]=r[t]}))}return e},interpolation:{escapeValue:!0,format:function(t,e,r,o){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function et(t){return"string"==typeof t.ns&&(t.ns=[t.ns]),"string"==typeof t.fallbackLng&&(t.fallbackLng=[t.fallbackLng]),"string"==typeof t.fallbackNS&&(t.fallbackNS=[t.fallbackNS]),t.whitelist&&(t.whitelist&&t.whitelist.indexOf("cimode")<0&&(t.whitelist=t.whitelist.concat(["cimode"])),t.supportedLngs=t.whitelist),t.nonExplicitWhitelist&&(t.nonExplicitSupportedLngs=t.nonExplicitWhitelist),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function rt(){}var ot=new(function(t){function e(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(b(this,e),t=S(this,L(e).call(this)),q&&E.call(k(t)),t.options=et(r),t.services={},t.logger=C,t.modules={external:[]},o&&!t.isInitialized&&!r.isClone){if(!t.options.initImmediate)return t.init(r,o),S(t,k(t));setTimeout((function(){t.init(r,o)}),0)}return t}return j(e,E),w(e,[{key:"init",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;function o(t){return t?"function"==typeof t?new t:t:null}if("function"==typeof e&&(r=e,e={}),e.whitelist&&!e.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),e.nonExplicitWhitelist&&!e.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=v({},tt(),this.options,et(e)),this.format=this.options.interpolation.format,r||(r=rt),!this.options.isClone){this.modules.logger?C.init(o(this.modules.logger),this.options):C.init(null,this.options);var a=new W(this.options);this.store=new V(this.options.resources,this.options);var n=this.services;n.logger=C,n.resourceStore=this.store,n.languageUtils=a,n.pluralResolver=new G(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),n.interpolator=new Q(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new Z(o(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on("*",(function(e){for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];t.emit.apply(t,[e].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 B(this.services,this.options),this.translator.on("*",(function(e){for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];t.emit.apply(t,[e].concat(o))})),this.modules.external.forEach((function(e){e.init&&e.init(t)}))}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(e){t[e]=function(){var r;return(r=t.store)[e].apply(r,arguments)}}));var l=["addResource","addResources","addResourceBundle","removeResourceBundle"];l.forEach((function(e){t[e]=function(){var r;return(r=t.store)[e].apply(r,arguments),t}}));var c=N(),u=function(){var e=function(e,o){t.isInitialized&&t.logger.warn("init: i18next is already initialized. You should call init just once!"),t.isInitialized=!0,t.options.isClone||t.logger.log("initialized",t.options),t.emit("initialized",t.options),c.resolve(o),r(e,o)};if(t.languages&&"v1"!==t.options.compatibilityAPI&&!t.isInitialized)return e(null,t.t.bind(t));t.changeLanguage(t.options.lng,e)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),c}},{key:"loadResources",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rt,o=r,a="string"==typeof t?t:this.language;if("function"==typeof t&&(o=t),!this.options.resources||this.options.partialBundledLanguages){if(a&&"cimode"===a.toLowerCase())return o();var n=[],i=function(t){t&&e.services.languageUtils.toResolveHierarchy(t).forEach((function(t){n.indexOf(t)<0&&n.push(t)}))};if(a)i(a);else{var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.forEach((function(t){return i(t)}))}this.options.preload&&this.options.preload.forEach((function(t){return i(t)})),this.services.backendConnector.load(n,this.options.ns,o)}else o(null)}},{key:"reloadResources",value:function(t,e,r){var o=N();return t||(t=this.languages),e||(e=this.options.ns),r||(r=rt),this.services.backendConnector.reload(t,e,(function(t){o.resolve(),r(t)})),o}},{key:"use",value:function(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===t.type&&(this.modules.backend=t),("logger"===t.type||t.log&&t.warn&&t.error)&&(this.modules.logger=t),"languageDetector"===t.type&&(this.modules.languageDetector=t),"i18nFormat"===t.type&&(this.modules.i18nFormat=t),"postProcessor"===t.type&&D.addPostProcessor(t),"3rdParty"===t.type&&this.modules.external.push(t),this}},{key:"changeLanguage",value:function(t,e){var r=this;this.isLanguageChangingTo=t;var o=N();this.emit("languageChanging",t);var a=function(t){var a="string"==typeof t?t:r.services.languageUtils.getBestMatchFromCodes(t);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(t){!function(t,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)})),e&&e(t,(function(){return r.t.apply(r,arguments)}))}(t,a)}))};return t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(t):a(this.services.languageDetector.detect()),o}},{key:"getFixedT",value:function(t,e){var r=this,o=function t(e,o){var a;if("object"!==h(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([e,o].concat(i))}else a=v({},o);return a.lng=a.lng||t.lng,a.lngs=a.lngs||t.lngs,a.ns=a.ns||t.ns,r.t(e,a)};return"string"==typeof t?o.lng=t:o.lngs=t,o.ns=e,o}},{key:"t",value:function(){var t;return this.translator&&(t=this.translator).translate.apply(t,arguments)}},{key:"exists",value:function(){var t;return this.translator&&(t=this.translator).exists.apply(t,arguments)}},{key:"setDefaultNamespace",value:function(t){this.options.defaultNS=t}},{key:"hasLoadedNamespace",value:function(t){var e=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(t,r){var o=e.services.backendConnector.state["".concat(t,"|").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,t)||(!this.services.backendConnector.backend||!(!i(o,t)||a&&!i(n,t)))}},{key:"loadNamespaces",value:function(t,e){var r=this,o=N();return this.options.ns?("string"==typeof t&&(t=[t]),t.forEach((function(t){r.options.ns.indexOf(t)<0&&r.options.ns.push(t)})),this.loadResources((function(t){o.resolve(),e&&e(t)})),o):(e&&e(),Promise.resolve())}},{key:"loadLanguages",value:function(t,e){var r=N();"string"==typeof t&&(t=[t]);var o=this.options.preload||[],a=t.filter((function(t){return o.indexOf(t)<0}));return a.length?(this.options.preload=o.concat(a),this.loadResources((function(t){r.resolve(),e&&e(t)})),r):(e&&e(),Promise.resolve())}},{key:"dir",value:function(t){if(t||(t=this.languages&&this.languages.length>0?this.languages[0]:this.language),!t)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(t))>=0?"rtl":"ltr"}},{key:"createInstance",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new e(t,r)}},{key:"cloneInstance",value:function(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rt,a=v({},this.options,r,{isClone:!0}),n=new e(a),i=["store","services","language"];return i.forEach((function(e){n[e]=t[e]})),n.services=v({},this.services),n.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},n.translator=new B(n.services,n.options),n.translator.on("*",(function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];n.emit.apply(n,[t].concat(r))})),n.init(a,o),n.translator.options=n.options,n.translator.backendConnector.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},n}}]),e}());function at(t){return(at="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var nt=[],it=nt.forEach,st=nt.slice;function lt(t){return it.call(st.call(arguments,1),(function(e){if(e)for(var r in e)void 0===t[r]&&(t[r]=e[r])})),t}function ct(){return"function"==typeof XMLHttpRequest||"object"===("undefined"==typeof XMLHttpRequest?"undefined":at(XMLHttpRequest))}var ut,pt,dt,ft=t((function(t,e){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),e.default=i,t.exports=e.default}})),gt=Object.freeze(Object.assign(Object.create(null),ft,{default:ft}));function ht(t){return(ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}"function"==typeof fetch&&("undefined"!=typeof global&&global.fetch?ut=global.fetch:"undefined"!=typeof window&&window.fetch&&(ut=window.fetch)),ct&&("undefined"!=typeof global&&global.XMLHttpRequest?pt=global.XMLHttpRequest:"undefined"!=typeof window&&window.XMLHttpRequest&&(pt=window.XMLHttpRequest)),"function"==typeof ActiveXObject&&("undefined"!=typeof global&&global.ActiveXObject?dt=global.ActiveXObject:"undefined"!=typeof window&&window.ActiveXObject&&(dt=window.ActiveXObject)),ut||!gt||pt||dt||(ut=ft||gt),"function"!=typeof ut&&(ut=void 0);var mt=function(t,e){if(e&&"object"===ht(e)){var r="";for(var o in e)r+="&"+encodeURIComponent(o)+"="+encodeURIComponent(e[o]);if(!r)return t;t=t+(-1!==t.indexOf("?")?"&":"?")+r.slice(1)}return t},vt=function(t,e,r,o){return"function"==typeof r&&(o=r,r=void 0),o=o||function(){},ut?function(t,e,r,o){t.queryStringParams&&(e=mt(e,t.queryStringParams));var a=lt({},"function"==typeof t.customHeaders?t.customHeaders():t.customHeaders);r&&(a["Content-Type"]="application/json"),ut(e,lt({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:a},"function"==typeof t.requestOptions?t.requestOptions(r):t.requestOptions)).then((function(t){if(!t.ok)return o(t.statusText||"Error",{status:t.status});t.text().then((function(e){o(null,{status:t.status,data:e})})).catch(o)})).catch(o)}(t,e,r,o):ct||"function"==typeof ActiveXObject?function(t,e,r,o){r&&"object"===ht(r)&&(r=mt("",r).slice(1)),t.queryStringParams&&(e=mt(e,t.queryStringParams));try{var a;(a=pt?new pt:new dt("MSXML2.XMLHTTP.3.0")).open(r?"POST":"GET",e,1),t.crossDomain||a.setRequestHeader("X-Requested-With","XMLHttpRequest"),a.withCredentials=!!t.withCredentials,r&&a.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),a.overrideMimeType&&a.overrideMimeType("application/json");var n=t.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(t){console&&console.log(t)}}(t,e,r,o):void 0};function bt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function yt(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var wt=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",allowMultiLoading:!1,parse:function(t){return JSON.parse(t)},stringify:JSON.stringify,parsePayload:function(t,e,r){return function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}({},e,r||"")},request:vt,reloadInterval:"undefined"==typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},xt=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};bt(this,t),this.services=e,this.options=r,this.allOptions=o,this.type="backend",this.init(e,r,o)}var e,r,o;return e=t,(r=[{key:"init",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=t,this.options=lt(r,this.options||{},wt()),this.allOptions=o,this.services&&this.options.reloadInterval&&setInterval((function(){return e.reload()}),this.options.reloadInterval)}},{key:"readMulti",value:function(t,e,r){var o=this.options.loadPath;"function"==typeof this.options.loadPath&&(o=this.options.loadPath(t,e));var a=this.services.interpolator.interpolate(o,{lng:t.join("+"),ns:e.join("+")});this.loadUrl(a,r,t,e)}},{key:"read",value:function(t,e,r){var o=this.options.loadPath;"function"==typeof this.options.loadPath&&(o=this.options.loadPath([t],[e]));var a=this.services.interpolator.interpolate(o,{lng:t,ns:e});this.loadUrl(a,r,t,e)}},{key:"loadUrl",value:function(t,e,r,o){var a=this;this.options.request(this.options,t,void 0,(function(n,i){if(i&&(i.status>=500&&i.status<600||!i.status))return e("failed loading "+t+"; status code: "+i.status,!0);if(i&&i.status>=400&&i.status<500)return e("failed loading "+t+"; status code: "+i.status,!1);if(!i&&n&&n.message&&n.message.indexOf("Failed to fetch")>-1)return e("failed loading "+t+": "+n.message,!0);if(n)return e(n,!1);var s,l;try{s="string"==typeof i.data?a.options.parse(i.data,r,o):i.data}catch(e){l="failed parsing "+t+" to json"}if(l)return e(l,!1);e(null,s)}))}},{key:"create",value:function(t,e,r,o,a){var n=this;if(this.options.addPath){"string"==typeof t&&(t=[t]);var i=this.options.parsePayload(e,r,o),s=0,l=[],c=[];t.forEach((function(r){var o=n.options.addPath;"function"==typeof n.options.addPath&&(o=n.options.addPath(r,e));var u=n.services.interpolator.interpolate(o,{lng:r,ns:e});n.options.request(n.options,u,i,(function(e,r){s+=1,l.push(e),c.push(r),s===t.length&&a&&a(l,c)}))}))}}},{key:"reload",value:function(){var t=this,e=this.services,r=e.backendConnector,o=e.languageUtils,a=e.logger,n=r.language;if(!n||"cimode"!==n.toLowerCase()){var i=[],s=function(t){o.toResolveHierarchy(t).forEach((function(t){i.indexOf(t)<0&&i.push(t)}))};s(n),this.allOptions.preload&&this.allOptions.preload.forEach((function(t){return s(t)})),i.forEach((function(e){t.allOptions.ns.forEach((function(t){r.read(e,t,"read",null,null,(function(o,n){o&&a.warn("loading namespace ".concat(t," for language ").concat(e," failed"),o),!o&&n&&a.log("loaded namespace ".concat(t," for language ").concat(e),n),r.loaded("".concat(e,"|").concat(t),o,n)}))}))}))}}}])&&yt(e.prototype,r),o&&yt(e,o),t}();xt.type="backend";var kt=function(){return n.Date.now()},St=/\s/;var Lt=/^\s+/;function Ot(t){return t?t.slice(0,function(t){for(var e=t.length;e--&&St.test(t.charAt(e)););return e}(t)+1).replace(Lt,""):t}var jt=/^[-+]0x[0-9a-f]+$/i,Rt=/^0b[01]+$/i,Ct=/^0o[0-7]+$/i,Et=parseInt;function Nt(t){if("number"==typeof t)return t;if(i(t))return NaN;if(s(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=s(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ot(t);var r=Rt.test(t);return r||Ct.test(t)?Et(t.slice(2),r?2:8):jt.test(t)?NaN:+t}var _t=Math.max,Pt=Math.min;function zt(t,e,r){var o,a,n,i,l,c,u=0,p=!1,d=!1,f=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function g(e){var r=o,n=a;return o=a=void 0,u=e,i=t.apply(n,r)}function h(t){return u=t,l=setTimeout(v,e),p?g(t):i}function m(t){var r=t-c;return void 0===c||r>=e||r<0||d&&t-u>=n}function v(){var t=kt();if(m(t))return b(t);l=setTimeout(v,function(t){var r=e-(t-c);return d?Pt(r,n-(t-u)):r}(t))}function b(t){return l=void 0,f&&o?g(t):(o=a=void 0,i)}function y(){var t=kt(),r=m(t);if(o=arguments,a=this,c=t,r){if(void 0===l)return h(c);if(d)return clearTimeout(l),l=setTimeout(v,e),g(c)}return void 0===l&&(l=setTimeout(v,e)),i}return e=Nt(e)||0,s(r)&&(p=!!r.leading,n=(d="maxWait"in r)?_t(Nt(r.maxWait)||0,e):n,f="trailing"in r?!!r.trailing:f),y.cancel=function(){void 0!==l&&clearTimeout(l),u=0,o=c=a=l=void 0},y.flush=function(){return void 0===l?i:b(kt())},y}const Tt=Object.entries({sm:640,md:768,lg:1024,xl:1280}),Mt=t=>class extends t{constructor(){super(...arguments),this.__handleResize=zt((t=>{t.forEach((({contentRect:t,target:e})=>{Tt.forEach((([r,o])=>{t.width>=o?e.hasAttribute(r)||e.setAttribute(r,""):e.hasAttribute(r)&&e.removeAttribute(r)}))}))}),16)}connectedCallback(){super.connectedCallback();const t=new ResizeObserver(this.__handleResize);t.observe(this),this.__removeBreakpoints=()=>t.disconnect()}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this.__removeBreakpoints)||void 0===t||t.call(this),this.__handleResize.cancel()}},At=new WeakMap;let Ft=Math.round(1e5*Math.random());const It=new RegExp("[a-z](-|\\.|[0-9]|[a-z])*-(-|\\.|[0-9]|[a-z])*"),Ut=(t,e)=>{const r=`${t}-${Ft+=1}`;return((t,e)=>!!e.get(t))(r,e)?Ut(t,e):r};function Ht(t,e=customElements){if(r=t,null===It.exec(r))throw new Error("tagName is invalid");var r;return Ut(t,e)}const qt=new Map,Vt=(t,e)=>qt.set(e,t),Dt=(t,e,r=customElements)=>{Vt(t,e),r.define(t,class extends e{})},$t=(t,e,r)=>{const o=customElements;if(!(t=>Object.prototype.isPrototypeOf.call(HTMLElement,t))(e))return((t,e,r)=>{const o=Ht(t,e);if(!r)throw new Error("Lazy scoped elements requires the use of tags cache");return r.set(t,o),o})(t,o,r);if(e===customElements.get(t))return Vt(t,e),t;const a=Ht(t,o);return Dt(a,e,o),a};function Bt(t,e,r){return(t=>qt.get(t))(e)||r&&r.get(t)||$t(t,e,r)}const Kt="-|\\.|[0-9]|[a-z]",Wt=new RegExp(`<\\/?([a-z](${Kt})*-(${Kt})*)`,"g"),Xt=new Map,Jt=(t,e,r,o)=>{const a=t.map((t=>{let r=t;const a=(t=>{const e=[];let r;for(;null!==(r=Wt.exec(t));)e.push(r);return e})(t);for(let t=a.length-1;t>=0;t-=1){const n=a[t],[i,s]=n,l=Bt(s,e[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(t,a),a};let Yt=!0;const{ShadyCSS:Gt}=window;(void 0===Gt||void 0===Gt.prepareTemplateDom)&&(Yt=!1);const Qt=new WeakMap,Zt=new WeakMap,te=t=>(Zt.has(t)||Zt.set(t,new Map),Zt.get(t)),ee=(t,e,r,o)=>t.map((t=>t instanceof p?re(t,e,r,o):Array.isArray(t)?ee(t,e,r,o):t)),re=(t,e,r,o)=>new p(function(t,e,r=Xt,o){return r.get(t)||Jt(t,e,r,o)}(t.strings,e,r,o),ee(t.values,e,r,o),t.type,t.processor),oe=(t,e,r,o)=>a=>{const n=re(a,e,r,o);return(t=>e=>{const r=((t,e)=>`${t}--${e}`)(e.type,t);let o=l.get(r);void 0===o&&(o={stringsArray:new WeakMap,keyString:new Map},l.set(r,o));let a=o.stringsArray.get(e.strings);if(void 0!==a)return a;const n=e.strings.join(c);if(a=o.keyString.get(n),void 0===a){const r=e.getTemplateElement();Yt&&Gt.prepareTemplateDom(r,t),a=new u(e,r),o.keyString.set(n,a)}return o.stringsArray.set(e.strings,a),a})(t)(n)},ae=(ne=t=>class extends t{static get scopedElements(){return{}}static render(t,e,r){if(!r||"object"!=typeof r||!r.scopeName)throw new Error("The `scopeName` option is required.");const{scopeName:o}=r,a=(n=this,Qt.has(n)||Qt.set(n,new Map),Qt.get(n));var n;const i=te(this),{scopedElements:s}=this;return super.render(t,e,{...r,templateFactory:oe(o,s,a,i)})}defineScopedElement(t,e){return function(t,e,r){const o=r.get(t);o?void 0===customElements.get(o)&&Dt(o,e,customElements):r.set(t,Bt(t,e,r))}(t,e,te(this.constructor))}static getScopedTagName(t){const e=this.scopedElements[t];return e?Bt(t,e,te(this)):te(this).get(t)}},t=>{if(function(t,e){let r=e;for(;r;){if(At.get(r)===t)return!0;r=Object.getPrototypeOf(r)}return!1}(ne,t))return t;const e=ne(t);return At.set(e,ne),e});var ne;let ie,se=t=>t;const le=t=>class extends t{static get styles(){const t=super.styles;return[...t?Array.isArray(t)?t:[t]:[],d(ie||(ie=se`/*! tailwindcss v2.2.4 | 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}legend{padding:0}progress{vertical-align:baseline}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}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}*,::after,::before{border-color:currentColor}*{-webkit-tap-highlight-color:transparent;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host{display:block}details>summary::-webkit-details-marker{display:none}details>summary{list-style:none}vaadin-select{margin-top:-4px;margin-bottom:-4px}vaadin-combo-box::part(text-field),vaadin-custom-field,vaadin-date-picker,vaadin-email-field,vaadin-integer-field,vaadin-number-field,vaadin-password-field,vaadin-text-area,vaadin-text-field{padding-top:0;padding-bottom:0}vaadin-date-picker::part(text-field){padding-top:0;padding-bottom:0}vaadin-button{margin:0}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}.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}.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)}.isolate{isolation:isolate}.z-50{z-index:50}.order-1{order:1}:host([sm]) .sm-order-1{order:1}.col-span-2{grid-column:span 2/span 2}.float-left{float:left}.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-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)}.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)}.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-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)}.ml-auto{margin-left:auto}.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}.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-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-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-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}.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-grow{flex-grow:1}.table-fixed{table-layout:fixed}.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))}.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}.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}.disabled-cursor-default:disabled{cursor:default}.select-none{user-select:none}.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))}:host([sm]) .sm-grid-cols-2{grid-template-columns:repeat(2,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}:host([sm]) .sm-flex-row{flex-direction:row}:host([md]) .md-flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.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}.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)}.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-10>:not([hidden])~:not([hidden]){border-color:var(--lumo-contrast-10pct,hsla(214,57%,24%,.1))}.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-nowrap{white-space:nowrap}.break-all{word-break:break-all}.rounded-s{border-radius:var(--lumo-border-radius-s,.25em)}.rounded-full{border-radius:100%}.rounded{border-radius:var(--lumo-border-radius-m,.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-b-l{border-bottom-right-radius:var(--lumo-border-radius-l,.75em);border-bottom-left-radius:var(--lumo-border-radius-l,.75em)}: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)}.border{border-width:1px}.border-t{border-top-width:1px}.border-b{border-bottom-width:1px}.border-l-2{border-left-width:2px}:host([md]) .md-border-r{border-right-width:1px}.border-dashed{border-style:dashed}.border-transparent{border-color:transparent}.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-50{border-color:var(--lumo-contrast-50pct,hsla(214,45%,20%,.5))}.border-contrast{border-color:var(--lumo-contrast,#182433)}.border-primary{border-color:var(--lumo-primary-color,#1675f2)}.border-error{border-color:var(--lumo-error-color,#fe4238)}:host([md]) .md-border-contrast-10{border-color:var(--lumo-contrast-10pct,hsla(214,57%,24%,.1))}@media (hover:hover){.hover-border-contrast-30:hover{border-color:var(--lumo-contrast-30pct,hsla(214,50%,22%,.26))}.hover-border-primary-10:hover{border-color:var(--lumo-primary-color-10pct,hsla(214,90%,52%,.1))}}.focus-border-primary:focus{border-color:var(--lumo-primary-color,#1675f2)}.bg-transparent{background-color:transparent}.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{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-30{background-color:var(--lumo-contrast-30pct,hsla(214,50%,22%,.26))}}@media (hover:hover){.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-primary-10:hover{background-color:var(--lumo-primary-color-10pct,hsla(214,90%,52%,.1))}}.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{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)}.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-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)}.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}.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-l{font-size:var(--lumo-font-size-l,1.125rem)}.font-normal{font-weight:400}.font-medium{font-weight:500}.font-semibold{font-weight:600}.font-bold{font-weight:700}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}:host([sm]) .sm-normal-case{text-transform:none}.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-20{color:var(--lumo-contrast-20pct,hsla(214,53%,23%,.16))}.text-contrast-30{color:var(--lumo-contrast-30pct,hsla(214,50%,22%,.26))}.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-success{color:var(--lumo-success-text-color,#00a344)}.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){.hover-text-primary:hover{color:var(--lumo-primary-text-color,#1675f2)}.hover-text-error:hover{color:var(--lumo-error-text-color,#f52318)}.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-primary:focus{color:var(--lumo-primary-text-color,#1675f2)}.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-100{opacity:1}:host([sm]) .sm-opacity-0{opacity:0}.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}.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)}.focus-ring-inset:focus{--tw-ring-inset:inset}.ring-primary-50{--tw-ring-color:var(--lumo-primary-color-50pct, hsla(214, 90%, 52%, 0.5))}.focus-within-ring-primary-50:focus-within{--tw-ring-color:var(--lumo-primary-color-50pct, hsla(214, 90%, 52%, 0.5))}.focus-ring-primary-50:focus{--tw-ring-color:var(--lumo-primary-color-50pct, hsla(214, 90%, 52%, 0.5))}.ring-offset-4{--tw-ring-offset-width:4px}.focus-ring-offset-2:focus{--tw-ring-offset-width:2px}.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}.duration-100{transition-duration:.1s}.duration-150{transition-duration:150ms}.duration-200{transition-duration:.2s}.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}.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-w-narrow-modal{width:18rem}`))]}};class ce extends(ae(Mt(le(f)))){}let ue="";try{ue="https://static.www.foxycart.com/beta/foxy-elements/0.3.0"}catch(t){}class pe extends ce{constructor(t="global"){super(),this.__lang=this._i18n.options.fallbackLng[0],this.__ns=this._i18n.options.fallbackNS[0],this.ns=t,this._whenI18nReady.then((()=>this.requestUpdate()))}static get properties(){return g(g({},super.properties),{},{lang:{type:String,noAccessor:!0},ns:{type:String,noAccessor:!0}})}get lang(){return this.__lang}set lang(t){t&&"undefined"!==t&&(this.__lang=t,this._i18n.loadLanguages(t).then((()=>{this.__lang===t&&this.requestUpdate()})))}get ns(){return this.__ns}set ns(t){this.__ns=t,this._i18n.loadNamespaces(t).then((()=>{this.__ns===t&&this.requestUpdate()}))}static __initI18N(){return this.__i18n=ot.createInstance(),this.__i18n.use(xt),this.__whenI18NReady=this.__i18n.init({ns:["global"],supportedLngs:["nl","en","es","sv","fi","fr","de","zh","no","it"],interpolation:{format:pe.__f},fallbackLng:"en",fallbackNS:"global",defaultNS:"global",detection:{order:["querystring","navigator","htmlTag","path","subdomain"],caches:[]},backend:{loadPath:`${ue}/translations/{{ns}}/{{lng}}.json`}}),this.__whenI18NReady.then((()=>this.__isI18NReady=!0)),this.__i18n}get _i18n(){var t;return null!==(t=pe.__i18n)&&void 0!==t?t:pe.__initI18N()}get _whenI18nReady(){return pe.__whenI18NReady}get _isI18nReady(){return pe.__isI18NReady}get _t(){const t=[this.__ns,this._i18n.options.fallbackNS];return this._i18n.getFixedT(this.__lang,t)}}pe.__fLowercase=t=>t.toLowerCase(),pe.__fList=t=>t.map(((t,e,r)=>{if(0===e)return t;return`${e===r.length-1?" $t(and) ":","} ${t}`})).join(""),pe.__f=(...t)=>{var e,r;const o=t[0];return(null!==(r=null===(e=t[1])||void 0===e?void 0:e.split(" "))&&void 0!==r?r:[]).reduce(((t,e)=>{switch(e){case"lowercase":return pe.__fLowercase(t);case"list":return pe.__fList(t);default:return t}}),o)},pe.__isI18NReady=!1;const de=(t,e="")=>class extends t{constructor(){super(...arguments),this.lang="",this.ns=e,this.t=(t,r)=>{const o=customElements.get("foxy-i18n");if(!o)return t;const a=[...[e,...this.ns.split(" ").reverse()].map((t=>t.trim())).filter(((t,e,r)=>r.indexOf(t)===e&&t.length>0)).reverse().map(((e,r,o)=>`${e}:${[...o.slice(r+1),t].join(".")}`)),`shared:${t}`];return o.i18next.t(a,r).toString()}}static get properties(){return g(g({},super.properties),{},{lang:{type:String},ns:{type:String}})}static get defaultNS(){return e}connectedCallback(){super.connectedCallback();const t=customElements.get("foxy-i18n");this.__untrackTranslations=null==t?void 0:t.onTranslationChange((()=>this.requestUpdate()))}updated(t){super.updated(t);const e=customElements.get("foxy-i18n");e&&(t.has("lang")&&e.i18next.loadLanguages(this.lang),t.has("ns")&&e.i18next.loadNamespaces(this.ns.split(" ")))}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this.__untrackTranslations)||void 0===t||t.call(this)}};export{Mt as R,ae as S,le as T,de as a,ce as b,pe as c,zt as d,ot as i,Nt as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{L as e,j as t,_ as s,h as i}from"./shared-17968c53.js";import{A as a}from"./shared-d4dad105.js";import{C as o}from"./shared-f0199313.js";import{T as n,R as l,a as d}from"./shared-5388f705.js";import{F as r}from"./shared-50744508.js";import{c as h}from"./shared-4e709717.js";class c extends CustomEvent{constructor(e=!1){super("hide",{detail:{cancelled:e}})}}class u extends CustomEvent{constructor(){super("show")}}let p,m=e=>e;class v extends(n(l(e))){static get styles(){return[super.styles,t(p||(p=m`:host{position:relative;z-index:200}`))]}}let b,_,y,g,f,w,x,$=e=>e;class D extends(d(o(n(e)))){constructor(){super(...arguments),this.closable=!1,this.editable=!1,this.header="",this.alert=!1,this.__handleKeyDown=e=>{"Escape"===e.key&&D.openDialogs[0]===this&&this.closable&&this.hide(this.editable)},this.__connected=!1,this.__visible=!1}static get properties(){return s(s({},super.properties),{},{__connected:{attribute:!1},__visible:{attribute:!1},centered:{type:Boolean},closable:{type:Boolean},editable:{type:Boolean},header:{type:String},alert:{type:Boolean},open:{type:Boolean,noAccessor:!0}})}static get styles(){return[super.styles,t(b||(b=$`.grid-cols-header{grid-template-columns:1fr auto 1fr}.scale-85{--tw-scale-x:0.85;--tw-scale-y:0.85}`))]}get open(){return this.__visible&&this.__connected}set open(e){e===this.open||(e?this.show():this.hide(this.editable))}connectedCallback(){super.connectedCallback(),addEventListener("keydown",this.__handleKeyDown)}disconnectedCallback(){var e;super.disconnectedCallback(),removeEventListener("keydown",this.__handleKeyDown),null===(e=D.dialogWindows.get(this))||void 0===e||e.remove(),D.dialogWindows.delete(this)}createRenderRoot(){const e=new v,t=document.querySelectorAll(D.dialogWindowsHost),s=Array.from(t).pop();return e.addEventListener("fetch",(e=>{e instanceof r&&(e.stopImmediatePropagation(),e.preventDefault(),e.respondWith(new a(this).fetch(e.request)))})),null==s||s.appendChild(e),D.dialogWindows.set(this,e),e.shadowRoot}render(e){if(!this.__connected)return i(_||(_=$``));const t=D.openDialogs[0]===this,s=D.openDialogs[1]===this,a=D.openDialogs[2]===this,o=!t&&!s&&!a;return i(y||(y=$` <div class="${0}"> <div id="backdrop" class="${0}" tabindex="-1" @click="${0}"></div> <div role="dialog" aria-labelledby="dialog-title" class="${0}"> <div class="${0}"> <div class="h-l grid grid-cols-header text-m font-lumo font-medium border-b border-contrast-10"> ${0} <h1 id="dialog-title" class="truncate self-center text-center"> <foxy-i18n ns="${0}" lang="${0}" key="${0}"></foxy-i18n> </h1> ${0} </div> <div class="flex-1 overflow-y-auto overflow-x-hidden overscroll-contain"> <div class="p-m relative">${0}</div> </div> </div> </div> </div> `),h({"z-50 fixed inset-0":!0,"pointer-events-none":!this.__visible}),h({"select-none ease-in-out transition duration-500 absolute inset-0 bg-shade-50 focus-outline-none":!0,"opacity-100":this.__visible,"opacity-0":!this.__visible}),(()=>this.closable&&this.hide(this.editable)),h({"transform origin-bottom ease-in-out transition duration-500 relative h-full ml-auto sm-origin-center sm-max-w-modal":!0,"flex justify-center items-end sm-items-center mr-auto":this.alert,"translate-y-full sm-translate-y-0":!this.__visible,"sm-translate-x-full":!this.alert&&!this.__visible,"sm-opacity-0 sm-scale-110":this.alert&&!this.__visible,"translate-y-0 translate-x-0":t&&this.__visible,"scale-95 -translate-y-s sm-translate-y-0":s&&this.__visible,"scale-90 -translate-y-m sm-translate-y-0":a&&this.__visible,"opacity-0 scale-85 -translate-y-l sm-translate-y-0":o&&this.__visible}),h({"overflow-hidden flex flex-col bg-base rounded-t-l sm-rounded-b-l":!0,"absolute inset-0 mt-xl sm-m-xl":!this.alert,"shadow-xxl":this.__visible}),this.closable&&!this.hiddenSelector.matches("close-button",!0)?i(g||(g=$` <vaadin-button id="close-button" theme="tertiary-inline" class="mr-auto m-s px-s" ?disabled="${0}" @click="${0}"> <foxy-i18n lang="${0}" key="${0}" ns="${0}"> </foxy-i18n> </vaadin-button> `),this.disabledSelector.matches("close-button",!0),(()=>this.hide(this.editable)),this.lang,this.editable?"cancel":"close",this.ns):i(f||(f=$`<div></div>`)),this.ns,this.lang,this.header,this.editable&&!this.hiddenSelector.matches("save-button",!0)?i(w||(w=$` <vaadin-button data-testid="save-button" ?disabled="${0}" theme="primary" class="ml-auto h-auto min-h-0 min-w-0 m-xs px-m" @click="${0}"> <foxy-i18n ns="${0}" lang="${0}" key="save"></foxy-i18n> </vaadin-button> `),this.disabledSelector.matches("save-button",!0),this.save,this.ns,this.lang):i(x||(x=$`<div></div>`)),null==e?void 0:e())}async hide(e=!1){var t;null===(t=this.__returnFocusTo)||void 0===t||t.focus(),await this.__setOpenDialogs(D.openDialogs.filter((e=>e!==this))),await this.__setConnected(!1),this.dispatchEvent(new D.HideEvent(!!e))}async show(e){this.__returnFocusTo=e,await this.__setConnected(!0),await this.__setOpenDialogs([this,...D.openDialogs]);const t=this.renderRoot.querySelector("#close-button");null==t||t.focus(),this.dispatchEvent(new D.ShowEvent)}async save(){await this.hide(!1)}async __setOpenDialogs(e){D.openDialogs.length=0,D.openDialogs.push(...e),await Promise.all([Promise.all(D.openDialogs.map((e=>e.requestUpdate()))),new Promise((e=>{this.renderRoot.querySelector("#backdrop").addEventListener("transitionend",e,{once:!0}),this.__visible=D.openDialogs.includes(this)}))])}async __setConnected(e){this.__connected=e,await this.updateComplete.then((()=>this.getBoundingClientRect()))}}D.dialogWindowsHost="#foxy-dialog-windows-host, body",D.dialogWindows=new WeakMap,D.openDialogs=[],D.ShowEvent=u,D.HideEvent=c,customElements.define("foxy-dialog-window",v);export{D};
|