@fluid-topics/ft-reader-topic-content 1.1.82 → 1.1.83

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- "use strict";(()=>{var hn=Object.create;var qt=Object.defineProperty;var vn=Object.getOwnPropertyDescriptor;var mn=Object.getOwnPropertyNames;var yn=Object.getPrototypeOf,bn=Object.prototype.hasOwnProperty;var Ne=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var gn=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of mn(t))!bn.call(e,o)&&o!==r&&qt(e,o,{get:()=>t[o],enumerable:!(n=vn(t,o))||n.enumerable});return e};var y=(e,t,r)=>(r=e!=null?hn(yn(e)):{},gn(t||!e||!e.__esModule?qt(r,"default",{value:e,enumerable:!0}):r,e));var C=Ne((mo,$t)=>{$t.exports=ftGlobals.wcUtils});var U=Ne((yo,Xt)=>{Xt.exports=ftGlobals.lit});var R=Ne((go,Qt)=>{Qt.exports=ftGlobals.litDecorators});var ct=Ne((Ao,nr)=>{nr.exports=ftGlobals.litUnsafeHTML});var pn=y(C());var ce=y(U());var Jt=y(U()),fe=y(C()),Yt={colorError:fe.FtCssVariableFactory.external(fe.designSystemVariables.colorError,"Design system"),fontFamily:fe.FtCssVariableFactory.external(fe.designSystemVariables.contentFont,"Design system")},Zt=Jt.css`
1
+ "use strict";(()=>{var mn=Object.create;var Yt=Object.defineProperty;var yn=Object.getOwnPropertyDescriptor;var bn=Object.getOwnPropertyNames;var gn=Object.getPrototypeOf,xn=Object.prototype.hasOwnProperty;var Ne=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Sn=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of bn(t))!xn.call(e,o)&&o!==r&&Yt(e,o,{get:()=>t[o],enumerable:!(n=yn(t,o))||n.enumerable});return e};var y=(e,t,r)=>(r=e!=null?mn(gn(e)):{},Sn(t||!e||!e.__esModule?Yt(r,"default",{value:e,enumerable:!0}):r,e));var C=Ne((bo,Jt)=>{Jt.exports=ftGlobals.wcUtils});var U=Ne((go,Zt)=>{Zt.exports=ftGlobals.lit});var R=Ne((So,tr)=>{tr.exports=ftGlobals.litDecorators});var dt=Ne((_o,ar)=>{ar.exports=ftGlobals.litUnsafeHTML});var vn=y(C());var ce=y(U());var Ft=y(U()),fe=y(C()),Qt={colorError:fe.FtCssVariableFactory.external(fe.designSystemVariables.colorError,"Design system"),fontFamily:fe.FtCssVariableFactory.external(fe.designSystemVariables.contentFont,"Design system")},er=Ft.css`
2
2
  .topic {
3
- font-family: ${Yt.fontFamily};
3
+ font-family: ${Qt.fontFamily};
4
4
  overflow-x: auto;
5
5
  }
6
6
 
@@ -10,7 +10,7 @@
10
10
  }
11
11
 
12
12
  .topic-on-error ft-icon {
13
- color: ${Yt.colorError}
13
+ color: ${Qt.colorError}
14
14
  }
15
15
 
16
16
  .topic-loading {
@@ -21,7 +21,7 @@
21
21
  white-space: pre-wrap;
22
22
  word-break: break-word;
23
23
  }
