@fluid-topics/ft-reader-topic-content 2.2.3 → 2.2.5

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 ai=Object.create;var Tr=Object.defineProperty;var oi=Object.getOwnPropertyDescriptor;var ci=Object.getOwnPropertyNames;var li=Object.getPrototypeOf,ui=Object.prototype.hasOwnProperty;var $e=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var di=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of ci(t))!ui.call(e,s)&&s!==r&&Tr(e,s,{get:()=>t[s],enumerable:!(n=oi(t,s))||n.enumerable});return e};var h=(e,t,r)=>(r=e!=null?ai(li(e)):{},di(t||!e||!e.__esModule?Tr(r,"default",{value:e,enumerable:!0}):r,e));var v=$e((Oa,Rr)=>{Rr.exports=ftGlobals.wcUtils});var Y=$e((Ta,wr)=>{wr.exports=ftGlobals.lit});var V=$e((wa,Dr)=>{Dr.exports=ftGlobals.litDecorators});var zt=$e((Ia,Br)=>{Br.exports=ftGlobals.litUnsafeHTML});var ni=h(v());var oe=h(Y());var Lr=h(Y()),ye=h(v()),Nr={colorError:ye.FtCssVariableFactory.external(ye.designSystemVariables.colorError,"Design system"),fontFamily:ye.FtCssVariableFactory.external(ye.designSystemVariables.contentFont,"Design system")},Mr=Lr.css`
1
+ "use strict";(()=>{var oi=Object.create;var Rr=Object.defineProperty;var ci=Object.getOwnPropertyDescriptor;var li=Object.getOwnPropertyNames;var ui=Object.getPrototypeOf,di=Object.prototype.hasOwnProperty;var ze=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var pi=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of li(t))!di.call(e,s)&&s!==r&&Rr(e,s,{get:()=>t[s],enumerable:!(n=ci(t,s))||n.enumerable});return e};var h=(e,t,r)=>(r=e!=null?oi(ui(e)):{},pi(t||!e||!e.__esModule?Rr(r,"default",{value:e,enumerable:!0}):r,e));var v=ze((Ta,wr)=>{wr.exports=ftGlobals.wcUtils});var Y=ze((Ra,Nr)=>{Nr.exports=ftGlobals.lit});var V=ze((Na,Pr)=>{Pr.exports=ftGlobals.litDecorators});var zt=ze((ka,Hr)=>{Hr.exports=ftGlobals.litUnsafeHTML});var si=h(v());var oe=h(Y());var Mr=h(Y()),ge=h(v()),Lr={colorError:ge.FtCssVariableFactory.external(ge.designSystemVariables.colorError,"Design system"),fontFamily:ge.FtCssVariableFactory.external(ge.designSystemVariables.contentFont,"Design system")},Dr=Mr.css`
2
2
  .topic {
3
- font-family: ${Nr.fontFamily};
3
+ font-family: ${Lr.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: ${Nr.colorError}
13
+ color: ${Lr.colorError}
14
14
  }
15
15
 
16
16
  .topic-loading {
@@ -25,7 +25,7 @@
25
25
  ft-skeleton {
26
26
  height: 100px;
27
27
  }
28
- `;var Te=h(V()),Ur=h(v());var qe=h(v()),kr=h(V());var Pr;(function(e){e.clusteringHelperCreated="clustering-helper-created",e.mapAttachmentsUpdate="map-attachments-update",e.visibleTopicChange="visible-topic-change",e.requestedTopicNotFound="requested-topic-not-found"})(Pr||(Pr={}));var Ir;(function(e){e.FEEDBACK="FEEDBACK",e.RATING="RATING",e.PRINT="PRINT",e.BOOKMARK="BOOKMARK",e.COLLECTIONS="COLLECTIONS",e.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Ir||(Ir={}));var pi=function(e,t,r,n){var s=arguments.length,i=s<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 o=e.length-1;o>=0;o--)(a=e[o])&&(i=(s<3?a(i):s>3?a(t,r,i):a(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},Kt=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Vt=Symbol("registerInterval"),fi=(0,qe.applyMixinOnce)(Symbol("toFtReaderComponent"),function(e){var t;class r extends e{constructor(){super(...arguments),this[t]=0}setReaderStateManager(s){this.clearStateManager(),this.stateManager=s,this.addStore(s.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var s;return(s=this.stateManager)===null||s===void 0?void 0:s.service}connectedCallback(){super.connectedCallback(),this[Vt]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Vt]):this.dispatchEvent(new Kt)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=Vt,pi([(0,kr.state)()],r.prototype,"stateManager",void 0),r}),ze=class extends fi(qe.FtLitElementRedux){};var Fe=function(e,t,r,n){var s=arguments.length,i=s<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 o=e.length-1;o>=0;o--)(a=e[o])&&(i=(s<3?a(i):s>3?a(t,r,i):a(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},$t=class extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},Gt=Symbol("registerInterval"),hi=(0,Ur.applyMixinOnce)(Symbol("toFtReaderTopicComponent"),function(e){var t;class r extends e{constructor(){super(...arguments),this.disableContextInteractions=!1,this.headingLevelsShift=0,this[t]=0}connectedCallback(){super.connectedCallback(),this[Gt]=window.setInterval(()=>this.tryToRegisterToTopicContext(),50)}tryToRegisterToTopicContext(){this.tocNode!=null?window.clearInterval(this[Gt]):this.dispatchEvent(new $t)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return t=Gt,Fe([(0,Te.state)()],r.prototype,"tocNode",void 0),Fe([(0,Te.state)()],r.prototype,"disableContextInteractions",void 0),Fe([(0,Te.state)()],r.prototype,"headingLevelsShift",void 0),Fe([(0,Te.state)()],r.prototype,"headingStartLevel",void 0),r}),We=class extends hi(ze){};var ti=h(zt()),R=h(v()),Q=h(V());var $r=h(v());var Re=h(Y()),se=h(V()),Vr=h(v()),Kr=h(zt());var Ye;(function(e){e.ADD_TO_PBK="&#xe800;",e.ALERT="&#xe801;",e.ADD_ALERT="&#xe802;",e.BACK_TO_SEARCH="&#xe803;",e.ADD_BOOKMARK="&#xe804;",e.BOOKMARK="&#xe805;",e.BOOKS="&#xe806;",e.MENU="&#xe807;",e.DOWNLOAD="&#xe808;",e.EDIT="&#xe809;",e.FEEDBACK="&#xe80a;",e.HOME="&#xe80b;",e.MODIFY_PBK="&#xe80c;",e.SCHEDULED="&#xe80d;",e.SEARCH="&#xe80e;",e.EXPORT="&#xe80f;",e.TOC="&#xe810;",e.WRITE_UGC="&#xe811;",e.TRASH="&#xe812;",e.USER="&#xe813;",e.EXTLINK="&#xe814;",e.CALENDAR="&#xe815;",e.OFFLINE="&#xe816;",e.BOOK="&#xe817;",e.DOWNLOAD_PLAIN="&#xe818;",e.CHECK="&#xe819;",e.STAR_PLAIN="&#xe900;",e.TOPICS="&#xe901;",e.DISC="&#xe902;",e.CIRCLE="&#xe903;",e.SHARED="&#xe904;",e.SORT_UNSORTED="&#xe905;",e.SORT_UP="&#xe906;",e.SORT_DOWN="&#xe907;",e.WORKING="&#xe908;",e.CLOSE="&#xe909;",e.ZOOM_OUT="&#xe90a;",e.ZOOM_IN="&#xe90b;",e.ZOOM_REALSIZE="&#xe90c;",e.ZOOM_FULLSCREEN="&#xe90d;",e.ADMIN_RESTRICTED="&#xe90e;",e.ADMIN="&#xe90f;",e.ADMIN_KHUB="&#xe910;",e.ADMIN_THEME="&#xe911;",e.ADMIN_USERS="&#xe912;",e.WARNING="&#xe913;",e.CONTEXT="&#xe914;",e.SEARCH_HOME="&#xe915;",e.STEPS="&#xe916;",e.ICON_EXPAND="&#xe917;",e.ICON_COLLAPSE="&#xe918;",e.INFO="&#xe919;",e.MINUS_PLAIN="&#xe91a;",e.PLUS_PLAIN="&#xe91b;",e.FACET_HAS_DESCENDANT="&#xe91c;",e.TRIANGLE_BOTTOM="&#xe91d;",e.TRIANGLE_LEFT="&#xe91e;",e.TRIANGLE_RIGHT="&#xe91f;",e.TRIANGLE_TOP="&#xe920;",e.THIN_ARROW="&#xe921;",e.SIGN_IN="&#xe922;",e.LOGOUT="&#xe923;",e.TRANSLATE="&#xe924;",e.CLOSE_PLAIN="&#xe925;",e.CHECK_PLAIN="&#xe926;",e.ARTICLE="&#xe927;",e.COLUMNS="&#xe928;",e.ANALYTICS="&#xe929;",e.COLLECTIONS="&#xe92a;",e.ARROW_DOWN="&#xe92b;",e.ARROW_LEFT="&#xe92c;",e.ARROW_RIGHT="&#xe92d;",e.ARROW_UP="&#xe92e;",e.SEARCH_IN_PUBLICATION="&#xe92f;",e.COPY_TO_CLIPBOARD="&#xe930;",e.SHARED_PBK="&#xe931;",e.ATTACHMENTS="&#xe932;",e.STRIPE_ARROW_LEFT="&#xe933;",e.STRIPE_ARROW_RIGHT="&#xe934;",e.FILTERS="&#xe935;",e.DOT="&#xe936;",e.MINUS="&#xe937;",e.PLUS="&#xe938;",e.MAILS_AND_NOTIFICATIONS="&#xe939;",e.SAVE="&#xe93a;",e.LOCKER="&#xe93b;",e.ADMIN_INTEGRATION="&#xe93c;",e.SYNC="&#xe93d;",e.TAG="&#xe93e;",e.BOOK_PLAIN="&#xe93f;",e.UPLOAD="&#xe940;",e.ONLINE="&#xe941;",e.TAG_PLAIN="&#xe942;",e.ACCOUNT_SETTINGS="&#xe943;",e.PRINT="&#xe944;",e.DEFAULT_ROLES="&#xe945;",e.SHORTCUT_MENU="&#xe946;",e.RELATIVES_PLAIN="&#xe947;",e.RELATIVES="&#xe948;",e.PAUSE="&#xe949;",e.PLAY="&#xe94a;",e.ADMIN_PORTAL="&#xe94b;",e.STAR="&#xe94c;",e.THUMBS_DOWN="&#xe94d;",e.THUMBS_DOWN_PLAIN="&#xe94e;",e.THUMBS_UP="&#xe94f;",e.THUMBS_UP_PLAIN="&#xe950;",e.FEEDBACK_PLAIN="&#xe951;",e.RATE_PLAIN="&#xe952;",e.RATE="&#xe953;",e.OFFLINE_SETTINGS="&#xe954;",e.MY_COLLECTIONS="&#xe955;",e.THIN_ARROW_LEFT="&#xe956;",e.THIN_ARROW_RIGHT="&#xe957;",e.RESET="&#xe958;",e.MY_LIBRARY="&#xe959;",e.UNSTRUCTURED_DOC="&#xe95a;",e.CONTEXTUAL="&#xe95b;",e.THIN_ARROW_UP="&#xe95c;",e.ARROW_RIGHT_TO_LINE="&#xe95d;",e.DESKTOP="&#xe95e;",e.TABLET_LANDSCAPE="&#xe95f;",e.TABLET_PORTRAIT="&#xe960;",e.MOBILE_LANDSCAPE="&#xe961;",e.MOBILE_PORTRAIT="&#xe962;",e.DIAGRAM_SUNBURST="&#xe963;",e.DIAGRAM_SANKEY="&#xe964;",e.COMMENT_QUESTION="&#xe965;",e.COMMENT_QUESTION_PLAIN="&#xe966;",e.MESSAGE_BOT="&#xe967;",e.CHART_SIMPLE="&#xe968;",e.BARS_PROGRESS="&#xe969;",e.BOOK_OPEN_GEAR="&#xe96a;",e.BOOK_OPEN_GEAR_SLASH="&#xe96b;",e.LINE_CHART="&#xe96c;",e.STACKED_CHART="&#xe96d;",e.CHART_BAR_STACKED="&#xe96e;",e.CHART_BAR_GROUPED="&#xe96f;",e.EYE_SLASH="&#xe970;",e.X_MARK="&#xe971;",e.EXPAND_WIDE="&#xe972;",e.PIP="&#xe973;",e.PIP_WIDE="&#xe974;",e.LIFE_RING="&#xe975;",e.GLOBE="&#xe976;",e.PIGGY_BANK="&#xe977;",e.EXTLINK_LIGHT="&#xe978;",e.CLONE="&#xe979;",e.CLONE_LINK_SIMPLE="&#xe97a;",e.CHART_BAR_NORMALIZED="&#xe97b;",e.CONSUMER="&#xe97c;",e.OCTAGON_XMARK="&#xe97d;",e.HOURGLASS_HALF="&#xe97e;",e.CLOCK="&#xe97f;",e.CLOCK_THREE="&#xe97f;",e.CALENDAR_DAY="&#xe980;",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",e.WAND_MAGIC_SPARKLES="&#xe982;",e.PAPER_PLANE="&#xe983;",e.CIRCLE_STOP="&#xe984;",e.ARROW_ROTATE_RIGHT="&#xe985;",e.ARROWS_ROTATE="&#xe986;",e.ALIGN_RIGHT="&#xe987;",e.FORMAT_CLEAR="&#xe988;",e.ALIGN_CENTER="&#xe989;",e.ALIGN_LEFT="&#xe98a;",e.PALETTE="&#xe98b;",e.BOLD="&#xe98c;",e.ITALIC="&#xe98d;",e.UNDERLINE="&#xe98e;",e.STRIKETHROUGH="&#xe98f;",e.LINK_SIMPLE_SLASH="&#xe990;",e.LINK_SIMPLE="&#xe991;",e.ROUTE="&#xe992;",e.CIRCLE_USER_SLASH="&#xe993;",e.CIRCLE_USER_CHECK="&#xe994;",e.LIST_MAGNIFYING_GLASS="&#xe995;",e.MEDAL="&#xe996;",e.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",e.ARROW_TURN_DOWN_RIGHT="&#xe998;",e.FLASK="&#xe999;",e.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",e.HOURGLASS_END="&#xe99b;",e.CIRCLE_QUESTION="&#xe99c;",e.GRIP_LINES_SOLID="&#xe99d;",e.TRANSLATE_SPARKLE_SOLID="&#xe99e;",e.CODE="&#xe99f;",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",e.PAPER_PLANE_SLASH="&#xe9a1;",e.COMPRESS="&#xe9a2;",e.EXPAND="&#xe9a3;",e.ARROW_ROTATE_LEFT="&#xe9a4;",e.MOBILE_SMALL="&#xe9a5;",e.SPARKLES="&#xe9a6;",e.HAND_SOLID="&#xe9a7;",e.CLOCK_SOLID="&#xe9a8;",e.CONTEXT_MENU_CURSOR="&#xe9a9;",e.LANGUAGE_SLASH="&#xe9aa;",e.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",e.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",e.BOOKMARK_SLASH="&#xe9ad;",e.CIRCLE_PAUSE="&#xe9ae;",e.CIRCLE_PLAY="&#xe9af;",e.CIRCLE_STOP_PLAIN="&#xe9b0;",e.CIRCLE_ARROW_DOWN="&#xe9b1;",e.SHARE_NODES="&#xe9b2;",e.BELL="&#xe9b3;",e.BELL_SLASH="&#xe9b4;",e.FILE="&#xe9b5;",e.HAND="&#xe9b6;",e.SQUARE_INFO_SOLID="&#xe9b7;",e.FILE_CODE="&#xe9b8;",e.BOX_CODE="&#xe9b9;",e.TOPICS_SOLID="&#xe9ba;",e.PHOTO_FILM="&#xe9bb;",e.HYPHEN_SOLID="&#xe9bc;",e.CROSSHAIRS="&#xe9bd;",e.PERSON_CHALKBOARD="&#xe9be;",e.CIRCLE_ARROW_DOWN_SLASH="&#xe9bf;",e.BOOK_OPEN_COVER="&#xe9c0;",e.LIGHTBULB="&#xe9c1;",e.MESSAGE_BOT_AGENTIC_SOLID="&#xe9c2;",e.CHART_LINE_USER="&#xe9c3;",e.SERVER_CIRCLE_ARROW_DOWN="&#xe9c4;",e.EYE="&#xf06e;",e.SHARE="&#xe80f1;"})(Ye||(Ye={}));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 ka=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 Ua={[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 Hr=h(Y()),$=h(v()),Z={size:$.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:$.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",$.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:$.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",$.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:$.FtCssVariableFactory.extend("--ft-icon-material-font-family","",$.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:$.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},jr=[Hr.css`
28
+ `;var Ne=h(V()),Br=h(v());var We=h(v()),Ur=h(V());var Ir;(function(e){e.clusteringHelperCreated="clustering-helper-created",e.mapAttachmentsUpdate="map-attachments-update",e.visibleTopicChange="visible-topic-change",e.requestedTopicNotFound="requested-topic-not-found"})(Ir||(Ir={}));var kr;(function(e){e.FEEDBACK="FEEDBACK",e.RATING="RATING",e.PRINT="PRINT",e.BOOKMARK="BOOKMARK",e.COLLECTIONS="COLLECTIONS",e.PERSONAL_BOOKS="PERSONAL_BOOKS"})(kr||(kr={}));var fi=function(e,t,r,n){var s=arguments.length,i=s<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 o=e.length-1;o>=0;o--)(a=e[o])&&(i=(s<3?a(i):s>3?a(t,r,i):a(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},Gt=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Kt=Symbol("registerInterval"),hi=(0,We.applyMixinOnce)(Symbol("toFtReaderComponent"),function(e){var t;class r extends e{constructor(){super(...arguments),this[t]=0}setReaderStateManager(s){this.clearStateManager(),this.stateManager=s,this.addStore(s.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var s;return(s=this.stateManager)===null||s===void 0?void 0:s.service}connectedCallback(){super.connectedCallback(),this[Kt]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Kt]):this.dispatchEvent(new Gt)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=Kt,fi([(0,Ur.state)()],r.prototype,"stateManager",void 0),r}),qe=class extends hi(We.FtLitElementRedux){};var Ye=function(e,t,r,n){var s=arguments.length,i=s<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 o=e.length-1;o>=0;o--)(a=e[o])&&(i=(s<3?a(i):s>3?a(t,r,i):a(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},$t=class extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},Ft=Symbol("registerInterval"),mi=(0,Br.applyMixinOnce)(Symbol("toFtReaderTopicComponent"),function(e){var t;class r extends e{constructor(){super(...arguments),this.disableContextInteractions=!1,this.headingLevelsShift=0,this[t]=0}connectedCallback(){super.connectedCallback(),this[Ft]=window.setInterval(()=>this.tryToRegisterToTopicContext(),50)}tryToRegisterToTopicContext(){this.tocNode!=null?window.clearInterval(this[Ft]):this.dispatchEvent(new $t)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return t=Ft,Ye([(0,Ne.state)()],r.prototype,"tocNode",void 0),Ye([(0,Ne.state)()],r.prototype,"disableContextInteractions",void 0),Ye([(0,Ne.state)()],r.prototype,"headingLevelsShift",void 0),Ye([(0,Ne.state)()],r.prototype,"headingStartLevel",void 0),r}),Xe=class extends mi(qe){};var ri=h(zt()),R=h(v()),Q=h(V());var $r=h(v());var Le=h(Y()),se=h(V()),Kr=h(v()),Gr=h(zt());var Je;(function(e){e.ADD_TO_PBK="&#xe800;",e.ALERT="&#xe801;",e.ADD_ALERT="&#xe802;",e.BACK_TO_SEARCH="&#xe803;",e.ADD_BOOKMARK="&#xe804;",e.BOOKMARK="&#xe805;",e.BOOKS="&#xe806;",e.MENU="&#xe807;",e.DOWNLOAD="&#xe808;",e.EDIT="&#xe809;",e.FEEDBACK="&#xe80a;",e.HOME="&#xe80b;",e.MODIFY_PBK="&#xe80c;",e.SCHEDULED="&#xe80d;",e.SEARCH="&#xe80e;",e.EXPORT="&#xe80f;",e.TOC="&#xe810;",e.WRITE_UGC="&#xe811;",e.TRASH="&#xe812;",e.USER="&#xe813;",e.EXTLINK="&#xe814;",e.CALENDAR="&#xe815;",e.OFFLINE="&#xe816;",e.BOOK="&#xe817;",e.DOWNLOAD_PLAIN="&#xe818;",e.CHECK="&#xe819;",e.STAR_PLAIN="&#xe900;",e.TOPICS="&#xe901;",e.DISC="&#xe902;",e.CIRCLE="&#xe903;",e.SHARED="&#xe904;",e.SORT_UNSORTED="&#xe905;",e.SORT_UP="&#xe906;",e.SORT_DOWN="&#xe907;",e.WORKING="&#xe908;",e.CLOSE="&#xe909;",e.ZOOM_OUT="&#xe90a;",e.ZOOM_IN="&#xe90b;",e.ZOOM_REALSIZE="&#xe90c;",e.ZOOM_FULLSCREEN="&#xe90d;",e.ADMIN_RESTRICTED="&#xe90e;",e.ADMIN="&#xe90f;",e.ADMIN_KHUB="&#xe910;",e.ADMIN_THEME="&#xe911;",e.ADMIN_USERS="&#xe912;",e.WARNING="&#xe913;",e.CONTEXT="&#xe914;",e.SEARCH_HOME="&#xe915;",e.STEPS="&#xe916;",e.ICON_EXPAND="&#xe917;",e.ICON_COLLAPSE="&#xe918;",e.INFO="&#xe919;",e.MINUS_PLAIN="&#xe91a;",e.PLUS_PLAIN="&#xe91b;",e.FACET_HAS_DESCENDANT="&#xe91c;",e.TRIANGLE_BOTTOM="&#xe91d;",e.TRIANGLE_LEFT="&#xe91e;",e.TRIANGLE_RIGHT="&#xe91f;",e.TRIANGLE_TOP="&#xe920;",e.THIN_ARROW="&#xe921;",e.SIGN_IN="&#xe922;",e.LOGOUT="&#xe923;",e.TRANSLATE="&#xe924;",e.CLOSE_PLAIN="&#xe925;",e.CHECK_PLAIN="&#xe926;",e.ARTICLE="&#xe927;",e.COLUMNS="&#xe928;",e.ANALYTICS="&#xe929;",e.COLLECTIONS="&#xe92a;",e.ARROW_DOWN="&#xe92b;",e.ARROW_LEFT="&#xe92c;",e.ARROW_RIGHT="&#xe92d;",e.ARROW_UP="&#xe92e;",e.SEARCH_IN_PUBLICATION="&#xe92f;",e.COPY_TO_CLIPBOARD="&#xe930;",e.SHARED_PBK="&#xe931;",e.ATTACHMENTS="&#xe932;",e.STRIPE_ARROW_LEFT="&#xe933;",e.STRIPE_ARROW_RIGHT="&#xe934;",e.FILTERS="&#xe935;",e.DOT="&#xe936;",e.MINUS="&#xe937;",e.PLUS="&#xe938;",e.MAILS_AND_NOTIFICATIONS="&#xe939;",e.SAVE="&#xe93a;",e.LOCKER="&#xe93b;",e.ADMIN_INTEGRATION="&#xe93c;",e.SYNC="&#xe93d;",e.TAG="&#xe93e;",e.BOOK_PLAIN="&#xe93f;",e.UPLOAD="&#xe940;",e.ONLINE="&#xe941;",e.TAG_PLAIN="&#xe942;",e.ACCOUNT_SETTINGS="&#xe943;",e.PRINT="&#xe944;",e.DEFAULT_ROLES="&#xe945;",e.SHORTCUT_MENU="&#xe946;",e.RELATIVES_PLAIN="&#xe947;",e.RELATIVES="&#xe948;",e.PAUSE="&#xe949;",e.PLAY="&#xe94a;",e.ADMIN_PORTAL="&#xe94b;",e.STAR="&#xe94c;",e.THUMBS_DOWN="&#xe94d;",e.THUMBS_DOWN_PLAIN="&#xe94e;",e.THUMBS_UP="&#xe94f;",e.THUMBS_UP_PLAIN="&#xe950;",e.FEEDBACK_PLAIN="&#xe951;",e.RATE_PLAIN="&#xe952;",e.RATE="&#xe953;",e.OFFLINE_SETTINGS="&#xe954;",e.MY_COLLECTIONS="&#xe955;",e.THIN_ARROW_LEFT="&#xe956;",e.THIN_ARROW_RIGHT="&#xe957;",e.RESET="&#xe958;",e.MY_LIBRARY="&#xe959;",e.UNSTRUCTURED_DOC="&#xe95a;",e.CONTEXTUAL="&#xe95b;",e.THIN_ARROW_UP="&#xe95c;",e.ARROW_RIGHT_TO_LINE="&#xe95d;",e.DESKTOP="&#xe95e;",e.TABLET_LANDSCAPE="&#xe95f;",e.TABLET_PORTRAIT="&#xe960;",e.MOBILE_LANDSCAPE="&#xe961;",e.MOBILE_PORTRAIT="&#xe962;",e.DIAGRAM_SUNBURST="&#xe963;",e.DIAGRAM_SANKEY="&#xe964;",e.COMMENT_QUESTION="&#xe965;",e.COMMENT_QUESTION_PLAIN="&#xe966;",e.MESSAGE_BOT="&#xe967;",e.CHART_SIMPLE="&#xe968;",e.BARS_PROGRESS="&#xe969;",e.BOOK_OPEN_GEAR="&#xe96a;",e.BOOK_OPEN_GEAR_SLASH="&#xe96b;",e.LINE_CHART="&#xe96c;",e.STACKED_CHART="&#xe96d;",e.CHART_BAR_STACKED="&#xe96e;",e.CHART_BAR_GROUPED="&#xe96f;",e.EYE_SLASH="&#xe970;",e.X_MARK="&#xe971;",e.EXPAND_WIDE="&#xe972;",e.PIP="&#xe973;",e.PIP_WIDE="&#xe974;",e.LIFE_RING="&#xe975;",e.GLOBE="&#xe976;",e.PIGGY_BANK="&#xe977;",e.EXTLINK_LIGHT="&#xe978;",e.CLONE="&#xe979;",e.CLONE_LINK_SIMPLE="&#xe97a;",e.CHART_BAR_NORMALIZED="&#xe97b;",e.CONSUMER="&#xe97c;",e.OCTAGON_XMARK="&#xe97d;",e.HOURGLASS_HALF="&#xe97e;",e.CLOCK="&#xe97f;",e.CLOCK_THREE="&#xe97f;",e.CALENDAR_DAY="&#xe980;",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",e.WAND_MAGIC_SPARKLES="&#xe982;",e.PAPER_PLANE="&#xe983;",e.CIRCLE_STOP="&#xe984;",e.ARROW_ROTATE_RIGHT="&#xe985;",e.ARROWS_ROTATE="&#xe986;",e.ALIGN_RIGHT="&#xe987;",e.FORMAT_CLEAR="&#xe988;",e.ALIGN_CENTER="&#xe989;",e.ALIGN_LEFT="&#xe98a;",e.PALETTE="&#xe98b;",e.BOLD="&#xe98c;",e.ITALIC="&#xe98d;",e.UNDERLINE="&#xe98e;",e.STRIKETHROUGH="&#xe98f;",e.LINK_SIMPLE_SLASH="&#xe990;",e.LINK_SIMPLE="&#xe991;",e.ROUTE="&#xe992;",e.CIRCLE_USER_SLASH="&#xe993;",e.CIRCLE_USER_CHECK="&#xe994;",e.LIST_MAGNIFYING_GLASS="&#xe995;",e.MEDAL="&#xe996;",e.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",e.ARROW_TURN_DOWN_RIGHT="&#xe998;",e.FLASK="&#xe999;",e.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",e.HOURGLASS_END="&#xe99b;",e.CIRCLE_QUESTION="&#xe99c;",e.GRIP_LINES_SOLID="&#xe99d;",e.TRANSLATE_SPARKLE_SOLID="&#xe99e;",e.CODE="&#xe99f;",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",e.PAPER_PLANE_SLASH="&#xe9a1;",e.COMPRESS="&#xe9a2;",e.EXPAND="&#xe9a3;",e.ARROW_ROTATE_LEFT="&#xe9a4;",e.MOBILE_SMALL="&#xe9a5;",e.SPARKLES="&#xe9a6;",e.HAND_SOLID="&#xe9a7;",e.CLOCK_SOLID="&#xe9a8;",e.CONTEXT_MENU_CURSOR="&#xe9a9;",e.LANGUAGE_SLASH="&#xe9aa;",e.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",e.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",e.BOOKMARK_SLASH="&#xe9ad;",e.CIRCLE_PAUSE="&#xe9ae;",e.CIRCLE_PLAY="&#xe9af;",e.CIRCLE_STOP_PLAIN="&#xe9b0;",e.CIRCLE_ARROW_DOWN="&#xe9b1;",e.SHARE_NODES="&#xe9b2;",e.BELL="&#xe9b3;",e.BELL_SLASH="&#xe9b4;",e.FILE="&#xe9b5;",e.HAND="&#xe9b6;",e.SQUARE_INFO_SOLID="&#xe9b7;",e.FILE_CODE="&#xe9b8;",e.BOX_CODE="&#xe9b9;",e.TOPICS_SOLID="&#xe9ba;",e.PHOTO_FILM="&#xe9bb;",e.HYPHEN_SOLID="&#xe9bc;",e.CROSSHAIRS="&#xe9bd;",e.PERSON_CHALKBOARD="&#xe9be;",e.CIRCLE_ARROW_DOWN_SLASH="&#xe9bf;",e.BOOK_OPEN_COVER="&#xe9c0;",e.LIGHTBULB="&#xe9c1;",e.MESSAGE_BOT_AGENTIC_SOLID="&#xe9c2;",e.CHART_LINE_USER="&#xe9c3;",e.SERVER_CIRCLE_ARROW_DOWN="&#xe9c4;",e.EYE="&#xf06e;",e.SHARE="&#xe80f1;"})(Je||(Je={}));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 Ua=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 Ba={[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 jr=h(Y()),$=h(v()),Z={size:$.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:$.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",$.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:$.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",$.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:$.FtCssVariableFactory.extend("--ft-icon-material-font-family","",$.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:$.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Vr=[jr.css`
29
29
  :host, i.ft-icon {
30
30
  display: inline-flex;
31
31
  align-items: center;
@@ -73,20 +73,20 @@
73
73
  .ft-icon--material {
74
74
  font-family: ${Z.materialFontFamily}, "Material Icons", sans-serif;
75
75
  }
76
- `,$.noTextSelect];var ne;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(ne||(ne={}));var we=function(e,t,r,n){var s=arguments.length,i=s<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 o=e.length-1;o>=0;o--)(a=e[o])&&(i=(s<3?a(i):s>3?a(t,r,i):a(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},z=class extends Vr.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Re.nothing}render(){let t=this.variant&&Object.values(ne).includes(this.variant)?this.variant:ne.fluid_topics,r=t!==ne.material||!!this.value;return Re.html`
76
+ `,$.noTextSelect];var ne;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(ne||(ne={}));var Me=function(e,t,r,n){var s=arguments.length,i=s<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 o=e.length-1;o>=0;o--)(a=e[o])&&(i=(s<3?a(i):s>3?a(t,r,i):a(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},z=class extends Kr.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Le.nothing}render(){let t=this.variant&&Object.values(ne).includes(this.variant)?this.variant:ne.fluid_topics,r=t!==ne.material||!!this.value;return Le.html`
77
77
  <i class="ft-icon ft-icon--${t} ft-no-text-select" part="icon icon-${t}">
78
- ${(0,Kr.unsafeHTML)(this.resolvedIcon)}
78
+ ${(0,Gr.unsafeHTML)(this.resolvedIcon)}
79
79
  <slot ?hidden=${r}></slot>
80
80
  </i>
81
- `}getTextContent(){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.getTextContent();switch(this.variant){case ne.file_format:this.resolvedIcon=(t=d[n.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:n;break;case ne.material:this.resolvedIcon=this.value||Re.nothing;break;default:this.resolvedIcon=(r=Ye[n.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:n;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};z.elementDefinitions={};z.styles=jr;we([(0,se.property)()],z.prototype,"variant",void 0);we([(0,se.property)()],z.prototype,"value",void 0);we([(0,se.property)({reflect:!0,attribute:"aria-hidden"})],z.prototype,"ariaHidden",void 0);we([(0,se.state)()],z.prototype,"resolvedIcon",void 0);we([(0,se.query)("slot")],z.prototype,"slottedContent",void 0);var Gr={"ft-icon":z};(0,$r.customElements)(Gr);var fr=h(V());var zr=h(V(),1);var qt=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)};function qr(e,t){return(0,zr.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return Ne(e);try{return JSON.parse(r)}catch{return Ne(e)}},toAttribute:r=>JSON.stringify(r)},hasChanged:Le,...t??{}})}function mi(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let r,n;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Ee(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(!Ee(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let s=a=>Object.keys(a).filter(o=>a[o]!=null),i=s(e);if(r=i.length,r!==s(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return!1;for(n=r;n--!==0;){let a=i[n];if(!Ee(e[a],t[a]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function Ee(e,t){try{return mi(e,t)}catch{return!1}}function Le(e,t){return!Ee(e,t)}function Ne(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function Xe(e,t){let r=n=>n[e]===!0;return n=>{if(r(n))return n;let s=t(n);return s[e]=!0,s}}var Fr=h(V(),1);var Ft=e=>{let t=e??{};return(r,n)=>{var s;let i={hasChanged:Le,attribute:!1,...t};(0,Fr.property)(i)(r,n);let a=r.constructor;a.reduxProperties=new Map(a.reduxProperties),a.reduxProperties.set(n,{selector:(s=t.selector)!==null&&s!==void 0?s:(o=>o[n]),store:t.store})}};var Je=class{constructor(){this.queue=[]}add(t,r=!1){r&&this.clear(t.type),this.queue.push(t)}consume(t){let r=this.queue.find(n=>n.type===t);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(t){typeof t=="string"?this.queue=this.queue.filter(r=>r.type!==t):this.queue=this.queue.filter(r=>!t.test(r.type))}};var ce=h(V(),1);var Qe=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 s=(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(o){s(o);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 Yr=h(Y(),1);var Ze=globalThis,yi=Ze.ShadowRoot&&(Ze.ShadyCSS===void 0||Ze.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var Wr=(e,t)=>{if(yi)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let n=document.createElement("style"),s=Ze.litNonce;s!==void 0&&n.setAttribute("nonce",s),n.textContent=r.cssText,e.appendChild(n)}};var et=class extends Yr.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let t=this.scopedRegistryConstructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,t.defineScopedElements(t.elementDefinitions));let r={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return Wr(n,t.elementStyles),n}static canDefineScopedElement(t){return!!this.registry&&!this.registry.get(t)}static defineScopedElements(t){Object.entries(t).forEach(([r,n])=>this.defineScopedElement(r,n))}static defineScopedElement(t,r){qt(t)(r),this.canDefineScopedElement(t)&&this.registry.define(t,r)}canDefineScopedElement(t){return this.scopedRegistryConstructor.canDefineScopedElement(t)}defineScopedElements(t){this.scopedRegistryConstructor.defineScopedElements(t)}defineScopedElement(t,r){this.scopedRegistryConstructor.defineScopedElement(t,r)}};function Xr(e,t,...r){var n;let s=e.querySelector(t);for(let i of r)s=(n=s?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return s}var Ae=function(e,t,r,n){var s=arguments.length,i=s<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 o=e.length-1;o>=0;o--)(a=e[o])&&(i=(s<3?a(i):s>3?a(t,r,i):a(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},en,Jr=Symbol("constructorPrototype"),Qr=Symbol("constructorName"),tn=Symbol("exportpartsDebouncer"),Zr=Symbol("dynamicDependenciesLoaded"),ge=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};ge.eventName="exportparts-updated";var X=class extends et{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[en]=new Qe(5),this.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[tn].run(()=>{var s,i;!((s=this.exportpartsPrefix)===null||s===void 0)&&s.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Qr]=this.constructor.name,this[Jr]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Qr]&&Object.setPrototypeOf(this,this[Jr])}connectedCallback(){var t;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let r=this.constructor;r[Zr]||(r[Zr]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(ge.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(ge.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate(),t.has("exportparts")&&this.dispatchEvent(new ge)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:s}=this.elementToFocus;if(n!=null){let i=[...s??[],n];r=Xr(this.shadowRoot,...i)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,n,s;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((s=this.customStylesheet)!==null&&s!==void 0?s:"")}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)}}setExportpartsAttribute(t){var r,n,s,i,a,o;let c=f=>f!=null&&f.trim().length>0,l=t.filter(c).map(f=>f.trim());if(l.length===0){this.exportparts=void 0;return}let u=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 g=(i=(s=f.getAttribute("part"))===null||s===void 0?void 0:s.split(" "))!==null&&i!==void 0?i:[],b=(o=(a=f.getAttribute("exportparts"))===null||a===void 0?void 0:a.split(",").map(E=>E.split(":")[1]))!==null&&o!==void 0?o:[],N=[...g,...b].filter(c).map(E=>E.trim());for(let E of N)u.add(E)}if(u.size===0){this.exportparts=void 0;return}let p=[...u.values()].flatMap(f=>l.map(g=>`${f}:${g}--${f}`));this.exportparts=[...this.part,...p].join(", ")}};en=tn;Ae([(0,ce.property)()],X.prototype,"exportpartsPrefix",void 0);Ae([qr([])],X.prototype,"exportpartsPrefixes",void 0);Ae([(0,ce.property)({reflect:!0})],X.prototype,"exportparts",void 0);Ae([(0,ce.property)()],X.prototype,"customStylesheet",void 0);Ae([(0,ce.property)()],X.prototype,"elementToFocus",void 0);Ae([(0,ce.state)()],X.prototype,"useAdoptedStyleSheets",void 0);function tt(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Me=Symbol("internalReduxEventsUnsubscribers"),ie=Symbol("internalStoresUnsubscribers"),le=Symbol("internalStores"),Ei=Xe(Symbol("withRedux"),function(e){var t,r,n;class s extends e{constructor(){super(...arguments),this[t]=new Map,this[r]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(a){super.willUpdate(a),[...this.reduxConstructor.reduxReactiveProperties].some(o=>a.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[le].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[le].values()][0]}getStore(a){return a==null?this.getUnnamedStore():this[le].get(a)}addStore(a,o){var c;o=(c=o??a.name)!==null&&c!==void 0?c:"default-store",this.unsubscribeFromStore(o),this[le].set(o,a),this.subscribeToStore(o,a),this.updateFromStores()}removeStore(a){let o=typeof a=="string"?a:a.name;this.unsubscribeFromStore(o),this[le].delete(o)}setupStores(){this.unsubscribeFromStores(),this[le].forEach((a,o)=>this.subscribeToStore(o,a)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((a,o)=>{let c=this.constructor.getPropertyOptions(o);if(!c?.attribute||!this.hasAttribute(typeof c?.attribute=="string"?c.attribute:o)){let l=this.getStore(a.store);l&&(a.store?this[ie].has(a.store):this[ie].size>0)&&(this[o]=a.selector(l.getState(),this))}})}subscribeToStore(a,o){var c;this[ie].set(a,o.subscribe(()=>this.updateFromStores())),this[Me].set(a,[]),tt(o)&&o.eventBus&&((c=this.reduxConstructor.reduxEventListeners)===null||c===void 0||c.forEach((l,u)=>{if(typeof this[u]=="function"&&(!l.store||o.name===l.store)){let p=f=>this[u](f);o.addEventListener(l.eventName,p),this[Me].get(a).push(()=>o.removeEventListener(l.eventName,p))}})),this.onStoreAvailable(a)}unsubscribeFromStores(){this[ie].forEach((a,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(a){var o;this[ie].has(a)&&this[ie].get(a)(),this[ie].delete(a),(o=this[Me].get(a))===null||o===void 0||o.forEach(c=>c()),this[Me].delete(a)}onStoreAvailable(a){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=ie,r=le,n=Me,s.reduxProperties=new Map,s.reduxReactiveProperties=new Set,s.reduxEventListeners=new Map,s}),rn=class extends Ei(X){};function M(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 gi=typeof Symbol=="function"&&Symbol.observable||"@@observable",nn=gi,Wt=()=>Math.random().toString(36).substring(7).split("").join("."),Ai={INIT:`@@redux/INIT${Wt()}`,REPLACE:`@@redux/REPLACE${Wt()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Wt()}`},rt=Ai;function nt(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Yt(e,t,r){if(typeof e!="function")throw new Error(M(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(M(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(M(1));return r(Yt)(e,t)}let n=e,s=t,i=new Map,a=i,o=0,c=!1;function l(){a===i&&(a=new Map,i.forEach((E,L)=>{a.set(L,E)}))}function u(){if(c)throw new Error(M(3));return s}function p(E){if(typeof E!="function")throw new Error(M(4));if(c)throw new Error(M(5));let L=!0;l();let U=o++;return a.set(U,E),function(){if(L){if(c)throw new Error(M(6));L=!1,l(),a.delete(U),i=null}}}function f(E){if(!nt(E))throw new Error(M(7));if(typeof E.type>"u")throw new Error(M(8));if(typeof E.type!="string")throw new Error(M(17));if(c)throw new Error(M(9));try{c=!0,s=n(s,E)}finally{c=!1}return(i=a).forEach(U=>{U()}),E}function g(E){if(typeof E!="function")throw new Error(M(10));n=E,f({type:rt.REPLACE})}function b(){let E=p;return{subscribe(L){if(typeof L!="object"||L===null)throw new Error(M(11));function U(){let A=L;A.next&&A.next(u())}return U(),{unsubscribe:E(U)}},[nn](){return this}}}return f({type:rt.INIT}),{dispatch:f,subscribe:p,getState:u,replaceReducer:g,[nn]:b}}function Si(e){Object.keys(e).forEach(t=>{let r=e[t];if(typeof r(void 0,{type:rt.INIT})>"u")throw new Error(M(12));if(typeof r(void 0,{type:rt.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(M(13))})}function sn(e){let t=Object.keys(e),r={};for(let a=0;a<t.length;a++){let o=t[a];typeof e[o]=="function"&&(r[o]=e[o])}let n=Object.keys(r),s,i;try{Si(r)}catch(a){i=a}return function(o={},c){if(i)throw i;let l=!1,u={};for(let p=0;p<n.length;p++){let f=n[p],g=r[f],b=o[f],N=g(b,c);if(typeof N>"u"){let E=c&&c.type;throw new Error(M(14))}u[f]=N,l=l||N!==b}return l=l||n.length!==Object.keys(o).length,l?u:o}}function De(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function an(...e){return t=>(r,n)=>{let s=t(r,n),i=()=>{throw new Error(M(15))},a={getState:s.getState,dispatch:(c,...l)=>i(c,...l)},o=e.map(c=>c(a));return i=De(...o)(s.dispatch),{...s,dispatch:i}}}function on(e){return nt(e)&&"type"in e&&typeof e.type=="string"}var yn=Symbol.for("immer-nothing"),cn=Symbol.for("immer-draftable"),D=Symbol.for("immer-state");function q(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var B=Object,ve=B.getPrototypeOf,ot="constructor",ft="prototype",Zt="configurable",ct="enumerable",it="writable",Pe="value",J=e=>!!e&&!!e[D];function H(e){return e?En(e)||mt(e)||!!e[cn]||!!e[ot]?.[cn]||yt(e)||Et(e):!1}var vi=B[ft][ot].toString(),ln=new WeakMap;function En(e){if(!e||!or(e))return!1;let t=ve(e);if(t===null||t===B[ft])return!0;let r=B.hasOwnProperty.call(t,ot)&&t[ot];if(r===Object)return!0;if(!Se(r))return!1;let n=ln.get(r);return n===void 0&&(n=Function.toString.call(r),ln.set(r,n)),n===vi}function ht(e,t,r=!0){Ue(e)===0?(r?Reflect.ownKeys(e):B.keys(e)).forEach(s=>{t(s,e[s],e)}):e.forEach((n,s)=>t(s,n,e))}function Ue(e){let t=e[D];return t?t.type_:mt(e)?1:yt(e)?2:Et(e)?3:0}var Xt=(e,t,r=Ue(e))=>r===2?e.has(t):B[ft].hasOwnProperty.call(e,t),er=(e,t,r=Ue(e))=>r===2?e.get(t):e[t],lt=(e,t,r,n=Ue(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function xi(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var mt=Array.isArray,yt=e=>e instanceof Map,Et=e=>e instanceof Set,or=e=>typeof e=="object",Se=e=>typeof e=="function",Jt=e=>typeof e=="boolean";function _i(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var ee=e=>e.copy_||e.base_;var cr=e=>e.modified_?e.copy_:e.base_;function tr(e,t){if(yt(e))return new Map(e);if(Et(e))return new Set(e);if(mt(e))return Array[ft].slice.call(e);let r=En(e);if(t===!0||t==="class_only"&&!r){let n=B.getOwnPropertyDescriptors(e);delete n[D];let s=Reflect.ownKeys(n);for(let i=0;i<s.length;i++){let a=s[i],o=n[a];o[it]===!1&&(o[it]=!0,o[Zt]=!0),(o.get||o.set)&&(n[a]={[Zt]:!0,[it]:!0,[ct]:o[ct],[Pe]:e[a]})}return B.create(ve(e),n)}else{let n=ve(e);if(n!==null&&r)return{...e};let s=B.create(n);return B.assign(s,e)}}function lr(e,t=!1){return gt(e)||J(e)||!H(e)||(Ue(e)>1&&B.defineProperties(e,{set:st,add:st,clear:st,delete:st}),B.freeze(e),t&&ht(e,(r,n)=>{lr(n,!0)},!1)),e}function bi(){q(2)}var st={[Pe]:bi};function gt(e){return e===null||!or(e)?!0:B.isFrozen(e)}var ut="MapSet",rr="Patches",un="ArrayMethods",gn={};function ue(e){let t=gn[e];return t||q(0,e),t}var dn=e=>!!gn[e];var Ie,An=()=>Ie,Ci=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:dn(ut)?ue(ut):void 0,arrayMethodsPlugin_:dn(un)?ue(un):void 0});function pn(e,t){t&&(e.patchPlugin_=ue(rr),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function nr(e){sr(e),e.drafts_.forEach(Oi),e.drafts_=null}function sr(e){e===Ie&&(Ie=e.parent_)}var fn=e=>Ie=Ci(Ie,e);function Oi(e){let t=e[D];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function hn(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];if(e!==void 0&&e!==r){r[D].modified_&&(nr(t),q(4)),H(e)&&(e=mn(t,e));let{patchPlugin_:s}=t;s&&s.generateReplacementPatches_(r[D].base_,e,t)}else e=mn(t,r);return Ti(t,e,!0),nr(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==yn?e:void 0}function mn(e,t){if(gt(t))return t;let r=t[D];if(!r)return dt(t,e.handledSet_,e);if(!At(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(e);xn(r,e)}return r.copy_}function Ti(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&lr(t,r)}function Sn(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var At=(e,t)=>e.scope_===t,Ri=[];function vn(e,t,r,n){let s=ee(e),i=e.type_;if(n!==void 0&&er(s,n,i)===t){lt(s,n,r,i);return}if(!e.draftLocations_){let o=e.draftLocations_=new Map;ht(s,(c,l)=>{if(J(l)){let u=o.get(l)||[];u.push(c),o.set(l,u)}})}let a=e.draftLocations_.get(t)??Ri;for(let o of a)lt(s,o,r,i)}function wi(e,t,r){e.callbacks_.push(function(s){let i=t;if(!i||!At(i,s))return;s.mapSetPlugin_?.fixSetContents(i);let a=cr(i);vn(e,i.draft_??i,a,r),xn(i,s)})}function xn(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let s=n.getPath(e);s&&n.generatePatches_(e,s,t)}Sn(e)}}function Ni(e,t,r){let{scope_:n}=e;if(J(r)){let s=r[D];At(s,n)&&s.callbacks_.push(function(){at(e);let a=cr(s);vn(e,r,a,t)})}else H(r)&&e.callbacks_.push(function(){let i=ee(e);e.type_===3?i.has(r)&&dt(r,n.handledSet_,n):er(i,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&dt(er(e.copy_,t,e.type_),n.handledSet_,n)})}function dt(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||J(e)||t.has(e)||!H(e)||gt(e)||(t.add(e),ht(e,(n,s)=>{if(J(s)){let i=s[D];if(At(i,r)){let a=cr(i);lt(e,n,a,e.type_),Sn(i)}}else H(s)&&dt(s,t,r)})),e}function Li(e,t){let r=mt(e),n={type_:r?1:0,scope_:t?t.scope_:An(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},s=n,i=pt;r&&(s=[n],i=ke);let{revoke:a,proxy:o}=Proxy.revocable(s,i);return n.draft_=o,n.revoke_=a,[o,n]}var pt={get(e,t){if(t===D)return e;let r=e.scope_.arrayMethodsPlugin_,n=e.type_===1&&typeof t=="string";if(n&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);let s=ee(e);if(!Xt(s,t,e.type_))return Di(e,s,t);let i=s[t];if(e.finalized_||!H(i)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&_i(t))return i;if(i===Qt(e.base_,t)||Mi(e,t,i)){at(e);let a=e.type_===1?+t:t,o=ar(e.scope_,i,e,a);return e.copy_[a]=o}return i},has(e,t){return t in ee(e)},ownKeys(e){return Reflect.ownKeys(ee(e))},set(e,t,r){let n=_n(ee(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let s=Qt(ee(e),t),i=s?.[D];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(xi(r,s)&&(r!==void 0||Xt(e.base_,t,e.type_)))return!0;at(e),ir(e)}return e.copy_[t]===r&&(r!==void 0||Xt(e.copy_,t,e.type_))||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),Ni(e,t,r)),!0},deleteProperty(e,t){return at(e),Qt(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),ir(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let r=ee(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[it]:!0,[Zt]:e.type_!==1||t!=="length",[ct]:n[ct],[Pe]:r[t]}},defineProperty(){q(11)},getPrototypeOf(e){return ve(e.base_)},setPrototypeOf(){q(12)}},ke={};for(let e in pt){let t=pt[e];ke[e]=function(){let r=arguments;return r[0]=r[0][0],t.apply(this,r)}}ke.deleteProperty=function(e,t){return ke.set.call(this,e,t,void 0)};ke.set=function(e,t,r){return pt.set.call(this,e[0],t,r,e[0])};function Qt(e,t){let r=e[D];return(r?ee(r):e)[t]}function Mi(e,t,r){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!H(r)||r[D]?!1:e.baseRefs_.has(r)}function Di(e,t,r){let n=_n(t,r);return n?Pe in n?n[Pe]:n.get?.call(e.draft_):void 0}function _n(e,t){if(!(t in e))return;let r=ve(e);for(;r;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=ve(r)}}function ir(e){e.modified_||(e.modified_=!0,e.parent_&&ir(e.parent_))}function at(e){e.copy_||(e.assigned_=new Map,e.copy_=tr(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Pi=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,n)=>{if(Se(t)&&!Se(r)){let i=r;r=t;let a=this;return function(c=i,...l){return a.produce(c,u=>r.call(this,u,...l))}}Se(r)||q(6),n!==void 0&&!Se(n)&&q(7);let s;if(H(t)){let i=fn(this),a=ar(i,t,void 0),o=!0;try{s=r(a),o=!1}finally{o?nr(i):sr(i)}return pn(i,n),hn(s,i)}else if(!t||!or(t)){if(s=r(t),s===void 0&&(s=t),s===yn&&(s=void 0),this.autoFreeze_&&lr(s,!0),n){let i=[],a=[];ue(rr).generateReplacementPatches_(t,s,{patches_:i,inversePatches_:a}),n(i,a)}return s}else q(1,t)},this.produceWithPatches=(t,r)=>{if(Se(t))return(a,...o)=>this.produceWithPatches(a,c=>t(c,...o));let n,s;return[this.produce(t,r,(a,o)=>{n=a,s=o}),n,s]},Jt(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Jt(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Jt(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){H(e)||q(8),J(e)&&(e=bn(e));let t=fn(this),r=ar(t,e,void 0);return r[D].isManual_=!0,sr(t),r}finishDraft(e,t){let r=e&&e[D];(!r||!r.isManual_)&&q(9);let{scope_:n}=r;return pn(n,t),hn(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let s=t[r];if(s.path.length===0&&s.op==="replace"){e=s.value;break}}r>-1&&(t=t.slice(r+1));let n=ue(rr).applyPatches_;return J(e)?n(e,t):this.produce(e,s=>n(s,t))}};function ar(e,t,r,n){let[s,i]=yt(t)?ue(ut).proxyMap_(t,r):Et(t)?ue(ut).proxySet_(t,r):Li(t,r);return(r?.scope_??An()).drafts_.push(s),i.callbacks_=r?.callbacks_??[],i.key_=n,r&&n!==void 0?wi(r,i,n):i.callbacks_.push(function(c){c.mapSetPlugin_?.fixSetContents(i);let{patchPlugin_:l}=c;i.modified_&&l&&l.generatePatches_(i,[],c)}),s}function bn(e){return J(e)||q(10,e),Cn(e)}function Cn(e){if(!H(e)||gt(e))return e;let t=e[D],r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=tr(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=tr(e,!0);return ht(r,(s,i)=>{lt(r,s,Cn(i))},n),t&&(t.finalized_=!1),r}var Ii=globalThis.Iterator,So=typeof Ii?.from=="function";var ki=new Pi,ur=ki.produce;function On(e){return({dispatch:r,getState:n})=>s=>i=>typeof i=="function"?i(r,n,e):s(i)}var Tn=On(),Rn=On;var Ui=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?De:De.apply(null,arguments)},To=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}},Bi=e=>e&&typeof e.match=="function";function ae(e,t){function r(...n){if(t){let s=t(...n);if(!s)throw new Error(te(0));return{type:e,payload:s.payload,..."meta"in s&&{meta:s.meta},..."error"in s&&{error:s.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>on(n)&&n.type===e,r}var Dn=class Be extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Be.prototype)}static get[Symbol.species](){return Be}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Be(...t[0].concat(this)):new Be(...t.concat(this))}};function wn(e){return H(e)?ur(e,()=>{}):e}function St(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function Hi(e){return typeof e=="boolean"}var ji=()=>function(t){let{thunk:r=!0,immutableCheck:n=!0,serializableCheck:s=!0,actionCreatorCheck:i=!0}=t??{},a=new Dn;return r&&(Hi(r)?a.push(Tn):a.push(Rn(r.extraArgument))),a},Vi="RTK_autoBatch";var Nn=e=>t=>{setTimeout(t,e)},Ki=(e,t)=>r=>{let n=!1,s=()=>{n||(n=!0,cancelAnimationFrame(i),clearTimeout(a),r())},i=e(s),a=setTimeout(s,t)},Gi=(e={type:"raf"})=>t=>(...r)=>{let n=t(...r),s=!0,i=!1,a=!1,o=new Set,c=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Ki(window.requestAnimationFrame,100):Nn(10):e.type==="callback"?e.queueNotification:Nn(e.timeout),l=()=>{a=!1,i&&(i=!1,o.forEach(u=>u()))};return Object.assign({},n,{subscribe(u){let p=()=>s&&u(),f=n.subscribe(p);return o.add(u),()=>{f(),o.delete(u)}},dispatch(u){try{return s=!u?.meta?.[Vi],i=!s,i&&(a||(a=!0,c(l))),n.dispatch(u)}finally{s=!0}}})},$i=e=>function(r){let{autoBatch:n=!0}=r??{},s=new Dn(e);return n&&s.push(Gi(typeof n=="object"?n:void 0)),s};function Pn(e){let t=ji(),{reducer:r=void 0,middleware:n,devTools:s=!0,duplicateMiddlewareCheck:i=!0,preloadedState:a=void 0,enhancers:o=void 0}=e||{},c;if(typeof r=="function")c=r;else if(nt(r))c=sn(r);else throw new Error(te(1));let l;typeof n=="function"?l=n(t):l=t();let u=De;s&&(u=Ui({trace:!1,...typeof s=="object"&&s}));let p=an(...l),f=$i(p),g=typeof o=="function"?o(f):f(),b=u(...g);return Yt(c,a,b)}function In(e){let t={},r=[],n,s={addCase(i,a){let o=typeof i=="string"?i:i.type;if(!o)throw new Error(te(28));if(o in t)throw new Error(te(29));return t[o]=a,s},addAsyncThunk(i,a){return a.pending&&(t[i.pending.type]=a.pending),a.rejected&&(t[i.rejected.type]=a.rejected),a.fulfilled&&(t[i.fulfilled.type]=a.fulfilled),a.settled&&r.push({matcher:i.settled,reducer:a.settled}),s},addMatcher(i,a){return r.push({matcher:i,reducer:a}),s},addDefaultCase(i){return n=i,s}};return e(s),[t,r,n]}function zi(e){return typeof e=="function"}function qi(e,t){let[r,n,s]=In(t),i;if(zi(e))i=()=>wn(e());else{let o=wn(e);i=()=>o}function a(o=i(),c){let l=[r[c.type],...n.filter(({matcher:u})=>u(c)).map(({reducer:u})=>u)];return l.filter(u=>!!u).length===0&&(l=[s]),l.reduce((u,p)=>{if(p)if(J(u)){let g=p(u,c);return g===void 0?u:g}else{if(H(u))return ur(u,f=>p(f,c));{let f=p(u,c);if(f===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return f}}return u},o)}return a.getInitialState=i,a}var Fi=(e,t)=>Bi(e)?e.match(t):e(t);function Wi(...e){return t=>e.some(r=>Fi(r,t))}var Yi="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Xi=(e=21)=>{let t="",r=e;for(;r--;)t+=Yi[Math.random()*64|0];return t},Ji=["name","message","stack","code"],dr=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},Ln=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},Qi=e=>{if(typeof e=="object"&&e!==null){let t={};for(let r of Ji)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},Mn="External signal was aborted",Zi=(()=>{function e(t,r,n){let s=ae(t+"/fulfilled",(c,l,u,p)=>({payload:c,meta:{...p||{},arg:u,requestId:l,requestStatus:"fulfilled"}})),i=ae(t+"/pending",(c,l,u)=>({payload:void 0,meta:{...u||{},arg:l,requestId:c,requestStatus:"pending"}})),a=ae(t+"/rejected",(c,l,u,p,f)=>({payload:p,error:(n&&n.serializeError||Qi)(c||"Rejected"),meta:{...f||{},arg:u,requestId:l,rejectedWithValue:!!p,requestStatus:"rejected",aborted:c?.name==="AbortError",condition:c?.name==="ConditionError"}}));function o(c,{signal:l}={}){return(u,p,f)=>{let g=n?.idGenerator?n.idGenerator(c):Xi(),b=new AbortController,N,E;function L(y){E=y,b.abort()}l&&(l.aborted?L(Mn):l.addEventListener("abort",()=>L(Mn),{once:!0}));let U=(async function(){let y;try{let S=n?.condition?.(c,{getState:p,extra:f});if(ta(S)&&(S=await S),S===!1||b.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let W=new Promise((_,O)=>{N=()=>{O({name:"AbortError",message:E||"Aborted"})},b.signal.addEventListener("abort",N,{once:!0})});u(i(g,c,n?.getPendingMeta?.({requestId:g,arg:c},{getState:p,extra:f}))),y=await Promise.race([W,Promise.resolve(r(c,{dispatch:u,getState:p,extra:f,requestId:g,signal:b.signal,abort:L,rejectWithValue:((_,O)=>new dr(_,O)),fulfillWithValue:((_,O)=>new Ln(_,O))})).then(_=>{if(_ instanceof dr)throw _;return _ instanceof Ln?s(_.payload,g,c,_.meta):s(_,g,c)})])}catch(S){y=S instanceof dr?a(null,g,c,S.payload,S.meta):a(S,g,c)}finally{N&&b.signal.removeEventListener("abort",N)}return n&&!n.dispatchConditionRejection&&a.match(y)&&y.meta.condition||u(y),y})();return Object.assign(U,{abort:L,requestId:g,arg:c,unwrap(){return U.then(ea)}})}}return Object.assign(o,{pending:i,rejected:a,fulfilled:s,settled:Wi(a,s),typePrefix:t})}return e.withTypes=()=>e,e})();function ea(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function ta(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var kn=Symbol.for("rtk-slice-createasyncthunk"),wo={[kn]:Zi};function ra(e,t){return`${e}/${t}`}function na({creators:e}={}){let t=e?.asyncThunk?.[kn];return function(n){let{name:s,reducerPath:i=s}=n;if(!s)throw new Error(te(11));typeof process<"u";let a=(typeof n.reducers=="function"?n.reducers(ia()):n.reducers)||{},o=Object.keys(a),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},l={addCase(y,A){let S=typeof y=="string"?y:y.type;if(!S)throw new Error(te(12));if(S in c.sliceCaseReducersByType)throw new Error(te(13));return c.sliceCaseReducersByType[S]=A,l},addMatcher(y,A){return c.sliceMatchers.push({matcher:y,reducer:A}),l},exposeAction(y,A){return c.actionCreators[y]=A,l},exposeCaseReducer(y,A){return c.sliceCaseReducersByName[y]=A,l}};o.forEach(y=>{let A=a[y],S={reducerName:y,type:ra(s,y),createNotation:typeof n.reducers=="function"};oa(A)?la(S,A,l,t):aa(S,A,l)});function u(){let[y={},A=[],S=void 0]=typeof n.extraReducers=="function"?In(n.extraReducers):[n.extraReducers],W={...y,...c.sliceCaseReducersByType};return qi(n.initialState,_=>{for(let O in W)_.addCase(O,W[O]);for(let O of c.sliceMatchers)_.addMatcher(O.matcher,O.reducer);for(let O of A)_.addMatcher(O.matcher,O.reducer);S&&_.addDefaultCase(S)})}let p=y=>y,f=new Map,g=new WeakMap,b;function N(y,A){return b||(b=u()),b(y,A)}function E(){return b||(b=u()),b.getInitialState()}function L(y,A=!1){function S(_){let O=_[y];return typeof O>"u"&&A&&(O=St(g,S,E)),O}function W(_=p){let O=St(f,A,()=>new WeakMap);return St(O,_,()=>{let Or={};for(let[si,ii]of Object.entries(n.selectors??{}))Or[si]=sa(ii,_,()=>St(g,_,E),A);return Or})}return{reducerPath:y,getSelectors:W,get selectors(){return W(S)},selectSlice:S}}let U={name:s,reducer:N,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:E,...L(i),injectInto(y,{reducerPath:A,...S}={}){let W=A??i;return y.inject({reducerPath:W,reducer:N},S),{...U,...L(W,!0)}}};return U}}function sa(e,t,r,n){function s(i,...a){let o=t(i);return typeof o>"u"&&n&&(o=r()),e(o,...a)}return s.unwrapped=e,s}var Un=na();function ia(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function aa({type:e,reducerName:t,createNotation:r},n,s){let i,a;if("reducer"in n){if(r&&!ca(n))throw new Error(te(17));i=n.reducer,a=n.prepare}else i=n;s.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?ae(e,a):ae(e))}function oa(e){return e._reducerDefinitionType==="asyncThunk"}function ca(e){return e._reducerDefinitionType==="reducerWithPrepare"}function la({type:e,reducerName:t},r,n,s){if(!s)throw new Error(te(18));let{payloadCreator:i,fulfilled:a,pending:o,rejected:c,settled:l,options:u}=r,p=s(e,i,u);n.exposeAction(t,p),a&&n.addCase(p.fulfilled,a),o&&n.addCase(p.pending,o),c&&n.addCase(p.rejected,c),l&&n.addMatcher(p.settled,l),n.exposeCaseReducer(t,{fulfilled:a||vt,pending:o||vt,rejected:c||vt,settled:l||vt})}function vt(){}var Bn="listener",Hn="completed",jn="cancelled",No=`task-${jn}`,Lo=`task-${Hn}`,Mo=`${Bn}-${jn}`,Do=`${Bn}-${Hn}`;var{assign:Vn}=Object;var pr="listenerMiddleware";var ua=Vn(ae(`${pr}/add`),{withTypes:()=>ua}),Po=ae(`${pr}/removeAll`),da=Vn(ae(`${pr}/remove`),{withTypes:()=>da});function te(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var pa=Xe(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,n,s){this.eventBus.addEventListener(r,n,s)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,s){this.eventBus.removeEventListener(r,n,s)}}}),xt=class extends pa(Object){};window.ftReduxStores||(window.ftReduxStores={});var Kn=class e extends xt{static get(t){var r;let n=typeof t=="string"?t:t.name,s=typeof t=="string"?void 0:t,i=window.ftReduxStores[n];if(tt(i))return i;if(s==null)return;let a=Un({...s,reducers:(r=s.reducers)!==null&&r!==void 0?r:{}}),o=Pn({reducer:(c,l)=>{if(l.type==="CLEAR_FT_REDUX_STORE"){let u=Ne(a.getInitialState());for(let p of l.keeping)u[p]=(c??u)[p];return u}else if(typeof l.type=="string"&&l.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...c,...l.overwrites};return a.reducer(c,l)}});return window.ftReduxStores[s.name]=new e(a,o,s.eventBus)}constructor(t,r,n){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Je,this.injectInto=(i,a)=>this.reduxSlice.injectInto(i,a),this.selectSlice=i=>this.reduxSlice.selectSlice(i);let s=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,a,o)=>{let c=a,l=i[c];return l?(...u)=>{let p=l(...u.map(s));return this.reduxStore.dispatch(p),p}:u=>{let p=c,f=this.getState()[p];Ee(f,u)||this.setState({[p]:s(u)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...t){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:t})}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()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};var _t=class{static format(t,r,n,s,i){return window.moment?window.moment(t).locale(r).format(this.getMomentDateFormat(n,s,!!i)):this.getIntlDateTime(t,r,n,s,!!i)}static getMomentDateFormat(t,r,n){return n?"LT":t?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(t,r,n,s,i){let a=typeof t=="string"?new Date(t):t,o=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(a),c=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(a);return i?c:s?`${o} ${c}`:o}static getTimezoneAsString(){let t=n=>String(Math.floor(n)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${t(Math.abs(r)/60)}:${t(Math.abs(r)%60)}`}};var bt=h(v()),fa="ft-app-info",xe=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};xe.eventName="authentication-change";var He=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};He.eventName="ui-locale-changed";var ha={session:(e,t)=>{(0,bt.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>m.dispatchEvent(new xe(t.payload)),0))}},m=bt.FtReduxStore.get({name:fa,reducers:ha,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var Gn=h(v()),Ct=function(e,t,r,n){var s=arguments.length,i=s<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 o=e.length-1;o>=0;o--)(a=e[o])&&(i=(s<3?a(i):s>3?a(t,r,i):a(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},uc=(0,Gn.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(m)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var s,i;return((i=(s=this.metadataDescriptors.find(o=>o.key===n))===null||s===void 0?void 0:s.date)!==null&&i!==void 0?i:!1)?o=>_t.format(o,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Ct([(0,fr.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),Ct([(0,fr.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),Ct([Ft({store:m.name,selector:r=>{var n,s;return(s=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&s!==void 0?s:[]}})],t.prototype,"metadataDescriptors",void 0),Ct([Ft({store:m.name})],t.prototype,"uiLocale",void 0),t});var $n;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})($n||($n={}));var zn;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(zn||(zn={}));var qn;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(qn||(qn={}));var Fn;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(Fn||(Fn={}));var Wn;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Wn||(Wn={}));var Yn;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(Yn||(Yn={}));var Xn;(function(e){e.OFFICIAL="OFFICIAL",e.AI="AI"})(Xn||(Xn={}));var Jn;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.CHATBOT__RATE="CHATBOT__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",e.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",e.AI__RATE="AI__RATE",e.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",e.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(Jn||(Jn={}));var Qn;(function(e){e.STANDARD="STANDARD",e.STRUCTURAL="STRUCTURAL"})(Qn||(Qn={}));var Zn;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(Zn||(Zn={}));var es;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT",e.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",e.LINK_PREVIEW="LINK_PREVIEW",e.UD_VIEWER="UD_VIEWER",e.ASSET_VIEWER="ASSET_VIEWER"})(es||(es={}));var ts;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(ts||(ts={}));var rs;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(rs||(rs={}));var ns;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(ns||(ns={}));var ss;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(ss||(ss={}));var is;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(is||(is={}));var as;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(as||(as={}));var os;(function(e){e.ASC="ASC",e.DESC="DESC"})(os||(os={}));var cs;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(cs||(cs={}));var ls;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(ls||(ls={}));var us;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(us||(us={}));var ds;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(ds||(ds={}));var ps;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(ps||(ps={}));var fs;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(fs||(fs={}));var hs;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(hs||(hs={}));var ms;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(ms||(ms={}));var ys;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(ys||(ys={}));var T;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(T||(T={}));var K;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(K||(K={}));var Es;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(Es||(Es={}));var gs;(function(e){e.UNREACHABLE="UNREACHABLE",e.UNAUTHORIZED="UNAUTHORIZED",e.FORBIDDEN="FORBIDDEN",e.INCOMPATIBLE="INCOMPATIBLE",e.FAILED="FAILED",e.OK="OK"})(gs||(gs={}));var As;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(As||(As={}));var Ss;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SUMMARY="SUMMARY",e.SEMANTIC_SEARCH="SEMANTIC_SEARCH",e.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",e.DOCUMENTATION="DOCUMENTATION",e.OTHER="OTHER"})(Ss||(Ss={}));var vs;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(vs||(vs={}));var xs;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(xs||(xs={}));var _s;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(_s||(_s={}));var bs;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(bs||(bs={}));var Cs;(function(e){e.IN_PROGRESS="IN_PROGRESS",e.ERROR="ERROR",e.DONE="DONE"})(Cs||(Cs={}));var Os;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(Os||(Os={}));var Ts;(function(e){e.SOURCES="SOURCES",e.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",e.VOCABULARIES="VOCABULARIES",e.METADATA="METADATA",e.PRETTY_URL="PRETTY_URL",e.ACCESS_RULE="ACCESS_RULE",e.DESIGNED_PAGES="DESIGNED_PAGES",e.THEME_STUDIO="THEME_STUDIO",e.PORTAL_GENERAL="PORTAL_GENERAL",e.ASSETS="ASSETS",e.CODE_LIBRARY="CODE_LIBRARY",e.THEME="THEME",e.CONTENT_STYLES="CONTENT_STYLES",e.HOMEPAGE="HOMEPAGE",e.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",e.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",e.PORTAL_METADATA="PORTAL_METADATA",e.LANGUAGES="LANGUAGES",e.PRINT_TEMPLATES="PRINT_TEMPLATES",e.OFFLINE="OFFLINE",e.CUSTOM_JS="CUSTOM_JS",e.CONFIDENTIALITY="CONFIDENTIALITY",e.NOTIFICATIONS="NOTIFICATIONS"})(Ts||(Ts={}));var Rs;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Rs||(Rs={}));var ma={[T.PERSONAL_BOOK_SHARE_USER]:[T.PERSONAL_BOOK_USER],[T.HTML_EXPORT_USER]:[T.PERSONAL_BOOK_USER],[T.PDF_EXPORT_USER]:[T.PERSONAL_BOOK_USER],[T.KHUB_ADMIN]:[T.CONTENT_PUBLISHER],[T.ADMIN]:[T.KHUB_ADMIN,T.USERS_ADMIN,T.PORTAL_ADMIN,T.BEHAVIOR_DATA_USER],[T.GENERATIVE_AI_EXPORT_USER]:[T.GENERATIVE_AI_USER]};function ws(e,t){return e===t||(ma[e]??[]).some(r=>ws(r,t))}function Ns(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>ws(n,t))}var Nt=h(v());var hr=h(v());var de=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:n}=m.getState(),s=t??n;if(r&&s&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,s,!0)}static await(t){return new Promise(r=>{let n=e.get(t);if(n)r(n);else{let s=m.subscribe(()=>{n=e.get(t),n&&(s(),r(n))})}})}};var _e=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:de.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):de.await()}};var j=class extends _e{constructor(t=!0,r){var n;super(r),this.sortObjectFields=(i,a)=>typeof a!="object"||a==null||Array.isArray(a)?a:Object.fromEntries(Object.entries(a).sort(([o],[c])=>o.localeCompare(c)));let s=this.constructor;s.commonCache=(n=s.commonCache)!==null&&n!==void 0?n:new hr.CacheRegistry,this.cache=t?s.commonCache:new hr.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var Ot=class extends j{async listMySearches(){let{session:t}=m.getState();return Ns(t,T.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),300*1e3):[]}};var Tt=class extends j{async listMyBookmarks(){let t=m.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),300*1e3):[]}};var Rt=class extends j{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(t){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${t}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(t){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${t}`),this.CACHE_DURATION)}isAuthenticated(){let t=m.getState().session;return!!t?.sessionAuthenticated}};var wt=class extends j{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let t=m.getState().session;return!!t?.sessionAuthenticated}};var ya="ft-user-assets",Ea={setAssetCount:(e,t)=>{let{userAssetType:r,count:n}=t.payload.assetCount;e.assetCounts.allAsset[r]=n},clearAssetCount:e=>{Object.values(K).forEach(t=>{e.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(e,t)=>{let r=t.payload.mapId;e.assetCounts.bookmarkByMap[r]=t.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}},addAsset:(e,t)=>{let{assetType:r,mapId:n,asset:s}=t.payload;yr(e,r,[...mr(e,r),s]),Ls(e,r,1,n),Ms(e,s)},editAsset:(e,t)=>{let{assetType:r,asset:n}=t.payload;yr(e,r,mr(e,r).map(s=>s.id===n.id?n:s)),Ms(e,n)},removeAsset:(e,t)=>{let{assetType:r,mapId:n,assetId:s}=t.payload;yr(e,r,mr(e,r).filter(i=>i.id!==s)),Ls(e,r,-1,n)}},Ds={[K.SEARCHES]:"savedSearches",[K.BOOKMARKS]:"bookmarks",[K.BOOKS]:void 0,[K.COLLECTIONS]:void 0},mr=(e,t)=>{var r;let n=Ds[t];return n?(r=e[n])!==null&&r!==void 0?r:[]:[]},yr=(e,t,r)=>{let n=Ds[t];n&&(e[n]=r)},Ls=(e,t,r,n)=>{let s=e.assetCounts.allAsset[t];if(s!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,s+r),t===K.BOOKMARKS&&n)){let i=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,i+r)}},Ms=(e,t)=>{let r=e.assetLabels.map(s=>s.title),n=t.labels.filter(s=>!r.includes(s)).map(s=>({title:s}));e.assetLabels.push(...n)},I=Nt.FtReduxStore.get({name:ya,reducers:Ea,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(K).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Er=class{constructor(t=new Rt,r=new wt){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=m.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Tt,this.savedSearchesService=new Ot,m.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=m.getState();(0,Nt.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),I.actions.clearAssetCount(),I.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),I.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),I.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();I.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();I.actions.assetLabels(t)}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&I.getState().assetCounts.allAsset[t]!==r.count&&I.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&I.getState().assetCounts.bookmarkByMap[t]!==r.count&&I.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(I.getState().assetCounts.bookmarkByMap).length!==0;t===K.BOOKMARKS&&r&&I.actions.clearBookmarkCountByMap(),I.getState().assetCounts.allAsset[t]!==void 0&&await this.loadAssetCount(t)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let r=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;I.actions.bookmarks(r)}}},ga=new Er;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=ga);var gr=class{addCommand(t,r=!1){m.commands.add(t,r)}consumeCommand(t){return m.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new gr;var G=h(v());var Ps,be=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},Aa=Symbol("clearAfterUnitTest"),Lt=class extends(0,G.withEventBus)(j){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Ps]=()=>{this.defaultMessages={},this.cache=new G.CacheRegistry,this.listeners={}},this.currentUiLocale=m.getState().uiLocale,m.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=m.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let r=t.name.toLowerCase();this.cache.setFinal(r,t),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,r){var n;if(t=t.toLowerCase(),r&&Object.keys(r).length>0){let s={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...r};(0,G.deepEqual)(this.defaultMessages[t],s)||(this.defaultMessages[t]=s,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var r,n;return this.fetchContext(t),(n=(r=this.cache.getNow(t))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,r){let n=t.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(t,r,...n){var s;let i=t.toLowerCase(),a=this.resolveContext(i);return new G.ParametrizedLabelResolver((s=this.defaultMessages[i])!==null&&s!==void 0?s:{},a).resolve(r,...n)}async fetchContext(t){let r=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),r&&await this.notify(t)}catch(s){!(s instanceof G.CanceledPromiseError)&&r&&console.error(s)}return n}subscribe(t,r){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(r),()=>{var s;return(s=this.listeners[t])===null||s===void 0?void 0:s.delete(r)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new be({loadedContexts:t})),this.dispatchEvent(new be({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new be({loadedContexts:[t]})),this.dispatchEvent(new be({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,G.delay)(0).then(()=>n()).catch(()=>null)))}};Ps=Aa;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Lt{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Lt{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Ce=window.FluidTopicsI18nService,Mt=window.FluidTopicsCustomI18nService;var Is=h(v()),Ar=class{highlightHtml(t,r,n){(0,Is.highlightHtml)(t,r,n)}};window.FluidTopicsHighlightHtmlService=new Ar;var ks=h(v());var Sr=class{isDate(t){var r,n,s,i;return(i=(s=((n=(r=m.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(o=>o.key===t))===null||s===void 0?void 0:s.date)!==null&&i!==void 0?i:!1}format(t,r){var n,s,i,a;if(t==null)return"";try{return ks.DateFormatter.format(t,(n=r?.locale)!==null&&n!==void 0?n:m.getState().uiLocale,(s=r?.longFormat)!==null&&s!==void 0?s:!1,(i=r?.withTime)!==null&&i!==void 0?i:!1,(a=r?.onlyTime)!==null&&a!==void 0?a:!1)}catch(o){throw console.error(`Date ${JSON.stringify(t)} is not valid`,o),o}}};window.FluidTopicsDateService=new Sr;var Us=h(v());var je=class{static get(t,r){var n,s,i,a;let o=m.getState(),{lang:c,region:l}=(i=(s=(n=o.localesConfiguration)===null||n===void 0?void 0:n.defaultLocales)===null||s===void 0?void 0:s.defaultContentLocale)!==null&&i!==void 0?i:{lang:"en",region:"US"};return new Us.SearchPlaceConverter(o.baseUrl,t??20,(a=o.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed,r??`${c}-${l}`)}};var vr=class{urlToSearchRequest(t){return je.get().parse(t)}searchRequestToUrl(t){return je.get().serialize(t)}};window.FluidTopicsUrlService=new vr;var re=h(v());var pe=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};pe.eventName="change";var xr=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let r=sessionStorage.getItem(this.itemName(t));return r?JSON.parse(r):void 0}set(t,r){sessionStorage.setItem(this.itemName(t),JSON.stringify(r))}},Bs=new xr;var Dt=class e extends re.WithEventBus{static build(){return new e(window.history,Bs,()=>window.location,!1)}constructor(t,r,n,s){var i,a;super(),this.history=t,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(a=(i=t.state)===null||i===void 0?void 0:i.index)!==null&&a!==void 0?a:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(s)}setCurrentState(t,r=!1){let n=r&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,re.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new pe(this.currentItem())),0)}installProxies(){let t=r=>(n,s,[i,a,o])=>{let c=r(),l={...c===this.currentIndex?this.currentState:void 0,...i,index:c,href:typeof o=="string"?o:(o??this.windowLocation()).href};n.apply(s,[l,a,o]),this.setCurrentState(l,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(t){for(let r=this.history.length-1;r>=0;r--)t?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(t){var r;let n={...this.buildCurrentState(),...t,index:this.currentIndex,title:(r=t?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(t){this.addEventListener(pe.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(pe.eventName,t)}currentItem(){return(0,re.deepCopy)(this.currentState)}back(){let t=this.previousDifferentMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,re.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(t){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,re.deepCopy)(r.find(n=>t(n)))}previousDifferentMajorPosition(){let t=this.currentIndex>0?this.currentIndex-1:0;for(;t>0&&!this.isDifferentMajorState(t);)t--;return t}forward(){let t=this.nextMajorPosition();t&&t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){let t=this.nextMajorPosition();if(t)return(0,re.deepCopy)(this.states[t])}nextMajorPosition(){let t=this.currentIndex;if(!(t>=this.states.length)){do t++;while(t<this.states.length&&!this.isDifferentMajorState(t));return this.getHigherPositionInTheSameState(t)}}getHigherPositionInTheSameState(t){var r;let n=(r=this.states[t])===null||r===void 0?void 0:r.majorStateId;if(!n)return t;let s=t,i=t+1;for(;this.states.length>i&&!this.isDifferentMajorState(i,n);)this.hasState(i)&&(s=i),i++;return s}buildCurrentState(){var t,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&r!==void 0?r:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,r){var n;if(!this.hasState(t))return!1;let s=r??this.currentState.majorStateId,i=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return i==null||i!=s}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Dt.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:e=>window.FluidTopicsInternalHistoryService.backwardItemMatching(e),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});var Hs=h(Y());var js=Hs.css`
82
- `;var Gs=h(Y()),k=h(V()),me=h(v());var fe=h(v());function Vs(e,t){let{authenticationRequired:r,session:n}=m.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(t):e()}var Pt=class extends _e{async updateUiLocale(t){return(await this.awaitApi).updateUiLocale(t)}};var _r=class e extends fe.FtStateManager{static build(t){return new e(m,t)}constructor(t,r){super(),this.store=t,this.cache=new fe.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new Pt,this.cleanSessionDebouncer=new fe.Debouncer,this.reloadDebouncer=new fe.Debouncer(500),this.apiProvider=r??(()=>de.get())}setWithManualResources(t){this.withManualResources=t,this.updateIfNeeded()}async initService(){this.store.addEventListener(xe.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let t=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});this.setSession(t)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var t;let r=await this.cache.get("availableContentLocales",()=>Vs(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((t=r.contentLocales)!==null&&t!==void 0?t:[])}reloadConfiguration(){var t;(t=this.cache)===null||t===void 0||t.clear("availableContentLocales"),typeof this.updateAvailableContentLocales=="function"&&this.updateAvailableContentLocales()}setBaseUrl(t){this.store.actions.baseUrl(t),window.fluidTopicsBaseUrl=t}setTenantId(t){this.store.actions.tenantId(t)}setApiIntegrationIdentifier(t){this.store.actions.apiIntegrationIdentifier(t)}setApiIntegrationAppVersion(t){this.store.actions.apiIntegrationAppVersion(t)}setUiLocale(t){this.store.actions.uiLocale(t)}setLocalesConfiguration(t){this.store.actions.localesConfiguration(t),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(t){this.store.actions.availableContentLocales(t),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(t,r){this.userLocaleService.updateUiLocale({uiLocale:t,contentLocale:r}).then(n=>{n.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new He(n)))}).catch(()=>{})}setMetadataConfiguration(t){this.store.actions.metadataConfiguration(t),setTimeout(()=>this.updateIfNeeded())}setNoCustom(t){this.store.actions.noCustom(t)}setEditorMode(t){this.store.actions.editorMode(t)}setNoCustomComponent(t){this.store.actions.noCustomComponent(t)}setNoCustomCode(t){this.store.actions.noCustomCode(t)}setSession(t){this.store.actions.session(t),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(t){this.store.actions.openExternalDocumentInNewTab(t)}setNavigatorOnline(t){this.store.actions.navigatorOnline(t)}setForcedOffline(t){this.store.actions.forcedOffline(t)}setAuthenticationRequired(t){this.store.actions.authenticationRequired(t)}},Ks=_r.build();var he=class extends Event{constructor(t,r,n,s){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=r,this.callback=n,this.subscribe=s??!1}};var Ve=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=t=>{let r=this.pendingContextRequests.get(t.context);if(r===void 0)return;this.pendingContextRequests.delete(t.context);let{requests:n}=r;for(let{elementRef:s,callbackRef:i}of n){let a=s.deref(),o=i.deref();a===void 0||o===void 0||a.dispatchEvent(new he(t.context,a,o,!0))}},this.onContextRequest=t=>{if(t.subscribe!==!0)return;let r=t.contextTarget??t.composedPath()[0],n=t.callback,s=this.pendingContextRequests.get(t.context);s===void 0&&this.pendingContextRequests.set(t.context,s={callbacks:new WeakMap,requests:[]});let i=s.callbacks.get(r);i===void 0&&s.callbacks.set(r,i=new WeakSet),i.has(n)||(i.add(n),s.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(n)}))}}attach(t){t.addEventListener("context-request",this.onContextRequest),t.addEventListener("context-provider",this.onContextProvider)}detach(t){t.removeEventListener("context-request",this.onContextRequest),t.removeEventListener("context-provider",this.onContextProvider)}};var w=function(e,t,r,n){var s=arguments.length,i=s<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 o=e.length-1;o>=0;o--)(a=e[o])&&(i=(s<3?a(i):s>3?a(t,r,i):a(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},x=class extends me.FtLitElementRedux{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.noCustomCode=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=Ks,this.contextRoot=new Ve}render(){return Gs.html`
81
+ `}getTextContent(){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.getTextContent();switch(this.variant){case ne.file_format:this.resolvedIcon=(t=d[n.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:n;break;case ne.material:this.resolvedIcon=this.value||Le.nothing;break;default:this.resolvedIcon=(r=Je[n.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:n;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};z.elementDefinitions={};z.styles=Vr;Me([(0,se.property)()],z.prototype,"variant",void 0);Me([(0,se.property)()],z.prototype,"value",void 0);Me([(0,se.property)({reflect:!0,attribute:"aria-hidden"})],z.prototype,"ariaHidden",void 0);Me([(0,se.state)()],z.prototype,"resolvedIcon",void 0);Me([(0,se.query)("slot")],z.prototype,"slottedContent",void 0);var Fr={"ft-icon":z};(0,$r.customElements)(Fr);var hr=h(V());var zr=h(V(),1);var qt=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)};function qr(e,t){return(0,zr.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return De(e);try{return JSON.parse(r)}catch{return De(e)}},toAttribute:r=>JSON.stringify(r)},hasChanged:Pe,...t??{}})}function yi(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let r,n;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Se(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(!Se(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let s=a=>Object.keys(a).filter(o=>a[o]!=null),i=s(e);if(r=i.length,r!==s(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return!1;for(n=r;n--!==0;){let a=i[n];if(!Se(e[a],t[a]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function Se(e,t){try{return yi(e,t)}catch{return!1}}function Pe(e,t){return!Se(e,t)}function De(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function Qe(e,t){let r=n=>n[e]===!0;return n=>{if(r(n))return n;let s=t(n);return s[e]=!0,s}}var Wr=h(V(),1);var Wt=e=>{let t=e??{};return(r,n)=>{var s;let i={hasChanged:Pe,attribute:!1,...t};(0,Wr.property)(i)(r,n);let a=r.constructor;a.reduxProperties=new Map(a.reduxProperties),a.reduxProperties.set(n,{selector:(s=t.selector)!==null&&s!==void 0?s:(o=>o[n]),store:t.store})}};var Ze=class{constructor(){this.queue=[]}add(t,r=!1){r&&this.clear(t.type),this.queue.push(t)}consume(t){let r=this.queue.find(n=>n.type===t);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(t){typeof t=="string"?this.queue=this.queue.filter(r=>r.type!==t):this.queue=this.queue.filter(r=>!t.test(r.type))}};var ce=h(V(),1);var et=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 s=(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(o){s(o);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=h(Y(),1);var tt=globalThis,Ei=tt.ShadowRoot&&(tt.ShadyCSS===void 0||tt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var Yr=(e,t)=>{if(Ei)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let n=document.createElement("style"),s=tt.litNonce;s!==void 0&&n.setAttribute("nonce",s),n.textContent=r.cssText,e.appendChild(n)}};var rt=class extends Xr.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let t=this.scopedRegistryConstructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,t.defineScopedElements(t.elementDefinitions));let r={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return Yr(n,t.elementStyles),n}static canDefineScopedElement(t){return!!this.registry&&!this.registry.get(t)}static defineScopedElements(t){Object.entries(t).forEach(([r,n])=>this.defineScopedElement(r,n))}static defineScopedElement(t,r){qt(t)(r),this.canDefineScopedElement(t)&&this.registry.define(t,r)}canDefineScopedElement(t){return this.scopedRegistryConstructor.canDefineScopedElement(t)}defineScopedElements(t){this.scopedRegistryConstructor.defineScopedElements(t)}defineScopedElement(t,r){this.scopedRegistryConstructor.defineScopedElement(t,r)}};function Jr(e,t,...r){var n;let s=e.querySelector(t);for(let i of r)s=(n=s?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return s}var ve=function(e,t,r,n){var s=arguments.length,i=s<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 o=e.length-1;o>=0;o--)(a=e[o])&&(i=(s<3?a(i):s>3?a(t,r,i):a(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},tn,Qr=Symbol("constructorPrototype"),Zr=Symbol("constructorName"),rn=Symbol("exportpartsDebouncer"),en=Symbol("dynamicDependenciesLoaded"),Ae=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};Ae.eventName="exportparts-updated";var X=class extends rt{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[tn]=new et(5),this.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[rn].run(()=>{var s,i;!((s=this.exportpartsPrefix)===null||s===void 0)&&s.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Zr]=this.constructor.name,this[Qr]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Zr]&&Object.setPrototypeOf(this,this[Qr])}connectedCallback(){var t;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let r=this.constructor;r[en]||(r[en]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(Ae.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(Ae.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate(),t.has("exportparts")&&this.dispatchEvent(new Ae)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:s}=this.elementToFocus;if(n!=null){let i=[...s??[],n];r=Jr(this.shadowRoot,...i)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,n,s;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((s=this.customStylesheet)!==null&&s!==void 0?s:"")}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)}}setExportpartsAttribute(t){var r,n,s,i,a,o;let c=f=>f!=null&&f.trim().length>0,l=t.filter(c).map(f=>f.trim());if(l.length===0){this.exportparts=void 0;return}let u=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 g=(i=(s=f.getAttribute("part"))===null||s===void 0?void 0:s.split(" "))!==null&&i!==void 0?i:[],b=(o=(a=f.getAttribute("exportparts"))===null||a===void 0?void 0:a.split(",").map(E=>E.split(":")[1]))!==null&&o!==void 0?o:[],N=[...g,...b].filter(c).map(E=>E.trim());for(let E of N)u.add(E)}if(u.size===0){this.exportparts=void 0;return}let p=[...u.values()].flatMap(f=>l.map(g=>`${f}:${g}--${f}`));this.exportparts=[...this.part,...p].join(", ")}};tn=rn;ve([(0,ce.property)()],X.prototype,"exportpartsPrefix",void 0);ve([qr([])],X.prototype,"exportpartsPrefixes",void 0);ve([(0,ce.property)({reflect:!0})],X.prototype,"exportparts",void 0);ve([(0,ce.property)()],X.prototype,"customStylesheet",void 0);ve([(0,ce.property)()],X.prototype,"elementToFocus",void 0);ve([(0,ce.state)()],X.prototype,"useAdoptedStyleSheets",void 0);function nt(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Ie=Symbol("internalReduxEventsUnsubscribers"),ie=Symbol("internalStoresUnsubscribers"),le=Symbol("internalStores"),gi=Qe(Symbol("withRedux"),function(e){var t,r,n;class s extends e{constructor(){super(...arguments),this[t]=new Map,this[r]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(a){super.willUpdate(a),[...this.reduxConstructor.reduxReactiveProperties].some(o=>a.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[le].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[le].values()][0]}getStore(a){return a==null?this.getUnnamedStore():this[le].get(a)}addStore(a,o){var c;o=(c=o??a.name)!==null&&c!==void 0?c:"default-store",this.unsubscribeFromStore(o),this[le].set(o,a),this.subscribeToStore(o,a),this.updateFromStores()}removeStore(a){let o=typeof a=="string"?a:a.name;this.unsubscribeFromStore(o),this[le].delete(o)}setupStores(){this.unsubscribeFromStores(),this[le].forEach((a,o)=>this.subscribeToStore(o,a)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((a,o)=>{let c=this.constructor.getPropertyOptions(o);if(!c?.attribute||!this.hasAttribute(typeof c?.attribute=="string"?c.attribute:o)){let l=this.getStore(a.store);l&&(a.store?this[ie].has(a.store):this[ie].size>0)&&(this[o]=a.selector(l.getState(),this))}})}subscribeToStore(a,o){var c;this[ie].set(a,o.subscribe(()=>this.updateFromStores())),this[Ie].set(a,[]),nt(o)&&o.eventBus&&((c=this.reduxConstructor.reduxEventListeners)===null||c===void 0||c.forEach((l,u)=>{if(typeof this[u]=="function"&&(!l.store||o.name===l.store)){let p=f=>this[u](f);o.addEventListener(l.eventName,p),this[Ie].get(a).push(()=>o.removeEventListener(l.eventName,p))}})),this.onStoreAvailable(a)}unsubscribeFromStores(){this[ie].forEach((a,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(a){var o;this[ie].has(a)&&this[ie].get(a)(),this[ie].delete(a),(o=this[Ie].get(a))===null||o===void 0||o.forEach(c=>c()),this[Ie].delete(a)}onStoreAvailable(a){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=ie,r=le,n=Ie,s.reduxProperties=new Map,s.reduxReactiveProperties=new Set,s.reduxEventListeners=new Map,s}),nn=class extends gi(X){};function M(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 Si=typeof Symbol=="function"&&Symbol.observable||"@@observable",sn=Si,Yt=()=>Math.random().toString(36).substring(7).split("").join("."),Ai={INIT:`@@redux/INIT${Yt()}`,REPLACE:`@@redux/REPLACE${Yt()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Yt()}`},st=Ai;function it(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Xt(e,t,r){if(typeof e!="function")throw new Error(M(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(M(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(M(1));return r(Xt)(e,t)}let n=e,s=t,i=new Map,a=i,o=0,c=!1;function l(){a===i&&(a=new Map,i.forEach((E,L)=>{a.set(L,E)}))}function u(){if(c)throw new Error(M(3));return s}function p(E){if(typeof E!="function")throw new Error(M(4));if(c)throw new Error(M(5));let L=!0;l();let U=o++;return a.set(U,E),function(){if(L){if(c)throw new Error(M(6));L=!1,l(),a.delete(U),i=null}}}function f(E){if(!it(E))throw new Error(M(7));if(typeof E.type>"u")throw new Error(M(8));if(typeof E.type!="string")throw new Error(M(17));if(c)throw new Error(M(9));try{c=!0,s=n(s,E)}finally{c=!1}return(i=a).forEach(U=>{U()}),E}function g(E){if(typeof E!="function")throw new Error(M(10));n=E,f({type:st.REPLACE})}function b(){let E=p;return{subscribe(L){if(typeof L!="object"||L===null)throw new Error(M(11));function U(){let S=L;S.next&&S.next(u())}return U(),{unsubscribe:E(U)}},[sn](){return this}}}return f({type:st.INIT}),{dispatch:f,subscribe:p,getState:u,replaceReducer:g,[sn]:b}}function vi(e){Object.keys(e).forEach(t=>{let r=e[t];if(typeof r(void 0,{type:st.INIT})>"u")throw new Error(M(12));if(typeof r(void 0,{type:st.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(M(13))})}function an(e){let t=Object.keys(e),r={};for(let a=0;a<t.length;a++){let o=t[a];typeof e[o]=="function"&&(r[o]=e[o])}let n=Object.keys(r),s,i;try{vi(r)}catch(a){i=a}return function(o={},c){if(i)throw i;let l=!1,u={};for(let p=0;p<n.length;p++){let f=n[p],g=r[f],b=o[f],N=g(b,c);if(typeof N>"u"){let E=c&&c.type;throw new Error(M(14))}u[f]=N,l=l||N!==b}return l=l||n.length!==Object.keys(o).length,l?u:o}}function ke(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function on(...e){return t=>(r,n)=>{let s=t(r,n),i=()=>{throw new Error(M(15))},a={getState:s.getState,dispatch:(c,...l)=>i(c,...l)},o=e.map(c=>c(a));return i=ke(...o)(s.dispatch),{...s,dispatch:i}}}function cn(e){return it(e)&&"type"in e&&typeof e.type=="string"}var En=Symbol.for("immer-nothing"),ln=Symbol.for("immer-draftable"),D=Symbol.for("immer-state");function q(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var B=Object,_e=B.getPrototypeOf,lt="constructor",mt="prototype",er="configurable",ut="enumerable",ot="writable",Ue="value",J=e=>!!e&&!!e[D];function H(e){return e?gn(e)||Et(e)||!!e[ln]||!!e[lt]?.[ln]||gt(e)||St(e):!1}var xi=B[mt][lt].toString(),un=new WeakMap;function gn(e){if(!e||!cr(e))return!1;let t=_e(e);if(t===null||t===B[mt])return!0;let r=B.hasOwnProperty.call(t,lt)&&t[lt];if(r===Object)return!0;if(!xe(r))return!1;let n=un.get(r);return n===void 0&&(n=Function.toString.call(r),un.set(r,n)),n===xi}function yt(e,t,r=!0){je(e)===0?(r?Reflect.ownKeys(e):B.keys(e)).forEach(s=>{t(s,e[s],e)}):e.forEach((n,s)=>t(s,n,e))}function je(e){let t=e[D];return t?t.type_:Et(e)?1:gt(e)?2:St(e)?3:0}var Jt=(e,t,r=je(e))=>r===2?e.has(t):B[mt].hasOwnProperty.call(e,t),tr=(e,t,r=je(e))=>r===2?e.get(t):e[t],dt=(e,t,r,n=je(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function _i(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Et=Array.isArray,gt=e=>e instanceof Map,St=e=>e instanceof Set,cr=e=>typeof e=="object",xe=e=>typeof e=="function",Qt=e=>typeof e=="boolean";function bi(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var ee=e=>e.copy_||e.base_;var lr=e=>e.modified_?e.copy_:e.base_;function rr(e,t){if(gt(e))return new Map(e);if(St(e))return new Set(e);if(Et(e))return Array[mt].slice.call(e);let r=gn(e);if(t===!0||t==="class_only"&&!r){let n=B.getOwnPropertyDescriptors(e);delete n[D];let s=Reflect.ownKeys(n);for(let i=0;i<s.length;i++){let a=s[i],o=n[a];o[ot]===!1&&(o[ot]=!0,o[er]=!0),(o.get||o.set)&&(n[a]={[er]:!0,[ot]:!0,[ut]:o[ut],[Ue]:e[a]})}return B.create(_e(e),n)}else{let n=_e(e);if(n!==null&&r)return{...e};let s=B.create(n);return B.assign(s,e)}}function ur(e,t=!1){return At(e)||J(e)||!H(e)||(je(e)>1&&B.defineProperties(e,{set:at,add:at,clear:at,delete:at}),B.freeze(e),t&&yt(e,(r,n)=>{ur(n,!0)},!1)),e}function Ci(){q(2)}var at={[Ue]:Ci};function At(e){return e===null||!cr(e)?!0:B.isFrozen(e)}var pt="MapSet",nr="Patches",dn="ArrayMethods",Sn={};function ue(e){let t=Sn[e];return t||q(0,e),t}var pn=e=>!!Sn[e];var Be,An=()=>Be,Oi=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:pn(pt)?ue(pt):void 0,arrayMethodsPlugin_:pn(dn)?ue(dn):void 0});function fn(e,t){t&&(e.patchPlugin_=ue(nr),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function sr(e){ir(e),e.drafts_.forEach(Ti),e.drafts_=null}function ir(e){e===Be&&(Be=e.parent_)}var hn=e=>Be=Oi(Be,e);function Ti(e){let t=e[D];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function mn(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];if(e!==void 0&&e!==r){r[D].modified_&&(sr(t),q(4)),H(e)&&(e=yn(t,e));let{patchPlugin_:s}=t;s&&s.generateReplacementPatches_(r[D].base_,e,t)}else e=yn(t,r);return Ri(t,e,!0),sr(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==En?e:void 0}function yn(e,t){if(At(t))return t;let r=t[D];if(!r)return ft(t,e.handledSet_,e);if(!vt(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(e);_n(r,e)}return r.copy_}function Ri(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&ur(t,r)}function vn(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var vt=(e,t)=>e.scope_===t,wi=[];function xn(e,t,r,n){let s=ee(e),i=e.type_;if(n!==void 0&&tr(s,n,i)===t){dt(s,n,r,i);return}if(!e.draftLocations_){let o=e.draftLocations_=new Map;yt(s,(c,l)=>{if(J(l)){let u=o.get(l)||[];u.push(c),o.set(l,u)}})}let a=e.draftLocations_.get(t)??wi;for(let o of a)dt(s,o,r,i)}function Ni(e,t,r){e.callbacks_.push(function(s){let i=t;if(!i||!vt(i,s))return;s.mapSetPlugin_?.fixSetContents(i);let a=lr(i);xn(e,i.draft_??i,a,r),_n(i,s)})}function _n(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let s=n.getPath(e);s&&n.generatePatches_(e,s,t)}vn(e)}}function Li(e,t,r){let{scope_:n}=e;if(J(r)){let s=r[D];vt(s,n)&&s.callbacks_.push(function(){ct(e);let a=lr(s);xn(e,r,a,t)})}else H(r)&&e.callbacks_.push(function(){let i=ee(e);e.type_===3?i.has(r)&&ft(r,n.handledSet_,n):tr(i,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&ft(tr(e.copy_,t,e.type_),n.handledSet_,n)})}function ft(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||J(e)||t.has(e)||!H(e)||At(e)||(t.add(e),yt(e,(n,s)=>{if(J(s)){let i=s[D];if(vt(i,r)){let a=lr(i);dt(e,n,a,e.type_),vn(i)}}else H(s)&&ft(s,t,r)})),e}function Mi(e,t){let r=Et(e),n={type_:r?1:0,scope_:t?t.scope_:An(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},s=n,i=ht;r&&(s=[n],i=He);let{revoke:a,proxy:o}=Proxy.revocable(s,i);return n.draft_=o,n.revoke_=a,[o,n]}var ht={get(e,t){if(t===D)return e;let r=e.scope_.arrayMethodsPlugin_,n=e.type_===1&&typeof t=="string";if(n&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);let s=ee(e);if(!Jt(s,t,e.type_))return Pi(e,s,t);let i=s[t];if(e.finalized_||!H(i)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&bi(t))return i;if(i===Zt(e.base_,t)||Di(e,t,i)){ct(e);let a=e.type_===1?+t:t,o=or(e.scope_,i,e,a);return e.copy_[a]=o}return i},has(e,t){return t in ee(e)},ownKeys(e){return Reflect.ownKeys(ee(e))},set(e,t,r){let n=bn(ee(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let s=Zt(ee(e),t),i=s?.[D];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(_i(r,s)&&(r!==void 0||Jt(e.base_,t,e.type_)))return!0;ct(e),ar(e)}return e.copy_[t]===r&&(r!==void 0||Jt(e.copy_,t,e.type_))||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),Li(e,t,r)),!0},deleteProperty(e,t){return ct(e),Zt(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),ar(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let r=ee(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[ot]:!0,[er]:e.type_!==1||t!=="length",[ut]:n[ut],[Ue]:r[t]}},defineProperty(){q(11)},getPrototypeOf(e){return _e(e.base_)},setPrototypeOf(){q(12)}},He={};for(let e in ht){let t=ht[e];He[e]=function(){let r=arguments;return r[0]=r[0][0],t.apply(this,r)}}He.deleteProperty=function(e,t){return He.set.call(this,e,t,void 0)};He.set=function(e,t,r){return ht.set.call(this,e[0],t,r,e[0])};function Zt(e,t){let r=e[D];return(r?ee(r):e)[t]}function Di(e,t,r){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!H(r)||r[D]?!1:e.baseRefs_.has(r)}function Pi(e,t,r){let n=bn(t,r);return n?Ue in n?n[Ue]:n.get?.call(e.draft_):void 0}function bn(e,t){if(!(t in e))return;let r=_e(e);for(;r;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=_e(r)}}function ar(e){e.modified_||(e.modified_=!0,e.parent_&&ar(e.parent_))}function ct(e){e.copy_||(e.assigned_=new Map,e.copy_=rr(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Ii=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,n)=>{if(xe(t)&&!xe(r)){let i=r;r=t;let a=this;return function(c=i,...l){return a.produce(c,u=>r.call(this,u,...l))}}xe(r)||q(6),n!==void 0&&!xe(n)&&q(7);let s;if(H(t)){let i=hn(this),a=or(i,t,void 0),o=!0;try{s=r(a),o=!1}finally{o?sr(i):ir(i)}return fn(i,n),mn(s,i)}else if(!t||!cr(t)){if(s=r(t),s===void 0&&(s=t),s===En&&(s=void 0),this.autoFreeze_&&ur(s,!0),n){let i=[],a=[];ue(nr).generateReplacementPatches_(t,s,{patches_:i,inversePatches_:a}),n(i,a)}return s}else q(1,t)},this.produceWithPatches=(t,r)=>{if(xe(t))return(a,...o)=>this.produceWithPatches(a,c=>t(c,...o));let n,s;return[this.produce(t,r,(a,o)=>{n=a,s=o}),n,s]},Qt(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Qt(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Qt(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){H(e)||q(8),J(e)&&(e=Cn(e));let t=hn(this),r=or(t,e,void 0);return r[D].isManual_=!0,ir(t),r}finishDraft(e,t){let r=e&&e[D];(!r||!r.isManual_)&&q(9);let{scope_:n}=r;return fn(n,t),mn(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let s=t[r];if(s.path.length===0&&s.op==="replace"){e=s.value;break}}r>-1&&(t=t.slice(r+1));let n=ue(nr).applyPatches_;return J(e)?n(e,t):this.produce(e,s=>n(s,t))}};function or(e,t,r,n){let[s,i]=gt(t)?ue(pt).proxyMap_(t,r):St(t)?ue(pt).proxySet_(t,r):Mi(t,r);return(r?.scope_??An()).drafts_.push(s),i.callbacks_=r?.callbacks_??[],i.key_=n,r&&n!==void 0?Ni(r,i,n):i.callbacks_.push(function(c){c.mapSetPlugin_?.fixSetContents(i);let{patchPlugin_:l}=c;i.modified_&&l&&l.generatePatches_(i,[],c)}),s}function Cn(e){return J(e)||q(10,e),On(e)}function On(e){if(!H(e)||At(e))return e;let t=e[D],r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=rr(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=rr(e,!0);return yt(r,(s,i)=>{dt(r,s,On(i))},n),t&&(t.finalized_=!1),r}var ki=globalThis.Iterator,vo=typeof ki?.from=="function";var Ui=new Ii,dr=Ui.produce;function Tn(e){return({dispatch:r,getState:n})=>s=>i=>typeof i=="function"?i(r,n,e):s(i)}var Rn=Tn(),wn=Tn;var Bi=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ke:ke.apply(null,arguments)},Ro=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}},Hi=e=>e&&typeof e.match=="function";function ae(e,t){function r(...n){if(t){let s=t(...n);if(!s)throw new Error(te(0));return{type:e,payload:s.payload,..."meta"in s&&{meta:s.meta},..."error"in s&&{error:s.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>cn(n)&&n.type===e,r}var Pn=class Ve extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Ve.prototype)}static get[Symbol.species](){return Ve}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Ve(...t[0].concat(this)):new Ve(...t.concat(this))}};function Nn(e){return H(e)?dr(e,()=>{}):e}function xt(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function ji(e){return typeof e=="boolean"}var Vi=()=>function(t){let{thunk:r=!0,immutableCheck:n=!0,serializableCheck:s=!0,actionCreatorCheck:i=!0}=t??{},a=new Pn;return r&&(ji(r)?a.push(Rn):a.push(wn(r.extraArgument))),a},Ki="RTK_autoBatch";var Ln=e=>t=>{setTimeout(t,e)},Gi=(e,t)=>r=>{let n=!1,s=()=>{n||(n=!0,cancelAnimationFrame(i),clearTimeout(a),r())},i=e(s),a=setTimeout(s,t)},Fi=(e={type:"raf"})=>t=>(...r)=>{let n=t(...r),s=!0,i=!1,a=!1,o=new Set,c=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Gi(window.requestAnimationFrame,100):Ln(10):e.type==="callback"?e.queueNotification:Ln(e.timeout),l=()=>{a=!1,i&&(i=!1,o.forEach(u=>u()))};return Object.assign({},n,{subscribe(u){let p=()=>s&&u(),f=n.subscribe(p);return o.add(u),()=>{f(),o.delete(u)}},dispatch(u){try{return s=!u?.meta?.[Ki],i=!s,i&&(a||(a=!0,c(l))),n.dispatch(u)}finally{s=!0}}})},$i=e=>function(r){let{autoBatch:n=!0}=r??{},s=new Pn(e);return n&&s.push(Fi(typeof n=="object"?n:void 0)),s};function In(e){let t=Vi(),{reducer:r=void 0,middleware:n,devTools:s=!0,duplicateMiddlewareCheck:i=!0,preloadedState:a=void 0,enhancers:o=void 0}=e||{},c;if(typeof r=="function")c=r;else if(it(r))c=an(r);else throw new Error(te(1));let l;typeof n=="function"?l=n(t):l=t();let u=ke;s&&(u=Bi({trace:!1,...typeof s=="object"&&s}));let p=on(...l),f=$i(p),g=typeof o=="function"?o(f):f(),b=u(...g);return Xt(c,a,b)}function kn(e){let t={},r=[],n,s={addCase(i,a){let o=typeof i=="string"?i:i.type;if(!o)throw new Error(te(28));if(o in t)throw new Error(te(29));return t[o]=a,s},addAsyncThunk(i,a){return a.pending&&(t[i.pending.type]=a.pending),a.rejected&&(t[i.rejected.type]=a.rejected),a.fulfilled&&(t[i.fulfilled.type]=a.fulfilled),a.settled&&r.push({matcher:i.settled,reducer:a.settled}),s},addMatcher(i,a){return r.push({matcher:i,reducer:a}),s},addDefaultCase(i){return n=i,s}};return e(s),[t,r,n]}function zi(e){return typeof e=="function"}function qi(e,t){let[r,n,s]=kn(t),i;if(zi(e))i=()=>Nn(e());else{let o=Nn(e);i=()=>o}function a(o=i(),c){let l=[r[c.type],...n.filter(({matcher:u})=>u(c)).map(({reducer:u})=>u)];return l.filter(u=>!!u).length===0&&(l=[s]),l.reduce((u,p)=>{if(p)if(J(u)){let g=p(u,c);return g===void 0?u:g}else{if(H(u))return dr(u,f=>p(f,c));{let f=p(u,c);if(f===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return f}}return u},o)}return a.getInitialState=i,a}var Wi=(e,t)=>Hi(e)?e.match(t):e(t);function Yi(...e){return t=>e.some(r=>Wi(r,t))}var Xi="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ji=(e=21)=>{let t="",r=e;for(;r--;)t+=Xi[Math.random()*64|0];return t},Qi=["name","message","stack","code"],pr=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},Mn=class{constructor(e,t){this.payload=e,this.meta=t}payload;meta;_type},Zi=e=>{if(typeof e=="object"&&e!==null){let t={};for(let r of Qi)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},Dn="External signal was aborted",ea=(()=>{function e(t,r,n){let s=ae(t+"/fulfilled",(c,l,u,p)=>({payload:c,meta:{...p||{},arg:u,requestId:l,requestStatus:"fulfilled"}})),i=ae(t+"/pending",(c,l,u)=>({payload:void 0,meta:{...u||{},arg:l,requestId:c,requestStatus:"pending"}})),a=ae(t+"/rejected",(c,l,u,p,f)=>({payload:p,error:(n&&n.serializeError||Zi)(c||"Rejected"),meta:{...f||{},arg:u,requestId:l,rejectedWithValue:!!p,requestStatus:"rejected",aborted:c?.name==="AbortError",condition:c?.name==="ConditionError"}}));function o(c,{signal:l}={}){return(u,p,f)=>{let g=n?.idGenerator?n.idGenerator(c):Ji(),b=new AbortController,N,E;function L(y){E=y,b.abort()}l&&(l.aborted?L(Dn):l.addEventListener("abort",()=>L(Dn),{once:!0}));let U=(async function(){let y;try{let A=n?.condition?.(c,{getState:p,extra:f});if(ra(A)&&(A=await A),A===!1||b.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let W=new Promise((_,O)=>{N=()=>{O({name:"AbortError",message:E||"Aborted"})},b.signal.addEventListener("abort",N,{once:!0})});u(i(g,c,n?.getPendingMeta?.({requestId:g,arg:c},{getState:p,extra:f}))),y=await Promise.race([W,Promise.resolve(r(c,{dispatch:u,getState:p,extra:f,requestId:g,signal:b.signal,abort:L,rejectWithValue:((_,O)=>new pr(_,O)),fulfillWithValue:((_,O)=>new Mn(_,O))})).then(_=>{if(_ instanceof pr)throw _;return _ instanceof Mn?s(_.payload,g,c,_.meta):s(_,g,c)})])}catch(A){y=A instanceof pr?a(null,g,c,A.payload,A.meta):a(A,g,c)}finally{N&&b.signal.removeEventListener("abort",N)}return n&&!n.dispatchConditionRejection&&a.match(y)&&y.meta.condition||u(y),y})();return Object.assign(U,{abort:L,requestId:g,arg:c,unwrap(){return U.then(ta)}})}}return Object.assign(o,{pending:i,rejected:a,fulfilled:s,settled:Yi(a,s),typePrefix:t})}return e.withTypes=()=>e,e})();function ta(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function ra(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Un=Symbol.for("rtk-slice-createasyncthunk"),No={[Un]:ea};function na(e,t){return`${e}/${t}`}function sa({creators:e}={}){let t=e?.asyncThunk?.[Un];return function(n){let{name:s,reducerPath:i=s}=n;if(!s)throw new Error(te(11));typeof process<"u";let a=(typeof n.reducers=="function"?n.reducers(aa()):n.reducers)||{},o=Object.keys(a),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},l={addCase(y,S){let A=typeof y=="string"?y:y.type;if(!A)throw new Error(te(12));if(A in c.sliceCaseReducersByType)throw new Error(te(13));return c.sliceCaseReducersByType[A]=S,l},addMatcher(y,S){return c.sliceMatchers.push({matcher:y,reducer:S}),l},exposeAction(y,S){return c.actionCreators[y]=S,l},exposeCaseReducer(y,S){return c.sliceCaseReducersByName[y]=S,l}};o.forEach(y=>{let S=a[y],A={reducerName:y,type:na(s,y),createNotation:typeof n.reducers=="function"};ca(S)?ua(A,S,l,t):oa(A,S,l)});function u(){let[y={},S=[],A=void 0]=typeof n.extraReducers=="function"?kn(n.extraReducers):[n.extraReducers],W={...y,...c.sliceCaseReducersByType};return qi(n.initialState,_=>{for(let O in W)_.addCase(O,W[O]);for(let O of c.sliceMatchers)_.addMatcher(O.matcher,O.reducer);for(let O of S)_.addMatcher(O.matcher,O.reducer);A&&_.addDefaultCase(A)})}let p=y=>y,f=new Map,g=new WeakMap,b;function N(y,S){return b||(b=u()),b(y,S)}function E(){return b||(b=u()),b.getInitialState()}function L(y,S=!1){function A(_){let O=_[y];return typeof O>"u"&&S&&(O=xt(g,A,E)),O}function W(_=p){let O=xt(f,S,()=>new WeakMap);return xt(O,_,()=>{let Tr={};for(let[ii,ai]of Object.entries(n.selectors??{}))Tr[ii]=ia(ai,_,()=>xt(g,_,E),S);return Tr})}return{reducerPath:y,getSelectors:W,get selectors(){return W(A)},selectSlice:A}}let U={name:s,reducer:N,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:E,...L(i),injectInto(y,{reducerPath:S,...A}={}){let W=S??i;return y.inject({reducerPath:W,reducer:N},A),{...U,...L(W,!0)}}};return U}}function ia(e,t,r,n){function s(i,...a){let o=t(i);return typeof o>"u"&&n&&(o=r()),e(o,...a)}return s.unwrapped=e,s}var Bn=sa();function aa(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function oa({type:e,reducerName:t,createNotation:r},n,s){let i,a;if("reducer"in n){if(r&&!la(n))throw new Error(te(17));i=n.reducer,a=n.prepare}else i=n;s.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?ae(e,a):ae(e))}function ca(e){return e._reducerDefinitionType==="asyncThunk"}function la(e){return e._reducerDefinitionType==="reducerWithPrepare"}function ua({type:e,reducerName:t},r,n,s){if(!s)throw new Error(te(18));let{payloadCreator:i,fulfilled:a,pending:o,rejected:c,settled:l,options:u}=r,p=s(e,i,u);n.exposeAction(t,p),a&&n.addCase(p.fulfilled,a),o&&n.addCase(p.pending,o),c&&n.addCase(p.rejected,c),l&&n.addMatcher(p.settled,l),n.exposeCaseReducer(t,{fulfilled:a||_t,pending:o||_t,rejected:c||_t,settled:l||_t})}function _t(){}var Hn="listener",jn="completed",Vn="cancelled",Lo=`task-${Vn}`,Mo=`task-${jn}`,Do=`${Hn}-${Vn}`,Po=`${Hn}-${jn}`;var{assign:Kn}=Object;var fr="listenerMiddleware";var da=Kn(ae(`${fr}/add`),{withTypes:()=>da}),Io=ae(`${fr}/removeAll`),pa=Kn(ae(`${fr}/remove`),{withTypes:()=>pa});function te(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var fa=Qe(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,n,s){this.eventBus.addEventListener(r,n,s)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,s){this.eventBus.removeEventListener(r,n,s)}}}),bt=class extends fa(Object){};window.ftReduxStores||(window.ftReduxStores={});var Gn=class e extends bt{static get(t){var r;let n=typeof t=="string"?t:t.name,s=typeof t=="string"?void 0:t,i=window.ftReduxStores[n];if(nt(i))return i;if(s==null)return;let a=Bn({...s,reducers:(r=s.reducers)!==null&&r!==void 0?r:{}}),o=In({reducer:(c,l)=>{if(l.type==="CLEAR_FT_REDUX_STORE"){let u=De(a.getInitialState());for(let p of l.keeping)u[p]=(c??u)[p];return u}else if(typeof l.type=="string"&&l.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...c,...l.overwrites};return a.reducer(c,l)}});return window.ftReduxStores[s.name]=new e(a,o,s.eventBus)}constructor(t,r,n){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Ze,this.injectInto=(i,a)=>this.reduxSlice.injectInto(i,a),this.selectSlice=i=>this.reduxSlice.selectSlice(i);let s=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,a,o)=>{let c=a,l=i[c];return l?(...u)=>{let p=l(...u.map(s));return this.reduxStore.dispatch(p),p}:u=>{let p=c,f=this.getState()[p];Se(f,u)||this.setState({[p]:s(u)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...t){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:t})}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()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};var Ct=class{static format(t,r,n,s,i){return window.moment?window.moment(t).locale(r).format(this.getMomentDateFormat(n,s,!!i)):this.getIntlDateTime(t,r,n,s,!!i)}static getMomentDateFormat(t,r,n){return n?"LT":t?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(t,r,n,s,i){let a=typeof t=="string"?new Date(t):t,o=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(a),c=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(a);return i?c:s?`${o} ${c}`:o}static getTimezoneAsString(){let t=n=>String(Math.floor(n)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${t(Math.abs(r)/60)}:${t(Math.abs(r)%60)}`}};var Ot=h(v()),ha="ft-app-info",de=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};de.eventName="authentication-change";var Ke=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Ke.eventName="ui-locale-changed";var ma={session:(e,t)=>{(0,Ot.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>m.dispatchEvent(new de(t.payload)),0))}},m=Ot.FtReduxStore.get({name:ha,reducers:ma,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1,stickyFilters:void 0}});var Fn=h(v()),Tt=function(e,t,r,n){var s=arguments.length,i=s<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 o=e.length-1;o>=0;o--)(a=e[o])&&(i=(s<3?a(i):s>3?a(t,r,i):a(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},dc=(0,Fn.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(m)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var s,i;return((i=(s=this.metadataDescriptors.find(o=>o.key===n))===null||s===void 0?void 0:s.date)!==null&&i!==void 0?i:!1)?o=>Ct.format(o,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Tt([(0,hr.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),Tt([(0,hr.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),Tt([Wt({store:m.name,selector:r=>{var n,s;return(s=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&s!==void 0?s:[]}})],t.prototype,"metadataDescriptors",void 0),Tt([Wt({store:m.name})],t.prototype,"uiLocale",void 0),t});var $n;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})($n||($n={}));var zn;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(zn||(zn={}));var qn;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(qn||(qn={}));var Wn;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(Wn||(Wn={}));var Yn;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Yn||(Yn={}));var Xn;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(Xn||(Xn={}));var Jn;(function(e){e.OFFICIAL="OFFICIAL",e.AI="AI"})(Jn||(Jn={}));var Qn;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.CHATBOT__RATE="CHATBOT__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",e.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",e.AI__RATE="AI__RATE",e.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",e.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(Qn||(Qn={}));var Zn;(function(e){e.STANDARD="STANDARD",e.STRUCTURAL="STRUCTURAL"})(Zn||(Zn={}));var es;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(es||(es={}));var ts;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT",e.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",e.LINK_PREVIEW="LINK_PREVIEW",e.UD_VIEWER="UD_VIEWER",e.ASSET_VIEWER="ASSET_VIEWER"})(ts||(ts={}));var rs;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(rs||(rs={}));var ns;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(ns||(ns={}));var ss;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(ss||(ss={}));var is;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(is||(is={}));var as;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(as||(as={}));var os;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(os||(os={}));var cs;(function(e){e.ASC="ASC",e.DESC="DESC"})(cs||(cs={}));var ls;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(ls||(ls={}));var us;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(us||(us={}));var ds;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(ds||(ds={}));var ps;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(ps||(ps={}));var fs;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(fs||(fs={}));var hs;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(hs||(hs={}));var ms;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(ms||(ms={}));var ys;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(ys||(ys={}));var Es;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Es||(Es={}));var T;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(T||(T={}));var K;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(K||(K={}));var gs;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(gs||(gs={}));var Ss;(function(e){e.UNREACHABLE="UNREACHABLE",e.UNAUTHORIZED="UNAUTHORIZED",e.FORBIDDEN="FORBIDDEN",e.INCOMPATIBLE="INCOMPATIBLE",e.FAILED="FAILED",e.OK="OK"})(Ss||(Ss={}));var As;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(As||(As={}));var vs;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SUMMARY="SUMMARY",e.SEMANTIC_SEARCH="SEMANTIC_SEARCH",e.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",e.DOCUMENTATION="DOCUMENTATION",e.OTHER="OTHER"})(vs||(vs={}));var xs;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(xs||(xs={}));var _s;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(_s||(_s={}));var bs;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(bs||(bs={}));var Cs;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(Cs||(Cs={}));var Os;(function(e){e.IN_PROGRESS="IN_PROGRESS",e.ERROR="ERROR",e.DONE="DONE"})(Os||(Os={}));var Ts;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(Ts||(Ts={}));var Rs;(function(e){e.SOURCES="SOURCES",e.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",e.VOCABULARIES="VOCABULARIES",e.METADATA="METADATA",e.PRETTY_URL="PRETTY_URL",e.ACCESS_RULE="ACCESS_RULE",e.DESIGNED_PAGES="DESIGNED_PAGES",e.THEME_STUDIO="THEME_STUDIO",e.PORTAL_GENERAL="PORTAL_GENERAL",e.ASSETS="ASSETS",e.CODE_LIBRARY="CODE_LIBRARY",e.THEME="THEME",e.CONTENT_STYLES="CONTENT_STYLES",e.HOMEPAGE="HOMEPAGE",e.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",e.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",e.PORTAL_METADATA="PORTAL_METADATA",e.LANGUAGES="LANGUAGES",e.PRINT_TEMPLATES="PRINT_TEMPLATES",e.OFFLINE="OFFLINE",e.CUSTOM_JS="CUSTOM_JS",e.CONFIDENTIALITY="CONFIDENTIALITY",e.NOTIFICATIONS="NOTIFICATIONS"})(Rs||(Rs={}));var ws;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(ws||(ws={}));var ya={[T.PERSONAL_BOOK_SHARE_USER]:[T.PERSONAL_BOOK_USER],[T.HTML_EXPORT_USER]:[T.PERSONAL_BOOK_USER],[T.PDF_EXPORT_USER]:[T.PERSONAL_BOOK_USER],[T.KHUB_ADMIN]:[T.CONTENT_PUBLISHER],[T.ADMIN]:[T.KHUB_ADMIN,T.USERS_ADMIN,T.PORTAL_ADMIN,T.BEHAVIOR_DATA_USER],[T.GENERATIVE_AI_EXPORT_USER]:[T.GENERATIVE_AI_USER]};function Ns(e,t){return e===t||(ya[e]??[]).some(r=>Ns(r,t))}function Ls(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>Ns(n,t))}var Mt=h(v());var mr=h(v());var pe=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:n}=m.getState(),s=t??n;if(r&&s&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,s,!0)}static await(t){return new Promise(r=>{let n=e.get(t);if(n)r(n);else{let s=m.subscribe(()=>{n=e.get(t),n&&(s(),r(n))})}})}};var be=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:pe.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):pe.await()}};var j=class extends be{constructor(t=!0,r){var n;super(r),this.sortObjectFields=(i,a)=>typeof a!="object"||a==null||Array.isArray(a)?a:Object.fromEntries(Object.entries(a).sort(([o],[c])=>o.localeCompare(c)));let s=this.constructor;s.commonCache=(n=s.commonCache)!==null&&n!==void 0?n:new mr.CacheRegistry,this.cache=t?s.commonCache:new mr.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var Rt=class extends j{async listMySearches(){let{session:t}=m.getState();return Ls(t,T.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),300*1e3):[]}};var wt=class extends j{async listMyBookmarks(){let t=m.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),300*1e3):[]}};var Nt=class extends j{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(t){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${t}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(t){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${t}`),this.CACHE_DURATION)}isAuthenticated(){let t=m.getState().session;return!!t?.sessionAuthenticated}};var Lt=class extends j{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let t=m.getState().session;return!!t?.sessionAuthenticated}};var Ea="ft-user-assets",ga={setAssetCount:(e,t)=>{let{userAssetType:r,count:n}=t.payload.assetCount;e.assetCounts.allAsset[r]=n},clearAssetCount:e=>{Object.values(K).forEach(t=>{e.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(e,t)=>{let r=t.payload.mapId;e.assetCounts.bookmarkByMap[r]=t.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}},addAsset:(e,t)=>{let{assetType:r,mapId:n,asset:s}=t.payload;Er(e,r,[...yr(e,r),s]),Ms(e,r,1,n),Ds(e,s)},editAsset:(e,t)=>{let{assetType:r,asset:n}=t.payload;Er(e,r,yr(e,r).map(s=>s.id===n.id?n:s)),Ds(e,n)},removeAsset:(e,t)=>{let{assetType:r,mapId:n,assetId:s}=t.payload;Er(e,r,yr(e,r).filter(i=>i.id!==s)),Ms(e,r,-1,n)}},Ps={[K.SEARCHES]:"savedSearches",[K.BOOKMARKS]:"bookmarks",[K.BOOKS]:void 0,[K.COLLECTIONS]:void 0},yr=(e,t)=>{var r;let n=Ps[t];return n?(r=e[n])!==null&&r!==void 0?r:[]:[]},Er=(e,t,r)=>{let n=Ps[t];n&&(e[n]=r)},Ms=(e,t,r,n)=>{let s=e.assetCounts.allAsset[t];if(s!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,s+r),t===K.BOOKMARKS&&n)){let i=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,i+r)}},Ds=(e,t)=>{let r=e.assetLabels.map(s=>s.title),n=t.labels.filter(s=>!r.includes(s)).map(s=>({title:s}));e.assetLabels.push(...n)},I=Mt.FtReduxStore.get({name:Ea,reducers:ga,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(K).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),gr=class{constructor(t=new Nt,r=new Lt){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=m.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new wt,this.savedSearchesService=new Rt,m.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=m.getState();(0,Mt.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),I.actions.clearAssetCount(),I.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),I.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),I.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();I.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();I.actions.assetLabels(t)}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&I.getState().assetCounts.allAsset[t]!==r.count&&I.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&I.getState().assetCounts.bookmarkByMap[t]!==r.count&&I.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(I.getState().assetCounts.bookmarkByMap).length!==0;t===K.BOOKMARKS&&r&&I.actions.clearBookmarkCountByMap(),I.getState().assetCounts.allAsset[t]!==void 0&&await this.loadAssetCount(t)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let r=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;I.actions.bookmarks(r)}}},Sa=new gr;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Sa);var Sr=class{addCommand(t,r=!1){m.commands.add(t,r)}consumeCommand(t){return m.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Sr;var G=h(v());var Is,Ce=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},Aa=Symbol("clearAfterUnitTest"),Dt=class extends(0,G.withEventBus)(j){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Is]=()=>{this.defaultMessages={},this.cache=new G.CacheRegistry,this.listeners={}},this.currentUiLocale=m.getState().uiLocale,m.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=m.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let r=t.name.toLowerCase();this.cache.setFinal(r,t),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,r){var n;if(t=t.toLowerCase(),r&&Object.keys(r).length>0){let s={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...r};(0,G.deepEqual)(this.defaultMessages[t],s)||(this.defaultMessages[t]=s,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var r,n;return this.fetchContext(t),(n=(r=this.cache.getNow(t))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,r){let n=t.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(t,r,...n){var s;let i=t.toLowerCase(),a=this.resolveContext(i);return new G.ParametrizedLabelResolver((s=this.defaultMessages[i])!==null&&s!==void 0?s:{},a).resolve(r,...n)}async fetchContext(t){let r=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),r&&await this.notify(t)}catch(s){!(s instanceof G.CanceledPromiseError)&&r&&console.error(s)}return n}subscribe(t,r){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(r),()=>{var s;return(s=this.listeners[t])===null||s===void 0?void 0:s.delete(r)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new Ce({loadedContexts:t})),this.dispatchEvent(new Ce({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new Ce({loadedContexts:[t]})),this.dispatchEvent(new Ce({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,G.delay)(0).then(()=>n()).catch(()=>null)))}};Is=Aa;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Dt{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Dt{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Oe=window.FluidTopicsI18nService,Pt=window.FluidTopicsCustomI18nService;var ks=h(v()),Ar=class{highlightHtml(t,r,n){(0,ks.highlightHtml)(t,r,n)}};window.FluidTopicsHighlightHtmlService=new Ar;var Us=h(v());var vr=class{isDate(t){var r,n,s,i;return(i=(s=((n=(r=m.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(o=>o.key===t))===null||s===void 0?void 0:s.date)!==null&&i!==void 0?i:!1}format(t,r){var n,s,i,a;if(t==null)return"";try{return Us.DateFormatter.format(t,(n=r?.locale)!==null&&n!==void 0?n:m.getState().uiLocale,(s=r?.longFormat)!==null&&s!==void 0?s:!1,(i=r?.withTime)!==null&&i!==void 0?i:!1,(a=r?.onlyTime)!==null&&a!==void 0?a:!1)}catch(o){throw console.error(`Date ${JSON.stringify(t)} is not valid`,o),o}}};window.FluidTopicsDateService=new vr;var Bs=h(v());var Ge=class{static get(t,r){var n,s,i,a;let o=m.getState(),{lang:c,region:l}=(i=(s=(n=o.localesConfiguration)===null||n===void 0?void 0:n.defaultLocales)===null||s===void 0?void 0:s.defaultContentLocale)!==null&&i!==void 0?i:{lang:"en",region:"US"};return new Bs.SearchPlaceConverter(o.baseUrl,t??20,(a=o.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed,r??`${c}-${l}`)}};var xr=class{urlToSearchRequest(t){return Ge.get().parse(t)}searchRequestToUrl(t){return Ge.get().serialize(t)}};window.FluidTopicsUrlService=new xr;var re=h(v());var fe=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{nextLocation:t}})}};fe.eventName="before-location-change";var he=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};he.eventName="change";var _r=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let r=sessionStorage.getItem(this.itemName(t));return r?JSON.parse(r):void 0}set(t,r){sessionStorage.setItem(this.itemName(t),JSON.stringify(r))}},Hs=new _r;var It=class e extends re.WithEventBus{static build(){return new e(window.history,Hs,()=>window.location,!1)}constructor(t,r,n,s){var i,a;super(),this.history=t,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(a=(i=t.state)===null||i===void 0?void 0:i.index)!==null&&a!==void 0?a:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(s)}setCurrentState(t,r=!1){let n=r&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,re.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new he(this.currentItem())),0)}installProxies(){let t=r=>(n,s,[i,a,o])=>{let c=new fe(new URL(typeof o=="string"?o:(o??this.windowLocation()).href,window.location.origin));this.dispatchEvent(c);let l=r(),u={...l===this.currentIndex?this.currentState:void 0,...i,index:l,href:c.detail.nextLocation.href};n.apply(s,[u,a,u.href]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(t){for(let r=this.history.length-1;r>=0;r--)t?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(t){var r;let n={...this.buildCurrentState(),...t,index:this.currentIndex,title:(r=t?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addBeforeLocationChangeListener(t){this.addEventListener(fe.eventName,t)}removeBeforeLocationChangeListener(t){this.removeEventListener(fe.eventName,t)}addHistoryChangeListener(t){this.addEventListener(he.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(he.eventName,t)}currentItem(){return(0,re.deepCopy)(this.currentState)}back(){let t=this.previousDifferentMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,re.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(t){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,re.deepCopy)(r.find(n=>t(n)))}previousDifferentMajorPosition(){let t=this.currentIndex>0?this.currentIndex-1:0;for(;t>0&&!this.isDifferentMajorState(t);)t--;return t}forward(){let t=this.nextMajorPosition();t&&t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){let t=this.nextMajorPosition();if(t)return(0,re.deepCopy)(this.states[t])}nextMajorPosition(){let t=this.currentIndex;if(!(t>=this.states.length)){do t++;while(t<this.states.length&&!this.isDifferentMajorState(t));return this.getHigherPositionInTheSameState(t)}}getHigherPositionInTheSameState(t){var r;let n=(r=this.states[t])===null||r===void 0?void 0:r.majorStateId;if(!n)return t;let s=t,i=t+1;for(;this.states.length>i&&!this.isDifferentMajorState(i,n);)this.hasState(i)&&(s=i),i++;return s}buildCurrentState(){var t,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&r!==void 0?r:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,r){var n;if(!this.hasState(t))return!1;let s=r??this.currentState.majorStateId,i=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return i==null||i!=s}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=It.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:e=>window.FluidTopicsInternalHistoryService.backwardItemMatching(e),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e),addBeforeLocationChangeListener:e=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(e),removeBeforeLocationChangeListener:e=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(e)});var js=h(Y());var Vs=js.css`
82
+ `;var Fs=h(Y()),k=h(V()),Ee=h(v());var me=h(v());function Ks(e,t){let{authenticationRequired:r,session:n}=m.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(t):e()}var kt=class extends be{async updateUiLocale(t){return(await this.awaitApi).updateUiLocale(t)}};var br=class e extends me.FtStateManager{static build(t){return new e(m,t)}constructor(t,r){super(),this.store=t,this.cache=new me.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new kt,this.cleanSessionDebouncer=new me.Debouncer,this.reloadConfiguration=()=>{var n;(n=this.cache)===null||n===void 0||n.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new me.Debouncer(500),this.apiProvider=r??(()=>pe.get())}setWithManualResources(t){this.withManualResources=t,this.updateIfNeeded()}addListeners(){this.store.addEventListener(de.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(de.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let t=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});this.setSession(t)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var t;let r=await this.cache.get("availableContentLocales",()=>Ks(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((t=r.contentLocales)!==null&&t!==void 0?t:[])}setStickyFilters(t){this.store.actions.stickyFilters(t)}setBaseUrl(t){this.store.actions.baseUrl(t),window.fluidTopicsBaseUrl=t}setTenantId(t){this.store.actions.tenantId(t)}setApiIntegrationIdentifier(t){this.store.actions.apiIntegrationIdentifier(t)}setApiIntegrationAppVersion(t){this.store.actions.apiIntegrationAppVersion(t)}setUiLocale(t){this.store.actions.uiLocale(t)}setLocalesConfiguration(t){this.store.actions.localesConfiguration(t),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(t){this.store.actions.availableContentLocales(t),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(t,r){this.userLocaleService.updateUiLocale({uiLocale:t,contentLocale:r}).then(n=>{n.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Ke(n)))}).catch(()=>{})}setMetadataConfiguration(t){this.store.actions.metadataConfiguration(t),setTimeout(()=>this.updateIfNeeded())}setNoCustom(t){this.store.actions.noCustom(t)}setEditorMode(t){this.store.actions.editorMode(t)}setNoCustomComponent(t){this.store.actions.noCustomComponent(t)}setNoCustomCode(t){this.store.actions.noCustomCode(t)}setSession(t){this.store.actions.session(t),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(t){this.store.actions.openExternalDocumentInNewTab(t)}setNavigatorOnline(t){this.store.actions.navigatorOnline(t)}setForcedOffline(t){this.store.actions.forcedOffline(t)}setAuthenticationRequired(t){this.store.actions.authenticationRequired(t)}},Gs=br.build();var ye=class extends Event{constructor(t,r,n,s){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=r,this.callback=n,this.subscribe=s??!1}};var Fe=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=t=>{let r=this.pendingContextRequests.get(t.context);if(r===void 0)return;this.pendingContextRequests.delete(t.context);let{requests:n}=r;for(let{elementRef:s,callbackRef:i}of n){let a=s.deref(),o=i.deref();a===void 0||o===void 0||a.dispatchEvent(new ye(t.context,a,o,!0))}},this.onContextRequest=t=>{if(t.subscribe!==!0)return;let r=t.contextTarget??t.composedPath()[0],n=t.callback,s=this.pendingContextRequests.get(t.context);s===void 0&&this.pendingContextRequests.set(t.context,s={callbacks:new WeakMap,requests:[]});let i=s.callbacks.get(r);i===void 0&&s.callbacks.set(r,i=new WeakSet),i.has(n)||(i.add(n),s.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(n)}))}}attach(t){t.addEventListener("context-request",this.onContextRequest),t.addEventListener("context-provider",this.onContextProvider)}detach(t){t.removeEventListener("context-request",this.onContextRequest),t.removeEventListener("context-provider",this.onContextProvider)}};var w=function(e,t,r,n){var s=arguments.length,i=s<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 o=e.length-1;o>=0;o--)(a=e[o])&&(i=(s<3?a(i):s>3?a(t,r,i):a(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},x=class extends Ee.FtLitElementRedux{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.noCustomCode=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=Gs,this.contextRoot=new Fe}render(){return Fs.html`
83
83
  <slot></slot>
84
- `}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.contextRoot.detach(document.body)}update(t){var r;super.update(t),t.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),t.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),t.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),t.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),t.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),t.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),t.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),t.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),t.has("session")&&this.stateManager.setSession(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(n=>Ce.addContext(n)),t.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),t.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),t.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};x.elementDefinitions={};x.styles=js;w([(0,k.property)()],x.prototype,"baseUrl",void 0);w([(0,k.property)()],x.prototype,"tenantId",void 0);w([(0,k.property)()],x.prototype,"apiIntegrationIdentifier",void 0);w([(0,k.property)()],x.prototype,"apiIntegrationAppVersion",void 0);w([(0,k.property)()],x.prototype,"uiLocale",void 0);w([(0,me.jsonProperty)(null)],x.prototype,"availableUiLocales",void 0);w([(0,me.jsonProperty)(null)],x.prototype,"metadataConfiguration",void 0);w([(0,k.property)({type:Boolean})],x.prototype,"editorMode",void 0);w([(0,k.property)({type:Boolean})],x.prototype,"noCustom",void 0);w([(0,k.property)({type:Boolean})],x.prototype,"openExternalDocumentInNewTab",void 0);w([(0,k.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],x.prototype,"noCustomComponent",void 0);w([(0,k.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],x.prototype,"noCustomCode",void 0);w([(0,k.property)({type:Boolean})],x.prototype,"withManualResources",void 0);w([(0,k.property)({type:Boolean})],x.prototype,"navigatorOnline",void 0);w([(0,k.property)({type:Boolean})],x.prototype,"forcedOffline",void 0);w([(0,k.property)({type:Boolean})],x.prototype,"authenticationRequired",void 0);w([(0,me.jsonProperty)([])],x.prototype,"messageContexts",void 0);w([(0,me.jsonProperty)(void 0)],x.prototype,"session",void 0);var zs=h(v());var $s={"ft-app-context":x};(0,zs.customElements)($s);var It=class e{static build(t){return new e(t)}static buildCustom(t){return new e(t,!0)}static fromGwt(t){return new e(t)}get service(){return this.custom?Mt:Ce}constructor(t,r=!1){this.name=t,this.custom=r,this.properties=new Proxy({},{get:(n,s)=>{let i=s;return a=>({context:this.name,key:i,custom:this.custom,args:typeof a=="function"?void 0:a,argsProvider:typeof a=="function"?a:void 0})}}),this.messages=new Proxy({},{get:(n,s)=>(...i)=>this.service.resolveMessage(this.name,s,...i)}),this.rawMessages=new Proxy({},{get:(n,s)=>this.service.resolveRawMessage(this.name,s)}),this.keys=new Proxy({},{get:(n,s)=>()=>s}),this.attributes=new Proxy({},{get:(n,s)=>()=>({context:this.name,key:s,message:this.service.resolveRawMessage(this.name,s)})})}};var Oe=h(v());var Ws=h(V());var br=class{fromLocalizableLabel(t){return t.type=="PLAIN_TEXT"?{message:t.text}:{key:t.key,custom:t.type=="LOCALIZED_CUSTOM",context:t.context,message:t.key}}fromAttribute(t){if(t!=null)try{return JSON.parse(t)}catch{if(this.isI18nKey(t)){let[r,n]=t.split(".");return{context:r,key:n,custom:r!=="officialContext",message:""}}return{message:t}}}toAttribute(t){if(t!=null)return JSON.stringify(t)}isI18nKey(t){return t.match(/^[\w-]+\.[\w-]+$/)}},qs=new br;var xa=function(e,t,r,n){var s=arguments.length,i=s<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 o=e.length-1;o>=0;o--)(a=e[o])&&(i=(s<3?a(i):s>3?a(t,r,i):a(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},_a=Symbol("i18nAttributes"),ba=Symbol("i18nListAttributes"),Ys=Symbol("i18nProperties"),kt=Symbol("i18nContexts"),Ke=Symbol("i18nUnsubs"),Xs=(0,Oe.applyMixinOnce)(Symbol("withI18n"),function(e){var t,r;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[r]=new Map}getI18nService(i){return i??this.useCustomMessageContexts?Mt:Ce}i18n(i){let{context:a,key:o,message:c}=i,{custom:l,args:u,argsProvider:p}=i;if(a&&o){this.hasI18nContext(a)||this.addI18nContext(a,void 0,l);let f=u??(p?p(this):[]);return this.getI18nService(l).resolveMessage(a,o,...f)}return c}async awaitI18n(i){let{context:a,custom:o}=i;return a&&await this.getI18nService(o).prepareContext(a),this.i18n(i)}customI18n(i,a){if(qs.isI18nKey(i)){let[o,c]=i.split(".");return this.i18n({custom:!0,context:o,key:c,...a})||i}return i}firstUpdated(i){super.firstUpdated(i),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(i){super.update(i),this.updateI18nAttributes((a,o,c)=>i.has(o)||typeof a.argsProvider=="function"),this.updateI18nProperties(a=>typeof a.argsProvider=="function")}onI18nUpdate(i){this.updateI18nAttributes((a,o,c)=>{var l;return((l=c?.context)===null||l===void 0?void 0:l.toLowerCase())===i}),this.updateI18nProperties(a=>a.context.toLowerCase()===i),this.requestUpdate()}updateI18nAttributes(i){var a,o;let c=this,l=(u,p,f)=>f?.context&&f.key&&i(u,p,f)?{...f,message:this.i18n({context:f.context,key:f.key,custom:f.custom,...u})}:f;(a=this[_a])===null||a===void 0||a.forEach((u,p)=>c[p]=l(u,p,c[p])),(o=this[ba])===null||o===void 0||o.forEach((u,p)=>{var f;return c[p]=(f=c[p])===null||f===void 0?void 0:f.map(g=>l(u,p,g))})}updateI18nProperties(i){var a;(a=this[Ys])===null||a===void 0||a.forEach((o,c)=>{i(o,c)&&(this[c]=this.i18n(o))})}addI18nMessages(i,a,o){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(i,a,o)}addI18nContext(i,a,o){let c=(typeof i=="string"?i:i.name).toLowerCase();o=typeof i=="string"?o:i.custom,this[kt].set(c,{isCustomContext:o}),this[Ke].has(c)||this[Ke].set(c,this.getI18nService(o).subscribe(c,()=>this.onI18nUpdate(c))),this.getI18nService(o).prepareContext(c,a)}hasI18nContext(i){return this[kt].has(i.toLowerCase())}connectedCallback(){super.connectedCallback(),this[kt].forEach((i,a)=>this.addI18nContext(a,void 0,i.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Ke].forEach(i=>i()),this[Ke].clear()}}return t=kt,r=Ke,xa([(0,Ws.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),Fs=class extends Xs(Oe.FtLitElement){},Ut=class extends Xs(Oe.FtLitElementRedux){};var Js=h(Y());var Qs=Js.css`
85
- `;var Bt=h(Y()),Ht=h(V()),jt=h(v());var Ge=function(e,t,r,n){var s=arguments.length,i=s<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 o=e.length-1;o>=0;o--)(a=e[o])&&(i=(s<3?a(i):s>3?a(t,r,i):a(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},F=class extends Ut{constructor(){super(),this.editorMode=!1,this.addStore(m)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Bt.nothing:Bt.html`
84
+ `}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(t){var r;super.update(t),t.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),t.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),t.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),t.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),t.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),t.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),t.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),t.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),t.has("session")&&this.stateManager.setSession(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(n=>Oe.addContext(n)),t.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),t.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),t.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};x.elementDefinitions={};x.styles=Vs;w([(0,k.property)()],x.prototype,"baseUrl",void 0);w([(0,k.property)()],x.prototype,"tenantId",void 0);w([(0,k.property)()],x.prototype,"apiIntegrationIdentifier",void 0);w([(0,k.property)()],x.prototype,"apiIntegrationAppVersion",void 0);w([(0,k.property)()],x.prototype,"uiLocale",void 0);w([(0,Ee.jsonProperty)(null)],x.prototype,"availableUiLocales",void 0);w([(0,Ee.jsonProperty)(null)],x.prototype,"metadataConfiguration",void 0);w([(0,k.property)({type:Boolean})],x.prototype,"editorMode",void 0);w([(0,k.property)({type:Boolean})],x.prototype,"noCustom",void 0);w([(0,k.property)({type:Boolean})],x.prototype,"openExternalDocumentInNewTab",void 0);w([(0,k.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],x.prototype,"noCustomComponent",void 0);w([(0,k.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],x.prototype,"noCustomCode",void 0);w([(0,k.property)({type:Boolean})],x.prototype,"withManualResources",void 0);w([(0,k.property)({type:Boolean})],x.prototype,"navigatorOnline",void 0);w([(0,k.property)({type:Boolean})],x.prototype,"forcedOffline",void 0);w([(0,k.property)({type:Boolean})],x.prototype,"authenticationRequired",void 0);w([(0,Ee.jsonProperty)([])],x.prototype,"messageContexts",void 0);w([(0,Ee.jsonProperty)(void 0)],x.prototype,"session",void 0);var zs=h(v());var $s={"ft-app-context":x};(0,zs.customElements)($s);var Ut=class e{static build(t){return new e(t)}static buildCustom(t){return new e(t,!0)}static fromGwt(t){return new e(t)}get service(){return this.custom?Pt:Oe}constructor(t,r=!1){this.name=t,this.custom=r,this.properties=new Proxy({},{get:(n,s)=>{let i=s;return a=>({context:this.name,key:i,custom:this.custom,args:typeof a=="function"?void 0:a,argsProvider:typeof a=="function"?a:void 0})}}),this.messages=new Proxy({},{get:(n,s)=>(...i)=>this.service.resolveMessage(this.name,s,...i)}),this.rawMessages=new Proxy({},{get:(n,s)=>this.service.resolveRawMessage(this.name,s)}),this.keys=new Proxy({},{get:(n,s)=>()=>s}),this.attributes=new Proxy({},{get:(n,s)=>()=>({context:this.name,key:s,message:this.service.resolveRawMessage(this.name,s)})})}};var Te=h(v());var Ys=h(V());var Cr=class{fromLocalizableLabel(t){return t.type=="PLAIN_TEXT"?{message:t.text}:{key:t.key,custom:t.type=="LOCALIZED_CUSTOM",context:t.context,message:t.key}}fromAttribute(t){if(t!=null)try{return JSON.parse(t)}catch{if(this.isI18nKey(t)){let[r,n]=t.split(".");return{context:r,key:n,custom:r!=="officialContext",message:""}}return{message:t}}}toAttribute(t){if(t!=null)return JSON.stringify(t)}isI18nKey(t){return t.match(/^[\w-]+\.[\w-]+$/)}},qs=new Cr;var _a=function(e,t,r,n){var s=arguments.length,i=s<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 o=e.length-1;o>=0;o--)(a=e[o])&&(i=(s<3?a(i):s>3?a(t,r,i):a(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},ba=Symbol("i18nAttributes"),Ca=Symbol("i18nListAttributes"),Xs=Symbol("i18nProperties"),Bt=Symbol("i18nContexts"),$e=Symbol("i18nUnsubs"),Js=(0,Te.applyMixinOnce)(Symbol("withI18n"),function(e){var t,r;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[r]=new Map}getI18nService(i){return i??this.useCustomMessageContexts?Pt:Oe}i18n(i){let{context:a,key:o,message:c}=i,{custom:l,args:u,argsProvider:p}=i;if(a&&o){this.hasI18nContext(a)||this.addI18nContext(a,void 0,l);let f=u??(p?p(this):[]);return this.getI18nService(l).resolveMessage(a,o,...f)}return c}async awaitI18n(i){let{context:a,custom:o}=i;return a&&await this.getI18nService(o).prepareContext(a),this.i18n(i)}customI18n(i,a){if(qs.isI18nKey(i)){let[o,c]=i.split(".");return this.i18n({custom:!0,context:o,key:c,...a})||i}return i}firstUpdated(i){super.firstUpdated(i),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(i){super.update(i),this.updateI18nAttributes((a,o,c)=>i.has(o)||typeof a.argsProvider=="function"),this.updateI18nProperties(a=>typeof a.argsProvider=="function")}onI18nUpdate(i){this.updateI18nAttributes((a,o,c)=>{var l;return((l=c?.context)===null||l===void 0?void 0:l.toLowerCase())===i}),this.updateI18nProperties(a=>a.context.toLowerCase()===i),this.requestUpdate()}updateI18nAttributes(i){var a,o;let c=this,l=(u,p,f)=>f?.context&&f.key&&i(u,p,f)?{...f,message:this.i18n({context:f.context,key:f.key,custom:f.custom,...u})}:f;(a=this[ba])===null||a===void 0||a.forEach((u,p)=>c[p]=l(u,p,c[p])),(o=this[Ca])===null||o===void 0||o.forEach((u,p)=>{var f;return c[p]=(f=c[p])===null||f===void 0?void 0:f.map(g=>l(u,p,g))})}updateI18nProperties(i){var a;(a=this[Xs])===null||a===void 0||a.forEach((o,c)=>{i(o,c)&&(this[c]=this.i18n(o))})}addI18nMessages(i,a,o){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(i,a,o)}addI18nContext(i,a,o){let c=(typeof i=="string"?i:i.name).toLowerCase();o=typeof i=="string"?o:i.custom,this[Bt].set(c,{isCustomContext:o}),this[$e].has(c)||this[$e].set(c,this.getI18nService(o).subscribe(c,()=>this.onI18nUpdate(c))),this.getI18nService(o).prepareContext(c,a)}hasI18nContext(i){return this[Bt].has(i.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Bt].forEach((i,a)=>this.addI18nContext(a,void 0,i.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[$e].forEach(i=>i()),this[$e].clear()}}return t=Bt,r=$e,_a([(0,Ys.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),Ws=class extends Js(Te.FtLitElement){},Ht=class extends Js(Te.FtLitElementRedux){};var Qs=h(Y());var Zs=Qs.css`
85
+ `;var jt=h(Y()),we=h(V()),Vt=h(v());var Re=function(e,t,r,n){var s=arguments.length,i=s<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 o=e.length-1;o>=0;o--)(a=e[o])&&(i=(s<3?a(i):s>3?a(t,r,i):a(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},F=class extends Ht{constructor(){super(),this.editorMode=!1,this.editorMessage="Select a context and a label key.",this.addStore(m)}render(){return!this.key||!this.context?this.editorMode?this.editorMessage:jt.nothing:jt.html`
86
86
  <span class="ft-i18n">
87
87
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
88
88
  </span>
89
- `}update(t){var r;super.update(t),["context","key","defaultMessage"].some(n=>t.has(n))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};F.elementDefinitions={};F.styles=Qs;Ge([(0,jt.redux)()],F.prototype,"editorMode",void 0);Ge([(0,Ht.property)()],F.prototype,"context",void 0);Ge([(0,Ht.property)()],F.prototype,"key",void 0);Ge([(0,jt.jsonProperty)([])],F.prototype,"args",void 0);Ge([(0,Ht.property)()],F.prototype,"defaultMessage",void 0);var ei=h(v());var Zs={"ft-i18n":F};(0,ei.customElements)(Zs);var Cr=It.build("designedReaderTopicContent");var P=function(e,t,r,n){var s=arguments.length,i=s<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 o=e.length-1;o>=0;o--)(a=e[o])&&(i=(s<3?a(i):s>3?a(t,r,i):a(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},C=class extends We{constructor(){super(...arguments),this.contentPreprocessor=t=>t,this.onContentAvailable=()=>null}render(){var t,r,n;return!this.map||!this.error&&!this.content&&((t=this.translationSourceLanguage)===null||t===void 0?void 0:t.code)==((r=this.translationDestinationLanguage)===null||r===void 0?void 0:r.code)?oe.html`
89
+ `}update(t){var r;super.update(t),["context","key","defaultMessage"].some(n=>t.has(n))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};F.elementDefinitions={};F.styles=Zs;Re([(0,Vt.redux)()],F.prototype,"editorMode",void 0);Re([(0,we.property)()],F.prototype,"context",void 0);Re([(0,we.property)()],F.prototype,"key",void 0);Re([(0,Vt.jsonProperty)([])],F.prototype,"args",void 0);Re([(0,we.property)()],F.prototype,"defaultMessage",void 0);Re([(0,we.state)()],F.prototype,"editorMessage",void 0);var ti=h(v());var ei={"ft-i18n":F};(0,ti.customElements)(ei);var Or=Ut.build("designedReaderTopicContent");var P=function(e,t,r,n){var s=arguments.length,i=s<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 o=e.length-1;o>=0;o--)(a=e[o])&&(i=(s<3?a(i):s>3?a(t,r,i):a(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i},C=class extends Xe{constructor(){super(...arguments),this.contentPreprocessor=t=>t,this.onContentAvailable=()=>null}render(){var t,r,n;return!this.map||!this.error&&!this.content&&((t=this.translationSourceLanguage)===null||t===void 0?void 0:t.code)==((r=this.translationDestinationLanguage)===null||r===void 0?void 0:r.code)?oe.html`
90
90
  <section class="topic-loading"></section>
91
91
  `:oe.html`
92
92
  <style>
@@ -99,15 +99,15 @@
99
99
  <div class="topic-on-error">
100
100
  <ft-icon>WARNING</ft-icon>
101
101
  <div>
102
- ${this.is404Error()?Cr.messages.topicMissingAdvice():Cr.messages.somethingWentWrong()}
102
+ ${this.is404Error()?Or.messages.topicMissingAdvice():Or.messages.somethingWentWrong()}
103
103
  </div>
104
104
  </div>
105
105
  `;let o=(r=(t=this.map)===null||t===void 0?void 0:t.contentStyles.customCssClasses.join(" "))!==null&&r!==void 0?r:"",c=(((n=this.tocNode)===null||n===void 0?void 0:n.depth)||1)+this.headingLevelsShift;return this.headingStartLevel!=null&&(!((s=this.currentPage)===null||s===void 0)&&s.rootTocId)&&(c=(((i=this.tocNode)===null||i===void 0?void 0:i.depth)||1)-(((a=this.currentPage)===null||a===void 0?void 0:a.rootDepth)||1)+this.headingStartLevel),this.translationLoading||!this.content?oe.html`
106
106
  <ft-skeleton></ft-skeleton>`:oe.html`
107
107
  <div class="depth-${c} content-locale-${this.getTopicLanguage()} ${o}">
108
- ${this.content!=null?(0,ti.unsafeHTML)(`${this.content}`):oe.nothing}
108
+ ${this.content!=null?(0,ri.unsafeHTML)(`${this.content}`):oe.nothing}
109
109
  </div>
110
- `}is404Error(){return this.error.status===404}getTopicLanguage(){var t;return this.translationDestinationLanguage&&!this.translationError?this.translationDestinationLanguage.code:(t=this.map)===null||t===void 0?void 0:t.lang}handleLinkPreviews(){var t;this.linkPreviewDialogId&&((t=this.crossMapLinks)===null||t===void 0||t.forEach(r=>{r.setAttribute("role","button"),r.setAttribute("aria-haspopup","dialog"),r.setAttribute("aria-controls",this.linkPreviewDialogId)}))}};C.styles=[Mr,R.highlightHtmlStyles];P([(0,R.redux)({store:"reader"})],C.prototype,"map",void 0);P([(0,R.redux)({store:"reader",selector:e=>e.translation.profileId})],C.prototype,"translationProfileId",void 0);P([(0,R.redux)({store:"reader",selector:e=>e.translation.destinationLanguage})],C.prototype,"translationDestinationLanguage",void 0);P([(0,R.redux)({store:"reader",selector:e=>e.translation.sourceLanguage})],C.prototype,"translationSourceLanguage",void 0);P([(0,R.redux)({store:"reader",selector:e=>e.translation.isLoading})],C.prototype,"translationLoading",void 0);P([(0,R.redux)({store:"reader",selector:e=>e.translation.isError})],C.prototype,"translationError",void 0);P([(0,R.redux)({store:"reader"})],C.prototype,"linkPreviewDialogId",void 0);P([(0,R.redux)({store:"reader"})],C.prototype,"scrollTarget",void 0);P([(0,R.redux)({store:"reader"})],C.prototype,"currentPage",void 0);P([(0,Q.state)()],C.prototype,"content",void 0);P([(0,Q.state)()],C.prototype,"error",void 0);P([(0,R.redux)({store:"reader",selector:(e,t)=>t.disableContextInteractions?"":e.searchInDocumentQuery})],C.prototype,"searchInDocumentQuery",void 0);P([(0,Q.property)({attribute:!1})],C.prototype,"contentPreprocessor",void 0);P([(0,Q.property)({attribute:!1})],C.prototype,"onContentAvailable",void 0);P([(0,Q.query)("section.topic")],C.prototype,"topicContainer",void 0);P([(0,Q.queryAll)("a.ft-internal-xlink")],C.prototype,"crossMapLinks",void 0);var ri={"ft-reader-topic-content":C};(0,ni.customElements)(ri);})();
110
+ `}is404Error(){return this.error.status===404}getTopicLanguage(){var t;return this.translationDestinationLanguage&&!this.translationError?this.translationDestinationLanguage.code:(t=this.map)===null||t===void 0?void 0:t.lang}handleLinkPreviews(){var t;this.linkPreviewDialogId&&((t=this.crossMapLinks)===null||t===void 0||t.forEach(r=>{r.setAttribute("role","button"),r.setAttribute("aria-haspopup","dialog"),r.setAttribute("aria-controls",this.linkPreviewDialogId)}))}};C.styles=[Dr,R.highlightHtmlStyles];P([(0,R.redux)({store:"reader"})],C.prototype,"map",void 0);P([(0,R.redux)({store:"reader",selector:e=>e.translation.profileId})],C.prototype,"translationProfileId",void 0);P([(0,R.redux)({store:"reader",selector:e=>e.translation.destinationLanguage})],C.prototype,"translationDestinationLanguage",void 0);P([(0,R.redux)({store:"reader",selector:e=>e.translation.sourceLanguage})],C.prototype,"translationSourceLanguage",void 0);P([(0,R.redux)({store:"reader",selector:e=>e.translation.isLoading})],C.prototype,"translationLoading",void 0);P([(0,R.redux)({store:"reader",selector:e=>e.translation.isError})],C.prototype,"translationError",void 0);P([(0,R.redux)({store:"reader"})],C.prototype,"linkPreviewDialogId",void 0);P([(0,R.redux)({store:"reader"})],C.prototype,"scrollTarget",void 0);P([(0,R.redux)({store:"reader"})],C.prototype,"currentPage",void 0);P([(0,Q.state)()],C.prototype,"content",void 0);P([(0,Q.state)()],C.prototype,"error",void 0);P([(0,R.redux)({store:"reader",selector:(e,t)=>t.disableContextInteractions?"":e.searchInDocumentQuery})],C.prototype,"searchInDocumentQuery",void 0);P([(0,Q.property)({attribute:!1})],C.prototype,"contentPreprocessor",void 0);P([(0,Q.property)({attribute:!1})],C.prototype,"onContentAvailable",void 0);P([(0,Q.query)("section.topic")],C.prototype,"topicContainer",void 0);P([(0,Q.queryAll)("a.ft-internal-xlink")],C.prototype,"crossMapLinks",void 0);var ni={"ft-reader-topic-content":C};(0,si.customElements)(ni);})();
111
111
  /*! Bundled license information:
112
112
 
113
113
  @lit/reactive-element/css-tag.js: