@fluid-topics/ft-combobox 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.
@@ -469,7 +469,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
469
469
  <div class="ft-ripple--background"></div>
470
470
  <div class="ft-ripple--effect"></div>
471
471
  </div>
472
- `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var o,n;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(o=this.target)===null||o===void 0||o.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,o;let n=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;n&&this.setupFor((o=this.target)!==null&&o!==void 0?o:n)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let o=(...c)=>p=>{c.forEach(u=>window.addEventListener(u,this.endPress,{once:!0})),this.startPress(p)},n=o("mouseup","contextmenu"),i=o("touchend","touchcancel"),a=c=>{["Enter"," "].includes(c.key)&&o("keyup")(c)},l={passive:!0};e.addEventListener("mouseover",this.startHover,l),e.addEventListener("mousemove",this.moveRipple,l),e.addEventListener("mouseleave",this.endHover,l),e.addEventListener("mousedown",n,l),e.addEventListener("touchstart",i,l),e.addEventListener("touchmove",this.moveRipple,l),e.addEventListener("keydown",a,l),e.addEventListener("focus",this.startFocus,l),e.addEventListener("blur",this.endFocus,l),e.addEventListener("focusin",this.startFocus,l),e.addEventListener("focusout",this.endFocus,l),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,l),e.removeEventListener("mousemove",this.moveRipple,l),e.removeEventListener("mouseleave",this.endHover,l),e.removeEventListener("mousedown",n,l),e.removeEventListener("touchstart",i,l),e.removeEventListener("touchmove",this.moveRipple,l),e.removeEventListener("keydown",a,l),e.removeEventListener("focus",this.startFocus,l),e.removeEventListener("blur",this.endFocus,l),e.removeEventListener("focusin",this.startFocus,l),e.removeEventListener("focusout",this.endFocus,l),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let o=e,n=e,i,a;return o.x!=null?{x:i,y:a}=o:n.touches!=null&&(i=n.touches[0].clientX,a=n.touches[0].clientY),{x:i,y:a}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let o of e.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};Y.elementDefinitions={};Y.styles=fs;_e([(0,Ee.property)({type:Boolean})],Y.prototype,"primary",void 0);_e([(0,Ee.property)({type:Boolean})],Y.prototype,"secondary",void 0);_e([(0,Ee.property)({type:Boolean})],Y.prototype,"unbounded",void 0);_e([(0,Ee.property)({type:Boolean})],Y.prototype,"activated",void 0);_e([(0,Ee.property)({type:Boolean})],Y.prototype,"selected",void 0);_e([(0,Ee.property)({type:Boolean})],Y.prototype,"disabled",void 0);_e([(0,Ee.state)()],Y.prototype,"hovered",void 0);_e([(0,Ee.state)()],Y.prototype,"focused",void 0);_e([(0,Ee.state)()],Y.prototype,"pressed",void 0);_e([(0,Ee.state)()],Y.prototype,"rippling",void 0);_e([(0,Ee.state)()],Y.prototype,"originX",void 0);_e([(0,Ee.state)()],Y.prototype,"originY",void 0);_e([(0,Ee.query)(".ft-ripple")],Y.prototype,"ripple",void 0);_e([(0,Ee.query)(".ft-ripple--effect")],Y.prototype,"rippleEffect",void 0);(0,gs.customElement)("ft-ripple")(Y);var Os=b(N());var Qr=b(Z()),_t=b(se()),Ss=b(N()),Cs=b(bs());var Et;(function(t){t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.BOOKS="&#xe806;",t.MENU="&#xe807;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.HOME="&#xe80b;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.EXPORT="&#xe80f;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.USER="&#xe813;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.OFFLINE="&#xe816;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.STAR_PLAIN="&#xe900;",t.TOPICS="&#xe901;",t.DISC="&#xe902;",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="&#xe90f;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_THEME="&#xe911;",t.ADMIN_USERS="&#xe912;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.INFO="&#xe919;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.THIN_ARROW="&#xe921;",t.SIGN_IN="&#xe922;",t.LOGOUT="&#xe923;",t.TRANSLATE="&#xe924;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.ARTICLE="&#xe927;",t.COLUMNS="&#xe928;",t.ANALYTICS="&#xe929;",t.COLLECTIONS="&#xe92a;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.COPY_TO_CLIPBOARD="&#xe930;",t.SHARED_PBK="&#xe931;",t.ATTACHMENTS="&#xe932;",t.STRIPE_ARROW_LEFT="&#xe933;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.FILTERS="&#xe935;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.SAVE="&#xe93a;",t.LOCKER="&#xe93b;",t.ADMIN_INTEGRATION="&#xe93c;",t.SYNC="&#xe93d;",t.TAG="&#xe93e;",t.BOOK_PLAIN="&#xe93f;",t.UPLOAD="&#xe940;",t.ONLINE="&#xe941;",t.TAG_PLAIN="&#xe942;",t.ACCOUNT_SETTINGS="&#xe943;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.SHORTCUT_MENU="&#xe946;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.ADMIN_PORTAL="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.FEEDBACK_PLAIN="&#xe951;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_COLLECTIONS="&#xe955;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.RESET="&#xe958;",t.MY_LIBRARY="&#xe959;",t.UNSTRUCTURED_DOC="&#xe95a;",t.CONTEXTUAL="&#xe95b;",t.THIN_ARROW_UP="&#xe95c;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_STACKED="&#xe96e;",t.CHART_BAR_GROUPED="&#xe96f;",t.EYE_SLASH="&#xe970;",t.X_MARK="&#xe971;",t.EXPAND_WIDE="&#xe972;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.EXTLINK_LIGHT="&#xe978;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.CONSUMER="&#xe97c;",t.OCTAGON_XMARK="&#xe97d;",t.HOURGLASS_HALF="&#xe97e;",t.CLOCK="&#xe97f;",t.CLOCK_THREE="&#xe97f;",t.CALENDAR_DAY="&#xe980;",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",t.WAND_MAGIC_SPARKLES="&#xe982;",t.PAPER_PLANE="&#xe983;",t.CIRCLE_STOP="&#xe984;",t.ARROW_ROTATE_RIGHT="&#xe985;",t.ARROWS_ROTATE="&#xe986;",t.ALIGN_RIGHT="&#xe987;",t.FORMAT_CLEAR="&#xe988;",t.ALIGN_CENTER="&#xe989;",t.ALIGN_LEFT="&#xe98a;",t.PALETTE="&#xe98b;",t.BOLD="&#xe98c;",t.ITALIC="&#xe98d;",t.UNDERLINE="&#xe98e;",t.STRIKETHROUGH="&#xe98f;",t.LINK_SIMPLE_SLASH="&#xe990;",t.LINK_SIMPLE="&#xe991;",t.ROUTE="&#xe992;",t.CIRCLE_USER_SLASH="&#xe993;",t.CIRCLE_USER_CHECK="&#xe994;",t.LIST_MAGNIFYING_GLASS="&#xe995;",t.MEDAL="&#xe996;",t.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",t.ARROW_TURN_DOWN_RIGHT="&#xe998;",t.FLASK="&#xe999;",t.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",t.HOURGLASS_END="&#xe99b;",t.CIRCLE_QUESTION="&#xe99c;",t.GRIP_LINES_SOLID="&#xe99d;",t.TRANSLATE_SPARKLE_SOLID="&#xe99e;",t.CODE="&#xe99f;",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",t.PAPER_PLANE_SLASH="&#xe9a1;",t.COMPRESS="&#xe9a2;",t.EXPAND="&#xe9a3;",t.ARROW_ROTATE_LEFT="&#xe9a4;",t.EYE="&#xf06e;",t.SHARE="&#xe80f1;",t.MOBILE_SMALL="&#xe9a5;",t.SPARKLES="&#xe9a6;",t.HAND_SOLID="&#xe9a7;",t.CLOCK_SOLID="&#xe9a8;",t.CONTEXT_MENU_CURSOR="&#xe9a9;",t.LANGUAGE_SLASH="&#xe9aa;",t.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",t.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",t.BOOKMARK_SLASH="&#xe9ad;",t.CIRCLE_PAUSE="&#xe9ae;",t.CIRCLE_PLAY="&#xe9af;",t.CIRCLE_STOP_PLAIN="&#xe9b0;",t.CLOUD_ARROW_DOWN="&#xe9b1;",t.SHARE_NODES="&#xe9b2;",t.BELL="&#xe9b3;",t.BELL_SLASH="&#xe9b4;",t.FILE="&#xe9b5;",t.HAND="&#xe9b6;",t.SQUARE_INFO_SOLID="&#xe9b7;"})(Et||(Et={}));var w;(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;"})(w||(w={}));var hb=new Map([...["abw"].map(t=>[t,w.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,w.AUDIO]),...["avi"].map(t=>[t,w.AVI]),...["chm","xhs"].map(t=>[t,w.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,w.CODE]),...["csv"].map(t=>[t,w.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,w.DITA]),...["epub"].map(t=>[t,w.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,w.EXCEL]),...["flac"].map(t=>[t,w.FLAC]),...["gif"].map(t=>[t,w.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,w.GZIP]),...["html","htm","xhtml"].map(t=>[t,w.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(t=>[t,w.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,w.JPEG]),...["json"].map(t=>[t,w.JSON]),...["m4a","m4p"].map(t=>[t,w.M4A]),...["mov","qt"].map(t=>[t,w.MOV]),...["mp3"].map(t=>[t,w.MP3]),...["mp4","m4v"].map(t=>[t,w.MP4]),...["ogg","oga"].map(t=>[t,w.OGG]),...["pdf","ps"].map(t=>[t,w.PDF]),...["png"].map(t=>[t,w.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,w.POWERPOINT]),...["rar"].map(t=>[t,w.RAR]),...["stp"].map(t=>[t,w.STP]),...["txt","rtf","md","mdown"].map(t=>[t,w.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,w.VIDEO]),...["wav"].map(t=>[t,w.WAV]),...["wma"].map(t=>[t,w.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,w.WORD]),...["xml","xsl","rdf"].map(t=>[t,w.XML]),...["yaml","yml","x-yaml"].map(t=>[t,w.YAML]),...["zip"].map(t=>[t,w.ZIP])]);var yb={[w.ABW]:"#91ABC6",[w.AUDIO]:"#1795E3",[w.AVI]:"#E63324",[w.CHM]:"#71C3EB",[w.CODE]:"#71C3EB",[w.CSV]:"#1F7345",[w.DITA]:"#71C3EB",[w.EPUB]:"#85B926",[w.EXCEL]:"#1F7345",[w.FLAC]:"#1795E3",[w.GIF]:"#59B031",[w.GZIP]:"#F8AB36",[w.HTML]:"#71C3EB",[w.IMAGE]:"#59B031",[w.JPEG]:"#59B031",[w.JSON]:"#71C3EB",[w.M4A]:"#1795E3",[w.MOV]:"#E63324",[w.MP3]:"#1795E3",[w.MP4]:"#E63324",[w.OGG]:"#1795E3",[w.PDF]:"#E44948",[w.PNG]:"#59B031",[w.POWERPOINT]:"#B54A2B",[w.RAR]:"#F8AB36",[w.STP]:"#3764B1",[w.TEXT]:"#3162AB",[w.UNKNOWN]:"#999999",[w.VIDEO]:"#E63324",[w.WAV]:"#1795E3",[w.WMA]:"#1795E3",[w.WORD]:"#3162AB",[w.XML]:"#71C3EB",[w.YAML]:"#71C3EB",[w.ZIP]:"#F8AB36"};var xs=b(Z()),it=b(N()),re={size:it.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:it.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",it.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:it.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",it.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:it.FtCssVariableFactory.extend("--ft-icon-material-font-family","",it.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:it.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},vs=[xs.css`
472
+ `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var o,n;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(o=this.target)===null||o===void 0||o.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,o;let n=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;n&&this.setupFor((o=this.target)!==null&&o!==void 0?o:n)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let o=(...c)=>p=>{c.forEach(u=>window.addEventListener(u,this.endPress,{once:!0})),this.startPress(p)},n=o("mouseup","contextmenu"),i=o("touchend","touchcancel"),a=c=>{["Enter"," "].includes(c.key)&&o("keyup")(c)},l={passive:!0};e.addEventListener("mouseover",this.startHover,l),e.addEventListener("mousemove",this.moveRipple,l),e.addEventListener("mouseleave",this.endHover,l),e.addEventListener("mousedown",n,l),e.addEventListener("touchstart",i,l),e.addEventListener("touchmove",this.moveRipple,l),e.addEventListener("keydown",a,l),e.addEventListener("focus",this.startFocus,l),e.addEventListener("blur",this.endFocus,l),e.addEventListener("focusin",this.startFocus,l),e.addEventListener("focusout",this.endFocus,l),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,l),e.removeEventListener("mousemove",this.moveRipple,l),e.removeEventListener("mouseleave",this.endHover,l),e.removeEventListener("mousedown",n,l),e.removeEventListener("touchstart",i,l),e.removeEventListener("touchmove",this.moveRipple,l),e.removeEventListener("keydown",a,l),e.removeEventListener("focus",this.startFocus,l),e.removeEventListener("blur",this.endFocus,l),e.removeEventListener("focusin",this.startFocus,l),e.removeEventListener("focusout",this.endFocus,l),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let o=e,n=e,i,a;return o.x!=null?{x:i,y:a}=o:n.touches!=null&&(i=n.touches[0].clientX,a=n.touches[0].clientY),{x:i,y:a}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let o of e.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};Y.elementDefinitions={};Y.styles=fs;_e([(0,Ee.property)({type:Boolean})],Y.prototype,"primary",void 0);_e([(0,Ee.property)({type:Boolean})],Y.prototype,"secondary",void 0);_e([(0,Ee.property)({type:Boolean})],Y.prototype,"unbounded",void 0);_e([(0,Ee.property)({type:Boolean})],Y.prototype,"activated",void 0);_e([(0,Ee.property)({type:Boolean})],Y.prototype,"selected",void 0);_e([(0,Ee.property)({type:Boolean})],Y.prototype,"disabled",void 0);_e([(0,Ee.state)()],Y.prototype,"hovered",void 0);_e([(0,Ee.state)()],Y.prototype,"focused",void 0);_e([(0,Ee.state)()],Y.prototype,"pressed",void 0);_e([(0,Ee.state)()],Y.prototype,"rippling",void 0);_e([(0,Ee.state)()],Y.prototype,"originX",void 0);_e([(0,Ee.state)()],Y.prototype,"originY",void 0);_e([(0,Ee.query)(".ft-ripple")],Y.prototype,"ripple",void 0);_e([(0,Ee.query)(".ft-ripple--effect")],Y.prototype,"rippleEffect",void 0);(0,gs.customElement)("ft-ripple")(Y);var Os=b(N());var Qr=b(Z()),_t=b(se()),Ss=b(N()),Cs=b(bs());var Et;(function(t){t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.BOOKS="&#xe806;",t.MENU="&#xe807;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.HOME="&#xe80b;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.EXPORT="&#xe80f;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.USER="&#xe813;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.OFFLINE="&#xe816;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.STAR_PLAIN="&#xe900;",t.TOPICS="&#xe901;",t.DISC="&#xe902;",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="&#xe90f;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_THEME="&#xe911;",t.ADMIN_USERS="&#xe912;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.INFO="&#xe919;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.THIN_ARROW="&#xe921;",t.SIGN_IN="&#xe922;",t.LOGOUT="&#xe923;",t.TRANSLATE="&#xe924;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.ARTICLE="&#xe927;",t.COLUMNS="&#xe928;",t.ANALYTICS="&#xe929;",t.COLLECTIONS="&#xe92a;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.COPY_TO_CLIPBOARD="&#xe930;",t.SHARED_PBK="&#xe931;",t.ATTACHMENTS="&#xe932;",t.STRIPE_ARROW_LEFT="&#xe933;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.FILTERS="&#xe935;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.SAVE="&#xe93a;",t.LOCKER="&#xe93b;",t.ADMIN_INTEGRATION="&#xe93c;",t.SYNC="&#xe93d;",t.TAG="&#xe93e;",t.BOOK_PLAIN="&#xe93f;",t.UPLOAD="&#xe940;",t.ONLINE="&#xe941;",t.TAG_PLAIN="&#xe942;",t.ACCOUNT_SETTINGS="&#xe943;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.SHORTCUT_MENU="&#xe946;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.ADMIN_PORTAL="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.FEEDBACK_PLAIN="&#xe951;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_COLLECTIONS="&#xe955;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.RESET="&#xe958;",t.MY_LIBRARY="&#xe959;",t.UNSTRUCTURED_DOC="&#xe95a;",t.CONTEXTUAL="&#xe95b;",t.THIN_ARROW_UP="&#xe95c;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_STACKED="&#xe96e;",t.CHART_BAR_GROUPED="&#xe96f;",t.EYE_SLASH="&#xe970;",t.X_MARK="&#xe971;",t.EXPAND_WIDE="&#xe972;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.EXTLINK_LIGHT="&#xe978;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.CONSUMER="&#xe97c;",t.OCTAGON_XMARK="&#xe97d;",t.HOURGLASS_HALF="&#xe97e;",t.CLOCK="&#xe97f;",t.CLOCK_THREE="&#xe97f;",t.CALENDAR_DAY="&#xe980;",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",t.WAND_MAGIC_SPARKLES="&#xe982;",t.PAPER_PLANE="&#xe983;",t.CIRCLE_STOP="&#xe984;",t.ARROW_ROTATE_RIGHT="&#xe985;",t.ARROWS_ROTATE="&#xe986;",t.ALIGN_RIGHT="&#xe987;",t.FORMAT_CLEAR="&#xe988;",t.ALIGN_CENTER="&#xe989;",t.ALIGN_LEFT="&#xe98a;",t.PALETTE="&#xe98b;",t.BOLD="&#xe98c;",t.ITALIC="&#xe98d;",t.UNDERLINE="&#xe98e;",t.STRIKETHROUGH="&#xe98f;",t.LINK_SIMPLE_SLASH="&#xe990;",t.LINK_SIMPLE="&#xe991;",t.ROUTE="&#xe992;",t.CIRCLE_USER_SLASH="&#xe993;",t.CIRCLE_USER_CHECK="&#xe994;",t.LIST_MAGNIFYING_GLASS="&#xe995;",t.MEDAL="&#xe996;",t.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",t.ARROW_TURN_DOWN_RIGHT="&#xe998;",t.FLASK="&#xe999;",t.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",t.HOURGLASS_END="&#xe99b;",t.CIRCLE_QUESTION="&#xe99c;",t.GRIP_LINES_SOLID="&#xe99d;",t.TRANSLATE_SPARKLE_SOLID="&#xe99e;",t.CODE="&#xe99f;",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",t.PAPER_PLANE_SLASH="&#xe9a1;",t.COMPRESS="&#xe9a2;",t.EXPAND="&#xe9a3;",t.ARROW_ROTATE_LEFT="&#xe9a4;",t.EYE="&#xf06e;",t.SHARE="&#xe80f1;",t.MOBILE_SMALL="&#xe9a5;",t.SPARKLES="&#xe9a6;",t.HAND_SOLID="&#xe9a7;",t.CLOCK_SOLID="&#xe9a8;",t.CONTEXT_MENU_CURSOR="&#xe9a9;",t.LANGUAGE_SLASH="&#xe9aa;",t.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",t.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",t.BOOKMARK_SLASH="&#xe9ad;",t.CIRCLE_PAUSE="&#xe9ae;",t.CIRCLE_PLAY="&#xe9af;",t.CIRCLE_STOP_PLAIN="&#xe9b0;",t.CLOUD_ARROW_DOWN="&#xe9b1;",t.SHARE_NODES="&#xe9b2;",t.BELL="&#xe9b3;",t.BELL_SLASH="&#xe9b4;",t.FILE="&#xe9b5;",t.HAND="&#xe9b6;",t.SQUARE_INFO_SOLID="&#xe9b7;",t.FILE_CODE="&#xe9b8;",t.BOX_CODE="&#xe9b9;"})(Et||(Et={}));var w;(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;"})(w||(w={}));var hb=new Map([...["abw"].map(t=>[t,w.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,w.AUDIO]),...["avi"].map(t=>[t,w.AVI]),...["chm","xhs"].map(t=>[t,w.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,w.CODE]),...["csv"].map(t=>[t,w.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,w.DITA]),...["epub"].map(t=>[t,w.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,w.EXCEL]),...["flac"].map(t=>[t,w.FLAC]),...["gif"].map(t=>[t,w.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,w.GZIP]),...["html","htm","xhtml"].map(t=>[t,w.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(t=>[t,w.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,w.JPEG]),...["json"].map(t=>[t,w.JSON]),...["m4a","m4p"].map(t=>[t,w.M4A]),...["mov","qt"].map(t=>[t,w.MOV]),...["mp3"].map(t=>[t,w.MP3]),...["mp4","m4v"].map(t=>[t,w.MP4]),...["ogg","oga"].map(t=>[t,w.OGG]),...["pdf","ps"].map(t=>[t,w.PDF]),...["png"].map(t=>[t,w.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,w.POWERPOINT]),...["rar"].map(t=>[t,w.RAR]),...["stp"].map(t=>[t,w.STP]),...["txt","rtf","md","mdown"].map(t=>[t,w.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,w.VIDEO]),...["wav"].map(t=>[t,w.WAV]),...["wma"].map(t=>[t,w.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,w.WORD]),...["xml","xsl","rdf"].map(t=>[t,w.XML]),...["yaml","yml","x-yaml"].map(t=>[t,w.YAML]),...["zip"].map(t=>[t,w.ZIP])]);var yb={[w.ABW]:"#91ABC6",[w.AUDIO]:"#1795E3",[w.AVI]:"#E63324",[w.CHM]:"#71C3EB",[w.CODE]:"#71C3EB",[w.CSV]:"#1F7345",[w.DITA]:"#71C3EB",[w.EPUB]:"#85B926",[w.EXCEL]:"#1F7345",[w.FLAC]:"#1795E3",[w.GIF]:"#59B031",[w.GZIP]:"#F8AB36",[w.HTML]:"#71C3EB",[w.IMAGE]:"#59B031",[w.JPEG]:"#59B031",[w.JSON]:"#71C3EB",[w.M4A]:"#1795E3",[w.MOV]:"#E63324",[w.MP3]:"#1795E3",[w.MP4]:"#E63324",[w.OGG]:"#1795E3",[w.PDF]:"#E44948",[w.PNG]:"#59B031",[w.POWERPOINT]:"#B54A2B",[w.RAR]:"#F8AB36",[w.STP]:"#3764B1",[w.TEXT]:"#3162AB",[w.UNKNOWN]:"#999999",[w.VIDEO]:"#E63324",[w.WAV]:"#1795E3",[w.WMA]:"#1795E3",[w.WORD]:"#3162AB",[w.XML]:"#71C3EB",[w.YAML]:"#71C3EB",[w.ZIP]:"#F8AB36"};var xs=b(Z()),it=b(N()),re={size:it.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:it.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",it.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:it.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",it.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:it.FtCssVariableFactory.extend("--ft-icon-material-font-family","",it.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:it.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},vs=[xs.css`
473
473
  :host, i.ft-icon {
474
474
  display: inline-flex;
475
475
  align-items: center;
@@ -1227,7 +1227,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
1227
1227
  word-break: break-word;
1228
1228
  }
