@fluid-topics/ft-number-field 1.1.102 → 1.1.104

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.
@@ -46,7 +46,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
46
46
  input::-webkit-search-results-decoration {
47
47
  display: none;
48
48
  }
49
- `;var Wa={};var wn={};k(wn,{ParametrizedLabelResolver:()=>On});var On=class{constructor(e,r){this.defaultLabels=e,this.labels=r}resolve(e,...r){var n,i;e=this.resolvePluralKey(e,r);let a=(i=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&i!==void 0?i:"";return r.forEach((s,c)=>a=a.replace(new RegExp(`\\{${c}([^}]*)\\}`,"g"),(l,f)=>this.formatValue(s,f))),a}resolvePluralKey(e,r){for(let n of r)if(typeof n=="number"){let i=`${String(e)}[\\=${n}]`;if(i in this.labels||i in this.defaultLabels)return i}return e}formatValue(e,r){return e instanceof Date?this.formatDate(e,r):e??""}formatDate(e,r){let n=i=>r?.includes("date")?e.toLocaleDateString(i):r?.includes("time")?e.toLocaleTimeString(i):e.toLocaleString(i);try{return n(document.documentElement.lang)}catch{return n()}}};var Yn={};k(Yn,{FtCommandQueue:()=>Qt,FtLitElementRedux:()=>pt,FtReduxStore:()=>qn,clearAllStores:()=>md,isFtReduxStore:()=>tt,redux:()=>Il,reduxEventListener:()=>_l,reduxReactive:()=>Pl});var Pl=()=>(o,e)=>{var r;let n=o.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(r=n.reduxReactiveProperties)===null||r===void 0||r.add(e)},Il=o=>{let e=o??{};return(r,n)=>{var i;let a={hasChanged:Ut,attribute:!1,...e};P(a)(r,n);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(i=e.selector)!==null&&i!==void 0?i:c=>c[n],store:e.store})}},_l=o=>(e,r)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(r,o)};var Qt=class{constructor(){this.queue=[]}add(e,r=!1){r&&(this.queue=this.queue.filter(n=>n.type!==e.type)),this.queue.push(e)}consume(e){let r=this.queue.find(n=>n.type===e);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}};function tt(o){var e;return(e=o?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Ma,Da,za,Fr=Symbol("internalReduxEventsUnsubscribers"),_e=Symbol("internalStoresUnsubscribers"),rt=Symbol("internalStores"),pt=class extends H{constructor(){super(...arguments),this[Ma]=new Map,this[Da]=new Map,this[za]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(r=>e.has(r))&&this.updateFromStores()}getUnnamedStore(){if(this[rt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[rt].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[rt].get(e)}addStore(e,r){var n;r=(n=r??(tt(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(r),this.setupStore(r,e)}removeStore(e){let r=typeof e=="string"?e:e.name;this.unsubscribeFromStore(r),this[rt].delete(r)}setupStore(e,r){this[rt].set(e,r),this.subscribeToStore(e,r),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[rt].forEach((e,r)=>this.subscribeToStore(r,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,r)=>{let n=this.constructor.getPropertyOptions(r);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:r)){let i=this.getStore(e.store);i&&(e.store?this[_e].has(e.store):this[_e].size>0)&&(this[r]=e.selector(i.getState(),this))}})}subscribeToStore(e,r){var n;this[_e].set(e,r.subscribe(()=>this.updateFromStores())),tt(r)&&r.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((i,a)=>{if(typeof this[a]=="function"&&(!i.store||r.name===i.store)){let s=c=>this[a](c);r.eventBus.addEventListener(i.eventName,s),this[Fr].push(()=>r.eventBus.removeEventListener(i.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[_e].forEach((e,r)=>this.unsubscribeFromStore(r)),this[Fr].forEach(e=>e()),this[Fr]=[]}unsubscribeFromStore(e){this[_e].has(e)&&this[_e].get(e)(),this[_e].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Ma=_e,Da=rt,za=Fr;pt.reduxProperties=new Map;pt.reduxReactiveProperties=new Set;pt.reduxEventListeners=new Map;function te(o){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];if(0)var i,a;throw Error("[Immer] minified error nr: "+o+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Se(o){return!!o&&!!o[M]}function ne(o){var e;return!!o&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===zl}(o)||Array.isArray(o)||!!o[Ka]||!!(!((e=o.constructor)===null||e===void 0)&&e[Ka])||_n(o)||kn(o))}function ot(o,e,r){r===void 0&&(r=!1),mt(o)===0?(r?Object.keys:ht)(o).forEach(function(n){r&&typeof n=="symbol"||e(n,o[n],o)}):o.forEach(function(n,i){return e(i,n,o)})}function mt(o){var e=o[M];return e?e.i>3?e.i-4:e.i:Array.isArray(o)?1:_n(o)?2:kn(o)?3:0}function ut(o,e){return mt(o)===2?o.has(e):Object.prototype.hasOwnProperty.call(o,e)}function kl(o,e){return mt(o)===2?o.get(e):o[e]}function Ga(o,e,r){var n=mt(o);n===2?o.set(e,r):n===3?o.add(r):o[e]=r}function qa(o,e){return o===e?o!==0||1/o==1/e:o!=o&&e!=e}function _n(o){return Ml&&o instanceof Map}function kn(o){return Dl&&o instanceof Set}function ke(o){return o.o||o.t}function Ln(o){if(Array.isArray(o))return Array.prototype.slice.call(o);var e=Xa(o);delete e[M];for(var r=ht(e),n=0;n<r.length;n++){var i=r[n],a=e[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:o[i]})}return Object.create(Object.getPrototypeOf(o),e)}function Tn(o,e){return e===void 0&&(e=!1),Fn(o)||Se(o)||!ne(o)||(mt(o)>1&&(o.set=o.add=o.clear=o.delete=Ll),Object.freeze(o),e&&ot(o,function(r,n){return Tn(n,!0)},!0)),o}function Ll(){te(2)}function Fn(o){return o==null||typeof o!="object"||Object.isFrozen(o)}function de(o){var e=In[o];return e||te(18,o),e}function Tl(o,e){In[o]||(In[o]=e)}function Rn(){return tr}function Cn(o,e){e&&(de("Patches"),o.u=[],o.s=[],o.v=e)}function Wr(o){$n(o),o.p.forEach(Fl),o.p=null}function $n(o){o===tr&&(tr=o.l)}function Ua(o){return tr={p:[],l:tr,h:o,m:!0,_:0}}function Fl(o){var e=o[M];e.i===0||e.i===1?e.j():e.g=!0}function En(o,e){e._=e.p.length;var r=e.p[0],n=o!==void 0&&o!==r;return e.h.O||de("ES5").S(e,o,n),n?(r[M].P&&(Wr(e),te(4)),ne(o)&&(o=Mr(e,o),e.l||Dr(e,o)),e.u&&de("Patches").M(r[M].t,o,e.u,e.s)):o=Mr(e,r,[]),Wr(e),e.u&&e.v(e.u,e.s),o!==Ja?o:void 0}function Mr(o,e,r){if(Fn(e))return e;var n=e[M];if(!n)return ot(e,function(c,l){return Ba(o,n,e,c,l,r)},!0),e;if(n.A!==o)return e;if(!n.P)return Dr(o,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Ln(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),ot(a,function(c,l){return Ba(o,n,i,c,l,r,s)}),Dr(o,i,!1),r&&o.u&&de("Patches").N(n,r,o.u,o.s)}return n.o}function Ba(o,e,r,n,i,a,s){if(Se(i)){var c=Mr(o,i,a&&e&&e.i!==3&&!ut(e.R,n)?a.concat(n):void 0);if(Ga(r,n,c),!Se(c))return;o.m=!1}else s&&r.add(i);if(ne(i)&&!Fn(i)){if(!o.h.D&&o._<1)return;Mr(o,i),e&&e.A.l||Dr(o,i)}}function Dr(o,e,r){r===void 0&&(r=!1),!o.l&&o.h.D&&o.m&&Tn(e,r)}function Nn(o,e){var r=o[M];return(r?ke(r):o)[e]}function Ha(o,e){if(e in o)for(var r=Object.getPrototypeOf(o);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function Le(o){o.P||(o.P=!0,o.l&&Le(o.l))}function An(o){o.o||(o.o=Ln(o.t))}function Pn(o,e,r){var n=_n(e)?de("MapSet").F(e,r):kn(e)?de("MapSet").T(e,r):o.O?function(i,a){var s=Array.isArray(i),c={i:s?1:0,A:a?a.A:Rn(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},l=c,f=rr;s&&(l=[c],f=er);var h=Proxy.revocable(l,f),u=h.revoke,m=h.proxy;return c.k=m,c.j=u,m}(e,r):de("ES5").J(e,r);return(r?r.A:Rn()).p.push(n),n}function Wl(o){return Se(o)||te(22,o),function e(r){if(!ne(r))return r;var n,i=r[M],a=mt(r);if(i){if(!i.P&&(i.i<4||!de("ES5").K(i)))return i.t;i.I=!0,n=ja(r,a),i.I=!1}else n=ja(r,a);return ot(n,function(s,c){i&&kl(i.t,s)===c||Ga(n,s,e(c))}),a===3?new Set(n):n}(o)}function ja(o,e){switch(e){case 2:return new Map(o);case 3:return Array.from(o)}return Ln(o)}function Ya(){function o(s,c){var l=a[s];return l?l.enumerable=c:a[s]=l={configurable:!0,enumerable:c,get:function(){var f=this[M];return rr.get(f,s)},set:function(f){var h=this[M];rr.set(h,s,f)}},l}function e(s){for(var c=s.length-1;c>=0;c--){var l=s[c][M];if(!l.P)switch(l.i){case 5:n(l)&&Le(l);break;case 4:r(l)&&Le(l)}}}function r(s){for(var c=s.t,l=s.k,f=ht(l),h=f.length-1;h>=0;h--){var u=f[h];if(u!==M){var m=c[u];if(m===void 0&&!ut(c,u))return!0;var g=l[u],y=g&&g[M];if(y?y.t!==m:!qa(g,m))return!0}}var v=!!c[M];return f.length!==ht(c).length+(v?0:1)}function n(s){var c=s.k;if(c.length!==s.t.length)return!0;var l=Object.getOwnPropertyDescriptor(c,c.length-1);if(l&&!l.get)return!0;for(var f=0;f<c.length;f++)if(!c.hasOwnProperty(f))return!0;return!1}function i(s){s.g&&te(3,JSON.stringify(ke(s)))}var a={};Tl("ES5",{J:function(s,c){var l=Array.isArray(s),f=function(u,m){if(u){for(var g=Array(m.length),y=0;y<m.length;y++)Object.defineProperty(g,""+y,o(y,!0));return g}var v=Xa(m);delete v[M];for(var O=ht(v),w=0;w<O.length;w++){var C=O[w];v[C]=o(C,u||!!v[C].enumerable)}return Object.create(Object.getPrototypeOf(m),v)}(l,s),h={i:l?5:4,A:c?c.A:Rn(),P:!1,I:!1,R:{},l:c,t:s,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,M,{value:h,writable:!0}),f},S:function(s,c,l){l?Se(c)&&c[M].A===s&&e(s.p):(s.u&&function f(h){if(h&&typeof h=="object"){var u=h[M];if(u){var m=u.t,g=u.k,y=u.R,v=u.i;if(v===4)ot(g,function(b){b!==M&&(m[b]!==void 0||ut(m,b)?y[b]||f(g[b]):(y[b]=!0,Le(u)))}),ot(m,function(b){g[b]!==void 0||ut(g,b)||(y[b]=!1,Le(u))});else if(v===5){if(n(u)&&(Le(u),y.length=!0),g.length<m.length)for(var O=g.length;O<m.length;O++)y[O]=!1;else for(var w=m.length;w<g.length;w++)y[w]=!0;for(var C=Math.min(g.length,m.length),x=0;x<C;x++)g.hasOwnProperty(x)||(y[x]=!0),y[x]===void 0&&f(g[x])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):n(s)}})}var Va,tr,Wn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Ml=typeof Map<"u",Dl=typeof Set<"u",Za=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Ja=Wn?Symbol.for("immer-nothing"):((Va={})["immer-nothing"]=!0,Va),Ka=Wn?Symbol.for("immer-draftable"):"__$immer_draftable",M=Wn?Symbol.for("immer-state"):"__$immer_state";var zl=""+Object.prototype.constructor,ht=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(o){return Object.getOwnPropertyNames(o).concat(Object.getOwnPropertySymbols(o))}:Object.getOwnPropertyNames,Xa=Object.getOwnPropertyDescriptors||function(o){var e={};return ht(o).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(o,r)}),e},In={},rr={get:function(o,e){if(e===M)return o;var r=ke(o);if(!ut(r,e))return function(i,a,s){var c,l=Ha(a,s);return l?"value"in l?l.value:(c=l.get)===null||c===void 0?void 0:c.call(i.k):void 0}(o,r,e);var n=r[e];return o.I||!ne(n)?n:n===Nn(o.t,e)?(An(o),o.o[e]=Pn(o.A.h,n,o)):n},has:function(o,e){return e in ke(o)},ownKeys:function(o){return Reflect.ownKeys(ke(o))},set:function(o,e,r){var n=Ha(ke(o),e);if(n?.set)return n.set.call(o.k,r),!0;if(!o.P){var i=Nn(ke(o),e),a=i?.[M];if(a&&a.t===r)return o.o[e]=r,o.R[e]=!1,!0;if(qa(r,i)&&(r!==void 0||ut(o.t,e)))return!0;An(o),Le(o)}return o.o[e]===r&&(r!==void 0||e in o.o)||Number.isNaN(r)&&Number.isNaN(o.o[e])||(o.o[e]=r,o.R[e]=!0),!0},deleteProperty:function(o,e){return Nn(o.t,e)!==void 0||e in o.t?(o.R[e]=!1,An(o),Le(o)):delete o.R[e],o.o&&delete o.o[e],!0},getOwnPropertyDescriptor:function(o,e){var r=ke(o),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:o.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){te(11)},getPrototypeOf:function(o){return Object.getPrototypeOf(o.t)},setPrototypeOf:function(){te(12)}},er={};ot(rr,function(o,e){er[o]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),er.deleteProperty=function(o,e){return er.set.call(this,o,e,void 0)},er.set=function(o,e,r){return rr.set.call(this,o[0],e,r,o[0])};var Ul=function(){function o(r){var n=this;this.O=Za,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var c=a;a=i;var l=n;return function(v){var O=this;v===void 0&&(v=c);for(var w=arguments.length,C=Array(w>1?w-1:0),x=1;x<w;x++)C[x-1]=arguments[x];return l.produce(v,function(b){var S;return(S=a).call.apply(S,[O,b].concat(C))})}}var f;if(typeof a!="function"&&te(6),s!==void 0&&typeof s!="function"&&te(7),ne(i)){var h=Ua(n),u=Pn(n,i,void 0),m=!0;try{f=a(u),m=!1}finally{m?Wr(h):$n(h)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(v){return Cn(h,s),En(v,h)},function(v){throw Wr(h),v}):(Cn(h,s),En(f,h))}if(!i||typeof i!="object"){if((f=a(i))===void 0&&(f=i),f===Ja&&(f=void 0),n.D&&Tn(f,!0),s){var g=[],y=[];de("Patches").M(i,f,g,y),s(g,y)}return f}te(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(f){for(var h=arguments.length,u=Array(h>1?h-1:0),m=1;m<h;m++)u[m-1]=arguments[m];return n.produceWithPatches(f,function(g){return i.apply(void 0,[g].concat(u))})};var s,c,l=n.produce(i,a,function(f,h){s=f,c=h});return typeof Promise<"u"&&l instanceof Promise?l.then(function(f){return[f,s,c]}):[l,s,c]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=o.prototype;return e.createDraft=function(r){ne(r)||te(8),Se(r)&&(r=Wl(r));var n=Ua(this),i=Pn(this,r,void 0);return i[M].C=!0,$n(n),i},e.finishDraft=function(r,n){var i=r&&r[M],a=i.A;return Cn(a,n),En(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!Za&&te(20),this.O=r},e.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}i>-1&&(n=n.slice(i+1));var s=de("Patches").$;return Se(r)?s(r,n):this.produce(r,function(c){return s(c,n)})},o}(),X=new Ul,Bl=X.produce,Nm=X.produceWithPatches.bind(X),Am=X.setAutoFreeze.bind(X),Rm=X.setUseProxies.bind(X),$m=X.applyPatches.bind(X),Pm=X.createDraft.bind(X),Im=X.finishDraft.bind(X),zr=Bl;function Te(o){"@babel/helpers - typeof";return Te=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Te(o)}function Mn(o,e){if(Te(o)!=="object"||o===null)return o;var r=o[Symbol.toPrimitive];if(r!==void 0){var n=r.call(o,e||"default");if(Te(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(o)}function Dn(o){var e=Mn(o,"string");return Te(e)==="symbol"?e:String(e)}function zn(o,e,r){return e=Dn(e),e in o?Object.defineProperty(o,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):o[e]=r,o}function Qa(o,e){var r=Object.keys(o);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(o);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(o,i).enumerable})),r.push.apply(r,n)}return r}function Ur(o){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Qa(Object(r),!0).forEach(function(n){zn(o,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(r)):Qa(Object(r)).forEach(function(n){Object.defineProperty(o,n,Object.getOwnPropertyDescriptor(r,n))})}return o}function V(o){return"Minified Redux error #"+o+"; visit https://redux.js.org/Errors?code="+o+" for the full message or use the non-minified dev environment for full errors. "}var es=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Un=function(){return Math.random().toString(36).substring(7).split("").join(".")},Br={INIT:"@@redux/INIT"+Un(),REPLACE:"@@redux/REPLACE"+Un(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Un()}};function Hl(o){if(typeof o!="object"||o===null)return!1;for(var e=o;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(o)===e}function Bn(o,e,r){var n;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(V(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(V(1));return r(Bn)(o,e)}if(typeof o!="function")throw new Error(V(2));var i=o,a=e,s=[],c=s,l=!1;function f(){c===s&&(c=s.slice())}function h(){if(l)throw new Error(V(3));return a}function u(v){if(typeof v!="function")throw new Error(V(4));if(l)throw new Error(V(5));var O=!0;return f(),c.push(v),function(){if(O){if(l)throw new Error(V(6));O=!1,f();var C=c.indexOf(v);c.splice(C,1),s=null}}}function m(v){if(!Hl(v))throw new Error(V(7));if(typeof v.type>"u")throw new Error(V(8));if(l)throw new Error(V(9));try{l=!0,a=i(a,v)}finally{l=!1}for(var O=s=c,w=0;w<O.length;w++){var C=O[w];C()}return v}function g(v){if(typeof v!="function")throw new Error(V(10));i=v,m({type:Br.REPLACE})}function y(){var v,O=u;return v={subscribe:function(C){if(typeof C!="object"||C===null)throw new Error(V(11));function x(){C.next&&C.next(h())}x();var b=O(x);return{unsubscribe:b}}},v[es]=function(){return this},v}return m({type:Br.INIT}),n={dispatch:m,subscribe:u,getState:h,replaceReducer:g},n[es]=y,n}function jl(o){Object.keys(o).forEach(function(e){var r=o[e],n=r(void 0,{type:Br.INIT});if(typeof n>"u")throw new Error(V(12));if(typeof r(void 0,{type:Br.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(V(13))})}function ts(o){for(var e=Object.keys(o),r={},n=0;n<e.length;n++){var i=e[n];typeof o[i]=="function"&&(r[i]=o[i])}var a=Object.keys(r),s,c;try{jl(r)}catch(l){c=l}return function(f,h){if(f===void 0&&(f={}),c)throw c;if(0)var u;for(var m=!1,g={},y=0;y<a.length;y++){var v=a[y],O=r[v],w=f[v],C=O(w,h);if(typeof C>"u"){var x=h&&h.type;throw new Error(V(14))}g[v]=C,m=m||C!==w}return m=m||a.length!==Object.keys(f).length,m?g:f}}function gt(){for(var o=arguments.length,e=new Array(o),r=0;r<o;r++)e[r]=arguments[r];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function rs(){for(var o=arguments.length,e=new Array(o),r=0;r<o;r++)e[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(V(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},c=e.map(function(l){return l(s)});return a=gt.apply(void 0,c)(i.dispatch),Ur(Ur({},i),{},{dispatch:a})}}}function os(o){var e=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(c){return typeof c=="function"?c(i,a,o):s(c)}}};return e}var ns=os();ns.withExtraArgument=os;var Hn=ns;var ls=function(){var o=function(e,r){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},o(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");o(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Vl=function(o,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(f){return function(h){return l([f,h])}}function l(f){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=f[0]&2?i.return:f[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,f[1])).done)return a;switch(i=0,a&&(f=[f[0]&2,a.value]),f[0]){case 0:case 1:a=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++,i=f[1],f=[0];continue;case 7:f=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){r.label=f[1];break}if(f[0]===6&&r.label<a[1]){r.label=a[1],a=f;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(f);break}a[2]&&r.ops.pop(),r.trys.pop();continue}f=e.call(o,r)}catch(h){f=[6,h],i=0}finally{n=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},yt=function(o,e){for(var r=0,n=e.length,i=o.length;r<n;r++,i++)o[i]=e[r];return o},Zl=Object.defineProperty,Kl=Object.defineProperties,Gl=Object.getOwnPropertyDescriptors,is=Object.getOwnPropertySymbols,ql=Object.prototype.hasOwnProperty,Yl=Object.prototype.propertyIsEnumerable,as=function(o,e,r){return e in o?Zl(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r},Fe=function(o,e){for(var r in e||(e={}))ql.call(e,r)&&as(o,r,e[r]);if(is)for(var n=0,i=is(e);n<i.length;n++){var r=i[n];Yl.call(e,r)&&as(o,r,e[r])}return o},jn=function(o,e){return Kl(o,Gl(e))},Jl=function(o,e,r){return new Promise(function(n,i){var a=function(l){try{c(r.next(l))}catch(f){i(f)}},s=function(l){try{c(r.throw(l))}catch(f){i(f)}},c=function(l){return l.done?n(l.value):Promise.resolve(l.value).then(a,s)};c((r=r.apply(o,e)).next())})};var Xl=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?gt:gt.apply(null,arguments)},qm=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(o){return o}};function Ql(o){if(typeof o!="object"||o===null)return!1;var e=Object.getPrototypeOf(o);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}var ed=function(o){ls(e,o);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=o.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return o.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,yt([void 0],r[0].concat(this)))):new(e.bind.apply(e,yt([void 0],r.concat(this))))},e}(Array),td=function(o){ls(e,o);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=o.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return o.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,yt([void 0],r[0].concat(this)))):new(e.bind.apply(e,yt([void 0],r.concat(this))))},e}(Array);function Kn(o){return ne(o)?zr(o,function(){}):o}function rd(o){return typeof o=="boolean"}function od(){return function(e){return nd(e)}}function nd(o){o===void 0&&(o={});var e=o.thunk,r=e===void 0?!0:e,n=o.immutableCheck,i=n===void 0?!0:n,a=o.serializableCheck,s=a===void 0?!0:a,c=new ed;if(r&&(rd(r)?c.push(Hn):c.push(Hn.withExtraArgument(r.extraArgument))),0){if(i)var l;if(s)var f}return c}var Vn=!0;function ds(o){var e=od(),r=o||{},n=r.reducer,i=n===void 0?void 0:n,a=r.middleware,s=a===void 0?e():a,c=r.devTools,l=c===void 0?!0:c,f=r.preloadedState,h=f===void 0?void 0:f,u=r.enhancers,m=u===void 0?void 0:u,g;if(typeof i=="function")g=i;else if(Ql(i))g=ts(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var y=s;if(typeof y=="function"&&(y=y(e),!Vn&&!Array.isArray(y)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Vn&&y.some(function(b){return typeof b!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=rs.apply(void 0,y),O=gt;l&&(O=Xl(Fe({trace:!Vn},typeof l=="object"&&l)));var w=new td(v),C=w;Array.isArray(m)?C=yt([v],m):typeof m=="function"&&(C=m(w));var x=O.apply(void 0,C);return Bn(g,h,x)}function We(o,e){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var a=e.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return Fe(Fe({type:o,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:o,payload:n[0]}}return r.toString=function(){return""+o},r.type=o,r.match=function(n){return n.type===o},r}function fs(o){var e={},r=[],n,i={addCase:function(a,s){var c=typeof a=="string"?a:a.type;if(c in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[c]=s,i},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return o(i),[e,r,n]}function id(o){return typeof o=="function"}function ad(o,e,r,n){r===void 0&&(r=[]);var i=typeof e=="function"?fs(e):[e,r,n],a=i[0],s=i[1],c=i[2],l;if(id(o))l=function(){return Kn(o())};else{var f=Kn(o);l=function(){return f}}function h(u,m){u===void 0&&(u=l());var g=yt([a[m.type]],s.filter(function(y){var v=y.matcher;return v(m)}).map(function(y){var v=y.reducer;return v}));return g.filter(function(y){return!!y}).length===0&&(g=[c]),g.reduce(function(y,v){if(v)if(Se(y)){var O=y,w=v(O,m);return w===void 0?y:w}else{if(ne(y))return zr(y,function(C){return v(C,m)});var w=v(y,m);if(w===void 0){if(y===null)return y;throw Error("A case reducer on a non-draftable value must not return undefined")}return w}return y},u)}return h.getInitialState=l,h}function sd(o,e){return o+"/"+e}function ps(o){var e=o.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof o.initialState=="function"?o.initialState:Kn(o.initialState),n=o.reducers||{},i=Object.keys(n),a={},s={},c={};i.forEach(function(h){var u=n[h],m=sd(e,h),g,y;"reducer"in u?(g=u.reducer,y=u.prepare):g=u,a[h]=g,s[m]=g,c[h]=y?We(m,y):We(m)});function l(){var h=typeof o.extraReducers=="function"?fs(o.extraReducers):[o.extraReducers],u=h[0],m=u===void 0?{}:u,g=h[1],y=g===void 0?[]:g,v=h[2],O=v===void 0?void 0:v,w=Fe(Fe({},m),s);return ad(r,function(C){for(var x in w)C.addCase(x,w[x]);for(var b=0,S=y;b<S.length;b++){var A=S[b];C.addMatcher(A.matcher,A.reducer)}O&&C.addDefaultCase(O)})}var f;return{name:e,reducer:function(h,u){return f||(f=l()),f(h,u)},actions:c,caseReducers:a,getInitialState:function(){return f||(f=l()),f.getInitialState()}}}var cd="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",ld=function(o){o===void 0&&(o=21);for(var e="",r=o;r--;)e+=cd[Math.random()*64|0];return e},dd=["name","message","stack","code"],Zn=function(){function o(e,r){this.payload=e,this.meta=r}return o}(),ss=function(){function o(e,r){this.payload=e,this.meta=r}return o}(),fd=function(o){if(typeof o=="object"&&o!==null){for(var e={},r=0,n=dd;r<n.length;r++){var i=n[r];typeof o[i]=="string"&&(e[i]=o[i])}return e}return{message:String(o)}},Qm=function(){function o(e,r,n){var i=We(e+"/fulfilled",function(h,u,m,g){return{payload:h,meta:jn(Fe({},g||{}),{arg:m,requestId:u,requestStatus:"fulfilled"})}}),a=We(e+"/pending",function(h,u,m){return{payload:void 0,meta:jn(Fe({},m||{}),{arg:u,requestId:h,requestStatus:"pending"})}}),s=We(e+"/rejected",function(h,u,m,g,y){return{payload:g,error:(n&&n.serializeError||fd)(h||"Rejected"),meta:jn(Fe({},y||{}),{arg:m,requestId:u,rejectedWithValue:!!g,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),c=!1,l=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function f(h){return function(u,m,g){var y=n?.idGenerator?n.idGenerator(h):ld(),v=new l,O,w=!1;function C(b){O=b,v.abort()}var x=function(){return Jl(this,null,function(){var b,S,A,L,K,F,N;return Vl(this,function(R){switch(R.label){case 0:return R.trys.push([0,4,,5]),L=(b=n?.condition)==null?void 0:b.call(n,h,{getState:m,extra:g}),ud(L)?[4,L]:[3,2];case 1:L=R.sent(),R.label=2;case 2:if(L===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return w=!0,K=new Promise(function(_,j){return v.signal.addEventListener("abort",function(){return j({name:"AbortError",message:O||"Aborted"})})}),u(a(y,h,(S=n?.getPendingMeta)==null?void 0:S.call(n,{requestId:y,arg:h},{getState:m,extra:g}))),[4,Promise.race([K,Promise.resolve(r(h,{dispatch:u,getState:m,extra:g,requestId:y,signal:v.signal,abort:C,rejectWithValue:function(_,j){return new Zn(_,j)},fulfillWithValue:function(_,j){return new ss(_,j)}})).then(function(_){if(_ instanceof Zn)throw _;return _ instanceof ss?i(_.payload,y,h,_.meta):i(_,y,h)})])];case 3:return A=R.sent(),[3,5];case 4:return F=R.sent(),A=F instanceof Zn?s(null,y,h,F.payload,F.meta):s(F,y,h),[3,5];case 5:return N=n&&!n.dispatchConditionRejection&&s.match(A)&&A.meta.condition,N||u(A),[2,A]}})})}();return Object.assign(x,{abort:C,requestId:y,arg:h,unwrap:function(){return x.then(pd)}})}}return Object.assign(f,{pending:a,rejected:s,fulfilled:i,typePrefix:e})}return o.withTypes=function(){return o},o}();function pd(o){if(o.meta&&o.meta.rejectedWithValue)throw o.payload;if(o.error)throw o.error;return o.payload}function ud(o){return o!==null&&typeof o=="object"&&typeof o.then=="function"}var us="listener",hs="completed",ms="cancelled",eg="task-"+ms,tg="task-"+hs,rg=us+"-"+ms,og=us+"-"+hs;var Gn="listenerMiddleware";var ng=We(Gn+"/add"),ig=We(Gn+"/removeAll"),ag=We(Gn+"/remove");var cs,sg=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(o){return(cs||(cs=Promise.resolve())).then(o).catch(function(e){return setTimeout(function(){throw e},0)})},hd=function(o){return function(e){setTimeout(e,o)}},cg=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:hd(10);Ya();window.ftReduxStores||(window.ftReduxStores={});var qn=class o{static get(e){var r;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[n];if(tt(a))return a;if(i==null)return;let s=ps({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),c=ds({reducer:(l,f)=>f.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof f.type=="string"&&f.type.startsWith("DEFAULT_VALUE_SETTER__")?{...l,...f.overwrites}:s.reducer(l,f)});return window.ftReduxStores[i.name]=new o(s,c)}constructor(e,r){this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Qt,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,i,a)=>{let s=i,c=n[s];return c?(...l)=>{let f=c(...l);return this.reduxStore.dispatch(f),f}:l=>{this.setState({[s]:l})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function md(){var o;for(let e of Object.values((o=window.ftReduxStores)!==null&&o!==void 0?o:{}))tt(e)&&e.clear()}var Qn={};k(Qn,{scrollHelper:()=>gd});var Jn,Hr=new Map,Xn=class{lock(e,r){if(r){let n=Hr.get(r);if(n==null||n===e)return Hr.set(r,e),r}}release(e,r){r&&Hr.get(r)===e&&Hr.delete(r)}findFirstScrollableParent(e){let r,n=i=>{var a;i.stopPropagation();let s,c;for(let l of i.composedPath()){let f=l,h=this.elementCanScroll(f);if(h&&f.clientHeight&&f.clientHeight<f.scrollHeight){s=f;break}else h&&c==null&&(c=f)}r=(a=s??c)!==null&&a!==void 0?a:document.body};return e.addEventListener("find-scrollable-parent",n),e.dispatchEvent(new Event("find-scrollable-parent",{composed:!0})),e.removeEventListener("find-scrollable-parent",n),r}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,r){let n=0;for(;r&&r.offsetParent!==e.offsetParent;)n+=r.offsetTop,r=r.offsetParent;return n+r.offsetTop-e.offsetTop}computeTopOffsetRatio(e,r){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return r;default:return 0}}scrollIntoViewIfPossible(e,r){let n=this.findFirstScrollableParent(e);if(e&&this.lock(this,n)){let i=this.getAbsoluteScrollOffset(n,e),a=i-n.clientHeight+e.clientHeight,s=i,c=vo(0,(s-n.scrollTop)/(s-a),1),l=this.computeTopOffsetRatio(r?.position,c)*(a-s)+s;n.scrollTo({behavior:r?.behavior,top:l})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(Jn=window.FluidTopicsScrollHelper)!==null&&Jn!==void 0?Jn:new Xn;var gd=window.FluidTopicsScrollHelper;var ei={};k(ei,{shadowQuerySelector:()=>yd,shadowQuerySelectorAll:()=>bd});function yd(o,e,...r){var n;let i=o.querySelector(e);for(let a of r)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(a);return i}function bd(o,e,...r){let n=[...o.querySelectorAll(e)];for(let i of r)n=n.flatMap(a=>{var s,c;return[...(c=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(i))!==null&&c!==void 0?c:[]]});return n}var ti={};k(ti,{serializeRequest:()=>vd});function xd(o){return`"${o}"`}function vd(o,e){var r,n,i,a;let s=new URLSearchParams({"content-lang":(r=e.contentLocale)!==null&&r!==void 0?r:"all"});if(((n=e.query)===null||n===void 0?void 0:n.length)>0&&s.append("query",e.query),e.scope&&e.scope!=="DEFAULT"&&s.append("scope",e.scope.toLowerCase()),e.virtualField&&e.virtualField!=="EVERYWHERE"&&s.append("virtual-field",e.virtualField.toLowerCase()),e.periodFilter){let l=e.periodFilter.period,f=l?`_${l.from}_${l.to}`:"";s.append("period",e.periodFilter.periodType.toLowerCase()+f)}if(((i=e.sort)===null||i===void 0?void 0:i.length)>0&&e.sort[0].key==="ft:lastEdition"&&s.append("sort","last_update"),((a=e.filters)===null||a===void 0?void 0:a.length)>0){let l=e.filters.map(f=>{let h=f.values.map(u=>u.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*")).map(u=>encodeURIComponent(xd(u))).join("_");return`${f.key}~${h}`}).join("*");s.append("filters",l)}return new URL(`${o.replace(/\/+$/,"")}/search?${s.toString()}`).href}var ri={};k(ri,{toFtFormComponent:()=>Sd});var jr=Symbol("elementInternals");function Sd(o,e){class r extends o{static get formAssociated(){return!0}get form(){return this[jr].form}constructor(...i){super(i),this[jr]=this.attachInternals(),this[jr].role=e}setFormValue(i){this[jr].setFormValue(i)}}return r}var ni={};k(ni,{DateFormatter:()=>oi});var oi=class{static format(e,r,n,i){return window.moment?window.moment(e).locale(r).format(this.getDateFormat(n,i)):e}static getDateFormat(e,r){return e?r?"lll":"ll":r?"L LT":"L"}};var ii,ai,si,ci,Od=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((si=(ai=(ii=window.safari)===null||ii===void 0?void 0:ii.pushNotification)===null||ai===void 0?void 0:ai.toString())!==null&&si!==void 0?si:"")==="[object SafariRemoteNotification]",wd="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(ci=window.ftGlobals)!==null&&ci!==void 0?ci:{lit:ao,litDecorators:so,litRepeat:co,litClassMap:lo,litStyleMap:fo,litUnsafeHTML:po,wcUtils:{...go,...ho,...bo,...ni,...xo,...wo,...Xo,...rn,...hn,...Jo,...bn,...gn,...Ta,...So,...vn,...Sn,...Wa,...wn,...Yn,...mn,...Qn,...ei,...ti,...ri,isSafari:Od,isTouchScreen:wd,setVariable:B}};function gs(o){let e=Ht[o];return $`
49
+ `;var Wa={};var wn={};k(wn,{ParametrizedLabelResolver:()=>On});var On=class o{constructor(e,r){this.defaultLabels=e,this.labels=r}resolve(e,...r){var n,i;e=this.resolvePluralKey(e,r);let a=(i=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&i!==void 0?i:"";return o.replaceParameters(a,...r)}static replaceParameters(e,...r){return r.forEach((n,i)=>e=e.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>o.formatValue(n,s))),e}resolvePluralKey(e,r){for(let n of r)if(typeof n=="number"){let i=`${String(e)}[\\=${n}]`;if(i in this.labels||i in this.defaultLabels)return i}return e}static formatValue(e,r){return e instanceof Date?o.formatDate(e,r):e??""}static formatDate(e,r){let n=i=>r?.includes("date")?e.toLocaleDateString(i):r?.includes("time")?e.toLocaleTimeString(i):e.toLocaleString(i);try{return n(document.documentElement.lang)}catch{return n()}}};var Yn={};k(Yn,{FtCommandQueue:()=>Qt,FtLitElementRedux:()=>pt,FtReduxStore:()=>qn,clearAllStores:()=>md,isFtReduxStore:()=>tt,redux:()=>Il,reduxEventListener:()=>_l,reduxReactive:()=>Pl});var Pl=()=>(o,e)=>{var r;let n=o.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(r=n.reduxReactiveProperties)===null||r===void 0||r.add(e)},Il=o=>{let e=o??{};return(r,n)=>{var i;let a={hasChanged:Ut,attribute:!1,...e};P(a)(r,n);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(i=e.selector)!==null&&i!==void 0?i:c=>c[n],store:e.store})}},_l=o=>(e,r)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(r,o)};var Qt=class{constructor(){this.queue=[]}add(e,r=!1){r&&(this.queue=this.queue.filter(n=>n.type!==e.type)),this.queue.push(e)}consume(e){let r=this.queue.find(n=>n.type===e);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}};function tt(o){var e;return(e=o?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Ma,Da,za,Fr=Symbol("internalReduxEventsUnsubscribers"),_e=Symbol("internalStoresUnsubscribers"),rt=Symbol("internalStores"),pt=class extends H{constructor(){super(...arguments),this[Ma]=new Map,this[Da]=new Map,this[za]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(r=>e.has(r))&&this.updateFromStores()}getUnnamedStore(){if(this[rt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[rt].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[rt].get(e)}addStore(e,r){var n;r=(n=r??(tt(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(r),this.setupStore(r,e)}removeStore(e){let r=typeof e=="string"?e:e.name;this.unsubscribeFromStore(r),this[rt].delete(r)}setupStore(e,r){this[rt].set(e,r),this.subscribeToStore(e,r),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[rt].forEach((e,r)=>this.subscribeToStore(r,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,r)=>{let n=this.constructor.getPropertyOptions(r);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:r)){let i=this.getStore(e.store);i&&(e.store?this[_e].has(e.store):this[_e].size>0)&&(this[r]=e.selector(i.getState(),this))}})}subscribeToStore(e,r){var n;this[_e].set(e,r.subscribe(()=>this.updateFromStores())),tt(r)&&r.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((i,a)=>{if(typeof this[a]=="function"&&(!i.store||r.name===i.store)){let s=c=>this[a](c);r.eventBus.addEventListener(i.eventName,s),this[Fr].push(()=>r.eventBus.removeEventListener(i.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[_e].forEach((e,r)=>this.unsubscribeFromStore(r)),this[Fr].forEach(e=>e()),this[Fr]=[]}unsubscribeFromStore(e){this[_e].has(e)&&this[_e].get(e)(),this[_e].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Ma=_e,Da=rt,za=Fr;pt.reduxProperties=new Map;pt.reduxReactiveProperties=new Set;pt.reduxEventListeners=new Map;function te(o){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];if(0)var i,a;throw Error("[Immer] minified error nr: "+o+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Se(o){return!!o&&!!o[M]}function ne(o){var e;return!!o&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===zl}(o)||Array.isArray(o)||!!o[Ka]||!!(!((e=o.constructor)===null||e===void 0)&&e[Ka])||_n(o)||kn(o))}function ot(o,e,r){r===void 0&&(r=!1),mt(o)===0?(r?Object.keys:ht)(o).forEach(function(n){r&&typeof n=="symbol"||e(n,o[n],o)}):o.forEach(function(n,i){return e(i,n,o)})}function mt(o){var e=o[M];return e?e.i>3?e.i-4:e.i:Array.isArray(o)?1:_n(o)?2:kn(o)?3:0}function ut(o,e){return mt(o)===2?o.has(e):Object.prototype.hasOwnProperty.call(o,e)}function kl(o,e){return mt(o)===2?o.get(e):o[e]}function Ga(o,e,r){var n=mt(o);n===2?o.set(e,r):n===3?o.add(r):o[e]=r}function qa(o,e){return o===e?o!==0||1/o==1/e:o!=o&&e!=e}function _n(o){return Ml&&o instanceof Map}function kn(o){return Dl&&o instanceof Set}function ke(o){return o.o||o.t}function Ln(o){if(Array.isArray(o))return Array.prototype.slice.call(o);var e=Xa(o);delete e[M];for(var r=ht(e),n=0;n<r.length;n++){var i=r[n],a=e[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:o[i]})}return Object.create(Object.getPrototypeOf(o),e)}function Tn(o,e){return e===void 0&&(e=!1),Fn(o)||Se(o)||!ne(o)||(mt(o)>1&&(o.set=o.add=o.clear=o.delete=Ll),Object.freeze(o),e&&ot(o,function(r,n){return Tn(n,!0)},!0)),o}function Ll(){te(2)}function Fn(o){return o==null||typeof o!="object"||Object.isFrozen(o)}function de(o){var e=In[o];return e||te(18,o),e}function Tl(o,e){In[o]||(In[o]=e)}function Rn(){return tr}function Cn(o,e){e&&(de("Patches"),o.u=[],o.s=[],o.v=e)}function Wr(o){$n(o),o.p.forEach(Fl),o.p=null}function $n(o){o===tr&&(tr=o.l)}function Ua(o){return tr={p:[],l:tr,h:o,m:!0,_:0}}function Fl(o){var e=o[M];e.i===0||e.i===1?e.j():e.g=!0}function En(o,e){e._=e.p.length;var r=e.p[0],n=o!==void 0&&o!==r;return e.h.O||de("ES5").S(e,o,n),n?(r[M].P&&(Wr(e),te(4)),ne(o)&&(o=Mr(e,o),e.l||Dr(e,o)),e.u&&de("Patches").M(r[M].t,o,e.u,e.s)):o=Mr(e,r,[]),Wr(e),e.u&&e.v(e.u,e.s),o!==Ja?o:void 0}function Mr(o,e,r){if(Fn(e))return e;var n=e[M];if(!n)return ot(e,function(c,l){return Ba(o,n,e,c,l,r)},!0),e;if(n.A!==o)return e;if(!n.P)return Dr(o,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Ln(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),ot(a,function(c,l){return Ba(o,n,i,c,l,r,s)}),Dr(o,i,!1),r&&o.u&&de("Patches").N(n,r,o.u,o.s)}return n.o}function Ba(o,e,r,n,i,a,s){if(Se(i)){var c=Mr(o,i,a&&e&&e.i!==3&&!ut(e.R,n)?a.concat(n):void 0);if(Ga(r,n,c),!Se(c))return;o.m=!1}else s&&r.add(i);if(ne(i)&&!Fn(i)){if(!o.h.D&&o._<1)return;Mr(o,i),e&&e.A.l||Dr(o,i)}}function Dr(o,e,r){r===void 0&&(r=!1),!o.l&&o.h.D&&o.m&&Tn(e,r)}function Nn(o,e){var r=o[M];return(r?ke(r):o)[e]}function Ha(o,e){if(e in o)for(var r=Object.getPrototypeOf(o);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function Le(o){o.P||(o.P=!0,o.l&&Le(o.l))}function An(o){o.o||(o.o=Ln(o.t))}function Pn(o,e,r){var n=_n(e)?de("MapSet").F(e,r):kn(e)?de("MapSet").T(e,r):o.O?function(i,a){var s=Array.isArray(i),c={i:s?1:0,A:a?a.A:Rn(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},l=c,f=rr;s&&(l=[c],f=er);var h=Proxy.revocable(l,f),u=h.revoke,m=h.proxy;return c.k=m,c.j=u,m}(e,r):de("ES5").J(e,r);return(r?r.A:Rn()).p.push(n),n}function Wl(o){return Se(o)||te(22,o),function e(r){if(!ne(r))return r;var n,i=r[M],a=mt(r);if(i){if(!i.P&&(i.i<4||!de("ES5").K(i)))return i.t;i.I=!0,n=ja(r,a),i.I=!1}else n=ja(r,a);return ot(n,function(s,c){i&&kl(i.t,s)===c||Ga(n,s,e(c))}),a===3?new Set(n):n}(o)}function ja(o,e){switch(e){case 2:return new Map(o);case 3:return Array.from(o)}return Ln(o)}function Ya(){function o(s,c){var l=a[s];return l?l.enumerable=c:a[s]=l={configurable:!0,enumerable:c,get:function(){var f=this[M];return rr.get(f,s)},set:function(f){var h=this[M];rr.set(h,s,f)}},l}function e(s){for(var c=s.length-1;c>=0;c--){var l=s[c][M];if(!l.P)switch(l.i){case 5:n(l)&&Le(l);break;case 4:r(l)&&Le(l)}}}function r(s){for(var c=s.t,l=s.k,f=ht(l),h=f.length-1;h>=0;h--){var u=f[h];if(u!==M){var m=c[u];if(m===void 0&&!ut(c,u))return!0;var g=l[u],y=g&&g[M];if(y?y.t!==m:!qa(g,m))return!0}}var v=!!c[M];return f.length!==ht(c).length+(v?0:1)}function n(s){var c=s.k;if(c.length!==s.t.length)return!0;var l=Object.getOwnPropertyDescriptor(c,c.length-1);if(l&&!l.get)return!0;for(var f=0;f<c.length;f++)if(!c.hasOwnProperty(f))return!0;return!1}function i(s){s.g&&te(3,JSON.stringify(ke(s)))}var a={};Tl("ES5",{J:function(s,c){var l=Array.isArray(s),f=function(u,m){if(u){for(var g=Array(m.length),y=0;y<m.length;y++)Object.defineProperty(g,""+y,o(y,!0));return g}var v=Xa(m);delete v[M];for(var O=ht(v),w=0;w<O.length;w++){var C=O[w];v[C]=o(C,u||!!v[C].enumerable)}return Object.create(Object.getPrototypeOf(m),v)}(l,s),h={i:l?5:4,A:c?c.A:Rn(),P:!1,I:!1,R:{},l:c,t:s,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,M,{value:h,writable:!0}),f},S:function(s,c,l){l?Se(c)&&c[M].A===s&&e(s.p):(s.u&&function f(h){if(h&&typeof h=="object"){var u=h[M];if(u){var m=u.t,g=u.k,y=u.R,v=u.i;if(v===4)ot(g,function(b){b!==M&&(m[b]!==void 0||ut(m,b)?y[b]||f(g[b]):(y[b]=!0,Le(u)))}),ot(m,function(b){g[b]!==void 0||ut(g,b)||(y[b]=!1,Le(u))});else if(v===5){if(n(u)&&(Le(u),y.length=!0),g.length<m.length)for(var O=g.length;O<m.length;O++)y[O]=!1;else for(var w=m.length;w<g.length;w++)y[w]=!0;for(var C=Math.min(g.length,m.length),x=0;x<C;x++)g.hasOwnProperty(x)||(y[x]=!0),y[x]===void 0&&f(g[x])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):n(s)}})}var Va,tr,Wn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Ml=typeof Map<"u",Dl=typeof Set<"u",Za=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Ja=Wn?Symbol.for("immer-nothing"):((Va={})["immer-nothing"]=!0,Va),Ka=Wn?Symbol.for("immer-draftable"):"__$immer_draftable",M=Wn?Symbol.for("immer-state"):"__$immer_state";var zl=""+Object.prototype.constructor,ht=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(o){return Object.getOwnPropertyNames(o).concat(Object.getOwnPropertySymbols(o))}:Object.getOwnPropertyNames,Xa=Object.getOwnPropertyDescriptors||function(o){var e={};return ht(o).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(o,r)}),e},In={},rr={get:function(o,e){if(e===M)return o;var r=ke(o);if(!ut(r,e))return function(i,a,s){var c,l=Ha(a,s);return l?"value"in l?l.value:(c=l.get)===null||c===void 0?void 0:c.call(i.k):void 0}(o,r,e);var n=r[e];return o.I||!ne(n)?n:n===Nn(o.t,e)?(An(o),o.o[e]=Pn(o.A.h,n,o)):n},has:function(o,e){return e in ke(o)},ownKeys:function(o){return Reflect.ownKeys(ke(o))},set:function(o,e,r){var n=Ha(ke(o),e);if(n?.set)return n.set.call(o.k,r),!0;if(!o.P){var i=Nn(ke(o),e),a=i?.[M];if(a&&a.t===r)return o.o[e]=r,o.R[e]=!1,!0;if(qa(r,i)&&(r!==void 0||ut(o.t,e)))return!0;An(o),Le(o)}return o.o[e]===r&&(r!==void 0||e in o.o)||Number.isNaN(r)&&Number.isNaN(o.o[e])||(o.o[e]=r,o.R[e]=!0),!0},deleteProperty:function(o,e){return Nn(o.t,e)!==void 0||e in o.t?(o.R[e]=!1,An(o),Le(o)):delete o.R[e],o.o&&delete o.o[e],!0},getOwnPropertyDescriptor:function(o,e){var r=ke(o),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:o.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){te(11)},getPrototypeOf:function(o){return Object.getPrototypeOf(o.t)},setPrototypeOf:function(){te(12)}},er={};ot(rr,function(o,e){er[o]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),er.deleteProperty=function(o,e){return er.set.call(this,o,e,void 0)},er.set=function(o,e,r){return rr.set.call(this,o[0],e,r,o[0])};var Ul=function(){function o(r){var n=this;this.O=Za,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var c=a;a=i;var l=n;return function(v){var O=this;v===void 0&&(v=c);for(var w=arguments.length,C=Array(w>1?w-1:0),x=1;x<w;x++)C[x-1]=arguments[x];return l.produce(v,function(b){var S;return(S=a).call.apply(S,[O,b].concat(C))})}}var f;if(typeof a!="function"&&te(6),s!==void 0&&typeof s!="function"&&te(7),ne(i)){var h=Ua(n),u=Pn(n,i,void 0),m=!0;try{f=a(u),m=!1}finally{m?Wr(h):$n(h)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(v){return Cn(h,s),En(v,h)},function(v){throw Wr(h),v}):(Cn(h,s),En(f,h))}if(!i||typeof i!="object"){if((f=a(i))===void 0&&(f=i),f===Ja&&(f=void 0),n.D&&Tn(f,!0),s){var g=[],y=[];de("Patches").M(i,f,g,y),s(g,y)}return f}te(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(f){for(var h=arguments.length,u=Array(h>1?h-1:0),m=1;m<h;m++)u[m-1]=arguments[m];return n.produceWithPatches(f,function(g){return i.apply(void 0,[g].concat(u))})};var s,c,l=n.produce(i,a,function(f,h){s=f,c=h});return typeof Promise<"u"&&l instanceof Promise?l.then(function(f){return[f,s,c]}):[l,s,c]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=o.prototype;return e.createDraft=function(r){ne(r)||te(8),Se(r)&&(r=Wl(r));var n=Ua(this),i=Pn(this,r,void 0);return i[M].C=!0,$n(n),i},e.finishDraft=function(r,n){var i=r&&r[M],a=i.A;return Cn(a,n),En(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!Za&&te(20),this.O=r},e.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}i>-1&&(n=n.slice(i+1));var s=de("Patches").$;return Se(r)?s(r,n):this.produce(r,function(c){return s(c,n)})},o}(),X=new Ul,Bl=X.produce,Nm=X.produceWithPatches.bind(X),Am=X.setAutoFreeze.bind(X),Rm=X.setUseProxies.bind(X),$m=X.applyPatches.bind(X),Pm=X.createDraft.bind(X),Im=X.finishDraft.bind(X),zr=Bl;function Te(o){"@babel/helpers - typeof";return Te=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Te(o)}function Mn(o,e){if(Te(o)!=="object"||o===null)return o;var r=o[Symbol.toPrimitive];if(r!==void 0){var n=r.call(o,e||"default");if(Te(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(o)}function Dn(o){var e=Mn(o,"string");return Te(e)==="symbol"?e:String(e)}function zn(o,e,r){return e=Dn(e),e in o?Object.defineProperty(o,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):o[e]=r,o}function Qa(o,e){var r=Object.keys(o);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(o);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(o,i).enumerable})),r.push.apply(r,n)}return r}function Ur(o){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Qa(Object(r),!0).forEach(function(n){zn(o,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(r)):Qa(Object(r)).forEach(function(n){Object.defineProperty(o,n,Object.getOwnPropertyDescriptor(r,n))})}return o}function V(o){return"Minified Redux error #"+o+"; visit https://redux.js.org/Errors?code="+o+" for the full message or use the non-minified dev environment for full errors. "}var es=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Un=function(){return Math.random().toString(36).substring(7).split("").join(".")},Br={INIT:"@@redux/INIT"+Un(),REPLACE:"@@redux/REPLACE"+Un(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Un()}};function Hl(o){if(typeof o!="object"||o===null)return!1;for(var e=o;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(o)===e}function Bn(o,e,r){var n;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(V(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(V(1));return r(Bn)(o,e)}if(typeof o!="function")throw new Error(V(2));var i=o,a=e,s=[],c=s,l=!1;function f(){c===s&&(c=s.slice())}function h(){if(l)throw new Error(V(3));return a}function u(v){if(typeof v!="function")throw new Error(V(4));if(l)throw new Error(V(5));var O=!0;return f(),c.push(v),function(){if(O){if(l)throw new Error(V(6));O=!1,f();var C=c.indexOf(v);c.splice(C,1),s=null}}}function m(v){if(!Hl(v))throw new Error(V(7));if(typeof v.type>"u")throw new Error(V(8));if(l)throw new Error(V(9));try{l=!0,a=i(a,v)}finally{l=!1}for(var O=s=c,w=0;w<O.length;w++){var C=O[w];C()}return v}function g(v){if(typeof v!="function")throw new Error(V(10));i=v,m({type:Br.REPLACE})}function y(){var v,O=u;return v={subscribe:function(C){if(typeof C!="object"||C===null)throw new Error(V(11));function x(){C.next&&C.next(h())}x();var b=O(x);return{unsubscribe:b}}},v[es]=function(){return this},v}return m({type:Br.INIT}),n={dispatch:m,subscribe:u,getState:h,replaceReducer:g},n[es]=y,n}function jl(o){Object.keys(o).forEach(function(e){var r=o[e],n=r(void 0,{type:Br.INIT});if(typeof n>"u")throw new Error(V(12));if(typeof r(void 0,{type:Br.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(V(13))})}function ts(o){for(var e=Object.keys(o),r={},n=0;n<e.length;n++){var i=e[n];typeof o[i]=="function"&&(r[i]=o[i])}var a=Object.keys(r),s,c;try{jl(r)}catch(l){c=l}return function(f,h){if(f===void 0&&(f={}),c)throw c;if(0)var u;for(var m=!1,g={},y=0;y<a.length;y++){var v=a[y],O=r[v],w=f[v],C=O(w,h);if(typeof C>"u"){var x=h&&h.type;throw new Error(V(14))}g[v]=C,m=m||C!==w}return m=m||a.length!==Object.keys(f).length,m?g:f}}function gt(){for(var o=arguments.length,e=new Array(o),r=0;r<o;r++)e[r]=arguments[r];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function rs(){for(var o=arguments.length,e=new Array(o),r=0;r<o;r++)e[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(V(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},c=e.map(function(l){return l(s)});return a=gt.apply(void 0,c)(i.dispatch),Ur(Ur({},i),{},{dispatch:a})}}}function os(o){var e=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(c){return typeof c=="function"?c(i,a,o):s(c)}}};return e}var ns=os();ns.withExtraArgument=os;var Hn=ns;var ls=function(){var o=function(e,r){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},o(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");o(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Vl=function(o,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(f){return function(h){return l([f,h])}}function l(f){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=f[0]&2?i.return:f[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,f[1])).done)return a;switch(i=0,a&&(f=[f[0]&2,a.value]),f[0]){case 0:case 1:a=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++,i=f[1],f=[0];continue;case 7:f=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){r.label=f[1];break}if(f[0]===6&&r.label<a[1]){r.label=a[1],a=f;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(f);break}a[2]&&r.ops.pop(),r.trys.pop();continue}f=e.call(o,r)}catch(h){f=[6,h],i=0}finally{n=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},yt=function(o,e){for(var r=0,n=e.length,i=o.length;r<n;r++,i++)o[i]=e[r];return o},Zl=Object.defineProperty,Kl=Object.defineProperties,Gl=Object.getOwnPropertyDescriptors,is=Object.getOwnPropertySymbols,ql=Object.prototype.hasOwnProperty,Yl=Object.prototype.propertyIsEnumerable,as=function(o,e,r){return e in o?Zl(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r},Fe=function(o,e){for(var r in e||(e={}))ql.call(e,r)&&as(o,r,e[r]);if(is)for(var n=0,i=is(e);n<i.length;n++){var r=i[n];Yl.call(e,r)&&as(o,r,e[r])}return o},jn=function(o,e){return Kl(o,Gl(e))},Jl=function(o,e,r){return new Promise(function(n,i){var a=function(l){try{c(r.next(l))}catch(f){i(f)}},s=function(l){try{c(r.throw(l))}catch(f){i(f)}},c=function(l){return l.done?n(l.value):Promise.resolve(l.value).then(a,s)};c((r=r.apply(o,e)).next())})};var Xl=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?gt:gt.apply(null,arguments)},qm=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(o){return o}};function Ql(o){if(typeof o!="object"||o===null)return!1;var e=Object.getPrototypeOf(o);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}var ed=function(o){ls(e,o);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=o.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return o.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,yt([void 0],r[0].concat(this)))):new(e.bind.apply(e,yt([void 0],r.concat(this))))},e}(Array),td=function(o){ls(e,o);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=o.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return o.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,yt([void 0],r[0].concat(this)))):new(e.bind.apply(e,yt([void 0],r.concat(this))))},e}(Array);function Kn(o){return ne(o)?zr(o,function(){}):o}function rd(o){return typeof o=="boolean"}function od(){return function(e){return nd(e)}}function nd(o){o===void 0&&(o={});var e=o.thunk,r=e===void 0?!0:e,n=o.immutableCheck,i=n===void 0?!0:n,a=o.serializableCheck,s=a===void 0?!0:a,c=new ed;if(r&&(rd(r)?c.push(Hn):c.push(Hn.withExtraArgument(r.extraArgument))),0){if(i)var l;if(s)var f}return c}var Vn=!0;function ds(o){var e=od(),r=o||{},n=r.reducer,i=n===void 0?void 0:n,a=r.middleware,s=a===void 0?e():a,c=r.devTools,l=c===void 0?!0:c,f=r.preloadedState,h=f===void 0?void 0:f,u=r.enhancers,m=u===void 0?void 0:u,g;if(typeof i=="function")g=i;else if(Ql(i))g=ts(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var y=s;if(typeof y=="function"&&(y=y(e),!Vn&&!Array.isArray(y)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Vn&&y.some(function(b){return typeof b!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=rs.apply(void 0,y),O=gt;l&&(O=Xl(Fe({trace:!Vn},typeof l=="object"&&l)));var w=new td(v),C=w;Array.isArray(m)?C=yt([v],m):typeof m=="function"&&(C=m(w));var x=O.apply(void 0,C);return Bn(g,h,x)}function We(o,e){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var a=e.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return Fe(Fe({type:o,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:o,payload:n[0]}}return r.toString=function(){return""+o},r.type=o,r.match=function(n){return n.type===o},r}function fs(o){var e={},r=[],n,i={addCase:function(a,s){var c=typeof a=="string"?a:a.type;if(c in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[c]=s,i},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return o(i),[e,r,n]}function id(o){return typeof o=="function"}function ad(o,e,r,n){r===void 0&&(r=[]);var i=typeof e=="function"?fs(e):[e,r,n],a=i[0],s=i[1],c=i[2],l;if(id(o))l=function(){return Kn(o())};else{var f=Kn(o);l=function(){return f}}function h(u,m){u===void 0&&(u=l());var g=yt([a[m.type]],s.filter(function(y){var v=y.matcher;return v(m)}).map(function(y){var v=y.reducer;return v}));return g.filter(function(y){return!!y}).length===0&&(g=[c]),g.reduce(function(y,v){if(v)if(Se(y)){var O=y,w=v(O,m);return w===void 0?y:w}else{if(ne(y))return zr(y,function(C){return v(C,m)});var w=v(y,m);if(w===void 0){if(y===null)return y;throw Error("A case reducer on a non-draftable value must not return undefined")}return w}return y},u)}return h.getInitialState=l,h}function sd(o,e){return o+"/"+e}function ps(o){var e=o.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof o.initialState=="function"?o.initialState:Kn(o.initialState),n=o.reducers||{},i=Object.keys(n),a={},s={},c={};i.forEach(function(h){var u=n[h],m=sd(e,h),g,y;"reducer"in u?(g=u.reducer,y=u.prepare):g=u,a[h]=g,s[m]=g,c[h]=y?We(m,y):We(m)});function l(){var h=typeof o.extraReducers=="function"?fs(o.extraReducers):[o.extraReducers],u=h[0],m=u===void 0?{}:u,g=h[1],y=g===void 0?[]:g,v=h[2],O=v===void 0?void 0:v,w=Fe(Fe({},m),s);return ad(r,function(C){for(var x in w)C.addCase(x,w[x]);for(var b=0,S=y;b<S.length;b++){var A=S[b];C.addMatcher(A.matcher,A.reducer)}O&&C.addDefaultCase(O)})}var f;return{name:e,reducer:function(h,u){return f||(f=l()),f(h,u)},actions:c,caseReducers:a,getInitialState:function(){return f||(f=l()),f.getInitialState()}}}var cd="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",ld=function(o){o===void 0&&(o=21);for(var e="",r=o;r--;)e+=cd[Math.random()*64|0];return e},dd=["name","message","stack","code"],Zn=function(){function o(e,r){this.payload=e,this.meta=r}return o}(),ss=function(){function o(e,r){this.payload=e,this.meta=r}return o}(),fd=function(o){if(typeof o=="object"&&o!==null){for(var e={},r=0,n=dd;r<n.length;r++){var i=n[r];typeof o[i]=="string"&&(e[i]=o[i])}return e}return{message:String(o)}},Qm=function(){function o(e,r,n){var i=We(e+"/fulfilled",function(h,u,m,g){return{payload:h,meta:jn(Fe({},g||{}),{arg:m,requestId:u,requestStatus:"fulfilled"})}}),a=We(e+"/pending",function(h,u,m){return{payload:void 0,meta:jn(Fe({},m||{}),{arg:u,requestId:h,requestStatus:"pending"})}}),s=We(e+"/rejected",function(h,u,m,g,y){return{payload:g,error:(n&&n.serializeError||fd)(h||"Rejected"),meta:jn(Fe({},y||{}),{arg:m,requestId:u,rejectedWithValue:!!g,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),c=!1,l=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function f(h){return function(u,m,g){var y=n?.idGenerator?n.idGenerator(h):ld(),v=new l,O,w=!1;function C(b){O=b,v.abort()}var x=function(){return Jl(this,null,function(){var b,S,A,L,K,F,N;return Vl(this,function(R){switch(R.label){case 0:return R.trys.push([0,4,,5]),L=(b=n?.condition)==null?void 0:b.call(n,h,{getState:m,extra:g}),ud(L)?[4,L]:[3,2];case 1:L=R.sent(),R.label=2;case 2:if(L===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return w=!0,K=new Promise(function(_,j){return v.signal.addEventListener("abort",function(){return j({name:"AbortError",message:O||"Aborted"})})}),u(a(y,h,(S=n?.getPendingMeta)==null?void 0:S.call(n,{requestId:y,arg:h},{getState:m,extra:g}))),[4,Promise.race([K,Promise.resolve(r(h,{dispatch:u,getState:m,extra:g,requestId:y,signal:v.signal,abort:C,rejectWithValue:function(_,j){return new Zn(_,j)},fulfillWithValue:function(_,j){return new ss(_,j)}})).then(function(_){if(_ instanceof Zn)throw _;return _ instanceof ss?i(_.payload,y,h,_.meta):i(_,y,h)})])];case 3:return A=R.sent(),[3,5];case 4:return F=R.sent(),A=F instanceof Zn?s(null,y,h,F.payload,F.meta):s(F,y,h),[3,5];case 5:return N=n&&!n.dispatchConditionRejection&&s.match(A)&&A.meta.condition,N||u(A),[2,A]}})})}();return Object.assign(x,{abort:C,requestId:y,arg:h,unwrap:function(){return x.then(pd)}})}}return Object.assign(f,{pending:a,rejected:s,fulfilled:i,typePrefix:e})}return o.withTypes=function(){return o},o}();function pd(o){if(o.meta&&o.meta.rejectedWithValue)throw o.payload;if(o.error)throw o.error;return o.payload}function ud(o){return o!==null&&typeof o=="object"&&typeof o.then=="function"}var us="listener",hs="completed",ms="cancelled",eg="task-"+ms,tg="task-"+hs,rg=us+"-"+ms,og=us+"-"+hs;var Gn="listenerMiddleware";var ng=We(Gn+"/add"),ig=We(Gn+"/removeAll"),ag=We(Gn+"/remove");var cs,sg=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(o){return(cs||(cs=Promise.resolve())).then(o).catch(function(e){return setTimeout(function(){throw e},0)})},hd=function(o){return function(e){setTimeout(e,o)}},cg=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:hd(10);Ya();window.ftReduxStores||(window.ftReduxStores={});var qn=class o{static get(e){var r;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[n];if(tt(a))return a;if(i==null)return;let s=ps({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),c=ds({reducer:(l,f)=>f.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof f.type=="string"&&f.type.startsWith("DEFAULT_VALUE_SETTER__")?{...l,...f.overwrites}:s.reducer(l,f)});return window.ftReduxStores[i.name]=new o(s,c)}constructor(e,r){this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Qt,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,i,a)=>{let s=i,c=n[s];return c?(...l)=>{let f=c(...l);return this.reduxStore.dispatch(f),f}:l=>{this.setState({[s]:l})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function md(){var o;for(let e of Object.values((o=window.ftReduxStores)!==null&&o!==void 0?o:{}))tt(e)&&e.clear()}var Qn={};k(Qn,{scrollHelper:()=>gd});var Jn,Hr=new Map,Xn=class{lock(e,r){if(r){let n=Hr.get(r);if(n==null||n===e)return Hr.set(r,e),r}}release(e,r){r&&Hr.get(r)===e&&Hr.delete(r)}findFirstScrollableParent(e){let r,n=i=>{var a;i.stopPropagation();let s,c;for(let l of i.composedPath()){let f=l,h=this.elementCanScroll(f);if(h&&f.clientHeight&&f.clientHeight<f.scrollHeight){s=f;break}else h&&c==null&&(c=f)}r=(a=s??c)!==null&&a!==void 0?a:document.body};return e.addEventListener("find-scrollable-parent",n),e.dispatchEvent(new Event("find-scrollable-parent",{composed:!0})),e.removeEventListener("find-scrollable-parent",n),r}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,r){let n=0;for(;r&&r.offsetParent!==e.offsetParent;)n+=r.offsetTop,r=r.offsetParent;return n+r.offsetTop-e.offsetTop}computeTopOffsetRatio(e,r){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return r;default:return 0}}scrollIntoViewIfPossible(e,r){let n=this.findFirstScrollableParent(e);if(e&&this.lock(this,n)){let i=this.getAbsoluteScrollOffset(n,e),a=i-n.clientHeight+e.clientHeight,s=i,c=vo(0,(s-n.scrollTop)/(s-a),1),l=this.computeTopOffsetRatio(r?.position,c)*(a-s)+s;n.scrollTo({behavior:r?.behavior,top:l})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(Jn=window.FluidTopicsScrollHelper)!==null&&Jn!==void 0?Jn:new Xn;var gd=window.FluidTopicsScrollHelper;var ei={};k(ei,{shadowQuerySelector:()=>yd,shadowQuerySelectorAll:()=>bd});function yd(o,e,...r){var n;let i=o.querySelector(e);for(let a of r)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(a);return i}function bd(o,e,...r){let n=[...o.querySelectorAll(e)];for(let i of r)n=n.flatMap(a=>{var s,c;return[...(c=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(i))!==null&&c!==void 0?c:[]]});return n}var ti={};k(ti,{serializeRequest:()=>vd});function xd(o){return`"${o}"`}function vd(o,e){var r,n,i,a;let s=new URLSearchParams({"content-lang":(r=e.contentLocale)!==null&&r!==void 0?r:"all"});if(((n=e.query)===null||n===void 0?void 0:n.length)>0&&s.append("query",e.query),e.scope&&e.scope!=="DEFAULT"&&s.append("scope",e.scope.toLowerCase()),e.virtualField&&e.virtualField!=="EVERYWHERE"&&s.append("virtual-field",e.virtualField.toLowerCase()),e.periodFilter){let l=e.periodFilter.period,f=l?`_${l.from}_${l.to}`:"";s.append("period",e.periodFilter.periodType.toLowerCase()+f)}if(((i=e.sort)===null||i===void 0?void 0:i.length)>0&&e.sort[0].key==="ft:lastEdition"&&s.append("sort","last_update"),((a=e.filters)===null||a===void 0?void 0:a.length)>0){let l=e.filters.map(f=>{let h=f.values.map(u=>u.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*")).map(u=>encodeURIComponent(xd(u))).join("_");return`${f.key}~${h}`}).join("*");s.append("filters",l)}return new URL(`${o.replace(/\/+$/,"")}/search?${s.toString()}`).href}var ri={};k(ri,{toFtFormComponent:()=>Sd});var jr=Symbol("elementInternals");function Sd(o,e){class r extends o{static get formAssociated(){return!0}get form(){return this[jr].form}constructor(...i){super(i),this[jr]=this.attachInternals(),this[jr].role=e}setFormValue(i){this[jr].setFormValue(i)}}return r}var ni={};k(ni,{DateFormatter:()=>oi});var oi=class{static format(e,r,n,i){return window.moment?window.moment(e).locale(r).format(this.getDateFormat(n,i)):e}static getDateFormat(e,r){return e?r?"lll":"ll":r?"L LT":"L"}};var ii,ai,si,ci,Od=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((si=(ai=(ii=window.safari)===null||ii===void 0?void 0:ii.pushNotification)===null||ai===void 0?void 0:ai.toString())!==null&&si!==void 0?si:"")==="[object SafariRemoteNotification]",wd="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(ci=window.ftGlobals)!==null&&ci!==void 0?ci:{lit:ao,litDecorators:so,litRepeat:co,litClassMap:lo,litStyleMap:fo,litUnsafeHTML:po,wcUtils:{...go,...ho,...bo,...ni,...xo,...wo,...Xo,...rn,...hn,...Jo,...bn,...gn,...Ta,...So,...vn,...Sn,...Wa,...wn,...Yn,...mn,...Qn,...ei,...ti,...ri,isSafari:Od,isTouchScreen:wd,setVariable:B}};function gs(o){let e=Ht[o];return $`
50
50
  .ft-typography--${je(o)} {
51
51
  font-family: ${e.fontFamily};
52
52
  font-size: ${e.fontSize};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-number-field",
3
- "version": "1.1.102",
3
+ "version": "1.1.104",
4
4
  "description": "A number field input component.",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,8 +19,8 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-wc-utils": "1.1.102",
22
+ "@fluid-topics/ft-wc-utils": "1.1.104",
23
23
  "lit": "3.1.0"
24
24
  },
25
- "gitHead": "40e0b46ecdae82b7b292cbd187edf6fa0a543375"
25
+ "gitHead": "1a342e6d0b1bdfec45dc11d437add1e914c4edc4"
26
26
  }