@fluid-topics/ft-reader-search-in-document 1.2.7 → 1.2.9
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.
|
@@ -215,7 +215,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
215
215
|
.ft-typography {
|
|
216
216
|
vertical-align: inherit;
|
|
217
217
|
}
|
|
218
|
-
`,Kc=[Object.keys(Oo).map(t=>kc(t))]});var Zc,
|
|
218
|
+
`,Kc=[Object.keys(Oo).map(t=>kc(t))]});var Zc,Ur,J,qc,Fr=f(()=>{"use strict";Zc=b(B()),Ur=b(N()),J={color:Ur.FtCssVariableFactory.extend("--ft-loader-color","",Ur.designSystemVariables.colorPrimary),size:Ur.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},qc=Zc.css`
|
|
219
219
|
:host {
|
|
220
220
|
line-height: 0;
|
|
221
221
|
}
|
|
@@ -284,7 +284,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
284
284
|
transform: translate(calc(0.35 * ${J.size}), 0);
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
|
-
`});var Yc,it,Ce,Qc,
|
|
287
|
+
`});var Yc,it,Ce,Qc,Wr=f(()=>{"use strict";Yc=b(B()),it=b(N()),Ce={size:it.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:it.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",it.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:it.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",it.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:it.FtCssVariableFactory.extend("--ft-icon-material-font-family","",it.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:it.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Qc=Yc.css`
|
|
288
288
|
:host, i.ft-icon {
|
|
289
289
|
display: inline-flex;
|
|
290
290
|
align-items: center;
|
|
@@ -332,7 +332,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
332
332
|
.ft-icon--material {
|
|
333
333
|
font-family: ${Ce.materialFontFamily}, "Material Icons", sans-serif;
|
|
334
334
|
}
|
|
335
|
-
`});var el,M,Xc,ne,Jc,Yn,Qe,tl,Qn=f(()=>{"use strict";el=b(B()),M=b(N());Zt();Ao();
|
|
335
|
+
`});var el,M,Xc,ne,Jc,Yn,Qe,tl,Qn=f(()=>{"use strict";el=b(B()),M=b(N());Zt();Ao();Fr();Wr();Xc=M.FtCssVariableFactory.extend("--ft-button-color","",M.designSystemVariables.colorPrimary),ne={backgroundColor:M.FtCssVariableFactory.extend("--ft-button-background-color","",M.designSystemVariables.colorSurface),borderRadius:M.FtCssVariableFactory.extend("--ft-button-border-radius","",M.designSystemVariables.borderRadiusL),color:Xc,fontSize:M.FtCssVariableFactory.extend("--ft-button-font-size","",Ye.fontSize),iconSize:M.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:M.FtCssVariableFactory.extend("--ft-button-ripple-color","",Xc),verticalPadding:M.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:M.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:M.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:M.FtCssVariableFactory.external(M.designSystemVariables.colorOpacityDisabled,"Design system")},Jc=M.FtCssVariableFactory.extend("--ft-button-primary-color","",M.FtCssVariableFactory.extend("--ft-button-color","",M.designSystemVariables.colorOnPrimary)),Yn={backgroundColor:M.FtCssVariableFactory.extend("--ft-button-primary-background-color","",M.FtCssVariableFactory.extend("--ft-button-background-color","",M.designSystemVariables.colorPrimary)),color:Jc,rippleColor:M.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Jc)},Qe={borderRadius:M.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",M.FtCssVariableFactory.extend("--ft-button-border-radius","",M.designSystemVariables.borderRadiusM)),verticalPadding:M.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:M.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:M.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},tl=[el.css`
|
|
336
336
|
:host {
|
|
337
337
|
display: inline-block;
|
|
338
338
|
max-width: 100%;
|
|
@@ -469,7 +469,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
469
469
|
${(0,M.setVariable)(J.size,ne.iconSize)};
|
|
470
470
|
${(0,M.setVariable)(J.color,"var(--ft-button-internal-color)")};
|
|
471
471
|
}
|
|
472
|
-
`,M.noTextSelect]});var
|
|
472
|
+
`,M.noTextSelect]});var Hr=Vt((zx,rl)=>{rl.exports=ftGlobals.litClassMap});var ol,ye,nl,zr,we,X,Xn=f(()=>{"use strict";ol=b(B()),ye=b(Q()),nl=b(Hr()),zr=b(N());Zt();we=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},X=class extends zr.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 zr.Debouncer(1e3),this.onTransitionStart=e=>{e.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=e=>{e.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new zr.Debouncer(10),this.moveRipple=e=>{var o,n;let{x:a,y:i}=this.getCoordinates(e),s=(n=(o=this.ripple)===null||o===void 0?void 0:o.getBoundingClientRect())!==null&&n!==void 0?n:{x:0,y:0,width:0,height:0};this.originX=Math.round(a!=null?a-s.x:s.width/2),this.originY=Math.round(i!=null?i-s.y:s.height/2)},this.startPress=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"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 ol.html`
|
|
473
473
|
<style>
|
|
474
474
|
.ft-ripple .ft-ripple--effect {
|
|
475
475
|
left: ${this.originX}px;
|
|
@@ -480,9 +480,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
480
480
|
<div class="ft-ripple--background"></div>
|
|
481
481
|
<div class="ft-ripple--effect"></div>
|
|
482
482
|
</div>
|
|
483
|
-
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var o,n;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(o=this.target)===null||o===void 0||o.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,o;let n=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;n&&this.setupFor((o=this.target)!==null&&o!==void 0?o:n)}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let o=(...l)=>p=>{l.forEach(u=>window.addEventListener(u,this.endPress,{once:!0})),this.startPress(p)},n=o("mouseup","contextmenu"),a=o("touchend","touchcancel"),i=l=>{["Enter"," "].includes(l.key)&&o("keyup")(l)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",n,s),e.addEventListener("touchstart",a,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",i,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",n,s),e.removeEventListener("touchstart",a,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",i,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let o=e,n=e,a,i;return o.x!=null?{x:a,y:i}=o:n.touches!=null&&(a=n.touches[0].clientX,i=n.touches[0].clientY),{x:a,y:i}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let o of e.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};X.elementDefinitions={};X.styles=Ns;we([(0,ye.property)({type:Boolean})],X.prototype,"primary",void 0);we([(0,ye.property)({type:Boolean})],X.prototype,"secondary",void 0);we([(0,ye.property)({type:Boolean})],X.prototype,"unbounded",void 0);we([(0,ye.property)({type:Boolean})],X.prototype,"activated",void 0);we([(0,ye.property)({type:Boolean})],X.prototype,"selected",void 0);we([(0,ye.property)({type:Boolean})],X.prototype,"disabled",void 0);we([(0,ye.state)()],X.prototype,"hovered",void 0);we([(0,ye.state)()],X.prototype,"focused",void 0);we([(0,ye.state)()],X.prototype,"pressed",void 0);we([(0,ye.state)()],X.prototype,"rippling",void 0);we([(0,ye.state)()],X.prototype,"originX",void 0);we([(0,ye.state)()],X.prototype,"originY",void 0);we([(0,ye.query)(".ft-ripple")],X.prototype,"ripple",void 0);we([(0,ye.query)(".ft-ripple--effect")],X.prototype,"rippleEffect",void 0)});var al=f(()=>{"use strict"});var il,Ro=f(()=>{"use strict";il=b(N());Xn();Xn();Zt();al();(0,il.customElement)("ft-ripple")(X)});function vl(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return sl!==void 0?sl.createHTML(e):e}function br(t,e,o=t,n){if(e===
|
|
484
|
-
\f\r]`,
|
|
485
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),dl=/'/g,ul=/"/g,ml=/^(?:script|style|textarea|title)$/i,gl=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),bl=gl(1),xl=gl(2),
|
|
483
|
+
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var o,n;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(o=this.target)===null||o===void 0||o.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,o;let n=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;n&&this.setupFor((o=this.target)!==null&&o!==void 0?o:n)}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let o=(...l)=>p=>{l.forEach(u=>window.addEventListener(u,this.endPress,{once:!0})),this.startPress(p)},n=o("mouseup","contextmenu"),a=o("touchend","touchcancel"),i=l=>{["Enter"," "].includes(l.key)&&o("keyup")(l)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",n,s),e.addEventListener("touchstart",a,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",i,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",n,s),e.removeEventListener("touchstart",a,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",i,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let o=e,n=e,a,i;return o.x!=null?{x:a,y:i}=o:n.touches!=null&&(a=n.touches[0].clientX,i=n.touches[0].clientY),{x:a,y:i}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let o of e.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};X.elementDefinitions={};X.styles=Ns;we([(0,ye.property)({type:Boolean})],X.prototype,"primary",void 0);we([(0,ye.property)({type:Boolean})],X.prototype,"secondary",void 0);we([(0,ye.property)({type:Boolean})],X.prototype,"unbounded",void 0);we([(0,ye.property)({type:Boolean})],X.prototype,"activated",void 0);we([(0,ye.property)({type:Boolean})],X.prototype,"selected",void 0);we([(0,ye.property)({type:Boolean})],X.prototype,"disabled",void 0);we([(0,ye.state)()],X.prototype,"hovered",void 0);we([(0,ye.state)()],X.prototype,"focused",void 0);we([(0,ye.state)()],X.prototype,"pressed",void 0);we([(0,ye.state)()],X.prototype,"rippling",void 0);we([(0,ye.state)()],X.prototype,"originX",void 0);we([(0,ye.state)()],X.prototype,"originY",void 0);we([(0,ye.query)(".ft-ripple")],X.prototype,"ripple",void 0);we([(0,ye.query)(".ft-ripple--effect")],X.prototype,"rippleEffect",void 0)});var al=f(()=>{"use strict"});var il,Ro=f(()=>{"use strict";il=b(N());Xn();Xn();Zt();al();(0,il.customElement)("ft-ripple")(X)});function vl(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return sl!==void 0?sl.createHTML(e):e}function br(t,e,o=t,n){if(e===Vr)return e;let a=n!==void 0?o._$Co?.[n]:o._$Cl,i=jr(e)?void 0:e._$litDirective$;return a?.constructor!==i&&(a?._$AO?.(!1),i===void 0?a=void 0:(a=new i(t),a._$AT(t,o,n)),n!==void 0?(o._$Co??=[])[n]=a:o._$Cl=a),a!==void 0&&(e=br(t,a._$AS(t,e.values),a,n)),e}var aa,No,sl,fl,St,hl,eh,Qt,Io,jr,yl,th,Jn,Gr,cl,ll,qt,dl,ul,ml,gl,bl,xl,Vr,le,pl,Yt,rh,Kr,ea,Lo,xr,ta,ra,oa,na,oh,ia=f(()=>{aa=globalThis,No=aa.trustedTypes,sl=No?No.createPolicy("lit-html",{createHTML:t=>t}):void 0,fl="$lit$",St=`lit$${(Math.random()+"").slice(9)}$`,hl="?"+St,eh=`<${hl}>`,Qt=document,Io=()=>Qt.createComment(""),jr=t=>t===null||typeof t!="object"&&typeof t!="function",yl=Array.isArray,th=t=>yl(t)||typeof t?.[Symbol.iterator]=="function",Jn=`[
|
|
484
|
+
\f\r]`,Gr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,cl=/-->/g,ll=/>/g,qt=RegExp(`>|${Jn}(?:([^\\s"'>=/]+)(${Jn}*=${Jn}*(?:[^
|
|
485
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),dl=/'/g,ul=/"/g,ml=/^(?:script|style|textarea|title)$/i,gl=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),bl=gl(1),xl=gl(2),Vr=Symbol.for("lit-noChange"),le=Symbol.for("lit-nothing"),pl=new WeakMap,Yt=Qt.createTreeWalker(Qt,129);rh=(t,e)=>{let o=t.length-1,n=[],a,i=e===2?"<svg>":"",s=Gr;for(let l=0;l<o;l++){let p=t[l],u,y,g=-1,x=0;for(;x<p.length&&(s.lastIndex=x,y=s.exec(p),y!==null);)x=s.lastIndex,s===Gr?y[1]==="!--"?s=cl:y[1]!==void 0?s=ll:y[2]!==void 0?(ml.test(y[2])&&(a=RegExp("</"+y[2],"g")),s=qt):y[3]!==void 0&&(s=qt):s===qt?y[0]===">"?(s=a??Gr,g=-1):y[1]===void 0?g=-2:(g=s.lastIndex-y[2].length,u=y[1],s=y[3]===void 0?qt:y[3]==='"'?ul:dl):s===ul||s===dl?s=qt:s===cl||s===ll?s=Gr:(s=qt,a=void 0);let O=s===qt&&t[l+1].startsWith("/>")?" ":"";i+=s===Gr?p+eh:g>=0?(n.push(u),p.slice(0,g)+fl+p.slice(g)+St+O):p+St+(g===-2?l:O)}return[vl(t,i+(t[o]||"<?>")+(e===2?"</svg>":"")),n]},Kr=class t{constructor({strings:e,_$litType$:o},n){let a;this.parts=[];let i=0,s=0,l=e.length-1,p=this.parts,[u,y]=rh(e,o);if(this.el=t.createElement(u,n),Yt.currentNode=this.el.content,o===2){let g=this.el.content.firstChild;g.replaceWith(...g.childNodes)}for(;(a=Yt.nextNode())!==null&&p.length<l;){if(a.nodeType===1){if(a.hasAttributes())for(let g of a.getAttributeNames())if(g.endsWith(fl)){let x=y[s++],O=a.getAttribute(g).split(St),S=/([.?@])?(.*)/.exec(x);p.push({type:1,index:i,name:S[2],strings:O,ctor:S[1]==="."?ta:S[1]==="?"?ra:S[1]==="@"?oa:xr}),a.removeAttribute(g)}else g.startsWith(St)&&(p.push({type:6,index:i}),a.removeAttribute(g));if(ml.test(a.tagName)){let g=a.textContent.split(St),x=g.length-1;if(x>0){a.textContent=No?No.emptyScript:"";for(let O=0;O<x;O++)a.append(g[O],Io()),Yt.nextNode(),p.push({type:2,index:++i});a.append(g[x],Io())}}}else if(a.nodeType===8)if(a.data===hl)p.push({type:2,index:i});else{let g=-1;for(;(g=a.data.indexOf(St,g+1))!==-1;)p.push({type:7,index:i}),g+=St.length-1}i++}}static createElement(e,o){let n=Qt.createElement("template");return n.innerHTML=e,n}};ea=class{constructor(e,o){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:o},parts:n}=this._$AD,a=(e?.creationScope??Qt).importNode(o,!0);Yt.currentNode=a;let i=Yt.nextNode(),s=0,l=0,p=n[0];for(;p!==void 0;){if(s===p.index){let u;p.type===2?u=new Lo(i,i.nextSibling,this,e):p.type===1?u=new p.ctor(i,p.name,p.strings,this,e):p.type===6&&(u=new na(i,this,e)),this._$AV.push(u),p=n[++l]}s!==p?.index&&(i=Yt.nextNode(),s++)}return Yt.currentNode=Qt,a}p(e){let o=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,o),o+=n.strings.length-2):n._$AI(e[o])),o++}},Lo=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,o,n,a){this.type=2,this._$AH=le,this._$AN=void 0,this._$AA=e,this._$AB=o,this._$AM=n,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,o=this._$AM;return o!==void 0&&e?.nodeType===11&&(e=o.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,o=this){e=br(this,e,o),jr(e)?e===le||e==null||e===""?(this._$AH!==le&&this._$AR(),this._$AH=le):e!==this._$AH&&e!==Vr&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):th(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==le&&jr(this._$AH)?this._$AA.nextSibling.data=e:this.$(Qt.createTextNode(e)),this._$AH=e}g(e){let{values:o,_$litType$:n}=e,a=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=Kr.createElement(vl(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(o);else{let i=new ea(a,this),s=i.u(this.options);i.p(o),this.$(s),this._$AH=i}}_$AC(e){let o=pl.get(e.strings);return o===void 0&&pl.set(e.strings,o=new Kr(e)),o}T(e){yl(this._$AH)||(this._$AH=[],this._$AR());let o=this._$AH,n,a=0;for(let i of e)a===o.length?o.push(n=new t(this.k(Io()),this.k(Io()),this,this.options)):n=o[a],n._$AI(i),a++;a<o.length&&(this._$AR(n&&n._$AB.nextSibling,a),o.length=a)}_$AR(e=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},xr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,o,n,a,i){this.type=1,this._$AH=le,this._$AN=void 0,this.element=e,this.name=o,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=le}_$AI(e,o=this,n,a){let i=this.strings,s=!1;if(i===void 0)e=br(this,e,o,0),s=!jr(e)||e!==this._$AH&&e!==Vr,s&&(this._$AH=e);else{let l=e,p,u;for(e=i[0],p=0;p<i.length-1;p++)u=br(this,l[n+p],o,p),u===Vr&&(u=this._$AH[p]),s||=!jr(u)||u!==this._$AH[p],u===le?e=le:e!==le&&(e+=(u??"")+i[p+1]),this._$AH[p]=u}s&&!a&&this.O(e)}O(e){e===le?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},ta=class extends xr{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===le?void 0:e}},ra=class extends xr{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==le)}},oa=class extends xr{constructor(e,o,n,a,i){super(e,o,n,a,i),this.type=5}_$AI(e,o=this){if((e=br(this,e,o,0)??le)===Vr)return;let n=this._$AH,a=e===le&&n!==le||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==le&&(n===le||a);a&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},na=class{constructor(e,o,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=o,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){br(this,e)}},oh=aa.litHtmlPolyfillSupport;oh?.(Kr,Lo),(aa.litHtmlVersions??=[]).push("3.1.0")});var Ol,nh,sa,Sl,Cl,ca,Jx,El=f(()=>{ia();Ol=Symbol.for(""),nh=t=>{if(t?.r===Ol)return t?._$litStatic$},sa=t=>({_$litStatic$:t,r:Ol}),Sl=new Map,Cl=t=>(e,...o)=>{let n=o.length,a,i,s=[],l=[],p,u=0,y=!1;for(;u<n;){for(p=e[u];u<n&&(i=o[u],(a=nh(i))!==void 0);)p+=a+e[++u],y=!0;u!==n&&l.push(i),s.push(p),u++}if(u===n&&s.push(e[n]),y){let g=s.join("$$lit$$");(e=Sl.get(g))===void 0&&(s.raw=s,Sl.set(g,e=s)),o=l}return t(e,...o)},ca=Cl(bl),Jx=Cl(xl)});var wl=f(()=>{El()});var Ot,Po=f(()=>{"use strict";(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"})(Ot||(Ot={}))});var la,Rl,Al,se,da=f(()=>{"use strict";wl();la=b(Q()),Rl=b(N());Po();Ao();Al=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},se=class extends Rl.FtLitElement{constructor(){super(...arguments),this.variant=Ot.body1}render(){return this.element?ca`
|
|
486
486
|
<${sa(this.element)}
|
|
487
487
|
part="text"
|
|
488
488
|
class="ft-typography ft-typography--${this.variant}">
|
|
@@ -519,7 +519,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
519
519
|
position: relative;
|
|
520
520
|
word-break: break-word;
|
|
521
521
|
}
|
|
522
|
-
`});function ha(t,e,o){return Et(t,Kr(e,o))}function To(t,e){return typeof t=="function"?t(e):t}function vr(t){return t.split("-")[0]}function wt(t){return t.split("-")[1]}function ya(t){return t==="x"?"y":"x"}function ma(t){return t==="y"?"height":"width"}function _o(t){return["top","bottom"].includes(vr(t))?"y":"x"}function ga(t){return ya(_o(t))}function _l(t,e,o){o===void 0&&(o=!1);let n=wt(t),a=ga(t),i=ma(a),s=a==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=pa(s)),[s,pa(s)]}function kl(t){return t.replace(/start|end/g,e=>ih[e])}function pa(t){return t.replace(/left|right|bottom|top/g,e=>ah[e])}function sh(t){return{top:0,right:0,bottom:0,left:0,...t}}function Dl(t){return typeof t!="number"?sh(t):{top:t,right:t,bottom:t,left:t}}function Xt(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}var Tl,Pl,fa,Kr,Et,Zr,lt,ah,ih,ko=f(()=>{Tl=["top","right","bottom","left"],Pl=["start","end"],fa=Tl.reduce((t,e)=>t.concat(e,e+"-"+Pl[0],e+"-"+Pl[1]),[]),Kr=Math.min,Et=Math.max,Zr=Math.round,lt=t=>({x:t,y:t}),ah={left:"right",right:"left",bottom:"top",top:"bottom"},ih={start:"end",end:"start"}});function Bl(t,e,o){let{reference:n,floating:a}=t,i=_o(e),s=ga(e),l=ma(s),p=vr(e),u=i==="y",y=n.x+n.width/2-a.width/2,g=n.y+n.height/2-a.height/2,x=n[l]/2-a[l]/2,O;switch(p){case"top":O={x:y,y:n.y-a.height};break;case"bottom":O={x:y,y:n.y+n.height};break;case"right":O={x:n.x+n.width,y:g};break;case"left":O={x:n.x-a.width,y:g};break;default:O={x:n.x,y:n.y}}switch(wt(e)){case"start":O[s]-=x*(o&&u?-1:1);break;case"end":O[s]+=x*(o&&u?-1:1);break}return O}async function ba(t,e){var o;e===void 0&&(e={});let{x:n,y:a,platform:i,rects:s,elements:l,strategy:p}=t,{boundary:u="clippingAncestors",rootBoundary:y="viewport",elementContext:g="floating",altBoundary:x=!1,padding:O=0}=To(e,t),S=Dl(O),P=l[x?g==="floating"?"reference":"floating":g],I=Xt(await i.getClippingRect({element:(o=await(i.isElement==null?void 0:i.isElement(P)))==null||o?P:P.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:y,strategy:p})),L=g==="floating"?{...s.floating,x:n,y:a}:s.reference,$=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),U=await(i.isElement==null?void 0:i.isElement($))?await(i.getScale==null?void 0:i.getScale($))||{x:1,y:1}:{x:1,y:1},F=Xt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:L,offsetParent:$,strategy:p}):L);return{top:(I.top-F.top+S.top)/U.y,bottom:(F.bottom-I.bottom+S.bottom)/U.y,left:(I.left-F.left+S.left)/U.x,right:(F.right-I.right+S.right)/U.x}}function ch(t,e,o){return(t?[...o.filter(a=>wt(a)===t),...o.filter(a=>wt(a)!==t)]:o.filter(a=>vr(a)===a)).filter(a=>t?wt(a)===t||(e?kl(a)!==a:!1):!0)}var $l,xa,va,Sa=f(()=>{ko();ko();$l=async(t,e,o)=>{let{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:s}=o,l=i.filter(Boolean),p=await(s.isRTL==null?void 0:s.isRTL(e)),u=await s.getElementRects({reference:t,floating:e,strategy:a}),{x:y,y:g}=Bl(u,n,p),x=n,O={},S=0;for(let C=0;C<l.length;C++){let{name:P,fn:I}=l[C],{x:L,y:$,data:U,reset:F}=await I({x:y,y:g,initialPlacement:n,placement:x,strategy:a,middlewareData:O,rects:u,platform:s,elements:{reference:t,floating:e}});if(y=L??y,g=$??g,O={...O,[P]:{...O[P],...U}},F&&S<=50){S++,typeof F=="object"&&(F.placement&&(x=F.placement),F.rects&&(u=F.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:a}):F.rects),{x:y,y:g}=Bl(u,x,p)),C=-1;continue}}return{x:y,y:g,placement:x,strategy:a,middlewareData:O}};xa=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,n,a;let{rects:i,middlewareData:s,placement:l,platform:p,elements:u}=e,{crossAxis:y=!1,alignment:g,allowedPlacements:x=fa,autoAlignment:O=!0,...S}=To(t,e),C=g!==void 0||x===fa?ch(g||null,O,x):x,P=await ba(e,S),I=((o=s.autoPlacement)==null?void 0:o.index)||0,L=C[I];if(L==null)return{};let $=_l(L,i,await(p.isRTL==null?void 0:p.isRTL(u.floating)));if(l!==L)return{reset:{placement:C[0]}};let U=[P[vr(L)],P[$[0]],P[$[1]]],F=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:L,overflows:U}],Ee=C[I+1];if(Ee)return{data:{index:I+1,overflows:F},reset:{placement:Ee}};let Ze=F.map(fe=>{let m=wt(fe.placement);return[fe.placement,m&&y?fe.overflows.slice(0,2).reduce((v,k)=>v+k,0):fe.overflows[0],fe.overflows]}).sort((fe,m)=>fe[1]-m[1]),qe=((a=Ze.filter(fe=>fe[2].slice(0,wt(fe[0])?2:3).every(m=>m<=0))[0])==null?void 0:a[0])||Ze[0][0];return qe!==l?{data:{index:I+1,overflows:F},reset:{placement:qe}}:{}}}},va=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:o,y:n,placement:a}=e,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:P=>{let{x:I,y:L}=P;return{x:I,y:L}}},...p}=To(t,e),u={x:o,y:n},y=await ba(e,p),g=_o(vr(a)),x=ya(g),O=u[x],S=u[g];if(i){let P=x==="y"?"top":"left",I=x==="y"?"bottom":"right",L=O+y[P],$=O-y[I];O=ha(L,O,$)}if(s){let P=g==="y"?"top":"left",I=g==="y"?"bottom":"right",L=S+y[P],$=S-y[I];S=ha(L,S,$)}let C=l.fn({...e,[x]:O,[g]:S});return{...C,data:{x:C.x-o,y:C.y-n}}}}}});function dt(t){return Ul(t)?(t.nodeName||"").toLowerCase():"#document"}function Ae(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function ut(t){var e;return(e=(Ul(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Ul(t){return t instanceof Node||t instanceof Ae(t).Node}function Xe(t){return t instanceof Element||t instanceof Ae(t).Element}function Ge(t){return t instanceof HTMLElement||t instanceof Ae(t).HTMLElement}function Ml(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ae(t).ShadowRoot}function Sr(t){let{overflow:e,overflowX:o,overflowY:n,display:a}=Te(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+o)&&!["inline","contents"].includes(a)}function Fl(t){return["table","td","th"].includes(dt(t))}function Bo(t){let e=$o(),o=Te(t);return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!e&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!e&&(o.filter?o.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(o.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(o.contain||"").includes(n))}function Wl(t){let e=Jt(t);for(;Ge(e)&&!qr(e);){if(Bo(e))return e;e=Jt(e)}return null}function $o(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function qr(t){return["html","body","#document"].includes(dt(t))}function Te(t){return Ae(t).getComputedStyle(t)}function Yr(t){return Xe(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Jt(t){if(dt(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Ml(t)&&t.host||ut(t);return Ml(e)?e.host:e}function Hl(t){let e=Jt(t);return qr(e)?t.ownerDocument?t.ownerDocument.body:t.body:Ge(e)&&Sr(e)?e:Hl(e)}function Do(t,e,o){var n;e===void 0&&(e=[]),o===void 0&&(o=!0);let a=Hl(t),i=a===((n=t.ownerDocument)==null?void 0:n.body),s=Ae(a);return i?e.concat(s,s.visualViewport||[],Sr(a)?a:[],s.frameElement&&o?Do(s.frameElement):[]):e.concat(a,Do(a,[],o))}var zl=f(()=>{});function Vl(t){let e=Te(t),o=parseFloat(e.width)||0,n=parseFloat(e.height)||0,a=Ge(t),i=a?t.offsetWidth:o,s=a?t.offsetHeight:n,l=Zr(o)!==i||Zr(n)!==s;return l&&(o=i,n=s),{width:o,height:n,$:l}}function Kl(t){return Xe(t)?t:t.contextElement}function Or(t){let e=Kl(t);if(!Ge(e))return lt(1);let o=e.getBoundingClientRect(),{width:n,height:a,$:i}=Vl(e),s=(i?Zr(o.width):o.width)/n,l=(i?Zr(o.height):o.height)/a;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}function Zl(t){let e=Ae(t);return!$o()||!e.visualViewport?uh:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function ph(t,e,o){return e===void 0&&(e=!1),!o||e&&o!==Ae(t)?!1:e}function Qr(t,e,o,n){e===void 0&&(e=!1),o===void 0&&(o=!1);let a=t.getBoundingClientRect(),i=Kl(t),s=lt(1);e&&(n?Xe(n)&&(s=Or(n)):s=Or(t));let l=ph(i,o,n)?Zl(i):lt(0),p=(a.left+l.x)/s.x,u=(a.top+l.y)/s.y,y=a.width/s.x,g=a.height/s.y;if(i){let x=Ae(i),O=n&&Xe(n)?Ae(n):n,S=x.frameElement;for(;S&&n&&O!==x;){let C=Or(S),P=S.getBoundingClientRect(),I=Te(S),L=P.left+(S.clientLeft+parseFloat(I.paddingLeft))*C.x,$=P.top+(S.clientTop+parseFloat(I.paddingTop))*C.y;p*=C.x,u*=C.y,y*=C.x,g*=C.y,p+=L,u+=$,S=Ae(S).frameElement}}return Xt({width:y,height:g,x:p,y:u})}function fh(t){let{rect:e,offsetParent:o,strategy:n}=t,a=Ge(o),i=ut(o);if(o===i)return e;let s={scrollLeft:0,scrollTop:0},l=lt(1),p=lt(0);if((a||!a&&n!=="fixed")&&((dt(o)!=="body"||Sr(i))&&(s=Yr(o)),Ge(o))){let u=Qr(o);l=Or(o),p.x=u.x+o.clientLeft,p.y=u.y+o.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-s.scrollLeft*l.x+p.x,y:e.y*l.y-s.scrollTop*l.y+p.y}}function hh(t){return Array.from(t.getClientRects())}function ql(t){return Qr(ut(t)).left+Yr(t).scrollLeft}function yh(t){let e=ut(t),o=Yr(t),n=t.ownerDocument.body,a=Et(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=Et(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),s=-o.scrollLeft+ql(t),l=-o.scrollTop;return Te(n).direction==="rtl"&&(s+=Et(e.clientWidth,n.clientWidth)-a),{width:a,height:i,x:s,y:l}}function mh(t,e){let o=Ae(t),n=ut(t),a=o.visualViewport,i=n.clientWidth,s=n.clientHeight,l=0,p=0;if(a){i=a.width,s=a.height;let u=$o();(!u||u&&e==="fixed")&&(l=a.offsetLeft,p=a.offsetTop)}return{width:i,height:s,x:l,y:p}}function gh(t,e){let o=Qr(t,!0,e==="fixed"),n=o.top+t.clientTop,a=o.left+t.clientLeft,i=Ge(t)?Or(t):lt(1),s=t.clientWidth*i.x,l=t.clientHeight*i.y,p=a*i.x,u=n*i.y;return{width:s,height:l,x:p,y:u}}function Gl(t,e,o){let n;if(e==="viewport")n=mh(t,o);else if(e==="document")n=yh(ut(t));else if(Xe(e))n=gh(e,o);else{let a=Zl(t);n={...e,x:e.x-a.x,y:e.y-a.y}}return Xt(n)}function Yl(t,e){let o=Jt(t);return o===e||!Xe(o)||qr(o)?!1:Te(o).position==="fixed"||Yl(o,e)}function bh(t,e){let o=e.get(t);if(o)return o;let n=Do(t,[],!1).filter(l=>Xe(l)&&dt(l)!=="body"),a=null,i=Te(t).position==="fixed",s=i?Jt(t):t;for(;Xe(s)&&!qr(s);){let l=Te(s),p=Bo(s);!p&&l.position==="fixed"&&(a=null),(i?!p&&!a:!p&&l.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||Sr(s)&&!p&&Yl(t,s))?n=n.filter(y=>y!==s):a=l,s=Jt(s)}return e.set(t,n),n}function xh(t){let{element:e,boundary:o,rootBoundary:n,strategy:a}=t,s=[...o==="clippingAncestors"?bh(e,this._c):[].concat(o),n],l=s[0],p=s.reduce((u,y)=>{let g=Gl(e,y,a);return u.top=Et(g.top,u.top),u.right=Kr(g.right,u.right),u.bottom=Kr(g.bottom,u.bottom),u.left=Et(g.left,u.left),u},Gl(e,l,a));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function vh(t){return Vl(t)}function Sh(t,e,o){let n=Ge(e),a=ut(e),i=o==="fixed",s=Qr(t,!0,i,e),l={scrollLeft:0,scrollTop:0},p=lt(0);if(n||!n&&!i)if((dt(e)!=="body"||Sr(a))&&(l=Yr(e)),n){let u=Qr(e,!0,i,e);p.x=u.x+e.clientLeft,p.y=u.y+e.clientTop}else a&&(p.x=ql(a));return{x:s.left+l.scrollLeft-p.x,y:s.top+l.scrollTop-p.y,width:s.width,height:s.height}}function jl(t,e){return!Ge(t)||Te(t).position==="fixed"?null:e?e(t):t.offsetParent}function Ql(t,e){let o=Ae(t);if(!Ge(t))return o;let n=jl(t,e);for(;n&&Fl(n)&&Te(n).position==="static";)n=jl(n,e);return n&&(dt(n)==="html"||dt(n)==="body"&&Te(n).position==="static"&&!Bo(n))?o:n||Wl(t)||o}function Ch(t){return Te(t).direction==="rtl"}var uh,Oh,Mo,Xl,Jl=f(()=>{Sa();Sa();ko();zl();uh=lt(0);Oh=async function(t){let{reference:e,floating:o,strategy:n}=t,a=this.getOffsetParent||Ql,i=this.getDimensions;return{reference:Sh(e,await a(o),n),floating:{x:0,y:0,...await i(o)}}};Mo={convertOffsetParentRelativeRectToViewportRelativeRect:fh,getDocumentElement:ut,getClippingRect:xh,getOffsetParent:Ql,getElementRects:Oh,getClientRects:hh,getDimensions:vh,getScale:Or,isElement:Xe,isRTL:Ch},Xl=(t,e,o)=>{let n=new Map,a={platform:Mo,...o},i={...a.platform,_c:n};return $l(t,e,{...a,platform:i})}});function ed(t){return Eh(t)}function Oa(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Eh(t){for(let e=t;e;e=Oa(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Oa(t);e;e=Oa(e)){if(!(e instanceof Element))continue;let o=getComputedStyle(e);if(o.display!=="contents"&&(o.position!=="static"||o.filter!=="none"||e.tagName==="BODY"))return e}return null}var td=f(()=>{});async function rd(t,e,o){return Xl(t,e,{platform:{...Mo,getOffsetParent:n=>Mo.getOffsetParent(n,ed)},middleware:[va({crossAxis:!0}),xa({allowedPlacements:[o]})]})}var od=f(()=>{"use strict";Jl();td()});var nd,de,Xr,Re,ae,Ca=f(()=>{"use strict";nd=b(B()),de=b(Q()),Xr=b(N());st();ua();od();Re=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},ae=class extends Xr.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 Xr.Debouncer,this.revealDebouncer=new Xr.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return nd.html`
|
|
522
|
+
`});function ha(t,e,o){return Et(t,Zr(e,o))}function To(t,e){return typeof t=="function"?t(e):t}function vr(t){return t.split("-")[0]}function wt(t){return t.split("-")[1]}function ya(t){return t==="x"?"y":"x"}function ma(t){return t==="y"?"height":"width"}function _o(t){return["top","bottom"].includes(vr(t))?"y":"x"}function ga(t){return ya(_o(t))}function _l(t,e,o){o===void 0&&(o=!1);let n=wt(t),a=ga(t),i=ma(a),s=a==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=pa(s)),[s,pa(s)]}function kl(t){return t.replace(/start|end/g,e=>ih[e])}function pa(t){return t.replace(/left|right|bottom|top/g,e=>ah[e])}function sh(t){return{top:0,right:0,bottom:0,left:0,...t}}function Dl(t){return typeof t!="number"?sh(t):{top:t,right:t,bottom:t,left:t}}function Xt(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}var Tl,Pl,fa,Zr,Et,qr,lt,ah,ih,ko=f(()=>{Tl=["top","right","bottom","left"],Pl=["start","end"],fa=Tl.reduce((t,e)=>t.concat(e,e+"-"+Pl[0],e+"-"+Pl[1]),[]),Zr=Math.min,Et=Math.max,qr=Math.round,lt=t=>({x:t,y:t}),ah={left:"right",right:"left",bottom:"top",top:"bottom"},ih={start:"end",end:"start"}});function Bl(t,e,o){let{reference:n,floating:a}=t,i=_o(e),s=ga(e),l=ma(s),p=vr(e),u=i==="y",y=n.x+n.width/2-a.width/2,g=n.y+n.height/2-a.height/2,x=n[l]/2-a[l]/2,O;switch(p){case"top":O={x:y,y:n.y-a.height};break;case"bottom":O={x:y,y:n.y+n.height};break;case"right":O={x:n.x+n.width,y:g};break;case"left":O={x:n.x-a.width,y:g};break;default:O={x:n.x,y:n.y}}switch(wt(e)){case"start":O[s]-=x*(o&&u?-1:1);break;case"end":O[s]+=x*(o&&u?-1:1);break}return O}async function ba(t,e){var o;e===void 0&&(e={});let{x:n,y:a,platform:i,rects:s,elements:l,strategy:p}=t,{boundary:u="clippingAncestors",rootBoundary:y="viewport",elementContext:g="floating",altBoundary:x=!1,padding:O=0}=To(e,t),S=Dl(O),P=l[x?g==="floating"?"reference":"floating":g],I=Xt(await i.getClippingRect({element:(o=await(i.isElement==null?void 0:i.isElement(P)))==null||o?P:P.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:y,strategy:p})),L=g==="floating"?{...s.floating,x:n,y:a}:s.reference,$=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),U=await(i.isElement==null?void 0:i.isElement($))?await(i.getScale==null?void 0:i.getScale($))||{x:1,y:1}:{x:1,y:1},F=Xt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:L,offsetParent:$,strategy:p}):L);return{top:(I.top-F.top+S.top)/U.y,bottom:(F.bottom-I.bottom+S.bottom)/U.y,left:(I.left-F.left+S.left)/U.x,right:(F.right-I.right+S.right)/U.x}}function ch(t,e,o){return(t?[...o.filter(a=>wt(a)===t),...o.filter(a=>wt(a)!==t)]:o.filter(a=>vr(a)===a)).filter(a=>t?wt(a)===t||(e?kl(a)!==a:!1):!0)}var $l,xa,va,Sa=f(()=>{ko();ko();$l=async(t,e,o)=>{let{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:s}=o,l=i.filter(Boolean),p=await(s.isRTL==null?void 0:s.isRTL(e)),u=await s.getElementRects({reference:t,floating:e,strategy:a}),{x:y,y:g}=Bl(u,n,p),x=n,O={},S=0;for(let C=0;C<l.length;C++){let{name:P,fn:I}=l[C],{x:L,y:$,data:U,reset:F}=await I({x:y,y:g,initialPlacement:n,placement:x,strategy:a,middlewareData:O,rects:u,platform:s,elements:{reference:t,floating:e}});if(y=L??y,g=$??g,O={...O,[P]:{...O[P],...U}},F&&S<=50){S++,typeof F=="object"&&(F.placement&&(x=F.placement),F.rects&&(u=F.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:a}):F.rects),{x:y,y:g}=Bl(u,x,p)),C=-1;continue}}return{x:y,y:g,placement:x,strategy:a,middlewareData:O}};xa=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,n,a;let{rects:i,middlewareData:s,placement:l,platform:p,elements:u}=e,{crossAxis:y=!1,alignment:g,allowedPlacements:x=fa,autoAlignment:O=!0,...S}=To(t,e),C=g!==void 0||x===fa?ch(g||null,O,x):x,P=await ba(e,S),I=((o=s.autoPlacement)==null?void 0:o.index)||0,L=C[I];if(L==null)return{};let $=_l(L,i,await(p.isRTL==null?void 0:p.isRTL(u.floating)));if(l!==L)return{reset:{placement:C[0]}};let U=[P[vr(L)],P[$[0]],P[$[1]]],F=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:L,overflows:U}],Ee=C[I+1];if(Ee)return{data:{index:I+1,overflows:F},reset:{placement:Ee}};let Ze=F.map(fe=>{let m=wt(fe.placement);return[fe.placement,m&&y?fe.overflows.slice(0,2).reduce((v,k)=>v+k,0):fe.overflows[0],fe.overflows]}).sort((fe,m)=>fe[1]-m[1]),qe=((a=Ze.filter(fe=>fe[2].slice(0,wt(fe[0])?2:3).every(m=>m<=0))[0])==null?void 0:a[0])||Ze[0][0];return qe!==l?{data:{index:I+1,overflows:F},reset:{placement:qe}}:{}}}},va=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:o,y:n,placement:a}=e,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:P=>{let{x:I,y:L}=P;return{x:I,y:L}}},...p}=To(t,e),u={x:o,y:n},y=await ba(e,p),g=_o(vr(a)),x=ya(g),O=u[x],S=u[g];if(i){let P=x==="y"?"top":"left",I=x==="y"?"bottom":"right",L=O+y[P],$=O-y[I];O=ha(L,O,$)}if(s){let P=g==="y"?"top":"left",I=g==="y"?"bottom":"right",L=S+y[P],$=S-y[I];S=ha(L,S,$)}let C=l.fn({...e,[x]:O,[g]:S});return{...C,data:{x:C.x-o,y:C.y-n}}}}}});function dt(t){return Ul(t)?(t.nodeName||"").toLowerCase():"#document"}function Ae(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function ut(t){var e;return(e=(Ul(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Ul(t){return t instanceof Node||t instanceof Ae(t).Node}function Xe(t){return t instanceof Element||t instanceof Ae(t).Element}function Ge(t){return t instanceof HTMLElement||t instanceof Ae(t).HTMLElement}function Ml(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ae(t).ShadowRoot}function Sr(t){let{overflow:e,overflowX:o,overflowY:n,display:a}=Te(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+o)&&!["inline","contents"].includes(a)}function Fl(t){return["table","td","th"].includes(dt(t))}function Bo(t){let e=$o(),o=Te(t);return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!e&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!e&&(o.filter?o.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(o.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(o.contain||"").includes(n))}function Wl(t){let e=Jt(t);for(;Ge(e)&&!Yr(e);){if(Bo(e))return e;e=Jt(e)}return null}function $o(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Yr(t){return["html","body","#document"].includes(dt(t))}function Te(t){return Ae(t).getComputedStyle(t)}function Qr(t){return Xe(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Jt(t){if(dt(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Ml(t)&&t.host||ut(t);return Ml(e)?e.host:e}function Hl(t){let e=Jt(t);return Yr(e)?t.ownerDocument?t.ownerDocument.body:t.body:Ge(e)&&Sr(e)?e:Hl(e)}function Do(t,e,o){var n;e===void 0&&(e=[]),o===void 0&&(o=!0);let a=Hl(t),i=a===((n=t.ownerDocument)==null?void 0:n.body),s=Ae(a);return i?e.concat(s,s.visualViewport||[],Sr(a)?a:[],s.frameElement&&o?Do(s.frameElement):[]):e.concat(a,Do(a,[],o))}var zl=f(()=>{});function Vl(t){let e=Te(t),o=parseFloat(e.width)||0,n=parseFloat(e.height)||0,a=Ge(t),i=a?t.offsetWidth:o,s=a?t.offsetHeight:n,l=qr(o)!==i||qr(n)!==s;return l&&(o=i,n=s),{width:o,height:n,$:l}}function Kl(t){return Xe(t)?t:t.contextElement}function Or(t){let e=Kl(t);if(!Ge(e))return lt(1);let o=e.getBoundingClientRect(),{width:n,height:a,$:i}=Vl(e),s=(i?qr(o.width):o.width)/n,l=(i?qr(o.height):o.height)/a;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}function Zl(t){let e=Ae(t);return!$o()||!e.visualViewport?uh:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function ph(t,e,o){return e===void 0&&(e=!1),!o||e&&o!==Ae(t)?!1:e}function Xr(t,e,o,n){e===void 0&&(e=!1),o===void 0&&(o=!1);let a=t.getBoundingClientRect(),i=Kl(t),s=lt(1);e&&(n?Xe(n)&&(s=Or(n)):s=Or(t));let l=ph(i,o,n)?Zl(i):lt(0),p=(a.left+l.x)/s.x,u=(a.top+l.y)/s.y,y=a.width/s.x,g=a.height/s.y;if(i){let x=Ae(i),O=n&&Xe(n)?Ae(n):n,S=x.frameElement;for(;S&&n&&O!==x;){let C=Or(S),P=S.getBoundingClientRect(),I=Te(S),L=P.left+(S.clientLeft+parseFloat(I.paddingLeft))*C.x,$=P.top+(S.clientTop+parseFloat(I.paddingTop))*C.y;p*=C.x,u*=C.y,y*=C.x,g*=C.y,p+=L,u+=$,S=Ae(S).frameElement}}return Xt({width:y,height:g,x:p,y:u})}function fh(t){let{rect:e,offsetParent:o,strategy:n}=t,a=Ge(o),i=ut(o);if(o===i)return e;let s={scrollLeft:0,scrollTop:0},l=lt(1),p=lt(0);if((a||!a&&n!=="fixed")&&((dt(o)!=="body"||Sr(i))&&(s=Qr(o)),Ge(o))){let u=Xr(o);l=Or(o),p.x=u.x+o.clientLeft,p.y=u.y+o.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-s.scrollLeft*l.x+p.x,y:e.y*l.y-s.scrollTop*l.y+p.y}}function hh(t){return Array.from(t.getClientRects())}function ql(t){return Xr(ut(t)).left+Qr(t).scrollLeft}function yh(t){let e=ut(t),o=Qr(t),n=t.ownerDocument.body,a=Et(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=Et(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),s=-o.scrollLeft+ql(t),l=-o.scrollTop;return Te(n).direction==="rtl"&&(s+=Et(e.clientWidth,n.clientWidth)-a),{width:a,height:i,x:s,y:l}}function mh(t,e){let o=Ae(t),n=ut(t),a=o.visualViewport,i=n.clientWidth,s=n.clientHeight,l=0,p=0;if(a){i=a.width,s=a.height;let u=$o();(!u||u&&e==="fixed")&&(l=a.offsetLeft,p=a.offsetTop)}return{width:i,height:s,x:l,y:p}}function gh(t,e){let o=Xr(t,!0,e==="fixed"),n=o.top+t.clientTop,a=o.left+t.clientLeft,i=Ge(t)?Or(t):lt(1),s=t.clientWidth*i.x,l=t.clientHeight*i.y,p=a*i.x,u=n*i.y;return{width:s,height:l,x:p,y:u}}function Gl(t,e,o){let n;if(e==="viewport")n=mh(t,o);else if(e==="document")n=yh(ut(t));else if(Xe(e))n=gh(e,o);else{let a=Zl(t);n={...e,x:e.x-a.x,y:e.y-a.y}}return Xt(n)}function Yl(t,e){let o=Jt(t);return o===e||!Xe(o)||Yr(o)?!1:Te(o).position==="fixed"||Yl(o,e)}function bh(t,e){let o=e.get(t);if(o)return o;let n=Do(t,[],!1).filter(l=>Xe(l)&&dt(l)!=="body"),a=null,i=Te(t).position==="fixed",s=i?Jt(t):t;for(;Xe(s)&&!Yr(s);){let l=Te(s),p=Bo(s);!p&&l.position==="fixed"&&(a=null),(i?!p&&!a:!p&&l.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||Sr(s)&&!p&&Yl(t,s))?n=n.filter(y=>y!==s):a=l,s=Jt(s)}return e.set(t,n),n}function xh(t){let{element:e,boundary:o,rootBoundary:n,strategy:a}=t,s=[...o==="clippingAncestors"?bh(e,this._c):[].concat(o),n],l=s[0],p=s.reduce((u,y)=>{let g=Gl(e,y,a);return u.top=Et(g.top,u.top),u.right=Zr(g.right,u.right),u.bottom=Zr(g.bottom,u.bottom),u.left=Et(g.left,u.left),u},Gl(e,l,a));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function vh(t){return Vl(t)}function Sh(t,e,o){let n=Ge(e),a=ut(e),i=o==="fixed",s=Xr(t,!0,i,e),l={scrollLeft:0,scrollTop:0},p=lt(0);if(n||!n&&!i)if((dt(e)!=="body"||Sr(a))&&(l=Qr(e)),n){let u=Xr(e,!0,i,e);p.x=u.x+e.clientLeft,p.y=u.y+e.clientTop}else a&&(p.x=ql(a));return{x:s.left+l.scrollLeft-p.x,y:s.top+l.scrollTop-p.y,width:s.width,height:s.height}}function jl(t,e){return!Ge(t)||Te(t).position==="fixed"?null:e?e(t):t.offsetParent}function Ql(t,e){let o=Ae(t);if(!Ge(t))return o;let n=jl(t,e);for(;n&&Fl(n)&&Te(n).position==="static";)n=jl(n,e);return n&&(dt(n)==="html"||dt(n)==="body"&&Te(n).position==="static"&&!Bo(n))?o:n||Wl(t)||o}function Ch(t){return Te(t).direction==="rtl"}var uh,Oh,Mo,Xl,Jl=f(()=>{Sa();Sa();ko();zl();uh=lt(0);Oh=async function(t){let{reference:e,floating:o,strategy:n}=t,a=this.getOffsetParent||Ql,i=this.getDimensions;return{reference:Sh(e,await a(o),n),floating:{x:0,y:0,...await i(o)}}};Mo={convertOffsetParentRelativeRectToViewportRelativeRect:fh,getDocumentElement:ut,getClippingRect:xh,getOffsetParent:Ql,getElementRects:Oh,getClientRects:hh,getDimensions:vh,getScale:Or,isElement:Xe,isRTL:Ch},Xl=(t,e,o)=>{let n=new Map,a={platform:Mo,...o},i={...a.platform,_c:n};return $l(t,e,{...a,platform:i})}});function ed(t){return Eh(t)}function Oa(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Eh(t){for(let e=t;e;e=Oa(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Oa(t);e;e=Oa(e)){if(!(e instanceof Element))continue;let o=getComputedStyle(e);if(o.display!=="contents"&&(o.position!=="static"||o.filter!=="none"||e.tagName==="BODY"))return e}return null}var td=f(()=>{});async function rd(t,e,o){return Xl(t,e,{platform:{...Mo,getOffsetParent:n=>Mo.getOffsetParent(n,ed)},middleware:[va({crossAxis:!0}),xa({allowedPlacements:[o]})]})}var od=f(()=>{"use strict";Jl();td()});var nd,de,Jr,Re,ae,Ca=f(()=>{"use strict";nd=b(B()),de=b(Q()),Jr=b(N());st();ua();od();Re=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},ae=class extends Jr.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 Jr.Debouncer,this.revealDebouncer=new Jr.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return nd.html`
|
|
523
523
|
<div part="container"
|
|
524
524
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
525
525
|
@mouseenter=${this.onHover}
|
|
@@ -537,19 +537,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
537
537
|
</div>
|
|
538
538
|
</div>
|
|
539
539
|
</div>
|
|
540
|
-
`}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="",rd(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))}};ae.elementDefinitions={"ft-typography":se};ae.styles=Ll;Re([(0,de.property)()],ae.prototype,"text",void 0);Re([(0,de.property)({type:Boolean})],ae.prototype,"manual",void 0);Re([(0,de.property)({type:Boolean})],ae.prototype,"inline",void 0);Re([(0,de.property)({type:Number})],ae.prototype,"delay",void 0);Re([(0,de.property)()],ae.prototype,"position",void 0);Re([(0,de.queryAssignedNodes)()],ae.prototype,"slotNodes",void 0);Re([(0,de.query)(".ft-tooltip--container")],ae.prototype,"container",void 0);Re([(0,de.query)(".ft-tooltip")],ae.prototype,"tooltip",void 0);Re([(0,de.query)(".ft-tooltip--content")],ae.prototype,"tooltipContent",void 0);Re([(0,de.state)()],ae.prototype,"visible",void 0);Re([(0,de.eventOptions)({passive:!0})],ae.prototype,"onTouch",null);Re([(0,de.eventOptions)({passive:!0})],ae.prototype,"onHover",null);Re([(0,de.eventOptions)({passive:!0})],ae.prototype,"onOut",null);Re([(0,de.eventOptions)({passive:!0})],ae.prototype,"onClick",null)});var ad=f(()=>{"use strict"});var id,Ea=f(()=>{"use strict";id=b(N());Ca();Ca();ua();ad();(0,id.customElement)("ft-tooltip")(ae)});var Uo=Vt((jv,sd)=>{sd.exports=ftGlobals.litUnsafeHTML});function cd(t,e){var o,n,a,i;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[s,l]=(((o=wh.get(t))!==null&&o!==void 0?o:t)+"/").split("/");return(i=(a=(n=wa.get(l))!==null&&n!==void 0?n:wa.get(e))!==null&&a!==void 0?a:wa.get(s))!==null&&i!==void 0?i:A.UNKNOWN}var At,A,wa,wh,Vv,Aa=f(()=>{"use strict";(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.EYE="",t.SHARE="󨃱",t.GRIP_LINES_SOLID="",t.TRANSLATE_SPARKLE_SOLID="",t.CODE=""})(At||(At={}));(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=""})(A||(A={}));wa=new Map([...["abw"].map(t=>[t,A.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,A.AUDIO]),...["avi"].map(t=>[t,A.AVI]),...["chm","xhs"].map(t=>[t,A.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,A.CODE]),...["csv"].map(t=>[t,A.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,A.DITA]),...["epub"].map(t=>[t,A.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,A.EXCEL]),...["flac"].map(t=>[t,A.FLAC]),...["gif"].map(t=>[t,A.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,A.GZIP]),...["html","htm","xhtml"].map(t=>[t,A.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,A.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,A.JPEG]),...["json"].map(t=>[t,A.JSON]),...["m4a","m4p"].map(t=>[t,A.M4A]),...["mov","qt"].map(t=>[t,A.MOV]),...["mp3"].map(t=>[t,A.MP3]),...["mp4","m4v"].map(t=>[t,A.MP4]),...["ogg","oga"].map(t=>[t,A.OGG]),...["pdf","ps"].map(t=>[t,A.PDF]),...["png"].map(t=>[t,A.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,A.POWERPOINT]),...["rar"].map(t=>[t,A.RAR]),...["stp"].map(t=>[t,A.STP]),...["txt","rtf","md","mdown"].map(t=>[t,A.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,A.VIDEO]),...["wav"].map(t=>[t,A.WAV]),...["wma"].map(t=>[t,A.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,A.WORD]),...["xml","xsl","rdf"].map(t=>[t,A.XML]),...["yaml","yml","x-yaml"].map(t=>[t,A.YAML]),...["zip"].map(t=>[t,A.ZIP])]),wh=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);Vv={[A.ABW]:"#91ABC6",[A.AUDIO]:"#1795E3",[A.AVI]:"#E63324",[A.CHM]:"#71C3EB",[A.CODE]:"#71C3EB",[A.CSV]:"#1F7345",[A.DITA]:"#71C3EB",[A.EPUB]:"#85B926",[A.EXCEL]:"#1F7345",[A.FLAC]:"#1795E3",[A.GIF]:"#59B031",[A.GZIP]:"#F8AB36",[A.HTML]:"#71C3EB",[A.IMAGE]:"#59B031",[A.JPEG]:"#59B031",[A.JSON]:"#71C3EB",[A.M4A]:"#1795E3",[A.MOV]:"#E63324",[A.MP3]:"#1795E3",[A.MP4]:"#E63324",[A.OGG]:"#1795E3",[A.PDF]:"#E44948",[A.PNG]:"#59B031",[A.POWERPOINT]:"#B54A2B",[A.RAR]:"#F8AB36",[A.STP]:"#3764B1",[A.TEXT]:"#3162AB",[A.UNKNOWN]:"#999999",[A.VIDEO]:"#E63324",[A.WAV]:"#1795E3",[A.WMA]:"#1795E3",[A.WORD]:"#3162AB",[A.XML]:"#71C3EB",[A.YAML]:"#71C3EB",[A.ZIP]:"#F8AB36"}});var _e,Ra=f(()=>{"use strict";(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(_e||(_e={}))});var Jr,er,ld,dd,Fo,Ne,Na=f(()=>{"use strict";Jr=b(B()),er=b(Q()),ld=b(N()),dd=b(Uo());Aa();Fr();Ra();Fo=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},Ne=class extends ld.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=Jr.nothing}render(){let e=this.variant&&Object.values(_e).includes(this.variant)?this.variant:_e.fluid_topics,o=e!==_e.material||!!this.value;return Jr.html`
|
|
540
|
+
`}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="",rd(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))}};ae.elementDefinitions={"ft-typography":se};ae.styles=Ll;Re([(0,de.property)()],ae.prototype,"text",void 0);Re([(0,de.property)({type:Boolean})],ae.prototype,"manual",void 0);Re([(0,de.property)({type:Boolean})],ae.prototype,"inline",void 0);Re([(0,de.property)({type:Number})],ae.prototype,"delay",void 0);Re([(0,de.property)()],ae.prototype,"position",void 0);Re([(0,de.queryAssignedNodes)()],ae.prototype,"slotNodes",void 0);Re([(0,de.query)(".ft-tooltip--container")],ae.prototype,"container",void 0);Re([(0,de.query)(".ft-tooltip")],ae.prototype,"tooltip",void 0);Re([(0,de.query)(".ft-tooltip--content")],ae.prototype,"tooltipContent",void 0);Re([(0,de.state)()],ae.prototype,"visible",void 0);Re([(0,de.eventOptions)({passive:!0})],ae.prototype,"onTouch",null);Re([(0,de.eventOptions)({passive:!0})],ae.prototype,"onHover",null);Re([(0,de.eventOptions)({passive:!0})],ae.prototype,"onOut",null);Re([(0,de.eventOptions)({passive:!0})],ae.prototype,"onClick",null)});var ad=f(()=>{"use strict"});var id,Ea=f(()=>{"use strict";id=b(N());Ca();Ca();ua();ad();(0,id.customElement)("ft-tooltip")(ae)});var Uo=Vt((jv,sd)=>{sd.exports=ftGlobals.litUnsafeHTML});function cd(t,e){var o,n,a,i;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[s,l]=(((o=wh.get(t))!==null&&o!==void 0?o:t)+"/").split("/");return(i=(a=(n=wa.get(l))!==null&&n!==void 0?n:wa.get(e))!==null&&a!==void 0?a:wa.get(s))!==null&&i!==void 0?i:A.UNKNOWN}var At,A,wa,wh,Vv,Aa=f(()=>{"use strict";(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.EYE="",t.SHARE="󨃱",t.GRIP_LINES_SOLID="",t.TRANSLATE_SPARKLE_SOLID="",t.CODE=""})(At||(At={}));(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=""})(A||(A={}));wa=new Map([...["abw"].map(t=>[t,A.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,A.AUDIO]),...["avi"].map(t=>[t,A.AVI]),...["chm","xhs"].map(t=>[t,A.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,A.CODE]),...["csv"].map(t=>[t,A.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,A.DITA]),...["epub"].map(t=>[t,A.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,A.EXCEL]),...["flac"].map(t=>[t,A.FLAC]),...["gif"].map(t=>[t,A.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,A.GZIP]),...["html","htm","xhtml"].map(t=>[t,A.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,A.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,A.JPEG]),...["json"].map(t=>[t,A.JSON]),...["m4a","m4p"].map(t=>[t,A.M4A]),...["mov","qt"].map(t=>[t,A.MOV]),...["mp3"].map(t=>[t,A.MP3]),...["mp4","m4v"].map(t=>[t,A.MP4]),...["ogg","oga"].map(t=>[t,A.OGG]),...["pdf","ps"].map(t=>[t,A.PDF]),...["png"].map(t=>[t,A.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,A.POWERPOINT]),...["rar"].map(t=>[t,A.RAR]),...["stp"].map(t=>[t,A.STP]),...["txt","rtf","md","mdown"].map(t=>[t,A.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,A.VIDEO]),...["wav"].map(t=>[t,A.WAV]),...["wma"].map(t=>[t,A.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,A.WORD]),...["xml","xsl","rdf"].map(t=>[t,A.XML]),...["yaml","yml","x-yaml"].map(t=>[t,A.YAML]),...["zip"].map(t=>[t,A.ZIP])]),wh=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);Vv={[A.ABW]:"#91ABC6",[A.AUDIO]:"#1795E3",[A.AVI]:"#E63324",[A.CHM]:"#71C3EB",[A.CODE]:"#71C3EB",[A.CSV]:"#1F7345",[A.DITA]:"#71C3EB",[A.EPUB]:"#85B926",[A.EXCEL]:"#1F7345",[A.FLAC]:"#1795E3",[A.GIF]:"#59B031",[A.GZIP]:"#F8AB36",[A.HTML]:"#71C3EB",[A.IMAGE]:"#59B031",[A.JPEG]:"#59B031",[A.JSON]:"#71C3EB",[A.M4A]:"#1795E3",[A.MOV]:"#E63324",[A.MP3]:"#1795E3",[A.MP4]:"#E63324",[A.OGG]:"#1795E3",[A.PDF]:"#E44948",[A.PNG]:"#59B031",[A.POWERPOINT]:"#B54A2B",[A.RAR]:"#F8AB36",[A.STP]:"#3764B1",[A.TEXT]:"#3162AB",[A.UNKNOWN]:"#999999",[A.VIDEO]:"#E63324",[A.WAV]:"#1795E3",[A.WMA]:"#1795E3",[A.WORD]:"#3162AB",[A.XML]:"#71C3EB",[A.YAML]:"#71C3EB",[A.ZIP]:"#F8AB36"}});var _e,Ra=f(()=>{"use strict";(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(_e||(_e={}))});var eo,er,ld,dd,Fo,Ne,Na=f(()=>{"use strict";eo=b(B()),er=b(Q()),ld=b(N()),dd=b(Uo());Aa();Wr();Ra();Fo=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},Ne=class extends ld.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=eo.nothing}render(){let e=this.variant&&Object.values(_e).includes(this.variant)?this.variant:_e.fluid_topics,o=e!==_e.material||!!this.value;return eo.html`
|
|
541
541
|
<i class="ft-icon ft-icon--${e}" part="icon icon-${e}">
|
|
542
542
|
${(0,dd.unsafeHTML)(this.resolvedIcon)}
|
|
543
543
|
<slot ?hidden=${o}></slot>
|
|
544
544
|
</i>
|
|
545
|
-
`}get textContent(){var e,o;return(o=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&o!==void 0?o:""}update(e){super.update(e),["value","variant"].some(o=>e.has(o))&&this.resolveIcon()}resolveIcon(){var e,o;let n=this.value||this.textContent;switch(this.variant){case _e.file_format:this.resolvedIcon=(e=A[n.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:n;break;case _e.material:this.resolvedIcon=this.value||
|
|
545
|
+
`}get textContent(){var e,o;return(o=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&o!==void 0?o:""}update(e){super.update(e),["value","variant"].some(o=>e.has(o))&&this.resolveIcon()}resolveIcon(){var e,o;let n=this.value||this.textContent;switch(this.variant){case _e.file_format:this.resolvedIcon=(e=A[n.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:n;break;case _e.material:this.resolvedIcon=this.value||eo.nothing;break;default:this.resolvedIcon=(o=At[n.replace("-","_").toUpperCase()])!==null&&o!==void 0?o:n;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};Ne.elementDefinitions={};Ne.styles=Qc;Fo([(0,er.property)()],Ne.prototype,"variant",void 0);Fo([(0,er.property)()],Ne.prototype,"value",void 0);Fo([(0,er.state)()],Ne.prototype,"resolvedIcon",void 0);Fo([(0,er.query)("slot")],Ne.prototype,"slottedContent",void 0)});var ud,Wo=f(()=>{"use strict";ud=b(N());Na();Wr();Ra();Na();Aa();(0,ud.customElement)("ft-icon")(Ne)});var pd,fd,tr,Ia=f(()=>{"use strict";pd=b(B()),fd=b(N());Fr();tr=class extends fd.FtLitElement{render(){return pd.html`
|
|
546
546
|
<div class="ft-loader">
|
|
547
547
|
<div></div>
|
|
548
548
|
<div></div>
|
|
549
549
|
<div></div>
|
|
550
550
|
<div></div>
|
|
551
551
|
</div>
|
|
552
|
-
`}};tr.styles=qc});var hd=f(()=>{"use strict"});var yd,md=f(()=>{"use strict";yd=b(N());Ia();
|
|
552
|
+
`}};tr.styles=qc});var hd=f(()=>{"use strict"});var yd,md=f(()=>{"use strict";yd=b(N());Ia();Fr();hd();Ia();(0,yd.customElement)("ft-loader")(tr)});var Nt,Rt,La,ue,me,ee,Pa=f(()=>{"use strict";Nt=b(N());Ro();Ea();st();Wo();md();Rt=b(B()),La=b(Hr()),ue=b(Q()),me=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},ee=class extends(0,Nt.toFtFormComponent)(Nt.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",e=>{var o;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((o=this.form)===null||o===void 0||o.requestSubmit())})}render(){var e,o,n;let a=Rt.html`
|
|
553
553
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
554
554
|
<ft-typography part="label"
|
|
555
555
|
variant=${this.typographyVariant}
|
|
@@ -586,7 +586,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
586
586
|
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
|
|
587
587
|
`:Rt.html`
|
|
588
588
|
<slot part="icon" name="icon"></slot>
|
|
589
|
-
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,Nt.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};
|
|
589
|
+
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}focusWithoutTooltip(){var e;this.setTooltipManual(!0),(e=this.button)===null||e===void 0||e.focus(),this.setTooltipManual(!1)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,Nt.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};ee.elementDefinitions={"ft-ripple":X,"ft-tooltip":ae,"ft-typography":se,"ft-icon":Ne,"ft-loader":tr};me([(0,ue.property)()],ee.prototype,"href",void 0);me([(0,ue.property)()],ee.prototype,"target",void 0);me([(0,ue.property)({type:String,reflect:!0})],ee.prototype,"role",void 0);me([(0,ue.property)()],ee.prototype,"type",void 0);me([(0,ue.property)({type:Boolean})],ee.prototype,"disabled",void 0);me([(0,ue.property)()],ee.prototype,"label",void 0);me([(0,ue.property)()],ee.prototype,"icon",void 0);me([(0,ue.property)()],ee.prototype,"iconVariant",void 0);me([(0,ue.property)({type:Boolean})],ee.prototype,"trailingIcon",void 0);me([(0,ue.property)({type:Boolean})],ee.prototype,"loading",void 0);me([(0,ue.property)({attribute:"aria-label"})],ee.prototype,"ariaLabel",void 0);me([(0,ue.property)()],ee.prototype,"tooltipPosition",void 0);me([(0,ue.property)({type:Boolean})],ee.prototype,"hideTooltip",void 0);me([(0,ue.property)({type:Boolean})],ee.prototype,"forceTooltip",void 0);me([(0,ue.query)(".ft-button")],ee.prototype,"button",void 0);me([(0,ue.query)(".ft-button--label slot")],ee.prototype,"slottedContent",void 0);me([(0,ue.query)("[part=tooltip]")],ee.prototype,"tooltip",void 0)});var to,gd,Ho,ke,Ta=f(()=>{"use strict";to=b(Q()),gd=b(N());Qn();Pa();Ho=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},ke=class extends ee{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"}};ke.styles=[gd.safariEllipsisFix,tl];Ho([(0,to.property)({type:Boolean})],ke.prototype,"primary",void 0);Ho([(0,to.property)({type:Boolean})],ke.prototype,"outlined",void 0);Ho([(0,to.property)({type:Boolean})],ke.prototype,"dense",void 0);Ho([(0,to.property)({type:Boolean})],ke.prototype,"round",void 0)});var bd,E,xd,_a=f(()=>{"use strict";bd=b(B()),E=b(N());Zt();Fr();Wr();j();j();xd=[bd.css`
|
|
590
590
|
:host {
|
|
591
591
|
display: inline-block;
|
|
592
592
|
max-width: 100%;
|
|
@@ -1052,7 +1052,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1052
1052
|
.ftds--size-small.ft-button--icon-only {
|
|
1053
1053
|
width: ${h.smallIconOnlyWidth};
|
|
1054
1054
|
}
|
|
1055
|
-
`,E.noTextSelect]});var
|
|
1055
|
+
`,E.noTextSelect]});var ro,Go,zo,pt,ka=f(()=>{"use strict";Pa();ro=b(Q());Po();Go=b(N());_a();j();Wo();zo=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},pt=class extends(0,Go.toFtdsBase)(ee){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=Co.brand,this.iconVariant=_e.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 cr.large:return Ot.body2medium;case cr.medium:return Ot.caption1medium;case cr.small:return Ot.caption2medium}}};pt.styles=[Go.safariEllipsisFix,xd];zo([(0,ro.property)({type:Boolean})],pt.prototype,"primary",void 0);zo([(0,ro.property)({type:Boolean})],pt.prototype,"secondary",void 0);zo([(0,ro.property)({type:Boolean})],pt.prototype,"tertiary",void 0);zo([(0,ro.property)({type:Boolean})],pt.prototype,"round",void 0)});var vd=f(()=>{"use strict"});var Sd=f(()=>{"use strict"});var Da,jo=f(()=>{"use strict";Da=b(N());Ta();ka();Ta();Qn();vd();ka();_a();Sd();(0,Da.customElement)("ft-button")(ke);(0,Da.customElement)("ftds-button")(pt)});var Od,Z,Y,Ba,oo=f(()=>{"use strict";Od=b(B()),Z=b(N());jo();Ea();Y={height:Z.FtCssVariableFactory.create("--ft-search-input-height","","SIZE","38px"),borderRadius:Z.FtCssVariableFactory.extend("--ft-search-input-border-radius","",Z.designSystemVariables.borderRadiusS),desktopFiltersHeight:Z.FtCssVariableFactory.create("--ft-search-input-desktop-filters-height","","SIZE","350px"),floatingZIndex:Z.FtCssVariableFactory.create("--ft-search-input-floating-components-z-index","","NUMBER","3"),colorSurface:Z.FtCssVariableFactory.extend("--ft-search-input-background-color","",Z.designSystemVariables.colorSurface),colorOnSurface:Z.FtCssVariableFactory.extend("--ft-search-input-color","",Z.designSystemVariables.colorOnSurface),colorOnSurfaceMedium:Z.FtCssVariableFactory.extend("--ft-search-input-placeholder-color","",Z.designSystemVariables.colorOnSurfaceMedium),colorOutline:Z.FtCssVariableFactory.extend("--ft-search-input-outline-color","",Z.designSystemVariables.colorOutline),elevation02:Z.FtCssVariableFactory.extend("--ft-search-input-elevation","",Z.designSystemVariables.elevation02),focusOutlineColor:Z.FtCssVariableFactory.extend("--ft-search-input-focused-outline-color","",Z.designSystemVariables.colorPrimary),buttonColor:Z.FtCssVariableFactory.extend("--ft-search-input-button-color","",Z.designSystemVariables.colorPrimary),buttonRippleColor:Z.FtCssVariableFactory.extend("--ft-search-input-button-ripple-color","",Z.designSystemVariables.colorPrimary)},Ba=Od.css`
|
|
1056
1056
|
* {
|
|
1057
1057
|
box-sizing: border-box;
|
|
1058
1058
|
${(0,Z.setVariable)(ne.color,Y.buttonColor)};
|
|
@@ -1157,17 +1157,17 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1157
1157
|
}
|
|
1158
1158
|
`});var Id,Ld,Fa=f(()=>{"use strict";Id=b(B()),Ld=Id.css`
|
|
1159
1159
|
`});var Pd,Td,Wa=f(()=>{"use strict";Pd=b(B()),Td=Pd.css`
|
|
1160
|
-
`});var Yo,Ah,Ha,Rh,D,Ue=f(()=>{"use strict";Yo=b(N()),Ah="ft-app-info",Ha=class extends CustomEvent{constructor(e){super("authentication-change",{detail:e})}},Rh={session:(t,e)=>{(0,Yo.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>D.dispatchEvent(new Ha(e.payload)),0))}},D=Yo.FtReduxStore.get({name:Ah,reducers:Rh,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}})});var rr,Qo=f(()=>{"use strict";Ue();rr=class t{static get(e){let{baseUrl:o,apiIntegrationIdentifier:n}=D.getState(),a=e??n;if(o&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,a,!0)}static await(e){return new Promise(o=>{let n=t.get(e);if(n)o(n);else{let a=D.subscribe(()=>{n=t.get(e),n&&(a(),o(n))})}})}}});var za,Je,
|
|
1160
|
+
`});var Yo,Ah,Ha,Rh,D,Ue=f(()=>{"use strict";Yo=b(N()),Ah="ft-app-info",Ha=class extends CustomEvent{constructor(e){super("authentication-change",{detail:e})}},Rh={session:(t,e)=>{(0,Yo.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>D.dispatchEvent(new Ha(e.payload)),0))}},D=Yo.FtReduxStore.get({name:Ah,reducers:Rh,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}})});var rr,Qo=f(()=>{"use strict";Ue();rr=class t{static get(e){let{baseUrl:o,apiIntegrationIdentifier:n}=D.getState(),a=e??n;if(o&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,a,!0)}static await(e){return new Promise(o=>{let n=t.get(e);if(n)o(n);else{let a=D.subscribe(()=>{n=t.get(e),n&&(a(),o(n))})}})}}});var za,Je,no=f(()=>{"use strict";za=b(N());Qo();Je=class{constructor(e=!0,o){var n;this.overrideApi=o;let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new za.CacheRegistry,this.cache=e?a.commonCache:new za.CacheRegistry}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:rr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):rr.await()}clearCache(){this.cache.clearAll()}}});var It,_d,Nh,Xo,or,kd,Ga=f(()=>{"use strict";Ue();It=b(N());no();Nh=Symbol("clearAfterUnitTest"),Xo=class extends Je{constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[_d]=()=>{this.defaultMessages={},this.cache=new It.CacheRegistry,this.listeners={}},this.currentUiLocale=D.getState().uiLocale,D.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=D.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let o=e.name.toLowerCase();this.cache.setFinal(o,e),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,o){var n;if(e=e.toLowerCase(),Object.keys(o).length>0){let a={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...o};(0,It.deepEqual)(this.defaultMessages[e],a)||(this.defaultMessages[e]=a,await this.notify(e))}await this.fetchContext(e)}resolveContext(e){var o,n;return this.fetchContext(e),(n=(o=this.cache.getNow(e))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,o){let n=e.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(e,o,...n){var a;let i=e.toLowerCase(),s=this.resolveContext(i);return new It.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},s).resolve(o,...n)}async fetchContext(e){if(!this.cache.has(e))try{await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),await this.notify(e)}catch(o){console.error(o)}}subscribe(e,o){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(o),()=>{var a;return(a=this.listeners[e])===null||a===void 0?void 0:a.delete(o)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(e=>this.notify(e)))}async notify(e){this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(o=>(0,It.delay)(0).then(()=>o()).catch(()=>null)))}};_d=Nh;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Xo{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Xo{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});or=window.FluidTopicsI18nService,kd=window.FluidTopicsCustomI18nService});var Dd,Ie,je,be,ie,ja=f(()=>{"use strict";Dd=b(B()),Ie=b(Q()),je=b(N());Wa();Ue();Ga();Qo();be=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},ie=class extends je.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=()=>rr.get(),this.messageContexts=[],this.cache=new je.CacheRegistry,this.cleanSessionDebouncer=new je.Debouncer}render(){return Dd.html`
|
|
1161
1161
|
<slot></slot>
|
|
1162
|
-
`}update(e){var o,n,a,i,s;super.update(e),e.has("baseUrl")&&(D.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&D.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&D.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&D.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&D.actions.noCustom(this.noCustom),e.has("editorMode")&&D.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&D.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&D.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(l=>or.addContext(l)),e.has("openExternalDocumentInNewTab")&&D.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&D.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&D.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(D.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),D.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),D.actions.searchInAllLanguagesAllowed((s=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&s!==void 0?s:!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 e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};ie.elementDefinitions={};ie.styles=Td;be([(0,Ie.property)()],ie.prototype,"baseUrl",void 0);be([(0,Ie.property)()],ie.prototype,"apiIntegrationIdentifier",void 0);be([(0,Ie.property)()],ie.prototype,"uiLocale",void 0);be([(0,je.jsonProperty)(null)],ie.prototype,"availableUiLocales",void 0);be([(0,je.jsonProperty)(null)],ie.prototype,"metadataConfiguration",void 0);be([(0,Ie.property)({type:Boolean})],ie.prototype,"editorMode",void 0);be([(0,Ie.property)({type:Boolean})],ie.prototype,"noCustom",void 0);be([(0,Ie.property)({type:Boolean})],ie.prototype,"openExternalDocumentInNewTab",void 0);be([(0,Ie.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ie.prototype,"noCustomComponent",void 0);be([(0,Ie.property)({type:Boolean})],ie.prototype,"withManualResources",void 0);be([(0,Ie.property)({type:Boolean})],ie.prototype,"navigatorOnline",void 0);be([(0,Ie.property)({type:Boolean})],ie.prototype,"forcedOffline",void 0);be([(0,Ie.property)({type:Object})],ie.prototype,"apiProvider",void 0);be([(0,je.jsonProperty)([])],ie.prototype,"messageContexts",void 0);be([(0,je.jsonProperty)(void 0)],ie.prototype,"session",void 0);be([(0,Ie.state)()],ie.prototype,"localesConfiguration",void 0)});function Ih(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var o,n,a;if(Array.isArray(t)){if(o=t.length,o!=e.length)return!1;for(n=o;n--!==0;)if(!Jo(t[n],e[n]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;for(n of t.entries())if(!Jo(n[1],e.get(n[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(a=Object.keys(t),o=a.length,o!==Object.keys(e).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[n]))return!1;for(n=o;n--!==0;){var i=a[n];if(!Jo(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function Jo(t,e){try{return Ih(t,e)}catch{return!1}}function Va(t,e){return!Jo(t,e)}var Ka=f(()=>{"use strict"});var Lh,Bd=f(()=>{"use strict";Ka();Lh=b(Q(),1)});var en,Za=f(()=>{"use strict";en=class{constructor(){this.queue=[]}add(e,o=!1){o&&(this.queue=this.queue.filter(n=>n.type!==e.type)),this.queue.push(e)}consume(e){let o=this.queue.find(n=>n.type===e);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}}});function Md(t,e){let o=()=>JSON.parse(JSON.stringify(t));return(0,$d.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return o();try{return JSON.parse(n)}catch{return o()}},toAttribute:n=>JSON.stringify(n)},hasChanged:Va,...e??{}})}var $d,Ud=f(()=>{"use strict";$d=b(Q(),1);Ka()});var tn,Fd=f(()=>{"use strict";tn=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,o){return this.callbacks=[e],this.debounce(o)}queue(e,o){return this.callbacks.push(e),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,o;let n=[...this.callbacks];this.callbacks=[];let a=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let s of n)try{await s()}catch(l){a(l);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 rn,Ph,CS,Wd,Hd=f(()=>{rn=window,Ph=rn.ShadowRoot&&(rn.ShadyCSS===void 0||rn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,CS=Symbol(),Wd=(t,e)=>{Ph?t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):e.forEach(o=>{let n=document.createElement("style"),a=rn.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,t.appendChild(n)})}});var zd,on,Gd=f(()=>{"use strict";zd=b(B(),1);Hd();on=class extends zd.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([a,i])=>e.registry.define(a,i)));let o={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return Wd(n,e.elementStyles),n}}});var no,nn,Zd,jd,Vd,qd,Kd,Lt,Yd=f(()=>{"use strict";no=b(Q(),1);Ud();Fd();Gd();nn=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},jd=Symbol("constructorPrototype"),Vd=Symbol("constructorName"),qd=Symbol("exportpartsDebouncer"),Kd=Symbol("dynamicDependenciesLoaded"),Lt=class extends on{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Zd]=new tn(5),this[Vd]=this.constructor.name,this[jd]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Vd]&&Object.setPrototypeOf(this,this[jd])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let e=this.constructor;e[Kd]||(e[Kd]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}applyCustomStylesheet(e){var o,n,a;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(e.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 e,o,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[qd].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(e){var o,n,a,i,s,l;let p=x=>x!=null&&x.trim().length>0,u=e.filter(p).map(x=>x.trim());if(u.length===0){this.removeAttribute("exportparts");return}let y=new Set;for(let x of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let O=(i=(a=x.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],S=(l=(s=x.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(C=>C.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...O,...S).filter(p).map(C=>C.trim()).forEach(C=>y.add(C))}if(y.size===0){this.removeAttribute("exportparts");return}let g=[...y.values()].flatMap(x=>u.map(O=>`${x}:${O}--${x}`));this.setAttribute("exportparts",[...this.part,...g].join(", "))}};Zd=qd;nn([(0,no.property)()],Lt.prototype,"exportpartsPrefix",void 0);nn([Md([])],Lt.prototype,"exportpartsPrefixes",void 0);nn([(0,no.property)()],Lt.prototype,"customStylesheet",void 0);nn([(0,no.state)()],Lt.prototype,"useAdoptedStyleSheets",void 0)});function ao(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var an=f(()=>{"use strict"});var Qd,Xd,Jd,sn,Pt,nr,io,eu=f(()=>{"use strict";Yd();an();sn=Symbol("internalReduxEventsUnsubscribers"),Pt=Symbol("internalStoresUnsubscribers"),nr=Symbol("internalStores"),io=class extends Lt{constructor(){super(...arguments),this[Qd]=new Map,this[Xd]=new Map,this[Jd]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(o=>e.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[nr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[nr].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[nr].get(e)}addStore(e,o){var n;o=(n=o??(ao(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this.setupStore(o,e)}removeStore(e){let o=typeof e=="string"?e:e.name;this.unsubscribeFromStore(o),this[nr].delete(o)}setupStore(e,o){this[nr].set(e,o),this.subscribeToStore(e,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[nr].forEach((e,o)=>this.subscribeToStore(o,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let a=this.getStore(e.store);a&&(e.store?this[Pt].has(e.store):this[Pt].size>0)&&(this[o]=e.selector(a.getState(),this))}})}subscribeToStore(e,o){var n;this[Pt].set(e,o.subscribe(()=>this.updateFromStores())),ao(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||o.name===a.store)){let s=l=>this[i](l);o.addEventListener(a.eventName,s),this[sn].push(()=>o.removeEventListener(a.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[Pt].forEach((e,o)=>this.unsubscribeFromStore(o)),this[sn].forEach(e=>e()),this[sn]=[]}unsubscribeFromStore(e){this[Pt].has(e)&&this[Pt].get(e)(),this[Pt].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Qd=Pt,Xd=nr,Jd=sn;io.reduxProperties=new Map;io.reduxReactiveProperties=new Set;io.reduxEventListeners=new Map});function Fe(t){for(var e=arguments.length,o=Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ft(t){return!!t&&!!t[ee]}function Ve(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===Uh}(t)||Array.isArray(t)||!!t[su]||!!(!((e=t.constructor)===null||e===void 0)&&e[su])||oi(t)||ni(t))}function ar(t,e,o){o===void 0&&(o=!1),wr(t)===0?(o?Object.keys:Er)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,a){return e(a,n,t)})}function wr(t){var e=t[ee];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:oi(t)?2:ni(t)?3:0}function Cr(t,e){return wr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Th(t,e){return wr(t)===2?t.get(e):t[e]}function cu(t,e,o){var n=wr(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function lu(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function oi(t){return $h&&t instanceof Map}function ni(t){return Mh&&t instanceof Set}function Tt(t){return t.o||t.t}function ai(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=pu(t);delete e[ee];for(var o=Er(e),n=0;n<o.length;n++){var a=o[n],i=e[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[a]})}return Object.create(Object.getPrototypeOf(t),e)}function ii(t,e){return e===void 0&&(e=!1),si(t)||ft(t)||!Ve(t)||(wr(t)>1&&(t.set=t.add=t.clear=t.delete=_h),Object.freeze(t),e&&ar(t,function(o,n){return ii(n,!0)},!0)),t}function _h(){Fe(2)}function si(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function et(t){var e=ri[t];return e||Fe(18,t),e}function kh(t,e){ri[t]||(ri[t]=e)}function Ja(){return co}function qa(t,e){e&&(et("Patches"),t.u=[],t.s=[],t.v=e)}function cn(t){ei(t),t.p.forEach(Dh),t.p=null}function ei(t){t===co&&(co=t.l)}function tu(t){return co={p:[],l:co,h:t,m:!0,_:0}}function Dh(t){var e=t[ee];e.i===0||e.i===1?e.j():e.g=!0}function Ya(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||et("ES5").S(e,t,n),n?(o[ee].P&&(cn(e),Fe(4)),Ve(t)&&(t=ln(e,t),e.l||dn(e,t)),e.u&&et("Patches").M(o[ee].t,t,e.u,e.s)):t=ln(e,o,[]),cn(e),e.u&&e.v(e.u,e.s),t!==uu?t:void 0}function ln(t,e,o){if(si(e))return e;var n=e[ee];if(!n)return ar(e,function(l,p){return ru(t,n,e,l,p,o)},!0),e;if(n.A!==t)return e;if(!n.P)return dn(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=ai(n.k):n.o,i=a,s=!1;n.i===3&&(i=new Set(a),a.clear(),s=!0),ar(i,function(l,p){return ru(t,n,a,l,p,o,s)}),dn(t,a,!1),o&&t.u&&et("Patches").N(n,o,t.u,t.s)}return n.o}function ru(t,e,o,n,a,i,s){if(ft(a)){var l=ln(t,a,i&&e&&e.i!==3&&!Cr(e.R,n)?i.concat(n):void 0);if(cu(o,n,l),!ft(l))return;t.m=!1}else s&&o.add(a);if(Ve(a)&&!si(a)){if(!t.h.D&&t._<1)return;ln(t,a),e&&e.A.l||dn(t,a)}}function dn(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&ii(e,o)}function Qa(t,e){var o=t[ee];return(o?Tt(o):t)[e]}function ou(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var n=Object.getOwnPropertyDescriptor(o,e);if(n)return n;o=Object.getPrototypeOf(o)}}function _t(t){t.P||(t.P=!0,t.l&&_t(t.l))}function Xa(t){t.o||(t.o=ai(t.t))}function ti(t,e,o){var n=oi(e)?et("MapSet").F(e,o):ni(e)?et("MapSet").T(e,o):t.O?function(a,i){var s=Array.isArray(a),l={i:s?1:0,A:i?i.A:Ja(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},p=l,u=lo;s&&(p=[l],u=so);var y=Proxy.revocable(p,u),g=y.revoke,x=y.proxy;return l.k=x,l.j=g,x}(e,o):et("ES5").J(e,o);return(o?o.A:Ja()).p.push(n),n}function Bh(t){return ft(t)||Fe(22,t),function e(o){if(!Ve(o))return o;var n,a=o[ee],i=wr(o);if(a){if(!a.P&&(a.i<4||!et("ES5").K(a)))return a.t;a.I=!0,n=nu(o,i),a.I=!1}else n=nu(o,i);return ar(n,function(s,l){a&&Th(a.t,s)===l||cu(n,s,e(l))}),i===3?new Set(n):n}(t)}function nu(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return ai(t)}function du(){function t(s,l){var p=i[s];return p?p.enumerable=l:i[s]=p={configurable:!0,enumerable:l,get:function(){var u=this[ee];return lo.get(u,s)},set:function(u){var y=this[ee];lo.set(y,s,u)}},p}function e(s){for(var l=s.length-1;l>=0;l--){var p=s[l][ee];if(!p.P)switch(p.i){case 5:n(p)&&_t(p);break;case 4:o(p)&&_t(p)}}}function o(s){for(var l=s.t,p=s.k,u=Er(p),y=u.length-1;y>=0;y--){var g=u[y];if(g!==ee){var x=l[g];if(x===void 0&&!Cr(l,g))return!0;var O=p[g],S=O&&O[ee];if(S?S.t!==x:!lu(O,x))return!0}}var C=!!l[ee];return u.length!==Er(l).length+(C?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var p=Object.getOwnPropertyDescriptor(l,l.length-1);if(p&&!p.get)return!0;for(var u=0;u<l.length;u++)if(!l.hasOwnProperty(u))return!0;return!1}function a(s){s.g&&Fe(3,JSON.stringify(Tt(s)))}var i={};kh("ES5",{J:function(s,l){var p=Array.isArray(s),u=function(g,x){if(g){for(var O=Array(x.length),S=0;S<x.length;S++)Object.defineProperty(O,""+S,t(S,!0));return O}var C=pu(x);delete C[ee];for(var P=Er(C),I=0;I<P.length;I++){var L=P[I];C[L]=t(L,g||!!C[L].enumerable)}return Object.create(Object.getPrototypeOf(x),C)}(p,s),y={i:p?5:4,A:l?l.A:Ja(),P:!1,I:!1,R:{},l,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,ee,{value:y,writable:!0}),u},S:function(s,l,p){p?ft(l)&&l[ee].A===s&&e(s.p):(s.u&&function u(y){if(y&&typeof y=="object"){var g=y[ee];if(g){var x=g.t,O=g.k,S=g.R,C=g.i;if(C===4)ar(O,function(U){U!==ee&&(x[U]!==void 0||Cr(x,U)?S[U]||u(O[U]):(S[U]=!0,_t(g)))}),ar(x,function(U){O[U]!==void 0||Cr(O,U)||(S[U]=!1,_t(g))});else if(C===5){if(n(g)&&(_t(g),S.length=!0),O.length<x.length)for(var P=O.length;P<x.length;P++)S[P]=!1;else for(var I=x.length;I<O.length;I++)S[I]=!0;for(var L=Math.min(O.length,x.length),$=0;$<L;$++)O.hasOwnProperty($)||(S[$]=!0),S[$]===void 0&&u(O[$])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var au,co,ci,$h,Mh,iu,uu,su,ee,Uh,Er,pu,ri,lo,so,Fh,De,Wh,DS,BS,$S,MS,US,FS,un,pn=f(()=>{ci=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",$h=typeof Map<"u",Mh=typeof Set<"u",iu=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",uu=ci?Symbol.for("immer-nothing"):((au={})["immer-nothing"]=!0,au),su=ci?Symbol.for("immer-draftable"):"__$immer_draftable",ee=ci?Symbol.for("immer-state"):"__$immer_state",Uh=""+Object.prototype.constructor,Er=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,pu=Object.getOwnPropertyDescriptors||function(t){var e={};return Er(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},ri={},lo={get:function(t,e){if(e===ee)return t;var o=Tt(t);if(!Cr(o,e))return function(a,i,s){var l,p=ou(i,s);return p?"value"in p?p.value:(l=p.get)===null||l===void 0?void 0:l.call(a.k):void 0}(t,o,e);var n=o[e];return t.I||!Ve(n)?n:n===Qa(t.t,e)?(Xa(t),t.o[e]=ti(t.A.h,n,t)):n},has:function(t,e){return e in Tt(t)},ownKeys:function(t){return Reflect.ownKeys(Tt(t))},set:function(t,e,o){var n=ou(Tt(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var a=Qa(Tt(t),e),i=a?.[ee];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(lu(o,a)&&(o!==void 0||Cr(t.t,e)))return!0;Xa(t),_t(t)}return t.o[e]===o&&(o!==void 0||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return Qa(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Xa(t),_t(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=Tt(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){Fe(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Fe(12)}},so={};ar(lo,function(t,e){so[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),so.deleteProperty=function(t,e){return so.set.call(this,t,e,void 0)},so.set=function(t,e,o){return lo.set.call(this,t[0],e,o,t[0])};Fh=function(){function t(o){var n=this;this.O=iu,this.D=!0,this.produce=function(a,i,s){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var p=n;return function(C){var P=this;C===void 0&&(C=l);for(var I=arguments.length,L=Array(I>1?I-1:0),$=1;$<I;$++)L[$-1]=arguments[$];return p.produce(C,function(U){var F;return(F=i).call.apply(F,[P,U].concat(L))})}}var u;if(typeof i!="function"&&Fe(6),s!==void 0&&typeof s!="function"&&Fe(7),Ve(a)){var y=tu(n),g=ti(n,a,void 0),x=!0;try{u=i(g),x=!1}finally{x?cn(y):ei(y)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(C){return qa(y,s),Ya(C,y)},function(C){throw cn(y),C}):(qa(y,s),Ya(u,y))}if(!a||typeof a!="object"){if((u=i(a))===void 0&&(u=a),u===uu&&(u=void 0),n.D&&ii(u,!0),s){var O=[],S=[];et("Patches").M(a,u,O,S),s(O,S)}return u}Fe(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(u){for(var y=arguments.length,g=Array(y>1?y-1:0),x=1;x<y;x++)g[x-1]=arguments[x];return n.produceWithPatches(u,function(O){return a.apply(void 0,[O].concat(g))})};var s,l,p=n.produce(a,i,function(u,y){s=u,l=y});return typeof Promise<"u"&&p instanceof Promise?p.then(function(u){return[u,s,l]}):[p,s,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){Ve(o)||Fe(8),ft(o)&&(o=Bh(o));var n=tu(this),a=ti(this,o,void 0);return a[ee].C=!0,ei(n),a},e.finishDraft=function(o,n){var a=o&&o[ee],i=a.A;return qa(i,n),Ya(void 0,i)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!iu&&Fe(20),this.O=o},e.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var s=et("Patches").$;return ft(o)?s(o,n):this.produce(o,function(l){return s(l,n)})},t}(),De=new Fh,Wh=De.produce,DS=De.produceWithPatches.bind(De),BS=De.setAutoFreeze.bind(De),$S=De.setUseProxies.bind(De),MS=De.applyPatches.bind(De),US=De.createDraft.bind(De),FS=De.finishDraft.bind(De),un=Wh});function kt(t){"@babel/helpers - typeof";return kt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kt(t)}var li=f(()=>{});function di(t,e){if(kt(t)!=="object"||t===null)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(kt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var fu=f(()=>{li()});function ui(t){var e=di(t,"string");return kt(e)==="symbol"?e:String(e)}var hu=f(()=>{li();fu()});function pi(t,e,o){return e=ui(e),e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}var yu=f(()=>{hu()});function mu(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),o.push.apply(o,n)}return o}function fn(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?mu(Object(o),!0).forEach(function(n){pi(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):mu(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}var gu=f(()=>{yu()});function xe(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}function Hh(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function hi(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(xe(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(xe(1));return o(hi)(t,e)}if(typeof t!="function")throw new Error(xe(2));var a=t,i=e,s=[],l=s,p=!1;function u(){l===s&&(l=s.slice())}function y(){if(p)throw new Error(xe(3));return i}function g(C){if(typeof C!="function")throw new Error(xe(4));if(p)throw new Error(xe(5));var P=!0;return u(),l.push(C),function(){if(P){if(p)throw new Error(xe(6));P=!1,u();var L=l.indexOf(C);l.splice(L,1),s=null}}}function x(C){if(!Hh(C))throw new Error(xe(7));if(typeof C.type>"u")throw new Error(xe(8));if(p)throw new Error(xe(9));try{p=!0,i=a(i,C)}finally{p=!1}for(var P=s=l,I=0;I<P.length;I++){var L=P[I];L()}return C}function O(C){if(typeof C!="function")throw new Error(xe(10));a=C,x({type:hn.REPLACE})}function S(){var C,P=g;return C={subscribe:function(L){if(typeof L!="object"||L===null)throw new Error(xe(11));function $(){L.next&&L.next(y())}$();var U=P($);return{unsubscribe:U}}},C[bu]=function(){return this},C}return x({type:hn.INIT}),n={dispatch:x,subscribe:g,getState:y,replaceReducer:O},n[bu]=S,n}function zh(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:hn.INIT});if(typeof n>"u")throw new Error(xe(12));if(typeof o(void 0,{type:hn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(xe(13))})}function xu(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var a=e[n];typeof t[a]=="function"&&(o[a]=t[a])}var i=Object.keys(o),s,l;try{zh(o)}catch(p){l=p}return function(u,y){if(u===void 0&&(u={}),l)throw l;if(0)var g;for(var x=!1,O={},S=0;S<i.length;S++){var C=i[S],P=o[C],I=u[C],L=P(I,y);if(typeof L>"u"){var $=y&&y.type;throw new Error(xe(14))}O[C]=L,x=x||L!==I}return x=x||i.length!==Object.keys(u).length,x?O:u}}function Ar(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function vu(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(xe(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=e.map(function(p){return p(s)});return i=Ar.apply(void 0,l)(a.dispatch),fn(fn({},a),{},{dispatch:i})}}}var bu,fi,hn,yn=f(()=>{gu();bu=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),fi=function(){return Math.random().toString(36).substring(7).split("").join(".")},hn={INIT:"@@redux/INIT"+fi(),REPLACE:"@@redux/REPLACE"+fi(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+fi()}}});function Su(t){var e=function(n){var a=n.dispatch,i=n.getState;return function(s){return function(l){return typeof l=="function"?l(a,i,t):s(l)}}};return e}var Ou,yi,Cu=f(()=>{Ou=Su();Ou.withExtraArgument=Su;yi=Ou});function Xh(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return e===o}function xi(t){return Ve(t)?un(t,function(){}):t}function ty(t){return typeof t=="boolean"}function ry(){return function(e){return oy(e)}}function oy(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,n=t.immutableCheck,a=n===void 0?!0:n,i=t.serializableCheck,s=i===void 0?!0:i,l=new Jh;if(o&&(ty(o)?l.push(yi):l.push(yi.withExtraArgument(o.extraArgument))),0){if(a)var p;if(s)var u}return l}function Iu(t){var e=ry(),o=t||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,s=i===void 0?e():i,l=o.devTools,p=l===void 0?!0:l,u=o.preloadedState,y=u===void 0?void 0:u,g=o.enhancers,x=g===void 0?void 0:g,O;if(typeof a=="function")O=a;else if(Xh(a))O=xu(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 S=s;if(typeof S=="function"&&(S=S(e),!gi&&!Array.isArray(S)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!gi&&S.some(function(U){return typeof U!="function"}))throw new Error("each middleware provided to configureStore must be a function");var C=vu.apply(void 0,S),P=Ar;p&&(P=Qh(Dt({trace:!gi},typeof p=="object"&&p)));var I=new ey(C),L=I;Array.isArray(x)?L=Rr([C],x):typeof x=="function"&&(L=x(I));var $=P.apply(void 0,L);return hi(O,y,$)}function Bt(t,e){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(e){var i=e.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return Dt(Dt({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:n[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(n){return n.type===t},o}function Lu(t){var e={},o=[],n,a={addCase:function(i,s){var l=typeof i=="string"?i:i.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,a},addMatcher:function(i,s){return o.push({matcher:i,reducer:s}),a},addDefaultCase:function(i){return n=i,a}};return t(a),[e,o,n]}function ny(t){return typeof t=="function"}function ay(t,e,o,n){o===void 0&&(o=[]);var a=typeof e=="function"?Lu(e):[e,o,n],i=a[0],s=a[1],l=a[2],p;if(ny(t))p=function(){return xi(t())};else{var u=xi(t);p=function(){return u}}function y(g,x){g===void 0&&(g=p());var O=Rr([i[x.type]],s.filter(function(S){var C=S.matcher;return C(x)}).map(function(S){var C=S.reducer;return C}));return O.filter(function(S){return!!S}).length===0&&(O=[l]),O.reduce(function(S,C){if(C)if(ft(S)){var P=S,I=C(P,x);return I===void 0?S:I}else{if(Ve(S))return un(S,function(L){return C(L,x)});var I=C(S,x);if(I===void 0){if(S===null)return S;throw Error("A case reducer on a non-draftable value must not return undefined")}return I}return S},g)}return y.getInitialState=p,y}function iy(t,e){return t+"/"+e}function Pu(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof t.initialState=="function"?t.initialState:xi(t.initialState),n=t.reducers||{},a=Object.keys(n),i={},s={},l={};a.forEach(function(y){var g=n[y],x=iy(e,y),O,S;"reducer"in g?(O=g.reducer,S=g.prepare):O=g,i[y]=O,s[x]=O,l[y]=S?Bt(x,S):Bt(x)});function p(){var y=typeof t.extraReducers=="function"?Lu(t.extraReducers):[t.extraReducers],g=y[0],x=g===void 0?{}:g,O=y[1],S=O===void 0?[]:O,C=y[2],P=C===void 0?void 0:C,I=Dt(Dt({},x),s);return ay(o,function(L){for(var $ in I)L.addCase($,I[$]);for(var U=0,F=S;U<F.length;U++){var Ee=F[U];L.addMatcher(Ee.matcher,Ee.reducer)}P&&L.addDefaultCase(P)})}var u;return{name:e,reducer:function(y,g){return u||(u=p()),u(y,g)},actions:l,caseReducers:i,getInitialState:function(){return u||(u=p()),u.getInitialState()}}}function uy(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function py(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Nu,Gh,Rr,jh,Vh,Kh,Eu,Zh,qh,wu,Dt,mi,Yh,Qh,nO,Jh,ey,gi,sy,cy,ly,bi,Au,dy,cO,Tu,_u,ku,lO,dO,uO,pO,vi,fO,hO,yO,Ru,mO,fy,gO,Du=f(()=>{pn();yn();yn();yn();Cu();pn();pn();Nu=function(){var t=function(e,o){return t=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])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function n(){this.constructor=e}e.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),Gh=function(t,e){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(y){return p([u,y])}}function p(u){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){o=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){o.label=u[1];break}if(u[0]===6&&o.label<i[1]){o.label=i[1],i=u;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(u);break}i[2]&&o.ops.pop(),o.trys.pop();continue}u=e.call(t,o)}catch(y){u=[6,y],a=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},Rr=function(t,e){for(var o=0,n=e.length,a=t.length;o<n;o++,a++)t[a]=e[o];return t},jh=Object.defineProperty,Vh=Object.defineProperties,Kh=Object.getOwnPropertyDescriptors,Eu=Object.getOwnPropertySymbols,Zh=Object.prototype.hasOwnProperty,qh=Object.prototype.propertyIsEnumerable,wu=function(t,e,o){return e in t?jh(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Dt=function(t,e){for(var o in e||(e={}))Zh.call(e,o)&&wu(t,o,e[o]);if(Eu)for(var n=0,a=Eu(e);n<a.length;n++){var o=a[n];qh.call(e,o)&&wu(t,o,e[o])}return t},mi=function(t,e){return Vh(t,Kh(e))},Yh=function(t,e,o){return new Promise(function(n,a){var i=function(p){try{l(o.next(p))}catch(u){a(u)}},s=function(p){try{l(o.throw(p))}catch(u){a(u)}},l=function(p){return p.done?n(p.value):Promise.resolve(p.value).then(i,s)};l((o=o.apply(t,e)).next())})},Qh=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ar:Ar.apply(null,arguments)},nO=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};Jh=function(t){Nu(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,Rr([void 0],o[0].concat(this)))):new(e.bind.apply(e,Rr([void 0],o.concat(this))))},e}(Array),ey=function(t){Nu(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,Rr([void 0],o[0].concat(this)))):new(e.bind.apply(e,Rr([void 0],o.concat(this))))},e}(Array);gi=!0;sy="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",cy=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=sy[Math.random()*64|0];return e},ly=["name","message","stack","code"],bi=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Au=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),dy=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=ly;o<n.length;o++){var a=n[o];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},cO=function(){function t(e,o,n){var a=Bt(e+"/fulfilled",function(y,g,x,O){return{payload:y,meta:mi(Dt({},O||{}),{arg:x,requestId:g,requestStatus:"fulfilled"})}}),i=Bt(e+"/pending",function(y,g,x){return{payload:void 0,meta:mi(Dt({},x||{}),{arg:g,requestId:y,requestStatus:"pending"})}}),s=Bt(e+"/rejected",function(y,g,x,O,S){return{payload:O,error:(n&&n.serializeError||dy)(y||"Rejected"),meta:mi(Dt({},S||{}),{arg:x,requestId:g,rejectedWithValue:!!O,requestStatus:"rejected",aborted:y?.name==="AbortError",condition:y?.name==="ConditionError"})}}),l=!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 u(y){return function(g,x,O){var S=n?.idGenerator?n.idGenerator(y):cy(),C=new p,P,I=!1;function L(U){P=U,C.abort()}var $=function(){return Yh(this,null,function(){var U,F,Ee,Ze,Oe,qe,fe;return Gh(this,function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),Ze=(U=n?.condition)==null?void 0:U.call(n,y,{getState:x,extra:O}),py(Ze)?[4,Ze]:[3,2];case 1:Ze=m.sent(),m.label=2;case 2:if(Ze===!1||C.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return I=!0,Oe=new Promise(function(v,k){return C.signal.addEventListener("abort",function(){return k({name:"AbortError",message:P||"Aborted"})})}),g(i(S,y,(F=n?.getPendingMeta)==null?void 0:F.call(n,{requestId:S,arg:y},{getState:x,extra:O}))),[4,Promise.race([Oe,Promise.resolve(o(y,{dispatch:g,getState:x,extra:O,requestId:S,signal:C.signal,abort:L,rejectWithValue:function(v,k){return new bi(v,k)},fulfillWithValue:function(v,k){return new Au(v,k)}})).then(function(v){if(v instanceof bi)throw v;return v instanceof Au?a(v.payload,S,y,v.meta):a(v,S,y)})])];case 3:return Ee=m.sent(),[3,5];case 4:return qe=m.sent(),Ee=qe instanceof bi?s(null,S,y,qe.payload,qe.meta):s(qe,S,y),[3,5];case 5:return fe=n&&!n.dispatchConditionRejection&&s.match(Ee)&&Ee.meta.condition,fe||g(Ee),[2,Ee]}})})}();return Object.assign($,{abort:L,requestId:S,arg:y,unwrap:function(){return $.then(uy)}})}}return Object.assign(u,{pending:i,rejected:s,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t}();Tu="listener",_u="completed",ku="cancelled",lO="task-"+ku,dO="task-"+_u,uO=Tu+"-"+ku,pO=Tu+"-"+_u,vi="listenerMiddleware",fO=Bt(vi+"/add"),hO=Bt(vi+"/removeAll"),yO=Bt(vi+"/remove"),mO=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Ru||(Ru=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},fy=function(t){return function(e){setTimeout(e,t)}},gO=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:fy(10);du()});function hy(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(o,n,a){this.eventBus.addEventListener(o,n,a)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,a){this.eventBus.removeEventListener(o,n,a)}}}var mn,Bu=f(()=>{"use strict";mn=class extends hy(Object){}});var $u,Mu=f(()=>{"use strict";Du();an();Za();Bu();window.ftReduxStores||(window.ftReduxStores={});$u=class t extends mn{static get(e){var o;let n=typeof e=="string"?e:e.name,a=typeof e=="string"?void 0:e,i=window.ftReduxStores[n];if(ao(i))return i;if(a==null)return;let s=Pu({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=Iu({reducer:(p,u)=>u.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...p,...u.overwrites}:s.reducer(p,u)});return window.ftReduxStores[a.name]=new t(s,l)}constructor(e,o){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new en,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,a,i)=>{let s=a,l=n[s];return l?(...p)=>{let u=l(...p);return this.reduxStore.dispatch(u),u}:p=>{this.setState({[s]:p})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}});var Uu=f(()=>{"use strict";Bd();Za();eu();Mu();an()});var Fu=f(()=>{"use strict"});var yy,Wu=f(()=>{"use strict";yy=b(Q());Uu();Fu();Ue()});var gn,Si=f(()=>{"use strict";Ue();oo();gn=class extends Je{async listMySearches(){let e=D.getState().session;return e?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}}});var bn,Oi=f(()=>{"use strict";Ue();oo();bn=class extends Je{async listMyBookmarks(){let e=D.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}}});var vn,my,xn,Ci,Hu,Ei=f(()=>{"use strict";vn=b(N());Si();Oi();Ue();my="ft-user-assets",xn=vn.FtReduxStore.get({name:my,initialState:{savedSearches:void 0,bookmarks:void 0}}),Ci=class{constructor(){this.currentSession=D.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new bn,this.savedSearchesService=new gn,D.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=D.getState();(0,vn.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),xn.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),xn.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();xn.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let o=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;xn.actions.bookmarks(o)}}},Hu=new Ci});var wi,zu=f(()=>{"use strict";Ue();wi=class{addCommand(e,o=!1){D.commands.add(e,o)}consumeCommand(e){return D.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new wi});var Gu,Ai,ju=f(()=>{"use strict";Gu=b(N()),Ai=class{highlightHtml(e,o,n){(0,Gu.highlightHtml)(e,o,n)}};window.FluidTopicsHighlightHtmlService=new Ai});var Vu,Ri,Ku=f(()=>{"use strict";Vu=b(N());Ue();Ri=class{isDate(e){var o,n,a,i;return(i=(a=((n=(o=D.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===e))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(e,o){var n,a,i;return Vu.DateFormatter.format(e,(n=o?.locale)!==null&&n!==void 0?n:D.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new Ri});var Zu,Nr,qu=f(()=>{"use strict";Zu=b(N());Ue();Nr=class{static get(e,o){var n,a,i,s;let l=D.getState(),{lang:p,region:u}=(a=(n=l.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new Zu.SearchPlaceConverter(l.baseUrl,(s=(i=window.FluidTopicsClientConfiguration)===null||i===void 0?void 0:i.predefinedSorts)!==null&&s!==void 0?s:{},e??20,l.searchInAllLanguagesAllowed,o??`${p}-${u}`)}}});var Yu=f(()=>{"use strict";Oi();Qo();zu();Ga();oo();ju();Si();Ku();qu()});var Qu=f(()=>{"use strict"});var Xu,$t=f(()=>{"use strict";Xu=b(N());ja();Wu();Ue();Ei();Yu();Wa();Qu();ja();(0,Xu.customElement)("ft-app-context")(ie)});function We(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?kd:or}i18n(a,i,...s){var l;if(typeof a=="string")return this.i18nService.resolveMessage(a,i,...s);let p=(l=a.args)!==null&&l!==void 0?l:a.argsProvider?a.argsProvider(this):[];return this.i18nService.resolveMessage(a.context,a.key,...p)}onI18nUpdate(a){var i,s,l;(i=this[Ni])===null||i===void 0||i.forEach((p,u)=>{let y=this.getI18nAttributeValue(u);y&&(this[u]=this.getI18nAttributeMessage(y,p,a))}),(s=this[Ii])===null||s===void 0||s.forEach((p,u)=>{let y=this.getI18nListAttributeValues(u);this[u]=y?.map(g=>this.getI18nAttributeMessage(g,p,a))}),(l=this[Sn])===null||l===void 0||l.forEach((p,u)=>{p.context.toLowerCase()===a.toLowerCase()&&(this[u]=this.i18n(p))}),setTimeout(()=>this.requestUpdate(),0)}buildI18nAttributeMessage(a,i){return{...a,message:this.i18n({context:a.context,key:a.key,...i})}}getI18nAttributeMessage(a,i,s){var l;let p=!s||((l=a.context)===null||l===void 0?void 0:l.toLowerCase())===s.toLowerCase();return a.context&&a.key&&p?this.buildI18nAttributeMessage(a,i):a}update(a){var i,s,l;super.update(a),(i=this[Ni])===null||i===void 0||i.forEach((p,u)=>{let y=this.getI18nAttributeValue(u);y?.context&&y.key&&(a.has(u)||p.argsProvider!=null)&&(this.addI18nContextIfNeeded(y,a,u),this[u]=this.getI18nAttributeMessage(y,p))}),(s=this[Ii])===null||s===void 0||s.forEach((p,u)=>{let y=this.getI18nListAttributeValues(u);(a.has(u)||p.argsProvider!=null)&&(this[u]=y?.map(g=>(this.addI18nContextIfNeeded(g,a,u),this.getI18nAttributeMessage(g,p))))}),(l=this[Sn])===null||l===void 0||l.forEach((p,u)=>{p.argsProvider!=null&&(this[u]=this.i18n(p))})}getI18nAttributeValue(a){return this[a]}getI18nListAttributeValues(a){return this[a]}addI18nContextIfNeeded(a,i,s){a.context&&a.key&&i.has(s)&&this.addI18nContext(a.context)}connectedCallback(){var a,i,s,l,p,u;super.connectedCallback(),new Set([...(i=(a=this[Sn])===null||a===void 0?void 0:a.values())!==null&&i!==void 0?i:[],...[...(l=(s=this[Ni])===null||s===void 0?void 0:s.keys())!==null&&l!==void 0?l:[]].map(y=>this.getI18nAttributeValue(y)),...[...(u=(p=this[Ii])===null||p===void 0?void 0:p.keys())!==null&&u!==void 0?u:[]].flatMap(y=>this.getI18nListAttributeValues(y))].map(y=>y?.context)).forEach(y=>y&&this.addI18nMessages(y))}addI18nMessages(a,i){a=a.toLowerCase(),this[uo].has(a)||this[uo].set(a,this.i18nService.subscribe(a,()=>this.onI18nUpdate(a))),this.i18nService.prepareContext(a,i??{}),this.onI18nUpdate(a)}addI18nContext(a,i){this.addI18nMessages(typeof a=="string"?a:a.name,i)}disconnectedCallback(){super.disconnectedCallback(),this[uo].forEach(a=>a()),this[uo].clear()}}return e=uo,gy([(0,ep.property)({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}var Cn,ep,gy,Ni,Ii,Sn,uo,Ju,On,En=f(()=>{"use strict";Cn=b(N());$t();ep=b(Q()),gy=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},Ni=Symbol("i18nAttributes"),Ii=Symbol("i18nListAttributes"),Sn=Symbol("i18nProperties"),uo=Symbol("i18nUnsubs");Ju=class extends We(Cn.FtLitElement){},On=class extends We(Cn.FtLitElementRedux){}});var wn,An,Rn,po,Ke,Li=f(()=>{"use strict";wn=b(B()),An=b(Q()),Rn=b(N());Fa();En();$t();po=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},Ke=class extends On{constructor(){super(),this.editorMode=!1,this.addStore(D)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":wn.nothing:wn.html`
|
|
1162
|
+
`}update(e){var o,n,a,i,s;super.update(e),e.has("baseUrl")&&(D.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&D.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&D.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&D.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&D.actions.noCustom(this.noCustom),e.has("editorMode")&&D.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&D.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&D.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(l=>or.addContext(l)),e.has("openExternalDocumentInNewTab")&&D.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&D.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&D.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(D.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),D.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),D.actions.searchInAllLanguagesAllowed((s=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&s!==void 0?s:!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 e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};ie.elementDefinitions={};ie.styles=Td;be([(0,Ie.property)()],ie.prototype,"baseUrl",void 0);be([(0,Ie.property)()],ie.prototype,"apiIntegrationIdentifier",void 0);be([(0,Ie.property)()],ie.prototype,"uiLocale",void 0);be([(0,je.jsonProperty)(null)],ie.prototype,"availableUiLocales",void 0);be([(0,je.jsonProperty)(null)],ie.prototype,"metadataConfiguration",void 0);be([(0,Ie.property)({type:Boolean})],ie.prototype,"editorMode",void 0);be([(0,Ie.property)({type:Boolean})],ie.prototype,"noCustom",void 0);be([(0,Ie.property)({type:Boolean})],ie.prototype,"openExternalDocumentInNewTab",void 0);be([(0,Ie.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ie.prototype,"noCustomComponent",void 0);be([(0,Ie.property)({type:Boolean})],ie.prototype,"withManualResources",void 0);be([(0,Ie.property)({type:Boolean})],ie.prototype,"navigatorOnline",void 0);be([(0,Ie.property)({type:Boolean})],ie.prototype,"forcedOffline",void 0);be([(0,Ie.property)({type:Object})],ie.prototype,"apiProvider",void 0);be([(0,je.jsonProperty)([])],ie.prototype,"messageContexts",void 0);be([(0,je.jsonProperty)(void 0)],ie.prototype,"session",void 0);be([(0,Ie.state)()],ie.prototype,"localesConfiguration",void 0)});function Ih(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var o,n,a;if(Array.isArray(t)){if(o=t.length,o!=e.length)return!1;for(n=o;n--!==0;)if(!Jo(t[n],e[n]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;for(n of t.entries())if(!Jo(n[1],e.get(n[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(a=Object.keys(t),o=a.length,o!==Object.keys(e).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[n]))return!1;for(n=o;n--!==0;){var i=a[n];if(!Jo(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function Jo(t,e){try{return Ih(t,e)}catch{return!1}}function Va(t,e){return!Jo(t,e)}var Ka=f(()=>{"use strict"});var Lh,Bd=f(()=>{"use strict";Ka();Lh=b(Q(),1)});var en,Za=f(()=>{"use strict";en=class{constructor(){this.queue=[]}add(e,o=!1){o&&(this.queue=this.queue.filter(n=>n.type!==e.type)),this.queue.push(e)}consume(e){let o=this.queue.find(n=>n.type===e);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}}});function Md(t,e){let o=()=>JSON.parse(JSON.stringify(t));return(0,$d.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return o();try{return JSON.parse(n)}catch{return o()}},toAttribute:n=>JSON.stringify(n)},hasChanged:Va,...e??{}})}var $d,Ud=f(()=>{"use strict";$d=b(Q(),1);Ka()});var tn,Fd=f(()=>{"use strict";tn=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,o){return this.callbacks=[e],this.debounce(o)}queue(e,o){return this.callbacks.push(e),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,o;let n=[...this.callbacks];this.callbacks=[];let a=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let s of n)try{await s()}catch(l){a(l);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 rn,Ph,CS,Wd,Hd=f(()=>{rn=window,Ph=rn.ShadowRoot&&(rn.ShadyCSS===void 0||rn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,CS=Symbol(),Wd=(t,e)=>{Ph?t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):e.forEach(o=>{let n=document.createElement("style"),a=rn.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,t.appendChild(n)})}});var zd,on,Gd=f(()=>{"use strict";zd=b(B(),1);Hd();on=class extends zd.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([a,i])=>e.registry.define(a,i)));let o={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return Wd(n,e.elementStyles),n}}});var ao,nn,Zd,jd,Vd,qd,Kd,Lt,Yd=f(()=>{"use strict";ao=b(Q(),1);Ud();Fd();Gd();nn=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},jd=Symbol("constructorPrototype"),Vd=Symbol("constructorName"),qd=Symbol("exportpartsDebouncer"),Kd=Symbol("dynamicDependenciesLoaded"),Lt=class extends on{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Zd]=new tn(5),this[Vd]=this.constructor.name,this[jd]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Vd]&&Object.setPrototypeOf(this,this[jd])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let e=this.constructor;e[Kd]||(e[Kd]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}applyCustomStylesheet(e){var o,n,a;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(e.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 e,o,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[qd].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(e){var o,n,a,i,s,l;let p=x=>x!=null&&x.trim().length>0,u=e.filter(p).map(x=>x.trim());if(u.length===0){this.removeAttribute("exportparts");return}let y=new Set;for(let x of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let O=(i=(a=x.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],S=(l=(s=x.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(C=>C.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...O,...S).filter(p).map(C=>C.trim()).forEach(C=>y.add(C))}if(y.size===0){this.removeAttribute("exportparts");return}let g=[...y.values()].flatMap(x=>u.map(O=>`${x}:${O}--${x}`));this.setAttribute("exportparts",[...this.part,...g].join(", "))}};Zd=qd;nn([(0,ao.property)()],Lt.prototype,"exportpartsPrefix",void 0);nn([Md([])],Lt.prototype,"exportpartsPrefixes",void 0);nn([(0,ao.property)()],Lt.prototype,"customStylesheet",void 0);nn([(0,ao.state)()],Lt.prototype,"useAdoptedStyleSheets",void 0)});function io(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var an=f(()=>{"use strict"});var Qd,Xd,Jd,sn,Pt,nr,so,eu=f(()=>{"use strict";Yd();an();sn=Symbol("internalReduxEventsUnsubscribers"),Pt=Symbol("internalStoresUnsubscribers"),nr=Symbol("internalStores"),so=class extends Lt{constructor(){super(...arguments),this[Qd]=new Map,this[Xd]=new Map,this[Jd]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(o=>e.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[nr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[nr].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[nr].get(e)}addStore(e,o){var n;o=(n=o??(io(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this.setupStore(o,e)}removeStore(e){let o=typeof e=="string"?e:e.name;this.unsubscribeFromStore(o),this[nr].delete(o)}setupStore(e,o){this[nr].set(e,o),this.subscribeToStore(e,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[nr].forEach((e,o)=>this.subscribeToStore(o,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let a=this.getStore(e.store);a&&(e.store?this[Pt].has(e.store):this[Pt].size>0)&&(this[o]=e.selector(a.getState(),this))}})}subscribeToStore(e,o){var n;this[Pt].set(e,o.subscribe(()=>this.updateFromStores())),io(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||o.name===a.store)){let s=l=>this[i](l);o.addEventListener(a.eventName,s),this[sn].push(()=>o.removeEventListener(a.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[Pt].forEach((e,o)=>this.unsubscribeFromStore(o)),this[sn].forEach(e=>e()),this[sn]=[]}unsubscribeFromStore(e){this[Pt].has(e)&&this[Pt].get(e)(),this[Pt].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Qd=Pt,Xd=nr,Jd=sn;so.reduxProperties=new Map;so.reduxReactiveProperties=new Set;so.reduxEventListeners=new Map});function Fe(t){for(var e=arguments.length,o=Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ft(t){return!!t&&!!t[te]}function Ve(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===Uh}(t)||Array.isArray(t)||!!t[su]||!!(!((e=t.constructor)===null||e===void 0)&&e[su])||oi(t)||ni(t))}function ar(t,e,o){o===void 0&&(o=!1),wr(t)===0?(o?Object.keys:Er)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,a){return e(a,n,t)})}function wr(t){var e=t[te];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:oi(t)?2:ni(t)?3:0}function Cr(t,e){return wr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Th(t,e){return wr(t)===2?t.get(e):t[e]}function cu(t,e,o){var n=wr(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function lu(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function oi(t){return $h&&t instanceof Map}function ni(t){return Mh&&t instanceof Set}function Tt(t){return t.o||t.t}function ai(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=pu(t);delete e[te];for(var o=Er(e),n=0;n<o.length;n++){var a=o[n],i=e[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[a]})}return Object.create(Object.getPrototypeOf(t),e)}function ii(t,e){return e===void 0&&(e=!1),si(t)||ft(t)||!Ve(t)||(wr(t)>1&&(t.set=t.add=t.clear=t.delete=_h),Object.freeze(t),e&&ar(t,function(o,n){return ii(n,!0)},!0)),t}function _h(){Fe(2)}function si(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function et(t){var e=ri[t];return e||Fe(18,t),e}function kh(t,e){ri[t]||(ri[t]=e)}function Ja(){return lo}function qa(t,e){e&&(et("Patches"),t.u=[],t.s=[],t.v=e)}function cn(t){ei(t),t.p.forEach(Dh),t.p=null}function ei(t){t===lo&&(lo=t.l)}function tu(t){return lo={p:[],l:lo,h:t,m:!0,_:0}}function Dh(t){var e=t[te];e.i===0||e.i===1?e.j():e.g=!0}function Ya(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||et("ES5").S(e,t,n),n?(o[te].P&&(cn(e),Fe(4)),Ve(t)&&(t=ln(e,t),e.l||dn(e,t)),e.u&&et("Patches").M(o[te].t,t,e.u,e.s)):t=ln(e,o,[]),cn(e),e.u&&e.v(e.u,e.s),t!==uu?t:void 0}function ln(t,e,o){if(si(e))return e;var n=e[te];if(!n)return ar(e,function(l,p){return ru(t,n,e,l,p,o)},!0),e;if(n.A!==t)return e;if(!n.P)return dn(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=ai(n.k):n.o,i=a,s=!1;n.i===3&&(i=new Set(a),a.clear(),s=!0),ar(i,function(l,p){return ru(t,n,a,l,p,o,s)}),dn(t,a,!1),o&&t.u&&et("Patches").N(n,o,t.u,t.s)}return n.o}function ru(t,e,o,n,a,i,s){if(ft(a)){var l=ln(t,a,i&&e&&e.i!==3&&!Cr(e.R,n)?i.concat(n):void 0);if(cu(o,n,l),!ft(l))return;t.m=!1}else s&&o.add(a);if(Ve(a)&&!si(a)){if(!t.h.D&&t._<1)return;ln(t,a),e&&e.A.l||dn(t,a)}}function dn(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&ii(e,o)}function Qa(t,e){var o=t[te];return(o?Tt(o):t)[e]}function ou(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var n=Object.getOwnPropertyDescriptor(o,e);if(n)return n;o=Object.getPrototypeOf(o)}}function _t(t){t.P||(t.P=!0,t.l&&_t(t.l))}function Xa(t){t.o||(t.o=ai(t.t))}function ti(t,e,o){var n=oi(e)?et("MapSet").F(e,o):ni(e)?et("MapSet").T(e,o):t.O?function(a,i){var s=Array.isArray(a),l={i:s?1:0,A:i?i.A:Ja(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},p=l,u=uo;s&&(p=[l],u=co);var y=Proxy.revocable(p,u),g=y.revoke,x=y.proxy;return l.k=x,l.j=g,x}(e,o):et("ES5").J(e,o);return(o?o.A:Ja()).p.push(n),n}function Bh(t){return ft(t)||Fe(22,t),function e(o){if(!Ve(o))return o;var n,a=o[te],i=wr(o);if(a){if(!a.P&&(a.i<4||!et("ES5").K(a)))return a.t;a.I=!0,n=nu(o,i),a.I=!1}else n=nu(o,i);return ar(n,function(s,l){a&&Th(a.t,s)===l||cu(n,s,e(l))}),i===3?new Set(n):n}(t)}function nu(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return ai(t)}function du(){function t(s,l){var p=i[s];return p?p.enumerable=l:i[s]=p={configurable:!0,enumerable:l,get:function(){var u=this[te];return uo.get(u,s)},set:function(u){var y=this[te];uo.set(y,s,u)}},p}function e(s){for(var l=s.length-1;l>=0;l--){var p=s[l][te];if(!p.P)switch(p.i){case 5:n(p)&&_t(p);break;case 4:o(p)&&_t(p)}}}function o(s){for(var l=s.t,p=s.k,u=Er(p),y=u.length-1;y>=0;y--){var g=u[y];if(g!==te){var x=l[g];if(x===void 0&&!Cr(l,g))return!0;var O=p[g],S=O&&O[te];if(S?S.t!==x:!lu(O,x))return!0}}var C=!!l[te];return u.length!==Er(l).length+(C?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var p=Object.getOwnPropertyDescriptor(l,l.length-1);if(p&&!p.get)return!0;for(var u=0;u<l.length;u++)if(!l.hasOwnProperty(u))return!0;return!1}function a(s){s.g&&Fe(3,JSON.stringify(Tt(s)))}var i={};kh("ES5",{J:function(s,l){var p=Array.isArray(s),u=function(g,x){if(g){for(var O=Array(x.length),S=0;S<x.length;S++)Object.defineProperty(O,""+S,t(S,!0));return O}var C=pu(x);delete C[te];for(var P=Er(C),I=0;I<P.length;I++){var L=P[I];C[L]=t(L,g||!!C[L].enumerable)}return Object.create(Object.getPrototypeOf(x),C)}(p,s),y={i:p?5:4,A:l?l.A:Ja(),P:!1,I:!1,R:{},l,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,te,{value:y,writable:!0}),u},S:function(s,l,p){p?ft(l)&&l[te].A===s&&e(s.p):(s.u&&function u(y){if(y&&typeof y=="object"){var g=y[te];if(g){var x=g.t,O=g.k,S=g.R,C=g.i;if(C===4)ar(O,function(U){U!==te&&(x[U]!==void 0||Cr(x,U)?S[U]||u(O[U]):(S[U]=!0,_t(g)))}),ar(x,function(U){O[U]!==void 0||Cr(O,U)||(S[U]=!1,_t(g))});else if(C===5){if(n(g)&&(_t(g),S.length=!0),O.length<x.length)for(var P=O.length;P<x.length;P++)S[P]=!1;else for(var I=x.length;I<O.length;I++)S[I]=!0;for(var L=Math.min(O.length,x.length),$=0;$<L;$++)O.hasOwnProperty($)||(S[$]=!0),S[$]===void 0&&u(O[$])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var au,lo,ci,$h,Mh,iu,uu,su,te,Uh,Er,pu,ri,uo,co,Fh,De,Wh,DS,BS,$S,MS,US,FS,un,pn=f(()=>{ci=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",$h=typeof Map<"u",Mh=typeof Set<"u",iu=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",uu=ci?Symbol.for("immer-nothing"):((au={})["immer-nothing"]=!0,au),su=ci?Symbol.for("immer-draftable"):"__$immer_draftable",te=ci?Symbol.for("immer-state"):"__$immer_state",Uh=""+Object.prototype.constructor,Er=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,pu=Object.getOwnPropertyDescriptors||function(t){var e={};return Er(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},ri={},uo={get:function(t,e){if(e===te)return t;var o=Tt(t);if(!Cr(o,e))return function(a,i,s){var l,p=ou(i,s);return p?"value"in p?p.value:(l=p.get)===null||l===void 0?void 0:l.call(a.k):void 0}(t,o,e);var n=o[e];return t.I||!Ve(n)?n:n===Qa(t.t,e)?(Xa(t),t.o[e]=ti(t.A.h,n,t)):n},has:function(t,e){return e in Tt(t)},ownKeys:function(t){return Reflect.ownKeys(Tt(t))},set:function(t,e,o){var n=ou(Tt(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var a=Qa(Tt(t),e),i=a?.[te];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(lu(o,a)&&(o!==void 0||Cr(t.t,e)))return!0;Xa(t),_t(t)}return t.o[e]===o&&(o!==void 0||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return Qa(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Xa(t),_t(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=Tt(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){Fe(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Fe(12)}},co={};ar(uo,function(t,e){co[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),co.deleteProperty=function(t,e){return co.set.call(this,t,e,void 0)},co.set=function(t,e,o){return uo.set.call(this,t[0],e,o,t[0])};Fh=function(){function t(o){var n=this;this.O=iu,this.D=!0,this.produce=function(a,i,s){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var p=n;return function(C){var P=this;C===void 0&&(C=l);for(var I=arguments.length,L=Array(I>1?I-1:0),$=1;$<I;$++)L[$-1]=arguments[$];return p.produce(C,function(U){var F;return(F=i).call.apply(F,[P,U].concat(L))})}}var u;if(typeof i!="function"&&Fe(6),s!==void 0&&typeof s!="function"&&Fe(7),Ve(a)){var y=tu(n),g=ti(n,a,void 0),x=!0;try{u=i(g),x=!1}finally{x?cn(y):ei(y)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(C){return qa(y,s),Ya(C,y)},function(C){throw cn(y),C}):(qa(y,s),Ya(u,y))}if(!a||typeof a!="object"){if((u=i(a))===void 0&&(u=a),u===uu&&(u=void 0),n.D&&ii(u,!0),s){var O=[],S=[];et("Patches").M(a,u,O,S),s(O,S)}return u}Fe(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(u){for(var y=arguments.length,g=Array(y>1?y-1:0),x=1;x<y;x++)g[x-1]=arguments[x];return n.produceWithPatches(u,function(O){return a.apply(void 0,[O].concat(g))})};var s,l,p=n.produce(a,i,function(u,y){s=u,l=y});return typeof Promise<"u"&&p instanceof Promise?p.then(function(u){return[u,s,l]}):[p,s,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){Ve(o)||Fe(8),ft(o)&&(o=Bh(o));var n=tu(this),a=ti(this,o,void 0);return a[te].C=!0,ei(n),a},e.finishDraft=function(o,n){var a=o&&o[te],i=a.A;return qa(i,n),Ya(void 0,i)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!iu&&Fe(20),this.O=o},e.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var s=et("Patches").$;return ft(o)?s(o,n):this.produce(o,function(l){return s(l,n)})},t}(),De=new Fh,Wh=De.produce,DS=De.produceWithPatches.bind(De),BS=De.setAutoFreeze.bind(De),$S=De.setUseProxies.bind(De),MS=De.applyPatches.bind(De),US=De.createDraft.bind(De),FS=De.finishDraft.bind(De),un=Wh});function kt(t){"@babel/helpers - typeof";return kt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kt(t)}var li=f(()=>{});function di(t,e){if(kt(t)!=="object"||t===null)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(kt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var fu=f(()=>{li()});function ui(t){var e=di(t,"string");return kt(e)==="symbol"?e:String(e)}var hu=f(()=>{li();fu()});function pi(t,e,o){return e=ui(e),e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}var yu=f(()=>{hu()});function mu(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),o.push.apply(o,n)}return o}function fn(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?mu(Object(o),!0).forEach(function(n){pi(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):mu(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}var gu=f(()=>{yu()});function xe(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}function Hh(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function hi(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(xe(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(xe(1));return o(hi)(t,e)}if(typeof t!="function")throw new Error(xe(2));var a=t,i=e,s=[],l=s,p=!1;function u(){l===s&&(l=s.slice())}function y(){if(p)throw new Error(xe(3));return i}function g(C){if(typeof C!="function")throw new Error(xe(4));if(p)throw new Error(xe(5));var P=!0;return u(),l.push(C),function(){if(P){if(p)throw new Error(xe(6));P=!1,u();var L=l.indexOf(C);l.splice(L,1),s=null}}}function x(C){if(!Hh(C))throw new Error(xe(7));if(typeof C.type>"u")throw new Error(xe(8));if(p)throw new Error(xe(9));try{p=!0,i=a(i,C)}finally{p=!1}for(var P=s=l,I=0;I<P.length;I++){var L=P[I];L()}return C}function O(C){if(typeof C!="function")throw new Error(xe(10));a=C,x({type:hn.REPLACE})}function S(){var C,P=g;return C={subscribe:function(L){if(typeof L!="object"||L===null)throw new Error(xe(11));function $(){L.next&&L.next(y())}$();var U=P($);return{unsubscribe:U}}},C[bu]=function(){return this},C}return x({type:hn.INIT}),n={dispatch:x,subscribe:g,getState:y,replaceReducer:O},n[bu]=S,n}function zh(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:hn.INIT});if(typeof n>"u")throw new Error(xe(12));if(typeof o(void 0,{type:hn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(xe(13))})}function xu(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var a=e[n];typeof t[a]=="function"&&(o[a]=t[a])}var i=Object.keys(o),s,l;try{zh(o)}catch(p){l=p}return function(u,y){if(u===void 0&&(u={}),l)throw l;if(0)var g;for(var x=!1,O={},S=0;S<i.length;S++){var C=i[S],P=o[C],I=u[C],L=P(I,y);if(typeof L>"u"){var $=y&&y.type;throw new Error(xe(14))}O[C]=L,x=x||L!==I}return x=x||i.length!==Object.keys(u).length,x?O:u}}function Ar(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function vu(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(xe(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=e.map(function(p){return p(s)});return i=Ar.apply(void 0,l)(a.dispatch),fn(fn({},a),{},{dispatch:i})}}}var bu,fi,hn,yn=f(()=>{gu();bu=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),fi=function(){return Math.random().toString(36).substring(7).split("").join(".")},hn={INIT:"@@redux/INIT"+fi(),REPLACE:"@@redux/REPLACE"+fi(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+fi()}}});function Su(t){var e=function(n){var a=n.dispatch,i=n.getState;return function(s){return function(l){return typeof l=="function"?l(a,i,t):s(l)}}};return e}var Ou,yi,Cu=f(()=>{Ou=Su();Ou.withExtraArgument=Su;yi=Ou});function Xh(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return e===o}function xi(t){return Ve(t)?un(t,function(){}):t}function ty(t){return typeof t=="boolean"}function ry(){return function(e){return oy(e)}}function oy(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,n=t.immutableCheck,a=n===void 0?!0:n,i=t.serializableCheck,s=i===void 0?!0:i,l=new Jh;if(o&&(ty(o)?l.push(yi):l.push(yi.withExtraArgument(o.extraArgument))),0){if(a)var p;if(s)var u}return l}function Iu(t){var e=ry(),o=t||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,s=i===void 0?e():i,l=o.devTools,p=l===void 0?!0:l,u=o.preloadedState,y=u===void 0?void 0:u,g=o.enhancers,x=g===void 0?void 0:g,O;if(typeof a=="function")O=a;else if(Xh(a))O=xu(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 S=s;if(typeof S=="function"&&(S=S(e),!gi&&!Array.isArray(S)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!gi&&S.some(function(U){return typeof U!="function"}))throw new Error("each middleware provided to configureStore must be a function");var C=vu.apply(void 0,S),P=Ar;p&&(P=Qh(Dt({trace:!gi},typeof p=="object"&&p)));var I=new ey(C),L=I;Array.isArray(x)?L=Rr([C],x):typeof x=="function"&&(L=x(I));var $=P.apply(void 0,L);return hi(O,y,$)}function Bt(t,e){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(e){var i=e.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return Dt(Dt({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:n[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(n){return n.type===t},o}function Lu(t){var e={},o=[],n,a={addCase:function(i,s){var l=typeof i=="string"?i:i.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,a},addMatcher:function(i,s){return o.push({matcher:i,reducer:s}),a},addDefaultCase:function(i){return n=i,a}};return t(a),[e,o,n]}function ny(t){return typeof t=="function"}function ay(t,e,o,n){o===void 0&&(o=[]);var a=typeof e=="function"?Lu(e):[e,o,n],i=a[0],s=a[1],l=a[2],p;if(ny(t))p=function(){return xi(t())};else{var u=xi(t);p=function(){return u}}function y(g,x){g===void 0&&(g=p());var O=Rr([i[x.type]],s.filter(function(S){var C=S.matcher;return C(x)}).map(function(S){var C=S.reducer;return C}));return O.filter(function(S){return!!S}).length===0&&(O=[l]),O.reduce(function(S,C){if(C)if(ft(S)){var P=S,I=C(P,x);return I===void 0?S:I}else{if(Ve(S))return un(S,function(L){return C(L,x)});var I=C(S,x);if(I===void 0){if(S===null)return S;throw Error("A case reducer on a non-draftable value must not return undefined")}return I}return S},g)}return y.getInitialState=p,y}function iy(t,e){return t+"/"+e}function Pu(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof t.initialState=="function"?t.initialState:xi(t.initialState),n=t.reducers||{},a=Object.keys(n),i={},s={},l={};a.forEach(function(y){var g=n[y],x=iy(e,y),O,S;"reducer"in g?(O=g.reducer,S=g.prepare):O=g,i[y]=O,s[x]=O,l[y]=S?Bt(x,S):Bt(x)});function p(){var y=typeof t.extraReducers=="function"?Lu(t.extraReducers):[t.extraReducers],g=y[0],x=g===void 0?{}:g,O=y[1],S=O===void 0?[]:O,C=y[2],P=C===void 0?void 0:C,I=Dt(Dt({},x),s);return ay(o,function(L){for(var $ in I)L.addCase($,I[$]);for(var U=0,F=S;U<F.length;U++){var Ee=F[U];L.addMatcher(Ee.matcher,Ee.reducer)}P&&L.addDefaultCase(P)})}var u;return{name:e,reducer:function(y,g){return u||(u=p()),u(y,g)},actions:l,caseReducers:i,getInitialState:function(){return u||(u=p()),u.getInitialState()}}}function uy(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function py(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Nu,Gh,Rr,jh,Vh,Kh,Eu,Zh,qh,wu,Dt,mi,Yh,Qh,nO,Jh,ey,gi,sy,cy,ly,bi,Au,dy,cO,Tu,_u,ku,lO,dO,uO,pO,vi,fO,hO,yO,Ru,mO,fy,gO,Du=f(()=>{pn();yn();yn();yn();Cu();pn();pn();Nu=function(){var t=function(e,o){return t=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])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function n(){this.constructor=e}e.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),Gh=function(t,e){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(y){return p([u,y])}}function p(u){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){o=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){o.label=u[1];break}if(u[0]===6&&o.label<i[1]){o.label=i[1],i=u;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(u);break}i[2]&&o.ops.pop(),o.trys.pop();continue}u=e.call(t,o)}catch(y){u=[6,y],a=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},Rr=function(t,e){for(var o=0,n=e.length,a=t.length;o<n;o++,a++)t[a]=e[o];return t},jh=Object.defineProperty,Vh=Object.defineProperties,Kh=Object.getOwnPropertyDescriptors,Eu=Object.getOwnPropertySymbols,Zh=Object.prototype.hasOwnProperty,qh=Object.prototype.propertyIsEnumerable,wu=function(t,e,o){return e in t?jh(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Dt=function(t,e){for(var o in e||(e={}))Zh.call(e,o)&&wu(t,o,e[o]);if(Eu)for(var n=0,a=Eu(e);n<a.length;n++){var o=a[n];qh.call(e,o)&&wu(t,o,e[o])}return t},mi=function(t,e){return Vh(t,Kh(e))},Yh=function(t,e,o){return new Promise(function(n,a){var i=function(p){try{l(o.next(p))}catch(u){a(u)}},s=function(p){try{l(o.throw(p))}catch(u){a(u)}},l=function(p){return p.done?n(p.value):Promise.resolve(p.value).then(i,s)};l((o=o.apply(t,e)).next())})},Qh=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ar:Ar.apply(null,arguments)},nO=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};Jh=function(t){Nu(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,Rr([void 0],o[0].concat(this)))):new(e.bind.apply(e,Rr([void 0],o.concat(this))))},e}(Array),ey=function(t){Nu(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,Rr([void 0],o[0].concat(this)))):new(e.bind.apply(e,Rr([void 0],o.concat(this))))},e}(Array);gi=!0;sy="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",cy=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=sy[Math.random()*64|0];return e},ly=["name","message","stack","code"],bi=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Au=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),dy=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=ly;o<n.length;o++){var a=n[o];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},cO=function(){function t(e,o,n){var a=Bt(e+"/fulfilled",function(y,g,x,O){return{payload:y,meta:mi(Dt({},O||{}),{arg:x,requestId:g,requestStatus:"fulfilled"})}}),i=Bt(e+"/pending",function(y,g,x){return{payload:void 0,meta:mi(Dt({},x||{}),{arg:g,requestId:y,requestStatus:"pending"})}}),s=Bt(e+"/rejected",function(y,g,x,O,S){return{payload:O,error:(n&&n.serializeError||dy)(y||"Rejected"),meta:mi(Dt({},S||{}),{arg:x,requestId:g,rejectedWithValue:!!O,requestStatus:"rejected",aborted:y?.name==="AbortError",condition:y?.name==="ConditionError"})}}),l=!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 u(y){return function(g,x,O){var S=n?.idGenerator?n.idGenerator(y):cy(),C=new p,P,I=!1;function L(U){P=U,C.abort()}var $=function(){return Yh(this,null,function(){var U,F,Ee,Ze,Oe,qe,fe;return Gh(this,function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),Ze=(U=n?.condition)==null?void 0:U.call(n,y,{getState:x,extra:O}),py(Ze)?[4,Ze]:[3,2];case 1:Ze=m.sent(),m.label=2;case 2:if(Ze===!1||C.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return I=!0,Oe=new Promise(function(v,k){return C.signal.addEventListener("abort",function(){return k({name:"AbortError",message:P||"Aborted"})})}),g(i(S,y,(F=n?.getPendingMeta)==null?void 0:F.call(n,{requestId:S,arg:y},{getState:x,extra:O}))),[4,Promise.race([Oe,Promise.resolve(o(y,{dispatch:g,getState:x,extra:O,requestId:S,signal:C.signal,abort:L,rejectWithValue:function(v,k){return new bi(v,k)},fulfillWithValue:function(v,k){return new Au(v,k)}})).then(function(v){if(v instanceof bi)throw v;return v instanceof Au?a(v.payload,S,y,v.meta):a(v,S,y)})])];case 3:return Ee=m.sent(),[3,5];case 4:return qe=m.sent(),Ee=qe instanceof bi?s(null,S,y,qe.payload,qe.meta):s(qe,S,y),[3,5];case 5:return fe=n&&!n.dispatchConditionRejection&&s.match(Ee)&&Ee.meta.condition,fe||g(Ee),[2,Ee]}})})}();return Object.assign($,{abort:L,requestId:S,arg:y,unwrap:function(){return $.then(uy)}})}}return Object.assign(u,{pending:i,rejected:s,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t}();Tu="listener",_u="completed",ku="cancelled",lO="task-"+ku,dO="task-"+_u,uO=Tu+"-"+ku,pO=Tu+"-"+_u,vi="listenerMiddleware",fO=Bt(vi+"/add"),hO=Bt(vi+"/removeAll"),yO=Bt(vi+"/remove"),mO=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Ru||(Ru=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},fy=function(t){return function(e){setTimeout(e,t)}},gO=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:fy(10);du()});function hy(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(o,n,a){this.eventBus.addEventListener(o,n,a)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,a){this.eventBus.removeEventListener(o,n,a)}}}var mn,Bu=f(()=>{"use strict";mn=class extends hy(Object){}});var $u,Mu=f(()=>{"use strict";Du();an();Za();Bu();window.ftReduxStores||(window.ftReduxStores={});$u=class t extends mn{static get(e){var o;let n=typeof e=="string"?e:e.name,a=typeof e=="string"?void 0:e,i=window.ftReduxStores[n];if(io(i))return i;if(a==null)return;let s=Pu({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=Iu({reducer:(p,u)=>u.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...p,...u.overwrites}:s.reducer(p,u)});return window.ftReduxStores[a.name]=new t(s,l)}constructor(e,o){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new en,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,a,i)=>{let s=a,l=n[s];return l?(...p)=>{let u=l(...p);return this.reduxStore.dispatch(u),u}:p=>{this.setState({[s]:p})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}});var Uu=f(()=>{"use strict";Bd();Za();eu();Mu();an()});var Fu=f(()=>{"use strict"});var yy,Wu=f(()=>{"use strict";yy=b(Q());Uu();Fu();Ue()});var gn,Si=f(()=>{"use strict";Ue();no();gn=class extends Je{async listMySearches(){let e=D.getState().session;return e?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}}});var bn,Oi=f(()=>{"use strict";Ue();no();bn=class extends Je{async listMyBookmarks(){let e=D.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}}});var vn,my,xn,Ci,Hu,Ei=f(()=>{"use strict";vn=b(N());Si();Oi();Ue();my="ft-user-assets",xn=vn.FtReduxStore.get({name:my,initialState:{savedSearches:void 0,bookmarks:void 0}}),Ci=class{constructor(){this.currentSession=D.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new bn,this.savedSearchesService=new gn,D.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=D.getState();(0,vn.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),xn.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),xn.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();xn.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let o=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;xn.actions.bookmarks(o)}}},Hu=new Ci});var wi,zu=f(()=>{"use strict";Ue();wi=class{addCommand(e,o=!1){D.commands.add(e,o)}consumeCommand(e){return D.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new wi});var Gu,Ai,ju=f(()=>{"use strict";Gu=b(N()),Ai=class{highlightHtml(e,o,n){(0,Gu.highlightHtml)(e,o,n)}};window.FluidTopicsHighlightHtmlService=new Ai});var Vu,Ri,Ku=f(()=>{"use strict";Vu=b(N());Ue();Ri=class{isDate(e){var o,n,a,i;return(i=(a=((n=(o=D.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===e))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(e,o){var n,a,i;return Vu.DateFormatter.format(e,(n=o?.locale)!==null&&n!==void 0?n:D.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new Ri});var Zu,Nr,qu=f(()=>{"use strict";Zu=b(N());Ue();Nr=class{static get(e,o){var n,a,i,s;let l=D.getState(),{lang:p,region:u}=(a=(n=l.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new Zu.SearchPlaceConverter(l.baseUrl,(s=(i=window.FluidTopicsClientConfiguration)===null||i===void 0?void 0:i.predefinedSorts)!==null&&s!==void 0?s:{},e??20,l.searchInAllLanguagesAllowed,o??`${p}-${u}`)}}});var Yu=f(()=>{"use strict";Oi();Qo();zu();Ga();no();ju();Si();Ku();qu()});var Qu=f(()=>{"use strict"});var Xu,$t=f(()=>{"use strict";Xu=b(N());ja();Wu();Ue();Ei();Yu();Wa();Qu();ja();(0,Xu.customElement)("ft-app-context")(ie)});function We(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?kd:or}i18n(a,i,...s){var l;if(typeof a=="string")return this.i18nService.resolveMessage(a,i,...s);let p=(l=a.args)!==null&&l!==void 0?l:a.argsProvider?a.argsProvider(this):[];return this.i18nService.resolveMessage(a.context,a.key,...p)}onI18nUpdate(a){var i,s,l;(i=this[Ni])===null||i===void 0||i.forEach((p,u)=>{let y=this.getI18nAttributeValue(u);y&&(this[u]=this.getI18nAttributeMessage(y,p,a))}),(s=this[Ii])===null||s===void 0||s.forEach((p,u)=>{let y=this.getI18nListAttributeValues(u);this[u]=y?.map(g=>this.getI18nAttributeMessage(g,p,a))}),(l=this[Sn])===null||l===void 0||l.forEach((p,u)=>{p.context.toLowerCase()===a.toLowerCase()&&(this[u]=this.i18n(p))}),setTimeout(()=>this.requestUpdate(),0)}buildI18nAttributeMessage(a,i){return{...a,message:this.i18n({context:a.context,key:a.key,...i})}}getI18nAttributeMessage(a,i,s){var l;let p=!s||((l=a.context)===null||l===void 0?void 0:l.toLowerCase())===s.toLowerCase();return a.context&&a.key&&p?this.buildI18nAttributeMessage(a,i):a}update(a){var i,s,l;super.update(a),(i=this[Ni])===null||i===void 0||i.forEach((p,u)=>{let y=this.getI18nAttributeValue(u);y?.context&&y.key&&(a.has(u)||p.argsProvider!=null)&&(this.addI18nContextIfNeeded(y,a,u),this[u]=this.getI18nAttributeMessage(y,p))}),(s=this[Ii])===null||s===void 0||s.forEach((p,u)=>{let y=this.getI18nListAttributeValues(u);(a.has(u)||p.argsProvider!=null)&&(this[u]=y?.map(g=>(this.addI18nContextIfNeeded(g,a,u),this.getI18nAttributeMessage(g,p))))}),(l=this[Sn])===null||l===void 0||l.forEach((p,u)=>{p.argsProvider!=null&&(this[u]=this.i18n(p))})}getI18nAttributeValue(a){return this[a]}getI18nListAttributeValues(a){return this[a]}addI18nContextIfNeeded(a,i,s){a.context&&a.key&&i.has(s)&&this.addI18nContext(a.context)}connectedCallback(){var a,i,s,l,p,u;super.connectedCallback(),new Set([...(i=(a=this[Sn])===null||a===void 0?void 0:a.values())!==null&&i!==void 0?i:[],...[...(l=(s=this[Ni])===null||s===void 0?void 0:s.keys())!==null&&l!==void 0?l:[]].map(y=>this.getI18nAttributeValue(y)),...[...(u=(p=this[Ii])===null||p===void 0?void 0:p.keys())!==null&&u!==void 0?u:[]].flatMap(y=>this.getI18nListAttributeValues(y))].map(y=>y?.context)).forEach(y=>y&&this.addI18nMessages(y))}addI18nMessages(a,i){a=a.toLowerCase(),this[po].has(a)||this[po].set(a,this.i18nService.subscribe(a,()=>this.onI18nUpdate(a))),this.i18nService.prepareContext(a,i??{}),this.onI18nUpdate(a)}addI18nContext(a,i){this.addI18nMessages(typeof a=="string"?a:a.name,i)}disconnectedCallback(){super.disconnectedCallback(),this[po].forEach(a=>a()),this[po].clear()}}return e=po,gy([(0,ep.property)({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}var Cn,ep,gy,Ni,Ii,Sn,po,Ju,On,En=f(()=>{"use strict";Cn=b(N());$t();ep=b(Q()),gy=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},Ni=Symbol("i18nAttributes"),Ii=Symbol("i18nListAttributes"),Sn=Symbol("i18nProperties"),po=Symbol("i18nUnsubs");Ju=class extends We(Cn.FtLitElement){},On=class extends We(Cn.FtLitElementRedux){}});var wn,An,Rn,fo,Ke,Li=f(()=>{"use strict";wn=b(B()),An=b(Q()),Rn=b(N());Fa();En();$t();fo=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},Ke=class extends On{constructor(){super(),this.editorMode=!1,this.addStore(D)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":wn.nothing:wn.html`
|
|
1163
1163
|
<span class="ft-i18n">
|
|
1164
1164
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
1165
1165
|
</span>
|
|
1166
|
-
`}update(e){var o;super.update(e),["context","key","defaultMessage"].some(n=>e.has(n))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:(o=this.defaultMessage)!==null&&o!==void 0?o:""})}};Ke.elementDefinitions={};Ke.styles=Ld;
|
|
1167
|
-
`)===0?q.substr(1,q.length):q}).forEach(function(q){var
|
|
1168
|
-
`});var Mp=f(()=>{"use strict"});var Dn,Oy,Up,Fp=f(()=>{"use strict";Dn=b(N()),Oy={setRequest:(t,e)=>{t.request=e.payload},setRequestQuery:(t,e)=>{t.request.query=e.payload},setRequestContentLocale:(t,e)=>{t.request.contentLocale=e.payload},setPageSize:(t,e)=>{var o;let n=+((o=e.payload)!==null&&o!==void 0?o:20);t.request.paging.perPage=isNaN(n)?20:(0,Dn.minmax)(1,n,40)},setPageNumber:(t,e)=>{t.request.paging.page=isNaN(e.payload)?1:Math.max(1,e.payload)},setRequestSort:(t,e)=>{t.request.sort=e.payload},setRequestFilters:(t,e)=>{t.request.metadataFilters=e.payload},setRequestFacets:(t,e)=>{t.request.facets=e.payload},setRequestVirtualField:(t,e)=>{t.request.virtualField=e.payload},setRequestScope:(t,e)=>{t.request.scope=e.payload},setOtherQueryParams:(t,e)=>{t.request.otherQueryParams=e.payload},setRequestClusterSortCriterion:(t,e)=>{var o;t.request.clusterSortCriterions=(o=e.payload)!==null&&o!==void 0?o:[]}},Up=t=>Dn.FtReduxStore.get({name:"ft-search-"+t,initialState:{request:{query:"",clusterSortCriterions:[],metadataFilters:[],facets:[],sort:[],paging:{page:1,perPage:20}},liveQuery:"",paging:void 0,facets:void 0,spellcheck:void 0,locales:[],results:void 0,suggestResults:void 0},reducers:Oy})});var Bn,Wp=f(()=>{"use strict";$t();Bn=class extends Je{async launchSearch(e){return this.cache.get(this.hash(e),async()=>(await this.awaitApi).search(e),2*60*1e3)}async launchSuggest(e){return this.cache.get(this.hash(e),async()=>(await this.awaitApi).getSuggestions(e),2*60*1e3)}async getAvailableSearchLocales(){return this.cache.get("available-locales",async()=>(await this.awaitApi).getAvailableSearchLocales())}hash(e){return""+Array.from(JSON.stringify(e)).reduce((o,n)=>0|31*o+n.charCodeAt(0),0)}}});var ot,Hp,yo,kr,Ui=f(()=>{"use strict";ot=b(N());Fp();ki();Wp();Hp=t=>t.request.virtualField===Lr.TITLE_ONLY&&t.request.scope===Tr.DOCUMENTS,yo=class t extends Event{constructor(){super(t.eventName)}};yo.eventName="search-context-clear-all-filters";kr=class t{static build(e,o){return new t(Up(e.trim()||"context"),o)}constructor(e,o){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.localesDebouncer=new ot.Debouncer(10),this.searchDebouncer=new ot.Debouncer(100),this.suggestDebouncer=new ot.Debouncer(300),this.service=o??new Bn,this.service.cache.addEventListener("clear-cache",n=>{n.detail.clearedKeys.includes("available-locales")&&this.updateLocales()})}async initService(){return this.updateLocales(),this.launchSearch()}setQuery(e){this.store.actions.setRequestQuery(e),this.store.actions.liveQuery(e),this.store.actions.setPageNumber(1),this.launchSearch()}setContentLocale(e){var o;let n=(o=this.store.getState().locales)!==null&&o!==void 0?o:[],a=this.store.getState().request.contentLocale;if(e!=a){if(n.length>0){let i=s=>n.some(l=>l.lang==s);i(e)||(e=i(a)?a:n[0].lang)}this.store.actions.setRequestContentLocale(e),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([]),this.launchSearch()}return e}forceContentLocale(e){this.store.actions.setRequestContentLocale(e),this.launchSearch()}setPageSize(e){this.store.actions.setPageSize(e),this.launchSearch()}setPageNumber(e){this.store.actions.setPageNumber(e),this.launchSearch()}setSort(e){this.store.actions.setRequestSort(e),this.store.actions.setPageNumber(1),this.launchSearch()}setFilters(e){let o=e.filter(n=>!n.valueFilter||n.valueFilter.values.length>0);this.store.actions.setRequestFilters(o),this.store.actions.setPageNumber(1),this.launchSearch()}setClusterSortCriterion(e){this.store.actions.setRequestClusterSortCriterion(e),this.launchSearch()}setSearchInDocumentTitlesOnly(e){e?(this.store.actions.setRequestVirtualField(Lr.TITLE_ONLY),this.store.actions.setRequestScope(Tr.DOCUMENTS)):(this.store.actions.setRequestVirtualField(Lr.EVERYWHERE),this.store.actions.setRequestScope(Tr.DEFAULT)),this.launchSearch()}setVirtualField(e){this.store.actions.setRequestVirtualField(e),this.launchSearch()}get searchInDocumentTitlesOnly(){return Hp(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.dispatchEvent(new yo)}addFacet(e){this.facetIds=[...this.facetIds,e],this.launchSearch()}replaceFacet(e,o){let n=this.facetIds.filter(a=>a!=e);o&&n.push(o),this.facetIds=n,this.launchSearch()}get facetIds(){var e;let o=this.store.getState().request;return[...new Set([...o.facets.map(n=>n.id),...((e=o.metadataFilters)!==null&&e!==void 0?e:[]).map(n=>n.key)])]}set facetIds(e){let n=[...new Set(e)].map(a=>({id:a}));this.store.actions.setRequestFacets(n)}setFilter(e,o){this.setValueFilter(e,o)}setValueFilter(e,o){let n=this.store.getState().request.metadataFilters,a={key:e,valueFilter:{values:o,negative:!1}},i=[...n.filter(s=>!s.valueFilter),...n.filter(s=>s.valueFilter&&s.key!==a.key),a];this.setFilters(i)}setDateFilter(e,o){let n=this.store.getState().request.metadataFilters,a={key:e,dateFilter:{type:o}},i=[...n.filter(s=>!s.dateFilter),...n.filter(s=>s.dateFilter&&s.key!==a.key),a];this.setFilters(i)}removeDateFilter(e){let o=this.store.getState().request.metadataFilters,n=[...o.filter(a=>!a.dateFilter),...o.filter(a=>a.dateFilter&&a.key!==e)];this.setFilters(n)}setRangeFilter(e,o,n){let a=this.store.getState().request.metadataFilters,i={key:e,rangeFilter:{from:o,to:n}},s=[...a.filter(l=>!l.rangeFilter),...a.filter(l=>l.rangeFilter&&l.key!==i.key),i];this.setFilters(s)}removeRangeFilter(e){let o=this.store.getState().request.metadataFilters,n=[...o.filter(a=>!a.rangeFilter),...o.filter(a=>a.rangeFilter&&a.key!==e)];this.setFilters(n)}setLiveQuery(e){this.store.actions.liveQuery(e),this.launchSuggest()}setRequest(e){this.store.actions.setRequest({...e,facets:this.store.getState().request.facets}),this.store.actions.liveQuery(e.query),this.store.actions.setPageNumber(1),this.launchSearch()}setScope(e){this.store.actions.setRequestScope(e),this.launchSearch()}setOtherQueryParams(e){this.store.actions.setOtherQueryParams(e)}setIgnoreEmptyQuery(e){this.ignoreEmptyQuery=e,this.launchSearch()}setOpenExternalDocumentInNewTab(e){this.openExternalDocumentInNewTab=e}updateLocales(){return this.localesDebouncer.run(async()=>this.store.actions.locales((await this.service.getAvailableSearchLocales()).contentLocales))}launchSearch(){return this.searchDebouncer.run(()=>this.fetchSearchData())}launchSuggest(){return this.suggestDebouncer.run(()=>this.fetchSuggestData())}async fetchSearchData(){var e,o;try{(e=this.cancelableSearch)===null||e===void 0||e.cancel();let n={...this.store.getState().request,facets:this.facetIds.map(a=>({id:a}))};if(this.store.actions.paging(void 0),this.ignoreEmptyQuery&&n.query.length==0)this.store.actions.results(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0);else{this.cancelableSearch=(0,ot.cancelable)(this.service.launchSearch(n));let a=await this.cancelableSearch;if(a.paging.currentPage<=1)this.store.actions.results(a.results),this.store.actions.facets(a.facets),this.store.actions.spellcheck(a.spellcheck);else{let i=((o=this.store.getState().results)!==null&&o!==void 0?o:[]).concat(a.results);this.store.actions.results(i)}this.store.actions.paging(a.paging)}}catch(n){!(n instanceof ot.CanceledPromiseError)&&this.errorHandler&&this.errorHandler(n)}}async fetchSuggestData(){var e;try{let o=this.store.getState(),n=o.request,a={input:o.liveQuery,metadataFilters:n.metadataFilters,sort:n.sort,contentLocale:n.contentLocale,scope:n.scope};(e=this.cancelableSuggest)===null||e===void 0||e.cancel(),this.cancelableSuggest=(0,ot.cancelable)(this.service.launchSuggest(a));let i=await this.cancelableSuggest;this.store.actions.suggestResults(i.suggestions)}catch(o){!(o instanceof ot.CanceledPromiseError)&&this.errorHandler&&this.errorHandler(o)}}clear(){this.store.clear()}}});function Ey(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setSearchStateManager(a){this.clearStateManager(),this.stateManager=a,this.addStore(a.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Fi]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Fi]):this.dispatchEvent(new Wi)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Fi,Cy([(0,Gp.state)()],o.prototype,"stateManager",void 0),o}var zp,Gp,Cy,Wi,Fi,Le,Ut=f(()=>{"use strict";zp=b(N()),Gp=b(Q());Mp();Ui();Cy=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},Wi=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},Fi=Symbol("registerInterval");Le=class extends Ey(zp.FtLitElementRedux){}});var jp,ht,ze,ve,$n,Mn,Un,oe,Hi=f(()=>{"use strict";jp=b(B()),ht=b(Q()),ze=b(N());Mi();Ut();$t();Ei();ve=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},$n=class extends CustomEvent{constructor(e){super("ft-search-load-error",{detail:e})}},Mn=class extends CustomEvent{constructor(e){super("ft-search-request-change",{detail:e})}},Un=class extends CustomEvent{constructor(e,o,n){super("ft-search-results-change",{detail:{request:e,paging:o,spellcheck:n}})}},oe=class extends ze.FtLitElementRedux{get stateManager(){if(this._stateManager==null){let e=this.searchServiceProvider?this.searchServiceProvider():void 0;this._stateManager=kr.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),e),this._stateManager.errorHandler=o=>this.handleLoadError(o),this.addStore(this.stateManager.store,"search")}return this._stateManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.filters=[],this.sort=[],this.otherQueryParams={},this.addStore(D)}render(){return jp.html`
|
|
1166
|
+
`}update(e){var o;super.update(e),["context","key","defaultMessage"].some(n=>e.has(n))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:(o=this.defaultMessage)!==null&&o!==void 0?o:""})}};Ke.elementDefinitions={};Ke.styles=Ld;fo([(0,Rn.redux)()],Ke.prototype,"editorMode",void 0);fo([(0,An.property)()],Ke.prototype,"context",void 0);fo([(0,An.property)()],Ke.prototype,"key",void 0);fo([(0,Rn.jsonProperty)([])],Ke.prototype,"args",void 0);fo([(0,An.property)()],Ke.prototype,"defaultMessage",void 0)});var tt,tp=f(()=>{"use strict";$t();tt=class t{static build(e){return new t(e)}static fromGwt(e){return new t(e)}constructor(e){this.name=e,this.properties=new Proxy({},{get:(o,n)=>{let a=n;return i=>({context:this.name,key:a,args:typeof i=="function"?void 0:i,argsProvider:typeof i=="function"?i:void 0})}}),this.messages=new Proxy({},{get:(o,n)=>(...a)=>or.resolveMessage(this.name,n,...a)}),this.rawMessages=new Proxy({},{get:(o,n)=>or.resolveRawMessage(this.name,n)})}}});var rp=f(()=>{"use strict";En()});var op=f(()=>{"use strict"});var np,rt=f(()=>{"use strict";np=b(N());Li();tp();En();rp();Fa();op();Li();(0,np.customElement)("ft-i18n")(Ke)});var lp=Vt((Mt,cp)=>{var In=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Ln=function(){function t(){this.fetch=!1,this.DOMException=In.DOMException}return t.prototype=In,new t}();(function(t){var e=function(o){var n=typeof t<"u"&&t||typeof self<"u"&&self||typeof global<"u"&&global||{},a={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};function i(m){return m&&DataView.prototype.isPrototypeOf(m)}if(a.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(m){return m&&s.indexOf(Object.prototype.toString.call(m))>-1};function p(m){if(typeof m!="string"&&(m=String(m)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(m)||m==="")throw new TypeError('Invalid character in header field name: "'+m+'"');return m.toLowerCase()}function u(m){return typeof m!="string"&&(m=String(m)),m}function y(m){var v={next:function(){var k=m.shift();return{done:k===void 0,value:k}}};return a.iterable&&(v[Symbol.iterator]=function(){return v}),v}function g(m){this.map={},m instanceof g?m.forEach(function(v,k){this.append(k,v)},this):Array.isArray(m)?m.forEach(function(v){if(v.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+v.length);this.append(v[0],v[1])},this):m&&Object.getOwnPropertyNames(m).forEach(function(v){this.append(v,m[v])},this)}g.prototype.append=function(m,v){m=p(m),v=u(v);var k=this.map[m];this.map[m]=k?k+", "+v:v},g.prototype.delete=function(m){delete this.map[p(m)]},g.prototype.get=function(m){return m=p(m),this.has(m)?this.map[m]:null},g.prototype.has=function(m){return this.map.hasOwnProperty(p(m))},g.prototype.set=function(m,v){this.map[p(m)]=u(v)},g.prototype.forEach=function(m,v){for(var k in this.map)this.map.hasOwnProperty(k)&&m.call(v,this.map[k],k,this)},g.prototype.keys=function(){var m=[];return this.forEach(function(v,k){m.push(k)}),y(m)},g.prototype.values=function(){var m=[];return this.forEach(function(v){m.push(v)}),y(m)},g.prototype.entries=function(){var m=[];return this.forEach(function(v,k){m.push([k,v])}),y(m)},a.iterable&&(g.prototype[Symbol.iterator]=g.prototype.entries);function x(m){if(!m._noBody){if(m.bodyUsed)return Promise.reject(new TypeError("Already read"));m.bodyUsed=!0}}function O(m){return new Promise(function(v,k){m.onload=function(){v(m.result)},m.onerror=function(){k(m.error)}})}function S(m){var v=new FileReader,k=O(v);return v.readAsArrayBuffer(m),k}function C(m){var v=new FileReader,k=O(v),q=/charset=([A-Za-z0-9_-]+)/.exec(m.type),re=q?q[1]:"utf-8";return v.readAsText(m,re),k}function P(m){for(var v=new Uint8Array(m),k=new Array(v.length),q=0;q<v.length;q++)k[q]=String.fromCharCode(v[q]);return k.join("")}function I(m){if(m.slice)return m.slice(0);var v=new Uint8Array(m.byteLength);return v.set(new Uint8Array(m)),v.buffer}function L(){return this.bodyUsed=!1,this._initBody=function(m){this.bodyUsed=this.bodyUsed,this._bodyInit=m,m?typeof m=="string"?this._bodyText=m:a.blob&&Blob.prototype.isPrototypeOf(m)?this._bodyBlob=m:a.formData&&FormData.prototype.isPrototypeOf(m)?this._bodyFormData=m:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(m)?this._bodyText=m.toString():a.arrayBuffer&&a.blob&&i(m)?(this._bodyArrayBuffer=I(m.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(m)||l(m))?this._bodyArrayBuffer=I(m):this._bodyText=m=Object.prototype.toString.call(m):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof m=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):a.searchParams&&URLSearchParams.prototype.isPrototypeOf(m)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var m=x(this);if(m)return m;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var m=x(this);return m||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(a.blob)return this.blob().then(S);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var m=x(this);if(m)return m;if(this._bodyBlob)return C(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(P(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a.formData&&(this.formData=function(){return this.text().then(Ee)}),this.json=function(){return this.text().then(JSON.parse)},this}var $=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function U(m){var v=m.toUpperCase();return $.indexOf(v)>-1?v:m}function F(m,v){if(!(this instanceof F))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');v=v||{};var k=v.body;if(m instanceof F){if(m.bodyUsed)throw new TypeError("Already read");this.url=m.url,this.credentials=m.credentials,v.headers||(this.headers=new g(m.headers)),this.method=m.method,this.mode=m.mode,this.signal=m.signal,!k&&m._bodyInit!=null&&(k=m._bodyInit,m.bodyUsed=!0)}else this.url=String(m);if(this.credentials=v.credentials||this.credentials||"same-origin",(v.headers||!this.headers)&&(this.headers=new g(v.headers)),this.method=U(v.method||this.method||"GET"),this.mode=v.mode||this.mode||null,this.signal=v.signal||this.signal||function(){if("AbortController"in n){var W=new AbortController;return W.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&k)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(k),(this.method==="GET"||this.method==="HEAD")&&(v.cache==="no-store"||v.cache==="no-cache")){var q=/([?&])_=[^&]*/;if(q.test(this.url))this.url=this.url.replace(q,"$1_="+new Date().getTime());else{var re=/\?/;this.url+=(re.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}F.prototype.clone=function(){return new F(this,{body:this._bodyInit})};function Ee(m){var v=new FormData;return m.trim().split("&").forEach(function(k){if(k){var q=k.split("="),re=q.shift().replace(/\+/g," "),W=q.join("=").replace(/\+/g," ");v.append(decodeURIComponent(re),decodeURIComponent(W))}}),v}function Ze(m){var v=new g,k=m.replace(/\r?\n[\t ]+/g," ");return k.split("\r").map(function(q){return q.indexOf(`
|
|
1167
|
+
`)===0?q.substr(1,q.length):q}).forEach(function(q){var re=q.split(":"),W=re.shift().trim();if(W){var So=re.join(":").trim();try{v.append(W,So)}catch(Zn){console.warn("Response "+Zn.message)}}}),v}L.call(F.prototype);function Oe(m,v){if(!(this instanceof Oe))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(v||(v={}),this.type="default",this.status=v.status===void 0?200:v.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=v.statusText===void 0?"":""+v.statusText,this.headers=new g(v.headers),this.url=v.url||"",this._initBody(m)}L.call(Oe.prototype),Oe.prototype.clone=function(){return new Oe(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new g(this.headers),url:this.url})},Oe.error=function(){var m=new Oe(null,{status:200,statusText:""});return m.ok=!1,m.status=0,m.type="error",m};var qe=[301,302,303,307,308];Oe.redirect=function(m,v){if(qe.indexOf(v)===-1)throw new RangeError("Invalid status code");return new Oe(null,{status:v,headers:{location:m}})},o.DOMException=n.DOMException;try{new o.DOMException}catch{o.DOMException=function(v,k){this.message=v,this.name=k;var q=Error(v);this.stack=q.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function fe(m,v){return new Promise(function(k,q){var re=new F(m,v);if(re.signal&&re.signal.aborted)return q(new o.DOMException("Aborted","AbortError"));var W=new XMLHttpRequest;function So(){W.abort()}W.onload=function(){var he={statusText:W.statusText,headers:Ze(W.getAllResponseHeaders()||"")};re.url.indexOf("file://")===0&&(W.status<200||W.status>599)?he.status=200:he.status=W.status,he.url="responseURL"in W?W.responseURL:he.headers.get("X-Request-URL");var jt="response"in W?W.response:W.responseText;setTimeout(function(){k(new Oe(jt,he))},0)},W.onerror=function(){setTimeout(function(){q(new TypeError("Network request failed"))},0)},W.ontimeout=function(){setTimeout(function(){q(new TypeError("Network request timed out"))},0)},W.onabort=function(){setTimeout(function(){q(new o.DOMException("Aborted","AbortError"))},0)};function Zn(he){try{return he===""&&n.location.href?n.location.href:he}catch{return he}}if(W.open(re.method,Zn(re.url),!0),re.credentials==="include"?W.withCredentials=!0:re.credentials==="omit"&&(W.withCredentials=!1),"responseType"in W&&(a.blob?W.responseType="blob":a.arrayBuffer&&(W.responseType="arraybuffer")),v&&typeof v.headers=="object"&&!(v.headers instanceof g||n.Headers&&v.headers instanceof n.Headers)){var xs=[];Object.getOwnPropertyNames(v.headers).forEach(function(he){xs.push(p(he)),W.setRequestHeader(he,u(v.headers[he]))}),re.headers.forEach(function(he,jt){xs.indexOf(jt)===-1&&W.setRequestHeader(jt,he)})}else re.headers.forEach(function(he,jt){W.setRequestHeader(jt,he)});re.signal&&(re.signal.addEventListener("abort",So),W.onreadystatechange=function(){W.readyState===4&&re.signal.removeEventListener("abort",So)}),W.send(typeof re._bodyInit>"u"?null:re._bodyInit)})}return fe.polyfill=!0,n.fetch||(n.fetch=fe,n.Headers=g,n.Request=F,n.Response=Oe),o.Headers=g,o.Request=F,o.Response=Oe,o.fetch=fe,o}({})})(Ln);Ln.fetch.ponyfill=!0;delete Ln.fetch.polyfill;var Ir=In.fetch?In:Ln;Mt=Ir.fetch;Mt.default=Ir.fetch;Mt.fetch=Ir.fetch;Mt.Headers=Ir.Headers;Mt.Request=Ir.Request;Mt.Response=Ir.Response;cp.exports=Mt});var dp=f(()=>{});var up,pp,fp,hp,yp,mp,gp,bp,xp,vp,Sp,Lr,Op,Pn,Cp,Ep,Pr,Tr,pe,_i=f(()=>{(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(up||(up={}));(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(pp||(pp={}));(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(fp||(fp={}));(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT"})(hp||(hp={}));(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(yp||(yp={}));(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(mp||(mp={}));(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(gp||(gp={}));(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(bp||(bp={}));(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(xp||(xp={}));(function(t){t.ASC="ASC",t.DESC="DESC"})(vp||(vp={}));(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Sp||(Sp={}));(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Lr||(Lr={}));(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Op||(Op={}));(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Pn||(Pn={}));(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Cp||(Cp={}));(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ep||(Ep={}));(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(Pr||(Pr={}));(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"})(Tr||(Tr={}));(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"})(pe||(pe={}))});var wp,Ap=f(()=>{(function(t){t.VALID="VALID",t.INVALID="INVALID"})(wp||(wp={}))});var KC,Rp=f(()=>{_i();KC={[pe.PERSONAL_BOOK_SHARE_USER]:[pe.PERSONAL_BOOK_USER],[pe.HTML_EXPORT_USER]:[pe.PERSONAL_BOOK_USER],[pe.PDF_EXPORT_USER]:[pe.PERSONAL_BOOK_USER],[pe.KHUB_ADMIN]:[pe.CONTENT_PUBLISHER],[pe.ADMIN]:[pe.KHUB_ADMIN,pe.USERS_ADMIN,pe.PORTAL_ADMIN],[pe.DEVELOPER]:[pe.BETA_USER,pe.DEBUG_USER]}});var Np=f(()=>{});var vy,ki=f(()=>{vy=b(lp(),1);dp();_i();Ap();Rp();Np()});var Ip,Lp=f(()=>{ia();Ip=t=>t??le});var Pp=f(()=>{Lp()});function Tp(t){var e,o,n,a,i;return((a=(o=(e=t.map)===null||e===void 0?void 0:e.openMode)!==null&&o!==void 0?o:(n=t.topic)===null||n===void 0?void 0:n.openMode)!==null&&a!==void 0?a:(i=t.document)===null||i===void 0?void 0:i.openMode)===Pn.EXTERNAL}function Tn(t){var e,o,n,a,i;if(Tp(t))return(a=(o=(e=t.map)===null||e===void 0?void 0:e.originUrl)!==null&&o!==void 0?o:(n=t.topic)===null||n===void 0?void 0:n.originUrl)!==null&&a!==void 0?a:(i=t.document)===null||i===void 0?void 0:i.originUrl;switch(t.type){case Pr.MAP:return t.map.readerUrl;case Pr.DOCUMENT:return t.document.viewerUrl;case Pr.TOPIC:return t.topic.readerUrl}return""}function _p(t,e){return Ip(e&&Tp(t)?"_blank":void 0)}var _r,Di=f(()=>{"use strict";ki();Pp();_r=class extends CustomEvent{constructor(e,o){super("ft-search-result-click",{detail:{result:e,rank:o},bubbles:!0,composed:!0})}}});var $p,Sy,$i,Mi=f(()=>{"use strict";$p=b(B()),Sy={},$i=$p.css`
|
|
1168
|
+
`});var Mp=f(()=>{"use strict"});var Dn,Oy,Up,Fp=f(()=>{"use strict";Dn=b(N()),Oy={setRequest:(t,e)=>{t.request=e.payload},setRequestQuery:(t,e)=>{t.request.query=e.payload},setRequestContentLocale:(t,e)=>{t.request.contentLocale=e.payload},setPageSize:(t,e)=>{var o;let n=+((o=e.payload)!==null&&o!==void 0?o:20);t.request.paging.perPage=isNaN(n)?20:(0,Dn.minmax)(1,n,40)},setPageNumber:(t,e)=>{t.request.paging.page=isNaN(e.payload)?1:Math.max(1,e.payload)},setRequestSort:(t,e)=>{t.request.sort=e.payload},setRequestFilters:(t,e)=>{t.request.metadataFilters=e.payload},setRequestFacets:(t,e)=>{t.request.facets=e.payload},setRequestVirtualField:(t,e)=>{t.request.virtualField=e.payload},setRequestScope:(t,e)=>{t.request.scope=e.payload},setOtherQueryParams:(t,e)=>{t.request.otherQueryParams=e.payload},setRequestClusterSortCriterion:(t,e)=>{var o;t.request.clusterSortCriterions=(o=e.payload)!==null&&o!==void 0?o:[]}},Up=t=>Dn.FtReduxStore.get({name:"ft-search-"+t,initialState:{request:{query:"",clusterSortCriterions:[],metadataFilters:[],facets:[],sort:[],paging:{page:1,perPage:20}},liveQuery:"",paging:void 0,facets:void 0,spellcheck:void 0,locales:[],results:void 0,suggestResults:void 0},reducers:Oy})});var Bn,Wp=f(()=>{"use strict";$t();Bn=class extends Je{async launchSearch(e){return this.cache.get(this.hash(e),async()=>(await this.awaitApi).search(e),2*60*1e3)}async launchSuggest(e){return this.cache.get(this.hash(e),async()=>(await this.awaitApi).getSuggestions(e),2*60*1e3)}async getAvailableSearchLocales(){return this.cache.get("available-locales",async()=>(await this.awaitApi).getAvailableSearchLocales())}hash(e){return""+Array.from(JSON.stringify(e)).reduce((o,n)=>0|31*o+n.charCodeAt(0),0)}}});var ot,Hp,mo,kr,Ui=f(()=>{"use strict";ot=b(N());Fp();ki();Wp();Hp=t=>t.request.virtualField===Lr.TITLE_ONLY&&t.request.scope===Tr.DOCUMENTS,mo=class t extends Event{constructor(){super(t.eventName)}};mo.eventName="search-context-clear-all-filters";kr=class t{static build(e,o){return new t(Up(e.trim()||"context"),o)}constructor(e,o){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.localesDebouncer=new ot.Debouncer(10),this.searchDebouncer=new ot.Debouncer(100),this.suggestDebouncer=new ot.Debouncer(300),this.service=o??new Bn,this.service.cache.addEventListener("clear-cache",n=>{n.detail.clearedKeys.includes("available-locales")&&this.updateLocales()})}async initService(){return this.updateLocales(),this.launchSearch()}setQuery(e){this.store.actions.setRequestQuery(e),this.store.actions.liveQuery(e),this.store.actions.setPageNumber(1),this.launchSearch()}setContentLocale(e){var o;let n=(o=this.store.getState().locales)!==null&&o!==void 0?o:[],a=this.store.getState().request.contentLocale;if(e!=a){if(n.length>0){let i=s=>n.some(l=>l.lang==s);i(e)||(e=i(a)?a:n[0].lang)}this.store.actions.setRequestContentLocale(e),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([]),this.launchSearch()}return e}forceContentLocale(e){this.store.actions.setRequestContentLocale(e),this.launchSearch()}setPageSize(e){this.store.actions.setPageSize(e),this.launchSearch()}setPageNumber(e){this.store.actions.setPageNumber(e),this.launchSearch()}setSort(e){this.store.actions.setRequestSort(e),this.store.actions.setPageNumber(1),this.launchSearch()}setFilters(e){let o=e.filter(n=>!n.valueFilter||n.valueFilter.values.length>0);this.store.actions.setRequestFilters(o),this.store.actions.setPageNumber(1),this.launchSearch()}setClusterSortCriterion(e){this.store.actions.setRequestClusterSortCriterion(e),this.launchSearch()}setSearchInDocumentTitlesOnly(e){e?(this.store.actions.setRequestVirtualField(Lr.TITLE_ONLY),this.store.actions.setRequestScope(Tr.DOCUMENTS)):(this.store.actions.setRequestVirtualField(Lr.EVERYWHERE),this.store.actions.setRequestScope(Tr.DEFAULT)),this.launchSearch()}setVirtualField(e){this.store.actions.setRequestVirtualField(e),this.launchSearch()}get searchInDocumentTitlesOnly(){return Hp(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.dispatchEvent(new mo)}addFacet(e){this.facetIds=[...this.facetIds,e],this.launchSearch()}replaceFacet(e,o){let n=this.facetIds.filter(a=>a!=e);o&&n.push(o),this.facetIds=n,this.launchSearch()}get facetIds(){var e;let o=this.store.getState().request;return[...new Set([...o.facets.map(n=>n.id),...((e=o.metadataFilters)!==null&&e!==void 0?e:[]).map(n=>n.key)])]}set facetIds(e){let n=[...new Set(e)].map(a=>({id:a}));this.store.actions.setRequestFacets(n)}setFilter(e,o){this.setValueFilter(e,o)}setValueFilter(e,o){let n=this.store.getState().request.metadataFilters,a={key:e,valueFilter:{values:o,negative:!1}},i=[...n.filter(s=>!s.valueFilter),...n.filter(s=>s.valueFilter&&s.key!==a.key),a];this.setFilters(i)}setDateFilter(e,o){let n=this.store.getState().request.metadataFilters,a={key:e,dateFilter:{type:o}},i=[...n.filter(s=>!s.dateFilter),...n.filter(s=>s.dateFilter&&s.key!==a.key),a];this.setFilters(i)}removeDateFilter(e){let o=this.store.getState().request.metadataFilters,n=[...o.filter(a=>!a.dateFilter),...o.filter(a=>a.dateFilter&&a.key!==e)];this.setFilters(n)}setRangeFilter(e,o,n){let a=this.store.getState().request.metadataFilters,i={key:e,rangeFilter:{from:o,to:n}},s=[...a.filter(l=>!l.rangeFilter),...a.filter(l=>l.rangeFilter&&l.key!==i.key),i];this.setFilters(s)}removeRangeFilter(e){let o=this.store.getState().request.metadataFilters,n=[...o.filter(a=>!a.rangeFilter),...o.filter(a=>a.rangeFilter&&a.key!==e)];this.setFilters(n)}setLiveQuery(e){this.store.actions.liveQuery(e),this.launchSuggest()}setRequest(e){this.store.actions.setRequest({...e,facets:this.store.getState().request.facets}),this.store.actions.liveQuery(e.query),this.store.actions.setPageNumber(1),this.launchSearch()}setScope(e){this.store.actions.setRequestScope(e),this.launchSearch()}setOtherQueryParams(e){this.store.actions.setOtherQueryParams(e)}setIgnoreEmptyQuery(e){this.ignoreEmptyQuery=e,this.launchSearch()}setOpenExternalDocumentInNewTab(e){this.openExternalDocumentInNewTab=e}updateLocales(){return this.localesDebouncer.run(async()=>this.store.actions.locales((await this.service.getAvailableSearchLocales()).contentLocales))}launchSearch(){return this.searchDebouncer.run(()=>this.fetchSearchData())}launchSuggest(){return this.suggestDebouncer.run(()=>this.fetchSuggestData())}async fetchSearchData(){var e,o;try{(e=this.cancelableSearch)===null||e===void 0||e.cancel();let n={...this.store.getState().request,facets:this.facetIds.map(a=>({id:a}))};if(this.store.actions.paging(void 0),this.ignoreEmptyQuery&&n.query.length==0)this.store.actions.results(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0);else{this.cancelableSearch=(0,ot.cancelable)(this.service.launchSearch(n));let a=await this.cancelableSearch;if(a.paging.currentPage<=1)this.store.actions.results(a.results),this.store.actions.facets(a.facets),this.store.actions.spellcheck(a.spellcheck);else{let i=((o=this.store.getState().results)!==null&&o!==void 0?o:[]).concat(a.results);this.store.actions.results(i)}this.store.actions.paging(a.paging)}}catch(n){!(n instanceof ot.CanceledPromiseError)&&this.errorHandler&&this.errorHandler(n)}}async fetchSuggestData(){var e;try{let o=this.store.getState(),n=o.request,a={input:o.liveQuery,metadataFilters:n.metadataFilters,sort:n.sort,contentLocale:n.contentLocale,scope:n.scope};(e=this.cancelableSuggest)===null||e===void 0||e.cancel(),this.cancelableSuggest=(0,ot.cancelable)(this.service.launchSuggest(a));let i=await this.cancelableSuggest;this.store.actions.suggestResults(i.suggestions)}catch(o){!(o instanceof ot.CanceledPromiseError)&&this.errorHandler&&this.errorHandler(o)}}clear(){this.store.clear()}}});function Ey(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setSearchStateManager(a){this.clearStateManager(),this.stateManager=a,this.addStore(a.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Fi]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Fi]):this.dispatchEvent(new Wi)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Fi,Cy([(0,Gp.state)()],o.prototype,"stateManager",void 0),o}var zp,Gp,Cy,Wi,Fi,Le,Ut=f(()=>{"use strict";zp=b(N()),Gp=b(Q());Mp();Ui();Cy=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},Wi=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},Fi=Symbol("registerInterval");Le=class extends Ey(zp.FtLitElementRedux){}});var jp,ht,ze,ve,$n,Mn,Un,oe,Hi=f(()=>{"use strict";jp=b(B()),ht=b(Q()),ze=b(N());Mi();Ut();$t();Ei();ve=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},$n=class extends CustomEvent{constructor(e){super("ft-search-load-error",{detail:e})}},Mn=class extends CustomEvent{constructor(e){super("ft-search-request-change",{detail:e})}},Un=class extends CustomEvent{constructor(e,o,n){super("ft-search-results-change",{detail:{request:e,paging:o,spellcheck:n}})}},oe=class extends ze.FtLitElementRedux{get stateManager(){if(this._stateManager==null){let e=this.searchServiceProvider?this.searchServiceProvider():void 0;this._stateManager=kr.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),e),this._stateManager.errorHandler=o=>this.handleLoadError(o),this.addStore(this.stateManager.store,"search")}return this._stateManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.filters=[],this.sort=[],this.otherQueryParams={},this.addStore(D)}render(){return jp.html`
|
|
1169
1169
|
<slot @register-ft-search-component=${this.registerComponent}></slot>
|
|
1170
|
-
`}update(e){super.update(e),e.has("query")&&this.query!==void 0&&this.stateManager.setQuery(this.query),e.has("contentLocale")&&this.contentLocale!==void 0&&this.stateManager.forceContentLocale(this.contentLocale),e.has("filters")&&this.filters!==void 0&&this.stateManager.setFilters(this.filters),e.has("sort")&&this.sort!==void 0&&this.stateManager.setSort(this.sort),e.has("pageSize")&&this.pageSize!==void 0&&this.stateManager.setPageSize(this.pageSize),e.has("searchInDocumentTitlesOnly")&&this.searchInDocumentTitlesOnly!==void 0&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),e.has("scope")&&this.scope!==void 0&&this.stateManager.setScope(this.scope),e.has("virtualField")&&this.virtualField!==void 0&&this.stateManager.setVirtualField(this.virtualField),e.has("ignoreEmptyQuery")&&this.ignoreEmptyQuery!==void 0&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery),e.has("openExternalDocumentInNewTab")&&this.openExternalDocumentInNewTab!==void 0&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("otherQueryParams")&&this.otherQueryParams!==void 0&&this.stateManager.setOtherQueryParams(this.otherQueryParams),e.has("session")&&this.session!==void 0&&e.get("session")!=null&&(this.stateManager.service.clearCache(),this.stateManager.initService())}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.stateManager.setQuery(this.query),this.stateManager.forceContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSort(this.sort),this.stateManager.setOtherQueryParams(this.otherQueryParams)}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("request")&&this.request&&this.dispatchEvent(new Mn(this.request)),e.has("paging")&&this.paging!==void 0&&this.dispatchEvent(new Un(this.request,this.paging,this.autocorrect))}registerComponent(e){e.stopPropagation();let o=e.composedPath()[0];this.register(o)}register(e){e.setSearchStateManager(this.stateManager)}handleLoadError(e){this.dispatchEvent(new $n(e))}reloadSavedSearches(){Hu.clearMySearches()}clear(){this.stateManager.clear()}};oe.elementDefinitions={};oe.styles=$i;ve([(0,ze.redux)({store:D.name})],oe.prototype,"session",void 0);ve([(0,ht.property)()],oe.prototype,"query",void 0);ve([(0,ht.property)()],oe.prototype,"contentLocale",void 0);ve([(0,ht.property)({type:Number})],oe.prototype,"pageSize",void 0);ve([(0,ht.property)({type:Boolean})],oe.prototype,"searchInDocumentTitlesOnly",void 0);ve([(0,ht.property)()],oe.prototype,"scope",void 0);ve([(0,ht.property)()],oe.prototype,"virtualField",void 0);ve([(0,ht.property)({type:Boolean})],oe.prototype,"ignoreEmptyQuery",void 0);ve([(0,ze.redux)({store:D.name})],oe.prototype,"openExternalDocumentInNewTab",void 0);ve([(0,ze.jsonProperty)([])],oe.prototype,"filters",void 0);ve([(0,ze.jsonProperty)([])],oe.prototype,"sort",void 0);ve([(0,ze.jsonProperty)({})],oe.prototype,"otherQueryParams",void 0);ve([(0,ze.redux)({store:"search"})],oe.prototype,"request",void 0);ve([(0,ze.redux)({store:"search"})],oe.prototype,"paging",void 0);ve([(0,ze.redux)({store:"search",selector:t=>t.spellcheck})],oe.prototype,"autocorrect",void 0);ve([(0,ht.property)({attribute:!1})],oe.prototype,"searchServiceProvider",void 0)});var Vp=f(()=>{"use strict"});var Zp={};Kt(Zp,{ClearAllFiltersEvent:()=>
|
|
1170
|
+
`}update(e){super.update(e),e.has("query")&&this.query!==void 0&&this.stateManager.setQuery(this.query),e.has("contentLocale")&&this.contentLocale!==void 0&&this.stateManager.forceContentLocale(this.contentLocale),e.has("filters")&&this.filters!==void 0&&this.stateManager.setFilters(this.filters),e.has("sort")&&this.sort!==void 0&&this.stateManager.setSort(this.sort),e.has("pageSize")&&this.pageSize!==void 0&&this.stateManager.setPageSize(this.pageSize),e.has("searchInDocumentTitlesOnly")&&this.searchInDocumentTitlesOnly!==void 0&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),e.has("scope")&&this.scope!==void 0&&this.stateManager.setScope(this.scope),e.has("virtualField")&&this.virtualField!==void 0&&this.stateManager.setVirtualField(this.virtualField),e.has("ignoreEmptyQuery")&&this.ignoreEmptyQuery!==void 0&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery),e.has("openExternalDocumentInNewTab")&&this.openExternalDocumentInNewTab!==void 0&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("otherQueryParams")&&this.otherQueryParams!==void 0&&this.stateManager.setOtherQueryParams(this.otherQueryParams),e.has("session")&&this.session!==void 0&&e.get("session")!=null&&(this.stateManager.service.clearCache(),this.stateManager.initService())}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.stateManager.setQuery(this.query),this.stateManager.forceContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSort(this.sort),this.stateManager.setOtherQueryParams(this.otherQueryParams)}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("request")&&this.request&&this.dispatchEvent(new Mn(this.request)),e.has("paging")&&this.paging!==void 0&&this.dispatchEvent(new Un(this.request,this.paging,this.autocorrect))}registerComponent(e){e.stopPropagation();let o=e.composedPath()[0];this.register(o)}register(e){e.setSearchStateManager(this.stateManager)}handleLoadError(e){this.dispatchEvent(new $n(e))}reloadSavedSearches(){Hu.clearMySearches()}clear(){this.stateManager.clear()}};oe.elementDefinitions={};oe.styles=$i;ve([(0,ze.redux)({store:D.name})],oe.prototype,"session",void 0);ve([(0,ht.property)()],oe.prototype,"query",void 0);ve([(0,ht.property)()],oe.prototype,"contentLocale",void 0);ve([(0,ht.property)({type:Number})],oe.prototype,"pageSize",void 0);ve([(0,ht.property)({type:Boolean})],oe.prototype,"searchInDocumentTitlesOnly",void 0);ve([(0,ht.property)()],oe.prototype,"scope",void 0);ve([(0,ht.property)()],oe.prototype,"virtualField",void 0);ve([(0,ht.property)({type:Boolean})],oe.prototype,"ignoreEmptyQuery",void 0);ve([(0,ze.redux)({store:D.name})],oe.prototype,"openExternalDocumentInNewTab",void 0);ve([(0,ze.jsonProperty)([])],oe.prototype,"filters",void 0);ve([(0,ze.jsonProperty)([])],oe.prototype,"sort",void 0);ve([(0,ze.jsonProperty)({})],oe.prototype,"otherQueryParams",void 0);ve([(0,ze.redux)({store:"search"})],oe.prototype,"request",void 0);ve([(0,ze.redux)({store:"search"})],oe.prototype,"paging",void 0);ve([(0,ze.redux)({store:"search",selector:t=>t.spellcheck})],oe.prototype,"autocorrect",void 0);ve([(0,ht.property)({attribute:!1})],oe.prototype,"searchServiceProvider",void 0)});var Vp=f(()=>{"use strict"});var Zp={};Kt(Zp,{ClearAllFiltersEvent:()=>mo,FtSearchContext:()=>oe,FtSearchContextCssVariables:()=>Sy,FtSearchStateManager:()=>kr,LoadErrorEvent:()=>$n,SearchRequestChangeEvent:()=>Mn,SearchResultsChangeEvent:()=>Un,searchInDocumentTitlesOnlySelector:()=>Hp,styles:()=>$i});var Kp,qp=f(()=>{"use strict";Kp=b(N());Hi();Mi();Vp();Hi();Ui();(0,Kp.customElement)("ft-search-context")(oe)});var go,Yp=f(()=>{"use strict";rt();go=tt.build("designedSearchInput")});var Qp,Xp,Jp=f(()=>{"use strict";Qp=b(B());oo();Xp=Qp.css`
|
|
1171
1171
|
* {
|
|
1172
1172
|
box-sizing: border-box;
|
|
1173
1173
|
}
|
|
@@ -1209,42 +1209,42 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1209
1209
|
flex-grow: 1;
|
|
1210
1210
|
flex-shrink: 1;
|
|
1211
1211
|
}
|
|
1212
|
-
`});var zi=Vt((KE,ef)=>{ef.exports=ftGlobals.litRepeat});var bo,
|
|
1212
|
+
`});var zi=Vt((KE,ef)=>{ef.exports=ftGlobals.litRepeat});var bo,Dr,Wn,tf,Fn,Gi,yt,rf=f(()=>{"use strict";bo=b(N()),Dr=b(B()),Wn=b(Q());Jp();tf=b(zi());Wo();Ro();st();Ut();$t();Fn=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},Gi=class extends CustomEvent{constructor(e){super("suggestion-selected",{detail:e})}},yt=class extends Le{render(){let e=Nr.get();return Dr.html`
|
|
1213
1213
|
<div class="ft-search-input-suggestion ft-word-wrap"
|
|
1214
1214
|
part="container"
|
|
1215
1215
|
@keydown=${o=>this.onSuggestKeyDown(o)}>
|
|
1216
1216
|
${(0,tf.repeat)(this.suggestResults||[],o=>o.value,o=>this.renderSuggestion(o,e))}
|
|
1217
1217
|
</div>
|
|
1218
|
-
`}renderSuggestion(e,o){
|
|
1219
|
-
|
|
1218
|
+
`}renderSuggestion(e,o){let n=Dr.html`
|
|
1219
|
+
<ft-ripple></ft-ripple>
|
|
1220
|
+
${this.getIcon(e)}
|
|
1221
|
+
<ft-typography variant="body1">${e.value}</ft-typography>
|
|
1222
|
+
`;if(this.launchSearchPath){let a={...this.request,query:e.value},i=o.serializeToCurrentPageIfPossible(a,this.launchSearchPath);return Dr.html`
|
|
1223
|
+
<a href="${i}"
|
|
1220
1224
|
part="suggestion"
|
|
1221
1225
|
class="ft-search-input-suggestion--suggestion"
|
|
1222
|
-
@keyup=${
|
|
1223
|
-
@click=${
|
|
1224
|
-
|
|
1225
|
-
${this.getIcon(e)}
|
|
1226
|
-
<ft-typography variant="body1">${e.value}</ft-typography>
|
|
1226
|
+
@keyup=${s=>this.onSuggestKeyUp(s)}
|
|
1227
|
+
@click=${()=>this.onSuggestSelected(e.value)}>
|
|
1228
|
+
${n}
|
|
1227
1229
|
</a>
|
|
1228
|
-
`}return
|
|
1230
|
+
`}return Dr.html`
|
|
1229
1231
|
<div tabindex="0"
|
|
1230
1232
|
part="suggestion"
|
|
1231
1233
|
class="ft-search-input-suggestion--suggestion"
|
|
1232
|
-
@keyup=${
|
|
1233
|
-
@click=${
|
|
1234
|
-
|
|
1235
|
-
${this.getIcon(e)}
|
|
1236
|
-
<ft-typography variant="body1">${e.value}</ft-typography>
|
|
1234
|
+
@keyup=${a=>this.onSuggestKeyUp(a)}
|
|
1235
|
+
@click=${()=>this.onSuggestSelected(e.value)}>
|
|
1236
|
+
${n}
|
|
1237
1237
|
</div>
|
|
1238
|
-
`}
|
|
1238
|
+
`}onSuggestKeyDown(e){var o,n,a,i,s,l;switch(e.key){case"ArrowUp":(a=(n=(o=this.getFocusedSuggestionElement())===null||o===void 0?void 0:o.previousElementSibling)!==null&&n!==void 0?n:this.getLastSuggestionElement())===null||a===void 0||a.focus(),e.preventDefault(),e.stopPropagation();break;case"ArrowDown":(l=(s=(i=this.getFocusedSuggestionElement())===null||i===void 0?void 0:i.nextElementSibling)!==null&&s!==void 0?s:this.getFirstSuggestionElement())===null||l===void 0||l.focus(),e.preventDefault(),e.stopPropagation();break}}onSuggestKeyUp(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),e.stopPropagation(),e.target.click())}onSuggestSelected(e){this.dispatchEvent(new Gi(e))}getIcon(e){let o=e.type==="DOCUMENT"?_e.file_format:_e.fluid_topics,n;switch(e.type){case"MAP":n=e.editorialType==="BOOK"?At.BOOK:At.ARTICLE;break;case"DOCUMENT":n=cd(e.mimeType,e.filenameExtension);break;case"TOPIC":n=At.TOPICS;break}return Dr.html`
|
|
1239
1239
|
<ft-icon .variant="${o}" .value="${n}" part="suggestion-icon"></ft-icon>
|
|
1240
|
-
`}getFocusedSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion:focus-within")}getLastSuggestionElement(){let e=this.shadowRoot.querySelectorAll(".ft-search-input-suggestion--suggestion");return e.length>0?e[e.length-1]:null}getFirstSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion")}focusFirstSuggestion(){var e;(e=this.getFirstSuggestionElement())===null||e===void 0||e.focus()}};yt.elementDefinitions={"ft-ripple":X,"ft-typography":se,"ft-icon":Ne};yt.styles=[bo.wordWrap,Xp];Fn([(0,bo.redux)()],yt.prototype,"request",void 0);Fn([(0,bo.redux)()],yt.prototype,"suggestResults",void 0);Fn([(0,Wn.property)()],yt.prototype,"launchSearchPath",void 0);yt=Fn([(0,Wn.customElement)("ft-search-input-suggestion")],yt)});var ji,
|
|
1240
|
+
`}getFocusedSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion:focus-within")}getLastSuggestionElement(){let e=this.shadowRoot.querySelectorAll(".ft-search-input-suggestion--suggestion");return e.length>0?e[e.length-1]:null}getFirstSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion")}focusFirstSuggestion(){var e;(e=this.getFirstSuggestionElement())===null||e===void 0||e.focus()}};yt.elementDefinitions={"ft-ripple":X,"ft-typography":se,"ft-icon":Ne};yt.styles=[bo.wordWrap,Xp];Fn([(0,bo.redux)()],yt.prototype,"request",void 0);Fn([(0,bo.redux)()],yt.prototype,"suggestResults",void 0);Fn([(0,Wn.property)()],yt.prototype,"launchSearchPath",void 0);yt=Fn([(0,Wn.customElement)("ft-search-input-suggestion")],yt)});var ji,Br,gt,of,mt,Se,Vi=f(()=>{"use strict";ji=b(B()),Br=b(N());oo();Ut();rt();Yp();gt=b(Q()),of=b(Hr());rf();jo();st();$t();mt=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},Se=class extends We(Le){constructor(){super(),this.liveQuery="",this.forceCloseSuggestion=!1,this.useCustomSearchPath=!1,this.addI18nContext(go)}render(){var e,o;let n={"ft-search-input":!0,"ft-search-input--with-suggestions":(o=(e=this.suggestResults)===null||e===void 0?void 0:e.length)!==null&&o!==void 0?o:!1,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion},a={...this.request,query:this.liveQuery},i=this.useCustomSearchPath?this.launchSearchPath:void 0,s=Nr.get().serializeToCurrentPageIfPossible(a,i);return ji.html`
|
|
1241
1241
|
<div class="${(0,of.classMap)(n)}" @focusout=${()=>this.forceCloseSuggestion=!1} role="search">
|
|
1242
1242
|
<div class="ft-search-input--input-container" part="input-container" tabindex="-1">
|
|
1243
1243
|
<div class="ft-search-input--input-outline" part="input-outline">
|
|
1244
1244
|
<input class="ft-search-input--input ft-typography--body2"
|
|
1245
1245
|
part="input"
|
|
1246
1246
|
type="search"
|
|
1247
|
-
placeholder="${
|
|
1247
|
+
placeholder="${go.messages.placeholder()}"
|
|
1248
1248
|
.value="${this.liveQuery}"
|
|
1249
1249
|
@input=${l=>this.onInput(l)}
|
|
1250
1250
|
@keydown=${l=>this.onSearchBarKeyDown(l)}
|
|
@@ -1263,7 +1263,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1263
1263
|
part="clear-query"
|
|
1264
1264
|
icon="close"
|
|
1265
1265
|
round dense
|
|
1266
|
-
label="${
|
|
1266
|
+
label="${go.messages.clearButton()}"
|
|
1267
1267
|
@click=${()=>{var l;(l=this.stateManager)===null||l===void 0||l.setLiveQuery(""),this.input.focus()}}
|
|
1268
1268
|
></ft-button>
|
|
1269
1269
|
<div class="ft-search-input--separator"></div>
|
|
@@ -1272,18 +1272,18 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1272
1272
|
part="launch-search-in-input"
|
|
1273
1273
|
icon="search"
|
|
1274
1274
|
round dense
|
|
1275
|
-
label="${
|
|
1275
|
+
label="${go.messages.searchButton()}"
|
|
1276
1276
|
href="${this.useCustomSearchPath?s:""}"
|
|
1277
1277
|
@click=${()=>this.launchSearch(this.liveQuery)}
|
|
1278
1278
|
></ft-button>
|
|
1279
1279
|
</div>
|
|
1280
1280
|
</div>
|
|
1281
|
-
`}onSearchBarKeyDown(e){switch(e.key){case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestion.focusFirstSuggestion();break;case"Backspace":e.stopPropagation();break}}onSearchBarKeyUp(e){switch(e.key){case"Backspace":e.stopPropagation();break;case"Enter":this.useCustomSearchPath?this.launchSearchButton.click():this.launchSearch(this.liveQuery);break;default:break}}onInput(e){var o;(o=this.stateManager)===null||o===void 0||o.setLiveQuery(this.input.value),this.forceCloseSuggestion=!1}launchSearch(e){var o;this.forceCloseSuggestion=!0,this.dispatchEvent(new CustomEvent("change",{detail:e})),(o=this.stateManager)===null||o===void 0||o.setQuery(e)}onSuggestionSelected(e){var o;(o=this.input)===null||o===void 0||o.focus(),this.launchSearch(e.detail)}};Se.elementDefinitions={"ft-search-input-suggestion":yt,"ft-button":ke};Se.styles=[wo,
|
|
1281
|
+
`}onSearchBarKeyDown(e){switch(e.key){case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestion.focusFirstSuggestion();break;case"Backspace":e.stopPropagation();break}}onSearchBarKeyUp(e){switch(e.key){case"Backspace":e.stopPropagation();break;case"Enter":this.useCustomSearchPath?this.launchSearchButton.click():this.launchSearch(this.liveQuery);break;default:break}}onInput(e){var o;(o=this.stateManager)===null||o===void 0||o.setLiveQuery(this.input.value),this.forceCloseSuggestion=!1}launchSearch(e){var o;this.forceCloseSuggestion=!0,this.dispatchEvent(new CustomEvent("change",{detail:e})),(o=this.stateManager)===null||o===void 0||o.setQuery(e)}onSuggestionSelected(e){var o;(o=this.input)===null||o===void 0||o.focus(),this.launchSearch(e.detail)}};Se.elementDefinitions={"ft-search-input-suggestion":yt,"ft-button":ke};Se.styles=[wo,Br.noTextInputDefaultClearButton,Ba];mt([(0,Br.redux)()],Se.prototype,"request",void 0);mt([(0,Br.redux)()],Se.prototype,"liveQuery",void 0);mt([(0,Br.redux)()],Se.prototype,"suggestResults",void 0);mt([(0,gt.state)()],Se.prototype,"forceCloseSuggestion",void 0);mt([(0,gt.property)()],Se.prototype,"launchSearchPath",void 0);mt([(0,gt.property)({type:Boolean})],Se.prototype,"useCustomSearchPath",void 0);mt([(0,gt.query)(".ft-search-input--input")],Se.prototype,"input",void 0);mt([(0,gt.query)("ft-search-input-suggestion")],Se.prototype,"suggestion",void 0);mt([(0,gt.query)('[part="launch-search-in-input"]')],Se.prototype,"launchSearchButton",void 0)});var nf=f(()=>{"use strict"});var sf={};Kt(sf,{FtSearchInput:()=>Se,FtSearchInputCssVariables:()=>Y,styles:()=>Ba});var af,cf=f(()=>{"use strict";af=b(N());Vi();oo();nf();Vi();(0,af.customElement)("ft-search-input")(Se)});var lf,wy,Ki,Zi=f(()=>{"use strict";lf=b(B()),wy={},Ki=lf.css`
|
|
1282
1282
|
`});var qi,df=f(()=>{"use strict";rt();qi=tt.fromGwt("designedActionBlockAriaLabels")});var Hn,Yi,uf,bt,Qi=f(()=>{"use strict";Hn=b(B()),Yi=b(N());Zi();jo();Ut();rt();df();uf=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},bt=class extends We(Le){constructor(){super(),this.currentPage=1,this.isLastPage=!0,this.addI18nContext(qi)}render(){return this.isLastPage?Hn.nothing:Hn.html`
|
|
1283
1283
|
<ft-button @click="${this.loadMore}">
|
|
1284
1284
|
${qi.messages.searchPageLoadMore()}
|
|
1285
1285
|
</ft-button>
|
|
1286
|
-
`}loadMore(){var e;(e=this.stateManager)===null||e===void 0||e.setPageNumber(this.currentPage+1)}};bt.elementDefinitions={"ft-button":ke};bt.styles=Ki;uf([(0,Yi.redux)({store:"search",selector:t=>{var e,o;return(o=(e=t.paging)===null||e===void 0?void 0:e.currentPage)!==null&&o!==void 0?o:1}})],bt.prototype,"currentPage",void 0);uf([(0,Yi.redux)({store:"search",selector:t=>{var e,o;return(o=(e=t.paging)===null||e===void 0?void 0:e.isLastPage)!==null&&o!==void 0?o:!0}})],bt.prototype,"isLastPage",void 0)});var pf=f(()=>{"use strict"});var hf={};Kt(hf,{FtSearchLoadMoreButton:()=>bt,FtSearchLoadMoreButtonCssVariables:()=>wy,styles:()=>Ki});var ff,yf=f(()=>{"use strict";ff=b(N());Qi();Zi();pf();Qi();(0,ff.customElement)("ft-search-load-more-button")(bt)});function Ay(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setResultStateManager(a){this.resultStateManager=a}unregisterResultStateManager(){this.resultStateManager&&(this.resultStateManager.unregisterComponent(this),this.resultStateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Ji]=window.setInterval(()=>this.tryToRegisterToResultContext(),50)}tryToRegisterToResultContext(){this.result!=null?window.clearInterval(this[Ji]):this.dispatchEvent(new es)}disconnectedCallback(){super.disconnectedCallback(),this.unregisterResultStateManager()}}return e=Ji,Xi([(0,zn.property)({attribute:!1})],o.prototype,"cluster",void 0),Xi([(0,zn.property)({attribute:!1})],o.prototype,"result",void 0),Xi([(0,zn.property)({attribute:!1,type:Number})],o.prototype,"rank",void 0),o}var zn,Xi,es,Ji,
|
|
1286
|
+
`}loadMore(){var e;(e=this.stateManager)===null||e===void 0||e.setPageNumber(this.currentPage+1)}};bt.elementDefinitions={"ft-button":ke};bt.styles=Ki;uf([(0,Yi.redux)({store:"search",selector:t=>{var e,o;return(o=(e=t.paging)===null||e===void 0?void 0:e.currentPage)!==null&&o!==void 0?o:1}})],bt.prototype,"currentPage",void 0);uf([(0,Yi.redux)({store:"search",selector:t=>{var e,o;return(o=(e=t.paging)===null||e===void 0?void 0:e.isLastPage)!==null&&o!==void 0?o:!0}})],bt.prototype,"isLastPage",void 0)});var pf=f(()=>{"use strict"});var hf={};Kt(hf,{FtSearchLoadMoreButton:()=>bt,FtSearchLoadMoreButtonCssVariables:()=>wy,styles:()=>Ki});var ff,yf=f(()=>{"use strict";ff=b(N());Qi();Zi();pf();Qi();(0,ff.customElement)("ft-search-load-more-button")(bt)});function Ay(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setResultStateManager(a){this.resultStateManager=a}unregisterResultStateManager(){this.resultStateManager&&(this.resultStateManager.unregisterComponent(this),this.resultStateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Ji]=window.setInterval(()=>this.tryToRegisterToResultContext(),50)}tryToRegisterToResultContext(){this.result!=null?window.clearInterval(this[Ji]):this.dispatchEvent(new es)}disconnectedCallback(){super.disconnectedCallback(),this.unregisterResultStateManager()}}return e=Ji,Xi([(0,zn.property)({attribute:!1})],o.prototype,"cluster",void 0),Xi([(0,zn.property)({attribute:!1})],o.prototype,"result",void 0),Xi([(0,zn.property)({attribute:!1,type:Number})],o.prototype,"rank",void 0),o}var zn,Xi,es,Ji,$r,ts=f(()=>{"use strict";Ut();zn=b(Q()),Xi=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},es=class extends Event{constructor(){super("register-ft-search-result-component",{bubbles:!0,composed:!0})}},Ji=Symbol("registerInterval");$r=class extends Ay(Le){}});var rs,mf,ir,os=f(()=>{"use strict";rs=b(B());ts();Ko();mf=b(Uo());st();ir=class extends $r{render(){let e=this.result?this.selectAbstract(this.result):void 0;return e?rs.html`
|
|
1287
1287
|
<ft-typography variant="body1" part="text">${(0,mf.unsafeHTML)(e)}</ft-typography>
|
|
1288
1288
|
`:rs.html`
|
|
1289
1289
|
<style>
|
|
@@ -1291,7 +1291,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1291
1291
|
display: none !important;
|
|
1292
1292
|
}
|
|
1293
1293
|
</style>
|
|
1294
|
-
`}selectAbstract(e){switch(e.type){case"MAP":return e.map.htmlExcerpt;case"DOCUMENT":return e.document.htmlExcerpt;case"TOPIC":return e.topic.htmlExcerpt}return""}contentAvailableCallback(e){super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(o=>o.setAttribute("part","kwicmatch"))}};ir.elementDefinitions={"ft-typography":se};ir.styles=$a});var gf=f(()=>{"use strict"});var xf={};Kt(xf,{FtSearchResultAbstract:()=>ir,FtSearchResultAbstractCssVariables:()=>Vo,styles:()=>$a});var bf,ns=f(()=>{"use strict";bf=b(N());os();Ko();gf();os();(0,bf.customElement)("ft-search-result-abstract")(ir)});var xo,vf,Sf,Ry,Ft,as=f(()=>{"use strict";xo=b(B()),vf=b(Q());ts();qo();st();Sf=b(Uo());Di();Ry=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},Ft=class extends
|
|
1294
|
+
`}selectAbstract(e){switch(e.type){case"MAP":return e.map.htmlExcerpt;case"DOCUMENT":return e.document.htmlExcerpt;case"TOPIC":return e.topic.htmlExcerpt}return""}contentAvailableCallback(e){super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(o=>o.setAttribute("part","kwicmatch"))}};ir.elementDefinitions={"ft-typography":se};ir.styles=$a});var gf=f(()=>{"use strict"});var xf={};Kt(xf,{FtSearchResultAbstract:()=>ir,FtSearchResultAbstractCssVariables:()=>Vo,styles:()=>$a});var bf,ns=f(()=>{"use strict";bf=b(N());os();Ko();gf();os();(0,bf.customElement)("ft-search-result-abstract")(ir)});var xo,vf,Sf,Ry,Ft,as=f(()=>{"use strict";xo=b(B()),vf=b(Q());ts();qo();st();Sf=b(Uo());Di();Ry=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},Ft=class extends $r{constructor(){super(...arguments),this.withoutLink=!1}render(){var e;return this.result?this.withoutLink?this.renderTitle():xo.html`
|
|
1295
1295
|
<a href="${Tn(this.result)}"
|
|
1296
1296
|
@click=${this.onResultClick}
|
|
1297
1297
|
target="${_p(this.result,(e=this.stateManager)===null||e===void 0?void 0:e.openExternalDocumentInNewTab)}"
|
|
@@ -1312,11 +1312,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1312
1312
|
}
|
|
1313
1313
|
`});var Gn,Nf=f(()=>{"use strict";Gn=class{constructor(e){this.onResultSelected=e,this.registeredComponents=[],this.registeredMetadata=new Set}registerComponent(e){e.setResultStateManager(this),this.registeredComponents.push(e),this.bindComponent(e)}unregisterComponent(e){this.registeredComponents.splice(this.registeredComponents.indexOf(e),1),e.cluster=void 0,e.result=void 0,e.rank=void 0}registerMetadata(e){this.registeredMetadata.add(e)}unregisterMetadata(e){this.registeredMetadata.delete(e)}updateCluster(e,o){this.cluster=e,this.rank=o,this.selectResult(this.cluster.entries[0])}selectResult(e){this.result=e,this.onResultSelected(e),this.registeredComponents.forEach(o=>this.bindComponent(o))}clear(){this.registeredComponents=[]}bindComponent(e){e.cluster=this.cluster,e.result=this.result,e.rank=this.rank}}});var If,vo,Lf,us,ds,xt,ps=f(()=>{"use strict";If=b(B()),vo=b(Q()),Lf=b(N());ls();Nf();us=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},ds=class extends CustomEvent{constructor(e){super("ft-search-result-cluster-change",{detail:e,bubbles:!0,composed:!0})}},xt=class extends Lf.FtLitElement{constructor(){super(...arguments),this.index=0,this.stateManager=new Gn(e=>this.onResultSelected(e))}render(){return If.html`
|
|
1314
1314
|
<slot @register-ft-search-result-component=${this.registerComponent}></slot>
|
|
1315
|
-
`}onResultSelected(e){this.result=e,this.dispatchEvent(new ds(this.result))}registerComponent(e){e.stopPropagation();let o=e.composedPath()[0];this.register(o)}register(e){this.stateManager.registerComponent(e)}update(e){super.update(e),e.has("cluster")&&this.cluster&&this.stateManager.updateCluster(this.cluster,this.index+1)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.clear()}};xt.elementDefinitions={};xt.styles=Rf;us([(0,vo.property)({attribute:!1})],xt.prototype,"cluster",void 0);us([(0,vo.state)()],xt.prototype,"result",void 0);us([(0,vo.property)()],xt.prototype,"index",void 0)});var Pf=f(()=>{"use strict"});var Tf,_f=f(()=>{"use strict";Tf=b(N());ps();ls();Pf();ps();(0,Tf.customElement)("ft-search-result-context")(xt)});var
|
|
1315
|
+
`}onResultSelected(e){this.result=e,this.dispatchEvent(new ds(this.result))}registerComponent(e){e.stopPropagation();let o=e.composedPath()[0];this.register(o)}register(e){this.stateManager.registerComponent(e)}update(e){super.update(e),e.has("cluster")&&this.cluster&&this.stateManager.updateCluster(this.cluster,this.index+1)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.clear()}};xt.elementDefinitions={};xt.styles=Rf;us([(0,vo.property)({attribute:!1})],xt.prototype,"cluster",void 0);us([(0,vo.state)()],xt.prototype,"result",void 0);us([(0,vo.property)()],xt.prototype,"index",void 0)});var Pf=f(()=>{"use strict"});var Tf,_f=f(()=>{"use strict";Tf=b(N());ps();ls();Pf();ps();(0,Tf.customElement)("ft-search-result-context")(xt)});var Mr,kf,fs=f(()=>{"use strict";rt();Mr=tt.build("searchResultsNumber"),kf={results:"{0} results","results[\\=1]":"1 result"}});var jn,Df,Vn,Wt,sr,Be,hs=f(()=>{"use strict";jn=b(B()),Df=b(zi()),Vn=b(Q()),Wt=b(N());cs();Ut();_f();is();ns();rt();fs();sr=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},Be=class extends We(Le){constructor(){super(),this.clusterPolicy="display-first-result",this.displayNoResultsMessage=!1,this.renderResult=()=>jn.html`
|
|
1316
1316
|
<ft-search-result-title></ft-search-result-title>
|
|
1317
1317
|
<ft-search-result-abstract></ft-search-result-abstract>
|
|
1318
|
-
`,this.clusterSortCriterion=[],this.selectedResultByCluster={},this.addI18nContext(
|
|
1319
|
-
<ft-typography part="no-results-message" variant="body1">${
|
|
1318
|
+
`,this.clusterSortCriterion=[],this.selectedResultByCluster={},this.addI18nContext(Mr)}render(){if(this.displayNoResultsMessage&&this.results!=null&&this.results.length==0)return jn.html`
|
|
1319
|
+
<ft-typography part="no-results-message" variant="body1">${Mr.messages.results(0)}</ft-typography>
|
|
1320
1320
|
`;let e=this.buildClusters();return(0,Df.repeat)(e,o=>o.id,(o,n)=>{var a;return jn.html`
|
|
1321
1321
|
<ft-search-result-context .cluster=${o} index="${n}"
|
|
1322
1322
|
@ft-search-result-cluster-change="${i=>this.onClusterChange(o.id,i.detail)}">
|
|
@@ -1324,9 +1324,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1324
1324
|
</ft-search-result-context>
|
|
1325
1325
|
`})}update(e){var o;super.update(e),(e.has("clusterSortCriterion")||e.has("stateManager")&&this.clusterSortCriterion)&&((o=this.stateManager)===null||o===void 0||o.setClusterSortCriterion(this.clusterSortCriterion))}contentAvailableCallback(e){var o;if(super.contentAvailableCallback(e),e.has("requestWithoutPaging")){let n=(o=this.renderRoot)===null||o===void 0?void 0:o.querySelector("ft-search-result-context");n&&Wt.scrollHelper.scrollIntoViewIfPossible(n,{position:1,behavior:"smooth"})}}onClusterChange(e,o){this.selectedResultByCluster[e]=o}buildClusters(){switch(this.clusterPolicy){case"display-all-results":return this.buildAllResultsClusters();default:return this.buildFullClusters()}}buildFullClusters(){var e,o;return(o=(e=this.results)===null||e===void 0?void 0:e.map(n=>({id:this.clusterId(n.entries[0]),entries:n.entries})))!==null&&o!==void 0?o:[]}buildAllResultsClusters(){var e,o,n;let a=(o=(e=this.results)===null||e===void 0?void 0:e.flatMap(i=>i.entries.map(s=>({id:this.clusterId(s),entries:[s]}))))!==null&&o!==void 0?o:[];return this.paging&&this.paging.page===1?a.slice(0,(n=this.paging.perPage)!==null&&n!==void 0?n:20):a}clusterId(e){var o,n,a,i,s;return(i=(n=(o=e.map)===null||o===void 0?void 0:o.mapId)!==null&&n!==void 0?n:(a=e.topic)===null||a===void 0?void 0:a.tocId)!==null&&i!==void 0?i:(s=e.document)===null||s===void 0?void 0:s.documentId}};Be.styles=ss;sr([(0,Vn.property)({type:String,attribute:"cluster-policy"})],Be.prototype,"clusterPolicy",void 0);sr([(0,Vn.property)({type:Boolean})],Be.prototype,"displayNoResultsMessage",void 0);sr([(0,Vn.property)({attribute:!1})],Be.prototype,"renderResult",void 0);sr([(0,Wt.jsonProperty)([])],Be.prototype,"clusterSortCriterion",void 0);sr([(0,Wt.redux)({selector:t=>({...t.request,paging:void 0})})],Be.prototype,"requestWithoutPaging",void 0);sr([(0,Wt.redux)({selector:t=>t.request.paging})],Be.prototype,"paging",void 0);sr([(0,Wt.redux)()],Be.prototype,"results",void 0)});var Bf=f(()=>{"use strict"});var Mf={};Kt(Mf,{FtSearchResults:()=>Be,FtSearchResultsCssVariables:()=>Ny,styles:()=>ss});var $f,Uf=f(()=>{"use strict";$f=b(N());hs();cs();Bf();hs();(0,$f.customElement)("ft-search-results")(Be)});var Ff,Iy,ys,ms=f(()=>{"use strict";Ff=b(B()),Iy={},ys=Ff.css`
|
|
1326
1326
|
|
|
1327
|
-
`});var Kn,Wf,Ly,Ht,gs=f(()=>{"use strict";Kn=b(B()),Wf=b(N());ms();Ut();rt();fs();st();Ly=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},Ht=class extends We(Le){constructor(){super(),this.addI18nContext(
|
|
1327
|
+
`});var Kn,Wf,Ly,Ht,gs=f(()=>{"use strict";Kn=b(B()),Wf=b(N());ms();Ut();rt();fs();st();Ly=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},Ht=class extends We(Le){constructor(){super(),this.addI18nContext(Mr,kf)}render(){return this.paging==null?Kn.nothing:Kn.html`
|
|
1328
1328
|
<ft-typography variant="body1">
|
|
1329
|
-
${
|
|
1329
|
+
${Mr.messages.results(this.paging.totalClustersCount)}
|
|
1330
1330
|
</ft-typography>
|
|
1331
1331
|
`}};Ht.elementDefinitions={"ft-typography":se};Ht.styles=ys;Ly([(0,Wf.redux)()],Ht.prototype,"paging",void 0)});var Hf=f(()=>{"use strict"});var Gf={};Kt(Gf,{FtSearchResultsNumber:()=>Ht,FtSearchResultsNumberCssVariables:()=>Iy,styles:()=>ys});var zf,jf=f(()=>{"use strict";zf=b(N());gs();ms();Hf();gs();(0,zf.customElement)("ft-search-results-number")(Ht)});var Vf=b(N());var $e=b(B()),bs=b(N());var Ua=b(B()),_=b(N());var Is=b(B()),H=b(N());Zt();var V={padding:H.FtCssVariableFactory.create("--ft-card-padding","","SIZE","12px"),borderRadius:H.FtCssVariableFactory.extend("--ft-card-border-radius","",H.designSystemVariables.borderRadiusM),borderStyle:H.FtCssVariableFactory.create("--ft-card-border-style","","UNKNOWN","none"),borderColor:H.FtCssVariableFactory.extend("--ft-card-border-color","",H.designSystemVariables.colorOutline),hoverBorderColor:H.FtCssVariableFactory.extend("--ft-card-hover-border-color","",H.designSystemVariables.colorPrimary),outlineStyle:H.FtCssVariableFactory.create("--ft-card-outline-style","","UNKNOWN","solid"),outlineWidth:H.FtCssVariableFactory.create("--ft-card-outline-width","","SIZE","0"),outlineColor:H.FtCssVariableFactory.extend("--ft-card-outline-color","",H.designSystemVariables.colorPrimary),selectedOutlineStyle:H.FtCssVariableFactory.create("--ft-card-selected-outline-style","","UNKNOWN","solid"),selectedOutlineWidth:H.FtCssVariableFactory.create("--ft-card-selected-outline-width","","SIZE","2px"),selectedOutlineColor:H.FtCssVariableFactory.extend("--ft-card-selected-outline-color","",H.designSystemVariables.colorPrimary),selectedBorderRadius:H.FtCssVariableFactory.extend("--ft-card-selected-border-radius","",H.designSystemVariables.borderRadiusM),colorSurface:H.FtCssVariableFactory.extend("--ft-card-background-color","",H.designSystemVariables.colorSurface),colorOnSurfaceMedium:H.FtCssVariableFactory.extend("--ft-card-content-color","",H.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceHigh:H.FtCssVariableFactory.extend("--ft-card-title-color","",H.designSystemVariables.colorOnSurfaceHigh),elevation02:H.FtCssVariableFactory.extend("--ft-card-elevation","",H.designSystemVariables.elevation02),elevation04:H.FtCssVariableFactory.extend("--ft-card-selected-elevation","",H.designSystemVariables.elevation04)},Ls=Is.css`
|
|
1332
1332
|
:host {
|
|
@@ -1406,7 +1406,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1406
1406
|
#action {
|
|
1407
1407
|
grid-area: actions;
|
|
1408
1408
|
}
|
|
1409
|
-
`;
|
|
1409
|
+
`;oo();Ko();Zt();qo();var ge={searchFieldBackgroundColor:_.FtCssVariableFactory.extend("--ft-rsid-search-field-background-color","",_.designSystemVariables.colorSurface),searchFieldBorderColor:_.FtCssVariableFactory.extend("--ft-rsid-search-field-border-color","",_.designSystemVariables.colorOutline),searchFieldTextColor:_.FtCssVariableFactory.extend("--ft-rsid-search-field-text-color","",_.designSystemVariables.colorOnSurface),searchFieldBorderRadius:_.FtCssVariableFactory.extend("--ft-rsid-search-field-border-radius","",_.designSystemVariables.borderRadiusS),searchButtonColor:_.FtCssVariableFactory.extend("--ft-rsid-search-field-button-color","",_.designSystemVariables.colorPrimary),resultsNumberColor:_.FtCssVariableFactory.extend("--ft-rsid-results-number-color","",_.designSystemVariables.colorOnSurfaceMedium),resultBackgroundColor:_.FtCssVariableFactory.extend("--ft-rsid-result-background-color","",_.designSystemVariables.colorSurface),resultBorderColor:_.FtCssVariableFactory.extend("--ft-rsid-result-border-color","",_.designSystemVariables.colorOutline),resultBorderRadius:_.FtCssVariableFactory.extend("--ft-rsid-result-border-radius","",_.designSystemVariables.borderRadiusS),resultTitleTextColor:_.FtCssVariableFactory.extend("--ft-rsid-result-title-text-color","",_.designSystemVariables.colorOnSurface),resultBreadcrumbTextColor:_.FtCssVariableFactory.extend("--ft-rsid-result-breadcrumb-text-color","",_.designSystemVariables.colorOnSurfaceMedium),resultContentTextColor:_.FtCssVariableFactory.extend("--ft-rsid-result-content-text-color","",_.designSystemVariables.colorOnSurface),resultHighlightBackgroundColor:_.FtCssVariableFactory.create("--ft-rsid-result-highlight-background-color","","COLOR","#FFF26E"),resultHoverBackgroundColor:_.FtCssVariableFactory.extend("--ft-rsid-result-hover-background-color","",_.designSystemVariables.colorPrimary),resultHoverBorderColor:_.FtCssVariableFactory.extend("--ft-rsid-result-hover-border-color","",_.designSystemVariables.colorPrimary)},Rd=Ua.css`
|
|
1410
1410
|
.ft-search-in-doc--container {
|
|
1411
1411
|
display: flex;
|
|
1412
1412
|
flex-direction: column;
|
|
@@ -1473,11 +1473,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1473
1473
|
text-decoration: none;
|
|
1474
1474
|
color: inherit;
|
|
1475
1475
|
}
|
|
1476
|
-
`;rt();var ip=b(N()),sp=b(Q());var ap;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"})(ap||(ap={}));var by=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},Ti=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Pi=Symbol("registerInterval");function xy(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(a){this.clearStateManager(),this.stateManager=a,this.addStore(a.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var a;return(a=this.stateManager)===null||a===void 0?void 0:a.service}connectedCallback(){super.connectedCallback(),this[Pi]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Pi]):this.dispatchEvent(new Ti)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Pi,by([(0,sp.state)()],o.prototype,"stateManager",void 0),o}var Nn=class extends xy(ip.FtLitElementRedux){};var Gt=b(Q());Di();var _n=class extends CustomEvent{constructor(e){super("ft-reader-search-in-document",{composed:!0,bubbles:!0,detail:e})}};rt();var Bi=tt.build("designedReaderSearchInDocument");var Bp=b(N());var
|
|
1476
|
+
`;rt();var ip=b(N()),sp=b(Q());var ap;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"})(ap||(ap={}));var by=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},Ti=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Pi=Symbol("registerInterval");function xy(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(a){this.clearStateManager(),this.stateManager=a,this.addStore(a.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var a;return(a=this.stateManager)===null||a===void 0?void 0:a.service}connectedCallback(){super.connectedCallback(),this[Pi]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Pi]):this.dispatchEvent(new Ti)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Pi,by([(0,sp.state)()],o.prototype,"stateManager",void 0),o}var Nn=class extends xy(ip.FtLitElementRedux){};var Gt=b(Q());Di();var _n=class extends CustomEvent{constructor(e){super("ft-reader-search-in-document",{composed:!0,bubbles:!0,detail:e})}};rt();var Bi=tt.build("designedReaderSearchInDocument");var Bp=b(N());var ho=b(B()),yo=b(Q()),kp=b(N());Ro();st();var Dp=b(Hr()),kn=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},He=class extends kp.FtLitElement{constructor(){super(...arguments),this.title="",this.clickable=!1,this.selected=!1,this.noHeader=!1}render(){let e={selected:this.selected,clickable:this.clickable,"no-header":this.noHeader};return ho.html`
|
|
1477
1477
|
<div id="container" part="container" class=${(0,Dp.classMap)(e)}>
|
|
1478
|
-
${this.clickable?
|
|
1478
|
+
${this.clickable?ho.html`
|
|
1479
1479
|
<ft-ripple primary ?selected=${this.selected}></ft-ripple>
|
|
1480
|
-
`:
|
|
1480
|
+
`:ho.nothing}
|
|
1481
1481
|
<div id="header" part="header">
|
|
1482
1482
|
<ft-typography class="title" element="span" variant="title">${this.title}</ft-typography>
|
|
1483
1483
|
<slot name="header"></slot>
|
|
@@ -1491,7 +1491,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1491
1491
|
</ft-typography>
|
|
1492
1492
|
</div>
|
|
1493
1493
|
</div>
|
|
1494
|
-
`}};He.elementDefinitions={"ft-ripple":X,"ft-typography":se};He.styles=Ls;kn([(0,
|
|
1494
|
+
`}};He.elementDefinitions={"ft-ripple":X,"ft-typography":se};He.styles=Ls;kn([(0,yo.property)()],He.prototype,"title",void 0);kn([(0,yo.property)({type:Boolean})],He.prototype,"clickable",void 0);kn([(0,yo.property)({type:Boolean})],He.prototype,"selected",void 0);kn([(0,yo.property)({type:Boolean})],He.prototype,"noHeader",void 0);(0,Bp.customElement)("ft-card")(He);var zt=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},Pe=class t extends We(Nn){constructor(){super(),this.searchInDocumentQuery="",this.hideResultTitle=!1,this.hideResultBreadcrumb=!1,this.hideResultAbstract=!1,this.hideResultsNumber=!1,this.userHasDoneManualAction=!1,this.uniqueId="search-in-document-"+(""+Math.round(Math.random()*999e3)).padStart(6,"0"),this.addI18nContext(Bi)}get filters(){return[{key:"ft:publicationId",valueFilter:{negative:!1,values:[this.map.id]}}]}renderResult(e,o){var n;return $e.html`
|
|
1495
1495
|
<style> ${Nd}</style>
|
|
1496
1496
|
<a href="${Tn(e)}" @click="${()=>this.onLinkClick(e,o)} }">
|
|
1497
1497
|
<ft-card clickable noheader>
|