@fluid-topics/ft-reader-topic-content 1.2.55 → 1.2.56

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,7 @@
1
- "use strict";(()=>{var _n=Object.create;var Jt=Object.defineProperty;var Tn=Object.getOwnPropertyDescriptor;var Pn=Object.getOwnPropertyNames;var Rn=Object.getPrototypeOf,Nn=Object.prototype.hasOwnProperty;var je=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Mn=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Pn(t))!Nn.call(e,o)&&o!==r&&Jt(e,o,{get:()=>t[o],enumerable:!(n=Tn(t,o))||n.enumerable});return e};var y=(e,t,r)=>(r=e!=null?_n(Rn(e)):{},Mn(t||!e||!e.__esModule?Jt(r,"default",{value:e,enumerable:!0}):r,e));var C=je((No,Qt)=>{Qt.exports=ftGlobals.wcUtils});var K=je((Mo,Zt)=>{Zt.exports=ftGlobals.lit});var D=je((Do,rr)=>{rr.exports=ftGlobals.litDecorators});var mt=je((Wo,ur)=>{ur.exports=ftGlobals.litUnsafeHTML});var Cn=y(C());var oe=y(K());var er=y(K()),fe=y(C()),Ft={colorError:fe.FtCssVariableFactory.external(fe.designSystemVariables.colorError,"Design system"),fontFamily:fe.FtCssVariableFactory.external(fe.designSystemVariables.contentFont,"Design system")},tr=er.css`
1
+ "use strict";(()=>{var mi=Object.create;var lr=Object.defineProperty;var vi=Object.getOwnPropertyDescriptor;var yi=Object.getOwnPropertyNames;var gi=Object.getPrototypeOf,bi=Object.prototype.hasOwnProperty;var Ne=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Ei=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of yi(t))!bi.call(e,i)&&i!==r&&lr(e,i,{get:()=>t[i],enumerable:!(n=vi(t,i))||n.enumerable});return e};var E=(e,t,r)=>(r=e!=null?mi(gi(e)):{},Ei(t||!e||!e.__esModule?lr(r,"default",{value:e,enumerable:!0}):r,e));var N=Ne((Ea,cr)=>{cr.exports=ftGlobals.wcUtils});var J=Ne((Aa,dr)=>{dr.exports=ftGlobals.lit});var W=Ne((Sa,mr)=>{mr.exports=ftGlobals.litDecorators});var Pt=Ne((Ca,Ar)=>{Ar.exports=ftGlobals.litUnsafeHTML});var wn=Ne((fe,Tn)=>{var dt=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,ft=function(){function e(){this.fetch=!1,this.DOMException=dt.DOMException}return e.prototype=dt,new e}();(function(e){var t=function(r){var n=typeof e<"u"&&e||typeof self<"u"&&self||typeof global<"u"&&global||{},i={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 a(u){return u&&DataView.prototype.isPrototypeOf(u)}if(i.arrayBuffer)var o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=ArrayBuffer.isView||function(u){return u&&o.indexOf(Object.prototype.toString.call(u))>-1};function c(u){if(typeof u!="string"&&(u=String(u)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(u)||u==="")throw new TypeError('Invalid character in header field name: "'+u+'"');return u.toLowerCase()}function l(u){return typeof u!="string"&&(u=String(u)),u}function f(u){var d={next:function(){var b=u.shift();return{done:b===void 0,value:b}}};return i.iterable&&(d[Symbol.iterator]=function(){return d}),d}function h(u){this.map={},u instanceof h?u.forEach(function(d,b){this.append(b,d)},this):Array.isArray(u)?u.forEach(function(d){if(d.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+d.length);this.append(d[0],d[1])},this):u&&Object.getOwnPropertyNames(u).forEach(function(d){this.append(d,u[d])},this)}h.prototype.append=function(u,d){u=c(u),d=l(d);var b=this.map[u];this.map[u]=b?b+", "+d:d},h.prototype.delete=function(u){delete this.map[c(u)]},h.prototype.get=function(u){return u=c(u),this.has(u)?this.map[u]:null},h.prototype.has=function(u){return this.map.hasOwnProperty(c(u))},h.prototype.set=function(u,d){this.map[c(u)]=l(d)},h.prototype.forEach=function(u,d){for(var b in this.map)this.map.hasOwnProperty(b)&&u.call(d,this.map[b],b,this)},h.prototype.keys=function(){var u=[];return this.forEach(function(d,b){u.push(b)}),f(u)},h.prototype.values=function(){var u=[];return this.forEach(function(d){u.push(d)}),f(u)},h.prototype.entries=function(){var u=[];return this.forEach(function(d,b){u.push([b,d])}),f(u)},i.iterable&&(h.prototype[Symbol.iterator]=h.prototype.entries);function p(u){if(!u._noBody){if(u.bodyUsed)return Promise.reject(new TypeError("Already read"));u.bodyUsed=!0}}function g(u){return new Promise(function(d,b){u.onload=function(){d(u.result)},u.onerror=function(){b(u.error)}})}function v(u){var d=new FileReader,b=g(d);return d.readAsArrayBuffer(u),b}function y(u){var d=new FileReader,b=g(d),w=/charset=([A-Za-z0-9_-]+)/.exec(u.type),P=w?w[1]:"utf-8";return d.readAsText(u,P),b}function _(u){for(var d=new Uint8Array(u),b=new Array(d.length),w=0;w<d.length;w++)b[w]=String.fromCharCode(d[w]);return b.join("")}function x(u){if(u.slice)return u.slice(0);var d=new Uint8Array(u.byteLength);return d.set(new Uint8Array(u)),d.buffer}function S(){return this.bodyUsed=!1,this._initBody=function(u){this.bodyUsed=this.bodyUsed,this._bodyInit=u,u?typeof u=="string"?this._bodyText=u:i.blob&&Blob.prototype.isPrototypeOf(u)?this._bodyBlob=u:i.formData&&FormData.prototype.isPrototypeOf(u)?this._bodyFormData=u:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(u)?this._bodyText=u.toString():i.arrayBuffer&&i.blob&&a(u)?(this._bodyArrayBuffer=x(u.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(u)||s(u))?this._bodyArrayBuffer=x(u):this._bodyText=u=Object.prototype.toString.call(u):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof u=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(u)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.blob&&(this.blob=function(){var u=p(this);if(u)return u;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 u=p(this);return u||(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(i.blob)return this.blob().then(v);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var u=p(this);if(u)return u;if(this._bodyBlob)return y(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(_(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i.formData&&(this.formData=function(){return this.text().then($)}),this.json=function(){return this.text().then(JSON.parse)},this}var R=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function T(u){var d=u.toUpperCase();return R.indexOf(d)>-1?d:u}function I(u,d){if(!(this instanceof I))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');d=d||{};var b=d.body;if(u instanceof I){if(u.bodyUsed)throw new TypeError("Already read");this.url=u.url,this.credentials=u.credentials,d.headers||(this.headers=new h(u.headers)),this.method=u.method,this.mode=u.mode,this.signal=u.signal,!b&&u._bodyInit!=null&&(b=u._bodyInit,u.bodyUsed=!0)}else this.url=String(u);if(this.credentials=d.credentials||this.credentials||"same-origin",(d.headers||!this.headers)&&(this.headers=new h(d.headers)),this.method=T(d.method||this.method||"GET"),this.mode=d.mode||this.mode||null,this.signal=d.signal||this.signal||function(){if("AbortController"in n){var O=new AbortController;return O.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&b)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(b),(this.method==="GET"||this.method==="HEAD")&&(d.cache==="no-store"||d.cache==="no-cache")){var w=/([?&])_=[^&]*/;if(w.test(this.url))this.url=this.url.replace(w,"$1_="+new Date().getTime());else{var P=/\?/;this.url+=(P.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}I.prototype.clone=function(){return new I(this,{body:this._bodyInit})};function $(u){var d=new FormData;return u.trim().split("&").forEach(function(b){if(b){var w=b.split("="),P=w.shift().replace(/\+/g," "),O=w.join("=").replace(/\+/g," ");d.append(decodeURIComponent(P),decodeURIComponent(O))}}),d}function me(u){var d=new h,b=u.replace(/\r?\n[\t ]+/g," ");return b.split("\r").map(function(w){return w.indexOf(`
2
+ `)===0?w.substr(1,w.length):w}).forEach(function(w){var P=w.split(":"),O=P.shift().trim();if(O){var $e=P.join(":").trim();try{d.append(O,$e)}catch(Ot){console.warn("Response "+Ot.message)}}}),d}S.call(I.prototype);function H(u,d){if(!(this instanceof H))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(d||(d={}),this.type="default",this.status=d.status===void 0?200:d.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=d.statusText===void 0?"":""+d.statusText,this.headers=new h(d.headers),this.url=d.url||"",this._initBody(u)}S.call(H.prototype),H.prototype.clone=function(){return new H(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},H.error=function(){var u=new H(null,{status:200,statusText:""});return u.ok=!1,u.status=0,u.type="error",u};var ve=[301,302,303,307,308];H.redirect=function(u,d){if(ve.indexOf(d)===-1)throw new RangeError("Invalid status code");return new H(null,{status:d,headers:{location:u}})},r.DOMException=n.DOMException;try{new r.DOMException}catch{r.DOMException=function(d,b){this.message=d,this.name=b;var w=Error(d);this.stack=w.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function xe(u,d){return new Promise(function(b,w){var P=new I(u,d);if(P.signal&&P.signal.aborted)return w(new r.DOMException("Aborted","AbortError"));var O=new XMLHttpRequest;function $e(){O.abort()}O.onload=function(){var k={statusText:O.statusText,headers:me(O.getAllResponseHeaders()||"")};P.url.indexOf("file://")===0&&(O.status<200||O.status>599)?k.status=200:k.status=O.status,k.url="responseURL"in O?O.responseURL:k.headers.get("X-Request-URL");var ye="response"in O?O.response:O.responseText;setTimeout(function(){b(new H(ye,k))},0)},O.onerror=function(){setTimeout(function(){w(new TypeError("Network request failed"))},0)},O.ontimeout=function(){setTimeout(function(){w(new TypeError("Network request timed out"))},0)},O.onabort=function(){setTimeout(function(){w(new r.DOMException("Aborted","AbortError"))},0)};function Ot(k){try{return k===""&&n.location.href?n.location.href:k}catch{return k}}if(O.open(P.method,Ot(P.url),!0),P.credentials==="include"?O.withCredentials=!0:P.credentials==="omit"&&(O.withCredentials=!1),"responseType"in O&&(i.blob?O.responseType="blob":i.arrayBuffer&&(O.responseType="arraybuffer")),d&&typeof d.headers=="object"&&!(d.headers instanceof h||n.Headers&&d.headers instanceof n.Headers)){var ur=[];Object.getOwnPropertyNames(d.headers).forEach(function(k){ur.push(c(k)),O.setRequestHeader(k,l(d.headers[k]))}),P.headers.forEach(function(k,ye){ur.indexOf(ye)===-1&&O.setRequestHeader(ye,k)})}else P.headers.forEach(function(k,ye){O.setRequestHeader(ye,k)});P.signal&&(P.signal.addEventListener("abort",$e),O.onreadystatechange=function(){O.readyState===4&&P.signal.removeEventListener("abort",$e)}),O.send(typeof P._bodyInit>"u"?null:P._bodyInit)})}return xe.polyfill=!0,n.fetch||(n.fetch=xe,n.Headers=h,n.Request=I,n.Response=H),r.Headers=h,r.Request=I,r.Response=H,r.fetch=xe,r}({})})(ft);ft.fetch.ponyfill=!0;delete ft.fetch.polyfill;var Le=dt.fetch?dt:ft;fe=Le.fetch;fe.default=Le.fetch;fe.fetch=Le.fetch;fe.Headers=Le.Headers;fe.Request=Le.Request;fe.Response=Le.Response;Tn.exports=fe});var hi=E(N());var pe=E(J());var pr=E(J()),Se=E(N()),fr={colorError:Se.FtCssVariableFactory.external(Se.designSystemVariables.colorError,"Design system"),fontFamily:Se.FtCssVariableFactory.external(Se.designSystemVariables.contentFont,"Design system")},hr=pr.css`
2
3
  .topic {
3
- font-family: ${Ft.fontFamily};
4
+ font-family: ${fr.fontFamily};
4
5
  overflow-x: auto;
5
6
  }
6
7
 
@@ -10,7 +11,7 @@
10
11
  }
11
12
 
12
13
  .topic-on-error ft-icon {
13
- color: ${Ft.colorError}
14
+ color: ${fr.colorError}
14
15
  }
15
16
 
