@fluid-topics/ft-wc-utils 0.3.43 → 0.3.46

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.
@@ -148,4 +148,4 @@ var vt;const pt=null!=(null===(vt=window.HTMLSlotElement)||void 0===vt?void 0:vt
148
148
  -webkit-hyphens: auto;
149
149
  hyphens: auto
150
150
  }
151
- `;function qt(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(n.length?" "+n.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Jt(t){return!!t&&!!t[Pe]}function Zt(t){return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var n=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===Ue}(t)||Array.isArray(t)||!!t[ke]||!!t.constructor[ke]||ee(t)||ne(t))}function Xt(t,e,n){void 0===n&&(n=!1),0===Gt(t)?(n?Object.keys:Fe)(t).forEach((function(r){n&&"symbol"==typeof r||e(r,t[r],t)})):t.forEach((function(n,r){return e(r,n,t)}))}function Gt(t){var e=t[Pe];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:ee(t)?2:ne(t)?3:0}function Qt(t,e){return 2===Gt(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Yt(t,e,n){var r=Gt(t);2===r?t.set(e,n):3===r?(t.delete(e),t.add(n)):t[e]=n}function te(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function ee(t){return Me&&t instanceof Map}function ne(t){return $e&&t instanceof Set}function re(t){return t.o||t.t}function ie(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Le(t);delete e[Pe];for(var n=Fe(e),r=0;r<n.length;r++){var i=n[r],o=e[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(e[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function oe(t,e){return void 0===e&&(e=!1),ce(t)||Jt(t)||!Zt(t)||(Gt(t)>1&&(t.set=t.add=t.clear=t.delete=se),Object.freeze(t),e&&Xt(t,(function(t,e){return oe(e,!0)}),!0)),t}function se(){qt(2)}function ce(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function ue(t){var e=Te[t];return e||qt(18,t),e}function ae(){return Ce}function le(t,e){e&&(ue("Patches"),t.u=[],t.s=[],t.v=e)}function fe(t){he(t),t.p.forEach(ve),t.p=null}function he(t){t===Ce&&(Ce=t.l)}function de(t){return Ce={p:[],l:Ce,h:t,m:!0,_:0}}function ve(t){var e=t[Pe];0===e.i||1===e.i?e.j():e.O=!0}function pe(t,e){e._=e.p.length;var n=e.p[0],r=void 0!==t&&t!==n;return e.h.g||ue("ES5").S(e,t,r),r?(n[Pe].P&&(fe(e),qt(4)),Zt(t)&&(t=be(e,t),e.l||me(e,t)),e.u&&ue("Patches").M(n[Pe].t,t,e.u,e.s)):t=be(e,n,[]),fe(e),e.u&&e.v(e.u,e.s),t!==Ae?t:void 0}function be(t,e,n){if(ce(e))return e;var r=e[Pe];if(!r)return Xt(e,(function(i,o){return ye(t,r,e,i,o,n)}),!0),e;if(r.A!==t)return e;if(!r.P)return me(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=ie(r.k):r.o;Xt(3===r.i?new Set(i):i,(function(e,o){return ye(t,r,i,e,o,n)})),me(t,i,!1),n&&t.u&&ue("Patches").R(r,n,t.u,t.s)}return r.o}function ye(t,e,n,r,i,o){if(Jt(i)){var s=be(t,i,o&&e&&3!==e.i&&!Qt(e.D,r)?o.concat(r):void 0);if(Yt(n,r,s),!Jt(s))return;t.m=!1}if(Zt(i)&&!ce(i)){if(!t.h.F&&t._<1)return;be(t,i),e&&e.A.l||me(t,i)}}function me(t,e,n){void 0===n&&(n=!1),t.h.F&&t.m&&oe(e,n)}function we(t,e){var n=t[Pe];return(n?re(n):t)[e]}function Oe(t,e){if(e in t)for(var n=Object.getPrototypeOf(t);n;){var r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=Object.getPrototypeOf(n)}}function ge(t){t.P||(t.P=!0,t.l&&ge(t.l))}function xe(t){t.o||(t.o=ie(t.t))}function Se(t,e,n){var r=ee(e)?ue("MapSet").N(e,n):ne(e)?ue("MapSet").T(e,n):t.g?function(t,e){var n=Array.isArray(t),r={i:n?1:0,A:e?e.A:ae(),P:!1,I:!1,D:{},l:e,t,k:null,o:null,j:null,C:!1},i=r,o=Be;n&&(i=[r],o=De);var s=Proxy.revocable(i,o),c=s.revoke,u=s.proxy;return r.k=u,r.j=c,u}(e,n):ue("ES5").J(e,n);return(n?n.A:ae()).p.push(r),r}function Ee(t){return Jt(t)||qt(22,t),function t(e){if(!Zt(e))return e;var n,r=e[Pe],i=Gt(e);if(r){if(!r.P&&(r.i<4||!ue("ES5").K(r)))return r.t;r.I=!0,n=je(e,i),r.I=!1}else n=je(e,i);return Xt(n,(function(e,i){r&&function(t,e){return 2===Gt(t)?t.get(e):t[e]}(r.t,e)===i||Yt(n,e,t(i))})),3===i?new Set(n):n}(t)}function je(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return ie(t)}var Re,Ce,Ne="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Me="undefined"!=typeof Map,$e="undefined"!=typeof Set,_e="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Ae=Ne?Symbol.for("immer-nothing"):((Re={})["immer-nothing"]=!0,Re),ke=Ne?Symbol.for("immer-draftable"):"__$immer_draftable",Pe=Ne?Symbol.for("immer-state"):"__$immer_state",Ue=""+Object.prototype.constructor,Fe="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Le=Object.getOwnPropertyDescriptors||function(t){var e={};return Fe(t).forEach((function(n){e[n]=Object.getOwnPropertyDescriptor(t,n)})),e},Te={},Be={get:function(t,e){if(e===Pe)return t;var n=re(t);if(!Qt(n,e))return function(t,e,n){var r,i=Oe(e,n);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(t.k):void 0}(t,n,e);var r=n[e];return t.I||!Zt(r)?r:r===we(t.t,e)?(xe(t),t.o[e]=Se(t.A.h,r,t)):r},has:function(t,e){return e in re(t)},ownKeys:function(t){return Reflect.ownKeys(re(t))},set:function(t,e,n){var r=Oe(re(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,n),!0;if(!t.P){var i=we(re(t),e),o=null==i?void 0:i[Pe];if(o&&o.t===n)return t.o[e]=n,t.D[e]=!1,!0;if(te(n,i)&&(void 0!==n||Qt(t.t,e)))return!0;xe(t),ge(t)}return t.o[e]===n&&"number"!=typeof n&&(void 0!==n||e in t.o)||(t.o[e]=n,t.D[e]=!0,!0)},deleteProperty:function(t,e){return void 0!==we(t.t,e)||e in t.t?(t.D[e]=!1,xe(t),ge(t)):delete t.D[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var n=re(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:r.enumerable,value:n[e]}:r},defineProperty:function(){qt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){qt(12)}},De={};Xt(Be,(function(t,e){De[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),De.deleteProperty=function(t,e){return De.set.call(this,t,e,void 0)},De.set=function(t,e,n){return Be.set.call(this,t[0],e,n,t[0])};var We=function(){function t(t){var e=this;this.g=_e,this.F=!0,this.produce=function(t,n,r){if("function"==typeof t&&"function"!=typeof n){var i=n;n=t;var o=e;return function(t){var e=this;void 0===t&&(t=i);for(var r=arguments.length,s=Array(r>1?r-1:0),c=1;c<r;c++)s[c-1]=arguments[c];return o.produce(t,(function(t){var r;return(r=n).call.apply(r,[e,t].concat(s))}))}}var s;if("function"!=typeof n&&qt(6),void 0!==r&&"function"!=typeof r&&qt(7),Zt(t)){var c=de(e),u=Se(e,t,void 0),a=!0;try{s=n(u),a=!1}finally{a?fe(c):he(c)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return le(c,r),pe(t,c)}),(function(t){throw fe(c),t})):(le(c,r),pe(s,c))}if(!t||"object"!=typeof t){if(void 0===(s=n(t))&&(s=t),s===Ae&&(s=void 0),e.F&&oe(s,!0),r){var l=[],f=[];ue("Patches").M(t,s,l,f),r(l,f)}return s}qt(21,t)},this.produceWithPatches=function(t,n){if("function"==typeof t)return function(n){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return e.produceWithPatches(n,(function(e){return t.apply(void 0,[e].concat(i))}))};var r,i,o=e.produce(t,n,(function(t,e){r=t,i=e}));return"undefined"!=typeof Promise&&o instanceof Promise?o.then((function(t){return[t,r,i]})):[o,r,i]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){Zt(t)||qt(8),Jt(t)&&(t=Ee(t));var e=de(this),n=Se(this,t,void 0);return n[Pe].C=!0,he(e),n},e.finishDraft=function(t,e){var n=(t&&t[Pe]).A;return le(n,e),pe(void 0,n)},e.setAutoFreeze=function(t){this.F=t},e.setUseProxies=function(t){t&&!_e&&qt(20),this.g=t},e.applyPatches=function(t,e){var n;for(n=e.length-1;n>=0;n--){var r=e[n];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}n>-1&&(e=e.slice(n+1));var i=ue("Patches").$;return Jt(t)?i(t,e):this.produce(t,(function(t){return i(t,e)}))},t}(),He=new We;function Ie(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ke(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ze(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ke(Object(n),!0).forEach((function(e){Ie(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ke(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ve(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}He.produce,He.produceWithPatches.bind(He),He.setAutoFreeze.bind(He),He.setUseProxies.bind(He),He.applyPatches.bind(He),He.createDraft.bind(He),He.finishDraft.bind(He);var qe="function"==typeof Symbol&&Symbol.observable||"@@observable",Je=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ze={INIT:"@@redux/INIT"+Je(),REPLACE:"@@redux/REPLACE"+Je(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Je()}};function Xe(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Ge(t,e,n){var r;if("function"==typeof e&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(Ve(0));if("function"==typeof e&&void 0===n&&(n=e,e=void 0),void 0!==n){if("function"!=typeof n)throw new Error(Ve(1));return n(Ge)(t,e)}if("function"!=typeof t)throw new Error(Ve(2));var i=t,o=e,s=[],c=s,u=!1;function a(){c===s&&(c=s.slice())}function l(){if(u)throw new Error(Ve(3));return o}function f(t){if("function"!=typeof t)throw new Error(Ve(4));if(u)throw new Error(Ve(5));var e=!0;return a(),c.push(t),function(){if(e){if(u)throw new Error(Ve(6));e=!1,a();var n=c.indexOf(t);c.splice(n,1),s=null}}}function h(t){if(!Xe(t))throw new Error(Ve(7));if(void 0===t.type)throw new Error(Ve(8));if(u)throw new Error(Ve(9));try{u=!0,o=i(o,t)}finally{u=!1}for(var e=s=c,n=0;n<e.length;n++)(0,e[n])();return t}function d(t){if("function"!=typeof t)throw new Error(Ve(10));i=t,h({type:Ze.REPLACE})}function v(){var t,e=f;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Ve(11));function n(){t.next&&t.next(l())}return n(),{unsubscribe:e(n)}}})[qe]=function(){return this},t}return h({type:Ze.INIT}),(r={dispatch:h,subscribe:f,getState:l,replaceReducer:d})[qe]=v,r}function Qe(t){for(var e=Object.keys(t),n={},r=0;r<e.length;r++){var i=e[r];"function"==typeof t[i]&&(n[i]=t[i])}var o,s=Object.keys(n);try{!function(t){Object.keys(t).forEach((function(e){var n=t[e];if(void 0===n(void 0,{type:Ze.INIT}))throw new Error(Ve(12));if(void 0===n(void 0,{type:Ze.PROBE_UNKNOWN_ACTION()}))throw new Error(Ve(13))}))}(n)}catch(t){o=t}return function(t,e){if(void 0===t&&(t={}),o)throw o;for(var r=!1,i={},c=0;c<s.length;c++){var u=s[c],a=n[u],l=t[u],f=a(l,e);if(void 0===f)throw e&&e.type,new Error(Ve(14));i[u]=f,r=r||f!==l}return(r=r||s.length!==Object.keys(t).length)?i:t}}function Ye(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function tn(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return function(){var n=t.apply(void 0,arguments),r=function(){throw new Error(Ve(15))},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},o=e.map((function(t){return t(i)}));return r=Ye.apply(void 0,o)(n.dispatch),ze(ze({},n),{},{dispatch:r})}}}function en(t){return function(e){var n=e.dispatch,r=e.getState;return function(e){return function(i){return"function"==typeof i?i(n,r,t):e(i)}}}}var nn=en();nn.withExtraArgument=en;var rn,on,sn,cn,un=nn,an=(rn=function(t,e){return rn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},rn(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}rn(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),ln=function(t,e){for(var n=0,r=e.length,i=t.length;n<r;n++,i++)t[i]=e[n];return t},fn=Object.defineProperty,hn=Object.getOwnPropertySymbols,dn=Object.prototype.hasOwnProperty,vn=Object.prototype.propertyIsEnumerable,pn=function(t,e,n){return e in t?fn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n},bn="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Ye:Ye.apply(null,arguments)},yn=function(t){function e(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=t.apply(this,n)||this;return Object.setPrototypeOf(i,e.prototype),i}return an(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,ln([void 0],t[0].concat(this)))):new(e.bind.apply(e,ln([void 0],t.concat(this))))},e}(Array);function mn(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,n=void 0===e||e;t.immutableCheck,t.serializableCheck;var r=new yn;return n&&(function(t){return"boolean"==typeof t}(n)?r.push(un):r.push(un.withExtraArgument(n.extraArgument))),r}(t)}}function wn(t){var e,n=mn(),r=t||{},i=r.reducer,o=void 0===i?void 0:i,s=r.middleware,c=void 0===s?n():s,u=r.devTools,a=void 0===u||u,l=r.preloadedState,f=void 0===l?void 0:l,h=r.enhancers,d=void 0===h?void 0:h;if("function"==typeof o)e=o;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var n=e;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return e===n}(o))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=Qe(o)}var v=c;"function"==typeof v&&(v=v(n));var p=tn.apply(void 0,v),b=Ye;a&&(b=bn(function(t,e){for(var n in e||(e={}))dn.call(e,n)&&pn(t,n,e[n]);if(hn)for(var r=0,i=hn(e);r<i.length;r++)n=i[r],vn.call(e,n)&&pn(t,n,e[n]);return t}({trace:!1},"object"==typeof a&&a)));var y=[p];return Array.isArray(d)?y=ln([p],d):"function"==typeof d&&(y=d(y)),Ge(e,f,b.apply(void 0,y))}!function(){function t(t,e){var n=i[t];return n?n.enumerable=e:i[t]=n={configurable:!0,enumerable:e,get:function(){var e=this[Pe];return Be.get(e,t)},set:function(e){var n=this[Pe];Be.set(n,t,e)}},n}function e(t){for(var e=t.length-1;e>=0;e--){var i=t[e][Pe];if(!i.P)switch(i.i){case 5:r(i)&&ge(i);break;case 4:n(i)&&ge(i)}}}function n(t){for(var e=t.t,n=t.k,r=Fe(n),i=r.length-1;i>=0;i--){var o=r[i];if(o!==Pe){var s=e[o];if(void 0===s&&!Qt(e,o))return!0;var c=n[o],u=c&&c[Pe];if(u?u.t!==s:!te(c,s))return!0}}var a=!!e[Pe];return r.length!==Fe(e).length+(a?0:1)}function r(t){var e=t.k;if(e.length!==t.t.length)return!0;var n=Object.getOwnPropertyDescriptor(e,e.length-1);if(n&&!n.get)return!0;for(var r=0;r<e.length;r++)if(!e.hasOwnProperty(r))return!0;return!1}var i={};!function(t,e){Te[t]||(Te[t]=e)}("ES5",{J:function(e,n){var r=Array.isArray(e),i=function(e,n){if(e){for(var r=Array(n.length),i=0;i<n.length;i++)Object.defineProperty(r,""+i,t(i,!0));return r}var o=Le(n);delete o[Pe];for(var s=Fe(o),c=0;c<s.length;c++){var u=s[c];o[u]=t(u,e||!!o[u].enumerable)}return Object.create(Object.getPrototypeOf(n),o)}(r,e),o={i:r?5:4,A:n?n.A:ae(),P:!1,I:!1,D:{},l:n,t:e,k:i,o:null,O:!1,C:!1};return Object.defineProperty(i,Pe,{value:o,writable:!0}),i},S:function(t,n,i){i?Jt(n)&&n[Pe].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var n=e[Pe];if(n){var i=n.t,o=n.k,s=n.D,c=n.i;if(4===c)Xt(o,(function(e){e!==Pe&&(void 0!==i[e]||Qt(i,e)?s[e]||t(o[e]):(s[e]=!0,ge(n)))})),Xt(i,(function(t){void 0!==o[t]||Qt(o,t)||(s[t]=!1,ge(n))}));else if(5===c){if(r(n)&&(ge(n),s.length=!0),o.length<i.length)for(var u=o.length;u<i.length;u++)s[u]=!1;else for(var a=i.length;a<o.length;a++)s[a]=!0;for(var l=Math.min(o.length,i.length),f=0;f<l;f++)o.hasOwnProperty(f)||(s[f]=!0),void 0===s[f]&&t(o[f])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?n(t):r(t)}})}();const On=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(cn=null===(sn=null===(on=window.safari)||void 0===on?void 0:on.pushNotification)||void 0===sn?void 0:sn.toString())&&void 0!==cn?cn:"");var gn=Object.freeze({__proto__:null,isSafari:On,Aligner:class{static computeCenterLeftOffset(t,e){return(t.getBoundingClientRect().width-e.getBoundingClientRect().width)/2}},Debouncer:Tt,customElement:t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},jsonProperty:Bt,deepEqual:Dt,delay:t=>new Promise((e=>setTimeout(e,t))),designSystemVariables:Ht,FtCssVariableFactory:Wt,setVariable:function(t,e){return s(`${t.name}: ${e}`)},FtLitElement:Kt,noTextSelect:zt,wordWrap:Vt,ParametrizedLabelResolver:class{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var n,r;let i=null!==(r=null!==(n=this.labels[t])&&void 0!==n?n:this.defaultLabels[t])&&void 0!==r?r:"";return e.forEach(((t,e)=>i=i.replace(new RegExp(`\\{${e}\\}`,"g"),t))),i}},redux:(t,e)=>(n,r)=>{n.constructor.createProperty(r,{attribute:!1,hasChanged:null!=e?e:(t,e)=>!Dt(t,e)});const i=n;i.reduxProperties=i.reduxProperties||new Map,i.reduxProperties.set(r,null!=t?t:t=>t[r])},FtLitElementRedux:class extends Kt{get store(){return this.internalStore}set store(t){this.internalStore=t,this.store&&this.setupStore()}updateFromStore(){const t=this.store.getState();this.reduxProperties&&this.reduxProperties.forEach(((e,n)=>{this[n]=e(t,this)}))}setupStore(){this.unsubscribeFromStore&&this.unsubscribeFromStore(),this.updateFromStore(),this.unsubscribeFromStore=this.store.subscribe((()=>{this.updateFromStore()})),this.onStoreAvailable(),this.requestUpdate()}onStoreAvailable(){}connectedCallback(){super.connectedCallback(),this.store&&this.setupStore()}disconnectedCallback(){this.unsubscribeFromStore&&this.unsubscribeFromStore(),super.disconnectedCallback()}},getStore:function(t,e,n){window.ftReduxStores||(window.ftReduxStores={});const r=e||t.name;return window.ftReduxStores[r]||(window.ftReduxStores[r]=wn({reducer:t.reducer})),window.ftReduxStores[r]},clearAllStores:function(){window.ftReduxStores={}}});t.lit=lt,t.litClassMap=At,t.litDecorators=yt,t.litRepeat=$t,t.litStyleMap=Pt,t.litUnsafeHTML=Lt,t.wcUtils=gn,Object.defineProperty(t,"W",{value:!0})},"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).ftGlobals={});
151
+ `;function qt(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(n.length?" "+n.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Jt(t){return!!t&&!!t[Pe]}function Zt(t){return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var n=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===Ue}(t)||Array.isArray(t)||!!t[ke]||!!t.constructor[ke]||ee(t)||ne(t))}function Xt(t,e,n){void 0===n&&(n=!1),0===Gt(t)?(n?Object.keys:Fe)(t).forEach((function(r){n&&"symbol"==typeof r||e(r,t[r],t)})):t.forEach((function(n,r){return e(r,n,t)}))}function Gt(t){var e=t[Pe];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:ee(t)?2:ne(t)?3:0}function Qt(t,e){return 2===Gt(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Yt(t,e,n){var r=Gt(t);2===r?t.set(e,n):3===r?(t.delete(e),t.add(n)):t[e]=n}function te(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function ee(t){return Me&&t instanceof Map}function ne(t){return $e&&t instanceof Set}function re(t){return t.o||t.t}function ie(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Le(t);delete e[Pe];for(var n=Fe(e),r=0;r<n.length;r++){var i=n[r],o=e[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(e[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function oe(t,e){return void 0===e&&(e=!1),ce(t)||Jt(t)||!Zt(t)||(Gt(t)>1&&(t.set=t.add=t.clear=t.delete=se),Object.freeze(t),e&&Xt(t,(function(t,e){return oe(e,!0)}),!0)),t}function se(){qt(2)}function ce(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function ue(t){var e=Te[t];return e||qt(18,t),e}function ae(){return Ce}function le(t,e){e&&(ue("Patches"),t.u=[],t.s=[],t.v=e)}function fe(t){he(t),t.p.forEach(ve),t.p=null}function he(t){t===Ce&&(Ce=t.l)}function de(t){return Ce={p:[],l:Ce,h:t,m:!0,_:0}}function ve(t){var e=t[Pe];0===e.i||1===e.i?e.j():e.O=!0}function pe(t,e){e._=e.p.length;var n=e.p[0],r=void 0!==t&&t!==n;return e.h.g||ue("ES5").S(e,t,r),r?(n[Pe].P&&(fe(e),qt(4)),Zt(t)&&(t=be(e,t),e.l||me(e,t)),e.u&&ue("Patches").M(n[Pe].t,t,e.u,e.s)):t=be(e,n,[]),fe(e),e.u&&e.v(e.u,e.s),t!==Ae?t:void 0}function be(t,e,n){if(ce(e))return e;var r=e[Pe];if(!r)return Xt(e,(function(i,o){return ye(t,r,e,i,o,n)}),!0),e;if(r.A!==t)return e;if(!r.P)return me(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=ie(r.k):r.o;Xt(3===r.i?new Set(i):i,(function(e,o){return ye(t,r,i,e,o,n)})),me(t,i,!1),n&&t.u&&ue("Patches").R(r,n,t.u,t.s)}return r.o}function ye(t,e,n,r,i,o){if(Jt(i)){var s=be(t,i,o&&e&&3!==e.i&&!Qt(e.D,r)?o.concat(r):void 0);if(Yt(n,r,s),!Jt(s))return;t.m=!1}if(Zt(i)&&!ce(i)){if(!t.h.F&&t._<1)return;be(t,i),e&&e.A.l||me(t,i)}}function me(t,e,n){void 0===n&&(n=!1),t.h.F&&t.m&&oe(e,n)}function we(t,e){var n=t[Pe];return(n?re(n):t)[e]}function Oe(t,e){if(e in t)for(var n=Object.getPrototypeOf(t);n;){var r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=Object.getPrototypeOf(n)}}function ge(t){t.P||(t.P=!0,t.l&&ge(t.l))}function xe(t){t.o||(t.o=ie(t.t))}function Se(t,e,n){var r=ee(e)?ue("MapSet").N(e,n):ne(e)?ue("MapSet").T(e,n):t.g?function(t,e){var n=Array.isArray(t),r={i:n?1:0,A:e?e.A:ae(),P:!1,I:!1,D:{},l:e,t,k:null,o:null,j:null,C:!1},i=r,o=Be;n&&(i=[r],o=De);var s=Proxy.revocable(i,o),c=s.revoke,u=s.proxy;return r.k=u,r.j=c,u}(e,n):ue("ES5").J(e,n);return(n?n.A:ae()).p.push(r),r}function Ee(t){return Jt(t)||qt(22,t),function t(e){if(!Zt(e))return e;var n,r=e[Pe],i=Gt(e);if(r){if(!r.P&&(r.i<4||!ue("ES5").K(r)))return r.t;r.I=!0,n=je(e,i),r.I=!1}else n=je(e,i);return Xt(n,(function(e,i){r&&function(t,e){return 2===Gt(t)?t.get(e):t[e]}(r.t,e)===i||Yt(n,e,t(i))})),3===i?new Set(n):n}(t)}function je(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return ie(t)}var Re,Ce,Ne="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Me="undefined"!=typeof Map,$e="undefined"!=typeof Set,_e="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Ae=Ne?Symbol.for("immer-nothing"):((Re={})["immer-nothing"]=!0,Re),ke=Ne?Symbol.for("immer-draftable"):"__$immer_draftable",Pe=Ne?Symbol.for("immer-state"):"__$immer_state",Ue=""+Object.prototype.constructor,Fe="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Le=Object.getOwnPropertyDescriptors||function(t){var e={};return Fe(t).forEach((function(n){e[n]=Object.getOwnPropertyDescriptor(t,n)})),e},Te={},Be={get:function(t,e){if(e===Pe)return t;var n=re(t);if(!Qt(n,e))return function(t,e,n){var r,i=Oe(e,n);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(t.k):void 0}(t,n,e);var r=n[e];return t.I||!Zt(r)?r:r===we(t.t,e)?(xe(t),t.o[e]=Se(t.A.h,r,t)):r},has:function(t,e){return e in re(t)},ownKeys:function(t){return Reflect.ownKeys(re(t))},set:function(t,e,n){var r=Oe(re(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,n),!0;if(!t.P){var i=we(re(t),e),o=null==i?void 0:i[Pe];if(o&&o.t===n)return t.o[e]=n,t.D[e]=!1,!0;if(te(n,i)&&(void 0!==n||Qt(t.t,e)))return!0;xe(t),ge(t)}return t.o[e]===n&&"number"!=typeof n&&(void 0!==n||e in t.o)||(t.o[e]=n,t.D[e]=!0,!0)},deleteProperty:function(t,e){return void 0!==we(t.t,e)||e in t.t?(t.D[e]=!1,xe(t),ge(t)):delete t.D[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var n=re(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:r.enumerable,value:n[e]}:r},defineProperty:function(){qt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){qt(12)}},De={};Xt(Be,(function(t,e){De[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),De.deleteProperty=function(t,e){return De.set.call(this,t,e,void 0)},De.set=function(t,e,n){return Be.set.call(this,t[0],e,n,t[0])};var We=function(){function t(t){var e=this;this.g=_e,this.F=!0,this.produce=function(t,n,r){if("function"==typeof t&&"function"!=typeof n){var i=n;n=t;var o=e;return function(t){var e=this;void 0===t&&(t=i);for(var r=arguments.length,s=Array(r>1?r-1:0),c=1;c<r;c++)s[c-1]=arguments[c];return o.produce(t,(function(t){var r;return(r=n).call.apply(r,[e,t].concat(s))}))}}var s;if("function"!=typeof n&&qt(6),void 0!==r&&"function"!=typeof r&&qt(7),Zt(t)){var c=de(e),u=Se(e,t,void 0),a=!0;try{s=n(u),a=!1}finally{a?fe(c):he(c)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return le(c,r),pe(t,c)}),(function(t){throw fe(c),t})):(le(c,r),pe(s,c))}if(!t||"object"!=typeof t){if(void 0===(s=n(t))&&(s=t),s===Ae&&(s=void 0),e.F&&oe(s,!0),r){var l=[],f=[];ue("Patches").M(t,s,l,f),r(l,f)}return s}qt(21,t)},this.produceWithPatches=function(t,n){if("function"==typeof t)return function(n){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return e.produceWithPatches(n,(function(e){return t.apply(void 0,[e].concat(i))}))};var r,i,o=e.produce(t,n,(function(t,e){r=t,i=e}));return"undefined"!=typeof Promise&&o instanceof Promise?o.then((function(t){return[t,r,i]})):[o,r,i]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){Zt(t)||qt(8),Jt(t)&&(t=Ee(t));var e=de(this),n=Se(this,t,void 0);return n[Pe].C=!0,he(e),n},e.finishDraft=function(t,e){var n=(t&&t[Pe]).A;return le(n,e),pe(void 0,n)},e.setAutoFreeze=function(t){this.F=t},e.setUseProxies=function(t){t&&!_e&&qt(20),this.g=t},e.applyPatches=function(t,e){var n;for(n=e.length-1;n>=0;n--){var r=e[n];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}n>-1&&(e=e.slice(n+1));var i=ue("Patches").$;return Jt(t)?i(t,e):this.produce(t,(function(t){return i(t,e)}))},t}(),He=new We;function Ie(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ke(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ze(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ke(Object(n),!0).forEach((function(e){Ie(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ke(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ve(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}He.produce,He.produceWithPatches.bind(He),He.setAutoFreeze.bind(He),He.setUseProxies.bind(He),He.applyPatches.bind(He),He.createDraft.bind(He),He.finishDraft.bind(He);var qe="function"==typeof Symbol&&Symbol.observable||"@@observable",Je=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ze={INIT:"@@redux/INIT"+Je(),REPLACE:"@@redux/REPLACE"+Je(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Je()}};function Xe(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Ge(t,e,n){var r;if("function"==typeof e&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(Ve(0));if("function"==typeof e&&void 0===n&&(n=e,e=void 0),void 0!==n){if("function"!=typeof n)throw new Error(Ve(1));return n(Ge)(t,e)}if("function"!=typeof t)throw new Error(Ve(2));var i=t,o=e,s=[],c=s,u=!1;function a(){c===s&&(c=s.slice())}function l(){if(u)throw new Error(Ve(3));return o}function f(t){if("function"!=typeof t)throw new Error(Ve(4));if(u)throw new Error(Ve(5));var e=!0;return a(),c.push(t),function(){if(e){if(u)throw new Error(Ve(6));e=!1,a();var n=c.indexOf(t);c.splice(n,1),s=null}}}function h(t){if(!Xe(t))throw new Error(Ve(7));if(void 0===t.type)throw new Error(Ve(8));if(u)throw new Error(Ve(9));try{u=!0,o=i(o,t)}finally{u=!1}for(var e=s=c,n=0;n<e.length;n++)(0,e[n])();return t}function d(t){if("function"!=typeof t)throw new Error(Ve(10));i=t,h({type:Ze.REPLACE})}function v(){var t,e=f;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Ve(11));function n(){t.next&&t.next(l())}return n(),{unsubscribe:e(n)}}})[qe]=function(){return this},t}return h({type:Ze.INIT}),(r={dispatch:h,subscribe:f,getState:l,replaceReducer:d})[qe]=v,r}function Qe(t){for(var e=Object.keys(t),n={},r=0;r<e.length;r++){var i=e[r];"function"==typeof t[i]&&(n[i]=t[i])}var o,s=Object.keys(n);try{!function(t){Object.keys(t).forEach((function(e){var n=t[e];if(void 0===n(void 0,{type:Ze.INIT}))throw new Error(Ve(12));if(void 0===n(void 0,{type:Ze.PROBE_UNKNOWN_ACTION()}))throw new Error(Ve(13))}))}(n)}catch(t){o=t}return function(t,e){if(void 0===t&&(t={}),o)throw o;for(var r=!1,i={},c=0;c<s.length;c++){var u=s[c],a=n[u],l=t[u],f=a(l,e);if(void 0===f)throw e&&e.type,new Error(Ve(14));i[u]=f,r=r||f!==l}return(r=r||s.length!==Object.keys(t).length)?i:t}}function Ye(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function tn(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return function(){var n=t.apply(void 0,arguments),r=function(){throw new Error(Ve(15))},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},o=e.map((function(t){return t(i)}));return r=Ye.apply(void 0,o)(n.dispatch),ze(ze({},n),{},{dispatch:r})}}}function en(t){return function(e){var n=e.dispatch,r=e.getState;return function(e){return function(i){return"function"==typeof i?i(n,r,t):e(i)}}}}var nn=en();nn.withExtraArgument=en;var rn,on,sn,cn,un=nn,an=(rn=function(t,e){return rn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},rn(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}rn(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),ln=function(t,e){for(var n=0,r=e.length,i=t.length;n<r;n++,i++)t[i]=e[n];return t},fn=Object.defineProperty,hn=Object.getOwnPropertySymbols,dn=Object.prototype.hasOwnProperty,vn=Object.prototype.propertyIsEnumerable,pn=function(t,e,n){return e in t?fn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n},bn="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Ye:Ye.apply(null,arguments)},yn=function(t){function e(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=t.apply(this,n)||this;return Object.setPrototypeOf(i,e.prototype),i}return an(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,ln([void 0],t[0].concat(this)))):new(e.bind.apply(e,ln([void 0],t.concat(this))))},e}(Array);function mn(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,n=void 0===e||e;t.immutableCheck,t.serializableCheck;var r=new yn;return n&&(function(t){return"boolean"==typeof t}(n)?r.push(un):r.push(un.withExtraArgument(n.extraArgument))),r}(t)}}function wn(t){var e,n=mn(),r=t||{},i=r.reducer,o=void 0===i?void 0:i,s=r.middleware,c=void 0===s?n():s,u=r.devTools,a=void 0===u||u,l=r.preloadedState,f=void 0===l?void 0:l,h=r.enhancers,d=void 0===h?void 0:h;if("function"==typeof o)e=o;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var n=e;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return e===n}(o))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=Qe(o)}var v=c;"function"==typeof v&&(v=v(n));var p=tn.apply(void 0,v),b=Ye;a&&(b=bn(function(t,e){for(var n in e||(e={}))dn.call(e,n)&&pn(t,n,e[n]);if(hn)for(var r=0,i=hn(e);r<i.length;r++)n=i[r],vn.call(e,n)&&pn(t,n,e[n]);return t}({trace:!1},"object"==typeof a&&a)));var y=[p];return Array.isArray(d)?y=ln([p],d):"function"==typeof d&&(y=d(y)),Ge(e,f,b.apply(void 0,y))}!function(){function t(t,e){var n=i[t];return n?n.enumerable=e:i[t]=n={configurable:!0,enumerable:e,get:function(){var e=this[Pe];return Be.get(e,t)},set:function(e){var n=this[Pe];Be.set(n,t,e)}},n}function e(t){for(var e=t.length-1;e>=0;e--){var i=t[e][Pe];if(!i.P)switch(i.i){case 5:r(i)&&ge(i);break;case 4:n(i)&&ge(i)}}}function n(t){for(var e=t.t,n=t.k,r=Fe(n),i=r.length-1;i>=0;i--){var o=r[i];if(o!==Pe){var s=e[o];if(void 0===s&&!Qt(e,o))return!0;var c=n[o],u=c&&c[Pe];if(u?u.t!==s:!te(c,s))return!0}}var a=!!e[Pe];return r.length!==Fe(e).length+(a?0:1)}function r(t){var e=t.k;if(e.length!==t.t.length)return!0;var n=Object.getOwnPropertyDescriptor(e,e.length-1);if(n&&!n.get)return!0;for(var r=0;r<e.length;r++)if(!e.hasOwnProperty(r))return!0;return!1}var i={};!function(t,e){Te[t]||(Te[t]=e)}("ES5",{J:function(e,n){var r=Array.isArray(e),i=function(e,n){if(e){for(var r=Array(n.length),i=0;i<n.length;i++)Object.defineProperty(r,""+i,t(i,!0));return r}var o=Le(n);delete o[Pe];for(var s=Fe(o),c=0;c<s.length;c++){var u=s[c];o[u]=t(u,e||!!o[u].enumerable)}return Object.create(Object.getPrototypeOf(n),o)}(r,e),o={i:r?5:4,A:n?n.A:ae(),P:!1,I:!1,D:{},l:n,t:e,k:i,o:null,O:!1,C:!1};return Object.defineProperty(i,Pe,{value:o,writable:!0}),i},S:function(t,n,i){i?Jt(n)&&n[Pe].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var n=e[Pe];if(n){var i=n.t,o=n.k,s=n.D,c=n.i;if(4===c)Xt(o,(function(e){e!==Pe&&(void 0!==i[e]||Qt(i,e)?s[e]||t(o[e]):(s[e]=!0,ge(n)))})),Xt(i,(function(t){void 0!==o[t]||Qt(o,t)||(s[t]=!1,ge(n))}));else if(5===c){if(r(n)&&(ge(n),s.length=!0),o.length<i.length)for(var u=o.length;u<i.length;u++)s[u]=!1;else for(var a=i.length;a<o.length;a++)s[a]=!0;for(var l=Math.min(o.length,i.length),f=0;f<l;f++)o.hasOwnProperty(f)||(s[f]=!0),void 0===s[f]&&t(o[f])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?n(t):r(t)}})}();const On=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(cn=null===(sn=null===(on=window.safari)||void 0===on?void 0:on.pushNotification)||void 0===sn?void 0:sn.toString())&&void 0!==cn?cn:"");var gn=Object.freeze({__proto__:null,isSafari:On,Debouncer:Tt,customElement:t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},jsonProperty:Bt,deepEqual:Dt,delay:t=>new Promise((e=>setTimeout(e,t))),designSystemVariables:Ht,FtCssVariableFactory:Wt,setVariable:function(t,e){return s(`${t.name}: ${e}`)},FtLitElement:Kt,noTextSelect:zt,wordWrap:Vt,ParametrizedLabelResolver:class{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var n,r;let i=null!==(r=null!==(n=this.labels[t])&&void 0!==n?n:this.defaultLabels[t])&&void 0!==r?r:"";return e.forEach(((t,e)=>i=i.replace(new RegExp(`\\{${e}\\}`,"g"),t))),i}},redux:(t,e)=>(n,r)=>{n.constructor.createProperty(r,{attribute:!1,hasChanged:null!=e?e:(t,e)=>!Dt(t,e)});const i=n;i.reduxProperties=i.reduxProperties||new Map,i.reduxProperties.set(r,null!=t?t:t=>t[r])},FtLitElementRedux:class extends Kt{get store(){return this.internalStore}set store(t){this.internalStore=t,this.store&&this.setupStore()}updateFromStore(){const t=this.store.getState();this.reduxProperties&&this.reduxProperties.forEach(((e,n)=>{this[n]=e(t,this)}))}setupStore(){this.unsubscribeFromStore&&this.unsubscribeFromStore(),this.updateFromStore(),this.unsubscribeFromStore=this.store.subscribe((()=>{this.updateFromStore()})),this.onStoreAvailable(),this.requestUpdate()}onStoreAvailable(){}connectedCallback(){super.connectedCallback(),this.store&&this.setupStore()}disconnectedCallback(){this.unsubscribeFromStore&&this.unsubscribeFromStore(),super.disconnectedCallback()}},getStore:function(t,e,n){window.ftReduxStores||(window.ftReduxStores={});const r=e||t.name;return window.ftReduxStores[r]||(window.ftReduxStores[r]=wn({reducer:t.reducer})),window.ftReduxStores[r]},clearAllStores:function(){window.ftReduxStores={}}});t.lit=lt,t.litClassMap=At,t.litDecorators=yt,t.litRepeat=$t,t.litStyleMap=Pt,t.litUnsafeHTML=Lt,t.wcUtils=gn,Object.defineProperty(t,"W",{value:!0})},"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).ftGlobals={});
package/build/index.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import "./silent-define";
2
2
  export declare const isSafari: boolean;
