@fluid-topics/ft-switch 1.3.52 → 1.3.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-switch.light.js +3 -3
- package/build/ft-switch.min.js +54 -54
- package/package.json +7 -7
package/build/ft-switch.light.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";(()=>{var Ic=Object.create;var Qn=Object.defineProperty;var Pc=Object.getOwnPropertyDescriptor;var kc=Object.getOwnPropertyNames;var Dc=Object.getPrototypeOf,Bc=Object.prototype.hasOwnProperty;var xt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Mc=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of kc(t))!Bc.call(e,a)&&a!==o&&Qn(e,a,{get:()=>t[a],enumerable:!(n=Pc(t,a))||n.enumerable});return e};var C=(e,t,o)=>(o=e!=null?Ic(Dc(e)):{},Mc(t||!e||!e.__esModule?Qn(o,"default",{value:e,enumerable:!0}):o,e));var k=xt((cd,ea)=>{ea.exports=ftGlobals.wcUtils});var z=xt((ld,ta)=>{ta.exports=ftGlobals.lit});var re=xt((dd,ra)=>{ra.exports=ftGlobals.litDecorators});var Or=xt((ud,oa)=>{oa.exports=ftGlobals.litClassMap});var Ni=xt((Ze,Ti)=>{var Mr=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Ur=function(){function e(){this.fetch=!1,this.DOMException=Mr.DOMException}return e.prototype=Mr,new e}();(function(e){var t=function(o){var n=typeof e<"u"&&e||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 s(h){return h&&DataView.prototype.isPrototypeOf(h)}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(h){return h&&c.indexOf(Object.prototype.toString.call(h))>-1};function u(h){if(typeof h!="string"&&(h=String(h)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(h)||h==="")throw new TypeError('Invalid character in header field name: "'+h+'"');return h.toLowerCase()}function p(h){return typeof h!="string"&&(h=String(h)),h}function y(h){var g={next:function(){var N=h.shift();return{done:N===void 0,value:N}}};return a.iterable&&(g[Symbol.iterator]=function(){return g}),g}function f(h){this.map={},h instanceof f?h.forEach(function(g,N){this.append(N,g)},this):Array.isArray(h)?h.forEach(function(g){if(g.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+g.length);this.append(g[0],g[1])},this):h&&Object.getOwnPropertyNames(h).forEach(function(g){this.append(g,h[g])},this)}f.prototype.append=function(h,g){h=u(h),g=p(g);var N=this.map[h];this.map[h]=N?N+", "+g:g},f.prototype.delete=function(h){delete this.map[u(h)]},f.prototype.get=function(h){return h=u(h),this.has(h)?this.map[h]:null},f.prototype.has=function(h){return this.map.hasOwnProperty(u(h))},f.prototype.set=function(h,g){this.map[u(h)]=p(g)},f.prototype.forEach=function(h,g){for(var N in this.map)this.map.hasOwnProperty(N)&&h.call(g,this.map[N],N,this)},f.prototype.keys=function(){var h=[];return this.forEach(function(g,N){h.push(N)}),y(h)},f.prototype.values=function(){var h=[];return this.forEach(function(g){h.push(g)}),y(h)},f.prototype.entries=function(){var h=[];return this.forEach(function(g,N){h.push([N,g])}),y(h)},a.iterable&&(f.prototype[Symbol.iterator]=f.prototype.entries);function m(h){if(!h._noBody){if(h.bodyUsed)return Promise.reject(new TypeError("Already read"));h.bodyUsed=!0}}function x(h){return new Promise(function(g,N){h.onload=function(){g(h.result)},h.onerror=function(){N(h.error)}})}function b(h){var g=new FileReader,N=x(g);return g.readAsArrayBuffer(h),N}function v(h){var g=new FileReader,N=x(g),D=/charset=([A-Za-z0-9_-]+)/.exec(h.type),U=D?D[1]:"utf-8";return g.readAsText(h,U),N}function A(h){for(var g=new Uint8Array(h),N=new Array(g.length),D=0;D<g.length;D++)N[D]=String.fromCharCode(g[D]);return N.join("")}function E(h){if(h.slice)return h.slice(0);var g=new Uint8Array(h.byteLength);return g.set(new Uint8Array(h)),g.buffer}function w(){return this.bodyUsed=!1,this._initBody=function(h){this.bodyUsed=this.bodyUsed,this._bodyInit=h,h?typeof h=="string"?this._bodyText=h:a.blob&&Blob.prototype.isPrototypeOf(h)?this._bodyBlob=h:a.formData&&FormData.prototype.isPrototypeOf(h)?this._bodyFormData=h:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(h)?this._bodyText=h.toString():a.arrayBuffer&&a.blob&&s(h)?(this._bodyArrayBuffer=E(h.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(h)||l(h))?this._bodyArrayBuffer=E(h):this._bodyText=h=Object.prototype.toString.call(h):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof h=="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(h)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var h=m(this);if(h)return h;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 h=m(this);return h||(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(b);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var h=m(this);if(h)return h;if(this._bodyBlob)return v(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(A(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(ne)}),this.json=function(){return this.text().then(JSON.parse)},this}var L=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function _(h){var g=h.toUpperCase();return L.indexOf(g)>-1?g:h}function I(h,g){if(!(this instanceof I))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');g=g||{};var N=g.body;if(h instanceof I){if(h.bodyUsed)throw new TypeError("Already read");this.url=h.url,this.credentials=h.credentials,g.headers||(this.headers=new f(h.headers)),this.method=h.method,this.mode=h.mode,this.signal=h.signal,!N&&h._bodyInit!=null&&(N=h._bodyInit,h.bodyUsed=!0)}else this.url=String(h);if(this.credentials=g.credentials||this.credentials||"same-origin",(g.headers||!this.headers)&&(this.headers=new f(g.headers)),this.method=_(g.method||this.method||"GET"),this.mode=g.mode||this.mode||null,this.signal=g.signal||this.signal||function(){if("AbortController"in n){var P=new AbortController;return P.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&N)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(N),(this.method==="GET"||this.method==="HEAD")&&(g.cache==="no-store"||g.cache==="no-cache")){var D=/([?&])_=[^&]*/;if(D.test(this.url))this.url=this.url.replace(D,"$1_="+new Date().getTime());else{var U=/\?/;this.url+=(U.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}I.prototype.clone=function(){return new I(this,{body:this._bodyInit})};function ne(h){var g=new FormData;return h.trim().split("&").forEach(function(N){if(N){var D=N.split("="),U=D.shift().replace(/\+/g," "),P=D.join("=").replace(/\+/g," ");g.append(decodeURIComponent(U),decodeURIComponent(P))}}),g}function Le(h){var g=new f,N=h.replace(/\r?\n[\t ]+/g," ");return N.split("\r").map(function(D){return D.indexOf(`
|
|
2
|
-
`)===0?D.substr(1,D.length):D}).forEach(function(D){var U=D.split(":"),P=U.shift().trim();if(P){var Sr=U.join(":").trim();try{g.append(P,Sr)}catch(ho){console.warn("Response "+ho.message)}}}),g}w.call(I.prototype);function te(h,g){if(!(this instanceof te))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(g||(g={}),this.type="default",this.status=g.status===void 0?200:g.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=g.statusText===void 0?"":""+g.statusText,this.headers=new f(g.headers),this.url=g.url||"",this._initBody(h)}w.call(te.prototype),te.prototype.clone=function(){return new te(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},te.error=function(){var h=new te(null,{status:200,statusText:""});return h.ok=!1,h.status=0,h.type="error",h};var _e=[301,302,303,307,308];te.redirect=function(h,g){if(_e.indexOf(g)===-1)throw new RangeError("Invalid status code");return new te(null,{status:g,headers:{location:h}})},o.DOMException=n.DOMException;try{new o.DOMException}catch{o.DOMException=function(g,N){this.message=g,this.name=N;var D=Error(g);this.stack=D.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function Y(h,g){return new Promise(function(N,D){var U=new I(h,g);if(U.signal&&U.signal.aborted)return D(new o.DOMException("Aborted","AbortError"));var P=new XMLHttpRequest;function Sr(){P.abort()}P.onload=function(){var X={statusText:P.statusText,headers:Le(P.getAllResponseHeaders()||"")};U.url.indexOf("file://")===0&&(P.status<200||P.status>599)?X.status=200:X.status=P.status,X.url="responseURL"in P?P.responseURL:X.headers.get("X-Request-URL");var ot="response"in P?P.response:P.responseText;setTimeout(function(){N(new te(ot,X))},0)},P.onerror=function(){setTimeout(function(){D(new TypeError("Network request failed"))},0)},P.ontimeout=function(){setTimeout(function(){D(new TypeError("Network request timed out"))},0)},P.onabort=function(){setTimeout(function(){D(new o.DOMException("Aborted","AbortError"))},0)};function ho(X){try{return X===""&&n.location.href?n.location.href:X}catch{return X}}if(P.open(U.method,ho(U.url),!0),U.credentials==="include"?P.withCredentials=!0:U.credentials==="omit"&&(P.withCredentials=!1),"responseType"in P&&(a.blob?P.responseType="blob":a.arrayBuffer&&(P.responseType="arraybuffer")),g&&typeof g.headers=="object"&&!(g.headers instanceof f||n.Headers&&g.headers instanceof n.Headers)){var Jn=[];Object.getOwnPropertyNames(g.headers).forEach(function(X){Jn.push(u(X)),P.setRequestHeader(X,p(g.headers[X]))}),U.headers.forEach(function(X,ot){Jn.indexOf(ot)===-1&&P.setRequestHeader(ot,X)})}else U.headers.forEach(function(X,ot){P.setRequestHeader(ot,X)});U.signal&&(U.signal.addEventListener("abort",Sr),P.onreadystatechange=function(){P.readyState===4&&U.signal.removeEventListener("abort",Sr)}),P.send(typeof U._bodyInit>"u"?null:U._bodyInit)})}return Y.polyfill=!0,n.fetch||(n.fetch=Y,n.Headers=f,n.Request=I,n.Response=te),o.Headers=f,o.Request=I,o.Response=te,o.fetch=Y,o}({})})(Ur);Ur.fetch.ponyfill=!0;delete Ur.fetch.polyfill;var zt=Mr.fetch?Mr:Ur;Ze=zt.fetch;Ze.default=zt.fetch;Ze.fetch=zt.fetch;Ze.Headers=zt.Headers;Ze.Request=zt.Request;Ze.Response=zt.Response;Ti.exports=Ze});var Oc=xt((
|
|
2
|
+
`)===0?D.substr(1,D.length):D}).forEach(function(D){var U=D.split(":"),P=U.shift().trim();if(P){var Sr=U.join(":").trim();try{g.append(P,Sr)}catch(ho){console.warn("Response "+ho.message)}}}),g}w.call(I.prototype);function te(h,g){if(!(this instanceof te))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(g||(g={}),this.type="default",this.status=g.status===void 0?200:g.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=g.statusText===void 0?"":""+g.statusText,this.headers=new f(g.headers),this.url=g.url||"",this._initBody(h)}w.call(te.prototype),te.prototype.clone=function(){return new te(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},te.error=function(){var h=new te(null,{status:200,statusText:""});return h.ok=!1,h.status=0,h.type="error",h};var _e=[301,302,303,307,308];te.redirect=function(h,g){if(_e.indexOf(g)===-1)throw new RangeError("Invalid status code");return new te(null,{status:g,headers:{location:h}})},o.DOMException=n.DOMException;try{new o.DOMException}catch{o.DOMException=function(g,N){this.message=g,this.name=N;var D=Error(g);this.stack=D.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function Y(h,g){return new Promise(function(N,D){var U=new I(h,g);if(U.signal&&U.signal.aborted)return D(new o.DOMException("Aborted","AbortError"));var P=new XMLHttpRequest;function Sr(){P.abort()}P.onload=function(){var X={statusText:P.statusText,headers:Le(P.getAllResponseHeaders()||"")};U.url.indexOf("file://")===0&&(P.status<200||P.status>599)?X.status=200:X.status=P.status,X.url="responseURL"in P?P.responseURL:X.headers.get("X-Request-URL");var ot="response"in P?P.response:P.responseText;setTimeout(function(){N(new te(ot,X))},0)},P.onerror=function(){setTimeout(function(){D(new TypeError("Network request failed"))},0)},P.ontimeout=function(){setTimeout(function(){D(new TypeError("Network request timed out"))},0)},P.onabort=function(){setTimeout(function(){D(new o.DOMException("Aborted","AbortError"))},0)};function ho(X){try{return X===""&&n.location.href?n.location.href:X}catch{return X}}if(P.open(U.method,ho(U.url),!0),U.credentials==="include"?P.withCredentials=!0:U.credentials==="omit"&&(P.withCredentials=!1),"responseType"in P&&(a.blob?P.responseType="blob":a.arrayBuffer&&(P.responseType="arraybuffer")),g&&typeof g.headers=="object"&&!(g.headers instanceof f||n.Headers&&g.headers instanceof n.Headers)){var Jn=[];Object.getOwnPropertyNames(g.headers).forEach(function(X){Jn.push(u(X)),P.setRequestHeader(X,p(g.headers[X]))}),U.headers.forEach(function(X,ot){Jn.indexOf(ot)===-1&&P.setRequestHeader(ot,X)})}else U.headers.forEach(function(X,ot){P.setRequestHeader(ot,X)});U.signal&&(U.signal.addEventListener("abort",Sr),P.onreadystatechange=function(){P.readyState===4&&U.signal.removeEventListener("abort",Sr)}),P.send(typeof U._bodyInit>"u"?null:U._bodyInit)})}return Y.polyfill=!0,n.fetch||(n.fetch=Y,n.Headers=f,n.Request=I,n.Response=te),o.Headers=f,o.Request=I,o.Response=te,o.fetch=Y,o}({})})(Ur);Ur.fetch.ponyfill=!0;delete Ur.fetch.polyfill;var zt=Mr.fetch?Mr:Ur;Ze=zt.fetch;Ze.default=zt.fetch;Ze.fetch=zt.fetch;Ze.Headers=zt.Headers;Ze.Request=zt.Request;Ze.Response=zt.Response;Ti.exports=Ze});var Oc=xt((vv,Sc)=>{Sc.exports=ftGlobals.litUnsafeHTML});var Xn=C(k());var fo=C(z()),De=C(re()),_c=C(Or()),$e=C(k());var Jt=C(z()),se=C(re()),Qt=C(k());var fa=C(k());var ua=C(z()),J=C(re()),pa=C(Or()),er=C(k());var la=C(z()),F=C(k()),na=F.FtCssVariableFactory.extend("--ft-ripple-color","",F.designSystemVariables.colorContent),Be={color:na,backgroundColor:F.FtCssVariableFactory.extend("--ft-ripple-background-color","",na),opacityContentOnSurfacePressed:F.FtCssVariableFactory.external(F.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:F.FtCssVariableFactory.external(F.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:F.FtCssVariableFactory.external(F.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:F.FtCssVariableFactory.external(F.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:F.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},aa=F.FtCssVariableFactory.extend("--ft-ripple-color","",F.designSystemVariables.colorPrimary),ia={color:aa,backgroundColor:F.FtCssVariableFactory.extend("--ft-ripple-background-color","",aa)},sa=F.FtCssVariableFactory.extend("--ft-ripple-color","",F.designSystemVariables.colorSecondary),ca={color:sa,backgroundColor:F.FtCssVariableFactory.extend("--ft-ripple-background-color","",sa)},da=la.css`
|
|
3
3
|
:host {
|
|
4
4
|
display: contents;
|
|
5
5
|
}
|
|
@@ -288,7 +288,7 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
288
288
|
`;var ei=["top","right","bottom","left"],Qa=["start","end"],en=ei.reduce((e,t)=>e.concat(t,t+"-"+Qa[0],t+"-"+Qa[1]),[]),ti=Math.min,ri=Math.max;var jc={left:"right",right:"left",bottom:"top",top:"bottom"},Kc={start:"end",end:"start"};function tn(e,t,o){return ri(e,ti(t,o))}function Rr(e,t){return typeof e=="function"?e(t):e}function Mt(e){return e.split("-")[0]}function Ve(e){return e.split("-")[1]}function rn(e){return e==="x"?"y":"x"}function on(e){return e==="y"?"height":"width"}function Tr(e){return["top","bottom"].includes(Mt(e))?"y":"x"}function nn(e){return rn(Tr(e))}function oi(e,t,o){o===void 0&&(o=!1);let n=Ve(e),a=nn(e),s=on(a),c=a==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(c=Qo(c)),[c,Qo(c)]}function ni(e){return e.replace(/start|end/g,t=>Kc[t])}function Qo(e){return e.replace(/left|right|bottom|top/g,t=>jc[t])}function Vc(e){return{top:0,right:0,bottom:0,left:0,...e}}function ai(e){return typeof e!="number"?Vc(e):{top:e,right:e,bottom:e,left:e}}function lt(e){let{x:t,y:o,width:n,height:a}=e;return{width:n,height:a,top:o,left:t,right:t+n,bottom:o+a,x:t,y:o}}function ii(e,t,o){let{reference:n,floating:a}=e,s=Tr(t),c=nn(t),l=on(c),u=Mt(t),p=s==="y",y=n.x+n.width/2-a.width/2,f=n.y+n.height/2-a.height/2,m=n[l]/2-a[l]/2,x;switch(u){case"top":x={x:y,y:n.y-a.height};break;case"bottom":x={x:y,y:n.y+n.height};break;case"right":x={x:n.x+n.width,y:f};break;case"left":x={x:n.x-a.width,y:f};break;default:x={x:n.x,y:n.y}}switch(Ve(t)){case"start":x[c]-=m*(o&&p?-1:1);break;case"end":x[c]+=m*(o&&p?-1:1);break}return x}var si=async(e,t,o)=>{let{placement:n="bottom",strategy:a="absolute",middleware:s=[],platform:c}=o,l=s.filter(Boolean),u=await(c.isRTL==null?void 0:c.isRTL(t)),p=await c.getElementRects({reference:e,floating:t,strategy:a}),{x:y,y:f}=ii(p,n,u),m=n,x={},b=0;for(let v=0;v<l.length;v++){let{name:A,fn:E}=l[v],{x:w,y:L,data:_,reset:I}=await E({x:y,y:f,initialPlacement:n,placement:m,strategy:a,middlewareData:x,rects:p,platform:c,elements:{reference:e,floating:t}});y=w??y,f=L??f,x={...x,[A]:{...x[A],..._}},I&&b<=50&&(b++,typeof I=="object"&&(I.placement&&(m=I.placement),I.rects&&(p=I.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:a}):I.rects),{x:y,y:f}=ii(p,m,u)),v=-1)}return{x:y,y:f,placement:m,strategy:a,middlewareData:x}};async function an(e,t){var o;t===void 0&&(t={});let{x:n,y:a,platform:s,rects:c,elements:l,strategy:u}=e,{boundary:p="clippingAncestors",rootBoundary:y="viewport",elementContext:f="floating",altBoundary:m=!1,padding:x=0}=Rr(t,e),b=ai(x),A=l[m?f==="floating"?"reference":"floating":f],E=lt(await s.getClippingRect({element:(o=await(s.isElement==null?void 0:s.isElement(A)))==null||o?A:A.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:p,rootBoundary:y,strategy:u})),w=f==="floating"?{x:n,y:a,width:c.floating.width,height:c.floating.height}:c.reference,L=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),_=await(s.isElement==null?void 0:s.isElement(L))?await(s.getScale==null?void 0:s.getScale(L))||{x:1,y:1}:{x:1,y:1},I=lt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:w,offsetParent:L,strategy:u}):w);return{top:(E.top-I.top+b.top)/_.y,bottom:(I.bottom-E.bottom+b.bottom)/_.y,left:(E.left-I.left+b.left)/_.x,right:(I.right-E.right+b.right)/_.x}}function Zc(e,t,o){return(e?[...o.filter(a=>Ve(a)===e),...o.filter(a=>Ve(a)!==e)]:o.filter(a=>Mt(a)===a)).filter(a=>e?Ve(a)===e||(t?ni(a)!==a:!1):!0)}var sn=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var o,n,a;let{rects:s,middlewareData:c,placement:l,platform:u,elements:p}=t,{crossAxis:y=!1,alignment:f,allowedPlacements:m=en,autoAlignment:x=!0,...b}=Rr(e,t),v=f!==void 0||m===en?Zc(f||null,x,m):m,A=await an(t,b),E=((o=c.autoPlacement)==null?void 0:o.index)||0,w=v[E];if(w==null)return{};let L=oi(w,s,await(u.isRTL==null?void 0:u.isRTL(p.floating)));if(l!==w)return{reset:{placement:v[0]}};let _=[A[Mt(w)],A[L[0]],A[L[1]]],I=[...((n=c.autoPlacement)==null?void 0:n.overflows)||[],{placement:w,overflows:_}],ne=v[E+1];if(ne)return{data:{index:E+1,overflows:I},reset:{placement:ne}};let Le=I.map(Y=>{let h=Ve(Y.placement);return[Y.placement,h&&y?Y.overflows.slice(0,2).reduce((g,N)=>g+N,0):Y.overflows[0],Y.overflows]}).sort((Y,h)=>Y[1]-h[1]),_e=((a=Le.filter(Y=>Y[2].slice(0,Ve(Y[0])?2:3).every(h=>h<=0))[0])==null?void 0:a[0])||Le[0][0];return _e!==l?{data:{index:E+1,overflows:I},reset:{placement:_e}}:{}}}};var cn=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:o,y:n,placement:a}=t,{mainAxis:s=!0,crossAxis:c=!1,limiter:l={fn:A=>{let{x:E,y:w}=A;return{x:E,y:w}}},...u}=Rr(e,t),p={x:o,y:n},y=await an(t,u),f=Tr(Mt(a)),m=rn(f),x=p[m],b=p[f];if(s){let A=m==="y"?"top":"left",E=m==="y"?"bottom":"right",w=x+y[A],L=x-y[E];x=tn(w,x,L)}if(c){let A=f==="y"?"top":"left",E=f==="y"?"bottom":"right",w=b+y[A],L=b-y[E];b=tn(w,b,L)}let v=l.fn({...t,[m]:x,[f]:b});return{...v,data:{x:v.x-o,y:v.y-n,enabled:{[m]:s,[f]:c}}}}}};var ln=Math.min,Ut=Math.max,ar=Math.round;var He=e=>({x:e,y:e});function Fe(e){return li(e)?(e.nodeName||"").toLowerCase():"#document"}function ie(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ze(e){var t;return(t=(li(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function li(e){return e instanceof Node||e instanceof ie(e).Node}function Ie(e){return e instanceof Element||e instanceof ie(e).Element}function Oe(e){return e instanceof HTMLElement||e instanceof ie(e).HTMLElement}function ci(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ie(e).ShadowRoot}function Wt(e){let{overflow:t,overflowX:o,overflowY:n,display:a}=ce(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&!["inline","contents"].includes(a)}function di(e){return["table","td","th"].includes(Fe(e))}function Lr(e){let t=_r(),o=ce(e);return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!t&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!t&&(o.filter?o.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(o.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(o.contain||"").includes(n))}function ui(e){let t=dt(e);for(;Oe(t)&&!ir(t);){if(Lr(t))return t;t=dt(t)}return null}function _r(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ir(e){return["html","body","#document"].includes(Fe(e))}function ce(e){return ie(e).getComputedStyle(e)}function sr(e){return Ie(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function dt(e){if(Fe(e)==="html")return e;let t=e.assignedSlot||e.parentNode||ci(e)&&e.host||ze(e);return ci(t)?t.host:t}function pi(e){let t=dt(e);return ir(t)?e.ownerDocument?e.ownerDocument.body:e.body:Oe(t)&&Wt(t)?t:pi(t)}function Nr(e,t,o){var n;t===void 0&&(t=[]),o===void 0&&(o=!0);let a=pi(e),s=a===((n=e.ownerDocument)==null?void 0:n.body),c=ie(a);return s?t.concat(c,c.visualViewport||[],Wt(a)?a:[],c.frameElement&&o?Nr(c.frameElement):[]):t.concat(a,Nr(a,[],o))}function yi(e){let t=ce(e),o=parseFloat(t.width)||0,n=parseFloat(t.height)||0,a=Oe(e),s=a?e.offsetWidth:o,c=a?e.offsetHeight:n,l=ar(o)!==s||ar(n)!==c;return l&&(o=s,n=c),{width:o,height:n,$:l}}function mi(e){return Ie(e)?e:e.contextElement}function Ht(e){let t=mi(e);if(!Oe(t))return He(1);let o=t.getBoundingClientRect(),{width:n,height:a,$:s}=yi(t),c=(s?ar(o.width):o.width)/n,l=(s?ar(o.height):o.height)/a;return(!c||!Number.isFinite(c))&&(c=1),(!l||!Number.isFinite(l))&&(l=1),{x:c,y:l}}var Xc=He(0);function gi(e){let t=ie(e);return!_r()||!t.visualViewport?Xc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Jc(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==ie(e)?!1:t}function cr(e,t,o,n){t===void 0&&(t=!1),o===void 0&&(o=!1);let a=e.getBoundingClientRect(),s=mi(e),c=He(1);t&&(n?Ie(n)&&(c=Ht(n)):c=Ht(e));let l=Jc(s,o,n)?gi(s):He(0),u=(a.left+l.x)/c.x,p=(a.top+l.y)/c.y,y=a.width/c.x,f=a.height/c.y;if(s){let m=ie(s),x=n&&Ie(n)?ie(n):n,b=m.frameElement;for(;b&&n&&x!==m;){let v=Ht(b),A=b.getBoundingClientRect(),E=ce(b),w=A.left+(b.clientLeft+parseFloat(E.paddingLeft))*v.x,L=A.top+(b.clientTop+parseFloat(E.paddingTop))*v.y;u*=v.x,p*=v.y,y*=v.x,f*=v.y,u+=w,p+=L,b=ie(b).frameElement}}return lt({width:y,height:f,x:u,y:p})}function Qc(e){let{rect:t,offsetParent:o,strategy:n}=e,a=Oe(o),s=ze(o);if(o===s)return t;let c={scrollLeft:0,scrollTop:0},l=He(1),u=He(0);if((a||!a&&n!=="fixed")&&((Fe(o)!=="body"||Wt(s))&&(c=sr(o)),Oe(o))){let p=cr(o);l=Ht(o),u.x=p.x+o.clientLeft,u.y=p.y+o.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-c.scrollLeft*l.x+u.x,y:t.y*l.y-c.scrollTop*l.y+u.y}}function el(e){return Array.from(e.getClientRects())}function bi(e){return cr(ze(e)).left+sr(e).scrollLeft}function tl(e){let t=ze(e),o=sr(e),n=e.ownerDocument.body,a=Ut(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=Ut(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),c=-o.scrollLeft+bi(e),l=-o.scrollTop;return ce(n).direction==="rtl"&&(c+=Ut(t.clientWidth,n.clientWidth)-a),{width:a,height:s,x:c,y:l}}function rl(e,t){let o=ie(e),n=ze(e),a=o.visualViewport,s=n.clientWidth,c=n.clientHeight,l=0,u=0;if(a){s=a.width,c=a.height;let p=_r();(!p||p&&t==="fixed")&&(l=a.offsetLeft,u=a.offsetTop)}return{width:s,height:c,x:l,y:u}}function ol(e,t){let o=cr(e,!0,t==="fixed"),n=o.top+e.clientTop,a=o.left+e.clientLeft,s=Oe(e)?Ht(e):He(1),c=e.clientWidth*s.x,l=e.clientHeight*s.y,u=a*s.x,p=n*s.y;return{width:c,height:l,x:u,y:p}}function fi(e,t,o){let n;if(t==="viewport")n=rl(e,o);else if(t==="document")n=tl(ze(e));else if(Ie(t))n=ol(t,o);else{let a=gi(e);n={...t,x:t.x-a.x,y:t.y-a.y}}return lt(n)}function xi(e,t){let o=dt(e);return o===t||!Ie(o)||ir(o)?!1:ce(o).position==="fixed"||xi(o,t)}function nl(e,t){let o=t.get(e);if(o)return o;let n=Nr(e,[],!1).filter(l=>Ie(l)&&Fe(l)!=="body"),a=null,s=ce(e).position==="fixed",c=s?dt(e):e;for(;Ie(c)&&!ir(c);){let l=ce(c),u=Lr(c);!u&&l.position==="fixed"&&(a=null),(s?!u&&!a:!u&&l.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||Wt(c)&&!u&&xi(e,c))?n=n.filter(y=>y!==c):a=l,c=dt(c)}return t.set(e,n),n}function al(e){let{element:t,boundary:o,rootBoundary:n,strategy:a}=e,c=[...o==="clippingAncestors"?nl(t,this._c):[].concat(o),n],l=c[0],u=c.reduce((p,y)=>{let f=fi(t,y,a);return p.top=Ut(f.top,p.top),p.right=ln(f.right,p.right),p.bottom=ln(f.bottom,p.bottom),p.left=Ut(f.left,p.left),p},fi(t,l,a));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function il(e){return yi(e)}function sl(e,t,o){let n=Oe(t),a=ze(t),s=o==="fixed",c=cr(e,!0,s,t),l={scrollLeft:0,scrollTop:0},u=He(0);if(n||!n&&!s)if((Fe(t)!=="body"||Wt(a))&&(l=sr(t)),n){let p=cr(t,!0,s,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}else a&&(u.x=bi(a));return{x:c.left+l.scrollLeft-u.x,y:c.top+l.scrollTop-u.y,width:c.width,height:c.height}}function hi(e,t){return!Oe(e)||ce(e).position==="fixed"?null:t?t(e):e.offsetParent}function vi(e,t){let o=ie(e);if(!Oe(e))return o;let n=hi(e,t);for(;n&&di(n)&&ce(n).position==="static";)n=hi(n,t);return n&&(Fe(n)==="html"||Fe(n)==="body"&&ce(n).position==="static"&&!Lr(n))?o:n||ui(e)||o}var cl=async function(e){let{reference:t,floating:o,strategy:n}=e,a=this.getOffsetParent||vi,s=this.getDimensions;return{reference:sl(t,await a(o),n),floating:{x:0,y:0,...await s(o)}}};function ll(e){return ce(e).direction==="rtl"}var Ir={convertOffsetParentRelativeRectToViewportRelativeRect:Qc,getDocumentElement:ze,getClippingRect:al,getOffsetParent:vi,getElementRects:cl,getClientRects:el,getDimensions:il,getScale:Ht,isElement:Ie,isRTL:ll};var Si=(e,t,o)=>{let n=new Map,a={platform:Ir,...o},s={...a.platform,_c:n};return si(e,t,{...a,platform:s})};function Oi(e){return dl(e)}function dn(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function dl(e){for(let t=e;t;t=dn(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=dn(e);t;t=dn(t)){if(!(t instanceof Element))continue;let o=getComputedStyle(t);if(o.display!=="contents"&&(o.position!=="static"||o.filter!=="none"||t.tagName==="BODY"))return t}return null}async function Ci(e,t,o){return Si(e,t,{platform:{...Ir,getOffsetParent:n=>Ir.getOffsetParent(n,Oi)},middleware:[cn({crossAxis:!0}),sn({allowedPlacements:[o]})]})}var Xt=C(k());var lc=C(k());var fs=C(z()),Q=C(re()),Ce=C(k());var Ei=C(z());var Ai=Ei.css`
|
|
289
289
|
`;var Pr=C(k()),ul="ft-app-info",ut=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};ut.eventName="authentication-change";var pl={session:(e,t)=>{(0,Pr.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>R.dispatchEvent(new ut(t.payload)),0))}},R=Pr.FtReduxStore.get({name:ul,reducers:pl,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var un=C(k());var pt=class e{static get(t){let{baseUrl:o,apiIntegrationIdentifier:n}=R.getState(),a=t??n;if(o&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,a,!0)}static await(t){return new Promise(o=>{let n=e.get(t);if(n)o(n);else{let a=R.subscribe(()=>{n=e.get(t),n&&(a(),o(n))})}})}};var kr=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:pt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):pt.await()}};var le=class extends kr{constructor(t=!0,o){var n;super(o),this.sortObjectFields=(s,c)=>typeof c!="object"||c==null||Array.isArray(c)?c:Object.fromEntries(Object.entries(c).sort(([l],[u])=>l.localeCompare(u)));let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new un.CacheRegistry,this.cache=t?a.commonCache:new un.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((o,n)=>0|31*o+n.charCodeAt(0),0))}};var Dr=class extends le{async listMyBookmarks(){let t=R.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var pn=class{addCommand(t,o=!1){R.commands.add(t,o)}consumeCommand(t){return R.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new pn;var ye=C(k());var wi,Ft=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},fl=Symbol("clearAfterUnitTest"),Br=class extends(0,ye.withEventBus)(le){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[wi]=()=>{this.defaultMessages={},this.cache=new ye.CacheRegistry,this.listeners={}},this.currentUiLocale=R.getState().uiLocale,R.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=R.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let o=t.name.toLowerCase();this.cache.setFinal(o,t),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,o){var n;if(t=t.toLowerCase(),o&&Object.keys(o).length>0){let a={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...o};(0,ye.deepEqual)(this.defaultMessages[t],a)||(this.defaultMessages[t]=a,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var o,n;return this.fetchContext(t),(n=(o=this.cache.getNow(t))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,o){let n=t.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(t,o,...n){var a;let s=t.toLowerCase(),c=this.resolveContext(s);return new ye.ParametrizedLabelResolver((a=this.defaultMessages[s])!==null&&a!==void 0?a:{},c).resolve(o,...n)}async fetchContext(t){let o=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),o&&await this.notify(t)}catch(a){!(a instanceof ye.CanceledPromiseError)&&o&&console.error(a)}return n}subscribe(t,o){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(o),()=>{var a;return(a=this.listeners[t])===null||a===void 0?void 0:a.delete(o)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new Ft({loadedContexts:t})),this.dispatchEvent(new Ft({loadedContexts:t})),await Promise.all(t.map(o=>this.notify(o,!1)))}async notify(t,o=!0){o&&(document.body.dispatchEvent(new Ft({loadedContexts:[t]})),this.dispatchEvent(new Ft({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,ye.delay)(0).then(()=>n()).catch(()=>null)))}};wi=fl;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Br{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Br{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var lr=window.FluidTopicsI18nService,fn=window.FluidTopicsCustomI18nService;var Ri=C(k()),hn=class{highlightHtml(t,o,n){(0,Ri.highlightHtml)(t,o,n)}};window.FluidTopicsHighlightHtmlService=new hn;var yl=C(Ni(),1);var Li;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Li||(Li={}));var _i;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(_i||(_i={}));var Ii;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(Ii||(Ii={}));var Pi;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(Pi||(Pi={}));var ki;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(ki||(ki={}));var Di;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(Di||(Di={}));var Bi;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.CHATBOT__RATE="CHATBOT__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",e.DOCUMENT__AI_TRANSLATE="DOCUMENT__AI_TRANSLATE",e.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",e.AI__RATE="AI__RATE",e.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",e.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",e.TOPIC__DISPLAY="TOPIC__DISPLAY",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(Bi||(Bi={}));var Mi;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(Mi||(Mi={}));var Ui;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT",e.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",e.LINK_PREVIEW="LINK_PREVIEW"})(Ui||(Ui={}));var Wi;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Wi||(Wi={}));var Hi;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(Hi||(Hi={}));var Fi;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(Fi||(Fi={}));var zi;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(zi||(zi={}));var Gi;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(Gi||(Gi={}));var $i;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})($i||($i={}));var ji;(function(e){e.ASC="ASC",e.DESC="DESC"})(ji||(ji={}));var Ki;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Ki||(Ki={}));var Vi;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Vi||(Vi={}));var Zi;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(Zi||(Zi={}));var qi;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(qi||(qi={}));var Yi;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(Yi||(Yi={}));var Xi;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Xi||(Xi={}));var Ji;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Ji||(Ji={}));var Qi;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Qi||(Qi={}));var es;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(es||(es={}));var G;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(G||(G={}));var me;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(me||(me={}));var ts;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(ts||(ts={}));var rs;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(rs||(rs={}));var os;(function(e){e.USER="USER",e.ASSISTANT="ASSISTANT"})(os||(os={}));var ns;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(ns||(ns={}));var as;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(as||(as={}));var hl={[G.PERSONAL_BOOK_SHARE_USER]:[G.PERSONAL_BOOK_USER],[G.HTML_EXPORT_USER]:[G.PERSONAL_BOOK_USER],[G.PDF_EXPORT_USER]:[G.PERSONAL_BOOK_USER],[G.KHUB_ADMIN]:[G.CONTENT_PUBLISHER],[G.ADMIN]:[G.KHUB_ADMIN,G.USERS_ADMIN,G.PORTAL_ADMIN],[G.GENERATIVE_AI_EXPORT_USER]:[G.GENERATIVE_AI_USER]};function is(e,t){return e===t||(hl[e]??[]).some(o=>is(o,t))}function ss(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>is(n,t))}var Wr=class extends le{async listMySearches(){let{session:t}=R.getState();return ss(t,G.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var cs=C(k());var yn=class{isDate(t){var o,n,a,s;return(s=(a=((n=(o=R.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===t))===null||a===void 0?void 0:a.date)!==null&&s!==void 0?s:!1}format(t,o){var n,a,s;return cs.DateFormatter.format(t,(n=o?.locale)!==null&&n!==void 0?n:R.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(s=o?.withTime)!==null&&s!==void 0?s:!1)}};window.FluidTopicsDateService=new yn;var ls=C(k());var dr=class{static get(t,o){var n,a;let s=R.getState(),{lang:c,region:l}=(a=(n=s.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new ls.SearchPlaceConverter(s.baseUrl,t??20,s.searchInAllLanguagesAllowed,o??`${c}-${l}`)}};var mn=class{urlToSearchRequest(t){return dr.get().parse(t)}searchRequestToUrl(t){return dr.get().serialize(t)}};window.FluidTopicsUrlService=new mn;var qe=C(k());var ft=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};ft.eventName="change";var gn=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let o=sessionStorage.getItem(this.itemName(t));return o?JSON.parse(o):void 0}set(t,o){sessionStorage.setItem(this.itemName(t),JSON.stringify(o))}},ds=new gn;var Hr=class e extends qe.WithEventBus{static build(){return new e(window.history,ds,()=>window.location,!1)}constructor(t,o,n,a){var s,c;super(),this.history=t,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(c=(s=t.state)===null||s===void 0?void 0:s.index)!==null&&c!==void 0?c:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(t,o=!1){let n=o&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,qe.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new ft(this.currentItem())),0)}installProxies(){let t=o=>(n,a,[s,c,l])=>{let u=o(),p={...u===this.currentIndex?this.currentState:void 0,...s,index:u,href:typeof l=="string"?l:(l??this.windowLocation()).href};n.apply(a,[p,c,l]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(t){for(let o=this.history.length-1;o>=0;o--)t?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(t){var o;let n={...this.buildCurrentState(),...t,index:this.currentIndex,title:(o=t?.title)!==null&&o!==void 0?o:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(t){this.addEventListener(ft.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(ft.eventName,t)}currentItem(){return(0,qe.deepCopy)(this.currentState)}back(){let t=this.previousDifferentMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,qe.deepCopy)(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let t=this.currentIndex>0?this.currentIndex-1:0;for(;t>0&&!this.isDifferentMajorState(t);)t--;return t}forward(){let t=this.nextMajorPosition();t&&t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){let t=this.nextMajorPosition();if(t)return(0,qe.deepCopy)(this.states[t])}nextMajorPosition(){let t=this.currentIndex;if(!(t>=this.states.length)){do t++;while(t<this.states.length&&!this.isDifferentMajorState(t));return this.getHigherPositionInTheSameState(t)}}getHigherPositionInTheSameState(t){var o;let n=(o=this.states[t])===null||o===void 0?void 0:o.majorStateId;if(!n)return t;let a=t,s=t+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,n);)this.hasState(s)&&(a=s),s++;return a}buildCurrentState(){var t,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&o!==void 0?o:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,o){var n;if(!this.hasState(t))return!1;let a=o??this.currentState.majorStateId,s=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return s==null||s!=a}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Hr.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});var us=R;function ps(e,t){var o;return us.getState().authenticationRequired&&!(!((o=us.getState().session)===null||o===void 0)&&o.sessionAuthenticated)?Promise.resolve(t):e()}var $=function(e,t,o,n){var a=arguments.length,s=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(s=(a<3?c(s):a>3?c(t,o,s):c(t,o))||s);return a>3&&s&&Object.defineProperty(t,o,s),s},B=class extends Ce.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",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=()=>pt.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new Ce.CacheRegistry,this.cleanSessionDebouncer=new Ce.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return fs.html`
|
|
290
290
|
<slot></slot>
|
|
291
|
-
`}connectedCallback(){super.connectedCallback(),R.addEventListener(ut.eventName,this.reloadConfiguration)}disconnectedCallback(){R.addEventListener(ut.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(t){var o,n,a,s,c,l,u;super.update(t),t.has("baseUrl")&&(R.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&R.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("apiIntegrationAppVersion")&&R.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),t.has("uiLocale")&&R.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&R.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&R.actions.noCustom(this.noCustom),t.has("editorMode")&&R.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&R.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&R.actions.session(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(p=>lr.addContext(p)),t.has("openExternalDocumentInNewTab")&&R.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&R.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&R.actions.forcedOffline(this.forcedOffline),t.has("localesConfiguration")&&(R.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),R.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),R.actions.searchInAllLanguagesAllowed((c=(s=this.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed)!==null&&c!==void 0?c:!1)),t.has("authenticationRequired")&&R.actions.authenticationRequired(this.authenticationRequired),t.has("availableContentLocales")&&R.actions.availableContentLocales((u=(l=this.availableContentLocales)===null||l===void 0?void 0:l.contentLocales)!==null&&u!==void 0?u:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},t.idleTimeoutInMillis),t})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>ps(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};B.elementDefinitions={};B.styles=Ai;$([(0,Q.property)()],B.prototype,"baseUrl",void 0);$([(0,Q.property)()],B.prototype,"apiIntegrationIdentifier",void 0);$([(0,Q.property)()],B.prototype,"apiIntegrationAppVersion",void 0);$([(0,Q.property)()],B.prototype,"uiLocale",void 0);$([(0,Ce.jsonProperty)(null)],B.prototype,"availableUiLocales",void 0);$([(0,Ce.jsonProperty)(null)],B.prototype,"metadataConfiguration",void 0);$([(0,Q.property)({type:Boolean})],B.prototype,"editorMode",void 0);$([(0,Q.property)({type:Boolean})],B.prototype,"noCustom",void 0);$([(0,Q.property)({type:Boolean})],B.prototype,"openExternalDocumentInNewTab",void 0);$([(0,Q.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],B.prototype,"noCustomComponent",void 0);$([(0,Q.property)({type:Boolean})],B.prototype,"withManualResources",void 0);$([(0,Q.property)({type:Boolean})],B.prototype,"navigatorOnline",void 0);$([(0,Q.property)({type:Boolean})],B.prototype,"forcedOffline",void 0);$([(0,Q.property)({type:Object})],B.prototype,"apiProvider",void 0);$([(0,Q.property)({type:Boolean})],B.prototype,"authenticationRequired",void 0);$([(0,Ce.jsonProperty)([])],B.prototype,"messageContexts",void 0);$([(0,Ce.jsonProperty)(void 0)],B.prototype,"session",void 0);$([(0,Q.state)()],B.prototype,"localesConfiguration",void 0);$([(0,Q.state)()],B.prototype,"availableContentLocales",void 0);var zn=C(re());function ml(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let o,n,a;if(Array.isArray(e)){if(o=e.length,o!=t.length)return!1;for(n=o;n--!==0;)if(!Fr(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!Fr(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let s=c=>Object.keys(c).filter(l=>c[l]!=null);if(a=s(e),o=a.length,o!==s(t).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[n]))return!1;for(n=o;n--!==0;){let c=a[n];if(!Fr(e[c],t[c]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function Fr(e,t){try{return ml(e,t)}catch{return!1}}function ur(e,t){return!Fr(e,t)}function zr(e,t){let o=n=>n[e]===!0;return n=>{if(o(n))return n;let a=t(n);return a[e]=!0,a}}var hs=C(re(),1);var bn=e=>{let t=e??{};return(o,n)=>{var a;let s={hasChanged:ur,attribute:!1,...t};(0,hs.property)(s)(o,n);let c=o.constructor;c.reduxProperties=new Map(c.reduxProperties),c.reduxProperties.set(n,{selector:(a=t.selector)!==null&&a!==void 0?a:l=>l[n],store:t.store})}};var Gr=class{constructor(){this.queue=[]}add(t,o=!1){o&&this.clear(t.type),this.queue.push(t)}consume(t){let o=this.queue.find(n=>n.type===t);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(t){typeof t=="string"?this.queue=this.queue.filter(o=>o.type!==t):this.queue=this.queue.filter(o=>!t.test(o.type))}};var ht=C(re(),1);var ys=C(re(),1);function ms(e,t){let o=()=>JSON.parse(JSON.stringify(e));return(0,ys.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:ur,...t??{}})}var $r=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,o;let n=[...this.callbacks];this.callbacks=[];let a=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,s=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let c of n)try{await c()}catch(l){a(l);return}s(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var bs=C(z(),1);var jr=globalThis,gl=jr.ShadowRoot&&(jr.ShadyCSS===void 0||jr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Wg=Symbol();var gs=(e,t)=>{if(gl)e.adoptedStyleSheets=t.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of t){let n=document.createElement("style"),a=jr.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,e.appendChild(n)}};var Kr=class extends bs.LitElement{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([a,s])=>t.registry.define(a,s)));let o={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return gs(n,t.elementStyles),n}};function xs(e,t,...o){var n;let a=e.querySelector(t);for(let s of o)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(s);return a}var $t=function(e,t,o,n){var a=arguments.length,s=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(s=(a<3?c(s):a>3?c(t,o,s):c(t,o))||s);return a>3&&s&&Object.defineProperty(t,o,s),s},Cs,vs=Symbol("constructorPrototype"),Ss=Symbol("constructorName"),Es=Symbol("exportpartsDebouncer"),Os=Symbol("dynamicDependenciesLoaded"),Gt=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};Gt.eventName="exportparts-updated";var Pe=class extends Kr{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Cs]=new $r(5),this.scheduleExportpartsUpdate=()=>{var t,o,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[Es].run(()=>{var a,s;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((s=this.exportpartsPrefixes)===null||s===void 0?void 0:s.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Ss]=this.constructor.name,this[vs]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ss]&&Object.setPrototypeOf(this,this[vs])}connectedCallback(){var t;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let o=this.constructor;o[Os]||(o[Os]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(Gt.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(Gt.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate(),t.has("exportparts")&&this.dispatchEvent(new Gt)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let s=[...a??[],n];o=xs(this.shadowRoot,...s)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){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(s=>s.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(s){console.error(s,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let s=document.createElement("style");s.classList.add("ft-lit-element--custom-stylesheet"),s.innerHTML=this.customStylesheet,this.shadowRoot.append(s)}}setExportpartsAttribute(t){var o,n,a,s,c,l;let u=m=>m!=null&&m.trim().length>0,p=t.filter(u).map(m=>m.trim());if(p.length===0){this.exportparts=void 0;return}let y=new Set;for(let m of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let x=(s=(a=m.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&s!==void 0?s:[],b=(l=(c=m.getAttribute("exportparts"))===null||c===void 0?void 0:c.split(",").map(A=>A.split(":")[1]))!==null&&l!==void 0?l:[],v=[...x,...b].filter(u).map(A=>A.trim());for(let A of v)y.add(A)}if(y.size===0){this.exportparts=void 0;return}let f=[...y.values()].flatMap(m=>p.map(x=>`${m}:${x}--${m}`));this.exportparts=[...this.part,...f].join(", ")}};Cs=Es;$t([(0,ht.property)()],Pe.prototype,"exportpartsPrefix",void 0);$t([ms([])],Pe.prototype,"exportpartsPrefixes",void 0);$t([(0,ht.property)({reflect:!0})],Pe.prototype,"exportparts",void 0);$t([(0,ht.property)()],Pe.prototype,"customStylesheet",void 0);$t([(0,ht.property)()],Pe.prototype,"elementToFocus",void 0);$t([(0,ht.state)()],Pe.prototype,"useAdoptedStyleSheets",void 0);function Vr(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var pr=Symbol("internalReduxEventsUnsubscribers"),Ye=Symbol("internalStoresUnsubscribers"),yt=Symbol("internalStores"),bl=zr(Symbol("withRedux"),function(e){var t,o,n;class a extends e{constructor(){super(...arguments),this[t]=new Map,this[o]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(c){super.willUpdate(c),[...this.reduxConstructor.reduxReactiveProperties].some(l=>c.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[yt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[yt].values()][0]}getStore(c){return c==null?this.getUnnamedStore():this[yt].get(c)}addStore(c,l){var u;l=(u=l??c.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(l),this[yt].set(l,c),this.subscribeToStore(l,c),this.updateFromStores()}removeStore(c){let l=typeof c=="string"?c:c.name;this.unsubscribeFromStore(l),this[yt].delete(l)}setupStores(){this.unsubscribeFromStores(),this[yt].forEach((c,l)=>this.subscribeToStore(l,c)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((c,l)=>{let u=this.constructor.getPropertyOptions(l);if(!u?.attribute||!this.hasAttribute(typeof u?.attribute=="string"?u.attribute:l)){let p=this.getStore(c.store);p&&(c.store?this[Ye].has(c.store):this[Ye].size>0)&&(this[l]=c.selector(p.getState(),this))}})}subscribeToStore(c,l){var u;this[Ye].set(c,l.subscribe(()=>this.updateFromStores())),this[pr].set(c,[]),Vr(l)&&l.eventBus&&((u=this.reduxConstructor.reduxEventListeners)===null||u===void 0||u.forEach((p,y)=>{if(typeof this[y]=="function"&&(!p.store||l.name===p.store)){let f=m=>this[y](m);l.addEventListener(p.eventName,f),this[pr].get(c).push(()=>l.removeEventListener(p.eventName,f))}})),this.onStoreAvailable(c)}unsubscribeFromStores(){this[Ye].forEach((c,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(c){var l;this[Ye].has(c)&&this[Ye].get(c)(),this[Ye].delete(c),(l=this[pr].get(c))===null||l===void 0||l.forEach(u=>u()),this[pr].delete(c)}onStoreAvailable(c){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=Ye,o=yt,n=pr,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),As=class extends bl(Pe){};function ge(e){for(var t=arguments.length,o=Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];if(0)var a,s;throw Error("[Immer] minified error nr: "+e+(o.length?" "+o.map(function(c){return"'"+c+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ge(e){return!!e&&!!e[M]}function Ee(e){var t;return!!e&&(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)===wl}(e)||Array.isArray(e)||!!e[Is]||!!(!((t=e.constructor)===null||t===void 0)&&t[Is])||Rn(e)||Tn(e))}function mt(e,t,o){o===void 0&&(o=!1),Vt(e)===0?(o?Object.keys:Kt)(e).forEach(function(n){o&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,a){return t(a,n,e)})}function Vt(e){var t=e[M];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Rn(e)?2:Tn(e)?3:0}function jt(e,t){return Vt(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function xl(e,t){return Vt(e)===2?e.get(t):e[t]}function Ps(e,t,o){var n=Vt(e);n===2?e.set(t,o):n===3?e.add(o):e[t]=o}function ks(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Rn(e){return El&&e instanceof Map}function Tn(e){return Al&&e instanceof Set}function Xe(e){return e.o||e.t}function Nn(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Ms(e);delete t[M];for(var o=Kt(t),n=0;n<o.length;n++){var a=o[n],s=t[a];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(t[a]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),t)}function Ln(e,t){return t===void 0&&(t=!1),_n(e)||Ge(e)||!Ee(e)||(Vt(e)>1&&(e.set=e.add=e.clear=e.delete=vl),Object.freeze(e),t&&mt(e,function(o,n){return Ln(n,!0)},!0)),e}function vl(){ge(2)}function _n(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function ke(e){var t=wn[e];return t||ge(18,e),t}function Sl(e,t){wn[e]||(wn[e]=t)}function Cn(){return hr}function xn(e,t){t&&(ke("Patches"),e.u=[],e.s=[],e.v=t)}function Zr(e){En(e),e.p.forEach(Ol),e.p=null}function En(e){e===hr&&(hr=e.l)}function ws(e){return hr={p:[],l:hr,h:e,m:!0,_:0}}function Ol(e){var t=e[M];t.i===0||t.i===1?t.j():t.g=!0}function vn(e,t){t._=t.p.length;var o=t.p[0],n=e!==void 0&&e!==o;return t.h.O||ke("ES5").S(t,e,n),n?(o[M].P&&(Zr(t),ge(4)),Ee(e)&&(e=qr(t,e),t.l||Yr(t,e)),t.u&&ke("Patches").M(o[M].t,e,t.u,t.s)):e=qr(t,o,[]),Zr(t),t.u&&t.v(t.u,t.s),e!==Bs?e:void 0}function qr(e,t,o){if(_n(t))return t;var n=t[M];if(!n)return mt(t,function(l,u){return Rs(e,n,t,l,u,o)},!0),t;if(n.A!==e)return t;if(!n.P)return Yr(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Nn(n.k):n.o,s=a,c=!1;n.i===3&&(s=new Set(a),a.clear(),c=!0),mt(s,function(l,u){return Rs(e,n,a,l,u,o,c)}),Yr(e,a,!1),o&&e.u&&ke("Patches").N(n,o,e.u,e.s)}return n.o}function Rs(e,t,o,n,a,s,c){if(Ge(a)){var l=qr(e,a,s&&t&&t.i!==3&&!jt(t.R,n)?s.concat(n):void 0);if(Ps(o,n,l),!Ge(l))return;e.m=!1}else c&&o.add(a);if(Ee(a)&&!_n(a)){if(!e.h.D&&e._<1)return;qr(e,a),t&&t.A.l||Yr(e,a)}}function Yr(e,t,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&Ln(t,o)}function Sn(e,t){var o=e[M];return(o?Xe(o):e)[t]}function Ts(e,t){if(t in e)for(var o=Object.getPrototypeOf(e);o;){var n=Object.getOwnPropertyDescriptor(o,t);if(n)return n;o=Object.getPrototypeOf(o)}}function Je(e){e.P||(e.P=!0,e.l&&Je(e.l))}function On(e){e.o||(e.o=Nn(e.t))}function An(e,t,o){var n=Rn(t)?ke("MapSet").F(t,o):Tn(t)?ke("MapSet").T(t,o):e.O?function(a,s){var c=Array.isArray(a),l={i:c?1:0,A:s?s.A:Cn(),P:!1,I:!1,R:{},l:s,t:a,k:null,o:null,j:null,C:!1},u=l,p=yr;c&&(u=[l],p=fr);var y=Proxy.revocable(u,p),f=y.revoke,m=y.proxy;return l.k=m,l.j=f,m}(t,o):ke("ES5").J(t,o);return(o?o.A:Cn()).p.push(n),n}function Cl(e){return Ge(e)||ge(22,e),function t(o){if(!Ee(o))return o;var n,a=o[M],s=Vt(o);if(a){if(!a.P&&(a.i<4||!ke("ES5").K(a)))return a.t;a.I=!0,n=Ns(o,s),a.I=!1}else n=Ns(o,s);return mt(n,function(c,l){a&&xl(a.t,c)===l||Ps(n,c,t(l))}),s===3?new Set(n):n}(e)}function Ns(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Nn(e)}function Ds(){function e(c,l){var u=s[c];return u?u.enumerable=l:s[c]=u={configurable:!0,enumerable:l,get:function(){var p=this[M];return yr.get(p,c)},set:function(p){var y=this[M];yr.set(y,c,p)}},u}function t(c){for(var l=c.length-1;l>=0;l--){var u=c[l][M];if(!u.P)switch(u.i){case 5:n(u)&&Je(u);break;case 4:o(u)&&Je(u)}}}function o(c){for(var l=c.t,u=c.k,p=Kt(u),y=p.length-1;y>=0;y--){var f=p[y];if(f!==M){var m=l[f];if(m===void 0&&!jt(l,f))return!0;var x=u[f],b=x&&x[M];if(b?b.t!==m:!ks(x,m))return!0}}var v=!!l[M];return p.length!==Kt(l).length+(v?0:1)}function n(c){var l=c.k;if(l.length!==c.t.length)return!0;var u=Object.getOwnPropertyDescriptor(l,l.length-1);if(u&&!u.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function a(c){c.g&&ge(3,JSON.stringify(Xe(c)))}var s={};Sl("ES5",{J:function(c,l){var u=Array.isArray(c),p=function(f,m){if(f){for(var x=Array(m.length),b=0;b<m.length;b++)Object.defineProperty(x,""+b,e(b,!0));return x}var v=Ms(m);delete v[M];for(var A=Kt(v),E=0;E<A.length;E++){var w=A[E];v[w]=e(w,f||!!v[w].enumerable)}return Object.create(Object.getPrototypeOf(m),v)}(u,c),y={i:u?5:4,A:l?l.A:Cn(),P:!1,I:!1,R:{},l,t:c,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,M,{value:y,writable:!0}),p},S:function(c,l,u){u?Ge(l)&&l[M].A===c&&t(c.p):(c.u&&function p(y){if(y&&typeof y=="object"){var f=y[M];if(f){var m=f.t,x=f.k,b=f.R,v=f.i;if(v===4)mt(x,function(_){_!==M&&(m[_]!==void 0||jt(m,_)?b[_]||p(x[_]):(b[_]=!0,Je(f)))}),mt(m,function(_){x[_]!==void 0||jt(x,_)||(b[_]=!1,Je(f))});else if(v===5){if(n(f)&&(Je(f),b.length=!0),x.length<m.length)for(var A=x.length;A<m.length;A++)b[A]=!1;else for(var E=m.length;E<x.length;E++)b[E]=!0;for(var w=Math.min(x.length,m.length),L=0;L<w;L++)x.hasOwnProperty(L)||(b[L]=!0),b[L]===void 0&&p(x[L])}}}}(c.p[0]),t(c.p))},K:function(c){return c.i===4?o(c):n(c)}})}var Ls,hr,In=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",El=typeof Map<"u",Al=typeof Set<"u",_s=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Bs=In?Symbol.for("immer-nothing"):((Ls={})["immer-nothing"]=!0,Ls),Is=In?Symbol.for("immer-draftable"):"__$immer_draftable",M=In?Symbol.for("immer-state"):"__$immer_state";var wl=""+Object.prototype.constructor,Kt=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Ms=Object.getOwnPropertyDescriptors||function(e){var t={};return Kt(e).forEach(function(o){t[o]=Object.getOwnPropertyDescriptor(e,o)}),t},wn={},yr={get:function(e,t){if(t===M)return e;var o=Xe(e);if(!jt(o,t))return function(a,s,c){var l,u=Ts(s,c);return u?"value"in u?u.value:(l=u.get)===null||l===void 0?void 0:l.call(a.k):void 0}(e,o,t);var n=o[t];return e.I||!Ee(n)?n:n===Sn(e.t,t)?(On(e),e.o[t]=An(e.A.h,n,e)):n},has:function(e,t){return t in Xe(e)},ownKeys:function(e){return Reflect.ownKeys(Xe(e))},set:function(e,t,o){var n=Ts(Xe(e),t);if(n?.set)return n.set.call(e.k,o),!0;if(!e.P){var a=Sn(Xe(e),t),s=a?.[M];if(s&&s.t===o)return e.o[t]=o,e.R[t]=!1,!0;if(ks(o,a)&&(o!==void 0||jt(e.t,t)))return!0;On(e),Je(e)}return e.o[t]===o&&(o!==void 0||t in e.o)||Number.isNaN(o)&&Number.isNaN(e.o[t])||(e.o[t]=o,e.R[t]=!0),!0},deleteProperty:function(e,t){return Sn(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,On(e),Je(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var o=Xe(e),n=Reflect.getOwnPropertyDescriptor(o,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:o[t]}},defineProperty:function(){ge(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){ge(12)}},fr={};mt(yr,function(e,t){fr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),fr.deleteProperty=function(e,t){return fr.set.call(this,e,t,void 0)},fr.set=function(e,t,o){return yr.set.call(this,e[0],t,o,e[0])};var Rl=function(){function e(o){var n=this;this.O=_s,this.D=!0,this.produce=function(a,s,c){if(typeof a=="function"&&typeof s!="function"){var l=s;s=a;var u=n;return function(v){var A=this;v===void 0&&(v=l);for(var E=arguments.length,w=Array(E>1?E-1:0),L=1;L<E;L++)w[L-1]=arguments[L];return u.produce(v,function(_){var I;return(I=s).call.apply(I,[A,_].concat(w))})}}var p;if(typeof s!="function"&&ge(6),c!==void 0&&typeof c!="function"&&ge(7),Ee(a)){var y=ws(n),f=An(n,a,void 0),m=!0;try{p=s(f),m=!1}finally{m?Zr(y):En(y)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(v){return xn(y,c),vn(v,y)},function(v){throw Zr(y),v}):(xn(y,c),vn(p,y))}if(!a||typeof a!="object"){if((p=s(a))===void 0&&(p=a),p===Bs&&(p=void 0),n.D&&Ln(p,!0),c){var x=[],b=[];ke("Patches").M(a,p,x,b),c(x,b)}return p}ge(21,a)},this.produceWithPatches=function(a,s){if(typeof a=="function")return function(p){for(var y=arguments.length,f=Array(y>1?y-1:0),m=1;m<y;m++)f[m-1]=arguments[m];return n.produceWithPatches(p,function(x){return a.apply(void 0,[x].concat(f))})};var c,l,u=n.produce(a,s,function(p,y){c=p,l=y});return typeof Promise<"u"&&u instanceof Promise?u.then(function(p){return[p,c,l]}):[u,c,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var t=e.prototype;return t.createDraft=function(o){Ee(o)||ge(8),Ge(o)&&(o=Cl(o));var n=ws(this),a=An(this,o,void 0);return a[M].C=!0,En(n),a},t.finishDraft=function(o,n){var a=o&&o[M],s=a.A;return xn(s,n),vn(void 0,s)},t.setAutoFreeze=function(o){this.D=o},t.setUseProxies=function(o){o&&!_s&&ge(20),this.O=o},t.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var s=n[a];if(s.path.length===0&&s.op==="replace"){o=s.value;break}}a>-1&&(n=n.slice(a+1));var c=ke("Patches").$;return Ge(o)?c(o,n):this.produce(o,function(l){return c(l,n)})},e}(),de=new Rl,Tl=de.produce,eb=de.produceWithPatches.bind(de),tb=de.setAutoFreeze.bind(de),rb=de.setUseProxies.bind(de),ob=de.applyPatches.bind(de),nb=de.createDraft.bind(de),ab=de.finishDraft.bind(de),Xr=Tl;function gt(e){"@babel/helpers - typeof";return gt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gt(e)}function Us(e,t){if(gt(e)!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var n=o.call(e,t||"default");if(gt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ws(e){var t=Us(e,"string");return gt(t)=="symbol"?t:t+""}function Hs(e,t,o){return(t=Ws(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function Fs(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,n)}return o}function Pn(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?Fs(Object(o),!0).forEach(function(n){Hs(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Fs(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function ee(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var zs=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),kn=function(){return Math.random().toString(36).substring(7).split("").join(".")},Jr={INIT:"@@redux/INIT"+kn(),REPLACE:"@@redux/REPLACE"+kn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+kn()}};function Nl(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Dn(e,t,o){var n;if(typeof t=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(ee(0));if(typeof t=="function"&&typeof o>"u"&&(o=t,t=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(ee(1));return o(Dn)(e,t)}if(typeof e!="function")throw new Error(ee(2));var a=e,s=t,c=[],l=c,u=!1;function p(){l===c&&(l=c.slice())}function y(){if(u)throw new Error(ee(3));return s}function f(v){if(typeof v!="function")throw new Error(ee(4));if(u)throw new Error(ee(5));var A=!0;return p(),l.push(v),function(){if(A){if(u)throw new Error(ee(6));A=!1,p();var w=l.indexOf(v);l.splice(w,1),c=null}}}function m(v){if(!Nl(v))throw new Error(ee(7));if(typeof v.type>"u")throw new Error(ee(8));if(u)throw new Error(ee(9));try{u=!0,s=a(s,v)}finally{u=!1}for(var A=c=l,E=0;E<A.length;E++){var w=A[E];w()}return v}function x(v){if(typeof v!="function")throw new Error(ee(10));a=v,m({type:Jr.REPLACE})}function b(){var v,A=f;return v={subscribe:function(w){if(typeof w!="object"||w===null)throw new Error(ee(11));function L(){w.next&&w.next(y())}L();var _=A(L);return{unsubscribe:_}}},v[zs]=function(){return this},v}return m({type:Jr.INIT}),n={dispatch:m,subscribe:f,getState:y,replaceReducer:x},n[zs]=b,n}function Ll(e){Object.keys(e).forEach(function(t){var o=e[t],n=o(void 0,{type:Jr.INIT});if(typeof n>"u")throw new Error(ee(12));if(typeof o(void 0,{type:Jr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ee(13))})}function Gs(e){for(var t=Object.keys(e),o={},n=0;n<t.length;n++){var a=t[n];typeof e[a]=="function"&&(o[a]=e[a])}var s=Object.keys(o),c,l;try{Ll(o)}catch(u){l=u}return function(p,y){if(p===void 0&&(p={}),l)throw l;if(0)var f;for(var m=!1,x={},b=0;b<s.length;b++){var v=s[b],A=o[v],E=p[v],w=A(E,y);if(typeof w>"u"){var L=y&&y.type;throw new Error(ee(14))}x[v]=w,m=m||w!==E}return m=m||s.length!==Object.keys(p).length,m?x:p}}function Zt(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function $s(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),s=function(){throw new Error(ee(15))},c={getState:a.getState,dispatch:function(){return s.apply(void 0,arguments)}},l=t.map(function(u){return u(c)});return s=Zt.apply(void 0,l)(a.dispatch),Pn(Pn({},a),{},{dispatch:s})}}}function js(e){var t=function(n){var a=n.dispatch,s=n.getState;return function(c){return function(l){return typeof l=="function"?l(a,s,e):c(l)}}};return t}var Ks=js();Ks.withExtraArgument=js;var Bn=Ks;var Xs=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(n[s]=a[s])},e(t,o)};return function(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(t,o);function n(){this.constructor=t}t.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),_l=function(e,t){var o={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,a,s,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(y){return u([p,y])}}function u(p){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(s=p[0]&2?a.return:p[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,p[1])).done)return s;switch(a=0,s&&(p=[p[0]&2,s.value]),p[0]){case 0:case 1:s=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(s=o.trys,!(s=s.length>0&&s[s.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!s||p[1]>s[0]&&p[1]<s[3])){o.label=p[1];break}if(p[0]===6&&o.label<s[1]){o.label=s[1],s=p;break}if(s&&o.label<s[2]){o.label=s[2],o.ops.push(p);break}s[2]&&o.ops.pop(),o.trys.pop();continue}p=t.call(e,o)}catch(y){p=[6,y],a=0}finally{n=s=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},qt=function(e,t){for(var o=0,n=t.length,a=e.length;o<n;o++,a++)e[a]=t[o];return e},Il=Object.defineProperty,Pl=Object.defineProperties,kl=Object.getOwnPropertyDescriptors,Vs=Object.getOwnPropertySymbols,Dl=Object.prototype.hasOwnProperty,Bl=Object.prototype.propertyIsEnumerable,Zs=function(e,t,o){return t in e?Il(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o},Qe=function(e,t){for(var o in t||(t={}))Dl.call(t,o)&&Zs(e,o,t[o]);if(Vs)for(var n=0,a=Vs(t);n<a.length;n++){var o=a[n];Bl.call(t,o)&&Zs(e,o,t[o])}return e},Mn=function(e,t){return Pl(e,kl(t))},Ml=function(e,t,o){return new Promise(function(n,a){var s=function(u){try{l(o.next(u))}catch(p){a(p)}},c=function(u){try{l(o.throw(u))}catch(p){a(p)}},l=function(u){return u.done?n(u.value):Promise.resolve(u.value).then(s,c)};l((o=o.apply(e,t)).next())})};var Ul=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Zt:Zt.apply(null,arguments)},Cb=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Wl(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var o=t;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return t===o}var Hl=function(e){Xs(t,e);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,t.prototype),a}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},t.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(t.bind.apply(t,qt([void 0],o[0].concat(this)))):new(t.bind.apply(t,qt([void 0],o.concat(this))))},t}(Array),Fl=function(e){Xs(t,e);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,t.prototype),a}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},t.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(t.bind.apply(t,qt([void 0],o[0].concat(this)))):new(t.bind.apply(t,qt([void 0],o.concat(this))))},t}(Array);function Hn(e){return Ee(e)?Xr(e,function(){}):e}function zl(e){return typeof e=="boolean"}function Gl(){return function(t){return $l(t)}}function $l(e){e===void 0&&(e={});var t=e.thunk,o=t===void 0?!0:t,n=e.immutableCheck,a=n===void 0?!0:n,s=e.serializableCheck,c=s===void 0?!0:s,l=new Hl;if(o&&(zl(o)?l.push(Bn):l.push(Bn.withExtraArgument(o.extraArgument))),0){if(a)var u;if(c)var p}return l}var Un=!0;function Js(e){var t=Gl(),o=e||{},n=o.reducer,a=n===void 0?void 0:n,s=o.middleware,c=s===void 0?t():s,l=o.devTools,u=l===void 0?!0:l,p=o.preloadedState,y=p===void 0?void 0:p,f=o.enhancers,m=f===void 0?void 0:f,x;if(typeof a=="function")x=a;else if(Wl(a))x=Gs(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 b=c;if(typeof b=="function"&&(b=b(t),!Un&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Un&&b.some(function(_){return typeof _!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=$s.apply(void 0,b),A=Zt;u&&(A=Ul(Qe({trace:!Un},typeof u=="object"&&u)));var E=new Fl(v),w=E;Array.isArray(m)?w=qt([v],m):typeof m=="function"&&(w=m(E));var L=A.apply(void 0,w);return Dn(x,y,L)}function et(e,t){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(t){var s=t.apply(void 0,n);if(!s)throw new Error("prepareAction did not return an object");return Qe(Qe({type:e,payload:s.payload},"meta"in s&&{meta:s.meta}),"error"in s&&{error:s.error})}return{type:e,payload:n[0]}}return o.toString=function(){return""+e},o.type=e,o.match=function(n){return n.type===e},o}function Qs(e){var t={},o=[],n,a={addCase:function(s,c){var l=typeof s=="string"?s:s.type;if(l in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[l]=c,a},addMatcher:function(s,c){return o.push({matcher:s,reducer:c}),a},addDefaultCase:function(s){return n=s,a}};return e(a),[t,o,n]}function jl(e){return typeof e=="function"}function Kl(e,t,o,n){o===void 0&&(o=[]);var a=typeof t=="function"?Qs(t):[t,o,n],s=a[0],c=a[1],l=a[2],u;if(jl(e))u=function(){return Hn(e())};else{var p=Hn(e);u=function(){return p}}function y(f,m){f===void 0&&(f=u());var x=qt([s[m.type]],c.filter(function(b){var v=b.matcher;return v(m)}).map(function(b){var v=b.reducer;return v}));return x.filter(function(b){return!!b}).length===0&&(x=[l]),x.reduce(function(b,v){if(v)if(Ge(b)){var A=b,E=v(A,m);return E===void 0?b:E}else{if(Ee(b))return Xr(b,function(w){return v(w,m)});var E=v(b,m);if(E===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return E}return b},f)}return y.getInitialState=u,y}function Vl(e,t){return e+"/"+t}function ec(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof e.initialState=="function"?e.initialState:Hn(e.initialState),n=e.reducers||{},a=Object.keys(n),s={},c={},l={};a.forEach(function(y){var f=n[y],m=Vl(t,y),x,b;"reducer"in f?(x=f.reducer,b=f.prepare):x=f,s[y]=x,c[m]=x,l[y]=b?et(m,b):et(m)});function u(){var y=typeof e.extraReducers=="function"?Qs(e.extraReducers):[e.extraReducers],f=y[0],m=f===void 0?{}:f,x=y[1],b=x===void 0?[]:x,v=y[2],A=v===void 0?void 0:v,E=Qe(Qe({},m),c);return Kl(o,function(w){for(var L in E)w.addCase(L,E[L]);for(var _=0,I=b;_<I.length;_++){var ne=I[_];w.addMatcher(ne.matcher,ne.reducer)}A&&w.addDefaultCase(A)})}var p;return{name:t,reducer:function(y,f){return p||(p=u()),p(y,f)},actions:l,caseReducers:s,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}var Zl="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",ql=function(e){e===void 0&&(e=21);for(var t="",o=e;o--;)t+=Zl[Math.random()*64|0];return t},Yl=["name","message","stack","code"],Wn=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),qs=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),Xl=function(e){if(typeof e=="object"&&e!==null){for(var t={},o=0,n=Yl;o<n.length;o++){var a=n[o];typeof e[a]=="string"&&(t[a]=e[a])}return t}return{message:String(e)}},Rb=function(){function e(t,o,n){var a=et(t+"/fulfilled",function(y,f,m,x){return{payload:y,meta:Mn(Qe({},x||{}),{arg:m,requestId:f,requestStatus:"fulfilled"})}}),s=et(t+"/pending",function(y,f,m){return{payload:void 0,meta:Mn(Qe({},m||{}),{arg:f,requestId:y,requestStatus:"pending"})}}),c=et(t+"/rejected",function(y,f,m,x,b){return{payload:x,error:(n&&n.serializeError||Xl)(y||"Rejected"),meta:Mn(Qe({},b||{}),{arg:m,requestId:f,rejectedWithValue:!!x,requestStatus:"rejected",aborted:y?.name==="AbortError",condition:y?.name==="ConditionError"})}}),l=!1,u=typeof AbortController<"u"?AbortController:function(){function y(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return y.prototype.abort=function(){},y}();function p(y){return function(f,m,x){var b=n?.idGenerator?n.idGenerator(y):ql(),v=new u,A,E=!1;function w(_){A=_,v.abort()}var L=function(){return Ml(this,null,function(){var _,I,ne,Le,te,_e,Y;return _l(this,function(h){switch(h.label){case 0:return h.trys.push([0,4,,5]),Le=(_=n?.condition)==null?void 0:_.call(n,y,{getState:m,extra:x}),Ql(Le)?[4,Le]:[3,2];case 1:Le=h.sent(),h.label=2;case 2:if(Le===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return E=!0,te=new Promise(function(g,N){return v.signal.addEventListener("abort",function(){return N({name:"AbortError",message:A||"Aborted"})})}),f(s(b,y,(I=n?.getPendingMeta)==null?void 0:I.call(n,{requestId:b,arg:y},{getState:m,extra:x}))),[4,Promise.race([te,Promise.resolve(o(y,{dispatch:f,getState:m,extra:x,requestId:b,signal:v.signal,abort:w,rejectWithValue:function(g,N){return new Wn(g,N)},fulfillWithValue:function(g,N){return new qs(g,N)}})).then(function(g){if(g instanceof Wn)throw g;return g instanceof qs?a(g.payload,b,y,g.meta):a(g,b,y)})])];case 3:return ne=h.sent(),[3,5];case 4:return _e=h.sent(),ne=_e instanceof Wn?c(null,b,y,_e.payload,_e.meta):c(_e,b,y),[3,5];case 5:return Y=n&&!n.dispatchConditionRejection&&c.match(ne)&&ne.meta.condition,Y||f(ne),[2,ne]}})})}();return Object.assign(L,{abort:w,requestId:b,arg:y,unwrap:function(){return L.then(Jl)}})}}return Object.assign(p,{pending:s,rejected:c,fulfilled:a,typePrefix:t})}return e.withTypes=function(){return e},e}();function Jl(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Ql(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var tc="listener",rc="completed",oc="cancelled",Tb="task-"+oc,Nb="task-"+rc,Lb=tc+"-"+oc,_b=tc+"-"+rc;var Fn="listenerMiddleware";var Ib=et(Fn+"/add"),Pb=et(Fn+"/removeAll"),kb=et(Fn+"/remove");var Ys,Db=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(Ys||(Ys=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},ed=function(e){return function(t){setTimeout(t,e)}},Bb=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:ed(10);Ds();var td=zr(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??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)}}}),Qr=class extends td(Object){};window.ftReduxStores||(window.ftReduxStores={});var nc=class e extends Qr{static get(t){var o;let n=typeof t=="string"?t:t.name,a=typeof t=="string"?void 0:t,s=window.ftReduxStores[n];if(Vr(s))return s;if(a==null)return;let c=ec({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=Js({reducer:(u,p)=>p.type==="CLEAR_FT_REDUX_STORE"?c.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...u,...p.overwrites}:c.reducer(u,p)});return window.ftReduxStores[a.name]=new e(c,l,a.eventBus)}constructor(t,o,n){super(),this.reduxSlice=t,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new Gr;let a=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,c,l)=>{let u=c,p=s[u];return p?(...y)=>{let f=p(...y.map(a));return this.reduxStore.dispatch(f),f}:y=>{this.setState({[u]:a(y)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}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(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var eo=class{static format(t,o,n,a){return window.moment?window.moment(t).locale(o).format(this.getMomentDateFormat(n,a)):this.getIntlDateTime(t,o,n,a)}static getMomentDateFormat(t,o){return t?o?"lll":"ll":o?"L LT":"L"}static getIntlDateTime(t,o,n,a){let s=typeof t=="string"?new Date(t):t,c=new Intl.DateTimeFormat(o,{dateStyle:n?"medium":"short"}).format(s);if(!a)return c;let l=new Intl.DateTimeFormat(o,{timeStyle:"short"}).format(s);return`${c} ${l}`}static getTimezoneAsString(){let t=n=>String(Math.floor(n)).padStart(2,"0"),o=new Date().getTimezoneOffset();return`${o<0?"+":"-"}${t(Math.abs(o)/60)}:${t(Math.abs(o)%60)}`}};var ac=C(k()),to=function(e,t,o,n){var a=arguments.length,s=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(s=(a<3?c(s):a>3?c(t,o,s):c(t,o))||s);return a>3&&s&&Object.defineProperty(t,o,s),s},ix=(0,ac.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(R)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var a,s;return((s=(a=this.metadataDescriptors.find(l=>l.key===n))===null||a===void 0?void 0:a.date)!==null&&s!==void 0?s:!1)?l=>eo.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return to([(0,zn.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),to([(0,zn.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),to([bn({store:R.name,selector:o=>{var n,a;return(a=(n=o.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&a!==void 0?a:[]}})],t.prototype,"metadataDescriptors",void 0),to([bn({store:R.name})],t.prototype,"uiLocale",void 0),t});var no=C(k());var ro=class extends le{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(t){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${t}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(t){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${t}`),this.CACHE_DURATION)}isAuthenticated(){let t=R.getState().session;return!!t?.sessionAuthenticated}};var oo=class extends le{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let t=R.getState().session;return!!t?.sessionAuthenticated}};var rd="ft-user-assets",od={setAssetCount:(e,t)=>{let{userAssetType:o,count:n}=t.payload.assetCount;e.assetCounts.allAsset[o]=n},clearAssetCount:e=>{Object.values(me).forEach(t=>{e.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(e,t)=>{let o=t.payload.mapId;e.assetCounts.bookmarkByMap[o]=t.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}},addAsset:(e,t)=>{let{assetType:o,mapId:n,asset:a}=t.payload;$n(e,o,[...Gn(e,o),a]),ic(e,o,1,n),sc(e,a)},editAsset:(e,t)=>{let{assetType:o,asset:n}=t.payload;$n(e,o,Gn(e,o).map(a=>a.id===n.id?n:a)),sc(e,n)},removeAsset:(e,t)=>{let{assetType:o,mapId:n,assetId:a}=t.payload;$n(e,o,Gn(e,o).filter(s=>s.id!==a)),ic(e,o,-1,n)}},cc={[me.SEARCHES]:"savedSearches",[me.BOOKMARKS]:"bookmarks",[me.BOOKS]:void 0,[me.COLLECTIONS]:void 0},Gn=(e,t)=>{var o;let n=cc[t];return n?(o=e[n])!==null&&o!==void 0?o:[]:[]},$n=(e,t,o)=>{let n=cc[t];n&&(e[n]=o)},ic=(e,t,o,n)=>{let a=e.assetCounts.allAsset[t];if(a!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,a+o),t===me.BOOKMARKS&&n)){let s=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,s+o)}},sc=(e,t)=>{let o=e.assetLabels.map(a=>a.title),n=t.labels.filter(a=>!o.includes(a)).map(a=>({title:a}));e.assetLabels.push(...n)},ue=no.FtReduxStore.get({name:rd,reducers:od,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(me).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),jn=class{constructor(t=new ro,o=new oo){this.assetCountsService=t,this.assetLabelsService=o,this.currentSession=R.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Dr,this.savedSearchesService=new Wr,R.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:o}=R.getState();(0,no.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),ue.actions.clearAssetCount(),ue.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ue.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ue.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();ue.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();ue.actions.assetLabels(t)}async loadAssetCount(t){let o=await this.assetCountsService.getUserAssetCount(t);o&&ue.actions.setAssetCount({assetCount:o})}async loadBookmarkByMapId(t){let o=await this.assetCountsService.getUserBookmarkCountByMap(t);o&&ue.actions.setBookmarkCountByMap({count:o.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let o=Object.keys(ue.getState().assetCounts.bookmarkByMap).length!==0;t===me.BOOKMARKS&&o&&ue.actions.clearBookmarkCountByMap(),ue.getState().assetCounts.allAsset[t]!==void 0&&await this.loadAssetCount(t)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let o=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;ue.actions.bookmarks(o)}}},nd=new jn;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=nd);(0,lc.customElement)("ft-app-context")(B);var dc=C(re());var Kn=class{fromLocalizableLabel(t){return t.type=="PLAIN_TEXT"?{message:t.text}:{key:t.key,custom:t.type=="LOCALIZED_CUSTOM",context:t.context,message:t.key}}fromAttribute(t){if(t!=null)try{return JSON.parse(t)}catch{if(this.isI18nKey(t)){let[n,a]=t.split(".");return{context:n,key:a,custom:!0,message:""}}return{message:t}}}toAttribute(t){if(t!=null)return JSON.stringify(t)}isI18nKey(t){return t.match(/^[\w-]+\.[\w-]+$/)}},Yt=new Kn;var ad=function(e,t,o,n){var a=arguments.length,s=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(s=(a<3?c(s):a>3?c(t,o,s):c(t,o))||s);return a>3&&s&&Object.defineProperty(t,o,s),s},gr=Symbol("i18nAttributes"),uc=Symbol("i18nListAttributes"),pc=Symbol("i18nProperties"),ao=Symbol("i18nContexts"),mr=Symbol("i18nUnsubs"),fc=(0,Xt.applyMixinOnce)(Symbol("withI18n"),function(e){var t,o;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[o]=new Map}getI18nService(s){return s??this.useCustomMessageContexts?fn:lr}i18n(s){let{context:c,key:l,message:u}=s,{custom:p,args:y,argsProvider:f}=s;if(c&&l){this.hasI18nContext(c)||this.addI18nContext(c,void 0,p);let m=y??(f?f(this):[]);return this.getI18nService(p).resolveMessage(c,l,...m)}return u}async awaitI18n(s){let{context:c,custom:l}=s;return c&&await this.getI18nService(l).prepareContext(c),this.i18n(s)}customI18n(s,c){if(Yt.isI18nKey(s)){let[l,u]=s.split(".");return this.i18n({custom:!0,context:l,key:u,...c})||s}return s}firstUpdated(s){super.firstUpdated(s),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(s){super.update(s),this.updateI18nAttributes((c,l,u)=>s.has(l)||typeof c.argsProvider=="function"),this.updateI18nProperties(c=>typeof c.argsProvider=="function")}onI18nUpdate(s){this.updateI18nAttributes((c,l,u)=>{var p;return((p=u?.context)===null||p===void 0?void 0:p.toLowerCase())===s}),this.updateI18nProperties(c=>c.context.toLowerCase()===s),this.requestUpdate()}updateI18nAttributes(s){var c,l;let u=this,p=(y,f,m)=>m?.context&&m.key&&s(y,f,m)?{...m,message:this.i18n({context:m.context,key:m.key,custom:m.custom,...y})}:m;(c=this[gr])===null||c===void 0||c.forEach((y,f)=>u[f]=p(y,f,u[f])),(l=this[uc])===null||l===void 0||l.forEach((y,f)=>{var m;return u[f]=(m=u[f])===null||m===void 0?void 0:m.map(x=>p(y,f,x))})}updateI18nProperties(s){var c;(c=this[pc])===null||c===void 0||c.forEach((l,u)=>{s(l,u)&&(this[u]=this.i18n(l))})}addI18nMessages(s,c,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(s,c,l)}addI18nContext(s,c,l){let u=(typeof s=="string"?s:s.name).toLowerCase();l=typeof s=="string"?l:s.custom,this[ao].set(u,{isCustomContext:l}),this[mr].has(u)||this[mr].set(u,this.getI18nService(l).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(l).prepareContext(u,c)}hasI18nContext(s){return this[ao].has(s.toLowerCase())}connectedCallback(){super.connectedCallback(),this[ao].forEach((s,c)=>this.addI18nContext(c,void 0,s.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[mr].forEach(s=>s()),this[mr].clear()}}return t=ao,o=mr,ad([(0,dc.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),io=class extends fc(Xt.FtLitElement){},so=class extends fc(Xt.FtLitElementRedux){};var hc=C(k());var Vn=class{fromAttribute(t){if(!t)return[];try{let o=JSON.parse(t);return Array.isArray(o)?o.map(n=>typeof n=="string"?Yt.fromAttribute(n):n):[]}catch{return[]}}toAttribute(t){if(t!=null)return JSON.stringify(t)}},id=new Vn;var yc=(e,t)=>(o,n)=>{var a;o.constructor.createProperty(n,{type:Object,hasChanged:hc.hasChanged,converter:Yt,...t}),o[gr]=(a=o[gr])!==null&&a!==void 0?a:new Map,o[gr].set(n,e??{})};var bc=C(k());var co=C(z()),lo=C(re()),uo=C(k());var mc=C(z());var gc=mc.css`
|
|
291
|
+
`}connectedCallback(){super.connectedCallback(),R.addEventListener(ut.eventName,this.reloadConfiguration)}disconnectedCallback(){R.addEventListener(ut.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(t){var o,n,a,s,c,l,u;super.update(t),t.has("baseUrl")&&(R.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&R.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("apiIntegrationAppVersion")&&R.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),t.has("uiLocale")&&R.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&R.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&R.actions.noCustom(this.noCustom),t.has("editorMode")&&R.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&R.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&R.actions.session(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(p=>lr.addContext(p)),t.has("openExternalDocumentInNewTab")&&R.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&R.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&R.actions.forcedOffline(this.forcedOffline),t.has("localesConfiguration")&&(R.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),R.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),R.actions.searchInAllLanguagesAllowed((c=(s=this.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed)!==null&&c!==void 0?c:!1)),t.has("authenticationRequired")&&R.actions.authenticationRequired(this.authenticationRequired),t.has("availableContentLocales")&&R.actions.availableContentLocales((u=(l=this.availableContentLocales)===null||l===void 0?void 0:l.contentLocales)!==null&&u!==void 0?u:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},t.idleTimeoutInMillis),t})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>ps(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};B.elementDefinitions={};B.styles=Ai;$([(0,Q.property)()],B.prototype,"baseUrl",void 0);$([(0,Q.property)()],B.prototype,"apiIntegrationIdentifier",void 0);$([(0,Q.property)()],B.prototype,"apiIntegrationAppVersion",void 0);$([(0,Q.property)()],B.prototype,"uiLocale",void 0);$([(0,Ce.jsonProperty)(null)],B.prototype,"availableUiLocales",void 0);$([(0,Ce.jsonProperty)(null)],B.prototype,"metadataConfiguration",void 0);$([(0,Q.property)({type:Boolean})],B.prototype,"editorMode",void 0);$([(0,Q.property)({type:Boolean})],B.prototype,"noCustom",void 0);$([(0,Q.property)({type:Boolean})],B.prototype,"openExternalDocumentInNewTab",void 0);$([(0,Q.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],B.prototype,"noCustomComponent",void 0);$([(0,Q.property)({type:Boolean})],B.prototype,"withManualResources",void 0);$([(0,Q.property)({type:Boolean})],B.prototype,"navigatorOnline",void 0);$([(0,Q.property)({type:Boolean})],B.prototype,"forcedOffline",void 0);$([(0,Q.property)({type:Object})],B.prototype,"apiProvider",void 0);$([(0,Q.property)({type:Boolean})],B.prototype,"authenticationRequired",void 0);$([(0,Ce.jsonProperty)([])],B.prototype,"messageContexts",void 0);$([(0,Ce.jsonProperty)(void 0)],B.prototype,"session",void 0);$([(0,Q.state)()],B.prototype,"localesConfiguration",void 0);$([(0,Q.state)()],B.prototype,"availableContentLocales",void 0);var zn=C(re());function ml(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let o,n,a;if(Array.isArray(e)){if(o=e.length,o!=t.length)return!1;for(n=o;n--!==0;)if(!Fr(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!Fr(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let s=c=>Object.keys(c).filter(l=>c[l]!=null);if(a=s(e),o=a.length,o!==s(t).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[n]))return!1;for(n=o;n--!==0;){let c=a[n];if(!Fr(e[c],t[c]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function Fr(e,t){try{return ml(e,t)}catch{return!1}}function ur(e,t){return!Fr(e,t)}function zr(e,t){let o=n=>n[e]===!0;return n=>{if(o(n))return n;let a=t(n);return a[e]=!0,a}}var hs=C(re(),1);var bn=e=>{let t=e??{};return(o,n)=>{var a;let s={hasChanged:ur,attribute:!1,...t};(0,hs.property)(s)(o,n);let c=o.constructor;c.reduxProperties=new Map(c.reduxProperties),c.reduxProperties.set(n,{selector:(a=t.selector)!==null&&a!==void 0?a:l=>l[n],store:t.store})}};var Gr=class{constructor(){this.queue=[]}add(t,o=!1){o&&this.clear(t.type),this.queue.push(t)}consume(t){let o=this.queue.find(n=>n.type===t);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(t){typeof t=="string"?this.queue=this.queue.filter(o=>o.type!==t):this.queue=this.queue.filter(o=>!t.test(o.type))}};var ht=C(re(),1);var ys=C(re(),1);function ms(e,t){let o=()=>JSON.parse(JSON.stringify(e));return(0,ys.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:ur,...t??{}})}var $r=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,o;let n=[...this.callbacks];this.callbacks=[];let a=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,s=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let c of n)try{await c()}catch(l){a(l);return}s(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var bs=C(z(),1);var jr=globalThis,gl=jr.ShadowRoot&&(jr.ShadyCSS===void 0||jr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Wg=Symbol();var gs=(e,t)=>{if(gl)e.adoptedStyleSheets=t.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of t){let n=document.createElement("style"),a=jr.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,e.appendChild(n)}};var Kr=class extends bs.LitElement{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([a,s])=>t.registry.define(a,s)));let o={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return gs(n,t.elementStyles),n}};function xs(e,t,...o){var n;let a=e.querySelector(t);for(let s of o)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(s);return a}var $t=function(e,t,o,n){var a=arguments.length,s=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(s=(a<3?c(s):a>3?c(t,o,s):c(t,o))||s);return a>3&&s&&Object.defineProperty(t,o,s),s},Cs,vs=Symbol("constructorPrototype"),Ss=Symbol("constructorName"),Es=Symbol("exportpartsDebouncer"),Os=Symbol("dynamicDependenciesLoaded"),Gt=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};Gt.eventName="exportparts-updated";var Pe=class extends Kr{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Cs]=new $r(5),this.scheduleExportpartsUpdate=()=>{var t,o,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[Es].run(()=>{var a,s;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((s=this.exportpartsPrefixes)===null||s===void 0?void 0:s.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Ss]=this.constructor.name,this[vs]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ss]&&Object.setPrototypeOf(this,this[vs])}connectedCallback(){var t;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let o=this.constructor;o[Os]||(o[Os]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(Gt.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(Gt.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate(),t.has("exportparts")&&this.dispatchEvent(new Gt)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let s=[...a??[],n];o=xs(this.shadowRoot,...s)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){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(s=>s.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(s){console.error(s,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let s=document.createElement("style");s.classList.add("ft-lit-element--custom-stylesheet"),s.innerHTML=this.customStylesheet,this.shadowRoot.append(s)}}setExportpartsAttribute(t){var o,n,a,s,c,l;let u=m=>m!=null&&m.trim().length>0,p=t.filter(u).map(m=>m.trim());if(p.length===0){this.exportparts=void 0;return}let y=new Set;for(let m of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let x=(s=(a=m.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&s!==void 0?s:[],b=(l=(c=m.getAttribute("exportparts"))===null||c===void 0?void 0:c.split(",").map(A=>A.split(":")[1]))!==null&&l!==void 0?l:[],v=[...x,...b].filter(u).map(A=>A.trim());for(let A of v)y.add(A)}if(y.size===0){this.exportparts=void 0;return}let f=[...y.values()].flatMap(m=>p.map(x=>`${m}:${x}--${m}`));this.exportparts=[...this.part,...f].join(", ")}};Cs=Es;$t([(0,ht.property)()],Pe.prototype,"exportpartsPrefix",void 0);$t([ms([])],Pe.prototype,"exportpartsPrefixes",void 0);$t([(0,ht.property)({reflect:!0})],Pe.prototype,"exportparts",void 0);$t([(0,ht.property)()],Pe.prototype,"customStylesheet",void 0);$t([(0,ht.property)()],Pe.prototype,"elementToFocus",void 0);$t([(0,ht.state)()],Pe.prototype,"useAdoptedStyleSheets",void 0);function Vr(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var pr=Symbol("internalReduxEventsUnsubscribers"),Ye=Symbol("internalStoresUnsubscribers"),yt=Symbol("internalStores"),bl=zr(Symbol("withRedux"),function(e){var t,o,n;class a extends e{constructor(){super(...arguments),this[t]=new Map,this[o]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(c){super.willUpdate(c),[...this.reduxConstructor.reduxReactiveProperties].some(l=>c.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[yt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[yt].values()][0]}getStore(c){return c==null?this.getUnnamedStore():this[yt].get(c)}addStore(c,l){var u;l=(u=l??c.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(l),this[yt].set(l,c),this.subscribeToStore(l,c),this.updateFromStores()}removeStore(c){let l=typeof c=="string"?c:c.name;this.unsubscribeFromStore(l),this[yt].delete(l)}setupStores(){this.unsubscribeFromStores(),this[yt].forEach((c,l)=>this.subscribeToStore(l,c)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((c,l)=>{let u=this.constructor.getPropertyOptions(l);if(!u?.attribute||!this.hasAttribute(typeof u?.attribute=="string"?u.attribute:l)){let p=this.getStore(c.store);p&&(c.store?this[Ye].has(c.store):this[Ye].size>0)&&(this[l]=c.selector(p.getState(),this))}})}subscribeToStore(c,l){var u;this[Ye].set(c,l.subscribe(()=>this.updateFromStores())),this[pr].set(c,[]),Vr(l)&&l.eventBus&&((u=this.reduxConstructor.reduxEventListeners)===null||u===void 0||u.forEach((p,y)=>{if(typeof this[y]=="function"&&(!p.store||l.name===p.store)){let f=m=>this[y](m);l.addEventListener(p.eventName,f),this[pr].get(c).push(()=>l.removeEventListener(p.eventName,f))}})),this.onStoreAvailable(c)}unsubscribeFromStores(){this[Ye].forEach((c,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(c){var l;this[Ye].has(c)&&this[Ye].get(c)(),this[Ye].delete(c),(l=this[pr].get(c))===null||l===void 0||l.forEach(u=>u()),this[pr].delete(c)}onStoreAvailable(c){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=Ye,o=yt,n=pr,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),As=class extends bl(Pe){};function ge(e){for(var t=arguments.length,o=Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];if(0)var a,s;throw Error("[Immer] minified error nr: "+e+(o.length?" "+o.map(function(c){return"'"+c+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ge(e){return!!e&&!!e[M]}function Ee(e){var t;return!!e&&(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)===wl}(e)||Array.isArray(e)||!!e[Is]||!!(!((t=e.constructor)===null||t===void 0)&&t[Is])||Rn(e)||Tn(e))}function mt(e,t,o){o===void 0&&(o=!1),Vt(e)===0?(o?Object.keys:Kt)(e).forEach(function(n){o&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,a){return t(a,n,e)})}function Vt(e){var t=e[M];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Rn(e)?2:Tn(e)?3:0}function jt(e,t){return Vt(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function xl(e,t){return Vt(e)===2?e.get(t):e[t]}function Ps(e,t,o){var n=Vt(e);n===2?e.set(t,o):n===3?e.add(o):e[t]=o}function ks(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Rn(e){return El&&e instanceof Map}function Tn(e){return Al&&e instanceof Set}function Xe(e){return e.o||e.t}function Nn(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Ms(e);delete t[M];for(var o=Kt(t),n=0;n<o.length;n++){var a=o[n],s=t[a];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(t[a]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),t)}function Ln(e,t){return t===void 0&&(t=!1),_n(e)||Ge(e)||!Ee(e)||(Vt(e)>1&&(e.set=e.add=e.clear=e.delete=vl),Object.freeze(e),t&&mt(e,function(o,n){return Ln(n,!0)},!0)),e}function vl(){ge(2)}function _n(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function ke(e){var t=wn[e];return t||ge(18,e),t}function Sl(e,t){wn[e]||(wn[e]=t)}function Cn(){return hr}function xn(e,t){t&&(ke("Patches"),e.u=[],e.s=[],e.v=t)}function Zr(e){En(e),e.p.forEach(Ol),e.p=null}function En(e){e===hr&&(hr=e.l)}function ws(e){return hr={p:[],l:hr,h:e,m:!0,_:0}}function Ol(e){var t=e[M];t.i===0||t.i===1?t.j():t.g=!0}function vn(e,t){t._=t.p.length;var o=t.p[0],n=e!==void 0&&e!==o;return t.h.O||ke("ES5").S(t,e,n),n?(o[M].P&&(Zr(t),ge(4)),Ee(e)&&(e=qr(t,e),t.l||Yr(t,e)),t.u&&ke("Patches").M(o[M].t,e,t.u,t.s)):e=qr(t,o,[]),Zr(t),t.u&&t.v(t.u,t.s),e!==Bs?e:void 0}function qr(e,t,o){if(_n(t))return t;var n=t[M];if(!n)return mt(t,function(l,u){return Rs(e,n,t,l,u,o)},!0),t;if(n.A!==e)return t;if(!n.P)return Yr(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Nn(n.k):n.o,s=a,c=!1;n.i===3&&(s=new Set(a),a.clear(),c=!0),mt(s,function(l,u){return Rs(e,n,a,l,u,o,c)}),Yr(e,a,!1),o&&e.u&&ke("Patches").N(n,o,e.u,e.s)}return n.o}function Rs(e,t,o,n,a,s,c){if(Ge(a)){var l=qr(e,a,s&&t&&t.i!==3&&!jt(t.R,n)?s.concat(n):void 0);if(Ps(o,n,l),!Ge(l))return;e.m=!1}else c&&o.add(a);if(Ee(a)&&!_n(a)){if(!e.h.D&&e._<1)return;qr(e,a),t&&t.A.l||Yr(e,a)}}function Yr(e,t,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&Ln(t,o)}function Sn(e,t){var o=e[M];return(o?Xe(o):e)[t]}function Ts(e,t){if(t in e)for(var o=Object.getPrototypeOf(e);o;){var n=Object.getOwnPropertyDescriptor(o,t);if(n)return n;o=Object.getPrototypeOf(o)}}function Je(e){e.P||(e.P=!0,e.l&&Je(e.l))}function On(e){e.o||(e.o=Nn(e.t))}function An(e,t,o){var n=Rn(t)?ke("MapSet").F(t,o):Tn(t)?ke("MapSet").T(t,o):e.O?function(a,s){var c=Array.isArray(a),l={i:c?1:0,A:s?s.A:Cn(),P:!1,I:!1,R:{},l:s,t:a,k:null,o:null,j:null,C:!1},u=l,p=yr;c&&(u=[l],p=fr);var y=Proxy.revocable(u,p),f=y.revoke,m=y.proxy;return l.k=m,l.j=f,m}(t,o):ke("ES5").J(t,o);return(o?o.A:Cn()).p.push(n),n}function Cl(e){return Ge(e)||ge(22,e),function t(o){if(!Ee(o))return o;var n,a=o[M],s=Vt(o);if(a){if(!a.P&&(a.i<4||!ke("ES5").K(a)))return a.t;a.I=!0,n=Ns(o,s),a.I=!1}else n=Ns(o,s);return mt(n,function(c,l){a&&xl(a.t,c)===l||Ps(n,c,t(l))}),s===3?new Set(n):n}(e)}function Ns(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Nn(e)}function Ds(){function e(c,l){var u=s[c];return u?u.enumerable=l:s[c]=u={configurable:!0,enumerable:l,get:function(){var p=this[M];return yr.get(p,c)},set:function(p){var y=this[M];yr.set(y,c,p)}},u}function t(c){for(var l=c.length-1;l>=0;l--){var u=c[l][M];if(!u.P)switch(u.i){case 5:n(u)&&Je(u);break;case 4:o(u)&&Je(u)}}}function o(c){for(var l=c.t,u=c.k,p=Kt(u),y=p.length-1;y>=0;y--){var f=p[y];if(f!==M){var m=l[f];if(m===void 0&&!jt(l,f))return!0;var x=u[f],b=x&&x[M];if(b?b.t!==m:!ks(x,m))return!0}}var v=!!l[M];return p.length!==Kt(l).length+(v?0:1)}function n(c){var l=c.k;if(l.length!==c.t.length)return!0;var u=Object.getOwnPropertyDescriptor(l,l.length-1);if(u&&!u.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function a(c){c.g&&ge(3,JSON.stringify(Xe(c)))}var s={};Sl("ES5",{J:function(c,l){var u=Array.isArray(c),p=function(f,m){if(f){for(var x=Array(m.length),b=0;b<m.length;b++)Object.defineProperty(x,""+b,e(b,!0));return x}var v=Ms(m);delete v[M];for(var A=Kt(v),E=0;E<A.length;E++){var w=A[E];v[w]=e(w,f||!!v[w].enumerable)}return Object.create(Object.getPrototypeOf(m),v)}(u,c),y={i:u?5:4,A:l?l.A:Cn(),P:!1,I:!1,R:{},l,t:c,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,M,{value:y,writable:!0}),p},S:function(c,l,u){u?Ge(l)&&l[M].A===c&&t(c.p):(c.u&&function p(y){if(y&&typeof y=="object"){var f=y[M];if(f){var m=f.t,x=f.k,b=f.R,v=f.i;if(v===4)mt(x,function(_){_!==M&&(m[_]!==void 0||jt(m,_)?b[_]||p(x[_]):(b[_]=!0,Je(f)))}),mt(m,function(_){x[_]!==void 0||jt(x,_)||(b[_]=!1,Je(f))});else if(v===5){if(n(f)&&(Je(f),b.length=!0),x.length<m.length)for(var A=x.length;A<m.length;A++)b[A]=!1;else for(var E=m.length;E<x.length;E++)b[E]=!0;for(var w=Math.min(x.length,m.length),L=0;L<w;L++)x.hasOwnProperty(L)||(b[L]=!0),b[L]===void 0&&p(x[L])}}}}(c.p[0]),t(c.p))},K:function(c){return c.i===4?o(c):n(c)}})}var Ls,hr,In=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",El=typeof Map<"u",Al=typeof Set<"u",_s=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Bs=In?Symbol.for("immer-nothing"):((Ls={})["immer-nothing"]=!0,Ls),Is=In?Symbol.for("immer-draftable"):"__$immer_draftable",M=In?Symbol.for("immer-state"):"__$immer_state";var wl=""+Object.prototype.constructor,Kt=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Ms=Object.getOwnPropertyDescriptors||function(e){var t={};return Kt(e).forEach(function(o){t[o]=Object.getOwnPropertyDescriptor(e,o)}),t},wn={},yr={get:function(e,t){if(t===M)return e;var o=Xe(e);if(!jt(o,t))return function(a,s,c){var l,u=Ts(s,c);return u?"value"in u?u.value:(l=u.get)===null||l===void 0?void 0:l.call(a.k):void 0}(e,o,t);var n=o[t];return e.I||!Ee(n)?n:n===Sn(e.t,t)?(On(e),e.o[t]=An(e.A.h,n,e)):n},has:function(e,t){return t in Xe(e)},ownKeys:function(e){return Reflect.ownKeys(Xe(e))},set:function(e,t,o){var n=Ts(Xe(e),t);if(n?.set)return n.set.call(e.k,o),!0;if(!e.P){var a=Sn(Xe(e),t),s=a?.[M];if(s&&s.t===o)return e.o[t]=o,e.R[t]=!1,!0;if(ks(o,a)&&(o!==void 0||jt(e.t,t)))return!0;On(e),Je(e)}return e.o[t]===o&&(o!==void 0||t in e.o)||Number.isNaN(o)&&Number.isNaN(e.o[t])||(e.o[t]=o,e.R[t]=!0),!0},deleteProperty:function(e,t){return Sn(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,On(e),Je(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var o=Xe(e),n=Reflect.getOwnPropertyDescriptor(o,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:o[t]}},defineProperty:function(){ge(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){ge(12)}},fr={};mt(yr,function(e,t){fr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),fr.deleteProperty=function(e,t){return fr.set.call(this,e,t,void 0)},fr.set=function(e,t,o){return yr.set.call(this,e[0],t,o,e[0])};var Rl=function(){function e(o){var n=this;this.O=_s,this.D=!0,this.produce=function(a,s,c){if(typeof a=="function"&&typeof s!="function"){var l=s;s=a;var u=n;return function(v){var A=this;v===void 0&&(v=l);for(var E=arguments.length,w=Array(E>1?E-1:0),L=1;L<E;L++)w[L-1]=arguments[L];return u.produce(v,function(_){var I;return(I=s).call.apply(I,[A,_].concat(w))})}}var p;if(typeof s!="function"&&ge(6),c!==void 0&&typeof c!="function"&&ge(7),Ee(a)){var y=ws(n),f=An(n,a,void 0),m=!0;try{p=s(f),m=!1}finally{m?Zr(y):En(y)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(v){return xn(y,c),vn(v,y)},function(v){throw Zr(y),v}):(xn(y,c),vn(p,y))}if(!a||typeof a!="object"){if((p=s(a))===void 0&&(p=a),p===Bs&&(p=void 0),n.D&&Ln(p,!0),c){var x=[],b=[];ke("Patches").M(a,p,x,b),c(x,b)}return p}ge(21,a)},this.produceWithPatches=function(a,s){if(typeof a=="function")return function(p){for(var y=arguments.length,f=Array(y>1?y-1:0),m=1;m<y;m++)f[m-1]=arguments[m];return n.produceWithPatches(p,function(x){return a.apply(void 0,[x].concat(f))})};var c,l,u=n.produce(a,s,function(p,y){c=p,l=y});return typeof Promise<"u"&&u instanceof Promise?u.then(function(p){return[p,c,l]}):[u,c,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var t=e.prototype;return t.createDraft=function(o){Ee(o)||ge(8),Ge(o)&&(o=Cl(o));var n=ws(this),a=An(this,o,void 0);return a[M].C=!0,En(n),a},t.finishDraft=function(o,n){var a=o&&o[M],s=a.A;return xn(s,n),vn(void 0,s)},t.setAutoFreeze=function(o){this.D=o},t.setUseProxies=function(o){o&&!_s&&ge(20),this.O=o},t.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var s=n[a];if(s.path.length===0&&s.op==="replace"){o=s.value;break}}a>-1&&(n=n.slice(a+1));var c=ke("Patches").$;return Ge(o)?c(o,n):this.produce(o,function(l){return c(l,n)})},e}(),de=new Rl,Tl=de.produce,eb=de.produceWithPatches.bind(de),tb=de.setAutoFreeze.bind(de),rb=de.setUseProxies.bind(de),ob=de.applyPatches.bind(de),nb=de.createDraft.bind(de),ab=de.finishDraft.bind(de),Xr=Tl;function gt(e){"@babel/helpers - typeof";return gt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gt(e)}function Us(e,t){if(gt(e)!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var n=o.call(e,t||"default");if(gt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ws(e){var t=Us(e,"string");return gt(t)=="symbol"?t:t+""}function Hs(e,t,o){return(t=Ws(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function Fs(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,n)}return o}function Pn(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?Fs(Object(o),!0).forEach(function(n){Hs(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Fs(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function ee(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var zs=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),kn=function(){return Math.random().toString(36).substring(7).split("").join(".")},Jr={INIT:"@@redux/INIT"+kn(),REPLACE:"@@redux/REPLACE"+kn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+kn()}};function Nl(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Dn(e,t,o){var n;if(typeof t=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(ee(0));if(typeof t=="function"&&typeof o>"u"&&(o=t,t=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(ee(1));return o(Dn)(e,t)}if(typeof e!="function")throw new Error(ee(2));var a=e,s=t,c=[],l=c,u=!1;function p(){l===c&&(l=c.slice())}function y(){if(u)throw new Error(ee(3));return s}function f(v){if(typeof v!="function")throw new Error(ee(4));if(u)throw new Error(ee(5));var A=!0;return p(),l.push(v),function(){if(A){if(u)throw new Error(ee(6));A=!1,p();var w=l.indexOf(v);l.splice(w,1),c=null}}}function m(v){if(!Nl(v))throw new Error(ee(7));if(typeof v.type>"u")throw new Error(ee(8));if(u)throw new Error(ee(9));try{u=!0,s=a(s,v)}finally{u=!1}for(var A=c=l,E=0;E<A.length;E++){var w=A[E];w()}return v}function x(v){if(typeof v!="function")throw new Error(ee(10));a=v,m({type:Jr.REPLACE})}function b(){var v,A=f;return v={subscribe:function(w){if(typeof w!="object"||w===null)throw new Error(ee(11));function L(){w.next&&w.next(y())}L();var _=A(L);return{unsubscribe:_}}},v[zs]=function(){return this},v}return m({type:Jr.INIT}),n={dispatch:m,subscribe:f,getState:y,replaceReducer:x},n[zs]=b,n}function Ll(e){Object.keys(e).forEach(function(t){var o=e[t],n=o(void 0,{type:Jr.INIT});if(typeof n>"u")throw new Error(ee(12));if(typeof o(void 0,{type:Jr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ee(13))})}function Gs(e){for(var t=Object.keys(e),o={},n=0;n<t.length;n++){var a=t[n];typeof e[a]=="function"&&(o[a]=e[a])}var s=Object.keys(o),c,l;try{Ll(o)}catch(u){l=u}return function(p,y){if(p===void 0&&(p={}),l)throw l;if(0)var f;for(var m=!1,x={},b=0;b<s.length;b++){var v=s[b],A=o[v],E=p[v],w=A(E,y);if(typeof w>"u"){var L=y&&y.type;throw new Error(ee(14))}x[v]=w,m=m||w!==E}return m=m||s.length!==Object.keys(p).length,m?x:p}}function Zt(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function $s(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),s=function(){throw new Error(ee(15))},c={getState:a.getState,dispatch:function(){return s.apply(void 0,arguments)}},l=t.map(function(u){return u(c)});return s=Zt.apply(void 0,l)(a.dispatch),Pn(Pn({},a),{},{dispatch:s})}}}function js(e){var t=function(n){var a=n.dispatch,s=n.getState;return function(c){return function(l){return typeof l=="function"?l(a,s,e):c(l)}}};return t}var Ks=js();Ks.withExtraArgument=js;var Bn=Ks;var Xs=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(n[s]=a[s])},e(t,o)};return function(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(t,o);function n(){this.constructor=t}t.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),_l=function(e,t){var o={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,a,s,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(y){return u([p,y])}}function u(p){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(s=p[0]&2?a.return:p[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,p[1])).done)return s;switch(a=0,s&&(p=[p[0]&2,s.value]),p[0]){case 0:case 1:s=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(s=o.trys,!(s=s.length>0&&s[s.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!s||p[1]>s[0]&&p[1]<s[3])){o.label=p[1];break}if(p[0]===6&&o.label<s[1]){o.label=s[1],s=p;break}if(s&&o.label<s[2]){o.label=s[2],o.ops.push(p);break}s[2]&&o.ops.pop(),o.trys.pop();continue}p=t.call(e,o)}catch(y){p=[6,y],a=0}finally{n=s=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},qt=function(e,t){for(var o=0,n=t.length,a=e.length;o<n;o++,a++)e[a]=t[o];return e},Il=Object.defineProperty,Pl=Object.defineProperties,kl=Object.getOwnPropertyDescriptors,Vs=Object.getOwnPropertySymbols,Dl=Object.prototype.hasOwnProperty,Bl=Object.prototype.propertyIsEnumerable,Zs=function(e,t,o){return t in e?Il(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o},Qe=function(e,t){for(var o in t||(t={}))Dl.call(t,o)&&Zs(e,o,t[o]);if(Vs)for(var n=0,a=Vs(t);n<a.length;n++){var o=a[n];Bl.call(t,o)&&Zs(e,o,t[o])}return e},Mn=function(e,t){return Pl(e,kl(t))},Ml=function(e,t,o){return new Promise(function(n,a){var s=function(u){try{l(o.next(u))}catch(p){a(p)}},c=function(u){try{l(o.throw(u))}catch(p){a(p)}},l=function(u){return u.done?n(u.value):Promise.resolve(u.value).then(s,c)};l((o=o.apply(e,t)).next())})};var Ul=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Zt:Zt.apply(null,arguments)},Cb=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Wl(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var o=t;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return t===o}var Hl=function(e){Xs(t,e);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,t.prototype),a}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},t.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(t.bind.apply(t,qt([void 0],o[0].concat(this)))):new(t.bind.apply(t,qt([void 0],o.concat(this))))},t}(Array),Fl=function(e){Xs(t,e);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,t.prototype),a}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},t.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(t.bind.apply(t,qt([void 0],o[0].concat(this)))):new(t.bind.apply(t,qt([void 0],o.concat(this))))},t}(Array);function Hn(e){return Ee(e)?Xr(e,function(){}):e}function zl(e){return typeof e=="boolean"}function Gl(){return function(t){return $l(t)}}function $l(e){e===void 0&&(e={});var t=e.thunk,o=t===void 0?!0:t,n=e.immutableCheck,a=n===void 0?!0:n,s=e.serializableCheck,c=s===void 0?!0:s,l=new Hl;if(o&&(zl(o)?l.push(Bn):l.push(Bn.withExtraArgument(o.extraArgument))),0){if(a)var u;if(c)var p}return l}var Un=!0;function Js(e){var t=Gl(),o=e||{},n=o.reducer,a=n===void 0?void 0:n,s=o.middleware,c=s===void 0?t():s,l=o.devTools,u=l===void 0?!0:l,p=o.preloadedState,y=p===void 0?void 0:p,f=o.enhancers,m=f===void 0?void 0:f,x;if(typeof a=="function")x=a;else if(Wl(a))x=Gs(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 b=c;if(typeof b=="function"&&(b=b(t),!Un&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Un&&b.some(function(_){return typeof _!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=$s.apply(void 0,b),A=Zt;u&&(A=Ul(Qe({trace:!Un},typeof u=="object"&&u)));var E=new Fl(v),w=E;Array.isArray(m)?w=qt([v],m):typeof m=="function"&&(w=m(E));var L=A.apply(void 0,w);return Dn(x,y,L)}function et(e,t){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(t){var s=t.apply(void 0,n);if(!s)throw new Error("prepareAction did not return an object");return Qe(Qe({type:e,payload:s.payload},"meta"in s&&{meta:s.meta}),"error"in s&&{error:s.error})}return{type:e,payload:n[0]}}return o.toString=function(){return""+e},o.type=e,o.match=function(n){return n.type===e},o}function Qs(e){var t={},o=[],n,a={addCase:function(s,c){var l=typeof s=="string"?s:s.type;if(l in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[l]=c,a},addMatcher:function(s,c){return o.push({matcher:s,reducer:c}),a},addDefaultCase:function(s){return n=s,a}};return e(a),[t,o,n]}function jl(e){return typeof e=="function"}function Kl(e,t,o,n){o===void 0&&(o=[]);var a=typeof t=="function"?Qs(t):[t,o,n],s=a[0],c=a[1],l=a[2],u;if(jl(e))u=function(){return Hn(e())};else{var p=Hn(e);u=function(){return p}}function y(f,m){f===void 0&&(f=u());var x=qt([s[m.type]],c.filter(function(b){var v=b.matcher;return v(m)}).map(function(b){var v=b.reducer;return v}));return x.filter(function(b){return!!b}).length===0&&(x=[l]),x.reduce(function(b,v){if(v)if(Ge(b)){var A=b,E=v(A,m);return E===void 0?b:E}else{if(Ee(b))return Xr(b,function(w){return v(w,m)});var E=v(b,m);if(E===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return E}return b},f)}return y.getInitialState=u,y}function Vl(e,t){return e+"/"+t}function ec(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof e.initialState=="function"?e.initialState:Hn(e.initialState),n=e.reducers||{},a=Object.keys(n),s={},c={},l={};a.forEach(function(y){var f=n[y],m=Vl(t,y),x,b;"reducer"in f?(x=f.reducer,b=f.prepare):x=f,s[y]=x,c[m]=x,l[y]=b?et(m,b):et(m)});function u(){var y=typeof e.extraReducers=="function"?Qs(e.extraReducers):[e.extraReducers],f=y[0],m=f===void 0?{}:f,x=y[1],b=x===void 0?[]:x,v=y[2],A=v===void 0?void 0:v,E=Qe(Qe({},m),c);return Kl(o,function(w){for(var L in E)w.addCase(L,E[L]);for(var _=0,I=b;_<I.length;_++){var ne=I[_];w.addMatcher(ne.matcher,ne.reducer)}A&&w.addDefaultCase(A)})}var p;return{name:t,reducer:function(y,f){return p||(p=u()),p(y,f)},actions:l,caseReducers:s,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}var Zl="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",ql=function(e){e===void 0&&(e=21);for(var t="",o=e;o--;)t+=Zl[Math.random()*64|0];return t},Yl=["name","message","stack","code"],Wn=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),qs=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),Xl=function(e){if(typeof e=="object"&&e!==null){for(var t={},o=0,n=Yl;o<n.length;o++){var a=n[o];typeof e[a]=="string"&&(t[a]=e[a])}return t}return{message:String(e)}},Rb=function(){function e(t,o,n){var a=et(t+"/fulfilled",function(y,f,m,x){return{payload:y,meta:Mn(Qe({},x||{}),{arg:m,requestId:f,requestStatus:"fulfilled"})}}),s=et(t+"/pending",function(y,f,m){return{payload:void 0,meta:Mn(Qe({},m||{}),{arg:f,requestId:y,requestStatus:"pending"})}}),c=et(t+"/rejected",function(y,f,m,x,b){return{payload:x,error:(n&&n.serializeError||Xl)(y||"Rejected"),meta:Mn(Qe({},b||{}),{arg:m,requestId:f,rejectedWithValue:!!x,requestStatus:"rejected",aborted:y?.name==="AbortError",condition:y?.name==="ConditionError"})}}),l=!1,u=typeof AbortController<"u"?AbortController:function(){function y(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return y.prototype.abort=function(){},y}();function p(y){return function(f,m,x){var b=n?.idGenerator?n.idGenerator(y):ql(),v=new u,A,E=!1;function w(_){A=_,v.abort()}var L=function(){return Ml(this,null,function(){var _,I,ne,Le,te,_e,Y;return _l(this,function(h){switch(h.label){case 0:return h.trys.push([0,4,,5]),Le=(_=n?.condition)==null?void 0:_.call(n,y,{getState:m,extra:x}),Ql(Le)?[4,Le]:[3,2];case 1:Le=h.sent(),h.label=2;case 2:if(Le===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return E=!0,te=new Promise(function(g,N){return v.signal.addEventListener("abort",function(){return N({name:"AbortError",message:A||"Aborted"})})}),f(s(b,y,(I=n?.getPendingMeta)==null?void 0:I.call(n,{requestId:b,arg:y},{getState:m,extra:x}))),[4,Promise.race([te,Promise.resolve(o(y,{dispatch:f,getState:m,extra:x,requestId:b,signal:v.signal,abort:w,rejectWithValue:function(g,N){return new Wn(g,N)},fulfillWithValue:function(g,N){return new qs(g,N)}})).then(function(g){if(g instanceof Wn)throw g;return g instanceof qs?a(g.payload,b,y,g.meta):a(g,b,y)})])];case 3:return ne=h.sent(),[3,5];case 4:return _e=h.sent(),ne=_e instanceof Wn?c(null,b,y,_e.payload,_e.meta):c(_e,b,y),[3,5];case 5:return Y=n&&!n.dispatchConditionRejection&&c.match(ne)&&ne.meta.condition,Y||f(ne),[2,ne]}})})}();return Object.assign(L,{abort:w,requestId:b,arg:y,unwrap:function(){return L.then(Jl)}})}}return Object.assign(p,{pending:s,rejected:c,fulfilled:a,typePrefix:t})}return e.withTypes=function(){return e},e}();function Jl(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Ql(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var tc="listener",rc="completed",oc="cancelled",Tb="task-"+oc,Nb="task-"+rc,Lb=tc+"-"+oc,_b=tc+"-"+rc;var Fn="listenerMiddleware";var Ib=et(Fn+"/add"),Pb=et(Fn+"/removeAll"),kb=et(Fn+"/remove");var Ys,Db=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(Ys||(Ys=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},ed=function(e){return function(t){setTimeout(t,e)}},Bb=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:ed(10);Ds();var td=zr(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??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)}}}),Qr=class extends td(Object){};window.ftReduxStores||(window.ftReduxStores={});var nc=class e extends Qr{static get(t){var o;let n=typeof t=="string"?t:t.name,a=typeof t=="string"?void 0:t,s=window.ftReduxStores[n];if(Vr(s))return s;if(a==null)return;let c=ec({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=Js({reducer:(u,p)=>p.type==="CLEAR_FT_REDUX_STORE"?c.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...u,...p.overwrites}:c.reducer(u,p)});return window.ftReduxStores[a.name]=new e(c,l,a.eventBus)}constructor(t,o,n){super(),this.reduxSlice=t,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new Gr;let a=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,c,l)=>{let u=c,p=s[u];return p?(...y)=>{let f=p(...y.map(a));return this.reduxStore.dispatch(f),f}:y=>{this.setState({[u]:a(y)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}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(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var eo=class{static format(t,o,n,a){return window.moment?window.moment(t).locale(o).format(this.getMomentDateFormat(n,a)):this.getIntlDateTime(t,o,n,a)}static getMomentDateFormat(t,o){return t?o?"lll":"ll":o?"L LT":"L"}static getIntlDateTime(t,o,n,a){let s=typeof t=="string"?new Date(t):t,c=new Intl.DateTimeFormat(o,{dateStyle:n?"medium":"short"}).format(s);if(!a)return c;let l=new Intl.DateTimeFormat(o,{timeStyle:"short"}).format(s);return`${c} ${l}`}static getTimezoneAsString(){let t=n=>String(Math.floor(n)).padStart(2,"0"),o=new Date().getTimezoneOffset();return`${o<0?"+":"-"}${t(Math.abs(o)/60)}:${t(Math.abs(o)%60)}`}};var ac=C(k()),to=function(e,t,o,n){var a=arguments.length,s=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(s=(a<3?c(s):a>3?c(t,o,s):c(t,o))||s);return a>3&&s&&Object.defineProperty(t,o,s),s},cx=(0,ac.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(R)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var a,s;return((s=(a=this.metadataDescriptors.find(l=>l.key===n))===null||a===void 0?void 0:a.date)!==null&&s!==void 0?s:!1)?l=>eo.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return to([(0,zn.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),to([(0,zn.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),to([bn({store:R.name,selector:o=>{var n,a;return(a=(n=o.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&a!==void 0?a:[]}})],t.prototype,"metadataDescriptors",void 0),to([bn({store:R.name})],t.prototype,"uiLocale",void 0),t});var no=C(k());var ro=class extends le{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(t){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${t}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(t){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${t}`),this.CACHE_DURATION)}isAuthenticated(){let t=R.getState().session;return!!t?.sessionAuthenticated}};var oo=class extends le{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let t=R.getState().session;return!!t?.sessionAuthenticated}};var rd="ft-user-assets",od={setAssetCount:(e,t)=>{let{userAssetType:o,count:n}=t.payload.assetCount;e.assetCounts.allAsset[o]=n},clearAssetCount:e=>{Object.values(me).forEach(t=>{e.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(e,t)=>{let o=t.payload.mapId;e.assetCounts.bookmarkByMap[o]=t.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}},addAsset:(e,t)=>{let{assetType:o,mapId:n,asset:a}=t.payload;$n(e,o,[...Gn(e,o),a]),ic(e,o,1,n),sc(e,a)},editAsset:(e,t)=>{let{assetType:o,asset:n}=t.payload;$n(e,o,Gn(e,o).map(a=>a.id===n.id?n:a)),sc(e,n)},removeAsset:(e,t)=>{let{assetType:o,mapId:n,assetId:a}=t.payload;$n(e,o,Gn(e,o).filter(s=>s.id!==a)),ic(e,o,-1,n)}},cc={[me.SEARCHES]:"savedSearches",[me.BOOKMARKS]:"bookmarks",[me.BOOKS]:void 0,[me.COLLECTIONS]:void 0},Gn=(e,t)=>{var o;let n=cc[t];return n?(o=e[n])!==null&&o!==void 0?o:[]:[]},$n=(e,t,o)=>{let n=cc[t];n&&(e[n]=o)},ic=(e,t,o,n)=>{let a=e.assetCounts.allAsset[t];if(a!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,a+o),t===me.BOOKMARKS&&n)){let s=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,s+o)}},sc=(e,t)=>{let o=e.assetLabels.map(a=>a.title),n=t.labels.filter(a=>!o.includes(a)).map(a=>({title:a}));e.assetLabels.push(...n)},ue=no.FtReduxStore.get({name:rd,reducers:od,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(me).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),jn=class{constructor(t=new ro,o=new oo){this.assetCountsService=t,this.assetLabelsService=o,this.currentSession=R.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Dr,this.savedSearchesService=new Wr,R.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:o}=R.getState();(0,no.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),ue.actions.clearAssetCount(),ue.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ue.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ue.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();ue.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();ue.actions.assetLabels(t)}async loadAssetCount(t){let o=await this.assetCountsService.getUserAssetCount(t);o&&ue.actions.setAssetCount({assetCount:o})}async loadBookmarkByMapId(t){let o=await this.assetCountsService.getUserBookmarkCountByMap(t);o&&ue.actions.setBookmarkCountByMap({count:o.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let o=Object.keys(ue.getState().assetCounts.bookmarkByMap).length!==0;t===me.BOOKMARKS&&o&&ue.actions.clearBookmarkCountByMap(),ue.getState().assetCounts.allAsset[t]!==void 0&&await this.loadAssetCount(t)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let o=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;ue.actions.bookmarks(o)}}},nd=new jn;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=nd);(0,lc.customElement)("ft-app-context")(B);var dc=C(re());var Kn=class{fromLocalizableLabel(t){return t.type=="PLAIN_TEXT"?{message:t.text}:{key:t.key,custom:t.type=="LOCALIZED_CUSTOM",context:t.context,message:t.key}}fromAttribute(t){if(t!=null)try{return JSON.parse(t)}catch{if(this.isI18nKey(t)){let[n,a]=t.split(".");return{context:n,key:a,custom:!0,message:""}}return{message:t}}}toAttribute(t){if(t!=null)return JSON.stringify(t)}isI18nKey(t){return t.match(/^[\w-]+\.[\w-]+$/)}},Yt=new Kn;var ad=function(e,t,o,n){var a=arguments.length,s=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(s=(a<3?c(s):a>3?c(t,o,s):c(t,o))||s);return a>3&&s&&Object.defineProperty(t,o,s),s},gr=Symbol("i18nAttributes"),uc=Symbol("i18nListAttributes"),pc=Symbol("i18nProperties"),ao=Symbol("i18nContexts"),mr=Symbol("i18nUnsubs"),fc=(0,Xt.applyMixinOnce)(Symbol("withI18n"),function(e){var t,o;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[o]=new Map}getI18nService(s){return s??this.useCustomMessageContexts?fn:lr}i18n(s){let{context:c,key:l,message:u}=s,{custom:p,args:y,argsProvider:f}=s;if(c&&l){this.hasI18nContext(c)||this.addI18nContext(c,void 0,p);let m=y??(f?f(this):[]);return this.getI18nService(p).resolveMessage(c,l,...m)}return u}async awaitI18n(s){let{context:c,custom:l}=s;return c&&await this.getI18nService(l).prepareContext(c),this.i18n(s)}customI18n(s,c){if(Yt.isI18nKey(s)){let[l,u]=s.split(".");return this.i18n({custom:!0,context:l,key:u,...c})||s}return s}firstUpdated(s){super.firstUpdated(s),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(s){super.update(s),this.updateI18nAttributes((c,l,u)=>s.has(l)||typeof c.argsProvider=="function"),this.updateI18nProperties(c=>typeof c.argsProvider=="function")}onI18nUpdate(s){this.updateI18nAttributes((c,l,u)=>{var p;return((p=u?.context)===null||p===void 0?void 0:p.toLowerCase())===s}),this.updateI18nProperties(c=>c.context.toLowerCase()===s),this.requestUpdate()}updateI18nAttributes(s){var c,l;let u=this,p=(y,f,m)=>m?.context&&m.key&&s(y,f,m)?{...m,message:this.i18n({context:m.context,key:m.key,custom:m.custom,...y})}:m;(c=this[gr])===null||c===void 0||c.forEach((y,f)=>u[f]=p(y,f,u[f])),(l=this[uc])===null||l===void 0||l.forEach((y,f)=>{var m;return u[f]=(m=u[f])===null||m===void 0?void 0:m.map(x=>p(y,f,x))})}updateI18nProperties(s){var c;(c=this[pc])===null||c===void 0||c.forEach((l,u)=>{s(l,u)&&(this[u]=this.i18n(l))})}addI18nMessages(s,c,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(s,c,l)}addI18nContext(s,c,l){let u=(typeof s=="string"?s:s.name).toLowerCase();l=typeof s=="string"?l:s.custom,this[ao].set(u,{isCustomContext:l}),this[mr].has(u)||this[mr].set(u,this.getI18nService(l).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(l).prepareContext(u,c)}hasI18nContext(s){return this[ao].has(s.toLowerCase())}connectedCallback(){super.connectedCallback(),this[ao].forEach((s,c)=>this.addI18nContext(c,void 0,s.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[mr].forEach(s=>s()),this[mr].clear()}}return t=ao,o=mr,ad([(0,dc.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),io=class extends fc(Xt.FtLitElement){},so=class extends fc(Xt.FtLitElementRedux){};var hc=C(k());var Vn=class{fromAttribute(t){if(!t)return[];try{let o=JSON.parse(t);return Array.isArray(o)?o.map(n=>typeof n=="string"?Yt.fromAttribute(n):n):[]}catch{return[]}}toAttribute(t){if(t!=null)return JSON.stringify(t)}},id=new Vn;var yc=(e,t)=>(o,n)=>{var a;o.constructor.createProperty(n,{type:Object,hasChanged:hc.hasChanged,converter:Yt,...t}),o[gr]=(a=o[gr])!==null&&a!==void 0?a:new Map,o[gr].set(n,e??{})};var bc=C(k());var co=C(z()),lo=C(re()),uo=C(k());var mc=C(z());var gc=mc.css`
|
|
292
292
|
`;var br=function(e,t,o,n){var a=arguments.length,s=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(s=(a<3?c(s):a>3?c(t,o,s):c(t,o))||s);return a>3&&s&&Object.defineProperty(t,o,s),s},Ae=class extends so{constructor(){super(),this.editorMode=!1,this.addStore(R)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":co.nothing:co.html`
|
|
293
293
|
<span class="ft-i18n">
|
|
294
294
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
@@ -308,7 +308,7 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
308
308
|
</div>
|
|
309
309
|
</div>
|
|
310
310
|
</div>
|
|
311
|
-
`}setupFor(t){this.eventsTarget!==t&&(this.removeHandlers(),this.eventsTarget=t,this.eventsTarget.addEventListener("mouseenter",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseenter",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(o=>t.has(o))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}async showTemporaryText(t,o){let n=this.manual;this.manual=!0;let a=this.text;this.text={message:t},await this.show(o),this.text=a,this.manual=n}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(o=>o.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Ci(this.slottedElement,this.tooltip,this.position).then(({x:t,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${o}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${be.designSystemVariables.transitionDuration}, left ${be.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(t){return this.manual||(0,be.eventPathContainsMatchingElement)(t,this.ignoreMatchingElements,this.eventsTarget)}};j.elementDefinitions={"ft-typography":Se};j.styles=Ja;we([yc()],j.prototype,"text",void 0);we([(0,xe.property)({type:Boolean})],j.prototype,"manual",void 0);we([(0,xe.property)({type:Boolean})],j.prototype,"inline",void 0);we([(0,be.numberProperty)()],j.prototype,"delay",void 0);we([(0,xe.property)()],j.prototype,"position",void 0);we([(0,be.jsonProperty)([])],j.prototype,"ignoreMatchingElements",void 0);we([(0,xe.queryAssignedNodes)()],j.prototype,"slotNodes",void 0);we([(0,xe.query)(".ft-tooltip--container")],j.prototype,"container",void 0);we([(0,xe.query)(".ft-tooltip")],j.prototype,"tooltip",void 0);we([(0,xe.query)(".ft-tooltip--content")],j.prototype,"tooltipContent",void 0);we([(0,xe.state)()],j.prototype,"visible",void 0);(0,vc.customElement)("ft-tooltip")(j);var Rc=C(k());var xr=C(z()),rt=C(re()),Ac=C(k()),wc=C(Oc());var po;(function(e){e.ADD_TO_PBK="",e.ALERT="",e.ADD_ALERT="",e.BACK_TO_SEARCH="",e.ADD_BOOKMARK="",e.BOOKMARK="",e.BOOKS="",e.MENU="",e.DOWNLOAD="",e.EDIT="",e.FEEDBACK="",e.HOME="",e.MODIFY_PBK="",e.SCHEDULED="",e.SEARCH="",e.EXPORT="",e.TOC="",e.WRITE_UGC="",e.TRASH="",e.USER="",e.EXTLINK="",e.CALENDAR="",e.OFFLINE="",e.BOOK="",e.DOWNLOAD_PLAIN="",e.CHECK="",e.STAR_PLAIN="",e.TOPICS="",e.DISC="",e.CIRCLE="",e.SHARED="",e.SORT_UNSORTED="",e.SORT_UP="",e.SORT_DOWN="",e.WORKING="",e.CLOSE="",e.ZOOM_OUT="",e.ZOOM_IN="",e.ZOOM_REALSIZE="",e.ZOOM_FULLSCREEN="",e.ADMIN_RESTRICTED="",e.ADMIN="",e.ADMIN_KHUB="",e.ADMIN_THEME="",e.ADMIN_USERS="",e.WARNING="",e.CONTEXT="",e.SEARCH_HOME="",e.STEPS="",e.ICON_EXPAND="",e.ICON_COLLAPSE="",e.INFO="",e.MINUS_PLAIN="",e.PLUS_PLAIN="",e.FACET_HAS_DESCENDANT="",e.TRIANGLE_BOTTOM="",e.TRIANGLE_LEFT="",e.TRIANGLE_RIGHT="",e.TRIANGLE_TOP="",e.THIN_ARROW="",e.SIGN_IN="",e.LOGOUT="",e.TRANSLATE="",e.CLOSE_PLAIN="",e.CHECK_PLAIN="",e.ARTICLE="",e.COLUMNS="",e.ANALYTICS="",e.COLLECTIONS="",e.ARROW_DOWN="",e.ARROW_LEFT="",e.ARROW_RIGHT="",e.ARROW_UP="",e.SEARCH_IN_PUBLICATION="",e.COPY_TO_CLIPBOARD="",e.SHARED_PBK="",e.ATTACHMENTS="",e.STRIPE_ARROW_LEFT="",e.STRIPE_ARROW_RIGHT="",e.FILTERS="",e.DOT="",e.MINUS="",e.PLUS="",e.MAILS_AND_NOTIFICATIONS="",e.SAVE="",e.LOCKER="",e.ADMIN_INTEGRATION="",e.SYNC="",e.TAG="",e.BOOK_PLAIN="",e.UPLOAD="",e.ONLINE="",e.TAG_PLAIN="",e.ACCOUNT_SETTINGS="",e.PRINT="",e.DEFAULT_ROLES="",e.SHORTCUT_MENU="",e.RELATIVES_PLAIN="",e.RELATIVES="",e.PAUSE="",e.PLAY="",e.ADMIN_PORTAL="",e.STAR="",e.THUMBS_DOWN="",e.THUMBS_DOWN_PLAIN="",e.THUMBS_UP="",e.THUMBS_UP_PLAIN="",e.FEEDBACK_PLAIN="",e.RATE_PLAIN="",e.RATE="",e.OFFLINE_SETTINGS="",e.MY_COLLECTIONS="",e.THIN_ARROW_LEFT="",e.THIN_ARROW_RIGHT="",e.RESET="",e.MY_LIBRARY="",e.UNSTRUCTURED_DOC="",e.CONTEXTUAL="",e.THIN_ARROW_UP="",e.ARROW_RIGHT_TO_LINE="",e.DESKTOP="",e.TABLET_LANDSCAPE="",e.TABLET_PORTRAIT="",e.MOBILE_LANDSCAPE="",e.MOBILE_PORTRAIT="",e.DIAGRAM_SUNBURST="",e.DIAGRAM_SANKEY="",e.COMMENT_QUESTION="",e.COMMENT_QUESTION_PLAIN="",e.MESSAGE_BOT="",e.CHART_SIMPLE="",e.BARS_PROGRESS="",e.BOOK_OPEN_GEAR="",e.BOOK_OPEN_GEAR_SLASH="",e.LINE_CHART="",e.STACKED_CHART="",e.CHART_BAR_STACKED="",e.CHART_BAR_GROUPED="",e.EYE_SLASH="",e.X_MARK="",e.EXPAND_WIDE="",e.PIP="",e.PIP_WIDE="",e.LIFE_RING="",e.GLOBE="",e.PIGGY_BANK="",e.EXTLINK_LIGHT="",e.CLONE="",e.CLONE_LINK_SIMPLE="",e.CHART_BAR_NORMALIZED="",e.CONSUMER="",e.OCTAGON_XMARK="",e.HOURGLASS_HALF="",e.CLOCK="",e.CLOCK_THREE="",e.CALENDAR_DAY="",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="",e.WAND_MAGIC_SPARKLES="",e.PAPER_PLANE="",e.CIRCLE_STOP="",e.ARROW_ROTATE_RIGHT="",e.ARROWS_ROTATE="",e.ALIGN_RIGHT="",e.FORMAT_CLEAR="",e.ALIGN_CENTER="",e.ALIGN_LEFT="",e.PALETTE="",e.BOLD="",e.ITALIC="",e.UNDERLINE="",e.STRIKETHROUGH="",e.LINK_SIMPLE_SLASH="",e.LINK_SIMPLE="",e.ROUTE="",e.CIRCLE_USER_SLASH="",e.CIRCLE_USER_CHECK="",e.LIST_MAGNIFYING_GLASS="",e.MEDAL="",e.THUMBS_UP_THUMBS_DOWN_SOLID="",e.ARROW_TURN_DOWN_RIGHT="",e.FLASK="",e.LOCK_KEYHOLE_OPEN_SOLID="",e.HOURGLASS_END="",e.CIRCLE_QUESTION="",e.GRIP_LINES_SOLID="",e.TRANSLATE_SPARKLE_SOLID="",e.CODE="",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",e.PAPER_PLANE_SLASH="",e.COMPRESS="",e.EXPAND="",e.ARROW_ROTATE_LEFT="",e.EYE="",e.SHARE="󨃱",e.MOBILE_SMALL="",e.SPARKLES="",e.HAND_SOLID="",e.CLOCK_SOLID="",e.CONTEXT_MENU_CURSOR="",e.LANGUAGE_SLASH="",e.MAGNIFYING_GLASS_FLOPPY_DISK="",e.CABINET_FILING_FLOPPY_DISK="",e.BOOKMARK_SLASH="",e.CIRCLE_PAUSE="",e.CIRCLE_PLAY="",e.CIRCLE_STOP_PLAIN="",e.CLOUD_ARROW_DOWN="",e.SHARE_NODES="",e.BELL="",e.BELL_SLASH="",e.FILE="",e.HAND="",e.SQUARE_INFO_SOLID="",e.FILE_CODE="",e.BOX_CODE=""})(po||(po={}));var S;(function(e){e.UNKNOWN="",e.ABW="",e.AUDIO="",e.AVI="",e.CHM="",e.CODE="",e.CSV="",e.DITA="",e.EPUB="",e.EXCEL="",e.FLAC="",e.GIF="",e.GZIP="",e.HTML="",e.IMAGE="",e.JPEG="",e.JSON="",e.M4A="",e.MOV="",e.MP3="",e.MP4="",e.OGG="",e.PDF="",e.PNG="",e.POWERPOINT="",e.RAR="",e.STP="",e.TEXT="",e.VIDEO="",e.WAV="",e.WMA="",e.WORD="",e.XML="",e.YAML="",e.ZIP=""})(S||(S={}));var xv=new Map([...["abw"].map(e=>[e,S.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(e=>[e,S.AUDIO]),...["avi"].map(e=>[e,S.AVI]),...["chm","xhs"].map(e=>[e,S.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(e=>[e,S.CODE]),...["csv"].map(e=>[e,S.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,S.DITA]),...["epub"].map(e=>[e,S.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,S.EXCEL]),...["flac"].map(e=>[e,S.FLAC]),...["gif"].map(e=>[e,S.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,S.GZIP]),...["html","htm","xhtml"].map(e=>[e,S.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(e=>[e,S.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,S.JPEG]),...["json"].map(e=>[e,S.JSON]),...["m4a","m4p"].map(e=>[e,S.M4A]),...["mov","qt"].map(e=>[e,S.MOV]),...["mp3"].map(e=>[e,S.MP3]),...["mp4","m4v"].map(e=>[e,S.MP4]),...["ogg","oga"].map(e=>[e,S.OGG]),...["pdf","ps"].map(e=>[e,S.PDF]),...["png"].map(e=>[e,S.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,S.POWERPOINT]),...["rar"].map(e=>[e,S.RAR]),...["stp"].map(e=>[e,S.STP]),...["txt","rtf","md","mdown"].map(e=>[e,S.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(e=>[e,S.VIDEO]),...["wav"].map(e=>[e,S.WAV]),...["wma"].map(e=>[e,S.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,S.WORD]),...["xml","xsl","rdf"].map(e=>[e,S.XML]),...["yaml","yml","x-yaml"].map(e=>[e,S.YAML]),...["zip"].map(e=>[e,S.ZIP])]);var vv={[S.ABW]:"#91ABC6",[S.AUDIO]:"#1795E3",[S.AVI]:"#E63324",[S.CHM]:"#71C3EB",[S.CODE]:"#71C3EB",[S.CSV]:"#1F7345",[S.DITA]:"#71C3EB",[S.EPUB]:"#85B926",[S.EXCEL]:"#1F7345",[S.FLAC]:"#1795E3",[S.GIF]:"#59B031",[S.GZIP]:"#F8AB36",[S.HTML]:"#71C3EB",[S.IMAGE]:"#59B031",[S.JPEG]:"#59B031",[S.JSON]:"#71C3EB",[S.M4A]:"#1795E3",[S.MOV]:"#E63324",[S.MP3]:"#1795E3",[S.MP4]:"#E63324",[S.OGG]:"#1795E3",[S.PDF]:"#E44948",[S.PNG]:"#59B031",[S.POWERPOINT]:"#B54A2B",[S.RAR]:"#F8AB36",[S.STP]:"#3764B1",[S.TEXT]:"#3162AB",[S.UNKNOWN]:"#999999",[S.VIDEO]:"#E63324",[S.WAV]:"#1795E3",[S.WMA]:"#1795E3",[S.WORD]:"#3162AB",[S.XML]:"#71C3EB",[S.YAML]:"#71C3EB",[S.ZIP]:"#F8AB36"};var Cc=C(z()),Te=C(k()),Re={size:Te.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Te.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",Te.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Te.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",Te.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Te.FtCssVariableFactory.extend("--ft-icon-material-font-family","",Te.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Te.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Ec=[Cc.css`
|
|
311
|
+
`}setupFor(t){this.eventsTarget!==t&&(this.removeHandlers(),this.eventsTarget=t,this.eventsTarget.addEventListener("mouseenter",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseenter",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(o=>t.has(o))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}async showTemporaryText(t,o){let n=this.manual;this.manual=!0;let a=this.text;this.text={message:t},await this.show(o),this.text=a,this.manual=n}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(o=>o.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Ci(this.slottedElement,this.tooltip,this.position).then(({x:t,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${o}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${be.designSystemVariables.transitionDuration}, left ${be.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(t){return this.manual||(0,be.eventPathContainsMatchingElement)(t,this.ignoreMatchingElements,this.eventsTarget)}};j.elementDefinitions={"ft-typography":Se};j.styles=Ja;we([yc()],j.prototype,"text",void 0);we([(0,xe.property)({type:Boolean})],j.prototype,"manual",void 0);we([(0,xe.property)({type:Boolean})],j.prototype,"inline",void 0);we([(0,be.numberProperty)()],j.prototype,"delay",void 0);we([(0,xe.property)()],j.prototype,"position",void 0);we([(0,be.jsonProperty)([])],j.prototype,"ignoreMatchingElements",void 0);we([(0,xe.queryAssignedNodes)()],j.prototype,"slotNodes",void 0);we([(0,xe.query)(".ft-tooltip--container")],j.prototype,"container",void 0);we([(0,xe.query)(".ft-tooltip")],j.prototype,"tooltip",void 0);we([(0,xe.query)(".ft-tooltip--content")],j.prototype,"tooltipContent",void 0);we([(0,xe.state)()],j.prototype,"visible",void 0);(0,vc.customElement)("ft-tooltip")(j);var Rc=C(k());var xr=C(z()),rt=C(re()),Ac=C(k()),wc=C(Oc());var po;(function(e){e.ADD_TO_PBK="",e.ALERT="",e.ADD_ALERT="",e.BACK_TO_SEARCH="",e.ADD_BOOKMARK="",e.BOOKMARK="",e.BOOKS="",e.MENU="",e.DOWNLOAD="",e.EDIT="",e.FEEDBACK="",e.HOME="",e.MODIFY_PBK="",e.SCHEDULED="",e.SEARCH="",e.EXPORT="",e.TOC="",e.WRITE_UGC="",e.TRASH="",e.USER="",e.EXTLINK="",e.CALENDAR="",e.OFFLINE="",e.BOOK="",e.DOWNLOAD_PLAIN="",e.CHECK="",e.STAR_PLAIN="",e.TOPICS="",e.DISC="",e.CIRCLE="",e.SHARED="",e.SORT_UNSORTED="",e.SORT_UP="",e.SORT_DOWN="",e.WORKING="",e.CLOSE="",e.ZOOM_OUT="",e.ZOOM_IN="",e.ZOOM_REALSIZE="",e.ZOOM_FULLSCREEN="",e.ADMIN_RESTRICTED="",e.ADMIN="",e.ADMIN_KHUB="",e.ADMIN_THEME="",e.ADMIN_USERS="",e.WARNING="",e.CONTEXT="",e.SEARCH_HOME="",e.STEPS="",e.ICON_EXPAND="",e.ICON_COLLAPSE="",e.INFO="",e.MINUS_PLAIN="",e.PLUS_PLAIN="",e.FACET_HAS_DESCENDANT="",e.TRIANGLE_BOTTOM="",e.TRIANGLE_LEFT="",e.TRIANGLE_RIGHT="",e.TRIANGLE_TOP="",e.THIN_ARROW="",e.SIGN_IN="",e.LOGOUT="",e.TRANSLATE="",e.CLOSE_PLAIN="",e.CHECK_PLAIN="",e.ARTICLE="",e.COLUMNS="",e.ANALYTICS="",e.COLLECTIONS="",e.ARROW_DOWN="",e.ARROW_LEFT="",e.ARROW_RIGHT="",e.ARROW_UP="",e.SEARCH_IN_PUBLICATION="",e.COPY_TO_CLIPBOARD="",e.SHARED_PBK="",e.ATTACHMENTS="",e.STRIPE_ARROW_LEFT="",e.STRIPE_ARROW_RIGHT="",e.FILTERS="",e.DOT="",e.MINUS="",e.PLUS="",e.MAILS_AND_NOTIFICATIONS="",e.SAVE="",e.LOCKER="",e.ADMIN_INTEGRATION="",e.SYNC="",e.TAG="",e.BOOK_PLAIN="",e.UPLOAD="",e.ONLINE="",e.TAG_PLAIN="",e.ACCOUNT_SETTINGS="",e.PRINT="",e.DEFAULT_ROLES="",e.SHORTCUT_MENU="",e.RELATIVES_PLAIN="",e.RELATIVES="",e.PAUSE="",e.PLAY="",e.ADMIN_PORTAL="",e.STAR="",e.THUMBS_DOWN="",e.THUMBS_DOWN_PLAIN="",e.THUMBS_UP="",e.THUMBS_UP_PLAIN="",e.FEEDBACK_PLAIN="",e.RATE_PLAIN="",e.RATE="",e.OFFLINE_SETTINGS="",e.MY_COLLECTIONS="",e.THIN_ARROW_LEFT="",e.THIN_ARROW_RIGHT="",e.RESET="",e.MY_LIBRARY="",e.UNSTRUCTURED_DOC="",e.CONTEXTUAL="",e.THIN_ARROW_UP="",e.ARROW_RIGHT_TO_LINE="",e.DESKTOP="",e.TABLET_LANDSCAPE="",e.TABLET_PORTRAIT="",e.MOBILE_LANDSCAPE="",e.MOBILE_PORTRAIT="",e.DIAGRAM_SUNBURST="",e.DIAGRAM_SANKEY="",e.COMMENT_QUESTION="",e.COMMENT_QUESTION_PLAIN="",e.MESSAGE_BOT="",e.CHART_SIMPLE="",e.BARS_PROGRESS="",e.BOOK_OPEN_GEAR="",e.BOOK_OPEN_GEAR_SLASH="",e.LINE_CHART="",e.STACKED_CHART="",e.CHART_BAR_STACKED="",e.CHART_BAR_GROUPED="",e.EYE_SLASH="",e.X_MARK="",e.EXPAND_WIDE="",e.PIP="",e.PIP_WIDE="",e.LIFE_RING="",e.GLOBE="",e.PIGGY_BANK="",e.EXTLINK_LIGHT="",e.CLONE="",e.CLONE_LINK_SIMPLE="",e.CHART_BAR_NORMALIZED="",e.CONSUMER="",e.OCTAGON_XMARK="",e.HOURGLASS_HALF="",e.CLOCK="",e.CLOCK_THREE="",e.CALENDAR_DAY="",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="",e.WAND_MAGIC_SPARKLES="",e.PAPER_PLANE="",e.CIRCLE_STOP="",e.ARROW_ROTATE_RIGHT="",e.ARROWS_ROTATE="",e.ALIGN_RIGHT="",e.FORMAT_CLEAR="",e.ALIGN_CENTER="",e.ALIGN_LEFT="",e.PALETTE="",e.BOLD="",e.ITALIC="",e.UNDERLINE="",e.STRIKETHROUGH="",e.LINK_SIMPLE_SLASH="",e.LINK_SIMPLE="",e.ROUTE="",e.CIRCLE_USER_SLASH="",e.CIRCLE_USER_CHECK="",e.LIST_MAGNIFYING_GLASS="",e.MEDAL="",e.THUMBS_UP_THUMBS_DOWN_SOLID="",e.ARROW_TURN_DOWN_RIGHT="",e.FLASK="",e.LOCK_KEYHOLE_OPEN_SOLID="",e.HOURGLASS_END="",e.CIRCLE_QUESTION="",e.GRIP_LINES_SOLID="",e.TRANSLATE_SPARKLE_SOLID="",e.CODE="",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",e.PAPER_PLANE_SLASH="",e.COMPRESS="",e.EXPAND="",e.ARROW_ROTATE_LEFT="",e.EYE="",e.SHARE="󨃱",e.MOBILE_SMALL="",e.SPARKLES="",e.HAND_SOLID="",e.CLOCK_SOLID="",e.CONTEXT_MENU_CURSOR="",e.LANGUAGE_SLASH="",e.MAGNIFYING_GLASS_FLOPPY_DISK="",e.CABINET_FILING_FLOPPY_DISK="",e.BOOKMARK_SLASH="",e.CIRCLE_PAUSE="",e.CIRCLE_PLAY="",e.CIRCLE_STOP_PLAIN="",e.CLOUD_ARROW_DOWN="",e.SHARE_NODES="",e.BELL="",e.BELL_SLASH="",e.FILE="",e.HAND="",e.SQUARE_INFO_SOLID="",e.FILE_CODE="",e.BOX_CODE=""})(po||(po={}));var S;(function(e){e.UNKNOWN="",e.ABW="",e.AUDIO="",e.AVI="",e.CHM="",e.CODE="",e.CSV="",e.DITA="",e.EPUB="",e.EXCEL="",e.FLAC="",e.GIF="",e.GZIP="",e.HTML="",e.IMAGE="",e.JPEG="",e.JSON="",e.M4A="",e.MOV="",e.MP3="",e.MP4="",e.OGG="",e.PDF="",e.PNG="",e.POWERPOINT="",e.RAR="",e.STP="",e.TEXT="",e.VIDEO="",e.WAV="",e.WMA="",e.WORD="",e.XML="",e.YAML="",e.ZIP=""})(S||(S={}));var Sv=new Map([...["abw"].map(e=>[e,S.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(e=>[e,S.AUDIO]),...["avi"].map(e=>[e,S.AVI]),...["chm","xhs"].map(e=>[e,S.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(e=>[e,S.CODE]),...["csv"].map(e=>[e,S.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,S.DITA]),...["epub"].map(e=>[e,S.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,S.EXCEL]),...["flac"].map(e=>[e,S.FLAC]),...["gif"].map(e=>[e,S.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,S.GZIP]),...["html","htm","xhtml"].map(e=>[e,S.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(e=>[e,S.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,S.JPEG]),...["json"].map(e=>[e,S.JSON]),...["m4a","m4p"].map(e=>[e,S.M4A]),...["mov","qt"].map(e=>[e,S.MOV]),...["mp3"].map(e=>[e,S.MP3]),...["mp4","m4v"].map(e=>[e,S.MP4]),...["ogg","oga"].map(e=>[e,S.OGG]),...["pdf","ps"].map(e=>[e,S.PDF]),...["png"].map(e=>[e,S.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,S.POWERPOINT]),...["rar"].map(e=>[e,S.RAR]),...["stp"].map(e=>[e,S.STP]),...["txt","rtf","md","mdown"].map(e=>[e,S.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(e=>[e,S.VIDEO]),...["wav"].map(e=>[e,S.WAV]),...["wma"].map(e=>[e,S.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,S.WORD]),...["xml","xsl","rdf"].map(e=>[e,S.XML]),...["yaml","yml","x-yaml"].map(e=>[e,S.YAML]),...["zip"].map(e=>[e,S.ZIP])]);var Ov={[S.ABW]:"#91ABC6",[S.AUDIO]:"#1795E3",[S.AVI]:"#E63324",[S.CHM]:"#71C3EB",[S.CODE]:"#71C3EB",[S.CSV]:"#1F7345",[S.DITA]:"#71C3EB",[S.EPUB]:"#85B926",[S.EXCEL]:"#1F7345",[S.FLAC]:"#1795E3",[S.GIF]:"#59B031",[S.GZIP]:"#F8AB36",[S.HTML]:"#71C3EB",[S.IMAGE]:"#59B031",[S.JPEG]:"#59B031",[S.JSON]:"#71C3EB",[S.M4A]:"#1795E3",[S.MOV]:"#E63324",[S.MP3]:"#1795E3",[S.MP4]:"#E63324",[S.OGG]:"#1795E3",[S.PDF]:"#E44948",[S.PNG]:"#59B031",[S.POWERPOINT]:"#B54A2B",[S.RAR]:"#F8AB36",[S.STP]:"#3764B1",[S.TEXT]:"#3162AB",[S.UNKNOWN]:"#999999",[S.VIDEO]:"#E63324",[S.WAV]:"#1795E3",[S.WMA]:"#1795E3",[S.WORD]:"#3162AB",[S.XML]:"#71C3EB",[S.YAML]:"#71C3EB",[S.ZIP]:"#F8AB36"};var Cc=C(z()),Te=C(k()),Re={size:Te.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Te.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",Te.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Te.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",Te.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Te.FtCssVariableFactory.extend("--ft-icon-material-font-family","",Te.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Te.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Ec=[Cc.css`
|
|
312
312
|
:host, i.ft-icon {
|
|
313
313
|
display: inline-flex;
|
|
314
314
|
align-items: center;
|