1229
1229
  `;var Ws=["top","right","bottom","left"],Hs=["start","end"],hi=Ws.reduce((t,e)=>t.concat(e,e+"-"+Hs[0],e+"-"+Hs[1]),[]),Vs=Math.min,Gs=Math.max;var Md={left:"right",right:"left",bottom:"top",top:"bottom"},Ud={start:"end",end:"start"};function yi(t,e,o){return Gs(t,Vs(e,o))}function Ao(t,e){return typeof t=="function"?t(e):t}function Rr(t){return t.split("-")[0]}function $t(t){return t.split("-")[1]}function gi(t){return t==="x"?"y":"x"}function mi(t){return t==="y"?"height":"width"}function Ro(t){return["top","bottom"].includes(Rr(t))?"y":"x"}function bi(t){return gi(Ro(t))}function js(t,e,o){o===void 0&&(o=!1);let n=$t(t),i=bi(t),a=mi(i),l=i==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(l=fi(l)),[l,fi(l)]}function Ks(t){return t.replace(/start|end/g,e=>Ud[e])}function fi(t){return t.replace(/left|right|bottom|top/g,e=>Md[e])}function Fd(t){return{top:0,right:0,bottom:0,left:0,...t}}function Zs(t){return typeof t!="number"?Fd(t):{top:t,right:t,bottom:t,left:t}}function tr(t){let{x:e,y:o,width:n,height:i}=t;return{width:n,height:i,top:o,left:e,right:e+n,bottom:o+i,x:e,y:o}}function qs(t,e,o){let{reference:n,floating:i}=t,a=Ro(e),l=bi(e),c=mi(l),p=Rr(e),u=a==="y",g=n.x+n.width/2-i.width/2,h=n.y+n.height/2-i.height/2,m=n[c]/2-i[c]/2,S;switch(p){case"top":S={x:g,y:n.y-i.height};break;case"bottom":S={x:g,y:n.y+n.height};break;case"right":S={x:n.x+n.width,y:h};break;case"left":S={x:n.x-i.width,y:h};break;default:S={x:n.x,y:n.y}}switch($t(e)){case"start":S[l]-=m*(o&&u?-1:1);break;case"end":S[l]+=m*(o&&u?-1:1);break}return S}var Ys=async(t,e,o)=>{let{placement:n="bottom",strategy:i="absolute",middleware:a=[],platform:l}=o,c=a.filter(Boolean),p=await(l.isRTL==null?void 0:l.isRTL(e)),u=await l.getElementRects({reference:t,floating:e,strategy:i}),{x:g,y:h}=qs(u,n,p),m=n,S={},v=0;for(let O=0;O<c.length;O++){let{name:T,fn:R}=c[O],{x:L,y:U,data:V,reset:j}=await R({x:g,y:h,initialPlacement:n,placement:m,strategy:i,middlewareData:S,rects:u,platform:l,elements:{reference:t,floating:e}});g=L??g,h=U??h,S={...S,[T]:{...S[T],...V}},j&&v<=50&&(v++,typeof j=="object"&&(j.placement&&(m=j.placement),j.rects&&(u=j.rects===!0?await l.getElementRects({reference:t,floating:e,strategy:i}):j.rects),{x:g,y:h}=qs(u,m,p)),O=-1)}return{x:g,y:h,placement:m,strategy:i,middlewareData:S}};async function xi(t,e){var o;e===void 0&&(e={});let{x:n,y:i,platform:a,rects:l,elements:c,strategy:p}=t,{boundary:u="clippingAncestors",rootBoundary:g="viewport",elementContext:h="floating",altBoundary:m=!1,padding:S=0}=Ao(e,t),v=Zs(S),T=c[m?h==="floating"?"reference":"floating":h],R=tr(await a.getClippingRect({element:(o=await(a.isElement==null?void 0:a.isElement(T)))==null||o?T:T.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:u,rootBoundary:g,strategy:p})),L=h==="floating"?{x:n,y:i,width:l.floating.width,height:l.floating.height}:l.reference,U=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),V=await(a.isElement==null?void 0:a.isElement(U))?await(a.getScale==null?void 0:a.getScale(U))||{x:1,y:1}:{x:1,y:1},j=tr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:L,offsetParent:U,strategy:p}):L);return{top:(R.top-j.top+v.top)/V.y,bottom:(j.bottom-R.bottom+v.bottom)/V.y,left:(R.left-j.left+v.left)/V.x,right:(j.right-R.right+v.right)/V.x}}function zd(t,e,o){return(t?[...o.filter(i=>$t(i)===t),...o.filter(i=>$t(i)!==t)]:o.filter(i=>Rr(i)===i)).filter(i=>t?$t(i)===t||(e?Ks(i)!==i:!1):!0)}var vi=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,n,i;let{rects:a,middlewareData:l,placement:c,platform:p,elements:u}=e,{crossAxis:g=!1,alignment:h,allowedPlacements:m=hi,autoAlignment:S=!0,...v}=Ao(t,e),O=h!==void 0||m===hi?zd(h||null,S,m):m,T=await xi(e,v),R=((o=l.autoPlacement)==null?void 0:o.index)||0,L=O[R];if(L==null)return{};let U=js(L,a,await(p.isRTL==null?void 0:p.isRTL(u.floating)));if(c!==L)return{reset:{placement:O[0]}};let V=[T[Rr(L)],T[U[0]],T[U[1]]],j=[...((n=l.autoPlacement)==null?void 0:n.overflows)||[],{placement:L,overflows:V}],Pe=O[R+1];if(Pe)return{data:{index:R+1,overflows:j},reset:{placement:Pe}};let pt=j.map(Ce=>{let y=$t(Ce.placement);return[Ce.placement,y&&g?Ce.overflows.slice(0,2).reduce((x,k)=>x+k,0):Ce.overflows[0],Ce.overflows]}).sort((Ce,y)=>Ce[1]-y[1]),ut=((i=pt.filter(Ce=>Ce[2].slice(0,$t(Ce[0])?2:3).every(y=>y<=0))[0])==null?void 0:i[0])||pt[0][0];return ut!==c?{data:{index:R+1,overflows:j},reset:{placement:ut}}:{}}}};var Si=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:o,y:n,placement:i}=e,{mainAxis:a=!0,crossAxis:l=!1,limiter:c={fn:T=>{let{x:R,y:L}=T;return{x:R,y:L}}},...p}=Ao(t,e),u={x:o,y:n},g=await xi(e,p),h=Ro(Rr(i)),m=gi(h),S=u[m],v=u[h];if(a){let T=m==="y"?"top":"left",R=m==="y"?"bottom":"right",L=S+g[T],U=S-g[R];S=yi(L,S,U)}if(l){let T=h==="y"?"top":"left",R=h==="y"?"bottom":"right",L=v+g[T],U=v-g[R];v=yi(L,v,U)}let O=c.fn({...e,[m]:S,[h]:v});return{...O,data:{x:O.x-o,y:O.y-n,enabled:{[m]:a,[h]:l}}}}}};var Ci=Math.min,Tr=Math.max,ro=Math.round;var At=t=>({x:t,y:t});function Rt(t){return Qs(t)?(t.nodeName||"").toLowerCase():"#document"}function ke(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Tt(t){var e;return(e=(Qs(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Qs(t){return t instanceof Node||t instanceof ke(t).Node}function yt(t){return t instanceof Element||t instanceof ke(t).Element}function at(t){return t instanceof HTMLElement||t instanceof ke(t).HTMLElement}function Xs(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof ke(t).ShadowRoot}function Lr(t){let{overflow:e,overflowX:o,overflowY:n,display:i}=Me(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+o)&&!["inline","contents"].includes(i)}function Js(t){return["table","td","th"].includes(Rt(t))}function Lo(t){let e=Io(),o=Me(t);return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!e&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!e&&(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 el(t){let e=rr(t);for(;at(e)&&!oo(e);){if(Lo(e))return e;e=rr(e)}return null}function Io(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function oo(t){return["html","body","#document"].includes(Rt(t))}function Me(t){return ke(t).getComputedStyle(t)}function no(t){return yt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function rr(t){if(Rt(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Xs(t)&&t.host||Tt(t);return Xs(e)?e.host:e}function tl(t){let e=rr(t);return oo(e)?t.ownerDocument?t.ownerDocument.body:t.body:at(e)&&Lr(e)?e:tl(e)}function To(t,e,o){var n;e===void 0&&(e=[]),o===void 0&&(o=!0);let i=tl(t),a=i===((n=t.ownerDocument)==null?void 0:n.body),l=ke(i);return a?e.concat(l,l.visualViewport||[],Lr(i)?i:[],l.frameElement&&o?To(l.frameElement):[]):e.concat(i,To(i,[],o))}function nl(t){let e=Me(t),o=parseFloat(e.width)||0,n=parseFloat(e.height)||0,i=at(t),a=i?t.offsetWidth:o,l=i?t.offsetHeight:n,c=ro(o)!==a||ro(n)!==l;return c&&(o=a,n=l),{width:o,height:n,$:c}}function il(t){return yt(t)?t:t.contextElement}function Ir(t){let e=il(t);if(!at(e))return At(1);let o=e.getBoundingClientRect(),{width:n,height:i,$:a}=nl(e),l=(a?ro(o.width):o.width)/n,c=(a?ro(o.height):o.height)/i;return(!l||!Number.isFinite(l))&&(l=1),(!c||!Number.isFinite(c))&&(c=1),{x:l,y:c}}var Vd=At(0);function al(t){let e=ke(t);return!Io()||!e.visualViewport?Vd:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Gd(t,e,o){return e===void 0&&(e=!1),!o||e&&o!==ke(t)?!1:e}function io(t,e,o,n){e===void 0&&(e=!1),o===void 0&&(o=!1);let i=t.getBoundingClientRect(),a=il(t),l=At(1);e&&(n?yt(n)&&(l=Ir(n)):l=Ir(t));let c=Gd(a,o,n)?al(a):At(0),p=(i.left+c.x)/l.x,u=(i.top+c.y)/l.y,g=i.width/l.x,h=i.height/l.y;if(a){let m=ke(a),S=n&&yt(n)?ke(n):n,v=m.frameElement;for(;v&&n&&S!==m;){let O=Ir(v),T=v.getBoundingClientRect(),R=Me(v),L=T.left+(v.clientLeft+parseFloat(R.paddingLeft))*O.x,U=T.top+(v.clientTop+parseFloat(R.paddingTop))*O.y;p*=O.x,u*=O.y,g*=O.x,h*=O.y,p+=L,u+=U,v=ke(v).frameElement}}return tr({width:g,height:h,x:p,y:u})}function jd(t){let{rect:e,offsetParent:o,strategy:n}=t,i=at(o),a=Tt(o);if(o===a)return e;let l={scrollLeft:0,scrollTop:0},c=At(1),p=At(0);if((i||!i&&n!=="fixed")&&((Rt(o)!=="body"||Lr(a))&&(l=no(o)),at(o))){let u=io(o);c=Ir(o),p.x=u.x+o.clientLeft,p.y=u.y+o.clientTop}return{width:e.width*c.x,height:e.height*c.y,x:e.x*c.x-l.scrollLeft*c.x+p.x,y:e.y*c.y-l.scrollTop*c.y+p.y}}function Kd(t){return Array.from(t.getClientRects())}function sl(t){return io(Tt(t)).left+no(t).scrollLeft}function Zd(t){let e=Tt(t),o=no(t),n=t.ownerDocument.body,i=Tr(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),a=Tr(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),l=-o.scrollLeft+sl(t),c=-o.scrollTop;return Me(n).direction==="rtl"&&(l+=Tr(e.clientWidth,n.clientWidth)-i),{width:i,height:a,x:l,y:c}}function qd(t,e){let o=ke(t),n=Tt(t),i=o.visualViewport,a=n.clientWidth,l=n.clientHeight,c=0,p=0;if(i){a=i.width,l=i.height;let u=Io();(!u||u&&e==="fixed")&&(c=i.offsetLeft,p=i.offsetTop)}return{width:a,height:l,x:c,y:p}}function Yd(t,e){let o=io(t,!0,e==="fixed"),n=o.top+t.clientTop,i=o.left+t.clientLeft,a=at(t)?Ir(t):At(1),l=t.clientWidth*a.x,c=t.clientHeight*a.y,p=i*a.x,u=n*a.y;return{width:l,height:c,x:p,y:u}}function rl(t,e,o){let n;if(e==="viewport")n=qd(t,o);else if(e==="document")n=Zd(Tt(t));else if(yt(e))n=Yd(e,o);else{let i=al(t);n={...e,x:e.x-i.x,y:e.y-i.y}}return tr(n)}function ll(t,e){let o=rr(t);return o===e||!yt(o)||oo(o)?!1:Me(o).position==="fixed"||ll(o,e)}function Xd(t,e){let o=e.get(t);if(o)return o;let n=To(t,[],!1).filter(c=>yt(c)&&Rt(c)!=="body"),i=null,a=Me(t).position==="fixed",l=a?rr(t):t;for(;yt(l)&&!oo(l);){let c=Me(l),p=Lo(l);!p&&c.position==="fixed"&&(i=null),(a?!p&&!i:!p&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Lr(l)&&!p&&ll(t,l))?n=n.filter(g=>g!==l):i=c,l=rr(l)}return e.set(t,n),n}function Qd(t){let{element:e,boundary:o,rootBoundary:n,strategy:i}=t,l=[...o==="clippingAncestors"?Xd(e,this._c):[].concat(o),n],c=l[0],p=l.reduce((u,g)=>{let h=rl(e,g,i);return u.top=Tr(h.top,u.top),u.right=Ci(h.right,u.right),u.bottom=Ci(h.bottom,u.bottom),u.left=Tr(h.left,u.left),u},rl(e,c,i));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function Jd(t){return nl(t)}function ep(t,e,o){let n=at(e),i=Tt(e),a=o==="fixed",l=io(t,!0,a,e),c={scrollLeft:0,scrollTop:0},p=At(0);if(n||!n&&!a)if((Rt(e)!=="body"||Lr(i))&&(c=no(e)),n){let u=io(e,!0,a,e);p.x=u.x+e.clientLeft,p.y=u.y+e.clientTop}else i&&(p.x=sl(i));return{x:l.left+c.scrollLeft-p.x,y:l.top+c.scrollTop-p.y,width:l.width,height:l.height}}function ol(t,e){return!at(t)||Me(t).position==="fixed"?null:e?e(t):t.offsetParent}function cl(t,e){let o=ke(t);if(!at(t))return o;let n=ol(t,e);for(;n&&Js(n)&&Me(n).position==="static";)n=ol(n,e);return n&&(Rt(n)==="html"||Rt(n)==="body"&&Me(n).position==="static"&&!Lo(n))?o:n||el(t)||o}var tp=async function(t){let{reference:e,floating:o,strategy:n}=t,i=this.getOffsetParent||cl,a=this.getDimensions;return{reference:ep(e,await i(o),n),floating:{x:0,y:0,...await a(o)}}};function rp(t){return Me(t).direction==="rtl"}var No={convertOffsetParentRelativeRectToViewportRelativeRect:jd,getDocumentElement:Tt,getClippingRect:Qd,getOffsetParent:cl,getElementRects:tp,getClientRects:Kd,getDimensions:Jd,getScale:Ir,isElement:yt,isRTL:rp};var dl=(t,e,o)=>{let n=new Map,i={platform:No,...o},a={...i.platform,_c:n};return Ys(t,e,{...i,platform:a})};function pl(t){return op(t)}function Oi(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function op(t){for(let e=t;e;e=Oi(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Oi(t);e;e=Oi(e)){if(!(e instanceof Element))continue;let o=getComputedStyle(e);if(o.display!=="contents"&&(o.position!=="static"||o.filter!=="none"||e.tagName==="BODY"))return e}return null}async function ul(t,e,o){return dl(t,e,{platform:{...No,getOffsetParent:n=>No.getOffsetParent(n,pl)},middleware:[Si({crossAxis:!0}),vi({allowedPlacements:[o]})]})}var Hr=b(N());var Qc=b(N());var rc=b(Z()),we=b(se()),st=b(N());var fl=b(Z());var hl=fl.css`
