@fluid-topics/ft-reader-toc 0.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -0
- package/build/ft-reader-toc.d.ts +21 -0
- package/build/ft-reader-toc.js +75 -0
- package/build/ft-reader-toc.light.js +577 -0
- package/build/ft-reader-toc.min.js +686 -0
- package/build/index.d.ts +2 -0
- package/build/index.js +5 -0
- package/package.json +29 -0
|
@@ -0,0 +1,686 @@
|
|
|
1
|
+
!function(t){
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
|
|
5
|
+
* This code may only be used under the BSD style license found at
|
|
6
|
+
* http://polymer.github.io/LICENSE.txt
|
|
7
|
+
* The complete set of authors may be found at
|
|
8
|
+
* http://polymer.github.io/AUTHORS.txt
|
|
9
|
+
* The complete set of contributors may be found at
|
|
10
|
+
* http://polymer.github.io/CONTRIBUTORS.txt
|
|
11
|
+
* Code distributed by Google as part of the polymer project is also
|
|
12
|
+
* subject to an additional IP rights grant found at
|
|
13
|
+
* http://polymer.github.io/PATENTS.txt
|
|
14
|
+
*
|
|
15
|
+
* @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
|
|
16
|
+
*/
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,n=new WeakMap,r=new WeakMap,s=new WeakMap,a=new WeakMap;let l;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 a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);f(n,l,a);const c={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(n,c);let p=i.call(o,t);p||(p=h(t),e.call(o,t,p)),this===window.customElements&&(s.set(n,c),c.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)r.delete(t),u(t,c,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){y.push(this),o.upgrade.apply(o,arguments),y.pop()}get(t){return this._definitionsByTag.get(t)?.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 i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=s.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),n.set(e,i),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,p=t=>{let e=t.getRootNode();if(!c(e)){const t=y[y.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},h=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=p(i)||window.customElements,n=o._getDefinition(e);return n?u(i,n):r.set(i,o),i}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){n.get(this)?.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)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);o.call(this,r,n),i.call(this,r,t,n)}else o.call(this,r,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);n.call(this,o),i.call(this,o,t,null)}else n.call(this,o)})},d=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),l=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let y=[document];const b=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){y.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),y.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const x=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){y.push(this),i.set.call(this,t),y.pop()}})};if(x(Element,"innerHTML"),x(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,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==n.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),n=e.get(o)||[];this[+i]=t,n.push(t),e.set(o,n)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const i of t){const t=n.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(Ri){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.warn(e,i,o,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){this.callbacks=[t],this.debounce(e)}queue(t,e){this.callbacks.push(t),this.debounce(e)}cancel(){null!=this._debounce&&window.clearTimeout(this._debounce)}debounce(t){this.cancel(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout)}runCallbacks(){for(let t of this.callbacks)t();this.callbacks=[]}}
|
|
18
|
+
/**
|
|
19
|
+
* @license
|
|
20
|
+
* Copyright 2017 Google LLC
|
|
21
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
|
+
*/const i=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}};function o(t){return(e,o)=>void 0!==o?((t,e,i)=>{e.constructor.createProperty(i,t)})(t,e,o):i(t,e)
|
|
23
|
+
/**
|
|
24
|
+
* @license
|
|
25
|
+
* Copyright 2017 Google LLC
|
|
26
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
|
+
*/}function n(t){return o({...t,state:!0})}
|
|
28
|
+
/**
|
|
29
|
+
* @license
|
|
30
|
+
* Copyright 2017 Google LLC
|
|
31
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
32
|
+
*/const r=({finisher:t,descriptor:e})=>(i,o)=>{var n;if(void 0===o){const o=null!==(n=i.originalKey)&&void 0!==n?n:i.key,r=null!=e?{kind:"method",placement:"prototype",key:o,descriptor:e(i.key)}:{...i,key:o};return null!=t&&(r.finisher=function(e){t(e,o)}),r}{const n=i.constructor;void 0!==e&&Object.defineProperty(i,o,e(o)),null==t||t(n,o)}}
|
|
33
|
+
/**
|
|
34
|
+
* @license
|
|
35
|
+
* Copyright 2017 Google LLC
|
|
36
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
37
|
+
*/;function s(t,e){return r({descriptor:i=>{const o={get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==i?i:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof i?Symbol():"__"+i;o.get=function(){var i,o;return void 0===this[e]&&(this[e]=null!==(o=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==o?o:null),this[e]}}return o}})}
|
|
38
|
+
/**
|
|
39
|
+
* @license
|
|
40
|
+
* Copyright 2021 Google LLC
|
|
41
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
42
|
+
*/var a;const l=null!=(null===(a=window.HTMLSlotElement)||void 0===a?void 0:a.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));const c=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function p(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var i,o,n;if(Array.isArray(t)){if((i=t.length)!=e.length)return!1;for(o=i;0!=o--;)if(!p(t[o],e[o]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;for(o of t.entries())if(!p(o[1],e.get(o[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((i=(n=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(o=i;0!=o--;)if(!Object.prototype.hasOwnProperty.call(e,n[o]))return!1;for(o=i;0!=o--;){var r=n[o];if(!p(t[r],e[r]))return!1}return!0}return t!=t&&e!=e}
|
|
43
|
+
/**
|
|
44
|
+
* @license
|
|
45
|
+
* Copyright 2019 Google LLC
|
|
46
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
|
+
*/const h=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,f=Symbol(),d=new WeakMap;class u{constructor(t,e,i){if(this._$cssResult$=!0,i!==f)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(h&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=d.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&d.set(e,t))}return t}toString(){return this.cssText}}const v=t=>new u("string"==typeof t?t:t+"",void 0,f),y=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1]),t[0]);return new u(i,t,f)},b=(t,e)=>{h?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=window.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},x=h?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return v(e)})(t):t
|
|
48
|
+
/**
|
|
49
|
+
* @license
|
|
50
|
+
* Copyright 2017 Google LLC
|
|
51
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
52
|
+
*/;var g;const m=window.trustedTypes,w=m?m.emptyScript:"",$=window.reactiveElementPolyfillSupport,O={toAttribute(t,e){switch(e){case Boolean:t=t?w:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},S=(t,e)=>e!==t&&(e==e||t==t),k={attribute:!0,type:String,converter:O,reflect:!1,hasChanged:S};class N extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;null!==(e=this.h)&&void 0!==e||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Ep(i,e);void 0!==o&&(this._$Ev.set(o,i),t.push(o))})),t}static createProperty(t,e=k){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const n=this[t];this[e]=o,this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||k}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(x(t))}else void 0!==t&&e.push(x(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return b(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=k){var o,n;const r=this.constructor._$Ep(t,i);if(void 0!==r&&!0===i.reflect){const s=(null!==(n=null===(o=i.converter)||void 0===o?void 0:o.toAttribute)&&void 0!==n?n:O.toAttribute)(e,i.type);this._$El=t,null==s?this.removeAttribute(r):this.setAttribute(r,s),this._$El=null}}_$AK(t,e){var i,o;const n=this.constructor,r=n._$Ev.get(t);if(void 0!==r&&this._$El!==r){const t=n.getPropertyOptions(r),s=t.converter,a=null!==(o=null!==(i=null==s?void 0:s.fromAttribute)&&void 0!==i?i:"function"==typeof s?s:null)&&void 0!==o?o:O.fromAttribute;this._$El=r,this[r]=a(e,t.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||S)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
|
|
53
|
+
/**
|
|
54
|
+
* @license
|
|
55
|
+
* Copyright 2017 Google LLC
|
|
56
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
57
|
+
*/
|
|
58
|
+
var C;N.finalized=!0,N.elementProperties=new Map,N.elementStyles=[],N.shadowRootOptions={mode:"open"},null==$||$({ReactiveElement:N}),(null!==(g=globalThis.reactiveElementVersions)&&void 0!==g?g:globalThis.reactiveElementVersions=[]).push("1.3.4");const E=globalThis.trustedTypes,R=E?E.createPolicy("lit-html",{createHTML:t=>t}):void 0,M=`lit$${(Math.random()+"").slice(9)}$`,z="?"+M,F=`<${z}>`,j=document,U=(t="")=>j.createComment(t),T=t=>null===t||"object"!=typeof t&&"function"!=typeof t,A=Array.isArray,B=t=>A(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),L=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,P=/-->/g,D=/>/g,_=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),W=/'/g,I=/"/g,H=/^(?:script|style|textarea|title)$/i,K=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),Z=Symbol.for("lit-noChange"),V=Symbol.for("lit-nothing"),J=new WeakMap,q=j.createTreeWalker(j,129,null,!1),X=(t,e)=>{const i=t.length-1,o=[];let n,r=2===e?"<svg>":"",s=L;for(let e=0;e<i;e++){const i=t[e];let a,l,c=-1,p=0;for(;p<i.length&&(s.lastIndex=p,l=s.exec(i),null!==l);)p=s.lastIndex,s===L?"!--"===l[1]?s=P:void 0!==l[1]?s=D:void 0!==l[2]?(H.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=_):void 0!==l[3]&&(s=_):s===_?">"===l[0]?(s=null!=n?n:L,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?_:'"'===l[3]?I:W):s===I||s===W?s=_:s===P||s===D?s=L:(s=_,n=void 0);const h=s===_&&t[e+1].startsWith("/>")?" ":"";r+=s===L?i+F:c>=0?(o.push(a),i.slice(0,c)+"$lit$"+i.slice(c)+M+h):i+M+(-2===c?(o.push(void 0),e):h)}const a=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==R?R.createHTML(a):a,o]};class Y{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,r=0;const s=t.length-1,a=this.parts,[l,c]=X(t,e);if(this.el=Y.createElement(l,i),q.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=q.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(M)){const i=c[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(M),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?it:"?"===e[1]?nt:"@"===e[1]?rt:et})}else a.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(H.test(o.tagName)){const t=o.textContent.split(M),e=t.length-1;if(e>0){o.textContent=E?E.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],U()),q.nextNode(),a.push({type:2,index:++n});o.append(t[e],U())}}}else if(8===o.nodeType)if(o.data===z)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(M,t+1));)a.push({type:7,index:n}),t+=M.length-1}n++}}static createElement(t,e){const i=j.createElement("template");return i.innerHTML=t,i}}function G(t,e,i=t,o){var n,r,s,a;if(e===Z)return e;let l=void 0!==o?null===(n=i._$Cl)||void 0===n?void 0:n[o]:i._$Cu;const c=T(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,i,o)),void 0!==o?(null!==(s=(a=i)._$Cl)&&void 0!==s?s:a._$Cl=[])[o]=l:i._$Cu=l),void 0!==l&&(e=G(t,l._$AS(t,e.values),l,o)),e}class Q{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:o}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:j).importNode(i,!0);q.currentNode=n;let r=q.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new tt(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new st(r,this,t)),this.v.push(e),l=o[++a]}s!==(null==l?void 0:l.index)&&(r=q.nextNode(),s++)}return n}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class tt{constructor(t,e,i,o){var n;this.type=2,this._$AH=V,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$C_=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$C_}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=G(this,t,e),T(t)?t===V||null==t||""===t?(this._$AH!==V&&this._$AR(),this._$AH=V):t!==this._$AH&&t!==Z&&this.T(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.k(t):B(t)?this.S(t):this.T(t)}j(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.j(t))}T(t){this._$AH!==V&&T(this._$AH)?this._$AA.nextSibling.data=t:this.k(j.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=Y.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.m(i);else{const t=new Q(n,this),e=t.p(this.options);t.m(i),this.k(e),this._$AH=t}}_$AC(t){let e=J.get(t.strings);return void 0===e&&J.set(t.strings,e=new Y(t)),e}S(t){A(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const n of t)o===e.length?e.push(i=new tt(this.j(U()),this.j(U()),this,this.options)):i=e[o],i._$AI(n),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$C_=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class et{constructor(t,e,i,o,n){this.type=1,this._$AH=V,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=V}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const n=this.strings;let r=!1;if(void 0===n)t=G(this,t,e,0),r=!T(t)||t!==this._$AH&&t!==Z,r&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=G(this,o[i+s],e,s),a===Z&&(a=this._$AH[s]),r||(r=!T(a)||a!==this._$AH[s]),a===V?t=V:t!==V&&(t+=(null!=a?a:"")+n[s+1]),this._$AH[s]=a}r&&!o&&this.P(t)}P(t){t===V?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class it extends et{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===V?void 0:t}}const ot=E?E.emptyScript:"";class nt extends et{constructor(){super(...arguments),this.type=4}P(t){t&&t!==V?this.element.setAttribute(this.name,ot):this.element.removeAttribute(this.name)}}class rt extends et{constructor(t,e,i,o,n){super(t,e,i,o,n),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=G(this,t,e,0))&&void 0!==i?i:V)===Z)return;const o=this._$AH,n=t===V&&o!==V||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==V&&(o===V||n);n&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class st{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){G(this,t)}}const at={A:"$lit$",C:M,M:z,L:1,R:X,V:Q,D:B,I:G,H:tt,N:et,U:nt,B:rt,F:it,W:st},lt=window.litHtmlPolyfillSupport;
|
|
59
|
+
/**
|
|
60
|
+
* @license
|
|
61
|
+
* Copyright 2017 Google LLC
|
|
62
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
63
|
+
*/
|
|
64
|
+
var ct,pt;null==lt||lt(Y,tt),(null!==(C=globalThis.litHtmlVersions)&&void 0!==C?C:globalThis.litHtmlVersions=[]).push("2.2.7");class ht extends N{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,n;const r=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let s=r._$litPart$;if(void 0===s){const t=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:null;r._$litPart$=s=new tt(e.insertBefore(U(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return Z}}ht.finalized=!0,ht._$litElement$=!0,null===(ct=globalThis.litElementHydrateSupport)||void 0===ct||ct.call(globalThis,{LitElement:ht});const ft=globalThis.litElementPolyfillSupport;null==ft||ft({LitElement:ht}),(null!==(pt=globalThis.litElementVersions)&&void 0!==pt?pt:globalThis.litElementVersions=[]).push("3.2.2");class dt{static create(t,e,i){let o=t=>v(null!=t?t:i),n=y`var(${v(t)}, ${o(i)})`;return n.name=t,n.category=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>y`var(${v(t)}, ${o(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>i,n}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),n=y`var(${v(t)}, ${o(i)})`;return n.name=t,n.category=e.category,n.fallbackVariable=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>y`var(${v(t)}, ${o(e)})`,n.breadcrumb=()=>[e.name,...e.breadcrumb()],n.lastResortDefaultValue=()=>i,n}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):v(null!=e?e:t.defaultValue),o=y`var(${v(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>y`var(${v(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},o}}function ut(t,e){return v(`${t.name}: ${e}`)}const vt={colorPrimary:dt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:dt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:dt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:dt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:dt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:dt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:dt.create("--ft-color-error","COLOR","#B00020"),colorOutline:dt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:dt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:dt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:dt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:dt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:dt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:dt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:dt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:dt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:dt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:dt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:dt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:dt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:dt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:dt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:dt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:dt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:dt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:dt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:dt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:dt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:dt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:dt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:dt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:dt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:dt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:dt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:dt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:dt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:dt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:dt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:dt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:dt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:dt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:dt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:dt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:dt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:dt.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:dt.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:dt.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:dt.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:dt.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:dt.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:dt.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:dt.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:dt.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:dt.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:dt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:dt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:dt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:dt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:dt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:dt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:dt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:dt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
65
|
+
/**
|
|
66
|
+
* @license
|
|
67
|
+
* Copyright 2021 Google LLC
|
|
68
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
69
|
+
*/var yt=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class bt extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:o}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const n=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return b(n,this.constructor.elementStyles),n}}}(ht)){getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),K`
|
|
70
|
+
${t.map((t=>K`
|
|
71
|
+
<style>${t}</style>
|
|
72
|
+
`))}
|
|
73
|
+
${this.getTemplate()}
|
|
74
|
+
`}updated(t){super.updated(t),setTimeout((()=>{var e;this.contentAvailableCallback(t),(null===(e=this.exportpartsPrefix)||void 0===e?void 0:e.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}),0)}setExportpartsAttribute(t){var e,i,o,n,r,s;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(n=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==n?n:[],i=null!==(s=null===(r=t.getAttribute("exportparts"))||void 0===r?void 0:r.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const p=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}contentAvailableCallback(t){}}yt([o()],bt.prototype,"exportpartsPrefix",void 0),yt([function(t,e){const i=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},...null!=e?e:{}})}([])],bt.prototype,"exportpartsPrefixes",void 0);const xt=y`
|
|
75
|
+
.ft-no-text-select {
|
|
76
|
+
-webkit-touch-callout: none;
|
|
77
|
+
-webkit-user-select: none;
|
|
78
|
+
-khtml-user-select: none;
|
|
79
|
+
-moz-user-select: none;
|
|
80
|
+
-ms-user-select: none;
|
|
81
|
+
user-select: none;
|
|
82
|
+
}
|
|
83
|
+
`,gt=(t,e)=>(i,o)=>{i.constructor.createProperty(o,{attribute:!1,hasChanged:null!=e?e:p});const n=i;n.reduxProperties=n.reduxProperties||new Map,n.reduxProperties.set(o,null!=t?t:t=>t[o])};class mt extends bt{get store(){return this.internalStore}set store(t){this.internalStore=t,this.store&&this.setupStore()}updateFromStore(){const t=this.store.getState();this.reduxProperties&&this.reduxProperties.forEach(((e,i)=>{this[i]=e(t,this)}))}setupStore(){this.unsubscribeFromStore&&this.unsubscribeFromStore(),this.updateFromStore(),this.unsubscribeFromStore=this.store.subscribe((()=>{this.updateFromStore()})),this.onStoreAvailable(),this.requestUpdate()}onStoreAvailable(){}connectedCallback(){super.connectedCallback(),this.store&&this.setupStore()}disconnectedCallback(){this.unsubscribeFromStore&&this.unsubscribeFromStore(),super.disconnectedCallback()}}var wt,$t,Ot;const St=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Ot=null===($t=null===(wt=window.safari)||void 0===wt?void 0:wt.pushNotification)||void 0===$t?void 0:$t.toString())&&void 0!==Ot?Ot:""),kt=1,Nt=2,Ct=t=>(...e)=>({_$litDirective$:t,values:e});
|
|
84
|
+
/**
|
|
85
|
+
* @license
|
|
86
|
+
* Copyright 2017 Google LLC
|
|
87
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
88
|
+
*/class Et{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
|
|
89
|
+
/**
|
|
90
|
+
* @license
|
|
91
|
+
* Copyright 2020 Google LLC
|
|
92
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
93
|
+
*/const{H:Rt}=at,Mt=()=>document.createComment(""),zt=(t,e,i)=>{var o;const n=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=n.insertBefore(Mt(),r),o=n.insertBefore(Mt(),r);i=new Rt(e,o,t,t.options)}else{const e=i._$AB.nextSibling,s=i._$AM,a=s!==t;if(a){let e;null===(o=i._$AQ)||void 0===o||o.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==s._$AU&&i._$AP(e)}if(e!==r||a){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;n.insertBefore(t,r),t=e}}}return i},Ft=(t,e,i=t)=>(t._$AI(e,i),t),jt={},Ut=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const o=t._$AB.nextSibling;for(;i!==o;){const t=i.nextSibling;i.remove(),i=t}},Tt=(t,e,i)=>{const o=new Map;for(let n=e;n<=i;n++)o.set(t[n],n);return o},At=Ct(class extends Et{constructor(t){if(super(t),t.type!==Nt)throw Error("repeat() can only be used in text expressions")}ht(t,e,i){let o;void 0===i?i=e:void 0!==e&&(o=e);const n=[],r=[];let s=0;for(const e of t)n[s]=o?o(e,s):s,r[s]=i(e,s),s++;return{values:r,keys:n}}render(t,e,i){return this.ht(t,e,i).values}update(t,[e,i,o]){var n;const r=(t=>t._$AH)(t),{values:s,keys:a}=this.ht(e,i,o);if(!Array.isArray(r))return this.ut=a,s;const l=null!==(n=this.ut)&&void 0!==n?n:this.ut=[],c=[];let p,h,f=0,d=r.length-1,u=0,v=s.length-1;for(;f<=d&&u<=v;)if(null===r[f])f++;else if(null===r[d])d--;else if(l[f]===a[u])c[u]=Ft(r[f],s[u]),f++,u++;else if(l[d]===a[v])c[v]=Ft(r[d],s[v]),d--,v--;else if(l[f]===a[v])c[v]=Ft(r[f],s[v]),zt(t,c[v+1],r[f]),f++,v--;else if(l[d]===a[u])c[u]=Ft(r[d],s[u]),zt(t,r[f],r[d]),d--,u++;else if(void 0===p&&(p=Tt(a,u,v),h=Tt(l,f,d)),p.has(l[f]))if(p.has(l[d])){const e=h.get(a[u]),i=void 0!==e?r[e]:null;if(null===i){const e=zt(t,r[f]);Ft(e,s[u]),c[u]=e}else c[u]=Ft(i,s[u]),zt(t,r[f],i),r[e]=null;u++}else Ut(r[d]),d--;else Ut(r[f]),f++;for(;u<=v;){const e=zt(t,c[v+1]);Ft(e,s[u]),c[u++]=e}for(;f<=d;){const t=r[f++];null!==t&&Ut(t)}return this.ut=a,((t,e=jt)=>{t._$AH=e})(t,c),Z}});
|
|
94
|
+
/**
|
|
95
|
+
* @license
|
|
96
|
+
* Copyright 2017 Google LLC
|
|
97
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
98
|
+
*/var Bt=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Lt extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class Pt extends mt{setReaderStateManager(t){this.stateManager=t,this.store=t.store}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),setTimeout((()=>this.dispatchEvent(new Lt)),10)}disconnectedCallback(){super.disconnectedCallback(),this.store=void 0,this.stateManager=void 0}}Bt([n()],Pt.prototype,"stateManager",void 0);
|
|
99
|
+
/**
|
|
100
|
+
* @license
|
|
101
|
+
* Copyright 2018 Google LLC
|
|
102
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
103
|
+
*/
|
|
104
|
+
const Dt=Ct(class extends Et{constructor(t){var e;if(super(t),t.type!==kt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.nt.add(t);return this.render(e)}const n=t.element.classList;this.nt.forEach((t=>{t in e||(n.remove(t),this.nt.delete(t))}));for(const t in e){const i=!!e[t];i===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(n.add(t),this.nt.add(t)):(n.remove(t),this.nt.delete(t)))}return Z}});var _t=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};const Wt=dt.extend("--ft-ripple-color",vt.colorContent),It={color:Wt,backgroundColor:dt.extend("--ft-ripple-background-color",Wt),opacityContentOnSurfacePressed:dt.external(vt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:dt.external(vt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:dt.external(vt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:dt.external(vt.opacityContentOnSurfaceSelected,"Design system")},Ht=dt.extend("--ft-ripple-color",vt.colorPrimary),Kt=Ht,Zt=dt.extend("--ft-ripple-background-color",Ht),Vt=dt.extend("--ft-ripple-color",vt.colorSecondary),Jt=Vt,qt=dt.extend("--ft-ripple-background-color",Vt);class Xt extends bt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var e,i;let{x:o,y:n}=this.getCoordinates(t),r=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-r.x:r.width/2),this.originY=Math.round(null!=n?n-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return K`
|
|
105
|
+
<style>
|
|
106
|
+
.ft-ripple .ft-ripple--effect,
|
|
107
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
108
|
+
width: ${this.rippleSize}px;
|
|
109
|
+
height: ${this.rippleSize}px;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.ft-ripple .ft-ripple--effect {
|
|
113
|
+
left: ${this.originX}px;
|
|
114
|
+
top: ${this.originY}px;
|
|
115
|
+
}
|
|
116
|
+
</style>
|
|
117
|
+
<div class="${Dt(t)}">
|
|
118
|
+
<div class="ft-ripple--background"></div>
|
|
119
|
+
<div class="ft-ripple--effect"></div>
|
|
120
|
+
</div>
|
|
121
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const e=t,i=t;let o,n;return null!=e.x?({x:o,y:n}=e):null!=i.touches&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Xt.elementDefinitions={},Xt.styles=y`
|
|
122
|
+
:host {
|
|
123
|
+
display: contents;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.ft-ripple {
|
|
127
|
+
position: absolute;
|
|
128
|
+
inset: 0;
|
|
129
|
+
pointer-events: none;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
133
|
+
overflow: hidden;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.ft-ripple .ft-ripple--background,
|
|
137
|
+
.ft-ripple .ft-ripple--effect {
|
|
138
|
+
position: absolute;
|
|
139
|
+
opacity: 0;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.ft-ripple .ft-ripple--background {
|
|
143
|
+
background-color: ${It.backgroundColor};
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.ft-ripple .ft-ripple--effect {
|
|
147
|
+
background-color: ${It.color};
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
151
|
+
background-color: ${qt};
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
155
|
+
background-color: ${Jt};
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
159
|
+
background-color: ${Zt};
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
163
|
+
background-color: ${Kt};
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.ft-ripple .ft-ripple--background {
|
|
167
|
+
top: 0;
|
|
168
|
+
left: 0;
|
|
169
|
+
height: 100%;
|
|
170
|
+
width: 100%;
|
|
171
|
+
transition: opacity 75ms linear;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.ft-ripple .ft-ripple--effect,
|
|
175
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
176
|
+
border-radius: 50%;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.ft-ripple .ft-ripple--effect {
|
|
180
|
+
transform: translate(-50%, -50%) scale(0.15);
|
|
181
|
+
transition: transform 300ms ease, opacity 75ms linear;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
|
|
185
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
186
|
+
left: 50%;
|
|
187
|
+
top: 50%;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
191
|
+
transform: translate(-50%, -50%);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
195
|
+
opacity: ${It.opacityContentOnSurfaceHover};
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
199
|
+
opacity: ${It.opacityContentOnSurfaceSelected};
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
203
|
+
opacity: ${It.opacityContentOnSurfaceFocused};
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
207
|
+
opacity: ${It.opacityContentOnSurfacePressed};
|
|
208
|
+
transform: translate(-50%, -50%) scale(1);
|
|
209
|
+
}
|
|
210
|
+
`,_t([o({type:Boolean})],Xt.prototype,"primary",void 0),_t([o({type:Boolean})],Xt.prototype,"secondary",void 0),_t([o({type:Boolean})],Xt.prototype,"unbounded",void 0),_t([o({type:Boolean})],Xt.prototype,"activated",void 0),_t([o({type:Boolean})],Xt.prototype,"selected",void 0),_t([o({type:Boolean})],Xt.prototype,"disabled",void 0),_t([n()],Xt.prototype,"hovered",void 0),_t([n()],Xt.prototype,"focused",void 0),_t([n()],Xt.prototype,"pressed",void 0),_t([n()],Xt.prototype,"rippling",void 0),_t([n()],Xt.prototype,"rippleSize",void 0),_t([n()],Xt.prototype,"originX",void 0),_t([n()],Xt.prototype,"originY",void 0),_t([s(".ft-ripple")],Xt.prototype,"ripple",void 0),_t([s(".ft-ripple--effect")],Xt.prototype,"rippleEffect",void 0),c("ft-ripple")(Xt);
|
|
211
|
+
/**
|
|
212
|
+
* @license
|
|
213
|
+
* Copyright 2020 Google LLC
|
|
214
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
215
|
+
*/
|
|
216
|
+
const Yt=Symbol.for(""),Gt=t=>{if((null==t?void 0:t.r)===Yt)return null==t?void 0:t._$litStatic$},Qt=t=>({_$litStatic$:t,r:Yt}),te=new Map,ee=(t=>(e,...i)=>{const o=i.length;let n,r;const s=[],a=[];let l,c=0,p=!1;for(;c<o;){for(l=e[c];c<o&&void 0!==(r=i[c],n=Gt(r));)l+=n+e[++c],p=!0;a.push(r),s.push(l),c++}if(c===o&&s.push(e[o]),p){const t=s.join("$$lit$$");void 0===(e=te.get(t))&&(s.raw=s,te.set(t,e=s)),i=a}return t(e,...i)})(K);var ie,oe=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};!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"}(ie||(ie={}));const ne=dt.extend("--ft-typography-font-family",vt.titleFont),re=dt.extend("--ft-typography-font-family",vt.contentFont),se={fontFamily:re,fontSize:dt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:dt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:dt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:dt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:dt.create("--ft-typography-text-transform","UNKNOWN","inherit")},ae=dt.extend("--ft-typography-title-font-family",ne),le=dt.extend("--ft-typography-title-font-size",se.fontSize,"20px"),ce=dt.extend("--ft-typography-title-font-weight",se.fontWeight,"normal"),pe=dt.extend("--ft-typography-title-letter-spacing",se.letterSpacing,"0.15px"),he=dt.extend("--ft-typography-title-line-height",se.lineHeight,"1.2"),fe=dt.extend("--ft-typography-title-text-transform",se.textTransform,"inherit"),de=dt.extend("--ft-typography-title-dense-font-family",ne),ue=dt.extend("--ft-typography-title-dense-font-size",se.fontSize,"14px"),ve=dt.extend("--ft-typography-title-dense-font-weight",se.fontWeight,"normal"),ye=dt.extend("--ft-typography-title-dense-letter-spacing",se.letterSpacing,"0.105px"),be=dt.extend("--ft-typography-title-dense-line-height",se.lineHeight,"1.7"),xe=dt.extend("--ft-typography-title-dense-text-transform",se.textTransform,"inherit"),ge=dt.extend("--ft-typography-subtitle1-font-family",re),me=dt.extend("--ft-typography-subtitle1-font-size",se.fontSize,"16px"),we=dt.extend("--ft-typography-subtitle1-font-weight",se.fontWeight,"600"),$e=dt.extend("--ft-typography-subtitle1-letter-spacing",se.letterSpacing,"0.144px"),Oe=dt.extend("--ft-typography-subtitle1-line-height",se.lineHeight,"1.5"),Se=dt.extend("--ft-typography-subtitle1-text-transform",se.textTransform,"inherit"),ke=dt.extend("--ft-typography-subtitle2-font-family",re),Ne=dt.extend("--ft-typography-subtitle2-font-size",se.fontSize,"14px"),Ce=dt.extend("--ft-typography-subtitle2-font-weight",se.fontWeight,"normal"),Ee=dt.extend("--ft-typography-subtitle2-letter-spacing",se.letterSpacing,"0.098px"),Re=dt.extend("--ft-typography-subtitle2-line-height",se.lineHeight,"1.7"),Me=dt.extend("--ft-typography-subtitle2-text-transform",se.textTransform,"inherit"),ze=dt.extend("--ft-typography-body1-font-family",re),Fe=dt.extend("--ft-typography-body1-font-size",se.fontSize,"16px"),je=dt.extend("--ft-typography-body1-font-weight",se.fontWeight,"normal"),Ue=dt.extend("--ft-typography-body1-letter-spacing",se.letterSpacing,"0.496px"),Te=dt.extend("--ft-typography-body1-line-height",se.lineHeight,"1.5"),Ae=dt.extend("--ft-typography-body1-text-transform",se.textTransform,"inherit"),Be=dt.extend("--ft-typography-body2-font-family",re),Le=dt.extend("--ft-typography-body2-font-size",se.fontSize,"14px"),Pe=dt.extend("--ft-typography-body2-font-weight",se.fontWeight,"normal"),De=dt.extend("--ft-typography-body2-letter-spacing",se.letterSpacing,"0.252px"),_e=dt.extend("--ft-typography-body2-line-height",se.lineHeight,"1.4"),We=dt.extend("--ft-typography-body2-text-transform",se.textTransform,"inherit"),Ie=dt.extend("--ft-typography-caption-font-family",re),He=dt.extend("--ft-typography-caption-font-size",se.fontSize,"12px"),Ke=dt.extend("--ft-typography-caption-font-weight",se.fontWeight,"normal"),Ze=dt.extend("--ft-typography-caption-letter-spacing",se.letterSpacing,"0.396px"),Ve=dt.extend("--ft-typography-caption-line-height",se.lineHeight,"1.33"),Je=dt.extend("--ft-typography-caption-text-transform",se.textTransform,"inherit"),qe=dt.extend("--ft-typography-breadcrumb-font-family",re),Xe=dt.extend("--ft-typography-breadcrumb-font-size",se.fontSize,"10px"),Ye=dt.extend("--ft-typography-breadcrumb-font-weight",se.fontWeight,"normal"),Ge=dt.extend("--ft-typography-breadcrumb-letter-spacing",se.letterSpacing,"0.33px"),Qe=dt.extend("--ft-typography-breadcrumb-line-height",se.lineHeight,"1.6"),ti=dt.extend("--ft-typography-breadcrumb-text-transform",se.textTransform,"inherit"),ei=dt.extend("--ft-typography-overline-font-family",re),ii=dt.extend("--ft-typography-overline-font-size",se.fontSize,"10px"),oi=dt.extend("--ft-typography-overline-font-weight",se.fontWeight,"normal"),ni=dt.extend("--ft-typography-overline-letter-spacing",se.letterSpacing,"1.5px"),ri=dt.extend("--ft-typography-overline-line-height",se.lineHeight,"1.6"),si=dt.extend("--ft-typography-overline-text-transform",se.textTransform,"uppercase"),ai={fontFamily:dt.extend("--ft-typography-button-font-family",re),fontSize:dt.extend("--ft-typography-button-font-size",se.fontSize,"14px"),fontWeight:dt.extend("--ft-typography-button-font-weight",se.fontWeight,"600"),letterSpacing:dt.extend("--ft-typography-button-letter-spacing",se.letterSpacing,"1.246px"),lineHeight:dt.extend("--ft-typography-button-line-height",se.lineHeight,"1.15"),textTransform:dt.extend("--ft-typography-button-text-transform",se.textTransform,"uppercase")},li=y`
|
|
217
|
+
.ft-typography--title {
|
|
218
|
+
font-family: ${ae};
|
|
219
|
+
font-size: ${le};
|
|
220
|
+
font-weight: ${ce};
|
|
221
|
+
letter-spacing: ${pe};
|
|
222
|
+
line-height: ${he};
|
|
223
|
+
text-transform: ${fe};
|
|
224
|
+
}
|
|
225
|
+
`,ci=y`
|
|
226
|
+
.ft-typography--title-dense {
|
|
227
|
+
font-family: ${de};
|
|
228
|
+
font-size: ${ue};
|
|
229
|
+
font-weight: ${ve};
|
|
230
|
+
letter-spacing: ${ye};
|
|
231
|
+
line-height: ${be};
|
|
232
|
+
text-transform: ${xe};
|
|
233
|
+
}
|
|
234
|
+
`,pi=y`
|
|
235
|
+
.ft-typography--subtitle1 {
|
|
236
|
+
font-family: ${ge};
|
|
237
|
+
font-size: ${me};
|
|
238
|
+
font-weight: ${we};
|
|
239
|
+
letter-spacing: ${$e};
|
|
240
|
+
line-height: ${Oe};
|
|
241
|
+
text-transform: ${Se};
|
|
242
|
+
}
|
|
243
|
+
`,hi=y`
|
|
244
|
+
.ft-typography--subtitle2 {
|
|
245
|
+
font-family: ${ke};
|
|
246
|
+
font-size: ${Ne};
|
|
247
|
+
font-weight: ${Ce};
|
|
248
|
+
letter-spacing: ${Ee};
|
|
249
|
+
line-height: ${Re};
|
|
250
|
+
text-transform: ${Me};
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
`,fi=y`
|
|
254
|
+
.ft-typography--body1 {
|
|
255
|
+
font-family: ${ze};
|
|
256
|
+
font-size: ${Fe};
|
|
257
|
+
font-weight: ${je};
|
|
258
|
+
letter-spacing: ${Ue};
|
|
259
|
+
line-height: ${Te};
|
|
260
|
+
text-transform: ${Ae};
|
|
261
|
+
}
|
|
262
|
+
`,di=y`
|
|
263
|
+
.ft-typography--body2 {
|
|
264
|
+
font-family: ${Be};
|
|
265
|
+
font-size: ${Le};
|
|
266
|
+
font-weight: ${Pe};
|
|
267
|
+
letter-spacing: ${De};
|
|
268
|
+
line-height: ${_e};
|
|
269
|
+
text-transform: ${We};
|
|
270
|
+
}
|
|
271
|
+
`,ui=y`
|
|
272
|
+
.ft-typography--caption {
|
|
273
|
+
font-family: ${Ie};
|
|
274
|
+
font-size: ${He};
|
|
275
|
+
font-weight: ${Ke};
|
|
276
|
+
letter-spacing: ${Ze};
|
|
277
|
+
line-height: ${Ve};
|
|
278
|
+
text-transform: ${Je};
|
|
279
|
+
}
|
|
280
|
+
`,vi=y`
|
|
281
|
+
.ft-typography--breadcrumb {
|
|
282
|
+
font-family: ${qe};
|
|
283
|
+
font-size: ${Xe};
|
|
284
|
+
font-weight: ${Ye};
|
|
285
|
+
letter-spacing: ${Ge};
|
|
286
|
+
line-height: ${Qe};
|
|
287
|
+
text-transform: ${ti};
|
|
288
|
+
}
|
|
289
|
+
`,yi=y`
|
|
290
|
+
.ft-typography--overline {
|
|
291
|
+
font-family: ${ei};
|
|
292
|
+
font-size: ${ii};
|
|
293
|
+
font-weight: ${oi};
|
|
294
|
+
letter-spacing: ${ni};
|
|
295
|
+
line-height: ${ri};
|
|
296
|
+
text-transform: ${si};
|
|
297
|
+
}
|
|
298
|
+
`,bi=y`
|
|
299
|
+
.ft-typography--button {
|
|
300
|
+
font-family: ${ai.fontFamily};
|
|
301
|
+
font-size: ${ai.fontSize};
|
|
302
|
+
font-weight: ${ai.fontWeight};
|
|
303
|
+
letter-spacing: ${ai.letterSpacing};
|
|
304
|
+
line-height: ${ai.lineHeight};
|
|
305
|
+
text-transform: ${ai.textTransform};
|
|
306
|
+
}
|
|
307
|
+
`;class xi extends bt{constructor(){super(...arguments),this.variant=ie.body1}render(){return this.element?ee`
|
|
308
|
+
<${Qt(this.element)}
|
|
309
|
+
class="ft-typography ft-typography--${this.variant}">
|
|
310
|
+
<slot></slot>
|
|
311
|
+
</${Qt(this.element)}>
|
|
312
|
+
`:ee`
|
|
313
|
+
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
314
|
+
`}}xi.styles=[li,ci,pi,hi,fi,di,ui,vi,yi,bi,y`
|
|
315
|
+
.ft-typography {
|
|
316
|
+
vertical-align: inherit;
|
|
317
|
+
}
|
|
318
|
+
`],oe([o()],xi.prototype,"element",void 0),oe([o()],xi.prototype,"variant",void 0),c("ft-typography")(xi);var gi=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};const mi=dt.create("--ft-tooltip-distance","SIZE","4px"),wi=dt.create("--ft-tooltip-color","COLOR","#FFFFFF"),$i=dt.create("--ft-tooltip-background-color","COLOR","#666666"),Oi=dt.create("--ft-tooltip-z-index","NUMBER","1"),Si=dt.external(vt.borderRadiusS,"Design system"),ki=dt.create("--ft-tooltip-max-width","SIZE","150px");class Ni extends bt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new e,this.revealDebouncer=new e}render(){return K`
|
|
319
|
+
<div part="container"
|
|
320
|
+
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
321
|
+
@mouseenter=${this.onHover}
|
|
322
|
+
@mouseleave=${this.onOut}
|
|
323
|
+
@focusin=${this.onHover}
|
|
324
|
+
@focusout=${this.onOut}
|
|
325
|
+
@touchstart=${this.onTouch}>
|
|
326
|
+
<div part="tooltip" class="ft-tooltip ft-tooltip--${this.position}" ?hidden=${!this.visible}>
|
|
327
|
+
<div part="tooltip-content" class="ft-tooltip--content">
|
|
328
|
+
<slot name="text"></slot>
|
|
329
|
+
<ft-typography variant="caption" ?hidden=${!this.text}>${this.text}</ft-typography>
|
|
330
|
+
</div>
|
|
331
|
+
</div>
|
|
332
|
+
<slot></slot>
|
|
333
|
+
</div>
|
|
334
|
+
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){t.has("visible")&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.position){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.width-this.tooltip.clientWidth)/2;let n=0,r=0;switch(this.position){case"top":r=-this.tooltip.clientHeight,n=o;break;case"bottom":r=e.height,n=o;break;case"left":r=i,n=-this.tooltip.clientWidth;break;case"right":r=i,n=e.width}e.left+n+this.tooltip.clientWidth>window.innerWidth&&(n=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+n<0&&(n=0);const s=this.tooltip.style;s.left=n+"px",s.top=r+"px",s.maxWidth=`max(${e.width}px, ${ki})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}Ni.elementDefinitions={"ft-typography":xi},Ni.styles=y`
|
|
335
|
+
.ft-tooltip--container {
|
|
336
|
+
display: block;
|
|
337
|
+
position: relative;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
.ft-tooltip--inline {
|
|
341
|
+
display: inline-block;
|
|
342
|
+
max-width: 100%;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.ft-tooltip {
|
|
346
|
+
position: absolute;
|
|
347
|
+
box-sizing: border-box;
|
|
348
|
+
overflow: hidden;
|
|
349
|
+
width: max-content;
|
|
350
|
+
max-width: ${ki};
|
|
351
|
+
text-align: center;
|
|
352
|
+
padding: ${mi};
|
|
353
|
+
z-index: ${Oi};
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
.ft-tooltip--content {
|
|
357
|
+
padding: 4px 8px;
|
|
358
|
+
border-radius: ${Si};
|
|
359
|
+
background-color: ${$i};
|
|
360
|
+
color: ${wi};
|
|
361
|
+
top: -500px;
|
|
362
|
+
left: -500px;
|
|
363
|
+
position: relative;
|
|
364
|
+
word-break: break-word;
|
|
365
|
+
}
|
|
366
|
+
`,gi([o()],Ni.prototype,"text",void 0),gi([o({type:Boolean})],Ni.prototype,"manual",void 0),gi([o({type:Boolean})],Ni.prototype,"inline",void 0),gi([o({type:Number})],Ni.prototype,"delay",void 0),gi([o()],Ni.prototype,"position",void 0),gi([
|
|
367
|
+
/**
|
|
368
|
+
* @license
|
|
369
|
+
* Copyright 2017 Google LLC
|
|
370
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
371
|
+
*/
|
|
372
|
+
function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return r({descriptor:o=>({get(){var o;const n="slot"+(e?`[name=${e}]`:":not([name])"),r=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),s=null!=r?l(r,t):[];return i?s.filter((t=>t.matches(i))):s},enumerable:!0,configurable:!0})})}({slot:n,flatten:e,selector:i}):r({descriptor:t=>({get(){var t,e;const i="slot"+(n?`[name=${n}]`:":not([name])"),r=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==r?void 0:r.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],Ni.prototype,"slotNodes",void 0),gi([s(".ft-tooltip--container")],Ni.prototype,"container",void 0),gi([s("slot")],Ni.prototype,"target",void 0),gi([s(".ft-tooltip")],Ni.prototype,"tooltip",void 0),gi([s(".ft-tooltip--content")],Ni.prototype,"tooltipContent",void 0),gi([n()],Ni.prototype,"visible",void 0),c("ft-tooltip")(Ni);const Ci={color:dt.extend("--ft-loader-color",vt.colorPrimary),size:dt.create("--ft-loader-size","SIZE","80px")};class Ei extends bt{static get styles(){return y`
|
|
373
|
+
:host {
|
|
374
|
+
line-height: 0;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.ft-loader {
|
|
378
|
+
display: inline-block;
|
|
379
|
+
position: relative;
|
|
380
|
+
|
|
381
|
+
width: ${Ci.size};
|
|
382
|
+
height: ${Ci.size};
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
.ft-loader div {
|
|
386
|
+
position: absolute;
|
|
387
|
+
top: 37.5%;
|
|
388
|
+
width: 25%;
|
|
389
|
+
height: 25%;
|
|
390
|
+
border-radius: 50%;
|
|
391
|
+
background: ${Ci.color};
|
|
392
|
+
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
.ft-loader div:nth-child(1) {
|
|
396
|
+
left: 2.5%;
|
|
397
|
+
animation: appear 0.6s infinite;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
.ft-loader div:nth-child(2) {
|
|
401
|
+
left: 2.5%;
|
|
402
|
+
animation: move 0.6s infinite;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
.ft-loader div:nth-child(3) {
|
|
406
|
+
left: 37.5%;
|
|
407
|
+
animation: move 0.6s infinite;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
.ft-loader div:nth-child(4) {
|
|
411
|
+
left: 72.5%;
|
|
412
|
+
animation: disappear 0.6s infinite;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
@keyframes appear {
|
|
416
|
+
0% {
|
|
417
|
+
transform: scale(0);
|
|
418
|
+
}
|
|
419
|
+
100% {
|
|
420
|
+
transform: scale(1);
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
@keyframes disappear {
|
|
425
|
+
0% {
|
|
426
|
+
transform: scale(1);
|
|
427
|
+
}
|
|
428
|
+
100% {
|
|
429
|
+
transform: scale(0);
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
@keyframes move {
|
|
434
|
+
0% {
|
|
435
|
+
transform: translate(0, 0);
|
|
436
|
+
}
|
|
437
|
+
100% {
|
|
438
|
+
transform: translate(calc(0.35 * ${Ci.size}), 0);
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
`}render(){return K`
|
|
442
|
+
<div class="ft-loader">
|
|
443
|
+
<div></div>
|
|
444
|
+
<div></div>
|
|
445
|
+
<div></div>
|
|
446
|
+
<div></div>
|
|
447
|
+
</div>
|
|
448
|
+
`}}c("ft-loader")(Ei);
|
|
449
|
+
/**
|
|
450
|
+
* @license
|
|
451
|
+
* Copyright 2017 Google LLC
|
|
452
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
453
|
+
*/
|
|
454
|
+
class Ri extends Et{constructor(t){if(super(t),this.it=V,t.type!==Nt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===V||null==t)return this._t=void 0,this.it=t;if(t===Z)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Ri.directiveName="unsafeHTML",Ri.resultType=1;const Mi=Ct(Ri);var zi,Fi;!function(t){t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.STAR_PLAIN="",t.STAR="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_DOWN="",t.THUMBS_UP_PLAIN="",t.THUMBS_UP="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="\f06e",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL=""}(zi||(zi={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(Fi||(Fi={})),new Map([...["abw"].map((t=>[t,Fi.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,Fi.AUDIO])),...["avi"].map((t=>[t,Fi.AVI])),...["chm","xhs"].map((t=>[t,Fi.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,Fi.CODE])),...["csv"].map((t=>[t,Fi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Fi.DITA])),...["epub"].map((t=>[t,Fi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Fi.EXCEL])),...["flac"].map((t=>[t,Fi.FLAC])),...["gif"].map((t=>[t,Fi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Fi.GZIP])),...["html","htm","xhtml"].map((t=>[t,Fi.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,Fi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Fi.JPEG])),...["json"].map((t=>[t,Fi.JSON])),...["m4a","m4p"].map((t=>[t,Fi.M4A])),...["mov","qt"].map((t=>[t,Fi.MOV])),...["mp3"].map((t=>[t,Fi.MP3])),...["mp4","m4v"].map((t=>[t,Fi.MP4])),...["ogg","oga"].map((t=>[t,Fi.OGG])),...["pdf","ps"].map((t=>[t,Fi.PDF])),...["png"].map((t=>[t,Fi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Fi.POWERPOINT])),...["rar"].map((t=>[t,Fi.RAR])),...["stp"].map((t=>[t,Fi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Fi.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,Fi.VIDEO])),...["wav"].map((t=>[t,Fi.WAV])),...["wma"].map((t=>[t,Fi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Fi.WORD])),...["xml","xsl","rdf"].map((t=>[t,Fi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Fi.YAML])),...["zip"].map((t=>[t,Fi.ZIP]))]);var ji,Ui=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ji||(ji={}));const Ti={size:dt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:dt.extend("--ft-icon-fluid-topics-font-family",dt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:dt.extend("--ft-icon-file-format-font-family",dt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:dt.extend("--ft-icon-material-font-family",dt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:dt.create("--ft-icon-vertical-align","UNKNOWN","unset")};class Ai extends bt{constructor(){super(...arguments),this.variant=ji.fluid_topics}getStyles(){return y`
|
|
455
|
+
:host {
|
|
456
|
+
display: inline-block;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
:host, i.ft-icon {
|
|
460
|
+
width: ${Ti.size};
|
|
461
|
+
height: ${Ti.size};
|
|
462
|
+
text-align: center;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
i.ft-icon {
|
|
466
|
+
font-size: ${Ti.size};
|
|
467
|
+
line-height: 1;
|
|
468
|
+
font-weight: normal;
|
|
469
|
+
text-transform: none;
|
|
470
|
+
font-style: normal;
|
|
471
|
+
font-variant: normal;
|
|
472
|
+
speak: none;
|
|
473
|
+
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
|
|
474
|
+
text-rendering: auto;
|
|
475
|
+
-webkit-font-smoothing: antialiased;
|
|
476
|
+
-moz-osx-font-smoothing: grayscale;
|
|
477
|
+
vertical-align: ${Ti.verticalAlign};
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
.ft-icon--fluid-topics {
|
|
481
|
+
font-family: ${Ti.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
.ft-icon--file-format {
|
|
485
|
+
font-family: ${Ti.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
.ft-icon--material {
|
|
489
|
+
font-family: ${Ti.materialFontFamily}, "Material Icons", sans-serif;
|
|
490
|
+
}
|
|
491
|
+
`}getTemplate(){return K`
|
|
492
|
+
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
493
|
+
${Mi(this.getIcon())}
|
|
494
|
+
<slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
|
|
495
|
+
</i>
|
|
496
|
+
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}getIcon(){var t,e;let i=this.textContent;return this.variant===ji.file_format?null!==(t=Fi[i.toUpperCase()])&&void 0!==t?t:i:this.variant===ji.fluid_topics?null!==(e=zi[i.toUpperCase()])&&void 0!==e?e:i:V}}Ai.elementDefinitions={},Ui([o()],Ai.prototype,"variant",void 0),Ui([s("slot")],Ai.prototype,"slottedContent",void 0),c("ft-icon")(Ai);var Bi=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};const Li=dt.extend("--ft-button-color",vt.colorPrimary),Pi={backgroundColor:dt.extend("--ft-button-background-color",vt.colorSurface),borderRadius:dt.extend("--ft-button-border-radius",vt.borderRadiusL),color:Li,fontSize:dt.extend("--ft-button-font-size",ai.fontSize),iconSize:dt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:dt.extend("--ft-button-ripple-color",Li),opacityDisabled:dt.external(vt.colorOpacityDisabled,"Design system")},Di=dt.extend("--ft-button-primary-color",dt.extend("--ft-button-color",vt.colorOnPrimary)),_i={backgroundColor:dt.extend("--ft-button-primary-background-color",dt.extend("--ft-button-background-color",vt.colorPrimary)),color:Di,rippleColor:dt.extend("--ft-button-primary-ripple-color",Di)},Wi=dt.extend("--ft-button-dense-border-radius",dt.extend("--ft-button-border-radius",vt.borderRadiusM));class Ii extends bt{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}static get styles(){return[xt,y`
|
|
497
|
+
:host {
|
|
498
|
+
display: inline-block;
|
|
499
|
+
max-width: 100%;
|
|
500
|
+
pointer-events: none;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
button {
|
|
504
|
+
box-shadow: 0px 0px 0px transparent;
|
|
505
|
+
border: 0px solid transparent;
|
|
506
|
+
text-shadow: 0px 0px 0px transparent;
|
|
507
|
+
font-size: ${Pi.fontSize};
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
button:hover {
|
|
511
|
+
box-shadow: 0px 0px 0px transparent;
|
|
512
|
+
border: 0px solid transparent;
|
|
513
|
+
text-shadow: 0px 0px 0px transparent;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
button:active {
|
|
517
|
+
outline: none;
|
|
518
|
+
border: none;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
button:focus {
|
|
522
|
+
outline: 0;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
.ft-button {
|
|
526
|
+
position: relative;
|
|
527
|
+
display: flex;
|
|
528
|
+
justify-content: center;
|
|
529
|
+
align-items: center;
|
|
530
|
+
width: 100%;
|
|
531
|
+
overflow: hidden;
|
|
532
|
+
box-sizing: border-box;
|
|
533
|
+
border: none;
|
|
534
|
+
pointer-events: auto;
|
|
535
|
+
|
|
536
|
+
--ft-button-internal-line-height: calc(${Pi.fontSize} + 2px);
|
|
537
|
+
--ft-button-internal-color: ${Pi.color};
|
|
538
|
+
${ut(Ti.size,Pi.iconSize)};
|
|
539
|
+
--ft-button-internal-vertical-padding: 6px;
|
|
540
|
+
--ft-button-internal-horizontal-padding: 8px;
|
|
541
|
+
${ut(It.color,Pi.rippleColor)};
|
|
542
|
+
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Pi.iconSize});
|
|
543
|
+
|
|
544
|
+
border-radius: ${Pi.borderRadius};
|
|
545
|
+
padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
|
|
546
|
+
background-color: ${Pi.backgroundColor};
|
|
547
|
+
color: var(--ft-button-internal-color);
|
|
548
|
+
-webkit-mask-image: radial-gradient(white, black);
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
.ft-button:not([disabled]):hover {
|
|
552
|
+
cursor: pointer;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
.ft-button--dense {
|
|
556
|
+
--ft-button-internal-vertical-padding: 2px;
|
|
557
|
+
--ft-button-internal-horizontal-padding: 4px;
|
|
558
|
+
border-radius: ${Wi};
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
.ft-button--round {
|
|
562
|
+
border-radius: calc(var(--ft-button-internal-content-height) / 2 + var(--ft-button-internal-vertical-padding));
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
.ft-button[disabled] {
|
|
566
|
+
filter: grayscale(1);
|
|
567
|
+
opacity: ${Pi.opacityDisabled};
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
.ft-button.ft-button--primary {
|
|
571
|
+
background-color: ${_i.backgroundColor};
|
|
572
|
+
--ft-button-internal-color: ${_i.color};
|
|
573
|
+
${ut(It.color,_i.rippleColor)};
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
.ft-button.ft-button--outlined {
|
|
577
|
+
border: 1px solid var(--ft-button-internal-color);
|
|
578
|
+
padding: calc(var(--ft-button-internal-vertical-padding) - 1px) calc(var(--ft-button-internal-horizontal-padding) - 1px);
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
.ft-button:focus {
|
|
582
|
+
outline: none;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
.ft-button--label {
|
|
586
|
+
position: relative;
|
|
587
|
+
overflow: hidden;
|
|
588
|
+
white-space: nowrap;
|
|
589
|
+
text-overflow: ellipsis;
|
|
590
|
+
display: block;
|
|
591
|
+
margin: 0 var(--ft-button-internal-horizontal-padding);
|
|
592
|
+
${ut(ai.fontSize,"1em")};
|
|
593
|
+
${ut(ai.lineHeight,"var(--ft-button-internal-content-height)")};
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
.ft-button--safari-fix .ft-button--label {
|
|
597
|
+
margin-right: 0;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
.ft-button--safari-fix .ft-button--label:after {
|
|
601
|
+
content: "\\0000a0";
|
|
602
|
+
display: inline-block;
|
|
603
|
+
width: 0;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
.ft-button--label[hidden] {
|
|
607
|
+
display: none;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
ft-icon {
|
|
611
|
+
flex-shrink: 0;
|
|
612
|
+
position: relative;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
.ft-button--label[hidden] + ft-icon {
|
|
616
|
+
margin: 0 calc(var(--ft-button-internal-horizontal-padding) * -1);
|
|
617
|
+
padding: 0 var(--ft-button-internal-vertical-padding);
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
621
|
+
.ft-button:not(.ft-button--trailing-icon) ft-loader {
|
|
622
|
+
order: -1;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
ft-loader {
|
|
626
|
+
${ut(Ci.size,Pi.iconSize)};
|
|
627
|
+
${ut(Ci.color,"var(--ft-button-internal-color)")};
|
|
628
|
+
}
|
|
629
|
+
`]}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--safari-fix":St,"ft-no-text-select":!0};return this.addTooltip(K`
|
|
630
|
+
<button part="button"
|
|
631
|
+
class="${Dt(t)}"
|
|
632
|
+
aria-label="${this.getLabel()}"
|
|
633
|
+
?disabled=${this.isDisabled()}>
|
|
634
|
+
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
635
|
+
<ft-typography part="label"
|
|
636
|
+
variant="button"
|
|
637
|
+
class="ft-button--label"
|
|
638
|
+
?hidden=${!this.hasTextContent()}>
|
|
639
|
+
<slot @slotchange=${this.onSlotchange}></slot>
|
|
640
|
+
</ft-typography>
|
|
641
|
+
${this.resolveIcon()}
|
|
642
|
+
</button>
|
|
643
|
+
`)}addTooltip(t){return this.hasTextContent()||0===this.getLabel().trim().length?t:K`
|
|
644
|
+
<ft-tooltip part="tooltip"
|
|
645
|
+
text="${this.getLabel()}"
|
|
646
|
+
position="${this.tooltipPosition}">
|
|
647
|
+
${t}
|
|
648
|
+
</ft-tooltip>
|
|
649
|
+
`}resolveIcon(){return this.loading?K`
|
|
650
|
+
<ft-loader></ft-loader> `:this.icon?K`
|
|
651
|
+
<ft-icon variant="material">${this.icon}</ft-icon> `:V}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Ii.elementDefinitions={"ft-ripple":Xt,"ft-tooltip":Ni,"ft-typography":xi,"ft-icon":Ai,"ft-loader":Ei},Bi([o({type:Boolean})],Ii.prototype,"primary",void 0),Bi([o({type:Boolean})],Ii.prototype,"outlined",void 0),Bi([o({type:Boolean})],Ii.prototype,"disabled",void 0),Bi([o({type:Boolean})],Ii.prototype,"dense",void 0),Bi([o({type:Boolean})],Ii.prototype,"round",void 0),Bi([o({type:String})],Ii.prototype,"label",void 0),Bi([o({type:String})],Ii.prototype,"icon",void 0),Bi([o({type:Boolean})],Ii.prototype,"trailingIcon",void 0),Bi([o({type:Boolean})],Ii.prototype,"loading",void 0),Bi([o({type:String})],Ii.prototype,"tooltipPosition",void 0),Bi([s(".ft-button")],Ii.prototype,"button",void 0),Bi([s(".ft-button--label slot")],Ii.prototype,"slottedContent",void 0),c("ft-button")(Ii);var Hi=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Ki extends Pt{constructor(){super(...arguments),this.removeStyle=!1}render(){var t;let e=Dt({"ft-reader-link":!0,"ft-reader-link--remove-style":this.removeStyle});return K`
|
|
652
|
+
<a class=${e}
|
|
653
|
+
href="${null===(t=this.service)||void 0===t?void 0:t.getLink(this.tocId,this.pageNumber,this.section)}"
|
|
654
|
+
@click=${t=>this.onClick(t)}>
|
|
655
|
+
<slot></slot>
|
|
656
|
+
</a>
|
|
657
|
+
`}onClick(t){var e;t.ctrlKey||t.metaKey||(t.stopPropagation(),t.preventDefault(),this.tocId&&(null===(e=this.stateManager)||void 0===e||e.navigateToTopic(this.tocId,this.section)))}}Ki.styles=y`
|
|
658
|
+
.ft-reader-link--remove-style {
|
|
659
|
+
text-decoration: none;
|
|
660
|
+
color: inherit;
|
|
661
|
+
}
|
|
662
|
+
`,Hi([o()],Ki.prototype,"tocId",void 0),Hi([o()],Ki.prototype,"section",void 0),Hi([o()],Ki.prototype,"pageNumber",void 0),Hi([o({type:Boolean})],Ki.prototype,"removeStyle",void 0),c("ft-reader-internal-link")(Ki);var Zi=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};const Vi={colorPrimary:dt.external(vt.colorPrimary,"Design system"),colorOnPrimary:dt.external(vt.colorOnPrimary,"Design system"),tabulationSize:dt.create("--ft-reader-toc-tabulation-size","SIZE","8px")};class Ji extends Pt{render(){var t;return K`
|
|
663
|
+
<div class="ft-reader-toc">
|
|
664
|
+
${At(null!==(t=this.toc)&&void 0!==t?t:[],(t=>t.tocId),(t=>this.renderNode(t)))}
|
|
665
|
+
</div>
|
|
666
|
+
`}renderNode(t){var e,i;const o=this.splitToc&&null!=t.page&&!t.page.onItsOwn,n=this.splitToc?(null===(e=this.currentPage)||void 0===e?void 0:e.rootTocId)===t.tocId:null===(i=this.visibleTopics)||void 0===i?void 0:i.includes(t.tocId);return K`
|
|
667
|
+
<div class="ft-reader-toc--node">
|
|
668
|
+
<ft-reader-internal-link
|
|
669
|
+
class="${n?"ft-reader-toc--node-visible":""}"
|
|
670
|
+
tocId=${t.tocId}>
|
|
671
|
+
<ft-typography variant="body2">${t.title}</ft-typography>
|
|
672
|
+
</ft-reader-internal-link>
|
|
673
|
+
<div class="ft-reader-toc--node-children">
|
|
674
|
+
${o?V:At(t.children,(t=>t.tocId),(t=>this.renderNode(t)))}
|
|
675
|
+
</div>
|
|
676
|
+
</div>
|
|
677
|
+
`}}Ji.elementDefinitions={"ft-button":Ii,"ft-typography":xi,"ft-reader-internal-link":Ki},Ji.styles=y`
|
|
678
|
+
.ft-reader-toc--node-visible {
|
|
679
|
+
background-color: ${Vi.colorPrimary};
|
|
680
|
+
color: ${Vi.colorOnPrimary};
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
.ft-reader-toc--node-children {
|
|
684
|
+
padding-left: ${Vi.tabulationSize};
|
|
685
|
+
}
|
|
686
|
+
`,Zi([gt()],Ji.prototype,"toc",void 0),Zi([gt((t=>{var e;return null===(e=t.map)||void 0===e?void 0:e.shouldSplitCurrentPageToc}))],Ji.prototype,"splitToc",void 0),Zi([gt()],Ji.prototype,"currentPage",void 0),Zi([gt()],Ji.prototype,"visibleTopics",void 0),c("ft-reader-toc")(Ji),t.FtReaderToc=Ji,t.FtReaderTocCssVariables=Vi,Object.defineProperty(t,"i",{value:!0})}({});
|