@fluid-topics/ft-search-results-spellcheck 1.1.3 → 1.1.4

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.
@@ -144,7 +144,7 @@ const H=Symbol.for(""),P=t=>{if(t?.r===H)return t?._$litStatic$},G=t=>({_$litSta
144
144
  <span class="ft-i18n">
145
145
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
146
146
  </span>
147
- `:this.editorMode?"Select a context and a label key.":e.nothing}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}ne.elementDefinitions={},ne.styles=vo,ae([o.redux()],ne.prototype,"editorMode",void 0),ae([r.property()],ne.prototype,"context",void 0),ae([r.property()],ne.prototype,"key",void 0),ae([o.jsonProperty([])],ne.prototype,"args",void 0),ae([r.property()],ne.prototype,"defaultMessage",void 0);class ie{static build(t){return new ie(t)}static fromGwt(t){return new ie(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,o)=>{const e=o;return t=>({context:this.name,key:e,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,o)=>(...t)=>Lo.resolveMessage(this.name,o,...t)})}}o.customElement("ft-i18n")(ne),function(t){!function(o){var e={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(e.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],a=ArrayBuffer.isView||function(t){return t&&r.indexOf(Object.prototype.toString.call(t))>-1};function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function i(t){return"string"!=typeof t&&(t=String(t)),t}function l(t){var o={next:function(){var o=t.shift();return{done:void 0===o,value:o}}};return e.iterable&&(o[Symbol.iterator]=function(){return o}),o}function c(t){this.map={},t instanceof c?t.forEach((function(t,o){this.append(o,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(o){this.append(o,t[o])}),this)}function s(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function f(t){return new Promise((function(o,e){t.onload=function(){o(t.result)},t.onerror=function(){e(t.error)}}))}function p(t){var o=new FileReader,e=f(o);return o.readAsArrayBuffer(t),e}function h(t){if(t.slice)return t.slice(0);var o=new Uint8Array(t.byteLength);return o.set(new Uint8Array(t)),o.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(t){var o;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:e.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:e.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():e.arrayBuffer&&e.blob&&((o=t)&&DataView.prototype.isPrototypeOf(o))?(this._bodyArrayBuffer=h(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):e.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||a(t))?this._bodyArrayBuffer=h(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},e.blob&&(this.blob=function(){var t=s(this);if(t)return t;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(){return this._bodyArrayBuffer?s(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(p)}),this.text=function(){var t,o,e,r=s(this);if(r)return r;if(this._bodyBlob)return t=this._bodyBlob,o=new FileReader,e=f(o),o.readAsText(t),e;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var o=new Uint8Array(t),e=new Array(o.length),r=0;r<o.length;r++)e[r]=String.fromCharCode(o[r]);return e.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},e.formData&&(this.formData=function(){return this.text().then(u)}),this.json=function(){return this.text().then(JSON.parse)},this}c.prototype.append=function(t,o){t=n(t),o=i(o);var e=this.map[t];this.map[t]=e?e+", "+o:o},c.prototype.delete=function(t){delete this.map[n(t)]},c.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},c.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},c.prototype.set=function(t,o){this.map[n(t)]=i(o)},c.prototype.forEach=function(t,o){for(var e in this.map)this.map.hasOwnProperty(e)&&t.call(o,this.map[e],e,this)},c.prototype.keys=function(){var t=[];return this.forEach((function(o,e){t.push(e)})),l(t)},c.prototype.values=function(){var t=[];return this.forEach((function(o){t.push(o)})),l(t)},c.prototype.entries=function(){var t=[];return this.forEach((function(o,e){t.push([e,o])})),l(t)},e.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);var d=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function g(t,o){var e,r,a=(o=o||{}).body;if(t instanceof g){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,o.headers||(this.headers=new c(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,a||null==t._bodyInit||(a=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=o.credentials||this.credentials||"same-origin",!o.headers&&this.headers||(this.headers=new c(o.headers)),this.method=(e=o.method||this.method||"GET",r=e.toUpperCase(),d.indexOf(r)>-1?r:e),this.mode=o.mode||this.mode||null,this.signal=o.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&a)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(a)}function u(t){var o=new FormData;return t.trim().split("&").forEach((function(t){if(t){var e=t.split("="),r=e.shift().replace(/\+/g," "),a=e.join("=").replace(/\+/g," ");o.append(decodeURIComponent(r),decodeURIComponent(a))}})),o}function b(t,o){o||(o={}),this.type="default",this.status=void 0===o.status?200:o.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in o?o.statusText:"OK",this.headers=new c(o.headers),this.url=o.url||"",this._initBody(t)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},y.call(g.prototype),y.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var m=[301,302,303,307,308];b.redirect=function(t,o){if(-1===m.indexOf(o))throw new RangeError("Invalid status code");return new b(null,{status:o,headers:{location:t}})},o.DOMException=t.DOMException;try{new o.DOMException}catch(t){o.DOMException=function(t,o){this.message=t,this.name=o;var e=Error(t);this.stack=e.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function O(t,r){return new Promise((function(a,n){var i=new g(t,r);if(i.signal&&i.signal.aborted)return n(new o.DOMException("Aborted","AbortError"));var l=new XMLHttpRequest;function s(){l.abort()}l.onload=function(){var t,o,e={status:l.status,statusText:l.statusText,headers:(t=l.getAllResponseHeaders()||"",o=new c,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var e=t.split(":"),r=e.shift().trim();if(r){var a=e.join(":").trim();o.append(r,a)}})),o)};e.url="responseURL"in l?l.responseURL:e.headers.get("X-Request-URL");var r="response"in l?l.response:l.responseText;a(new b(r,e))},l.onerror=function(){n(new TypeError("Network request failed"))},l.ontimeout=function(){n(new TypeError("Network request failed"))},l.onabort=function(){n(new o.DOMException("Aborted","AbortError"))},l.open(i.method,i.url,!0),"include"===i.credentials?l.withCredentials=!0:"omit"===i.credentials&&(l.withCredentials=!1),"responseType"in l&&e.blob&&(l.responseType="blob"),i.headers.forEach((function(t,o){l.setRequestHeader(o,t)})),i.signal&&(i.signal.addEventListener("abort",s),l.onreadystatechange=function(){4===l.readyState&&i.signal.removeEventListener("abort",s)}),l.send(void 0===i._bodyInit?null:i._bodyInit)}))}O.polyfill=!0,t.fetch||(t.fetch=O,t.Headers=c,t.Request=g,t.Response=b),o.Headers=c,o.Request=g,o.Response=b,o.fetch=O,Object.defineProperty(o,"t",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(Go||(Go={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(_o||(_o={})),function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"}(Mo||(Mo={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(jo||(jo={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(Yo||(Yo={})),function(t){t.ASC="ASC",t.DESC="DESC"}(qo||(qo={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(Xo||(Xo={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(Vo||(Vo={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Jo||(Jo={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(Qo||(Qo={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(te||(te={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(oe||(oe={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS"}(ee||(ee={})),function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}(re||(re={})),re.PERSONAL_BOOK_SHARE_USER,re.PERSONAL_BOOK_USER,re.HTML_EXPORT_USER,re.PERSONAL_BOOK_USER,re.PDF_EXPORT_USER,re.PERSONAL_BOOK_USER,re.KHUB_ADMIN,re.CONTENT_PUBLISHER,re.ADMIN,re.KHUB_ADMIN,re.USERS_ADMIN,re.PORTAL_ADMIN,re.DEVELOPER,re.BETA_USER,re.DEBUG_USER;class le extends Event{constructor(){super(le.eventName)}}le.eventName="search-context-clear-all-filters";var ce=function(t,o,e,r){for(var a,n=arguments.length,i=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(a=t[l])&&(i=(n<3?a(i):n>3?a(o,e,i):a(o,e))||i);return n>3&&i&&Object.defineProperty(o,e,i),i};class se extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const fe=Symbol("registerInterval");class pe extends(function(t){var o;class e extends t{constructor(){super(...arguments),this[o]=0}setSearchStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[fe]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[fe]):this.dispatchEvent(new se)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return o=fe,ce([r.state()],e.prototype,"stateManager",void 0),e}(o.FtLitElementRedux)){}const he=ie.build("integratedSpellcheckComponent"),ye={resultsFor:"Results for ",noResultsForQuery:'No results for query "{0}"'};var de=function(t,o,e,r){for(var a,n=arguments.length,i=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(a=t[l])&&(i=(n<3?a(i):n>3?a(o,e,i):a(o,e))||i);return n>3&&i&&Object.defineProperty(o,e,i),i};class ge extends(o.withConditionalVisibility(To(pe))){constructor(){super(),this.editorMode=!1,this.addStore(Uo),this.addI18nContext(he,ye)}getSpellcheckedUrl(t){return this.editorMode?"":o.serializeRequest(Uo.getState().baseUrl,{...this.request,query:t})}update(t){super.update(t),this.isVisible=!!this.autocorrect||this.editorMode}renderSpellcheck(t,o){return e.html`
147
+ `:this.editorMode?"Select a context and a label key.":e.nothing}update(t){var o;super.update(t),this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:null!==(o=this.defaultMessage)&&void 0!==o?o:""})}}ne.elementDefinitions={},ne.styles=vo,ae([o.redux()],ne.prototype,"editorMode",void 0),ae([r.property()],ne.prototype,"context",void 0),ae([r.property()],ne.prototype,"key",void 0),ae([o.jsonProperty([])],ne.prototype,"args",void 0),ae([r.property()],ne.prototype,"defaultMessage",void 0);class ie{static build(t){return new ie(t)}static fromGwt(t){return new ie(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,o)=>{const e=o;return t=>({context:this.name,key:e,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,o)=>(...t)=>Lo.resolveMessage(this.name,o,...t)})}}o.customElement("ft-i18n")(ne),function(t){!function(o){var e={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(e.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],a=ArrayBuffer.isView||function(t){return t&&r.indexOf(Object.prototype.toString.call(t))>-1};function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function i(t){return"string"!=typeof t&&(t=String(t)),t}function l(t){var o={next:function(){var o=t.shift();return{done:void 0===o,value:o}}};return e.iterable&&(o[Symbol.iterator]=function(){return o}),o}function c(t){this.map={},t instanceof c?t.forEach((function(t,o){this.append(o,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(o){this.append(o,t[o])}),this)}function s(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function f(t){return new Promise((function(o,e){t.onload=function(){o(t.result)},t.onerror=function(){e(t.error)}}))}function p(t){var o=new FileReader,e=f(o);return o.readAsArrayBuffer(t),e}function h(t){if(t.slice)return t.slice(0);var o=new Uint8Array(t.byteLength);return o.set(new Uint8Array(t)),o.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(t){var o;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:e.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:e.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():e.arrayBuffer&&e.blob&&((o=t)&&DataView.prototype.isPrototypeOf(o))?(this._bodyArrayBuffer=h(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):e.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||a(t))?this._bodyArrayBuffer=h(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},e.blob&&(this.blob=function(){var t=s(this);if(t)return t;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(){return this._bodyArrayBuffer?s(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(p)}),this.text=function(){var t,o,e,r=s(this);if(r)return r;if(this._bodyBlob)return t=this._bodyBlob,o=new FileReader,e=f(o),o.readAsText(t),e;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var o=new Uint8Array(t),e=new Array(o.length),r=0;r<o.length;r++)e[r]=String.fromCharCode(o[r]);return e.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},e.formData&&(this.formData=function(){return this.text().then(u)}),this.json=function(){return this.text().then(JSON.parse)},this}c.prototype.append=function(t,o){t=n(t),o=i(o);var e=this.map[t];this.map[t]=e?e+", "+o:o},c.prototype.delete=function(t){delete this.map[n(t)]},c.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},c.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},c.prototype.set=function(t,o){this.map[n(t)]=i(o)},c.prototype.forEach=function(t,o){for(var e in this.map)this.map.hasOwnProperty(e)&&t.call(o,this.map[e],e,this)},c.prototype.keys=function(){var t=[];return this.forEach((function(o,e){t.push(e)})),l(t)},c.prototype.values=function(){var t=[];return this.forEach((function(o){t.push(o)})),l(t)},c.prototype.entries=function(){var t=[];return this.forEach((function(o,e){t.push([e,o])})),l(t)},e.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);var d=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function g(t,o){var e,r,a=(o=o||{}).body;if(t instanceof g){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,o.headers||(this.headers=new c(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,a||null==t._bodyInit||(a=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=o.credentials||this.credentials||"same-origin",!o.headers&&this.headers||(this.headers=new c(o.headers)),this.method=(e=o.method||this.method||"GET",r=e.toUpperCase(),d.indexOf(r)>-1?r:e),this.mode=o.mode||this.mode||null,this.signal=o.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&a)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(a)}function u(t){var o=new FormData;return t.trim().split("&").forEach((function(t){if(t){var e=t.split("="),r=e.shift().replace(/\+/g," "),a=e.join("=").replace(/\+/g," ");o.append(decodeURIComponent(r),decodeURIComponent(a))}})),o}function b(t,o){o||(o={}),this.type="default",this.status=void 0===o.status?200:o.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in o?o.statusText:"OK",this.headers=new c(o.headers),this.url=o.url||"",this._initBody(t)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},y.call(g.prototype),y.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var m=[301,302,303,307,308];b.redirect=function(t,o){if(-1===m.indexOf(o))throw new RangeError("Invalid status code");return new b(null,{status:o,headers:{location:t}})},o.DOMException=t.DOMException;try{new o.DOMException}catch(t){o.DOMException=function(t,o){this.message=t,this.name=o;var e=Error(t);this.stack=e.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function O(t,r){return new Promise((function(a,n){var i=new g(t,r);if(i.signal&&i.signal.aborted)return n(new o.DOMException("Aborted","AbortError"));var l=new XMLHttpRequest;function s(){l.abort()}l.onload=function(){var t,o,e={status:l.status,statusText:l.statusText,headers:(t=l.getAllResponseHeaders()||"",o=new c,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var e=t.split(":"),r=e.shift().trim();if(r){var a=e.join(":").trim();o.append(r,a)}})),o)};e.url="responseURL"in l?l.responseURL:e.headers.get("X-Request-URL");var r="response"in l?l.response:l.responseText;a(new b(r,e))},l.onerror=function(){n(new TypeError("Network request failed"))},l.ontimeout=function(){n(new TypeError("Network request failed"))},l.onabort=function(){n(new o.DOMException("Aborted","AbortError"))},l.open(i.method,i.url,!0),"include"===i.credentials?l.withCredentials=!0:"omit"===i.credentials&&(l.withCredentials=!1),"responseType"in l&&e.blob&&(l.responseType="blob"),i.headers.forEach((function(t,o){l.setRequestHeader(o,t)})),i.signal&&(i.signal.addEventListener("abort",s),l.onreadystatechange=function(){4===l.readyState&&i.signal.removeEventListener("abort",s)}),l.send(void 0===i._bodyInit?null:i._bodyInit)}))}O.polyfill=!0,t.fetch||(t.fetch=O,t.Headers=c,t.Request=g,t.Response=b),o.Headers=c,o.Request=g,o.Response=b,o.fetch=O,Object.defineProperty(o,"t",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(Go||(Go={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(_o||(_o={})),function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"}(Mo||(Mo={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(jo||(jo={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(Yo||(Yo={})),function(t){t.ASC="ASC",t.DESC="DESC"}(qo||(qo={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(Xo||(Xo={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(Vo||(Vo={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Jo||(Jo={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(Qo||(Qo={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(te||(te={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(oe||(oe={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS"}(ee||(ee={})),function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}(re||(re={})),re.PERSONAL_BOOK_SHARE_USER,re.PERSONAL_BOOK_USER,re.HTML_EXPORT_USER,re.PERSONAL_BOOK_USER,re.PDF_EXPORT_USER,re.PERSONAL_BOOK_USER,re.KHUB_ADMIN,re.CONTENT_PUBLISHER,re.ADMIN,re.KHUB_ADMIN,re.USERS_ADMIN,re.PORTAL_ADMIN,re.DEVELOPER,re.BETA_USER,re.DEBUG_USER;class le extends Event{constructor(){super(le.eventName)}}le.eventName="search-context-clear-all-filters";var ce=function(t,o,e,r){for(var a,n=arguments.length,i=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(a=t[l])&&(i=(n<3?a(i):n>3?a(o,e,i):a(o,e))||i);return n>3&&i&&Object.defineProperty(o,e,i),i};class se extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const fe=Symbol("registerInterval");class pe extends(function(t){var o;class e extends t{constructor(){super(...arguments),this[o]=0}setSearchStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[fe]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[fe]):this.dispatchEvent(new se)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return o=fe,ce([r.state()],e.prototype,"stateManager",void 0),e}(o.FtLitElementRedux)){}const he=ie.build("integratedSpellcheckComponent"),ye={resultsFor:"Results for ",noResultsForQuery:'No results for query "{0}"'};var de=function(t,o,e,r){for(var a,n=arguments.length,i=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(a=t[l])&&(i=(n<3?a(i):n>3?a(o,e,i):a(o,e))||i);return n>3&&i&&Object.defineProperty(o,e,i),i};class ge extends(o.withConditionalVisibility(To(pe))){constructor(){super(),this.editorMode=!1,this.addStore(Uo),this.addI18nContext(he,ye)}getSpellcheckedUrl(t){return this.editorMode?"":o.serializeRequest(Uo.getState().baseUrl,{...this.request,query:t})}update(t){super.update(t),this.isVisible=!!this.autocorrect||this.editorMode}renderSpellcheck(t,o){return e.html`
148
148
  <div class="ft-search-results-spellcheck--spellcheck">
149
149
  <div>
150
150
  <ft-typography variant="subtitle1">
@@ -12,7 +12,7 @@
12
12
  * subject to an additional IP rights grant found at
13
13
  * http://polymer.github.io/PATENTS.txt
14
14
  */
15
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,o=window.customElements.get,r=window.customElements,n=new WeakMap,i=new WeakMap,a=new WeakMap,s=new WeakMap;let c;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=n.prototype.attributeChangedCallback,c=new Set(n.observedAttributes||[]);u(n,c,s);const l={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:c};this._definitionsByTag.set(t,l),this._definitionsByClass.set(n,l);let f=o.call(r,t);f||(f=h(t),e.call(r,t,f)),this===window.customElements&&(a.set(n,l),l.standInClass=f);const p=this._awaitingUpgrade.get(t);if(p){this._awaitingUpgrade.delete(t);for(const t of p)i.delete(t),d(t,l,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){g.push(this),r.upgrade.apply(r,arguments),g.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let o=this._whenDefinedPromises.get(t);return void 0===o&&(o={},o.promise=new Promise((t=>o.resolve=t)),this._whenDefinedPromises.set(t,o)),o.promise}_upgradeWhenDefined(t,e,o){let r=this._awaitingUpgrade.get(e);r||this._awaitingUpgrade.set(e,r=new Set),o?r.add(t):r.delete(t)}},window.HTMLElement=function(){let e=c;if(e)return c=void 0,e;const o=a.get(this.constructor);if(!o)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],o.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),n.set(e,o),e},window.HTMLElement.prototype=t.prototype;const l=t=>t===document||t instanceof ShadowRoot,f=t=>{let e=t.getRootNode();if(!l(e)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),l(e)||(e=s.get(e)?.getRootNode()||document)}return e.customElements},h=e=>class{static get formAssociated(){return!0}constructor(){const o=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(o,HTMLElement.prototype);const r=f(o)||window.customElements,n=r._getDefinition(e);return n?d(o,n):i.set(o,r),o}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):i.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):i.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=n.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},u=(t,e,o)=>{if(0===e.size||void 0===o)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,n){const i=t.toLowerCase();if(e.has(i)){const t=this.getAttribute(i);r.call(this,i,n),o.call(this,i,t,n)}else r.call(this,i,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);n.call(this,r),o.call(this,r,t,null)}else n.call(this,r)});const i=t.prototype.toggleAttribute;i&&(t.prototype.toggleAttribute=function(t,r){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);i.call(this,n,r);const e=this.getAttribute(n);o.call(this,n,t,e)}else i.call(this,n,r)})},p=e=>{const o=Object.getPrototypeOf(e);if(o!==window.HTMLElement)return o===t?Object.setPrototypeOf(e,window.HTMLElement):p(o)},d=(t,e,o=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),c=t;try{new e.elementClass}catch(t){p(e.elementClass),new e.elementClass}e.attributeChangedCallback&&e.observedAttributes.forEach((o=>{t.hasAttribute(o)&&e.attributeChangedCallback.call(t,o,null,t.getAttribute(o))})),o&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let g=[document];const b=(t,e,o=void 0)=>{const r=(o?Object.getPrototypeOf(o):t.prototype)[e];t.prototype[e]=function(){g.push(this);const t=r.apply(o||this,arguments);return void 0!==t&&s.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,e)=>{const o=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...o,set(t){g.push(this),o.set.call(this,t),g.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,o=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...o){const r=e.call(this,...o);return t.set(r,this),r},o.forEach((e=>{const o=window.ElementInternals.prototype,r=o[e];o[e]=function(...e){const o=t.get(this);if(!0===n.get(o).formAssociated)return r?.call(this,...e);throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class r extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class i{constructor(t){const e=new Map;t.forEach(((t,o)=>{const r=t.getAttribute("name"),n=e.get(r)||[];this[+o]=t,n.push(t),e.set(r,n)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new r(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),e=[];for(const o of t){const t=n.get(o);t&&!0!==t.formAssociated||e.push(o)}return new i(e)}})}}try{window.customElements.define("custom-element",null)}catch(Fr){const t=window.customElements.define;window.customElements.define=(e,o,r)=>{if(null!==o)try{t.bind(window.customElements)(e,o,r)}catch(t){console.info(e,o,r,t)}}}class e extends Error{constructor(t,e,o){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=o}}class o extends Promise{constructor(t){super(((o,r)=>t((t=>{this.isCanceled?r(new e("Promise has been canceled",t)):o(t)}),(t=>{this.isCanceled?r(new e("Promise has been canceled",void 0,t)):r(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class r{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||this.forceClear(t)}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof o&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){null!=this.clearTimeouts[t]&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,e){this.forceClear(t),this.register(t,(async()=>e)),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,(async()=>e)),this.content[t]=e}async get(t,e,r){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const n=(t=>new o(((e,o)=>t.then(e).catch(o))))(e());return this.content[t]=n,n.then((e=>(this.content[t]=e,null!=r&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),r)),e)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}
15
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,o=window.customElements.get,r=window.customElements,n=new WeakMap,i=new WeakMap,a=new WeakMap,s=new WeakMap;let c;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=n.prototype.attributeChangedCallback,c=new Set(n.observedAttributes||[]);u(n,c,s);const l={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:c};this._definitionsByTag.set(t,l),this._definitionsByClass.set(n,l);let f=o.call(r,t);f||(f=h(t),e.call(r,t,f)),this===window.customElements&&(a.set(n,l),l.standInClass=f);const p=this._awaitingUpgrade.get(t);if(p){this._awaitingUpgrade.delete(t);for(const t of p)i.delete(t),d(t,l,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){g.push(this),r.upgrade.apply(r,arguments),g.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let o=this._whenDefinedPromises.get(t);return void 0===o&&(o={},o.promise=new Promise((t=>o.resolve=t)),this._whenDefinedPromises.set(t,o)),o.promise}_upgradeWhenDefined(t,e,o){let r=this._awaitingUpgrade.get(e);r||this._awaitingUpgrade.set(e,r=new Set),o?r.add(t):r.delete(t)}},window.HTMLElement=function(){let e=c;if(e)return c=void 0,e;const o=a.get(this.constructor);if(!o)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],o.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),n.set(e,o),e},window.HTMLElement.prototype=t.prototype;const l=t=>t===document||t instanceof ShadowRoot,f=t=>{let e=t.getRootNode();if(!l(e)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),l(e)||(e=s.get(e)?.getRootNode()||document)}return e.customElements},h=e=>class{static get formAssociated(){return!0}constructor(){const o=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(o,HTMLElement.prototype);const r=f(o)||window.customElements,n=r._getDefinition(e);return n?d(o,n):i.set(o,r),o}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):i.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):i.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=n.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},u=(t,e,o)=>{if(0===e.size||void 0===o)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,n){const i=t.toLowerCase();if(e.has(i)){const t=this.getAttribute(i);r.call(this,i,n),o.call(this,i,t,n)}else r.call(this,i,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);n.call(this,r),o.call(this,r,t,null)}else n.call(this,r)});const i=t.prototype.toggleAttribute;i&&(t.prototype.toggleAttribute=function(t,r){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);i.call(this,n,r);const e=this.getAttribute(n);o.call(this,n,t,e)}else i.call(this,n,r)})},p=e=>{const o=Object.getPrototypeOf(e);if(o!==window.HTMLElement)return o===t?Object.setPrototypeOf(e,window.HTMLElement):p(o)},d=(t,e,o=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),c=t;try{new e.elementClass}catch(t){p(e.elementClass),new e.elementClass}e.attributeChangedCallback&&e.observedAttributes.forEach((o=>{t.hasAttribute(o)&&e.attributeChangedCallback.call(t,o,null,t.getAttribute(o))})),o&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let g=[document];const b=(t,e,o=void 0)=>{const r=(o?Object.getPrototypeOf(o):t.prototype)[e];t.prototype[e]=function(){g.push(this);const t=r.apply(o||this,arguments);return void 0!==t&&s.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,e)=>{const o=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...o,set(t){g.push(this),o.set.call(this,t),g.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,o=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...o){const r=e.call(this,...o);return t.set(r,this),r},o.forEach((e=>{const o=window.ElementInternals.prototype,r=o[e];o[e]=function(...e){const o=t.get(this);if(!0===n.get(o).formAssociated)return r?.call(this,...e);throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class r extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class i{constructor(t){const e=new Map;t.forEach(((t,o)=>{const r=t.getAttribute("name"),n=e.get(r)||[];this[+o]=t,n.push(t),e.set(r,n)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new r(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),e=[];for(const o of t){const t=n.get(o);t&&!0!==t.formAssociated||e.push(o)}return new i(e)}})}}try{window.customElements.define("custom-element",null)}catch(Mr){const t=window.customElements.define;window.customElements.define=(e,o,r)=>{if(null!==o)try{t.bind(window.customElements)(e,o,r)}catch(t){console.info(e,o,r,t)}}}class e extends Error{constructor(t,e,o){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=o}}class o extends Promise{constructor(t){super(((o,r)=>t((t=>{this.isCanceled?r(new e("Promise has been canceled",t)):o(t)}),(t=>{this.isCanceled?r(new e("Promise has been canceled",void 0,t)):r(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class r{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||this.forceClear(t)}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof o&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){null!=this.clearTimeouts[t]&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,e){this.forceClear(t),this.register(t,(async()=>e)),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,(async()=>e)),this.content[t]=e}async get(t,e,r){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const n=(t=>new o(((e,o)=>t.then(e).catch(o))))(e());return this.content[t]=n,n.then((e=>(this.content[t]=e,null!=r&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),r)),e)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}
16
16
  /**
17
17
  * @license
18
18
  * Copyright 2019 Google LLC
@@ -102,123 +102,123 @@ let be=class extends Pt{constructor(){super(...arguments),this.renderOptions={ho
102
102
  display: inline-block;
103
103
  width: 0;
104
104
  }
105
- `;class Ke{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,r;t=this.resolvePluralKey(t,e);let n=null!==(r=null!==(o=this.labels[t])&&void 0!==o?o:this.defaultLabels[t])&&void 0!==r?r:"";return e.forEach(((t,e)=>n=n.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,o)=>this.formatValue(t,o))))),n}resolvePluralKey(t,e){for(let o of e)if("number"==typeof o){const e=`${String(t)}[\\=${o}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const o=o=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(o):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(o):t.toLocaleString(o);try{return o(document.documentElement.lang)}catch(t){return o()}}}function Pe(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var je,Fe,Me;const De=Symbol("internalReduxEventsUnsubscribers"),Ze=Symbol("internalStoresUnsubscribers"),Te=Symbol("internalStores");class _e extends Ae{constructor(){super(...arguments),this[je]=new Map,this[Fe]=new Map,this[Me]=[]}update(t){var e;super.update(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[Te].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Te].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Te].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:Pe(t)?t.name:void 0)&&void 0!==o?o:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[Te].delete(e)}setupStore(t,e){this[Te].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Te].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const o=this.constructor.getPropertyOptions(e);if(!(null==o?void 0:o.attribute)||!this.hasAttribute("string"==typeof(null==o?void 0:o.attribute)?o.attribute:e)){const o=this.getStore(t.store);o&&(t.store?this[Ze].has(t.store):this[Ze].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[Ze].set(t,e.subscribe((()=>this.updateFromStores()))),Pe(e)&&e.eventBus&&(null===(o=this.reduxEventListeners)||void 0===o||o.forEach(((t,o)=>{if("function"==typeof this[o]&&(!t.store||e.name===t.store)){const r=t=>this[o](t);e.eventBus.addEventListener(t.eventName,r),this[De].push((()=>e.eventBus.removeEventListener(t.eventName,r)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Ze].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[De].forEach((t=>t())),this[De]=[]}unsubscribeFromStore(t){this[Ze].has(t)&&this[Ze].get(t)(),this[Ze].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function ze(t){for(var e=arguments.length,o=Array(e>1?e-1:0),r=1;r<e;r++)o[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Be(t){return!!t&&!!t[ko]}function He(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var o=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return o===Object||"function"==typeof o&&Function.toString.call(o)===Ao}(t)||Array.isArray(t)||!!t[Wo]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Wo])||Je(t)||Qe(t))}function Ge(t,e,o){void 0===o&&(o=!1),0===qe(t)?(o?Object.keys:$o)(t).forEach((function(r){o&&"symbol"==typeof r||e(r,t[r],t)})):t.forEach((function(o,r){return e(r,o,t)}))}function qe(t){var e=t[ko];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Je(t)?2:Qe(t)?3:0}function Ve(t,e){return 2===qe(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Ye(t,e,o){var r=qe(t);2===r?t.set(e,o):3===r?t.add(o):t[e]=o}function Xe(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function Je(t){return Ro&&t instanceof Map}function Qe(t){return Uo&&t instanceof Set}function to(t){return t.o||t.t}function eo(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Ko(t);delete e[ko];for(var o=$o(e),r=0;r<o.length;r++){var n=o[r],i=e[n];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[n]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function oo(t,e){return void 0===e&&(e=!1),no(t)||Be(t)||!He(t)||(qe(t)>1&&(t.set=t.add=t.clear=t.delete=ro),Object.freeze(t),e&&Ge(t,(function(t,e){return oo(e,!0)}),!0)),t}function ro(){ze(2)}function no(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function io(t){var e=Po[t];return e||ze(18,t),e}function ao(){return Co}function so(t,e){e&&(io("Patches"),t.u=[],t.s=[],t.v=e)}function co(t){lo(t),t.p.forEach(ho),t.p=null}function lo(t){t===Co&&(Co=t.l)}function fo(t){return Co={p:[],l:Co,h:t,m:!0,_:0}}function ho(t){var e=t[ko];0===e.i||1===e.i?e.j():e.g=!0}function uo(t,e){e._=e.p.length;var o=e.p[0],r=void 0!==t&&t!==o;return e.h.O||io("ES5").S(e,t,r),r?(o[ko].P&&(co(e),ze(4)),He(t)&&(t=po(e,t),e.l||go(e,t)),e.u&&io("Patches").M(o[ko].t,t,e.u,e.s)):t=po(e,o,[]),co(e),e.u&&e.v(e.u,e.s),t!==Lo?t:void 0}function po(t,e,o){if(no(e))return e;var r=e[ko];if(!r)return Ge(e,(function(n,i){return yo(t,r,e,n,i,o)}),!0),e;if(r.A!==t)return e;if(!r.P)return go(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var n=4===r.i||5===r.i?r.o=eo(r.k):r.o,i=n,a=!1;3===r.i&&(i=new Set(n),n.clear(),a=!0),Ge(i,(function(e,i){return yo(t,r,n,e,i,o,a)})),go(t,n,!1),o&&t.u&&io("Patches").N(r,o,t.u,t.s)}return r.o}function yo(t,e,o,r,n,i,a){if(Be(n)){var s=po(t,n,i&&e&&3!==e.i&&!Ve(e.R,r)?i.concat(r):void 0);if(Ye(o,r,s),!Be(s))return;t.m=!1}else a&&o.add(n);if(He(n)&&!no(n)){if(!t.h.D&&t._<1)return;po(t,n),e&&e.A.l||go(t,n)}}function go(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&oo(e,o)}function bo(t,e){var o=t[ko];return(o?to(o):t)[e]}function mo(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var r=Object.getOwnPropertyDescriptor(o,e);if(r)return r;o=Object.getPrototypeOf(o)}}function Oo(t){t.P||(t.P=!0,t.l&&Oo(t.l))}function vo(t){t.o||(t.o=eo(t.t))}function So(t,e,o){var r=Je(e)?io("MapSet").F(e,o):Qe(e)?io("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),r={i:o?1:0,A:e?e.A:ao(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},n=r,i=jo;o&&(n=[r],i=Fo);var a=Proxy.revocable(n,i),s=a.revoke,c=a.proxy;return r.k=c,r.j=s,c}(e,o):io("ES5").J(e,o);return(o?o.A:ao()).p.push(r),r}function wo(t){return Be(t)||ze(22,t),function t(e){if(!He(e))return e;var o,r=e[ko],n=qe(e);if(r){if(!r.P&&(r.i<4||!io("ES5").K(r)))return r.t;r.I=!0,o=No(e,n),r.I=!1}else o=No(e,n);return Ge(o,(function(e,n){r&&function(t,e){return 2===qe(t)?t.get(e):t[e]}(r.t,e)===n||Ye(o,e,t(n))})),3===n?new Set(o):o}(t)}function No(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return eo(t)}je=Ze,Fe=Te,Me=De;var xo,Co,Eo="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Ro="undefined"!=typeof Map,Uo="undefined"!=typeof Set,Io="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Lo=Eo?Symbol.for("immer-nothing"):((xo={})["immer-nothing"]=!0,xo),Wo=Eo?Symbol.for("immer-draftable"):"__$immer_draftable",ko=Eo?Symbol.for("immer-state"):"__$immer_state",Ao=""+Object.prototype.constructor,$o="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Ko=Object.getOwnPropertyDescriptors||function(t){var e={};return $o(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},Po={},jo={get:function(t,e){if(e===ko)return t;var o=to(t);if(!Ve(o,e))return function(t,e,o){var r,n=mo(e,o);return n?"value"in n?n.value:null===(r=n.get)||void 0===r?void 0:r.call(t.k):void 0}(t,o,e);var r=o[e];return t.I||!He(r)?r:r===bo(t.t,e)?(vo(t),t.o[e]=So(t.A.h,r,t)):r},has:function(t,e){return e in to(t)},ownKeys:function(t){return Reflect.ownKeys(to(t))},set:function(t,e,o){var r=mo(to(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,o),!0;if(!t.P){var n=bo(to(t),e),i=null==n?void 0:n[ko];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(Xe(o,n)&&(void 0!==o||Ve(t.t,e)))return!0;vo(t),Oo(t)}return t.o[e]===o&&(void 0!==o||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==bo(t.t,e)||e in t.t?(t.R[e]=!1,vo(t),Oo(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=to(t),r=Reflect.getOwnPropertyDescriptor(o,e);return r?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:r.enumerable,value:o[e]}:r},defineProperty:function(){ze(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ze(12)}},Fo={};Ge(jo,(function(t,e){Fo[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Fo.deleteProperty=function(t,e){return Fo.set.call(this,t,e,void 0)},Fo.set=function(t,e,o){return jo.set.call(this,t[0],e,o,t[0])};var Mo=function(){function t(t){var e=this;this.O=Io,this.D=!0,this.produce=function(t,o,r){if("function"==typeof t&&"function"!=typeof o){var n=o;o=t;var i=e;return function(t){var e=this;void 0===t&&(t=n);for(var r=arguments.length,a=Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return i.produce(t,(function(t){var r;return(r=o).call.apply(r,[e,t].concat(a))}))}}var a;if("function"!=typeof o&&ze(6),void 0!==r&&"function"!=typeof r&&ze(7),He(t)){var s=fo(e),c=So(e,t,void 0),l=!0;try{a=o(c),l=!1}finally{l?co(s):lo(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return so(s,r),uo(t,s)}),(function(t){throw co(s),t})):(so(s,r),uo(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=o(t))&&(a=t),a===Lo&&(a=void 0),e.D&&oo(a,!0),r){var f=[],h=[];io("Patches").M(t,a,f,h),r(f,h)}return a}ze(21,t)},this.produceWithPatches=function(t,o){if("function"==typeof t)return function(o){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return e.produceWithPatches(o,(function(e){return t.apply(void 0,[e].concat(n))}))};var r,n,i=e.produce(t,o,(function(t,e){r=t,n=e}));return"undefined"!=typeof Promise&&i instanceof Promise?i.then((function(t){return[t,r,n]})):[i,r,n]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){He(t)||ze(8),Be(t)&&(t=wo(t));var e=fo(this),o=So(this,t,void 0);return o[ko].C=!0,lo(e),o},e.finishDraft=function(t,e){var o=(t&&t[ko]).A;return so(o,e),uo(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Io&&ze(20),this.O=t},e.applyPatches=function(t,e){var o;for(o=e.length-1;o>=0;o--){var r=e[o];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}o>-1&&(e=e.slice(o+1));var n=io("Patches").$;return Be(t)?n(t,e):this.produce(t,(function(t){return n(t,e)}))},t}(),Do=new Mo,Zo=Do.produce;function To(t){return To="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},To(t)}function _o(t){var e=function(t,e){if("object"!==To(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,e||"default");if("object"!==To(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===To(e)?e:String(e)}function zo(t,e,o){return(e=_o(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Bo(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,r)}return o}function Ho(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?Bo(Object(o),!0).forEach((function(e){zo(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Bo(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function Go(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}Do.produceWithPatches.bind(Do),Do.setAutoFreeze.bind(Do),Do.setUseProxies.bind(Do),Do.applyPatches.bind(Do),Do.createDraft.bind(Do),Do.finishDraft.bind(Do);var qo="function"==typeof Symbol&&Symbol.observable||"@@observable",Vo=function(){return Math.random().toString(36).substring(7).split("").join(".")},Yo={INIT:"@@redux/INIT"+Vo(),REPLACE:"@@redux/REPLACE"+Vo(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Vo()}};function Xo(t,e,o){var r;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(Go(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(Go(1));return o(Xo)(t,e)}if("function"!=typeof t)throw new Error(Go(2));var n=t,i=e,a=[],s=a,c=!1;function l(){s===a&&(s=a.slice())}function f(){if(c)throw new Error(Go(3));return i}function h(t){if("function"!=typeof t)throw new Error(Go(4));if(c)throw new Error(Go(5));var e=!0;return l(),s.push(t),function(){if(e){if(c)throw new Error(Go(6));e=!1,l();var o=s.indexOf(t);s.splice(o,1),a=null}}}function u(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(Go(7));if(void 0===t.type)throw new Error(Go(8));if(c)throw new Error(Go(9));try{c=!0,i=n(i,t)}finally{c=!1}for(var e=a=s,o=0;o<e.length;o++){(0,e[o])()}return t}return u({type:Yo.INIT}),(r={dispatch:u,subscribe:h,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(Go(10));n=t,u({type:Yo.REPLACE})}})[qo]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Go(11));function o(){t.next&&t.next(f())}return o(),{unsubscribe:e(o)}}})[qo]=function(){return this},t},r}function Jo(t){for(var e=Object.keys(t),o={},r=0;r<e.length;r++){var n=e[r];"function"==typeof t[n]&&(o[n]=t[n])}var i,a=Object.keys(o);try{!function(t){Object.keys(t).forEach((function(e){var o=t[e];if(void 0===o(void 0,{type:Yo.INIT}))throw new Error(Go(12));if(void 0===o(void 0,{type:Yo.PROBE_UNKNOWN_ACTION()}))throw new Error(Go(13))}))}(o)}catch(t){i=t}return function(t,e){if(void 0===t&&(t={}),i)throw i;for(var r=!1,n={},s=0;s<a.length;s++){var c=a[s],l=o[c],f=t[c],h=l(f,e);if(void 0===h)throw e&&e.type,new Error(Go(14));n[c]=h,r=r||h!==f}return(r=r||a.length!==Object.keys(t).length)?n:t}}function Qo(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function tr(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(t){return function(){var o=t.apply(void 0,arguments),r=function(){throw new Error(Go(15))},n={getState:o.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=e.map((function(t){return t(n)}));return r=Qo.apply(void 0,i)(o.dispatch),Ho(Ho({},o),{},{dispatch:r})}}}function er(t){return function(e){var o=e.dispatch,r=e.getState;return function(e){return function(n){return"function"==typeof n?n(o,r,t):e(n)}}}}var or=er();or.withExtraArgument=er;var rr,nr=or,ir=(rr=function(t,e){return rr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},rr(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}rr(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),ar=function(t,e){var o,r,n,i,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,r&&(n=2&i[0]?r.return:i[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,i[1])).done)return n;switch(r=0,n&&(i=[2&i[0],n.value]),i[0]){case 0:case 1:n=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(n=a.trys,(n=n.length>0&&n[n.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]<n[3])){a.label=i[1];break}if(6===i[0]&&a.label<n[1]){a.label=n[1],n=i;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(i);break}n[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{o=n=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},sr=function(t,e){for(var o=0,r=e.length,n=t.length;o<r;o++,n++)t[n]=e[o];return t},cr=Object.defineProperty,lr=Object.defineProperties,fr=Object.getOwnPropertyDescriptors,hr=Object.getOwnPropertySymbols,ur=Object.prototype.hasOwnProperty,pr=Object.prototype.propertyIsEnumerable,dr=function(t,e,o){return e in t?cr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},yr=function(t,e){for(var o in e||(e={}))ur.call(e,o)&&dr(t,o,e[o]);if(hr)for(var r=0,n=hr(e);r<n.length;r++){o=n[r];pr.call(e,o)&&dr(t,o,e[o])}return t},gr=function(t,e){return lr(t,fr(e))},br="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Qo:Qo.apply(null,arguments)};var mr=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var n=t.apply(this,o)||this;return Object.setPrototypeOf(n,e.prototype),n}return ir(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,sr([void 0],t[0].concat(this)))):new(e.bind.apply(e,sr([void 0],t.concat(this))))},e}(Array),Or=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var n=t.apply(this,o)||this;return Object.setPrototypeOf(n,e.prototype),n}return ir(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,sr([void 0],t[0].concat(this)))):new(e.bind.apply(e,sr([void 0],t.concat(this))))},e}(Array);function vr(t){return He(t)?Zo(t,(function(){})):t}function Sr(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,o=void 0===e||e;t.immutableCheck,t.serializableCheck;var r=new mr;o&&(!function(t){return"boolean"==typeof t}(o)?r.push(nr.withExtraArgument(o.extraArgument)):r.push(nr));return r}(t)}}function wr(t){var e,o=Sr(),r=t||{},n=r.reducer,i=void 0===n?void 0:n,a=r.middleware,s=void 0===a?o():a,c=r.devTools,l=void 0===c||c,f=r.preloadedState,h=void 0===f?void 0:f,u=r.enhancers,p=void 0===u?void 0:u;if("function"==typeof i)e=i;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var o=e;null!==Object.getPrototypeOf(o);)o=Object.getPrototypeOf(o);return e===o}(i))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=Jo(i)}var d=s;"function"==typeof d&&(d=d(o));var y=tr.apply(void 0,d),g=Qo;l&&(g=br(yr({trace:!1},"object"==typeof l&&l)));var b=new Or(y),m=b;return Array.isArray(p)?m=sr([y],p):"function"==typeof p&&(m=p(b)),Xo(e,h,g.apply(void 0,m))}function Nr(t,e){function o(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];if(e){var n=e.apply(void 0,o);if(!n)throw new Error("prepareAction did not return an object");return yr(yr({type:t,payload:n.payload},"meta"in n&&{meta:n.meta}),"error"in n&&{error:n.error})}return{type:t,payload:o[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(e){return e.type===t},o}function xr(t){var e,o={},r=[],n={addCase:function(t,e){var r="string"==typeof t?t:t.type;if(r in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[r]=e,n},addMatcher:function(t,e){return r.push({matcher:t,reducer:e}),n},addDefaultCase:function(t){return e=t,n}};return t(n),[o,r,e]}function Cr(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var o,r="function"==typeof t.initialState?t.initialState:vr(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},s={},c={};function l(){var e="function"==typeof t.extraReducers?xr(t.extraReducers):[t.extraReducers],o=e[0],n=void 0===o?{}:o,i=e[1],a=void 0===i?[]:i,c=e[2],l=void 0===c?void 0:c,f=yr(yr({},n),s);return function(t,e,o,r){void 0===o&&(o=[]);var n,i="function"==typeof e?xr(e):[e,o,r],a=i[0],s=i[1],c=i[2];if(function(t){return"function"==typeof t}(t))n=function(){return vr(t())};else{var l=vr(t);n=function(){return l}}function f(t,e){void 0===t&&(t=n());var o=sr([a[e.type]],s.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===o.filter((function(t){return!!t})).length&&(o=[c]),o.reduce((function(t,o){if(o){var r;if(Be(t))return void 0===(r=o(t,e))?t:r;if(He(t))return Zo(t,(function(t){return o(t,e)}));if(void 0===(r=o(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return t}),t)}return f.getInitialState=n,f}(r,(function(t){for(var e in f)t.addCase(e,f[e]);for(var o=0,r=a;o<r.length;o++){var n=r[o];t.addMatcher(n.matcher,n.reducer)}l&&t.addDefaultCase(l)}))}return i.forEach((function(t){var o,r,i=n[t],l=e+"/"+t;"reducer"in i?(o=i.reducer,r=i.prepare):o=i,a[t]=o,s[l]=o,c[t]=r?Nr(l,r):Nr(l)})),{name:e,reducer:function(t,e){return o||(o=l()),o(t,e)},actions:c,caseReducers:a,getInitialState:function(){return o||(o=l()),o.getInitialState()}}}var Er=["name","message","stack","code"],Rr=function(t,e){this.payload=t,this.meta=e},Ur=function(t,e){this.payload=t,this.meta=e},Ir=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,r=Er;o<r.length;o++){var n=r[o];"string"==typeof t[n]&&(e[n]=t[n])}return e}return{message:String(t)}};function Lr(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,o){var r=Nr(t+"/fulfilled",(function(t,e,o,r){return{payload:t,meta:gr(yr({},r||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),n=Nr(t+"/pending",(function(t,e,o){return{payload:void 0,meta:gr(yr({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),i=Nr(t+"/rejected",(function(t,e,r,n,i){return{payload:n,error:(o&&o.serializeError||Ir)(t||"Rejected"),meta:gr(yr({},i||{}),{arg:r,requestId:e,rejectedWithValue:!!n,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),a="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(s,c,l){var f,h=(null==o?void 0:o.idGenerator)?o.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",o=t;o--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),u=new a;function p(t){f=t,u.abort()}var d=function(){return a=this,d=null,y=function(){var a,d,y,g,b,m;return ar(this,(function(O){switch(O.label){case 0:return O.trys.push([0,4,,5]),g=null==(a=null==o?void 0:o.condition)?void 0:a.call(o,t,{getState:c,extra:l}),null===(v=g)||"object"!=typeof v||"function"!=typeof v.then?[3,2]:[4,g];case 1:g=O.sent(),O.label=2;case 2:if(!1===g||u.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return u.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:f||"Aborted"})}))})),s(n(h,t,null==(d=null==o?void 0:o.getPendingMeta)?void 0:d.call(o,{requestId:h,arg:t},{getState:c,extra:l}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:s,getState:c,extra:l,requestId:h,signal:u.signal,abort:p,rejectWithValue:function(t,e){return new Rr(t,e)},fulfillWithValue:function(t,e){return new Ur(t,e)}})).then((function(e){if(e instanceof Rr)throw e;return e instanceof Ur?r(e.payload,h,t,e.meta):r(e,h,t)}))])];case 3:return y=O.sent(),[3,5];case 4:return m=O.sent(),y=m instanceof Rr?i(null,h,t,m.payload,m.meta):i(m,h,t),[3,5];case 5:return o&&!o.dispatchConditionRejection&&i.match(y)&&y.meta.condition||s(y),[2,y]}var v}))},new Promise((function(t,e){var o=function(t){try{n(y.next(t))}catch(t){e(t)}},r=function(t){try{n(y.throw(t))}catch(t){e(t)}},n=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(o,r)};n((y=y.apply(a,d)).next())}));var a,d,y}();return Object.assign(d,{abort:p,requestId:h,arg:t,unwrap:function(){return d.then(Lr)}})}}),{pending:n,rejected:i,fulfilled:r,typePrefix:t})}t.withTypes=function(){return t}}();var Wr="listenerMiddleware";Nr(Wr+"/add"),Nr(Wr+"/removeAll"),Nr(Wr+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var o=n[t];return o?o.enumerable=e:n[t]=o={configurable:!0,enumerable:e,get:function(){var e=this[ko];return jo.get(e,t)},set:function(e){var o=this[ko];jo.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var n=t[e][ko];if(!n.P)switch(n.i){case 5:r(n)&&Oo(n);break;case 4:o(n)&&Oo(n)}}}function o(t){for(var e=t.t,o=t.k,r=$o(o),n=r.length-1;n>=0;n--){var i=r[n];if(i!==ko){var a=e[i];if(void 0===a&&!Ve(e,i))return!0;var s=o[i],c=s&&s[ko];if(c?c.t!==a:!Xe(s,a))return!0}}var l=!!e[ko];return r.length!==$o(e).length+(l?0:1)}function r(t){var e=t.k;if(e.length!==t.t.length)return!0;var o=Object.getOwnPropertyDescriptor(e,e.length-1);if(o&&!o.get)return!0;for(var r=0;r<e.length;r++)if(!e.hasOwnProperty(r))return!0;return!1}var n={};!function(t,e){Po[t]||(Po[t]=e)}("ES5",{J:function(e,o){var r=Array.isArray(e),n=function(e,o){if(e){for(var r=Array(o.length),n=0;n<o.length;n++)Object.defineProperty(r,""+n,t(n,!0));return r}var i=Ko(o);delete i[ko];for(var a=$o(i),s=0;s<a.length;s++){var c=a[s];i[c]=t(c,e||!!i[c].enumerable)}return Object.create(Object.getPrototypeOf(o),i)}(r,e),i={i:r?5:4,A:o?o.A:ao(),P:!1,I:!1,R:{},l:o,t:e,k:n,o:null,g:!1,C:!1};return Object.defineProperty(n,ko,{value:i,writable:!0}),n},S:function(t,o,n){n?Be(o)&&o[ko].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[ko];if(o){var n=o.t,i=o.k,a=o.R,s=o.i;if(4===s)Ge(i,(function(e){e!==ko&&(void 0!==n[e]||Ve(n,e)?a[e]||t(i[e]):(a[e]=!0,Oo(o)))})),Ge(n,(function(t){void 0!==i[t]||Ve(i,t)||(a[t]=!1,Oo(o))}));else if(5===s){if(r(o)&&(Oo(o),a.length=!0),i.length<n.length)for(var c=i.length;c<n.length;c++)a[c]=!1;else for(var l=n.length;l<i.length;l++)a[l]=!0;for(var f=Math.min(i.length,n.length),h=0;h<f;h++)i.hasOwnProperty(h)||(a[h]=!0),void 0===a[h]&&t(i[h])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):r(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class kr{static get(t){var e;const o="string"==typeof t?t:t.name,r="string"==typeof t?void 0:t,n=window.ftReduxStores[o];if(Pe(n))return n;if(null==r)return;const i=Cr({...r,reducers:null!==(e=r.reducers)&&void 0!==e?e:{}}),a=wr({reducer:(t,e)=>{var o;switch(e.type){case"CLEAR_FT_REDUX_STORE":return i.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(o=e.overwrites)&&void 0!==o?o:{}};default:return i.reducer(t,e)}}});return window.ftReduxStores[r.name]=new kr(i,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,o)=>{const r=e,n=t[r];return n?(...t)=>{const e=n(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[r]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}const Ar=t=>{const e=null!=t?t:{};return(t,o)=>{var r;const n={hasChanged:(t,e)=>!W(t,e),attribute:!1,...e};R(n)(t,o);const i=t;i.reduxProperties=i.reduxProperties||new Map,i.reduxProperties.set(o,{selector:null!==(r=e.selector)&&void 0!==r?r:t=>t[o],store:e.store})}};var $r,Kr;navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(Kr=null===($r=window.safari)||void 0===$r?void 0:$r.pushNotification)||void 0===Kr||Kr.toString());const Pr={linkColor:ve.external(xe.colorPrimaryVariant,"Design system"),linkHoverColor:ve.external(xe.colorPrimary,"Design system")},jr=vt`
105
+ `;class Ke{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,r;t=this.resolvePluralKey(t,e);let n=null!==(r=null!==(o=this.labels[t])&&void 0!==o?o:this.defaultLabels[t])&&void 0!==r?r:"";return e.forEach(((t,e)=>n=n.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,o)=>this.formatValue(t,o))))),n}resolvePluralKey(t,e){for(let o of e)if("number"==typeof o){const e=`${String(t)}[\\=${o}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const o=o=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(o):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(o):t.toLocaleString(o);try{return o(document.documentElement.lang)}catch(t){return o()}}}const Pe=t=>{const e=null!=t?t:{};return(t,o)=>{var r;const n={hasChanged:(t,e)=>!W(t,e),attribute:!1,...e};R(n)(t,o);const i=t;i.reduxProperties=i.reduxProperties||new Map,i.reduxProperties.set(o,{selector:null!==(r=e.selector)&&void 0!==r?r:t=>t[o],store:e.store})}};class je{constructor(){this.stack=[]}add(t,e=!1){e&&(this.stack=this.stack.filter((e=>e.type!==t.type))),this.stack.push(t)}consume(t){const e=this.stack.find((e=>e.type===t));return e&&(this.stack=this.stack.filter((t=>t!==e))),e}}function Fe(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Me,De,Ze;const Te=Symbol("internalReduxEventsUnsubscribers"),_e=Symbol("internalStoresUnsubscribers"),ze=Symbol("internalStores");class Be extends Ae{constructor(){super(...arguments),this[Me]=new Map,this[De]=new Map,this[Ze]=[]}update(t){var e;super.update(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[ze].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ze].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[ze].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:Fe(t)?t.name:void 0)&&void 0!==o?o:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[ze].delete(e)}setupStore(t,e){this[ze].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[ze].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const o=this.constructor.getPropertyOptions(e);if(!(null==o?void 0:o.attribute)||!this.hasAttribute("string"==typeof(null==o?void 0:o.attribute)?o.attribute:e)){const o=this.getStore(t.store);o&&(t.store?this[_e].has(t.store):this[_e].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[_e].set(t,e.subscribe((()=>this.updateFromStores()))),Fe(e)&&e.eventBus&&(null===(o=this.reduxEventListeners)||void 0===o||o.forEach(((t,o)=>{if("function"==typeof this[o]&&(!t.store||e.name===t.store)){const r=t=>this[o](t);e.eventBus.addEventListener(t.eventName,r),this[Te].push((()=>e.eventBus.removeEventListener(t.eventName,r)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[_e].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Te].forEach((t=>t())),this[Te]=[]}unsubscribeFromStore(t){this[_e].has(t)&&this[_e].get(t)(),this[_e].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function He(t){for(var e=arguments.length,o=Array(e>1?e-1:0),r=1;r<e;r++)o[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ge(t){return!!t&&!!t[$o]}function qe(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var o=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return o===Object||"function"==typeof o&&Function.toString.call(o)===Ko}(t)||Array.isArray(t)||!!t[Ao]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Ao])||to(t)||eo(t))}function Ve(t,e,o){void 0===o&&(o=!1),0===Ye(t)?(o?Object.keys:Po)(t).forEach((function(r){o&&"symbol"==typeof r||e(r,t[r],t)})):t.forEach((function(o,r){return e(r,o,t)}))}function Ye(t){var e=t[$o];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:to(t)?2:eo(t)?3:0}function Xe(t,e){return 2===Ye(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Je(t,e,o){var r=Ye(t);2===r?t.set(e,o):3===r?t.add(o):t[e]=o}function Qe(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function to(t){return Io&&t instanceof Map}function eo(t){return Lo&&t instanceof Set}function oo(t){return t.o||t.t}function ro(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=jo(t);delete e[$o];for(var o=Po(e),r=0;r<o.length;r++){var n=o[r],i=e[n];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[n]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function no(t,e){return void 0===e&&(e=!1),ao(t)||Ge(t)||!qe(t)||(Ye(t)>1&&(t.set=t.add=t.clear=t.delete=io),Object.freeze(t),e&&Ve(t,(function(t,e){return no(e,!0)}),!0)),t}function io(){He(2)}function ao(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function so(t){var e=Fo[t];return e||He(18,t),e}function co(){return Ro}function lo(t,e){e&&(so("Patches"),t.u=[],t.s=[],t.v=e)}function fo(t){ho(t),t.p.forEach(po),t.p=null}function ho(t){t===Ro&&(Ro=t.l)}function uo(t){return Ro={p:[],l:Ro,h:t,m:!0,_:0}}function po(t){var e=t[$o];0===e.i||1===e.i?e.j():e.g=!0}function yo(t,e){e._=e.p.length;var o=e.p[0],r=void 0!==t&&t!==o;return e.h.O||so("ES5").S(e,t,r),r?(o[$o].P&&(fo(e),He(4)),qe(t)&&(t=go(e,t),e.l||mo(e,t)),e.u&&so("Patches").M(o[$o].t,t,e.u,e.s)):t=go(e,o,[]),fo(e),e.u&&e.v(e.u,e.s),t!==ko?t:void 0}function go(t,e,o){if(ao(e))return e;var r=e[$o];if(!r)return Ve(e,(function(n,i){return bo(t,r,e,n,i,o)}),!0),e;if(r.A!==t)return e;if(!r.P)return mo(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var n=4===r.i||5===r.i?r.o=ro(r.k):r.o,i=n,a=!1;3===r.i&&(i=new Set(n),n.clear(),a=!0),Ve(i,(function(e,i){return bo(t,r,n,e,i,o,a)})),mo(t,n,!1),o&&t.u&&so("Patches").N(r,o,t.u,t.s)}return r.o}function bo(t,e,o,r,n,i,a){if(Ge(n)){var s=go(t,n,i&&e&&3!==e.i&&!Xe(e.R,r)?i.concat(r):void 0);if(Je(o,r,s),!Ge(s))return;t.m=!1}else a&&o.add(n);if(qe(n)&&!ao(n)){if(!t.h.D&&t._<1)return;go(t,n),e&&e.A.l||mo(t,n)}}function mo(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&no(e,o)}function Oo(t,e){var o=t[$o];return(o?oo(o):t)[e]}function vo(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var r=Object.getOwnPropertyDescriptor(o,e);if(r)return r;o=Object.getPrototypeOf(o)}}function So(t){t.P||(t.P=!0,t.l&&So(t.l))}function wo(t){t.o||(t.o=ro(t.t))}function No(t,e,o){var r=to(e)?so("MapSet").F(e,o):eo(e)?so("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),r={i:o?1:0,A:e?e.A:co(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},n=r,i=Mo;o&&(n=[r],i=Do);var a=Proxy.revocable(n,i),s=a.revoke,c=a.proxy;return r.k=c,r.j=s,c}(e,o):so("ES5").J(e,o);return(o?o.A:co()).p.push(r),r}function xo(t){return Ge(t)||He(22,t),function t(e){if(!qe(e))return e;var o,r=e[$o],n=Ye(e);if(r){if(!r.P&&(r.i<4||!so("ES5").K(r)))return r.t;r.I=!0,o=Co(e,n),r.I=!1}else o=Co(e,n);return Ve(o,(function(e,n){r&&function(t,e){return 2===Ye(t)?t.get(e):t[e]}(r.t,e)===n||Je(o,e,t(n))})),3===n?new Set(o):o}(t)}function Co(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return ro(t)}Me=_e,De=ze,Ze=Te;var Eo,Ro,Uo="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Io="undefined"!=typeof Map,Lo="undefined"!=typeof Set,Wo="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,ko=Uo?Symbol.for("immer-nothing"):((Eo={})["immer-nothing"]=!0,Eo),Ao=Uo?Symbol.for("immer-draftable"):"__$immer_draftable",$o=Uo?Symbol.for("immer-state"):"__$immer_state",Ko=""+Object.prototype.constructor,Po="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,jo=Object.getOwnPropertyDescriptors||function(t){var e={};return Po(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},Fo={},Mo={get:function(t,e){if(e===$o)return t;var o=oo(t);if(!Xe(o,e))return function(t,e,o){var r,n=vo(e,o);return n?"value"in n?n.value:null===(r=n.get)||void 0===r?void 0:r.call(t.k):void 0}(t,o,e);var r=o[e];return t.I||!qe(r)?r:r===Oo(t.t,e)?(wo(t),t.o[e]=No(t.A.h,r,t)):r},has:function(t,e){return e in oo(t)},ownKeys:function(t){return Reflect.ownKeys(oo(t))},set:function(t,e,o){var r=vo(oo(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,o),!0;if(!t.P){var n=Oo(oo(t),e),i=null==n?void 0:n[$o];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(Qe(o,n)&&(void 0!==o||Xe(t.t,e)))return!0;wo(t),So(t)}return t.o[e]===o&&(void 0!==o||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==Oo(t.t,e)||e in t.t?(t.R[e]=!1,wo(t),So(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=oo(t),r=Reflect.getOwnPropertyDescriptor(o,e);return r?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:r.enumerable,value:o[e]}:r},defineProperty:function(){He(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){He(12)}},Do={};Ve(Mo,(function(t,e){Do[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Do.deleteProperty=function(t,e){return Do.set.call(this,t,e,void 0)},Do.set=function(t,e,o){return Mo.set.call(this,t[0],e,o,t[0])};var Zo=function(){function t(t){var e=this;this.O=Wo,this.D=!0,this.produce=function(t,o,r){if("function"==typeof t&&"function"!=typeof o){var n=o;o=t;var i=e;return function(t){var e=this;void 0===t&&(t=n);for(var r=arguments.length,a=Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return i.produce(t,(function(t){var r;return(r=o).call.apply(r,[e,t].concat(a))}))}}var a;if("function"!=typeof o&&He(6),void 0!==r&&"function"!=typeof r&&He(7),qe(t)){var s=uo(e),c=No(e,t,void 0),l=!0;try{a=o(c),l=!1}finally{l?fo(s):ho(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return lo(s,r),yo(t,s)}),(function(t){throw fo(s),t})):(lo(s,r),yo(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=o(t))&&(a=t),a===ko&&(a=void 0),e.D&&no(a,!0),r){var f=[],h=[];so("Patches").M(t,a,f,h),r(f,h)}return a}He(21,t)},this.produceWithPatches=function(t,o){if("function"==typeof t)return function(o){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return e.produceWithPatches(o,(function(e){return t.apply(void 0,[e].concat(n))}))};var r,n,i=e.produce(t,o,(function(t,e){r=t,n=e}));return"undefined"!=typeof Promise&&i instanceof Promise?i.then((function(t){return[t,r,n]})):[i,r,n]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){qe(t)||He(8),Ge(t)&&(t=xo(t));var e=uo(this),o=No(this,t,void 0);return o[$o].C=!0,ho(e),o},e.finishDraft=function(t,e){var o=(t&&t[$o]).A;return lo(o,e),yo(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Wo&&He(20),this.O=t},e.applyPatches=function(t,e){var o;for(o=e.length-1;o>=0;o--){var r=e[o];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}o>-1&&(e=e.slice(o+1));var n=so("Patches").$;return Ge(t)?n(t,e):this.produce(t,(function(t){return n(t,e)}))},t}(),To=new Zo,_o=To.produce;function zo(t){return zo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zo(t)}function Bo(t){var e=function(t,e){if("object"!==zo(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,e||"default");if("object"!==zo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===zo(e)?e:String(e)}function Ho(t,e,o){return(e=Bo(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Go(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,r)}return o}function qo(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?Go(Object(o),!0).forEach((function(e){Ho(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Go(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function Vo(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}To.produceWithPatches.bind(To),To.setAutoFreeze.bind(To),To.setUseProxies.bind(To),To.applyPatches.bind(To),To.createDraft.bind(To),To.finishDraft.bind(To);var Yo="function"==typeof Symbol&&Symbol.observable||"@@observable",Xo=function(){return Math.random().toString(36).substring(7).split("").join(".")},Jo={INIT:"@@redux/INIT"+Xo(),REPLACE:"@@redux/REPLACE"+Xo(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Xo()}};function Qo(t,e,o){var r;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(Vo(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(Vo(1));return o(Qo)(t,e)}if("function"!=typeof t)throw new Error(Vo(2));var n=t,i=e,a=[],s=a,c=!1;function l(){s===a&&(s=a.slice())}function f(){if(c)throw new Error(Vo(3));return i}function h(t){if("function"!=typeof t)throw new Error(Vo(4));if(c)throw new Error(Vo(5));var e=!0;return l(),s.push(t),function(){if(e){if(c)throw new Error(Vo(6));e=!1,l();var o=s.indexOf(t);s.splice(o,1),a=null}}}function u(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(Vo(7));if(void 0===t.type)throw new Error(Vo(8));if(c)throw new Error(Vo(9));try{c=!0,i=n(i,t)}finally{c=!1}for(var e=a=s,o=0;o<e.length;o++){(0,e[o])()}return t}return u({type:Jo.INIT}),(r={dispatch:u,subscribe:h,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(Vo(10));n=t,u({type:Jo.REPLACE})}})[Yo]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Vo(11));function o(){t.next&&t.next(f())}return o(),{unsubscribe:e(o)}}})[Yo]=function(){return this},t},r}function tr(t){for(var e=Object.keys(t),o={},r=0;r<e.length;r++){var n=e[r];"function"==typeof t[n]&&(o[n]=t[n])}var i,a=Object.keys(o);try{!function(t){Object.keys(t).forEach((function(e){var o=t[e];if(void 0===o(void 0,{type:Jo.INIT}))throw new Error(Vo(12));if(void 0===o(void 0,{type:Jo.PROBE_UNKNOWN_ACTION()}))throw new Error(Vo(13))}))}(o)}catch(t){i=t}return function(t,e){if(void 0===t&&(t={}),i)throw i;for(var r=!1,n={},s=0;s<a.length;s++){var c=a[s],l=o[c],f=t[c],h=l(f,e);if(void 0===h)throw e&&e.type,new Error(Vo(14));n[c]=h,r=r||h!==f}return(r=r||a.length!==Object.keys(t).length)?n:t}}function er(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function or(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(t){return function(){var o=t.apply(void 0,arguments),r=function(){throw new Error(Vo(15))},n={getState:o.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=e.map((function(t){return t(n)}));return r=er.apply(void 0,i)(o.dispatch),qo(qo({},o),{},{dispatch:r})}}}function rr(t){return function(e){var o=e.dispatch,r=e.getState;return function(e){return function(n){return"function"==typeof n?n(o,r,t):e(n)}}}}var nr=rr();nr.withExtraArgument=rr;var ir,ar=nr,sr=(ir=function(t,e){return ir=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},ir(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}ir(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),cr=function(t,e){var o,r,n,i,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,r&&(n=2&i[0]?r.return:i[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,i[1])).done)return n;switch(r=0,n&&(i=[2&i[0],n.value]),i[0]){case 0:case 1:n=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(n=a.trys,(n=n.length>0&&n[n.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]<n[3])){a.label=i[1];break}if(6===i[0]&&a.label<n[1]){a.label=n[1],n=i;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(i);break}n[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{o=n=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},lr=function(t,e){for(var o=0,r=e.length,n=t.length;o<r;o++,n++)t[n]=e[o];return t},fr=Object.defineProperty,hr=Object.defineProperties,ur=Object.getOwnPropertyDescriptors,pr=Object.getOwnPropertySymbols,dr=Object.prototype.hasOwnProperty,yr=Object.prototype.propertyIsEnumerable,gr=function(t,e,o){return e in t?fr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},br=function(t,e){for(var o in e||(e={}))dr.call(e,o)&&gr(t,o,e[o]);if(pr)for(var r=0,n=pr(e);r<n.length;r++){o=n[r];yr.call(e,o)&&gr(t,o,e[o])}return t},mr=function(t,e){return hr(t,ur(e))},Or="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?er:er.apply(null,arguments)};var vr=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var n=t.apply(this,o)||this;return Object.setPrototypeOf(n,e.prototype),n}return sr(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,lr([void 0],t[0].concat(this)))):new(e.bind.apply(e,lr([void 0],t.concat(this))))},e}(Array),Sr=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var n=t.apply(this,o)||this;return Object.setPrototypeOf(n,e.prototype),n}return sr(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,lr([void 0],t[0].concat(this)))):new(e.bind.apply(e,lr([void 0],t.concat(this))))},e}(Array);function wr(t){return qe(t)?_o(t,(function(){})):t}function Nr(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,o=void 0===e||e;t.immutableCheck,t.serializableCheck;var r=new vr;o&&(!function(t){return"boolean"==typeof t}(o)?r.push(ar.withExtraArgument(o.extraArgument)):r.push(ar));return r}(t)}}function xr(t){var e,o=Nr(),r=t||{},n=r.reducer,i=void 0===n?void 0:n,a=r.middleware,s=void 0===a?o():a,c=r.devTools,l=void 0===c||c,f=r.preloadedState,h=void 0===f?void 0:f,u=r.enhancers,p=void 0===u?void 0:u;if("function"==typeof i)e=i;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var o=e;null!==Object.getPrototypeOf(o);)o=Object.getPrototypeOf(o);return e===o}(i))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=tr(i)}var d=s;"function"==typeof d&&(d=d(o));var y=or.apply(void 0,d),g=er;l&&(g=Or(br({trace:!1},"object"==typeof l&&l)));var b=new Sr(y),m=b;return Array.isArray(p)?m=lr([y],p):"function"==typeof p&&(m=p(b)),Qo(e,h,g.apply(void 0,m))}function Cr(t,e){function o(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];if(e){var n=e.apply(void 0,o);if(!n)throw new Error("prepareAction did not return an object");return br(br({type:t,payload:n.payload},"meta"in n&&{meta:n.meta}),"error"in n&&{error:n.error})}return{type:t,payload:o[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(e){return e.type===t},o}function Er(t){var e,o={},r=[],n={addCase:function(t,e){var r="string"==typeof t?t:t.type;if(r in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[r]=e,n},addMatcher:function(t,e){return r.push({matcher:t,reducer:e}),n},addDefaultCase:function(t){return e=t,n}};return t(n),[o,r,e]}function Rr(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var o,r="function"==typeof t.initialState?t.initialState:wr(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},s={},c={};function l(){var e="function"==typeof t.extraReducers?Er(t.extraReducers):[t.extraReducers],o=e[0],n=void 0===o?{}:o,i=e[1],a=void 0===i?[]:i,c=e[2],l=void 0===c?void 0:c,f=br(br({},n),s);return function(t,e,o,r){void 0===o&&(o=[]);var n,i="function"==typeof e?Er(e):[e,o,r],a=i[0],s=i[1],c=i[2];if(function(t){return"function"==typeof t}(t))n=function(){return wr(t())};else{var l=wr(t);n=function(){return l}}function f(t,e){void 0===t&&(t=n());var o=lr([a[e.type]],s.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===o.filter((function(t){return!!t})).length&&(o=[c]),o.reduce((function(t,o){if(o){var r;if(Ge(t))return void 0===(r=o(t,e))?t:r;if(qe(t))return _o(t,(function(t){return o(t,e)}));if(void 0===(r=o(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return t}),t)}return f.getInitialState=n,f}(r,(function(t){for(var e in f)t.addCase(e,f[e]);for(var o=0,r=a;o<r.length;o++){var n=r[o];t.addMatcher(n.matcher,n.reducer)}l&&t.addDefaultCase(l)}))}return i.forEach((function(t){var o,r,i=n[t],l=e+"/"+t;"reducer"in i?(o=i.reducer,r=i.prepare):o=i,a[t]=o,s[l]=o,c[t]=r?Cr(l,r):Cr(l)})),{name:e,reducer:function(t,e){return o||(o=l()),o(t,e)},actions:c,caseReducers:a,getInitialState:function(){return o||(o=l()),o.getInitialState()}}}var Ur=["name","message","stack","code"],Ir=function(t,e){this.payload=t,this.meta=e},Lr=function(t,e){this.payload=t,this.meta=e},Wr=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,r=Ur;o<r.length;o++){var n=r[o];"string"==typeof t[n]&&(e[n]=t[n])}return e}return{message:String(t)}};function kr(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,o){var r=Cr(t+"/fulfilled",(function(t,e,o,r){return{payload:t,meta:mr(br({},r||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),n=Cr(t+"/pending",(function(t,e,o){return{payload:void 0,meta:mr(br({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),i=Cr(t+"/rejected",(function(t,e,r,n,i){return{payload:n,error:(o&&o.serializeError||Wr)(t||"Rejected"),meta:mr(br({},i||{}),{arg:r,requestId:e,rejectedWithValue:!!n,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),a="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(s,c,l){var f,h=(null==o?void 0:o.idGenerator)?o.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",o=t;o--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),u=new a;function p(t){f=t,u.abort()}var d=function(){return a=this,d=null,y=function(){var a,d,y,g,b,m;return cr(this,(function(O){switch(O.label){case 0:return O.trys.push([0,4,,5]),g=null==(a=null==o?void 0:o.condition)?void 0:a.call(o,t,{getState:c,extra:l}),null===(v=g)||"object"!=typeof v||"function"!=typeof v.then?[3,2]:[4,g];case 1:g=O.sent(),O.label=2;case 2:if(!1===g||u.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return u.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:f||"Aborted"})}))})),s(n(h,t,null==(d=null==o?void 0:o.getPendingMeta)?void 0:d.call(o,{requestId:h,arg:t},{getState:c,extra:l}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:s,getState:c,extra:l,requestId:h,signal:u.signal,abort:p,rejectWithValue:function(t,e){return new Ir(t,e)},fulfillWithValue:function(t,e){return new Lr(t,e)}})).then((function(e){if(e instanceof Ir)throw e;return e instanceof Lr?r(e.payload,h,t,e.meta):r(e,h,t)}))])];case 3:return y=O.sent(),[3,5];case 4:return m=O.sent(),y=m instanceof Ir?i(null,h,t,m.payload,m.meta):i(m,h,t),[3,5];case 5:return o&&!o.dispatchConditionRejection&&i.match(y)&&y.meta.condition||s(y),[2,y]}var v}))},new Promise((function(t,e){var o=function(t){try{n(y.next(t))}catch(t){e(t)}},r=function(t){try{n(y.throw(t))}catch(t){e(t)}},n=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(o,r)};n((y=y.apply(a,d)).next())}));var a,d,y}();return Object.assign(d,{abort:p,requestId:h,arg:t,unwrap:function(){return d.then(kr)}})}}),{pending:n,rejected:i,fulfilled:r,typePrefix:t})}t.withTypes=function(){return t}}();var Ar,$r,Kr="listenerMiddleware";Cr(Kr+"/add"),Cr(Kr+"/removeAll"),Cr(Kr+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var o=n[t];return o?o.enumerable=e:n[t]=o={configurable:!0,enumerable:e,get:function(){var e=this[$o];return Mo.get(e,t)},set:function(e){var o=this[$o];Mo.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var n=t[e][$o];if(!n.P)switch(n.i){case 5:r(n)&&So(n);break;case 4:o(n)&&So(n)}}}function o(t){for(var e=t.t,o=t.k,r=Po(o),n=r.length-1;n>=0;n--){var i=r[n];if(i!==$o){var a=e[i];if(void 0===a&&!Xe(e,i))return!0;var s=o[i],c=s&&s[$o];if(c?c.t!==a:!Qe(s,a))return!0}}var l=!!e[$o];return r.length!==Po(e).length+(l?0:1)}function r(t){var e=t.k;if(e.length!==t.t.length)return!0;var o=Object.getOwnPropertyDescriptor(e,e.length-1);if(o&&!o.get)return!0;for(var r=0;r<e.length;r++)if(!e.hasOwnProperty(r))return!0;return!1}var n={};!function(t,e){Fo[t]||(Fo[t]=e)}("ES5",{J:function(e,o){var r=Array.isArray(e),n=function(e,o){if(e){for(var r=Array(o.length),n=0;n<o.length;n++)Object.defineProperty(r,""+n,t(n,!0));return r}var i=jo(o);delete i[$o];for(var a=Po(i),s=0;s<a.length;s++){var c=a[s];i[c]=t(c,e||!!i[c].enumerable)}return Object.create(Object.getPrototypeOf(o),i)}(r,e),i={i:r?5:4,A:o?o.A:co(),P:!1,I:!1,R:{},l:o,t:e,k:n,o:null,g:!1,C:!1};return Object.defineProperty(n,$o,{value:i,writable:!0}),n},S:function(t,o,n){n?Ge(o)&&o[$o].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[$o];if(o){var n=o.t,i=o.k,a=o.R,s=o.i;if(4===s)Ve(i,(function(e){e!==$o&&(void 0!==n[e]||Xe(n,e)?a[e]||t(i[e]):(a[e]=!0,So(o)))})),Ve(n,(function(t){void 0!==i[t]||Xe(i,t)||(a[t]=!1,So(o))}));else if(5===s){if(r(o)&&(So(o),a.length=!0),i.length<n.length)for(var c=i.length;c<n.length;c++)a[c]=!1;else for(var l=n.length;l<i.length;l++)a[l]=!0;for(var f=Math.min(i.length,n.length),h=0;h<f;h++)i.hasOwnProperty(h)||(a[h]=!0),void 0===a[h]&&t(i[h])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):r(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Pr{static get(t){var e;const o="string"==typeof t?t:t.name,r="string"==typeof t?void 0:t,n=window.ftReduxStores[o];if(Fe(n))return n;if(null==r)return;const i=Rr({...r,reducers:null!==(e=r.reducers)&&void 0!==e?e:{}}),a=xr({reducer:(t,e)=>{var o;switch(e.type){case"CLEAR_FT_REDUX_STORE":return i.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(o=e.overwrites)&&void 0!==o?o:{}};default:return i.reducer(t,e)}}});return window.ftReduxStores[r.name]=new Pr(i,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new je,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,o)=>{const r=e,n=t[r];return n?(...t)=>{const e=n(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[r]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}navigator.vendor&&navigator.vendor.match(/apple/i)||(null===($r=null===(Ar=window.safari)||void 0===Ar?void 0:Ar.pushNotification)||void 0===$r||$r.toString());const jr={linkColor:ve.external(xe.colorPrimaryVariant,"Design system"),linkHoverColor:ve.external(xe.colorPrimary,"Design system")},Fr=vt`
106
106
  .ft-search-results-spellcheck--spellcheck {
107
107
  display: flex;
108
108
  flex-direction: column;
109
109
  }
110
110
 
111
111
  .link {
112
- color: ${Pr.linkColor};
112
+ color: ${jr.linkColor};
113
113
  text-decoration: underline;
114
- text-decoration-color: ${Pr.linkColor};
114
+ text-decoration-color: ${jr.linkColor};
115
115
  }
116
116
 
117
117
  .link:hover {
118
- color: ${Pr.linkHoverColor};
119
- text-decoration-color: ${Pr.linkHoverColor};
118
+ color: ${jr.linkHoverColor};
119
+ text-decoration-color: ${jr.linkHoverColor};
120
120
  }
121
121
  `
122
122
  /**
123
123
  * @license
124
124
  * Copyright 2020 Google LLC
125
125
  * SPDX-License-Identifier: BSD-3-Clause
126
- */,Fr=Symbol.for(""),Mr=t=>{if(t?.r===Fr)return t?._$litStatic$},Dr=t=>({_$litStatic$:t,r:Fr}),Zr=new Map,Tr=(t=>(e,...o)=>{const r=o.length;let n,i;const a=[],s=[];let c,l=0,f=!1;for(;l<r;){for(c=e[l];l<r&&void 0!==(i=o[l],n=Mr(i));)c+=n+e[++l],f=!0;l!==r&&s.push(i),a.push(c),l++}if(l===r&&a.push(e[r]),f){const t=a.join("$$lit$$");void 0===(e=Zr.get(t))&&(a.raw=a,Zr.set(t,e=a)),o=s}return t(e,...o)})(Q);var _r;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(_r||(_r={}));const zr=ve.extend("--ft-typography-font-family","",xe.titleFont),Br=ve.extend("--ft-typography-font-family","",xe.contentFont),Hr={fontFamily:Br,fontSize:ve.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:ve.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:ve.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:ve.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:ve.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Gr=ve.extend("--ft-typography-title-font-family","",zr),qr=ve.extend("--ft-typography-title-font-size","",Hr.fontSize,"20px"),Vr=ve.extend("--ft-typography-title-font-weight","",Hr.fontWeight,"normal"),Yr=ve.extend("--ft-typography-title-letter-spacing","",Hr.letterSpacing,"0.15px"),Xr=ve.extend("--ft-typography-title-line-height","",Hr.lineHeight,"1.2"),Jr=ve.extend("--ft-typography-title-text-transform","",Hr.textTransform,"inherit"),Qr=ve.extend("--ft-typography-title-dense-font-family","",zr),tn=ve.extend("--ft-typography-title-dense-font-size","",Hr.fontSize,"14px"),en=ve.extend("--ft-typography-title-dense-font-weight","",Hr.fontWeight,"normal"),on=ve.extend("--ft-typography-title-dense-letter-spacing","",Hr.letterSpacing,"0.105px"),rn=ve.extend("--ft-typography-title-dense-line-height","",Hr.lineHeight,"1.7"),nn=ve.extend("--ft-typography-title-dense-text-transform","",Hr.textTransform,"inherit"),an=ve.extend("--ft-typography-subtitle1-font-family","",Br),sn=ve.extend("--ft-typography-subtitle1-font-size","",Hr.fontSize,"16px"),cn=ve.extend("--ft-typography-subtitle1-font-weight","",Hr.fontWeight,"600"),ln=ve.extend("--ft-typography-subtitle1-letter-spacing","",Hr.letterSpacing,"0.144px"),fn=ve.extend("--ft-typography-subtitle1-line-height","",Hr.lineHeight,"1.5"),hn=ve.extend("--ft-typography-subtitle1-text-transform","",Hr.textTransform,"inherit"),un=ve.extend("--ft-typography-subtitle2-font-family","",Br),pn=ve.extend("--ft-typography-subtitle2-font-size","",Hr.fontSize,"14px"),dn=ve.extend("--ft-typography-subtitle2-font-weight","",Hr.fontWeight,"normal"),yn=ve.extend("--ft-typography-subtitle2-letter-spacing","",Hr.letterSpacing,"0.098px"),gn=ve.extend("--ft-typography-subtitle2-line-height","",Hr.lineHeight,"1.7"),bn=ve.extend("--ft-typography-subtitle2-text-transform","",Hr.textTransform,"inherit"),mn=ve.extend("--ft-typography-body1-font-family","",Br),On=ve.extend("--ft-typography-body1-font-size","",Hr.fontSize,"16px"),vn=ve.extend("--ft-typography-body1-font-weight","",Hr.fontWeight,"normal"),Sn=ve.extend("--ft-typography-body1-letter-spacing","",Hr.letterSpacing,"0.496px"),wn=ve.extend("--ft-typography-body1-line-height","",Hr.lineHeight,"1.5"),Nn=ve.extend("--ft-typography-body1-text-transform","",Hr.textTransform,"inherit"),xn=ve.extend("--ft-typography-body2-font-family","",Br),Cn=ve.extend("--ft-typography-body2-font-size","",Hr.fontSize,"14px"),En=ve.extend("--ft-typography-body2-font-weight","",Hr.fontWeight,"normal"),Rn=ve.extend("--ft-typography-body2-letter-spacing","",Hr.letterSpacing,"0.252px"),Un=ve.extend("--ft-typography-body2-line-height","",Hr.lineHeight,"1.4"),In=ve.extend("--ft-typography-body2-text-transform","",Hr.textTransform,"inherit"),Ln=ve.extend("--ft-typography-caption-font-family","",Br),Wn=ve.extend("--ft-typography-caption-font-size","",Hr.fontSize,"12px"),kn=ve.extend("--ft-typography-caption-font-weight","",Hr.fontWeight,"normal"),An=ve.extend("--ft-typography-caption-letter-spacing","",Hr.letterSpacing,"0.396px"),$n=ve.extend("--ft-typography-caption-line-height","",Hr.lineHeight,"1.33"),Kn=ve.extend("--ft-typography-caption-text-transform","",Hr.textTransform,"inherit"),Pn=ve.extend("--ft-typography-breadcrumb-font-family","",Br),jn=ve.extend("--ft-typography-breadcrumb-font-size","",Hr.fontSize,"10px"),Fn=ve.extend("--ft-typography-breadcrumb-font-weight","",Hr.fontWeight,"normal"),Mn=ve.extend("--ft-typography-breadcrumb-letter-spacing","",Hr.letterSpacing,"0.33px"),Dn=ve.extend("--ft-typography-breadcrumb-line-height","",Hr.lineHeight,"1.6"),Zn=ve.extend("--ft-typography-breadcrumb-text-transform","",Hr.textTransform,"inherit"),Tn=ve.extend("--ft-typography-overline-font-family","",Br),_n=ve.extend("--ft-typography-overline-font-size","",Hr.fontSize,"10px"),zn=ve.extend("--ft-typography-overline-font-weight","",Hr.fontWeight,"normal"),Bn=ve.extend("--ft-typography-overline-letter-spacing","",Hr.letterSpacing,"1.5px"),Hn=ve.extend("--ft-typography-overline-line-height","",Hr.lineHeight,"1.6"),Gn=ve.extend("--ft-typography-overline-text-transform","",Hr.textTransform,"uppercase"),qn=ve.extend("--ft-typography-button-font-family","",Br),Vn=ve.extend("--ft-typography-button-font-size","",Hr.fontSize,"14px"),Yn=ve.extend("--ft-typography-button-font-weight","",Hr.fontWeight,"600"),Xn=ve.extend("--ft-typography-button-letter-spacing","",Hr.letterSpacing,"1.246px"),Jn=ve.extend("--ft-typography-button-line-height","",Hr.lineHeight,"1.15"),Qn=ve.extend("--ft-typography-button-text-transform","",Hr.textTransform,"uppercase"),ti=vt`
126
+ */,Mr=Symbol.for(""),Dr=t=>{if(t?.r===Mr)return t?._$litStatic$},Zr=t=>({_$litStatic$:t,r:Mr}),Tr=new Map,_r=(t=>(e,...o)=>{const r=o.length;let n,i;const a=[],s=[];let c,l=0,f=!1;for(;l<r;){for(c=e[l];l<r&&void 0!==(i=o[l],n=Dr(i));)c+=n+e[++l],f=!0;l!==r&&s.push(i),a.push(c),l++}if(l===r&&a.push(e[r]),f){const t=a.join("$$lit$$");void 0===(e=Tr.get(t))&&(a.raw=a,Tr.set(t,e=a)),o=s}return t(e,...o)})(Q);var zr;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(zr||(zr={}));const Br=ve.extend("--ft-typography-font-family","",xe.titleFont),Hr=ve.extend("--ft-typography-font-family","",xe.contentFont),Gr={fontFamily:Hr,fontSize:ve.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:ve.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:ve.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:ve.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:ve.create("--ft-typography-text-transform","","UNKNOWN","inherit")},qr=ve.extend("--ft-typography-title-font-family","",Br),Vr=ve.extend("--ft-typography-title-font-size","",Gr.fontSize,"20px"),Yr=ve.extend("--ft-typography-title-font-weight","",Gr.fontWeight,"normal"),Xr=ve.extend("--ft-typography-title-letter-spacing","",Gr.letterSpacing,"0.15px"),Jr=ve.extend("--ft-typography-title-line-height","",Gr.lineHeight,"1.2"),Qr=ve.extend("--ft-typography-title-text-transform","",Gr.textTransform,"inherit"),tn=ve.extend("--ft-typography-title-dense-font-family","",Br),en=ve.extend("--ft-typography-title-dense-font-size","",Gr.fontSize,"14px"),on=ve.extend("--ft-typography-title-dense-font-weight","",Gr.fontWeight,"normal"),rn=ve.extend("--ft-typography-title-dense-letter-spacing","",Gr.letterSpacing,"0.105px"),nn=ve.extend("--ft-typography-title-dense-line-height","",Gr.lineHeight,"1.7"),an=ve.extend("--ft-typography-title-dense-text-transform","",Gr.textTransform,"inherit"),sn=ve.extend("--ft-typography-subtitle1-font-family","",Hr),cn=ve.extend("--ft-typography-subtitle1-font-size","",Gr.fontSize,"16px"),ln=ve.extend("--ft-typography-subtitle1-font-weight","",Gr.fontWeight,"600"),fn=ve.extend("--ft-typography-subtitle1-letter-spacing","",Gr.letterSpacing,"0.144px"),hn=ve.extend("--ft-typography-subtitle1-line-height","",Gr.lineHeight,"1.5"),un=ve.extend("--ft-typography-subtitle1-text-transform","",Gr.textTransform,"inherit"),pn=ve.extend("--ft-typography-subtitle2-font-family","",Hr),dn=ve.extend("--ft-typography-subtitle2-font-size","",Gr.fontSize,"14px"),yn=ve.extend("--ft-typography-subtitle2-font-weight","",Gr.fontWeight,"normal"),gn=ve.extend("--ft-typography-subtitle2-letter-spacing","",Gr.letterSpacing,"0.098px"),bn=ve.extend("--ft-typography-subtitle2-line-height","",Gr.lineHeight,"1.7"),mn=ve.extend("--ft-typography-subtitle2-text-transform","",Gr.textTransform,"inherit"),On=ve.extend("--ft-typography-body1-font-family","",Hr),vn=ve.extend("--ft-typography-body1-font-size","",Gr.fontSize,"16px"),Sn=ve.extend("--ft-typography-body1-font-weight","",Gr.fontWeight,"normal"),wn=ve.extend("--ft-typography-body1-letter-spacing","",Gr.letterSpacing,"0.496px"),Nn=ve.extend("--ft-typography-body1-line-height","",Gr.lineHeight,"1.5"),xn=ve.extend("--ft-typography-body1-text-transform","",Gr.textTransform,"inherit"),Cn=ve.extend("--ft-typography-body2-font-family","",Hr),En=ve.extend("--ft-typography-body2-font-size","",Gr.fontSize,"14px"),Rn=ve.extend("--ft-typography-body2-font-weight","",Gr.fontWeight,"normal"),Un=ve.extend("--ft-typography-body2-letter-spacing","",Gr.letterSpacing,"0.252px"),In=ve.extend("--ft-typography-body2-line-height","",Gr.lineHeight,"1.4"),Ln=ve.extend("--ft-typography-body2-text-transform","",Gr.textTransform,"inherit"),Wn=ve.extend("--ft-typography-caption-font-family","",Hr),kn=ve.extend("--ft-typography-caption-font-size","",Gr.fontSize,"12px"),An=ve.extend("--ft-typography-caption-font-weight","",Gr.fontWeight,"normal"),$n=ve.extend("--ft-typography-caption-letter-spacing","",Gr.letterSpacing,"0.396px"),Kn=ve.extend("--ft-typography-caption-line-height","",Gr.lineHeight,"1.33"),Pn=ve.extend("--ft-typography-caption-text-transform","",Gr.textTransform,"inherit"),jn=ve.extend("--ft-typography-breadcrumb-font-family","",Hr),Fn=ve.extend("--ft-typography-breadcrumb-font-size","",Gr.fontSize,"10px"),Mn=ve.extend("--ft-typography-breadcrumb-font-weight","",Gr.fontWeight,"normal"),Dn=ve.extend("--ft-typography-breadcrumb-letter-spacing","",Gr.letterSpacing,"0.33px"),Zn=ve.extend("--ft-typography-breadcrumb-line-height","",Gr.lineHeight,"1.6"),Tn=ve.extend("--ft-typography-breadcrumb-text-transform","",Gr.textTransform,"inherit"),_n=ve.extend("--ft-typography-overline-font-family","",Hr),zn=ve.extend("--ft-typography-overline-font-size","",Gr.fontSize,"10px"),Bn=ve.extend("--ft-typography-overline-font-weight","",Gr.fontWeight,"normal"),Hn=ve.extend("--ft-typography-overline-letter-spacing","",Gr.letterSpacing,"1.5px"),Gn=ve.extend("--ft-typography-overline-line-height","",Gr.lineHeight,"1.6"),qn=ve.extend("--ft-typography-overline-text-transform","",Gr.textTransform,"uppercase"),Vn=ve.extend("--ft-typography-button-font-family","",Hr),Yn=ve.extend("--ft-typography-button-font-size","",Gr.fontSize,"14px"),Xn=ve.extend("--ft-typography-button-font-weight","",Gr.fontWeight,"600"),Jn=ve.extend("--ft-typography-button-letter-spacing","",Gr.letterSpacing,"1.246px"),Qn=ve.extend("--ft-typography-button-line-height","",Gr.lineHeight,"1.15"),ti=ve.extend("--ft-typography-button-text-transform","",Gr.textTransform,"uppercase"),ei=vt`
127
127
  .ft-typography--title {
128
- font-family: ${Gr};
129
- font-size: ${qr};
130
- font-weight: ${Vr};
131
- letter-spacing: ${Yr};
132
- line-height: ${Xr};
133
- text-transform: ${Jr};
128
+ font-family: ${qr};
129
+ font-size: ${Vr};
130
+ font-weight: ${Yr};
131
+ letter-spacing: ${Xr};
132
+ line-height: ${Jr};
133
+ text-transform: ${Qr};
134
134
  }
135
- `,ei=vt`
135
+ `,oi=vt`
136
136
  .ft-typography--title-dense {
137
- font-family: ${Qr};
138
- font-size: ${tn};
139
- font-weight: ${en};
140
- letter-spacing: ${on};
141
- line-height: ${rn};
142
- text-transform: ${nn};
137
+ font-family: ${tn};
138
+ font-size: ${en};
139
+ font-weight: ${on};
140
+ letter-spacing: ${rn};
141
+ line-height: ${nn};
142
+ text-transform: ${an};
143
143
  }
144
- `,oi=vt`
144
+ `,ri=vt`
145
145
  .ft-typography--subtitle1 {
146
- font-family: ${an};
147
- font-size: ${sn};
148
- font-weight: ${cn};
149
- letter-spacing: ${ln};
150
- line-height: ${fn};
151
- text-transform: ${hn};
146
+ font-family: ${sn};
147
+ font-size: ${cn};
148
+ font-weight: ${ln};
149
+ letter-spacing: ${fn};
150
+ line-height: ${hn};
151
+ text-transform: ${un};
152
152
  }
153
- `,ri=vt`
153
+ `,ni=vt`
154
154
  .ft-typography--subtitle2 {
155
- font-family: ${un};
156
- font-size: ${pn};
157
- font-weight: ${dn};
158
- letter-spacing: ${yn};
159
- line-height: ${gn};
160
- text-transform: ${bn};
155
+ font-family: ${pn};
156
+ font-size: ${dn};
157
+ font-weight: ${yn};
158
+ letter-spacing: ${gn};
159
+ line-height: ${bn};
160
+ text-transform: ${mn};
161
161
  }
162
162
 
163
- `,ni=vt`
163
+ `,ii=vt`
164
164
  .ft-typography--body1 {
165
- font-family: ${mn};
166
- font-size: ${On};
167
- font-weight: ${vn};
168
- letter-spacing: ${Sn};
169
- line-height: ${wn};
170
- text-transform: ${Nn};
165
+ font-family: ${On};
166
+ font-size: ${vn};
167
+ font-weight: ${Sn};
168
+ letter-spacing: ${wn};
169
+ line-height: ${Nn};
170
+ text-transform: ${xn};
171
171
  }
172
- `,ii=vt`
172
+ `,ai=vt`
173
173
  .ft-typography--body2 {
174
- font-family: ${xn};
175
- font-size: ${Cn};
176
- font-weight: ${En};
177
- letter-spacing: ${Rn};
178
- line-height: ${Un};
179
- text-transform: ${In};
174
+ font-family: ${Cn};
175
+ font-size: ${En};
176
+ font-weight: ${Rn};
177
+ letter-spacing: ${Un};
178
+ line-height: ${In};
179
+ text-transform: ${Ln};
180
180
  }
181
- `,ai=vt`
181
+ `,si=vt`
182
182
  .ft-typography--caption {
183
- font-family: ${Ln};
184
- font-size: ${Wn};
185
- font-weight: ${kn};
186
- letter-spacing: ${An};
187
- line-height: ${$n};
188
- text-transform: ${Kn};
183
+ font-family: ${Wn};
184
+ font-size: ${kn};
185
+ font-weight: ${An};
186
+ letter-spacing: ${$n};
187
+ line-height: ${Kn};
188
+ text-transform: ${Pn};
189
189
  }
190
- `,si=vt`
190
+ `,ci=vt`
191
191
  .ft-typography--breadcrumb {
192
- font-family: ${Pn};
193
- font-size: ${jn};
194
- font-weight: ${Fn};
195
- letter-spacing: ${Mn};
196
- line-height: ${Dn};
197
- text-transform: ${Zn};
192
+ font-family: ${jn};
193
+ font-size: ${Fn};
194
+ font-weight: ${Mn};
195
+ letter-spacing: ${Dn};
196
+ line-height: ${Zn};
197
+ text-transform: ${Tn};
198
198
  }
199
- `,ci=vt`
199
+ `,li=vt`
200
200
  .ft-typography--overline {
201
- font-family: ${Tn};
202
- font-size: ${_n};
203
- font-weight: ${zn};
204
- letter-spacing: ${Bn};
205
- line-height: ${Hn};
206
- text-transform: ${Gn};
201
+ font-family: ${_n};
202
+ font-size: ${zn};
203
+ font-weight: ${Bn};
204
+ letter-spacing: ${Hn};
205
+ line-height: ${Gn};
206
+ text-transform: ${qn};
207
207
  }
208
- `,li=vt`
208
+ `,fi=vt`
209
209
  .ft-typography--button {
210
- font-family: ${qn};
211
- font-size: ${Vn};
212
- font-weight: ${Yn};
213
- letter-spacing: ${Xn};
214
- line-height: ${Jn};
215
- text-transform: ${Qn};
210
+ font-family: ${Vn};
211
+ font-size: ${Yn};
212
+ font-weight: ${Xn};
213
+ letter-spacing: ${Jn};
214
+ line-height: ${Qn};
215
+ text-transform: ${ti};
216
216
  }
217
- `,fi=vt`
217
+ `,hi=vt`
218
218
  .ft-typography {
219
219
  vertical-align: inherit;
220
220
  }
221
- `,hi=[Object.keys(we).map((t=>function(t){const e=we[t];return vt`
221
+ `,ui=[Object.keys(we).map((t=>function(t){const e=we[t];return vt`
222
222
  .ft-typography--${Ot(t)} {
223
223
  font-family: ${e.fontFamily};
224
224
  font-size: ${e.fontSize};
@@ -227,26 +227,26 @@ let be=class extends Pt{constructor(){super(...arguments),this.renderOptions={ho
227
227
  line-height: ${e.lineHeight};
228
228
  text-transform: ${e.textCase};
229
229
  }
230
- `}(t)))];var ui=function(t,e,o,r){for(var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};class pi extends Ae{constructor(){super(...arguments),this.variant=_r.body1}render(){return this.element?Tr`
231
- <${Dr(this.element)}
230
+ `}(t)))];var pi=function(t,e,o,r){for(var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};class di extends Ae{constructor(){super(...arguments),this.variant=zr.body1}render(){return this.element?_r`
231
+ <${Zr(this.element)}
232
232
  class="ft-typography ft-typography--${this.variant}">
233
233
  <slot></slot>
234
- </${Dr(this.element)}>
235
- `:Tr`
234
+ </${Zr(this.element)}>
235
+ `:_r`
236
236
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
237
- `}}pi.styles=[ti,ei,oi,ri,ni,ii,ai,si,ci,li,fi,...hi],ui([R()],pi.prototype,"element",void 0),ui([R()],pi.prototype,"variant",void 0),k("ft-typography")(pi);const di=vt`
238
- `,yi=vt`
239
- `,gi=kr.get({name:"ft-app-info",reducers:{setBaseUrl:(t,e)=>{t.baseUrl=e.payload},setApiIntegrationIdentifier:(t,e)=>{t.apiIntegrationIdentifier=e.payload},setUiLocale:(t,e)=>{t.uiLocale=e.payload},setAvailableUiLocales:(t,e)=>{t.availableUiLocales=e.payload},setEditorMode:(t,e)=>{t.editorMode=e.payload},setNoCustom:(t,e)=>{t.noCustom=e.payload},setNoCustomComponent:(t,e)=>{t.noCustomComponent=e.payload},setSession:(t,e)=>{t.session=e.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class bi{static build(t){const{baseUrl:e,apiIntegrationIdentifier:o}=gi.getState(),r=null!=t?t:o;if(e&&r&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,r,!0)}static get(t){var e;return null!=t?bi.build(t):null!==(e=bi.API)&&void 0!==e?e:bi.API=bi.build()}static await(t){return new Promise((e=>{let o=bi.get(t);if(o)e(o);else{const r=gi.subscribe((()=>{o=bi.get(t),o&&(r(),e(o))}))}}))}}var mi;const Oi=Symbol("clearAfterUnitTest");class vi{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new r,this.listeners={},this.currentUiLocale="",this[mi]=()=>{this.defaultMessages={},this.cache=new r,this.listeners={}},this.currentUiLocale=gi.getState().uiLocale,gi.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=gi.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var o;if(t=t.toLowerCase(),Object.keys(e).length>0){const r={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...e};W(this.defaultMessages[t],r)||(this.defaultMessages[t]=r,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var r,n,i;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(n=null===(r=this.cache.getNow(t))||void 0===r?void 0:r.messages)&&void 0!==n?n:{};return new Ke(null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},a).resolve(e,...o)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var o;return t=t.toLowerCase(),this.listeners[t]=null!==(o=this.listeners[t])&&void 0!==o?o:new Set,this.listeners[t].add(e),()=>{var o;return null===(o=this.listeners[t])||void 0===o?void 0:o.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>{return(e=0,new Promise((t=>setTimeout(t,e)))).then((()=>t())).catch((()=>null));var e})))}}mi=Oi,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new vi((async(t,e)=>(await bi.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new vi((async(t,e)=>(await bi.await()).getCustomMessageContext(t,e))));const Si=window.FluidTopicsI18nService,wi=window.FluidTopicsCustomI18nService;var Ni=function(t,e,o,r){for(var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};class xi extends Ae{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.availableUiLocales=[],this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>bi.get(),this.cache=new r,this.cleanSessionDebouncer=new L}render(){return oe`
237
+ `}}di.styles=[ei,oi,ri,ni,ii,ai,si,ci,li,fi,hi,...ui],pi([R()],di.prototype,"element",void 0),pi([R()],di.prototype,"variant",void 0),k("ft-typography")(di);const yi=vt`
238
+ `,gi=vt`
239
+ `,bi=Pr.get({name:"ft-app-info",reducers:{setBaseUrl:(t,e)=>{t.baseUrl=e.payload},setApiIntegrationIdentifier:(t,e)=>{t.apiIntegrationIdentifier=e.payload},setUiLocale:(t,e)=>{t.uiLocale=e.payload},setAvailableUiLocales:(t,e)=>{t.availableUiLocales=e.payload},setEditorMode:(t,e)=>{t.editorMode=e.payload},setNoCustom:(t,e)=>{t.noCustom=e.payload},setNoCustomComponent:(t,e)=>{t.noCustomComponent=e.payload},setSession:(t,e)=>{t.session=e.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class mi{static build(t){const{baseUrl:e,apiIntegrationIdentifier:o}=bi.getState(),r=null!=t?t:o;if(e&&r&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,r,!0)}static get(t){var e;return null!=t?mi.build(t):null!==(e=mi.API)&&void 0!==e?e:mi.API=mi.build()}static await(t){return new Promise((e=>{let o=mi.get(t);if(o)e(o);else{const r=bi.subscribe((()=>{o=mi.get(t),o&&(r(),e(o))}))}}))}}var Oi;const vi=Symbol("clearAfterUnitTest");class Si{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new r,this.listeners={},this.currentUiLocale="",this[Oi]=()=>{this.defaultMessages={},this.cache=new r,this.listeners={}},this.currentUiLocale=bi.getState().uiLocale,bi.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=bi.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var o;if(t=t.toLowerCase(),Object.keys(e).length>0){const r={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...e};W(this.defaultMessages[t],r)||(this.defaultMessages[t]=r,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var r,n,i;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(n=null===(r=this.cache.getNow(t))||void 0===r?void 0:r.messages)&&void 0!==n?n:{};return new Ke(null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},a).resolve(e,...o)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var o;return t=t.toLowerCase(),this.listeners[t]=null!==(o=this.listeners[t])&&void 0!==o?o:new Set,this.listeners[t].add(e),()=>{var o;return null===(o=this.listeners[t])||void 0===o?void 0:o.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>{return(e=0,new Promise((t=>setTimeout(t,e)))).then((()=>t())).catch((()=>null));var e})))}}Oi=vi,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Si((async(t,e)=>(await mi.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Si((async(t,e)=>(await mi.await()).getCustomMessageContext(t,e))));const wi=window.FluidTopicsI18nService,Ni=window.FluidTopicsCustomI18nService;var xi=function(t,e,o,r){for(var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};class Ci extends Ae{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.availableUiLocales=[],this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>mi.get(),this.cache=new r,this.cleanSessionDebouncer=new L}render(){return oe`
240
240
  <slot></slot>
241
- `}update(t){super.update(t),t.has("baseUrl")&&gi.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&gi.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&gi.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&gi.actions.setNoCustom(this.noCustom),t.has("editorMode")&&gi.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&gi.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&gi.actions.setSession(this.session),t.has("availableUiLocales")&&gi.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Si.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const e=await t.getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),e.idleTimeoutInMillis),e}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}xi.elementDefinitions={},xi.styles=yi,Ni([R()],xi.prototype,"baseUrl",void 0),Ni([R()],xi.prototype,"apiIntegrationIdentifier",void 0),Ni([R()],xi.prototype,"uiLocale",void 0),Ni([A([])],xi.prototype,"availableUiLocales",void 0),Ni([R({type:Boolean})],xi.prototype,"editorMode",void 0),Ni([R({type:Boolean})],xi.prototype,"noCustom",void 0),Ni([R({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],xi.prototype,"noCustomComponent",void 0),Ni([R({type:Boolean})],xi.prototype,"withManualResources",void 0),Ni([A([])],xi.prototype,"messageContexts",void 0),Ni([A(void 0)],xi.prototype,"session",void 0),Ni([R({type:Object})],xi.prototype,"apiProvider",void 0);class Ci{async listMySearches(){var t;return(null===(t=gi.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await bi.await()).listMySearches(gi.getState().session.profile.userId):[]}}const Ei=new r;class Ri{async listMyBookmarks(){return Ei.get("bookmarks",(async()=>(await bi.await()).listMyBookmarks(gi.getState().session.profile.userId)))}clearCache(){Ei.clear("bookmarks")}}const Ui=kr.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});new class{constructor(){this.currentSession=gi.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Ri,gi.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=gi.getState();W(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){Ui.actions.savedSearches(void 0)}clearMyBookmarks(){Ui.actions.bookmarks(void 0)}async reloadMySearches(){const t=new Ci,e=await t.listMySearches();Ui.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;Ui.actions.bookmarks(e)}}},k("ft-app-context")(xi);var Ii=function(t,e,o,r){for(var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};const Li=Symbol("i18nProperties"),Wi=Symbol("i18nUnsubs");function ki(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?wi:Si}i18n(t,e,...o){var r;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...o);const n=null!==(r=t.args)&&void 0!==r?r:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...n)}onI18nUpdate(t){var e;null===(e=this[Li])||void 0===e||e.forEach(((e,o)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[o]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var e;super.update(t),null===(e=this[Li])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[Li]&&new Set([...this[Li].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[Wi].has(t)||this[Wi].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages(t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[Wi].forEach((t=>t())),this[Wi].clear()}}return e=Wi,Ii([R({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}class Ai extends(ki(Ae)){}class $i extends(ki(_e)){}var Ki,Pi,ji,Fi,Mi,Di,Zi,Ti,_i,zi,Bi,Hi,Gi,qi,Vi=function(t,e,o,r){for(var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};class Yi extends $i{constructor(){super(),this.editorMode=!1,this.addStore(gi)}render(){return this.key&&this.context?oe`
241
+ `}update(t){super.update(t),t.has("baseUrl")&&bi.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&bi.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&bi.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&bi.actions.setNoCustom(this.noCustom),t.has("editorMode")&&bi.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&bi.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&bi.actions.setSession(this.session),t.has("availableUiLocales")&&bi.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>wi.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const e=await t.getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),e.idleTimeoutInMillis),e}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}Ci.elementDefinitions={},Ci.styles=gi,xi([R()],Ci.prototype,"baseUrl",void 0),xi([R()],Ci.prototype,"apiIntegrationIdentifier",void 0),xi([R()],Ci.prototype,"uiLocale",void 0),xi([A([])],Ci.prototype,"availableUiLocales",void 0),xi([R({type:Boolean})],Ci.prototype,"editorMode",void 0),xi([R({type:Boolean})],Ci.prototype,"noCustom",void 0),xi([R({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Ci.prototype,"noCustomComponent",void 0),xi([R({type:Boolean})],Ci.prototype,"withManualResources",void 0),xi([A([])],Ci.prototype,"messageContexts",void 0),xi([A(void 0)],Ci.prototype,"session",void 0),xi([R({type:Object})],Ci.prototype,"apiProvider",void 0);class Ei{async listMySearches(){var t;return(null===(t=bi.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await mi.await()).listMySearches(bi.getState().session.profile.userId):[]}}const Ri=new r;class Ui{async listMyBookmarks(){return Ri.get("bookmarks",(async()=>(await mi.await()).listMyBookmarks(bi.getState().session.profile.userId)))}clearCache(){Ri.clear("bookmarks")}}const Ii=Pr.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});new class{constructor(){this.currentSession=bi.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Ui,bi.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=bi.getState();W(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){Ii.actions.savedSearches(void 0)}clearMyBookmarks(){Ii.actions.bookmarks(void 0)}async reloadMySearches(){const t=new Ei,e=await t.listMySearches();Ii.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;Ii.actions.bookmarks(e)}}},k("ft-app-context")(Ci);var Li=function(t,e,o,r){for(var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};const Wi=Symbol("i18nProperties"),ki=Symbol("i18nUnsubs");function Ai(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Ni:wi}i18n(t,e,...o){var r;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...o);const n=null!==(r=t.args)&&void 0!==r?r:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...n)}onI18nUpdate(t){var e;null===(e=this[Wi])||void 0===e||e.forEach(((e,o)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[o]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var e;super.update(t),null===(e=this[Wi])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[Wi]&&new Set([...this[Wi].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[ki].has(t)||this[ki].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages(t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[ki].forEach((t=>t())),this[ki].clear()}}return e=ki,Li([R({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}class $i extends(Ai(Ae)){}class Ki extends(Ai(Be)){}var Pi,ji,Fi,Mi,Di,Zi,Ti,_i,zi,Bi,Hi,Gi,qi,Vi,Yi=function(t,e,o,r){for(var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};class Xi extends Ki{constructor(){super(),this.editorMode=!1,this.addStore(bi)}render(){return this.key&&this.context?oe`
242
242
  <span class="ft-i18n">
243
243
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
244
244
  </span>
245
- `:this.editorMode?"Select a context and a label key.":ne}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}Yi.elementDefinitions={},Yi.styles=di,Vi([Ar()],Yi.prototype,"editorMode",void 0),Vi([R()],Yi.prototype,"context",void 0),Vi([R()],Yi.prototype,"key",void 0),Vi([A([])],Yi.prototype,"args",void 0),Vi([R()],Yi.prototype,"defaultMessage",void 0);class Xi{static build(t){return new Xi(t)}static fromGwt(t){return new Xi(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const o=e;return t=>({context:this.name,key:o,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>Si.resolveMessage(this.name,e,...t)})}}k("ft-i18n")(Yi),function(t){!function(e){var o={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(o.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],n=ArrayBuffer.isView||function(t){return t&&r.indexOf(Object.prototype.toString.call(t))>-1};function i(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function a(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function c(t){this.map={},t instanceof c?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function l(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function f(t){return new Promise((function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}}))}function h(t){var e=new FileReader,o=f(e);return e.readAsArrayBuffer(t),o}function u(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function p(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o.arrayBuffer&&o.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=u(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||n(t))?this._bodyArrayBuffer=u(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var t=l(this);if(t)return t;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(){return this._bodyArrayBuffer?l(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(h)}),this.text=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,o=f(e);return e.readAsText(t),o}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),o=new Array(e.length),r=0;r<e.length;r++)o[r]=String.fromCharCode(e[r]);return o.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}c.prototype.append=function(t,e){t=i(t),e=a(e);var o=this.map[t];this.map[t]=o?o+", "+e:e},c.prototype.delete=function(t){delete this.map[i(t)]},c.prototype.get=function(t){return t=i(t),this.has(t)?this.map[t]:null},c.prototype.has=function(t){return this.map.hasOwnProperty(i(t))},c.prototype.set=function(t,e){this.map[i(t)]=a(e)},c.prototype.forEach=function(t,e){for(var o in this.map)this.map.hasOwnProperty(o)&&t.call(e,this.map[o],o,this)},c.prototype.keys=function(){var t=[];return this.forEach((function(e,o){t.push(o)})),s(t)},c.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),s(t)},c.prototype.entries=function(){var t=[];return this.forEach((function(e,o){t.push([o,e])})),s(t)},o.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);var d=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,e){var o,r,n=(e=e||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new c(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,n||null==t._bodyInit||(n=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new c(e.headers)),this.method=(o=e.method||this.method||"GET",r=o.toUpperCase(),d.indexOf(r)>-1?r:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function g(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var o=t.split("="),r=o.shift().replace(/\+/g," "),n=o.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(n))}})),e}function b(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new c(e.headers),this.url=e.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},p.call(y.prototype),p.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var m=[301,302,303,307,308];b.redirect=function(t,e){if(-1===m.indexOf(e))throw new RangeError("Invalid status code");return new b(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var o=Error(t);this.stack=o.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function O(t,r){return new Promise((function(n,i){var a=new y(t,r);if(a.signal&&a.signal.aborted)return i(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function l(){s.abort()}s.onload=function(){var t,e,o={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new c,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var o=t.split(":"),r=o.shift().trim();if(r){var n=o.join(":").trim();e.append(r,n)}})),e)};o.url="responseURL"in s?s.responseURL:o.headers.get("X-Request-URL");var r="response"in s?s.response:s.responseText;n(new b(r,o))},s.onerror=function(){i(new TypeError("Network request failed"))},s.ontimeout=function(){i(new TypeError("Network request failed"))},s.onabort=function(){i(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&o.blob&&(s.responseType="blob"),a.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),a.signal&&(a.signal.addEventListener("abort",l),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",l)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}O.polyfill=!0,t.fetch||(t.fetch=O,t.Headers=c,t.Request=y,t.Response=b),e.Headers=c,e.Request=y,e.Response=b,e.fetch=O,Object.defineProperty(e,"U",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(Ki||(Ki={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(Pi||(Pi={})),function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"}(ji||(ji={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(Fi||(Fi={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(Mi||(Mi={})),function(t){t.ASC="ASC",t.DESC="DESC"}(Di||(Di={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(Zi||(Zi={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(Ti||(Ti={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(_i||(_i={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(zi||(zi={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Bi||(Bi={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Hi||(Hi={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS"}(Gi||(Gi={})),function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}(qi||(qi={})),qi.PERSONAL_BOOK_SHARE_USER,qi.PERSONAL_BOOK_USER,qi.HTML_EXPORT_USER,qi.PERSONAL_BOOK_USER,qi.PDF_EXPORT_USER,qi.PERSONAL_BOOK_USER,qi.KHUB_ADMIN,qi.CONTENT_PUBLISHER,qi.ADMIN,qi.KHUB_ADMIN,qi.USERS_ADMIN,qi.PORTAL_ADMIN,qi.DEVELOPER,qi.BETA_USER,qi.DEBUG_USER;class Ji extends Event{constructor(){super(Ji.eventName)}}Ji.eventName="search-context-clear-all-filters";var Qi=function(t,e,o,r){for(var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};class ta extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const ea=Symbol("registerInterval");class oa extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setSearchStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[ea]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[ea]):this.dispatchEvent(new ta)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=ea,Qi([U()],o.prototype,"stateManager",void 0),o}(_e)){}const ra=Xi.build("integratedSpellcheckComponent"),na={resultsFor:"Results for ",noResultsForQuery:'No results for query "{0}"'};var ia=function(t,e,o,r){for(var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};class aa extends(function(t){class e extends t{constructor(){super(...arguments),this.forceVisible=!1,this.isVisible=!0,this.isElementWithConditionalVisibility=!0}calculateStyles(t,e){if(t){const t=document.createElement("style");t.classList.add("conditional-visibility-style"),t.innerHTML=e,this.shadowRoot.append(t)}}hideIfNecessary(){const t=!(this.forceVisible||this.isVisible);this.calculateStyles(t,":host { display: none !important; }")}highlightIfForceVisible(){this.calculateStyles(this.forceVisible,":host { box-shadow: 0px 0px 0px 8px rgba(227,119,59,0.4) inset; }")}update(t){super.update(t),this.updateComplete.then((()=>{this.shadowRoot.querySelectorAll(".conditional-visibility-style").forEach((t=>t.remove())),this.hideIfNecessary(),this.highlightIfForceVisible()}))}}return I([R({type:Boolean,attribute:!1})],e.prototype,"forceVisible",void 0),I([U()],e.prototype,"isVisible",void 0),e}(ki(oa))){constructor(){super(),this.editorMode=!1,this.addStore(gi),this.addI18nContext(ra,na)}getSpellcheckedUrl(t){return this.editorMode?"":function(t,e){var o;const r=new URLSearchParams({"content-lang":null!==(o=e.contentLocale)&&void 0!==o?o:"all",query:e.query});if(e.filters.length>0){const t=e.filters.map((t=>{const e=t.values.map((t=>t.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*"))).map((t=>encodeURIComponent(function(t){return`"${t}"`}(t)))).join("_");return`${t.key}~${e}`})).join("*");r.append("filters",t)}return new URL(`${t.replace(/\/+$/,"")}/search?${r.toString()}`).href}(gi.getState().baseUrl,{...this.request,query:t})}update(t){super.update(t),this.isVisible=!!this.autocorrect||this.editorMode}renderSpellcheck(t,e){return oe`
245
+ `:this.editorMode?"Select a context and a label key.":ne}update(t){var e;super.update(t),this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:null!==(e=this.defaultMessage)&&void 0!==e?e:""})}}Xi.elementDefinitions={},Xi.styles=yi,Yi([Pe()],Xi.prototype,"editorMode",void 0),Yi([R()],Xi.prototype,"context",void 0),Yi([R()],Xi.prototype,"key",void 0),Yi([A([])],Xi.prototype,"args",void 0),Yi([R()],Xi.prototype,"defaultMessage",void 0);class Ji{static build(t){return new Ji(t)}static fromGwt(t){return new Ji(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const o=e;return t=>({context:this.name,key:o,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>wi.resolveMessage(this.name,e,...t)})}}k("ft-i18n")(Xi),function(t){!function(e){var o={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(o.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],n=ArrayBuffer.isView||function(t){return t&&r.indexOf(Object.prototype.toString.call(t))>-1};function i(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function a(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function c(t){this.map={},t instanceof c?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function l(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function f(t){return new Promise((function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}}))}function h(t){var e=new FileReader,o=f(e);return e.readAsArrayBuffer(t),o}function u(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function p(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o.arrayBuffer&&o.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=u(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||n(t))?this._bodyArrayBuffer=u(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var t=l(this);if(t)return t;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(){return this._bodyArrayBuffer?l(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(h)}),this.text=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,o=f(e);return e.readAsText(t),o}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),o=new Array(e.length),r=0;r<e.length;r++)o[r]=String.fromCharCode(e[r]);return o.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}c.prototype.append=function(t,e){t=i(t),e=a(e);var o=this.map[t];this.map[t]=o?o+", "+e:e},c.prototype.delete=function(t){delete this.map[i(t)]},c.prototype.get=function(t){return t=i(t),this.has(t)?this.map[t]:null},c.prototype.has=function(t){return this.map.hasOwnProperty(i(t))},c.prototype.set=function(t,e){this.map[i(t)]=a(e)},c.prototype.forEach=function(t,e){for(var o in this.map)this.map.hasOwnProperty(o)&&t.call(e,this.map[o],o,this)},c.prototype.keys=function(){var t=[];return this.forEach((function(e,o){t.push(o)})),s(t)},c.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),s(t)},c.prototype.entries=function(){var t=[];return this.forEach((function(e,o){t.push([o,e])})),s(t)},o.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);var d=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,e){var o,r,n=(e=e||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new c(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,n||null==t._bodyInit||(n=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new c(e.headers)),this.method=(o=e.method||this.method||"GET",r=o.toUpperCase(),d.indexOf(r)>-1?r:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function g(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var o=t.split("="),r=o.shift().replace(/\+/g," "),n=o.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(n))}})),e}function b(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new c(e.headers),this.url=e.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},p.call(y.prototype),p.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var m=[301,302,303,307,308];b.redirect=function(t,e){if(-1===m.indexOf(e))throw new RangeError("Invalid status code");return new b(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var o=Error(t);this.stack=o.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function O(t,r){return new Promise((function(n,i){var a=new y(t,r);if(a.signal&&a.signal.aborted)return i(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function l(){s.abort()}s.onload=function(){var t,e,o={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new c,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var o=t.split(":"),r=o.shift().trim();if(r){var n=o.join(":").trim();e.append(r,n)}})),e)};o.url="responseURL"in s?s.responseURL:o.headers.get("X-Request-URL");var r="response"in s?s.response:s.responseText;n(new b(r,o))},s.onerror=function(){i(new TypeError("Network request failed"))},s.ontimeout=function(){i(new TypeError("Network request failed"))},s.onabort=function(){i(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&o.blob&&(s.responseType="blob"),a.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),a.signal&&(a.signal.addEventListener("abort",l),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",l)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}O.polyfill=!0,t.fetch||(t.fetch=O,t.Headers=c,t.Request=y,t.Response=b),e.Headers=c,e.Request=y,e.Response=b,e.fetch=O,Object.defineProperty(e,"U",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(Pi||(Pi={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(ji||(ji={})),function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"}(Fi||(Fi={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(Mi||(Mi={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(Di||(Di={})),function(t){t.ASC="ASC",t.DESC="DESC"}(Zi||(Zi={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(Ti||(Ti={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(_i||(_i={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(zi||(zi={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(Bi||(Bi={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Hi||(Hi={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Gi||(Gi={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS"}(qi||(qi={})),function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}(Vi||(Vi={})),Vi.PERSONAL_BOOK_SHARE_USER,Vi.PERSONAL_BOOK_USER,Vi.HTML_EXPORT_USER,Vi.PERSONAL_BOOK_USER,Vi.PDF_EXPORT_USER,Vi.PERSONAL_BOOK_USER,Vi.KHUB_ADMIN,Vi.CONTENT_PUBLISHER,Vi.ADMIN,Vi.KHUB_ADMIN,Vi.USERS_ADMIN,Vi.PORTAL_ADMIN,Vi.DEVELOPER,Vi.BETA_USER,Vi.DEBUG_USER;class Qi extends Event{constructor(){super(Qi.eventName)}}Qi.eventName="search-context-clear-all-filters";var ta=function(t,e,o,r){for(var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};class ea extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const oa=Symbol("registerInterval");class ra extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setSearchStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[oa]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[oa]):this.dispatchEvent(new ea)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=oa,ta([U()],o.prototype,"stateManager",void 0),o}(Be)){}const na=Ji.build("integratedSpellcheckComponent"),ia={resultsFor:"Results for ",noResultsForQuery:'No results for query "{0}"'};var aa=function(t,e,o,r){for(var n,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(e,o,a):n(e,o))||a);return i>3&&a&&Object.defineProperty(e,o,a),a};class sa extends(function(t){class e extends t{constructor(){super(...arguments),this.forceVisible=!1,this.isVisible=!0,this.isElementWithConditionalVisibility=!0}calculateStyles(t,e){if(t){const t=document.createElement("style");t.classList.add("conditional-visibility-style"),t.innerHTML=e,this.shadowRoot.append(t)}}hideIfNecessary(){const t=!(this.forceVisible||this.isVisible);this.calculateStyles(t,":host { display: none !important; }")}highlightIfForceVisible(){this.calculateStyles(this.forceVisible,":host { box-shadow: 0px 0px 0px 8px rgba(227,119,59,0.4) inset; }")}update(t){super.update(t),this.updateComplete.then((()=>{this.shadowRoot.querySelectorAll(".conditional-visibility-style").forEach((t=>t.remove())),this.hideIfNecessary(),this.highlightIfForceVisible()}))}}return I([R({type:Boolean,attribute:!1})],e.prototype,"forceVisible",void 0),I([U()],e.prototype,"isVisible",void 0),e}(Ai(ra))){constructor(){super(),this.editorMode=!1,this.addStore(bi),this.addI18nContext(na,ia)}getSpellcheckedUrl(t){return this.editorMode?"":function(t,e){var o;const r=new URLSearchParams({"content-lang":null!==(o=e.contentLocale)&&void 0!==o?o:"all",query:e.query});if(e.filters.length>0){const t=e.filters.map((t=>{const e=t.values.map((t=>t.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*"))).map((t=>encodeURIComponent(function(t){return`"${t}"`}(t)))).join("_");return`${t.key}~${e}`})).join("*");r.append("filters",t)}return new URL(`${t.replace(/\/+$/,"")}/search?${r.toString()}`).href}(bi.getState().baseUrl,{...this.request,query:t})}update(t){super.update(t),this.isVisible=!!this.autocorrect||this.editorMode}renderSpellcheck(t,e){return oe`
246
246
  <div class="ft-search-results-spellcheck--spellcheck">
247
247
  <div>
248
248
  <ft-typography variant="subtitle1">
249
- ${ra.messages.resultsFor()}
249
+ ${na.messages.resultsFor()}
250
250
  </ft-typography>
251
251
  <a href="${this.getSpellcheckedUrl(t)}"
252
252
  @click=${t=>{var e,o;return null===(e=this.stateManager)||void 0===e?void 0:e.setQuery(null===(o=this.autocorrect)||void 0===o?void 0:o.suggestedQuery)}}>
@@ -257,7 +257,7 @@ let be=class extends Pt{constructor(){super(...arguments),this.renderOptions={ho
257
257
  </div>
258
258
 
259
259
  <ft-typography variant="subtitle2" class="ft-search-results-spellcheck--old-query">
260
- ${ra.messages.noResultsForQuery(e)}
260
+ ${na.messages.noResultsForQuery(e)}
261
261
  </ft-typography>
262
262
  </div>
263
- `}render(){var t,e;return this.autocorrect?this.renderSpellcheck(null===(t=this.autocorrect)||void 0===t?void 0:t.suggestedQuery,null===(e=this.request)||void 0===e?void 0:e.query):this.editorMode?this.renderSpellcheck("new-query","old-query"):ne}}aa.elementDefinitions={"ft-typography":pi},aa.styles=jr,ia([Ar({store:gi.name})],aa.prototype,"editorMode",void 0),ia([Ar({store:"search"})],aa.prototype,"request",void 0),ia([Ar({store:"search",selector:t=>t.spellcheck})],aa.prototype,"autocorrect",void 0),k("ft-search-results-spellcheck")(aa),t.FtSearchResultsSpellcheck=aa,t.FtSearchResultsSpellcheckCssVariables=Pr,t.styles=jr}({});
263
+ `}render(){var t,e;return this.autocorrect?this.renderSpellcheck(null===(t=this.autocorrect)||void 0===t?void 0:t.suggestedQuery,null===(e=this.request)||void 0===e?void 0:e.query):this.editorMode?this.renderSpellcheck("new-query","old-query"):ne}}sa.elementDefinitions={"ft-typography":di},sa.styles=Fr,aa([Pe({store:bi.name})],sa.prototype,"editorMode",void 0),aa([Pe({store:"search"})],sa.prototype,"request",void 0),aa([Pe({store:"search",selector:t=>t.spellcheck})],sa.prototype,"autocorrect",void 0),k("ft-search-results-spellcheck")(sa),t.FtSearchResultsSpellcheck=sa,t.FtSearchResultsSpellcheckCssVariables=jr,t.styles=Fr}({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-search-results-spellcheck",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "description": "Spellcheck component",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,9 +19,9 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-wc-utils": "1.1.3",
22
+ "@fluid-topics/ft-wc-utils": "1.1.4",
23
23
  "@fluid-topics/public-api": "1.0.51",
24
24
  "lit": "3.1.0"
25
25
  },
26
- "gitHead": "0d44a470e710f185c37e42ee87be4481a3bdf793"
26
+ "gitHead": "b13ddd3359734158be660854f9ffe5fc5880c430"
27
27
  }