24
- `;var st=y(R());var er=y(C()),tr=y(R());var Ft;(function(e){e.FEEDBACK="FEEDBACK",e.RATING="RATING",e.PRINT="PRINT",e.BOOKMARK="BOOKMARK",e.COLLECTIONS="COLLECTIONS",e.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Ft||(Ft={}));var xn=function(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},it=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},ot=Symbol("registerInterval");function wn(e){var t;class r extends e{constructor(){super(...arguments),this[t]=0}setReaderStateManager(o){this.clearStateManager(),this.stateManager=o,this.addStore(o.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var o;return(o=this.stateManager)===null||o===void 0?void 0:o.service}connectedCallback(){super.connectedCallback(),this[ot]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[ot]):this.dispatchEvent(new it)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=ot,xn([(0,tr.state)()],r.prototype,"stateManager",void 0),r}var Re=class extends wn(er.FtLitElementRedux){};var rr=function(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},ut=class extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},at=Symbol("registerInterval");function Sn(e){var t;class r extends e{constructor(){super(...arguments),this.disableContextInteractions=!1,this[t]=0}connectedCallback(){super.connectedCallback(),this[at]=window.setInterval(()=>this.tryToRegisterToTopicContext(),50)}tryToRegisterToTopicContext(){this.tocNode!=null?window.clearInterval(this[at]):this.dispatchEvent(new ut)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return t=at,rr([(0,st.state)()],r.prototype,"tocNode",void 0),rr([(0,st.state)()],r.prototype,"disableContextInteractions",void 0),r}var Me=class extends Sn(Re){};var dn=y(ct()),re=y(C()),ne=y(R());var ur=y(C());var Se=y(U()),oe=y(R()),ar=y(C()),sr=y(ct());var De;(function(e){e.ADD_TO_PBK="&#xe800;",e.ALERT="&#xe801;",e.ADD_ALERT="&#xe802;",e.BACK_TO_SEARCH="&#xe803;",e.ADD_BOOKMARK="&#xe804;",e.BOOKMARK="&#xe805;",e.BOOKS="&#xe806;",e.MENU="&#xe807;",e.DOWNLOAD="&#xe808;",e.EDIT="&#xe809;",e.FEEDBACK="&#xe80a;",e.HOME="&#xe80b;",e.MODIFY_PBK="&#xe80c;",e.SCHEDULED="&#xe80d;",e.SEARCH="&#xe80e;",e.EXPORT="&#xe80f;",e.TOC="&#xe810;",e.WRITE_UGC="&#xe811;",e.TRASH="&#xe812;",e.USER="&#xe813;",e.EXTLINK="&#xe814;",e.CALENDAR="&#xe815;",e.OFFLINE="&#xe816;",e.BOOK="&#xe817;",e.DOWNLOAD_PLAIN="&#xe818;",e.CHECK="&#xe819;",e.STAR_PLAIN="&#xe900;",e.TOPICS="&#xe901;",e.DISC="&#xe902;",e.CIRCLE="&#xe903;",e.SHARED="&#xe904;",e.SORT_UNSORTED="&#xe905;",e.SORT_UP="&#xe906;",e.SORT_DOWN="&#xe907;",e.WORKING="&#xe908;",e.CLOSE="&#xe909;",e.ZOOM_OUT="&#xe90a;",e.ZOOM_IN="&#xe90b;",e.ZOOM_REALSIZE="&#xe90c;",e.ZOOM_FULLSCREEN="&#xe90d;",e.ADMIN_RESTRICTED="&#xe90e;",e.ADMIN="&#xe90f;",e.ADMIN_KHUB="&#xe910;",e.ADMIN_THEME="&#xe911;",e.ADMIN_USERS="&#xe912;",e.WARNING="&#xe913;",e.CONTEXT="&#xe914;",e.SEARCH_HOME="&#xe915;",e.STEPS="&#xe916;",e.ICON_EXPAND="&#xe917;",e.ICON_COLLAPSE="&#xe918;",e.INFO="&#xe919;",e.MINUS_PLAIN="&#xe91a;",e.PLUS_PLAIN="&#xe91b;",e.FACET_HAS_DESCENDANT="&#xe91c;",e.TRIANGLE_BOTTOM="&#xe91d;",e.TRIANGLE_LEFT="&#xe91e;",e.TRIANGLE_RIGHT="&#xe91f;",e.TRIANGLE_TOP="&#xe920;",e.THIN_ARROW="&#xe921;",e.SIGN_IN="&#xe922;",e.LOGOUT="&#xe923;",e.TRANSLATE="&#xe924;",e.CLOSE_PLAIN="&#xe925;",e.CHECK_PLAIN="&#xe926;",e.ARTICLE="&#xe927;",e.COLUMNS="&#xe928;",e.ANALYTICS="&#xe929;",e.COLLECTIONS="&#xe92a;",e.ARROW_DOWN="&#xe92b;",e.ARROW_LEFT="&#xe92c;",e.ARROW_RIGHT="&#xe92d;",e.ARROW_UP="&#xe92e;",e.SEARCH_IN_PUBLICATION="&#xe92f;",e.COPY_TO_CLIPBOARD="&#xe930;",e.SHARED_PBK="&#xe931;",e.ATTACHMENTS="&#xe932;",e.STRIPE_ARROW_LEFT="&#xe933;",e.STRIPE_ARROW_RIGHT="&#xe934;",e.FILTERS="&#xe935;",e.DOT="&#xe936;",e.MINUS="&#xe937;",e.PLUS="&#xe938;",e.MAILS_AND_NOTIFICATIONS="&#xe939;",e.SAVE="&#xe93a;",e.LOCKER="&#xe93b;",e.ADMIN_INTEGRATION="&#xe93c;",e.SYNC="&#xe93d;",e.TAG="&#xe93e;",e.BOOK_PLAIN="&#xe93f;",e.UPLOAD="&#xe940;",e.ONLINE="&#xe941;",e.TAG_PLAIN="&#xe942;",e.ACCOUNT_SETTINGS="&#xe943;",e.PRINT="&#xe944;",e.DEFAULT_ROLES="&#xe945;",e.SHORTCUT_MENU="&#xe946;",e.RELATIVES_PLAIN="&#xe947;",e.RELATIVES="&#xe948;",e.PAUSE="&#xe949;",e.PLAY="&#xe94a;",e.ADMIN_PORTAL="&#xe94b;",e.STAR="&#xe94c;",e.THUMBS_DOWN="&#xe94d;",e.THUMBS_DOWN_PLAIN="&#xe94e;",e.THUMBS_UP="&#xe94f;",e.THUMBS_UP_PLAIN="&#xe950;",e.FEEDBACK_PLAIN="&#xe951;",e.RATE_PLAIN="&#xe952;",e.RATE="&#xe953;",e.OFFLINE_SETTINGS="&#xe954;",e.MY_COLLECTIONS="&#xe955;",e.THIN_ARROW_LEFT="&#xe956;",e.THIN_ARROW_RIGHT="&#xe957;",e.RESET="&#xe958;",e.MY_LIBRARY="&#xe959;",e.UNSTRUCTURED_DOC="&#xe95a;",e.CONTEXTUAL="&#xe95b;",e.THIN_ARROW_UP="&#xe95c;",e.ARROW_RIGHT_TO_LINE="&#xe95d;",e.DESKTOP="&#xe95e;",e.TABLET_LANDSCAPE="&#xe95f;",e.TABLET_PORTRAIT="&#xe960;",e.MOBILE_LANDSCAPE="&#xe961;",e.MOBILE_PORTRAIT="&#xe962;",e.DIAGRAM_SUNBURST="&#xe963;",e.DIAGRAM_SANKEY="&#xe964;",e.COMMENT_QUESTION="&#xe965;",e.COMMENT_QUESTION_PLAIN="&#xe966;",e.MESSAGE_BOT="&#xe967;",e.CHART_SIMPLE="&#xe968;",e.BARS_PROGRESS="&#xe969;",e.BOOK_OPEN_GEAR="&#xe96a;",e.BOOK_OPEN_GEAR_SLASH="&#xe96b;",e.LINE_CHART="&#xe96c;",e.STACKED_CHART="&#xe96d;",e.CHART_BAR_STACKED="&#xe96e;",e.CHART_BAR_GROUPED="&#xe96f;",e.EYE_SLASH="&#xe970;",e.X_MARK="&#xe971;",e.EXPAND_WIDE="&#xe972;",e.PIP="&#xe973;",e.PIP_WIDE="&#xe974;",e.LIFE_RING="&#xe975;",e.GLOBE="&#xe976;",e.PIGGY_BANK="&#xe977;",e.EXTLINK_LIGHT="&#xe978;",e.CLONE="&#xe979;",e.CLONE_LINK_SIMPLE="&#xe97a;",e.CHART_BAR_NORMALIZED="&#xe97b;",e.CONSUMER="&#xe97c;",e.OCTAGON_XMARK="&#xe97d;",e.HOURGLASS_HALF="&#xe97e;",e.CLOCK="&#xe97f;",e.CLOCK_THREE="&#xe97f;",e.CALENDAR_DAY="&#xe980;",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",e.WAND_MAGIC_SPARKLES="&#xe982;",e.PAPER_PLANE="&#xe983;",e.CIRCLE_STOP="&#xe984;",e.ARROW_ROTATE_RIGHT="&#xe985;",e.ARROWS_ROTATE="&#xe986;",e.ALIGN_RIGHT="&#xe987;",e.FORMAT_CLEAR="&#xe988;",e.ALIGN_CENTER="&#xe989;",e.ALIGN_LEFT="&#xe98a;",e.PALETTE="&#xe98b;",e.BOLD="&#xe98c;",e.ITALIC="&#xe98d;",e.UNDERLINE="&#xe98e;",e.STRIKETHROUGH="&#xe98f;",e.LINK_SIMPLE_SLASH="&#xe990;",e.LINK_SIMPLE="&#xe991;",e.EYE="&#xf06e;",e.SHARE="&#xe80f1;"})(De||(De={}));var d;(function(e){e.UNKNOWN="&#xe90a;",e.ABW="&#xe900;",e.AUDIO="&#xe901;",e.AVI="&#xe902;",e.CHM="&#xe904;",e.CODE="&#xe905;",e.CSV="&#xe903;",e.DITA="&#xe906;",e.EPUB="&#xe907;",e.EXCEL="&#xe908;",e.FLAC="&#xe909;",e.GIF="&#xe90b;",e.GZIP="&#xe90c;",e.HTML="&#xe90d;",e.IMAGE="&#xe90e;",e.JPEG="&#xe90f;",e.JSON="&#xe910;",e.M4A="&#xe911;",e.MOV="&#xe912;",e.MP3="&#xe913;",e.MP4="&#xe914;",e.OGG="&#xe915;",e.PDF="&#xe916;",e.PNG="&#xe917;",e.POWERPOINT="&#xe918;",e.RAR="&#xe91a;",e.STP="&#xe91b;",e.TEXT="&#xe91c;",e.VIDEO="&#xe91e;",e.WAV="&#xe91f;",e.WMA="&#xe920;",e.WORD="&#xe921;",e.XML="&#xe922;",e.YAML="&#xe919;",e.ZIP="&#xe923;"})(d||(d={}));var Co=new Map([...["abw"].map(e=>[e,d.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(e=>[e,d.AUDIO]),...["avi"].map(e=>[e,d.AVI]),...["chm","xhs"].map(e=>[e,d.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(e=>[e,d.CODE]),...["csv"].map(e=>[e,d.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,d.DITA]),...["epub"].map(e=>[e,d.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,d.EXCEL]),...["flac"].map(e=>[e,d.FLAC]),...["gif"].map(e=>[e,d.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,d.GZIP]),...["html","htm","xhtml"].map(e=>[e,d.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(e=>[e,d.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,d.JPEG]),...["json"].map(e=>[e,d.JSON]),...["m4a","m4p"].map(e=>[e,d.M4A]),...["mov","qt"].map(e=>[e,d.MOV]),...["mp3"].map(e=>[e,d.MP3]),...["mp4","m4v"].map(e=>[e,d.MP4]),...["ogg","oga"].map(e=>[e,d.OGG]),...["pdf","ps"].map(e=>[e,d.PDF]),...["png"].map(e=>[e,d.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,d.POWERPOINT]),...["rar"].map(e=>[e,d.RAR]),...["stp"].map(e=>[e,d.STP]),...["txt","rtf","md","mdown"].map(e=>[e,d.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(e=>[e,d.VIDEO]),...["wav"].map(e=>[e,d.WAV]),...["wma"].map(e=>[e,d.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,d.WORD]),...["xml","xsl","rdf"].map(e=>[e,d.XML]),...["yaml","yml","x-yaml"].map(e=>[e,d.YAML]),...["zip"].map(e=>[e,d.ZIP])]);var _o={[d.ABW]:"#91ABC6",[d.AUDIO]:"#1795E3",[d.AVI]:"#E63324",[d.CHM]:"#71C3EB",[d.CODE]:"#71C3EB",[d.CSV]:"#1F7345",[d.DITA]:"#71C3EB",[d.EPUB]:"#85B926",[d.EXCEL]:"#1F7345",[d.FLAC]:"#1795E3",[d.GIF]:"#59B031",[d.GZIP]:"#F8AB36",[d.HTML]:"#71C3EB",[d.IMAGE]:"#59B031",[d.JPEG]:"#59B031",[d.JSON]:"#71C3EB",[d.M4A]:"#1795E3",[d.MOV]:"#E63324",[d.MP3]:"#1795E3",[d.MP4]:"#E63324",[d.OGG]:"#1795E3",[d.PDF]:"#E44948",[d.PNG]:"#59B031",[d.POWERPOINT]:"#B54A2B",[d.RAR]:"#F8AB36",[d.STP]:"#3764B1",[d.TEXT]:"#3162AB",[d.UNKNOWN]:"#999999",[d.VIDEO]:"#E63324",[d.WAV]:"#1795E3",[d.WMA]:"#1795E3",[d.WORD]:"#3162AB",[d.XML]:"#71C3EB",[d.YAML]:"#71C3EB",[d.ZIP]:"#F8AB36"};var or=y(U()),K=y(C()),G={size:K.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:K.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",K.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:K.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",K.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:K.FtCssVariableFactory.extend("--ft-icon-material-font-family","",K.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:K.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},ir=or.css`
24
+ `;var lt=y(R());var nr=y(C()),or=y(R());var rr;(function(e){e.FEEDBACK="FEEDBACK",e.RATING="RATING",e.PRINT="PRINT",e.BOOKMARK="BOOKMARK",e.COLLECTIONS="COLLECTIONS",e.PERSONAL_BOOKS="PERSONAL_BOOKS"})(rr||(rr={}));var wn=function(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},ut=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},st=Symbol("registerInterval");function En(e){var t;class r extends e{constructor(){super(...arguments),this[t]=0}setReaderStateManager(o){this.clearStateManager(),this.stateManager=o,this.addStore(o.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var o;return(o=this.stateManager)===null||o===void 0?void 0:o.service}connectedCallback(){super.connectedCallback(),this[st]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[st]):this.dispatchEvent(new ut)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=st,wn([(0,or.state)()],r.prototype,"stateManager",void 0),r}var Re=class extends En(nr.FtLitElementRedux){};var ir=function(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},ft=class extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},ct=Symbol("registerInterval");function On(e){var t;class r extends e{constructor(){super(...arguments),this.disableContextInteractions=!1,this[t]=0}connectedCallback(){super.connectedCallback(),this[ct]=window.setInterval(()=>this.tryToRegisterToTopicContext(),50)}tryToRegisterToTopicContext(){this.tocNode!=null?window.clearInterval(this[ct]):this.dispatchEvent(new ft)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return t=ct,ir([(0,lt.state)()],r.prototype,"tocNode",void 0),ir([(0,lt.state)()],r.prototype,"disableContextInteractions",void 0),r}var Me=class extends On(Re){};var hn=y(dt()),ne=y(C()),oe=y(R());var fr=y(C());var Se=y(U()),ie=y(R()),cr=y(C()),lr=y(dt());var De;(function(e){e.ADD_TO_PBK="&#xe800;",e.ALERT="&#xe801;",e.ADD_ALERT="&#xe802;",e.BACK_TO_SEARCH="&#xe803;",e.ADD_BOOKMARK="&#xe804;",e.BOOKMARK="&#xe805;",e.BOOKS="&#xe806;",e.MENU="&#xe807;",e.DOWNLOAD="&#xe808;",e.EDIT="&#xe809;",e.FEEDBACK="&#xe80a;",e.HOME="&#xe80b;",e.MODIFY_PBK="&#xe80c;",e.SCHEDULED="&#xe80d;",e.SEARCH="&#xe80e;",e.EXPORT="&#xe80f;",e.TOC="&#xe810;",e.WRITE_UGC="&#xe811;",e.TRASH="&#xe812;",e.USER="&#xe813;",e.EXTLINK="&#xe814;",e.CALENDAR="&#xe815;",e.OFFLINE="&#xe816;",e.BOOK="&#xe817;",e.DOWNLOAD_PLAIN="&#xe818;",e.CHECK="&#xe819;",e.STAR_PLAIN="&#xe900;",e.TOPICS="&#xe901;",e.DISC="&#xe902;",e.CIRCLE="&#xe903;",e.SHARED="&#xe904;",e.SORT_UNSORTED="&#xe905;",e.SORT_UP="&#xe906;",e.SORT_DOWN="&#xe907;",e.WORKING="&#xe908;",e.CLOSE="&#xe909;",e.ZOOM_OUT="&#xe90a;",e.ZOOM_IN="&#xe90b;",e.ZOOM_REALSIZE="&#xe90c;",e.ZOOM_FULLSCREEN="&#xe90d;",e.ADMIN_RESTRICTED="&#xe90e;",e.ADMIN="&#xe90f;",e.ADMIN_KHUB="&#xe910;",e.ADMIN_THEME="&#xe911;",e.ADMIN_USERS="&#xe912;",e.WARNING="&#xe913;",e.CONTEXT="&#xe914;",e.SEARCH_HOME="&#xe915;",e.STEPS="&#xe916;",e.ICON_EXPAND="&#xe917;",e.ICON_COLLAPSE="&#xe918;",e.INFO="&#xe919;",e.MINUS_PLAIN="&#xe91a;",e.PLUS_PLAIN="&#xe91b;",e.FACET_HAS_DESCENDANT="&#xe91c;",e.TRIANGLE_BOTTOM="&#xe91d;",e.TRIANGLE_LEFT="&#xe91e;",e.TRIANGLE_RIGHT="&#xe91f;",e.TRIANGLE_TOP="&#xe920;",e.THIN_ARROW="&#xe921;",e.SIGN_IN="&#xe922;",e.LOGOUT="&#xe923;",e.TRANSLATE="&#xe924;",e.CLOSE_PLAIN="&#xe925;",e.CHECK_PLAIN="&#xe926;",e.ARTICLE="&#xe927;",e.COLUMNS="&#xe928;",e.ANALYTICS="&#xe929;",e.COLLECTIONS="&#xe92a;",e.ARROW_DOWN="&#xe92b;",e.ARROW_LEFT="&#xe92c;",e.ARROW_RIGHT="&#xe92d;",e.ARROW_UP="&#xe92e;",e.SEARCH_IN_PUBLICATION="&#xe92f;",e.COPY_TO_CLIPBOARD="&#xe930;",e.SHARED_PBK="&#xe931;",e.ATTACHMENTS="&#xe932;",e.STRIPE_ARROW_LEFT="&#xe933;",e.STRIPE_ARROW_RIGHT="&#xe934;",e.FILTERS="&#xe935;",e.DOT="&#xe936;",e.MINUS="&#xe937;",e.PLUS="&#xe938;",e.MAILS_AND_NOTIFICATIONS="&#xe939;",e.SAVE="&#xe93a;",e.LOCKER="&#xe93b;",e.ADMIN_INTEGRATION="&#xe93c;",e.SYNC="&#xe93d;",e.TAG="&#xe93e;",e.BOOK_PLAIN="&#xe93f;",e.UPLOAD="&#xe940;",e.ONLINE="&#xe941;",e.TAG_PLAIN="&#xe942;",e.ACCOUNT_SETTINGS="&#xe943;",e.PRINT="&#xe944;",e.DEFAULT_ROLES="&#xe945;",e.SHORTCUT_MENU="&#xe946;",e.RELATIVES_PLAIN="&#xe947;",e.RELATIVES="&#xe948;",e.PAUSE="&#xe949;",e.PLAY="&#xe94a;",e.ADMIN_PORTAL="&#xe94b;",e.STAR="&#xe94c;",e.THUMBS_DOWN="&#xe94d;",e.THUMBS_DOWN_PLAIN="&#xe94e;",e.THUMBS_UP="&#xe94f;",e.THUMBS_UP_PLAIN="&#xe950;",e.FEEDBACK_PLAIN="&#xe951;",e.RATE_PLAIN="&#xe952;",e.RATE="&#xe953;",e.OFFLINE_SETTINGS="&#xe954;",e.MY_COLLECTIONS="&#xe955;",e.THIN_ARROW_LEFT="&#xe956;",e.THIN_ARROW_RIGHT="&#xe957;",e.RESET="&#xe958;",e.MY_LIBRARY="&#xe959;",e.UNSTRUCTURED_DOC="&#xe95a;",e.CONTEXTUAL="&#xe95b;",e.THIN_ARROW_UP="&#xe95c;",e.ARROW_RIGHT_TO_LINE="&#xe95d;",e.DESKTOP="&#xe95e;",e.TABLET_LANDSCAPE="&#xe95f;",e.TABLET_PORTRAIT="&#xe960;",e.MOBILE_LANDSCAPE="&#xe961;",e.MOBILE_PORTRAIT="&#xe962;",e.DIAGRAM_SUNBURST="&#xe963;",e.DIAGRAM_SANKEY="&#xe964;",e.COMMENT_QUESTION="&#xe965;",e.COMMENT_QUESTION_PLAIN="&#xe966;",e.MESSAGE_BOT="&#xe967;",e.CHART_SIMPLE="&#xe968;",e.BARS_PROGRESS="&#xe969;",e.BOOK_OPEN_GEAR="&#xe96a;",e.BOOK_OPEN_GEAR_SLASH="&#xe96b;",e.LINE_CHART="&#xe96c;",e.STACKED_CHART="&#xe96d;",e.CHART_BAR_STACKED="&#xe96e;",e.CHART_BAR_GROUPED="&#xe96f;",e.EYE_SLASH="&#xe970;",e.X_MARK="&#xe971;",e.EXPAND_WIDE="&#xe972;",e.PIP="&#xe973;",e.PIP_WIDE="&#xe974;",e.LIFE_RING="&#xe975;",e.GLOBE="&#xe976;",e.PIGGY_BANK="&#xe977;",e.EXTLINK_LIGHT="&#xe978;",e.CLONE="&#xe979;",e.CLONE_LINK_SIMPLE="&#xe97a;",e.CHART_BAR_NORMALIZED="&#xe97b;",e.CONSUMER="&#xe97c;",e.OCTAGON_XMARK="&#xe97d;",e.HOURGLASS_HALF="&#xe97e;",e.CLOCK="&#xe97f;",e.CLOCK_THREE="&#xe97f;",e.CALENDAR_DAY="&#xe980;",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",e.WAND_MAGIC_SPARKLES="&#xe982;",e.PAPER_PLANE="&#xe983;",e.CIRCLE_STOP="&#xe984;",e.ARROW_ROTATE_RIGHT="&#xe985;",e.ARROWS_ROTATE="&#xe986;",e.ALIGN_RIGHT="&#xe987;",e.FORMAT_CLEAR="&#xe988;",e.ALIGN_CENTER="&#xe989;",e.ALIGN_LEFT="&#xe98a;",e.PALETTE="&#xe98b;",e.BOLD="&#xe98c;",e.ITALIC="&#xe98d;",e.UNDERLINE="&#xe98e;",e.STRIKETHROUGH="&#xe98f;",e.LINK_SIMPLE_SLASH="&#xe990;",e.LINK_SIMPLE="&#xe991;",e.EYE="&#xf06e;",e.SHARE="&#xe80f1;"})(De||(De={}));var d;(function(e){e.UNKNOWN="&#xe90a;",e.ABW="&#xe900;",e.AUDIO="&#xe901;",e.AVI="&#xe902;",e.CHM="&#xe904;",e.CODE="&#xe905;",e.CSV="&#xe903;",e.DITA="&#xe906;",e.EPUB="&#xe907;",e.EXCEL="&#xe908;",e.FLAC="&#xe909;",e.GIF="&#xe90b;",e.GZIP="&#xe90c;",e.HTML="&#xe90d;",e.IMAGE="&#xe90e;",e.JPEG="&#xe90f;",e.JSON="&#xe910;",e.M4A="&#xe911;",e.MOV="&#xe912;",e.MP3="&#xe913;",e.MP4="&#xe914;",e.OGG="&#xe915;",e.PDF="&#xe916;",e.PNG="&#xe917;",e.POWERPOINT="&#xe918;",e.RAR="&#xe91a;",e.STP="&#xe91b;",e.TEXT="&#xe91c;",e.VIDEO="&#xe91e;",e.WAV="&#xe91f;",e.WMA="&#xe920;",e.WORD="&#xe921;",e.XML="&#xe922;",e.YAML="&#xe919;",e.ZIP="&#xe923;"})(d||(d={}));var Po=new Map([...["abw"].map(e=>[e,d.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(e=>[e,d.AUDIO]),...["avi"].map(e=>[e,d.AVI]),...["chm","xhs"].map(e=>[e,d.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(e=>[e,d.CODE]),...["csv"].map(e=>[e,d.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,d.DITA]),...["epub"].map(e=>[e,d.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,d.EXCEL]),...["flac"].map(e=>[e,d.FLAC]),...["gif"].map(e=>[e,d.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,d.GZIP]),...["html","htm","xhtml"].map(e=>[e,d.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(e=>[e,d.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,d.JPEG]),...["json"].map(e=>[e,d.JSON]),...["m4a","m4p"].map(e=>[e,d.M4A]),...["mov","qt"].map(e=>[e,d.MOV]),...["mp3"].map(e=>[e,d.MP3]),...["mp4","m4v"].map(e=>[e,d.MP4]),...["ogg","oga"].map(e=>[e,d.OGG]),...["pdf","ps"].map(e=>[e,d.PDF]),...["png"].map(e=>[e,d.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,d.POWERPOINT]),...["rar"].map(e=>[e,d.RAR]),...["stp"].map(e=>[e,d.STP]),...["txt","rtf","md","mdown"].map(e=>[e,d.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(e=>[e,d.VIDEO]),...["wav"].map(e=>[e,d.WAV]),...["wma"].map(e=>[e,d.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,d.WORD]),...["xml","xsl","rdf"].map(e=>[e,d.XML]),...["yaml","yml","x-yaml"].map(e=>[e,d.YAML]),...["zip"].map(e=>[e,d.ZIP])]);var To={[d.ABW]:"#91ABC6",[d.AUDIO]:"#1795E3",[d.AVI]:"#E63324",[d.CHM]:"#71C3EB",[d.CODE]:"#71C3EB",[d.CSV]:"#1F7345",[d.DITA]:"#71C3EB",[d.EPUB]:"#85B926",[d.EXCEL]:"#1F7345",[d.FLAC]:"#1795E3",[d.GIF]:"#59B031",[d.GZIP]:"#F8AB36",[d.HTML]:"#71C3EB",[d.IMAGE]:"#59B031",[d.JPEG]:"#59B031",[d.JSON]:"#71C3EB",[d.M4A]:"#1795E3",[d.MOV]:"#E63324",[d.MP3]:"#1795E3",[d.MP4]:"#E63324",[d.OGG]:"#1795E3",[d.PDF]:"#E44948",[d.PNG]:"#59B031",[d.POWERPOINT]:"#B54A2B",[d.RAR]:"#F8AB36",[d.STP]:"#3764B1",[d.TEXT]:"#3162AB",[d.UNKNOWN]:"#999999",[d.VIDEO]:"#E63324",[d.WAV]:"#1795E3",[d.WMA]:"#1795E3",[d.WORD]:"#3162AB",[d.XML]:"#71C3EB",[d.YAML]:"#71C3EB",[d.ZIP]:"#F8AB36"};var sr=y(U()),K=y(C()),G={size:K.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:K.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",K.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:K.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",K.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:K.FtCssVariableFactory.extend("--ft-icon-material-font-family","",K.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:K.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},ur=sr.css`
25
25
  :host, i.ft-icon {
26
26
  display: inline-flex;
27
27
  align-items: center;
@@ -69,20 +69,20 @@
69
69
  .ft-icon--material {
70
70
  font-family: ${G.materialFontFamily}, "Material Icons", sans-serif;
71
71
  }
72
- `;var q;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(q||(q={}));var Le=function(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},B=class extends ar.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=Se.nothing}render(){let t=this.variant&&Object.values(q).includes(this.variant)?this.variant:q.fluid_topics,r=t!==q.material||!!this.value;return Se.html`
72
+ `;var q;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(q||(q={}));var Le=function(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},B=class extends cr.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=Se.nothing}render(){let t=this.variant&&Object.values(q).includes(this.variant)?this.variant:q.fluid_topics,r=t!==q.material||!!this.value;return Se.html`
73
73
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
74
- ${(0,sr.unsafeHTML)(this.resolvedIcon)}
74
+ ${(0,lr.unsafeHTML)(this.resolvedIcon)}
75
75
  <slot ?hidden=${r}></slot>
76
76
  </i>
77
- `}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 q.file_format:this.resolvedIcon=(t=d[n.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:n;break;case q.material:this.resolvedIcon=this.value||Se.nothing;break;default:this.resolvedIcon=(r=De[n.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:n;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};B.elementDefinitions={};B.styles=ir;Le([(0,oe.property)()],B.prototype,"variant",void 0);Le([(0,oe.property)()],B.prototype,"value",void 0);Le([(0,oe.state)()],B.prototype,"resolvedIcon",void 0);Le([(0,oe.query)("slot")],B.prototype,"slottedContent",void 0);(0,ur.customElement)("ft-icon")(B);var fn=y(C());var et=y(U()),tt=y(R()),rt=y(C());var cr=y(U());var lr=cr.css`
78
- `;var Fe=y(C());var sn=y(C());var mr=y(U()),M=y(R()),j=y(C());var fr=y(U());var dr=fr.css`
79
- `;var pr=y(C()),En="ft-app-info",On={},b=pr.FtReduxStore.get({name:En,reducers:On,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var X=y(C());var lt=y(C());var ie=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:n}=b.getState(),o=t??n;if(r&&o&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,o,!0)}static await(t){return new Promise(r=>{let n=e.get(t);if(n)r(n);else{let o=b.subscribe(()=>{n=e.get(t),n&&(o(),r(n))})}})}};var $=class{constructor(t=!0,r){var n;this.overrideApi=r;let o=this.constructor;o.commonCache=(n=o.commonCache)!==null&&n!==void 0?n:new lt.CacheRegistry,this.cache=t?o.commonCache:new lt.CacheRegistry}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:ie.get()}get awaitApi(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:ie.await()}clearCache(){this.cache.clearAll()}};var hr,An=Symbol("clearAfterUnitTest"),je=class extends ${constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[hr]=()=>{this.defaultMessages={},this.cache=new X.CacheRegistry,this.listeners={}},this.currentUiLocale=b.getState().uiLocale,b.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=b.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 o={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...r};(0,X.deepEqual)(this.defaultMessages[t],o)||(this.defaultMessages[t]=o,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,r,...n){var o,i,a;t=t.toLowerCase(),this.fetchContext(t);let s=(i=(o=this.cache.getNow(t))===null||o===void 0?void 0:o.messages)!==null&&i!==void 0?i:{};return new X.ParametrizedLabelResolver((a=this.defaultMessages[t])!==null&&a!==void 0?a:{},s).resolve(r,...n)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),await this.notify(t)}catch(r){console.error(r)}}subscribe(t,r){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(r),()=>{var o;return(o=this.listeners[t])===null||o===void 0?void 0:o.delete(r)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(t=>this.notify(t)))}async notify(t){this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(r=>(0,X.delay)(0).then(()=>r()).catch(()=>null)))}};hr=An;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends je{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends je{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var de=window.FluidTopicsI18nService,vr=window.FluidTopicsCustomI18nService;var P=function(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},A=class extends j.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=()=>ie.get(),this.messageContexts=[],this.cache=new j.CacheRegistry,this.cleanSessionDebouncer=new j.Debouncer}render(){return mr.html`
77
+ `}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 q.file_format:this.resolvedIcon=(t=d[n.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:n;break;case q.material:this.resolvedIcon=this.value||Se.nothing;break;default:this.resolvedIcon=(r=De[n.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:n;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};B.elementDefinitions={};B.styles=ur;Le([(0,ie.property)()],B.prototype,"variant",void 0);Le([(0,ie.property)()],B.prototype,"value",void 0);Le([(0,ie.state)()],B.prototype,"resolvedIcon",void 0);Le([(0,ie.query)("slot")],B.prototype,"slottedContent",void 0);(0,fr.customElement)("ft-icon")(B);var pn=y(C());var nt=y(U()),ot=y(R()),it=y(C());var dr=y(U());var pr=dr.css`
78
+ `;var rt=y(C());var cn=y(C());var br=y(U()),M=y(R()),j=y(C());var hr=y(U());var vr=hr.css`
79
+ `;var je=y(C()),An="ft-app-info",pt=class extends CustomEvent{constructor(t){super("authentication-change",{detail:t})}},Cn={session:(e,t)=>{(0,je.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>b.eventBus.dispatchEvent(new pt(t.payload)),0))}},b=je.FtReduxStore.get({name:An,reducers:Cn,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var X=y(C());var ht=y(C());var ae=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:n}=b.getState(),o=t??n;if(r&&o&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,o,!0)}static await(t){return new Promise(r=>{let n=e.get(t);if(n)r(n);else{let o=b.subscribe(()=>{n=e.get(t),n&&(o(),r(n))})}})}};var $=class{constructor(t=!0,r){var n;this.overrideApi=r;let o=this.constructor;o.commonCache=(n=o.commonCache)!==null&&n!==void 0?n:new ht.CacheRegistry,this.cache=t?o.commonCache:new ht.CacheRegistry}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()}clearCache(){this.cache.clearAll()}};var mr,_n=Symbol("clearAfterUnitTest"),ke=class extends ${constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[mr]=()=>{this.defaultMessages={},this.cache=new X.CacheRegistry,this.listeners={}},this.currentUiLocale=b.getState().uiLocale,b.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=b.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 o={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...r};(0,X.deepEqual)(this.defaultMessages[t],o)||(this.defaultMessages[t]=o,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,r,...n){var o,i,a;t=t.toLowerCase(),this.fetchContext(t);let s=(i=(o=this.cache.getNow(t))===null||o===void 0?void 0:o.messages)!==null&&i!==void 0?i:{};return new X.ParametrizedLabelResolver((a=this.defaultMessages[t])!==null&&a!==void 0?a:{},s).resolve(r,...n)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),await this.notify(t)}catch(r){console.error(r)}}subscribe(t,r){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(r),()=>{var o;return(o=this.listeners[t])===null||o===void 0?void 0:o.delete(r)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(t=>this.notify(t)))}async notify(t){this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(r=>(0,X.delay)(0).then(()=>r()).catch(()=>null)))}};mr=_n;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends ke{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends ke{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var de=window.FluidTopicsI18nService,yr=window.FluidTopicsCustomI18nService;var P=function(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},A=class extends j.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 j.CacheRegistry,this.cleanSessionDebouncer=new j.Debouncer}render(){return br.html`
80
80
  <slot></slot>
81
- `}update(t){super.update(t),t.has("baseUrl")&&(b.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&b.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&b.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&b.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&b.actions.noCustom(this.noCustom),t.has("editorMode")&&b.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&b.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&b.actions.session(this.session),t.has("availableUiLocales")&&b.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(r=>de.addContext(r)),t.has("openExternalDocumentInNewTab")&&b.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&b.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&b.actions.forcedOffline(this.forcedOffline),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(this.session==null&&this.updateSession(),this.availableUiLocales==null&&this.updateUiLocales(),this.metadataConfiguration==null&&this.updateMetadataConfiguration())}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 updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",()=>this.apiProvider().getAvailableUiLocales())}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}};A.elementDefinitions={};A.styles=dr;P([(0,M.property)()],A.prototype,"baseUrl",void 0);P([(0,M.property)()],A.prototype,"apiIntegrationIdentifier",void 0);P([(0,M.property)()],A.prototype,"uiLocale",void 0);P([(0,j.jsonProperty)(null)],A.prototype,"availableUiLocales",void 0);P([(0,j.jsonProperty)(null)],A.prototype,"metadataConfiguration",void 0);P([(0,M.property)({type:Boolean})],A.prototype,"editorMode",void 0);P([(0,M.property)({type:Boolean})],A.prototype,"noCustom",void 0);P([(0,M.property)({type:Boolean})],A.prototype,"openExternalDocumentInNewTab",void 0);P([(0,M.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],A.prototype,"noCustomComponent",void 0);P([(0,M.property)({type:Boolean})],A.prototype,"withManualResources",void 0);P([(0,M.property)({type:Boolean})],A.prototype,"navigatorOnline",void 0);P([(0,M.property)({type:Boolean})],A.prototype,"forcedOffline",void 0);P([(0,M.property)({type:Object})],A.prototype,"apiProvider",void 0);P([(0,j.jsonProperty)([])],A.prototype,"messageContexts",void 0);P([(0,j.jsonProperty)(void 0)],A.prototype,"session",void 0);var fo=y(R());function Cn(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,o;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!pe(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(!pe(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();if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){var i=o[n];if(!pe(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function pe(e,t){try{return Cn(e,t)}catch{return!1}}var _n=y(R(),1);var ke=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 dt=y(R(),1);var yr=y(R(),1);function br(e,t){let r=()=>JSON.parse(JSON.stringify(e));return(0,yr.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:(n,o)=>!pe(n,o),...t??{}})}var Ie=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,r){return this.callbacks=[t],this.debounce(r)}queue(t,r){return this.callbacks.push(t),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let n=[...this.callbacks];this.callbacks=[];let o=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,i=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let a of n)try{await a()}catch(s){o(s);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var xr=y(U(),1);var Ue=window,Pn=Ue.ShadowRoot&&(Ue.ShadyCSS===void 0||Ue.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,fi=Symbol();var gr=(e,t)=>{Pn?e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):t.forEach(r=>{let n=document.createElement("style"),o=Ue.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=r.cssText,e.appendChild(n)})};var Be=class extends xr.LitElement{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([o,i])=>t.registry.define(o,i)));let r={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return gr(n,t.elementStyles),n}};var ft=function(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},Er,wr=Symbol("constructorPrototype"),Sr=Symbol("constructorName"),Or=Symbol("exportpartsDebouncer"),ae=class extends Be{constructor(){super(),this.adoptedCustomStyleSheet=new CSSStyleSheet,this.useAdoptedStyleSheets=!0,this[Er]=new Ie(5),this[Sr]=this.constructor.name,this[wr]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Sr]&&Object.setPrototypeOf(this,this[wr])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet])}catch(t){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",t)}}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate()})}contentAvailableCallback(t){}applyCustomStylesheet(t){var r,n,o;if(this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((r=this.customStylesheet)!==null&&r!==void 0?r:"")}catch(i){console.error(i,this.customStylesheet)}}else if(((o=(n=this.shadowRoot)===null||n===void 0?void 0:n.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&o!==void 0?o:[]).forEach(i=>i.remove()),this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}scheduleExportpartsUpdate(){var t,r,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[Or].run(()=>{var o,i;!((o=this.exportpartsPrefix)===null||o===void 0)&&o.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(t){var r,n,o,i,a,s;let c=f=>f!=null&&f.trim().length>0,u=t.filter(c).map(f=>f.trim());if(u.length===0){this.removeAttribute("exportparts");return}let l=new Set;for(let f of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let m=(i=(o=f.getAttribute("part"))===null||o===void 0?void 0:o.split(" "))!==null&&i!==void 0?i:[],p=(s=(a=f.getAttribute("exportparts"))===null||a===void 0?void 0:a.split(",").map(h=>h.split(":")[1]))!==null&&s!==void 0?s:[];new Array(...m,...p).filter(c).map(h=>h.trim()).forEach(h=>l.add(h))}if(l.size===0){this.removeAttribute("exportparts");return}let v=[...l.values()].flatMap(f=>u.map(m=>`${f}:${m}--${f}`));this.setAttribute("exportparts",[...this.part,...v].join(", "))}};Er=Or;ft([(0,dt.property)()],ae.prototype,"exportpartsPrefix",void 0);ft([br([])],ae.prototype,"exportpartsPrefixes",void 0);ft([(0,dt.property)()],ae.prototype,"customStylesheet",void 0);function Ee(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Ar,Cr,_r,We=Symbol("internalReduxEventsUnsubscribers"),Y=Symbol("internalStoresUnsubscribers"),se=Symbol("internalStores"),Oe=class extends ae{constructor(){super(...arguments),this[Ar]=new Map,this[Cr]=new Map,this[_r]=[]}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??(Ee(t)?t.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(r),this.setupStore(r,t)}removeStore(t){let r=typeof t=="string"?t:t.name;this.unsubscribeFromStore(r),this[se].delete(r)}setupStore(t,r){this[se].set(t,r),this.subscribeToStore(t,r),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[se].forEach((t,r)=>this.subscribeToStore(r,t)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((t,r)=>{let n=this.constructor.getPropertyOptions(r);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:r)){let o=this.getStore(t.store);o&&(t.store?this[Y].has(t.store):this[Y].size>0)&&(this[r]=t.selector(o.getState(),this))}})}subscribeToStore(t,r){var n;this[Y].set(t,r.subscribe(()=>this.updateFromStores())),Ee(r)&&r.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((o,i)=>{if(typeof this[i]=="function"&&(!o.store||r.name===o.store)){let a=s=>this[i](s);r.eventBus.addEventListener(o.eventName,a),this[We].push(()=>r.eventBus.removeEventListener(o.eventName,a))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Y].forEach((t,r)=>this.unsubscribeFromStore(r)),this[We].forEach(t=>t()),this[We]=[]}unsubscribeFromStore(t){this[Y].has(t)&&this[Y].get(t)(),this[Y].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Ar=Y,Cr=se,_r=We;Oe.reduxProperties=new Map;Oe.reduxReactiveProperties=new Set;Oe.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 o,i;throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(a){return"'"+a+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function z(e){return!!e&&!!e[E]}function k(e){var t;return!!e&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var o=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return o===Object||typeof o=="function"&&Function.toString.call(o)===kn}(e)||Array.isArray(e)||!!e[Lr]||!!(!((t=e.constructor)===null||t===void 0)&&t[Lr])||wt(e)||St(e))}function ue(e,t,r){r===void 0&&(r=!1),me(e)===0?(r?Object.keys:ve)(e).forEach(function(n){r&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,o){return t(o,n,e)})}function me(e){var t=e[E];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:wt(e)?2:St(e)?3:0}function he(e,t){return me(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Tn(e,t){return me(e)===2?e.get(t):e[t]}function jr(e,t,r){var n=me(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function kr(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function wt(e){return Ln&&e instanceof Map}function St(e){return jn&&e instanceof Set}function J(e){return e.o||e.t}function Et(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Br(e);delete t[E];for(var r=ve(t),n=0;n<r.length;n++){var o=r[n],i=t[o];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function Ot(e,t){return t===void 0&&(t=!1),At(e)||z(e)||!k(e)||(me(e)>1&&(e.set=e.add=e.clear=e.delete=Nn),Object.freeze(e),t&&ue(e,function(r,n){return Ot(n,!0)},!0)),e}function Nn(){D(2)}function At(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function W(e){var t=xt[e];return t||D(18,e),t}function Rn(e,t){xt[e]||(xt[e]=t)}function yt(){return Ce}function pt(e,t){t&&(W("Patches"),e.u=[],e.s=[],e.v=t)}function Ve(e){bt(e),e.p.forEach(Mn),e.p=null}function bt(e){e===Ce&&(Ce=e.l)}function Pr(e){return Ce={p:[],l:Ce,h:e,m:!0,_:0}}function Mn(e){var t=e[E];t.i===0||t.i===1?t.j():t.g=!0}function ht(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||W("ES5").S(t,e,n),n?(r[E].P&&(Ve(t),D(4)),k(e)&&(e=Ge(t,e),t.l||Ke(t,e)),t.u&&W("Patches").M(r[E].t,e,t.u,t.s)):e=Ge(t,r,[]),Ve(t),t.u&&t.v(t.u,t.s),e!==Ur?e:void 0}function Ge(e,t,r){if(At(t))return t;var n=t[E];if(!n)return ue(t,function(s,c){return Tr(e,n,t,s,c,r)},!0),t;if(n.A!==e)return t;if(!n.P)return Ke(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=n.i===4||n.i===5?n.o=Et(n.k):n.o,i=o,a=!1;n.i===3&&(i=new Set(o),o.clear(),a=!0),ue(i,function(s,c){return Tr(e,n,o,s,c,r,a)}),Ke(e,o,!1),r&&e.u&&W("Patches").N(n,r,e.u,e.s)}return n.o}function Tr(e,t,r,n,o,i,a){if(z(o)){var s=Ge(e,o,i&&t&&t.i!==3&&!he(t.R,n)?i.concat(n):void 0);if(jr(r,n,s),!z(s))return;e.m=!1}else a&&r.add(o);if(k(o)&&!At(o)){if(!e.h.D&&e._<1)return;Ge(e,o),t&&t.A.l||Ke(e,o)}}function Ke(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Ot(t,r)}function vt(e,t){var r=e[E];return(r?J(r):e)[t]}function Nr(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 Z(e){e.P||(e.P=!0,e.l&&Z(e.l))}function mt(e){e.o||(e.o=Et(e.t))}function gt(e,t,r){var n=wt(t)?W("MapSet").F(t,r):St(t)?W("MapSet").T(t,r):e.O?function(o,i){var a=Array.isArray(o),s={i:a?1:0,A:i?i.A:yt(),P:!1,I:!1,R:{},l:i,t:o,k:null,o:null,j:null,C:!1},c=s,u=_e;a&&(c=[s],u=Ae);var l=Proxy.revocable(c,u),v=l.revoke,f=l.proxy;return s.k=f,s.j=v,f}(t,r):W("ES5").J(t,r);return(r?r.A:yt()).p.push(n),n}function Dn(e){return z(e)||D(22,e),function t(r){if(!k(r))return r;var n,o=r[E],i=me(r);if(o){if(!o.P&&(o.i<4||!W("ES5").K(o)))return o.t;o.I=!0,n=Rr(r,i),o.I=!1}else n=Rr(r,i);return ue(n,function(a,s){o&&Tn(o.t,a)===s||jr(n,a,t(s))}),i===3?new Set(n):n}(e)}function Rr(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Et(e)}function Ir(){function e(a,s){var c=i[a];return c?c.enumerable=s:i[a]=c={configurable:!0,enumerable:s,get:function(){var u=this[E];return _e.get(u,a)},set:function(u){var l=this[E];_e.set(l,a,u)}},c}function t(a){for(var s=a.length-1;s>=0;s--){var c=a[s][E];if(!c.P)switch(c.i){case 5:n(c)&&Z(c);break;case 4:r(c)&&Z(c)}}}function r(a){for(var s=a.t,c=a.k,u=ve(c),l=u.length-1;l>=0;l--){var v=u[l];if(v!==E){var f=s[v];if(f===void 0&&!he(s,v))return!0;var m=c[v],p=m&&m[E];if(p?p.t!==f:!kr(m,f))return!0}}var h=!!s[E];return u.length!==ve(s).length+(h?0:1)}function n(a){var s=a.k;if(s.length!==a.t.length)return!0;var c=Object.getOwnPropertyDescriptor(s,s.length-1);if(c&&!c.get)return!0;for(var u=0;u<s.length;u++)if(!s.hasOwnProperty(u))return!0;return!1}function o(a){a.g&&D(3,JSON.stringify(J(a)))}var i={};Rn("ES5",{J:function(a,s){var c=Array.isArray(a),u=function(v,f){if(v){for(var m=Array(f.length),p=0;p<f.length;p++)Object.defineProperty(m,""+p,e(p,!0));return m}var h=Br(f);delete h[E];for(var w=ve(h),g=0;g<w.length;g++){var x=w[g];h[x]=e(x,v||!!h[x].enumerable)}return Object.create(Object.getPrototypeOf(f),h)}(c,a),l={i:c?5:4,A:s?s.A:yt(),P:!1,I:!1,R:{},l:s,t:a,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,E,{value:l,writable:!0}),u},S:function(a,s,c){c?z(s)&&s[E].A===a&&t(a.p):(a.u&&function u(l){if(l&&typeof l=="object"){var v=l[E];if(v){var f=v.t,m=v.k,p=v.R,h=v.i;if(h===4)ue(m,function(S){S!==E&&(f[S]!==void 0||he(f,S)?p[S]||u(m[S]):(p[S]=!0,Z(v)))}),ue(f,function(S){m[S]!==void 0||he(m,S)||(p[S]=!1,Z(v))});else if(h===5){if(n(v)&&(Z(v),p.length=!0),m.length<f.length)for(var w=m.length;w<f.length;w++)p[w]=!1;else for(var g=f.length;g<m.length;g++)p[g]=!0;for(var x=Math.min(m.length,f.length),O=0;O<x;O++)m.hasOwnProperty(O)||(p[O]=!0),p[O]===void 0&&u(m[O])}}}}(a.p[0]),t(a.p))},K:function(a){return a.i===4?r(a):n(a)}})}var Mr,Ce,Ct=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Ln=typeof Map<"u",jn=typeof Set<"u",Dr=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Ur=Ct?Symbol.for("immer-nothing"):((Mr={})["immer-nothing"]=!0,Mr),Lr=Ct?Symbol.for("immer-draftable"):"__$immer_draftable",E=Ct?Symbol.for("immer-state"):"__$immer_state";var kn=""+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,Br=Object.getOwnPropertyDescriptors||function(e){var t={};return ve(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},xt={},_e={get:function(e,t){if(t===E)return e;var r=J(e);if(!he(r,t))return function(o,i,a){var s,c=Nr(i,a);return c?"value"in c?c.value:(s=c.get)===null||s===void 0?void 0:s.call(o.k):void 0}(e,r,t);var n=r[t];return e.I||!k(n)?n:n===vt(e.t,t)?(mt(e),e.o[t]=gt(e.A.h,n,e)):n},has:function(e,t){return t in J(e)},ownKeys:function(e){return Reflect.ownKeys(J(e))},set:function(e,t,r){var n=Nr(J(e),t);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var o=vt(J(e),t),i=o?.[E];if(i&&i.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(kr(r,o)&&(r!==void 0||he(e.t,t)))return!0;mt(e),Z(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 vt(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,mt(e),Z(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=J(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)}},Ae={};ue(_e,function(e,t){Ae[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Ae.deleteProperty=function(e,t){return Ae.set.call(this,e,t,void 0)},Ae.set=function(e,t,r){return _e.set.call(this,e[0],t,r,e[0])};var In=function(){function e(r){var n=this;this.O=Dr,this.D=!0,this.produce=function(o,i,a){if(typeof o=="function"&&typeof i!="function"){var s=i;i=o;var c=n;return function(h){var w=this;h===void 0&&(h=s);for(var g=arguments.length,x=Array(g>1?g-1:0),O=1;O<g;O++)x[O-1]=arguments[O];return c.produce(h,function(S){var H;return(H=i).call.apply(H,[w,S].concat(x))})}}var u;if(typeof i!="function"&&D(6),a!==void 0&&typeof a!="function"&&D(7),k(o)){var l=Pr(n),v=gt(n,o,void 0),f=!0;try{u=i(v),f=!1}finally{f?Ve(l):bt(l)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(h){return pt(l,a),ht(h,l)},function(h){throw Ve(l),h}):(pt(l,a),ht(u,l))}if(!o||typeof o!="object"){if((u=i(o))===void 0&&(u=o),u===Ur&&(u=void 0),n.D&&Ot(u,!0),a){var m=[],p=[];W("Patches").M(o,u,m,p),a(m,p)}return u}D(21,o)},this.produceWithPatches=function(o,i){if(typeof o=="function")return function(u){for(var l=arguments.length,v=Array(l>1?l-1:0),f=1;f<l;f++)v[f-1]=arguments[f];return n.produceWithPatches(u,function(m){return o.apply(void 0,[m].concat(v))})};var a,s,c=n.produce(o,i,function(u,l){a=u,s=l});return typeof Promise<"u"&&c instanceof Promise?c.then(function(u){return[u,a,s]}):[c,a,s]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){k(r)||D(8),z(r)&&(r=Dn(r));var n=Pr(this),o=gt(this,r,void 0);return o[E].C=!0,bt(n),o},t.finishDraft=function(r,n){var o=r&&r[E],i=o.A;return pt(i,n),ht(void 0,i)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!Dr&&D(20),this.O=r},t.applyPatches=function(r,n){var o;for(o=n.length-1;o>=0;o--){var i=n[o];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}o>-1&&(n=n.slice(o+1));var a=W("Patches").$;return z(r)?a(r,n):this.produce(r,function(s){return a(s,n)})},e}(),T=new In,Un=T.produce,Ei=T.produceWithPatches.bind(T),Oi=T.setAutoFreeze.bind(T),Ai=T.setUseProxies.bind(T),Ci=T.applyPatches.bind(T),_i=T.createDraft.bind(T),Pi=T.finishDraft.bind(T),ze=Un;function Q(e){"@babel/helpers - typeof";return Q=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},Q(e)}function _t(e,t){if(Q(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Q(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pt(e){var t=_t(e,"string");return Q(t)==="symbol"?t:String(t)}function Tt(e,t,r){return t=Pt(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function He(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Wr(Object(r),!0).forEach(function(n){Tt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wr(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _(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 Vr=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Nt=function(){return Math.random().toString(36).substring(7).split("").join(".")},qe={INIT:"@@redux/INIT"+Nt(),REPLACE:"@@redux/REPLACE"+Nt(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Nt()}};function Bn(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 Rt(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(_(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(_(1));return r(Rt)(e,t)}if(typeof e!="function")throw new Error(_(2));var o=e,i=t,a=[],s=a,c=!1;function u(){s===a&&(s=a.slice())}function l(){if(c)throw new Error(_(3));return i}function v(h){if(typeof h!="function")throw new Error(_(4));if(c)throw new Error(_(5));var w=!0;return u(),s.push(h),function(){if(w){if(c)throw new Error(_(6));w=!1,u();var x=s.indexOf(h);s.splice(x,1),a=null}}}function f(h){if(!Bn(h))throw new Error(_(7));if(typeof h.type>"u")throw new Error(_(8));if(c)throw new Error(_(9));try{c=!0,i=o(i,h)}finally{c=!1}for(var w=a=s,g=0;g<w.length;g++){var x=w[g];x()}return h}function m(h){if(typeof h!="function")throw new Error(_(10));o=h,f({type:qe.REPLACE})}function p(){var h,w=v;return h={subscribe:function(x){if(typeof x!="object"||x===null)throw new Error(_(11));function O(){x.next&&x.next(l())}O();var S=w(O);return{unsubscribe:S}}},h[Vr]=function(){return this},h}return f({type:qe.INIT}),n={dispatch:f,subscribe:v,getState:l,replaceReducer:m},n[Vr]=p,n}function Wn(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:qe.INIT});if(typeof n>"u")throw new Error(_(12));if(typeof r(void 0,{type:qe.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(_(13))})}function Gr(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var o=t[n];typeof e[o]=="function"&&(r[o]=e[o])}var i=Object.keys(r),a,s;try{Wn(r)}catch(c){s=c}return function(u,l){if(u===void 0&&(u={}),s)throw s;if(0)var v;for(var f=!1,m={},p=0;p<i.length;p++){var h=i[p],w=r[h],g=u[h],x=w(g,l);if(typeof x>"u"){var O=l&&l.type;throw new Error(_(14))}m[h]=x,f=f||x!==g}return f=f||i.length!==Object.keys(u).length,f?m:u}}function ye(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,o){return function(){return n(o.apply(void 0,arguments))}})}function Kr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var o=n.apply(void 0,arguments),i=function(){throw new Error(_(15))},a={getState:o.getState,dispatch:function(){return i.apply(void 0,arguments)}},s=t.map(function(c){return c(a)});return i=ye.apply(void 0,s)(o.dispatch),He(He({},o),{},{dispatch:i})}}}function zr(e){var t=function(n){var o=n.dispatch,i=n.getState;return function(a){return function(s){return typeof s=="function"?s(o,i,e):a(s)}}};return t}var Hr=zr();Hr.withExtraArgument=zr;var Mt=Hr;var Jr=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Vn=function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,o=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){r.label=u[1];break}if(u[0]===6&&r.label<i[1]){r.label=i[1],i=u;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(u);break}i[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(l){u=[6,l],o=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},be=function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e},Gn=Object.defineProperty,Kn=Object.defineProperties,zn=Object.getOwnPropertyDescriptors,qr=Object.getOwnPropertySymbols,Hn=Object.prototype.hasOwnProperty,qn=Object.prototype.propertyIsEnumerable,$r=function(e,t,r){return t in e?Gn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},F=function(e,t){for(var r in t||(t={}))Hn.call(t,r)&&$r(e,r,t[r]);if(qr)for(var n=0,o=qr(t);n<o.length;n++){var r=o[n];qn.call(t,r)&&$r(e,r,t[r])}return e},Dt=function(e,t){return Kn(e,zn(t))},$n=function(e,t,r){return new Promise(function(n,o){var i=function(c){try{s(r.next(c))}catch(u){o(u)}},a=function(c){try{s(r.throw(c))}catch(u){o(u)}},s=function(c){return c.done?n(c.value):Promise.resolve(c.value).then(i,a)};s((r=r.apply(e,t)).next())})};var Xn=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)},qi=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Yn(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 Jn=function(e){Jr(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=e.apply(this,r)||this;return Object.setPrototypeOf(o,t.prototype),o}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,be([void 0],r[0].concat(this)))):new(t.bind.apply(t,be([void 0],r.concat(this))))},t}(Array),Zn=function(e){Jr(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=e.apply(this,r)||this;return Object.setPrototypeOf(o,t.prototype),o}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,be([void 0],r[0].concat(this)))):new(t.bind.apply(t,be([void 0],r.concat(this))))},t}(Array);function kt(e){return k(e)?ze(e,function(){}):e}function Qn(e){return typeof e=="boolean"}function Fn(){return function(t){return eo(t)}}function eo(e){e===void 0&&(e={});var t=e.thunk,r=t===void 0?!0:t,n=e.immutableCheck,o=n===void 0?!0:n,i=e.serializableCheck,a=i===void 0?!0:i,s=new Jn;if(r&&(Qn(r)?s.push(Mt):s.push(Mt.withExtraArgument(r.extraArgument))),0){if(o)var c;if(a)var u}return s}var Lt=!0;function Zr(e){var t=Fn(),r=e||{},n=r.reducer,o=n===void 0?void 0:n,i=r.middleware,a=i===void 0?t():i,s=r.devTools,c=s===void 0?!0:s,u=r.preloadedState,l=u===void 0?void 0:u,v=r.enhancers,f=v===void 0?void 0:v,m;if(typeof o=="function")m=o;else if(Yn(o))m=Gr(o);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var p=a;if(typeof p=="function"&&(p=p(t),!Lt&&!Array.isArray(p)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Lt&&p.some(function(S){return typeof S!="function"}))throw new Error("each middleware provided to configureStore must be a function");var h=Kr.apply(void 0,p),w=ye;c&&(w=Xn(F({trace:!Lt},typeof c=="object"&&c)));var g=new Zn(h),x=g;Array.isArray(f)?x=be([h],f):typeof f=="function"&&(x=f(g));var O=w.apply(void 0,x);return Rt(m,l,O)}function ee(e,t){function r(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];if(t){var i=t.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return F(F({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:n[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(n){return n.type===e},r}function Qr(e){var t={},r=[],n,o={addCase:function(i,a){var s=typeof i=="string"?i:i.type;if(s in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[s]=a,o},addMatcher:function(i,a){return r.push({matcher:i,reducer:a}),o},addDefaultCase:function(i){return n=i,o}};return e(o),[t,r,n]}function to(e){return typeof e=="function"}function ro(e,t,r,n){r===void 0&&(r=[]);var o=typeof t=="function"?Qr(t):[t,r,n],i=o[0],a=o[1],s=o[2],c;if(to(e))c=function(){return kt(e())};else{var u=kt(e);c=function(){return u}}function l(v,f){v===void 0&&(v=c());var m=be([i[f.type]],a.filter(function(p){var h=p.matcher;return h(f)}).map(function(p){var h=p.reducer;return h}));return m.filter(function(p){return!!p}).length===0&&(m=[s]),m.reduce(function(p,h){if(h)if(z(p)){var w=p,g=h(w,f);return g===void 0?p:g}else{if(k(p))return ze(p,function(x){return h(x,f)});var g=h(p,f);if(g===void 0){if(p===null)return p;throw Error("A case reducer on a non-draftable value must not return undefined")}return g}return p},v)}return l.getInitialState=c,l}function no(e,t){return e+"/"+t}function Fr(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||{},o=Object.keys(n),i={},a={},s={};o.forEach(function(l){var v=n[l],f=no(t,l),m,p;"reducer"in v?(m=v.reducer,p=v.prepare):m=v,i[l]=m,a[f]=m,s[l]=p?ee(f,p):ee(f)});function c(){var l=typeof e.extraReducers=="function"?Qr(e.extraReducers):[e.extraReducers],v=l[0],f=v===void 0?{}:v,m=l[1],p=m===void 0?[]:m,h=l[2],w=h===void 0?void 0:h,g=F(F({},f),a);return ro(r,function(x){for(var O in g)x.addCase(O,g[O]);for(var S=0,H=p;S<H.length;S++){var V=H[S];x.addMatcher(V.matcher,V.reducer)}w&&x.addDefaultCase(w)})}var u;return{name:t,reducer:function(l,v){return u||(u=c()),u(l,v)},actions:s,caseReducers:i,getInitialState:function(){return u||(u=c()),u.getInitialState()}}}var oo="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",io=function(e){e===void 0&&(e=21);for(var t="",r=e;r--;)t+=oo[Math.random()*64|0];return t},ao=["name","message","stack","code"],jt=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),Xr=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),so=function(e){if(typeof e=="object"&&e!==null){for(var t={},r=0,n=ao;r<n.length;r++){var o=n[r];typeof e[o]=="string"&&(t[o]=e[o])}return t}return{message:String(e)}},Ji=function(){function e(t,r,n){var o=ee(t+"/fulfilled",function(l,v,f,m){return{payload:l,meta:Dt(F({},m||{}),{arg:f,requestId:v,requestStatus:"fulfilled"})}}),i=ee(t+"/pending",function(l,v,f){return{payload:void 0,meta:Dt(F({},f||{}),{arg:v,requestId:l,requestStatus:"pending"})}}),a=ee(t+"/rejected",function(l,v,f,m,p){return{payload:m,error:(n&&n.serializeError||so)(l||"Rejected"),meta:Dt(F({},p||{}),{arg:f,requestId:v,rejectedWithValue:!!m,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"})}}),s=!1,c=typeof AbortController<"u"?AbortController:function(){function l(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return l.prototype.abort=function(){},l}();function u(l){return function(v,f,m){var p=n?.idGenerator?n.idGenerator(l):io(),h=new c,w,g=!1;function x(S){w=S,h.abort()}var O=function(){return $n(this,null,function(){var S,H,V,ge,zt,xe,Ht;return Vn(this,function(le){switch(le.label){case 0:return le.trys.push([0,4,,5]),ge=(S=n?.condition)==null?void 0:S.call(n,l,{getState:f,extra:m}),co(ge)?[4,ge]:[3,2];case 1:ge=le.sent(),le.label=2;case 2:if(ge===!1||h.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return g=!0,zt=new Promise(function(L,we){return h.signal.addEventListener("abort",function(){return we({name:"AbortError",message:w||"Aborted"})})}),v(i(p,l,(H=n?.getPendingMeta)==null?void 0:H.call(n,{requestId:p,arg:l},{getState:f,extra:m}))),[4,Promise.race([zt,Promise.resolve(r(l,{dispatch:v,getState:f,extra:m,requestId:p,signal:h.signal,abort:x,rejectWithValue:function(L,we){return new jt(L,we)},fulfillWithValue:function(L,we){return new Xr(L,we)}})).then(function(L){if(L instanceof jt)throw L;return L instanceof Xr?o(L.payload,p,l,L.meta):o(L,p,l)})])];case 3:return V=le.sent(),[3,5];case 4:return xe=le.sent(),V=xe instanceof jt?a(null,p,l,xe.payload,xe.meta):a(xe,p,l),[3,5];case 5:return Ht=n&&!n.dispatchConditionRejection&&a.match(V)&&V.meta.condition,Ht||v(V),[2,V]}})})}();return Object.assign(O,{abort:x,requestId:p,arg:l,unwrap:function(){return O.then(uo)}})}}return Object.assign(u,{pending:i,rejected:a,fulfilled:o,typePrefix:t})}return e.withTypes=function(){return e},e}();function uo(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function co(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var en="listener",tn="completed",rn="cancelled",Zi="task-"+rn,Qi="task-"+tn,Fi=en+"-"+rn,ea=en+"-"+tn;var It="listenerMiddleware";var ta=ee(It+"/add"),ra=ee(It+"/removeAll"),na=ee(It+"/remove");var Yr,oa=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(Yr||(Yr=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},lo=function(e){return function(t){setTimeout(t,e)}},ia=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:lo(10);Ir();window.ftReduxStores||(window.ftReduxStores={});var nn=class e{static get(t){var r;let n=typeof t=="string"?t:t.name,o=typeof t=="string"?void 0:t,i=window.ftReduxStores[n];if(Ee(i))return i;if(o==null)return;let a=Fr({...o,reducers:(r=o.reducers)!==null&&r!==void 0?r:{}}),s=Zr({reducer:(c,u)=>u.type==="CLEAR_FT_REDUX_STORE"?a.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...c,...u.overwrites}:a.reducer(c,u)});return window.ftReduxStores[o.name]=new e(a,s)}constructor(t,r){this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new ke,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,o,i)=>{let a=o,s=n[a];return s?(...c)=>{let u=s(...c);return this.reduxStore.dispatch(u),u}:c=>{this.setState({[a]:c})}}})}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 Je=y(C());var $e=class extends ${async listMySearches(){let t=b.getState().session;return t?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var Xe=class extends ${async listMyBookmarks(){let t=b.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var po="ft-user-assets",Ye=Je.FtReduxStore.get({name:po,initialState:{savedSearches:void 0,bookmarks:void 0}}),Ut=class{constructor(){this.currentSession=b.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Xe,this.savedSearchesService=new $e,b.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=b.getState();(0,Je.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(),Ye.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Ye.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();Ye.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;Ye.actions.bookmarks(r)}}},La=new Ut;var Bt=class{addCommand(t,r=!1){b.commands.add(t,r)}consumeCommand(t){return b.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Bt;var on=y(C()),Wt=class{highlightHtml(t,r){(0,on.highlightHtml)(t,r)}};window.FluidTopicsHighlightHtmlService=new Wt;var an=y(C());var Vt=class{isDate(t){var r,n,o,i;return(i=(o=((n=(r=b.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(s=>s.key===t))===null||o===void 0?void 0:o.date)!==null&&i!==void 0?i:!1}format(t,r){var n,o,i;return an.DateFormatter.format(t,(n=r?.locale)!==null&&n!==void 0?n:b.getState().uiLocale,(o=r?.longFormat)!==null&&o!==void 0?o:!1,(i=r?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new Vt;(0,sn.customElement)("ft-app-context")(A);var cn=y(R()),ho=function(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},Gt=Symbol("i18nAttributes"),Ze=Symbol("i18nProperties"),Pe=Symbol("i18nUnsubs");function ln(e){var t;class r extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map}get i18nService(){return this.useCustomMessageContexts?vr:de}i18n(o,i,...a){var s;if(typeof o=="string")return this.i18nService.resolveMessage(o,i,...a);let c=(s=o.args)!==null&&s!==void 0?s:o.argsProvider?o.argsProvider(this):[];return this.i18nService.resolveMessage(o.context,o.key,...c)}onI18nUpdate(o){var i,a;(i=this[Gt])===null||i===void 0||i.forEach((s,c)=>{var u;let l=this.getI18nAttributeValue(c);((u=l?.context)===null||u===void 0?void 0:u.toLowerCase())===o.toLowerCase()&&this.updateI18nAttributeMessage(c,l,s)}),(a=this[Ze])===null||a===void 0||a.forEach((s,c)=>{s.context.toLowerCase()===o.toLowerCase()&&(this[c]=this.i18n(s))}),setTimeout(()=>this.requestUpdate(),0)}updateI18nAttributeMessage(o,i,a){this[o]={...i,message:this.i18n({context:i.context,key:i.key,...a})}}update(o){var i,a;super.update(o),(i=this[Gt])===null||i===void 0||i.forEach((s,c)=>{let u=this.getI18nAttributeValue(c);u?.context&&u.key&&(o.has(c)||s.argsProvider!=null)&&(o.has(c)&&this.addI18nContext(u.context),this.updateI18nAttributeMessage(c,u,s))}),(a=this[Ze])===null||a===void 0||a.forEach((s,c)=>{s.argsProvider!=null&&(this[c]=this.i18n(s))})}getI18nAttributeValue(o){return this[o]}connectedCallback(){var o,i,a,s;super.connectedCallback(),new Set([...(i=(o=this[Ze])===null||o===void 0?void 0:o.values())!==null&&i!==void 0?i:[],...[...(s=(a=this[Gt])===null||a===void 0?void 0:a.keys())!==null&&s!==void 0?s:[]].map(c=>this.getI18nAttributeValue(c))].map(c=>c?.context)).forEach(c=>c&&this.addI18nMessages(c))}addI18nMessages(o,i){o=o.toLowerCase(),this[Pe].has(o)||this[Pe].set(o,this.i18nService.subscribe(o,()=>this.onI18nUpdate(o))),this.i18nService.prepareContext(o,i??{})}addI18nContext(o,i){this.addI18nMessages(typeof o=="string"?o:o.name,i)}disconnectedCallback(){super.disconnectedCallback(),this[Pe].forEach(o=>o()),this[Pe].clear()}}return t=Pe,ho([(0,cn.property)({type:Boolean})],r.prototype,"useCustomMessageContexts",void 0),r}var un=class extends ln(Fe.FtLitElement){},Qe=class extends ln(Fe.FtLitElementRedux){};var Te=function(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},I=class extends Qe{constructor(){super(),this.editorMode=!1,this.addStore(b)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":et.nothing:et.html`
81
+ `}update(t){super.update(t),t.has("baseUrl")&&(b.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&b.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&b.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&b.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&b.actions.noCustom(this.noCustom),t.has("editorMode")&&b.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&b.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&b.actions.session(this.session),t.has("availableUiLocales")&&b.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(r=>de.addContext(r)),t.has("openExternalDocumentInNewTab")&&b.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&b.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&b.actions.forcedOffline(this.forcedOffline),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(this.session==null&&this.updateSession(),this.availableUiLocales==null&&this.updateUiLocales(),this.metadataConfiguration==null&&this.updateMetadataConfiguration())}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 updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",()=>this.apiProvider().getAvailableUiLocales())}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}};A.elementDefinitions={};A.styles=vr;P([(0,M.property)()],A.prototype,"baseUrl",void 0);P([(0,M.property)()],A.prototype,"apiIntegrationIdentifier",void 0);P([(0,M.property)()],A.prototype,"uiLocale",void 0);P([(0,j.jsonProperty)(null)],A.prototype,"availableUiLocales",void 0);P([(0,j.jsonProperty)(null)],A.prototype,"metadataConfiguration",void 0);P([(0,M.property)({type:Boolean})],A.prototype,"editorMode",void 0);P([(0,M.property)({type:Boolean})],A.prototype,"noCustom",void 0);P([(0,M.property)({type:Boolean})],A.prototype,"openExternalDocumentInNewTab",void 0);P([(0,M.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],A.prototype,"noCustomComponent",void 0);P([(0,M.property)({type:Boolean})],A.prototype,"withManualResources",void 0);P([(0,M.property)({type:Boolean})],A.prototype,"navigatorOnline",void 0);P([(0,M.property)({type:Boolean})],A.prototype,"forcedOffline",void 0);P([(0,M.property)({type:Object})],A.prototype,"apiProvider",void 0);P([(0,j.jsonProperty)([])],A.prototype,"messageContexts",void 0);P([(0,j.jsonProperty)(void 0)],A.prototype,"session",void 0);var ho=y(R());function Pn(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,o;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Ie(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(!Ie(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();if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){var i=o[n];if(!Ie(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Ie(e,t){try{return Pn(e,t)}catch{return!1}}function vt(e,t){return!Ie(e,t)}var Tn=y(R(),1);var Ue=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 we=y(R(),1);var gr=y(R(),1);function xr(e,t){let r=()=>JSON.parse(JSON.stringify(e));return(0,gr.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:vt,...t??{}})}var Be=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,r){return this.callbacks=[t],this.debounce(r)}queue(t,r){return this.callbacks.push(t),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let n=[...this.callbacks];this.callbacks=[];let o=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,i=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let a of n)try{await a()}catch(s){o(s);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var wr=y(U(),1);var We=window,Nn=We.ShadowRoot&&(We.ShadyCSS===void 0||We.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,pi=Symbol();var Sr=(e,t)=>{Nn?e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):t.forEach(r=>{let n=document.createElement("style"),o=We.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=r.cssText,e.appendChild(n)})};var Ve=class extends wr.LitElement{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([o,i])=>t.registry.define(o,i)));let r={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return Sr(n,t.elementStyles),n}};var Ge=function(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},Ar,Er=Symbol("constructorPrototype"),Or=Symbol("constructorName"),Cr=Symbol("exportpartsDebouncer"),Y=class extends Ve{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Ar]=new Be(5),this[Or]=this.constructor.name,this[Er]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Or]&&Object.setPrototypeOf(this,this[Er])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(t){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",t)}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,o;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((o=this.customStylesheet)!==null&&o!==void 0?o:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}scheduleExportpartsUpdate(){var t,r,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[Cr].run(()=>{var o,i;!((o=this.exportpartsPrefix)===null||o===void 0)&&o.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(t){var r,n,o,i,a,s;let c=f=>f!=null&&f.trim().length>0,u=t.filter(c).map(f=>f.trim());if(u.length===0){this.removeAttribute("exportparts");return}let l=new Set;for(let f of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let m=(i=(o=f.getAttribute("part"))===null||o===void 0?void 0:o.split(" "))!==null&&i!==void 0?i:[],p=(s=(a=f.getAttribute("exportparts"))===null||a===void 0?void 0:a.split(",").map(h=>h.split(":")[1]))!==null&&s!==void 0?s:[];new Array(...m,...p).filter(c).map(h=>h.trim()).forEach(h=>l.add(h))}if(l.size===0){this.removeAttribute("exportparts");return}let v=[...l.values()].flatMap(f=>u.map(m=>`${f}:${m}--${f}`));this.setAttribute("exportparts",[...this.part,...v].join(", "))}};Ar=Cr;Ge([(0,we.property)()],Y.prototype,"exportpartsPrefix",void 0);Ge([xr([])],Y.prototype,"exportpartsPrefixes",void 0);Ge([(0,we.property)()],Y.prototype,"customStylesheet",void 0);Ge([(0,we.state)()],Y.prototype,"useAdoptedStyleSheets",void 0);function Ee(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var _r,Pr,Tr,Ke=Symbol("internalReduxEventsUnsubscribers"),J=Symbol("internalStoresUnsubscribers"),se=Symbol("internalStores"),Oe=class extends Y{constructor(){super(...arguments),this[_r]=new Map,this[Pr]=new Map,this[Tr]=[]}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??(Ee(t)?t.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(r),this.setupStore(r,t)}removeStore(t){let r=typeof t=="string"?t:t.name;this.unsubscribeFromStore(r),this[se].delete(r)}setupStore(t,r){this[se].set(t,r),this.subscribeToStore(t,r),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[se].forEach((t,r)=>this.subscribeToStore(r,t)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((t,r)=>{let n=this.constructor.getPropertyOptions(r);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:r)){let o=this.getStore(t.store);o&&(t.store?this[J].has(t.store):this[J].size>0)&&(this[r]=t.selector(o.getState(),this))}})}subscribeToStore(t,r){var n;this[J].set(t,r.subscribe(()=>this.updateFromStores())),Ee(r)&&r.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((o,i)=>{if(typeof this[i]=="function"&&(!o.store||r.name===o.store)){let a=s=>this[i](s);r.eventBus.addEventListener(o.eventName,a),this[Ke].push(()=>r.eventBus.removeEventListener(o.eventName,a))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[J].forEach((t,r)=>this.unsubscribeFromStore(r)),this[Ke].forEach(t=>t()),this[Ke]=[]}unsubscribeFromStore(t){this[J].has(t)&&this[J].get(t)(),this[J].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};_r=J,Pr=se,Tr=Ke;Oe.reduxProperties=new Map;Oe.reduxReactiveProperties=new Set;Oe.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 o,i;throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(a){return"'"+a+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function z(e){return!!e&&!!e[E]}function k(e){var t;return!!e&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var o=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return o===Object||typeof o=="function"&&Function.toString.call(o)===Un}(e)||Array.isArray(e)||!!e[kr]||!!(!((t=e.constructor)===null||t===void 0)&&t[kr])||Ot(e)||At(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,o){return t(o,n,e)})}function ve(e){var t=e[E];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Ot(e)?2:At(e)?3:0}function pe(e,t){return ve(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Rn(e,t){return ve(e)===2?e.get(t):e[t]}function Ir(e,t,r){var n=ve(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function Ur(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Ot(e){return kn&&e instanceof Map}function At(e){return In&&e instanceof Set}function Z(e){return e.o||e.t}function Ct(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Vr(e);delete t[E];for(var r=he(t),n=0;n<r.length;n++){var o=r[n],i=t[o];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function _t(e,t){return t===void 0&&(t=!1),Pt(e)||z(e)||!k(e)||(ve(e)>1&&(e.set=e.add=e.clear=e.delete=Mn),Object.freeze(e),t&&ue(e,function(r,n){return _t(n,!0)},!0)),e}function Mn(){D(2)}function Pt(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function W(e){var t=Et[e];return t||D(18,e),t}function Dn(e,t){Et[e]||(Et[e]=t)}function xt(){return Ce}function mt(e,t){t&&(W("Patches"),e.u=[],e.s=[],e.v=t)}function ze(e){St(e),e.p.forEach(Ln),e.p=null}function St(e){e===Ce&&(Ce=e.l)}function Nr(e){return Ce={p:[],l:Ce,h:e,m:!0,_:0}}function Ln(e){var t=e[E];t.i===0||t.i===1?t.j():t.g=!0}function yt(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||W("ES5").S(t,e,n),n?(r[E].P&&(ze(t),D(4)),k(e)&&(e=He(t,e),t.l||qe(t,e)),t.u&&W("Patches").M(r[E].t,e,t.u,t.s)):e=He(t,r,[]),ze(t),t.u&&t.v(t.u,t.s),e!==Wr?e:void 0}function He(e,t,r){if(Pt(t))return t;var n=t[E];if(!n)return ue(t,function(s,c){return Rr(e,n,t,s,c,r)},!0),t;if(n.A!==e)return t;if(!n.P)return qe(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=n.i===4||n.i===5?n.o=Ct(n.k):n.o,i=o,a=!1;n.i===3&&(i=new Set(o),o.clear(),a=!0),ue(i,function(s,c){return Rr(e,n,o,s,c,r,a)}),qe(e,o,!1),r&&e.u&&W("Patches").N(n,r,e.u,e.s)}return n.o}function Rr(e,t,r,n,o,i,a){if(z(o)){var s=He(e,o,i&&t&&t.i!==3&&!pe(t.R,n)?i.concat(n):void 0);if(Ir(r,n,s),!z(s))return;e.m=!1}else a&&r.add(o);if(k(o)&&!Pt(o)){if(!e.h.D&&e._<1)return;He(e,o),t&&t.A.l||qe(e,o)}}function qe(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&_t(t,r)}function bt(e,t){var r=e[E];return(r?Z(r):e)[t]}function Mr(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 Q(e){e.P||(e.P=!0,e.l&&Q(e.l))}function gt(e){e.o||(e.o=Ct(e.t))}function wt(e,t,r){var n=Ot(t)?W("MapSet").F(t,r):At(t)?W("MapSet").T(t,r):e.O?function(o,i){var a=Array.isArray(o),s={i:a?1:0,A:i?i.A:xt(),P:!1,I:!1,R:{},l:i,t:o,k:null,o:null,j:null,C:!1},c=s,u=_e;a&&(c=[s],u=Ae);var l=Proxy.revocable(c,u),v=l.revoke,f=l.proxy;return s.k=f,s.j=v,f}(t,r):W("ES5").J(t,r);return(r?r.A:xt()).p.push(n),n}function jn(e){return z(e)||D(22,e),function t(r){if(!k(r))return r;var n,o=r[E],i=ve(r);if(o){if(!o.P&&(o.i<4||!W("ES5").K(o)))return o.t;o.I=!0,n=Dr(r,i),o.I=!1}else n=Dr(r,i);return ue(n,function(a,s){o&&Rn(o.t,a)===s||Ir(n,a,t(s))}),i===3?new Set(n):n}(e)}function Dr(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Ct(e)}function Br(){function e(a,s){var c=i[a];return c?c.enumerable=s:i[a]=c={configurable:!0,enumerable:s,get:function(){var u=this[E];return _e.get(u,a)},set:function(u){var l=this[E];_e.set(l,a,u)}},c}function t(a){for(var s=a.length-1;s>=0;s--){var c=a[s][E];if(!c.P)switch(c.i){case 5:n(c)&&Q(c);break;case 4:r(c)&&Q(c)}}}function r(a){for(var s=a.t,c=a.k,u=he(c),l=u.length-1;l>=0;l--){var v=u[l];if(v!==E){var f=s[v];if(f===void 0&&!pe(s,v))return!0;var m=c[v],p=m&&m[E];if(p?p.t!==f:!Ur(m,f))return!0}}var h=!!s[E];return u.length!==he(s).length+(h?0:1)}function n(a){var s=a.k;if(s.length!==a.t.length)return!0;var c=Object.getOwnPropertyDescriptor(s,s.length-1);if(c&&!c.get)return!0;for(var u=0;u<s.length;u++)if(!s.hasOwnProperty(u))return!0;return!1}function o(a){a.g&&D(3,JSON.stringify(Z(a)))}var i={};Dn("ES5",{J:function(a,s){var c=Array.isArray(a),u=function(v,f){if(v){for(var m=Array(f.length),p=0;p<f.length;p++)Object.defineProperty(m,""+p,e(p,!0));return m}var h=Vr(f);delete h[E];for(var S=he(h),g=0;g<S.length;g++){var x=S[g];h[x]=e(x,v||!!h[x].enumerable)}return Object.create(Object.getPrototypeOf(f),h)}(c,a),l={i:c?5:4,A:s?s.A:xt(),P:!1,I:!1,R:{},l:s,t:a,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,E,{value:l,writable:!0}),u},S:function(a,s,c){c?z(s)&&s[E].A===a&&t(a.p):(a.u&&function u(l){if(l&&typeof l=="object"){var v=l[E];if(v){var f=v.t,m=v.k,p=v.R,h=v.i;if(h===4)ue(m,function(w){w!==E&&(f[w]!==void 0||pe(f,w)?p[w]||u(m[w]):(p[w]=!0,Q(v)))}),ue(f,function(w){m[w]!==void 0||pe(m,w)||(p[w]=!1,Q(v))});else if(h===5){if(n(v)&&(Q(v),p.length=!0),m.length<f.length)for(var S=m.length;S<f.length;S++)p[S]=!1;else for(var g=f.length;g<m.length;g++)p[g]=!0;for(var x=Math.min(m.length,f.length),O=0;O<x;O++)m.hasOwnProperty(O)||(p[O]=!0),p[O]===void 0&&u(m[O])}}}}(a.p[0]),t(a.p))},K:function(a){return a.i===4?r(a):n(a)}})}var Lr,Ce,Tt=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",kn=typeof Map<"u",In=typeof Set<"u",jr=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Wr=Tt?Symbol.for("immer-nothing"):((Lr={})["immer-nothing"]=!0,Lr),kr=Tt?Symbol.for("immer-draftable"):"__$immer_draftable",E=Tt?Symbol.for("immer-state"):"__$immer_state";var Un=""+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,Vr=Object.getOwnPropertyDescriptors||function(e){var t={};return he(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},Et={},_e={get:function(e,t){if(t===E)return e;var r=Z(e);if(!pe(r,t))return function(o,i,a){var s,c=Mr(i,a);return c?"value"in c?c.value:(s=c.get)===null||s===void 0?void 0:s.call(o.k):void 0}(e,r,t);var n=r[t];return e.I||!k(n)?n:n===bt(e.t,t)?(gt(e),e.o[t]=wt(e.A.h,n,e)):n},has:function(e,t){return t in Z(e)},ownKeys:function(e){return Reflect.ownKeys(Z(e))},set:function(e,t,r){var n=Mr(Z(e),t);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var o=bt(Z(e),t),i=o?.[E];if(i&&i.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(Ur(r,o)&&(r!==void 0||pe(e.t,t)))return!0;gt(e),Q(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 bt(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,gt(e),Q(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=Z(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)}},Ae={};ue(_e,function(e,t){Ae[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Ae.deleteProperty=function(e,t){return Ae.set.call(this,e,t,void 0)},Ae.set=function(e,t,r){return _e.set.call(this,e[0],t,r,e[0])};var Bn=function(){function e(r){var n=this;this.O=jr,this.D=!0,this.produce=function(o,i,a){if(typeof o=="function"&&typeof i!="function"){var s=i;i=o;var c=n;return function(h){var S=this;h===void 0&&(h=s);for(var g=arguments.length,x=Array(g>1?g-1:0),O=1;O<g;O++)x[O-1]=arguments[O];return c.produce(h,function(w){var H;return(H=i).call.apply(H,[S,w].concat(x))})}}var u;if(typeof i!="function"&&D(6),a!==void 0&&typeof a!="function"&&D(7),k(o)){var l=Nr(n),v=wt(n,o,void 0),f=!0;try{u=i(v),f=!1}finally{f?ze(l):St(l)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(h){return mt(l,a),yt(h,l)},function(h){throw ze(l),h}):(mt(l,a),yt(u,l))}if(!o||typeof o!="object"){if((u=i(o))===void 0&&(u=o),u===Wr&&(u=void 0),n.D&&_t(u,!0),a){var m=[],p=[];W("Patches").M(o,u,m,p),a(m,p)}return u}D(21,o)},this.produceWithPatches=function(o,i){if(typeof o=="function")return function(u){for(var l=arguments.length,v=Array(l>1?l-1:0),f=1;f<l;f++)v[f-1]=arguments[f];return n.produceWithPatches(u,function(m){return o.apply(void 0,[m].concat(v))})};var a,s,c=n.produce(o,i,function(u,l){a=u,s=l});return typeof Promise<"u"&&c instanceof Promise?c.then(function(u){return[u,a,s]}):[c,a,s]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){k(r)||D(8),z(r)&&(r=jn(r));var n=Nr(this),o=wt(this,r,void 0);return o[E].C=!0,St(n),o},t.finishDraft=function(r,n){var o=r&&r[E],i=o.A;return mt(i,n),yt(void 0,i)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!jr&&D(20),this.O=r},t.applyPatches=function(r,n){var o;for(o=n.length-1;o>=0;o--){var i=n[o];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}o>-1&&(n=n.slice(o+1));var a=W("Patches").$;return z(r)?a(r,n):this.produce(r,function(s){return a(s,n)})},e}(),T=new Bn,Wn=T.produce,Ai=T.produceWithPatches.bind(T),Ci=T.setAutoFreeze.bind(T),_i=T.setUseProxies.bind(T),Pi=T.applyPatches.bind(T),Ti=T.createDraft.bind(T),Ni=T.finishDraft.bind(T),$e=Wn;function F(e){"@babel/helpers - typeof";return F=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},F(e)}function Nt(e,t){if(F(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(F(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Rt(e){var t=Nt(e,"string");return F(t)==="symbol"?t:String(t)}function Mt(e,t,r){return t=Rt(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Gr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Xe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gr(Object(r),!0).forEach(function(n){Mt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gr(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _(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 Kr=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Dt=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ye={INIT:"@@redux/INIT"+Dt(),REPLACE:"@@redux/REPLACE"+Dt(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Dt()}};function Vn(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 Lt(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(_(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(_(1));return r(Lt)(e,t)}if(typeof e!="function")throw new Error(_(2));var o=e,i=t,a=[],s=a,c=!1;function u(){s===a&&(s=a.slice())}function l(){if(c)throw new Error(_(3));return i}function v(h){if(typeof h!="function")throw new Error(_(4));if(c)throw new Error(_(5));var S=!0;return u(),s.push(h),function(){if(S){if(c)throw new Error(_(6));S=!1,u();var x=s.indexOf(h);s.splice(x,1),a=null}}}function f(h){if(!Vn(h))throw new Error(_(7));if(typeof h.type>"u")throw new Error(_(8));if(c)throw new Error(_(9));try{c=!0,i=o(i,h)}finally{c=!1}for(var S=a=s,g=0;g<S.length;g++){var x=S[g];x()}return h}function m(h){if(typeof h!="function")throw new Error(_(10));o=h,f({type:Ye.REPLACE})}function p(){var h,S=v;return h={subscribe:function(x){if(typeof x!="object"||x===null)throw new Error(_(11));function O(){x.next&&x.next(l())}O();var w=S(O);return{unsubscribe:w}}},h[Kr]=function(){return this},h}return f({type:Ye.INIT}),n={dispatch:f,subscribe:v,getState:l,replaceReducer:m},n[Kr]=p,n}function Gn(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:Ye.INIT});if(typeof n>"u")throw new Error(_(12));if(typeof r(void 0,{type:Ye.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(_(13))})}function zr(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var o=t[n];typeof e[o]=="function"&&(r[o]=e[o])}var i=Object.keys(r),a,s;try{Gn(r)}catch(c){s=c}return function(u,l){if(u===void 0&&(u={}),s)throw s;if(0)var v;for(var f=!1,m={},p=0;p<i.length;p++){var h=i[p],S=r[h],g=u[h],x=S(g,l);if(typeof x>"u"){var O=l&&l.type;throw new Error(_(14))}m[h]=x,f=f||x!==g}return f=f||i.length!==Object.keys(u).length,f?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,o){return function(){return n(o.apply(void 0,arguments))}})}function Hr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var o=n.apply(void 0,arguments),i=function(){throw new Error(_(15))},a={getState:o.getState,dispatch:function(){return i.apply(void 0,arguments)}},s=t.map(function(c){return c(a)});return i=me.apply(void 0,s)(o.dispatch),Xe(Xe({},o),{},{dispatch:i})}}}function qr(e){var t=function(n){var o=n.dispatch,i=n.getState;return function(a){return function(s){return typeof s=="function"?s(o,i,e):a(s)}}};return t}var $r=qr();$r.withExtraArgument=qr;var jt=$r;var Qr=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Kn=function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,o=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){r.label=u[1];break}if(u[0]===6&&r.label<i[1]){r.label=i[1],i=u;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(u);break}i[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(l){u=[6,l],o=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},ye=function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e},zn=Object.defineProperty,Hn=Object.defineProperties,qn=Object.getOwnPropertyDescriptors,Xr=Object.getOwnPropertySymbols,$n=Object.prototype.hasOwnProperty,Xn=Object.prototype.propertyIsEnumerable,Yr=function(e,t,r){return t in e?zn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},ee=function(e,t){for(var r in t||(t={}))$n.call(t,r)&&Yr(e,r,t[r]);if(Xr)for(var n=0,o=Xr(t);n<o.length;n++){var r=o[n];Xn.call(t,r)&&Yr(e,r,t[r])}return e},kt=function(e,t){return Hn(e,qn(t))},Yn=function(e,t,r){return new Promise(function(n,o){var i=function(c){try{s(r.next(c))}catch(u){o(u)}},a=function(c){try{s(r.throw(c))}catch(u){o(u)}},s=function(c){return c.done?n(c.value):Promise.resolve(c.value).then(i,a)};s((r=r.apply(e,t)).next())})};var Jn=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)},Xi=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Zn(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 Qn=function(e){Qr(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=e.apply(this,r)||this;return Object.setPrototypeOf(o,t.prototype),o}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,ye([void 0],r[0].concat(this)))):new(t.bind.apply(t,ye([void 0],r.concat(this))))},t}(Array),Fn=function(e){Qr(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=e.apply(this,r)||this;return Object.setPrototypeOf(o,t.prototype),o}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,ye([void 0],r[0].concat(this)))):new(t.bind.apply(t,ye([void 0],r.concat(this))))},t}(Array);function Bt(e){return k(e)?$e(e,function(){}):e}function eo(e){return typeof e=="boolean"}function to(){return function(t){return ro(t)}}function ro(e){e===void 0&&(e={});var t=e.thunk,r=t===void 0?!0:t,n=e.immutableCheck,o=n===void 0?!0:n,i=e.serializableCheck,a=i===void 0?!0:i,s=new Qn;if(r&&(eo(r)?s.push(jt):s.push(jt.withExtraArgument(r.extraArgument))),0){if(o)var c;if(a)var u}return s}var It=!0;function Fr(e){var t=to(),r=e||{},n=r.reducer,o=n===void 0?void 0:n,i=r.middleware,a=i===void 0?t():i,s=r.devTools,c=s===void 0?!0:s,u=r.preloadedState,l=u===void 0?void 0:u,v=r.enhancers,f=v===void 0?void 0:v,m;if(typeof o=="function")m=o;else if(Zn(o))m=zr(o);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var p=a;if(typeof p=="function"&&(p=p(t),!It&&!Array.isArray(p)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!It&&p.some(function(w){return typeof w!="function"}))throw new Error("each middleware provided to configureStore must be a function");var h=Hr.apply(void 0,p),S=me;c&&(S=Jn(ee({trace:!It},typeof c=="object"&&c)));var g=new Fn(h),x=g;Array.isArray(f)?x=ye([h],f):typeof f=="function"&&(x=f(g));var O=S.apply(void 0,x);return Lt(m,l,O)}function te(e,t){function r(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];if(t){var i=t.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return ee(ee({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:n[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(n){return n.type===e},r}function en(e){var t={},r=[],n,o={addCase:function(i,a){var s=typeof i=="string"?i:i.type;if(s in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[s]=a,o},addMatcher:function(i,a){return r.push({matcher:i,reducer:a}),o},addDefaultCase:function(i){return n=i,o}};return e(o),[t,r,n]}function no(e){return typeof e=="function"}function oo(e,t,r,n){r===void 0&&(r=[]);var o=typeof t=="function"?en(t):[t,r,n],i=o[0],a=o[1],s=o[2],c;if(no(e))c=function(){return Bt(e())};else{var u=Bt(e);c=function(){return u}}function l(v,f){v===void 0&&(v=c());var m=ye([i[f.type]],a.filter(function(p){var h=p.matcher;return h(f)}).map(function(p){var h=p.reducer;return h}));return m.filter(function(p){return!!p}).length===0&&(m=[s]),m.reduce(function(p,h){if(h)if(z(p)){var S=p,g=h(S,f);return g===void 0?p:g}else{if(k(p))return $e(p,function(x){return h(x,f)});var g=h(p,f);if(g===void 0){if(p===null)return p;throw Error("A case reducer on a non-draftable value must not return undefined")}return g}return p},v)}return l.getInitialState=c,l}function io(e,t){return e+"/"+t}function tn(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||{},o=Object.keys(n),i={},a={},s={};o.forEach(function(l){var v=n[l],f=io(t,l),m,p;"reducer"in v?(m=v.reducer,p=v.prepare):m=v,i[l]=m,a[f]=m,s[l]=p?te(f,p):te(f)});function c(){var l=typeof e.extraReducers=="function"?en(e.extraReducers):[e.extraReducers],v=l[0],f=v===void 0?{}:v,m=l[1],p=m===void 0?[]:m,h=l[2],S=h===void 0?void 0:h,g=ee(ee({},f),a);return oo(r,function(x){for(var O in g)x.addCase(O,g[O]);for(var w=0,H=p;w<H.length;w++){var V=H[w];x.addMatcher(V.matcher,V.reducer)}S&&x.addDefaultCase(S)})}var u;return{name:t,reducer:function(l,v){return u||(u=c()),u(l,v)},actions:s,caseReducers:i,getInitialState:function(){return u||(u=c()),u.getInitialState()}}}var ao="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",so=function(e){e===void 0&&(e=21);for(var t="",r=e;r--;)t+=ao[Math.random()*64|0];return t},uo=["name","message","stack","code"],Ut=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),Jr=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),co=function(e){if(typeof e=="object"&&e!==null){for(var t={},r=0,n=uo;r<n.length;r++){var o=n[r];typeof e[o]=="string"&&(t[o]=e[o])}return t}return{message:String(e)}},Qi=function(){function e(t,r,n){var o=te(t+"/fulfilled",function(l,v,f,m){return{payload:l,meta:kt(ee({},m||{}),{arg:f,requestId:v,requestStatus:"fulfilled"})}}),i=te(t+"/pending",function(l,v,f){return{payload:void 0,meta:kt(ee({},f||{}),{arg:v,requestId:l,requestStatus:"pending"})}}),a=te(t+"/rejected",function(l,v,f,m,p){return{payload:m,error:(n&&n.serializeError||co)(l||"Rejected"),meta:kt(ee({},p||{}),{arg:f,requestId:v,rejectedWithValue:!!m,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"})}}),s=!1,c=typeof AbortController<"u"?AbortController:function(){function l(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return l.prototype.abort=function(){},l}();function u(l){return function(v,f,m){var p=n?.idGenerator?n.idGenerator(l):so(),h=new c,S,g=!1;function x(w){S=w,h.abort()}var O=function(){return Yn(this,null,function(){var w,H,V,be,$t,ge,Xt;return Kn(this,function(le){switch(le.label){case 0:return le.trys.push([0,4,,5]),be=(w=n?.condition)==null?void 0:w.call(n,l,{getState:f,extra:m}),fo(be)?[4,be]:[3,2];case 1:be=le.sent(),le.label=2;case 2:if(be===!1||h.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return g=!0,$t=new Promise(function(L,xe){return h.signal.addEventListener("abort",function(){return xe({name:"AbortError",message:S||"Aborted"})})}),v(i(p,l,(H=n?.getPendingMeta)==null?void 0:H.call(n,{requestId:p,arg:l},{getState:f,extra:m}))),[4,Promise.race([$t,Promise.resolve(r(l,{dispatch:v,getState:f,extra:m,requestId:p,signal:h.signal,abort:x,rejectWithValue:function(L,xe){return new Ut(L,xe)},fulfillWithValue:function(L,xe){return new Jr(L,xe)}})).then(function(L){if(L instanceof Ut)throw L;return L instanceof Jr?o(L.payload,p,l,L.meta):o(L,p,l)})])];case 3:return V=le.sent(),[3,5];case 4:return ge=le.sent(),V=ge instanceof Ut?a(null,p,l,ge.payload,ge.meta):a(ge,p,l),[3,5];case 5:return Xt=n&&!n.dispatchConditionRejection&&a.match(V)&&V.meta.condition,Xt||v(V),[2,V]}})})}();return Object.assign(O,{abort:x,requestId:p,arg:l,unwrap:function(){return O.then(lo)}})}}return Object.assign(u,{pending:i,rejected:a,fulfilled:o,typePrefix:t})}return e.withTypes=function(){return e},e}();function lo(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function fo(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var rn="listener",nn="completed",on="cancelled",Fi="task-"+on,ea="task-"+nn,ta=rn+"-"+on,ra=rn+"-"+nn;var Wt="listenerMiddleware";var na=te(Wt+"/add"),oa=te(Wt+"/removeAll"),ia=te(Wt+"/remove");var Zr,aa=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(Zr||(Zr=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},po=function(e){return function(t){setTimeout(t,e)}},sa=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:po(10);Br();window.ftReduxStores||(window.ftReduxStores={});var an=class e{static get(t){var r;let n=typeof t=="string"?t:t.name,o=typeof t=="string"?void 0:t,i=window.ftReduxStores[n];if(Ee(i))return i;if(o==null)return;let a=tn({...o,reducers:(r=o.reducers)!==null&&r!==void 0?r:{}}),s=Fr({reducer:(c,u)=>u.type==="CLEAR_FT_REDUX_STORE"?a.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...c,...u.overwrites}:a.reducer(c,u)});return window.ftReduxStores[o.name]=new e(a,s)}constructor(t,r){this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Ue,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,o,i)=>{let a=o,s=n[a];return s?(...c)=>{let u=s(...c);return this.reduxStore.dispatch(u),u}:c=>{this.setState({[a]:c})}}})}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 Fe=y(C());var Je=class extends ${async listMySearches(){let t=b.getState().session;return t?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var Ze=class extends ${async listMyBookmarks(){let t=b.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var vo="ft-user-assets",Qe=Fe.FtReduxStore.get({name:vo,initialState:{savedSearches:void 0,bookmarks:void 0}}),Vt=class{constructor(){this.currentSession=b.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Ze,this.savedSearchesService=new Je,b.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=b.getState();(0,Fe.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(),Qe.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Qe.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();Qe.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;Qe.actions.bookmarks(r)}}},ka=new Vt;var Gt=class{addCommand(t,r=!1){b.commands.add(t,r)}consumeCommand(t){return b.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Gt;var sn=y(C()),Kt=class{highlightHtml(t,r){(0,sn.highlightHtml)(t,r)}};window.FluidTopicsHighlightHtmlService=new Kt;var un=y(C());var zt=class{isDate(t){var r,n,o,i;return(i=(o=((n=(r=b.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(s=>s.key===t))===null||o===void 0?void 0:o.date)!==null&&i!==void 0?i:!1}format(t,r){var n,o,i;return un.DateFormatter.format(t,(n=r?.locale)!==null&&n!==void 0?n:b.getState().uiLocale,(o=r?.longFormat)!==null&&o!==void 0?o:!1,(i=r?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new zt;(0,cn.customElement)("ft-app-context")(A);var fn=y(R()),mo=function(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},Ht=Symbol("i18nAttributes"),et=Symbol("i18nProperties"),Pe=Symbol("i18nUnsubs");function dn(e){var t;class r extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map}get i18nService(){return this.useCustomMessageContexts?yr:de}i18n(o,i,...a){var s;if(typeof o=="string")return this.i18nService.resolveMessage(o,i,...a);let c=(s=o.args)!==null&&s!==void 0?s:o.argsProvider?o.argsProvider(this):[];return this.i18nService.resolveMessage(o.context,o.key,...c)}onI18nUpdate(o){var i,a;(i=this[Ht])===null||i===void 0||i.forEach((s,c)=>{var u;let l=this.getI18nAttributeValue(c);((u=l?.context)===null||u===void 0?void 0:u.toLowerCase())===o.toLowerCase()&&this.updateI18nAttributeMessage(c,l,s)}),(a=this[et])===null||a===void 0||a.forEach((s,c)=>{s.context.toLowerCase()===o.toLowerCase()&&(this[c]=this.i18n(s))}),setTimeout(()=>this.requestUpdate(),0)}updateI18nAttributeMessage(o,i,a){this[o]={...i,message:this.i18n({context:i.context,key:i.key,...a})}}update(o){var i,a;super.update(o),(i=this[Ht])===null||i===void 0||i.forEach((s,c)=>{let u=this.getI18nAttributeValue(c);u?.context&&u.key&&(o.has(c)||s.argsProvider!=null)&&(o.has(c)&&this.addI18nContext(u.context),this.updateI18nAttributeMessage(c,u,s))}),(a=this[et])===null||a===void 0||a.forEach((s,c)=>{s.argsProvider!=null&&(this[c]=this.i18n(s))})}getI18nAttributeValue(o){return this[o]}connectedCallback(){var o,i,a,s;super.connectedCallback(),new Set([...(i=(o=this[et])===null||o===void 0?void 0:o.values())!==null&&i!==void 0?i:[],...[...(s=(a=this[Ht])===null||a===void 0?void 0:a.keys())!==null&&s!==void 0?s:[]].map(c=>this.getI18nAttributeValue(c))].map(c=>c?.context)).forEach(c=>c&&this.addI18nMessages(c))}addI18nMessages(o,i){o=o.toLowerCase(),this[Pe].has(o)||this[Pe].set(o,this.i18nService.subscribe(o,()=>this.onI18nUpdate(o))),this.i18nService.prepareContext(o,i??{}),this.onI18nUpdate(o)}addI18nContext(o,i){this.addI18nMessages(typeof o=="string"?o:o.name,i)}disconnectedCallback(){super.disconnectedCallback(),this[Pe].forEach(o=>o()),this[Pe].clear()}}return t=Pe,mo([(0,fn.property)({type:Boolean})],r.prototype,"useCustomMessageContexts",void 0),r}var ln=class extends dn(rt.FtLitElement){},tt=class extends dn(rt.FtLitElementRedux){};var Te=function(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},I=class extends tt{constructor(){super(),this.editorMode=!1,this.addStore(b)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":nt.nothing:nt.html`
82
82
  <span class="ft-i18n">
83
83
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
84
84
  </span>
85
- `}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:""})}};I.elementDefinitions={};I.styles=lr;Te([(0,rt.redux)()],I.prototype,"editorMode",void 0);Te([(0,tt.property)()],I.prototype,"context",void 0);Te([(0,tt.property)()],I.prototype,"key",void 0);Te([(0,rt.jsonProperty)([])],I.prototype,"args",void 0);Te([(0,tt.property)()],I.prototype,"defaultMessage",void 0);var nt=class e{static build(t){return new e(t)}static fromGwt(t){return new e(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(r,n)=>{let o=n;return i=>({context:this.name,key:o,args:typeof i=="function"?void 0:i,argsProvider:typeof i=="function"?i:void 0})}}),this.messages=new Proxy({},{get:(r,n)=>(...o)=>de.resolveMessage(this.name,n,...o)})}};(0,fn.customElement)("ft-i18n")(I);var Kt=nt.build("designedReaderTopicContent");var te=function(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},N=class extends Me{constructor(){super(...arguments),this.contentPreprocessor=t=>t,this.onContentAvailable=()=>null}render(){var t,r;return!this.map||!this.error&&!this.content?ce.html`
85
+ `}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:""})}};I.elementDefinitions={};I.styles=pr;Te([(0,it.redux)()],I.prototype,"editorMode",void 0);Te([(0,ot.property)()],I.prototype,"context",void 0);Te([(0,ot.property)()],I.prototype,"key",void 0);Te([(0,it.jsonProperty)([])],I.prototype,"args",void 0);Te([(0,ot.property)()],I.prototype,"defaultMessage",void 0);var at=class e{static build(t){return new e(t)}static fromGwt(t){return new e(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(r,n)=>{let o=n;return i=>({context:this.name,key:o,args:typeof i=="function"?void 0:i,argsProvider:typeof i=="function"?i:void 0})}}),this.messages=new Proxy({},{get:(r,n)=>(...o)=>de.resolveMessage(this.name,n,...o)})}};(0,pn.customElement)("ft-i18n")(I);var qt=at.build("designedReaderTopicContent");var re=function(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},N=class extends Me{constructor(){super(...arguments),this.contentPreprocessor=t=>t,this.onContentAvailable=()=>null}render(){var t,r;return!this.map||!this.error&&!this.content?ce.html`
86
86
  <section class="topic-loading"></section>
87
87
  `:ce.html`
88
88
  <style>
@@ -91,18 +91,18 @@
91
91
  <section class="topic" lang="${(r=this.map)===null||r===void 0?void 0:r.lang}">
92
92
  ${this.renderTopicContent()}
93
93
  </section>
94
- `}update(t){super.update(t),(t.has("map")||t.has("tocNode"))&&this.updateContent()}updated(t){super.updated(t),this.updateComplete.then(()=>{this.topicContainer&&(0,re.highlightHtml)(this.topicContainer,this.searchInDocumentQuery)})}updateContent(){var t;this.error=void 0,this.content=void 0,this.map&&this.tocNode&&((t=this.service)===null||t===void 0||t.getTopicContent(this.tocNode).then(r=>this.contentPreprocessor(r||'<div class="empty-topic"></div>')).then(r=>this.content=r).catch(r=>this.error=r))}contentAvailableCallback(t){var r,n,o,i,a,s,c;super.contentAvailableCallback(t),!this.disableContextInteractions&&(!((r=this.scrollTarget)===null||r===void 0)&&r.section)&&(!((n=this.tocNode)===null||n===void 0)&&n.tocId)&&((o=this.tocNode)===null||o===void 0?void 0:o.tocId)===this.scrollTarget.tocId&&this.content&&(((a=(i=this.shadowRoot)===null||i===void 0?void 0:i.querySelector(`[id="${this.scrollTarget.section}"], [name="${this.scrollTarget.section}"]`))!==null&&a!==void 0?a:this).scrollIntoView({block:"start"}),(s=this.stateManager)===null||s===void 0||s.scrollDone()),this.topicContainer&&(this.onContentAvailable(this.topicContainer,this.shadowRoot),this.moveSvgInShadowRoot()),(t.has("content")&&this.content||t.has("error")&&this.error)&&performance.mark("fluid_topics__reader_topic_displayed__"+((c=this.tocNode)===null||c===void 0?void 0:c.tocId))}moveSvgInShadowRoot(){this.shadowRoot.querySelectorAll(".ft-svg-container").forEach(t=>{if(!t.shadowRoot){var r=t.innerHTML;t.innerHTML="";var n=t.attachShadow({mode:"open"}),o=document.createRange().createContextualFragment(r),i=document.importNode(o,!0);n.append(i)}})}onStoreAvailable(){super.onStoreAvailable(),this.updateContent()}renderTopicContent(){var t,r,n,o;if(this.error)return ce.html`
94
+ `}update(t){super.update(t),(t.has("map")||t.has("tocNode"))&&this.updateContent()}updated(t){super.updated(t),this.updateComplete.then(()=>{this.topicContainer&&(0,ne.highlightHtml)(this.topicContainer,this.searchInDocumentQuery)})}updateContent(){var t;this.error=void 0,this.content=void 0,this.map&&this.tocNode&&((t=this.service)===null||t===void 0||t.getTopicContent(this.tocNode).then(r=>this.contentPreprocessor(r||'<div class="empty-topic"></div>')).then(r=>this.content=r).catch(r=>this.error=r))}contentAvailableCallback(t){var r,n,o,i,a,s,c;super.contentAvailableCallback(t),!this.disableContextInteractions&&(!((r=this.scrollTarget)===null||r===void 0)&&r.section)&&(!((n=this.tocNode)===null||n===void 0)&&n.tocId)&&((o=this.tocNode)===null||o===void 0?void 0:o.tocId)===this.scrollTarget.tocId&&this.content&&(((a=(i=this.shadowRoot)===null||i===void 0?void 0:i.querySelector(`[id="${this.scrollTarget.section}"], [name="${this.scrollTarget.section}"]`))!==null&&a!==void 0?a:this).scrollIntoView({block:"start"}),(s=this.stateManager)===null||s===void 0||s.scrollDone()),this.topicContainer&&(this.onContentAvailable(this.topicContainer,this.shadowRoot),this.moveSvgInShadowRoot()),(t.has("content")&&this.content||t.has("error")&&this.error)&&performance.mark("fluid_topics__reader_topic_displayed__"+((c=this.tocNode)===null||c===void 0?void 0:c.tocId))}moveSvgInShadowRoot(){this.shadowRoot.querySelectorAll(".ft-svg-container").forEach(t=>{if(!t.shadowRoot){var r=t.innerHTML;t.innerHTML="";var n=t.attachShadow({mode:"open"}),o=document.createRange().createContextualFragment(r),i=document.importNode(o,!0);n.append(i)}})}onStoreAvailable(){super.onStoreAvailable(),this.updateContent()}renderTopicContent(){var t,r,n,o;if(this.error)return ce.html`
95
95
  <div class="topic-on-error">
96
96
  <ft-icon>WARNING</ft-icon>
97
97
  <div>
98
- ${this.is404Error()?Kt.messages.topicMissingAdvice():Kt.messages.somethingWentWrong()}
98
+ ${this.is404Error()?qt.messages.topicMissingAdvice():qt.messages.somethingWentWrong()}
99
99
  </div>
100
100
  </div>
101
101
  `;let i=(r=(t=this.map)===null||t===void 0?void 0:t.contentStyles.customCssClasses.join(" "))!==null&&r!==void 0?r:"";return ce.html`
102
102
  <div class="depth-${(n=this.tocNode)===null||n===void 0?void 0:n.depth} content-locale-${(o=this.map)===null||o===void 0?void 0:o.lang} ${i}">
103
- ${this.content!=null?(0,dn.unsafeHTML)(`${this.content}`):ce.nothing}
103
+ ${this.content!=null?(0,hn.unsafeHTML)(`${this.content}`):ce.nothing}
104
104
  </div>
105
- `}is404Error(){return this.error.status===404}};N.styles=[Zt,re.highlightHtmlStyles];te([(0,re.redux)()],N.prototype,"map",void 0);te([(0,re.redux)()],N.prototype,"scrollTarget",void 0);te([(0,ne.state)()],N.prototype,"content",void 0);te([(0,ne.state)()],N.prototype,"error",void 0);te([(0,re.redux)({selector:(e,t)=>t.disableContextInteractions?"":e.searchInDocumentQuery})],N.prototype,"searchInDocumentQuery",void 0);te([(0,ne.property)({attribute:!1})],N.prototype,"contentPreprocessor",void 0);te([(0,ne.property)({attribute:!1})],N.prototype,"onContentAvailable",void 0);te([(0,ne.query)("section.topic")],N.prototype,"topicContainer",void 0);(0,pn.customElement)("ft-reader-topic-content")(N);})();
105
+ `}is404Error(){return this.error.status===404}};N.styles=[er,ne.highlightHtmlStyles];re([(0,ne.redux)()],N.prototype,"map",void 0);re([(0,ne.redux)()],N.prototype,"scrollTarget",void 0);re([(0,oe.state)()],N.prototype,"content",void 0);re([(0,oe.state)()],N.prototype,"error",void 0);re([(0,ne.redux)({selector:(e,t)=>t.disableContextInteractions?"":e.searchInDocumentQuery})],N.prototype,"searchInDocumentQuery",void 0);re([(0,oe.property)({attribute:!1})],N.prototype,"contentPreprocessor",void 0);re([(0,oe.property)({attribute:!1})],N.prototype,"onContentAvailable",void 0);re([(0,oe.query)("section.topic")],N.prototype,"topicContainer",void 0);(0,vn.customElement)("ft-reader-topic-content")(N);})();
106
106
  /*! Bundled license information:
107
107
 
108
108
  @lit/reactive-element/css-tag.js: