@fluid-topics/ft-reader-topic-metadata 1.2.24 → 1.2.26
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.
|
@@ -1352,7 +1352,7 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
1352
1352
|
size=${this.resolveButtonSize()}
|
|
1353
1353
|
part="icon-button"
|
|
1354
1354
|
></ftds-button>
|
|
1355
|
-
`:le.nothing}resolveButtonSize(){switch(this.size){case tt.large:return tt.medium;case tt.medium:case tt.small:return tt.small}}getLabel(){return this.label||this.textContent}get textContent(){var o,r;return(r=(o=this.slottedContent)===null||o===void 0?void 0:o.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&r!==void 0?r:""}onSlotchange(){this.requestUpdate()}dispatchRemoveEvent(){this.dispatchEvent(new Cr)}typographyVariant(){switch(this.size){case tt.large:return ht.body2medium;case tt.medium:return ht.caption1medium;case tt.small:return ht.caption2medium}}};Ct.elementDefinitions={"ft-typography":et,"ft-icon":J,"ftds-button":Ot};Ct.styles=wi;Xe([(0,se.property)({type:Boolean})],Ct.prototype,"removable",void 0);Xe([(0,se.property)()],Ct.prototype,"removeButtonLabel",void 0);Xe([(0,se.property)()],Ct.prototype,"label",void 0);Xe([(0,se.property)()],Ct.prototype,"icon",void 0);Xe([(0,se.query)("ft-typography slot")],Ct.prototype,"slottedContent",void 0);(0,wr.customElement)("ft-chip")(G);(0,wr.customElement)("ftds-chip")(Ct);var Jr=C(Y());function Qc(e,o){if(e===o)return!0;if(e&&o&&typeof e=="object"&&typeof o=="object"){if(e.constructor!==o.constructor)return!1;var r,n,a;if(Array.isArray(e)){if(r=e.length,r!=o.length)return!1;for(n=r;n--!==0;)if(!Po(e[n],o[n]))return!1;return!0}if(e instanceof Map&&o instanceof Map){if(e.size!==o.size)return!1;for(n of e.entries())if(!o.has(n[0]))return!1;for(n of e.entries())if(!Po(n[1],o.get(n[0])))return!1;return!0}if(e instanceof Set&&o instanceof Set){if(e.size!==o.size)return!1;for(n of e.entries())if(!o.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===o.source&&e.flags===o.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===o.valueOf();if(a=Object.keys(e),r=a.length,r!==Object.keys(o).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(o,a[n]))return!1;for(n=r;n--!==0;){var c=a[n];if(!Po(e[c],o[c]))return!1}return!0}return e!==e&&o!==o}function Po(e,o){try{return Qc(e,o)}catch{return!1}}function Je(e,o){return!Po(e,o)}var Ni=C(Y(),1);var Er=e=>{let o=e??{};return(r,n)=>{var a;let c={hasChanged:Je,attribute:!1,...o};(0,Ni.property)(c)(r,n);let l=r.constructor;l.reduxProperties=new Map(l.reduxProperties),l.reduxProperties.set(n,{selector:(a=o.selector)!==null&&a!==void 0?a:d=>d[n],store:o.store})}};var Io=class{constructor(){this.queue=[]}add(o,r=!1){r&&(this.queue=this.queue.filter(n=>n.type!==o.type)),this.queue.push(o)}consume(o){let r=this.queue.find(n=>n.type===o);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}};var Qe=C(Y(),1);var Ai=C(Y(),1);function Ri(e,o){let r=()=>JSON.parse(JSON.stringify(e));return(0,Ai.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return r();try{return JSON.parse(n)}catch{return r()}},toAttribute:n=>JSON.stringify(n)},hasChanged:Je,...o??{}})}var $o=class{constructor(o=0){this.timeout=o,this.callbacks=[]}run(o,r){return this.callbacks=[o],this.debounce(r)}queue(o,r){return this.callbacks.push(o),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(o){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),o??this.timeout),this.promise}async runCallbacks(){var o,r;let n=[...this.callbacks];this.callbacks=[];let a=(o=this.rejectPromise)!==null&&o!==void 0?o:()=>null,c=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let l of n)try{await l()}catch(d){a(d);return}c(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Pi=C(H(),1);var ko=window,tl=ko.ShadowRoot&&(ko.ShadyCSS===void 0||ko.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,jh=Symbol();var Li=(e,o)=>{tl?e.adoptedStyleSheets=o.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):o.forEach(r=>{let n=document.createElement("style"),a=ko.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=r.cssText,e.appendChild(n)})};var To=class extends Pi.LitElement{createRenderRoot(){let o=this.constructor;o.elementDefinitions&&!o.registry&&(o.registry=new CustomElementRegistry,Object.entries(o.elementDefinitions).forEach(([a,c])=>o.registry.define(a,c)));let r={...o.shadowRootOptions,customElements:o.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return Li(n,o.elementStyles),n}};var Bo=function(e,o,r,n){var a=arguments.length,c=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(c=(a<3?l(c):a>3?l(o,r,c):l(o,r))||c);return a>3&&c&&Object.defineProperty(o,r,c),c},Ti,Ii=Symbol("constructorPrototype"),$i=Symbol("constructorName"),Bi=Symbol("exportpartsDebouncer"),ki=Symbol("dynamicDependenciesLoaded"),Kt=class extends To{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Ti]=new $o(5),this[$i]=this.constructor.name,this[Ii]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[$i]&&Object.setPrototypeOf(this,this[Ii])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let o=this.constructor;o[ki]||(o[ki]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(o){super.updated(o),this.updateComplete.then(()=>{this.contentAvailableCallback(o),this.applyCustomStylesheet(o),this.scheduleExportpartsUpdate()})}contentAvailableCallback(o){}applyCustomStylesheet(o){var r,n,a;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(c=>c.remove()),this.useAdoptedStyleSheets){if(o.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(c){console.error(c,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let c=document.createElement("style");c.classList.add("ft-lit-element--custom-stylesheet"),c.innerHTML=this.customStylesheet,this.shadowRoot.append(c)}}scheduleExportpartsUpdate(){var o,r,n;(!((o=this.exportpartsPrefix)===null||o===void 0)&&o.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[Bi].run(()=>{var a,c;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((c=this.exportpartsPrefixes)===null||c===void 0?void 0:c.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(o){var r,n,a,c,l,d;let p=m=>m!=null&&m.trim().length>0,f=o.filter(p).map(m=>m.trim());if(f.length===0){this.removeAttribute("exportparts");return}let y=new Set;for(let m of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let b=(c=(a=m.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&c!==void 0?c:[],g=(d=(l=m.getAttribute("exportparts"))===null||l===void 0?void 0:l.split(",").map(v=>v.split(":")[1]))!==null&&d!==void 0?d:[];new Array(...b,...g).filter(p).map(v=>v.trim()).forEach(v=>y.add(v))}if(y.size===0){this.removeAttribute("exportparts");return}let h=[...y.values()].flatMap(m=>f.map(b=>`${m}:${b}--${m}`));this.setAttribute("exportparts",[...this.part,...h].join(", "))}};Ti=Bi;Bo([(0,Qe.property)()],Kt.prototype,"exportpartsPrefix",void 0);Bo([Ri([])],Kt.prototype,"exportpartsPrefixes",void 0);Bo([(0,Qe.property)()],Kt.prototype,"customStylesheet",void 0);Bo([(0,Qe.state)()],Kt.prototype,"useAdoptedStyleSheets",void 0);function to(e){var o;return(o=e?.isFtReduxStore)!==null&&o!==void 0?o:!1}var Wi,_i,Di,eo=Symbol("internalReduxEventsUnsubscribers"),Zt=Symbol("internalStoresUnsubscribers"),de=Symbol("internalStores"),oo=class extends Kt{constructor(){super(...arguments),this[Wi]=new Map,this[_i]=new Map,this[Di]=new Map}get reduxConstructor(){return this.constructor}update(o){super.update(o),[...this.reduxConstructor.reduxReactiveProperties].some(r=>o.has(r))&&this.updateFromStores()}getUnnamedStore(){if(this[de].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[de].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[de].get(o)}addStore(o,r){var n;r=(n=r??(to(o)?o.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(r),this[de].set(r,o),this.subscribeToStore(r,o),this.updateFromStores()}removeStore(o){let r=typeof o=="string"?o:o.name;this.unsubscribeFromStore(r),this[de].delete(r)}setupStores(){this.unsubscribeFromStores(),this[de].forEach((o,r)=>this.subscribeToStore(r,o)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((o,r)=>{let n=this.constructor.getPropertyOptions(r);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:r)){let a=this.getStore(o.store);a&&(o.store?this[Zt].has(o.store):this[Zt].size>0)&&(this[r]=o.selector(a.getState(),this))}})}subscribeToStore(o,r){var n;this[Zt].set(o,r.subscribe(()=>this.updateFromStores())),this[eo].set(o,[]),to(r)&&r.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,c)=>{if(typeof this[c]=="function"&&(!a.store||r.name===a.store)){let l=d=>this[c](d);r.addEventListener(a.eventName,l),this[eo].get(o).push(()=>r.removeEventListener(a.eventName,l))}})),this.onStoreAvailable(o)}unsubscribeFromStores(){this[Zt].forEach((o,r)=>this.unsubscribeFromStore(r))}unsubscribeFromStore(o){var r;this[Zt].has(o)&&this[Zt].get(o)(),this[Zt].delete(o),(r=this[eo].get(o))===null||r===void 0||r.forEach(n=>n()),this[eo].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Wi=Zt,_i=de,Di=eo;oo.reduxProperties=new Map;oo.reduxReactiveProperties=new Set;oo.reduxEventListeners=new Map;function xt(e){for(var o=arguments.length,r=Array(o>1?o-1:0),n=1;n<o;n++)r[n-1]=arguments[n];if(0)var a,c;throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(l){return"'"+l+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function _t(e){return!!e&&!!e[M]}function wt(e){var o;return!!e&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===ll}(e)||Array.isArray(e)||!!e[ji]||!!(!((o=e.constructor)===null||o===void 0)&&o[ji])||Tr(e)||Br(e))}function fe(e,o,r){r===void 0&&(r=!1),Ie(e)===0?(r?Object.keys:Pe)(e).forEach(function(n){r&&typeof n=="symbol"||o(n,e[n],e)}):e.forEach(function(n,a){return o(a,n,e)})}function Ie(e){var o=e[M];return o?o.i>3?o.i-4:o.i:Array.isArray(e)?1:Tr(e)?2:Br(e)?3:0}function Le(e,o){return Ie(e)===2?e.has(o):Object.prototype.hasOwnProperty.call(e,o)}function el(e,o){return Ie(e)===2?e.get(o):e[o]}function Vi(e,o,r){var n=Ie(e);n===2?e.set(o,r):n===3?e.add(r):e[o]=r}function Ki(e,o){return e===o?e!==0||1/e==1/o:e!=e&&o!=o}function Tr(e){return il&&e instanceof Map}function Br(e){return cl&&e instanceof Set}function Yt(e){return e.o||e.t}function Wr(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var o=qi(e);delete o[M];for(var r=Pe(o),n=0;n<r.length;n++){var a=r[n],c=o[a];c.writable===!1&&(c.writable=!0,c.configurable=!0),(c.get||c.set)&&(o[a]={configurable:!0,writable:!0,enumerable:c.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),o)}function _r(e,o){return o===void 0&&(o=!1),Dr(e)||_t(e)||!wt(e)||(Ie(e)>1&&(e.set=e.add=e.clear=e.delete=ol),Object.freeze(e),o&&fe(e,function(r,n){return _r(n,!0)},!0)),e}function ol(){xt(2)}function Dr(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Lt(e){var o=kr[e];return o||xt(18,e),o}function rl(e,o){kr[e]||(kr[e]=o)}function Pr(){return no}function Nr(e,o){o&&(Lt("Patches"),e.u=[],e.s=[],e.v=o)}function Wo(e){Ir(e),e.p.forEach(nl),e.p=null}function Ir(e){e===no&&(no=e.l)}function zi(e){return no={p:[],l:no,h:e,m:!0,_:0}}function nl(e){var o=e[M];o.i===0||o.i===1?o.j():o.g=!0}function Ar(e,o){o._=o.p.length;var r=o.p[0],n=e!==void 0&&e!==r;return o.h.O||Lt("ES5").S(o,e,n),n?(r[M].P&&(Wo(o),xt(4)),wt(e)&&(e=_o(o,e),o.l||Do(o,e)),o.u&&Lt("Patches").M(r[M].t,e,o.u,o.s)):e=_o(o,r,[]),Wo(o),o.u&&o.v(o.u,o.s),e!==Yi?e:void 0}function _o(e,o,r){if(Dr(o))return o;var n=o[M];if(!n)return fe(o,function(d,p){return Mi(e,n,o,d,p,r)},!0),o;if(n.A!==e)return o;if(!n.P)return Do(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Wr(n.k):n.o,c=a,l=!1;n.i===3&&(c=new Set(a),a.clear(),l=!0),fe(c,function(d,p){return Mi(e,n,a,d,p,r,l)}),Do(e,a,!1),r&&e.u&&Lt("Patches").N(n,r,e.u,e.s)}return n.o}function Mi(e,o,r,n,a,c,l){if(_t(a)){var d=_o(e,a,c&&o&&o.i!==3&&!Le(o.R,n)?c.concat(n):void 0);if(Vi(r,n,d),!_t(d))return;e.m=!1}else l&&r.add(a);if(wt(a)&&!Dr(a)){if(!e.h.D&&e._<1)return;_o(e,a),o&&o.A.l||Do(e,a)}}function Do(e,o,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&_r(o,r)}function Rr(e,o){var r=e[M];return(r?Yt(r):e)[o]}function Hi(e,o){if(o in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,o);if(n)return n;r=Object.getPrototypeOf(r)}}function qt(e){e.P||(e.P=!0,e.l&&qt(e.l))}function Lr(e){e.o||(e.o=Wr(e.t))}function $r(e,o,r){var n=Tr(o)?Lt("MapSet").F(o,r):Br(o)?Lt("MapSet").T(o,r):e.O?function(a,c){var l=Array.isArray(a),d={i:l?1:0,A:c?c.A:Pr(),P:!1,I:!1,R:{},l:c,t:a,k:null,o:null,j:null,C:!1},p=d,f=ao;l&&(p=[d],f=ro);var y=Proxy.revocable(p,f),h=y.revoke,m=y.proxy;return d.k=m,d.j=h,m}(o,r):Lt("ES5").J(o,r);return(r?r.A:Pr()).p.push(n),n}function al(e){return _t(e)||xt(22,e),function o(r){if(!wt(r))return r;var n,a=r[M],c=Ie(r);if(a){if(!a.P&&(a.i<4||!Lt("ES5").K(a)))return a.t;a.I=!0,n=Ui(r,c),a.I=!1}else n=Ui(r,c);return fe(n,function(l,d){a&&el(a.t,l)===d||Vi(n,l,o(d))}),c===3?new Set(n):n}(e)}function Ui(e,o){switch(o){case 2:return new Map(e);case 3:return Array.from(e)}return Wr(e)}function Zi(){function e(l,d){var p=c[l];return p?p.enumerable=d:c[l]=p={configurable:!0,enumerable:d,get:function(){var f=this[M];return ao.get(f,l)},set:function(f){var y=this[M];ao.set(y,l,f)}},p}function o(l){for(var d=l.length-1;d>=0;d--){var p=l[d][M];if(!p.P)switch(p.i){case 5:n(p)&&qt(p);break;case 4:r(p)&&qt(p)}}}function r(l){for(var d=l.t,p=l.k,f=Pe(p),y=f.length-1;y>=0;y--){var h=f[y];if(h!==M){var m=d[h];if(m===void 0&&!Le(d,h))return!0;var b=p[h],g=b&&b[M];if(g?g.t!==m:!Ki(b,m))return!0}}var v=!!d[M];return f.length!==Pe(d).length+(v?0:1)}function n(l){var d=l.k;if(d.length!==l.t.length)return!0;var p=Object.getOwnPropertyDescriptor(d,d.length-1);if(p&&!p.get)return!0;for(var f=0;f<d.length;f++)if(!d.hasOwnProperty(f))return!0;return!1}function a(l){l.g&&xt(3,JSON.stringify(Yt(l)))}var c={};rl("ES5",{J:function(l,d){var p=Array.isArray(l),f=function(h,m){if(h){for(var b=Array(m.length),g=0;g<m.length;g++)Object.defineProperty(b,""+g,e(g,!0));return b}var v=qi(m);delete v[M];for(var R=Pe(v),E=0;E<R.length;E++){var N=R[E];v[N]=e(N,h||!!v[N].enumerable)}return Object.create(Object.getPrototypeOf(m),v)}(p,l),y={i:p?5:4,A:d?d.A:Pr(),P:!1,I:!1,R:{},l:d,t:l,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,M,{value:y,writable:!0}),f},S:function(l,d,p){p?_t(d)&&d[M].A===l&&o(l.p):(l.u&&function f(y){if(y&&typeof y=="object"){var h=y[M];if(h){var m=h.t,b=h.k,g=h.R,v=h.i;if(v===4)fe(b,function(k){k!==M&&(m[k]!==void 0||Le(m,k)?g[k]||f(b[k]):(g[k]=!0,qt(h)))}),fe(m,function(k){b[k]!==void 0||Le(b,k)||(g[k]=!1,qt(h))});else if(v===5){if(n(h)&&(qt(h),g.length=!0),b.length<m.length)for(var R=b.length;R<m.length;R++)g[R]=!1;else for(var E=m.length;E<b.length;E++)g[E]=!0;for(var N=Math.min(b.length,m.length),L=0;L<N;L++)b.hasOwnProperty(L)||(g[L]=!0),g[L]===void 0&&f(b[L])}}}}(l.p[0]),o(l.p))},K:function(l){return l.i===4?r(l):n(l)}})}var Gi,no,zr=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",il=typeof Map<"u",cl=typeof Set<"u",Fi=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Yi=zr?Symbol.for("immer-nothing"):((Gi={})["immer-nothing"]=!0,Gi),ji=zr?Symbol.for("immer-draftable"):"__$immer_draftable",M=zr?Symbol.for("immer-state"):"__$immer_state";var ll=""+Object.prototype.constructor,Pe=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,qi=Object.getOwnPropertyDescriptors||function(e){var o={};return Pe(e).forEach(function(r){o[r]=Object.getOwnPropertyDescriptor(e,r)}),o},kr={},ao={get:function(e,o){if(o===M)return e;var r=Yt(e);if(!Le(r,o))return function(a,c,l){var d,p=Hi(c,l);return p?"value"in p?p.value:(d=p.get)===null||d===void 0?void 0:d.call(a.k):void 0}(e,r,o);var n=r[o];return e.I||!wt(n)?n:n===Rr(e.t,o)?(Lr(e),e.o[o]=$r(e.A.h,n,e)):n},has:function(e,o){return o in Yt(e)},ownKeys:function(e){return Reflect.ownKeys(Yt(e))},set:function(e,o,r){var n=Hi(Yt(e),o);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var a=Rr(Yt(e),o),c=a?.[M];if(c&&c.t===r)return e.o[o]=r,e.R[o]=!1,!0;if(Ki(r,a)&&(r!==void 0||Le(e.t,o)))return!0;Lr(e),qt(e)}return e.o[o]===r&&(r!==void 0||o in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[o])||(e.o[o]=r,e.R[o]=!0),!0},deleteProperty:function(e,o){return Rr(e.t,o)!==void 0||o in e.t?(e.R[o]=!1,Lr(e),qt(e)):delete e.R[o],e.o&&delete e.o[o],!0},getOwnPropertyDescriptor:function(e,o){var r=Yt(e),n=Reflect.getOwnPropertyDescriptor(r,o);return n&&{writable:!0,configurable:e.i!==1||o!=="length",enumerable:n.enumerable,value:r[o]}},defineProperty:function(){xt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){xt(12)}},ro={};fe(ao,function(e,o){ro[e]=function(){return arguments[0]=arguments[0][0],o.apply(this,arguments)}}),ro.deleteProperty=function(e,o){return ro.set.call(this,e,o,void 0)},ro.set=function(e,o,r){return ao.set.call(this,e[0],o,r,e[0])};var sl=function(){function e(r){var n=this;this.O=Fi,this.D=!0,this.produce=function(a,c,l){if(typeof a=="function"&&typeof c!="function"){var d=c;c=a;var p=n;return function(v){var R=this;v===void 0&&(v=d);for(var E=arguments.length,N=Array(E>1?E-1:0),L=1;L<E;L++)N[L-1]=arguments[L];return p.produce(v,function(k){var B;return(B=c).call.apply(B,[R,k].concat(N))})}}var f;if(typeof c!="function"&&xt(6),l!==void 0&&typeof l!="function"&&xt(7),wt(a)){var y=zi(n),h=$r(n,a,void 0),m=!0;try{f=c(h),m=!1}finally{m?Wo(y):Ir(y)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(v){return Nr(y,l),Ar(v,y)},function(v){throw Wo(y),v}):(Nr(y,l),Ar(f,y))}if(!a||typeof a!="object"){if((f=c(a))===void 0&&(f=a),f===Yi&&(f=void 0),n.D&&_r(f,!0),l){var b=[],g=[];Lt("Patches").M(a,f,b,g),l(b,g)}return f}xt(21,a)},this.produceWithPatches=function(a,c){if(typeof a=="function")return function(f){for(var y=arguments.length,h=Array(y>1?y-1:0),m=1;m<y;m++)h[m-1]=arguments[m];return n.produceWithPatches(f,function(b){return a.apply(void 0,[b].concat(h))})};var l,d,p=n.produce(a,c,function(f,y){l=f,d=y});return typeof Promise<"u"&&p instanceof Promise?p.then(function(f){return[f,l,d]}):[p,l,d]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var o=e.prototype;return o.createDraft=function(r){wt(r)||xt(8),_t(r)&&(r=al(r));var n=zi(this),a=$r(this,r,void 0);return a[M].C=!0,Ir(n),a},o.finishDraft=function(r,n){var a=r&&r[M],c=a.A;return Nr(c,n),Ar(void 0,c)},o.setAutoFreeze=function(r){this.D=r},o.setUseProxies=function(r){r&&!Fi&&xt(20),this.O=r},o.applyPatches=function(r,n){var a;for(a=n.length-1;a>=0;a--){var c=n[a];if(c.path.length===0&&c.op==="replace"){r=c.value;break}}a>-1&&(n=n.slice(a+1));var l=Lt("Patches").$;return _t(r)?l(r,n):this.produce(r,function(d){return l(d,n)})},e}(),ft=new sl,dl=ft.produce,rm=ft.produceWithPatches.bind(ft),nm=ft.setAutoFreeze.bind(ft),am=ft.setUseProxies.bind(ft),im=ft.applyPatches.bind(ft),cm=ft.createDraft.bind(ft),lm=ft.finishDraft.bind(ft),zo=dl;function Xt(e){"@babel/helpers - typeof";return Xt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Xt(e)}function Mr(e,o){if(Xt(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,o||"default");if(Xt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(e)}function Hr(e){var o=Mr(e,"string");return Xt(o)==="symbol"?o:String(o)}function Ur(e,o,r){return o=Hr(o),o in e?Object.defineProperty(e,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[o]=r,e}function Xi(e,o){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);o&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Mo(e){for(var o=1;o<arguments.length;o++){var r=arguments[o]!=null?arguments[o]:{};o%2?Xi(Object(r),!0).forEach(function(n){Ur(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xi(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Q(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Ji=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Gr=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ho={INIT:"@@redux/INIT"+Gr(),REPLACE:"@@redux/REPLACE"+Gr(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Gr()}};function fl(e){if(typeof e!="object"||e===null)return!1;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return Object.getPrototypeOf(e)===o}function Fr(e,o,r){var n;if(typeof o=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Q(0));if(typeof o=="function"&&typeof r>"u"&&(r=o,o=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Q(1));return r(Fr)(e,o)}if(typeof e!="function")throw new Error(Q(2));var a=e,c=o,l=[],d=l,p=!1;function f(){d===l&&(d=l.slice())}function y(){if(p)throw new Error(Q(3));return c}function h(v){if(typeof v!="function")throw new Error(Q(4));if(p)throw new Error(Q(5));var R=!0;return f(),d.push(v),function(){if(R){if(p)throw new Error(Q(6));R=!1,f();var N=d.indexOf(v);d.splice(N,1),l=null}}}function m(v){if(!fl(v))throw new Error(Q(7));if(typeof v.type>"u")throw new Error(Q(8));if(p)throw new Error(Q(9));try{p=!0,c=a(c,v)}finally{p=!1}for(var R=l=d,E=0;E<R.length;E++){var N=R[E];N()}return v}function b(v){if(typeof v!="function")throw new Error(Q(10));a=v,m({type:Ho.REPLACE})}function g(){var v,R=h;return v={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(Q(11));function L(){N.next&&N.next(y())}L();var k=R(L);return{unsubscribe:k}}},v[Ji]=function(){return this},v}return m({type:Ho.INIT}),n={dispatch:m,subscribe:h,getState:y,replaceReducer:b},n[Ji]=g,n}function pl(e){Object.keys(e).forEach(function(o){var r=e[o],n=r(void 0,{type:Ho.INIT});if(typeof n>"u")throw new Error(Q(12));if(typeof r(void 0,{type:Ho.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Q(13))})}function Qi(e){for(var o=Object.keys(e),r={},n=0;n<o.length;n++){var a=o[n];typeof e[a]=="function"&&(r[a]=e[a])}var c=Object.keys(r),l,d;try{pl(r)}catch(p){d=p}return function(f,y){if(f===void 0&&(f={}),d)throw d;if(0)var h;for(var m=!1,b={},g=0;g<c.length;g++){var v=c[g],R=r[v],E=f[v],N=R(E,y);if(typeof N>"u"){var L=y&&y.type;throw new Error(Q(14))}b[v]=N,m=m||N!==E}return m=m||c.length!==Object.keys(f).length,m?b:f}}function $e(){for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];return o.length===0?function(n){return n}:o.length===1?o[0]:o.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function tc(){for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];return function(n){return function(){var a=n.apply(void 0,arguments),c=function(){throw new Error(Q(15))},l={getState:a.getState,dispatch:function(){return c.apply(void 0,arguments)}},d=o.map(function(p){return p(l)});return c=$e.apply(void 0,d)(a.dispatch),Mo(Mo({},a),{},{dispatch:c})}}}function ec(e){var o=function(n){var a=n.dispatch,c=n.getState;return function(l){return function(d){return typeof d=="function"?d(a,c,e):l(d)}}};return o}var oc=ec();oc.withExtraArgument=ec;var jr=oc;var cc=function(){var e=function(o,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(n[c]=a[c])},e(o,r)};return function(o,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(o,r);function n(){this.constructor=o}o.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),ul=function(e,o){var r={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},n,a,c,l;return l={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function d(f){return function(y){return p([f,y])}}function p(f){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,a&&(c=f[0]&2?a.return:f[0]?a.throw||((c=a.return)&&c.call(a),0):a.next)&&!(c=c.call(a,f[1])).done)return c;switch(a=0,c&&(f=[f[0]&2,c.value]),f[0]){case 0:case 1:c=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++,a=f[1],f=[0];continue;case 7:f=r.ops.pop(),r.trys.pop();continue;default:if(c=r.trys,!(c=c.length>0&&c[c.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!c||f[1]>c[0]&&f[1]<c[3])){r.label=f[1];break}if(f[0]===6&&r.label<c[1]){r.label=c[1],c=f;break}if(c&&r.label<c[2]){r.label=c[2],r.ops.push(f);break}c[2]&&r.ops.pop(),r.trys.pop();continue}f=o.call(e,r)}catch(y){f=[6,y],a=0}finally{n=c=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},ke=function(e,o){for(var r=0,n=o.length,a=e.length;r<n;r++,a++)e[a]=o[r];return e},yl=Object.defineProperty,hl=Object.defineProperties,ml=Object.getOwnPropertyDescriptors,rc=Object.getOwnPropertySymbols,gl=Object.prototype.hasOwnProperty,bl=Object.prototype.propertyIsEnumerable,nc=function(e,o,r){return o in e?yl(e,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[o]=r},Jt=function(e,o){for(var r in o||(o={}))gl.call(o,r)&&nc(e,r,o[r]);if(rc)for(var n=0,a=rc(o);n<a.length;n++){var r=a[n];bl.call(o,r)&&nc(e,r,o[r])}return e},Vr=function(e,o){return hl(e,ml(o))},xl=function(e,o,r){return new Promise(function(n,a){var c=function(p){try{d(r.next(p))}catch(f){a(f)}},l=function(p){try{d(r.throw(p))}catch(f){a(f)}},d=function(p){return p.done?n(p.value):Promise.resolve(p.value).then(c,l)};d((r=r.apply(e,o)).next())})};var vl=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?$e:$e.apply(null,arguments)},Nm=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Sl(e){if(typeof e!="object"||e===null)return!1;var o=Object.getPrototypeOf(e);if(o===null)return!0;for(var r=o;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return o===r}var Ol=function(e){cc(o,e);function o(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=e.apply(this,r)||this;return Object.setPrototypeOf(a,o.prototype),a}return Object.defineProperty(o,Symbol.species,{get:function(){return o},enumerable:!1,configurable:!0}),o.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},o.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(o.bind.apply(o,ke([void 0],r[0].concat(this)))):new(o.bind.apply(o,ke([void 0],r.concat(this))))},o}(Array),Cl=function(e){cc(o,e);function o(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=e.apply(this,r)||this;return Object.setPrototypeOf(a,o.prototype),a}return Object.defineProperty(o,Symbol.species,{get:function(){return o},enumerable:!1,configurable:!0}),o.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},o.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(o.bind.apply(o,ke([void 0],r[0].concat(this)))):new(o.bind.apply(o,ke([void 0],r.concat(this))))},o}(Array);function Yr(e){return wt(e)?zo(e,function(){}):e}function wl(e){return typeof e=="boolean"}function El(){return function(o){return Nl(o)}}function Nl(e){e===void 0&&(e={});var o=e.thunk,r=o===void 0?!0:o,n=e.immutableCheck,a=n===void 0?!0:n,c=e.serializableCheck,l=c===void 0?!0:c,d=new Ol;if(r&&(wl(r)?d.push(jr):d.push(jr.withExtraArgument(r.extraArgument))),0){if(a)var p;if(l)var f}return d}var Kr=!0;function lc(e){var o=El(),r=e||{},n=r.reducer,a=n===void 0?void 0:n,c=r.middleware,l=c===void 0?o():c,d=r.devTools,p=d===void 0?!0:d,f=r.preloadedState,y=f===void 0?void 0:f,h=r.enhancers,m=h===void 0?void 0:h,b;if(typeof a=="function")b=a;else if(Sl(a))b=Qi(a);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 g=l;if(typeof g=="function"&&(g=g(o),!Kr&&!Array.isArray(g)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Kr&&g.some(function(k){return typeof k!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=tc.apply(void 0,g),R=$e;p&&(R=vl(Jt({trace:!Kr},typeof p=="object"&&p)));var E=new Cl(v),N=E;Array.isArray(m)?N=ke([v],m):typeof m=="function"&&(N=m(E));var L=R.apply(void 0,N);return Fr(b,y,L)}function Qt(e,o){function r(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(o){var c=o.apply(void 0,n);if(!c)throw new Error("prepareAction did not return an object");return Jt(Jt({type:e,payload:c.payload},"meta"in c&&{meta:c.meta}),"error"in c&&{error:c.error})}return{type:e,payload:n[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(n){return n.type===e},r}function sc(e){var o={},r=[],n,a={addCase:function(c,l){var d=typeof c=="string"?c:c.type;if(d in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[d]=l,a},addMatcher:function(c,l){return r.push({matcher:c,reducer:l}),a},addDefaultCase:function(c){return n=c,a}};return e(a),[o,r,n]}function Al(e){return typeof e=="function"}function Rl(e,o,r,n){r===void 0&&(r=[]);var a=typeof o=="function"?sc(o):[o,r,n],c=a[0],l=a[1],d=a[2],p;if(Al(e))p=function(){return Yr(e())};else{var f=Yr(e);p=function(){return f}}function y(h,m){h===void 0&&(h=p());var b=ke([c[m.type]],l.filter(function(g){var v=g.matcher;return v(m)}).map(function(g){var v=g.reducer;return v}));return b.filter(function(g){return!!g}).length===0&&(b=[d]),b.reduce(function(g,v){if(v)if(_t(g)){var R=g,E=v(R,m);return E===void 0?g:E}else{if(wt(g))return zo(g,function(N){return v(N,m)});var E=v(g,m);if(E===void 0){if(g===null)return g;throw Error("A case reducer on a non-draftable value must not return undefined")}return E}return g},h)}return y.getInitialState=p,y}function Ll(e,o){return e+"/"+o}function dc(e){var o=e.name;if(!o)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof e.initialState=="function"?e.initialState:Yr(e.initialState),n=e.reducers||{},a=Object.keys(n),c={},l={},d={};a.forEach(function(y){var h=n[y],m=Ll(o,y),b,g;"reducer"in h?(b=h.reducer,g=h.prepare):b=h,c[y]=b,l[m]=b,d[y]=g?Qt(m,g):Qt(m)});function p(){var y=typeof e.extraReducers=="function"?sc(e.extraReducers):[e.extraReducers],h=y[0],m=h===void 0?{}:h,b=y[1],g=b===void 0?[]:b,v=y[2],R=v===void 0?void 0:v,E=Jt(Jt({},m),l);return Rl(r,function(N){for(var L in E)N.addCase(L,E[L]);for(var k=0,B=g;k<B.length;k++){var ut=B[k];N.addMatcher(ut.matcher,ut.reducer)}R&&N.addDefaultCase(R)})}var f;return{name:o,reducer:function(y,h){return f||(f=p()),f(y,h)},actions:d,caseReducers:c,getInitialState:function(){return f||(f=p()),f.getInitialState()}}}var Pl="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Il=function(e){e===void 0&&(e=21);for(var o="",r=e;r--;)o+=Pl[Math.random()*64|0];return o},$l=["name","message","stack","code"],Zr=function(){function e(o,r){this.payload=o,this.meta=r}return e}(),ac=function(){function e(o,r){this.payload=o,this.meta=r}return e}(),kl=function(e){if(typeof e=="object"&&e!==null){for(var o={},r=0,n=$l;r<n.length;r++){var a=n[r];typeof e[a]=="string"&&(o[a]=e[a])}return o}return{message:String(e)}},Pm=function(){function e(o,r,n){var a=Qt(o+"/fulfilled",function(y,h,m,b){return{payload:y,meta:Vr(Jt({},b||{}),{arg:m,requestId:h,requestStatus:"fulfilled"})}}),c=Qt(o+"/pending",function(y,h,m){return{payload:void 0,meta:Vr(Jt({},m||{}),{arg:h,requestId:y,requestStatus:"pending"})}}),l=Qt(o+"/rejected",function(y,h,m,b,g){return{payload:b,error:(n&&n.serializeError||kl)(y||"Rejected"),meta:Vr(Jt({},g||{}),{arg:m,requestId:h,rejectedWithValue:!!b,requestStatus:"rejected",aborted:y?.name==="AbortError",condition:y?.name==="ConditionError"})}}),d=!1,p=typeof AbortController<"u"?AbortController:function(){function y(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return y.prototype.abort=function(){},y}();function f(y){return function(h,m,b){var g=n?.idGenerator?n.idGenerator(y):Il(),v=new p,R,E=!1;function N(k){R=k,v.abort()}var L=function(){return xl(this,null,function(){var k,B,ut,zt,Vo,Mt,it;return ul(this,function(yt){switch(yt.label){case 0:return yt.trys.push([0,4,,5]),zt=(k=n?.condition)==null?void 0:k.call(n,y,{getState:m,extra:b}),Bl(zt)?[4,zt]:[3,2];case 1:zt=yt.sent(),yt.label=2;case 2:if(zt===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return E=!0,Vo=new Promise(function(ct,te){return v.signal.addEventListener("abort",function(){return te({name:"AbortError",message:R||"Aborted"})})}),h(c(g,y,(B=n?.getPendingMeta)==null?void 0:B.call(n,{requestId:g,arg:y},{getState:m,extra:b}))),[4,Promise.race([Vo,Promise.resolve(r(y,{dispatch:h,getState:m,extra:b,requestId:g,signal:v.signal,abort:N,rejectWithValue:function(ct,te){return new Zr(ct,te)},fulfillWithValue:function(ct,te){return new ac(ct,te)}})).then(function(ct){if(ct instanceof Zr)throw ct;return ct instanceof ac?a(ct.payload,g,y,ct.meta):a(ct,g,y)})])];case 3:return ut=yt.sent(),[3,5];case 4:return Mt=yt.sent(),ut=Mt instanceof Zr?l(null,g,y,Mt.payload,Mt.meta):l(Mt,g,y),[3,5];case 5:return it=n&&!n.dispatchConditionRejection&&l.match(ut)&&ut.meta.condition,it||h(ut),[2,ut]}})})}();return Object.assign(L,{abort:N,requestId:g,arg:y,unwrap:function(){return L.then(Tl)}})}}return Object.assign(f,{pending:c,rejected:l,fulfilled:a,typePrefix:o})}return e.withTypes=function(){return e},e}();function Tl(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Bl(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var fc="listener",pc="completed",uc="cancelled",Im="task-"+uc,$m="task-"+pc,km=fc+"-"+uc,Tm=fc+"-"+pc;var qr="listenerMiddleware";var Bm=Qt(qr+"/add"),Wm=Qt(qr+"/removeAll"),_m=Qt(qr+"/remove");var ic,Dm=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(ic||(ic=Promise.resolve())).then(e).catch(function(o){return setTimeout(function(){throw o},0)})},Wl=function(e){return function(o){setTimeout(o,e)}},zm=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Wl(10);Zi();function _l(e,o){return class extends e{constructor(){super(...arguments),this.eventBus=o??document.createElement("span")}addEventListener(r,n,a){this.eventBus.addEventListener(r,n,a)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,a){this.eventBus.removeEventListener(r,n,a)}}}var Uo=class extends _l(Object){};window.ftReduxStores||(window.ftReduxStores={});var yc=class e extends Uo{static get(o){var r;let n=typeof o=="string"?o:o.name,a=typeof o=="string"?void 0:o,c=window.ftReduxStores[n];if(to(c))return c;if(a==null)return;let l=dc({...a,reducers:(r=a.reducers)!==null&&r!==void 0?r:{}}),d=lc({reducer:(p,f)=>f.type==="CLEAR_FT_REDUX_STORE"?l.getInitialState():typeof f.type=="string"&&f.type.startsWith("DEFAULT_VALUE_SETTER__")?{...p,...f.overwrites}:l.reducer(p,f)});return window.ftReduxStores[a.name]=new e(l,d)}constructor(o,r){super(),this.reduxSlice=o,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Io;let n=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,c,l)=>{let d=c,p=a[d];return p?(...f)=>{let y=p(...f.map(n));return this.reduxStore.dispatch(y),y}:f=>{this.setState({[d]:n(f)})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(o){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(o).join("_"),overwrites:o})}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(o){throw new Error("Not implemented yet.")}subscribe(o){return this.reduxStore.subscribe(o)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Go=class{static format(o,r,n,a){return window.moment?window.moment(o).locale(r).format(this.getDateFormat(n,a)):o}static getDateFormat(o,r){return o?r?"lll":"ll":r?"L LT":"L"}};var Fo=C(T()),Dl="ft-app-info",Xr=class extends CustomEvent{constructor(o){super("authentication-change",{detail:o})}},zl={session:(e,o)=>{(0,Fo.deepEqual)(e.session,o.payload)||(e.session=o.payload,setTimeout(()=>io.dispatchEvent(new Xr(o.payload)),0))}},io=Fo.FtReduxStore.get({name:Dl,reducers:zl,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var jo=function(e,o,r,n){var a=arguments.length,c=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(c=(a<3?l(c):a>3?l(o,r,c):l(o,r))||c);return a>3&&c&&Object.defineProperty(o,r,c),c};function hc(e){class o extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(io)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var a,c;return((c=(a=this.metadataDescriptors.find(d=>d.key===n))===null||a===void 0?void 0:a.date)!==null&&c!==void 0?c:!1)?d=>Go.format(d,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return jo([(0,Jr.property)({type:Boolean})],o.prototype,"useLongDateFormat",void 0),jo([(0,Jr.property)({type:Boolean})],o.prototype,"useDateTimeFormat",void 0),jo([Er({store:io.name,selector:r=>{var n,a;return(a=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&a!==void 0?a:[]}})],o.prototype,"metadataDescriptors",void 0),jo([Er({store:io.name})],o.prototype,"uiLocale",void 0),o}var pe=function(e,o,r,n){var a=arguments.length,c=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(c=(a<3?l(c):a>3?l(o,r,c):l(o,r))||c);return a>3&&c&&Object.defineProperty(o,r,c),c},pt=class extends hc(lo){constructor(){super(...arguments),this.multiLine=!1,this.displayLabel=!1,this.hierarchicalValueTruncatingLevel=3,this.editorMode=!1}render(){return Et.html`
|
|
1355
|
+
`:le.nothing}resolveButtonSize(){switch(this.size){case tt.large:return tt.medium;case tt.medium:case tt.small:return tt.small}}getLabel(){return this.label||this.textContent}get textContent(){var o,r;return(r=(o=this.slottedContent)===null||o===void 0?void 0:o.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&r!==void 0?r:""}onSlotchange(){this.requestUpdate()}dispatchRemoveEvent(){this.dispatchEvent(new Cr)}typographyVariant(){switch(this.size){case tt.large:return ht.body2medium;case tt.medium:return ht.caption1medium;case tt.small:return ht.caption2medium}}};Ct.elementDefinitions={"ft-typography":et,"ft-icon":J,"ftds-button":Ot};Ct.styles=wi;Xe([(0,se.property)({type:Boolean})],Ct.prototype,"removable",void 0);Xe([(0,se.property)()],Ct.prototype,"removeButtonLabel",void 0);Xe([(0,se.property)()],Ct.prototype,"label",void 0);Xe([(0,se.property)()],Ct.prototype,"icon",void 0);Xe([(0,se.query)("ft-typography slot")],Ct.prototype,"slottedContent",void 0);(0,wr.customElement)("ft-chip")(G);(0,wr.customElement)("ftds-chip")(Ct);var Jr=C(Y());function Qc(e,o){if(e===o)return!0;if(e&&o&&typeof e=="object"&&typeof o=="object"){if(e.constructor!==o.constructor)return!1;var r,n,a;if(Array.isArray(e)){if(r=e.length,r!=o.length)return!1;for(n=r;n--!==0;)if(!Po(e[n],o[n]))return!1;return!0}if(e instanceof Map&&o instanceof Map){if(e.size!==o.size)return!1;for(n of e.entries())if(!o.has(n[0]))return!1;for(n of e.entries())if(!Po(n[1],o.get(n[0])))return!1;return!0}if(e instanceof Set&&o instanceof Set){if(e.size!==o.size)return!1;for(n of e.entries())if(!o.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===o.source&&e.flags===o.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===o.valueOf();let c=l=>Object.keys(l).filter(d=>l[d]!=null);if(a=c(e),r=a.length,r!==c(o).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(o,a[n]))return!1;for(n=r;n--!==0;){let l=a[n];if(!Po(e[l],o[l]))return!1}return!0}return e!==e&&o!==o||e==null&&o==null}function Po(e,o){try{return Qc(e,o)}catch{return!1}}function Je(e,o){return!Po(e,o)}var Ni=C(Y(),1);var Er=e=>{let o=e??{};return(r,n)=>{var a;let c={hasChanged:Je,attribute:!1,...o};(0,Ni.property)(c)(r,n);let l=r.constructor;l.reduxProperties=new Map(l.reduxProperties),l.reduxProperties.set(n,{selector:(a=o.selector)!==null&&a!==void 0?a:d=>d[n],store:o.store})}};var Io=class{constructor(){this.queue=[]}add(o,r=!1){r&&(this.queue=this.queue.filter(n=>n.type!==o.type)),this.queue.push(o)}consume(o){let r=this.queue.find(n=>n.type===o);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}};var Qe=C(Y(),1);var Ai=C(Y(),1);function Ri(e,o){let r=()=>JSON.parse(JSON.stringify(e));return(0,Ai.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return r();try{return JSON.parse(n)}catch{return r()}},toAttribute:n=>JSON.stringify(n)},hasChanged:Je,...o??{}})}var $o=class{constructor(o=0){this.timeout=o,this.callbacks=[]}run(o,r){return this.callbacks=[o],this.debounce(r)}queue(o,r){return this.callbacks.push(o),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(o){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),o??this.timeout),this.promise}async runCallbacks(){var o,r;let n=[...this.callbacks];this.callbacks=[];let a=(o=this.rejectPromise)!==null&&o!==void 0?o:()=>null,c=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let l of n)try{await l()}catch(d){a(d);return}c(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Pi=C(H(),1);var ko=window,tl=ko.ShadowRoot&&(ko.ShadyCSS===void 0||ko.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,jh=Symbol();var Li=(e,o)=>{tl?e.adoptedStyleSheets=o.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):o.forEach(r=>{let n=document.createElement("style"),a=ko.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=r.cssText,e.appendChild(n)})};var To=class extends Pi.LitElement{createRenderRoot(){let o=this.constructor;o.elementDefinitions&&!o.registry&&(o.registry=new CustomElementRegistry,Object.entries(o.elementDefinitions).forEach(([a,c])=>o.registry.define(a,c)));let r={...o.shadowRootOptions,customElements:o.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return Li(n,o.elementStyles),n}};var Bo=function(e,o,r,n){var a=arguments.length,c=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(c=(a<3?l(c):a>3?l(o,r,c):l(o,r))||c);return a>3&&c&&Object.defineProperty(o,r,c),c},Ti,Ii=Symbol("constructorPrototype"),$i=Symbol("constructorName"),Bi=Symbol("exportpartsDebouncer"),ki=Symbol("dynamicDependenciesLoaded"),Kt=class extends To{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Ti]=new $o(5),this[$i]=this.constructor.name,this[Ii]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[$i]&&Object.setPrototypeOf(this,this[Ii])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let o=this.constructor;o[ki]||(o[ki]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(o){super.updated(o),this.updateComplete.then(()=>{this.contentAvailableCallback(o),this.applyCustomStylesheet(o),this.scheduleExportpartsUpdate()})}contentAvailableCallback(o){}applyCustomStylesheet(o){var r,n,a;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(c=>c.remove()),this.useAdoptedStyleSheets){if(o.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(c){console.error(c,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let c=document.createElement("style");c.classList.add("ft-lit-element--custom-stylesheet"),c.innerHTML=this.customStylesheet,this.shadowRoot.append(c)}}scheduleExportpartsUpdate(){var o,r,n;(!((o=this.exportpartsPrefix)===null||o===void 0)&&o.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[Bi].run(()=>{var a,c;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((c=this.exportpartsPrefixes)===null||c===void 0?void 0:c.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(o){var r,n,a,c,l,d;let p=m=>m!=null&&m.trim().length>0,f=o.filter(p).map(m=>m.trim());if(f.length===0){this.removeAttribute("exportparts");return}let y=new Set;for(let m of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let b=(c=(a=m.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&c!==void 0?c:[],g=(d=(l=m.getAttribute("exportparts"))===null||l===void 0?void 0:l.split(",").map(v=>v.split(":")[1]))!==null&&d!==void 0?d:[];new Array(...b,...g).filter(p).map(v=>v.trim()).forEach(v=>y.add(v))}if(y.size===0){this.removeAttribute("exportparts");return}let h=[...y.values()].flatMap(m=>f.map(b=>`${m}:${b}--${m}`));this.setAttribute("exportparts",[...this.part,...h].join(", "))}};Ti=Bi;Bo([(0,Qe.property)()],Kt.prototype,"exportpartsPrefix",void 0);Bo([Ri([])],Kt.prototype,"exportpartsPrefixes",void 0);Bo([(0,Qe.property)()],Kt.prototype,"customStylesheet",void 0);Bo([(0,Qe.state)()],Kt.prototype,"useAdoptedStyleSheets",void 0);function to(e){var o;return(o=e?.isFtReduxStore)!==null&&o!==void 0?o:!1}var Wi,_i,Di,eo=Symbol("internalReduxEventsUnsubscribers"),Zt=Symbol("internalStoresUnsubscribers"),de=Symbol("internalStores"),oo=class extends Kt{constructor(){super(...arguments),this[Wi]=new Map,this[_i]=new Map,this[Di]=new Map}get reduxConstructor(){return this.constructor}update(o){super.update(o),[...this.reduxConstructor.reduxReactiveProperties].some(r=>o.has(r))&&this.updateFromStores()}getUnnamedStore(){if(this[de].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[de].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[de].get(o)}addStore(o,r){var n;r=(n=r??(to(o)?o.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(r),this[de].set(r,o),this.subscribeToStore(r,o),this.updateFromStores()}removeStore(o){let r=typeof o=="string"?o:o.name;this.unsubscribeFromStore(r),this[de].delete(r)}setupStores(){this.unsubscribeFromStores(),this[de].forEach((o,r)=>this.subscribeToStore(r,o)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((o,r)=>{let n=this.constructor.getPropertyOptions(r);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:r)){let a=this.getStore(o.store);a&&(o.store?this[Zt].has(o.store):this[Zt].size>0)&&(this[r]=o.selector(a.getState(),this))}})}subscribeToStore(o,r){var n;this[Zt].set(o,r.subscribe(()=>this.updateFromStores())),this[eo].set(o,[]),to(r)&&r.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,c)=>{if(typeof this[c]=="function"&&(!a.store||r.name===a.store)){let l=d=>this[c](d);r.addEventListener(a.eventName,l),this[eo].get(o).push(()=>r.removeEventListener(a.eventName,l))}})),this.onStoreAvailable(o)}unsubscribeFromStores(){this[Zt].forEach((o,r)=>this.unsubscribeFromStore(r))}unsubscribeFromStore(o){var r;this[Zt].has(o)&&this[Zt].get(o)(),this[Zt].delete(o),(r=this[eo].get(o))===null||r===void 0||r.forEach(n=>n()),this[eo].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Wi=Zt,_i=de,Di=eo;oo.reduxProperties=new Map;oo.reduxReactiveProperties=new Set;oo.reduxEventListeners=new Map;function xt(e){for(var o=arguments.length,r=Array(o>1?o-1:0),n=1;n<o;n++)r[n-1]=arguments[n];if(0)var a,c;throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(l){return"'"+l+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function _t(e){return!!e&&!!e[M]}function wt(e){var o;return!!e&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===ll}(e)||Array.isArray(e)||!!e[ji]||!!(!((o=e.constructor)===null||o===void 0)&&o[ji])||Tr(e)||Br(e))}function fe(e,o,r){r===void 0&&(r=!1),Ie(e)===0?(r?Object.keys:Pe)(e).forEach(function(n){r&&typeof n=="symbol"||o(n,e[n],e)}):e.forEach(function(n,a){return o(a,n,e)})}function Ie(e){var o=e[M];return o?o.i>3?o.i-4:o.i:Array.isArray(e)?1:Tr(e)?2:Br(e)?3:0}function Le(e,o){return Ie(e)===2?e.has(o):Object.prototype.hasOwnProperty.call(e,o)}function el(e,o){return Ie(e)===2?e.get(o):e[o]}function Vi(e,o,r){var n=Ie(e);n===2?e.set(o,r):n===3?e.add(r):e[o]=r}function Ki(e,o){return e===o?e!==0||1/e==1/o:e!=e&&o!=o}function Tr(e){return il&&e instanceof Map}function Br(e){return cl&&e instanceof Set}function Yt(e){return e.o||e.t}function Wr(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var o=qi(e);delete o[M];for(var r=Pe(o),n=0;n<r.length;n++){var a=r[n],c=o[a];c.writable===!1&&(c.writable=!0,c.configurable=!0),(c.get||c.set)&&(o[a]={configurable:!0,writable:!0,enumerable:c.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),o)}function _r(e,o){return o===void 0&&(o=!1),Dr(e)||_t(e)||!wt(e)||(Ie(e)>1&&(e.set=e.add=e.clear=e.delete=ol),Object.freeze(e),o&&fe(e,function(r,n){return _r(n,!0)},!0)),e}function ol(){xt(2)}function Dr(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Lt(e){var o=kr[e];return o||xt(18,e),o}function rl(e,o){kr[e]||(kr[e]=o)}function Pr(){return no}function Nr(e,o){o&&(Lt("Patches"),e.u=[],e.s=[],e.v=o)}function Wo(e){Ir(e),e.p.forEach(nl),e.p=null}function Ir(e){e===no&&(no=e.l)}function zi(e){return no={p:[],l:no,h:e,m:!0,_:0}}function nl(e){var o=e[M];o.i===0||o.i===1?o.j():o.g=!0}function Ar(e,o){o._=o.p.length;var r=o.p[0],n=e!==void 0&&e!==r;return o.h.O||Lt("ES5").S(o,e,n),n?(r[M].P&&(Wo(o),xt(4)),wt(e)&&(e=_o(o,e),o.l||Do(o,e)),o.u&&Lt("Patches").M(r[M].t,e,o.u,o.s)):e=_o(o,r,[]),Wo(o),o.u&&o.v(o.u,o.s),e!==Yi?e:void 0}function _o(e,o,r){if(Dr(o))return o;var n=o[M];if(!n)return fe(o,function(d,p){return Mi(e,n,o,d,p,r)},!0),o;if(n.A!==e)return o;if(!n.P)return Do(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Wr(n.k):n.o,c=a,l=!1;n.i===3&&(c=new Set(a),a.clear(),l=!0),fe(c,function(d,p){return Mi(e,n,a,d,p,r,l)}),Do(e,a,!1),r&&e.u&&Lt("Patches").N(n,r,e.u,e.s)}return n.o}function Mi(e,o,r,n,a,c,l){if(_t(a)){var d=_o(e,a,c&&o&&o.i!==3&&!Le(o.R,n)?c.concat(n):void 0);if(Vi(r,n,d),!_t(d))return;e.m=!1}else l&&r.add(a);if(wt(a)&&!Dr(a)){if(!e.h.D&&e._<1)return;_o(e,a),o&&o.A.l||Do(e,a)}}function Do(e,o,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&_r(o,r)}function Rr(e,o){var r=e[M];return(r?Yt(r):e)[o]}function Hi(e,o){if(o in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,o);if(n)return n;r=Object.getPrototypeOf(r)}}function qt(e){e.P||(e.P=!0,e.l&&qt(e.l))}function Lr(e){e.o||(e.o=Wr(e.t))}function $r(e,o,r){var n=Tr(o)?Lt("MapSet").F(o,r):Br(o)?Lt("MapSet").T(o,r):e.O?function(a,c){var l=Array.isArray(a),d={i:l?1:0,A:c?c.A:Pr(),P:!1,I:!1,R:{},l:c,t:a,k:null,o:null,j:null,C:!1},p=d,f=ao;l&&(p=[d],f=ro);var y=Proxy.revocable(p,f),h=y.revoke,m=y.proxy;return d.k=m,d.j=h,m}(o,r):Lt("ES5").J(o,r);return(r?r.A:Pr()).p.push(n),n}function al(e){return _t(e)||xt(22,e),function o(r){if(!wt(r))return r;var n,a=r[M],c=Ie(r);if(a){if(!a.P&&(a.i<4||!Lt("ES5").K(a)))return a.t;a.I=!0,n=Ui(r,c),a.I=!1}else n=Ui(r,c);return fe(n,function(l,d){a&&el(a.t,l)===d||Vi(n,l,o(d))}),c===3?new Set(n):n}(e)}function Ui(e,o){switch(o){case 2:return new Map(e);case 3:return Array.from(e)}return Wr(e)}function Zi(){function e(l,d){var p=c[l];return p?p.enumerable=d:c[l]=p={configurable:!0,enumerable:d,get:function(){var f=this[M];return ao.get(f,l)},set:function(f){var y=this[M];ao.set(y,l,f)}},p}function o(l){for(var d=l.length-1;d>=0;d--){var p=l[d][M];if(!p.P)switch(p.i){case 5:n(p)&&qt(p);break;case 4:r(p)&&qt(p)}}}function r(l){for(var d=l.t,p=l.k,f=Pe(p),y=f.length-1;y>=0;y--){var h=f[y];if(h!==M){var m=d[h];if(m===void 0&&!Le(d,h))return!0;var b=p[h],g=b&&b[M];if(g?g.t!==m:!Ki(b,m))return!0}}var v=!!d[M];return f.length!==Pe(d).length+(v?0:1)}function n(l){var d=l.k;if(d.length!==l.t.length)return!0;var p=Object.getOwnPropertyDescriptor(d,d.length-1);if(p&&!p.get)return!0;for(var f=0;f<d.length;f++)if(!d.hasOwnProperty(f))return!0;return!1}function a(l){l.g&&xt(3,JSON.stringify(Yt(l)))}var c={};rl("ES5",{J:function(l,d){var p=Array.isArray(l),f=function(h,m){if(h){for(var b=Array(m.length),g=0;g<m.length;g++)Object.defineProperty(b,""+g,e(g,!0));return b}var v=qi(m);delete v[M];for(var R=Pe(v),E=0;E<R.length;E++){var N=R[E];v[N]=e(N,h||!!v[N].enumerable)}return Object.create(Object.getPrototypeOf(m),v)}(p,l),y={i:p?5:4,A:d?d.A:Pr(),P:!1,I:!1,R:{},l:d,t:l,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,M,{value:y,writable:!0}),f},S:function(l,d,p){p?_t(d)&&d[M].A===l&&o(l.p):(l.u&&function f(y){if(y&&typeof y=="object"){var h=y[M];if(h){var m=h.t,b=h.k,g=h.R,v=h.i;if(v===4)fe(b,function(k){k!==M&&(m[k]!==void 0||Le(m,k)?g[k]||f(b[k]):(g[k]=!0,qt(h)))}),fe(m,function(k){b[k]!==void 0||Le(b,k)||(g[k]=!1,qt(h))});else if(v===5){if(n(h)&&(qt(h),g.length=!0),b.length<m.length)for(var R=b.length;R<m.length;R++)g[R]=!1;else for(var E=m.length;E<b.length;E++)g[E]=!0;for(var N=Math.min(b.length,m.length),L=0;L<N;L++)b.hasOwnProperty(L)||(g[L]=!0),g[L]===void 0&&f(b[L])}}}}(l.p[0]),o(l.p))},K:function(l){return l.i===4?r(l):n(l)}})}var Gi,no,zr=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",il=typeof Map<"u",cl=typeof Set<"u",Fi=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Yi=zr?Symbol.for("immer-nothing"):((Gi={})["immer-nothing"]=!0,Gi),ji=zr?Symbol.for("immer-draftable"):"__$immer_draftable",M=zr?Symbol.for("immer-state"):"__$immer_state";var ll=""+Object.prototype.constructor,Pe=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,qi=Object.getOwnPropertyDescriptors||function(e){var o={};return Pe(e).forEach(function(r){o[r]=Object.getOwnPropertyDescriptor(e,r)}),o},kr={},ao={get:function(e,o){if(o===M)return e;var r=Yt(e);if(!Le(r,o))return function(a,c,l){var d,p=Hi(c,l);return p?"value"in p?p.value:(d=p.get)===null||d===void 0?void 0:d.call(a.k):void 0}(e,r,o);var n=r[o];return e.I||!wt(n)?n:n===Rr(e.t,o)?(Lr(e),e.o[o]=$r(e.A.h,n,e)):n},has:function(e,o){return o in Yt(e)},ownKeys:function(e){return Reflect.ownKeys(Yt(e))},set:function(e,o,r){var n=Hi(Yt(e),o);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var a=Rr(Yt(e),o),c=a?.[M];if(c&&c.t===r)return e.o[o]=r,e.R[o]=!1,!0;if(Ki(r,a)&&(r!==void 0||Le(e.t,o)))return!0;Lr(e),qt(e)}return e.o[o]===r&&(r!==void 0||o in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[o])||(e.o[o]=r,e.R[o]=!0),!0},deleteProperty:function(e,o){return Rr(e.t,o)!==void 0||o in e.t?(e.R[o]=!1,Lr(e),qt(e)):delete e.R[o],e.o&&delete e.o[o],!0},getOwnPropertyDescriptor:function(e,o){var r=Yt(e),n=Reflect.getOwnPropertyDescriptor(r,o);return n&&{writable:!0,configurable:e.i!==1||o!=="length",enumerable:n.enumerable,value:r[o]}},defineProperty:function(){xt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){xt(12)}},ro={};fe(ao,function(e,o){ro[e]=function(){return arguments[0]=arguments[0][0],o.apply(this,arguments)}}),ro.deleteProperty=function(e,o){return ro.set.call(this,e,o,void 0)},ro.set=function(e,o,r){return ao.set.call(this,e[0],o,r,e[0])};var sl=function(){function e(r){var n=this;this.O=Fi,this.D=!0,this.produce=function(a,c,l){if(typeof a=="function"&&typeof c!="function"){var d=c;c=a;var p=n;return function(v){var R=this;v===void 0&&(v=d);for(var E=arguments.length,N=Array(E>1?E-1:0),L=1;L<E;L++)N[L-1]=arguments[L];return p.produce(v,function(k){var B;return(B=c).call.apply(B,[R,k].concat(N))})}}var f;if(typeof c!="function"&&xt(6),l!==void 0&&typeof l!="function"&&xt(7),wt(a)){var y=zi(n),h=$r(n,a,void 0),m=!0;try{f=c(h),m=!1}finally{m?Wo(y):Ir(y)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(v){return Nr(y,l),Ar(v,y)},function(v){throw Wo(y),v}):(Nr(y,l),Ar(f,y))}if(!a||typeof a!="object"){if((f=c(a))===void 0&&(f=a),f===Yi&&(f=void 0),n.D&&_r(f,!0),l){var b=[],g=[];Lt("Patches").M(a,f,b,g),l(b,g)}return f}xt(21,a)},this.produceWithPatches=function(a,c){if(typeof a=="function")return function(f){for(var y=arguments.length,h=Array(y>1?y-1:0),m=1;m<y;m++)h[m-1]=arguments[m];return n.produceWithPatches(f,function(b){return a.apply(void 0,[b].concat(h))})};var l,d,p=n.produce(a,c,function(f,y){l=f,d=y});return typeof Promise<"u"&&p instanceof Promise?p.then(function(f){return[f,l,d]}):[p,l,d]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var o=e.prototype;return o.createDraft=function(r){wt(r)||xt(8),_t(r)&&(r=al(r));var n=zi(this),a=$r(this,r,void 0);return a[M].C=!0,Ir(n),a},o.finishDraft=function(r,n){var a=r&&r[M],c=a.A;return Nr(c,n),Ar(void 0,c)},o.setAutoFreeze=function(r){this.D=r},o.setUseProxies=function(r){r&&!Fi&&xt(20),this.O=r},o.applyPatches=function(r,n){var a;for(a=n.length-1;a>=0;a--){var c=n[a];if(c.path.length===0&&c.op==="replace"){r=c.value;break}}a>-1&&(n=n.slice(a+1));var l=Lt("Patches").$;return _t(r)?l(r,n):this.produce(r,function(d){return l(d,n)})},e}(),ft=new sl,dl=ft.produce,rm=ft.produceWithPatches.bind(ft),nm=ft.setAutoFreeze.bind(ft),am=ft.setUseProxies.bind(ft),im=ft.applyPatches.bind(ft),cm=ft.createDraft.bind(ft),lm=ft.finishDraft.bind(ft),zo=dl;function Xt(e){"@babel/helpers - typeof";return Xt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Xt(e)}function Mr(e,o){if(Xt(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,o||"default");if(Xt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(e)}function Hr(e){var o=Mr(e,"string");return Xt(o)==="symbol"?o:String(o)}function Ur(e,o,r){return o=Hr(o),o in e?Object.defineProperty(e,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[o]=r,e}function Xi(e,o){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);o&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Mo(e){for(var o=1;o<arguments.length;o++){var r=arguments[o]!=null?arguments[o]:{};o%2?Xi(Object(r),!0).forEach(function(n){Ur(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xi(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Q(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Ji=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Gr=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ho={INIT:"@@redux/INIT"+Gr(),REPLACE:"@@redux/REPLACE"+Gr(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Gr()}};function fl(e){if(typeof e!="object"||e===null)return!1;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return Object.getPrototypeOf(e)===o}function Fr(e,o,r){var n;if(typeof o=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Q(0));if(typeof o=="function"&&typeof r>"u"&&(r=o,o=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Q(1));return r(Fr)(e,o)}if(typeof e!="function")throw new Error(Q(2));var a=e,c=o,l=[],d=l,p=!1;function f(){d===l&&(d=l.slice())}function y(){if(p)throw new Error(Q(3));return c}function h(v){if(typeof v!="function")throw new Error(Q(4));if(p)throw new Error(Q(5));var R=!0;return f(),d.push(v),function(){if(R){if(p)throw new Error(Q(6));R=!1,f();var N=d.indexOf(v);d.splice(N,1),l=null}}}function m(v){if(!fl(v))throw new Error(Q(7));if(typeof v.type>"u")throw new Error(Q(8));if(p)throw new Error(Q(9));try{p=!0,c=a(c,v)}finally{p=!1}for(var R=l=d,E=0;E<R.length;E++){var N=R[E];N()}return v}function b(v){if(typeof v!="function")throw new Error(Q(10));a=v,m({type:Ho.REPLACE})}function g(){var v,R=h;return v={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(Q(11));function L(){N.next&&N.next(y())}L();var k=R(L);return{unsubscribe:k}}},v[Ji]=function(){return this},v}return m({type:Ho.INIT}),n={dispatch:m,subscribe:h,getState:y,replaceReducer:b},n[Ji]=g,n}function pl(e){Object.keys(e).forEach(function(o){var r=e[o],n=r(void 0,{type:Ho.INIT});if(typeof n>"u")throw new Error(Q(12));if(typeof r(void 0,{type:Ho.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Q(13))})}function Qi(e){for(var o=Object.keys(e),r={},n=0;n<o.length;n++){var a=o[n];typeof e[a]=="function"&&(r[a]=e[a])}var c=Object.keys(r),l,d;try{pl(r)}catch(p){d=p}return function(f,y){if(f===void 0&&(f={}),d)throw d;if(0)var h;for(var m=!1,b={},g=0;g<c.length;g++){var v=c[g],R=r[v],E=f[v],N=R(E,y);if(typeof N>"u"){var L=y&&y.type;throw new Error(Q(14))}b[v]=N,m=m||N!==E}return m=m||c.length!==Object.keys(f).length,m?b:f}}function $e(){for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];return o.length===0?function(n){return n}:o.length===1?o[0]:o.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function tc(){for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];return function(n){return function(){var a=n.apply(void 0,arguments),c=function(){throw new Error(Q(15))},l={getState:a.getState,dispatch:function(){return c.apply(void 0,arguments)}},d=o.map(function(p){return p(l)});return c=$e.apply(void 0,d)(a.dispatch),Mo(Mo({},a),{},{dispatch:c})}}}function ec(e){var o=function(n){var a=n.dispatch,c=n.getState;return function(l){return function(d){return typeof d=="function"?d(a,c,e):l(d)}}};return o}var oc=ec();oc.withExtraArgument=ec;var jr=oc;var cc=function(){var e=function(o,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(n[c]=a[c])},e(o,r)};return function(o,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(o,r);function n(){this.constructor=o}o.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),ul=function(e,o){var r={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},n,a,c,l;return l={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function d(f){return function(y){return p([f,y])}}function p(f){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,a&&(c=f[0]&2?a.return:f[0]?a.throw||((c=a.return)&&c.call(a),0):a.next)&&!(c=c.call(a,f[1])).done)return c;switch(a=0,c&&(f=[f[0]&2,c.value]),f[0]){case 0:case 1:c=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++,a=f[1],f=[0];continue;case 7:f=r.ops.pop(),r.trys.pop();continue;default:if(c=r.trys,!(c=c.length>0&&c[c.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!c||f[1]>c[0]&&f[1]<c[3])){r.label=f[1];break}if(f[0]===6&&r.label<c[1]){r.label=c[1],c=f;break}if(c&&r.label<c[2]){r.label=c[2],r.ops.push(f);break}c[2]&&r.ops.pop(),r.trys.pop();continue}f=o.call(e,r)}catch(y){f=[6,y],a=0}finally{n=c=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},ke=function(e,o){for(var r=0,n=o.length,a=e.length;r<n;r++,a++)e[a]=o[r];return e},yl=Object.defineProperty,hl=Object.defineProperties,ml=Object.getOwnPropertyDescriptors,rc=Object.getOwnPropertySymbols,gl=Object.prototype.hasOwnProperty,bl=Object.prototype.propertyIsEnumerable,nc=function(e,o,r){return o in e?yl(e,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[o]=r},Jt=function(e,o){for(var r in o||(o={}))gl.call(o,r)&&nc(e,r,o[r]);if(rc)for(var n=0,a=rc(o);n<a.length;n++){var r=a[n];bl.call(o,r)&&nc(e,r,o[r])}return e},Vr=function(e,o){return hl(e,ml(o))},xl=function(e,o,r){return new Promise(function(n,a){var c=function(p){try{d(r.next(p))}catch(f){a(f)}},l=function(p){try{d(r.throw(p))}catch(f){a(f)}},d=function(p){return p.done?n(p.value):Promise.resolve(p.value).then(c,l)};d((r=r.apply(e,o)).next())})};var vl=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?$e:$e.apply(null,arguments)},Nm=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Sl(e){if(typeof e!="object"||e===null)return!1;var o=Object.getPrototypeOf(e);if(o===null)return!0;for(var r=o;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return o===r}var Ol=function(e){cc(o,e);function o(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=e.apply(this,r)||this;return Object.setPrototypeOf(a,o.prototype),a}return Object.defineProperty(o,Symbol.species,{get:function(){return o},enumerable:!1,configurable:!0}),o.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},o.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(o.bind.apply(o,ke([void 0],r[0].concat(this)))):new(o.bind.apply(o,ke([void 0],r.concat(this))))},o}(Array),Cl=function(e){cc(o,e);function o(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=e.apply(this,r)||this;return Object.setPrototypeOf(a,o.prototype),a}return Object.defineProperty(o,Symbol.species,{get:function(){return o},enumerable:!1,configurable:!0}),o.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},o.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(o.bind.apply(o,ke([void 0],r[0].concat(this)))):new(o.bind.apply(o,ke([void 0],r.concat(this))))},o}(Array);function Yr(e){return wt(e)?zo(e,function(){}):e}function wl(e){return typeof e=="boolean"}function El(){return function(o){return Nl(o)}}function Nl(e){e===void 0&&(e={});var o=e.thunk,r=o===void 0?!0:o,n=e.immutableCheck,a=n===void 0?!0:n,c=e.serializableCheck,l=c===void 0?!0:c,d=new Ol;if(r&&(wl(r)?d.push(jr):d.push(jr.withExtraArgument(r.extraArgument))),0){if(a)var p;if(l)var f}return d}var Kr=!0;function lc(e){var o=El(),r=e||{},n=r.reducer,a=n===void 0?void 0:n,c=r.middleware,l=c===void 0?o():c,d=r.devTools,p=d===void 0?!0:d,f=r.preloadedState,y=f===void 0?void 0:f,h=r.enhancers,m=h===void 0?void 0:h,b;if(typeof a=="function")b=a;else if(Sl(a))b=Qi(a);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 g=l;if(typeof g=="function"&&(g=g(o),!Kr&&!Array.isArray(g)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Kr&&g.some(function(k){return typeof k!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=tc.apply(void 0,g),R=$e;p&&(R=vl(Jt({trace:!Kr},typeof p=="object"&&p)));var E=new Cl(v),N=E;Array.isArray(m)?N=ke([v],m):typeof m=="function"&&(N=m(E));var L=R.apply(void 0,N);return Fr(b,y,L)}function Qt(e,o){function r(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(o){var c=o.apply(void 0,n);if(!c)throw new Error("prepareAction did not return an object");return Jt(Jt({type:e,payload:c.payload},"meta"in c&&{meta:c.meta}),"error"in c&&{error:c.error})}return{type:e,payload:n[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(n){return n.type===e},r}function sc(e){var o={},r=[],n,a={addCase:function(c,l){var d=typeof c=="string"?c:c.type;if(d in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[d]=l,a},addMatcher:function(c,l){return r.push({matcher:c,reducer:l}),a},addDefaultCase:function(c){return n=c,a}};return e(a),[o,r,n]}function Al(e){return typeof e=="function"}function Rl(e,o,r,n){r===void 0&&(r=[]);var a=typeof o=="function"?sc(o):[o,r,n],c=a[0],l=a[1],d=a[2],p;if(Al(e))p=function(){return Yr(e())};else{var f=Yr(e);p=function(){return f}}function y(h,m){h===void 0&&(h=p());var b=ke([c[m.type]],l.filter(function(g){var v=g.matcher;return v(m)}).map(function(g){var v=g.reducer;return v}));return b.filter(function(g){return!!g}).length===0&&(b=[d]),b.reduce(function(g,v){if(v)if(_t(g)){var R=g,E=v(R,m);return E===void 0?g:E}else{if(wt(g))return zo(g,function(N){return v(N,m)});var E=v(g,m);if(E===void 0){if(g===null)return g;throw Error("A case reducer on a non-draftable value must not return undefined")}return E}return g},h)}return y.getInitialState=p,y}function Ll(e,o){return e+"/"+o}function dc(e){var o=e.name;if(!o)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof e.initialState=="function"?e.initialState:Yr(e.initialState),n=e.reducers||{},a=Object.keys(n),c={},l={},d={};a.forEach(function(y){var h=n[y],m=Ll(o,y),b,g;"reducer"in h?(b=h.reducer,g=h.prepare):b=h,c[y]=b,l[m]=b,d[y]=g?Qt(m,g):Qt(m)});function p(){var y=typeof e.extraReducers=="function"?sc(e.extraReducers):[e.extraReducers],h=y[0],m=h===void 0?{}:h,b=y[1],g=b===void 0?[]:b,v=y[2],R=v===void 0?void 0:v,E=Jt(Jt({},m),l);return Rl(r,function(N){for(var L in E)N.addCase(L,E[L]);for(var k=0,B=g;k<B.length;k++){var ut=B[k];N.addMatcher(ut.matcher,ut.reducer)}R&&N.addDefaultCase(R)})}var f;return{name:o,reducer:function(y,h){return f||(f=p()),f(y,h)},actions:d,caseReducers:c,getInitialState:function(){return f||(f=p()),f.getInitialState()}}}var Pl="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Il=function(e){e===void 0&&(e=21);for(var o="",r=e;r--;)o+=Pl[Math.random()*64|0];return o},$l=["name","message","stack","code"],Zr=function(){function e(o,r){this.payload=o,this.meta=r}return e}(),ac=function(){function e(o,r){this.payload=o,this.meta=r}return e}(),kl=function(e){if(typeof e=="object"&&e!==null){for(var o={},r=0,n=$l;r<n.length;r++){var a=n[r];typeof e[a]=="string"&&(o[a]=e[a])}return o}return{message:String(e)}},Pm=function(){function e(o,r,n){var a=Qt(o+"/fulfilled",function(y,h,m,b){return{payload:y,meta:Vr(Jt({},b||{}),{arg:m,requestId:h,requestStatus:"fulfilled"})}}),c=Qt(o+"/pending",function(y,h,m){return{payload:void 0,meta:Vr(Jt({},m||{}),{arg:h,requestId:y,requestStatus:"pending"})}}),l=Qt(o+"/rejected",function(y,h,m,b,g){return{payload:b,error:(n&&n.serializeError||kl)(y||"Rejected"),meta:Vr(Jt({},g||{}),{arg:m,requestId:h,rejectedWithValue:!!b,requestStatus:"rejected",aborted:y?.name==="AbortError",condition:y?.name==="ConditionError"})}}),d=!1,p=typeof AbortController<"u"?AbortController:function(){function y(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return y.prototype.abort=function(){},y}();function f(y){return function(h,m,b){var g=n?.idGenerator?n.idGenerator(y):Il(),v=new p,R,E=!1;function N(k){R=k,v.abort()}var L=function(){return xl(this,null,function(){var k,B,ut,zt,Vo,Mt,it;return ul(this,function(yt){switch(yt.label){case 0:return yt.trys.push([0,4,,5]),zt=(k=n?.condition)==null?void 0:k.call(n,y,{getState:m,extra:b}),Bl(zt)?[4,zt]:[3,2];case 1:zt=yt.sent(),yt.label=2;case 2:if(zt===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return E=!0,Vo=new Promise(function(ct,te){return v.signal.addEventListener("abort",function(){return te({name:"AbortError",message:R||"Aborted"})})}),h(c(g,y,(B=n?.getPendingMeta)==null?void 0:B.call(n,{requestId:g,arg:y},{getState:m,extra:b}))),[4,Promise.race([Vo,Promise.resolve(r(y,{dispatch:h,getState:m,extra:b,requestId:g,signal:v.signal,abort:N,rejectWithValue:function(ct,te){return new Zr(ct,te)},fulfillWithValue:function(ct,te){return new ac(ct,te)}})).then(function(ct){if(ct instanceof Zr)throw ct;return ct instanceof ac?a(ct.payload,g,y,ct.meta):a(ct,g,y)})])];case 3:return ut=yt.sent(),[3,5];case 4:return Mt=yt.sent(),ut=Mt instanceof Zr?l(null,g,y,Mt.payload,Mt.meta):l(Mt,g,y),[3,5];case 5:return it=n&&!n.dispatchConditionRejection&&l.match(ut)&&ut.meta.condition,it||h(ut),[2,ut]}})})}();return Object.assign(L,{abort:N,requestId:g,arg:y,unwrap:function(){return L.then(Tl)}})}}return Object.assign(f,{pending:c,rejected:l,fulfilled:a,typePrefix:o})}return e.withTypes=function(){return e},e}();function Tl(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Bl(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var fc="listener",pc="completed",uc="cancelled",Im="task-"+uc,$m="task-"+pc,km=fc+"-"+uc,Tm=fc+"-"+pc;var qr="listenerMiddleware";var Bm=Qt(qr+"/add"),Wm=Qt(qr+"/removeAll"),_m=Qt(qr+"/remove");var ic,Dm=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(ic||(ic=Promise.resolve())).then(e).catch(function(o){return setTimeout(function(){throw o},0)})},Wl=function(e){return function(o){setTimeout(o,e)}},zm=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Wl(10);Zi();function _l(e,o){return class extends e{constructor(){super(...arguments),this.eventBus=o??document.createElement("span")}addEventListener(r,n,a){this.eventBus.addEventListener(r,n,a)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,a){this.eventBus.removeEventListener(r,n,a)}}}var Uo=class extends _l(Object){};window.ftReduxStores||(window.ftReduxStores={});var yc=class e extends Uo{static get(o){var r;let n=typeof o=="string"?o:o.name,a=typeof o=="string"?void 0:o,c=window.ftReduxStores[n];if(to(c))return c;if(a==null)return;let l=dc({...a,reducers:(r=a.reducers)!==null&&r!==void 0?r:{}}),d=lc({reducer:(p,f)=>f.type==="CLEAR_FT_REDUX_STORE"?l.getInitialState():typeof f.type=="string"&&f.type.startsWith("DEFAULT_VALUE_SETTER__")?{...p,...f.overwrites}:l.reducer(p,f)});return window.ftReduxStores[a.name]=new e(l,d)}constructor(o,r){super(),this.reduxSlice=o,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Io;let n=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,c,l)=>{let d=c,p=a[d];return p?(...f)=>{let y=p(...f.map(n));return this.reduxStore.dispatch(y),y}:f=>{this.setState({[d]:n(f)})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(o){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(o).join("_"),overwrites:o})}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(o){throw new Error("Not implemented yet.")}subscribe(o){return this.reduxStore.subscribe(o)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Go=class{static format(o,r,n,a){return window.moment?window.moment(o).locale(r).format(this.getDateFormat(n,a)):o}static getDateFormat(o,r){return o?r?"lll":"ll":r?"L LT":"L"}};var Fo=C(T()),Dl="ft-app-info",Xr=class extends CustomEvent{constructor(o){super("authentication-change",{detail:o})}},zl={session:(e,o)=>{(0,Fo.deepEqual)(e.session,o.payload)||(e.session=o.payload,setTimeout(()=>io.dispatchEvent(new Xr(o.payload)),0))}},io=Fo.FtReduxStore.get({name:Dl,reducers:zl,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var jo=function(e,o,r,n){var a=arguments.length,c=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(c=(a<3?l(c):a>3?l(o,r,c):l(o,r))||c);return a>3&&c&&Object.defineProperty(o,r,c),c};function hc(e){class o extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(io)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var a,c;return((c=(a=this.metadataDescriptors.find(d=>d.key===n))===null||a===void 0?void 0:a.date)!==null&&c!==void 0?c:!1)?d=>Go.format(d,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return jo([(0,Jr.property)({type:Boolean})],o.prototype,"useLongDateFormat",void 0),jo([(0,Jr.property)({type:Boolean})],o.prototype,"useDateTimeFormat",void 0),jo([Er({store:io.name,selector:r=>{var n,a;return(a=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&a!==void 0?a:[]}})],o.prototype,"metadataDescriptors",void 0),jo([Er({store:io.name})],o.prototype,"uiLocale",void 0),o}var pe=function(e,o,r,n){var a=arguments.length,c=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(c=(a<3?l(c):a>3?l(o,r,c):l(o,r))||c);return a>3&&c&&Object.defineProperty(o,r,c),c},pt=class extends hc(lo){constructor(){super(...arguments),this.multiLine=!1,this.displayLabel=!1,this.hierarchicalValueTruncatingLevel=3,this.editorMode=!1}render(){return Et.html`
|
|
1356
1356
|
${this.renderChip()}
|
|
1357
1357
|
${this.hideIfEmpty()}
|
|
1358
1358
|
`}renderChip(){var o,r,n,a;let c=Et.html`
|