@ezeep/ezeep-js 1.0.191 → 1.0.192
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/ezp-auth_14.cjs.entry.js +8 -5
- package/dist/custom-elements/index.js +8 -5
- package/dist/esm/ezp-auth_14.entry.js +8 -5
- package/dist/esm-es5/ezp-auth_14.entry.js +2 -2
- package/dist/ezeep/ezeep.esm.js +1 -1
- package/dist/ezeep/p-16c7584d.system.js +1 -1
- package/dist/ezeep/{p-acc288fe.system.entry.js → p-91a269aa.system.entry.js} +1 -1
- package/dist/ezeep/{p-67bc8ab8.entry.js → p-aa7681b6.entry.js} +1 -1
- package/package.json +1 -1
- package/www/build/ezeep.esm.js +1 -1
- package/www/build/p-16c7584d.system.js +1 -1
- package/www/build/{p-acc288fe.system.entry.js → p-91a269aa.system.entry.js} +1 -1
- package/www/build/{p-67bc8ab8.entry.js → p-aa7681b6.entry.js} +1 -1
- package/www/data/locales/de.json +7 -4
- package/www/data/locales/en.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as e,f as t,r,c as a,h as i,H as n,a as s,d as o,F as l}from"./p-17f25f95.js";const m=e=>!("isConnected"in e)||e.isConnected,c=(()=>{let e;return(...t)=>{e&&clearTimeout(e),e=setTimeout((()=>{e=0,(e=>{for(let t of e.keys())e.set(t,e.get(t).filter(m))})(...t)}),2e3)}})(),d=(r,a)=>{const i=((e,t=((e,t)=>e!==t))=>{let r=new Map(Object.entries(null!=e?e:{}));const a={dispose:[],get:[],set:[],reset:[]},i=()=>{r=new Map(Object.entries(null!=e?e:{})),a.reset.forEach((e=>e()))},n=e=>(a.get.forEach((t=>t(e))),r.get(e)),s=(e,i)=>{const n=r.get(e);t(i,n,e)&&(r.set(e,i),a.set.forEach((t=>t(e,i,n))))},o="undefined"==typeof Proxy?{}:new Proxy(e,{get:(e,t)=>n(t),ownKeys:()=>Array.from(r.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(e,t)=>r.has(t),set:(e,t,r)=>(s(t,r),!0)}),l=(e,t)=>(a[e].push(t),()=>{((e,t)=>{const r=e.indexOf(t);r>=0&&(e[r]=e[e.length-1],e.length--)})(a[e],t)});return{state:o,get:n,set:s,on:l,onChange:(t,r)=>{const a=l("set",((e,a)=>{e===t&&r(a)})),i=l("reset",(()=>r(e[t])));return()=>{a(),i()}},use:(...e)=>e.forEach((e=>{e.set&&l("set",e.set),e.get&&l("get",e.get),e.reset&&l("reset",e.reset)})),dispose:()=>{a.dispose.forEach((e=>e())),i()},reset:i,forceUpdate:e=>{const t=r.get(e);a.set.forEach((r=>r(e,t,t)))}}})(r,a);return(({on:r})=>{const a=new Map;"function"==typeof e&&(r("dispose",(()=>{a.clear()})),r("get",(t=>{const r=e();r&&((e,t,r)=>{const a=e.get(t);a?a.includes(r)||a.push(r):e.set(t,[r])})(a,t,r)})),r("set",(e=>{const r=a.get(e);r&&a.set(e,r.filter(t)),c(a)})),r("reset",(()=>{a.forEach((e=>e.forEach(t))),c(a)})))})(i),i};function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){u(e,t,r[t])}))}return e}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function g(e,t,r){return t&&y(e.prototype,t),r&&y(e,r),e}var x,b="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function N(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function v(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(r){var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})})),t}const z=N((function(e){function t(r){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(r)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}(x={path:undefined,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}}),x.exports));function S(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e,t){return!t||"object"!==z(t)&&"function"!=typeof t?S(e):t}function C(e){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function P(e,t){return(P=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function k(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&P(e,t)}var B={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},E=new(function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};f(this,e),this.init(t,r)}return g(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||B,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,r,a){return a&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(r).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,h({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),q=function(){function e(){f(this,e),this.observers={}}return g(e,[{key:"on",value:function(e,t){var r=this;return e.split(" ").forEach((function(e){r.observers[e]=r.observers[e]||[],r.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];if(this.observers[e]){var i=[].concat(this.observers[e]);i.forEach((function(e){e.apply(void 0,r)}))}if(this.observers["*"]){var n=[].concat(this.observers["*"]);n.forEach((function(t){t.apply(t,[e].concat(r))}))}}}]),e}();function R(){var e,t,r=new Promise((function(r,a){e=r,t=a}));return r.resolve=e,r.reject=t,r}function M(e){return null==e?"":""+e}function T(e,t,r){e.forEach((function(e){t[e]&&(r[e]=t[e])}))}function A(e,t,r){function a(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function i(){return!e||"string"==typeof e}for(var n="string"!=typeof t?[].concat(t):t.split(".");n.length>1;){if(i())return{};var s=a(n.shift());!e[s]&&r&&(e[s]=new r),e=Object.prototype.hasOwnProperty.call(e,s)?e[s]:{}}return i()?{}:{obj:e,k:a(n.shift())}}function H(e,t,r){var a=A(e,t,Object);a.obj[a.k]=r}function O(e,t){var r=A(e,t),a=r.obj;if(a)return a[r.k]}function I(e,t,r){var a=O(e,r);return void 0!==a?a:O(t,r)}function D(e,t,r){for(var a in t)"__proto__"!==a&&"constructor"!==a&&(a in e?"string"==typeof e[a]||e[a]instanceof String||"string"==typeof t[a]||t[a]instanceof String?r&&(e[a]=t[a]):D(e[a],t[a],r):e[a]=t[a]);return e}function L(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var j={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function _(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return j[e]})):e}var U="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,$=[" ",",","?","!",";"];function F(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var a=t.split(r),i=e,n=0;n<a.length;++n){if(!i)return;if("string"==typeof i[a[n]]&&n+1<a.length)return;if(void 0===i[a[n]]){for(var s=2,o=a.slice(n,n+s).join(r),l=i[o];void 0===l&&a.length>n+s;)s++,l=i[o=a.slice(n,n+s).join(r)];if(void 0===l)return;if("string"==typeof l)return l;if(o&&"string"==typeof l[o])return l[o];var m=a.slice(n+s).join(r);return m?F(l,m,r):void 0}i=i[a[n]]}return i}}var V=function(){function e(t){var r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return f(this,e),r=w(this,C(e).call(this)),U&&q.call(S(r)),r.data=t||{},r.options=a,void 0===r.options.keySeparator&&(r.options.keySeparator="."),void 0===r.options.ignoreJSONStructure&&(r.options.ignoreJSONStructure=!0),r}return k(e,q),g(e,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,r){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=void 0!==a.keySeparator?a.keySeparator:this.options.keySeparator,n=void 0!==a.ignoreJSONStructure?a.ignoreJSONStructure:this.options.ignoreJSONStructure,s=[e,t];r&&"string"!=typeof r&&(s=s.concat(r)),r&&"string"==typeof r&&(s=s.concat(i?r.split(i):r)),e.indexOf(".")>-1&&(s=e.split("."));var o=O(this.data,s);return o||!n||"string"!=typeof r?o:F(this.data&&this.data[e]&&this.data[e][t],r,i)}},{key:"addResource",value:function(e,t,r,a){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},n=this.options.keySeparator;void 0===n&&(n=".");var s=[e,t];r&&(s=s.concat(n?r.split(n):r)),e.indexOf(".")>-1&&(a=t,t=(s=e.split("."))[1]),this.addNamespaces(t),H(this.data,s,a),i.silent||this.emit("added",e,t,r,a)}},{key:"addResources",value:function(e,t,r){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var i in r)"string"!=typeof r[i]&&"[object Array]"!==Object.prototype.toString.apply(r[i])||this.addResource(e,t,i,r[i],{silent:!0});a.silent||this.emit("added",e,t,r)}},{key:"addResourceBundle",value:function(e,t,r,a,i){var n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},s=[e,t];e.indexOf(".")>-1&&(a=r,r=t,t=(s=e.split("."))[1]),this.addNamespaces(t);var o=O(this.data,s)||{};a?D(o,r,i):o=h({},o,r),H(this.data,s,o),n.silent||this.emit("added",e,t,r)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?h({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((function(e){return t[e]&&Object.keys(t[e]).length>0}))}},{key:"toJSON",value:function(){return this.data}}]),e}(),G={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,a,i){var n=this;return e.forEach((function(e){n.processors[e]&&(t=n.processors[e].process(t,r,a,i))})),t}},K={},W=function(){function e(t){var r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return f(this,e),r=w(this,C(e).call(this)),U&&q.call(S(r)),T(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,S(r)),r.options=a,void 0===r.options.keySeparator&&(r.options.keySeparator="."),r.logger=E.create("translator"),r}return k(e,q),g(e,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var r=this.resolve(e,t);return r&&void 0!==r.res}},{key:"extractFromKey",value:function(e,t){var r=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");var a=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,i=t.ns||this.options.defaultNS,n=r&&e.indexOf(r)>-1,s=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!function(e,t,r){t=t||"",r=r||"";var a=$.filter((function(e){return t.indexOf(e)<0&&r.indexOf(e)<0}));if(0===a.length)return!0;var i=new RegExp("(".concat(a.map((function(e){return"?"===e?"\\?":e})).join("|"),")")),n=!i.test(e);if(!n){var s=e.indexOf(r);s>0&&!i.test(e.substring(0,s))&&(n=!0)}return n}(e,r,a);if(n&&!s){var o=e.match(this.interpolator.nestingRegexp);if(o&&o.length>0)return{key:e,namespaces:i};var l=e.split(r);(r!==a||r===a&&this.options.ns.indexOf(l[0])>-1)&&(i=l.shift()),e=l.join(a)}return"string"==typeof i&&(i=[i]),{key:e,namespaces:i}}},{key:"translate",value:function(t,r,a){var i=this;if("object"!==p(r)&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r||(r={}),null==t)return"";Array.isArray(t)||(t=[String(t)]);var n=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,s=this.extractFromKey(t[t.length-1],r),o=s.key,l=s.namespaces,m=l[l.length-1],c=r.lng||this.language,d=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&"cimode"===c.toLowerCase()){if(d){var u=r.nsSeparator||this.options.nsSeparator;return m+u+o}return o}var f=this.resolve(t,r),y=f&&f.res,g=f&&f.usedKey||o,x=f&&f.exactUsedKey||o,b=Object.prototype.toString.apply(y),N=["[object Number]","[object Function]","[object RegExp]"],v=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,z=!this.i18nFormat||this.i18nFormat.handleAsObject,S="string"!=typeof y&&"boolean"!=typeof y&&"number"!=typeof y;if(z&&y&&S&&N.indexOf(b)<0&&("string"!=typeof v||"[object Array]"!==b)){if(!r.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,y,h({},r,{ns:l})):"key '".concat(o," (").concat(this.language,")' returned an object instead of string.");if(n){var w="[object Array]"===b,C=w?[]:{},P=w?x:g;for(var k in y)if(Object.prototype.hasOwnProperty.call(y,k)){var B="".concat(P).concat(n).concat(k);C[k]=this.translate(B,h({},r,{joinArrays:!1,ns:l})),C[k]===B&&(C[k]=y[k])}y=C}}else if(z&&"string"==typeof v&&"[object Array]"===b)(y=y.join(v))&&(y=this.extendTranslation(y,t,r,a));else{var E=!1,q=!1,R=void 0!==r.count&&"string"!=typeof r.count,M=e.hasDefaultValue(r),T=R?this.pluralResolver.getSuffix(c,r.count,r):"",A=r["defaultValue".concat(T)]||r.defaultValue;!this.isValidLookup(y)&&M&&(E=!0,y=A),this.isValidLookup(y)||(q=!0,y=o);var H=r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,O=H&&q?void 0:y,I=M&&A!==y&&this.options.updateMissing;if(q||E||I){if(this.logger.log(I?"updateKey":"missingKey",c,m,o,I?A:y),n){var D=this.resolve(o,h({},r,{keySeparator:!1}));D&&D.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 L=[],j=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if("fallback"===this.options.saveMissingTo&&j&&j[0])for(var _=0;_<j.length;_++)L.push(j[_]);else"all"===this.options.saveMissingTo?L=this.languageUtils.toResolveHierarchy(r.lng||this.language):L.push(r.lng||this.language);var U=function(e,t,a){i.options.missingKeyHandler?i.options.missingKeyHandler(e,m,t,I?a:O,I,r):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,m,t,I?a:O,I,r),i.emit("missingKey",e,m,t,y)};this.options.saveMissing&&(this.options.saveMissingPlurals&&R?L.forEach((function(e){i.pluralResolver.getSuffixes(e).forEach((function(t){U([e],o+t,r["defaultValue".concat(t)]||A)}))})):U(L,o,A))}y=this.extendTranslation(y,t,r,f,a),q&&y===o&&this.options.appendNamespaceToMissingKey&&(y="".concat(m,":").concat(o)),(q||E)&&this.options.parseMissingKeyHandler&&(y=this.options.parseMissingKeyHandler(y))}return y}},{key:"extendTranslation",value:function(e,t,r,a,i){var n=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,r,a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(h({},r,{interpolation:h({},this.options.interpolation,r.interpolation)}));var s,o=r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(o){var l=e.match(this.interpolator.nestingRegexp);s=l&&l.length}var m=r.replace&&"string"!=typeof r.replace?r.replace:r;if(this.options.interpolation.defaultVariables&&(m=h({},this.options.interpolation.defaultVariables,m)),e=this.interpolator.interpolate(e,m,r.lng||this.language,r),o){var c=e.match(this.interpolator.nestingRegexp);s<(c&&c.length)&&(r.nest=!1)}!1!==r.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,a=new Array(e),s=0;s<e;s++)a[s]=arguments[s];return i&&i[0]===a[0]&&!r.context?(n.logger.warn("It seems you are nesting recursively key: ".concat(a[0]," in key: ").concat(t[0])),null):n.translate.apply(n,a.concat([t]))}),r)),r.interpolation&&this.interpolator.reset()}var d=r.postProcess||this.options.postProcess,p="string"==typeof d?[d]:d;return null!=e&&p&&p.length&&!1!==r.applyPostProcessor&&(e=G.handle(p,e,t,this.options&&this.options.postProcessPassResolved?h({i18nResolved:a},r):r,this)),e}},{key:"resolve",value:function(e){var t,r,a,i,n,s=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!s.isValidLookup(t)){var l=s.extractFromKey(e,o),m=l.key;r=m;var c=l.namespaces;s.options.fallbackNS&&(c=c.concat(s.options.fallbackNS));var d=void 0!==o.count&&"string"!=typeof o.count,p=void 0!==o.context&&("string"==typeof o.context||"number"==typeof o.context)&&""!==o.context,u=o.lngs?o.lngs:s.languageUtils.toResolveHierarchy(o.lng||s.language,o.fallbackLng);c.forEach((function(e){s.isValidLookup(t)||(n=e,!K["".concat(u[0],"-").concat(e)]&&s.utils&&s.utils.hasLoadedNamespace&&!s.utils.hasLoadedNamespace(n)&&(K["".concat(u[0],"-").concat(e)]=!0,s.logger.warn('key "'.concat(r,'" for languages "').concat(u.join(", "),'" won\'t get resolved as namespace "').concat(n,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),u.forEach((function(r){if(!s.isValidLookup(t)){i=r;var n,l,c=m,u=[c];for(s.i18nFormat&&s.i18nFormat.addLookupKeys?s.i18nFormat.addLookupKeys(u,m,r,e,o):(d&&(n=s.pluralResolver.getSuffix(r,o.count,o)),d&&p&&u.push(c+n),p&&u.push(c+="".concat(s.options.contextSeparator).concat(o.context)),d&&u.push(c+=n));l=u.pop();)s.isValidLookup(t)||(a=l,t=s.getResource(r,e,l,o))}})))}))}})),{res:t,usedKey:r,exactUsedKey:a,usedLng:i,usedNS:n}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,r){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,a):this.resourceStore.getResource(e,t,r,a)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t===r.substring(0,t.length)&&void 0!==e[r])return!0;return!1}}]),e}();function X(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Q=function(){function e(t){f(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=E.create("languageUtils")}return g(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],r=e.split("-");return this.options.lowerCaseLng?r=r.map((function(e){return e.toLowerCase()})):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=X(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=X(r[1].toLowerCase())),t.indexOf(r[2].toLowerCase())>-1&&(r[2]=X(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,r=this;return e?(e.forEach((function(e){if(!t){var a=r.formatLanguageCode(e);r.options.supportedLngs&&!r.isSupportedCode(a)||(t=a)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var a=r.getLanguagePartFromCode(e);if(r.isSupportedCode(a))return t=a;t=r.options.supportedLngs.find((function(e){if(0===e.indexOf(a))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var r=e[t];return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}},{key:"toResolveHierarchy",value:function(e,t){var r=this,a=this.getFallbackCodes(t||this.options.fallbackLng||[],e),i=[],n=function(e){e&&(r.isSupportedCode(e)?i.push(e):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&n(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&n(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&n(this.getLanguagePartFromCode(e))):"string"==typeof e&&n(this.formatLanguageCode(e)),a.forEach((function(e){i.indexOf(e)<0&&n(r.formatLanguageCode(e))})),i}}]),e}(),J=[{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}],Y={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},Z=["v1","v2","v3"],ee={zero:0,one:1,two:2,few:3,many:4,other:5};function te(){var e={};return J.forEach((function(t){t.lngs.forEach((function(r){e[r]={numbers:t.nr,plurals:Y[t.fc]}}))})),e}var re=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};f(this,e),this.languageUtils=t,this.options=r,this.logger=E.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Inlt API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=te()}return g(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,t);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,r).map((function(e){return"".concat(t).concat(e)}))}},{key:"getSuffixes",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=this.getRule(e,r);return a?this.shouldUseIntlApi()?a.resolvedOptions().pluralCategories.sort((function(e,t){return ee[e]-ee[t]})).map((function(e){return"".concat(t.options.prepend).concat(e)})):a.numbers.map((function(a){return t.getSuffix(e,a,r)})):[]}},{key:"getSuffix",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=this.getRule(e,r);return a?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(a.select(t)):this.getSuffixRetroCompatible(a,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var r=this,a=e.plurals(e.noAbs?t:Math.abs(t)),i=e.numbers[a];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var n=function(){return r.options.prepend&&i.toString()?r.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):n():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?n():this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString()}},{key:"shouldUseIntlApi",value:function(){return!Z.includes(this.options.compatibilityJSON)}}]),e}(),ae=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};f(this,e),this.logger=E.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return g(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:_,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?L(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?L(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?L(t.nestingPrefix):t.nestingPrefixEscaped||L("$t("),this.nestingSuffix=t.nestingSuffix?L(t.nestingSuffix):t.nestingSuffixEscaped||L(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function(e,t,r,a){var i,n,s,o=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function m(e){return e.replace(/\$/g,"$$$$")}var c=function(e){if(e.indexOf(o.formatSeparator)<0){var i=I(t,l,e);return o.alwaysFormat?o.format(i,void 0,r,h({},a,t,{interpolationkey:e})):i}var n=e.split(o.formatSeparator),s=n.shift().trim(),m=n.join(o.formatSeparator).trim();return o.format(I(t,l,s),m,r,h({},a,t,{interpolationkey:s}))};this.resetRegExp();var d=a&&a.missingInterpolationHandler||this.options.missingInterpolationHandler,p=a&&a.interpolation&&a.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return m(e)}},{regex:this.regexp,safeValue:function(e){return m(o.escapeValue?o.escape(e):e)}}].forEach((function(t){for(s=0;i=t.regex.exec(e);){if(void 0===(n=c(i[1].trim())))if("function"==typeof d){var r=d(e,i,a);n="string"==typeof r?r:""}else{if(p){n=i[0];continue}o.logger.warn("missed to pass in variable ".concat(i[1]," for interpolating ").concat(e)),n=""}else"string"==typeof n||o.useRawValueToEscape||(n=M(n));var l=t.safeValue(n);if(e=e.replace(i[0],l),p?(t.regex.lastIndex+=l.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,++s>=o.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var r,a,i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=h({},n);function o(e,t){var r=this.nestingOptionsSeparator;if(e.indexOf(r)<0)return e;var a=e.split(new RegExp("".concat(r,"[ ]*{"))),i="{".concat(a[1]);e=a[0],i=(i=this.interpolate(i,s)).replace(/'/g,'"');try{s=JSON.parse(i),t&&(s=h({},t,s))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(r).concat(i)}return delete s.defaultValue,e}for(s.applyPostProcessor=!1,delete s.defaultValue;r=this.nestingRegexp.exec(e);){var l=[],m=!1;if(-1!==r[0].indexOf(this.formatSeparator)&&!/{.*}/.test(r[1])){var c=r[1].split(this.formatSeparator).map((function(e){return e.trim()}));r[1]=c.shift(),l=c,m=!0}if((a=t(o.call(this,r[1].trim(),s),s))&&r[0]===e&&"string"!=typeof a)return a;"string"!=typeof a&&(a=M(a)),a||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(e)),a=""),m&&(a=l.reduce((function(e,t){return i.format(e,t,n.lng,h({},n,{interpolationkey:r[1].trim()}))}),a.trim())),e=e.replace(r[0],a),this.regexp.lastIndex=0}return e}}]),e}(),ie=function(){function e(t,r,a){var i,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return f(this,e),i=w(this,C(e).call(this)),U&&q.call(S(i)),i.backend=t,i.store=r,i.services=a,i.languageUtils=a.languageUtils,i.options=n,i.logger=E.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(a,n.backend,n),i}return k(e,q),g(e,[{key:"queueLoad",value:function(e,t,r,a){var i=this,n=[],s=[],o=[],l=[];return e.forEach((function(e){var a=!0;t.forEach((function(t){var o="".concat(e,"|").concat(t);!r.reload&&i.store.hasResourceBundle(e,t)?i.state[o]=2:i.state[o]<0||(1===i.state[o]?s.indexOf(o)<0&&s.push(o):(i.state[o]=1,a=!1,s.indexOf(o)<0&&s.push(o),n.indexOf(o)<0&&n.push(o),l.indexOf(t)<0&&l.push(t)))})),a||o.push(e)})),(n.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:a}),{toLoad:n,pending:s,toLoadLanguages:o,toLoadNamespaces:l}}},{key:"loaded",value:function(e,t,r){var a=e.split("|"),i=a[0],n=a[1];t&&this.emit("failedLoading",i,n,t),r&&this.store.addResourceBundle(i,n,r),this.state[e]=t?-1:2;var s={};this.queue.forEach((function(r){var a,o,l,m;a=n,(l=(o=A(r.loaded,[i],Object)).obj)[m=o.k]=l[m]||[],l[m].push(a),function(e,t){for(var r=e.indexOf(t);-1!==r;)e.splice(r,1),r=e.indexOf(t)}(r.pending,e),t&&r.errors.push(t),0!==r.pending.length||r.done||(Object.keys(r.loaded).forEach((function(e){s[e]||(s[e]=[]),r.loaded[e].length&&r.loaded[e].forEach((function(t){s[e].indexOf(t)<0&&s[e].push(t)}))})),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())})),this.emit("loaded",s),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,r){var a=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,s=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[r](e,t,(function(o,l){o&&l&&i<5?setTimeout((function(){a.read.call(a,e,t,r,i+1,2*n,s)}),n):s(o,l)})):s(null,{})}},{key:"prepareLoading",value:function(e,t){var r=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=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."),i&&i();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var n=this.queueLoad(e,t,a,i);if(!n.toLoad.length)return n.pending.length||i(),null;n.toLoad.forEach((function(e){r.loadOne(e)}))}},{key:"load",value:function(e,t,r){this.prepareLoading(e,t,{},r)}},{key:"reload",value:function(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}},{key:"loadOne",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=e.split("|"),i=a[0],n=a[1];this.read(i,n,"read",void 0,void 0,(function(a,s){a&&t.logger.warn("".concat(r,"loading namespace ").concat(n," for language ").concat(i," failed"),a),!a&&s&&t.logger.log("".concat(r,"loaded namespace ").concat(n," for language ").concat(i),s),t.loaded(e,a,s)}))}},{key:"saveMissing",value:function(e,t,r,a,i){var n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(r,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=r&&""!==r&&(this.backend&&this.backend.create&&this.backend.create(e,t,r,a,null,h({},n,{isUpdate:i})),e&&e[0]&&this.store.addResource(e[0],t,r,a))}}]),e}();function ne(){return{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(e){var t={};if("object"===p(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===p(e[2])||"object"===p(e[3])){var r=e[3]||e[2];Object.keys(r).forEach((function(e){t[e]=r[e]}))}return t},interpolation:{escapeValue:!0,format:function(e){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function se(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function oe(){}var le=new(function(){function e(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;if(f(this,e),t=w(this,C(e).call(this)),U&&q.call(S(t)),t.options=se(r),t.services={},t.logger=E,t.modules={external:[]},a&&!t.isInitialized&&!r.isClone){if(!t.options.initImmediate)return t.init(r,a),w(t,S(t));setTimeout((function(){t.init(r,a)}),0)}return t}return k(e,q),g(e,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;function a(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(r=t,t={}),!t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0])),this.options=h({},ne(),this.options,se(t)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),this.format=this.options.interpolation.format,r||(r=oe),!this.options.isClone){E.init(this.modules.logger?a(this.modules.logger):null,this.options);var i=new Q(this.options);this.store=new V(this.options.resources,this.options);var n=this.services;n.logger=E,n.resourceStore=this.store,n.languageUtils=i,n.pluralResolver=new re(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),n.interpolator=new ae(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new ie(a(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on("*",(function(t){for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];e.emit.apply(e,[t].concat(a))})),this.modules.languageDetector&&(n.languageDetector=a(this.modules.languageDetector),n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=a(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new W(this.services,this.options),this.translator.on("*",(function(t){for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];e.emit.apply(e,[t].concat(a))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.length>0&&"dev"!==s[0]&&(this.options.lng=s[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var o=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];o.forEach((function(t){e[t]=function(){var r;return(r=e.store)[t].apply(r,arguments)}}));var l=["addResource","addResources","addResourceBundle","removeResourceBundle"];l.forEach((function(t){e[t]=function(){var r;return(r=e.store)[t].apply(r,arguments),e}}));var m=R(),c=function(){var t=function(t,a){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),m.resolve(a),r(t,a)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),m}},{key:"loadResources",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:oe,a=r,i="string"==typeof e?e:this.language;if("function"==typeof e&&(a=e),!this.options.resources||this.options.partialBundledLanguages){if(i&&"cimode"===i.toLowerCase())return a();var n=[],s=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){n.indexOf(e)<0&&n.push(e)}))};if(i)s(i);else{var o=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);o.forEach((function(e){return s(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return s(e)})),this.services.backendConnector.load(n,this.options.ns,a)}else a(null)}},{key:"reloadResources",value:function(e,t,r){var a=R();return e||(e=this.languages),t||(t=this.options.ns),r||(r=oe),this.services.backendConnector.reload(e,t,(function(e){a.resolve(),r(e)})),a}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&G.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var r=this;this.isLanguageChangingTo=e;var a=R();this.emit("languageChanging",e);var i=function(e){if(r.language=e,r.languages=r.services.languageUtils.toResolveHierarchy(e),r.resolvedLanguage=void 0,!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t<r.languages.length;t++){var a=r.languages[t];if(!(["cimode","dev"].indexOf(a)>-1)&&r.store.hasLanguageSomeTranslations(a)){r.resolvedLanguage=a;break}}},n=function(n){e||n||!r.services.languageDetector||(n=[]);var s="string"==typeof n?n:r.services.languageUtils.getBestMatchFromCodes(n);s&&(r.language||i(s),r.translator.language||r.translator.changeLanguage(s),r.services.languageDetector&&r.services.languageDetector.cacheUserLanguage(s)),r.loadResources(s,(function(e){!function(e,n){n?(i(n),r.translator.changeLanguage(n),r.isLanguageChangingTo=void 0,r.emit("languageChanged",n),r.logger.log("languageChanged",n)):r.isLanguageChangingTo=void 0,a.resolve((function(){return r.t.apply(r,arguments)})),t&&t(e,(function(){return r.t.apply(r,arguments)}))}(e,s)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(n):n(e):n(this.services.languageDetector.detect()),a}},{key:"getFixedT",value:function(e,t,r){var a=this,i=function e(t,i){var n;if("object"!==p(i)){for(var s=arguments.length,o=new Array(s>2?s-2:0),l=2;l<s;l++)o[l-2]=arguments[l];n=a.options.overloadTranslationOptionHandler([t,i].concat(o))}else n=h({},i);n.lng=n.lng||e.lng,n.lngs=n.lngs||e.lngs,n.ns=n.ns||e.ns;var m=a.options.keySeparator||".",c=r?"".concat(r).concat(m).concat(t):t;return a.t(c,n)};return"string"==typeof e?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=r,i}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var a=this.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,n=this.languages[this.languages.length-1];if("cimode"===a.toLowerCase())return!0;var s=function(e,r){var a=t.services.backendConnector.state["".concat(e,"|").concat(r)];return-1===a||2===a};if(r.precheck){var o=r.precheck(this,s);if(void 0!==o)return o}return!!this.hasResourceBundle(a,e)||!this.services.backendConnector.backend||!(!s(a,e)||i&&!s(n,e))}},{key:"loadNamespaces",value:function(e,t){var r=this,a=R();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)})),this.loadResources((function(e){a.resolve(),t&&t(e)})),a):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var r=R();"string"==typeof e&&(e=[e]);var a=this.options.preload||[],i=e.filter((function(e){return a.indexOf(e)<0}));return i.length?(this.options.preload=a.concat(i),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),e?["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(e))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new e(t,r)}},{key:"cloneInstance",value:function(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:oe,i=h({},this.options,r,{isClone:!0}),n=new e(i),s=["store","services","language"];return s.forEach((function(e){n[e]=t[e]})),n.services=h({},this.services),n.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},n.translator=new W(n.services,n.options),n.translator.on("*",(function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];n.emit.apply(n,[e].concat(r))})),n.init(i,a),n.translator.options=n.options,n.translator.backendConnector.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},n}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),e}());const me={login_dialog:{heading:"Drucke mit ezeep Blue",description:"Melde dich mit deinem ezeep Blue-Konto an, um zu drucken.",action:"Anmelden"},no_document_dialog:{heading:"Keine Datei ausgewählt",description:"Wähle zunächst eine Datei zum Drucken aus.",action:"OK"},printer_selection:{loading:"Lade meine Drucker…",print:"Drucken",printer:"Drucker",print_processing:"Drucken…",print_success:"Erfolgreich gedruckt.",print_failed:"Druck fehlgeschlagen",not_supported:"Der ausgewählte Dateityp wird nicht unterstützt.",color:"Farbe",orientation:"Ausrichtung",size:"Papierformat",duplex:"Beidseitig",quality:"Druckqualität",select_printer:"Wähle einen Drucker",select_color:"Wähle Farbe/Graustufen",select_size:"Wähle Papierformat",select_orientation:"Wähle Ausrichtung",select_quality:"Wähle Druckqualität",select_duplex:"Wähle Beidseitig",color_color:"Farbe",color_grayscale:"Graustufen",orientation_portrait:"Hochformat",orientation_landscape:"Querformat",unknown_location:"Unbekannter Standort",no_printers:"Keine Drucker gefunden.",prepare_upload:"Vorbereiten…",uploading:"Hochladen…",duplex_none:"Keine",copies:"Kopien",duplex_long:"auf der langen Seite umdrehen",duplex_short:"auf der kurzen Seite umdrehen"},button_actions:{login:"Anmelden",print:"Drucken",cancel:"Abbrechen",close:"Schließen",retry:"Wiederholen"},upload:{description:"Ziehe eine Datei hier in den Browser ",meta_leading:"oder",meta_select:"wähle eine Datei aus",meta_trailing:"um mit ezeep Blue zu drucken."},user_menu:{theme:"Farbschema",appearance:"Darstellung",system:"System",light:"Hell",dark:"Dunkel",account:"Account verwalten",help:"Hilfe & Unterstützung",logout:"Ausloggen"}},ce={login_dialog:{heading:"Print with ezeep Blue",description:"Sign in with your ezeep Blue account to print.",action:"Sign in"},no_document_dialog:{heading:"No file selected",description:"Select a file first to print.",action:"OK"},printer_selection:{loading:"Loading My Printers…",print_processing:"Printing…",print_success:"Successfully printed.",pull_print_success:"Ready to be released.",print_failed:"Print failed",not_supported:"The selected file type is not supported.",prepare_upload:"Preparing…",uploading:"Uploading…",print:"Print",printer:"Printer",color:"Color",orientation:"Orientation",size:"Paper Size",duplex:"Double-sided",duplex_none:"None",duplex_long:"flip on long side",duplex_short:"flip on short side",quality:"Print Quality",select_printer:"Select a printer",select_color:"Select Color/Grayscale",select_orientation:"Select Orientation",select_size:"Select Paper Size",select_quality:"Select Print Quality",select_duplex:"Select Double-sided",color_color:"Color",color_grayscale:"Grayscale",orientation_portrait:"Portrait",orientation_landscape:"Landscape",unknown_location:"Unknown location",no_printers:"No printers found.",copies:"Copies"},button_actions:{login:"Sign In",print:"Print",cancel:"Cancel",close:"Close",retry:"Retry",select_printer:"Select Printer"},upload:{description:"Drop a file here into the browser ",meta_leading:"or",meta_select:"select a file",meta_trailing:"to print with ezeep Blue.",selected_file:"Selected File:"},user_menu:{theme:"Color theme",appearance:"Appearance",system:"System",light:"Light",dark:"Dark",account:"Manage account",help:"Help & Support",logout:"Logout"}};function de(e){return Object.keys(e).map((t=>encodeURIComponent(t)+"="+encodeURIComponent(e[t]))).join("&")}const pe=async({fn:e,validate:t,interval:r,maxAttempts:a})=>{let i=0;const n=async(s,o)=>{const l=await e();return i++,t(l)?s(l):a&&i===a?o(new Error("Exceeded max attempts.")):void setTimeout(n,r,s,o)};return new Promise(n)};class ue{constructor(e,t){this.urlParams=new URLSearchParams,this.isAuthorized=!1,this.redirectURI=e,this.clientID=t,this.oauthUrl=he.state.authApiHostUrl,this.authURI=new URL(`https://${this.oauthUrl}/oauth/authorize/`),this.accessTokenURL=`https://${this.oauthUrl}/oauth/access_token/`}generateCodeVerifier(){if(""!==he.state.codeVerifier)this.codeVerifier=he.state.codeVerifier;else{const e=new Uint8Array(128),t=crypto.getRandomValues(e),r=btoa(t.toString()).substr(0,128);this.codeVerifier=r,he.state.codeVerifier=this.codeVerifier}}async generateCodeChallenge(e){const t=(new TextEncoder).encode(e),r=await crypto.subtle.digest("SHA-256",t),a=btoa(String.fromCharCode.apply(null,new Uint8Array(r)));this.codeChallenge=a.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}buildAuthURI(){this.urlParams.append("response_type","code"),this.urlParams.append("client_id",this.clientID),this.urlParams.append("redirect_uri",this.redirectURI),this.urlParams.append("code_challenge",this.codeChallenge),this.urlParams.append("code_challenge_method","S256"),this.authURI.search=this.urlParams.toString(),he.state.authUri=this.authURI.toString()}getAccessToken(){return fetch(this.accessTokenURL,{credentials:"include",headers:{Authorization:"Basic "+btoa(this.clientID+":"),"Content-Type":"application/x-www-form-urlencoded"},method:"POST",body:de({grant_type:"authorization_code",scope:"printing",code:he.state.code,redirect_uri:this.redirectURI,code_verifier:he.state.codeVerifier})}).then((e=>e.json())).then((e=>{e.access_token&&(he.state.isAuthorized=!0,this.isAuthorized=he.state.isAuthorized,localStorage.setItem("isAuthorized",this.isAuthorized.toString()),this.accessToken=e.access_token,localStorage.setItem("access_token",this.accessToken),he.state.accessToken=this.accessToken,this.refreshToken=e.refresh_token,localStorage.setItem("refreshToken",this.refreshToken),he.state.refreshToken=this.refreshToken)}))}refreshTokens(){fetch(this.accessTokenURL,{credentials:"include",headers:{Authorization:"Basic "+btoa(this.clientID+":"),"Content-Type":"application/x-www-form-urlencoded"},method:"POST",body:de({grant_type:"refresh_token",scope:"printing",refresh_token:he.state.refreshToken})}).then((e=>e.json())).then((e=>{e.access_token&&(this.accessToken=e.access_token,localStorage.setItem("access_token",this.accessToken),he.state.accessToken=this.accessToken,this.refreshToken=e.refresh_token,localStorage.setItem("refreshToken",this.refreshToken),he.state.refreshToken=this.refreshToken,he.state.isAuthorized=!0)}))}}const he=d({code:"",codeVerifier:"",accessToken:"",refreshToken:"",isAuthorized:!1,devApi:!1,authApiHostUrl:"",redirectUri:"",authUri:""});let fe=class{constructor(e){r(this,e),this.authCancel=a(this,"authCancel",7),this.authSuccess=a(this,"authSuccess",7),this.oauthPopupWindow=null,this.previousUrl=null}listenDialogAction(){this.openSignInWindow(this.auth.authURI.toString(),"ezeep Login")}listenDialogClose(){this.authCancel.emit()}listenStatusCancel(){this.authCancel.emit()}openSignInWindow(e,t){if(he.state.isAuthorized)return this.authCancel.emit(),void this.authSuccess.emit();window.removeEventListener("message",this.receiveMessage);const r="toolbar=no, menubar=no, width=600, height=7000, top=100, left=100";null===this.oauthPopupWindow||this.oauthPopupWindow.closed?this.oauthPopupWindow=window.open(e,t,r):this.previousUrl!==this.auth.authURI.toString()?(this.oauthPopupWindow=window.open(e,t,r),this.oauthPopupWindow&&!this.oauthPopupWindow.closed&&void 0!==this.oauthPopupWindow.closed||alert("popup blocked"),this.oauthPopupWindow.focus()):this.oauthPopupWindow.focus(),window.addEventListener("message",(e=>this.receiveMessage(e)),!1),this.previousUrl=this.auth.authURI}receiveMessage(e){he.state.code=e.data,this.auth.getAccessToken().then((()=>{this.authCancel.emit(),this.authSuccess.emit()}))}async componentWillLoad(){this.auth=new ue(this.redirectURI,this.clientID),this.code&&(he.state.code=this.code,await this.auth.getAccessToken(),this.authCancel.emit(),this.authSuccess.emit()),!1===he.state.isAuthorized&&(this.auth.generateCodeVerifier(),await this.auth.generateCodeChallenge(he.state.codeVerifier),this.auth.buildAuthURI()),this.hidelogin&&"button"===this.trigger&&this.openSignInWindow(this.auth.authURI.toString(),"ezeep Login")}render(){return i(n,null,this.hidelogin&&"button"===this.trigger?i("ezp-status",{description:le.t("login_dialog.action"),processing:!0,cancel:!0}):this.hidelogin&&"file"===this.trigger?i("ezp-text-button",{type:"button",level:"primary",onClick:()=>this.openSignInWindow(this.auth.authURI.toString(),"ezeep Login"),label:le.t("button_actions.select_printer")}):i("ezp-dialog",{heading:le.t("login_dialog.heading"),description:le.t("login_dialog.description"),action:le.t("login_dialog.action"),iconName:"logo",iconSize:"huge",iconFramed:!1,instance:"login"}))}};fe.style=":host{--ezp-theme-solid:var(--ezp-accent-cyan-solid);--ezp-theme-translucent:var(--ezp-accent-cyan-translucent);display:block}";let ye=class{constructor(e){r(this,e),this.backdropHideStart=a(this,"backdropHideStart",7),this.backdropHideEnd=a(this,"backdropHideEnd",7),this.visible=!0}handleClick(){this.visible=!1,this.backdropHideStart.emit()}listenAnimationEnd(){this.visible||this.backdropHideEnd.emit()}render(){return i(n,{class:{hide:!this.visible},onClick:()=>this.handleClick()})}get component(){return s(this)}};ye.style=":host{-webkit-animation:var(--ezp-backdrop-animation-name, host-in) var(--ezp-duration-3) forwards var(--ezp-easing-out-quart);animation:var(--ezp-backdrop-animation-name, host-in) var(--ezp-duration-3) forwards var(--ezp-easing-out-quart);background:var(--ezp-core-backdrop);border-radius:6px;display:block;height:100%;left:0;opacity:0;position:absolute;top:0;width:100%;z-index:4}:host(.hide){--ezp-backdrop-animation-name:host-out}@-webkit-keyframes host-in{0%{opacity:0}100%{opacity:1}}@keyframes host-in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes host-out{0%{opacity:1}100%{opacity:0}}@keyframes host-out{0%{opacity:1}100%{opacity:0}}";let ge=class{constructor(e){r(this,e),this.dialogClose=a(this,"dialogClose",7),this.dialogAction=a(this,"dialogAction",7),this.action=le.t("button_actions.close"),this.iconSize="large",this.iconFramed=!0,this.handleClose=()=>{this.dialogClose.emit(this.instance)},this.handleAction=()=>{this.dialogAction.emit(this.instance)}}componentWillLoad(){}render(){return i(n,null,i("div",{id:"box"},i("div",{id:"header"},i("ezp-icon-button",{level:"tertiary",icon:"close",type:"button",onClick:this.handleClose})),i("div",{id:"body"},this.iconName&&i("ezp-icon",{name:this.iconName,size:this.iconSize,framed:this.iconFramed}),i("div",{id:"text"},i("ezp-label",{text:this.heading,weight:"heavy"}),i("ezp-label",{text:this.description}))),i("div",{id:"footer"},i("ezp-text-button",{type:"button",level:"primary",onClick:this.handleAction,label:this.action}))))}};ge.style=":host{--ezp-icon-fill:var(--ezp-theme-solid);-ms-flex-line-pack:center;align-content:center;background:var(--ezp-core-backdrop);display:grid;grid-template:auto/minmax(auto, 280px);height:100%;-ms-flex-pack:center;justify-content:center;left:0;position:fixed;top:0;width:100%}#box{background:var(--ezp-core-surface-tertiary);border-radius:6px;-webkit-box-shadow:var(--ezp-dialog-box-boxShadow, 0 0 0 1px var(--ezp-black-10));box-shadow:var(--ezp-dialog-box-boxShadow, 0 0 0 1px var(--ezp-black-10))}#header{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end;padding:var(--ezp-spacing-2) var(--ezp-spacing-3)}#body{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:var(--ezp-spacing-5);padding:0 var(--ezp-spacing-5);text-align:center}#text{color:var(--ezp-core-foreground-primary);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:var(--ezp-spacing-4)}#footer{display:grid;grid-template:auto/minmax(144px, auto);-ms-flex-pack:center;justify-content:center;padding:var(--ezp-spacing-5)}";let xe=class{constructor(e){r(this,e),this.size="normal",this.framed=!1}async componentWillLoad(){await fetch(o(`./assets/glyph-${this.name}.svg`)).then((e=>e.text())).then((e=>{this.glyph=e})).catch((e=>console.log(e)))}render(){return i(n,{class:`${this.size} ${this.framed?"framed":""}`},i("div",{id:"glyph",innerHTML:this.glyph}))}static get assetsDirs(){return["assets"]}};xe.style=":host{-ms-flex-line-pack:center;align-content:center;background:var(--ezp-icon-background, transparent);border-radius:var(--ezp-icon-borderRadius, 0);display:grid;grid-template:var(--ezp-icon-gridTemplate)/var(--ezp-icon-gridTemplate);height:var(--ezp-icon-height, var(--ezp-icon-size));-ms-flex-pack:center;justify-content:center;padding:var(--ezp-icon-padding, 0);width:var(--ezp-icon-width, var(--ezp-icon-size))}:host(.framed){--ezp-icon-background:var(--ezp-core-shade-primary);--ezp-icon-borderRadius:50%;--ezp-icon-padding:var(--ezp-icon-frame)}:host(.normal){--ezp-icon-size:18px;--ezp-icon-gridTemplate:24px;--ezp-icon-frame:var(--ezp-spacing-3)}:host(.large){--ezp-icon-size:36px;--ezp-icon-gridTemplate:48px;--ezp-icon-frame:var(--ezp-spacing-4)}:host(.huge){--ezp-icon-size:54px;--ezp-icon-gridTemplate:72px;--ezp-icon-frame:var(--ezp-spacing-5)}svg{display:block;fill:var(--ezp-icon-fill, currentColor);height:100%;width:100%}";let be=class{constructor(e){r(this,e),this.blank=!1,this.disabled=!1,this.level="primary"}render(){return i(n,{class:`${this.level}`},i(void 0!==this.type?"button":"a",Object.assign({id:"button"},void 0!==this.type?{type:this.type,disabled:this.disabled}:{href:this.href,target:this.blank?"_blank":"_self"}),i("ezp-icon",{name:this.icon})))}};be.style=":host{display:block}:host(.primary){--ezp-iconButton-background-disabled:var(--ezp-core-shade-primary);--ezp-iconButton-background-init:var(--ezp-theme-solid);--ezp-iconButton-color-disabled:var(--ezp-core-foreground-tertiary);--ezp-iconButton-color-init:var(--ezp-white-100);--ezp-iconButton-opacity-active:0.74;--ezp-iconButton-opacity-hover:0.84}:host(.secondary){--ezp-iconButton-background-active:var(--ezp-core-shade-tertiary);--ezp-iconButton-background-disabled:var(--ezp-core-shade-primary);--ezp-iconButton-background-hover:var(--ezp-core-shade-secondary);--ezp-iconButton-background-init:var(--ezp-core-shade-primary);--ezp-iconButton-color-disabled:var(--ezp-core-foreground-tertiary);--ezp-iconButton-color-init:var(--ezp-theme-solid)}:host(.tertiary){--ezp-iconButton-background-active:var(--ezp-core-shade-secondary);--ezp-iconButton-background-hover:var(--ezp-core-shade-primary);--ezp-iconButton-background-init:transparent;--ezp-iconButton-color-disabled:var(--ezp-core-foreground-tertiary);--ezp-iconButton-color-init:var(--ezp-theme-solid)}:host(.quaternary){--ezp-iconButton-background-init:transparent;--ezp-iconButton-color-disabled:var(--ezp-core-foreground-tertiary);--ezp-iconButton-color-init:var(--ezp-theme-solid);--ezp-iconButton-opacity-active:0.58;--ezp-iconButton-opacity-hover:0.74}#button{-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--ezp-iconButton-background, var(--ezp-iconButton-background-init));border:0;border-radius:3px;-webkit-box-shadow:none;box-shadow:none;color:var(--ezp-iconButton-color, var(--ezp-iconButton-color-init));cursor:var(--ezp-iconButton-cursor, pointer);display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0;opacity:var(--ezp-iconButton-opacity, 1);outline:none;padding:var(--ezp-spacing-2)}@media (hover: hover){#button:not(:disabled):hover{--ezp-iconButton-background:var(\n --ezp-iconButton-background-hover,\n var(--ezp-iconButton-background-init)\n );--ezp-iconButton-opacity:var(--ezp-iconButton-opacity-hover, 1)}#button:not(:disabled):active{--ezp-iconButton-background:var(\n --ezp-iconButton-background-active,\n var(--ezp-iconButton-background-init)\n );--ezp-iconButton-opacity:var(--ezp-iconButton-opacity-active, 1)}}#button:disabled{--ezp-iconButton-background:var(\n --ezp-iconButton-background-disabled,\n var(--ezp-iconButton-background-init)\n );--ezp-iconButton-color:var(--ezp-iconButton-color-disabled);--ezp-iconButton-cursor:default}";let Ne=class{constructor(e){r(this,e),this.ellipsis=!1,this.level="secondary",this.noWrap=!1,this.text="Label",this.weight="soft"}render(){return i(n,{class:`${this.level} ${this.weight} ${this.ellipsis?"ellipsis":""} ${this.noWrap?"no-wrap":""}`},i("div",{id:"text"},this.text))}};Ne.style=':host{display:block;min-width:var(--ezp-label-minWidth, auto);padding-bottom:1px;padding-top:1px}:host::before,:host::after{content:"";display:block;height:0}:host::before{margin-top:calc((var(--ezp-label-offset) + 1px) * -1)}:host::after{margin-bottom:calc((var(--ezp-label-offset) + 1px) * -1)}:host(.no-wrap){--ezp-label-whiteSpace:nowrap}:host(.ellipsis){--ezp-label-minWidth:0;--ezp-label-overflow:hidden;--ezp-label-textOverflow:ellipsis;--ezp-label-whiteSpace:nowrap;--ezp-label-width:100%}:host(.primary){--ezp-label-fontSize:17px;--ezp-label-lineHeight:24px;--ezp-label-letterSpacing:-0.0127756105em;--ezp-label-offset:6px}:host(.secondary){--ezp-label-fontSize:14px;--ezp-label-lineHeight:20px;--ezp-label-letterSpacing:-0.0062235443em;--ezp-label-offset:5px}:host(.tertiary){--ezp-label-fontSize:12px;--ezp-label-lineHeight:18px;--ezp-label-letterSpacing:0.0004907745em;--ezp-label-offset:5px}:host(.soft){--ezp-label-fontWeight:400}:host(.strong){--ezp-label-fontWeight:500}:host(.heavy){--ezp-label-fontWeight:600}#text{font-size:var(--ezp-label-fontSize);font-weight:var(--ezp-label-fontWeight);letter-spacing:var(--ezp-label-letterSpacing);line-height:var(--ezp-label-lineHeight);overflow:var(--ezp-label-overflow, visible);text-overflow:var(--ezp-label-textOverflow, clip);white-space:var(--ezp-label-whiteSpace, normal);width:var(--ezp-label-width, auto)}';var ve="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==ve&&ve,ze="URLSearchParams"in ve,Se="Symbol"in ve&&"iterator"in Symbol,we="FileReader"in ve&&"Blob"in ve&&function(){try{return new Blob,!0}catch(e){return!1}}(),Ce="FormData"in ve,Pe="ArrayBuffer"in ve;if(Pe)var ke=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],Be=ArrayBuffer.isView||function(e){return e&&ke.indexOf(Object.prototype.toString.call(e))>-1};function Ee(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function qe(e){return"string"!=typeof e&&(e=String(e)),e}function Re(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return Se&&(t[Symbol.iterator]=function(){return t}),t}function Me(e){this.map={},e instanceof Me?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function Te(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function Ae(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function He(e){var t=new FileReader,r=Ae(t);return t.readAsArrayBuffer(e),r}function Oe(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function Ie(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:we&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:Ce&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:ze&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():Pe&&we&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=Oe(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):Pe&&(ArrayBuffer.prototype.isPrototypeOf(e)||Be(e))?this._bodyArrayBuffer=Oe(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):ze&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},we&&(this.blob=function(){var e=Te(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?Te(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(He)}),this.text=function(){var e,t,r,a=Te(this);if(a)return a;if(this._bodyBlob)return e=this._bodyBlob,r=Ae(t=new FileReader),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),a=0;a<t.length;a++)r[a]=String.fromCharCode(t[a]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},Ce&&(this.formData=function(){return this.text().then(je)}),this.json=function(){return this.text().then(JSON.parse)},this}Me.prototype.append=function(e,t){e=Ee(e),t=qe(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},Me.prototype.delete=function(e){delete this.map[Ee(e)]},Me.prototype.get=function(e){return e=Ee(e),this.has(e)?this.map[e]:null},Me.prototype.has=function(e){return this.map.hasOwnProperty(Ee(e))},Me.prototype.set=function(e,t){this.map[Ee(e)]=qe(t)},Me.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},Me.prototype.keys=function(){var e=[];return this.forEach((function(t,r){e.push(r)})),Re(e)},Me.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),Re(e)},Me.prototype.entries=function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),Re(e)},Se&&(Me.prototype[Symbol.iterator]=Me.prototype.entries);var De=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Le(e,t){if(!(this instanceof Le))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,a,i=(t=t||{}).body;if(e instanceof Le){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new Me(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new Me(t.headers)),this.method=(a=(r=t.method||this.method||"GET").toUpperCase(),De.indexOf(a)>-1?a:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var n=/([?&])_=[^&]*/;n.test(this.url)?this.url=this.url.replace(n,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function je(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),a=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(a),decodeURIComponent(i))}})),t}function _e(e,t){if(!(this instanceof _e))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new Me(t.headers),this.url=t.url||"",this._initBody(e)}Le.prototype.clone=function(){return new Le(this,{body:this._bodyInit})},Ie.call(Le.prototype),Ie.call(_e.prototype),_e.prototype.clone=function(){return new _e(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Me(this.headers),url:this.url})},_e.error=function(){var e=new _e(null,{status:0,statusText:""});return e.type="error",e};var Ue=[301,302,303,307,308];_e.redirect=function(e,t){if(-1===Ue.indexOf(t))throw new RangeError("Invalid status code");return new _e(null,{status:t,headers:{location:e}})};var $e=ve.DOMException;try{new $e}catch(e){($e=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack}).prototype=Object.create(Error.prototype),$e.prototype.constructor=$e}function Fe(e,t){return new Promise((function(r,a){var i=new Le(e,t);if(i.signal&&i.signal.aborted)return a(new $e("Aborted","AbortError"));var n=new XMLHttpRequest;function s(){n.abort()}n.onload=function(){var e,t,a={status:n.status,statusText:n.statusText,headers:(e=n.getAllResponseHeaders()||"",t=new Me,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var r=e.split(":"),a=r.shift().trim();if(a){var i=r.join(":").trim();t.append(a,i)}})),t)};a.url="responseURL"in n?n.responseURL:a.headers.get("X-Request-URL");var i="response"in n?n.response:n.responseText;setTimeout((function(){r(new _e(i,a))}),0)},n.onerror=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},n.ontimeout=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},n.onabort=function(){setTimeout((function(){a(new $e("Aborted","AbortError"))}),0)},n.open(i.method,function(e){try{return""===e&&ve.location.href?ve.location.href:e}catch(t){return e}}(i.url),!0),"include"===i.credentials?n.withCredentials=!0:"omit"===i.credentials&&(n.withCredentials=!1),"responseType"in n&&(we?n.responseType="blob":Pe&&i.headers.get("Content-Type")&&-1!==i.headers.get("Content-Type").indexOf("application/octet-stream")&&(n.responseType="arraybuffer")),!t||"object"!=typeof t.headers||t.headers instanceof Me?i.headers.forEach((function(e,t){n.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){n.setRequestHeader(e,qe(t.headers[e]))})),i.signal&&(i.signal.addEventListener("abort",s),n.onreadystatechange=function(){4===n.readyState&&i.signal.removeEventListener("abort",s)}),n.send(void 0===i._bodyInit?null:i._bodyInit)}))}Fe.polyfill=!0,ve.fetch||(ve.fetch=Fe,ve.Headers=Me,ve.Request=Le,ve.Response=_e);const Ve=v(Object.freeze({__proto__:null,Headers:Me,Request:Le,Response:_e,get DOMException(){return $e},fetch:Fe}));var Ge=function(e){var t={};function r(a){if(t[a])return t[a].exports;var i=t[a]={exports:{},id:a,loaded:!1};return e[a].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}return r.m=e,r.c=t,r.p="",r(0)}([function(e,t,r){var a=r(1),i="function"==typeof importScripts;e.exports=a(i?self:window)},function(e,t,r){function a(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}var i=[];function n(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var s=i.reduce((function(e,t){return[t].concat(e)}),[]),o=Promise.resolve(r);return s.forEach((function(e){var t=e.request,r=e.requestError;(t||r)&&(o=o.then((function(e){return t.apply(void 0,a(e))}),r))})),o=o.then((function(t){var r=new(Function.prototype.bind.apply(Request,[null].concat(a(t))));return e(r).then((function(e){return e.request=r,e})).catch((function(e){return e.request=r,Promise.reject(e)}))})),s.forEach((function(e){var t=e.response,r=e.responseError;(t||r)&&(o=o.then(t,r))})),o}e.exports=function(e){if(!e.fetch)try{r(2)}catch(e){throw Error("No fetch available. Unable to register fetch-intercept")}return e.fetch=function(e){return function(){for(var t=arguments.length,r=Array(t),a=0;a<t;a++)r[a]=arguments[a];return n.apply(void 0,[e].concat(r))}}(e.fetch),{register:function(e){return i.push(e),function(){var t=i.indexOf(e);t>=0&&i.splice(t,1)}},clear:function(){i=[]}}}},function(e){e.exports=Ve}]);function Ke(e){return e.toLowerCase()}function We(e){if(e&&"object"==typeof e){const t=e;if("function"==typeof t.rawHeaders&&"function"==typeof t.clone&&"function"==typeof t.get&&"function"==typeof t.set&&"function"==typeof t.contains&&"function"==typeof t.remove&&"function"==typeof t.headersArray&&"function"==typeof t.headerValues&&"function"==typeof t.headerNames&&"function"==typeof t.toJson)return!0}return!1}class Xe{constructor(e){if(this._headersMap={},e)for(const t in e)this.set(t,e[t])}set(e,t){this._headersMap[Ke(e)]={name:e,value:t.toString()}}get(e){const t=this._headersMap[Ke(e)];return t?t.value:void 0}contains(e){return!!this._headersMap[Ke(e)]}remove(e){const t=this.contains(e);return delete this._headersMap[Ke(e)],t}rawHeaders(){return this.toJson({preserveCase:!0})}headersArray(){const e=[];for(const t in this._headersMap)e.push(this._headersMap[t]);return e}headerNames(){const e=[],t=this.headersArray();for(let r=0;r<t.length;++r)e.push(t[r].name);return e}headerValues(){const e=[],t=this.headersArray();for(let r=0;r<t.length;++r)e.push(t[r].value);return e}toJson(e={}){const t={};if(e.preserveCase)for(const e in this._headersMap){const r=this._headersMap[e];t[r.name]=r.value}else for(const e in this._headersMap){const r=this._headersMap[e];t[Ke(r.name)]=r.value}return t}toString(){return JSON.stringify(this.toJson({preserveCase:!0}))}clone(){const e={};for(const t in this._headersMap){const r=this._headersMap[t];e[r.name]=r.value}return new Xe(e)}}function Qe(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function Je(e){const t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r}var Ye=b.process;const Ze="authorization",et="Retry-After",tt="$";var rt,at=new Uint8Array(16);function it(){if(!rt&&!(rt="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return rt(at)}const nt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function st(e){return"string"==typeof e&&nt.test(e)}for(var ot=[],lt=0;lt<256;++lt)ot.push((lt+256).toString(16).substr(1));function mt(e,t,r){var a=(e=e||{}).random||(e.rng||it)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){r=r||0;for(var i=0;i<16;++i)t[r+i]=a[i];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(ot[e[t+0]]+ot[e[t+1]]+ot[e[t+2]]+ot[e[t+3]]+"-"+ot[e[t+4]]+ot[e[t+5]]+"-"+ot[e[t+6]]+ot[e[t+7]]+"-"+ot[e[t+8]]+ot[e[t+9]]+"-"+ot[e[t+10]]+ot[e[t+11]]+ot[e[t+12]]+ot[e[t+13]]+ot[e[t+14]]+ot[e[t+15]]).toLowerCase();if(!st(r))throw TypeError("Stringified UUID is invalid");return r}(a)}const ct=/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/i,dt=void 0!==Ye&&!!Ye.version&&!!Ye.versions&&!!Ye.versions.node;function pt(){return mt()}const ut=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ht(e,t,r){return e&&t?e.split(t).join(r||""):e}class ft{constructor(e={},t){this.modelMappers=e,this.isXML=t}validateConstraints(e,t,r){const a=(e,a)=>{throw new Error(`"${r}" with value "${t}" should satisfy the constraint "${e}": ${a}.`)};if(e.constraints&&null!=t){const r=t,{ExclusiveMaximum:i,ExclusiveMinimum:n,InclusiveMaximum:s,InclusiveMinimum:o,MaxItems:l,MaxLength:m,MinItems:c,MinLength:d,MultipleOf:p,Pattern:u,UniqueItems:h}=e.constraints;null!=i&&r>=i&&a("ExclusiveMaximum",i),null!=n&&r<=n&&a("ExclusiveMinimum",n),null!=s&&r>s&&a("InclusiveMaximum",s),null!=o&&r<o&&a("InclusiveMinimum",o);const f=t;if(null!=l&&f.length>l&&a("MaxItems",l),null!=m&&f.length>m&&a("MaxLength",m),null!=c&&f.length<c&&a("MinItems",c),null!=d&&f.length<d&&a("MinLength",d),null!=p&&r%p!=0&&a("MultipleOf",p),u){const e="string"==typeof u?new RegExp(u):u;"string"==typeof t&&null!==t.match(e)||a("Pattern",u)}h&&f.some(((e,t,r)=>r.indexOf(e)!==t))&&a("UniqueItems",h)}}serialize(e,t,r,a={}){var i,n,s;const o={rootName:null!==(i=a.rootName)&&void 0!==i?i:"",includeRoot:null!==(n=a.includeRoot)&&void 0!==n&&n,xmlCharKey:null!==(s=a.xmlCharKey)&&void 0!==s?s:"_"};let l={};const m=e.type.name;r||(r=e.serializedName),null!==m.match(/^Sequence$/i)&&(l=[]),e.isConstant&&(t=e.defaultValue);const{required:c,nullable:d}=e;if(c&&d&&void 0===t)throw new Error(`${r} cannot be undefined.`);if(c&&!d&&null==t)throw new Error(`${r} cannot be null or undefined.`);if(!c&&!1===d&&null===t)throw new Error(`${r} cannot be null.`);return null==t?l=t:(this.validateConstraints(e,t,r),null!==m.match(/^any$/i)?l=t:null!==m.match(/^(Number|String|Boolean|Object|Stream|Uuid)$/i)?l=function(e,t,r){if(null!=r)if(null!==e.match(/^Number$/i)){if("number"!=typeof r)throw new Error(`${t} with value ${r} must be of type number.`)}else if(null!==e.match(/^String$/i)){if("string"!=typeof r.valueOf())throw new Error(`${t} with value "${r}" must be of type string.`)}else if(null!==e.match(/^Uuid$/i)){if("string"!=typeof r.valueOf()||!ct.test(r))throw new Error(`${t} with value "${r}" must be of type string and a valid uuid.`)}else if(null!==e.match(/^Boolean$/i)){if("boolean"!=typeof r)throw new Error(`${t} with value ${r} must be of type boolean.`)}else if(null!==e.match(/^Stream$/i)){const e=typeof r;if(!("string"===e||"function"===e||r instanceof ArrayBuffer||ArrayBuffer.isView(r)||("function"==typeof Blob||"object"==typeof Blob)&&r instanceof Blob))throw new Error(`${t} must be a string, Blob, ArrayBuffer, ArrayBufferView, or a function returning NodeJS.ReadableStream.`)}return r}(m,r,t):null!==m.match(/^Enum$/i)?l=function(e,t,r){if(!t)throw new Error(`Please provide a set of allowedValues to validate ${e} as an Enum Type.`);if(!t.some((e=>"string"==typeof e.valueOf()?e.toLowerCase()===r.toLowerCase():e===r)))throw new Error(`${r} is not a valid value for ${e}. The valid values are: ${JSON.stringify(t)}.`);return r}(r,e.type.allowedValues,t):null!==m.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)?l=function(e,t,r){if(null!=t)if(null!==e.match(/^Date$/i)){if(!(t instanceof Date||"string"==typeof t.valueOf()&&!isNaN(Date.parse(t))))throw new Error(`${r} must be an instanceof Date or a string in ISO8601 format.`);t=t instanceof Date?t.toISOString().substring(0,10):new Date(t).toISOString().substring(0,10)}else if(null!==e.match(/^DateTime$/i)){if(!(t instanceof Date||"string"==typeof t.valueOf()&&!isNaN(Date.parse(t))))throw new Error(`${r} must be an instanceof Date or a string in ISO8601 format.`);t=t instanceof Date?t.toISOString():new Date(t).toISOString()}else if(null!==e.match(/^DateTimeRfc1123$/i)){if(!(t instanceof Date||"string"==typeof t.valueOf()&&!isNaN(Date.parse(t))))throw new Error(`${r} must be an instanceof Date or a string in RFC-1123 format.`);t=t instanceof Date?t.toUTCString():new Date(t).toUTCString()}else if(null!==e.match(/^UnixTime$/i)){if(!(t instanceof Date||"string"==typeof t.valueOf()&&!isNaN(Date.parse(t))))throw new Error(`${r} must be an instanceof Date or a string in RFC-1123/ISO8601 format for it to be serialized in UnixTime/Epoch format.`);t=function(e){if(e)return"string"==typeof e.valueOf()&&(e=new Date(e)),Math.floor(e.getTime()/1e3)}(t)}else if(null!==e.match(/^TimeSpan$/i)&&!function(e){return ut.test(e)}(t))throw new Error(`${r} must be a string in ISO 8601 format. Instead was "${t}".`);return t}(m,t,r):null!==m.match(/^ByteArray$/i)?l=function(e,t){let r="";if(null!=t){if(!(t instanceof Uint8Array))throw new Error(`${e} must be of type Uint8Array.`);r=Qe(t)}return r}(r,t):null!==m.match(/^Base64Url$/i)?l=function(e,t){let r="";if(null!=t){if(!(t instanceof Uint8Array))throw new Error(`${e} must be of type Uint8Array.`);r=function(e){if(e){if(!(e instanceof Uint8Array))throw new Error("Please provide an input of type Uint8Array for converting to Base64Url.");return function(e){let t=e.length;for(;t-1>=0&&"="===e[t-1];)--t;return e.substr(0,t)}(Qe(e)).replace(/\+/g,"-").replace(/\//g,"_")}}(t)||""}return r}(r,t):null!==m.match(/^Sequence$/i)?l=function(e,t,r,a,i,n){if(!Array.isArray(r))throw new Error(`${a} must be of type Array.`);const s=t.type.element;if(!s||"object"!=typeof s)throw new Error(`element" metadata for an Array must be defined in the mapper and it must of type "object" in ${a}.`);const o=[];for(let t=0;t<r.length;t++){const l=e.serialize(s,r[t],a,n);if(i&&s.xmlNamespace){const e=s.xmlNamespacePrefix?`xmlns:${s.xmlNamespacePrefix}`:"xmlns";"Composite"===s.type.name?(o[t]=Object.assign({},l),o[t][tt]={[e]:s.xmlNamespace}):(o[t]={},o[t][n.xmlCharKey]=l,o[t][tt]={[e]:s.xmlNamespace})}else o[t]=l}return o}(this,e,t,r,Boolean(this.isXML),o):null!==m.match(/^Dictionary$/i)?l=function(e,t,r,a,i,n){if("object"!=typeof r)throw new Error(`${a} must be of type object.`);const s=t.type.value;if(!s||"object"!=typeof s)throw new Error(`"value" metadata for a Dictionary must be defined in the mapper and it must of type "object" in ${a}.`);const o={};for(const t of Object.keys(r)){const l=e.serialize(s,r[t],a,n);o[t]=bt(s,l,i,n)}if(i&&t.xmlNamespace){const e=o;return e[tt]={[t.xmlNamespacePrefix?`xmlns:${t.xmlNamespacePrefix}`:"xmlns"]:t.xmlNamespace},e}return o}(this,e,t,r,Boolean(this.isXML),o):null!==m.match(/^Composite$/i)&&(l=function(e,t,r,a,i,n){if(zt(e,t)&&(t=vt(e,t,r,"clientName")),null!=r){const s={},o=xt(e,t,a);for(const l of Object.keys(o)){const m=o[l];if(m.readOnly)continue;let c,d=s;if(e.isXML)c=m.xmlIsWrapped?m.xmlName:m.xmlElementName||m.xmlName;else{const e=yt(m.serializedName);c=e.pop();for(const t of e)null!=d[t]||null==r[l]&&void 0===m.defaultValue||(d[t]={}),d=d[t]}if(null!=d){if(i&&t.xmlNamespace){const e=t.xmlNamespacePrefix?`xmlns:${t.xmlNamespacePrefix}`:"xmlns";d[tt]=Object.assign(Object.assign({},d[tt]),{[e]:t.xmlNamespace})}const s=""!==m.serializedName?a+"."+m.serializedName:a;let o=r[l];const p=zt(e,t);p&&p.clientName===l&&null==o&&(o=t.serializedName);const u=e.serialize(m,o,s,n);if(void 0!==u&&null!=c){const e=bt(m,u,i,n);i&&m.xmlIsAttribute?(d[tt]=d[tt]||{},d[tt][c]=u):d[c]=i&&m.xmlIsWrapped?{[m.xmlElementName]:e}:e}}}const l=function(e,t,r){const a=t.type.additionalProperties;if(!a&&t.type.className){const a=gt(e,t,r);return null==a?void 0:a.type.additionalProperties}return a}(e,t,a);if(l){const t=Object.keys(o);for(const i in r)t.every((e=>e!==i))&&(s[i]=e.serialize(l,r[i],a+'["'+i+'"]',n))}return s}return r}(this,e,t,r,Boolean(this.isXML),o))),l}deserialize(e,t,r,a={}){var i,n,s;const o={rootName:null!==(i=a.rootName)&&void 0!==i?i:"",includeRoot:null!==(n=a.includeRoot)&&void 0!==n&&n,xmlCharKey:null!==(s=a.xmlCharKey)&&void 0!==s?s:"_"};if(null==t)return this.isXML&&"Sequence"===e.type.name&&!e.xmlIsWrapped&&(t=[]),void 0!==e.defaultValue&&(t=e.defaultValue),t;let l;const m=e.type.name;if(r||(r=e.serializedName),null!==m.match(/^Composite$/i))l=function(e,t,r,a,i){var n;zt(e,t)&&(t=vt(e,t,r,"serializedName"));const s=xt(e,t,a);let o={};const l=[];for(const m of Object.keys(s)){const c=s[m],d=yt(s[m].serializedName);l.push(d[0]);const{serializedName:p,xmlName:u,xmlElementName:h}=c;let f=a;""!==p&&void 0!==p&&(f=a+"."+p);const y=c.headerCollectionPrefix;if(y){const t={};for(const a of Object.keys(r))a.startsWith(y)&&(t[a.substring(y.length)]=e.deserialize(c.type.value,r[a],f,i)),l.push(a);o[m]=t}else if(e.isXML)if(c.xmlIsAttribute&&r[tt])o[m]=e.deserialize(c,r[tt][u],f,i);else{const t=h||u||p;if(c.xmlIsWrapped){const t=r[u],a=null!==(n=null==t?void 0:t[h])&&void 0!==n?n:[];o[m]=e.deserialize(c,a,f,i)}else o[m]=e.deserialize(c,r[t],f,i)}else{let a,n=r;for(const e of d){if(!n)break;n=n[e]}a=n;const l=t.type.polymorphicDiscriminator;let p;if(l&&m===l.clientName&&null==a&&(a=t.serializedName),Array.isArray(r[m])&&""===s[m].serializedName){a=r[m];const t=e.deserialize(c,a,f,i);for(const[e,r]of Object.entries(o))Object.prototype.hasOwnProperty.call(t,e)||(t[e]=r);o=t}else void 0===a&&void 0===c.defaultValue||(p=e.deserialize(c,a,f,i),o[m]=p)}}const m=t.type.additionalProperties;if(m){const t=e=>{for(const t in s)if(yt(s[t].serializedName)[0]===e)return!1;return!0};for(const n in r)t(n)&&(o[n]=e.deserialize(m,r[n],a+'["'+n+'"]',i))}else if(r)for(const e of Object.keys(r))void 0!==o[e]||l.includes(e)||Nt(e,i)||(o[e]=r[e]);return o}(this,e,t,r,o);else{if(this.isXML){const e=o.xmlCharKey,r=t;null!=r[tt]&&null!=r[e]&&(t=r[e])}null!==m.match(/^Number$/i)?(l=parseFloat(t),isNaN(l)&&(l=t)):null!==m.match(/^Boolean$/i)?l="true"===t||"false"!==t&&t:null!==m.match(/^(String|Enum|Object|Stream|Uuid|TimeSpan|any)$/i)?l=t:null!==m.match(/^(Date|DateTime|DateTimeRfc1123)$/i)?l=new Date(t):null!==m.match(/^UnixTime$/i)?l=function(e){if(e)return new Date(1e3*e)}(t):null!==m.match(/^ByteArray$/i)?l=Je(t):null!==m.match(/^Base64Url$/i)?l=function(e){if(e){if(e&&"string"!=typeof e.valueOf())throw new Error("Please provide an input of type string for converting to Uint8Array");return Je(e=e.replace(/-/g,"+").replace(/_/g,"/"))}}(t):null!==m.match(/^Sequence$/i)?l=function(e,t,r,a,i){const n=t.type.element;if(!n||"object"!=typeof n)throw new Error(`element" metadata for an Array must be defined in the mapper and it must of type "object" in ${a}`);if(r){Array.isArray(r)||(r=[r]);const t=[];for(let s=0;s<r.length;s++)t[s]=e.deserialize(n,r[s],`${a}[${s}]`,i);return t}return r}(this,e,t,r,o):null!==m.match(/^Dictionary$/i)&&(l=function(e,t,r,a,i){const n=t.type.value;if(!n||"object"!=typeof n)throw new Error(`"value" metadata for a Dictionary must be defined in the mapper and it must of type "object" in ${a}`);if(r){const t={};for(const s of Object.keys(r))t[s]=e.deserialize(n,r[s],a,i);return t}return r}(this,e,t,r,o))}return e.isConstant&&(l=e.defaultValue),l}}function yt(e){const t=[];let r="";if(e){const a=e.split(".");for(const e of a)"\\"===e.charAt(e.length-1)?r+=e.substr(0,e.length-1)+".":(r+=e,t.push(r),r="")}return t}function gt(e,t,r){const a=t.type.className;if(!a)throw new Error(`Class name for model "${r}" is not provided in the mapper "${JSON.stringify(t,void 0,2)}".`);return e.modelMappers[a]}function xt(e,t,r){let a=t.type.modelProperties;if(!a){const i=gt(e,t,r);if(!i)throw new Error(`mapper() cannot be null or undefined for model "${t.type.className}".`);if(a=null==i?void 0:i.type.modelProperties,!a)throw new Error(`modelProperties cannot be null or undefined in the mapper "${JSON.stringify(i)}" of type "${t.type.className}" for object "${r}".`)}return a}function bt(e,t,r,a){if(!r||!e.xmlNamespace)return t;const i={[e.xmlNamespacePrefix?`xmlns:${e.xmlNamespacePrefix}`:"xmlns"]:e.xmlNamespace};if(["Composite"].includes(e.type.name)){if(t[tt])return t;{const e=Object.assign({},t);return e[tt]=i,e}}const n={};return n[a.xmlCharKey]=t,n[tt]=i,n}function Nt(e,t){return[tt,t.xmlCharKey].includes(e)}function vt(e,t,r,a){const i=zt(e,t);if(i){const n=i[a];if(null!=n){const a=r[n];if(null!=a){const r=t.type.uberParent||t.type.className,i=e.modelMappers.discriminators[a===r?a:r+"."+a];i&&(t=i)}}}return t}function zt(e,t){return t.type.polymorphicDiscriminator||St(e,t.type.uberParent)||St(e,t.type.className)}function St(e,t){return t&&e.modelMappers[t]&&e.modelMappers[t].type.polymorphicDiscriminator}const wt=function(){const e={};for(const t of["Base64Url","Boolean","ByteArray","Composite","Date","DateTime","DateTimeRfc1123","Dictionary","Enum","Number","Object","Sequence","String","Stream","TimeSpan","UnixTime"])e[t]=t;return e}();class Ct{constructor(e,t,r,a,i,n,s,o,l,m,c,d,p,u,h){this.streamResponseBody=n,this.streamResponseStatusCodes=h,this.url=e||"",this.method=t||"GET",this.headers=We(i)?i:new Xe(i),this.body=r,this.query=a,this.formData=void 0,this.withCredentials=s||!1,this.abortSignal=o,this.timeout=l||0,this.onUploadProgress=m,this.onDownloadProgress=c,this.proxySettings=d,this.keepAlive=p,this.decompressResponse=u,this.requestId=this.headers.get("x-ms-client-request-id")||pt()}validateRequestProperties(){if(!this.method)throw new Error("WebResource.method is required.");if(!this.url)throw new Error("WebResource.url is required.")}prepare(e){if(!e)throw new Error("options object is required");if(null==e.method||"string"!=typeof e.method.valueOf())throw new Error("options.method must be a string.");if(e.url&&e.pathTemplate)throw new Error("options.url and options.pathTemplate are mutually exclusive. Please provide exactly one of them.");if(!(null!=e.pathTemplate&&"string"==typeof e.pathTemplate.valueOf()||null!=e.url&&"string"==typeof e.url.valueOf()))throw new Error("Please provide exactly one of options.pathTemplate or options.url.");if(e.url){if("string"!=typeof e.url)throw new Error('options.url must be of type "string".');this.url=e.url}if(e.method){const t=["GET","PUT","HEAD","DELETE","OPTIONS","POST","PATCH","TRACE"];if(-1===t.indexOf(e.method.toUpperCase()))throw new Error('The provided method "'+e.method+'" is invalid. Supported HTTP methods are: '+JSON.stringify(t))}if(this.method=e.method.toUpperCase(),e.pathTemplate){const{pathTemplate:t,pathParameters:r}=e;if("string"!=typeof t)throw new Error('options.pathTemplate must be of type "string".');e.baseUrl||(e.baseUrl="https://management.azure.com");const a=e.baseUrl;let i=a+(a.endsWith("/")?"":"/")+(t.startsWith("/")?t.slice(1):t);const n=i.match(/({[\w-]*\s*[\w-]*})/gi);if(n&&n.length){if(!r)throw new Error(`pathTemplate: ${t} has been provided. Hence, options.pathParameters must also be provided.`);n.forEach((function(e){const a=e.slice(1,-1),n=r[a];if(null==n||"string"!=typeof n&&"object"!=typeof n){const e=JSON.stringify(r,void 0,2);throw new Error(`pathTemplate: ${t} contains the path parameter ${a} however, it is not present in parameters: ${e}.The value of the path parameter can either be a "string" of the form { ${a}: "some sample value" } or it can be an "object" of the form { "${a}": { value: "some sample value", skipUrlEncoding: true } }.`)}if("string"==typeof n.valueOf()&&(i=i.replace(e,encodeURIComponent(n))),"object"==typeof n.valueOf()){if(!n.value)throw new Error(`options.pathParameters[${a}] is of type "object" but it does not contain a "value" property.`);i=i.replace(e,n.skipUrlEncoding?n.value:encodeURIComponent(n.value))}}))}this.url=i}if(e.queryParameters){const t=e.queryParameters;if("object"!=typeof t)throw new Error('options.queryParameters must be of type object. It should be a JSON object of "query-parameter-name" as the key and the "query-parameter-value" as the value. The "query-parameter-value" may be fo type "string" or an "object" of the form { value: "query-parameter-value", skipUrlEncoding: true }.');this.url&&-1===this.url.indexOf("?")&&(this.url+="?");const r=[];this.query={};for(const e in t){const a=t[e];if(a)if("string"==typeof a)r.push(e+"="+encodeURIComponent(a)),this.query[e]=encodeURIComponent(a);else if("object"==typeof a){if(!a.value)throw new Error(`options.queryParameters[${e}] is of type "object" but it does not contain a "value" property.`);a.skipUrlEncoding?(r.push(e+"="+a.value),this.query[e]=a.value):(r.push(e+"="+encodeURIComponent(a.value)),this.query[e]=encodeURIComponent(a.value))}}this.url+=r.join("&")}if(e.headers){const t=e.headers;for(const r of Object.keys(e.headers))this.headers.set(r,t[r])}return this.headers.get("accept-language")||this.headers.set("accept-language","en-US"),this.headers.get("x-ms-client-request-id")||e.disableClientRequestId||this.headers.set("x-ms-client-request-id",this.requestId),this.headers.get("Content-Type")||this.headers.set("Content-Type","application/json; charset=utf-8"),this.body=e.body,null!=e.body&&(e.bodyIsStream?(this.headers.get("Transfer-Encoding")||this.headers.set("Transfer-Encoding","chunked"),"application/octet-stream"!==this.headers.get("Content-Type")&&this.headers.set("Content-Type","application/octet-stream")):(e.serializationMapper&&(this.body=new ft(e.mappers).serialize(e.serializationMapper,e.body,"requestBody")),e.disableJsonStringifyOnBody||(this.body=JSON.stringify(e.body)))),e.spanOptions&&(this.spanOptions=e.spanOptions),e.tracingContext&&(this.tracingContext=e.tracingContext),this.abortSignal=e.abortSignal,this.onDownloadProgress=e.onDownloadProgress,this.onUploadProgress=e.onUploadProgress,this}clone(){const e=new Ct(this.url,this.method,this.body,this.query,this.headers&&this.headers.clone(),this.streamResponseBody,this.withCredentials,this.abortSignal,this.timeout,this.onUploadProgress,this.onDownloadProgress,this.proxySettings,this.keepAlive,this.decompressResponse,this.streamResponseStatusCodes);return this.formData&&(e.formData=this.formData),this.operationSpec&&(e.operationSpec=this.operationSpec),this.shouldDeserialize&&(e.shouldDeserialize=this.shouldDeserialize),this.operationResponseGetter&&(e.operationResponseGetter=this.operationResponseGetter),e}}
|
|
1
|
+
import{g as e,f as t,r,c as a,h as i,H as n,a as s,d as o,F as l}from"./p-17f25f95.js";const m=e=>!("isConnected"in e)||e.isConnected,c=(()=>{let e;return(...t)=>{e&&clearTimeout(e),e=setTimeout((()=>{e=0,(e=>{for(let t of e.keys())e.set(t,e.get(t).filter(m))})(...t)}),2e3)}})(),d=(r,a)=>{const i=((e,t=((e,t)=>e!==t))=>{let r=new Map(Object.entries(null!=e?e:{}));const a={dispose:[],get:[],set:[],reset:[]},i=()=>{r=new Map(Object.entries(null!=e?e:{})),a.reset.forEach((e=>e()))},n=e=>(a.get.forEach((t=>t(e))),r.get(e)),s=(e,i)=>{const n=r.get(e);t(i,n,e)&&(r.set(e,i),a.set.forEach((t=>t(e,i,n))))},o="undefined"==typeof Proxy?{}:new Proxy(e,{get:(e,t)=>n(t),ownKeys:()=>Array.from(r.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(e,t)=>r.has(t),set:(e,t,r)=>(s(t,r),!0)}),l=(e,t)=>(a[e].push(t),()=>{((e,t)=>{const r=e.indexOf(t);r>=0&&(e[r]=e[e.length-1],e.length--)})(a[e],t)});return{state:o,get:n,set:s,on:l,onChange:(t,r)=>{const a=l("set",((e,a)=>{e===t&&r(a)})),i=l("reset",(()=>r(e[t])));return()=>{a(),i()}},use:(...e)=>e.forEach((e=>{e.set&&l("set",e.set),e.get&&l("get",e.get),e.reset&&l("reset",e.reset)})),dispose:()=>{a.dispose.forEach((e=>e())),i()},reset:i,forceUpdate:e=>{const t=r.get(e);a.set.forEach((r=>r(e,t,t)))}}})(r,a);return(({on:r})=>{const a=new Map;"function"==typeof e&&(r("dispose",(()=>{a.clear()})),r("get",(t=>{const r=e();r&&((e,t,r)=>{const a=e.get(t);a?a.includes(r)||a.push(r):e.set(t,[r])})(a,t,r)})),r("set",(e=>{const r=a.get(e);r&&a.set(e,r.filter(t)),c(a)})),r("reset",(()=>{a.forEach((e=>e.forEach(t))),c(a)})))})(i),i};function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){u(e,t,r[t])}))}return e}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function g(e,t,r){return t&&y(e.prototype,t),r&&y(e,r),e}var x,b="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function N(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function v(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(r){var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})})),t}const z=N((function(e){function t(r){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(r)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}(x={path:undefined,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}}),x.exports));function S(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e,t){return!t||"object"!==z(t)&&"function"!=typeof t?S(e):t}function C(e){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function P(e,t){return(P=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function k(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&P(e,t)}var B={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},E=new(function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};f(this,e),this.init(t,r)}return g(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||B,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,r,a){return a&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(r).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,h({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),q=function(){function e(){f(this,e),this.observers={}}return g(e,[{key:"on",value:function(e,t){var r=this;return e.split(" ").forEach((function(e){r.observers[e]=r.observers[e]||[],r.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];if(this.observers[e]){var i=[].concat(this.observers[e]);i.forEach((function(e){e.apply(void 0,r)}))}if(this.observers["*"]){var n=[].concat(this.observers["*"]);n.forEach((function(t){t.apply(t,[e].concat(r))}))}}}]),e}();function R(){var e,t,r=new Promise((function(r,a){e=r,t=a}));return r.resolve=e,r.reject=t,r}function M(e){return null==e?"":""+e}function T(e,t,r){e.forEach((function(e){t[e]&&(r[e]=t[e])}))}function A(e,t,r){function a(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function i(){return!e||"string"==typeof e}for(var n="string"!=typeof t?[].concat(t):t.split(".");n.length>1;){if(i())return{};var s=a(n.shift());!e[s]&&r&&(e[s]=new r),e=Object.prototype.hasOwnProperty.call(e,s)?e[s]:{}}return i()?{}:{obj:e,k:a(n.shift())}}function H(e,t,r){var a=A(e,t,Object);a.obj[a.k]=r}function O(e,t){var r=A(e,t),a=r.obj;if(a)return a[r.k]}function I(e,t,r){var a=O(e,r);return void 0!==a?a:O(t,r)}function D(e,t,r){for(var a in t)"__proto__"!==a&&"constructor"!==a&&(a in e?"string"==typeof e[a]||e[a]instanceof String||"string"==typeof t[a]||t[a]instanceof String?r&&(e[a]=t[a]):D(e[a],t[a],r):e[a]=t[a]);return e}function L(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var j={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function _(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return j[e]})):e}var U="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,$=[" ",",","?","!",";"];function F(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var a=t.split(r),i=e,n=0;n<a.length;++n){if(!i)return;if("string"==typeof i[a[n]]&&n+1<a.length)return;if(void 0===i[a[n]]){for(var s=2,o=a.slice(n,n+s).join(r),l=i[o];void 0===l&&a.length>n+s;)s++,l=i[o=a.slice(n,n+s).join(r)];if(void 0===l)return;if("string"==typeof l)return l;if(o&&"string"==typeof l[o])return l[o];var m=a.slice(n+s).join(r);return m?F(l,m,r):void 0}i=i[a[n]]}return i}}var V=function(){function e(t){var r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return f(this,e),r=w(this,C(e).call(this)),U&&q.call(S(r)),r.data=t||{},r.options=a,void 0===r.options.keySeparator&&(r.options.keySeparator="."),void 0===r.options.ignoreJSONStructure&&(r.options.ignoreJSONStructure=!0),r}return k(e,q),g(e,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,r){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=void 0!==a.keySeparator?a.keySeparator:this.options.keySeparator,n=void 0!==a.ignoreJSONStructure?a.ignoreJSONStructure:this.options.ignoreJSONStructure,s=[e,t];r&&"string"!=typeof r&&(s=s.concat(r)),r&&"string"==typeof r&&(s=s.concat(i?r.split(i):r)),e.indexOf(".")>-1&&(s=e.split("."));var o=O(this.data,s);return o||!n||"string"!=typeof r?o:F(this.data&&this.data[e]&&this.data[e][t],r,i)}},{key:"addResource",value:function(e,t,r,a){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},n=this.options.keySeparator;void 0===n&&(n=".");var s=[e,t];r&&(s=s.concat(n?r.split(n):r)),e.indexOf(".")>-1&&(a=t,t=(s=e.split("."))[1]),this.addNamespaces(t),H(this.data,s,a),i.silent||this.emit("added",e,t,r,a)}},{key:"addResources",value:function(e,t,r){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var i in r)"string"!=typeof r[i]&&"[object Array]"!==Object.prototype.toString.apply(r[i])||this.addResource(e,t,i,r[i],{silent:!0});a.silent||this.emit("added",e,t,r)}},{key:"addResourceBundle",value:function(e,t,r,a,i){var n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},s=[e,t];e.indexOf(".")>-1&&(a=r,r=t,t=(s=e.split("."))[1]),this.addNamespaces(t);var o=O(this.data,s)||{};a?D(o,r,i):o=h({},o,r),H(this.data,s,o),n.silent||this.emit("added",e,t,r)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?h({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((function(e){return t[e]&&Object.keys(t[e]).length>0}))}},{key:"toJSON",value:function(){return this.data}}]),e}(),G={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,a,i){var n=this;return e.forEach((function(e){n.processors[e]&&(t=n.processors[e].process(t,r,a,i))})),t}},K={},W=function(){function e(t){var r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return f(this,e),r=w(this,C(e).call(this)),U&&q.call(S(r)),T(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,S(r)),r.options=a,void 0===r.options.keySeparator&&(r.options.keySeparator="."),r.logger=E.create("translator"),r}return k(e,q),g(e,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var r=this.resolve(e,t);return r&&void 0!==r.res}},{key:"extractFromKey",value:function(e,t){var r=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");var a=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,i=t.ns||this.options.defaultNS,n=r&&e.indexOf(r)>-1,s=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!function(e,t,r){t=t||"",r=r||"";var a=$.filter((function(e){return t.indexOf(e)<0&&r.indexOf(e)<0}));if(0===a.length)return!0;var i=new RegExp("(".concat(a.map((function(e){return"?"===e?"\\?":e})).join("|"),")")),n=!i.test(e);if(!n){var s=e.indexOf(r);s>0&&!i.test(e.substring(0,s))&&(n=!0)}return n}(e,r,a);if(n&&!s){var o=e.match(this.interpolator.nestingRegexp);if(o&&o.length>0)return{key:e,namespaces:i};var l=e.split(r);(r!==a||r===a&&this.options.ns.indexOf(l[0])>-1)&&(i=l.shift()),e=l.join(a)}return"string"==typeof i&&(i=[i]),{key:e,namespaces:i}}},{key:"translate",value:function(t,r,a){var i=this;if("object"!==p(r)&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r||(r={}),null==t)return"";Array.isArray(t)||(t=[String(t)]);var n=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,s=this.extractFromKey(t[t.length-1],r),o=s.key,l=s.namespaces,m=l[l.length-1],c=r.lng||this.language,d=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&"cimode"===c.toLowerCase()){if(d){var u=r.nsSeparator||this.options.nsSeparator;return m+u+o}return o}var f=this.resolve(t,r),y=f&&f.res,g=f&&f.usedKey||o,x=f&&f.exactUsedKey||o,b=Object.prototype.toString.apply(y),N=["[object Number]","[object Function]","[object RegExp]"],v=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,z=!this.i18nFormat||this.i18nFormat.handleAsObject,S="string"!=typeof y&&"boolean"!=typeof y&&"number"!=typeof y;if(z&&y&&S&&N.indexOf(b)<0&&("string"!=typeof v||"[object Array]"!==b)){if(!r.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,y,h({},r,{ns:l})):"key '".concat(o," (").concat(this.language,")' returned an object instead of string.");if(n){var w="[object Array]"===b,C=w?[]:{},P=w?x:g;for(var k in y)if(Object.prototype.hasOwnProperty.call(y,k)){var B="".concat(P).concat(n).concat(k);C[k]=this.translate(B,h({},r,{joinArrays:!1,ns:l})),C[k]===B&&(C[k]=y[k])}y=C}}else if(z&&"string"==typeof v&&"[object Array]"===b)(y=y.join(v))&&(y=this.extendTranslation(y,t,r,a));else{var E=!1,q=!1,R=void 0!==r.count&&"string"!=typeof r.count,M=e.hasDefaultValue(r),T=R?this.pluralResolver.getSuffix(c,r.count,r):"",A=r["defaultValue".concat(T)]||r.defaultValue;!this.isValidLookup(y)&&M&&(E=!0,y=A),this.isValidLookup(y)||(q=!0,y=o);var H=r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,O=H&&q?void 0:y,I=M&&A!==y&&this.options.updateMissing;if(q||E||I){if(this.logger.log(I?"updateKey":"missingKey",c,m,o,I?A:y),n){var D=this.resolve(o,h({},r,{keySeparator:!1}));D&&D.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 L=[],j=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if("fallback"===this.options.saveMissingTo&&j&&j[0])for(var _=0;_<j.length;_++)L.push(j[_]);else"all"===this.options.saveMissingTo?L=this.languageUtils.toResolveHierarchy(r.lng||this.language):L.push(r.lng||this.language);var U=function(e,t,a){i.options.missingKeyHandler?i.options.missingKeyHandler(e,m,t,I?a:O,I,r):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,m,t,I?a:O,I,r),i.emit("missingKey",e,m,t,y)};this.options.saveMissing&&(this.options.saveMissingPlurals&&R?L.forEach((function(e){i.pluralResolver.getSuffixes(e).forEach((function(t){U([e],o+t,r["defaultValue".concat(t)]||A)}))})):U(L,o,A))}y=this.extendTranslation(y,t,r,f,a),q&&y===o&&this.options.appendNamespaceToMissingKey&&(y="".concat(m,":").concat(o)),(q||E)&&this.options.parseMissingKeyHandler&&(y=this.options.parseMissingKeyHandler(y))}return y}},{key:"extendTranslation",value:function(e,t,r,a,i){var n=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,r,a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(h({},r,{interpolation:h({},this.options.interpolation,r.interpolation)}));var s,o=r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(o){var l=e.match(this.interpolator.nestingRegexp);s=l&&l.length}var m=r.replace&&"string"!=typeof r.replace?r.replace:r;if(this.options.interpolation.defaultVariables&&(m=h({},this.options.interpolation.defaultVariables,m)),e=this.interpolator.interpolate(e,m,r.lng||this.language,r),o){var c=e.match(this.interpolator.nestingRegexp);s<(c&&c.length)&&(r.nest=!1)}!1!==r.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,a=new Array(e),s=0;s<e;s++)a[s]=arguments[s];return i&&i[0]===a[0]&&!r.context?(n.logger.warn("It seems you are nesting recursively key: ".concat(a[0]," in key: ").concat(t[0])),null):n.translate.apply(n,a.concat([t]))}),r)),r.interpolation&&this.interpolator.reset()}var d=r.postProcess||this.options.postProcess,p="string"==typeof d?[d]:d;return null!=e&&p&&p.length&&!1!==r.applyPostProcessor&&(e=G.handle(p,e,t,this.options&&this.options.postProcessPassResolved?h({i18nResolved:a},r):r,this)),e}},{key:"resolve",value:function(e){var t,r,a,i,n,s=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!s.isValidLookup(t)){var l=s.extractFromKey(e,o),m=l.key;r=m;var c=l.namespaces;s.options.fallbackNS&&(c=c.concat(s.options.fallbackNS));var d=void 0!==o.count&&"string"!=typeof o.count,p=void 0!==o.context&&("string"==typeof o.context||"number"==typeof o.context)&&""!==o.context,u=o.lngs?o.lngs:s.languageUtils.toResolveHierarchy(o.lng||s.language,o.fallbackLng);c.forEach((function(e){s.isValidLookup(t)||(n=e,!K["".concat(u[0],"-").concat(e)]&&s.utils&&s.utils.hasLoadedNamespace&&!s.utils.hasLoadedNamespace(n)&&(K["".concat(u[0],"-").concat(e)]=!0,s.logger.warn('key "'.concat(r,'" for languages "').concat(u.join(", "),'" won\'t get resolved as namespace "').concat(n,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),u.forEach((function(r){if(!s.isValidLookup(t)){i=r;var n,l,c=m,u=[c];for(s.i18nFormat&&s.i18nFormat.addLookupKeys?s.i18nFormat.addLookupKeys(u,m,r,e,o):(d&&(n=s.pluralResolver.getSuffix(r,o.count,o)),d&&p&&u.push(c+n),p&&u.push(c+="".concat(s.options.contextSeparator).concat(o.context)),d&&u.push(c+=n));l=u.pop();)s.isValidLookup(t)||(a=l,t=s.getResource(r,e,l,o))}})))}))}})),{res:t,usedKey:r,exactUsedKey:a,usedLng:i,usedNS:n}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,r){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,a):this.resourceStore.getResource(e,t,r,a)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t===r.substring(0,t.length)&&void 0!==e[r])return!0;return!1}}]),e}();function X(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Q=function(){function e(t){f(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=E.create("languageUtils")}return g(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],r=e.split("-");return this.options.lowerCaseLng?r=r.map((function(e){return e.toLowerCase()})):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=X(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=X(r[1].toLowerCase())),t.indexOf(r[2].toLowerCase())>-1&&(r[2]=X(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,r=this;return e?(e.forEach((function(e){if(!t){var a=r.formatLanguageCode(e);r.options.supportedLngs&&!r.isSupportedCode(a)||(t=a)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var a=r.getLanguagePartFromCode(e);if(r.isSupportedCode(a))return t=a;t=r.options.supportedLngs.find((function(e){if(0===e.indexOf(a))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var r=e[t];return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}},{key:"toResolveHierarchy",value:function(e,t){var r=this,a=this.getFallbackCodes(t||this.options.fallbackLng||[],e),i=[],n=function(e){e&&(r.isSupportedCode(e)?i.push(e):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&n(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&n(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&n(this.getLanguagePartFromCode(e))):"string"==typeof e&&n(this.formatLanguageCode(e)),a.forEach((function(e){i.indexOf(e)<0&&n(r.formatLanguageCode(e))})),i}}]),e}(),J=[{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}],Y={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},Z=["v1","v2","v3"],ee={zero:0,one:1,two:2,few:3,many:4,other:5};function te(){var e={};return J.forEach((function(t){t.lngs.forEach((function(r){e[r]={numbers:t.nr,plurals:Y[t.fc]}}))})),e}var re=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};f(this,e),this.languageUtils=t,this.options=r,this.logger=E.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Inlt API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=te()}return g(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,t);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,r).map((function(e){return"".concat(t).concat(e)}))}},{key:"getSuffixes",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=this.getRule(e,r);return a?this.shouldUseIntlApi()?a.resolvedOptions().pluralCategories.sort((function(e,t){return ee[e]-ee[t]})).map((function(e){return"".concat(t.options.prepend).concat(e)})):a.numbers.map((function(a){return t.getSuffix(e,a,r)})):[]}},{key:"getSuffix",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=this.getRule(e,r);return a?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(a.select(t)):this.getSuffixRetroCompatible(a,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var r=this,a=e.plurals(e.noAbs?t:Math.abs(t)),i=e.numbers[a];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var n=function(){return r.options.prepend&&i.toString()?r.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):n():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?n():this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString()}},{key:"shouldUseIntlApi",value:function(){return!Z.includes(this.options.compatibilityJSON)}}]),e}(),ae=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};f(this,e),this.logger=E.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return g(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:_,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?L(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?L(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?L(t.nestingPrefix):t.nestingPrefixEscaped||L("$t("),this.nestingSuffix=t.nestingSuffix?L(t.nestingSuffix):t.nestingSuffixEscaped||L(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function(e,t,r,a){var i,n,s,o=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function m(e){return e.replace(/\$/g,"$$$$")}var c=function(e){if(e.indexOf(o.formatSeparator)<0){var i=I(t,l,e);return o.alwaysFormat?o.format(i,void 0,r,h({},a,t,{interpolationkey:e})):i}var n=e.split(o.formatSeparator),s=n.shift().trim(),m=n.join(o.formatSeparator).trim();return o.format(I(t,l,s),m,r,h({},a,t,{interpolationkey:s}))};this.resetRegExp();var d=a&&a.missingInterpolationHandler||this.options.missingInterpolationHandler,p=a&&a.interpolation&&a.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return m(e)}},{regex:this.regexp,safeValue:function(e){return m(o.escapeValue?o.escape(e):e)}}].forEach((function(t){for(s=0;i=t.regex.exec(e);){if(void 0===(n=c(i[1].trim())))if("function"==typeof d){var r=d(e,i,a);n="string"==typeof r?r:""}else{if(p){n=i[0];continue}o.logger.warn("missed to pass in variable ".concat(i[1]," for interpolating ").concat(e)),n=""}else"string"==typeof n||o.useRawValueToEscape||(n=M(n));var l=t.safeValue(n);if(e=e.replace(i[0],l),p?(t.regex.lastIndex+=l.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,++s>=o.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var r,a,i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=h({},n);function o(e,t){var r=this.nestingOptionsSeparator;if(e.indexOf(r)<0)return e;var a=e.split(new RegExp("".concat(r,"[ ]*{"))),i="{".concat(a[1]);e=a[0],i=(i=this.interpolate(i,s)).replace(/'/g,'"');try{s=JSON.parse(i),t&&(s=h({},t,s))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(r).concat(i)}return delete s.defaultValue,e}for(s.applyPostProcessor=!1,delete s.defaultValue;r=this.nestingRegexp.exec(e);){var l=[],m=!1;if(-1!==r[0].indexOf(this.formatSeparator)&&!/{.*}/.test(r[1])){var c=r[1].split(this.formatSeparator).map((function(e){return e.trim()}));r[1]=c.shift(),l=c,m=!0}if((a=t(o.call(this,r[1].trim(),s),s))&&r[0]===e&&"string"!=typeof a)return a;"string"!=typeof a&&(a=M(a)),a||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(e)),a=""),m&&(a=l.reduce((function(e,t){return i.format(e,t,n.lng,h({},n,{interpolationkey:r[1].trim()}))}),a.trim())),e=e.replace(r[0],a),this.regexp.lastIndex=0}return e}}]),e}(),ie=function(){function e(t,r,a){var i,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return f(this,e),i=w(this,C(e).call(this)),U&&q.call(S(i)),i.backend=t,i.store=r,i.services=a,i.languageUtils=a.languageUtils,i.options=n,i.logger=E.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(a,n.backend,n),i}return k(e,q),g(e,[{key:"queueLoad",value:function(e,t,r,a){var i=this,n=[],s=[],o=[],l=[];return e.forEach((function(e){var a=!0;t.forEach((function(t){var o="".concat(e,"|").concat(t);!r.reload&&i.store.hasResourceBundle(e,t)?i.state[o]=2:i.state[o]<0||(1===i.state[o]?s.indexOf(o)<0&&s.push(o):(i.state[o]=1,a=!1,s.indexOf(o)<0&&s.push(o),n.indexOf(o)<0&&n.push(o),l.indexOf(t)<0&&l.push(t)))})),a||o.push(e)})),(n.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:a}),{toLoad:n,pending:s,toLoadLanguages:o,toLoadNamespaces:l}}},{key:"loaded",value:function(e,t,r){var a=e.split("|"),i=a[0],n=a[1];t&&this.emit("failedLoading",i,n,t),r&&this.store.addResourceBundle(i,n,r),this.state[e]=t?-1:2;var s={};this.queue.forEach((function(r){var a,o,l,m;a=n,(l=(o=A(r.loaded,[i],Object)).obj)[m=o.k]=l[m]||[],l[m].push(a),function(e,t){for(var r=e.indexOf(t);-1!==r;)e.splice(r,1),r=e.indexOf(t)}(r.pending,e),t&&r.errors.push(t),0!==r.pending.length||r.done||(Object.keys(r.loaded).forEach((function(e){s[e]||(s[e]=[]),r.loaded[e].length&&r.loaded[e].forEach((function(t){s[e].indexOf(t)<0&&s[e].push(t)}))})),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())})),this.emit("loaded",s),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,r){var a=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,s=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[r](e,t,(function(o,l){o&&l&&i<5?setTimeout((function(){a.read.call(a,e,t,r,i+1,2*n,s)}),n):s(o,l)})):s(null,{})}},{key:"prepareLoading",value:function(e,t){var r=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=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."),i&&i();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var n=this.queueLoad(e,t,a,i);if(!n.toLoad.length)return n.pending.length||i(),null;n.toLoad.forEach((function(e){r.loadOne(e)}))}},{key:"load",value:function(e,t,r){this.prepareLoading(e,t,{},r)}},{key:"reload",value:function(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}},{key:"loadOne",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=e.split("|"),i=a[0],n=a[1];this.read(i,n,"read",void 0,void 0,(function(a,s){a&&t.logger.warn("".concat(r,"loading namespace ").concat(n," for language ").concat(i," failed"),a),!a&&s&&t.logger.log("".concat(r,"loaded namespace ").concat(n," for language ").concat(i),s),t.loaded(e,a,s)}))}},{key:"saveMissing",value:function(e,t,r,a,i){var n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(r,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=r&&""!==r&&(this.backend&&this.backend.create&&this.backend.create(e,t,r,a,null,h({},n,{isUpdate:i})),e&&e[0]&&this.store.addResource(e[0],t,r,a))}}]),e}();function ne(){return{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(e){var t={};if("object"===p(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===p(e[2])||"object"===p(e[3])){var r=e[3]||e[2];Object.keys(r).forEach((function(e){t[e]=r[e]}))}return t},interpolation:{escapeValue:!0,format:function(e){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function se(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function oe(){}var le=new(function(){function e(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;if(f(this,e),t=w(this,C(e).call(this)),U&&q.call(S(t)),t.options=se(r),t.services={},t.logger=E,t.modules={external:[]},a&&!t.isInitialized&&!r.isClone){if(!t.options.initImmediate)return t.init(r,a),w(t,S(t));setTimeout((function(){t.init(r,a)}),0)}return t}return k(e,q),g(e,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;function a(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(r=t,t={}),!t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0])),this.options=h({},ne(),this.options,se(t)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),this.format=this.options.interpolation.format,r||(r=oe),!this.options.isClone){E.init(this.modules.logger?a(this.modules.logger):null,this.options);var i=new Q(this.options);this.store=new V(this.options.resources,this.options);var n=this.services;n.logger=E,n.resourceStore=this.store,n.languageUtils=i,n.pluralResolver=new re(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),n.interpolator=new ae(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new ie(a(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on("*",(function(t){for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];e.emit.apply(e,[t].concat(a))})),this.modules.languageDetector&&(n.languageDetector=a(this.modules.languageDetector),n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=a(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new W(this.services,this.options),this.translator.on("*",(function(t){for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];e.emit.apply(e,[t].concat(a))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.length>0&&"dev"!==s[0]&&(this.options.lng=s[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var o=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];o.forEach((function(t){e[t]=function(){var r;return(r=e.store)[t].apply(r,arguments)}}));var l=["addResource","addResources","addResourceBundle","removeResourceBundle"];l.forEach((function(t){e[t]=function(){var r;return(r=e.store)[t].apply(r,arguments),e}}));var m=R(),c=function(){var t=function(t,a){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),m.resolve(a),r(t,a)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),m}},{key:"loadResources",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:oe,a=r,i="string"==typeof e?e:this.language;if("function"==typeof e&&(a=e),!this.options.resources||this.options.partialBundledLanguages){if(i&&"cimode"===i.toLowerCase())return a();var n=[],s=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){n.indexOf(e)<0&&n.push(e)}))};if(i)s(i);else{var o=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);o.forEach((function(e){return s(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return s(e)})),this.services.backendConnector.load(n,this.options.ns,a)}else a(null)}},{key:"reloadResources",value:function(e,t,r){var a=R();return e||(e=this.languages),t||(t=this.options.ns),r||(r=oe),this.services.backendConnector.reload(e,t,(function(e){a.resolve(),r(e)})),a}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&G.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var r=this;this.isLanguageChangingTo=e;var a=R();this.emit("languageChanging",e);var i=function(e){if(r.language=e,r.languages=r.services.languageUtils.toResolveHierarchy(e),r.resolvedLanguage=void 0,!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t<r.languages.length;t++){var a=r.languages[t];if(!(["cimode","dev"].indexOf(a)>-1)&&r.store.hasLanguageSomeTranslations(a)){r.resolvedLanguage=a;break}}},n=function(n){e||n||!r.services.languageDetector||(n=[]);var s="string"==typeof n?n:r.services.languageUtils.getBestMatchFromCodes(n);s&&(r.language||i(s),r.translator.language||r.translator.changeLanguage(s),r.services.languageDetector&&r.services.languageDetector.cacheUserLanguage(s)),r.loadResources(s,(function(e){!function(e,n){n?(i(n),r.translator.changeLanguage(n),r.isLanguageChangingTo=void 0,r.emit("languageChanged",n),r.logger.log("languageChanged",n)):r.isLanguageChangingTo=void 0,a.resolve((function(){return r.t.apply(r,arguments)})),t&&t(e,(function(){return r.t.apply(r,arguments)}))}(e,s)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(n):n(e):n(this.services.languageDetector.detect()),a}},{key:"getFixedT",value:function(e,t,r){var a=this,i=function e(t,i){var n;if("object"!==p(i)){for(var s=arguments.length,o=new Array(s>2?s-2:0),l=2;l<s;l++)o[l-2]=arguments[l];n=a.options.overloadTranslationOptionHandler([t,i].concat(o))}else n=h({},i);n.lng=n.lng||e.lng,n.lngs=n.lngs||e.lngs,n.ns=n.ns||e.ns;var m=a.options.keySeparator||".",c=r?"".concat(r).concat(m).concat(t):t;return a.t(c,n)};return"string"==typeof e?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=r,i}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var a=this.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,n=this.languages[this.languages.length-1];if("cimode"===a.toLowerCase())return!0;var s=function(e,r){var a=t.services.backendConnector.state["".concat(e,"|").concat(r)];return-1===a||2===a};if(r.precheck){var o=r.precheck(this,s);if(void 0!==o)return o}return!!this.hasResourceBundle(a,e)||!this.services.backendConnector.backend||!(!s(a,e)||i&&!s(n,e))}},{key:"loadNamespaces",value:function(e,t){var r=this,a=R();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)})),this.loadResources((function(e){a.resolve(),t&&t(e)})),a):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var r=R();"string"==typeof e&&(e=[e]);var a=this.options.preload||[],i=e.filter((function(e){return a.indexOf(e)<0}));return i.length?(this.options.preload=a.concat(i),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),e?["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(e))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new e(t,r)}},{key:"cloneInstance",value:function(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:oe,i=h({},this.options,r,{isClone:!0}),n=new e(i),s=["store","services","language"];return s.forEach((function(e){n[e]=t[e]})),n.services=h({},this.services),n.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},n.translator=new W(n.services,n.options),n.translator.on("*",(function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];n.emit.apply(n,[e].concat(r))})),n.init(i,a),n.translator.options=n.options,n.translator.backendConnector.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},n}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),e}());const me={login_dialog:{heading:"Drucke mit ezeep Blue",description:"Melde dich mit deinem ezeep Blue-Konto an, um zu drucken.",action:"Anmelden"},no_document_dialog:{heading:"Keine Datei ausgewählt",description:"Wähle zunächst eine Datei zum Drucken aus.",action:"OK"},printer_selection:{loading:"Lade meine Drucker…",print:"Drucken",printer:"Drucker",print_processing:"Drucken…",print_success:"Erfolgreich gedruckt.",print_failed:"Druck fehlgeschlagen",not_supported:"Der ausgewählte Dateityp wird nicht unterstützt.",color:"Farbe",orientation:"Ausrichtung",size:"Papierformat",duplex:"Beidseitig",quality:"Druckqualität",select_printer:"Wähle einen Drucker",select_color:"Wähle Farbe/Graustufen",select_size:"Wähle Papierformat",select_orientation:"Wähle Ausrichtung",select_quality:"Wähle Druckqualität",select_duplex:"Wähle Beidseitig",color_color:"Farbe",color_grayscale:"Graustufen",orientation_portrait:"Hochformat",orientation_landscape:"Querformat",unknown_location:"Unbekannter Standort",no_printers:"Keine Drucker gefunden.",prepare_upload:"Vorbereiten…",uploading:"Hochladen…",duplex_none:"Keine",copies:"Kopien",duplex_long:"auf der langen Seite umdrehen",duplex_short:"auf der kurzen Seite umdrehen",pull_print_success:"Bereit zum Auslösen."},button_actions:{login:"Anmelden",print:"Drucken",cancel:"Abbrechen",close:"Schließen",retry:"Wiederholen",select_printer:"Wähle Drucker"},upload:{description:"Ziehe eine Datei hier in den Browser ",meta_leading:"oder",meta_select:"wähle eine Datei aus",meta_trailing:"um mit ezeep Blue zu drucken.",selected_file:"Ausgewählte Datei:"},user_menu:{theme:"Farbschema",appearance:"Darstellung",system:"System",light:"Hell",dark:"Dunkel",account:"Konto verwalten",help:"Hilfe & Unterstützung",logout:"Ausloggen"}},ce={login_dialog:{heading:"Print with ezeep Blue",description:"Sign in with your ezeep Blue account to print.",action:"Sign in"},no_document_dialog:{heading:"No file selected",description:"Select a file first to print.",action:"OK"},printer_selection:{loading:"Loading My Printers…",print_processing:"Printing…",print_success:"Successfully printed.",pull_print_success:"Ready to be released.",print_failed:"Print failed",not_supported:"The selected file type is not supported.",prepare_upload:"Preparing…",uploading:"Uploading…",print:"Print",printer:"Printer",color:"Color",orientation:"Orientation",size:"Paper Size",duplex:"Double-sided",duplex_none:"None",duplex_long:"flip on long side",duplex_short:"flip on short side",quality:"Print Quality",select_printer:"Select a printer",select_color:"Select Color/Grayscale",select_orientation:"Select Orientation",select_size:"Select Paper Size",select_quality:"Select Print Quality",select_duplex:"Select Double-sided",color_color:"Color",color_grayscale:"Grayscale",orientation_portrait:"Portrait",orientation_landscape:"Landscape",unknown_location:"Unknown location",no_printers:"No printers found.",copies:"Copies"},button_actions:{login:"Sign In",print:"Print",cancel:"Cancel",close:"Close",retry:"Retry",select_printer:"Select Printer"},upload:{description:"Drop a file here into the browser ",meta_leading:"or",meta_select:"select a file",meta_trailing:"to print with ezeep Blue.",selected_file:"Selected File:"},user_menu:{theme:"Color theme",appearance:"Appearance",system:"System",light:"Light",dark:"Dark",account:"Manage Account",help:"Help & Support",logout:"Logout"}};function de(e){return Object.keys(e).map((t=>encodeURIComponent(t)+"="+encodeURIComponent(e[t]))).join("&")}const pe=async({fn:e,validate:t,interval:r,maxAttempts:a})=>{let i=0;const n=async(s,o)=>{const l=await e();return i++,t(l)?s(l):a&&i===a?o(new Error("Exceeded max attempts.")):void setTimeout(n,r,s,o)};return new Promise(n)};class ue{constructor(e,t){this.urlParams=new URLSearchParams,this.isAuthorized=!1,this.redirectURI=e,this.clientID=t,this.oauthUrl=he.state.authApiHostUrl,this.authURI=new URL(`https://${this.oauthUrl}/oauth/authorize/`),this.accessTokenURL=`https://${this.oauthUrl}/oauth/access_token/`}generateCodeVerifier(){if(""!==he.state.codeVerifier)this.codeVerifier=he.state.codeVerifier;else{const e=new Uint8Array(128),t=crypto.getRandomValues(e),r=btoa(t.toString()).substr(0,128);this.codeVerifier=r,he.state.codeVerifier=this.codeVerifier}}async generateCodeChallenge(e){const t=(new TextEncoder).encode(e),r=await crypto.subtle.digest("SHA-256",t),a=btoa(String.fromCharCode.apply(null,new Uint8Array(r)));this.codeChallenge=a.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}buildAuthURI(){this.urlParams.append("response_type","code"),this.urlParams.append("client_id",this.clientID),this.urlParams.append("redirect_uri",this.redirectURI),this.urlParams.append("code_challenge",this.codeChallenge),this.urlParams.append("code_challenge_method","S256"),this.authURI.search=this.urlParams.toString(),he.state.authUri=this.authURI.toString()}getAccessToken(){return fetch(this.accessTokenURL,{credentials:"include",headers:{Authorization:"Basic "+btoa(this.clientID+":"),"Content-Type":"application/x-www-form-urlencoded"},method:"POST",body:de({grant_type:"authorization_code",scope:"printing",code:he.state.code,redirect_uri:this.redirectURI,code_verifier:he.state.codeVerifier})}).then((e=>e.json())).then((e=>{e.access_token&&(he.state.isAuthorized=!0,this.isAuthorized=he.state.isAuthorized,localStorage.setItem("isAuthorized",this.isAuthorized.toString()),this.accessToken=e.access_token,localStorage.setItem("access_token",this.accessToken),he.state.accessToken=this.accessToken,this.refreshToken=e.refresh_token,localStorage.setItem("refreshToken",this.refreshToken),he.state.refreshToken=this.refreshToken)}))}refreshTokens(){fetch(this.accessTokenURL,{credentials:"include",headers:{Authorization:"Basic "+btoa(this.clientID+":"),"Content-Type":"application/x-www-form-urlencoded"},method:"POST",body:de({grant_type:"refresh_token",scope:"printing",refresh_token:he.state.refreshToken})}).then((e=>e.json())).then((e=>{e.access_token&&(this.accessToken=e.access_token,localStorage.setItem("access_token",this.accessToken),he.state.accessToken=this.accessToken,this.refreshToken=e.refresh_token,localStorage.setItem("refreshToken",this.refreshToken),he.state.refreshToken=this.refreshToken,he.state.isAuthorized=!0)}))}}const he=d({code:"",codeVerifier:"",accessToken:"",refreshToken:"",isAuthorized:!1,devApi:!1,authApiHostUrl:"",redirectUri:"",authUri:""});let fe=class{constructor(e){r(this,e),this.authCancel=a(this,"authCancel",7),this.authSuccess=a(this,"authSuccess",7),this.oauthPopupWindow=null,this.previousUrl=null}listenDialogAction(){this.openSignInWindow(this.auth.authURI.toString(),"ezeep Login")}listenDialogClose(){this.authCancel.emit()}listenStatusCancel(){this.authCancel.emit()}openSignInWindow(e,t){if(he.state.isAuthorized)return this.authCancel.emit(),void this.authSuccess.emit();window.removeEventListener("message",this.receiveMessage);const r="toolbar=no, menubar=no, width=600, height=7000, top=100, left=100";null===this.oauthPopupWindow||this.oauthPopupWindow.closed?this.oauthPopupWindow=window.open(e,t,r):this.previousUrl!==this.auth.authURI.toString()?(this.oauthPopupWindow=window.open(e,t,r),this.oauthPopupWindow&&!this.oauthPopupWindow.closed&&void 0!==this.oauthPopupWindow.closed||alert("popup blocked"),this.oauthPopupWindow.focus()):this.oauthPopupWindow.focus(),window.addEventListener("message",(e=>this.receiveMessage(e)),!1),this.previousUrl=this.auth.authURI}receiveMessage(e){he.state.code=e.data,this.auth.getAccessToken().then((()=>{this.authCancel.emit(),this.authSuccess.emit()}))}async componentWillLoad(){this.auth=new ue(this.redirectURI,this.clientID),this.code&&(he.state.code=this.code,await this.auth.getAccessToken(),this.authCancel.emit(),this.authSuccess.emit()),!1===he.state.isAuthorized&&(this.auth.generateCodeVerifier(),await this.auth.generateCodeChallenge(he.state.codeVerifier),this.auth.buildAuthURI()),this.hidelogin&&"button"===this.trigger&&this.openSignInWindow(this.auth.authURI.toString(),"ezeep Login")}render(){return i(n,null,this.hidelogin&&"button"===this.trigger?i("ezp-status",{description:le.t("login_dialog.action"),processing:!0,cancel:!0}):this.hidelogin&&"file"===this.trigger?i("ezp-text-button",{type:"button",level:"primary",onClick:()=>this.openSignInWindow(this.auth.authURI.toString(),"ezeep Login"),label:le.t("button_actions.select_printer")}):i("ezp-dialog",{heading:le.t("login_dialog.heading"),description:le.t("login_dialog.description"),action:le.t("login_dialog.action"),iconName:"logo",iconSize:"huge",iconFramed:!1,instance:"login"}))}};fe.style=":host{--ezp-theme-solid:var(--ezp-accent-cyan-solid);--ezp-theme-translucent:var(--ezp-accent-cyan-translucent);display:block}";let ye=class{constructor(e){r(this,e),this.backdropHideStart=a(this,"backdropHideStart",7),this.backdropHideEnd=a(this,"backdropHideEnd",7),this.visible=!0}handleClick(){this.visible=!1,this.backdropHideStart.emit()}listenAnimationEnd(){this.visible||this.backdropHideEnd.emit()}render(){return i(n,{class:{hide:!this.visible},onClick:()=>this.handleClick()})}get component(){return s(this)}};ye.style=":host{-webkit-animation:var(--ezp-backdrop-animation-name, host-in) var(--ezp-duration-3) forwards var(--ezp-easing-out-quart);animation:var(--ezp-backdrop-animation-name, host-in) var(--ezp-duration-3) forwards var(--ezp-easing-out-quart);background:var(--ezp-core-backdrop);border-radius:6px;display:block;height:100%;left:0;opacity:0;position:absolute;top:0;width:100%;z-index:4}:host(.hide){--ezp-backdrop-animation-name:host-out}@-webkit-keyframes host-in{0%{opacity:0}100%{opacity:1}}@keyframes host-in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes host-out{0%{opacity:1}100%{opacity:0}}@keyframes host-out{0%{opacity:1}100%{opacity:0}}";let ge=class{constructor(e){r(this,e),this.dialogClose=a(this,"dialogClose",7),this.dialogAction=a(this,"dialogAction",7),this.action=le.t("button_actions.close"),this.iconSize="large",this.iconFramed=!0,this.handleClose=()=>{this.dialogClose.emit(this.instance)},this.handleAction=()=>{this.dialogAction.emit(this.instance)}}componentWillLoad(){}render(){return i(n,null,i("div",{id:"box"},i("div",{id:"header"},i("ezp-icon-button",{level:"tertiary",icon:"close",type:"button",onClick:this.handleClose})),i("div",{id:"body"},this.iconName&&i("ezp-icon",{name:this.iconName,size:this.iconSize,framed:this.iconFramed}),i("div",{id:"text"},i("ezp-label",{text:this.heading,weight:"heavy"}),i("ezp-label",{text:this.description}))),i("div",{id:"footer"},i("ezp-text-button",{type:"button",level:"primary",onClick:this.handleAction,label:this.action}))))}};ge.style=":host{--ezp-icon-fill:var(--ezp-theme-solid);-ms-flex-line-pack:center;align-content:center;background:var(--ezp-core-backdrop);display:grid;grid-template:auto/minmax(auto, 280px);height:100%;-ms-flex-pack:center;justify-content:center;left:0;position:fixed;top:0;width:100%}#box{background:var(--ezp-core-surface-tertiary);border-radius:6px;-webkit-box-shadow:var(--ezp-dialog-box-boxShadow, 0 0 0 1px var(--ezp-black-10));box-shadow:var(--ezp-dialog-box-boxShadow, 0 0 0 1px var(--ezp-black-10))}#header{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end;padding:var(--ezp-spacing-2) var(--ezp-spacing-3)}#body{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:var(--ezp-spacing-5);padding:0 var(--ezp-spacing-5);text-align:center}#text{color:var(--ezp-core-foreground-primary);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:var(--ezp-spacing-4)}#footer{display:grid;grid-template:auto/minmax(144px, auto);-ms-flex-pack:center;justify-content:center;padding:var(--ezp-spacing-5)}";let xe=class{constructor(e){r(this,e),this.size="normal",this.framed=!1}async componentWillLoad(){await fetch(o(`./assets/glyph-${this.name}.svg`)).then((e=>e.text())).then((e=>{this.glyph=e})).catch((e=>console.log(e)))}render(){return i(n,{class:`${this.size} ${this.framed?"framed":""}`},i("div",{id:"glyph",innerHTML:this.glyph}))}static get assetsDirs(){return["assets"]}};xe.style=":host{-ms-flex-line-pack:center;align-content:center;background:var(--ezp-icon-background, transparent);border-radius:var(--ezp-icon-borderRadius, 0);display:grid;grid-template:var(--ezp-icon-gridTemplate)/var(--ezp-icon-gridTemplate);height:var(--ezp-icon-height, var(--ezp-icon-size));-ms-flex-pack:center;justify-content:center;padding:var(--ezp-icon-padding, 0);width:var(--ezp-icon-width, var(--ezp-icon-size))}:host(.framed){--ezp-icon-background:var(--ezp-core-shade-primary);--ezp-icon-borderRadius:50%;--ezp-icon-padding:var(--ezp-icon-frame)}:host(.normal){--ezp-icon-size:18px;--ezp-icon-gridTemplate:24px;--ezp-icon-frame:var(--ezp-spacing-3)}:host(.large){--ezp-icon-size:36px;--ezp-icon-gridTemplate:48px;--ezp-icon-frame:var(--ezp-spacing-4)}:host(.huge){--ezp-icon-size:54px;--ezp-icon-gridTemplate:72px;--ezp-icon-frame:var(--ezp-spacing-5)}svg{display:block;fill:var(--ezp-icon-fill, currentColor);height:100%;width:100%}";let be=class{constructor(e){r(this,e),this.blank=!1,this.disabled=!1,this.level="primary"}render(){return i(n,{class:`${this.level}`},i(void 0!==this.type?"button":"a",Object.assign({id:"button"},void 0!==this.type?{type:this.type,disabled:this.disabled}:{href:this.href,target:this.blank?"_blank":"_self"}),i("ezp-icon",{name:this.icon})))}};be.style=":host{display:block}:host(.primary){--ezp-iconButton-background-disabled:var(--ezp-core-shade-primary);--ezp-iconButton-background-init:var(--ezp-theme-solid);--ezp-iconButton-color-disabled:var(--ezp-core-foreground-tertiary);--ezp-iconButton-color-init:var(--ezp-white-100);--ezp-iconButton-opacity-active:0.74;--ezp-iconButton-opacity-hover:0.84}:host(.secondary){--ezp-iconButton-background-active:var(--ezp-core-shade-tertiary);--ezp-iconButton-background-disabled:var(--ezp-core-shade-primary);--ezp-iconButton-background-hover:var(--ezp-core-shade-secondary);--ezp-iconButton-background-init:var(--ezp-core-shade-primary);--ezp-iconButton-color-disabled:var(--ezp-core-foreground-tertiary);--ezp-iconButton-color-init:var(--ezp-theme-solid)}:host(.tertiary){--ezp-iconButton-background-active:var(--ezp-core-shade-secondary);--ezp-iconButton-background-hover:var(--ezp-core-shade-primary);--ezp-iconButton-background-init:transparent;--ezp-iconButton-color-disabled:var(--ezp-core-foreground-tertiary);--ezp-iconButton-color-init:var(--ezp-theme-solid)}:host(.quaternary){--ezp-iconButton-background-init:transparent;--ezp-iconButton-color-disabled:var(--ezp-core-foreground-tertiary);--ezp-iconButton-color-init:var(--ezp-theme-solid);--ezp-iconButton-opacity-active:0.58;--ezp-iconButton-opacity-hover:0.74}#button{-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--ezp-iconButton-background, var(--ezp-iconButton-background-init));border:0;border-radius:3px;-webkit-box-shadow:none;box-shadow:none;color:var(--ezp-iconButton-color, var(--ezp-iconButton-color-init));cursor:var(--ezp-iconButton-cursor, pointer);display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0;opacity:var(--ezp-iconButton-opacity, 1);outline:none;padding:var(--ezp-spacing-2)}@media (hover: hover){#button:not(:disabled):hover{--ezp-iconButton-background:var(\n --ezp-iconButton-background-hover,\n var(--ezp-iconButton-background-init)\n );--ezp-iconButton-opacity:var(--ezp-iconButton-opacity-hover, 1)}#button:not(:disabled):active{--ezp-iconButton-background:var(\n --ezp-iconButton-background-active,\n var(--ezp-iconButton-background-init)\n );--ezp-iconButton-opacity:var(--ezp-iconButton-opacity-active, 1)}}#button:disabled{--ezp-iconButton-background:var(\n --ezp-iconButton-background-disabled,\n var(--ezp-iconButton-background-init)\n );--ezp-iconButton-color:var(--ezp-iconButton-color-disabled);--ezp-iconButton-cursor:default}";let Ne=class{constructor(e){r(this,e),this.ellipsis=!1,this.level="secondary",this.noWrap=!1,this.text="Label",this.weight="soft"}render(){return i(n,{class:`${this.level} ${this.weight} ${this.ellipsis?"ellipsis":""} ${this.noWrap?"no-wrap":""}`},i("div",{id:"text"},this.text))}};Ne.style=':host{display:block;min-width:var(--ezp-label-minWidth, auto);padding-bottom:1px;padding-top:1px}:host::before,:host::after{content:"";display:block;height:0}:host::before{margin-top:calc((var(--ezp-label-offset) + 1px) * -1)}:host::after{margin-bottom:calc((var(--ezp-label-offset) + 1px) * -1)}:host(.no-wrap){--ezp-label-whiteSpace:nowrap}:host(.ellipsis){--ezp-label-minWidth:0;--ezp-label-overflow:hidden;--ezp-label-textOverflow:ellipsis;--ezp-label-whiteSpace:nowrap;--ezp-label-width:100%}:host(.primary){--ezp-label-fontSize:17px;--ezp-label-lineHeight:24px;--ezp-label-letterSpacing:-0.0127756105em;--ezp-label-offset:6px}:host(.secondary){--ezp-label-fontSize:14px;--ezp-label-lineHeight:20px;--ezp-label-letterSpacing:-0.0062235443em;--ezp-label-offset:5px}:host(.tertiary){--ezp-label-fontSize:12px;--ezp-label-lineHeight:18px;--ezp-label-letterSpacing:0.0004907745em;--ezp-label-offset:5px}:host(.soft){--ezp-label-fontWeight:400}:host(.strong){--ezp-label-fontWeight:500}:host(.heavy){--ezp-label-fontWeight:600}#text{font-size:var(--ezp-label-fontSize);font-weight:var(--ezp-label-fontWeight);letter-spacing:var(--ezp-label-letterSpacing);line-height:var(--ezp-label-lineHeight);overflow:var(--ezp-label-overflow, visible);text-overflow:var(--ezp-label-textOverflow, clip);white-space:var(--ezp-label-whiteSpace, normal);width:var(--ezp-label-width, auto)}';var ve="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==ve&&ve,ze="URLSearchParams"in ve,Se="Symbol"in ve&&"iterator"in Symbol,we="FileReader"in ve&&"Blob"in ve&&function(){try{return new Blob,!0}catch(e){return!1}}(),Ce="FormData"in ve,Pe="ArrayBuffer"in ve;if(Pe)var ke=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],Be=ArrayBuffer.isView||function(e){return e&&ke.indexOf(Object.prototype.toString.call(e))>-1};function Ee(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function qe(e){return"string"!=typeof e&&(e=String(e)),e}function Re(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return Se&&(t[Symbol.iterator]=function(){return t}),t}function Me(e){this.map={},e instanceof Me?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function Te(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function Ae(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function He(e){var t=new FileReader,r=Ae(t);return t.readAsArrayBuffer(e),r}function Oe(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function Ie(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:we&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:Ce&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:ze&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():Pe&&we&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=Oe(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):Pe&&(ArrayBuffer.prototype.isPrototypeOf(e)||Be(e))?this._bodyArrayBuffer=Oe(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):ze&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},we&&(this.blob=function(){var e=Te(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?Te(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(He)}),this.text=function(){var e,t,r,a=Te(this);if(a)return a;if(this._bodyBlob)return e=this._bodyBlob,r=Ae(t=new FileReader),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),a=0;a<t.length;a++)r[a]=String.fromCharCode(t[a]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},Ce&&(this.formData=function(){return this.text().then(je)}),this.json=function(){return this.text().then(JSON.parse)},this}Me.prototype.append=function(e,t){e=Ee(e),t=qe(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},Me.prototype.delete=function(e){delete this.map[Ee(e)]},Me.prototype.get=function(e){return e=Ee(e),this.has(e)?this.map[e]:null},Me.prototype.has=function(e){return this.map.hasOwnProperty(Ee(e))},Me.prototype.set=function(e,t){this.map[Ee(e)]=qe(t)},Me.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},Me.prototype.keys=function(){var e=[];return this.forEach((function(t,r){e.push(r)})),Re(e)},Me.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),Re(e)},Me.prototype.entries=function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),Re(e)},Se&&(Me.prototype[Symbol.iterator]=Me.prototype.entries);var De=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Le(e,t){if(!(this instanceof Le))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,a,i=(t=t||{}).body;if(e instanceof Le){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new Me(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new Me(t.headers)),this.method=(a=(r=t.method||this.method||"GET").toUpperCase(),De.indexOf(a)>-1?a:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var n=/([?&])_=[^&]*/;n.test(this.url)?this.url=this.url.replace(n,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function je(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),a=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(a),decodeURIComponent(i))}})),t}function _e(e,t){if(!(this instanceof _e))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new Me(t.headers),this.url=t.url||"",this._initBody(e)}Le.prototype.clone=function(){return new Le(this,{body:this._bodyInit})},Ie.call(Le.prototype),Ie.call(_e.prototype),_e.prototype.clone=function(){return new _e(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Me(this.headers),url:this.url})},_e.error=function(){var e=new _e(null,{status:0,statusText:""});return e.type="error",e};var Ue=[301,302,303,307,308];_e.redirect=function(e,t){if(-1===Ue.indexOf(t))throw new RangeError("Invalid status code");return new _e(null,{status:t,headers:{location:e}})};var $e=ve.DOMException;try{new $e}catch(e){($e=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack}).prototype=Object.create(Error.prototype),$e.prototype.constructor=$e}function Fe(e,t){return new Promise((function(r,a){var i=new Le(e,t);if(i.signal&&i.signal.aborted)return a(new $e("Aborted","AbortError"));var n=new XMLHttpRequest;function s(){n.abort()}n.onload=function(){var e,t,a={status:n.status,statusText:n.statusText,headers:(e=n.getAllResponseHeaders()||"",t=new Me,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var r=e.split(":"),a=r.shift().trim();if(a){var i=r.join(":").trim();t.append(a,i)}})),t)};a.url="responseURL"in n?n.responseURL:a.headers.get("X-Request-URL");var i="response"in n?n.response:n.responseText;setTimeout((function(){r(new _e(i,a))}),0)},n.onerror=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},n.ontimeout=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},n.onabort=function(){setTimeout((function(){a(new $e("Aborted","AbortError"))}),0)},n.open(i.method,function(e){try{return""===e&&ve.location.href?ve.location.href:e}catch(t){return e}}(i.url),!0),"include"===i.credentials?n.withCredentials=!0:"omit"===i.credentials&&(n.withCredentials=!1),"responseType"in n&&(we?n.responseType="blob":Pe&&i.headers.get("Content-Type")&&-1!==i.headers.get("Content-Type").indexOf("application/octet-stream")&&(n.responseType="arraybuffer")),!t||"object"!=typeof t.headers||t.headers instanceof Me?i.headers.forEach((function(e,t){n.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){n.setRequestHeader(e,qe(t.headers[e]))})),i.signal&&(i.signal.addEventListener("abort",s),n.onreadystatechange=function(){4===n.readyState&&i.signal.removeEventListener("abort",s)}),n.send(void 0===i._bodyInit?null:i._bodyInit)}))}Fe.polyfill=!0,ve.fetch||(ve.fetch=Fe,ve.Headers=Me,ve.Request=Le,ve.Response=_e);const Ve=v(Object.freeze({__proto__:null,Headers:Me,Request:Le,Response:_e,get DOMException(){return $e},fetch:Fe}));var Ge=function(e){var t={};function r(a){if(t[a])return t[a].exports;var i=t[a]={exports:{},id:a,loaded:!1};return e[a].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}return r.m=e,r.c=t,r.p="",r(0)}([function(e,t,r){var a=r(1),i="function"==typeof importScripts;e.exports=a(i?self:window)},function(e,t,r){function a(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}var i=[];function n(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var s=i.reduce((function(e,t){return[t].concat(e)}),[]),o=Promise.resolve(r);return s.forEach((function(e){var t=e.request,r=e.requestError;(t||r)&&(o=o.then((function(e){return t.apply(void 0,a(e))}),r))})),o=o.then((function(t){var r=new(Function.prototype.bind.apply(Request,[null].concat(a(t))));return e(r).then((function(e){return e.request=r,e})).catch((function(e){return e.request=r,Promise.reject(e)}))})),s.forEach((function(e){var t=e.response,r=e.responseError;(t||r)&&(o=o.then(t,r))})),o}e.exports=function(e){if(!e.fetch)try{r(2)}catch(e){throw Error("No fetch available. Unable to register fetch-intercept")}return e.fetch=function(e){return function(){for(var t=arguments.length,r=Array(t),a=0;a<t;a++)r[a]=arguments[a];return n.apply(void 0,[e].concat(r))}}(e.fetch),{register:function(e){return i.push(e),function(){var t=i.indexOf(e);t>=0&&i.splice(t,1)}},clear:function(){i=[]}}}},function(e){e.exports=Ve}]);function Ke(e){return e.toLowerCase()}function We(e){if(e&&"object"==typeof e){const t=e;if("function"==typeof t.rawHeaders&&"function"==typeof t.clone&&"function"==typeof t.get&&"function"==typeof t.set&&"function"==typeof t.contains&&"function"==typeof t.remove&&"function"==typeof t.headersArray&&"function"==typeof t.headerValues&&"function"==typeof t.headerNames&&"function"==typeof t.toJson)return!0}return!1}class Xe{constructor(e){if(this._headersMap={},e)for(const t in e)this.set(t,e[t])}set(e,t){this._headersMap[Ke(e)]={name:e,value:t.toString()}}get(e){const t=this._headersMap[Ke(e)];return t?t.value:void 0}contains(e){return!!this._headersMap[Ke(e)]}remove(e){const t=this.contains(e);return delete this._headersMap[Ke(e)],t}rawHeaders(){return this.toJson({preserveCase:!0})}headersArray(){const e=[];for(const t in this._headersMap)e.push(this._headersMap[t]);return e}headerNames(){const e=[],t=this.headersArray();for(let r=0;r<t.length;++r)e.push(t[r].name);return e}headerValues(){const e=[],t=this.headersArray();for(let r=0;r<t.length;++r)e.push(t[r].value);return e}toJson(e={}){const t={};if(e.preserveCase)for(const e in this._headersMap){const r=this._headersMap[e];t[r.name]=r.value}else for(const e in this._headersMap){const r=this._headersMap[e];t[Ke(r.name)]=r.value}return t}toString(){return JSON.stringify(this.toJson({preserveCase:!0}))}clone(){const e={};for(const t in this._headersMap){const r=this._headersMap[t];e[r.name]=r.value}return new Xe(e)}}function Qe(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function Je(e){const t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r}var Ye=b.process;const Ze="authorization",et="Retry-After",tt="$";var rt,at=new Uint8Array(16);function it(){if(!rt&&!(rt="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return rt(at)}const nt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function st(e){return"string"==typeof e&&nt.test(e)}for(var ot=[],lt=0;lt<256;++lt)ot.push((lt+256).toString(16).substr(1));function mt(e,t,r){var a=(e=e||{}).random||(e.rng||it)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){r=r||0;for(var i=0;i<16;++i)t[r+i]=a[i];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(ot[e[t+0]]+ot[e[t+1]]+ot[e[t+2]]+ot[e[t+3]]+"-"+ot[e[t+4]]+ot[e[t+5]]+"-"+ot[e[t+6]]+ot[e[t+7]]+"-"+ot[e[t+8]]+ot[e[t+9]]+"-"+ot[e[t+10]]+ot[e[t+11]]+ot[e[t+12]]+ot[e[t+13]]+ot[e[t+14]]+ot[e[t+15]]).toLowerCase();if(!st(r))throw TypeError("Stringified UUID is invalid");return r}(a)}const ct=/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/i,dt=void 0!==Ye&&!!Ye.version&&!!Ye.versions&&!!Ye.versions.node;function pt(){return mt()}const ut=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ht(e,t,r){return e&&t?e.split(t).join(r||""):e}class ft{constructor(e={},t){this.modelMappers=e,this.isXML=t}validateConstraints(e,t,r){const a=(e,a)=>{throw new Error(`"${r}" with value "${t}" should satisfy the constraint "${e}": ${a}.`)};if(e.constraints&&null!=t){const r=t,{ExclusiveMaximum:i,ExclusiveMinimum:n,InclusiveMaximum:s,InclusiveMinimum:o,MaxItems:l,MaxLength:m,MinItems:c,MinLength:d,MultipleOf:p,Pattern:u,UniqueItems:h}=e.constraints;null!=i&&r>=i&&a("ExclusiveMaximum",i),null!=n&&r<=n&&a("ExclusiveMinimum",n),null!=s&&r>s&&a("InclusiveMaximum",s),null!=o&&r<o&&a("InclusiveMinimum",o);const f=t;if(null!=l&&f.length>l&&a("MaxItems",l),null!=m&&f.length>m&&a("MaxLength",m),null!=c&&f.length<c&&a("MinItems",c),null!=d&&f.length<d&&a("MinLength",d),null!=p&&r%p!=0&&a("MultipleOf",p),u){const e="string"==typeof u?new RegExp(u):u;"string"==typeof t&&null!==t.match(e)||a("Pattern",u)}h&&f.some(((e,t,r)=>r.indexOf(e)!==t))&&a("UniqueItems",h)}}serialize(e,t,r,a={}){var i,n,s;const o={rootName:null!==(i=a.rootName)&&void 0!==i?i:"",includeRoot:null!==(n=a.includeRoot)&&void 0!==n&&n,xmlCharKey:null!==(s=a.xmlCharKey)&&void 0!==s?s:"_"};let l={};const m=e.type.name;r||(r=e.serializedName),null!==m.match(/^Sequence$/i)&&(l=[]),e.isConstant&&(t=e.defaultValue);const{required:c,nullable:d}=e;if(c&&d&&void 0===t)throw new Error(`${r} cannot be undefined.`);if(c&&!d&&null==t)throw new Error(`${r} cannot be null or undefined.`);if(!c&&!1===d&&null===t)throw new Error(`${r} cannot be null.`);return null==t?l=t:(this.validateConstraints(e,t,r),null!==m.match(/^any$/i)?l=t:null!==m.match(/^(Number|String|Boolean|Object|Stream|Uuid)$/i)?l=function(e,t,r){if(null!=r)if(null!==e.match(/^Number$/i)){if("number"!=typeof r)throw new Error(`${t} with value ${r} must be of type number.`)}else if(null!==e.match(/^String$/i)){if("string"!=typeof r.valueOf())throw new Error(`${t} with value "${r}" must be of type string.`)}else if(null!==e.match(/^Uuid$/i)){if("string"!=typeof r.valueOf()||!ct.test(r))throw new Error(`${t} with value "${r}" must be of type string and a valid uuid.`)}else if(null!==e.match(/^Boolean$/i)){if("boolean"!=typeof r)throw new Error(`${t} with value ${r} must be of type boolean.`)}else if(null!==e.match(/^Stream$/i)){const e=typeof r;if(!("string"===e||"function"===e||r instanceof ArrayBuffer||ArrayBuffer.isView(r)||("function"==typeof Blob||"object"==typeof Blob)&&r instanceof Blob))throw new Error(`${t} must be a string, Blob, ArrayBuffer, ArrayBufferView, or a function returning NodeJS.ReadableStream.`)}return r}(m,r,t):null!==m.match(/^Enum$/i)?l=function(e,t,r){if(!t)throw new Error(`Please provide a set of allowedValues to validate ${e} as an Enum Type.`);if(!t.some((e=>"string"==typeof e.valueOf()?e.toLowerCase()===r.toLowerCase():e===r)))throw new Error(`${r} is not a valid value for ${e}. The valid values are: ${JSON.stringify(t)}.`);return r}(r,e.type.allowedValues,t):null!==m.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)?l=function(e,t,r){if(null!=t)if(null!==e.match(/^Date$/i)){if(!(t instanceof Date||"string"==typeof t.valueOf()&&!isNaN(Date.parse(t))))throw new Error(`${r} must be an instanceof Date or a string in ISO8601 format.`);t=t instanceof Date?t.toISOString().substring(0,10):new Date(t).toISOString().substring(0,10)}else if(null!==e.match(/^DateTime$/i)){if(!(t instanceof Date||"string"==typeof t.valueOf()&&!isNaN(Date.parse(t))))throw new Error(`${r} must be an instanceof Date or a string in ISO8601 format.`);t=t instanceof Date?t.toISOString():new Date(t).toISOString()}else if(null!==e.match(/^DateTimeRfc1123$/i)){if(!(t instanceof Date||"string"==typeof t.valueOf()&&!isNaN(Date.parse(t))))throw new Error(`${r} must be an instanceof Date or a string in RFC-1123 format.`);t=t instanceof Date?t.toUTCString():new Date(t).toUTCString()}else if(null!==e.match(/^UnixTime$/i)){if(!(t instanceof Date||"string"==typeof t.valueOf()&&!isNaN(Date.parse(t))))throw new Error(`${r} must be an instanceof Date or a string in RFC-1123/ISO8601 format for it to be serialized in UnixTime/Epoch format.`);t=function(e){if(e)return"string"==typeof e.valueOf()&&(e=new Date(e)),Math.floor(e.getTime()/1e3)}(t)}else if(null!==e.match(/^TimeSpan$/i)&&!function(e){return ut.test(e)}(t))throw new Error(`${r} must be a string in ISO 8601 format. Instead was "${t}".`);return t}(m,t,r):null!==m.match(/^ByteArray$/i)?l=function(e,t){let r="";if(null!=t){if(!(t instanceof Uint8Array))throw new Error(`${e} must be of type Uint8Array.`);r=Qe(t)}return r}(r,t):null!==m.match(/^Base64Url$/i)?l=function(e,t){let r="";if(null!=t){if(!(t instanceof Uint8Array))throw new Error(`${e} must be of type Uint8Array.`);r=function(e){if(e){if(!(e instanceof Uint8Array))throw new Error("Please provide an input of type Uint8Array for converting to Base64Url.");return function(e){let t=e.length;for(;t-1>=0&&"="===e[t-1];)--t;return e.substr(0,t)}(Qe(e)).replace(/\+/g,"-").replace(/\//g,"_")}}(t)||""}return r}(r,t):null!==m.match(/^Sequence$/i)?l=function(e,t,r,a,i,n){if(!Array.isArray(r))throw new Error(`${a} must be of type Array.`);const s=t.type.element;if(!s||"object"!=typeof s)throw new Error(`element" metadata for an Array must be defined in the mapper and it must of type "object" in ${a}.`);const o=[];for(let t=0;t<r.length;t++){const l=e.serialize(s,r[t],a,n);if(i&&s.xmlNamespace){const e=s.xmlNamespacePrefix?`xmlns:${s.xmlNamespacePrefix}`:"xmlns";"Composite"===s.type.name?(o[t]=Object.assign({},l),o[t][tt]={[e]:s.xmlNamespace}):(o[t]={},o[t][n.xmlCharKey]=l,o[t][tt]={[e]:s.xmlNamespace})}else o[t]=l}return o}(this,e,t,r,Boolean(this.isXML),o):null!==m.match(/^Dictionary$/i)?l=function(e,t,r,a,i,n){if("object"!=typeof r)throw new Error(`${a} must be of type object.`);const s=t.type.value;if(!s||"object"!=typeof s)throw new Error(`"value" metadata for a Dictionary must be defined in the mapper and it must of type "object" in ${a}.`);const o={};for(const t of Object.keys(r)){const l=e.serialize(s,r[t],a,n);o[t]=bt(s,l,i,n)}if(i&&t.xmlNamespace){const e=o;return e[tt]={[t.xmlNamespacePrefix?`xmlns:${t.xmlNamespacePrefix}`:"xmlns"]:t.xmlNamespace},e}return o}(this,e,t,r,Boolean(this.isXML),o):null!==m.match(/^Composite$/i)&&(l=function(e,t,r,a,i,n){if(zt(e,t)&&(t=vt(e,t,r,"clientName")),null!=r){const s={},o=xt(e,t,a);for(const l of Object.keys(o)){const m=o[l];if(m.readOnly)continue;let c,d=s;if(e.isXML)c=m.xmlIsWrapped?m.xmlName:m.xmlElementName||m.xmlName;else{const e=yt(m.serializedName);c=e.pop();for(const t of e)null!=d[t]||null==r[l]&&void 0===m.defaultValue||(d[t]={}),d=d[t]}if(null!=d){if(i&&t.xmlNamespace){const e=t.xmlNamespacePrefix?`xmlns:${t.xmlNamespacePrefix}`:"xmlns";d[tt]=Object.assign(Object.assign({},d[tt]),{[e]:t.xmlNamespace})}const s=""!==m.serializedName?a+"."+m.serializedName:a;let o=r[l];const p=zt(e,t);p&&p.clientName===l&&null==o&&(o=t.serializedName);const u=e.serialize(m,o,s,n);if(void 0!==u&&null!=c){const e=bt(m,u,i,n);i&&m.xmlIsAttribute?(d[tt]=d[tt]||{},d[tt][c]=u):d[c]=i&&m.xmlIsWrapped?{[m.xmlElementName]:e}:e}}}const l=function(e,t,r){const a=t.type.additionalProperties;if(!a&&t.type.className){const a=gt(e,t,r);return null==a?void 0:a.type.additionalProperties}return a}(e,t,a);if(l){const t=Object.keys(o);for(const i in r)t.every((e=>e!==i))&&(s[i]=e.serialize(l,r[i],a+'["'+i+'"]',n))}return s}return r}(this,e,t,r,Boolean(this.isXML),o))),l}deserialize(e,t,r,a={}){var i,n,s;const o={rootName:null!==(i=a.rootName)&&void 0!==i?i:"",includeRoot:null!==(n=a.includeRoot)&&void 0!==n&&n,xmlCharKey:null!==(s=a.xmlCharKey)&&void 0!==s?s:"_"};if(null==t)return this.isXML&&"Sequence"===e.type.name&&!e.xmlIsWrapped&&(t=[]),void 0!==e.defaultValue&&(t=e.defaultValue),t;let l;const m=e.type.name;if(r||(r=e.serializedName),null!==m.match(/^Composite$/i))l=function(e,t,r,a,i){var n;zt(e,t)&&(t=vt(e,t,r,"serializedName"));const s=xt(e,t,a);let o={};const l=[];for(const m of Object.keys(s)){const c=s[m],d=yt(s[m].serializedName);l.push(d[0]);const{serializedName:p,xmlName:u,xmlElementName:h}=c;let f=a;""!==p&&void 0!==p&&(f=a+"."+p);const y=c.headerCollectionPrefix;if(y){const t={};for(const a of Object.keys(r))a.startsWith(y)&&(t[a.substring(y.length)]=e.deserialize(c.type.value,r[a],f,i)),l.push(a);o[m]=t}else if(e.isXML)if(c.xmlIsAttribute&&r[tt])o[m]=e.deserialize(c,r[tt][u],f,i);else{const t=h||u||p;if(c.xmlIsWrapped){const t=r[u],a=null!==(n=null==t?void 0:t[h])&&void 0!==n?n:[];o[m]=e.deserialize(c,a,f,i)}else o[m]=e.deserialize(c,r[t],f,i)}else{let a,n=r;for(const e of d){if(!n)break;n=n[e]}a=n;const l=t.type.polymorphicDiscriminator;let p;if(l&&m===l.clientName&&null==a&&(a=t.serializedName),Array.isArray(r[m])&&""===s[m].serializedName){a=r[m];const t=e.deserialize(c,a,f,i);for(const[e,r]of Object.entries(o))Object.prototype.hasOwnProperty.call(t,e)||(t[e]=r);o=t}else void 0===a&&void 0===c.defaultValue||(p=e.deserialize(c,a,f,i),o[m]=p)}}const m=t.type.additionalProperties;if(m){const t=e=>{for(const t in s)if(yt(s[t].serializedName)[0]===e)return!1;return!0};for(const n in r)t(n)&&(o[n]=e.deserialize(m,r[n],a+'["'+n+'"]',i))}else if(r)for(const e of Object.keys(r))void 0!==o[e]||l.includes(e)||Nt(e,i)||(o[e]=r[e]);return o}(this,e,t,r,o);else{if(this.isXML){const e=o.xmlCharKey,r=t;null!=r[tt]&&null!=r[e]&&(t=r[e])}null!==m.match(/^Number$/i)?(l=parseFloat(t),isNaN(l)&&(l=t)):null!==m.match(/^Boolean$/i)?l="true"===t||"false"!==t&&t:null!==m.match(/^(String|Enum|Object|Stream|Uuid|TimeSpan|any)$/i)?l=t:null!==m.match(/^(Date|DateTime|DateTimeRfc1123)$/i)?l=new Date(t):null!==m.match(/^UnixTime$/i)?l=function(e){if(e)return new Date(1e3*e)}(t):null!==m.match(/^ByteArray$/i)?l=Je(t):null!==m.match(/^Base64Url$/i)?l=function(e){if(e){if(e&&"string"!=typeof e.valueOf())throw new Error("Please provide an input of type string for converting to Uint8Array");return Je(e=e.replace(/-/g,"+").replace(/_/g,"/"))}}(t):null!==m.match(/^Sequence$/i)?l=function(e,t,r,a,i){const n=t.type.element;if(!n||"object"!=typeof n)throw new Error(`element" metadata for an Array must be defined in the mapper and it must of type "object" in ${a}`);if(r){Array.isArray(r)||(r=[r]);const t=[];for(let s=0;s<r.length;s++)t[s]=e.deserialize(n,r[s],`${a}[${s}]`,i);return t}return r}(this,e,t,r,o):null!==m.match(/^Dictionary$/i)&&(l=function(e,t,r,a,i){const n=t.type.value;if(!n||"object"!=typeof n)throw new Error(`"value" metadata for a Dictionary must be defined in the mapper and it must of type "object" in ${a}`);if(r){const t={};for(const s of Object.keys(r))t[s]=e.deserialize(n,r[s],a,i);return t}return r}(this,e,t,r,o))}return e.isConstant&&(l=e.defaultValue),l}}function yt(e){const t=[];let r="";if(e){const a=e.split(".");for(const e of a)"\\"===e.charAt(e.length-1)?r+=e.substr(0,e.length-1)+".":(r+=e,t.push(r),r="")}return t}function gt(e,t,r){const a=t.type.className;if(!a)throw new Error(`Class name for model "${r}" is not provided in the mapper "${JSON.stringify(t,void 0,2)}".`);return e.modelMappers[a]}function xt(e,t,r){let a=t.type.modelProperties;if(!a){const i=gt(e,t,r);if(!i)throw new Error(`mapper() cannot be null or undefined for model "${t.type.className}".`);if(a=null==i?void 0:i.type.modelProperties,!a)throw new Error(`modelProperties cannot be null or undefined in the mapper "${JSON.stringify(i)}" of type "${t.type.className}" for object "${r}".`)}return a}function bt(e,t,r,a){if(!r||!e.xmlNamespace)return t;const i={[e.xmlNamespacePrefix?`xmlns:${e.xmlNamespacePrefix}`:"xmlns"]:e.xmlNamespace};if(["Composite"].includes(e.type.name)){if(t[tt])return t;{const e=Object.assign({},t);return e[tt]=i,e}}const n={};return n[a.xmlCharKey]=t,n[tt]=i,n}function Nt(e,t){return[tt,t.xmlCharKey].includes(e)}function vt(e,t,r,a){const i=zt(e,t);if(i){const n=i[a];if(null!=n){const a=r[n];if(null!=a){const r=t.type.uberParent||t.type.className,i=e.modelMappers.discriminators[a===r?a:r+"."+a];i&&(t=i)}}}return t}function zt(e,t){return t.type.polymorphicDiscriminator||St(e,t.type.uberParent)||St(e,t.type.className)}function St(e,t){return t&&e.modelMappers[t]&&e.modelMappers[t].type.polymorphicDiscriminator}const wt=function(){const e={};for(const t of["Base64Url","Boolean","ByteArray","Composite","Date","DateTime","DateTimeRfc1123","Dictionary","Enum","Number","Object","Sequence","String","Stream","TimeSpan","UnixTime"])e[t]=t;return e}();class Ct{constructor(e,t,r,a,i,n,s,o,l,m,c,d,p,u,h){this.streamResponseBody=n,this.streamResponseStatusCodes=h,this.url=e||"",this.method=t||"GET",this.headers=We(i)?i:new Xe(i),this.body=r,this.query=a,this.formData=void 0,this.withCredentials=s||!1,this.abortSignal=o,this.timeout=l||0,this.onUploadProgress=m,this.onDownloadProgress=c,this.proxySettings=d,this.keepAlive=p,this.decompressResponse=u,this.requestId=this.headers.get("x-ms-client-request-id")||pt()}validateRequestProperties(){if(!this.method)throw new Error("WebResource.method is required.");if(!this.url)throw new Error("WebResource.url is required.")}prepare(e){if(!e)throw new Error("options object is required");if(null==e.method||"string"!=typeof e.method.valueOf())throw new Error("options.method must be a string.");if(e.url&&e.pathTemplate)throw new Error("options.url and options.pathTemplate are mutually exclusive. Please provide exactly one of them.");if(!(null!=e.pathTemplate&&"string"==typeof e.pathTemplate.valueOf()||null!=e.url&&"string"==typeof e.url.valueOf()))throw new Error("Please provide exactly one of options.pathTemplate or options.url.");if(e.url){if("string"!=typeof e.url)throw new Error('options.url must be of type "string".');this.url=e.url}if(e.method){const t=["GET","PUT","HEAD","DELETE","OPTIONS","POST","PATCH","TRACE"];if(-1===t.indexOf(e.method.toUpperCase()))throw new Error('The provided method "'+e.method+'" is invalid. Supported HTTP methods are: '+JSON.stringify(t))}if(this.method=e.method.toUpperCase(),e.pathTemplate){const{pathTemplate:t,pathParameters:r}=e;if("string"!=typeof t)throw new Error('options.pathTemplate must be of type "string".');e.baseUrl||(e.baseUrl="https://management.azure.com");const a=e.baseUrl;let i=a+(a.endsWith("/")?"":"/")+(t.startsWith("/")?t.slice(1):t);const n=i.match(/({[\w-]*\s*[\w-]*})/gi);if(n&&n.length){if(!r)throw new Error(`pathTemplate: ${t} has been provided. Hence, options.pathParameters must also be provided.`);n.forEach((function(e){const a=e.slice(1,-1),n=r[a];if(null==n||"string"!=typeof n&&"object"!=typeof n){const e=JSON.stringify(r,void 0,2);throw new Error(`pathTemplate: ${t} contains the path parameter ${a} however, it is not present in parameters: ${e}.The value of the path parameter can either be a "string" of the form { ${a}: "some sample value" } or it can be an "object" of the form { "${a}": { value: "some sample value", skipUrlEncoding: true } }.`)}if("string"==typeof n.valueOf()&&(i=i.replace(e,encodeURIComponent(n))),"object"==typeof n.valueOf()){if(!n.value)throw new Error(`options.pathParameters[${a}] is of type "object" but it does not contain a "value" property.`);i=i.replace(e,n.skipUrlEncoding?n.value:encodeURIComponent(n.value))}}))}this.url=i}if(e.queryParameters){const t=e.queryParameters;if("object"!=typeof t)throw new Error('options.queryParameters must be of type object. It should be a JSON object of "query-parameter-name" as the key and the "query-parameter-value" as the value. The "query-parameter-value" may be fo type "string" or an "object" of the form { value: "query-parameter-value", skipUrlEncoding: true }.');this.url&&-1===this.url.indexOf("?")&&(this.url+="?");const r=[];this.query={};for(const e in t){const a=t[e];if(a)if("string"==typeof a)r.push(e+"="+encodeURIComponent(a)),this.query[e]=encodeURIComponent(a);else if("object"==typeof a){if(!a.value)throw new Error(`options.queryParameters[${e}] is of type "object" but it does not contain a "value" property.`);a.skipUrlEncoding?(r.push(e+"="+a.value),this.query[e]=a.value):(r.push(e+"="+encodeURIComponent(a.value)),this.query[e]=encodeURIComponent(a.value))}}this.url+=r.join("&")}if(e.headers){const t=e.headers;for(const r of Object.keys(e.headers))this.headers.set(r,t[r])}return this.headers.get("accept-language")||this.headers.set("accept-language","en-US"),this.headers.get("x-ms-client-request-id")||e.disableClientRequestId||this.headers.set("x-ms-client-request-id",this.requestId),this.headers.get("Content-Type")||this.headers.set("Content-Type","application/json; charset=utf-8"),this.body=e.body,null!=e.body&&(e.bodyIsStream?(this.headers.get("Transfer-Encoding")||this.headers.set("Transfer-Encoding","chunked"),"application/octet-stream"!==this.headers.get("Content-Type")&&this.headers.set("Content-Type","application/octet-stream")):(e.serializationMapper&&(this.body=new ft(e.mappers).serialize(e.serializationMapper,e.body,"requestBody")),e.disableJsonStringifyOnBody||(this.body=JSON.stringify(e.body)))),e.spanOptions&&(this.spanOptions=e.spanOptions),e.tracingContext&&(this.tracingContext=e.tracingContext),this.abortSignal=e.abortSignal,this.onDownloadProgress=e.onDownloadProgress,this.onUploadProgress=e.onUploadProgress,this}clone(){const e=new Ct(this.url,this.method,this.body,this.query,this.headers&&this.headers.clone(),this.streamResponseBody,this.withCredentials,this.abortSignal,this.timeout,this.onUploadProgress,this.onDownloadProgress,this.proxySettings,this.keepAlive,this.decompressResponse,this.streamResponseStatusCodes);return this.formData&&(e.formData=this.formData),this.operationSpec&&(e.operationSpec=this.operationSpec),this.shouldDeserialize&&(e.shouldDeserialize=this.shouldDeserialize),this.operationResponseGetter&&(e.operationResponseGetter=this.operationResponseGetter),e}}
|
|
2
2
|
/*! *****************************************************************************
|
|
3
3
|
Copyright (c) Microsoft Corporation.
|
|
4
4
|
|
package/package.json
CHANGED
package/www/build/ezeep.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as i}from"./p-17f25f95.js";import{g as t}from"./p-a4d37138.js";(()=>{const i=import.meta.url,t={};return""!==i&&(t.resourcesUrl=new URL(".",i).href),e(t)})().then((e=>(t(),i([["p-
|
|
1
|
+
import{p as e,b as i}from"./p-17f25f95.js";import{g as t}from"./p-a4d37138.js";(()=>{const i=import.meta.url,t={};return""!==i&&(t.resourcesUrl=new URL(".",i).href),e(t)})().then((e=>(t(),i([["p-aa7681b6",[[1,"ezp-printing",{clientid:[1],redirecturi:[1],filename:[1025],fileurl:[1],filetype:[1],custom:[4],hidelogin:[4],hidemenu:[4],authapihosturl:[1],printapihosturl:[1],theme:[1],fileid:[1],appearance:[1],trigger:[1],language:[1],code:[1],filedata:[1],printOpen:[32],authOpen:[32],onlyGetSasUri:[32],noDocumentOpen:[32],systemAppearance:[32],file:[32],open:[64],logOut:[64],getSasUri:[64],getAuthUri:[64]},[[0,"printCancel","listenPrintCancel"],[0,"printSubmit","listenPrintSubmit"],[0,"authCancel","listenAuthCancel"],[0,"authSuccess","listenAuthSuccess"],[0,"uploadFile","listenUploadFile"],[0,"dialogClose","listenDialogClose"],[0,"dialogAction","listenDialogAction"]]],[1,"ezp-printer-selection",{clientID:[1,"client-i-d"],redirectURI:[1,"redirect-u-r-i"],filename:[1025],fileurl:[1],filetype:[1025],fileid:[1025],file:[16],hidemenu:[4],loading:[32],printProcessing:[32],uploading:[32],preparingUpload:[32],printSuccess:[32],printFailed:[32],notSupported:[32],noPrinters:[32],userMenuOpen:[32],printStopped:[32],userName:[32],printers:[32],selectedPrinter:[32],printerConfig:[32],selectedPrinterConfig:[32],selectedProperties:[32]},[[0,"selectSelection","listenSelectSelection"],[0,"stepperChanged","listenStepperChanged"],[0,"userMenuClosure","listenUserMenuClosure"],[0,"logoutEmitter","listenLogout"],[0,"statusCancel","listenStatusCancel"],[0,"statusClose","listenStatusClose"],[0,"statusRetry","listenStatusRetry"]]],[1,"ezp-auth",{clientID:[1025,"client-i-d"],redirectURI:[1025,"redirect-u-r-i"],hidelogin:[4],trigger:[1],code:[1],auth:[32],authURI:[32],accessToken:[32]},[[0,"dialogAction","listenDialogAction"],[0,"dialogClose","listenDialogClose"],[0,"statusCancel","listenStatusCancel"]]],[1,"ezp-upload",{filename:[32],dragging:[32]},[[1,"dragenter","handleDragEnter"],[0,"dragover","handleDragOver"],[1,"dragleave","handleDragLeave"],[0,"drop","handleDrop"],[4,"printCancel","listenPrintCancel"]]],[1,"ezp-dialog",{heading:[1],description:[1],action:[1],iconName:[1,"icon-name"],iconSize:[1,"icon-size"],iconFramed:[4,"icon-framed"],instance:[1]}],[1,"ezp-user-menu",{name:[1],open:[1028]}],[1,"ezp-select",{icon:[1],label:[1],optionFlow:[1,"option-flow"],options:[16],placeholder:[1],preSelected:[8,"pre-selected"],toggleFlow:[1,"toggle-flow"],disabled:[4],expanded:[32],selected:[32]}],[1,"ezp-stepper",{icon:[1],label:[1],max:[2],min:[2],canDecrease:[32],canIncrease:[32],focused:[32],value:[32]}],[1,"ezp-status",{description:[1],processing:[4],instance:[1],icon:[1],cancel:[8],close:[8],retry:[8]}],[1,"ezp-backdrop",{visible:[1028]},[[0,"animationend","listenAnimationEnd"]]],[1,"ezp-icon-button",{blank:[4],disabled:[4],href:[1],icon:[1],level:[1],type:[1]}],[1,"ezp-text-button",{blank:[4],disabled:[4],href:[1],level:[1],label:[1],type:[1],small:[4]}],[1,"ezp-icon",{name:[1],size:[1],framed:[4]}],[1,"ezp-label",{ellipsis:[4],level:[1],noWrap:[4,"no-wrap"],text:[1],weight:[1]}]]]],e))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-c04b764e.system.js","./p-ded04529.system.js"],(function(e,t){"use strict";var n,i,l;return{setters:[function(e){n=e.p;i=e.b},function(e){l=e.g}],execute:function(){var e=function(){var e=t.meta.url;var i={};if(e!==""){i.resourcesUrl=new URL(".",e).href}return n(i)};e().then((function(e){l();return i([["p-
|
|
1
|
+
System.register(["./p-c04b764e.system.js","./p-ded04529.system.js"],(function(e,t){"use strict";var n,i,l;return{setters:[function(e){n=e.p;i=e.b},function(e){l=e.g}],execute:function(){var e=function(){var e=t.meta.url;var i={};if(e!==""){i.resourcesUrl=new URL(".",e).href}return n(i)};e().then((function(e){l();return i([["p-91a269aa.system",[[1,"ezp-printing",{clientid:[1],redirecturi:[1],filename:[1025],fileurl:[1],filetype:[1],custom:[4],hidelogin:[4],hidemenu:[4],authapihosturl:[1],printapihosturl:[1],theme:[1],fileid:[1],appearance:[1],trigger:[1],language:[1],code:[1],filedata:[1],printOpen:[32],authOpen:[32],onlyGetSasUri:[32],noDocumentOpen:[32],systemAppearance:[32],file:[32],open:[64],logOut:[64],getSasUri:[64],getAuthUri:[64]},[[0,"printCancel","listenPrintCancel"],[0,"printSubmit","listenPrintSubmit"],[0,"authCancel","listenAuthCancel"],[0,"authSuccess","listenAuthSuccess"],[0,"uploadFile","listenUploadFile"],[0,"dialogClose","listenDialogClose"],[0,"dialogAction","listenDialogAction"]]],[1,"ezp-printer-selection",{clientID:[1,"client-i-d"],redirectURI:[1,"redirect-u-r-i"],filename:[1025],fileurl:[1],filetype:[1025],fileid:[1025],file:[16],hidemenu:[4],loading:[32],printProcessing:[32],uploading:[32],preparingUpload:[32],printSuccess:[32],printFailed:[32],notSupported:[32],noPrinters:[32],userMenuOpen:[32],printStopped:[32],userName:[32],printers:[32],selectedPrinter:[32],printerConfig:[32],selectedPrinterConfig:[32],selectedProperties:[32]},[[0,"selectSelection","listenSelectSelection"],[0,"stepperChanged","listenStepperChanged"],[0,"userMenuClosure","listenUserMenuClosure"],[0,"logoutEmitter","listenLogout"],[0,"statusCancel","listenStatusCancel"],[0,"statusClose","listenStatusClose"],[0,"statusRetry","listenStatusRetry"]]],[1,"ezp-auth",{clientID:[1025,"client-i-d"],redirectURI:[1025,"redirect-u-r-i"],hidelogin:[4],trigger:[1],code:[1],auth:[32],authURI:[32],accessToken:[32]},[[0,"dialogAction","listenDialogAction"],[0,"dialogClose","listenDialogClose"],[0,"statusCancel","listenStatusCancel"]]],[1,"ezp-upload",{filename:[32],dragging:[32]},[[1,"dragenter","handleDragEnter"],[0,"dragover","handleDragOver"],[1,"dragleave","handleDragLeave"],[0,"drop","handleDrop"],[4,"printCancel","listenPrintCancel"]]],[1,"ezp-dialog",{heading:[1],description:[1],action:[1],iconName:[1,"icon-name"],iconSize:[1,"icon-size"],iconFramed:[4,"icon-framed"],instance:[1]}],[1,"ezp-user-menu",{name:[1],open:[1028]}],[1,"ezp-select",{icon:[1],label:[1],optionFlow:[1,"option-flow"],options:[16],placeholder:[1],preSelected:[8,"pre-selected"],toggleFlow:[1,"toggle-flow"],disabled:[4],expanded:[32],selected:[32]}],[1,"ezp-stepper",{icon:[1],label:[1],max:[2],min:[2],canDecrease:[32],canIncrease:[32],focused:[32],value:[32]}],[1,"ezp-status",{description:[1],processing:[4],instance:[1],icon:[1],cancel:[8],close:[8],retry:[8]}],[1,"ezp-backdrop",{visible:[1028]},[[0,"animationend","listenAnimationEnd"]]],[1,"ezp-icon-button",{blank:[4],disabled:[4],href:[1],icon:[1],level:[1],type:[1]}],[1,"ezp-text-button",{blank:[4],disabled:[4],href:[1],level:[1],label:[1],type:[1],small:[4]}],[1,"ezp-icon",{name:[1],size:[1],framed:[4]}],[1,"ezp-label",{ellipsis:[4],level:[1],noWrap:[4,"no-wrap"],text:[1],weight:[1]}]]]],e)}))}}}));
|