@fluid-topics/ft-reader-topic-content 0.3.22 → 0.3.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- !function(e,t,i,o,s){const n={colorError:t.FtCssVariableFactory.external(t.designSystemVariables.colorError,"Design system"),fontFamily:t.FtCssVariableFactory.external(t.designSystemVariables.contentFont,"Design system")},x=i.css`
1
+ !function(e,t,i,s,o){const x={colorError:t.FtCssVariableFactory.external(t.designSystemVariables.colorError,"Design system"),fontFamily:t.FtCssVariableFactory.external(t.designSystemVariables.contentFont,"Design system")},n=i.css`
2
2
  .topic {
3
- font-family: ${n.fontFamily};
3
+ font-family: ${x.fontFamily};
4
4
  }
5
5
 
6
6
  .topic-on-error {
@@ -8,13 +8,13 @@
8
8
  }
9
9
 
10
10
  .topic-on-error ft-icon {
11
- color: ${n.colorError}
11
+ color: ${x.colorError}
12
12
  }
13
13
 
14
14
  .topic-loading {
15
15
  height: 100vh;
16
16
  }
17
- `;var a=function(e,t,i,o){for(var s,n=arguments.length,x=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o,a=e.length-1;a>=0;a--)(s=e[a])&&(x=(n<3?s(x):n>3?s(t,i,x):s(t,i))||x);return n>3&&x&&Object.defineProperty(t,i,x),x};class l extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const r=function(e){class t extends e{setReaderStateManager(e){this.stateManager=e,this.store=e.store}get service(){var e;return null===(e=this.stateManager)||void 0===e?void 0:e.service}connectedCallback(){super.connectedCallback(),setTimeout((()=>this.dispatchEvent(new l)),10)}disconnectedCallback(){super.disconnectedCallback(),this.store=void 0,this.stateManager=void 0}}return a([o.state()],t.prototype,"stateManager",void 0),t}(t.FtLitElementRedux);var c=function(e,t,i,o){for(var s,n=arguments.length,x=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o,a=e.length-1;a>=0;a--)(s=e[a])&&(x=(n<3?s(x):n>3?s(t,i,x):s(t,i))||x);return n>3&&x&&Object.defineProperty(t,i,x),x};class d extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const p=function(e){class t extends e{connectedCallback(){super.connectedCallback(),setTimeout((()=>this.dispatchEvent(new d)),10)}}return c([o.state()],t.prototype,"tocNode",void 0),t}(r);var f,v;!function(e){e.THIN_ARROW_LEFT="&#xe956;",e.THIN_ARROW_RIGHT="&#xe957;",e.MY_COLLECTIONS="&#xe955;",e.OFFLINE_SETTINGS="&#xe954;",e.MY_LIBRARY="&#xe959;",e.RATE_PLAIN="&#xe952;",e.RATE="&#xe953;",e.FEEDBACK_PLAIN="&#xe951;",e.STAR_PLAIN="&#xe94b;",e.STAR="&#xe94c;",e.THUMBS_DOWN_PLAIN="&#xe94d;",e.THUMBS_DOWN="&#xe94e;",e.THUMBS_UP_PLAIN="&#xe94f;",e.THUMBS_UP="&#xe950;",e.PAUSE="&#xe949;",e.PLAY="&#xe94a;",e.RELATIVES_PLAIN="&#xe947;",e.RELATIVES="&#xe948;",e.SHORTCUT_MENU="&#xe946;",e.PRINT="&#xe944;",e.DEFAULT_ROLES="&#xe945;",e.ACCOUNT_SETTINGS="&#xe943;",e.ONLINE="&#xe941;",e.OFFLINE="&#xe816;",e.UPLOAD="&#xe940;",e.BOOK_PLAIN="&#xe93f;",e.SYNC="&#xe93d;",e.SHARED_PBK="&#xe931;",e.COLLECTIONS="&#xe92a;",e.SEARCH_IN_PUBLICATION="&#xe92f;",e.BOOKS="&#xe806;",e.LOCKER="&#xe93b;",e.ARROW_DOWN="&#xe92b;",e.ARROW_LEFT="&#xe92c;",e.ARROW_RIGHT="&#xe92d;",e.ARROW_UP="&#xe92e;",e.SAVE="&#xe93a;",e.MAILS_AND_NOTIFICATIONS="&#xe939;",e.DOT="&#xe936;",e.MINUS="&#xe937;",e.PLUS="&#xe938;",e.FILTERS="&#xe935;",e.STRIPE_ARROW_RIGHT="&#xe934;",e.STRIPE_ARROW_LEFT="&#xe933;",e.ATTACHMENTS="&#xe932;",e.ADD_BOOKMARK="&#xe804;",e.BOOKMARK="&#xe805;",e.EXPORT="&#xe80f;",e.MENU="&#xe807;",e.TAG="&#xe93e;",e.TAG_PLAIN="&#xe942;",e.COPY_TO_CLIPBOARD="&#xe930;",e.COLUMNS="&#xe928;",e.ARTICLE="&#xe927;",e.CLOSE_PLAIN="&#xe925;",e.CHECK_PLAIN="&#xe926;",e.LOGOUT="&#xe923;",e.SIGN_IN="&#xe922;",e.THIN_ARROW="&#xe921;",e.TRIANGLE_BOTTOM="&#xe91d;",e.TRIANGLE_LEFT="&#xe91e;",e.TRIANGLE_RIGHT="&#xe91f;",e.TRIANGLE_TOP="&#xe920;",e.FACET_HAS_DESCENDANT="&#xe91c;",e.MINUS_PLAIN="&#xe91a;",e.PLUS_PLAIN="&#xe91b;",e.INFO="&#xe919;",e.ICON_EXPAND="&#xe917;",e.ICON_COLLAPSE="&#xe918;",e.ADD_TO_PBK="&#xe800;",e.ALERT="&#xe801;",e.ADD_ALERT="&#xe802;",e.BACK_TO_SEARCH="&#xe803;",e.DOWNLOAD="&#xe808;",e.EDIT="&#xe809;",e.FEEDBACK="&#xe80a;",e.MODIFY_PBK="&#xe80c;",e.SCHEDULED="&#xe80d;",e.SEARCH="&#xe80e;",e.SHARE="&#xe80f1;",e.TOC="&#xe810;",e.WRITE_UGC="&#xe811;",e.TRASH="&#xe812;",e.EXTLINK="&#xe814;",e.CALENDAR="&#xe815;",e.BOOK="&#xe817;",e.DOWNLOAD_PLAIN="&#xe818;",e.CHECK="&#xe819;",e.TOPICS="&#xe900;",e.EYE="\f06e",e.DISC="&#xe901;",e.CIRCLE="&#xe903;",e.SHARED="&#xe904;",e.SORT_UNSORTED="&#xe905;",e.SORT_UP="&#xe906;",e.SORT_DOWN="&#xe907;",e.WORKING="&#xe908;",e.CLOSE="&#xe909;",e.ZOOM_OUT="&#xe90a;",e.ZOOM_IN="&#xe90b;",e.ZOOM_REALSIZE="&#xe90c;",e.ZOOM_FULLSCREEN="&#xe90d;",e.ADMIN_RESTRICTED="&#xe90e;",e.ADMIN_THEME="&#xe911;",e.WARNING="&#xe913;",e.CONTEXT="&#xe914;",e.SEARCH_HOME="&#xe915;",e.STEPS="&#xe916;",e.HOME="&#xe80b;",e.TRANSLATE="&#xe924;",e.USER="&#xe813;",e.ADMIN="&#xe902;",e.ANALYTICS="&#xe929;",e.ADMIN_KHUB="&#xe90f;",e.ADMIN_USERS="&#xe910;",e.ADMIN_INTEGRATION="&#xe93c;",e.ADMIN_PORTAL="&#xe912;"}(f||(f={})),function(e){e.UNKNOWN="&#xe90a;",e.ABW="&#xe900;",e.AUDIO="&#xe901;",e.AVI="&#xe902;",e.CHM="&#xe904;",e.CODE="&#xe905;",e.CSV="&#xe903;",e.DITA="&#xe906;",e.EPUB="&#xe907;",e.EXCEL="&#xe908;",e.FLAC="&#xe909;",e.GIF="&#xe90b;",e.GZIP="&#xe90c;",e.HTML="&#xe90d;",e.IMAGE="&#xe90e;",e.JPEG="&#xe90f;",e.JSON="&#xe910;",e.M4A="&#xe911;",e.MOV="&#xe912;",e.MP3="&#xe913;",e.MP4="&#xe914;",e.OGG="&#xe915;",e.PDF="&#xe916;",e.PNG="&#xe917;",e.POWERPOINT="&#xe918;",e.RAR="&#xe91a;",e.STP="&#xe91b;",e.TEXT="&#xe91c;",e.VIDEO="&#xe91e;",e.WAV="&#xe91f;",e.WMA="&#xe920;",e.WORD="&#xe921;",e.XML="&#xe922;",e.YAML="&#xe919;",e.ZIP="&#xe923;"}(v||(v={})),new Map([...["abw"].map((e=>[e,v.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,v.AUDIO])),...["avi"].map((e=>[e,v.AVI])),...["chm","xhs"].map((e=>[e,v.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,v.CODE])),...["csv"].map((e=>[e,v.CSV])),...["dita","ditamap","ditaval"].map((e=>[e,v.DITA])),...["epub"].map((e=>[e,v.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((e=>[e,v.EXCEL])),...["flac"].map((e=>[e,v.FLAC])),...["gif"].map((e=>[e,v.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((e=>[e,v.GZIP])),...["html","htm","xhtml"].map((e=>[e,v.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((e=>[e,v.IMAGE])),...["jpeg","jpg","jpe"].map((e=>[e,v.JPEG])),...["json"].map((e=>[e,v.JSON])),...["m4a","m4p"].map((e=>[e,v.M4A])),...["mov","qt"].map((e=>[e,v.MOV])),...["mp3"].map((e=>[e,v.MP3])),...["mp4","m4v"].map((e=>[e,v.MP4])),...["ogg","oga"].map((e=>[e,v.OGG])),...["pdf","ps"].map((e=>[e,v.PDF])),...["png"].map((e=>[e,v.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((e=>[e,v.POWERPOINT])),...["rar"].map((e=>[e,v.RAR])),...["stp"].map((e=>[e,v.STP])),...["txt","rtf","md","mdown"].map((e=>[e,v.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,v.VIDEO])),...["wav"].map((e=>[e,v.WAV])),...["wma"].map((e=>[e,v.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((e=>[e,v.WORD])),...["xml","xsl","rdf"].map((e=>[e,v.XML])),...["yaml","yml","x-yaml"].map((e=>[e,v.YAML])),...["zip"].map((e=>[e,v.ZIP]))]);const m=t.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),h=t.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",t.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),u=t.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",t.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),b=t.FtCssVariableFactory.extend("--ft-icon-material-font-family",t.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),g=t.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset"),y=i.css`
17
+ `;var a=function(e,t,i,s){for(var o,x=arguments.length,n=x<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s,a=e.length-1;a>=0;a--)(o=e[a])&&(n=(x<3?o(n):x>3?o(t,i,n):o(t,i))||n);return x>3&&n&&Object.defineProperty(t,i,n),n};class l extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class r extends(function(e){class t extends e{setReaderStateManager(e){this.stateManager=e,this.store=e.store}get service(){var e;return null===(e=this.stateManager)||void 0===e?void 0:e.service}connectedCallback(){super.connectedCallback(),setTimeout((()=>this.dispatchEvent(new l)),10)}disconnectedCallback(){super.disconnectedCallback(),this.store=void 0,this.stateManager=void 0}}return a([s.state()],t.prototype,"stateManager",void 0),t}(t.FtLitElementRedux)){}var c,d,p=function(e,t,i,s){for(var o,x=arguments.length,n=x<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s,a=e.length-1;a>=0;a--)(o=e[a])&&(n=(x<3?o(n):x>3?o(t,i,n):o(t,i))||n);return x>3&&n&&Object.defineProperty(t,i,n),n};class f extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}class v extends(function(e){class t extends e{connectedCallback(){super.connectedCallback(),setTimeout((()=>this.dispatchEvent(new f)),10)}}return p([s.state()],t.prototype,"tocNode",void 0),t}(r)){}!function(e){e.THIN_ARROW_LEFT="&#xe956;",e.THIN_ARROW_RIGHT="&#xe957;",e.MY_COLLECTIONS="&#xe955;",e.OFFLINE_SETTINGS="&#xe954;",e.MY_LIBRARY="&#xe959;",e.RATE_PLAIN="&#xe952;",e.RATE="&#xe953;",e.FEEDBACK_PLAIN="&#xe951;",e.STAR_PLAIN="&#xe94b;",e.STAR="&#xe94c;",e.THUMBS_DOWN_PLAIN="&#xe94d;",e.THUMBS_DOWN="&#xe94e;",e.THUMBS_UP_PLAIN="&#xe94f;",e.THUMBS_UP="&#xe950;",e.PAUSE="&#xe949;",e.PLAY="&#xe94a;",e.RELATIVES_PLAIN="&#xe947;",e.RELATIVES="&#xe948;",e.SHORTCUT_MENU="&#xe946;",e.PRINT="&#xe944;",e.DEFAULT_ROLES="&#xe945;",e.ACCOUNT_SETTINGS="&#xe943;",e.ONLINE="&#xe941;",e.OFFLINE="&#xe816;",e.UPLOAD="&#xe940;",e.BOOK_PLAIN="&#xe93f;",e.SYNC="&#xe93d;",e.SHARED_PBK="&#xe931;",e.COLLECTIONS="&#xe92a;",e.SEARCH_IN_PUBLICATION="&#xe92f;",e.BOOKS="&#xe806;",e.LOCKER="&#xe93b;",e.ARROW_DOWN="&#xe92b;",e.ARROW_LEFT="&#xe92c;",e.ARROW_RIGHT="&#xe92d;",e.ARROW_UP="&#xe92e;",e.SAVE="&#xe93a;",e.MAILS_AND_NOTIFICATIONS="&#xe939;",e.DOT="&#xe936;",e.MINUS="&#xe937;",e.PLUS="&#xe938;",e.FILTERS="&#xe935;",e.STRIPE_ARROW_RIGHT="&#xe934;",e.STRIPE_ARROW_LEFT="&#xe933;",e.ATTACHMENTS="&#xe932;",e.ADD_BOOKMARK="&#xe804;",e.BOOKMARK="&#xe805;",e.EXPORT="&#xe80f;",e.MENU="&#xe807;",e.TAG="&#xe93e;",e.TAG_PLAIN="&#xe942;",e.COPY_TO_CLIPBOARD="&#xe930;",e.COLUMNS="&#xe928;",e.ARTICLE="&#xe927;",e.CLOSE_PLAIN="&#xe925;",e.CHECK_PLAIN="&#xe926;",e.LOGOUT="&#xe923;",e.SIGN_IN="&#xe922;",e.THIN_ARROW="&#xe921;",e.TRIANGLE_BOTTOM="&#xe91d;",e.TRIANGLE_LEFT="&#xe91e;",e.TRIANGLE_RIGHT="&#xe91f;",e.TRIANGLE_TOP="&#xe920;",e.FACET_HAS_DESCENDANT="&#xe91c;",e.MINUS_PLAIN="&#xe91a;",e.PLUS_PLAIN="&#xe91b;",e.INFO="&#xe919;",e.ICON_EXPAND="&#xe917;",e.ICON_COLLAPSE="&#xe918;",e.ADD_TO_PBK="&#xe800;",e.ALERT="&#xe801;",e.ADD_ALERT="&#xe802;",e.BACK_TO_SEARCH="&#xe803;",e.DOWNLOAD="&#xe808;",e.EDIT="&#xe809;",e.FEEDBACK="&#xe80a;",e.MODIFY_PBK="&#xe80c;",e.SCHEDULED="&#xe80d;",e.SEARCH="&#xe80e;",e.SHARE="&#xe80f1;",e.TOC="&#xe810;",e.WRITE_UGC="&#xe811;",e.TRASH="&#xe812;",e.EXTLINK="&#xe814;",e.CALENDAR="&#xe815;",e.BOOK="&#xe817;",e.DOWNLOAD_PLAIN="&#xe818;",e.CHECK="&#xe819;",e.TOPICS="&#xe900;",e.EYE="\f06e",e.DISC="&#xe901;",e.CIRCLE="&#xe903;",e.SHARED="&#xe904;",e.SORT_UNSORTED="&#xe905;",e.SORT_UP="&#xe906;",e.SORT_DOWN="&#xe907;",e.WORKING="&#xe908;",e.CLOSE="&#xe909;",e.ZOOM_OUT="&#xe90a;",e.ZOOM_IN="&#xe90b;",e.ZOOM_REALSIZE="&#xe90c;",e.ZOOM_FULLSCREEN="&#xe90d;",e.ADMIN_RESTRICTED="&#xe90e;",e.ADMIN_THEME="&#xe911;",e.WARNING="&#xe913;",e.CONTEXT="&#xe914;",e.SEARCH_HOME="&#xe915;",e.STEPS="&#xe916;",e.HOME="&#xe80b;",e.TRANSLATE="&#xe924;",e.USER="&#xe813;",e.ADMIN="&#xe902;",e.ANALYTICS="&#xe929;",e.ADMIN_KHUB="&#xe90f;",e.ADMIN_USERS="&#xe910;",e.ADMIN_INTEGRATION="&#xe93c;",e.ADMIN_PORTAL="&#xe912;"}(c||(c={})),function(e){e.UNKNOWN="&#xe90a;",e.ABW="&#xe900;",e.AUDIO="&#xe901;",e.AVI="&#xe902;",e.CHM="&#xe904;",e.CODE="&#xe905;",e.CSV="&#xe903;",e.DITA="&#xe906;",e.EPUB="&#xe907;",e.EXCEL="&#xe908;",e.FLAC="&#xe909;",e.GIF="&#xe90b;",e.GZIP="&#xe90c;",e.HTML="&#xe90d;",e.IMAGE="&#xe90e;",e.JPEG="&#xe90f;",e.JSON="&#xe910;",e.M4A="&#xe911;",e.MOV="&#xe912;",e.MP3="&#xe913;",e.MP4="&#xe914;",e.OGG="&#xe915;",e.PDF="&#xe916;",e.PNG="&#xe917;",e.POWERPOINT="&#xe918;",e.RAR="&#xe91a;",e.STP="&#xe91b;",e.TEXT="&#xe91c;",e.VIDEO="&#xe91e;",e.WAV="&#xe91f;",e.WMA="&#xe920;",e.WORD="&#xe921;",e.XML="&#xe922;",e.YAML="&#xe919;",e.ZIP="&#xe923;"}(d||(d={})),new Map([...["abw"].map((e=>[e,d.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((e=>[e,d.AUDIO])),...["avi"].map((e=>[e,d.AVI])),...["chm","xhs"].map((e=>[e,d.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((e=>[e,d.CODE])),...["csv"].map((e=>[e,d.CSV])),...["dita","ditamap","ditaval"].map((e=>[e,d.DITA])),...["epub"].map((e=>[e,d.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((e=>[e,d.EXCEL])),...["flac"].map((e=>[e,d.FLAC])),...["gif"].map((e=>[e,d.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((e=>[e,d.GZIP])),...["html","htm","xhtml"].map((e=>[e,d.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((e=>[e,d.IMAGE])),...["jpeg","jpg","jpe"].map((e=>[e,d.JPEG])),...["json"].map((e=>[e,d.JSON])),...["m4a","m4p"].map((e=>[e,d.M4A])),...["mov","qt"].map((e=>[e,d.MOV])),...["mp3"].map((e=>[e,d.MP3])),...["mp4","m4v"].map((e=>[e,d.MP4])),...["ogg","oga"].map((e=>[e,d.OGG])),...["pdf","ps"].map((e=>[e,d.PDF])),...["png"].map((e=>[e,d.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((e=>[e,d.POWERPOINT])),...["rar"].map((e=>[e,d.RAR])),...["stp"].map((e=>[e,d.STP])),...["txt","rtf","md","mdown"].map((e=>[e,d.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((e=>[e,d.VIDEO])),...["wav"].map((e=>[e,d.WAV])),...["wma"].map((e=>[e,d.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((e=>[e,d.WORD])),...["xml","xsl","rdf"].map((e=>[e,d.XML])),...["yaml","yml","x-yaml"].map((e=>[e,d.YAML])),...["zip"].map((e=>[e,d.ZIP]))]);const m=t.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),h=t.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",t.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),u=t.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",t.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),b=t.FtCssVariableFactory.extend("--ft-icon-material-font-family",t.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),g=t.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset"),y=i.css`
18
18
  :host {
19
19
  display: inline-block;
20
20
  }
@@ -51,12 +51,12 @@
51
51
  .ft-icon--material {
52
52
  font-family: ${b}, "Material Icons", sans-serif;
53
53
  }
54
- `;var $;!function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"}($||($={}));var w=function(e,t,i,o){for(var s,n=arguments.length,x=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o,a=e.length-1;a>=0;a--)(s=e[a])&&(x=(n<3?s(x):n>3?s(t,i,x):s(t,i))||x);return n>3&&x&&Object.defineProperty(t,i,x),x};class j extends t.FtLitElement{constructor(){super(...arguments),this.variant=$.fluid_topics,this.resolvedIcon=i.nothing}render(){const e="material"!==this.variant||this.value;return i.html`
54
+ `;var $;!function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"}($||($={}));var w=function(e,t,i,s){for(var o,x=arguments.length,n=x<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s,a=e.length-1;a>=0;a--)(o=e[a])&&(n=(x<3?o(n):x>3?o(t,i,n):o(t,i))||n);return x>3&&n&&Object.defineProperty(t,i,n),n};class j extends t.FtLitElement{constructor(){super(...arguments),this.variant=$.fluid_topics,this.resolvedIcon=i.nothing}render(){const e="material"!==this.variant||this.value;return i.html`
55
55
  <i class="ft-icon ${"ft-icon--"+this.variant}">
56
- ${s.unsafeHTML(this.resolvedIcon)}
56
+ ${o.unsafeHTML(this.resolvedIcon)}
57
57
  <slot ?hidden=${e}></slot>
58
58
  </i>
59
- `}get textContent(){var e,t;return null!==(t=null===(e=this.slottedContent)||void 0===e?void 0:e.assignedNodes().map((e=>e.textContent)).join("").trim())&&void 0!==t?t:""}update(e){super.update(e),["value","variant"].some((t=>e.has(t)))&&this.resolveIcon()}resolveIcon(){var e,t;let o=this.value||this.textContent;switch(this.variant){case $.file_format:this.resolvedIcon=null!==(e=v[o.toUpperCase()])&&void 0!==e?e:o;break;case $.fluid_topics:this.resolvedIcon=null!==(t=f[o.toUpperCase()])&&void 0!==t?t:o;break;default:this.resolvedIcon=this.value||i.nothing}}firstUpdated(e){super.firstUpdated(e),setTimeout((()=>{this.resolveIcon()}))}}j.elementDefinitions={},j.styles=y,w([o.property()],j.prototype,"variant",void 0),w([o.property()],j.prototype,"value",void 0),w([o.state()],j.prototype,"resolvedIcon",void 0),w([o.query("slot")],j.prototype,"slottedContent",void 0),t.customElement("ft-icon")(j);var N=function(e,t,i,o){for(var s,n=arguments.length,x=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o,a=e.length-1;a>=0;a--)(s=e[a])&&(x=(n<3?s(x):n>3?s(t,i,x):s(t,i))||x);return n>3&&x&&Object.defineProperty(t,i,x),x};class k extends p{render(){var e;return this.map&&(this.error||this.content)?i.html`
59
+ `}get textContent(){var e,t;return null!==(t=null===(e=this.slottedContent)||void 0===e?void 0:e.assignedNodes().map((e=>e.textContent)).join("").trim())&&void 0!==t?t:""}update(e){super.update(e),["value","variant"].some((t=>e.has(t)))&&this.resolveIcon()}resolveIcon(){var e,t;let s=this.value||this.textContent;switch(this.variant){case $.file_format:this.resolvedIcon=null!==(e=d[s.toUpperCase()])&&void 0!==e?e:s;break;case $.fluid_topics:this.resolvedIcon=null!==(t=c[s.toUpperCase()])&&void 0!==t?t:s;break;default:this.resolvedIcon=this.value||i.nothing}}firstUpdated(e){super.firstUpdated(e),setTimeout((()=>{this.resolveIcon()}))}}j.elementDefinitions={},j.styles=y,w([s.property()],j.prototype,"variant",void 0),w([s.property()],j.prototype,"value",void 0),w([s.state()],j.prototype,"resolvedIcon",void 0),w([s.query("slot")],j.prototype,"slottedContent",void 0),t.customElement("ft-icon")(j);var N=function(e,t,i,s){for(var o,x=arguments.length,n=x<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s,a=e.length-1;a>=0;a--)(o=e[a])&&(n=(x<3?o(n):x>3?o(t,i,n):o(t,i))||n);return x>3&&n&&Object.defineProperty(t,i,n),n};class k extends v{render(){var e;return this.map&&(this.error||this.content)?i.html`
60
60
  <style>
61
61
  @import "${null===(e=this.map)||void 0===e?void 0:e.contentStyles.topicStylesheetUrl}";
62
62
  </style>
@@ -65,13 +65,13 @@
65
65
  </section>
66
66
  `:i.html`
67
67
  <section class="topic-loading"></section>
68
- `}updated(e){super.updated(e),e.has("tocNode")&&this.updateContent()}updateContent(){var e;this.error=void 0,this.content=void 0,this.tocNode&&(null===(e=this.service)||void 0===e||e.getTopicContent(this.tocNode.contentId).then((e=>this.content=e||'<div class="empty-topic"></div>')).catch((e=>this.error=e)))}contentAvailableCallback(e){var t,i,o,s,n,x;if(super.contentAvailableCallback(e),(null===(t=this.scrollTarget)||void 0===t?void 0:t.section)&&(null===(i=this.tocNode)||void 0===i?void 0:i.tocId)&&(null===(o=this.tocNode)||void 0===o?void 0:o.tocId)===this.scrollTarget.tocId&&this.content){(null!==(n=null===(s=this.shadowRoot)||void 0===s?void 0:s.querySelector(`[id="${this.scrollTarget.section}"], [name="${this.scrollTarget.section}"]`))&&void 0!==n?n:this).scrollIntoView({block:"start"}),null===(x=this.stateManager)||void 0===x||x.scrollDone()}}onStoreAvailable(){super.onStoreAvailable(),this.updateContent()}renderTopicContent(){var e,t,o,n;if(this.error){let t=this.is404Error()?"topicMissingAdvice":"somethingWentWrong";return i.html`
68
+ `}updated(e){super.updated(e),e.has("tocNode")&&this.updateContent()}updateContent(){var e;this.error=void 0,this.content=void 0,this.tocNode&&(null===(e=this.service)||void 0===e||e.getTopicContent(this.tocNode.contentId).then((e=>this.content=e||'<div class="empty-topic"></div>')).catch((e=>this.error=e)))}contentAvailableCallback(e){var t,i,s,o,x,n;if(super.contentAvailableCallback(e),(null===(t=this.scrollTarget)||void 0===t?void 0:t.section)&&(null===(i=this.tocNode)||void 0===i?void 0:i.tocId)&&(null===(s=this.tocNode)||void 0===s?void 0:s.tocId)===this.scrollTarget.tocId&&this.content){(null!==(x=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelector(`[id="${this.scrollTarget.section}"], [name="${this.scrollTarget.section}"]`))&&void 0!==x?x:this).scrollIntoView({block:"start"}),null===(n=this.stateManager)||void 0===n||n.scrollDone()}}onStoreAvailable(){super.onStoreAvailable(),this.updateContent()}renderTopicContent(){var e,t,s,x;if(this.error){let t=this.is404Error()?"topicMissingAdvice":"somethingWentWrong";return i.html`
69
69
  <div class="topic-on-error">
70
70
  <ft-icon>WARNING</ft-icon>
71
71
  <div>${null===(e=this.service)||void 0===e?void 0:e.resolveLabel(t)}</div>
72
72
  </div>
73
- `}const x=null!==(o=null===(t=this.map)||void 0===t?void 0:t.contentStyles.customCssClasses.join(" "))&&void 0!==o?o:"";return i.html`
74
- <div class="depth-${null===(n=this.tocNode)||void 0===n?void 0:n.depth} content-locale-${this.contentLocale} ${x}">
75
- ${s.unsafeHTML(`${this.content}`)}
73
+ `}const n=null!==(s=null===(t=this.map)||void 0===t?void 0:t.contentStyles.customCssClasses.join(" "))&&void 0!==s?s:"";return i.html`
74
+ <div class="depth-${null===(x=this.tocNode)||void 0===x?void 0:x.depth} content-locale-${this.contentLocale} ${n}">
75
+ ${o.unsafeHTML(`${this.content}`)}
76
76
  </div>
77
- `}is404Error(){return 404===this.error.status}}k.styles=x,N([t.redux((e=>{var t;return null===(t=e.map)||void 0===t?void 0:t.lang}))],k.prototype,"contentLocale",void 0),N([t.redux()],k.prototype,"map",void 0),N([t.redux()],k.prototype,"scrollTarget",void 0),N([o.state()],k.prototype,"content",void 0),N([o.state()],k.prototype,"error",void 0),t.customElement("ft-reader-topic-content")(k),e.FtReaderTopicContent=k,e.FtReaderTopicContentCssVariables=n,e.styles=x,Object.defineProperty(e,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litUnsafeHTML);
77
+ `}is404Error(){return 404===this.error.status}}k.styles=n,N([t.redux((e=>{var t;return null===(t=e.map)||void 0===t?void 0:t.lang}))],k.prototype,"contentLocale",void 0),N([t.redux()],k.prototype,"map",void 0),N([t.redux()],k.prototype,"scrollTarget",void 0),N([s.state()],k.prototype,"content",void 0),N([s.state()],k.prototype,"error",void 0),t.customElement("ft-reader-topic-content")(k),e.FtReaderTopicContent=k,e.FtReaderTopicContentCssVariables=x,e.styles=n,Object.defineProperty(e,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litUnsafeHTML);
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
16
16
  */
