@fluid-topics/ft-reader-topic-content 2.2.25 → 2.2.26
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,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var oi=Object.create;var wr=Object.defineProperty;var
|
|
1
|
+
"use strict";(()=>{var oi=Object.create;var wr=Object.defineProperty;var ai=Object.getOwnPropertyDescriptor;var ci=Object.getOwnPropertyNames;var li=Object.getPrototypeOf,ui=Object.prototype.hasOwnProperty;var ze=(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 i of ci(t))!ui.call(e,i)&&i!==r&&wr(e,i,{get:()=>t[i],enumerable:!(n=ai(t,i))||n.enumerable});return e};var h=(e,t,r)=>(r=e!=null?oi(li(e)):{},di(t||!e||!e.__esModule?wr(r,"default",{value:e,enumerable:!0}):r,e));var A=ze((To,Nr)=>{Nr.exports=ftGlobals.wcUtils});var Y=ze((Ro,Lr)=>{Lr.exports=ftGlobals.lit});var F=ze((No,Pr)=>{Pr.exports=ftGlobals.litDecorators});var qt=ze((ko,jr)=>{jr.exports=ftGlobals.litUnsafeHTML});var ni=h(A());var ae=h(Y());var Dr=h(Y()),ge=h(A()),Mr={colorError:ge.FtCssVariableFactory.external(ge.designSystemVariables.colorError,"Design system"),fontFamily:ge.FtCssVariableFactory.external(ge.designSystemVariables.contentFont,"Design system")},Ir=Dr.css`
|
|
2
2
|
.topic {
|
|
3
3
|
font-family: ${Mr.fontFamily};
|
|
4
4
|
overflow-x: auto;
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
ft-skeleton {
|
|
26
26
|
height: 100px;
|
|
27
27
|
}
|
|
28
|
-
`;var Ne=h(V()),Hr=h(S());var We=h(S()),Br=h(V());var kr;(function(e){e.clusteringHelperCreated="clustering-helper-created",e.mapAttachmentsUpdate="map-attachments-update",e.visibleTopicChange="visible-topic-change",e.requestedTopicNotFound="requested-topic-not-found",e.requestedTopicFiltered="requested-topic-filtered"})(kr||(kr={}));var Ur;(function(e){e.FEEDBACK="FEEDBACK",e.RATING="RATING",e.PRINT="PRINT",e.BOOKMARK="BOOKMARK",e.COLLECTIONS="COLLECTIONS",e.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Ur||(Ur={}));var fi=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(a=e[o])&&(s=(i<3?a(s):i>3?a(t,r,s):a(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Kt=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Ft=Symbol("registerInterval"),hi=(0,We.applyMixinOnce)(Symbol("toFtReaderComponent"),function(e){var t;class r extends e{constructor(){super(...arguments),this[t]=0}setReaderStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var i;return(i=this.stateManager)===null||i===void 0?void 0:i.service}connectedCallback(){super.connectedCallback(),this[Ft]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Ft]):this.dispatchEvent(new Kt)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=Ft,fi([(0,Br.state)()],r.prototype,"stateManager",void 0),r}),qe=class extends hi(We.FtLitElementRedux){};var Ye=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(a=e[o])&&(s=(i<3?a(s):i>3?a(t,r,s):a(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},$t=class extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},Gt=Symbol("registerInterval"),mi=(0,Hr.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,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(S()),Q=h(V());var zr=h(S());var Le=h(Y()),se=h(V()),Kr=h(S()),Gr=h(zt());var Je;(function(e){e.ADD_TO_PBK="",e.ALERT="",e.ADD_ALERT="",e.BACK_TO_SEARCH="",e.ADD_BOOKMARK="",e.BOOKMARK="",e.BOOKS="",e.MENU="",e.DOWNLOAD="",e.EDIT="",e.FEEDBACK="",e.HOME="",e.MODIFY_PBK="",e.SCHEDULED="",e.SEARCH="",e.EXPORT="",e.TOC="",e.WRITE_UGC="",e.TRASH="",e.USER="",e.EXTLINK="",e.CALENDAR="",e.OFFLINE="",e.BOOK="",e.DOWNLOAD_PLAIN="",e.CHECK="",e.STAR_PLAIN="",e.TOPICS="",e.DISC="",e.CIRCLE="",e.SHARED="",e.SORT_UNSORTED="",e.SORT_UP="",e.SORT_DOWN="",e.WORKING="",e.CLOSE="",e.ZOOM_OUT="",e.ZOOM_IN="",e.ZOOM_REALSIZE="",e.ZOOM_FULLSCREEN="",e.ADMIN_RESTRICTED="",e.ADMIN="",e.ADMIN_KHUB="",e.ADMIN_THEME="",e.ADMIN_USERS="",e.WARNING="",e.CONTEXT="",e.SEARCH_HOME="",e.STEPS="",e.ICON_EXPAND="",e.ICON_COLLAPSE="",e.INFO="",e.MINUS_PLAIN="",e.PLUS_PLAIN="",e.FACET_HAS_DESCENDANT="",e.TRIANGLE_BOTTOM="",e.TRIANGLE_LEFT="",e.TRIANGLE_RIGHT="",e.TRIANGLE_TOP="",e.THIN_ARROW="",e.SIGN_IN="",e.LOGOUT="",e.TRANSLATE="",e.CLOSE_PLAIN="",e.CHECK_PLAIN="",e.ARTICLE="",e.COLUMNS="",e.ANALYTICS="",e.COLLECTIONS="",e.ARROW_DOWN="",e.ARROW_LEFT="",e.ARROW_RIGHT="",e.ARROW_UP="",e.SEARCH_IN_PUBLICATION="",e.COPY_TO_CLIPBOARD="",e.SHARED_PBK="",e.ATTACHMENTS="",e.STRIPE_ARROW_LEFT="",e.STRIPE_ARROW_RIGHT="",e.FILTERS="",e.DOT="",e.MINUS="",e.PLUS="",e.MAILS_AND_NOTIFICATIONS="",e.SAVE="",e.LOCKER="",e.ADMIN_INTEGRATION="",e.SYNC="",e.TAG="",e.BOOK_PLAIN="",e.UPLOAD="",e.ONLINE="",e.TAG_PLAIN="",e.ACCOUNT_SETTINGS="",e.PRINT="",e.DEFAULT_ROLES="",e.SHORTCUT_MENU="",e.RELATIVES_PLAIN="",e.RELATIVES="",e.PAUSE="",e.PLAY="",e.ADMIN_PORTAL="",e.STAR="",e.THUMBS_DOWN="",e.THUMBS_DOWN_PLAIN="",e.THUMBS_UP="",e.THUMBS_UP_PLAIN="",e.FEEDBACK_PLAIN="",e.RATE_PLAIN="",e.RATE="",e.OFFLINE_SETTINGS="",e.MY_COLLECTIONS="",e.THIN_ARROW_LEFT="",e.THIN_ARROW_RIGHT="",e.RESET="",e.MY_LIBRARY="",e.UNSTRUCTURED_DOC="",e.CONTEXTUAL="",e.THIN_ARROW_UP="",e.ARROW_RIGHT_TO_LINE="",e.DESKTOP="",e.TABLET_LANDSCAPE="",e.TABLET_PORTRAIT="",e.MOBILE_LANDSCAPE="",e.MOBILE_PORTRAIT="",e.DIAGRAM_SUNBURST="",e.DIAGRAM_SANKEY="",e.COMMENT_QUESTION="",e.COMMENT_QUESTION_PLAIN="",e.MESSAGE_BOT="",e.CHART_SIMPLE="",e.BARS_PROGRESS="",e.BOOK_OPEN_GEAR="",e.BOOK_OPEN_GEAR_SLASH="",e.LINE_CHART="",e.STACKED_CHART="",e.CHART_BAR_STACKED="",e.CHART_BAR_GROUPED="",e.EYE_SLASH="",e.X_MARK="",e.EXPAND_WIDE="",e.PIP="",e.PIP_WIDE="",e.LIFE_RING="",e.GLOBE="",e.PIGGY_BANK="",e.EXTLINK_LIGHT="",e.CLONE="",e.CLONE_LINK_SIMPLE="",e.CHART_BAR_NORMALIZED="",e.CONSUMER="",e.OCTAGON_XMARK="",e.HOURGLASS_HALF="",e.CLOCK="",e.CLOCK_THREE="",e.CALENDAR_DAY="",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="",e.WAND_MAGIC_SPARKLES="",e.PAPER_PLANE="",e.CIRCLE_STOP="",e.ARROW_ROTATE_RIGHT="",e.ARROWS_ROTATE="",e.ALIGN_RIGHT="",e.FORMAT_CLEAR="",e.ALIGN_CENTER="",e.ALIGN_LEFT="",e.PALETTE="",e.BOLD="",e.ITALIC="",e.UNDERLINE="",e.STRIKETHROUGH="",e.LINK_SIMPLE_SLASH="",e.LINK_SIMPLE="",e.ROUTE="",e.CIRCLE_USER_SLASH="",e.CIRCLE_USER_CHECK="",e.LIST_MAGNIFYING_GLASS="",e.MEDAL="",e.THUMBS_UP_THUMBS_DOWN_SOLID="",e.ARROW_TURN_DOWN_RIGHT="",e.FLASK="",e.LOCK_KEYHOLE_OPEN_SOLID="",e.HOURGLASS_END="",e.CIRCLE_QUESTION="",e.GRIP_LINES_SOLID="",e.TRANSLATE_SPARKLE_SOLID="",e.CODE="",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",e.PAPER_PLANE_SLASH="",e.COMPRESS="",e.EXPAND="",e.ARROW_ROTATE_LEFT="",e.MOBILE_SMALL="",e.SPARKLES="",e.HAND_SOLID="",e.CLOCK_SOLID="",e.CONTEXT_MENU_CURSOR="",e.LANGUAGE_SLASH="",e.MAGNIFYING_GLASS_FLOPPY_DISK="",e.CABINET_FILING_FLOPPY_DISK="",e.BOOKMARK_SLASH="",e.CIRCLE_PAUSE="",e.CIRCLE_PLAY="",e.CIRCLE_STOP_PLAIN="",e.CIRCLE_ARROW_DOWN="",e.SHARE_NODES="",e.BELL="",e.BELL_SLASH="",e.FILE="",e.HAND="",e.SQUARE_INFO_SOLID="",e.FILE_CODE="",e.BOX_CODE="",e.TOPICS_SOLID="",e.PHOTO_FILM="",e.HYPHEN_SOLID="",e.CROSSHAIRS="",e.PERSON_CHALKBOARD="",e.CIRCLE_ARROW_DOWN_SLASH="",e.BOOK_OPEN_COVER="",e.LIGHTBULB="",e.MESSAGE_BOT_AGENTIC_SOLID="",e.CHART_LINE_USER="",e.SERVER_CIRCLE_ARROW_DOWN="",e.EYE="",e.SHARE="󨃱"})(Je||(Je={}));var d;(function(e){e.UNKNOWN="",e.ABW="",e.AUDIO="",e.AVI="",e.CHM="",e.CODE="",e.CSV="",e.DITA="",e.EPUB="",e.EXCEL="",e.FLAC="",e.GIF="",e.GZIP="",e.HTML="",e.IMAGE="",e.JPEG="",e.JSON="",e.M4A="",e.MOV="",e.MP3="",e.MP4="",e.OGG="",e.PDF="",e.PNG="",e.POWERPOINT="",e.RAR="",e.STP="",e.TEXT="",e.VIDEO="",e.WAV="",e.WMA="",e.WORD="",e.XML="",e.YAML="",e.ZIP=""})(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 Vr=h(Y()),$=h(S()),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")},Fr=[Vr.css`
|
|
28
|
+
`;var Ne=h(F()),Hr=h(A());var We=h(A()),Br=h(F());var kr;(function(e){e.clusteringHelperCreated="clustering-helper-created",e.mapAttachmentsUpdate="map-attachments-update",e.visibleTopicChange="visible-topic-change",e.requestedTopicNotFound="requested-topic-not-found",e.requestedTopicFiltered="requested-topic-filtered"})(kr||(kr={}));var Ur;(function(e){e.FEEDBACK="FEEDBACK",e.RATING="RATING",e.PRINT="PRINT",e.BOOKMARK="BOOKMARK",e.COLLECTIONS="COLLECTIONS",e.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Ur||(Ur={}));var pi=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Gt=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Kt=Symbol("registerInterval"),fi=(0,We.applyMixinOnce)(Symbol("toFtReaderComponent"),function(e){var t;class r extends e{constructor(){super(...arguments),this[t]=0}setReaderStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var i;return(i=this.stateManager)===null||i===void 0?void 0:i.service}connectedCallback(){super.connectedCallback(),this[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,pi([(0,Br.state)()],r.prototype,"stateManager",void 0),r}),qe=class extends fi(We.FtLitElementRedux){};var Ye=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},zt=class extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},$t=Symbol("registerInterval"),hi=(0,Hr.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[$t]=window.setInterval(()=>this.tryToRegisterToTopicContext(),50)}tryToRegisterToTopicContext(){this.tocNode!=null?window.clearInterval(this[$t]):this.dispatchEvent(new zt)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return t=$t,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 hi(qe){};var ti=h(qt()),O=h(A()),Z=h(F());var zr=h(A());var Le=h(Y()),se=h(F()),Kr=h(A()),Gr=h(qt());var Je;(function(e){e.ADD_TO_PBK="",e.ALERT="",e.ADD_ALERT="",e.BACK_TO_SEARCH="",e.ADD_BOOKMARK="",e.BOOKMARK="",e.BOOKS="",e.MENU="",e.DOWNLOAD="",e.EDIT="",e.FEEDBACK="",e.HOME="",e.MODIFY_PBK="",e.SCHEDULED="",e.SEARCH="",e.EXPORT="",e.TOC="",e.WRITE_UGC="",e.TRASH="",e.USER="",e.EXTLINK="",e.CALENDAR="",e.OFFLINE="",e.BOOK="",e.DOWNLOAD_PLAIN="",e.CHECK="",e.STAR_PLAIN="",e.TOPICS="",e.DISC="",e.CIRCLE="",e.SHARED="",e.SORT_UNSORTED="",e.SORT_UP="",e.SORT_DOWN="",e.WORKING="",e.CLOSE="",e.ZOOM_OUT="",e.ZOOM_IN="",e.ZOOM_REALSIZE="",e.ZOOM_FULLSCREEN="",e.ADMIN_RESTRICTED="",e.ADMIN="",e.ADMIN_KHUB="",e.ADMIN_THEME="",e.ADMIN_USERS="",e.WARNING="",e.CONTEXT="",e.SEARCH_HOME="",e.STEPS="",e.ICON_EXPAND="",e.ICON_COLLAPSE="",e.INFO="",e.MINUS_PLAIN="",e.PLUS_PLAIN="",e.FACET_HAS_DESCENDANT="",e.TRIANGLE_BOTTOM="",e.TRIANGLE_LEFT="",e.TRIANGLE_RIGHT="",e.TRIANGLE_TOP="",e.THIN_ARROW="",e.SIGN_IN="",e.LOGOUT="",e.TRANSLATE="",e.CLOSE_PLAIN="",e.CHECK_PLAIN="",e.ARTICLE="",e.COLUMNS="",e.ANALYTICS="",e.COLLECTIONS="",e.ARROW_DOWN="",e.ARROW_LEFT="",e.ARROW_RIGHT="",e.ARROW_UP="",e.SEARCH_IN_PUBLICATION="",e.COPY_TO_CLIPBOARD="",e.SHARED_PBK="",e.ATTACHMENTS="",e.STRIPE_ARROW_LEFT="",e.STRIPE_ARROW_RIGHT="",e.FILTERS="",e.DOT="",e.MINUS="",e.PLUS="",e.MAILS_AND_NOTIFICATIONS="",e.SAVE="",e.LOCKER="",e.ADMIN_INTEGRATION="",e.SYNC="",e.TAG="",e.BOOK_PLAIN="",e.UPLOAD="",e.ONLINE="",e.TAG_PLAIN="",e.ACCOUNT_SETTINGS="",e.PRINT="",e.DEFAULT_ROLES="",e.SHORTCUT_MENU="",e.RELATIVES_PLAIN="",e.RELATIVES="",e.PAUSE="",e.PLAY="",e.ADMIN_PORTAL="",e.STAR="",e.THUMBS_DOWN="",e.THUMBS_DOWN_PLAIN="",e.THUMBS_UP="",e.THUMBS_UP_PLAIN="",e.FEEDBACK_PLAIN="",e.RATE_PLAIN="",e.RATE="",e.OFFLINE_SETTINGS="",e.MY_COLLECTIONS="",e.THIN_ARROW_LEFT="",e.THIN_ARROW_RIGHT="",e.RESET="",e.MY_LIBRARY="",e.UNSTRUCTURED_DOC="",e.CONTEXTUAL="",e.THIN_ARROW_UP="",e.ARROW_RIGHT_TO_LINE="",e.DESKTOP="",e.TABLET_LANDSCAPE="",e.TABLET_PORTRAIT="",e.MOBILE_LANDSCAPE="",e.MOBILE_PORTRAIT="",e.DIAGRAM_SUNBURST="",e.DIAGRAM_SANKEY="",e.COMMENT_QUESTION="",e.COMMENT_QUESTION_PLAIN="",e.MESSAGE_BOT="",e.CHART_SIMPLE="",e.BARS_PROGRESS="",e.BOOK_OPEN_GEAR="",e.BOOK_OPEN_GEAR_SLASH="",e.LINE_CHART="",e.STACKED_CHART="",e.CHART_BAR_STACKED="",e.CHART_BAR_GROUPED="",e.EYE_SLASH="",e.X_MARK="",e.EXPAND_WIDE="",e.PIP="",e.PIP_WIDE="",e.LIFE_RING="",e.GLOBE="",e.PIGGY_BANK="",e.EXTLINK_LIGHT="",e.CLONE="",e.CLONE_LINK_SIMPLE="",e.CHART_BAR_NORMALIZED="",e.CONSUMER="",e.OCTAGON_XMARK="",e.HOURGLASS_HALF="",e.CLOCK="",e.CLOCK_THREE="",e.CALENDAR_DAY="",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="",e.WAND_MAGIC_SPARKLES="",e.PAPER_PLANE="",e.CIRCLE_STOP="",e.ARROW_ROTATE_RIGHT="",e.ARROWS_ROTATE="",e.ALIGN_RIGHT="",e.FORMAT_CLEAR="",e.ALIGN_CENTER="",e.ALIGN_LEFT="",e.PALETTE="",e.BOLD="",e.ITALIC="",e.UNDERLINE="",e.STRIKETHROUGH="",e.LINK_SIMPLE_SLASH="",e.LINK_SIMPLE="",e.ROUTE="",e.CIRCLE_USER_SLASH="",e.CIRCLE_USER_CHECK="",e.LIST_MAGNIFYING_GLASS="",e.MEDAL="",e.THUMBS_UP_THUMBS_DOWN_SOLID="",e.ARROW_TURN_DOWN_RIGHT="",e.FLASK="",e.LOCK_KEYHOLE_OPEN_SOLID="",e.HOURGLASS_END="",e.CIRCLE_QUESTION="",e.GRIP_LINES_SOLID="",e.TRANSLATE_SPARKLE_SOLID="",e.CODE="",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",e.PAPER_PLANE_SLASH="",e.COMPRESS="",e.EXPAND="",e.ARROW_ROTATE_LEFT="",e.MOBILE_SMALL="",e.SPARKLES="",e.HAND_SOLID="",e.CLOCK_SOLID="",e.CONTEXT_MENU_CURSOR="",e.LANGUAGE_SLASH="",e.MAGNIFYING_GLASS_FLOPPY_DISK="",e.CABINET_FILING_FLOPPY_DISK="",e.BOOKMARK_SLASH="",e.CIRCLE_PAUSE="",e.CIRCLE_PLAY="",e.CIRCLE_STOP_PLAIN="",e.CIRCLE_ARROW_DOWN="",e.SHARE_NODES="",e.BELL="",e.BELL_SLASH="",e.FILE="",e.HAND="",e.SQUARE_INFO_SOLID="",e.FILE_CODE="",e.BOX_CODE="",e.TOPICS_SOLID="",e.PHOTO_FILM="",e.HYPHEN_SOLID="",e.CROSSHAIRS="",e.PERSON_CHALKBOARD="",e.CIRCLE_ARROW_DOWN_SLASH="",e.BOOK_OPEN_COVER="",e.LIGHTBULB="",e.MESSAGE_BOT_AGENTIC_SOLID="",e.CHART_LINE_USER="",e.SERVER_CIRCLE_ARROW_DOWN="",e.EYE="",e.SHARE="󨃱"})(Je||(Je={}));var d;(function(e){e.UNKNOWN="",e.ABW="",e.AUDIO="",e.AVI="",e.CHM="",e.CODE="",e.CSV="",e.DITA="",e.EPUB="",e.EXCEL="",e.FLAC="",e.GIF="",e.GZIP="",e.HTML="",e.IMAGE="",e.JPEG="",e.JSON="",e.M4A="",e.MOV="",e.MP3="",e.MP4="",e.OGG="",e.PDF="",e.PNG="",e.POWERPOINT="",e.RAR="",e.STP="",e.TEXT="",e.VIDEO="",e.WAV="",e.WMA="",e.WORD="",e.XML="",e.YAML="",e.ZIP=""})(d||(d={}));var Uo=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 Bo={[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 Vr=h(Y()),z=h(A()),ee={size:z.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:z.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",z.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:z.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",z.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:z.FtCssVariableFactory.extend("--ft-icon-material-font-family","",z.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:z.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Fr=[Vr.css`
|
|
29
29
|
:host, i.ft-icon {
|
|
30
30
|
display: inline-flex;
|
|
31
31
|
align-items: center;
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
:host {
|
|
37
|
-
width: ${
|
|
38
|
-
height: ${
|
|
37
|
+
width: ${ee.size};
|
|
38
|
+
height: ${ee.size};
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
i.ft-icon {
|
|
42
42
|
width: 100%;
|
|
43
43
|
height: 100%;
|
|
44
|
-
font-size: ${
|
|
44
|
+
font-size: ${ee.size};
|
|
45
45
|
line-height: 1;
|
|
46
46
|
font-weight: normal;
|
|
47
47
|
text-transform: none;
|
|
@@ -52,62 +52,62 @@
|
|
|
52
52
|
text-rendering: auto;
|
|
53
53
|
-webkit-font-smoothing: antialiased;
|
|
54
54
|
-moz-osx-font-smoothing: grayscale;
|
|
55
|
-
vertical-align: ${
|
|
55
|
+
vertical-align: ${ee.verticalAlign};
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
i.ft-icon.ft-icon--fluid-topics {
|
|
59
|
-
font-family: ${
|
|
59
|
+
font-family: ${ee.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
60
60
|
|
|
61
61
|
/* Ugly fix because font is broken */
|
|
62
|
-
font-size: calc(0.75 * ${
|
|
63
|
-
line-height: ${
|
|
62
|
+
font-size: calc(0.75 * ${ee.size});
|
|
63
|
+
line-height: ${ee.size};
|
|
64
64
|
position: relative;
|
|
65
65
|
top: -4%;
|
|
66
66
|
justify-content: center;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
.ft-icon--file-format {
|
|
70
|
-
font-family: ${
|
|
70
|
+
font-family: ${ee.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
.ft-icon--material {
|
|
74
|
-
font-family: ${
|
|
74
|
+
font-family: ${ee.materialFontFamily}, "Material Icons", sans-serif;
|
|
75
75
|
}
|
|
76
|
-
|
|
76
|
+
`,z.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 i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},q=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
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||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=Fr;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 $r={"ft-icon":z};(0,zr.customElements)($r);var hr=h(V());var qr=h(V(),1);var qt=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)},yi=e=>({fromAttribute:t=>{if(t==null)return De(e);try{return JSON.parse(t)}catch{return De(e)}},toAttribute:t=>JSON.stringify(t)});function Wr(e,t){return(0,qr.property)({type:Object,converter:yi(e),hasChanged:Ie,...t??{}})}function Ei(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(!Ae(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(!Ae(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let i=a=>Object.keys(a).filter(o=>a[o]!=null),s=i(e);if(r=s.length,r!==i(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[n]))return!1;for(n=r;n--!==0;){let a=s[n];if(!Ae(e[a],t[a]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function Ae(e,t){try{return Ei(e,t)}catch{return!1}}function Ie(e,t){return!Ae(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 i=t(n);return i[e]=!0,i}}var Yr=h(V(),1);var Wt=e=>{let t=e??{};return(r,n)=>{var i;let s={hasChanged:Ie,attribute:!1,...t};(0,Yr.property)(s)(r,n);let a=r.constructor;a.reduxProperties=new Map(a.reduxProperties),a.reduxProperties.set(n,{selector:(i=t.selector)!==null&&i!==void 0?i:(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 i=(t=this.rejectPromise)!==null&&t!==void 0?t:(()=>null),s=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let a of n)try{await a()}catch(o){i(o);return}s(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var rt=h(Y(),1);var tt=class extends rt.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(0,rt.adoptStyles)(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 i=e.querySelector(t);for(let s of r)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(s);return i}var Se=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(a=e[o])&&(s=(i<3?a(s):i>3?a(t,r,s):a(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},en,Jr=Symbol("constructorPrototype"),Qr=Symbol("constructorName"),tn=Symbol("exportpartsDebouncer"),Zr=Symbol("dynamicDependenciesLoaded"),ve=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};ve.eventName="exportparts-updated";var X=class extends tt{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[en]=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[tn].run(()=>{var i,s;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((s=this.exportpartsPrefixes)===null||s===void 0?void 0:s.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[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(ve.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(ve.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 ve)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:i}=this.elementToFocus;if(n!=null){let s=[...i??[],n];r=Xr(this.shadowRoot,...s)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,n,i;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(s=>s.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(s){console.error(s,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let s=document.createElement("style");s.classList.add("ft-lit-element--custom-stylesheet"),s.innerHTML=this.customStylesheet,this.shadowRoot.append(s)}}setExportpartsAttribute(t){var r,n,i,s,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(s=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&s!==void 0?s:[]){let g=(a=(n=f.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],C=(o=(i=f.getAttribute("exportparts"))===null||i===void 0?void 0:i.split(",").map(E=>E.split(":")[1]))!==null&&o!==void 0?o:[],N=[...g,...C].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;Se([(0,ce.property)()],X.prototype,"exportpartsPrefix",void 0);Se([Wr([])],X.prototype,"exportpartsPrefixes",void 0);Se([(0,ce.property)({reflect:!0})],X.prototype,"exportparts",void 0);Se([(0,ce.property)()],X.prototype,"customStylesheet",void 0);Se([(0,ce.property)()],X.prototype,"elementToFocus",void 0);Se([(0,ce.state)()],X.prototype,"useAdoptedStyleSheets",void 0);function nt(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Pe=Symbol("internalReduxEventsUnsubscribers"),ie=Symbol("internalStoresUnsubscribers"),le=Symbol("internalStores"),gi=Qe(Symbol("withRedux"),function(e){var t,r,n;class i 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[Pe].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[Pe].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[Pe].get(a))===null||o===void 0||o.forEach(c=>c()),this[Pe].delete(a)}onStoreAvailable(a){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=ie,r=le,n=Pe,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),rn=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 Ai=typeof Symbol=="function"&&Symbol.observable||"@@observable",nn=Ai,Yt=()=>Math.random().toString(36).substring(7).split("").join("."),vi={INIT:`@@redux/INIT${Yt()}`,REPLACE:`@@redux/REPLACE${Yt()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Yt()}`},st=vi;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,i=t,s=new Map,a=s,o=0,c=!1;function l(){a===s&&(a=new Map,s.forEach((E,L)=>{a.set(L,E)}))}function u(){if(c)throw new Error(M(3));return i}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),s=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,i=n(i,E)}finally{c=!1}return(s=a).forEach(U=>{U()}),E}function g(E){if(typeof E!="function")throw new Error(M(10));n=E,f({type:st.REPLACE})}function C(){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:st.INIT}),{dispatch:f,subscribe:p,getState:u,replaceReducer:g,[nn]:C}}function Si(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 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),i,s;try{Si(r)}catch(a){s=a}return function(o={},c){if(s)throw s;let l=!1,u={};for(let p=0;p<n.length;p++){let f=n[p],g=r[f],C=o[f],N=g(C,c);if(typeof N>"u"){let E=c&&c.type;throw new Error(M(14))}u[f]=N,l=l||N!==C}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 an(...e){return t=>(r,n)=>{let i=t(r,n),s=()=>{throw new Error(M(15))},a={getState:i.getState,dispatch:(c,...l)=>s(c,...l)},o=e.map(c=>c(a));return s=ke(...o)(i.dispatch),{...i,dispatch:s}}}function on(e){return it(e)&&"type"in e&&typeof e.type=="string"}var yn=Symbol.for("immer-nothing"),cn=Symbol.for("immer-draftable"),I=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[I];function H(e){return e?En(e)||Et(e)||!!e[cn]||!!e[lt]?.[cn]||gt(e)||At(e):!1}var xi=B[mt][lt].toString(),ln=new WeakMap;function En(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=ln.get(r);return n===void 0&&(n=Function.toString.call(r),ln.set(r,n)),n===xi}function yt(e,t,r=!0){je(e)===0?(r?Reflect.ownKeys(e):B.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((n,i)=>t(i,n,e))}function je(e){let t=e[I];return t?t.type_:Et(e)?1:gt(e)?2:At(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,At=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(At(e))return new Set(e);if(Et(e))return Array[mt].slice.call(e);let r=En(e);if(t===!0||t==="class_only"&&!r){let n=B.getOwnPropertyDescriptors(e);delete n[I];let i=Reflect.ownKeys(n);for(let s=0;s<i.length;s++){let a=i[s],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 i=B.create(n);return B.assign(i,e)}}function ur(e,t=!1){return vt(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 vt(e){return e===null||!cr(e)?!0:B.isFrozen(e)}var pt="MapSet",nr="Patches",un="ArrayMethods",gn={};function ue(e){let t=gn[e];return t||q(0,e),t}var dn=e=>!!gn[e];var Be,An=()=>Be,Oi=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:dn(pt)?ue(pt):void 0,arrayMethodsPlugin_:dn(un)?ue(un):void 0});function pn(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 fn=e=>Be=Oi(Be,e);function Ti(e){let t=e[I];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[I].modified_&&(sr(t),q(4)),H(e)&&(e=mn(t,e));let{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(r[I].base_,e,t)}else e=mn(t,r);return Ri(t,e,!0),sr(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==yn?e:void 0}function mn(e,t){if(vt(t))return t;let r=t[I];if(!r)return ft(t,e.handledSet_,e);if(!St(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 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 St=(e,t)=>e.scope_===t,wi=[];function Sn(e,t,r,n){let i=ee(e),s=e.type_;if(n!==void 0&&tr(i,n,s)===t){dt(i,n,r,s);return}if(!e.draftLocations_){let o=e.draftLocations_=new Map;yt(i,(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(i,o,r,s)}function Ni(e,t,r){e.callbacks_.push(function(i){let s=t;if(!s||!St(s,i))return;i.mapSetPlugin_?.fixSetContents(s);let a=lr(s);Sn(e,s.draft_??s,a,r),xn(s,i)})}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 i=n.getPath(e);i&&n.generatePatches_(e,i,t)}vn(e)}}function Li(e,t,r){let{scope_:n}=e;if(J(r)){let i=r[I];St(i,n)&&i.callbacks_.push(function(){ct(e);let a=lr(i);Sn(e,r,a,t)})}else H(r)&&e.callbacks_.push(function(){let s=ee(e);e.type_===3?s.has(r)&&ft(r,n.handledSet_,n):tr(s,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)||vt(e)||(t.add(e),yt(e,(n,i)=>{if(J(i)){let s=i[I];if(St(s,r)){let a=lr(s);dt(e,n,a,e.type_),vn(s)}}else H(i)&&ft(i,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},i=n,s=ht;r&&(i=[n],s=He);let{revoke:a,proxy:o}=Proxy.revocable(i,s);return n.draft_=o,n.revoke_=a,[o,n]}var ht={get(e,t){if(t===I)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 i=ee(e);if(!Jt(i,t,e.type_))return Ii(e,i,t);let s=i[t];if(e.finalized_||!H(s)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&bi(t))return s;if(s===Zt(e.base_,t)||Di(e,t,s)){ct(e);let a=e.type_===1?+t:t,o=or(e.scope_,s,e,a);return e.copy_[a]=o}return s},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 i=Zt(ee(e),t),s=i?.[I];if(s&&s.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(_i(r,i)&&(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[I];return(r?ee(r):e)[t]}function Di(e,t,r){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!H(r)||r[I]?!1:e.baseRefs_.has(r)}function Ii(e,t,r){let n=_n(t,r);return n?Ue in n?n[Ue]:n.get?.call(e.draft_):void 0}function _n(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 Pi=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,n)=>{if(xe(t)&&!xe(r)){let s=r;r=t;let a=this;return function(c=s,...l){return a.produce(c,u=>r.call(this,u,...l))}}xe(r)||q(6),n!==void 0&&!xe(n)&&q(7);let i;if(H(t)){let s=fn(this),a=or(s,t,void 0),o=!0;try{i=r(a),o=!1}finally{o?sr(s):ir(s)}return pn(s,n),hn(i,s)}else if(!t||!cr(t)){if(i=r(t),i===void 0&&(i=t),i===yn&&(i=void 0),this.autoFreeze_&&ur(i,!0),n){let s=[],a=[];ue(nr).generateReplacementPatches_(t,i,{patches_:s,inversePatches_:a}),n(s,a)}return i}else q(1,t)},this.produceWithPatches=(t,r)=>{if(xe(t))return(a,...o)=>this.produceWithPatches(a,c=>t(c,...o));let n,i;return[this.produce(t,r,(a,o)=>{n=a,i=o}),n,i]},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=bn(e));let t=fn(this),r=or(t,e,void 0);return r[I].isManual_=!0,ir(t),r}finishDraft(e,t){let r=e&&e[I];(!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 i=t[r];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}r>-1&&(t=t.slice(r+1));let n=ue(nr).applyPatches_;return J(e)?n(e,t):this.produce(e,i=>n(i,t))}};function or(e,t,r,n){let[i,s]=gt(t)?ue(pt).proxyMap_(t,r):At(t)?ue(pt).proxySet_(t,r):Mi(t,r);return(r?.scope_??An()).drafts_.push(i),s.callbacks_=r?.callbacks_??[],s.key_=n,r&&n!==void 0?Ni(r,s,n):s.callbacks_.push(function(c){c.mapSetPlugin_?.fixSetContents(s);let{patchPlugin_:l}=c;s.modified_&&l&&l.generatePatches_(s,[],c)}),i}function bn(e){return J(e)||q(10,e),Cn(e)}function Cn(e){if(!H(e)||vt(e))return e;let t=e[I],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,(i,s)=>{dt(r,i,Cn(s))},n),t&&(t.finalized_=!1),r}var ki=globalThis.Iterator,Ao=typeof ki?.from=="function";var Ui=new Pi,dr=Ui.produce;function On(e){return({dispatch:r,getState:n})=>i=>s=>typeof s=="function"?s(r,n,e):i(s)}var Tn=On(),Rn=On;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)},Oo=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 i=t(...n);if(!i)throw new Error(te(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>on(n)&&n.type===e,r}var Dn=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 wn(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:i=!0,actionCreatorCheck:s=!0}=t??{},a=new Dn;return r&&(ji(r)?a.push(Tn):a.push(Rn(r.extraArgument))),a},Fi="RTK_autoBatch";var Nn=e=>t=>{setTimeout(t,e)},Ki=(e,t)=>r=>{let n=!1,i=()=>{n||(n=!0,cancelAnimationFrame(s),clearTimeout(a),r())},s=e(i),a=setTimeout(i,t)},Gi=(e={type:"raf"})=>t=>(...r)=>{let n=t(...r),i=!0,s=!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,s&&(s=!1,o.forEach(u=>u()))};return Object.assign({},n,{subscribe(u){let p=()=>i&&u(),f=n.subscribe(p);return o.add(u),()=>{f(),o.delete(u)}},dispatch(u){try{return i=!u?.meta?.[Fi],s=!i,s&&(a||(a=!0,c(l))),n.dispatch(u)}finally{i=!0}}})},$i=e=>function(r){let{autoBatch:n=!0}=r??{},i=new Dn(e);return n&&i.push(Gi(typeof n=="object"?n:void 0)),i};function In(e){let t=Vi(),{reducer:r=void 0,middleware:n,devTools:i=!0,duplicateMiddlewareCheck:s=!0,preloadedState:a=void 0,enhancers:o=void 0}=e||{},c;if(typeof r=="function")c=r;else if(it(r))c=sn(r);else throw new Error(te(1));let l;typeof n=="function"?l=n(t):l=t();let u=ke;i&&(u=Bi({trace:!1,...typeof i=="object"&&i}));let p=an(...l),f=$i(p),g=typeof o=="function"?o(f):f(),C=u(...g);return Xt(c,a,C)}function Pn(e){let t={},r=[],n,i={addCase(s,a){let o=typeof s=="string"?s:s.type;if(!o)throw new Error(te(28));if(o in t)throw new Error(te(29));return t[o]=a,i},addAsyncThunk(s,a){return a.pending&&(t[s.pending.type]=a.pending),a.rejected&&(t[s.rejected.type]=a.rejected),a.fulfilled&&(t[s.fulfilled.type]=a.fulfilled),a.settled&&r.push({matcher:s.settled,reducer:a.settled}),i},addMatcher(s,a){return r.push({matcher:s,reducer:a}),i},addDefaultCase(s){return n=s,i}};return e(i),[t,r,n]}function zi(e){return typeof e=="function"}function qi(e,t){let[r,n,i]=Pn(t),s;if(zi(e))s=()=>wn(e());else{let o=wn(e);s=()=>o}function a(o=s(),c){let l=[r[c.type],...n.filter(({matcher:u})=>u(c)).map(({reducer:u})=>u)];return l.filter(u=>!!u).length===0&&(l=[i]),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=s,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},Ln=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)}},Mn="External signal was aborted",ea=(()=>{function e(t,r,n){let i=ae(t+"/fulfilled",(c,l,u,p)=>({payload:c,meta:{...p||{},arg:u,requestId:l,requestStatus:"fulfilled"}})),s=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(),C=new AbortController,N,E;function L(y){E=y,C.abort()}l&&(l.aborted?L(Mn):l.addEventListener("abort",()=>L(Mn),{once:!0}));let U=(async function(){let y;try{let v=n?.condition?.(c,{getState:p,extra:f});if(ra(v)&&(v=await v),v===!1||C.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"})},C.signal.addEventListener("abort",N,{once:!0})});u(s(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:C.signal,abort:L,rejectWithValue:((_,O)=>new pr(_,O)),fulfillWithValue:((_,O)=>new Ln(_,O))})).then(_=>{if(_ instanceof pr)throw _;return _ instanceof Ln?i(_.payload,g,c,_.meta):i(_,g,c)})])}catch(v){y=v instanceof pr?a(null,g,c,v.payload,v.meta):a(v,g,c)}finally{N&&C.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:s,rejected:a,fulfilled:i,settled:Yi(a,i),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 kn=Symbol.for("rtk-slice-createasyncthunk"),Ro={[kn]:ea};function na(e,t){return`${e}/${t}`}function sa({creators:e}={}){let t=e?.asyncThunk?.[kn];return function(n){let{name:i,reducerPath:s=i}=n;if(!i)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,A){let v=typeof y=="string"?y:y.type;if(!v)throw new Error(te(12));if(v in c.sliceCaseReducersByType)throw new Error(te(13));return c.sliceCaseReducersByType[v]=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],v={reducerName:y,type:na(i,y),createNotation:typeof n.reducers=="function"};ca(A)?ua(v,A,l,t):oa(v,A,l)});function u(){let[y={},A=[],v=void 0]=typeof n.extraReducers=="function"?Pn(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);v&&_.addDefaultCase(v)})}let p=y=>y,f=new Map,g=new WeakMap,C;function N(y,A){return C||(C=u()),C(y,A)}function E(){return C||(C=u()),C.getInitialState()}function L(y,A=!1){function v(_){let O=_[y];return typeof O>"u"&&A&&(O=xt(g,v,E)),O}function W(_=p){let O=xt(f,A,()=>new WeakMap);return xt(O,_,()=>{let Rr={};for(let[ii,ai]of Object.entries(n.selectors??{}))Rr[ii]=ia(ai,_,()=>xt(g,_,E),A);return Rr})}return{reducerPath:y,getSelectors:W,get selectors(){return W(v)},selectSlice:v}}let U={name:i,reducer:N,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:E,...L(s),injectInto(y,{reducerPath:A,...v}={}){let W=A??s;return y.inject({reducerPath:W,reducer:N},v),{...U,...L(W,!0)}}};return U}}function ia(e,t,r,n){function i(s,...a){let o=t(s);return typeof o>"u"&&n&&(o=r()),e(o,...a)}return i.unwrapped=e,i}var Un=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,i){let s,a;if("reducer"in n){if(r&&!la(n))throw new Error(te(17));s=n.reducer,a=n.prepare}else s=n;i.addCase(e,s).exposeCaseReducer(t,s).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,i){if(!i)throw new Error(te(18));let{payloadCreator:s,fulfilled:a,pending:o,rejected:c,settled:l,options:u}=r,p=i(e,s,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 Bn="listener",Hn="completed",jn="cancelled",wo=`task-${jn}`,No=`task-${Hn}`,Lo=`${Bn}-${jn}`,Mo=`${Bn}-${Hn}`;var{assign:Vn}=Object;var fr="listenerMiddleware";var da=Vn(ae(`${fr}/add`),{withTypes:()=>da}),Do=ae(`${fr}/removeAll`),pa=Vn(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,i){this.eventBus.addEventListener(r,n,i)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,i){this.eventBus.removeEventListener(r,n,i)}}}),bt=class extends fa(Object){};window.ftReduxStores||(window.ftReduxStores={});var Fn=class e extends bt{static get(t){var r;let n=typeof t=="string"?t:t.name,i=typeof t=="string"?void 0:t,s=window.ftReduxStores[n];if(nt(s))return s;if(i==null)return;let a=Un({...i,reducers:(r=i.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[i.name]=new e(a,o,i.eventBus)}constructor(t,r,n){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Ze,this.injectInto=(s,a)=>this.reduxSlice.injectInto(s,a),this.selectSlice=s=>this.reduxSlice.selectSlice(s);let i=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,a,o)=>{let c=a,l=s[c];return l?(...u)=>{let p=l(...u.map(i));return this.reduxStore.dispatch(p),p}:u=>{let p=c,f=this.getState()[p];Ae(f,u)||this.setState({[p]:i(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,i,s){return window.moment?window.moment(t).locale(r).format(this.getMomentDateFormat(n,i,!!s)):this.getIntlDateTime(t,r,n,i,!!s)}static getMomentDateFormat(t,r,n){return n?"LT":t?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(t,r,n,i,s){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 s?c:i?`${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(S()),ha="ft-app-info",de=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};de.eventName="authentication-change";var Fe=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Fe.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 Kn=h(S()),Tt=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(a=e[o])&&(s=(i<3?a(s):i>3?a(t,r,s):a(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},lc=(0,Kn.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 i,s;return((s=(i=this.metadataDescriptors.find(o=>o.key===n))===null||i===void 0?void 0:i.date)!==null&&s!==void 0?s:!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,i;return(i=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],t.prototype,"metadataDescriptors",void 0),Tt([Wt({store:m.name})],t.prototype,"uiLocale",void 0),t});var Gn;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Gn||(Gn={}));var $n;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})($n||($n={}));var zn;(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"})(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.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.METADATA_FILTER="METADATA_FILTER",e.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(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 F;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(F||(F={}));var gs;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(gs||(gs={}));var As;(function(e){e.UNREACHABLE="UNREACHABLE",e.UNAUTHORIZED="UNAUTHORIZED",e.FORBIDDEN="FORBIDDEN",e.INCOMPATIBLE="INCOMPATIBLE",e.FAILED="FAILED",e.OK="OK"})(As||(As={}));var vs;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(vs||(vs={}));var Ss;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.SEMANTIC_SEARCH="SEMANTIC_SEARCH",e.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",e.DOCUMENTATION="DOCUMENTATION",e.OTHER="OTHER"})(Ss||(Ss={}));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 mr(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))}function Ls(e,...t){return e==null?!1:t.some(r=>mr(e,r))}var Mt=h(S());var yr=h(S());var pe=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:n}=m.getState(),i=t??n;if(r&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,i,!0)}static await(t){return new Promise(r=>{let n=e.get(t);if(n)r(n);else{let i=m.subscribe(()=>{n=e.get(t),n&&(i(),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=(s,a)=>typeof a!="object"||a==null||Array.isArray(a)?a:Object.fromEntries(Object.entries(a).sort(([o],[c])=>o.localeCompare(c)));let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new yr.CacheRegistry,this.cache=t?i.commonCache:new yr.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 mr(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(F).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:i}=t.payload;gr(e,r,[...Er(e,r),i]),Ms(e,r,1,n),Ds(e,i)},editAsset:(e,t)=>{let{assetType:r,asset:n}=t.payload;gr(e,r,Er(e,r).map(i=>i.id===n.id?n:i)),Ds(e,n)},removeAsset:(e,t)=>{let{assetType:r,mapId:n,assetId:i}=t.payload;gr(e,r,Er(e,r).filter(s=>s.id!==i)),Ms(e,r,-1,n)}},Is={[F.SEARCHES]:"savedSearches",[F.BOOKMARKS]:"bookmarks",[F.BOOKS]:void 0,[F.COLLECTIONS]:void 0},Er=(e,t)=>{var r;let n=Is[t];return n?(r=e[n])!==null&&r!==void 0?r:[]:[]},gr=(e,t,r)=>{let n=Is[t];n&&(e[n]=r)},Ms=(e,t,r,n)=>{let i=e.assetCounts.allAsset[t];if(i!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,i+r),t===F.BOOKMARKS&&n)){let s=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,s+r)}},Ds=(e,t)=>{let r=e.assetLabels.map(i=>i.title),n=t.labels.filter(i=>!r.includes(i)).map(i=>({title:i}));e.assetLabels.push(...n)},P=Mt.FtReduxStore.get({name:Ea,reducers:ga,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(F).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Ar=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(),P.actions.clearAssetCount(),P.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),P.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),P.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();P.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();P.actions.assetLabels(t)}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&P.getState().assetCounts.allAsset[t]!==r.count&&P.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&P.getState().assetCounts.bookmarkByMap[t]!==r.count&&P.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(P.getState().assetCounts.bookmarkByMap).length!==0;t===F.BOOKMARKS&&r&&P.actions.clearBookmarkCountByMap(),P.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;P.actions.bookmarks(r)}}},Aa=new Ar;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Aa);var vr=class{addCommand(t,r=!1){m.commands.add(t,r)}consumeCommand(t){return m.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new vr;var K=h(S());var Ps,Ce=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},va=Symbol("clearAfterUnitTest"),Dt=class extends(0,K.withEventBus)(j){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Ps]=()=>{this.defaultMessages={},this.cache=new K.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 i={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...r};(0,K.deepEqual)(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var r,n;return this.fetchContext(t),(n=(r=this.cache.getNow(t))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,r){let n=t.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(t,r,...n){var i;let s=t.toLowerCase(),a=this.resolveContext(s);return new K.ParametrizedLabelResolver((i=this.defaultMessages[s])!==null&&i!==void 0?i:{},a).resolve(r,...n)}async fetchContext(t){let r=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),r&&await this.notify(t)}catch(i){!(i instanceof K.CanceledPromiseError)&&r&&console.error(i)}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 i;return(i=this.listeners[t])===null||i===void 0?void 0:i.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,K.delay)(0).then(()=>n()).catch(()=>null)))}};Ps=va;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,It=window.FluidTopicsCustomI18nService;var ks=h(S()),Sr=class{highlightHtml(t,r,n){(0,ks.highlightHtml)(t,r,n)}};window.FluidTopicsHighlightHtmlService=new Sr;var Us=h(S());var xr=class{isDate(t){var r,n,i,s;return(s=(n=((i=(r=m.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(o=>o.key===t))===null||n===void 0?void 0:n.date)!==null&&s!==void 0?s:!1}format(t,r){var n,i,s,a;if(t==null)return"";try{return Us.DateFormatter.format(t,(n=r?.locale)!==null&&n!==void 0?n:m.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(s=r?.withTime)!==null&&s!==void 0?s:!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 xr;var Bs=h(S());var Ke=class{static get(t,r){var n,i,s,a;let o=m.getState(),{lang:c,region:l}=(a=(i=(n=o.localesConfiguration)===null||n===void 0?void 0:n.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new Bs.SearchPlaceConverter(o.baseUrl,t??20,(s=o.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed,r??`${c}-${l}`)}};var _r=class{urlToSearchRequest(t){return Ke.get().parse(t)}searchRequestToUrl(t){return Ke.get().serialize(t)}};window.FluidTopicsUrlService=new _r;var re=h(S());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 br=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 br;var Pt=class e extends re.WithEventBus{static build(){return new e(window.history,Hs,()=>window.location,!1)}constructor(t,r,n,i){var s,a;super(),this.history=t,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(a=(s=t.state)===null||s===void 0?void 0:s.index)!==null&&a!==void 0?a:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}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,i,[s,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,...s,index:l,href:c.detail.nextLocation.href};n.apply(i,[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 i=t,s=t+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,n);)this.hasState(s)&&(i=s),s++;return i}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 i=r??this.currentState.majorStateId,s=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return s==null||s!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Pt.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
|
|
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())}};q.elementDefinitions={};q.styles=Fr;Me([(0,se.property)()],q.prototype,"variant",void 0);Me([(0,se.property)()],q.prototype,"value",void 0);Me([(0,se.property)({reflect:!0,attribute:"aria-hidden"})],q.prototype,"ariaHidden",void 0);Me([(0,se.state)()],q.prototype,"resolvedIcon",void 0);Me([(0,se.query)("slot")],q.prototype,"slottedContent",void 0);var $r={"ft-icon":q};(0,zr.customElements)($r);var mr=h(F());var qr=h(F(),1);var Wt=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)},mi=e=>({fromAttribute:t=>{if(t==null)return De(e);try{return JSON.parse(t)}catch{return De(e)}},toAttribute:t=>JSON.stringify(t)});function Wr(e,t){return(0,qr.property)({type:Object,converter:mi(e),hasChanged:Ie,...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(!Ae(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(!Ae(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let i=o=>Object.keys(o).filter(a=>o[a]!=null),s=i(e);if(r=s.length,r!==i(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[n]))return!1;for(n=r;n--!==0;){let o=s[n];if(!Ae(e[o],t[o]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function Ae(e,t){try{return yi(e,t)}catch{return!1}}function Ie(e,t){return!Ae(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 i=t(n);return i[e]=!0,i}}var Yr=h(F(),1);var Yt=e=>{let t=e??{};return(r,n)=>{var i;let s={hasChanged:Ie,attribute:!1,...t};(0,Yr.property)(s)(r,n);let o=r.constructor;o.reduxProperties=new Map(o.reduxProperties),o.reduxProperties.set(n,{selector:(i=t.selector)!==null&&i!==void 0?i:(a=>a[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(F(),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 i=(t=this.rejectPromise)!==null&&t!==void 0?t:(()=>null),s=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let o of n)try{await o()}catch(a){i(a);return}s(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var rt=h(Y(),1);var tt=class extends rt.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(0,rt.adoptStyles)(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){Wt(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 i=e.querySelector(t);for(let s of r)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(s);return i}var ve=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},en,Jr=Symbol("constructorPrototype"),Qr=Symbol("constructorName"),tn=Symbol("exportpartsDebouncer"),Zr=Symbol("dynamicDependenciesLoaded"),Se=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};Se.eventName="exportparts-updated";var X=class extends tt{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[en]=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[tn].run(()=>{var i,s;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((s=this.exportpartsPrefixes)===null||s===void 0?void 0:s.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[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(Se.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(Se.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 Se)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:i}=this.elementToFocus;if(n!=null){let s=[...i??[],n];r=Xr(this.shadowRoot,...s)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,n,i;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(s=>s.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(s){console.error(s,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let s=document.createElement("style");s.classList.add("ft-lit-element--custom-stylesheet"),s.innerHTML=this.customStylesheet,this.shadowRoot.append(s)}}setExportpartsAttribute(t){var r,n,i,s,o,a;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(s=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&s!==void 0?s:[]){let v=(o=(n=f.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&o!==void 0?o:[],_=(a=(i=f.getAttribute("exportparts"))===null||i===void 0?void 0:i.split(",").map(g=>g.split(":")[1]))!==null&&a!==void 0?a:[],R=[...v,..._].filter(c).map(g=>g.trim());for(let g of R)u.add(g)}if(u.size===0){this.exportparts=void 0;return}let p=[...u.values()].flatMap(f=>l.map(v=>`${f}:${v}--${f}`));this.exportparts=[...this.part,...p].join(", ")}};en=tn;ve([(0,ce.property)()],X.prototype,"exportpartsPrefix",void 0);ve([Wr([])],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 Pe=Symbol("internalReduxEventsUnsubscribers"),ie=Symbol("internalStoresUnsubscribers"),le=Symbol("internalStores"),Ei=Qe(Symbol("withRedux"),function(e){var t,r,n;class i extends e{constructor(){super(...arguments),this[t]=new Map,this[r]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(o){super.willUpdate(o),[...this.reduxConstructor.reduxReactiveProperties].some(a=>o.has(a))&&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(o){return o==null?this.getUnnamedStore():this[le].get(o)}addStore(o,a){var c;a=(c=a??o.name)!==null&&c!==void 0?c:"default-store",this.unsubscribeFromStore(a),this[le].set(a,o),this.subscribeToStore(a,o),this.updateFromStores()}removeStore(o){let a=typeof o=="string"?o:o.name;this.unsubscribeFromStore(a),this[le].delete(a)}setupStores(){this.unsubscribeFromStores(),this[le].forEach((o,a)=>this.subscribeToStore(a,o)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((o,a)=>{let c=this.constructor.getPropertyOptions(a);if(!c?.attribute||!this.hasAttribute(typeof c?.attribute=="string"?c.attribute:a)){let l=this.getStore(o.store);l&&(o.store?this[ie].has(o.store):this[ie].size>0)&&(this[a]=o.selector(l.getState(),this))}})}subscribeToStore(o,a){var c;this[ie].set(o,a.subscribe(()=>this.updateFromStores())),this[Pe].set(o,[]),nt(a)&&a.eventBus&&((c=this.reduxConstructor.reduxEventListeners)===null||c===void 0||c.forEach((l,u)=>{if(typeof this[u]=="function"&&(!l.store||a.name===l.store)){let p=f=>this[u](f);a.addEventListener(l.eventName,p),this[Pe].get(o).push(()=>a.removeEventListener(l.eventName,p))}})),this.onStoreAvailable(o)}unsubscribeFromStores(){this[ie].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[ie].has(o)&&this[ie].get(o)(),this[ie].delete(o),(a=this[Pe].get(o))===null||a===void 0||a.forEach(c=>c()),this[Pe].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=ie,r=le,n=Pe,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),rn=class extends Ei(X){};function L(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,Xt=()=>Math.random().toString(36).substring(7).split("").join("."),Ai={INIT:`@@redux/INIT${Xt()}`,REPLACE:`@@redux/REPLACE${Xt()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Xt()}`},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 Jt(e,t,r){if(typeof e!="function")throw new Error(L(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(L(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(L(1));return r(Jt)(e,t)}let n=e,i=t,s=new Map,o=s,a=0,c=!1;function l(){o===s&&(o=new Map,s.forEach((g,w)=>{o.set(w,g)}))}function u(){if(c)throw new Error(L(3));return i}function p(g){if(typeof g!="function")throw new Error(L(4));if(c)throw new Error(L(5));let w=!0;l();let B=a++;return o.set(B,g),function(){if(w){if(c)throw new Error(L(6));w=!1,l(),o.delete(B),s=null}}}function f(g){if(!it(g))throw new Error(L(7));if(typeof g.type>"u")throw new Error(L(8));if(typeof g.type!="string")throw new Error(L(17));if(c)throw new Error(L(9));try{c=!0,i=n(i,g)}finally{c=!1}return(s=o).forEach(B=>{B()}),g}function v(g){if(typeof g!="function")throw new Error(L(10));n=g,f({type:st.REPLACE})}function _(){let g=p;return{subscribe(w){if(typeof w!="object"||w===null)throw new Error(L(11));function B(){let E=w;E.next&&E.next(u())}return B(),{unsubscribe:g(B)}},[nn](){return this}}}return f({type:st.INIT}),{dispatch:f,subscribe:p,getState:u,replaceReducer:v,[nn]:_}}function Si(e){Object.keys(e).forEach(t=>{let r=e[t];if(typeof r(void 0,{type:st.INIT})>"u")throw new Error(L(12));if(typeof r(void 0,{type:st.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(L(13))})}function Qt(e){let t=Object.keys(e),r={};for(let o=0;o<t.length;o++){let a=t[o];typeof e[a]=="function"&&(r[a]=e[a])}let n=Object.keys(r),i,s;try{Si(r)}catch(o){s=o}return function(a={},c){if(s)throw s;let l=!1,u={};for(let p=0;p<n.length;p++){let f=n[p],v=r[f],_=a[f],R=v(_,c);if(typeof R>"u"){let g=c&&c.type;throw new Error(L(14))}u[f]=R,l=l||R!==_}return l=l||n.length!==Object.keys(a).length,l?u:a}}function ke(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function sn(...e){return t=>(r,n)=>{let i=t(r,n),s=()=>{throw new Error(L(15))},o={getState:i.getState,dispatch:(c,...l)=>s(c,...l)},a=e.map(c=>c(o));return s=ke(...a)(i.dispatch),{...i,dispatch:s}}}function on(e){return it(e)&&"type"in e&&typeof e.type=="string"}var mn=Symbol.for("immer-nothing"),an=Symbol.for("immer-draftable"),I=Symbol.for("immer-state");function W(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var H=Object,_e=H.getPrototypeOf,lt="constructor",mt="prototype",rr="configurable",ut="enumerable",at="writable",Ue="value",J=e=>!!e&&!!e[I];function j(e){return e?yn(e)||Et(e)||!!e[an]||!!e[lt]?.[an]||gt(e)||At(e):!1}var vi=H[mt][lt].toString(),cn=new WeakMap;function yn(e){if(!e||!ur(e))return!1;let t=_e(e);if(t===null||t===H[mt])return!0;let r=H.hasOwnProperty.call(t,lt)&&t[lt];if(r===Object)return!0;if(!xe(r))return!1;let n=cn.get(r);return n===void 0&&(n=Function.toString.call(r),cn.set(r,n)),n===vi}function yt(e,t,r=!0){je(e)===0?(r?Reflect.ownKeys(e):H.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((n,i)=>t(i,n,e))}function je(e){let t=e[I];return t?t.type_:Et(e)?1:gt(e)?2:At(e)?3:0}var Zt=(e,t,r=je(e))=>r===2?e.has(t):H[mt].hasOwnProperty.call(e,t),nr=(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 xi(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Et=Array.isArray,gt=e=>e instanceof Map,At=e=>e instanceof Set,ur=e=>typeof e=="object",xe=e=>typeof e=="function",er=e=>typeof e=="boolean";function _i(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var te=e=>e.copy_||e.base_;var dr=e=>e.modified_?e.copy_:e.base_;function sr(e,t){if(gt(e))return new Map(e);if(At(e))return new Set(e);if(Et(e))return Array[mt].slice.call(e);let r=yn(e);if(t===!0||t==="class_only"&&!r){let n=H.getOwnPropertyDescriptors(e);delete n[I];let i=Reflect.ownKeys(n);for(let s=0;s<i.length;s++){let o=i[s],a=n[o];a[at]===!1&&(a[at]=!0,a[rr]=!0),(a.get||a.set)&&(n[o]={[rr]:!0,[at]:!0,[ut]:a[ut],[Ue]:e[o]})}return H.create(_e(e),n)}else{let n=_e(e);if(n!==null&&r)return{...e};let i=H.create(n);return H.assign(i,e)}}function St(e,t=!1){return vt(e)||J(e)||!j(e)||(je(e)>1&&H.defineProperties(e,{set:ot,add:ot,clear:ot,delete:ot}),H.freeze(e),t&&yt(e,(r,n)=>{St(n,!0)},!1)),e}function bi(){W(2)}var ot={[Ue]:bi};function vt(e){return e===null||!ur(e)?!0:H.isFrozen(e)}var pt="MapSet",ir="Patches",ln="ArrayMethods",En={};function ue(e){let t=En[e];return t||W(0,e),t}var un=e=>!!En[e];var Be,gn=()=>Be,Ci=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:un(pt)?ue(pt):void 0,arrayMethodsPlugin_:un(ln)?ue(ln):void 0});function dn(e,t){t&&(e.patchPlugin_=ue(ir),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function or(e){ar(e),e.drafts_.forEach(Oi),e.drafts_=null}function ar(e){e===Be&&(Be=e.parent_)}var pn=e=>Be=Ci(Be,e);function Oi(e){let t=e[I];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function fn(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];if(e!==void 0&&e!==r){r[I].modified_&&(or(t),W(4)),j(e)&&(e=hn(t,e));let{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(r[I].base_,e,t)}else e=hn(t,r);return Ti(t,e,!0),or(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==mn?e:void 0}function hn(e,t){if(vt(t))return t;let r=t[I];if(!r)return ft(t,e.handledSet_,e);if(!xt(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);vn(r,e)}return r.copy_}function Ti(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&St(t,r)}function An(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var xt=(e,t)=>e.scope_===t,Ri=[];function Sn(e,t,r,n){let i=te(e),s=e.type_;if(n!==void 0&&nr(i,n,s)===t){dt(i,n,r,s);return}if(!e.draftLocations_){let a=e.draftLocations_=new Map;yt(i,(c,l)=>{if(J(l)){let u=a.get(l)||[];u.push(c),a.set(l,u)}})}let o=e.draftLocations_.get(t)??Ri;for(let a of o)dt(i,a,r,s)}function wi(e,t,r){e.callbacks_.push(function(i){let s=t;if(!s||!xt(s,i))return;i.mapSetPlugin_?.fixSetContents(s);let o=dr(s);Sn(e,s.draft_??s,o,r),vn(s,i)})}function vn(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 i=n.getPath(e);i&&n.generatePatches_(e,i,t)}An(e)}}function Ni(e,t,r){let{scope_:n}=e;if(J(r)){let i=r[I];xt(i,n)&&i.callbacks_.push(function(){ct(e);let o=dr(i);Sn(e,r,o,t)})}else j(r)&&e.callbacks_.push(function(){let s=te(e);e.type_===3?s.has(r)&&ft(r,n.handledSet_,n):nr(s,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&ft(nr(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)||!j(e)||vt(e)||(t.add(e),yt(e,(n,i)=>{if(J(i)){let s=i[I];if(xt(s,r)){let o=dr(s);dt(e,n,o,e.type_),An(s)}}else j(i)&&ft(i,t,r)})),e}function Li(e,t){let r=Et(e),n={type_:r?1:0,scope_:t?t.scope_:gn(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=n,s=ht;r&&(i=[n],s=He);let{revoke:o,proxy:a}=Proxy.revocable(i,s);return n.draft_=a,n.revoke_=o,[a,n]}var ht={get(e,t){if(t===I)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 i=te(e);if(!Zt(i,t,e.type_))return Di(e,i,t);let s=i[t];if(e.finalized_||!j(s)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&_i(t))return s;if(s===tr(e.base_,t)||Mi(e,t,s)){ct(e);let o=e.type_===1?+t:t,a=lr(e.scope_,s,e,o);return e.copy_[o]=a}return s},has(e,t){return t in te(e)},ownKeys(e){return Reflect.ownKeys(te(e))},set(e,t,r){let n=xn(te(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let i=tr(te(e),t),s=i?.[I];if(s&&s.base_===r)return e.copy_[t]=r,e.assigned_.delete(t),!0;if(xi(r,i)&&(r!==void 0||Zt(e.base_,t,e.type_)))return!0;ct(e),cr(e)}return e.copy_[t]===r&&(r!==void 0||Zt(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 ct(e),tr(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),cr(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let r=te(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[at]:!0,[rr]:e.type_!==1||t!=="length",[ut]:n[ut],[Ue]:r[t]}},defineProperty(){W(11)},getPrototypeOf(e){return _e(e.base_)},setPrototypeOf(){W(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 tr(e,t){let r=e[I];return(r?te(r):e)[t]}function Mi(e,t,r){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!j(r)||r[I]?!1:e.baseRefs_.has(r)}function Di(e,t,r){let n=xn(t,r);return n?Ue in n?n[Ue]:n.get?.call(e.draft_):void 0}function xn(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 cr(e){e.modified_||(e.modified_=!0,e.parent_&&cr(e.parent_))}function ct(e){e.copy_||(e.assigned_=new Map,e.copy_=sr(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 s=r;r=t;let o=this;return function(c=s,...l){return o.produce(c,u=>r.call(this,u,...l))}}xe(r)||W(6),n!==void 0&&!xe(n)&&W(7);let i;if(j(t)){let s=pn(this),o=lr(s,t,void 0),a=!0;try{i=r(o),a=!1}finally{a?or(s):ar(s)}return dn(s,n),fn(i,s)}else if(!t||!ur(t)){if(i=r(t),i===void 0&&(i=t),i===mn&&(i=void 0),this.autoFreeze_&&St(i,!0),n){let s=[],o=[];ue(ir).generateReplacementPatches_(t,i,{patches_:s,inversePatches_:o}),n(s,o)}return i}else W(1,t)},this.produceWithPatches=(t,r)=>{if(xe(t))return(o,...a)=>this.produceWithPatches(o,c=>t(c,...a));let n,i;return[this.produce(t,r,(o,a)=>{n=o,i=a}),n,i]},er(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),er(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),er(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){j(e)||W(8),J(e)&&(e=_n(e));let t=pn(this),r=lr(t,e,void 0);return r[I].isManual_=!0,ar(t),r}finishDraft(e,t){let r=e&&e[I];(!r||!r.isManual_)&&W(9);let{scope_:n}=r;return dn(n,t),fn(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 i=t[r];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}r>-1&&(t=t.slice(r+1));let n=ue(ir).applyPatches_;return J(e)?n(e,t):this.produce(e,i=>n(i,t))}};function lr(e,t,r,n){let[i,s]=gt(t)?ue(pt).proxyMap_(t,r):At(t)?ue(pt).proxySet_(t,r):Li(t,r);return(r?.scope_??gn()).drafts_.push(i),s.callbacks_=r?.callbacks_??[],s.key_=n,r&&n!==void 0?wi(r,s,n):s.callbacks_.push(function(c){c.mapSetPlugin_?.fixSetContents(s);let{patchPlugin_:l}=c;s.modified_&&l&&l.generatePatches_(s,[],c)}),i}function _n(e){return J(e)||W(10,e),bn(e)}function bn(e){if(!j(e)||vt(e))return e;let t=e[I],r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=sr(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=sr(e,!0);return yt(r,(i,s)=>{dt(r,i,bn(s))},n),t&&(t.finalized_=!1),r}var Pi=globalThis.Iterator,ga=typeof Pi?.from=="function";var ki=new Ii,pr=ki.produce;function Cn(e){return({dispatch:r,getState:n})=>i=>s=>typeof s=="function"?s(r,n,e):i(s)}var On=Cn(),Tn=Cn;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"?ke:ke.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var Bi=e=>e&&typeof e.match=="function";function oe(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(Q(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>on(n)&&n.type===e,r}var Mn=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 Rn(e){return j(e)?pr(e,()=>{}):e}function _t(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:i=!0,actionCreatorCheck:s=!0}=t??{},o=new Mn;return r&&(Hi(r)?o.push(On):o.push(Tn(r.extraArgument))),o},Vi="RTK_autoBatch";var wn=e=>t=>{setTimeout(t,e)},Fi=(e,t)=>r=>{let n=!1,i,s,o=()=>{n||(n=!0,cancelAnimationFrame(i),clearTimeout(s),r())};i=e(o),s=setTimeout(o,t)},Ki=(e={type:"raf"})=>t=>(...r)=>{let n=t(...r),i=!0,s=!1,o=!1,a=new Set,c=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Fi(window.requestAnimationFrame,100):wn(10):e.type==="callback"?e.queueNotification:wn(e.timeout),l=()=>{o=!1,s&&(s=!1,a.forEach(u=>u()))};return Object.assign({},n,{subscribe(u){let p=()=>i&&u(),f=n.subscribe(p);return a.add(u),()=>{f(),a.delete(u)}},dispatch(u){try{return i=!u?.meta?.[Vi],s=!i,s&&(o||(o=!0,c(l))),n.dispatch(u)}finally{i=!0}}})},Gi=e=>function(r){let{autoBatch:n=!0}=r??{},i=new Mn(e);return n&&i.push(Ki(typeof n=="object"?n:void 0)),i};function Dn(e){let t=ji(),{reducer:r=void 0,middleware:n,devTools:i=!0,duplicateMiddlewareCheck:s=!0,preloadedState:o=void 0,enhancers:a=void 0}=e||{},c;if(typeof r=="function")c=r;else if(it(r))c=Qt(r);else throw new Error(Q(1));let l;typeof n=="function"?l=n(t):l=t();let u=ke;i&&(u=Ui({trace:!1,...typeof i=="object"&&i}));let p=sn(...l),f=Gi(p),v=typeof a=="function"?a(f):f(),_=u(...v);return Jt(c,o,_)}function In(e){let t={},r=[],n,i={addCase(s,o){let a=typeof s=="string"?s:s.type;if(!a)throw new Error(Q(28));if(a in t)throw new Error(Q(29));return t[a]=o,i},addAsyncThunk(s,o){return o.pending&&(t[s.pending.type]=o.pending),o.rejected&&(t[s.rejected.type]=o.rejected),o.fulfilled&&(t[s.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:s.settled,reducer:o.settled}),i},addMatcher(s,o){return r.push({matcher:s,reducer:o}),i},addDefaultCase(s){return n=s,i}};return e(i),[t,r,n]}function $i(e){return typeof e=="function"}function zi(e,t){let[r,n,i]=In(t),s;if($i(e))s=()=>Rn(e());else{let a=Rn(e);s=()=>a}function o(a=s(),c){let l=[r[c.type],...n.filter(({matcher:u})=>u(c)).map(({reducer:u})=>u)];return l.filter(u=>!!u).length===0&&(l=[i]),l.reduce((u,p)=>{if(p)if(J(u)){let f=p(u,c);return f===void 0?u:f}else{if(j(u))return pr(u,f=>p(f,c));{let f=p(u,c);if(f===void 0){if(u===null)return u;throw new Error(Q(9))}return f}}return u},a)}return o.getInitialState=s,o}var qi=(e,t)=>Bi(e)?e.match(t):e(t);function Wi(...e){return t=>e.some(r=>qi(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"],fr=class{payload;meta;_type;constructor(e,t){this.payload=e,this.meta=t}},Nn=class{payload;meta;_type;constructor(e,t){this.payload=e,this.meta=t}},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)}},Ln="External signal was aborted",Zi=(()=>{function e(t,r,n){let i=oe(t+"/fulfilled",(c,l,u,p)=>({payload:c,meta:{...p||{},arg:u,requestId:l,requestStatus:"fulfilled"}})),s=oe(t+"/pending",(c,l,u)=>({payload:void 0,meta:{...u||{},arg:l,requestId:c,requestStatus:"pending"}})),o=oe(t+"/rejected",(c,l,u,p,f)=>({payload:p,error:(n&&n.serializeError||Qi)(c||"Rejected"),meta:{...f||{},arg:u,requestId:l,rejectedWithValue:p!==void 0,requestStatus:"rejected",aborted:c?.name==="AbortError",condition:c?.name==="ConditionError"}}));function a(c,{signal:l}={}){return(u,p,f)=>{let v=n?.idGenerator?n.idGenerator(c):Xi(),_=new AbortController,R,g;function w(y){g=y,_.abort()}l&&(l.aborted?w(Ln):l.addEventListener("abort",()=>w(Ln),{once:!0}));let B=(async function(){let y;try{let E=n?.condition?.(c,{getState:p,extra:f});if(to(E)&&(E=await E),E===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};if(_.signal.aborted)throw{name:"AbortError",message:g||"Aborted"};let N=new Promise((b,D)=>{R=()=>{D({name:"AbortError",message:g||"Aborted"})},_.signal.addEventListener("abort",R,{once:!0})});u(s(v,c,n?.getPendingMeta?.({requestId:v,arg:c},{getState:p,extra:f}))),y=await Promise.race([N,Promise.resolve(r(c,{dispatch:u,getState:p,extra:f,requestId:v,signal:_.signal,abort:w,rejectWithValue:((b,D)=>new fr(b,D)),fulfillWithValue:((b,D)=>new Nn(b,D))})).then(b=>{if(b instanceof fr)throw b;return b instanceof Nn?i(b.payload,v,c,b.meta):i(b,v,c)})])}catch(E){y=E instanceof fr?o(null,v,c,E.payload,E.meta):o(E,v,c)}finally{R&&_.signal.removeEventListener("abort",R)}return n&&!n.dispatchConditionRejection&&o.match(y)&&y.meta.condition||u(y),y})();return Object.assign(B,{abort:w,requestId:v,arg:c,unwrap(){return B.then(eo)}})}}return Object.assign(a,{pending:s,rejected:o,fulfilled:i,settled:Wi(o,i),typePrefix:t})}return e.withTypes=()=>e,e})();function eo(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function to(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Pn=Symbol.for("rtk-slice-createasyncthunk"),Oa={[Pn]:Zi};function ro(e,t){return`${e}/${t}`}function no({creators:e}={}){let t=e?.asyncThunk?.[Pn];return function(n){let{name:i,reducerPath:s=i}=n;if(!i)throw new Error(Q(11));typeof process<"u";let o=(typeof n.reducers=="function"?n.reducers(io()):n.reducers)||{},a=Object.keys(o),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},l={addCase(y,E){let N=typeof y=="string"?y:y.type;if(!N)throw new Error(Q(12));if(N in c.sliceCaseReducersByType)throw new Error(Q(13));return c.sliceCaseReducersByType[N]=E,l},addMatcher(y,E){return c.sliceMatchers.push({matcher:y,reducer:E}),l},exposeAction(y,E){return c.actionCreators[y]=E,l},exposeCaseReducer(y,E){return c.sliceCaseReducersByName[y]=E,l}};a.forEach(y=>{let E=o[y],N={reducerName:y,type:ro(i,y),createNotation:typeof n.reducers=="function"};ao(E)?lo(N,E,l,t):oo(N,E,l)});function u(){let[y={},E=[],N=void 0]=typeof n.extraReducers=="function"?In(n.extraReducers):[n.extraReducers],b={...y,...c.sliceCaseReducersByType};return zi(n.initialState,D=>{for(let P in b)D.addCase(P,b[P]);for(let P of c.sliceMatchers)D.addMatcher(P.matcher,P.reducer);for(let P of E)D.addMatcher(P.matcher,P.reducer);N&&D.addDefaultCase(N)})}let p=y=>y,f=new Map,v=new WeakMap,_;function R(y,E){return _||(_=u()),_(y,E)}function g(){return _||(_=u()),_.getInitialState()}function w(y,E=!1){function N(D){let P=D[y];return typeof P>"u"&&E&&(P=_t(v,N,g)),P}function b(D=p){return _t(_t(f,E,()=>new WeakMap),D,()=>{let P={};for(let[si,ii]of Object.entries(n.selectors??{}))P[si]=so(ii,D,()=>_t(v,D,g),E);return P})}return{reducerPath:y,getSelectors:b,get selectors(){return b(N)},selectSlice:N}}let B={name:i,reducer:R,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:g,...w(s),injectInto(y,{reducerPath:E,...N}={}){let b=E??s;return y.inject({reducerPath:b,reducer:R},N),{...B,...w(b,!0)}}};return B}}function so(e,t,r,n){function i(s,...o){let a=t(s);return typeof a>"u"&&n&&(a=r()),e(a,...o)}return i.unwrapped=e,i}var kn=no();function io(){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 oo({type:e,reducerName:t,createNotation:r},n,i){let s,o;if("reducer"in n){if(r&&!co(n))throw new Error(Q(17));s=n.reducer,o=n.prepare}else s=n;i.addCase(e,s).exposeCaseReducer(t,s).exposeAction(t,o?oe(e,o):oe(e))}function ao(e){return e._reducerDefinitionType==="asyncThunk"}function co(e){return e._reducerDefinitionType==="reducerWithPrepare"}function lo({type:e,reducerName:t},r,n,i){if(!i)throw new Error(Q(18));let{payloadCreator:s,fulfilled:o,pending:a,rejected:c,settled:l,options:u}=r,p=i(e,s,u);n.exposeAction(t,p),o&&n.addCase(p.fulfilled,o),a&&n.addCase(p.pending,a),c&&n.addCase(p.rejected,c),l&&n.addMatcher(p.settled,l),n.exposeCaseReducer(t,{fulfilled:o||bt,pending:a||bt,rejected:c||bt,settled:l||bt})}function bt(){}var Un="listener",Bn="completed",Hn="cancelled",Ta=`task-${Hn}`,Ra=`task-${Bn}`,wa=`${Un}-${Hn}`,Na=`${Un}-${Bn}`;var{assign:jn}=Object;var hr="listenerMiddleware";var uo=jn(oe(`${hr}/add`),{withTypes:()=>uo}),La=oe(`${hr}/removeAll`),po=jn(oe(`${hr}/remove`),{withTypes:()=>po});function Q(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 fo=Qe(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,n,i){this.eventBus.addEventListener(r,n,i)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,i){this.eventBus.removeEventListener(r,n,i)}}}),Ct=class extends fo(Object){};window.ftReduxStores||(window.ftReduxStores={});var Vn=class e extends Ct{static get(t){var r;let n=typeof t=="string"?t:t.name,i=typeof t=="string"?void 0:t,s=window.ftReduxStores[n];if(nt(s))return s;if(i==null)return;let o=kn({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),a=Dn({reducer:(c,l)=>{if(l.type==="CLEAR_FT_REDUX_STORE"){let u=De(o.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 o.reducer(c,l)}});return window.ftReduxStores[i.name]=new e(o,a,i.eventBus)}constructor(t,r,n){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Ze,this.injectInto=(s,o)=>this.reduxSlice.injectInto(s,o),this.selectSlice=s=>this.reduxSlice.selectSlice(s);let i=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,o,a)=>{let c=o,l=s[c];return l?(...u)=>{let p=l(...u.map(i));return this.reduxStore.dispatch(p),p}:u=>{let p=c,f=this.getState()[p];Ae(f,u)||this.setState({[p]:i(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 Ot=class{static format(t,r,n,i,s){return window.moment?window.moment(t).locale(r).format(this.getMomentDateFormat(n,i,!!s)):this.getIntlDateTime(t,r,n,i,!!s)}static getMomentDateFormat(t,r,n){return n?"LT":t?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(t,r,n,i,s){let o=typeof t=="string"?new Date(t):t,a=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(o),c=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(o);return s?c:i?`${a} ${c}`:a}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 Tt=h(A()),ho="ft-app-info",de=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};de.eventName="authentication-change";var Fe=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Fe.eventName="ui-locale-changed";var mo={session:(e,t)=>{(0,Tt.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>m.dispatchEvent(new de(t.payload)),0))}},m=Tt.FtReduxStore.get({name:ho,reducers:mo,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(A()),Rt=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},ac=(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 i,s;return((s=(i=this.metadataDescriptors.find(a=>a.key===n))===null||i===void 0?void 0:i.date)!==null&&s!==void 0?s:!1)?a=>Ot.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Rt([(0,mr.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),Rt([(0,mr.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),Rt([Yt({store:m.name,selector:r=>{var n,i;return(i=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],t.prototype,"metadataDescriptors",void 0),Rt([Yt({store:m.name})],t.prototype,"uiLocale",void 0),t});var Kn;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Kn||(Kn={}));var Gn;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Gn||(Gn={}));var $n;(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"})($n||($n={}));var zn;(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"})(zn||(zn={}));var qn;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(qn||(qn={}));var Wn;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(Wn||(Wn={}));var Yn;(function(e){e.OFFICIAL="OFFICIAL",e.AI="AI"})(Yn||(Yn={}));var Xn;(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"})(Xn||(Xn={}));var Jn;(function(e){e.STANDARD="STANDARD",e.STRUCTURAL="STRUCTURAL"})(Jn||(Jn={}));var Qn;(function(e){e.METADATA_FILTER="METADATA_FILTER",e.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(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 os;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(os||(os={}));var as;(function(e){e.ASC="ASC",e.DESC="DESC"})(as||(as={}));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 C;(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"})(C||(C={}));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.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 yo={[C.PERSONAL_BOOK_SHARE_USER]:[C.PERSONAL_BOOK_USER],[C.HTML_EXPORT_USER]:[C.PERSONAL_BOOK_USER],[C.PDF_EXPORT_USER]:[C.PERSONAL_BOOK_USER],[C.KHUB_ADMIN]:[C.CONTENT_PUBLISHER],[C.ADMIN]:[C.KHUB_ADMIN,C.USERS_ADMIN,C.PORTAL_ADMIN,C.BEHAVIOR_DATA_USER],[C.GENERATIVE_AI_EXPORT_USER]:[C.GENERATIVE_AI_USER]};function ws(e,t){return e===t||(yo[e]??[]).some(r=>ws(r,t))}function yr(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))}function Ns(e,...t){return e==null?!1:t.some(r=>yr(e,r))}var Dt=h(A());var Er=h(A());var pe=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:n}=m.getState(),i=t??n;if(r&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,i,!0)}static await(t){return new Promise(r=>{let n=e.get(t);if(n)r(n);else{let i=m.subscribe(()=>{n=e.get(t),n&&(i(),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 V=class extends be{constructor(t=!0,r){var n;super(r),this.sortObjectFields=(s,o)=>typeof o!="object"||o==null||Array.isArray(o)?o:Object.fromEntries(Object.entries(o).sort(([a],[c])=>a.localeCompare(c)));let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new Er.CacheRegistry,this.cache=t?i.commonCache:new Er.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 wt=class extends V{async listMySearches(){let{session:t}=m.getState();return yr(t,C.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),300*1e3):[]}};var Nt=class extends V{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 Lt=class extends V{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 Mt=class extends V{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 Eo="ft-user-assets",go={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:i}=t.payload;Ar(e,r,[...gr(e,r),i]),Ls(e,r,1,n),Ms(e,i)},editAsset:(e,t)=>{let{assetType:r,asset:n}=t.payload;Ar(e,r,gr(e,r).map(i=>i.id===n.id?n:i)),Ms(e,n)},removeAsset:(e,t)=>{let{assetType:r,mapId:n,assetId:i}=t.payload;Ar(e,r,gr(e,r).filter(s=>s.id!==i)),Ls(e,r,-1,n)}},Ds={[K.SEARCHES]:"savedSearches",[K.BOOKMARKS]:"bookmarks",[K.BOOKS]:void 0,[K.COLLECTIONS]:void 0},gr=(e,t)=>{var r;let n=Ds[t];return n?(r=e[n])!==null&&r!==void 0?r:[]:[]},Ar=(e,t,r)=>{let n=Ds[t];n&&(e[n]=r)},Ls=(e,t,r,n)=>{let i=e.assetCounts.allAsset[t];if(i!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,i+r),t===K.BOOKMARKS&&n)){let s=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,s+r)}},Ms=(e,t)=>{let r=e.assetLabels.map(i=>i.title),n=t.labels.filter(i=>!r.includes(i)).map(i=>({title:i}));e.assetLabels.push(...n)},k=Dt.FtReduxStore.get({name:Eo,reducers:go,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(K).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Sr=class{constructor(t=new Lt,r=new Mt){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=m.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Nt,this.savedSearchesService=new wt,m.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=m.getState();(0,Dt.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(),k.actions.clearAssetCount(),k.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),k.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),k.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();k.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();k.actions.assetLabels(t)}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&k.getState().assetCounts.allAsset[t]!==r.count&&k.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&k.getState().assetCounts.bookmarkByMap[t]!==r.count&&k.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(k.getState().assetCounts.bookmarkByMap).length!==0;t===K.BOOKMARKS&&r&&k.actions.clearBookmarkCountByMap(),k.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;k.actions.bookmarks(r)}}},Ao=new Sr;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Ao);var vr=class{addCommand(t,r=!1){m.commands.add(t,r)}consumeCommand(t){return m.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new vr;var G=h(A());var Is,Ce=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},So=Symbol("clearAfterUnitTest"),It=class extends(0,G.withEventBus)(V){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 i={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...r};(0,G.deepEqual)(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var r,n;return this.fetchContext(t),(n=(r=this.cache.getNow(t))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,r){let n=t.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(t,r,...n){var i;let s=t.toLowerCase(),o=this.resolveContext(s);return new G.ParametrizedLabelResolver((i=this.defaultMessages[s])!==null&&i!==void 0?i:{},o).resolve(r,...n)}async fetchContext(t){let r=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),r&&await this.notify(t)}catch(i){!(i instanceof G.CanceledPromiseError)&&r&&console.error(i)}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 i;return(i=this.listeners[t])===null||i===void 0?void 0:i.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=So;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends It{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends It{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Oe=window.FluidTopicsI18nService,Pt=window.FluidTopicsCustomI18nService;var Ps=h(A()),xr=class{highlightHtml(t,r,n){(0,Ps.highlightHtml)(t,r,n)}};window.FluidTopicsHighlightHtmlService=new xr;var ks=h(A());var _r=class{isDate(t){var r,n,i,s;return(s=(n=((i=(r=m.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(a=>a.key===t))===null||n===void 0?void 0:n.date)!==null&&s!==void 0?s:!1}format(t,r){var n,i,s,o;if(t==null)return"";try{return ks.DateFormatter.format(t,(n=r?.locale)!==null&&n!==void 0?n:m.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(s=r?.withTime)!==null&&s!==void 0?s:!1,(o=r?.onlyTime)!==null&&o!==void 0?o:!1)}catch(a){throw console.error(`Date ${JSON.stringify(t)} is not valid`,a),a}}};window.FluidTopicsDateService=new _r;var Us=h(A());var Ke=class{static get(t,r){var n,i,s,o;let a=m.getState(),{lang:c,region:l}=(o=(i=(n=a.localesConfiguration)===null||n===void 0?void 0:n.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&o!==void 0?o:{lang:"en",region:"US"};return new Us.SearchPlaceConverter(a.baseUrl,t??20,(s=a.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed,r??`${c}-${l}`)}};var br=class{urlToSearchRequest(t){return Ke.get().parse(t)}searchRequestToUrl(t){return Ke.get().serialize(t)}};window.FluidTopicsUrlService=new br;var re=h(A());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 Cr=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 Cr;var kt=class e extends re.WithEventBus{static build(){return new e(window.history,Bs,()=>window.location,!1)}constructor(t,r,n,i){var s,o;super(),this.history=t,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(o=(s=t.state)===null||s===void 0?void 0:s.index)!==null&&o!==void 0?o:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}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,i,[s,o,a])=>{let c=new fe(new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin));this.dispatchEvent(c);let l=r(),u={...l===this.currentIndex?this.currentState:void 0,...s,index:l,href:c.detail.nextLocation.href};n.apply(i,[u,o,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 i=t,s=t+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,n);)this.hasState(s)&&(i=s),s++;return i}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 i=r??this.currentState.majorStateId,s=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return s==null||s!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=kt.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 Hs=h(Y());var js=Hs.css`
|
|
82
|
+
`;var Ks=h(Y()),U=h(F()),Ee=h(A());var me=h(A());function Vs(e,t){let{authenticationRequired:r,session:n}=m.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(t):e()}var Ut=class extends be{async updateUiLocale(t){return(await this.awaitApi).updateUiLocale(t)}};var Or=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 Ut,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",()=>Vs(()=>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 Fe(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)}userHasAnyRole(...t){return Ns(m.getState().session,...t)}},Fs=Or.build();var ye=class extends Event{constructor(t,r,n,i){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=r,this.callback=n,this.subscribe=i??!1}};var Ge=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:i,callbackRef:s}of n){let o=i.deref(),a=s.deref();o===void 0||a===void 0||o.dispatchEvent(new ye(t.context,o,a,!0))}},this.onContextRequest=t=>{if(t.subscribe!==!0)return;let r=t.contextTarget??t.composedPath()[0],n=t.callback,i=this.pendingContextRequests.get(t.context);i===void 0&&this.pendingContextRequests.set(t.context,i={callbacks:new WeakMap,requests:[]});let s=i.callbacks.get(r);s===void 0&&i.callbacks.set(r,s=new WeakSet),s.has(n)||(s.add(n),i.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 T=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},S=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=Fs,this.contextRoot=new Ge}render(){return Ks.html`
|
|
83
83
|
<slot></slot>
|
|
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())}};
|
|
85
|
-
`;var
|
|
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())}};S.elementDefinitions={};S.styles=js;T([(0,U.property)()],S.prototype,"baseUrl",void 0);T([(0,U.property)()],S.prototype,"tenantId",void 0);T([(0,U.property)()],S.prototype,"apiIntegrationIdentifier",void 0);T([(0,U.property)()],S.prototype,"apiIntegrationAppVersion",void 0);T([(0,U.property)()],S.prototype,"uiLocale",void 0);T([(0,Ee.jsonProperty)(null)],S.prototype,"availableUiLocales",void 0);T([(0,Ee.jsonProperty)(null)],S.prototype,"metadataConfiguration",void 0);T([(0,U.property)({type:Boolean})],S.prototype,"editorMode",void 0);T([(0,U.property)({type:Boolean})],S.prototype,"noCustom",void 0);T([(0,U.property)({type:Boolean})],S.prototype,"openExternalDocumentInNewTab",void 0);T([(0,U.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],S.prototype,"noCustomComponent",void 0);T([(0,U.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],S.prototype,"noCustomCode",void 0);T([(0,U.property)({type:Boolean})],S.prototype,"withManualResources",void 0);T([(0,U.property)({type:Boolean})],S.prototype,"navigatorOnline",void 0);T([(0,U.property)({type:Boolean})],S.prototype,"forcedOffline",void 0);T([(0,U.property)({type:Boolean})],S.prototype,"authenticationRequired",void 0);T([(0,Ee.jsonProperty)([])],S.prototype,"messageContexts",void 0);T([(0,Ee.jsonProperty)(void 0)],S.prototype,"session",void 0);var $s=h(A());var Gs={"ft-app-context":S};(0,$s.customElements)(Gs);var Bt=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,i)=>{let s=i;return o=>({context:this.name,key:s,custom:this.custom,args:typeof o=="function"?void 0:o,argsProvider:typeof o=="function"?o:void 0})}}),this.messages=new Proxy({},{get:(n,i)=>(...s)=>this.service.resolveMessage(this.name,i,...s)}),this.rawMessages=new Proxy({},{get:(n,i)=>this.service.resolveRawMessage(this.name,i)}),this.keys=new Proxy({},{get:(n,i)=>()=>i}),this.attributes=new Proxy({},{get:(n,i)=>()=>({context:this.name,key:i,message:this.service.resolveRawMessage(this.name,i)})})}};var Te=h(A());var Ws=h(F());var Tr=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-]+$/)}},zs=new Tr;var _o=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},bo=Symbol("i18nAttributes"),Co=Symbol("i18nListAttributes"),Ys=Symbol("i18nProperties"),Ht=Symbol("i18nContexts"),$e=Symbol("i18nUnsubs"),Xs=(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(s){return s??this.useCustomMessageContexts?Pt:Oe}i18n(s){let{context:o,key:a,message:c}=s,{custom:l,args:u,argsProvider:p}=s;if(o&&a){this.hasI18nContext(o)||this.addI18nContext(o,void 0,l);let f=u??(p?p(this):[]);return this.getI18nService(l).resolveMessage(o,a,...f)}return c}async awaitI18n(s){let{context:o,custom:a}=s;return o&&await this.getI18nService(a).prepareContext(o),this.i18n(s)}customI18n(s,o){if(zs.isI18nKey(s)){let[a,c]=s.split(".");return this.i18n({custom:!0,context:a,key:c,...o})||s}return s}firstUpdated(s){super.firstUpdated(s),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(s){super.update(s),this.updateI18nAttributes((o,a,c)=>s.has(a)||typeof o.argsProvider=="function"),this.updateI18nProperties(o=>typeof o.argsProvider=="function")}onI18nUpdate(s){this.updateI18nAttributes((o,a,c)=>{var l;return((l=c?.context)===null||l===void 0?void 0:l.toLowerCase())===s}),this.updateI18nProperties(o=>o.context.toLowerCase()===s),this.requestUpdate()}updateI18nAttributes(s){var o,a;let c=this,l=(u,p,f)=>f?.context&&f.key&&s(u,p,f)?{...f,message:this.i18n({context:f.context,key:f.key,custom:f.custom,...u})}:f;(o=this[bo])===null||o===void 0||o.forEach((u,p)=>c[p]=l(u,p,c[p])),(a=this[Co])===null||a===void 0||a.forEach((u,p)=>{var f;return c[p]=(f=c[p])===null||f===void 0?void 0:f.map(v=>l(u,p,v))})}updateI18nProperties(s){var o;(o=this[Ys])===null||o===void 0||o.forEach((a,c)=>{s(a,c)&&(this[c]=this.i18n(a))})}addI18nMessages(s,o,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(s,o,a)}addI18nContext(s,o,a){let c=(typeof s=="string"?s:s.name).toLowerCase();a=typeof s=="string"?a:s.custom,this[Ht].set(c,{isCustomContext:a}),this[$e].has(c)||this[$e].set(c,this.getI18nService(a).subscribe(c,()=>this.onI18nUpdate(c))),this.getI18nService(a).prepareContext(c,o)}hasI18nContext(s){return this[Ht].has(s.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Ht].forEach((s,o)=>this.addI18nContext(o,void 0,s.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[$e].forEach(s=>s()),this[$e].clear()}}return t=Ht,r=$e,_o([(0,Ws.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),qs=class extends Xs(Te.FtLitElement){},jt=class extends Xs(Te.FtLitElementRedux){};var Js=h(Y());var Qs=Js.css`
|
|
85
|
+
`;var Vt=h(Y()),we=h(F()),Ft=h(A());var Re=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},$=class extends jt{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:Vt.nothing:Vt.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:""})}}
|
|
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:""})}};$.elementDefinitions={};$.styles=Qs;Re([(0,Ft.redux)()],$.prototype,"editorMode",void 0);Re([(0,we.property)()],$.prototype,"context",void 0);Re([(0,we.property)()],$.prototype,"key",void 0);Re([(0,Ft.jsonProperty)([])],$.prototype,"args",void 0);Re([(0,we.property)()],$.prototype,"defaultMessage",void 0);Re([(0,we.state)()],$.prototype,"editorMessage",void 0);var ei=h(A());var Zs={"ft-i18n":$};(0,ei.customElements)(Zs);var Rr=Bt.build("designedReaderTopicContent");var M=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},x=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&&!this.isFiltered&&((t=this.translationSourceLanguage)===null||t===void 0?void 0:t.code)==((r=this.translationDestinationLanguage)===null||r===void 0?void 0:r.code)?ae.html`
|
|
90
90
|
<section class="topic-loading"></section>
|
|
91
|
-
`:
|
|
91
|
+
`:ae.html`
|
|
92
92
|
<style>
|
|
93
93
|
@import "${(n=this.map)===null||n===void 0?void 0:n.contentStyles.topicStylesheetUrl}";
|
|
94
94
|
</style>
|
|
95
95
|
<section class="topic" lang="${this.getTopicLanguage()}">
|
|
96
96
|
${this.renderTopicContent()}
|
|
97
97
|
</section>
|
|
98
|
-
`}update(t){super.update(t),["map","tocNode","translationDestinationLanguage","translationProfileId","filteredTocNodes"].some(r=>t.has(r))&&this.updateContent()}updateContent(){var t;this.error=void 0,this.content=void 0,this.tocNode&&!this.isFiltered&&((t=this.stateManager)===null||t===void 0||t.fetchTopicContent(this.tocNode).then(r=>this.contentPreprocessor(r||'<div class="empty-topic"></div>')).then(r=>this.content=r).catch(r=>this.error=r))}get isFiltered(){var t;return this.tocNode&&((t=this.filteredTocNodes)===null||t===void 0?void 0:t[this.tocNode.tocId])}contentAvailableCallback(t){var r,n,i,s,a,
|
|
98
|
+
`}update(t){super.update(t),["map","tocNode","translationDestinationLanguage","translationProfileId","filteredTocNodes"].some(r=>t.has(r))&&this.updateContent()}updateContent(){var t;this.error=void 0,this.content=void 0,this.tocNode&&!this.isFiltered&&((t=this.stateManager)===null||t===void 0||t.fetchTopicContent(this.tocNode).then(r=>this.contentPreprocessor(r||'<div class="empty-topic"></div>')).then(r=>this.content=r).catch(r=>this.error=r))}get isFiltered(){var t;return this.tocNode&&((t=this.filteredTocNodes)===null||t===void 0?void 0:t[this.tocNode.tocId])}contentAvailableCallback(t){var r,n,i,s,o,a,c;if(super.contentAvailableCallback(t),!this.disableContextInteractions&&(!((r=this.scrollTarget)===null||r===void 0)&&r.section)&&(!((n=this.tocNode)===null||n===void 0)&&n.tocId)&&((i=this.tocNode)===null||i===void 0?void 0:i.tocId)===this.scrollTarget.tocId&&this.content){let l=(c=(s=this.shadowRoot)===null||s===void 0?void 0:s.querySelector(`[id="${this.scrollTarget.section}"], [name="${this.scrollTarget.section}"]`))!==null&&c!==void 0?c:this;l.tabIndex=-1,l.focus(),l.dispatchEvent(new Event("scroll-into-view",{bubbles:!0,composed:!0})),(o=this.stateManager)===null||o===void 0||o.scrollDone()}(t.has("searchInDocumentQuery")||t.has("content"))&&this.content&&(0,O.waitFor)(()=>this.topicContainer).then(l=>{(0,O.highlightHtml)(l,this.searchInDocumentQuery,{attributes:{part:"kwicmatch"}})}),(t.has("linkPreviewDialogId")||t.has("content"))&&this.content&&(0,O.waitFor)(()=>this.topicContainer).then(()=>{this.handleLinkPreviews()}),t.has("content")&&this.content&&(0,O.waitFor)(()=>this.topicContainer).then(l=>{this.moveSvgInShadowRoot(),this.processExpandingBlocks(),this.processOpenApiSelect(),this.onContentAvailable(l,this.shadowRoot)}),(t.has("content")&&this.content||t.has("error")&&this.error)&&performance.mark("fluid_topics__reader_topic_displayed__"+((a=this.tocNode)===null||a===void 0?void 0:a.tocId))}processExpandingBlocks(){for(let t of this.shadowRoot.querySelectorAll(".ft-expanding-block-link"))t.onclick=r=>{var n,i,s,o;if(r.stopPropagation(),r.preventDefault(),t.classList.contains("ft-expanding-exclusive")&&!t.classList.contains("ft-expanding-block-expanded"))for(let c of Array.from((o=(n=this.topicContainer)===null||n===void 0?void 0:n.querySelectorAll(".ft-expanding-block-expanded"))!==null&&o!==void 0?o:[]))c.classList.remove("ft-expanding-block-expanded");t.classList.toggle("ft-expanding-block-expanded");let a=t.getAttribute("data-expanding-block-target-id");(s=(i=this.topicContainer)===null||i===void 0?void 0:i.querySelector("[id='"+a+"']"))===null||s===void 0||s.classList.toggle("ft-expanding-block-expanded")}}processOpenApiSelect(){for(let t of this.shadowRoot.querySelectorAll(".ft-openapi-select"))t.onchange=r=>{var n,i,s;let o=r.target,a=(n=o?.parentElement)===null||n===void 0?void 0:n.parentElement,c=a?.querySelector('.select-example[content-type="'+o.value+'"]');(s=(i=c?.parentElement)===null||i===void 0?void 0:i.querySelector(":scope > .selected-example"))===null||s===void 0||s.classList.toggle("selected-example"),c?.classList.toggle("selected-example")}}moveSvgInShadowRoot(){this.shadowRoot.querySelectorAll(".ft-svg-container").forEach(t=>{if(!t.shadowRoot){let r=t.innerHTML;t.innerHTML="";let n=t.attachShadow({mode:"open"}),i=document.createRange().createContextualFragment(r),s=document.importNode(i,!0);n.append(s)}})}onStoreAvailable(){super.onStoreAvailable(),this.updateContent()}renderTopicContent(){var t,r,n,i,s,o;if(this.error)return ae.html`
|
|
99
99
|
<div class="topic-on-error">
|
|
100
100
|
<ft-icon>WARNING</ft-icon>
|
|
101
101
|
<div>
|
|
102
|
-
${this.is404Error()?
|
|
102
|
+
${this.is404Error()?Rr.messages.topicMissingAdvice():Rr.messages.somethingWentWrong()}
|
|
103
103
|
</div>
|
|
104
104
|
</div>
|
|
105
|
-
`;let
|
|
106
|
-
<ft-skeleton></ft-skeleton>`:
|
|
107
|
-
<div class="depth-${c} content-locale-${this.getTopicLanguage()} ${
|
|
108
|
-
${this.content!=null?(0,
|
|
105
|
+
`;let a=(o=(t=this.map)===null||t===void 0?void 0:t.contentStyles.customCssClasses.join(" "))!==null&&o!==void 0?o:"",c=(((r=this.tocNode)===null||r===void 0?void 0:r.depth)||1)+this.headingLevelsShift;return this.headingStartLevel!=null&&(!((n=this.currentPage)===null||n===void 0)&&n.rootTocId)&&(c=(((i=this.tocNode)===null||i===void 0?void 0:i.depth)||1)-(((s=this.currentPage)===null||s===void 0?void 0:s.rootDepth)||1)+this.headingStartLevel),this.translationLoading||!this.content&&!this.isFiltered?ae.html`
|
|
106
|
+
<ft-skeleton></ft-skeleton>`:ae.html`
|
|
107
|
+
<div class="depth-${c} content-locale-${this.getTopicLanguage()} ${a}">
|
|
108
|
+
${this.content!=null?(0,ti.unsafeHTML)(`${this.content}`):ae.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)}))}};
|
|
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)}))}};x.styles=[Ir,O.highlightHtmlStyles];M([(0,O.redux)({store:"reader"})],x.prototype,"map",void 0);M([(0,O.redux)({store:"reader",selector:e=>e.translation.profileId})],x.prototype,"translationProfileId",void 0);M([(0,O.redux)({store:"reader",selector:e=>e.translation.destinationLanguage})],x.prototype,"translationDestinationLanguage",void 0);M([(0,O.redux)({store:"reader",selector:e=>e.translation.sourceLanguage})],x.prototype,"translationSourceLanguage",void 0);M([(0,O.redux)({store:"reader",selector:e=>e.translation.isLoading})],x.prototype,"translationLoading",void 0);M([(0,O.redux)({store:"reader",selector:e=>e.translation.isError})],x.prototype,"translationError",void 0);M([(0,O.redux)({store:"reader"})],x.prototype,"linkPreviewDialogId",void 0);M([(0,O.redux)({store:"reader"})],x.prototype,"scrollTarget",void 0);M([(0,O.redux)({store:"reader"})],x.prototype,"currentPage",void 0);M([(0,O.redux)({store:"reader"})],x.prototype,"filteredTocNodes",void 0);M([(0,Z.state)()],x.prototype,"content",void 0);M([(0,Z.state)()],x.prototype,"error",void 0);M([(0,O.redux)({store:"reader",selector:(e,t)=>t.disableContextInteractions?"":e.searchInDocumentQuery})],x.prototype,"searchInDocumentQuery",void 0);M([(0,Z.property)({attribute:!1})],x.prototype,"contentPreprocessor",void 0);M([(0,Z.property)({attribute:!1})],x.prototype,"onContentAvailable",void 0);M([(0,Z.query)("section.topic")],x.prototype,"topicContainer",void 0);M([(0,Z.queryAll)("a.ft-internal-xlink")],x.prototype,"crossMapLinks",void 0);var ri={"ft-reader-topic-content":x};(0,ni.customElements)(ri);})();
|
|
111
111
|
/*! Bundled license information:
|
|
112
112
|
|
|
113
113
|
.store/@lit-context-npm-1.1.6-2c155157c6/package/lib/context-request-event.js:
|