1230
- `;var Po=b(N()),np="ft-app-info",or=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};or.eventName="authentication-change";var ip={session:(t,e)=>{(0,Po.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>I.dispatchEvent(new or(e.payload)),0))}},I=Po.FtReduxStore.get({name:np,reducers:ip,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 Ei=b(N());var nr=class t{static get(e){let{baseUrl:o,apiIntegrationIdentifier:n}=I.getState(),i=e??n;if(o&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,i,!0)}static await(e){return new Promise(o=>{let n=t.get(e);if(n)o(n);else{let i=I.subscribe(()=>{n=t.get(e),n&&(i(),o(n))})}})}};var _o=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:nr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):nr.await()}};var Ue=class extends _o{constructor(e=!0,o){var n;super(o),this.sortObjectFields=(a,l)=>typeof l!="object"||l==null||Array.isArray(l)?l:Object.fromEntries(Object.entries(l).sort(([c],[p])=>c.localeCompare(p)));let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new Ei.CacheRegistry,this.cache=e?i.commonCache:new Ei.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((o,n)=>0|31*o+n.charCodeAt(0),0))}};var ko=class extends Ue{async listMyBookmarks(){let e=I.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var wi=class{addCommand(e,o=!1){I.commands.add(e,o)}consumeCommand(e){return I.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new wi;var Ke=b(N());var yl,Nr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},ap=Symbol("clearAfterUnitTest"),$o=class extends(0,Ke.withEventBus)(Ue){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[yl]=()=>{this.defaultMessages={},this.cache=new Ke.CacheRegistry,this.listeners={}},this.currentUiLocale=I.getState().uiLocale,I.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=I.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let o=e.name.toLowerCase();this.cache.setFinal(o,e),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,o){var n;if(e=e.toLowerCase(),o&&Object.keys(o).length>0){let i={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...o};(0,Ke.deepEqual)(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var o,n;return this.fetchContext(e),(n=(o=this.cache.getNow(e))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,o){let n=e.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(e,o,...n){var i;let a=e.toLowerCase(),l=this.resolveContext(a);return new Ke.ParametrizedLabelResolver((i=this.defaultMessages[a])!==null&&i!==void 0?i:{},l).resolve(o,...n)}async fetchContext(e){let o=!this.cache.has(e),n;try{n=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),o&&await this.notify(e)}catch(i){!(i instanceof Ke.CanceledPromiseError)&&o&&console.error(i)}return n}subscribe(e,o){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(o),()=>{var i;return(i=this.listeners[e])===null||i===void 0?void 0:i.delete(o)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new Nr({loadedContexts:e})),this.dispatchEvent(new Nr({loadedContexts:e})),await Promise.all(e.map(o=>this.notify(o,!1)))}async notify(e,o=!0){o&&(document.body.dispatchEvent(new Nr({loadedContexts:[e]})),this.dispatchEvent(new Nr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>(0,Ke.delay)(0).then(()=>n()).catch(()=>null)))}};yl=ap;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends $o{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends $o{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Pr=window.FluidTopicsI18nService,Do=window.FluidTopicsCustomI18nService;var gl=b(N()),Ai=class{highlightHtml(e,o,n){(0,gl.highlightHtml)(e,o,n)}};window.FluidTopicsHighlightHtmlService=new Ai;var lp=b(bl(),1);var xl;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(xl||(xl={}));var vl;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(vl||(vl={}));var Sl;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Sl||(Sl={}));var Cl;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Cl||(Cl={}));var Ol;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ol||(Ol={}));var El;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(El||(El={}));var wl;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__AI_TRANSLATE="DOCUMENT__AI_TRANSLATE",t.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__DISPLAY="TOPIC__DISPLAY",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(wl||(wl={}));var Al;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(Al||(Al={}));var Rl;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT"})(Rl||(Rl={}));var Tl;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Tl||(Tl={}));var Ll;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Ll||(Ll={}));var Il;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Il||(Il={}));var Nl;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Nl||(Nl={}));var Pl;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(Pl||(Pl={}));var _l;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(_l||(_l={}));var kl;(function(t){t.ASC="ASC",t.DESC="DESC"})(kl||(kl={}));var $l;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})($l||($l={}));var Dl;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Dl||(Dl={}));var Bl;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Bl||(Bl={}));var Ml;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Ml||(Ml={}));var Ul;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Ul||(Ul={}));var Fl;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Fl||(Fl={}));var zl;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(zl||(zl={}));var Hl;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Hl||(Hl={}));var Wl;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Wl||(Wl={}));var me;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(me||(me={}));var Ze;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Ze||(Ze={}));var Vl;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Vl||(Vl={}));var Gl;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Gl||(Gl={}));var jl;(function(t){t.USER="USER",t.ASSISTANT="ASSISTANT"})(jl||(jl={}));var Kl;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Kl||(Kl={}));var Zl;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Zl||(Zl={}));var sp={[me.PERSONAL_BOOK_SHARE_USER]:[me.PERSONAL_BOOK_USER],[me.HTML_EXPORT_USER]:[me.PERSONAL_BOOK_USER],[me.PDF_EXPORT_USER]:[me.PERSONAL_BOOK_USER],[me.KHUB_ADMIN]:[me.CONTENT_PUBLISHER],[me.ADMIN]:[me.KHUB_ADMIN,me.USERS_ADMIN,me.PORTAL_ADMIN],[me.GENERATIVE_AI_EXPORT_USER]:[me.GENERATIVE_AI_USER]};function ql(t,e){return t===e||(sp[t]??[]).some(o=>ql(o,e))}function Yl(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(n=>ql(n,e))}var Uo=class extends Ue{async listMySearches(){let{session:e}=I.getState();return Yl(e,me.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Xl=b(N());var Ri=class{isDate(e){var o,n,i,a;return(a=(i=((n=(o=I.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(c=>c.key===e))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(e,o){var n,i,a;return Xl.DateFormatter.format(e,(n=o?.locale)!==null&&n!==void 0?n:I.getState().uiLocale,(i=o?.longFormat)!==null&&i!==void 0?i:!1,(a=o?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new Ri;var Ql=b(N());var ao=class{static get(e,o){var n,i;let a=I.getState(),{lang:l,region:c}=(i=(n=a.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&i!==void 0?i:{lang:"en",region:"US"};return new Ql.SearchPlaceConverter(a.baseUrl,e??20,a.searchInAllLanguagesAllowed,o??`${l}-${c}`)}};var Ti=class{urlToSearchRequest(e){return ao.get().parse(e)}searchRequestToUrl(e){return ao.get().serialize(e)}};window.FluidTopicsUrlService=new Ti;var Bt=b(N());var ir=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};ir.eventName="change";var Li=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let o=sessionStorage.getItem(this.itemName(e));return o?JSON.parse(o):void 0}set(e,o){sessionStorage.setItem(this.itemName(e),JSON.stringify(o))}},Jl=new Li;var Fo=class t extends Bt.WithEventBus{static build(){return new t(window.history,Jl,()=>window.location,!1)}constructor(e,o,n,i){var a,l;super(),this.history=e,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(l=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&l!==void 0?l:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}setCurrentState(e,o=!1){let n=o&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},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,Bt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new ir(this.currentItem())),0)}installProxies(){let e=o=>(n,i,[a,l,c])=>{let p=o(),u={...p===this.currentIndex?this.currentState:void 0,...a,index:p,href:typeof c=="string"?c:(c??this.windowLocation()).href};n.apply(i,[u,l,c]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.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(e){for(let o=this.history.length-1;o>=0;o--)e?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(e){var o;let n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(o=e?.title)!==null&&o!==void 0?o:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(e){this.addEventListener(ir.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(ir.eventName,e)}currentItem(){return(0,Bt.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Bt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,Bt.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var o;let n=(o=this.states[e])===null||o===void 0?void 0:o.majorStateId;if(!n)return e;let i=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,n);)this.hasState(a)&&(i=a),a++;return i}buildCurrentState(){var e,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&o!==void 0?o:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,o){var n;if(!this.hasState(e))return!1;let i=o??this.currentState.majorStateId,a=(n=this.states[e])===null||n===void 0?void 0:n.majorStateId;return a==null||a!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Fo.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});var ec=I;function tc(t,e){var o;return ec.getState().authenticationRequired&&!(!((o=ec.getState().session)===null||o===void 0)&&o.sessionAuthenticated)?Promise.resolve(e):t()}var be=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(a=(i<3?l(a):i>3?l(e,o,a):l(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},oe=class extends st.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=()=>nr.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new st.CacheRegistry,this.cleanSessionDebouncer=new st.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return rc.html`
1230
+ `;var Po=b(N()),np="ft-app-info",or=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};or.eventName="authentication-change";var ip={session:(t,e)=>{(0,Po.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>I.dispatchEvent(new or(e.payload)),0))}},I=Po.FtReduxStore.get({name:np,reducers:ip,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 Ei=b(N());var nr=class t{static get(e){let{baseUrl:o,apiIntegrationIdentifier:n}=I.getState(),i=e??n;if(o&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,i,!0)}static await(e){return new Promise(o=>{let n=t.get(e);if(n)o(n);else{let i=I.subscribe(()=>{n=t.get(e),n&&(i(),o(n))})}})}};var _o=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:nr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):nr.await()}};var Ue=class extends _o{constructor(e=!0,o){var n;super(o),this.sortObjectFields=(a,l)=>typeof l!="object"||l==null||Array.isArray(l)?l:Object.fromEntries(Object.entries(l).sort(([c],[p])=>c.localeCompare(p)));let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new Ei.CacheRegistry,this.cache=e?i.commonCache:new Ei.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((o,n)=>0|31*o+n.charCodeAt(0),0))}};var ko=class extends Ue{async listMyBookmarks(){let e=I.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var wi=class{addCommand(e,o=!1){I.commands.add(e,o)}consumeCommand(e){return I.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new wi;var Ke=b(N());var yl,Nr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},ap=Symbol("clearAfterUnitTest"),$o=class extends(0,Ke.withEventBus)(Ue){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[yl]=()=>{this.defaultMessages={},this.cache=new Ke.CacheRegistry,this.listeners={}},this.currentUiLocale=I.getState().uiLocale,I.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=I.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let o=e.name.toLowerCase();this.cache.setFinal(o,e),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,o){var n;if(e=e.toLowerCase(),o&&Object.keys(o).length>0){let i={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...o};(0,Ke.deepEqual)(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var o,n;return this.fetchContext(e),(n=(o=this.cache.getNow(e))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,o){let n=e.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(e,o,...n){var i;let a=e.toLowerCase(),l=this.resolveContext(a);return new Ke.ParametrizedLabelResolver((i=this.defaultMessages[a])!==null&&i!==void 0?i:{},l).resolve(o,...n)}async fetchContext(e){let o=!this.cache.has(e),n;try{n=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),o&&await this.notify(e)}catch(i){!(i instanceof Ke.CanceledPromiseError)&&o&&console.error(i)}return n}subscribe(e,o){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(o),()=>{var i;return(i=this.listeners[e])===null||i===void 0?void 0:i.delete(o)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new Nr({loadedContexts:e})),this.dispatchEvent(new Nr({loadedContexts:e})),await Promise.all(e.map(o=>this.notify(o,!1)))}async notify(e,o=!0){o&&(document.body.dispatchEvent(new Nr({loadedContexts:[e]})),this.dispatchEvent(new Nr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>(0,Ke.delay)(0).then(()=>n()).catch(()=>null)))}};yl=ap;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends $o{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends $o{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Pr=window.FluidTopicsI18nService,Do=window.FluidTopicsCustomI18nService;var gl=b(N()),Ai=class{highlightHtml(e,o,n){(0,gl.highlightHtml)(e,o,n)}};window.FluidTopicsHighlightHtmlService=new Ai;var lp=b(bl(),1);var xl;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(xl||(xl={}));var vl;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(vl||(vl={}));var Sl;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Sl||(Sl={}));var Cl;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Cl||(Cl={}));var Ol;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ol||(Ol={}));var El;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(El||(El={}));var wl;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__AI_TRANSLATE="DOCUMENT__AI_TRANSLATE",t.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__DISPLAY="TOPIC__DISPLAY",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(wl||(wl={}));var Al;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(Al||(Al={}));var Rl;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW"})(Rl||(Rl={}));var Tl;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Tl||(Tl={}));var Ll;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Ll||(Ll={}));var Il;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Il||(Il={}));var Nl;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Nl||(Nl={}));var Pl;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(Pl||(Pl={}));var _l;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(_l||(_l={}));var kl;(function(t){t.ASC="ASC",t.DESC="DESC"})(kl||(kl={}));var $l;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})($l||($l={}));var Dl;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Dl||(Dl={}));var Bl;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Bl||(Bl={}));var Ml;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Ml||(Ml={}));var Ul;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Ul||(Ul={}));var Fl;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Fl||(Fl={}));var zl;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(zl||(zl={}));var Hl;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Hl||(Hl={}));var Wl;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Wl||(Wl={}));var me;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(me||(me={}));var Ze;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Ze||(Ze={}));var Vl;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Vl||(Vl={}));var Gl;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Gl||(Gl={}));var jl;(function(t){t.USER="USER",t.ASSISTANT="ASSISTANT"})(jl||(jl={}));var Kl;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Kl||(Kl={}));var Zl;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Zl||(Zl={}));var sp={[me.PERSONAL_BOOK_SHARE_USER]:[me.PERSONAL_BOOK_USER],[me.HTML_EXPORT_USER]:[me.PERSONAL_BOOK_USER],[me.PDF_EXPORT_USER]:[me.PERSONAL_BOOK_USER],[me.KHUB_ADMIN]:[me.CONTENT_PUBLISHER],[me.ADMIN]:[me.KHUB_ADMIN,me.USERS_ADMIN,me.PORTAL_ADMIN],[me.GENERATIVE_AI_EXPORT_USER]:[me.GENERATIVE_AI_USER]};function ql(t,e){return t===e||(sp[t]??[]).some(o=>ql(o,e))}function Yl(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(n=>ql(n,e))}var Uo=class extends Ue{async listMySearches(){let{session:e}=I.getState();return Yl(e,me.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Xl=b(N());var Ri=class{isDate(e){var o,n,i,a;return(a=(i=((n=(o=I.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(c=>c.key===e))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(e,o){var n,i,a;return Xl.DateFormatter.format(e,(n=o?.locale)!==null&&n!==void 0?n:I.getState().uiLocale,(i=o?.longFormat)!==null&&i!==void 0?i:!1,(a=o?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new Ri;var Ql=b(N());var ao=class{static get(e,o){var n,i;let a=I.getState(),{lang:l,region:c}=(i=(n=a.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&i!==void 0?i:{lang:"en",region:"US"};return new Ql.SearchPlaceConverter(a.baseUrl,e??20,a.searchInAllLanguagesAllowed,o??`${l}-${c}`)}};var Ti=class{urlToSearchRequest(e){return ao.get().parse(e)}searchRequestToUrl(e){return ao.get().serialize(e)}};window.FluidTopicsUrlService=new Ti;var Bt=b(N());var ir=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};ir.eventName="change";var Li=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let o=sessionStorage.getItem(this.itemName(e));return o?JSON.parse(o):void 0}set(e,o){sessionStorage.setItem(this.itemName(e),JSON.stringify(o))}},Jl=new Li;var Fo=class t extends Bt.WithEventBus{static build(){return new t(window.history,Jl,()=>window.location,!1)}constructor(e,o,n,i){var a,l;super(),this.history=e,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(l=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&l!==void 0?l:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}setCurrentState(e,o=!1){let n=o&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},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,Bt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new ir(this.currentItem())),0)}installProxies(){let e=o=>(n,i,[a,l,c])=>{let p=o(),u={...p===this.currentIndex?this.currentState:void 0,...a,index:p,href:typeof c=="string"?c:(c??this.windowLocation()).href};n.apply(i,[u,l,c]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.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(e){for(let o=this.history.length-1;o>=0;o--)e?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(e){var o;let n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(o=e?.title)!==null&&o!==void 0?o:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(e){this.addEventListener(ir.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(ir.eventName,e)}currentItem(){return(0,Bt.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Bt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,Bt.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var o;let n=(o=this.states[e])===null||o===void 0?void 0:o.majorStateId;if(!n)return e;let i=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,n);)this.hasState(a)&&(i=a),a++;return i}buildCurrentState(){var e,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&o!==void 0?o:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,o){var n;if(!this.hasState(e))return!1;let i=o??this.currentState.majorStateId,a=(n=this.states[e])===null||n===void 0?void 0:n.majorStateId;return a==null||a!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Fo.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});var ec=I;function tc(t,e){var o;return ec.getState().authenticationRequired&&!(!((o=ec.getState().session)===null||o===void 0)&&o.sessionAuthenticated)?Promise.resolve(e):t()}var be=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(a=(i<3?l(a):i>3?l(e,o,a):l(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},oe=class extends st.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=()=>nr.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new st.CacheRegistry,this.cleanSessionDebouncer=new st.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return rc.html`
1231
1231
  <slot></slot>
