@fluid-topics/ft-reader-metadata 1.2.7 → 1.2.9

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.
@@ -1,5 +1,5 @@
1
- "use strict";(()=>{var gl=Object.create;var da=Object.defineProperty;var bl=Object.getOwnPropertyDescriptor;var xl=Object.getOwnPropertyNames;var vl=Object.getPrototypeOf,Sl=Object.prototype.hasOwnProperty;var Re=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Ol=(t,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of xl(e))!Sl.call(t,a)&&a!==o&&da(t,a,{get:()=>e[a],enumerable:!(n=bl(e,a))||n.enumerable});return t};var b=(t,e,o)=>(o=t!=null?gl(vl(t)):{},Ol(e||!t||!t.__esModule?da(o,"default",{value:t,enumerable:!0}):o,t));var P=Re((Kd,pa)=>{pa.exports=ftGlobals.wcUtils});var F=Re((Zd,fa)=>{fa.exports=ftGlobals.lit});var Q=Re((qd,ua)=>{ua.exports=ftGlobals.litDecorators});var rr=Re((Ky,Yi)=>{Yi.exports=ftGlobals.litClassMap});var cs=Re((rm,ss)=>{ss.exports=ftGlobals.litUnsafeHTML});var Vs=Re((me,Gs)=>{var mo=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,go=function(){function t(){this.fetch=!1,this.DOMException=mo.DOMException}return t.prototype=mo,new t}();(function(t){var e=function(o){var n=typeof t<"u"&&t||typeof self<"u"&&self||typeof global<"u"&&global||{},a={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};function i(y){return y&&DataView.prototype.isPrototypeOf(y)}if(a.arrayBuffer)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(y){return y&&c.indexOf(Object.prototype.toString.call(y))>-1};function f(y){if(typeof y!="string"&&(y=String(y)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(y)||y==="")throw new TypeError('Invalid character in header field name: "'+y+'"');return y.toLowerCase()}function p(y){return typeof y!="string"&&(y=String(y)),y}function h(y){var x={next:function(){var T=y.shift();return{done:T===void 0,value:T}}};return a.iterable&&(x[Symbol.iterator]=function(){return x}),x}function m(y){this.map={},y instanceof m?y.forEach(function(x,T){this.append(T,x)},this):Array.isArray(y)?y.forEach(function(x){if(x.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+x.length);this.append(x[0],x[1])},this):y&&Object.getOwnPropertyNames(y).forEach(function(x){this.append(x,y[x])},this)}m.prototype.append=function(y,x){y=f(y),x=p(x);var T=this.map[y];this.map[y]=T?T+", "+x:x},m.prototype.delete=function(y){delete this.map[f(y)]},m.prototype.get=function(y){return y=f(y),this.has(y)?this.map[y]:null},m.prototype.has=function(y){return this.map.hasOwnProperty(f(y))},m.prototype.set=function(y,x){this.map[f(y)]=p(x)},m.prototype.forEach=function(y,x){for(var T in this.map)this.map.hasOwnProperty(T)&&y.call(x,this.map[T],T,this)},m.prototype.keys=function(){var y=[];return this.forEach(function(x,T){y.push(T)}),h(y)},m.prototype.values=function(){var y=[];return this.forEach(function(x){y.push(x)}),h(y)},m.prototype.entries=function(){var y=[];return this.forEach(function(x,T){y.push([T,x])}),h(y)},a.iterable&&(m.prototype[Symbol.iterator]=m.prototype.entries);function g(y){if(!y._noBody){if(y.bodyUsed)return Promise.reject(new TypeError("Already read"));y.bodyUsed=!0}}function S(y){return new Promise(function(x,T){y.onload=function(){x(y.result)},y.onerror=function(){T(y.error)}})}function v(y){var x=new FileReader,T=S(x);return x.readAsArrayBuffer(y),T}function O(y){var x=new FileReader,T=S(x),H=/charset=([A-Za-z0-9_-]+)/.exec(y.type),Z=H?H[1]:"utf-8";return x.readAsText(y,Z),T}function L(y){for(var x=new Uint8Array(y),T=new Array(x.length),H=0;H<x.length;H++)T[H]=String.fromCharCode(x[H]);return T.join("")}function R(y){if(y.slice)return y.slice(0);var x=new Uint8Array(y.byteLength);return x.set(new Uint8Array(y)),x.buffer}function N(){return this.bodyUsed=!1,this._initBody=function(y){this.bodyUsed=this.bodyUsed,this._bodyInit=y,y?typeof y=="string"?this._bodyText=y:a.blob&&Blob.prototype.isPrototypeOf(y)?this._bodyBlob=y:a.formData&&FormData.prototype.isPrototypeOf(y)?this._bodyFormData=y:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)?this._bodyText=y.toString():a.arrayBuffer&&a.blob&&i(y)?(this._bodyArrayBuffer=R(y.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(y)||l(y))?this._bodyArrayBuffer=R(y):this._bodyText=y=Object.prototype.toString.call(y):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof y=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):a.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var y=g(this);if(y)return y;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var y=g(this);return y||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(a.blob)return this.blob().then(v);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var y=g(this);if(y)return y;if(this._bodyBlob)return O(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(L(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a.formData&&(this.formData=function(){return this.text().then(vt)}),this.json=function(){return this.text().then(JSON.parse)},this}var k=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function $(y){var x=y.toUpperCase();return k.indexOf(x)>-1?x:y}function U(y,x){if(!(this instanceof U))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');x=x||{};var T=x.body;if(y instanceof U){if(y.bodyUsed)throw new TypeError("Already read");this.url=y.url,this.credentials=y.credentials,x.headers||(this.headers=new m(y.headers)),this.method=y.method,this.mode=y.mode,this.signal=y.signal,!T&&y._bodyInit!=null&&(T=y._bodyInit,y.bodyUsed=!0)}else this.url=String(y);if(this.credentials=x.credentials||this.credentials||"same-origin",(x.headers||!this.headers)&&(this.headers=new m(x.headers)),this.method=$(x.method||this.method||"GET"),this.mode=x.mode||this.mode||null,this.signal=x.signal||this.signal||function(){if("AbortController"in n){var W=new AbortController;return W.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&T)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(T),(this.method==="GET"||this.method==="HEAD")&&(x.cache==="no-store"||x.cache==="no-cache")){var H=/([?&])_=[^&]*/;if(H.test(this.url))this.url=this.url.replace(H,"$1_="+new Date().getTime());else{var Z=/\?/;this.url+=(Z.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}U.prototype.clone=function(){return new U(this,{body:this._bodyInit})};function vt(y){var x=new FormData;return y.trim().split("&").forEach(function(T){if(T){var H=T.split("="),Z=H.shift().replace(/\+/g," "),W=H.join("=").replace(/\+/g," ");x.append(decodeURIComponent(Z),decodeURIComponent(W))}}),x}function Gt(y){var x=new m,T=y.replace(/\r?\n[\t ]+/g," ");return T.split("\r").map(function(H){return H.indexOf(`
2
- `)===0?H.substr(1,H.length):H}).forEach(function(H){var Z=H.split(":"),W=Z.shift().trim();if(W){var Fr=Z.join(":").trim();try{x.append(W,Fr)}catch(qo){console.warn("Response "+qo.message)}}}),x}N.call(U.prototype);function gt(y,x){if(!(this instanceof gt))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(x||(x={}),this.type="default",this.status=x.status===void 0?200:x.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=x.statusText===void 0?"":""+x.statusText,this.headers=new m(x.headers),this.url=x.url||"",this._initBody(y)}N.call(gt.prototype),gt.prototype.clone=function(){return new gt(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},gt.error=function(){var y=new gt(null,{status:200,statusText:""});return y.ok=!1,y.status=0,y.type="error",y};var Vt=[301,302,303,307,308];gt.redirect=function(y,x){if(Vt.indexOf(x)===-1)throw new RangeError("Invalid status code");return new gt(null,{status:x,headers:{location:y}})},o.DOMException=n.DOMException;try{new o.DOMException}catch{o.DOMException=function(x,T){this.message=x,this.name=T;var H=Error(x);this.stack=H.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function pt(y,x){return new Promise(function(T,H){var Z=new U(y,x);if(Z.signal&&Z.signal.aborted)return H(new o.DOMException("Aborted","AbortError"));var W=new XMLHttpRequest;function Fr(){W.abort()}W.onload=function(){var ft={statusText:W.statusText,headers:Gt(W.getAllResponseHeaders()||"")};Z.url.indexOf("file://")===0&&(W.status<200||W.status>599)?ft.status=200:ft.status=W.status,ft.url="responseURL"in W?W.responseURL:ft.headers.get("X-Request-URL");var Ae="response"in W?W.response:W.responseText;setTimeout(function(){T(new gt(Ae,ft))},0)},W.onerror=function(){setTimeout(function(){H(new TypeError("Network request failed"))},0)},W.ontimeout=function(){setTimeout(function(){H(new TypeError("Network request timed out"))},0)},W.onabort=function(){setTimeout(function(){H(new o.DOMException("Aborted","AbortError"))},0)};function qo(ft){try{return ft===""&&n.location.href?n.location.href:ft}catch{return ft}}if(W.open(Z.method,qo(Z.url),!0),Z.credentials==="include"?W.withCredentials=!0:Z.credentials==="omit"&&(W.withCredentials=!1),"responseType"in W&&(a.blob?W.responseType="blob":a.arrayBuffer&&(W.responseType="arraybuffer")),x&&typeof x.headers=="object"&&!(x.headers instanceof m||n.Headers&&x.headers instanceof n.Headers)){var la=[];Object.getOwnPropertyNames(x.headers).forEach(function(ft){la.push(f(ft)),W.setRequestHeader(ft,p(x.headers[ft]))}),Z.headers.forEach(function(ft,Ae){la.indexOf(Ae)===-1&&W.setRequestHeader(Ae,ft)})}else Z.headers.forEach(function(ft,Ae){W.setRequestHeader(Ae,ft)});Z.signal&&(Z.signal.addEventListener("abort",Fr),W.onreadystatechange=function(){W.readyState===4&&Z.signal.removeEventListener("abort",Fr)}),W.send(typeof Z._bodyInit>"u"?null:Z._bodyInit)})}return pt.polyfill=!0,n.fetch||(n.fetch=pt,n.Headers=m,n.Request=U,n.Response=gt),o.Headers=m,o.Request=U,o.Response=gt,o.fetch=pt,o}({})})(go);go.fetch.ponyfill=!0;delete go.fetch.polyfill;var sr=mo.fetch?mo:go;me=sr.fetch;me.default=sr.fetch;me.fetch=sr.fetch;me.Headers=sr.Headers;me.Request=sr.Request;me.Response=sr.Response;Gs.exports=me});var dc=Re((Gb,lc)=>{lc.exports=ftGlobals.litRepeat});var ml=b(P());var Rt=b(F()),ie=b(Q()),Xt=b(P());var ha=b(F()),Yd={},ya=ha.css`
1
+ "use strict";(()=>{var gl=Object.create;var da=Object.defineProperty;var bl=Object.getOwnPropertyDescriptor;var xl=Object.getOwnPropertyNames;var vl=Object.getPrototypeOf,Sl=Object.prototype.hasOwnProperty;var Re=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Ol=(t,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of xl(e))!Sl.call(t,a)&&a!==o&&da(t,a,{get:()=>e[a],enumerable:!(n=bl(e,a))||n.enumerable});return t};var b=(t,e,o)=>(o=t!=null?gl(vl(t)):{},Ol(e||!t||!t.__esModule?da(o,"default",{value:t,enumerable:!0}):o,t));var P=Re((Kd,pa)=>{pa.exports=ftGlobals.wcUtils});var F=Re((Zd,fa)=>{fa.exports=ftGlobals.lit});var Q=Re((qd,ua)=>{ua.exports=ftGlobals.litDecorators});var rr=Re((Ky,Yi)=>{Yi.exports=ftGlobals.litClassMap});var cs=Re((rm,ss)=>{ss.exports=ftGlobals.litUnsafeHTML});var Vs=Re((me,Gs)=>{var mo=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,go=function(){function t(){this.fetch=!1,this.DOMException=mo.DOMException}return t.prototype=mo,new t}();(function(t){var e=function(o){var n=typeof t<"u"&&t||typeof self<"u"&&self||typeof global<"u"&&global||{},a={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};function i(y){return y&&DataView.prototype.isPrototypeOf(y)}if(a.arrayBuffer)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(y){return y&&c.indexOf(Object.prototype.toString.call(y))>-1};function f(y){if(typeof y!="string"&&(y=String(y)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(y)||y==="")throw new TypeError('Invalid character in header field name: "'+y+'"');return y.toLowerCase()}function p(y){return typeof y!="string"&&(y=String(y)),y}function h(y){var x={next:function(){var T=y.shift();return{done:T===void 0,value:T}}};return a.iterable&&(x[Symbol.iterator]=function(){return x}),x}function m(y){this.map={},y instanceof m?y.forEach(function(x,T){this.append(T,x)},this):Array.isArray(y)?y.forEach(function(x){if(x.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+x.length);this.append(x[0],x[1])},this):y&&Object.getOwnPropertyNames(y).forEach(function(x){this.append(x,y[x])},this)}m.prototype.append=function(y,x){y=f(y),x=p(x);var T=this.map[y];this.map[y]=T?T+", "+x:x},m.prototype.delete=function(y){delete this.map[f(y)]},m.prototype.get=function(y){return y=f(y),this.has(y)?this.map[y]:null},m.prototype.has=function(y){return this.map.hasOwnProperty(f(y))},m.prototype.set=function(y,x){this.map[f(y)]=p(x)},m.prototype.forEach=function(y,x){for(var T in this.map)this.map.hasOwnProperty(T)&&y.call(x,this.map[T],T,this)},m.prototype.keys=function(){var y=[];return this.forEach(function(x,T){y.push(T)}),h(y)},m.prototype.values=function(){var y=[];return this.forEach(function(x){y.push(x)}),h(y)},m.prototype.entries=function(){var y=[];return this.forEach(function(x,T){y.push([T,x])}),h(y)},a.iterable&&(m.prototype[Symbol.iterator]=m.prototype.entries);function g(y){if(!y._noBody){if(y.bodyUsed)return Promise.reject(new TypeError("Already read"));y.bodyUsed=!0}}function S(y){return new Promise(function(x,T){y.onload=function(){x(y.result)},y.onerror=function(){T(y.error)}})}function v(y){var x=new FileReader,T=S(x);return x.readAsArrayBuffer(y),T}function O(y){var x=new FileReader,T=S(x),H=/charset=([A-Za-z0-9_-]+)/.exec(y.type),q=H?H[1]:"utf-8";return x.readAsText(y,q),T}function L(y){for(var x=new Uint8Array(y),T=new Array(x.length),H=0;H<x.length;H++)T[H]=String.fromCharCode(x[H]);return T.join("")}function R(y){if(y.slice)return y.slice(0);var x=new Uint8Array(y.byteLength);return x.set(new Uint8Array(y)),x.buffer}function N(){return this.bodyUsed=!1,this._initBody=function(y){this.bodyUsed=this.bodyUsed,this._bodyInit=y,y?typeof y=="string"?this._bodyText=y:a.blob&&Blob.prototype.isPrototypeOf(y)?this._bodyBlob=y:a.formData&&FormData.prototype.isPrototypeOf(y)?this._bodyFormData=y:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)?this._bodyText=y.toString():a.arrayBuffer&&a.blob&&i(y)?(this._bodyArrayBuffer=R(y.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(y)||l(y))?this._bodyArrayBuffer=R(y):this._bodyText=y=Object.prototype.toString.call(y):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof y=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):a.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var y=g(this);if(y)return y;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var y=g(this);return y||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(a.blob)return this.blob().then(v);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var y=g(this);if(y)return y;if(this._bodyBlob)return O(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(L(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a.formData&&(this.formData=function(){return this.text().then(vt)}),this.json=function(){return this.text().then(JSON.parse)},this}var k=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function $(y){var x=y.toUpperCase();return k.indexOf(x)>-1?x:y}function U(y,x){if(!(this instanceof U))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');x=x||{};var T=x.body;if(y instanceof U){if(y.bodyUsed)throw new TypeError("Already read");this.url=y.url,this.credentials=y.credentials,x.headers||(this.headers=new m(y.headers)),this.method=y.method,this.mode=y.mode,this.signal=y.signal,!T&&y._bodyInit!=null&&(T=y._bodyInit,y.bodyUsed=!0)}else this.url=String(y);if(this.credentials=x.credentials||this.credentials||"same-origin",(x.headers||!this.headers)&&(this.headers=new m(x.headers)),this.method=$(x.method||this.method||"GET"),this.mode=x.mode||this.mode||null,this.signal=x.signal||this.signal||function(){if("AbortController"in n){var W=new AbortController;return W.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&T)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(T),(this.method==="GET"||this.method==="HEAD")&&(x.cache==="no-store"||x.cache==="no-cache")){var H=/([?&])_=[^&]*/;if(H.test(this.url))this.url=this.url.replace(H,"$1_="+new Date().getTime());else{var q=/\?/;this.url+=(q.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}U.prototype.clone=function(){return new U(this,{body:this._bodyInit})};function vt(y){var x=new FormData;return y.trim().split("&").forEach(function(T){if(T){var H=T.split("="),q=H.shift().replace(/\+/g," "),W=H.join("=").replace(/\+/g," ");x.append(decodeURIComponent(q),decodeURIComponent(W))}}),x}function Gt(y){var x=new m,T=y.replace(/\r?\n[\t ]+/g," ");return T.split("\r").map(function(H){return H.indexOf(`
2
+ `)===0?H.substr(1,H.length):H}).forEach(function(H){var q=H.split(":"),W=q.shift().trim();if(W){var Fr=q.join(":").trim();try{x.append(W,Fr)}catch(qo){console.warn("Response "+qo.message)}}}),x}N.call(U.prototype);function gt(y,x){if(!(this instanceof gt))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(x||(x={}),this.type="default",this.status=x.status===void 0?200:x.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=x.statusText===void 0?"":""+x.statusText,this.headers=new m(x.headers),this.url=x.url||"",this._initBody(y)}N.call(gt.prototype),gt.prototype.clone=function(){return new gt(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},gt.error=function(){var y=new gt(null,{status:200,statusText:""});return y.ok=!1,y.status=0,y.type="error",y};var Vt=[301,302,303,307,308];gt.redirect=function(y,x){if(Vt.indexOf(x)===-1)throw new RangeError("Invalid status code");return new gt(null,{status:x,headers:{location:y}})},o.DOMException=n.DOMException;try{new o.DOMException}catch{o.DOMException=function(x,T){this.message=x,this.name=T;var H=Error(x);this.stack=H.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function pt(y,x){return new Promise(function(T,H){var q=new U(y,x);if(q.signal&&q.signal.aborted)return H(new o.DOMException("Aborted","AbortError"));var W=new XMLHttpRequest;function Fr(){W.abort()}W.onload=function(){var ft={statusText:W.statusText,headers:Gt(W.getAllResponseHeaders()||"")};q.url.indexOf("file://")===0&&(W.status<200||W.status>599)?ft.status=200:ft.status=W.status,ft.url="responseURL"in W?W.responseURL:ft.headers.get("X-Request-URL");var Ae="response"in W?W.response:W.responseText;setTimeout(function(){T(new gt(Ae,ft))},0)},W.onerror=function(){setTimeout(function(){H(new TypeError("Network request failed"))},0)},W.ontimeout=function(){setTimeout(function(){H(new TypeError("Network request timed out"))},0)},W.onabort=function(){setTimeout(function(){H(new o.DOMException("Aborted","AbortError"))},0)};function qo(ft){try{return ft===""&&n.location.href?n.location.href:ft}catch{return ft}}if(W.open(q.method,qo(q.url),!0),q.credentials==="include"?W.withCredentials=!0:q.credentials==="omit"&&(W.withCredentials=!1),"responseType"in W&&(a.blob?W.responseType="blob":a.arrayBuffer&&(W.responseType="arraybuffer")),x&&typeof x.headers=="object"&&!(x.headers instanceof m||n.Headers&&x.headers instanceof n.Headers)){var la=[];Object.getOwnPropertyNames(x.headers).forEach(function(ft){la.push(f(ft)),W.setRequestHeader(ft,p(x.headers[ft]))}),q.headers.forEach(function(ft,Ae){la.indexOf(Ae)===-1&&W.setRequestHeader(Ae,ft)})}else q.headers.forEach(function(ft,Ae){W.setRequestHeader(Ae,ft)});q.signal&&(q.signal.addEventListener("abort",Fr),W.onreadystatechange=function(){W.readyState===4&&q.signal.removeEventListener("abort",Fr)}),W.send(typeof q._bodyInit>"u"?null:q._bodyInit)})}return pt.polyfill=!0,n.fetch||(n.fetch=pt,n.Headers=m,n.Request=U,n.Response=gt),o.Headers=m,o.Request=U,o.Response=gt,o.fetch=pt,o}({})})(go);go.fetch.ponyfill=!0;delete go.fetch.polyfill;var sr=mo.fetch?mo:go;me=sr.fetch;me.default=sr.fetch;me.fetch=sr.fetch;me.Headers=sr.Headers;me.Request=sr.Request;me.Response=sr.Response;Gs.exports=me});var dc=Re((Gb,lc)=>{lc.exports=ftGlobals.litRepeat});var ml=b(P());var Rt=b(F()),ie=b(Q()),Xt=b(P());var ha=b(F()),Yd={},ya=ha.css`
3
3
  :host {
4
4
  display: inline-block;
5
5
  }
@@ -352,12 +352,12 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
352
352
  .ft-icon--material {
353
353
  font-family: ${rt.materialFontFamily}, "Material Icons", sans-serif;
354
354
  }
355
- `;var Et;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Et||(Et={}));var ro=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(c=t[l])&&(i=(a<3?c(i):a>3?c(e,o,i):c(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},st=class extends ps.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=wr.nothing}render(){let e=this.variant&&Object.values(Et).includes(this.variant)?this.variant:Et.fluid_topics,o=e!==Et.material||!!this.value;return wr.html`
355
+ `;var Et;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Et||(Et={}));var ro=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(c=t[l])&&(i=(a<3?c(i):a>3?c(e,o,i):c(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},ct=class extends ps.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=wr.nothing}render(){let e=this.variant&&Object.values(Et).includes(this.variant)?this.variant:Et.fluid_topics,o=e!==Et.material||!!this.value;return wr.html`
356
356
  <i class="ft-icon ft-icon--${e}" part="icon icon-${e}">
357
357
  ${(0,fs.unsafeHTML)(this.resolvedIcon)}
358
358
  <slot ?hidden=${o}></slot>
359
359
  </i>
360
- `}get textContent(){var e,o;return(o=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&o!==void 0?o:""}update(e){super.update(e),["value","variant"].some(o=>e.has(o))&&this.resolveIcon()}resolveIcon(){var e,o;let n=this.value||this.textContent;switch(this.variant){case Et.file_format:this.resolvedIcon=(e=w[n.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:n;break;case Et.material:this.resolvedIcon=this.value||wr.nothing;break;default:this.resolvedIcon=(o=or[n.replace("-","_").toUpperCase()])!==null&&o!==void 0?o:n;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};st.elementDefinitions={};st.styles=ds;ro([(0,_e.property)()],st.prototype,"variant",void 0);ro([(0,_e.property)()],st.prototype,"value",void 0);ro([(0,_e.state)()],st.prototype,"resolvedIcon",void 0);ro([(0,_e.query)("slot")],st.prototype,"slottedContent",void 0);(0,us.customElement)("ft-icon")(st);var io=b(F()),D=b(P());var Sn=b(P());var Rr=b(Q()),Cs=b(P());var bs=b(F()),B=b(P());var hs=b(F()),Ar=b(P()),j={color:Ar.FtCssVariableFactory.extend("--ft-loader-color","",Ar.designSystemVariables.colorPrimary),size:Ar.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},ys=hs.css`
360
+ `}get textContent(){var e,o;return(o=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&o!==void 0?o:""}update(e){super.update(e),["value","variant"].some(o=>e.has(o))&&this.resolveIcon()}resolveIcon(){var e,o;let n=this.value||this.textContent;switch(this.variant){case Et.file_format:this.resolvedIcon=(e=w[n.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:n;break;case Et.material:this.resolvedIcon=this.value||wr.nothing;break;default:this.resolvedIcon=(o=or[n.replace("-","_").toUpperCase()])!==null&&o!==void 0?o:n;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};ct.elementDefinitions={};ct.styles=ds;ro([(0,_e.property)()],ct.prototype,"variant",void 0);ro([(0,_e.property)()],ct.prototype,"value",void 0);ro([(0,_e.state)()],ct.prototype,"resolvedIcon",void 0);ro([(0,_e.query)("slot")],ct.prototype,"slottedContent",void 0);(0,us.customElement)("ft-icon")(ct);var io=b(F()),D=b(P());var Sn=b(P());var Rr=b(Q()),Cs=b(P());var bs=b(F()),B=b(P());var hs=b(F()),Ar=b(P()),j={color:Ar.FtCssVariableFactory.extend("--ft-loader-color","",Ar.designSystemVariables.colorPrimary),size:Ar.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},ys=hs.css`
361
361
  :host {
362
362
  line-height: 0;
363
363
  }
@@ -570,7 +570,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
570
570
  <div></div>
571
571
  <div></div>
572
572
  </div>
573
- `}};ke.styles=ys;(0,Os.customElement)("ft-loader")(ke);var pe=b(F()),vn=b(rr()),ct=b(Q()),ht=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(c=t[l])&&(i=(a<3?c(i):a>3?c(e,o,i):c(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},q=class extends(0,fe.toFtFormComponent)(fe.FtLitElement,"button"){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.addEventListener("click",e=>{var o;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((o=this.form)===null||o===void 0||o.requestSubmit())})}render(){var e,o,n;let a=pe.html`
573
+ `}};ke.styles=ys;(0,Os.customElement)("ft-loader")(ke);var pe=b(F()),vn=b(rr()),st=b(Q()),ht=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(c=t[l])&&(i=(a<3?c(i):a>3?c(e,o,i):c(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},K=class extends(0,fe.toFtFormComponent)(fe.FtLitElement,"button"){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.addEventListener("click",e=>{var o;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((o=this.form)===null||o===void 0||o.requestSubmit())})}render(){var e,o,n;let a=pe.html`
574
574
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
575
575
  <ft-typography part="label"
576
576
  variant=${this.typographyVariant}
@@ -607,7 +607,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
607
607
  <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
608
608
  `:pe.html`
609
609
  <slot part="icon" name="icon"></slot>
610
- `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,fe.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};q.elementDefinitions={"ft-ripple":z,"ft-tooltip":V,"ft-typography":at,"ft-icon":st,"ft-loader":ke};ht([(0,ct.property)()],q.prototype,"href",void 0);ht([(0,ct.property)()],q.prototype,"target",void 0);ht([(0,ct.property)({type:String,reflect:!0})],q.prototype,"role",void 0);ht([(0,ct.property)()],q.prototype,"type",void 0);ht([(0,ct.property)({type:Boolean})],q.prototype,"disabled",void 0);ht([(0,ct.property)()],q.prototype,"label",void 0);ht([(0,ct.property)()],q.prototype,"icon",void 0);ht([(0,ct.property)()],q.prototype,"iconVariant",void 0);ht([(0,ct.property)({type:Boolean})],q.prototype,"trailingIcon",void 0);ht([(0,ct.property)({type:Boolean})],q.prototype,"loading",void 0);ht([(0,ct.property)({attribute:"aria-label"})],q.prototype,"ariaLabel",void 0);ht([(0,ct.property)()],q.prototype,"tooltipPosition",void 0);ht([(0,ct.property)({type:Boolean})],q.prototype,"hideTooltip",void 0);ht([(0,ct.property)({type:Boolean})],q.prototype,"forceTooltip",void 0);ht([(0,ct.query)(".ft-button")],q.prototype,"button",void 0);ht([(0,ct.query)(".ft-button--label slot")],q.prototype,"slottedContent",void 0);var oo=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(c=t[l])&&(i=(a<3?c(i):a>3?c(e,o,i):c(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Lt=class extends q{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}};Lt.styles=[Cs.safariEllipsisFix,xs];oo([(0,Rr.property)({type:Boolean})],Lt.prototype,"primary",void 0);oo([(0,Rr.property)({type:Boolean})],Lt.prototype,"outlined",void 0);oo([(0,Rr.property)({type:Boolean})],Lt.prototype,"dense",void 0);oo([(0,Rr.property)({type:Boolean})],Lt.prototype,"round",void 0);var Nr=b(Q());var ao=b(P());var Es=b(F()),C=b(P());var ws=[Es.css`
610
+ `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}focusWithoutTooltip(){var e;this.setTooltipManual(!0),(e=this.button)===null||e===void 0||e.focus(),this.setTooltipManual(!1)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,fe.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};K.elementDefinitions={"ft-ripple":z,"ft-tooltip":V,"ft-typography":at,"ft-icon":ct,"ft-loader":ke};ht([(0,st.property)()],K.prototype,"href",void 0);ht([(0,st.property)()],K.prototype,"target",void 0);ht([(0,st.property)({type:String,reflect:!0})],K.prototype,"role",void 0);ht([(0,st.property)()],K.prototype,"type",void 0);ht([(0,st.property)({type:Boolean})],K.prototype,"disabled",void 0);ht([(0,st.property)()],K.prototype,"label",void 0);ht([(0,st.property)()],K.prototype,"icon",void 0);ht([(0,st.property)()],K.prototype,"iconVariant",void 0);ht([(0,st.property)({type:Boolean})],K.prototype,"trailingIcon",void 0);ht([(0,st.property)({type:Boolean})],K.prototype,"loading",void 0);ht([(0,st.property)({attribute:"aria-label"})],K.prototype,"ariaLabel",void 0);ht([(0,st.property)()],K.prototype,"tooltipPosition",void 0);ht([(0,st.property)({type:Boolean})],K.prototype,"hideTooltip",void 0);ht([(0,st.property)({type:Boolean})],K.prototype,"forceTooltip",void 0);ht([(0,st.query)(".ft-button")],K.prototype,"button",void 0);ht([(0,st.query)(".ft-button--label slot")],K.prototype,"slottedContent",void 0);ht([(0,st.query)("[part=tooltip]")],K.prototype,"tooltip",void 0);var oo=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(c=t[l])&&(i=(a<3?c(i):a>3?c(e,o,i):c(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Lt=class extends K{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}};Lt.styles=[Cs.safariEllipsisFix,xs];oo([(0,Rr.property)({type:Boolean})],Lt.prototype,"primary",void 0);oo([(0,Rr.property)({type:Boolean})],Lt.prototype,"outlined",void 0);oo([(0,Rr.property)({type:Boolean})],Lt.prototype,"dense",void 0);oo([(0,Rr.property)({type:Boolean})],Lt.prototype,"round",void 0);var Nr=b(Q());var ao=b(P());var Es=b(F()),C=b(P());var ws=[Es.css`
611
611
  :host {
612
612
  display: inline-block;
613
613
  max-width: 100%;
@@ -1073,7 +1073,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1073
1073
  .ftds--size-small.ft-button--icon-only {
1074
1074
  width: ${u.smallIconOnlyWidth};
1075
1075
  }
1076
- `,C.noTextSelect];var no=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(c=t[l])&&(i=(a<3?c(i):a>3?c(e,o,i):c(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},It=class extends(0,ao.toFtdsBase)(q){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=Kr.brand,this.iconVariant=Et.fluid_topics}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case bt.large:return kt.body2medium;case bt.medium:return kt.caption1medium;case bt.small:return kt.caption2medium}}};It.styles=[ao.safariEllipsisFix,ws];no([(0,Nr.property)({type:Boolean})],It.prototype,"primary",void 0);no([(0,Nr.property)({type:Boolean})],It.prototype,"secondary",void 0);no([(0,Nr.property)({type:Boolean})],It.prototype,"tertiary",void 0);no([(0,Nr.property)({type:Boolean})],It.prototype,"round",void 0);(0,Sn.customElement)("ft-button")(Lt);(0,Sn.customElement)("ftds-button")(It);var As=D.FtCssVariableFactory.extend("--ft-chip-color","",D.designSystemVariables.colorOnSurface),$t={backgroundColor:D.FtCssVariableFactory.extend("--ft-chip-background-color","",D.designSystemVariables.colorSurface),color:As,fontSize:D.FtCssVariableFactory.extend("--ft-chip-font-size","",jt.fontSize),iconSize:D.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:D.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:D.FtCssVariableFactory.extend("--ft-chip-ripple-color","",As),horizontalPadding:D.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:D.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:D.FtCssVariableFactory.extend("--ft-chip-border-color","",D.designSystemVariables.colorOutline),opacityDisabled:D.FtCssVariableFactory.external(D.designSystemVariables.colorOpacityDisabled,"Design system")},Rs=D.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",D.FtCssVariableFactory.extend("--ft-chip-color","",D.designSystemVariables.colorOnPrimary)),On={backgroundColor:D.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",D.FtCssVariableFactory.extend("--ft-chip-background-color","",D.designSystemVariables.colorPrimary)),color:Rs,rippleColor:D.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",Rs)},Ns={horizontalPadding:D.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:D.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},Ls=[D.noTextSelect,io.css`
1076
+ `,C.noTextSelect];var no=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(c=t[l])&&(i=(a<3?c(i):a>3?c(e,o,i):c(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},It=class extends(0,ao.toFtdsBase)(K){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=Kr.brand,this.iconVariant=Et.fluid_topics}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case bt.large:return kt.body2medium;case bt.medium:return kt.caption1medium;case bt.small:return kt.caption2medium}}};It.styles=[ao.safariEllipsisFix,ws];no([(0,Nr.property)({type:Boolean})],It.prototype,"primary",void 0);no([(0,Nr.property)({type:Boolean})],It.prototype,"secondary",void 0);no([(0,Nr.property)({type:Boolean})],It.prototype,"tertiary",void 0);no([(0,Nr.property)({type:Boolean})],It.prototype,"round",void 0);(0,Sn.customElement)("ft-button")(Lt);(0,Sn.customElement)("ftds-button")(It);var As=D.FtCssVariableFactory.extend("--ft-chip-color","",D.designSystemVariables.colorOnSurface),$t={backgroundColor:D.FtCssVariableFactory.extend("--ft-chip-background-color","",D.designSystemVariables.colorSurface),color:As,fontSize:D.FtCssVariableFactory.extend("--ft-chip-font-size","",jt.fontSize),iconSize:D.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:D.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:D.FtCssVariableFactory.extend("--ft-chip-ripple-color","",As),horizontalPadding:D.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:D.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:D.FtCssVariableFactory.extend("--ft-chip-border-color","",D.designSystemVariables.colorOutline),opacityDisabled:D.FtCssVariableFactory.external(D.designSystemVariables.colorOpacityDisabled,"Design system")},Rs=D.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",D.FtCssVariableFactory.extend("--ft-chip-color","",D.designSystemVariables.colorOnPrimary)),On={backgroundColor:D.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",D.FtCssVariableFactory.extend("--ft-chip-background-color","",D.designSystemVariables.colorPrimary)),color:Rs,rippleColor:D.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",Rs)},Ns={horizontalPadding:D.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:D.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},Ls=[D.noTextSelect,io.css`
1077
1077
  :host {
1078
1078
  display: inline-block;
1079
1079
  max-width: 100%;
@@ -1237,7 +1237,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1237
1237
  <div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
1238
1238
  <ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}" part="icon"></ft-icon>
1239
1239
  </div>
1240
- `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new co))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new co))}getLabel(){return this.label||this.textContent}get textContent(){return(0,nr.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};tt.elementDefinitions={"ft-ripple":z,"ft-typography":at,"ft-icon":st,"ft-button":Lt};tt.styles=Ls;Pt([(0,xt.property)({type:Boolean})],tt.prototype,"highlighted",void 0);Pt([(0,xt.property)({type:Boolean})],tt.prototype,"removable",void 0);Pt([(0,xt.property)({type:Boolean})],tt.prototype,"disabled",void 0);Pt([(0,xt.property)({type:Boolean})],tt.prototype,"clickable",void 0);Pt([(0,xt.property)({type:Boolean})],tt.prototype,"iconClickable",void 0);Pt([(0,xt.property)({type:Boolean})],tt.prototype,"dense",void 0);Pt([(0,xt.property)({type:Boolean})],tt.prototype,"multiLine",void 0);Pt([(0,xt.property)()],tt.prototype,"label",void 0);Pt([(0,xt.property)()],tt.prototype,"iconLabel",void 0);Pt([(0,xt.property)()],tt.prototype,"icon",void 0);Pt([(0,xt.property)()],tt.prototype,"iconVariant",void 0);Pt([(0,xt.property)({type:Boolean})],tt.prototype,"trailingIcon",void 0);Pt([(0,xt.query)("ft-typography slot")],tt.prototype,"slottedContent",void 0);var Be=b(F()),$e=b(Q()),_s=b(rr()),lo=b(P());var Ps=b(F());var Cn=b(P());var Ts=[Ps.css`
1240
+ `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new co))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new co))}getLabel(){return this.label||this.textContent}get textContent(){return(0,nr.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};tt.elementDefinitions={"ft-ripple":z,"ft-typography":at,"ft-icon":ct,"ft-button":Lt};tt.styles=Ls;Pt([(0,xt.property)({type:Boolean})],tt.prototype,"highlighted",void 0);Pt([(0,xt.property)({type:Boolean})],tt.prototype,"removable",void 0);Pt([(0,xt.property)({type:Boolean})],tt.prototype,"disabled",void 0);Pt([(0,xt.property)({type:Boolean})],tt.prototype,"clickable",void 0);Pt([(0,xt.property)({type:Boolean})],tt.prototype,"iconClickable",void 0);Pt([(0,xt.property)({type:Boolean})],tt.prototype,"dense",void 0);Pt([(0,xt.property)({type:Boolean})],tt.prototype,"multiLine",void 0);Pt([(0,xt.property)()],tt.prototype,"label",void 0);Pt([(0,xt.property)()],tt.prototype,"iconLabel",void 0);Pt([(0,xt.property)()],tt.prototype,"icon",void 0);Pt([(0,xt.property)()],tt.prototype,"iconVariant",void 0);Pt([(0,xt.property)({type:Boolean})],tt.prototype,"trailingIcon",void 0);Pt([(0,xt.query)("ft-typography slot")],tt.prototype,"slottedContent",void 0);var Be=b(F()),$e=b(Q()),_s=b(rr()),lo=b(P());var Ps=b(F());var Cn=b(P());var Ts=[Ps.css`
1241
1241
  :host {
1242
1242
  display: inline-block;
1243
1243
  max-width: 100%;
@@ -1367,7 +1367,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1367
1367
  size=${this.resolveButtonSize()}
1368
1368
  part="icon-button"
1369
1369
  ></ftds-button>
1370
- `:Be.nothing}resolveButtonSize(){switch(this.size){case bt.large:return bt.medium;case bt.medium:case bt.small:return bt.small}}getLabel(){return this.label||this.textContent}get textContent(){var e,o;return(o=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&o!==void 0?o:""}onSlotchange(){this.requestUpdate()}dispatchRemoveEvent(){this.dispatchEvent(new En)}typographyVariant(){switch(this.size){case bt.large:return kt.body2medium;case bt.medium:return kt.caption1medium;case bt.small:return kt.caption2medium}}};Wt.elementDefinitions={"ft-typography":at,"ft-icon":st,"ftds-button":It};Wt.styles=Ts;Lr([(0,$e.property)({type:Boolean})],Wt.prototype,"removable",void 0);Lr([(0,$e.property)()],Wt.prototype,"removeButtonLabel",void 0);Lr([(0,$e.property)()],Wt.prototype,"label",void 0);Lr([(0,$e.property)()],Wt.prototype,"icon",void 0);Lr([(0,$e.query)("ft-typography slot")],Wt.prototype,"slottedContent",void 0);(0,wn.customElement)("ft-chip")(tt);(0,wn.customElement)("ftds-chip")(Wt);var Tr=b(P());var ks=b(F()),Tt=b(P()),ue={zIndex:Tt.FtCssVariableFactory.create("--ft-floating-menu-z-index","","NUMBER","8"),maxWidth:Tt.FtCssVariableFactory.create("--ft-floating-menu-max-width","","SIZE","300px"),maxHeight:Tt.FtCssVariableFactory.create("--ft-floating-menu-max-height","","SIZE","500px"),textColor:Tt.FtCssVariableFactory.extend("--ft-floating-menu-text-color","",Tt.designSystemVariables.colorOnSurfaceHigh),colorSurface:Tt.FtCssVariableFactory.external(Tt.designSystemVariables.colorSurface,"Design system"),menuElevation:Tt.FtCssVariableFactory.external(Tt.designSystemVariables.elevation02,"Design system"),borderRadiusS:Tt.FtCssVariableFactory.external(Tt.designSystemVariables.borderRadiusS,"Design system")},po=ks.css`
1370
+ `:Be.nothing}resolveButtonSize(){switch(this.size){case bt.large:return bt.medium;case bt.medium:case bt.small:return bt.small}}getLabel(){return this.label||this.textContent}get textContent(){var e,o;return(o=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&o!==void 0?o:""}onSlotchange(){this.requestUpdate()}dispatchRemoveEvent(){this.dispatchEvent(new En)}typographyVariant(){switch(this.size){case bt.large:return kt.body2medium;case bt.medium:return kt.caption1medium;case bt.small:return kt.caption2medium}}};Wt.elementDefinitions={"ft-typography":at,"ft-icon":ct,"ftds-button":It};Wt.styles=Ts;Lr([(0,$e.property)({type:Boolean})],Wt.prototype,"removable",void 0);Lr([(0,$e.property)()],Wt.prototype,"removeButtonLabel",void 0);Lr([(0,$e.property)()],Wt.prototype,"label",void 0);Lr([(0,$e.property)()],Wt.prototype,"icon",void 0);Lr([(0,$e.query)("ft-typography slot")],Wt.prototype,"slottedContent",void 0);(0,wn.customElement)("ft-chip")(tt);(0,wn.customElement)("ftds-chip")(Wt);var Tr=b(P());var ks=b(F()),Tt=b(P()),ue={zIndex:Tt.FtCssVariableFactory.create("--ft-floating-menu-z-index","","NUMBER","8"),maxWidth:Tt.FtCssVariableFactory.create("--ft-floating-menu-max-width","","SIZE","300px"),maxHeight:Tt.FtCssVariableFactory.create("--ft-floating-menu-max-height","","SIZE","500px"),textColor:Tt.FtCssVariableFactory.extend("--ft-floating-menu-text-color","",Tt.designSystemVariables.colorOnSurfaceHigh),colorSurface:Tt.FtCssVariableFactory.external(Tt.designSystemVariables.colorSurface,"Design system"),menuElevation:Tt.FtCssVariableFactory.external(Tt.designSystemVariables.elevation02,"Design system"),borderRadiusS:Tt.FtCssVariableFactory.external(Tt.designSystemVariables.borderRadiusS,"Design system")},po=ks.css`
1371
1371
  .ft-floating-menu {
1372
1372
  color: ${ue.textColor};
1373
1373
  display: contents;
@@ -1441,7 +1441,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1441
1441
  <slot></slot>
1442
1442
  </ft-typography>
1443
1443
  </div>
1444
- `}onClick(e){this.dispatchEvent(new uo(this.value))}onKeyDown(e){(e.key=="Enter"||e.key==" ")&&(e.preventDefault(),this.dispatchEvent(new uo(this.value)))}};wt.elementDefinitions={"ft-icon":st,"ft-ripple":z,"ft-typography":at};wt.styles=$s;ho([(0,Pr.property)()],wt.prototype,"iconVariant",void 0);ho([(0,Pr.property)()],wt.prototype,"icon",void 0);ho([(0,Pr.property)()],wt.prototype,"value",void 0);ho([(0,Pr.property)({type:Boolean})],wt.prototype,"notFocusable",void 0);var ot=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(c=t[l])&&(i=(a<3?c(i):a>3?c(e,o,i):c(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i};var G=class extends ar.FtLitElement{constructor(){super(...arguments),this.menuOpen=!1,this.forceMenuOpen=!1,this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1,this.iconVariant=Et.fluid_topics,this.icon="SHORTCUT_MENU",this.horizontalAlignment="left",this.verticalAlignment="bottom",this.disabled=!1,this.closeMenuMatchers=[],this.hideOptionsOnClickOutside=e=>{this.menuOpen=this.menuOpen&&e.composedPath().includes(this.container)}}render(){let e={"ft-floating-menu":!0,"ft-floating-menu--open":this.forceMenuOpen||this.menuOpen,["ft-floating-menu--"+this.horizontalAlignment.toLowerCase()]:!0,["ft-floating-menu--"+this.verticalAlignment.toLowerCase()]:!0};return Ms.html`
1444
+ `}onClick(e){this.dispatchEvent(new uo(this.value))}onKeyDown(e){(e.key=="Enter"||e.key==" ")&&(e.preventDefault(),this.dispatchEvent(new uo(this.value)))}};wt.elementDefinitions={"ft-icon":ct,"ft-ripple":z,"ft-typography":at};wt.styles=$s;ho([(0,Pr.property)()],wt.prototype,"iconVariant",void 0);ho([(0,Pr.property)()],wt.prototype,"icon",void 0);ho([(0,Pr.property)()],wt.prototype,"value",void 0);ho([(0,Pr.property)({type:Boolean})],wt.prototype,"notFocusable",void 0);var ot=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(c=t[l])&&(i=(a<3?c(i):a>3?c(e,o,i):c(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i};var G=class extends ar.FtLitElement{constructor(){super(...arguments),this.menuOpen=!1,this.forceMenuOpen=!1,this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1,this.iconVariant=Et.fluid_topics,this.icon="SHORTCUT_MENU",this.horizontalAlignment="left",this.verticalAlignment="bottom",this.disabled=!1,this.closeMenuMatchers=[],this.hideOptionsOnClickOutside=e=>{this.menuOpen=this.menuOpen&&e.composedPath().includes(this.container)}}render(){let e={"ft-floating-menu":!0,"ft-floating-menu--open":this.forceMenuOpen||this.menuOpen,["ft-floating-menu--"+this.horizontalAlignment.toLowerCase()]:!0,["ft-floating-menu--"+this.verticalAlignment.toLowerCase()]:!0};return Ms.html`
1445
1445
  <div part="container" class="${(0,Us.classMap)(e)}">
1446
1446
  <slot name="toggle"
1447
1447
  part="toggle"
@@ -1498,7 +1498,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1498
1498
  `}};ye.elementDefinitions={"ft-typography":at};ye.styles=Fs;(0,Tr.customElement)("ft-floating-menu")(he);(0,Tr.customElement)("ftds-floating-menu")(ir);(0,Tr.customElement)("ft-floating-menu-item")(wt);(0,Tr.customElement)("ft-floating-menu-label")(ye);var Ql=b(Vs(),1);var js;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(js||(js={}));var Ks;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Ks||(Ks={}));var Zs;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(Zs||(Zs={}));var qs;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT"})(qs||(qs={}));var Ys;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Ys||(Ys={}));var Xs;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Xs||(Xs={}));var Js;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Js||(Js={}));var Qs;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Qs||(Qs={}));var tc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(tc||(tc={}));var ec;(function(t){t.ASC="ASC",t.DESC="DESC"})(ec||(ec={}));var rc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(rc||(rc={}));var oc;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(oc||(oc={}));var nc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(nc||(nc={}));var bo;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(bo||(bo={}));var ac;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(ac||(ac={}));var ic;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(ic||(ic={}));var cr;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(cr||(cr={}));var sc;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"})(sc||(sc={}));var lt;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"})(lt||(lt={}));var cc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(cc||(cc={}));var Ab={[lt.PERSONAL_BOOK_SHARE_USER]:[lt.PERSONAL_BOOK_USER],[lt.HTML_EXPORT_USER]:[lt.PERSONAL_BOOK_USER],[lt.PDF_EXPORT_USER]:[lt.PERSONAL_BOOK_USER],[lt.KHUB_ADMIN]:[lt.CONTENT_PUBLISHER],[lt.ADMIN]:[lt.KHUB_ADMIN,lt.USERS_ADMIN,lt.PORTAL_ADMIN],[lt.DEVELOPER]:[lt.BETA_USER,lt.DEBUG_USER]};function td(t){var e,o,n,a,i;return((a=(o=(e=t.map)===null||e===void 0?void 0:e.openMode)!==null&&o!==void 0?o:(n=t.topic)===null||n===void 0?void 0:n.openMode)!==null&&a!==void 0?a:(i=t.document)===null||i===void 0?void 0:i.openMode)===bo.EXTERNAL}function An(t){var e,o,n,a,i;if(td(t))return(a=(o=(e=t.map)===null||e===void 0?void 0:e.originUrl)!==null&&o!==void 0?o:(n=t.topic)===null||n===void 0?void 0:n.originUrl)!==null&&a!==void 0?a:(i=t.document)===null||i===void 0?void 0:i.originUrl;switch(t.type){case cr.MAP:return t.map.readerUrl;case cr.DOCUMENT:return t.document.viewerUrl;case cr.TOPIC:return t.topic.readerUrl}return""}var yl=b(dc());var Ho=b(P());var cl=b(P());var yc=b(F()),At=b(Q()),Ft=b(P());var pc=b(F());var fc=pc.css`
1499
1499
  `;var xo=b(P()),ed="ft-app-info",Rn=class extends CustomEvent{constructor(e){super("authentication-change",{detail:e})}},rd={session:(t,e)=>{(0,xo.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>_.dispatchEvent(new Rn(e.payload)),0))}},_=xo.FtReduxStore.get({name:ed,reducers:rd,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 be=b(P());var Nn=b(P());var De=class t{static get(e){let{baseUrl:o,apiIntegrationIdentifier:n}=_.getState(),a=e??n;if(o&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,a,!0)}static await(e){return new Promise(o=>{let n=t.get(e);if(n)o(n);else{let a=_.subscribe(()=>{n=t.get(e),n&&(a(),o(n))})}})}};var ge=class{constructor(e=!0,o){var n;this.overrideApi=o;let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new Nn.CacheRegistry,this.cache=e?a.commonCache:new Nn.CacheRegistry}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:De.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):De.await()}clearCache(){this.cache.clearAll()}};var uc,od=Symbol("clearAfterUnitTest"),vo=class extends ge{constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[uc]=()=>{this.defaultMessages={},this.cache=new be.CacheRegistry,this.listeners={}},this.currentUiLocale=_.getState().uiLocale,_.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=_.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let o=e.name.toLowerCase();this.cache.setFinal(o,e),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,o){var n;if(e=e.toLowerCase(),Object.keys(o).length>0){let a={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...o};(0,be.deepEqual)(this.defaultMessages[e],a)||(this.defaultMessages[e]=a,await this.notify(e))}await this.fetchContext(e)}resolveContext(e){var o,n;return this.fetchContext(e),(n=(o=this.cache.getNow(e))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,o){let n=e.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(e,o,...n){var a;let i=e.toLowerCase(),c=this.resolveContext(i);return new be.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},c).resolve(o,...n)}async fetchContext(e){if(!this.cache.has(e))try{await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),await this.notify(e)}catch(o){console.error(o)}}subscribe(e,o){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(o),()=>{var a;return(a=this.listeners[e])===null||a===void 0?void 0:a.delete(o)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(e=>this.notify(e)))}async notify(e){this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(o=>(0,be.delay)(0).then(()=>o()).catch(()=>null)))}};uc=od;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends vo{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends vo{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Me=window.FluidTopicsI18nService,hc=window.FluidTopicsCustomI18nService;var yt=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(c=t[l])&&(i=(a<3?c(i):a>3?c(e,o,i):c(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},J=class extends Ft.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>De.get(),this.messageContexts=[],this.cache=new Ft.CacheRegistry,this.cleanSessionDebouncer=new Ft.Debouncer}render(){return yc.html`
1500
1500
  <slot></slot>
1501
- `}update(e){var o,n,a,i,c;super.update(e),e.has("baseUrl")&&(_.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&_.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&_.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&_.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&_.actions.noCustom(this.noCustom),e.has("editorMode")&&_.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&_.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&_.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(l=>Me.addContext(l)),e.has("openExternalDocumentInNewTab")&&_.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&_.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&_.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(_.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),_.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),_.actions.searchInAllLanguagesAllowed((c=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&c!==void 0?c:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};J.elementDefinitions={};J.styles=fc;yt([(0,At.property)()],J.prototype,"baseUrl",void 0);yt([(0,At.property)()],J.prototype,"apiIntegrationIdentifier",void 0);yt([(0,At.property)()],J.prototype,"uiLocale",void 0);yt([(0,Ft.jsonProperty)(null)],J.prototype,"availableUiLocales",void 0);yt([(0,Ft.jsonProperty)(null)],J.prototype,"metadataConfiguration",void 0);yt([(0,At.property)({type:Boolean})],J.prototype,"editorMode",void 0);yt([(0,At.property)({type:Boolean})],J.prototype,"noCustom",void 0);yt([(0,At.property)({type:Boolean})],J.prototype,"openExternalDocumentInNewTab",void 0);yt([(0,At.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],J.prototype,"noCustomComponent",void 0);yt([(0,At.property)({type:Boolean})],J.prototype,"withManualResources",void 0);yt([(0,At.property)({type:Boolean})],J.prototype,"navigatorOnline",void 0);yt([(0,At.property)({type:Boolean})],J.prototype,"forcedOffline",void 0);yt([(0,At.property)({type:Object})],J.prototype,"apiProvider",void 0);yt([(0,Ft.jsonProperty)([])],J.prototype,"messageContexts",void 0);yt([(0,Ft.jsonProperty)(void 0)],J.prototype,"session",void 0);yt([(0,At.state)()],J.prototype,"localesConfiguration",void 0);var ea=b(Q());function nd(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var o,n,a;if(Array.isArray(t)){if(o=t.length,o!=e.length)return!1;for(n=o;n--!==0;)if(!So(t[n],e[n]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;for(n of t.entries())if(!So(n[1],e.get(n[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(a=Object.keys(t),o=a.length,o!==Object.keys(e).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[n]))return!1;for(n=o;n--!==0;){var i=a[n];if(!So(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function So(t,e){try{return nd(t,e)}catch{return!1}}function Oo(t,e){return!So(t,e)}var mc=b(Q(),1);var Ln=t=>{let e=t??{};return(o,n)=>{var a;let i={hasChanged:Oo,attribute:!1,...e};(0,mc.property)(i)(o,n);let c=o.constructor;c.reduxProperties=new Map(c.reduxProperties),c.reduxProperties.set(n,{selector:(a=e.selector)!==null&&a!==void 0?a:l=>l[n],store:e.store})}};var Co=class{constructor(){this.queue=[]}add(e,o=!1){o&&(this.queue=this.queue.filter(n=>n.type!==e.type)),this.queue.push(e)}consume(e){let o=this.queue.find(n=>n.type===e);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}};var _r=b(Q(),1);var gc=b(Q(),1);function bc(t,e){let o=()=>JSON.parse(JSON.stringify(t));return(0,gc.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return o();try{return JSON.parse(n)}catch{return o()}},toAttribute:n=>JSON.stringify(n)},hasChanged:Oo,...e??{}})}var Eo=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,o){return this.callbacks=[e],this.debounce(o)}queue(e,o){return this.callbacks.push(e),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,o;let n=[...this.callbacks];this.callbacks=[];let a=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let c of n)try{await c()}catch(l){a(l);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var vc=b(F(),1);var wo=window,ad=wo.ShadowRoot&&(wo.ShadyCSS===void 0||wo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,hx=Symbol();var xc=(t,e)=>{ad?t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):e.forEach(o=>{let n=document.createElement("style"),a=wo.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,t.appendChild(n)})};var Ao=class extends vc.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([a,i])=>e.registry.define(a,i)));let o={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return xc(n,e.elementStyles),n}};var Ro=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(c=t[l])&&(i=(a<3?c(i):a>3?c(e,o,i):c(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Ec,Sc=Symbol("constructorPrototype"),Oc=Symbol("constructorName"),wc=Symbol("exportpartsDebouncer"),Cc=Symbol("dynamicDependenciesLoaded"),xe=class extends Ao{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Ec]=new Eo(5),this[Oc]=this.constructor.name,this[Sc]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Oc]&&Object.setPrototypeOf(this,this[Sc])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let e=this.constructor;e[Cc]||(e[Cc]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}applyCustomStylesheet(e){var o,n,a;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}scheduleExportpartsUpdate(){var e,o,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[wc].run(()=>{var a,i;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(e){var o,n,a,i,c,l;let f=g=>g!=null&&g.trim().length>0,p=e.filter(f).map(g=>g.trim());if(p.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let g of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let S=(i=(a=g.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],v=(l=(c=g.getAttribute("exportparts"))===null||c===void 0?void 0:c.split(",").map(O=>O.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...S,...v).filter(f).map(O=>O.trim()).forEach(O=>h.add(O))}if(h.size===0){this.removeAttribute("exportparts");return}let m=[...h.values()].flatMap(g=>p.map(S=>`${g}:${S}--${g}`));this.setAttribute("exportparts",[...this.part,...m].join(", "))}};Ec=wc;Ro([(0,_r.property)()],xe.prototype,"exportpartsPrefix",void 0);Ro([bc([])],xe.prototype,"exportpartsPrefixes",void 0);Ro([(0,_r.property)()],xe.prototype,"customStylesheet",void 0);Ro([(0,_r.state)()],xe.prototype,"useAdoptedStyleSheets",void 0);function kr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Ac,Rc,Nc,No=Symbol("internalReduxEventsUnsubscribers"),ve=Symbol("internalStoresUnsubscribers"),Ue=Symbol("internalStores"),Br=class extends xe{constructor(){super(...arguments),this[Ac]=new Map,this[Rc]=new Map,this[Nc]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(o=>e.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[Ue].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ue].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[Ue].get(e)}addStore(e,o){var n;o=(n=o??(kr(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this.setupStore(o,e)}removeStore(e){let o=typeof e=="string"?e:e.name;this.unsubscribeFromStore(o),this[Ue].delete(o)}setupStore(e,o){this[Ue].set(e,o),this.subscribeToStore(e,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Ue].forEach((e,o)=>this.subscribeToStore(o,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let a=this.getStore(e.store);a&&(e.store?this[ve].has(e.store):this[ve].size>0)&&(this[o]=e.selector(a.getState(),this))}})}subscribeToStore(e,o){var n;this[ve].set(e,o.subscribe(()=>this.updateFromStores())),kr(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||o.name===a.store)){let c=l=>this[i](l);o.addEventListener(a.eventName,c),this[No].push(()=>o.removeEventListener(a.eventName,c))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[ve].forEach((e,o)=>this.unsubscribeFromStore(o)),this[No].forEach(e=>e()),this[No]=[]}unsubscribeFromStore(e){this[ve].has(e)&&this[ve].get(e)(),this[ve].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Ac=ve,Rc=Ue,Nc=No;Br.reduxProperties=new Map;Br.reduxReactiveProperties=new Set;Br.reduxEventListeners=new Map;function Dt(t){for(var e=arguments.length,o=Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(c){return"'"+c+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ae(t){return!!t&&!!t[K]}function zt(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===ud}(t)||Array.isArray(t)||!!t[Bc]||!!(!((e=t.constructor)===null||e===void 0)&&e[Bc])||Mn(t)||Un(t))}function We(t,e,o){o===void 0&&(o=!1),pr(t)===0?(o?Object.keys:dr)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,a){return e(a,n,t)})}function pr(t){var e=t[K];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Mn(t)?2:Un(t)?3:0}function lr(t,e){return pr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function id(t,e){return pr(t)===2?t.get(e):t[e]}function $c(t,e,o){var n=pr(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function Dc(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Mn(t){return pd&&t instanceof Map}function Un(t){return fd&&t instanceof Set}function Se(t){return t.o||t.t}function Wn(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Wc(t);delete e[K];for(var o=dr(e),n=0;n<o.length;n++){var a=o[n],i=e[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[a]})}return Object.create(Object.getPrototypeOf(t),e)}function Fn(t,e){return e===void 0&&(e=!1),zn(t)||ae(t)||!zt(t)||(pr(t)>1&&(t.set=t.add=t.clear=t.delete=sd),Object.freeze(t),e&&We(t,function(o,n){return Fn(n,!0)},!0)),t}function sd(){Dt(2)}function zn(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Yt(t){var e=Dn[t];return e||Dt(18,t),e}function cd(t,e){Dn[t]||(Dn[t]=e)}function kn(){return Dr}function In(t,e){e&&(Yt("Patches"),t.u=[],t.s=[],t.v=e)}function Lo(t){Bn(t),t.p.forEach(ld),t.p=null}function Bn(t){t===Dr&&(Dr=t.l)}function Lc(t){return Dr={p:[],l:Dr,h:t,m:!0,_:0}}function ld(t){var e=t[K];e.i===0||e.i===1?e.j():e.g=!0}function Pn(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||Yt("ES5").S(e,t,n),n?(o[K].P&&(Lo(e),Dt(4)),zt(t)&&(t=Io(e,t),e.l||Po(e,t)),e.u&&Yt("Patches").M(o[K].t,t,e.u,e.s)):t=Io(e,o,[]),Lo(e),e.u&&e.v(e.u,e.s),t!==Uc?t:void 0}function Io(t,e,o){if(zn(e))return e;var n=e[K];if(!n)return We(e,function(l,f){return Ic(t,n,e,l,f,o)},!0),e;if(n.A!==t)return e;if(!n.P)return Po(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Wn(n.k):n.o,i=a,c=!1;n.i===3&&(i=new Set(a),a.clear(),c=!0),We(i,function(l,f){return Ic(t,n,a,l,f,o,c)}),Po(t,a,!1),o&&t.u&&Yt("Patches").N(n,o,t.u,t.s)}return n.o}function Ic(t,e,o,n,a,i,c){if(ae(a)){var l=Io(t,a,i&&e&&e.i!==3&&!lr(e.R,n)?i.concat(n):void 0);if($c(o,n,l),!ae(l))return;t.m=!1}else c&&o.add(a);if(zt(a)&&!zn(a)){if(!t.h.D&&t._<1)return;Io(t,a),e&&e.A.l||Po(t,a)}}function Po(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&Fn(e,o)}function Tn(t,e){var o=t[K];return(o?Se(o):t)[e]}function Pc(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var n=Object.getOwnPropertyDescriptor(o,e);if(n)return n;o=Object.getPrototypeOf(o)}}function Oe(t){t.P||(t.P=!0,t.l&&Oe(t.l))}function _n(t){t.o||(t.o=Wn(t.t))}function $n(t,e,o){var n=Mn(e)?Yt("MapSet").F(e,o):Un(e)?Yt("MapSet").T(e,o):t.O?function(a,i){var c=Array.isArray(a),l={i:c?1:0,A:i?i.A:kn(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},f=l,p=Mr;c&&(f=[l],p=$r);var h=Proxy.revocable(f,p),m=h.revoke,g=h.proxy;return l.k=g,l.j=m,g}(e,o):Yt("ES5").J(e,o);return(o?o.A:kn()).p.push(n),n}function dd(t){return ae(t)||Dt(22,t),function e(o){if(!zt(o))return o;var n,a=o[K],i=pr(o);if(a){if(!a.P&&(a.i<4||!Yt("ES5").K(a)))return a.t;a.I=!0,n=Tc(o,i),a.I=!1}else n=Tc(o,i);return We(n,function(c,l){a&&id(a.t,c)===l||$c(n,c,e(l))}),i===3?new Set(n):n}(t)}function Tc(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Wn(t)}function Mc(){function t(c,l){var f=i[c];return f?f.enumerable=l:i[c]=f={configurable:!0,enumerable:l,get:function(){var p=this[K];return Mr.get(p,c)},set:function(p){var h=this[K];Mr.set(h,c,p)}},f}function e(c){for(var l=c.length-1;l>=0;l--){var f=c[l][K];if(!f.P)switch(f.i){case 5:n(f)&&Oe(f);break;case 4:o(f)&&Oe(f)}}}function o(c){for(var l=c.t,f=c.k,p=dr(f),h=p.length-1;h>=0;h--){var m=p[h];if(m!==K){var g=l[m];if(g===void 0&&!lr(l,m))return!0;var S=f[m],v=S&&S[K];if(v?v.t!==g:!Dc(S,g))return!0}}var O=!!l[K];return p.length!==dr(l).length+(O?0:1)}function n(c){var l=c.k;if(l.length!==c.t.length)return!0;var f=Object.getOwnPropertyDescriptor(l,l.length-1);if(f&&!f.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function a(c){c.g&&Dt(3,JSON.stringify(Se(c)))}var i={};cd("ES5",{J:function(c,l){var f=Array.isArray(c),p=function(m,g){if(m){for(var S=Array(g.length),v=0;v<g.length;v++)Object.defineProperty(S,""+v,t(v,!0));return S}var O=Wc(g);delete O[K];for(var L=dr(O),R=0;R<L.length;R++){var N=L[R];O[N]=t(N,m||!!O[N].enumerable)}return Object.create(Object.getPrototypeOf(g),O)}(f,c),h={i:f?5:4,A:l?l.A:kn(),P:!1,I:!1,R:{},l,t:c,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,K,{value:h,writable:!0}),p},S:function(c,l,f){f?ae(l)&&l[K].A===c&&e(c.p):(c.u&&function p(h){if(h&&typeof h=="object"){var m=h[K];if(m){var g=m.t,S=m.k,v=m.R,O=m.i;if(O===4)We(S,function($){$!==K&&(g[$]!==void 0||lr(g,$)?v[$]||p(S[$]):(v[$]=!0,Oe(m)))}),We(g,function($){S[$]!==void 0||lr(S,$)||(v[$]=!1,Oe(m))});else if(O===5){if(n(m)&&(Oe(m),v.length=!0),S.length<g.length)for(var L=S.length;L<g.length;L++)v[L]=!1;else for(var R=g.length;R<S.length;R++)v[R]=!0;for(var N=Math.min(S.length,g.length),k=0;k<N;k++)S.hasOwnProperty(k)||(v[k]=!0),v[k]===void 0&&p(S[k])}}}}(c.p[0]),e(c.p))},K:function(c){return c.i===4?o(c):n(c)}})}var _c,Dr,Hn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",pd=typeof Map<"u",fd=typeof Set<"u",kc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Uc=Hn?Symbol.for("immer-nothing"):((_c={})["immer-nothing"]=!0,_c),Bc=Hn?Symbol.for("immer-draftable"):"__$immer_draftable",K=Hn?Symbol.for("immer-state"):"__$immer_state";var ud=""+Object.prototype.constructor,dr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Wc=Object.getOwnPropertyDescriptors||function(t){var e={};return dr(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},Dn={},Mr={get:function(t,e){if(e===K)return t;var o=Se(t);if(!lr(o,e))return function(a,i,c){var l,f=Pc(i,c);return f?"value"in f?f.value:(l=f.get)===null||l===void 0?void 0:l.call(a.k):void 0}(t,o,e);var n=o[e];return t.I||!zt(n)?n:n===Tn(t.t,e)?(_n(t),t.o[e]=$n(t.A.h,n,t)):n},has:function(t,e){return e in Se(t)},ownKeys:function(t){return Reflect.ownKeys(Se(t))},set:function(t,e,o){var n=Pc(Se(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var a=Tn(Se(t),e),i=a?.[K];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(Dc(o,a)&&(o!==void 0||lr(t.t,e)))return!0;_n(t),Oe(t)}return t.o[e]===o&&(o!==void 0||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return Tn(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,_n(t),Oe(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=Se(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){Dt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Dt(12)}},$r={};We(Mr,function(t,e){$r[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),$r.deleteProperty=function(t,e){return $r.set.call(this,t,e,void 0)},$r.set=function(t,e,o){return Mr.set.call(this,t[0],e,o,t[0])};var hd=function(){function t(o){var n=this;this.O=kc,this.D=!0,this.produce=function(a,i,c){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var f=n;return function(O){var L=this;O===void 0&&(O=l);for(var R=arguments.length,N=Array(R>1?R-1:0),k=1;k<R;k++)N[k-1]=arguments[k];return f.produce(O,function($){var U;return(U=i).call.apply(U,[L,$].concat(N))})}}var p;if(typeof i!="function"&&Dt(6),c!==void 0&&typeof c!="function"&&Dt(7),zt(a)){var h=Lc(n),m=$n(n,a,void 0),g=!0;try{p=i(m),g=!1}finally{g?Lo(h):Bn(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(O){return In(h,c),Pn(O,h)},function(O){throw Lo(h),O}):(In(h,c),Pn(p,h))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===Uc&&(p=void 0),n.D&&Fn(p,!0),c){var S=[],v=[];Yt("Patches").M(a,p,S,v),c(S,v)}return p}Dt(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(p){for(var h=arguments.length,m=Array(h>1?h-1:0),g=1;g<h;g++)m[g-1]=arguments[g];return n.produceWithPatches(p,function(S){return a.apply(void 0,[S].concat(m))})};var c,l,f=n.produce(a,i,function(p,h){c=p,l=h});return typeof Promise<"u"&&f instanceof Promise?f.then(function(p){return[p,c,l]}):[f,c,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){zt(o)||Dt(8),ae(o)&&(o=dd(o));var n=Lc(this),a=$n(this,o,void 0);return a[K].C=!0,Bn(n),a},e.finishDraft=function(o,n){var a=o&&o[K],i=a.A;return In(i,n),Pn(void 0,i)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!kc&&Dt(20),this.O=o},e.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var c=Yt("Patches").$;return ae(o)?c(o,n):this.produce(o,function(l){return c(l,n)})},t}(),_t=new hd,yd=_t.produce,Ax=_t.produceWithPatches.bind(_t),Rx=_t.setAutoFreeze.bind(_t),Nx=_t.setUseProxies.bind(_t),Lx=_t.applyPatches.bind(_t),Ix=_t.createDraft.bind(_t),Px=_t.finishDraft.bind(_t),To=yd;function Ce(t){"@babel/helpers - typeof";return Ce=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ce(t)}function Gn(t,e){if(Ce(t)!=="object"||t===null)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(Ce(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Vn(t){var e=Gn(t,"string");return Ce(e)==="symbol"?e:String(e)}function jn(t,e,o){return e=Vn(e),e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Fc(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),o.push.apply(o,n)}return o}function _o(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Fc(Object(o),!0).forEach(function(n){jn(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Fc(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function mt(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. "}var zc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Kn=function(){return Math.random().toString(36).substring(7).split("").join(".")},ko={INIT:"@@redux/INIT"+Kn(),REPLACE:"@@redux/REPLACE"+Kn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Kn()}};function md(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Zn(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(mt(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(mt(1));return o(Zn)(t,e)}if(typeof t!="function")throw new Error(mt(2));var a=t,i=e,c=[],l=c,f=!1;function p(){l===c&&(l=c.slice())}function h(){if(f)throw new Error(mt(3));return i}function m(O){if(typeof O!="function")throw new Error(mt(4));if(f)throw new Error(mt(5));var L=!0;return p(),l.push(O),function(){if(L){if(f)throw new Error(mt(6));L=!1,p();var N=l.indexOf(O);l.splice(N,1),c=null}}}function g(O){if(!md(O))throw new Error(mt(7));if(typeof O.type>"u")throw new Error(mt(8));if(f)throw new Error(mt(9));try{f=!0,i=a(i,O)}finally{f=!1}for(var L=c=l,R=0;R<L.length;R++){var N=L[R];N()}return O}function S(O){if(typeof O!="function")throw new Error(mt(10));a=O,g({type:ko.REPLACE})}function v(){var O,L=m;return O={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(mt(11));function k(){N.next&&N.next(h())}k();var $=L(k);return{unsubscribe:$}}},O[zc]=function(){return this},O}return g({type:ko.INIT}),n={dispatch:g,subscribe:m,getState:h,replaceReducer:S},n[zc]=v,n}function gd(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:ko.INIT});if(typeof n>"u")throw new Error(mt(12));if(typeof o(void 0,{type:ko.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(mt(13))})}function Hc(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var a=e[n];typeof t[a]=="function"&&(o[a]=t[a])}var i=Object.keys(o),c,l;try{gd(o)}catch(f){l=f}return function(p,h){if(p===void 0&&(p={}),l)throw l;if(0)var m;for(var g=!1,S={},v=0;v<i.length;v++){var O=i[v],L=o[O],R=p[O],N=L(R,h);if(typeof N>"u"){var k=h&&h.type;throw new Error(mt(14))}S[O]=N,g=g||N!==R}return g=g||i.length!==Object.keys(p).length,g?S:p}}function fr(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function Gc(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(mt(15))},c={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=e.map(function(f){return f(c)});return i=fr.apply(void 0,l)(a.dispatch),_o(_o({},a),{},{dispatch:i})}}}function Vc(t){var e=function(n){var a=n.dispatch,i=n.getState;return function(c){return function(l){return typeof l=="function"?l(a,i,t):c(l)}}};return e}var jc=Vc();jc.withExtraArgument=Vc;var qn=jc;var Xc=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function n(){this.constructor=e}e.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),bd=function(t,e){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,c;return c={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function l(p){return function(h){return f([p,h])}}function f(p){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=p[0]&2?a.return:p[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,p[1])).done)return i;switch(a=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,a=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){o.label=p[1];break}if(p[0]===6&&o.label<i[1]){o.label=i[1],i=p;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(p);break}i[2]&&o.ops.pop(),o.trys.pop();continue}p=e.call(t,o)}catch(h){p=[6,h],a=0}finally{n=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},ur=function(t,e){for(var o=0,n=e.length,a=t.length;o<n;o++,a++)t[a]=e[o];return t},xd=Object.defineProperty,vd=Object.defineProperties,Sd=Object.getOwnPropertyDescriptors,Kc=Object.getOwnPropertySymbols,Od=Object.prototype.hasOwnProperty,Cd=Object.prototype.propertyIsEnumerable,Zc=function(t,e,o){return e in t?xd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Ee=function(t,e){for(var o in e||(e={}))Od.call(e,o)&&Zc(t,o,e[o]);if(Kc)for(var n=0,a=Kc(e);n<a.length;n++){var o=a[n];Cd.call(e,o)&&Zc(t,o,e[o])}return t},Yn=function(t,e){return vd(t,Sd(e))},Ed=function(t,e,o){return new Promise(function(n,a){var i=function(f){try{l(o.next(f))}catch(p){a(p)}},c=function(f){try{l(o.throw(f))}catch(p){a(p)}},l=function(f){return f.done?n(f.value):Promise.resolve(f.value).then(i,c)};l((o=o.apply(t,e)).next())})};var wd=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?fr:fr.apply(null,arguments)},qx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Ad(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return e===o}var Rd=function(t){Xc(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,ur([void 0],o[0].concat(this)))):new(e.bind.apply(e,ur([void 0],o.concat(this))))},e}(Array),Nd=function(t){Xc(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,ur([void 0],o[0].concat(this)))):new(e.bind.apply(e,ur([void 0],o.concat(this))))},e}(Array);function Qn(t){return zt(t)?To(t,function(){}):t}function Ld(t){return typeof t=="boolean"}function Id(){return function(e){return Pd(e)}}function Pd(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,n=t.immutableCheck,a=n===void 0?!0:n,i=t.serializableCheck,c=i===void 0?!0:i,l=new Rd;if(o&&(Ld(o)?l.push(qn):l.push(qn.withExtraArgument(o.extraArgument))),0){if(a)var f;if(c)var p}return l}var Xn=!0;function Jc(t){var e=Id(),o=t||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,c=i===void 0?e():i,l=o.devTools,f=l===void 0?!0:l,p=o.preloadedState,h=p===void 0?void 0:p,m=o.enhancers,g=m===void 0?void 0:m,S;if(typeof a=="function")S=a;else if(Ad(a))S=Hc(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 v=c;if(typeof v=="function"&&(v=v(e),!Xn&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Xn&&v.some(function($){return typeof $!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=Gc.apply(void 0,v),L=fr;f&&(L=wd(Ee({trace:!Xn},typeof f=="object"&&f)));var R=new Nd(O),N=R;Array.isArray(g)?N=ur([O],g):typeof g=="function"&&(N=g(R));var k=L.apply(void 0,N);return Zn(S,h,k)}function we(t,e){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(e){var i=e.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return Ee(Ee({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:n[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(n){return n.type===t},o}function Qc(t){var e={},o=[],n,a={addCase:function(i,c){var l=typeof i=="string"?i:i.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=c,a},addMatcher:function(i,c){return o.push({matcher:i,reducer:c}),a},addDefaultCase:function(i){return n=i,a}};return t(a),[e,o,n]}function Td(t){return typeof t=="function"}function _d(t,e,o,n){o===void 0&&(o=[]);var a=typeof e=="function"?Qc(e):[e,o,n],i=a[0],c=a[1],l=a[2],f;if(Td(t))f=function(){return Qn(t())};else{var p=Qn(t);f=function(){return p}}function h(m,g){m===void 0&&(m=f());var S=ur([i[g.type]],c.filter(function(v){var O=v.matcher;return O(g)}).map(function(v){var O=v.reducer;return O}));return S.filter(function(v){return!!v}).length===0&&(S=[l]),S.reduce(function(v,O){if(O)if(ae(v)){var L=v,R=O(L,g);return R===void 0?v:R}else{if(zt(v))return To(v,function(N){return O(N,g)});var R=O(v,g);if(R===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return R}return v},m)}return h.getInitialState=f,h}function kd(t,e){return t+"/"+e}function tl(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof t.initialState=="function"?t.initialState:Qn(t.initialState),n=t.reducers||{},a=Object.keys(n),i={},c={},l={};a.forEach(function(h){var m=n[h],g=kd(e,h),S,v;"reducer"in m?(S=m.reducer,v=m.prepare):S=m,i[h]=S,c[g]=S,l[h]=v?we(g,v):we(g)});function f(){var h=typeof t.extraReducers=="function"?Qc(t.extraReducers):[t.extraReducers],m=h[0],g=m===void 0?{}:m,S=h[1],v=S===void 0?[]:S,O=h[2],L=O===void 0?void 0:O,R=Ee(Ee({},g),c);return _d(o,function(N){for(var k in R)N.addCase(k,R[k]);for(var $=0,U=v;$<U.length;$++){var vt=U[$];N.addMatcher(vt.matcher,vt.reducer)}L&&N.addDefaultCase(L)})}var p;return{name:e,reducer:function(h,m){return p||(p=f()),p(h,m)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=f()),p.getInitialState()}}}var Bd="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",$d=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=Bd[Math.random()*64|0];return e},Dd=["name","message","stack","code"],Jn=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),qc=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Md=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=Dd;o<n.length;o++){var a=n[o];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},Qx=function(){function t(e,o,n){var a=we(e+"/fulfilled",function(h,m,g,S){return{payload:h,meta:Yn(Ee({},S||{}),{arg:g,requestId:m,requestStatus:"fulfilled"})}}),i=we(e+"/pending",function(h,m,g){return{payload:void 0,meta:Yn(Ee({},g||{}),{arg:m,requestId:h,requestStatus:"pending"})}}),c=we(e+"/rejected",function(h,m,g,S,v){return{payload:S,error:(n&&n.serializeError||Md)(h||"Rejected"),meta:Yn(Ee({},v||{}),{arg:g,requestId:m,rejectedWithValue:!!S,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,f=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function p(h){return function(m,g,S){var v=n?.idGenerator?n.idGenerator(h):$d(),O=new f,L,R=!1;function N($){L=$,O.abort()}var k=function(){return Ed(this,null,function(){var $,U,vt,Gt,gt,Vt,pt;return bd(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),Gt=($=n?.condition)==null?void 0:$.call(n,h,{getState:g,extra:S}),Wd(Gt)?[4,Gt]:[3,2];case 1:Gt=y.sent(),y.label=2;case 2:if(Gt===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return R=!0,gt=new Promise(function(x,T){return O.signal.addEventListener("abort",function(){return T({name:"AbortError",message:L||"Aborted"})})}),m(i(v,h,(U=n?.getPendingMeta)==null?void 0:U.call(n,{requestId:v,arg:h},{getState:g,extra:S}))),[4,Promise.race([gt,Promise.resolve(o(h,{dispatch:m,getState:g,extra:S,requestId:v,signal:O.signal,abort:N,rejectWithValue:function(x,T){return new Jn(x,T)},fulfillWithValue:function(x,T){return new qc(x,T)}})).then(function(x){if(x instanceof Jn)throw x;return x instanceof qc?a(x.payload,v,h,x.meta):a(x,v,h)})])];case 3:return vt=y.sent(),[3,5];case 4:return Vt=y.sent(),vt=Vt instanceof Jn?c(null,v,h,Vt.payload,Vt.meta):c(Vt,v,h),[3,5];case 5:return pt=n&&!n.dispatchConditionRejection&&c.match(vt)&&vt.meta.condition,pt||m(vt),[2,vt]}})})}();return Object.assign(k,{abort:N,requestId:v,arg:h,unwrap:function(){return k.then(Ud)}})}}return Object.assign(p,{pending:i,rejected:c,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t}();function Ud(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Wd(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var el="listener",rl="completed",ol="cancelled",tv="task-"+ol,ev="task-"+rl,rv=el+"-"+ol,ov=el+"-"+rl;var ta="listenerMiddleware";var nv=we(ta+"/add"),av=we(ta+"/removeAll"),iv=we(ta+"/remove");var Yc,sv=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Yc||(Yc=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Fd=function(t){return function(e){setTimeout(e,t)}},cv=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Fd(10);Mc();function zd(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(o,n,a){this.eventBus.addEventListener(o,n,a)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,a){this.eventBus.removeEventListener(o,n,a)}}}var Bo=class extends zd(Object){};window.ftReduxStores||(window.ftReduxStores={});var nl=class t extends Bo{static get(e){var o;let n=typeof e=="string"?e:e.name,a=typeof e=="string"?void 0:e,i=window.ftReduxStores[n];if(kr(i))return i;if(a==null)return;let c=tl({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=Jc({reducer:(f,p)=>p.type==="CLEAR_FT_REDUX_STORE"?c.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...f,...p.overwrites}:c.reducer(f,p)});return window.ftReduxStores[a.name]=new t(c,l)}constructor(e,o){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new Co,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,a,i)=>{let c=a,l=n[c];return l?(...f)=>{let p=l(...f);return this.reduxStore.dispatch(p),p}:f=>{this.setState({[c]:f})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var $o=class{static format(e,o,n,a){return window.moment?window.moment(e).locale(o).format(this.getDateFormat(n,a)):e}static getDateFormat(e,o){return e?o?"lll":"ll":o?"L LT":"L"}};var Do=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(c=t[l])&&(i=(a<3?c(i):a>3?c(e,o,i):c(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i};function al(t){class e extends t{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(_)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}formatDateValues(n){var a,i;return((i=(a=this.metadataDescriptors.find(l=>l.key===n?.key))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1)?this.formatMetadataDates(n):n}formatMetadataDates(n){return{key:n.key,label:n.label,values:n.values.map(a=>$o.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat)),hierarchicalValues:n.hierarchicalValues}}}return Do([(0,ea.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Do([(0,ea.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Do([Ln({store:_.name,selector:o=>{var n,a;return(a=(n=o.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&a!==void 0?a:[]}})],e.prototype,"metadataDescriptors",void 0),Do([Ln({store:_.name})],e.prototype,"uiLocale",void 0),e}var Fo=b(P());var Mo=class extends ge{async listMySearches(){let e=_.getState().session;return e?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Uo=class extends ge{async listMyBookmarks(){let e=_.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Hd="ft-user-assets",Wo=Fo.FtReduxStore.get({name:Hd,initialState:{savedSearches:void 0,bookmarks:void 0}}),ra=class{constructor(){this.currentSession=_.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Uo,this.savedSearchesService=new Mo,_.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=_.getState();(0,Fo.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Wo.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Wo.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Wo.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let o=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Wo.actions.bookmarks(o)}}},Mv=new ra;var oa=class{addCommand(e,o=!1){_.commands.add(e,o)}consumeCommand(e){return _.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new oa;var il=b(P()),na=class{highlightHtml(e,o,n){(0,il.highlightHtml)(e,o,n)}};window.FluidTopicsHighlightHtmlService=new na;var sl=b(P());var aa=class{isDate(e){var o,n,a,i;return(i=(a=((n=(o=_.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===e))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(e,o){var n,a,i;return sl.DateFormatter.format(e,(n=o?.locale)!==null&&n!==void 0?n:_.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new aa;var Gd=b(P());(0,cl.customElement)("ft-app-context")(J);var dl=b(Q()),Vd=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(c=t[l])&&(i=(a<3?c(i):a>3?c(e,o,i):c(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},ia=Symbol("i18nAttributes"),sa=Symbol("i18nListAttributes"),Fe=Symbol("i18nProperties"),Ur=Symbol("i18nUnsubs");function Go(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?hc:Me}i18n(a,i,...c){var l;if(typeof a=="string")return this.i18nService.resolveMessage(a,i,...c);let f=(l=a.args)!==null&&l!==void 0?l:a.argsProvider?a.argsProvider(this):[];return this.i18nService.resolveMessage(a.context,a.key,...f)}onI18nUpdate(a){var i,c,l;(i=this[ia])===null||i===void 0||i.forEach((f,p)=>{let h=this.getI18nAttributeValue(p);h&&(this[p]=this.getI18nAttributeMessage(h,f,a))}),(c=this[sa])===null||c===void 0||c.forEach((f,p)=>{let h=this.getI18nListAttributeValues(p);this[p]=h?.map(m=>this.getI18nAttributeMessage(m,f,a))}),(l=this[Fe])===null||l===void 0||l.forEach((f,p)=>{f.context.toLowerCase()===a.toLowerCase()&&(this[p]=this.i18n(f))}),setTimeout(()=>this.requestUpdate(),0)}buildI18nAttributeMessage(a,i){return{...a,message:this.i18n({context:a.context,key:a.key,...i})}}getI18nAttributeMessage(a,i,c){var l;let f=!c||((l=a.context)===null||l===void 0?void 0:l.toLowerCase())===c.toLowerCase();return a.context&&a.key&&f?this.buildI18nAttributeMessage(a,i):a}update(a){var i,c,l;super.update(a),(i=this[ia])===null||i===void 0||i.forEach((f,p)=>{let h=this.getI18nAttributeValue(p);h?.context&&h.key&&(a.has(p)||f.argsProvider!=null)&&(this.addI18nContextIfNeeded(h,a,p),this[p]=this.getI18nAttributeMessage(h,f))}),(c=this[sa])===null||c===void 0||c.forEach((f,p)=>{let h=this.getI18nListAttributeValues(p);(a.has(p)||f.argsProvider!=null)&&(this[p]=h?.map(m=>(this.addI18nContextIfNeeded(m,a,p),this.getI18nAttributeMessage(m,f))))}),(l=this[Fe])===null||l===void 0||l.forEach((f,p)=>{f.argsProvider!=null&&(this[p]=this.i18n(f))})}getI18nAttributeValue(a){return this[a]}getI18nListAttributeValues(a){return this[a]}addI18nContextIfNeeded(a,i,c){a.context&&a.key&&i.has(c)&&this.addI18nContext(a.context)}connectedCallback(){var a,i,c,l,f,p;super.connectedCallback(),new Set([...(i=(a=this[Fe])===null||a===void 0?void 0:a.values())!==null&&i!==void 0?i:[],...[...(l=(c=this[ia])===null||c===void 0?void 0:c.keys())!==null&&l!==void 0?l:[]].map(h=>this.getI18nAttributeValue(h)),...[...(p=(f=this[sa])===null||f===void 0?void 0:f.keys())!==null&&p!==void 0?p:[]].flatMap(h=>this.getI18nListAttributeValues(h))].map(h=>h?.context)).forEach(h=>h&&this.addI18nMessages(h))}addI18nMessages(a,i){a=a.toLowerCase(),this[Ur].has(a)||this[Ur].set(a,this.i18nService.subscribe(a,()=>this.onI18nUpdate(a))),this.i18nService.prepareContext(a,i??{}),this.onI18nUpdate(a)}addI18nContext(a,i){this.addI18nMessages(typeof a=="string"?a:a.name,i)}disconnectedCallback(){super.disconnectedCallback(),this[Ur].forEach(a=>a()),this[Ur].clear()}}return e=Ur,Vd([(0,dl.property)({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}var ll=class extends Go(Ho.FtLitElement){},zo=class extends Go(Ho.FtLitElementRedux){};var hl=b(P());var Vo=b(F()),jo=b(Q()),Ko=b(P());var pl=b(F());var fl=pl.css`
1501
+ `}update(e){var o,n,a,i,c;super.update(e),e.has("baseUrl")&&(_.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&_.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&_.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&_.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&_.actions.noCustom(this.noCustom),e.has("editorMode")&&_.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&_.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&_.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(l=>Me.addContext(l)),e.has("openExternalDocumentInNewTab")&&_.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&_.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&_.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(_.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),_.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),_.actions.searchInAllLanguagesAllowed((c=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&c!==void 0?c:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};J.elementDefinitions={};J.styles=fc;yt([(0,At.property)()],J.prototype,"baseUrl",void 0);yt([(0,At.property)()],J.prototype,"apiIntegrationIdentifier",void 0);yt([(0,At.property)()],J.prototype,"uiLocale",void 0);yt([(0,Ft.jsonProperty)(null)],J.prototype,"availableUiLocales",void 0);yt([(0,Ft.jsonProperty)(null)],J.prototype,"metadataConfiguration",void 0);yt([(0,At.property)({type:Boolean})],J.prototype,"editorMode",void 0);yt([(0,At.property)({type:Boolean})],J.prototype,"noCustom",void 0);yt([(0,At.property)({type:Boolean})],J.prototype,"openExternalDocumentInNewTab",void 0);yt([(0,At.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],J.prototype,"noCustomComponent",void 0);yt([(0,At.property)({type:Boolean})],J.prototype,"withManualResources",void 0);yt([(0,At.property)({type:Boolean})],J.prototype,"navigatorOnline",void 0);yt([(0,At.property)({type:Boolean})],J.prototype,"forcedOffline",void 0);yt([(0,At.property)({type:Object})],J.prototype,"apiProvider",void 0);yt([(0,Ft.jsonProperty)([])],J.prototype,"messageContexts",void 0);yt([(0,Ft.jsonProperty)(void 0)],J.prototype,"session",void 0);yt([(0,At.state)()],J.prototype,"localesConfiguration",void 0);var ea=b(Q());function nd(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var o,n,a;if(Array.isArray(t)){if(o=t.length,o!=e.length)return!1;for(n=o;n--!==0;)if(!So(t[n],e[n]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;for(n of t.entries())if(!So(n[1],e.get(n[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(a=Object.keys(t),o=a.length,o!==Object.keys(e).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[n]))return!1;for(n=o;n--!==0;){var i=a[n];if(!So(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function So(t,e){try{return nd(t,e)}catch{return!1}}function Oo(t,e){return!So(t,e)}var mc=b(Q(),1);var Ln=t=>{let e=t??{};return(o,n)=>{var a;let i={hasChanged:Oo,attribute:!1,...e};(0,mc.property)(i)(o,n);let c=o.constructor;c.reduxProperties=new Map(c.reduxProperties),c.reduxProperties.set(n,{selector:(a=e.selector)!==null&&a!==void 0?a:l=>l[n],store:e.store})}};var Co=class{constructor(){this.queue=[]}add(e,o=!1){o&&(this.queue=this.queue.filter(n=>n.type!==e.type)),this.queue.push(e)}consume(e){let o=this.queue.find(n=>n.type===e);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}};var _r=b(Q(),1);var gc=b(Q(),1);function bc(t,e){let o=()=>JSON.parse(JSON.stringify(t));return(0,gc.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return o();try{return JSON.parse(n)}catch{return o()}},toAttribute:n=>JSON.stringify(n)},hasChanged:Oo,...e??{}})}var Eo=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,o){return this.callbacks=[e],this.debounce(o)}queue(e,o){return this.callbacks.push(e),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,o;let n=[...this.callbacks];this.callbacks=[];let a=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let c of n)try{await c()}catch(l){a(l);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var vc=b(F(),1);var wo=window,ad=wo.ShadowRoot&&(wo.ShadyCSS===void 0||wo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,hx=Symbol();var xc=(t,e)=>{ad?t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):e.forEach(o=>{let n=document.createElement("style"),a=wo.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,t.appendChild(n)})};var Ao=class extends vc.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([a,i])=>e.registry.define(a,i)));let o={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return xc(n,e.elementStyles),n}};var Ro=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(c=t[l])&&(i=(a<3?c(i):a>3?c(e,o,i):c(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Ec,Sc=Symbol("constructorPrototype"),Oc=Symbol("constructorName"),wc=Symbol("exportpartsDebouncer"),Cc=Symbol("dynamicDependenciesLoaded"),xe=class extends Ao{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Ec]=new Eo(5),this[Oc]=this.constructor.name,this[Sc]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Oc]&&Object.setPrototypeOf(this,this[Sc])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let e=this.constructor;e[Cc]||(e[Cc]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}applyCustomStylesheet(e){var o,n,a;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}scheduleExportpartsUpdate(){var e,o,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[wc].run(()=>{var a,i;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(e){var o,n,a,i,c,l;let f=g=>g!=null&&g.trim().length>0,p=e.filter(f).map(g=>g.trim());if(p.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let g of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let S=(i=(a=g.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],v=(l=(c=g.getAttribute("exportparts"))===null||c===void 0?void 0:c.split(",").map(O=>O.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...S,...v).filter(f).map(O=>O.trim()).forEach(O=>h.add(O))}if(h.size===0){this.removeAttribute("exportparts");return}let m=[...h.values()].flatMap(g=>p.map(S=>`${g}:${S}--${g}`));this.setAttribute("exportparts",[...this.part,...m].join(", "))}};Ec=wc;Ro([(0,_r.property)()],xe.prototype,"exportpartsPrefix",void 0);Ro([bc([])],xe.prototype,"exportpartsPrefixes",void 0);Ro([(0,_r.property)()],xe.prototype,"customStylesheet",void 0);Ro([(0,_r.state)()],xe.prototype,"useAdoptedStyleSheets",void 0);function kr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Ac,Rc,Nc,No=Symbol("internalReduxEventsUnsubscribers"),ve=Symbol("internalStoresUnsubscribers"),Ue=Symbol("internalStores"),Br=class extends xe{constructor(){super(...arguments),this[Ac]=new Map,this[Rc]=new Map,this[Nc]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(o=>e.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[Ue].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ue].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[Ue].get(e)}addStore(e,o){var n;o=(n=o??(kr(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this.setupStore(o,e)}removeStore(e){let o=typeof e=="string"?e:e.name;this.unsubscribeFromStore(o),this[Ue].delete(o)}setupStore(e,o){this[Ue].set(e,o),this.subscribeToStore(e,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Ue].forEach((e,o)=>this.subscribeToStore(o,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let a=this.getStore(e.store);a&&(e.store?this[ve].has(e.store):this[ve].size>0)&&(this[o]=e.selector(a.getState(),this))}})}subscribeToStore(e,o){var n;this[ve].set(e,o.subscribe(()=>this.updateFromStores())),kr(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||o.name===a.store)){let c=l=>this[i](l);o.addEventListener(a.eventName,c),this[No].push(()=>o.removeEventListener(a.eventName,c))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[ve].forEach((e,o)=>this.unsubscribeFromStore(o)),this[No].forEach(e=>e()),this[No]=[]}unsubscribeFromStore(e){this[ve].has(e)&&this[ve].get(e)(),this[ve].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Ac=ve,Rc=Ue,Nc=No;Br.reduxProperties=new Map;Br.reduxReactiveProperties=new Set;Br.reduxEventListeners=new Map;function Dt(t){for(var e=arguments.length,o=Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(c){return"'"+c+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ae(t){return!!t&&!!t[Z]}function zt(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===ud}(t)||Array.isArray(t)||!!t[Bc]||!!(!((e=t.constructor)===null||e===void 0)&&e[Bc])||Mn(t)||Un(t))}function We(t,e,o){o===void 0&&(o=!1),pr(t)===0?(o?Object.keys:dr)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,a){return e(a,n,t)})}function pr(t){var e=t[Z];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Mn(t)?2:Un(t)?3:0}function lr(t,e){return pr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function id(t,e){return pr(t)===2?t.get(e):t[e]}function $c(t,e,o){var n=pr(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function Dc(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Mn(t){return pd&&t instanceof Map}function Un(t){return fd&&t instanceof Set}function Se(t){return t.o||t.t}function Wn(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Wc(t);delete e[Z];for(var o=dr(e),n=0;n<o.length;n++){var a=o[n],i=e[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[a]})}return Object.create(Object.getPrototypeOf(t),e)}function Fn(t,e){return e===void 0&&(e=!1),zn(t)||ae(t)||!zt(t)||(pr(t)>1&&(t.set=t.add=t.clear=t.delete=sd),Object.freeze(t),e&&We(t,function(o,n){return Fn(n,!0)},!0)),t}function sd(){Dt(2)}function zn(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Yt(t){var e=Dn[t];return e||Dt(18,t),e}function cd(t,e){Dn[t]||(Dn[t]=e)}function kn(){return Dr}function In(t,e){e&&(Yt("Patches"),t.u=[],t.s=[],t.v=e)}function Lo(t){Bn(t),t.p.forEach(ld),t.p=null}function Bn(t){t===Dr&&(Dr=t.l)}function Lc(t){return Dr={p:[],l:Dr,h:t,m:!0,_:0}}function ld(t){var e=t[Z];e.i===0||e.i===1?e.j():e.g=!0}function Pn(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||Yt("ES5").S(e,t,n),n?(o[Z].P&&(Lo(e),Dt(4)),zt(t)&&(t=Io(e,t),e.l||Po(e,t)),e.u&&Yt("Patches").M(o[Z].t,t,e.u,e.s)):t=Io(e,o,[]),Lo(e),e.u&&e.v(e.u,e.s),t!==Uc?t:void 0}function Io(t,e,o){if(zn(e))return e;var n=e[Z];if(!n)return We(e,function(l,f){return Ic(t,n,e,l,f,o)},!0),e;if(n.A!==t)return e;if(!n.P)return Po(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Wn(n.k):n.o,i=a,c=!1;n.i===3&&(i=new Set(a),a.clear(),c=!0),We(i,function(l,f){return Ic(t,n,a,l,f,o,c)}),Po(t,a,!1),o&&t.u&&Yt("Patches").N(n,o,t.u,t.s)}return n.o}function Ic(t,e,o,n,a,i,c){if(ae(a)){var l=Io(t,a,i&&e&&e.i!==3&&!lr(e.R,n)?i.concat(n):void 0);if($c(o,n,l),!ae(l))return;t.m=!1}else c&&o.add(a);if(zt(a)&&!zn(a)){if(!t.h.D&&t._<1)return;Io(t,a),e&&e.A.l||Po(t,a)}}function Po(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&Fn(e,o)}function Tn(t,e){var o=t[Z];return(o?Se(o):t)[e]}function Pc(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var n=Object.getOwnPropertyDescriptor(o,e);if(n)return n;o=Object.getPrototypeOf(o)}}function Oe(t){t.P||(t.P=!0,t.l&&Oe(t.l))}function _n(t){t.o||(t.o=Wn(t.t))}function $n(t,e,o){var n=Mn(e)?Yt("MapSet").F(e,o):Un(e)?Yt("MapSet").T(e,o):t.O?function(a,i){var c=Array.isArray(a),l={i:c?1:0,A:i?i.A:kn(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},f=l,p=Mr;c&&(f=[l],p=$r);var h=Proxy.revocable(f,p),m=h.revoke,g=h.proxy;return l.k=g,l.j=m,g}(e,o):Yt("ES5").J(e,o);return(o?o.A:kn()).p.push(n),n}function dd(t){return ae(t)||Dt(22,t),function e(o){if(!zt(o))return o;var n,a=o[Z],i=pr(o);if(a){if(!a.P&&(a.i<4||!Yt("ES5").K(a)))return a.t;a.I=!0,n=Tc(o,i),a.I=!1}else n=Tc(o,i);return We(n,function(c,l){a&&id(a.t,c)===l||$c(n,c,e(l))}),i===3?new Set(n):n}(t)}function Tc(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Wn(t)}function Mc(){function t(c,l){var f=i[c];return f?f.enumerable=l:i[c]=f={configurable:!0,enumerable:l,get:function(){var p=this[Z];return Mr.get(p,c)},set:function(p){var h=this[Z];Mr.set(h,c,p)}},f}function e(c){for(var l=c.length-1;l>=0;l--){var f=c[l][Z];if(!f.P)switch(f.i){case 5:n(f)&&Oe(f);break;case 4:o(f)&&Oe(f)}}}function o(c){for(var l=c.t,f=c.k,p=dr(f),h=p.length-1;h>=0;h--){var m=p[h];if(m!==Z){var g=l[m];if(g===void 0&&!lr(l,m))return!0;var S=f[m],v=S&&S[Z];if(v?v.t!==g:!Dc(S,g))return!0}}var O=!!l[Z];return p.length!==dr(l).length+(O?0:1)}function n(c){var l=c.k;if(l.length!==c.t.length)return!0;var f=Object.getOwnPropertyDescriptor(l,l.length-1);if(f&&!f.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function a(c){c.g&&Dt(3,JSON.stringify(Se(c)))}var i={};cd("ES5",{J:function(c,l){var f=Array.isArray(c),p=function(m,g){if(m){for(var S=Array(g.length),v=0;v<g.length;v++)Object.defineProperty(S,""+v,t(v,!0));return S}var O=Wc(g);delete O[Z];for(var L=dr(O),R=0;R<L.length;R++){var N=L[R];O[N]=t(N,m||!!O[N].enumerable)}return Object.create(Object.getPrototypeOf(g),O)}(f,c),h={i:f?5:4,A:l?l.A:kn(),P:!1,I:!1,R:{},l,t:c,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,Z,{value:h,writable:!0}),p},S:function(c,l,f){f?ae(l)&&l[Z].A===c&&e(c.p):(c.u&&function p(h){if(h&&typeof h=="object"){var m=h[Z];if(m){var g=m.t,S=m.k,v=m.R,O=m.i;if(O===4)We(S,function($){$!==Z&&(g[$]!==void 0||lr(g,$)?v[$]||p(S[$]):(v[$]=!0,Oe(m)))}),We(g,function($){S[$]!==void 0||lr(S,$)||(v[$]=!1,Oe(m))});else if(O===5){if(n(m)&&(Oe(m),v.length=!0),S.length<g.length)for(var L=S.length;L<g.length;L++)v[L]=!1;else for(var R=g.length;R<S.length;R++)v[R]=!0;for(var N=Math.min(S.length,g.length),k=0;k<N;k++)S.hasOwnProperty(k)||(v[k]=!0),v[k]===void 0&&p(S[k])}}}}(c.p[0]),e(c.p))},K:function(c){return c.i===4?o(c):n(c)}})}var _c,Dr,Hn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",pd=typeof Map<"u",fd=typeof Set<"u",kc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Uc=Hn?Symbol.for("immer-nothing"):((_c={})["immer-nothing"]=!0,_c),Bc=Hn?Symbol.for("immer-draftable"):"__$immer_draftable",Z=Hn?Symbol.for("immer-state"):"__$immer_state";var ud=""+Object.prototype.constructor,dr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Wc=Object.getOwnPropertyDescriptors||function(t){var e={};return dr(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},Dn={},Mr={get:function(t,e){if(e===Z)return t;var o=Se(t);if(!lr(o,e))return function(a,i,c){var l,f=Pc(i,c);return f?"value"in f?f.value:(l=f.get)===null||l===void 0?void 0:l.call(a.k):void 0}(t,o,e);var n=o[e];return t.I||!zt(n)?n:n===Tn(t.t,e)?(_n(t),t.o[e]=$n(t.A.h,n,t)):n},has:function(t,e){return e in Se(t)},ownKeys:function(t){return Reflect.ownKeys(Se(t))},set:function(t,e,o){var n=Pc(Se(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var a=Tn(Se(t),e),i=a?.[Z];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(Dc(o,a)&&(o!==void 0||lr(t.t,e)))return!0;_n(t),Oe(t)}return t.o[e]===o&&(o!==void 0||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return Tn(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,_n(t),Oe(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=Se(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){Dt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Dt(12)}},$r={};We(Mr,function(t,e){$r[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),$r.deleteProperty=function(t,e){return $r.set.call(this,t,e,void 0)},$r.set=function(t,e,o){return Mr.set.call(this,t[0],e,o,t[0])};var hd=function(){function t(o){var n=this;this.O=kc,this.D=!0,this.produce=function(a,i,c){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var f=n;return function(O){var L=this;O===void 0&&(O=l);for(var R=arguments.length,N=Array(R>1?R-1:0),k=1;k<R;k++)N[k-1]=arguments[k];return f.produce(O,function($){var U;return(U=i).call.apply(U,[L,$].concat(N))})}}var p;if(typeof i!="function"&&Dt(6),c!==void 0&&typeof c!="function"&&Dt(7),zt(a)){var h=Lc(n),m=$n(n,a,void 0),g=!0;try{p=i(m),g=!1}finally{g?Lo(h):Bn(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(O){return In(h,c),Pn(O,h)},function(O){throw Lo(h),O}):(In(h,c),Pn(p,h))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===Uc&&(p=void 0),n.D&&Fn(p,!0),c){var S=[],v=[];Yt("Patches").M(a,p,S,v),c(S,v)}return p}Dt(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(p){for(var h=arguments.length,m=Array(h>1?h-1:0),g=1;g<h;g++)m[g-1]=arguments[g];return n.produceWithPatches(p,function(S){return a.apply(void 0,[S].concat(m))})};var c,l,f=n.produce(a,i,function(p,h){c=p,l=h});return typeof Promise<"u"&&f instanceof Promise?f.then(function(p){return[p,c,l]}):[f,c,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){zt(o)||Dt(8),ae(o)&&(o=dd(o));var n=Lc(this),a=$n(this,o,void 0);return a[Z].C=!0,Bn(n),a},e.finishDraft=function(o,n){var a=o&&o[Z],i=a.A;return In(i,n),Pn(void 0,i)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!kc&&Dt(20),this.O=o},e.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var c=Yt("Patches").$;return ae(o)?c(o,n):this.produce(o,function(l){return c(l,n)})},t}(),_t=new hd,yd=_t.produce,Ax=_t.produceWithPatches.bind(_t),Rx=_t.setAutoFreeze.bind(_t),Nx=_t.setUseProxies.bind(_t),Lx=_t.applyPatches.bind(_t),Ix=_t.createDraft.bind(_t),Px=_t.finishDraft.bind(_t),To=yd;function Ce(t){"@babel/helpers - typeof";return Ce=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ce(t)}function Gn(t,e){if(Ce(t)!=="object"||t===null)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(Ce(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Vn(t){var e=Gn(t,"string");return Ce(e)==="symbol"?e:String(e)}function jn(t,e,o){return e=Vn(e),e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Fc(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),o.push.apply(o,n)}return o}function _o(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Fc(Object(o),!0).forEach(function(n){jn(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Fc(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function mt(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. "}var zc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Kn=function(){return Math.random().toString(36).substring(7).split("").join(".")},ko={INIT:"@@redux/INIT"+Kn(),REPLACE:"@@redux/REPLACE"+Kn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Kn()}};function md(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Zn(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(mt(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(mt(1));return o(Zn)(t,e)}if(typeof t!="function")throw new Error(mt(2));var a=t,i=e,c=[],l=c,f=!1;function p(){l===c&&(l=c.slice())}function h(){if(f)throw new Error(mt(3));return i}function m(O){if(typeof O!="function")throw new Error(mt(4));if(f)throw new Error(mt(5));var L=!0;return p(),l.push(O),function(){if(L){if(f)throw new Error(mt(6));L=!1,p();var N=l.indexOf(O);l.splice(N,1),c=null}}}function g(O){if(!md(O))throw new Error(mt(7));if(typeof O.type>"u")throw new Error(mt(8));if(f)throw new Error(mt(9));try{f=!0,i=a(i,O)}finally{f=!1}for(var L=c=l,R=0;R<L.length;R++){var N=L[R];N()}return O}function S(O){if(typeof O!="function")throw new Error(mt(10));a=O,g({type:ko.REPLACE})}function v(){var O,L=m;return O={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(mt(11));function k(){N.next&&N.next(h())}k();var $=L(k);return{unsubscribe:$}}},O[zc]=function(){return this},O}return g({type:ko.INIT}),n={dispatch:g,subscribe:m,getState:h,replaceReducer:S},n[zc]=v,n}function gd(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:ko.INIT});if(typeof n>"u")throw new Error(mt(12));if(typeof o(void 0,{type:ko.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(mt(13))})}function Hc(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var a=e[n];typeof t[a]=="function"&&(o[a]=t[a])}var i=Object.keys(o),c,l;try{gd(o)}catch(f){l=f}return function(p,h){if(p===void 0&&(p={}),l)throw l;if(0)var m;for(var g=!1,S={},v=0;v<i.length;v++){var O=i[v],L=o[O],R=p[O],N=L(R,h);if(typeof N>"u"){var k=h&&h.type;throw new Error(mt(14))}S[O]=N,g=g||N!==R}return g=g||i.length!==Object.keys(p).length,g?S:p}}function fr(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function Gc(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(mt(15))},c={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=e.map(function(f){return f(c)});return i=fr.apply(void 0,l)(a.dispatch),_o(_o({},a),{},{dispatch:i})}}}function Vc(t){var e=function(n){var a=n.dispatch,i=n.getState;return function(c){return function(l){return typeof l=="function"?l(a,i,t):c(l)}}};return e}var jc=Vc();jc.withExtraArgument=Vc;var qn=jc;var Xc=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function n(){this.constructor=e}e.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),bd=function(t,e){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,c;return c={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function l(p){return function(h){return f([p,h])}}function f(p){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=p[0]&2?a.return:p[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,p[1])).done)return i;switch(a=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,a=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){o.label=p[1];break}if(p[0]===6&&o.label<i[1]){o.label=i[1],i=p;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(p);break}i[2]&&o.ops.pop(),o.trys.pop();continue}p=e.call(t,o)}catch(h){p=[6,h],a=0}finally{n=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},ur=function(t,e){for(var o=0,n=e.length,a=t.length;o<n;o++,a++)t[a]=e[o];return t},xd=Object.defineProperty,vd=Object.defineProperties,Sd=Object.getOwnPropertyDescriptors,Kc=Object.getOwnPropertySymbols,Od=Object.prototype.hasOwnProperty,Cd=Object.prototype.propertyIsEnumerable,Zc=function(t,e,o){return e in t?xd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Ee=function(t,e){for(var o in e||(e={}))Od.call(e,o)&&Zc(t,o,e[o]);if(Kc)for(var n=0,a=Kc(e);n<a.length;n++){var o=a[n];Cd.call(e,o)&&Zc(t,o,e[o])}return t},Yn=function(t,e){return vd(t,Sd(e))},Ed=function(t,e,o){return new Promise(function(n,a){var i=function(f){try{l(o.next(f))}catch(p){a(p)}},c=function(f){try{l(o.throw(f))}catch(p){a(p)}},l=function(f){return f.done?n(f.value):Promise.resolve(f.value).then(i,c)};l((o=o.apply(t,e)).next())})};var wd=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?fr:fr.apply(null,arguments)},qx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Ad(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return e===o}var Rd=function(t){Xc(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,ur([void 0],o[0].concat(this)))):new(e.bind.apply(e,ur([void 0],o.concat(this))))},e}(Array),Nd=function(t){Xc(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,ur([void 0],o[0].concat(this)))):new(e.bind.apply(e,ur([void 0],o.concat(this))))},e}(Array);function Qn(t){return zt(t)?To(t,function(){}):t}function Ld(t){return typeof t=="boolean"}function Id(){return function(e){return Pd(e)}}function Pd(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,n=t.immutableCheck,a=n===void 0?!0:n,i=t.serializableCheck,c=i===void 0?!0:i,l=new Rd;if(o&&(Ld(o)?l.push(qn):l.push(qn.withExtraArgument(o.extraArgument))),0){if(a)var f;if(c)var p}return l}var Xn=!0;function Jc(t){var e=Id(),o=t||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,c=i===void 0?e():i,l=o.devTools,f=l===void 0?!0:l,p=o.preloadedState,h=p===void 0?void 0:p,m=o.enhancers,g=m===void 0?void 0:m,S;if(typeof a=="function")S=a;else if(Ad(a))S=Hc(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 v=c;if(typeof v=="function"&&(v=v(e),!Xn&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Xn&&v.some(function($){return typeof $!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=Gc.apply(void 0,v),L=fr;f&&(L=wd(Ee({trace:!Xn},typeof f=="object"&&f)));var R=new Nd(O),N=R;Array.isArray(g)?N=ur([O],g):typeof g=="function"&&(N=g(R));var k=L.apply(void 0,N);return Zn(S,h,k)}function we(t,e){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(e){var i=e.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return Ee(Ee({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:n[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(n){return n.type===t},o}function Qc(t){var e={},o=[],n,a={addCase:function(i,c){var l=typeof i=="string"?i:i.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=c,a},addMatcher:function(i,c){return o.push({matcher:i,reducer:c}),a},addDefaultCase:function(i){return n=i,a}};return t(a),[e,o,n]}function Td(t){return typeof t=="function"}function _d(t,e,o,n){o===void 0&&(o=[]);var a=typeof e=="function"?Qc(e):[e,o,n],i=a[0],c=a[1],l=a[2],f;if(Td(t))f=function(){return Qn(t())};else{var p=Qn(t);f=function(){return p}}function h(m,g){m===void 0&&(m=f());var S=ur([i[g.type]],c.filter(function(v){var O=v.matcher;return O(g)}).map(function(v){var O=v.reducer;return O}));return S.filter(function(v){return!!v}).length===0&&(S=[l]),S.reduce(function(v,O){if(O)if(ae(v)){var L=v,R=O(L,g);return R===void 0?v:R}else{if(zt(v))return To(v,function(N){return O(N,g)});var R=O(v,g);if(R===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return R}return v},m)}return h.getInitialState=f,h}function kd(t,e){return t+"/"+e}function tl(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof t.initialState=="function"?t.initialState:Qn(t.initialState),n=t.reducers||{},a=Object.keys(n),i={},c={},l={};a.forEach(function(h){var m=n[h],g=kd(e,h),S,v;"reducer"in m?(S=m.reducer,v=m.prepare):S=m,i[h]=S,c[g]=S,l[h]=v?we(g,v):we(g)});function f(){var h=typeof t.extraReducers=="function"?Qc(t.extraReducers):[t.extraReducers],m=h[0],g=m===void 0?{}:m,S=h[1],v=S===void 0?[]:S,O=h[2],L=O===void 0?void 0:O,R=Ee(Ee({},g),c);return _d(o,function(N){for(var k in R)N.addCase(k,R[k]);for(var $=0,U=v;$<U.length;$++){var vt=U[$];N.addMatcher(vt.matcher,vt.reducer)}L&&N.addDefaultCase(L)})}var p;return{name:e,reducer:function(h,m){return p||(p=f()),p(h,m)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=f()),p.getInitialState()}}}var Bd="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",$d=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=Bd[Math.random()*64|0];return e},Dd=["name","message","stack","code"],Jn=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),qc=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Md=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=Dd;o<n.length;o++){var a=n[o];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},Qx=function(){function t(e,o,n){var a=we(e+"/fulfilled",function(h,m,g,S){return{payload:h,meta:Yn(Ee({},S||{}),{arg:g,requestId:m,requestStatus:"fulfilled"})}}),i=we(e+"/pending",function(h,m,g){return{payload:void 0,meta:Yn(Ee({},g||{}),{arg:m,requestId:h,requestStatus:"pending"})}}),c=we(e+"/rejected",function(h,m,g,S,v){return{payload:S,error:(n&&n.serializeError||Md)(h||"Rejected"),meta:Yn(Ee({},v||{}),{arg:g,requestId:m,rejectedWithValue:!!S,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,f=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function p(h){return function(m,g,S){var v=n?.idGenerator?n.idGenerator(h):$d(),O=new f,L,R=!1;function N($){L=$,O.abort()}var k=function(){return Ed(this,null,function(){var $,U,vt,Gt,gt,Vt,pt;return bd(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),Gt=($=n?.condition)==null?void 0:$.call(n,h,{getState:g,extra:S}),Wd(Gt)?[4,Gt]:[3,2];case 1:Gt=y.sent(),y.label=2;case 2:if(Gt===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return R=!0,gt=new Promise(function(x,T){return O.signal.addEventListener("abort",function(){return T({name:"AbortError",message:L||"Aborted"})})}),m(i(v,h,(U=n?.getPendingMeta)==null?void 0:U.call(n,{requestId:v,arg:h},{getState:g,extra:S}))),[4,Promise.race([gt,Promise.resolve(o(h,{dispatch:m,getState:g,extra:S,requestId:v,signal:O.signal,abort:N,rejectWithValue:function(x,T){return new Jn(x,T)},fulfillWithValue:function(x,T){return new qc(x,T)}})).then(function(x){if(x instanceof Jn)throw x;return x instanceof qc?a(x.payload,v,h,x.meta):a(x,v,h)})])];case 3:return vt=y.sent(),[3,5];case 4:return Vt=y.sent(),vt=Vt instanceof Jn?c(null,v,h,Vt.payload,Vt.meta):c(Vt,v,h),[3,5];case 5:return pt=n&&!n.dispatchConditionRejection&&c.match(vt)&&vt.meta.condition,pt||m(vt),[2,vt]}})})}();return Object.assign(k,{abort:N,requestId:v,arg:h,unwrap:function(){return k.then(Ud)}})}}return Object.assign(p,{pending:i,rejected:c,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t}();function Ud(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Wd(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var el="listener",rl="completed",ol="cancelled",tv="task-"+ol,ev="task-"+rl,rv=el+"-"+ol,ov=el+"-"+rl;var ta="listenerMiddleware";var nv=we(ta+"/add"),av=we(ta+"/removeAll"),iv=we(ta+"/remove");var Yc,sv=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Yc||(Yc=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Fd=function(t){return function(e){setTimeout(e,t)}},cv=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Fd(10);Mc();function zd(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(o,n,a){this.eventBus.addEventListener(o,n,a)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,a){this.eventBus.removeEventListener(o,n,a)}}}var Bo=class extends zd(Object){};window.ftReduxStores||(window.ftReduxStores={});var nl=class t extends Bo{static get(e){var o;let n=typeof e=="string"?e:e.name,a=typeof e=="string"?void 0:e,i=window.ftReduxStores[n];if(kr(i))return i;if(a==null)return;let c=tl({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=Jc({reducer:(f,p)=>p.type==="CLEAR_FT_REDUX_STORE"?c.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...f,...p.overwrites}:c.reducer(f,p)});return window.ftReduxStores[a.name]=new t(c,l)}constructor(e,o){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new Co,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,a,i)=>{let c=a,l=n[c];return l?(...f)=>{let p=l(...f);return this.reduxStore.dispatch(p),p}:f=>{this.setState({[c]:f})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var $o=class{static format(e,o,n,a){return window.moment?window.moment(e).locale(o).format(this.getDateFormat(n,a)):e}static getDateFormat(e,o){return e?o?"lll":"ll":o?"L LT":"L"}};var Do=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(c=t[l])&&(i=(a<3?c(i):a>3?c(e,o,i):c(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i};function al(t){class e extends t{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(_)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}formatDateValues(n){var a,i;return((i=(a=this.metadataDescriptors.find(l=>l.key===n?.key))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1)?this.formatMetadataDates(n):n}formatMetadataDates(n){return{key:n.key,label:n.label,values:n.values.map(a=>$o.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat)),hierarchicalValues:n.hierarchicalValues}}}return Do([(0,ea.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Do([(0,ea.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Do([Ln({store:_.name,selector:o=>{var n,a;return(a=(n=o.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&a!==void 0?a:[]}})],e.prototype,"metadataDescriptors",void 0),Do([Ln({store:_.name})],e.prototype,"uiLocale",void 0),e}var Fo=b(P());var Mo=class extends ge{async listMySearches(){let e=_.getState().session;return e?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Uo=class extends ge{async listMyBookmarks(){let e=_.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Hd="ft-user-assets",Wo=Fo.FtReduxStore.get({name:Hd,initialState:{savedSearches:void 0,bookmarks:void 0}}),ra=class{constructor(){this.currentSession=_.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Uo,this.savedSearchesService=new Mo,_.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=_.getState();(0,Fo.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Wo.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Wo.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Wo.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let o=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Wo.actions.bookmarks(o)}}},Mv=new ra;var oa=class{addCommand(e,o=!1){_.commands.add(e,o)}consumeCommand(e){return _.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new oa;var il=b(P()),na=class{highlightHtml(e,o,n){(0,il.highlightHtml)(e,o,n)}};window.FluidTopicsHighlightHtmlService=new na;var sl=b(P());var aa=class{isDate(e){var o,n,a,i;return(i=(a=((n=(o=_.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===e))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(e,o){var n,a,i;return sl.DateFormatter.format(e,(n=o?.locale)!==null&&n!==void 0?n:_.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new aa;var Gd=b(P());(0,cl.customElement)("ft-app-context")(J);var dl=b(Q()),Vd=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(c=t[l])&&(i=(a<3?c(i):a>3?c(e,o,i):c(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},ia=Symbol("i18nAttributes"),sa=Symbol("i18nListAttributes"),Fe=Symbol("i18nProperties"),Ur=Symbol("i18nUnsubs");function Go(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?hc:Me}i18n(a,i,...c){var l;if(typeof a=="string")return this.i18nService.resolveMessage(a,i,...c);let f=(l=a.args)!==null&&l!==void 0?l:a.argsProvider?a.argsProvider(this):[];return this.i18nService.resolveMessage(a.context,a.key,...f)}onI18nUpdate(a){var i,c,l;(i=this[ia])===null||i===void 0||i.forEach((f,p)=>{let h=this.getI18nAttributeValue(p);h&&(this[p]=this.getI18nAttributeMessage(h,f,a))}),(c=this[sa])===null||c===void 0||c.forEach((f,p)=>{let h=this.getI18nListAttributeValues(p);this[p]=h?.map(m=>this.getI18nAttributeMessage(m,f,a))}),(l=this[Fe])===null||l===void 0||l.forEach((f,p)=>{f.context.toLowerCase()===a.toLowerCase()&&(this[p]=this.i18n(f))}),setTimeout(()=>this.requestUpdate(),0)}buildI18nAttributeMessage(a,i){return{...a,message:this.i18n({context:a.context,key:a.key,...i})}}getI18nAttributeMessage(a,i,c){var l;let f=!c||((l=a.context)===null||l===void 0?void 0:l.toLowerCase())===c.toLowerCase();return a.context&&a.key&&f?this.buildI18nAttributeMessage(a,i):a}update(a){var i,c,l;super.update(a),(i=this[ia])===null||i===void 0||i.forEach((f,p)=>{let h=this.getI18nAttributeValue(p);h?.context&&h.key&&(a.has(p)||f.argsProvider!=null)&&(this.addI18nContextIfNeeded(h,a,p),this[p]=this.getI18nAttributeMessage(h,f))}),(c=this[sa])===null||c===void 0||c.forEach((f,p)=>{let h=this.getI18nListAttributeValues(p);(a.has(p)||f.argsProvider!=null)&&(this[p]=h?.map(m=>(this.addI18nContextIfNeeded(m,a,p),this.getI18nAttributeMessage(m,f))))}),(l=this[Fe])===null||l===void 0||l.forEach((f,p)=>{f.argsProvider!=null&&(this[p]=this.i18n(f))})}getI18nAttributeValue(a){return this[a]}getI18nListAttributeValues(a){return this[a]}addI18nContextIfNeeded(a,i,c){a.context&&a.key&&i.has(c)&&this.addI18nContext(a.context)}connectedCallback(){var a,i,c,l,f,p;super.connectedCallback(),new Set([...(i=(a=this[Fe])===null||a===void 0?void 0:a.values())!==null&&i!==void 0?i:[],...[...(l=(c=this[ia])===null||c===void 0?void 0:c.keys())!==null&&l!==void 0?l:[]].map(h=>this.getI18nAttributeValue(h)),...[...(p=(f=this[sa])===null||f===void 0?void 0:f.keys())!==null&&p!==void 0?p:[]].flatMap(h=>this.getI18nListAttributeValues(h))].map(h=>h?.context)).forEach(h=>h&&this.addI18nMessages(h))}addI18nMessages(a,i){a=a.toLowerCase(),this[Ur].has(a)||this[Ur].set(a,this.i18nService.subscribe(a,()=>this.onI18nUpdate(a))),this.i18nService.prepareContext(a,i??{}),this.onI18nUpdate(a)}addI18nContext(a,i){this.addI18nMessages(typeof a=="string"?a:a.name,i)}disconnectedCallback(){super.disconnectedCallback(),this[Ur].forEach(a=>a()),this[Ur].clear()}}return e=Ur,Vd([(0,dl.property)({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}var ll=class extends Go(Ho.FtLitElement){},zo=class extends Go(Ho.FtLitElementRedux){};var hl=b(P());var Vo=b(F()),jo=b(Q()),Ko=b(P());var pl=b(F());var fl=pl.css`
1502
1502
  `;var Wr=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(c=t[l])&&(i=(a<3?c(i):a>3?c(e,o,i):c(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Ht=class extends zo{constructor(){super(),this.editorMode=!1,this.addStore(_)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Vo.nothing:Vo.html`
1503
1503
  <span class="ft-i18n">
1504
1504
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}