@openremote/or-asset-viewer 1.30.0 → 1.30.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/build/dist/umd/index.bundle.js +4579 -0
  2. package/{dist → build/dist}/umd/index.js +9 -4
  3. package/{dist → build/dist}/umd/index.orbundle.js +1061 -289
  4. package/build/lib/index.d.ts.map +1 -0
  5. package/build/lib/index.js.map +1 -0
  6. package/build/lib/or-add-attribute-panel.d.ts.map +1 -0
  7. package/build/lib/or-add-attribute-panel.js.map +1 -0
  8. package/build/lib/or-edit-asset-panel.d.ts.map +1 -0
  9. package/build/lib/or-edit-asset-panel.js.map +1 -0
  10. package/build/lib/style.d.ts.map +1 -0
  11. package/build/lib/style.js.map +1 -0
  12. package/package.json +27 -21
  13. package/lib/index.d.ts.map +0 -1
  14. package/lib/index.js.map +0 -1
  15. package/lib/or-add-attribute-panel.d.ts.map +0 -1
  16. package/lib/or-add-attribute-panel.js.map +0 -1
  17. package/lib/or-edit-asset-panel.d.ts.map +0 -1
  18. package/lib/or-edit-asset-panel.js.map +0 -1
  19. package/lib/style.d.ts.map +0 -1
  20. package/lib/style.js.map +0 -1
  21. package/playwright.config.ts +0 -21
  22. /package/{custom-elements-jsx.d.ts → build/custom-elements-jsx.d.ts} +0 -0
  23. /package/{custom-elements.json → build/custom-elements.json} +0 -0
  24. /package/{lib → build/lib}/index.d.ts +0 -0
  25. /package/{lib → build/lib}/index.js +0 -0
  26. /package/{lib → build/lib}/or-add-attribute-panel.d.ts +0 -0
  27. /package/{lib → build/lib}/or-add-attribute-panel.js +0 -0
  28. /package/{lib → build/lib}/or-edit-asset-panel.d.ts +0 -0
  29. /package/{lib → build/lib}/or-edit-asset-panel.js +0 -0
  30. /package/{lib → build/lib}/style.d.ts +0 -0
  31. /package/{lib → build/lib}/style.js +0 -0
@@ -1469,7 +1469,7 @@ ${s[0]?s[0]:""}</textarea>`:W` <input
1469
1469
  flex: 0 1 auto;
1470
1470
  }
1471
1471
  }