17
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,s=window.customElements,o=new WeakMap,n=new WeakMap,r=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,o){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(o))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=o.prototype.attributeChangedCallback,l=new Set(o.observedAttributes||[]);d(o,l,a);const c={elementClass:o,connectedCallback:o.prototype.connectedCallback,disconnectedCallback:o.prototype.disconnectedCallback,adoptedCallback:o.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:o.formAssociated,formAssociatedCallback:o.prototype.formAssociatedCallback,formDisabledCallback:o.prototype.formDisabledCallback,formResetCallback:o.prototype.formResetCallback,formStateRestoreCallback:o.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(o,c);let h=i.call(s,t);h||(h=u(t),e.call(s,t,h)),this===window.customElements&&(r.set(o,c),c.standInClass=h);const p=this._awaitingUpgrade.get(t);if(p){this._awaitingUpgrade.delete(t);for(const t of p)n.delete(t),f(t,c,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(o),this._whenDefinedPromises.delete(t)),o}upgrade(){x.push(this),s.upgrade.apply(s,arguments),x.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let s=this._awaitingUpgrade.get(e);s||this._awaitingUpgrade.set(e,s=new Set),i?s.add(t):s.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=r.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),o.set(e,i),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,h=t=>{let e=t.getRootNode();if(!c(e)){const t=x[x.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},u=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const s=h(i)||window.customElements,o=s._getDefinition(e);return o?f(i,o):n.set(i,s),i}connectedCallback(){const t=o.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=o.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){o.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=o.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=o.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=o.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=o.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},d=(t,e,i)=>{if(0===e.size||void 0===i)return;const s=t.prototype.setAttribute;s&&(t.prototype.setAttribute=function(t,o){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);s.call(this,n,o),i.call(this,n,t,o)}else s.call(this,n,o)});const o=t.prototype.removeAttribute;o&&(t.prototype.removeAttribute=function(t){const s=t.toLowerCase();if(e.has(s)){const t=this.getAttribute(s);o.call(this,s),i.call(this,s,t,null)}else o.call(this,s)})},p=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):p(i)},f=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),o.set(t,e),l=t;try{new e.elementClass}catch(t){p(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let x=[document];const m=(t,e,i)=>{const s=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){x.push(this);const t=s.apply(i||this,arguments);return void 0!==t&&a.set(t,this),x.pop(),t}};m(ShadowRoot,"createElement",document),m(ShadowRoot,"importNode",document),m(Element,"insertAdjacentHTML");const b=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){x.push(this),i.set.call(this,t),x.pop()}})};if(b(Element,"innerHTML"),b(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const s=e.call(this,...i);return t.set(s,this),s},i.forEach((e=>{const i=window.ElementInternals.prototype,s=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==o.get(i).formAssociated)throw new DOMException(`Failed to execute ${s} on 'ElementInternals': The target element is not a form-associated custom element.`);s?.call(this,...e)}}));class s extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,i)=>{const s=t.getAttribute("name"),o=e.get(s)||[];this[+i]=t,o.push(t),e.set(s,o)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new s(t))}))}namedItem(t){return this[t]}}const r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),e=[];for(const i of t){const t=o.get(i);t&&!0!==t.formAssociated||e.push(i)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(Rt){const t=window.customElements.define;window.customElements.define=(e,i,s)=>{try{t.bind(window.customElements)(e,i,s)}catch(t){console.info(e,i,s,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){this.callbacks=[t],this.debounce(e)}queue(t,e){this.callbacks.push(t),this.debounce(e)}cancel(){null!=this._debounce&&window.clearTimeout(this._debounce)}debounce(t){this.cancel(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout)}runCallbacks(){for(let t of this.callbacks)t();this.callbacks=[]}}
17
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,s=window.customElements,o=new WeakMap,n=new WeakMap,r=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,o){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(o))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=o.prototype.attributeChangedCallback,l=new Set(o.observedAttributes||[]);d(o,l,a);const c={elementClass:o,connectedCallback:o.prototype.connectedCallback,disconnectedCallback:o.prototype.disconnectedCallback,adoptedCallback:o.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:o.formAssociated,formAssociatedCallback:o.prototype.formAssociatedCallback,formDisabledCallback:o.prototype.formDisabledCallback,formResetCallback:o.prototype.formResetCallback,formStateRestoreCallback:o.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(o,c);let h=i.call(s,t);h||(h=u(t),e.call(s,t,h)),this===window.customElements&&(r.set(o,c),c.standInClass=h);const p=this._awaitingUpgrade.get(t);if(p){this._awaitingUpgrade.delete(t);for(const t of p)n.delete(t),f(t,c,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(o),this._whenDefinedPromises.delete(t)),o}upgrade(){x.push(this),s.upgrade.apply(s,arguments),x.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let s=this._awaitingUpgrade.get(e);s||this._awaitingUpgrade.set(e,s=new Set),i?s.add(t):s.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=r.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),o.set(e,i),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,h=t=>{let e=t.getRootNode();if(!c(e)){const t=x[x.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},u=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const s=h(i)||window.customElements,o=s._getDefinition(e);return o?f(i,o):n.set(i,s),i}connectedCallback(){const t=o.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=o.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){o.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=o.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=o.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=o.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=o.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},d=(t,e,i)=>{if(0===e.size||void 0===i)return;const s=t.prototype.setAttribute;s&&(t.prototype.setAttribute=function(t,o){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);s.call(this,n,o),i.call(this,n,t,o)}else s.call(this,n,o)});const o=t.prototype.removeAttribute;o&&(t.prototype.removeAttribute=function(t){const s=t.toLowerCase();if(e.has(s)){const t=this.getAttribute(s);o.call(this,s),i.call(this,s,t,null)}else o.call(this,s)})},p=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):p(i)},f=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),o.set(t,e),l=t;try{new e.elementClass}catch(t){p(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let x=[document];const m=(t,e,i)=>{const s=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){x.push(this);const t=s.apply(i||this,arguments);return void 0!==t&&a.set(t,this),x.pop(),t}};m(ShadowRoot,"createElement",document),m(ShadowRoot,"importNode",document),m(Element,"insertAdjacentHTML");const b=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){x.push(this),i.set.call(this,t),x.pop()}})};if(b(Element,"innerHTML"),b(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const s=e.call(this,...i);return t.set(s,this),s},i.forEach((e=>{const i=window.ElementInternals.prototype,s=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==o.get(i).formAssociated)throw new DOMException(`Failed to execute ${s} on 'ElementInternals': The target element is not a form-associated custom element.`);s?.call(this,...e)}}));class s extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,i)=>{const s=t.getAttribute("name"),o=e.get(s)||[];this[+i]=t,o.push(t),e.set(s,o)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new s(t))}))}namedItem(t){return this[t]}}const r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),e=[];for(const i of t){const t=o.get(i);t&&!0!==t.formAssociated||e.push(i)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(Mt){const t=window.customElements.define;window.customElements.define=(e,i,s)=>{try{t.bind(window.customElements)(e,i,s)}catch(t){console.info(e,i,s,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){this.callbacks=[t],this.debounce(e)}queue(t,e){this.callbacks.push(t),this.debounce(e)}cancel(){null!=this._debounce&&window.clearTimeout(this._debounce)}debounce(t){this.cancel(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout)}runCallbacks(){for(let t of this.callbacks)t();this.callbacks=[]}}
18
18
  /**
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
@@ -88,9 +88,9 @@ var at,lt;class ct extends C{constructor(){super(...arguments),this.renderOption
88
88
  -webkit-hyphens: auto;
89
89
  hyphens: auto
90
90
  }
91
- `;const vt=(t,e)=>(i,s)=>{i.constructor.createProperty(s,{attribute:!1,hasChanged:null!=e?e:(t,e)=>!a(t,e)});const o=i;o.reduxProperties=o.reduxProperties||new Map,o.reduxProperties.set(s,null!=t?t:t=>t[s])};var xt,mt;navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(mt=null===(xt=window.safari)||void 0===xt?void 0:xt.pushNotification)||void 0===mt||mt.toString());const bt={colorError:ut.external(dt.colorError,"Design system"),fontFamily:ut.external(dt.contentFont,"Design system")},yt=f`
91
+ `;const vt=(t,e)=>(i,s)=>{i.constructor.createProperty(s,{attribute:!1,hasChanged:null!=e?e:(t,e)=>!a(t,e)});const o=i;o.reduxProperties=o.reduxProperties||new Map,o.reduxProperties.set(s,null!=t?t:t=>t[s])};class xt extends ft{get store(){return this.internalStore}set store(t){this.internalStore=t,this.store&&this.setupStore()}updateFromStore(){const t=this.store.getState();this.reduxProperties&&this.reduxProperties.forEach(((e,i)=>{this[i]=e(t,this)}))}setupStore(){this.unsubscribeFromStore&&this.unsubscribeFromStore(),this.updateFromStore(),this.unsubscribeFromStore=this.store.subscribe((()=>{this.updateFromStore()})),this.onStoreAvailable(),this.requestUpdate()}onStoreAvailable(){}connectedCallback(){super.connectedCallback(),this.store&&this.setupStore()}disconnectedCallback(){this.unsubscribeFromStore&&this.unsubscribeFromStore(),super.disconnectedCallback()}}var mt,bt;navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(bt=null===(mt=window.safari)||void 0===mt?void 0:mt.pushNotification)||void 0===bt||bt.toString());const yt={colorError:ut.external(dt.colorError,"Design system"),fontFamily:ut.external(dt.contentFont,"Design system")},gt=f`
92
92
  .topic {
93
- font-family: ${bt.fontFamily};
93
+ font-family: ${yt.fontFamily};
94
94
  }
95
95
 
96
96
  .topic-on-error {
@@ -98,35 +98,35 @@ var at,lt;class ct extends C{constructor(){super(...arguments),this.renderOption
98
98
  }
99
99
 
100
100
  .topic-on-error ft-icon {
101
- color: ${bt.colorError}
101
+ color: ${yt.colorError}
102
102
  }
103
103
 
104
104
  .topic-loading {
105
105
  height: 100vh;
106
106
  }
107
- `;var gt=function(t,e,i,s){for(var o,n=arguments.length,r=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,a=t.length-1;a>=0;a--)(o=t[a])&&(r=(n<3?o(r):n>3?o(e,i,r):o(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class wt extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const Ot=function(t){class e extends t{setReaderStateManager(t){this.stateManager=t,this.store=t.store}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),setTimeout((()=>this.dispatchEvent(new wt)),10)}disconnectedCallback(){super.disconnectedCallback(),this.store=void 0,this.stateManager=void 0}}return gt([o()],e.prototype,"stateManager",void 0),e}(class extends ft{get store(){return this.internalStore}set store(t){this.internalStore=t,this.store&&this.setupStore()}updateFromStore(){const t=this.store.getState();this.reduxProperties&&this.reduxProperties.forEach(((e,i)=>{this[i]=e(t,this)}))}setupStore(){this.unsubscribeFromStore&&this.unsubscribeFromStore(),this.updateFromStore(),this.unsubscribeFromStore=this.store.subscribe((()=>{this.updateFromStore()})),this.onStoreAvailable(),this.requestUpdate()}onStoreAvailable(){}connectedCallback(){super.connectedCallback(),this.store&&this.setupStore()}disconnectedCallback(){this.unsubscribeFromStore&&this.unsubscribeFromStore(),super.disconnectedCallback()}});var St=function(t,e,i,s){for(var o,n=arguments.length,r=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,a=t.length-1;a>=0;a--)(o=t[a])&&(r=(n<3?o(r):n>3?o(e,i,r):o(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Nt extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const Ct=function(t){class e extends t{connectedCallback(){super.connectedCallback(),setTimeout((()=>this.dispatchEvent(new Nt)),10)}}return St([o()],e.prototype,"tocNode",void 0),e}(Ot),$t=2;
107
+ `;var wt=function(t,e,i,s){for(var o,n=arguments.length,r=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,a=t.length-1;a>=0;a--)(o=t[a])&&(r=(n<3?o(r):n>3?o(e,i,r):o(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Ot extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class St extends(function(t){class e extends t{setReaderStateManager(t){this.stateManager=t,this.store=t.store}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),setTimeout((()=>this.dispatchEvent(new Ot)),10)}disconnectedCallback(){super.disconnectedCallback(),this.store=void 0,this.stateManager=void 0}}return wt([o()],e.prototype,"stateManager",void 0),e}(xt)){}var Nt=function(t,e,i,s){for(var o,n=arguments.length,r=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,a=t.length-1;a>=0;a--)(o=t[a])&&(r=(n<3?o(r):n>3?o(e,i,r):o(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Ct extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}class $t extends(function(t){class e extends t{connectedCallback(){super.connectedCallback(),setTimeout((()=>this.dispatchEvent(new Ct)),10)}}return Nt([o()],e.prototype,"tocNode",void 0),e}(St)){}
108
108
  /**
109
109
  * @license
110
110
  * Copyright 2017 Google LLC
111
111
  * SPDX-License-Identifier: BSD-3-Clause
112
- */class Et{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
112
+ */const Et=2;class Rt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
113
113
  /**
114
114
  * @license
115
115
  * Copyright 2017 Google LLC
116
116
  * SPDX-License-Identifier: BSD-3-Clause
117
- */class Rt extends Et{constructor(t){if(super(t),this.it=V,t.type!==$t)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===V||null==t)return this._t=void 0,this.it=t;if(t===I)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Rt.directiveName="unsafeHTML",Rt.resultType=1;const Mt=(t=>(...e)=>({_$litDirective$:t,values:e}))(Rt);var kt,Ut;!function(t){t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.STAR_PLAIN="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN_PLAIN="&#xe94d;",t.THUMBS_DOWN="&#xe94e;",t.THUMBS_UP_PLAIN="&#xe94f;",t.THUMBS_UP="&#xe950;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe900;",t.EYE="\f06e",t.DISC="&#xe901;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe902;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe90f;",t.ADMIN_USERS="&#xe910;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe912;"}(kt||(kt={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(Ut||(Ut={})),new Map([...["abw"].map((t=>[t,Ut.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((t=>[t,Ut.AUDIO])),...["avi"].map((t=>[t,Ut.AVI])),...["chm","xhs"].map((t=>[t,Ut.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((t=>[t,Ut.CODE])),...["csv"].map((t=>[t,Ut.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ut.DITA])),...["epub"].map((t=>[t,Ut.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ut.EXCEL])),...["flac"].map((t=>[t,Ut.FLAC])),...["gif"].map((t=>[t,Ut.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ut.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ut.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,Ut.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ut.JPEG])),...["json"].map((t=>[t,Ut.JSON])),...["m4a","m4p"].map((t=>[t,Ut.M4A])),...["mov","qt"].map((t=>[t,Ut.MOV])),...["mp3"].map((t=>[t,Ut.MP3])),...["mp4","m4v"].map((t=>[t,Ut.MP4])),...["ogg","oga"].map((t=>[t,Ut.OGG])),...["pdf","ps"].map((t=>[t,Ut.PDF])),...["png"].map((t=>[t,Ut.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ut.POWERPOINT])),...["rar"].map((t=>[t,Ut.RAR])),...["stp"].map((t=>[t,Ut.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ut.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((t=>[t,Ut.VIDEO])),...["wav"].map((t=>[t,Ut.WAV])),...["wma"].map((t=>[t,Ut.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ut.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ut.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ut.YAML])),...["zip"].map((t=>[t,Ut.ZIP]))]);const jt=ut.create("--ft-icon-font-size","SIZE","24px"),Ft=ut.extend("--ft-icon-fluid-topics-font-family",ut.create("--ft-icon-font-family","UNKNOWN","ft-icons")),At=ut.extend("--ft-icon-file-format-font-family",ut.create("--ft-icon-font-family","UNKNOWN","ft-mime")),Lt=ut.extend("--ft-icon-material-font-family",ut.create("--ft-icon-font-family","UNKNOWN","Material Icons")),Tt=ut.create("--ft-icon-vertical-align","UNKNOWN","unset"),_t=f`
117
+ */class Mt extends Rt{constructor(t){if(super(t),this.it=V,t.type!==Et)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===V||null==t)return this._t=void 0,this.it=t;if(t===I)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Mt.directiveName="unsafeHTML",Mt.resultType=1;const kt=(t=>(...e)=>({_$litDirective$:t,values:e}))(Mt);var Ut,jt;!function(t){t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.STAR_PLAIN="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN_PLAIN="&#xe94d;",t.THUMBS_DOWN="&#xe94e;",t.THUMBS_UP_PLAIN="&#xe94f;",t.THUMBS_UP="&#xe950;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe900;",t.EYE="\f06e",t.DISC="&#xe901;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe902;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe90f;",t.ADMIN_USERS="&#xe910;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe912;"}(Ut||(Ut={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(jt||(jt={})),new Map([...["abw"].map((t=>[t,jt.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((t=>[t,jt.AUDIO])),...["avi"].map((t=>[t,jt.AVI])),...["chm","xhs"].map((t=>[t,jt.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((t=>[t,jt.CODE])),...["csv"].map((t=>[t,jt.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,jt.DITA])),...["epub"].map((t=>[t,jt.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,jt.EXCEL])),...["flac"].map((t=>[t,jt.FLAC])),...["gif"].map((t=>[t,jt.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,jt.GZIP])),...["html","htm","xhtml"].map((t=>[t,jt.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,jt.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,jt.JPEG])),...["json"].map((t=>[t,jt.JSON])),...["m4a","m4p"].map((t=>[t,jt.M4A])),...["mov","qt"].map((t=>[t,jt.MOV])),...["mp3"].map((t=>[t,jt.MP3])),...["mp4","m4v"].map((t=>[t,jt.MP4])),...["ogg","oga"].map((t=>[t,jt.OGG])),...["pdf","ps"].map((t=>[t,jt.PDF])),...["png"].map((t=>[t,jt.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,jt.POWERPOINT])),...["rar"].map((t=>[t,jt.RAR])),...["stp"].map((t=>[t,jt.STP])),...["txt","rtf","md","mdown"].map((t=>[t,jt.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((t=>[t,jt.VIDEO])),...["wav"].map((t=>[t,jt.WAV])),...["wma"].map((t=>[t,jt.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,jt.WORD])),...["xml","xsl","rdf"].map((t=>[t,jt.XML])),...["yaml","yml","x-yaml"].map((t=>[t,jt.YAML])),...["zip"].map((t=>[t,jt.ZIP]))]);const Ft=ut.create("--ft-icon-font-size","SIZE","24px"),At=ut.extend("--ft-icon-fluid-topics-font-family",ut.create("--ft-icon-font-family","UNKNOWN","ft-icons")),Lt=ut.extend("--ft-icon-file-format-font-family",ut.create("--ft-icon-font-family","UNKNOWN","ft-mime")),Tt=ut.extend("--ft-icon-material-font-family",ut.create("--ft-icon-font-family","UNKNOWN","Material Icons")),_t=ut.create("--ft-icon-vertical-align","UNKNOWN","unset"),Pt=f`
118
118
  :host {
119
119
  display: inline-block;
120
120
  }
121
121
 
122
122
  :host, i.ft-icon {
123
- width: ${jt};
124
- height: ${jt};
123
+ width: ${Ft};
124
+ height: ${Ft};
125
125
  text-align: center;
126
126
  }
127
127
 
128
128
  i.ft-icon {
129
- font-size: ${jt};
129
+ font-size: ${Ft};
130
130
  line-height: 1;
131
131
  font-weight: normal;
132
132
  text-transform: none;
@@ -137,32 +137,32 @@ var at,lt;class ct extends C{constructor(){super(...arguments),this.renderOption
137
137
  text-rendering: auto;
138
138
  -webkit-font-smoothing: antialiased;
139
139
  -moz-osx-font-smoothing: grayscale;
140
- vertical-align: ${Tt};
140
+ vertical-align: ${_t};
141
141
  }
142
142
 
143
143
  .ft-icon--fluid-topics {
144
- font-family: ${Ft}, ft-icons, fticons, sans-serif;
144
+ font-family: ${At}, ft-icons, fticons, sans-serif;
145
145
  }
146
146
 
147
147
  .ft-icon--file-format {
148
- font-family: ${At}, ft-mime, sans-serif;
148
+ font-family: ${Lt}, ft-mime, sans-serif;
149
149
  }
150
150
 
151
151
  .ft-icon--material {
152
- font-family: ${Lt}, "Material Icons", sans-serif;
152
+ font-family: ${Tt}, "Material Icons", sans-serif;
153
153
  }
154
- `;var Pt;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Pt||(Pt={}));var Wt=function(t,e,i,s){for(var o,n=arguments.length,r=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,a=t.length-1;a>=0;a--)(o=t[a])&&(r=(n<3?o(r):n>3?o(e,i,r):o(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Bt extends ft{constructor(){super(...arguments),this.variant=Pt.fluid_topics,this.resolvedIcon=V}render(){const t="material"!==this.variant||this.value;return H`
154
+ `;var Wt;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Wt||(Wt={}));var Bt=function(t,e,i,s){for(var o,n=arguments.length,r=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,a=t.length-1;a>=0;a--)(o=t[a])&&(r=(n<3?o(r):n>3?o(e,i,r):o(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Dt extends ft{constructor(){super(...arguments),this.variant=Wt.fluid_topics,this.resolvedIcon=V}render(){const t="material"!==this.variant||this.value;return H`
155
155
  <i class="ft-icon ${"ft-icon--"+this.variant}">
156
- ${Mt(this.resolvedIcon)}
156
+ ${kt(this.resolvedIcon)}
157
157
  <slot ?hidden=${t}></slot>
158
158
  </i>
159
- `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case Pt.file_format:this.resolvedIcon=null!==(t=Ut[i.toUpperCase()])&&void 0!==t?t:i;break;case Pt.fluid_topics:this.resolvedIcon=null!==(e=kt[i.toUpperCase()])&&void 0!==e?e:i;break;default:this.resolvedIcon=this.value||V}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}Bt.elementDefinitions={},Bt.styles=_t,Wt([s()],Bt.prototype,"variant",void 0),Wt([s()],Bt.prototype,"value",void 0),Wt([o()],Bt.prototype,"resolvedIcon",void 0),Wt([
159
+ `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case Wt.file_format:this.resolvedIcon=null!==(t=jt[i.toUpperCase()])&&void 0!==t?t:i;break;case Wt.fluid_topics:this.resolvedIcon=null!==(e=Ut[i.toUpperCase()])&&void 0!==e?e:i;break;default:this.resolvedIcon=this.value||V}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}Dt.elementDefinitions={},Dt.styles=Pt,Bt([s()],Dt.prototype,"variant",void 0),Bt([s()],Dt.prototype,"value",void 0),Bt([o()],Dt.prototype,"resolvedIcon",void 0),Bt([
160
160
  /**
161
161
  * @license
162
162
  * Copyright 2017 Google LLC
163
163
  * SPDX-License-Identifier: BSD-3-Clause
164
164
  */
165
- function(t,e){return(({finisher:t,descriptor:e})=>(i,s)=>{var o;if(void 0===s){const s=null!==(o=i.originalKey)&&void 0!==o?o:i.key,n=null!=e?{kind:"method",placement:"prototype",key:s,descriptor:e(i.key)}:{...i,key:s};return null!=t&&(n.finisher=function(e){t(e,s)}),n}{const o=i.constructor;void 0!==e&&Object.defineProperty(i,s,e(s)),null==t||t(o,s)}})({descriptor:i=>{const s={get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==i?i:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof i?Symbol():"__"+i;s.get=function(){var i,s;return void 0===this[e]&&(this[e]=null!==(s=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==s?s:null),this[e]}}return s}})}("slot")],Bt.prototype,"slottedContent",void 0),r("ft-icon")(Bt);var Dt=function(t,e,i,s){for(var o,n=arguments.length,r=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,a=t.length-1;a>=0;a--)(o=t[a])&&(r=(n<3?o(r):n>3?o(e,i,r):o(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Kt extends Ct{render(){var t;return this.map&&(this.error||this.content)?H`
165
+ function(t,e){return(({finisher:t,descriptor:e})=>(i,s)=>{var o;if(void 0===s){const s=null!==(o=i.originalKey)&&void 0!==o?o:i.key,n=null!=e?{kind:"method",placement:"prototype",key:s,descriptor:e(i.key)}:{...i,key:s};return null!=t&&(n.finisher=function(e){t(e,s)}),n}{const o=i.constructor;void 0!==e&&Object.defineProperty(i,s,e(s)),null==t||t(o,s)}})({descriptor:i=>{const s={get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==i?i:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof i?Symbol():"__"+i;s.get=function(){var i,s;return void 0===this[e]&&(this[e]=null!==(s=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==s?s:null),this[e]}}return s}})}("slot")],Dt.prototype,"slottedContent",void 0),r("ft-icon")(Dt);var Kt=function(t,e,i,s){for(var o,n=arguments.length,r=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,a=t.length-1;a>=0;a--)(o=t[a])&&(r=(n<3?o(r):n>3?o(e,i,r):o(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class zt extends $t{render(){var t;return this.map&&(this.error||this.content)?H`
166
166
  <style>
167
167
  @import "${null===(t=this.map)||void 0===t?void 0:t.contentStyles.topicStylesheetUrl}";
168
168
  </style>
@@ -178,6 +178,6 @@ function(t,e){return(({finisher:t,descriptor:e})=>(i,s)=>{var o;if(void 0===s){c
178
178
  </div>
179
179
  `}const o=null!==(i=null===(e=this.map)||void 0===e?void 0:e.contentStyles.customCssClasses.join(" "))&&void 0!==i?i:"";return H`
180
180
  <div class="depth-${null===(s=this.tocNode)||void 0===s?void 0:s.depth} content-locale-${this.contentLocale} ${o}">
181
- ${Mt(`${this.content}`)}
181
+ ${kt(`${this.content}`)}
182
182
  </div>
183
- `}is404Error(){return 404===this.error.status}}Kt.styles=yt,Dt([vt((t=>{var e;return null===(e=t.map)||void 0===e?void 0:e.lang}))],Kt.prototype,"contentLocale",void 0),Dt([vt()],Kt.prototype,"map",void 0),Dt([vt()],Kt.prototype,"scrollTarget",void 0),Dt([o()],Kt.prototype,"content",void 0),Dt([o()],Kt.prototype,"error",void 0),r("ft-reader-topic-content")(Kt),t.FtReaderTopicContent=Kt,t.FtReaderTopicContentCssVariables=bt,t.styles=yt,Object.defineProperty(t,"i",{value:!0})}({});
183
+ `}is404Error(){return 404===this.error.status}}zt.styles=gt,Kt([vt((t=>{var e;return null===(e=t.map)||void 0===e?void 0:e.lang}))],zt.prototype,"contentLocale",void 0),Kt([vt()],zt.prototype,"map",void 0),Kt([vt()],zt.prototype,"scrollTarget",void 0),Kt([o()],zt.prototype,"content",void 0),Kt([o()],zt.prototype,"error",void 0),r("ft-reader-topic-content")(zt),t.FtReaderTopicContent=zt,t.FtReaderTopicContentCssVariables=yt,t.styles=gt,Object.defineProperty(t,"i",{value:!0})}({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-reader-topic-content",
3
- "version": "0.3.22",
3
+ "version": "0.3.23",
4
4
  "description": "Content of a topic in integrated reader.",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,13 +19,13 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-chip": "0.3.22",
23
- "@fluid-topics/ft-reader-context": "0.3.22",
24
- "@fluid-topics/ft-reader-topic-context": "0.3.22",
25
- "@fluid-topics/ft-tooltip": "0.3.22",
26
- "@fluid-topics/ft-wc-utils": "0.3.22",
22
+ "@fluid-topics/ft-chip": "0.3.23",
23
+ "@fluid-topics/ft-reader-context": "0.3.23",
24
+ "@fluid-topics/ft-reader-topic-context": "0.3.23",
25
+ "@fluid-topics/ft-tooltip": "0.3.23",
26
+ "@fluid-topics/ft-wc-utils": "0.3.23",
27
27
  "@fluid-topics/public-api": "1.0.24",
28
28
  "lit": "2.2.8"
29
29
  },
30
- "gitHead": "5ca6dd4bc6ec9dca0bf645892ec3f07e4b62683d"
30
+ "gitHead": "7fb0bb52d064423f63bfd9c36c5454d65aa890d6"
31
31
  }