3
- export * from "./aligner";
4
3
  export * from "./Debouncer";
5
4
  export * from "./decorators";
6
5
  export * from "./deep-equal";
package/build/index.js CHANGED
@@ -2,7 +2,6 @@ var _a, _b, _c;
2
2
  import "./silent-define";
3
3
  export const isSafari = (navigator.vendor && !!navigator.vendor.match(/apple/i))
4
4
  || ((_c = (_b = (_a = window.safari) === null || _a === void 0 ? void 0 : _a.pushNotification) === null || _b === void 0 ? void 0 : _b.toString()) !== null && _c !== void 0 ? _c : "") === "[object SafariRemoteNotification]";
5
- export * from "./aligner";
6
5
  export * from "./Debouncer";
7
6
  export * from "./decorators";
8
7
  export * from "./deep-equal";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-wc-utils",
3
- "version": "0.3.43",
3
+ "version": "0.3.46",
4
4
  "description": "Internal web components tools",
5
5
  "author": "Fluid Topics <devtopics@antidot.net>",
6
6
  "license": "ISC",
@@ -17,5 +17,5 @@
17
17
  "@reduxjs/toolkit": "^1.6.2",
18
18
  "lit": "2.2.8"
19
19
  },
20
- "gitHead": "42962910ff06ebfa42e961d1567ee771c517ccb7"
20
+ "gitHead": "de9703e114f8104f705c56d7793f03bfb5faae06"
21
21
  }
@@ -1,4 +0,0 @@
1
- export declare class Aligner {
2
- static computeCenterLeftOffset(parent: HTMLElement, child: HTMLElement): number;
3
- }
4
- //# sourceMappingURL=aligner.d.ts.map
package/build/aligner.js DELETED
@@ -1,8 +0,0 @@
1
- export class Aligner {
2
- static computeCenterLeftOffset(parent, child) {
3
- const buttonWidth = parent.getBoundingClientRect().width;
4
- const menuWidth = child.getBoundingClientRect().width;
5
- return (buttonWidth - menuWidth) / 2;
6
- }
7
- }
8
- //# sourceMappingURL=aligner.js.map