1472
- `;function rq(t){return(rq="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 rK(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}function rJ(t){var e=function(t,e){if("object"!=rq(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=rq(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==rq(e)?e:e+""}function rZ(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,rJ(i.key),i)}}function rQ(t,e,n){return e&&rZ(t.prototype,e),n&&rZ(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function r0(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function r1(t,e){return(r1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function r2(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&r1(t,e)}function r5(t,e){if(e&&("object"==rq(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return r0(t)}function r4(t){return(r4=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function r3(t,e,n){return(e=rJ(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function r7(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function r6(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function r8(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r6(Object(n),!0).forEach(function(e){r3(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r6(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var r9={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)}},at=new(function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};rK(this,t),this.init(e,n)}return rQ(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||r9,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=Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"log","",!0)}},{key:"warn",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"warn","",!0)}},{key:"error",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"error","")}},{key:"deprecate",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(t,e,n,i){return i&&!this.debug?null:("string"==typeof t[0]&&(t[0]="".concat(n).concat(this.prefix," ").concat(t[0])),this.logger[e](t))}},{key:"create",value:function(e){return new t(this.logger,r8(r8({},{prefix:"".concat(this.prefix,":").concat(e,":")}),this.options))}},{key:"clone",value:function(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new t(this.logger,e)}}]),t}()),ae=function(){function t(){rK(this,t),this.observers={}}return rQ(t,[{key:"on",value:function(t,e){var n=this;return t.split(" ").forEach(function(t){n.observers[t]=n.observers[t]||[],n.observers[t].push(e)}),this}},{key:"off",value:function(t,e){if(this.observers[t]){if(!e)return void delete this.observers[t];this.observers[t]=this.observers[t].filter(function(t){return t!==e})}}},{key:"emit",value:function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];this.observers[t]&&[].concat(this.observers[t]).forEach(function(t){t.apply(void 0,n)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(function(e){e.apply(e,[t].concat(n))})}}]),t}();function an(){var t,e,n=new Promise(function(n,i){t=n,e=i});return n.resolve=t,n.reject=e,n}function ai(t){return null==t?"":""+t}function ar(t,e,n){function i(t){return t&&t.indexOf("###")>-1?t.replace(/###/g,"."):t}function r(){return!t||"string"==typeof t}for(var a="string"!=typeof e?[].concat(e):e.split(".");a.length>1;){if(r())return{};var o=i(a.shift());!t[o]&&n&&(t[o]=new n),t=Object.prototype.hasOwnProperty.call(t,o)?t[o]:{}}return r()?{}:{obj:t,k:i(a.shift())}}function aa(t,e,n){var i=ar(t,e,Object);i.obj[i.k]=n}function ao(t,e){var n=ar(t,e),i=n.obj,r=n.k;if(i)return i[r]}function as(t,e,n){var i=ao(t,n);return void 0!==i?i:ao(e,n)}function al(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var ad={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function ac(t){return"string"==typeof t?t.replace(/[&<>"'\/]/g,function(t){return ad[t]}):t}var au="u">typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,ap=[" ",",","?","!",";"];function am(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function ah(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?am(Object(n),!0).forEach(function(e){r3(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):am(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var af=function(t){r2(i,t);var e,n=(e=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=r4(i);return t=e?Reflect.construct(n,arguments,r4(this).constructor):n.apply(this,arguments),r5(this,t)});function i(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return rK(this,i),e=n.call(this),au&&ae.call(r0(e)),e.data=t||{},e.options=r,void 0===e.options.keySeparator&&(e.options.keySeparator="."),void 0===e.options.ignoreJSONStructure&&(e.options.ignoreJSONStructure=!0),e}return rQ(i,[{key:"addNamespaces",value:function(t){0>this.options.ns.indexOf(t)&&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,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,a=void 0!==i.ignoreJSONStructure?i.ignoreJSONStructure:this.options.ignoreJSONStructure,o=[t,e];n&&"string"!=typeof n&&(o=o.concat(n)),n&&"string"==typeof n&&(o=o.concat(r?n.split(r):n)),t.indexOf(".")>-1&&(o=t.split("."));var s=ao(this.data,o);return s||!a||"string"!=typeof n?s:function t(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[n])return e[n];for(var r=n.split(i),a=e,o=0;o<r.length;++o){if(!a||"string"==typeof a[r[o]]&&o+1<r.length)return;if(void 0===a[r[o]]){for(var s=2,l=r.slice(o,o+s).join(i),d=a[l];void 0===d&&r.length>o+s;)s++,d=a[l=r.slice(o,o+s).join(i)];if(void 0===d)return;if(null===d)return null;if(n.endsWith(l)){if("string"==typeof d)return d;if(l&&"string"==typeof d[l])return d[l]}var c=r.slice(o+s).join(i);if(c)return t(d,c,i);return}a=a[r[o]]}return a}}(this.data&&this.data[t]&&this.data[t][e],n,r)}},{key:"addResource",value:function(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},a=this.options.keySeparator;void 0===a&&(a=".");var o=[t,e];n&&(o=o.concat(a?n.split(a):n)),t.indexOf(".")>-1&&(o=t.split("."),i=e,e=o[1]),this.addNamespaces(e),aa(this.data,o,i),r.silent||this.emit("added",t,e,n,i)}},{key:"addResources",value:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var r in n)("string"==typeof n[r]||"[object Array]"===Object.prototype.toString.apply(n[r]))&&this.addResource(t,e,r,n[r],{silent:!0});i.silent||this.emit("added",t,e,n)}},{key:"addResourceBundle",value:function(t,e,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},o=[t,e];t.indexOf(".")>-1&&(o=t.split("."),i=n,n=e,e=o[1]),this.addNamespaces(e);var s=ao(this.data,o)||{};i?function t(e,n,i){for(var r in n)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof n[r]||n[r]instanceof String?i&&(e[r]=n[r]):t(e[r],n[r],i):e[r]=n[r]);return e}(s,n,r):s=ah(ah({},s),n),aa(this.data,o,s),a.silent||this.emit("added",t,e,n)}},{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)?ah(ah({},{}),this.getResource(t,e)):this.getResource(t,e)}},{key:"getDataByLanguage",value:function(t){return this.data[t]}},{key:"hasLanguageSomeTranslations",value:function(t){var e=this.getDataByLanguage(t);return!!(e&&Object.keys(e)||[]).find(function(t){return e[t]&&Object.keys(e[t]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),i}(ae),ag={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,e,n,i,r){var a=this;return t.forEach(function(t){a.processors[t]&&(e=a.processors[t].process(e,n,i,r))}),e}};function ab(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function av(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ab(Object(n),!0).forEach(function(e){r3(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ab(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var a_={},ay=function(t){r2(i,t);var e,n=(e=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=r4(i);return t=e?Reflect.construct(n,arguments,r4(this).constructor):n.apply(this,arguments),r5(this,t)});function i(t){var e,r,a,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return rK(this,i),a=n.call(this),au&&ae.call(r0(a)),e=["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r=r0(a),e.forEach(function(e){t[e]&&(r[e]=t[e])}),a.options=o,void 0===a.options.keySeparator&&(a.options.keySeparator="."),a.logger=at.create("translator"),a}return rQ(i,[{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:{}};if(null==t)return!1;var n=this.resolve(t,e);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(t,e){var n=void 0!==e.nsSeparator?e.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var i=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,r=e.ns||this.options.defaultNS||[],a=n&&t.indexOf(n)>-1,o=!this.options.userDefinedKeySeparator&&!e.keySeparator&&!this.options.userDefinedNsSeparator&&!e.nsSeparator&&!function(t,e,n){e=e||"",n=n||"";var i=ap.filter(function(t){return 0>e.indexOf(t)&&0>n.indexOf(t)});if(0===i.length)return!0;var r=new RegExp("(".concat(i.map(function(t){return"?"===t?"\\?":t}).join("|"),")")),a=!r.test(t);if(!a){var o=t.indexOf(n);o>0&&!r.test(t.substring(0,o))&&(a=!0)}return a}(t,n,i);if(a&&!o){var s=t.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:t,namespaces:r};var l=t.split(n);(n!==i||n===i&&this.options.ns.indexOf(l[0])>-1)&&(r=l.shift()),t=l.join(i)}return"string"==typeof r&&(r=[r]),{key:t,namespaces:r}}},{key:"translate",value:function(t,e,n){var r=this;if("object"!==rq(e)&&this.options.overloadTranslationOptionHandler&&(e=this.options.overloadTranslationOptionHandler(arguments)),e||(e={}),null==t)return"";Array.isArray(t)||(t=[String(t)]);var a=void 0!==e.returnDetails?e.returnDetails:this.options.returnDetails,o=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,s=this.extractFromKey(t[t.length-1],e),l=s.key,d=s.namespaces,c=d[d.length-1],u=e.lng||this.language,p=e.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&"cimode"===u.toLowerCase()){if(p){var m=e.nsSeparator||this.options.nsSeparator;return a?(h.res="".concat(c).concat(m).concat(l),h):"".concat(c).concat(m).concat(l)}return a?(h.res=l,h):l}var h=this.resolve(t,e),f=h&&h.res,g=h&&h.usedKey||l,b=h&&h.exactUsedKey||l,v=Object.prototype.toString.apply(f),_=void 0!==e.joinArrays?e.joinArrays:this.options.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,x="string"!=typeof f&&"boolean"!=typeof f&&"number"!=typeof f;if(y&&f&&x&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(v)&&("string"!=typeof _||"[object Array]"!==v)){if(!e.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var w=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,f,av(av({},e),{},{ns:d})):"key '".concat(l," (").concat(this.language,")' returned an object instead of string.");return a?(h.res=w,h):w}if(o){var k="[object Array]"===v,E=k?[]:{},C=k?b:g;for(var A in f)if(Object.prototype.hasOwnProperty.call(f,A)){var T="".concat(C).concat(o).concat(A);E[A]=this.translate(T,av(av({},e),{joinArrays:!1,ns:d})),E[A]===T&&(E[A]=f[A])}f=E}}else if(y&&"string"==typeof _&&"[object Array]"===v)(f=f.join(_))&&(f=this.extendTranslation(f,t,e,n));else{var I=!1,S=!1,O=void 0!==e.count&&"string"!=typeof e.count,R=i.hasDefaultValue(e),L=O?this.pluralResolver.getSuffix(u,e.count,e):"",N=e["defaultValue".concat(L)]||e.defaultValue;!this.isValidLookup(f)&&R&&(I=!0,f=N),this.isValidLookup(f)||(S=!0,f=l);var D=(e.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&S?void 0:f,M=R&&N!==f&&this.options.updateMissing;if(S||I||M){if(this.logger.log(M?"updateKey":"missingKey",u,c,l,M?N:f),o){var P=this.resolve(l,av(av({},e),{},{keySeparator:!1}));P&&P.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 z=[],$=this.languageUtils.getFallbackCodes(this.options.fallbackLng,e.lng||this.language);if("fallback"===this.options.saveMissingTo&&$&&$[0])for(var F=0;F<$.length;F++)z.push($[F]);else"all"===this.options.saveMissingTo?z=this.languageUtils.toResolveHierarchy(e.lng||this.language):z.push(e.lng||this.language);var B=function(t,n,i){var a=R&&i!==f?i:D;r.options.missingKeyHandler?r.options.missingKeyHandler(t,c,n,a,M,e):r.backendConnector&&r.backendConnector.saveMissing&&r.backendConnector.saveMissing(t,c,n,a,M,e),r.emit("missingKey",t,c,n,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&O?z.forEach(function(t){r.pluralResolver.getSuffixes(t,e).forEach(function(n){B([t],l+n,e["defaultValue".concat(n)]||N)})}):B(z,l,N))}f=this.extendTranslation(f,t,e,h,n),S&&f===l&&this.options.appendNamespaceToMissingKey&&(f="".concat(c,":").concat(l)),(S||I)&&this.options.parseMissingKeyHandler&&(f="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(c,":").concat(l):l,I?f:void 0):this.options.parseMissingKeyHandler(f))}return a?(h.res=f,h):f}},{key:"extendTranslation",value:function(t,e,n,i,r){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,av(av({},this.options.interpolation.defaultVariables),n),i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(av(av({},n),{interpolation:av(av({},this.options.interpolation),n.interpolation)}));var o,s="string"==typeof t&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(s){var l=t.match(this.interpolator.nestingRegexp);o=l&&l.length}var d=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(d=av(av({},this.options.interpolation.defaultVariables),d)),t=this.interpolator.interpolate(t,d,n.lng||this.language,n),s){var c=t.match(this.interpolator.nestingRegexp);o<(c&&c.length)&&(n.nest=!1)}!1!==n.nest&&(t=this.interpolator.nest(t,function(){for(var t=arguments.length,i=Array(t),o=0;o<t;o++)i[o]=arguments[o];return r&&r[0]===i[0]&&!n.context?(a.logger.warn("It seems you are nesting recursively key: ".concat(i[0]," in key: ").concat(e[0])),null):a.translate.apply(a,i.concat([e]))},n)),n.interpolation&&this.interpolator.reset()}var u=n.postProcess||this.options.postProcess,p="string"==typeof u?[u]:u;return null!=t&&p&&p.length&&!1!==n.applyPostProcessor&&(t=ag.handle(p,t,e,this.options&&this.options.postProcessPassResolved?av({i18nResolved:i},n):n,this)),t}},{key:"resolve",value:function(t){var e,n,i,r,a,o=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof t&&(t=[t]),t.forEach(function(t){if(!o.isValidLookup(e)){var l=o.extractFromKey(t,s),d=l.key;n=d;var c=l.namespaces;o.options.fallbackNS&&(c=c.concat(o.options.fallbackNS));var u=void 0!==s.count&&"string"!=typeof s.count,p=u&&!s.ordinal&&0===s.count&&o.pluralResolver.shouldUseIntlApi(),m=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,h=s.lngs?s.lngs:o.languageUtils.toResolveHierarchy(s.lng||o.language,s.fallbackLng);c.forEach(function(t){o.isValidLookup(e)||(a=t,!a_["".concat(h[0],"-").concat(t)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(a)&&(a_["".concat(h[0],"-").concat(t)]=!0,o.logger.warn('key "'.concat(n,'" for languages "').concat(h.join(", "),'" won\'t get resolved as namespace "').concat(a,'" 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!!!")),h.forEach(function(n){if(!o.isValidLookup(e)){r=n;var a,l=[d];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(l,d,n,t,s);else{u&&(c=o.pluralResolver.getSuffix(n,s.count,s));var c,h="".concat(o.options.pluralSeparator,"zero");if(u&&(l.push(d+c),p&&l.push(d+h)),m){var f="".concat(d).concat(o.options.contextSeparator).concat(s.context);l.push(f),u&&(l.push(f+c),p&&l.push(f+h))}}for(;a=l.pop();)o.isValidLookup(e)||(i=a,e=o.getResource(n,t,a,s))}}))})}}),{res:e,usedKey:n,exactUsedKey:i,usedLng:r,usedNS:a}}},{key:"isValidLookup",value:function(t){return void 0!==t&&!(!this.options.returnNull&&null===t)&&!(!this.options.returnEmptyString&&""===t)}},{key:"getResource",value:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,e,n,i):this.resourceStore.getResource(t,e,n,i)}}],[{key:"hasDefaultValue",value:function(t){var e="defaultValue";for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e===n.substring(0,e.length)&&void 0!==t[n])return!0;return!1}}]),i}(ae);function ax(t){return t.charAt(0).toUpperCase()+t.slice(1)}var aw=function(){function t(e){rK(this,t),this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=at.create("languageUtils")}return rQ(t,[{key:"getScriptPartFromCode",value:function(t){if(!t||0>t.indexOf("-"))return null;var e=t.split("-");return 2===e.length||(e.pop(),"x"===e[e.length-1].toLowerCase())?null:this.formatLanguageCode(e.join("-"))}},{key:"getLanguagePartFromCode",value:function(t){if(!t||0>t.indexOf("-"))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"],n=t.split("-");return this.options.lowerCaseLng?n=n.map(function(t){return t.toLowerCase()}):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),e.indexOf(n[1].toLowerCase())>-1&&(n[1]=ax(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),e.indexOf(n[1].toLowerCase())>-1&&(n[1]=ax(n[1].toLowerCase())),e.indexOf(n[2].toLowerCase())>-1&&(n[2]=ax(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():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,n=this;return t?(t.forEach(function(t){if(!e){var i=n.formatLanguageCode(t);(!n.options.supportedLngs||n.isSupportedCode(i))&&(e=i)}}),!e&&this.options.supportedLngs&&t.forEach(function(t){if(!e){var i=n.getLanguagePartFromCode(t);if(n.isSupportedCode(i))return e=i;e=n.options.supportedLngs.find(function(t){if(0===t.indexOf(i))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 n=t[e];return n||(n=t[this.getScriptPartFromCode(e)]),n||(n=t[this.formatLanguageCode(e)]),n||(n=t[this.getLanguagePartFromCode(e)]),n||(n=t.default),n||[]}},{key:"toResolveHierarchy",value:function(t,e){var n=this,i=this.getFallbackCodes(e||this.options.fallbackLng||[],t),r=[],a=function(t){t&&(n.isSupportedCode(t)?r.push(t):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(t)))};return"string"==typeof t&&t.indexOf("-")>-1?("languageOnly"!==this.options.load&&a(this.formatLanguageCode(t)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&a(this.getScriptPartFromCode(t)),"currentOnly"!==this.options.load&&a(this.getLanguagePartFromCode(t))):"string"==typeof t&&a(this.formatLanguageCode(t)),i.forEach(function(t){0>r.indexOf(t)&&a(n.formatLanguageCode(t))}),r}}]),t}(),ak=[{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","kk","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","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}],aE={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)))},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:3*(t%100==3||t%100==4))},22:function(t){return Number(1==t?0:2==t?1:(t<0||t>10)&&t%10==0?2:3)}},aC=["v1","v2","v3"],aA={zero:0,one:1,two:2,few:3,many:4,other:5},aT=function(){function t(e){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};rK(this,t),this.languageUtils=e,this.options=i,this.logger=at.create("pluralResolver"),(!this.options.compatibilityJSON||"v4"===this.options.compatibilityJSON)&&("u"<typeof Intl||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(n={},ak.forEach(function(t){t.lngs.forEach(function(e){n[e]={numbers:t.nr,plurals:aE[t.fc]}})}),n)}return rQ(t,[{key:"addRule",value:function(t,e){this.rules[t]=e}},{key:"getRule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(t,{type:e.ordinal?"ordinal":"cardinal"})}catch(t){return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}},{key:"needsPlural",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(t,e);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(t,n).map(function(t){return"".concat(e).concat(t)})}},{key:"getSuffixes",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.getRule(t,n);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort(function(t,e){return aA[t]-aA[e]}).map(function(t){return"".concat(e.options.prepend).concat(t)}):i.numbers.map(function(i){return e.getSuffix(t,i,n)}):[]}},{key:"getSuffix",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this.getRule(t,n);return i?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(i.select(e)):this.getSuffixRetroCompatible(i,e):(this.logger.warn("no plural rule found for: ".concat(t)),"")}},{key:"getSuffixRetroCompatible",value:function(t,e){var n=this,i=t.noAbs?t.plurals(e):t.plurals(Math.abs(e)),r=t.numbers[i];this.options.simplifyPluralSuffix&&2===t.numbers.length&&1===t.numbers[0]&&(2===r?r="plural":1===r&&(r=""));var a=function(){return n.options.prepend&&r.toString()?n.options.prepend+r.toString():r.toString()};return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?"_plural_".concat(r.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===t.numbers.length&&1===t.numbers[0]?a():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}},{key:"shouldUseIntlApi",value:function(){return!aC.includes(this.options.compatibilityJSON)}}]),t}();function aI(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function aS(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?aI(Object(n),!0).forEach(function(e){r3(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):aI(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var aO=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};rK(this,t),this.logger=at.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(t){return t},this.init(e)}return rQ(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:ac,this.escapeValue=void 0===e.escapeValue||e.escapeValue,this.useRawValueToEscape=void 0!==e.useRawValueToEscape&&e.useRawValueToEscape,this.prefix=e.prefix?al(e.prefix):e.prefixEscaped||"{{",this.suffix=e.suffix?al(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?al(e.nestingPrefix):e.nestingPrefixEscaped||al("$t("),this.nestingSuffix=e.nestingSuffix?al(e.nestingSuffix):e.nestingSuffixEscaped||al(")"),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=RegExp(t,"g");var e="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=RegExp(e,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=RegExp(n,"g")}},{key:"interpolate",value:function(t,e,n,i){var r,a,o,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function d(t){return t.replace(/\$/g,"$$$$")}var c=function(t){if(0>t.indexOf(s.formatSeparator)){var r=as(e,l,t);return s.alwaysFormat?s.format(r,void 0,n,aS(aS(aS({},i),e),{},{interpolationkey:t})):r}var a=t.split(s.formatSeparator),o=a.shift().trim(),d=a.join(s.formatSeparator).trim();return s.format(as(e,l,o),d,n,aS(aS(aS({},i),e),{},{interpolationkey:o}))};this.resetRegExp();var u=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,p=i&&i.interpolation&&void 0!==i.interpolation.skipOnVariables?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(t){return d(t)}},{regex:this.regexp,safeValue:function(t){return s.escapeValue?d(s.escape(t)):d(t)}}].forEach(function(e){for(o=0;r=e.regex.exec(t);){var n=r[1].trim();if(void 0===(a=c(n)))if("function"==typeof u){var l=u(t,r,i);a="string"==typeof l?l:""}else if(i&&i.hasOwnProperty(n))a="";else if(p){a=r[0];continue}else s.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(t)),a="";else"string"==typeof a||s.useRawValueToEscape||(a=ai(a));var d=e.safeValue(a);if(t=t.replace(r[0],d),p?(e.regex.lastIndex+=a.length,e.regex.lastIndex-=r[0].length):e.regex.lastIndex=0,++o>=s.maxReplaces)break}}),t}},{key:"nest",value:function(t,e){var n,i,r=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=aS({},a);function s(t,e){var n=this.nestingOptionsSeparator;if(0>t.indexOf(n))return t;var i=t.split(new RegExp("".concat(n,"[ ]*{"))),r="{".concat(i[1]);t=i[0];var a=(r=this.interpolate(r,o)).match(/'/g),s=r.match(/"/g);(a&&a.length%2==0&&!s||s.length%2!=0)&&(r=r.replace(/'/g,'"'));try{o=JSON.parse(r),e&&(o=aS(aS({},e),o))}catch(e){return this.logger.warn("failed parsing options string in nesting for key ".concat(t),e),"".concat(t).concat(n).concat(r)}return delete o.defaultValue,t}for(o.applyPostProcessor=!1,delete o.defaultValue;n=this.nestingRegexp.exec(t);){var l=[],d=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var c=n[1].split(this.formatSeparator).map(function(t){return t.trim()});n[1]=c.shift(),l=c,d=!0}if((i=e(s.call(this,n[1].trim(),o),o))&&n[0]===t&&"string"!=typeof i)return i;"string"!=typeof i&&(i=ai(i)),i||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(t)),i=""),d&&(i=l.reduce(function(t,e){return r.format(t,e,a.lng,aS(aS({},a),{},{interpolationkey:n[1].trim()}))},i.trim())),t=t.replace(n[0],i),this.regexp.lastIndex=0}return t}}]),t}();function aR(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function aL(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?aR(Object(n),!0).forEach(function(e){r3(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):aR(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function aN(t){var e={};return function(n,i,r){var a=i+JSON.stringify(r),o=e[a];return o||(o=t(i,r),e[a]=o),o(n)}}var aD=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};rK(this,t),this.logger=at.create("formatter"),this.options=e,this.formats={number:aN(function(t,e){var n=new Intl.NumberFormat(t,e);return function(t){return n.format(t)}}),currency:aN(function(t,e){var n=new Intl.NumberFormat(t,aL(aL({},e),{},{style:"currency"}));return function(t){return n.format(t)}}),datetime:aN(function(t,e){var n=new Intl.DateTimeFormat(t,aL({},e));return function(t){return n.format(t)}}),relativetime:aN(function(t,e){var n=new Intl.RelativeTimeFormat(t,aL({},e));return function(t){return n.format(t,e.range||"day")}}),list:aN(function(t,e){var n=new Intl.ListFormat(t,aL({},e));return function(t){return n.format(t)}})},this.init(e)}return rQ(t,[{key:"init",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=e.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}},{key:"add",value:function(t,e){this.formats[t.toLowerCase().trim()]=e}},{key:"addCached",value:function(t,e){this.formats[t.toLowerCase().trim()]=aN(e)}},{key:"format",value:function(t,e,n,i){var r=this;return e.split(this.formatSeparator).reduce(function(t,e){var a=function(t){var e=t.toLowerCase().trim(),n={};if(t.indexOf("(")>-1){var i=t.split("(");e=i[0].toLowerCase().trim();var r=i[1].substring(0,i[1].length-1);"currency"===e&&0>r.indexOf(":")?n.currency||(n.currency=r.trim()):"relativetime"===e&&0>r.indexOf(":")?n.range||(n.range=r.trim()):r.split(";").forEach(function(t){if(t){var e,i=function(t){if(Array.isArray(t))return t}(e=t.split(":"))||function(t){if("u">typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(t){if(t){if("string"==typeof t)return r7(t,void 0);var e=({}).toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?r7(t,void 0):void 0}}(e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=i[0],a=i.slice(1).join(":").trim().replace(/^'+|'+$/g,"");n[r.trim()]||(n[r.trim()]=a),"false"===a&&(n[r.trim()]=!1),"true"===a&&(n[r.trim()]=!0),isNaN(a)||(n[r.trim()]=parseInt(a,10))}})}return{formatName:e,formatOptions:n}}(e),o=a.formatName,s=a.formatOptions;if(r.formats[o]){var l=t;try{var d=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},c=d.locale||d.lng||i.locale||i.lng||n;l=r.formats[o](t,c,aL(aL(aL({},s),i),d))}catch(t){r.logger.warn(t)}return l}return r.logger.warn("there was no format function for ".concat(o)),t},t)}}]),t}();function aM(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function aP(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?aM(Object(n),!0).forEach(function(e){r3(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):aM(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var az=function(t){r2(i,t);var e,n=(e=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=r4(i);return t=e?Reflect.construct(n,arguments,r4(this).constructor):n.apply(this,arguments),r5(this,t)});function i(t,e,r){var a,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return rK(this,i),a=n.call(this),au&&ae.call(r0(a)),a.backend=t,a.store=e,a.services=r,a.languageUtils=r.languageUtils,a.options=o,a.logger=at.create("backendConnector"),a.waitingReads=[],a.maxParallelReads=o.maxParallelReads||10,a.readingCalls=0,a.maxRetries=o.maxRetries>=0?o.maxRetries:5,a.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(r,o.backend,o),a}return rQ(i,[{key:"queueLoad",value:function(t,e,n,i){var r=this,a={},o={},s={},l={};return t.forEach(function(t){var i=!0;e.forEach(function(e){var s="".concat(t,"|").concat(e);!n.reload&&r.store.hasResourceBundle(t,e)?r.state[s]=2:r.state[s]<0||(1===r.state[s]?void 0===o[s]&&(o[s]=!0):(r.state[s]=1,i=!1,void 0===o[s]&&(o[s]=!0),void 0===a[s]&&(a[s]=!0),void 0===l[e]&&(l[e]=!0)))}),i||(s[t]=!0)}),(Object.keys(a).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(a),pending:Object.keys(o),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}},{key:"loaded",value:function(t,e,n){var i=t.split("|"),r=i[0],a=i[1];e&&this.emit("failedLoading",r,a,e),n&&this.store.addResourceBundle(r,a,n),this.state[t]=e?-1:2;var o={};this.queue.forEach(function(n){var i,s,l,d;i=n.loaded,(l=(s=ar(i,[r],Object)).obj)[d=s.k]=l[d]||[],l[d].push(a),void 0!==n.pending[t]&&(delete n.pending[t],n.pendingCount--),e&&n.errors.push(e),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(function(t){o[t]||(o[t]={});var e=n.loaded[t];e.length&&e.forEach(function(e){void 0===o[t][e]&&(o[t][e]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(function(t){return!t.done})}},{key:"read",value:function(t,e,n){var i=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;return t.length?this.readingCalls>=this.maxParallelReads?void this.waitingReads.push({lng:t,ns:e,fcName:n,tried:r,wait:a,callback:o}):(this.readingCalls++,this.backend[n](t,e,function(s,l){if(i.readingCalls--,i.waitingReads.length>0){var d=i.waitingReads.shift();i.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}s&&l&&r<i.maxRetries?setTimeout(function(){i.read.call(i,t,e,n,r+1,2*a,o)},a):o(s,l)})):o(null,{})}},{key:"prepareLoading",value:function(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=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."),r&&r();"string"==typeof t&&(t=this.languageUtils.toResolveHierarchy(t)),"string"==typeof e&&(e=[e]);var a=this.queueLoad(t,e,i,r);if(!a.toLoad.length)return a.pending.length||r(),null;a.toLoad.forEach(function(t){n.loadOne(t)})}},{key:"load",value:function(t,e,n){this.prepareLoading(t,e,{},n)}},{key:"reload",value:function(t,e,n){this.prepareLoading(t,e,{reload:!0},n)}},{key:"loadOne",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=t.split("|"),r=i[0],a=i[1];this.read(r,a,"read",void 0,void 0,function(i,o){i&&e.logger.warn("".concat(n,"loading namespace ").concat(a," for language ").concat(r," failed"),i),!i&&o&&e.logger.log("".concat(n,"loaded namespace ").concat(a," for language ").concat(r),o),e.loaded(t,i,o)})}},{key:"saveMissing",value:function(t,e,n,i,r){var a=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(n,'" 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==n||""===n||(this.backend&&this.backend.create&&this.backend.create(t,e,n,i,null,aP(aP({},a),{},{isUpdate:r})),t&&t[0]&&this.store.addResource(t[0],e,n,i))}}]),i}(ae);function a$(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.supportedLngs&&0>t.supportedLngs.indexOf("cimode")&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function aF(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function aB(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?aF(Object(n),!0).forEach(function(e){r3(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):aF(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function aH(){}var aV=function(t){r2(i,t);var e,n=(e=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=r4(i);return t=e?Reflect.construct(n,arguments,r4(this).constructor):n.apply(this,arguments),r5(this,t)});function i(){var t,e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;if(rK(this,i),e=n.call(this),au&&ae.call(r0(e)),e.options=a$(r),e.services={},e.logger=at,e.modules={external:[]},Object.getOwnPropertyNames(Object.getPrototypeOf(t=r0(e))).forEach(function(e){"function"==typeof t[e]&&(t[e]=t[e].bind(t))}),a&&!e.isInitialized&&!r.isClone){if(!e.options.initImmediate)return e.init(r,a),r5(e,r0(e));setTimeout(function(){e.init(r,a)},0)}return e}return rQ(i,[{key:"init",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof e&&(n=e,e={}),!e.defaultNS&&!1!==e.defaultNS&&e.ns&&("string"==typeof e.ns?e.defaultNS=e.ns:0>e.ns.indexOf("translation")&&(e.defaultNS=e.ns[0]));var i={debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!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"===rq(t[1])&&(e=t[1]),"string"==typeof t[1]&&(e.defaultValue=t[1]),"string"==typeof t[2]&&(e.tDescription=t[2]),"object"===rq(t[2])||"object"===rq(t[3])){var n=t[3]||t[2];Object.keys(n).forEach(function(t){e[t]=n[t]})}return e},interpolation:{escapeValue:!0,format:function(t,e,n,i){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}};function r(t){return t?"function"==typeof t?new t:t:null}if(this.options=aB(aB(aB({},i),this.options),a$(e)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=aB(aB({},i.interpolation),this.options.interpolation)),void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),!this.options.isClone){this.modules.logger?at.init(r(this.modules.logger),this.options):at.init(null,this.options),this.modules.formatter?a=this.modules.formatter:"u">typeof Intl&&(a=aD);var a,o=new aw(this.options);this.store=new af(this.options.resources,this.options);var s=this.services;s.logger=at,s.resourceStore=this.store,s.languageUtils=o,s.pluralResolver=new aT(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(s.formatter=r(a),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new aO(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new az(r(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",function(e){for(var n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];t.emit.apply(t,[e].concat(i))}),this.modules.languageDetector&&(s.languageDetector=r(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=r(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new ay(this.services,this.options),this.translator.on("*",function(e){for(var n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];t.emit.apply(t,[e].concat(i))}),this.modules.external.forEach(function(e){e.init&&e.init(t)})}if(this.format=this.options.interpolation.format,n||(n=aH),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.length>0&&"dev"!==l[0]&&(this.options.lng=l[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(function(e){t[e]=function(){var n;return(n=t.store)[e].apply(n,arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(e){t[e]=function(){var n;return(n=t.store)[e].apply(n,arguments),t}});var d=an(),c=function(){var e=function(e,i){t.isInitialized&&!t.initializedStoreOnce&&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),d.resolve(i),n(e,i)};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?c():setTimeout(c,0),d}},{key:"loadResources",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:aH,i=n,r="string"==typeof t?t:this.language;if("function"==typeof t&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return i();var a=[],o=function(t){t&&e.services.languageUtils.toResolveHierarchy(t).forEach(function(t){0>a.indexOf(t)&&a.push(t)})};r?o(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(t){return o(t)}),this.options.preload&&this.options.preload.forEach(function(t){return o(t)}),this.services.backendConnector.load(a,this.options.ns,function(t){t||e.resolvedLanguage||!e.language||e.setResolvedLanguage(e.language),i(t)})}else i(null)}},{key:"reloadResources",value:function(t,e,n){var i=an();return t||(t=this.languages),e||(e=this.options.ns),n||(n=aH),this.services.backendConnector.reload(t,e,function(t){i.resolve(),n(t)}),i}},{key:"use",value:function(t){if(!t)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw 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&&ag.addPostProcessor(t),"formatter"===t.type&&(this.modules.formatter=t),"3rdParty"===t.type&&this.modules.external.push(t),this}},{key:"setResolvedLanguage",value:function(t){if(t&&this.languages&&!(["cimode","dev"].indexOf(t)>-1))for(var e=0;e<this.languages.length;e++){var n=this.languages[e];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}},{key:"changeLanguage",value:function(t,e){var n=this;this.isLanguageChangingTo=t;var i=an();this.emit("languageChanging",t);var r=function(t){n.language=t,n.languages=n.services.languageUtils.toResolveHierarchy(t),n.resolvedLanguage=void 0,n.setResolvedLanguage(t)},a=function(t,a){a?(r(a),n.translator.changeLanguage(a),n.isLanguageChangingTo=void 0,n.emit("languageChanged",a),n.logger.log("languageChanged",a)):n.isLanguageChangingTo=void 0,i.resolve(function(){return n.t.apply(n,arguments)}),e&&e(t,function(){return n.t.apply(n,arguments)})},o=function(e){t||e||!n.services.languageDetector||(e=[]);var i="string"==typeof e?e:n.services.languageUtils.getBestMatchFromCodes(e);i&&(n.language||r(i),n.translator.language||n.translator.changeLanguage(i),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(i)),n.loadResources(i,function(t){a(t,i)})};return t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(t):o(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function(t,e,n){var i=this,r=function t(e,r){if("object"!==rq(r)){for(var a,o=arguments.length,s=Array(o>2?o-2:0),l=2;l<o;l++)s[l-2]=arguments[l];a=i.options.overloadTranslationOptionHandler([e,r].concat(s))}else a=aB({},r);a.lng=a.lng||t.lng,a.lngs=a.lngs||t.lngs,a.ns=a.ns||t.ns,a.keyPrefix=a.keyPrefix||n||t.keyPrefix;var d=i.options.keySeparator||".",c=a.keyPrefix?"".concat(a.keyPrefix).concat(d).concat(e):e;return i.t(c,a)};return"string"==typeof t?r.lng=t:r.lngs=t,r.ns=e,r.keyPrefix=n,r}},{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,n=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 i=this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,a=this.languages[this.languages.length-1];if("cimode"===i.toLowerCase())return!0;var o=function(t,n){var i=e.services.backendConnector.state["".concat(t,"|").concat(n)];return -1===i||2===i};if(n.precheck){var s=n.precheck(this,o);if(void 0!==s)return s}return!!(this.hasResourceBundle(i,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(i,t)&&(!r||o(a,t)))}},{key:"loadNamespaces",value:function(t,e){var n=this,i=an();return this.options.ns?("string"==typeof t&&(t=[t]),t.forEach(function(t){0>n.options.ns.indexOf(t)&&n.options.ns.push(t)}),this.loadResources(function(t){i.resolve(),e&&e(t)}),i):(e&&e(),Promise.resolve())}},{key:"loadLanguages",value:function(t,e){var n=an();"string"==typeof t&&(t=[t]);var i=this.options.preload||[],r=t.filter(function(t){return 0>i.indexOf(t)});return r.length?(this.options.preload=i.concat(r),this.loadResources(function(t){n.resolve(),e&&e(t)}),n):(e&&e(),Promise.resolve())}},{key:"dir",value:function(t){return(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),t)?["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","ckb"].indexOf(this.services.languageUtils.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}},{key:"cloneInstance",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:aH,r=aB(aB(aB({},this.options),e),{isClone:!0}),a=new i(r);return(void 0!==e.debug||void 0!==e.prefix)&&(a.logger=a.logger.clone(e)),["store","services","language"].forEach(function(e){a[e]=t[e]}),a.services=aB({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new ay(a.services,a.options),a.translator.on("*",function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];a.emit.apply(a,[t].concat(n))}),a.init(r,n),a.translator.options=a.options,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),i}(ae);r3(aV,"createInstance",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return new aV(t,e)});var aj=aV.createInstance();aj.createInstance=aV.createInstance,aj.createInstance,aj.init,aj.loadResources,aj.reloadResources,aj.use,aj.changeLanguage,aj.getFixedT,aj.t,aj.exists,aj.setDefaultNamespace,aj.hasLoadedNamespace,aj.loadNamespaces,aj.loadLanguages;let aU=aj,aY=()=>new aX;class aX{}let aW=new WeakMap,aG=tx(class extends tL{render(t){return q}update(t,[e]){let n=e!==this.G;return n&&void 0!==this.G&&this.rt(void 0),(n||this.lt!==this.ct)&&(this.G=e,this.ht=t.options?.host,this.rt(this.ct=t.element)),q}rt(t){if(this.isConnected||(t=void 0),"function"==typeof this.G){let e=this.ht??globalThis,n=aW.get(e);void 0===n&&(n=new WeakMap,aW.set(e,n)),void 0!==n.get(this.G)&&this.G.call(this.ht,void 0),n.set(this.G,t),void 0!==t&&this.G.call(this.ht,t)}else this.G.value=t}get lt(){return"function"==typeof this.G?aW.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});function aq(t){return t===dk.NUMBER||t===dk.BIG_INT||t===dk.TELEPHONE||t===dk.TEXT||t===dk.PASSWORD||t===dk.DATE||t===dk.DATETIME||t===dk.EMAIL||t===dk.JSON||t===dk.JSON_OBJECT||t===dk.MONTH||t===dk.TEXTAREA||t===dk.TIME||t===dk.URL||t===dk.WEEK}function aK(t){return aq(t)||t===dk.SELECT||t===dk.RANGE}(dp=dk||(dk={})).BUTTON="button",dp.BUTTON_TOGGLE="button-toggle",dp.BUTTON_MOMENTARY="button-momentary",dp.CHECKBOX="checkbox",dp.CHECKBOX_LIST="checkbox-list",dp.COLOUR="color",dp.DATE="date",dp.DATETIME="datetime-local",dp.EMAIL="email",dp.JSON="json",dp.JSON_OBJECT="json-object",dp.MONTH="month",dp.NUMBER="number",dp.BIG_INT="big-int",dp.PASSWORD="password",dp.RADIO="radio",dp.SWITCH="switch",dp.RANGE="range",dp.TELEPHONE="tel",dp.TEXT="text",dp.TEXTAREA="textarea",dp.TIME="time",dp.URL="url",dp.WEEK="week",dp.SELECT="select",dp.LIST="list",dp.CRON="cron",dp.DURATION="duration",dp.DURATION_TIME="duration-time",dp.DURATION_PERIOD="duration-period",window.Vaadin||={},window.Vaadin.featureFlags||={};let aJ={};function aZ(t,e="25.2.8"){if(Object.defineProperty(t,"version",{get:()=>e}),t.experimental){let e="string"==typeof t.experimental?t.experimental:`${t.is.split("-").slice(1).join("-").replace(/-[a-z]/gu,t=>t[1].toUpperCase())}Component`;if(window.Vaadin.featureFlags[e]||aJ[e]){if(aJ[e])return void aJ[e].add(t)}else{aJ[e]=new Set,aJ[e].add(t),Object.defineProperty(window.Vaadin.featureFlags,e,{get:()=>0===aJ[e].size,set(t){t&&aJ[e].size>0&&(aJ[e].forEach(t=>{customElements.define(t.is,t)}),aJ[e].clear())}});return}}let n=customElements.get(t.is);if(n){let e=n.version;e&&t.version&&e===t.version?console.warn(`The component ${t.is} has been loaded twice`):console.error(`Tried to define ${t.is} version ${t.version} when version ${n.version} is already in use. Something will probably break.`)}else customElements.define(t.is,t)}let aQ=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,a0=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function a1(t,e){if("function"!=typeof t)return;let n=aQ.exec(t.toString());if(n)try{t=Function(n[1])}catch(t){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",t)}return t(e)}window.Vaadin=window.Vaadin||{};let a2=function(t,e){if(window.Vaadin.developmentMode)return a1(t,e)};function a5(){}void 0===window.Vaadin.developmentMode&&(window.Vaadin.developmentMode=function(){try{if(localStorage.getItem("vaadin.developmentmode.force"))return!0;if(!(["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0))return!1;if(a0)return!(a0&&Object.keys(a0).map(t=>a0[t]).filter(t=>t.productionMode).length>0);return!a1(function(){return!0})}catch(t){return!1}}());let a4=function(){if("function"==typeof a2)return a2(a5)},a3=0,a7=0,a6=[],a8=!1,a9={after:t=>({run:e=>window.setTimeout(e,t),cancel(t){window.clearTimeout(t)}}),run:(t,e)=>window.setTimeout(t,e),cancel(t){window.clearTimeout(t)}},ot={run:t=>window.requestAnimationFrame(t),cancel(t){window.cancelAnimationFrame(t)}},oe={run:t=>window.requestIdleCallback?window.requestIdleCallback(t):window.setTimeout(t,16),cancel(t){window.cancelIdleCallback?window.cancelIdleCallback(t):window.clearTimeout(t)}},on={run(t){a8||(a8=!0,queueMicrotask(()=>(function(){a8=!1;let t=a6.length;for(let e=0;e<t;e++){let t=a6[e];if(t)try{t()}catch(t){setTimeout(()=>{throw t})}}a6.splice(0,t),a7+=t})())),a6.push(t);let e=a3;return a3+=1,e},cancel(t){let e=t-a7;if(e>=0){if(!a6[e])throw Error(`invalid async handle: ${t}`);a6[e]=null}}},oi=new Set;class or{static debounce(t,e,n){return t instanceof or?t._cancelAsync():t=new or,t.setConfig(e,n),t}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,oi.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),oi.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return null!=this._timer}}let oa=[];function oo(t,e,n=t.getAttribute("dir")){e?t.setAttribute("dir",e):null!=n&&t.removeAttribute("dir")}function os(){return document.documentElement.getAttribute("dir")}new MutationObserver(function(){let t=os();oa.forEach(e=>{oo(e,t)})}).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});let ol=t=>class extends t{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:t=>t||"",toAttribute:t=>""===t?null:t}}}}get __isRTL(){return"rtl"===this.getAttribute("dir")}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),oo(this,os(),null))}attributeChangedCallback(t,e,n){if(super.attributeChangedCallback(t,e,n),"dir"!==t)return;let i=os(),r=n===i&&-1===oa.indexOf(this),a=!n&&e&&-1===oa.indexOf(this),o=n!==i&&e===i;r||a?(this.__subscribe(),oo(this,i,n)):o&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=oa.includes(this),this.__unsubscribe()}_valueToNodeAttribute(t,e,n){("dir"!==n||""!==e||t.hasAttribute("dir"))&&super._valueToNodeAttribute(t,e,n)}_attributeToProperty(t,e,n){"dir"!==t||e?super._attributeToProperty(t,e,n):this.dir=""}__subscribe(){oa.includes(this)||oa.push(this)}__unsubscribe(){oa.includes(this)&&oa.splice(oa.indexOf(this),1)}};window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations||(window.Vaadin.registrations=[]),window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={}),window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){a4()};let od=new Set,oc=e=>class extends ol(e){static _ensureRegistrations(){let{is:e}=this;if(e&&!od.has(e)){window.Vaadin.registrations.push(this),od.add(e);let i=window.Vaadin.developmentModeCallback;if(i){var n;n=t=or.debounce(t,oe,()=>{i["vaadin-usage-statistics"]()}),oi.add(n)}}}constructor(){super(),null===document.doctype&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.'),this.constructor._ensureRegistrations()}},ou=new WeakMap;function op(t){return e=>{if(function(t,e){let n=e;for(;n;){if(ou.get(n)===t)return!0;n=Object.getPrototypeOf(n)}return!1}(t,e))return e;let n=t(e);return ou.set(n,t),n}}let om={},oh=/([A-Z])/gu;function of(t){return om[t]||(om[t]=t.replace(oh,"-$1").toLowerCase()),om[t]}function og(t){return t[0].toUpperCase()+t.substring(1)}function ob(t){let[e,n]=t.split("(");return{method:e,observerProps:n.replace(")","").split(",").map(t=>t.trim())}}function ov(t,e){return Object.prototype.hasOwnProperty.call(t,e)||(t[e]=new Map(t[e])),t[e]}let o_=op(t=>class extends t{static enabledWarnings=[];static createProperty(t,e){[String,Boolean,Number,Array].includes(e)&&(e={type:e}),e?.reflectToAttribute&&(e.reflect=!0),super.createProperty(t,e)}static getOrCreateMap(t){return ov(this,t)}static finalize(){if(window.litIssuedWarnings&&(window.litIssuedWarnings.add("no-override-create-property"),window.litIssuedWarnings.add("no-override-get-property-descriptor")),super.finalize(),Array.isArray(this.observers)){let t=this.getOrCreateMap("__complexObservers");this.observers.forEach(e=>{let{method:n,observerProps:i}=ob(e);t.set(n,i)})}}static addCheckedInitializer(t){super.addInitializer(e=>{e instanceof this&&t(e)})}static getPropertyDescriptor(t,e,n){let i=super.getPropertyDescriptor(t,e,n),r=i;if(this.getOrCreateMap("__propKeys").set(t,e),n.sync&&(r={get:i.get,set(i){let r=this[t];E(i,r)&&(this[e]=i,this.requestUpdate(t,r,n),this.hasUpdated&&this.performUpdate())},configurable:!0,enumerable:!0}),n.readOnly){let e=r.set;this.addCheckedInitializer(n=>{n[`_set${og(t)}`]=function(t){e.call(n,t)}}),r={get:r.get,set(){},configurable:!0,enumerable:!0}}if("value"in n&&this.addCheckedInitializer(e=>{let i="function"==typeof n.value?n.value.call(e):n.value;n.readOnly?e[`_set${og(t)}`](i):e[t]=i}),n.observer){let e=n.observer;this.getOrCreateMap("__observers").set(t,e),this.addCheckedInitializer(t=>{t[e]||console.warn(`observer method ${e} not defined`)})}if(n.notify){if(this.__notifyProps){if(!this.hasOwnProperty("__notifyProps")){let t=this.__notifyProps;this.__notifyProps=new Set(t)}}else this.__notifyProps=new Set;this.__notifyProps.add(t)}if(n.computed){let e=`__assignComputed${t}`,i=ob(n.computed);this.prototype[e]=function(...e){this[t]=this[i.method](...e)},this.getOrCreateMap("__computedObservers").set(e,i.observerProps)}return n.attribute||(n.attribute=of(t)),r}static get polylitConfig(){return{asyncFirstRender:!1}}connectedCallback(){super.connectedCallback();let{polylitConfig:t}=this.constructor;this.hasUpdated||t.asyncFirstRender||this.performUpdate()}firstUpdated(){super.firstUpdated(),this.$||(this.$={}),this.renderRoot.querySelectorAll("[id]").forEach(t=>{this.$[t.id]=t})}ready(){}willUpdate(t){this.constructor.__computedObservers&&this.__runComplexObservers(t,this.constructor.__computedObservers)}updated(t){let e=this.__isReadyInvoked;this.__isReadyInvoked=!0,this.constructor.__observers&&this.__runObservers(t,this.constructor.__observers),this.constructor.__complexObservers&&this.__runComplexObservers(t,this.constructor.__complexObservers),this.__dynamicPropertyObservers&&this.__runDynamicObservers(t,this.__dynamicPropertyObservers),this.__dynamicMethodObservers&&this.__runComplexObservers(t,this.__dynamicMethodObservers),this.constructor.__notifyProps&&this.__runNotifyProps(t,this.constructor.__notifyProps),e||this.ready()}setProperties(t){Object.entries(t).forEach(([t,e])=>{let n=this.constructor.__propKeys.get(t),i=this[n];this[n]=e,this.requestUpdate(t,i)}),this.hasUpdated&&this.performUpdate()}_createMethodObserver(t){let e=ov(this,"__dynamicMethodObservers"),{method:n,observerProps:i}=ob(t);e.set(n,i)}_createPropertyObserver(t,e){ov(this,"__dynamicPropertyObservers").set(e,t)}__runComplexObservers(t,e){e.forEach((e,n)=>{e.some(e=>t.has(e))&&(this[n]?this[n](...e.map(t=>this[t])):console.warn(`observer method ${n} not defined`))})}__runDynamicObservers(t,e){e.forEach((e,n)=>{t.has(e)&&this[n]&&this[n](this[e],t.get(e))})}__runObservers(t,e){t.forEach((t,n)=>{let i=e.get(n);void 0!==i&&this[i]&&this[i](this[n],t)})}__runNotifyProps(t,e){t.forEach((t,n)=>{e.has(n)&&this.dispatchEvent(new CustomEvent(`${of(n)}-changed`,{detail:{value:this[n]}}))})}_get(t,e){return t.split(".").reduce((t,e)=>t?t[e]:void 0,e)}_set(t,e,n){let i,r;r=(i=t.split(".")).pop(),i.reduce((t,e)=>t[e],n)[r]=e}});function oy(t){return t?new Set(t.split(" ")):new Set}function ox(t){return t?[...t].join(" "):""}function ow(t,e,n){let i=oy(t.getAttribute(e));i.add(n),t.setAttribute(e,ox(i))}class ok{constructor(t,e,n={}){this.target=t,this.callback=e,this.forceInitial=n.forceInitial,this._storedNodes=[],this._isSlot=t instanceof HTMLSlotElement,this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),n.syncInitial?this.flush():this._schedule()}connect(){this.target.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.target.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this._scheduled&&this.flush()}))}flush(){this._connected&&(this._scheduled=!1,this._processNodes())}_collectNodes(){return[...new Set((this._isSlot?[this.target]:[...this.target.querySelectorAll("slot")]).flatMap(t=>t.assignedNodes({flatten:!0})))]}_groupNodesBySlot(t){let e=new Map;return t.forEach(t=>{let n=t.assignedSlot;e.set(n,e.get(n)??[]),e.get(n).push(t)}),e}_collectMovedNodes(t){let e=this._groupNodesBySlot(t),n=this._groupNodesBySlot(this._storedNodes),i=[];return e.forEach((t,e)=>{let r=n.get(e)||[];new Set(r).difference(new Set(t)).size>0||r.forEach((e,n)=>{t.indexOf(e)!==n&&i.push(e)})}),i}_processNodes(){let t=this._collectNodes(),e=t.filter(t=>!this._storedNodes.includes(t)),n=this._storedNodes.filter(e=>!t.includes(e)),i=this._collectMovedNodes(t);(e.length||n.length||i.length||this.forceInitial)&&this.callback({addedNodes:e,currentNodes:t,movedNodes:i,removedNodes:n}),this.forceInitial&&(this.forceInitial=!1),this._storedNodes=t}}let oE=0;class oC extends EventTarget{static generateId(t,e="default"){return`${e}-${t.localName}-${oE++}`}constructor(t,e,n,i={}){super();const{initializer:r,multiple:a,observe:o,useUniqueId:s,uniqueIdPrefix:l}=i;this.host=t,this.slotName=e,this.tagName=n,this.observe="boolean"!=typeof o||o,this.multiple="boolean"==typeof a&&a,this.slotInitializer=r,a&&(this.nodes=[]),s&&(this.defaultId=this.constructor.generateId(t,l||e))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let t=this.getSlotChild();t?(this.node=t,this.initAddedNode(t)):(t=this.attachDefaultNode(),this.initNode(t))}initMultiple(){let t=this.getSlotChildren();if(0===t.length){let t=this.attachDefaultNode();t&&(this.nodes=[t],this.initNode(t))}else this.nodes=t,t.forEach(t=>{this.initAddedNode(t)})}attachDefaultNode(){let{host:t,slotName:e,tagName:n}=this,i=this.defaultNode;return!i&&n&&(i=document.createElement(n))instanceof Element&&(""!==e&&i.setAttribute("slot",e),this.defaultNode=i),i&&(this.node=i,t.appendChild(i)),i}getSlotChildren(){let{slotName:t}=this;return Array.from(this.host.childNodes).filter(e=>!(e.nodeType===Node.ELEMENT_NODE&&e.hasAttribute("data-slot-ignore"))&&(e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&""===t))}getSlotChild(){return this.getSlotChildren()[0]}initNode(t){let{slotInitializer:e}=this;e&&e(t,this.host)}initCustomNode(t){}teardownNode(t){}initAddedNode(t){t!==this.defaultNode&&(this.initCustomNode(t),this.initNode(t))}observeSlot(){let{slotName:t}=this,e=""===t?"slot:not([name])":`slot[name=${t}]`,n=this.host.shadowRoot.querySelector(e);this.__slotObserver=new ok(n,({addedNodes:t,removedNodes:e})=>{let n=this.multiple?this.nodes:[this.node],i=t.filter(t=>(t.nodeType!==Node.TEXT_NODE||""!==t.textContent.trim())&&!n.includes(t)&&!(t.nodeType===Node.ELEMENT_NODE&&t.hasAttribute("data-slot-ignore")));e.length&&(this.nodes=n.filter(t=>!e.includes(t)),e.forEach(t=>{this.teardownNode(t)})),i?.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...n,...i].filter(t=>t!==this.defaultNode),i.forEach(t=>{this.initAddedNode(t)})):(this.node&&this.node.remove(),this.node=i[0],this.initAddedNode(this.node)))})}}class oA extends oC{constructor(t){super(t,"tooltip"),this.setTarget(t),this.__onContentChange=this.__onContentChange.bind(this)}initCustomNode(t){t.target=this.target,void 0!==this.ariaTarget&&(t.ariaTarget=this.ariaTarget),void 0!==this.context&&(t.context=this.context),void 0!==this.manual&&(t.manual=this.manual),void 0!==this.position&&(t._position=this.position),void 0!==this.shouldShow&&(t.shouldShow=this.shouldShow),this.manual||this.host.setAttribute("has-tooltip",""),this.__notifyChange(t),t.addEventListener("content-changed",this.__onContentChange)}teardownNode(t){this.manual||this.host.removeAttribute("has-tooltip"),t.removeEventListener("content-changed",this.__onContentChange),this.__notifyChange(null)}setAriaTarget(t){this.ariaTarget=t;let e=this.node;e&&(e.ariaTarget=t)}setContext(t){this.context=t;let e=this.node;e&&(e.context=t)}setManual(t){this.manual=t;let e=this.node;e&&(e.manual=t)}setPosition(t){this.position=t;let e=this.node;e&&(e._position=t)}setShouldShow(t){this.shouldShow=t;let e=this.node;e&&(e.shouldShow=t)}setTarget(t){this.target=t;let e=this.node;e&&(e.target=t)}open(t){let e=this.node;e?.isConnected&&e._stateController.open(t)}close(t){let e=this.node;e&&e._stateController.close(t)}__onContentChange(t){this.__notifyChange(t.target)}__notifyChange(t){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:t}}))}}function oT(t){try{CSS.registerProperty(t)}catch(e){if(e instanceof DOMException&&"InvalidModificationError"===e.name)console.warn(`The CSS property ${t.name} has already been registered.`);else throw e}}class oI extends EventTarget{#t;#e=new Set;#n;#i=!1;constructor(t){super(),this.#t=t,this.#n=new CSSStyleSheet}#r(t){let{propertyName:e}=t;this.#e.has(e)&&this.dispatchEvent(new CustomEvent("property-changed",{detail:{propertyName:e}}))}observe(t){this.connect(),this.#e.has(t)||(this.#e.add(t),this.#n.replaceSync(`
1472
+ `;function rq(t){return(rq="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 rK(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}function rJ(t){var e=function(t,e){if("object"!=rq(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=rq(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==rq(e)?e:e+""}function rZ(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,rJ(i.key),i)}}function rQ(t,e,n){return e&&rZ(t.prototype,e),n&&rZ(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function r0(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function r1(t,e){return(r1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function r2(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&r1(t,e)}function r5(t,e){if(e&&("object"==rq(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return r0(t)}function r4(t){return(r4=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function r3(t,e,n){return(e=rJ(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function r7(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function r6(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function r8(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r6(Object(n),!0).forEach(function(e){r3(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r6(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var r9={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)}},at=new(function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};rK(this,t),this.init(e,n)}return rQ(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||r9,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=Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"log","",!0)}},{key:"warn",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"warn","",!0)}},{key:"error",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"error","")}},{key:"deprecate",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(t,e,n,i){return i&&!this.debug?null:("string"==typeof t[0]&&(t[0]="".concat(n).concat(this.prefix," ").concat(t[0])),this.logger[e](t))}},{key:"create",value:function(e){return new t(this.logger,r8(r8({},{prefix:"".concat(this.prefix,":").concat(e,":")}),this.options))}},{key:"clone",value:function(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new t(this.logger,e)}}]),t}()),ae=function(){function t(){rK(this,t),this.observers={}}return rQ(t,[{key:"on",value:function(t,e){var n=this;return t.split(" ").forEach(function(t){n.observers[t]=n.observers[t]||[],n.observers[t].push(e)}),this}},{key:"off",value:function(t,e){if(this.observers[t]){if(!e)return void delete this.observers[t];this.observers[t]=this.observers[t].filter(function(t){return t!==e})}}},{key:"emit",value:function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];this.observers[t]&&[].concat(this.observers[t]).forEach(function(t){t.apply(void 0,n)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(function(e){e.apply(e,[t].concat(n))})}}]),t}();function an(){var t,e,n=new Promise(function(n,i){t=n,e=i});return n.resolve=t,n.reject=e,n}function ai(t){return null==t?"":""+t}function ar(t,e,n){function i(t){return t&&t.indexOf("###")>-1?t.replace(/###/g,"."):t}function r(){return!t||"string"==typeof t}for(var a="string"!=typeof e?[].concat(e):e.split(".");a.length>1;){if(r())return{};var o=i(a.shift());!t[o]&&n&&(t[o]=new n),t=Object.prototype.hasOwnProperty.call(t,o)?t[o]:{}}return r()?{}:{obj:t,k:i(a.shift())}}function aa(t,e,n){var i=ar(t,e,Object);i.obj[i.k]=n}function ao(t,e){var n=ar(t,e),i=n.obj,r=n.k;if(i)return i[r]}function as(t,e,n){var i=ao(t,n);return void 0!==i?i:ao(e,n)}function al(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var ad={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function ac(t){return"string"==typeof t?t.replace(/[&<>"'\/]/g,function(t){return ad[t]}):t}var au="u">typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,ap=[" ",",","?","!",";"];function am(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function ah(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?am(Object(n),!0).forEach(function(e){r3(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):am(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var af=function(t){r2(i,t);var e,n=(e=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=r4(i);return t=e?Reflect.construct(n,arguments,r4(this).constructor):n.apply(this,arguments),r5(this,t)});function i(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return rK(this,i),e=n.call(this),au&&ae.call(r0(e)),e.data=t||{},e.options=r,void 0===e.options.keySeparator&&(e.options.keySeparator="."),void 0===e.options.ignoreJSONStructure&&(e.options.ignoreJSONStructure=!0),e}return rQ(i,[{key:"addNamespaces",value:function(t){0>this.options.ns.indexOf(t)&&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,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,a=void 0!==i.ignoreJSONStructure?i.ignoreJSONStructure:this.options.ignoreJSONStructure,o=[t,e];n&&"string"!=typeof n&&(o=o.concat(n)),n&&"string"==typeof n&&(o=o.concat(r?n.split(r):n)),t.indexOf(".")>-1&&(o=t.split("."));var s=ao(this.data,o);return s||!a||"string"!=typeof n?s:function t(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[n])return e[n];for(var r=n.split(i),a=e,o=0;o<r.length;++o){if(!a||"string"==typeof a[r[o]]&&o+1<r.length)return;if(void 0===a[r[o]]){for(var s=2,l=r.slice(o,o+s).join(i),d=a[l];void 0===d&&r.length>o+s;)s++,d=a[l=r.slice(o,o+s).join(i)];if(void 0===d)return;if(null===d)return null;if(n.endsWith(l)){if("string"==typeof d)return d;if(l&&"string"==typeof d[l])return d[l]}var c=r.slice(o+s).join(i);if(c)return t(d,c,i);return}a=a[r[o]]}return a}}(this.data&&this.data[t]&&this.data[t][e],n,r)}},{key:"addResource",value:function(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},a=this.options.keySeparator;void 0===a&&(a=".");var o=[t,e];n&&(o=o.concat(a?n.split(a):n)),t.indexOf(".")>-1&&(o=t.split("."),i=e,e=o[1]),this.addNamespaces(e),aa(this.data,o,i),r.silent||this.emit("added",t,e,n,i)}},{key:"addResources",value:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var r in n)("string"==typeof n[r]||"[object Array]"===Object.prototype.toString.apply(n[r]))&&this.addResource(t,e,r,n[r],{silent:!0});i.silent||this.emit("added",t,e,n)}},{key:"addResourceBundle",value:function(t,e,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},o=[t,e];t.indexOf(".")>-1&&(o=t.split("."),i=n,n=e,e=o[1]),this.addNamespaces(e);var s=ao(this.data,o)||{};i?function t(e,n,i){for(var r in n)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof n[r]||n[r]instanceof String?i&&(e[r]=n[r]):t(e[r],n[r],i):e[r]=n[r]);return e}(s,n,r):s=ah(ah({},s),n),aa(this.data,o,s),a.silent||this.emit("added",t,e,n)}},{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)?ah(ah({},{}),this.getResource(t,e)):this.getResource(t,e)}},{key:"getDataByLanguage",value:function(t){return this.data[t]}},{key:"hasLanguageSomeTranslations",value:function(t){var e=this.getDataByLanguage(t);return!!(e&&Object.keys(e)||[]).find(function(t){return e[t]&&Object.keys(e[t]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),i}(ae),ag={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,e,n,i,r){var a=this;return t.forEach(function(t){a.processors[t]&&(e=a.processors[t].process(e,n,i,r))}),e}};function ab(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function av(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ab(Object(n),!0).forEach(function(e){r3(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ab(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var a_={},ay=function(t){r2(i,t);var e,n=(e=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=r4(i);return t=e?Reflect.construct(n,arguments,r4(this).constructor):n.apply(this,arguments),r5(this,t)});function i(t){var e,r,a,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return rK(this,i),a=n.call(this),au&&ae.call(r0(a)),e=["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r=r0(a),e.forEach(function(e){t[e]&&(r[e]=t[e])}),a.options=o,void 0===a.options.keySeparator&&(a.options.keySeparator="."),a.logger=at.create("translator"),a}return rQ(i,[{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:{}};if(null==t)return!1;var n=this.resolve(t,e);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(t,e){var n=void 0!==e.nsSeparator?e.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var i=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,r=e.ns||this.options.defaultNS||[],a=n&&t.indexOf(n)>-1,o=!this.options.userDefinedKeySeparator&&!e.keySeparator&&!this.options.userDefinedNsSeparator&&!e.nsSeparator&&!function(t,e,n){e=e||"",n=n||"";var i=ap.filter(function(t){return 0>e.indexOf(t)&&0>n.indexOf(t)});if(0===i.length)return!0;var r=new RegExp("(".concat(i.map(function(t){return"?"===t?"\\?":t}).join("|"),")")),a=!r.test(t);if(!a){var o=t.indexOf(n);o>0&&!r.test(t.substring(0,o))&&(a=!0)}return a}(t,n,i);if(a&&!o){var s=t.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:t,namespaces:r};var l=t.split(n);(n!==i||n===i&&this.options.ns.indexOf(l[0])>-1)&&(r=l.shift()),t=l.join(i)}return"string"==typeof r&&(r=[r]),{key:t,namespaces:r}}},{key:"translate",value:function(t,e,n){var r=this;if("object"!==rq(e)&&this.options.overloadTranslationOptionHandler&&(e=this.options.overloadTranslationOptionHandler(arguments)),e||(e={}),null==t)return"";Array.isArray(t)||(t=[String(t)]);var a=void 0!==e.returnDetails?e.returnDetails:this.options.returnDetails,o=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,s=this.extractFromKey(t[t.length-1],e),l=s.key,d=s.namespaces,c=d[d.length-1],u=e.lng||this.language,p=e.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&"cimode"===u.toLowerCase()){if(p){var m=e.nsSeparator||this.options.nsSeparator;return a?(h.res="".concat(c).concat(m).concat(l),h):"".concat(c).concat(m).concat(l)}return a?(h.res=l,h):l}var h=this.resolve(t,e),f=h&&h.res,g=h&&h.usedKey||l,b=h&&h.exactUsedKey||l,v=Object.prototype.toString.apply(f),_=void 0!==e.joinArrays?e.joinArrays:this.options.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,x="string"!=typeof f&&"boolean"!=typeof f&&"number"!=typeof f;if(y&&f&&x&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(v)&&("string"!=typeof _||"[object Array]"!==v)){if(!e.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var w=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,f,av(av({},e),{},{ns:d})):"key '".concat(l," (").concat(this.language,")' returned an object instead of string.");return a?(h.res=w,h):w}if(o){var k="[object Array]"===v,E=k?[]:{},C=k?b:g;for(var A in f)if(Object.prototype.hasOwnProperty.call(f,A)){var T="".concat(C).concat(o).concat(A);E[A]=this.translate(T,av(av({},e),{joinArrays:!1,ns:d})),E[A]===T&&(E[A]=f[A])}f=E}}else if(y&&"string"==typeof _&&"[object Array]"===v)(f=f.join(_))&&(f=this.extendTranslation(f,t,e,n));else{var I=!1,S=!1,O=void 0!==e.count&&"string"!=typeof e.count,R=i.hasDefaultValue(e),L=O?this.pluralResolver.getSuffix(u,e.count,e):"",N=e["defaultValue".concat(L)]||e.defaultValue;!this.isValidLookup(f)&&R&&(I=!0,f=N),this.isValidLookup(f)||(S=!0,f=l);var D=(e.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&S?void 0:f,M=R&&N!==f&&this.options.updateMissing;if(S||I||M){if(this.logger.log(M?"updateKey":"missingKey",u,c,l,M?N:f),o){var P=this.resolve(l,av(av({},e),{},{keySeparator:!1}));P&&P.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 z=[],$=this.languageUtils.getFallbackCodes(this.options.fallbackLng,e.lng||this.language);if("fallback"===this.options.saveMissingTo&&$&&$[0])for(var F=0;F<$.length;F++)z.push($[F]);else"all"===this.options.saveMissingTo?z=this.languageUtils.toResolveHierarchy(e.lng||this.language):z.push(e.lng||this.language);var B=function(t,n,i){var a=R&&i!==f?i:D;r.options.missingKeyHandler?r.options.missingKeyHandler(t,c,n,a,M,e):r.backendConnector&&r.backendConnector.saveMissing&&r.backendConnector.saveMissing(t,c,n,a,M,e),r.emit("missingKey",t,c,n,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&O?z.forEach(function(t){r.pluralResolver.getSuffixes(t,e).forEach(function(n){B([t],l+n,e["defaultValue".concat(n)]||N)})}):B(z,l,N))}f=this.extendTranslation(f,t,e,h,n),S&&f===l&&this.options.appendNamespaceToMissingKey&&(f="".concat(c,":").concat(l)),(S||I)&&this.options.parseMissingKeyHandler&&(f="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(c,":").concat(l):l,I?f:void 0):this.options.parseMissingKeyHandler(f))}return a?(h.res=f,h):f}},{key:"extendTranslation",value:function(t,e,n,i,r){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,av(av({},this.options.interpolation.defaultVariables),n),i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(av(av({},n),{interpolation:av(av({},this.options.interpolation),n.interpolation)}));var o,s="string"==typeof t&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(s){var l=t.match(this.interpolator.nestingRegexp);o=l&&l.length}var d=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(d=av(av({},this.options.interpolation.defaultVariables),d)),t=this.interpolator.interpolate(t,d,n.lng||this.language,n),s){var c=t.match(this.interpolator.nestingRegexp);o<(c&&c.length)&&(n.nest=!1)}!1!==n.nest&&(t=this.interpolator.nest(t,function(){for(var t=arguments.length,i=Array(t),o=0;o<t;o++)i[o]=arguments[o];return r&&r[0]===i[0]&&!n.context?(a.logger.warn("It seems you are nesting recursively key: ".concat(i[0]," in key: ").concat(e[0])),null):a.translate.apply(a,i.concat([e]))},n)),n.interpolation&&this.interpolator.reset()}var u=n.postProcess||this.options.postProcess,p="string"==typeof u?[u]:u;return null!=t&&p&&p.length&&!1!==n.applyPostProcessor&&(t=ag.handle(p,t,e,this.options&&this.options.postProcessPassResolved?av({i18nResolved:i},n):n,this)),t}},{key:"resolve",value:function(t){var e,n,i,r,a,o=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof t&&(t=[t]),t.forEach(function(t){if(!o.isValidLookup(e)){var l=o.extractFromKey(t,s),d=l.key;n=d;var c=l.namespaces;o.options.fallbackNS&&(c=c.concat(o.options.fallbackNS));var u=void 0!==s.count&&"string"!=typeof s.count,p=u&&!s.ordinal&&0===s.count&&o.pluralResolver.shouldUseIntlApi(),m=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,h=s.lngs?s.lngs:o.languageUtils.toResolveHierarchy(s.lng||o.language,s.fallbackLng);c.forEach(function(t){o.isValidLookup(e)||(a=t,!a_["".concat(h[0],"-").concat(t)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(a)&&(a_["".concat(h[0],"-").concat(t)]=!0,o.logger.warn('key "'.concat(n,'" for languages "').concat(h.join(", "),'" won\'t get resolved as namespace "').concat(a,'" 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!!!")),h.forEach(function(n){if(!o.isValidLookup(e)){r=n;var a,l=[d];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(l,d,n,t,s);else{u&&(c=o.pluralResolver.getSuffix(n,s.count,s));var c,h="".concat(o.options.pluralSeparator,"zero");if(u&&(l.push(d+c),p&&l.push(d+h)),m){var f="".concat(d).concat(o.options.contextSeparator).concat(s.context);l.push(f),u&&(l.push(f+c),p&&l.push(f+h))}}for(;a=l.pop();)o.isValidLookup(e)||(i=a,e=o.getResource(n,t,a,s))}}))})}}),{res:e,usedKey:n,exactUsedKey:i,usedLng:r,usedNS:a}}},{key:"isValidLookup",value:function(t){return void 0!==t&&!(!this.options.returnNull&&null===t)&&!(!this.options.returnEmptyString&&""===t)}},{key:"getResource",value:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,e,n,i):this.resourceStore.getResource(t,e,n,i)}}],[{key:"hasDefaultValue",value:function(t){var e="defaultValue";for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e===n.substring(0,e.length)&&void 0!==t[n])return!0;return!1}}]),i}(ae);function ax(t){return t.charAt(0).toUpperCase()+t.slice(1)}var aw=function(){function t(e){rK(this,t),this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=at.create("languageUtils")}return rQ(t,[{key:"getScriptPartFromCode",value:function(t){if(!t||0>t.indexOf("-"))return null;var e=t.split("-");return 2===e.length||(e.pop(),"x"===e[e.length-1].toLowerCase())?null:this.formatLanguageCode(e.join("-"))}},{key:"getLanguagePartFromCode",value:function(t){if(!t||0>t.indexOf("-"))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"],n=t.split("-");return this.options.lowerCaseLng?n=n.map(function(t){return t.toLowerCase()}):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),e.indexOf(n[1].toLowerCase())>-1&&(n[1]=ax(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),e.indexOf(n[1].toLowerCase())>-1&&(n[1]=ax(n[1].toLowerCase())),e.indexOf(n[2].toLowerCase())>-1&&(n[2]=ax(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():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,n=this;return t?(t.forEach(function(t){if(!e){var i=n.formatLanguageCode(t);(!n.options.supportedLngs||n.isSupportedCode(i))&&(e=i)}}),!e&&this.options.supportedLngs&&t.forEach(function(t){if(!e){var i=n.getLanguagePartFromCode(t);if(n.isSupportedCode(i))return e=i;e=n.options.supportedLngs.find(function(t){if(0===t.indexOf(i))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 n=t[e];return n||(n=t[this.getScriptPartFromCode(e)]),n||(n=t[this.formatLanguageCode(e)]),n||(n=t[this.getLanguagePartFromCode(e)]),n||(n=t.default),n||[]}},{key:"toResolveHierarchy",value:function(t,e){var n=this,i=this.getFallbackCodes(e||this.options.fallbackLng||[],t),r=[],a=function(t){t&&(n.isSupportedCode(t)?r.push(t):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(t)))};return"string"==typeof t&&t.indexOf("-")>-1?("languageOnly"!==this.options.load&&a(this.formatLanguageCode(t)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&a(this.getScriptPartFromCode(t)),"currentOnly"!==this.options.load&&a(this.getLanguagePartFromCode(t))):"string"==typeof t&&a(this.formatLanguageCode(t)),i.forEach(function(t){0>r.indexOf(t)&&a(n.formatLanguageCode(t))}),r}}]),t}(),ak=[{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","kk","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","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}],aE={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)))},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:3*(t%100==3||t%100==4))},22:function(t){return Number(1==t?0:2==t?1:(t<0||t>10)&&t%10==0?2:3)}},aC=["v1","v2","v3"],aA={zero:0,one:1,two:2,few:3,many:4,other:5},aT=function(){function t(e){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};rK(this,t),this.languageUtils=e,this.options=i,this.logger=at.create("pluralResolver"),(!this.options.compatibilityJSON||"v4"===this.options.compatibilityJSON)&&("u"<typeof Intl||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(n={},ak.forEach(function(t){t.lngs.forEach(function(e){n[e]={numbers:t.nr,plurals:aE[t.fc]}})}),n)}return rQ(t,[{key:"addRule",value:function(t,e){this.rules[t]=e}},{key:"getRule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(t,{type:e.ordinal?"ordinal":"cardinal"})}catch(t){return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}},{key:"needsPlural",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(t,e);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(t,n).map(function(t){return"".concat(e).concat(t)})}},{key:"getSuffixes",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.getRule(t,n);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort(function(t,e){return aA[t]-aA[e]}).map(function(t){return"".concat(e.options.prepend).concat(t)}):i.numbers.map(function(i){return e.getSuffix(t,i,n)}):[]}},{key:"getSuffix",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this.getRule(t,n);return i?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(i.select(e)):this.getSuffixRetroCompatible(i,e):(this.logger.warn("no plural rule found for: ".concat(t)),"")}},{key:"getSuffixRetroCompatible",value:function(t,e){var n=this,i=t.noAbs?t.plurals(e):t.plurals(Math.abs(e)),r=t.numbers[i];this.options.simplifyPluralSuffix&&2===t.numbers.length&&1===t.numbers[0]&&(2===r?r="plural":1===r&&(r=""));var a=function(){return n.options.prepend&&r.toString()?n.options.prepend+r.toString():r.toString()};return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?"_plural_".concat(r.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===t.numbers.length&&1===t.numbers[0]?a():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}},{key:"shouldUseIntlApi",value:function(){return!aC.includes(this.options.compatibilityJSON)}}]),t}();function aI(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function aS(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?aI(Object(n),!0).forEach(function(e){r3(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):aI(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var aO=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};rK(this,t),this.logger=at.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(t){return t},this.init(e)}return rQ(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:ac,this.escapeValue=void 0===e.escapeValue||e.escapeValue,this.useRawValueToEscape=void 0!==e.useRawValueToEscape&&e.useRawValueToEscape,this.prefix=e.prefix?al(e.prefix):e.prefixEscaped||"{{",this.suffix=e.suffix?al(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?al(e.nestingPrefix):e.nestingPrefixEscaped||al("$t("),this.nestingSuffix=e.nestingSuffix?al(e.nestingSuffix):e.nestingSuffixEscaped||al(")"),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=RegExp(t,"g");var e="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=RegExp(e,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=RegExp(n,"g")}},{key:"interpolate",value:function(t,e,n,i){var r,a,o,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function d(t){return t.replace(/\$/g,"$$$$")}var c=function(t){if(0>t.indexOf(s.formatSeparator)){var r=as(e,l,t);return s.alwaysFormat?s.format(r,void 0,n,aS(aS(aS({},i),e),{},{interpolationkey:t})):r}var a=t.split(s.formatSeparator),o=a.shift().trim(),d=a.join(s.formatSeparator).trim();return s.format(as(e,l,o),d,n,aS(aS(aS({},i),e),{},{interpolationkey:o}))};this.resetRegExp();var u=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,p=i&&i.interpolation&&void 0!==i.interpolation.skipOnVariables?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(t){return d(t)}},{regex:this.regexp,safeValue:function(t){return s.escapeValue?d(s.escape(t)):d(t)}}].forEach(function(e){for(o=0;r=e.regex.exec(t);){var n=r[1].trim();if(void 0===(a=c(n)))if("function"==typeof u){var l=u(t,r,i);a="string"==typeof l?l:""}else if(i&&i.hasOwnProperty(n))a="";else if(p){a=r[0];continue}else s.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(t)),a="";else"string"==typeof a||s.useRawValueToEscape||(a=ai(a));var d=e.safeValue(a);if(t=t.replace(r[0],d),p?(e.regex.lastIndex+=a.length,e.regex.lastIndex-=r[0].length):e.regex.lastIndex=0,++o>=s.maxReplaces)break}}),t}},{key:"nest",value:function(t,e){var n,i,r=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=aS({},a);function s(t,e){var n=this.nestingOptionsSeparator;if(0>t.indexOf(n))return t;var i=t.split(new RegExp("".concat(n,"[ ]*{"))),r="{".concat(i[1]);t=i[0];var a=(r=this.interpolate(r,o)).match(/'/g),s=r.match(/"/g);(a&&a.length%2==0&&!s||s.length%2!=0)&&(r=r.replace(/'/g,'"'));try{o=JSON.parse(r),e&&(o=aS(aS({},e),o))}catch(e){return this.logger.warn("failed parsing options string in nesting for key ".concat(t),e),"".concat(t).concat(n).concat(r)}return delete o.defaultValue,t}for(o.applyPostProcessor=!1,delete o.defaultValue;n=this.nestingRegexp.exec(t);){var l=[],d=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var c=n[1].split(this.formatSeparator).map(function(t){return t.trim()});n[1]=c.shift(),l=c,d=!0}if((i=e(s.call(this,n[1].trim(),o),o))&&n[0]===t&&"string"!=typeof i)return i;"string"!=typeof i&&(i=ai(i)),i||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(t)),i=""),d&&(i=l.reduce(function(t,e){return r.format(t,e,a.lng,aS(aS({},a),{},{interpolationkey:n[1].trim()}))},i.trim())),t=t.replace(n[0],i),this.regexp.lastIndex=0}return t}}]),t}();function aR(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function aL(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?aR(Object(n),!0).forEach(function(e){r3(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):aR(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function aN(t){var e={};return function(n,i,r){var a=i+JSON.stringify(r),o=e[a];return o||(o=t(i,r),e[a]=o),o(n)}}var aD=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};rK(this,t),this.logger=at.create("formatter"),this.options=e,this.formats={number:aN(function(t,e){var n=new Intl.NumberFormat(t,e);return function(t){return n.format(t)}}),currency:aN(function(t,e){var n=new Intl.NumberFormat(t,aL(aL({},e),{},{style:"currency"}));return function(t){return n.format(t)}}),datetime:aN(function(t,e){var n=new Intl.DateTimeFormat(t,aL({},e));return function(t){return n.format(t)}}),relativetime:aN(function(t,e){var n=new Intl.RelativeTimeFormat(t,aL({},e));return function(t){return n.format(t,e.range||"day")}}),list:aN(function(t,e){var n=new Intl.ListFormat(t,aL({},e));return function(t){return n.format(t)}})},this.init(e)}return rQ(t,[{key:"init",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=e.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}},{key:"add",value:function(t,e){this.formats[t.toLowerCase().trim()]=e}},{key:"addCached",value:function(t,e){this.formats[t.toLowerCase().trim()]=aN(e)}},{key:"format",value:function(t,e,n,i){var r=this;return e.split(this.formatSeparator).reduce(function(t,e){var a=function(t){var e=t.toLowerCase().trim(),n={};if(t.indexOf("(")>-1){var i=t.split("(");e=i[0].toLowerCase().trim();var r=i[1].substring(0,i[1].length-1);"currency"===e&&0>r.indexOf(":")?n.currency||(n.currency=r.trim()):"relativetime"===e&&0>r.indexOf(":")?n.range||(n.range=r.trim()):r.split(";").forEach(function(t){if(t){var e,i=function(t){if(Array.isArray(t))return t}(e=t.split(":"))||function(t){if("u">typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(t){if(t){if("string"==typeof t)return r7(t,void 0);var e=({}).toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?r7(t,void 0):void 0}}(e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=i[0],a=i.slice(1).join(":").trim().replace(/^'+|'+$/g,"");n[r.trim()]||(n[r.trim()]=a),"false"===a&&(n[r.trim()]=!1),"true"===a&&(n[r.trim()]=!0),isNaN(a)||(n[r.trim()]=parseInt(a,10))}})}return{formatName:e,formatOptions:n}}(e),o=a.formatName,s=a.formatOptions;if(r.formats[o]){var l=t;try{var d=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},c=d.locale||d.lng||i.locale||i.lng||n;l=r.formats[o](t,c,aL(aL(aL({},s),i),d))}catch(t){r.logger.warn(t)}return l}return r.logger.warn("there was no format function for ".concat(o)),t},t)}}]),t}();function aM(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function aP(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?aM(Object(n),!0).forEach(function(e){r3(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):aM(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var az=function(t){r2(i,t);var e,n=(e=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=r4(i);return t=e?Reflect.construct(n,arguments,r4(this).constructor):n.apply(this,arguments),r5(this,t)});function i(t,e,r){var a,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return rK(this,i),a=n.call(this),au&&ae.call(r0(a)),a.backend=t,a.store=e,a.services=r,a.languageUtils=r.languageUtils,a.options=o,a.logger=at.create("backendConnector"),a.waitingReads=[],a.maxParallelReads=o.maxParallelReads||10,a.readingCalls=0,a.maxRetries=o.maxRetries>=0?o.maxRetries:5,a.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(r,o.backend,o),a}return rQ(i,[{key:"queueLoad",value:function(t,e,n,i){var r=this,a={},o={},s={},l={};return t.forEach(function(t){var i=!0;e.forEach(function(e){var s="".concat(t,"|").concat(e);!n.reload&&r.store.hasResourceBundle(t,e)?r.state[s]=2:r.state[s]<0||(1===r.state[s]?void 0===o[s]&&(o[s]=!0):(r.state[s]=1,i=!1,void 0===o[s]&&(o[s]=!0),void 0===a[s]&&(a[s]=!0),void 0===l[e]&&(l[e]=!0)))}),i||(s[t]=!0)}),(Object.keys(a).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(a),pending:Object.keys(o),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}},{key:"loaded",value:function(t,e,n){var i=t.split("|"),r=i[0],a=i[1];e&&this.emit("failedLoading",r,a,e),n&&this.store.addResourceBundle(r,a,n),this.state[t]=e?-1:2;var o={};this.queue.forEach(function(n){var i,s,l,d;i=n.loaded,(l=(s=ar(i,[r],Object)).obj)[d=s.k]=l[d]||[],l[d].push(a),void 0!==n.pending[t]&&(delete n.pending[t],n.pendingCount--),e&&n.errors.push(e),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(function(t){o[t]||(o[t]={});var e=n.loaded[t];e.length&&e.forEach(function(e){void 0===o[t][e]&&(o[t][e]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(function(t){return!t.done})}},{key:"read",value:function(t,e,n){var i=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;return t.length?this.readingCalls>=this.maxParallelReads?void this.waitingReads.push({lng:t,ns:e,fcName:n,tried:r,wait:a,callback:o}):(this.readingCalls++,this.backend[n](t,e,function(s,l){if(i.readingCalls--,i.waitingReads.length>0){var d=i.waitingReads.shift();i.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}s&&l&&r<i.maxRetries?setTimeout(function(){i.read.call(i,t,e,n,r+1,2*a,o)},a):o(s,l)})):o(null,{})}},{key:"prepareLoading",value:function(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=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."),r&&r();"string"==typeof t&&(t=this.languageUtils.toResolveHierarchy(t)),"string"==typeof e&&(e=[e]);var a=this.queueLoad(t,e,i,r);if(!a.toLoad.length)return a.pending.length||r(),null;a.toLoad.forEach(function(t){n.loadOne(t)})}},{key:"load",value:function(t,e,n){this.prepareLoading(t,e,{},n)}},{key:"reload",value:function(t,e,n){this.prepareLoading(t,e,{reload:!0},n)}},{key:"loadOne",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=t.split("|"),r=i[0],a=i[1];this.read(r,a,"read",void 0,void 0,function(i,o){i&&e.logger.warn("".concat(n,"loading namespace ").concat(a," for language ").concat(r," failed"),i),!i&&o&&e.logger.log("".concat(n,"loaded namespace ").concat(a," for language ").concat(r),o),e.loaded(t,i,o)})}},{key:"saveMissing",value:function(t,e,n,i,r){var a=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(n,'" 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==n||""===n||(this.backend&&this.backend.create&&this.backend.create(t,e,n,i,null,aP(aP({},a),{},{isUpdate:r})),t&&t[0]&&this.store.addResource(t[0],e,n,i))}}]),i}(ae);function a$(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.supportedLngs&&0>t.supportedLngs.indexOf("cimode")&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function aF(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function aB(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?aF(Object(n),!0).forEach(function(e){r3(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):aF(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function aH(){}var aV=function(t){r2(i,t);var e,n=(e=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=r4(i);return t=e?Reflect.construct(n,arguments,r4(this).constructor):n.apply(this,arguments),r5(this,t)});function i(){var t,e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;if(rK(this,i),e=n.call(this),au&&ae.call(r0(e)),e.options=a$(r),e.services={},e.logger=at,e.modules={external:[]},Object.getOwnPropertyNames(Object.getPrototypeOf(t=r0(e))).forEach(function(e){"function"==typeof t[e]&&(t[e]=t[e].bind(t))}),a&&!e.isInitialized&&!r.isClone){if(!e.options.initImmediate)return e.init(r,a),r5(e,r0(e));setTimeout(function(){e.init(r,a)},0)}return e}return rQ(i,[{key:"init",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof e&&(n=e,e={}),!e.defaultNS&&!1!==e.defaultNS&&e.ns&&("string"==typeof e.ns?e.defaultNS=e.ns:0>e.ns.indexOf("translation")&&(e.defaultNS=e.ns[0]));var i={debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!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"===rq(t[1])&&(e=t[1]),"string"==typeof t[1]&&(e.defaultValue=t[1]),"string"==typeof t[2]&&(e.tDescription=t[2]),"object"===rq(t[2])||"object"===rq(t[3])){var n=t[3]||t[2];Object.keys(n).forEach(function(t){e[t]=n[t]})}return e},interpolation:{escapeValue:!0,format:function(t,e,n,i){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}};function r(t){return t?"function"==typeof t?new t:t:null}if(this.options=aB(aB(aB({},i),this.options),a$(e)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=aB(aB({},i.interpolation),this.options.interpolation)),void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),!this.options.isClone){this.modules.logger?at.init(r(this.modules.logger),this.options):at.init(null,this.options),this.modules.formatter?a=this.modules.formatter:"u">typeof Intl&&(a=aD);var a,o=new aw(this.options);this.store=new af(this.options.resources,this.options);var s=this.services;s.logger=at,s.resourceStore=this.store,s.languageUtils=o,s.pluralResolver=new aT(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(s.formatter=r(a),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new aO(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new az(r(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",function(e){for(var n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];t.emit.apply(t,[e].concat(i))}),this.modules.languageDetector&&(s.languageDetector=r(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=r(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new ay(this.services,this.options),this.translator.on("*",function(e){for(var n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];t.emit.apply(t,[e].concat(i))}),this.modules.external.forEach(function(e){e.init&&e.init(t)})}if(this.format=this.options.interpolation.format,n||(n=aH),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.length>0&&"dev"!==l[0]&&(this.options.lng=l[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(function(e){t[e]=function(){var n;return(n=t.store)[e].apply(n,arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(e){t[e]=function(){var n;return(n=t.store)[e].apply(n,arguments),t}});var d=an(),c=function(){var e=function(e,i){t.isInitialized&&!t.initializedStoreOnce&&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),d.resolve(i),n(e,i)};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?c():setTimeout(c,0),d}},{key:"loadResources",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:aH,i=n,r="string"==typeof t?t:this.language;if("function"==typeof t&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return i();var a=[],o=function(t){t&&e.services.languageUtils.toResolveHierarchy(t).forEach(function(t){0>a.indexOf(t)&&a.push(t)})};r?o(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(t){return o(t)}),this.options.preload&&this.options.preload.forEach(function(t){return o(t)}),this.services.backendConnector.load(a,this.options.ns,function(t){t||e.resolvedLanguage||!e.language||e.setResolvedLanguage(e.language),i(t)})}else i(null)}},{key:"reloadResources",value:function(t,e,n){var i=an();return t||(t=this.languages),e||(e=this.options.ns),n||(n=aH),this.services.backendConnector.reload(t,e,function(t){i.resolve(),n(t)}),i}},{key:"use",value:function(t){if(!t)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw 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&&ag.addPostProcessor(t),"formatter"===t.type&&(this.modules.formatter=t),"3rdParty"===t.type&&this.modules.external.push(t),this}},{key:"setResolvedLanguage",value:function(t){if(t&&this.languages&&!(["cimode","dev"].indexOf(t)>-1))for(var e=0;e<this.languages.length;e++){var n=this.languages[e];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}},{key:"changeLanguage",value:function(t,e){var n=this;this.isLanguageChangingTo=t;var i=an();this.emit("languageChanging",t);var r=function(t){n.language=t,n.languages=n.services.languageUtils.toResolveHierarchy(t),n.resolvedLanguage=void 0,n.setResolvedLanguage(t)},a=function(t,a){a?(r(a),n.translator.changeLanguage(a),n.isLanguageChangingTo=void 0,n.emit("languageChanged",a),n.logger.log("languageChanged",a)):n.isLanguageChangingTo=void 0,i.resolve(function(){return n.t.apply(n,arguments)}),e&&e(t,function(){return n.t.apply(n,arguments)})},o=function(e){t||e||!n.services.languageDetector||(e=[]);var i="string"==typeof e?e:n.services.languageUtils.getBestMatchFromCodes(e);i&&(n.language||r(i),n.translator.language||n.translator.changeLanguage(i),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(i)),n.loadResources(i,function(t){a(t,i)})};return t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(t):o(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function(t,e,n){var i=this,r=function t(e,r){if("object"!==rq(r)){for(var a,o=arguments.length,s=Array(o>2?o-2:0),l=2;l<o;l++)s[l-2]=arguments[l];a=i.options.overloadTranslationOptionHandler([e,r].concat(s))}else a=aB({},r);a.lng=a.lng||t.lng,a.lngs=a.lngs||t.lngs,a.ns=a.ns||t.ns,a.keyPrefix=a.keyPrefix||n||t.keyPrefix;var d=i.options.keySeparator||".",c=a.keyPrefix?"".concat(a.keyPrefix).concat(d).concat(e):e;return i.t(c,a)};return"string"==typeof t?r.lng=t:r.lngs=t,r.ns=e,r.keyPrefix=n,r}},{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,n=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 i=this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,a=this.languages[this.languages.length-1];if("cimode"===i.toLowerCase())return!0;var o=function(t,n){var i=e.services.backendConnector.state["".concat(t,"|").concat(n)];return -1===i||2===i};if(n.precheck){var s=n.precheck(this,o);if(void 0!==s)return s}return!!(this.hasResourceBundle(i,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(i,t)&&(!r||o(a,t)))}},{key:"loadNamespaces",value:function(t,e){var n=this,i=an();return this.options.ns?("string"==typeof t&&(t=[t]),t.forEach(function(t){0>n.options.ns.indexOf(t)&&n.options.ns.push(t)}),this.loadResources(function(t){i.resolve(),e&&e(t)}),i):(e&&e(),Promise.resolve())}},{key:"loadLanguages",value:function(t,e){var n=an();"string"==typeof t&&(t=[t]);var i=this.options.preload||[],r=t.filter(function(t){return 0>i.indexOf(t)});return r.length?(this.options.preload=i.concat(r),this.loadResources(function(t){n.resolve(),e&&e(t)}),n):(e&&e(),Promise.resolve())}},{key:"dir",value:function(t){return(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),t)?["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","ckb"].indexOf(this.services.languageUtils.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}},{key:"cloneInstance",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:aH,r=aB(aB(aB({},this.options),e),{isClone:!0}),a=new i(r);return(void 0!==e.debug||void 0!==e.prefix)&&(a.logger=a.logger.clone(e)),["store","services","language"].forEach(function(e){a[e]=t[e]}),a.services=aB({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new ay(a.services,a.options),a.translator.on("*",function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];a.emit.apply(a,[t].concat(n))}),a.init(r,n),a.translator.options=a.options,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),i}(ae);r3(aV,"createInstance",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return new aV(t,e)});var aj=aV.createInstance();aj.createInstance=aV.createInstance,aj.createInstance,aj.init,aj.loadResources,aj.reloadResources,aj.use,aj.changeLanguage,aj.getFixedT,aj.t,aj.exists,aj.setDefaultNamespace,aj.hasLoadedNamespace,aj.loadNamespaces,aj.loadLanguages;let aU=aj,aY=()=>new aX;class aX{}let aW=new WeakMap,aG=tx(class extends tL{render(t){return q}update(t,[e]){let n=e!==this.G;return n&&void 0!==this.G&&this.rt(void 0),(n||this.lt!==this.ct)&&(this.G=e,this.ht=t.options?.host,this.rt(this.ct=t.element)),q}rt(t){if(this.isConnected||(t=void 0),"function"==typeof this.G){let e=this.ht??globalThis,n=aW.get(e);void 0===n&&(n=new WeakMap,aW.set(e,n)),void 0!==n.get(this.G)&&this.G.call(this.ht,void 0),n.set(this.G,t),void 0!==t&&this.G.call(this.ht,t)}else this.G.value=t}get lt(){return"function"==typeof this.G?aW.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});function aq(t){return t===dk.NUMBER||t===dk.BIG_INT||t===dk.TELEPHONE||t===dk.TEXT||t===dk.PASSWORD||t===dk.DATE||t===dk.DATETIME||t===dk.EMAIL||t===dk.JSON||t===dk.JSON_OBJECT||t===dk.MONTH||t===dk.TEXTAREA||t===dk.TIME||t===dk.URL||t===dk.WEEK}function aK(t){return aq(t)||t===dk.SELECT||t===dk.RANGE}(dp=dk||(dk={})).BUTTON="button",dp.BUTTON_TOGGLE="button-toggle",dp.BUTTON_MOMENTARY="button-momentary",dp.CHECKBOX="checkbox",dp.CHECKBOX_LIST="checkbox-list",dp.COLOUR="color",dp.DATE="date",dp.DATETIME="datetime-local",dp.EMAIL="email",dp.JSON="json",dp.JSON_OBJECT="json-object",dp.MONTH="month",dp.NUMBER="number",dp.BIG_INT="big-int",dp.PASSWORD="password",dp.RADIO="radio",dp.SWITCH="switch",dp.RANGE="range",dp.TELEPHONE="tel",dp.TEXT="text",dp.TEXTAREA="textarea",dp.TIME="time",dp.URL="url",dp.WEEK="week",dp.SELECT="select",dp.LIST="list",dp.CRON="cron",dp.DURATION="duration",dp.DURATION_TIME="duration-time",dp.DURATION_PERIOD="duration-period",window.Vaadin||={},window.Vaadin.featureFlags||={};let aJ={};function aZ(t,e="25.2.11"){if(Object.defineProperty(t,"version",{get:()=>e}),t.experimental){let e="string"==typeof t.experimental?t.experimental:`${t.is.split("-").slice(1).join("-").replace(/-[a-z]/gu,t=>t[1].toUpperCase())}Component`;if(window.Vaadin.featureFlags[e]||aJ[e]){if(aJ[e])return void aJ[e].add(t)}else{aJ[e]=new Set,aJ[e].add(t),Object.defineProperty(window.Vaadin.featureFlags,e,{get:()=>0===aJ[e].size,set(t){t&&aJ[e].size>0&&(aJ[e].forEach(t=>{customElements.define(t.is,t)}),aJ[e].clear())}});return}}let n=customElements.get(t.is);if(n){let e=n.version;e&&t.version&&e===t.version?console.warn(`The component ${t.is} has been loaded twice`):console.error(`Tried to define ${t.is} version ${t.version} when version ${n.version} is already in use. Something will probably break.`)}else customElements.define(t.is,t)}let aQ=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,a0=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function a1(t,e){if("function"!=typeof t)return;let n=aQ.exec(t.toString());if(n)try{t=Function(n[1])}catch(t){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",t)}return t(e)}window.Vaadin=window.Vaadin||{};let a2=function(t,e){if(window.Vaadin.developmentMode)return a1(t,e)};function a5(){}void 0===window.Vaadin.developmentMode&&(window.Vaadin.developmentMode=function(){try{if(localStorage.getItem("vaadin.developmentmode.force"))return!0;if(!(["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0))return!1;if(a0)return!(a0&&Object.keys(a0).map(t=>a0[t]).filter(t=>t.productionMode).length>0);return!a1(function(){return!0})}catch(t){return!1}}());let a4=function(){if("function"==typeof a2)return a2(a5)},a3=0,a7=0,a6=[],a8=!1,a9={after:t=>({run:e=>window.setTimeout(e,t),cancel(t){window.clearTimeout(t)}}),run:(t,e)=>window.setTimeout(t,e),cancel(t){window.clearTimeout(t)}},ot={run:t=>window.requestAnimationFrame(t),cancel(t){window.cancelAnimationFrame(t)}},oe={run:t=>window.requestIdleCallback?window.requestIdleCallback(t):window.setTimeout(t,16),cancel(t){window.cancelIdleCallback?window.cancelIdleCallback(t):window.clearTimeout(t)}},on={run(t){a8||(a8=!0,queueMicrotask(()=>(function(){a8=!1;let t=a6.length;for(let e=0;e<t;e++){let t=a6[e];if(t)try{t()}catch(t){setTimeout(()=>{throw t})}}a6.splice(0,t),a7+=t})())),a6.push(t);let e=a3;return a3+=1,e},cancel(t){let e=t-a7;if(e>=0){if(!a6[e])throw Error(`invalid async handle: ${t}`);a6[e]=null}}},oi=new Set;class or{static debounce(t,e,n){return t instanceof or?t._cancelAsync():t=new or,t.setConfig(e,n),t}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,oi.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),oi.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return null!=this._timer}}let oa=[];function oo(t,e,n=t.getAttribute("dir")){e?t.setAttribute("dir",e):null!=n&&t.removeAttribute("dir")}function os(){return document.documentElement.getAttribute("dir")}new MutationObserver(function(){let t=os();oa.forEach(e=>{oo(e,t)})}).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});let ol=t=>class extends t{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:t=>t||"",toAttribute:t=>""===t?null:t}}}}get __isRTL(){return"rtl"===this.getAttribute("dir")}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),oo(this,os(),null))}attributeChangedCallback(t,e,n){if(super.attributeChangedCallback(t,e,n),"dir"!==t)return;let i=os(),r=n===i&&-1===oa.indexOf(this),a=!n&&e&&-1===oa.indexOf(this),o=n!==i&&e===i;r||a?(this.__subscribe(),oo(this,i,n)):o&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=oa.includes(this),this.__unsubscribe()}_valueToNodeAttribute(t,e,n){("dir"!==n||""!==e||t.hasAttribute("dir"))&&super._valueToNodeAttribute(t,e,n)}_attributeToProperty(t,e,n){"dir"!==t||e?super._attributeToProperty(t,e,n):this.dir=""}__subscribe(){oa.includes(this)||oa.push(this)}__unsubscribe(){oa.includes(this)&&oa.splice(oa.indexOf(this),1)}};window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations||(window.Vaadin.registrations=[]),window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={}),window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){a4()};let od=new Set,oc=e=>class extends ol(e){static _ensureRegistrations(){let{is:e}=this;if(e&&!od.has(e)){window.Vaadin.registrations.push(this),od.add(e);let i=window.Vaadin.developmentModeCallback;if(i){var n;n=t=or.debounce(t,oe,()=>{i["vaadin-usage-statistics"]()}),oi.add(n)}}}constructor(){super(),null===document.doctype&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.'),this.constructor._ensureRegistrations()}},ou=new WeakMap;function op(t){return e=>{if(function(t,e){let n=e;for(;n;){if(ou.get(n)===t)return!0;n=Object.getPrototypeOf(n)}return!1}(t,e))return e;let n=t(e);return ou.set(n,t),n}}let om={},oh=/([A-Z])/gu;function of(t){return om[t]||(om[t]=t.replace(oh,"-$1").toLowerCase()),om[t]}function og(t){return t[0].toUpperCase()+t.substring(1)}function ob(t){let[e,n]=t.split("(");return{method:e,observerProps:n.replace(")","").split(",").map(t=>t.trim())}}function ov(t,e){return Object.prototype.hasOwnProperty.call(t,e)||(t[e]=new Map(t[e])),t[e]}let o_=op(t=>class extends t{static enabledWarnings=[];static createProperty(t,e){[String,Boolean,Number,Array].includes(e)&&(e={type:e}),e?.reflectToAttribute&&(e.reflect=!0),super.createProperty(t,e)}static getOrCreateMap(t){return ov(this,t)}static finalize(){if(window.litIssuedWarnings&&(window.litIssuedWarnings.add("no-override-create-property"),window.litIssuedWarnings.add("no-override-get-property-descriptor")),super.finalize(),Array.isArray(this.observers)){let t=this.getOrCreateMap("__complexObservers");this.observers.forEach(e=>{let{method:n,observerProps:i}=ob(e);t.set(n,i)})}}static addCheckedInitializer(t){super.addInitializer(e=>{e instanceof this&&t(e)})}static getPropertyDescriptor(t,e,n){let i=super.getPropertyDescriptor(t,e,n),r=i;if(this.getOrCreateMap("__propKeys").set(t,e),n.sync&&(r={get:i.get,set(i){let r=this[t];E(i,r)&&(this[e]=i,this.requestUpdate(t,r,n),this.hasUpdated&&this.performUpdate())},configurable:!0,enumerable:!0}),n.readOnly){let e=r.set;this.addCheckedInitializer(n=>{n[`_set${og(t)}`]=function(t){e.call(n,t)}}),r={get:r.get,set(){},configurable:!0,enumerable:!0}}if("value"in n&&this.addCheckedInitializer(e=>{let i="function"==typeof n.value?n.value.call(e):n.value;n.readOnly?e[`_set${og(t)}`](i):e[t]=i}),n.observer){let e=n.observer;this.getOrCreateMap("__observers").set(t,e),this.addCheckedInitializer(t=>{t[e]||console.warn(`observer method ${e} not defined`)})}if(n.notify){if(this.__notifyProps){if(!this.hasOwnProperty("__notifyProps")){let t=this.__notifyProps;this.__notifyProps=new Set(t)}}else this.__notifyProps=new Set;this.__notifyProps.add(t)}if(n.computed){let e=`__assignComputed${t}`,i=ob(n.computed);this.prototype[e]=function(...e){this[t]=this[i.method](...e)},this.getOrCreateMap("__computedObservers").set(e,i.observerProps)}return n.attribute||(n.attribute=of(t)),r}static get polylitConfig(){return{asyncFirstRender:!1}}connectedCallback(){super.connectedCallback();let{polylitConfig:t}=this.constructor;this.hasUpdated||t.asyncFirstRender||this.performUpdate()}firstUpdated(){super.firstUpdated(),this.$||(this.$={}),this.renderRoot.querySelectorAll("[id]").forEach(t=>{this.$[t.id]=t})}ready(){}willUpdate(t){this.constructor.__computedObservers&&this.__runComplexObservers(t,this.constructor.__computedObservers)}updated(t){let e=this.__isReadyInvoked;this.__isReadyInvoked=!0,this.constructor.__observers&&this.__runObservers(t,this.constructor.__observers),this.constructor.__complexObservers&&this.__runComplexObservers(t,this.constructor.__complexObservers),this.__dynamicPropertyObservers&&this.__runDynamicObservers(t,this.__dynamicPropertyObservers),this.__dynamicMethodObservers&&this.__runComplexObservers(t,this.__dynamicMethodObservers),this.constructor.__notifyProps&&this.__runNotifyProps(t,this.constructor.__notifyProps),e||this.ready()}setProperties(t){Object.entries(t).forEach(([t,e])=>{let n=this.constructor.__propKeys.get(t),i=this[n];this[n]=e,this.requestUpdate(t,i)}),this.hasUpdated&&this.performUpdate()}_createMethodObserver(t){let e=ov(this,"__dynamicMethodObservers"),{method:n,observerProps:i}=ob(t);e.set(n,i)}_createPropertyObserver(t,e){ov(this,"__dynamicPropertyObservers").set(e,t)}__runComplexObservers(t,e){e.forEach((e,n)=>{e.some(e=>t.has(e))&&(this[n]?this[n](...e.map(t=>this[t])):console.warn(`observer method ${n} not defined`))})}__runDynamicObservers(t,e){e.forEach((e,n)=>{t.has(e)&&this[n]&&this[n](this[e],t.get(e))})}__runObservers(t,e){t.forEach((t,n)=>{let i=e.get(n);void 0!==i&&this[i]&&this[i](this[n],t)})}__runNotifyProps(t,e){t.forEach((t,n)=>{e.has(n)&&this.dispatchEvent(new CustomEvent(`${of(n)}-changed`,{detail:{value:this[n]}}))})}_get(t,e){return t.split(".").reduce((t,e)=>t?t[e]:void 0,e)}_set(t,e,n){let i,r;r=(i=t.split(".")).pop(),i.reduce((t,e)=>t[e],n)[r]=e}});function oy(t){return t?new Set(t.split(" ")):new Set}function ox(t){return t?[...t].join(" "):""}function ow(t,e,n){let i=oy(t.getAttribute(e));i.add(n),t.setAttribute(e,ox(i))}class ok{constructor(t,e,n={}){this.target=t,this.callback=e,this.forceInitial=n.forceInitial,this._storedNodes=[],this._isSlot=t instanceof HTMLSlotElement,this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),n.syncInitial?this.flush():this._schedule()}connect(){this.target.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.target.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this._scheduled&&this.flush()}))}flush(){this._connected&&(this._scheduled=!1,this._processNodes())}_collectNodes(){return[...new Set((this._isSlot?[this.target]:[...this.target.querySelectorAll("slot")]).flatMap(t=>t.assignedNodes({flatten:!0})))]}_groupNodesBySlot(t){let e=new Map;return t.forEach(t=>{let n=t.assignedSlot;e.set(n,e.get(n)??[]),e.get(n).push(t)}),e}_collectMovedNodes(t){let e=this._groupNodesBySlot(t),n=this._groupNodesBySlot(this._storedNodes),i=[];return e.forEach((t,e)=>{let r=n.get(e)||[];new Set(r).difference(new Set(t)).size>0||r.forEach((e,n)=>{t.indexOf(e)!==n&&i.push(e)})}),i}_processNodes(){let t=this._collectNodes(),e=t.filter(t=>!this._storedNodes.includes(t)),n=this._storedNodes.filter(e=>!t.includes(e)),i=this._collectMovedNodes(t);(e.length||n.length||i.length||this.forceInitial)&&this.callback({addedNodes:e,currentNodes:t,movedNodes:i,removedNodes:n}),this.forceInitial&&(this.forceInitial=!1),this._storedNodes=t}}let oE=0;class oC extends EventTarget{static generateId(t,e="default"){return`${e}-${t.localName}-${oE++}`}constructor(t,e,n,i={}){super();const{initializer:r,multiple:a,observe:o,useUniqueId:s,uniqueIdPrefix:l}=i;this.host=t,this.slotName=e,this.tagName=n,this.observe="boolean"!=typeof o||o,this.multiple="boolean"==typeof a&&a,this.slotInitializer=r,a&&(this.nodes=[]),s&&(this.defaultId=this.constructor.generateId(t,l||e))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let t=this.getSlotChild();t?(this.node=t,this.initAddedNode(t)):(t=this.attachDefaultNode(),this.initNode(t))}initMultiple(){let t=this.getSlotChildren();if(0===t.length){let t=this.attachDefaultNode();t&&(this.nodes=[t],this.initNode(t))}else this.nodes=t,t.forEach(t=>{this.initAddedNode(t)})}attachDefaultNode(){let{host:t,slotName:e,tagName:n}=this,i=this.defaultNode;return!i&&n&&(i=document.createElement(n))instanceof Element&&(""!==e&&i.setAttribute("slot",e),this.defaultNode=i),i&&(this.node=i,t.appendChild(i)),i}getSlotChildren(){let{slotName:t}=this;return Array.from(this.host.childNodes).filter(e=>!(e.nodeType===Node.ELEMENT_NODE&&e.hasAttribute("data-slot-ignore"))&&(e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&""===t))}getSlotChild(){return this.getSlotChildren()[0]}initNode(t){let{slotInitializer:e}=this;e&&e(t,this.host)}initCustomNode(t){}teardownNode(t){}initAddedNode(t){t!==this.defaultNode&&(this.initCustomNode(t),this.initNode(t))}observeSlot(){let{slotName:t}=this,e=""===t?"slot:not([name])":`slot[name=${t}]`,n=this.host.shadowRoot.querySelector(e);this.__slotObserver=new ok(n,({addedNodes:t,removedNodes:e})=>{let n=this.multiple?this.nodes:[this.node],i=t.filter(t=>(t.nodeType!==Node.TEXT_NODE||""!==t.textContent.trim())&&!n.includes(t)&&!(t.nodeType===Node.ELEMENT_NODE&&t.hasAttribute("data-slot-ignore")));e.length&&(this.nodes=n.filter(t=>!e.includes(t)),e.forEach(t=>{this.teardownNode(t)})),i?.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...n,...i].filter(t=>t!==this.defaultNode),i.forEach(t=>{this.initAddedNode(t)})):(this.node&&this.node.remove(),this.node=i[0],this.initAddedNode(this.node)))})}}class oA extends oC{constructor(t){super(t,"tooltip"),this.setTarget(t),this.__onContentChange=this.__onContentChange.bind(this)}initCustomNode(t){t.target=this.target,void 0!==this.ariaTarget&&(t.ariaTarget=this.ariaTarget),void 0!==this.context&&(t.context=this.context),void 0!==this.manual&&(t.manual=this.manual),void 0!==this.position&&(t._position=this.position),void 0!==this.shouldShow&&(t.shouldShow=this.shouldShow),this.manual||this.host.setAttribute("has-tooltip",""),this.__notifyChange(t),t.addEventListener("content-changed",this.__onContentChange)}teardownNode(t){this.manual||this.host.removeAttribute("has-tooltip"),t.removeEventListener("content-changed",this.__onContentChange),this.__notifyChange(null)}setAriaTarget(t){this.ariaTarget=t;let e=this.node;e&&(e.ariaTarget=t)}setContext(t){this.context=t;let e=this.node;e&&(e.context=t)}setManual(t){this.manual=t;let e=this.node;e&&(e.manual=t)}setPosition(t){this.position=t;let e=this.node;e&&(e._position=t)}setShouldShow(t){this.shouldShow=t;let e=this.node;e&&(e.shouldShow=t)}setTarget(t){this.target=t;let e=this.node;e&&(e.target=t)}open(t){let e=this.node;e?.isConnected&&e._stateController.open(t)}close(t){let e=this.node;e&&e._stateController.close(t)}__onContentChange(t){this.__notifyChange(t.target)}__notifyChange(t){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:t}}))}}function oT(t){try{CSS.registerProperty(t)}catch(e){if(e instanceof DOMException&&"InvalidModificationError"===e.name)console.warn(`The CSS property ${t.name} has already been registered.`);else throw e}}class oI extends EventTarget{#t;#e=new Set;#n;#i=!1;constructor(t){super(),this.#t=t,this.#n=new CSSStyleSheet}#r(t){let{propertyName:e}=t;this.#e.has(e)&&this.dispatchEvent(new CustomEvent("property-changed",{detail:{propertyName:e}}))}observe(t){this.connect(),this.#e.has(t)||(this.#e.add(t),this.#n.replaceSync(`
1473
1473
  :root::before, :host::before {
1474
1474
  content: '' !important;
1475
1475
  position: absolute !important;
@@ -2628,6 +2628,11 @@ ${s[0]?s[0]:""}</textarea>`:W` <input
2628
2628
  display: none !important;
2629
2629
  }