1232
1232
  `}connectedCallback(){super.connectedCallback(),I.addEventListener(or.eventName,this.reloadConfiguration)}disconnectedCallback(){I.addEventListener(or.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var o,n,i,a,l,c,p;super.update(e),e.has("baseUrl")&&(I.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&I.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&I.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&I.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&I.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&I.actions.noCustom(this.noCustom),e.has("editorMode")&&I.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&I.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&I.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(u=>Pr.addContext(u)),e.has("openExternalDocumentInNewTab")&&I.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&I.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&I.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(I.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),I.actions.availableUiLocales((i=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&i!==void 0?i:[]),I.actions.searchInAllLanguagesAllowed((l=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&l!==void 0?l:!1)),e.has("authenticationRequired")&&I.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&I.actions.availableContentLocales((p=(c=this.availableContentLocales)===null||c===void 0?void 0:c.contentLocales)!==null&&p!==void 0?p:[]),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 e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}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",()=>tc(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};oe.elementDefinitions={};oe.styles=hl;be([(0,we.property)()],oe.prototype,"baseUrl",void 0);be([(0,we.property)()],oe.prototype,"apiIntegrationIdentifier",void 0);be([(0,we.property)()],oe.prototype,"apiIntegrationAppVersion",void 0);be([(0,we.property)()],oe.prototype,"uiLocale",void 0);be([(0,st.jsonProperty)(null)],oe.prototype,"availableUiLocales",void 0);be([(0,st.jsonProperty)(null)],oe.prototype,"metadataConfiguration",void 0);be([(0,we.property)({type:Boolean})],oe.prototype,"editorMode",void 0);be([(0,we.property)({type:Boolean})],oe.prototype,"noCustom",void 0);be([(0,we.property)({type:Boolean})],oe.prototype,"openExternalDocumentInNewTab",void 0);be([(0,we.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],oe.prototype,"noCustomComponent",void 0);be([(0,we.property)({type:Boolean})],oe.prototype,"withManualResources",void 0);be([(0,we.property)({type:Boolean})],oe.prototype,"navigatorOnline",void 0);be([(0,we.property)({type:Boolean})],oe.prototype,"forcedOffline",void 0);be([(0,we.property)({type:Object})],oe.prototype,"apiProvider",void 0);be([(0,we.property)({type:Boolean})],oe.prototype,"authenticationRequired",void 0);be([(0,st.jsonProperty)([])],oe.prototype,"messageContexts",void 0);be([(0,st.jsonProperty)(void 0)],oe.prototype,"session",void 0);be([(0,we.state)()],oe.prototype,"localesConfiguration",void 0);be([(0,we.state)()],oe.prototype,"availableContentLocales",void 0);var ea=b(se());function cp(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let o,n,i;if(Array.isArray(t)){if(o=t.length,o!=e.length)return!1;for(n=o;n--!==0;)if(!zo(t[n],e[n]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;for(n of t.entries())if(!zo(n[1],e.get(n[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let a=l=>Object.keys(l).filter(c=>l[c]!=null);if(i=a(t),o=i.length,o!==a(e).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,i[n]))return!1;for(n=o;n--!==0;){let l=i[n];if(!zo(t[l],e[l]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function zo(t,e){try{return cp(t,e)}catch{return!1}}function so(t,e){return!zo(t,e)}function Ho(t,e){let o=n=>n[t]===!0;return n=>{if(o(n))return n;let i=e(n);return i[t]=!0,i}}var oc=b(se(),1);var Ii=t=>{let e=t??{};return(o,n)=>{var i;let a={hasChanged:so,attribute:!1,...e};(0,oc.property)(a)(o,n);let l=o.constructor;l.reduxProperties=new Map(l.reduxProperties),l.reduxProperties.set(n,{selector:(i=e.selector)!==null&&i!==void 0?i:c=>c[n],store:e.store})}};var Wo=class{constructor(){this.queue=[]}add(e,o=!1){o&&this.clear(e.type),this.queue.push(e)}consume(e){let o=this.queue.find(n=>n.type===e);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(e){typeof e=="string"?this.queue=this.queue.filter(o=>o.type!==e):this.queue=this.queue.filter(o=>!e.test(o.type))}};var ar=b(se(),1);var nc=b(se(),1);function ic(t,e){let o=()=>JSON.parse(JSON.stringify(t));return(0,nc.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:so,...e??{}})}var Vo=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,o){return this.callbacks=[e],this.debounce(o)}queue(e,o){return this.callbacks.push(e),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,o;let n=[...this.callbacks];this.callbacks=[];let i=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let l of n)try{await l()}catch(c){i(c);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var sc=b(Z(),1);var Go=globalThis,dp=Go.ShadowRoot&&(Go.ShadyCSS===void 0||Go.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,f0=Symbol();var ac=(t,e)=>{if(dp)t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of e){let n=document.createElement("style"),i=Go.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=o.cssText,t.appendChild(n)}};var jo=class extends sc.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([i,a])=>e.registry.define(i,a)));let o={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return ac(n,e.elementStyles),n}};function lc(t,e,...o){var n;let i=t.querySelector(e);for(let a of o)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(a);return i}var $r=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(a=(i<3?l(a):i>3?l(e,o,a):l(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},uc,cc=Symbol("constructorPrototype"),dc=Symbol("constructorName"),fc=Symbol("exportpartsDebouncer"),pc=Symbol("dynamicDependenciesLoaded"),kr=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};kr.eventName="exportparts-updated";var gt=class extends jo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[uc]=new Vo(5),this.scheduleExportpartsUpdate=()=>{var e,o,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[fc].run(()=>{var i,a;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[dc]=this.constructor.name,this[cc]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[dc]&&Object.setPrototypeOf(this,this[cc])}connectedCallback(){var e;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[pc]||(o[pc]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(kr.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(kr.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new kr)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:n,shadowPath:i}=this.elementToFocus;if(n!=null){let a=[...i??[],n];o=lc(this.shadowRoot,...a)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var o,n,i;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}setExportpartsAttribute(e){var o,n,i,a,l,c;let p=m=>m!=null&&m.trim().length>0,u=e.filter(p).map(m=>m.trim());if(u.length===0){this.exportparts=void 0;return}let g=new Set;for(let m of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let S=(a=(i=m.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&a!==void 0?a:[],v=(c=(l=m.getAttribute("exportparts"))===null||l===void 0?void 0:l.split(",").map(T=>T.split(":")[1]))!==null&&c!==void 0?c:[],O=[...S,...v].filter(p).map(T=>T.trim());for(let T of O)g.add(T)}if(g.size===0){this.exportparts=void 0;return}let h=[...g.values()].flatMap(m=>u.map(S=>`${m}:${S}--${m}`));this.exportparts=[...this.part,...h].join(", ")}};uc=fc;$r([(0,ar.property)()],gt.prototype,"exportpartsPrefix",void 0);$r([ic([])],gt.prototype,"exportpartsPrefixes",void 0);$r([(0,ar.property)({reflect:!0})],gt.prototype,"exportparts",void 0);$r([(0,ar.property)()],gt.prototype,"customStylesheet",void 0);$r([(0,ar.property)()],gt.prototype,"elementToFocus",void 0);$r([(0,ar.state)()],gt.prototype,"useAdoptedStyleSheets",void 0);function Ko(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var lo=Symbol("internalReduxEventsUnsubscribers"),Mt=Symbol("internalStoresUnsubscribers"),sr=Symbol("internalStores"),pp=Ho(Symbol("withRedux"),function(t){var e,o,n;class i extends t{constructor(){super(...arguments),this[e]=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[sr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[sr].values()][0]}getStore(l){return l==null?this.getUnnamedStore():this[sr].get(l)}addStore(l,c){var p;c=(p=c??l.name)!==null&&p!==void 0?p:"default-store",this.unsubscribeFromStore(c),this[sr].set(c,l),this.subscribeToStore(c,l),this.updateFromStores()}removeStore(l){let c=typeof l=="string"?l:l.name;this.unsubscribeFromStore(c),this[sr].delete(c)}setupStores(){this.unsubscribeFromStores(),this[sr].forEach((l,c)=>this.subscribeToStore(c,l)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((l,c)=>{let p=this.constructor.getPropertyOptions(c);if(!p?.attribute||!this.hasAttribute(typeof p?.attribute=="string"?p.attribute:c)){let u=this.getStore(l.store);u&&(l.store?this[Mt].has(l.store):this[Mt].size>0)&&(this[c]=l.selector(u.getState(),this))}})}subscribeToStore(l,c){var p;this[Mt].set(l,c.subscribe(()=>this.updateFromStores())),this[lo].set(l,[]),Ko(c)&&c.eventBus&&((p=this.reduxConstructor.reduxEventListeners)===null||p===void 0||p.forEach((u,g)=>{if(typeof this[g]=="function"&&(!u.store||c.name===u.store)){let h=m=>this[g](m);c.addEventListener(u.eventName,h),this[lo].get(l).push(()=>c.removeEventListener(u.eventName,h))}})),this.onStoreAvailable(l)}unsubscribeFromStores(){this[Mt].forEach((l,c)=>this.unsubscribeFromStore(c))}unsubscribeFromStore(l){var c;this[Mt].has(l)&&this[Mt].get(l)(),this[Mt].delete(l),(c=this[lo].get(l))===null||c===void 0||c.forEach(p=>p()),this[lo].delete(l)}onStoreAvailable(l){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Mt,o=sr,n=lo,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),hc=class extends pp(gt){};function qe(t){for(var e=arguments.length,o=Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];if(0)var i,a;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(l){return"'"+l+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Lt(t){return!!t&&!!t[ie]}function lt(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===xp}(t)||Array.isArray(t)||!!t[Sc]||!!(!((e=t.constructor)===null||e===void 0)&&e[Sc])||Ui(t)||Fi(t))}function lr(t,e,o){o===void 0&&(o=!1),Mr(t)===0?(o?Object.keys:Br)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,i){return e(i,n,t)})}function Mr(t){var e=t[ie];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Ui(t)?2:Fi(t)?3:0}function Dr(t,e){return Mr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function up(t,e){return Mr(t)===2?t.get(e):t[e]}function Cc(t,e,o){var n=Mr(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function Oc(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Ui(t){return mp&&t instanceof Map}function Fi(t){return bp&&t instanceof Set}function Ut(t){return t.o||t.t}function zi(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Ac(t);delete e[ie];for(var o=Br(e),n=0;n<o.length;n++){var i=o[n],a=e[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function Hi(t,e){return e===void 0&&(e=!1),Wi(t)||Lt(t)||!lt(t)||(Mr(t)>1&&(t.set=t.add=t.clear=t.delete=fp),Object.freeze(t),e&&lr(t,function(o,n){return Hi(n,!0)},!0)),t}function fp(){qe(2)}function Wi(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function mt(t){var e=Mi[t];return e||qe(18,t),e}function hp(t,e){Mi[t]||(Mi[t]=e)}function $i(){return po}function Ni(t,e){e&&(mt("Patches"),t.u=[],t.s=[],t.v=e)}function Zo(t){Di(t),t.p.forEach(yp),t.p=null}function Di(t){t===po&&(po=t.l)}function yc(t){return po={p:[],l:po,h:t,m:!0,_:0}}function yp(t){var e=t[ie];e.i===0||e.i===1?e.j():e.g=!0}function Pi(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||mt("ES5").S(e,t,n),n?(o[ie].P&&(Zo(e),qe(4)),lt(t)&&(t=qo(e,t),e.l||Yo(e,t)),e.u&&mt("Patches").M(o[ie].t,t,e.u,e.s)):t=qo(e,o,[]),Zo(e),e.u&&e.v(e.u,e.s),t!==wc?t:void 0}function qo(t,e,o){if(Wi(e))return e;var n=e[ie];if(!n)return lr(e,function(c,p){return gc(t,n,e,c,p,o)},!0),e;if(n.A!==t)return e;if(!n.P)return Yo(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=zi(n.k):n.o,a=i,l=!1;n.i===3&&(a=new Set(i),i.clear(),l=!0),lr(a,function(c,p){return gc(t,n,i,c,p,o,l)}),Yo(t,i,!1),o&&t.u&&mt("Patches").N(n,o,t.u,t.s)}return n.o}function gc(t,e,o,n,i,a,l){if(Lt(i)){var c=qo(t,i,a&&e&&e.i!==3&&!Dr(e.R,n)?a.concat(n):void 0);if(Cc(o,n,c),!Lt(c))return;t.m=!1}else l&&o.add(i);if(lt(i)&&!Wi(i)){if(!t.h.D&&t._<1)return;qo(t,i),e&&e.A.l||Yo(t,i)}}function Yo(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&Hi(e,o)}function _i(t,e){var o=t[ie];return(o?Ut(o):t)[e]}function mc(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var n=Object.getOwnPropertyDescriptor(o,e);if(n)return n;o=Object.getPrototypeOf(o)}}function Ft(t){t.P||(t.P=!0,t.l&&Ft(t.l))}function ki(t){t.o||(t.o=zi(t.t))}function Bi(t,e,o){var n=Ui(e)?mt("MapSet").F(e,o):Fi(e)?mt("MapSet").T(e,o):t.O?function(i,a){var l=Array.isArray(i),c={i:l?1:0,A:a?a.A:$i(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},p=c,u=uo;l&&(p=[c],u=co);var g=Proxy.revocable(p,u),h=g.revoke,m=g.proxy;return c.k=m,c.j=h,m}(e,o):mt("ES5").J(e,o);return(o?o.A:$i()).p.push(n),n}function gp(t){return Lt(t)||qe(22,t),function e(o){if(!lt(o))return o;var n,i=o[ie],a=Mr(o);if(i){if(!i.P&&(i.i<4||!mt("ES5").K(i)))return i.t;i.I=!0,n=bc(o,a),i.I=!1}else n=bc(o,a);return lr(n,function(l,c){i&&up(i.t,l)===c||Cc(n,l,e(c))}),a===3?new Set(n):n}(t)}function bc(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return zi(t)}function Ec(){function t(l,c){var p=a[l];return p?p.enumerable=c:a[l]=p={configurable:!0,enumerable:c,get:function(){var u=this[ie];return uo.get(u,l)},set:function(u){var g=this[ie];uo.set(g,l,u)}},p}function e(l){for(var c=l.length-1;c>=0;c--){var p=l[c][ie];if(!p.P)switch(p.i){case 5:n(p)&&Ft(p);break;case 4:o(p)&&Ft(p)}}}function o(l){for(var c=l.t,p=l.k,u=Br(p),g=u.length-1;g>=0;g--){var h=u[g];if(h!==ie){var m=c[h];if(m===void 0&&!Dr(c,h))return!0;var S=p[h],v=S&&S[ie];if(v?v.t!==m:!Oc(S,m))return!0}}var O=!!c[ie];return u.length!==Br(c).length+(O?0:1)}function n(l){var c=l.k;if(c.length!==l.t.length)return!0;var p=Object.getOwnPropertyDescriptor(c,c.length-1);if(p&&!p.get)return!0;for(var u=0;u<c.length;u++)if(!c.hasOwnProperty(u))return!0;return!1}function i(l){l.g&&qe(3,JSON.stringify(Ut(l)))}var a={};hp("ES5",{J:function(l,c){var p=Array.isArray(l),u=function(h,m){if(h){for(var S=Array(m.length),v=0;v<m.length;v++)Object.defineProperty(S,""+v,t(v,!0));return S}var O=Ac(m);delete O[ie];for(var T=Br(O),R=0;R<T.length;R++){var L=T[R];O[L]=t(L,h||!!O[L].enumerable)}return Object.create(Object.getPrototypeOf(m),O)}(p,l),g={i:p?5:4,A:c?c.A:$i(),P:!1,I:!1,R:{},l:c,t:l,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,ie,{value:g,writable:!0}),u},S:function(l,c,p){p?Lt(c)&&c[ie].A===l&&e(l.p):(l.u&&function u(g){if(g&&typeof g=="object"){var h=g[ie];if(h){var m=h.t,S=h.k,v=h.R,O=h.i;if(O===4)lr(S,function(V){V!==ie&&(m[V]!==void 0||Dr(m,V)?v[V]||u(S[V]):(v[V]=!0,Ft(h)))}),lr(m,function(V){S[V]!==void 0||Dr(S,V)||(v[V]=!1,Ft(h))});else if(O===5){if(n(h)&&(Ft(h),v.length=!0),S.length<m.length)for(var T=S.length;T<m.length;T++)v[T]=!1;else for(var R=m.length;R<S.length;R++)v[R]=!0;for(var L=Math.min(S.length,m.length),U=0;U<L;U++)S.hasOwnProperty(U)||(v[U]=!0),v[U]===void 0&&u(S[U])}}}}(l.p[0]),e(l.p))},K:function(l){return l.i===4?o(l):n(l)}})}var xc,po,Vi=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",mp=typeof Map<"u",bp=typeof Set<"u",vc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",wc=Vi?Symbol.for("immer-nothing"):((xc={})["immer-nothing"]=!0,xc),Sc=Vi?Symbol.for("immer-draftable"):"__$immer_draftable",ie=Vi?Symbol.for("immer-state"):"__$immer_state";var xp=""+Object.prototype.constructor,Br=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Ac=Object.getOwnPropertyDescriptors||function(t){var e={};return Br(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},Mi={},uo={get:function(t,e){if(e===ie)return t;var o=Ut(t);if(!Dr(o,e))return function(i,a,l){var c,p=mc(a,l);return p?"value"in p?p.value:(c=p.get)===null||c===void 0?void 0:c.call(i.k):void 0}(t,o,e);var n=o[e];return t.I||!lt(n)?n:n===_i(t.t,e)?(ki(t),t.o[e]=Bi(t.A.h,n,t)):n},has:function(t,e){return e in Ut(t)},ownKeys:function(t){return Reflect.ownKeys(Ut(t))},set:function(t,e,o){var n=mc(Ut(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var i=_i(Ut(t),e),a=i?.[ie];if(a&&a.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(Oc(o,i)&&(o!==void 0||Dr(t.t,e)))return!0;ki(t),Ft(t)}return t.o[e]===o&&(o!==void 0||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return _i(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,ki(t),Ft(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=Ut(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){qe(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){qe(12)}},co={};lr(uo,function(t,e){co[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),co.deleteProperty=function(t,e){return co.set.call(this,t,e,void 0)},co.set=function(t,e,o){return uo.set.call(this,t[0],e,o,t[0])};var vp=function(){function t(o){var n=this;this.O=vc,this.D=!0,this.produce=function(i,a,l){if(typeof i=="function"&&typeof a!="function"){var c=a;a=i;var p=n;return function(O){var T=this;O===void 0&&(O=c);for(var R=arguments.length,L=Array(R>1?R-1:0),U=1;U<R;U++)L[U-1]=arguments[U];return p.produce(O,function(V){var j;return(j=a).call.apply(j,[T,V].concat(L))})}}var u;if(typeof a!="function"&&qe(6),l!==void 0&&typeof l!="function"&&qe(7),lt(i)){var g=yc(n),h=Bi(n,i,void 0),m=!0;try{u=a(h),m=!1}finally{m?Zo(g):Di(g)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(O){return Ni(g,l),Pi(O,g)},function(O){throw Zo(g),O}):(Ni(g,l),Pi(u,g))}if(!i||typeof i!="object"){if((u=a(i))===void 0&&(u=i),u===wc&&(u=void 0),n.D&&Hi(u,!0),l){var S=[],v=[];mt("Patches").M(i,u,S,v),l(S,v)}return u}qe(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(u){for(var g=arguments.length,h=Array(g>1?g-1:0),m=1;m<g;m++)h[m-1]=arguments[m];return n.produceWithPatches(u,function(S){return i.apply(void 0,[S].concat(h))})};var l,c,p=n.produce(i,a,function(u,g){l=u,c=g});return typeof Promise<"u"&&p instanceof Promise?p.then(function(u){return[u,l,c]}):[p,l,c]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){lt(o)||qe(8),Lt(o)&&(o=gp(o));var n=yc(this),i=Bi(this,o,void 0);return i[ie].C=!0,Di(n),i},e.finishDraft=function(o,n){var i=o&&o[ie],a=i.A;return Ni(a,n),Pi(void 0,a)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!vc&&qe(20),this.O=o},e.applyPatches=function(o,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){o=a.value;break}}i>-1&&(n=n.slice(i+1));var l=mt("Patches").$;return Lt(o)?l(o,n):this.produce(o,function(c){return l(c,n)})},t}(),Fe=new vp,Sp=Fe.produce,T0=Fe.produceWithPatches.bind(Fe),L0=Fe.setAutoFreeze.bind(Fe),I0=Fe.setUseProxies.bind(Fe),N0=Fe.applyPatches.bind(Fe),P0=Fe.createDraft.bind(Fe),_0=Fe.finishDraft.bind(Fe),Xo=Sp;function cr(t){"@babel/helpers - typeof";return cr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cr(t)}function Rc(t,e){if(cr(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(cr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Tc(t){var e=Rc(t,"string");return cr(e)=="symbol"?e:e+""}function Lc(t,e,o){return(e=Tc(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Ic(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),o.push.apply(o,n)}return o}function Gi(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Ic(Object(o),!0).forEach(function(n){Lc(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Ic(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function Te(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Nc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ji=function(){return Math.random().toString(36).substring(7).split("").join(".")},Qo={INIT:"@@redux/INIT"+ji(),REPLACE:"@@redux/REPLACE"+ji(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ji()}};function Cp(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Ki(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(Te(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(Te(1));return o(Ki)(t,e)}if(typeof t!="function")throw new Error(Te(2));var i=t,a=e,l=[],c=l,p=!1;function u(){c===l&&(c=l.slice())}function g(){if(p)throw new Error(Te(3));return a}function h(O){if(typeof O!="function")throw new Error(Te(4));if(p)throw new Error(Te(5));var T=!0;return u(),c.push(O),function(){if(T){if(p)throw new Error(Te(6));T=!1,u();var L=c.indexOf(O);c.splice(L,1),l=null}}}function m(O){if(!Cp(O))throw new Error(Te(7));if(typeof O.type>"u")throw new Error(Te(8));if(p)throw new Error(Te(9));try{p=!0,a=i(a,O)}finally{p=!1}for(var T=l=c,R=0;R<T.length;R++){var L=T[R];L()}return O}function S(O){if(typeof O!="function")throw new Error(Te(10));i=O,m({type:Qo.REPLACE})}function v(){var O,T=h;return O={subscribe:function(L){if(typeof L!="object"||L===null)throw new Error(Te(11));function U(){L.next&&L.next(g())}U();var V=T(U);return{unsubscribe:V}}},O[Nc]=function(){return this},O}return m({type:Qo.INIT}),n={dispatch:m,subscribe:h,getState:g,replaceReducer:S},n[Nc]=v,n}function Op(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:Qo.INIT});if(typeof n>"u")throw new Error(Te(12));if(typeof o(void 0,{type:Qo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Te(13))})}function Pc(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var i=e[n];typeof t[i]=="function"&&(o[i]=t[i])}var a=Object.keys(o),l,c;try{Op(o)}catch(p){c=p}return function(u,g){if(u===void 0&&(u={}),c)throw c;if(0)var h;for(var m=!1,S={},v=0;v<a.length;v++){var O=a[v],T=o[O],R=u[O],L=T(R,g);if(typeof L>"u"){var U=g&&g.type;throw new Error(Te(14))}S[O]=L,m=m||L!==R}return m=m||a.length!==Object.keys(u).length,m?S:u}}function Ur(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function _c(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(Te(15))},l={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},c=e.map(function(p){return p(l)});return a=Ur.apply(void 0,c)(i.dispatch),Gi(Gi({},i),{},{dispatch:a})}}}function kc(t){var e=function(n){var i=n.dispatch,a=n.getState;return function(l){return function(c){return typeof c=="function"?c(i,a,t):l(c)}}};return e}var $c=kc();$c.withExtraArgument=kc;var Zi=$c;var Fc=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function n(){this.constructor=e}e.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),Ep=function(t,e){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,l;return l={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function c(u){return function(g){return p([u,g])}}function p(u){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(a=u[0]&2?i.return:u[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;switch(i=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,i=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){o=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){o.label=u[1];break}if(u[0]===6&&o.label<a[1]){o.label=a[1],a=u;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(u);break}a[2]&&o.ops.pop(),o.trys.pop();continue}u=e.call(t,o)}catch(g){u=[6,g],i=0}finally{n=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},Fr=function(t,e){for(var o=0,n=e.length,i=t.length;o<n;o++,i++)t[i]=e[o];return t},wp=Object.defineProperty,Ap=Object.defineProperties,Rp=Object.getOwnPropertyDescriptors,Dc=Object.getOwnPropertySymbols,Tp=Object.prototype.hasOwnProperty,Lp=Object.prototype.propertyIsEnumerable,Bc=function(t,e,o){return e in t?wp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},zt=function(t,e){for(var o in e||(e={}))Tp.call(e,o)&&Bc(t,o,e[o]);if(Dc)for(var n=0,i=Dc(e);n<i.length;n++){var o=i[n];Lp.call(e,o)&&Bc(t,o,e[o])}return t},qi=function(t,e){return Ap(t,Rp(e))},Ip=function(t,e,o){return new Promise(function(n,i){var a=function(p){try{c(o.next(p))}catch(u){i(u)}},l=function(p){try{c(o.throw(p))}catch(u){i(u)}},c=function(p){return p.done?n(p.value):Promise.resolve(p.value).then(a,l)};c((o=o.apply(t,e)).next())})};var Np=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ur:Ur.apply(null,arguments)},X0=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Pp(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return e===o}var _p=function(t){Fc(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.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(e.bind.apply(e,Fr([void 0],o[0].concat(this)))):new(e.bind.apply(e,Fr([void 0],o.concat(this))))},e}(Array),kp=function(t){Fc(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.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(e.bind.apply(e,Fr([void 0],o[0].concat(this)))):new(e.bind.apply(e,Fr([void 0],o.concat(this))))},e}(Array);function Qi(t){return lt(t)?Xo(t,function(){}):t}function $p(t){return typeof t=="boolean"}function Dp(){return function(e){return Bp(e)}}function Bp(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,n=t.immutableCheck,i=n===void 0?!0:n,a=t.serializableCheck,l=a===void 0?!0:a,c=new _p;if(o&&($p(o)?c.push(Zi):c.push(Zi.withExtraArgument(o.extraArgument))),0){if(i)var p;if(l)var u}return c}var Yi=!0;function zc(t){var e=Dp(),o=t||{},n=o.reducer,i=n===void 0?void 0:n,a=o.middleware,l=a===void 0?e():a,c=o.devTools,p=c===void 0?!0:c,u=o.preloadedState,g=u===void 0?void 0:u,h=o.enhancers,m=h===void 0?void 0:h,S;if(typeof i=="function")S=i;else if(Pp(i))S=Pc(i);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 v=l;if(typeof v=="function"&&(v=v(e),!Yi&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Yi&&v.some(function(V){return typeof V!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=_c.apply(void 0,v),T=Ur;p&&(T=Np(zt({trace:!Yi},typeof p=="object"&&p)));var R=new kp(O),L=R;Array.isArray(m)?L=Fr([O],m):typeof m=="function"&&(L=m(R));var U=T.apply(void 0,L);return Ki(S,g,U)}function Ht(t,e){function o(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var a=e.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return zt(zt({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:n[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(n){return n.type===t},o}function Hc(t){var e={},o=[],n,i={addCase:function(a,l){var c=typeof a=="string"?a:a.type;if(c in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[c]=l,i},addMatcher:function(a,l){return o.push({matcher:a,reducer:l}),i},addDefaultCase:function(a){return n=a,i}};return t(i),[e,o,n]}function Mp(t){return typeof t=="function"}function Up(t,e,o,n){o===void 0&&(o=[]);var i=typeof e=="function"?Hc(e):[e,o,n],a=i[0],l=i[1],c=i[2],p;if(Mp(t))p=function(){return Qi(t())};else{var u=Qi(t);p=function(){return u}}function g(h,m){h===void 0&&(h=p());var S=Fr([a[m.type]],l.filter(function(v){var O=v.matcher;return O(m)}).map(function(v){var O=v.reducer;return O}));return S.filter(function(v){return!!v}).length===0&&(S=[c]),S.reduce(function(v,O){if(O)if(Lt(v)){var T=v,R=O(T,m);return R===void 0?v:R}else{if(lt(v))return Xo(v,function(L){return O(L,m)});var R=O(v,m);if(R===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return R}return v},h)}return g.getInitialState=p,g}function Fp(t,e){return t+"/"+e}function Wc(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof t.initialState=="function"?t.initialState:Qi(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},l={},c={};i.forEach(function(g){var h=n[g],m=Fp(e,g),S,v;"reducer"in h?(S=h.reducer,v=h.prepare):S=h,a[g]=S,l[m]=S,c[g]=v?Ht(m,v):Ht(m)});function p(){var g=typeof t.extraReducers=="function"?Hc(t.extraReducers):[t.extraReducers],h=g[0],m=h===void 0?{}:h,S=g[1],v=S===void 0?[]:S,O=g[2],T=O===void 0?void 0:O,R=zt(zt({},m),l);return Up(o,function(L){for(var U in R)L.addCase(U,R[U]);for(var V=0,j=v;V<j.length;V++){var Pe=j[V];L.addMatcher(Pe.matcher,Pe.reducer)}T&&L.addDefaultCase(T)})}var u;return{name:e,reducer:function(g,h){return u||(u=p()),u(g,h)},actions:c,caseReducers:a,getInitialState:function(){return u||(u=p()),u.getInitialState()}}}var zp="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Hp=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=zp[Math.random()*64|0];return e},Wp=["name","message","stack","code"],Xi=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Mc=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Vp=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=Wp;o<n.length;o++){var i=n[o];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},tS=function(){function t(e,o,n){var i=Ht(e+"/fulfilled",function(g,h,m,S){return{payload:g,meta:qi(zt({},S||{}),{arg:m,requestId:h,requestStatus:"fulfilled"})}}),a=Ht(e+"/pending",function(g,h,m){return{payload:void 0,meta:qi(zt({},m||{}),{arg:h,requestId:g,requestStatus:"pending"})}}),l=Ht(e+"/rejected",function(g,h,m,S,v){return{payload:S,error:(n&&n.serializeError||Vp)(g||"Rejected"),meta:qi(zt({},v||{}),{arg:m,requestId:h,rejectedWithValue:!!S,requestStatus:"rejected",aborted:g?.name==="AbortError",condition:g?.name==="ConditionError"})}}),c=!1,p=typeof AbortController<"u"?AbortController:function(){function g(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return g.prototype.abort=function(){},g}();function u(g){return function(h,m,S){var v=n?.idGenerator?n.idGenerator(g):Hp(),O=new p,T,R=!1;function L(V){T=V,O.abort()}var U=function(){return Ip(this,null,function(){var V,j,Pe,pt,Ie,ut,Ce;return Ep(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),pt=(V=n?.condition)==null?void 0:V.call(n,g,{getState:m,extra:S}),jp(pt)?[4,pt]:[3,2];case 1:pt=y.sent(),y.label=2;case 2:if(pt===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return R=!0,Ie=new Promise(function(x,k){return O.signal.addEventListener("abort",function(){return k({name:"AbortError",message:T||"Aborted"})})}),h(a(v,g,(j=n?.getPendingMeta)==null?void 0:j.call(n,{requestId:v,arg:g},{getState:m,extra:S}))),[4,Promise.race([Ie,Promise.resolve(o(g,{dispatch:h,getState:m,extra:S,requestId:v,signal:O.signal,abort:L,rejectWithValue:function(x,k){return new Xi(x,k)},fulfillWithValue:function(x,k){return new Mc(x,k)}})).then(function(x){if(x instanceof Xi)throw x;return x instanceof Mc?i(x.payload,v,g,x.meta):i(x,v,g)})])];case 3:return Pe=y.sent(),[3,5];case 4:return ut=y.sent(),Pe=ut instanceof Xi?l(null,v,g,ut.payload,ut.meta):l(ut,v,g),[3,5];case 5:return Ce=n&&!n.dispatchConditionRejection&&l.match(Pe)&&Pe.meta.condition,Ce||h(Pe),[2,Pe]}})})}();return Object.assign(U,{abort:L,requestId:v,arg:g,unwrap:function(){return U.then(Gp)}})}}return Object.assign(u,{pending:a,rejected:l,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t}();function Gp(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function jp(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Vc="listener",Gc="completed",jc="cancelled",rS="task-"+jc,oS="task-"+Gc,nS=Vc+"-"+jc,iS=Vc+"-"+Gc;var Ji="listenerMiddleware";var aS=Ht(Ji+"/add"),sS=Ht(Ji+"/removeAll"),lS=Ht(Ji+"/remove");var Uc,cS=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Uc||(Uc=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Kp=function(t){return function(e){setTimeout(e,t)}},dS=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Kp(10);Ec();var Zp=Ho(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(o,n,i){this.eventBus.addEventListener(o,n,i)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,i){this.eventBus.removeEventListener(o,n,i)}}}),Jo=class extends Zp(Object){};window.ftReduxStores||(window.ftReduxStores={});var Kc=class t extends Jo{static get(e){var o;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[n];if(Ko(a))return a;if(i==null)return;let l=Wc({...i,reducers:(o=i.reducers)!==null&&o!==void 0?o:{}}),c=zc({reducer:(p,u)=>u.type==="CLEAR_FT_REDUX_STORE"?l.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...p,...u.overwrites}:l.reducer(p,u)});return window.ftReduxStores[i.name]=new t(l,c,i.eventBus)}constructor(e,o,n){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new Wo;let i=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,l,c)=>{let p=l,u=a[p];return u?(...g)=>{let h=u(...g.map(i));return this.reduxStore.dispatch(h),h}:g=>{this.setState({[p]:i(g)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}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(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var en=class{static format(e,o,n,i){return window.moment?window.moment(e).locale(o).format(this.getMomentDateFormat(n,i)):this.getIntlDateTime(e,o,n,i)}static getMomentDateFormat(e,o){return e?o?"lll":"ll":o?"L LT":"L"}static getIntlDateTime(e,o,n,i){let a=typeof e=="string"?new Date(e):e,l=new Intl.DateTimeFormat(o,{dateStyle:n?"medium":"short"}).format(a);if(!i)return l;let c=new Intl.DateTimeFormat(o,{timeStyle:"short"}).format(a);return`${l} ${c}`}static getTimezoneAsString(){let e=n=>String(Math.floor(n)).padStart(2,"0"),o=new Date().getTimezoneOffset();return`${o<0?"+":"-"}${e(Math.abs(o)/60)}:${e(Math.abs(o)%60)}`}};var Zc=b(N()),tn=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(a=(i<3?l(a):i>3?l(e,o,a):l(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},kS=(0,Zc.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{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 i,a;return((a=(i=this.metadataDescriptors.find(c=>c.key===n))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1)?c=>en.format(c,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return tn([(0,ea.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),tn([(0,ea.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),tn([Ii({store:I.name,selector:o=>{var n,i;return(i=(n=o.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],e.prototype,"metadataDescriptors",void 0),tn([Ii({store:I.name})],e.prototype,"uiLocale",void 0),e});var nn=b(N());var rn=class extends Ue{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=I.getState().session;return!!e?.sessionAuthenticated}};var on=class extends Ue{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 e=I.getState().session;return!!e?.sessionAuthenticated}};var qp="ft-user-assets",Yp={setAssetCount:(t,e)=>{let{userAssetType:o,count:n}=e.payload.assetCount;t.assetCounts.allAsset[o]=n},clearAssetCount:t=>{Object.values(Ze).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let o=e.payload.mapId;t.assetCounts.bookmarkByMap[o]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:o,mapId:n,asset:i}=e.payload;ra(t,o,[...ta(t,o),i]),qc(t,o,1,n),Yc(t,i)},editAsset:(t,e)=>{let{assetType:o,asset:n}=e.payload;ra(t,o,ta(t,o).map(i=>i.id===n.id?n:i)),Yc(t,n)},removeAsset:(t,e)=>{let{assetType:o,mapId:n,assetId:i}=e.payload;ra(t,o,ta(t,o).filter(a=>a.id!==i)),qc(t,o,-1,n)}},Xc={[Ze.SEARCHES]:"savedSearches",[Ze.BOOKMARKS]:"bookmarks",[Ze.BOOKS]:void 0,[Ze.COLLECTIONS]:void 0},ta=(t,e)=>{var o;let n=Xc[e];return n?(o=t[n])!==null&&o!==void 0?o:[]:[]},ra=(t,e,o)=>{let n=Xc[e];n&&(t[n]=o)},qc=(t,e,o,n)=>{let i=t.assetCounts.allAsset[e];if(i!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,i+o),e===Ze.BOOKMARKS&&n)){let a=t.assetCounts.bookmarkByMap[n];t.assetCounts.bookmarkByMap[n]=Math.max(0,a+o)}},Yc=(t,e)=>{let o=t.assetLabels.map(i=>i.title),n=e.labels.filter(i=>!o.includes(i)).map(i=>({title:i}));t.assetLabels.push(...n)},ze=nn.FtReduxStore.get({name:qp,reducers:Yp,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Ze).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),oa=class{constructor(e=new rn,o=new on){this.assetCountsService=e,this.assetLabelsService=o,this.currentSession=I.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new ko,this.savedSearchesService=new Uo,I.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=I.getState();(0,nn.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),ze.actions.clearAssetCount(),ze.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ze.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ze.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();ze.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();ze.actions.assetLabels(e)}async loadAssetCount(e){let o=await this.assetCountsService.getUserAssetCount(e);o&&ze.actions.setAssetCount({assetCount:o})}async loadBookmarkByMapId(e){let o=await this.assetCountsService.getUserBookmarkCountByMap(e);o&&ze.actions.setBookmarkCountByMap({count:o.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let o=Object.keys(ze.getState().assetCounts.bookmarkByMap).length!==0;e===Ze.BOOKMARKS&&o&&ze.actions.clearBookmarkCountByMap(),ze.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let o=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;ze.actions.bookmarks(o)}}},Xp=new oa;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Xp);(0,Qc.customElement)("ft-app-context")(oe);var Jc=b(se());var na=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[n,i]=e.split(".");return{context:n,key:i,custom:!0,message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},zr=new na;var Qp=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(a=(i<3?l(a):i>3?l(e,o,a):l(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},ho=Symbol("i18nAttributes"),ed=Symbol("i18nListAttributes"),td=Symbol("i18nProperties"),an=Symbol("i18nContexts"),fo=Symbol("i18nUnsubs"),cn=(0,Hr.applyMixinOnce)(Symbol("withI18n"),function(t){var e,o;class n extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[o]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?Do:Pr}i18n(a){let{context:l,key:c,message:p}=a,{custom:u,args:g,argsProvider:h}=a;if(l&&c){this.hasI18nContext(l)||this.addI18nContext(l,void 0,u);let m=g??(h?h(this):[]);return this.getI18nService(u).resolveMessage(l,c,...m)}return p}async awaitI18n(a){let{context:l,custom:c}=a;return l&&await this.getI18nService(c).prepareContext(l),this.i18n(a)}customI18n(a,l){if(zr.isI18nKey(a)){let[c,p]=a.split(".");return this.i18n({custom:!0,context:c,key:p,...l})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((l,c,p)=>a.has(c)||typeof l.argsProvider=="function"),this.updateI18nProperties(l=>typeof l.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((l,c,p)=>{var u;return((u=p?.context)===null||u===void 0?void 0:u.toLowerCase())===a}),this.updateI18nProperties(l=>l.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var l,c;let p=this,u=(g,h,m)=>m?.context&&m.key&&a(g,h,m)?{...m,message:this.i18n({context:m.context,key:m.key,custom:m.custom,...g})}:m;(l=this[ho])===null||l===void 0||l.forEach((g,h)=>p[h]=u(g,h,p[h])),(c=this[ed])===null||c===void 0||c.forEach((g,h)=>{var m;return p[h]=(m=p[h])===null||m===void 0?void 0:m.map(S=>u(g,h,S))})}updateI18nProperties(a){var l;(l=this[td])===null||l===void 0||l.forEach((c,p)=>{a(c,p)&&(this[p]=this.i18n(c))})}addI18nMessages(a,l,c){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,l,c)}addI18nContext(a,l,c){let p=(typeof a=="string"?a:a.name).toLowerCase();c=typeof a=="string"?c:a.custom,this[an].set(p,{isCustomContext:c}),this[fo].has(p)||this[fo].set(p,this.getI18nService(c).subscribe(p,()=>this.onI18nUpdate(p))),this.getI18nService(c).prepareContext(p,l)}hasI18nContext(a){return this[an].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[an].forEach((a,l)=>this.addI18nContext(l,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[fo].forEach(a=>a()),this[fo].clear()}}return e=an,o=fo,Qp([(0,Jc.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),sn=class extends cn(Hr.FtLitElement){},ln=class extends cn(Hr.FtLitElementRedux){};var rd=b(N());var ia=class{fromAttribute(e){if(!e)return[];try{let o=JSON.parse(e);return Array.isArray(o)?o.map(n=>typeof n=="string"?zr.fromAttribute(n):n):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},Jp=new ia;var od=(t,e)=>(o,n)=>{var i;o.constructor.createProperty(n,{type:Object,hasChanged:rd.hasChanged,converter:zr,...e}),o[ho]=(i=o[ho])!==null&&i!==void 0?i:new Map,o[ho].set(n,t??{})};var ad=b(N());var dn=b(Z()),pn=b(se()),un=b(N());var nd=b(Z());var id=nd.css`
1233
1233
  `;var yo=function(t,e,o,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(a=(i<3?l(a):i>3?l(e,o,a):l(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a},ct=class extends ln{constructor(){super(),this.editorMode=!1,this.addStore(I)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":dn.nothing:dn.html`