16
17
  .topic-loading {
@@ -25,7 +26,7 @@
25
26
  ft-skeleton {
26
27
  height: 100px;
27
28
  }
28
- `;var ht=y(D());var ir=y(C()),ar=y(D());var nr;(function(e){e.clusteringHelperCreated="clustering-helper-created",e.mapAttachmentsUpdate="map-attachments-update"})(nr||(nr={}));var or;(function(e){e.FEEDBACK="FEEDBACK",e.RATING="RATING",e.PRINT="PRINT",e.BOOKMARK="BOOKMARK",e.COLLECTIONS="COLLECTIONS",e.PERSONAL_BOOKS="PERSONAL_BOOKS"})(or||(or={}));var Ln=function(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},dt=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},ft=Symbol("registerInterval");function Dn(e){var t;class r extends e{constructor(){super(...arguments),this[t]=0}setReaderStateManager(o){this.clearStateManager(),this.stateManager=o,this.addStore(o.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var o;return(o=this.stateManager)===null||o===void 0?void 0:o.service}connectedCallback(){super.connectedCallback(),this[ft]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[ft]):this.dispatchEvent(new dt)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=ft,Ln([(0,ar.state)()],r.prototype,"stateManager",void 0),r}var ke=class extends Dn(ir.FtLitElementRedux){};var sr=function(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},vt=class extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},pt=Symbol("registerInterval");function jn(e){var t;class r extends e{constructor(){super(...arguments),this.disableContextInteractions=!1,this[t]=0}connectedCallback(){super.connectedCallback(),this[pt]=window.setInterval(()=>this.tryToRegisterToTopicContext(),50)}tryToRegisterToTopicContext(){this.tocNode!=null?window.clearInterval(this[pt]):this.dispatchEvent(new vt)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return t=pt,sr([(0,ht.state)()],r.prototype,"tocNode",void 0),sr([(0,ht.state)()],r.prototype,"disableContextInteractions",void 0),r}var Ie=class extends jn(ke){};var An=y(mt()),R=y(C()),ie=y(D());var pr=y(C());var we=y(K()),Q=y(D()),fr=y(C()),dr=y(mt());var Ue;(function(e){e.ADD_TO_PBK="&#xe800;",e.ALERT="&#xe801;",e.ADD_ALERT="&#xe802;",e.BACK_TO_SEARCH="&#xe803;",e.ADD_BOOKMARK="&#xe804;",e.BOOKMARK="&#xe805;",e.BOOKS="&#xe806;",e.MENU="&#xe807;",e.DOWNLOAD="&#xe808;",e.EDIT="&#xe809;",e.FEEDBACK="&#xe80a;",e.HOME="&#xe80b;",e.MODIFY_PBK="&#xe80c;",e.SCHEDULED="&#xe80d;",e.SEARCH="&#xe80e;",e.EXPORT="&#xe80f;",e.TOC="&#xe810;",e.WRITE_UGC="&#xe811;",e.TRASH="&#xe812;",e.USER="&#xe813;",e.EXTLINK="&#xe814;",e.CALENDAR="&#xe815;",e.OFFLINE="&#xe816;",e.BOOK="&#xe817;",e.DOWNLOAD_PLAIN="&#xe818;",e.CHECK="&#xe819;",e.STAR_PLAIN="&#xe900;",e.TOPICS="&#xe901;",e.DISC="&#xe902;",e.CIRCLE="&#xe903;",e.SHARED="&#xe904;",e.SORT_UNSORTED="&#xe905;",e.SORT_UP="&#xe906;",e.SORT_DOWN="&#xe907;",e.WORKING="&#xe908;",e.CLOSE="&#xe909;",e.ZOOM_OUT="&#xe90a;",e.ZOOM_IN="&#xe90b;",e.ZOOM_REALSIZE="&#xe90c;",e.ZOOM_FULLSCREEN="&#xe90d;",e.ADMIN_RESTRICTED="&#xe90e;",e.ADMIN="&#xe90f;",e.ADMIN_KHUB="&#xe910;",e.ADMIN_THEME="&#xe911;",e.ADMIN_USERS="&#xe912;",e.WARNING="&#xe913;",e.CONTEXT="&#xe914;",e.SEARCH_HOME="&#xe915;",e.STEPS="&#xe916;",e.ICON_EXPAND="&#xe917;",e.ICON_COLLAPSE="&#xe918;",e.INFO="&#xe919;",e.MINUS_PLAIN="&#xe91a;",e.PLUS_PLAIN="&#xe91b;",e.FACET_HAS_DESCENDANT="&#xe91c;",e.TRIANGLE_BOTTOM="&#xe91d;",e.TRIANGLE_LEFT="&#xe91e;",e.TRIANGLE_RIGHT="&#xe91f;",e.TRIANGLE_TOP="&#xe920;",e.THIN_ARROW="&#xe921;",e.SIGN_IN="&#xe922;",e.LOGOUT="&#xe923;",e.TRANSLATE="&#xe924;",e.CLOSE_PLAIN="&#xe925;",e.CHECK_PLAIN="&#xe926;",e.ARTICLE="&#xe927;",e.COLUMNS="&#xe928;",e.ANALYTICS="&#xe929;",e.COLLECTIONS="&#xe92a;",e.ARROW_DOWN="&#xe92b;",e.ARROW_LEFT="&#xe92c;",e.ARROW_RIGHT="&#xe92d;",e.ARROW_UP="&#xe92e;",e.SEARCH_IN_PUBLICATION="&#xe92f;",e.COPY_TO_CLIPBOARD="&#xe930;",e.SHARED_PBK="&#xe931;",e.ATTACHMENTS="&#xe932;",e.STRIPE_ARROW_LEFT="&#xe933;",e.STRIPE_ARROW_RIGHT="&#xe934;",e.FILTERS="&#xe935;",e.DOT="&#xe936;",e.MINUS="&#xe937;",e.PLUS="&#xe938;",e.MAILS_AND_NOTIFICATIONS="&#xe939;",e.SAVE="&#xe93a;",e.LOCKER="&#xe93b;",e.ADMIN_INTEGRATION="&#xe93c;",e.SYNC="&#xe93d;",e.TAG="&#xe93e;",e.BOOK_PLAIN="&#xe93f;",e.UPLOAD="&#xe940;",e.ONLINE="&#xe941;",e.TAG_PLAIN="&#xe942;",e.ACCOUNT_SETTINGS="&#xe943;",e.PRINT="&#xe944;",e.DEFAULT_ROLES="&#xe945;",e.SHORTCUT_MENU="&#xe946;",e.RELATIVES_PLAIN="&#xe947;",e.RELATIVES="&#xe948;",e.PAUSE="&#xe949;",e.PLAY="&#xe94a;",e.ADMIN_PORTAL="&#xe94b;",e.STAR="&#xe94c;",e.THUMBS_DOWN="&#xe94d;",e.THUMBS_DOWN_PLAIN="&#xe94e;",e.THUMBS_UP="&#xe94f;",e.THUMBS_UP_PLAIN="&#xe950;",e.FEEDBACK_PLAIN="&#xe951;",e.RATE_PLAIN="&#xe952;",e.RATE="&#xe953;",e.OFFLINE_SETTINGS="&#xe954;",e.MY_COLLECTIONS="&#xe955;",e.THIN_ARROW_LEFT="&#xe956;",e.THIN_ARROW_RIGHT="&#xe957;",e.RESET="&#xe958;",e.MY_LIBRARY="&#xe959;",e.UNSTRUCTURED_DOC="&#xe95a;",e.CONTEXTUAL="&#xe95b;",e.THIN_ARROW_UP="&#xe95c;",e.ARROW_RIGHT_TO_LINE="&#xe95d;",e.DESKTOP="&#xe95e;",e.TABLET_LANDSCAPE="&#xe95f;",e.TABLET_PORTRAIT="&#xe960;",e.MOBILE_LANDSCAPE="&#xe961;",e.MOBILE_PORTRAIT="&#xe962;",e.DIAGRAM_SUNBURST="&#xe963;",e.DIAGRAM_SANKEY="&#xe964;",e.COMMENT_QUESTION="&#xe965;",e.COMMENT_QUESTION_PLAIN="&#xe966;",e.MESSAGE_BOT="&#xe967;",e.CHART_SIMPLE="&#xe968;",e.BARS_PROGRESS="&#xe969;",e.BOOK_OPEN_GEAR="&#xe96a;",e.BOOK_OPEN_GEAR_SLASH="&#xe96b;",e.LINE_CHART="&#xe96c;",e.STACKED_CHART="&#xe96d;",e.CHART_BAR_STACKED="&#xe96e;",e.CHART_BAR_GROUPED="&#xe96f;",e.EYE_SLASH="&#xe970;",e.X_MARK="&#xe971;",e.EXPAND_WIDE="&#xe972;",e.PIP="&#xe973;",e.PIP_WIDE="&#xe974;",e.LIFE_RING="&#xe975;",e.GLOBE="&#xe976;",e.PIGGY_BANK="&#xe977;",e.EXTLINK_LIGHT="&#xe978;",e.CLONE="&#xe979;",e.CLONE_LINK_SIMPLE="&#xe97a;",e.CHART_BAR_NORMALIZED="&#xe97b;",e.CONSUMER="&#xe97c;",e.OCTAGON_XMARK="&#xe97d;",e.HOURGLASS_HALF="&#xe97e;",e.CLOCK="&#xe97f;",e.CLOCK_THREE="&#xe97f;",e.CALENDAR_DAY="&#xe980;",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",e.WAND_MAGIC_SPARKLES="&#xe982;",e.PAPER_PLANE="&#xe983;",e.CIRCLE_STOP="&#xe984;",e.ARROW_ROTATE_RIGHT="&#xe985;",e.ARROWS_ROTATE="&#xe986;",e.ALIGN_RIGHT="&#xe987;",e.FORMAT_CLEAR="&#xe988;",e.ALIGN_CENTER="&#xe989;",e.ALIGN_LEFT="&#xe98a;",e.PALETTE="&#xe98b;",e.BOLD="&#xe98c;",e.ITALIC="&#xe98d;",e.UNDERLINE="&#xe98e;",e.STRIKETHROUGH="&#xe98f;",e.LINK_SIMPLE_SLASH="&#xe990;",e.LINK_SIMPLE="&#xe991;",e.ROUTE="&#xe992;",e.CIRCLE_USER_SLASH="&#xe993;",e.CIRCLE_USER_CHECK="&#xe994;",e.LIST_MAGNIFYING_GLASS="&#xe995;",e.MEDAL="&#xe996;",e.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",e.ARROW_TURN_DOWN_RIGHT="&#xe998;",e.FLASK="&#xe999;",e.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",e.HOURGLASS_END="&#xe99b;",e.CIRCLE_QUESTION="&#xe99c;",e.GRIP_LINES_SOLID="&#xe99d;",e.TRANSLATE_SPARKLE_SOLID="&#xe99e;",e.CODE="&#xe99f;",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",e.PAPER_PLANE_SLASH="&#xe9a1;",e.COMPRESS="&#xe9a2;",e.EXPAND="&#xe9a3;",e.ARROW_ROTATE_LEFT="&#xe9a4;",e.EYE="&#xf06e;",e.SHARE="&#xe80f1;",e.MOBILE_SMALL="&#xe9a5;",e.SPARKLES="&#xe9a6;",e.HAND_SOLID="&#xe9a7;"})(Ue||(Ue={}));var d;(function(e){e.UNKNOWN="&#xe90a;",e.ABW="&#xe900;",e.AUDIO="&#xe901;",e.AVI="&#xe902;",e.CHM="&#xe904;",e.CODE="&#xe905;",e.CSV="&#xe903;",e.DITA="&#xe906;",e.EPUB="&#xe907;",e.EXCEL="&#xe908;",e.FLAC="&#xe909;",e.GIF="&#xe90b;",e.GZIP="&#xe90c;",e.HTML="&#xe90d;",e.IMAGE="&#xe90e;",e.JPEG="&#xe90f;",e.JSON="&#xe910;",e.M4A="&#xe911;",e.MOV="&#xe912;",e.MP3="&#xe913;",e.MP4="&#xe914;",e.OGG="&#xe915;",e.PDF="&#xe916;",e.PNG="&#xe917;",e.POWERPOINT="&#xe918;",e.RAR="&#xe91a;",e.STP="&#xe91b;",e.TEXT="&#xe91c;",e.VIDEO="&#xe91e;",e.WAV="&#xe91f;",e.WMA="&#xe920;",e.WORD="&#xe921;",e.XML="&#xe922;",e.YAML="&#xe919;",e.ZIP="&#xe923;"})(d||(d={}));var Vo=new Map([...["abw"].map(e=>[e,d.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,d.AUDIO]),...["avi"].map(e=>[e,d.AVI]),...["chm","xhs"].map(e=>[e,d.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,d.CODE]),...["csv"].map(e=>[e,d.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,d.DITA]),...["epub"].map(e=>[e,d.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,d.EXCEL]),...["flac"].map(e=>[e,d.FLAC]),...["gif"].map(e=>[e,d.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,d.GZIP]),...["html","htm","xhtml"].map(e=>[e,d.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,d.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,d.JPEG]),...["json"].map(e=>[e,d.JSON]),...["m4a","m4p"].map(e=>[e,d.M4A]),...["mov","qt"].map(e=>[e,d.MOV]),...["mp3"].map(e=>[e,d.MP3]),...["mp4","m4v"].map(e=>[e,d.MP4]),...["ogg","oga"].map(e=>[e,d.OGG]),...["pdf","ps"].map(e=>[e,d.PDF]),...["png"].map(e=>[e,d.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,d.POWERPOINT]),...["rar"].map(e=>[e,d.RAR]),...["stp"].map(e=>[e,d.STP]),...["txt","rtf","md","mdown"].map(e=>[e,d.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,d.VIDEO]),...["wav"].map(e=>[e,d.WAV]),...["wma"].map(e=>[e,d.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,d.WORD]),...["xml","xsl","rdf"].map(e=>[e,d.XML]),...["yaml","yml","x-yaml"].map(e=>[e,d.YAML]),...["zip"].map(e=>[e,d.ZIP])]);var Ko={[d.ABW]:"#91ABC6",[d.AUDIO]:"#1795E3",[d.AVI]:"#E63324",[d.CHM]:"#71C3EB",[d.CODE]:"#71C3EB",[d.CSV]:"#1F7345",[d.DITA]:"#71C3EB",[d.EPUB]:"#85B926",[d.EXCEL]:"#1F7345",[d.FLAC]:"#1795E3",[d.GIF]:"#59B031",[d.GZIP]:"#F8AB36",[d.HTML]:"#71C3EB",[d.IMAGE]:"#59B031",[d.JPEG]:"#59B031",[d.JSON]:"#71C3EB",[d.M4A]:"#1795E3",[d.MOV]:"#E63324",[d.MP3]:"#1795E3",[d.MP4]:"#E63324",[d.OGG]:"#1795E3",[d.PDF]:"#E44948",[d.PNG]:"#59B031",[d.POWERPOINT]:"#B54A2B",[d.RAR]:"#F8AB36",[d.STP]:"#3764B1",[d.TEXT]:"#3162AB",[d.UNKNOWN]:"#999999",[d.VIDEO]:"#E63324",[d.WAV]:"#1795E3",[d.WMA]:"#1795E3",[d.WORD]:"#3162AB",[d.XML]:"#71C3EB",[d.YAML]:"#71C3EB",[d.ZIP]:"#F8AB36"};var cr=y(K()),I=y(C()),q={size:I.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:I.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",I.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:I.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",I.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:I.FtCssVariableFactory.extend("--ft-icon-material-font-family","",I.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:I.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},lr=[cr.css`
29
+ `;var Rt=E(W());var gr=E(N()),br=E(W());var vr;(function(e){e.clusteringHelperCreated="clustering-helper-created",e.mapAttachmentsUpdate="map-attachments-update"})(vr||(vr={}));var yr;(function(e){e.FEEDBACK="FEEDBACK",e.RATING="RATING",e.PRINT="PRINT",e.BOOKMARK="BOOKMARK",e.COLLECTIONS="COLLECTIONS",e.PERSONAL_BOOKS="PERSONAL_BOOKS"})(yr||(yr={}));var Ai=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},Tt=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},_t=Symbol("registerInterval");function xi(e){var t;class r extends e{constructor(){super(...arguments),this[t]=0}setReaderStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var i;return(i=this.stateManager)===null||i===void 0?void 0:i.service}connectedCallback(){super.connectedCallback(),this[_t]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[_t]):this.dispatchEvent(new Tt)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=_t,Ai([(0,br.state)()],r.prototype,"stateManager",void 0),r}var ze=class extends xi(gr.FtLitElementRedux){};var Er=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},Ct=class extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},wt=Symbol("registerInterval");function Si(e){var t;class r extends e{constructor(){super(...arguments),this.disableContextInteractions=!1,this[t]=0}connectedCallback(){super.connectedCallback(),this[wt]=window.setInterval(()=>this.tryToRegisterToTopicContext(),50)}tryToRegisterToTopicContext(){this.tocNode!=null?window.clearInterval(this[wt]):this.dispatchEvent(new Ct)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return t=wt,Er([(0,Rt.state)()],r.prototype,"tocNode",void 0),Er([(0,Rt.state)()],r.prototype,"disableContextInteractions",void 0),r}var Fe=class extends Si(ze){};var pi=E(Pt()),B=E(N()),he=E(W());var Tr=E(N());var De=E(J()),ae=E(W()),Or=E(N()),_r=E(Pt());var Ye;(function(e){e.ADD_TO_PBK="&#xe800;",e.ALERT="&#xe801;",e.ADD_ALERT="&#xe802;",e.BACK_TO_SEARCH="&#xe803;",e.ADD_BOOKMARK="&#xe804;",e.BOOKMARK="&#xe805;",e.BOOKS="&#xe806;",e.MENU="&#xe807;",e.DOWNLOAD="&#xe808;",e.EDIT="&#xe809;",e.FEEDBACK="&#xe80a;",e.HOME="&#xe80b;",e.MODIFY_PBK="&#xe80c;",e.SCHEDULED="&#xe80d;",e.SEARCH="&#xe80e;",e.EXPORT="&#xe80f;",e.TOC="&#xe810;",e.WRITE_UGC="&#xe811;",e.TRASH="&#xe812;",e.USER="&#xe813;",e.EXTLINK="&#xe814;",e.CALENDAR="&#xe815;",e.OFFLINE="&#xe816;",e.BOOK="&#xe817;",e.DOWNLOAD_PLAIN="&#xe818;",e.CHECK="&#xe819;",e.STAR_PLAIN="&#xe900;",e.TOPICS="&#xe901;",e.DISC="&#xe902;",e.CIRCLE="&#xe903;",e.SHARED="&#xe904;",e.SORT_UNSORTED="&#xe905;",e.SORT_UP="&#xe906;",e.SORT_DOWN="&#xe907;",e.WORKING="&#xe908;",e.CLOSE="&#xe909;",e.ZOOM_OUT="&#xe90a;",e.ZOOM_IN="&#xe90b;",e.ZOOM_REALSIZE="&#xe90c;",e.ZOOM_FULLSCREEN="&#xe90d;",e.ADMIN_RESTRICTED="&#xe90e;",e.ADMIN="&#xe90f;",e.ADMIN_KHUB="&#xe910;",e.ADMIN_THEME="&#xe911;",e.ADMIN_USERS="&#xe912;",e.WARNING="&#xe913;",e.CONTEXT="&#xe914;",e.SEARCH_HOME="&#xe915;",e.STEPS="&#xe916;",e.ICON_EXPAND="&#xe917;",e.ICON_COLLAPSE="&#xe918;",e.INFO="&#xe919;",e.MINUS_PLAIN="&#xe91a;",e.PLUS_PLAIN="&#xe91b;",e.FACET_HAS_DESCENDANT="&#xe91c;",e.TRIANGLE_BOTTOM="&#xe91d;",e.TRIANGLE_LEFT="&#xe91e;",e.TRIANGLE_RIGHT="&#xe91f;",e.TRIANGLE_TOP="&#xe920;",e.THIN_ARROW="&#xe921;",e.SIGN_IN="&#xe922;",e.LOGOUT="&#xe923;",e.TRANSLATE="&#xe924;",e.CLOSE_PLAIN="&#xe925;",e.CHECK_PLAIN="&#xe926;",e.ARTICLE="&#xe927;",e.COLUMNS="&#xe928;",e.ANALYTICS="&#xe929;",e.COLLECTIONS="&#xe92a;",e.ARROW_DOWN="&#xe92b;",e.ARROW_LEFT="&#xe92c;",e.ARROW_RIGHT="&#xe92d;",e.ARROW_UP="&#xe92e;",e.SEARCH_IN_PUBLICATION="&#xe92f;",e.COPY_TO_CLIPBOARD="&#xe930;",e.SHARED_PBK="&#xe931;",e.ATTACHMENTS="&#xe932;",e.STRIPE_ARROW_LEFT="&#xe933;",e.STRIPE_ARROW_RIGHT="&#xe934;",e.FILTERS="&#xe935;",e.DOT="&#xe936;",e.MINUS="&#xe937;",e.PLUS="&#xe938;",e.MAILS_AND_NOTIFICATIONS="&#xe939;",e.SAVE="&#xe93a;",e.LOCKER="&#xe93b;",e.ADMIN_INTEGRATION="&#xe93c;",e.SYNC="&#xe93d;",e.TAG="&#xe93e;",e.BOOK_PLAIN="&#xe93f;",e.UPLOAD="&#xe940;",e.ONLINE="&#xe941;",e.TAG_PLAIN="&#xe942;",e.ACCOUNT_SETTINGS="&#xe943;",e.PRINT="&#xe944;",e.DEFAULT_ROLES="&#xe945;",e.SHORTCUT_MENU="&#xe946;",e.RELATIVES_PLAIN="&#xe947;",e.RELATIVES="&#xe948;",e.PAUSE="&#xe949;",e.PLAY="&#xe94a;",e.ADMIN_PORTAL="&#xe94b;",e.STAR="&#xe94c;",e.THUMBS_DOWN="&#xe94d;",e.THUMBS_DOWN_PLAIN="&#xe94e;",e.THUMBS_UP="&#xe94f;",e.THUMBS_UP_PLAIN="&#xe950;",e.FEEDBACK_PLAIN="&#xe951;",e.RATE_PLAIN="&#xe952;",e.RATE="&#xe953;",e.OFFLINE_SETTINGS="&#xe954;",e.MY_COLLECTIONS="&#xe955;",e.THIN_ARROW_LEFT="&#xe956;",e.THIN_ARROW_RIGHT="&#xe957;",e.RESET="&#xe958;",e.MY_LIBRARY="&#xe959;",e.UNSTRUCTURED_DOC="&#xe95a;",e.CONTEXTUAL="&#xe95b;",e.THIN_ARROW_UP="&#xe95c;",e.ARROW_RIGHT_TO_LINE="&#xe95d;",e.DESKTOP="&#xe95e;",e.TABLET_LANDSCAPE="&#xe95f;",e.TABLET_PORTRAIT="&#xe960;",e.MOBILE_LANDSCAPE="&#xe961;",e.MOBILE_PORTRAIT="&#xe962;",e.DIAGRAM_SUNBURST="&#xe963;",e.DIAGRAM_SANKEY="&#xe964;",e.COMMENT_QUESTION="&#xe965;",e.COMMENT_QUESTION_PLAIN="&#xe966;",e.MESSAGE_BOT="&#xe967;",e.CHART_SIMPLE="&#xe968;",e.BARS_PROGRESS="&#xe969;",e.BOOK_OPEN_GEAR="&#xe96a;",e.BOOK_OPEN_GEAR_SLASH="&#xe96b;",e.LINE_CHART="&#xe96c;",e.STACKED_CHART="&#xe96d;",e.CHART_BAR_STACKED="&#xe96e;",e.CHART_BAR_GROUPED="&#xe96f;",e.EYE_SLASH="&#xe970;",e.X_MARK="&#xe971;",e.EXPAND_WIDE="&#xe972;",e.PIP="&#xe973;",e.PIP_WIDE="&#xe974;",e.LIFE_RING="&#xe975;",e.GLOBE="&#xe976;",e.PIGGY_BANK="&#xe977;",e.EXTLINK_LIGHT="&#xe978;",e.CLONE="&#xe979;",e.CLONE_LINK_SIMPLE="&#xe97a;",e.CHART_BAR_NORMALIZED="&#xe97b;",e.CONSUMER="&#xe97c;",e.OCTAGON_XMARK="&#xe97d;",e.HOURGLASS_HALF="&#xe97e;",e.CLOCK="&#xe97f;",e.CLOCK_THREE="&#xe97f;",e.CALENDAR_DAY="&#xe980;",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",e.WAND_MAGIC_SPARKLES="&#xe982;",e.PAPER_PLANE="&#xe983;",e.CIRCLE_STOP="&#xe984;",e.ARROW_ROTATE_RIGHT="&#xe985;",e.ARROWS_ROTATE="&#xe986;",e.ALIGN_RIGHT="&#xe987;",e.FORMAT_CLEAR="&#xe988;",e.ALIGN_CENTER="&#xe989;",e.ALIGN_LEFT="&#xe98a;",e.PALETTE="&#xe98b;",e.BOLD="&#xe98c;",e.ITALIC="&#xe98d;",e.UNDERLINE="&#xe98e;",e.STRIKETHROUGH="&#xe98f;",e.LINK_SIMPLE_SLASH="&#xe990;",e.LINK_SIMPLE="&#xe991;",e.ROUTE="&#xe992;",e.CIRCLE_USER_SLASH="&#xe993;",e.CIRCLE_USER_CHECK="&#xe994;",e.LIST_MAGNIFYING_GLASS="&#xe995;",e.MEDAL="&#xe996;",e.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",e.ARROW_TURN_DOWN_RIGHT="&#xe998;",e.FLASK="&#xe999;",e.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",e.HOURGLASS_END="&#xe99b;",e.CIRCLE_QUESTION="&#xe99c;",e.GRIP_LINES_SOLID="&#xe99d;",e.TRANSLATE_SPARKLE_SOLID="&#xe99e;",e.CODE="&#xe99f;",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",e.PAPER_PLANE_SLASH="&#xe9a1;",e.COMPRESS="&#xe9a2;",e.EXPAND="&#xe9a3;",e.ARROW_ROTATE_LEFT="&#xe9a4;",e.EYE="&#xf06e;",e.SHARE="&#xe80f1;",e.MOBILE_SMALL="&#xe9a5;",e.SPARKLES="&#xe9a6;",e.HAND_SOLID="&#xe9a7;"})(Ye||(Ye={}));var m;(function(e){e.UNKNOWN="&#xe90a;",e.ABW="&#xe900;",e.AUDIO="&#xe901;",e.AVI="&#xe902;",e.CHM="&#xe904;",e.CODE="&#xe905;",e.CSV="&#xe903;",e.DITA="&#xe906;",e.EPUB="&#xe907;",e.EXCEL="&#xe908;",e.FLAC="&#xe909;",e.GIF="&#xe90b;",e.GZIP="&#xe90c;",e.HTML="&#xe90d;",e.IMAGE="&#xe90e;",e.JPEG="&#xe90f;",e.JSON="&#xe910;",e.M4A="&#xe911;",e.MOV="&#xe912;",e.MP3="&#xe913;",e.MP4="&#xe914;",e.OGG="&#xe915;",e.PDF="&#xe916;",e.PNG="&#xe917;",e.POWERPOINT="&#xe918;",e.RAR="&#xe91a;",e.STP="&#xe91b;",e.TEXT="&#xe91c;",e.VIDEO="&#xe91e;",e.WAV="&#xe91f;",e.WMA="&#xe920;",e.WORD="&#xe921;",e.XML="&#xe922;",e.YAML="&#xe919;",e.ZIP="&#xe923;"})(m||(m={}));var Pa=new Map([...["abw"].map(e=>[e,m.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,m.AUDIO]),...["avi"].map(e=>[e,m.AVI]),...["chm","xhs"].map(e=>[e,m.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,m.CODE]),...["csv"].map(e=>[e,m.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,m.DITA]),...["epub"].map(e=>[e,m.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,m.EXCEL]),...["flac"].map(e=>[e,m.FLAC]),...["gif"].map(e=>[e,m.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,m.GZIP]),...["html","htm","xhtml"].map(e=>[e,m.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,m.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,m.JPEG]),...["json"].map(e=>[e,m.JSON]),...["m4a","m4p"].map(e=>[e,m.M4A]),...["mov","qt"].map(e=>[e,m.MOV]),...["mp3"].map(e=>[e,m.MP3]),...["mp4","m4v"].map(e=>[e,m.MP4]),...["ogg","oga"].map(e=>[e,m.OGG]),...["pdf","ps"].map(e=>[e,m.PDF]),...["png"].map(e=>[e,m.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,m.POWERPOINT]),...["rar"].map(e=>[e,m.RAR]),...["stp"].map(e=>[e,m.STP]),...["txt","rtf","md","mdown"].map(e=>[e,m.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,m.VIDEO]),...["wav"].map(e=>[e,m.WAV]),...["wma"].map(e=>[e,m.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,m.WORD]),...["xml","xsl","rdf"].map(e=>[e,m.XML]),...["yaml","yml","x-yaml"].map(e=>[e,m.YAML]),...["zip"].map(e=>[e,m.ZIP])]);var La={[m.ABW]:"#91ABC6",[m.AUDIO]:"#1795E3",[m.AVI]:"#E63324",[m.CHM]:"#71C3EB",[m.CODE]:"#71C3EB",[m.CSV]:"#1F7345",[m.DITA]:"#71C3EB",[m.EPUB]:"#85B926",[m.EXCEL]:"#1F7345",[m.FLAC]:"#1795E3",[m.GIF]:"#59B031",[m.GZIP]:"#F8AB36",[m.HTML]:"#71C3EB",[m.IMAGE]:"#59B031",[m.JPEG]:"#59B031",[m.JSON]:"#71C3EB",[m.M4A]:"#1795E3",[m.MOV]:"#E63324",[m.MP3]:"#1795E3",[m.MP4]:"#E63324",[m.OGG]:"#1795E3",[m.PDF]:"#E44948",[m.PNG]:"#59B031",[m.POWERPOINT]:"#B54A2B",[m.RAR]:"#F8AB36",[m.STP]:"#3764B1",[m.TEXT]:"#3162AB",[m.UNKNOWN]:"#999999",[m.VIDEO]:"#E63324",[m.WAV]:"#1795E3",[m.WMA]:"#1795E3",[m.WORD]:"#3162AB",[m.XML]:"#71C3EB",[m.YAML]:"#71C3EB",[m.ZIP]:"#F8AB36"};var xr=E(J()),z=E(N()),te={size:z.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:z.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",z.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:z.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",z.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:z.FtCssVariableFactory.extend("--ft-icon-material-font-family","",z.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:z.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Sr=[xr.css`
29
30
  :host, i.ft-icon {
30
31
  display: inline-flex;
31
32
  align-items: center;
@@ -34,14 +35,14 @@
34
35
  }
35
36
 
36
37
  :host {
37
- width: ${q.size};
38
- height: ${q.size};
38
+ width: ${te.size};
39
+ height: ${te.size};
39
40
  }
40
41
 
41
42
  i.ft-icon {
42
43
  width: 100%;
43
44
  height: 100%;
44
- font-size: ${q.size};
45
+ font-size: ${te.size};
45
46
  line-height: 1;
46
47
  font-weight: normal;
47
48
  text-transform: none;
@@ -52,62 +53,62 @@
52
53
  text-rendering: auto;
53
54
  -webkit-font-smoothing: antialiased;
54
55
  -moz-osx-font-smoothing: grayscale;
55
- vertical-align: ${q.verticalAlign};
56
+ vertical-align: ${te.verticalAlign};
56
57
  }
57
58
 
58
59
  i.ft-icon.ft-icon--fluid-topics {
59
- font-family: ${q.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
60
+ font-family: ${te.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
60
61
 
61
62
  /* Ugly fix because font is broken */
62
- font-size: calc(0.75 * ${q.size});
63
- line-height: ${q.size};
63
+ font-size: calc(0.75 * ${te.size});
64
+ line-height: ${te.size};
64
65
  position: relative;
65
66
  top: -4%;
66
67
  justify-content: center;
67
68
  }
68
69
 
69
70
  .ft-icon--file-format {
70
- font-family: ${q.fileFormatFontFamily}, ft-mime, sans-serif;
71
+ font-family: ${te.fileFormatFontFamily}, ft-mime, sans-serif;
71
72
  }
72
73
 
73
74
  .ft-icon--material {
74
- font-family: ${q.materialFontFamily}, "Material Icons", sans-serif;
75
+ font-family: ${te.materialFontFamily}, "Material Icons", sans-serif;
75
76
  }
76
- `,I.noTextSelect];var J;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(J||(J={}));var Ee=function(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},U=class extends fr.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=we.nothing}render(){let t=this.variant&&Object.values(J).includes(this.variant)?this.variant:J.fluid_topics,r=t!==J.material||!!this.value;return we.html`
77
+ `,z.noTextSelect];var ie;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(ie||(ie={}));var Me=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},F=class extends Or.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=De.nothing}render(){let t=this.variant&&Object.values(ie).includes(this.variant)?this.variant:ie.fluid_topics,r=t!==ie.material||!!this.value;return De.html`
77
78
  <i class="ft-icon ft-icon--${t} ft-no-text-select" part="icon icon-${t}">
78
- ${(0,dr.unsafeHTML)(this.resolvedIcon)}
79
+ ${(0,_r.unsafeHTML)(this.resolvedIcon)}
79
80
  <slot ?hidden=${r}></slot>
80
81
  </i>
81
- `}get textContent(){var t,r;return(r=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&r!==void 0?r:""}update(t){super.update(t),["value","variant"].some(r=>t.has(r))&&this.resolveIcon()}resolveIcon(){var t,r;let n=this.value||this.textContent;switch(this.variant){case J.file_format:this.resolvedIcon=(t=d[n.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:n;break;case J.material:this.resolvedIcon=this.value||we.nothing;break;default:this.resolvedIcon=(r=Ue[n.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:n;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};U.elementDefinitions={};U.styles=lr;Ee([(0,Q.property)()],U.prototype,"variant",void 0);Ee([(0,Q.property)()],U.prototype,"value",void 0);Ee([(0,Q.property)({reflect:!0,attribute:"aria-hidden"})],U.prototype,"ariaHidden",void 0);Ee([(0,Q.state)()],U.prototype,"resolvedIcon",void 0);Ee([(0,Q.query)("slot")],U.prototype,"slottedContent",void 0);(0,pr.customElement)("ft-icon")(U);var On=y(C());var st=y(K()),ut=y(D()),ct=y(C());var hr=y(K());var vr=hr.css`
82
- `;var at=y(C());var mn=y(C());var br=y(K()),N=y(D()),B=y(C());var mr=y(K());var yr=mr.css`
83
- `;var Be=y(C()),kn="ft-app-info",yt=class extends CustomEvent{constructor(t){super("authentication-change",{detail:t})}},In={session:(e,t)=>{(0,Be.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>g.dispatchEvent(new yt(t.payload)),0))}},g=Be.FtReduxStore.get({name:kn,reducers:In,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],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}});var G=y(C());var gt=y(C());var ae=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:n}=g.getState(),o=t??n;if(r&&o&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,o,!0)}static await(t){return new Promise(r=>{let n=e.get(t);if(n)r(n);else{let o=g.subscribe(()=>{n=e.get(t),n&&(o(),r(n))})}})}};var Oe=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:ae.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):ae.await()}};var Z=class extends Oe{constructor(t=!0,r){var n;super(r);let o=this.constructor;o.commonCache=(n=o.commonCache)!==null&&n!==void 0?n:new gt.CacheRegistry,this.cache=t?o.commonCache:new gt.CacheRegistry}clearCache(){this.cache.clearAll()}};var gr,Un=Symbol("clearAfterUnitTest"),We=class extends Z{constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[gr]=()=>{this.defaultMessages={},this.cache=new G.CacheRegistry,this.listeners={}},this.currentUiLocale=g.getState().uiLocale,g.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=g.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let r=t.name.toLowerCase();this.cache.setFinal(r,t),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,r){var n;if(t=t.toLowerCase(),r&&Object.keys(r).length>0){let o={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...r};(0,G.deepEqual)(this.defaultMessages[t],o)||(this.defaultMessages[t]=o,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var r,n;return this.fetchContext(t),(n=(r=this.cache.getNow(t))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,r){let n=t.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(t,r,...n){var o;let i=t.toLowerCase(),a=this.resolveContext(i);return new G.ParametrizedLabelResolver((o=this.defaultMessages[i])!==null&&o!==void 0?o:{},a).resolve(r,...n)}async fetchContext(t){let r=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t))}catch(o){!(o instanceof G.CanceledPromiseError)&&r&&console.error(o)}return r&&await this.notify(t),n}subscribe(t,r){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(r),()=>{var o;return(o=this.listeners[t])===null||o===void 0?void 0:o.delete(r)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(t=>this.notify(t)))}async notify(t){this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(r=>(0,G.delay)(0).then(()=>r()).catch(()=>null)))}};gr=Un;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends We{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends We{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var de=window.FluidTopicsI18nService,Ve=window.FluidTopicsCustomI18nService;var T=function(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},A=class extends B.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>ae.get(),this.messageContexts=[],this.cache=new B.CacheRegistry,this.cleanSessionDebouncer=new B.Debouncer}render(){return br.html`
82
+ `}get textContent(){var t,r;return(r=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&r!==void 0?r:""}update(t){super.update(t),["value","variant"].some(r=>t.has(r))&&this.resolveIcon()}resolveIcon(){var t,r;let n=this.value||this.textContent;switch(this.variant){case ie.file_format:this.resolvedIcon=(t=m[n.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:n;break;case ie.material:this.resolvedIcon=this.value||De.nothing;break;default:this.resolvedIcon=(r=Ye[n.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:n;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};F.elementDefinitions={};F.styles=Sr;Me([(0,ae.property)()],F.prototype,"variant",void 0);Me([(0,ae.property)()],F.prototype,"value",void 0);Me([(0,ae.property)({reflect:!0,attribute:"aria-hidden"})],F.prototype,"ariaHidden",void 0);Me([(0,ae.state)()],F.prototype,"resolvedIcon",void 0);Me([(0,ae.query)("slot")],F.prototype,"slottedContent",void 0);(0,Tr.customElement)("ft-icon")(F);var fi=E(N());var Et=E(J()),At=E(W()),xt=E(N());var wr=E(J());var Rr=wr.css`
83
+ `;var bt=E(N());var ii=E(N());var Nr=E(J()),V=E(W()),Y=E(N());var Cr=E(J());var Pr=Cr.css`
84
+ `;var Xe=E(N()),Oi="ft-app-info",Lt=class extends CustomEvent{constructor(t){super("authentication-change",{detail:t})}},_i={session:(e,t)=>{(0,Xe.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>A.dispatchEvent(new Lt(t.payload)),0))}},A=Xe.FtReduxStore.get({name:Oi,reducers:_i,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],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}});var Z=E(N());var Nt=E(N());var ge=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:n}=A.getState(),i=t??n;if(r&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,i,!0)}static await(t){return new Promise(r=>{let n=e.get(t);if(n)r(n);else{let i=A.subscribe(()=>{n=e.get(t),n&&(i(),r(n))})}})}};var Ie=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:ge.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):ge.await()}};var oe=class extends Ie{constructor(t=!0,r){var n;super(r);let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new Nt.CacheRegistry,this.cache=t?i.commonCache:new Nt.CacheRegistry}clearCache(){this.cache.clearAll()}};var Lr,Ti=Symbol("clearAfterUnitTest"),Qe=class extends oe{constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Lr]=()=>{this.defaultMessages={},this.cache=new Z.CacheRegistry,this.listeners={}},this.currentUiLocale=A.getState().uiLocale,A.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=A.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let r=t.name.toLowerCase();this.cache.setFinal(r,t),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,r){var n;if(t=t.toLowerCase(),r&&Object.keys(r).length>0){let i={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...r};(0,Z.deepEqual)(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var r,n;return this.fetchContext(t),(n=(r=this.cache.getNow(t))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,r){let n=t.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(t,r,...n){var i;let a=t.toLowerCase(),o=this.resolveContext(a);return new Z.ParametrizedLabelResolver((i=this.defaultMessages[a])!==null&&i!==void 0?i:{},o).resolve(r,...n)}async fetchContext(t){let r=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t))}catch(i){!(i instanceof Z.CanceledPromiseError)&&r&&console.error(i)}return r&&await this.notify(t),n}subscribe(t,r){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(r),()=>{var i;return(i=this.listeners[t])===null||i===void 0?void 0:i.delete(r)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(t=>this.notify(t)))}async notify(t){this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(r=>(0,Z.delay)(0).then(()=>r()).catch(()=>null)))}};Lr=Ti;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Qe{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Qe{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Oe=window.FluidTopicsI18nService,Je=window.FluidTopicsCustomI18nService;var U=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},L=class extends Y.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>ge.get(),this.messageContexts=[],this.cache=new Y.CacheRegistry,this.cleanSessionDebouncer=new Y.Debouncer}render(){return Nr.html`
84
85
  <slot></slot>
85
- `}update(t){var r,n,o,i,a;super.update(t),t.has("baseUrl")&&(g.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&g.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&g.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&g.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&g.actions.noCustom(this.noCustom),t.has("editorMode")&&g.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&g.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&g.actions.session(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(s=>de.addContext(s)),t.has("openExternalDocumentInNewTab")&&g.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&g.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&g.actions.forcedOffline(this.forcedOffline),t.has("localesConfiguration")&&(g.actions.defaultLocales((r=this.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales),g.actions.availableUiLocales((o=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&o!==void 0?o:[]),g.actions.searchInAllLanguagesAllowed((a=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&a!==void 0?a:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let 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())}};A.elementDefinitions={};A.styles=yr;T([(0,N.property)()],A.prototype,"baseUrl",void 0);T([(0,N.property)()],A.prototype,"apiIntegrationIdentifier",void 0);T([(0,N.property)()],A.prototype,"uiLocale",void 0);T([(0,B.jsonProperty)(null)],A.prototype,"availableUiLocales",void 0);T([(0,B.jsonProperty)(null)],A.prototype,"metadataConfiguration",void 0);T([(0,N.property)({type:Boolean})],A.prototype,"editorMode",void 0);T([(0,N.property)({type:Boolean})],A.prototype,"noCustom",void 0);T([(0,N.property)({type:Boolean})],A.prototype,"openExternalDocumentInNewTab",void 0);T([(0,N.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],A.prototype,"noCustomComponent",void 0);T([(0,N.property)({type:Boolean})],A.prototype,"withManualResources",void 0);T([(0,N.property)({type:Boolean})],A.prototype,"navigatorOnline",void 0);T([(0,N.property)({type:Boolean})],A.prototype,"forcedOffline",void 0);T([(0,N.property)({type:Object})],A.prototype,"apiProvider",void 0);T([(0,B.jsonProperty)([])],A.prototype,"messageContexts",void 0);T([(0,B.jsonProperty)(void 0)],A.prototype,"session",void 0);T([(0,N.state)()],A.prototype,"localesConfiguration",void 0);var Co=y(D());function Bn(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,o;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Ke(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(!Ke(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 i=a=>Object.keys(a).filter(s=>a[s]!=null);if(o=i(e),r=o.length,r!==i(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){let a=o[n];if(!Ke(e[a],t[a]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function Ke(e,t){try{return Bn(e,t)}catch{return!1}}function Ge(e,t){return!Ke(e,t)}var Wn=y(D(),1);var He=class{constructor(){this.queue=[]}add(t,r=!1){r&&this.clear(t.type),this.queue.push(t)}consume(t){let r=this.queue.find(n=>n.type===t);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(t){typeof t=="string"?this.queue=this.queue.filter(r=>r.type!==t):this.queue=this.queue.filter(r=>!t.test(r.type))}};var pe=y(D(),1);var xr=y(D(),1);function Sr(e,t){let r=()=>JSON.parse(JSON.stringify(e));return(0,xr.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return r();try{return JSON.parse(n)}catch{return r()}},toAttribute:n=>JSON.stringify(n)},hasChanged:Ge,...t??{}})}var ze=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,r){return this.callbacks=[t],this.debounce(r)}queue(t,r){return this.callbacks.push(t),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let n=[...this.callbacks];this.callbacks=[];let o=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,i=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let a of n)try{await a()}catch(s){o(s);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Er=y(K(),1);var qe=globalThis,Vn=qe.ShadowRoot&&(qe.ShadyCSS===void 0||qe.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ti=Symbol();var wr=(e,t)=>{if(Vn)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let n=document.createElement("style"),o=qe.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=r.cssText,e.appendChild(n)}};var $e=class extends Er.LitElement{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([o,i])=>t.registry.define(o,i)));let r={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return wr(n,t.elementStyles),n}};function Or(e,t,...r){var n;let o=e.querySelector(t);for(let i of r)o=(n=o?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return o}var Ae=function(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},Tr,Ar=Symbol("constructorPrototype"),Cr=Symbol("constructorName"),Pr=Symbol("exportpartsDebouncer"),_r=Symbol("dynamicDependenciesLoaded"),$=class extends $e{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Tr]=new ze(5),this[Cr]=this.constructor.name,this[Ar]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Cr]&&Object.setPrototypeOf(this,this[Ar])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let t=this.constructor;t[_r]||(t[_r]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate()})}contentAvailableCallback(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:o}=this.elementToFocus;if(n!=null){let i=[...o??[],n];r=Or(this.shadowRoot,...i)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,n,o;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((o=this.customStylesheet)!==null&&o!==void 0?o:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}scheduleExportpartsUpdate(){var t,r,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[Pr].run(()=>{var o,i;!((o=this.exportpartsPrefix)===null||o===void 0)&&o.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(t){var r,n,o,i,a,s;let c=f=>f!=null&&f.trim().length>0,u=t.filter(c).map(f=>f.trim());if(u.length===0){this.removeAttribute("exportparts");return}let l=new Set;for(let f of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let m=(i=(o=f.getAttribute("part"))===null||o===void 0?void 0:o.split(" "))!==null&&i!==void 0?i:[],h=(s=(a=f.getAttribute("exportparts"))===null||a===void 0?void 0:a.split(",").map(v=>v.split(":")[1]))!==null&&s!==void 0?s:[];new Array(...m,...h).filter(c).map(v=>v.trim()).forEach(v=>l.add(v))}if(l.size===0){this.removeAttribute("exportparts");return}let p=[...l.values()].flatMap(f=>u.map(m=>`${f}:${m}--${f}`));this.setAttribute("exportparts",[...this.part,...p].join(", "))}};Tr=Pr;Ae([(0,pe.property)()],$.prototype,"exportpartsPrefix",void 0);Ae([Sr([])],$.prototype,"exportpartsPrefixes",void 0);Ae([(0,pe.property)()],$.prototype,"customStylesheet",void 0);Ae([(0,pe.property)()],$.prototype,"elementToFocus",void 0);Ae([(0,pe.state)()],$.prototype,"useAdoptedStyleSheets",void 0);function Ce(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Rr,Nr,Mr,_e=Symbol("internalReduxEventsUnsubscribers"),F=Symbol("internalStoresUnsubscribers"),se=Symbol("internalStores"),Te=class extends ${constructor(){super(...arguments),this[Rr]=new Map,this[Nr]=new Map,this[Mr]=new Map}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some(r=>t.has(r))&&this.updateFromStores()}getUnnamedStore(){if(this[se].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[se].values()][0]}getStore(t){return t==null?this.getUnnamedStore():this[se].get(t)}addStore(t,r){var n;r=(n=r??(Ce(t)?t.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(r),this[se].set(r,t),this.subscribeToStore(r,t),this.updateFromStores()}removeStore(t){let r=typeof t=="string"?t:t.name;this.unsubscribeFromStore(r),this[se].delete(r)}setupStores(){this.unsubscribeFromStores(),this[se].forEach((t,r)=>this.subscribeToStore(r,t)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((t,r)=>{let n=this.constructor.getPropertyOptions(r);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:r)){let o=this.getStore(t.store);o&&(t.store?this[F].has(t.store):this[F].size>0)&&(this[r]=t.selector(o.getState(),this))}})}subscribeToStore(t,r){var n;this[F].set(t,r.subscribe(()=>this.updateFromStores())),this[_e].set(t,[]),Ce(r)&&r.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((o,i)=>{if(typeof this[i]=="function"&&(!o.store||r.name===o.store)){let a=s=>this[i](s);r.addEventListener(o.eventName,a),this[_e].get(t).push(()=>r.removeEventListener(o.eventName,a))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[F].forEach((t,r)=>this.unsubscribeFromStore(r))}unsubscribeFromStore(t){var r;this[F].has(t)&&this[F].get(t)(),this[F].delete(t),(r=this[_e].get(t))===null||r===void 0||r.forEach(n=>n()),this[_e].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Rr=F,Nr=se,Mr=_e;Te.reduxProperties=new Map;Te.reduxReactiveProperties=new Set;Te.reduxEventListeners=new Map;function j(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(0)var o,i;throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(a){return"'"+a+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function X(e){return!!e&&!!e[E]}function W(e){var t;return!!e&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var o=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return o===Object||typeof o=="function"&&Function.toString.call(o)===Yn}(e)||Array.isArray(e)||!!e[Br]||!!(!((t=e.constructor)===null||t===void 0)&&t[Br])||_t(e)||Tt(e))}function ue(e,t,r){r===void 0&&(r=!1),me(e)===0?(r?Object.keys:ve)(e).forEach(function(n){r&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,o){return t(o,n,e)})}function me(e){var t=e[E];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:_t(e)?2:Tt(e)?3:0}function he(e,t){return me(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Kn(e,t){return me(e)===2?e.get(t):e[t]}function Wr(e,t,r){var n=me(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function Vr(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function _t(e){return $n&&e instanceof Map}function Tt(e){return Xn&&e instanceof Set}function ee(e){return e.o||e.t}function Pt(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Hr(e);delete t[E];for(var r=ve(t),n=0;n<r.length;n++){var o=r[n],i=t[o];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function Rt(e,t){return t===void 0&&(t=!1),Nt(e)||X(e)||!W(e)||(me(e)>1&&(e.set=e.add=e.clear=e.delete=Gn),Object.freeze(e),t&&ue(e,function(r,n){return Rt(n,!0)},!0)),e}function Gn(){j(2)}function Nt(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function H(e){var t=Ct[e];return t||j(18,e),t}function Hn(e,t){Ct[e]||(Ct[e]=t)}function Et(){return Re}function bt(e,t){t&&(H("Patches"),e.u=[],e.s=[],e.v=t)}function Xe(e){Ot(e),e.p.forEach(zn),e.p=null}function Ot(e){e===Re&&(Re=e.l)}function Lr(e){return Re={p:[],l:Re,h:e,m:!0,_:0}}function zn(e){var t=e[E];t.i===0||t.i===1?t.j():t.g=!0}function xt(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||H("ES5").S(t,e,n),n?(r[E].P&&(Xe(t),j(4)),W(e)&&(e=Ye(t,e),t.l||Je(t,e)),t.u&&H("Patches").M(r[E].t,e,t.u,t.s)):e=Ye(t,r,[]),Xe(t),t.u&&t.v(t.u,t.s),e!==Gr?e:void 0}function Ye(e,t,r){if(Nt(t))return t;var n=t[E];if(!n)return ue(t,function(s,c){return Dr(e,n,t,s,c,r)},!0),t;if(n.A!==e)return t;if(!n.P)return Je(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=n.i===4||n.i===5?n.o=Pt(n.k):n.o,i=o,a=!1;n.i===3&&(i=new Set(o),o.clear(),a=!0),ue(i,function(s,c){return Dr(e,n,o,s,c,r,a)}),Je(e,o,!1),r&&e.u&&H("Patches").N(n,r,e.u,e.s)}return n.o}function Dr(e,t,r,n,o,i,a){if(X(o)){var s=Ye(e,o,i&&t&&t.i!==3&&!he(t.R,n)?i.concat(n):void 0);if(Wr(r,n,s),!X(s))return;e.m=!1}else a&&r.add(o);if(W(o)&&!Nt(o)){if(!e.h.D&&e._<1)return;Ye(e,o),t&&t.A.l||Je(e,o)}}function Je(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Rt(t,r)}function St(e,t){var r=e[E];return(r?ee(r):e)[t]}function jr(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function te(e){e.P||(e.P=!0,e.l&&te(e.l))}function wt(e){e.o||(e.o=Pt(e.t))}function At(e,t,r){var n=_t(t)?H("MapSet").F(t,r):Tt(t)?H("MapSet").T(t,r):e.O?function(o,i){var a=Array.isArray(o),s={i:a?1:0,A:i?i.A:Et(),P:!1,I:!1,R:{},l:i,t:o,k:null,o:null,j:null,C:!1},c=s,u=Ne;a&&(c=[s],u=Pe);var l=Proxy.revocable(c,u),p=l.revoke,f=l.proxy;return s.k=f,s.j=p,f}(t,r):H("ES5").J(t,r);return(r?r.A:Et()).p.push(n),n}function qn(e){return X(e)||j(22,e),function t(r){if(!W(r))return r;var n,o=r[E],i=me(r);if(o){if(!o.P&&(o.i<4||!H("ES5").K(o)))return o.t;o.I=!0,n=kr(r,i),o.I=!1}else n=kr(r,i);return ue(n,function(a,s){o&&Kn(o.t,a)===s||Wr(n,a,t(s))}),i===3?new Set(n):n}(e)}function kr(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Pt(e)}function Kr(){function e(a,s){var c=i[a];return c?c.enumerable=s:i[a]=c={configurable:!0,enumerable:s,get:function(){var u=this[E];return Ne.get(u,a)},set:function(u){var l=this[E];Ne.set(l,a,u)}},c}function t(a){for(var s=a.length-1;s>=0;s--){var c=a[s][E];if(!c.P)switch(c.i){case 5:n(c)&&te(c);break;case 4:r(c)&&te(c)}}}function r(a){for(var s=a.t,c=a.k,u=ve(c),l=u.length-1;l>=0;l--){var p=u[l];if(p!==E){var f=s[p];if(f===void 0&&!he(s,p))return!0;var m=c[p],h=m&&m[E];if(h?h.t!==f:!Vr(m,f))return!0}}var v=!!s[E];return u.length!==ve(s).length+(v?0:1)}function n(a){var s=a.k;if(s.length!==a.t.length)return!0;var c=Object.getOwnPropertyDescriptor(s,s.length-1);if(c&&!c.get)return!0;for(var u=0;u<s.length;u++)if(!s.hasOwnProperty(u))return!0;return!1}function o(a){a.g&&j(3,JSON.stringify(ee(a)))}var i={};Hn("ES5",{J:function(a,s){var c=Array.isArray(a),u=function(p,f){if(p){for(var m=Array(f.length),h=0;h<f.length;h++)Object.defineProperty(m,""+h,e(h,!0));return m}var v=Hr(f);delete v[E];for(var S=ve(v),b=0;b<S.length;b++){var x=S[b];v[x]=e(x,p||!!v[x].enumerable)}return Object.create(Object.getPrototypeOf(f),v)}(c,a),l={i:c?5:4,A:s?s.A:Et(),P:!1,I:!1,R:{},l:s,t:a,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,E,{value:l,writable:!0}),u},S:function(a,s,c){c?X(s)&&s[E].A===a&&t(a.p):(a.u&&function u(l){if(l&&typeof l=="object"){var p=l[E];if(p){var f=p.t,m=p.k,h=p.R,v=p.i;if(v===4)ue(m,function(w){w!==E&&(f[w]!==void 0||he(f,w)?h[w]||u(m[w]):(h[w]=!0,te(p)))}),ue(f,function(w){m[w]!==void 0||he(m,w)||(h[w]=!1,te(p))});else if(v===5){if(n(p)&&(te(p),h.length=!0),m.length<f.length)for(var S=m.length;S<f.length;S++)h[S]=!1;else for(var b=f.length;b<m.length;b++)h[b]=!0;for(var x=Math.min(m.length,f.length),O=0;O<x;O++)m.hasOwnProperty(O)||(h[O]=!0),h[O]===void 0&&u(m[O])}}}}(a.p[0]),t(a.p))},K:function(a){return a.i===4?r(a):n(a)}})}var Ir,Re,Mt=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",$n=typeof Map<"u",Xn=typeof Set<"u",Ur=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Gr=Mt?Symbol.for("immer-nothing"):((Ir={})["immer-nothing"]=!0,Ir),Br=Mt?Symbol.for("immer-draftable"):"__$immer_draftable",E=Mt?Symbol.for("immer-state"):"__$immer_state";var Yn=""+Object.prototype.constructor,ve=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Hr=Object.getOwnPropertyDescriptors||function(e){var t={};return ve(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},Ct={},Ne={get:function(e,t){if(t===E)return e;var r=ee(e);if(!he(r,t))return function(o,i,a){var s,c=jr(i,a);return c?"value"in c?c.value:(s=c.get)===null||s===void 0?void 0:s.call(o.k):void 0}(e,r,t);var n=r[t];return e.I||!W(n)?n:n===St(e.t,t)?(wt(e),e.o[t]=At(e.A.h,n,e)):n},has:function(e,t){return t in ee(e)},ownKeys:function(e){return Reflect.ownKeys(ee(e))},set:function(e,t,r){var n=jr(ee(e),t);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var o=St(ee(e),t),i=o?.[E];if(i&&i.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(Vr(r,o)&&(r!==void 0||he(e.t,t)))return!0;wt(e),te(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return St(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,wt(e),te(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=ee(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){j(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){j(12)}},Pe={};ue(Ne,function(e,t){Pe[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Pe.deleteProperty=function(e,t){return Pe.set.call(this,e,t,void 0)},Pe.set=function(e,t,r){return Ne.set.call(this,e[0],t,r,e[0])};var Jn=function(){function e(r){var n=this;this.O=Ur,this.D=!0,this.produce=function(o,i,a){if(typeof o=="function"&&typeof i!="function"){var s=i;i=o;var c=n;return function(v){var S=this;v===void 0&&(v=s);for(var b=arguments.length,x=Array(b>1?b-1:0),O=1;O<b;O++)x[O-1]=arguments[O];return c.produce(v,function(w){var Y;return(Y=i).call.apply(Y,[S,w].concat(x))})}}var u;if(typeof i!="function"&&j(6),a!==void 0&&typeof a!="function"&&j(7),W(o)){var l=Lr(n),p=At(n,o,void 0),f=!0;try{u=i(p),f=!1}finally{f?Xe(l):Ot(l)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(v){return bt(l,a),xt(v,l)},function(v){throw Xe(l),v}):(bt(l,a),xt(u,l))}if(!o||typeof o!="object"){if((u=i(o))===void 0&&(u=o),u===Gr&&(u=void 0),n.D&&Rt(u,!0),a){var m=[],h=[];H("Patches").M(o,u,m,h),a(m,h)}return u}j(21,o)},this.produceWithPatches=function(o,i){if(typeof o=="function")return function(u){for(var l=arguments.length,p=Array(l>1?l-1:0),f=1;f<l;f++)p[f-1]=arguments[f];return n.produceWithPatches(u,function(m){return o.apply(void 0,[m].concat(p))})};var a,s,c=n.produce(o,i,function(u,l){a=u,s=l});return typeof Promise<"u"&&c instanceof Promise?c.then(function(u){return[u,a,s]}):[c,a,s]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){W(r)||j(8),X(r)&&(r=qn(r));var n=Lr(this),o=At(this,r,void 0);return o[E].C=!0,Ot(n),o},t.finishDraft=function(r,n){var o=r&&r[E],i=o.A;return bt(i,n),xt(void 0,i)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!Ur&&j(20),this.O=r},t.applyPatches=function(r,n){var o;for(o=n.length-1;o>=0;o--){var i=n[o];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}o>-1&&(n=n.slice(o+1));var a=H("Patches").$;return X(r)?a(r,n):this.produce(r,function(s){return a(s,n)})},e}(),M=new Jn,Qn=M.produce,Ki=M.produceWithPatches.bind(M),Gi=M.setAutoFreeze.bind(M),Hi=M.setUseProxies.bind(M),zi=M.applyPatches.bind(M),qi=M.createDraft.bind(M),$i=M.finishDraft.bind(M),Qe=Qn;function ce(e){"@babel/helpers - typeof";return ce=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},ce(e)}function zr(e,t){if(ce(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ce(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qr(e){var t=zr(e,"string");return ce(t)=="symbol"?t:t+""}function $r(e,t,r){return(t=qr(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Lt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xr(Object(r),!0).forEach(function(n){$r(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xr(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function P(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 Yr=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Dt=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ze={INIT:"@@redux/INIT"+Dt(),REPLACE:"@@redux/REPLACE"+Dt(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Dt()}};function Zn(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 jt(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(P(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(P(1));return r(jt)(e,t)}if(typeof e!="function")throw new Error(P(2));var o=e,i=t,a=[],s=a,c=!1;function u(){s===a&&(s=a.slice())}function l(){if(c)throw new Error(P(3));return i}function p(v){if(typeof v!="function")throw new Error(P(4));if(c)throw new Error(P(5));var S=!0;return u(),s.push(v),function(){if(S){if(c)throw new Error(P(6));S=!1,u();var x=s.indexOf(v);s.splice(x,1),a=null}}}function f(v){if(!Zn(v))throw new Error(P(7));if(typeof v.type>"u")throw new Error(P(8));if(c)throw new Error(P(9));try{c=!0,i=o(i,v)}finally{c=!1}for(var S=a=s,b=0;b<S.length;b++){var x=S[b];x()}return v}function m(v){if(typeof v!="function")throw new Error(P(10));o=v,f({type:Ze.REPLACE})}function h(){var v,S=p;return v={subscribe:function(x){if(typeof x!="object"||x===null)throw new Error(P(11));function O(){x.next&&x.next(l())}O();var w=S(O);return{unsubscribe:w}}},v[Yr]=function(){return this},v}return f({type:Ze.INIT}),n={dispatch:f,subscribe:p,getState:l,replaceReducer:m},n[Yr]=h,n}function Fn(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:Ze.INIT});if(typeof n>"u")throw new Error(P(12));if(typeof r(void 0,{type:Ze.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(P(13))})}function Jr(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var o=t[n];typeof e[o]=="function"&&(r[o]=e[o])}var i=Object.keys(r),a,s;try{Fn(r)}catch(c){s=c}return function(u,l){if(u===void 0&&(u={}),s)throw s;if(0)var p;for(var f=!1,m={},h=0;h<i.length;h++){var v=i[h],S=r[v],b=u[v],x=S(b,l);if(typeof x>"u"){var O=l&&l.type;throw new Error(P(14))}m[v]=x,f=f||x!==b}return f=f||i.length!==Object.keys(u).length,f?m:u}}function ye(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,o){return function(){return n(o.apply(void 0,arguments))}})}function Qr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var o=n.apply(void 0,arguments),i=function(){throw new Error(P(15))},a={getState:o.getState,dispatch:function(){return i.apply(void 0,arguments)}},s=t.map(function(c){return c(a)});return i=ye.apply(void 0,s)(o.dispatch),Lt(Lt({},o),{},{dispatch:i})}}}function Zr(e){var t=function(n){var o=n.dispatch,i=n.getState;return function(a){return function(s){return typeof s=="function"?s(o,i,e):a(s)}}};return t}var Fr=Zr();Fr.withExtraArgument=Zr;var kt=Fr;var on=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),eo=function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,o=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){r.label=u[1];break}if(u[0]===6&&r.label<i[1]){r.label=i[1],i=u;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(u);break}i[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(l){u=[6,l],o=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},ge=function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e},to=Object.defineProperty,ro=Object.defineProperties,no=Object.getOwnPropertyDescriptors,en=Object.getOwnPropertySymbols,oo=Object.prototype.hasOwnProperty,io=Object.prototype.propertyIsEnumerable,tn=function(e,t,r){return t in e?to(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},re=function(e,t){for(var r in t||(t={}))oo.call(t,r)&&tn(e,r,t[r]);if(en)for(var n=0,o=en(t);n<o.length;n++){var r=o[n];io.call(t,r)&&tn(e,r,t[r])}return e},It=function(e,t){return ro(e,no(t))},ao=function(e,t,r){return new Promise(function(n,o){var i=function(c){try{s(r.next(c))}catch(u){o(u)}},a=function(c){try{s(r.throw(c))}catch(u){o(u)}},s=function(c){return c.done?n(c.value):Promise.resolve(c.value).then(i,a)};s((r=r.apply(e,t)).next())})};var so=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ye:ye.apply(null,arguments)},fa=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function uo(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var r=t;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}var co=function(e){on(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=e.apply(this,r)||this;return Object.setPrototypeOf(o,t.prototype),o}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,ge([void 0],r[0].concat(this)))):new(t.bind.apply(t,ge([void 0],r.concat(this))))},t}(Array),lo=function(e){on(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=e.apply(this,r)||this;return Object.setPrototypeOf(o,t.prototype),o}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,ge([void 0],r[0].concat(this)))):new(t.bind.apply(t,ge([void 0],r.concat(this))))},t}(Array);function Wt(e){return W(e)?Qe(e,function(){}):e}function fo(e){return typeof e=="boolean"}function po(){return function(t){return ho(t)}}function ho(e){e===void 0&&(e={});var t=e.thunk,r=t===void 0?!0:t,n=e.immutableCheck,o=n===void 0?!0:n,i=e.serializableCheck,a=i===void 0?!0:i,s=new co;if(r&&(fo(r)?s.push(kt):s.push(kt.withExtraArgument(r.extraArgument))),0){if(o)var c;if(a)var u}return s}var Ut=!0;function an(e){var t=po(),r=e||{},n=r.reducer,o=n===void 0?void 0:n,i=r.middleware,a=i===void 0?t():i,s=r.devTools,c=s===void 0?!0:s,u=r.preloadedState,l=u===void 0?void 0:u,p=r.enhancers,f=p===void 0?void 0:p,m;if(typeof o=="function")m=o;else if(uo(o))m=Jr(o);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 h=a;if(typeof h=="function"&&(h=h(t),!Ut&&!Array.isArray(h)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Ut&&h.some(function(w){return typeof w!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=Qr.apply(void 0,h),S=ye;c&&(S=so(re({trace:!Ut},typeof c=="object"&&c)));var b=new lo(v),x=b;Array.isArray(f)?x=ge([v],f):typeof f=="function"&&(x=f(b));var O=S.apply(void 0,x);return jt(m,l,O)}function ne(e,t){function r(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];if(t){var i=t.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return re(re({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:n[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(n){return n.type===e},r}function sn(e){var t={},r=[],n,o={addCase:function(i,a){var s=typeof i=="string"?i:i.type;if(s in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[s]=a,o},addMatcher:function(i,a){return r.push({matcher:i,reducer:a}),o},addDefaultCase:function(i){return n=i,o}};return e(o),[t,r,n]}function vo(e){return typeof e=="function"}function mo(e,t,r,n){r===void 0&&(r=[]);var o=typeof t=="function"?sn(t):[t,r,n],i=o[0],a=o[1],s=o[2],c;if(vo(e))c=function(){return Wt(e())};else{var u=Wt(e);c=function(){return u}}function l(p,f){p===void 0&&(p=c());var m=ge([i[f.type]],a.filter(function(h){var v=h.matcher;return v(f)}).map(function(h){var v=h.reducer;return v}));return m.filter(function(h){return!!h}).length===0&&(m=[s]),m.reduce(function(h,v){if(v)if(X(h)){var S=h,b=v(S,f);return b===void 0?h:b}else{if(W(h))return Qe(h,function(x){return v(x,f)});var b=v(h,f);if(b===void 0){if(h===null)return h;throw Error("A case reducer on a non-draftable value must not return undefined")}return b}return h},p)}return l.getInitialState=c,l}function yo(e,t){return e+"/"+t}function un(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof e.initialState=="function"?e.initialState:Wt(e.initialState),n=e.reducers||{},o=Object.keys(n),i={},a={},s={};o.forEach(function(l){var p=n[l],f=yo(t,l),m,h;"reducer"in p?(m=p.reducer,h=p.prepare):m=p,i[l]=m,a[f]=m,s[l]=h?ne(f,h):ne(f)});function c(){var l=typeof e.extraReducers=="function"?sn(e.extraReducers):[e.extraReducers],p=l[0],f=p===void 0?{}:p,m=l[1],h=m===void 0?[]:m,v=l[2],S=v===void 0?void 0:v,b=re(re({},f),a);return mo(r,function(x){for(var O in b)x.addCase(O,b[O]);for(var w=0,Y=h;w<Y.length;w++){var z=Y[w];x.addMatcher(z.matcher,z.reducer)}S&&x.addDefaultCase(S)})}var u;return{name:t,reducer:function(l,p){return u||(u=c()),u(l,p)},actions:s,caseReducers:i,getInitialState:function(){return u||(u=c()),u.getInitialState()}}}var go="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",bo=function(e){e===void 0&&(e=21);for(var t="",r=e;r--;)t+=go[Math.random()*64|0];return t},xo=["name","message","stack","code"],Bt=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),rn=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),So=function(e){if(typeof e=="object"&&e!==null){for(var t={},r=0,n=xo;r<n.length;r++){var o=n[r];typeof e[o]=="string"&&(t[o]=e[o])}return t}return{message:String(e)}},va=function(){function e(t,r,n){var o=ne(t+"/fulfilled",function(l,p,f,m){return{payload:l,meta:It(re({},m||{}),{arg:f,requestId:p,requestStatus:"fulfilled"})}}),i=ne(t+"/pending",function(l,p,f){return{payload:void 0,meta:It(re({},f||{}),{arg:p,requestId:l,requestStatus:"pending"})}}),a=ne(t+"/rejected",function(l,p,f,m,h){return{payload:m,error:(n&&n.serializeError||So)(l||"Rejected"),meta:It(re({},h||{}),{arg:f,requestId:p,rejectedWithValue:!!m,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"})}}),s=!1,c=typeof AbortController<"u"?AbortController:function(){function l(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return l.prototype.abort=function(){},l}();function u(l){return function(p,f,m){var h=n?.idGenerator?n.idGenerator(l):bo(),v=new c,S,b=!1;function x(w){S=w,v.abort()}var O=function(){return ao(this,null,function(){var w,Y,z,be,Xt,xe,Yt;return eo(this,function(le){switch(le.label){case 0:return le.trys.push([0,4,,5]),be=(w=n?.condition)==null?void 0:w.call(n,l,{getState:f,extra:m}),Eo(be)?[4,be]:[3,2];case 1:be=le.sent(),le.label=2;case 2:if(be===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=!0,Xt=new Promise(function(k,Se){return v.signal.addEventListener("abort",function(){return Se({name:"AbortError",message:S||"Aborted"})})}),p(i(h,l,(Y=n?.getPendingMeta)==null?void 0:Y.call(n,{requestId:h,arg:l},{getState:f,extra:m}))),[4,Promise.race([Xt,Promise.resolve(r(l,{dispatch:p,getState:f,extra:m,requestId:h,signal:v.signal,abort:x,rejectWithValue:function(k,Se){return new Bt(k,Se)},fulfillWithValue:function(k,Se){return new rn(k,Se)}})).then(function(k){if(k instanceof Bt)throw k;return k instanceof rn?o(k.payload,h,l,k.meta):o(k,h,l)})])];case 3:return z=le.sent(),[3,5];case 4:return xe=le.sent(),z=xe instanceof Bt?a(null,h,l,xe.payload,xe.meta):a(xe,h,l),[3,5];case 5:return Yt=n&&!n.dispatchConditionRejection&&a.match(z)&&z.meta.condition,Yt||p(z),[2,z]}})})}();return Object.assign(O,{abort:x,requestId:h,arg:l,unwrap:function(){return O.then(wo)}})}}return Object.assign(u,{pending:i,rejected:a,fulfilled:o,typePrefix:t})}return e.withTypes=function(){return e},e}();function wo(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Eo(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var cn="listener",ln="completed",fn="cancelled",ma="task-"+fn,ya="task-"+ln,ga=cn+"-"+fn,ba=cn+"-"+ln;var Vt="listenerMiddleware";var xa=ne(Vt+"/add"),Sa=ne(Vt+"/removeAll"),wa=ne(Vt+"/remove");var nn,Ea=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(nn||(nn=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},Oo=function(e){return function(t){setTimeout(t,e)}},Oa=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Oo(10);Kr();function Ao(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,n,o){this.eventBus.addEventListener(r,n,o)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,o){this.eventBus.removeEventListener(r,n,o)}}}var Fe=class extends Ao(Object){};window.ftReduxStores||(window.ftReduxStores={});var dn=class e extends Fe{static get(t){var r;let n=typeof t=="string"?t:t.name,o=typeof t=="string"?void 0:t,i=window.ftReduxStores[n];if(Ce(i))return i;if(o==null)return;let a=un({...o,reducers:(r=o.reducers)!==null&&r!==void 0?r:{}}),s=an({reducer:(c,u)=>u.type==="CLEAR_FT_REDUX_STORE"?a.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...c,...u.overwrites}:a.reducer(c,u)});return window.ftReduxStores[o.name]=new e(a,s,o.eventBus)}constructor(t,r,n){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new He;let o=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,a,s)=>{let c=a,u=i[c];return u?(...l)=>{let p=u(...l.map(o));return this.reduxStore.dispatch(p),p}:l=>{this.setState({[c]:o(l)})}}}),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 nt=y(C());var et=class extends Z{async listMySearches(){let t=g.getState().session;return t?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var tt=class extends Z{async listMyBookmarks(){let t=g.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var _o="ft-user-assets",rt=nt.FtReduxStore.get({name:_o,initialState:{savedSearches:void 0,bookmarks:void 0}}),Kt=class{constructor(){this.currentSession=g.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new tt,this.savedSearchesService=new et,g.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=g.getState();(0,nt.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),rt.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),rt.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();rt.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let r=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;rt.actions.bookmarks(r)}}},is=new Kt;var Gt=class{addCommand(t,r=!1){g.commands.add(t,r)}consumeCommand(t){return g.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Gt;var pn=y(C()),Ht=class{highlightHtml(t,r,n){(0,pn.highlightHtml)(t,r,n)}};window.FluidTopicsHighlightHtmlService=new Ht;var hn=y(C());var zt=class{isDate(t){var r,n,o,i;return(i=(o=((n=(r=g.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(s=>s.key===t))===null||o===void 0?void 0:o.date)!==null&&i!==void 0?i:!1}format(t,r){var n,o,i;return hn.DateFormatter.format(t,(n=r?.locale)!==null&&n!==void 0?n:g.getState().uiLocale,(o=r?.longFormat)!==null&&o!==void 0?o:!1,(i=r?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new zt;var vn=y(C());var Me=class{static get(t,r){var n,o,i,a;let s=g.getState(),{lang:c,region:u}=(o=(n=s.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&o!==void 0?o:{lang:"en",region:"US"};return new vn.SearchPlaceConverter(s.baseUrl,(a=(i=window.FluidTopicsClientConfiguration)===null||i===void 0?void 0:i.predefinedSorts)!==null&&a!==void 0?a:{},t??20,s.searchInAllLanguagesAllowed,r??`${c}-${u}`)}};var qt=class{urlToSearchRequest(t){return Me.get().parse(t)}searchRequestToUrl(t){return Me.get().serialize(t)}};window.FluidTopicsUrlService=new qt;(0,mn.customElement)("ft-app-context")(A);var Sn=y(D());var To=y(C());function yn(e){return e.match(/^[\w-]+\.[\w-]+$/)}var Po=function(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},gn=Symbol("i18nAttributes"),bn=Symbol("i18nListAttributes"),wn=Symbol("i18nProperties"),ot=Symbol("i18nContexts"),Le=Symbol("i18nUnsubs");function En(e){var t,r;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[r]=new Map}getI18nService(i){return i??this.useCustomMessageContexts?Ve:de}i18n(i){var a;this.hasI18nContext(i.context)||this.addI18nContext(i.context,void 0,i.custom);let s=(a=i.args)!==null&&a!==void 0?a:i.argsProvider?i.argsProvider(this):[];return this.getI18nService(i.custom).resolveMessage(i.context,i.key,...s)}customI18n(i,a){if(yn(i)){let[s,c]=i.split(".");return this.i18n({custom:!0,context:s,key:c,...a})||i}return i}firstUpdated(i){super.firstUpdated(i),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(i){super.update(i),this.updateI18nAttributes((a,s,c)=>i.has(s)||typeof a.argsProvider=="function"),this.updateI18nProperties(a=>typeof a.argsProvider=="function")}onI18nUpdate(i){this.updateI18nAttributes((a,s,c)=>{var u;return((u=c?.context)===null||u===void 0?void 0:u.toLowerCase())===i}),this.updateI18nProperties(a=>a.context.toLowerCase()===i),this.requestUpdate()}updateI18nAttributes(i){var a,s;let c=this,u=(l,p,f)=>f?.context&&f.key&&i(l,p,f)?{...f,message:this.i18n({context:f.context,key:f.key,...l})}:f;(a=this[gn])===null||a===void 0||a.forEach((l,p)=>c[p]=u(l,p,c[p])),(s=this[bn])===null||s===void 0||s.forEach((l,p)=>{var f;return c[p]=(f=c[p])===null||f===void 0?void 0:f.map(m=>u(l,p,m))})}updateI18nProperties(i){var a;(a=this[wn])===null||a===void 0||a.forEach((s,c)=>{i(s,c)&&(this[c]=this.i18n(s))})}addI18nMessages(i,a,s){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(i,a,s)}addI18nContext(i,a,s){let c=(typeof i=="string"?i:i.name).toLowerCase();s=typeof i=="string"?s:i.custom,this[ot].set(c,{isCustomContext:s}),this[Le].has(c)||this[Le].set(c,this.getI18nService(s).subscribe(c,()=>this.onI18nUpdate(c))),this.getI18nService(s).prepareContext(c,a)}hasI18nContext(i){return this[ot].has(i.toLowerCase())}connectedCallback(){super.connectedCallback(),this[ot].forEach((i,a)=>this.addI18nContext(a,void 0,i.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Le].forEach(i=>i()),this[Le].clear()}}return t=ot,r=Le,Po([(0,Sn.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}var xn=class extends En(at.FtLitElement){},it=class extends En(at.FtLitElementRedux){};var De=function(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},V=class extends it{constructor(){super(),this.editorMode=!1,this.addStore(g)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":st.nothing:st.html`
86
+ `}update(t){var r,n,i,a,o;super.update(t),t.has("baseUrl")&&(A.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&A.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&A.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&A.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&A.actions.noCustom(this.noCustom),t.has("editorMode")&&A.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&A.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&A.actions.session(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(s=>Oe.addContext(s)),t.has("openExternalDocumentInNewTab")&&A.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&A.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&A.actions.forcedOffline(this.forcedOffline),t.has("localesConfiguration")&&(A.actions.defaultLocales((r=this.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales),A.actions.availableUiLocales((i=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&i!==void 0?i:[]),A.actions.searchInAllLanguagesAllowed((o=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&o!==void 0?o:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let 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())}};L.elementDefinitions={};L.styles=Pr;U([(0,V.property)()],L.prototype,"baseUrl",void 0);U([(0,V.property)()],L.prototype,"apiIntegrationIdentifier",void 0);U([(0,V.property)()],L.prototype,"uiLocale",void 0);U([(0,Y.jsonProperty)(null)],L.prototype,"availableUiLocales",void 0);U([(0,Y.jsonProperty)(null)],L.prototype,"metadataConfiguration",void 0);U([(0,V.property)({type:Boolean})],L.prototype,"editorMode",void 0);U([(0,V.property)({type:Boolean})],L.prototype,"noCustom",void 0);U([(0,V.property)({type:Boolean})],L.prototype,"openExternalDocumentInNewTab",void 0);U([(0,V.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],L.prototype,"noCustomComponent",void 0);U([(0,V.property)({type:Boolean})],L.prototype,"withManualResources",void 0);U([(0,V.property)({type:Boolean})],L.prototype,"navigatorOnline",void 0);U([(0,V.property)({type:Boolean})],L.prototype,"forcedOffline",void 0);U([(0,V.property)({type:Object})],L.prototype,"apiProvider",void 0);U([(0,Y.jsonProperty)([])],L.prototype,"messageContexts",void 0);U([(0,Y.jsonProperty)(void 0)],L.prototype,"session",void 0);U([(0,V.state)()],L.prototype,"localesConfiguration",void 0);var pa=E(W());function wi(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,i;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Ze(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(!Ze(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 a=o=>Object.keys(o).filter(s=>o[s]!=null);if(i=a(e),r=i.length,r!==a(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return!1;for(n=r;n--!==0;){let o=i[n];if(!Ze(e[o],t[o]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function Ze(e,t){try{return wi(e,t)}catch{return!1}}function et(e,t){return!Ze(e,t)}var Ri=E(W(),1);var tt=class{constructor(){this.queue=[]}add(t,r=!1){r&&this.clear(t.type),this.queue.push(t)}consume(t){let r=this.queue.find(n=>n.type===t);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(t){typeof t=="string"?this.queue=this.queue.filter(r=>r.type!==t):this.queue=this.queue.filter(r=>!t.test(r.type))}};var _e=E(W(),1);var Dr=E(W(),1);function Mr(e,t){let r=()=>JSON.parse(JSON.stringify(e));return(0,Dr.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return r();try{return JSON.parse(n)}catch{return r()}},toAttribute:n=>JSON.stringify(n)},hasChanged:et,...t??{}})}var rt=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,r){return this.callbacks=[t],this.debounce(r)}queue(t,r){return this.callbacks.push(t),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let n=[...this.callbacks];this.callbacks=[];let i=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,a=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let o of n)try{await o()}catch(s){i(s);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var kr=E(J(),1);var nt=globalThis,Ci=nt.ShadowRoot&&(nt.ShadyCSS===void 0||nt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,go=Symbol();var Ir=(e,t)=>{if(Ci)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let n=document.createElement("style"),i=nt.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,e.appendChild(n)}};var it=class extends kr.LitElement{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([i,a])=>t.registry.define(i,a)));let r={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return Ir(n,t.elementStyles),n}};function Ur(e,t,...r){var n;let i=e.querySelector(t);for(let a of r)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(a);return i}var ke=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},Vr,jr=Symbol("constructorPrototype"),Br=Symbol("constructorName"),Kr=Symbol("exportpartsDebouncer"),Hr=Symbol("dynamicDependenciesLoaded"),re=class extends it{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Vr]=new rt(5),this[Br]=this.constructor.name,this[jr]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Br]&&Object.setPrototypeOf(this,this[jr])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let t=this.constructor;t[Hr]||(t[Hr]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate()})}contentAvailableCallback(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:i}=this.elementToFocus;if(n!=null){let a=[...i??[],n];r=Ur(this.shadowRoot,...a)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,n,i;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var t,r,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[Kr].run(()=>{var i,a;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(t){var r,n,i,a,o,s;let c=p=>p!=null&&p.trim().length>0,l=t.filter(c).map(p=>p.trim());if(l.length===0){this.removeAttribute("exportparts");return}let f=new Set;for(let p of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let g=(a=(i=p.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&a!==void 0?a:[],v=(s=(o=p.getAttribute("exportparts"))===null||o===void 0?void 0:o.split(",").map(y=>y.split(":")[1]))!==null&&s!==void 0?s:[];new Array(...g,...v).filter(c).map(y=>y.trim()).forEach(y=>f.add(y))}if(f.size===0){this.removeAttribute("exportparts");return}let h=[...f.values()].flatMap(p=>l.map(g=>`${p}:${g}--${p}`));this.setAttribute("exportparts",[...this.part,...h].join(", "))}};Vr=Kr;ke([(0,_e.property)()],re.prototype,"exportpartsPrefix",void 0);ke([Mr([])],re.prototype,"exportpartsPrefixes",void 0);ke([(0,_e.property)()],re.prototype,"customStylesheet",void 0);ke([(0,_e.property)()],re.prototype,"elementToFocus",void 0);ke([(0,_e.state)()],re.prototype,"useAdoptedStyleSheets",void 0);function Ue(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Gr,Wr,qr,je=Symbol("internalReduxEventsUnsubscribers"),se=Symbol("internalStoresUnsubscribers"),be=Symbol("internalStores"),Be=class extends re{constructor(){super(...arguments),this[Gr]=new Map,this[Wr]=new Map,this[qr]=new Map}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some(r=>t.has(r))&&this.updateFromStores()}getUnnamedStore(){if(this[be].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[be].values()][0]}getStore(t){return t==null?this.getUnnamedStore():this[be].get(t)}addStore(t,r){var n;r=(n=r??(Ue(t)?t.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(r),this[be].set(r,t),this.subscribeToStore(r,t),this.updateFromStores()}removeStore(t){let r=typeof t=="string"?t:t.name;this.unsubscribeFromStore(r),this[be].delete(r)}setupStores(){this.unsubscribeFromStores(),this[be].forEach((t,r)=>this.subscribeToStore(r,t)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((t,r)=>{let n=this.constructor.getPropertyOptions(r);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:r)){let i=this.getStore(t.store);i&&(t.store?this[se].has(t.store):this[se].size>0)&&(this[r]=t.selector(i.getState(),this))}})}subscribeToStore(t,r){var n;this[se].set(t,r.subscribe(()=>this.updateFromStores())),this[je].set(t,[]),Ue(r)&&r.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((i,a)=>{if(typeof this[a]=="function"&&(!i.store||r.name===i.store)){let o=s=>this[a](s);r.addEventListener(i.eventName,o),this[je].get(t).push(()=>r.removeEventListener(i.eventName,o))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[se].forEach((t,r)=>this.unsubscribeFromStore(r))}unsubscribeFromStore(t){var r;this[se].has(t)&&this[se].get(t)(),this[se].delete(t),(r=this[je].get(t))===null||r===void 0||r.forEach(n=>n()),this[je].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Gr=se,Wr=be,qr=je;Be.reduxProperties=new Map;Be.reduxReactiveProperties=new Set;Be.reduxEventListeners=new Map;function q(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(0)var i,a;throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(o){return"'"+o+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ne(e){return!!e&&!!e[C]}function X(e){var t;return!!e&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===Ui}(e)||Array.isArray(e)||!!e[Jr]||!!(!((t=e.constructor)===null||t===void 0)&&t[Jr])||Vt(e)||Kt(e))}function Ee(e,t,r){r===void 0&&(r=!1),Re(e)===0?(r?Object.keys:we)(e).forEach(function(n){r&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,i){return t(i,n,e)})}function Re(e){var t=e[C];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Vt(e)?2:Kt(e)?3:0}function Te(e,t){return Re(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Pi(e,t){return Re(e)===2?e.get(t):e[t]}function Zr(e,t,r){var n=Re(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function en(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Vt(e){return Ii&&e instanceof Map}function Kt(e){return ki&&e instanceof Set}function ue(e){return e.o||e.t}function Gt(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=nn(e);delete t[C];for(var r=we(t),n=0;n<r.length;n++){var i=r[n],a=t[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function Wt(e,t){return t===void 0&&(t=!1),qt(e)||ne(e)||!X(e)||(Re(e)>1&&(e.set=e.add=e.clear=e.delete=Li),Object.freeze(e),t&&Ee(e,function(r,n){return Wt(n,!0)},!0)),e}function Li(){q(2)}function qt(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function ee(e){var t=Ht[e];return t||q(18,e),t}function Ni(e,t){Ht[e]||(Ht[e]=t)}function Ut(){return Ve}function Dt(e,t){t&&(ee("Patches"),e.u=[],e.s=[],e.v=t)}function at(e){jt(e),e.p.forEach(Di),e.p=null}function jt(e){e===Ve&&(Ve=e.l)}function $r(e){return Ve={p:[],l:Ve,h:e,m:!0,_:0}}function Di(e){var t=e[C];t.i===0||t.i===1?t.j():t.g=!0}function Mt(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||ee("ES5").S(t,e,n),n?(r[C].P&&(at(t),q(4)),X(e)&&(e=ot(t,e),t.l||st(t,e)),t.u&&ee("Patches").M(r[C].t,e,t.u,t.s)):e=ot(t,r,[]),at(t),t.u&&t.v(t.u,t.s),e!==rn?e:void 0}function ot(e,t,r){if(qt(t))return t;var n=t[C];if(!n)return Ee(t,function(s,c){return zr(e,n,t,s,c,r)},!0),t;if(n.A!==e)return t;if(!n.P)return st(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Gt(n.k):n.o,a=i,o=!1;n.i===3&&(a=new Set(i),i.clear(),o=!0),Ee(a,function(s,c){return zr(e,n,i,s,c,r,o)}),st(e,i,!1),r&&e.u&&ee("Patches").N(n,r,e.u,e.s)}return n.o}function zr(e,t,r,n,i,a,o){if(ne(i)){var s=ot(e,i,a&&t&&t.i!==3&&!Te(t.R,n)?a.concat(n):void 0);if(Zr(r,n,s),!ne(s))return;e.m=!1}else o&&r.add(i);if(X(i)&&!qt(i)){if(!e.h.D&&e._<1)return;ot(e,i),t&&t.A.l||st(e,i)}}function st(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Wt(t,r)}function It(e,t){var r=e[C];return(r?ue(r):e)[t]}function Fr(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function le(e){e.P||(e.P=!0,e.l&&le(e.l))}function kt(e){e.o||(e.o=Gt(e.t))}function Bt(e,t,r){var n=Vt(t)?ee("MapSet").F(t,r):Kt(t)?ee("MapSet").T(t,r):e.O?function(i,a){var o=Array.isArray(i),s={i:o?1:0,A:a?a.A:Ut(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},c=s,l=Ke;o&&(c=[s],l=He);var f=Proxy.revocable(c,l),h=f.revoke,p=f.proxy;return s.k=p,s.j=h,p}(t,r):ee("ES5").J(t,r);return(r?r.A:Ut()).p.push(n),n}function Mi(e){return ne(e)||q(22,e),function t(r){if(!X(r))return r;var n,i=r[C],a=Re(r);if(i){if(!i.P&&(i.i<4||!ee("ES5").K(i)))return i.t;i.I=!0,n=Yr(r,a),i.I=!1}else n=Yr(r,a);return Ee(n,function(o,s){i&&Pi(i.t,o)===s||Zr(n,o,t(s))}),a===3?new Set(n):n}(e)}function Yr(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Gt(e)}function tn(){function e(o,s){var c=a[o];return c?c.enumerable=s:a[o]=c={configurable:!0,enumerable:s,get:function(){var l=this[C];return Ke.get(l,o)},set:function(l){var f=this[C];Ke.set(f,o,l)}},c}function t(o){for(var s=o.length-1;s>=0;s--){var c=o[s][C];if(!c.P)switch(c.i){case 5:n(c)&&le(c);break;case 4:r(c)&&le(c)}}}function r(o){for(var s=o.t,c=o.k,l=we(c),f=l.length-1;f>=0;f--){var h=l[f];if(h!==C){var p=s[h];if(p===void 0&&!Te(s,h))return!0;var g=c[h],v=g&&g[C];if(v?v.t!==p:!en(g,p))return!0}}var y=!!s[C];return l.length!==we(s).length+(y?0:1)}function n(o){var s=o.k;if(s.length!==o.t.length)return!0;var c=Object.getOwnPropertyDescriptor(s,s.length-1);if(c&&!c.get)return!0;for(var l=0;l<s.length;l++)if(!s.hasOwnProperty(l))return!0;return!1}function i(o){o.g&&q(3,JSON.stringify(ue(o)))}var a={};Ni("ES5",{J:function(o,s){var c=Array.isArray(o),l=function(h,p){if(h){for(var g=Array(p.length),v=0;v<p.length;v++)Object.defineProperty(g,""+v,e(v,!0));return g}var y=nn(p);delete y[C];for(var _=we(y),x=0;x<_.length;x++){var S=_[x];y[S]=e(S,h||!!y[S].enumerable)}return Object.create(Object.getPrototypeOf(p),y)}(c,o),f={i:c?5:4,A:s?s.A:Ut(),P:!1,I:!1,R:{},l:s,t:o,k:l,o:null,g:!1,C:!1};return Object.defineProperty(l,C,{value:f,writable:!0}),l},S:function(o,s,c){c?ne(s)&&s[C].A===o&&t(o.p):(o.u&&function l(f){if(f&&typeof f=="object"){var h=f[C];if(h){var p=h.t,g=h.k,v=h.R,y=h.i;if(y===4)Ee(g,function(T){T!==C&&(p[T]!==void 0||Te(p,T)?v[T]||l(g[T]):(v[T]=!0,le(h)))}),Ee(p,function(T){g[T]!==void 0||Te(g,T)||(v[T]=!1,le(h))});else if(y===5){if(n(h)&&(le(h),v.length=!0),g.length<p.length)for(var _=g.length;_<p.length;_++)v[_]=!1;else for(var x=p.length;x<g.length;x++)v[x]=!0;for(var S=Math.min(g.length,p.length),R=0;R<S;R++)g.hasOwnProperty(R)||(v[R]=!0),v[R]===void 0&&l(g[R])}}}}(o.p[0]),t(o.p))},K:function(o){return o.i===4?r(o):n(o)}})}var Xr,Ve,$t=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Ii=typeof Map<"u",ki=typeof Set<"u",Qr=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",rn=$t?Symbol.for("immer-nothing"):((Xr={})["immer-nothing"]=!0,Xr),Jr=$t?Symbol.for("immer-draftable"):"__$immer_draftable",C=$t?Symbol.for("immer-state"):"__$immer_state";var Ui=""+Object.prototype.constructor,we=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,nn=Object.getOwnPropertyDescriptors||function(e){var t={};return we(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},Ht={},Ke={get:function(e,t){if(t===C)return e;var r=ue(e);if(!Te(r,t))return function(i,a,o){var s,c=Fr(a,o);return c?"value"in c?c.value:(s=c.get)===null||s===void 0?void 0:s.call(i.k):void 0}(e,r,t);var n=r[t];return e.I||!X(n)?n:n===It(e.t,t)?(kt(e),e.o[t]=Bt(e.A.h,n,e)):n},has:function(e,t){return t in ue(e)},ownKeys:function(e){return Reflect.ownKeys(ue(e))},set:function(e,t,r){var n=Fr(ue(e),t);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var i=It(ue(e),t),a=i?.[C];if(a&&a.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(en(r,i)&&(r!==void 0||Te(e.t,t)))return!0;kt(e),le(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return It(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,kt(e),le(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=ue(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){q(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){q(12)}},He={};Ee(Ke,function(e,t){He[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),He.deleteProperty=function(e,t){return He.set.call(this,e,t,void 0)},He.set=function(e,t,r){return Ke.set.call(this,e[0],t,r,e[0])};var ji=function(){function e(r){var n=this;this.O=Qr,this.D=!0,this.produce=function(i,a,o){if(typeof i=="function"&&typeof a!="function"){var s=a;a=i;var c=n;return function(y){var _=this;y===void 0&&(y=s);for(var x=arguments.length,S=Array(x>1?x-1:0),R=1;R<x;R++)S[R-1]=arguments[R];return c.produce(y,function(T){var I;return(I=a).call.apply(I,[_,T].concat(S))})}}var l;if(typeof a!="function"&&q(6),o!==void 0&&typeof o!="function"&&q(7),X(i)){var f=$r(n),h=Bt(n,i,void 0),p=!0;try{l=a(h),p=!1}finally{p?at(f):jt(f)}return typeof Promise<"u"&&l instanceof Promise?l.then(function(y){return Dt(f,o),Mt(y,f)},function(y){throw at(f),y}):(Dt(f,o),Mt(l,f))}if(!i||typeof i!="object"){if((l=a(i))===void 0&&(l=i),l===rn&&(l=void 0),n.D&&Wt(l,!0),o){var g=[],v=[];ee("Patches").M(i,l,g,v),o(g,v)}return l}q(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(l){for(var f=arguments.length,h=Array(f>1?f-1:0),p=1;p<f;p++)h[p-1]=arguments[p];return n.produceWithPatches(l,function(g){return i.apply(void 0,[g].concat(h))})};var o,s,c=n.produce(i,a,function(l,f){o=l,s=f});return typeof Promise<"u"&&c instanceof Promise?c.then(function(l){return[l,o,s]}):[c,o,s]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){X(r)||q(8),ne(r)&&(r=Mi(r));var n=$r(this),i=Bt(this,r,void 0);return i[C].C=!0,jt(n),i},t.finishDraft=function(r,n){var i=r&&r[C],a=i.A;return Dt(a,n),Mt(void 0,a)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!Qr&&q(20),this.O=r},t.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}i>-1&&(n=n.slice(i+1));var o=ee("Patches").$;return ne(r)?o(r,n):this.produce(r,function(s){return o(s,n)})},e}(),K=new ji,Bi=K.produce,No=K.produceWithPatches.bind(K),Do=K.setAutoFreeze.bind(K),Mo=K.setUseProxies.bind(K),Io=K.applyPatches.bind(K),ko=K.createDraft.bind(K),Uo=K.finishDraft.bind(K),ut=Bi;function Ae(e){"@babel/helpers - typeof";return Ae=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},Ae(e)}function an(e,t){if(Ae(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ae(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function on(e){var t=an(e,"string");return Ae(t)=="symbol"?t:t+""}function sn(e,t,r){return(t=on(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function un(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function zt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?un(Object(r),!0).forEach(function(n){sn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):un(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function j(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 ln=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Ft=function(){return Math.random().toString(36).substring(7).split("").join(".")},lt={INIT:"@@redux/INIT"+Ft(),REPLACE:"@@redux/REPLACE"+Ft(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ft()}};function Hi(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 Yt(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(j(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(j(1));return r(Yt)(e,t)}if(typeof e!="function")throw new Error(j(2));var i=e,a=t,o=[],s=o,c=!1;function l(){s===o&&(s=o.slice())}function f(){if(c)throw new Error(j(3));return a}function h(y){if(typeof y!="function")throw new Error(j(4));if(c)throw new Error(j(5));var _=!0;return l(),s.push(y),function(){if(_){if(c)throw new Error(j(6));_=!1,l();var S=s.indexOf(y);s.splice(S,1),o=null}}}function p(y){if(!Hi(y))throw new Error(j(7));if(typeof y.type>"u")throw new Error(j(8));if(c)throw new Error(j(9));try{c=!0,a=i(a,y)}finally{c=!1}for(var _=o=s,x=0;x<_.length;x++){var S=_[x];S()}return y}function g(y){if(typeof y!="function")throw new Error(j(10));i=y,p({type:lt.REPLACE})}function v(){var y,_=h;return y={subscribe:function(S){if(typeof S!="object"||S===null)throw new Error(j(11));function R(){S.next&&S.next(f())}R();var T=_(R);return{unsubscribe:T}}},y[ln]=function(){return this},y}return p({type:lt.INIT}),n={dispatch:p,subscribe:h,getState:f,replaceReducer:g},n[ln]=v,n}function Vi(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:lt.INIT});if(typeof n>"u")throw new Error(j(12));if(typeof r(void 0,{type:lt.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(j(13))})}function cn(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var i=t[n];typeof e[i]=="function"&&(r[i]=e[i])}var a=Object.keys(r),o,s;try{Vi(r)}catch(c){s=c}return function(l,f){if(l===void 0&&(l={}),s)throw s;if(0)var h;for(var p=!1,g={},v=0;v<a.length;v++){var y=a[v],_=r[y],x=l[y],S=_(x,f);if(typeof S>"u"){var R=f&&f.type;throw new Error(j(14))}g[y]=S,p=p||S!==x}return p=p||a.length!==Object.keys(l).length,p?g:l}}function Ce(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function dn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(j(15))},o={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},s=t.map(function(c){return c(o)});return a=Ce.apply(void 0,s)(i.dispatch),zt(zt({},i),{},{dispatch:a})}}}function fn(e){var t=function(n){var i=n.dispatch,a=n.getState;return function(o){return function(s){return typeof s=="function"?s(i,a,e):o(s)}}};return t}var pn=fn();pn.withExtraArgument=fn;var Xt=pn;var gn=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Ki=function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(l){return function(f){return c([l,f])}}function c(l){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=l[0]&2?i.return:l[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,l[1])).done)return a;switch(i=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,i=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){r.label=l[1];break}if(l[0]===6&&r.label<a[1]){r.label=a[1],a=l;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(l);break}a[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(f){l=[6,f],i=0}finally{n=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},Pe=function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e},Gi=Object.defineProperty,Wi=Object.defineProperties,qi=Object.getOwnPropertyDescriptors,hn=Object.getOwnPropertySymbols,$i=Object.prototype.hasOwnProperty,zi=Object.prototype.propertyIsEnumerable,mn=function(e,t,r){return t in e?Gi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},ce=function(e,t){for(var r in t||(t={}))$i.call(t,r)&&mn(e,r,t[r]);if(hn)for(var n=0,i=hn(t);n<i.length;n++){var r=i[n];zi.call(t,r)&&mn(e,r,t[r])}return e},Qt=function(e,t){return Wi(e,qi(t))},Fi=function(e,t,r){return new Promise(function(n,i){var a=function(c){try{s(r.next(c))}catch(l){i(l)}},o=function(c){try{s(r.throw(c))}catch(l){i(l)}},s=function(c){return c.done?n(c.value):Promise.resolve(c.value).then(a,o)};s((r=r.apply(e,t)).next())})};var Yi=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ce:Ce.apply(null,arguments)},ts=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Xi(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var r=t;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}var Qi=function(e){gn(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=e.apply(this,r)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,Pe([void 0],r[0].concat(this)))):new(t.bind.apply(t,Pe([void 0],r.concat(this))))},t}(Array),Ji=function(e){gn(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=e.apply(this,r)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,Pe([void 0],r[0].concat(this)))):new(t.bind.apply(t,Pe([void 0],r.concat(this))))},t}(Array);function er(e){return X(e)?ut(e,function(){}):e}function Zi(e){return typeof e=="boolean"}function ea(){return function(t){return ta(t)}}function ta(e){e===void 0&&(e={});var t=e.thunk,r=t===void 0?!0:t,n=e.immutableCheck,i=n===void 0?!0:n,a=e.serializableCheck,o=a===void 0?!0:a,s=new Qi;if(r&&(Zi(r)?s.push(Xt):s.push(Xt.withExtraArgument(r.extraArgument))),0){if(i)var c;if(o)var l}return s}var Jt=!0;function bn(e){var t=ea(),r=e||{},n=r.reducer,i=n===void 0?void 0:n,a=r.middleware,o=a===void 0?t():a,s=r.devTools,c=s===void 0?!0:s,l=r.preloadedState,f=l===void 0?void 0:l,h=r.enhancers,p=h===void 0?void 0:h,g;if(typeof i=="function")g=i;else if(Xi(i))g=cn(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var v=o;if(typeof v=="function"&&(v=v(t),!Jt&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Jt&&v.some(function(T){return typeof T!="function"}))throw new Error("each middleware provided to configureStore must be a function");var y=dn.apply(void 0,v),_=Ce;c&&(_=Yi(ce({trace:!Jt},typeof c=="object"&&c)));var x=new Ji(y),S=x;Array.isArray(p)?S=Pe([y],p):typeof p=="function"&&(S=p(x));var R=_.apply(void 0,S);return Yt(g,f,R)}function de(e,t){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(t){var a=t.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return ce(ce({type:e,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:e,payload:n[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(n){return n.type===e},r}function En(e){var t={},r=[],n,i={addCase:function(a,o){var s=typeof a=="string"?a:a.type;if(s in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[s]=o,i},addMatcher:function(a,o){return r.push({matcher:a,reducer:o}),i},addDefaultCase:function(a){return n=a,i}};return e(i),[t,r,n]}function ra(e){return typeof e=="function"}function na(e,t,r,n){r===void 0&&(r=[]);var i=typeof t=="function"?En(t):[t,r,n],a=i[0],o=i[1],s=i[2],c;if(ra(e))c=function(){return er(e())};else{var l=er(e);c=function(){return l}}function f(h,p){h===void 0&&(h=c());var g=Pe([a[p.type]],o.filter(function(v){var y=v.matcher;return y(p)}).map(function(v){var y=v.reducer;return y}));return g.filter(function(v){return!!v}).length===0&&(g=[s]),g.reduce(function(v,y){if(y)if(ne(v)){var _=v,x=y(_,p);return x===void 0?v:x}else{if(X(v))return ut(v,function(S){return y(S,p)});var x=y(v,p);if(x===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return x}return v},h)}return f.getInitialState=c,f}function ia(e,t){return e+"/"+t}function An(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof e.initialState=="function"?e.initialState:er(e.initialState),n=e.reducers||{},i=Object.keys(n),a={},o={},s={};i.forEach(function(f){var h=n[f],p=ia(t,f),g,v;"reducer"in h?(g=h.reducer,v=h.prepare):g=h,a[f]=g,o[p]=g,s[f]=v?de(p,v):de(p)});function c(){var f=typeof e.extraReducers=="function"?En(e.extraReducers):[e.extraReducers],h=f[0],p=h===void 0?{}:h,g=f[1],v=g===void 0?[]:g,y=f[2],_=y===void 0?void 0:y,x=ce(ce({},p),o);return na(r,function(S){for(var R in x)S.addCase(R,x[R]);for(var T=0,I=v;T<I.length;T++){var $=I[T];S.addMatcher($.matcher,$.reducer)}_&&S.addDefaultCase(_)})}var l;return{name:t,reducer:function(f,h){return l||(l=c()),l(f,h)},actions:s,caseReducers:a,getInitialState:function(){return l||(l=c()),l.getInitialState()}}}var aa="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",oa=function(e){e===void 0&&(e=21);for(var t="",r=e;r--;)t+=aa[Math.random()*64|0];return t},sa=["name","message","stack","code"],Zt=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),vn=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),ua=function(e){if(typeof e=="object"&&e!==null){for(var t={},r=0,n=sa;r<n.length;r++){var i=n[r];typeof e[i]=="string"&&(t[i]=e[i])}return t}return{message:String(e)}},as=function(){function e(t,r,n){var i=de(t+"/fulfilled",function(f,h,p,g){return{payload:f,meta:Qt(ce({},g||{}),{arg:p,requestId:h,requestStatus:"fulfilled"})}}),a=de(t+"/pending",function(f,h,p){return{payload:void 0,meta:Qt(ce({},p||{}),{arg:h,requestId:f,requestStatus:"pending"})}}),o=de(t+"/rejected",function(f,h,p,g,v){return{payload:g,error:(n&&n.serializeError||ua)(f||"Rejected"),meta:Qt(ce({},v||{}),{arg:p,requestId:h,rejectedWithValue:!!g,requestStatus:"rejected",aborted:f?.name==="AbortError",condition:f?.name==="ConditionError"})}}),s=!1,c=typeof AbortController<"u"?AbortController:function(){function f(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return f.prototype.abort=function(){},f}();function l(f){return function(h,p,g){var v=n?.idGenerator?n.idGenerator(f):oa(),y=new c,_,x=!1;function S(T){_=T,y.abort()}var R=function(){return Fi(this,null,function(){var T,I,$,me,H,ve,xe;return Ki(this,function(u){switch(u.label){case 0:return u.trys.push([0,4,,5]),me=(T=n?.condition)==null?void 0:T.call(n,f,{getState:p,extra:g}),ca(me)?[4,me]:[3,2];case 1:me=u.sent(),u.label=2;case 2:if(me===!1||y.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return x=!0,H=new Promise(function(d,b){return y.signal.addEventListener("abort",function(){return b({name:"AbortError",message:_||"Aborted"})})}),h(a(v,f,(I=n?.getPendingMeta)==null?void 0:I.call(n,{requestId:v,arg:f},{getState:p,extra:g}))),[4,Promise.race([H,Promise.resolve(r(f,{dispatch:h,getState:p,extra:g,requestId:v,signal:y.signal,abort:S,rejectWithValue:function(d,b){return new Zt(d,b)},fulfillWithValue:function(d,b){return new vn(d,b)}})).then(function(d){if(d instanceof Zt)throw d;return d instanceof vn?i(d.payload,v,f,d.meta):i(d,v,f)})])];case 3:return $=u.sent(),[3,5];case 4:return ve=u.sent(),$=ve instanceof Zt?o(null,v,f,ve.payload,ve.meta):o(ve,v,f),[3,5];case 5:return xe=n&&!n.dispatchConditionRejection&&o.match($)&&$.meta.condition,xe||h($),[2,$]}})})}();return Object.assign(R,{abort:S,requestId:v,arg:f,unwrap:function(){return R.then(la)}})}}return Object.assign(l,{pending:a,rejected:o,fulfilled:i,typePrefix:t})}return e.withTypes=function(){return e},e}();function la(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function ca(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var xn="listener",Sn="completed",On="cancelled",os="task-"+On,ss="task-"+Sn,us=xn+"-"+On,ls=xn+"-"+Sn;var tr="listenerMiddleware";var cs=de(tr+"/add"),ds=de(tr+"/removeAll"),fs=de(tr+"/remove");var yn,ps=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(yn||(yn=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},da=function(e){return function(t){setTimeout(t,e)}},hs=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:da(10);tn();function fa(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,n,i){this.eventBus.addEventListener(r,n,i)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,i){this.eventBus.removeEventListener(r,n,i)}}}var ct=class extends fa(Object){};window.ftReduxStores||(window.ftReduxStores={});var _n=class e extends ct{static get(t){var r;let n=typeof t=="string"?t:t.name,i=typeof t=="string"?void 0:t,a=window.ftReduxStores[n];if(Ue(a))return a;if(i==null)return;let o=An({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),s=bn({reducer:(c,l)=>l.type==="CLEAR_FT_REDUX_STORE"?o.getInitialState():typeof l.type=="string"&&l.type.startsWith("DEFAULT_VALUE_SETTER__")?{...c,...l.overwrites}:o.reducer(c,l)});return window.ftReduxStores[i.name]=new e(o,s,i.eventBus)}constructor(t,r,n){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new tt;let i=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,o,s)=>{let c=o,l=a[c];return l?(...f)=>{let h=l(...f.map(i));return this.reduxStore.dispatch(h),h}:f=>{this.setState({[c]:i(f)})}}}),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 vt=E(N());var ma=E(wn(),1);var Rn;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Rn||(Rn={}));var Cn;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Cn||(Cn={}));var Pn;(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.MAP_ATTACHMENT="MAP_ATTACHMENT",e.RESOURCE="RESOURCE"})(Pn||(Pn={}));var Ln;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Ln||(Ln={}));var Nn;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(Nn||(Nn={}));var Dn;(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.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",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.GEN_AI__COMPLETED_QUERY="GEN_AI__COMPLETED_QUERY",e.GEN_AI__RATE="GEN_AI__RATE",e.GENAI_CASE_DEFLECTION__START="GENAI_CASE_DEFLECTION__START",e.GENAI_CASE_DEFLECTION__OPEN_TICKET="GENAI_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.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"})(Dn||(Dn={}));var Mn;(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"})(Mn||(Mn={}));var In;(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"})(In||(In={}));var kn;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(kn||(kn={}));var Un;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(Un||(Un={}));var jn;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(jn||(jn={}));var Bn;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Bn||(Bn={}));var Hn;(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"})(Hn||(Hn={}));var Vn;(function(e){e.ASC="ASC",e.DESC="DESC"})(Vn||(Vn={}));var Kn;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Kn||(Kn={}));var Gn;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Gn||(Gn={}));var Wn;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK"})(Wn||(Wn={}));var qn;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(qn||(qn={}));var $n;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK"})($n||($n={}));var zn;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(zn||(zn={}));var Fn;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC"})(Fn||(Fn={}));var Yn;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Yn||(Yn={}));var D;(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.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(D||(D={}));var Xn;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(Xn||(Xn={}));var Qn;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(Qn||(Qn={}));var Jn;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(Jn||(Jn={}));var ha={[D.PERSONAL_BOOK_SHARE_USER]:[D.PERSONAL_BOOK_USER],[D.HTML_EXPORT_USER]:[D.PERSONAL_BOOK_USER],[D.PDF_EXPORT_USER]:[D.PERSONAL_BOOK_USER],[D.KHUB_ADMIN]:[D.CONTENT_PUBLISHER],[D.ADMIN]:[D.KHUB_ADMIN,D.USERS_ADMIN,D.PORTAL_ADMIN],[D.GENERATIVE_AI_EXPORT_USER]:[D.GENERATIVE_AI_USER]};function Zn(e,t){return e===t||(ha[e]??[]).some(r=>Zn(r,t))}function ei(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=>Zn(n,t))}var pt=class extends oe{async listMySearches(){let{session:t}=A.getState();return ei(t,D.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var ht=class extends oe{async listMyBookmarks(){let t=A.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var va="ft-user-assets",mt=vt.FtReduxStore.get({name:va,initialState:{savedSearches:void 0,bookmarks:void 0}}),rr=class{constructor(){this.currentSession=A.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new ht,this.savedSearchesService=new pt,A.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=A.getState();(0,vt.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),mt.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),mt.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();mt.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let r=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;mt.actions.bookmarks(r)}}},cu=new rr;var nr=class{addCommand(t,r=!1){A.commands.add(t,r)}consumeCommand(t){return A.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new nr;var ti=E(N()),ir=class{highlightHtml(t,r,n){(0,ti.highlightHtml)(t,r,n)}};window.FluidTopicsHighlightHtmlService=new ir;var ri=E(N());var ar=class{isDate(t){var r,n,i,a;return(a=(i=((n=(r=A.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(s=>s.key===t))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(t,r){var n,i,a;return ri.DateFormatter.format(t,(n=r?.locale)!==null&&n!==void 0?n:A.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new ar;var ni=E(N());var Ge=class{static get(t,r){var n,i,a,o;let s=A.getState(),{lang:c,region:l}=(i=(n=s.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&i!==void 0?i:{lang:"en",region:"US"};return new ni.SearchPlaceConverter(s.baseUrl,(o=(a=window.FluidTopicsClientConfiguration)===null||a===void 0?void 0:a.predefinedSorts)!==null&&o!==void 0?o:{},t??20,s.searchInAllLanguagesAllowed,r??`${c}-${l}`)}};var or=class{urlToSearchRequest(t){return Ge.get().parse(t)}searchRequestToUrl(t){return Ge.get().serialize(t)}};window.FluidTopicsUrlService=new or;(0,ii.customElement)("ft-app-context")(L);var li=E(W());var ya=E(N());function ai(e){return e.match(/^[\w-]+\.[\w-]+$/)}var ga=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},oi=Symbol("i18nAttributes"),si=Symbol("i18nListAttributes"),ci=Symbol("i18nProperties"),yt=Symbol("i18nContexts"),We=Symbol("i18nUnsubs");function di(e){var t,r;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[r]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?Je:Oe}i18n(a){var o;this.hasI18nContext(a.context)||this.addI18nContext(a.context,void 0,a.custom);let s=(o=a.args)!==null&&o!==void 0?o:a.argsProvider?a.argsProvider(this):[];return this.getI18nService(a.custom).resolveMessage(a.context,a.key,...s)}customI18n(a,o){if(ai(a)){let[s,c]=a.split(".");return this.i18n({custom:!0,context:s,key:c,...o})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((o,s,c)=>a.has(s)||typeof o.argsProvider=="function"),this.updateI18nProperties(o=>typeof o.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((o,s,c)=>{var l;return((l=c?.context)===null||l===void 0?void 0:l.toLowerCase())===a}),this.updateI18nProperties(o=>o.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var o,s;let c=this,l=(f,h,p)=>p?.context&&p.key&&a(f,h,p)?{...p,message:this.i18n({context:p.context,key:p.key,...f})}:p;(o=this[oi])===null||o===void 0||o.forEach((f,h)=>c[h]=l(f,h,c[h])),(s=this[si])===null||s===void 0||s.forEach((f,h)=>{var p;return c[h]=(p=c[h])===null||p===void 0?void 0:p.map(g=>l(f,h,g))})}updateI18nProperties(a){var o;(o=this[ci])===null||o===void 0||o.forEach((s,c)=>{a(s,c)&&(this[c]=this.i18n(s))})}addI18nMessages(a,o,s){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,o,s)}addI18nContext(a,o,s){let c=(typeof a=="string"?a:a.name).toLowerCase();s=typeof a=="string"?s:a.custom,this[yt].set(c,{isCustomContext:s}),this[We].has(c)||this[We].set(c,this.getI18nService(s).subscribe(c,()=>this.onI18nUpdate(c))),this.getI18nService(s).prepareContext(c,o)}hasI18nContext(a){return this[yt].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[yt].forEach((a,o)=>this.addI18nContext(o,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[We].forEach(a=>a()),this[We].clear()}}return t=yt,r=We,ga([(0,li.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}var ui=class extends di(bt.FtLitElement){},gt=class extends di(bt.FtLitElementRedux){};var qe=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},Q=class extends gt{constructor(){super(),this.editorMode=!1,this.addStore(A)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Et.nothing:Et.html`
86
87
  <span class="ft-i18n">
87
88
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
88
89
  </span>
89
- `}update(t){var r;super.update(t),["context","key","defaultMessage"].some(n=>t.has(n))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};V.elementDefinitions={};V.styles=vr;De([(0,ct.redux)()],V.prototype,"editorMode",void 0);De([(0,ut.property)()],V.prototype,"context",void 0);De([(0,ut.property)()],V.prototype,"key",void 0);De([(0,ct.jsonProperty)([])],V.prototype,"args",void 0);De([(0,ut.property)()],V.prototype,"defaultMessage",void 0);var lt=class e{static build(t){return new e(t)}static buildCustom(t){return new e(t,!0)}static fromGwt(t){return new e(t)}get service(){return this.custom?Ve:de}constructor(t,r=!1){this.name=t,this.custom=r,this.properties=new Proxy({},{get:(n,o)=>{let i=o;return a=>({context:this.name,key:i,custom:this.custom,args:typeof a=="function"?void 0:a,argsProvider:typeof a=="function"?a:void 0})}}),this.messages=new Proxy({},{get:(n,o)=>(...i)=>this.service.resolveMessage(this.name,o,...i)}),this.rawMessages=new Proxy({},{get:(n,o)=>this.service.resolveRawMessage(this.name,o)})}};(0,On.customElement)("ft-i18n")(V);var $t=lt.build("designedReaderTopicContent");var L=function(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},_=class extends Ie{constructor(){super(...arguments),this.contentPreprocessor=t=>t,this.onContentAvailable=()=>null}render(){var t,r,n;return!this.map||!this.error&&!this.content&&((t=this.translationSourceLanguage)===null||t===void 0?void 0:t.code)==((r=this.translationDestinationLanguage)===null||r===void 0?void 0:r.code)?oe.html`
90
+ `}update(t){var r;super.update(t),["context","key","defaultMessage"].some(n=>t.has(n))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};Q.elementDefinitions={};Q.styles=Rr;qe([(0,xt.redux)()],Q.prototype,"editorMode",void 0);qe([(0,At.property)()],Q.prototype,"context",void 0);qe([(0,At.property)()],Q.prototype,"key",void 0);qe([(0,xt.jsonProperty)([])],Q.prototype,"args",void 0);qe([(0,At.property)()],Q.prototype,"defaultMessage",void 0);var St=class e{static build(t){return new e(t)}static buildCustom(t){return new e(t,!0)}static fromGwt(t){return new e(t)}get service(){return this.custom?Je:Oe}constructor(t,r=!1){this.name=t,this.custom=r,this.properties=new Proxy({},{get:(n,i)=>{let a=i;return o=>({context:this.name,key:a,custom:this.custom,args:typeof o=="function"?void 0:o,argsProvider:typeof o=="function"?o:void 0})}}),this.messages=new Proxy({},{get:(n,i)=>(...a)=>this.service.resolveMessage(this.name,i,...a)}),this.rawMessages=new Proxy({},{get:(n,i)=>this.service.resolveRawMessage(this.name,i)})}};(0,fi.customElement)("ft-i18n")(Q);var sr=St.build("designedReaderTopicContent");var G=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},M=class extends Fe{constructor(){super(...arguments),this.contentPreprocessor=t=>t,this.onContentAvailable=()=>null}render(){var t,r,n;return!this.map||!this.error&&!this.content&&((t=this.translationSourceLanguage)===null||t===void 0?void 0:t.code)==((r=this.translationDestinationLanguage)===null||r===void 0?void 0:r.code)?pe.html`
90
91
  <section class="topic-loading"></section>
91
- `:oe.html`
92
+ `:pe.html`
92
93
  <style>
93
94
  @import "${(n=this.map)===null||n===void 0?void 0:n.contentStyles.topicStylesheetUrl}";
94
95
  </style>
95
96
  <section class="topic" lang="${this.getTopicLanguage()}">
96
97
  ${this.renderTopicContent()}
97
98
  </section>
98
- `}update(t){super.update(t),["map","tocNode","translationDestinationLanguage","translationProfileId"].some(r=>t.has(r))&&this.updateContent()}updateContent(){var t;this.error=void 0,this.content=void 0,this.map&&this.tocNode&&((t=this.stateManager)===null||t===void 0||t.fetchTopicContent(this.tocNode).then(r=>this.contentPreprocessor(r||'<div class="empty-topic"></div>')).then(r=>this.content=r).catch(r=>this.error=r))}contentAvailableCallback(t){var r,n,o,i,a,s,c;super.contentAvailableCallback(t),!this.disableContextInteractions&&(!((r=this.scrollTarget)===null||r===void 0)&&r.section)&&(!((n=this.tocNode)===null||n===void 0)&&n.tocId)&&((o=this.tocNode)===null||o===void 0?void 0:o.tocId)===this.scrollTarget.tocId&&this.content&&(((a=(i=this.shadowRoot)===null||i===void 0?void 0:i.querySelector(`[id="${this.scrollTarget.section}"], [name="${this.scrollTarget.section}"]`))!==null&&a!==void 0?a:this).dispatchEvent(new Event("scroll-into-view",{bubbles:!0,composed:!0})),(s=this.stateManager)===null||s===void 0||s.scrollDone()),(t.has("searchInDocumentQuery")||t.has("content"))&&this.content&&(0,R.waitFor)(()=>this.topicContainer).then(u=>{(0,R.highlightHtml)(u,this.searchInDocumentQuery,{attributes:{part:"kwicmatch"}})}),t.has("content")&&this.content&&(0,R.waitFor)(()=>this.topicContainer).then(u=>{this.moveSvgInShadowRoot(),this.processExpandingBlocks(),this.processOpenApiSelect(),this.onContentAvailable(u,this.shadowRoot)}),(t.has("content")&&this.content||t.has("error")&&this.error)&&performance.mark("fluid_topics__reader_topic_displayed__"+((c=this.tocNode)===null||c===void 0?void 0:c.tocId))}processExpandingBlocks(){for(let t of this.shadowRoot.querySelectorAll(".ft-expanding-block-link"))t.onclick=()=>{var r,n,o,i;if(t.classList.contains("ft-expanding-exclusive")&&!t.classList.contains("ft-expanding-block-expanded"))for(let s of Array.from((n=(r=this.topicContainer)===null||r===void 0?void 0:r.querySelectorAll(".ft-expanding-block-expanded"))!==null&&n!==void 0?n:[]))s.classList.remove("ft-expanding-block-expanded");t.classList.toggle("ft-expanding-block-expanded");let a=t.getAttribute("data-expanding-block-target-id");(i=(o=this.topicContainer)===null||o===void 0?void 0:o.querySelector("[id='"+a+"']"))===null||i===void 0||i.classList.toggle("ft-expanding-block-expanded")}}processOpenApiSelect(){for(let t of this.shadowRoot.querySelectorAll(".ft-openapi-select"))t.onchange=r=>{var n,o,i;let a=r.target,s=(n=a?.parentElement)===null||n===void 0?void 0:n.parentElement;(o=s?.querySelector(".selected-example"))===null||o===void 0||o.classList.remove("selected-example"),(i=s?.querySelector('.select-example[content-type="'+a?.value+'"]'))===null||i===void 0||i.classList.add("selected-example")}}moveSvgInShadowRoot(){this.shadowRoot.querySelectorAll(".ft-svg-container").forEach(t=>{if(!t.shadowRoot){let r=t.innerHTML;t.innerHTML="";let n=t.attachShadow({mode:"open"}),o=document.createRange().createContextualFragment(r),i=document.importNode(o,!0);n.append(i)}})}onStoreAvailable(){super.onStoreAvailable(),this.updateContent()}renderTopicContent(){var t,r,n;if(this.error)return oe.html`
99
+ `}update(t){super.update(t),["map","tocNode","translationDestinationLanguage","translationProfileId"].some(r=>t.has(r))&&this.updateContent()}updateContent(){var t;this.error=void 0,this.content=void 0,this.map&&this.tocNode&&((t=this.stateManager)===null||t===void 0||t.fetchTopicContent(this.tocNode).then(r=>this.contentPreprocessor(r||'<div class="empty-topic"></div>')).then(r=>this.content=r).catch(r=>this.error=r))}contentAvailableCallback(t){var r,n,i,a,o,s,c;super.contentAvailableCallback(t),!this.disableContextInteractions&&(!((r=this.scrollTarget)===null||r===void 0)&&r.section)&&(!((n=this.tocNode)===null||n===void 0)&&n.tocId)&&((i=this.tocNode)===null||i===void 0?void 0:i.tocId)===this.scrollTarget.tocId&&this.content&&(((o=(a=this.shadowRoot)===null||a===void 0?void 0:a.querySelector(`[id="${this.scrollTarget.section}"], [name="${this.scrollTarget.section}"]`))!==null&&o!==void 0?o:this).dispatchEvent(new Event("scroll-into-view",{bubbles:!0,composed:!0})),(s=this.stateManager)===null||s===void 0||s.scrollDone()),(t.has("searchInDocumentQuery")||t.has("content"))&&this.content&&(0,B.waitFor)(()=>this.topicContainer).then(l=>{(0,B.highlightHtml)(l,this.searchInDocumentQuery,{attributes:{part:"kwicmatch"}})}),t.has("content")&&this.content&&(0,B.waitFor)(()=>this.topicContainer).then(l=>{this.moveSvgInShadowRoot(),this.processExpandingBlocks(),this.processOpenApiSelect(),this.onContentAvailable(l,this.shadowRoot)}),(t.has("content")&&this.content||t.has("error")&&this.error)&&performance.mark("fluid_topics__reader_topic_displayed__"+((c=this.tocNode)===null||c===void 0?void 0:c.tocId))}processExpandingBlocks(){for(let t of this.shadowRoot.querySelectorAll(".ft-expanding-block-link"))t.onclick=()=>{var r,n,i,a;if(t.classList.contains("ft-expanding-exclusive")&&!t.classList.contains("ft-expanding-block-expanded"))for(let s of Array.from((n=(r=this.topicContainer)===null||r===void 0?void 0:r.querySelectorAll(".ft-expanding-block-expanded"))!==null&&n!==void 0?n:[]))s.classList.remove("ft-expanding-block-expanded");t.classList.toggle("ft-expanding-block-expanded");let o=t.getAttribute("data-expanding-block-target-id");(a=(i=this.topicContainer)===null||i===void 0?void 0:i.querySelector("[id='"+o+"']"))===null||a===void 0||a.classList.toggle("ft-expanding-block-expanded")}}processOpenApiSelect(){for(let t of this.shadowRoot.querySelectorAll(".ft-openapi-select"))t.onchange=r=>{var n,i,a;let o=r.target,s=(n=o?.parentElement)===null||n===void 0?void 0:n.parentElement;(i=s?.querySelector(".selected-example"))===null||i===void 0||i.classList.remove("selected-example"),(a=s?.querySelector('.select-example[content-type="'+o?.value+'"]'))===null||a===void 0||a.classList.add("selected-example")}}moveSvgInShadowRoot(){this.shadowRoot.querySelectorAll(".ft-svg-container").forEach(t=>{if(!t.shadowRoot){let r=t.innerHTML;t.innerHTML="";let n=t.attachShadow({mode:"open"}),i=document.createRange().createContextualFragment(r),a=document.importNode(i,!0);n.append(a)}})}onStoreAvailable(){super.onStoreAvailable(),this.updateContent()}renderTopicContent(){var t,r,n;if(this.error)return pe.html`
99
100
  <div class="topic-on-error">
100
101
  <ft-icon>WARNING</ft-icon>
101
102
  <div>
102
- ${this.is404Error()?$t.messages.topicMissingAdvice():$t.messages.somethingWentWrong()}
103
+ ${this.is404Error()?sr.messages.topicMissingAdvice():sr.messages.somethingWentWrong()}
103
104
  </div>
104
105
  </div>
105
- `;let o=(r=(t=this.map)===null||t===void 0?void 0:t.contentStyles.customCssClasses.join(" "))!==null&&r!==void 0?r:"";return this.translationLoading||!this.content?oe.html`
106
- <ft-skeleton></ft-skeleton>`:oe.html`
107
- <div class="depth-${(n=this.tocNode)===null||n===void 0?void 0:n.depth} content-locale-${this.getTopicLanguage()} ${o}">
108
- ${this.content!=null?(0,An.unsafeHTML)(`${this.content}`):oe.nothing}
106
+ `;let i=(r=(t=this.map)===null||t===void 0?void 0:t.contentStyles.customCssClasses.join(" "))!==null&&r!==void 0?r:"";return this.translationLoading||!this.content?pe.html`
107
+ <ft-skeleton></ft-skeleton>`:pe.html`
108
+ <div class="depth-${(n=this.tocNode)===null||n===void 0?void 0:n.depth} content-locale-${this.getTopicLanguage()} ${i}">
109
+ ${this.content!=null?(0,pi.unsafeHTML)(`${this.content}`):pe.nothing}
109
110
  </div>
110
- `}is404Error(){return this.error.status===404}getTopicLanguage(){var t;return this.translationDestinationLanguage&&!this.translationError?this.translationDestinationLanguage.code:(t=this.map)===null||t===void 0?void 0:t.lang}};_.styles=[tr,R.highlightHtmlStyles];L([(0,R.redux)()],_.prototype,"map",void 0);L([(0,R.redux)({selector:e=>e.translation.profileId})],_.prototype,"translationProfileId",void 0);L([(0,R.redux)({selector:e=>e.translation.destinationLanguage})],_.prototype,"translationDestinationLanguage",void 0);L([(0,R.redux)({selector:e=>e.translation.sourceLanguage})],_.prototype,"translationSourceLanguage",void 0);L([(0,R.redux)({selector:e=>e.translation.isLoading})],_.prototype,"translationLoading",void 0);L([(0,R.redux)({selector:e=>e.translation.isError})],_.prototype,"translationError",void 0);L([(0,R.redux)()],_.prototype,"scrollTarget",void 0);L([(0,ie.state)()],_.prototype,"content",void 0);L([(0,ie.state)()],_.prototype,"error",void 0);L([(0,R.redux)({selector:(e,t)=>t.disableContextInteractions?"":e.searchInDocumentQuery})],_.prototype,"searchInDocumentQuery",void 0);L([(0,ie.property)({attribute:!1})],_.prototype,"contentPreprocessor",void 0);L([(0,ie.property)({attribute:!1})],_.prototype,"onContentAvailable",void 0);L([(0,ie.query)("section.topic")],_.prototype,"topicContainer",void 0);(0,Cn.customElement)("ft-reader-topic-content")(_);})();
111
+ `}is404Error(){return this.error.status===404}getTopicLanguage(){var t;return this.translationDestinationLanguage&&!this.translationError?this.translationDestinationLanguage.code:(t=this.map)===null||t===void 0?void 0:t.lang}};M.styles=[hr,B.highlightHtmlStyles];G([(0,B.redux)()],M.prototype,"map",void 0);G([(0,B.redux)({selector:e=>e.translation.profileId})],M.prototype,"translationProfileId",void 0);G([(0,B.redux)({selector:e=>e.translation.destinationLanguage})],M.prototype,"translationDestinationLanguage",void 0);G([(0,B.redux)({selector:e=>e.translation.sourceLanguage})],M.prototype,"translationSourceLanguage",void 0);G([(0,B.redux)({selector:e=>e.translation.isLoading})],M.prototype,"translationLoading",void 0);G([(0,B.redux)({selector:e=>e.translation.isError})],M.prototype,"translationError",void 0);G([(0,B.redux)()],M.prototype,"scrollTarget",void 0);G([(0,he.state)()],M.prototype,"content",void 0);G([(0,he.state)()],M.prototype,"error",void 0);G([(0,B.redux)({selector:(e,t)=>t.disableContextInteractions?"":e.searchInDocumentQuery})],M.prototype,"searchInDocumentQuery",void 0);G([(0,he.property)({attribute:!1})],M.prototype,"contentPreprocessor",void 0);G([(0,he.property)({attribute:!1})],M.prototype,"onContentAvailable",void 0);G([(0,he.query)("section.topic")],M.prototype,"topicContainer",void 0);(0,hi.customElement)("ft-reader-topic-content")(M);})();
111
112
  /*! Bundled license information:
112
113
 
113
114
  @lit/reactive-element/css-tag.js: