@fluid-topics/ft-modal 1.2.42 → 1.2.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-modal.light.js +31 -31
- package/build/ft-modal.min.js +1 -1
- package/package.json +4 -4
package/build/ft-modal.light.js
CHANGED
|
@@ -84,7 +84,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
84
84
|
display: flex;
|
|
85
85
|
gap: ${or.foundation.spacing3}
|
|
86
86
|
}
|
|
87
|
-
`];var Lr=S(k());var Ye=S(V()),wi=S(k());var ba=S(z()),I=S(k());var qn=S(z()),G=S(k()),jn=G.FtCssVariableFactory.extend("--ft-ripple-color","",G.designSystemVariables.colorContent),O={color:jn,backgroundColor:G.FtCssVariableFactory.extend("--ft-ripple-background-color","",jn),opacityContentOnSurfacePressed:G.FtCssVariableFactory.external(G.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:G.FtCssVariableFactory.external(G.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:G.FtCssVariableFactory.external(G.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:G.FtCssVariableFactory.external(G.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:G.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},
|
|
87
|
+
`];var Lr=S(k());var Ye=S(V()),wi=S(k());var ba=S(z()),I=S(k());var qn=S(z()),G=S(k()),jn=G.FtCssVariableFactory.extend("--ft-ripple-color","",G.designSystemVariables.colorContent),O={color:jn,backgroundColor:G.FtCssVariableFactory.extend("--ft-ripple-background-color","",jn),opacityContentOnSurfacePressed:G.FtCssVariableFactory.external(G.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:G.FtCssVariableFactory.external(G.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:G.FtCssVariableFactory.external(G.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:G.FtCssVariableFactory.external(G.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:G.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Kn=G.FtCssVariableFactory.extend("--ft-ripple-color","",G.designSystemVariables.colorPrimary),Zn={color:Kn,backgroundColor:G.FtCssVariableFactory.extend("--ft-ripple-background-color","",Kn)},Vn=G.FtCssVariableFactory.extend("--ft-ripple-color","",G.designSystemVariables.colorSecondary),Yn={color:Vn,backgroundColor:G.FtCssVariableFactory.extend("--ft-ripple-background-color","",Vn)},Xn=qn.css`
|
|
88
88
|
:host {
|
|
89
89
|
display: contents;
|
|
90
90
|
}
|
|
@@ -147,11 +147,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
150
|
-
background-color: ${
|
|
150
|
+
background-color: ${Zn.backgroundColor};
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
154
|
-
background-color: ${
|
|
154
|
+
background-color: ${Zn.color};
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
.ft-ripple .ft-ripple--background {
|
|
@@ -417,7 +417,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
417
417
|
.ft-icon--material {
|
|
418
418
|
font-family: ${Q.materialFontFamily}, "Material Icons", sans-serif;
|
|
419
419
|
}
|
|
420
|
-
`,bt.noTextSelect];var ma=I.FtCssVariableFactory.extend("--ft-button-color","",I.designSystemVariables.colorPrimary),
|
|
420
|
+
`,bt.noTextSelect];var ma=I.FtCssVariableFactory.extend("--ft-button-color","",I.designSystemVariables.colorPrimary),K={backgroundColor:I.FtCssVariableFactory.extend("--ft-button-background-color","",I.designSystemVariables.colorSurface),borderRadius:I.FtCssVariableFactory.extend("--ft-button-border-radius","",I.designSystemVariables.borderRadiusL),color:ma,fontSize:I.FtCssVariableFactory.extend("--ft-button-font-size","",wt.fontSize),iconSize:I.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:I.FtCssVariableFactory.extend("--ft-button-ripple-color","",ma),verticalPadding:I.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:I.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:I.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:I.FtCssVariableFactory.external(I.designSystemVariables.colorOpacityDisabled,"Design system")},ga=I.FtCssVariableFactory.extend("--ft-button-primary-color","",I.FtCssVariableFactory.extend("--ft-button-color","",I.designSystemVariables.colorOnPrimary)),rr={backgroundColor:I.FtCssVariableFactory.extend("--ft-button-primary-background-color","",I.FtCssVariableFactory.extend("--ft-button-background-color","",I.designSystemVariables.colorPrimary)),color:ga,rippleColor:I.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",ga)},Et={borderRadius:I.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",I.FtCssVariableFactory.extend("--ft-button-border-radius","",I.designSystemVariables.borderRadiusM)),verticalPadding:I.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:I.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:I.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},xa=[ba.css`
|
|
421
421
|
:host {
|
|
422
422
|
display: inline-block;
|
|
423
423
|
max-width: 100%;
|
|
@@ -428,7 +428,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
428
428
|
box-shadow: 0px 0px 0px transparent;
|
|
429
429
|
border: 0px solid transparent;
|
|
430
430
|
text-shadow: 0px 0px 0px transparent;
|
|
431
|
-
font-size: ${
|
|
431
|
+
font-size: ${K.fontSize};
|
|
432
432
|
text-decoration: none;
|
|
433
433
|
}
|
|
434
434
|
|
|
@@ -458,21 +458,21 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
458
458
|
border: none;
|
|
459
459
|
pointer-events: auto;
|
|
460
460
|
|
|
461
|
-
--ft-button-internal-line-height: max(calc(${
|
|
462
|
-
--ft-button-internal-color: ${
|
|
463
|
-
${(0,I.setVariable)(Q.size,
|
|
464
|
-
${(0,I.setVariable)(O.color,
|
|
461
|
+
--ft-button-internal-line-height: max(calc(${K.fontSize} + 2px), ${K.iconSize});
|
|
462
|
+
--ft-button-internal-color: ${K.color};
|
|
463
|
+
${(0,I.setVariable)(Q.size,K.iconSize)};
|
|
464
|
+
${(0,I.setVariable)(O.color,K.rippleColor)};
|
|
465
465
|
|
|
466
|
-
border-radius: ${
|
|
467
|
-
padding: ${
|
|
468
|
-
background-color: ${
|
|
466
|
+
border-radius: ${K.borderRadius};
|
|
467
|
+
padding: ${K.verticalPadding} ${K.horizontalPadding};
|
|
468
|
+
background-color: ${K.backgroundColor};
|
|
469
469
|
color: var(--ft-button-internal-color);
|
|
470
470
|
-webkit-mask-image: radial-gradient(white, black);
|
|
471
471
|
}
|
|
472
472
|
|
|
473
473
|
.ft-button.ft-button--outlined {
|
|
474
474
|
border: 1px solid var(--ft-button-internal-color);
|
|
475
|
-
padding: calc(${
|
|
475
|
+
padding: calc(${K.verticalPadding} - 1px) calc(${K.horizontalPadding} - 1px);
|
|
476
476
|
}
|
|
477
477
|
|
|
478
478
|
.ft-button.ft-button--dense {
|
|
@@ -490,7 +490,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
490
490
|
}
|
|
491
491
|
|
|
492
492
|
.ft-button--round {
|
|
493
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
493
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${K.verticalPadding});
|
|
494
494
|
}
|
|
495
495
|
|
|
496
496
|
.ft-button--round.ft-button--dense {
|
|
@@ -499,7 +499,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
499
499
|
|
|
500
500
|
.ft-button[disabled] {
|
|
501
501
|
filter: grayscale(1);
|
|
502
|
-
opacity: ${
|
|
502
|
+
opacity: ${K.opacityDisabled};
|
|
503
503
|
}
|
|
504
504
|
|
|
505
505
|
.ft-button.ft-button--primary {
|
|
@@ -518,7 +518,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
518
518
|
white-space: nowrap;
|
|
519
519
|
text-overflow: ellipsis;
|
|
520
520
|
display: block;
|
|
521
|
-
margin: 0 ${
|
|
521
|
+
margin: 0 ${K.iconPadding};
|
|
522
522
|
${(0,I.setVariable)(wt.fontSize,"1em")};
|
|
523
523
|
${(0,I.setVariable)(wt.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
524
524
|
}
|
|
@@ -537,8 +537,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
537
537
|
}
|
|
538
538
|
|
|
539
539
|
.ft-button--label[hidden] + [part="icon"] {
|
|
540
|
-
margin: 0 calc(${
|
|
541
|
-
padding: 0 ${
|
|
540
|
+
margin: 0 calc(${K.horizontalPadding} * -1);
|
|
541
|
+
padding: 0 ${K.verticalPadding};
|
|
542
542
|
}
|
|
543
543
|
|
|
544
544
|
.ft-button--dense .ft-button--label[hidden] + [part="icon"] {
|
|
@@ -551,10 +551,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
551
551
|
}
|
|
552
552
|
|
|
553
553
|
ft-loader {
|
|
554
|
-
${(0,I.setVariable)(_.size,
|
|
554
|
+
${(0,I.setVariable)(_.size,K.iconSize)};
|
|
555
555
|
${(0,I.setVariable)(_.color,"var(--ft-button-internal-color)")};
|
|
556
556
|
}
|
|
557
|
-
`,I.noTextSelect];var
|
|
557
|
+
`,I.noTextSelect];var Kt=S(k());var Oa=S(k());var va=S(z()),Y=S(V()),Sa=S(so()),We=S(k());var ot=function(e,o,r,n){var a=arguments.length,i=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(i=(a<3?l(i):a>3?l(o,r,i):l(o,r))||i);return a>3&&i&&Object.defineProperty(o,r,i),i},M=class extends We.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 We.Debouncer(1e3),this.onTransitionStart=o=>{o.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=o=>{o.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new We.Debouncer(10),this.moveRipple=o=>{var r,n;let{x:a,y:i}=this.getCoordinates(o),l=(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(a!=null?a-l.x:l.width/2),this.originY=Math.round(i!=null?i-l.y:l.height/2)},this.startPress=o=>{this.moveRipple(o),this.pressed=!this.isIgnored(o)},this.endPress=()=>{this.pressed=!1},this.startHover=o=>{this.hovered=!this.isIgnored(o)},this.endHover=()=>{this.hovered=!1},this.startFocus=o=>{this.focused=this.isFocusVisible(o?.target)&&!this.isIgnored(o)},this.endFocus=()=>{this.focused=!1}}render(){let o={"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 va.html`
|
|
558
558
|
<style>
|
|
559
559
|
.ft-ripple .ft-ripple--effect {
|
|
560
560
|
left: ${this.originX}px;
|
|
@@ -565,9 +565,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
565
565
|
<div class="ft-ripple--background"></div>
|
|
566
566
|
<div class="ft-ripple--effect"></div>
|
|
567
567
|
</div>
|
|
568
|
-
`}contentAvailableCallback(o){super.contentAvailableCallback(o),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(o){var r,n;super.update(o),o.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 o,r;let n=(o=this.shadowRoot)===null||o===void 0?void 0:o.host.parentElement;n&&this.setupFor((r=this.target)!==null&&r!==void 0?r:n)}setupFor(o){if(this.setupDebouncer.cancel(),this.target===o)return;this.onDisconnect&&this.onDisconnect(),this.target=o,o.setAttribute("data-is-ft-ripple-target","true");let r=(...d)=>p=>{d.forEach(f=>window.addEventListener(f,this.endPress,{once:!0})),this.startPress(p)},n=r("mouseup","contextmenu"),a=r("touchend","touchcancel"),i=d=>{["Enter"," "].includes(d.key)&&r("keyup")(d)},l={passive:!0};o.addEventListener("mouseover",this.startHover,l),o.addEventListener("mousemove",this.moveRipple,l),o.addEventListener("mouseleave",this.endHover,l),o.addEventListener("mousedown",n,l),o.addEventListener("touchstart",a,l),o.addEventListener("touchmove",this.moveRipple,l),o.addEventListener("keydown",i,l),o.addEventListener("focus",this.startFocus,l),o.addEventListener("blur",this.endFocus,l),o.addEventListener("focusin",this.startFocus,l),o.addEventListener("focusout",this.endFocus,l),this.onDisconnect=()=>{o.removeAttribute("data-is-ft-ripple-target"),o.removeEventListener("mouseover",this.startHover,l),o.removeEventListener("mousemove",this.moveRipple,l),o.removeEventListener("mouseleave",this.endHover,l),o.removeEventListener("mousedown",n,l),o.removeEventListener("touchstart",a,l),o.removeEventListener("touchmove",this.moveRipple,l),o.removeEventListener("keydown",i,l),o.removeEventListener("focus",this.startFocus,l),o.removeEventListener("blur",this.endFocus,l),o.removeEventListener("focusin",this.startFocus,l),o.removeEventListener("focusout",this.endFocus,l),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(o){let r=o,n=o,a,i;return r.x!=null?{x:a,y:i}=r:n.touches!=null&&(a=n.touches[0].clientX,i=n.touches[0].clientY),{x:a,y:i}}isFocusVisible(o){return o instanceof HTMLElement?o.matches(":focus-visible"):!0}isIgnored(o){if(this.disabled)return!0;if(o!=null)for(let r of o.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()}};M.elementDefinitions={};M.styles=Xn;ot([(0,Y.property)({type:Boolean})],M.prototype,"primary",void 0);ot([(0,Y.property)({type:Boolean})],M.prototype,"secondary",void 0);ot([(0,Y.property)({type:Boolean})],M.prototype,"unbounded",void 0);ot([(0,Y.property)({type:Boolean})],M.prototype,"activated",void 0);ot([(0,Y.property)({type:Boolean})],M.prototype,"selected",void 0);ot([(0,Y.property)({type:Boolean})],M.prototype,"disabled",void 0);ot([(0,Y.state)()],M.prototype,"hovered",void 0);ot([(0,Y.state)()],M.prototype,"focused",void 0);ot([(0,Y.state)()],M.prototype,"pressed",void 0);ot([(0,Y.state)()],M.prototype,"rippling",void 0);ot([(0,Y.state)()],M.prototype,"originX",void 0);ot([(0,Y.state)()],M.prototype,"originY",void 0);ot([(0,Y.query)(".ft-ripple")],M.prototype,"ripple",void 0);ot([(0,Y.query)(".ft-ripple--effect")],M.prototype,"rippleEffect",void 0);(0,Oa.customElement)("ft-ripple")(M);var hi=S(k());var yi=S(z()),F=S(V()),
|
|
568
|
+
`}contentAvailableCallback(o){super.contentAvailableCallback(o),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(o){var r,n;super.update(o),o.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 o,r;let n=(o=this.shadowRoot)===null||o===void 0?void 0:o.host.parentElement;n&&this.setupFor((r=this.target)!==null&&r!==void 0?r:n)}setupFor(o){if(this.setupDebouncer.cancel(),this.target===o)return;this.onDisconnect&&this.onDisconnect(),this.target=o,o.setAttribute("data-is-ft-ripple-target","true");let r=(...d)=>p=>{d.forEach(f=>window.addEventListener(f,this.endPress,{once:!0})),this.startPress(p)},n=r("mouseup","contextmenu"),a=r("touchend","touchcancel"),i=d=>{["Enter"," "].includes(d.key)&&r("keyup")(d)},l={passive:!0};o.addEventListener("mouseover",this.startHover,l),o.addEventListener("mousemove",this.moveRipple,l),o.addEventListener("mouseleave",this.endHover,l),o.addEventListener("mousedown",n,l),o.addEventListener("touchstart",a,l),o.addEventListener("touchmove",this.moveRipple,l),o.addEventListener("keydown",i,l),o.addEventListener("focus",this.startFocus,l),o.addEventListener("blur",this.endFocus,l),o.addEventListener("focusin",this.startFocus,l),o.addEventListener("focusout",this.endFocus,l),this.onDisconnect=()=>{o.removeAttribute("data-is-ft-ripple-target"),o.removeEventListener("mouseover",this.startHover,l),o.removeEventListener("mousemove",this.moveRipple,l),o.removeEventListener("mouseleave",this.endHover,l),o.removeEventListener("mousedown",n,l),o.removeEventListener("touchstart",a,l),o.removeEventListener("touchmove",this.moveRipple,l),o.removeEventListener("keydown",i,l),o.removeEventListener("focus",this.startFocus,l),o.removeEventListener("blur",this.endFocus,l),o.removeEventListener("focusin",this.startFocus,l),o.removeEventListener("focusout",this.endFocus,l),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(o){let r=o,n=o,a,i;return r.x!=null?{x:a,y:i}=r:n.touches!=null&&(a=n.touches[0].clientX,i=n.touches[0].clientY),{x:a,y:i}}isFocusVisible(o){return o instanceof HTMLElement?o.matches(":focus-visible"):!0}isIgnored(o){if(this.disabled)return!0;if(o!=null)for(let r of o.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()}};M.elementDefinitions={};M.styles=Xn;ot([(0,Y.property)({type:Boolean})],M.prototype,"primary",void 0);ot([(0,Y.property)({type:Boolean})],M.prototype,"secondary",void 0);ot([(0,Y.property)({type:Boolean})],M.prototype,"unbounded",void 0);ot([(0,Y.property)({type:Boolean})],M.prototype,"activated",void 0);ot([(0,Y.property)({type:Boolean})],M.prototype,"selected",void 0);ot([(0,Y.property)({type:Boolean})],M.prototype,"disabled",void 0);ot([(0,Y.state)()],M.prototype,"hovered",void 0);ot([(0,Y.state)()],M.prototype,"focused",void 0);ot([(0,Y.state)()],M.prototype,"pressed",void 0);ot([(0,Y.state)()],M.prototype,"rippling",void 0);ot([(0,Y.state)()],M.prototype,"originX",void 0);ot([(0,Y.state)()],M.prototype,"originY",void 0);ot([(0,Y.query)(".ft-ripple")],M.prototype,"ripple",void 0);ot([(0,Y.query)(".ft-ripple--effect")],M.prototype,"rippleEffect",void 0);(0,Oa.customElement)("ft-ripple")(M);var hi=S(k());var yi=S(z()),F=S(V()),Ke=S(k());var Ma=S(k());var dr=globalThis,yo=dr.trustedTypes,Ca=yo?yo.createPolicy("lit-html",{createHTML:e=>e}):void 0,La="$lit$",Ht=`lit$${Math.random().toFixed(9).slice(2)}$`,Pa="?"+Ht,Hc=`<${Pa}>`,ne=document,ho=()=>ne.createComment(""),ze=e=>e===null||typeof e!="object"&&typeof e!="function",fr=Array.isArray,Gc=e=>fr(e)||typeof e?.[Symbol.iterator]=="function",nr=`[
|
|
569
569
|
\f\r]`,De=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,wa=/-->/g,Ea=/>/g,oe=RegExp(`>|${nr}(?:([^\\s"'>=/]+)(${nr}*=${nr}*(?:[^
|
|
570
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Na=/'/g,Aa=/"/g,Ia=/^(?:script|style|textarea|title)$/i,pr=e=>(o,...r)=>({_$litType$:e,strings:o,values:r}),ka=pr(1),Ba=pr(2),Ta=pr(3),Me=Symbol.for("lit-noChange"),
|
|
570
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Na=/'/g,Aa=/"/g,Ia=/^(?:script|style|textarea|title)$/i,pr=e=>(o,...r)=>({_$litType$:e,strings:o,values:r}),ka=pr(1),Ba=pr(2),Ta=pr(3),Me=Symbol.for("lit-noChange"),Z=Symbol.for("lit-nothing"),Ra=new WeakMap,re=ne.createTreeWalker(ne,129);function $a(e,o){if(!fr(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ca!==void 0?Ca.createHTML(o):o}var Fc=(e,o)=>{let r=e.length-1,n=[],a,i=o===2?"<svg>":o===3?"<math>":"",l=De;for(let d=0;d<r;d++){let p=e[d],f,y,h=-1,m=0;for(;m<p.length&&(l.lastIndex=m,y=l.exec(p),y!==null);)m=l.lastIndex,l===De?y[1]==="!--"?l=wa:y[1]!==void 0?l=Ea:y[2]!==void 0?(Ia.test(y[2])&&(a=RegExp("</"+y[2],"g")),l=oe):y[3]!==void 0&&(l=oe):l===oe?y[0]===">"?(l=a??De,h=-1):y[1]===void 0?h=-2:(h=l.lastIndex-y[2].length,f=y[1],l=y[3]===void 0?oe:y[3]==='"'?Aa:Na):l===Aa||l===Na?l=oe:l===wa||l===Ea?l=De:(l=oe,a=void 0);let b=l===oe&&e[d+1].startsWith("/>")?" ":"";i+=l===De?p+Hc:h>=0?(n.push(f),p.slice(0,h)+La+p.slice(h)+Ht+b):p+Ht+(h===-2?d:b)}return[$a(e,i+(e[r]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),n]},Ue=class e{constructor({strings:o,_$litType$:r},n){let a;this.parts=[];let i=0,l=0,d=o.length-1,p=this.parts,[f,y]=Fc(o,r);if(this.el=e.createElement(f,n),re.currentNode=this.el.content,r===2||r===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(a=re.nextNode())!==null&&p.length<d;){if(a.nodeType===1){if(a.hasAttributes())for(let h of a.getAttributeNames())if(h.endsWith(La)){let m=y[l++],b=a.getAttribute(h).split(Ht),g=/([.?@])?(.*)/.exec(m);p.push({type:1,index:i,name:g[2],strings:b,ctor:g[1]==="."?ir:g[1]==="?"?cr:g[1]==="@"?lr:we}),a.removeAttribute(h)}else h.startsWith(Ht)&&(p.push({type:6,index:i}),a.removeAttribute(h));if(Ia.test(a.tagName)){let h=a.textContent.split(Ht),m=h.length-1;if(m>0){a.textContent=yo?yo.emptyScript:"";for(let b=0;b<m;b++)a.append(h[b],ho()),re.nextNode(),p.push({type:2,index:++i});a.append(h[m],ho())}}}else if(a.nodeType===8)if(a.data===Pa)p.push({type:2,index:i});else{let h=-1;for(;(h=a.data.indexOf(Ht,h+1))!==-1;)p.push({type:7,index:i}),h+=Ht.length-1}i++}}static createElement(o,r){let n=ne.createElement("template");return n.innerHTML=o,n}};function Ce(e,o,r=e,n){if(o===Me)return o;let a=n!==void 0?r._$Co?.[n]:r._$Cl,i=ze(o)?void 0:o._$litDirective$;return a?.constructor!==i&&(a?._$AO?.(!1),i===void 0?a=void 0:(a=new i(e),a._$AT(e,r,n)),n!==void 0?(r._$Co??=[])[n]=a:r._$Cl=a),a!==void 0&&(o=Ce(e,a._$AS(e,o.values),a,n)),o}var ar=class{constructor(o,r){this._$AV=[],this._$AN=void 0,this._$AD=o,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(o){let{el:{content:r},parts:n}=this._$AD,a=(o?.creationScope??ne).importNode(r,!0);re.currentNode=a;let i=re.nextNode(),l=0,d=0,p=n[0];for(;p!==void 0;){if(l===p.index){let f;p.type===2?f=new mo(i,i.nextSibling,this,o):p.type===1?f=new p.ctor(i,p.name,p.strings,this,o):p.type===6&&(f=new sr(i,this,o)),this._$AV.push(f),p=n[++d]}l!==p?.index&&(i=re.nextNode(),l++)}return re.currentNode=ne,a}p(o){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(o,n,r),r+=n.strings.length-2):n._$AI(o[r])),r++}},mo=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(o,r,n,a){this.type=2,this._$AH=Z,this._$AN=void 0,this._$AA=o,this._$AB=r,this._$AM=n,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let o=this._$AA.parentNode,r=this._$AM;return r!==void 0&&o?.nodeType===11&&(o=r.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,r=this){o=Ce(this,o,r),ze(o)?o===Z||o==null||o===""?(this._$AH!==Z&&this._$AR(),this._$AH=Z):o!==this._$AH&&o!==Me&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):Gc(o)?this.k(o):this._(o)}O(o){return this._$AA.parentNode.insertBefore(o,this._$AB)}T(o){this._$AH!==o&&(this._$AR(),this._$AH=this.O(o))}_(o){this._$AH!==Z&&ze(this._$AH)?this._$AA.nextSibling.data=o:this.T(ne.createTextNode(o)),this._$AH=o}$(o){let{values:r,_$litType$:n}=o,a=typeof n=="number"?this._$AC(o):(n.el===void 0&&(n.el=Ue.createElement($a(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(r);else{let i=new ar(a,this),l=i.u(this.options);i.p(r),this.T(l),this._$AH=i}}_$AC(o){let r=Ra.get(o.strings);return r===void 0&&Ra.set(o.strings,r=new Ue(o)),r}k(o){fr(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,a=0;for(let i of o)a===r.length?r.push(n=new e(this.O(ho()),this.O(ho()),this,this.options)):n=r[a],n._$AI(i),a++;a<r.length&&(this._$AR(n&&n._$AB.nextSibling,a),r.length=a)}_$AR(o=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);o&&o!==this._$AB;){let n=o.nextSibling;o.remove(),o=n}}setConnected(o){this._$AM===void 0&&(this._$Cv=o,this._$AP?.(o))}},we=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,r,n,a,i){this.type=1,this._$AH=Z,this._$AN=void 0,this.element=o,this.name=r,this._$AM=a,this.options=i,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=Z}_$AI(o,r=this,n,a){let i=this.strings,l=!1;if(i===void 0)o=Ce(this,o,r,0),l=!ze(o)||o!==this._$AH&&o!==Me,l&&(this._$AH=o);else{let d=o,p,f;for(o=i[0],p=0;p<i.length-1;p++)f=Ce(this,d[n+p],r,p),f===Me&&(f=this._$AH[p]),l||=!ze(f)||f!==this._$AH[p],f===Z?o=Z:o!==Z&&(o+=(f??"")+i[p+1]),this._$AH[p]=f}l&&!a&&this.j(o)}j(o){o===Z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o??"")}},ir=class extends we{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===Z?void 0:o}},cr=class extends we{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==Z)}},lr=class extends we{constructor(o,r,n,a,i){super(o,r,n,a,i),this.type=5}_$AI(o,r=this){if((o=Ce(this,o,r,0)??Z)===Me)return;let n=this._$AH,a=o===Z&&n!==Z||o.capture!==n.capture||o.once!==n.once||o.passive!==n.passive,i=o!==Z&&(n===Z||a);a&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,o):this._$AH.handleEvent(o)}},sr=class{constructor(o,r,n){this.element=o,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(o){Ce(this,o)}};var jc=dr.litHtmlPolyfillSupport;jc?.(Ue,mo),(dr.litHtmlVersions??=[]).push("3.3.0");var Wa=Symbol.for(""),Kc=e=>{if(e?.r===Wa)return e?._$litStatic$},ur=e=>({_$litStatic$:e,r:Wa});var _a=new Map,yr=e=>(o,...r)=>{let n=r.length,a,i,l=[],d=[],p,f=0,y=!1;for(;f<n;){for(p=o[f];f<n&&(i=r[f],(a=Kc(i))!==void 0);)p+=a+o[++f],y=!0;f!==n&&d.push(i),l.push(p),f++}if(f===n&&l.push(o[n]),y){let h=l.join("$$lit$$");(o=_a.get(h))===void 0&&(l.raw=l,_a.set(h,o=l)),r=d}return e(o,...r)},hr=yr(ka),Mu=yr(Ba),Uu=yr(Ta);var mr=S(V()),za=S(k());var ht;(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",e.display="display",e.title1="title-1",e.title2="title-2",e.title3="title-3",e.body1regular="body-1-regular",e.body1medium="body-1-medium",e.body1semibold="body-1-semibold",e.body2regular="body-2-regular",e.body2medium="body-2-medium",e.body2semibold="body-2-semibold",e.label1medium="label-1-medium",e.label1semibold="label-1-semibold",e.label1bold="label-1-bold",e.label2medium="label-2-medium",e.label2semibold="label-2-semibold",e.label2bold="label-2-bold",e.caption1medium="caption-1-medium",e.caption1semibold="caption-1-semibold",e.caption1bold="caption-1-bold",e.caption2medium="caption-2-medium",e.caption2semibold="caption-2-semibold",e.caption2bold="caption-2-bold"})(ht||(ht={}));var Da=function(e,o,r,n){var a=arguments.length,i=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(i=(a<3?l(i):a>3?l(o,r,i):l(o,r))||i);return a>3&&i&&Object.defineProperty(o,r,i),i},tt=class extends za.FtLitElement{constructor(){super(...arguments),this.variant=ht.body1}render(){return this.element?hr`
|
|
571
571
|
<${ur(this.element)}
|
|
572
572
|
part="text"
|
|
573
573
|
class="ft-typography ft-typography--${this.variant}">
|
|
@@ -604,7 +604,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
604
604
|
position: relative;
|
|
605
605
|
word-break: break-word;
|
|
606
606
|
}
|
|
607
|
-
`;var Fa=["top","right","bottom","left"],Ga=["start","end"],br=Fa.reduce((e,o)=>e.concat(o,o+"-"+Ga[0],o+"-"+Ga[1]),[]),ja=Math.min,Za=Math.max;var Kc={left:"right",right:"left",bottom:"top",top:"bottom"},Vc={start:"end",end:"start"};function xr(e,o,r){return Za(e,ja(o,r))}function go(e,o){return typeof e=="function"?e(o):e}function Ne(e){return e.split("-")[0]}function Gt(e){return e.split("-")[1]}function vr(e){return e==="x"?"y":"x"}function Sr(e){return e==="y"?"height":"width"}function bo(e){return["top","bottom"].includes(Ne(e))?"y":"x"}function Or(e){return vr(bo(e))}function Ka(e,o,r){r===void 0&&(r=!1);let n=Gt(e),a=Or(e),i=Sr(a),l=a==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return o.reference[i]>o.floating[i]&&(l=gr(l)),[l,gr(l)]}function Va(e){return e.replace(/start|end/g,o=>Vc[o])}function gr(e){return e.replace(/left|right|bottom|top/g,o=>Kc[o])}function Yc(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ya(e){return typeof e!="number"?Yc(e):{top:e,right:e,bottom:e,left:e}}function ae(e){let{x:o,y:r,width:n,height:a}=e;return{width:n,height:a,top:r,left:o,right:o+n,bottom:r+a,x:o,y:r}}function qa(e,o,r){let{reference:n,floating:a}=e,i=bo(o),l=Or(o),d=Sr(l),p=Ne(o),f=i==="y",y=n.x+n.width/2-a.width/2,h=n.y+n.height/2-a.height/2,m=n[d]/2-a[d]/2,b;switch(p){case"top":b={x:y,y:n.y-a.height};break;case"bottom":b={x:y,y:n.y+n.height};break;case"right":b={x:n.x+n.width,y:h};break;case"left":b={x:n.x-a.width,y:h};break;default:b={x:n.x,y:n.y}}switch(Gt(o)){case"start":b[l]-=m*(r&&f?-1:1);break;case"end":b[l]+=m*(r&&f?-1:1);break}return b}var Xa=async(e,o,r)=>{let{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:l}=r,d=i.filter(Boolean),p=await(l.isRTL==null?void 0:l.isRTL(o)),f=await l.getElementRects({reference:e,floating:o,strategy:a}),{x:y,y:h}=qa(f,n,p),m=n,b={},g=0;for(let v=0;v<d.length;v++){let{name:R,fn:E}=d[v],{x:N,y:P,data:B,reset:T}=await E({x:y,y:h,initialPlacement:n,placement:m,strategy:a,middlewareData:b,rects:f,platform:l,elements:{reference:e,floating:o}});y=N??y,h=P??h,b={...b,[R]:{...b[R],...B}},T&&g<=50&&(g++,typeof T=="object"&&(T.placement&&(m=T.placement),T.rects&&(f=T.rects===!0?await l.getElementRects({reference:e,floating:o,strategy:a}):T.rects),{x:y,y:h}=qa(f,m,p)),v=-1)}return{x:y,y:h,placement:m,strategy:a,middlewareData:b}};async function Cr(e,o){var r;o===void 0&&(o={});let{x:n,y:a,platform:i,rects:l,elements:d,strategy:p}=e,{boundary:f="clippingAncestors",rootBoundary:y="viewport",elementContext:h="floating",altBoundary:m=!1,padding:b=0}=go(o,e),g=Ya(b),R=d[m?h==="floating"?"reference":"floating":h],E=ae(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(R)))==null||r?R:R.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(d.floating)),boundary:f,rootBoundary:y,strategy:p})),N=h==="floating"?{x:n,y:a,width:l.floating.width,height:l.floating.height}:l.reference,P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d.floating)),B=await(i.isElement==null?void 0:i.isElement(P))?await(i.getScale==null?void 0:i.getScale(P))||{x:1,y:1}:{x:1,y:1},T=ae(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:N,offsetParent:P,strategy:p}):N);return{top:(E.top-T.top+g.top)/B.y,bottom:(T.bottom-E.bottom+g.bottom)/B.y,left:(E.left-T.left+g.left)/B.x,right:(T.right-E.right+g.right)/B.x}}function qc(e,o,r){return(e?[...r.filter(a=>Gt(a)===e),...r.filter(a=>Gt(a)!==e)]:r.filter(a=>Ne(a)===a)).filter(a=>e?Gt(a)===e||(o?Va(a)!==a:!1):!0)}var wr=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(o){var r,n,a;let{rects:i,middlewareData:l,placement:d,platform:p,elements:f}=o,{crossAxis:y=!1,alignment:h,allowedPlacements:m=br,autoAlignment:b=!0,...g}=go(e,o),v=h!==void 0||m===br?qc(h||null,b,m):m,R=await Cr(o,g),E=((r=l.autoPlacement)==null?void 0:r.index)||0,N=v[E];if(N==null)return{};let P=Ka(N,i,await(p.isRTL==null?void 0:p.isRTL(f.floating)));if(d!==N)return{reset:{placement:v[0]}};let B=[R[Ne(N)],R[P[0]],R[P[1]]],T=[...((n=l.autoPlacement)==null?void 0:n.overflows)||[],{placement:N,overflows:B}],pt=v[E+1];if(pt)return{data:{index:E+1,overflows:T},reset:{placement:pt}};let zt=T.map(it=>{let ut=Gt(it.placement);return[it.placement,ut&&y?it.overflows.slice(0,2).reduce((ct,ee)=>ct+ee,0):it.overflows[0],it.overflows]}).sort((it,ut)=>it[1]-ut[1]),Mt=((a=zt.filter(it=>it[2].slice(0,Gt(it[0])?2:3).every(ut=>ut<=0))[0])==null?void 0:a[0])||zt[0][0];return Mt!==d?{data:{index:E+1,overflows:T},reset:{placement:Mt}}:{}}}};var Er=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(o){let{x:r,y:n,placement:a}=o,{mainAxis:i=!0,crossAxis:l=!1,limiter:d={fn:R=>{let{x:E,y:N}=R;return{x:E,y:N}}},...p}=go(e,o),f={x:r,y:n},y=await Cr(o,p),h=bo(Ne(a)),m=vr(h),b=f[m],g=f[h];if(i){let R=m==="y"?"top":"left",E=m==="y"?"bottom":"right",N=b+y[R],P=b-y[E];b=xr(N,b,P)}if(l){let R=h==="y"?"top":"left",E=h==="y"?"bottom":"right",N=g+y[R],P=g-y[E];g=xr(N,g,P)}let v=d.fn({...o,[m]:b,[h]:g});return{...v,data:{x:v.x-r,y:v.y-n,enabled:{[m]:i,[h]:l}}}}}};var Nr=Math.min,Ae=Math.max,He=Math.round;var kt=e=>({x:e,y:e});function Bt(e){return Qa(e)?(e.nodeName||"").toLowerCase():"#document"}function rt(e){var o;return(e==null||(o=e.ownerDocument)==null?void 0:o.defaultView)||window}function Tt(e){var o;return(o=(Qa(e)?e.ownerDocument:e.document)||window.document)==null?void 0:o.documentElement}function Qa(e){return e instanceof Node||e instanceof rt(e).Node}function Nt(e){return e instanceof Element||e instanceof rt(e).Element}function xt(e){return e instanceof HTMLElement||e instanceof rt(e).HTMLElement}function Ja(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof rt(e).ShadowRoot}function Re(e){let{overflow:o,overflowX:r,overflowY:n,display:a}=st(e);return/auto|scroll|overlay|hidden|clip/.test(o+n+r)&&!["inline","contents"].includes(a)}function ti(e){return["table","td","th"].includes(Bt(e))}function vo(e){let o=So(),r=st(e);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!o&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!o&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function ei(e){let o=ie(e);for(;xt(o)&&!Ge(o);){if(vo(o))return o;o=ie(o)}return null}function So(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ge(e){return["html","body","#document"].includes(Bt(e))}function st(e){return rt(e).getComputedStyle(e)}function Fe(e){return Nt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ie(e){if(Bt(e)==="html")return e;let o=e.assignedSlot||e.parentNode||Ja(e)&&e.host||Tt(e);return Ja(o)?o.host:o}function oi(e){let o=ie(e);return Ge(o)?e.ownerDocument?e.ownerDocument.body:e.body:xt(o)&&Re(o)?o:oi(o)}function xo(e,o,r){var n;o===void 0&&(o=[]),r===void 0&&(r=!0);let a=oi(e),i=a===((n=e.ownerDocument)==null?void 0:n.body),l=rt(a);return i?o.concat(l,l.visualViewport||[],Re(a)?a:[],l.frameElement&&r?xo(l.frameElement):[]):o.concat(a,xo(a,[],r))}function ai(e){let o=st(e),r=parseFloat(o.width)||0,n=parseFloat(o.height)||0,a=xt(e),i=a?e.offsetWidth:r,l=a?e.offsetHeight:n,d=He(r)!==i||He(n)!==l;return d&&(r=i,n=l),{width:r,height:n,$:d}}function ii(e){return Nt(e)?e:e.contextElement}function Le(e){let o=ii(e);if(!xt(o))return kt(1);let r=o.getBoundingClientRect(),{width:n,height:a,$:i}=ai(o),l=(i?He(r.width):r.width)/n,d=(i?He(r.height):r.height)/a;return(!l||!Number.isFinite(l))&&(l=1),(!d||!Number.isFinite(d))&&(d=1),{x:l,y:d}}var Qc=kt(0);function ci(e){let o=rt(e);return!So()||!o.visualViewport?Qc:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function tl(e,o,r){return o===void 0&&(o=!1),!r||o&&r!==rt(e)?!1:o}function je(e,o,r,n){o===void 0&&(o=!1),r===void 0&&(r=!1);let a=e.getBoundingClientRect(),i=ii(e),l=kt(1);o&&(n?Nt(n)&&(l=Le(n)):l=Le(e));let d=tl(i,r,n)?ci(i):kt(0),p=(a.left+d.x)/l.x,f=(a.top+d.y)/l.y,y=a.width/l.x,h=a.height/l.y;if(i){let m=rt(i),b=n&&Nt(n)?rt(n):n,g=m.frameElement;for(;g&&n&&b!==m;){let v=Le(g),R=g.getBoundingClientRect(),E=st(g),N=R.left+(g.clientLeft+parseFloat(E.paddingLeft))*v.x,P=R.top+(g.clientTop+parseFloat(E.paddingTop))*v.y;p*=v.x,f*=v.y,y*=v.x,h*=v.y,p+=N,f+=P,g=rt(g).frameElement}}return ae({width:y,height:h,x:p,y:f})}function el(e){let{rect:o,offsetParent:r,strategy:n}=e,a=xt(r),i=Tt(r);if(r===i)return o;let l={scrollLeft:0,scrollTop:0},d=kt(1),p=kt(0);if((a||!a&&n!=="fixed")&&((Bt(r)!=="body"||Re(i))&&(l=Fe(r)),xt(r))){let f=je(r);d=Le(r),p.x=f.x+r.clientLeft,p.y=f.y+r.clientTop}return{width:o.width*d.x,height:o.height*d.y,x:o.x*d.x-l.scrollLeft*d.x+p.x,y:o.y*d.y-l.scrollTop*d.y+p.y}}function ol(e){return Array.from(e.getClientRects())}function li(e){return je(Tt(e)).left+Fe(e).scrollLeft}function rl(e){let o=Tt(e),r=Fe(e),n=e.ownerDocument.body,a=Ae(o.scrollWidth,o.clientWidth,n.scrollWidth,n.clientWidth),i=Ae(o.scrollHeight,o.clientHeight,n.scrollHeight,n.clientHeight),l=-r.scrollLeft+li(e),d=-r.scrollTop;return st(n).direction==="rtl"&&(l+=Ae(o.clientWidth,n.clientWidth)-a),{width:a,height:i,x:l,y:d}}function nl(e,o){let r=rt(e),n=Tt(e),a=r.visualViewport,i=n.clientWidth,l=n.clientHeight,d=0,p=0;if(a){i=a.width,l=a.height;let f=So();(!f||f&&o==="fixed")&&(d=a.offsetLeft,p=a.offsetTop)}return{width:i,height:l,x:d,y:p}}function al(e,o){let r=je(e,!0,o==="fixed"),n=r.top+e.clientTop,a=r.left+e.clientLeft,i=xt(e)?Le(e):kt(1),l=e.clientWidth*i.x,d=e.clientHeight*i.y,p=a*i.x,f=n*i.y;return{width:l,height:d,x:p,y:f}}function ri(e,o,r){let n;if(o==="viewport")n=nl(e,r);else if(o==="document")n=rl(Tt(e));else if(Nt(o))n=al(o,r);else{let a=ci(e);n={...o,x:o.x-a.x,y:o.y-a.y}}return ae(n)}function si(e,o){let r=ie(e);return r===o||!Nt(r)||Ge(r)?!1:st(r).position==="fixed"||si(r,o)}function il(e,o){let r=o.get(e);if(r)return r;let n=xo(e,[],!1).filter(d=>Nt(d)&&Bt(d)!=="body"),a=null,i=st(e).position==="fixed",l=i?ie(e):e;for(;Nt(l)&&!Ge(l);){let d=st(l),p=vo(l);!p&&d.position==="fixed"&&(a=null),(i?!p&&!a:!p&&d.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||Re(l)&&!p&&si(e,l))?n=n.filter(y=>y!==l):a=d,l=ie(l)}return o.set(e,n),n}function cl(e){let{element:o,boundary:r,rootBoundary:n,strategy:a}=e,l=[...r==="clippingAncestors"?il(o,this._c):[].concat(r),n],d=l[0],p=l.reduce((f,y)=>{let h=ri(o,y,a);return f.top=Ae(h.top,f.top),f.right=Nr(h.right,f.right),f.bottom=Nr(h.bottom,f.bottom),f.left=Ae(h.left,f.left),f},ri(o,d,a));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function ll(e){return ai(e)}function sl(e,o,r){let n=xt(o),a=Tt(o),i=r==="fixed",l=je(e,!0,i,o),d={scrollLeft:0,scrollTop:0},p=kt(0);if(n||!n&&!i)if((Bt(o)!=="body"||Re(a))&&(d=Fe(o)),n){let f=je(o,!0,i,o);p.x=f.x+o.clientLeft,p.y=f.y+o.clientTop}else a&&(p.x=li(a));return{x:l.left+d.scrollLeft-p.x,y:l.top+d.scrollTop-p.y,width:l.width,height:l.height}}function ni(e,o){return!xt(e)||st(e).position==="fixed"?null:o?o(e):e.offsetParent}function di(e,o){let r=rt(e);if(!xt(e))return r;let n=ni(e,o);for(;n&&ti(n)&&st(n).position==="static";)n=ni(n,o);return n&&(Bt(n)==="html"||Bt(n)==="body"&&st(n).position==="static"&&!vo(n))?r:n||ei(e)||r}var dl=async function(e){let{reference:o,floating:r,strategy:n}=e,a=this.getOffsetParent||di,i=this.getDimensions;return{reference:sl(o,await a(r),n),floating:{x:0,y:0,...await i(r)}}};function fl(e){return st(e).direction==="rtl"}var Oo={convertOffsetParentRelativeRectToViewportRelativeRect:el,getDocumentElement:Tt,getClippingRect:cl,getOffsetParent:di,getElementRects:dl,getClientRects:ol,getDimensions:ll,getScale:Le,isElement:Nt,isRTL:fl};var fi=(e,o,r)=>{let n=new Map,a={platform:Oo,...r},i={...a.platform,_c:n};return Xa(e,o,{...a,platform:i})};function pi(e){return pl(e)}function Ar(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function pl(e){for(let o=e;o;o=Ar(o))if(o instanceof Element&&getComputedStyle(o).display==="none")return null;for(let o=Ar(e);o;o=Ar(o)){if(!(o instanceof Element))continue;let r=getComputedStyle(o);if(r.display!=="contents"&&(r.position!=="static"||r.filter!=="none"||o.tagName==="BODY"))return o}return null}async function ui(e,o,r){return fi(e,o,{platform:{...Oo,getOffsetParent:n=>Oo.getOffsetParent(n,pi)},middleware:[Er({crossAxis:!0}),wr({allowedPlacements:[r]})]})}var nt=function(e,o,r,n){var a=arguments.length,i=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(i=(a<3?l(i):a>3?l(o,r,i):l(o,r))||i);return a>3&&i&&Object.defineProperty(o,r,i),i},U=class extends Ze.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new Ze.Debouncer,this.revealDebouncer=new Ze.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return yi.html`
|
|
607
|
+
`;var Fa=["top","right","bottom","left"],Ga=["start","end"],br=Fa.reduce((e,o)=>e.concat(o,o+"-"+Ga[0],o+"-"+Ga[1]),[]),ja=Math.min,Ka=Math.max;var Zc={left:"right",right:"left",bottom:"top",top:"bottom"},Vc={start:"end",end:"start"};function xr(e,o,r){return Ka(e,ja(o,r))}function go(e,o){return typeof e=="function"?e(o):e}function Ne(e){return e.split("-")[0]}function Gt(e){return e.split("-")[1]}function vr(e){return e==="x"?"y":"x"}function Sr(e){return e==="y"?"height":"width"}function bo(e){return["top","bottom"].includes(Ne(e))?"y":"x"}function Or(e){return vr(bo(e))}function Za(e,o,r){r===void 0&&(r=!1);let n=Gt(e),a=Or(e),i=Sr(a),l=a==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return o.reference[i]>o.floating[i]&&(l=gr(l)),[l,gr(l)]}function Va(e){return e.replace(/start|end/g,o=>Vc[o])}function gr(e){return e.replace(/left|right|bottom|top/g,o=>Zc[o])}function Yc(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ya(e){return typeof e!="number"?Yc(e):{top:e,right:e,bottom:e,left:e}}function ae(e){let{x:o,y:r,width:n,height:a}=e;return{width:n,height:a,top:r,left:o,right:o+n,bottom:r+a,x:o,y:r}}function qa(e,o,r){let{reference:n,floating:a}=e,i=bo(o),l=Or(o),d=Sr(l),p=Ne(o),f=i==="y",y=n.x+n.width/2-a.width/2,h=n.y+n.height/2-a.height/2,m=n[d]/2-a[d]/2,b;switch(p){case"top":b={x:y,y:n.y-a.height};break;case"bottom":b={x:y,y:n.y+n.height};break;case"right":b={x:n.x+n.width,y:h};break;case"left":b={x:n.x-a.width,y:h};break;default:b={x:n.x,y:n.y}}switch(Gt(o)){case"start":b[l]-=m*(r&&f?-1:1);break;case"end":b[l]+=m*(r&&f?-1:1);break}return b}var Xa=async(e,o,r)=>{let{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:l}=r,d=i.filter(Boolean),p=await(l.isRTL==null?void 0:l.isRTL(o)),f=await l.getElementRects({reference:e,floating:o,strategy:a}),{x:y,y:h}=qa(f,n,p),m=n,b={},g=0;for(let v=0;v<d.length;v++){let{name:R,fn:E}=d[v],{x:N,y:P,data:B,reset:T}=await E({x:y,y:h,initialPlacement:n,placement:m,strategy:a,middlewareData:b,rects:f,platform:l,elements:{reference:e,floating:o}});y=N??y,h=P??h,b={...b,[R]:{...b[R],...B}},T&&g<=50&&(g++,typeof T=="object"&&(T.placement&&(m=T.placement),T.rects&&(f=T.rects===!0?await l.getElementRects({reference:e,floating:o,strategy:a}):T.rects),{x:y,y:h}=qa(f,m,p)),v=-1)}return{x:y,y:h,placement:m,strategy:a,middlewareData:b}};async function Cr(e,o){var r;o===void 0&&(o={});let{x:n,y:a,platform:i,rects:l,elements:d,strategy:p}=e,{boundary:f="clippingAncestors",rootBoundary:y="viewport",elementContext:h="floating",altBoundary:m=!1,padding:b=0}=go(o,e),g=Ya(b),R=d[m?h==="floating"?"reference":"floating":h],E=ae(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(R)))==null||r?R:R.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(d.floating)),boundary:f,rootBoundary:y,strategy:p})),N=h==="floating"?{x:n,y:a,width:l.floating.width,height:l.floating.height}:l.reference,P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d.floating)),B=await(i.isElement==null?void 0:i.isElement(P))?await(i.getScale==null?void 0:i.getScale(P))||{x:1,y:1}:{x:1,y:1},T=ae(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:N,offsetParent:P,strategy:p}):N);return{top:(E.top-T.top+g.top)/B.y,bottom:(T.bottom-E.bottom+g.bottom)/B.y,left:(E.left-T.left+g.left)/B.x,right:(T.right-E.right+g.right)/B.x}}function qc(e,o,r){return(e?[...r.filter(a=>Gt(a)===e),...r.filter(a=>Gt(a)!==e)]:r.filter(a=>Ne(a)===a)).filter(a=>e?Gt(a)===e||(o?Va(a)!==a:!1):!0)}var wr=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(o){var r,n,a;let{rects:i,middlewareData:l,placement:d,platform:p,elements:f}=o,{crossAxis:y=!1,alignment:h,allowedPlacements:m=br,autoAlignment:b=!0,...g}=go(e,o),v=h!==void 0||m===br?qc(h||null,b,m):m,R=await Cr(o,g),E=((r=l.autoPlacement)==null?void 0:r.index)||0,N=v[E];if(N==null)return{};let P=Za(N,i,await(p.isRTL==null?void 0:p.isRTL(f.floating)));if(d!==N)return{reset:{placement:v[0]}};let B=[R[Ne(N)],R[P[0]],R[P[1]]],T=[...((n=l.autoPlacement)==null?void 0:n.overflows)||[],{placement:N,overflows:B}],pt=v[E+1];if(pt)return{data:{index:E+1,overflows:T},reset:{placement:pt}};let zt=T.map(it=>{let ut=Gt(it.placement);return[it.placement,ut&&y?it.overflows.slice(0,2).reduce((ct,ee)=>ct+ee,0):it.overflows[0],it.overflows]}).sort((it,ut)=>it[1]-ut[1]),Mt=((a=zt.filter(it=>it[2].slice(0,Gt(it[0])?2:3).every(ut=>ut<=0))[0])==null?void 0:a[0])||zt[0][0];return Mt!==d?{data:{index:E+1,overflows:T},reset:{placement:Mt}}:{}}}};var Er=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(o){let{x:r,y:n,placement:a}=o,{mainAxis:i=!0,crossAxis:l=!1,limiter:d={fn:R=>{let{x:E,y:N}=R;return{x:E,y:N}}},...p}=go(e,o),f={x:r,y:n},y=await Cr(o,p),h=bo(Ne(a)),m=vr(h),b=f[m],g=f[h];if(i){let R=m==="y"?"top":"left",E=m==="y"?"bottom":"right",N=b+y[R],P=b-y[E];b=xr(N,b,P)}if(l){let R=h==="y"?"top":"left",E=h==="y"?"bottom":"right",N=g+y[R],P=g-y[E];g=xr(N,g,P)}let v=d.fn({...o,[m]:b,[h]:g});return{...v,data:{x:v.x-r,y:v.y-n,enabled:{[m]:i,[h]:l}}}}}};var Nr=Math.min,Ae=Math.max,He=Math.round;var kt=e=>({x:e,y:e});function Bt(e){return Qa(e)?(e.nodeName||"").toLowerCase():"#document"}function rt(e){var o;return(e==null||(o=e.ownerDocument)==null?void 0:o.defaultView)||window}function Tt(e){var o;return(o=(Qa(e)?e.ownerDocument:e.document)||window.document)==null?void 0:o.documentElement}function Qa(e){return e instanceof Node||e instanceof rt(e).Node}function Nt(e){return e instanceof Element||e instanceof rt(e).Element}function xt(e){return e instanceof HTMLElement||e instanceof rt(e).HTMLElement}function Ja(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof rt(e).ShadowRoot}function Re(e){let{overflow:o,overflowX:r,overflowY:n,display:a}=st(e);return/auto|scroll|overlay|hidden|clip/.test(o+n+r)&&!["inline","contents"].includes(a)}function ti(e){return["table","td","th"].includes(Bt(e))}function vo(e){let o=So(),r=st(e);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!o&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!o&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function ei(e){let o=ie(e);for(;xt(o)&&!Ge(o);){if(vo(o))return o;o=ie(o)}return null}function So(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ge(e){return["html","body","#document"].includes(Bt(e))}function st(e){return rt(e).getComputedStyle(e)}function Fe(e){return Nt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ie(e){if(Bt(e)==="html")return e;let o=e.assignedSlot||e.parentNode||Ja(e)&&e.host||Tt(e);return Ja(o)?o.host:o}function oi(e){let o=ie(e);return Ge(o)?e.ownerDocument?e.ownerDocument.body:e.body:xt(o)&&Re(o)?o:oi(o)}function xo(e,o,r){var n;o===void 0&&(o=[]),r===void 0&&(r=!0);let a=oi(e),i=a===((n=e.ownerDocument)==null?void 0:n.body),l=rt(a);return i?o.concat(l,l.visualViewport||[],Re(a)?a:[],l.frameElement&&r?xo(l.frameElement):[]):o.concat(a,xo(a,[],r))}function ai(e){let o=st(e),r=parseFloat(o.width)||0,n=parseFloat(o.height)||0,a=xt(e),i=a?e.offsetWidth:r,l=a?e.offsetHeight:n,d=He(r)!==i||He(n)!==l;return d&&(r=i,n=l),{width:r,height:n,$:d}}function ii(e){return Nt(e)?e:e.contextElement}function Le(e){let o=ii(e);if(!xt(o))return kt(1);let r=o.getBoundingClientRect(),{width:n,height:a,$:i}=ai(o),l=(i?He(r.width):r.width)/n,d=(i?He(r.height):r.height)/a;return(!l||!Number.isFinite(l))&&(l=1),(!d||!Number.isFinite(d))&&(d=1),{x:l,y:d}}var Qc=kt(0);function ci(e){let o=rt(e);return!So()||!o.visualViewport?Qc:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function tl(e,o,r){return o===void 0&&(o=!1),!r||o&&r!==rt(e)?!1:o}function je(e,o,r,n){o===void 0&&(o=!1),r===void 0&&(r=!1);let a=e.getBoundingClientRect(),i=ii(e),l=kt(1);o&&(n?Nt(n)&&(l=Le(n)):l=Le(e));let d=tl(i,r,n)?ci(i):kt(0),p=(a.left+d.x)/l.x,f=(a.top+d.y)/l.y,y=a.width/l.x,h=a.height/l.y;if(i){let m=rt(i),b=n&&Nt(n)?rt(n):n,g=m.frameElement;for(;g&&n&&b!==m;){let v=Le(g),R=g.getBoundingClientRect(),E=st(g),N=R.left+(g.clientLeft+parseFloat(E.paddingLeft))*v.x,P=R.top+(g.clientTop+parseFloat(E.paddingTop))*v.y;p*=v.x,f*=v.y,y*=v.x,h*=v.y,p+=N,f+=P,g=rt(g).frameElement}}return ae({width:y,height:h,x:p,y:f})}function el(e){let{rect:o,offsetParent:r,strategy:n}=e,a=xt(r),i=Tt(r);if(r===i)return o;let l={scrollLeft:0,scrollTop:0},d=kt(1),p=kt(0);if((a||!a&&n!=="fixed")&&((Bt(r)!=="body"||Re(i))&&(l=Fe(r)),xt(r))){let f=je(r);d=Le(r),p.x=f.x+r.clientLeft,p.y=f.y+r.clientTop}return{width:o.width*d.x,height:o.height*d.y,x:o.x*d.x-l.scrollLeft*d.x+p.x,y:o.y*d.y-l.scrollTop*d.y+p.y}}function ol(e){return Array.from(e.getClientRects())}function li(e){return je(Tt(e)).left+Fe(e).scrollLeft}function rl(e){let o=Tt(e),r=Fe(e),n=e.ownerDocument.body,a=Ae(o.scrollWidth,o.clientWidth,n.scrollWidth,n.clientWidth),i=Ae(o.scrollHeight,o.clientHeight,n.scrollHeight,n.clientHeight),l=-r.scrollLeft+li(e),d=-r.scrollTop;return st(n).direction==="rtl"&&(l+=Ae(o.clientWidth,n.clientWidth)-a),{width:a,height:i,x:l,y:d}}function nl(e,o){let r=rt(e),n=Tt(e),a=r.visualViewport,i=n.clientWidth,l=n.clientHeight,d=0,p=0;if(a){i=a.width,l=a.height;let f=So();(!f||f&&o==="fixed")&&(d=a.offsetLeft,p=a.offsetTop)}return{width:i,height:l,x:d,y:p}}function al(e,o){let r=je(e,!0,o==="fixed"),n=r.top+e.clientTop,a=r.left+e.clientLeft,i=xt(e)?Le(e):kt(1),l=e.clientWidth*i.x,d=e.clientHeight*i.y,p=a*i.x,f=n*i.y;return{width:l,height:d,x:p,y:f}}function ri(e,o,r){let n;if(o==="viewport")n=nl(e,r);else if(o==="document")n=rl(Tt(e));else if(Nt(o))n=al(o,r);else{let a=ci(e);n={...o,x:o.x-a.x,y:o.y-a.y}}return ae(n)}function si(e,o){let r=ie(e);return r===o||!Nt(r)||Ge(r)?!1:st(r).position==="fixed"||si(r,o)}function il(e,o){let r=o.get(e);if(r)return r;let n=xo(e,[],!1).filter(d=>Nt(d)&&Bt(d)!=="body"),a=null,i=st(e).position==="fixed",l=i?ie(e):e;for(;Nt(l)&&!Ge(l);){let d=st(l),p=vo(l);!p&&d.position==="fixed"&&(a=null),(i?!p&&!a:!p&&d.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||Re(l)&&!p&&si(e,l))?n=n.filter(y=>y!==l):a=d,l=ie(l)}return o.set(e,n),n}function cl(e){let{element:o,boundary:r,rootBoundary:n,strategy:a}=e,l=[...r==="clippingAncestors"?il(o,this._c):[].concat(r),n],d=l[0],p=l.reduce((f,y)=>{let h=ri(o,y,a);return f.top=Ae(h.top,f.top),f.right=Nr(h.right,f.right),f.bottom=Nr(h.bottom,f.bottom),f.left=Ae(h.left,f.left),f},ri(o,d,a));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function ll(e){return ai(e)}function sl(e,o,r){let n=xt(o),a=Tt(o),i=r==="fixed",l=je(e,!0,i,o),d={scrollLeft:0,scrollTop:0},p=kt(0);if(n||!n&&!i)if((Bt(o)!=="body"||Re(a))&&(d=Fe(o)),n){let f=je(o,!0,i,o);p.x=f.x+o.clientLeft,p.y=f.y+o.clientTop}else a&&(p.x=li(a));return{x:l.left+d.scrollLeft-p.x,y:l.top+d.scrollTop-p.y,width:l.width,height:l.height}}function ni(e,o){return!xt(e)||st(e).position==="fixed"?null:o?o(e):e.offsetParent}function di(e,o){let r=rt(e);if(!xt(e))return r;let n=ni(e,o);for(;n&&ti(n)&&st(n).position==="static";)n=ni(n,o);return n&&(Bt(n)==="html"||Bt(n)==="body"&&st(n).position==="static"&&!vo(n))?r:n||ei(e)||r}var dl=async function(e){let{reference:o,floating:r,strategy:n}=e,a=this.getOffsetParent||di,i=this.getDimensions;return{reference:sl(o,await a(r),n),floating:{x:0,y:0,...await i(r)}}};function fl(e){return st(e).direction==="rtl"}var Oo={convertOffsetParentRelativeRectToViewportRelativeRect:el,getDocumentElement:Tt,getClippingRect:cl,getOffsetParent:di,getElementRects:dl,getClientRects:ol,getDimensions:ll,getScale:Le,isElement:Nt,isRTL:fl};var fi=(e,o,r)=>{let n=new Map,a={platform:Oo,...r},i={...a.platform,_c:n};return Xa(e,o,{...a,platform:i})};function pi(e){return pl(e)}function Ar(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function pl(e){for(let o=e;o;o=Ar(o))if(o instanceof Element&&getComputedStyle(o).display==="none")return null;for(let o=Ar(e);o;o=Ar(o)){if(!(o instanceof Element))continue;let r=getComputedStyle(o);if(r.display!=="contents"&&(r.position!=="static"||r.filter!=="none"||o.tagName==="BODY"))return o}return null}async function ui(e,o,r){return fi(e,o,{platform:{...Oo,getOffsetParent:n=>Oo.getOffsetParent(n,pi)},middleware:[Er({crossAxis:!0}),wr({allowedPlacements:[r]})]})}var nt=function(e,o,r,n){var a=arguments.length,i=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(i=(a<3?l(i):a>3?l(o,r,i):l(o,r))||i);return a>3&&i&&Object.defineProperty(o,r,i),i},U=class extends Ke.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new Ke.Debouncer,this.revealDebouncer=new Ke.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return yi.html`
|
|
608
608
|
<div part="container"
|
|
609
609
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
610
610
|
@mouseenter=${this.onHover}
|
|
@@ -622,24 +622,24 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
622
622
|
</div>
|
|
623
623
|
</div>
|
|
624
624
|
</div>
|
|
625
|
-
`}updated(o){o.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(o)}contentAvailableCallback(o){super.contentAvailableCallback(o),["visible","text"].some(r=>o.has(r))&&this.visible&&this.positionTooltip()}async show(o){this.visible=!0,o!=null&&await this.hideDebounce.run(()=>{this.hide()},o)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var o;return((o=this.slotNodes)!==null&&o!==void 0?o:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let o=this.tooltipContent.style;switch(o.transition="none",this.validPosition){case"top":o.top=this.tooltip.clientHeight+"px",o.left="0";break;case"bottom":o.top=-this.tooltip.clientHeight+"px",o.left="0";break;case"left":o.top="0",o.left=this.tooltip.clientWidth+"px";break;case"right":o.top="0",o.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",ui(this.slottedElement,this.tooltip,this.position).then(({x:o,y:r})=>{this.tooltip&&(this.tooltip.style.left=`${o}px`,this.tooltip.style.top=`${r}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",o=>{o.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(o,r){return Math.max(o,Math.min(0,-r))}};U.elementDefinitions={"ft-typography":tt};U.styles=Ha;nt([(0,F.property)()],U.prototype,"text",void 0);nt([(0,F.property)({type:Boolean})],U.prototype,"manual",void 0);nt([(0,F.property)({type:Boolean})],U.prototype,"inline",void 0);nt([(0,F.property)({type:Number})],U.prototype,"delay",void 0);nt([(0,F.property)()],U.prototype,"position",void 0);nt([(0,F.queryAssignedNodes)()],U.prototype,"slotNodes",void 0);nt([(0,F.query)(".ft-tooltip--container")],U.prototype,"container",void 0);nt([(0,F.query)(".ft-tooltip")],U.prototype,"tooltip",void 0);nt([(0,F.query)(".ft-tooltip--content")],U.prototype,"tooltipContent",void 0);nt([(0,F.state)()],U.prototype,"visible",void 0);nt([(0,F.eventOptions)({passive:!0})],U.prototype,"onTouch",null);nt([(0,F.eventOptions)({passive:!0})],U.prototype,"onHover",null);nt([(0,F.eventOptions)({passive:!0})],U.prototype,"onOut",null);nt([(0,F.eventOptions)({passive:!0})],U.prototype,"onClick",null);(0,hi.customElement)("ft-tooltip")(U);var vi=S(k());var Ke=S(z()),Ft=S(V()),bi=S(k()),xi=S(gi());var $t;(function(e){e.ADD_TO_PBK="",e.ALERT="",e.ADD_ALERT="",e.BACK_TO_SEARCH="",e.ADD_BOOKMARK="",e.BOOKMARK="",e.BOOKS="",e.MENU="",e.DOWNLOAD="",e.EDIT="",e.FEEDBACK="",e.HOME="",e.MODIFY_PBK="",e.SCHEDULED="",e.SEARCH="",e.EXPORT="",e.TOC="",e.WRITE_UGC="",e.TRASH="",e.USER="",e.EXTLINK="",e.CALENDAR="",e.OFFLINE="",e.BOOK="",e.DOWNLOAD_PLAIN="",e.CHECK="",e.STAR_PLAIN="",e.TOPICS="",e.DISC="",e.CIRCLE="",e.SHARED="",e.SORT_UNSORTED="",e.SORT_UP="",e.SORT_DOWN="",e.WORKING="",e.CLOSE="",e.ZOOM_OUT="",e.ZOOM_IN="",e.ZOOM_REALSIZE="",e.ZOOM_FULLSCREEN="",e.ADMIN_RESTRICTED="",e.ADMIN="",e.ADMIN_KHUB="",e.ADMIN_THEME="",e.ADMIN_USERS="",e.WARNING="",e.CONTEXT="",e.SEARCH_HOME="",e.STEPS="",e.ICON_EXPAND="",e.ICON_COLLAPSE="",e.INFO="",e.MINUS_PLAIN="",e.PLUS_PLAIN="",e.FACET_HAS_DESCENDANT="",e.TRIANGLE_BOTTOM="",e.TRIANGLE_LEFT="",e.TRIANGLE_RIGHT="",e.TRIANGLE_TOP="",e.THIN_ARROW="",e.SIGN_IN="",e.LOGOUT="",e.TRANSLATE="",e.CLOSE_PLAIN="",e.CHECK_PLAIN="",e.ARTICLE="",e.COLUMNS="",e.ANALYTICS="",e.COLLECTIONS="",e.ARROW_DOWN="",e.ARROW_LEFT="",e.ARROW_RIGHT="",e.ARROW_UP="",e.SEARCH_IN_PUBLICATION="",e.COPY_TO_CLIPBOARD="",e.SHARED_PBK="",e.ATTACHMENTS="",e.STRIPE_ARROW_LEFT="",e.STRIPE_ARROW_RIGHT="",e.FILTERS="",e.DOT="",e.MINUS="",e.PLUS="",e.MAILS_AND_NOTIFICATIONS="",e.SAVE="",e.LOCKER="",e.ADMIN_INTEGRATION="",e.SYNC="",e.TAG="",e.BOOK_PLAIN="",e.UPLOAD="",e.ONLINE="",e.TAG_PLAIN="",e.ACCOUNT_SETTINGS="",e.PRINT="",e.DEFAULT_ROLES="",e.SHORTCUT_MENU="",e.RELATIVES_PLAIN="",e.RELATIVES="",e.PAUSE="",e.PLAY="",e.ADMIN_PORTAL="",e.STAR="",e.THUMBS_DOWN="",e.THUMBS_DOWN_PLAIN="",e.THUMBS_UP="",e.THUMBS_UP_PLAIN="",e.FEEDBACK_PLAIN="",e.RATE_PLAIN="",e.RATE="",e.OFFLINE_SETTINGS="",e.MY_COLLECTIONS="",e.THIN_ARROW_LEFT="",e.THIN_ARROW_RIGHT="",e.RESET="",e.MY_LIBRARY="",e.UNSTRUCTURED_DOC="",e.CONTEXTUAL="",e.THIN_ARROW_UP="",e.ARROW_RIGHT_TO_LINE="",e.DESKTOP="",e.TABLET_LANDSCAPE="",e.TABLET_PORTRAIT="",e.MOBILE_LANDSCAPE="",e.MOBILE_PORTRAIT="",e.DIAGRAM_SUNBURST="",e.DIAGRAM_SANKEY="",e.COMMENT_QUESTION="",e.COMMENT_QUESTION_PLAIN="",e.MESSAGE_BOT="",e.CHART_SIMPLE="",e.BARS_PROGRESS="",e.BOOK_OPEN_GEAR="",e.BOOK_OPEN_GEAR_SLASH="",e.LINE_CHART="",e.STACKED_CHART="",e.CHART_BAR_STACKED="",e.CHART_BAR_GROUPED="",e.EYE_SLASH="",e.X_MARK="",e.EXPAND_WIDE="",e.PIP="",e.PIP_WIDE="",e.LIFE_RING="",e.GLOBE="",e.PIGGY_BANK="",e.EXTLINK_LIGHT="",e.CLONE="",e.CLONE_LINK_SIMPLE="",e.CHART_BAR_NORMALIZED="",e.CONSUMER="",e.OCTAGON_XMARK="",e.HOURGLASS_HALF="",e.CLOCK="",e.CLOCK_THREE="",e.CALENDAR_DAY="",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="",e.WAND_MAGIC_SPARKLES="",e.PAPER_PLANE="",e.CIRCLE_STOP="",e.ARROW_ROTATE_RIGHT="",e.ARROWS_ROTATE="",e.ALIGN_RIGHT="",e.FORMAT_CLEAR="",e.ALIGN_CENTER="",e.ALIGN_LEFT="",e.PALETTE="",e.BOLD="",e.ITALIC="",e.UNDERLINE="",e.STRIKETHROUGH="",e.LINK_SIMPLE_SLASH="",e.LINK_SIMPLE="",e.ROUTE="",e.CIRCLE_USER_SLASH="",e.CIRCLE_USER_CHECK="",e.LIST_MAGNIFYING_GLASS="",e.MEDAL="",e.THUMBS_UP_THUMBS_DOWN_SOLID="",e.ARROW_TURN_DOWN_RIGHT="",e.FLASK="",e.LOCK_KEYHOLE_OPEN_SOLID="",e.HOURGLASS_END="",e.CIRCLE_QUESTION="",e.GRIP_LINES_SOLID="",e.TRANSLATE_SPARKLE_SOLID="",e.CODE="",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",e.PAPER_PLANE_SLASH="",e.COMPRESS="",e.EXPAND="",e.ARROW_ROTATE_LEFT="",e.EYE="",e.SHARE="󨃱",e.MOBILE_SMALL=""})($t||($t={}));var C;(function(e){e.UNKNOWN="",e.ABW="",e.AUDIO="",e.AVI="",e.CHM="",e.CODE="",e.CSV="",e.DITA="",e.EPUB="",e.EXCEL="",e.FLAC="",e.GIF="",e.GZIP="",e.HTML="",e.IMAGE="",e.JPEG="",e.JSON="",e.M4A="",e.MOV="",e.MP3="",e.MP4="",e.OGG="",e.PDF="",e.PNG="",e.POWERPOINT="",e.RAR="",e.STP="",e.TEXT="",e.VIDEO="",e.WAV="",e.WMA="",e.WORD="",e.XML="",e.YAML="",e.ZIP=""})(C||(C={}));var $y=new Map([...["abw"].map(e=>[e,C.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,C.AUDIO]),...["avi"].map(e=>[e,C.AVI]),...["chm","xhs"].map(e=>[e,C.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,C.CODE]),...["csv"].map(e=>[e,C.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,C.DITA]),...["epub"].map(e=>[e,C.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,C.EXCEL]),...["flac"].map(e=>[e,C.FLAC]),...["gif"].map(e=>[e,C.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,C.GZIP]),...["html","htm","xhtml"].map(e=>[e,C.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,C.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,C.JPEG]),...["json"].map(e=>[e,C.JSON]),...["m4a","m4p"].map(e=>[e,C.M4A]),...["mov","qt"].map(e=>[e,C.MOV]),...["mp3"].map(e=>[e,C.MP3]),...["mp4","m4v"].map(e=>[e,C.MP4]),...["ogg","oga"].map(e=>[e,C.OGG]),...["pdf","ps"].map(e=>[e,C.PDF]),...["png"].map(e=>[e,C.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,C.POWERPOINT]),...["rar"].map(e=>[e,C.RAR]),...["stp"].map(e=>[e,C.STP]),...["txt","rtf","md","mdown"].map(e=>[e,C.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,C.VIDEO]),...["wav"].map(e=>[e,C.WAV]),...["wma"].map(e=>[e,C.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,C.WORD]),...["xml","xsl","rdf"].map(e=>[e,C.XML]),...["yaml","yml","x-yaml"].map(e=>[e,C.YAML]),...["zip"].map(e=>[e,C.ZIP])]);var _y={[C.ABW]:"#91ABC6",[C.AUDIO]:"#1795E3",[C.AVI]:"#E63324",[C.CHM]:"#71C3EB",[C.CODE]:"#71C3EB",[C.CSV]:"#1F7345",[C.DITA]:"#71C3EB",[C.EPUB]:"#85B926",[C.EXCEL]:"#1F7345",[C.FLAC]:"#1795E3",[C.GIF]:"#59B031",[C.GZIP]:"#F8AB36",[C.HTML]:"#71C3EB",[C.IMAGE]:"#59B031",[C.JPEG]:"#59B031",[C.JSON]:"#71C3EB",[C.M4A]:"#1795E3",[C.MOV]:"#E63324",[C.MP3]:"#1795E3",[C.MP4]:"#E63324",[C.OGG]:"#1795E3",[C.PDF]:"#E44948",[C.PNG]:"#59B031",[C.POWERPOINT]:"#B54A2B",[C.RAR]:"#F8AB36",[C.STP]:"#3764B1",[C.TEXT]:"#3162AB",[C.UNKNOWN]:"#999999",[C.VIDEO]:"#E63324",[C.WAV]:"#1795E3",[C.WMA]:"#1795E3",[C.WORD]:"#3162AB",[C.XML]:"#71C3EB",[C.YAML]:"#71C3EB",[C.ZIP]:"#F8AB36"};var At;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(At||(At={}));var Ve=function(e,o,r,n){var a=arguments.length,i=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(i=(a<3?l(i):a>3?l(o,r,i):l(o,r))||i);return a>3&&i&&Object.defineProperty(o,r,i),i},et=class extends bi.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Ke.nothing}render(){let o=this.variant&&Object.values(At).includes(this.variant)?this.variant:At.fluid_topics,r=o!==At.material||!!this.value;return Ke.html`
|
|
625
|
+
`}updated(o){o.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(o)}contentAvailableCallback(o){super.contentAvailableCallback(o),["visible","text"].some(r=>o.has(r))&&this.visible&&this.positionTooltip()}async show(o){this.visible=!0,o!=null&&await this.hideDebounce.run(()=>{this.hide()},o)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var o;return((o=this.slotNodes)!==null&&o!==void 0?o:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let o=this.tooltipContent.style;switch(o.transition="none",this.validPosition){case"top":o.top=this.tooltip.clientHeight+"px",o.left="0";break;case"bottom":o.top=-this.tooltip.clientHeight+"px",o.left="0";break;case"left":o.top="0",o.left=this.tooltip.clientWidth+"px";break;case"right":o.top="0",o.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",ui(this.slottedElement,this.tooltip,this.position).then(({x:o,y:r})=>{this.tooltip&&(this.tooltip.style.left=`${o}px`,this.tooltip.style.top=`${r}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",o=>{o.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(o,r){return Math.max(o,Math.min(0,-r))}};U.elementDefinitions={"ft-typography":tt};U.styles=Ha;nt([(0,F.property)()],U.prototype,"text",void 0);nt([(0,F.property)({type:Boolean})],U.prototype,"manual",void 0);nt([(0,F.property)({type:Boolean})],U.prototype,"inline",void 0);nt([(0,F.property)({type:Number})],U.prototype,"delay",void 0);nt([(0,F.property)()],U.prototype,"position",void 0);nt([(0,F.queryAssignedNodes)()],U.prototype,"slotNodes",void 0);nt([(0,F.query)(".ft-tooltip--container")],U.prototype,"container",void 0);nt([(0,F.query)(".ft-tooltip")],U.prototype,"tooltip",void 0);nt([(0,F.query)(".ft-tooltip--content")],U.prototype,"tooltipContent",void 0);nt([(0,F.state)()],U.prototype,"visible",void 0);nt([(0,F.eventOptions)({passive:!0})],U.prototype,"onTouch",null);nt([(0,F.eventOptions)({passive:!0})],U.prototype,"onHover",null);nt([(0,F.eventOptions)({passive:!0})],U.prototype,"onOut",null);nt([(0,F.eventOptions)({passive:!0})],U.prototype,"onClick",null);(0,hi.customElement)("ft-tooltip")(U);var vi=S(k());var Ze=S(z()),Ft=S(V()),bi=S(k()),xi=S(gi());var $t;(function(e){e.ADD_TO_PBK="",e.ALERT="",e.ADD_ALERT="",e.BACK_TO_SEARCH="",e.ADD_BOOKMARK="",e.BOOKMARK="",e.BOOKS="",e.MENU="",e.DOWNLOAD="",e.EDIT="",e.FEEDBACK="",e.HOME="",e.MODIFY_PBK="",e.SCHEDULED="",e.SEARCH="",e.EXPORT="",e.TOC="",e.WRITE_UGC="",e.TRASH="",e.USER="",e.EXTLINK="",e.CALENDAR="",e.OFFLINE="",e.BOOK="",e.DOWNLOAD_PLAIN="",e.CHECK="",e.STAR_PLAIN="",e.TOPICS="",e.DISC="",e.CIRCLE="",e.SHARED="",e.SORT_UNSORTED="",e.SORT_UP="",e.SORT_DOWN="",e.WORKING="",e.CLOSE="",e.ZOOM_OUT="",e.ZOOM_IN="",e.ZOOM_REALSIZE="",e.ZOOM_FULLSCREEN="",e.ADMIN_RESTRICTED="",e.ADMIN="",e.ADMIN_KHUB="",e.ADMIN_THEME="",e.ADMIN_USERS="",e.WARNING="",e.CONTEXT="",e.SEARCH_HOME="",e.STEPS="",e.ICON_EXPAND="",e.ICON_COLLAPSE="",e.INFO="",e.MINUS_PLAIN="",e.PLUS_PLAIN="",e.FACET_HAS_DESCENDANT="",e.TRIANGLE_BOTTOM="",e.TRIANGLE_LEFT="",e.TRIANGLE_RIGHT="",e.TRIANGLE_TOP="",e.THIN_ARROW="",e.SIGN_IN="",e.LOGOUT="",e.TRANSLATE="",e.CLOSE_PLAIN="",e.CHECK_PLAIN="",e.ARTICLE="",e.COLUMNS="",e.ANALYTICS="",e.COLLECTIONS="",e.ARROW_DOWN="",e.ARROW_LEFT="",e.ARROW_RIGHT="",e.ARROW_UP="",e.SEARCH_IN_PUBLICATION="",e.COPY_TO_CLIPBOARD="",e.SHARED_PBK="",e.ATTACHMENTS="",e.STRIPE_ARROW_LEFT="",e.STRIPE_ARROW_RIGHT="",e.FILTERS="",e.DOT="",e.MINUS="",e.PLUS="",e.MAILS_AND_NOTIFICATIONS="",e.SAVE="",e.LOCKER="",e.ADMIN_INTEGRATION="",e.SYNC="",e.TAG="",e.BOOK_PLAIN="",e.UPLOAD="",e.ONLINE="",e.TAG_PLAIN="",e.ACCOUNT_SETTINGS="",e.PRINT="",e.DEFAULT_ROLES="",e.SHORTCUT_MENU="",e.RELATIVES_PLAIN="",e.RELATIVES="",e.PAUSE="",e.PLAY="",e.ADMIN_PORTAL="",e.STAR="",e.THUMBS_DOWN="",e.THUMBS_DOWN_PLAIN="",e.THUMBS_UP="",e.THUMBS_UP_PLAIN="",e.FEEDBACK_PLAIN="",e.RATE_PLAIN="",e.RATE="",e.OFFLINE_SETTINGS="",e.MY_COLLECTIONS="",e.THIN_ARROW_LEFT="",e.THIN_ARROW_RIGHT="",e.RESET="",e.MY_LIBRARY="",e.UNSTRUCTURED_DOC="",e.CONTEXTUAL="",e.THIN_ARROW_UP="",e.ARROW_RIGHT_TO_LINE="",e.DESKTOP="",e.TABLET_LANDSCAPE="",e.TABLET_PORTRAIT="",e.MOBILE_LANDSCAPE="",e.MOBILE_PORTRAIT="",e.DIAGRAM_SUNBURST="",e.DIAGRAM_SANKEY="",e.COMMENT_QUESTION="",e.COMMENT_QUESTION_PLAIN="",e.MESSAGE_BOT="",e.CHART_SIMPLE="",e.BARS_PROGRESS="",e.BOOK_OPEN_GEAR="",e.BOOK_OPEN_GEAR_SLASH="",e.LINE_CHART="",e.STACKED_CHART="",e.CHART_BAR_STACKED="",e.CHART_BAR_GROUPED="",e.EYE_SLASH="",e.X_MARK="",e.EXPAND_WIDE="",e.PIP="",e.PIP_WIDE="",e.LIFE_RING="",e.GLOBE="",e.PIGGY_BANK="",e.EXTLINK_LIGHT="",e.CLONE="",e.CLONE_LINK_SIMPLE="",e.CHART_BAR_NORMALIZED="",e.CONSUMER="",e.OCTAGON_XMARK="",e.HOURGLASS_HALF="",e.CLOCK="",e.CLOCK_THREE="",e.CALENDAR_DAY="",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="",e.WAND_MAGIC_SPARKLES="",e.PAPER_PLANE="",e.CIRCLE_STOP="",e.ARROW_ROTATE_RIGHT="",e.ARROWS_ROTATE="",e.ALIGN_RIGHT="",e.FORMAT_CLEAR="",e.ALIGN_CENTER="",e.ALIGN_LEFT="",e.PALETTE="",e.BOLD="",e.ITALIC="",e.UNDERLINE="",e.STRIKETHROUGH="",e.LINK_SIMPLE_SLASH="",e.LINK_SIMPLE="",e.ROUTE="",e.CIRCLE_USER_SLASH="",e.CIRCLE_USER_CHECK="",e.LIST_MAGNIFYING_GLASS="",e.MEDAL="",e.THUMBS_UP_THUMBS_DOWN_SOLID="",e.ARROW_TURN_DOWN_RIGHT="",e.FLASK="",e.LOCK_KEYHOLE_OPEN_SOLID="",e.HOURGLASS_END="",e.CIRCLE_QUESTION="",e.GRIP_LINES_SOLID="",e.TRANSLATE_SPARKLE_SOLID="",e.CODE="",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",e.PAPER_PLANE_SLASH="",e.COMPRESS="",e.EXPAND="",e.ARROW_ROTATE_LEFT="",e.EYE="",e.SHARE="󨃱",e.MOBILE_SMALL="",e.SPARKLES="",e.HAND_SOLID=""})($t||($t={}));var C;(function(e){e.UNKNOWN="",e.ABW="",e.AUDIO="",e.AVI="",e.CHM="",e.CODE="",e.CSV="",e.DITA="",e.EPUB="",e.EXCEL="",e.FLAC="",e.GIF="",e.GZIP="",e.HTML="",e.IMAGE="",e.JPEG="",e.JSON="",e.M4A="",e.MOV="",e.MP3="",e.MP4="",e.OGG="",e.PDF="",e.PNG="",e.POWERPOINT="",e.RAR="",e.STP="",e.TEXT="",e.VIDEO="",e.WAV="",e.WMA="",e.WORD="",e.XML="",e.YAML="",e.ZIP=""})(C||(C={}));var $y=new Map([...["abw"].map(e=>[e,C.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,C.AUDIO]),...["avi"].map(e=>[e,C.AVI]),...["chm","xhs"].map(e=>[e,C.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,C.CODE]),...["csv"].map(e=>[e,C.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,C.DITA]),...["epub"].map(e=>[e,C.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,C.EXCEL]),...["flac"].map(e=>[e,C.FLAC]),...["gif"].map(e=>[e,C.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,C.GZIP]),...["html","htm","xhtml"].map(e=>[e,C.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,C.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,C.JPEG]),...["json"].map(e=>[e,C.JSON]),...["m4a","m4p"].map(e=>[e,C.M4A]),...["mov","qt"].map(e=>[e,C.MOV]),...["mp3"].map(e=>[e,C.MP3]),...["mp4","m4v"].map(e=>[e,C.MP4]),...["ogg","oga"].map(e=>[e,C.OGG]),...["pdf","ps"].map(e=>[e,C.PDF]),...["png"].map(e=>[e,C.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,C.POWERPOINT]),...["rar"].map(e=>[e,C.RAR]),...["stp"].map(e=>[e,C.STP]),...["txt","rtf","md","mdown"].map(e=>[e,C.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,C.VIDEO]),...["wav"].map(e=>[e,C.WAV]),...["wma"].map(e=>[e,C.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,C.WORD]),...["xml","xsl","rdf"].map(e=>[e,C.XML]),...["yaml","yml","x-yaml"].map(e=>[e,C.YAML]),...["zip"].map(e=>[e,C.ZIP])]);var _y={[C.ABW]:"#91ABC6",[C.AUDIO]:"#1795E3",[C.AVI]:"#E63324",[C.CHM]:"#71C3EB",[C.CODE]:"#71C3EB",[C.CSV]:"#1F7345",[C.DITA]:"#71C3EB",[C.EPUB]:"#85B926",[C.EXCEL]:"#1F7345",[C.FLAC]:"#1795E3",[C.GIF]:"#59B031",[C.GZIP]:"#F8AB36",[C.HTML]:"#71C3EB",[C.IMAGE]:"#59B031",[C.JPEG]:"#59B031",[C.JSON]:"#71C3EB",[C.M4A]:"#1795E3",[C.MOV]:"#E63324",[C.MP3]:"#1795E3",[C.MP4]:"#E63324",[C.OGG]:"#1795E3",[C.PDF]:"#E44948",[C.PNG]:"#59B031",[C.POWERPOINT]:"#B54A2B",[C.RAR]:"#F8AB36",[C.STP]:"#3764B1",[C.TEXT]:"#3162AB",[C.UNKNOWN]:"#999999",[C.VIDEO]:"#E63324",[C.WAV]:"#1795E3",[C.WMA]:"#1795E3",[C.WORD]:"#3162AB",[C.XML]:"#71C3EB",[C.YAML]:"#71C3EB",[C.ZIP]:"#F8AB36"};var At;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(At||(At={}));var Ve=function(e,o,r,n){var a=arguments.length,i=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(i=(a<3?l(i):a>3?l(o,r,i):l(o,r))||i);return a>3&&i&&Object.defineProperty(o,r,i),i},et=class extends bi.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Ze.nothing}render(){let o=this.variant&&Object.values(At).includes(this.variant)?this.variant:At.fluid_topics,r=o!==At.material||!!this.value;return Ze.html`
|
|
626
626
|
<i class="ft-icon ft-icon--${o} ft-no-text-select" part="icon icon-${o}">
|
|
627
627
|
${(0,xi.unsafeHTML)(this.resolvedIcon)}
|
|
628
628
|
<slot ?hidden=${r}></slot>
|
|
629
629
|
</i>
|
|
630
|
-
`}get textContent(){var o,r;return(r=(o=this.slottedContent)===null||o===void 0?void 0:o.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&r!==void 0?r:""}update(o){super.update(o),["value","variant"].some(r=>o.has(r))&&this.resolveIcon()}resolveIcon(){var o,r;let n=this.value||this.textContent;switch(this.variant){case At.file_format:this.resolvedIcon=(o=C[n.replace("-","_").toUpperCase()])!==null&&o!==void 0?o:n;break;case At.material:this.resolvedIcon=this.value||
|
|
630
|
+
`}get textContent(){var o,r;return(r=(o=this.slottedContent)===null||o===void 0?void 0:o.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&r!==void 0?r:""}update(o){super.update(o),["value","variant"].some(r=>o.has(r))&&this.resolveIcon()}resolveIcon(){var o,r;let n=this.value||this.textContent;switch(this.variant){case At.file_format:this.resolvedIcon=(o=C[n.replace("-","_").toUpperCase()])!==null&&o!==void 0?o:n;break;case At.material:this.resolvedIcon=this.value||Ze.nothing;break;default:this.resolvedIcon=(r=$t[n.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:n;break}}firstUpdated(o){super.firstUpdated(o),setTimeout(()=>this.resolveIcon())}};et.elementDefinitions={};et.styles=ha;Ve([(0,Ft.property)()],et.prototype,"variant",void 0);Ve([(0,Ft.property)()],et.prototype,"value",void 0);Ve([(0,Ft.property)({reflect:!0,attribute:"aria-hidden"})],et.prototype,"ariaHidden",void 0);Ve([(0,Ft.state)()],et.prototype,"resolvedIcon",void 0);Ve([(0,Ft.query)("slot")],et.prototype,"slottedContent",void 0);(0,vi.customElement)("ft-icon")(et);var Ci=S(k());var Si=S(z()),Oi=S(k());var ce=class extends Oi.FtLitElement{render(){return Si.html`
|
|
631
631
|
<div class="ft-loader">
|
|
632
632
|
<div></div>
|
|
633
633
|
<div></div>
|
|
634
634
|
<div></div>
|
|
635
635
|
<div></div>
|
|
636
636
|
</div>
|
|
637
|
-
`}};ce.styles=ua;(0,Ci.customElement)("ft-loader")(ce);var jt=S(z()),Rr=S(so()),j=S(V()),q=function(e,o,r,n){var a=arguments.length,i=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(i=(a<3?l(i):a>3?l(o,r,i):l(o,r))||i);return a>3&&i&&Object.defineProperty(o,r,i),i},W=class extends(0,
|
|
637
|
+
`}};ce.styles=ua;(0,Ci.customElement)("ft-loader")(ce);var jt=S(z()),Rr=S(so()),j=S(V()),q=function(e,o,r,n){var a=arguments.length,i=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(i=(a<3?l(i):a>3?l(o,r,i):l(o,r))||i);return a>3&&i&&Object.defineProperty(o,r,i),i},W=class extends(0,Kt.toFtFormComponent)(Kt.FtLitElement,"button"){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.addEventListener("click",o=>{var r;this.isDisabled()?(o.preventDefault(),o.stopPropagation(),o.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var o,r,n;let a=jt.html`
|
|
638
638
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
639
639
|
<ft-typography part="label"
|
|
640
640
|
variant=${this.typographyVariant}
|
|
641
641
|
element="span"
|
|
642
|
-
class="ft-button--label ${
|
|
642
|
+
class="ft-button--label ${Kt.isSafari?"ft-safari-ellipsis-fix":""}"
|
|
643
643
|
?hidden=${!this.hasTextContent()}>
|
|
644
644
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
645
645
|
</ft-typography>
|
|
@@ -671,7 +671,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
671
671
|
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
|
|
672
672
|
`:jt.html`
|
|
673
673
|
<slot part="icon" name="icon"></slot>
|
|
674
|
-
`}focus(){var o;(o=this.button)===null||o===void 0||o.focus()}focusWithoutTooltip(){var o;this.setTooltipManual(!0),(o=this.button)===null||o===void 0||o.focus(),this.setTooltipManual(!1)}setTooltipManual(o){this.tooltip&&(this.tooltip.manual=o)}click(){var o;(o=this.button)===null||o===void 0||o.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,
|
|
674
|
+
`}focus(){var o;(o=this.button)===null||o===void 0||o.focus()}focusWithoutTooltip(){var o;this.setTooltipManual(!0),(o=this.button)===null||o===void 0||o.focus(),this.setTooltipManual(!1)}setTooltipManual(o){this.tooltip&&(this.tooltip.manual=o)}click(){var o;(o=this.button)===null||o===void 0||o.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,Kt.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};W.elementDefinitions={"ft-ripple":M,"ft-tooltip":U,"ft-typography":tt,"ft-icon":et,"ft-loader":ce};q([(0,j.property)()],W.prototype,"href",void 0);q([(0,j.property)()],W.prototype,"target",void 0);q([(0,j.property)({type:String,reflect:!0})],W.prototype,"role",void 0);q([(0,j.property)()],W.prototype,"type",void 0);q([(0,j.property)({type:Boolean})],W.prototype,"disabled",void 0);q([(0,j.property)()],W.prototype,"label",void 0);q([(0,j.property)()],W.prototype,"icon",void 0);q([(0,j.property)()],W.prototype,"iconVariant",void 0);q([(0,j.property)({type:Boolean})],W.prototype,"trailingIcon",void 0);q([(0,j.property)({type:Boolean})],W.prototype,"loading",void 0);q([(0,j.property)({attribute:"aria-label"})],W.prototype,"ariaLabel",void 0);q([(0,j.property)()],W.prototype,"tooltipPosition",void 0);q([(0,j.property)({type:Boolean})],W.prototype,"hideTooltip",void 0);q([(0,j.property)({type:Boolean})],W.prototype,"forceTooltip",void 0);q([(0,j.query)(".ft-button")],W.prototype,"button",void 0);q([(0,j.query)(".ft-button--label slot")],W.prototype,"slottedContent",void 0);q([(0,j.query)("[part=tooltip]")],W.prototype,"tooltip",void 0);var Co=function(e,o,r,n){var a=arguments.length,i=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(i=(a<3?l(i):a>3?l(o,r,i):l(o,r))||i);return a>3&&i&&Object.defineProperty(o,r,i),i},_t=class extends W{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}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-no-text-select":!0}}get typographyVariant(){return"button"}};_t.styles=[wi.safariEllipsisFix,xa];Co([(0,Ye.property)({type:Boolean})],_t.prototype,"primary",void 0);Co([(0,Ye.property)({type:Boolean})],_t.prototype,"outlined",void 0);Co([(0,Ye.property)({type:Boolean})],_t.prototype,"dense",void 0);Co([(0,Ye.property)({type:Boolean})],_t.prototype,"round",void 0);var qe=S(V());var Eo=S(k());var Ei=S(z()),x=S(k());var Ni=[Ei.css`
|
|
675
675
|
:host {
|
|
676
676
|
display: inline-block;
|
|
677
677
|
max-width: 100%;
|
|
@@ -1138,10 +1138,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
1138
1138
|
width: ${u.smallIconOnlyWidth};
|
|
1139
1139
|
}
|
|
1140
1140
|
`,x.noTextSelect];var wo=function(e,o,r,n){var a=arguments.length,i=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(i=(a<3?l(i):a>3?l(o,r,i):l(o,r))||i);return a>3&&i&&Object.defineProperty(o,r,i),i},dt=class extends(0,Eo.toFtdsBase)(W){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=po.brand,this.iconVariant=At.fluid_topics}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case lt.large:return ht.body2medium;case lt.medium:return ht.caption1medium;case lt.small:return ht.caption2medium}}};dt.styles=[Eo.safariEllipsisFix,Ni];wo([(0,qe.property)({type:Boolean})],dt.prototype,"primary",void 0);wo([(0,qe.property)({type:Boolean})],dt.prototype,"secondary",void 0);wo([(0,qe.property)({type:Boolean})],dt.prototype,"tertiary",void 0);wo([(0,qe.property)({type:Boolean})],dt.prototype,"round",void 0);(0,Lr.customElement)("ft-button")(_t);(0,Lr.customElement)("ftds-button")(dt);var Pc=S(k());var Yo=S(z()),qo=S(V()),Xo=S(k());var Ai=S(z());var Ri=Ai.css`
|
|
1141
|
-
`;var
|
|
1142
|
-
`;var No=S(k()),ul="ft-app-info",Pr=class extends CustomEvent{constructor(o){super("authentication-change",{detail:o})}},yl={session:(e,o)=>{(0,No.deepEqual)(e.session,o.payload)||(e.session=o.payload,setTimeout(()=>L.dispatchEvent(new Pr(o.payload)),0))}},L=No.FtReduxStore.get({name:ul,reducers:yl,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var Vt=S(k());var Ir=S(k());var le=class e{static get(o){let{baseUrl:r,apiIntegrationIdentifier:n}=L.getState(),a=o??n;if(r&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,a,!0)}static await(o){return new Promise(r=>{let n=e.get(o);if(n)r(n);else{let a=L.subscribe(()=>{n=e.get(o),n&&(a(),r(n))})}})}};var Xe=class{constructor(o){this.overrideApi=o}get api(){var o;return(o=this.overrideApi)!==null&&o!==void 0?o:le.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):le.await()}};var
|
|
1141
|
+
`;var Zo=S(k());var Ac=S(k());var Bi=S(z()),at=S(V()),vt=S(k());var Li=S(z());var Pi=Li.css`
|
|
1142
|
+
`;var No=S(k()),ul="ft-app-info",Pr=class extends CustomEvent{constructor(o){super("authentication-change",{detail:o})}},yl={session:(e,o)=>{(0,No.deepEqual)(e.session,o.payload)||(e.session=o.payload,setTimeout(()=>L.dispatchEvent(new Pr(o.payload)),0))}},L=No.FtReduxStore.get({name:ul,reducers:yl,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var Vt=S(k());var Ir=S(k());var le=class e{static get(o){let{baseUrl:r,apiIntegrationIdentifier:n}=L.getState(),a=o??n;if(r&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,a,!0)}static await(o){return new Promise(r=>{let n=e.get(o);if(n)r(n);else{let a=L.subscribe(()=>{n=e.get(o),n&&(a(),r(n))})}})}};var Xe=class{constructor(o){this.overrideApi=o}get api(){var o;return(o=this.overrideApi)!==null&&o!==void 0?o:le.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):le.await()}};var Zt=class extends Xe{constructor(o=!0,r){var n;super(r);let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new Ir.CacheRegistry,this.cache=o?a.commonCache:new Ir.CacheRegistry}clearCache(){this.cache.clearAll()}};var Ii,hl=Symbol("clearAfterUnitTest"),Ao=class extends Zt{constructor(o){super(),this.messageContextProvider=o,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Ii]=()=>{this.defaultMessages={},this.cache=new Vt.CacheRegistry,this.listeners={}},this.currentUiLocale=L.getState().uiLocale,L.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:o}=L.getState();this.currentUiLocale!==o&&(this.currentUiLocale=o,this.cache.clearAll(),this.notifyAll())}addContext(o){let r=o.name.toLowerCase();this.cache.setFinal(r,o),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(o,r){var n;if(o=o.toLowerCase(),Object.keys(r).length>0){let a={...(n=this.defaultMessages[o])!==null&&n!==void 0?n:{},...r};(0,Vt.deepEqual)(this.defaultMessages[o],a)||(this.defaultMessages[o]=a,await this.notify(o))}await this.fetchContext(o)}resolveContext(o){var r,n;return this.fetchContext(o),(n=(r=this.cache.getNow(o))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(o,r){let n=o.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(o,r,...n){var a;let i=o.toLowerCase(),l=this.resolveContext(i);return new Vt.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},l).resolve(r,...n)}async fetchContext(o){var r,n,a;if(!this.cache.has(o))if(((n=(r=window.process)===null||r===void 0?void 0:r.env)===null||n===void 0?void 0:n.NODE_ENV)==="test")this.cache.set(o,(a=this.defaultMessages[o])!==null&&a!==void 0?a:{});else try{await this.cache.get(o,()=>this.messageContextProvider(this.currentUiLocale,o)),await this.notify(o)}catch(i){console.error(i)}}subscribe(o,r){var n;return o=o.toLowerCase(),this.listeners[o]=(n=this.listeners[o])!==null&&n!==void 0?n:new Set,this.listeners[o].add(r),()=>{var a;return(a=this.listeners[o])===null||a===void 0?void 0:a.delete(r)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(o=>this.notify(o)))}async notify(o){this.listeners[o]!=null&&await Promise.all([...this.listeners[o].values()].map(r=>(0,Vt.delay)(0).then(()=>r()).catch(()=>null)))}};Ii=hl;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Ao{constructor(){super(async(e,o)=>(await this.awaitApi).getFluidTopicsMessageContext(e,o))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Ao{constructor(){super(async(e,o)=>(await this.awaitApi).getCustomMessageContext(e,o))}});var se=window.FluidTopicsI18nService,ki=window.FluidTopicsCustomI18nService;var X=function(e,o,r,n){var a=arguments.length,i=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(i=(a<3?l(i):a>3?l(o,r,i):l(o,r))||i);return a>3&&i&&Object.defineProperty(o,r,i),i},H=class extends vt.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>le.get(),this.messageContexts=[],this.cache=new vt.CacheRegistry,this.cleanSessionDebouncer=new vt.Debouncer}render(){return Bi.html`
|
|
1143
1143
|
<slot></slot>
|
|
1144
|
-
`}update(o){var r,n,a,i,l;super.update(o),o.has("baseUrl")&&(L.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),o.has("apiIntegrationIdentifier")&&L.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),o.has("uiLocale")&&L.actions.uiLocale(this.uiLocale),o.has("metadataConfiguration")&&L.actions.metadataConfiguration(this.metadataConfiguration),o.has("noCustom")&&L.actions.noCustom(this.noCustom),o.has("editorMode")&&L.actions.editorMode(this.editorMode),o.has("noCustomComponent")&&L.actions.noCustomComponent(this.noCustomComponent),o.has("session")&&L.actions.session(this.session),o.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(d=>se.addContext(d)),o.has("openExternalDocumentInNewTab")&&L.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),o.has("navigatorOnline")&&L.actions.navigatorOnline(this.navigatorOnline),o.has("forcedOffline")&&L.actions.forcedOffline(this.forcedOffline),o.has("localesConfiguration")&&(L.actions.defaultLocales((r=this.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales),L.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),L.actions.searchInAllLanguagesAllowed((l=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&l!==void 0?l:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let o=await this.apiProvider().getCurrentSession();return o.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},o.idleTimeoutInMillis),o})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};H.elementDefinitions={};H.styles=Pi;X([(0,at.property)()],H.prototype,"baseUrl",void 0);X([(0,at.property)()],H.prototype,"apiIntegrationIdentifier",void 0);X([(0,at.property)()],H.prototype,"uiLocale",void 0);X([(0,vt.jsonProperty)(null)],H.prototype,"availableUiLocales",void 0);X([(0,vt.jsonProperty)(null)],H.prototype,"metadataConfiguration",void 0);X([(0,at.property)({type:Boolean})],H.prototype,"editorMode",void 0);X([(0,at.property)({type:Boolean})],H.prototype,"noCustom",void 0);X([(0,at.property)({type:Boolean})],H.prototype,"openExternalDocumentInNewTab",void 0);X([(0,at.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],H.prototype,"noCustomComponent",void 0);X([(0,at.property)({type:Boolean})],H.prototype,"withManualResources",void 0);X([(0,at.property)({type:Boolean})],H.prototype,"navigatorOnline",void 0);X([(0,at.property)({type:Boolean})],H.prototype,"forcedOffline",void 0);X([(0,at.property)({type:Object})],H.prototype,"apiProvider",void 0);X([(0,vt.jsonProperty)([])],H.prototype,"messageContexts",void 0);X([(0,vt.jsonProperty)(void 0)],H.prototype,"session",void 0);X([(0,at.state)()],H.prototype,"localesConfiguration",void 0);var os=S(V());function ml(e,o){if(e===o)return!0;if(e&&o&&typeof e=="object"&&typeof o=="object"){if(e.constructor!==o.constructor)return!1;var r,n,a;if(Array.isArray(e)){if(r=e.length,r!=o.length)return!1;for(n=r;n--!==0;)if(!Ro(e[n],o[n]))return!1;return!0}if(e instanceof Map&&o instanceof Map){if(e.size!==o.size)return!1;for(n of e.entries())if(!o.has(n[0]))return!1;for(n of e.entries())if(!Ro(n[1],o.get(n[0])))return!1;return!0}if(e instanceof Set&&o instanceof Set){if(e.size!==o.size)return!1;for(n of e.entries())if(!o.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===o.source&&e.flags===o.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===o.valueOf();let i=l=>Object.keys(l).filter(d=>l[d]!=null);if(a=i(e),r=a.length,r!==i(o).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(o,a[n]))return!1;for(n=r;n--!==0;){let l=a[n];if(!Ro(e[l],o[l]))return!1}return!0}return e!==e&&o!==o||e==null&&o==null}function Ro(e,o){try{return ml(e,o)}catch{return!1}}function Lo(e,o){return!Ro(e,o)}var gl=S(V(),1);var Po=class{constructor(){this.queue=[]}add(o,r=!1){r&&(this.queue=this.queue.filter(n=>n.type!==o.type)),this.queue.push(o)}consume(o){let r=this.queue.find(n=>n.type===o);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}};var Je=S(V(),1);var Ti=S(V(),1);function $i(e,o){let r=()=>JSON.parse(JSON.stringify(e));return(0,Ti.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return r();try{return JSON.parse(n)}catch{return r()}},toAttribute:n=>JSON.stringify(n)},hasChanged:Lo,...o??{}})}var Io=class{constructor(o=0){this.timeout=o,this.callbacks=[]}run(o,r){return this.callbacks=[o],this.debounce(r)}queue(o,r){return this.callbacks.push(o),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(o){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),o??this.timeout),this.promise}async runCallbacks(){var o,r;let n=[...this.callbacks];this.callbacks=[];let a=(o=this.rejectPromise)!==null&&o!==void 0?o:()=>null,i=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let l of n)try{await l()}catch(d){a(d);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Wi=S(z(),1);var ko=globalThis,bl=ko.ShadowRoot&&(ko.ShadyCSS===void 0||ko.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,nm=Symbol();var _i=(e,o)=>{if(bl)e.adoptedStyleSheets=o.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of o){let n=document.createElement("style"),a=ko.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=r.cssText,e.appendChild(n)}};var Bo=class extends Wi.LitElement{createRenderRoot(){let o=this.constructor;o.elementDefinitions&&!o.registry&&(o.registry=new CustomElementRegistry,Object.entries(o.elementDefinitions).forEach(([a,i])=>o.registry.define(a,i)));let r={...o.shadowRootOptions,customElements:o.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return _i(n,o.elementStyles),n}};var To=function(e,o,r,n){var a=arguments.length,i=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(i=(a<3?l(i):a>3?l(o,r,i):l(o,r))||i);return a>3&&i&&Object.defineProperty(o,r,i),i},Ui,Di=Symbol("constructorPrototype"),zi=Symbol("constructorName"),Hi=Symbol("exportpartsDebouncer"),Mi=Symbol("dynamicDependenciesLoaded"),Yt=class extends Bo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Ui]=new Io(5),this[zi]=this.constructor.name,this[Di]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[zi]&&Object.setPrototypeOf(this,this[Di])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let o=this.constructor;o[Mi]||(o[Mi]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(o){super.updated(o),this.updateComplete.then(()=>{this.contentAvailableCallback(o),this.applyCustomStylesheet(o),this.scheduleExportpartsUpdate()})}contentAvailableCallback(o){}applyCustomStylesheet(o){var r,n,a;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(o.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}scheduleExportpartsUpdate(){var o,r,n;(!((o=this.exportpartsPrefix)===null||o===void 0)&&o.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[Hi].run(()=>{var a,i;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(o){var r,n,a,i,l,d;let p=m=>m!=null&&m.trim().length>0,f=o.filter(p).map(m=>m.trim());if(f.length===0){this.removeAttribute("exportparts");return}let y=new Set;for(let m of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let b=(i=(a=m.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],g=(d=(l=m.getAttribute("exportparts"))===null||l===void 0?void 0:l.split(",").map(v=>v.split(":")[1]))!==null&&d!==void 0?d:[];new Array(...b,...g).filter(p).map(v=>v.trim()).forEach(v=>y.add(v))}if(y.size===0){this.removeAttribute("exportparts");return}let h=[...y.values()].flatMap(m=>f.map(b=>`${m}:${b}--${m}`));this.setAttribute("exportparts",[...this.part,...h].join(", "))}};Ui=Hi;To([(0,Je.property)()],Yt.prototype,"exportpartsPrefix",void 0);To([$i([])],Yt.prototype,"exportpartsPrefixes",void 0);To([(0,Je.property)()],Yt.prototype,"customStylesheet",void 0);To([(0,Je.state)()],Yt.prototype,"useAdoptedStyleSheets",void 0);function Qe(e){var o;return(o=e?.isFtReduxStore)!==null&&o!==void 0?o:!1}var Gi,Fi,ji,to=Symbol("internalReduxEventsUnsubscribers"),qt=Symbol("internalStoresUnsubscribers"),de=Symbol("internalStores"),eo=class extends Yt{constructor(){super(...arguments),this[Gi]=new Map,this[Fi]=new Map,this[ji]=new Map}get reduxConstructor(){return this.constructor}update(o){super.update(o),[...this.reduxConstructor.reduxReactiveProperties].some(r=>o.has(r))&&this.updateFromStores()}getUnnamedStore(){if(this[de].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[de].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[de].get(o)}addStore(o,r){var n;r=(n=r??(Qe(o)?o.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(r),this[de].set(r,o),this.subscribeToStore(r,o),this.updateFromStores()}removeStore(o){let r=typeof o=="string"?o:o.name;this.unsubscribeFromStore(r),this[de].delete(r)}setupStores(){this.unsubscribeFromStores(),this[de].forEach((o,r)=>this.subscribeToStore(r,o)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((o,r)=>{let n=this.constructor.getPropertyOptions(r);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:r)){let a=this.getStore(o.store);a&&(o.store?this[qt].has(o.store):this[qt].size>0)&&(this[r]=o.selector(a.getState(),this))}})}subscribeToStore(o,r){var n;this[qt].set(o,r.subscribe(()=>this.updateFromStores())),this[to].set(o,[]),Qe(r)&&r.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||r.name===a.store)){let l=d=>this[i](d);r.addEventListener(a.eventName,l),this[to].get(o).push(()=>r.removeEventListener(a.eventName,l))}})),this.onStoreAvailable(o)}unsubscribeFromStores(){this[qt].forEach((o,r)=>this.unsubscribeFromStore(r))}unsubscribeFromStore(o){var r;this[qt].has(o)&&this[qt].get(o)(),this[qt].delete(o),(r=this[to].get(o))===null||r===void 0||r.forEach(n=>n()),this[to].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Gi=qt,Fi=de,ji=to;eo.reduxProperties=new Map;eo.reduxReactiveProperties=new Set;eo.reduxEventListeners=new Map;function mt(e){for(var o=arguments.length,r=Array(o>1?o-1:0),n=1;n<o;n++)r[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(l){return"'"+l+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Wt(e){return!!e&&!!e[D]}function St(e){var o;return!!e&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===Nl}(e)||Array.isArray(e)||!!e[Ji]||!!(!((o=e.constructor)===null||o===void 0)&&o[Ji])||Mr(e)||Ur(e))}function fe(e,o,r){r===void 0&&(r=!1),ke(e)===0?(r?Object.keys:Ie)(e).forEach(function(n){r&&typeof n=="symbol"||o(n,e[n],e)}):e.forEach(function(n,a){return o(a,n,e)})}function ke(e){var o=e[D];return o?o.i>3?o.i-4:o.i:Array.isArray(e)?1:Mr(e)?2:Ur(e)?3:0}function Pe(e,o){return ke(e)===2?e.has(o):Object.prototype.hasOwnProperty.call(e,o)}function xl(e,o){return ke(e)===2?e.get(o):e[o]}function Qi(e,o,r){var n=ke(e);n===2?e.set(o,r):n===3?e.add(r):e[o]=r}function tc(e,o){return e===o?e!==0||1/e==1/o:e!=e&&o!=o}function Mr(e){return wl&&e instanceof Map}function Ur(e){return El&&e instanceof Set}function Xt(e){return e.o||e.t}function Hr(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var o=rc(e);delete o[D];for(var r=Ie(o),n=0;n<r.length;n++){var a=r[n],i=o[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(o[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),o)}function Gr(e,o){return o===void 0&&(o=!1),Fr(e)||Wt(e)||!St(e)||(ke(e)>1&&(e.set=e.add=e.clear=e.delete=vl),Object.freeze(e),o&&fe(e,function(r,n){return Gr(n,!0)},!0)),e}function vl(){mt(2)}function Fr(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Rt(e){var o=zr[e];return o||mt(18,e),o}function Sl(e,o){zr[e]||(zr[e]=o)}function _r(){return ro}function kr(e,o){o&&(Rt("Patches"),e.u=[],e.s=[],e.v=o)}function $o(e){Wr(e),e.p.forEach(Ol),e.p=null}function Wr(e){e===ro&&(ro=e.l)}function Zi(e){return ro={p:[],l:ro,h:e,m:!0,_:0}}function Ol(e){var o=e[D];o.i===0||o.i===1?o.j():o.g=!0}function Br(e,o){o._=o.p.length;var r=o.p[0],n=e!==void 0&&e!==r;return o.h.O||Rt("ES5").S(o,e,n),n?(r[D].P&&($o(o),mt(4)),St(e)&&(e=_o(o,e),o.l||Wo(o,e)),o.u&&Rt("Patches").M(r[D].t,e,o.u,o.s)):e=_o(o,r,[]),$o(o),o.u&&o.v(o.u,o.s),e!==oc?e:void 0}function _o(e,o,r){if(Fr(o))return o;var n=o[D];if(!n)return fe(o,function(d,p){return Ki(e,n,o,d,p,r)},!0),o;if(n.A!==e)return o;if(!n.P)return Wo(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Hr(n.k):n.o,i=a,l=!1;n.i===3&&(i=new Set(a),a.clear(),l=!0),fe(i,function(d,p){return Ki(e,n,a,d,p,r,l)}),Wo(e,a,!1),r&&e.u&&Rt("Patches").N(n,r,e.u,e.s)}return n.o}function Ki(e,o,r,n,a,i,l){if(Wt(a)){var d=_o(e,a,i&&o&&o.i!==3&&!Pe(o.R,n)?i.concat(n):void 0);if(Qi(r,n,d),!Wt(d))return;e.m=!1}else l&&r.add(a);if(St(a)&&!Fr(a)){if(!e.h.D&&e._<1)return;_o(e,a),o&&o.A.l||Wo(e,a)}}function Wo(e,o,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Gr(o,r)}function Tr(e,o){var r=e[D];return(r?Xt(r):e)[o]}function Vi(e,o){if(o in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,o);if(n)return n;r=Object.getPrototypeOf(r)}}function Jt(e){e.P||(e.P=!0,e.l&&Jt(e.l))}function $r(e){e.o||(e.o=Hr(e.t))}function Dr(e,o,r){var n=Mr(o)?Rt("MapSet").F(o,r):Ur(o)?Rt("MapSet").T(o,r):e.O?function(a,i){var l=Array.isArray(a),d={i:l?1:0,A:i?i.A:_r(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},p=d,f=no;l&&(p=[d],f=oo);var y=Proxy.revocable(p,f),h=y.revoke,m=y.proxy;return d.k=m,d.j=h,m}(o,r):Rt("ES5").J(o,r);return(r?r.A:_r()).p.push(n),n}function Cl(e){return Wt(e)||mt(22,e),function o(r){if(!St(r))return r;var n,a=r[D],i=ke(r);if(a){if(!a.P&&(a.i<4||!Rt("ES5").K(a)))return a.t;a.I=!0,n=Yi(r,i),a.I=!1}else n=Yi(r,i);return fe(n,function(l,d){a&&xl(a.t,l)===d||Qi(n,l,o(d))}),i===3?new Set(n):n}(e)}function Yi(e,o){switch(o){case 2:return new Map(e);case 3:return Array.from(e)}return Hr(e)}function ec(){function e(l,d){var p=i[l];return p?p.enumerable=d:i[l]=p={configurable:!0,enumerable:d,get:function(){var f=this[D];return no.get(f,l)},set:function(f){var y=this[D];no.set(y,l,f)}},p}function o(l){for(var d=l.length-1;d>=0;d--){var p=l[d][D];if(!p.P)switch(p.i){case 5:n(p)&&Jt(p);break;case 4:r(p)&&Jt(p)}}}function r(l){for(var d=l.t,p=l.k,f=Ie(p),y=f.length-1;y>=0;y--){var h=f[y];if(h!==D){var m=d[h];if(m===void 0&&!Pe(d,h))return!0;var b=p[h],g=b&&b[D];if(g?g.t!==m:!tc(b,m))return!0}}var v=!!d[D];return f.length!==Ie(d).length+(v?0:1)}function n(l){var d=l.k;if(d.length!==l.t.length)return!0;var p=Object.getOwnPropertyDescriptor(d,d.length-1);if(p&&!p.get)return!0;for(var f=0;f<d.length;f++)if(!d.hasOwnProperty(f))return!0;return!1}function a(l){l.g&&mt(3,JSON.stringify(Xt(l)))}var i={};Sl("ES5",{J:function(l,d){var p=Array.isArray(l),f=function(h,m){if(h){for(var b=Array(m.length),g=0;g<m.length;g++)Object.defineProperty(b,""+g,e(g,!0));return b}var v=rc(m);delete v[D];for(var R=Ie(v),E=0;E<R.length;E++){var N=R[E];v[N]=e(N,h||!!v[N].enumerable)}return Object.create(Object.getPrototypeOf(m),v)}(p,l),y={i:p?5:4,A:d?d.A:_r(),P:!1,I:!1,R:{},l:d,t:l,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,D,{value:y,writable:!0}),f},S:function(l,d,p){p?Wt(d)&&d[D].A===l&&o(l.p):(l.u&&function f(y){if(y&&typeof y=="object"){var h=y[D];if(h){var m=h.t,b=h.k,g=h.R,v=h.i;if(v===4)fe(b,function(B){B!==D&&(m[B]!==void 0||Pe(m,B)?g[B]||f(b[B]):(g[B]=!0,Jt(h)))}),fe(m,function(B){b[B]!==void 0||Pe(b,B)||(g[B]=!1,Jt(h))});else if(v===5){if(n(h)&&(Jt(h),g.length=!0),b.length<m.length)for(var R=b.length;R<m.length;R++)g[R]=!1;else for(var E=m.length;E<b.length;E++)g[E]=!0;for(var N=Math.min(b.length,m.length),P=0;P<N;P++)b.hasOwnProperty(P)||(g[P]=!0),g[P]===void 0&&f(b[P])}}}}(l.p[0]),o(l.p))},K:function(l){return l.i===4?r(l):n(l)}})}var qi,ro,jr=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",wl=typeof Map<"u",El=typeof Set<"u",Xi=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",oc=jr?Symbol.for("immer-nothing"):((qi={})["immer-nothing"]=!0,qi),Ji=jr?Symbol.for("immer-draftable"):"__$immer_draftable",D=jr?Symbol.for("immer-state"):"__$immer_state";var Nl=""+Object.prototype.constructor,Ie=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,rc=Object.getOwnPropertyDescriptors||function(e){var o={};return Ie(e).forEach(function(r){o[r]=Object.getOwnPropertyDescriptor(e,r)}),o},zr={},no={get:function(e,o){if(o===D)return e;var r=Xt(e);if(!Pe(r,o))return function(a,i,l){var d,p=Vi(i,l);return p?"value"in p?p.value:(d=p.get)===null||d===void 0?void 0:d.call(a.k):void 0}(e,r,o);var n=r[o];return e.I||!St(n)?n:n===Tr(e.t,o)?($r(e),e.o[o]=Dr(e.A.h,n,e)):n},has:function(e,o){return o in Xt(e)},ownKeys:function(e){return Reflect.ownKeys(Xt(e))},set:function(e,o,r){var n=Vi(Xt(e),o);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var a=Tr(Xt(e),o),i=a?.[D];if(i&&i.t===r)return e.o[o]=r,e.R[o]=!1,!0;if(tc(r,a)&&(r!==void 0||Pe(e.t,o)))return!0;$r(e),Jt(e)}return e.o[o]===r&&(r!==void 0||o in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[o])||(e.o[o]=r,e.R[o]=!0),!0},deleteProperty:function(e,o){return Tr(e.t,o)!==void 0||o in e.t?(e.R[o]=!1,$r(e),Jt(e)):delete e.R[o],e.o&&delete e.o[o],!0},getOwnPropertyDescriptor:function(e,o){var r=Xt(e),n=Reflect.getOwnPropertyDescriptor(r,o);return n&&{writable:!0,configurable:e.i!==1||o!=="length",enumerable:n.enumerable,value:r[o]}},defineProperty:function(){mt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){mt(12)}},oo={};fe(no,function(e,o){oo[e]=function(){return arguments[0]=arguments[0][0],o.apply(this,arguments)}}),oo.deleteProperty=function(e,o){return oo.set.call(this,e,o,void 0)},oo.set=function(e,o,r){return no.set.call(this,e[0],o,r,e[0])};var Al=function(){function e(r){var n=this;this.O=Xi,this.D=!0,this.produce=function(a,i,l){if(typeof a=="function"&&typeof i!="function"){var d=i;i=a;var p=n;return function(v){var R=this;v===void 0&&(v=d);for(var E=arguments.length,N=Array(E>1?E-1:0),P=1;P<E;P++)N[P-1]=arguments[P];return p.produce(v,function(B){var T;return(T=i).call.apply(T,[R,B].concat(N))})}}var f;if(typeof i!="function"&&mt(6),l!==void 0&&typeof l!="function"&&mt(7),St(a)){var y=Zi(n),h=Dr(n,a,void 0),m=!0;try{f=i(h),m=!1}finally{m?$o(y):Wr(y)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(v){return kr(y,l),Br(v,y)},function(v){throw $o(y),v}):(kr(y,l),Br(f,y))}if(!a||typeof a!="object"){if((f=i(a))===void 0&&(f=a),f===oc&&(f=void 0),n.D&&Gr(f,!0),l){var b=[],g=[];Rt("Patches").M(a,f,b,g),l(b,g)}return f}mt(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(f){for(var y=arguments.length,h=Array(y>1?y-1:0),m=1;m<y;m++)h[m-1]=arguments[m];return n.produceWithPatches(f,function(b){return a.apply(void 0,[b].concat(h))})};var l,d,p=n.produce(a,i,function(f,y){l=f,d=y});return typeof Promise<"u"&&p instanceof Promise?p.then(function(f){return[f,l,d]}):[p,l,d]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var o=e.prototype;return o.createDraft=function(r){St(r)||mt(8),Wt(r)&&(r=Cl(r));var n=Zi(this),a=Dr(this,r,void 0);return a[D].C=!0,Wr(n),a},o.finishDraft=function(r,n){var a=r&&r[D],i=a.A;return kr(i,n),Br(void 0,i)},o.setAutoFreeze=function(r){this.D=r},o.setUseProxies=function(r){r&&!Xi&&mt(20),this.O=r},o.applyPatches=function(r,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}a>-1&&(n=n.slice(a+1));var l=Rt("Patches").$;return Wt(r)?l(r,n):this.produce(r,function(d){return l(d,n)})},e}(),ft=new Al,Rl=ft.produce,mm=ft.produceWithPatches.bind(ft),gm=ft.setAutoFreeze.bind(ft),bm=ft.setUseProxies.bind(ft),xm=ft.applyPatches.bind(ft),vm=ft.createDraft.bind(ft),Sm=ft.finishDraft.bind(ft),Do=Rl;function pe(e){"@babel/helpers - typeof";return pe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},pe(e)}function nc(e,o){if(pe(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,o||"default");if(pe(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(e)}function ac(e){var o=nc(e,"string");return pe(o)=="symbol"?o:o+""}function ic(e,o,r){return(o=ac(o))in e?Object.defineProperty(e,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[o]=r,e}function cc(e,o){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);o&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Zr(e){for(var o=1;o<arguments.length;o++){var r=arguments[o]!=null?arguments[o]:{};o%2?cc(Object(r),!0).forEach(function(n){ic(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cc(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function J(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var lc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Kr=function(){return Math.random().toString(36).substring(7).split("").join(".")},zo={INIT:"@@redux/INIT"+Kr(),REPLACE:"@@redux/REPLACE"+Kr(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Kr()}};function Ll(e){if(typeof e!="object"||e===null)return!1;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return Object.getPrototypeOf(e)===o}function Vr(e,o,r){var n;if(typeof o=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(J(0));if(typeof o=="function"&&typeof r>"u"&&(r=o,o=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(J(1));return r(Vr)(e,o)}if(typeof e!="function")throw new Error(J(2));var a=e,i=o,l=[],d=l,p=!1;function f(){d===l&&(d=l.slice())}function y(){if(p)throw new Error(J(3));return i}function h(v){if(typeof v!="function")throw new Error(J(4));if(p)throw new Error(J(5));var R=!0;return f(),d.push(v),function(){if(R){if(p)throw new Error(J(6));R=!1,f();var N=d.indexOf(v);d.splice(N,1),l=null}}}function m(v){if(!Ll(v))throw new Error(J(7));if(typeof v.type>"u")throw new Error(J(8));if(p)throw new Error(J(9));try{p=!0,i=a(i,v)}finally{p=!1}for(var R=l=d,E=0;E<R.length;E++){var N=R[E];N()}return v}function b(v){if(typeof v!="function")throw new Error(J(10));a=v,m({type:zo.REPLACE})}function g(){var v,R=h;return v={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(J(11));function P(){N.next&&N.next(y())}P();var B=R(P);return{unsubscribe:B}}},v[lc]=function(){return this},v}return m({type:zo.INIT}),n={dispatch:m,subscribe:h,getState:y,replaceReducer:b},n[lc]=g,n}function Pl(e){Object.keys(e).forEach(function(o){var r=e[o],n=r(void 0,{type:zo.INIT});if(typeof n>"u")throw new Error(J(12));if(typeof r(void 0,{type:zo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(J(13))})}function sc(e){for(var o=Object.keys(e),r={},n=0;n<o.length;n++){var a=o[n];typeof e[a]=="function"&&(r[a]=e[a])}var i=Object.keys(r),l,d;try{Pl(r)}catch(p){d=p}return function(f,y){if(f===void 0&&(f={}),d)throw d;if(0)var h;for(var m=!1,b={},g=0;g<i.length;g++){var v=i[g],R=r[v],E=f[v],N=R(E,y);if(typeof N>"u"){var P=y&&y.type;throw new Error(J(14))}b[v]=N,m=m||N!==E}return m=m||i.length!==Object.keys(f).length,m?b:f}}function Be(){for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];return o.length===0?function(n){return n}:o.length===1?o[0]:o.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function dc(){for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(J(15))},l={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},d=o.map(function(p){return p(l)});return i=Be.apply(void 0,d)(a.dispatch),Zr(Zr({},a),{},{dispatch:i})}}}function fc(e){var o=function(n){var a=n.dispatch,i=n.getState;return function(l){return function(d){return typeof d=="function"?d(a,i,e):l(d)}}};return o}var pc=fc();pc.withExtraArgument=fc;var Yr=pc;var gc=function(){var e=function(o,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},e(o,r)};return function(o,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(o,r);function n(){this.constructor=o}o.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Il=function(e,o){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,l;return l={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function d(f){return function(y){return p([f,y])}}function p(f){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,a&&(i=f[0]&2?a.return:f[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,f[1])).done)return i;switch(a=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++,a=f[1],f=[0];continue;case 7:f=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]<i[3])){r.label=f[1];break}if(f[0]===6&&r.label<i[1]){r.label=i[1],i=f;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(f);break}i[2]&&r.ops.pop(),r.trys.pop();continue}f=o.call(e,r)}catch(y){f=[6,y],a=0}finally{n=i=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},Te=function(e,o){for(var r=0,n=o.length,a=e.length;r<n;r++,a++)e[a]=o[r];return e},kl=Object.defineProperty,Bl=Object.defineProperties,Tl=Object.getOwnPropertyDescriptors,uc=Object.getOwnPropertySymbols,$l=Object.prototype.hasOwnProperty,_l=Object.prototype.propertyIsEnumerable,yc=function(e,o,r){return o in e?kl(e,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[o]=r},Qt=function(e,o){for(var r in o||(o={}))$l.call(o,r)&&yc(e,r,o[r]);if(uc)for(var n=0,a=uc(o);n<a.length;n++){var r=a[n];_l.call(o,r)&&yc(e,r,o[r])}return e},qr=function(e,o){return Bl(e,Tl(o))},Wl=function(e,o,r){return new Promise(function(n,a){var i=function(p){try{d(r.next(p))}catch(f){a(f)}},l=function(p){try{d(r.throw(p))}catch(f){a(f)}},d=function(p){return p.done?n(p.value):Promise.resolve(p.value).then(i,l)};d((r=r.apply(e,o)).next())})};var Dl=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Be:Be.apply(null,arguments)},zm=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function zl(e){if(typeof e!="object"||e===null)return!1;var o=Object.getPrototypeOf(e);if(o===null)return!0;for(var r=o;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return o===r}var Ml=function(e){gc(o,e);function o(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=e.apply(this,r)||this;return Object.setPrototypeOf(a,o.prototype),a}return Object.defineProperty(o,Symbol.species,{get:function(){return o},enumerable:!1,configurable:!0}),o.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},o.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(o.bind.apply(o,Te([void 0],r[0].concat(this)))):new(o.bind.apply(o,Te([void 0],r.concat(this))))},o}(Array),Ul=function(e){gc(o,e);function o(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=e.apply(this,r)||this;return Object.setPrototypeOf(a,o.prototype),a}return Object.defineProperty(o,Symbol.species,{get:function(){return o},enumerable:!1,configurable:!0}),o.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},o.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(o.bind.apply(o,Te([void 0],r[0].concat(this)))):new(o.bind.apply(o,Te([void 0],r.concat(this))))},o}(Array);function Qr(e){return St(e)?Do(e,function(){}):e}function Hl(e){return typeof e=="boolean"}function Gl(){return function(o){return Fl(o)}}function Fl(e){e===void 0&&(e={});var o=e.thunk,r=o===void 0?!0:o,n=e.immutableCheck,a=n===void 0?!0:n,i=e.serializableCheck,l=i===void 0?!0:i,d=new Ml;if(r&&(Hl(r)?d.push(Yr):d.push(Yr.withExtraArgument(r.extraArgument))),0){if(a)var p;if(l)var f}return d}var Xr=!0;function bc(e){var o=Gl(),r=e||{},n=r.reducer,a=n===void 0?void 0:n,i=r.middleware,l=i===void 0?o():i,d=r.devTools,p=d===void 0?!0:d,f=r.preloadedState,y=f===void 0?void 0:f,h=r.enhancers,m=h===void 0?void 0:h,b;if(typeof a=="function")b=a;else if(zl(a))b=sc(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var g=l;if(typeof g=="function"&&(g=g(o),!Xr&&!Array.isArray(g)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Xr&&g.some(function(B){return typeof B!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=dc.apply(void 0,g),R=Be;p&&(R=Dl(Qt({trace:!Xr},typeof p=="object"&&p)));var E=new Ul(v),N=E;Array.isArray(m)?N=Te([v],m):typeof m=="function"&&(N=m(E));var P=R.apply(void 0,N);return Vr(b,y,P)}function te(e,o){function r(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(o){var i=o.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return Qt(Qt({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=function(){return""+e},r.type=e,r.match=function(n){return n.type===e},r}function xc(e){var o={},r=[],n,a={addCase:function(i,l){var d=typeof i=="string"?i:i.type;if(d in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[d]=l,a},addMatcher:function(i,l){return r.push({matcher:i,reducer:l}),a},addDefaultCase:function(i){return n=i,a}};return e(a),[o,r,n]}function jl(e){return typeof e=="function"}function Zl(e,o,r,n){r===void 0&&(r=[]);var a=typeof o=="function"?xc(o):[o,r,n],i=a[0],l=a[1],d=a[2],p;if(jl(e))p=function(){return Qr(e())};else{var f=Qr(e);p=function(){return f}}function y(h,m){h===void 0&&(h=p());var b=Te([i[m.type]],l.filter(function(g){var v=g.matcher;return v(m)}).map(function(g){var v=g.reducer;return v}));return b.filter(function(g){return!!g}).length===0&&(b=[d]),b.reduce(function(g,v){if(v)if(Wt(g)){var R=g,E=v(R,m);return E===void 0?g:E}else{if(St(g))return Do(g,function(N){return v(N,m)});var E=v(g,m);if(E===void 0){if(g===null)return g;throw Error("A case reducer on a non-draftable value must not return undefined")}return E}return g},h)}return y.getInitialState=p,y}function Kl(e,o){return e+"/"+o}function vc(e){var o=e.name;if(!o)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof e.initialState=="function"?e.initialState:Qr(e.initialState),n=e.reducers||{},a=Object.keys(n),i={},l={},d={};a.forEach(function(y){var h=n[y],m=Kl(o,y),b,g;"reducer"in h?(b=h.reducer,g=h.prepare):b=h,i[y]=b,l[m]=b,d[y]=g?te(m,g):te(m)});function p(){var y=typeof e.extraReducers=="function"?xc(e.extraReducers):[e.extraReducers],h=y[0],m=h===void 0?{}:h,b=y[1],g=b===void 0?[]:b,v=y[2],R=v===void 0?void 0:v,E=Qt(Qt({},m),l);return Zl(r,function(N){for(var P in E)N.addCase(P,E[P]);for(var B=0,T=g;B<T.length;B++){var pt=T[B];N.addMatcher(pt.matcher,pt.reducer)}R&&N.addDefaultCase(R)})}var f;return{name:o,reducer:function(y,h){return f||(f=p()),f(y,h)},actions:d,caseReducers:i,getInitialState:function(){return f||(f=p()),f.getInitialState()}}}var Vl="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Yl=function(e){e===void 0&&(e=21);for(var o="",r=e;r--;)o+=Vl[Math.random()*64|0];return o},ql=["name","message","stack","code"],Jr=function(){function e(o,r){this.payload=o,this.meta=r}return e}(),hc=function(){function e(o,r){this.payload=o,this.meta=r}return e}(),Xl=function(e){if(typeof e=="object"&&e!==null){for(var o={},r=0,n=ql;r<n.length;r++){var a=n[r];typeof e[a]=="string"&&(o[a]=e[a])}return o}return{message:String(e)}},Gm=function(){function e(o,r,n){var a=te(o+"/fulfilled",function(y,h,m,b){return{payload:y,meta:qr(Qt({},b||{}),{arg:m,requestId:h,requestStatus:"fulfilled"})}}),i=te(o+"/pending",function(y,h,m){return{payload:void 0,meta:qr(Qt({},m||{}),{arg:h,requestId:y,requestStatus:"pending"})}}),l=te(o+"/rejected",function(y,h,m,b,g){return{payload:b,error:(n&&n.serializeError||Xl)(y||"Rejected"),meta:qr(Qt({},g||{}),{arg:m,requestId:h,rejectedWithValue:!!b,requestStatus:"rejected",aborted:y?.name==="AbortError",condition:y?.name==="ConditionError"})}}),d=!1,p=typeof AbortController<"u"?AbortController:function(){function y(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return y.prototype.abort=function(){},y}();function f(y){return function(h,m,b){var g=n?.idGenerator?n.idGenerator(y):Yl(),v=new p,R,E=!1;function N(B){R=B,v.abort()}var P=function(){return Wl(this,null,function(){var B,T,pt,zt,er,Mt,it;return Il(this,function(ut){switch(ut.label){case 0:return ut.trys.push([0,4,,5]),zt=(B=n?.condition)==null?void 0:B.call(n,y,{getState:m,extra:b}),Ql(zt)?[4,zt]:[3,2];case 1:zt=ut.sent(),ut.label=2;case 2:if(zt===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return E=!0,er=new Promise(function(ct,ee){return v.signal.addEventListener("abort",function(){return ee({name:"AbortError",message:R||"Aborted"})})}),h(i(g,y,(T=n?.getPendingMeta)==null?void 0:T.call(n,{requestId:g,arg:y},{getState:m,extra:b}))),[4,Promise.race([er,Promise.resolve(r(y,{dispatch:h,getState:m,extra:b,requestId:g,signal:v.signal,abort:N,rejectWithValue:function(ct,ee){return new Jr(ct,ee)},fulfillWithValue:function(ct,ee){return new hc(ct,ee)}})).then(function(ct){if(ct instanceof Jr)throw ct;return ct instanceof hc?a(ct.payload,g,y,ct.meta):a(ct,g,y)})])];case 3:return pt=ut.sent(),[3,5];case 4:return Mt=ut.sent(),pt=Mt instanceof Jr?l(null,g,y,Mt.payload,Mt.meta):l(Mt,g,y),[3,5];case 5:return it=n&&!n.dispatchConditionRejection&&l.match(pt)&&pt.meta.condition,it||h(pt),[2,pt]}})})}();return Object.assign(P,{abort:N,requestId:g,arg:y,unwrap:function(){return P.then(Jl)}})}}return Object.assign(f,{pending:i,rejected:l,fulfilled:a,typePrefix:o})}return e.withTypes=function(){return e},e}();function Jl(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Ql(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Sc="listener",Oc="completed",Cc="cancelled",Fm="task-"+Cc,jm="task-"+Oc,Zm=Sc+"-"+Cc,Km=Sc+"-"+Oc;var tn="listenerMiddleware";var Vm=te(tn+"/add"),Ym=te(tn+"/removeAll"),qm=te(tn+"/remove");var mc,Xm=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(mc||(mc=Promise.resolve())).then(e).catch(function(o){return setTimeout(function(){throw o},0)})},ts=function(e){return function(o){setTimeout(o,e)}},Jm=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:ts(10);ec();function es(e,o){return class extends e{constructor(){super(...arguments),this.eventBus=o??document.createElement("span")}addEventListener(r,n,a){this.eventBus.addEventListener(r,n,a)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,a){this.eventBus.removeEventListener(r,n,a)}}}var Mo=class extends es(Object){};window.ftReduxStores||(window.ftReduxStores={});var wc=class e extends Mo{static get(o){var r;let n=typeof o=="string"?o:o.name,a=typeof o=="string"?void 0:o,i=window.ftReduxStores[n];if(Qe(i))return i;if(a==null)return;let l=vc({...a,reducers:(r=a.reducers)!==null&&r!==void 0?r:{}}),d=bc({reducer:(p,f)=>f.type==="CLEAR_FT_REDUX_STORE"?l.getInitialState():typeof f.type=="string"&&f.type.startsWith("DEFAULT_VALUE_SETTER__")?{...p,...f.overwrites}:l.reducer(p,f)});return window.ftReduxStores[a.name]=new e(l,d,a.eventBus)}constructor(o,r,n){super(),this.reduxSlice=o,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Po;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,l,d)=>{let p=l,f=i[p];return f?(...y)=>{let h=f(...y.map(a));return this.reduxStore.dispatch(h),h}:y=>{this.setState({[p]:a(y)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(o){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(o).join("_"),overwrites:o})}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(o){throw new Error("Not implemented yet.")}subscribe(o){return this.reduxStore.subscribe(o)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Fo=S(k());var Uo=class extends Kt{async listMySearches(){let o=L.getState().session;return o?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(o.profile.userId),5*60*1e3):[]}};var Ho=class extends Kt{async listMyBookmarks(){let o=L.getState().session;return o?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(o.profile.userId),5*60*1e3):[]}};var rs="ft-user-assets",Go=Fo.FtReduxStore.get({name:rs,initialState:{savedSearches:void 0,bookmarks:void 0}}),en=class{constructor(){this.currentSession=L.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Ho,this.savedSearchesService=new Uo,L.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var o;let{session:r}=L.getState();(0,Fo.deepEqual)((o=this.currentSession)===null||o===void 0?void 0:o.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Go.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Go.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let o=await this.savedSearchesService.listMySearches();Go.actions.savedSearches(o)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var o;if(this.bookmarksAreUsed){let r=!((o=this.currentSession)===null||o===void 0)&&o.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Go.actions.bookmarks(r)}}},Bg=new en;var on=class{addCommand(o,r=!1){L.commands.add(o,r)}consumeCommand(o){return L.commands.consume(o)}};window.FluidTopicsAppInfoStoreService=new on;var Ec=S(k()),rn=class{highlightHtml(o,r,n){(0,Ec.highlightHtml)(o,r,n)}};window.FluidTopicsHighlightHtmlService=new rn;var Nc=S(k());var nn=class{isDate(o){var r,n,a,i;return(i=(a=((n=(r=L.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(d=>d.key===o))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(o,r){var n,a,i;return Nc.DateFormatter.format(o,(n=r?.locale)!==null&&n!==void 0?n:L.getState().uiLocale,(a=r?.longFormat)!==null&&a!==void 0?a:!1,(i=r?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new nn;var ns=S(k());(0,Ac.customElement)("ft-app-context")(H);var Lc=S(V()),as=function(e,o,r,n){var a=arguments.length,i=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(i=(a<3?l(i):a>3?l(o,r,i):l(o,r))||i);return a>3&&i&&Object.defineProperty(o,r,i),i},an=Symbol("i18nAttributes"),cn=Symbol("i18nListAttributes"),jo=Symbol("i18nProperties"),ln=Symbol("i18nManualContexts"),ao=Symbol("i18nUnsubs");function Vo(e){var o,r;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[o]=new Map,this[r]=new Map}get i18nService(){return this.useCustomMessageContexts?ki:se}i18n(i,l,...d){var p;if(typeof i=="string")return this.i18nService.resolveMessage(i,l,...d);let f=(p=i.args)!==null&&p!==void 0?p:i.argsProvider?i.argsProvider(this):[];return this.i18nService.resolveMessage(i.context,i.key,...f)}onI18nUpdate(i){var l,d,p;(l=this[an])===null||l===void 0||l.forEach((f,y)=>{let h=this.getI18nAttributeValue(y);h&&(this[y]=this.getI18nAttributeMessage(h,f,i))}),(d=this[cn])===null||d===void 0||d.forEach((f,y)=>{let h=this.getI18nListAttributeValues(y);this[y]=h?.map(m=>this.getI18nAttributeMessage(m,f,i))}),(p=this[jo])===null||p===void 0||p.forEach((f,y)=>{f.context.toLowerCase()===i.toLowerCase()&&(this[y]=this.i18n(f))}),setTimeout(()=>this.requestUpdate(),0)}buildI18nAttributeMessage(i,l){return{...i,message:this.i18n({context:i.context,key:i.key,...l})}}getI18nAttributeMessage(i,l,d){var p;let f=!d||((p=i.context)===null||p===void 0?void 0:p.toLowerCase())===d.toLowerCase();return i.context&&i.key&&f?this.buildI18nAttributeMessage(i,l):i}update(i){var l,d,p;super.update(i),(l=this[an])===null||l===void 0||l.forEach((f,y)=>{let h=this.getI18nAttributeValue(y);h?.context&&h.key&&(i.has(y)||f.argsProvider!=null)&&(this.addI18nContextIfNeeded(h,i,y),this[y]=this.getI18nAttributeMessage(h,f))}),(d=this[cn])===null||d===void 0||d.forEach((f,y)=>{let h=this.getI18nListAttributeValues(y);(i.has(y)||f.argsProvider!=null)&&(this[y]=h?.map(m=>(this.addI18nContextIfNeeded(m,i,y),this.getI18nAttributeMessage(m,f))))}),(p=this[jo])===null||p===void 0||p.forEach((f,y)=>{f.argsProvider!=null&&(this[y]=this.i18n(f))})}getI18nAttributeValue(i){return this[i]}getI18nListAttributeValues(i){return this[i]}addI18nContextIfNeeded(i,l,d){i.context&&i.key&&l.has(d)&&this.addI18nContext(i.context)}addI18nMessagesAndSubscribe(i,l){i=i.toLowerCase(),this[ao].has(i)||this[ao].set(i,this.i18nService.subscribe(i,()=>this.onI18nUpdate(i))),this.i18nService.prepareContext(i,l??{}),this.onI18nUpdate(i)}connectedCallback(){var i,l,d,p,f,y;super.connectedCallback(),new Set([...(l=(i=this[jo])===null||i===void 0?void 0:i.values())!==null&&l!==void 0?l:[],...[...(p=(d=this[an])===null||d===void 0?void 0:d.keys())!==null&&p!==void 0?p:[]].map(h=>this.getI18nAttributeValue(h)),...[...(y=(f=this[cn])===null||f===void 0?void 0:f.keys())!==null&&y!==void 0?y:[]].flatMap(h=>this.getI18nListAttributeValues(h))].map(h=>h?.context)).forEach(h=>h&&this.addI18nMessages(h)),this[ln].forEach((h,m)=>{this.addI18nMessages(m,h)})}addI18nMessages(i,l){this[ln].set(i,l??{}),this.addI18nMessagesAndSubscribe(i,l)}addI18nContext(i,l){this.addI18nMessages(typeof i=="string"?i:i.name,l)}disconnectedCallback(){super.disconnectedCallback(),this[ao].forEach(i=>i()),this[ao].clear()}}return o=ln,r=ao,as([(0,Lc.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}var Rc=class extends Vo(Ko.FtLitElement){},Zo=class extends Vo(Ko.FtLitElementRedux){};var io=function(e,o,r,n){var a=arguments.length,i=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(i=(a<3?l(i):a>3?l(o,r,i):l(o,r))||i);return a>3&&i&&Object.defineProperty(o,r,i),i},Ot=class extends Zo{constructor(){super(),this.editorMode=!1,this.addStore(L)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Yo.nothing:Yo.html`
|
|
1144
|
+
`}update(o){var r,n,a,i,l;super.update(o),o.has("baseUrl")&&(L.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),o.has("apiIntegrationIdentifier")&&L.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),o.has("uiLocale")&&L.actions.uiLocale(this.uiLocale),o.has("metadataConfiguration")&&L.actions.metadataConfiguration(this.metadataConfiguration),o.has("noCustom")&&L.actions.noCustom(this.noCustom),o.has("editorMode")&&L.actions.editorMode(this.editorMode),o.has("noCustomComponent")&&L.actions.noCustomComponent(this.noCustomComponent),o.has("session")&&L.actions.session(this.session),o.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(d=>se.addContext(d)),o.has("openExternalDocumentInNewTab")&&L.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),o.has("navigatorOnline")&&L.actions.navigatorOnline(this.navigatorOnline),o.has("forcedOffline")&&L.actions.forcedOffline(this.forcedOffline),o.has("localesConfiguration")&&(L.actions.defaultLocales((r=this.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales),L.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),L.actions.searchInAllLanguagesAllowed((l=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&l!==void 0?l:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let o=await this.apiProvider().getCurrentSession();return o.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},o.idleTimeoutInMillis),o})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};H.elementDefinitions={};H.styles=Pi;X([(0,at.property)()],H.prototype,"baseUrl",void 0);X([(0,at.property)()],H.prototype,"apiIntegrationIdentifier",void 0);X([(0,at.property)()],H.prototype,"uiLocale",void 0);X([(0,vt.jsonProperty)(null)],H.prototype,"availableUiLocales",void 0);X([(0,vt.jsonProperty)(null)],H.prototype,"metadataConfiguration",void 0);X([(0,at.property)({type:Boolean})],H.prototype,"editorMode",void 0);X([(0,at.property)({type:Boolean})],H.prototype,"noCustom",void 0);X([(0,at.property)({type:Boolean})],H.prototype,"openExternalDocumentInNewTab",void 0);X([(0,at.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],H.prototype,"noCustomComponent",void 0);X([(0,at.property)({type:Boolean})],H.prototype,"withManualResources",void 0);X([(0,at.property)({type:Boolean})],H.prototype,"navigatorOnline",void 0);X([(0,at.property)({type:Boolean})],H.prototype,"forcedOffline",void 0);X([(0,at.property)({type:Object})],H.prototype,"apiProvider",void 0);X([(0,vt.jsonProperty)([])],H.prototype,"messageContexts",void 0);X([(0,vt.jsonProperty)(void 0)],H.prototype,"session",void 0);X([(0,at.state)()],H.prototype,"localesConfiguration",void 0);var os=S(V());function ml(e,o){if(e===o)return!0;if(e&&o&&typeof e=="object"&&typeof o=="object"){if(e.constructor!==o.constructor)return!1;var r,n,a;if(Array.isArray(e)){if(r=e.length,r!=o.length)return!1;for(n=r;n--!==0;)if(!Ro(e[n],o[n]))return!1;return!0}if(e instanceof Map&&o instanceof Map){if(e.size!==o.size)return!1;for(n of e.entries())if(!o.has(n[0]))return!1;for(n of e.entries())if(!Ro(n[1],o.get(n[0])))return!1;return!0}if(e instanceof Set&&o instanceof Set){if(e.size!==o.size)return!1;for(n of e.entries())if(!o.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===o.source&&e.flags===o.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===o.valueOf();let i=l=>Object.keys(l).filter(d=>l[d]!=null);if(a=i(e),r=a.length,r!==i(o).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(o,a[n]))return!1;for(n=r;n--!==0;){let l=a[n];if(!Ro(e[l],o[l]))return!1}return!0}return e!==e&&o!==o||e==null&&o==null}function Ro(e,o){try{return ml(e,o)}catch{return!1}}function Lo(e,o){return!Ro(e,o)}var gl=S(V(),1);var Po=class{constructor(){this.queue=[]}add(o,r=!1){r&&(this.queue=this.queue.filter(n=>n.type!==o.type)),this.queue.push(o)}consume(o){let r=this.queue.find(n=>n.type===o);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}};var Je=S(V(),1);var Ti=S(V(),1);function $i(e,o){let r=()=>JSON.parse(JSON.stringify(e));return(0,Ti.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return r();try{return JSON.parse(n)}catch{return r()}},toAttribute:n=>JSON.stringify(n)},hasChanged:Lo,...o??{}})}var Io=class{constructor(o=0){this.timeout=o,this.callbacks=[]}run(o,r){return this.callbacks=[o],this.debounce(r)}queue(o,r){return this.callbacks.push(o),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(o){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),o??this.timeout),this.promise}async runCallbacks(){var o,r;let n=[...this.callbacks];this.callbacks=[];let a=(o=this.rejectPromise)!==null&&o!==void 0?o:()=>null,i=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let l of n)try{await l()}catch(d){a(d);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Wi=S(z(),1);var ko=globalThis,bl=ko.ShadowRoot&&(ko.ShadyCSS===void 0||ko.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,nm=Symbol();var _i=(e,o)=>{if(bl)e.adoptedStyleSheets=o.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of o){let n=document.createElement("style"),a=ko.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=r.cssText,e.appendChild(n)}};var Bo=class extends Wi.LitElement{createRenderRoot(){let o=this.constructor;o.elementDefinitions&&!o.registry&&(o.registry=new CustomElementRegistry,Object.entries(o.elementDefinitions).forEach(([a,i])=>o.registry.define(a,i)));let r={...o.shadowRootOptions,customElements:o.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return _i(n,o.elementStyles),n}};var To=function(e,o,r,n){var a=arguments.length,i=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(i=(a<3?l(i):a>3?l(o,r,i):l(o,r))||i);return a>3&&i&&Object.defineProperty(o,r,i),i},Ui,Di=Symbol("constructorPrototype"),zi=Symbol("constructorName"),Hi=Symbol("exportpartsDebouncer"),Mi=Symbol("dynamicDependenciesLoaded"),Yt=class extends Bo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Ui]=new Io(5),this[zi]=this.constructor.name,this[Di]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[zi]&&Object.setPrototypeOf(this,this[Di])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let o=this.constructor;o[Mi]||(o[Mi]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(o){super.updated(o),this.updateComplete.then(()=>{this.contentAvailableCallback(o),this.applyCustomStylesheet(o),this.scheduleExportpartsUpdate()})}contentAvailableCallback(o){}applyCustomStylesheet(o){var r,n,a;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(o.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}scheduleExportpartsUpdate(){var o,r,n;(!((o=this.exportpartsPrefix)===null||o===void 0)&&o.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[Hi].run(()=>{var a,i;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(o){var r,n,a,i,l,d;let p=m=>m!=null&&m.trim().length>0,f=o.filter(p).map(m=>m.trim());if(f.length===0){this.removeAttribute("exportparts");return}let y=new Set;for(let m of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let b=(i=(a=m.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],g=(d=(l=m.getAttribute("exportparts"))===null||l===void 0?void 0:l.split(",").map(v=>v.split(":")[1]))!==null&&d!==void 0?d:[];new Array(...b,...g).filter(p).map(v=>v.trim()).forEach(v=>y.add(v))}if(y.size===0){this.removeAttribute("exportparts");return}let h=[...y.values()].flatMap(m=>f.map(b=>`${m}:${b}--${m}`));this.setAttribute("exportparts",[...this.part,...h].join(", "))}};Ui=Hi;To([(0,Je.property)()],Yt.prototype,"exportpartsPrefix",void 0);To([$i([])],Yt.prototype,"exportpartsPrefixes",void 0);To([(0,Je.property)()],Yt.prototype,"customStylesheet",void 0);To([(0,Je.state)()],Yt.prototype,"useAdoptedStyleSheets",void 0);function Qe(e){var o;return(o=e?.isFtReduxStore)!==null&&o!==void 0?o:!1}var Gi,Fi,ji,to=Symbol("internalReduxEventsUnsubscribers"),qt=Symbol("internalStoresUnsubscribers"),de=Symbol("internalStores"),eo=class extends Yt{constructor(){super(...arguments),this[Gi]=new Map,this[Fi]=new Map,this[ji]=new Map}get reduxConstructor(){return this.constructor}update(o){super.update(o),[...this.reduxConstructor.reduxReactiveProperties].some(r=>o.has(r))&&this.updateFromStores()}getUnnamedStore(){if(this[de].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[de].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[de].get(o)}addStore(o,r){var n;r=(n=r??(Qe(o)?o.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(r),this[de].set(r,o),this.subscribeToStore(r,o),this.updateFromStores()}removeStore(o){let r=typeof o=="string"?o:o.name;this.unsubscribeFromStore(r),this[de].delete(r)}setupStores(){this.unsubscribeFromStores(),this[de].forEach((o,r)=>this.subscribeToStore(r,o)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((o,r)=>{let n=this.constructor.getPropertyOptions(r);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:r)){let a=this.getStore(o.store);a&&(o.store?this[qt].has(o.store):this[qt].size>0)&&(this[r]=o.selector(a.getState(),this))}})}subscribeToStore(o,r){var n;this[qt].set(o,r.subscribe(()=>this.updateFromStores())),this[to].set(o,[]),Qe(r)&&r.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||r.name===a.store)){let l=d=>this[i](d);r.addEventListener(a.eventName,l),this[to].get(o).push(()=>r.removeEventListener(a.eventName,l))}})),this.onStoreAvailable(o)}unsubscribeFromStores(){this[qt].forEach((o,r)=>this.unsubscribeFromStore(r))}unsubscribeFromStore(o){var r;this[qt].has(o)&&this[qt].get(o)(),this[qt].delete(o),(r=this[to].get(o))===null||r===void 0||r.forEach(n=>n()),this[to].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Gi=qt,Fi=de,ji=to;eo.reduxProperties=new Map;eo.reduxReactiveProperties=new Set;eo.reduxEventListeners=new Map;function mt(e){for(var o=arguments.length,r=Array(o>1?o-1:0),n=1;n<o;n++)r[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(l){return"'"+l+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Wt(e){return!!e&&!!e[D]}function St(e){var o;return!!e&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===Nl}(e)||Array.isArray(e)||!!e[Ji]||!!(!((o=e.constructor)===null||o===void 0)&&o[Ji])||Mr(e)||Ur(e))}function fe(e,o,r){r===void 0&&(r=!1),ke(e)===0?(r?Object.keys:Ie)(e).forEach(function(n){r&&typeof n=="symbol"||o(n,e[n],e)}):e.forEach(function(n,a){return o(a,n,e)})}function ke(e){var o=e[D];return o?o.i>3?o.i-4:o.i:Array.isArray(e)?1:Mr(e)?2:Ur(e)?3:0}function Pe(e,o){return ke(e)===2?e.has(o):Object.prototype.hasOwnProperty.call(e,o)}function xl(e,o){return ke(e)===2?e.get(o):e[o]}function Qi(e,o,r){var n=ke(e);n===2?e.set(o,r):n===3?e.add(r):e[o]=r}function tc(e,o){return e===o?e!==0||1/e==1/o:e!=e&&o!=o}function Mr(e){return wl&&e instanceof Map}function Ur(e){return El&&e instanceof Set}function Xt(e){return e.o||e.t}function Hr(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var o=rc(e);delete o[D];for(var r=Ie(o),n=0;n<r.length;n++){var a=r[n],i=o[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(o[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),o)}function Gr(e,o){return o===void 0&&(o=!1),Fr(e)||Wt(e)||!St(e)||(ke(e)>1&&(e.set=e.add=e.clear=e.delete=vl),Object.freeze(e),o&&fe(e,function(r,n){return Gr(n,!0)},!0)),e}function vl(){mt(2)}function Fr(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Rt(e){var o=zr[e];return o||mt(18,e),o}function Sl(e,o){zr[e]||(zr[e]=o)}function _r(){return ro}function kr(e,o){o&&(Rt("Patches"),e.u=[],e.s=[],e.v=o)}function $o(e){Wr(e),e.p.forEach(Ol),e.p=null}function Wr(e){e===ro&&(ro=e.l)}function Ki(e){return ro={p:[],l:ro,h:e,m:!0,_:0}}function Ol(e){var o=e[D];o.i===0||o.i===1?o.j():o.g=!0}function Br(e,o){o._=o.p.length;var r=o.p[0],n=e!==void 0&&e!==r;return o.h.O||Rt("ES5").S(o,e,n),n?(r[D].P&&($o(o),mt(4)),St(e)&&(e=_o(o,e),o.l||Wo(o,e)),o.u&&Rt("Patches").M(r[D].t,e,o.u,o.s)):e=_o(o,r,[]),$o(o),o.u&&o.v(o.u,o.s),e!==oc?e:void 0}function _o(e,o,r){if(Fr(o))return o;var n=o[D];if(!n)return fe(o,function(d,p){return Zi(e,n,o,d,p,r)},!0),o;if(n.A!==e)return o;if(!n.P)return Wo(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Hr(n.k):n.o,i=a,l=!1;n.i===3&&(i=new Set(a),a.clear(),l=!0),fe(i,function(d,p){return Zi(e,n,a,d,p,r,l)}),Wo(e,a,!1),r&&e.u&&Rt("Patches").N(n,r,e.u,e.s)}return n.o}function Zi(e,o,r,n,a,i,l){if(Wt(a)){var d=_o(e,a,i&&o&&o.i!==3&&!Pe(o.R,n)?i.concat(n):void 0);if(Qi(r,n,d),!Wt(d))return;e.m=!1}else l&&r.add(a);if(St(a)&&!Fr(a)){if(!e.h.D&&e._<1)return;_o(e,a),o&&o.A.l||Wo(e,a)}}function Wo(e,o,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Gr(o,r)}function Tr(e,o){var r=e[D];return(r?Xt(r):e)[o]}function Vi(e,o){if(o in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,o);if(n)return n;r=Object.getPrototypeOf(r)}}function Jt(e){e.P||(e.P=!0,e.l&&Jt(e.l))}function $r(e){e.o||(e.o=Hr(e.t))}function Dr(e,o,r){var n=Mr(o)?Rt("MapSet").F(o,r):Ur(o)?Rt("MapSet").T(o,r):e.O?function(a,i){var l=Array.isArray(a),d={i:l?1:0,A:i?i.A:_r(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},p=d,f=no;l&&(p=[d],f=oo);var y=Proxy.revocable(p,f),h=y.revoke,m=y.proxy;return d.k=m,d.j=h,m}(o,r):Rt("ES5").J(o,r);return(r?r.A:_r()).p.push(n),n}function Cl(e){return Wt(e)||mt(22,e),function o(r){if(!St(r))return r;var n,a=r[D],i=ke(r);if(a){if(!a.P&&(a.i<4||!Rt("ES5").K(a)))return a.t;a.I=!0,n=Yi(r,i),a.I=!1}else n=Yi(r,i);return fe(n,function(l,d){a&&xl(a.t,l)===d||Qi(n,l,o(d))}),i===3?new Set(n):n}(e)}function Yi(e,o){switch(o){case 2:return new Map(e);case 3:return Array.from(e)}return Hr(e)}function ec(){function e(l,d){var p=i[l];return p?p.enumerable=d:i[l]=p={configurable:!0,enumerable:d,get:function(){var f=this[D];return no.get(f,l)},set:function(f){var y=this[D];no.set(y,l,f)}},p}function o(l){for(var d=l.length-1;d>=0;d--){var p=l[d][D];if(!p.P)switch(p.i){case 5:n(p)&&Jt(p);break;case 4:r(p)&&Jt(p)}}}function r(l){for(var d=l.t,p=l.k,f=Ie(p),y=f.length-1;y>=0;y--){var h=f[y];if(h!==D){var m=d[h];if(m===void 0&&!Pe(d,h))return!0;var b=p[h],g=b&&b[D];if(g?g.t!==m:!tc(b,m))return!0}}var v=!!d[D];return f.length!==Ie(d).length+(v?0:1)}function n(l){var d=l.k;if(d.length!==l.t.length)return!0;var p=Object.getOwnPropertyDescriptor(d,d.length-1);if(p&&!p.get)return!0;for(var f=0;f<d.length;f++)if(!d.hasOwnProperty(f))return!0;return!1}function a(l){l.g&&mt(3,JSON.stringify(Xt(l)))}var i={};Sl("ES5",{J:function(l,d){var p=Array.isArray(l),f=function(h,m){if(h){for(var b=Array(m.length),g=0;g<m.length;g++)Object.defineProperty(b,""+g,e(g,!0));return b}var v=rc(m);delete v[D];for(var R=Ie(v),E=0;E<R.length;E++){var N=R[E];v[N]=e(N,h||!!v[N].enumerable)}return Object.create(Object.getPrototypeOf(m),v)}(p,l),y={i:p?5:4,A:d?d.A:_r(),P:!1,I:!1,R:{},l:d,t:l,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,D,{value:y,writable:!0}),f},S:function(l,d,p){p?Wt(d)&&d[D].A===l&&o(l.p):(l.u&&function f(y){if(y&&typeof y=="object"){var h=y[D];if(h){var m=h.t,b=h.k,g=h.R,v=h.i;if(v===4)fe(b,function(B){B!==D&&(m[B]!==void 0||Pe(m,B)?g[B]||f(b[B]):(g[B]=!0,Jt(h)))}),fe(m,function(B){b[B]!==void 0||Pe(b,B)||(g[B]=!1,Jt(h))});else if(v===5){if(n(h)&&(Jt(h),g.length=!0),b.length<m.length)for(var R=b.length;R<m.length;R++)g[R]=!1;else for(var E=m.length;E<b.length;E++)g[E]=!0;for(var N=Math.min(b.length,m.length),P=0;P<N;P++)b.hasOwnProperty(P)||(g[P]=!0),g[P]===void 0&&f(b[P])}}}}(l.p[0]),o(l.p))},K:function(l){return l.i===4?r(l):n(l)}})}var qi,ro,jr=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",wl=typeof Map<"u",El=typeof Set<"u",Xi=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",oc=jr?Symbol.for("immer-nothing"):((qi={})["immer-nothing"]=!0,qi),Ji=jr?Symbol.for("immer-draftable"):"__$immer_draftable",D=jr?Symbol.for("immer-state"):"__$immer_state";var Nl=""+Object.prototype.constructor,Ie=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,rc=Object.getOwnPropertyDescriptors||function(e){var o={};return Ie(e).forEach(function(r){o[r]=Object.getOwnPropertyDescriptor(e,r)}),o},zr={},no={get:function(e,o){if(o===D)return e;var r=Xt(e);if(!Pe(r,o))return function(a,i,l){var d,p=Vi(i,l);return p?"value"in p?p.value:(d=p.get)===null||d===void 0?void 0:d.call(a.k):void 0}(e,r,o);var n=r[o];return e.I||!St(n)?n:n===Tr(e.t,o)?($r(e),e.o[o]=Dr(e.A.h,n,e)):n},has:function(e,o){return o in Xt(e)},ownKeys:function(e){return Reflect.ownKeys(Xt(e))},set:function(e,o,r){var n=Vi(Xt(e),o);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var a=Tr(Xt(e),o),i=a?.[D];if(i&&i.t===r)return e.o[o]=r,e.R[o]=!1,!0;if(tc(r,a)&&(r!==void 0||Pe(e.t,o)))return!0;$r(e),Jt(e)}return e.o[o]===r&&(r!==void 0||o in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[o])||(e.o[o]=r,e.R[o]=!0),!0},deleteProperty:function(e,o){return Tr(e.t,o)!==void 0||o in e.t?(e.R[o]=!1,$r(e),Jt(e)):delete e.R[o],e.o&&delete e.o[o],!0},getOwnPropertyDescriptor:function(e,o){var r=Xt(e),n=Reflect.getOwnPropertyDescriptor(r,o);return n&&{writable:!0,configurable:e.i!==1||o!=="length",enumerable:n.enumerable,value:r[o]}},defineProperty:function(){mt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){mt(12)}},oo={};fe(no,function(e,o){oo[e]=function(){return arguments[0]=arguments[0][0],o.apply(this,arguments)}}),oo.deleteProperty=function(e,o){return oo.set.call(this,e,o,void 0)},oo.set=function(e,o,r){return no.set.call(this,e[0],o,r,e[0])};var Al=function(){function e(r){var n=this;this.O=Xi,this.D=!0,this.produce=function(a,i,l){if(typeof a=="function"&&typeof i!="function"){var d=i;i=a;var p=n;return function(v){var R=this;v===void 0&&(v=d);for(var E=arguments.length,N=Array(E>1?E-1:0),P=1;P<E;P++)N[P-1]=arguments[P];return p.produce(v,function(B){var T;return(T=i).call.apply(T,[R,B].concat(N))})}}var f;if(typeof i!="function"&&mt(6),l!==void 0&&typeof l!="function"&&mt(7),St(a)){var y=Ki(n),h=Dr(n,a,void 0),m=!0;try{f=i(h),m=!1}finally{m?$o(y):Wr(y)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(v){return kr(y,l),Br(v,y)},function(v){throw $o(y),v}):(kr(y,l),Br(f,y))}if(!a||typeof a!="object"){if((f=i(a))===void 0&&(f=a),f===oc&&(f=void 0),n.D&&Gr(f,!0),l){var b=[],g=[];Rt("Patches").M(a,f,b,g),l(b,g)}return f}mt(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(f){for(var y=arguments.length,h=Array(y>1?y-1:0),m=1;m<y;m++)h[m-1]=arguments[m];return n.produceWithPatches(f,function(b){return a.apply(void 0,[b].concat(h))})};var l,d,p=n.produce(a,i,function(f,y){l=f,d=y});return typeof Promise<"u"&&p instanceof Promise?p.then(function(f){return[f,l,d]}):[p,l,d]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var o=e.prototype;return o.createDraft=function(r){St(r)||mt(8),Wt(r)&&(r=Cl(r));var n=Ki(this),a=Dr(this,r,void 0);return a[D].C=!0,Wr(n),a},o.finishDraft=function(r,n){var a=r&&r[D],i=a.A;return kr(i,n),Br(void 0,i)},o.setAutoFreeze=function(r){this.D=r},o.setUseProxies=function(r){r&&!Xi&&mt(20),this.O=r},o.applyPatches=function(r,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}a>-1&&(n=n.slice(a+1));var l=Rt("Patches").$;return Wt(r)?l(r,n):this.produce(r,function(d){return l(d,n)})},e}(),ft=new Al,Rl=ft.produce,mm=ft.produceWithPatches.bind(ft),gm=ft.setAutoFreeze.bind(ft),bm=ft.setUseProxies.bind(ft),xm=ft.applyPatches.bind(ft),vm=ft.createDraft.bind(ft),Sm=ft.finishDraft.bind(ft),Do=Rl;function pe(e){"@babel/helpers - typeof";return pe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},pe(e)}function nc(e,o){if(pe(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,o||"default");if(pe(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(e)}function ac(e){var o=nc(e,"string");return pe(o)=="symbol"?o:o+""}function ic(e,o,r){return(o=ac(o))in e?Object.defineProperty(e,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[o]=r,e}function cc(e,o){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);o&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Kr(e){for(var o=1;o<arguments.length;o++){var r=arguments[o]!=null?arguments[o]:{};o%2?cc(Object(r),!0).forEach(function(n){ic(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cc(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function J(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var lc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Zr=function(){return Math.random().toString(36).substring(7).split("").join(".")},zo={INIT:"@@redux/INIT"+Zr(),REPLACE:"@@redux/REPLACE"+Zr(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Zr()}};function Ll(e){if(typeof e!="object"||e===null)return!1;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return Object.getPrototypeOf(e)===o}function Vr(e,o,r){var n;if(typeof o=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(J(0));if(typeof o=="function"&&typeof r>"u"&&(r=o,o=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(J(1));return r(Vr)(e,o)}if(typeof e!="function")throw new Error(J(2));var a=e,i=o,l=[],d=l,p=!1;function f(){d===l&&(d=l.slice())}function y(){if(p)throw new Error(J(3));return i}function h(v){if(typeof v!="function")throw new Error(J(4));if(p)throw new Error(J(5));var R=!0;return f(),d.push(v),function(){if(R){if(p)throw new Error(J(6));R=!1,f();var N=d.indexOf(v);d.splice(N,1),l=null}}}function m(v){if(!Ll(v))throw new Error(J(7));if(typeof v.type>"u")throw new Error(J(8));if(p)throw new Error(J(9));try{p=!0,i=a(i,v)}finally{p=!1}for(var R=l=d,E=0;E<R.length;E++){var N=R[E];N()}return v}function b(v){if(typeof v!="function")throw new Error(J(10));a=v,m({type:zo.REPLACE})}function g(){var v,R=h;return v={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(J(11));function P(){N.next&&N.next(y())}P();var B=R(P);return{unsubscribe:B}}},v[lc]=function(){return this},v}return m({type:zo.INIT}),n={dispatch:m,subscribe:h,getState:y,replaceReducer:b},n[lc]=g,n}function Pl(e){Object.keys(e).forEach(function(o){var r=e[o],n=r(void 0,{type:zo.INIT});if(typeof n>"u")throw new Error(J(12));if(typeof r(void 0,{type:zo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(J(13))})}function sc(e){for(var o=Object.keys(e),r={},n=0;n<o.length;n++){var a=o[n];typeof e[a]=="function"&&(r[a]=e[a])}var i=Object.keys(r),l,d;try{Pl(r)}catch(p){d=p}return function(f,y){if(f===void 0&&(f={}),d)throw d;if(0)var h;for(var m=!1,b={},g=0;g<i.length;g++){var v=i[g],R=r[v],E=f[v],N=R(E,y);if(typeof N>"u"){var P=y&&y.type;throw new Error(J(14))}b[v]=N,m=m||N!==E}return m=m||i.length!==Object.keys(f).length,m?b:f}}function Be(){for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];return o.length===0?function(n){return n}:o.length===1?o[0]:o.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function dc(){for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(J(15))},l={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},d=o.map(function(p){return p(l)});return i=Be.apply(void 0,d)(a.dispatch),Kr(Kr({},a),{},{dispatch:i})}}}function fc(e){var o=function(n){var a=n.dispatch,i=n.getState;return function(l){return function(d){return typeof d=="function"?d(a,i,e):l(d)}}};return o}var pc=fc();pc.withExtraArgument=fc;var Yr=pc;var gc=function(){var e=function(o,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},e(o,r)};return function(o,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(o,r);function n(){this.constructor=o}o.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Il=function(e,o){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,l;return l={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function d(f){return function(y){return p([f,y])}}function p(f){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,a&&(i=f[0]&2?a.return:f[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,f[1])).done)return i;switch(a=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++,a=f[1],f=[0];continue;case 7:f=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]<i[3])){r.label=f[1];break}if(f[0]===6&&r.label<i[1]){r.label=i[1],i=f;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(f);break}i[2]&&r.ops.pop(),r.trys.pop();continue}f=o.call(e,r)}catch(y){f=[6,y],a=0}finally{n=i=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},Te=function(e,o){for(var r=0,n=o.length,a=e.length;r<n;r++,a++)e[a]=o[r];return e},kl=Object.defineProperty,Bl=Object.defineProperties,Tl=Object.getOwnPropertyDescriptors,uc=Object.getOwnPropertySymbols,$l=Object.prototype.hasOwnProperty,_l=Object.prototype.propertyIsEnumerable,yc=function(e,o,r){return o in e?kl(e,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[o]=r},Qt=function(e,o){for(var r in o||(o={}))$l.call(o,r)&&yc(e,r,o[r]);if(uc)for(var n=0,a=uc(o);n<a.length;n++){var r=a[n];_l.call(o,r)&&yc(e,r,o[r])}return e},qr=function(e,o){return Bl(e,Tl(o))},Wl=function(e,o,r){return new Promise(function(n,a){var i=function(p){try{d(r.next(p))}catch(f){a(f)}},l=function(p){try{d(r.throw(p))}catch(f){a(f)}},d=function(p){return p.done?n(p.value):Promise.resolve(p.value).then(i,l)};d((r=r.apply(e,o)).next())})};var Dl=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Be:Be.apply(null,arguments)},zm=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function zl(e){if(typeof e!="object"||e===null)return!1;var o=Object.getPrototypeOf(e);if(o===null)return!0;for(var r=o;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return o===r}var Ml=function(e){gc(o,e);function o(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=e.apply(this,r)||this;return Object.setPrototypeOf(a,o.prototype),a}return Object.defineProperty(o,Symbol.species,{get:function(){return o},enumerable:!1,configurable:!0}),o.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},o.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(o.bind.apply(o,Te([void 0],r[0].concat(this)))):new(o.bind.apply(o,Te([void 0],r.concat(this))))},o}(Array),Ul=function(e){gc(o,e);function o(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=e.apply(this,r)||this;return Object.setPrototypeOf(a,o.prototype),a}return Object.defineProperty(o,Symbol.species,{get:function(){return o},enumerable:!1,configurable:!0}),o.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},o.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(o.bind.apply(o,Te([void 0],r[0].concat(this)))):new(o.bind.apply(o,Te([void 0],r.concat(this))))},o}(Array);function Qr(e){return St(e)?Do(e,function(){}):e}function Hl(e){return typeof e=="boolean"}function Gl(){return function(o){return Fl(o)}}function Fl(e){e===void 0&&(e={});var o=e.thunk,r=o===void 0?!0:o,n=e.immutableCheck,a=n===void 0?!0:n,i=e.serializableCheck,l=i===void 0?!0:i,d=new Ml;if(r&&(Hl(r)?d.push(Yr):d.push(Yr.withExtraArgument(r.extraArgument))),0){if(a)var p;if(l)var f}return d}var Xr=!0;function bc(e){var o=Gl(),r=e||{},n=r.reducer,a=n===void 0?void 0:n,i=r.middleware,l=i===void 0?o():i,d=r.devTools,p=d===void 0?!0:d,f=r.preloadedState,y=f===void 0?void 0:f,h=r.enhancers,m=h===void 0?void 0:h,b;if(typeof a=="function")b=a;else if(zl(a))b=sc(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var g=l;if(typeof g=="function"&&(g=g(o),!Xr&&!Array.isArray(g)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Xr&&g.some(function(B){return typeof B!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=dc.apply(void 0,g),R=Be;p&&(R=Dl(Qt({trace:!Xr},typeof p=="object"&&p)));var E=new Ul(v),N=E;Array.isArray(m)?N=Te([v],m):typeof m=="function"&&(N=m(E));var P=R.apply(void 0,N);return Vr(b,y,P)}function te(e,o){function r(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(o){var i=o.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return Qt(Qt({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=function(){return""+e},r.type=e,r.match=function(n){return n.type===e},r}function xc(e){var o={},r=[],n,a={addCase:function(i,l){var d=typeof i=="string"?i:i.type;if(d in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[d]=l,a},addMatcher:function(i,l){return r.push({matcher:i,reducer:l}),a},addDefaultCase:function(i){return n=i,a}};return e(a),[o,r,n]}function jl(e){return typeof e=="function"}function Kl(e,o,r,n){r===void 0&&(r=[]);var a=typeof o=="function"?xc(o):[o,r,n],i=a[0],l=a[1],d=a[2],p;if(jl(e))p=function(){return Qr(e())};else{var f=Qr(e);p=function(){return f}}function y(h,m){h===void 0&&(h=p());var b=Te([i[m.type]],l.filter(function(g){var v=g.matcher;return v(m)}).map(function(g){var v=g.reducer;return v}));return b.filter(function(g){return!!g}).length===0&&(b=[d]),b.reduce(function(g,v){if(v)if(Wt(g)){var R=g,E=v(R,m);return E===void 0?g:E}else{if(St(g))return Do(g,function(N){return v(N,m)});var E=v(g,m);if(E===void 0){if(g===null)return g;throw Error("A case reducer on a non-draftable value must not return undefined")}return E}return g},h)}return y.getInitialState=p,y}function Zl(e,o){return e+"/"+o}function vc(e){var o=e.name;if(!o)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof e.initialState=="function"?e.initialState:Qr(e.initialState),n=e.reducers||{},a=Object.keys(n),i={},l={},d={};a.forEach(function(y){var h=n[y],m=Zl(o,y),b,g;"reducer"in h?(b=h.reducer,g=h.prepare):b=h,i[y]=b,l[m]=b,d[y]=g?te(m,g):te(m)});function p(){var y=typeof e.extraReducers=="function"?xc(e.extraReducers):[e.extraReducers],h=y[0],m=h===void 0?{}:h,b=y[1],g=b===void 0?[]:b,v=y[2],R=v===void 0?void 0:v,E=Qt(Qt({},m),l);return Kl(r,function(N){for(var P in E)N.addCase(P,E[P]);for(var B=0,T=g;B<T.length;B++){var pt=T[B];N.addMatcher(pt.matcher,pt.reducer)}R&&N.addDefaultCase(R)})}var f;return{name:o,reducer:function(y,h){return f||(f=p()),f(y,h)},actions:d,caseReducers:i,getInitialState:function(){return f||(f=p()),f.getInitialState()}}}var Vl="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Yl=function(e){e===void 0&&(e=21);for(var o="",r=e;r--;)o+=Vl[Math.random()*64|0];return o},ql=["name","message","stack","code"],Jr=function(){function e(o,r){this.payload=o,this.meta=r}return e}(),hc=function(){function e(o,r){this.payload=o,this.meta=r}return e}(),Xl=function(e){if(typeof e=="object"&&e!==null){for(var o={},r=0,n=ql;r<n.length;r++){var a=n[r];typeof e[a]=="string"&&(o[a]=e[a])}return o}return{message:String(e)}},Gm=function(){function e(o,r,n){var a=te(o+"/fulfilled",function(y,h,m,b){return{payload:y,meta:qr(Qt({},b||{}),{arg:m,requestId:h,requestStatus:"fulfilled"})}}),i=te(o+"/pending",function(y,h,m){return{payload:void 0,meta:qr(Qt({},m||{}),{arg:h,requestId:y,requestStatus:"pending"})}}),l=te(o+"/rejected",function(y,h,m,b,g){return{payload:b,error:(n&&n.serializeError||Xl)(y||"Rejected"),meta:qr(Qt({},g||{}),{arg:m,requestId:h,rejectedWithValue:!!b,requestStatus:"rejected",aborted:y?.name==="AbortError",condition:y?.name==="ConditionError"})}}),d=!1,p=typeof AbortController<"u"?AbortController:function(){function y(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return y.prototype.abort=function(){},y}();function f(y){return function(h,m,b){var g=n?.idGenerator?n.idGenerator(y):Yl(),v=new p,R,E=!1;function N(B){R=B,v.abort()}var P=function(){return Wl(this,null,function(){var B,T,pt,zt,er,Mt,it;return Il(this,function(ut){switch(ut.label){case 0:return ut.trys.push([0,4,,5]),zt=(B=n?.condition)==null?void 0:B.call(n,y,{getState:m,extra:b}),Ql(zt)?[4,zt]:[3,2];case 1:zt=ut.sent(),ut.label=2;case 2:if(zt===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return E=!0,er=new Promise(function(ct,ee){return v.signal.addEventListener("abort",function(){return ee({name:"AbortError",message:R||"Aborted"})})}),h(i(g,y,(T=n?.getPendingMeta)==null?void 0:T.call(n,{requestId:g,arg:y},{getState:m,extra:b}))),[4,Promise.race([er,Promise.resolve(r(y,{dispatch:h,getState:m,extra:b,requestId:g,signal:v.signal,abort:N,rejectWithValue:function(ct,ee){return new Jr(ct,ee)},fulfillWithValue:function(ct,ee){return new hc(ct,ee)}})).then(function(ct){if(ct instanceof Jr)throw ct;return ct instanceof hc?a(ct.payload,g,y,ct.meta):a(ct,g,y)})])];case 3:return pt=ut.sent(),[3,5];case 4:return Mt=ut.sent(),pt=Mt instanceof Jr?l(null,g,y,Mt.payload,Mt.meta):l(Mt,g,y),[3,5];case 5:return it=n&&!n.dispatchConditionRejection&&l.match(pt)&&pt.meta.condition,it||h(pt),[2,pt]}})})}();return Object.assign(P,{abort:N,requestId:g,arg:y,unwrap:function(){return P.then(Jl)}})}}return Object.assign(f,{pending:i,rejected:l,fulfilled:a,typePrefix:o})}return e.withTypes=function(){return e},e}();function Jl(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Ql(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Sc="listener",Oc="completed",Cc="cancelled",Fm="task-"+Cc,jm="task-"+Oc,Km=Sc+"-"+Cc,Zm=Sc+"-"+Oc;var tn="listenerMiddleware";var Vm=te(tn+"/add"),Ym=te(tn+"/removeAll"),qm=te(tn+"/remove");var mc,Xm=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(mc||(mc=Promise.resolve())).then(e).catch(function(o){return setTimeout(function(){throw o},0)})},ts=function(e){return function(o){setTimeout(o,e)}},Jm=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:ts(10);ec();function es(e,o){return class extends e{constructor(){super(...arguments),this.eventBus=o??document.createElement("span")}addEventListener(r,n,a){this.eventBus.addEventListener(r,n,a)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,a){this.eventBus.removeEventListener(r,n,a)}}}var Mo=class extends es(Object){};window.ftReduxStores||(window.ftReduxStores={});var wc=class e extends Mo{static get(o){var r;let n=typeof o=="string"?o:o.name,a=typeof o=="string"?void 0:o,i=window.ftReduxStores[n];if(Qe(i))return i;if(a==null)return;let l=vc({...a,reducers:(r=a.reducers)!==null&&r!==void 0?r:{}}),d=bc({reducer:(p,f)=>f.type==="CLEAR_FT_REDUX_STORE"?l.getInitialState():typeof f.type=="string"&&f.type.startsWith("DEFAULT_VALUE_SETTER__")?{...p,...f.overwrites}:l.reducer(p,f)});return window.ftReduxStores[a.name]=new e(l,d,a.eventBus)}constructor(o,r,n){super(),this.reduxSlice=o,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Po;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,l,d)=>{let p=l,f=i[p];return f?(...y)=>{let h=f(...y.map(a));return this.reduxStore.dispatch(h),h}:y=>{this.setState({[p]:a(y)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(o){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(o).join("_"),overwrites:o})}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(o){throw new Error("Not implemented yet.")}subscribe(o){return this.reduxStore.subscribe(o)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Fo=S(k());var Uo=class extends Zt{async listMySearches(){let o=L.getState().session;return o?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(o.profile.userId),5*60*1e3):[]}};var Ho=class extends Zt{async listMyBookmarks(){let o=L.getState().session;return o?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(o.profile.userId),5*60*1e3):[]}};var rs="ft-user-assets",Go=Fo.FtReduxStore.get({name:rs,initialState:{savedSearches:void 0,bookmarks:void 0}}),en=class{constructor(){this.currentSession=L.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Ho,this.savedSearchesService=new Uo,L.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var o;let{session:r}=L.getState();(0,Fo.deepEqual)((o=this.currentSession)===null||o===void 0?void 0:o.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Go.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Go.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let o=await this.savedSearchesService.listMySearches();Go.actions.savedSearches(o)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var o;if(this.bookmarksAreUsed){let r=!((o=this.currentSession)===null||o===void 0)&&o.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Go.actions.bookmarks(r)}}},Bg=new en;var on=class{addCommand(o,r=!1){L.commands.add(o,r)}consumeCommand(o){return L.commands.consume(o)}};window.FluidTopicsAppInfoStoreService=new on;var Ec=S(k()),rn=class{highlightHtml(o,r,n){(0,Ec.highlightHtml)(o,r,n)}};window.FluidTopicsHighlightHtmlService=new rn;var Nc=S(k());var nn=class{isDate(o){var r,n,a,i;return(i=(a=((n=(r=L.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(d=>d.key===o))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(o,r){var n,a,i;return Nc.DateFormatter.format(o,(n=r?.locale)!==null&&n!==void 0?n:L.getState().uiLocale,(a=r?.longFormat)!==null&&a!==void 0?a:!1,(i=r?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new nn;var ns=S(k());(0,Ac.customElement)("ft-app-context")(H);var Lc=S(V()),as=function(e,o,r,n){var a=arguments.length,i=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(i=(a<3?l(i):a>3?l(o,r,i):l(o,r))||i);return a>3&&i&&Object.defineProperty(o,r,i),i},an=Symbol("i18nAttributes"),cn=Symbol("i18nListAttributes"),jo=Symbol("i18nProperties"),ln=Symbol("i18nManualContexts"),ao=Symbol("i18nUnsubs");function Vo(e){var o,r;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[o]=new Map,this[r]=new Map}get i18nService(){return this.useCustomMessageContexts?ki:se}i18n(i,l,...d){var p;if(typeof i=="string")return this.i18nService.resolveMessage(i,l,...d);let f=(p=i.args)!==null&&p!==void 0?p:i.argsProvider?i.argsProvider(this):[];return this.i18nService.resolveMessage(i.context,i.key,...f)}onI18nUpdate(i){var l,d,p;(l=this[an])===null||l===void 0||l.forEach((f,y)=>{let h=this.getI18nAttributeValue(y);h&&(this[y]=this.getI18nAttributeMessage(h,f,i))}),(d=this[cn])===null||d===void 0||d.forEach((f,y)=>{let h=this.getI18nListAttributeValues(y);this[y]=h?.map(m=>this.getI18nAttributeMessage(m,f,i))}),(p=this[jo])===null||p===void 0||p.forEach((f,y)=>{f.context.toLowerCase()===i.toLowerCase()&&(this[y]=this.i18n(f))}),setTimeout(()=>this.requestUpdate(),0)}buildI18nAttributeMessage(i,l){return{...i,message:this.i18n({context:i.context,key:i.key,...l})}}getI18nAttributeMessage(i,l,d){var p;let f=!d||((p=i.context)===null||p===void 0?void 0:p.toLowerCase())===d.toLowerCase();return i.context&&i.key&&f?this.buildI18nAttributeMessage(i,l):i}update(i){var l,d,p;super.update(i),(l=this[an])===null||l===void 0||l.forEach((f,y)=>{let h=this.getI18nAttributeValue(y);h?.context&&h.key&&(i.has(y)||f.argsProvider!=null)&&(this.addI18nContextIfNeeded(h,i,y),this[y]=this.getI18nAttributeMessage(h,f))}),(d=this[cn])===null||d===void 0||d.forEach((f,y)=>{let h=this.getI18nListAttributeValues(y);(i.has(y)||f.argsProvider!=null)&&(this[y]=h?.map(m=>(this.addI18nContextIfNeeded(m,i,y),this.getI18nAttributeMessage(m,f))))}),(p=this[jo])===null||p===void 0||p.forEach((f,y)=>{f.argsProvider!=null&&(this[y]=this.i18n(f))})}getI18nAttributeValue(i){return this[i]}getI18nListAttributeValues(i){return this[i]}addI18nContextIfNeeded(i,l,d){i.context&&i.key&&l.has(d)&&this.addI18nContext(i.context)}addI18nMessagesAndSubscribe(i,l){i=i.toLowerCase(),this[ao].has(i)||this[ao].set(i,this.i18nService.subscribe(i,()=>this.onI18nUpdate(i))),this.i18nService.prepareContext(i,l??{}),this.onI18nUpdate(i)}connectedCallback(){var i,l,d,p,f,y;super.connectedCallback(),new Set([...(l=(i=this[jo])===null||i===void 0?void 0:i.values())!==null&&l!==void 0?l:[],...[...(p=(d=this[an])===null||d===void 0?void 0:d.keys())!==null&&p!==void 0?p:[]].map(h=>this.getI18nAttributeValue(h)),...[...(y=(f=this[cn])===null||f===void 0?void 0:f.keys())!==null&&y!==void 0?y:[]].flatMap(h=>this.getI18nListAttributeValues(h))].map(h=>h?.context)).forEach(h=>h&&this.addI18nMessages(h)),this[ln].forEach((h,m)=>{this.addI18nMessages(m,h)})}addI18nMessages(i,l){this[ln].set(i,l??{}),this.addI18nMessagesAndSubscribe(i,l)}addI18nContext(i,l){this.addI18nMessages(typeof i=="string"?i:i.name,l)}disconnectedCallback(){super.disconnectedCallback(),this[ao].forEach(i=>i()),this[ao].clear()}}return o=ln,r=ao,as([(0,Lc.property)({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}var Rc=class extends Vo(Zo.FtLitElement){},Ko=class extends Vo(Zo.FtLitElementRedux){};var io=function(e,o,r,n){var a=arguments.length,i=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(i=(a<3?l(i):a>3?l(o,r,i):l(o,r))||i);return a>3&&i&&Object.defineProperty(o,r,i),i},Ot=class extends Ko{constructor(){super(),this.editorMode=!1,this.addStore(L)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Yo.nothing:Yo.html`
|
|
1145
1145
|
<span class="ft-i18n">
|
|
1146
1146
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
1147
1147
|
</span>
|
package/build/ft-modal.min.js
CHANGED
|
@@ -666,7 +666,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
666
666
|
</div>
|
|
667
667
|
</div>
|
|
668
668
|
</div>
|
|
669
|
-
`}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(o=>e.has(o))&&this.visible&&this.positionTooltip()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(o=>o.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",na(this.slottedElement,this.tooltip,this.position).then(({x:e,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${o}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",e=>{e.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(e,o){return Math.max(e,Math.min(0,-o))}};te.elementDefinitions={"ft-typography":ye};te.styles=el;xe([A()],te.prototype,"text",void 0);xe([A({type:Boolean})],te.prototype,"manual",void 0);xe([A({type:Boolean})],te.prototype,"inline",void 0);xe([A({type:Number})],te.prototype,"delay",void 0);xe([A()],te.prototype,"position",void 0);xe([qo()],te.prototype,"slotNodes",void 0);xe([ae(".ft-tooltip--container")],te.prototype,"container",void 0);xe([ae(".ft-tooltip")],te.prototype,"tooltip",void 0);xe([ae(".ft-tooltip--content")],te.prototype,"tooltipContent",void 0);xe([de()],te.prototype,"visible",void 0);xe([Ut({passive:!0})],te.prototype,"onTouch",null);xe([Ut({passive:!0})],te.prototype,"onHover",null);xe([Ut({passive:!0})],te.prototype,"onOut",null);xe([Ut({passive:!0})],te.prototype,"onClick",null);oe("ft-tooltip")(te);var Je;(function(t){t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.BOOKS="",t.MENU="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.HOME="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.EXPORT="",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.USER="",t.EXTLINK="",t.CALENDAR="",t.OFFLINE="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.STAR_PLAIN="",t.TOPICS="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN="",t.ADMIN_KHUB="",t.ADMIN_THEME="",t.ADMIN_USERS="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.INFO="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.FACET_HAS_DESCENDANT="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.THIN_ARROW="",t.SIGN_IN="",t.LOGOUT="",t.TRANSLATE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.ARTICLE="",t.COLUMNS="",t.ANALYTICS="",t.COLLECTIONS="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SEARCH_IN_PUBLICATION="",t.COPY_TO_CLIPBOARD="",t.SHARED_PBK="",t.ATTACHMENTS="",t.STRIPE_ARROW_LEFT="",t.STRIPE_ARROW_RIGHT="",t.FILTERS="",t.DOT="",t.MINUS="",t.PLUS="",t.MAILS_AND_NOTIFICATIONS="",t.SAVE="",t.LOCKER="",t.ADMIN_INTEGRATION="",t.SYNC="",t.TAG="",t.BOOK_PLAIN="",t.UPLOAD="",t.ONLINE="",t.TAG_PLAIN="",t.ACCOUNT_SETTINGS="",t.PRINT="",t.DEFAULT_ROLES="",t.SHORTCUT_MENU="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.PAUSE="",t.PLAY="",t.ADMIN_PORTAL="",t.STAR="",t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.FEEDBACK_PLAIN="",t.RATE_PLAIN="",t.RATE="",t.OFFLINE_SETTINGS="",t.MY_COLLECTIONS="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.RESET="",t.MY_LIBRARY="",t.UNSTRUCTURED_DOC="",t.CONTEXTUAL="",t.THIN_ARROW_UP="",t.ARROW_RIGHT_TO_LINE="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_STACKED="",t.CHART_BAR_GROUPED="",t.EYE_SLASH="",t.X_MARK="",t.EXPAND_WIDE="",t.PIP="",t.PIP_WIDE="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.EXTLINK_LIGHT="",t.CLONE="",t.CLONE_LINK_SIMPLE="",t.CHART_BAR_NORMALIZED="",t.CONSUMER="",t.OCTAGON_XMARK="",t.HOURGLASS_HALF="",t.CLOCK="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES="",t.PAPER_PLANE="",t.CIRCLE_STOP="",t.ARROW_ROTATE_RIGHT="",t.ARROWS_ROTATE="",t.ALIGN_RIGHT="",t.FORMAT_CLEAR="",t.ALIGN_CENTER="",t.ALIGN_LEFT="",t.PALETTE="",t.BOLD="",t.ITALIC="",t.UNDERLINE="",t.STRIKETHROUGH="",t.LINK_SIMPLE_SLASH="",t.LINK_SIMPLE="",t.ROUTE="",t.CIRCLE_USER_SLASH="",t.CIRCLE_USER_CHECK="",t.LIST_MAGNIFYING_GLASS="",t.MEDAL="",t.THUMBS_UP_THUMBS_DOWN_SOLID="",t.ARROW_TURN_DOWN_RIGHT="",t.FLASK="",t.LOCK_KEYHOLE_OPEN_SOLID="",t.HOURGLASS_END="",t.CIRCLE_QUESTION="",t.GRIP_LINES_SOLID="",t.TRANSLATE_SPARKLE_SOLID="",t.CODE="",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",t.PAPER_PLANE_SLASH="",t.COMPRESS="",t.EXPAND="",t.ARROW_ROTATE_LEFT="",t.EYE="",t.SHARE="󨃱",t.MOBILE_SMALL=""})(Je||(Je={}));var _;(function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""})(_||(_={}));var X0=new Map([...["abw"].map(t=>[t,_.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,_.AUDIO]),...["avi"].map(t=>[t,_.AVI]),...["chm","xhs"].map(t=>[t,_.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,_.CODE]),...["csv"].map(t=>[t,_.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,_.DITA]),...["epub"].map(t=>[t,_.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,_.EXCEL]),...["flac"].map(t=>[t,_.FLAC]),...["gif"].map(t=>[t,_.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,_.GZIP]),...["html","htm","xhtml"].map(t=>[t,_.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,_.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,_.JPEG]),...["json"].map(t=>[t,_.JSON]),...["m4a","m4p"].map(t=>[t,_.M4A]),...["mov","qt"].map(t=>[t,_.MOV]),...["mp3"].map(t=>[t,_.MP3]),...["mp4","m4v"].map(t=>[t,_.MP4]),...["ogg","oga"].map(t=>[t,_.OGG]),...["pdf","ps"].map(t=>[t,_.PDF]),...["png"].map(t=>[t,_.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,_.POWERPOINT]),...["rar"].map(t=>[t,_.RAR]),...["stp"].map(t=>[t,_.STP]),...["txt","rtf","md","mdown"].map(t=>[t,_.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,_.VIDEO]),...["wav"].map(t=>[t,_.WAV]),...["wma"].map(t=>[t,_.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,_.WORD]),...["xml","xsl","rdf"].map(t=>[t,_.XML]),...["yaml","yml","x-yaml"].map(t=>[t,_.YAML]),...["zip"].map(t=>[t,_.ZIP])]);var J0={[_.ABW]:"#91ABC6",[_.AUDIO]:"#1795E3",[_.AVI]:"#E63324",[_.CHM]:"#71C3EB",[_.CODE]:"#71C3EB",[_.CSV]:"#1F7345",[_.DITA]:"#71C3EB",[_.EPUB]:"#85B926",[_.EXCEL]:"#1F7345",[_.FLAC]:"#1795E3",[_.GIF]:"#59B031",[_.GZIP]:"#F8AB36",[_.HTML]:"#71C3EB",[_.IMAGE]:"#59B031",[_.JPEG]:"#59B031",[_.JSON]:"#71C3EB",[_.M4A]:"#1795E3",[_.MOV]:"#E63324",[_.MP3]:"#1795E3",[_.MP4]:"#E63324",[_.OGG]:"#1795E3",[_.PDF]:"#E44948",[_.PNG]:"#59B031",[_.POWERPOINT]:"#B54A2B",[_.RAR]:"#F8AB36",[_.STP]:"#3764B1",[_.TEXT]:"#3162AB",[_.UNKNOWN]:"#999999",[_.VIDEO]:"#E63324",[_.WAV]:"#1795E3",[_.WMA]:"#1795E3",[_.WORD]:"#3162AB",[_.XML]:"#71C3EB",[_.YAML]:"#71C3EB",[_.ZIP]:"#F8AB36"};var ze;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(ze||(ze={}));var Wr=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},me=class extends G{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=j}render(){let e=this.variant&&Object.values(ze).includes(this.variant)?this.variant:ze.fluid_topics,o=e!==ze.material||!!this.value;return V`
|
|
669
|
+
`}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(o=>e.has(o))&&this.visible&&this.positionTooltip()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(o=>o.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",na(this.slottedElement,this.tooltip,this.position).then(({x:e,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${o}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",e=>{e.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(e,o){return Math.max(e,Math.min(0,-o))}};te.elementDefinitions={"ft-typography":ye};te.styles=el;xe([A()],te.prototype,"text",void 0);xe([A({type:Boolean})],te.prototype,"manual",void 0);xe([A({type:Boolean})],te.prototype,"inline",void 0);xe([A({type:Number})],te.prototype,"delay",void 0);xe([A()],te.prototype,"position",void 0);xe([qo()],te.prototype,"slotNodes",void 0);xe([ae(".ft-tooltip--container")],te.prototype,"container",void 0);xe([ae(".ft-tooltip")],te.prototype,"tooltip",void 0);xe([ae(".ft-tooltip--content")],te.prototype,"tooltipContent",void 0);xe([de()],te.prototype,"visible",void 0);xe([Ut({passive:!0})],te.prototype,"onTouch",null);xe([Ut({passive:!0})],te.prototype,"onHover",null);xe([Ut({passive:!0})],te.prototype,"onOut",null);xe([Ut({passive:!0})],te.prototype,"onClick",null);oe("ft-tooltip")(te);var Je;(function(t){t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.BOOKS="",t.MENU="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.HOME="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.EXPORT="",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.USER="",t.EXTLINK="",t.CALENDAR="",t.OFFLINE="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.STAR_PLAIN="",t.TOPICS="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN="",t.ADMIN_KHUB="",t.ADMIN_THEME="",t.ADMIN_USERS="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.INFO="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.FACET_HAS_DESCENDANT="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.THIN_ARROW="",t.SIGN_IN="",t.LOGOUT="",t.TRANSLATE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.ARTICLE="",t.COLUMNS="",t.ANALYTICS="",t.COLLECTIONS="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SEARCH_IN_PUBLICATION="",t.COPY_TO_CLIPBOARD="",t.SHARED_PBK="",t.ATTACHMENTS="",t.STRIPE_ARROW_LEFT="",t.STRIPE_ARROW_RIGHT="",t.FILTERS="",t.DOT="",t.MINUS="",t.PLUS="",t.MAILS_AND_NOTIFICATIONS="",t.SAVE="",t.LOCKER="",t.ADMIN_INTEGRATION="",t.SYNC="",t.TAG="",t.BOOK_PLAIN="",t.UPLOAD="",t.ONLINE="",t.TAG_PLAIN="",t.ACCOUNT_SETTINGS="",t.PRINT="",t.DEFAULT_ROLES="",t.SHORTCUT_MENU="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.PAUSE="",t.PLAY="",t.ADMIN_PORTAL="",t.STAR="",t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.FEEDBACK_PLAIN="",t.RATE_PLAIN="",t.RATE="",t.OFFLINE_SETTINGS="",t.MY_COLLECTIONS="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.RESET="",t.MY_LIBRARY="",t.UNSTRUCTURED_DOC="",t.CONTEXTUAL="",t.THIN_ARROW_UP="",t.ARROW_RIGHT_TO_LINE="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_STACKED="",t.CHART_BAR_GROUPED="",t.EYE_SLASH="",t.X_MARK="",t.EXPAND_WIDE="",t.PIP="",t.PIP_WIDE="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.EXTLINK_LIGHT="",t.CLONE="",t.CLONE_LINK_SIMPLE="",t.CHART_BAR_NORMALIZED="",t.CONSUMER="",t.OCTAGON_XMARK="",t.HOURGLASS_HALF="",t.CLOCK="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES="",t.PAPER_PLANE="",t.CIRCLE_STOP="",t.ARROW_ROTATE_RIGHT="",t.ARROWS_ROTATE="",t.ALIGN_RIGHT="",t.FORMAT_CLEAR="",t.ALIGN_CENTER="",t.ALIGN_LEFT="",t.PALETTE="",t.BOLD="",t.ITALIC="",t.UNDERLINE="",t.STRIKETHROUGH="",t.LINK_SIMPLE_SLASH="",t.LINK_SIMPLE="",t.ROUTE="",t.CIRCLE_USER_SLASH="",t.CIRCLE_USER_CHECK="",t.LIST_MAGNIFYING_GLASS="",t.MEDAL="",t.THUMBS_UP_THUMBS_DOWN_SOLID="",t.ARROW_TURN_DOWN_RIGHT="",t.FLASK="",t.LOCK_KEYHOLE_OPEN_SOLID="",t.HOURGLASS_END="",t.CIRCLE_QUESTION="",t.GRIP_LINES_SOLID="",t.TRANSLATE_SPARKLE_SOLID="",t.CODE="",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",t.PAPER_PLANE_SLASH="",t.COMPRESS="",t.EXPAND="",t.ARROW_ROTATE_LEFT="",t.EYE="",t.SHARE="󨃱",t.MOBILE_SMALL="",t.SPARKLES="",t.HAND_SOLID=""})(Je||(Je={}));var _;(function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""})(_||(_={}));var X0=new Map([...["abw"].map(t=>[t,_.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,_.AUDIO]),...["avi"].map(t=>[t,_.AVI]),...["chm","xhs"].map(t=>[t,_.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,_.CODE]),...["csv"].map(t=>[t,_.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,_.DITA]),...["epub"].map(t=>[t,_.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,_.EXCEL]),...["flac"].map(t=>[t,_.FLAC]),...["gif"].map(t=>[t,_.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,_.GZIP]),...["html","htm","xhtml"].map(t=>[t,_.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,_.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,_.JPEG]),...["json"].map(t=>[t,_.JSON]),...["m4a","m4p"].map(t=>[t,_.M4A]),...["mov","qt"].map(t=>[t,_.MOV]),...["mp3"].map(t=>[t,_.MP3]),...["mp4","m4v"].map(t=>[t,_.MP4]),...["ogg","oga"].map(t=>[t,_.OGG]),...["pdf","ps"].map(t=>[t,_.PDF]),...["png"].map(t=>[t,_.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,_.POWERPOINT]),...["rar"].map(t=>[t,_.RAR]),...["stp"].map(t=>[t,_.STP]),...["txt","rtf","md","mdown"].map(t=>[t,_.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,_.VIDEO]),...["wav"].map(t=>[t,_.WAV]),...["wma"].map(t=>[t,_.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,_.WORD]),...["xml","xsl","rdf"].map(t=>[t,_.XML]),...["yaml","yml","x-yaml"].map(t=>[t,_.YAML]),...["zip"].map(t=>[t,_.ZIP])]);var J0={[_.ABW]:"#91ABC6",[_.AUDIO]:"#1795E3",[_.AVI]:"#E63324",[_.CHM]:"#71C3EB",[_.CODE]:"#71C3EB",[_.CSV]:"#1F7345",[_.DITA]:"#71C3EB",[_.EPUB]:"#85B926",[_.EXCEL]:"#1F7345",[_.FLAC]:"#1795E3",[_.GIF]:"#59B031",[_.GZIP]:"#F8AB36",[_.HTML]:"#71C3EB",[_.IMAGE]:"#59B031",[_.JPEG]:"#59B031",[_.JSON]:"#71C3EB",[_.M4A]:"#1795E3",[_.MOV]:"#E63324",[_.MP3]:"#1795E3",[_.MP4]:"#E63324",[_.OGG]:"#1795E3",[_.PDF]:"#E44948",[_.PNG]:"#59B031",[_.POWERPOINT]:"#B54A2B",[_.RAR]:"#F8AB36",[_.STP]:"#3764B1",[_.TEXT]:"#3162AB",[_.UNKNOWN]:"#999999",[_.VIDEO]:"#E63324",[_.WAV]:"#1795E3",[_.WMA]:"#1795E3",[_.WORD]:"#3162AB",[_.XML]:"#71C3EB",[_.YAML]:"#71C3EB",[_.ZIP]:"#F8AB36"};var ze;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(ze||(ze={}));var Wr=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},me=class extends G{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=j}render(){let e=this.variant&&Object.values(ze).includes(this.variant)?this.variant:ze.fluid_topics,o=e!==ze.material||!!this.value;return V`
|
|
670
670
|
<i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
|
|
671
671
|
${en(this.resolvedIcon)}
|
|
672
672
|
<slot ?hidden=${o}></slot>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-modal",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.43",
|
|
4
4
|
"description": "Modal for Design System V2",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-wc-utils": "1.2.
|
|
22
|
+
"@fluid-topics/ft-wc-utils": "1.2.43",
|
|
23
23
|
"lit": "3.1.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@fluid-topics/ft-wc-test-utils": "1.2.
|
|
26
|
+
"@fluid-topics/ft-wc-test-utils": "1.2.43"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "889e013d70bd9b29542bd5ae16a574f3de6f1aac"
|
|
29
29
|
}
|