@fluid-topics/ft-search-load-more-button 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.
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";(()=>{var ic=Object.create;var Sn=Object.defineProperty;var sc=Object.getOwnPropertyDescriptor;var cc=Object.getOwnPropertyNames;var lc=Object.getPrototypeOf,dc=Object.prototype.hasOwnProperty;var gt=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var uc=(e,r,o,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of cc(r))!dc.call(e,a)&&a!==o&&Sn(e,a,{get:()=>r[a],enumerable:!(n=sc(r,a))||n.enumerable});return e};var C=(e,r,o)=>(o=e!=null?ic(lc(e)):{},uc(r||!e||!e.__esModule?Sn(o,"default",{value:e,enumerable:!0}):o,e));var k=gt((Dl,On)=>{On.exports=ftGlobals.wcUtils});var G=gt((Bl,Cn)=>{Cn.exports=ftGlobals.lit});var
|
|
2
|
-
`)===0?$.substr(1,$.length):$}).forEach(function($){var
|
|
3
|
-
`;var Io=C(k());var Jt=C(
|
|
1
|
+
"use strict";(()=>{var ic=Object.create;var Sn=Object.defineProperty;var sc=Object.getOwnPropertyDescriptor;var cc=Object.getOwnPropertyNames;var lc=Object.getPrototypeOf,dc=Object.prototype.hasOwnProperty;var gt=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var uc=(e,r,o,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of cc(r))!dc.call(e,a)&&a!==o&&Sn(e,a,{get:()=>r[a],enumerable:!(n=sc(r,a))||n.enumerable});return e};var C=(e,r,o)=>(o=e!=null?ic(lc(e)):{},uc(r||!e||!e.__esModule?Sn(o,"default",{value:e,enumerable:!0}):o,e));var k=gt((Dl,On)=>{On.exports=ftGlobals.wcUtils});var G=gt((Bl,Cn)=>{Cn.exports=ftGlobals.lit});var ne=gt(($l,An)=>{An.exports=ftGlobals.litDecorators});var so=gt((Kp,Na)=>{Na.exports=ftGlobals.litClassMap});var wi=gt((qh,Ei)=>{Ei.exports=ftGlobals.litUnsafeHTML});var Ui=gt((qe,Bi)=>{var Nr=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Rr=function(){function e(){this.fetch=!1,this.DOMException=Nr.DOMException}return e.prototype=Nr,new e}();(function(e){var r=function(o){var n=typeof e<"u"&&e||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(y){return y&&DataView.prototype.isPrototypeOf(y)}if(a.arrayBuffer)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(y){return y&&c.indexOf(Object.prototype.toString.call(y))>-1};function f(y){if(typeof y!="string"&&(y=String(y)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(y)||y==="")throw new TypeError('Invalid character in header field name: "'+y+'"');return y.toLowerCase()}function u(y){return typeof y!="string"&&(y=String(y)),y}function h(y){var b={next:function(){var P=y.shift();return{done:P===void 0,value:P}}};return a.iterable&&(b[Symbol.iterator]=function(){return b}),b}function m(y){this.map={},y instanceof m?y.forEach(function(b,P){this.append(P,b)},this):Array.isArray(y)?y.forEach(function(b){if(b.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+b.length);this.append(b[0],b[1])},this):y&&Object.getOwnPropertyNames(y).forEach(function(b){this.append(b,y[b])},this)}m.prototype.append=function(y,b){y=f(y),b=u(b);var P=this.map[y];this.map[y]=P?P+", "+b:b},m.prototype.delete=function(y){delete this.map[f(y)]},m.prototype.get=function(y){return y=f(y),this.has(y)?this.map[y]:null},m.prototype.has=function(y){return this.map.hasOwnProperty(f(y))},m.prototype.set=function(y,b){this.map[f(y)]=u(b)},m.prototype.forEach=function(y,b){for(var P in this.map)this.map.hasOwnProperty(P)&&y.call(b,this.map[P],P,this)},m.prototype.keys=function(){var y=[];return this.forEach(function(b,P){y.push(P)}),h(y)},m.prototype.values=function(){var y=[];return this.forEach(function(b){y.push(b)}),h(y)},m.prototype.entries=function(){var y=[];return this.forEach(function(b,P){y.push([P,b])}),h(y)},a.iterable&&(m.prototype[Symbol.iterator]=m.prototype.entries);function g(y){if(!y._noBody){if(y.bodyUsed)return Promise.reject(new TypeError("Already read"));y.bodyUsed=!0}}function v(y){return new Promise(function(b,P){y.onload=function(){b(y.result)},y.onerror=function(){P(y.error)}})}function x(y){var b=new FileReader,P=v(b);return b.readAsArrayBuffer(y),P}function S(y){var b=new FileReader,P=v(b),$=/charset=([A-Za-z0-9_-]+)/.exec(y.type),z=$?$[1]:"utf-8";return b.readAsText(y,z),P}function L(y){for(var b=new Uint8Array(y),P=new Array(b.length),$=0;$<b.length;$++)P[$]=String.fromCharCode(b[$]);return P.join("")}function N(y){if(y.slice)return y.slice(0);var b=new Uint8Array(y.byteLength);return b.set(new Uint8Array(y)),b.buffer}function R(){return this.bodyUsed=!1,this._initBody=function(y){this.bodyUsed=this.bodyUsed,this._bodyInit=y,y?typeof y=="string"?this._bodyText=y:a.blob&&Blob.prototype.isPrototypeOf(y)?this._bodyBlob=y:a.formData&&FormData.prototype.isPrototypeOf(y)?this._bodyFormData=y:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)?this._bodyText=y.toString():a.arrayBuffer&&a.blob&&i(y)?(this._bodyArrayBuffer=N(y.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(y)||l(y))?this._bodyArrayBuffer=N(y):this._bodyText=y=Object.prototype.toString.call(y):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof y=="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(y)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var y=g(this);if(y)return y;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 y=g(this);return y||(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(x);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var y=g(this);if(y)return y;if(this._bodyBlob)return S(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(L(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(le)}),this.json=function(){return this.text().then(JSON.parse)},this}var T=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function B(y){var b=y.toUpperCase();return T.indexOf(b)>-1?b:y}function U(y,b){if(!(this instanceof U))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');b=b||{};var P=b.body;if(y instanceof U){if(y.bodyUsed)throw new TypeError("Already read");this.url=y.url,this.credentials=y.credentials,b.headers||(this.headers=new m(y.headers)),this.method=y.method,this.mode=y.mode,this.signal=y.signal,!P&&y._bodyInit!=null&&(P=y._bodyInit,y.bodyUsed=!0)}else this.url=String(y);if(this.credentials=b.credentials||this.credentials||"same-origin",(b.headers||!this.headers)&&(this.headers=new m(b.headers)),this.method=B(b.method||this.method||"GET"),this.mode=b.mode||this.mode||null,this.signal=b.signal||this.signal||function(){if("AbortController"in n){var M=new AbortController;return M.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&P)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(P),(this.method==="GET"||this.method==="HEAD")&&(b.cache==="no-store"||b.cache==="no-cache")){var $=/([?&])_=[^&]*/;if($.test(this.url))this.url=this.url.replace($,"$1_="+new Date().getTime());else{var z=/\?/;this.url+=(z.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}U.prototype.clone=function(){return new U(this,{body:this._bodyInit})};function le(y){var b=new FormData;return y.trim().split("&").forEach(function(P){if(P){var $=P.split("="),z=$.shift().replace(/\+/g," "),M=$.join("=").replace(/\+/g," ");b.append(decodeURIComponent(z),decodeURIComponent(M))}}),b}function we(y){var b=new m,P=y.replace(/\r?\n[\t ]+/g," ");return P.split("\r").map(function($){return $.indexOf(`
|
|
2
|
+
`)===0?$.substr(1,$.length):$}).forEach(function($){var z=$.split(":"),M=z.shift().trim();if(M){var lr=z.join(":").trim();try{b.append(M,lr)}catch(ao){console.warn("Response "+ao.message)}}}),b}R.call(U.prototype);function se(y,b){if(!(this instanceof se))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(b||(b={}),this.type="default",this.status=b.status===void 0?200:b.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=b.statusText===void 0?"":""+b.statusText,this.headers=new m(b.headers),this.url=b.url||"",this._initBody(y)}R.call(se.prototype),se.prototype.clone=function(){return new se(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},se.error=function(){var y=new se(null,{status:200,statusText:""});return y.ok=!1,y.status=0,y.type="error",y};var Ae=[301,302,303,307,308];se.redirect=function(y,b){if(Ae.indexOf(b)===-1)throw new RangeError("Invalid status code");return new se(null,{status:b,headers:{location:y}})},o.DOMException=n.DOMException;try{new o.DOMException}catch{o.DOMException=function(b,P){this.message=b,this.name=P;var $=Error(b);this.stack=$.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function ee(y,b){return new Promise(function(P,$){var z=new U(y,b);if(z.signal&&z.signal.aborted)return $(new o.DOMException("Aborted","AbortError"));var M=new XMLHttpRequest;function lr(){M.abort()}M.onload=function(){var te={statusText:M.statusText,headers:we(M.getAllResponseHeaders()||"")};z.url.indexOf("file://")===0&&(M.status<200||M.status>599)?te.status=200:te.status=M.status,te.url="responseURL"in M?M.responseURL:te.headers.get("X-Request-URL");var at="response"in M?M.response:M.responseText;setTimeout(function(){P(new se(at,te))},0)},M.onerror=function(){setTimeout(function(){$(new TypeError("Network request failed"))},0)},M.ontimeout=function(){setTimeout(function(){$(new TypeError("Network request timed out"))},0)},M.onabort=function(){setTimeout(function(){$(new o.DOMException("Aborted","AbortError"))},0)};function ao(te){try{return te===""&&n.location.href?n.location.href:te}catch{return te}}if(M.open(z.method,ao(z.url),!0),z.credentials==="include"?M.withCredentials=!0:z.credentials==="omit"&&(M.withCredentials=!1),"responseType"in M&&(a.blob?M.responseType="blob":a.arrayBuffer&&(M.responseType="arraybuffer")),b&&typeof b.headers=="object"&&!(b.headers instanceof m||n.Headers&&b.headers instanceof n.Headers)){var vn=[];Object.getOwnPropertyNames(b.headers).forEach(function(te){vn.push(f(te)),M.setRequestHeader(te,u(b.headers[te]))}),z.headers.forEach(function(te,at){vn.indexOf(at)===-1&&M.setRequestHeader(at,te)})}else z.headers.forEach(function(te,at){M.setRequestHeader(at,te)});z.signal&&(z.signal.addEventListener("abort",lr),M.onreadystatechange=function(){M.readyState===4&&z.signal.removeEventListener("abort",lr)}),M.send(typeof z._bodyInit>"u"?null:z._bodyInit)})}return ee.polyfill=!0,n.fetch||(n.fetch=ee,n.Headers=m,n.Request=U,n.Response=se),o.Headers=m,o.Request=U,o.Response=se,o.fetch=ee,o}({})})(Rr);Rr.fetch.ponyfill=!0;delete Rr.fetch.polyfill;var kt=Nr.fetch?Nr:Rr;qe=kt.fetch;qe.default=kt.fetch;qe.fetch=kt.fetch;qe.Headers=kt.Headers;qe.Request=kt.Request;qe.Response=kt.Response;Bi.exports=qe});var ac=C(k());var no=C(G()),xn=C(k());var En=C(G()),Ul={},wn=En.css`
|
|
3
|
+
`;var Io=C(k());var Jt=C(ne()),Ti=C(k());var wa=C(G()),D=C(k());var Tn=C(G()),Z=C(k()),Nn=Z.FtCssVariableFactory.extend("--ft-ripple-color","",Z.designSystemVariables.colorContent),E={color:Nn,backgroundColor:Z.FtCssVariableFactory.extend("--ft-ripple-background-color","",Nn),opacityContentOnSurfacePressed:Z.FtCssVariableFactory.external(Z.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Z.FtCssVariableFactory.external(Z.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Z.FtCssVariableFactory.external(Z.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Z.FtCssVariableFactory.external(Z.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Z.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Rn=Z.FtCssVariableFactory.extend("--ft-ripple-color","",Z.designSystemVariables.colorPrimary),Ln={color:Rn,backgroundColor:Z.FtCssVariableFactory.extend("--ft-ripple-background-color","",Rn)},In=Z.FtCssVariableFactory.extend("--ft-ripple-color","",Z.designSystemVariables.colorSecondary),Pn={color:In,backgroundColor:Z.FtCssVariableFactory.extend("--ft-ripple-background-color","",In)},_n=Tn.css`
|
|
4
4
|
:host {
|
|
5
5
|
display: contents;
|
|
6
6
|
}
|
|
@@ -334,7 +334,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
334
334
|
.ft-icon--material {
|
|
335
335
|
font-family: ${ce.materialFontFamily}, "Material Icons", sans-serif;
|
|
336
336
|
}
|
|
337
|
-
`;var Ca=D.FtCssVariableFactory.extend("--ft-button-color","",D.designSystemVariables.colorPrimary),
|
|
337
|
+
`;var Ca=D.FtCssVariableFactory.extend("--ft-button-color","",D.designSystemVariables.colorPrimary),X={backgroundColor:D.FtCssVariableFactory.extend("--ft-button-background-color","",D.designSystemVariables.colorSurface),borderRadius:D.FtCssVariableFactory.extend("--ft-button-border-radius","",D.designSystemVariables.borderRadiusL),color:Ca,fontSize:D.FtCssVariableFactory.extend("--ft-button-font-size","",Ne.fontSize),iconSize:D.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:D.FtCssVariableFactory.extend("--ft-button-ripple-color","",Ca),verticalPadding:D.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:D.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:D.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:D.FtCssVariableFactory.external(D.designSystemVariables.colorOpacityDisabled,"Design system")},Ea=D.FtCssVariableFactory.extend("--ft-button-primary-color","",D.FtCssVariableFactory.extend("--ft-button-color","",D.designSystemVariables.colorOnPrimary)),io={backgroundColor:D.FtCssVariableFactory.extend("--ft-button-primary-background-color","",D.FtCssVariableFactory.extend("--ft-button-background-color","",D.designSystemVariables.colorPrimary)),color:Ea,rippleColor:D.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Ea)},Re={borderRadius:D.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",D.FtCssVariableFactory.extend("--ft-button-border-radius","",D.designSystemVariables.borderRadiusM)),verticalPadding:D.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:D.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:D.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},Aa=[wa.css`
|
|
338
338
|
:host {
|
|
339
339
|
display: inline-block;
|
|
340
340
|
max-width: 100%;
|
|
@@ -345,7 +345,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
345
345
|
box-shadow: 0px 0px 0px transparent;
|
|
346
346
|
border: 0px solid transparent;
|
|
347
347
|
text-shadow: 0px 0px 0px transparent;
|
|
348
|
-
font-size: ${
|
|
348
|
+
font-size: ${X.fontSize};
|
|
349
349
|
text-decoration: none;
|
|
350
350
|
}
|
|
351
351
|
|
|
@@ -375,21 +375,21 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
375
375
|
border: none;
|
|
376
376
|
pointer-events: auto;
|
|
377
377
|
|
|
378
|
-
--ft-button-internal-line-height: max(calc(${
|
|
379
|
-
--ft-button-internal-color: ${
|
|
380
|
-
${(0,D.setVariable)(ce.size,
|
|
381
|
-
${(0,D.setVariable)(E.color,
|
|
378
|
+
--ft-button-internal-line-height: max(calc(${X.fontSize} + 2px), ${X.iconSize});
|
|
379
|
+
--ft-button-internal-color: ${X.color};
|
|
380
|
+
${(0,D.setVariable)(ce.size,X.iconSize)};
|
|
381
|
+
${(0,D.setVariable)(E.color,X.rippleColor)};
|
|
382
382
|
|
|
383
|
-
border-radius: ${
|
|
384
|
-
padding: ${
|
|
385
|
-
background-color: ${
|
|
383
|
+
border-radius: ${X.borderRadius};
|
|
384
|
+
padding: ${X.verticalPadding} ${X.horizontalPadding};
|
|
385
|
+
background-color: ${X.backgroundColor};
|
|
386
386
|
color: var(--ft-button-internal-color);
|
|
387
387
|
-webkit-mask-image: radial-gradient(white, black);
|
|
388
388
|
}
|
|
389
389
|
|
|
390
390
|
.ft-button.ft-button--outlined {
|
|
391
391
|
border: 1px solid var(--ft-button-internal-color);
|
|
392
|
-
padding: calc(${
|
|
392
|
+
padding: calc(${X.verticalPadding} - 1px) calc(${X.horizontalPadding} - 1px);
|
|
393
393
|
}
|
|
394
394
|
|
|
395
395
|
.ft-button.ft-button--dense {
|
|
@@ -407,7 +407,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
407
407
|
}
|
|
408
408
|
|
|
409
409
|
.ft-button--round {
|
|
410
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
410
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${X.verticalPadding});
|
|
411
411
|
}
|
|
412
412
|
|
|
413
413
|
.ft-button--round.ft-button--dense {
|
|
@@ -416,7 +416,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
416
416
|
|
|
417
417
|
.ft-button[disabled] {
|
|
418
418
|
filter: grayscale(1);
|
|
419
|
-
opacity: ${
|
|
419
|
+
opacity: ${X.opacityDisabled};
|
|
420
420
|
}
|
|
421
421
|
|
|
422
422
|
.ft-button.ft-button--primary {
|
|
@@ -435,7 +435,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
435
435
|
white-space: nowrap;
|
|
436
436
|
text-overflow: ellipsis;
|
|
437
437
|
display: block;
|
|
438
|
-
margin: 0 ${
|
|
438
|
+
margin: 0 ${X.iconPadding};
|
|
439
439
|
${(0,D.setVariable)(Ne.fontSize,"1em")};
|
|
440
440
|
${(0,D.setVariable)(Ne.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
441
441
|
}
|
|
@@ -454,8 +454,8 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
454
454
|
}
|
|
455
455
|
|
|
456
456
|
.ft-button--label[hidden] + [part="icon"] {
|
|
457
|
-
margin: 0 calc(${
|
|
458
|
-
padding: 0 ${
|
|
457
|
+
margin: 0 calc(${X.horizontalPadding} * -1);
|
|
458
|
+
padding: 0 ${X.verticalPadding};
|
|
459
459
|
}
|
|
460
460
|
|
|
461
461
|
.ft-button--dense .ft-button--label[hidden] + [part="icon"] {
|
|
@@ -468,10 +468,10 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
468
468
|
}
|
|
469
469
|
|
|
470
470
|
ft-loader {
|
|
471
|
-
${(0,D.setVariable)(W.size,
|
|
471
|
+
${(0,D.setVariable)(W.size,X.iconSize)};
|
|
472
472
|
${(0,D.setVariable)(W.color,"var(--ft-button-internal-color)")};
|
|
473
473
|
}
|
|
474
|
-
`,D.noTextSelect];var Ze=C(k());var Ia=C(k());var Ra=C(G()),re=C(
|
|
474
|
+
`,D.noTextSelect];var Ze=C(k());var Ia=C(k());var Ra=C(G()),re=C(ne()),La=C(so()),Ft=C(k());var de=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},j=class extends Ft.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 Ft.Debouncer(1e3),this.onTransitionStart=r=>{r.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=r=>{r.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new Ft.Debouncer(10),this.moveRipple=r=>{var o,n;let{x:a,y:i}=this.getCoordinates(r),c=(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-c.x:c.width/2),this.originY=Math.round(i!=null?i-c.y:c.height/2)},this.startPress=r=>{this.moveRipple(r),this.pressed=!this.isIgnored(r)},this.endPress=()=>{this.pressed=!1},this.startHover=r=>{this.hovered=!this.isIgnored(r)},this.endHover=()=>{this.hovered=!1},this.startFocus=r=>{this.focused=this.isFocusVisible(r?.target)&&!this.isIgnored(r)},this.endFocus=()=>{this.focused=!1}}render(){let r={"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 Ra.html`
|
|
475
475
|
<style>
|
|
476
476
|
.ft-ripple .ft-ripple--effect {
|
|
477
477
|
left: ${this.originX}px;
|
|
@@ -482,9 +482,9 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
482
482
|
<div class="ft-ripple--background"></div>
|
|
483
483
|
<div class="ft-ripple--effect"></div>
|
|
484
484
|
</div>
|
|
485
|
-
`}contentAvailableCallback(r){super.contentAvailableCallback(r),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(r){var o,n;super.update(r),r.has("disabled")&&(this.disabled?(this.endRipple(),(o=this.target)===null||o===void 0||o.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var r,o;let n=(r=this.shadowRoot)===null||r===void 0?void 0:r.host.parentElement;n&&this.setupFor((o=this.target)!==null&&o!==void 0?o:n)}setupFor(r){if(this.setupDebouncer.cancel(),this.target===r)return;this.onDisconnect&&this.onDisconnect(),this.target=r,r.setAttribute("data-is-ft-ripple-target","true");let o=(...l)=>f=>{l.forEach(u=>window.addEventListener(u,this.endPress,{once:!0})),this.startPress(f)},n=o("mouseup","contextmenu"),a=o("touchend","touchcancel"),i=l=>{["Enter"," "].includes(l.key)&&o("keyup")(l)},c={passive:!0};r.addEventListener("mouseover",this.startHover,c),r.addEventListener("mousemove",this.moveRipple,c),r.addEventListener("mouseleave",this.endHover,c),r.addEventListener("mousedown",n,c),r.addEventListener("touchstart",a,c),r.addEventListener("touchmove",this.moveRipple,c),r.addEventListener("keydown",i,c),r.addEventListener("focus",this.startFocus,c),r.addEventListener("blur",this.endFocus,c),r.addEventListener("focusin",this.startFocus,c),r.addEventListener("focusout",this.endFocus,c),this.onDisconnect=()=>{r.removeAttribute("data-is-ft-ripple-target"),r.removeEventListener("mouseover",this.startHover,c),r.removeEventListener("mousemove",this.moveRipple,c),r.removeEventListener("mouseleave",this.endHover,c),r.removeEventListener("mousedown",n,c),r.removeEventListener("touchstart",a,c),r.removeEventListener("touchmove",this.moveRipple,c),r.removeEventListener("keydown",i,c),r.removeEventListener("focus",this.startFocus,c),r.removeEventListener("blur",this.endFocus,c),r.removeEventListener("focusin",this.startFocus,c),r.removeEventListener("focusout",this.endFocus,c),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(r){let o=r,n=r,a,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(r){return r instanceof HTMLElement?r.matches(":focus-visible"):!0}isIgnored(r){if(this.disabled)return!0;if(r!=null)for(let o of r.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};j.elementDefinitions={};j.styles=_n;de([(0,re.property)({type:Boolean})],j.prototype,"primary",void 0);de([(0,re.property)({type:Boolean})],j.prototype,"secondary",void 0);de([(0,re.property)({type:Boolean})],j.prototype,"unbounded",void 0);de([(0,re.property)({type:Boolean})],j.prototype,"activated",void 0);de([(0,re.property)({type:Boolean})],j.prototype,"selected",void 0);de([(0,re.property)({type:Boolean})],j.prototype,"disabled",void 0);de([(0,re.state)()],j.prototype,"hovered",void 0);de([(0,re.state)()],j.prototype,"focused",void 0);de([(0,re.state)()],j.prototype,"pressed",void 0);de([(0,re.state)()],j.prototype,"rippling",void 0);de([(0,re.state)()],j.prototype,"originX",void 0);de([(0,re.state)()],j.prototype,"originY",void 0);de([(0,re.query)(".ft-ripple")],j.prototype,"ripple",void 0);de([(0,re.query)(".ft-ripple--effect")],j.prototype,"rippleEffect",void 0);(0,Ia.customElement)("ft-ripple")(j);var Ci=C(k());var Oi=C(G()),q=C(
|
|
485
|
+
`}contentAvailableCallback(r){super.contentAvailableCallback(r),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(r){var o,n;super.update(r),r.has("disabled")&&(this.disabled?(this.endRipple(),(o=this.target)===null||o===void 0||o.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var r,o;let n=(r=this.shadowRoot)===null||r===void 0?void 0:r.host.parentElement;n&&this.setupFor((o=this.target)!==null&&o!==void 0?o:n)}setupFor(r){if(this.setupDebouncer.cancel(),this.target===r)return;this.onDisconnect&&this.onDisconnect(),this.target=r,r.setAttribute("data-is-ft-ripple-target","true");let o=(...l)=>f=>{l.forEach(u=>window.addEventListener(u,this.endPress,{once:!0})),this.startPress(f)},n=o("mouseup","contextmenu"),a=o("touchend","touchcancel"),i=l=>{["Enter"," "].includes(l.key)&&o("keyup")(l)},c={passive:!0};r.addEventListener("mouseover",this.startHover,c),r.addEventListener("mousemove",this.moveRipple,c),r.addEventListener("mouseleave",this.endHover,c),r.addEventListener("mousedown",n,c),r.addEventListener("touchstart",a,c),r.addEventListener("touchmove",this.moveRipple,c),r.addEventListener("keydown",i,c),r.addEventListener("focus",this.startFocus,c),r.addEventListener("blur",this.endFocus,c),r.addEventListener("focusin",this.startFocus,c),r.addEventListener("focusout",this.endFocus,c),this.onDisconnect=()=>{r.removeAttribute("data-is-ft-ripple-target"),r.removeEventListener("mouseover",this.startHover,c),r.removeEventListener("mousemove",this.moveRipple,c),r.removeEventListener("mouseleave",this.endHover,c),r.removeEventListener("mousedown",n,c),r.removeEventListener("touchstart",a,c),r.removeEventListener("touchmove",this.moveRipple,c),r.removeEventListener("keydown",i,c),r.removeEventListener("focus",this.startFocus,c),r.removeEventListener("blur",this.endFocus,c),r.removeEventListener("focusin",this.startFocus,c),r.removeEventListener("focusout",this.endFocus,c),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(r){let o=r,n=r,a,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(r){return r instanceof HTMLElement?r.matches(":focus-visible"):!0}isIgnored(r){if(this.disabled)return!0;if(r!=null)for(let o of r.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};j.elementDefinitions={};j.styles=_n;de([(0,re.property)({type:Boolean})],j.prototype,"primary",void 0);de([(0,re.property)({type:Boolean})],j.prototype,"secondary",void 0);de([(0,re.property)({type:Boolean})],j.prototype,"unbounded",void 0);de([(0,re.property)({type:Boolean})],j.prototype,"activated",void 0);de([(0,re.property)({type:Boolean})],j.prototype,"selected",void 0);de([(0,re.property)({type:Boolean})],j.prototype,"disabled",void 0);de([(0,re.state)()],j.prototype,"hovered",void 0);de([(0,re.state)()],j.prototype,"focused",void 0);de([(0,re.state)()],j.prototype,"pressed",void 0);de([(0,re.state)()],j.prototype,"rippling",void 0);de([(0,re.state)()],j.prototype,"originX",void 0);de([(0,re.state)()],j.prototype,"originY",void 0);de([(0,re.query)(".ft-ripple")],j.prototype,"ripple",void 0);de([(0,re.query)(".ft-ripple--effect")],j.prototype,"rippleEffect",void 0);(0,Ia.customElement)("ft-ripple")(j);var Ci=C(k());var Oi=C(G()),q=C(ne()),Xt=C(k());var Ya=C(k());var yo=globalThis,pr=yo.trustedTypes,Pa=pr?pr.createPolicy("lit-html",{createHTML:e=>e}):void 0,Ua="$lit$",ze=`lit$${(Math.random()+"").slice(9)}$`,Ma="?"+ze,pc=`<${Ma}>`,ct=document,hr=()=>ct.createComment(""),zt=e=>e===null||typeof e!="object"&&typeof e!="function",$a=Array.isArray,hc=e=>$a(e)||typeof e?.[Symbol.iterator]=="function",co=`[
|
|
486
486
|
\f\r]`,Ht=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ta=/-->/g,_a=/>/g,it=RegExp(`>|${co}(?:([^\\s"'>=/]+)(${co}*=${co}*(?:[^
|
|
487
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),ka=/'/g,Da=/"/g,Wa=/^(?:script|style|textarea|title)$/i,Fa=e=>(r,...o)=>({_$litType$:e,strings:r,values:o}),Ha=Fa(1),za=Fa(2),Gt=Symbol.for("lit-noChange"),
|
|
487
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),ka=/'/g,Da=/"/g,Wa=/^(?:script|style|textarea|title)$/i,Fa=e=>(r,...o)=>({_$litType$:e,strings:r,values:o}),Ha=Fa(1),za=Fa(2),Gt=Symbol.for("lit-noChange"),Q=Symbol.for("lit-nothing"),Ba=new WeakMap,st=ct.createTreeWalker(ct,129);function Ga(e,r){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Pa!==void 0?Pa.createHTML(r):r}var yc=(e,r)=>{let o=e.length-1,n=[],a,i=r===2?"<svg>":"",c=Ht;for(let l=0;l<o;l++){let f=e[l],u,h,m=-1,g=0;for(;g<f.length&&(c.lastIndex=g,h=c.exec(f),h!==null);)g=c.lastIndex,c===Ht?h[1]==="!--"?c=Ta:h[1]!==void 0?c=_a:h[2]!==void 0?(Wa.test(h[2])&&(a=RegExp("</"+h[2],"g")),c=it):h[3]!==void 0&&(c=it):c===it?h[0]===">"?(c=a??Ht,m=-1):h[1]===void 0?m=-2:(m=c.lastIndex-h[2].length,u=h[1],c=h[3]===void 0?it:h[3]==='"'?Da:ka):c===Da||c===ka?c=it:c===Ta||c===_a?c=Ht:(c=it,a=void 0);let v=c===it&&e[l+1].startsWith("/>")?" ":"";i+=c===Ht?f+pc:m>=0?(n.push(u),f.slice(0,m)+Ua+f.slice(m)+ze+v):f+ze+(m===-2?l:v)}return[Ga(e,i+(e[o]||"<?>")+(r===2?"</svg>":"")),n]},jt=class e{constructor({strings:r,_$litType$:o},n){let a;this.parts=[];let i=0,c=0,l=r.length-1,f=this.parts,[u,h]=yc(r,o);if(this.el=e.createElement(u,n),st.currentNode=this.el.content,o===2){let m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(a=st.nextNode())!==null&&f.length<l;){if(a.nodeType===1){if(a.hasAttributes())for(let m of a.getAttributeNames())if(m.endsWith(Ua)){let g=h[c++],v=a.getAttribute(m).split(ze),x=/([.?@])?(.*)/.exec(g);f.push({type:1,index:i,name:x[2],strings:v,ctor:x[1]==="."?uo:x[1]==="?"?fo:x[1]==="@"?po:Lt}),a.removeAttribute(m)}else m.startsWith(ze)&&(f.push({type:6,index:i}),a.removeAttribute(m));if(Wa.test(a.tagName)){let m=a.textContent.split(ze),g=m.length-1;if(g>0){a.textContent=pr?pr.emptyScript:"";for(let v=0;v<g;v++)a.append(m[v],hr()),st.nextNode(),f.push({type:2,index:++i});a.append(m[g],hr())}}}else if(a.nodeType===8)if(a.data===Ma)f.push({type:2,index:i});else{let m=-1;for(;(m=a.data.indexOf(ze,m+1))!==-1;)f.push({type:7,index:i}),m+=ze.length-1}i++}}static createElement(r,o){let n=ct.createElement("template");return n.innerHTML=r,n}};function Rt(e,r,o=e,n){if(r===Gt)return r;let a=n!==void 0?o._$Co?.[n]:o._$Cl,i=zt(r)?void 0:r._$litDirective$;return a?.constructor!==i&&(a?._$AO?.(!1),i===void 0?a=void 0:(a=new i(e),a._$AT(e,o,n)),n!==void 0?(o._$Co??=[])[n]=a:o._$Cl=a),a!==void 0&&(r=Rt(e,a._$AS(e,r.values),a,n)),r}var lo=class{constructor(r,o){this._$AV=[],this._$AN=void 0,this._$AD=r,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(r){let{el:{content:o},parts:n}=this._$AD,a=(r?.creationScope??ct).importNode(o,!0);st.currentNode=a;let i=st.nextNode(),c=0,l=0,f=n[0];for(;f!==void 0;){if(c===f.index){let u;f.type===2?u=new yr(i,i.nextSibling,this,r):f.type===1?u=new f.ctor(i,f.name,f.strings,this,r):f.type===6&&(u=new ho(i,this,r)),this._$AV.push(u),f=n[++l]}c!==f?.index&&(i=st.nextNode(),c++)}return st.currentNode=ct,a}p(r){let o=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(r,n,o),o+=n.strings.length-2):n._$AI(r[o])),o++}},yr=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(r,o,n,a){this.type=2,this._$AH=Q,this._$AN=void 0,this._$AA=r,this._$AB=o,this._$AM=n,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let r=this._$AA.parentNode,o=this._$AM;return o!==void 0&&r?.nodeType===11&&(r=o.parentNode),r}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(r,o=this){r=Rt(this,r,o),zt(r)?r===Q||r==null||r===""?(this._$AH!==Q&&this._$AR(),this._$AH=Q):r!==this._$AH&&r!==Gt&&this._(r):r._$litType$!==void 0?this.g(r):r.nodeType!==void 0?this.$(r):hc(r)?this.T(r):this._(r)}k(r){return this._$AA.parentNode.insertBefore(r,this._$AB)}$(r){this._$AH!==r&&(this._$AR(),this._$AH=this.k(r))}_(r){this._$AH!==Q&&zt(this._$AH)?this._$AA.nextSibling.data=r:this.$(ct.createTextNode(r)),this._$AH=r}g(r){let{values:o,_$litType$:n}=r,a=typeof n=="number"?this._$AC(r):(n.el===void 0&&(n.el=jt.createElement(Ga(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(o);else{let i=new lo(a,this),c=i.u(this.options);i.p(o),this.$(c),this._$AH=i}}_$AC(r){let o=Ba.get(r.strings);return o===void 0&&Ba.set(r.strings,o=new jt(r)),o}T(r){$a(this._$AH)||(this._$AH=[],this._$AR());let o=this._$AH,n,a=0;for(let i of r)a===o.length?o.push(n=new e(this.k(hr()),this.k(hr()),this,this.options)):n=o[a],n._$AI(i),a++;a<o.length&&(this._$AR(n&&n._$AB.nextSibling,a),o.length=a)}_$AR(r=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);r&&r!==this._$AB;){let n=r.nextSibling;r.remove(),r=n}}setConnected(r){this._$AM===void 0&&(this._$Cv=r,this._$AP?.(r))}},Lt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(r,o,n,a,i){this.type=1,this._$AH=Q,this._$AN=void 0,this.element=r,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=Q}_$AI(r,o=this,n,a){let i=this.strings,c=!1;if(i===void 0)r=Rt(this,r,o,0),c=!zt(r)||r!==this._$AH&&r!==Gt,c&&(this._$AH=r);else{let l=r,f,u;for(r=i[0],f=0;f<i.length-1;f++)u=Rt(this,l[n+f],o,f),u===Gt&&(u=this._$AH[f]),c||=!zt(u)||u!==this._$AH[f],u===Q?r=Q:r!==Q&&(r+=(u??"")+i[f+1]),this._$AH[f]=u}c&&!a&&this.O(r)}O(r){r===Q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,r??"")}},uo=class extends Lt{constructor(){super(...arguments),this.type=3}O(r){this.element[this.name]=r===Q?void 0:r}},fo=class extends Lt{constructor(){super(...arguments),this.type=4}O(r){this.element.toggleAttribute(this.name,!!r&&r!==Q)}},po=class extends Lt{constructor(r,o,n,a,i){super(r,o,n,a,i),this.type=5}_$AI(r,o=this){if((r=Rt(this,r,o,0)??Q)===Gt)return;let n=this._$AH,a=r===Q&&n!==Q||r.capture!==n.capture||r.once!==n.once||r.passive!==n.passive,i=r!==Q&&(n===Q||a);a&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,r),this._$AH=r}handleEvent(r){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,r):this._$AH.handleEvent(r)}},ho=class{constructor(r,o,n){this.element=r,this.type=6,this._$AN=void 0,this._$AM=o,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(r){Rt(this,r)}};var mc=yo.litHtmlPolyfillSupport;mc?.(jt,yr),(yo.litHtmlVersions??=[]).push("3.1.0");var Va=Symbol.for(""),gc=e=>{if(e?.r===Va)return e?._$litStatic$},mo=e=>({_$litStatic$:e,r:Va});var ja=new Map,Ka=e=>(r,...o)=>{let n=o.length,a,i,c=[],l=[],f,u=0,h=!1;for(;u<n;){for(f=r[u];u<n&&(i=o[u],(a=gc(i))!==void 0);)f+=a+r[++u],h=!0;u!==n&&l.push(i),c.push(f),u++}if(u===n&&c.push(r[n]),h){let m=c.join("$$lit$$");(r=ja.get(m))===void 0&&(c.raw=c,ja.set(m,r=c)),o=l}return e(r,...o)},go=Ka(Ha),oh=Ka(za);var bo=C(ne()),qa=C(k());var Ge;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button",e.display="display",e.title1="title-1",e.title2="title-2",e.title3="title-3",e.body1regular="body-1-regular",e.body1medium="body-1-medium",e.body1semibold="body-1-semibold",e.body2regular="body-2-regular",e.body2medium="body-2-medium",e.body2semibold="body-2-semibold",e.label1medium="label-1-medium",e.label1semibold="label-1-semibold",e.label1bold="label-1-bold",e.label2medium="label-2-medium",e.label2semibold="label-2-semibold",e.label2bold="label-2-bold",e.caption1medium="caption-1-medium",e.caption1semibold="caption-1-semibold",e.caption1bold="caption-1-bold",e.caption2medium="caption-2-medium",e.caption2semibold="caption-2-semibold",e.caption2bold="caption-2-bold"})(Ge||(Ge={}));var Za=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},xe=class extends qa.FtLitElement{constructor(){super(...arguments),this.variant=Ge.body1}render(){return this.element?go`
|
|
488
488
|
<${mo(this.element)}
|
|
489
489
|
part="text"
|
|
490
490
|
class="ft-typography ft-typography--${this.variant}">
|
|
@@ -539,7 +539,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
539
539
|
</div>
|
|
540
540
|
</div>
|
|
541
541
|
</div>
|
|
542
|
-
`}updated(r){r.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(r)}contentAvailableCallback(r){super.contentAvailableCallback(r),["visible","text"].some(o=>r.has(o))&&this.visible&&this.positionTooltip()}async show(r){this.visible=!0,r!=null&&await this.hideDebounce.run(()=>{this.hide()},r)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var r;return((r=this.slotNodes)!==null&&r!==void 0?r:[]).filter(o=>o.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let r=this.tooltipContent.style;switch(r.transition="none",this.validPosition){case"top":r.top=this.tooltip.clientHeight+"px",r.left="0";break;case"bottom":r.top=-this.tooltip.clientHeight+"px",r.left="0";break;case"left":r.top="0",r.left=this.tooltip.clientWidth+"px";break;case"right":r.top="0",r.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Si(this.slottedElement,this.tooltip,this.position).then(({x:r,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${r}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",r=>{r.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(r,o){return Math.max(r,Math.min(0,-o))}};V.elementDefinitions={"ft-typography":xe};V.styles=Qa;fe([(0,q.property)()],V.prototype,"text",void 0);fe([(0,q.property)({type:Boolean})],V.prototype,"manual",void 0);fe([(0,q.property)({type:Boolean})],V.prototype,"inline",void 0);fe([(0,q.property)({type:Number})],V.prototype,"delay",void 0);fe([(0,q.property)()],V.prototype,"position",void 0);fe([(0,q.queryAssignedNodes)()],V.prototype,"slotNodes",void 0);fe([(0,q.query)(".ft-tooltip--container")],V.prototype,"container",void 0);fe([(0,q.query)(".ft-tooltip")],V.prototype,"tooltip",void 0);fe([(0,q.query)(".ft-tooltip--content")],V.prototype,"tooltipContent",void 0);fe([(0,q.state)()],V.prototype,"visible",void 0);fe([(0,q.eventOptions)({passive:!0})],V.prototype,"onTouch",null);fe([(0,q.eventOptions)({passive:!0})],V.prototype,"onHover",null);fe([(0,q.eventOptions)({passive:!0})],V.prototype,"onOut",null);fe([(0,q.eventOptions)({passive:!0})],V.prototype,"onClick",null);(0,Ci.customElement)("ft-tooltip")(V);var Ri=C(k());var Qt=C(G()),ut=C(oe()),Ai=C(k()),Ni=C(wi());var Or;(function(e){e.ADD_TO_PBK="",e.ALERT="",e.ADD_ALERT="",e.BACK_TO_SEARCH="",e.ADD_BOOKMARK="",e.BOOKMARK="",e.BOOKS="",e.MENU="",e.DOWNLOAD="",e.EDIT="",e.FEEDBACK="",e.HOME="",e.MODIFY_PBK="",e.SCHEDULED="",e.SEARCH="",e.EXPORT="",e.TOC="",e.WRITE_UGC="",e.TRASH="",e.USER="",e.EXTLINK="",e.CALENDAR="",e.OFFLINE="",e.BOOK="",e.DOWNLOAD_PLAIN="",e.CHECK="",e.STAR_PLAIN="",e.TOPICS="",e.DISC="",e.CIRCLE="",e.SHARED="",e.SORT_UNSORTED="",e.SORT_UP="",e.SORT_DOWN="",e.WORKING="",e.CLOSE="",e.ZOOM_OUT="",e.ZOOM_IN="",e.ZOOM_REALSIZE="",e.ZOOM_FULLSCREEN="",e.ADMIN_RESTRICTED="",e.ADMIN="",e.ADMIN_KHUB="",e.ADMIN_THEME="",e.ADMIN_USERS="",e.WARNING="",e.CONTEXT="",e.SEARCH_HOME="",e.STEPS="",e.ICON_EXPAND="",e.ICON_COLLAPSE="",e.INFO="",e.MINUS_PLAIN="",e.PLUS_PLAIN="",e.FACET_HAS_DESCENDANT="",e.TRIANGLE_BOTTOM="",e.TRIANGLE_LEFT="",e.TRIANGLE_RIGHT="",e.TRIANGLE_TOP="",e.THIN_ARROW="",e.SIGN_IN="",e.LOGOUT="",e.TRANSLATE="",e.CLOSE_PLAIN="",e.CHECK_PLAIN="",e.ARTICLE="",e.COLUMNS="",e.ANALYTICS="",e.COLLECTIONS="",e.ARROW_DOWN="",e.ARROW_LEFT="",e.ARROW_RIGHT="",e.ARROW_UP="",e.SEARCH_IN_PUBLICATION="",e.COPY_TO_CLIPBOARD="",e.SHARED_PBK="",e.ATTACHMENTS="",e.STRIPE_ARROW_LEFT="",e.STRIPE_ARROW_RIGHT="",e.FILTERS="",e.DOT="",e.MINUS="",e.PLUS="",e.MAILS_AND_NOTIFICATIONS="",e.SAVE="",e.LOCKER="",e.ADMIN_INTEGRATION="",e.SYNC="",e.TAG="",e.BOOK_PLAIN="",e.UPLOAD="",e.ONLINE="",e.TAG_PLAIN="",e.ACCOUNT_SETTINGS="",e.PRINT="",e.DEFAULT_ROLES="",e.SHORTCUT_MENU="",e.RELATIVES_PLAIN="",e.RELATIVES="",e.PAUSE="",e.PLAY="",e.ADMIN_PORTAL="",e.STAR="",e.THUMBS_DOWN="",e.THUMBS_DOWN_PLAIN="",e.THUMBS_UP="",e.THUMBS_UP_PLAIN="",e.FEEDBACK_PLAIN="",e.RATE_PLAIN="",e.RATE="",e.OFFLINE_SETTINGS="",e.MY_COLLECTIONS="",e.THIN_ARROW_LEFT="",e.THIN_ARROW_RIGHT="",e.RESET="",e.MY_LIBRARY="",e.UNSTRUCTURED_DOC="",e.CONTEXTUAL="",e.THIN_ARROW_UP="",e.ARROW_RIGHT_TO_LINE="",e.DESKTOP="",e.TABLET_LANDSCAPE="",e.TABLET_PORTRAIT="",e.MOBILE_LANDSCAPE="",e.MOBILE_PORTRAIT="",e.DIAGRAM_SUNBURST="",e.DIAGRAM_SANKEY="",e.COMMENT_QUESTION="",e.COMMENT_QUESTION_PLAIN="",e.MESSAGE_BOT="",e.CHART_SIMPLE="",e.BARS_PROGRESS="",e.BOOK_OPEN_GEAR="",e.BOOK_OPEN_GEAR_SLASH="",e.LINE_CHART="",e.STACKED_CHART="",e.CHART_BAR_STACKED="",e.CHART_BAR_GROUPED="",e.EYE_SLASH="",e.X_MARK="",e.EXPAND_WIDE="",e.PIP="",e.PIP_WIDE="",e.LIFE_RING="",e.GLOBE="",e.PIGGY_BANK="",e.EXTLINK_LIGHT="",e.CLONE="",e.CLONE_LINK_SIMPLE="",e.CHART_BAR_NORMALIZED="",e.CONSUMER="",e.OCTAGON_XMARK="",e.HOURGLASS_HALF="",e.CLOCK="",e.CLOCK_THREE="",e.CALENDAR_DAY="",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="",e.WAND_MAGIC_SPARKLES="",e.PAPER_PLANE="",e.CIRCLE_STOP="",e.ARROW_ROTATE_RIGHT="",e.ARROWS_ROTATE="",e.ALIGN_RIGHT="",e.FORMAT_CLEAR="",e.ALIGN_CENTER="",e.ALIGN_LEFT="",e.PALETTE="",e.BOLD="",e.ITALIC="",e.UNDERLINE="",e.STRIKETHROUGH="",e.LINK_SIMPLE_SLASH="",e.LINK_SIMPLE="",e.ROUTE="",e.CIRCLE_USER_SLASH="",e.CIRCLE_USER_CHECK="",e.LIST_MAGNIFYING_GLASS="",e.MEDAL="",e.THUMBS_UP_THUMBS_DOWN_SOLID="",e.ARROW_TURN_DOWN_RIGHT="",e.FLASK="",e.LOCK_KEYHOLE_OPEN_SOLID="",e.HOURGLASS_END="",e.CIRCLE_QUESTION="",e.EYE="",e.SHARE="󨃱",e.GRIP_LINES_SOLID="",e.TRANSLATE_SPARKLE_SOLID="",e.CODE=""})(Or||(Or={}));var w;(function(e){e.UNKNOWN="",e.ABW="",e.AUDIO="",e.AVI="",e.CHM="",e.CODE="",e.CSV="",e.DITA="",e.EPUB="",e.EXCEL="",e.FLAC="",e.GIF="",e.GZIP="",e.HTML="",e.IMAGE="",e.JPEG="",e.JSON="",e.M4A="",e.MOV="",e.MP3="",e.MP4="",e.OGG="",e.PDF="",e.PNG="",e.POWERPOINT="",e.RAR="",e.STP="",e.TEXT="",e.VIDEO="",e.WAV="",e.WMA="",e.WORD="",e.XML="",e.YAML="",e.ZIP=""})(w||(w={}));var Yh=new Map([...["abw"].map(e=>[e,w.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(e=>[e,w.AUDIO]),...["avi"].map(e=>[e,w.AVI]),...["chm","xhs"].map(e=>[e,w.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(e=>[e,w.CODE]),...["csv"].map(e=>[e,w.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,w.DITA]),...["epub"].map(e=>[e,w.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,w.EXCEL]),...["flac"].map(e=>[e,w.FLAC]),...["gif"].map(e=>[e,w.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,w.GZIP]),...["html","htm","xhtml"].map(e=>[e,w.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(e=>[e,w.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,w.JPEG]),...["json"].map(e=>[e,w.JSON]),...["m4a","m4p"].map(e=>[e,w.M4A]),...["mov","qt"].map(e=>[e,w.MOV]),...["mp3"].map(e=>[e,w.MP3]),...["mp4","m4v"].map(e=>[e,w.MP4]),...["ogg","oga"].map(e=>[e,w.OGG]),...["pdf","ps"].map(e=>[e,w.PDF]),...["png"].map(e=>[e,w.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,w.POWERPOINT]),...["rar"].map(e=>[e,w.RAR]),...["stp"].map(e=>[e,w.STP]),...["txt","rtf","md","mdown"].map(e=>[e,w.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(e=>[e,w.VIDEO]),...["wav"].map(e=>[e,w.WAV]),...["wma"].map(e=>[e,w.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,w.WORD]),...["xml","xsl","rdf"].map(e=>[e,w.XML]),...["yaml","yml","x-yaml"].map(e=>[e,w.YAML]),...["zip"].map(e=>[e,w.ZIP])]);var Xh={[w.ABW]:"#91ABC6",[w.AUDIO]:"#1795E3",[w.AVI]:"#E63324",[w.CHM]:"#71C3EB",[w.CODE]:"#71C3EB",[w.CSV]:"#1F7345",[w.DITA]:"#71C3EB",[w.EPUB]:"#85B926",[w.EXCEL]:"#1F7345",[w.FLAC]:"#1795E3",[w.GIF]:"#59B031",[w.GZIP]:"#F8AB36",[w.HTML]:"#71C3EB",[w.IMAGE]:"#59B031",[w.JPEG]:"#59B031",[w.JSON]:"#71C3EB",[w.M4A]:"#1795E3",[w.MOV]:"#E63324",[w.MP3]:"#1795E3",[w.MP4]:"#E63324",[w.OGG]:"#1795E3",[w.PDF]:"#E44948",[w.PNG]:"#59B031",[w.POWERPOINT]:"#B54A2B",[w.RAR]:"#F8AB36",[w.STP]:"#3764B1",[w.TEXT]:"#3162AB",[w.UNKNOWN]:"#999999",[w.VIDEO]:"#E63324",[w.WAV]:"#1795E3",[w.WMA]:"#1795E3",[w.WORD]:"#3162AB",[w.XML]:"#71C3EB",[w.YAML]:"#71C3EB",[w.ZIP]:"#F8AB36"};var Ie;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(Ie||(Ie={}));var Cr=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},ge=class extends Ai.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=Qt.nothing}render(){let r=this.variant&&Object.values(Ie).includes(this.variant)?this.variant:Ie.fluid_topics,o=r!==Ie.material||!!this.value;return Qt.html`
|
|
542
|
+
`}updated(r){r.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(r)}contentAvailableCallback(r){super.contentAvailableCallback(r),["visible","text"].some(o=>r.has(o))&&this.visible&&this.positionTooltip()}async show(r){this.visible=!0,r!=null&&await this.hideDebounce.run(()=>{this.hide()},r)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var r;return((r=this.slotNodes)!==null&&r!==void 0?r:[]).filter(o=>o.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let r=this.tooltipContent.style;switch(r.transition="none",this.validPosition){case"top":r.top=this.tooltip.clientHeight+"px",r.left="0";break;case"bottom":r.top=-this.tooltip.clientHeight+"px",r.left="0";break;case"left":r.top="0",r.left=this.tooltip.clientWidth+"px";break;case"right":r.top="0",r.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Si(this.slottedElement,this.tooltip,this.position).then(({x:r,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${r}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",r=>{r.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(r,o){return Math.max(r,Math.min(0,-o))}};V.elementDefinitions={"ft-typography":xe};V.styles=Qa;fe([(0,q.property)()],V.prototype,"text",void 0);fe([(0,q.property)({type:Boolean})],V.prototype,"manual",void 0);fe([(0,q.property)({type:Boolean})],V.prototype,"inline",void 0);fe([(0,q.property)({type:Number})],V.prototype,"delay",void 0);fe([(0,q.property)()],V.prototype,"position",void 0);fe([(0,q.queryAssignedNodes)()],V.prototype,"slotNodes",void 0);fe([(0,q.query)(".ft-tooltip--container")],V.prototype,"container",void 0);fe([(0,q.query)(".ft-tooltip")],V.prototype,"tooltip",void 0);fe([(0,q.query)(".ft-tooltip--content")],V.prototype,"tooltipContent",void 0);fe([(0,q.state)()],V.prototype,"visible",void 0);fe([(0,q.eventOptions)({passive:!0})],V.prototype,"onTouch",null);fe([(0,q.eventOptions)({passive:!0})],V.prototype,"onHover",null);fe([(0,q.eventOptions)({passive:!0})],V.prototype,"onOut",null);fe([(0,q.eventOptions)({passive:!0})],V.prototype,"onClick",null);(0,Ci.customElement)("ft-tooltip")(V);var Ri=C(k());var Qt=C(G()),ut=C(ne()),Ai=C(k()),Ni=C(wi());var Or;(function(e){e.ADD_TO_PBK="",e.ALERT="",e.ADD_ALERT="",e.BACK_TO_SEARCH="",e.ADD_BOOKMARK="",e.BOOKMARK="",e.BOOKS="",e.MENU="",e.DOWNLOAD="",e.EDIT="",e.FEEDBACK="",e.HOME="",e.MODIFY_PBK="",e.SCHEDULED="",e.SEARCH="",e.EXPORT="",e.TOC="",e.WRITE_UGC="",e.TRASH="",e.USER="",e.EXTLINK="",e.CALENDAR="",e.OFFLINE="",e.BOOK="",e.DOWNLOAD_PLAIN="",e.CHECK="",e.STAR_PLAIN="",e.TOPICS="",e.DISC="",e.CIRCLE="",e.SHARED="",e.SORT_UNSORTED="",e.SORT_UP="",e.SORT_DOWN="",e.WORKING="",e.CLOSE="",e.ZOOM_OUT="",e.ZOOM_IN="",e.ZOOM_REALSIZE="",e.ZOOM_FULLSCREEN="",e.ADMIN_RESTRICTED="",e.ADMIN="",e.ADMIN_KHUB="",e.ADMIN_THEME="",e.ADMIN_USERS="",e.WARNING="",e.CONTEXT="",e.SEARCH_HOME="",e.STEPS="",e.ICON_EXPAND="",e.ICON_COLLAPSE="",e.INFO="",e.MINUS_PLAIN="",e.PLUS_PLAIN="",e.FACET_HAS_DESCENDANT="",e.TRIANGLE_BOTTOM="",e.TRIANGLE_LEFT="",e.TRIANGLE_RIGHT="",e.TRIANGLE_TOP="",e.THIN_ARROW="",e.SIGN_IN="",e.LOGOUT="",e.TRANSLATE="",e.CLOSE_PLAIN="",e.CHECK_PLAIN="",e.ARTICLE="",e.COLUMNS="",e.ANALYTICS="",e.COLLECTIONS="",e.ARROW_DOWN="",e.ARROW_LEFT="",e.ARROW_RIGHT="",e.ARROW_UP="",e.SEARCH_IN_PUBLICATION="",e.COPY_TO_CLIPBOARD="",e.SHARED_PBK="",e.ATTACHMENTS="",e.STRIPE_ARROW_LEFT="",e.STRIPE_ARROW_RIGHT="",e.FILTERS="",e.DOT="",e.MINUS="",e.PLUS="",e.MAILS_AND_NOTIFICATIONS="",e.SAVE="",e.LOCKER="",e.ADMIN_INTEGRATION="",e.SYNC="",e.TAG="",e.BOOK_PLAIN="",e.UPLOAD="",e.ONLINE="",e.TAG_PLAIN="",e.ACCOUNT_SETTINGS="",e.PRINT="",e.DEFAULT_ROLES="",e.SHORTCUT_MENU="",e.RELATIVES_PLAIN="",e.RELATIVES="",e.PAUSE="",e.PLAY="",e.ADMIN_PORTAL="",e.STAR="",e.THUMBS_DOWN="",e.THUMBS_DOWN_PLAIN="",e.THUMBS_UP="",e.THUMBS_UP_PLAIN="",e.FEEDBACK_PLAIN="",e.RATE_PLAIN="",e.RATE="",e.OFFLINE_SETTINGS="",e.MY_COLLECTIONS="",e.THIN_ARROW_LEFT="",e.THIN_ARROW_RIGHT="",e.RESET="",e.MY_LIBRARY="",e.UNSTRUCTURED_DOC="",e.CONTEXTUAL="",e.THIN_ARROW_UP="",e.ARROW_RIGHT_TO_LINE="",e.DESKTOP="",e.TABLET_LANDSCAPE="",e.TABLET_PORTRAIT="",e.MOBILE_LANDSCAPE="",e.MOBILE_PORTRAIT="",e.DIAGRAM_SUNBURST="",e.DIAGRAM_SANKEY="",e.COMMENT_QUESTION="",e.COMMENT_QUESTION_PLAIN="",e.MESSAGE_BOT="",e.CHART_SIMPLE="",e.BARS_PROGRESS="",e.BOOK_OPEN_GEAR="",e.BOOK_OPEN_GEAR_SLASH="",e.LINE_CHART="",e.STACKED_CHART="",e.CHART_BAR_STACKED="",e.CHART_BAR_GROUPED="",e.EYE_SLASH="",e.X_MARK="",e.EXPAND_WIDE="",e.PIP="",e.PIP_WIDE="",e.LIFE_RING="",e.GLOBE="",e.PIGGY_BANK="",e.EXTLINK_LIGHT="",e.CLONE="",e.CLONE_LINK_SIMPLE="",e.CHART_BAR_NORMALIZED="",e.CONSUMER="",e.OCTAGON_XMARK="",e.HOURGLASS_HALF="",e.CLOCK="",e.CLOCK_THREE="",e.CALENDAR_DAY="",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="",e.WAND_MAGIC_SPARKLES="",e.PAPER_PLANE="",e.CIRCLE_STOP="",e.ARROW_ROTATE_RIGHT="",e.ARROWS_ROTATE="",e.ALIGN_RIGHT="",e.FORMAT_CLEAR="",e.ALIGN_CENTER="",e.ALIGN_LEFT="",e.PALETTE="",e.BOLD="",e.ITALIC="",e.UNDERLINE="",e.STRIKETHROUGH="",e.LINK_SIMPLE_SLASH="",e.LINK_SIMPLE="",e.ROUTE="",e.CIRCLE_USER_SLASH="",e.CIRCLE_USER_CHECK="",e.LIST_MAGNIFYING_GLASS="",e.MEDAL="",e.THUMBS_UP_THUMBS_DOWN_SOLID="",e.ARROW_TURN_DOWN_RIGHT="",e.FLASK="",e.LOCK_KEYHOLE_OPEN_SOLID="",e.HOURGLASS_END="",e.CIRCLE_QUESTION="",e.EYE="",e.SHARE="󨃱",e.GRIP_LINES_SOLID="",e.TRANSLATE_SPARKLE_SOLID="",e.CODE=""})(Or||(Or={}));var w;(function(e){e.UNKNOWN="",e.ABW="",e.AUDIO="",e.AVI="",e.CHM="",e.CODE="",e.CSV="",e.DITA="",e.EPUB="",e.EXCEL="",e.FLAC="",e.GIF="",e.GZIP="",e.HTML="",e.IMAGE="",e.JPEG="",e.JSON="",e.M4A="",e.MOV="",e.MP3="",e.MP4="",e.OGG="",e.PDF="",e.PNG="",e.POWERPOINT="",e.RAR="",e.STP="",e.TEXT="",e.VIDEO="",e.WAV="",e.WMA="",e.WORD="",e.XML="",e.YAML="",e.ZIP=""})(w||(w={}));var Yh=new Map([...["abw"].map(e=>[e,w.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(e=>[e,w.AUDIO]),...["avi"].map(e=>[e,w.AVI]),...["chm","xhs"].map(e=>[e,w.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(e=>[e,w.CODE]),...["csv"].map(e=>[e,w.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,w.DITA]),...["epub"].map(e=>[e,w.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,w.EXCEL]),...["flac"].map(e=>[e,w.FLAC]),...["gif"].map(e=>[e,w.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,w.GZIP]),...["html","htm","xhtml"].map(e=>[e,w.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(e=>[e,w.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,w.JPEG]),...["json"].map(e=>[e,w.JSON]),...["m4a","m4p"].map(e=>[e,w.M4A]),...["mov","qt"].map(e=>[e,w.MOV]),...["mp3"].map(e=>[e,w.MP3]),...["mp4","m4v"].map(e=>[e,w.MP4]),...["ogg","oga"].map(e=>[e,w.OGG]),...["pdf","ps"].map(e=>[e,w.PDF]),...["png"].map(e=>[e,w.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,w.POWERPOINT]),...["rar"].map(e=>[e,w.RAR]),...["stp"].map(e=>[e,w.STP]),...["txt","rtf","md","mdown"].map(e=>[e,w.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(e=>[e,w.VIDEO]),...["wav"].map(e=>[e,w.WAV]),...["wma"].map(e=>[e,w.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,w.WORD]),...["xml","xsl","rdf"].map(e=>[e,w.XML]),...["yaml","yml","x-yaml"].map(e=>[e,w.YAML]),...["zip"].map(e=>[e,w.ZIP])]);var Xh={[w.ABW]:"#91ABC6",[w.AUDIO]:"#1795E3",[w.AVI]:"#E63324",[w.CHM]:"#71C3EB",[w.CODE]:"#71C3EB",[w.CSV]:"#1F7345",[w.DITA]:"#71C3EB",[w.EPUB]:"#85B926",[w.EXCEL]:"#1F7345",[w.FLAC]:"#1795E3",[w.GIF]:"#59B031",[w.GZIP]:"#F8AB36",[w.HTML]:"#71C3EB",[w.IMAGE]:"#59B031",[w.JPEG]:"#59B031",[w.JSON]:"#71C3EB",[w.M4A]:"#1795E3",[w.MOV]:"#E63324",[w.MP3]:"#1795E3",[w.MP4]:"#E63324",[w.OGG]:"#1795E3",[w.PDF]:"#E44948",[w.PNG]:"#59B031",[w.POWERPOINT]:"#B54A2B",[w.RAR]:"#F8AB36",[w.STP]:"#3764B1",[w.TEXT]:"#3162AB",[w.UNKNOWN]:"#999999",[w.VIDEO]:"#E63324",[w.WAV]:"#1795E3",[w.WMA]:"#1795E3",[w.WORD]:"#3162AB",[w.XML]:"#71C3EB",[w.YAML]:"#71C3EB",[w.ZIP]:"#F8AB36"};var Ie;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(Ie||(Ie={}));var Cr=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},ge=class extends Ai.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=Qt.nothing}render(){let r=this.variant&&Object.values(Ie).includes(this.variant)?this.variant:Ie.fluid_topics,o=r!==Ie.material||!!this.value;return Qt.html`
|
|
543
543
|
<i class="ft-icon ft-icon--${r}" part="icon icon-${r}">
|
|
544
544
|
${(0,Ni.unsafeHTML)(this.resolvedIcon)}
|
|
545
545
|
<slot ?hidden=${o}></slot>
|
|
@@ -551,7 +551,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
551
551
|
<div></div>
|
|
552
552
|
<div></div>
|
|
553
553
|
</div>
|
|
554
|
-
`}};ft.styles=va;(0,Pi.customElement)("ft-loader")(ft);var Ke=C(G()),Lo=C(so()),
|
|
554
|
+
`}};ft.styles=va;(0,Pi.customElement)("ft-loader")(ft);var Ke=C(G()),Lo=C(so()),Y=C(ne()),oe=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},F=class extends(0,Ze.toFtFormComponent)(Ze.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",r=>{var o;this.isDisabled()?(r.preventDefault(),r.stopPropagation(),r.stopImmediatePropagation()):this.type=="submit"&&((o=this.form)===null||o===void 0||o.requestSubmit())})}render(){var r,o,n;let a=Ke.html`
|
|
555
555
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
556
556
|
<ft-typography part="label"
|
|
557
557
|
variant=${this.typographyVariant}
|
|
@@ -588,7 +588,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
588
588
|
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
|
|
589
589
|
`:Ke.html`
|
|
590
590
|
<slot part="icon" name="icon"></slot>
|
|
591
|
-
`}focus(){var r;(r=this.button)===null||r===void 0||r.focus()}click(){var r;(r=this.button)===null||r===void 0||r.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,Ze.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};
|
|
591
|
+
`}focus(){var r;(r=this.button)===null||r===void 0||r.focus()}focusWithoutTooltip(){var r;this.setTooltipManual(!0),(r=this.button)===null||r===void 0||r.focus(),this.setTooltipManual(!1)}setTooltipManual(r){this.tooltip&&(this.tooltip.manual=r)}click(){var r;(r=this.button)===null||r===void 0||r.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,Ze.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};F.elementDefinitions={"ft-ripple":j,"ft-tooltip":V,"ft-typography":xe,"ft-icon":ge,"ft-loader":ft};oe([(0,Y.property)()],F.prototype,"href",void 0);oe([(0,Y.property)()],F.prototype,"target",void 0);oe([(0,Y.property)({type:String,reflect:!0})],F.prototype,"role",void 0);oe([(0,Y.property)()],F.prototype,"type",void 0);oe([(0,Y.property)({type:Boolean})],F.prototype,"disabled",void 0);oe([(0,Y.property)()],F.prototype,"label",void 0);oe([(0,Y.property)()],F.prototype,"icon",void 0);oe([(0,Y.property)()],F.prototype,"iconVariant",void 0);oe([(0,Y.property)({type:Boolean})],F.prototype,"trailingIcon",void 0);oe([(0,Y.property)({type:Boolean})],F.prototype,"loading",void 0);oe([(0,Y.property)({attribute:"aria-label"})],F.prototype,"ariaLabel",void 0);oe([(0,Y.property)()],F.prototype,"tooltipPosition",void 0);oe([(0,Y.property)({type:Boolean})],F.prototype,"hideTooltip",void 0);oe([(0,Y.property)({type:Boolean})],F.prototype,"forceTooltip",void 0);oe([(0,Y.query)(".ft-button")],F.prototype,"button",void 0);oe([(0,Y.query)(".ft-button--label slot")],F.prototype,"slottedContent",void 0);oe([(0,Y.query)("[part=tooltip]")],F.prototype,"tooltip",void 0);var Er=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},Se=class extends F{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"}};Se.styles=[Ti.safariEllipsisFix,Aa];Er([(0,Jt.property)({type:Boolean})],Se.prototype,"primary",void 0);Er([(0,Jt.property)({type:Boolean})],Se.prototype,"outlined",void 0);Er([(0,Jt.property)({type:Boolean})],Se.prototype,"dense",void 0);Er([(0,Jt.property)({type:Boolean})],Se.prototype,"round",void 0);var er=C(ne());var Ar=C(k());var _i=C(G()),O=C(k());var ki=[_i.css`
|
|
592
592
|
:host {
|
|
593
593
|
display: inline-block;
|
|
594
594
|
max-width: 100%;
|
|
@@ -1054,11 +1054,11 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
1054
1054
|
.ftds--size-small.ft-button--icon-only {
|
|
1055
1055
|
width: ${p.smallIconOnlyWidth};
|
|
1056
1056
|
}
|
|
1057
|
-
`,O.noTextSelect];var wr=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},$e=class extends(0,Ar.toFtdsBase)(
|
|
1057
|
+
`,O.noTextSelect];var wr=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},$e=class extends(0,Ar.toFtdsBase)(F){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=ur.brand,this.iconVariant=Ie.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 bt.large:return Ge.body2medium;case bt.medium:return Ge.caption1medium;case bt.small:return Ge.caption2medium}}};$e.styles=[Ar.safariEllipsisFix,ki];wr([(0,er.property)({type:Boolean})],$e.prototype,"primary",void 0);wr([(0,er.property)({type:Boolean})],$e.prototype,"secondary",void 0);wr([(0,er.property)({type:Boolean})],$e.prototype,"tertiary",void 0);wr([(0,er.property)({type:Boolean})],$e.prototype,"round",void 0);(0,Io.customElement)("ft-button")(Se);(0,Io.customElement)("ftds-button")($e);var Xs=C(k()),Qs=C(ne());var pn=C(k());var Di=C(k());var Mc=C(Ui(),1);var Mi;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Mi||(Mi={}));var $i;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})($i||($i={}));var Wi;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(Wi||(Wi={}));var Fi;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT"})(Fi||(Fi={}));var Hi;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Hi||(Hi={}));var zi;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(zi||(zi={}));var Gi;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(Gi||(Gi={}));var ji;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(ji||(ji={}));var Vi;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(Vi||(Vi={}));var Ki;(function(e){e.ASC="ASC",e.DESC="DESC"})(Ki||(Ki={}));var Zi;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Zi||(Zi={}));var Po;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Po||(Po={}));var qi;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK"})(qi||(qi={}));var Yi;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(Yi||(Yi={}));var Xi;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK"})(Xi||(Xi={}));var Qi;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Qi||(Qi={}));var Ji;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC"})(Ji||(Ji={}));var To;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS"})(To||(To={}));var J;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN",e.DEVELOPER="DEVELOPER"})(J||(J={}));var es;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(es||(es={}));var Qy={[J.PERSONAL_BOOK_SHARE_USER]:[J.PERSONAL_BOOK_USER],[J.HTML_EXPORT_USER]:[J.PERSONAL_BOOK_USER],[J.PDF_EXPORT_USER]:[J.PERSONAL_BOOK_USER],[J.KHUB_ADMIN]:[J.CONTENT_PUBLISHER],[J.ADMIN]:[J.KHUB_ADMIN,J.USERS_ADMIN,J.PORTAL_ADMIN],[J.DEVELOPER]:[J.BETA_USER,J.DEBUG_USER]};var Ys=C(k());var as=C(G()),pe=C(ne()),Oe=C(k());var ts=C(G());var rs=ts.css`
|
|
1058
1058
|
`;var Lr=C(k()),$c="ft-app-info",_o=class extends CustomEvent{constructor(r){super("authentication-change",{detail:r})}},Wc={session:(e,r)=>{(0,Lr.deepEqual)(e.session,r.payload)||(e.session=r.payload,setTimeout(()=>_.dispatchEvent(new _o(r.payload)),0))}},_=Lr.FtReduxStore.get({name:$c,reducers:Wc,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 Ye=C(k());var ko=C(k());var pt=class e{static get(r){let{baseUrl:o,apiIntegrationIdentifier:n}=_.getState(),a=r??n;if(o&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,a,!0)}static await(r){return new Promise(o=>{let n=e.get(r);if(n)o(n);else{let a=_.subscribe(()=>{n=e.get(r),n&&(a(),o(n))})}})}};var We=class{constructor(r=!0,o){var n;this.overrideApi=o;let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new ko.CacheRegistry,this.cache=r?a.commonCache:new ko.CacheRegistry}get api(){var r;return(r=this.overrideApi)!==null&&r!==void 0?r:pt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):pt.await()}clearCache(){this.cache.clearAll()}};var os,Fc=Symbol("clearAfterUnitTest"),Ir=class extends We{constructor(r){super(),this.messageContextProvider=r,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[os]=()=>{this.defaultMessages={},this.cache=new Ye.CacheRegistry,this.listeners={}},this.currentUiLocale=_.getState().uiLocale,_.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:r}=_.getState();this.currentUiLocale!==r&&(this.currentUiLocale=r,this.cache.clearAll(),this.notifyAll())}addContext(r){let o=r.name.toLowerCase();this.cache.setFinal(o,r),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(r,o){var n;if(r=r.toLowerCase(),Object.keys(o).length>0){let a={...(n=this.defaultMessages[r])!==null&&n!==void 0?n:{},...o};(0,Ye.deepEqual)(this.defaultMessages[r],a)||(this.defaultMessages[r]=a,await this.notify(r))}await this.fetchContext(r)}resolveContext(r){var o,n;return this.fetchContext(r),(n=(o=this.cache.getNow(r))===null||o===void 0?void 0:o.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(r,o){let n=r.toLowerCase();return this.resolveContext(n)[o]}resolveMessage(r,o,...n){var a;let i=r.toLowerCase(),c=this.resolveContext(i);return new Ye.ParametrizedLabelResolver((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},c).resolve(o,...n)}async fetchContext(r){if(!this.cache.has(r))try{await this.cache.get(r,()=>this.messageContextProvider(this.currentUiLocale,r)),await this.notify(r)}catch(o){console.error(o)}}subscribe(r,o){var n;return r=r.toLowerCase(),this.listeners[r]=(n=this.listeners[r])!==null&&n!==void 0?n:new Set,this.listeners[r].add(o),()=>{var a;return(a=this.listeners[r])===null||a===void 0?void 0:a.delete(o)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(r=>this.notify(r)))}async notify(r){this.listeners[r]!=null&&await Promise.all([...this.listeners[r].values()].map(o=>(0,Ye.delay)(0).then(()=>o()).catch(()=>null)))}};os=Fc;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Ir{constructor(){super(async(e,r)=>(await this.awaitApi).getFluidTopicsMessageContext(e,r))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Ir{constructor(){super(async(e,r)=>(await this.awaitApi).getCustomMessageContext(e,r))}});var ht=window.FluidTopicsI18nService,ns=window.FluidTopicsCustomI18nService;var ae=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},K=class extends Oe.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=()=>pt.get(),this.messageContexts=[],this.cache=new Oe.CacheRegistry,this.cleanSessionDebouncer=new Oe.Debouncer}render(){return as.html`
|
|
1059
1059
|
<slot></slot>
|
|
1060
|
-
`}update(r){var o,n,a,i,c;super.update(r),r.has("baseUrl")&&(_.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),r.has("apiIntegrationIdentifier")&&_.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),r.has("uiLocale")&&_.actions.uiLocale(this.uiLocale),r.has("metadataConfiguration")&&_.actions.metadataConfiguration(this.metadataConfiguration),r.has("noCustom")&&_.actions.noCustom(this.noCustom),r.has("editorMode")&&_.actions.editorMode(this.editorMode),r.has("noCustomComponent")&&_.actions.noCustomComponent(this.noCustomComponent),r.has("session")&&_.actions.session(this.session),r.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(l=>ht.addContext(l)),r.has("openExternalDocumentInNewTab")&&_.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),r.has("navigatorOnline")&&_.actions.navigatorOnline(this.navigatorOnline),r.has("forcedOffline")&&_.actions.forcedOffline(this.forcedOffline),r.has("localesConfiguration")&&(_.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),_.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),_.actions.searchInAllLanguagesAllowed((c=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&c!==void 0?c:!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 r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},r.idleTimeoutInMillis),r})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};K.elementDefinitions={};K.styles=rs;ae([(0,pe.property)()],K.prototype,"baseUrl",void 0);ae([(0,pe.property)()],K.prototype,"apiIntegrationIdentifier",void 0);ae([(0,pe.property)()],K.prototype,"uiLocale",void 0);ae([(0,Oe.jsonProperty)(null)],K.prototype,"availableUiLocales",void 0);ae([(0,Oe.jsonProperty)(null)],K.prototype,"metadataConfiguration",void 0);ae([(0,pe.property)({type:Boolean})],K.prototype,"editorMode",void 0);ae([(0,pe.property)({type:Boolean})],K.prototype,"noCustom",void 0);ae([(0,pe.property)({type:Boolean})],K.prototype,"openExternalDocumentInNewTab",void 0);ae([(0,pe.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],K.prototype,"noCustomComponent",void 0);ae([(0,pe.property)({type:Boolean})],K.prototype,"withManualResources",void 0);ae([(0,pe.property)({type:Boolean})],K.prototype,"navigatorOnline",void 0);ae([(0,pe.property)({type:Boolean})],K.prototype,"forcedOffline",void 0);ae([(0,pe.property)({type:Object})],K.prototype,"apiProvider",void 0);ae([(0,Oe.jsonProperty)([])],K.prototype,"messageContexts",void 0);ae([(0,Oe.jsonProperty)(void 0)],K.prototype,"session",void 0);ae([(0,pe.state)()],K.prototype,"localesConfiguration",void 0);var Rl=C(oe());function Hc(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var o,n,a;if(Array.isArray(e)){if(o=e.length,o!=r.length)return!1;for(n=o;n--!==0;)if(!Pr(e[n],r[n]))return!1;return!0}if(e instanceof Map&&r instanceof Map){if(e.size!==r.size)return!1;for(n of e.entries())if(!r.has(n[0]))return!1;for(n of e.entries())if(!Pr(n[1],r.get(n[0])))return!1;return!0}if(e instanceof Set&&r instanceof Set){if(e.size!==r.size)return!1;for(n of e.entries())if(!r.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(a=Object.keys(e),o=a.length,o!==Object.keys(r).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[n]))return!1;for(n=o;n--!==0;){var i=a[n];if(!Pr(e[i],r[i]))return!1}return!0}return e!==e&&r!==r}function Pr(e,r){try{return Hc(e,r)}catch{return!1}}function Do(e,r){return!Pr(e,r)}var zc=C(oe(),1);var Tr=class{constructor(){this.queue=[]}add(r,o=!1){o&&(this.queue=this.queue.filter(n=>n.type!==r.type)),this.queue.push(r)}consume(r){let o=this.queue.find(n=>n.type===r);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}};var tr=C(oe(),1);var is=C(oe(),1);function ss(e,r){let o=()=>JSON.parse(JSON.stringify(e));return(0,is.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:Do,...r??{}})}var _r=class{constructor(r=0){this.timeout=r,this.callbacks=[]}run(r,o){return this.callbacks=[r],this.debounce(o)}queue(r,o){return this.callbacks.push(r),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(r){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),r??this.timeout),this.promise}async runCallbacks(){var r,o;let n=[...this.callbacks];this.callbacks=[];let a=(r=this.rejectPromise)!==null&&r!==void 0?r:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let c of n)try{await c()}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 ls=C(G(),1);var kr=window,Gc=kr.ShadowRoot&&(kr.ShadyCSS===void 0||kr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Pm=Symbol();var cs=(e,r)=>{Gc?e.adoptedStyleSheets=r.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):r.forEach(o=>{let n=document.createElement("style"),a=kr.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,e.appendChild(n)})};var Dr=class extends ls.LitElement{createRenderRoot(){let r=this.constructor;r.elementDefinitions&&!r.registry&&(r.registry=new CustomElementRegistry,Object.entries(r.elementDefinitions).forEach(([a,i])=>r.registry.define(a,i)));let o={...r.shadowRootOptions,customElements:r.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return cs(n,r.elementStyles),n}};var Br=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},ps,ds=Symbol("constructorPrototype"),us=Symbol("constructorName"),hs=Symbol("exportpartsDebouncer"),fs=Symbol("dynamicDependenciesLoaded"),Xe=class extends Dr{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[ps]=new _r(5),this[us]=this.constructor.name,this[ds]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[us]&&Object.setPrototypeOf(this,this[ds])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let r=this.constructor;r[fs]||(r[fs]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(r){super.updated(r),this.updateComplete.then(()=>{this.contentAvailableCallback(r),this.applyCustomStylesheet(r),this.scheduleExportpartsUpdate()})}contentAvailableCallback(r){}applyCustomStylesheet(r){var o,n,a;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(r.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 r,o,n;(!((r=this.exportpartsPrefix)===null||r===void 0)&&r.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[hs].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(r){var o,n,a,i,c,l;let f=g=>g!=null&&g.trim().length>0,u=r.filter(f).map(g=>g.trim());if(u.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let g of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let v=(i=(a=g.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],x=(l=(c=g.getAttribute("exportparts"))===null||c===void 0?void 0:c.split(",").map(S=>S.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...v,...x).filter(f).map(S=>S.trim()).forEach(S=>h.add(S))}if(h.size===0){this.removeAttribute("exportparts");return}let m=[...h.values()].flatMap(g=>u.map(v=>`${g}:${v}--${g}`));this.setAttribute("exportparts",[...this.part,...m].join(", "))}};ps=hs;Br([(0,tr.property)()],Xe.prototype,"exportpartsPrefix",void 0);Br([ss([])],Xe.prototype,"exportpartsPrefixes",void 0);Br([(0,tr.property)()],Xe.prototype,"customStylesheet",void 0);Br([(0,tr.state)()],Xe.prototype,"useAdoptedStyleSheets",void 0);function rr(e){var r;return(r=e?.isFtReduxStore)!==null&&r!==void 0?r:!1}var ys,ms,gs,Ur=Symbol("internalReduxEventsUnsubscribers"),Qe=Symbol("internalStoresUnsubscribers"),yt=Symbol("internalStores"),or=class extends Xe{constructor(){super(...arguments),this[ys]=new Map,this[ms]=new Map,this[gs]=[]}get reduxConstructor(){return this.constructor}update(r){super.update(r),[...this.reduxConstructor.reduxReactiveProperties].some(o=>r.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[yt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[yt].values()][0]}getStore(r){return r==null?this.getUnnamedStore():this[yt].get(r)}addStore(r,o){var n;o=(n=o??(rr(r)?r.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this.setupStore(o,r)}removeStore(r){let o=typeof r=="string"?r:r.name;this.unsubscribeFromStore(o),this[yt].delete(o)}setupStore(r,o){this[yt].set(r,o),this.subscribeToStore(r,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[yt].forEach((r,o)=>this.subscribeToStore(o,r)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((r,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let a=this.getStore(r.store);a&&(r.store?this[Qe].has(r.store):this[Qe].size>0)&&(this[o]=r.selector(a.getState(),this))}})}subscribeToStore(r,o){var n;this[Qe].set(r,o.subscribe(()=>this.updateFromStores())),rr(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 c=l=>this[i](l);o.addEventListener(a.eventName,c),this[Ur].push(()=>o.removeEventListener(a.eventName,c))}})),this.onStoreAvailable(r)}unsubscribeFromStores(){this[Qe].forEach((r,o)=>this.unsubscribeFromStore(o)),this[Ur].forEach(r=>r()),this[Ur]=[]}unsubscribeFromStore(r){this[Qe].has(r)&&this[Qe].get(r)(),this[Qe].delete(r)}onStoreAvailable(r){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};ys=Qe,ms=yt,gs=Ur;or.reduxProperties=new Map;or.reduxReactiveProperties=new Set;or.reduxEventListeners=new Map;function be(e){for(var r=arguments.length,o=Array(r>1?r-1:0),n=1;n<r;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+e+(o.length?" "+o.map(function(c){return"'"+c+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Fe(e){return!!e&&!!e[F]}function Ce(e){var r;return!!e&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===Qc}(e)||Array.isArray(e)||!!e[Es]||!!(!((r=e.constructor)===null||r===void 0)&&r[Es])||Go(e)||jo(e))}function mt(e,r,o){o===void 0&&(o=!1),Ut(e)===0?(o?Object.keys:Bt)(e).forEach(function(n){o&&typeof n=="symbol"||r(n,e[n],e)}):e.forEach(function(n,a){return r(a,n,e)})}function Ut(e){var r=e[F];return r?r.i>3?r.i-4:r.i:Array.isArray(e)?1:Go(e)?2:jo(e)?3:0}function Dt(e,r){return Ut(e)===2?e.has(r):Object.prototype.hasOwnProperty.call(e,r)}function jc(e,r){return Ut(e)===2?e.get(r):e[r]}function ws(e,r,o){var n=Ut(e);n===2?e.set(r,o):n===3?e.add(o):e[r]=o}function As(e,r){return e===r?e!==0||1/e==1/r:e!=e&&r!=r}function Go(e){return Yc&&e instanceof Map}function jo(e){return Xc&&e instanceof Set}function Je(e){return e.o||e.t}function Vo(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var r=Ls(e);delete r[F];for(var o=Bt(r),n=0;n<o.length;n++){var a=o[n],i=r[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(r[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),r)}function Ko(e,r){return r===void 0&&(r=!1),Zo(e)||Fe(e)||!Ce(e)||(Ut(e)>1&&(e.set=e.add=e.clear=e.delete=Vc),Object.freeze(e),r&&mt(e,function(o,n){return Ko(n,!0)},!0)),e}function Vc(){be(2)}function Zo(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Pe(e){var r=zo[e];return r||be(18,e),r}function Kc(e,r){zo[e]||(zo[e]=r)}function Wo(){return ar}function Bo(e,r){r&&(Pe("Patches"),e.u=[],e.s=[],e.v=r)}function Mr(e){Fo(e),e.p.forEach(Zc),e.p=null}function Fo(e){e===ar&&(ar=e.l)}function bs(e){return ar={p:[],l:ar,h:e,m:!0,_:0}}function Zc(e){var r=e[F];r.i===0||r.i===1?r.j():r.g=!0}function Uo(e,r){r._=r.p.length;var o=r.p[0],n=e!==void 0&&e!==o;return r.h.O||Pe("ES5").S(r,e,n),n?(o[F].P&&(Mr(r),be(4)),Ce(e)&&(e=$r(r,e),r.l||Wr(r,e)),r.u&&Pe("Patches").M(o[F].t,e,r.u,r.s)):e=$r(r,o,[]),Mr(r),r.u&&r.v(r.u,r.s),e!==Rs?e:void 0}function $r(e,r,o){if(Zo(r))return r;var n=r[F];if(!n)return mt(r,function(l,f){return xs(e,n,r,l,f,o)},!0),r;if(n.A!==e)return r;if(!n.P)return Wr(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Vo(n.k):n.o,i=a,c=!1;n.i===3&&(i=new Set(a),a.clear(),c=!0),mt(i,function(l,f){return xs(e,n,a,l,f,o,c)}),Wr(e,a,!1),o&&e.u&&Pe("Patches").N(n,o,e.u,e.s)}return n.o}function xs(e,r,o,n,a,i,c){if(Fe(a)){var l=$r(e,a,i&&r&&r.i!==3&&!Dt(r.R,n)?i.concat(n):void 0);if(ws(o,n,l),!Fe(l))return;e.m=!1}else c&&o.add(a);if(Ce(a)&&!Zo(a)){if(!e.h.D&&e._<1)return;$r(e,a),r&&r.A.l||Wr(e,a)}}function Wr(e,r,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&Ko(r,o)}function Mo(e,r){var o=e[F];return(o?Je(o):e)[r]}function vs(e,r){if(r in e)for(var o=Object.getPrototypeOf(e);o;){var n=Object.getOwnPropertyDescriptor(o,r);if(n)return n;o=Object.getPrototypeOf(o)}}function et(e){e.P||(e.P=!0,e.l&&et(e.l))}function $o(e){e.o||(e.o=Vo(e.t))}function Ho(e,r,o){var n=Go(r)?Pe("MapSet").F(r,o):jo(r)?Pe("MapSet").T(r,o):e.O?function(a,i){var c=Array.isArray(a),l={i:c?1:0,A:i?i.A:Wo(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},f=l,u=ir;c&&(f=[l],u=nr);var h=Proxy.revocable(f,u),m=h.revoke,g=h.proxy;return l.k=g,l.j=m,g}(r,o):Pe("ES5").J(r,o);return(o?o.A:Wo()).p.push(n),n}function qc(e){return Fe(e)||be(22,e),function r(o){if(!Ce(o))return o;var n,a=o[F],i=Ut(o);if(a){if(!a.P&&(a.i<4||!Pe("ES5").K(a)))return a.t;a.I=!0,n=Ss(o,i),a.I=!1}else n=Ss(o,i);return mt(n,function(c,l){a&&jc(a.t,c)===l||ws(n,c,r(l))}),i===3?new Set(n):n}(e)}function Ss(e,r){switch(r){case 2:return new Map(e);case 3:return Array.from(e)}return Vo(e)}function Ns(){function e(c,l){var f=i[c];return f?f.enumerable=l:i[c]=f={configurable:!0,enumerable:l,get:function(){var u=this[F];return ir.get(u,c)},set:function(u){var h=this[F];ir.set(h,c,u)}},f}function r(c){for(var l=c.length-1;l>=0;l--){var f=c[l][F];if(!f.P)switch(f.i){case 5:n(f)&&et(f);break;case 4:o(f)&&et(f)}}}function o(c){for(var l=c.t,f=c.k,u=Bt(f),h=u.length-1;h>=0;h--){var m=u[h];if(m!==F){var g=l[m];if(g===void 0&&!Dt(l,m))return!0;var v=f[m],x=v&&v[F];if(x?x.t!==g:!As(v,g))return!0}}var S=!!l[F];return u.length!==Bt(l).length+(S?0:1)}function n(c){var l=c.k;if(l.length!==c.t.length)return!0;var f=Object.getOwnPropertyDescriptor(l,l.length-1);if(f&&!f.get)return!0;for(var u=0;u<l.length;u++)if(!l.hasOwnProperty(u))return!0;return!1}function a(c){c.g&&be(3,JSON.stringify(Je(c)))}var i={};Kc("ES5",{J:function(c,l){var f=Array.isArray(c),u=function(m,g){if(m){for(var v=Array(g.length),x=0;x<g.length;x++)Object.defineProperty(v,""+x,e(x,!0));return v}var S=Ls(g);delete S[F];for(var L=Bt(S),N=0;N<L.length;N++){var R=L[N];S[R]=e(R,m||!!S[R].enumerable)}return Object.create(Object.getPrototypeOf(g),S)}(f,c),h={i:f?5:4,A:l?l.A:Wo(),P:!1,I:!1,R:{},l,t:c,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,F,{value:h,writable:!0}),u},S:function(c,l,f){f?Fe(l)&&l[F].A===c&&r(c.p):(c.u&&function u(h){if(h&&typeof h=="object"){var m=h[F];if(m){var g=m.t,v=m.k,x=m.R,S=m.i;if(S===4)mt(v,function(B){B!==F&&(g[B]!==void 0||Dt(g,B)?x[B]||u(v[B]):(x[B]=!0,et(m)))}),mt(g,function(B){v[B]!==void 0||Dt(v,B)||(x[B]=!1,et(m))});else if(S===5){if(n(m)&&(et(m),x.length=!0),v.length<g.length)for(var L=v.length;L<g.length;L++)x[L]=!1;else for(var N=g.length;N<v.length;N++)x[N]=!0;for(var R=Math.min(v.length,g.length),T=0;T<R;T++)v.hasOwnProperty(T)||(x[T]=!0),x[T]===void 0&&u(v[T])}}}}(c.p[0]),r(c.p))},K:function(c){return c.i===4?o(c):n(c)}})}var Os,ar,qo=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Yc=typeof Map<"u",Xc=typeof Set<"u",Cs=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Rs=qo?Symbol.for("immer-nothing"):((Os={})["immer-nothing"]=!0,Os),Es=qo?Symbol.for("immer-draftable"):"__$immer_draftable",F=qo?Symbol.for("immer-state"):"__$immer_state";var Qc=""+Object.prototype.constructor,Bt=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Ls=Object.getOwnPropertyDescriptors||function(e){var r={};return Bt(e).forEach(function(o){r[o]=Object.getOwnPropertyDescriptor(e,o)}),r},zo={},ir={get:function(e,r){if(r===F)return e;var o=Je(e);if(!Dt(o,r))return function(a,i,c){var l,f=vs(i,c);return f?"value"in f?f.value:(l=f.get)===null||l===void 0?void 0:l.call(a.k):void 0}(e,o,r);var n=o[r];return e.I||!Ce(n)?n:n===Mo(e.t,r)?($o(e),e.o[r]=Ho(e.A.h,n,e)):n},has:function(e,r){return r in Je(e)},ownKeys:function(e){return Reflect.ownKeys(Je(e))},set:function(e,r,o){var n=vs(Je(e),r);if(n?.set)return n.set.call(e.k,o),!0;if(!e.P){var a=Mo(Je(e),r),i=a?.[F];if(i&&i.t===o)return e.o[r]=o,e.R[r]=!1,!0;if(As(o,a)&&(o!==void 0||Dt(e.t,r)))return!0;$o(e),et(e)}return e.o[r]===o&&(o!==void 0||r in e.o)||Number.isNaN(o)&&Number.isNaN(e.o[r])||(e.o[r]=o,e.R[r]=!0),!0},deleteProperty:function(e,r){return Mo(e.t,r)!==void 0||r in e.t?(e.R[r]=!1,$o(e),et(e)):delete e.R[r],e.o&&delete e.o[r],!0},getOwnPropertyDescriptor:function(e,r){var o=Je(e),n=Reflect.getOwnPropertyDescriptor(o,r);return n&&{writable:!0,configurable:e.i!==1||r!=="length",enumerable:n.enumerable,value:o[r]}},defineProperty:function(){be(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){be(12)}},nr={};mt(ir,function(e,r){nr[e]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}}),nr.deleteProperty=function(e,r){return nr.set.call(this,e,r,void 0)},nr.set=function(e,r,o){return ir.set.call(this,e[0],r,o,e[0])};var Jc=function(){function e(o){var n=this;this.O=Cs,this.D=!0,this.produce=function(a,i,c){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var f=n;return function(S){var L=this;S===void 0&&(S=l);for(var N=arguments.length,R=Array(N>1?N-1:0),T=1;T<N;T++)R[T-1]=arguments[T];return f.produce(S,function(B){var U;return(U=i).call.apply(U,[L,B].concat(R))})}}var u;if(typeof i!="function"&&be(6),c!==void 0&&typeof c!="function"&&be(7),Ce(a)){var h=bs(n),m=Ho(n,a,void 0),g=!0;try{u=i(m),g=!1}finally{g?Mr(h):Fo(h)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(S){return Bo(h,c),Uo(S,h)},function(S){throw Mr(h),S}):(Bo(h,c),Uo(u,h))}if(!a||typeof a!="object"){if((u=i(a))===void 0&&(u=a),u===Rs&&(u=void 0),n.D&&Ko(u,!0),c){var v=[],x=[];Pe("Patches").M(a,u,v,x),c(v,x)}return u}be(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(u){for(var h=arguments.length,m=Array(h>1?h-1:0),g=1;g<h;g++)m[g-1]=arguments[g];return n.produceWithPatches(u,function(v){return a.apply(void 0,[v].concat(m))})};var c,l,f=n.produce(a,i,function(u,h){c=u,l=h});return typeof Promise<"u"&&f instanceof Promise?f.then(function(u){return[u,c,l]}):[f,c,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var r=e.prototype;return r.createDraft=function(o){Ce(o)||be(8),Fe(o)&&(o=qc(o));var n=bs(this),a=Ho(this,o,void 0);return a[F].C=!0,Fo(n),a},r.finishDraft=function(o,n){var a=o&&o[F],i=a.A;return Bo(i,n),Uo(void 0,i)},r.setAutoFreeze=function(o){this.D=o},r.setUseProxies=function(o){o&&!Cs&&be(20),this.O=o},r.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 c=Pe("Patches").$;return Fe(o)?c(o,n):this.produce(o,function(l){return c(l,n)})},e}(),ye=new Jc,el=ye.produce,zm=ye.produceWithPatches.bind(ye),Gm=ye.setAutoFreeze.bind(ye),jm=ye.setUseProxies.bind(ye),Vm=ye.applyPatches.bind(ye),Km=ye.createDraft.bind(ye),Zm=ye.finishDraft.bind(ye),Fr=el;function tt(e){"@babel/helpers - typeof";return tt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},tt(e)}function Yo(e,r){if(tt(e)!=="object"||e===null)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var n=o.call(e,r||"default");if(tt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function Xo(e){var r=Yo(e,"string");return tt(r)==="symbol"?r:String(r)}function Qo(e,r,o){return r=Xo(r),r in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o,e}function Is(e,r){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,n)}return o}function Hr(e){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{};r%2?Is(Object(o),!0).forEach(function(n){Qo(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Is(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function ie(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Ps=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Jo=function(){return Math.random().toString(36).substring(7).split("").join(".")},zr={INIT:"@@redux/INIT"+Jo(),REPLACE:"@@redux/REPLACE"+Jo(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Jo()}};function tl(e){if(typeof e!="object"||e===null)return!1;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r}function en(e,r,o){var n;if(typeof r=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(ie(0));if(typeof r=="function"&&typeof o>"u"&&(o=r,r=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(ie(1));return o(en)(e,r)}if(typeof e!="function")throw new Error(ie(2));var a=e,i=r,c=[],l=c,f=!1;function u(){l===c&&(l=c.slice())}function h(){if(f)throw new Error(ie(3));return i}function m(S){if(typeof S!="function")throw new Error(ie(4));if(f)throw new Error(ie(5));var L=!0;return u(),l.push(S),function(){if(L){if(f)throw new Error(ie(6));L=!1,u();var R=l.indexOf(S);l.splice(R,1),c=null}}}function g(S){if(!tl(S))throw new Error(ie(7));if(typeof S.type>"u")throw new Error(ie(8));if(f)throw new Error(ie(9));try{f=!0,i=a(i,S)}finally{f=!1}for(var L=c=l,N=0;N<L.length;N++){var R=L[N];R()}return S}function v(S){if(typeof S!="function")throw new Error(ie(10));a=S,g({type:zr.REPLACE})}function x(){var S,L=m;return S={subscribe:function(R){if(typeof R!="object"||R===null)throw new Error(ie(11));function T(){R.next&&R.next(h())}T();var B=L(T);return{unsubscribe:B}}},S[Ps]=function(){return this},S}return g({type:zr.INIT}),n={dispatch:g,subscribe:m,getState:h,replaceReducer:v},n[Ps]=x,n}function rl(e){Object.keys(e).forEach(function(r){var o=e[r],n=o(void 0,{type:zr.INIT});if(typeof n>"u")throw new Error(ie(12));if(typeof o(void 0,{type:zr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ie(13))})}function Ts(e){for(var r=Object.keys(e),o={},n=0;n<r.length;n++){var a=r[n];typeof e[a]=="function"&&(o[a]=e[a])}var i=Object.keys(o),c,l;try{rl(o)}catch(f){l=f}return function(u,h){if(u===void 0&&(u={}),l)throw l;if(0)var m;for(var g=!1,v={},x=0;x<i.length;x++){var S=i[x],L=o[S],N=u[S],R=L(N,h);if(typeof R>"u"){var T=h&&h.type;throw new Error(ie(14))}v[S]=R,g=g||R!==N}return g=g||i.length!==Object.keys(u).length,g?v:u}}function Mt(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return r.length===0?function(n){return n}:r.length===1?r[0]:r.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function _s(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(ie(15))},c={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=r.map(function(f){return f(c)});return i=Mt.apply(void 0,l)(a.dispatch),Hr(Hr({},a),{},{dispatch:i})}}}function ks(e){var r=function(n){var a=n.dispatch,i=n.getState;return function(c){return function(l){return typeof l=="function"?l(a,i,e):c(l)}}};return r}var Ds=ks();Ds.withExtraArgument=ks;var tn=Ds;var Ws=function(){var e=function(r,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},e(r,o)};return function(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(r,o);function n(){this.constructor=r}r.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),ol=function(e,r){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,c;return c={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function l(u){return function(h){return f([u,h])}}function f(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=r.call(e,o)}catch(h){u=[6,h],a=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},$t=function(e,r){for(var o=0,n=r.length,a=e.length;o<n;o++,a++)e[a]=r[o];return e},nl=Object.defineProperty,al=Object.defineProperties,il=Object.getOwnPropertyDescriptors,Bs=Object.getOwnPropertySymbols,sl=Object.prototype.hasOwnProperty,cl=Object.prototype.propertyIsEnumerable,Us=function(e,r,o){return r in e?nl(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o},rt=function(e,r){for(var o in r||(r={}))sl.call(r,o)&&Us(e,o,r[o]);if(Bs)for(var n=0,a=Bs(r);n<a.length;n++){var o=a[n];cl.call(r,o)&&Us(e,o,r[o])}return e},rn=function(e,r){return al(e,il(r))},ll=function(e,r,o){return new Promise(function(n,a){var i=function(f){try{l(o.next(f))}catch(u){a(u)}},c=function(f){try{l(o.throw(f))}catch(u){a(u)}},l=function(f){return f.done?n(f.value):Promise.resolve(f.value).then(i,c)};l((o=o.apply(e,r)).next())})};var dl=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Mt:Mt.apply(null,arguments)},fg=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function ul(e){if(typeof e!="object"||e===null)return!1;var r=Object.getPrototypeOf(e);if(r===null)return!0;for(var o=r;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return r===o}var fl=function(e){Ws(r,e);function r(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,r.prototype),a}return Object.defineProperty(r,Symbol.species,{get:function(){return r},enumerable:!1,configurable:!0}),r.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},r.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(r.bind.apply(r,$t([void 0],o[0].concat(this)))):new(r.bind.apply(r,$t([void 0],o.concat(this))))},r}(Array),pl=function(e){Ws(r,e);function r(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,r.prototype),a}return Object.defineProperty(r,Symbol.species,{get:function(){return r},enumerable:!1,configurable:!0}),r.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},r.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(r.bind.apply(r,$t([void 0],o[0].concat(this)))):new(r.bind.apply(r,$t([void 0],o.concat(this))))},r}(Array);function an(e){return Ce(e)?Fr(e,function(){}):e}function hl(e){return typeof e=="boolean"}function yl(){return function(r){return ml(r)}}function ml(e){e===void 0&&(e={});var r=e.thunk,o=r===void 0?!0:r,n=e.immutableCheck,a=n===void 0?!0:n,i=e.serializableCheck,c=i===void 0?!0:i,l=new fl;if(o&&(hl(o)?l.push(tn):l.push(tn.withExtraArgument(o.extraArgument))),0){if(a)var f;if(c)var u}return l}var on=!0;function Fs(e){var r=yl(),o=e||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,c=i===void 0?r():i,l=o.devTools,f=l===void 0?!0:l,u=o.preloadedState,h=u===void 0?void 0:u,m=o.enhancers,g=m===void 0?void 0:m,v;if(typeof a=="function")v=a;else if(ul(a))v=Ts(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 x=c;if(typeof x=="function"&&(x=x(r),!on&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!on&&x.some(function(B){return typeof B!="function"}))throw new Error("each middleware provided to configureStore must be a function");var S=_s.apply(void 0,x),L=Mt;f&&(L=dl(rt({trace:!on},typeof f=="object"&&f)));var N=new pl(S),R=N;Array.isArray(g)?R=$t([S],g):typeof g=="function"&&(R=g(N));var T=L.apply(void 0,R);return en(v,h,T)}function ot(e,r){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(r){var i=r.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return rt(rt({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:n[0]}}return o.toString=function(){return""+e},o.type=e,o.match=function(n){return n.type===e},o}function Hs(e){var r={},o=[],n,a={addCase:function(i,c){var l=typeof i=="string"?i:i.type;if(l in r)throw new Error("addCase cannot be called with two reducers for the same action type");return r[l]=c,a},addMatcher:function(i,c){return o.push({matcher:i,reducer:c}),a},addDefaultCase:function(i){return n=i,a}};return e(a),[r,o,n]}function gl(e){return typeof e=="function"}function bl(e,r,o,n){o===void 0&&(o=[]);var a=typeof r=="function"?Hs(r):[r,o,n],i=a[0],c=a[1],l=a[2],f;if(gl(e))f=function(){return an(e())};else{var u=an(e);f=function(){return u}}function h(m,g){m===void 0&&(m=f());var v=$t([i[g.type]],c.filter(function(x){var S=x.matcher;return S(g)}).map(function(x){var S=x.reducer;return S}));return v.filter(function(x){return!!x}).length===0&&(v=[l]),v.reduce(function(x,S){if(S)if(Fe(x)){var L=x,N=S(L,g);return N===void 0?x:N}else{if(Ce(x))return Fr(x,function(R){return S(R,g)});var N=S(x,g);if(N===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return N}return x},m)}return h.getInitialState=f,h}function xl(e,r){return e+"/"+r}function zs(e){var r=e.name;if(!r)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof e.initialState=="function"?e.initialState:an(e.initialState),n=e.reducers||{},a=Object.keys(n),i={},c={},l={};a.forEach(function(h){var m=n[h],g=xl(r,h),v,x;"reducer"in m?(v=m.reducer,x=m.prepare):v=m,i[h]=v,c[g]=v,l[h]=x?ot(g,x):ot(g)});function f(){var h=typeof e.extraReducers=="function"?Hs(e.extraReducers):[e.extraReducers],m=h[0],g=m===void 0?{}:m,v=h[1],x=v===void 0?[]:v,S=h[2],L=S===void 0?void 0:S,N=rt(rt({},g),c);return bl(o,function(R){for(var T in N)R.addCase(T,N[T]);for(var B=0,U=x;B<U.length;B++){var le=U[B];R.addMatcher(le.matcher,le.reducer)}L&&R.addDefaultCase(L)})}var u;return{name:r,reducer:function(h,m){return u||(u=f()),u(h,m)},actions:l,caseReducers:i,getInitialState:function(){return u||(u=f()),u.getInitialState()}}}var vl="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Sl=function(e){e===void 0&&(e=21);for(var r="",o=e;o--;)r+=vl[Math.random()*64|0];return r},Ol=["name","message","stack","code"],nn=function(){function e(r,o){this.payload=r,this.meta=o}return e}(),Ms=function(){function e(r,o){this.payload=r,this.meta=o}return e}(),Cl=function(e){if(typeof e=="object"&&e!==null){for(var r={},o=0,n=Ol;o<n.length;o++){var a=n[o];typeof e[a]=="string"&&(r[a]=e[a])}return r}return{message:String(e)}},mg=function(){function e(r,o,n){var a=ot(r+"/fulfilled",function(h,m,g,v){return{payload:h,meta:rn(rt({},v||{}),{arg:g,requestId:m,requestStatus:"fulfilled"})}}),i=ot(r+"/pending",function(h,m,g){return{payload:void 0,meta:rn(rt({},g||{}),{arg:m,requestId:h,requestStatus:"pending"})}}),c=ot(r+"/rejected",function(h,m,g,v,x){return{payload:v,error:(n&&n.serializeError||Cl)(h||"Rejected"),meta:rn(rt({},x||{}),{arg:g,requestId:m,rejectedWithValue:!!v,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,f=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function u(h){return function(m,g,v){var x=n?.idGenerator?n.idGenerator(h):Sl(),S=new f,L,N=!1;function R(B){L=B,S.abort()}var T=function(){return ll(this,null,function(){var B,U,le,we,se,Ae,ee;return ol(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),we=(B=n?.condition)==null?void 0:B.call(n,h,{getState:g,extra:v}),wl(we)?[4,we]:[3,2];case 1:we=y.sent(),y.label=2;case 2:if(we===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return N=!0,se=new Promise(function(b,P){return S.signal.addEventListener("abort",function(){return P({name:"AbortError",message:L||"Aborted"})})}),m(i(x,h,(U=n?.getPendingMeta)==null?void 0:U.call(n,{requestId:x,arg:h},{getState:g,extra:v}))),[4,Promise.race([se,Promise.resolve(o(h,{dispatch:m,getState:g,extra:v,requestId:x,signal:S.signal,abort:R,rejectWithValue:function(b,P){return new nn(b,P)},fulfillWithValue:function(b,P){return new Ms(b,P)}})).then(function(b){if(b instanceof nn)throw b;return b instanceof Ms?a(b.payload,x,h,b.meta):a(b,x,h)})])];case 3:return le=y.sent(),[3,5];case 4:return Ae=y.sent(),le=Ae instanceof nn?c(null,x,h,Ae.payload,Ae.meta):c(Ae,x,h),[3,5];case 5:return ee=n&&!n.dispatchConditionRejection&&c.match(le)&&le.meta.condition,ee||m(le),[2,le]}})})}();return Object.assign(T,{abort:R,requestId:x,arg:h,unwrap:function(){return T.then(El)}})}}return Object.assign(u,{pending:i,rejected:c,fulfilled:a,typePrefix:r})}return e.withTypes=function(){return e},e}();function El(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function wl(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Gs="listener",js="completed",Vs="cancelled",gg="task-"+Vs,bg="task-"+js,xg=Gs+"-"+Vs,vg=Gs+"-"+js;var sn="listenerMiddleware";var Sg=ot(sn+"/add"),Og=ot(sn+"/removeAll"),Cg=ot(sn+"/remove");var $s,Eg=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return($s||($s=Promise.resolve())).then(e).catch(function(r){return setTimeout(function(){throw r},0)})},Al=function(e){return function(r){setTimeout(r,e)}},wg=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Al(10);Ns();function Nl(e,r){return class extends e{constructor(){super(...arguments),this.eventBus=r??document.createElement("span")}addEventListener(o,n,a){this.eventBus.addEventListener(o,n,a)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,a){this.eventBus.removeEventListener(o,n,a)}}}var Gr=class extends Nl(Object){};window.ftReduxStores||(window.ftReduxStores={});var Ks=class e extends Gr{static get(r){var o;let n=typeof r=="string"?r:r.name,a=typeof r=="string"?void 0:r,i=window.ftReduxStores[n];if(rr(i))return i;if(a==null)return;let c=zs({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=Fs({reducer:(f,u)=>u.type==="CLEAR_FT_REDUX_STORE"?c.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...f,...u.overwrites}:c.reducer(f,u)});return window.ftReduxStores[a.name]=new e(c,l)}constructor(r,o){super(),this.reduxSlice=r,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new Tr,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,a,i)=>{let c=a,l=n[c];return l?(...f)=>{let u=l(...f);return this.reduxStore.dispatch(u),u}:f=>{this.setState({[c]:f})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(r){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(r).join("_"),overwrites:r})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(r){throw new Error("Not implemented yet.")}subscribe(r){return this.reduxStore.subscribe(r)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Zr=C(k());var jr=class extends We{async listMySearches(){let r=_.getState().session;return r?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(r.profile.userId),5*60*1e3):[]}};var Vr=class extends We{async listMyBookmarks(){let r=_.getState().session;return r?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(r.profile.userId),5*60*1e3):[]}};var Ll="ft-user-assets",Kr=Zr.FtReduxStore.get({name:Ll,initialState:{savedSearches:void 0,bookmarks:void 0}}),cn=class{constructor(){this.currentSession=_.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Vr,this.savedSearchesService=new jr,_.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var r;let{session:o}=_.getState();(0,Zr.deepEqual)((r=this.currentSession)===null||r===void 0?void 0:r.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Kr.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Kr.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let r=await this.savedSearchesService.listMySearches();Kr.actions.savedSearches(r)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var r;if(this.bookmarksAreUsed){let o=!((r=this.currentSession)===null||r===void 0)&&r.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Kr.actions.bookmarks(o)}}},ob=new cn;var ln=class{addCommand(r,o=!1){_.commands.add(r,o)}consumeCommand(r){return _.commands.consume(r)}};window.FluidTopicsAppInfoStoreService=new ln;var Zs=C(k()),dn=class{highlightHtml(r,o,n){(0,Zs.highlightHtml)(r,o,n)}};window.FluidTopicsHighlightHtmlService=new dn;var qs=C(k());var un=class{isDate(r){var o,n,a,i;return(i=(a=((n=(o=_.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===r))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(r,o){var n,a,i;return qs.DateFormatter.format(r,(n=o?.locale)!==null&&n!==void 0?n:_.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new un;var Il=C(k());(0,Ys.customElement)("ft-app-context")(K);var fn=class e extends Event{constructor(){super(e.eventName)}};fn.eventName="search-context-clear-all-filters";var Pl=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},yn=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},hn=Symbol("registerInterval");function Tl(e){var r;class o extends e{constructor(){super(...arguments),this[r]=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[hn]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[hn]):this.dispatchEvent(new yn)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return r=hn,Pl([(0,Qs.state)()],o.prototype,"stateManager",void 0),o}var qr=class extends Tl(Xs.FtLitElementRedux){};var oc=C(k());var eo=C(G()),to=C(oe()),ro=C(k());var Js=C(G());var ec=Js.css`
|
|
1061
|
-
`;var Qr=C(k());var rc=C(
|
|
1060
|
+
`}update(r){var o,n,a,i,c;super.update(r),r.has("baseUrl")&&(_.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),r.has("apiIntegrationIdentifier")&&_.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),r.has("uiLocale")&&_.actions.uiLocale(this.uiLocale),r.has("metadataConfiguration")&&_.actions.metadataConfiguration(this.metadataConfiguration),r.has("noCustom")&&_.actions.noCustom(this.noCustom),r.has("editorMode")&&_.actions.editorMode(this.editorMode),r.has("noCustomComponent")&&_.actions.noCustomComponent(this.noCustomComponent),r.has("session")&&_.actions.session(this.session),r.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(l=>ht.addContext(l)),r.has("openExternalDocumentInNewTab")&&_.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),r.has("navigatorOnline")&&_.actions.navigatorOnline(this.navigatorOnline),r.has("forcedOffline")&&_.actions.forcedOffline(this.forcedOffline),r.has("localesConfiguration")&&(_.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),_.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),_.actions.searchInAllLanguagesAllowed((c=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&c!==void 0?c:!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 r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},r.idleTimeoutInMillis),r})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};K.elementDefinitions={};K.styles=rs;ae([(0,pe.property)()],K.prototype,"baseUrl",void 0);ae([(0,pe.property)()],K.prototype,"apiIntegrationIdentifier",void 0);ae([(0,pe.property)()],K.prototype,"uiLocale",void 0);ae([(0,Oe.jsonProperty)(null)],K.prototype,"availableUiLocales",void 0);ae([(0,Oe.jsonProperty)(null)],K.prototype,"metadataConfiguration",void 0);ae([(0,pe.property)({type:Boolean})],K.prototype,"editorMode",void 0);ae([(0,pe.property)({type:Boolean})],K.prototype,"noCustom",void 0);ae([(0,pe.property)({type:Boolean})],K.prototype,"openExternalDocumentInNewTab",void 0);ae([(0,pe.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],K.prototype,"noCustomComponent",void 0);ae([(0,pe.property)({type:Boolean})],K.prototype,"withManualResources",void 0);ae([(0,pe.property)({type:Boolean})],K.prototype,"navigatorOnline",void 0);ae([(0,pe.property)({type:Boolean})],K.prototype,"forcedOffline",void 0);ae([(0,pe.property)({type:Object})],K.prototype,"apiProvider",void 0);ae([(0,Oe.jsonProperty)([])],K.prototype,"messageContexts",void 0);ae([(0,Oe.jsonProperty)(void 0)],K.prototype,"session",void 0);ae([(0,pe.state)()],K.prototype,"localesConfiguration",void 0);var Rl=C(ne());function Hc(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var o,n,a;if(Array.isArray(e)){if(o=e.length,o!=r.length)return!1;for(n=o;n--!==0;)if(!Pr(e[n],r[n]))return!1;return!0}if(e instanceof Map&&r instanceof Map){if(e.size!==r.size)return!1;for(n of e.entries())if(!r.has(n[0]))return!1;for(n of e.entries())if(!Pr(n[1],r.get(n[0])))return!1;return!0}if(e instanceof Set&&r instanceof Set){if(e.size!==r.size)return!1;for(n of e.entries())if(!r.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(a=Object.keys(e),o=a.length,o!==Object.keys(r).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[n]))return!1;for(n=o;n--!==0;){var i=a[n];if(!Pr(e[i],r[i]))return!1}return!0}return e!==e&&r!==r}function Pr(e,r){try{return Hc(e,r)}catch{return!1}}function Do(e,r){return!Pr(e,r)}var zc=C(ne(),1);var Tr=class{constructor(){this.queue=[]}add(r,o=!1){o&&(this.queue=this.queue.filter(n=>n.type!==r.type)),this.queue.push(r)}consume(r){let o=this.queue.find(n=>n.type===r);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}};var tr=C(ne(),1);var is=C(ne(),1);function ss(e,r){let o=()=>JSON.parse(JSON.stringify(e));return(0,is.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:Do,...r??{}})}var _r=class{constructor(r=0){this.timeout=r,this.callbacks=[]}run(r,o){return this.callbacks=[r],this.debounce(o)}queue(r,o){return this.callbacks.push(r),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(r){return this.promise==null&&(this.promise=new Promise((o,n)=>{this.resolvePromise=o,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),r??this.timeout),this.promise}async runCallbacks(){var r,o;let n=[...this.callbacks];this.callbacks=[];let a=(r=this.rejectPromise)!==null&&r!==void 0?r:()=>null,i=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let c of n)try{await c()}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 ls=C(G(),1);var kr=window,Gc=kr.ShadowRoot&&(kr.ShadyCSS===void 0||kr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Pm=Symbol();var cs=(e,r)=>{Gc?e.adoptedStyleSheets=r.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):r.forEach(o=>{let n=document.createElement("style"),a=kr.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=o.cssText,e.appendChild(n)})};var Dr=class extends ls.LitElement{createRenderRoot(){let r=this.constructor;r.elementDefinitions&&!r.registry&&(r.registry=new CustomElementRegistry,Object.entries(r.elementDefinitions).forEach(([a,i])=>r.registry.define(a,i)));let o={...r.shadowRootOptions,customElements:r.registry},n=this.renderOptions.creationScope=this.attachShadow(o);return cs(n,r.elementStyles),n}};var Br=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},ps,ds=Symbol("constructorPrototype"),us=Symbol("constructorName"),hs=Symbol("exportpartsDebouncer"),fs=Symbol("dynamicDependenciesLoaded"),Xe=class extends Dr{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[ps]=new _r(5),this[us]=this.constructor.name,this[ds]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[us]&&Object.setPrototypeOf(this,this[ds])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let r=this.constructor;r[fs]||(r[fs]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(r){super.updated(r),this.updateComplete.then(()=>{this.contentAvailableCallback(r),this.applyCustomStylesheet(r),this.scheduleExportpartsUpdate()})}contentAvailableCallback(r){}applyCustomStylesheet(r){var o,n,a;if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(r.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 r,o,n;(!((r=this.exportpartsPrefix)===null||r===void 0)&&r.trim()||(n=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&n!==void 0&&n)&&this[hs].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(r){var o,n,a,i,c,l;let f=g=>g!=null&&g.trim().length>0,u=r.filter(f).map(g=>g.trim());if(u.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let g of(n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let v=(i=(a=g.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],x=(l=(c=g.getAttribute("exportparts"))===null||c===void 0?void 0:c.split(",").map(S=>S.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...v,...x).filter(f).map(S=>S.trim()).forEach(S=>h.add(S))}if(h.size===0){this.removeAttribute("exportparts");return}let m=[...h.values()].flatMap(g=>u.map(v=>`${g}:${v}--${g}`));this.setAttribute("exportparts",[...this.part,...m].join(", "))}};ps=hs;Br([(0,tr.property)()],Xe.prototype,"exportpartsPrefix",void 0);Br([ss([])],Xe.prototype,"exportpartsPrefixes",void 0);Br([(0,tr.property)()],Xe.prototype,"customStylesheet",void 0);Br([(0,tr.state)()],Xe.prototype,"useAdoptedStyleSheets",void 0);function rr(e){var r;return(r=e?.isFtReduxStore)!==null&&r!==void 0?r:!1}var ys,ms,gs,Ur=Symbol("internalReduxEventsUnsubscribers"),Qe=Symbol("internalStoresUnsubscribers"),yt=Symbol("internalStores"),or=class extends Xe{constructor(){super(...arguments),this[ys]=new Map,this[ms]=new Map,this[gs]=[]}get reduxConstructor(){return this.constructor}update(r){super.update(r),[...this.reduxConstructor.reduxReactiveProperties].some(o=>r.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[yt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[yt].values()][0]}getStore(r){return r==null?this.getUnnamedStore():this[yt].get(r)}addStore(r,o){var n;o=(n=o??(rr(r)?r.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this.setupStore(o,r)}removeStore(r){let o=typeof r=="string"?r:r.name;this.unsubscribeFromStore(o),this[yt].delete(o)}setupStore(r,o){this[yt].set(r,o),this.subscribeToStore(r,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[yt].forEach((r,o)=>this.subscribeToStore(o,r)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((r,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let a=this.getStore(r.store);a&&(r.store?this[Qe].has(r.store):this[Qe].size>0)&&(this[o]=r.selector(a.getState(),this))}})}subscribeToStore(r,o){var n;this[Qe].set(r,o.subscribe(()=>this.updateFromStores())),rr(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 c=l=>this[i](l);o.addEventListener(a.eventName,c),this[Ur].push(()=>o.removeEventListener(a.eventName,c))}})),this.onStoreAvailable(r)}unsubscribeFromStores(){this[Qe].forEach((r,o)=>this.unsubscribeFromStore(o)),this[Ur].forEach(r=>r()),this[Ur]=[]}unsubscribeFromStore(r){this[Qe].has(r)&&this[Qe].get(r)(),this[Qe].delete(r)}onStoreAvailable(r){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};ys=Qe,ms=yt,gs=Ur;or.reduxProperties=new Map;or.reduxReactiveProperties=new Set;or.reduxEventListeners=new Map;function be(e){for(var r=arguments.length,o=Array(r>1?r-1:0),n=1;n<r;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+e+(o.length?" "+o.map(function(c){return"'"+c+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Fe(e){return!!e&&!!e[H]}function Ce(e){var r;return!!e&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===Qc}(e)||Array.isArray(e)||!!e[Es]||!!(!((r=e.constructor)===null||r===void 0)&&r[Es])||Go(e)||jo(e))}function mt(e,r,o){o===void 0&&(o=!1),Ut(e)===0?(o?Object.keys:Bt)(e).forEach(function(n){o&&typeof n=="symbol"||r(n,e[n],e)}):e.forEach(function(n,a){return r(a,n,e)})}function Ut(e){var r=e[H];return r?r.i>3?r.i-4:r.i:Array.isArray(e)?1:Go(e)?2:jo(e)?3:0}function Dt(e,r){return Ut(e)===2?e.has(r):Object.prototype.hasOwnProperty.call(e,r)}function jc(e,r){return Ut(e)===2?e.get(r):e[r]}function ws(e,r,o){var n=Ut(e);n===2?e.set(r,o):n===3?e.add(o):e[r]=o}function As(e,r){return e===r?e!==0||1/e==1/r:e!=e&&r!=r}function Go(e){return Yc&&e instanceof Map}function jo(e){return Xc&&e instanceof Set}function Je(e){return e.o||e.t}function Vo(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var r=Ls(e);delete r[H];for(var o=Bt(r),n=0;n<o.length;n++){var a=o[n],i=r[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(r[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),r)}function Ko(e,r){return r===void 0&&(r=!1),Zo(e)||Fe(e)||!Ce(e)||(Ut(e)>1&&(e.set=e.add=e.clear=e.delete=Vc),Object.freeze(e),r&&mt(e,function(o,n){return Ko(n,!0)},!0)),e}function Vc(){be(2)}function Zo(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Pe(e){var r=zo[e];return r||be(18,e),r}function Kc(e,r){zo[e]||(zo[e]=r)}function Wo(){return ar}function Bo(e,r){r&&(Pe("Patches"),e.u=[],e.s=[],e.v=r)}function Mr(e){Fo(e),e.p.forEach(Zc),e.p=null}function Fo(e){e===ar&&(ar=e.l)}function bs(e){return ar={p:[],l:ar,h:e,m:!0,_:0}}function Zc(e){var r=e[H];r.i===0||r.i===1?r.j():r.g=!0}function Uo(e,r){r._=r.p.length;var o=r.p[0],n=e!==void 0&&e!==o;return r.h.O||Pe("ES5").S(r,e,n),n?(o[H].P&&(Mr(r),be(4)),Ce(e)&&(e=$r(r,e),r.l||Wr(r,e)),r.u&&Pe("Patches").M(o[H].t,e,r.u,r.s)):e=$r(r,o,[]),Mr(r),r.u&&r.v(r.u,r.s),e!==Rs?e:void 0}function $r(e,r,o){if(Zo(r))return r;var n=r[H];if(!n)return mt(r,function(l,f){return xs(e,n,r,l,f,o)},!0),r;if(n.A!==e)return r;if(!n.P)return Wr(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Vo(n.k):n.o,i=a,c=!1;n.i===3&&(i=new Set(a),a.clear(),c=!0),mt(i,function(l,f){return xs(e,n,a,l,f,o,c)}),Wr(e,a,!1),o&&e.u&&Pe("Patches").N(n,o,e.u,e.s)}return n.o}function xs(e,r,o,n,a,i,c){if(Fe(a)){var l=$r(e,a,i&&r&&r.i!==3&&!Dt(r.R,n)?i.concat(n):void 0);if(ws(o,n,l),!Fe(l))return;e.m=!1}else c&&o.add(a);if(Ce(a)&&!Zo(a)){if(!e.h.D&&e._<1)return;$r(e,a),r&&r.A.l||Wr(e,a)}}function Wr(e,r,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&Ko(r,o)}function Mo(e,r){var o=e[H];return(o?Je(o):e)[r]}function vs(e,r){if(r in e)for(var o=Object.getPrototypeOf(e);o;){var n=Object.getOwnPropertyDescriptor(o,r);if(n)return n;o=Object.getPrototypeOf(o)}}function et(e){e.P||(e.P=!0,e.l&&et(e.l))}function $o(e){e.o||(e.o=Vo(e.t))}function Ho(e,r,o){var n=Go(r)?Pe("MapSet").F(r,o):jo(r)?Pe("MapSet").T(r,o):e.O?function(a,i){var c=Array.isArray(a),l={i:c?1:0,A:i?i.A:Wo(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},f=l,u=ir;c&&(f=[l],u=nr);var h=Proxy.revocable(f,u),m=h.revoke,g=h.proxy;return l.k=g,l.j=m,g}(r,o):Pe("ES5").J(r,o);return(o?o.A:Wo()).p.push(n),n}function qc(e){return Fe(e)||be(22,e),function r(o){if(!Ce(o))return o;var n,a=o[H],i=Ut(o);if(a){if(!a.P&&(a.i<4||!Pe("ES5").K(a)))return a.t;a.I=!0,n=Ss(o,i),a.I=!1}else n=Ss(o,i);return mt(n,function(c,l){a&&jc(a.t,c)===l||ws(n,c,r(l))}),i===3?new Set(n):n}(e)}function Ss(e,r){switch(r){case 2:return new Map(e);case 3:return Array.from(e)}return Vo(e)}function Ns(){function e(c,l){var f=i[c];return f?f.enumerable=l:i[c]=f={configurable:!0,enumerable:l,get:function(){var u=this[H];return ir.get(u,c)},set:function(u){var h=this[H];ir.set(h,c,u)}},f}function r(c){for(var l=c.length-1;l>=0;l--){var f=c[l][H];if(!f.P)switch(f.i){case 5:n(f)&&et(f);break;case 4:o(f)&&et(f)}}}function o(c){for(var l=c.t,f=c.k,u=Bt(f),h=u.length-1;h>=0;h--){var m=u[h];if(m!==H){var g=l[m];if(g===void 0&&!Dt(l,m))return!0;var v=f[m],x=v&&v[H];if(x?x.t!==g:!As(v,g))return!0}}var S=!!l[H];return u.length!==Bt(l).length+(S?0:1)}function n(c){var l=c.k;if(l.length!==c.t.length)return!0;var f=Object.getOwnPropertyDescriptor(l,l.length-1);if(f&&!f.get)return!0;for(var u=0;u<l.length;u++)if(!l.hasOwnProperty(u))return!0;return!1}function a(c){c.g&&be(3,JSON.stringify(Je(c)))}var i={};Kc("ES5",{J:function(c,l){var f=Array.isArray(c),u=function(m,g){if(m){for(var v=Array(g.length),x=0;x<g.length;x++)Object.defineProperty(v,""+x,e(x,!0));return v}var S=Ls(g);delete S[H];for(var L=Bt(S),N=0;N<L.length;N++){var R=L[N];S[R]=e(R,m||!!S[R].enumerable)}return Object.create(Object.getPrototypeOf(g),S)}(f,c),h={i:f?5:4,A:l?l.A:Wo(),P:!1,I:!1,R:{},l,t:c,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,H,{value:h,writable:!0}),u},S:function(c,l,f){f?Fe(l)&&l[H].A===c&&r(c.p):(c.u&&function u(h){if(h&&typeof h=="object"){var m=h[H];if(m){var g=m.t,v=m.k,x=m.R,S=m.i;if(S===4)mt(v,function(B){B!==H&&(g[B]!==void 0||Dt(g,B)?x[B]||u(v[B]):(x[B]=!0,et(m)))}),mt(g,function(B){v[B]!==void 0||Dt(v,B)||(x[B]=!1,et(m))});else if(S===5){if(n(m)&&(et(m),x.length=!0),v.length<g.length)for(var L=v.length;L<g.length;L++)x[L]=!1;else for(var N=g.length;N<v.length;N++)x[N]=!0;for(var R=Math.min(v.length,g.length),T=0;T<R;T++)v.hasOwnProperty(T)||(x[T]=!0),x[T]===void 0&&u(v[T])}}}}(c.p[0]),r(c.p))},K:function(c){return c.i===4?o(c):n(c)}})}var Os,ar,qo=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Yc=typeof Map<"u",Xc=typeof Set<"u",Cs=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Rs=qo?Symbol.for("immer-nothing"):((Os={})["immer-nothing"]=!0,Os),Es=qo?Symbol.for("immer-draftable"):"__$immer_draftable",H=qo?Symbol.for("immer-state"):"__$immer_state";var Qc=""+Object.prototype.constructor,Bt=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Ls=Object.getOwnPropertyDescriptors||function(e){var r={};return Bt(e).forEach(function(o){r[o]=Object.getOwnPropertyDescriptor(e,o)}),r},zo={},ir={get:function(e,r){if(r===H)return e;var o=Je(e);if(!Dt(o,r))return function(a,i,c){var l,f=vs(i,c);return f?"value"in f?f.value:(l=f.get)===null||l===void 0?void 0:l.call(a.k):void 0}(e,o,r);var n=o[r];return e.I||!Ce(n)?n:n===Mo(e.t,r)?($o(e),e.o[r]=Ho(e.A.h,n,e)):n},has:function(e,r){return r in Je(e)},ownKeys:function(e){return Reflect.ownKeys(Je(e))},set:function(e,r,o){var n=vs(Je(e),r);if(n?.set)return n.set.call(e.k,o),!0;if(!e.P){var a=Mo(Je(e),r),i=a?.[H];if(i&&i.t===o)return e.o[r]=o,e.R[r]=!1,!0;if(As(o,a)&&(o!==void 0||Dt(e.t,r)))return!0;$o(e),et(e)}return e.o[r]===o&&(o!==void 0||r in e.o)||Number.isNaN(o)&&Number.isNaN(e.o[r])||(e.o[r]=o,e.R[r]=!0),!0},deleteProperty:function(e,r){return Mo(e.t,r)!==void 0||r in e.t?(e.R[r]=!1,$o(e),et(e)):delete e.R[r],e.o&&delete e.o[r],!0},getOwnPropertyDescriptor:function(e,r){var o=Je(e),n=Reflect.getOwnPropertyDescriptor(o,r);return n&&{writable:!0,configurable:e.i!==1||r!=="length",enumerable:n.enumerable,value:o[r]}},defineProperty:function(){be(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){be(12)}},nr={};mt(ir,function(e,r){nr[e]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}}),nr.deleteProperty=function(e,r){return nr.set.call(this,e,r,void 0)},nr.set=function(e,r,o){return ir.set.call(this,e[0],r,o,e[0])};var Jc=function(){function e(o){var n=this;this.O=Cs,this.D=!0,this.produce=function(a,i,c){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var f=n;return function(S){var L=this;S===void 0&&(S=l);for(var N=arguments.length,R=Array(N>1?N-1:0),T=1;T<N;T++)R[T-1]=arguments[T];return f.produce(S,function(B){var U;return(U=i).call.apply(U,[L,B].concat(R))})}}var u;if(typeof i!="function"&&be(6),c!==void 0&&typeof c!="function"&&be(7),Ce(a)){var h=bs(n),m=Ho(n,a,void 0),g=!0;try{u=i(m),g=!1}finally{g?Mr(h):Fo(h)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(S){return Bo(h,c),Uo(S,h)},function(S){throw Mr(h),S}):(Bo(h,c),Uo(u,h))}if(!a||typeof a!="object"){if((u=i(a))===void 0&&(u=a),u===Rs&&(u=void 0),n.D&&Ko(u,!0),c){var v=[],x=[];Pe("Patches").M(a,u,v,x),c(v,x)}return u}be(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(u){for(var h=arguments.length,m=Array(h>1?h-1:0),g=1;g<h;g++)m[g-1]=arguments[g];return n.produceWithPatches(u,function(v){return a.apply(void 0,[v].concat(m))})};var c,l,f=n.produce(a,i,function(u,h){c=u,l=h});return typeof Promise<"u"&&f instanceof Promise?f.then(function(u){return[u,c,l]}):[f,c,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var r=e.prototype;return r.createDraft=function(o){Ce(o)||be(8),Fe(o)&&(o=qc(o));var n=bs(this),a=Ho(this,o,void 0);return a[H].C=!0,Fo(n),a},r.finishDraft=function(o,n){var a=o&&o[H],i=a.A;return Bo(i,n),Uo(void 0,i)},r.setAutoFreeze=function(o){this.D=o},r.setUseProxies=function(o){o&&!Cs&&be(20),this.O=o},r.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 c=Pe("Patches").$;return Fe(o)?c(o,n):this.produce(o,function(l){return c(l,n)})},e}(),ye=new Jc,el=ye.produce,zm=ye.produceWithPatches.bind(ye),Gm=ye.setAutoFreeze.bind(ye),jm=ye.setUseProxies.bind(ye),Vm=ye.applyPatches.bind(ye),Km=ye.createDraft.bind(ye),Zm=ye.finishDraft.bind(ye),Fr=el;function tt(e){"@babel/helpers - typeof";return tt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},tt(e)}function Yo(e,r){if(tt(e)!=="object"||e===null)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var n=o.call(e,r||"default");if(tt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function Xo(e){var r=Yo(e,"string");return tt(r)==="symbol"?r:String(r)}function Qo(e,r,o){return r=Xo(r),r in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o,e}function Is(e,r){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,n)}return o}function Hr(e){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{};r%2?Is(Object(o),!0).forEach(function(n){Qo(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Is(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function ie(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Ps=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Jo=function(){return Math.random().toString(36).substring(7).split("").join(".")},zr={INIT:"@@redux/INIT"+Jo(),REPLACE:"@@redux/REPLACE"+Jo(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Jo()}};function tl(e){if(typeof e!="object"||e===null)return!1;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r}function en(e,r,o){var n;if(typeof r=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(ie(0));if(typeof r=="function"&&typeof o>"u"&&(o=r,r=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(ie(1));return o(en)(e,r)}if(typeof e!="function")throw new Error(ie(2));var a=e,i=r,c=[],l=c,f=!1;function u(){l===c&&(l=c.slice())}function h(){if(f)throw new Error(ie(3));return i}function m(S){if(typeof S!="function")throw new Error(ie(4));if(f)throw new Error(ie(5));var L=!0;return u(),l.push(S),function(){if(L){if(f)throw new Error(ie(6));L=!1,u();var R=l.indexOf(S);l.splice(R,1),c=null}}}function g(S){if(!tl(S))throw new Error(ie(7));if(typeof S.type>"u")throw new Error(ie(8));if(f)throw new Error(ie(9));try{f=!0,i=a(i,S)}finally{f=!1}for(var L=c=l,N=0;N<L.length;N++){var R=L[N];R()}return S}function v(S){if(typeof S!="function")throw new Error(ie(10));a=S,g({type:zr.REPLACE})}function x(){var S,L=m;return S={subscribe:function(R){if(typeof R!="object"||R===null)throw new Error(ie(11));function T(){R.next&&R.next(h())}T();var B=L(T);return{unsubscribe:B}}},S[Ps]=function(){return this},S}return g({type:zr.INIT}),n={dispatch:g,subscribe:m,getState:h,replaceReducer:v},n[Ps]=x,n}function rl(e){Object.keys(e).forEach(function(r){var o=e[r],n=o(void 0,{type:zr.INIT});if(typeof n>"u")throw new Error(ie(12));if(typeof o(void 0,{type:zr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ie(13))})}function Ts(e){for(var r=Object.keys(e),o={},n=0;n<r.length;n++){var a=r[n];typeof e[a]=="function"&&(o[a]=e[a])}var i=Object.keys(o),c,l;try{rl(o)}catch(f){l=f}return function(u,h){if(u===void 0&&(u={}),l)throw l;if(0)var m;for(var g=!1,v={},x=0;x<i.length;x++){var S=i[x],L=o[S],N=u[S],R=L(N,h);if(typeof R>"u"){var T=h&&h.type;throw new Error(ie(14))}v[S]=R,g=g||R!==N}return g=g||i.length!==Object.keys(u).length,g?v:u}}function Mt(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return r.length===0?function(n){return n}:r.length===1?r[0]:r.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function _s(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(ie(15))},c={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=r.map(function(f){return f(c)});return i=Mt.apply(void 0,l)(a.dispatch),Hr(Hr({},a),{},{dispatch:i})}}}function ks(e){var r=function(n){var a=n.dispatch,i=n.getState;return function(c){return function(l){return typeof l=="function"?l(a,i,e):c(l)}}};return r}var Ds=ks();Ds.withExtraArgument=ks;var tn=Ds;var Ws=function(){var e=function(r,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},e(r,o)};return function(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(r,o);function n(){this.constructor=r}r.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),ol=function(e,r){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,c;return c={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function l(u){return function(h){return f([u,h])}}function f(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=r.call(e,o)}catch(h){u=[6,h],a=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},$t=function(e,r){for(var o=0,n=r.length,a=e.length;o<n;o++,a++)e[a]=r[o];return e},nl=Object.defineProperty,al=Object.defineProperties,il=Object.getOwnPropertyDescriptors,Bs=Object.getOwnPropertySymbols,sl=Object.prototype.hasOwnProperty,cl=Object.prototype.propertyIsEnumerable,Us=function(e,r,o){return r in e?nl(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o},rt=function(e,r){for(var o in r||(r={}))sl.call(r,o)&&Us(e,o,r[o]);if(Bs)for(var n=0,a=Bs(r);n<a.length;n++){var o=a[n];cl.call(r,o)&&Us(e,o,r[o])}return e},rn=function(e,r){return al(e,il(r))},ll=function(e,r,o){return new Promise(function(n,a){var i=function(f){try{l(o.next(f))}catch(u){a(u)}},c=function(f){try{l(o.throw(f))}catch(u){a(u)}},l=function(f){return f.done?n(f.value):Promise.resolve(f.value).then(i,c)};l((o=o.apply(e,r)).next())})};var dl=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Mt:Mt.apply(null,arguments)},fg=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function ul(e){if(typeof e!="object"||e===null)return!1;var r=Object.getPrototypeOf(e);if(r===null)return!0;for(var o=r;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return r===o}var fl=function(e){Ws(r,e);function r(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,r.prototype),a}return Object.defineProperty(r,Symbol.species,{get:function(){return r},enumerable:!1,configurable:!0}),r.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},r.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(r.bind.apply(r,$t([void 0],o[0].concat(this)))):new(r.bind.apply(r,$t([void 0],o.concat(this))))},r}(Array),pl=function(e){Ws(r,e);function r(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,r.prototype),a}return Object.defineProperty(r,Symbol.species,{get:function(){return r},enumerable:!1,configurable:!0}),r.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},r.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(r.bind.apply(r,$t([void 0],o[0].concat(this)))):new(r.bind.apply(r,$t([void 0],o.concat(this))))},r}(Array);function an(e){return Ce(e)?Fr(e,function(){}):e}function hl(e){return typeof e=="boolean"}function yl(){return function(r){return ml(r)}}function ml(e){e===void 0&&(e={});var r=e.thunk,o=r===void 0?!0:r,n=e.immutableCheck,a=n===void 0?!0:n,i=e.serializableCheck,c=i===void 0?!0:i,l=new fl;if(o&&(hl(o)?l.push(tn):l.push(tn.withExtraArgument(o.extraArgument))),0){if(a)var f;if(c)var u}return l}var on=!0;function Fs(e){var r=yl(),o=e||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,c=i===void 0?r():i,l=o.devTools,f=l===void 0?!0:l,u=o.preloadedState,h=u===void 0?void 0:u,m=o.enhancers,g=m===void 0?void 0:m,v;if(typeof a=="function")v=a;else if(ul(a))v=Ts(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 x=c;if(typeof x=="function"&&(x=x(r),!on&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!on&&x.some(function(B){return typeof B!="function"}))throw new Error("each middleware provided to configureStore must be a function");var S=_s.apply(void 0,x),L=Mt;f&&(L=dl(rt({trace:!on},typeof f=="object"&&f)));var N=new pl(S),R=N;Array.isArray(g)?R=$t([S],g):typeof g=="function"&&(R=g(N));var T=L.apply(void 0,R);return en(v,h,T)}function ot(e,r){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(r){var i=r.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return rt(rt({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:n[0]}}return o.toString=function(){return""+e},o.type=e,o.match=function(n){return n.type===e},o}function Hs(e){var r={},o=[],n,a={addCase:function(i,c){var l=typeof i=="string"?i:i.type;if(l in r)throw new Error("addCase cannot be called with two reducers for the same action type");return r[l]=c,a},addMatcher:function(i,c){return o.push({matcher:i,reducer:c}),a},addDefaultCase:function(i){return n=i,a}};return e(a),[r,o,n]}function gl(e){return typeof e=="function"}function bl(e,r,o,n){o===void 0&&(o=[]);var a=typeof r=="function"?Hs(r):[r,o,n],i=a[0],c=a[1],l=a[2],f;if(gl(e))f=function(){return an(e())};else{var u=an(e);f=function(){return u}}function h(m,g){m===void 0&&(m=f());var v=$t([i[g.type]],c.filter(function(x){var S=x.matcher;return S(g)}).map(function(x){var S=x.reducer;return S}));return v.filter(function(x){return!!x}).length===0&&(v=[l]),v.reduce(function(x,S){if(S)if(Fe(x)){var L=x,N=S(L,g);return N===void 0?x:N}else{if(Ce(x))return Fr(x,function(R){return S(R,g)});var N=S(x,g);if(N===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return N}return x},m)}return h.getInitialState=f,h}function xl(e,r){return e+"/"+r}function zs(e){var r=e.name;if(!r)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof e.initialState=="function"?e.initialState:an(e.initialState),n=e.reducers||{},a=Object.keys(n),i={},c={},l={};a.forEach(function(h){var m=n[h],g=xl(r,h),v,x;"reducer"in m?(v=m.reducer,x=m.prepare):v=m,i[h]=v,c[g]=v,l[h]=x?ot(g,x):ot(g)});function f(){var h=typeof e.extraReducers=="function"?Hs(e.extraReducers):[e.extraReducers],m=h[0],g=m===void 0?{}:m,v=h[1],x=v===void 0?[]:v,S=h[2],L=S===void 0?void 0:S,N=rt(rt({},g),c);return bl(o,function(R){for(var T in N)R.addCase(T,N[T]);for(var B=0,U=x;B<U.length;B++){var le=U[B];R.addMatcher(le.matcher,le.reducer)}L&&R.addDefaultCase(L)})}var u;return{name:r,reducer:function(h,m){return u||(u=f()),u(h,m)},actions:l,caseReducers:i,getInitialState:function(){return u||(u=f()),u.getInitialState()}}}var vl="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Sl=function(e){e===void 0&&(e=21);for(var r="",o=e;o--;)r+=vl[Math.random()*64|0];return r},Ol=["name","message","stack","code"],nn=function(){function e(r,o){this.payload=r,this.meta=o}return e}(),Ms=function(){function e(r,o){this.payload=r,this.meta=o}return e}(),Cl=function(e){if(typeof e=="object"&&e!==null){for(var r={},o=0,n=Ol;o<n.length;o++){var a=n[o];typeof e[a]=="string"&&(r[a]=e[a])}return r}return{message:String(e)}},mg=function(){function e(r,o,n){var a=ot(r+"/fulfilled",function(h,m,g,v){return{payload:h,meta:rn(rt({},v||{}),{arg:g,requestId:m,requestStatus:"fulfilled"})}}),i=ot(r+"/pending",function(h,m,g){return{payload:void 0,meta:rn(rt({},g||{}),{arg:m,requestId:h,requestStatus:"pending"})}}),c=ot(r+"/rejected",function(h,m,g,v,x){return{payload:v,error:(n&&n.serializeError||Cl)(h||"Rejected"),meta:rn(rt({},x||{}),{arg:g,requestId:m,rejectedWithValue:!!v,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,f=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function u(h){return function(m,g,v){var x=n?.idGenerator?n.idGenerator(h):Sl(),S=new f,L,N=!1;function R(B){L=B,S.abort()}var T=function(){return ll(this,null,function(){var B,U,le,we,se,Ae,ee;return ol(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),we=(B=n?.condition)==null?void 0:B.call(n,h,{getState:g,extra:v}),wl(we)?[4,we]:[3,2];case 1:we=y.sent(),y.label=2;case 2:if(we===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return N=!0,se=new Promise(function(b,P){return S.signal.addEventListener("abort",function(){return P({name:"AbortError",message:L||"Aborted"})})}),m(i(x,h,(U=n?.getPendingMeta)==null?void 0:U.call(n,{requestId:x,arg:h},{getState:g,extra:v}))),[4,Promise.race([se,Promise.resolve(o(h,{dispatch:m,getState:g,extra:v,requestId:x,signal:S.signal,abort:R,rejectWithValue:function(b,P){return new nn(b,P)},fulfillWithValue:function(b,P){return new Ms(b,P)}})).then(function(b){if(b instanceof nn)throw b;return b instanceof Ms?a(b.payload,x,h,b.meta):a(b,x,h)})])];case 3:return le=y.sent(),[3,5];case 4:return Ae=y.sent(),le=Ae instanceof nn?c(null,x,h,Ae.payload,Ae.meta):c(Ae,x,h),[3,5];case 5:return ee=n&&!n.dispatchConditionRejection&&c.match(le)&&le.meta.condition,ee||m(le),[2,le]}})})}();return Object.assign(T,{abort:R,requestId:x,arg:h,unwrap:function(){return T.then(El)}})}}return Object.assign(u,{pending:i,rejected:c,fulfilled:a,typePrefix:r})}return e.withTypes=function(){return e},e}();function El(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function wl(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Gs="listener",js="completed",Vs="cancelled",gg="task-"+Vs,bg="task-"+js,xg=Gs+"-"+Vs,vg=Gs+"-"+js;var sn="listenerMiddleware";var Sg=ot(sn+"/add"),Og=ot(sn+"/removeAll"),Cg=ot(sn+"/remove");var $s,Eg=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return($s||($s=Promise.resolve())).then(e).catch(function(r){return setTimeout(function(){throw r},0)})},Al=function(e){return function(r){setTimeout(r,e)}},wg=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Al(10);Ns();function Nl(e,r){return class extends e{constructor(){super(...arguments),this.eventBus=r??document.createElement("span")}addEventListener(o,n,a){this.eventBus.addEventListener(o,n,a)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,n,a){this.eventBus.removeEventListener(o,n,a)}}}var Gr=class extends Nl(Object){};window.ftReduxStores||(window.ftReduxStores={});var Ks=class e extends Gr{static get(r){var o;let n=typeof r=="string"?r:r.name,a=typeof r=="string"?void 0:r,i=window.ftReduxStores[n];if(rr(i))return i;if(a==null)return;let c=zs({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=Fs({reducer:(f,u)=>u.type==="CLEAR_FT_REDUX_STORE"?c.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...f,...u.overwrites}:c.reducer(f,u)});return window.ftReduxStores[a.name]=new e(c,l)}constructor(r,o){super(),this.reduxSlice=r,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new Tr,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,a,i)=>{let c=a,l=n[c];return l?(...f)=>{let u=l(...f);return this.reduxStore.dispatch(u),u}:f=>{this.setState({[c]:f})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(r){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(r).join("_"),overwrites:r})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(r){throw new Error("Not implemented yet.")}subscribe(r){return this.reduxStore.subscribe(r)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Zr=C(k());var jr=class extends We{async listMySearches(){let r=_.getState().session;return r?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(r.profile.userId),5*60*1e3):[]}};var Vr=class extends We{async listMyBookmarks(){let r=_.getState().session;return r?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(r.profile.userId),5*60*1e3):[]}};var Ll="ft-user-assets",Kr=Zr.FtReduxStore.get({name:Ll,initialState:{savedSearches:void 0,bookmarks:void 0}}),cn=class{constructor(){this.currentSession=_.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Vr,this.savedSearchesService=new jr,_.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var r;let{session:o}=_.getState();(0,Zr.deepEqual)((r=this.currentSession)===null||r===void 0?void 0:r.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Kr.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Kr.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let r=await this.savedSearchesService.listMySearches();Kr.actions.savedSearches(r)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var r;if(this.bookmarksAreUsed){let o=!((r=this.currentSession)===null||r===void 0)&&r.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Kr.actions.bookmarks(o)}}},ob=new cn;var ln=class{addCommand(r,o=!1){_.commands.add(r,o)}consumeCommand(r){return _.commands.consume(r)}};window.FluidTopicsAppInfoStoreService=new ln;var Zs=C(k()),dn=class{highlightHtml(r,o,n){(0,Zs.highlightHtml)(r,o,n)}};window.FluidTopicsHighlightHtmlService=new dn;var qs=C(k());var un=class{isDate(r){var o,n,a,i;return(i=(a=((n=(o=_.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===r))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(r,o){var n,a,i;return qs.DateFormatter.format(r,(n=o?.locale)!==null&&n!==void 0?n:_.getState().uiLocale,(a=o?.longFormat)!==null&&a!==void 0?a:!1,(i=o?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new un;var Il=C(k());(0,Ys.customElement)("ft-app-context")(K);var fn=class e extends Event{constructor(){super(e.eventName)}};fn.eventName="search-context-clear-all-filters";var Pl=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},yn=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},hn=Symbol("registerInterval");function Tl(e){var r;class o extends e{constructor(){super(...arguments),this[r]=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[hn]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[hn]):this.dispatchEvent(new yn)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return r=hn,Pl([(0,Qs.state)()],o.prototype,"stateManager",void 0),o}var qr=class extends Tl(Xs.FtLitElementRedux){};var oc=C(k());var eo=C(G()),to=C(ne()),ro=C(k());var Js=C(G());var ec=Js.css`
|
|
1061
|
+
`;var Qr=C(k());var rc=C(ne()),_l=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},mn=Symbol("i18nAttributes"),gn=Symbol("i18nListAttributes"),Yr=Symbol("i18nProperties"),sr=Symbol("i18nUnsubs");function Jr(e){var r;class o extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[r]=new Map}get i18nService(){return this.useCustomMessageContexts?ns:ht}i18n(a,i,...c){var l;if(typeof a=="string")return this.i18nService.resolveMessage(a,i,...c);let f=(l=a.args)!==null&&l!==void 0?l:a.argsProvider?a.argsProvider(this):[];return this.i18nService.resolveMessage(a.context,a.key,...f)}onI18nUpdate(a){var i,c,l;(i=this[mn])===null||i===void 0||i.forEach((f,u)=>{let h=this.getI18nAttributeValue(u);h&&(this[u]=this.getI18nAttributeMessage(h,f,a))}),(c=this[gn])===null||c===void 0||c.forEach((f,u)=>{let h=this.getI18nListAttributeValues(u);this[u]=h?.map(m=>this.getI18nAttributeMessage(m,f,a))}),(l=this[Yr])===null||l===void 0||l.forEach((f,u)=>{f.context.toLowerCase()===a.toLowerCase()&&(this[u]=this.i18n(f))}),setTimeout(()=>this.requestUpdate(),0)}buildI18nAttributeMessage(a,i){return{...a,message:this.i18n({context:a.context,key:a.key,...i})}}getI18nAttributeMessage(a,i,c){var l;let f=!c||((l=a.context)===null||l===void 0?void 0:l.toLowerCase())===c.toLowerCase();return a.context&&a.key&&f?this.buildI18nAttributeMessage(a,i):a}update(a){var i,c,l;super.update(a),(i=this[mn])===null||i===void 0||i.forEach((f,u)=>{let h=this.getI18nAttributeValue(u);h?.context&&h.key&&(a.has(u)||f.argsProvider!=null)&&(this.addI18nContextIfNeeded(h,a,u),this[u]=this.getI18nAttributeMessage(h,f))}),(c=this[gn])===null||c===void 0||c.forEach((f,u)=>{let h=this.getI18nListAttributeValues(u);(a.has(u)||f.argsProvider!=null)&&(this[u]=h?.map(m=>(this.addI18nContextIfNeeded(m,a,u),this.getI18nAttributeMessage(m,f))))}),(l=this[Yr])===null||l===void 0||l.forEach((f,u)=>{f.argsProvider!=null&&(this[u]=this.i18n(f))})}getI18nAttributeValue(a){return this[a]}getI18nListAttributeValues(a){return this[a]}addI18nContextIfNeeded(a,i,c){a.context&&a.key&&i.has(c)&&this.addI18nContext(a.context)}connectedCallback(){var a,i,c,l,f,u;super.connectedCallback(),new Set([...(i=(a=this[Yr])===null||a===void 0?void 0:a.values())!==null&&i!==void 0?i:[],...[...(l=(c=this[mn])===null||c===void 0?void 0:c.keys())!==null&&l!==void 0?l:[]].map(h=>this.getI18nAttributeValue(h)),...[...(u=(f=this[gn])===null||f===void 0?void 0:f.keys())!==null&&u!==void 0?u:[]].flatMap(h=>this.getI18nListAttributeValues(h))].map(h=>h?.context)).forEach(h=>h&&this.addI18nMessages(h))}addI18nMessages(a,i){a=a.toLowerCase(),this[sr].has(a)||this[sr].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[sr].forEach(a=>a()),this[sr].clear()}}return r=sr,_l([(0,rc.property)({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}var tc=class extends Jr(Qr.FtLitElement){},Xr=class extends Jr(Qr.FtLitElementRedux){};var cr=function(e,r,o,n){var a=arguments.length,i=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,o):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,r,o,n);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(i=(a<3?c(i):a>3?c(r,o,i):c(r,o))||i);return a>3&&i&&Object.defineProperty(r,o,i),i},Ee=class extends Xr{constructor(){super(),this.editorMode=!1,this.addStore(_)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":eo.nothing:eo.html`
|
|
1062
1062
|
<span class="ft-i18n">
|
|
1063
1063
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
1064
1064
|
</span>
|