@fluid-topics/ft-reader-topic-content 1.2.48 → 1.2.49
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.
|
@@ -9,6 +9,7 @@ export declare class FtReaderTopicContent extends FtReaderTopicComponent impleme
|
|
|
9
9
|
map?: FtMap;
|
|
10
10
|
private translationProfileId?;
|
|
11
11
|
private translationDestinationLanguage?;
|
|
12
|
+
private translationSourceLanguage?;
|
|
12
13
|
private translationLoading?;
|
|
13
14
|
private translationError?;
|
|
14
15
|
scrollTarget?: FtReaderScrollTarget;
|
|
@@ -19,15 +19,15 @@ class FtReaderTopicContent extends FtReaderTopicComponent {
|
|
|
19
19
|
this.onContentAvailable = () => null;
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
|
-
var _a;
|
|
23
|
-
if (!this.map || (!this.error && !this.content)) {
|
|
22
|
+
var _a, _b, _c;
|
|
23
|
+
if (!this.map || (!this.error && !this.content && ((_a = this.translationSourceLanguage) === null || _a === void 0 ? void 0 : _a.code) == ((_b = this.translationDestinationLanguage) === null || _b === void 0 ? void 0 : _b.code))) {
|
|
24
24
|
return html `
|
|
25
25
|
<section class="topic-loading"></section>
|
|
26
26
|
`;
|
|
27
27
|
}
|
|
28
28
|
return html `
|
|
29
29
|
<style>
|
|
30
|
-
@import "${(
|
|
30
|
+
@import "${(_c = this.map) === null || _c === void 0 ? void 0 : _c.contentStyles.topicStylesheetUrl}";
|
|
31
31
|
</style>
|
|
32
32
|
<section class="topic" lang="${this.getTopicLanguage()}">
|
|
33
33
|
${this.renderTopicContent()}
|
|
@@ -129,7 +129,7 @@ class FtReaderTopicContent extends FtReaderTopicComponent {
|
|
|
129
129
|
`;
|
|
130
130
|
}
|
|
131
131
|
const customClasses = (_b = (_a = this.map) === null || _a === void 0 ? void 0 : _a.contentStyles.customCssClasses.join(" ")) !== null && _b !== void 0 ? _b : "";
|
|
132
|
-
return this.translationLoading
|
|
132
|
+
return this.translationLoading || !this.content
|
|
133
133
|
? html `
|
|
134
134
|
<ft-skeleton></ft-skeleton>`
|
|
135
135
|
: html `
|
|
@@ -159,6 +159,9 @@ __decorate([
|
|
|
159
159
|
__decorate([
|
|
160
160
|
redux({ selector: (s) => s.translation.destinationLanguage })
|
|
161
161
|
], FtReaderTopicContent.prototype, "translationDestinationLanguage", void 0);
|
|
162
|
+
__decorate([
|
|
163
|
+
redux({ selector: (s) => s.translation.sourceLanguage })
|
|
164
|
+
], FtReaderTopicContent.prototype, "translationSourceLanguage", void 0);
|
|
162
165
|
__decorate([
|
|
163
166
|
redux({ selector: (s) => s.translation.isLoading })
|
|
164
167
|
], FtReaderTopicContent.prototype, "translationLoading", void 0);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var
|
|
1
|
+
"use strict";(()=>{var wn=Object.create;var Zt=Object.defineProperty;var En=Object.getOwnPropertyDescriptor;var An=Object.getOwnPropertyNames;var On=Object.getPrototypeOf,Cn=Object.prototype.hasOwnProperty;var De=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var _n=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of An(t))!Cn.call(e,i)&&i!==r&&Zt(e,i,{get:()=>t[i],enumerable:!(n=En(t,i))||n.enumerable});return e};var y=(e,t,r)=>(r=e!=null?wn(On(e)):{},_n(t||!e||!e.__esModule?Zt(r,"default",{value:e,enumerable:!0}):r,e));var C=De((_o,Qt)=>{Qt.exports=ftGlobals.wcUtils});var K=De((To,Ft)=>{Ft.exports=ftGlobals.lit});var D=De((Ro,nr)=>{nr.exports=ftGlobals.litDecorators});var gt=De((jo,ur)=>{ur.exports=ftGlobals.litUnsafeHTML});var Sn=y(C());var oe=y(K());var tr=y(K()),fe=y(C()),er={colorError:fe.FtCssVariableFactory.external(fe.designSystemVariables.colorError,"Design system"),fontFamily:fe.FtCssVariableFactory.external(fe.designSystemVariables.contentFont,"Design system")},rr=tr.css`
|
|
2
2
|
.topic {
|
|
3
3
|
font-family: ${er.fontFamily};
|
|
4
4
|
overflow-x: auto;
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
ft-skeleton {
|
|
26
26
|
height: 100px;
|
|
27
27
|
}
|
|
28
|
-
`;var pt=y(L());var ir=y(C()),ar=y(L());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 _n=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,r,o):a(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},ft=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},lt=Symbol("registerInterval");function Tn(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[lt]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[lt]):this.dispatchEvent(new ft)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=lt,_n([(0,ar.state)()],r.prototype,"stateManager",void 0),r}var De=class extends Tn(ir.FtLitElementRedux){};var sr=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,r,o):a(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},ht=class extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},dt=Symbol("registerInterval");function Nn(e){var t;class r extends e{constructor(){super(...arguments),this.disableContextInteractions=!1,this[t]=0}connectedCallback(){super.connectedCallback(),this[dt]=window.setInterval(()=>this.tryToRegisterToTopicContext(),50)}tryToRegisterToTopicContext(){this.tocNode!=null?window.clearInterval(this[dt]):this.dispatchEvent(new ht)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return t=dt,sr([(0,pt.state)()],r.prototype,"tocNode",void 0),sr([(0,pt.state)()],r.prototype,"disableContextInteractions",void 0),r}var ke=class extends Nn(De){};var bn=y(vt()),R=y(C()),ie=y(L());var pr=y(C());var Se=y(G()),J=y(L()),fr=y(C()),dr=y(vt());var je;(function(e){e.ADD_TO_PBK="",e.ALERT="",e.ADD_ALERT="",e.BACK_TO_SEARCH="",e.ADD_BOOKMARK="",e.BOOKMARK="",e.BOOKS="",e.MENU="",e.DOWNLOAD="",e.EDIT="",e.FEEDBACK="",e.HOME="",e.MODIFY_PBK="",e.SCHEDULED="",e.SEARCH="",e.EXPORT="",e.TOC="",e.WRITE_UGC="",e.TRASH="",e.USER="",e.EXTLINK="",e.CALENDAR="",e.OFFLINE="",e.BOOK="",e.DOWNLOAD_PLAIN="",e.CHECK="",e.STAR_PLAIN="",e.TOPICS="",e.DISC="",e.CIRCLE="",e.SHARED="",e.SORT_UNSORTED="",e.SORT_UP="",e.SORT_DOWN="",e.WORKING="",e.CLOSE="",e.ZOOM_OUT="",e.ZOOM_IN="",e.ZOOM_REALSIZE="",e.ZOOM_FULLSCREEN="",e.ADMIN_RESTRICTED="",e.ADMIN="",e.ADMIN_KHUB="",e.ADMIN_THEME="",e.ADMIN_USERS="",e.WARNING="",e.CONTEXT="",e.SEARCH_HOME="",e.STEPS="",e.ICON_EXPAND="",e.ICON_COLLAPSE="",e.INFO="",e.MINUS_PLAIN="",e.PLUS_PLAIN="",e.FACET_HAS_DESCENDANT="",e.TRIANGLE_BOTTOM="",e.TRIANGLE_LEFT="",e.TRIANGLE_RIGHT="",e.TRIANGLE_TOP="",e.THIN_ARROW="",e.SIGN_IN="",e.LOGOUT="",e.TRANSLATE="",e.CLOSE_PLAIN="",e.CHECK_PLAIN="",e.ARTICLE="",e.COLUMNS="",e.ANALYTICS="",e.COLLECTIONS="",e.ARROW_DOWN="",e.ARROW_LEFT="",e.ARROW_RIGHT="",e.ARROW_UP="",e.SEARCH_IN_PUBLICATION="",e.COPY_TO_CLIPBOARD="",e.SHARED_PBK="",e.ATTACHMENTS="",e.STRIPE_ARROW_LEFT="",e.STRIPE_ARROW_RIGHT="",e.FILTERS="",e.DOT="",e.MINUS="",e.PLUS="",e.MAILS_AND_NOTIFICATIONS="",e.SAVE="",e.LOCKER="",e.ADMIN_INTEGRATION="",e.SYNC="",e.TAG="",e.BOOK_PLAIN="",e.UPLOAD="",e.ONLINE="",e.TAG_PLAIN="",e.ACCOUNT_SETTINGS="",e.PRINT="",e.DEFAULT_ROLES="",e.SHORTCUT_MENU="",e.RELATIVES_PLAIN="",e.RELATIVES="",e.PAUSE="",e.PLAY="",e.ADMIN_PORTAL="",e.STAR="",e.THUMBS_DOWN="",e.THUMBS_DOWN_PLAIN="",e.THUMBS_UP="",e.THUMBS_UP_PLAIN="",e.FEEDBACK_PLAIN="",e.RATE_PLAIN="",e.RATE="",e.OFFLINE_SETTINGS="",e.MY_COLLECTIONS="",e.THIN_ARROW_LEFT="",e.THIN_ARROW_RIGHT="",e.RESET="",e.MY_LIBRARY="",e.UNSTRUCTURED_DOC="",e.CONTEXTUAL="",e.THIN_ARROW_UP="",e.ARROW_RIGHT_TO_LINE="",e.DESKTOP="",e.TABLET_LANDSCAPE="",e.TABLET_PORTRAIT="",e.MOBILE_LANDSCAPE="",e.MOBILE_PORTRAIT="",e.DIAGRAM_SUNBURST="",e.DIAGRAM_SANKEY="",e.COMMENT_QUESTION="",e.COMMENT_QUESTION_PLAIN="",e.MESSAGE_BOT="",e.CHART_SIMPLE="",e.BARS_PROGRESS="",e.BOOK_OPEN_GEAR="",e.BOOK_OPEN_GEAR_SLASH="",e.LINE_CHART="",e.STACKED_CHART="",e.CHART_BAR_STACKED="",e.CHART_BAR_GROUPED="",e.EYE_SLASH="",e.X_MARK="",e.EXPAND_WIDE="",e.PIP="",e.PIP_WIDE="",e.LIFE_RING="",e.GLOBE="",e.PIGGY_BANK="",e.EXTLINK_LIGHT="",e.CLONE="",e.CLONE_LINK_SIMPLE="",e.CHART_BAR_NORMALIZED="",e.CONSUMER="",e.OCTAGON_XMARK="",e.HOURGLASS_HALF="",e.CLOCK="",e.CLOCK_THREE="",e.CALENDAR_DAY="",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="",e.WAND_MAGIC_SPARKLES="",e.PAPER_PLANE="",e.CIRCLE_STOP="",e.ARROW_ROTATE_RIGHT="",e.ARROWS_ROTATE="",e.ALIGN_RIGHT="",e.FORMAT_CLEAR="",e.ALIGN_CENTER="",e.ALIGN_LEFT="",e.PALETTE="",e.BOLD="",e.ITALIC="",e.UNDERLINE="",e.STRIKETHROUGH="",e.LINK_SIMPLE_SLASH="",e.LINK_SIMPLE="",e.ROUTE="",e.CIRCLE_USER_SLASH="",e.CIRCLE_USER_CHECK="",e.LIST_MAGNIFYING_GLASS="",e.MEDAL="",e.THUMBS_UP_THUMBS_DOWN_SOLID="",e.ARROW_TURN_DOWN_RIGHT="",e.FLASK="",e.LOCK_KEYHOLE_OPEN_SOLID="",e.HOURGLASS_END="",e.CIRCLE_QUESTION="",e.GRIP_LINES_SOLID="",e.TRANSLATE_SPARKLE_SOLID="",e.CODE="",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",e.PAPER_PLANE_SLASH="",e.COMPRESS="",e.EXPAND="",e.ARROW_ROTATE_LEFT="",e.EYE="",e.SHARE="󨃱",e.MOBILE_SMALL="",e.SPARKLES="",e.HAND_SOLID=""})(je||(je={}));var p;(function(e){e.UNKNOWN="",e.ABW="",e.AUDIO="",e.AVI="",e.CHM="",e.CODE="",e.CSV="",e.DITA="",e.EPUB="",e.EXCEL="",e.FLAC="",e.GIF="",e.GZIP="",e.HTML="",e.IMAGE="",e.JPEG="",e.JSON="",e.M4A="",e.MOV="",e.MP3="",e.MP4="",e.OGG="",e.PDF="",e.PNG="",e.POWERPOINT="",e.RAR="",e.STP="",e.TEXT="",e.VIDEO="",e.WAV="",e.WMA="",e.WORD="",e.XML="",e.YAML="",e.ZIP=""})(p||(p={}));var ko=new Map([...["abw"].map(e=>[e,p.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,p.AUDIO]),...["avi"].map(e=>[e,p.AVI]),...["chm","xhs"].map(e=>[e,p.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,p.CODE]),...["csv"].map(e=>[e,p.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,p.DITA]),...["epub"].map(e=>[e,p.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,p.EXCEL]),...["flac"].map(e=>[e,p.FLAC]),...["gif"].map(e=>[e,p.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,p.GZIP]),...["html","htm","xhtml"].map(e=>[e,p.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,p.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,p.JPEG]),...["json"].map(e=>[e,p.JSON]),...["m4a","m4p"].map(e=>[e,p.M4A]),...["mov","qt"].map(e=>[e,p.MOV]),...["mp3"].map(e=>[e,p.MP3]),...["mp4","m4v"].map(e=>[e,p.MP4]),...["ogg","oga"].map(e=>[e,p.OGG]),...["pdf","ps"].map(e=>[e,p.PDF]),...["png"].map(e=>[e,p.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,p.POWERPOINT]),...["rar"].map(e=>[e,p.RAR]),...["stp"].map(e=>[e,p.STP]),...["txt","rtf","md","mdown"].map(e=>[e,p.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,p.VIDEO]),...["wav"].map(e=>[e,p.WAV]),...["wma"].map(e=>[e,p.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,p.WORD]),...["xml","xsl","rdf"].map(e=>[e,p.XML]),...["yaml","yml","x-yaml"].map(e=>[e,p.YAML]),...["zip"].map(e=>[e,p.ZIP])]);var jo={[p.ABW]:"#91ABC6",[p.AUDIO]:"#1795E3",[p.AVI]:"#E63324",[p.CHM]:"#71C3EB",[p.CODE]:"#71C3EB",[p.CSV]:"#1F7345",[p.DITA]:"#71C3EB",[p.EPUB]:"#85B926",[p.EXCEL]:"#1F7345",[p.FLAC]:"#1795E3",[p.GIF]:"#59B031",[p.GZIP]:"#F8AB36",[p.HTML]:"#71C3EB",[p.IMAGE]:"#59B031",[p.JPEG]:"#59B031",[p.JSON]:"#71C3EB",[p.M4A]:"#1795E3",[p.MOV]:"#E63324",[p.MP3]:"#1795E3",[p.MP4]:"#E63324",[p.OGG]:"#1795E3",[p.PDF]:"#E44948",[p.PNG]:"#59B031",[p.POWERPOINT]:"#B54A2B",[p.RAR]:"#F8AB36",[p.STP]:"#3764B1",[p.TEXT]:"#3162AB",[p.UNKNOWN]:"#999999",[p.VIDEO]:"#E63324",[p.WAV]:"#1795E3",[p.WMA]:"#1795E3",[p.WORD]:"#3162AB",[p.XML]:"#71C3EB",[p.YAML]:"#71C3EB",[p.ZIP]:"#F8AB36"};var cr=y(G()),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`
|
|
28
|
+
`;var mt=y(D());var ir=y(C()),ar=y(D());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 Tn=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,r,o):a(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},ht=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},pt=Symbol("registerInterval");function Nn(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[pt]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[pt]):this.dispatchEvent(new ht)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=pt,Tn([(0,ar.state)()],r.prototype,"stateManager",void 0),r}var ke=class extends Nn(ir.FtLitElementRedux){};var sr=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,r,o):a(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},yt=class extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},vt=Symbol("registerInterval");function Rn(e){var t;class r extends e{constructor(){super(...arguments),this.disableContextInteractions=!1,this[t]=0}connectedCallback(){super.connectedCallback(),this[vt]=window.setInterval(()=>this.tryToRegisterToTopicContext(),50)}tryToRegisterToTopicContext(){this.tocNode!=null?window.clearInterval(this[vt]):this.dispatchEvent(new yt)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return t=vt,sr([(0,mt.state)()],r.prototype,"tocNode",void 0),sr([(0,mt.state)()],r.prototype,"disableContextInteractions",void 0),r}var je=class extends Rn(ke){};var xn=y(gt()),R=y(C()),ie=y(D());var pr=y(C());var we=y(K()),Z=y(D()),fr=y(C()),dr=y(gt());var Ie;(function(e){e.ADD_TO_PBK="",e.ALERT="",e.ADD_ALERT="",e.BACK_TO_SEARCH="",e.ADD_BOOKMARK="",e.BOOKMARK="",e.BOOKS="",e.MENU="",e.DOWNLOAD="",e.EDIT="",e.FEEDBACK="",e.HOME="",e.MODIFY_PBK="",e.SCHEDULED="",e.SEARCH="",e.EXPORT="",e.TOC="",e.WRITE_UGC="",e.TRASH="",e.USER="",e.EXTLINK="",e.CALENDAR="",e.OFFLINE="",e.BOOK="",e.DOWNLOAD_PLAIN="",e.CHECK="",e.STAR_PLAIN="",e.TOPICS="",e.DISC="",e.CIRCLE="",e.SHARED="",e.SORT_UNSORTED="",e.SORT_UP="",e.SORT_DOWN="",e.WORKING="",e.CLOSE="",e.ZOOM_OUT="",e.ZOOM_IN="",e.ZOOM_REALSIZE="",e.ZOOM_FULLSCREEN="",e.ADMIN_RESTRICTED="",e.ADMIN="",e.ADMIN_KHUB="",e.ADMIN_THEME="",e.ADMIN_USERS="",e.WARNING="",e.CONTEXT="",e.SEARCH_HOME="",e.STEPS="",e.ICON_EXPAND="",e.ICON_COLLAPSE="",e.INFO="",e.MINUS_PLAIN="",e.PLUS_PLAIN="",e.FACET_HAS_DESCENDANT="",e.TRIANGLE_BOTTOM="",e.TRIANGLE_LEFT="",e.TRIANGLE_RIGHT="",e.TRIANGLE_TOP="",e.THIN_ARROW="",e.SIGN_IN="",e.LOGOUT="",e.TRANSLATE="",e.CLOSE_PLAIN="",e.CHECK_PLAIN="",e.ARTICLE="",e.COLUMNS="",e.ANALYTICS="",e.COLLECTIONS="",e.ARROW_DOWN="",e.ARROW_LEFT="",e.ARROW_RIGHT="",e.ARROW_UP="",e.SEARCH_IN_PUBLICATION="",e.COPY_TO_CLIPBOARD="",e.SHARED_PBK="",e.ATTACHMENTS="",e.STRIPE_ARROW_LEFT="",e.STRIPE_ARROW_RIGHT="",e.FILTERS="",e.DOT="",e.MINUS="",e.PLUS="",e.MAILS_AND_NOTIFICATIONS="",e.SAVE="",e.LOCKER="",e.ADMIN_INTEGRATION="",e.SYNC="",e.TAG="",e.BOOK_PLAIN="",e.UPLOAD="",e.ONLINE="",e.TAG_PLAIN="",e.ACCOUNT_SETTINGS="",e.PRINT="",e.DEFAULT_ROLES="",e.SHORTCUT_MENU="",e.RELATIVES_PLAIN="",e.RELATIVES="",e.PAUSE="",e.PLAY="",e.ADMIN_PORTAL="",e.STAR="",e.THUMBS_DOWN="",e.THUMBS_DOWN_PLAIN="",e.THUMBS_UP="",e.THUMBS_UP_PLAIN="",e.FEEDBACK_PLAIN="",e.RATE_PLAIN="",e.RATE="",e.OFFLINE_SETTINGS="",e.MY_COLLECTIONS="",e.THIN_ARROW_LEFT="",e.THIN_ARROW_RIGHT="",e.RESET="",e.MY_LIBRARY="",e.UNSTRUCTURED_DOC="",e.CONTEXTUAL="",e.THIN_ARROW_UP="",e.ARROW_RIGHT_TO_LINE="",e.DESKTOP="",e.TABLET_LANDSCAPE="",e.TABLET_PORTRAIT="",e.MOBILE_LANDSCAPE="",e.MOBILE_PORTRAIT="",e.DIAGRAM_SUNBURST="",e.DIAGRAM_SANKEY="",e.COMMENT_QUESTION="",e.COMMENT_QUESTION_PLAIN="",e.MESSAGE_BOT="",e.CHART_SIMPLE="",e.BARS_PROGRESS="",e.BOOK_OPEN_GEAR="",e.BOOK_OPEN_GEAR_SLASH="",e.LINE_CHART="",e.STACKED_CHART="",e.CHART_BAR_STACKED="",e.CHART_BAR_GROUPED="",e.EYE_SLASH="",e.X_MARK="",e.EXPAND_WIDE="",e.PIP="",e.PIP_WIDE="",e.LIFE_RING="",e.GLOBE="",e.PIGGY_BANK="",e.EXTLINK_LIGHT="",e.CLONE="",e.CLONE_LINK_SIMPLE="",e.CHART_BAR_NORMALIZED="",e.CONSUMER="",e.OCTAGON_XMARK="",e.HOURGLASS_HALF="",e.CLOCK="",e.CLOCK_THREE="",e.CALENDAR_DAY="",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="",e.WAND_MAGIC_SPARKLES="",e.PAPER_PLANE="",e.CIRCLE_STOP="",e.ARROW_ROTATE_RIGHT="",e.ARROWS_ROTATE="",e.ALIGN_RIGHT="",e.FORMAT_CLEAR="",e.ALIGN_CENTER="",e.ALIGN_LEFT="",e.PALETTE="",e.BOLD="",e.ITALIC="",e.UNDERLINE="",e.STRIKETHROUGH="",e.LINK_SIMPLE_SLASH="",e.LINK_SIMPLE="",e.ROUTE="",e.CIRCLE_USER_SLASH="",e.CIRCLE_USER_CHECK="",e.LIST_MAGNIFYING_GLASS="",e.MEDAL="",e.THUMBS_UP_THUMBS_DOWN_SOLID="",e.ARROW_TURN_DOWN_RIGHT="",e.FLASK="",e.LOCK_KEYHOLE_OPEN_SOLID="",e.HOURGLASS_END="",e.CIRCLE_QUESTION="",e.GRIP_LINES_SOLID="",e.TRANSLATE_SPARKLE_SOLID="",e.CODE="",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",e.PAPER_PLANE_SLASH="",e.COMPRESS="",e.EXPAND="",e.ARROW_ROTATE_LEFT="",e.EYE="",e.SHARE="󨃱",e.MOBILE_SMALL="",e.SPARKLES="",e.HAND_SOLID=""})(Ie||(Ie={}));var p;(function(e){e.UNKNOWN="",e.ABW="",e.AUDIO="",e.AVI="",e.CHM="",e.CODE="",e.CSV="",e.DITA="",e.EPUB="",e.EXCEL="",e.FLAC="",e.GIF="",e.GZIP="",e.HTML="",e.IMAGE="",e.JPEG="",e.JSON="",e.M4A="",e.MOV="",e.MP3="",e.MP4="",e.OGG="",e.PDF="",e.PNG="",e.POWERPOINT="",e.RAR="",e.STP="",e.TEXT="",e.VIDEO="",e.WAV="",e.WMA="",e.WORD="",e.XML="",e.YAML="",e.ZIP=""})(p||(p={}));var Io=new Map([...["abw"].map(e=>[e,p.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,p.AUDIO]),...["avi"].map(e=>[e,p.AVI]),...["chm","xhs"].map(e=>[e,p.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,p.CODE]),...["csv"].map(e=>[e,p.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,p.DITA]),...["epub"].map(e=>[e,p.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,p.EXCEL]),...["flac"].map(e=>[e,p.FLAC]),...["gif"].map(e=>[e,p.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,p.GZIP]),...["html","htm","xhtml"].map(e=>[e,p.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,p.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,p.JPEG]),...["json"].map(e=>[e,p.JSON]),...["m4a","m4p"].map(e=>[e,p.M4A]),...["mov","qt"].map(e=>[e,p.MOV]),...["mp3"].map(e=>[e,p.MP3]),...["mp4","m4v"].map(e=>[e,p.MP4]),...["ogg","oga"].map(e=>[e,p.OGG]),...["pdf","ps"].map(e=>[e,p.PDF]),...["png"].map(e=>[e,p.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,p.POWERPOINT]),...["rar"].map(e=>[e,p.RAR]),...["stp"].map(e=>[e,p.STP]),...["txt","rtf","md","mdown"].map(e=>[e,p.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,p.VIDEO]),...["wav"].map(e=>[e,p.WAV]),...["wma"].map(e=>[e,p.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,p.WORD]),...["xml","xsl","rdf"].map(e=>[e,p.XML]),...["yaml","yml","x-yaml"].map(e=>[e,p.YAML]),...["zip"].map(e=>[e,p.ZIP])]);var Uo={[p.ABW]:"#91ABC6",[p.AUDIO]:"#1795E3",[p.AVI]:"#E63324",[p.CHM]:"#71C3EB",[p.CODE]:"#71C3EB",[p.CSV]:"#1F7345",[p.DITA]:"#71C3EB",[p.EPUB]:"#85B926",[p.EXCEL]:"#1F7345",[p.FLAC]:"#1795E3",[p.GIF]:"#59B031",[p.GZIP]:"#F8AB36",[p.HTML]:"#71C3EB",[p.IMAGE]:"#59B031",[p.JPEG]:"#59B031",[p.JSON]:"#71C3EB",[p.M4A]:"#1795E3",[p.MOV]:"#E63324",[p.MP3]:"#1795E3",[p.MP4]:"#E63324",[p.OGG]:"#1795E3",[p.PDF]:"#E44948",[p.PNG]:"#59B031",[p.POWERPOINT]:"#B54A2B",[p.RAR]:"#F8AB36",[p.STP]:"#3764B1",[p.TEXT]:"#3162AB",[p.UNKNOWN]:"#999999",[p.VIDEO]:"#E63324",[p.WAV]:"#1795E3",[p.WMA]:"#1795E3",[p.WORD]:"#3162AB",[p.XML]:"#71C3EB",[p.YAML]:"#71C3EB",[p.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
29
|
:host, i.ft-icon {
|
|
30
30
|
display: inline-flex;
|
|
31
31
|
align-items: center;
|
|
@@ -73,24 +73,24 @@
|
|
|
73
73
|
.ft-icon--material {
|
|
74
74
|
font-family: ${q.materialFontFamily}, "Material Icons", sans-serif;
|
|
75
75
|
}
|
|
76
|
-
`,I.noTextSelect];var
|
|
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 i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,r,o):a(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},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
77
|
<i class="ft-icon ft-icon--${t} ft-no-text-select" part="icon icon-${t}">
|
|
78
78
|
${(0,dr.unsafeHTML)(this.resolvedIcon)}
|
|
79
79
|
<slot ?hidden=${r}></slot>
|
|
80
80
|
</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
|
|
82
|
-
`;var
|
|
83
|
-
`;var
|
|
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=p[n.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:n;break;case J.material:this.resolvedIcon=this.value||we.nothing;break;default:this.resolvedIcon=(r=Ie[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,Z.property)()],U.prototype,"variant",void 0);Ee([(0,Z.property)()],U.prototype,"value",void 0);Ee([(0,Z.property)({reflect:!0,attribute:"aria-hidden"})],U.prototype,"ariaHidden",void 0);Ee([(0,Z.state)()],U.prototype,"resolvedIcon",void 0);Ee([(0,Z.query)("slot")],U.prototype,"slottedContent",void 0);(0,pr.customElement)("ft-icon")(U);var bn=y(C());var ct=y(K()),lt=y(D()),ft=y(C());var hr=y(K());var vr=hr.css`
|
|
82
|
+
`;var ut=y(C());var hn=y(C());var br=y(K()),P=y(D()),B=y(C());var mr=y(K());var yr=mr.css`
|
|
83
|
+
`;var Ue=y(C()),Pn="ft-app-info",bt=class extends CustomEvent{constructor(t){super("authentication-change",{detail:t})}},Mn={session:(e,t)=>{(0,Ue.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>g.dispatchEvent(new bt(t.payload)),0))}},g=Ue.FtReduxStore.get({name:Pn,reducers:Mn,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 xt=y(C());var ae=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:n}=g.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=g.subscribe(()=>{n=e.get(t),n&&(i(),r(n))})}})}};var Ae=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 Q=class extends Ae{constructor(t=!0,r){var n;super(r);let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new xt.CacheRegistry,this.cache=t?i.commonCache:new xt.CacheRegistry}clearCache(){this.cache.clearAll()}};var gr,Ln=Symbol("clearAfterUnitTest"),Be=class extends Q{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(),Object.keys(r).length>0){let i={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...r};(0,G.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 o=t.toLowerCase(),a=this.resolveContext(o);return new G.ParametrizedLabelResolver((i=this.defaultMessages[o])!==null&&i!==void 0?i:{},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(i){!(i instanceof G.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,G.delay)(0).then(()=>r()).catch(()=>null)))}};gr=Ln;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Be{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Be{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var de=window.FluidTopicsI18nService,We=window.FluidTopicsCustomI18nService;var T=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,r,o):a(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},O=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`
|
|
84
84
|
<slot></slot>
|
|
85
|
-
`}update(t){var r,n,i,o,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((i=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&i!==void 0?i:[]),g.actions.searchInAllLanguagesAllowed((a=(o=this.localesConfiguration)===null||o===void 0?void 0:o.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())}};O.elementDefinitions={};O.styles=yr;T([(0,P.property)()],O.prototype,"baseUrl",void 0);T([(0,P.property)()],O.prototype,"apiIntegrationIdentifier",void 0);T([(0,P.property)()],O.prototype,"uiLocale",void 0);T([(0,B.jsonProperty)(null)],O.prototype,"availableUiLocales",void 0);T([(0,B.jsonProperty)(null)],O.prototype,"metadataConfiguration",void 0);T([(0,P.property)({type:Boolean})],O.prototype,"editorMode",void 0);T([(0,P.property)({type:Boolean})],O.prototype,"noCustom",void 0);T([(0,P.property)({type:Boolean})],O.prototype,"openExternalDocumentInNewTab",void 0);T([(0,P.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],O.prototype,"noCustomComponent",void 0);T([(0,P.property)({type:Boolean})],O.prototype,"withManualResources",void 0);T([(0,P.property)({type:Boolean})],O.prototype,"navigatorOnline",void 0);T([(0,P.property)({type:Boolean})],O.prototype,"forcedOffline",void 0);T([(0,P.property)({type:Object})],O.prototype,"apiProvider",void 0);T([(0,B.jsonProperty)([])],O.prototype,"messageContexts",void 0);T([(0,B.jsonProperty)(void 0)],O.prototype,"session",void 0);T([(0,P.state)()],O.prototype,"localesConfiguration",void 0);var xo=y(L());function Ln(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(!We(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(!We(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 o=a=>Object.keys(a).filter(s=>a[s]!=null);if(i=o(e),r=i.length,r!==o(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 a=i[n];if(!We(e[a],t[a]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function We(e,t){try{return Ln(e,t)}catch{return!1}}function Ve(e,t){return!We(e,t)}var Dn=y(L(),1);var Ge=class{constructor(){this.queue=[]}add(t,r=!1){r&&(this.queue=this.queue.filter(n=>n.type!==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}};var Ae=y(L(),1);var xr=y(L(),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:Ve,...t??{}})}var Ke=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,o=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let a of n)try{await a()}catch(s){i(s);return}o(!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(G(),1);var He=globalThis,kn=He.ShadowRoot&&(He.ShadyCSS===void 0||He.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,wi=Symbol();var wr=(e,t)=>{if(kn)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let n=document.createElement("style"),i=He.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,e.appendChild(n)}};var ze=class extends Er.LitElement{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([i,o])=>t.registry.define(i,o)));let r={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return wr(n,t.elementStyles),n}};var qe=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,r,o):a(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},_r,Ar=Symbol("constructorPrototype"),Or=Symbol("constructorName"),Tr=Symbol("exportpartsDebouncer"),Cr=Symbol("dynamicDependenciesLoaded"),Q=class extends ze{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[_r]=new Ke(5),this[Or]=this.constructor.name,this[Ar]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Or]&&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[Cr]||(t[Cr]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate()})}contentAvailableCallback(t){}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(o=>o.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(o){console.error(o,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let o=document.createElement("style");o.classList.add("ft-lit-element--custom-stylesheet"),o.innerHTML=this.customStylesheet,this.shadowRoot.append(o)}}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[Tr].run(()=>{var i,o;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(t){var r,n,i,o,a,s;let l=d=>d!=null&&d.trim().length>0,u=t.filter(l).map(d=>d.trim());if(u.length===0){this.removeAttribute("exportparts");return}let c=new Set;for(let d of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let m=(o=(i=d.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&o!==void 0?o:[],h=(s=(a=d.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(l).map(v=>v.trim()).forEach(v=>c.add(v))}if(c.size===0){this.removeAttribute("exportparts");return}let f=[...c.values()].flatMap(d=>u.map(m=>`${d}:${m}--${d}`));this.setAttribute("exportparts",[...this.part,...f].join(", "))}};_r=Tr;qe([(0,Ae.property)()],Q.prototype,"exportpartsPrefix",void 0);qe([Sr([])],Q.prototype,"exportpartsPrefixes",void 0);qe([(0,Ae.property)()],Q.prototype,"customStylesheet",void 0);qe([(0,Ae.state)()],Q.prototype,"useAdoptedStyleSheets",void 0);function Oe(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Nr,Rr,Pr,Ce=Symbol("internalReduxEventsUnsubscribers"),F=Symbol("internalStoresUnsubscribers"),se=Symbol("internalStores"),_e=class extends Q{constructor(){super(...arguments),this[Nr]=new Map,this[Rr]=new Map,this[Pr]=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??(Oe(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 i=this.getStore(t.store);i&&(t.store?this[F].has(t.store):this[F].size>0)&&(this[r]=t.selector(i.getState(),this))}})}subscribeToStore(t,r){var n;this[F].set(t,r.subscribe(()=>this.updateFromStores())),this[Ce].set(t,[]),Oe(r)&&r.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((i,o)=>{if(typeof this[o]=="function"&&(!i.store||r.name===i.store)){let a=s=>this[o](s);r.addEventListener(i.eventName,a),this[Ce].get(t).push(()=>r.removeEventListener(i.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[Ce].get(t))===null||r===void 0||r.forEach(n=>n()),this[Ce].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Nr=F,Rr=se,Pr=Ce;_e.reduxProperties=new Map;_e.reduxReactiveProperties=new Set;_e.reduxEventListeners=new Map;function D(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,o;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 $(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 i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===Kn}(e)||Array.isArray(e)||!!e[Ur]||!!(!((t=e.constructor)===null||t===void 0)&&t[Ur])||Ct(e)||_t(e))}function ue(e,t,r){r===void 0&&(r=!1),ve(e)===0?(r?Object.keys:he)(e).forEach(function(n){r&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,i){return t(i,n,e)})}function ve(e){var t=e[E];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Ct(e)?2:_t(e)?3:0}function pe(e,t){return ve(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function jn(e,t){return ve(e)===2?e.get(t):e[t]}function Br(e,t,r){var n=ve(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function Wr(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Ct(e){return Vn&&e instanceof Map}function _t(e){return Gn&&e instanceof Set}function ee(e){return e.o||e.t}function Tt(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Kr(e);delete t[E];for(var r=he(t),n=0;n<r.length;n++){var i=r[n],o=t[i];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function Nt(e,t){return t===void 0&&(t=!1),Rt(e)||$(e)||!W(e)||(ve(e)>1&&(e.set=e.add=e.clear=e.delete=In),Object.freeze(e),t&&ue(e,function(r,n){return Nt(n,!0)},!0)),e}function In(){D(2)}function Rt(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function H(e){var t=Ot[e];return t||D(18,e),t}function Un(e,t){Ot[e]||(Ot[e]=t)}function wt(){return Ne}function gt(e,t){t&&(H("Patches"),e.u=[],e.s=[],e.v=t)}function $e(e){Et(e),e.p.forEach(Bn),e.p=null}function Et(e){e===Ne&&(Ne=e.l)}function Mr(e){return Ne={p:[],l:Ne,h:e,m:!0,_:0}}function Bn(e){var t=e[E];t.i===0||t.i===1?t.j():t.g=!0}function bt(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&&($e(t),D(4)),W(e)&&(e=Xe(t,e),t.l||Ye(t,e)),t.u&&H("Patches").M(r[E].t,e,t.u,t.s)):e=Xe(t,r,[]),$e(t),t.u&&t.v(t.u,t.s),e!==Gr?e:void 0}function Xe(e,t,r){if(Rt(t))return t;var n=t[E];if(!n)return ue(t,function(s,l){return Lr(e,n,t,s,l,r)},!0),t;if(n.A!==e)return t;if(!n.P)return Ye(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Tt(n.k):n.o,o=i,a=!1;n.i===3&&(o=new Set(i),i.clear(),a=!0),ue(o,function(s,l){return Lr(e,n,i,s,l,r,a)}),Ye(e,i,!1),r&&e.u&&H("Patches").N(n,r,e.u,e.s)}return n.o}function Lr(e,t,r,n,i,o,a){if($(i)){var s=Xe(e,i,o&&t&&t.i!==3&&!pe(t.R,n)?o.concat(n):void 0);if(Br(r,n,s),!$(s))return;e.m=!1}else a&&r.add(i);if(W(i)&&!Rt(i)){if(!e.h.D&&e._<1)return;Xe(e,i),t&&t.A.l||Ye(e,i)}}function Ye(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Nt(t,r)}function xt(e,t){var r=e[E];return(r?ee(r):e)[t]}function Dr(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 St(e){e.o||(e.o=Tt(e.t))}function At(e,t,r){var n=Ct(t)?H("MapSet").F(t,r):_t(t)?H("MapSet").T(t,r):e.O?function(i,o){var a=Array.isArray(i),s={i:a?1:0,A:o?o.A:wt(),P:!1,I:!1,R:{},l:o,t:i,k:null,o:null,j:null,C:!1},l=s,u=Re;a&&(l=[s],u=Te);var c=Proxy.revocable(l,u),f=c.revoke,d=c.proxy;return s.k=d,s.j=f,d}(t,r):H("ES5").J(t,r);return(r?r.A:wt()).p.push(n),n}function Wn(e){return $(e)||D(22,e),function t(r){if(!W(r))return r;var n,i=r[E],o=ve(r);if(i){if(!i.P&&(i.i<4||!H("ES5").K(i)))return i.t;i.I=!0,n=kr(r,o),i.I=!1}else n=kr(r,o);return ue(n,function(a,s){i&&jn(i.t,a)===s||Br(n,a,t(s))}),o===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 Tt(e)}function Vr(){function e(a,s){var l=o[a];return l?l.enumerable=s:o[a]=l={configurable:!0,enumerable:s,get:function(){var u=this[E];return Re.get(u,a)},set:function(u){var c=this[E];Re.set(c,a,u)}},l}function t(a){for(var s=a.length-1;s>=0;s--){var l=a[s][E];if(!l.P)switch(l.i){case 5:n(l)&&te(l);break;case 4:r(l)&&te(l)}}}function r(a){for(var s=a.t,l=a.k,u=he(l),c=u.length-1;c>=0;c--){var f=u[c];if(f!==E){var d=s[f];if(d===void 0&&!pe(s,f))return!0;var m=l[f],h=m&&m[E];if(h?h.t!==d:!Wr(m,d))return!0}}var v=!!s[E];return u.length!==he(s).length+(v?0:1)}function n(a){var s=a.k;if(s.length!==a.t.length)return!0;var l=Object.getOwnPropertyDescriptor(s,s.length-1);if(l&&!l.get)return!0;for(var u=0;u<s.length;u++)if(!s.hasOwnProperty(u))return!0;return!1}function i(a){a.g&&D(3,JSON.stringify(ee(a)))}var o={};Un("ES5",{J:function(a,s){var l=Array.isArray(a),u=function(f,d){if(f){for(var m=Array(d.length),h=0;h<d.length;h++)Object.defineProperty(m,""+h,e(h,!0));return m}var v=Kr(d);delete v[E];for(var S=he(v),b=0;b<S.length;b++){var x=S[b];v[x]=e(x,f||!!v[x].enumerable)}return Object.create(Object.getPrototypeOf(d),v)}(l,a),c={i:l?5:4,A:s?s.A:wt(),P:!1,I:!1,R:{},l:s,t:a,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,E,{value:c,writable:!0}),u},S:function(a,s,l){l?$(s)&&s[E].A===a&&t(a.p):(a.u&&function u(c){if(c&&typeof c=="object"){var f=c[E];if(f){var d=f.t,m=f.k,h=f.R,v=f.i;if(v===4)ue(m,function(w){w!==E&&(d[w]!==void 0||pe(d,w)?h[w]||u(m[w]):(h[w]=!0,te(f)))}),ue(d,function(w){m[w]!==void 0||pe(m,w)||(h[w]=!1,te(f))});else if(v===5){if(n(f)&&(te(f),h.length=!0),m.length<d.length)for(var S=m.length;S<d.length;S++)h[S]=!1;else for(var b=d.length;b<m.length;b++)h[b]=!0;for(var x=Math.min(m.length,d.length),A=0;A<x;A++)m.hasOwnProperty(A)||(h[A]=!0),h[A]===void 0&&u(m[A])}}}}(a.p[0]),t(a.p))},K:function(a){return a.i===4?r(a):n(a)}})}var jr,Ne,Pt=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Vn=typeof Map<"u",Gn=typeof Set<"u",Ir=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Gr=Pt?Symbol.for("immer-nothing"):((jr={})["immer-nothing"]=!0,jr),Ur=Pt?Symbol.for("immer-draftable"):"__$immer_draftable",E=Pt?Symbol.for("immer-state"):"__$immer_state";var Kn=""+Object.prototype.constructor,he=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Kr=Object.getOwnPropertyDescriptors||function(e){var t={};return he(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},Ot={},Re={get:function(e,t){if(t===E)return e;var r=ee(e);if(!pe(r,t))return function(i,o,a){var s,l=Dr(o,a);return l?"value"in l?l.value:(s=l.get)===null||s===void 0?void 0:s.call(i.k):void 0}(e,r,t);var n=r[t];return e.I||!W(n)?n:n===xt(e.t,t)?(St(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=Dr(ee(e),t);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var i=xt(ee(e),t),o=i?.[E];if(o&&o.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(Wr(r,i)&&(r!==void 0||pe(e.t,t)))return!0;St(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 xt(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,St(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(){D(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){D(12)}},Te={};ue(Re,function(e,t){Te[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Te.deleteProperty=function(e,t){return Te.set.call(this,e,t,void 0)},Te.set=function(e,t,r){return Re.set.call(this,e[0],t,r,e[0])};var Hn=function(){function e(r){var n=this;this.O=Ir,this.D=!0,this.produce=function(i,o,a){if(typeof i=="function"&&typeof o!="function"){var s=o;o=i;var l=n;return function(v){var S=this;v===void 0&&(v=s);for(var b=arguments.length,x=Array(b>1?b-1:0),A=1;A<b;A++)x[A-1]=arguments[A];return l.produce(v,function(w){var X;return(X=o).call.apply(X,[S,w].concat(x))})}}var u;if(typeof o!="function"&&D(6),a!==void 0&&typeof a!="function"&&D(7),W(i)){var c=Mr(n),f=At(n,i,void 0),d=!0;try{u=o(f),d=!1}finally{d?$e(c):Et(c)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(v){return gt(c,a),bt(v,c)},function(v){throw $e(c),v}):(gt(c,a),bt(u,c))}if(!i||typeof i!="object"){if((u=o(i))===void 0&&(u=i),u===Gr&&(u=void 0),n.D&&Nt(u,!0),a){var m=[],h=[];H("Patches").M(i,u,m,h),a(m,h)}return u}D(21,i)},this.produceWithPatches=function(i,o){if(typeof i=="function")return function(u){for(var c=arguments.length,f=Array(c>1?c-1:0),d=1;d<c;d++)f[d-1]=arguments[d];return n.produceWithPatches(u,function(m){return i.apply(void 0,[m].concat(f))})};var a,s,l=n.produce(i,o,function(u,c){a=u,s=c});return typeof Promise<"u"&&l instanceof Promise?l.then(function(u){return[u,a,s]}):[l,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)||D(8),$(r)&&(r=Wn(r));var n=Mr(this),i=At(this,r,void 0);return i[E].C=!0,Et(n),i},t.finishDraft=function(r,n){var i=r&&r[E],o=i.A;return gt(o,n),bt(void 0,o)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!Ir&&D(20),this.O=r},t.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var o=n[i];if(o.path.length===0&&o.op==="replace"){r=o.value;break}}i>-1&&(n=n.slice(i+1));var a=H("Patches").$;return $(r)?a(r,n):this.produce(r,function(s){return a(s,n)})},e}(),M=new Hn,zn=M.produce,Di=M.produceWithPatches.bind(M),ki=M.setAutoFreeze.bind(M),ji=M.setUseProxies.bind(M),Ii=M.applyPatches.bind(M),Ui=M.createDraft.bind(M),Bi=M.finishDraft.bind(M),Je=zn;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 Hr(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 zr(e){var t=Hr(e,"string");return ce(t)=="symbol"?t:t+""}function qr(e,t,r){return(t=zr(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $r(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 Mt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$r(Object(r),!0).forEach(function(n){qr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$r(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function N(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 Xr=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Lt=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ze={INIT:"@@redux/INIT"+Lt(),REPLACE:"@@redux/REPLACE"+Lt(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Lt()}};function qn(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 Dt(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(N(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(N(1));return r(Dt)(e,t)}if(typeof e!="function")throw new Error(N(2));var i=e,o=t,a=[],s=a,l=!1;function u(){s===a&&(s=a.slice())}function c(){if(l)throw new Error(N(3));return o}function f(v){if(typeof v!="function")throw new Error(N(4));if(l)throw new Error(N(5));var S=!0;return u(),s.push(v),function(){if(S){if(l)throw new Error(N(6));S=!1,u();var x=s.indexOf(v);s.splice(x,1),a=null}}}function d(v){if(!qn(v))throw new Error(N(7));if(typeof v.type>"u")throw new Error(N(8));if(l)throw new Error(N(9));try{l=!0,o=i(o,v)}finally{l=!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(N(10));i=v,d({type:Ze.REPLACE})}function h(){var v,S=f;return v={subscribe:function(x){if(typeof x!="object"||x===null)throw new Error(N(11));function A(){x.next&&x.next(c())}A();var w=S(A);return{unsubscribe:w}}},v[Xr]=function(){return this},v}return d({type:Ze.INIT}),n={dispatch:d,subscribe:f,getState:c,replaceReducer:m},n[Xr]=h,n}function $n(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(N(12));if(typeof r(void 0,{type:Ze.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(N(13))})}function Yr(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 o=Object.keys(r),a,s;try{$n(r)}catch(l){s=l}return function(u,c){if(u===void 0&&(u={}),s)throw s;if(0)var f;for(var d=!1,m={},h=0;h<o.length;h++){var v=o[h],S=r[v],b=u[v],x=S(b,c);if(typeof x>"u"){var A=c&&c.type;throw new Error(N(14))}m[v]=x,d=d||x!==b}return d=d||o.length!==Object.keys(u).length,d?m:u}}function me(){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 Jr(){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),o=function(){throw new Error(N(15))},a={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},s=t.map(function(l){return l(a)});return o=me.apply(void 0,s)(i.dispatch),Mt(Mt({},i),{},{dispatch:o})}}}function Zr(e){var t=function(n){var i=n.dispatch,o=n.getState;return function(a){return function(s){return typeof s=="function"?s(i,o,e):a(s)}}};return t}var Qr=Zr();Qr.withExtraArgument=Zr;var kt=Qr;var nn=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},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)}}(),Xn=function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,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(c){return l([u,c])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){r.label=u[1];break}if(u[0]===6&&r.label<o[1]){r.label=o[1],o=u;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(u);break}o[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(c){u=[6,c],i=0}finally{n=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},ye=function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e},Yn=Object.defineProperty,Jn=Object.defineProperties,Zn=Object.getOwnPropertyDescriptors,Fr=Object.getOwnPropertySymbols,Qn=Object.prototype.hasOwnProperty,Fn=Object.prototype.propertyIsEnumerable,en=function(e,t,r){return t in e?Yn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},re=function(e,t){for(var r in t||(t={}))Qn.call(t,r)&&en(e,r,t[r]);if(Fr)for(var n=0,i=Fr(t);n<i.length;n++){var r=i[n];Fn.call(t,r)&&en(e,r,t[r])}return e},jt=function(e,t){return Jn(e,Zn(t))},eo=function(e,t,r){return new Promise(function(n,i){var o=function(l){try{s(r.next(l))}catch(u){i(u)}},a=function(l){try{s(r.throw(l))}catch(u){i(u)}},s=function(l){return l.done?n(l.value):Promise.resolve(l.value).then(o,a)};s((r=r.apply(e,t)).next())})};var to=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?me:me.apply(null,arguments)},na=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function ro(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 no=function(e){nn(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,ye([void 0],r[0].concat(this)))):new(t.bind.apply(t,ye([void 0],r.concat(this))))},t}(Array),oo=function(e){nn(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,ye([void 0],r[0].concat(this)))):new(t.bind.apply(t,ye([void 0],r.concat(this))))},t}(Array);function Bt(e){return W(e)?Je(e,function(){}):e}function io(e){return typeof e=="boolean"}function ao(){return function(t){return so(t)}}function so(e){e===void 0&&(e={});var t=e.thunk,r=t===void 0?!0:t,n=e.immutableCheck,i=n===void 0?!0:n,o=e.serializableCheck,a=o===void 0?!0:o,s=new no;if(r&&(io(r)?s.push(kt):s.push(kt.withExtraArgument(r.extraArgument))),0){if(i)var l;if(a)var u}return s}var It=!0;function on(e){var t=ao(),r=e||{},n=r.reducer,i=n===void 0?void 0:n,o=r.middleware,a=o===void 0?t():o,s=r.devTools,l=s===void 0?!0:s,u=r.preloadedState,c=u===void 0?void 0:u,f=r.enhancers,d=f===void 0?void 0:f,m;if(typeof i=="function")m=i;else if(ro(i))m=Yr(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 h=a;if(typeof h=="function"&&(h=h(t),!It&&!Array.isArray(h)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!It&&h.some(function(w){return typeof w!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=Jr.apply(void 0,h),S=me;l&&(S=to(re({trace:!It},typeof l=="object"&&l)));var b=new oo(v),x=b;Array.isArray(d)?x=ye([v],d):typeof d=="function"&&(x=d(b));var A=S.apply(void 0,x);return Dt(m,c,A)}function ne(e,t){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(t){var o=t.apply(void 0,n);if(!o)throw new Error("prepareAction did not return an object");return re(re({type:e,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.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 an(e){var t={},r=[],n,i={addCase:function(o,a){var s=typeof o=="string"?o:o.type;if(s in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[s]=a,i},addMatcher:function(o,a){return r.push({matcher:o,reducer:a}),i},addDefaultCase:function(o){return n=o,i}};return e(i),[t,r,n]}function uo(e){return typeof e=="function"}function co(e,t,r,n){r===void 0&&(r=[]);var i=typeof t=="function"?an(t):[t,r,n],o=i[0],a=i[1],s=i[2],l;if(uo(e))l=function(){return Bt(e())};else{var u=Bt(e);l=function(){return u}}function c(f,d){f===void 0&&(f=l());var m=ye([o[d.type]],a.filter(function(h){var v=h.matcher;return v(d)}).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($(h)){var S=h,b=v(S,d);return b===void 0?h:b}else{if(W(h))return Je(h,function(x){return v(x,d)});var b=v(h,d);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},f)}return c.getInitialState=l,c}function lo(e,t){return e+"/"+t}function sn(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:Bt(e.initialState),n=e.reducers||{},i=Object.keys(n),o={},a={},s={};i.forEach(function(c){var f=n[c],d=lo(t,c),m,h;"reducer"in f?(m=f.reducer,h=f.prepare):m=f,o[c]=m,a[d]=m,s[c]=h?ne(d,h):ne(d)});function l(){var c=typeof e.extraReducers=="function"?an(e.extraReducers):[e.extraReducers],f=c[0],d=f===void 0?{}:f,m=c[1],h=m===void 0?[]:m,v=c[2],S=v===void 0?void 0:v,b=re(re({},d),a);return co(r,function(x){for(var A in b)x.addCase(A,b[A]);for(var w=0,X=h;w<X.length;w++){var z=X[w];x.addMatcher(z.matcher,z.reducer)}S&&x.addDefaultCase(S)})}var u;return{name:t,reducer:function(c,f){return u||(u=l()),u(c,f)},actions:s,caseReducers:o,getInitialState:function(){return u||(u=l()),u.getInitialState()}}}var fo="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",po=function(e){e===void 0&&(e=21);for(var t="",r=e;r--;)t+=fo[Math.random()*64|0];return t},ho=["name","message","stack","code"],Ut=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),tn=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),vo=function(e){if(typeof e=="object"&&e!==null){for(var t={},r=0,n=ho;r<n.length;r++){var i=n[r];typeof e[i]=="string"&&(t[i]=e[i])}return t}return{message:String(e)}},sa=function(){function e(t,r,n){var i=ne(t+"/fulfilled",function(c,f,d,m){return{payload:c,meta:jt(re({},m||{}),{arg:d,requestId:f,requestStatus:"fulfilled"})}}),o=ne(t+"/pending",function(c,f,d){return{payload:void 0,meta:jt(re({},d||{}),{arg:f,requestId:c,requestStatus:"pending"})}}),a=ne(t+"/rejected",function(c,f,d,m,h){return{payload:m,error:(n&&n.serializeError||vo)(c||"Rejected"),meta:jt(re({},h||{}),{arg:d,requestId:f,rejectedWithValue:!!m,requestStatus:"rejected",aborted:c?.name==="AbortError",condition:c?.name==="ConditionError"})}}),s=!1,l=typeof AbortController<"u"?AbortController:function(){function c(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return c.prototype.abort=function(){},c}();function u(c){return function(f,d,m){var h=n?.idGenerator?n.idGenerator(c):po(),v=new l,S,b=!1;function x(w){S=w,v.abort()}var A=function(){return eo(this,null,function(){var w,X,z,ge,Yt,be,Jt;return Xn(this,function(le){switch(le.label){case 0:return le.trys.push([0,4,,5]),ge=(w=n?.condition)==null?void 0:w.call(n,c,{getState:d,extra:m}),yo(ge)?[4,ge]:[3,2];case 1:ge=le.sent(),le.label=2;case 2:if(ge===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=!0,Yt=new Promise(function(j,xe){return v.signal.addEventListener("abort",function(){return xe({name:"AbortError",message:S||"Aborted"})})}),f(o(h,c,(X=n?.getPendingMeta)==null?void 0:X.call(n,{requestId:h,arg:c},{getState:d,extra:m}))),[4,Promise.race([Yt,Promise.resolve(r(c,{dispatch:f,getState:d,extra:m,requestId:h,signal:v.signal,abort:x,rejectWithValue:function(j,xe){return new Ut(j,xe)},fulfillWithValue:function(j,xe){return new tn(j,xe)}})).then(function(j){if(j instanceof Ut)throw j;return j instanceof tn?i(j.payload,h,c,j.meta):i(j,h,c)})])];case 3:return z=le.sent(),[3,5];case 4:return be=le.sent(),z=be instanceof Ut?a(null,h,c,be.payload,be.meta):a(be,h,c),[3,5];case 5:return Jt=n&&!n.dispatchConditionRejection&&a.match(z)&&z.meta.condition,Jt||f(z),[2,z]}})})}();return Object.assign(A,{abort:x,requestId:h,arg:c,unwrap:function(){return A.then(mo)}})}}return Object.assign(u,{pending:o,rejected:a,fulfilled:i,typePrefix:t})}return e.withTypes=function(){return e},e}();function mo(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function yo(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var un="listener",cn="completed",ln="cancelled",ua="task-"+ln,ca="task-"+cn,la=un+"-"+ln,fa=un+"-"+cn;var Wt="listenerMiddleware";var da=ne(Wt+"/add"),pa=ne(Wt+"/removeAll"),ha=ne(Wt+"/remove");var rn,va=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(rn||(rn=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},go=function(e){return function(t){setTimeout(t,e)}},ma=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:go(10);Vr();function bo(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 Qe=class extends bo(Object){};window.ftReduxStores||(window.ftReduxStores={});var fn=class e extends Qe{static get(t){var r;let n=typeof t=="string"?t:t.name,i=typeof t=="string"?void 0:t,o=window.ftReduxStores[n];if(Oe(o))return o;if(i==null)return;let a=sn({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),s=on({reducer:(l,u)=>u.type==="CLEAR_FT_REDUX_STORE"?a.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...l,...u.overwrites}:a.reducer(l,u)});return window.ftReduxStores[i.name]=new e(a,s,i.eventBus)}constructor(t,r,n){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Ge;let i=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,a,s)=>{let l=a,u=o[l];return u?(...c)=>{let f=u(...c.map(i));return this.reduxStore.dispatch(f),f}:c=>{this.setState({[l]:i(c)})}}}),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 rt=y(C());var Fe=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 et=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 So="ft-user-assets",tt=rt.FtReduxStore.get({name:So,initialState:{savedSearches:void 0,bookmarks:void 0}}),Vt=class{constructor(){this.currentSession=g.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new et,this.savedSearchesService=new Fe,g.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=g.getState();(0,rt.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(),tt.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),tt.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();tt.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;tt.actions.bookmarks(r)}}},Za=new Vt;var Gt=class{addCommand(t,r=!1){g.commands.add(t,r)}consumeCommand(t){return g.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Gt;var dn=y(C()),Kt=class{highlightHtml(t,r,n){(0,dn.highlightHtml)(t,r,n)}};window.FluidTopicsHighlightHtmlService=new Kt;var pn=y(C());var Ht=class{isDate(t){var r,n,i,o;return(o=(i=((n=(r=g.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&&o!==void 0?o:!1}format(t,r){var n,i,o;return pn.DateFormatter.format(t,(n=r?.locale)!==null&&n!==void 0?n:g.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(o=r?.withTime)!==null&&o!==void 0?o:!1)}};window.FluidTopicsDateService=new Ht;var wo=y(C());(0,hn.customElement)("ft-app-context")(O);var mn=y(L()),Eo=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,r,o):a(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},zt=Symbol("i18nAttributes"),qt=Symbol("i18nListAttributes"),nt=Symbol("i18nProperties"),$t=Symbol("i18nManualContexts"),Pe=Symbol("i18nUnsubs");function yn(e){var t,r;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[r]=new Map}getI18nService(o){return o??this.useCustomMessageContexts?Be:de}i18n(o,a,...s){var l;if(typeof o=="string")return this.getI18nService().resolveMessage(o,a,...s);let u=(l=o.args)!==null&&l!==void 0?l:o.argsProvider?o.argsProvider(this):[];return this.getI18nService(o.custom).resolveMessage(o.context,o.key,...u)}onI18nUpdate(o){var a,s,l;(a=this[zt])===null||a===void 0||a.forEach((u,c)=>{let f=this.getI18nAttributeValue(c);f&&(this[c]=this.getI18nAttributeMessage(f,u,o))}),(s=this[qt])===null||s===void 0||s.forEach((u,c)=>{let f=this.getI18nListAttributeValues(c);this[c]=f?.map(d=>this.getI18nAttributeMessage(d,u,o))}),(l=this[nt])===null||l===void 0||l.forEach((u,c)=>{u.context.toLowerCase()===o.toLowerCase()&&(this[c]=this.i18n(u))}),setTimeout(()=>this.requestUpdate(),0)}getI18nAttributeMessage(o,a,s){var l;let u=!s||((l=o.context)===null||l===void 0?void 0:l.toLowerCase())===s.toLowerCase(),c=o.context&&o.key&&u?this.i18n({context:o.context,key:o.key,...a}):o.message;return{...o,message:c}}update(o){var a,s,l;super.update(o),(a=this[zt])===null||a===void 0||a.forEach((u,c)=>{let f=this.getI18nAttributeValue(c);f?.context&&f.key&&(o.has(c)||u.argsProvider!=null)&&(this.addI18nContextIfNeeded(f,o,c),this[c]=this.getI18nAttributeMessage(f,u))}),(s=this[qt])===null||s===void 0||s.forEach((u,c)=>{let f=this.getI18nListAttributeValues(c);(o.has(c)||u.argsProvider!=null)&&(this[c]=f?.map(d=>(this.addI18nContextIfNeeded(d,o,c),this.getI18nAttributeMessage(d,u))))}),(l=this[nt])===null||l===void 0||l.forEach((u,c)=>{u.argsProvider!=null&&(this[c]=this.i18n(u))})}getI18nAttributeValue(o){return this[o]}getI18nListAttributeValues(o){return this[o]}addI18nContextIfNeeded(o,a,s){o.context&&o.key&&a.has(s)&&this.addI18nContext(o.context)}addI18nMessagesAndSubscribe(o,a,s){o=o.toLowerCase(),this[Pe].has(o)||this[Pe].set(o,this.getI18nService(s).subscribe(o,()=>this.onI18nUpdate(o))),this.getI18nService(s).prepareContext(o,a??{}),this.onI18nUpdate(o)}connectedCallback(){var o,a,s,l,u,c;super.connectedCallback(),new Set([...(a=(o=this[nt])===null||o===void 0?void 0:o.values())!==null&&a!==void 0?a:[],...[...(l=(s=this[zt])===null||s===void 0?void 0:s.keys())!==null&&l!==void 0?l:[]].map(f=>this.getI18nAttributeValue(f)),...[...(c=(u=this[qt])===null||u===void 0?void 0:u.keys())!==null&&c!==void 0?c:[]].flatMap(f=>this.getI18nListAttributeValues(f))].map(f=>f?.context)).forEach(f=>f&&this.addI18nMessages(f)),this[$t].forEach((f,d)=>{this.addI18nMessagesAndSubscribe(d,f.defaultMessages,f.isCustomContext)})}addI18nMessages(o,a,s){this[$t].set(o,{defaultMessages:a,isCustomContext:s}),this.addI18nMessagesAndSubscribe(o,a,s)}addI18nContext(o,a,s){typeof o=="string"?this.addI18nMessages(o,a,s):this.addI18nMessages(o.name,a,o.custom)}disconnectedCallback(){super.disconnectedCallback(),this[Pe].forEach(o=>o()),this[Pe].clear()}}return t=$t,r=Pe,Eo([(0,mn.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}var vn=class extends yn(it.FtLitElement){},ot=class extends yn(it.FtLitElementRedux){};var Me=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,r,o):a(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},V=class extends ot{constructor(){super(),this.editorMode=!1,this.addStore(g)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":at.nothing:at.html`
|
|
85
|
+
`}update(t){var r,n,i,o,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((i=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&i!==void 0?i:[]),g.actions.searchInAllLanguagesAllowed((a=(o=this.localesConfiguration)===null||o===void 0?void 0:o.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())}};O.elementDefinitions={};O.styles=yr;T([(0,P.property)()],O.prototype,"baseUrl",void 0);T([(0,P.property)()],O.prototype,"apiIntegrationIdentifier",void 0);T([(0,P.property)()],O.prototype,"uiLocale",void 0);T([(0,B.jsonProperty)(null)],O.prototype,"availableUiLocales",void 0);T([(0,B.jsonProperty)(null)],O.prototype,"metadataConfiguration",void 0);T([(0,P.property)({type:Boolean})],O.prototype,"editorMode",void 0);T([(0,P.property)({type:Boolean})],O.prototype,"noCustom",void 0);T([(0,P.property)({type:Boolean})],O.prototype,"openExternalDocumentInNewTab",void 0);T([(0,P.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],O.prototype,"noCustomComponent",void 0);T([(0,P.property)({type:Boolean})],O.prototype,"withManualResources",void 0);T([(0,P.property)({type:Boolean})],O.prototype,"navigatorOnline",void 0);T([(0,P.property)({type:Boolean})],O.prototype,"forcedOffline",void 0);T([(0,P.property)({type:Object})],O.prototype,"apiProvider",void 0);T([(0,B.jsonProperty)([])],O.prototype,"messageContexts",void 0);T([(0,B.jsonProperty)(void 0)],O.prototype,"session",void 0);T([(0,P.state)()],O.prototype,"localesConfiguration",void 0);var So=y(D());function Dn(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(!Ve(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(!Ve(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 o=a=>Object.keys(a).filter(s=>a[s]!=null);if(i=o(e),r=i.length,r!==o(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 a=i[n];if(!Ve(e[a],t[a]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function Ve(e,t){try{return Dn(e,t)}catch{return!1}}function Ke(e,t){return!Ve(e,t)}var kn=y(D(),1);var Ge=class{constructor(){this.queue=[]}add(t,r=!1){r&&(this.queue=this.queue.filter(n=>n.type!==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}};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:Ke,...t??{}})}var He=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,o=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let a of n)try{await a()}catch(s){i(s);return}o(!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 ze=globalThis,jn=ze.ShadowRoot&&(ze.ShadyCSS===void 0||ze.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ai=Symbol();var wr=(e,t)=>{if(jn)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let n=document.createElement("style"),i=ze.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,e.appendChild(n)}};var qe=class extends Er.LitElement{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([i,o])=>t.registry.define(i,o)));let r={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return wr(n,t.elementStyles),n}};var Oe=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,r,o):a(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},_r,Ar=Symbol("constructorPrototype"),Or=Symbol("constructorName"),Tr=Symbol("exportpartsDebouncer"),Cr=Symbol("dynamicDependenciesLoaded"),$=class extends qe{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[_r]=new He(5),this[Or]=this.constructor.name,this[Ar]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Or]&&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[Cr]||(t[Cr]=!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,isKeyboardNavigation:i}=this.elementToFocus;n!=null&&(r=this.shadowRoot.querySelector(n)),r?.focus(),i||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(o=>o.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(o){console.error(o,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let o=document.createElement("style");o.classList.add("ft-lit-element--custom-stylesheet"),o.innerHTML=this.customStylesheet,this.shadowRoot.append(o)}}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[Tr].run(()=>{var i,o;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(t){var r,n,i,o,a,s;let l=d=>d!=null&&d.trim().length>0,u=t.filter(l).map(d=>d.trim());if(u.length===0){this.removeAttribute("exportparts");return}let c=new Set;for(let d of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let m=(o=(i=d.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&o!==void 0?o:[],h=(s=(a=d.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(l).map(v=>v.trim()).forEach(v=>c.add(v))}if(c.size===0){this.removeAttribute("exportparts");return}let f=[...c.values()].flatMap(d=>u.map(m=>`${d}:${m}--${d}`));this.setAttribute("exportparts",[...this.part,...f].join(", "))}};_r=Tr;Oe([(0,pe.property)()],$.prototype,"exportpartsPrefix",void 0);Oe([Sr([])],$.prototype,"exportpartsPrefixes",void 0);Oe([(0,pe.property)()],$.prototype,"customStylesheet",void 0);Oe([(0,pe.property)()],$.prototype,"elementToFocus",void 0);Oe([(0,pe.state)()],$.prototype,"useAdoptedStyleSheets",void 0);function Ce(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Nr,Rr,Pr,_e=Symbol("internalReduxEventsUnsubscribers"),F=Symbol("internalStoresUnsubscribers"),se=Symbol("internalStores"),Te=class extends ${constructor(){super(...arguments),this[Nr]=new Map,this[Rr]=new Map,this[Pr]=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 i=this.getStore(t.store);i&&(t.store?this[F].has(t.store):this[F].size>0)&&(this[r]=t.selector(i.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((i,o)=>{if(typeof this[o]=="function"&&(!i.store||r.name===i.store)){let a=s=>this[o](s);r.addEventListener(i.eventName,a),this[_e].get(t).push(()=>r.removeEventListener(i.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()}};Nr=F,Rr=se,Pr=_e;Te.reduxProperties=new Map;Te.reduxReactiveProperties=new Set;Te.reduxEventListeners=new Map;function k(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,o;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 i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===Hn}(e)||Array.isArray(e)||!!e[Ur]||!!(!((t=e.constructor)===null||t===void 0)&&t[Ur])||Nt(e)||Rt(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,i){return t(i,n,e)})}function me(e){var t=e[E];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Nt(e)?2:Rt(e)?3:0}function he(e,t){return me(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function In(e,t){return me(e)===2?e.get(t):e[t]}function Br(e,t,r){var n=me(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function Wr(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Nt(e){return Kn&&e instanceof Map}function Rt(e){return Gn&&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=Gr(e);delete t[E];for(var r=ve(t),n=0;n<r.length;n++){var i=r[n],o=t[i];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function Mt(e,t){return t===void 0&&(t=!1),Lt(e)||X(e)||!W(e)||(me(e)>1&&(e.set=e.add=e.clear=e.delete=Un),Object.freeze(e),t&&ue(e,function(r,n){return Mt(n,!0)},!0)),e}function Un(){k(2)}function Lt(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function H(e){var t=Tt[e];return t||k(18,e),t}function Bn(e,t){Tt[e]||(Tt[e]=t)}function Ot(){return Re}function St(e,t){t&&(H("Patches"),e.u=[],e.s=[],e.v=t)}function $e(e){Ct(e),e.p.forEach(Wn),e.p=null}function Ct(e){e===Re&&(Re=e.l)}function Mr(e){return Re={p:[],l:Re,h:e,m:!0,_:0}}function Wn(e){var t=e[E];t.i===0||t.i===1?t.j():t.g=!0}function wt(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&&($e(t),k(4)),W(e)&&(e=Xe(t,e),t.l||Ye(t,e)),t.u&&H("Patches").M(r[E].t,e,t.u,t.s)):e=Xe(t,r,[]),$e(t),t.u&&t.v(t.u,t.s),e!==Kr?e:void 0}function Xe(e,t,r){if(Lt(t))return t;var n=t[E];if(!n)return ue(t,function(s,l){return Lr(e,n,t,s,l,r)},!0),t;if(n.A!==e)return t;if(!n.P)return Ye(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Pt(n.k):n.o,o=i,a=!1;n.i===3&&(o=new Set(i),i.clear(),a=!0),ue(o,function(s,l){return Lr(e,n,i,s,l,r,a)}),Ye(e,i,!1),r&&e.u&&H("Patches").N(n,r,e.u,e.s)}return n.o}function Lr(e,t,r,n,i,o,a){if(X(i)){var s=Xe(e,i,o&&t&&t.i!==3&&!he(t.R,n)?o.concat(n):void 0);if(Br(r,n,s),!X(s))return;e.m=!1}else a&&r.add(i);if(W(i)&&!Lt(i)){if(!e.h.D&&e._<1)return;Xe(e,i),t&&t.A.l||Ye(e,i)}}function Ye(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Mt(t,r)}function Et(e,t){var r=e[E];return(r?ee(r):e)[t]}function Dr(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 At(e){e.o||(e.o=Pt(e.t))}function _t(e,t,r){var n=Nt(t)?H("MapSet").F(t,r):Rt(t)?H("MapSet").T(t,r):e.O?function(i,o){var a=Array.isArray(i),s={i:a?1:0,A:o?o.A:Ot(),P:!1,I:!1,R:{},l:o,t:i,k:null,o:null,j:null,C:!1},l=s,u=Pe;a&&(l=[s],u=Ne);var c=Proxy.revocable(l,u),f=c.revoke,d=c.proxy;return s.k=d,s.j=f,d}(t,r):H("ES5").J(t,r);return(r?r.A:Ot()).p.push(n),n}function Vn(e){return X(e)||k(22,e),function t(r){if(!W(r))return r;var n,i=r[E],o=me(r);if(i){if(!i.P&&(i.i<4||!H("ES5").K(i)))return i.t;i.I=!0,n=kr(r,o),i.I=!1}else n=kr(r,o);return ue(n,function(a,s){i&&In(i.t,a)===s||Br(n,a,t(s))}),o===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 Vr(){function e(a,s){var l=o[a];return l?l.enumerable=s:o[a]=l={configurable:!0,enumerable:s,get:function(){var u=this[E];return Pe.get(u,a)},set:function(u){var c=this[E];Pe.set(c,a,u)}},l}function t(a){for(var s=a.length-1;s>=0;s--){var l=a[s][E];if(!l.P)switch(l.i){case 5:n(l)&&te(l);break;case 4:r(l)&&te(l)}}}function r(a){for(var s=a.t,l=a.k,u=ve(l),c=u.length-1;c>=0;c--){var f=u[c];if(f!==E){var d=s[f];if(d===void 0&&!he(s,f))return!0;var m=l[f],h=m&&m[E];if(h?h.t!==d:!Wr(m,d))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 l=Object.getOwnPropertyDescriptor(s,s.length-1);if(l&&!l.get)return!0;for(var u=0;u<s.length;u++)if(!s.hasOwnProperty(u))return!0;return!1}function i(a){a.g&&k(3,JSON.stringify(ee(a)))}var o={};Bn("ES5",{J:function(a,s){var l=Array.isArray(a),u=function(f,d){if(f){for(var m=Array(d.length),h=0;h<d.length;h++)Object.defineProperty(m,""+h,e(h,!0));return m}var v=Gr(d);delete v[E];for(var S=ve(v),b=0;b<S.length;b++){var x=S[b];v[x]=e(x,f||!!v[x].enumerable)}return Object.create(Object.getPrototypeOf(d),v)}(l,a),c={i:l?5:4,A:s?s.A:Ot(),P:!1,I:!1,R:{},l:s,t:a,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,E,{value:c,writable:!0}),u},S:function(a,s,l){l?X(s)&&s[E].A===a&&t(a.p):(a.u&&function u(c){if(c&&typeof c=="object"){var f=c[E];if(f){var d=f.t,m=f.k,h=f.R,v=f.i;if(v===4)ue(m,function(w){w!==E&&(d[w]!==void 0||he(d,w)?h[w]||u(m[w]):(h[w]=!0,te(f)))}),ue(d,function(w){m[w]!==void 0||he(m,w)||(h[w]=!1,te(f))});else if(v===5){if(n(f)&&(te(f),h.length=!0),m.length<d.length)for(var S=m.length;S<d.length;S++)h[S]=!1;else for(var b=d.length;b<m.length;b++)h[b]=!0;for(var x=Math.min(m.length,d.length),A=0;A<x;A++)m.hasOwnProperty(A)||(h[A]=!0),h[A]===void 0&&u(m[A])}}}}(a.p[0]),t(a.p))},K:function(a){return a.i===4?r(a):n(a)}})}var jr,Re,Dt=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Kn=typeof Map<"u",Gn=typeof Set<"u",Ir=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Kr=Dt?Symbol.for("immer-nothing"):((jr={})["immer-nothing"]=!0,jr),Ur=Dt?Symbol.for("immer-draftable"):"__$immer_draftable",E=Dt?Symbol.for("immer-state"):"__$immer_state";var Hn=""+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,Gr=Object.getOwnPropertyDescriptors||function(e){var t={};return ve(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},Tt={},Pe={get:function(e,t){if(t===E)return e;var r=ee(e);if(!he(r,t))return function(i,o,a){var s,l=Dr(o,a);return l?"value"in l?l.value:(s=l.get)===null||s===void 0?void 0:s.call(i.k):void 0}(e,r,t);var n=r[t];return e.I||!W(n)?n:n===Et(e.t,t)?(At(e),e.o[t]=_t(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=Dr(ee(e),t);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var i=Et(ee(e),t),o=i?.[E];if(o&&o.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(Wr(r,i)&&(r!==void 0||he(e.t,t)))return!0;At(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 Et(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,At(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(){k(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){k(12)}},Ne={};ue(Pe,function(e,t){Ne[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Ne.deleteProperty=function(e,t){return Ne.set.call(this,e,t,void 0)},Ne.set=function(e,t,r){return Pe.set.call(this,e[0],t,r,e[0])};var zn=function(){function e(r){var n=this;this.O=Ir,this.D=!0,this.produce=function(i,o,a){if(typeof i=="function"&&typeof o!="function"){var s=o;o=i;var l=n;return function(v){var S=this;v===void 0&&(v=s);for(var b=arguments.length,x=Array(b>1?b-1:0),A=1;A<b;A++)x[A-1]=arguments[A];return l.produce(v,function(w){var Y;return(Y=o).call.apply(Y,[S,w].concat(x))})}}var u;if(typeof o!="function"&&k(6),a!==void 0&&typeof a!="function"&&k(7),W(i)){var c=Mr(n),f=_t(n,i,void 0),d=!0;try{u=o(f),d=!1}finally{d?$e(c):Ct(c)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(v){return St(c,a),wt(v,c)},function(v){throw $e(c),v}):(St(c,a),wt(u,c))}if(!i||typeof i!="object"){if((u=o(i))===void 0&&(u=i),u===Kr&&(u=void 0),n.D&&Mt(u,!0),a){var m=[],h=[];H("Patches").M(i,u,m,h),a(m,h)}return u}k(21,i)},this.produceWithPatches=function(i,o){if(typeof i=="function")return function(u){for(var c=arguments.length,f=Array(c>1?c-1:0),d=1;d<c;d++)f[d-1]=arguments[d];return n.produceWithPatches(u,function(m){return i.apply(void 0,[m].concat(f))})};var a,s,l=n.produce(i,o,function(u,c){a=u,s=c});return typeof Promise<"u"&&l instanceof Promise?l.then(function(u){return[u,a,s]}):[l,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)||k(8),X(r)&&(r=Vn(r));var n=Mr(this),i=_t(this,r,void 0);return i[E].C=!0,Ct(n),i},t.finishDraft=function(r,n){var i=r&&r[E],o=i.A;return St(o,n),wt(void 0,o)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!Ir&&k(20),this.O=r},t.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var o=n[i];if(o.path.length===0&&o.op==="replace"){r=o.value;break}}i>-1&&(n=n.slice(i+1));var a=H("Patches").$;return X(r)?a(r,n):this.produce(r,function(s){return a(s,n)})},e}(),M=new zn,qn=M.produce,ji=M.produceWithPatches.bind(M),Ii=M.setAutoFreeze.bind(M),Ui=M.setUseProxies.bind(M),Bi=M.applyPatches.bind(M),Wi=M.createDraft.bind(M),Vi=M.finishDraft.bind(M),Je=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 Hr(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 zr(e){var t=Hr(e,"string");return ce(t)=="symbol"?t:t+""}function qr(e,t,r){return(t=zr(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $r(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 kt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$r(Object(r),!0).forEach(function(n){qr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$r(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function N(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 Xr=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),jt=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ze={INIT:"@@redux/INIT"+jt(),REPLACE:"@@redux/REPLACE"+jt(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+jt()}};function $n(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 It(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(N(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(N(1));return r(It)(e,t)}if(typeof e!="function")throw new Error(N(2));var i=e,o=t,a=[],s=a,l=!1;function u(){s===a&&(s=a.slice())}function c(){if(l)throw new Error(N(3));return o}function f(v){if(typeof v!="function")throw new Error(N(4));if(l)throw new Error(N(5));var S=!0;return u(),s.push(v),function(){if(S){if(l)throw new Error(N(6));S=!1,u();var x=s.indexOf(v);s.splice(x,1),a=null}}}function d(v){if(!$n(v))throw new Error(N(7));if(typeof v.type>"u")throw new Error(N(8));if(l)throw new Error(N(9));try{l=!0,o=i(o,v)}finally{l=!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(N(10));i=v,d({type:Ze.REPLACE})}function h(){var v,S=f;return v={subscribe:function(x){if(typeof x!="object"||x===null)throw new Error(N(11));function A(){x.next&&x.next(c())}A();var w=S(A);return{unsubscribe:w}}},v[Xr]=function(){return this},v}return d({type:Ze.INIT}),n={dispatch:d,subscribe:f,getState:c,replaceReducer:m},n[Xr]=h,n}function Xn(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(N(12));if(typeof r(void 0,{type:Ze.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(N(13))})}function Yr(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 o=Object.keys(r),a,s;try{Xn(r)}catch(l){s=l}return function(u,c){if(u===void 0&&(u={}),s)throw s;if(0)var f;for(var d=!1,m={},h=0;h<o.length;h++){var v=o[h],S=r[v],b=u[v],x=S(b,c);if(typeof x>"u"){var A=c&&c.type;throw new Error(N(14))}m[v]=x,d=d||x!==b}return d=d||o.length!==Object.keys(u).length,d?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,i){return function(){return n(i.apply(void 0,arguments))}})}function Jr(){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),o=function(){throw new Error(N(15))},a={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},s=t.map(function(l){return l(a)});return o=ye.apply(void 0,s)(i.dispatch),kt(kt({},i),{},{dispatch:o})}}}function Zr(e){var t=function(n){var i=n.dispatch,o=n.getState;return function(a){return function(s){return typeof s=="function"?s(i,o,e):a(s)}}};return t}var Qr=Zr();Qr.withExtraArgument=Zr;var Ut=Qr;var nn=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},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)}}(),Yn=function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,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(c){return l([u,c])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){r.label=u[1];break}if(u[0]===6&&r.label<o[1]){r.label=o[1],o=u;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(u);break}o[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(c){u=[6,c],i=0}finally{n=o=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,i=e.length;r<n;r++,i++)e[i]=t[r];return e},Jn=Object.defineProperty,Zn=Object.defineProperties,Qn=Object.getOwnPropertyDescriptors,Fr=Object.getOwnPropertySymbols,Fn=Object.prototype.hasOwnProperty,eo=Object.prototype.propertyIsEnumerable,en=function(e,t,r){return t in e?Jn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},re=function(e,t){for(var r in t||(t={}))Fn.call(t,r)&&en(e,r,t[r]);if(Fr)for(var n=0,i=Fr(t);n<i.length;n++){var r=i[n];eo.call(t,r)&&en(e,r,t[r])}return e},Bt=function(e,t){return Zn(e,Qn(t))},to=function(e,t,r){return new Promise(function(n,i){var o=function(l){try{s(r.next(l))}catch(u){i(u)}},a=function(l){try{s(r.throw(l))}catch(u){i(u)}},s=function(l){return l.done?n(l.value):Promise.resolve(l.value).then(o,a)};s((r=r.apply(e,t)).next())})};var ro=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)},ia=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function no(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 oo=function(e){nn(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,ge([void 0],r[0].concat(this)))):new(t.bind.apply(t,ge([void 0],r.concat(this))))},t}(Array),io=function(e){nn(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,ge([void 0],r[0].concat(this)))):new(t.bind.apply(t,ge([void 0],r.concat(this))))},t}(Array);function Kt(e){return W(e)?Je(e,function(){}):e}function ao(e){return typeof e=="boolean"}function so(){return function(t){return uo(t)}}function uo(e){e===void 0&&(e={});var t=e.thunk,r=t===void 0?!0:t,n=e.immutableCheck,i=n===void 0?!0:n,o=e.serializableCheck,a=o===void 0?!0:o,s=new oo;if(r&&(ao(r)?s.push(Ut):s.push(Ut.withExtraArgument(r.extraArgument))),0){if(i)var l;if(a)var u}return s}var Wt=!0;function on(e){var t=so(),r=e||{},n=r.reducer,i=n===void 0?void 0:n,o=r.middleware,a=o===void 0?t():o,s=r.devTools,l=s===void 0?!0:s,u=r.preloadedState,c=u===void 0?void 0:u,f=r.enhancers,d=f===void 0?void 0:f,m;if(typeof i=="function")m=i;else if(no(i))m=Yr(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 h=a;if(typeof h=="function"&&(h=h(t),!Wt&&!Array.isArray(h)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Wt&&h.some(function(w){return typeof w!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=Jr.apply(void 0,h),S=ye;l&&(S=ro(re({trace:!Wt},typeof l=="object"&&l)));var b=new io(v),x=b;Array.isArray(d)?x=ge([v],d):typeof d=="function"&&(x=d(b));var A=S.apply(void 0,x);return It(m,c,A)}function ne(e,t){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(t){var o=t.apply(void 0,n);if(!o)throw new Error("prepareAction did not return an object");return re(re({type:e,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.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 an(e){var t={},r=[],n,i={addCase:function(o,a){var s=typeof o=="string"?o:o.type;if(s in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[s]=a,i},addMatcher:function(o,a){return r.push({matcher:o,reducer:a}),i},addDefaultCase:function(o){return n=o,i}};return e(i),[t,r,n]}function co(e){return typeof e=="function"}function lo(e,t,r,n){r===void 0&&(r=[]);var i=typeof t=="function"?an(t):[t,r,n],o=i[0],a=i[1],s=i[2],l;if(co(e))l=function(){return Kt(e())};else{var u=Kt(e);l=function(){return u}}function c(f,d){f===void 0&&(f=l());var m=ge([o[d.type]],a.filter(function(h){var v=h.matcher;return v(d)}).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,d);return b===void 0?h:b}else{if(W(h))return Je(h,function(x){return v(x,d)});var b=v(h,d);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},f)}return c.getInitialState=l,c}function fo(e,t){return e+"/"+t}function sn(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:Kt(e.initialState),n=e.reducers||{},i=Object.keys(n),o={},a={},s={};i.forEach(function(c){var f=n[c],d=fo(t,c),m,h;"reducer"in f?(m=f.reducer,h=f.prepare):m=f,o[c]=m,a[d]=m,s[c]=h?ne(d,h):ne(d)});function l(){var c=typeof e.extraReducers=="function"?an(e.extraReducers):[e.extraReducers],f=c[0],d=f===void 0?{}:f,m=c[1],h=m===void 0?[]:m,v=c[2],S=v===void 0?void 0:v,b=re(re({},d),a);return lo(r,function(x){for(var A in b)x.addCase(A,b[A]);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(c,f){return u||(u=l()),u(c,f)},actions:s,caseReducers:o,getInitialState:function(){return u||(u=l()),u.getInitialState()}}}var po="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",ho=function(e){e===void 0&&(e=21);for(var t="",r=e;r--;)t+=po[Math.random()*64|0];return t},vo=["name","message","stack","code"],Vt=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),tn=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),mo=function(e){if(typeof e=="object"&&e!==null){for(var t={},r=0,n=vo;r<n.length;r++){var i=n[r];typeof e[i]=="string"&&(t[i]=e[i])}return t}return{message:String(e)}},ca=function(){function e(t,r,n){var i=ne(t+"/fulfilled",function(c,f,d,m){return{payload:c,meta:Bt(re({},m||{}),{arg:d,requestId:f,requestStatus:"fulfilled"})}}),o=ne(t+"/pending",function(c,f,d){return{payload:void 0,meta:Bt(re({},d||{}),{arg:f,requestId:c,requestStatus:"pending"})}}),a=ne(t+"/rejected",function(c,f,d,m,h){return{payload:m,error:(n&&n.serializeError||mo)(c||"Rejected"),meta:Bt(re({},h||{}),{arg:d,requestId:f,rejectedWithValue:!!m,requestStatus:"rejected",aborted:c?.name==="AbortError",condition:c?.name==="ConditionError"})}}),s=!1,l=typeof AbortController<"u"?AbortController:function(){function c(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return c.prototype.abort=function(){},c}();function u(c){return function(f,d,m){var h=n?.idGenerator?n.idGenerator(c):ho(),v=new l,S,b=!1;function x(w){S=w,v.abort()}var A=function(){return to(this,null,function(){var w,Y,z,be,Yt,xe,Jt;return Yn(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,c,{getState:d,extra:m}),go(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,Yt=new Promise(function(j,Se){return v.signal.addEventListener("abort",function(){return Se({name:"AbortError",message:S||"Aborted"})})}),f(o(h,c,(Y=n?.getPendingMeta)==null?void 0:Y.call(n,{requestId:h,arg:c},{getState:d,extra:m}))),[4,Promise.race([Yt,Promise.resolve(r(c,{dispatch:f,getState:d,extra:m,requestId:h,signal:v.signal,abort:x,rejectWithValue:function(j,Se){return new Vt(j,Se)},fulfillWithValue:function(j,Se){return new tn(j,Se)}})).then(function(j){if(j instanceof Vt)throw j;return j instanceof tn?i(j.payload,h,c,j.meta):i(j,h,c)})])];case 3:return z=le.sent(),[3,5];case 4:return xe=le.sent(),z=xe instanceof Vt?a(null,h,c,xe.payload,xe.meta):a(xe,h,c),[3,5];case 5:return Jt=n&&!n.dispatchConditionRejection&&a.match(z)&&z.meta.condition,Jt||f(z),[2,z]}})})}();return Object.assign(A,{abort:x,requestId:h,arg:c,unwrap:function(){return A.then(yo)}})}}return Object.assign(u,{pending:o,rejected:a,fulfilled:i,typePrefix:t})}return e.withTypes=function(){return e},e}();function yo(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function go(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var un="listener",cn="completed",ln="cancelled",la="task-"+ln,fa="task-"+cn,da=un+"-"+ln,pa=un+"-"+cn;var Gt="listenerMiddleware";var ha=ne(Gt+"/add"),va=ne(Gt+"/removeAll"),ma=ne(Gt+"/remove");var rn,ya=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(rn||(rn=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},bo=function(e){return function(t){setTimeout(t,e)}},ga=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:bo(10);Vr();function xo(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 Qe=class extends xo(Object){};window.ftReduxStores||(window.ftReduxStores={});var fn=class e extends Qe{static get(t){var r;let n=typeof t=="string"?t:t.name,i=typeof t=="string"?void 0:t,o=window.ftReduxStores[n];if(Ce(o))return o;if(i==null)return;let a=sn({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),s=on({reducer:(l,u)=>u.type==="CLEAR_FT_REDUX_STORE"?a.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...l,...u.overwrites}:a.reducer(l,u)});return window.ftReduxStores[i.name]=new e(a,s,i.eventBus)}constructor(t,r,n){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Ge;let i=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,a,s)=>{let l=a,u=o[l];return u?(...c)=>{let f=u(...c.map(i));return this.reduxStore.dispatch(f),f}:c=>{this.setState({[l]:i(c)})}}}),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 rt=y(C());var Fe=class extends Q{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 et=class extends Q{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 wo="ft-user-assets",tt=rt.FtReduxStore.get({name:wo,initialState:{savedSearches:void 0,bookmarks:void 0}}),Ht=class{constructor(){this.currentSession=g.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new et,this.savedSearchesService=new Fe,g.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=g.getState();(0,rt.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(),tt.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),tt.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();tt.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;tt.actions.bookmarks(r)}}},Fa=new Ht;var zt=class{addCommand(t,r=!1){g.commands.add(t,r)}consumeCommand(t){return g.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new zt;var dn=y(C()),qt=class{highlightHtml(t,r,n){(0,dn.highlightHtml)(t,r,n)}};window.FluidTopicsHighlightHtmlService=new qt;var pn=y(C());var $t=class{isDate(t){var r,n,i,o;return(o=(i=((n=(r=g.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&&o!==void 0?o:!1}format(t,r){var n,i,o;return pn.DateFormatter.format(t,(n=r?.locale)!==null&&n!==void 0?n:g.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(o=r?.withTime)!==null&&o!==void 0?o:!1)}};window.FluidTopicsDateService=new $t;var Eo=y(C());(0,hn.customElement)("ft-app-context")(O);var yn=y(D());var Ao=y(C());function vn(e){return e.match(/^[\w-]+\.[\w-]+$/)}var Oo=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,r,o):a(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},nt=Symbol("i18nAttributes"),ot=Symbol("i18nListAttributes"),at=Symbol("i18nProperties"),it=Symbol("i18nManualContexts"),Me=Symbol("i18nUnsubs");function gn(e){var t,r;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[r]=new Map}getI18nService(o){return o??this.useCustomMessageContexts?We:de}i18n(o,a,...s){var l;if(typeof o=="string")return this.getI18nService().resolveMessage(o,a,...s);let u=(l=o.args)!==null&&l!==void 0?l:o.argsProvider?o.argsProvider(this):[];return this.getI18nService(o.custom).resolveMessage(o.context,o.key,...u)}customI18n(o){if(vn(o)){let[a,s]=o.split(".");return this[it].has(a)||this.addI18nContext(a,{},!0),this.getI18nService(!0).resolveMessage(a,s)||o}return o}onI18nUpdate(o){var a,s,l;(a=this[nt])===null||a===void 0||a.forEach((u,c)=>{let f=this.getI18nAttributeValue(c);f&&(this[c]=this.getI18nAttributeMessage(f,u,o))}),(s=this[ot])===null||s===void 0||s.forEach((u,c)=>{let f=this.getI18nListAttributeValues(c);this[c]=f?.map(d=>this.getI18nAttributeMessage(d,u,o))}),(l=this[at])===null||l===void 0||l.forEach((u,c)=>{u.context.toLowerCase()===o.toLowerCase()&&(this[c]=this.i18n(u))}),setTimeout(()=>this.requestUpdate(),0)}getI18nAttributeMessage(o,a,s){var l;let u=!s||((l=o.context)===null||l===void 0?void 0:l.toLowerCase())===s.toLowerCase(),c=o.context&&o.key&&u?this.i18n({context:o.context,key:o.key,...a}):o.message;return{...o,message:c}}update(o){var a,s,l;super.update(o),(a=this[nt])===null||a===void 0||a.forEach((u,c)=>{let f=this.getI18nAttributeValue(c);f?.context&&f.key&&(o.has(c)||u.argsProvider!=null)&&(this.addI18nContextIfNeeded(f,o,c),this[c]=this.getI18nAttributeMessage(f,u))}),(s=this[ot])===null||s===void 0||s.forEach((u,c)=>{let f=this.getI18nListAttributeValues(c);(o.has(c)||u.argsProvider!=null)&&(this[c]=f?.map(d=>(this.addI18nContextIfNeeded(d,o,c),this.getI18nAttributeMessage(d,u))))}),(l=this[at])===null||l===void 0||l.forEach((u,c)=>{u.argsProvider!=null&&(this[c]=this.i18n(u))})}getI18nAttributeValue(o){return this[o]}getI18nListAttributeValues(o){return this[o]}addI18nContextIfNeeded(o,a,s){o.context&&o.key&&a.has(s)&&this.addI18nContext(o.context)}addI18nMessagesAndSubscribe(o,a,s){o=o.toLowerCase(),this[Me].has(o)||this[Me].set(o,this.getI18nService(s).subscribe(o,()=>this.onI18nUpdate(o))),this.getI18nService(s).prepareContext(o,a??{}),this.onI18nUpdate(o)}connectedCallback(){var o,a,s,l,u,c;super.connectedCallback(),new Set([...(a=(o=this[at])===null||o===void 0?void 0:o.values())!==null&&a!==void 0?a:[],...[...(l=(s=this[nt])===null||s===void 0?void 0:s.keys())!==null&&l!==void 0?l:[]].map(f=>this.getI18nAttributeValue(f)),...[...(c=(u=this[ot])===null||u===void 0?void 0:u.keys())!==null&&c!==void 0?c:[]].flatMap(f=>this.getI18nListAttributeValues(f))].map(f=>f?.context)).forEach(f=>f&&this.addI18nMessages(f)),this[it].forEach((f,d)=>{this.addI18nMessagesAndSubscribe(d,f.defaultMessages,f.isCustomContext)})}addI18nMessages(o,a,s){this[it].set(o,{defaultMessages:a,isCustomContext:s}),this.addI18nMessagesAndSubscribe(o,a,s)}addI18nContext(o,a,s){typeof o=="string"?this.addI18nMessages(o,a,s):this.addI18nMessages(o.name,a,o.custom)}disconnectedCallback(){super.disconnectedCallback(),this[Me].forEach(o=>o()),this[Me].clear()}}return t=it,r=Me,Oo([(0,yn.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}var mn=class extends gn(ut.FtLitElement){},st=class extends gn(ut.FtLitElementRedux){};var Le=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,r,o):a(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},V=class extends st{constructor(){super(),this.editorMode=!1,this.addStore(g)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":ct.nothing:ct.html`
|
|
86
86
|
<span class="ft-i18n">
|
|
87
87
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
88
88
|
</span>
|
|
89
|
-
`}update(t){var r;super.update(t),["context","key","defaultMessage"].some(n=>t.has(n))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};V.elementDefinitions={};V.styles=vr;
|
|
89
|
+
`}update(t){var r;super.update(t),["context","key","defaultMessage"].some(n=>t.has(n))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};V.elementDefinitions={};V.styles=vr;Le([(0,ft.redux)()],V.prototype,"editorMode",void 0);Le([(0,lt.property)()],V.prototype,"context",void 0);Le([(0,lt.property)()],V.prototype,"key",void 0);Le([(0,ft.jsonProperty)([])],V.prototype,"args",void 0);Le([(0,lt.property)()],V.prototype,"defaultMessage",void 0);var dt=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?We:de}constructor(t,r=!1){this.name=t,this.custom=r,this.properties=new Proxy({},{get:(n,i)=>{let o=i;return a=>({context:this.name,key:o,custom:this.custom,args:typeof a=="function"?void 0:a,argsProvider:typeof a=="function"?a:void 0})}}),this.messages=new Proxy({},{get:(n,i)=>(...o)=>this.service.resolveMessage(this.name,i,...o)}),this.rawMessages=new Proxy({},{get:(n,i)=>this.service.resolveRawMessage(this.name,i)})}};(0,bn.customElement)("ft-i18n")(V);var Xt=dt.build("designedReaderTopicContent");var L=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,r,o):a(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},_=class extends je{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
90
|
<section class="topic-loading"></section>
|
|
91
91
|
`:oe.html`
|
|
92
92
|
<style>
|
|
93
|
-
@import "${(
|
|
93
|
+
@import "${(n=this.map)===null||n===void 0?void 0:n.contentStyles.topicStylesheetUrl}";
|
|
94
94
|
</style>
|
|
95
95
|
<section class="topic" lang="${this.getTopicLanguage()}">
|
|
96
96
|
${this.renderTopicContent()}
|
|
@@ -102,12 +102,12 @@
|
|
|
102
102
|
${this.is404Error()?Xt.messages.topicMissingAdvice():Xt.messages.somethingWentWrong()}
|
|
103
103
|
</div>
|
|
104
104
|
</div>
|
|
105
|
-
`;let i=(r=(t=this.map)===null||t===void 0?void 0:t.contentStyles.customCssClasses.join(" "))!==null&&r!==void 0?r:"";return this.translationLoading?oe.html`
|
|
105
|
+
`;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?oe.html`
|
|
106
106
|
<ft-skeleton></ft-skeleton>`:oe.html`
|
|
107
107
|
<div class="depth-${(n=this.tocNode)===null||n===void 0?void 0:n.depth} content-locale-${this.getTopicLanguage()} ${i}">
|
|
108
|
-
${this.content!=null?(0,
|
|
108
|
+
${this.content!=null?(0,xn.unsafeHTML)(`${this.content}`):oe.nothing}
|
|
109
109
|
</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=[rr,R.highlightHtmlStyles];
|
|
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=[rr,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,Sn.customElement)("ft-reader-topic-content")(_);})();
|
|
111
111
|
/*! Bundled license information:
|
|
112
112
|
|
|
113
113
|
@lit/reactive-element/css-tag.js:
|