@fluid-topics/ft-reader-saved-bookmarks 1.3.28 → 1.3.29

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.
@@ -275,7 +275,7 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
275
275
  <div class="ft-ripple--background"></div>
276
276
  <div class="ft-ripple--effect"></div>
277
277
  </div>
278
- `}contentAvailableCallback(r){super.contentAvailableCallback(r),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(r){var o,n;super.update(r),r.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 r,o;let n=(r=this.shadowRoot)===null||r===void 0?void 0:r.host.parentElement;n&&this.setupFor((o=this.target)!==null&&o!==void 0?o:n)}forceFocusUpdate(){var r;!((r=this.target)===null||r===void 0)&&r.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(r){if(this.setupDebouncer.cancel(),this.target===r)return;this.onDisconnect&&this.onDisconnect(),this.target=r,r.setAttribute("data-is-ft-ripple-target","true");let o=(...l)=>u=>{l.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(u)},n=o("mouseup","contextmenu"),a=o("touchend","touchcancel"),s=l=>{["Enter"," "].includes(l.key)&&o("keyup")(l)},c={passive:!0};r.addEventListener("mouseover",this.startHover,c),r.addEventListener("mousemove",this.moveRipple,c),r.addEventListener("mouseleave",this.endHover,c),r.addEventListener("mousedown",n,c),r.addEventListener("touchstart",a,c),r.addEventListener("touchmove",this.moveRipple,c),r.addEventListener("keydown",s,c),r.addEventListener("focus",this.startFocus,c),r.addEventListener("blur",this.endFocus,c),r.addEventListener("focusin",this.startFocus,c),r.addEventListener("focusout",this.endFocus,c),this.onDisconnect=()=>{r.removeAttribute("data-is-ft-ripple-target"),r.removeEventListener("mouseover",this.startHover,c),r.removeEventListener("mousemove",this.moveRipple,c),r.removeEventListener("mouseleave",this.endHover,c),r.removeEventListener("mousedown",n,c),r.removeEventListener("touchstart",a,c),r.removeEventListener("touchmove",this.moveRipple,c),r.removeEventListener("keydown",s,c),r.removeEventListener("focus",this.startFocus,c),r.removeEventListener("blur",this.endFocus,c),r.removeEventListener("focusin",this.startFocus,c),r.removeEventListener("focusout",this.endFocus,c),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(r){let o=r,n=r,a,s;return o.x!=null?{x:a,y:s}=o:n.touches!=null&&(a=n.touches[0].clientX,s=n.touches[0].clientY),{x:a,y:s}}isFocusVisible(r){return r instanceof HTMLElement?r.matches(":focus-visible"):!0}isIgnored(r){if(this.disabled)return!0;if(r!=null)for(let o of r.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()}};W.elementDefinitions={};W.styles=hi;oe([(0,q.property)({type:Boolean})],W.prototype,"primary",void 0);oe([(0,q.property)({type:Boolean})],W.prototype,"secondary",void 0);oe([(0,q.property)({type:Boolean})],W.prototype,"unbounded",void 0);oe([(0,q.property)({type:Boolean})],W.prototype,"activated",void 0);oe([(0,q.property)({type:Boolean})],W.prototype,"selected",void 0);oe([(0,q.property)({type:Boolean})],W.prototype,"disabled",void 0);oe([(0,q.state)()],W.prototype,"hovered",void 0);oe([(0,q.state)()],W.prototype,"focused",void 0);oe([(0,q.state)()],W.prototype,"pressed",void 0);oe([(0,q.state)()],W.prototype,"rippling",void 0);oe([(0,q.state)()],W.prototype,"originX",void 0);oe([(0,q.state)()],W.prototype,"originY",void 0);oe([(0,q.query)(".ft-ripple")],W.prototype,"ripple",void 0);oe([(0,q.query)(".ft-ripple--effect")],W.prototype,"rippleEffect",void 0);(0,gi.customElement)("ft-ripple")(W);var Ei=C(k());var $t=C(Z()),Me=C(te()),Oi=C(k()),Ci=C(xi());var Ct;(function(e){e.ADD_TO_PBK="&#xe800;",e.ALERT="&#xe801;",e.ADD_ALERT="&#xe802;",e.BACK_TO_SEARCH="&#xe803;",e.ADD_BOOKMARK="&#xe804;",e.BOOKMARK="&#xe805;",e.BOOKS="&#xe806;",e.MENU="&#xe807;",e.DOWNLOAD="&#xe808;",e.EDIT="&#xe809;",e.FEEDBACK="&#xe80a;",e.HOME="&#xe80b;",e.MODIFY_PBK="&#xe80c;",e.SCHEDULED="&#xe80d;",e.SEARCH="&#xe80e;",e.EXPORT="&#xe80f;",e.TOC="&#xe810;",e.WRITE_UGC="&#xe811;",e.TRASH="&#xe812;",e.USER="&#xe813;",e.EXTLINK="&#xe814;",e.CALENDAR="&#xe815;",e.OFFLINE="&#xe816;",e.BOOK="&#xe817;",e.DOWNLOAD_PLAIN="&#xe818;",e.CHECK="&#xe819;",e.STAR_PLAIN="&#xe900;",e.TOPICS="&#xe901;",e.DISC="&#xe902;",e.CIRCLE="&#xe903;",e.SHARED="&#xe904;",e.SORT_UNSORTED="&#xe905;",e.SORT_UP="&#xe906;",e.SORT_DOWN="&#xe907;",e.WORKING="&#xe908;",e.CLOSE="&#xe909;",e.ZOOM_OUT="&#xe90a;",e.ZOOM_IN="&#xe90b;",e.ZOOM_REALSIZE="&#xe90c;",e.ZOOM_FULLSCREEN="&#xe90d;",e.ADMIN_RESTRICTED="&#xe90e;",e.ADMIN="&#xe90f;",e.ADMIN_KHUB="&#xe910;",e.ADMIN_THEME="&#xe911;",e.ADMIN_USERS="&#xe912;",e.WARNING="&#xe913;",e.CONTEXT="&#xe914;",e.SEARCH_HOME="&#xe915;",e.STEPS="&#xe916;",e.ICON_EXPAND="&#xe917;",e.ICON_COLLAPSE="&#xe918;",e.INFO="&#xe919;",e.MINUS_PLAIN="&#xe91a;",e.PLUS_PLAIN="&#xe91b;",e.FACET_HAS_DESCENDANT="&#xe91c;",e.TRIANGLE_BOTTOM="&#xe91d;",e.TRIANGLE_LEFT="&#xe91e;",e.TRIANGLE_RIGHT="&#xe91f;",e.TRIANGLE_TOP="&#xe920;",e.THIN_ARROW="&#xe921;",e.SIGN_IN="&#xe922;",e.LOGOUT="&#xe923;",e.TRANSLATE="&#xe924;",e.CLOSE_PLAIN="&#xe925;",e.CHECK_PLAIN="&#xe926;",e.ARTICLE="&#xe927;",e.COLUMNS="&#xe928;",e.ANALYTICS="&#xe929;",e.COLLECTIONS="&#xe92a;",e.ARROW_DOWN="&#xe92b;",e.ARROW_LEFT="&#xe92c;",e.ARROW_RIGHT="&#xe92d;",e.ARROW_UP="&#xe92e;",e.SEARCH_IN_PUBLICATION="&#xe92f;",e.COPY_TO_CLIPBOARD="&#xe930;",e.SHARED_PBK="&#xe931;",e.ATTACHMENTS="&#xe932;",e.STRIPE_ARROW_LEFT="&#xe933;",e.STRIPE_ARROW_RIGHT="&#xe934;",e.FILTERS="&#xe935;",e.DOT="&#xe936;",e.MINUS="&#xe937;",e.PLUS="&#xe938;",e.MAILS_AND_NOTIFICATIONS="&#xe939;",e.SAVE="&#xe93a;",e.LOCKER="&#xe93b;",e.ADMIN_INTEGRATION="&#xe93c;",e.SYNC="&#xe93d;",e.TAG="&#xe93e;",e.BOOK_PLAIN="&#xe93f;",e.UPLOAD="&#xe940;",e.ONLINE="&#xe941;",e.TAG_PLAIN="&#xe942;",e.ACCOUNT_SETTINGS="&#xe943;",e.PRINT="&#xe944;",e.DEFAULT_ROLES="&#xe945;",e.SHORTCUT_MENU="&#xe946;",e.RELATIVES_PLAIN="&#xe947;",e.RELATIVES="&#xe948;",e.PAUSE="&#xe949;",e.PLAY="&#xe94a;",e.ADMIN_PORTAL="&#xe94b;",e.STAR="&#xe94c;",e.THUMBS_DOWN="&#xe94d;",e.THUMBS_DOWN_PLAIN="&#xe94e;",e.THUMBS_UP="&#xe94f;",e.THUMBS_UP_PLAIN="&#xe950;",e.FEEDBACK_PLAIN="&#xe951;",e.RATE_PLAIN="&#xe952;",e.RATE="&#xe953;",e.OFFLINE_SETTINGS="&#xe954;",e.MY_COLLECTIONS="&#xe955;",e.THIN_ARROW_LEFT="&#xe956;",e.THIN_ARROW_RIGHT="&#xe957;",e.RESET="&#xe958;",e.MY_LIBRARY="&#xe959;",e.UNSTRUCTURED_DOC="&#xe95a;",e.CONTEXTUAL="&#xe95b;",e.THIN_ARROW_UP="&#xe95c;",e.ARROW_RIGHT_TO_LINE="&#xe95d;",e.DESKTOP="&#xe95e;",e.TABLET_LANDSCAPE="&#xe95f;",e.TABLET_PORTRAIT="&#xe960;",e.MOBILE_LANDSCAPE="&#xe961;",e.MOBILE_PORTRAIT="&#xe962;",e.DIAGRAM_SUNBURST="&#xe963;",e.DIAGRAM_SANKEY="&#xe964;",e.COMMENT_QUESTION="&#xe965;",e.COMMENT_QUESTION_PLAIN="&#xe966;",e.MESSAGE_BOT="&#xe967;",e.CHART_SIMPLE="&#xe968;",e.BARS_PROGRESS="&#xe969;",e.BOOK_OPEN_GEAR="&#xe96a;",e.BOOK_OPEN_GEAR_SLASH="&#xe96b;",e.LINE_CHART="&#xe96c;",e.STACKED_CHART="&#xe96d;",e.CHART_BAR_STACKED="&#xe96e;",e.CHART_BAR_GROUPED="&#xe96f;",e.EYE_SLASH="&#xe970;",e.X_MARK="&#xe971;",e.EXPAND_WIDE="&#xe972;",e.PIP="&#xe973;",e.PIP_WIDE="&#xe974;",e.LIFE_RING="&#xe975;",e.GLOBE="&#xe976;",e.PIGGY_BANK="&#xe977;",e.EXTLINK_LIGHT="&#xe978;",e.CLONE="&#xe979;",e.CLONE_LINK_SIMPLE="&#xe97a;",e.CHART_BAR_NORMALIZED="&#xe97b;",e.CONSUMER="&#xe97c;",e.OCTAGON_XMARK="&#xe97d;",e.HOURGLASS_HALF="&#xe97e;",e.CLOCK="&#xe97f;",e.CLOCK_THREE="&#xe97f;",e.CALENDAR_DAY="&#xe980;",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",e.WAND_MAGIC_SPARKLES="&#xe982;",e.PAPER_PLANE="&#xe983;",e.CIRCLE_STOP="&#xe984;",e.ARROW_ROTATE_RIGHT="&#xe985;",e.ARROWS_ROTATE="&#xe986;",e.ALIGN_RIGHT="&#xe987;",e.FORMAT_CLEAR="&#xe988;",e.ALIGN_CENTER="&#xe989;",e.ALIGN_LEFT="&#xe98a;",e.PALETTE="&#xe98b;",e.BOLD="&#xe98c;",e.ITALIC="&#xe98d;",e.UNDERLINE="&#xe98e;",e.STRIKETHROUGH="&#xe98f;",e.LINK_SIMPLE_SLASH="&#xe990;",e.LINK_SIMPLE="&#xe991;",e.ROUTE="&#xe992;",e.CIRCLE_USER_SLASH="&#xe993;",e.CIRCLE_USER_CHECK="&#xe994;",e.LIST_MAGNIFYING_GLASS="&#xe995;",e.MEDAL="&#xe996;",e.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",e.ARROW_TURN_DOWN_RIGHT="&#xe998;",e.FLASK="&#xe999;",e.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",e.HOURGLASS_END="&#xe99b;",e.CIRCLE_QUESTION="&#xe99c;",e.GRIP_LINES_SOLID="&#xe99d;",e.TRANSLATE_SPARKLE_SOLID="&#xe99e;",e.CODE="&#xe99f;",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",e.PAPER_PLANE_SLASH="&#xe9a1;",e.COMPRESS="&#xe9a2;",e.EXPAND="&#xe9a3;",e.ARROW_ROTATE_LEFT="&#xe9a4;",e.EYE="&#xf06e;",e.SHARE="&#xe80f1;",e.MOBILE_SMALL="&#xe9a5;",e.SPARKLES="&#xe9a6;",e.HAND_SOLID="&#xe9a7;",e.CLOCK_SOLID="&#xe9a8;",e.CONTEXT_MENU_CURSOR="&#xe9a9;",e.LANGUAGE_SLASH="&#xe9aa;",e.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",e.CABINET_FILING_FLOPPY_DISK="&#xe9ac;"})(Ct||(Ct={}));var S;(function(e){e.UNKNOWN="&#xe90a;",e.ABW="&#xe900;",e.AUDIO="&#xe901;",e.AVI="&#xe902;",e.CHM="&#xe904;",e.CODE="&#xe905;",e.CSV="&#xe903;",e.DITA="&#xe906;",e.EPUB="&#xe907;",e.EXCEL="&#xe908;",e.FLAC="&#xe909;",e.GIF="&#xe90b;",e.GZIP="&#xe90c;",e.HTML="&#xe90d;",e.IMAGE="&#xe90e;",e.JPEG="&#xe90f;",e.JSON="&#xe910;",e.M4A="&#xe911;",e.MOV="&#xe912;",e.MP3="&#xe913;",e.MP4="&#xe914;",e.OGG="&#xe915;",e.PDF="&#xe916;",e.PNG="&#xe917;",e.POWERPOINT="&#xe918;",e.RAR="&#xe91a;",e.STP="&#xe91b;",e.TEXT="&#xe91c;",e.VIDEO="&#xe91e;",e.WAV="&#xe91f;",e.WMA="&#xe920;",e.WORD="&#xe921;",e.XML="&#xe922;",e.YAML="&#xe919;",e.ZIP="&#xe923;"})(S||(S={}));var Fy=new Map([...["abw"].map(e=>[e,S.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(e=>[e,S.AUDIO]),...["avi"].map(e=>[e,S.AVI]),...["chm","xhs"].map(e=>[e,S.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(e=>[e,S.CODE]),...["csv"].map(e=>[e,S.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,S.DITA]),...["epub"].map(e=>[e,S.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,S.EXCEL]),...["flac"].map(e=>[e,S.FLAC]),...["gif"].map(e=>[e,S.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,S.GZIP]),...["html","htm","xhtml"].map(e=>[e,S.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(e=>[e,S.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,S.JPEG]),...["json"].map(e=>[e,S.JSON]),...["m4a","m4p"].map(e=>[e,S.M4A]),...["mov","qt"].map(e=>[e,S.MOV]),...["mp3"].map(e=>[e,S.MP3]),...["mp4","m4v"].map(e=>[e,S.MP4]),...["ogg","oga"].map(e=>[e,S.OGG]),...["pdf","ps"].map(e=>[e,S.PDF]),...["png"].map(e=>[e,S.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,S.POWERPOINT]),...["rar"].map(e=>[e,S.RAR]),...["stp"].map(e=>[e,S.STP]),...["txt","rtf","md","mdown"].map(e=>[e,S.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(e=>[e,S.VIDEO]),...["wav"].map(e=>[e,S.WAV]),...["wma"].map(e=>[e,S.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,S.WORD]),...["xml","xsl","rdf"].map(e=>[e,S.XML]),...["yaml","yml","x-yaml"].map(e=>[e,S.YAML]),...["zip"].map(e=>[e,S.ZIP])]);var zy={[S.ABW]:"#91ABC6",[S.AUDIO]:"#1795E3",[S.AVI]:"#E63324",[S.CHM]:"#71C3EB",[S.CODE]:"#71C3EB",[S.CSV]:"#1F7345",[S.DITA]:"#71C3EB",[S.EPUB]:"#85B926",[S.EXCEL]:"#1F7345",[S.FLAC]:"#1795E3",[S.GIF]:"#59B031",[S.GZIP]:"#F8AB36",[S.HTML]:"#71C3EB",[S.IMAGE]:"#59B031",[S.JPEG]:"#59B031",[S.JSON]:"#71C3EB",[S.M4A]:"#1795E3",[S.MOV]:"#E63324",[S.MP3]:"#1795E3",[S.MP4]:"#E63324",[S.OGG]:"#1795E3",[S.PDF]:"#E44948",[S.PNG]:"#59B031",[S.POWERPOINT]:"#B54A2B",[S.RAR]:"#F8AB36",[S.STP]:"#3764B1",[S.TEXT]:"#3162AB",[S.UNKNOWN]:"#999999",[S.VIDEO]:"#E63324",[S.WAV]:"#1795E3",[S.WMA]:"#1795E3",[S.WORD]:"#3162AB",[S.XML]:"#71C3EB",[S.YAML]:"#71C3EB",[S.ZIP]:"#F8AB36"};var vi=C(Z()),ye=C(k()),Re={size:ye.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:ye.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",ye.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:ye.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",ye.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:ye.FtCssVariableFactory.extend("--ft-icon-material-font-family","",ye.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:ye.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Si=[vi.css`
278
+ `}contentAvailableCallback(r){super.contentAvailableCallback(r),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(r){var o,n;super.update(r),r.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 r,o;let n=(r=this.shadowRoot)===null||r===void 0?void 0:r.host.parentElement;n&&this.setupFor((o=this.target)!==null&&o!==void 0?o:n)}forceFocusUpdate(){var r;!((r=this.target)===null||r===void 0)&&r.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(r){if(this.setupDebouncer.cancel(),this.target===r)return;this.onDisconnect&&this.onDisconnect(),this.target=r,r.setAttribute("data-is-ft-ripple-target","true");let o=(...l)=>u=>{l.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(u)},n=o("mouseup","contextmenu"),a=o("touchend","touchcancel"),s=l=>{["Enter"," "].includes(l.key)&&o("keyup")(l)},c={passive:!0};r.addEventListener("mouseover",this.startHover,c),r.addEventListener("mousemove",this.moveRipple,c),r.addEventListener("mouseleave",this.endHover,c),r.addEventListener("mousedown",n,c),r.addEventListener("touchstart",a,c),r.addEventListener("touchmove",this.moveRipple,c),r.addEventListener("keydown",s,c),r.addEventListener("focus",this.startFocus,c),r.addEventListener("blur",this.endFocus,c),r.addEventListener("focusin",this.startFocus,c),r.addEventListener("focusout",this.endFocus,c),this.onDisconnect=()=>{r.removeAttribute("data-is-ft-ripple-target"),r.removeEventListener("mouseover",this.startHover,c),r.removeEventListener("mousemove",this.moveRipple,c),r.removeEventListener("mouseleave",this.endHover,c),r.removeEventListener("mousedown",n,c),r.removeEventListener("touchstart",a,c),r.removeEventListener("touchmove",this.moveRipple,c),r.removeEventListener("keydown",s,c),r.removeEventListener("focus",this.startFocus,c),r.removeEventListener("blur",this.endFocus,c),r.removeEventListener("focusin",this.startFocus,c),r.removeEventListener("focusout",this.endFocus,c),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(r){let o=r,n=r,a,s;return o.x!=null?{x:a,y:s}=o:n.touches!=null&&(a=n.touches[0].clientX,s=n.touches[0].clientY),{x:a,y:s}}isFocusVisible(r){return r instanceof HTMLElement?r.matches(":focus-visible"):!0}isIgnored(r){if(this.disabled)return!0;if(r!=null)for(let o of r.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()}};W.elementDefinitions={};W.styles=hi;oe([(0,q.property)({type:Boolean})],W.prototype,"primary",void 0);oe([(0,q.property)({type:Boolean})],W.prototype,"secondary",void 0);oe([(0,q.property)({type:Boolean})],W.prototype,"unbounded",void 0);oe([(0,q.property)({type:Boolean})],W.prototype,"activated",void 0);oe([(0,q.property)({type:Boolean})],W.prototype,"selected",void 0);oe([(0,q.property)({type:Boolean})],W.prototype,"disabled",void 0);oe([(0,q.state)()],W.prototype,"hovered",void 0);oe([(0,q.state)()],W.prototype,"focused",void 0);oe([(0,q.state)()],W.prototype,"pressed",void 0);oe([(0,q.state)()],W.prototype,"rippling",void 0);oe([(0,q.state)()],W.prototype,"originX",void 0);oe([(0,q.state)()],W.prototype,"originY",void 0);oe([(0,q.query)(".ft-ripple")],W.prototype,"ripple",void 0);oe([(0,q.query)(".ft-ripple--effect")],W.prototype,"rippleEffect",void 0);(0,gi.customElement)("ft-ripple")(W);var Ei=C(k());var $t=C(Z()),Me=C(te()),Oi=C(k()),Ci=C(xi());var Ct;(function(e){e.ADD_TO_PBK="&#xe800;",e.ALERT="&#xe801;",e.ADD_ALERT="&#xe802;",e.BACK_TO_SEARCH="&#xe803;",e.ADD_BOOKMARK="&#xe804;",e.BOOKMARK="&#xe805;",e.BOOKS="&#xe806;",e.MENU="&#xe807;",e.DOWNLOAD="&#xe808;",e.EDIT="&#xe809;",e.FEEDBACK="&#xe80a;",e.HOME="&#xe80b;",e.MODIFY_PBK="&#xe80c;",e.SCHEDULED="&#xe80d;",e.SEARCH="&#xe80e;",e.EXPORT="&#xe80f;",e.TOC="&#xe810;",e.WRITE_UGC="&#xe811;",e.TRASH="&#xe812;",e.USER="&#xe813;",e.EXTLINK="&#xe814;",e.CALENDAR="&#xe815;",e.OFFLINE="&#xe816;",e.BOOK="&#xe817;",e.DOWNLOAD_PLAIN="&#xe818;",e.CHECK="&#xe819;",e.STAR_PLAIN="&#xe900;",e.TOPICS="&#xe901;",e.DISC="&#xe902;",e.CIRCLE="&#xe903;",e.SHARED="&#xe904;",e.SORT_UNSORTED="&#xe905;",e.SORT_UP="&#xe906;",e.SORT_DOWN="&#xe907;",e.WORKING="&#xe908;",e.CLOSE="&#xe909;",e.ZOOM_OUT="&#xe90a;",e.ZOOM_IN="&#xe90b;",e.ZOOM_REALSIZE="&#xe90c;",e.ZOOM_FULLSCREEN="&#xe90d;",e.ADMIN_RESTRICTED="&#xe90e;",e.ADMIN="&#xe90f;",e.ADMIN_KHUB="&#xe910;",e.ADMIN_THEME="&#xe911;",e.ADMIN_USERS="&#xe912;",e.WARNING="&#xe913;",e.CONTEXT="&#xe914;",e.SEARCH_HOME="&#xe915;",e.STEPS="&#xe916;",e.ICON_EXPAND="&#xe917;",e.ICON_COLLAPSE="&#xe918;",e.INFO="&#xe919;",e.MINUS_PLAIN="&#xe91a;",e.PLUS_PLAIN="&#xe91b;",e.FACET_HAS_DESCENDANT="&#xe91c;",e.TRIANGLE_BOTTOM="&#xe91d;",e.TRIANGLE_LEFT="&#xe91e;",e.TRIANGLE_RIGHT="&#xe91f;",e.TRIANGLE_TOP="&#xe920;",e.THIN_ARROW="&#xe921;",e.SIGN_IN="&#xe922;",e.LOGOUT="&#xe923;",e.TRANSLATE="&#xe924;",e.CLOSE_PLAIN="&#xe925;",e.CHECK_PLAIN="&#xe926;",e.ARTICLE="&#xe927;",e.COLUMNS="&#xe928;",e.ANALYTICS="&#xe929;",e.COLLECTIONS="&#xe92a;",e.ARROW_DOWN="&#xe92b;",e.ARROW_LEFT="&#xe92c;",e.ARROW_RIGHT="&#xe92d;",e.ARROW_UP="&#xe92e;",e.SEARCH_IN_PUBLICATION="&#xe92f;",e.COPY_TO_CLIPBOARD="&#xe930;",e.SHARED_PBK="&#xe931;",e.ATTACHMENTS="&#xe932;",e.STRIPE_ARROW_LEFT="&#xe933;",e.STRIPE_ARROW_RIGHT="&#xe934;",e.FILTERS="&#xe935;",e.DOT="&#xe936;",e.MINUS="&#xe937;",e.PLUS="&#xe938;",e.MAILS_AND_NOTIFICATIONS="&#xe939;",e.SAVE="&#xe93a;",e.LOCKER="&#xe93b;",e.ADMIN_INTEGRATION="&#xe93c;",e.SYNC="&#xe93d;",e.TAG="&#xe93e;",e.BOOK_PLAIN="&#xe93f;",e.UPLOAD="&#xe940;",e.ONLINE="&#xe941;",e.TAG_PLAIN="&#xe942;",e.ACCOUNT_SETTINGS="&#xe943;",e.PRINT="&#xe944;",e.DEFAULT_ROLES="&#xe945;",e.SHORTCUT_MENU="&#xe946;",e.RELATIVES_PLAIN="&#xe947;",e.RELATIVES="&#xe948;",e.PAUSE="&#xe949;",e.PLAY="&#xe94a;",e.ADMIN_PORTAL="&#xe94b;",e.STAR="&#xe94c;",e.THUMBS_DOWN="&#xe94d;",e.THUMBS_DOWN_PLAIN="&#xe94e;",e.THUMBS_UP="&#xe94f;",e.THUMBS_UP_PLAIN="&#xe950;",e.FEEDBACK_PLAIN="&#xe951;",e.RATE_PLAIN="&#xe952;",e.RATE="&#xe953;",e.OFFLINE_SETTINGS="&#xe954;",e.MY_COLLECTIONS="&#xe955;",e.THIN_ARROW_LEFT="&#xe956;",e.THIN_ARROW_RIGHT="&#xe957;",e.RESET="&#xe958;",e.MY_LIBRARY="&#xe959;",e.UNSTRUCTURED_DOC="&#xe95a;",e.CONTEXTUAL="&#xe95b;",e.THIN_ARROW_UP="&#xe95c;",e.ARROW_RIGHT_TO_LINE="&#xe95d;",e.DESKTOP="&#xe95e;",e.TABLET_LANDSCAPE="&#xe95f;",e.TABLET_PORTRAIT="&#xe960;",e.MOBILE_LANDSCAPE="&#xe961;",e.MOBILE_PORTRAIT="&#xe962;",e.DIAGRAM_SUNBURST="&#xe963;",e.DIAGRAM_SANKEY="&#xe964;",e.COMMENT_QUESTION="&#xe965;",e.COMMENT_QUESTION_PLAIN="&#xe966;",e.MESSAGE_BOT="&#xe967;",e.CHART_SIMPLE="&#xe968;",e.BARS_PROGRESS="&#xe969;",e.BOOK_OPEN_GEAR="&#xe96a;",e.BOOK_OPEN_GEAR_SLASH="&#xe96b;",e.LINE_CHART="&#xe96c;",e.STACKED_CHART="&#xe96d;",e.CHART_BAR_STACKED="&#xe96e;",e.CHART_BAR_GROUPED="&#xe96f;",e.EYE_SLASH="&#xe970;",e.X_MARK="&#xe971;",e.EXPAND_WIDE="&#xe972;",e.PIP="&#xe973;",e.PIP_WIDE="&#xe974;",e.LIFE_RING="&#xe975;",e.GLOBE="&#xe976;",e.PIGGY_BANK="&#xe977;",e.EXTLINK_LIGHT="&#xe978;",e.CLONE="&#xe979;",e.CLONE_LINK_SIMPLE="&#xe97a;",e.CHART_BAR_NORMALIZED="&#xe97b;",e.CONSUMER="&#xe97c;",e.OCTAGON_XMARK="&#xe97d;",e.HOURGLASS_HALF="&#xe97e;",e.CLOCK="&#xe97f;",e.CLOCK_THREE="&#xe97f;",e.CALENDAR_DAY="&#xe980;",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",e.WAND_MAGIC_SPARKLES="&#xe982;",e.PAPER_PLANE="&#xe983;",e.CIRCLE_STOP="&#xe984;",e.ARROW_ROTATE_RIGHT="&#xe985;",e.ARROWS_ROTATE="&#xe986;",e.ALIGN_RIGHT="&#xe987;",e.FORMAT_CLEAR="&#xe988;",e.ALIGN_CENTER="&#xe989;",e.ALIGN_LEFT="&#xe98a;",e.PALETTE="&#xe98b;",e.BOLD="&#xe98c;",e.ITALIC="&#xe98d;",e.UNDERLINE="&#xe98e;",e.STRIKETHROUGH="&#xe98f;",e.LINK_SIMPLE_SLASH="&#xe990;",e.LINK_SIMPLE="&#xe991;",e.ROUTE="&#xe992;",e.CIRCLE_USER_SLASH="&#xe993;",e.CIRCLE_USER_CHECK="&#xe994;",e.LIST_MAGNIFYING_GLASS="&#xe995;",e.MEDAL="&#xe996;",e.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",e.ARROW_TURN_DOWN_RIGHT="&#xe998;",e.FLASK="&#xe999;",e.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",e.HOURGLASS_END="&#xe99b;",e.CIRCLE_QUESTION="&#xe99c;",e.GRIP_LINES_SOLID="&#xe99d;",e.TRANSLATE_SPARKLE_SOLID="&#xe99e;",e.CODE="&#xe99f;",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",e.PAPER_PLANE_SLASH="&#xe9a1;",e.COMPRESS="&#xe9a2;",e.EXPAND="&#xe9a3;",e.ARROW_ROTATE_LEFT="&#xe9a4;",e.EYE="&#xf06e;",e.SHARE="&#xe80f1;",e.MOBILE_SMALL="&#xe9a5;",e.SPARKLES="&#xe9a6;",e.HAND_SOLID="&#xe9a7;",e.CLOCK_SOLID="&#xe9a8;",e.CONTEXT_MENU_CURSOR="&#xe9a9;",e.LANGUAGE_SLASH="&#xe9aa;",e.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",e.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",e.BOOKMARK_SLASH="&#xe9ad;",e.CIRCLE_PAUSE="&#xe9ae;",e.CIRCLE_PLAY="&#xe9af;",e.CIRCLE_STOP_PLAIN="&#xe9b0;",e.CLOUD_ARROW_DOWN="&#xe9b1;",e.SHARE_NODES="&#xe9b2;",e.BELL="&#xe9b3;",e.BELL_SLASH="&#xe9b4;",e.FILE="&#xe9b5;",e.HAND="&#xe9b6;",e.SQUARE_INFO_SOLID="&#xe9b7;"})(Ct||(Ct={}));var S;(function(e){e.UNKNOWN="&#xe90a;",e.ABW="&#xe900;",e.AUDIO="&#xe901;",e.AVI="&#xe902;",e.CHM="&#xe904;",e.CODE="&#xe905;",e.CSV="&#xe903;",e.DITA="&#xe906;",e.EPUB="&#xe907;",e.EXCEL="&#xe908;",e.FLAC="&#xe909;",e.GIF="&#xe90b;",e.GZIP="&#xe90c;",e.HTML="&#xe90d;",e.IMAGE="&#xe90e;",e.JPEG="&#xe90f;",e.JSON="&#xe910;",e.M4A="&#xe911;",e.MOV="&#xe912;",e.MP3="&#xe913;",e.MP4="&#xe914;",e.OGG="&#xe915;",e.PDF="&#xe916;",e.PNG="&#xe917;",e.POWERPOINT="&#xe918;",e.RAR="&#xe91a;",e.STP="&#xe91b;",e.TEXT="&#xe91c;",e.VIDEO="&#xe91e;",e.WAV="&#xe91f;",e.WMA="&#xe920;",e.WORD="&#xe921;",e.XML="&#xe922;",e.YAML="&#xe919;",e.ZIP="&#xe923;"})(S||(S={}));var Fy=new Map([...["abw"].map(e=>[e,S.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(e=>[e,S.AUDIO]),...["avi"].map(e=>[e,S.AVI]),...["chm","xhs"].map(e=>[e,S.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(e=>[e,S.CODE]),...["csv"].map(e=>[e,S.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,S.DITA]),...["epub"].map(e=>[e,S.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,S.EXCEL]),...["flac"].map(e=>[e,S.FLAC]),...["gif"].map(e=>[e,S.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,S.GZIP]),...["html","htm","xhtml"].map(e=>[e,S.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(e=>[e,S.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,S.JPEG]),...["json"].map(e=>[e,S.JSON]),...["m4a","m4p"].map(e=>[e,S.M4A]),...["mov","qt"].map(e=>[e,S.MOV]),...["mp3"].map(e=>[e,S.MP3]),...["mp4","m4v"].map(e=>[e,S.MP4]),...["ogg","oga"].map(e=>[e,S.OGG]),...["pdf","ps"].map(e=>[e,S.PDF]),...["png"].map(e=>[e,S.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,S.POWERPOINT]),...["rar"].map(e=>[e,S.RAR]),...["stp"].map(e=>[e,S.STP]),...["txt","rtf","md","mdown"].map(e=>[e,S.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(e=>[e,S.VIDEO]),...["wav"].map(e=>[e,S.WAV]),...["wma"].map(e=>[e,S.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,S.WORD]),...["xml","xsl","rdf"].map(e=>[e,S.XML]),...["yaml","yml","x-yaml"].map(e=>[e,S.YAML]),...["zip"].map(e=>[e,S.ZIP])]);var zy={[S.ABW]:"#91ABC6",[S.AUDIO]:"#1795E3",[S.AVI]:"#E63324",[S.CHM]:"#71C3EB",[S.CODE]:"#71C3EB",[S.CSV]:"#1F7345",[S.DITA]:"#71C3EB",[S.EPUB]:"#85B926",[S.EXCEL]:"#1F7345",[S.FLAC]:"#1795E3",[S.GIF]:"#59B031",[S.GZIP]:"#F8AB36",[S.HTML]:"#71C3EB",[S.IMAGE]:"#59B031",[S.JPEG]:"#59B031",[S.JSON]:"#71C3EB",[S.M4A]:"#1795E3",[S.MOV]:"#E63324",[S.MP3]:"#1795E3",[S.MP4]:"#E63324",[S.OGG]:"#1795E3",[S.PDF]:"#E44948",[S.PNG]:"#59B031",[S.POWERPOINT]:"#B54A2B",[S.RAR]:"#F8AB36",[S.STP]:"#3764B1",[S.TEXT]:"#3162AB",[S.UNKNOWN]:"#999999",[S.VIDEO]:"#E63324",[S.WAV]:"#1795E3",[S.WMA]:"#1795E3",[S.WORD]:"#3162AB",[S.XML]:"#71C3EB",[S.YAML]:"#71C3EB",[S.ZIP]:"#F8AB36"};var vi=C(Z()),ye=C(k()),Re={size:ye.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:ye.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",ye.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:ye.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",ye.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:ye.FtCssVariableFactory.extend("--ft-icon-material-font-family","",ye.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:ye.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Si=[vi.css`
279
279
  :host, i.ft-icon {
280
280
  display: inline-flex;
281
281
  align-items: center;
@@ -332,11 +332,11 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
332
332
  `;var _t=C(k());var Ts=C(k());var Bi=C(Z()),Y=C(te()),me=C(k());var Ri=C(Z());var Ni=Ri.css`
333
333
  `;var So=class{addCommand(r,o=!1){w.commands.add(r,o)}consumeCommand(r){return w.commands.consume(r)}};window.FluidTopicsAppInfoStoreService=new So;var ue=C(k());var Ti,Et=class extends CustomEvent{constructor(r){super("ft-i18n-context-loaded",{detail:r})}},Bc=Symbol("clearAfterUnitTest"),Or=class extends(0,ue.withEventBus)(ie){constructor(r){super(),this.messageContextProvider=r,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Ti]=()=>{this.defaultMessages={},this.cache=new ue.CacheRegistry,this.listeners={}},this.currentUiLocale=w.getState().uiLocale,w.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:r}=w.getState();this.currentUiLocale!==r&&(this.currentUiLocale=r,this.cache.clearAll(),this.notifyAll())}addContext(r){let o=r.name.toLowerCase();this.cache.setFinal(o,r),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(r,o){var n;if(r=r.toLowerCase(),o&&Object.keys(o).length>0){let a={...(n=this.defaultMessages[r])!==null&&n!==void 0?n:{},...o};(0,ue.deepEqual)(this.defaultMessages[r],a)||(this.defaultMessages[r]=a,await this.notify(r))}return this.fetchContext(r)}resolveContext(r){var o,n;return this.fetchContext(r),(n=(o=this.cache.getNow(r))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(r,o){let n=r.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(r,o,...n){var a;let s=r.toLowerCase(),c=this.resolveContext(s);return new ue.ParametrizedLabelResolver((a=this.defaultMessages[s])!==null&&a!==void 0?a:{},c).resolve(o,...n)}async fetchContext(r){let o=!this.cache.has(r),n;try{n=await this.cache.get(r,()=>this.messageContextProvider(this.currentUiLocale,r)),o&&await this.notify(r)}catch(a){!(a instanceof ue.CanceledPromiseError)&&o&&console.error(a)}return n}subscribe(r,o){var n;return r=r.toLowerCase(),this.listeners[r]=(n=this.listeners[r])!==null&&n!==void 0?n:new Set,this.listeners[r].add(o),()=>{var a;return(a=this.listeners[r])===null||a===void 0?void 0:a.delete(o)}}async notifyAll(){let r=Object.keys(this.listeners);document.body.dispatchEvent(new Et({loadedContexts:r})),this.dispatchEvent(new Et({loadedContexts:r})),await Promise.all(r.map(o=>this.notify(o,!1)))}async notify(r,o=!0){o&&(document.body.dispatchEvent(new Et({loadedContexts:[r]})),this.dispatchEvent(new Et({loadedContexts:[r]}))),this.listeners[r]!=null&&await Promise.all([...this.listeners[r].values()].map(n=>(0,ue.delay)(0).then(()=>n()).catch(()=>null)))}};Ti=Bc;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Or{constructor(){super(async(e,r)=>(await this.awaitApi).getFluidTopicsMessageContext(e,r))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Or{constructor(){super(async(e,r)=>(await this.awaitApi).getCustomMessageContext(e,r))}});var At=window.FluidTopicsI18nService,Cr=window.FluidTopicsCustomI18nService;var Ii=C(k()),Oo=class{highlightHtml(r,o,n){(0,Ii.highlightHtml)(r,o,n)}};window.FluidTopicsHighlightHtmlService=new Oo;var Li=C(k());var Co=class{isDate(r){var o,n,a,s;return(s=(a=((n=(o=w.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===r))===null||a===void 0?void 0:a.date)!==null&&s!==void 0?s:!1}format(r,o){var n,a,s;return Li.DateFormatter.format(r,(n=o?.locale)!==null&&n!==void 0?n:w.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(s=o?.withTime)!==null&&s!==void 0?s:!1)}};window.FluidTopicsDateService=new Co;var _i=C(k());var Kt=class{static get(r,o){var n,a;let s=w.getState(),{lang:c,region:l}=(a=(n=s.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new _i.SearchPlaceConverter(s.baseUrl,r??20,s.searchInAllLanguagesAllowed,o??`${c}-${l}`)}};var Eo=class{urlToSearchRequest(r){return Kt.get().parse(r)}searchRequestToUrl(r){return Kt.get().serialize(r)}};window.FluidTopicsUrlService=new Eo;var We=C(k());var rt=class e extends CustomEvent{constructor(r){super(e.eventName,{detail:{currentItem:r}})}};rt.eventName="change";var Ao=class{itemName(r){return`fluid-topics-history-item-${r}`}get(r){let o=sessionStorage.getItem(this.itemName(r));return o?JSON.parse(o):void 0}set(r,o){sessionStorage.setItem(this.itemName(r),JSON.stringify(o))}},Pi=new Ao;var Er=class e extends We.WithEventBus{static build(){return new e(window.history,Pi,()=>window.location,!1)}constructor(r,o,n,a){var s,c;super(),this.history=r,this.historyStorage=o,this.windowLocation=n,this.states=[],this.realPushState=r.pushState,this.realReplaceState=r.replaceState,this.initialIndex=(c=(s=r.state)===null||s===void 0?void 0:s.index)!==null&&c!==void 0?c:r.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(r,o=!1){let n=o&&this.currentIndex===r.index-1;this.currentState={...this.buildCurrentState(),...r},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,We.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new rt(this.currentItem())),0)}installProxies(){let r=o=>(n,a,[s,c,l])=>{let u=o(),p={...u===this.currentIndex?this.currentState:void 0,...s,index:u,href:typeof l=="string"?l:(l??this.windowLocation()).href};n.apply(a,[p,c,l]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:r(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:r(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",r=>this.setCurrentState(r.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(r){for(let o=this.history.length-1;o>=0;o--)r?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(r){var o;let n={...this.buildCurrentState(),...r,index:this.currentIndex,title:(o=r?.title)!==null&&o!==void 0?o:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(r){this.addEventListener(rt.eventName,r)}removeHistoryChangeListener(r){this.removeEventListener(rt.eventName,r)}currentItem(){return(0,We.deepCopy)(this.currentState)}back(){let r=this.previousDifferentMajorPosition();r>=0?this.history.go(r-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,We.deepCopy)(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let r=this.currentIndex>0?this.currentIndex-1:0;for(;r>0&&!this.isDifferentMajorState(r);)r--;return r}forward(){let r=this.nextMajorPosition();r&&r<this.states.length?this.history.go(r-this.currentIndex):this.history.forward()}forwardItem(){let r=this.nextMajorPosition();if(r)return(0,We.deepCopy)(this.states[r])}nextMajorPosition(){let r=this.currentIndex;if(!(r>=this.states.length)){do r++;while(r<this.states.length&&!this.isDifferentMajorState(r));return this.getHigherPositionInTheSameState(r)}}getHigherPositionInTheSameState(r){var o;let n=(o=this.states[r])===null||o===void 0?void 0:o.majorStateId;if(!n)return r;let a=r,s=r+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,n);)this.hasState(s)&&(a=s),s++;return a}buildCurrentState(){var r,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(r=this.history.state)===null||r===void 0?void 0:r.title)!==null&&o!==void 0?o:document.title}}hasState(r){return this.states[r]!=null}isDifferentMajorState(r,o){var n;if(!this.hasState(r))return!1;let a=o??this.currentState.majorStateId,s=(n=this.states[r])===null||n===void 0?void 0:n.majorStateId;return s==null||s!=a}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Er.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});var ki=w;function Di(e,r){var o;return ki.getState().authenticationRequired&&!(!((o=ki.getState().session)===null||o===void 0)&&o.sessionAuthenticated)?Promise.resolve(r):e()}var G=function(e,r,o,n){var a=arguments.length,s=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(s=(a<3?c(s):a>3?c(r,o,s):c(r,o))||s);return a>3&&s&&Object.defineProperty(r,o,s),s},B=class extends me.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=()=>et.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new me.CacheRegistry,this.cleanSessionDebouncer=new me.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return Bi.html`
334
334
  <slot></slot>
335
- `}connectedCallback(){super.connectedCallback(),w.addEventListener(Qe.eventName,this.reloadConfiguration)}disconnectedCallback(){w.addEventListener(Qe.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(r){var o,n,a,s,c,l,u;super.update(r),r.has("baseUrl")&&(w.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),r.has("apiIntegrationIdentifier")&&w.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),r.has("apiIntegrationAppVersion")&&w.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),r.has("uiLocale")&&w.actions.uiLocale(this.uiLocale),r.has("metadataConfiguration")&&w.actions.metadataConfiguration(this.metadataConfiguration),r.has("noCustom")&&w.actions.noCustom(this.noCustom),r.has("editorMode")&&w.actions.editorMode(this.editorMode),r.has("noCustomComponent")&&w.actions.noCustomComponent(this.noCustomComponent),r.has("session")&&w.actions.session(this.session),r.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(p=>At.addContext(p)),r.has("openExternalDocumentInNewTab")&&w.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),r.has("navigatorOnline")&&w.actions.navigatorOnline(this.navigatorOnline),r.has("forcedOffline")&&w.actions.forcedOffline(this.forcedOffline),r.has("localesConfiguration")&&(w.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),w.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),w.actions.searchInAllLanguagesAllowed((c=(s=this.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed)!==null&&c!==void 0?c:!1)),r.has("authenticationRequired")&&w.actions.authenticationRequired(this.authenticationRequired),r.has("availableContentLocales")&&w.actions.availableContentLocales((u=(l=this.availableContentLocales)===null||l===void 0?void 0:l.contentLocales)!==null&&u!==void 0?u:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},r.idleTimeoutInMillis),r})}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",()=>Di(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};B.elementDefinitions={};B.styles=Ni;G([(0,Y.property)()],B.prototype,"baseUrl",void 0);G([(0,Y.property)()],B.prototype,"apiIntegrationIdentifier",void 0);G([(0,Y.property)()],B.prototype,"apiIntegrationAppVersion",void 0);G([(0,Y.property)()],B.prototype,"uiLocale",void 0);G([(0,me.jsonProperty)(null)],B.prototype,"availableUiLocales",void 0);G([(0,me.jsonProperty)(null)],B.prototype,"metadataConfiguration",void 0);G([(0,Y.property)({type:Boolean})],B.prototype,"editorMode",void 0);G([(0,Y.property)({type:Boolean})],B.prototype,"noCustom",void 0);G([(0,Y.property)({type:Boolean})],B.prototype,"openExternalDocumentInNewTab",void 0);G([(0,Y.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],B.prototype,"noCustomComponent",void 0);G([(0,Y.property)({type:Boolean})],B.prototype,"withManualResources",void 0);G([(0,Y.property)({type:Boolean})],B.prototype,"navigatorOnline",void 0);G([(0,Y.property)({type:Boolean})],B.prototype,"forcedOffline",void 0);G([(0,Y.property)({type:Object})],B.prototype,"apiProvider",void 0);G([(0,Y.property)({type:Boolean})],B.prototype,"authenticationRequired",void 0);G([(0,me.jsonProperty)([])],B.prototype,"messageContexts",void 0);G([(0,me.jsonProperty)(void 0)],B.prototype,"session",void 0);G([(0,Y.state)()],B.prototype,"localesConfiguration",void 0);G([(0,Y.state)()],B.prototype,"availableContentLocales",void 0);var Yo=C(te());function Uc(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;let o,n,a;if(Array.isArray(e)){if(o=e.length,o!=r.length)return!1;for(n=o;n--!==0;)if(!Ar(e[n],r[n]))return!1;return!0}if(e instanceof Map&&r instanceof Map){if(e.size!==r.size)return!1;for(n of e.entries())if(!r.has(n[0]))return!1;for(n of e.entries())if(!Ar(n[1],r.get(n[0])))return!1;return!0}if(e instanceof Set&&r instanceof Set){if(e.size!==r.size)return!1;for(n of e.entries())if(!r.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();let s=c=>Object.keys(c).filter(l=>c[l]!=null);if(a=s(e),o=a.length,o!==s(r).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[n]))return!1;for(n=o;n--!==0;){let c=a[n];if(!Ar(e[c],r[c]))return!1}return!0}return e!==e&&r!==r||e==null&&r==null}function Ar(e,r){try{return Uc(e,r)}catch{return!1}}function Vt(e,r){return!Ar(e,r)}function wr(e,r){let o=n=>n[e]===!0;return n=>{if(o(n))return n;let a=r(n);return a[e]=!0,a}}var Ui=C(te(),1);var wo=e=>{let r=e??{};return(o,n)=>{var a;let s={hasChanged:Vt,attribute:!1,...r};(0,Ui.property)(s)(o,n);let c=o.constructor;c.reduxProperties=new Map(c.reduxProperties),c.reduxProperties.set(n,{selector:(a=r.selector)!==null&&a!==void 0?a:l=>l[n],store:r.store})}};var Rr=class{constructor(){this.queue=[]}add(r,o=!1){o&&this.clear(r.type),this.queue.push(r)}consume(r){let o=this.queue.find(n=>n.type===r);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(r){typeof r=="string"?this.queue=this.queue.filter(o=>o.type!==r):this.queue=this.queue.filter(o=>!r.test(o.type))}};var wt=C(te(),1);var Mi=C(te(),1);function Wi(e,r){let o=()=>JSON.parse(JSON.stringify(e));return(0,Mi.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:Vt,...r??{}})}var Nr=class{constructor(r=0){this.timeout=r,this.callbacks=[]}run(r,o){return this.callbacks=[r],this.debounce(o)}queue(r,o){return this.callbacks.push(r),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(r){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),r??this.timeout),this.promise}async runCallbacks(){var r,o;let n=[...this.callbacks];this.callbacks=[];let a=(r=this.rejectPromise)!==null&&r!==void 0?r:()=>null,s=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let c of n)try{await c()}catch(l){a(l);return}s(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Fi=C(Z(),1);var Tr=globalThis,Mc=Tr.ShadowRoot&&(Tr.ShadyCSS===void 0||Tr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,rg=Symbol();var Hi=(e,r)=>{if(Mc)e.adoptedStyleSheets=r.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of r){let n=document.createElement("style"),a=Tr.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,e.appendChild(n)}};var Ir=class extends Fi.LitElement{createRenderRoot(){let r=this.constructor;r.elementDefinitions&&!r.registry&&(r.registry=new CustomElementRegistry,Object.entries(r.elementDefinitions).forEach(([a,s])=>r.registry.define(a,s)));let o={...r.shadowRootOptions,customElements:r.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return Hi(n,r.elementStyles),n}};function zi(e,r,...o){var n;let a=e.querySelector(r);for(let s of o)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(s);return a}var Zt=function(e,r,o,n){var a=arguments.length,s=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(s=(a<3?c(s):a>3?c(r,o,s):c(r,o))||s);return a>3&&s&&Object.defineProperty(r,o,s),s},Ki,Gi=Symbol("constructorPrototype"),$i=Symbol("constructorName"),Vi=Symbol("exportpartsDebouncer"),ji=Symbol("dynamicDependenciesLoaded"),Ne=class extends Ir{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Ki]=new Nr(5),this[$i]=this.constructor.name,this[Gi]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[$i]&&Object.setPrototypeOf(this,this[Gi])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let r=this.constructor;r[ji]||(r[ji]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(r){super.updated(r),this.updateComplete.then(()=>{this.contentAvailableCallback(r),this.focusElementToFocus(r),this.applyCustomStylesheet(r),this.scheduleExportpartsUpdate()})}contentAvailableCallback(r){}focusElementToFocus(r){if(r.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let s=[...a??[],n];o=zi(this.shadowRoot,...s)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(r){var o,n,a;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(s=>s.remove()),this.useAdoptedStyleSheets){if(r.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(s){console.error(s,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let s=document.createElement("style");s.classList.add("ft-lit-element--custom-stylesheet"),s.innerHTML=this.customStylesheet,this.shadowRoot.append(s)}}scheduleExportpartsUpdate(){var r,o,n;(!((r=this.exportpartsPrefix)===null||r===void 0)&&r.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[Vi].run(()=>{var a,s;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((s=this.exportpartsPrefixes)===null||s===void 0?void 0:s.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(r){var o,n,a,s,c,l;let u=m=>m!=null&&m.trim().length>0,p=r.filter(u).map(m=>m.trim());if(p.length===0){this.removeAttribute("exportparts");return}let y=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 x=(s=(a=m.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&s!==void 0?s:[],b=(l=(c=m.getAttribute("exportparts"))===null||c===void 0?void 0:c.split(",").map(v=>v.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...x,...b).filter(u).map(v=>v.trim()).forEach(v=>y.add(v))}if(y.size===0){this.removeAttribute("exportparts");return}let f=[...y.values()].flatMap(m=>p.map(x=>`${m}:${x}--${m}`));this.setAttribute("exportparts",[...this.part,...f].join(", "))}};Ki=Vi;Zt([(0,wt.property)()],Ne.prototype,"exportpartsPrefix",void 0);Zt([Wi([])],Ne.prototype,"exportpartsPrefixes",void 0);Zt([(0,wt.property)()],Ne.prototype,"customStylesheet",void 0);Zt([(0,wt.property)()],Ne.prototype,"elementToFocus",void 0);Zt([(0,wt.state)()],Ne.prototype,"useAdoptedStyleSheets",void 0);function Lr(e){var r;return(r=e?.isFtReduxStore)!==null&&r!==void 0?r:!1}var qt=Symbol("internalReduxEventsUnsubscribers"),He=Symbol("internalStoresUnsubscribers"),ot=Symbol("internalStores"),Wc=wr(Symbol("withRedux"),function(e){var r,o,n;class a extends e{constructor(){super(...arguments),this[r]=new Map,this[o]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(c){super.willUpdate(c),[...this.reduxConstructor.reduxReactiveProperties].some(l=>c.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[ot].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ot].values()][0]}getStore(c){return c==null?this.getUnnamedStore():this[ot].get(c)}addStore(c,l){var u;l=(u=l??c.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(l),this[ot].set(l,c),this.subscribeToStore(l,c),this.updateFromStores()}removeStore(c){let l=typeof c=="string"?c:c.name;this.unsubscribeFromStore(l),this[ot].delete(l)}setupStores(){this.unsubscribeFromStores(),this[ot].forEach((c,l)=>this.subscribeToStore(l,c)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((c,l)=>{let u=this.constructor.getPropertyOptions(l);if(!u?.attribute||!this.hasAttribute(typeof u?.attribute=="string"?u.attribute:l)){let p=this.getStore(c.store);p&&(c.store?this[He].has(c.store):this[He].size>0)&&(this[l]=c.selector(p.getState(),this))}})}subscribeToStore(c,l){var u;this[He].set(c,l.subscribe(()=>this.updateFromStores())),this[qt].set(c,[]),Lr(l)&&l.eventBus&&((u=this.reduxConstructor.reduxEventListeners)===null||u===void 0||u.forEach((p,y)=>{if(typeof this[y]=="function"&&(!p.store||l.name===p.store)){let f=m=>this[y](m);l.addEventListener(p.eventName,f),this[qt].get(c).push(()=>l.removeEventListener(p.eventName,f))}})),this.onStoreAvailable(c)}unsubscribeFromStores(){this[He].forEach((c,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(c){var l;this[He].has(c)&&this[He].get(c)(),this[He].delete(c),(l=this[qt].get(c))===null||l===void 0||l.forEach(u=>u()),this[qt].delete(c)}onStoreAvailable(c){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return r=He,o=ot,n=qt,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),Zi=class extends Wc(Ne){};function pe(e){for(var r=arguments.length,o=Array(r>1?r-1:0),n=1;n<r;n++)o[n-1]=arguments[n];if(0)var a,s;throw Error("[Immer] minified error nr: "+e+(o.length?" "+o.map(function(c){return"'"+c+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Te(e){return!!e&&!!e[U]}function ge(e){var r;return!!e&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===Vc}(e)||Array.isArray(e)||!!e[ts]||!!(!((r=e.constructor)===null||r===void 0)&&r[ts])||Do(e)||Bo(e))}function nt(e,r,o){o===void 0&&(o=!1),Tt(e)===0?(o?Object.keys:Nt)(e).forEach(function(n){o&&typeof n=="symbol"||r(n,e[n],e)}):e.forEach(function(n,a){return r(a,n,e)})}function Tt(e){var r=e[U];return r?r.i>3?r.i-4:r.i:Array.isArray(e)?1:Do(e)?2:Bo(e)?3:0}function Rt(e,r){return Tt(e)===2?e.has(r):Object.prototype.hasOwnProperty.call(e,r)}function Hc(e,r){return Tt(e)===2?e.get(r):e[r]}function rs(e,r,o){var n=Tt(e);n===2?e.set(r,o):n===3?e.add(o):e[r]=o}function os(e,r){return e===r?e!==0||1/e==1/r:e!=e&&r!=r}function Do(e){return jc&&e instanceof Map}function Bo(e){return Kc&&e instanceof Set}function Fe(e){return e.o||e.t}function Uo(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var r=is(e);delete r[U];for(var o=Nt(r),n=0;n<o.length;n++){var a=o[n],s=r[a];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(r[a]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),r)}function Mo(e,r){return r===void 0&&(r=!1),Wo(e)||Te(e)||!ge(e)||(Tt(e)>1&&(e.set=e.add=e.clear=e.delete=Fc),Object.freeze(e),r&&nt(e,function(o,n){return Mo(n,!0)},!0)),e}function Fc(){pe(2)}function Wo(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Oe(e){var r=ko[e];return r||pe(18,e),r}function zc(e,r){ko[e]||(ko[e]=r)}function Lo(){return Xt}function Ro(e,r){r&&(Oe("Patches"),e.u=[],e.s=[],e.v=r)}function _r(e){_o(e),e.p.forEach(Gc),e.p=null}function _o(e){e===Xt&&(Xt=e.l)}function qi(e){return Xt={p:[],l:Xt,h:e,m:!0,_:0}}function Gc(e){var r=e[U];r.i===0||r.i===1?r.j():r.g=!0}function No(e,r){r._=r.p.length;var o=r.p[0],n=e!==void 0&&e!==o;return r.h.O||Oe("ES5").S(r,e,n),n?(o[U].P&&(_r(r),pe(4)),ge(e)&&(e=Pr(r,e),r.l||kr(r,e)),r.u&&Oe("Patches").M(o[U].t,e,r.u,r.s)):e=Pr(r,o,[]),_r(r),r.u&&r.v(r.u,r.s),e!==as?e:void 0}function Pr(e,r,o){if(Wo(r))return r;var n=r[U];if(!n)return nt(r,function(l,u){return Yi(e,n,r,l,u,o)},!0),r;if(n.A!==e)return r;if(!n.P)return kr(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Uo(n.k):n.o,s=a,c=!1;n.i===3&&(s=new Set(a),a.clear(),c=!0),nt(s,function(l,u){return Yi(e,n,a,l,u,o,c)}),kr(e,a,!1),o&&e.u&&Oe("Patches").N(n,o,e.u,e.s)}return n.o}function Yi(e,r,o,n,a,s,c){if(Te(a)){var l=Pr(e,a,s&&r&&r.i!==3&&!Rt(r.R,n)?s.concat(n):void 0);if(rs(o,n,l),!Te(l))return;e.m=!1}else c&&o.add(a);if(ge(a)&&!Wo(a)){if(!e.h.D&&e._<1)return;Pr(e,a),r&&r.A.l||kr(e,a)}}function kr(e,r,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&Mo(r,o)}function To(e,r){var o=e[U];return(o?Fe(o):e)[r]}function Xi(e,r){if(r in e)for(var o=Object.getPrototypeOf(e);o;){var n=Object.getOwnPropertyDescriptor(o,r);if(n)return n;o=Object.getPrototypeOf(o)}}function ze(e){e.P||(e.P=!0,e.l&&ze(e.l))}function Io(e){e.o||(e.o=Uo(e.t))}function Po(e,r,o){var n=Do(r)?Oe("MapSet").F(r,o):Bo(r)?Oe("MapSet").T(r,o):e.O?function(a,s){var c=Array.isArray(a),l={i:c?1:0,A:s?s.A:Lo(),P:!1,I:!1,R:{},l:s,t:a,k:null,o:null,j:null,C:!1},u=l,p=Jt;c&&(u=[l],p=Yt);var y=Proxy.revocable(u,p),f=y.revoke,m=y.proxy;return l.k=m,l.j=f,m}(r,o):Oe("ES5").J(r,o);return(o?o.A:Lo()).p.push(n),n}function $c(e){return Te(e)||pe(22,e),function r(o){if(!ge(o))return o;var n,a=o[U],s=Tt(o);if(a){if(!a.P&&(a.i<4||!Oe("ES5").K(a)))return a.t;a.I=!0,n=Ji(o,s),a.I=!1}else n=Ji(o,s);return nt(n,function(c,l){a&&Hc(a.t,c)===l||rs(n,c,r(l))}),s===3?new Set(n):n}(e)}function Ji(e,r){switch(r){case 2:return new Map(e);case 3:return Array.from(e)}return Uo(e)}function ns(){function e(c,l){var u=s[c];return u?u.enumerable=l:s[c]=u={configurable:!0,enumerable:l,get:function(){var p=this[U];return Jt.get(p,c)},set:function(p){var y=this[U];Jt.set(y,c,p)}},u}function r(c){for(var l=c.length-1;l>=0;l--){var u=c[l][U];if(!u.P)switch(u.i){case 5:n(u)&&ze(u);break;case 4:o(u)&&ze(u)}}}function o(c){for(var l=c.t,u=c.k,p=Nt(u),y=p.length-1;y>=0;y--){var f=p[y];if(f!==U){var m=l[f];if(m===void 0&&!Rt(l,f))return!0;var x=u[f],b=x&&x[U];if(b?b.t!==m:!os(x,m))return!0}}var v=!!l[U];return p.length!==Nt(l).length+(v?0:1)}function n(c){var l=c.k;if(l.length!==c.t.length)return!0;var u=Object.getOwnPropertyDescriptor(l,l.length-1);if(u&&!u.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function a(c){c.g&&pe(3,JSON.stringify(Fe(c)))}var s={};zc("ES5",{J:function(c,l){var u=Array.isArray(c),p=function(f,m){if(f){for(var x=Array(m.length),b=0;b<m.length;b++)Object.defineProperty(x,""+b,e(b,!0));return x}var v=is(m);delete v[U];for(var R=Nt(v),E=0;E<R.length;E++){var A=R[E];v[A]=e(A,f||!!v[A].enumerable)}return Object.create(Object.getPrototypeOf(m),v)}(u,c),y={i:u?5:4,A:l?l.A:Lo(),P:!1,I:!1,R:{},l,t:c,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,U,{value:y,writable:!0}),p},S:function(c,l,u){u?Te(l)&&l[U].A===c&&r(c.p):(c.u&&function p(y){if(y&&typeof y=="object"){var f=y[U];if(f){var m=f.t,x=f.k,b=f.R,v=f.i;if(v===4)nt(x,function(L){L!==U&&(m[L]!==void 0||Rt(m,L)?b[L]||p(x[L]):(b[L]=!0,ze(f)))}),nt(m,function(L){x[L]!==void 0||Rt(x,L)||(b[L]=!1,ze(f))});else if(v===5){if(n(f)&&(ze(f),b.length=!0),x.length<m.length)for(var R=x.length;R<m.length;R++)b[R]=!1;else for(var E=m.length;E<x.length;E++)b[E]=!0;for(var A=Math.min(x.length,m.length),I=0;I<A;I++)x.hasOwnProperty(I)||(b[I]=!0),b[I]===void 0&&p(x[I])}}}}(c.p[0]),r(c.p))},K:function(c){return c.i===4?o(c):n(c)}})}var Qi,Xt,Ho=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",jc=typeof Map<"u",Kc=typeof Set<"u",es=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",as=Ho?Symbol.for("immer-nothing"):((Qi={})["immer-nothing"]=!0,Qi),ts=Ho?Symbol.for("immer-draftable"):"__$immer_draftable",U=Ho?Symbol.for("immer-state"):"__$immer_state";var Vc=""+Object.prototype.constructor,Nt=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,is=Object.getOwnPropertyDescriptors||function(e){var r={};return Nt(e).forEach(function(o){r[o]=Object.getOwnPropertyDescriptor(e,o)}),r},ko={},Jt={get:function(e,r){if(r===U)return e;var o=Fe(e);if(!Rt(o,r))return function(a,s,c){var l,u=Xi(s,c);return u?"value"in u?u.value:(l=u.get)===null||l===void 0?void 0:l.call(a.k):void 0}(e,o,r);var n=o[r];return e.I||!ge(n)?n:n===To(e.t,r)?(Io(e),e.o[r]=Po(e.A.h,n,e)):n},has:function(e,r){return r in Fe(e)},ownKeys:function(e){return Reflect.ownKeys(Fe(e))},set:function(e,r,o){var n=Xi(Fe(e),r);if(n?.set)return n.set.call(e.k,o),!0;if(!e.P){var a=To(Fe(e),r),s=a?.[U];if(s&&s.t===o)return e.o[r]=o,e.R[r]=!1,!0;if(os(o,a)&&(o!==void 0||Rt(e.t,r)))return!0;Io(e),ze(e)}return e.o[r]===o&&(o!==void 0||r in e.o)||Number.isNaN(o)&&Number.isNaN(e.o[r])||(e.o[r]=o,e.R[r]=!0),!0},deleteProperty:function(e,r){return To(e.t,r)!==void 0||r in e.t?(e.R[r]=!1,Io(e),ze(e)):delete e.R[r],e.o&&delete e.o[r],!0},getOwnPropertyDescriptor:function(e,r){var o=Fe(e),n=Reflect.getOwnPropertyDescriptor(o,r);return n&&{writable:!0,configurable:e.i!==1||r!=="length",enumerable:n.enumerable,value:o[r]}},defineProperty:function(){pe(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){pe(12)}},Yt={};nt(Jt,function(e,r){Yt[e]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}}),Yt.deleteProperty=function(e,r){return Yt.set.call(this,e,r,void 0)},Yt.set=function(e,r,o){return Jt.set.call(this,e[0],r,o,e[0])};var Zc=function(){function e(o){var n=this;this.O=es,this.D=!0,this.produce=function(a,s,c){if(typeof a=="function"&&typeof s!="function"){var l=s;s=a;var u=n;return function(v){var R=this;v===void 0&&(v=l);for(var E=arguments.length,A=Array(E>1?E-1:0),I=1;I<E;I++)A[I-1]=arguments[I];return u.produce(v,function(L){var _;return(_=s).call.apply(_,[R,L].concat(A))})}}var p;if(typeof s!="function"&&pe(6),c!==void 0&&typeof c!="function"&&pe(7),ge(a)){var y=qi(n),f=Po(n,a,void 0),m=!0;try{p=s(f),m=!1}finally{m?_r(y):_o(y)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(v){return Ro(y,c),No(v,y)},function(v){throw _r(y),v}):(Ro(y,c),No(p,y))}if(!a||typeof a!="object"){if((p=s(a))===void 0&&(p=a),p===as&&(p=void 0),n.D&&Mo(p,!0),c){var x=[],b=[];Oe("Patches").M(a,p,x,b),c(x,b)}return p}pe(21,a)},this.produceWithPatches=function(a,s){if(typeof a=="function")return function(p){for(var y=arguments.length,f=Array(y>1?y-1:0),m=1;m<y;m++)f[m-1]=arguments[m];return n.produceWithPatches(p,function(x){return a.apply(void 0,[x].concat(f))})};var c,l,u=n.produce(a,s,function(p,y){c=p,l=y});return typeof Promise<"u"&&u instanceof Promise?u.then(function(p){return[p,c,l]}):[u,c,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var r=e.prototype;return r.createDraft=function(o){ge(o)||pe(8),Te(o)&&(o=$c(o));var n=qi(this),a=Po(this,o,void 0);return a[U].C=!0,_o(n),a},r.finishDraft=function(o,n){var a=o&&o[U],s=a.A;return Ro(s,n),No(void 0,s)},r.setAutoFreeze=function(o){this.D=o},r.setUseProxies=function(o){o&&!es&&pe(20),this.O=o},r.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var s=n[a];if(s.path.length===0&&s.op==="replace"){o=s.value;break}}a>-1&&(n=n.slice(a+1));var c=Oe("Patches").$;return Te(o)?c(o,n):this.produce(o,function(l){return c(l,n)})},e}(),ce=new Zc,qc=ce.produce,gg=ce.produceWithPatches.bind(ce),bg=ce.setAutoFreeze.bind(ce),xg=ce.setUseProxies.bind(ce),vg=ce.applyPatches.bind(ce),Sg=ce.createDraft.bind(ce),Og=ce.finishDraft.bind(ce),Dr=qc;function at(e){"@babel/helpers - typeof";return at=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},at(e)}function ss(e,r){if(at(e)!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var n=o.call(e,r||"default");if(at(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function cs(e){var r=ss(e,"string");return at(r)=="symbol"?r:r+""}function ls(e,r,o){return(r=cs(r))in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o,e}function ds(e,r){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,n)}return o}function Fo(e){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{};r%2?ds(Object(o),!0).forEach(function(n){ls(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ds(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function J(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var us=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),zo=function(){return Math.random().toString(36).substring(7).split("").join(".")},Br={INIT:"@@redux/INIT"+zo(),REPLACE:"@@redux/REPLACE"+zo(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+zo()}};function Yc(e){if(typeof e!="object"||e===null)return!1;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r}function Go(e,r,o){var n;if(typeof r=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(J(0));if(typeof r=="function"&&typeof o>"u"&&(o=r,r=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(J(1));return o(Go)(e,r)}if(typeof e!="function")throw new Error(J(2));var a=e,s=r,c=[],l=c,u=!1;function p(){l===c&&(l=c.slice())}function y(){if(u)throw new Error(J(3));return s}function f(v){if(typeof v!="function")throw new Error(J(4));if(u)throw new Error(J(5));var R=!0;return p(),l.push(v),function(){if(R){if(u)throw new Error(J(6));R=!1,p();var A=l.indexOf(v);l.splice(A,1),c=null}}}function m(v){if(!Yc(v))throw new Error(J(7));if(typeof v.type>"u")throw new Error(J(8));if(u)throw new Error(J(9));try{u=!0,s=a(s,v)}finally{u=!1}for(var R=c=l,E=0;E<R.length;E++){var A=R[E];A()}return v}function x(v){if(typeof v!="function")throw new Error(J(10));a=v,m({type:Br.REPLACE})}function b(){var v,R=f;return v={subscribe:function(A){if(typeof A!="object"||A===null)throw new Error(J(11));function I(){A.next&&A.next(y())}I();var L=R(I);return{unsubscribe:L}}},v[us]=function(){return this},v}return m({type:Br.INIT}),n={dispatch:m,subscribe:f,getState:y,replaceReducer:x},n[us]=b,n}function Xc(e){Object.keys(e).forEach(function(r){var o=e[r],n=o(void 0,{type:Br.INIT});if(typeof n>"u")throw new Error(J(12));if(typeof o(void 0,{type:Br.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(J(13))})}function ps(e){for(var r=Object.keys(e),o={},n=0;n<r.length;n++){var a=r[n];typeof e[a]=="function"&&(o[a]=e[a])}var s=Object.keys(o),c,l;try{Xc(o)}catch(u){l=u}return function(p,y){if(p===void 0&&(p={}),l)throw l;if(0)var f;for(var m=!1,x={},b=0;b<s.length;b++){var v=s[b],R=o[v],E=p[v],A=R(E,y);if(typeof A>"u"){var I=y&&y.type;throw new Error(J(14))}x[v]=A,m=m||A!==E}return m=m||s.length!==Object.keys(p).length,m?x:p}}function It(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return r.length===0?function(n){return n}:r.length===1?r[0]:r.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function fs(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),s=function(){throw new Error(J(15))},c={getState:a.getState,dispatch:function(){return s.apply(void 0,arguments)}},l=r.map(function(u){return u(c)});return s=It.apply(void 0,l)(a.dispatch),Fo(Fo({},a),{},{dispatch:s})}}}function hs(e){var r=function(n){var a=n.dispatch,s=n.getState;return function(c){return function(l){return typeof l=="function"?l(a,s,e):c(l)}}};return r}var ys=hs();ys.withExtraArgument=hs;var $o=ys;var vs=function(){var e=function(r,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(n[s]=a[s])},e(r,o)};return function(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(r,o);function n(){this.constructor=r}r.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),Jc=function(e,r){var o={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,a,s,c;return c={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function l(p){return function(y){return u([p,y])}}function u(p){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(s=p[0]&2?a.return:p[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,p[1])).done)return s;switch(a=0,s&&(p=[p[0]&2,s.value]),p[0]){case 0:case 1:s=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,a=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(s=o.trys,!(s=s.length>0&&s[s.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!s||p[1]>s[0]&&p[1]<s[3])){o.label=p[1];break}if(p[0]===6&&o.label<s[1]){o.label=s[1],s=p;break}if(s&&o.label<s[2]){o.label=s[2],o.ops.push(p);break}s[2]&&o.ops.pop(),o.trys.pop();continue}p=r.call(e,o)}catch(y){p=[6,y],a=0}finally{n=s=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Lt=function(e,r){for(var o=0,n=r.length,a=e.length;o<n;o++,a++)e[a]=r[o];return e},Qc=Object.defineProperty,el=Object.defineProperties,tl=Object.getOwnPropertyDescriptors,ms=Object.getOwnPropertySymbols,rl=Object.prototype.hasOwnProperty,ol=Object.prototype.propertyIsEnumerable,gs=function(e,r,o){return r in e?Qc(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o},Ge=function(e,r){for(var o in r||(r={}))rl.call(r,o)&&gs(e,o,r[o]);if(ms)for(var n=0,a=ms(r);n<a.length;n++){var o=a[n];ol.call(r,o)&&gs(e,o,r[o])}return e},jo=function(e,r){return el(e,tl(r))},nl=function(e,r,o){return new Promise(function(n,a){var s=function(u){try{l(o.next(u))}catch(p){a(p)}},c=function(u){try{l(o.throw(u))}catch(p){a(p)}},l=function(u){return u.done?n(u.value):Promise.resolve(u.value).then(s,c)};l((o=o.apply(e,r)).next())})};var al=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?It:It.apply(null,arguments)},Hg=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function il(e){if(typeof e!="object"||e===null)return!1;var r=Object.getPrototypeOf(e);if(r===null)return!0;for(var o=r;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return r===o}var sl=function(e){vs(r,e);function r(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,r.prototype),a}return Object.defineProperty(r,Symbol.species,{get:function(){return r},enumerable:!1,configurable:!0}),r.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},r.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(r.bind.apply(r,Lt([void 0],o[0].concat(this)))):new(r.bind.apply(r,Lt([void 0],o.concat(this))))},r}(Array),cl=function(e){vs(r,e);function r(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,r.prototype),a}return Object.defineProperty(r,Symbol.species,{get:function(){return r},enumerable:!1,configurable:!0}),r.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},r.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(r.bind.apply(r,Lt([void 0],o[0].concat(this)))):new(r.bind.apply(r,Lt([void 0],o.concat(this))))},r}(Array);function Zo(e){return ge(e)?Dr(e,function(){}):e}function ll(e){return typeof e=="boolean"}function dl(){return function(r){return ul(r)}}function ul(e){e===void 0&&(e={});var r=e.thunk,o=r===void 0?!0:r,n=e.immutableCheck,a=n===void 0?!0:n,s=e.serializableCheck,c=s===void 0?!0:s,l=new sl;if(o&&(ll(o)?l.push($o):l.push($o.withExtraArgument(o.extraArgument))),0){if(a)var u;if(c)var p}return l}var Ko=!0;function Ss(e){var r=dl(),o=e||{},n=o.reducer,a=n===void 0?void 0:n,s=o.middleware,c=s===void 0?r():s,l=o.devTools,u=l===void 0?!0:l,p=o.preloadedState,y=p===void 0?void 0:p,f=o.enhancers,m=f===void 0?void 0:f,x;if(typeof a=="function")x=a;else if(il(a))x=ps(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var b=c;if(typeof b=="function"&&(b=b(r),!Ko&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Ko&&b.some(function(L){return typeof L!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=fs.apply(void 0,b),R=It;u&&(R=al(Ge({trace:!Ko},typeof u=="object"&&u)));var E=new cl(v),A=E;Array.isArray(m)?A=Lt([v],m):typeof m=="function"&&(A=m(E));var I=R.apply(void 0,A);return Go(x,y,I)}function $e(e,r){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(r){var s=r.apply(void 0,n);if(!s)throw new Error("prepareAction did not return an object");return Ge(Ge({type:e,payload:s.payload},"meta"in s&&{meta:s.meta}),"error"in s&&{error:s.error})}return{type:e,payload:n[0]}}return o.toString=function(){return""+e},o.type=e,o.match=function(n){return n.type===e},o}function Os(e){var r={},o=[],n,a={addCase:function(s,c){var l=typeof s=="string"?s:s.type;if(l in r)throw new Error("addCase cannot be called with two reducers for the same action type");return r[l]=c,a},addMatcher:function(s,c){return o.push({matcher:s,reducer:c}),a},addDefaultCase:function(s){return n=s,a}};return e(a),[r,o,n]}function pl(e){return typeof e=="function"}function fl(e,r,o,n){o===void 0&&(o=[]);var a=typeof r=="function"?Os(r):[r,o,n],s=a[0],c=a[1],l=a[2],u;if(pl(e))u=function(){return Zo(e())};else{var p=Zo(e);u=function(){return p}}function y(f,m){f===void 0&&(f=u());var x=Lt([s[m.type]],c.filter(function(b){var v=b.matcher;return v(m)}).map(function(b){var v=b.reducer;return v}));return x.filter(function(b){return!!b}).length===0&&(x=[l]),x.reduce(function(b,v){if(v)if(Te(b)){var R=b,E=v(R,m);return E===void 0?b:E}else{if(ge(b))return Dr(b,function(A){return v(A,m)});var E=v(b,m);if(E===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return E}return b},f)}return y.getInitialState=u,y}function hl(e,r){return e+"/"+r}function Cs(e){var r=e.name;if(!r)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof e.initialState=="function"?e.initialState:Zo(e.initialState),n=e.reducers||{},a=Object.keys(n),s={},c={},l={};a.forEach(function(y){var f=n[y],m=hl(r,y),x,b;"reducer"in f?(x=f.reducer,b=f.prepare):x=f,s[y]=x,c[m]=x,l[y]=b?$e(m,b):$e(m)});function u(){var y=typeof e.extraReducers=="function"?Os(e.extraReducers):[e.extraReducers],f=y[0],m=f===void 0?{}:f,x=y[1],b=x===void 0?[]:x,v=y[2],R=v===void 0?void 0:v,E=Ge(Ge({},m),c);return fl(o,function(A){for(var I in E)A.addCase(I,E[I]);for(var L=0,_=b;L<_.length;L++){var ee=_[L];A.addMatcher(ee.matcher,ee.reducer)}R&&A.addDefaultCase(R)})}var p;return{name:r,reducer:function(y,f){return p||(p=u()),p(y,f)},actions:l,caseReducers:s,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}var yl="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",ml=function(e){e===void 0&&(e=21);for(var r="",o=e;o--;)r+=yl[Math.random()*64|0];return r},gl=["name","message","stack","code"],Vo=function(){function e(r,o){this.payload=r,this.meta=o}return e}(),bs=function(){function e(r,o){this.payload=r,this.meta=o}return e}(),bl=function(e){if(typeof e=="object"&&e!==null){for(var r={},o=0,n=gl;o<n.length;o++){var a=n[o];typeof e[a]=="string"&&(r[a]=e[a])}return r}return{message:String(e)}},$g=function(){function e(r,o,n){var a=$e(r+"/fulfilled",function(y,f,m,x){return{payload:y,meta:jo(Ge({},x||{}),{arg:m,requestId:f,requestStatus:"fulfilled"})}}),s=$e(r+"/pending",function(y,f,m){return{payload:void 0,meta:jo(Ge({},m||{}),{arg:f,requestId:y,requestStatus:"pending"})}}),c=$e(r+"/rejected",function(y,f,m,x,b){return{payload:x,error:(n&&n.serializeError||bl)(y||"Rejected"),meta:jo(Ge({},b||{}),{arg:m,requestId:f,rejectedWithValue:!!x,requestStatus:"rejected",aborted:y?.name==="AbortError",condition:y?.name==="ConditionError"})}}),l=!1,u=typeof AbortController<"u"?AbortController:function(){function y(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return y.prototype.abort=function(){},y}();function p(y){return function(f,m,x){var b=n?.idGenerator?n.idGenerator(y):ml(),v=new u,R,E=!1;function A(L){R=L,v.abort()}var I=function(){return nl(this,null,function(){var L,_,ee,ve,Q,Se,K;return Jc(this,function(h){switch(h.label){case 0:return h.trys.push([0,4,,5]),ve=(L=n?.condition)==null?void 0:L.call(n,y,{getState:m,extra:x}),vl(ve)?[4,ve]:[3,2];case 1:ve=h.sent(),h.label=2;case 2:if(ve===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return E=!0,Q=new Promise(function(g,T){return v.signal.addEventListener("abort",function(){return T({name:"AbortError",message:R||"Aborted"})})}),f(s(b,y,(_=n?.getPendingMeta)==null?void 0:_.call(n,{requestId:b,arg:y},{getState:m,extra:x}))),[4,Promise.race([Q,Promise.resolve(o(y,{dispatch:f,getState:m,extra:x,requestId:b,signal:v.signal,abort:A,rejectWithValue:function(g,T){return new Vo(g,T)},fulfillWithValue:function(g,T){return new bs(g,T)}})).then(function(g){if(g instanceof Vo)throw g;return g instanceof bs?a(g.payload,b,y,g.meta):a(g,b,y)})])];case 3:return ee=h.sent(),[3,5];case 4:return Se=h.sent(),ee=Se instanceof Vo?c(null,b,y,Se.payload,Se.meta):c(Se,b,y),[3,5];case 5:return K=n&&!n.dispatchConditionRejection&&c.match(ee)&&ee.meta.condition,K||f(ee),[2,ee]}})})}();return Object.assign(I,{abort:A,requestId:b,arg:y,unwrap:function(){return I.then(xl)}})}}return Object.assign(p,{pending:s,rejected:c,fulfilled:a,typePrefix:r})}return e.withTypes=function(){return e},e}();function xl(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function vl(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Es="listener",As="completed",ws="cancelled",jg="task-"+ws,Kg="task-"+As,Vg=Es+"-"+ws,Zg=Es+"-"+As;var qo="listenerMiddleware";var qg=$e(qo+"/add"),Yg=$e(qo+"/removeAll"),Xg=$e(qo+"/remove");var xs,Jg=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(xs||(xs=Promise.resolve())).then(e).catch(function(r){return setTimeout(function(){throw r},0)})},Sl=function(e){return function(r){setTimeout(r,e)}},Qg=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Sl(10);ns();var Ol=wr(Symbol("withEventBus"),function(e,r){return class extends e{constructor(){super(...arguments),this.eventBus=r??document.createElement("span")}addEventListener(o,n,a){this.eventBus.addEventListener(o,n,a)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,a){this.eventBus.removeEventListener(o,n,a)}}}),Ur=class extends Ol(Object){};window.ftReduxStores||(window.ftReduxStores={});var Rs=class e extends Ur{static get(r){var o;let n=typeof r=="string"?r:r.name,a=typeof r=="string"?void 0:r,s=window.ftReduxStores[n];if(Lr(s))return s;if(a==null)return;let c=Cs({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=Ss({reducer:(u,p)=>p.type==="CLEAR_FT_REDUX_STORE"?c.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...u,...p.overwrites}:c.reducer(u,p)});return window.ftReduxStores[a.name]=new e(c,l,a.eventBus)}constructor(r,o,n){super(),this.reduxSlice=r,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new Rr;let a=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,c,l)=>{let u=c,p=s[u];return p?(...y)=>{let f=p(...y.map(a));return this.reduxStore.dispatch(f),f}:y=>{this.setState({[u]:a(y)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(r){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(r).join("_"),overwrites:r})}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(r){throw new Error("Not implemented yet.")}subscribe(r){return this.reduxStore.subscribe(r)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Mr=class{static format(r,o,n,a){return window.moment?window.moment(r).locale(o).format(this.getMomentDateFormat(n,a)):this.getIntlDateTime(r,o,n,a)}static getMomentDateFormat(r,o){return r?o?"lll":"ll":o?"L LT":"L"}static getIntlDateTime(r,o,n,a){let s=typeof r=="string"?new Date(r):r,c=new Intl.DateTimeFormat(o,{dateStyle:n?"medium":"short"}).format(s);if(!a)return c;let l=new Intl.DateTimeFormat(o,{timeStyle:"short"}).format(s);return`${c} ${l}`}};var Ns=C(k()),Wr=function(e,r,o,n){var a=arguments.length,s=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(s=(a<3?c(s):a>3?c(r,o,s):c(r,o))||s);return a>3&&s&&Object.defineProperty(r,o,s),s},Cb=(0,Ns.applyMixinOnce)(Symbol("withDateFormat"),function(e){class r extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(w)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var a,s;return((s=(a=this.metadataDescriptors.find(l=>l.key===n))===null||a===void 0?void 0:a.date)!==null&&s!==void 0?s:!1)?l=>Mr.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Wr([(0,Yo.property)({type:Boolean})],r.prototype,"useLongDateFormat",void 0),Wr([(0,Yo.property)({type:Boolean})],r.prototype,"useDateTimeFormat",void 0),Wr([wo({store:w.name,selector:o=>{var n,a;return(a=(n=o.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&a!==void 0?a:[]}})],r.prototype,"metadataDescriptors",void 0),Wr([wo({store:w.name})],r.prototype,"uiLocale",void 0),r});(0,Ts.customElement)("ft-app-context")(B);var _s=C(te());var Xo=class{fromLocalizableLabel(r){return r.type=="PLAIN_TEXT"?{message:r.text}:{key:r.key,custom:r.type=="LOCALIZED_CUSTOM",context:r.context,message:r.key}}fromAttribute(r){if(r!=null)try{return JSON.parse(r)}catch{if(this.isI18nKey(r)){let[n,a]=r.split(".");return{context:n,key:a,message:""}}return{message:r}}}toAttribute(r){if(r!=null)return JSON.stringify(r)}isI18nKey(r){return r.match(/^[\w-]+\.[\w-]+$/)}},Is=new Xo;var Cl=function(e,r,o,n){var a=arguments.length,s=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(s=(a<3?c(s):a>3?c(r,o,s):c(r,o))||s);return a>3&&s&&Object.defineProperty(r,o,s),s},El=Symbol("i18nAttributes"),Al=Symbol("i18nListAttributes"),Ps=Symbol("i18nProperties"),Hr=Symbol("i18nContexts"),Qt=Symbol("i18nUnsubs"),zr=(0,_t.applyMixinOnce)(Symbol("withI18n"),function(e){var r,o;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[r]=new Map,this[o]=new Map}getI18nService(s){return s??this.useCustomMessageContexts?Cr:At}i18n(s){let{context:c,key:l,message:u}=s,{custom:p,args:y,argsProvider:f}=s;if(c&&l){this.hasI18nContext(c)||this.addI18nContext(c,void 0,p);let m=y??(f?f(this):[]);return this.getI18nService(p).resolveMessage(c,l,...m)}return u}customI18n(s,c){if(Is.isI18nKey(s)){let[l,u]=s.split(".");return this.i18n({custom:!0,context:l,key:u,...c})||s}return s}firstUpdated(s){super.firstUpdated(s),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(s){super.update(s),this.updateI18nAttributes((c,l,u)=>s.has(l)||typeof c.argsProvider=="function"),this.updateI18nProperties(c=>typeof c.argsProvider=="function")}onI18nUpdate(s){this.updateI18nAttributes((c,l,u)=>{var p;return((p=u?.context)===null||p===void 0?void 0:p.toLowerCase())===s}),this.updateI18nProperties(c=>c.context.toLowerCase()===s),this.requestUpdate()}updateI18nAttributes(s){var c,l;let u=this,p=(y,f,m)=>m?.context&&m.key&&s(y,f,m)?{...m,message:this.i18n({context:m.context,key:m.key,custom:m.custom,...y})}:m;(c=this[El])===null||c===void 0||c.forEach((y,f)=>u[f]=p(y,f,u[f])),(l=this[Al])===null||l===void 0||l.forEach((y,f)=>{var m;return u[f]=(m=u[f])===null||m===void 0?void 0:m.map(x=>p(y,f,x))})}updateI18nProperties(s){var c;(c=this[Ps])===null||c===void 0||c.forEach((l,u)=>{s(l,u)&&(this[u]=this.i18n(l))})}addI18nMessages(s,c,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(s,c,l)}addI18nContext(s,c,l){let u=(typeof s=="string"?s:s.name).toLowerCase();l=typeof s=="string"?l:s.custom,this[Hr].set(u,{isCustomContext:l}),this[Qt].has(u)||this[Qt].set(u,this.getI18nService(l).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(l).prepareContext(u,c)}hasI18nContext(s){return this[Hr].has(s.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Hr].forEach((s,c)=>this.addI18nContext(c,void 0,s.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Qt].forEach(s=>s()),this[Qt].clear()}}return r=Hr,o=Qt,Cl([(0,_s.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),Ls=class extends zr(_t.FtLitElement){},Fr=class extends zr(_t.FtLitElementRedux){};var er=function(e,r,o,n){var a=arguments.length,s=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(s=(a<3?c(s):a>3?c(r,o,s):c(r,o))||s);return a>3&&s&&Object.defineProperty(r,o,s),s},be=class extends Fr{constructor(){super(),this.editorMode=!1,this.addStore(w)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Gr.nothing:Gr.html`
335
+ `}connectedCallback(){super.connectedCallback(),w.addEventListener(Qe.eventName,this.reloadConfiguration)}disconnectedCallback(){w.addEventListener(Qe.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(r){var o,n,a,s,c,l,u;super.update(r),r.has("baseUrl")&&(w.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),r.has("apiIntegrationIdentifier")&&w.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),r.has("apiIntegrationAppVersion")&&w.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),r.has("uiLocale")&&w.actions.uiLocale(this.uiLocale),r.has("metadataConfiguration")&&w.actions.metadataConfiguration(this.metadataConfiguration),r.has("noCustom")&&w.actions.noCustom(this.noCustom),r.has("editorMode")&&w.actions.editorMode(this.editorMode),r.has("noCustomComponent")&&w.actions.noCustomComponent(this.noCustomComponent),r.has("session")&&w.actions.session(this.session),r.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(p=>At.addContext(p)),r.has("openExternalDocumentInNewTab")&&w.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),r.has("navigatorOnline")&&w.actions.navigatorOnline(this.navigatorOnline),r.has("forcedOffline")&&w.actions.forcedOffline(this.forcedOffline),r.has("localesConfiguration")&&(w.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),w.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),w.actions.searchInAllLanguagesAllowed((c=(s=this.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed)!==null&&c!==void 0?c:!1)),r.has("authenticationRequired")&&w.actions.authenticationRequired(this.authenticationRequired),r.has("availableContentLocales")&&w.actions.availableContentLocales((u=(l=this.availableContentLocales)===null||l===void 0?void 0:l.contentLocales)!==null&&u!==void 0?u:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}async updateSession(){this.session=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},r.idleTimeoutInMillis),r})}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",()=>Di(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};B.elementDefinitions={};B.styles=Ni;G([(0,Y.property)()],B.prototype,"baseUrl",void 0);G([(0,Y.property)()],B.prototype,"apiIntegrationIdentifier",void 0);G([(0,Y.property)()],B.prototype,"apiIntegrationAppVersion",void 0);G([(0,Y.property)()],B.prototype,"uiLocale",void 0);G([(0,me.jsonProperty)(null)],B.prototype,"availableUiLocales",void 0);G([(0,me.jsonProperty)(null)],B.prototype,"metadataConfiguration",void 0);G([(0,Y.property)({type:Boolean})],B.prototype,"editorMode",void 0);G([(0,Y.property)({type:Boolean})],B.prototype,"noCustom",void 0);G([(0,Y.property)({type:Boolean})],B.prototype,"openExternalDocumentInNewTab",void 0);G([(0,Y.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],B.prototype,"noCustomComponent",void 0);G([(0,Y.property)({type:Boolean})],B.prototype,"withManualResources",void 0);G([(0,Y.property)({type:Boolean})],B.prototype,"navigatorOnline",void 0);G([(0,Y.property)({type:Boolean})],B.prototype,"forcedOffline",void 0);G([(0,Y.property)({type:Object})],B.prototype,"apiProvider",void 0);G([(0,Y.property)({type:Boolean})],B.prototype,"authenticationRequired",void 0);G([(0,me.jsonProperty)([])],B.prototype,"messageContexts",void 0);G([(0,me.jsonProperty)(void 0)],B.prototype,"session",void 0);G([(0,Y.state)()],B.prototype,"localesConfiguration",void 0);G([(0,Y.state)()],B.prototype,"availableContentLocales",void 0);var Yo=C(te());function Uc(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;let o,n,a;if(Array.isArray(e)){if(o=e.length,o!=r.length)return!1;for(n=o;n--!==0;)if(!Ar(e[n],r[n]))return!1;return!0}if(e instanceof Map&&r instanceof Map){if(e.size!==r.size)return!1;for(n of e.entries())if(!r.has(n[0]))return!1;for(n of e.entries())if(!Ar(n[1],r.get(n[0])))return!1;return!0}if(e instanceof Set&&r instanceof Set){if(e.size!==r.size)return!1;for(n of e.entries())if(!r.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();let s=c=>Object.keys(c).filter(l=>c[l]!=null);if(a=s(e),o=a.length,o!==s(r).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[n]))return!1;for(n=o;n--!==0;){let c=a[n];if(!Ar(e[c],r[c]))return!1}return!0}return e!==e&&r!==r||e==null&&r==null}function Ar(e,r){try{return Uc(e,r)}catch{return!1}}function Vt(e,r){return!Ar(e,r)}function wr(e,r){let o=n=>n[e]===!0;return n=>{if(o(n))return n;let a=r(n);return a[e]=!0,a}}var Ui=C(te(),1);var wo=e=>{let r=e??{};return(o,n)=>{var a;let s={hasChanged:Vt,attribute:!1,...r};(0,Ui.property)(s)(o,n);let c=o.constructor;c.reduxProperties=new Map(c.reduxProperties),c.reduxProperties.set(n,{selector:(a=r.selector)!==null&&a!==void 0?a:l=>l[n],store:r.store})}};var Rr=class{constructor(){this.queue=[]}add(r,o=!1){o&&this.clear(r.type),this.queue.push(r)}consume(r){let o=this.queue.find(n=>n.type===r);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}clear(r){typeof r=="string"?this.queue=this.queue.filter(o=>o.type!==r):this.queue=this.queue.filter(o=>!r.test(o.type))}};var wt=C(te(),1);var Mi=C(te(),1);function Wi(e,r){let o=()=>JSON.parse(JSON.stringify(e));return(0,Mi.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:Vt,...r??{}})}var Nr=class{constructor(r=0){this.timeout=r,this.callbacks=[]}run(r,o){return this.callbacks=[r],this.debounce(o)}queue(r,o){return this.callbacks.push(r),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(r){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),r??this.timeout),this.promise}async runCallbacks(){var r,o;let n=[...this.callbacks];this.callbacks=[];let a=(r=this.rejectPromise)!==null&&r!==void 0?r:()=>null,s=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let c of n)try{await c()}catch(l){a(l);return}s(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Fi=C(Z(),1);var Tr=globalThis,Mc=Tr.ShadowRoot&&(Tr.ShadyCSS===void 0||Tr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,rg=Symbol();var Hi=(e,r)=>{if(Mc)e.adoptedStyleSheets=r.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of r){let n=document.createElement("style"),a=Tr.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,e.appendChild(n)}};var Ir=class extends Fi.LitElement{createRenderRoot(){let r=this.constructor;r.elementDefinitions&&!r.registry&&(r.registry=new CustomElementRegistry,Object.entries(r.elementDefinitions).forEach(([a,s])=>r.registry.define(a,s)));let o={...r.shadowRootOptions,customElements:r.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return Hi(n,r.elementStyles),n}};function zi(e,r,...o){var n;let a=e.querySelector(r);for(let s of o)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(s);return a}var Zt=function(e,r,o,n){var a=arguments.length,s=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(s=(a<3?c(s):a>3?c(r,o,s):c(r,o))||s);return a>3&&s&&Object.defineProperty(r,o,s),s},Ki,Gi=Symbol("constructorPrototype"),$i=Symbol("constructorName"),Vi=Symbol("exportpartsDebouncer"),ji=Symbol("dynamicDependenciesLoaded"),Ne=class extends Ir{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Ki]=new Nr(5),this[$i]=this.constructor.name,this[Gi]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[$i]&&Object.setPrototypeOf(this,this[Gi])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let r=this.constructor;r[ji]||(r[ji]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(r){super.updated(r),this.updateComplete.then(()=>{this.contentAvailableCallback(r),this.focusElementToFocus(r),this.applyCustomStylesheet(r),this.scheduleExportpartsUpdate()})}contentAvailableCallback(r){}focusElementToFocus(r){if(r.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let s=[...a??[],n];o=zi(this.shadowRoot,...s)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(r){var o,n,a;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(s=>s.remove()),this.useAdoptedStyleSheets){if(r.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(s){console.error(s,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let s=document.createElement("style");s.classList.add("ft-lit-element--custom-stylesheet"),s.innerHTML=this.customStylesheet,this.shadowRoot.append(s)}}scheduleExportpartsUpdate(){var r,o,n;(!((r=this.exportpartsPrefix)===null||r===void 0)&&r.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[Vi].run(()=>{var a,s;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((s=this.exportpartsPrefixes)===null||s===void 0?void 0:s.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(r){var o,n,a,s,c,l;let u=m=>m!=null&&m.trim().length>0,p=r.filter(u).map(m=>m.trim());if(p.length===0){this.removeAttribute("exportparts");return}let y=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 x=(s=(a=m.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&s!==void 0?s:[],b=(l=(c=m.getAttribute("exportparts"))===null||c===void 0?void 0:c.split(",").map(v=>v.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...x,...b).filter(u).map(v=>v.trim()).forEach(v=>y.add(v))}if(y.size===0){this.removeAttribute("exportparts");return}let f=[...y.values()].flatMap(m=>p.map(x=>`${m}:${x}--${m}`));this.setAttribute("exportparts",[...this.part,...f].join(", "))}};Ki=Vi;Zt([(0,wt.property)()],Ne.prototype,"exportpartsPrefix",void 0);Zt([Wi([])],Ne.prototype,"exportpartsPrefixes",void 0);Zt([(0,wt.property)()],Ne.prototype,"customStylesheet",void 0);Zt([(0,wt.property)()],Ne.prototype,"elementToFocus",void 0);Zt([(0,wt.state)()],Ne.prototype,"useAdoptedStyleSheets",void 0);function Lr(e){var r;return(r=e?.isFtReduxStore)!==null&&r!==void 0?r:!1}var qt=Symbol("internalReduxEventsUnsubscribers"),He=Symbol("internalStoresUnsubscribers"),ot=Symbol("internalStores"),Wc=wr(Symbol("withRedux"),function(e){var r,o,n;class a extends e{constructor(){super(...arguments),this[r]=new Map,this[o]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(c){super.willUpdate(c),[...this.reduxConstructor.reduxReactiveProperties].some(l=>c.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[ot].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ot].values()][0]}getStore(c){return c==null?this.getUnnamedStore():this[ot].get(c)}addStore(c,l){var u;l=(u=l??c.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(l),this[ot].set(l,c),this.subscribeToStore(l,c),this.updateFromStores()}removeStore(c){let l=typeof c=="string"?c:c.name;this.unsubscribeFromStore(l),this[ot].delete(l)}setupStores(){this.unsubscribeFromStores(),this[ot].forEach((c,l)=>this.subscribeToStore(l,c)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((c,l)=>{let u=this.constructor.getPropertyOptions(l);if(!u?.attribute||!this.hasAttribute(typeof u?.attribute=="string"?u.attribute:l)){let p=this.getStore(c.store);p&&(c.store?this[He].has(c.store):this[He].size>0)&&(this[l]=c.selector(p.getState(),this))}})}subscribeToStore(c,l){var u;this[He].set(c,l.subscribe(()=>this.updateFromStores())),this[qt].set(c,[]),Lr(l)&&l.eventBus&&((u=this.reduxConstructor.reduxEventListeners)===null||u===void 0||u.forEach((p,y)=>{if(typeof this[y]=="function"&&(!p.store||l.name===p.store)){let f=m=>this[y](m);l.addEventListener(p.eventName,f),this[qt].get(c).push(()=>l.removeEventListener(p.eventName,f))}})),this.onStoreAvailable(c)}unsubscribeFromStores(){this[He].forEach((c,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(c){var l;this[He].has(c)&&this[He].get(c)(),this[He].delete(c),(l=this[qt].get(c))===null||l===void 0||l.forEach(u=>u()),this[qt].delete(c)}onStoreAvailable(c){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return r=He,o=ot,n=qt,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),Zi=class extends Wc(Ne){};function pe(e){for(var r=arguments.length,o=Array(r>1?r-1:0),n=1;n<r;n++)o[n-1]=arguments[n];if(0)var a,s;throw Error("[Immer] minified error nr: "+e+(o.length?" "+o.map(function(c){return"'"+c+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Te(e){return!!e&&!!e[U]}function ge(e){var r;return!!e&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===Vc}(e)||Array.isArray(e)||!!e[ts]||!!(!((r=e.constructor)===null||r===void 0)&&r[ts])||Do(e)||Bo(e))}function nt(e,r,o){o===void 0&&(o=!1),Tt(e)===0?(o?Object.keys:Nt)(e).forEach(function(n){o&&typeof n=="symbol"||r(n,e[n],e)}):e.forEach(function(n,a){return r(a,n,e)})}function Tt(e){var r=e[U];return r?r.i>3?r.i-4:r.i:Array.isArray(e)?1:Do(e)?2:Bo(e)?3:0}function Rt(e,r){return Tt(e)===2?e.has(r):Object.prototype.hasOwnProperty.call(e,r)}function Hc(e,r){return Tt(e)===2?e.get(r):e[r]}function rs(e,r,o){var n=Tt(e);n===2?e.set(r,o):n===3?e.add(o):e[r]=o}function os(e,r){return e===r?e!==0||1/e==1/r:e!=e&&r!=r}function Do(e){return jc&&e instanceof Map}function Bo(e){return Kc&&e instanceof Set}function Fe(e){return e.o||e.t}function Uo(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var r=is(e);delete r[U];for(var o=Nt(r),n=0;n<o.length;n++){var a=o[n],s=r[a];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(r[a]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),r)}function Mo(e,r){return r===void 0&&(r=!1),Wo(e)||Te(e)||!ge(e)||(Tt(e)>1&&(e.set=e.add=e.clear=e.delete=Fc),Object.freeze(e),r&&nt(e,function(o,n){return Mo(n,!0)},!0)),e}function Fc(){pe(2)}function Wo(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Oe(e){var r=ko[e];return r||pe(18,e),r}function zc(e,r){ko[e]||(ko[e]=r)}function Lo(){return Xt}function Ro(e,r){r&&(Oe("Patches"),e.u=[],e.s=[],e.v=r)}function _r(e){_o(e),e.p.forEach(Gc),e.p=null}function _o(e){e===Xt&&(Xt=e.l)}function qi(e){return Xt={p:[],l:Xt,h:e,m:!0,_:0}}function Gc(e){var r=e[U];r.i===0||r.i===1?r.j():r.g=!0}function No(e,r){r._=r.p.length;var o=r.p[0],n=e!==void 0&&e!==o;return r.h.O||Oe("ES5").S(r,e,n),n?(o[U].P&&(_r(r),pe(4)),ge(e)&&(e=Pr(r,e),r.l||kr(r,e)),r.u&&Oe("Patches").M(o[U].t,e,r.u,r.s)):e=Pr(r,o,[]),_r(r),r.u&&r.v(r.u,r.s),e!==as?e:void 0}function Pr(e,r,o){if(Wo(r))return r;var n=r[U];if(!n)return nt(r,function(l,u){return Yi(e,n,r,l,u,o)},!0),r;if(n.A!==e)return r;if(!n.P)return kr(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Uo(n.k):n.o,s=a,c=!1;n.i===3&&(s=new Set(a),a.clear(),c=!0),nt(s,function(l,u){return Yi(e,n,a,l,u,o,c)}),kr(e,a,!1),o&&e.u&&Oe("Patches").N(n,o,e.u,e.s)}return n.o}function Yi(e,r,o,n,a,s,c){if(Te(a)){var l=Pr(e,a,s&&r&&r.i!==3&&!Rt(r.R,n)?s.concat(n):void 0);if(rs(o,n,l),!Te(l))return;e.m=!1}else c&&o.add(a);if(ge(a)&&!Wo(a)){if(!e.h.D&&e._<1)return;Pr(e,a),r&&r.A.l||kr(e,a)}}function kr(e,r,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&Mo(r,o)}function To(e,r){var o=e[U];return(o?Fe(o):e)[r]}function Xi(e,r){if(r in e)for(var o=Object.getPrototypeOf(e);o;){var n=Object.getOwnPropertyDescriptor(o,r);if(n)return n;o=Object.getPrototypeOf(o)}}function ze(e){e.P||(e.P=!0,e.l&&ze(e.l))}function Io(e){e.o||(e.o=Uo(e.t))}function Po(e,r,o){var n=Do(r)?Oe("MapSet").F(r,o):Bo(r)?Oe("MapSet").T(r,o):e.O?function(a,s){var c=Array.isArray(a),l={i:c?1:0,A:s?s.A:Lo(),P:!1,I:!1,R:{},l:s,t:a,k:null,o:null,j:null,C:!1},u=l,p=Jt;c&&(u=[l],p=Yt);var y=Proxy.revocable(u,p),f=y.revoke,m=y.proxy;return l.k=m,l.j=f,m}(r,o):Oe("ES5").J(r,o);return(o?o.A:Lo()).p.push(n),n}function $c(e){return Te(e)||pe(22,e),function r(o){if(!ge(o))return o;var n,a=o[U],s=Tt(o);if(a){if(!a.P&&(a.i<4||!Oe("ES5").K(a)))return a.t;a.I=!0,n=Ji(o,s),a.I=!1}else n=Ji(o,s);return nt(n,function(c,l){a&&Hc(a.t,c)===l||rs(n,c,r(l))}),s===3?new Set(n):n}(e)}function Ji(e,r){switch(r){case 2:return new Map(e);case 3:return Array.from(e)}return Uo(e)}function ns(){function e(c,l){var u=s[c];return u?u.enumerable=l:s[c]=u={configurable:!0,enumerable:l,get:function(){var p=this[U];return Jt.get(p,c)},set:function(p){var y=this[U];Jt.set(y,c,p)}},u}function r(c){for(var l=c.length-1;l>=0;l--){var u=c[l][U];if(!u.P)switch(u.i){case 5:n(u)&&ze(u);break;case 4:o(u)&&ze(u)}}}function o(c){for(var l=c.t,u=c.k,p=Nt(u),y=p.length-1;y>=0;y--){var f=p[y];if(f!==U){var m=l[f];if(m===void 0&&!Rt(l,f))return!0;var x=u[f],b=x&&x[U];if(b?b.t!==m:!os(x,m))return!0}}var v=!!l[U];return p.length!==Nt(l).length+(v?0:1)}function n(c){var l=c.k;if(l.length!==c.t.length)return!0;var u=Object.getOwnPropertyDescriptor(l,l.length-1);if(u&&!u.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function a(c){c.g&&pe(3,JSON.stringify(Fe(c)))}var s={};zc("ES5",{J:function(c,l){var u=Array.isArray(c),p=function(f,m){if(f){for(var x=Array(m.length),b=0;b<m.length;b++)Object.defineProperty(x,""+b,e(b,!0));return x}var v=is(m);delete v[U];for(var R=Nt(v),E=0;E<R.length;E++){var A=R[E];v[A]=e(A,f||!!v[A].enumerable)}return Object.create(Object.getPrototypeOf(m),v)}(u,c),y={i:u?5:4,A:l?l.A:Lo(),P:!1,I:!1,R:{},l,t:c,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,U,{value:y,writable:!0}),p},S:function(c,l,u){u?Te(l)&&l[U].A===c&&r(c.p):(c.u&&function p(y){if(y&&typeof y=="object"){var f=y[U];if(f){var m=f.t,x=f.k,b=f.R,v=f.i;if(v===4)nt(x,function(L){L!==U&&(m[L]!==void 0||Rt(m,L)?b[L]||p(x[L]):(b[L]=!0,ze(f)))}),nt(m,function(L){x[L]!==void 0||Rt(x,L)||(b[L]=!1,ze(f))});else if(v===5){if(n(f)&&(ze(f),b.length=!0),x.length<m.length)for(var R=x.length;R<m.length;R++)b[R]=!1;else for(var E=m.length;E<x.length;E++)b[E]=!0;for(var A=Math.min(x.length,m.length),I=0;I<A;I++)x.hasOwnProperty(I)||(b[I]=!0),b[I]===void 0&&p(x[I])}}}}(c.p[0]),r(c.p))},K:function(c){return c.i===4?o(c):n(c)}})}var Qi,Xt,Ho=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",jc=typeof Map<"u",Kc=typeof Set<"u",es=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",as=Ho?Symbol.for("immer-nothing"):((Qi={})["immer-nothing"]=!0,Qi),ts=Ho?Symbol.for("immer-draftable"):"__$immer_draftable",U=Ho?Symbol.for("immer-state"):"__$immer_state";var Vc=""+Object.prototype.constructor,Nt=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,is=Object.getOwnPropertyDescriptors||function(e){var r={};return Nt(e).forEach(function(o){r[o]=Object.getOwnPropertyDescriptor(e,o)}),r},ko={},Jt={get:function(e,r){if(r===U)return e;var o=Fe(e);if(!Rt(o,r))return function(a,s,c){var l,u=Xi(s,c);return u?"value"in u?u.value:(l=u.get)===null||l===void 0?void 0:l.call(a.k):void 0}(e,o,r);var n=o[r];return e.I||!ge(n)?n:n===To(e.t,r)?(Io(e),e.o[r]=Po(e.A.h,n,e)):n},has:function(e,r){return r in Fe(e)},ownKeys:function(e){return Reflect.ownKeys(Fe(e))},set:function(e,r,o){var n=Xi(Fe(e),r);if(n?.set)return n.set.call(e.k,o),!0;if(!e.P){var a=To(Fe(e),r),s=a?.[U];if(s&&s.t===o)return e.o[r]=o,e.R[r]=!1,!0;if(os(o,a)&&(o!==void 0||Rt(e.t,r)))return!0;Io(e),ze(e)}return e.o[r]===o&&(o!==void 0||r in e.o)||Number.isNaN(o)&&Number.isNaN(e.o[r])||(e.o[r]=o,e.R[r]=!0),!0},deleteProperty:function(e,r){return To(e.t,r)!==void 0||r in e.t?(e.R[r]=!1,Io(e),ze(e)):delete e.R[r],e.o&&delete e.o[r],!0},getOwnPropertyDescriptor:function(e,r){var o=Fe(e),n=Reflect.getOwnPropertyDescriptor(o,r);return n&&{writable:!0,configurable:e.i!==1||r!=="length",enumerable:n.enumerable,value:o[r]}},defineProperty:function(){pe(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){pe(12)}},Yt={};nt(Jt,function(e,r){Yt[e]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}}),Yt.deleteProperty=function(e,r){return Yt.set.call(this,e,r,void 0)},Yt.set=function(e,r,o){return Jt.set.call(this,e[0],r,o,e[0])};var Zc=function(){function e(o){var n=this;this.O=es,this.D=!0,this.produce=function(a,s,c){if(typeof a=="function"&&typeof s!="function"){var l=s;s=a;var u=n;return function(v){var R=this;v===void 0&&(v=l);for(var E=arguments.length,A=Array(E>1?E-1:0),I=1;I<E;I++)A[I-1]=arguments[I];return u.produce(v,function(L){var _;return(_=s).call.apply(_,[R,L].concat(A))})}}var p;if(typeof s!="function"&&pe(6),c!==void 0&&typeof c!="function"&&pe(7),ge(a)){var y=qi(n),f=Po(n,a,void 0),m=!0;try{p=s(f),m=!1}finally{m?_r(y):_o(y)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(v){return Ro(y,c),No(v,y)},function(v){throw _r(y),v}):(Ro(y,c),No(p,y))}if(!a||typeof a!="object"){if((p=s(a))===void 0&&(p=a),p===as&&(p=void 0),n.D&&Mo(p,!0),c){var x=[],b=[];Oe("Patches").M(a,p,x,b),c(x,b)}return p}pe(21,a)},this.produceWithPatches=function(a,s){if(typeof a=="function")return function(p){for(var y=arguments.length,f=Array(y>1?y-1:0),m=1;m<y;m++)f[m-1]=arguments[m];return n.produceWithPatches(p,function(x){return a.apply(void 0,[x].concat(f))})};var c,l,u=n.produce(a,s,function(p,y){c=p,l=y});return typeof Promise<"u"&&u instanceof Promise?u.then(function(p){return[p,c,l]}):[u,c,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var r=e.prototype;return r.createDraft=function(o){ge(o)||pe(8),Te(o)&&(o=$c(o));var n=qi(this),a=Po(this,o,void 0);return a[U].C=!0,_o(n),a},r.finishDraft=function(o,n){var a=o&&o[U],s=a.A;return Ro(s,n),No(void 0,s)},r.setAutoFreeze=function(o){this.D=o},r.setUseProxies=function(o){o&&!es&&pe(20),this.O=o},r.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var s=n[a];if(s.path.length===0&&s.op==="replace"){o=s.value;break}}a>-1&&(n=n.slice(a+1));var c=Oe("Patches").$;return Te(o)?c(o,n):this.produce(o,function(l){return c(l,n)})},e}(),ce=new Zc,qc=ce.produce,gg=ce.produceWithPatches.bind(ce),bg=ce.setAutoFreeze.bind(ce),xg=ce.setUseProxies.bind(ce),vg=ce.applyPatches.bind(ce),Sg=ce.createDraft.bind(ce),Og=ce.finishDraft.bind(ce),Dr=qc;function at(e){"@babel/helpers - typeof";return at=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},at(e)}function ss(e,r){if(at(e)!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var n=o.call(e,r||"default");if(at(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function cs(e){var r=ss(e,"string");return at(r)=="symbol"?r:r+""}function ls(e,r,o){return(r=cs(r))in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o,e}function ds(e,r){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,n)}return o}function Fo(e){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{};r%2?ds(Object(o),!0).forEach(function(n){ls(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ds(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function J(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var us=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),zo=function(){return Math.random().toString(36).substring(7).split("").join(".")},Br={INIT:"@@redux/INIT"+zo(),REPLACE:"@@redux/REPLACE"+zo(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+zo()}};function Yc(e){if(typeof e!="object"||e===null)return!1;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r}function Go(e,r,o){var n;if(typeof r=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(J(0));if(typeof r=="function"&&typeof o>"u"&&(o=r,r=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(J(1));return o(Go)(e,r)}if(typeof e!="function")throw new Error(J(2));var a=e,s=r,c=[],l=c,u=!1;function p(){l===c&&(l=c.slice())}function y(){if(u)throw new Error(J(3));return s}function f(v){if(typeof v!="function")throw new Error(J(4));if(u)throw new Error(J(5));var R=!0;return p(),l.push(v),function(){if(R){if(u)throw new Error(J(6));R=!1,p();var A=l.indexOf(v);l.splice(A,1),c=null}}}function m(v){if(!Yc(v))throw new Error(J(7));if(typeof v.type>"u")throw new Error(J(8));if(u)throw new Error(J(9));try{u=!0,s=a(s,v)}finally{u=!1}for(var R=c=l,E=0;E<R.length;E++){var A=R[E];A()}return v}function x(v){if(typeof v!="function")throw new Error(J(10));a=v,m({type:Br.REPLACE})}function b(){var v,R=f;return v={subscribe:function(A){if(typeof A!="object"||A===null)throw new Error(J(11));function I(){A.next&&A.next(y())}I();var L=R(I);return{unsubscribe:L}}},v[us]=function(){return this},v}return m({type:Br.INIT}),n={dispatch:m,subscribe:f,getState:y,replaceReducer:x},n[us]=b,n}function Xc(e){Object.keys(e).forEach(function(r){var o=e[r],n=o(void 0,{type:Br.INIT});if(typeof n>"u")throw new Error(J(12));if(typeof o(void 0,{type:Br.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(J(13))})}function ps(e){for(var r=Object.keys(e),o={},n=0;n<r.length;n++){var a=r[n];typeof e[a]=="function"&&(o[a]=e[a])}var s=Object.keys(o),c,l;try{Xc(o)}catch(u){l=u}return function(p,y){if(p===void 0&&(p={}),l)throw l;if(0)var f;for(var m=!1,x={},b=0;b<s.length;b++){var v=s[b],R=o[v],E=p[v],A=R(E,y);if(typeof A>"u"){var I=y&&y.type;throw new Error(J(14))}x[v]=A,m=m||A!==E}return m=m||s.length!==Object.keys(p).length,m?x:p}}function It(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return r.length===0?function(n){return n}:r.length===1?r[0]:r.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function fs(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),s=function(){throw new Error(J(15))},c={getState:a.getState,dispatch:function(){return s.apply(void 0,arguments)}},l=r.map(function(u){return u(c)});return s=It.apply(void 0,l)(a.dispatch),Fo(Fo({},a),{},{dispatch:s})}}}function hs(e){var r=function(n){var a=n.dispatch,s=n.getState;return function(c){return function(l){return typeof l=="function"?l(a,s,e):c(l)}}};return r}var ys=hs();ys.withExtraArgument=hs;var $o=ys;var vs=function(){var e=function(r,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(n[s]=a[s])},e(r,o)};return function(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(r,o);function n(){this.constructor=r}r.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),Jc=function(e,r){var o={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,a,s,c;return c={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function l(p){return function(y){return u([p,y])}}function u(p){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(s=p[0]&2?a.return:p[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,p[1])).done)return s;switch(a=0,s&&(p=[p[0]&2,s.value]),p[0]){case 0:case 1:s=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,a=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(s=o.trys,!(s=s.length>0&&s[s.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!s||p[1]>s[0]&&p[1]<s[3])){o.label=p[1];break}if(p[0]===6&&o.label<s[1]){o.label=s[1],s=p;break}if(s&&o.label<s[2]){o.label=s[2],o.ops.push(p);break}s[2]&&o.ops.pop(),o.trys.pop();continue}p=r.call(e,o)}catch(y){p=[6,y],a=0}finally{n=s=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Lt=function(e,r){for(var o=0,n=r.length,a=e.length;o<n;o++,a++)e[a]=r[o];return e},Qc=Object.defineProperty,el=Object.defineProperties,tl=Object.getOwnPropertyDescriptors,ms=Object.getOwnPropertySymbols,rl=Object.prototype.hasOwnProperty,ol=Object.prototype.propertyIsEnumerable,gs=function(e,r,o){return r in e?Qc(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o},Ge=function(e,r){for(var o in r||(r={}))rl.call(r,o)&&gs(e,o,r[o]);if(ms)for(var n=0,a=ms(r);n<a.length;n++){var o=a[n];ol.call(r,o)&&gs(e,o,r[o])}return e},jo=function(e,r){return el(e,tl(r))},nl=function(e,r,o){return new Promise(function(n,a){var s=function(u){try{l(o.next(u))}catch(p){a(p)}},c=function(u){try{l(o.throw(u))}catch(p){a(p)}},l=function(u){return u.done?n(u.value):Promise.resolve(u.value).then(s,c)};l((o=o.apply(e,r)).next())})};var al=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?It:It.apply(null,arguments)},Hg=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function il(e){if(typeof e!="object"||e===null)return!1;var r=Object.getPrototypeOf(e);if(r===null)return!0;for(var o=r;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return r===o}var sl=function(e){vs(r,e);function r(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,r.prototype),a}return Object.defineProperty(r,Symbol.species,{get:function(){return r},enumerable:!1,configurable:!0}),r.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},r.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(r.bind.apply(r,Lt([void 0],o[0].concat(this)))):new(r.bind.apply(r,Lt([void 0],o.concat(this))))},r}(Array),cl=function(e){vs(r,e);function r(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,r.prototype),a}return Object.defineProperty(r,Symbol.species,{get:function(){return r},enumerable:!1,configurable:!0}),r.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},r.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(r.bind.apply(r,Lt([void 0],o[0].concat(this)))):new(r.bind.apply(r,Lt([void 0],o.concat(this))))},r}(Array);function Zo(e){return ge(e)?Dr(e,function(){}):e}function ll(e){return typeof e=="boolean"}function dl(){return function(r){return ul(r)}}function ul(e){e===void 0&&(e={});var r=e.thunk,o=r===void 0?!0:r,n=e.immutableCheck,a=n===void 0?!0:n,s=e.serializableCheck,c=s===void 0?!0:s,l=new sl;if(o&&(ll(o)?l.push($o):l.push($o.withExtraArgument(o.extraArgument))),0){if(a)var u;if(c)var p}return l}var Ko=!0;function Ss(e){var r=dl(),o=e||{},n=o.reducer,a=n===void 0?void 0:n,s=o.middleware,c=s===void 0?r():s,l=o.devTools,u=l===void 0?!0:l,p=o.preloadedState,y=p===void 0?void 0:p,f=o.enhancers,m=f===void 0?void 0:f,x;if(typeof a=="function")x=a;else if(il(a))x=ps(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var b=c;if(typeof b=="function"&&(b=b(r),!Ko&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Ko&&b.some(function(L){return typeof L!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=fs.apply(void 0,b),R=It;u&&(R=al(Ge({trace:!Ko},typeof u=="object"&&u)));var E=new cl(v),A=E;Array.isArray(m)?A=Lt([v],m):typeof m=="function"&&(A=m(E));var I=R.apply(void 0,A);return Go(x,y,I)}function $e(e,r){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(r){var s=r.apply(void 0,n);if(!s)throw new Error("prepareAction did not return an object");return Ge(Ge({type:e,payload:s.payload},"meta"in s&&{meta:s.meta}),"error"in s&&{error:s.error})}return{type:e,payload:n[0]}}return o.toString=function(){return""+e},o.type=e,o.match=function(n){return n.type===e},o}function Os(e){var r={},o=[],n,a={addCase:function(s,c){var l=typeof s=="string"?s:s.type;if(l in r)throw new Error("addCase cannot be called with two reducers for the same action type");return r[l]=c,a},addMatcher:function(s,c){return o.push({matcher:s,reducer:c}),a},addDefaultCase:function(s){return n=s,a}};return e(a),[r,o,n]}function pl(e){return typeof e=="function"}function fl(e,r,o,n){o===void 0&&(o=[]);var a=typeof r=="function"?Os(r):[r,o,n],s=a[0],c=a[1],l=a[2],u;if(pl(e))u=function(){return Zo(e())};else{var p=Zo(e);u=function(){return p}}function y(f,m){f===void 0&&(f=u());var x=Lt([s[m.type]],c.filter(function(b){var v=b.matcher;return v(m)}).map(function(b){var v=b.reducer;return v}));return x.filter(function(b){return!!b}).length===0&&(x=[l]),x.reduce(function(b,v){if(v)if(Te(b)){var R=b,E=v(R,m);return E===void 0?b:E}else{if(ge(b))return Dr(b,function(A){return v(A,m)});var E=v(b,m);if(E===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return E}return b},f)}return y.getInitialState=u,y}function hl(e,r){return e+"/"+r}function Cs(e){var r=e.name;if(!r)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof e.initialState=="function"?e.initialState:Zo(e.initialState),n=e.reducers||{},a=Object.keys(n),s={},c={},l={};a.forEach(function(y){var f=n[y],m=hl(r,y),x,b;"reducer"in f?(x=f.reducer,b=f.prepare):x=f,s[y]=x,c[m]=x,l[y]=b?$e(m,b):$e(m)});function u(){var y=typeof e.extraReducers=="function"?Os(e.extraReducers):[e.extraReducers],f=y[0],m=f===void 0?{}:f,x=y[1],b=x===void 0?[]:x,v=y[2],R=v===void 0?void 0:v,E=Ge(Ge({},m),c);return fl(o,function(A){for(var I in E)A.addCase(I,E[I]);for(var L=0,_=b;L<_.length;L++){var ee=_[L];A.addMatcher(ee.matcher,ee.reducer)}R&&A.addDefaultCase(R)})}var p;return{name:r,reducer:function(y,f){return p||(p=u()),p(y,f)},actions:l,caseReducers:s,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}var yl="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",ml=function(e){e===void 0&&(e=21);for(var r="",o=e;o--;)r+=yl[Math.random()*64|0];return r},gl=["name","message","stack","code"],Vo=function(){function e(r,o){this.payload=r,this.meta=o}return e}(),bs=function(){function e(r,o){this.payload=r,this.meta=o}return e}(),bl=function(e){if(typeof e=="object"&&e!==null){for(var r={},o=0,n=gl;o<n.length;o++){var a=n[o];typeof e[a]=="string"&&(r[a]=e[a])}return r}return{message:String(e)}},$g=function(){function e(r,o,n){var a=$e(r+"/fulfilled",function(y,f,m,x){return{payload:y,meta:jo(Ge({},x||{}),{arg:m,requestId:f,requestStatus:"fulfilled"})}}),s=$e(r+"/pending",function(y,f,m){return{payload:void 0,meta:jo(Ge({},m||{}),{arg:f,requestId:y,requestStatus:"pending"})}}),c=$e(r+"/rejected",function(y,f,m,x,b){return{payload:x,error:(n&&n.serializeError||bl)(y||"Rejected"),meta:jo(Ge({},b||{}),{arg:m,requestId:f,rejectedWithValue:!!x,requestStatus:"rejected",aborted:y?.name==="AbortError",condition:y?.name==="ConditionError"})}}),l=!1,u=typeof AbortController<"u"?AbortController:function(){function y(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return y.prototype.abort=function(){},y}();function p(y){return function(f,m,x){var b=n?.idGenerator?n.idGenerator(y):ml(),v=new u,R,E=!1;function A(L){R=L,v.abort()}var I=function(){return nl(this,null,function(){var L,_,ee,ve,Q,Se,K;return Jc(this,function(h){switch(h.label){case 0:return h.trys.push([0,4,,5]),ve=(L=n?.condition)==null?void 0:L.call(n,y,{getState:m,extra:x}),vl(ve)?[4,ve]:[3,2];case 1:ve=h.sent(),h.label=2;case 2:if(ve===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return E=!0,Q=new Promise(function(g,T){return v.signal.addEventListener("abort",function(){return T({name:"AbortError",message:R||"Aborted"})})}),f(s(b,y,(_=n?.getPendingMeta)==null?void 0:_.call(n,{requestId:b,arg:y},{getState:m,extra:x}))),[4,Promise.race([Q,Promise.resolve(o(y,{dispatch:f,getState:m,extra:x,requestId:b,signal:v.signal,abort:A,rejectWithValue:function(g,T){return new Vo(g,T)},fulfillWithValue:function(g,T){return new bs(g,T)}})).then(function(g){if(g instanceof Vo)throw g;return g instanceof bs?a(g.payload,b,y,g.meta):a(g,b,y)})])];case 3:return ee=h.sent(),[3,5];case 4:return Se=h.sent(),ee=Se instanceof Vo?c(null,b,y,Se.payload,Se.meta):c(Se,b,y),[3,5];case 5:return K=n&&!n.dispatchConditionRejection&&c.match(ee)&&ee.meta.condition,K||f(ee),[2,ee]}})})}();return Object.assign(I,{abort:A,requestId:b,arg:y,unwrap:function(){return I.then(xl)}})}}return Object.assign(p,{pending:s,rejected:c,fulfilled:a,typePrefix:r})}return e.withTypes=function(){return e},e}();function xl(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function vl(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Es="listener",As="completed",ws="cancelled",jg="task-"+ws,Kg="task-"+As,Vg=Es+"-"+ws,Zg=Es+"-"+As;var qo="listenerMiddleware";var qg=$e(qo+"/add"),Yg=$e(qo+"/removeAll"),Xg=$e(qo+"/remove");var xs,Jg=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(xs||(xs=Promise.resolve())).then(e).catch(function(r){return setTimeout(function(){throw r},0)})},Sl=function(e){return function(r){setTimeout(r,e)}},Qg=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Sl(10);ns();var Ol=wr(Symbol("withEventBus"),function(e,r){return class extends e{constructor(){super(...arguments),this.eventBus=r??document.createElement("span")}addEventListener(o,n,a){this.eventBus.addEventListener(o,n,a)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,a){this.eventBus.removeEventListener(o,n,a)}}}),Ur=class extends Ol(Object){};window.ftReduxStores||(window.ftReduxStores={});var Rs=class e extends Ur{static get(r){var o;let n=typeof r=="string"?r:r.name,a=typeof r=="string"?void 0:r,s=window.ftReduxStores[n];if(Lr(s))return s;if(a==null)return;let c=Cs({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=Ss({reducer:(u,p)=>p.type==="CLEAR_FT_REDUX_STORE"?c.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...u,...p.overwrites}:c.reducer(u,p)});return window.ftReduxStores[a.name]=new e(c,l,a.eventBus)}constructor(r,o,n){super(),this.reduxSlice=r,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new Rr;let a=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,c,l)=>{let u=c,p=s[u];return p?(...y)=>{let f=p(...y.map(a));return this.reduxStore.dispatch(f),f}:y=>{this.setState({[u]:a(y)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(r){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(r).join("_"),overwrites:r})}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(r){throw new Error("Not implemented yet.")}subscribe(r){return this.reduxStore.subscribe(r)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Mr=class{static format(r,o,n,a){return window.moment?window.moment(r).locale(o).format(this.getMomentDateFormat(n,a)):this.getIntlDateTime(r,o,n,a)}static getMomentDateFormat(r,o){return r?o?"lll":"ll":o?"L LT":"L"}static getIntlDateTime(r,o,n,a){let s=typeof r=="string"?new Date(r):r,c=new Intl.DateTimeFormat(o,{dateStyle:n?"medium":"short"}).format(s);if(!a)return c;let l=new Intl.DateTimeFormat(o,{timeStyle:"short"}).format(s);return`${c} ${l}`}};var Ns=C(k()),Wr=function(e,r,o,n){var a=arguments.length,s=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(s=(a<3?c(s):a>3?c(r,o,s):c(r,o))||s);return a>3&&s&&Object.defineProperty(r,o,s),s},Cb=(0,Ns.applyMixinOnce)(Symbol("withDateFormat"),function(e){class r extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(w)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var a,s;return((s=(a=this.metadataDescriptors.find(l=>l.key===n))===null||a===void 0?void 0:a.date)!==null&&s!==void 0?s:!1)?l=>Mr.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Wr([(0,Yo.property)({type:Boolean})],r.prototype,"useLongDateFormat",void 0),Wr([(0,Yo.property)({type:Boolean})],r.prototype,"useDateTimeFormat",void 0),Wr([wo({store:w.name,selector:o=>{var n,a;return(a=(n=o.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&a!==void 0?a:[]}})],r.prototype,"metadataDescriptors",void 0),Wr([wo({store:w.name})],r.prototype,"uiLocale",void 0),r});(0,Ts.customElement)("ft-app-context")(B);var _s=C(te());var Xo=class{fromLocalizableLabel(r){return r.type=="PLAIN_TEXT"?{message:r.text}:{key:r.key,custom:r.type=="LOCALIZED_CUSTOM",context:r.context,message:r.key}}fromAttribute(r){if(r!=null)try{return JSON.parse(r)}catch{if(this.isI18nKey(r)){let[n,a]=r.split(".");return{context:n,key:a,message:""}}return{message:r}}}toAttribute(r){if(r!=null)return JSON.stringify(r)}isI18nKey(r){return r.match(/^[\w-]+\.[\w-]+$/)}},Is=new Xo;var Cl=function(e,r,o,n){var a=arguments.length,s=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(s=(a<3?c(s):a>3?c(r,o,s):c(r,o))||s);return a>3&&s&&Object.defineProperty(r,o,s),s},El=Symbol("i18nAttributes"),Al=Symbol("i18nListAttributes"),Ps=Symbol("i18nProperties"),Hr=Symbol("i18nContexts"),Qt=Symbol("i18nUnsubs"),zr=(0,_t.applyMixinOnce)(Symbol("withI18n"),function(e){var r,o;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[r]=new Map,this[o]=new Map}getI18nService(s){return s??this.useCustomMessageContexts?Cr:At}i18n(s){let{context:c,key:l,message:u}=s,{custom:p,args:y,argsProvider:f}=s;if(c&&l){this.hasI18nContext(c)||this.addI18nContext(c,void 0,p);let m=y??(f?f(this):[]);return this.getI18nService(p).resolveMessage(c,l,...m)}return u}async awaitI18n(s){let{context:c,custom:l}=s;return c&&await this.getI18nService(l).prepareContext(c),this.i18n(s)}customI18n(s,c){if(Is.isI18nKey(s)){let[l,u]=s.split(".");return this.i18n({custom:!0,context:l,key:u,...c})||s}return s}firstUpdated(s){super.firstUpdated(s),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(s){super.update(s),this.updateI18nAttributes((c,l,u)=>s.has(l)||typeof c.argsProvider=="function"),this.updateI18nProperties(c=>typeof c.argsProvider=="function")}onI18nUpdate(s){this.updateI18nAttributes((c,l,u)=>{var p;return((p=u?.context)===null||p===void 0?void 0:p.toLowerCase())===s}),this.updateI18nProperties(c=>c.context.toLowerCase()===s),this.requestUpdate()}updateI18nAttributes(s){var c,l;let u=this,p=(y,f,m)=>m?.context&&m.key&&s(y,f,m)?{...m,message:this.i18n({context:m.context,key:m.key,custom:m.custom,...y})}:m;(c=this[El])===null||c===void 0||c.forEach((y,f)=>u[f]=p(y,f,u[f])),(l=this[Al])===null||l===void 0||l.forEach((y,f)=>{var m;return u[f]=(m=u[f])===null||m===void 0?void 0:m.map(x=>p(y,f,x))})}updateI18nProperties(s){var c;(c=this[Ps])===null||c===void 0||c.forEach((l,u)=>{s(l,u)&&(this[u]=this.i18n(l))})}addI18nMessages(s,c,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(s,c,l)}addI18nContext(s,c,l){let u=(typeof s=="string"?s:s.name).toLowerCase();l=typeof s=="string"?l:s.custom,this[Hr].set(u,{isCustomContext:l}),this[Qt].has(u)||this[Qt].set(u,this.getI18nService(l).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(l).prepareContext(u,c)}hasI18nContext(s){return this[Hr].has(s.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Hr].forEach((s,c)=>this.addI18nContext(c,void 0,s.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Qt].forEach(s=>s()),this[Qt].clear()}}return r=Hr,o=Qt,Cl([(0,_s.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),Ls=class extends zr(_t.FtLitElement){},Fr=class extends zr(_t.FtLitElementRedux){};var er=function(e,r,o,n){var a=arguments.length,s=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(s=(a<3?c(s):a>3?c(r,o,s):c(r,o))||s);return a>3&&s&&Object.defineProperty(r,o,s),s},be=class extends Fr{constructor(){super(),this.editorMode=!1,this.addStore(w)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Gr.nothing:Gr.html`
336
336
  <span class="ft-i18n">
337
337
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
338
338
  </span>
339
- `}update(r){var o;super.update(r),["context","key","defaultMessage"].some(n=>r.has(n))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(o=this.defaultMessage)!==null&&o!==void 0?o:""})}};be.elementDefinitions={};be.styles=wi;er([(0,jr.redux)()],be.prototype,"editorMode",void 0);er([(0,$r.property)()],be.prototype,"context",void 0);er([(0,$r.property)()],be.prototype,"key",void 0);er([(0,jr.jsonProperty)([])],be.prototype,"args",void 0);er([(0,$r.property)()],be.prototype,"defaultMessage",void 0);var Kr=class e{static build(r){return new e(r)}static buildCustom(r){return new e(r,!0)}static fromGwt(r){return new e(r)}get service(){return this.custom?Cr:At}constructor(r,o=!1){this.name=r,this.custom=o,this.properties=new Proxy({},{get:(n,a)=>{let s=a;return c=>({context:this.name,key:s,custom:this.custom,args:typeof c=="function"?void 0:c,argsProvider:typeof c=="function"?c:void 0})}}),this.messages=new Proxy({},{get:(n,a)=>(...s)=>this.service.resolveMessage(this.name,a,...s)}),this.rawMessages=new Proxy({},{get:(n,a)=>this.service.resolveRawMessage(this.name,a)}),this.keys=new Proxy({},{get:(n,a)=>()=>a})}};(0,ks.customElement)("ft-i18n")(be);var tr=Kr.build("readerSavedBookmarksComponent"),Ds={bookmarks:"Bookmarks",bookmarkMissingFromToc:"This bookmark refer to a topic that no longer exists."};var dc=C(k());var lc=C(Z()),$=C(te()),Ke=C(k());var Bs=C(Z()),Ie=C(k()),Pt={distance:Ie.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Ie.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Ie.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:Ie.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:Ie.FtCssVariableFactory.external(Ie.designSystemVariables.borderRadiusS,"Design system"),maxWidth:Ie.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Us=Bs.css`
339
+ `}update(r){var o;super.update(r),["context","key","defaultMessage"].some(n=>r.has(n))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(o=this.defaultMessage)!==null&&o!==void 0?o:""})}};be.elementDefinitions={};be.styles=wi;er([(0,jr.redux)()],be.prototype,"editorMode",void 0);er([(0,$r.property)()],be.prototype,"context",void 0);er([(0,$r.property)()],be.prototype,"key",void 0);er([(0,jr.jsonProperty)([])],be.prototype,"args",void 0);er([(0,$r.property)()],be.prototype,"defaultMessage",void 0);var Kr=class e{static build(r){return new e(r)}static buildCustom(r){return new e(r,!0)}static fromGwt(r){return new e(r)}get service(){return this.custom?Cr:At}constructor(r,o=!1){this.name=r,this.custom=o,this.properties=new Proxy({},{get:(n,a)=>{let s=a;return c=>({context:this.name,key:s,custom:this.custom,args:typeof c=="function"?void 0:c,argsProvider:typeof c=="function"?c:void 0})}}),this.messages=new Proxy({},{get:(n,a)=>(...s)=>this.service.resolveMessage(this.name,a,...s)}),this.rawMessages=new Proxy({},{get:(n,a)=>this.service.resolveRawMessage(this.name,a)}),this.keys=new Proxy({},{get:(n,a)=>()=>a}),this.attributes=new Proxy({},{get:(n,a)=>()=>({context:this.name,key:a,message:this.service.resolveRawMessage(this.name,a)})})}};(0,ks.customElement)("ft-i18n")(be);var tr=Kr.build("readerSavedBookmarksComponent"),Ds={bookmarks:"Bookmarks",bookmarkMissingFromToc:"This bookmark refer to a topic that no longer exists."};var dc=C(k());var lc=C(Z()),$=C(te()),Ke=C(k());var Bs=C(Z()),Ie=C(k()),Pt={distance:Ie.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Ie.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Ie.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:Ie.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:Ie.FtCssVariableFactory.external(Ie.designSystemVariables.borderRadiusS,"Design system"),maxWidth:Ie.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Us=Bs.css`
340
340
  .ft-tooltip--container {
341
341
  display: block;
342
342
  }