@fluid-topics/ft-tree-list 1.3.49 → 1.3.50
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.
- package/build/ft-tree-list.light.js +2 -2
- package/build/ft-tree-list.min.js +56 -56
- package/package.json +9 -9
|
@@ -133,7 +133,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
133
133
|
</${$t(this.element)}>
|
|
134
134
|
`:Ut`
|
|
135
135
|
<slot part="text" class="ftds-typography ftds-typography--${this.variant}"></slot>
|
|
136
|
-
`}};_e.styles=[...ui];pi([(0,vn.property)()],_e.prototype,"element",void 0);pi([(0,vn.property)()],_e.prototype,"variant",void 0);(0,Sn.customElement)("ft-typography")(Ie);(0,Sn.customElement)("ftds-typography")(_e);var vi=S(k());var Sr=S(W()),st=S(ce()),bi=S(k()),xi=S(yi());var Ge;(function(e){e.ADD_TO_PBK="",e.ALERT="",e.ADD_ALERT="",e.BACK_TO_SEARCH="",e.ADD_BOOKMARK="",e.BOOKMARK="",e.BOOKS="",e.MENU="",e.DOWNLOAD="",e.EDIT="",e.FEEDBACK="",e.HOME="",e.MODIFY_PBK="",e.SCHEDULED="",e.SEARCH="",e.EXPORT="",e.TOC="",e.WRITE_UGC="",e.TRASH="",e.USER="",e.EXTLINK="",e.CALENDAR="",e.OFFLINE="",e.BOOK="",e.DOWNLOAD_PLAIN="",e.CHECK="",e.STAR_PLAIN="",e.TOPICS="",e.DISC="",e.CIRCLE="",e.SHARED="",e.SORT_UNSORTED="",e.SORT_UP="",e.SORT_DOWN="",e.WORKING="",e.CLOSE="",e.ZOOM_OUT="",e.ZOOM_IN="",e.ZOOM_REALSIZE="",e.ZOOM_FULLSCREEN="",e.ADMIN_RESTRICTED="",e.ADMIN="",e.ADMIN_KHUB="",e.ADMIN_THEME="",e.ADMIN_USERS="",e.WARNING="",e.CONTEXT="",e.SEARCH_HOME="",e.STEPS="",e.ICON_EXPAND="",e.ICON_COLLAPSE="",e.INFO="",e.MINUS_PLAIN="",e.PLUS_PLAIN="",e.FACET_HAS_DESCENDANT="",e.TRIANGLE_BOTTOM="",e.TRIANGLE_LEFT="",e.TRIANGLE_RIGHT="",e.TRIANGLE_TOP="",e.THIN_ARROW="",e.SIGN_IN="",e.LOGOUT="",e.TRANSLATE="",e.CLOSE_PLAIN="",e.CHECK_PLAIN="",e.ARTICLE="",e.COLUMNS="",e.ANALYTICS="",e.COLLECTIONS="",e.ARROW_DOWN="",e.ARROW_LEFT="",e.ARROW_RIGHT="",e.ARROW_UP="",e.SEARCH_IN_PUBLICATION="",e.COPY_TO_CLIPBOARD="",e.SHARED_PBK="",e.ATTACHMENTS="",e.STRIPE_ARROW_LEFT="",e.STRIPE_ARROW_RIGHT="",e.FILTERS="",e.DOT="",e.MINUS="",e.PLUS="",e.MAILS_AND_NOTIFICATIONS="",e.SAVE="",e.LOCKER="",e.ADMIN_INTEGRATION="",e.SYNC="",e.TAG="",e.BOOK_PLAIN="",e.UPLOAD="",e.ONLINE="",e.TAG_PLAIN="",e.ACCOUNT_SETTINGS="",e.PRINT="",e.DEFAULT_ROLES="",e.SHORTCUT_MENU="",e.RELATIVES_PLAIN="",e.RELATIVES="",e.PAUSE="",e.PLAY="",e.ADMIN_PORTAL="",e.STAR="",e.THUMBS_DOWN="",e.THUMBS_DOWN_PLAIN="",e.THUMBS_UP="",e.THUMBS_UP_PLAIN="",e.FEEDBACK_PLAIN="",e.RATE_PLAIN="",e.RATE="",e.OFFLINE_SETTINGS="",e.MY_COLLECTIONS="",e.THIN_ARROW_LEFT="",e.THIN_ARROW_RIGHT="",e.RESET="",e.MY_LIBRARY="",e.UNSTRUCTURED_DOC="",e.CONTEXTUAL="",e.THIN_ARROW_UP="",e.ARROW_RIGHT_TO_LINE="",e.DESKTOP="",e.TABLET_LANDSCAPE="",e.TABLET_PORTRAIT="",e.MOBILE_LANDSCAPE="",e.MOBILE_PORTRAIT="",e.DIAGRAM_SUNBURST="",e.DIAGRAM_SANKEY="",e.COMMENT_QUESTION="",e.COMMENT_QUESTION_PLAIN="",e.MESSAGE_BOT="",e.CHART_SIMPLE="",e.BARS_PROGRESS="",e.BOOK_OPEN_GEAR="",e.BOOK_OPEN_GEAR_SLASH="",e.LINE_CHART="",e.STACKED_CHART="",e.CHART_BAR_STACKED="",e.CHART_BAR_GROUPED="",e.EYE_SLASH="",e.X_MARK="",e.EXPAND_WIDE="",e.PIP="",e.PIP_WIDE="",e.LIFE_RING="",e.GLOBE="",e.PIGGY_BANK="",e.EXTLINK_LIGHT="",e.CLONE="",e.CLONE_LINK_SIMPLE="",e.CHART_BAR_NORMALIZED="",e.CONSUMER="",e.OCTAGON_XMARK="",e.HOURGLASS_HALF="",e.CLOCK="",e.CLOCK_THREE="",e.CALENDAR_DAY="",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="",e.WAND_MAGIC_SPARKLES="",e.PAPER_PLANE="",e.CIRCLE_STOP="",e.ARROW_ROTATE_RIGHT="",e.ARROWS_ROTATE="",e.ALIGN_RIGHT="",e.FORMAT_CLEAR="",e.ALIGN_CENTER="",e.ALIGN_LEFT="",e.PALETTE="",e.BOLD="",e.ITALIC="",e.UNDERLINE="",e.STRIKETHROUGH="",e.LINK_SIMPLE_SLASH="",e.LINK_SIMPLE="",e.ROUTE="",e.CIRCLE_USER_SLASH="",e.CIRCLE_USER_CHECK="",e.LIST_MAGNIFYING_GLASS="",e.MEDAL="",e.THUMBS_UP_THUMBS_DOWN_SOLID="",e.ARROW_TURN_DOWN_RIGHT="",e.FLASK="",e.LOCK_KEYHOLE_OPEN_SOLID="",e.HOURGLASS_END="",e.CIRCLE_QUESTION="",e.GRIP_LINES_SOLID="",e.TRANSLATE_SPARKLE_SOLID="",e.CODE="",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",e.PAPER_PLANE_SLASH="",e.COMPRESS="",e.EXPAND="",e.ARROW_ROTATE_LEFT="",e.EYE="",e.SHARE="󨃱",e.MOBILE_SMALL="",e.SPARKLES="",e.HAND_SOLID="",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.CLOUD_ARROW_DOWN="",e.SHARE_NODES="",e.BELL="",e.BELL_SLASH="",e.FILE="",e.HAND="",e.SQUARE_INFO_SOLID=""})(Ge||(Ge={}));var A;(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=""})(A||(A={}));var _m=new Map([...["abw"].map(e=>[e,A.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,A.AUDIO]),...["avi"].map(e=>[e,A.AVI]),...["chm","xhs"].map(e=>[e,A.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,A.CODE]),...["csv"].map(e=>[e,A.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,A.DITA]),...["epub"].map(e=>[e,A.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,A.EXCEL]),...["flac"].map(e=>[e,A.FLAC]),...["gif"].map(e=>[e,A.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,A.GZIP]),...["html","htm","xhtml"].map(e=>[e,A.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,A.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,A.JPEG]),...["json"].map(e=>[e,A.JSON]),...["m4a","m4p"].map(e=>[e,A.M4A]),...["mov","qt"].map(e=>[e,A.MOV]),...["mp3"].map(e=>[e,A.MP3]),...["mp4","m4v"].map(e=>[e,A.MP4]),...["ogg","oga"].map(e=>[e,A.OGG]),...["pdf","ps"].map(e=>[e,A.PDF]),...["png"].map(e=>[e,A.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,A.POWERPOINT]),...["rar"].map(e=>[e,A.RAR]),...["stp"].map(e=>[e,A.STP]),...["txt","rtf","md","mdown"].map(e=>[e,A.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,A.VIDEO]),...["wav"].map(e=>[e,A.WAV]),...["wma"].map(e=>[e,A.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,A.WORD]),...["xml","xsl","rdf"].map(e=>[e,A.XML]),...["yaml","yml","x-yaml"].map(e=>[e,A.YAML]),...["zip"].map(e=>[e,A.ZIP])]);var Pm={[A.ABW]:"#91ABC6",[A.AUDIO]:"#1795E3",[A.AVI]:"#E63324",[A.CHM]:"#71C3EB",[A.CODE]:"#71C3EB",[A.CSV]:"#1F7345",[A.DITA]:"#71C3EB",[A.EPUB]:"#85B926",[A.EXCEL]:"#1F7345",[A.FLAC]:"#1795E3",[A.GIF]:"#59B031",[A.GZIP]:"#F8AB36",[A.HTML]:"#71C3EB",[A.IMAGE]:"#59B031",[A.JPEG]:"#59B031",[A.JSON]:"#71C3EB",[A.M4A]:"#1795E3",[A.MOV]:"#E63324",[A.MP3]:"#1795E3",[A.MP4]:"#E63324",[A.OGG]:"#1795E3",[A.PDF]:"#E44948",[A.PNG]:"#59B031",[A.POWERPOINT]:"#B54A2B",[A.RAR]:"#F8AB36",[A.STP]:"#3764B1",[A.TEXT]:"#3162AB",[A.UNKNOWN]:"#999999",[A.VIDEO]:"#E63324",[A.WAV]:"#1795E3",[A.WMA]:"#1795E3",[A.WORD]:"#3162AB",[A.XML]:"#71C3EB",[A.YAML]:"#71C3EB",[A.ZIP]:"#F8AB36"};var mi=S(W()),Pe=S(k()),oe={size:Pe.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Pe.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",Pe.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Pe.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",Pe.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Pe.FtCssVariableFactory.extend("--ft-icon-material-font-family","",Pe.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Pe.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},gi=[mi.css`
|
|
136
|
+
`}};_e.styles=[...ui];pi([(0,vn.property)()],_e.prototype,"element",void 0);pi([(0,vn.property)()],_e.prototype,"variant",void 0);(0,Sn.customElement)("ft-typography")(Ie);(0,Sn.customElement)("ftds-typography")(_e);var vi=S(k());var Sr=S(W()),st=S(ce()),bi=S(k()),xi=S(yi());var Ge;(function(e){e.ADD_TO_PBK="",e.ALERT="",e.ADD_ALERT="",e.BACK_TO_SEARCH="",e.ADD_BOOKMARK="",e.BOOKMARK="",e.BOOKS="",e.MENU="",e.DOWNLOAD="",e.EDIT="",e.FEEDBACK="",e.HOME="",e.MODIFY_PBK="",e.SCHEDULED="",e.SEARCH="",e.EXPORT="",e.TOC="",e.WRITE_UGC="",e.TRASH="",e.USER="",e.EXTLINK="",e.CALENDAR="",e.OFFLINE="",e.BOOK="",e.DOWNLOAD_PLAIN="",e.CHECK="",e.STAR_PLAIN="",e.TOPICS="",e.DISC="",e.CIRCLE="",e.SHARED="",e.SORT_UNSORTED="",e.SORT_UP="",e.SORT_DOWN="",e.WORKING="",e.CLOSE="",e.ZOOM_OUT="",e.ZOOM_IN="",e.ZOOM_REALSIZE="",e.ZOOM_FULLSCREEN="",e.ADMIN_RESTRICTED="",e.ADMIN="",e.ADMIN_KHUB="",e.ADMIN_THEME="",e.ADMIN_USERS="",e.WARNING="",e.CONTEXT="",e.SEARCH_HOME="",e.STEPS="",e.ICON_EXPAND="",e.ICON_COLLAPSE="",e.INFO="",e.MINUS_PLAIN="",e.PLUS_PLAIN="",e.FACET_HAS_DESCENDANT="",e.TRIANGLE_BOTTOM="",e.TRIANGLE_LEFT="",e.TRIANGLE_RIGHT="",e.TRIANGLE_TOP="",e.THIN_ARROW="",e.SIGN_IN="",e.LOGOUT="",e.TRANSLATE="",e.CLOSE_PLAIN="",e.CHECK_PLAIN="",e.ARTICLE="",e.COLUMNS="",e.ANALYTICS="",e.COLLECTIONS="",e.ARROW_DOWN="",e.ARROW_LEFT="",e.ARROW_RIGHT="",e.ARROW_UP="",e.SEARCH_IN_PUBLICATION="",e.COPY_TO_CLIPBOARD="",e.SHARED_PBK="",e.ATTACHMENTS="",e.STRIPE_ARROW_LEFT="",e.STRIPE_ARROW_RIGHT="",e.FILTERS="",e.DOT="",e.MINUS="",e.PLUS="",e.MAILS_AND_NOTIFICATIONS="",e.SAVE="",e.LOCKER="",e.ADMIN_INTEGRATION="",e.SYNC="",e.TAG="",e.BOOK_PLAIN="",e.UPLOAD="",e.ONLINE="",e.TAG_PLAIN="",e.ACCOUNT_SETTINGS="",e.PRINT="",e.DEFAULT_ROLES="",e.SHORTCUT_MENU="",e.RELATIVES_PLAIN="",e.RELATIVES="",e.PAUSE="",e.PLAY="",e.ADMIN_PORTAL="",e.STAR="",e.THUMBS_DOWN="",e.THUMBS_DOWN_PLAIN="",e.THUMBS_UP="",e.THUMBS_UP_PLAIN="",e.FEEDBACK_PLAIN="",e.RATE_PLAIN="",e.RATE="",e.OFFLINE_SETTINGS="",e.MY_COLLECTIONS="",e.THIN_ARROW_LEFT="",e.THIN_ARROW_RIGHT="",e.RESET="",e.MY_LIBRARY="",e.UNSTRUCTURED_DOC="",e.CONTEXTUAL="",e.THIN_ARROW_UP="",e.ARROW_RIGHT_TO_LINE="",e.DESKTOP="",e.TABLET_LANDSCAPE="",e.TABLET_PORTRAIT="",e.MOBILE_LANDSCAPE="",e.MOBILE_PORTRAIT="",e.DIAGRAM_SUNBURST="",e.DIAGRAM_SANKEY="",e.COMMENT_QUESTION="",e.COMMENT_QUESTION_PLAIN="",e.MESSAGE_BOT="",e.CHART_SIMPLE="",e.BARS_PROGRESS="",e.BOOK_OPEN_GEAR="",e.BOOK_OPEN_GEAR_SLASH="",e.LINE_CHART="",e.STACKED_CHART="",e.CHART_BAR_STACKED="",e.CHART_BAR_GROUPED="",e.EYE_SLASH="",e.X_MARK="",e.EXPAND_WIDE="",e.PIP="",e.PIP_WIDE="",e.LIFE_RING="",e.GLOBE="",e.PIGGY_BANK="",e.EXTLINK_LIGHT="",e.CLONE="",e.CLONE_LINK_SIMPLE="",e.CHART_BAR_NORMALIZED="",e.CONSUMER="",e.OCTAGON_XMARK="",e.HOURGLASS_HALF="",e.CLOCK="",e.CLOCK_THREE="",e.CALENDAR_DAY="",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="",e.WAND_MAGIC_SPARKLES="",e.PAPER_PLANE="",e.CIRCLE_STOP="",e.ARROW_ROTATE_RIGHT="",e.ARROWS_ROTATE="",e.ALIGN_RIGHT="",e.FORMAT_CLEAR="",e.ALIGN_CENTER="",e.ALIGN_LEFT="",e.PALETTE="",e.BOLD="",e.ITALIC="",e.UNDERLINE="",e.STRIKETHROUGH="",e.LINK_SIMPLE_SLASH="",e.LINK_SIMPLE="",e.ROUTE="",e.CIRCLE_USER_SLASH="",e.CIRCLE_USER_CHECK="",e.LIST_MAGNIFYING_GLASS="",e.MEDAL="",e.THUMBS_UP_THUMBS_DOWN_SOLID="",e.ARROW_TURN_DOWN_RIGHT="",e.FLASK="",e.LOCK_KEYHOLE_OPEN_SOLID="",e.HOURGLASS_END="",e.CIRCLE_QUESTION="",e.GRIP_LINES_SOLID="",e.TRANSLATE_SPARKLE_SOLID="",e.CODE="",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",e.PAPER_PLANE_SLASH="",e.COMPRESS="",e.EXPAND="",e.ARROW_ROTATE_LEFT="",e.EYE="",e.SHARE="󨃱",e.MOBILE_SMALL="",e.SPARKLES="",e.HAND_SOLID="",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.CLOUD_ARROW_DOWN="",e.SHARE_NODES="",e.BELL="",e.BELL_SLASH="",e.FILE="",e.HAND="",e.SQUARE_INFO_SOLID="",e.FILE_CODE="",e.BOX_CODE=""})(Ge||(Ge={}));var A;(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=""})(A||(A={}));var _m=new Map([...["abw"].map(e=>[e,A.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,A.AUDIO]),...["avi"].map(e=>[e,A.AVI]),...["chm","xhs"].map(e=>[e,A.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,A.CODE]),...["csv"].map(e=>[e,A.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,A.DITA]),...["epub"].map(e=>[e,A.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,A.EXCEL]),...["flac"].map(e=>[e,A.FLAC]),...["gif"].map(e=>[e,A.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,A.GZIP]),...["html","htm","xhtml"].map(e=>[e,A.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,A.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,A.JPEG]),...["json"].map(e=>[e,A.JSON]),...["m4a","m4p"].map(e=>[e,A.M4A]),...["mov","qt"].map(e=>[e,A.MOV]),...["mp3"].map(e=>[e,A.MP3]),...["mp4","m4v"].map(e=>[e,A.MP4]),...["ogg","oga"].map(e=>[e,A.OGG]),...["pdf","ps"].map(e=>[e,A.PDF]),...["png"].map(e=>[e,A.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,A.POWERPOINT]),...["rar"].map(e=>[e,A.RAR]),...["stp"].map(e=>[e,A.STP]),...["txt","rtf","md","mdown"].map(e=>[e,A.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,A.VIDEO]),...["wav"].map(e=>[e,A.WAV]),...["wma"].map(e=>[e,A.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,A.WORD]),...["xml","xsl","rdf"].map(e=>[e,A.XML]),...["yaml","yml","x-yaml"].map(e=>[e,A.YAML]),...["zip"].map(e=>[e,A.ZIP])]);var Pm={[A.ABW]:"#91ABC6",[A.AUDIO]:"#1795E3",[A.AVI]:"#E63324",[A.CHM]:"#71C3EB",[A.CODE]:"#71C3EB",[A.CSV]:"#1F7345",[A.DITA]:"#71C3EB",[A.EPUB]:"#85B926",[A.EXCEL]:"#1F7345",[A.FLAC]:"#1795E3",[A.GIF]:"#59B031",[A.GZIP]:"#F8AB36",[A.HTML]:"#71C3EB",[A.IMAGE]:"#59B031",[A.JPEG]:"#59B031",[A.JSON]:"#71C3EB",[A.M4A]:"#1795E3",[A.MOV]:"#E63324",[A.MP3]:"#1795E3",[A.MP4]:"#E63324",[A.OGG]:"#1795E3",[A.PDF]:"#E44948",[A.PNG]:"#59B031",[A.POWERPOINT]:"#B54A2B",[A.RAR]:"#F8AB36",[A.STP]:"#3764B1",[A.TEXT]:"#3162AB",[A.UNKNOWN]:"#999999",[A.VIDEO]:"#E63324",[A.WAV]:"#1795E3",[A.WMA]:"#1795E3",[A.WORD]:"#3162AB",[A.XML]:"#71C3EB",[A.YAML]:"#71C3EB",[A.ZIP]:"#F8AB36"};var mi=S(W()),Pe=S(k()),oe={size:Pe.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Pe.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",Pe.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Pe.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",Pe.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Pe.FtCssVariableFactory.extend("--ft-icon-material-font-family","",Pe.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Pe.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},gi=[mi.css`
|
|
137
137
|
:host, i.ft-icon {
|
|
138
138
|
display: inline-flex;
|
|
139
139
|
align-items: center;
|
|
@@ -545,7 +545,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
545
545
|
word-break: break-word;
|
|
546
546
|
}
|
|
547
547
|
`;var Fi=["top","right","bottom","left"],Ui=["start","end"],En=Fi.reduce((e,t)=>e.concat(t,t+"-"+Ui[0],t+"-"+Ui[1]),[]),Hi=Math.min,Wi=Math.max;var Dc={left:"right",right:"left",bottom:"top",top:"bottom"},Bc={start:"end",end:"start"};function An(e,t,o){return Wi(e,Hi(t,o))}function Zr(e,t){return typeof e=="function"?e(t):e}function Qt(e){return e.split("-")[0]}function lt(e){return e.split("-")[1]}function wn(e){return e==="x"?"y":"x"}function Rn(e){return e==="y"?"height":"width"}function qr(e){return["top","bottom"].includes(Qt(e))?"y":"x"}function Nn(e){return wn(qr(e))}function zi(e,t,o){o===void 0&&(o=!1);let n=lt(e),a=Nn(e),i=Rn(a),l=a==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=On(l)),[l,On(l)]}function Gi(e){return e.replace(/start|end/g,t=>Bc[t])}function On(e){return e.replace(/left|right|bottom|top/g,t=>Dc[t])}function Mc(e){return{top:0,right:0,bottom:0,left:0,...e}}function ji(e){return typeof e!="number"?Mc(e):{top:e,right:e,bottom:e,left:e}}function At(e){let{x:t,y:o,width:n,height:a}=e;return{width:n,height:a,top:o,left:t,right:t+n,bottom:o+a,x:t,y:o}}function Ki(e,t,o){let{reference:n,floating:a}=e,i=qr(t),l=Nn(t),c=Rn(l),u=Qt(t),p=i==="y",y=n.x+n.width/2-a.width/2,h=n.y+n.height/2-a.height/2,g=n[c]/2-a[c]/2,v;switch(u){case"top":v={x:y,y:n.y-a.height};break;case"bottom":v={x:y,y:n.y+n.height};break;case"right":v={x:n.x+n.width,y:h};break;case"left":v={x:n.x-a.width,y:h};break;default:v={x:n.x,y:n.y}}switch(lt(t)){case"start":v[l]-=g*(o&&p?-1:1);break;case"end":v[l]+=g*(o&&p?-1:1);break}return v}var Vi=async(e,t,o)=>{let{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:l}=o,c=i.filter(Boolean),u=await(l.isRTL==null?void 0:l.isRTL(t)),p=await l.getElementRects({reference:e,floating:t,strategy:a}),{x:y,y:h}=Ki(p,n,u),g=n,v={},x=0;for(let O=0;O<c.length;O++){let{name:T,fn:N}=c[O],{x:L,y:D,data:M,reset:$}=await N({x:y,y:h,initialPlacement:n,placement:g,strategy:a,middlewareData:v,rects:p,platform:l,elements:{reference:e,floating:t}});y=L??y,h=D??h,v={...v,[T]:{...v[T],...M}},$&&x<=50&&(x++,typeof $=="object"&&($.placement&&(g=$.placement),$.rects&&(p=$.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:a}):$.rects),{x:y,y:h}=Ki(p,g,u)),O=-1)}return{x:y,y:h,placement:g,strategy:a,middlewareData:v}};async function Tn(e,t){var o;t===void 0&&(t={});let{x:n,y:a,platform:i,rects:l,elements:c,strategy:u}=e,{boundary:p="clippingAncestors",rootBoundary:y="viewport",elementContext:h="floating",altBoundary:g=!1,padding:v=0}=Zr(t,e),x=ji(v),T=c[g?h==="floating"?"reference":"floating":h],N=At(await i.getClippingRect({element:(o=await(i.isElement==null?void 0:i.isElement(T)))==null||o?T:T.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:p,rootBoundary:y,strategy:u})),L=h==="floating"?{x:n,y:a,width:l.floating.width,height:l.floating.height}:l.reference,D=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),M=await(i.isElement==null?void 0:i.isElement(D))?await(i.getScale==null?void 0:i.getScale(D))||{x:1,y:1}:{x:1,y:1},$=At(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:L,offsetParent:D,strategy:u}):L);return{top:(N.top-$.top+x.top)/M.y,bottom:($.bottom-N.bottom+x.bottom)/M.y,left:(N.left-$.left+x.left)/M.x,right:($.right-N.right+x.right)/M.x}}function $c(e,t,o){return(e?[...o.filter(a=>lt(a)===e),...o.filter(a=>lt(a)!==e)]:o.filter(a=>Qt(a)===a)).filter(a=>e?lt(a)===e||(t?Gi(a)!==a:!1):!0)}var Ln=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var o,n,a;let{rects:i,middlewareData:l,placement:c,platform:u,elements:p}=t,{crossAxis:y=!1,alignment:h,allowedPlacements:g=En,autoAlignment:v=!0,...x}=Zr(e,t),O=h!==void 0||g===En?$c(h||null,v,g):g,T=await Tn(t,x),N=((o=l.autoPlacement)==null?void 0:o.index)||0,L=O[N];if(L==null)return{};let D=zi(L,i,await(u.isRTL==null?void 0:u.isRTL(p.floating)));if(c!==L)return{reset:{placement:O[0]}};let M=[T[Qt(L)],T[D[0]],T[D[1]]],$=[...((n=l.autoPlacement)==null?void 0:n.overflows)||[],{placement:L,overflows:M}],me=O[N+1];if(me)return{data:{index:N+1,overflows:$},reset:{placement:me}};let He=$.map(se=>{let m=lt(se.placement);return[se.placement,m&&y?se.overflows.slice(0,2).reduce((b,P)=>b+P,0):se.overflows[0],se.overflows]}).sort((se,m)=>se[1]-m[1]),We=((a=He.filter(se=>se[2].slice(0,lt(se[0])?2:3).every(m=>m<=0))[0])==null?void 0:a[0])||He[0][0];return We!==c?{data:{index:N+1,overflows:$},reset:{placement:We}}:{}}}};var In=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:o,y:n,placement:a}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:c={fn:T=>{let{x:N,y:L}=T;return{x:N,y:L}}},...u}=Zr(e,t),p={x:o,y:n},y=await Tn(t,u),h=qr(Qt(a)),g=wn(h),v=p[g],x=p[h];if(i){let T=g==="y"?"top":"left",N=g==="y"?"bottom":"right",L=v+y[T],D=v-y[N];v=An(L,v,D)}if(l){let T=h==="y"?"top":"left",N=h==="y"?"bottom":"right",L=x+y[T],D=x-y[N];x=An(L,x,D)}let O=c.fn({...t,[g]:v,[h]:x});return{...O,data:{x:O.x-o,y:O.y-n,enabled:{[g]:i,[h]:l}}}}}};var _n=Math.min,er=Math.max,Ar=Math.round;var et=e=>({x:e,y:e});function tt(e){return qi(e)?(e.nodeName||"").toLowerCase():"#document"}function be(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function rt(e){var t;return(t=(qi(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function qi(e){return e instanceof Node||e instanceof be(e).Node}function Ve(e){return e instanceof Element||e instanceof be(e).Element}function ke(e){return e instanceof HTMLElement||e instanceof be(e).HTMLElement}function Zi(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof be(e).ShadowRoot}function tr(e){let{overflow:t,overflowX:o,overflowY:n,display:a}=ve(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&!["inline","contents"].includes(a)}function Yi(e){return["table","td","th"].includes(tt(e))}function Xr(e){let t=Jr(),o=ve(e);return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!t&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!t&&(o.filter?o.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(o.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(o.contain||"").includes(n))}function Xi(e){let t=wt(e);for(;ke(t)&&!wr(t);){if(Xr(t))return t;t=wt(t)}return null}function Jr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function wr(e){return["html","body","#document"].includes(tt(e))}function ve(e){return be(e).getComputedStyle(e)}function Rr(e){return Ve(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function wt(e){if(tt(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Zi(e)&&e.host||rt(e);return Zi(t)?t.host:t}function Ji(e){let t=wt(e);return wr(t)?e.ownerDocument?e.ownerDocument.body:e.body:ke(t)&&tr(t)?t:Ji(t)}function Yr(e,t,o){var n;t===void 0&&(t=[]),o===void 0&&(o=!0);let a=Ji(e),i=a===((n=e.ownerDocument)==null?void 0:n.body),l=be(a);return i?t.concat(l,l.visualViewport||[],tr(a)?a:[],l.frameElement&&o?Yr(l.frameElement):[]):t.concat(a,Yr(a,[],o))}function ts(e){let t=ve(e),o=parseFloat(t.width)||0,n=parseFloat(t.height)||0,a=ke(e),i=a?e.offsetWidth:o,l=a?e.offsetHeight:n,c=Ar(o)!==i||Ar(n)!==l;return c&&(o=i,n=l),{width:o,height:n,$:c}}function rs(e){return Ve(e)?e:e.contextElement}function rr(e){let t=rs(e);if(!ke(t))return et(1);let o=t.getBoundingClientRect(),{width:n,height:a,$:i}=ts(t),l=(i?Ar(o.width):o.width)/n,c=(i?Ar(o.height):o.height)/a;return(!l||!Number.isFinite(l))&&(l=1),(!c||!Number.isFinite(c))&&(c=1),{x:l,y:c}}var Hc=et(0);function os(e){let t=be(e);return!Jr()||!t.visualViewport?Hc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Wc(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==be(e)?!1:t}function Nr(e,t,o,n){t===void 0&&(t=!1),o===void 0&&(o=!1);let a=e.getBoundingClientRect(),i=rs(e),l=et(1);t&&(n?Ve(n)&&(l=rr(n)):l=rr(e));let c=Wc(i,o,n)?os(i):et(0),u=(a.left+c.x)/l.x,p=(a.top+c.y)/l.y,y=a.width/l.x,h=a.height/l.y;if(i){let g=be(i),v=n&&Ve(n)?be(n):n,x=g.frameElement;for(;x&&n&&v!==g;){let O=rr(x),T=x.getBoundingClientRect(),N=ve(x),L=T.left+(x.clientLeft+parseFloat(N.paddingLeft))*O.x,D=T.top+(x.clientTop+parseFloat(N.paddingTop))*O.y;u*=O.x,p*=O.y,y*=O.x,h*=O.y,u+=L,p+=D,x=be(x).frameElement}}return At({width:y,height:h,x:u,y:p})}function zc(e){let{rect:t,offsetParent:o,strategy:n}=e,a=ke(o),i=rt(o);if(o===i)return t;let l={scrollLeft:0,scrollTop:0},c=et(1),u=et(0);if((a||!a&&n!=="fixed")&&((tt(o)!=="body"||tr(i))&&(l=Rr(o)),ke(o))){let p=Nr(o);c=rr(o),u.x=p.x+o.clientLeft,u.y=p.y+o.clientTop}return{width:t.width*c.x,height:t.height*c.y,x:t.x*c.x-l.scrollLeft*c.x+u.x,y:t.y*c.y-l.scrollTop*c.y+u.y}}function Gc(e){return Array.from(e.getClientRects())}function ns(e){return Nr(rt(e)).left+Rr(e).scrollLeft}function jc(e){let t=rt(e),o=Rr(e),n=e.ownerDocument.body,a=er(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=er(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),l=-o.scrollLeft+ns(e),c=-o.scrollTop;return ve(n).direction==="rtl"&&(l+=er(t.clientWidth,n.clientWidth)-a),{width:a,height:i,x:l,y:c}}function Kc(e,t){let o=be(e),n=rt(e),a=o.visualViewport,i=n.clientWidth,l=n.clientHeight,c=0,u=0;if(a){i=a.width,l=a.height;let p=Jr();(!p||p&&t==="fixed")&&(c=a.offsetLeft,u=a.offsetTop)}return{width:i,height:l,x:c,y:u}}function Vc(e,t){let o=Nr(e,!0,t==="fixed"),n=o.top+e.clientTop,a=o.left+e.clientLeft,i=ke(e)?rr(e):et(1),l=e.clientWidth*i.x,c=e.clientHeight*i.y,u=a*i.x,p=n*i.y;return{width:l,height:c,x:u,y:p}}function Qi(e,t,o){let n;if(t==="viewport")n=Kc(e,o);else if(t==="document")n=jc(rt(e));else if(Ve(t))n=Vc(t,o);else{let a=os(e);n={...t,x:t.x-a.x,y:t.y-a.y}}return At(n)}function as(e,t){let o=wt(e);return o===t||!Ve(o)||wr(o)?!1:ve(o).position==="fixed"||as(o,t)}function Zc(e,t){let o=t.get(e);if(o)return o;let n=Yr(e,[],!1).filter(c=>Ve(c)&&tt(c)!=="body"),a=null,i=ve(e).position==="fixed",l=i?wt(e):e;for(;Ve(l)&&!wr(l);){let c=ve(l),u=Xr(l);!u&&c.position==="fixed"&&(a=null),(i?!u&&!a:!u&&c.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||tr(l)&&!u&&as(e,l))?n=n.filter(y=>y!==l):a=c,l=wt(l)}return t.set(e,n),n}function qc(e){let{element:t,boundary:o,rootBoundary:n,strategy:a}=e,l=[...o==="clippingAncestors"?Zc(t,this._c):[].concat(o),n],c=l[0],u=l.reduce((p,y)=>{let h=Qi(t,y,a);return p.top=er(h.top,p.top),p.right=_n(h.right,p.right),p.bottom=_n(h.bottom,p.bottom),p.left=er(h.left,p.left),p},Qi(t,c,a));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function Yc(e){return ts(e)}function Xc(e,t,o){let n=ke(t),a=rt(t),i=o==="fixed",l=Nr(e,!0,i,t),c={scrollLeft:0,scrollTop:0},u=et(0);if(n||!n&&!i)if((tt(t)!=="body"||tr(a))&&(c=Rr(t)),n){let p=Nr(t,!0,i,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}else a&&(u.x=ns(a));return{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function es(e,t){return!ke(e)||ve(e).position==="fixed"?null:t?t(e):e.offsetParent}function is(e,t){let o=be(e);if(!ke(e))return o;let n=es(e,t);for(;n&&Yi(n)&&ve(n).position==="static";)n=es(n,t);return n&&(tt(n)==="html"||tt(n)==="body"&&ve(n).position==="static"&&!Xr(n))?o:n||Xi(e)||o}var Jc=async function(e){let{reference:t,floating:o,strategy:n}=e,a=this.getOffsetParent||is,i=this.getDimensions;return{reference:Xc(t,await a(o),n),floating:{x:0,y:0,...await i(o)}}};function Qc(e){return ve(e).direction==="rtl"}var Qr={convertOffsetParentRelativeRectToViewportRelativeRect:zc,getDocumentElement:rt,getClippingRect:qc,getOffsetParent:is,getElementRects:Jc,getClientRects:Gc,getDimensions:Yc,getScale:rr,isElement:Ve,isRTL:Qc};var ss=(e,t,o)=>{let n=new Map,a={platform:Qr,...o},i={...a.platform,_c:n};return Vi(e,t,{...a,platform:i})};function ls(e){return ed(e)}function Pn(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function ed(e){for(let t=e;t;t=Pn(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=Pn(e);t;t=Pn(t)){if(!(t instanceof Element))continue;let o=getComputedStyle(t);if(o.display!=="contents"&&(o.position!=="static"||o.filter!=="none"||t.tagName==="BODY"))return t}return null}async function cs(e,t,o){return ss(e,t,{platform:{...Qr,getOffsetParent:n=>Qr.getOffsetParent(n,ls)},middleware:[In({crossAxis:!0}),Ln({allowedPlacements:[o]})]})}var fr=S(k());var ql=S(k());var Qs=S(W()),pe=S(ce()),De=S(k());var ds=S(W());var us=ds.css`
|
|
548
|
-
`;var eo=S(k()),td="ft-app-info",Rt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Rt.eventName="authentication-change";var rd={session:(e,t)=>{(0,eo.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>I.dispatchEvent(new Rt(t.payload)),0))}},I=eo.FtReduxStore.get({name:td,reducers:rd,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var kn=S(k());var Nt=class e{static get(t){let{baseUrl:o,apiIntegrationIdentifier:n}=I.getState(),a=t??n;if(o&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,a,!0)}static await(t){return new Promise(o=>{let n=e.get(t);if(n)o(n);else{let a=I.subscribe(()=>{n=e.get(t),n&&(a(),o(n))})}})}};var to=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:Nt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Nt.await()}};var Se=class extends to{constructor(t=!0,o){var n;super(o),this.sortObjectFields=(i,l)=>typeof l!="object"||l==null||Array.isArray(l)?l:Object.fromEntries(Object.entries(l).sort(([c],[u])=>c.localeCompare(u)));let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new kn.CacheRegistry,this.cache=t?a.commonCache:new kn.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((o,n)=>0|31*o+n.charCodeAt(0),0))}};var ro=class extends Se{async listMyBookmarks(){let t=I.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var Dn=class{addCommand(t,o=!1){I.commands.add(t,o)}consumeCommand(t){return I.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Dn;var Ae=S(k());var ps,or=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},od=Symbol("clearAfterUnitTest"),oo=class extends(0,Ae.withEventBus)(Se){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[ps]=()=>{this.defaultMessages={},this.cache=new Ae.CacheRegistry,this.listeners={}},this.currentUiLocale=I.getState().uiLocale,I.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=I.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let o=t.name.toLowerCase();this.cache.setFinal(o,t),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,o){var n;if(t=t.toLowerCase(),o&&Object.keys(o).length>0){let a={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...o};(0,Ae.deepEqual)(this.defaultMessages[t],a)||(this.defaultMessages[t]=a,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var o,n;return this.fetchContext(t),(n=(o=this.cache.getNow(t))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,o){let n=t.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(t,o,...n){var a;let i=t.toLowerCase(),l=this.resolveContext(i);return new Ae.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},l).resolve(o,...n)}async fetchContext(t){let o=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),o&&await this.notify(t)}catch(a){!(a instanceof Ae.CanceledPromiseError)&&o&&console.error(a)}return n}subscribe(t,o){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(o),()=>{var a;return(a=this.listeners[t])===null||a===void 0?void 0:a.delete(o)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new or({loadedContexts:t})),this.dispatchEvent(new or({loadedContexts:t})),await Promise.all(t.map(o=>this.notify(o,!1)))}async notify(t,o=!0){o&&(document.body.dispatchEvent(new or({loadedContexts:[t]})),this.dispatchEvent(new or({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,Ae.delay)(0).then(()=>n()).catch(()=>null)))}};ps=od;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends oo{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends oo{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Tr=window.FluidTopicsI18nService,Bn=window.FluidTopicsCustomI18nService;var fs=S(k()),Mn=class{highlightHtml(t,o,n){(0,fs.highlightHtml)(t,o,n)}};window.FluidTopicsHighlightHtmlService=new Mn;var ad=S(ys(),1);var ms;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(ms||(ms={}));var gs;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(gs||(gs={}));var bs;(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"})(bs||(bs={}));var xs;(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"})(xs||(xs={}));var vs;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(vs||(vs={}));var Ss;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(Ss||(Ss={}));var Cs;(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__AI_TRANSLATE="DOCUMENT__AI_TRANSLATE",e.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.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__DISPLAY="TOPIC__DISPLAY",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(Cs||(Cs={}));var Os;(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"})(Os||(Os={}));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"})(Es||(Es={}));var As;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(As||(As={}));var ws;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(ws||(ws={}));var Rs;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(Rs||(Rs={}));var Ns;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Ns||(Ns={}));var Ts;(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"})(Ts||(Ts={}));var Ls;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(Ls||(Ls={}));var Is;(function(e){e.ASC="ASC",e.DESC="DESC"})(Is||(Is={}));var _s;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(_s||(_s={}));var Ps;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Ps||(Ps={}));var ks;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(ks||(ks={}));var Ds;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(Ds||(Ds={}));var Bs;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK"})(Bs||(Bs={}));var Ms;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Ms||(Ms={}));var $s;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC"})($s||($s={}));var Us;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Us||(Us={}));var Fs;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Fs||(Fs={}));var Q;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(Q||(Q={}));var we;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(we||(we={}));var Hs;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(Hs||(Hs={}));var Ws;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(Ws||(Ws={}));var zs;(function(e){e.USER="USER",e.ASSISTANT="ASSISTANT"})(zs||(zs={}));var Gs;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(Gs||(Gs={}));var js;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(js||(js={}));var nd={[Q.PERSONAL_BOOK_SHARE_USER]:[Q.PERSONAL_BOOK_USER],[Q.HTML_EXPORT_USER]:[Q.PERSONAL_BOOK_USER],[Q.PDF_EXPORT_USER]:[Q.PERSONAL_BOOK_USER],[Q.KHUB_ADMIN]:[Q.CONTENT_PUBLISHER],[Q.ADMIN]:[Q.KHUB_ADMIN,Q.USERS_ADMIN,Q.PORTAL_ADMIN],[Q.GENERATIVE_AI_EXPORT_USER]:[Q.GENERATIVE_AI_USER]};function Ks(e,t){return e===t||(nd[e]??[]).some(o=>Ks(o,t))}function Vs(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=>Ks(n,t))}var io=class extends Se{async listMySearches(){let{session:t}=I.getState();return Vs(t,Q.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var Zs=S(k());var $n=class{isDate(t){var o,n,a,i;return(i=(a=((n=(o=I.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(c=>c.key===t))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(t,o){var n,a,i;return Zs.DateFormatter.format(t,(n=o?.locale)!==null&&n!==void 0?n:I.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new $n;var qs=S(k());var Lr=class{static get(t,o){var n,a;let i=I.getState(),{lang:l,region:c}=(a=(n=i.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new qs.SearchPlaceConverter(i.baseUrl,t??20,i.searchInAllLanguagesAllowed,o??`${l}-${c}`)}};var Un=class{urlToSearchRequest(t){return Lr.get().parse(t)}searchRequestToUrl(t){return Lr.get().serialize(t)}};window.FluidTopicsUrlService=new Un;var dt=S(k());var Tt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};Tt.eventName="change";var Fn=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let o=sessionStorage.getItem(this.itemName(t));return o?JSON.parse(o):void 0}set(t,o){sessionStorage.setItem(this.itemName(t),JSON.stringify(o))}},Ys=new Fn;var so=class e extends dt.WithEventBus{static build(){return new e(window.history,Ys,()=>window.location,!1)}constructor(t,o,n,a){var i,l;super(),this.history=t,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(l=(i=t.state)===null||i===void 0?void 0:i.index)!==null&&l!==void 0?l:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(t,o=!1){let n=o&&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,dt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Tt(this.currentItem())),0)}installProxies(){let t=o=>(n,a,[i,l,c])=>{let u=o(),p={...u===this.currentIndex?this.currentState:void 0,...i,index:u,href:typeof c=="string"?c:(c??this.windowLocation()).href};n.apply(a,[p,l,c]),this.setCurrentState(p,!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 o=this.history.length-1;o>=0;o--)t?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(t){var o;let n={...this.buildCurrentState(),...t,index:this.currentIndex,title:(o=t?.title)!==null&&o!==void 0?o:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(t){this.addEventListener(Tt.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(Tt.eventName,t)}currentItem(){return(0,dt.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,dt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}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,dt.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 o;let n=(o=this.states[t])===null||o===void 0?void 0:o.majorStateId;if(!n)return t;let a=t,i=t+1;for(;this.states.length>i&&!this.isDifferentMajorState(i,n);)this.hasState(i)&&(a=i),i++;return a}buildCurrentState(){var t,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&o!==void 0?o:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,o){var n;if(!this.hasState(t))return!1;let a=o??this.currentState.majorStateId,i=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return i==null||i!=a}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=so.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});var Xs=I;function Js(e,t){var o;return Xs.getState().authenticationRequired&&!(!((o=Xs.getState().session)===null||o===void 0)&&o.sessionAuthenticated)?Promise.resolve(t):e()}var ee=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var c=e.length-1;c>=0;c--)(l=e[c])&&(i=(a<3?l(i):a>3?l(t,o,i):l(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},z=class extends De.FtLitElement{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.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>Nt.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new De.CacheRegistry,this.cleanSessionDebouncer=new De.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return Qs.html`
|
|
548
|
+
`;var eo=S(k()),td="ft-app-info",Rt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Rt.eventName="authentication-change";var rd={session:(e,t)=>{(0,eo.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>I.dispatchEvent(new Rt(t.payload)),0))}},I=eo.FtReduxStore.get({name:td,reducers:rd,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var kn=S(k());var Nt=class e{static get(t){let{baseUrl:o,apiIntegrationIdentifier:n}=I.getState(),a=t??n;if(o&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,a,!0)}static await(t){return new Promise(o=>{let n=e.get(t);if(n)o(n);else{let a=I.subscribe(()=>{n=e.get(t),n&&(a(),o(n))})}})}};var to=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:Nt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Nt.await()}};var Se=class extends to{constructor(t=!0,o){var n;super(o),this.sortObjectFields=(i,l)=>typeof l!="object"||l==null||Array.isArray(l)?l:Object.fromEntries(Object.entries(l).sort(([c],[u])=>c.localeCompare(u)));let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new kn.CacheRegistry,this.cache=t?a.commonCache:new kn.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((o,n)=>0|31*o+n.charCodeAt(0),0))}};var ro=class extends Se{async listMyBookmarks(){let t=I.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var Dn=class{addCommand(t,o=!1){I.commands.add(t,o)}consumeCommand(t){return I.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Dn;var Ae=S(k());var ps,or=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},od=Symbol("clearAfterUnitTest"),oo=class extends(0,Ae.withEventBus)(Se){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[ps]=()=>{this.defaultMessages={},this.cache=new Ae.CacheRegistry,this.listeners={}},this.currentUiLocale=I.getState().uiLocale,I.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=I.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let o=t.name.toLowerCase();this.cache.setFinal(o,t),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,o){var n;if(t=t.toLowerCase(),o&&Object.keys(o).length>0){let a={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...o};(0,Ae.deepEqual)(this.defaultMessages[t],a)||(this.defaultMessages[t]=a,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var o,n;return this.fetchContext(t),(n=(o=this.cache.getNow(t))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,o){let n=t.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(t,o,...n){var a;let i=t.toLowerCase(),l=this.resolveContext(i);return new Ae.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},l).resolve(o,...n)}async fetchContext(t){let o=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),o&&await this.notify(t)}catch(a){!(a instanceof Ae.CanceledPromiseError)&&o&&console.error(a)}return n}subscribe(t,o){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(o),()=>{var a;return(a=this.listeners[t])===null||a===void 0?void 0:a.delete(o)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new or({loadedContexts:t})),this.dispatchEvent(new or({loadedContexts:t})),await Promise.all(t.map(o=>this.notify(o,!1)))}async notify(t,o=!0){o&&(document.body.dispatchEvent(new or({loadedContexts:[t]})),this.dispatchEvent(new or({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,Ae.delay)(0).then(()=>n()).catch(()=>null)))}};ps=od;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends oo{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends oo{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Tr=window.FluidTopicsI18nService,Bn=window.FluidTopicsCustomI18nService;var fs=S(k()),Mn=class{highlightHtml(t,o,n){(0,fs.highlightHtml)(t,o,n)}};window.FluidTopicsHighlightHtmlService=new Mn;var ad=S(ys(),1);var ms;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(ms||(ms={}));var gs;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(gs||(gs={}));var bs;(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"})(bs||(bs={}));var xs;(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"})(xs||(xs={}));var vs;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(vs||(vs={}));var Ss;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(Ss||(Ss={}));var Cs;(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__AI_TRANSLATE="DOCUMENT__AI_TRANSLATE",e.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.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__DISPLAY="TOPIC__DISPLAY",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(Cs||(Cs={}));var Os;(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"})(Os||(Os={}));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"})(Es||(Es={}));var As;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(As||(As={}));var ws;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(ws||(ws={}));var Rs;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(Rs||(Rs={}));var Ns;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Ns||(Ns={}));var Ts;(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"})(Ts||(Ts={}));var Ls;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(Ls||(Ls={}));var Is;(function(e){e.ASC="ASC",e.DESC="DESC"})(Is||(Is={}));var _s;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(_s||(_s={}));var Ps;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Ps||(Ps={}));var ks;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(ks||(ks={}));var Ds;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(Ds||(Ds={}));var Bs;(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"})(Bs||(Bs={}));var Ms;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Ms||(Ms={}));var $s;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})($s||($s={}));var Us;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Us||(Us={}));var Fs;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Fs||(Fs={}));var Q;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(Q||(Q={}));var we;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(we||(we={}));var Hs;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(Hs||(Hs={}));var Ws;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(Ws||(Ws={}));var zs;(function(e){e.USER="USER",e.ASSISTANT="ASSISTANT"})(zs||(zs={}));var Gs;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(Gs||(Gs={}));var js;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(js||(js={}));var nd={[Q.PERSONAL_BOOK_SHARE_USER]:[Q.PERSONAL_BOOK_USER],[Q.HTML_EXPORT_USER]:[Q.PERSONAL_BOOK_USER],[Q.PDF_EXPORT_USER]:[Q.PERSONAL_BOOK_USER],[Q.KHUB_ADMIN]:[Q.CONTENT_PUBLISHER],[Q.ADMIN]:[Q.KHUB_ADMIN,Q.USERS_ADMIN,Q.PORTAL_ADMIN],[Q.GENERATIVE_AI_EXPORT_USER]:[Q.GENERATIVE_AI_USER]};function Ks(e,t){return e===t||(nd[e]??[]).some(o=>Ks(o,t))}function Vs(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=>Ks(n,t))}var io=class extends Se{async listMySearches(){let{session:t}=I.getState();return Vs(t,Q.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var Zs=S(k());var $n=class{isDate(t){var o,n,a,i;return(i=(a=((n=(o=I.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(c=>c.key===t))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(t,o){var n,a,i;return Zs.DateFormatter.format(t,(n=o?.locale)!==null&&n!==void 0?n:I.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new $n;var qs=S(k());var Lr=class{static get(t,o){var n,a;let i=I.getState(),{lang:l,region:c}=(a=(n=i.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new qs.SearchPlaceConverter(i.baseUrl,t??20,i.searchInAllLanguagesAllowed,o??`${l}-${c}`)}};var Un=class{urlToSearchRequest(t){return Lr.get().parse(t)}searchRequestToUrl(t){return Lr.get().serialize(t)}};window.FluidTopicsUrlService=new Un;var dt=S(k());var Tt=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};Tt.eventName="change";var Fn=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let o=sessionStorage.getItem(this.itemName(t));return o?JSON.parse(o):void 0}set(t,o){sessionStorage.setItem(this.itemName(t),JSON.stringify(o))}},Ys=new Fn;var so=class e extends dt.WithEventBus{static build(){return new e(window.history,Ys,()=>window.location,!1)}constructor(t,o,n,a){var i,l;super(),this.history=t,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(l=(i=t.state)===null||i===void 0?void 0:i.index)!==null&&l!==void 0?l:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(t,o=!1){let n=o&&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,dt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Tt(this.currentItem())),0)}installProxies(){let t=o=>(n,a,[i,l,c])=>{let u=o(),p={...u===this.currentIndex?this.currentState:void 0,...i,index:u,href:typeof c=="string"?c:(c??this.windowLocation()).href};n.apply(a,[p,l,c]),this.setCurrentState(p,!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 o=this.history.length-1;o>=0;o--)t?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(t){var o;let n={...this.buildCurrentState(),...t,index:this.currentIndex,title:(o=t?.title)!==null&&o!==void 0?o:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(t){this.addEventListener(Tt.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(Tt.eventName,t)}currentItem(){return(0,dt.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,dt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}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,dt.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 o;let n=(o=this.states[t])===null||o===void 0?void 0:o.majorStateId;if(!n)return t;let a=t,i=t+1;for(;this.states.length>i&&!this.isDifferentMajorState(i,n);)this.hasState(i)&&(a=i),i++;return a}buildCurrentState(){var t,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&o!==void 0?o:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,o){var n;if(!this.hasState(t))return!1;let a=o??this.currentState.majorStateId,i=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return i==null||i!=a}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=so.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});var Xs=I;function Js(e,t){var o;return Xs.getState().authenticationRequired&&!(!((o=Xs.getState().session)===null||o===void 0)&&o.sessionAuthenticated)?Promise.resolve(t):e()}var ee=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var c=e.length-1;c>=0;c--)(l=e[c])&&(i=(a<3?l(i):a>3?l(t,o,i):l(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},z=class extends De.FtLitElement{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.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>Nt.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new De.CacheRegistry,this.cleanSessionDebouncer=new De.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return Qs.html`
|
|
549
549
|
<slot></slot>
|
|
550
550
|
`}connectedCallback(){super.connectedCallback(),I.addEventListener(Rt.eventName,this.reloadConfiguration)}disconnectedCallback(){I.addEventListener(Rt.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(t){var o,n,a,i,l,c,u;super.update(t),t.has("baseUrl")&&(I.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&I.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("apiIntegrationAppVersion")&&I.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),t.has("uiLocale")&&I.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&I.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&I.actions.noCustom(this.noCustom),t.has("editorMode")&&I.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&I.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&I.actions.session(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(p=>Tr.addContext(p)),t.has("openExternalDocumentInNewTab")&&I.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&I.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&I.actions.forcedOffline(this.forcedOffline),t.has("localesConfiguration")&&(I.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),I.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),I.actions.searchInAllLanguagesAllowed((l=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&l!==void 0?l:!1)),t.has("authenticationRequired")&&I.actions.authenticationRequired(this.authenticationRequired),t.has("availableContentLocales")&&I.actions.availableContentLocales((u=(c=this.availableContentLocales)===null||c===void 0?void 0:c.contentLocales)!==null&&u!==void 0?u:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},t.idleTimeoutInMillis),t})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>Js(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};z.elementDefinitions={};z.styles=us;ee([(0,pe.property)()],z.prototype,"baseUrl",void 0);ee([(0,pe.property)()],z.prototype,"apiIntegrationIdentifier",void 0);ee([(0,pe.property)()],z.prototype,"apiIntegrationAppVersion",void 0);ee([(0,pe.property)()],z.prototype,"uiLocale",void 0);ee([(0,De.jsonProperty)(null)],z.prototype,"availableUiLocales",void 0);ee([(0,De.jsonProperty)(null)],z.prototype,"metadataConfiguration",void 0);ee([(0,pe.property)({type:Boolean})],z.prototype,"editorMode",void 0);ee([(0,pe.property)({type:Boolean})],z.prototype,"noCustom",void 0);ee([(0,pe.property)({type:Boolean})],z.prototype,"openExternalDocumentInNewTab",void 0);ee([(0,pe.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],z.prototype,"noCustomComponent",void 0);ee([(0,pe.property)({type:Boolean})],z.prototype,"withManualResources",void 0);ee([(0,pe.property)({type:Boolean})],z.prototype,"navigatorOnline",void 0);ee([(0,pe.property)({type:Boolean})],z.prototype,"forcedOffline",void 0);ee([(0,pe.property)({type:Object})],z.prototype,"apiProvider",void 0);ee([(0,pe.property)({type:Boolean})],z.prototype,"authenticationRequired",void 0);ee([(0,De.jsonProperty)([])],z.prototype,"messageContexts",void 0);ee([(0,De.jsonProperty)(void 0)],z.prototype,"session",void 0);ee([(0,pe.state)()],z.prototype,"localesConfiguration",void 0);ee([(0,pe.state)()],z.prototype,"availableContentLocales",void 0);var ua=S(ce());function id(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let o,n,a;if(Array.isArray(e)){if(o=e.length,o!=t.length)return!1;for(n=o;n--!==0;)if(!lo(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(!lo(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=l=>Object.keys(l).filter(c=>l[c]!=null);if(a=i(e),o=a.length,o!==i(t).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[n]))return!1;for(n=o;n--!==0;){let l=a[n];if(!lo(e[l],t[l]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function lo(e,t){try{return id(e,t)}catch{return!1}}function Ir(e,t){return!lo(e,t)}function co(e,t){let o=n=>n[e]===!0;return n=>{if(o(n))return n;let a=t(n);return a[e]=!0,a}}var el=S(ce(),1);var Hn=e=>{let t=e??{};return(o,n)=>{var a;let i={hasChanged:Ir,attribute:!1,...t};(0,el.property)(i)(o,n);let l=o.constructor;l.reduxProperties=new Map(l.reduxProperties),l.reduxProperties.set(n,{selector:(a=t.selector)!==null&&a!==void 0?a:c=>c[n],store:t.store})}};var uo=class{constructor(){this.queue=[]}add(t,o=!1){o&&this.clear(t.type),this.queue.push(t)}consume(t){let o=this.queue.find(n=>n.type===t);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(t){typeof t=="string"?this.queue=this.queue.filter(o=>o.type!==t):this.queue=this.queue.filter(o=>!t.test(o.type))}};var Lt=S(ce(),1);var tl=S(ce(),1);function rl(e,t){let o=()=>JSON.parse(JSON.stringify(e));return(0,tl.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return o();try{return JSON.parse(n)}catch{return o()}},toAttribute:n=>JSON.stringify(n)},hasChanged:Ir,...t??{}})}var po=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,o;let n=[...this.callbacks];this.callbacks=[];let a=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let l of n)try{await l()}catch(c){a(c);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var nl=S(W(),1);var fo=globalThis,sd=fo.ShadowRoot&&(fo.ShadyCSS===void 0||fo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,nx=Symbol();var ol=(e,t)=>{if(sd)e.adoptedStyleSheets=t.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of t){let n=document.createElement("style"),a=fo.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,e.appendChild(n)}};var ho=class extends nl.LitElement{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([a,i])=>t.registry.define(a,i)));let o={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return ol(n,t.elementStyles),n}};function al(e,t,...o){var n;let a=e.querySelector(t);for(let i of o)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}var ir=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var c=e.length-1;c>=0;c--)(l=e[c])&&(i=(a<3?l(i):a>3?l(t,o,i):l(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},cl,il=Symbol("constructorPrototype"),sl=Symbol("constructorName"),dl=Symbol("exportpartsDebouncer"),ll=Symbol("dynamicDependenciesLoaded"),ar=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};ar.eventName="exportparts-updated";var Ze=class extends ho{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[cl]=new po(5),this.scheduleExportpartsUpdate=()=>{var t,o,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[dl].run(()=>{var a,i;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[sl]=this.constructor.name,this[il]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[sl]&&Object.setPrototypeOf(this,this[il])}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 o=this.constructor;o[ll]||(o[ll]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(ar.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(ar.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 ar)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let i=[...a??[],n];o=al(this.shadowRoot,...i)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var o,n,a;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}setExportpartsAttribute(t){var o,n,a,i,l,c;let u=g=>g!=null&&g.trim().length>0,p=t.filter(u).map(g=>g.trim());if(p.length===0){this.exportparts=void 0;return}let y=new Set;for(let g of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let v=(i=(a=g.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],x=(c=(l=g.getAttribute("exportparts"))===null||l===void 0?void 0:l.split(",").map(T=>T.split(":")[1]))!==null&&c!==void 0?c:[],O=[...v,...x].filter(u).map(T=>T.trim());for(let T of O)y.add(T)}if(y.size===0){this.exportparts=void 0;return}let h=[...y.values()].flatMap(g=>p.map(v=>`${g}:${v}--${g}`));this.exportparts=[...this.part,...h].join(", ")}};cl=dl;ir([(0,Lt.property)()],Ze.prototype,"exportpartsPrefix",void 0);ir([rl([])],Ze.prototype,"exportpartsPrefixes",void 0);ir([(0,Lt.property)({reflect:!0})],Ze.prototype,"exportparts",void 0);ir([(0,Lt.property)()],Ze.prototype,"customStylesheet",void 0);ir([(0,Lt.property)()],Ze.prototype,"elementToFocus",void 0);ir([(0,Lt.state)()],Ze.prototype,"useAdoptedStyleSheets",void 0);function yo(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var _r=Symbol("internalReduxEventsUnsubscribers"),ut=Symbol("internalStoresUnsubscribers"),It=Symbol("internalStores"),ld=co(Symbol("withRedux"),function(e){var t,o,n;class a extends e{constructor(){super(...arguments),this[t]=new Map,this[o]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(l){super.willUpdate(l),[...this.reduxConstructor.reduxReactiveProperties].some(c=>l.has(c))&&this.updateFromStores()}getUnnamedStore(){if(this[It].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[It].values()][0]}getStore(l){return l==null?this.getUnnamedStore():this[It].get(l)}addStore(l,c){var u;c=(u=c??l.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(c),this[It].set(c,l),this.subscribeToStore(c,l),this.updateFromStores()}removeStore(l){let c=typeof l=="string"?l:l.name;this.unsubscribeFromStore(c),this[It].delete(c)}setupStores(){this.unsubscribeFromStores(),this[It].forEach((l,c)=>this.subscribeToStore(c,l)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((l,c)=>{let u=this.constructor.getPropertyOptions(c);if(!u?.attribute||!this.hasAttribute(typeof u?.attribute=="string"?u.attribute:c)){let p=this.getStore(l.store);p&&(l.store?this[ut].has(l.store):this[ut].size>0)&&(this[c]=l.selector(p.getState(),this))}})}subscribeToStore(l,c){var u;this[ut].set(l,c.subscribe(()=>this.updateFromStores())),this[_r].set(l,[]),yo(c)&&c.eventBus&&((u=this.reduxConstructor.reduxEventListeners)===null||u===void 0||u.forEach((p,y)=>{if(typeof this[y]=="function"&&(!p.store||c.name===p.store)){let h=g=>this[y](g);c.addEventListener(p.eventName,h),this[_r].get(l).push(()=>c.removeEventListener(p.eventName,h))}})),this.onStoreAvailable(l)}unsubscribeFromStores(){this[ut].forEach((l,c)=>this.unsubscribeFromStore(c))}unsubscribeFromStore(l){var c;this[ut].has(l)&&this[ut].get(l)(),this[ut].delete(l),(c=this[_r].get(l))===null||c===void 0||c.forEach(u=>u()),this[_r].delete(l)}onStoreAvailable(l){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=ut,o=It,n=_r,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),ul=class extends ld(Ze){};function Re(e){for(var t=arguments.length,o=Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+e+(o.length?" "+o.map(function(l){return"'"+l+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ot(e){return!!e&&!!e[j]}function Be(e){var t;return!!e&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===md}(e)||Array.isArray(e)||!!e[bl]||!!(!((t=e.constructor)===null||t===void 0)&&t[bl])||Yn(e)||Xn(e))}function _t(e,t,o){o===void 0&&(o=!1),cr(e)===0?(o?Object.keys:lr)(e).forEach(function(n){o&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,a){return t(a,n,e)})}function cr(e){var t=e[j];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Yn(e)?2:Xn(e)?3:0}function sr(e,t){return cr(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function cd(e,t){return cr(e)===2?e.get(t):e[t]}function xl(e,t,o){var n=cr(e);n===2?e.set(t,o):n===3?e.add(o):e[t]=o}function vl(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Yn(e){return hd&&e instanceof Map}function Xn(e){return yd&&e instanceof Set}function pt(e){return e.o||e.t}function Jn(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Ol(e);delete t[j];for(var o=lr(t),n=0;n<o.length;n++){var a=o[n],i=t[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),t)}function Qn(e,t){return t===void 0&&(t=!1),ea(e)||ot(e)||!Be(e)||(cr(e)>1&&(e.set=e.add=e.clear=e.delete=dd),Object.freeze(e),t&&_t(e,function(o,n){return Qn(n,!0)},!0)),e}function dd(){Re(2)}function ea(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function qe(e){var t=qn[e];return t||Re(18,e),t}function ud(e,t){qn[e]||(qn[e]=t)}function Kn(){return kr}function Wn(e,t){t&&(qe("Patches"),e.u=[],e.s=[],e.v=t)}function mo(e){Vn(e),e.p.forEach(pd),e.p=null}function Vn(e){e===kr&&(kr=e.l)}function pl(e){return kr={p:[],l:kr,h:e,m:!0,_:0}}function pd(e){var t=e[j];t.i===0||t.i===1?t.j():t.g=!0}function zn(e,t){t._=t.p.length;var o=t.p[0],n=e!==void 0&&e!==o;return t.h.O||qe("ES5").S(t,e,n),n?(o[j].P&&(mo(t),Re(4)),Be(e)&&(e=go(t,e),t.l||bo(t,e)),t.u&&qe("Patches").M(o[j].t,e,t.u,t.s)):e=go(t,o,[]),mo(t),t.u&&t.v(t.u,t.s),e!==Cl?e:void 0}function go(e,t,o){if(ea(t))return t;var n=t[j];if(!n)return _t(t,function(c,u){return fl(e,n,t,c,u,o)},!0),t;if(n.A!==e)return t;if(!n.P)return bo(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Jn(n.k):n.o,i=a,l=!1;n.i===3&&(i=new Set(a),a.clear(),l=!0),_t(i,function(c,u){return fl(e,n,a,c,u,o,l)}),bo(e,a,!1),o&&e.u&&qe("Patches").N(n,o,e.u,e.s)}return n.o}function fl(e,t,o,n,a,i,l){if(ot(a)){var c=go(e,a,i&&t&&t.i!==3&&!sr(t.R,n)?i.concat(n):void 0);if(xl(o,n,c),!ot(c))return;e.m=!1}else l&&o.add(a);if(Be(a)&&!ea(a)){if(!e.h.D&&e._<1)return;go(e,a),t&&t.A.l||bo(e,a)}}function bo(e,t,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&Qn(t,o)}function Gn(e,t){var o=e[j];return(o?pt(o):e)[t]}function hl(e,t){if(t in e)for(var o=Object.getPrototypeOf(e);o;){var n=Object.getOwnPropertyDescriptor(o,t);if(n)return n;o=Object.getPrototypeOf(o)}}function ft(e){e.P||(e.P=!0,e.l&&ft(e.l))}function jn(e){e.o||(e.o=Jn(e.t))}function Zn(e,t,o){var n=Yn(t)?qe("MapSet").F(t,o):Xn(t)?qe("MapSet").T(t,o):e.O?function(a,i){var l=Array.isArray(a),c={i:l?1:0,A:i?i.A:Kn(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},u=c,p=Dr;l&&(u=[c],p=Pr);var y=Proxy.revocable(u,p),h=y.revoke,g=y.proxy;return c.k=g,c.j=h,g}(t,o):qe("ES5").J(t,o);return(o?o.A:Kn()).p.push(n),n}function fd(e){return ot(e)||Re(22,e),function t(o){if(!Be(o))return o;var n,a=o[j],i=cr(o);if(a){if(!a.P&&(a.i<4||!qe("ES5").K(a)))return a.t;a.I=!0,n=yl(o,i),a.I=!1}else n=yl(o,i);return _t(n,function(l,c){a&&cd(a.t,l)===c||xl(n,l,t(c))}),i===3?new Set(n):n}(e)}function yl(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Jn(e)}function Sl(){function e(l,c){var u=i[l];return u?u.enumerable=c:i[l]=u={configurable:!0,enumerable:c,get:function(){var p=this[j];return Dr.get(p,l)},set:function(p){var y=this[j];Dr.set(y,l,p)}},u}function t(l){for(var c=l.length-1;c>=0;c--){var u=l[c][j];if(!u.P)switch(u.i){case 5:n(u)&&ft(u);break;case 4:o(u)&&ft(u)}}}function o(l){for(var c=l.t,u=l.k,p=lr(u),y=p.length-1;y>=0;y--){var h=p[y];if(h!==j){var g=c[h];if(g===void 0&&!sr(c,h))return!0;var v=u[h],x=v&&v[j];if(x?x.t!==g:!vl(v,g))return!0}}var O=!!c[j];return p.length!==lr(c).length+(O?0:1)}function n(l){var c=l.k;if(c.length!==l.t.length)return!0;var u=Object.getOwnPropertyDescriptor(c,c.length-1);if(u&&!u.get)return!0;for(var p=0;p<c.length;p++)if(!c.hasOwnProperty(p))return!0;return!1}function a(l){l.g&&Re(3,JSON.stringify(pt(l)))}var i={};ud("ES5",{J:function(l,c){var u=Array.isArray(l),p=function(h,g){if(h){for(var v=Array(g.length),x=0;x<g.length;x++)Object.defineProperty(v,""+x,e(x,!0));return v}var O=Ol(g);delete O[j];for(var T=lr(O),N=0;N<T.length;N++){var L=T[N];O[L]=e(L,h||!!O[L].enumerable)}return Object.create(Object.getPrototypeOf(g),O)}(u,l),y={i:u?5:4,A:c?c.A:Kn(),P:!1,I:!1,R:{},l:c,t:l,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,j,{value:y,writable:!0}),p},S:function(l,c,u){u?ot(c)&&c[j].A===l&&t(l.p):(l.u&&function p(y){if(y&&typeof y=="object"){var h=y[j];if(h){var g=h.t,v=h.k,x=h.R,O=h.i;if(O===4)_t(v,function(M){M!==j&&(g[M]!==void 0||sr(g,M)?x[M]||p(v[M]):(x[M]=!0,ft(h)))}),_t(g,function(M){v[M]!==void 0||sr(v,M)||(x[M]=!1,ft(h))});else if(O===5){if(n(h)&&(ft(h),x.length=!0),v.length<g.length)for(var T=v.length;T<g.length;T++)x[T]=!1;else for(var N=g.length;N<v.length;N++)x[N]=!0;for(var L=Math.min(v.length,g.length),D=0;D<L;D++)v.hasOwnProperty(D)||(x[D]=!0),x[D]===void 0&&p(v[D])}}}}(l.p[0]),t(l.p))},K:function(l){return l.i===4?o(l):n(l)}})}var ml,kr,ta=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",hd=typeof Map<"u",yd=typeof Set<"u",gl=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Cl=ta?Symbol.for("immer-nothing"):((ml={})["immer-nothing"]=!0,ml),bl=ta?Symbol.for("immer-draftable"):"__$immer_draftable",j=ta?Symbol.for("immer-state"):"__$immer_state";var md=""+Object.prototype.constructor,lr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Ol=Object.getOwnPropertyDescriptors||function(e){var t={};return lr(e).forEach(function(o){t[o]=Object.getOwnPropertyDescriptor(e,o)}),t},qn={},Dr={get:function(e,t){if(t===j)return e;var o=pt(e);if(!sr(o,t))return function(a,i,l){var c,u=hl(i,l);return u?"value"in u?u.value:(c=u.get)===null||c===void 0?void 0:c.call(a.k):void 0}(e,o,t);var n=o[t];return e.I||!Be(n)?n:n===Gn(e.t,t)?(jn(e),e.o[t]=Zn(e.A.h,n,e)):n},has:function(e,t){return t in pt(e)},ownKeys:function(e){return Reflect.ownKeys(pt(e))},set:function(e,t,o){var n=hl(pt(e),t);if(n?.set)return n.set.call(e.k,o),!0;if(!e.P){var a=Gn(pt(e),t),i=a?.[j];if(i&&i.t===o)return e.o[t]=o,e.R[t]=!1,!0;if(vl(o,a)&&(o!==void 0||sr(e.t,t)))return!0;jn(e),ft(e)}return e.o[t]===o&&(o!==void 0||t in e.o)||Number.isNaN(o)&&Number.isNaN(e.o[t])||(e.o[t]=o,e.R[t]=!0),!0},deleteProperty:function(e,t){return Gn(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,jn(e),ft(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var o=pt(e),n=Reflect.getOwnPropertyDescriptor(o,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:o[t]}},defineProperty:function(){Re(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Re(12)}},Pr={};_t(Dr,function(e,t){Pr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Pr.deleteProperty=function(e,t){return Pr.set.call(this,e,t,void 0)},Pr.set=function(e,t,o){return Dr.set.call(this,e[0],t,o,e[0])};var gd=function(){function e(o){var n=this;this.O=gl,this.D=!0,this.produce=function(a,i,l){if(typeof a=="function"&&typeof i!="function"){var c=i;i=a;var u=n;return function(O){var T=this;O===void 0&&(O=c);for(var N=arguments.length,L=Array(N>1?N-1:0),D=1;D<N;D++)L[D-1]=arguments[D];return u.produce(O,function(M){var $;return($=i).call.apply($,[T,M].concat(L))})}}var p;if(typeof i!="function"&&Re(6),l!==void 0&&typeof l!="function"&&Re(7),Be(a)){var y=pl(n),h=Zn(n,a,void 0),g=!0;try{p=i(h),g=!1}finally{g?mo(y):Vn(y)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(O){return Wn(y,l),zn(O,y)},function(O){throw mo(y),O}):(Wn(y,l),zn(p,y))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===Cl&&(p=void 0),n.D&&Qn(p,!0),l){var v=[],x=[];qe("Patches").M(a,p,v,x),l(v,x)}return p}Re(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(p){for(var y=arguments.length,h=Array(y>1?y-1:0),g=1;g<y;g++)h[g-1]=arguments[g];return n.produceWithPatches(p,function(v){return a.apply(void 0,[v].concat(h))})};var l,c,u=n.produce(a,i,function(p,y){l=p,c=y});return typeof Promise<"u"&&u instanceof Promise?u.then(function(p){return[p,l,c]}):[u,l,c]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var t=e.prototype;return t.createDraft=function(o){Be(o)||Re(8),ot(o)&&(o=fd(o));var n=pl(this),a=Zn(this,o,void 0);return a[j].C=!0,Vn(n),a},t.finishDraft=function(o,n){var a=o&&o[j],i=a.A;return Wn(i,n),zn(void 0,i)},t.setAutoFreeze=function(o){this.D=o},t.setUseProxies=function(o){o&&!gl&&Re(20),this.O=o},t.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var l=qe("Patches").$;return ot(o)?l(o,n):this.produce(o,function(c){return l(c,n)})},e}(),Ce=new gd,bd=Ce.produce,xx=Ce.produceWithPatches.bind(Ce),vx=Ce.setAutoFreeze.bind(Ce),Sx=Ce.setUseProxies.bind(Ce),Cx=Ce.applyPatches.bind(Ce),Ox=Ce.createDraft.bind(Ce),Ex=Ce.finishDraft.bind(Ce),xo=bd;function Pt(e){"@babel/helpers - typeof";return Pt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pt(e)}function El(e,t){if(Pt(e)!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var n=o.call(e,t||"default");if(Pt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Al(e){var t=El(e,"string");return Pt(t)=="symbol"?t:t+""}function wl(e,t,o){return(t=Al(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function Rl(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,n)}return o}function ra(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?Rl(Object(o),!0).forEach(function(n){wl(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Rl(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function fe(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 Nl=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),oa=function(){return Math.random().toString(36).substring(7).split("").join(".")},vo={INIT:"@@redux/INIT"+oa(),REPLACE:"@@redux/REPLACE"+oa(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+oa()}};function xd(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function na(e,t,o){var n;if(typeof t=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(fe(0));if(typeof t=="function"&&typeof o>"u"&&(o=t,t=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(fe(1));return o(na)(e,t)}if(typeof e!="function")throw new Error(fe(2));var a=e,i=t,l=[],c=l,u=!1;function p(){c===l&&(c=l.slice())}function y(){if(u)throw new Error(fe(3));return i}function h(O){if(typeof O!="function")throw new Error(fe(4));if(u)throw new Error(fe(5));var T=!0;return p(),c.push(O),function(){if(T){if(u)throw new Error(fe(6));T=!1,p();var L=c.indexOf(O);c.splice(L,1),l=null}}}function g(O){if(!xd(O))throw new Error(fe(7));if(typeof O.type>"u")throw new Error(fe(8));if(u)throw new Error(fe(9));try{u=!0,i=a(i,O)}finally{u=!1}for(var T=l=c,N=0;N<T.length;N++){var L=T[N];L()}return O}function v(O){if(typeof O!="function")throw new Error(fe(10));a=O,g({type:vo.REPLACE})}function x(){var O,T=h;return O={subscribe:function(L){if(typeof L!="object"||L===null)throw new Error(fe(11));function D(){L.next&&L.next(y())}D();var M=T(D);return{unsubscribe:M}}},O[Nl]=function(){return this},O}return g({type:vo.INIT}),n={dispatch:g,subscribe:h,getState:y,replaceReducer:v},n[Nl]=x,n}function vd(e){Object.keys(e).forEach(function(t){var o=e[t],n=o(void 0,{type:vo.INIT});if(typeof n>"u")throw new Error(fe(12));if(typeof o(void 0,{type:vo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(fe(13))})}function Tl(e){for(var t=Object.keys(e),o={},n=0;n<t.length;n++){var a=t[n];typeof e[a]=="function"&&(o[a]=e[a])}var i=Object.keys(o),l,c;try{vd(o)}catch(u){c=u}return function(p,y){if(p===void 0&&(p={}),c)throw c;if(0)var h;for(var g=!1,v={},x=0;x<i.length;x++){var O=i[x],T=o[O],N=p[O],L=T(N,y);if(typeof L>"u"){var D=y&&y.type;throw new Error(fe(14))}v[O]=L,g=g||L!==N}return g=g||i.length!==Object.keys(p).length,g?v:p}}function dr(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function Ll(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(fe(15))},l={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},c=t.map(function(u){return u(l)});return i=dr.apply(void 0,c)(a.dispatch),ra(ra({},a),{},{dispatch:i})}}}function Il(e){var t=function(n){var a=n.dispatch,i=n.getState;return function(l){return function(c){return typeof c=="function"?c(a,i,e):l(c)}}};return t}var _l=Il();_l.withExtraArgument=Il;var aa=_l;var Ml=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},e(t,o)};return function(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(t,o);function n(){this.constructor=t}t.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),Sd=function(e,t){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,l;return l={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function c(p){return function(y){return u([p,y])}}function u(p){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=p[0]&2?a.return:p[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,p[1])).done)return i;switch(a=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,a=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){o.label=p[1];break}if(p[0]===6&&o.label<i[1]){o.label=i[1],i=p;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(p);break}i[2]&&o.ops.pop(),o.trys.pop();continue}p=t.call(e,o)}catch(y){p=[6,y],a=0}finally{n=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},ur=function(e,t){for(var o=0,n=t.length,a=e.length;o<n;o++,a++)e[a]=t[o];return e},Cd=Object.defineProperty,Od=Object.defineProperties,Ed=Object.getOwnPropertyDescriptors,Pl=Object.getOwnPropertySymbols,Ad=Object.prototype.hasOwnProperty,wd=Object.prototype.propertyIsEnumerable,kl=function(e,t,o){return t in e?Cd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o},ht=function(e,t){for(var o in t||(t={}))Ad.call(t,o)&&kl(e,o,t[o]);if(Pl)for(var n=0,a=Pl(t);n<a.length;n++){var o=a[n];wd.call(t,o)&&kl(e,o,t[o])}return e},ia=function(e,t){return Od(e,Ed(t))},Rd=function(e,t,o){return new Promise(function(n,a){var i=function(u){try{c(o.next(u))}catch(p){a(p)}},l=function(u){try{c(o.throw(u))}catch(p){a(p)}},c=function(u){return u.done?n(u.value):Promise.resolve(u.value).then(i,l)};c((o=o.apply(e,t)).next())})};var Nd=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?dr:dr.apply(null,arguments)},Wx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Td(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var o=t;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return t===o}var Ld=function(e){Ml(t,e);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,t.prototype),a}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},t.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(t.bind.apply(t,ur([void 0],o[0].concat(this)))):new(t.bind.apply(t,ur([void 0],o.concat(this))))},t}(Array),Id=function(e){Ml(t,e);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,t.prototype),a}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},t.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(t.bind.apply(t,ur([void 0],o[0].concat(this)))):new(t.bind.apply(t,ur([void 0],o.concat(this))))},t}(Array);function ca(e){return Be(e)?xo(e,function(){}):e}function _d(e){return typeof e=="boolean"}function Pd(){return function(t){return kd(t)}}function kd(e){e===void 0&&(e={});var t=e.thunk,o=t===void 0?!0:t,n=e.immutableCheck,a=n===void 0?!0:n,i=e.serializableCheck,l=i===void 0?!0:i,c=new Ld;if(o&&(_d(o)?c.push(aa):c.push(aa.withExtraArgument(o.extraArgument))),0){if(a)var u;if(l)var p}return c}var sa=!0;function $l(e){var t=Pd(),o=e||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,l=i===void 0?t():i,c=o.devTools,u=c===void 0?!0:c,p=o.preloadedState,y=p===void 0?void 0:p,h=o.enhancers,g=h===void 0?void 0:h,v;if(typeof a=="function")v=a;else if(Td(a))v=Tl(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var x=l;if(typeof x=="function"&&(x=x(t),!sa&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!sa&&x.some(function(M){return typeof M!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=Ll.apply(void 0,x),T=dr;u&&(T=Nd(ht({trace:!sa},typeof u=="object"&&u)));var N=new Id(O),L=N;Array.isArray(g)?L=ur([O],g):typeof g=="function"&&(L=g(N));var D=T.apply(void 0,L);return na(v,y,D)}function yt(e,t){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(t){var i=t.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return ht(ht({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:n[0]}}return o.toString=function(){return""+e},o.type=e,o.match=function(n){return n.type===e},o}function Ul(e){var t={},o=[],n,a={addCase:function(i,l){var c=typeof i=="string"?i:i.type;if(c in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[c]=l,a},addMatcher:function(i,l){return o.push({matcher:i,reducer:l}),a},addDefaultCase:function(i){return n=i,a}};return e(a),[t,o,n]}function Dd(e){return typeof e=="function"}function Bd(e,t,o,n){o===void 0&&(o=[]);var a=typeof t=="function"?Ul(t):[t,o,n],i=a[0],l=a[1],c=a[2],u;if(Dd(e))u=function(){return ca(e())};else{var p=ca(e);u=function(){return p}}function y(h,g){h===void 0&&(h=u());var v=ur([i[g.type]],l.filter(function(x){var O=x.matcher;return O(g)}).map(function(x){var O=x.reducer;return O}));return v.filter(function(x){return!!x}).length===0&&(v=[c]),v.reduce(function(x,O){if(O)if(ot(x)){var T=x,N=O(T,g);return N===void 0?x:N}else{if(Be(x))return xo(x,function(L){return O(L,g)});var N=O(x,g);if(N===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return N}return x},h)}return y.getInitialState=u,y}function Md(e,t){return e+"/"+t}function Fl(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof e.initialState=="function"?e.initialState:ca(e.initialState),n=e.reducers||{},a=Object.keys(n),i={},l={},c={};a.forEach(function(y){var h=n[y],g=Md(t,y),v,x;"reducer"in h?(v=h.reducer,x=h.prepare):v=h,i[y]=v,l[g]=v,c[y]=x?yt(g,x):yt(g)});function u(){var y=typeof e.extraReducers=="function"?Ul(e.extraReducers):[e.extraReducers],h=y[0],g=h===void 0?{}:h,v=y[1],x=v===void 0?[]:v,O=y[2],T=O===void 0?void 0:O,N=ht(ht({},g),l);return Bd(o,function(L){for(var D in N)L.addCase(D,N[D]);for(var M=0,$=x;M<$.length;M++){var me=$[M];L.addMatcher(me.matcher,me.reducer)}T&&L.addDefaultCase(T)})}var p;return{name:t,reducer:function(y,h){return p||(p=u()),p(y,h)},actions:c,caseReducers:i,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}var $d="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ud=function(e){e===void 0&&(e=21);for(var t="",o=e;o--;)t+=$d[Math.random()*64|0];return t},Fd=["name","message","stack","code"],la=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),Dl=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),Hd=function(e){if(typeof e=="object"&&e!==null){for(var t={},o=0,n=Fd;o<n.length;o++){var a=n[o];typeof e[a]=="string"&&(t[a]=e[a])}return t}return{message:String(e)}},Kx=function(){function e(t,o,n){var a=yt(t+"/fulfilled",function(y,h,g,v){return{payload:y,meta:ia(ht({},v||{}),{arg:g,requestId:h,requestStatus:"fulfilled"})}}),i=yt(t+"/pending",function(y,h,g){return{payload:void 0,meta:ia(ht({},g||{}),{arg:h,requestId:y,requestStatus:"pending"})}}),l=yt(t+"/rejected",function(y,h,g,v,x){return{payload:v,error:(n&&n.serializeError||Hd)(y||"Rejected"),meta:ia(ht({},x||{}),{arg:g,requestId:h,rejectedWithValue:!!v,requestStatus:"rejected",aborted:y?.name==="AbortError",condition:y?.name==="ConditionError"})}}),c=!1,u=typeof AbortController<"u"?AbortController:function(){function y(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return y.prototype.abort=function(){},y}();function p(y){return function(h,g,v){var x=n?.idGenerator?n.idGenerator(y):Ud(),O=new u,T,N=!1;function L(M){T=M,O.abort()}var D=function(){return Rd(this,null,function(){var M,$,me,He,he,We,se;return Sd(this,function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),He=(M=n?.condition)==null?void 0:M.call(n,y,{getState:g,extra:v}),zd(He)?[4,He]:[3,2];case 1:He=m.sent(),m.label=2;case 2:if(He===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return N=!0,he=new Promise(function(b,P){return O.signal.addEventListener("abort",function(){return P({name:"AbortError",message:T||"Aborted"})})}),h(i(x,y,($=n?.getPendingMeta)==null?void 0:$.call(n,{requestId:x,arg:y},{getState:g,extra:v}))),[4,Promise.race([he,Promise.resolve(o(y,{dispatch:h,getState:g,extra:v,requestId:x,signal:O.signal,abort:L,rejectWithValue:function(b,P){return new la(b,P)},fulfillWithValue:function(b,P){return new Dl(b,P)}})).then(function(b){if(b instanceof la)throw b;return b instanceof Dl?a(b.payload,x,y,b.meta):a(b,x,y)})])];case 3:return me=m.sent(),[3,5];case 4:return We=m.sent(),me=We instanceof la?l(null,x,y,We.payload,We.meta):l(We,x,y),[3,5];case 5:return se=n&&!n.dispatchConditionRejection&&l.match(me)&&me.meta.condition,se||h(me),[2,me]}})})}();return Object.assign(D,{abort:L,requestId:x,arg:y,unwrap:function(){return D.then(Wd)}})}}return Object.assign(p,{pending:i,rejected:l,fulfilled:a,typePrefix:t})}return e.withTypes=function(){return e},e}();function Wd(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function zd(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Hl="listener",Wl="completed",zl="cancelled",Vx="task-"+zl,Zx="task-"+Wl,qx=Hl+"-"+zl,Yx=Hl+"-"+Wl;var da="listenerMiddleware";var Xx=yt(da+"/add"),Jx=yt(da+"/removeAll"),Qx=yt(da+"/remove");var Bl,ev=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(Bl||(Bl=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},Gd=function(e){return function(t){setTimeout(t,e)}},tv=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Gd(10);Sl();var jd=co(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(o,n,a){this.eventBus.addEventListener(o,n,a)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,a){this.eventBus.removeEventListener(o,n,a)}}}),So=class extends jd(Object){};window.ftReduxStores||(window.ftReduxStores={});var Gl=class e extends So{static get(t){var o;let n=typeof t=="string"?t:t.name,a=typeof t=="string"?void 0:t,i=window.ftReduxStores[n];if(yo(i))return i;if(a==null)return;let l=Fl({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),c=$l({reducer:(u,p)=>p.type==="CLEAR_FT_REDUX_STORE"?l.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...u,...p.overwrites}:l.reducer(u,p)});return window.ftReduxStores[a.name]=new e(l,c,a.eventBus)}constructor(t,o,n){super(),this.reduxSlice=t,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new uo;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,l,c)=>{let u=l,p=i[u];return p?(...y)=>{let h=p(...y.map(a));return this.reduxStore.dispatch(h),h}:y=>{this.setState({[u]:a(y)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Co=class{static format(t,o,n,a){return window.moment?window.moment(t).locale(o).format(this.getMomentDateFormat(n,a)):this.getIntlDateTime(t,o,n,a)}static getMomentDateFormat(t,o){return t?o?"lll":"ll":o?"L LT":"L"}static getIntlDateTime(t,o,n,a){let i=typeof t=="string"?new Date(t):t,l=new Intl.DateTimeFormat(o,{dateStyle:n?"medium":"short"}).format(i);if(!a)return l;let c=new Intl.DateTimeFormat(o,{timeStyle:"short"}).format(i);return`${l} ${c}`}static getTimezoneAsString(){let t=n=>String(Math.floor(n)).padStart(2,"0"),o=new Date().getTimezoneOffset();return`${o<0?"+":"-"}${t(Math.abs(o)/60)}:${t(Math.abs(o)%60)}`}};var jl=S(k()),Oo=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var c=e.length-1;c>=0;c--)(l=e[c])&&(i=(a<3?l(i):a>3?l(t,o,i):l(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},Av=(0,jl.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(I)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var a,i;return((i=(a=this.metadataDescriptors.find(c=>c.key===n))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1)?c=>Co.format(c,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Oo([(0,ua.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),Oo([(0,ua.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),Oo([Hn({store:I.name,selector:o=>{var n,a;return(a=(n=o.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&a!==void 0?a:[]}})],t.prototype,"metadataDescriptors",void 0),Oo([Hn({store:I.name})],t.prototype,"uiLocale",void 0),t});var wo=S(k());var Eo=class extends Se{constructor(){super(...arguments),this.CACHE_DURATION=3*60*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=I.getState().session;return!!t?.sessionAuthenticated}};var Ao=class extends Se{constructor(){super(...arguments),this.CACHE_DURATION=3*60*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=I.getState().session;return!!t?.sessionAuthenticated}};var Kd="ft-user-assets",Vd={setAssetCount:(e,t)=>{let{userAssetType:o,count:n}=t.payload.assetCount;e.assetCounts.allAsset[o]=n},clearAssetCount:e=>{Object.values(we).forEach(t=>{e.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(e,t)=>{let o=t.payload.mapId;e.assetCounts.bookmarkByMap[o]=t.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}},addAsset:(e,t)=>{let{assetType:o,mapId:n,asset:a}=t.payload;fa(e,o,[...pa(e,o),a]),Kl(e,o,1,n),Vl(e,a)},editAsset:(e,t)=>{let{assetType:o,asset:n}=t.payload;fa(e,o,pa(e,o).map(a=>a.id===n.id?n:a)),Vl(e,n)},removeAsset:(e,t)=>{let{assetType:o,mapId:n,assetId:a}=t.payload;fa(e,o,pa(e,o).filter(i=>i.id!==a)),Kl(e,o,-1,n)}},Zl={[we.SEARCHES]:"savedSearches",[we.BOOKMARKS]:"bookmarks",[we.BOOKS]:void 0,[we.COLLECTIONS]:void 0},pa=(e,t)=>{var o;let n=Zl[t];return n?(o=e[n])!==null&&o!==void 0?o:[]:[]},fa=(e,t,o)=>{let n=Zl[t];n&&(e[n]=o)},Kl=(e,t,o,n)=>{let a=e.assetCounts.allAsset[t];if(a!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,a+o),t===we.BOOKMARKS&&n)){let i=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,i+o)}},Vl=(e,t)=>{let o=e.assetLabels.map(a=>a.title),n=t.labels.filter(a=>!o.includes(a)).map(a=>({title:a}));e.assetLabels.push(...n)},Oe=wo.FtReduxStore.get({name:Kd,reducers:Vd,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(we).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),ha=class{constructor(t=new Eo,o=new Ao){this.assetCountsService=t,this.assetLabelsService=o,this.currentSession=I.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new ro,this.savedSearchesService=new io,I.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:o}=I.getState();(0,wo.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),Oe.actions.clearAssetCount(),Oe.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Oe.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Oe.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();Oe.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();Oe.actions.assetLabels(t)}async loadAssetCount(t){let o=await this.assetCountsService.getUserAssetCount(t);o&&Oe.actions.setAssetCount({assetCount:o})}async loadBookmarkByMapId(t){let o=await this.assetCountsService.getUserBookmarkCountByMap(t);o&&Oe.actions.setBookmarkCountByMap({count:o.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let o=Object.keys(Oe.getState().assetCounts.bookmarkByMap).length!==0;t===we.BOOKMARKS&&o&&Oe.actions.clearBookmarkCountByMap(),Oe.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 o=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Oe.actions.bookmarks(o)}}},Zd=new ha;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Zd);(0,ql.customElement)("ft-app-context")(z);var Yl=S(ce());var ya=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[n,a]=t.split(".");return{context:n,key:a,custom:!0,message:""}}return{message:t}}}toAttribute(t){if(t!=null)return JSON.stringify(t)}isI18nKey(t){return t.match(/^[\w-]+\.[\w-]+$/)}},pr=new ya;var qd=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var c=e.length-1;c>=0;c--)(l=e[c])&&(i=(a<3?l(i):a>3?l(t,o,i):l(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},Mr=Symbol("i18nAttributes"),Xl=Symbol("i18nListAttributes"),Jl=Symbol("i18nProperties"),Ro=Symbol("i18nContexts"),Br=Symbol("i18nUnsubs"),Ql=(0,fr.applyMixinOnce)(Symbol("withI18n"),function(e){var t,o;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[o]=new Map}getI18nService(i){return i??this.useCustomMessageContexts?Bn:Tr}i18n(i){let{context:l,key:c,message:u}=i,{custom:p,args:y,argsProvider:h}=i;if(l&&c){this.hasI18nContext(l)||this.addI18nContext(l,void 0,p);let g=y??(h?h(this):[]);return this.getI18nService(p).resolveMessage(l,c,...g)}return u}async awaitI18n(i){let{context:l,custom:c}=i;return l&&await this.getI18nService(c).prepareContext(l),this.i18n(i)}customI18n(i,l){if(pr.isI18nKey(i)){let[c,u]=i.split(".");return this.i18n({custom:!0,context:c,key:u,...l})||i}return i}firstUpdated(i){super.firstUpdated(i),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(i){super.update(i),this.updateI18nAttributes((l,c,u)=>i.has(c)||typeof l.argsProvider=="function"),this.updateI18nProperties(l=>typeof l.argsProvider=="function")}onI18nUpdate(i){this.updateI18nAttributes((l,c,u)=>{var p;return((p=u?.context)===null||p===void 0?void 0:p.toLowerCase())===i}),this.updateI18nProperties(l=>l.context.toLowerCase()===i),this.requestUpdate()}updateI18nAttributes(i){var l,c;let u=this,p=(y,h,g)=>g?.context&&g.key&&i(y,h,g)?{...g,message:this.i18n({context:g.context,key:g.key,custom:g.custom,...y})}:g;(l=this[Mr])===null||l===void 0||l.forEach((y,h)=>u[h]=p(y,h,u[h])),(c=this[Xl])===null||c===void 0||c.forEach((y,h)=>{var g;return u[h]=(g=u[h])===null||g===void 0?void 0:g.map(v=>p(y,h,v))})}updateI18nProperties(i){var l;(l=this[Jl])===null||l===void 0||l.forEach((c,u)=>{i(c,u)&&(this[u]=this.i18n(c))})}addI18nMessages(i,l,c){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(i,l,c)}addI18nContext(i,l,c){let u=(typeof i=="string"?i:i.name).toLowerCase();c=typeof i=="string"?c:i.custom,this[Ro].set(u,{isCustomContext:c}),this[Br].has(u)||this[Br].set(u,this.getI18nService(c).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(c).prepareContext(u,l)}hasI18nContext(i){return this[Ro].has(i.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Ro].forEach((i,l)=>this.addI18nContext(l,void 0,i.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Br].forEach(i=>i()),this[Br].clear()}}return t=Ro,o=Br,qd([(0,Yl.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),No=class extends Ql(fr.FtLitElement){},To=class extends Ql(fr.FtLitElementRedux){};var ec=S(k());var ma=class{fromAttribute(t){if(!t)return[];try{let o=JSON.parse(t);return Array.isArray(o)?o.map(n=>typeof n=="string"?pr.fromAttribute(n):n):[]}catch{return[]}}toAttribute(t){if(t!=null)return JSON.stringify(t)}},Yd=new ma;var tc=(e,t)=>(o,n)=>{var a;o.constructor.createProperty(n,{type:Object,hasChanged:ec.hasChanged,converter:pr,...t}),o[Mr]=(a=o[Mr])!==null&&a!==void 0?a:new Map,o[Mr].set(n,e??{})};var nc=S(k());var Lo=S(W()),Io=S(ce()),_o=S(k());var rc=S(W());var oc=rc.css`
|
|
551
551
|
`;var $r=function(e,t,o,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,o,n);else for(var c=e.length-1;c>=0;c--)(l=e[c])&&(i=(a<3?l(i):a>3?l(t,o,i):l(t,o))||i);return a>3&&i&&Object.defineProperty(t,o,i),i},Me=class extends To{constructor(){super(),this.editorMode=!1,this.addStore(I)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Lo.nothing:Lo.html`
|