2630
2630
 
2631
+ :host([suppressed]) [part='overlay'],
2632
+ :host([suppressed]) ::slotted(*) {
2633
+ pointer-events: none !important;
2634
+ }
2635
+
2631
2636
  [part='overlay'] {
2632
2637
  color: var(--vaadin-overlay-text-color, var(--vaadin-text-color));
2633
2638
  background: var(--vaadin-overlay-background, var(--vaadin-background-color));
@@ -2692,7 +2697,7 @@ ${s[0]?s[0]:""}</textarea>`:W` <input
2692
2697
  [part='backdrop'] {
2693
2698
  background: transparent;
2694
2699
  }
2695
- `;class lw{saveFocus(t){this.focusNode=t||sy()}restoreFocus(t){let e=this.focusNode;if(!e)return;let n={preventScroll:!!t&&t.preventScroll,focusVisible:!!t&&t.focusVisible};sy()===document.body?setTimeout(()=>e.focus(n)):e.focus(n),this.focusNode=null}}let lk=[];class lE{constructor(t){this.host=t,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){var t;let e;return t=this.__trapNode,!function t(e,n){if(e.nodeType!==Node.ELEMENT_NODE||sx(e))return!1;let i=!e.matches('[tabindex="-1"]')&&(e.matches("input, select, textarea, button, object")?e.matches(":not([disabled])"):e.matches("a[href], area[href], iframe, [tabindex], [contentEditable]"))?Number(e.getAttribute("tabindex")||0):-1,r=i>0;i>=0&&n.push(e);return[..."slot"===e.localName?e.assignedNodes({flatten:!0}):(e.shadowRoot||e).children].forEach(e=>{r=t(e,n)||r}),r}(t,e=[])?e:function t(e){let n=e.length;if(n<2)return e;let i=Math.ceil(n/2),r=t(e.slice(0,i)),a=t(e.slice(i)),o=[];for(;r.length>0&&a.length>0;)!function(t,e){let n=Math.max(t.tabIndex,0),i=Math.max(e.tabIndex,0);return 0===n||0===i?i>n:n>i}(r[0],a[0])?o.push(r.shift()):o.push(a.shift());return o.concat(r,a)}(e)}get __focusedElementIndex(){let t=this.__focusableElements;return t.indexOf(t.filter(sk).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(t){if(this.__trapNode=t,0===this.__focusableElements.length)throw this.__trapNode=null,Error("The trap node should have at least one focusable descendant or be focusable itself.");lk.push(this),-1===this.__focusedElementIndex&&this.__focusableElements[0].focus({focusVisible:s_})}releaseFocus(){this.__trapNode=null,lk.pop()}__onKeyDown(t){if(this.__trapNode&&this===Array.from(lk).pop()&&"Tab"===t.key){if(t.defaultPrevented)return;t.preventDefault();let e=t.shiftKey;this.__focusNextElement(e)}}__focusNextElement(t=!1){let e=this.__focusableElements,n=this.__focusedElementIndex,i=(e.length+n+(t?-1:1))%e.length,r=e[i];r.focus({focusVisible:!0}),"input"===r.localName&&r.select()}}let lC=t=>class extends t{static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__focusTrapController=new lE(this),this.__focusRestorationController=new lw}get _contentRoot(){return this}ready(){super.ready(),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}get _focusTrapRoot(){return this.$.overlay}_resetFocus(){if(this.focusTrap&&this.__focusTrapController.releaseFocus(),this.restoreFocusOnClose&&this._shouldRestoreFocus()){let t=s_;this.__focusRestorationController.restoreFocus({preventScroll:!t,focusVisible:t})}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&!sw(this._focusTrapRoot)&&this.__focusTrapController.trapFocus(this._focusTrapRoot)}_shouldRestoreFocus(){let t=sy();return t===document.body||this._deepContains(t)}_deepContains(t){if(this._contentRoot.contains(t))return!0;let e=t,n=t.ownerDocument;for(;e&&e!==n&&e!==this._contentRoot;)e=e.parentNode||e.host;return e===this._contentRoot}},lA=new Set,lT=()=>[...lA].filter(t=>!t.hasAttribute("closing")),lI=(t,e=t=>!0)=>t===lT().filter(e).pop(),lS=t=>class extends t{get _last(){return lI(this)}get _isAttached(){return lA.has(this)}bringToFront(){let t,e;if(lI(this))return;let n=-1===(e=(t=lT()).indexOf(this))?[]:t.slice(e+1),i=n.filter(t=>t._hasOverlayPositionMixin&&this._deepContains(t));i.length!==n.length&&[this,...i].forEach(t=>{t.matches(":popover-open")&&(t.hidePopover(),t.showPopover()),t._removeAttachedInstance(),t._appendAttachedInstance()})}_enterModalState(){"none"!==document.body.style.pointerEvents&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),lT().forEach(t=>{t!==this&&(t.$.overlay.style.pointerEvents="none")})}_exitModalState(){let t;void 0!==this._previousDocumentPointerEvents&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);let e=lT();for(;(t=e.pop())&&(t===this||(t.$.overlay.style.removeProperty("pointer-events"),t.modeless)););}_appendAttachedInstance(){lA.add(this)}_removeAttachedInstance(){this._isAttached&&lA.delete(this)}};function lO(t,e,n){let i=[t];t.owner&&i.push(t.owner),"string"==typeof n?i.forEach(t=>{t.setAttribute(e,n)}):n?i.forEach(t=>{t.setAttribute(e,"")}):i.forEach(t=>{t.removeAttribute(e)})}let lR=t=>class extends lC(lS(t)){static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0,sync:!0},owner:{type:Object,sync:!0},model:{type:Object,sync:!0},renderer:{type:Object,sync:!0},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged",sync:!0},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged",sync:!0},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_withBackdropChanged",sync:!0}}}static get observers(){return["_rendererOrDataChanged(renderer, owner, model, opened)"]}get _rendererRoot(){return this}constructor(){super(),this._boundMouseDownListener=this._mouseDownListener.bind(this),this._boundMouseUpListener=this._mouseUpListener.bind(this),this._boundOutsideClickListener=this._outsideClickListener.bind(this),this._boundKeydownListener=this._keydownListener.bind(this),s1&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}firstUpdated(){super.firstUpdated(),this.popover="manual",this.addEventListener("click",()=>{}),this.$.backdrop&&this.$.backdrop.addEventListener("click",()=>{}),this.addEventListener("mouseup",()=>{document.activeElement===document.body&&"0"===this.$.overlay.getAttribute("tabindex")&&this.$.overlay.focus()}),this.addEventListener("animationcancel",()=>{this._flushAnimation("opening"),this._flushAnimation("closing")})}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener)),this.opened&&this._attachOverlay()}disconnectedCallback(){super.disconnectedCallback(),this.__scheduledOpen&&(cancelAnimationFrame(this.__scheduledOpen),this.__scheduledOpen=null),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this._rendererRoot,this.owner,this.model)}close(t){let e=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{overlay:this,sourceEvent:t}});this.dispatchEvent(e),document.body.dispatchEvent(e),e.defaultPrevented||(this.opened=!1)}setBounds(t,e=!0){let n=this.$.overlay,i={...t};e&&"absolute"!==n.style.position&&(n.style.position="absolute"),Object.keys(i).forEach(t=>{null===i[t]||isNaN(i[t])||(i[t]=`${i[t]}px`)}),Object.assign(n.style,i)}_detectIosNavbar(){if(!this.opened)return;let t=window.innerHeight,e=window.innerWidth,n=document.documentElement.clientHeight;e>t&&n>t?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${n-t}px`):this.style.setProperty("--vaadin-overlay-viewport-bottom","0px")}_shouldAddGlobalListeners(){return!this.modeless}_addGlobalListeners(){this.__hasGlobalListeners||(this.__hasGlobalListeners=!0,document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0))}_removeGlobalListeners(){this.__hasGlobalListeners&&(this.__hasGlobalListeners=!1,document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0))}_rendererOrDataChanged(t,e,n,i){let r=this._oldOwner!==e||this._oldModel!==n;this._oldModel=n,this._oldOwner=e;let a=this._oldRenderer!==t,o=void 0!==this._oldRenderer;this._oldRenderer=t;let s=this._oldOpened!==i;this._oldOpened=i,a&&o&&(this._rendererRoot.innerHTML="",delete this._rendererRoot._$litPart$),i&&t&&(a||s||r)&&this.requestContentUpdate()}_modelessChanged(t){this.opened&&(this._shouldAddGlobalListeners()?this._addGlobalListeners():this._removeGlobalListeners()),t?this._exitModalState():this.opened&&this._enterModalState(),lO(this,"modeless",t)}_withBackdropChanged(t){lO(this,"with-backdrop",t)}_openedChanged(t,e){if(t){if(!this.isConnected){this.opened=!1;return}this._saveFocus(),this._animatedOpening(),this.__scheduledOpen=requestAnimationFrame(()=>{setTimeout(()=>{this._trapFocus();let t=new CustomEvent("vaadin-overlay-open",{detail:{overlay:this},bubbles:!0});this.dispatchEvent(t),document.body.dispatchEvent(t)})}),document.addEventListener("keydown",this._boundKeydownListener),this._shouldAddGlobalListeners()&&this._addGlobalListeners()}else e&&(this.__scheduledOpen&&(cancelAnimationFrame(this.__scheduledOpen),this.__scheduledOpen=null),this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this._shouldAddGlobalListeners()&&this._removeGlobalListeners())}_hiddenChanged(t){t&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){let t=getComputedStyle(this),e=t.getPropertyValue("animation-name");return"none"!==t.getPropertyValue("display")&&e&&"none"!==e}_enqueueAnimation(t,e){let n=`__${t}Handler`,i=t=>{t&&t.target!==this||(e(),this.removeEventListener("animationend",i),delete this[n])};this[n]=i,this.addEventListener("animationend",i)}_flushAnimation(t){let e=`__${t}Handler`;"function"==typeof this[e]&&this[e]()}_animatedOpening(){this._isAttached&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this._appendAttachedInstance(),this.bringToFront(),this.modeless||this._enterModalState(),lO(this,"opening",!0),this._shouldAnimate()?this._enqueueAnimation("opening",()=>{this._finishOpening()}):this._finishOpening()}_attachOverlay(){this.matches(":popover-open")||this.showPopover()}_finishOpening(){lO(this,"opening",!1)}_finishClosing(){this._detachOverlay(),this._removeAttachedInstance(),this.$.overlay.style.removeProperty("pointer-events"),lO(this,"closing",!1),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._isAttached&&(this._exitModalState(),lO(this,"closing",!0),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",()=>{this._finishClosing()}):this._finishClosing())}_detachOverlay(){this.hidePopover()}_mouseDownListener(t){this._mouseDownInside=t.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(t){this._mouseUpInside=t.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(t){return this._last}_outsideClickListener(t){if(t.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(t))return;let e=new CustomEvent("vaadin-overlay-outside-click",{cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(e),this.opened&&!e.defaultPrevented&&(this.close(t),this.opened||this.modeless||t.preventDefault())}_keydownListener(t){if(this._last&&!t.defaultPrevented&&(this._shouldAddGlobalListeners()||t.composedPath().includes(this._focusTrapRoot))&&"Escape"===t.key){let e=new CustomEvent("vaadin-overlay-escape-press",{cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(e),this.opened&&!e.defaultPrevented&&this.close(t)}}},lL={start:"top",end:"bottom"},lN={start:"left",end:"right"},lD=new ResizeObserver(t=>{setTimeout(()=>{t.forEach(t=>{t.target.__overlay&&t.target.__overlay._updatePosition()})})}),lM=t=>class extends t{static get properties(){return{positionTarget:{type:Object,value:null,sync:!0},horizontalAlign:{type:String,value:"start",sync:!0},verticalAlign:{type:String,value:"top",sync:!0},noHorizontalOverlap:{type:Boolean,value:!1,sync:!0},noVerticalOverlap:{type:Boolean,value:!1,sync:!0},requiredVerticalSpace:{type:Number,value:0,sync:!0}}}constructor(){super(),this._hasOverlayPositionMixin=!0,this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}updated(t){if(super.updated(t),t.has("positionTarget")){let e=t.get("positionTarget");this.__oldContentWidth=void 0,this.__oldContentHeight=void 0,(!this.positionTarget&&e||this.positionTarget&&!e&&this.__margins)&&this.__resetPosition()}(t.has("opened")||t.has("positionTarget"))&&this.__updatePositionSettings(this.opened,this.positionTarget),["horizontalAlign","verticalAlign","noHorizontalOverlap","noVerticalOverlap","requiredVerticalSpace"].some(e=>t.has(e))&&this._updatePosition()}__addUpdatePositionEventListeners(){window.visualViewport.addEventListener("resize",this._updatePosition),window.visualViewport.addEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes=function(t){let e=[];for(;t;){if(t.nodeType===Node.DOCUMENT_NODE){e.push(t);break}if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){e.push(t),t=t.host;continue}if(t.assignedSlot){t=t.assignedSlot;continue}t=t.parentNode}return e}(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(t=>{t.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=function(t,e){let n,i=null,r=document.documentElement;function a(){n&&clearTimeout(n),i?.disconnect(),i=null}return!function o(s=!1,l=1){a();let{left:d,top:c,width:u,height:p}=t.getBoundingClientRect();if(s||e(),!u||!p)return;let m=Math.floor(c),h=Math.floor(r.clientWidth-(d+u)),f=Math.floor(r.clientHeight-(c+p)),g=Math.floor(d),b=!0;(i=new IntersectionObserver(function(t){let e=t[0].intersectionRatio;if(e!==l){if(!b)return o();e?o(!1,e):n=setTimeout(()=>{o(!1,1e-7)},1e3)}b=!1},{rootMargin:`${-m}px ${-h}px ${-f}px ${-g}px`,threshold:Math.max(0,Math.min(1,l))||1})).observe(t)}(!0),a}(this.positionTarget,()=>{this._updatePosition()}))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(t=>{t.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__updatePositionSettings(t,e){if(this.__removeUpdatePositionEventListeners(),e&&(e.__overlay=null,lD.unobserve(e),t&&(this.__addUpdatePositionEventListeners(),e.__overlay=this,lD.observe(e))),t){let t=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(e=>{this.__margins[e]=parseInt(t[e],10)})),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__onScroll(t){t.target instanceof Node&&this._deepContains(t.target)||this._updatePosition()}__resetPosition(){this.__margins=null,Object.assign(this.style,{justifyContent:"",alignItems:"",top:"",bottom:"",left:"",right:""}),lO(this,"bottom-aligned",!1),lO(this,"top-aligned",!1),lO(this,"end-aligned",!1),lO(this,"start-aligned",!1)}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;let t=this.positionTarget.getBoundingClientRect();if(0===t.width&&0===t.height&&this.opened){this.opened=!1;return}let e=this.__shouldAlignStartVertically(t);this.style.justifyContent=e?"flex-start":"flex-end";let n=this.__isRTL,i=this.__shouldAlignStartHorizontally(t,n),r=!n&&i||n&&!i;this.style.alignItems=r?"flex-start":"flex-end";let a=this.getBoundingClientRect(),o=this.__calculatePositionInOneDimension(t,a,this.noVerticalOverlap,lL,this,e),s=this.__calculatePositionInOneDimension(t,a,this.noHorizontalOverlap,lN,this,i);Object.assign(this.style,o,s),lO(this,"bottom-aligned",!e),lO(this,"top-aligned",e),lO(this,"end-aligned",!r),lO(this,"start-aligned",r)}__shouldAlignStartHorizontally(t,e){let n=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;let i=Math.min(window.innerWidth,document.documentElement.clientWidth),r=!e&&"start"===this.horizontalAlign||e&&"end"===this.horizontalAlign;return this.__shouldAlignStart(t,n,i,this.__margins,r,this.noHorizontalOverlap,lN)}__shouldAlignStartVertically(t){let e=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;let n=Math.min(window.innerHeight,document.documentElement.clientHeight),i="top"===this.verticalAlign;return this.__shouldAlignStart(t,e,n,this.__margins,i,this.noVerticalOverlap,lL)}__shouldAlignStart(t,e,n,i,r,a,o){let s=n-t[a?o.end:o.start]-i[o.end],l=t[a?o.start:o.end]-i[o.start],d=r?s:l;return r===(d>(r?l:s)||d>e)}__adjustBottomProperty(t,e,n){let i;if(t===e.end){if(e.end===lL.end){let t=Math.min(window.innerHeight,document.documentElement.clientHeight);n>t&&this.__oldViewportHeight&&(i=n-(this.__oldViewportHeight-t)),this.__oldViewportHeight=t}if(e.end===lN.end){let t=Math.min(window.innerWidth,document.documentElement.clientWidth);n>t&&this.__oldViewportWidth&&(i=n-(this.__oldViewportWidth-t)),this.__oldViewportWidth=t}}return i}__calculatePositionInOneDimension(t,e,n,i,r,a){let o=a?i.start:i.end,s=a?i.end:i.start,l=parseFloat(r.style[o]||getComputedStyle(r)[o]),d=this.__adjustBottomProperty(o,i,l),c=e[a?i.start:i.end]-t[n===a?i.end:i.start];return{[o]:d?`${d}px`:`${l+c*(a?-1:1)}px`,[s]:""}}},lP=t=>class extends lM(lR(ol(t))){static get observers(){return["_updateOverlayWidth(opened, positionTarget)"]}ready(){super.ready(),this.restoreFocusOnClose=!0}get _contentRoot(){return this._rendererRoot}get _rendererRoot(){if(!this.__savedRoot){let t=document.createElement("div");t.setAttribute("slot","overlay"),this.owner.appendChild(t),this.__savedRoot=t}return this.__savedRoot}_shouldCloseOnOutsideClick(t){return!0}_mouseDownListener(t){super._mouseDownListener(t),t.preventDefault()}_getMenuElement(){return Array.from(this._rendererRoot.children).find(t=>"style"!==t.localName)}_updateOverlayWidth(t,e){t&&e&&this.style.setProperty("--_vaadin-select-overlay-default-width",`${e.offsetWidth}px`)}requestContentUpdate(){if(super.requestContentUpdate(),this.owner){let t=this._getMenuElement();this.owner._assignMenuElement(t)}}};class lz extends lP(oG(o_(oF(tp)))){static get is(){return"vaadin-select-overlay"}static get styles(){return[ly,lx]}render(){return W`
2700
+ `;class lw{saveFocus(t){this.focusNode=t||sy()}restoreFocus(t){let e=this.focusNode;if(!e)return;let n={preventScroll:!!t&&t.preventScroll,focusVisible:!!t&&t.focusVisible};sy()===document.body?setTimeout(()=>e.focus(n)):e.focus(n),this.focusNode=null}}let lk=[];class lE{constructor(t){this.host=t,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){var t;let e;return t=this.__trapNode,!function t(e,n){if(e.nodeType!==Node.ELEMENT_NODE||sx(e))return!1;let i=!e.matches('[tabindex="-1"]')&&(e.matches("input, select, textarea, button, object")?e.matches(":not([disabled])"):e.matches("a[href], area[href], iframe, [tabindex], [contentEditable]"))?Number(e.getAttribute("tabindex")||0):-1,r=i>0;i>=0&&n.push(e);return[..."slot"===e.localName?e.assignedNodes({flatten:!0}):(e.shadowRoot||e).children].forEach(e=>{r=t(e,n)||r}),r}(t,e=[])?e:function t(e){let n=e.length;if(n<2)return e;let i=Math.ceil(n/2),r=t(e.slice(0,i)),a=t(e.slice(i)),o=[];for(;r.length>0&&a.length>0;)!function(t,e){let n=Math.max(t.tabIndex,0),i=Math.max(e.tabIndex,0);return 0===n||0===i?i>n:n>i}(r[0],a[0])?o.push(r.shift()):o.push(a.shift());return o.concat(r,a)}(e)}get __focusedElementIndex(){let t=this.__focusableElements;return t.indexOf(t.filter(sk).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(t){if(this.__trapNode=t,0===this.__focusableElements.length)throw this.__trapNode=null,Error("The trap node should have at least one focusable descendant or be focusable itself.");lk.push(this),-1===this.__focusedElementIndex&&this.__focusableElements[0].focus({focusVisible:s_})}releaseFocus(){this.__trapNode=null,lk.pop()}__onKeyDown(t){if(this.__trapNode&&this===Array.from(lk).pop()&&"Tab"===t.key){if(t.defaultPrevented)return;t.preventDefault();let e=t.shiftKey;this.__focusNextElement(e)}}__focusNextElement(t=!1){let e=this.__focusableElements,n=this.__focusedElementIndex,i=(e.length+n+(t?-1:1))%e.length,r=e[i];r.focus({focusVisible:!0}),"input"===r.localName&&r.select()}}let lC=t=>class extends t{static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__focusTrapController=new lE(this),this.__focusRestorationController=new lw}get _contentRoot(){return this}ready(){super.ready(),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}get _focusTrapRoot(){return this.$.overlay}_resetFocus(){if(this.focusTrap&&this.__focusTrapController.releaseFocus(),this.restoreFocusOnClose&&this._shouldRestoreFocus()){let t=s_;this.__focusRestorationController.restoreFocus({preventScroll:!t,focusVisible:t})}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&!sw(this._focusTrapRoot)&&this.__focusTrapController.trapFocus(this._focusTrapRoot)}_shouldRestoreFocus(){let t=sy();return t===document.body||this._deepContains(t)}_deepContains(t){if(this._contentRoot.contains(t))return!0;let e=t,n=t.ownerDocument;for(;e&&e!==n&&e!==this._contentRoot;)e=e.parentNode||e.host;return e===this._contentRoot}},lA=new Set,lT=()=>[...lA].filter(t=>!t.hasAttribute("closing")),lI=(t,e=t=>!0)=>t===lT().filter(e).pop(),lS=t=>class extends t{get _last(){return lI(this)}get _isAttached(){return lA.has(this)}bringToFront(){let t,e;if(lI(this))return;let n=-1===(e=(t=lT()).indexOf(this))?[]:t.slice(e+1),i=n.filter(t=>t._hasOverlayPositionMixin&&this._deepContains(t));i.length!==n.length&&[this,...i].forEach(t=>{t.matches(":popover-open")&&(t.hidePopover(),t.showPopover()),t._removeAttachedInstance(),t._appendAttachedInstance()})}_enterModalState(){"none"!==document.body.style.pointerEvents&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),lT().forEach(t=>{t!==this&&t.toggleAttribute("suppressed",!0)})}_exitModalState(){let t;void 0!==this._previousDocumentPointerEvents&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);let e=lT();for(;(t=e.pop())&&(t===this||(t.toggleAttribute("suppressed",!1),t.modeless)););}_appendAttachedInstance(){lA.add(this)}_removeAttachedInstance(){this._isAttached&&lA.delete(this)}};function lO(t,e,n){let i=[t];t.owner&&i.push(t.owner),"string"==typeof n?i.forEach(t=>{t.setAttribute(e,n)}):n?i.forEach(t=>{t.setAttribute(e,"")}):i.forEach(t=>{t.removeAttribute(e)})}let lR=t=>class extends lC(lS(t)){static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0,sync:!0},owner:{type:Object,sync:!0},model:{type:Object,sync:!0},renderer:{type:Object,sync:!0},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged",sync:!0},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged",sync:!0},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_withBackdropChanged",sync:!0}}}static get observers(){return["_rendererOrDataChanged(renderer, owner, model, opened)"]}get _rendererRoot(){return this}constructor(){super(),this._boundMouseDownListener=this._mouseDownListener.bind(this),this._boundMouseUpListener=this._mouseUpListener.bind(this),this._boundOutsideClickListener=this._outsideClickListener.bind(this),this._boundKeydownListener=this._keydownListener.bind(this),s1&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}firstUpdated(){super.firstUpdated(),this.popover="manual",this.addEventListener("click",()=>{}),this.$.backdrop&&this.$.backdrop.addEventListener("click",()=>{}),this.addEventListener("mouseup",()=>{document.activeElement===document.body&&"0"===this.$.overlay.getAttribute("tabindex")&&this.$.overlay.focus()}),this.addEventListener("animationcancel",()=>{this._flushAnimation("opening"),this._flushAnimation("closing")})}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener)),this.opened&&this._attachOverlay()}disconnectedCallback(){super.disconnectedCallback(),this.__scheduledOpen&&(cancelAnimationFrame(this.__scheduledOpen),this.__scheduledOpen=null),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this._rendererRoot,this.owner,this.model)}close(t){let e=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{overlay:this,sourceEvent:t}});this.dispatchEvent(e),document.body.dispatchEvent(e),e.defaultPrevented||(this.opened=!1)}setBounds(t,e=!0){let n=this.$.overlay,i={...t};e&&"absolute"!==n.style.position&&(n.style.position="absolute"),Object.keys(i).forEach(t=>{null===i[t]||isNaN(i[t])||(i[t]=`${i[t]}px`)}),Object.assign(n.style,i)}_detectIosNavbar(){if(!this.opened)return;let t=window.innerHeight,e=window.innerWidth,n=document.documentElement.clientHeight;e>t&&n>t?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${n-t}px`):this.style.setProperty("--vaadin-overlay-viewport-bottom","0px")}_shouldAddGlobalListeners(){return!this.modeless}_addGlobalListeners(){this.__hasGlobalListeners||(this.__hasGlobalListeners=!0,document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0))}_removeGlobalListeners(){this.__hasGlobalListeners&&(this.__hasGlobalListeners=!1,document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0))}_rendererOrDataChanged(t,e,n,i){let r=this._oldOwner!==e||this._oldModel!==n;this._oldModel=n,this._oldOwner=e;let a=this._oldRenderer!==t,o=void 0!==this._oldRenderer;this._oldRenderer=t;let s=this._oldOpened!==i;this._oldOpened=i,a&&o&&(this._rendererRoot.innerHTML="",delete this._rendererRoot._$litPart$),i&&t&&(a||s||r)&&this.requestContentUpdate()}_modelessChanged(t){this.opened&&(this._shouldAddGlobalListeners()?this._addGlobalListeners():this._removeGlobalListeners()),t?this._exitModalState():this.opened&&this._enterModalState(),lO(this,"modeless",t)}_withBackdropChanged(t){lO(this,"with-backdrop",t)}_openedChanged(t,e){if(t){if(!this.isConnected){this.opened=!1;return}this._saveFocus(),this._animatedOpening(),this.__scheduledOpen=requestAnimationFrame(()=>{setTimeout(()=>{this._trapFocus();let t=new CustomEvent("vaadin-overlay-open",{detail:{overlay:this},bubbles:!0});this.dispatchEvent(t),document.body.dispatchEvent(t)})}),document.addEventListener("keydown",this._boundKeydownListener),this._shouldAddGlobalListeners()&&this._addGlobalListeners()}else e&&(this.__scheduledOpen&&(cancelAnimationFrame(this.__scheduledOpen),this.__scheduledOpen=null),this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this._shouldAddGlobalListeners()&&this._removeGlobalListeners())}_hiddenChanged(t){t&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){let t=getComputedStyle(this),e=t.getPropertyValue("animation-name");return"none"!==t.getPropertyValue("display")&&e&&"none"!==e}_enqueueAnimation(t,e){let n=`__${t}Handler`,i=t=>{t&&t.target!==this||(e(),this.removeEventListener("animationend",i),delete this[n])};this[n]=i,this.addEventListener("animationend",i)}_flushAnimation(t){let e=`__${t}Handler`;"function"==typeof this[e]&&this[e]()}_animatedOpening(){this._isAttached&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this._appendAttachedInstance(),this.bringToFront(),this.modeless||this._enterModalState(),lO(this,"opening",!0),this._shouldAnimate()?this._enqueueAnimation("opening",()=>{this._finishOpening()}):this._finishOpening()}_attachOverlay(){this.matches(":popover-open")||this.showPopover()}_finishOpening(){lO(this,"opening",!1)}_finishClosing(){this._detachOverlay(),this._removeAttachedInstance(),this.toggleAttribute("suppressed",!1),lO(this,"closing",!1),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._isAttached&&(this._exitModalState(),lO(this,"closing",!0),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",()=>{this._finishClosing()}):this._finishClosing())}_detachOverlay(){this.hidePopover()}_mouseDownListener(t){this._mouseDownInside=t.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(t){this._mouseUpInside=t.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(t){return this._last}_outsideClickListener(t){if(t.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(t))return;let e=new CustomEvent("vaadin-overlay-outside-click",{cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(e),this.opened&&!e.defaultPrevented&&(this.close(t),this.opened||this.modeless||t.preventDefault())}_keydownListener(t){if(this._last&&!t.defaultPrevented&&(this._shouldAddGlobalListeners()||t.composedPath().includes(this._focusTrapRoot))&&"Escape"===t.key){let e=new CustomEvent("vaadin-overlay-escape-press",{cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(e),this.opened&&!e.defaultPrevented&&this.close(t)}}},lL={start:"top",end:"bottom"},lN={start:"left",end:"right"},lD=new ResizeObserver(t=>{setTimeout(()=>{t.forEach(t=>{t.target.__overlay&&t.target.__overlay._updatePosition()})})}),lM=t=>class extends t{static get properties(){return{positionTarget:{type:Object,value:null,sync:!0},horizontalAlign:{type:String,value:"start",sync:!0},verticalAlign:{type:String,value:"top",sync:!0},noHorizontalOverlap:{type:Boolean,value:!1,sync:!0},noVerticalOverlap:{type:Boolean,value:!1,sync:!0},requiredVerticalSpace:{type:Number,value:0,sync:!0}}}constructor(){super(),this._hasOverlayPositionMixin=!0,this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}updated(t){if(super.updated(t),t.has("positionTarget")){let e=t.get("positionTarget");this.__oldContentWidth=void 0,this.__oldContentHeight=void 0,(!this.positionTarget&&e||this.positionTarget&&!e&&this.__margins)&&this.__resetPosition()}(t.has("opened")||t.has("positionTarget"))&&this.__updatePositionSettings(this.opened,this.positionTarget),["horizontalAlign","verticalAlign","noHorizontalOverlap","noVerticalOverlap","requiredVerticalSpace"].some(e=>t.has(e))&&this._updatePosition()}__addUpdatePositionEventListeners(){window.visualViewport.addEventListener("resize",this._updatePosition),window.visualViewport.addEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes=function(t){let e=[];for(;t;){if(t.nodeType===Node.DOCUMENT_NODE){e.push(t);break}if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){e.push(t),t=t.host;continue}if(t.assignedSlot){t=t.assignedSlot;continue}t=t.parentNode}return e}(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(t=>{t.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=function(t,e){let n,i=null,r=document.documentElement;function a(){n&&clearTimeout(n),i?.disconnect(),i=null}return!function o(s=!1,l=1){a();let{left:d,top:c,width:u,height:p}=t.getBoundingClientRect();if(s||e(),!u||!p)return;let m=Math.floor(c),h=Math.floor(r.clientWidth-(d+u)),f=Math.floor(r.clientHeight-(c+p)),g=Math.floor(d),b=!0;(i=new IntersectionObserver(function(t){let e=t[0].intersectionRatio;if(e!==l){if(!b)return o();e?o(!1,e):n=setTimeout(()=>{o(!1,1e-7)},1e3)}b=!1},{rootMargin:`${-m}px ${-h}px ${-f}px ${-g}px`,threshold:Math.max(0,Math.min(1,l))||1})).observe(t)}(!0),a}(this.positionTarget,()=>{this._updatePosition()}))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(t=>{t.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__updatePositionSettings(t,e){if(this.__removeUpdatePositionEventListeners(),e&&(e.__overlay=null,lD.unobserve(e),t&&(this.__addUpdatePositionEventListeners(),e.__overlay=this,lD.observe(e))),t){let t=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(e=>{this.__margins[e]=parseInt(t[e],10)})),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__onScroll(t){t.target instanceof Node&&this._deepContains(t.target)||this._updatePosition()}__resetPosition(){this.__margins=null,Object.assign(this.style,{justifyContent:"",alignItems:"",top:"",bottom:"",left:"",right:""}),lO(this,"bottom-aligned",!1),lO(this,"top-aligned",!1),lO(this,"end-aligned",!1),lO(this,"start-aligned",!1)}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;let t=this.positionTarget.getBoundingClientRect();if(0===t.width&&0===t.height&&this.opened){this.opened=!1;return}let e=this.__shouldAlignStartVertically(t);this.style.justifyContent=e?"flex-start":"flex-end";let n=this.__isRTL,i=this.__shouldAlignStartHorizontally(t,n),r=!n&&i||n&&!i;this.style.alignItems=r?"flex-start":"flex-end";let a=this.getBoundingClientRect(),o=this.__calculatePositionInOneDimension(t,a,this.noVerticalOverlap,lL,this,e),s=this.__calculatePositionInOneDimension(t,a,this.noHorizontalOverlap,lN,this,i);Object.assign(this.style,o,s),lO(this,"bottom-aligned",!e),lO(this,"top-aligned",e),lO(this,"end-aligned",!r),lO(this,"start-aligned",r)}__shouldAlignStartHorizontally(t,e){let n=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;let i=Math.min(window.innerWidth,document.documentElement.clientWidth),r=!e&&"start"===this.horizontalAlign||e&&"end"===this.horizontalAlign;return this.__shouldAlignStart(t,n,i,this.__margins,r,this.noHorizontalOverlap,lN)}__shouldAlignStartVertically(t){let e=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;let n=Math.min(window.innerHeight,document.documentElement.clientHeight),i="top"===this.verticalAlign;return this.__shouldAlignStart(t,e,n,this.__margins,i,this.noVerticalOverlap,lL)}__shouldAlignStart(t,e,n,i,r,a,o){let s=n-t[a?o.end:o.start]-i[o.end],l=t[a?o.start:o.end]-i[o.start],d=r?s:l;return r===(d>(r?l:s)||d>e)}__adjustBottomProperty(t,e,n){let i;if(t===e.end){if(e.end===lL.end){let t=Math.min(window.innerHeight,document.documentElement.clientHeight);n>t&&this.__oldViewportHeight&&(i=n-(this.__oldViewportHeight-t)),this.__oldViewportHeight=t}if(e.end===lN.end){let t=Math.min(window.innerWidth,document.documentElement.clientWidth);n>t&&this.__oldViewportWidth&&(i=n-(this.__oldViewportWidth-t)),this.__oldViewportWidth=t}}return i}__calculatePositionInOneDimension(t,e,n,i,r,a){let o=a?i.start:i.end,s=a?i.end:i.start,l=parseFloat(r.style[o]||getComputedStyle(r)[o]),d=this.__adjustBottomProperty(o,i,l),c=e[a?i.start:i.end]-t[n===a?i.end:i.start];return{[o]:d?`${d}px`:`${l+c*(a?-1:1)}px`,[s]:""}}},lP=t=>class extends lM(lR(ol(t))){static get observers(){return["_updateOverlayWidth(opened, positionTarget)"]}ready(){super.ready(),this.restoreFocusOnClose=!0}get _contentRoot(){return this._rendererRoot}get _rendererRoot(){if(!this.__savedRoot){let t=document.createElement("div");t.setAttribute("slot","overlay"),this.owner.appendChild(t),this.__savedRoot=t}return this.__savedRoot}_shouldCloseOnOutsideClick(t){return!0}_mouseDownListener(t){super._mouseDownListener(t),t.preventDefault()}_getMenuElement(){return Array.from(this._rendererRoot.children).find(t=>"style"!==t.localName)}_updateOverlayWidth(t,e){t&&e&&this.style.setProperty("--_vaadin-select-overlay-default-width",`${e.offsetWidth}px`)}requestContentUpdate(){if(super.requestContentUpdate(),this.owner){let t=this._getMenuElement();this.owner._assignMenuElement(t)}}};class lz extends lP(oG(o_(oF(tp)))){static get is(){return"vaadin-select-overlay"}static get styles(){return[ly,lx]}render(){return W`
2696
2701
  <div id="backdrop" part="backdrop" ?hidden="${!this.withBackdrop}"></div>
2697
2702
  <div part="overlay" id="overlay">
2698
2703
  <div part="content" id="content">
@@ -2728,7 +2733,7 @@ ${s[0]?s[0]:""}</textarea>`:W` <input
2728
2733
  pointer-events: none;
2729
2734
  }
2730
2735
  `;class lF extends la(oG(o_(oF(tp)))){static get is(){return"vaadin-select-value-button"}static get styles(){return l$}render(){return W`
2731
- <div class="vaadin-button-container">
2736
+ <div class="vaadin-button-container" role="presentation">
2732
2737
  <span part="label">
2733
2738
  <slot></slot>
2734
2739
  </span>
@@ -3946,7 +3951,7 @@ ${s[0]?s[0]:""}</textarea>`:W` <input
3946
3951
  }
3947
3952
  }
3948
3953
  `;class cn extends la(oc(oG(o_(oF(tp))))){static get is(){return"vaadin-button"}static get styles(){return lo}static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0,sync:!0}}}render(){return W`
3949
- <div class="vaadin-button-container">
3954
+ <div class="vaadin-button-container" role="presentation">
3950
3955
  <span part="prefix" aria-hidden="true">
3951
3956
  <slot name="prefix"></slot>
3952
3957
  </span>