@fluid-topics/ft-drawer 2.2.47 → 2.2.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- "use strict";(()=>{var Jl=Object.create;var Mi=Object.defineProperty;var Ql=Object.getOwnPropertyDescriptor;var ec=Object.getOwnPropertyNames;var tc=Object.getPrototypeOf,rc=Object.prototype.hasOwnProperty;var Vt=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var nc=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ec(t))!rc.call(e,i)&&i!==r&&Mi(e,i,{get:()=>t[i],enumerable:!(n=Ql(t,i))||n.enumerable});return e};var h=(e,t,r)=>(r=e!=null?Jl(tc(e)):{},nc(t||!e||!e.__esModule?Mi(r,"default",{value:e,enumerable:!0}):r,e));var C=Vt((Hu,Ii)=>{Ii.exports=ftGlobals.wcUtils});var B=Vt((Fu,$i)=>{$i.exports=ftGlobals.lit});var ee=Vt((zu,Hi)=>{Hi.exports=ftGlobals.litDecorators});var Vi=Vt((Wu,Fi)=>{Fi.exports=ftGlobals.litUnsafeHTML});var fn=Vt((Om,ia)=>{ia.exports=ftGlobals.litClassMap});var Yl=h(C());var Gl=h(B());var Ui=h(B()),xe=h(C()),ge={size:xe.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:xe.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",xe.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:xe.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",xe.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:xe.FtCssVariableFactory.extend("--ft-icon-material-font-family","",xe.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:xe.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Bi=[Ui.css`
1
+ "use strict";(()=>{var ql=Object.create;var ki=Object.defineProperty;var Yl=Object.getOwnPropertyDescriptor;var Xl=Object.getOwnPropertyNames;var Zl=Object.getPrototypeOf,Jl=Object.prototype.hasOwnProperty;var Ft=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var Ql=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Xl(t))!Jl.call(e,i)&&i!==r&&ki(e,i,{get:()=>t[i],enumerable:!(n=Yl(t,i))||n.enumerable});return e};var h=(e,t,r)=>(r=e!=null?ql(Zl(e)):{},Ql(t||!e||!e.__esModule?ki(r,"default",{value:e,enumerable:!0}):r,e));var A=Ft((Tu,Mi)=>{Mi.exports=ftGlobals.wcUtils});var U=Ft((Ou,Ii)=>{Ii.exports=ftGlobals.lit});var Q=Ft((Nu,Bi)=>{Bi.exports=ftGlobals.litDecorators});var Fi=Ft((Pu,Hi)=>{Hi.exports=ftGlobals.litUnsafeHTML});var fn=Ft((dm,ea)=>{ea.exports=ftGlobals.litClassMap});var Wl=h(A());var jl=h(U());var $i=h(U()),xe=h(A()),ge={size:xe.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:xe.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",xe.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:xe.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",xe.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:xe.FtCssVariableFactory.extend("--ft-icon-material-font-family","",xe.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:xe.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Ui=[$i.css`
2
2
  :host, i.ft-icon {
3
3
  display: inline-flex;
4
4
  align-items: center;
@@ -46,12 +46,12 @@
46
46
  .ft-icon--material {
47
47
  font-family: ${ge.materialFontFamily}, "Material Icons", sans-serif;
48
48
  }
49
- `,xe.noTextSelect];var Ie;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(Ie||(Ie={}));var jt=h(B()),Ue=h(ee()),ji=h(C()),zi=h(Vi());var $e;(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.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.CIRCLE_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;",e.FILE_CODE="&#xe9b8;",e.BOX_CODE="&#xe9b9;",e.TOPICS_SOLID="&#xe9ba;",e.PHOTO_FILM="&#xe9bb;",e.HYPHEN_SOLID="&#xe9bc;",e.CROSSHAIRS="&#xe9bd;",e.PERSON_CHALKBOARD="&#xe9be;",e.CIRCLE_ARROW_DOWN_SLASH="&#xe9bf;",e.BOOK_OPEN_COVER="&#xe9c0;",e.LIGHTBULB="&#xe9c1;",e.MESSAGE_BOT_AGENTIC_SOLID="&#xe9c2;",e.CHART_LINE_USER="&#xe9c3;",e.SERVER_CIRCLE_ARROW_DOWN="&#xe9c4;",e.EYE="&#xf06e;",e.SHARE="&#xe80f1;"})($e||($e={}));var m;(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;"})(m||(m={}));var Ku=new Map([...["abw"].map(e=>[e,m.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,m.AUDIO]),...["avi"].map(e=>[e,m.AVI]),...["chm","xhs"].map(e=>[e,m.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,m.CODE]),...["csv"].map(e=>[e,m.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,m.DITA]),...["epub"].map(e=>[e,m.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,m.EXCEL]),...["flac"].map(e=>[e,m.FLAC]),...["gif"].map(e=>[e,m.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,m.GZIP]),...["html","htm","xhtml"].map(e=>[e,m.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,m.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,m.JPEG]),...["json"].map(e=>[e,m.JSON]),...["m4a","m4p"].map(e=>[e,m.M4A]),...["mov","qt"].map(e=>[e,m.MOV]),...["mp3"].map(e=>[e,m.MP3]),...["mp4","m4v"].map(e=>[e,m.MP4]),...["ogg","oga"].map(e=>[e,m.OGG]),...["pdf","ps"].map(e=>[e,m.PDF]),...["png"].map(e=>[e,m.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,m.POWERPOINT]),...["rar"].map(e=>[e,m.RAR]),...["stp"].map(e=>[e,m.STP]),...["txt","rtf","md","mdown"].map(e=>[e,m.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,m.VIDEO]),...["wav"].map(e=>[e,m.WAV]),...["wma"].map(e=>[e,m.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,m.WORD]),...["xml","xsl","rdf"].map(e=>[e,m.XML]),...["yaml","yml","x-yaml"].map(e=>[e,m.YAML]),...["zip"].map(e=>[e,m.ZIP])]);var Gu={[m.ABW]:"#91ABC6",[m.AUDIO]:"#1795E3",[m.AVI]:"#E63324",[m.CHM]:"#71C3EB",[m.CODE]:"#71C3EB",[m.CSV]:"#1F7345",[m.DITA]:"#71C3EB",[m.EPUB]:"#85B926",[m.EXCEL]:"#1F7345",[m.FLAC]:"#1795E3",[m.GIF]:"#59B031",[m.GZIP]:"#F8AB36",[m.HTML]:"#71C3EB",[m.IMAGE]:"#59B031",[m.JPEG]:"#59B031",[m.JSON]:"#71C3EB",[m.M4A]:"#1795E3",[m.MOV]:"#E63324",[m.MP3]:"#1795E3",[m.MP4]:"#E63324",[m.OGG]:"#1795E3",[m.PDF]:"#E44948",[m.PNG]:"#59B031",[m.POWERPOINT]:"#B54A2B",[m.RAR]:"#F8AB36",[m.STP]:"#3764B1",[m.TEXT]:"#3162AB",[m.UNKNOWN]:"#999999",[m.VIDEO]:"#E63324",[m.WAV]:"#1795E3",[m.WMA]:"#1795E3",[m.WORD]:"#3162AB",[m.XML]:"#71C3EB",[m.YAML]:"#71C3EB",[m.ZIP]:"#F8AB36"};var zt=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Z=class extends ji.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=jt.nothing}render(){let t=this.variant&&Object.values(Ie).includes(this.variant)?this.variant:Ie.fluid_topics,r=t!==Ie.material||!!this.value;return jt.html`
49
+ `,xe.noTextSelect];var Ie;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(Ie||(Ie={}));var Vt=h(U()),Ue=h(Q()),Vi=h(A()),ji=h(Fi());var $e;(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.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.CIRCLE_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;",e.FILE_CODE="&#xe9b8;",e.BOX_CODE="&#xe9b9;",e.TOPICS_SOLID="&#xe9ba;",e.PHOTO_FILM="&#xe9bb;",e.HYPHEN_SOLID="&#xe9bc;",e.CROSSHAIRS="&#xe9bd;",e.PERSON_CHALKBOARD="&#xe9be;",e.CIRCLE_ARROW_DOWN_SLASH="&#xe9bf;",e.BOOK_OPEN_COVER="&#xe9c0;",e.LIGHTBULB="&#xe9c1;",e.MESSAGE_BOT_AGENTIC_SOLID="&#xe9c2;",e.CHART_LINE_USER="&#xe9c3;",e.SERVER_CIRCLE_ARROW_DOWN="&#xe9c4;",e.EYE="&#xf06e;",e.SHARE="&#xe80f1;"})($e||($e={}));var m;(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;"})(m||(m={}));var Du=new Map([...["abw"].map(e=>[e,m.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,m.AUDIO]),...["avi"].map(e=>[e,m.AVI]),...["chm","xhs"].map(e=>[e,m.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,m.CODE]),...["csv"].map(e=>[e,m.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,m.DITA]),...["epub"].map(e=>[e,m.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,m.EXCEL]),...["flac"].map(e=>[e,m.FLAC]),...["gif"].map(e=>[e,m.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,m.GZIP]),...["html","htm","xhtml"].map(e=>[e,m.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,m.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,m.JPEG]),...["json"].map(e=>[e,m.JSON]),...["m4a","m4p"].map(e=>[e,m.M4A]),...["mov","qt"].map(e=>[e,m.MOV]),...["mp3"].map(e=>[e,m.MP3]),...["mp4","m4v"].map(e=>[e,m.MP4]),...["ogg","oga"].map(e=>[e,m.OGG]),...["pdf","ps"].map(e=>[e,m.PDF]),...["png"].map(e=>[e,m.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,m.POWERPOINT]),...["rar"].map(e=>[e,m.RAR]),...["stp"].map(e=>[e,m.STP]),...["txt","rtf","md","mdown"].map(e=>[e,m.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,m.VIDEO]),...["wav"].map(e=>[e,m.WAV]),...["wma"].map(e=>[e,m.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,m.WORD]),...["xml","xsl","rdf"].map(e=>[e,m.XML]),...["yaml","yml","x-yaml"].map(e=>[e,m.YAML]),...["zip"].map(e=>[e,m.ZIP])]);var ku={[m.ABW]:"#91ABC6",[m.AUDIO]:"#1795E3",[m.AVI]:"#E63324",[m.CHM]:"#71C3EB",[m.CODE]:"#71C3EB",[m.CSV]:"#1F7345",[m.DITA]:"#71C3EB",[m.EPUB]:"#85B926",[m.EXCEL]:"#1F7345",[m.FLAC]:"#1795E3",[m.GIF]:"#59B031",[m.GZIP]:"#F8AB36",[m.HTML]:"#71C3EB",[m.IMAGE]:"#59B031",[m.JPEG]:"#59B031",[m.JSON]:"#71C3EB",[m.M4A]:"#1795E3",[m.MOV]:"#E63324",[m.MP3]:"#1795E3",[m.MP4]:"#E63324",[m.OGG]:"#1795E3",[m.PDF]:"#E44948",[m.PNG]:"#59B031",[m.POWERPOINT]:"#B54A2B",[m.RAR]:"#F8AB36",[m.STP]:"#3764B1",[m.TEXT]:"#3162AB",[m.UNKNOWN]:"#999999",[m.VIDEO]:"#E63324",[m.WAV]:"#1795E3",[m.WMA]:"#1795E3",[m.WORD]:"#3162AB",[m.XML]:"#71C3EB",[m.YAML]:"#71C3EB",[m.ZIP]:"#F8AB36"};var jt=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},X=class extends Vi.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Vt.nothing}render(){let t=this.variant&&Object.values(Ie).includes(this.variant)?this.variant:Ie.fluid_topics,r=t!==Ie.material||!!this.value;return Vt.html`
50
50
  <i class="ft-icon ft-icon--${t} ft-no-text-select" part="icon icon-${t}">
51
- ${(0,zi.unsafeHTML)(this.resolvedIcon)}
51
+ ${(0,ji.unsafeHTML)(this.resolvedIcon)}
52
52
  <slot ?hidden=${r}></slot>
53
53
  </i>
54
- `}getTextContent(){var t,r;return(r=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&r!==void 0?r:""}update(t){super.update(t),["value","variant"].some(r=>t.has(r))&&this.resolveIcon()}resolveIcon(){var t,r;let n=this.value||this.getTextContent();switch(this.variant){case Ie.file_format:this.resolvedIcon=(t=m[n.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:n;break;case Ie.material:this.resolvedIcon=this.value||jt.nothing;break;default:this.resolvedIcon=(r=$e[n.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:n;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};Z.elementDefinitions={};Z.styles=Bi;zt([(0,Ue.property)()],Z.prototype,"variant",void 0);zt([(0,Ue.property)()],Z.prototype,"value",void 0);zt([(0,Ue.property)({reflect:!0,attribute:"aria-hidden"})],Z.prototype,"ariaHidden",void 0);zt([(0,Ue.state)()],Z.prototype,"resolvedIcon",void 0);zt([(0,Ue.query)("slot")],Z.prototype,"slottedContent",void 0);var Ki=h(C());var Wi={"ft-icon":Z};(0,Ki.customElements)(Wi);var Gi=h(B()),T=h(C()),$={shadow:T.FtCssVariableFactory.extend("--ft-drawer-shadow","",T.designSystemVariables.elevation03),width:T.FtCssVariableFactory.create("--ft-drawer-width","","SIZE","800px"),headerPadding:T.FtCssVariableFactory.create("--ft-drawer-header-padding","","SIZE","8px 16px"),headerGap:T.FtCssVariableFactory.create("--ft-drawer-header-gap","","SIZE","8px"),headerBorderColor:T.FtCssVariableFactory.extend("--ft-drawer-header-border-color","",T.designSystemVariables.colorOutline),headerBorderWidth:T.FtCssVariableFactory.create("--ft-drawer-header-border-width","","SIZE","1px"),headerBackgroundColor:T.FtCssVariableFactory.extend("--ft-drawer-header-background-color","",T.designSystemVariables.colorSurface),headerColor:T.FtCssVariableFactory.extend("--ft-drawer-header-color","",T.designSystemVariables.colorOnSurfaceHigh),contentPadding:T.FtCssVariableFactory.create("--ft-drawer-content-padding","","SIZE","16px"),contentGap:T.FtCssVariableFactory.create("--ft-drawer-content-gap","","SIZE","16px"),contentBackgroundColor:T.FtCssVariableFactory.extend("--ft-drawer-content-background-color","",T.designSystemVariables.colorSurface),contentColor:T.FtCssVariableFactory.extend("--ft-drawer-content-color","",T.designSystemVariables.colorOnSurfaceMedium),actionsGap:T.FtCssVariableFactory.create("--ft-drawer-action-gap","","SIZE","8px"),actionsPadding:T.FtCssVariableFactory.create("--ft-drawer-actions-padding","","SIZE","8px 16px"),actionsBorderColor:T.FtCssVariableFactory.extend("--ft-drawer-actions-border-color","",T.designSystemVariables.colorOutline),actionsBorderWidth:T.FtCssVariableFactory.create("--ft-drawer-actions-border-width","","SIZE","1px"),actionsBackgroundColor:T.FtCssVariableFactory.extend("--ft-drawer-actions-background-color","",T.designSystemVariables.colorSurface),overlayBackgroundColor:T.FtCssVariableFactory.create("--ft-drawer-overlay-background-color","","COLOR","rgb(10, 10, 13)"),overlayOpacity:T.FtCssVariableFactory.create("--ft-drawer-overlay-opacity","","NUMBER","0.4"),closingButtonColor:T.FtCssVariableFactory.extend("--ft-drawer-closing-button-color","",T.designSystemVariables.colorOnSurfaceMedium),contentOverflow:T.FtCssVariableFactory.create("--ft-drawer-content-overflow","","UNKNOWN","visible")},qi=Gi.css`
54
+ `}getTextContent(){var t,r;return(r=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&r!==void 0?r:""}update(t){super.update(t),["value","variant"].some(r=>t.has(r))&&this.resolveIcon()}resolveIcon(){var t,r;let n=this.value||this.getTextContent();switch(this.variant){case Ie.file_format:this.resolvedIcon=(t=m[n.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:n;break;case Ie.material:this.resolvedIcon=this.value||Vt.nothing;break;default:this.resolvedIcon=(r=$e[n.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:n;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};X.elementDefinitions={};X.styles=Ui;jt([(0,Ue.property)()],X.prototype,"variant",void 0);jt([(0,Ue.property)()],X.prototype,"value",void 0);jt([(0,Ue.property)({reflect:!0,attribute:"aria-hidden"})],X.prototype,"ariaHidden",void 0);jt([(0,Ue.state)()],X.prototype,"resolvedIcon",void 0);jt([(0,Ue.query)("slot")],X.prototype,"slottedContent",void 0);var Wi=h(A());var zi={"ft-icon":X};(0,Wi.customElements)(zi);var Ki=h(U()),O=h(A()),I={shadow:O.FtCssVariableFactory.extend("--ft-drawer-shadow","",O.designSystemVariables.elevation03),width:O.FtCssVariableFactory.create("--ft-drawer-width","","SIZE","800px"),headerPadding:O.FtCssVariableFactory.create("--ft-drawer-header-padding","","SIZE","8px 16px"),headerGap:O.FtCssVariableFactory.create("--ft-drawer-header-gap","","SIZE","8px"),headerBorderColor:O.FtCssVariableFactory.extend("--ft-drawer-header-border-color","",O.designSystemVariables.colorOutline),headerBorderWidth:O.FtCssVariableFactory.create("--ft-drawer-header-border-width","","SIZE","1px"),headerBackgroundColor:O.FtCssVariableFactory.extend("--ft-drawer-header-background-color","",O.designSystemVariables.colorSurface),headerColor:O.FtCssVariableFactory.extend("--ft-drawer-header-color","",O.designSystemVariables.colorOnSurfaceHigh),contentPadding:O.FtCssVariableFactory.create("--ft-drawer-content-padding","","SIZE","16px"),contentGap:O.FtCssVariableFactory.create("--ft-drawer-content-gap","","SIZE","16px"),contentBackgroundColor:O.FtCssVariableFactory.extend("--ft-drawer-content-background-color","",O.designSystemVariables.colorSurface),contentColor:O.FtCssVariableFactory.extend("--ft-drawer-content-color","",O.designSystemVariables.colorOnSurfaceMedium),actionsGap:O.FtCssVariableFactory.create("--ft-drawer-action-gap","","SIZE","8px"),actionsPadding:O.FtCssVariableFactory.create("--ft-drawer-actions-padding","","SIZE","8px 16px"),actionsBorderColor:O.FtCssVariableFactory.extend("--ft-drawer-actions-border-color","",O.designSystemVariables.colorOutline),actionsBorderWidth:O.FtCssVariableFactory.create("--ft-drawer-actions-border-width","","SIZE","1px"),actionsBackgroundColor:O.FtCssVariableFactory.extend("--ft-drawer-actions-background-color","",O.designSystemVariables.colorSurface),overlayBackgroundColor:O.FtCssVariableFactory.create("--ft-drawer-overlay-background-color","","COLOR","rgb(10, 10, 13)"),overlayOpacity:O.FtCssVariableFactory.create("--ft-drawer-overlay-opacity","","NUMBER","0.4"),closingButtonColor:O.FtCssVariableFactory.extend("--ft-drawer-closing-button-color","",O.designSystemVariables.colorOnSurfaceMedium),contentOverflow:O.FtCssVariableFactory.create("--ft-drawer-content-overflow","","UNKNOWN","visible")},Gi=Ki.css`
55
55
 
56
56
  @keyframes slide-in-from-right {
57
57
  0% {
@@ -69,7 +69,7 @@
69
69
  }
70
70
 
71
71
  100% {
72
- opacity: ${$.overlayOpacity};
72
+ opacity: ${I.overlayOpacity};
73
73
  }
74
74
  }
75
75
 
@@ -93,8 +93,8 @@
93
93
 
94
94
  position: absolute;
95
95
  inset: 0;
96
- background-color: ${$.overlayBackgroundColor};
97
- opacity: ${$.overlayOpacity};
96
+ background-color: ${I.overlayBackgroundColor};
97
+ opacity: ${I.overlayOpacity};
98
98
  }
99
99
 
100
100
  [part=inner-container] {
@@ -106,9 +106,9 @@
106
106
  flex-direction: column;
107
107
  height: 100%;
108
108
  max-height: 100%;
109
- width: ${$.width};
109
+ width: ${I.width};
110
110
  max-width: 100%;
111
- box-shadow: ${$.shadow};
111
+ box-shadow: ${I.shadow};
112
112
 
113
113
  animation-duration: 0.2s;
114
114
  animation-name: slide-in-from-right;
@@ -116,15 +116,15 @@
116
116
  }
117
117
 
118
118
  [part=header] {
119
- padding: ${$.headerPadding};
119
+ padding: ${I.headerPadding};
120
120
  display: flex;
121
121
  align-items: center;
122
- gap: ${$.headerGap};
123
- border-color: ${$.headerBorderColor};
124
- border-bottom-width: ${$.headerBorderWidth};
122
+ gap: ${I.headerGap};
123
+ border-color: ${I.headerBorderColor};
124
+ border-bottom-width: ${I.headerBorderWidth};
125
125
  border-bottom-style: solid;
126
- color: ${$.headerColor};
127
- background-color: ${$.headerBackgroundColor};
126
+ color: ${I.headerColor};
127
+ background-color: ${I.headerBackgroundColor};
128
128
  flex-shrink: 0;
129
129
  }
130
130
 
@@ -140,47 +140,57 @@
140
140
  [part=actions] {
141
141
  display: flex;
142
142
  align-items: center;
143
- gap: ${$.actionsGap};
144
- padding: ${$.actionsPadding};
145
- border-color: ${$.actionsBorderColor};
146
- border-top-width: ${$.actionsBorderWidth};
143
+ gap: ${I.actionsGap};
144
+ padding: ${I.actionsPadding};
145
+ border-color: ${I.actionsBorderColor};
146
+ border-top-width: ${I.actionsBorderWidth};
147
147
  border-top-style: solid;
148
- background-color: ${$.actionsBackgroundColor};
148
+ background-color: ${I.actionsBackgroundColor};
149
149
  }
150
150
 
151
151
  [part=closing-button] {
152
- color: ${$.closingButtonColor};
152
+ color: ${I.closingButtonColor};
153
153
  order: -1;
154
154
  }
155
155
 
156
156
  [part=body] {
157
157
  flex-shrink: 1;
158
158
  flex-grow: 1;
159
- padding: ${$.contentPadding};
159
+ padding: ${I.contentPadding};
160
160
  display: flex;
161
161
  flex-direction: column;
162
- gap: ${$.contentGap};
163
- color: ${$.contentColor};
164
- background-color: ${$.contentBackgroundColor};
165
- overflow: ${$.contentOverflow};
162
+ gap: ${I.contentGap};
163
+ color: ${I.contentColor};
164
+ background-color: ${I.contentBackgroundColor};
165
+ overflow: ${I.contentOverflow};
166
166
  }
167
167
 
168
168
  [part=content] {
169
169
  flex-grow: 1;
170
- overflow: ${$.contentOverflow};
170
+ overflow: ${I.contentOverflow};
171
171
  }
172
- `;var qn=h(ee());var Yi=h(ee(),1);var On=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)},ic=e=>({fromAttribute:t=>{if(t==null)return Wt(e);try{return JSON.parse(t)}catch{return Wt(e)}},toAttribute:t=>JSON.stringify(t)});function Xi(e,t){return(0,Yi.property)({type:Object,converter:ic(e),hasChanged:Kt,...t??{}})}function sc(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let r,n;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Et(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!Et(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let i=o=>Object.keys(o).filter(a=>o[a]!=null),s=i(e);if(r=s.length,r!==i(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[n]))return!1;for(n=r;n--!==0;){let o=s[n];if(!Et(e[o],t[o]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function Et(e,t){try{return sc(e,t)}catch{return!1}}function Kt(e,t){return!Et(e,t)}function Wt(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function Sr(e,t){let r=n=>n[e]===!0;return n=>{if(r(n))return n;let i=t(n);return i[e]=!0,i}}var Zi=h(ee(),1);var Tn=e=>{let t=e??{};return(r,n)=>{var i;let s={hasChanged:Kt,attribute:!1,...t};(0,Zi.property)(s)(r,n);let o=r.constructor;o.reduxProperties=new Map(o.reduxProperties),o.reduxProperties.set(n,{selector:(i=t.selector)!==null&&i!==void 0?i:(a=>a[n]),store:t.store})}};var _r=class{constructor(){this.queue=[]}add(t,r=!1){r&&this.clear(t.type),this.queue.push(t)}consume(t){let r=this.queue.find(n=>n.type===t);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(t){typeof t=="string"?this.queue=this.queue.filter(r=>r.type!==t):this.queue=this.queue.filter(r=>!t.test(r.type))}};var qe=h(ee(),1);var Cr=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,r){return this.callbacks=[t],this.debounce(r)}queue(t,r){return this.callbacks.push(t),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let n=[...this.callbacks];this.callbacks=[];let i=(t=this.rejectPromise)!==null&&t!==void 0?t:(()=>null),s=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let o of n)try{await o()}catch(a){i(a);return}s(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Or=h(B(),1);var wr=class extends Or.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let t=this.scopedRegistryConstructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,t.defineScopedElements(t.elementDefinitions));let r={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return(0,Or.adoptStyles)(n,t.elementStyles),n}static canDefineScopedElement(t){return!!this.registry&&!this.registry.get(t)}static defineScopedElements(t){Object.entries(t).forEach(([r,n])=>this.defineScopedElement(r,n))}static defineScopedElement(t,r){On(t)(r),this.canDefineScopedElement(t)&&this.registry.define(t,r)}canDefineScopedElement(t){return this.scopedRegistryConstructor.canDefineScopedElement(t)}defineScopedElements(t){this.scopedRegistryConstructor.defineScopedElements(t)}defineScopedElement(t,r){this.scopedRegistryConstructor.defineScopedElement(t,r)}};function Ji(e,t,...r){var n;let i=e.querySelector(t);for(let s of r)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(s);return i}var St=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},rs,Qi=Symbol("constructorPrototype"),es=Symbol("constructorName"),ns=Symbol("exportpartsDebouncer"),ts=Symbol("dynamicDependenciesLoaded"),At=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};At.eventName="exportparts-updated";var Ce=class extends wr{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[rs]=new Cr(5),this.scheduleExportpartsUpdate=()=>{var t,r,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[ns].run(()=>{var i,s;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((s=this.exportpartsPrefixes)===null||s===void 0?void 0:s.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[es]=this.constructor.name,this[Qi]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[es]&&Object.setPrototypeOf(this,this[Qi])}connectedCallback(){var t;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let r=this.constructor;r[ts]||(r[ts]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(At.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(At.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate(),t.has("exportparts")&&this.dispatchEvent(new At)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:i}=this.elementToFocus;if(n!=null){let s=[...i??[],n];r=Ji(this.shadowRoot,...s)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,n,i;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(s=>s.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(s){console.error(s,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let s=document.createElement("style");s.classList.add("ft-lit-element--custom-stylesheet"),s.innerHTML=this.customStylesheet,this.shadowRoot.append(s)}}setExportpartsAttribute(t){var r,n,i,s,o,a;let l=p=>p!=null&&p.trim().length>0,c=t.filter(l).map(p=>p.trim());if(c.length===0){this.exportparts=void 0;return}let u=new Set;for(let p of(s=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&s!==void 0?s:[]){let y=(o=(n=p.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&o!==void 0?o:[],v=(a=(i=p.getAttribute("exportparts"))===null||i===void 0?void 0:i.split(",").map(x=>x.split(":")[1]))!==null&&a!==void 0?a:[],A=[...y,...v].filter(l).map(x=>x.trim());for(let x of A)u.add(x)}if(u.size===0){this.exportparts=void 0;return}let d=[...u.values()].flatMap(p=>c.map(y=>`${p}:${y}--${p}`));this.exportparts=[...this.part,...d].join(", ")}};rs=ns;St([(0,qe.property)()],Ce.prototype,"exportpartsPrefix",void 0);St([Xi([])],Ce.prototype,"exportpartsPrefixes",void 0);St([(0,qe.property)({reflect:!0})],Ce.prototype,"exportparts",void 0);St([(0,qe.property)()],Ce.prototype,"customStylesheet",void 0);St([(0,qe.property)()],Ce.prototype,"elementToFocus",void 0);St([(0,qe.state)()],Ce.prototype,"useAdoptedStyleSheets",void 0);function Tr(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Gt=Symbol("internalReduxEventsUnsubscribers"),Be=Symbol("internalStoresUnsubscribers"),Ye=Symbol("internalStores"),oc=Sr(Symbol("withRedux"),function(e){var t,r,n;class i extends e{constructor(){super(...arguments),this[t]=new Map,this[r]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(o){super.willUpdate(o),[...this.reduxConstructor.reduxReactiveProperties].some(a=>o.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[Ye].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ye].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[Ye].get(o)}addStore(o,a){var l;a=(l=a??o.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Ye].set(a,o),this.subscribeToStore(a,o),this.updateFromStores()}removeStore(o){let a=typeof o=="string"?o:o.name;this.unsubscribeFromStore(a),this[Ye].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Ye].forEach((o,a)=>this.subscribeToStore(a,o)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((o,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let c=this.getStore(o.store);c&&(o.store?this[Be].has(o.store):this[Be].size>0)&&(this[a]=o.selector(c.getState(),this))}})}subscribeToStore(o,a){var l,c;this[Be].set(o,a.subscribe(()=>this.updateFromStores())),this[Gt].set(o,[]),Tr(a)&&(!((l=a.deprecatedKeys)===null||l===void 0)&&l.length&&this.reduxConstructor.reduxProperties.forEach((u,d)=>{this.getStore(u.store)===a&&a.deprecatedKeys.includes(d)&&console.warn("Element",this,"is subscribed to deprecated key",d,"in store",a.name)}),a.eventBus&&((c=this.reduxConstructor.reduxEventListeners)===null||c===void 0||c.forEach((u,d)=>{if(typeof this[d]=="function"&&(!u.store||a.name===u.store)){let p=y=>this[d](y);a.addEventListener(u.eventName,p),this[Gt].get(o).push(()=>a.removeEventListener(u.eventName,p))}}))),this.onStoreAvailable(o)}unsubscribeFromStores(){this[Be].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[Be].has(o)&&this[Be].get(o)(),this[Be].delete(o),(a=this[Gt].get(o))===null||a===void 0||a.forEach(l=>l()),this[Gt].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=Be,r=Ye,n=Gt,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),is=class extends oc(Ce){};function G(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 ac=typeof Symbol=="function"&&Symbol.observable||"@@observable",ss=ac,Rn=()=>Math.random().toString(36).substring(7).split("").join("."),lc={INIT:`@@redux/INIT${Rn()}`,REPLACE:`@@redux/REPLACE${Rn()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Rn()}`},Rr=lc;function Lr(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Ln(e,t,r){if(typeof e!="function")throw new Error(G(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(G(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(G(1));return r(Ln)(e,t)}let n=e,i=t,s=new Map,o=s,a=0,l=!1;function c(){o===s&&(o=new Map,s.forEach((x,_)=>{o.set(_,x)}))}function u(){if(l)throw new Error(G(3));return i}function d(x){if(typeof x!="function")throw new Error(G(4));if(l)throw new Error(G(5));let _=!0;c();let N=a++;return o.set(N,x),function(){if(_){if(l)throw new Error(G(6));_=!1,c(),o.delete(N),s=null}}}function p(x){if(!Lr(x))throw new Error(G(7));if(typeof x.type>"u")throw new Error(G(8));if(typeof x.type!="string")throw new Error(G(17));if(l)throw new Error(G(9));try{l=!0,i=n(i,x)}finally{l=!1}return(s=o).forEach(N=>{N()}),x}function y(x){if(typeof x!="function")throw new Error(G(10));n=x,p({type:Rr.REPLACE})}function v(){let x=d;return{subscribe(_){if(typeof _!="object"||_===null)throw new Error(G(11));function N(){let E=_;E.next&&E.next(u())}return N(),{unsubscribe:x(N)}},[ss](){return this}}}return p({type:Rr.INIT}),{dispatch:p,subscribe:d,getState:u,replaceReducer:y,[ss]:v}}function cc(e){Object.keys(e).forEach(t=>{let r=e[t];if(typeof r(void 0,{type:Rr.INIT})>"u")throw new Error(G(12));if(typeof r(void 0,{type:Rr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(G(13))})}function Nn(e){let t=Object.keys(e),r={};for(let o=0;o<t.length;o++){let a=t[o];typeof e[a]=="function"&&(r[a]=e[a])}let n=Object.keys(r),i,s;try{cc(r)}catch(o){s=o}return function(a={},l){if(s)throw s;let c=!1,u={};for(let d=0;d<n.length;d++){let p=n[d],y=r[p],v=a[p],A=y(v,l);if(typeof A>"u"){let x=l&&l.type;throw new Error(G(14))}u[p]=A,c=c||A!==v}return c=c||n.length!==Object.keys(a).length,c?u:a}}function qt(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function os(...e){return t=>(r,n)=>{let i=t(r,n),s=()=>{throw new Error(G(15))},o={getState:i.getState,dispatch:(l,...c)=>s(l,...c)},a=e.map(l=>l(o));return s=qt(...a)(i.dispatch),{...i,dispatch:s}}}function as(e){return Lr(e)&&"type"in e&&typeof e.type=="string"}var ys=Symbol.for("immer-nothing"),ls=Symbol.for("immer-draftable"),X=Symbol.for("immer-state");function ve(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ie=Object,Ct=ie.getPrototypeOf,kr="constructor",Hr="prototype",Mn="configurable",Mr="enumerable",Pr="writable",Yt="value",we=e=>!!e&&!!e[X];function se(e){return e?gs(e)||Vr(e)||!!e[ls]||!!e[kr]?.[ls]||jr(e)||Qt(e):!1}var uc=ie[Hr][kr].toString(),cs=new WeakMap;function gs(e){if(!e||!jn(e))return!1;let t=Ct(e);if(t===null||t===ie[Hr])return!0;let r=ie.hasOwnProperty.call(t,kr)&&t[kr];if(r===Object)return!0;if(!_t(r))return!1;let n=cs.get(r);return n===void 0&&(n=Function.toString.call(r),cs.set(r,n)),n===uc}function Fr(e,t,r=!0){Jt(e)===0?(r?Reflect.ownKeys(e):ie.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((n,i)=>t(i,n,e))}function Jt(e){let t=e[X];return t?t.type_:Vr(e)?1:jr(e)?2:Qt(e)?3:0}var Pn=(e,t,r=Jt(e))=>r===2?e.has(t):ie[Hr].hasOwnProperty.call(e,t),In=(e,t,r=Jt(e))=>r===2?e.get(t):e[t],Ir=(e,t,r,n=Jt(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function dc(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Vr=Array.isArray,jr=e=>e instanceof Map,Qt=e=>e instanceof Set,jn=e=>typeof e=="object",_t=e=>typeof e=="function",Dn=e=>typeof e=="boolean";function pc(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var Ne=e=>e.copy_||e.base_;var zn=e=>e.modified_?e.copy_:e.base_;function $n(e,t){if(jr(e))return new Map(e);if(Qt(e))return new Set(e);if(Vr(e))return Array[Hr].slice.call(e);let r=gs(e);if(t===!0||t==="class_only"&&!r){let n=ie.getOwnPropertyDescriptors(e);delete n[X];let i=Reflect.ownKeys(n);for(let s=0;s<i.length;s++){let o=i[s],a=n[o];a[Pr]===!1&&(a[Pr]=!0,a[Mn]=!0),(a.get||a.set)&&(n[o]={[Mn]:!0,[Pr]:!0,[Mr]:a[Mr],[Yt]:e[o]})}return ie.create(Ct(e),n)}else{let n=Ct(e);if(n!==null&&r)return{...e};let i=ie.create(n);return ie.assign(i,e)}}function zr(e,t=!1){return Wr(e)||we(e)||!se(e)||(Jt(e)>1&&ie.defineProperties(e,{set:Nr,add:Nr,clear:Nr,delete:Nr}),ie.freeze(e),t&&Fr(e,(r,n)=>{zr(n,!0)},!1)),e}function fc(){ve(2)}var Nr={[Yt]:fc};function Wr(e){return e===null||!jn(e)?!0:ie.isFrozen(e)}var $r="MapSet",Un="Patches",us="ArrayMethods",xs={};function Xe(e){let t=xs[e];return t||ve(0,e),t}var ds=e=>!!xs[e];var Xt,vs=()=>Xt,hc=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:ds($r)?Xe($r):void 0,arrayMethodsPlugin_:ds(us)?Xe(us):void 0});function ps(e,t){t&&(e.patchPlugin_=Xe(Un),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Bn(e){Hn(e),e.drafts_.forEach(mc),e.drafts_=null}function Hn(e){e===Xt&&(Xt=e.parent_)}var fs=e=>Xt=hc(Xt,e);function mc(e){let t=e[X];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function hs(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];if(e!==void 0&&e!==r){r[X].modified_&&(Bn(t),ve(4)),se(e)&&(e=ms(t,e));let{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(r[X].base_,e,t)}else e=ms(t,r);return yc(t,e,!0),Bn(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==ys?e:void 0}function ms(e,t){if(Wr(t))return t;let r=t[X];if(!r)return Ur(t,e.handledSet_,e);if(!Kr(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(e);As(r,e)}return r.copy_}function yc(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&zr(t,r)}function bs(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Kr=(e,t)=>e.scope_===t,gc=[];function Es(e,t,r,n){let i=Ne(e),s=e.type_;if(n!==void 0&&In(i,n,s)===t){Ir(i,n,r,s);return}if(!e.draftLocations_){let a=e.draftLocations_=new Map;Fr(i,(l,c)=>{if(we(c)){let u=a.get(c)||[];u.push(l),a.set(c,u)}})}let o=e.draftLocations_.get(t)??gc;for(let a of o)Ir(i,a,r,s)}function xc(e,t,r){e.callbacks_.push(function(i){let s=t;if(!s||!Kr(s,i))return;i.mapSetPlugin_?.fixSetContents(s);let o=zn(s);Es(e,s.draft_??s,o,r),As(s,i)})}function As(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let i=n.getPath(e);i&&n.generatePatches_(e,i,t)}bs(e)}}function vc(e,t,r){let{scope_:n}=e;if(we(r)){let i=r[X];Kr(i,n)&&i.callbacks_.push(function(){Dr(e);let o=zn(i);Es(e,r,o,t)})}else se(r)&&e.callbacks_.push(function(){let s=Ne(e);e.type_===3?s.has(r)&&Ur(r,n.handledSet_,n):In(s,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Ur(In(e.copy_,t,e.type_),n.handledSet_,n)})}function Ur(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||we(e)||t.has(e)||!se(e)||Wr(e)||(t.add(e),Fr(e,(n,i)=>{if(we(i)){let s=i[X];if(Kr(s,r)){let o=zn(s);Ir(e,n,o,e.type_),bs(s)}}else se(i)&&Ur(i,t,r)})),e}function bc(e,t){let r=Vr(e),n={type_:r?1:0,scope_:t?t.scope_:vs(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=n,s=Br;r&&(i=[n],s=Zt);let{revoke:o,proxy:a}=Proxy.revocable(i,s);return n.draft_=a,n.revoke_=o,[a,n]}var Br={get(e,t){if(t===X)return e;let r=e.scope_.arrayMethodsPlugin_,n=e.type_===1&&typeof t=="string";if(n&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);let i=Ne(e);if(!Pn(i,t,e.type_))return Ac(e,i,t);let s=i[t];if(e.finalized_||!se(s)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&pc(t))return s;if(s===kn(e.base_,t)||Ec(e,t,s)){Dr(e);let o=e.type_===1?+t:t,a=Vn(e.scope_,s,e,o);return e.copy_[o]=a}return s},has(e,t){return t in Ne(e)},ownKeys(e){return Reflect.ownKeys(Ne(e))},set(e,t,r){let n=Ss(Ne(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let i=kn(Ne(e),t),s=i?.[X];if(s&&s.base_===r)return e.copy_[t]=r,e.assigned_.delete(t),!0;if(dc(r,i)&&(r!==void 0||Pn(e.base_,t,e.type_)))return!0;Dr(e),Fn(e)}return e.copy_[t]===r&&(r!==void 0||Pn(e.copy_,t,e.type_))||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),vc(e,t,r)),!0},deleteProperty(e,t){return Dr(e),kn(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Fn(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let r=Ne(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[Pr]:!0,[Mn]:e.type_!==1||t!=="length",[Mr]:n[Mr],[Yt]:r[t]}},defineProperty(){ve(11)},getPrototypeOf(e){return Ct(e.base_)},setPrototypeOf(){ve(12)}},Zt={};for(let e in Br){let t=Br[e];Zt[e]=function(){let r=arguments;return r[0]=r[0][0],t.apply(this,r)}}Zt.deleteProperty=function(e,t){return Zt.set.call(this,e,t,void 0)};Zt.set=function(e,t,r){return Br.set.call(this,e[0],t,r,e[0])};function kn(e,t){let r=e[X];return(r?Ne(r):e)[t]}function Ec(e,t,r){return e.type_!==1||!e.allIndicesReassigned_||!se(r)||r[X]?!1:e.baseRefs_.has(r)}function Ac(e,t,r){let n=Ss(t,r);return n?Yt in n?n[Yt]:n.get?.call(e.draft_):void 0}function Ss(e,t){if(!(t in e))return;let r=Ct(e);for(;r;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Ct(r)}}function Fn(e){e.modified_||(e.modified_=!0,e.parent_&&Fn(e.parent_))}function Dr(e){e.copy_||(e.assigned_=new Map,e.copy_=$n(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Sc=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,n)=>{if(_t(t)&&!_t(r)){let s=r;r=t;let o=this;return function(l=s,...c){return o.produce(l,u=>r.call(this,u,...c))}}_t(r)||ve(6),n!==void 0&&!_t(n)&&ve(7);let i;if(se(t)){let s=fs(this),o=Vn(s,t,void 0),a=!0;try{i=r(o),a=!1}finally{a?Bn(s):Hn(s)}return ps(s,n),hs(i,s)}else if(!t||!jn(t)){if(i=r(t),i===void 0&&(i=t),i===ys&&(i=void 0),this.autoFreeze_&&zr(i,!0),n){let s=[],o=[];Xe(Un).generateReplacementPatches_(t,i,{patches_:s,inversePatches_:o}),n(s,o)}return i}else ve(1,t)},this.produceWithPatches=(t,r)=>{if(_t(t))return(o,...a)=>this.produceWithPatches(o,l=>t(l,...a));let n,i;return[this.produce(t,r,(o,a)=>{n=o,i=a}),n,i]},Dn(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Dn(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Dn(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){se(e)||ve(8),we(e)&&(e=_s(e));let t=fs(this),r=Vn(t,e,void 0);return r[X].isManual_=!0,Hn(t),r}finishDraft(e,t){let r=e&&e[X];(!r||!r.isManual_)&&ve(9);let{scope_:n}=r;return ps(n,t),hs(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let i=t[r];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}r>-1&&(t=t.slice(r+1));let n=Xe(Un).applyPatches_;return we(e)?n(e,t):this.produce(e,i=>n(i,t))}};function Vn(e,t,r,n){let[i,s]=jr(t)?Xe($r).proxyMap_(t,r):Qt(t)?Xe($r).proxySet_(t,r):bc(t,r);return(r?.scope_??vs()).drafts_.push(i),s.callbacks_=r?.callbacks_??[],s.key_=n,r&&n!==void 0?xc(r,s,n):s.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(s);let{patchPlugin_:c}=l;s.modified_&&c&&c.generatePatches_(s,[],l)}),i}function _s(e){return we(e)||ve(10,e),Cs(e)}function Cs(e){if(!se(e)||Wr(e))return e;let t=e[X],r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=$n(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=$n(e,!0);let i=r;return Qt(r)&&(r=new Set),Fr(i,(s,o)=>{Ir(r,s,Cs(o))},n),t&&(t.finalized_=!1),r}var _c=globalThis.Iterator,Pd=typeof _c?.from=="function";var Cc=new Sc,Wn=Cc.produce;function ws(e){return({dispatch:r,getState:n})=>i=>s=>typeof s=="function"?s(r,n,e):i(s)}var Os=ws(),Ts=ws;var wc=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?qt:qt.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var Oc=e=>e&&typeof e.match=="function";function He(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(Oe(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>as(n)&&n.type===e,r}var Ds=class er extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,er.prototype)}static get[Symbol.species](){return er}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new er(...t[0].concat(this)):new er(...t.concat(this))}};function Rs(e){return se(e)?Wn(e,()=>{}):e}function Gr(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function Tc(e){return typeof e=="boolean"}var Rc=()=>function(t){let{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:s=!0}=t??{},o=new Ds;return r&&(Tc(r)?o.push(Os):o.push(Ts(r.extraArgument))),o},Lc="RTK_autoBatch";var Ls=e=>t=>{setTimeout(t,e)},Nc=(e,t)=>r=>{let n=!1,i,s,o=()=>{n||(n=!0,cancelAnimationFrame(i),clearTimeout(s),r())};i=e(o),s=setTimeout(o,t)},Pc=(e={type:"raf"})=>t=>(...r)=>{let n=t(...r),i=!0,s=!1,o=!1,a=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Nc(window.requestAnimationFrame,100):Ls(10):e.type==="callback"?e.queueNotification:Ls(e.timeout),c=()=>{o=!1,s&&(s=!1,a.forEach(u=>u()))};return Object.assign({},n,{subscribe(u){let d=()=>i&&u(),p=n.subscribe(d);return a.add(u),()=>{p(),a.delete(u)}},dispatch(u){try{return i=!u?.meta?.[Lc],s=!i,s&&(o||(o=!0,l(c))),n.dispatch(u)}finally{i=!0}}})},Dc=e=>function(r){let{autoBatch:n=!0}=r??{},i=new Ds(e);return n&&i.push(Pc(typeof n=="object"?n:void 0)),i};function ks(e){let t=Rc(),{reducer:r=void 0,middleware:n,devTools:i=!0,duplicateMiddlewareCheck:s=!0,preloadedState:o=void 0,enhancers:a=void 0}=e||{},l;if(typeof r=="function")l=r;else if(Lr(r))l=Nn(r);else throw new Error(Oe(1));let c;typeof n=="function"?c=n(t):c=t();let u=qt;i&&(u=wc({trace:!1,...typeof i=="object"&&i}));let d=os(...c),p=Dc(d),y=typeof a=="function"?a(p):p(),v=u(...y);return Ln(l,o,v)}function Ms(e){let t={},r=[],n,i={addCase(s,o){let a=typeof s=="string"?s:s.type;if(!a)throw new Error(Oe(28));if(a in t)throw new Error(Oe(29));return t[a]=o,i},addAsyncThunk(s,o){return o.pending&&(t[s.pending.type]=o.pending),o.rejected&&(t[s.rejected.type]=o.rejected),o.fulfilled&&(t[s.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:s.settled,reducer:o.settled}),i},addMatcher(s,o){return r.push({matcher:s,reducer:o}),i},addDefaultCase(s){return n=s,i}};return e(i),[t,r,n]}function kc(e){return typeof e=="function"}function Mc(e,t){let[r,n,i]=Ms(t),s;if(kc(e))s=()=>Rs(e());else{let a=Rs(e);s=()=>a}function o(a=s(),l){let c=[r[l.type],...n.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[i]),c.reduce((u,d)=>{if(d)if(we(u)){let p=d(u,l);return p===void 0?u:p}else{if(se(u))return Wn(u,p=>d(p,l));{let p=d(u,l);if(p===void 0){if(u===null)return u;throw new Error(Oe(9))}return p}}return u},a)}return o.getInitialState=s,o}var Ic=(e,t)=>Oc(e)?e.match(t):e(t);function $c(...e){return t=>e.some(r=>Ic(r,t))}var Uc="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Bc=(e=21)=>{let t="",r=e;for(;r--;)t+=Uc[Math.random()*64|0];return t},Hc=["name","message","stack","code"],Kn=class{payload;meta;_type;constructor(e,t){this.payload=e,this.meta=t}},Ns=class{payload;meta;_type;constructor(e,t){this.payload=e,this.meta=t}},Fc=e=>{if(typeof e=="object"&&e!==null){let t={};for(let r of Hc)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},Ps="External signal was aborted",Vc=(()=>{function e(t,r,n){let i=He(t+"/fulfilled",(l,c,u,d)=>({payload:l,meta:{...d||{},arg:u,requestId:c,requestStatus:"fulfilled"}})),s=He(t+"/pending",(l,c,u)=>({payload:void 0,meta:{...u||{},arg:c,requestId:l,requestStatus:"pending"}})),o=He(t+"/rejected",(l,c,u,d,p)=>({payload:d,error:(n&&n.serializeError||Fc)(l||"Rejected"),meta:{...p||{},arg:u,requestId:c,rejectedWithValue:d!==void 0,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:c}={}){return(u,d,p)=>{let y=n?.idGenerator?n.idGenerator(l):Bc(),v=new AbortController,A,x;function _(b){x=b,v.abort()}c&&(c.aborted?_(Ps):c.addEventListener("abort",()=>_(Ps),{once:!0}));let N=(async function(){let b;try{let E=n?.condition?.(l,{getState:d,extra:p});if(zc(E)&&(E=await E),E===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};if(v.signal.aborted)throw{name:"AbortError",message:x||"Aborted"};let D=new Promise((R,z)=>{A=()=>{z({name:"AbortError",message:x||"Aborted"})},v.signal.addEventListener("abort",A,{once:!0})});u(s(y,l,n?.getPendingMeta?.({requestId:y,arg:l},{getState:d,extra:p}))),b=await Promise.race([D,Promise.resolve(r(l,{dispatch:u,getState:d,extra:p,requestId:y,signal:v.signal,abort:_,rejectWithValue:((R,z)=>new Kn(R,z)),fulfillWithValue:((R,z)=>new Ns(R,z))})).then(R=>{if(R instanceof Kn)throw R;return R instanceof Ns?i(R.payload,y,l,R.meta):i(R,y,l)})])}catch(E){b=E instanceof Kn?o(null,y,l,E.payload,E.meta):o(E,y,l)}finally{A&&v.signal.removeEventListener("abort",A)}return n&&!n.dispatchConditionRejection&&o.match(b)&&b.meta.condition||u(b),b})();return Object.assign(N,{abort:_,requestId:y,arg:l,unwrap(){return N.then(jc)}})}}return Object.assign(a,{pending:s,rejected:o,fulfilled:i,settled:$c(o,i),typePrefix:t})}return e.withTypes=()=>e,e})();function jc(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function zc(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Is=Symbol.for("rtk-slice-createasyncthunk"),Hd={[Is]:Vc};function Wc(e,t){return`${e}/${t}`}function Kc({creators:e}={}){let t=e?.asyncThunk?.[Is];return function(n){let{name:i,reducerPath:s=i}=n;if(!i)throw new Error(Oe(11));typeof process<"u";let o=(typeof n.reducers=="function"?n.reducers(qc()):n.reducers)||{},a=Object.keys(o),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(b,E){let D=typeof b=="string"?b:b.type;if(!D)throw new Error(Oe(12));if(D in l.sliceCaseReducersByType)throw new Error(Oe(13));return l.sliceCaseReducersByType[D]=E,c},addMatcher(b,E){return l.sliceMatchers.push({matcher:b,reducer:E}),c},exposeAction(b,E){return l.actionCreators[b]=E,c},exposeCaseReducer(b,E){return l.sliceCaseReducersByName[b]=E,c}};a.forEach(b=>{let E=o[b],D={reducerName:b,type:Wc(i,b),createNotation:typeof n.reducers=="function"};Xc(E)?Jc(D,E,c,t):Yc(D,E,c)});function u(){let[b={},E=[],D=void 0]=typeof n.extraReducers=="function"?Ms(n.extraReducers):[n.extraReducers],R={...b,...l.sliceCaseReducersByType};return Mc(n.initialState,z=>{for(let Y in R)z.addCase(Y,R[Y]);for(let Y of l.sliceMatchers)z.addMatcher(Y.matcher,Y.reducer);for(let Y of E)z.addMatcher(Y.matcher,Y.reducer);D&&z.addDefaultCase(D)})}let d=b=>b,p=new Map,y=new WeakMap,v;function A(b,E){return v||(v=u()),v(b,E)}function x(){return v||(v=u()),v.getInitialState()}function _(b,E=!1){function D(z){let Y=z[b];return typeof Y>"u"&&E&&(Y=Gr(y,D,x)),Y}function R(z=d){return Gr(Gr(p,E,()=>new WeakMap),z,()=>{let Y={};for(let[Ar,ce]of Object.entries(n.selectors??{}))Y[Ar]=Gc(ce,z,()=>Gr(y,z,x),E);return Y})}return{reducerPath:b,getSelectors:R,get selectors(){return R(D)},selectSlice:D}}let N={name:i,reducer:A,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:x,..._(s),injectInto(b,{reducerPath:E,...D}={}){let R=E??s;return b.inject({reducerPath:R,reducer:A},D),{...N,..._(R,!0)}}};return N}}function Gc(e,t,r,n){function i(s,...o){let a=t(s);return typeof a>"u"&&n&&(a=r()),e(a,...o)}return i.unwrapped=e,i}var $s=Kc();function qc(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function Yc({type:e,reducerName:t,createNotation:r},n,i){let s,o;if("reducer"in n){if(r&&!Zc(n))throw new Error(Oe(17));s=n.reducer,o=n.prepare}else s=n;i.addCase(e,s).exposeCaseReducer(t,s).exposeAction(t,o?He(e,o):He(e))}function Xc(e){return e._reducerDefinitionType==="asyncThunk"}function Zc(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Jc({type:e,reducerName:t},r,n,i){if(!i)throw new Error(Oe(18));let{payloadCreator:s,fulfilled:o,pending:a,rejected:l,settled:c,options:u}=r,d=i(e,s,u);n.exposeAction(t,d),o&&n.addCase(d.fulfilled,o),a&&n.addCase(d.pending,a),l&&n.addCase(d.rejected,l),c&&n.addMatcher(d.settled,c),n.exposeCaseReducer(t,{fulfilled:o||qr,pending:a||qr,rejected:l||qr,settled:c||qr})}function qr(){}var Us="listener",Bs="completed",Hs="cancelled",Fd=`task-${Hs}`,Vd=`task-${Bs}`,jd=`${Us}-${Hs}`,zd=`${Us}-${Bs}`;var{assign:Fs}=Object;var Gn="listenerMiddleware";var Qc=Fs(He(`${Gn}/add`),{withTypes:()=>Qc}),Wd=He(`${Gn}/removeAll`),eu=Fs(He(`${Gn}/remove`),{withTypes:()=>eu});function Oe(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var tu=Sr(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,n,i){this.eventBus.addEventListener(r,n,i)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,i){this.eventBus.removeEventListener(r,n,i)}}}),Yr=class extends tu(Object){};window.ftReduxStores||(window.ftReduxStores={});var Vs=class e extends Yr{static get(t){var r;let n=typeof t=="string"?t:t.name,i=typeof t=="string"?void 0:t,s=window.ftReduxStores[n];if(Tr(s))return s;if(i==null)return;let o=$s({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),a=ks({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=Wt(o.getInitialState());for(let d of c.keeping)u[d]=(l??u)[d];return u}else if(typeof c.type=="string"&&c.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...c.overwrites};return o.reducer(l,c)}});return window.ftReduxStores[i.name]=new e(o,a,i.eventBus,i.deprecatedKeys)}constructor(t,r,n,i){super(),this.reduxSlice=t,this.reduxStore=r,this.deprecatedKeys=i,this.isFtReduxStore=!0,this.commands=new _r,this.injectInto=(o,a)=>this.reduxSlice.injectInto(o,a),this.selectSlice=o=>this.reduxSlice.selectSlice(o);let s=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,a,l)=>{let c=a,u=o[c];return u?(...d)=>{let p=u(...d.map(s));return this.reduxStore.dispatch(p),p}:d=>{let p=c,y=this.getState()[p];Et(y,d)||this.setState({[p]:s(d)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...t){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:t})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};var Xr=class{static format(t,r,n,i,s){return window.moment?window.moment(t).locale(r).format(this.getMomentDateFormat(n,i,!!s)):this.getIntlDateTime(t,r,n,i,!!s)}static getMomentDateFormat(t,r,n){return n?"LT":t?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(t,r,n,i,s){let o=typeof t=="string"?new Date(t):t,a=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(o),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(o);return s?l:i?`${a} ${l}`:a}static getTimezoneAsString(){let t=n=>String(Math.floor(n)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${t(Math.abs(r)/60)}:${t(Math.abs(r)%60)}`}};var Zr=h(C()),ru="ft-app-info",Ze=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Ze.eventName="authentication-change";var tr=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};tr.eventName="ui-locale-changed";var nu={session:(e,t)=>{(0,Zr.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>w.dispatchEvent(new Ze(t.payload)),0))}},w=Zr.FtReduxStore.get({name:ru,reducers:nu,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1,stickyFilters:void 0}});var js=h(C()),Jr=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Ep=(0,js.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(w)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var i,s;return((s=(i=this.metadataDescriptors.find(a=>a.key===n))===null||i===void 0?void 0:i.date)!==null&&s!==void 0?s:!1)?a=>Xr.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Jr([(0,qn.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),Jr([(0,qn.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),Jr([Tn({store:w.name,selector:r=>{var n,i;return(i=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],t.prototype,"metadataDescriptors",void 0),Jr([Tn({store:w.name})],t.prototype,"uiLocale",void 0),t});var zs;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(zs||(zs={}));var Ws;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Ws||(Ws={}));var Ks;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(Ks||(Ks={}));var Gs;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(Gs||(Gs={}));var qs;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(qs||(qs={}));var Ys;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(Ys||(Ys={}));var Xs;(function(e){e.PUBLISHED="PUBLISHED",e.AI="AI"})(Xs||(Xs={}));var Zs;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.CHATBOT__RATE="CHATBOT__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",e.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",e.AI__RATE="AI__RATE",e.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",e.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(Zs||(Zs={}));var Js;(function(e){e.STANDARD="STANDARD",e.STRUCTURAL="STRUCTURAL"})(Js||(Js={}));var Qs;(function(e){e.METADATA_FILTER="METADATA_FILTER",e.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(Qs||(Qs={}));var eo;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER",e.DOC_DIFF="DOC_DIFF"})(eo||(eo={}));var to;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT",e.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",e.LINK_PREVIEW="LINK_PREVIEW",e.UD_VIEWER="UD_VIEWER",e.ASSET_VIEWER="ASSET_VIEWER"})(to||(to={}));var ro;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(ro||(ro={}));var no;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(no||(no={}));var io;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(io||(io={}));var so;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(so||(so={}));var oo;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(oo||(oo={}));var ao;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(ao||(ao={}));var lo;(function(e){e.ASC="ASC",e.DESC="DESC"})(lo||(lo={}));var co;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(co||(co={}));var uo;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(uo||(uo={}));var po;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(po||(po={}));var fo;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(fo||(fo={}));var ho;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(ho||(ho={}));var mo;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(mo||(mo={}));var yo;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(yo||(yo={}));var go;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(go||(go={}));var xo;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(xo||(xo={}));var H;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(H||(H={}));var ue;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(ue||(ue={}));var vo;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(vo||(vo={}));var bo;(function(e){e.UNREACHABLE="UNREACHABLE",e.UNAUTHORIZED="UNAUTHORIZED",e.FORBIDDEN="FORBIDDEN",e.INCOMPATIBLE="INCOMPATIBLE",e.FAILED="FAILED",e.OK="OK"})(bo||(bo={}));var Eo;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(Eo||(Eo={}));var Ao;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(Ao||(Ao={}));var So;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(So||(So={}));var _o;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.SEMANTIC_SEARCH="SEMANTIC_SEARCH",e.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",e.DOCUMENTATION="DOCUMENTATION",e.OTHER="OTHER"})(_o||(_o={}));var Co;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(Co||(Co={}));var wo;(function(e){e.CHAT="CHAT",e.COMPLETION="COMPLETION",e.RAG="RAG",e.AGENT="AGENT"})(wo||(wo={}));var Oo;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(Oo||(Oo={}));var To;(function(e){e.IN_PROGRESS="IN_PROGRESS",e.ERROR="ERROR",e.DONE="DONE"})(To||(To={}));var Ro;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(Ro||(Ro={}));var Lo;(function(e){e.SOURCES="SOURCES",e.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",e.VOCABULARIES="VOCABULARIES",e.METADATA="METADATA",e.PRETTY_URL="PRETTY_URL",e.ACCESS_RULE="ACCESS_RULE",e.DESIGNED_PAGES="DESIGNED_PAGES",e.THEME_STUDIO="THEME_STUDIO",e.PORTAL_GENERAL="PORTAL_GENERAL",e.ASSETS="ASSETS",e.CODE_LIBRARY="CODE_LIBRARY",e.THEME="THEME",e.CONTENT_STYLES="CONTENT_STYLES",e.HOMEPAGE="HOMEPAGE",e.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",e.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",e.PORTAL_METADATA="PORTAL_METADATA",e.LANGUAGES="LANGUAGES",e.PRINT_TEMPLATES="PRINT_TEMPLATES",e.OFFLINE="OFFLINE",e.CUSTOM_JS="CUSTOM_JS",e.CONFIDENTIALITY="CONFIDENTIALITY",e.NOTIFICATIONS="NOTIFICATIONS"})(Lo||(Lo={}));var No;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(No||(No={}));var iu={[H.PERSONAL_BOOK_SHARE_USER]:[H.PERSONAL_BOOK_USER],[H.HTML_EXPORT_USER]:[H.PERSONAL_BOOK_USER],[H.PDF_EXPORT_USER]:[H.PERSONAL_BOOK_USER],[H.KHUB_ADMIN]:[H.CONTENT_PUBLISHER],[H.ADMIN]:[H.KHUB_ADMIN,H.USERS_ADMIN,H.PORTAL_ADMIN,H.BEHAVIOR_DATA_USER],[H.GENERATIVE_AI_EXPORT_USER]:[H.GENERATIVE_AI_USER]};function Po(e,t){return e===t||(iu[e]??[]).some(r=>Po(r,t))}function Yn(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>Po(n,t))}function Do(e,...t){return e==null?!1:t.some(r=>Yn(e,r))}var nn=h(C());var Xn=h(C());var Je=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:n}=w.getState(),i=t??n;if(r&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,i,!0)}static await(t){return new Promise(r=>{let n=e.get(t);if(n)r(n);else{let i=w.subscribe(()=>{n=e.get(t),n&&(i(),r(n))})}})}};var wt=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:Je.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Je.await()}};var oe=class extends wt{constructor(t=!0,r){var n;super(r),this.sortObjectFields=(s,o)=>typeof o!="object"||o==null||Array.isArray(o)?o:Object.fromEntries(Object.entries(o).sort(([a],[l])=>a.localeCompare(l)));let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new Xn.CacheRegistry,this.cache=t?i.commonCache:new Xn.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var Qr=class extends oe{async listMySearches(){let{session:t}=w.getState();return Yn(t,H.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),300*1e3):[]}};var en=class extends oe{async listMyBookmarks(){let t=w.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),300*1e3):[]}};var tn=class extends oe{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(t){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${t}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(t){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${t}`),this.CACHE_DURATION)}isAuthenticated(){let t=w.getState().session;return!!t?.sessionAuthenticated}};var rn=class extends oe{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let t=w.getState().session;return!!t?.sessionAuthenticated}};var su="ft-user-assets",ou={setAssetCount:(e,t)=>{let{userAssetType:r,count:n}=t.payload.assetCount;e.assetCounts.allAsset[r]=n},clearAssetCount:e=>{Object.values(ue).forEach(t=>{e.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(e,t)=>{let r=t.payload.mapId;e.assetCounts.bookmarkByMap[r]=t.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}},addAsset:(e,t)=>{let{assetType:r,mapId:n,asset:i}=t.payload;Jn(e,r,[...Zn(e,r),i]),ko(e,r,1,n),Mo(e,i)},editAsset:(e,t)=>{let{assetType:r,asset:n}=t.payload;Jn(e,r,Zn(e,r).map(i=>i.id===n.id?n:i)),Mo(e,n)},removeAsset:(e,t)=>{let{assetType:r,mapId:n,assetId:i}=t.payload;Jn(e,r,Zn(e,r).filter(s=>s.id!==i)),ko(e,r,-1,n)}},Io={[ue.SEARCHES]:"savedSearches",[ue.BOOKMARKS]:"bookmarks",[ue.BOOKS]:void 0,[ue.COLLECTIONS]:void 0},Zn=(e,t)=>{var r;let n=Io[t];return n?(r=e[n])!==null&&r!==void 0?r:[]:[]},Jn=(e,t,r)=>{let n=Io[t];n&&(e[n]=r)},ko=(e,t,r,n)=>{let i=e.assetCounts.allAsset[t];if(i!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,i+r),t===ue.BOOKMARKS&&n)){let s=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,s+r)}},Mo=(e,t)=>{let r=e.assetLabels.map(i=>i.title),n=t.labels.filter(i=>!r.includes(i)).map(i=>({title:i}));e.assetLabels.push(...n)},J=nn.FtReduxStore.get({name:su,reducers:ou,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(ue).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Qn=class{constructor(t=new tn,r=new rn){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=w.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new en,this.savedSearchesService=new Qr,w.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=w.getState();(0,nn.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),J.actions.clearAssetCount(),J.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),J.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),J.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();J.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();J.actions.assetLabels(t)}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&J.getState().assetCounts.allAsset[t]!==r.count&&J.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&J.getState().assetCounts.bookmarkByMap[t]!==r.count&&J.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(J.getState().assetCounts.bookmarkByMap).length!==0;t===ue.BOOKMARKS&&r&&J.actions.clearBookmarkCountByMap(),J.getState().assetCounts.allAsset[t]!==void 0&&await this.loadAssetCount(t)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let r=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;J.actions.bookmarks(r)}}},au=new Qn;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=au);var ei=class{addCommand(t,r=!1){w.commands.add(t,r)}consumeCommand(t){return w.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new ei;var de=h(C());var $o,Ot=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},lu=Symbol("clearAfterUnitTest"),sn=class extends(0,de.withEventBus)(oe){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[$o]=()=>{this.defaultMessages={},this.cache=new de.CacheRegistry,this.listeners={}},this.currentUiLocale=w.getState().uiLocale,w.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=w.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let r=t.name.toLowerCase();this.cache.setFinal(r,t),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,r){var n;if(t=t.toLowerCase(),r&&Object.keys(r).length>0){let i={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...r};(0,de.deepEqual)(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var r,n;return this.fetchContext(t),(n=(r=this.cache.getNow(t))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,r){let n=t.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(t,r,...n){var i;let s=t.toLowerCase(),o=this.resolveContext(s);return new de.ParametrizedLabelResolver((i=this.defaultMessages[s])!==null&&i!==void 0?i:{},o).resolve(r,...n)}async fetchContext(t){let r=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),r&&await this.notify(t)}catch(i){!(i instanceof de.CanceledPromiseError)&&r&&console.error(i)}return n}subscribe(t,r){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(r),()=>{var i;return(i=this.listeners[t])===null||i===void 0?void 0:i.delete(r)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new Ot({loadedContexts:t})),this.dispatchEvent(new Ot({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new Ot({loadedContexts:[t]})),this.dispatchEvent(new Ot({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,de.delay)(0).then(()=>n()).catch(()=>null)))}};$o=lu;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends sn{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends sn{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Tt=window.FluidTopicsI18nService,on=window.FluidTopicsCustomI18nService;var Uo=h(C()),ti=class{highlightHtml(t,r,n){(0,Uo.highlightHtml)(t,r,n)}};window.FluidTopicsHighlightHtmlService=new ti;var Bo=h(C());var ri=class{isDate(t){var r,n,i,s;return(s=(n=((i=(r=w.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(a=>a.key===t))===null||n===void 0?void 0:n.date)!==null&&s!==void 0?s:!1}format(t,r){var n,i,s,o;if(t==null)return"";try{return Bo.DateFormatter.format(t,(n=r?.locale)!==null&&n!==void 0?n:w.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(s=r?.withTime)!==null&&s!==void 0?s:!1,(o=r?.onlyTime)!==null&&o!==void 0?o:!1)}catch(a){throw console.error(`Date ${JSON.stringify(t)} is not valid`,a),a}}};window.FluidTopicsDateService=new ri;var Ho=h(C());var rr=class{static get(t,r,{baseUrl:n,localesConfiguration:i,availableContentLocales:s}=w.getState()){var o;if(r==="all"&&i?.allLanguagesAllowed)r=void 0;else if(!r||s.length>0&&!s.some(a=>a.lang===r)){let a=i?.defaultLocales.defaultContentLocale;r=a?`${a.lang}-${a.region}`:(o=s[0])===null||o===void 0?void 0:o.lang}return new Ho.SearchPlaceConverter(n,t??20,i?.allLanguagesAllowed,r,s)}};var ni=class{urlToSearchRequest(t){return rr.get().parse(t)}searchRequestToUrl(t){return rr.get().serialize(t)}};window.FluidTopicsUrlService=new ni;var Pe=h(C());var Qe=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{nextLocation:t}})}};Qe.eventName="before-location-change";var et=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};et.eventName="change";var ii=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let r=sessionStorage.getItem(this.itemName(t));return r?JSON.parse(r):void 0}set(t,r){sessionStorage.setItem(this.itemName(t),JSON.stringify(r))}},Fo=new ii;var an=class e extends Pe.WithEventBus{static build(){return new e(window.history,Fo,()=>window.location,!1)}constructor(t,r,n,i){var s,o;super(),this.history=t,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(o=(s=t.state)===null||s===void 0?void 0:s.index)!==null&&o!==void 0?o:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}setCurrentState(t,r=!1){let n=r&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,Pe.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new et(this.currentItem())),0)}installProxies(){let t=r=>(n,i,[s,o,a])=>{let l=new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin!=="null"?window.location.origin:void 0),c=new Qe(l);this.dispatchEvent(c);let u=r(),d={...u===this.currentIndex?this.currentState:void 0,...s,index:u,href:c.detail.nextLocation.href};n.apply(i,[d,o,d.href]),this.setCurrentState(d,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(t){for(let r=this.history.length-1;r>=0;r--)t?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(t){var r;let n={...this.buildCurrentState(),...t,index:this.currentIndex,title:(r=t?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addBeforeLocationChangeListener(t){this.addEventListener(Qe.eventName,t)}removeBeforeLocationChangeListener(t){this.removeEventListener(Qe.eventName,t)}addHistoryChangeListener(t){this.addEventListener(et.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(et.eventName,t)}currentItem(){return(0,Pe.deepCopy)(this.currentState)}back(){let t=this.previousDifferentMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Pe.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(t){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,Pe.deepCopy)(r.find(n=>t(n)))}previousDifferentMajorPosition(){let t=this.currentIndex>0?this.currentIndex-1:0;for(;t>0&&!this.isDifferentMajorState(t);)t--;return t}forward(){let t=this.nextMajorPosition();t&&t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){let t=this.nextMajorPosition();if(t)return(0,Pe.deepCopy)(this.states[t])}nextMajorPosition(){let t=this.currentIndex;if(!(t>=this.states.length)){do t++;while(t<this.states.length&&!this.isDifferentMajorState(t));return this.getHigherPositionInTheSameState(t)}}getHigherPositionInTheSameState(t){var r;let n=(r=this.states[t])===null||r===void 0?void 0:r.majorStateId;if(!n)return t;let i=t,s=t+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,n);)this.hasState(s)&&(i=s),s++;return i}buildCurrentState(){var t,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&r!==void 0?r:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,r){var n;if(!this.hasState(t))return!1;let i=r??this.currentState.majorStateId,s=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return s==null||s!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=an.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:e=>window.FluidTopicsInternalHistoryService.backwardItemMatching(e),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e),addBeforeLocationChangeListener:e=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(e),removeBeforeLocationChangeListener:e=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(e)});var Vo=h(B());var jo=Vo.css`
173
- `;var Ko=h(B()),Q=h(ee()),rt=h(C());var Te=h(C());function zo(e,t){let{authenticationRequired:r,session:n}=w.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(t):e()}var ln=class extends wt{async updateUiLocale(t){return(await this.awaitApi).updateUiLocale(t)}};var si=class e extends Te.FtStateManager{static build(t){return new e(w,t)}constructor(t,r){super(),this.store=t,this.cache=new Te.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new ln,this.knownContexts=new Te.AbstractRegistry,this.knownCustomComponents=new Te.AbstractRegistry,this.cleanSessionDebouncer=new Te.Debouncer,this.reloadConfiguration=()=>{var n;(n=this.cache)===null||n===void 0||n.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new Te.Debouncer(500),this.apiProvider=r??(()=>Je.get())}setWithManualResources(t){this.withManualResources=t,this.updateIfNeeded()}addListeners(){this.store.addEventListener(Ze.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(Ze.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let t=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});this.setSession(t)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var t;let r=await this.cache.get("availableContentLocales",()=>zo(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((t=r.contentLocales)!==null&&t!==void 0?t:[])}setStickyFilters(t){this.store.actions.stickyFilters(t)}setBaseUrl(t){this.store.actions.baseUrl(t),window.fluidTopicsBaseUrl=t}setTenantId(t){this.store.actions.tenantId(t)}setApiIntegrationIdentifier(t){this.store.actions.apiIntegrationIdentifier(t)}setApiIntegrationAppVersion(t){this.store.actions.apiIntegrationAppVersion(t)}setUiLocale(t){this.store.actions.uiLocale(t)}setLocalesConfiguration(t){this.store.actions.localesConfiguration(t),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(t){this.store.actions.availableContentLocales(t),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(t,r){this.userLocaleService.updateUiLocale({uiLocale:t,contentLocale:r}).then(n=>{n.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new tr(n)))}).catch(()=>{})}setMetadataConfiguration(t){this.store.actions.metadataConfiguration(t),setTimeout(()=>this.updateIfNeeded())}setNoCustom(t){this.store.actions.noCustom(t)}setEditorMode(t){this.store.actions.editorMode(t)}setNoCustomComponent(t){this.store.actions.noCustomComponent(t)}setNoCustomCode(t){this.store.actions.noCustomCode(t)}setSession(t){this.store.actions.session(t),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(t){this.store.actions.openExternalDocumentInNewTab(t)}setNavigatorOnline(t){this.store.actions.navigatorOnline(t)}setForcedOffline(t){this.store.actions.forcedOffline(t)}setAuthenticationRequired(t){this.store.actions.authenticationRequired(t)}userHasAnyRole(...t){return Do(w.getState().session,...t)}},Wo=si.build();var tt=class extends Event{constructor(t,r,n,i){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=r,this.callback=n,this.subscribe=i??!1}};var nr=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=t=>{let r=this.pendingContextRequests.get(t.context);if(r===void 0)return;this.pendingContextRequests.delete(t.context);let{requests:n}=r;for(let{elementRef:i,callbackRef:s}of n){let o=i.deref(),a=s.deref();o===void 0||a===void 0||o.dispatchEvent(new tt(t.context,o,a,!0))}},this.onContextRequest=t=>{if(t.subscribe!==!0)return;let r=t.contextTarget??t.composedPath()[0],n=t.callback,i=this.pendingContextRequests.get(t.context);i===void 0&&this.pendingContextRequests.set(t.context,i={callbacks:new WeakMap,requests:[]});let s=i.callbacks.get(r);s===void 0&&i.callbacks.set(r,s=new WeakSet),s.has(n)||(s.add(n),i.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(n)}))}}attach(t){t.addEventListener("context-request",this.onContextRequest),t.addEventListener("context-provider",this.onContextProvider)}detach(t){t.removeEventListener("context-request",this.onContextRequest),t.removeEventListener("context-provider",this.onContextProvider)}};var K=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},I=class extends rt.FtLitElementRedux{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.noCustomCode=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=Wo,this.contextRoot=new nr}render(){return Ko.html`
172
+ `;var Gn=h(Q());var qi=h(Q(),1);var Tn=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)},ec=e=>({fromAttribute:t=>{if(t==null)return zt(e);try{return JSON.parse(t)}catch{return zt(e)}},toAttribute:t=>JSON.stringify(t)});function Yi(e,t){return(0,qi.property)({type:Object,converter:ec(e),hasChanged:Wt,...t??{}})}function tc(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let r,n;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!bt(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!bt(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let i=o=>Object.keys(o).filter(a=>o[a]!=null),s=i(e);if(r=s.length,r!==i(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[n]))return!1;for(n=r;n--!==0;){let o=s[n];if(!bt(e[o],t[o]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function bt(e,t){try{return tc(e,t)}catch{return!1}}function Wt(e,t){return!bt(e,t)}function zt(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function Sr(e,t){let r=n=>n[e]===!0;return n=>{if(r(n))return n;let i=t(n);return i[e]=!0,i}}var Xi=h(Q(),1);var On=e=>{let t=e??{};return(r,n)=>{var i;let s={hasChanged:Wt,attribute:!1,...t};(0,Xi.property)(s)(r,n);let o=r.constructor;o.reduxProperties=new Map(o.reduxProperties),o.reduxProperties.set(n,{selector:(i=t.selector)!==null&&i!==void 0?i:(a=>a[n]),store:t.store})}};var _r=class{constructor(){this.queue=[]}add(t,r=!1){r&&this.clear(t.type),this.queue.push(t)}consume(t){let r=this.queue.find(n=>n.type===t);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(t){typeof t=="string"?this.queue=this.queue.filter(r=>r.type!==t):this.queue=this.queue.filter(r=>!t.test(r.type))}};var Ge=h(Q(),1);var Cr=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,r){return this.callbacks=[t],this.debounce(r)}queue(t,r){return this.callbacks.push(t),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let n=[...this.callbacks];this.callbacks=[];let i=(t=this.rejectPromise)!==null&&t!==void 0?t:(()=>null),s=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let o of n)try{await o()}catch(a){i(a);return}s(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Tr=h(U(),1);var wr=class extends Tr.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let t=this.scopedRegistryConstructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,t.defineScopedElements(t.elementDefinitions));let r={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return(0,Tr.adoptStyles)(n,t.elementStyles),n}static canDefineScopedElement(t){return!!this.registry&&!this.registry.get(t)}static defineScopedElements(t){Object.entries(t).forEach(([r,n])=>this.defineScopedElement(r,n))}static defineScopedElement(t,r){Tn(t)(r),this.canDefineScopedElement(t)&&this.registry.define(t,r)}canDefineScopedElement(t){return this.scopedRegistryConstructor.canDefineScopedElement(t)}defineScopedElements(t){this.scopedRegistryConstructor.defineScopedElements(t)}defineScopedElement(t,r){this.scopedRegistryConstructor.defineScopedElement(t,r)}};function Zi(e,t,...r){var n;let i=e.querySelector(t);for(let s of r)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(s);return i}var At=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},ts,Ji=Symbol("constructorPrototype"),Qi=Symbol("constructorName"),rs=Symbol("exportpartsDebouncer"),es=Symbol("dynamicDependenciesLoaded"),Et=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};Et.eventName="exportparts-updated";var Ce=class extends wr{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[ts]=new Cr(5),this.scheduleExportpartsUpdate=()=>{var t,r,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[rs].run(()=>{var i,s;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((s=this.exportpartsPrefixes)===null||s===void 0?void 0:s.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Qi]=this.constructor.name,this[Ji]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Qi]&&Object.setPrototypeOf(this,this[Ji])}connectedCallback(){var t;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let r=this.constructor;r[es]||(r[es]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(Et.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(Et.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate(),t.has("exportparts")&&this.dispatchEvent(new Et)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:i}=this.elementToFocus;if(n!=null){let s=[...i??[],n];r=Zi(this.shadowRoot,...s)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,n,i;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(s=>s.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(s){console.error(s,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let s=document.createElement("style");s.classList.add("ft-lit-element--custom-stylesheet"),s.innerHTML=this.customStylesheet,this.shadowRoot.append(s)}}setExportpartsAttribute(t){var r,n,i,s,o,a;let l=p=>p!=null&&p.trim().length>0,c=t.filter(l).map(p=>p.trim());if(c.length===0){this.exportparts=void 0;return}let d=new Set;for(let p of(s=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&s!==void 0?s:[]){let y=(o=(n=p.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&o!==void 0?o:[],v=(a=(i=p.getAttribute("exportparts"))===null||i===void 0?void 0:i.split(",").map(x=>x.split(":")[1]))!==null&&a!==void 0?a:[],C=[...y,...v].filter(l).map(x=>x.trim());for(let x of C)d.add(x)}if(d.size===0){this.exportparts=void 0;return}let u=[...d.values()].flatMap(p=>c.map(y=>`${p}:${y}--${p}`));this.exportparts=[...this.part,...u].join(", ")}};ts=rs;At([(0,Ge.property)()],Ce.prototype,"exportpartsPrefix",void 0);At([Yi([])],Ce.prototype,"exportpartsPrefixes",void 0);At([(0,Ge.property)({reflect:!0})],Ce.prototype,"exportparts",void 0);At([(0,Ge.property)()],Ce.prototype,"customStylesheet",void 0);At([(0,Ge.property)()],Ce.prototype,"elementToFocus",void 0);At([(0,Ge.state)()],Ce.prototype,"useAdoptedStyleSheets",void 0);function Or(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Kt=Symbol("internalReduxEventsUnsubscribers"),Be=Symbol("internalStoresUnsubscribers"),qe=Symbol("internalStores"),rc=Sr(Symbol("withRedux"),function(e){var t,r,n;class i extends e{constructor(){super(...arguments),this[t]=new Map,this[r]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(o){super.willUpdate(o),[...this.reduxConstructor.reduxReactiveProperties].some(a=>o.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[qe].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[qe].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[qe].get(o)}addStore(o,a){var l;a=(l=a??o.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[qe].set(a,o),this.subscribeToStore(a,o),this.updateFromStores()}removeStore(o){let a=typeof o=="string"?o:o.name;this.unsubscribeFromStore(a),this[qe].delete(a)}setupStores(){this.unsubscribeFromStores(),this[qe].forEach((o,a)=>this.subscribeToStore(a,o)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((o,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let c=this.getStore(o.store);c&&(o.store?this[Be].has(o.store):this[Be].size>0)&&(this[a]=o.selector(c.getState(),this))}})}subscribeToStore(o,a){var l,c;this[Be].set(o,a.subscribe(()=>this.updateFromStores())),this[Kt].set(o,[]),Or(a)&&(!((l=a.deprecatedKeys)===null||l===void 0)&&l.length&&this.reduxConstructor.reduxProperties.forEach((d,u)=>{this.getStore(d.store)===a&&a.deprecatedKeys.includes(u)&&console.warn("Element",this,"is subscribed to deprecated key",u,"in store",a.name)}),a.eventBus&&((c=this.reduxConstructor.reduxEventListeners)===null||c===void 0||c.forEach((d,u)=>{if(typeof this[u]=="function"&&(!d.store||a.name===d.store)){let p=y=>this[u](y);a.addEventListener(d.eventName,p),this[Kt].get(o).push(()=>a.removeEventListener(d.eventName,p))}}))),this.onStoreAvailable(o)}unsubscribeFromStores(){this[Be].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[Be].has(o)&&this[Be].get(o)(),this[Be].delete(o),(a=this[Kt].get(o))===null||a===void 0||a.forEach(l=>l()),this[Kt].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=Be,r=qe,n=Kt,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),ns=class extends rc(Ce){};function K(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 nc=typeof Symbol=="function"&&Symbol.observable||"@@observable",is=nc,Rn=()=>Math.random().toString(36).substring(7).split("").join("."),ic={INIT:`@@redux/INIT${Rn()}`,REPLACE:`@@redux/REPLACE${Rn()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Rn()}`},Rr=ic;function Lr(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Ln(e,t,r){if(typeof e!="function")throw new Error(K(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(K(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(K(1));return r(Ln)(e,t)}let n=e,i=t,s=new Map,o=s,a=0,l=!1;function c(){o===s&&(o=new Map,s.forEach((x,w)=>{o.set(w,x)}))}function d(){if(l)throw new Error(K(3));return i}function u(x){if(typeof x!="function")throw new Error(K(4));if(l)throw new Error(K(5));let w=!0;c();let N=a++;return o.set(N,x),function(){if(w){if(l)throw new Error(K(6));w=!1,c(),o.delete(N),s=null}}}function p(x){if(!Lr(x))throw new Error(K(7));if(typeof x.type>"u")throw new Error(K(8));if(typeof x.type!="string")throw new Error(K(17));if(l)throw new Error(K(9));try{l=!0,i=n(i,x)}finally{l=!1}return(s=o).forEach(N=>{N()}),x}function y(x){if(typeof x!="function")throw new Error(K(10));n=x,p({type:Rr.REPLACE})}function v(){let x=u;return{subscribe(w){if(typeof w!="object"||w===null)throw new Error(K(11));function N(){let _=w;_.next&&_.next(d())}return N(),{unsubscribe:x(N)}},[is](){return this}}}return p({type:Rr.INIT}),{dispatch:p,subscribe:u,getState:d,replaceReducer:y,[is]:v}}function sc(e){Object.keys(e).forEach(t=>{let r=e[t];if(typeof r(void 0,{type:Rr.INIT})>"u")throw new Error(K(12));if(typeof r(void 0,{type:Rr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(K(13))})}function Nn(e){let t=Object.keys(e),r={};for(let o=0;o<t.length;o++){let a=t[o];typeof e[a]=="function"&&(r[a]=e[a])}let n=Object.keys(r),i,s;try{sc(r)}catch(o){s=o}return function(a={},l){if(s)throw s;let c=!1,d={};for(let u=0;u<n.length;u++){let p=n[u],y=r[p],v=a[p],C=y(v,l);if(typeof C>"u"){let x=l&&l.type;throw new Error(K(14))}d[p]=C,c=c||C!==v}return c=c||n.length!==Object.keys(a).length,c?d:a}}function Gt(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function ss(...e){return t=>(r,n)=>{let i=t(r,n),s=()=>{throw new Error(K(15))},o={getState:i.getState,dispatch:(l,...c)=>s(l,...c)},a=e.map(l=>l(o));return s=Gt(...a)(i.dispatch),{...i,dispatch:s}}}function os(e){return Lr(e)&&"type"in e&&typeof e.type=="string"}var ms=Symbol.for("immer-nothing"),as=Symbol.for("immer-draftable"),Y=Symbol.for("immer-state");function ve(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ie=Object,_t=ie.getPrototypeOf,kr="constructor",Hr="prototype",Mn="configurable",Mr="enumerable",Pr="writable",qt="value",we=e=>!!e&&!!e[Y];function se(e){return e?ys(e)||Vr(e)||!!e[as]||!!e[kr]?.[as]||jr(e)||Jt(e):!1}var oc=ie[Hr][kr].toString(),ls=new WeakMap;function ys(e){if(!e||!jn(e))return!1;let t=_t(e);if(t===null||t===ie[Hr])return!0;let r=ie.hasOwnProperty.call(t,kr)&&t[kr];if(r===Object)return!0;if(!St(r))return!1;let n=ls.get(r);return n===void 0&&(n=Function.toString.call(r),ls.set(r,n)),n===oc}function Fr(e,t,r=!0){Zt(e)===0?(r?Reflect.ownKeys(e):ie.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((n,i)=>t(i,n,e))}function Zt(e){let t=e[Y];return t?t.type_:Vr(e)?1:jr(e)?2:Jt(e)?3:0}var Pn=(e,t,r=Zt(e))=>r===2?e.has(t):ie[Hr].hasOwnProperty.call(e,t),In=(e,t,r=Zt(e))=>r===2?e.get(t):e[t],Ir=(e,t,r,n=Zt(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function ac(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Vr=Array.isArray,jr=e=>e instanceof Map,Jt=e=>e instanceof Set,jn=e=>typeof e=="object",St=e=>typeof e=="function",Dn=e=>typeof e=="boolean";function lc(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var Ne=e=>e.copy_||e.base_;var zn=e=>e.modified_?e.copy_:e.base_;function $n(e,t){if(jr(e))return new Map(e);if(Jt(e))return new Set(e);if(Vr(e))return Array[Hr].slice.call(e);let r=ys(e);if(t===!0||t==="class_only"&&!r){let n=ie.getOwnPropertyDescriptors(e);delete n[Y];let i=Reflect.ownKeys(n);for(let s=0;s<i.length;s++){let o=i[s],a=n[o];a[Pr]===!1&&(a[Pr]=!0,a[Mn]=!0),(a.get||a.set)&&(n[o]={[Mn]:!0,[Pr]:!0,[Mr]:a[Mr],[qt]:e[o]})}return ie.create(_t(e),n)}else{let n=_t(e);if(n!==null&&r)return{...e};let i=ie.create(n);return ie.assign(i,e)}}function zr(e,t=!1){return Wr(e)||we(e)||!se(e)||(Zt(e)>1&&ie.defineProperties(e,{set:Nr,add:Nr,clear:Nr,delete:Nr}),ie.freeze(e),t&&Fr(e,(r,n)=>{zr(n,!0)},!1)),e}function cc(){ve(2)}var Nr={[qt]:cc};function Wr(e){return e===null||!jn(e)?!0:ie.isFrozen(e)}var $r="MapSet",Un="Patches",cs="ArrayMethods",gs={};function Ye(e){let t=gs[e];return t||ve(0,e),t}var us=e=>!!gs[e];var Yt,xs=()=>Yt,uc=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:us($r)?Ye($r):void 0,arrayMethodsPlugin_:us(cs)?Ye(cs):void 0});function ds(e,t){t&&(e.patchPlugin_=Ye(Un),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Bn(e){Hn(e),e.drafts_.forEach(dc),e.drafts_=null}function Hn(e){e===Yt&&(Yt=e.parent_)}var ps=e=>Yt=uc(Yt,e);function dc(e){let t=e[Y];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function fs(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];if(e!==void 0&&e!==r){r[Y].modified_&&(Bn(t),ve(4)),se(e)&&(e=hs(t,e));let{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(r[Y].base_,e,t)}else e=hs(t,r);return pc(t,e,!0),Bn(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==ms?e:void 0}function hs(e,t){if(Wr(t))return t;let r=t[Y];if(!r)return Ur(t,e.handledSet_,e);if(!Kr(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(e);Es(r,e)}return r.copy_}function pc(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&zr(t,r)}function vs(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Kr=(e,t)=>e.scope_===t,fc=[];function bs(e,t,r,n){let i=Ne(e),s=e.type_;if(n!==void 0&&In(i,n,s)===t){Ir(i,n,r,s);return}if(!e.draftLocations_){let a=e.draftLocations_=new Map;Fr(i,(l,c)=>{if(we(c)){let d=a.get(c)||[];d.push(l),a.set(c,d)}})}let o=e.draftLocations_.get(t)??fc;for(let a of o)Ir(i,a,r,s)}function hc(e,t,r){e.callbacks_.push(function(i){let s=t;if(!s||!Kr(s,i))return;i.mapSetPlugin_?.fixSetContents(s);let o=zn(s);bs(e,s.draft_??s,o,r),Es(s,i)})}function Es(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let i=n.getPath(e);i&&n.generatePatches_(e,i,t)}vs(e)}}function mc(e,t,r){let{scope_:n}=e;if(we(r)){let i=r[Y];Kr(i,n)&&i.callbacks_.push(function(){Dr(e);let o=zn(i);bs(e,r,o,t)})}else se(r)&&e.callbacks_.push(function(){let s=Ne(e);e.type_===3?s.has(r)&&Ur(r,n.handledSet_,n):In(s,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Ur(In(e.copy_,t,e.type_),n.handledSet_,n)})}function Ur(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||we(e)||t.has(e)||!se(e)||Wr(e)||(t.add(e),Fr(e,(n,i)=>{if(we(i)){let s=i[Y];if(Kr(s,r)){let o=zn(s);Ir(e,n,o,e.type_),vs(s)}}else se(i)&&Ur(i,t,r)})),e}function yc(e,t){let r=Vr(e),n={type_:r?1:0,scope_:t?t.scope_:xs(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=n,s=Br;r&&(i=[n],s=Xt);let{revoke:o,proxy:a}=Proxy.revocable(i,s);return n.draft_=a,n.revoke_=o,[a,n]}var Br={get(e,t){if(t===Y)return e;let r=e.scope_.arrayMethodsPlugin_,n=e.type_===1&&typeof t=="string";if(n&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);let i=Ne(e);if(!Pn(i,t,e.type_))return xc(e,i,t);let s=i[t];if(e.finalized_||!se(s)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&lc(t))return s;if(s===kn(e.base_,t)||gc(e,t,s)){Dr(e);let o=e.type_===1?+t:t,a=Vn(e.scope_,s,e,o);return e.copy_[o]=a}return s},has(e,t){return t in Ne(e)},ownKeys(e){return Reflect.ownKeys(Ne(e))},set(e,t,r){let n=As(Ne(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let i=kn(Ne(e),t),s=i?.[Y];if(s&&s.base_===r)return e.copy_[t]=r,e.assigned_.delete(t),!0;if(ac(r,i)&&(r!==void 0||Pn(e.base_,t,e.type_)))return!0;Dr(e),Fn(e)}return e.copy_[t]===r&&(r!==void 0||Pn(e.copy_,t,e.type_))||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),mc(e,t,r)),!0},deleteProperty(e,t){return Dr(e),kn(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Fn(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let r=Ne(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[Pr]:!0,[Mn]:e.type_!==1||t!=="length",[Mr]:n[Mr],[qt]:r[t]}},defineProperty(){ve(11)},getPrototypeOf(e){return _t(e.base_)},setPrototypeOf(){ve(12)}},Xt={};for(let e in Br){let t=Br[e];Xt[e]=function(){let r=arguments;return r[0]=r[0][0],t.apply(this,r)}}Xt.deleteProperty=function(e,t){return Xt.set.call(this,e,t,void 0)};Xt.set=function(e,t,r){return Br.set.call(this,e[0],t,r,e[0])};function kn(e,t){let r=e[Y];return(r?Ne(r):e)[t]}function gc(e,t,r){return e.type_!==1||!e.allIndicesReassigned_||!se(r)||r[Y]?!1:e.baseRefs_.has(r)}function xc(e,t,r){let n=As(t,r);return n?qt in n?n[qt]:n.get?.call(e.draft_):void 0}function As(e,t){if(!(t in e))return;let r=_t(e);for(;r;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=_t(r)}}function Fn(e){e.modified_||(e.modified_=!0,e.parent_&&Fn(e.parent_))}function Dr(e){e.copy_||(e.assigned_=new Map,e.copy_=$n(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var vc=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,n)=>{if(St(t)&&!St(r)){let s=r;r=t;let o=this;return function(l=s,...c){return o.produce(l,d=>r.call(this,d,...c))}}St(r)||ve(6),n!==void 0&&!St(n)&&ve(7);let i;if(se(t)){let s=ps(this),o=Vn(s,t,void 0),a=!0;try{i=r(o),a=!1}finally{a?Bn(s):Hn(s)}return ds(s,n),fs(i,s)}else if(!t||!jn(t)){if(i=r(t),i===void 0&&(i=t),i===ms&&(i=void 0),this.autoFreeze_&&zr(i,!0),n){let s=[],o=[];Ye(Un).generateReplacementPatches_(t,i,{patches_:s,inversePatches_:o}),n(s,o)}return i}else ve(1,t)},this.produceWithPatches=(t,r)=>{if(St(t))return(o,...a)=>this.produceWithPatches(o,l=>t(l,...a));let n,i;return[this.produce(t,r,(o,a)=>{n=o,i=a}),n,i]},Dn(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Dn(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Dn(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){se(e)||ve(8),we(e)&&(e=Ss(e));let t=ps(this),r=Vn(t,e,void 0);return r[Y].isManual_=!0,Hn(t),r}finishDraft(e,t){let r=e&&e[Y];(!r||!r.isManual_)&&ve(9);let{scope_:n}=r;return ds(n,t),fs(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let i=t[r];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}r>-1&&(t=t.slice(r+1));let n=Ye(Un).applyPatches_;return we(e)?n(e,t):this.produce(e,i=>n(i,t))}};function Vn(e,t,r,n){let[i,s]=jr(t)?Ye($r).proxyMap_(t,r):Jt(t)?Ye($r).proxySet_(t,r):yc(t,r);return(r?.scope_??xs()).drafts_.push(i),s.callbacks_=r?.callbacks_??[],s.key_=n,r&&n!==void 0?hc(r,s,n):s.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(s);let{patchPlugin_:c}=l;s.modified_&&c&&c.generatePatches_(s,[],l)}),i}function Ss(e){return we(e)||ve(10,e),_s(e)}function _s(e){if(!se(e)||Wr(e))return e;let t=e[Y],r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=$n(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=$n(e,!0);let i=r;return Jt(r)&&(r=new Set),Fr(i,(s,o)=>{Ir(r,s,_s(o))},n),t&&(t.finalized_=!1),r}var bc=globalThis.Iterator,vd=typeof bc?.from=="function";var Ec=new vc,Wn=Ec.produce;function Cs(e){return({dispatch:r,getState:n})=>i=>s=>typeof s=="function"?s(r,n,e):i(s)}var ws=Cs(),Ts=Cs;var Ac=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Gt:Gt.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function er(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(Te(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>n!=null&&n.type===e&&os(n),r}var Ls=class Qt extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Qt.prototype)}static get[Symbol.species](){return Qt}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Qt(...t[0].concat(this)):new Qt(...t.concat(this))}};function Os(e){return se(e)?Wn(e,()=>{}):e}function Gr(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function Sc(e){return typeof e=="boolean"}var _c=()=>function(t){let{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:s=!0}=t??{},o=new Ls;return r&&(Sc(r)?o.push(ws):o.push(Ts(r.extraArgument))),o},Cc="RTK_autoBatch";var Rs=e=>t=>{setTimeout(t,e)},wc=(e,t,r)=>n=>{let i=!1,s,o,a=()=>{i||(i=!0,t?.(s),clearTimeout(o),n())};s=e(a),o=setTimeout(a,r)},Tc=(e={type:"raf"})=>t=>(...r)=>{let n=t(...r),i=!0,s=!1,o=!1,a=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?wc(window.requestAnimationFrame,window.cancelAnimationFrame,100):Rs(10):e.type==="callback"?e.queueNotification:Rs(e.timeout),c=()=>{o=!1,s&&(s=!1,a.forEach(d=>d()))};return Object.assign({},n,{subscribe(d){let u=()=>i&&d(),p=n.subscribe(u);return a.add(d),()=>{p(),a.delete(d)}},dispatch(d){try{return i=!d?.meta?.[Cc],s=!i,s&&(o||(o=!0,l(c))),n.dispatch(d)}finally{i=!0}}})},Oc=e=>function(r){let{autoBatch:n=!0}=r??{},i=new Ls(e);return n&&i.push(Tc(typeof n=="object"?n:void 0)),i};function Ns(e){let t=_c(),{reducer:r=void 0,middleware:n,devTools:i=!0,duplicateMiddlewareCheck:s=!0,preloadedState:o=void 0,enhancers:a=void 0}=e||{},l;if(typeof r=="function")l=r;else if(Lr(r))l=Nn(r);else throw new Error(Te(1));let c;typeof n=="function"?c=n(t):c=t();let d=Gt;i&&(d=Ac({trace:!1,...typeof i=="object"&&i}));let u=ss(...c),p=Oc(u),y=typeof a=="function"?a(p):p(),v=d(...y);return Ln(l,o,v)}function Ps(e){let t={},r=[],n,i={addCase(s,o){let a=typeof s=="string"?s:s.type;if(!a)throw new Error(Te(28));if(a in t)throw new Error(Te(29));return t[a]=o,i},addAsyncThunk(s,o){return o.pending&&(t[s.pending.type]=o.pending),o.rejected&&(t[s.rejected.type]=o.rejected),o.fulfilled&&(t[s.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:s.settled,reducer:o.settled}),i},addMatcher(s,o){return r.push({matcher:s,reducer:o}),i},addDefaultCase(s){return n=s,i}};return e(i),[t,r,n]}function Rc(e){return typeof e=="function"}function Lc(e,t){let[r,n,i]=Ps(t),s;if(Rc(e))s=()=>Os(e());else{let l=Os(e);s=()=>l}function o(l,c,d){if(we(l)){let u=c(l,d);return u===void 0?l:u}else{if(se(l))return Wn(l,u=>c(u,d));{let u=c(l,d);if(u===void 0){if(l===null)return l;throw new Error(Te(9))}return u}}}function a(l=s(),c){let d=r[c.type],u;for(let{matcher:p,reducer:y}of n)p(c)&&y&&(u??=[]).push(y);if(!d&&!u)return i?o(l,i,c):l;if(d&&(l=o(l,d,c)),u)for(let p of u)l=o(l,p,c);return l}return a.getInitialState=s,a}var Nc=Symbol.for("rtk-slice-createasyncthunk");function Pc(e,t){return`${e}/${t}`}function Dc({creators:e}={}){let t=e?.asyncThunk?.[Nc];return function(n){let{name:i,reducerPath:s=i}=n;if(!i)throw new Error(Te(11));typeof process<"u";let o=(typeof n.reducers=="function"?n.reducers(Mc()):n.reducers)||{},a=Object.keys(o),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(b,_){let P=typeof b=="string"?b:b.type;if(!P)throw new Error(Te(12));if(P in l.sliceCaseReducersByType)throw new Error(Te(13));return l.sliceCaseReducersByType[P]=_,c},addMatcher(b,_){return l.sliceMatchers.push({matcher:b,reducer:_}),c},exposeAction(b,_){return l.actionCreators[b]=_,c},exposeCaseReducer(b,_){return l.sliceCaseReducersByName[b]=_,c}};a.forEach(b=>{let _=o[b],P={reducerName:b,type:Pc(i,b),createNotation:typeof n.reducers=="function"};$c(_)?Bc(P,_,c,t):Ic(P,_,c)});function d(){let[b={},_=[],P=void 0]=typeof n.extraReducers=="function"?Ps(n.extraReducers):[n.extraReducers],j={...b,...l.sliceCaseReducersByType};return Lc(n.initialState,ne=>{for(let q in j)ne.addCase(q,j[q]);for(let q of l.sliceMatchers)ne.addMatcher(q.matcher,q.reducer);for(let q of _)ne.addMatcher(q.matcher,q.reducer);P&&ne.addDefaultCase(P)})}let u=b=>b,p=new Map,y=new WeakMap,v;function C(b,_){return v||(v=d()),v(b,_)}function x(){return v||(v=d()),v.getInitialState()}function w(b,_=!1){function P(ne){let q=ne[b];return typeof q>"u"&&_&&(q=Gr(y,P,x)),q}function j(ne=u){return Gr(Gr(p,_,()=>new WeakMap),ne,()=>{let q={};for(let[Ar,ce]of Object.entries(n.selectors??{}))q[Ar]=kc(ce,ne,()=>Gr(y,ne,x),_);return q})}return{reducerPath:b,getSelectors:j,get selectors(){return j(P)},selectSlice:P}}let N={name:i,reducer:C,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:x,...w(s),injectInto(b,{reducerPath:_,...P}={}){let j=_??s;return b.inject({reducerPath:j,reducer:C},P),{...N,...w(j,!0)}}};return N}}function kc(e,t,r,n){function i(s,...o){let a=t(s);return typeof a>"u"&&n&&(a=r()),e(a,...o)}return i.unwrapped=e,i}var Ds=Dc();function Mc(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function Ic({type:e,reducerName:t,createNotation:r},n,i){let s,o;if("reducer"in n){if(r&&!Uc(n))throw new Error(Te(17));s=n.reducer,o=n.prepare}else s=n;i.addCase(e,s).exposeCaseReducer(t,s).exposeAction(t,o?er(e,o):er(e))}function $c(e){return e._reducerDefinitionType==="asyncThunk"}function Uc(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Bc({type:e,reducerName:t},r,n,i){if(!i)throw new Error(Te(18));let{payloadCreator:s,fulfilled:o,pending:a,rejected:l,settled:c,options:d}=r,u=i(e,s,d);n.exposeAction(t,u),o&&n.addCase(u.fulfilled,o),a&&n.addCase(u.pending,a),l&&n.addCase(u.rejected,l),c&&n.addMatcher(u.settled,c),n.exposeCaseReducer(t,{fulfilled:o||qr,pending:a||qr,rejected:l||qr,settled:c||qr})}function qr(){}var ks="listener",Ms="completed",Is="cancelled",Td=`task-${Is}`,Od=`task-${Ms}`,Rd=`${ks}-${Is}`,Ld=`${ks}-${Ms}`;var{assign:$s}=Object;var Kn="listenerMiddleware";var Hc=$s(er(`${Kn}/add`),{withTypes:()=>Hc}),Nd=er(`${Kn}/removeAll`),Fc=$s(er(`${Kn}/remove`),{withTypes:()=>Fc});function Te(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Vc=Sr(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,n,i){this.eventBus.addEventListener(r,n,i)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,i){this.eventBus.removeEventListener(r,n,i)}}}),Yr=class extends Vc(Object){};window.ftReduxStores||(window.ftReduxStores={});var Us=class e extends Yr{static get(t){var r;let n=typeof t=="string"?t:t.name,i=typeof t=="string"?void 0:t,s=window.ftReduxStores[n];if(Or(s))return s;if(i==null)return;let o=Ds({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),a=Ns({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let d=zt(o.getInitialState());for(let u of c.keeping)d[u]=(l??d)[u];return d}else if(typeof c.type=="string"&&c.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...c.overwrites};return o.reducer(l,c)}});return window.ftReduxStores[i.name]=new e(o,a,i.eventBus,i.deprecatedKeys)}constructor(t,r,n,i){super(),this.reduxSlice=t,this.reduxStore=r,this.deprecatedKeys=i,this.isFtReduxStore=!0,this.commands=new _r,this.injectInto=(o,a)=>this.reduxSlice.injectInto(o,a),this.selectSlice=o=>this.reduxSlice.selectSlice(o);let s=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,a,l)=>{let c=a,d=o[c];return d?(...u)=>{let p=d(...u.map(s));return this.reduxStore.dispatch(p),p}:u=>{let p=c,y=this.getState()[p];bt(y,u)||this.setState({[p]:s(u)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...t){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:t})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};var Xr=class{static format(t,r,n,i,s){return window.moment?window.moment(t).locale(r).format(this.getMomentDateFormat(n,i,!!s)):this.getIntlDateTime(t,r,n,i,!!s)}static getMomentDateFormat(t,r,n){return n?"LT":t?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(t,r,n,i,s){let o=typeof t=="string"?new Date(t):t,a=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(o),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(o);return s?l:i?`${a} ${l}`:a}static getTimezoneAsString(){let t=n=>String(Math.floor(n)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${t(Math.abs(r)/60)}:${t(Math.abs(r)%60)}`}};var Zr=h(A()),jc="ft-app-info",Xe=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Xe.eventName="authentication-change";var tr=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};tr.eventName="ui-locale-changed";var zc={session:(e,t)=>{(0,Zr.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>S.dispatchEvent(new Xe(t.payload)),0))}},S=Zr.FtReduxStore.get({name:jc,reducers:zc,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1,stickyFilters:void 0}});var Bs=h(A()),Jr=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},sp=(0,Bs.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(S)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var i,s;return((s=(i=this.metadataDescriptors.find(a=>a.key===n))===null||i===void 0?void 0:i.date)!==null&&s!==void 0?s:!1)?a=>Xr.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Jr([(0,Gn.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),Jr([(0,Gn.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),Jr([On({store:S.name,selector:r=>{var n,i;return(i=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],t.prototype,"metadataDescriptors",void 0),Jr([On({store:S.name})],t.prototype,"uiLocale",void 0),t});var Hs;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Hs||(Hs={}));var Fs;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Fs||(Fs={}));var Vs;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(Vs||(Vs={}));var js;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(js||(js={}));var zs;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(zs||(zs={}));var Ws;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(Ws||(Ws={}));var Ks;(function(e){e.PUBLISHED="PUBLISHED",e.AI="AI"})(Ks||(Ks={}));var Gs;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.CHATBOT__RATE="CHATBOT__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",e.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",e.AI__RATE="AI__RATE",e.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",e.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(Gs||(Gs={}));var qs;(function(e){e.STANDARD="STANDARD",e.STRUCTURAL="STRUCTURAL"})(qs||(qs={}));var Ys;(function(e){e.METADATA_FILTER="METADATA_FILTER",e.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(Ys||(Ys={}));var Xs;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER",e.DOC_DIFF="DOC_DIFF"})(Xs||(Xs={}));var Zs;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT",e.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",e.LINK_PREVIEW="LINK_PREVIEW",e.UD_VIEWER="UD_VIEWER",e.ASSET_VIEWER="ASSET_VIEWER"})(Zs||(Zs={}));var Js;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Js||(Js={}));var Qs;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(Qs||(Qs={}));var eo;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(eo||(eo={}));var to;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(to||(to={}));var ro;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(ro||(ro={}));var no;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(no||(no={}));var io;(function(e){e.ASC="ASC",e.DESC="DESC"})(io||(io={}));var so;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(so||(so={}));var oo;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(oo||(oo={}));var ao;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(ao||(ao={}));var lo;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(lo||(lo={}));var co;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(co||(co={}));var uo;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(uo||(uo={}));var po;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(po||(po={}));var fo;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(fo||(fo={}));var ho;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(ho||(ho={}));var B;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(B||(B={}));var ue;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(ue||(ue={}));var mo;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(mo||(mo={}));var yo;(function(e){e.UNREACHABLE="UNREACHABLE",e.UNAUTHORIZED="UNAUTHORIZED",e.FORBIDDEN="FORBIDDEN",e.INCOMPATIBLE="INCOMPATIBLE",e.FAILED="FAILED",e.OK="OK"})(yo||(yo={}));var go;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(go||(go={}));var xo;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(xo||(xo={}));var vo;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(vo||(vo={}));var bo;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.SEMANTIC_SEARCH="SEMANTIC_SEARCH",e.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",e.DOCUMENTATION="DOCUMENTATION",e.OTHER="OTHER"})(bo||(bo={}));var Eo;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(Eo||(Eo={}));var Ao;(function(e){e.CHAT="CHAT",e.COMPLETION="COMPLETION",e.RAG="RAG",e.AGENT="AGENT"})(Ao||(Ao={}));var So;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(So||(So={}));var _o;(function(e){e.IN_PROGRESS="IN_PROGRESS",e.ERROR="ERROR",e.DONE="DONE"})(_o||(_o={}));var Co;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(Co||(Co={}));var wo;(function(e){e.SOURCES="SOURCES",e.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",e.VOCABULARIES="VOCABULARIES",e.METADATA="METADATA",e.PRETTY_URL="PRETTY_URL",e.ACCESS_RULE="ACCESS_RULE",e.DESIGNED_PAGES="DESIGNED_PAGES",e.THEME_STUDIO="THEME_STUDIO",e.PORTAL_GENERAL="PORTAL_GENERAL",e.ASSETS="ASSETS",e.CODE_LIBRARY="CODE_LIBRARY",e.THEME="THEME",e.CONTENT_STYLES="CONTENT_STYLES",e.HOMEPAGE="HOMEPAGE",e.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",e.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",e.PORTAL_METADATA="PORTAL_METADATA",e.LANGUAGES="LANGUAGES",e.PRINT_TEMPLATES="PRINT_TEMPLATES",e.OFFLINE="OFFLINE",e.CUSTOM_JS="CUSTOM_JS",e.CONFIDENTIALITY="CONFIDENTIALITY",e.NOTIFICATIONS="NOTIFICATIONS"})(wo||(wo={}));var To;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(To||(To={}));var Wc={[B.PERSONAL_BOOK_SHARE_USER]:[B.PERSONAL_BOOK_USER],[B.HTML_EXPORT_USER]:[B.PERSONAL_BOOK_USER],[B.PDF_EXPORT_USER]:[B.PERSONAL_BOOK_USER],[B.KHUB_ADMIN]:[B.CONTENT_PUBLISHER],[B.ADMIN]:[B.KHUB_ADMIN,B.USERS_ADMIN,B.PORTAL_ADMIN,B.BEHAVIOR_DATA_USER],[B.GENERATIVE_AI_EXPORT_USER]:[B.GENERATIVE_AI_USER]};function Oo(e,t){return e===t||(Wc[e]??[]).some(r=>Oo(r,t))}function qn(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>Oo(n,t))}function Ro(e,...t){return e==null?!1:t.some(r=>qn(e,r))}var nn=h(A());var Yn=h(A());var Ze=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:n}=S.getState(),i=t??n;if(r&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,i,!0)}static await(t){return new Promise(r=>{let n=e.get(t);if(n)r(n);else{let i=S.subscribe(()=>{n=e.get(t),n&&(i(),r(n))})}})}};var Ct=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:Ze.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Ze.await()}};var oe=class extends Ct{constructor(t=!0,r){var n;super(r),this.sortObjectFields=(s,o)=>typeof o!="object"||o==null||Array.isArray(o)?o:Object.fromEntries(Object.entries(o).sort(([a],[l])=>a.localeCompare(l)));let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new Yn.CacheRegistry,this.cache=t?i.commonCache:new Yn.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var Qr=class extends oe{async listMySearches(){let{session:t}=S.getState();return qn(t,B.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),300*1e3):[]}};var en=class extends oe{async listMyBookmarks(){let t=S.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),300*1e3):[]}};var tn=class extends oe{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(t){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${t}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(t){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${t}`),this.CACHE_DURATION)}isAuthenticated(){let t=S.getState().session;return!!t?.sessionAuthenticated}};var rn=class extends oe{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let t=S.getState().session;return!!t?.sessionAuthenticated}};var Kc="ft-user-assets",Gc={setAssetCount:(e,t)=>{let{userAssetType:r,count:n}=t.payload.assetCount;e.assetCounts.allAsset[r]=n},clearAssetCount:e=>{Object.values(ue).forEach(t=>{e.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(e,t)=>{let r=t.payload.mapId;e.assetCounts.bookmarkByMap[r]=t.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}},addAsset:(e,t)=>{let{assetType:r,mapId:n,asset:i}=t.payload;Zn(e,r,[...Xn(e,r),i]),Lo(e,r,1,n),No(e,i)},editAsset:(e,t)=>{let{assetType:r,asset:n}=t.payload;Zn(e,r,Xn(e,r).map(i=>i.id===n.id?n:i)),No(e,n)},removeAsset:(e,t)=>{let{assetType:r,mapId:n,assetId:i}=t.payload;Zn(e,r,Xn(e,r).filter(s=>s.id!==i)),Lo(e,r,-1,n)}},Po={[ue.SEARCHES]:"savedSearches",[ue.BOOKMARKS]:"bookmarks",[ue.BOOKS]:void 0,[ue.COLLECTIONS]:void 0},Xn=(e,t)=>{var r;let n=Po[t];return n?(r=e[n])!==null&&r!==void 0?r:[]:[]},Zn=(e,t,r)=>{let n=Po[t];n&&(e[n]=r)},Lo=(e,t,r,n)=>{let i=e.assetCounts.allAsset[t];if(i!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,i+r),t===ue.BOOKMARKS&&n)){let s=e.assetCounts.bookmarkByMap[n];e.assetCounts.bookmarkByMap[n]=Math.max(0,s+r)}},No=(e,t)=>{let r=e.assetLabels.map(i=>i.title),n=t.labels.filter(i=>!r.includes(i)).map(i=>({title:i}));e.assetLabels.push(...n)},Z=nn.FtReduxStore.get({name:Kc,reducers:Gc,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(ue).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Jn=class{constructor(t=new tn,r=new rn){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=S.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new en,this.savedSearchesService=new Qr,S.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=S.getState();(0,nn.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),Z.actions.clearAssetCount(),Z.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Z.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Z.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();Z.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();Z.actions.assetLabels(t)}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&Z.getState().assetCounts.allAsset[t]!==r.count&&Z.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&Z.getState().assetCounts.bookmarkByMap[t]!==r.count&&Z.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(Z.getState().assetCounts.bookmarkByMap).length!==0;t===ue.BOOKMARKS&&r&&Z.actions.clearBookmarkCountByMap(),Z.getState().assetCounts.allAsset[t]!==void 0&&await this.loadAssetCount(t)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let r=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Z.actions.bookmarks(r)}}},qc=new Jn;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=qc);var Qn=class{addCommand(t,r=!1){S.commands.add(t,r)}consumeCommand(t){return S.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Qn;var de=h(A());var Do,wt=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},Yc=Symbol("clearAfterUnitTest"),sn=class extends(0,de.withEventBus)(oe){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Do]=()=>{this.defaultMessages={},this.cache=new de.CacheRegistry,this.listeners={}},this.currentUiLocale=S.getState().uiLocale,S.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=S.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let r=t.name.toLowerCase();this.cache.setFinal(r,t),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,r){var n;if(t=t.toLowerCase(),r&&Object.keys(r).length>0){let i={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...r};(0,de.deepEqual)(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var r,n;return this.fetchContext(t),(n=(r=this.cache.getNow(t))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,r){let n=t.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(t,r,...n){var i;let s=t.toLowerCase(),o=this.resolveContext(s);return new de.ParametrizedLabelResolver((i=this.defaultMessages[s])!==null&&i!==void 0?i:{},o).resolve(r,...n)}async fetchContext(t){let r=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),r&&await this.notify(t)}catch(i){!(i instanceof de.CanceledPromiseError)&&r&&console.error(i)}return n}subscribe(t,r){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(r),()=>{var i;return(i=this.listeners[t])===null||i===void 0?void 0:i.delete(r)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new wt({loadedContexts:t})),this.dispatchEvent(new wt({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new wt({loadedContexts:[t]})),this.dispatchEvent(new wt({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(n=>(0,de.delay)(0).then(()=>n()).catch(()=>null)))}};Do=Yc;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends sn{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends sn{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Tt=window.FluidTopicsI18nService,on=window.FluidTopicsCustomI18nService;var ko=h(A()),ei=class{highlightHtml(t,r,n){(0,ko.highlightHtml)(t,r,n)}};window.FluidTopicsHighlightHtmlService=new ei;var Mo=h(A());var ti=class{isDate(t){var r,n,i,s;return(s=(n=((i=(r=S.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(a=>a.key===t))===null||n===void 0?void 0:n.date)!==null&&s!==void 0?s:!1}format(t,r){var n,i,s,o;if(t==null)return"";try{return Mo.DateFormatter.format(t,(n=r?.locale)!==null&&n!==void 0?n:S.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(s=r?.withTime)!==null&&s!==void 0?s:!1,(o=r?.onlyTime)!==null&&o!==void 0?o:!1)}catch(a){throw console.error(`Date ${JSON.stringify(t)} is not valid`,a),a}}};window.FluidTopicsDateService=new ti;var Io=h(A());var rr=class{static get(t,r,{baseUrl:n,localesConfiguration:i,availableContentLocales:s}=S.getState()){var o;if(r==="all"&&i?.allLanguagesAllowed)r=void 0;else if(!r||s.length>0&&!s.some(a=>a.lang===r)){let a=i?.defaultLocales.defaultContentLocale;r=a?`${a.lang}-${a.region}`:(o=s[0])===null||o===void 0?void 0:o.lang}return new Io.SearchPlaceConverter(n,t??20,i?.allLanguagesAllowed,r,s)}};var ri=class{urlToSearchRequest(t){return rr.get().parse(t)}searchRequestToUrl(t){return rr.get().serialize(t)}};window.FluidTopicsUrlService=new ri;var Pe=h(A());var Je=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{nextLocation:t}})}};Je.eventName="before-location-change";var Qe=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};Qe.eventName="change";var ni=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let r=sessionStorage.getItem(this.itemName(t));return r?JSON.parse(r):void 0}set(t,r){sessionStorage.setItem(this.itemName(t),JSON.stringify(r))}},$o=new ni;var an=class e extends Pe.WithEventBus{static build(){return new e(window.history,$o,()=>window.location,!1)}constructor(t,r,n,i){var s,o;super(),this.history=t,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(o=(s=t.state)===null||s===void 0?void 0:s.index)!==null&&o!==void 0?o:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}setCurrentState(t,r=!1){let n=r&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,Pe.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new Qe(this.currentItem())),0)}installProxies(){let t=r=>(n,i,[s,o,a])=>{let l=new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin!=="null"?window.location.origin:void 0),c=new Je(l);this.dispatchEvent(c);let d=r(),u={...d===this.currentIndex?this.currentState:void 0,...s,index:d,href:c.detail.nextLocation.href};n.apply(i,[u,o,u.href]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(t){for(let r=this.history.length-1;r>=0;r--)t?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(t){var r;let n={...this.buildCurrentState(),...t,index:this.currentIndex,title:(r=t?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addBeforeLocationChangeListener(t){this.addEventListener(Je.eventName,t)}removeBeforeLocationChangeListener(t){this.removeEventListener(Je.eventName,t)}addHistoryChangeListener(t){this.addEventListener(Qe.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(Qe.eventName,t)}currentItem(){return(0,Pe.deepCopy)(this.currentState)}back(){let t=this.previousDifferentMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Pe.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(t){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,Pe.deepCopy)(r.find(n=>t(n)))}previousDifferentMajorPosition(){let t=this.currentIndex>0?this.currentIndex-1:0;for(;t>0&&!this.isDifferentMajorState(t);)t--;return t}forward(){let t=this.nextMajorPosition();t&&t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){let t=this.nextMajorPosition();if(t)return(0,Pe.deepCopy)(this.states[t])}nextMajorPosition(){let t=this.currentIndex;if(!(t>=this.states.length)){do t++;while(t<this.states.length&&!this.isDifferentMajorState(t));return this.getHigherPositionInTheSameState(t)}}getHigherPositionInTheSameState(t){var r;let n=(r=this.states[t])===null||r===void 0?void 0:r.majorStateId;if(!n)return t;let i=t,s=t+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,n);)this.hasState(s)&&(i=s),s++;return i}buildCurrentState(){var t,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&r!==void 0?r:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,r){var n;if(!this.hasState(t))return!1;let i=r??this.currentState.majorStateId,s=(n=this.states[t])===null||n===void 0?void 0:n.majorStateId;return s==null||s!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=an.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:e=>window.FluidTopicsInternalHistoryService.backwardItemMatching(e),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e),addBeforeLocationChangeListener:e=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(e),removeBeforeLocationChangeListener:e=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(e)});var Uo=h(U());var Bo=Uo.css`
173
+ `;var Vo=h(U()),J=h(Q()),tt=h(A());var Oe=h(A());function Ho(e,t){let{authenticationRequired:r,session:n}=S.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(t):e()}var ln=class extends Ct{async updateUiLocale(t){return(await this.awaitApi).updateUiLocale(t)}};var ii=class e extends Oe.FtStateManager{static build(t){return new e(S,t)}constructor(t,r){super(),this.store=t,this.cache=new Oe.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new ln,this.knownContexts=new Oe.AbstractRegistry,this.knownCustomComponents=new Oe.AbstractRegistry,this.cleanSessionDebouncer=new Oe.Debouncer,this.reloadConfiguration=()=>{var n;(n=this.cache)===null||n===void 0||n.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new Oe.Debouncer(500),this.apiProvider=r??(()=>Ze.get())}setWithManualResources(t){this.withManualResources=t,this.updateIfNeeded()}addListeners(){this.store.addEventListener(Xe.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(Xe.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let t=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});this.setSession(t)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var t;let r=await this.cache.get("availableContentLocales",()=>Ho(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((t=r.contentLocales)!==null&&t!==void 0?t:[])}setStickyFilters(t){this.store.actions.stickyFilters(t)}setBaseUrl(t){this.store.actions.baseUrl(t),window.fluidTopicsBaseUrl=t}setTenantId(t){this.store.actions.tenantId(t)}setApiIntegrationIdentifier(t){this.store.actions.apiIntegrationIdentifier(t)}setApiIntegrationAppVersion(t){this.store.actions.apiIntegrationAppVersion(t)}setUiLocale(t){this.store.actions.uiLocale(t)}setLocalesConfiguration(t){this.store.actions.localesConfiguration(t),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(t){this.store.actions.availableContentLocales(t),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(t,r){this.userLocaleService.updateUiLocale({uiLocale:t,contentLocale:r}).then(n=>{n.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new tr(n)))}).catch(()=>{})}setMetadataConfiguration(t){this.store.actions.metadataConfiguration(t),setTimeout(()=>this.updateIfNeeded())}setNoCustom(t){this.store.actions.noCustom(t)}setEditorMode(t){this.store.actions.editorMode(t)}setNoCustomComponent(t){this.store.actions.noCustomComponent(t)}setNoCustomCode(t){this.store.actions.noCustomCode(t)}setSession(t){this.store.actions.session(t),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(t){this.store.actions.openExternalDocumentInNewTab(t)}setNavigatorOnline(t){this.store.actions.navigatorOnline(t)}setForcedOffline(t){this.store.actions.forcedOffline(t)}setAuthenticationRequired(t){this.store.actions.authenticationRequired(t)}userHasAnyRole(...t){return Ro(S.getState().session,...t)}},Fo=ii.build();var et=class extends Event{constructor(t,r,n,i){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=r,this.callback=n,this.subscribe=i??!1}};var nr=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=t=>{let r=this.pendingContextRequests.get(t.context);if(r===void 0)return;this.pendingContextRequests.delete(t.context);let{requests:n}=r;for(let{elementRef:i,callbackRef:s}of n){let o=i.deref(),a=s.deref();o===void 0||a===void 0||o.dispatchEvent(new et(t.context,o,a,!0))}},this.onContextRequest=t=>{if(t.subscribe!==!0)return;let r=t.contextTarget??t.composedPath()[0],n=t.callback,i=this.pendingContextRequests.get(t.context);i===void 0&&this.pendingContextRequests.set(t.context,i={callbacks:new WeakMap,requests:[]});let s=i.callbacks.get(r);s===void 0&&i.callbacks.set(r,s=new WeakSet),s.has(n)||(s.add(n),i.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(n)}))}}attach(t){t.addEventListener("context-request",this.onContextRequest),t.addEventListener("context-provider",this.onContextProvider)}detach(t){t.removeEventListener("context-request",this.onContextRequest),t.removeEventListener("context-provider",this.onContextProvider)}};var W=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},M=class extends tt.FtLitElementRedux{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.noCustomCode=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=Fo,this.contextRoot=new nr}render(){return Vo.html`
174
174
  <slot></slot>
175
- `}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(t){var r;super.update(t),t.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),t.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),t.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),t.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),t.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),t.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),t.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),t.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),t.has("session")&&this.stateManager.setSession(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(n=>Tt.addContext(n)),t.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),t.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),t.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};I.elementDefinitions={};I.styles=jo;K([(0,Q.property)()],I.prototype,"baseUrl",void 0);K([(0,Q.property)()],I.prototype,"tenantId",void 0);K([(0,Q.property)()],I.prototype,"apiIntegrationIdentifier",void 0);K([(0,Q.property)()],I.prototype,"apiIntegrationAppVersion",void 0);K([(0,Q.property)()],I.prototype,"uiLocale",void 0);K([(0,rt.jsonProperty)(null)],I.prototype,"availableUiLocales",void 0);K([(0,rt.jsonProperty)(null)],I.prototype,"metadataConfiguration",void 0);K([(0,Q.property)({type:Boolean})],I.prototype,"editorMode",void 0);K([(0,Q.property)({type:Boolean})],I.prototype,"noCustom",void 0);K([(0,Q.property)({type:Boolean})],I.prototype,"openExternalDocumentInNewTab",void 0);K([(0,Q.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],I.prototype,"noCustomComponent",void 0);K([(0,Q.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],I.prototype,"noCustomCode",void 0);K([(0,Q.property)({type:Boolean})],I.prototype,"withManualResources",void 0);K([(0,Q.property)({type:Boolean})],I.prototype,"navigatorOnline",void 0);K([(0,Q.property)({type:Boolean})],I.prototype,"forcedOffline",void 0);K([(0,Q.property)({type:Boolean})],I.prototype,"authenticationRequired",void 0);K([(0,rt.jsonProperty)([])],I.prototype,"messageContexts",void 0);K([(0,rt.jsonProperty)(void 0)],I.prototype,"session",void 0);var qo=h(C());var Go={"ft-app-context":I};(0,qo.customElements)(Go);var Rt=class e{static build(t){return new e(t)}static buildCustom(t){return new e(t,!0)}static fromGwt(t){return new e(t)}get service(){return this.custom?on:Tt}constructor(t,r=!1){this.name=t,this.custom=r,this.properties=new Proxy({},{get:(n,i)=>{let s=i;return o=>({context:this.name,key:s,custom:this.custom,args:typeof o=="function"?void 0:o,argsProvider:typeof o=="function"?o:void 0})}}),this.messages=new Proxy({},{get:(n,i)=>(...s)=>this.service.resolveMessage(this.name,i,...s)}),this.rawMessages=new Proxy({},{get:(n,i)=>this.service.resolveRawMessage(this.name,i)}),this.keys=new Proxy({},{get:(n,i)=>()=>i}),this.attributes=new Proxy({},{get:(n,i)=>()=>({context:this.name,key:i,message:this.service.resolveRawMessage(this.name,i)})})}};var Pt=h(C());var Yo=h(ee());var oi=class{fromLocalizableLabel(t){return t.type=="PLAIN_TEXT"?{message:t.text}:{key:t.key,custom:t.type=="LOCALIZED_CUSTOM",context:t.context,message:t.key}}fromAttribute(t){if(t!=null)try{return JSON.parse(t)}catch{if(this.isI18nKey(t)){let[r,n]=t.split(".");return{context:r,key:n,custom:r!=="officialContext",message:""}}return{message:t}}}toAttribute(t){if(t!=null)return JSON.stringify(t)}isI18nKey(t){return t.match(/^[\w-]+\.[\w-]+$/)}},Lt=new oi;var du=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},sr=Symbol("i18nAttributes"),Xo=Symbol("i18nListAttributes"),Zo=Symbol("i18nProperties"),cn=Symbol("i18nContexts"),ir=Symbol("i18nUnsubs"),Jo=(0,Pt.applyMixinOnce)(Symbol("withI18n"),function(e){var t,r;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[r]=new Map}getI18nService(s){return s??this.useCustomMessageContexts?on:Tt}i18n(s){let{context:o,key:a,message:l}=s,{custom:c,args:u,argsProvider:d}=s;if(o&&a){this.hasI18nContext(o)||this.addI18nContext(o,void 0,c);let p=u??(d?d(this):[]);return this.getI18nService(c).resolveMessage(o,a,...p)}return l}async awaitI18n(s){let{context:o,custom:a}=s;return o&&await this.getI18nService(a).prepareContext(o),this.i18n(s)}customI18n(s,o){if(Lt.isI18nKey(s)){let[a,l]=s.split(".");return this.i18n({custom:!0,context:a,key:l,...o})||s}return s}firstUpdated(s){super.firstUpdated(s),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(s){super.update(s),this.updateI18nAttributes((o,a,l)=>s.has(a)||typeof o.argsProvider=="function"),this.updateI18nProperties(o=>typeof o.argsProvider=="function")}onI18nUpdate(s){this.updateI18nAttributes((o,a,l)=>{var c;return((c=l?.context)===null||c===void 0?void 0:c.toLowerCase())===s}),this.updateI18nProperties(o=>o.context.toLowerCase()===s),this.requestUpdate()}updateI18nAttributes(s){var o,a;let l=this,c=(u,d,p)=>p?.context&&p.key&&s(u,d,p)?{...p,message:this.i18n({context:p.context,key:p.key,custom:p.custom,...u})}:p;(o=this[sr])===null||o===void 0||o.forEach((u,d)=>l[d]=c(u,d,l[d])),(a=this[Xo])===null||a===void 0||a.forEach((u,d)=>{var p;return l[d]=(p=l[d])===null||p===void 0?void 0:p.map(y=>c(u,d,y))})}updateI18nProperties(s){var o;(o=this[Zo])===null||o===void 0||o.forEach((a,l)=>{s(a,l)&&(this[l]=this.i18n(a))})}addI18nMessages(s,o,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(s,o,a)}addI18nContext(s,o,a){let l=(typeof s=="string"?s:s.name).toLowerCase();a=typeof s=="string"?a:s.custom,this[cn].set(l,{isCustomContext:a}),this[ir].has(l)||this[ir].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,o)}hasI18nContext(s){return this[cn].has(s.toLowerCase())}connectedCallback(){super.connectedCallback(),this[cn].forEach((s,o)=>this.addI18nContext(o,void 0,s.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[ir].forEach(s=>s()),this[ir].clear()}}return t=cn,r=ir,du([(0,Yo.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),Nt=class extends Jo(Pt.FtLitElement){},un=class extends Jo(Pt.FtLitElementRedux){};var Qo=h(B());var ea=Qo.css`
176
- `;var dn=h(B()),kt=h(ee()),pn=h(C());var Dt=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},pe=class extends un{constructor(){super(),this.editorMode=!1,this.editorMessage="Select a context and a label key.",this.addStore(w)}render(){return!this.key||!this.context?this.editorMode?this.editorMessage:dn.nothing:dn.html`
175
+ `}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(t){var r;super.update(t),t.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),t.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),t.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),t.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),t.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),t.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),t.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),t.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),t.has("session")&&this.stateManager.setSession(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(n=>Tt.addContext(n)),t.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),t.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),t.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};M.elementDefinitions={};M.styles=Bo;W([(0,J.property)()],M.prototype,"baseUrl",void 0);W([(0,J.property)()],M.prototype,"tenantId",void 0);W([(0,J.property)()],M.prototype,"apiIntegrationIdentifier",void 0);W([(0,J.property)()],M.prototype,"apiIntegrationAppVersion",void 0);W([(0,J.property)()],M.prototype,"uiLocale",void 0);W([(0,tt.jsonProperty)(null)],M.prototype,"availableUiLocales",void 0);W([(0,tt.jsonProperty)(null)],M.prototype,"metadataConfiguration",void 0);W([(0,J.property)({type:Boolean})],M.prototype,"editorMode",void 0);W([(0,J.property)({type:Boolean})],M.prototype,"noCustom",void 0);W([(0,J.property)({type:Boolean})],M.prototype,"openExternalDocumentInNewTab",void 0);W([(0,J.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],M.prototype,"noCustomComponent",void 0);W([(0,J.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],M.prototype,"noCustomCode",void 0);W([(0,J.property)({type:Boolean})],M.prototype,"withManualResources",void 0);W([(0,J.property)({type:Boolean})],M.prototype,"navigatorOnline",void 0);W([(0,J.property)({type:Boolean})],M.prototype,"forcedOffline",void 0);W([(0,J.property)({type:Boolean})],M.prototype,"authenticationRequired",void 0);W([(0,tt.jsonProperty)([])],M.prototype,"messageContexts",void 0);W([(0,tt.jsonProperty)(void 0)],M.prototype,"session",void 0);var zo=h(A());var jo={"ft-app-context":M};(0,zo.customElements)(jo);var Ot=class e{static build(t){return new e(t)}static buildCustom(t){return new e(t,!0)}static fromGwt(t){return new e(t)}get service(){return this.custom?on:Tt}constructor(t,r=!1){this.name=t,this.custom=r,this.properties=new Proxy({},{get:(n,i)=>{let s=i;return o=>({context:this.name,key:s,custom:this.custom,args:typeof o=="function"?void 0:o,argsProvider:typeof o=="function"?o:void 0})}}),this.messages=new Proxy({},{get:(n,i)=>(...s)=>this.service.resolveMessage(this.name,i,...s)}),this.rawMessages=new Proxy({},{get:(n,i)=>this.service.resolveRawMessage(this.name,i)}),this.keys=new Proxy({},{get:(n,i)=>()=>i}),this.attributes=new Proxy({},{get:(n,i)=>()=>({context:this.name,key:i,message:this.service.resolveRawMessage(this.name,i)})})}};var Nt=h(A());var Wo=h(Q());var si=class{fromLocalizableLabel(t){return t.type=="PLAIN_TEXT"?{message:t.text}:{key:t.key,custom:t.type=="LOCALIZED_CUSTOM",context:t.context,message:t.key}}fromAttribute(t){if(t!=null)try{return JSON.parse(t)}catch{if(this.isI18nKey(t)){let[r,n]=t.split(".");return{context:r,key:n,custom:r!=="officialContext",message:""}}return{message:t}}}toAttribute(t){if(t!=null)return JSON.stringify(t)}isI18nKey(t){return t.match(/^[\w-]+\.[\w-]+$/)}},Rt=new si;var Jc=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},sr=Symbol("i18nAttributes"),Ko=Symbol("i18nListAttributes"),Go=Symbol("i18nProperties"),cn=Symbol("i18nContexts"),ir=Symbol("i18nUnsubs"),qo=(0,Nt.applyMixinOnce)(Symbol("withI18n"),function(e){var t,r;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[r]=new Map}getI18nService(s){return s??this.useCustomMessageContexts?on:Tt}i18n(s){let{context:o,key:a,message:l}=s,{custom:c,args:d,argsProvider:u}=s;if(o&&a){this.hasI18nContext(o)||this.addI18nContext(o,void 0,c);let p=d??(u?u(this):[]);return this.getI18nService(c).resolveMessage(o,a,...p)}return l}async awaitI18n(s){let{context:o,custom:a}=s;return o&&await this.getI18nService(a).prepareContext(o),this.i18n(s)}customI18n(s,o){if(Rt.isI18nKey(s)){let[a,l]=s.split(".");return this.i18n({custom:!0,context:a,key:l,...o})||s}return s}firstUpdated(s){super.firstUpdated(s),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(s){super.update(s),this.updateI18nAttributes((o,a,l)=>s.has(a)||typeof o.argsProvider=="function"),this.updateI18nProperties(o=>typeof o.argsProvider=="function")}onI18nUpdate(s){this.updateI18nAttributes((o,a,l)=>{var c;return((c=l?.context)===null||c===void 0?void 0:c.toLowerCase())===s}),this.updateI18nProperties(o=>o.context.toLowerCase()===s),this.requestUpdate()}updateI18nAttributes(s){var o,a;let l=this,c=(d,u,p)=>p?.context&&p.key&&s(d,u,p)?{...p,message:this.i18n({context:p.context,key:p.key,custom:p.custom,...d})}:p;(o=this[sr])===null||o===void 0||o.forEach((d,u)=>l[u]=c(d,u,l[u])),(a=this[Ko])===null||a===void 0||a.forEach((d,u)=>{var p;return l[u]=(p=l[u])===null||p===void 0?void 0:p.map(y=>c(d,u,y))})}updateI18nProperties(s){var o;(o=this[Go])===null||o===void 0||o.forEach((a,l)=>{s(a,l)&&(this[l]=this.i18n(a))})}addI18nMessages(s,o,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(s,o,a)}addI18nContext(s,o,a){let l=(typeof s=="string"?s:s.name).toLowerCase();a=typeof s=="string"?a:s.custom,this[cn].set(l,{isCustomContext:a}),this[ir].has(l)||this[ir].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,o)}hasI18nContext(s){return this[cn].has(s.toLowerCase())}connectedCallback(){super.connectedCallback(),this[cn].forEach((s,o)=>this.addI18nContext(o,void 0,s.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[ir].forEach(s=>s()),this[ir].clear()}}return t=cn,r=ir,Jc([(0,Wo.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),Lt=class extends qo(Nt.FtLitElement){},un=class extends qo(Nt.FtLitElementRedux){};var Yo=h(U());var Xo=Yo.css`
176
+ `;var dn=h(U()),Dt=h(Q()),pn=h(A());var Pt=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},pe=class extends un{constructor(){super(),this.editorMode=!1,this.editorMessage="Select a context and a label key.",this.addStore(S)}render(){return!this.key||!this.context?this.editorMode?this.editorMessage:dn.nothing:dn.html`
177
177
  <span class="ft-i18n">
178
178
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
179
179
  </span>
180
- `}update(t){var r;super.update(t),["context","key","defaultMessage"].some(n=>t.has(n))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};pe.elementDefinitions={};pe.styles=ea;Dt([(0,pn.redux)()],pe.prototype,"editorMode",void 0);Dt([(0,kt.property)()],pe.prototype,"context",void 0);Dt([(0,kt.property)()],pe.prototype,"key",void 0);Dt([(0,pn.jsonProperty)([])],pe.prototype,"args",void 0);Dt([(0,kt.property)()],pe.prototype,"defaultMessage",void 0);Dt([(0,kt.state)()],pe.prototype,"editorMessage",void 0);var ra=h(C());var ta={"ft-i18n":pe};(0,ra.customElements)(ta);var ai=Rt.build("ftDrawer"),na={closeDrawer:"Close drawer"};var Ht=h(B()),bt=h(ee()),jl=h(C()),zl=h(fn());var hi=globalThis,sa=e=>e,hn=hi.trustedTypes,oa=hn?hn.createPolicy("lit-html",{createHTML:e=>e}):void 0,pa="$lit$",Fe=`lit$${Math.random().toFixed(9).slice(2)}$`,fa="?"+Fe,pu=`<${fa}>`,st=document,mn=()=>st.createComment(""),ar=e=>e===null||typeof e!="object"&&typeof e!="function",mi=Array.isArray,fu=e=>mi(e)||typeof e?.[Symbol.iterator]=="function",li=`[
181
- \f\r]`,or=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,aa=/-->/g,la=/>/g,nt=RegExp(`>|${li}(?:([^\\s"'>=/]+)(${li}*=${li}*(?:[^
182
- \f\r"'\`<>=]|("|')|))|$)`,"g"),ca=/'/g,ua=/"/g,ha=/^(?:script|style|textarea|title)$/i,yi=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),ma=yi(1),ya=yi(2),ga=yi(3),lr=Symbol.for("lit-noChange"),F=Symbol.for("lit-nothing"),da=new WeakMap,it=st.createTreeWalker(st,129);function xa(e,t){if(!mi(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return oa!==void 0?oa.createHTML(t):t}var hu=(e,t)=>{let r=e.length-1,n=[],i,s=t===2?"<svg>":t===3?"<math>":"",o=or;for(let a=0;a<r;a++){let l=e[a],c,u,d=-1,p=0;for(;p<l.length&&(o.lastIndex=p,u=o.exec(l),u!==null);)p=o.lastIndex,o===or?u[1]==="!--"?o=aa:u[1]!==void 0?o=la:u[2]!==void 0?(ha.test(u[2])&&(i=RegExp("</"+u[2],"g")),o=nt):u[3]!==void 0&&(o=nt):o===nt?u[0]===">"?(o=i??or,d=-1):u[1]===void 0?d=-2:(d=o.lastIndex-u[2].length,c=u[1],o=u[3]===void 0?nt:u[3]==='"'?ua:ca):o===ua||o===ca?o=nt:o===aa||o===la?o=or:(o=nt,i=void 0);let y=o===nt&&e[a+1].startsWith("/>")?" ":"";s+=o===or?l+pu:d>=0?(n.push(c),l.slice(0,d)+pa+l.slice(d)+Fe+y):l+Fe+(d===-2?a:y)}return[xa(e,s+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},cr=class e{constructor({strings:t,_$litType$:r},n){let i;this.parts=[];let s=0,o=0,a=t.length-1,l=this.parts,[c,u]=hu(t,r);if(this.el=e.createElement(c,n),it.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(i=it.nextNode())!==null&&l.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(let d of i.getAttributeNames())if(d.endsWith(pa)){let p=u[o++],y=i.getAttribute(d).split(Fe),v=/([.?@])?(.*)/.exec(p);l.push({type:1,index:s,name:v[2],strings:y,ctor:v[1]==="."?ui:v[1]==="?"?di:v[1]==="@"?pi:It}),i.removeAttribute(d)}else d.startsWith(Fe)&&(l.push({type:6,index:s}),i.removeAttribute(d));if(ha.test(i.tagName)){let d=i.textContent.split(Fe),p=d.length-1;if(p>0){i.textContent=hn?hn.emptyScript:"";for(let y=0;y<p;y++)i.append(d[y],mn()),it.nextNode(),l.push({type:2,index:++s});i.append(d[p],mn())}}}else if(i.nodeType===8)if(i.data===fa)l.push({type:2,index:s});else{let d=-1;for(;(d=i.data.indexOf(Fe,d+1))!==-1;)l.push({type:7,index:s}),d+=Fe.length-1}s++}}static createElement(t,r){let n=st.createElement("template");return n.innerHTML=t,n}};function Mt(e,t,r=e,n){if(t===lr)return t;let i=n!==void 0?r._$Co?.[n]:r._$Cl,s=ar(t)?void 0:t._$litDirective$;return i?.constructor!==s&&(i?._$AO?.(!1),s===void 0?i=void 0:(i=new s(e),i._$AT(e,r,n)),n!==void 0?(r._$Co??=[])[n]=i:r._$Cl=i),i!==void 0&&(t=Mt(e,i._$AS(e,t.values),i,n)),t}var ci=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:n}=this._$AD,i=(t?.creationScope??st).importNode(r,!0);it.currentNode=i;let s=it.nextNode(),o=0,a=0,l=n[0];for(;l!==void 0;){if(o===l.index){let c;l.type===2?c=new yn(s,s.nextSibling,this,t):l.type===1?c=new l.ctor(s,l.name,l.strings,this,t):l.type===6&&(c=new fi(s,this,t)),this._$AV.push(c),l=n[++a]}o!==l?.index&&(s=it.nextNode(),o++)}return it.currentNode=st,i}p(t){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,r),r+=n.strings.length-2):n._$AI(t[r])),r++}},yn=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,i){this.type=2,this._$AH=F,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=Mt(this,t,r),ar(t)?t===F||t==null||t===""?(this._$AH!==F&&this._$AR(),this._$AH=F):t!==this._$AH&&t!==lr&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):fu(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==F&&ar(this._$AH)?this._$AA.nextSibling.data=t:this.T(st.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:n}=t,i=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=cr.createElement(xa(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let s=new ci(i,this),o=s.u(this.options);s.p(r),this.T(o),this._$AH=s}}_$AC(t){let r=da.get(t.strings);return r===void 0&&da.set(t.strings,r=new cr(t)),r}k(t){mi(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,i=0;for(let s of t)i===r.length?r.push(n=new e(this.O(mn()),this.O(mn()),this,this.options)):n=r[i],n._$AI(s),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t!==this._$AB;){let n=sa(t).nextSibling;sa(t).remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},It=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,i,s){this.type=1,this._$AH=F,this._$AN=void 0,this.element=t,this.name=r,this._$AM=i,this.options=s,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=F}_$AI(t,r=this,n,i){let s=this.strings,o=!1;if(s===void 0)t=Mt(this,t,r,0),o=!ar(t)||t!==this._$AH&&t!==lr,o&&(this._$AH=t);else{let a=t,l,c;for(t=s[0],l=0;l<s.length-1;l++)c=Mt(this,a[n+l],r,l),c===lr&&(c=this._$AH[l]),o||=!ar(c)||c!==this._$AH[l],c===F?t=F:t!==F&&(t+=(c??"")+s[l+1]),this._$AH[l]=c}o&&!i&&this.j(t)}j(t){t===F?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ui=class extends It{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===F?void 0:t}},di=class extends It{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==F)}},pi=class extends It{constructor(t,r,n,i,s){super(t,r,n,i,s),this.type=5}_$AI(t,r=this){if((t=Mt(this,t,r,0)??F)===lr)return;let n=this._$AH,i=t===F&&n!==F||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,s=t!==F&&(n===F||i);i&&this.element.removeEventListener(this.name,this,n),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},fi=class{constructor(t,r,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){Mt(this,t)}};var mu=hi.litHtmlPolyfillSupport;mu?.(cr,yn),(hi.litHtmlVersions??=[]).push("3.3.3");var ba=Symbol.for(""),yu=e=>{if(e?.r===ba)return e?._$litStatic$},gi=e=>({_$litStatic$:e,r:ba});var va=new Map,xi=e=>(t,...r)=>{let n=r.length,i,s,o=[],a=[],l,c=0,u=!1;for(;c<n;){for(l=t[c];c<n&&(s=r[c],(i=yu(s))!==void 0);)l+=i+t[++c],u=!0;c!==n&&a.push(s),o.push(l),c++}if(c===n&&o.push(t[n]),u){let d=o.join("$$lit$$");(t=va.get(d))===void 0&&(o.raw=o,va.set(d,t=o)),r=a}return e(t,...r)},vi=xi(ma),Lm=xi(ya),Nm=xi(ga);var bi=h(ee()),ka=h(C());var fe;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button"})(fe||(fe={}));var he=h(B()),f=h(C()),Ea=f.FtCssVariableFactory.extend("--ft-typography-font-family","",f.designSystemVariables.titleFont),De=f.FtCssVariableFactory.extend("--ft-typography-font-family","",f.designSystemVariables.contentFont),g={fontFamily:De,fontSize:f.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:f.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:f.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:f.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:f.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:f.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},ot={fontFamily:f.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Ea),fontSize:f.FtCssVariableFactory.extend("--ft-typography-title-font-size","",g.fontSize,"20px"),fontWeight:f.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",g.fontWeight,"normal"),letterSpacing:f.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",g.letterSpacing,"0.15px"),lineHeight:f.FtCssVariableFactory.extend("--ft-typography-title-line-height","",g.lineHeight,"1.2"),textTransform:f.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",g.textTransform,"inherit"),textDecoration:f.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",g.textDecoration,"inherit")},at={fontFamily:f.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Ea),fontSize:f.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",g.fontSize,"14px"),fontWeight:f.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",g.fontWeight,"normal"),letterSpacing:f.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",g.letterSpacing,"0.105px"),lineHeight:f.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",g.lineHeight,"1.7"),textTransform:f.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",g.textTransform,"inherit"),textDecoration:f.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",g.textDecoration,"inherit")},lt={fontFamily:f.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",De),fontSize:f.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",g.fontSize,"16px"),fontWeight:f.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",g.fontWeight,"600"),letterSpacing:f.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",g.letterSpacing,"0.144px"),lineHeight:f.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",g.lineHeight,"1.5"),textTransform:f.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",g.textTransform,"inherit"),textDecoration:f.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",g.textDecoration,"inherit")},ct={fontFamily:f.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",De),fontSize:f.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",g.fontSize,"14px"),fontWeight:f.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",g.fontWeight,"normal"),letterSpacing:f.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",g.letterSpacing,"0.098px"),lineHeight:f.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",g.lineHeight,"1.7"),textTransform:f.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",g.textTransform,"inherit"),textDecoration:f.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",g.textDecoration,"inherit")},ut={fontFamily:f.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",De),fontSize:f.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",g.fontSize,"16px"),fontWeight:f.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",g.fontWeight,"normal"),letterSpacing:f.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",g.letterSpacing,"0.496px"),lineHeight:f.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",g.lineHeight,"1.5"),textTransform:f.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",g.textTransform,"inherit"),textDecoration:f.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",g.textDecoration,"inherit")},dt={fontFamily:f.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",De),fontSize:f.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",g.fontSize,"14px"),fontWeight:f.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",g.fontWeight,"normal"),letterSpacing:f.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",g.letterSpacing,"0.252px"),lineHeight:f.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",g.lineHeight,"1.4"),textTransform:f.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",g.textTransform,"inherit"),textDecoration:f.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",g.textDecoration,"inherit")},pt={fontFamily:f.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",De),fontSize:f.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",g.fontSize,"12px"),fontWeight:f.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",g.fontWeight,"normal"),letterSpacing:f.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",g.letterSpacing,"0.396px"),lineHeight:f.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",g.lineHeight,"1.33"),textTransform:f.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",g.textTransform,"inherit"),textDecoration:f.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",g.textDecoration,"inherit")},ft={fontFamily:f.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",De),fontSize:f.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",g.fontSize,"10px"),fontWeight:f.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",g.fontWeight,"normal"),letterSpacing:f.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",g.letterSpacing,"0.33px"),lineHeight:f.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",g.lineHeight,"1.6"),textTransform:f.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",g.textTransform,"inherit"),textDecoration:f.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",g.textDecoration,"inherit")},ht={fontFamily:f.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",De),fontSize:f.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",g.fontSize,"10px"),fontWeight:f.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",g.fontWeight,"normal"),letterSpacing:f.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",g.letterSpacing,"1.5px"),lineHeight:f.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",g.lineHeight,"1.6"),textTransform:f.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",g.textTransform,"uppercase"),textDecoration:f.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",g.textDecoration,"inherit")},be={fontFamily:f.FtCssVariableFactory.extend("--ft-typography-button-font-family","",De),fontSize:f.FtCssVariableFactory.extend("--ft-typography-button-font-size","",g.fontSize,"14px"),fontWeight:f.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",g.fontWeight,"600"),letterSpacing:f.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",g.letterSpacing,"1.246px"),lineHeight:f.FtCssVariableFactory.extend("--ft-typography-button-line-height","",g.lineHeight,"1.15"),textTransform:f.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",g.textTransform,"uppercase"),textDecoration:f.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",g.textDecoration,"inherit")},Aa=he.css`
180
+ `}update(t){var r;super.update(t),["context","key","defaultMessage"].some(n=>t.has(n))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};pe.elementDefinitions={};pe.styles=Xo;Pt([(0,pn.redux)()],pe.prototype,"editorMode",void 0);Pt([(0,Dt.property)()],pe.prototype,"context",void 0);Pt([(0,Dt.property)()],pe.prototype,"key",void 0);Pt([(0,pn.jsonProperty)([])],pe.prototype,"args",void 0);Pt([(0,Dt.property)()],pe.prototype,"defaultMessage",void 0);Pt([(0,Dt.state)()],pe.prototype,"editorMessage",void 0);var Jo=h(A());var Zo={"ft-i18n":pe};(0,Jo.customElements)(Zo);var oi=Ot.build("ftDrawer"),Qo={closeDrawer:"Close drawer"};var Bt=h(U()),vt=h(Q()),Bl=h(A()),Hl=h(fn());var fi=globalThis,ta=e=>e,hn=fi.trustedTypes,ra=hn?hn.createPolicy("lit-html",{createHTML:e=>e}):void 0,la="$lit$",He=`lit$${Math.random().toFixed(9).slice(2)}$`,ca="?"+He,Qc=`<${ca}>`,it=document,mn=()=>it.createComment(""),ar=e=>e===null||typeof e!="object"&&typeof e!="function",hi=Array.isArray,eu=e=>hi(e)||typeof e?.[Symbol.iterator]=="function",ai=`[
181
+ \f\r]`,or=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,na=/-->/g,ia=/>/g,rt=RegExp(`>|${ai}(?:([^\\s"'>=/]+)(${ai}*=${ai}*(?:[^
182
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),sa=/'/g,oa=/"/g,ua=/^(?:script|style|textarea|title)$/i,mi=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),da=mi(1),pa=mi(2),fa=mi(3),lr=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),aa=new WeakMap,nt=it.createTreeWalker(it,129);function ha(e,t){if(!hi(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return ra!==void 0?ra.createHTML(t):t}var tu=(e,t)=>{let r=e.length-1,n=[],i,s=t===2?"<svg>":t===3?"<math>":"",o=or;for(let a=0;a<r;a++){let l=e[a],c,d,u=-1,p=0;for(;p<l.length&&(o.lastIndex=p,d=o.exec(l),d!==null);)p=o.lastIndex,o===or?d[1]==="!--"?o=na:d[1]!==void 0?o=ia:d[2]!==void 0?(ua.test(d[2])&&(i=RegExp("</"+d[2],"g")),o=rt):d[3]!==void 0&&(o=rt):o===rt?d[0]===">"?(o=i??or,u=-1):d[1]===void 0?u=-2:(u=o.lastIndex-d[2].length,c=d[1],o=d[3]===void 0?rt:d[3]==='"'?oa:sa):o===oa||o===sa?o=rt:o===na||o===ia?o=or:(o=rt,i=void 0);let y=o===rt&&e[a+1].startsWith("/>")?" ":"";s+=o===or?l+Qc:u>=0?(n.push(c),l.slice(0,u)+la+l.slice(u)+He+y):l+He+(u===-2?a:y)}return[ha(e,s+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},cr=class e{constructor({strings:t,_$litType$:r},n){let i;this.parts=[];let s=0,o=0,a=t.length-1,l=this.parts,[c,d]=tu(t,r);if(this.el=e.createElement(c,n),nt.currentNode=this.el.content,r===2||r===3){let u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(i=nt.nextNode())!==null&&l.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(let u of i.getAttributeNames())if(u.endsWith(la)){let p=d[o++],y=i.getAttribute(u).split(He),v=/([.?@])?(.*)/.exec(p);l.push({type:1,index:s,name:v[2],strings:y,ctor:v[1]==="."?ci:v[1]==="?"?ui:v[1]==="@"?di:Mt}),i.removeAttribute(u)}else u.startsWith(He)&&(l.push({type:6,index:s}),i.removeAttribute(u));if(ua.test(i.tagName)){let u=i.textContent.split(He),p=u.length-1;if(p>0){i.textContent=hn?hn.emptyScript:"";for(let y=0;y<p;y++)i.append(u[y],mn()),nt.nextNode(),l.push({type:2,index:++s});i.append(u[p],mn())}}}else if(i.nodeType===8)if(i.data===ca)l.push({type:2,index:s});else{let u=-1;for(;(u=i.data.indexOf(He,u+1))!==-1;)l.push({type:7,index:s}),u+=He.length-1}s++}}static createElement(t,r){let n=it.createElement("template");return n.innerHTML=t,n}};function kt(e,t,r=e,n){if(t===lr)return t;let i=n!==void 0?r._$Co?.[n]:r._$Cl,s=ar(t)?void 0:t._$litDirective$;return i?.constructor!==s&&(i?._$AO?.(!1),s===void 0?i=void 0:(i=new s(e),i._$AT(e,r,n)),n!==void 0?(r._$Co??=[])[n]=i:r._$Cl=i),i!==void 0&&(t=kt(e,i._$AS(e,t.values),i,n)),t}var li=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:n}=this._$AD,i=(t?.creationScope??it).importNode(r,!0);nt.currentNode=i;let s=nt.nextNode(),o=0,a=0,l=n[0];for(;l!==void 0;){if(o===l.index){let c;l.type===2?c=new yn(s,s.nextSibling,this,t):l.type===1?c=new l.ctor(s,l.name,l.strings,this,t):l.type===6&&(c=new pi(s,this,t)),this._$AV.push(c),l=n[++a]}o!==l?.index&&(s=nt.nextNode(),o++)}return nt.currentNode=it,i}p(t){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,r),r+=n.strings.length-2):n._$AI(t[r])),r++}},yn=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,i){this.type=2,this._$AH=H,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=kt(this,t,r),ar(t)?t===H||t==null||t===""?(this._$AH!==H&&this._$AR(),this._$AH=H):t!==this._$AH&&t!==lr&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):eu(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==H&&ar(this._$AH)?this._$AA.nextSibling.data=t:this.T(it.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:n}=t,i=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=cr.createElement(ha(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let s=new li(i,this),o=s.u(this.options);s.p(r),this.T(o),this._$AH=s}}_$AC(t){let r=aa.get(t.strings);return r===void 0&&aa.set(t.strings,r=new cr(t)),r}k(t){hi(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,i=0;for(let s of t)i===r.length?r.push(n=new e(this.O(mn()),this.O(mn()),this,this.options)):n=r[i],n._$AI(s),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t!==this._$AB;){let n=ta(t).nextSibling;ta(t).remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},Mt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,i,s){this.type=1,this._$AH=H,this._$AN=void 0,this.element=t,this.name=r,this._$AM=i,this.options=s,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=H}_$AI(t,r=this,n,i){let s=this.strings,o=!1;if(s===void 0)t=kt(this,t,r,0),o=!ar(t)||t!==this._$AH&&t!==lr,o&&(this._$AH=t);else{let a=t,l,c;for(t=s[0],l=0;l<s.length-1;l++)c=kt(this,a[n+l],r,l),c===lr&&(c=this._$AH[l]),o||=!ar(c)||c!==this._$AH[l],c===H?t=H:t!==H&&(t+=(c??"")+s[l+1]),this._$AH[l]=c}o&&!i&&this.j(t)}j(t){t===H?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ci=class extends Mt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===H?void 0:t}},ui=class extends Mt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==H)}},di=class extends Mt{constructor(t,r,n,i,s){super(t,r,n,i,s),this.type=5}_$AI(t,r=this){if((t=kt(this,t,r,0)??H)===lr)return;let n=this._$AH,i=t===H&&n!==H||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,s=t!==H&&(n===H||i);i&&this.element.removeEventListener(this.name,this,n),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},pi=class{constructor(t,r,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){kt(this,t)}};var ru=fi.litHtmlPolyfillSupport;ru?.(cr,yn),(fi.litHtmlVersions??=[]).push("3.3.3");var ya=Symbol.for(""),nu=e=>{if(e?.r===ya)return e?._$litStatic$},yi=e=>({_$litStatic$:e,r:ya});var ma=new Map,gi=e=>(t,...r)=>{let n=r.length,i,s,o=[],a=[],l,c=0,d=!1;for(;c<n;){for(l=t[c];c<n&&(s=r[c],(i=nu(s))!==void 0);)l+=i+t[++c],d=!0;c!==n&&a.push(s),o.push(l),c++}if(c===n&&o.push(t[n]),d){let u=o.join("$$lit$$");(t=ma.get(u))===void 0&&(o.raw=o,ma.set(u,t=o)),r=a}return e(t,...r)},xi=gi(da),hm=gi(pa),mm=gi(fa);var vi=h(Q()),La=h(A());var fe;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button"})(fe||(fe={}));var he=h(U()),f=h(A()),ga=f.FtCssVariableFactory.extend("--ft-typography-font-family","",f.designSystemVariables.titleFont),De=f.FtCssVariableFactory.extend("--ft-typography-font-family","",f.designSystemVariables.contentFont),g={fontFamily:De,fontSize:f.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:f.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:f.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:f.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:f.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:f.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},st={fontFamily:f.FtCssVariableFactory.extend("--ft-typography-title-font-family","",ga),fontSize:f.FtCssVariableFactory.extend("--ft-typography-title-font-size","",g.fontSize,"20px"),fontWeight:f.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",g.fontWeight,"normal"),letterSpacing:f.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",g.letterSpacing,"0.15px"),lineHeight:f.FtCssVariableFactory.extend("--ft-typography-title-line-height","",g.lineHeight,"1.2"),textTransform:f.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",g.textTransform,"inherit"),textDecoration:f.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",g.textDecoration,"inherit")},ot={fontFamily:f.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",ga),fontSize:f.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",g.fontSize,"14px"),fontWeight:f.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",g.fontWeight,"normal"),letterSpacing:f.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",g.letterSpacing,"0.105px"),lineHeight:f.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",g.lineHeight,"1.7"),textTransform:f.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",g.textTransform,"inherit"),textDecoration:f.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",g.textDecoration,"inherit")},at={fontFamily:f.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",De),fontSize:f.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",g.fontSize,"16px"),fontWeight:f.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",g.fontWeight,"600"),letterSpacing:f.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",g.letterSpacing,"0.144px"),lineHeight:f.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",g.lineHeight,"1.5"),textTransform:f.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",g.textTransform,"inherit"),textDecoration:f.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",g.textDecoration,"inherit")},lt={fontFamily:f.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",De),fontSize:f.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",g.fontSize,"14px"),fontWeight:f.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",g.fontWeight,"normal"),letterSpacing:f.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",g.letterSpacing,"0.098px"),lineHeight:f.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",g.lineHeight,"1.7"),textTransform:f.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",g.textTransform,"inherit"),textDecoration:f.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",g.textDecoration,"inherit")},ct={fontFamily:f.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",De),fontSize:f.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",g.fontSize,"16px"),fontWeight:f.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",g.fontWeight,"normal"),letterSpacing:f.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",g.letterSpacing,"0.496px"),lineHeight:f.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",g.lineHeight,"1.5"),textTransform:f.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",g.textTransform,"inherit"),textDecoration:f.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",g.textDecoration,"inherit")},ut={fontFamily:f.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",De),fontSize:f.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",g.fontSize,"14px"),fontWeight:f.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",g.fontWeight,"normal"),letterSpacing:f.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",g.letterSpacing,"0.252px"),lineHeight:f.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",g.lineHeight,"1.4"),textTransform:f.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",g.textTransform,"inherit"),textDecoration:f.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",g.textDecoration,"inherit")},dt={fontFamily:f.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",De),fontSize:f.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",g.fontSize,"12px"),fontWeight:f.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",g.fontWeight,"normal"),letterSpacing:f.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",g.letterSpacing,"0.396px"),lineHeight:f.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",g.lineHeight,"1.33"),textTransform:f.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",g.textTransform,"inherit"),textDecoration:f.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",g.textDecoration,"inherit")},pt={fontFamily:f.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",De),fontSize:f.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",g.fontSize,"10px"),fontWeight:f.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",g.fontWeight,"normal"),letterSpacing:f.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",g.letterSpacing,"0.33px"),lineHeight:f.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",g.lineHeight,"1.6"),textTransform:f.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",g.textTransform,"inherit"),textDecoration:f.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",g.textDecoration,"inherit")},ft={fontFamily:f.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",De),fontSize:f.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",g.fontSize,"10px"),fontWeight:f.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",g.fontWeight,"normal"),letterSpacing:f.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",g.letterSpacing,"1.5px"),lineHeight:f.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",g.lineHeight,"1.6"),textTransform:f.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",g.textTransform,"uppercase"),textDecoration:f.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",g.textDecoration,"inherit")},be={fontFamily:f.FtCssVariableFactory.extend("--ft-typography-button-font-family","",De),fontSize:f.FtCssVariableFactory.extend("--ft-typography-button-font-size","",g.fontSize,"14px"),fontWeight:f.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",g.fontWeight,"600"),letterSpacing:f.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",g.letterSpacing,"1.246px"),lineHeight:f.FtCssVariableFactory.extend("--ft-typography-button-line-height","",g.lineHeight,"1.15"),textTransform:f.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",g.textTransform,"uppercase"),textDecoration:f.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",g.textDecoration,"inherit")},xa=he.css`
183
183
  .ft-typography--title {
184
+ font-family: ${st.fontFamily};
185
+ font-size: ${st.fontSize};
186
+ font-weight: ${st.fontWeight};
187
+ letter-spacing: ${st.letterSpacing};
188
+ line-height: ${st.lineHeight};
189
+ text-transform: ${st.textTransform};
190
+ text-decoration: ${st.textDecoration};
191
+ }
192
+ `,va=he.css`
193
+ .ft-typography--title-dense {
184
194
  font-family: ${ot.fontFamily};
185
195
  font-size: ${ot.fontSize};
186
196
  font-weight: ${ot.fontWeight};
@@ -189,8 +199,8 @@
189
199
  text-transform: ${ot.textTransform};
190
200
  text-decoration: ${ot.textDecoration};
191
201
  }
192
- `,Sa=he.css`
193
- .ft-typography--title-dense {
202
+ `,ba=he.css`
203
+ .ft-typography--subtitle1 {
194
204
  font-family: ${at.fontFamily};
195
205
  font-size: ${at.fontSize};
196
206
  font-weight: ${at.fontWeight};
@@ -199,8 +209,8 @@
199
209
  text-transform: ${at.textTransform};
200
210
  text-decoration: ${at.textDecoration};
201
211
  }
202
- `,_a=he.css`
203
- .ft-typography--subtitle1 {
212
+ `,Ea=he.css`
213
+ .ft-typography--subtitle2 {
204
214
  font-family: ${lt.fontFamily};
205
215
  font-size: ${lt.fontSize};
206
216
  font-weight: ${lt.fontWeight};
@@ -209,8 +219,9 @@
209
219
  text-transform: ${lt.textTransform};
210
220
  text-decoration: ${lt.textDecoration};
211
221
  }
212
- `,Ca=he.css`
213
- .ft-typography--subtitle2 {
222
+
223
+ `,Aa=he.css`
224
+ .ft-typography--body1 {
214
225
  font-family: ${ct.fontFamily};
215
226
  font-size: ${ct.fontSize};
216
227
  font-weight: ${ct.fontWeight};
@@ -219,9 +230,8 @@
219
230
  text-transform: ${ct.textTransform};
220
231
  text-decoration: ${ct.textDecoration};
221
232
  }
222
-
223
- `,wa=he.css`
224
- .ft-typography--body1 {
233
+ `,Sa=he.css`
234
+ .ft-typography--body2 {
225
235
  font-family: ${ut.fontFamily};
226
236
  font-size: ${ut.fontSize};
227
237
  font-weight: ${ut.fontWeight};
@@ -230,8 +240,8 @@
230
240
  text-transform: ${ut.textTransform};
231
241
  text-decoration: ${ut.textDecoration};
232
242
  }
233
- `,Oa=he.css`
234
- .ft-typography--body2 {
243
+ `,_a=he.css`
244
+ .ft-typography--caption {
235
245
  font-family: ${dt.fontFamily};
236
246
  font-size: ${dt.fontSize};
237
247
  font-weight: ${dt.fontWeight};
@@ -240,8 +250,8 @@
240
250
  text-transform: ${dt.textTransform};
241
251
  text-decoration: ${dt.textDecoration};
242
252
  }
243
- `,Ta=he.css`
244
- .ft-typography--caption {
253
+ `,Ca=he.css`
254
+ .ft-typography--breadcrumb {
245
255
  font-family: ${pt.fontFamily};
246
256
  font-size: ${pt.fontSize};
247
257
  font-weight: ${pt.fontWeight};
@@ -250,8 +260,8 @@
250
260
  text-transform: ${pt.textTransform};
251
261
  text-decoration: ${pt.textDecoration};
252
262
  }
253
- `,Ra=he.css`
254
- .ft-typography--breadcrumb {
263
+ `,wa=he.css`
264
+ .ft-typography--overline {
255
265
  font-family: ${ft.fontFamily};
256
266
  font-size: ${ft.fontSize};
257
267
  font-weight: ${ft.fontWeight};
@@ -260,17 +270,7 @@
260
270
  text-transform: ${ft.textTransform};
261
271
  text-decoration: ${ft.textDecoration};
262
272
  }
263
- `,La=he.css`
264
- .ft-typography--overline {
265
- font-family: ${ht.fontFamily};
266
- font-size: ${ht.fontSize};
267
- font-weight: ${ht.fontWeight};
268
- letter-spacing: ${ht.letterSpacing};
269
- line-height: ${ht.lineHeight};
270
- text-transform: ${ht.textTransform};
271
- text-decoration: ${ht.textDecoration};
272
- }
273
- `,Na=he.css`
273
+ `,Ta=he.css`
274
274
  .ft-typography--button {
275
275
  font-family: ${be.fontFamily};
276
276
  font-size: ${be.fontSize};
@@ -280,19 +280,19 @@
280
280
  text-transform: ${be.textTransform};
281
281
  text-decoration: ${be.textDecoration};
282
282
  }
283
- `,Pa=he.css`
283
+ `,Oa=he.css`
284
284
  .ft-typography {
285
285
  vertical-align: inherit;
286
286
  }
287
- `;var Da=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},ae=class extends ka.FtLitElement{constructor(){super(...arguments),this.variant=fe.body1}render(){return this.element?vi`
288
- <${gi(this.element)}
287
+ `;var Ra=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},ae=class extends La.FtLitElement{constructor(){super(...arguments),this.variant=fe.body1}render(){return this.element?xi`
288
+ <${yi(this.element)}
289
289
  part="text"
290
290
  class="ft-typography ft-typography--${this.variant}">
291
291
  <slot></slot>
292
- </${gi(this.element)}>
293
- `:vi`
292
+ </${yi(this.element)}>
293
+ `:xi`
294
294
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
295
- `}};ae.styles=[Aa,Sa,_a,Ca,wa,Oa,Ta,Ra,La,Na,Pa];Da([(0,bi.property)()],ae.prototype,"element",void 0);Da([(0,bi.property)()],ae.prototype,"variant",void 0);var Ia=h(C());var Ma={"ft-typography":ae};(0,Ia.customElements)(Ma);var Le=h(C());var za=h(B()),q=h(ee()),Wa=h(fn()),ur=h(C());var Va=h(B()),V=h(C()),$a=V.FtCssVariableFactory.extend("--ft-ripple-color","",V.designSystemVariables.colorContent),te={color:$a,backgroundColor:V.FtCssVariableFactory.extend("--ft-ripple-background-color","",$a),opacityContentOnSurfacePressed:V.FtCssVariableFactory.external(V.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:V.FtCssVariableFactory.external(V.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:V.FtCssVariableFactory.external(V.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:V.FtCssVariableFactory.external(V.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:V.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Ua=V.FtCssVariableFactory.extend("--ft-ripple-color","",V.designSystemVariables.colorPrimary),Ba={color:Ua,backgroundColor:V.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ua)},Ha=V.FtCssVariableFactory.extend("--ft-ripple-color","",V.designSystemVariables.colorSecondary),Fa={color:Ha,backgroundColor:V.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ha)},ja=Va.css`
295
+ `}};ae.styles=[xa,va,ba,Ea,Aa,Sa,_a,Ca,wa,Ta,Oa];Ra([(0,vi.property)()],ae.prototype,"element",void 0);Ra([(0,vi.property)()],ae.prototype,"variant",void 0);var Pa=h(A());var Na={"ft-typography":ae};(0,Pa.customElements)(Na);var Le=h(A());var Ha=h(U()),G=h(Q()),Fa=h(fn()),ur=h(A());var Ua=h(U()),F=h(A()),Da=F.FtCssVariableFactory.extend("--ft-ripple-color","",F.designSystemVariables.colorContent),ee={color:Da,backgroundColor:F.FtCssVariableFactory.extend("--ft-ripple-background-color","",Da),opacityContentOnSurfacePressed:F.FtCssVariableFactory.external(F.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:F.FtCssVariableFactory.external(F.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:F.FtCssVariableFactory.external(F.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:F.FtCssVariableFactory.external(F.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:F.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},ka=F.FtCssVariableFactory.extend("--ft-ripple-color","",F.designSystemVariables.colorPrimary),Ma={color:ka,backgroundColor:F.FtCssVariableFactory.extend("--ft-ripple-background-color","",ka)},Ia=F.FtCssVariableFactory.extend("--ft-ripple-color","",F.designSystemVariables.colorSecondary),$a={color:Ia,backgroundColor:F.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ia)},Ba=Ua.css`
296
296
  :host {
297
297
  display: contents;
298
298
  /* Chrome 153+ UA stylesheet hides [unbounded]:not(:unbounded) elements (crbug.com/579043456) */
@@ -307,7 +307,7 @@
307
307
 
308
308
  .ft-ripple:not(.ft-ripple--unbounded) {
309
309
  overflow: hidden;
310
- border-radius: ${te.borderRadius};
310
+ border-radius: ${ee.borderRadius};
311
311
  }
312
312
 
313
313
  .ft-ripple .ft-ripple--background,
@@ -341,27 +341,27 @@
341
341
  }
342
342
 
343
343
  .ft-ripple .ft-ripple--background {
344
- background-color: ${te.backgroundColor};
344
+ background-color: ${ee.backgroundColor};
345
345
  }
346
346
 
347
347
  .ft-ripple .ft-ripple--effect {
348
- background-color: ${te.color};
348
+ background-color: ${ee.color};
349
349
  }
350
350
 
351
351
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
352
- background-color: ${Fa.backgroundColor};
352
+ background-color: ${$a.backgroundColor};
353
353
  }
354
354
 
355
355
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
356
- background-color: ${Fa.color};
356
+ background-color: ${$a.color};
357
357
  }
358
358
 
359
359
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
360
- background-color: ${Ba.backgroundColor};
360
+ background-color: ${Ma.backgroundColor};
361
361
  }
362
362
 
363
363
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
364
- background-color: ${Ba.color};
364
+ background-color: ${Ma.color};
365
365
  }
366
366
 
367
367
  .ft-ripple .ft-ripple--background {
@@ -391,33 +391,33 @@
391
391
  }
392
392
 
393
393
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
394
- opacity: ${te.opacityContentOnSurfaceHover};
394
+ opacity: ${ee.opacityContentOnSurfaceHover};
395
395
  }
396
396
 
397
397
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
398
- opacity: ${te.opacityContentOnSurfaceSelected};
398
+ opacity: ${ee.opacityContentOnSurfaceSelected};
399
399
  }
400
400
 
401
401
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
402
- opacity: ${te.opacityContentOnSurfaceFocused};
402
+ opacity: ${ee.opacityContentOnSurfaceFocused};
403
403
  }
404
404
 
405
405
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
406
- opacity: ${te.opacityContentOnSurfacePressed};
406
+ opacity: ${ee.opacityContentOnSurfacePressed};
407
407
  transform: translate(-50%, -50%) scale(1);
408
408
  }
409
- `;var re=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},U=class extends ur.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new ur.Debouncer(1e3),this.onTransitionStart=t=>{t.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=t=>{t.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new ur.Debouncer(10),this.moveRipple=t=>{var r,n;let{x:i,y:s}=this.getCoordinates(t),o=(n=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&n!==void 0?n:{x:0,y:0,width:0,height:0};this.originX=Math.round(i!=null?i-o.x:o.width/2),this.originY=Math.round(s!=null?s-o.y:o.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(t?.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return za.html`
409
+ `;var te=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},$=class extends ur.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new ur.Debouncer(1e3),this.onTransitionStart=t=>{t.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=t=>{t.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new ur.Debouncer(10),this.moveRipple=t=>{var r,n;let{x:i,y:s}=this.getCoordinates(t),o=(n=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&n!==void 0?n:{x:0,y:0,width:0,height:0};this.originX=Math.round(i!=null?i-o.x:o.width/2),this.originY=Math.round(s!=null?s-o.y:o.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(t?.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Ha.html`
410
410
  <style>
411
411
  .ft-ripple .ft-ripple--effect {
412
412
  left: ${this.originX}px;
413
413
  top: ${this.originY}px;
414
414
  }
415
415
  </style>
416
- <div class="${(0,Wa.classMap)(t)}">
416
+ <div class="${(0,Fa.classMap)(t)}">
417
417
  <div class="ft-ripple--background"></div>
418
418
  <div class="ft-ripple--effect"></div>
419
419
  </div>
420
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var r,n;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.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 t,r;let n=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;n&&this.setupFor((r=this.target)!==null&&r!==void 0?r:n)}forceFocusUpdate(){var t;!((t=this.target)===null||t===void 0)&&t.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>l=>{a.forEach(c=>window.addEventListener(c,this.endPress,{once:!0})),this.startPress(l)},n=r("mouseup","contextmenu"),i=r("touchend","touchcancel"),s=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},o={passive:!0};t.addEventListener("mouseover",this.startHover,o),t.addEventListener("mousemove",this.moveRipple,o),t.addEventListener("mouseleave",this.endHover,o),t.addEventListener("mousedown",n,o),t.addEventListener("touchstart",i,o),t.addEventListener("touchmove",this.moveRipple,o),t.addEventListener("keydown",s,o),t.addEventListener("focus",this.startFocus,o),t.addEventListener("blur",this.endFocus,o),t.addEventListener("focusin",this.startFocus,o),t.addEventListener("focusout",this.endFocus,o),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,o),t.removeEventListener("mousemove",this.moveRipple,o),t.removeEventListener("mouseleave",this.endHover,o),t.removeEventListener("mousedown",n,o),t.removeEventListener("touchstart",i,o),t.removeEventListener("touchmove",this.moveRipple,o),t.removeEventListener("keydown",s,o),t.removeEventListener("focus",this.startFocus,o),t.removeEventListener("blur",this.endFocus,o),t.removeEventListener("focusin",this.startFocus,o),t.removeEventListener("focusout",this.endFocus,o),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){let r=t,n=t,i,s;return r.x!=null?{x:i,y:s}=r:n.touches!=null&&(i=n.touches[0].clientX,s=n.touches[0].clientY),{x:i,y:s}}isFocusVisible(t){return t instanceof HTMLElement?t.matches(":focus-visible"):!0}isIgnored(t){if(this.disabled)return!0;if(t!=null)for(let r of t.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};U.elementDefinitions={};U.styles=ja;re([(0,q.property)({type:Boolean})],U.prototype,"primary",void 0);re([(0,q.property)({type:Boolean})],U.prototype,"secondary",void 0);re([(0,q.property)({type:Boolean})],U.prototype,"unbounded",void 0);re([(0,q.property)({type:Boolean})],U.prototype,"activated",void 0);re([(0,q.property)({type:Boolean})],U.prototype,"selected",void 0);re([(0,q.property)({type:Boolean})],U.prototype,"disabled",void 0);re([(0,q.state)()],U.prototype,"hovered",void 0);re([(0,q.state)()],U.prototype,"focused",void 0);re([(0,q.state)()],U.prototype,"pressed",void 0);re([(0,q.state)()],U.prototype,"rippling",void 0);re([(0,q.state)()],U.prototype,"originX",void 0);re([(0,q.state)()],U.prototype,"originY",void 0);re([(0,q.query)(".ft-ripple")],U.prototype,"ripple",void 0);re([(0,q.query)(".ft-ripple--effect")],U.prototype,"rippleEffect",void 0);var Ga=h(C());var Ka={"ft-ripple":U};(0,Ga.customElements)(Ka);var wl=h(B()),ye=h(ee()),me=h(C());var qa=h(B()),Ve=h(C()),dr={distance:Ve.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Ve.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Ve.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:Ve.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",Ve.designSystemVariables.borderRadiusS),maxWidth:Ve.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Ya=qa.css`
420
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var r,n;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.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 t,r;let n=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;n&&this.setupFor((r=this.target)!==null&&r!==void 0?r:n)}forceFocusUpdate(){var t;!((t=this.target)===null||t===void 0)&&t.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>l=>{a.forEach(c=>window.addEventListener(c,this.endPress,{once:!0})),this.startPress(l)},n=r("mouseup","contextmenu"),i=r("touchend","touchcancel"),s=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},o={passive:!0};t.addEventListener("mouseover",this.startHover,o),t.addEventListener("mousemove",this.moveRipple,o),t.addEventListener("mouseleave",this.endHover,o),t.addEventListener("mousedown",n,o),t.addEventListener("touchstart",i,o),t.addEventListener("touchmove",this.moveRipple,o),t.addEventListener("keydown",s,o),t.addEventListener("focus",this.startFocus,o),t.addEventListener("blur",this.endFocus,o),t.addEventListener("focusin",this.startFocus,o),t.addEventListener("focusout",this.endFocus,o),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,o),t.removeEventListener("mousemove",this.moveRipple,o),t.removeEventListener("mouseleave",this.endHover,o),t.removeEventListener("mousedown",n,o),t.removeEventListener("touchstart",i,o),t.removeEventListener("touchmove",this.moveRipple,o),t.removeEventListener("keydown",s,o),t.removeEventListener("focus",this.startFocus,o),t.removeEventListener("blur",this.endFocus,o),t.removeEventListener("focusin",this.startFocus,o),t.removeEventListener("focusout",this.endFocus,o),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){let r=t,n=t,i,s;return r.x!=null?{x:i,y:s}=r:n.touches!=null&&(i=n.touches[0].clientX,s=n.touches[0].clientY),{x:i,y:s}}isFocusVisible(t){return t instanceof HTMLElement?t.matches(":focus-visible"):!0}isIgnored(t){if(this.disabled)return!0;if(t!=null)for(let r of t.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};$.elementDefinitions={};$.styles=Ba;te([(0,G.property)({type:Boolean})],$.prototype,"primary",void 0);te([(0,G.property)({type:Boolean})],$.prototype,"secondary",void 0);te([(0,G.property)({type:Boolean})],$.prototype,"unbounded",void 0);te([(0,G.property)({type:Boolean})],$.prototype,"activated",void 0);te([(0,G.property)({type:Boolean})],$.prototype,"selected",void 0);te([(0,G.property)({type:Boolean})],$.prototype,"disabled",void 0);te([(0,G.state)()],$.prototype,"hovered",void 0);te([(0,G.state)()],$.prototype,"focused",void 0);te([(0,G.state)()],$.prototype,"pressed",void 0);te([(0,G.state)()],$.prototype,"rippling",void 0);te([(0,G.state)()],$.prototype,"originX",void 0);te([(0,G.state)()],$.prototype,"originY",void 0);te([(0,G.query)(".ft-ripple")],$.prototype,"ripple",void 0);te([(0,G.query)(".ft-ripple--effect")],$.prototype,"rippleEffect",void 0);var ja=h(A());var Va={"ft-ripple":$};(0,ja.customElements)(Va);var Al=h(U()),ye=h(Q()),me=h(A());var za=h(U()),Fe=h(A()),dr={distance:Fe.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Fe.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Fe.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:Fe.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",Fe.designSystemVariables.borderRadiusS),maxWidth:Fe.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Wa=za.css`
421
421
  .ft-tooltip--container {
422
422
  display: block;
423
423
  }
@@ -448,7 +448,7 @@
448
448
  position: relative;
449
449
  word-break: break-word;
450
450
  }
451
- `;var Za=["top","right","bottom","left"],Xa=["start","end"],Ai=Za.reduce((e,t)=>e.concat(t,t+"-"+Xa[0],t+"-"+Xa[1]),[]),pr=Math.min,je=Math.max,fr=Math.round;var Re=e=>({x:e,y:e}),gu={left:"right",right:"left",bottom:"top",top:"bottom"};function Ja(e,t,r){return je(e,pr(t,r))}function gn(e,t){return typeof e=="function"?e(t):e}function hr(e){return e.split("-")[0]}function ze(e){return e.split("-")[1]}function Si(e){return e==="x"?"y":"x"}function _i(e){return e==="y"?"height":"width"}function xn(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function Ci(e){return Si(xn(e))}function Qa(e,t,r){r===void 0&&(r=!1);let n=ze(e),i=Ci(e),s=_i(i),o=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=Ei(o)),[o,Ei(o)]}function el(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}function Ei(e){let t=hr(e);return gu[t]+e.slice(t.length)}function xu(e){var t,r,n,i;return{top:(t=e.top)!=null?t:0,right:(r=e.right)!=null?r:0,bottom:(n=e.bottom)!=null?n:0,left:(i=e.left)!=null?i:0}}function tl(e){return typeof e!="number"?xu(e):{top:e,right:e,bottom:e,left:e}}function mt(e){let{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function rl(e,t,r){let{reference:n,floating:i}=e,s=xn(t),o=Ci(t),a=_i(o),l=hr(t),c=s==="y",u=n.x+n.width/2-i.width/2,d=n.y+n.height/2-i.height/2,p=n[a]/2-i[a]/2,y;switch(l){case"top":y={x:u,y:n.y-i.height};break;case"bottom":y={x:u,y:n.y+n.height};break;case"right":y={x:n.x+n.width,y:d};break;case"left":y={x:n.x-i.width,y:d};break;default:y={x:n.x,y:n.y}}let v=ze(t);return v&&(y[o]+=p*(v==="end"?1:-1)*(r&&c?-1:1)),y}async function nl(e,t){var r;t===void 0&&(t={});let{x:n,y:i,platform:s,rects:o,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:y=0}=gn(t,e),v=tl(y),x=a[p?d==="floating"?"reference":"floating":d],_=mt(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(x)))==null||r?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),N=d==="floating"?{x:n,y:i,width:o.floating.width,height:o.floating.height}:o.reference,b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),E=await(s.isElement==null?void 0:s.isElement(b))&&await(s.getScale==null?void 0:s.getScale(b))||{x:1,y:1},D=mt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:N,offsetParent:b,strategy:l}):N);return{top:(_.top-D.top+v.top)/E.y,bottom:(D.bottom-_.bottom+v.bottom)/E.y,left:(_.left-D.left+v.left)/E.x,right:(D.right-_.right+v.right)/E.x}}var vu=50,il=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:s=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:nl},l=await(o.isRTL==null?void 0:o.isRTL(t)),c=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=rl(c,n,l),p=n,y=0,v={};for(let A=0;A<s.length;A++){let x=s[A];if(!x)continue;let{name:_,fn:N}=x,{x:b,y:E,data:D,reset:R}=await N({x:u,y:d,initialPlacement:n,placement:p,strategy:i,middlewareData:v,rects:c,platform:a,elements:{reference:e,floating:t}});u=b??u,d=E??d,v[_]={...v[_],...D},R&&y<vu&&(y++,typeof R=="object"&&(R.placement&&(p=R.placement),R.rects&&(c=R.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):R.rects),{x:u,y:d}=rl(c,p,l)),A=-1)}return{x:u,y:d,placement:p,strategy:i,middlewareData:v}};function bu(e,t,r){return(e?[...r.filter(i=>ze(i)===e),...r.filter(i=>ze(i)!==e)]:r.filter(i=>hr(i)===i)).filter(i=>e?ze(i)===e||(t?el(i)!==i:!1):!0)}var sl=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,i;let{rects:s,middlewareData:o,placement:a,platform:l,elements:c}=t,{crossAxis:u=!1,alignment:d,allowedPlacements:p=Ai,autoAlignment:y=!0,...v}=gn(e,t),A=d!==void 0||p===Ai?bu(d||null,y,p):p,x=((r=o.autoPlacement)==null?void 0:r.index)||0,_=A[x];if(_==null)return{};if(a!==_)return{reset:{placement:A[0]}};let N=await l.detectOverflow(t,v),b=Qa(_,s,await(l.isRTL==null?void 0:l.isRTL(c.floating))),E=[N[hr(_)],N[b[0]],N[b[1]]],D=[...((n=o.autoPlacement)==null?void 0:n.overflows)||[],{placement:_,overflows:E}],R=A[x+1];if(R)return{data:{index:x+1,overflows:D},reset:{placement:R}};let z=D.map(ce=>{let Ft=ze(ce.placement);return[ce.placement,Ft&&u?ce.overflows.slice(0,2).reduce((Xl,Zl)=>Xl+Zl,0):ce.overflows[0],ce.overflows]}).sort((ce,Ft)=>ce[1]-Ft[1]),Ar=((i=z.filter(ce=>ce[2].slice(0,ze(ce[0])?2:3).every(Ft=>Ft<=0))[0])==null?void 0:i[0])||z[0][0];return Ar!==a?{data:{index:x+1,overflows:D},reset:{placement:Ar}}:{}}}};var ol=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:i,platform:s}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:N=>{let{x:b,y:E}=N;return{x:b,y:E}}},...c}=gn(e,t),u={x:r,y:n},d=await s.detectOverflow(t,c),p=xn(i),y=Si(p),v=u[y],A=u[p],x=(N,b)=>Ja(b+d[N==="y"?"top":"left"],b,b-d[N==="y"?"bottom":"right"]);o&&(v=x(y,v)),a&&(A=x(p,A));let _=l.fn({...t,[y]:v,[p]:A});return{..._,data:{x:_.x-r,y:_.y-n,enabled:{[y]:o,[p]:a}}}}}};function bn(){return typeof window<"u"}function gt(e){return ll(e)?(e.nodeName||"").toLowerCase():"#document"}function ne(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ke(e){var t;return(t=(ll(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ll(e){return bn()?e instanceof Node||e instanceof ne(e).Node:!1}function Ee(e){return bn()?e instanceof Element||e instanceof ne(e).Element:!1}function Me(e){return bn()?e instanceof HTMLElement||e instanceof ne(e).HTMLElement:!1}function al(e){return!bn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ne(e).ShadowRoot}function mr(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=Ae(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&i!=="inline"&&i!=="contents"}function cl(e){return/^(table|td|th)$/.test(gt(e))}function yr(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var Eu=/transform|translate|scale|rotate|perspective|filter/,Au=/paint|layout|strict|content/,yt=e=>!!e&&e!=="none",wi;function $t(e){let t=Ee(e)?Ae(e):e;return yt(t.transform)||yt(t.translate)||yt(t.scale)||yt(t.rotate)||yt(t.perspective)||!En()&&(yt(t.backdropFilter)||yt(t.filter))||Eu.test(t.willChange||"")||Au.test(t.contain||"")}function ul(e){let t=We(e);for(;Me(t)&&!Ut(t);){if($t(t))return t;if(yr(t))return null;t=We(t)}return null}function En(){return wi==null&&(wi=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),wi}function Ut(e){return/^(html|body|#document)$/.test(gt(e))}function Ae(e){return ne(e).getComputedStyle(e)}function gr(e){return Ee(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function We(e){if(gt(e)==="html")return e;let t=e.assignedSlot||e.parentNode||al(e)&&e.host||ke(e);return al(t)?t.host:t}function dl(e){let t=We(e);return Ut(t)?(e.ownerDocument||e).body:Me(t)&&mr(t)?t:dl(t)}function vn(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);let i=dl(e),s=i===((n=e.ownerDocument)==null?void 0:n.body),o=ne(i);if(s){let a=An(o);return t.concat(o,o.visualViewport||[],mr(i)?i:[],a&&r?vn(a):[])}else return t.concat(i,vn(i,[],r))}function An(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function hl(e){let t=Ae(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=Me(e),s=i?e.offsetWidth:r,o=i?e.offsetHeight:n,a=fr(r)!==s||fr(n)!==o;return a&&(r=s,n=o),{width:r,height:n,$:a}}function ml(e){return Ee(e)?e:e.contextElement}function Bt(e){let t=ml(e);if(!Me(t))return Re(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:s}=hl(t),o=(s?fr(r.width):r.width)/n,a=(s?fr(r.height):r.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var Su=Re(0);function yl(e){let t=ne(e);return!En()||!t.visualViewport?Su:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function _u(e,t,r){return t===void 0&&(t=!1),!!r&&t&&r===ne(e)}function xr(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);let i=e.getBoundingClientRect(),s=ml(e),o=Re(1);t&&(n?Ee(n)&&(o=Bt(n)):o=Bt(e));let a=_u(s,r,n)?yl(s):Re(0),l=(i.left+a.x)/o.x,c=(i.top+a.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(s&&n){let p=ne(s),y=Ee(n)?ne(n):n,v=p,A=An(v);for(;A&&y!==v;){let x=Bt(A),_=A.getBoundingClientRect(),N=Ae(A),b=_.left+(A.clientLeft+parseFloat(N.paddingLeft))*x.x,E=_.top+(A.clientTop+parseFloat(N.paddingTop))*x.y;l*=x.x,c*=x.y,u*=x.x,d*=x.y,l+=b,c+=E,v=ne(A),A=An(v)}}return mt({width:u,height:d,x:l,y:c})}function Sn(e,t){let r=gr(e).scrollLeft;return t?t.left+r:xr(ke(e)).left+r}function gl(e,t){let r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Sn(e,r),i=r.top+t.scrollTop;return{x:n,y:i}}function Cu(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e,s=i==="fixed",o=ke(n),a=t?yr(t.floating):!1;if(n===o||a&&s)return r;let l={scrollLeft:0,scrollTop:0},c=Re(1),u=Re(0),d=Me(n);if((d||!s)&&((gt(n)!=="body"||mr(o))&&(l=gr(n)),d)){let y=xr(n);c=Bt(n),u.x=y.x+n.clientLeft,u.y=y.y+n.clientTop}let p=o&&!d&&!s?gl(o,l):Re(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:r.y*c.y-l.scrollTop*c.y+u.y+p.y}}function wu(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Ou(e){let t=gr(e),r=e.ownerDocument.body,n=je(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=je(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight),s=-t.scrollLeft+Sn(e),o=-t.scrollTop;return Ae(r).direction==="rtl"&&(s+=je(e.clientWidth,r.clientWidth)-n),{width:n,height:i,x:s,y:o}}var Tu=25;function Ru(e,t,r){r===void 0&&(r="viewport");let n=r==="layoutViewport",i=ne(e),s=ke(e),o=i.visualViewport,a=s.clientWidth,l=s.clientHeight,c=0,u=0;if(o){let p=!En()||t==="fixed";n?p||(c=-o.offsetLeft,u=-o.offsetTop):(a=o.width,l=o.height,p&&(c=o.offsetLeft,u=o.offsetTop))}if(Sn(s)<=0){let p=s.ownerDocument,y=p.body,v=getComputedStyle(y),A=p.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,x=Math.abs(s.clientWidth-y.clientWidth-A),_=getComputedStyle(s).scrollbarGutter==="stable both-edges"?x/2:x;_<=Tu&&(a-=_)}return{width:a,height:l,x:c,y:u}}function Lu(e,t){let r=xr(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,s=Bt(e),o=e.clientWidth*s.x,a=e.clientHeight*s.y,l=i*s.x,c=n*s.y;return{width:o,height:a,x:l,y:c}}function pl(e,t,r){let n;if(t==="viewport"||t==="layoutViewport")n=Ru(e,r,t);else if(t==="document")n=Ou(ke(e));else if(Ee(t))n=Lu(t,r);else{let i=yl(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return mt(n)}function Nu(e,t){let r=t.get(e);if(r)return r;let n=vn(e,[],!1).filter(a=>Ee(a)&&gt(a)!=="body"),i=null,s=Ae(e).position==="fixed",o=s?We(e):e;for(;Ee(o)&&!Ut(o);){let a=Ae(o),l=$t(o),c=i?i.position:s?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?n=n.filter(d=>d!==o):i=a,o=We(o)}return t.set(e,n),n}function Pu(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,o=[...r==="clippingAncestors"?yr(t)?[]:Nu(t,this._c):[].concat(r),n],a=pl(t,o[0],i),l=a.top,c=a.right,u=a.bottom,d=a.left;for(let p=1;p<o.length;p++){let y=pl(t,o[p],i);l=je(y.top,l),c=pr(y.right,c),u=pr(y.bottom,u),d=je(y.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function Du(e){let{width:t,height:r}=hl(e);return{width:t,height:r}}function ku(e,t,r){let n=Me(t),i=ke(t),s=r==="fixed",o=xr(e,!0,s,t),a={scrollLeft:0,scrollTop:0},l=Re(0);if((n||!s)&&((gt(t)!=="body"||mr(i))&&(a=gr(t)),n)){let p=xr(t,!0,s,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}!n&&i&&(l.x=Sn(i));let c=i&&!n&&!s?gl(i,a):Re(0),u=o.left+a.scrollLeft-l.x-c.x,d=o.top+a.scrollTop-l.y-c.y;return{x:u,y:d,width:o.width,height:o.height}}function Oi(e){return Ae(e).position==="static"}function fl(e,t){if(!Me(e)||Ae(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return ke(e)===r&&(r=r.ownerDocument.body),r}function xl(e,t){let r=ne(e);if(yr(e))return r;if(!Me(e)){let i=We(e);for(;i&&!Ut(i);){if(Ee(i)&&!Oi(i))return i;i=We(i)}return r}let n=fl(e,t);for(;n&&cl(n)&&Oi(n);)n=fl(n,t);return n&&Ut(n)&&Oi(n)&&!$t(n)?r:n||ul(e)||r}var Mu=async function(e){let t=this.getOffsetParent||xl,r=this.getDimensions,n=await r(e.floating);return{reference:ku(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Iu(e){return Ae(e).direction==="rtl"}var _n={convertOffsetParentRelativeRectToViewportRelativeRect:Cu,getDocumentElement:ke,getClippingRect:Pu,getOffsetParent:xl,getElementRects:Mu,getClientRects:wu,getDimensions:Du,getScale:Bt,isElement:Ee,isRTL:Iu};var vl=sl,bl=ol;var El=(e,t,r)=>{let n=new Map,i=r??{},s={..._n,...i.platform,_c:n};return il(e,t,{...i,platform:s})};function Al(e){return $u(e)}function Ti(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function $u(e){for(let t=e;t;t=Ti(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=Ti(e);t;t=Ti(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||$t(r)||t.tagName==="BODY"))return t}return null}async function Sl(e,t,r){let n;return typeof r=="object"?n=r:n={placement:r},El(e,t,{strategy:n.strategy,platform:{..._n,getOffsetParent:i=>_n.getOffsetParent(i,Al)},middleware:[bl({crossAxis:!0}),vl({allowedPlacements:[n.placement]})]})}var _l=h(C());var Ri=class{fromAttribute(t){if(!t)return[];try{let r=JSON.parse(t);return Array.isArray(r)?r.map(n=>typeof n=="string"?Lt.fromAttribute(n):n):[]}catch{return[]}}toAttribute(t){if(t!=null)return JSON.stringify(t)}},Uu=new Ri;var Cl=(e,t)=>(r,n)=>{var i;r.constructor.createProperty(n,{type:Object,hasChanged:_l.hasChanged,converter:Lt,...t}),r[sr]=(i=r[sr])!==null&&i!==void 0?i:new Map,r[sr].set(n,e??{})};var Se=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},W=class extends Nt{constructor(){super(...arguments),this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.ignoreMatchingElements=[],this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new me.Debouncer,this.revealDebouncer=new me.Debouncer,this.onTouch=t=>{this.isIgnored(t)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut(r)},{once:!0}),100))},this.onHover=t=>{this.isIgnored(t)?this.matchesIgnored(t)&&this.hide():this.show()},this.onFocusIn=t=>{!this.isIgnored(t)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=t=>{this.isIgnored(t)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=t=>{this.isIgnored(t)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var t,r;return wl.html`
451
+ `;var Ga=["top","right","bottom","left"],Ka=["start","end"],Ei=Ga.reduce((e,t)=>e.concat(t,t+"-"+Ka[0],t+"-"+Ka[1]),[]),pr=Math.min,Ve=Math.max,fr=Math.round;var Re=e=>({x:e,y:e}),iu={left:"right",right:"left",bottom:"top",top:"bottom"};function qa(e,t,r){return Ve(e,pr(t,r))}function gn(e,t){return typeof e=="function"?e(t):e}function hr(e){return e.split("-")[0]}function je(e){return e.split("-")[1]}function Ai(e){return e==="x"?"y":"x"}function Si(e){return e==="y"?"height":"width"}function xn(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function _i(e){return Ai(xn(e))}function Ya(e,t,r){r===void 0&&(r=!1);let n=je(e),i=_i(e),s=Si(i),o=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=bi(o)),[o,bi(o)]}function Xa(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}function bi(e){let t=hr(e);return iu[t]+e.slice(t.length)}function su(e){var t,r,n,i;return{top:(t=e.top)!=null?t:0,right:(r=e.right)!=null?r:0,bottom:(n=e.bottom)!=null?n:0,left:(i=e.left)!=null?i:0}}function Za(e){return typeof e!="number"?su(e):{top:e,right:e,bottom:e,left:e}}function ht(e){let{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function Ja(e,t,r){let{reference:n,floating:i}=e,s=xn(t),o=_i(t),a=Si(o),l=hr(t),c=s==="y",d=n.x+n.width/2-i.width/2,u=n.y+n.height/2-i.height/2,p=n[a]/2-i[a]/2,y;switch(l){case"top":y={x:d,y:n.y-i.height};break;case"bottom":y={x:d,y:n.y+n.height};break;case"right":y={x:n.x+n.width,y:u};break;case"left":y={x:n.x-i.width,y:u};break;default:y={x:n.x,y:n.y}}let v=je(t);return v&&(y[o]+=p*(v==="end"?1:-1)*(r&&c?-1:1)),y}async function Qa(e,t){var r;t===void 0&&(t={});let{x:n,y:i,platform:s,rects:o,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:p=!1,padding:y=0}=gn(t,e),v=Za(y),x=a[p?u==="floating"?"reference":"floating":u],w=ht(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(x)))==null||r?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),N=u==="floating"?{x:n,y:i,width:o.floating.width,height:o.floating.height}:o.reference,b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),_=await(s.isElement==null?void 0:s.isElement(b))&&await(s.getScale==null?void 0:s.getScale(b))||{x:1,y:1},P=ht(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:N,offsetParent:b,strategy:l}):N);return{top:(w.top-P.top+v.top)/_.y,bottom:(P.bottom-w.bottom+v.bottom)/_.y,left:(w.left-P.left+v.left)/_.x,right:(P.right-w.right+v.right)/_.x}}var ou=50,el=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:s=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:Qa},l=await(o.isRTL==null?void 0:o.isRTL(t)),c=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:u}=Ja(c,n,l),p=n,y=0,v={};for(let C=0;C<s.length;C++){let x=s[C];if(!x)continue;let{name:w,fn:N}=x,{x:b,y:_,data:P,reset:j}=await N({x:d,y:u,initialPlacement:n,placement:p,strategy:i,middlewareData:v,rects:c,platform:a,elements:{reference:e,floating:t}});d=b??d,u=_??u,v[w]={...v[w],...P},j&&y<ou&&(y++,typeof j=="object"&&(j.placement&&(p=j.placement),j.rects&&(c=j.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):j.rects),{x:d,y:u}=Ja(c,p,l)),C=-1)}return{x:d,y:u,placement:p,strategy:i,middlewareData:v}};function au(e,t,r){return(e?[...r.filter(i=>je(i)===e),...r.filter(i=>je(i)!==e)]:r.filter(i=>hr(i)===i)).filter(i=>e?je(i)===e||(t?Xa(i)!==i:!1):!0)}var tl=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,i;let{rects:s,middlewareData:o,placement:a,platform:l,elements:c}=t,{crossAxis:d=!1,alignment:u,allowedPlacements:p=Ei,autoAlignment:y=!0,...v}=gn(e,t),C=u!==void 0||p===Ei?au(u||null,y,p):p,x=((r=o.autoPlacement)==null?void 0:r.index)||0,w=C[x];if(w==null)return{};if(a!==w)return{reset:{placement:C[0]}};let N=await l.detectOverflow(t,v),b=Ya(w,s,await(l.isRTL==null?void 0:l.isRTL(c.floating))),_=[N[hr(w)],N[b[0]],N[b[1]]],P=[...((n=o.autoPlacement)==null?void 0:n.overflows)||[],{placement:w,overflows:_}],j=C[x+1];if(j)return{data:{index:x+1,overflows:P},reset:{placement:j}};let ne=P.map(ce=>{let Ht=je(ce.placement);return[ce.placement,Ht&&d?ce.overflows.slice(0,2).reduce((Kl,Gl)=>Kl+Gl,0):ce.overflows[0],ce.overflows]}).sort((ce,Ht)=>ce[1]-Ht[1]),Ar=((i=ne.filter(ce=>ce[2].slice(0,je(ce[0])?2:3).every(Ht=>Ht<=0))[0])==null?void 0:i[0])||ne[0][0];return Ar!==a?{data:{index:x+1,overflows:P},reset:{placement:Ar}}:{}}}};var rl=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:i,platform:s}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:N=>{let{x:b,y:_}=N;return{x:b,y:_}}},...c}=gn(e,t),d={x:r,y:n},u=await s.detectOverflow(t,c),p=xn(i),y=Ai(p),v=d[y],C=d[p],x=(N,b)=>qa(b+u[N==="y"?"top":"left"],b,b-u[N==="y"?"bottom":"right"]);o&&(v=x(y,v)),a&&(C=x(p,C));let w=l.fn({...t,[y]:v,[p]:C});return{...w,data:{x:w.x-r,y:w.y-n,enabled:{[y]:o,[p]:a}}}}}};function bn(){return typeof window<"u"}function yt(e){return il(e)?(e.nodeName||"").toLowerCase():"#document"}function re(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ke(e){var t;return(t=(il(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function il(e){return bn()?e instanceof Node||e instanceof re(e).Node:!1}function Ee(e){return bn()?e instanceof Element||e instanceof re(e).Element:!1}function Me(e){return bn()?e instanceof HTMLElement||e instanceof re(e).HTMLElement:!1}function nl(e){return!bn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof re(e).ShadowRoot}function mr(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=Ae(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&i!=="inline"&&i!=="contents"}function sl(e){return/^(table|td|th)$/.test(yt(e))}function yr(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var lu=/transform|translate|scale|rotate|perspective|filter/,cu=/paint|layout|strict|content/,mt=e=>!!e&&e!=="none",Ci;function It(e){let t=Ee(e)?Ae(e):e;return mt(t.transform)||mt(t.translate)||mt(t.scale)||mt(t.rotate)||mt(t.perspective)||!En()&&(mt(t.backdropFilter)||mt(t.filter))||lu.test(t.willChange||"")||cu.test(t.contain||"")}function ol(e){let t=ze(e);for(;Me(t)&&!$t(t);){if(It(t))return t;if(yr(t))return null;t=ze(t)}return null}function En(){return Ci==null&&(Ci=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ci}function $t(e){return/^(html|body|#document)$/.test(yt(e))}function Ae(e){return re(e).getComputedStyle(e)}function gr(e){return Ee(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ze(e){if(yt(e)==="html")return e;let t=e.assignedSlot||e.parentNode||nl(e)&&e.host||ke(e);return nl(t)?t.host:t}function al(e){let t=ze(e);return $t(t)?(e.ownerDocument||e).body:Me(t)&&mr(t)?t:al(t)}function vn(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);let i=al(e),s=i===((n=e.ownerDocument)==null?void 0:n.body),o=re(i);if(s){let a=An(o);return t.concat(o,o.visualViewport||[],mr(i)?i:[],a&&r?vn(a):[])}else return t.concat(i,vn(i,[],r))}function An(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ul(e){let t=Ae(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=Me(e),s=i?e.offsetWidth:r,o=i?e.offsetHeight:n,a=fr(r)!==s||fr(n)!==o;return a&&(r=s,n=o),{width:r,height:n,$:a}}function dl(e){return Ee(e)?e:e.contextElement}function Ut(e){let t=dl(e);if(!Me(t))return Re(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:s}=ul(t),o=(s?fr(r.width):r.width)/n,a=(s?fr(r.height):r.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var uu=Re(0);function pl(e){let t=re(e);return!En()||!t.visualViewport?uu:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function du(e,t,r){return t===void 0&&(t=!1),!!r&&t&&r===re(e)}function xr(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);let i=e.getBoundingClientRect(),s=dl(e),o=Re(1);t&&(n?Ee(n)&&(o=Ut(n)):o=Ut(e));let a=du(s,r,n)?pl(s):Re(0),l=(i.left+a.x)/o.x,c=(i.top+a.y)/o.y,d=i.width/o.x,u=i.height/o.y;if(s&&n){let p=re(s),y=Ee(n)?re(n):n,v=p,C=An(v);for(;C&&y!==v;){let x=Ut(C),w=C.getBoundingClientRect(),N=Ae(C),b=w.left+(C.clientLeft+parseFloat(N.paddingLeft))*x.x,_=w.top+(C.clientTop+parseFloat(N.paddingTop))*x.y;l*=x.x,c*=x.y,d*=x.x,u*=x.y,l+=b,c+=_,v=re(C),C=An(v)}}return ht({width:d,height:u,x:l,y:c})}function Sn(e,t){let r=gr(e).scrollLeft;return t?t.left+r:xr(ke(e)).left+r}function fl(e,t){let r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Sn(e,r),i=r.top+t.scrollTop;return{x:n,y:i}}function pu(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e,s=i==="fixed",o=ke(n),a=t?yr(t.floating):!1;if(n===o||a&&s)return r;let l={scrollLeft:0,scrollTop:0},c=Re(1),d=Re(0),u=Me(n);if((u||!s)&&((yt(n)!=="body"||mr(o))&&(l=gr(n)),u)){let y=xr(n);c=Ut(n),d.x=y.x+n.clientLeft,d.y=y.y+n.clientTop}let p=o&&!u&&!s?fl(o,l):Re(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+d.x+p.x,y:r.y*c.y-l.scrollTop*c.y+d.y+p.y}}function fu(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function hu(e){let t=gr(e),r=e.ownerDocument.body,n=Ve(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=Ve(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight),s=-t.scrollLeft+Sn(e),o=-t.scrollTop;return Ae(r).direction==="rtl"&&(s+=Ve(e.clientWidth,r.clientWidth)-n),{width:n,height:i,x:s,y:o}}var mu=25;function yu(e,t,r){r===void 0&&(r="viewport");let n=r==="layoutViewport",i=re(e),s=ke(e),o=i.visualViewport,a=s.clientWidth,l=s.clientHeight,c=0,d=0;if(o){let p=!En()||t==="fixed";n?p||(c=-o.offsetLeft,d=-o.offsetTop):(a=o.width,l=o.height,p&&(c=o.offsetLeft,d=o.offsetTop))}if(Sn(s)<=0){let p=s.ownerDocument,y=p.body,v=getComputedStyle(y),C=p.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,x=Math.abs(s.clientWidth-y.clientWidth-C),w=getComputedStyle(s).scrollbarGutter==="stable both-edges"?x/2:x;w<=mu&&(a-=w)}return{width:a,height:l,x:c,y:d}}function gu(e,t){let r=xr(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,s=Ut(e),o=e.clientWidth*s.x,a=e.clientHeight*s.y,l=i*s.x,c=n*s.y;return{width:o,height:a,x:l,y:c}}function ll(e,t,r){let n;if(t==="viewport"||t==="layoutViewport")n=yu(e,r,t);else if(t==="document")n=hu(ke(e));else if(Ee(t))n=gu(t,r);else{let i=pl(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return ht(n)}function xu(e,t){let r=t.get(e);if(r)return r;let n=vn(e,[],!1).filter(a=>Ee(a)&&yt(a)!=="body"),i=null,s=Ae(e).position==="fixed",o=s?ze(e):e;for(;Ee(o)&&!$t(o);){let a=Ae(o),l=It(o),c=i?i.position:s?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?n=n.filter(u=>u!==o):i=a,o=ze(o)}return t.set(e,n),n}function vu(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,o=[...r==="clippingAncestors"?yr(t)?[]:xu(t,this._c):[].concat(r),n],a=ll(t,o[0],i),l=a.top,c=a.right,d=a.bottom,u=a.left;for(let p=1;p<o.length;p++){let y=ll(t,o[p],i);l=Ve(y.top,l),c=pr(y.right,c),d=pr(y.bottom,d),u=Ve(y.left,u)}return{width:c-u,height:d-l,x:u,y:l}}function bu(e){let{width:t,height:r}=ul(e);return{width:t,height:r}}function Eu(e,t,r){let n=Me(t),i=ke(t),s=r==="fixed",o=xr(e,!0,s,t),a={scrollLeft:0,scrollTop:0},l=Re(0);if((n||!s)&&((yt(t)!=="body"||mr(i))&&(a=gr(t)),n)){let p=xr(t,!0,s,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}!n&&i&&(l.x=Sn(i));let c=i&&!n&&!s?fl(i,a):Re(0),d=o.left+a.scrollLeft-l.x-c.x,u=o.top+a.scrollTop-l.y-c.y;return{x:d,y:u,width:o.width,height:o.height}}function wi(e){return Ae(e).position==="static"}function cl(e,t){if(!Me(e)||Ae(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return ke(e)===r&&(r=r.ownerDocument.body),r}function hl(e,t){let r=re(e);if(yr(e))return r;if(!Me(e)){let i=ze(e);for(;i&&!$t(i);){if(Ee(i)&&!wi(i))return i;i=ze(i)}return r}let n=cl(e,t);for(;n&&sl(n)&&wi(n);)n=cl(n,t);return n&&$t(n)&&wi(n)&&!It(n)?r:n||ol(e)||r}var Au=async function(e){let t=this.getOffsetParent||hl,r=this.getDimensions,n=await r(e.floating);return{reference:Eu(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Su(e){return Ae(e).direction==="rtl"}var _n={convertOffsetParentRelativeRectToViewportRelativeRect:pu,getDocumentElement:ke,getClippingRect:vu,getOffsetParent:hl,getElementRects:Au,getClientRects:fu,getDimensions:bu,getScale:Ut,isElement:Ee,isRTL:Su};var ml=tl,yl=rl;var gl=(e,t,r)=>{let n=new Map,i=r??{},s={..._n,...i.platform,_c:n};return el(e,t,{...i,platform:s})};function xl(e){return _u(e)}function Ti(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function _u(e){for(let t=e;t;t=Ti(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=Ti(e);t;t=Ti(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||It(r)||t.tagName==="BODY"))return t}return null}async function vl(e,t,r){let n;return typeof r=="object"?n=r:n={placement:r},gl(e,t,{strategy:n.strategy,platform:{..._n,getOffsetParent:i=>_n.getOffsetParent(i,xl)},middleware:[yl({crossAxis:!0}),ml({allowedPlacements:[n.placement]})]})}var bl=h(A());var Oi=class{fromAttribute(t){if(!t)return[];try{let r=JSON.parse(t);return Array.isArray(r)?r.map(n=>typeof n=="string"?Rt.fromAttribute(n):n):[]}catch{return[]}}toAttribute(t){if(t!=null)return JSON.stringify(t)}},Cu=new Oi;var El=(e,t)=>(r,n)=>{var i;r.constructor.createProperty(n,{type:Object,hasChanged:bl.hasChanged,converter:Rt,...t}),r[sr]=(i=r[sr])!==null&&i!==void 0?i:new Map,r[sr].set(n,e??{})};var Se=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},z=class extends Lt{constructor(){super(...arguments),this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.ignoreMatchingElements=[],this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new me.Debouncer,this.revealDebouncer=new me.Debouncer,this.onTouch=t=>{this.isIgnored(t)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut(r)},{once:!0}),100))},this.onHover=t=>{this.isIgnored(t)?this.matchesIgnored(t)&&this.hide():this.show()},this.onFocusIn=t=>{!this.isIgnored(t)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=t=>{this.isIgnored(t)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=t=>{this.isIgnored(t)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var t,r;return Al.html`
452
452
  <div part="container"
453
453
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
454
454
  <slot part="slot"></slot>
@@ -463,7 +463,7 @@
463
463
  </div>
464
464
  </div>
465
465
  </div>
466
- `}setupFor(t){this.eventsTarget!==t&&(this.removeHandlers(),this.eventsTarget=t,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(t){var r,n;t.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(n=this.tooltip)===null||n===void 0||n.hidePopover()),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(r=>t.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}async showTemporaryText(t,r){let n=this.manual;this.manual=!0;let i=this.text;this.text={message:t},await this.show(r),this.text=i,this.manual=n}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&Sl(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:t,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${t}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${me.designSystemVariables.transitionDuration}, left ${me.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(t){return(0,me.eventPathContainsMatchingElement)(t,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(t){return this.manual||this.matchesIgnored(t)}};W.elementDefinitions={"ft-typography":ae};W.styles=Ya;Se([Cl()],W.prototype,"text",void 0);Se([(0,ye.property)({type:Boolean})],W.prototype,"manual",void 0);Se([(0,ye.property)({type:Boolean})],W.prototype,"inline",void 0);Se([(0,me.numberProperty)()],W.prototype,"delay",void 0);Se([(0,ye.property)()],W.prototype,"position",void 0);Se([(0,me.jsonProperty)([])],W.prototype,"ignoreMatchingElements",void 0);Se([(0,ye.queryAssignedNodes)()],W.prototype,"slotNodes",void 0);Se([(0,ye.query)(".ft-tooltip--container")],W.prototype,"container",void 0);Se([(0,ye.query)(".ft-tooltip")],W.prototype,"tooltip",void 0);Se([(0,ye.query)(".ft-tooltip--content")],W.prototype,"tooltipContent",void 0);Se([(0,ye.state)()],W.prototype,"visible",void 0);var Tl=h(C());var Ol={"ft-tooltip":W};(0,Tl.customElements)(Ol);var Rl=h(B()),vr=h(C()),xt={color:vr.FtCssVariableFactory.extend("--ft-loader-color","",vr.designSystemVariables.colorPrimary),size:vr.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Ll=Rl.css`
466
+ `}setupFor(t){this.eventsTarget!==t&&(this.removeHandlers(),this.eventsTarget=t,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(t){var r,n;t.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(n=this.tooltip)===null||n===void 0||n.hidePopover()),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(r=>t.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}async showTemporaryText(t,r){let n=this.manual;this.manual=!0;let i=this.text;this.text={message:t},await this.show(r),this.text=i,this.manual=n}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&vl(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:t,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${t}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${me.designSystemVariables.transitionDuration}, left ${me.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(t){return(0,me.eventPathContainsMatchingElement)(t,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(t){return this.manual||this.matchesIgnored(t)}};z.elementDefinitions={"ft-typography":ae};z.styles=Wa;Se([El()],z.prototype,"text",void 0);Se([(0,ye.property)({type:Boolean})],z.prototype,"manual",void 0);Se([(0,ye.property)({type:Boolean})],z.prototype,"inline",void 0);Se([(0,me.numberProperty)()],z.prototype,"delay",void 0);Se([(0,ye.property)()],z.prototype,"position",void 0);Se([(0,me.jsonProperty)([])],z.prototype,"ignoreMatchingElements",void 0);Se([(0,ye.queryAssignedNodes)()],z.prototype,"slotNodes",void 0);Se([(0,ye.query)(".ft-tooltip--container")],z.prototype,"container",void 0);Se([(0,ye.query)(".ft-tooltip")],z.prototype,"tooltip",void 0);Se([(0,ye.query)(".ft-tooltip--content")],z.prototype,"tooltipContent",void 0);Se([(0,ye.state)()],z.prototype,"visible",void 0);var _l=h(A());var Sl={"ft-tooltip":z};(0,_l.customElements)(Sl);var Cl=h(U()),vr=h(A()),gt={color:vr.FtCssVariableFactory.extend("--ft-loader-color","",vr.designSystemVariables.colorPrimary),size:vr.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},wl=Cl.css`
467
467
  :host {
468
468
  line-height: 0;
469
469
  }
@@ -472,8 +472,8 @@
472
472
  display: inline-block;
473
473
  position: relative;
474
474
 
475
- width: ${xt.size};
476
- height: ${xt.size};
475
+ width: ${gt.size};
476
+ height: ${gt.size};
477
477
  }
478
478
 
479
479
  .ft-loader div {
@@ -482,7 +482,7 @@
482
482
  width: 25%;
483
483
  height: 25%;
484
484
  border-radius: 50%;
485
- background: ${xt.color};
485
+ background: ${gt.color};
486
486
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
487
487
  }
488
488
 
@@ -529,17 +529,17 @@
529
529
  transform: translate(0, 0);
530
530
  }
531
531
  100% {
532
- transform: translate(calc(0.35 * ${xt.size}), 0);
532
+ transform: translate(calc(0.35 * ${gt.size}), 0);
533
533
  }
534
534
  }
535
- `;var Nl=h(B()),Pl=h(C());var vt=class extends Pl.FtLitElement{render(){return Nl.html`
535
+ `;var Tl=h(U()),Ol=h(A());var xt=class extends Ol.FtLitElement{render(){return Tl.html`
536
536
  <div class="ft-loader">
537
537
  <div></div>
538
538
  <div></div>
539
539
  <div></div>
540
540
  <div></div>
541
541
  </div>
542
- `}};vt.styles=Ll;var kl=h(C());var Dl={"ft-loader":vt};(0,kl.customElements)(Dl);var Ge=h(B()),wn=h(fn()),P=h(ee());var Ke=e=>e??F;var Cn=h(B()),S=h(C());var Ml=S.FtCssVariableFactory.extend("--ft-button-color","",S.designSystemVariables.colorPrimary),j={backgroundColor:S.FtCssVariableFactory.extend("--ft-button-background-color","",S.designSystemVariables.colorSurface),borderRadius:S.FtCssVariableFactory.extend("--ft-button-border-radius","",S.designSystemVariables.borderRadiusL),color:Ml,fontSize:S.FtCssVariableFactory.extend("--ft-button-font-size","",be.fontSize),iconSize:S.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:S.FtCssVariableFactory.extend("--ft-button-ripple-color","",Ml),verticalPadding:S.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:S.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:S.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:S.FtCssVariableFactory.external(S.designSystemVariables.colorOpacityDisabled,"Design system")},Il=S.FtCssVariableFactory.extend("--ft-button-primary-color","",S.FtCssVariableFactory.extend("--ft-button-color","",S.designSystemVariables.colorOnPrimary)),Li={backgroundColor:S.FtCssVariableFactory.extend("--ft-button-primary-background-color","",S.FtCssVariableFactory.extend("--ft-button-background-color","",S.designSystemVariables.colorPrimary)),color:Il,rippleColor:S.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Il)},_e={borderRadius:S.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",S.FtCssVariableFactory.extend("--ft-button-border-radius","",S.designSystemVariables.borderRadiusM)),verticalPadding:S.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:S.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:S.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},$l=Cn.css`
542
+ `}};xt.styles=wl;var Ll=h(A());var Rl={"ft-loader":xt};(0,Ll.customElements)(Rl);var Ke=h(U()),wn=h(fn()),L=h(Q());var We=e=>e??H;var Cn=h(U()),E=h(A());var Nl=E.FtCssVariableFactory.extend("--ft-button-color","",E.designSystemVariables.colorPrimary),V={backgroundColor:E.FtCssVariableFactory.extend("--ft-button-background-color","",E.designSystemVariables.colorSurface),borderRadius:E.FtCssVariableFactory.extend("--ft-button-border-radius","",E.designSystemVariables.borderRadiusL),color:Nl,fontSize:E.FtCssVariableFactory.extend("--ft-button-font-size","",be.fontSize),iconSize:E.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:E.FtCssVariableFactory.extend("--ft-button-ripple-color","",Nl),verticalPadding:E.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:E.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:E.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:E.FtCssVariableFactory.external(E.designSystemVariables.colorOpacityDisabled,"Design system")},Pl=E.FtCssVariableFactory.extend("--ft-button-primary-color","",E.FtCssVariableFactory.extend("--ft-button-color","",E.designSystemVariables.colorOnPrimary)),Ri={backgroundColor:E.FtCssVariableFactory.extend("--ft-button-primary-background-color","",E.FtCssVariableFactory.extend("--ft-button-background-color","",E.designSystemVariables.colorPrimary)),color:Pl,rippleColor:E.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Pl)},_e={borderRadius:E.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",E.FtCssVariableFactory.extend("--ft-button-border-radius","",E.designSystemVariables.borderRadiusM)),verticalPadding:E.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:E.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:E.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},Dl=Cn.css`
543
543
  :host {
544
544
  display: inline-block;
545
545
  max-width: 100%;
@@ -549,7 +549,7 @@
549
549
  .ft-button {
550
550
  box-shadow: 0px 0px 0px transparent;
551
551
  text-shadow: 0px 0px 0px transparent;
552
- font-size: ${j.fontSize};
552
+ font-size: ${V.fontSize};
553
553
  text-decoration: none;
554
554
  position: relative;
555
555
  display: flex;
@@ -560,15 +560,15 @@
560
560
  border: none;
561
561
  pointer-events: auto;
562
562
 
563
- --button-internal-line-height: max(calc(${j.fontSize} + 2px), ${j.iconSize});
564
- --button-internal-color: ${j.color};
565
- ${(0,S.setVariable)(ge.size,j.iconSize)};
566
- ${(0,S.setVariable)(te.color,j.rippleColor)};
567
- ${(0,S.setVariable)(te.borderRadius,j.borderRadius)};
563
+ --button-internal-line-height: max(calc(${V.fontSize} + 2px), ${V.iconSize});
564
+ --button-internal-color: ${V.color};
565
+ ${(0,E.setVariable)(ge.size,V.iconSize)};
566
+ ${(0,E.setVariable)(ee.color,V.rippleColor)};
567
+ ${(0,E.setVariable)(ee.borderRadius,V.borderRadius)};
568
568
 
569
- border-radius: ${j.borderRadius};
570
- padding: ${j.verticalPadding} ${j.horizontalPadding};
571
- background-color: ${j.backgroundColor};
569
+ border-radius: ${V.borderRadius};
570
+ padding: ${V.verticalPadding} ${V.horizontalPadding};
571
+ background-color: ${V.backgroundColor};
572
572
  color: var(--button-internal-color);
573
573
 
574
574
  .ft-button--label {
@@ -577,9 +577,9 @@
577
577
  white-space: nowrap;
578
578
  text-overflow: ellipsis;
579
579
  display: block;
580
- margin: 0 ${j.iconPadding};
581
- ${(0,S.setVariable)(be.fontSize,"1em")};
582
- ${(0,S.setVariable)(be.lineHeight,"var(--button-internal-line-height)")};
580
+ margin: 0 ${V.iconPadding};
581
+ ${(0,E.setVariable)(be.fontSize,"1em")};
582
+ ${(0,E.setVariable)(be.lineHeight,"var(--button-internal-line-height)")};
583
583
  }
584
584
 
585
585
  [part="icon"] {
@@ -608,30 +608,30 @@
608
608
  }
609
609
 
610
610
  &:focus-visible {
611
- outline: 2px solid ${S.designSystemVariables.colorPrimary};
611
+ outline: 2px solid ${E.designSystemVariables.colorPrimary};
612
612
  outline-offset: 2px;
613
613
  }
614
614
 
615
615
  &[disabled] {
616
616
  filter: grayscale(1);
617
- opacity: ${j.opacityDisabled};
617
+ opacity: ${V.opacityDisabled};
618
618
  }
619
619
 
620
620
  &.ft-button--primary {
621
- background-color: ${Li.backgroundColor};
622
- --button-internal-color: ${Li.color};
623
- ${(0,S.setVariable)(te.color,Li.rippleColor)};
621
+ background-color: ${Ri.backgroundColor};
622
+ --button-internal-color: ${Ri.color};
623
+ ${(0,E.setVariable)(ee.color,Ri.rippleColor)};
624
624
  }
625
625
 
626
626
  &.ft-button--outlined {
627
627
  border: 1px solid var(--button-internal-color);
628
- padding: calc(${j.verticalPadding} - 1px) calc(${j.horizontalPadding} - 1px);
628
+ padding: calc(${V.verticalPadding} - 1px) calc(${V.horizontalPadding} - 1px);
629
629
  }
630
630
 
631
631
  &.ft-button--dense {
632
632
  padding: ${_e.verticalPadding} ${_e.horizontalPadding};
633
633
  border-radius: ${_e.borderRadius};
634
- ${(0,S.setVariable)(te.borderRadius,_e.borderRadius)};
634
+ ${(0,E.setVariable)(ee.borderRadius,_e.borderRadius)};
635
635
 
636
636
  .ft-button--label {
637
637
  margin: 0 ${_e.iconPadding};
@@ -643,13 +643,13 @@
643
643
  }
644
644
 
645
645
  &.ft-button--round {
646
- border-radius: calc(var(--button-internal-line-height) / 2 + ${j.verticalPadding});
647
- ${(0,S.setVariable)(te.borderRadius,Cn.css`calc(var(--button-internal-line-height) / 2 + ${j.verticalPadding})`)};
646
+ border-radius: calc(var(--button-internal-line-height) / 2 + ${V.verticalPadding});
647
+ ${(0,E.setVariable)(ee.borderRadius,Cn.css`calc(var(--button-internal-line-height) / 2 + ${V.verticalPadding})`)};
648
648
  }
649
649
 
650
650
  &.ft-button--round.ft-button--dense {
651
651
  border-radius: calc(var(--button-internal-line-height) / 2 + ${_e.verticalPadding});
652
- ${(0,S.setVariable)(te.borderRadius,Cn.css`calc(var(--button-internal-line-height) / 2 + ${_e.verticalPadding})`)};
652
+ ${(0,E.setVariable)(ee.borderRadius,Cn.css`calc(var(--button-internal-line-height) / 2 + ${_e.verticalPadding})`)};
653
653
  }
654
654
 
655
655
  &.ft-button--no-text {
@@ -657,14 +657,14 @@
657
657
  margin: 0;
658
658
  }
659
659
 
660
- padding: ${j.verticalPadding};
660
+ padding: ${V.verticalPadding};
661
661
 
662
662
  &.ft-button--dense {
663
663
  padding: ${_e.verticalPadding};
664
664
  }
665
665
 
666
666
  &.ft-button--outlined {
667
- padding: calc(${j.verticalPadding} - 1px);
667
+ padding: calc(${V.verticalPadding} - 1px);
668
668
  }
669
669
 
670
670
  &.ft-button--outlined.ft-button--dense {
@@ -678,10 +678,10 @@
678
678
  }
679
679
 
680
680
  ft-loader {
681
- ${(0,S.setVariable)(xt.size,j.iconSize)};
682
- ${(0,S.setVariable)(xt.color,"var(--button-internal-color)")};
681
+ ${(0,E.setVariable)(gt.size,V.iconSize)};
682
+ ${(0,E.setVariable)(gt.color,"var(--button-internal-color)")};
683
683
  }
684
- `;var k=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},O=class e extends(0,Le.toFtFormComponent)(Le.FtLitElement){get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--no-text":!this.hasTextContent,"ft-no-text-select":!0}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.ariaExpanded=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.hasTextContent=!1,this.addEventListener("click",t=>{var r;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var t,r,n;let i={"ft-button--label":!0,"ft-safari-ellipsis-fix":Le.isSafari},s=Ge.html`
684
+ `;var D=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},T=class e extends(0,Le.toFtFormComponent)(Le.FtLitElement){get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--no-text":!this.hasTextContent,"ft-no-text-select":!0}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.ariaExpanded=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.hasTextContent=!1,this.addEventListener("click",t=>{var r;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var t,r,n;let i={"ft-button--label":!0,"ft-safari-ellipsis-fix":Le.isSafari},s=Ke.html`
685
685
  <ft-ripple part="ripple"
686
686
  ?disabled=${this.isDisabled()}
687
687
  ?activated=${this.activated}
@@ -693,37 +693,37 @@
693
693
  <slot></slot>
694
694
  </ft-typography>
695
695
  ${this.resolveIcon()}
696
- `,o=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(o?Ge.html`
696
+ `,o=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(o?Ke.html`
697
697
  <a href="${o}"
698
698
  target="${(t=this.target)!==null&&t!==void 0?t:"_self"}"
699
699
  part="button"
700
700
  class="${(0,wn.classMap)(this.buttonClasses)}"
701
- aria-label="${Ke((r=this.ariaLabel)!==null&&r!==void 0?r:this.label)}"
701
+ aria-label="${We((r=this.ariaLabel)!==null&&r!==void 0?r:this.label)}"
702
702
  ?disabled=${this.isDisabled()}>
703
703
  ${s}
704
704
  </a>
705
- `:Ge.html`
705
+ `:Ke.html`
706
706
  <button part="button"
707
707
  class="${(0,wn.classMap)(this.buttonClasses)}"
708
- aria-label="${Ke((n=this.ariaLabel)!==null&&n!==void 0?n:this.label)}"
709
- aria-haspopup="${Ke(this.ariaHasPopup)}"
710
- aria-pressed="${Ke(this.ariaPressed)}"
711
- aria-expanded="${Ke(this.ariaExpanded)}"
708
+ aria-label="${We((n=this.ariaLabel)!==null&&n!==void 0?n:this.label)}"
709
+ aria-haspopup="${We(this.ariaHasPopup)}"
710
+ aria-pressed="${We(this.ariaPressed)}"
711
+ aria-expanded="${We(this.ariaExpanded)}"
712
712
  ?disabled=${this.isDisabled()}>
713
713
  ${s}
714
714
  </button>
715
- `)}addTooltipIfNeeded(t){return this.label&&this.label.trim().length>0&&(this.forceTooltip||!this.hasTextContent&&!this.hideTooltip)?Ge.html`
715
+ `)}addTooltipIfNeeded(t){return this.label&&this.label.trim().length>0&&(this.forceTooltip||!this.hasTextContent&&!this.hideTooltip)?Ke.html`
716
716
  <ft-tooltip part="tooltip"
717
717
  text="${this.label}"
718
718
  position="${this.tooltipPosition}">
719
719
  ${t}
720
720
  </ft-tooltip>
721
- `:t}resolveIcon(){return this.loading?Ge.html`
722
- <ft-loader part="loader icon"></ft-loader> `:this.icon?Ge.html`
721
+ `:t}resolveIcon(){return this.loading?Ke.html`
722
+ <ft-loader part="loader icon"></ft-loader> `:this.icon?Ke.html`
723
723
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
724
- `:Ge.html`
724
+ `:Ke.html`
725
725
  <slot part="icon" name="icon"></slot>
726
- `}focus(){var t;(t=this.button)===null||t===void 0||t.focus()}showTooltip(){var t;(t=this.tooltip)===null||t===void 0||t.show()}showTemporaryTooltip(t,r){var n;return(n=this.tooltip)===null||n===void 0?void 0:n.showTemporaryText(t,r)}setTooltipManual(t){this.tooltip&&(this.tooltip.manual=t)}click(){var t;(t=this.button)===null||t===void 0||t.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(t){super.contentAvailableCallback(t),this.labelContainer&&e.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&e.labelsObserver.unobserve(this.labelContainer)}};O.elementDefinitions={"ft-ripple":U,"ft-tooltip":W,"ft-icon":Z,"ft-loader":vt,"ft-typography":ae};O.styles=[Le.safariEllipsisFix,$l,Le.noTextSelect];O.labelsObserver=new IntersectionObserver(e=>{for(let t of e){let r=t.target.getRootNode();r instanceof ShadowRoot&&r.host?r.host.hasTextContent=t.boundingClientRect.width>0:O.labelsObserver.unobserve(t.target)}});k([(0,P.property)({type:Boolean})],O.prototype,"primary",void 0);k([(0,P.property)({type:Boolean})],O.prototype,"outlined",void 0);k([(0,P.property)({type:Boolean})],O.prototype,"dense",void 0);k([(0,P.property)({type:Boolean})],O.prototype,"round",void 0);k([(0,P.property)({type:Boolean})],O.prototype,"disabled",void 0);k([(0,P.property)()],O.prototype,"icon",void 0);k([(0,P.property)()],O.prototype,"iconVariant",void 0);k([(0,P.property)({type:Boolean})],O.prototype,"trailingIcon",void 0);k([(0,P.property)()],O.prototype,"label",void 0);k([(0,P.property)()],O.prototype,"type",void 0);k([(0,P.property)()],O.prototype,"href",void 0);k([(0,P.property)()],O.prototype,"target",void 0);k([(0,P.property)({type:Boolean})],O.prototype,"loading",void 0);k([(0,P.property)({attribute:"aria-label"})],O.prototype,"ariaLabel",void 0);k([(0,P.property)()],O.prototype,"ariaHasPopup",void 0);k([(0,P.property)({attribute:"aria-pressed"})],O.prototype,"ariaPressed",void 0);k([(0,P.property)({attribute:"aria-expanded"})],O.prototype,"ariaExpanded",void 0);k([(0,P.property)()],O.prototype,"tooltipPosition",void 0);k([(0,P.property)({type:Boolean})],O.prototype,"hideTooltip",void 0);k([(0,P.property)({type:Boolean})],O.prototype,"forceTooltip",void 0);k([(0,P.property)({type:Boolean})],O.prototype,"activated",void 0);k([(0,P.query)(".ft-button")],O.prototype,"button",void 0);k([(0,P.query)(".ft-button--label")],O.prototype,"labelContainer",void 0);k([(0,P.state)()],O.prototype,"hasTextContent",void 0);k([(0,P.query)(".ft-button--label slot")],O.prototype,"slottedContent",void 0);k([(0,P.query)("[part=tooltip]")],O.prototype,"tooltip",void 0);var Bl=h(C());var Ul={"ft-button":O};(0,Bl.customElements)(Ul);var Hl=h(B()),L=h(C()),M={shadow:L.FtCssVariableFactory.extend("--ft-modal-shadow","",L.designSystemVariables.elevation03),borderRadius:L.FtCssVariableFactory.extend("--ft-modal-border-radius","",L.designSystemVariables.borderRadiusM),height:L.FtCssVariableFactory.create("--ft-modal-height","","SIZE","fit-content"),width:L.FtCssVariableFactory.create("--ft-modal-width","","SIZE","800px"),headerPadding:L.FtCssVariableFactory.create("--ft-modal-header-padding","","SIZE","8px 16px"),headerGap:L.FtCssVariableFactory.create("--ft-modal-header-gap","","SIZE","8px"),headerBorderColor:L.FtCssVariableFactory.extend("--ft-modal-header-border-color","",L.designSystemVariables.colorOutline),headerBorderWidth:L.FtCssVariableFactory.create("--ft-modal-header-border-width","","SIZE","1px"),headerBackgroundColor:L.FtCssVariableFactory.extend("--ft-modal-header-background-color","",L.designSystemVariables.colorSurface),headerColor:L.FtCssVariableFactory.extend("--ft-modal-header-color","",L.designSystemVariables.colorOnSurfaceHigh),headerIconColor:L.FtCssVariableFactory.extend("--ft-modal-header-icon-color","",L.designSystemVariables.colorOnSurfaceHigh),contentPadding:L.FtCssVariableFactory.create("--ft-modal-content-padding","","SIZE","16px"),contentGap:L.FtCssVariableFactory.create("--ft-modal-content-gap","","SIZE","16px"),contentBackgroundColor:L.FtCssVariableFactory.extend("--ft-modal-content-background-color","",L.designSystemVariables.colorSurface),contentColor:L.FtCssVariableFactory.extend("--ft-modal-content-color","",L.designSystemVariables.colorOnSurfaceMedium),actionsGap:L.FtCssVariableFactory.create("--ft-modal-action-gap","","SIZE","8px"),overlayBackgroundColor:L.FtCssVariableFactory.create("--ft-modal-overlay-background-color","","COLOR","rgb(10, 10, 13)"),overlayOpacity:L.FtCssVariableFactory.create("--ft-modal-overlay-opacity","","NUMBER","0.4"),closingButtonColor:L.FtCssVariableFactory.extend("--ft-modal-closing-button-color","",L.designSystemVariables.colorOnSurfaceMedium),contentOverflow:L.FtCssVariableFactory.create("--ft-modal-content-overflow","","UNKNOWN","visible")},Fl=Hl.css`
726
+ `}focus(){var t;(t=this.button)===null||t===void 0||t.focus()}showTooltip(){var t;(t=this.tooltip)===null||t===void 0||t.show()}showTemporaryTooltip(t,r){var n;return(n=this.tooltip)===null||n===void 0?void 0:n.showTemporaryText(t,r)}setTooltipManual(t){this.tooltip&&(this.tooltip.manual=t)}click(){var t;(t=this.button)===null||t===void 0||t.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(t){super.contentAvailableCallback(t),this.labelContainer&&e.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&e.labelsObserver.unobserve(this.labelContainer)}};T.elementDefinitions={"ft-ripple":$,"ft-tooltip":z,"ft-icon":X,"ft-loader":xt,"ft-typography":ae};T.styles=[Le.safariEllipsisFix,Dl,Le.noTextSelect];T.labelsObserver=new IntersectionObserver(e=>{for(let t of e){let r=t.target.getRootNode();r instanceof ShadowRoot&&r.host?r.host.hasTextContent=t.boundingClientRect.width>0:T.labelsObserver.unobserve(t.target)}});D([(0,L.property)({type:Boolean})],T.prototype,"primary",void 0);D([(0,L.property)({type:Boolean})],T.prototype,"outlined",void 0);D([(0,L.property)({type:Boolean})],T.prototype,"dense",void 0);D([(0,L.property)({type:Boolean})],T.prototype,"round",void 0);D([(0,L.property)({type:Boolean})],T.prototype,"disabled",void 0);D([(0,L.property)()],T.prototype,"icon",void 0);D([(0,L.property)()],T.prototype,"iconVariant",void 0);D([(0,L.property)({type:Boolean})],T.prototype,"trailingIcon",void 0);D([(0,L.property)()],T.prototype,"label",void 0);D([(0,L.property)()],T.prototype,"type",void 0);D([(0,L.property)()],T.prototype,"href",void 0);D([(0,L.property)()],T.prototype,"target",void 0);D([(0,L.property)({type:Boolean})],T.prototype,"loading",void 0);D([(0,L.property)({attribute:"aria-label"})],T.prototype,"ariaLabel",void 0);D([(0,L.property)()],T.prototype,"ariaHasPopup",void 0);D([(0,L.property)({attribute:"aria-pressed"})],T.prototype,"ariaPressed",void 0);D([(0,L.property)({attribute:"aria-expanded"})],T.prototype,"ariaExpanded",void 0);D([(0,L.property)()],T.prototype,"tooltipPosition",void 0);D([(0,L.property)({type:Boolean})],T.prototype,"hideTooltip",void 0);D([(0,L.property)({type:Boolean})],T.prototype,"forceTooltip",void 0);D([(0,L.property)({type:Boolean})],T.prototype,"activated",void 0);D([(0,L.query)(".ft-button")],T.prototype,"button",void 0);D([(0,L.query)(".ft-button--label")],T.prototype,"labelContainer",void 0);D([(0,L.state)()],T.prototype,"hasTextContent",void 0);D([(0,L.query)(".ft-button--label slot")],T.prototype,"slottedContent",void 0);D([(0,L.query)("[part=tooltip]")],T.prototype,"tooltip",void 0);var Ml=h(A());var kl={"ft-button":T};(0,Ml.customElements)(kl);var Il=h(U()),R=h(A()),k={shadow:R.FtCssVariableFactory.extend("--ft-modal-shadow","",R.designSystemVariables.elevation03),borderRadius:R.FtCssVariableFactory.extend("--ft-modal-border-radius","",R.designSystemVariables.borderRadiusM),height:R.FtCssVariableFactory.create("--ft-modal-height","","SIZE","fit-content"),width:R.FtCssVariableFactory.create("--ft-modal-width","","SIZE","800px"),headerPadding:R.FtCssVariableFactory.create("--ft-modal-header-padding","","SIZE","8px 16px"),headerGap:R.FtCssVariableFactory.create("--ft-modal-header-gap","","SIZE","8px"),headerBorderColor:R.FtCssVariableFactory.extend("--ft-modal-header-border-color","",R.designSystemVariables.colorOutline),headerBorderWidth:R.FtCssVariableFactory.create("--ft-modal-header-border-width","","SIZE","1px"),headerBackgroundColor:R.FtCssVariableFactory.extend("--ft-modal-header-background-color","",R.designSystemVariables.colorSurface),headerColor:R.FtCssVariableFactory.extend("--ft-modal-header-color","",R.designSystemVariables.colorOnSurfaceHigh),headerIconColor:R.FtCssVariableFactory.extend("--ft-modal-header-icon-color","",R.designSystemVariables.colorOnSurfaceHigh),contentPadding:R.FtCssVariableFactory.create("--ft-modal-content-padding","","SIZE","16px"),contentGap:R.FtCssVariableFactory.create("--ft-modal-content-gap","","SIZE","16px"),contentBackgroundColor:R.FtCssVariableFactory.extend("--ft-modal-content-background-color","",R.designSystemVariables.colorSurface),contentColor:R.FtCssVariableFactory.extend("--ft-modal-content-color","",R.designSystemVariables.colorOnSurfaceMedium),actionsGap:R.FtCssVariableFactory.create("--ft-modal-action-gap","","SIZE","8px"),overlayBackgroundColor:R.FtCssVariableFactory.create("--ft-modal-overlay-background-color","","COLOR","rgb(10, 10, 13)"),overlayOpacity:R.FtCssVariableFactory.create("--ft-modal-overlay-opacity","","NUMBER","0.4"),closingButtonColor:R.FtCssVariableFactory.extend("--ft-modal-closing-button-color","",R.designSystemVariables.colorOnSurfaceMedium),contentOverflow:R.FtCssVariableFactory.create("--ft-modal-content-overflow","","UNKNOWN","visible")},$l=Il.css`
727
727
 
728
728
  @keyframes fade-in {
729
729
  0% {
@@ -731,7 +731,7 @@
731
731
  }
732
732
 
733
733
  100% {
734
- opacity: ${M.overlayOpacity};
734
+ opacity: ${k.overlayOpacity};
735
735
  }
736
736
  }
737
737
 
@@ -755,8 +755,8 @@
755
755
 
756
756
  position: absolute;
757
757
  inset: 0;
758
- background-color: ${M.overlayBackgroundColor};
759
- opacity: ${M.overlayOpacity};
758
+ background-color: ${k.overlayBackgroundColor};
759
+ opacity: ${k.overlayOpacity};
760
760
  }
761
761
 
762
762
  [part=inner-container] {
@@ -771,27 +771,27 @@
771
771
  top: 50%;
772
772
  bottom: unset;
773
773
  transform: translate(0, -50%);
774
- box-shadow: ${M.shadow};
775
- height: ${M.height};
776
- width: ${M.width};
774
+ box-shadow: ${k.shadow};
775
+ height: ${k.height};
776
+ width: ${k.width};
777
777
  margin: auto;
778
778
  max-height: calc(100% - 24px);
779
779
  max-width: calc(100% - 24px);
780
- border-radius: ${M.borderRadius};
780
+ border-radius: ${k.borderRadius};
781
781
  }
782
782
  }
783
783
 
784
784
  [part=header] {
785
- padding: ${M.headerPadding};
785
+ padding: ${k.headerPadding};
786
786
  display: flex;
787
787
  align-items: center;
788
- gap: ${M.headerGap};
789
- border-color: ${M.headerBorderColor};
790
- border-bottom-width: ${M.headerBorderWidth};
788
+ gap: ${k.headerGap};
789
+ border-color: ${k.headerBorderColor};
790
+ border-bottom-width: ${k.headerBorderWidth};
791
791
  border-bottom-style: solid;
792
- color: ${M.headerColor};
793
- background-color: ${M.headerBackgroundColor};
794
- border-radius: ${M.borderRadius} ${M.borderRadius} 0px 0px;
792
+ color: ${k.headerColor};
793
+ background-color: ${k.headerBackgroundColor};
794
+ border-radius: ${k.borderRadius} ${k.borderRadius} 0px 0px;
795
795
  flex-shrink: 0;
796
796
  }
797
797
 
@@ -801,7 +801,7 @@
801
801
  }
802
802
 
803
803
  [part=icon] {
804
- color: ${M.headerIconColor};
804
+ color: ${k.headerIconColor};
805
805
  }
806
806
 
807
807
  [part=closing-button] {
@@ -811,30 +811,30 @@
811
811
  [part=body] {
812
812
  flex-shrink: 1;
813
813
  flex-grow: 1;
814
- padding: ${M.contentPadding};
814
+ padding: ${k.contentPadding};
815
815
  display: flex;
816
816
  flex-direction: column;
817
- gap: ${M.contentGap};
818
- color: ${M.contentColor};
819
- background-color: ${M.contentBackgroundColor};
820
- border-radius: 0px 0px ${M.borderRadius} ${M.borderRadius};
821
- overflow: ${M.contentOverflow};
817
+ gap: ${k.contentGap};
818
+ color: ${k.contentColor};
819
+ background-color: ${k.contentBackgroundColor};
820
+ border-radius: 0px 0px ${k.borderRadius} ${k.borderRadius};
821
+ overflow: ${k.contentOverflow};
822
822
  word-break: break-word;
823
823
  }
824
824
 
825
825
  [part=content] {
826
826
  flex-grow: 1;
827
- overflow: ${M.contentOverflow};
827
+ overflow: ${k.contentOverflow};
828
828
  }
829
829
 
830
830
  [part=actions] {
831
831
  align-self: flex-end;
832
832
  display: flex;
833
- gap: ${M.actionsGap};
833
+ gap: ${k.actionsGap};
834
834
  }
835
835
 
836
836
  [part=closing-button] {
837
- color: ${M.closingButtonColor};
837
+ color: ${k.closingButtonColor};
838
838
  }
839
839
 
840
840
  @media (max-width: 768px) {
@@ -844,21 +844,21 @@
844
844
  }
845
845
  }
846
846
 
847
- `;function Ni(e,t,r){return e?t(e):r?.(e)}var Pi=Rt.build("ftModal"),Vl={closeModal:"Close modal"};var br=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Di=class extends Event{constructor(){super("close")}},ki=class extends Event{constructor(){super("open")}},le=class extends Nt{constructor(){super(),this.buttonLabel="",this.heading="",this.intersectionObserver=new IntersectionObserver(()=>{this.dialog&&!this.dialog.checkVisibility()&&this.close()}),this.setupI18nContext()}setupI18nContext(){this.addI18nContext(Pi,Vl)}getContainerClasses(){return{"ft-modal":!0}}render(){return Ht.html`
848
- <div class="${(0,zl.classMap)(this.getContainerClasses())}" part="container">
847
+ `;function Li(e,t,r){return e?t(e):r?.(e)}var Ni=Ot.build("ftModal"),Ul={closeModal:"Close modal"};var br=function(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},Pi=class extends Event{constructor(){super("close")}},Di=class extends Event{constructor(){super("open")}},le=class extends Lt{constructor(){super(),this.buttonLabel="",this.heading="",this.intersectionObserver=new IntersectionObserver(()=>{this.dialog&&!this.dialog.checkVisibility()&&this.close()}),this.setupI18nContext()}setupI18nContext(){this.addI18nContext(Ni,Ul)}getContainerClasses(){return{"ft-modal":!0}}render(){return Bt.html`
848
+ <div class="${(0,Hl.classMap)(this.getContainerClasses())}" part="container">
849
849
  <slot @click=${this.onTriggerClick} name="trigger">
850
- <ft-button part="button" icon="${Ke(this.buttonIcon)}" label="${this.buttonLabel}" ariaHasPopup="dialog">
851
- ${Ni(this.buttonIcon,()=>Ht.nothing,()=>this.buttonLabel)}
850
+ <ft-button part="button" icon="${We(this.buttonIcon)}" label="${this.buttonLabel}" ariaHasPopup="dialog">
851
+ ${Li(this.buttonIcon,()=>Bt.nothing,()=>this.buttonLabel)}
852
852
  </ft-button>
853
853
  </slot>
854
854
  <dialog part="dialog" popover="manual"
855
855
  aria-labelledby="heading"
856
856
  aria-modal="true"
857
- ${(0,jl.focusTrap)()}>
857
+ ${(0,Bl.focusTrap)()}>
858
858
  <div part="overlay" @click=${this.onOverlayClick}></div>
859
859
  <div part="inner-container">
860
860
  <div part="header">
861
- ${Ni(!!this.icon,()=>Ht.html`
861
+ ${Li(!!this.icon,()=>Bt.html`
862
862
  <ft-icon part="icon" value="${this.icon}"></ft-icon>
863
863
  `)}
864
864
  <ft-typography id="heading" part="heading" role="heading" variant="${fe.title}">
@@ -878,19 +878,19 @@
878
878
  </div>
879
879
  </dialog>
880
880
  </div>
881
- `}renderCloseButton(){return Ht.html`
881
+ `}renderCloseButton(){return Bt.html`
882
882
  <ft-button part="closing-button"
883
883
  icon="${$e.CLOSE}"
884
884
  tertiary
885
- label="${Pi.messages.closeModal()}"
885
+ label="${Ni.messages.closeModal()}"
886
886
  tooltipPosition="left"
887
- @click=${this.close}></ft-button>`}onTriggerClick(t){this.open(t.target)}open(t){this.elementToFocusOnClose=t,this.dialog&&(this.dialog.showPopover({source:t}),this.intersectionObserver.observe(this.dialog),this.dispatchEvent(new ki))}close(){var t;(t=this.dialog)===null||t===void 0||t.hidePopover(),this.onClose()}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.onEscapePressed)}disconnectedCallback(){super.disconnectedCallback(),this.close(),this.removeEventListener("keydown",this.onEscapePressed)}onClose(){var t;this.intersectionObserver.disconnect(),(t=this.elementToFocusOnClose)===null||t===void 0||t.focus(),this.dispatchEvent(new Di)}onOverlayClick(){this.close()}onEscapePressed(t){t.key==="Escape"&&(this.close(),t.stopPropagation())}};le.elementDefinitions={"ft-button":O,"ft-typography":ae,"ft-icon":Z};le.styles=Fl;br([(0,bt.property)()],le.prototype,"buttonLabel",void 0);br([(0,bt.property)()],le.prototype,"buttonIcon",void 0);br([(0,bt.property)()],le.prototype,"heading",void 0);br([(0,bt.property)()],le.prototype,"icon",void 0);br([(0,bt.query)("dialog")],le.prototype,"dialog",void 0);var Zg=fe.body1;var Kl=h(C());var Wl={"ft-modal":le};(0,Kl.customElements)(Wl);var Er=class extends le{setupI18nContext(){this.addI18nContext(ai,na)}getContainerClasses(){return{"ft-drawer":!0}}renderCloseButton(){return Gl.html`
887
+ @click=${this.close}></ft-button>`}onTriggerClick(t){this.open(t.target)}open(t){this.elementToFocusOnClose=t,this.dialog&&(this.dialog.showPopover({source:t}),this.intersectionObserver.observe(this.dialog),this.dispatchEvent(new Di))}close(){var t;(t=this.dialog)===null||t===void 0||t.hidePopover(),this.onClose()}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.onEscapePressed)}disconnectedCallback(){super.disconnectedCallback(),this.close(),this.removeEventListener("keydown",this.onEscapePressed)}onClose(){var t;this.intersectionObserver.disconnect(),(t=this.elementToFocusOnClose)===null||t===void 0||t.focus(),this.dispatchEvent(new Pi)}onOverlayClick(){this.close()}onEscapePressed(t){t.key==="Escape"&&(this.close(),t.stopPropagation())}};le.elementDefinitions={"ft-button":T,"ft-typography":ae,"ft-icon":X};le.styles=$l;br([(0,vt.property)()],le.prototype,"buttonLabel",void 0);br([(0,vt.property)()],le.prototype,"buttonIcon",void 0);br([(0,vt.property)()],le.prototype,"heading",void 0);br([(0,vt.property)()],le.prototype,"icon",void 0);br([(0,vt.query)("dialog")],le.prototype,"dialog",void 0);var Mg=fe.body1;var Vl=h(A());var Fl={"ft-modal":le};(0,Vl.customElements)(Fl);var Er=class extends le{setupI18nContext(){this.addI18nContext(oi,Qo)}getContainerClasses(){return{"ft-drawer":!0}}renderCloseButton(){return jl.html`
888
888
  <ft-button part="closing-button"
889
889
  icon="${$e.CLOSE}"
890
890
  tertiary
891
- label="${ai.messages.closeDrawer()}"
891
+ label="${oi.messages.closeDrawer()}"
892
892
  tooltipPosition="right"
893
- @click=${this.close}></ft-button>`}};Er.styles=qi;var ql={"ft-drawer":Er};(0,Yl.customElements)(ql);})();
893
+ @click=${this.close}></ft-button>`}};Er.styles=Gi;var zl={"ft-drawer":Er};(0,Wl.customElements)(zl);})();
894
894
  /*! Bundled license information:
895
895
 
896
896
  .store/@lit-context-npm-1.1.6-2c155157c6/package/lib/context-request-event.js: