@fluid-topics/ft-analytics-top-documents 0.1.16 → 0.2.0

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.
@@ -25,8 +25,8 @@ export declare class FtAnalyticsTopDocuments extends FtLitElement implements FtA
25
25
  documentNumber: number;
26
26
  private documents;
27
27
  private emptyResults;
28
- getStyles(): import("lit").CSSResult;
29
- getTemplate(): import("lit-html").TemplateResult<1>;
28
+ static get styles(): import("lit").CSSResult;
29
+ render(): import("lit-html").TemplateResult<1>;
30
30
  renderDocument(document: Document): import("lit-html").TemplateResult<1>;
31
31
  protected updated(props: PropertyValues): void;
32
32
  private fetchDocuments;
@@ -0,0 +1,155 @@
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,n=window.customElements.define,i=window.customElements.get,e=window.customElements,r=new WeakMap,s=new WeakMap,o=new WeakMap,u=new WeakMap;let a;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,r){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(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const u=r.prototype.attributeChangedCallback,a=new Set(r.observedAttributes||[]);d(r,a,u);const h={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:u,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:a};this._definitionsByTag.set(t,h),this._definitionsByClass.set(r,h);let c=i.call(e,t);c||(c=l(t),n.call(e,t,c)),this===window.customElements&&(o.set(r,h),h.standInClass=c);const f=this._awaitingUpgrade.get(t);if(f){this._awaitingUpgrade.delete(t);for(const t of f)s.delete(t),m(t,h,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){p.push(this),e.upgrade.apply(e,arguments),p.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const n=this._getDefinition(t);if(void 0!==n)return Promise.resolve(n.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,n,i){let e=this._awaitingUpgrade.get(n);e||this._awaitingUpgrade.set(n,e=new Set),i?e.add(t):e.delete(t)}},window.HTMLElement=function(){let n=a;if(n)return a=void 0,n;const i=o.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return n=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(n,this.constructor.prototype),r.set(n,i),n},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,c=t=>{let n=t.getRootNode();if(!h(n)){const t=p[p.length-1];if(t instanceof CustomElementRegistry)return t;n=t.getRootNode(),h(n)||(n=u.get(n)?.getRootNode()||document)}return n.customElements},l=n=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const e=c(i)||window.customElements,r=e._getDefinition(n);return r?m(i,r):s.set(i,e),i}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,n,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,n,!1)}adoptedCallback(){r.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},d=(t,n,i)=>{if(0===n.size||void 0===i)return;const e=t.prototype.setAttribute;e&&(t.prototype.setAttribute=function(t,r){const s=t.toLowerCase();if(n.has(s)){const t=this.getAttribute(s);e.call(this,s,r),i.call(this,s,t,r)}else e.call(this,s,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const e=t.toLowerCase();if(n.has(e)){const t=this.getAttribute(e);r.call(this,e),i.call(this,e,t,null)}else r.call(this,e)})},f=n=>{const i=Object.getPrototypeOf(n);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(n,window.HTMLElement):f(i)},m=(t,n,i=!1)=>{Object.setPrototypeOf(t,n.elementClass.prototype),r.set(t,n),a=t;try{new n.elementClass}catch(t){f(n.elementClass),new n.elementClass}n.observedAttributes.forEach((i=>{t.hasAttribute(i)&&n.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&n.connectedCallback&&t.isConnected&&n.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const n=v.apply(this,arguments);return t.customElements&&(n.customElements=t.customElements),n};let p=[document];const y=(t,n,i)=>{const e=(i?Object.getPrototypeOf(i):t.prototype)[n];t.prototype[n]=function(){p.push(this);const t=e.apply(i||this,arguments);return void 0!==t&&u.set(t,this),p.pop(),t}};y(ShadowRoot,"createElement",document),y(ShadowRoot,"importNode",document),y(Element,"insertAdjacentHTML");const g=(t,n)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,n);Object.defineProperty(t.prototype,n,{...i,set(t){p.push(this),i.set.call(this,t),p.pop()}})};if(g(Element,"innerHTML"),g(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,n=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const e=n.call(this,...i);return t.set(e,this),e},i.forEach((n=>{const i=window.ElementInternals.prototype,e=i[n];i[n]=function(...n){const i=t.get(this);if(!0!==r.get(i).formAssociated)throw new DOMException(`Failed to execute ${e} on 'ElementInternals': The target element is not a form-associated custom element.`);e?.call(this,...n)}}));class e extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class s{constructor(t){const n=new Map;t.forEach(((t,i)=>{const e=t.getAttribute("name"),r=n.get(e)||[];this[+i]=t,r.push(t),n.set(e,r)})),this.length=t.length,n.forEach(((t,n)=>{t&&(1===t.length?this[n]=t[0]:this[n]=new e(t))}))}namedItem(t){return this[t]}}const o=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=o.get.call(this,[]),n=[];for(const i of t){const t=r.get(i);t&&!0!==t.formAssociated||n.push(i)}return new s(n)}})}}try{window.customElements.define("custom-element",null)}catch(pt){const t=window.customElements.define;window.customElements.define=(n,i,e)=>{try{t.bind(window.customElements)(n,i,e)}catch(t){console.warn(n,i,e,t)}}}
18
+ /**
19
+ * @license
20
+ * Copyright 2017 Google LLC
21
+ * SPDX-License-Identifier: BSD-3-Clause
22
+ */const n=(t,n)=>"method"===n.kind&&n.descriptor&&!("value"in n.descriptor)?{...n,finisher(i){i.createProperty(n.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:n.key,initializer(){"function"==typeof n.initializer&&(this[n.key]=n.initializer.call(this))},finisher(i){i.createProperty(n.key,t)}};function i(t){return(i,e)=>void 0!==e?((t,n,i)=>{n.constructor.createProperty(i,t)})(t,i,e):n(t,i)
23
+ /**
24
+ * @license
25
+ * Copyright 2017 Google LLC
26
+ * SPDX-License-Identifier: BSD-3-Clause
27
+ */}function e(t){return i({...t,state:!0})}
28
+ /**
29
+ * @license
30
+ * Copyright 2021 Google LLC
31
+ * SPDX-License-Identifier: BSD-3-Clause
32
+ */var r;null===(r=window.HTMLSlotElement)||void 0===r||r.prototype.assignedElements;const s=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,o=Symbol(),u=new Map;
33
+ /**
34
+ * @license
35
+ * Copyright 2019 Google LLC
36
+ * SPDX-License-Identifier: BSD-3-Clause
37
+ */class a{constructor(t,n){if(this._$cssResult$=!0,n!==o)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){let t=u.get(this.cssText);return s&&void 0===t&&(u.set(this.cssText,t=new CSSStyleSheet),t.replaceSync(this.cssText)),t}toString(){return this.cssText}}const h=t=>new a("string"==typeof t?t:t+"",o),c=(t,...n)=>{const i=1===t.length?t[0]:n.reduce(((n,i,e)=>n+(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[e+1]),t[0]);return new a(i,o)},l=(t,n)=>{s?t.adoptedStyleSheets=n.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):n.forEach((n=>{const i=document.createElement("style"),e=window.litNonce;void 0!==e&&i.setAttribute("nonce",e),i.textContent=n.cssText,t.appendChild(i)}))},d=s?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let n="";for(const i of t.cssRules)n+=i.cssText;return h(n)})(t):t
38
+ /**
39
+ * @license
40
+ * Copyright 2017 Google LLC
41
+ * SPDX-License-Identifier: BSD-3-Clause
42
+ */;var f;const m=window.trustedTypes,v=m?m.emptyScript:"",p=window.reactiveElementPolyfillSupport,y={toAttribute(t,n){switch(n){case Boolean:t=t?v:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,n){let i=t;switch(n){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}},g=(t,n)=>n!==t&&(n==n||t==t),w={attribute:!0,type:String,converter:y,reflect:!1,hasChanged:g};class M extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(t){var n;null!==(n=this.l)&&void 0!==n||(this.l=[]),this.l.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((n,i)=>{const e=this._$Eh(i,n);void 0!==e&&(this._$Eu.set(e,i),t.push(e))})),t}static createProperty(t,n=w){if(n.state&&(n.attribute=!1),this.finalize(),this.elementProperties.set(t,n),!n.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,e=this.getPropertyDescriptor(t,i,n);void 0!==e&&Object.defineProperty(this.prototype,t,e)}}static getPropertyDescriptor(t,n,i){return{get(){return this[n]},set(e){const r=this[t];this[n]=e,this.requestUpdate(t,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||w}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._$Eu=new Map,this.hasOwnProperty("properties")){const t=this.properties,n=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of n)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const n=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)n.unshift(d(t))}else void 0!==t&&n.push(d(t));return n}static _$Eh(t,n){const i=n.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}o(){var t;this._$Ep=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Em(),this.requestUpdate(),null===(t=this.constructor.l)||void 0===t||t.forEach((t=>t(this)))}addController(t){var n,i;(null!==(n=this._$Eg)&&void 0!==n?n:this._$Eg=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var n;null===(n=this._$Eg)||void 0===n||n.splice(this._$Eg.indexOf(t)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach(((t,n)=>{this.hasOwnProperty(n)&&(this._$Et.set(n,this[n]),delete this[n])}))}createRenderRoot(){var t;const n=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return l(n,this.constructor.elementStyles),n}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var n;return null===(n=t.hostConnected)||void 0===n?void 0:n.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var n;return null===(n=t.hostDisconnected)||void 0===n?void 0:n.call(t)}))}attributeChangedCallback(t,n,i){this._$AK(t,i)}_$ES(t,n,i=w){var e,r;const s=this.constructor._$Eh(t,i);if(void 0!==s&&!0===i.reflect){const o=(null!==(r=null===(e=i.converter)||void 0===e?void 0:e.toAttribute)&&void 0!==r?r:y.toAttribute)(n,i.type);this._$Ei=t,null==o?this.removeAttribute(s):this.setAttribute(s,o),this._$Ei=null}}_$AK(t,n){var i,e,r;const s=this.constructor,o=s._$Eu.get(t);if(void 0!==o&&this._$Ei!==o){const t=s.getPropertyOptions(o),u=t.converter,a=null!==(r=null!==(e=null===(i=u)||void 0===i?void 0:i.fromAttribute)&&void 0!==e?e:"function"==typeof u?u:null)&&void 0!==r?r:y.fromAttribute;this._$Ei=o,this[o]=a(n,t.type),this._$Ei=null}}requestUpdate(t,n,i){let e=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||g)(this[t],n)?(this._$AL.has(t)||this._$AL.set(t,n),!0===i.reflect&&this._$Ei!==t&&(void 0===this._$E_&&(this._$E_=new Map),this._$E_.set(t,i))):e=!1),!this.isUpdatePending&&e&&(this._$Ep=this._$EC())}async _$EC(){this.isUpdatePending=!0;try{await this._$Ep}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._$Et&&(this._$Et.forEach(((t,n)=>this[n]=t)),this._$Et=void 0);let n=!1;const i=this._$AL;try{n=this.shouldUpdate(i),n?(this.willUpdate(i),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var n;return null===(n=t.hostUpdate)||void 0===n?void 0:n.call(t)})),this.update(i)):this._$EU()}catch(t){throw n=!1,this._$EU(),t}n&&this._$AE(i)}willUpdate(t){}_$AE(t){var n;null===(n=this._$Eg)||void 0===n||n.forEach((t=>{var n;return null===(n=t.hostUpdated)||void 0===n?void 0:n.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(t){return!0}update(t){void 0!==this._$E_&&(this._$E_.forEach(((t,n)=>this._$ES(n,this[n],t))),this._$E_=void 0),this._$EU()}updated(t){}firstUpdated(t){}}
43
+ /**
44
+ * @license
45
+ * Copyright 2017 Google LLC
46
+ * SPDX-License-Identifier: BSD-3-Clause
47
+ */
48
+ var b;M.finalized=!0,M.elementProperties=new Map,M.elementStyles=[],M.shadowRootOptions={mode:"open"},null==p||p({ReactiveElement:M}),(null!==(f=globalThis.reactiveElementVersions)&&void 0!==f?f:globalThis.reactiveElementVersions=[]).push("1.2.2");const S=globalThis.trustedTypes,N=S?S.createPolicy("lit-html",{createHTML:t=>t}):void 0,D=`lit$${(Math.random()+"").slice(9)}$`,Y="?"+D,x=`<${Y}>`,O=document,k=(t="")=>O.createComment(t),E=t=>null===t||"object"!=typeof t&&"function"!=typeof t,R=Array.isArray,T=t=>{var n;return R(t)||"function"==typeof(null===(n=t)||void 0===n?void 0:n[Symbol.iterator])},C=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_=/-->/g,H=/>/g,F=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,A=/'/g,U=/"/g,W=/^(?:script|style|textarea|title)$/i,$=(t=>(n,...i)=>({_$litType$:t,strings:n,values:i}))(1),L=Symbol.for("lit-noChange"),G=Symbol.for("lit-nothing"),j=new WeakMap,P=O.createTreeWalker(O,129,null,!1),I=(t,n)=>{const i=t.length-1,e=[];let r,s=2===n?"<svg>":"",o=C;for(let n=0;n<i;n++){const i=t[n];let u,a,h=-1,c=0;for(;c<i.length&&(o.lastIndex=c,a=o.exec(i),null!==a);)c=o.lastIndex,o===C?"!--"===a[1]?o=_:void 0!==a[1]?o=H:void 0!==a[2]?(W.test(a[2])&&(r=RegExp("</"+a[2],"g")),o=F):void 0!==a[3]&&(o=F):o===F?">"===a[0]?(o=null!=r?r:C,h=-1):void 0===a[1]?h=-2:(h=o.lastIndex-a[2].length,u=a[1],o=void 0===a[3]?F:'"'===a[3]?U:A):o===U||o===A?o=F:o===_||o===H?o=C:(o=F,r=void 0);const l=o===F&&t[n+1].startsWith("/>")?" ":"";s+=o===C?i+x:h>=0?(e.push(u),i.slice(0,h)+"$lit$"+i.slice(h)+D+l):i+D+(-2===h?(e.push(void 0),n):l)}const u=s+(t[i]||"<?>")+(2===n?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==N?N.createHTML(u):u,e]};class Z{constructor({strings:t,_$litType$:n},i){let e;this.parts=[];let r=0,s=0;const o=t.length-1,u=this.parts,[a,h]=I(t,n);if(this.el=Z.createElement(a,i),P.currentNode=this.el.content,2===n){const t=this.el.content,n=t.firstChild;n.remove(),t.append(...n.childNodes)}for(;null!==(e=P.nextNode())&&u.length<o;){if(1===e.nodeType){if(e.hasAttributes()){const t=[];for(const n of e.getAttributeNames())if(n.endsWith("$lit$")||n.startsWith(D)){const i=h[s++];if(t.push(n),void 0!==i){const t=e.getAttribute(i.toLowerCase()+"$lit$").split(D),n=/([.?@])?(.*)/.exec(i);u.push({type:1,index:r,name:n[2],strings:t,ctor:"."===n[1]?q:"?"===n[1]?Q:"@"===n[1]?X:J})}else u.push({type:6,index:r})}for(const n of t)e.removeAttribute(n)}if(W.test(e.tagName)){const t=e.textContent.split(D),n=t.length-1;if(n>0){e.textContent=S?S.emptyScript:"";for(let i=0;i<n;i++)e.append(t[i],k()),P.nextNode(),u.push({type:2,index:++r});e.append(t[n],k())}}}else if(8===e.nodeType)if(e.data===Y)u.push({type:2,index:r});else{let t=-1;for(;-1!==(t=e.data.indexOf(D,t+1));)u.push({type:7,index:r}),t+=D.length-1}r++}}static createElement(t,n){const i=O.createElement("template");return i.innerHTML=t,i}}function B(t,n,i=t,e){var r,s,o,u;if(n===L)return n;let a=void 0!==e?null===(r=i._$Cl)||void 0===r?void 0:r[e]:i._$Cu;const h=E(n)?void 0:n._$litDirective$;return(null==a?void 0:a.constructor)!==h&&(null===(s=null==a?void 0:a._$AO)||void 0===s||s.call(a,!1),void 0===h?a=void 0:(a=new h(t),a._$AT(t,i,e)),void 0!==e?(null!==(o=(u=i)._$Cl)&&void 0!==o?o:u._$Cl=[])[e]=a:i._$Cu=a),void 0!==a&&(n=B(t,a._$AS(t,n.values),a,e)),n}class K{constructor(t,n){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=n}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var n;const{el:{content:i},parts:e}=this._$AD,r=(null!==(n=null==t?void 0:t.creationScope)&&void 0!==n?n:O).importNode(i,!0);P.currentNode=r;let s=P.nextNode(),o=0,u=0,a=e[0];for(;void 0!==a;){if(o===a.index){let n;2===a.type?n=new z(s,s.nextSibling,this,t):1===a.type?n=new a.ctor(s,a.name,a.strings,this,t):6===a.type&&(n=new tt(s,this,t)),this.v.push(n),a=e[++u]}o!==(null==a?void 0:a.index)&&(s=P.nextNode(),o++)}return r}m(t){let n=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,n),n+=i.strings.length-2):i._$AI(t[n])),n++}}class z{constructor(t,n,i,e){var r;this.type=2,this._$AH=G,this._$AN=void 0,this._$AA=t,this._$AB=n,this._$AM=i,this.options=e,this._$Cg=null===(r=null==e?void 0:e.isConnected)||void 0===r||r}get _$AU(){var t,n;return null!==(n=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==n?n:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const n=this._$AM;return void 0!==n&&11===t.nodeType&&(t=n.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,n=this){t=B(this,t,n),E(t)?t===G||null==t||""===t?(this._$AH!==G&&this._$AR(),this._$AH=G):t!==this._$AH&&t!==L&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):T(t)?this.A(t):this.$(t)}M(t,n=this._$AB){return this._$AA.parentNode.insertBefore(t,n)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==G&&E(this._$AH)?this._$AA.nextSibling.data=t:this.S(O.createTextNode(t)),this._$AH=t}T(t){var n;const{values:i,_$litType$:e}=t,r="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=Z.createElement(e.h,this.options)),e);if((null===(n=this._$AH)||void 0===n?void 0:n._$AD)===r)this._$AH.m(i);else{const t=new K(r,this),n=t.p(this.options);t.m(i),this.S(n),this._$AH=t}}_$AC(t){let n=j.get(t.strings);return void 0===n&&j.set(t.strings,n=new Z(t)),n}A(t){R(this._$AH)||(this._$AH=[],this._$AR());const n=this._$AH;let i,e=0;for(const r of t)e===n.length?n.push(i=new z(this.M(k()),this.M(k()),this,this.options)):i=n[e],i._$AI(r),e++;e<n.length&&(this._$AR(i&&i._$AB.nextSibling,e),n.length=e)}_$AR(t=this._$AA.nextSibling,n){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,n);t&&t!==this._$AB;){const n=t.nextSibling;t.remove(),t=n}}setConnected(t){var n;void 0===this._$AM&&(this._$Cg=t,null===(n=this._$AP)||void 0===n||n.call(this,t))}}class J{constructor(t,n,i,e,r){this.type=1,this._$AH=G,this._$AN=void 0,this.element=t,this.name=n,this._$AM=e,this.options=r,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=G}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,n=this,i,e){const r=this.strings;let s=!1;if(void 0===r)t=B(this,t,n,0),s=!E(t)||t!==this._$AH&&t!==L,s&&(this._$AH=t);else{const e=t;let o,u;for(t=r[0],o=0;o<r.length-1;o++)u=B(this,e[i+o],n,o),u===L&&(u=this._$AH[o]),s||(s=!E(u)||u!==this._$AH[o]),u===G?t=G:t!==G&&(t+=(null!=u?u:"")+r[o+1]),this._$AH[o]=u}s&&!e&&this.k(t)}k(t){t===G?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class q extends J{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===G?void 0:t}}const V=S?S.emptyScript:"";class Q extends J{constructor(){super(...arguments),this.type=4}k(t){t&&t!==G?this.element.setAttribute(this.name,V):this.element.removeAttribute(this.name)}}class X extends J{constructor(t,n,i,e,r){super(t,n,i,e,r),this.type=5}_$AI(t,n=this){var i;if((t=null!==(i=B(this,t,n,0))&&void 0!==i?i:G)===L)return;const e=this._$AH,r=t===G&&e!==G||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,s=t!==G&&(e===G||r);r&&this.element.removeEventListener(this.name,this,e),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var n,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(n=this.options)||void 0===n?void 0:n.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class tt{constructor(t,n,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=n,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){B(this,t)}}const nt={P:"$lit$",V:D,L:Y,I:1,N:I,R:K,D:T,j:B,H:z,O:J,F:Q,B:X,W:q,Z:tt},it=window.litHtmlPolyfillSupport;
49
+ /**
50
+ * @license
51
+ * Copyright 2017 Google LLC
52
+ * SPDX-License-Identifier: BSD-3-Clause
53
+ */
54
+ var et,rt;null==it||it(Z,z),(null!==(b=globalThis.litHtmlVersions)&&void 0!==b?b:globalThis.litHtmlVersions=[]).push("2.1.3");class st extends M{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var t,n;const i=super.createRenderRoot();return null!==(t=(n=this.renderOptions).renderBefore)&&void 0!==t||(n.renderBefore=i.firstChild),i}update(t){const n=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Dt=((t,n,i)=>{var e,r;const s=null!==(e=null==i?void 0:i.renderBefore)&&void 0!==e?e:n;let o=s._$litPart$;if(void 0===o){const t=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:null;s._$litPart$=o=new z(n.insertBefore(k(),t),t,void 0,null!=i?i:{})}return o._$AI(t),o})(n,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return L}}st.finalized=!0,st._$litElement$=!0,null===(et=globalThis.litElementHydrateSupport)||void 0===et||et.call(globalThis,{LitElement:st});const ot=globalThis.litElementPolyfillSupport;null==ot||ot({LitElement:st}),(null!==(rt=globalThis.litElementVersions)&&void 0!==rt?rt:globalThis.litElementVersions=[]).push("3.1.2");class ut{constructor(t,n,i,e,r){this.name=t,this.category=n,this.fallbackVariable=i,this.defaultValue=e,this.context=r,this._$cssResult$=!0,this.value=this.get()}get cssText(){return this.value.cssText}get styleSheet(){return this.value.styleSheet}toString(){return this.value.toString()}static create(t,n,i){return new ut(t,n,void 0,i)}static extend(t,n,i){return new ut(t,n.category,n,i)}static external(t,n){return new ut(t.name,t.category,t.fallbackVariable,t.defaultValue,n)}get(t){return c`var(${h(this.name)}, ${this.defaultCssValue(t)})`}defaultCssValue(t){return this.fallbackVariable?this.fallbackVariable.get(null!=t?t:this.defaultValue):h(null!=t?t:this.defaultValue)}lastResortDefaultValue(){var t,n;return null!==(t=this.defaultValue)&&void 0!==t?t:null===(n=this.fallbackVariable)||void 0===n?void 0:n.lastResortDefaultValue()}breadcrumb(){return this.fallbackVariable?[this.fallbackVariable.name,...this.fallbackVariable.breadcrumb()]:[]}}const at={colorPrimary:ut.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:ut.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:ut.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:ut.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:ut.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:ut.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:ut.create("--ft-color-error","COLOR","#B00020"),colorOutline:ut.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:ut.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:ut.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:ut.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:ut.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:ut.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:ut.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:ut.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:ut.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:ut.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:ut.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:ut.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:ut.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:ut.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:ut.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:ut.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:ut.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:ut.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:ut.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:ut.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:ut.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:ut.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:ut.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:ut.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:ut.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:ut.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:ut.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:ut.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:ut.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:ut.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:ut.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:ut.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:ut.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:ut.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:ut.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:ut.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:ut.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:ut.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:ut.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:ut.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:ut.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:ut.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:ut.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:ut.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:ut.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:ut.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:ut.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:ut.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:ut.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:ut.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:ut.create("--ft-border-radius-XL","SIZE","16px"),titleFont:ut.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:ut.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:ut.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:ut.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
55
+ /**
56
+ * @license
57
+ * Copyright 2021 Google LLC
58
+ * SPDX-License-Identifier: BSD-3-Clause
59
+ */class ht extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:n,elementDefinitions:i,shadowRootOptions:e}=t;i&&!n&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([n,i])=>t.registry.define(n,i))));const r=this.renderOptions.creationScope=this.attachShadow({...e,customElements:t.registry});return l(r,this.constructor.elementStyles),r}}}(st)){getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),$`
60
+ ${t.map((t=>$`
61
+ <style>${t}</style>
62
+ `))}
63
+ ${this.getTemplate()}
64
+ `}updated(t){super.updated(t),setTimeout((()=>this.contentAvailableCallback(t)),0)}contentAvailableCallback(t){}}var ct,lt,dt,ft;c`
65
+ .ft-no-text-select {
66
+ -webkit-touch-callout: none;
67
+ -webkit-user-select: none;
68
+ -khtml-user-select: none;
69
+ -moz-user-select: none;
70
+ -ms-user-select: none;
71
+ user-select: none;
72
+ }
73
+ `,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(lt=null===(ct=window.safari)||void 0===ct?void 0:ct.pushNotification)||void 0===lt||lt.toString()),
74
+ //! moment.js
75
+ dt=void 0,ft=function(){var t,n;function i(){return t.apply(null,arguments)}function e(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function r(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function s(t,n){return Object.prototype.hasOwnProperty.call(t,n)}function o(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var n;for(n in t)if(s(t,n))return!1;return!0}function u(t){return void 0===t}function a(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function h(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function c(t,n){var i,e=[],r=t.length;for(i=0;i<r;++i)e.push(n(t[i],i));return e}function l(t,n){for(var i in n)s(n,i)&&(t[i]=n[i]);return s(n,"toString")&&(t.toString=n.toString),s(n,"valueOf")&&(t.valueOf=n.valueOf),t}function d(t,n,i,e){return Dn(t,n,i,e,!0).utc()}function f(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function m(t){if(null==t._isValid){var i=f(t),e=n.call(i.parsedDateParts,(function(t){return null!=t})),r=!isNaN(t._d.getTime())&&i.overflow<0&&!i.empty&&!i.invalidEra&&!i.invalidMonth&&!i.invalidWeekday&&!i.weekdayMismatch&&!i.nullInput&&!i.invalidFormat&&!i.userInvalidated&&(!i.meridiem||i.meridiem&&e);if(t._strict&&(r=r&&0===i.charsLeftOver&&0===i.unusedTokens.length&&void 0===i.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return r;t._isValid=r}return t._isValid}function v(t){var n=d(NaN);return null!=t?l(f(n),t):f(n).userInvalidated=!0,n}n=Array.prototype.some?Array.prototype.some:function(t){var n,i=Object(this),e=i.length>>>0;for(n=0;n<e;n++)if(n in i&&t.call(this,i[n],n,i))return!0;return!1};var p=i.momentProperties=[],y=!1;function g(t,n){var i,e,r,s=p.length;if(u(n._isAMomentObject)||(t._isAMomentObject=n._isAMomentObject),u(n._i)||(t._i=n._i),u(n._f)||(t._f=n._f),u(n._l)||(t._l=n._l),u(n._strict)||(t._strict=n._strict),u(n._tzm)||(t._tzm=n._tzm),u(n._isUTC)||(t._isUTC=n._isUTC),u(n._offset)||(t._offset=n._offset),u(n._pf)||(t._pf=f(n)),u(n._locale)||(t._locale=n._locale),s>0)for(i=0;i<s;i++)u(r=n[e=p[i]])||(t[e]=r);return t}function w(t){g(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,i.updateOffset(this),y=!1)}function M(t){return t instanceof w||null!=t&&null!=t._isAMomentObject}function b(t){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function S(t,n){var e=!0;return l((function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,t),e){var r,o,u,a=[],h=arguments.length;for(o=0;o<h;o++){if(r="","object"==typeof arguments[o]){for(u in r+="\n["+o+"] ",arguments[0])s(arguments[0],u)&&(r+=u+": "+arguments[0][u]+", ");r=r.slice(0,-2)}else r=arguments[o];a.push(r)}b(t+"\nArguments: "+Array.prototype.slice.call(a).join("")+"\n"+(new Error).stack),e=!1}return n.apply(this,arguments)}),n)}var N,D={};function Y(t,n){null!=i.deprecationHandler&&i.deprecationHandler(t,n),D[t]||(b(n),D[t]=!0)}function x(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function O(t,n){var i,e=l({},t);for(i in n)s(n,i)&&(r(t[i])&&r(n[i])?(e[i]={},l(e[i],t[i]),l(e[i],n[i])):null!=n[i]?e[i]=n[i]:delete e[i]);for(i in t)s(t,i)&&!s(n,i)&&r(t[i])&&(e[i]=l({},e[i]));return e}function k(t){null!=t&&this.set(t)}function E(t,n,i){var e=""+Math.abs(t),r=n-e.length;return(t>=0?i?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+e}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,N=Object.keys?Object.keys:function(t){var n,i=[];for(n in t)s(t,n)&&i.push(n);return i};var R=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,T=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,C={},_={};function H(t,n,i,e){var r=e;"string"==typeof e&&(r=function(){return this[e]()}),t&&(_[t]=r),n&&(_[n[0]]=function(){return E(r.apply(this,arguments),n[1],n[2])}),i&&(_[i]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function F(t,n){return t.isValid()?(n=A(n,t.localeData()),C[n]=C[n]||function(t){var n,i,e,r=t.match(R);for(n=0,i=r.length;n<i;n++)_[r[n]]?r[n]=_[r[n]]:r[n]=(e=r[n]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(n){var e,s="";for(e=0;e<i;e++)s+=x(r[e])?r[e].call(n,t):r[e];return s}}(n),C[n](t)):t.localeData().invalidDate()}function A(t,n){var i=5;function e(t){return n.longDateFormat(t)||t}for(T.lastIndex=0;i>=0&&T.test(t);)t=t.replace(T,e),T.lastIndex=0,i-=1;return t}var U={};function W(t,n){var i=t.toLowerCase();U[i]=U[i+"s"]=U[n]=t}function $(t){return"string"==typeof t?U[t]||U[t.toLowerCase()]:void 0}function L(t){var n,i,e={};for(i in t)s(t,i)&&(n=$(i))&&(e[n]=t[i]);return e}var G={};function j(t,n){G[t]=n}function P(t){return t%4==0&&t%100!=0||t%400==0}function I(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function Z(t){var n=+t,i=0;return 0!==n&&isFinite(n)&&(i=I(n)),i}function B(t,n){return function(e){return null!=e?(z(this,t,e),i.updateOffset(this,n),this):K(this,t)}}function K(t,n){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+n]():NaN}function z(t,n,i){t.isValid()&&!isNaN(i)&&("FullYear"===n&&P(t.year())&&1===t.month()&&29===t.date()?(i=Z(i),t._d["set"+(t._isUTC?"UTC":"")+n](i,t.month(),Mt(i,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+n](i))}var J,q=/\d/,V=/\d\d/,Q=/\d{3}/,X=/\d{4}/,tt=/[+-]?\d{6}/,nt=/\d\d?/,it=/\d\d\d\d?/,et=/\d\d\d\d\d\d?/,rt=/\d{1,3}/,st=/\d{1,4}/,ot=/[+-]?\d{1,6}/,ut=/\d+/,at=/[+-]?\d+/,ht=/Z|[+-]\d\d:?\d\d/gi,ct=/Z|[+-]\d\d(?::?\d\d)?/gi,lt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function dt(t,n,i){J[t]=x(n)?n:function(t,e){return t&&i?i:n}}function ft(t,n){return s(J,t)?J[t](n._strict,n._locale):new RegExp(function(t){return mt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,n,i,e,r){return n||i||e||r})))}(t))}function mt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}J={};var vt,pt={};function yt(t,n){var i,e,r=n;for("string"==typeof t&&(t=[t]),a(n)&&(r=function(t,i){i[n]=Z(t)}),e=t.length,i=0;i<e;i++)pt[t[i]]=r}function gt(t,n){yt(t,(function(t,i,e,r){e._w=e._w||{},n(t,e._w,e,r)}))}function wt(t,n,i){null!=n&&s(pt,t)&&pt[t](n,i._a,i,t)}function Mt(t,n){if(isNaN(t)||isNaN(n))return NaN;var i=function(t,n){return(t%n+n)%n}(n,12);return t+=(n-i)/12,1===i?P(t)?29:28:31-i%7%2}vt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var n;for(n=0;n<this.length;++n)if(this[n]===t)return n;return-1},H("M",["MM",2],"Mo",(function(){return this.month()+1})),H("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),H("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),W("month","M"),j("month",8),dt("M",nt),dt("MM",nt,V),dt("MMM",(function(t,n){return n.monthsShortRegex(t)})),dt("MMMM",(function(t,n){return n.monthsRegex(t)})),yt(["M","MM"],(function(t,n){n[1]=Z(t)-1})),yt(["MMM","MMMM"],(function(t,n,i,e){var r=i._locale.monthsParse(t,e,i._strict);null!=r?n[1]=r:f(i).invalidMonth=t}));var bt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),St="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Nt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Dt=lt,Yt=lt;function xt(t,n,i){var e,r,s,o=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],e=0;e<12;++e)s=d([2e3,e]),this._shortMonthsParse[e]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[e]=this.months(s,"").toLocaleLowerCase();return i?"MMM"===n?-1!==(r=vt.call(this._shortMonthsParse,o))?r:null:-1!==(r=vt.call(this._longMonthsParse,o))?r:null:"MMM"===n?-1!==(r=vt.call(this._shortMonthsParse,o))||-1!==(r=vt.call(this._longMonthsParse,o))?r:null:-1!==(r=vt.call(this._longMonthsParse,o))||-1!==(r=vt.call(this._shortMonthsParse,o))?r:null}function Ot(t,n){var i;if(!t.isValid())return t;if("string"==typeof n)if(/^\d+$/.test(n))n=Z(n);else if(!a(n=t.localeData().monthsParse(n)))return t;return i=Math.min(t.date(),Mt(t.year(),n)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](n,i),t}function kt(t){return null!=t?(Ot(this,t),i.updateOffset(this,!0),this):K(this,"Month")}function Et(){function t(t,n){return n.length-t.length}var n,i,e=[],r=[],s=[];for(n=0;n<12;n++)i=d([2e3,n]),e.push(this.monthsShort(i,"")),r.push(this.months(i,"")),s.push(this.months(i,"")),s.push(this.monthsShort(i,""));for(e.sort(t),r.sort(t),s.sort(t),n=0;n<12;n++)e[n]=mt(e[n]),r[n]=mt(r[n]);for(n=0;n<24;n++)s[n]=mt(s[n]);this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+e.join("|")+")","i")}function Rt(t){return P(t)?366:365}H("Y",0,0,(function(){var t=this.year();return t<=9999?E(t,4):"+"+t})),H(0,["YY",2],0,(function(){return this.year()%100})),H(0,["YYYY",4],0,"year"),H(0,["YYYYY",5],0,"year"),H(0,["YYYYYY",6,!0],0,"year"),W("year","y"),j("year",1),dt("Y",at),dt("YY",nt,V),dt("YYYY",st,X),dt("YYYYY",ot,tt),dt("YYYYYY",ot,tt),yt(["YYYYY","YYYYYY"],0),yt("YYYY",(function(t,n){n[0]=2===t.length?i.parseTwoDigitYear(t):Z(t)})),yt("YY",(function(t,n){n[0]=i.parseTwoDigitYear(t)})),yt("Y",(function(t,n){n[0]=parseInt(t,10)})),i.parseTwoDigitYear=function(t){return Z(t)+(Z(t)>68?1900:2e3)};var Tt=B("FullYear",!0);function Ct(t,n,i,e,r,s,o){var u;return t<100&&t>=0?(u=new Date(t+400,n,i,e,r,s,o),isFinite(u.getFullYear())&&u.setFullYear(t)):u=new Date(t,n,i,e,r,s,o),u}function _t(t){var n,i;return t<100&&t>=0?((i=Array.prototype.slice.call(arguments))[0]=t+400,n=new Date(Date.UTC.apply(null,i)),isFinite(n.getUTCFullYear())&&n.setUTCFullYear(t)):n=new Date(Date.UTC.apply(null,arguments)),n}function Ht(t,n,i){var e=7+n-i;return-(7+_t(t,0,e).getUTCDay()-n)%7+e-1}function Ft(t,n,i,e,r){var s,o,u=1+7*(n-1)+(7+i-e)%7+Ht(t,e,r);return u<=0?o=Rt(s=t-1)+u:u>Rt(t)?(s=t+1,o=u-Rt(t)):(s=t,o=u),{year:s,dayOfYear:o}}function At(t,n,i){var e,r,s=Ht(t.year(),n,i),o=Math.floor((t.dayOfYear()-s-1)/7)+1;return o<1?e=o+Ut(r=t.year()-1,n,i):o>Ut(t.year(),n,i)?(e=o-Ut(t.year(),n,i),r=t.year()+1):(r=t.year(),e=o),{week:e,year:r}}function Ut(t,n,i){var e=Ht(t,n,i),r=Ht(t+1,n,i);return(Rt(t)-e+r)/7}function Wt(t,n){return t.slice(n,7).concat(t.slice(0,n))}H("w",["ww",2],"wo","week"),H("W",["WW",2],"Wo","isoWeek"),W("week","w"),W("isoWeek","W"),j("week",5),j("isoWeek",5),dt("w",nt),dt("ww",nt,V),dt("W",nt),dt("WW",nt,V),gt(["w","ww","W","WW"],(function(t,n,i,e){n[e.substr(0,1)]=Z(t)})),H("d",0,"do","day"),H("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),H("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),H("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),H("e",0,0,"weekday"),H("E",0,0,"isoWeekday"),W("day","d"),W("weekday","e"),W("isoWeekday","E"),j("day",11),j("weekday",11),j("isoWeekday",11),dt("d",nt),dt("e",nt),dt("E",nt),dt("dd",(function(t,n){return n.weekdaysMinRegex(t)})),dt("ddd",(function(t,n){return n.weekdaysShortRegex(t)})),dt("dddd",(function(t,n){return n.weekdaysRegex(t)})),gt(["dd","ddd","dddd"],(function(t,n,i,e){var r=i._locale.weekdaysParse(t,e,i._strict);null!=r?n.d=r:f(i).invalidWeekday=t})),gt(["d","e","E"],(function(t,n,i,e){n[e]=Z(t)}));var $t="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Lt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Gt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),jt=lt,Pt=lt,It=lt;function Zt(t,n,i){var e,r,s,o=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],e=0;e<7;++e)s=d([2e3,1]).day(e),this._minWeekdaysParse[e]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[e]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[e]=this.weekdays(s,"").toLocaleLowerCase();return i?"dddd"===n?-1!==(r=vt.call(this._weekdaysParse,o))?r:null:"ddd"===n?-1!==(r=vt.call(this._shortWeekdaysParse,o))?r:null:-1!==(r=vt.call(this._minWeekdaysParse,o))?r:null:"dddd"===n?-1!==(r=vt.call(this._weekdaysParse,o))||-1!==(r=vt.call(this._shortWeekdaysParse,o))||-1!==(r=vt.call(this._minWeekdaysParse,o))?r:null:"ddd"===n?-1!==(r=vt.call(this._shortWeekdaysParse,o))||-1!==(r=vt.call(this._weekdaysParse,o))||-1!==(r=vt.call(this._minWeekdaysParse,o))?r:null:-1!==(r=vt.call(this._minWeekdaysParse,o))||-1!==(r=vt.call(this._weekdaysParse,o))||-1!==(r=vt.call(this._shortWeekdaysParse,o))?r:null}function Bt(){function t(t,n){return n.length-t.length}var n,i,e,r,s,o=[],u=[],a=[],h=[];for(n=0;n<7;n++)i=d([2e3,1]).day(n),e=mt(this.weekdaysMin(i,"")),r=mt(this.weekdaysShort(i,"")),s=mt(this.weekdays(i,"")),o.push(e),u.push(r),a.push(s),h.push(e),h.push(r),h.push(s);o.sort(t),u.sort(t),a.sort(t),h.sort(t),this._weekdaysRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Kt(){return this.hours()%12||12}function zt(t,n){H(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),n)}))}function Jt(t,n){return n._meridiemParse}H("H",["HH",2],0,"hour"),H("h",["hh",2],0,Kt),H("k",["kk",2],0,(function(){return this.hours()||24})),H("hmm",0,0,(function(){return""+Kt.apply(this)+E(this.minutes(),2)})),H("hmmss",0,0,(function(){return""+Kt.apply(this)+E(this.minutes(),2)+E(this.seconds(),2)})),H("Hmm",0,0,(function(){return""+this.hours()+E(this.minutes(),2)})),H("Hmmss",0,0,(function(){return""+this.hours()+E(this.minutes(),2)+E(this.seconds(),2)})),zt("a",!0),zt("A",!1),W("hour","h"),j("hour",13),dt("a",Jt),dt("A",Jt),dt("H",nt),dt("h",nt),dt("k",nt),dt("HH",nt,V),dt("hh",nt,V),dt("kk",nt,V),dt("hmm",it),dt("hmmss",et),dt("Hmm",it),dt("Hmmss",et),yt(["H","HH"],3),yt(["k","kk"],(function(t,n,i){var e=Z(t);n[3]=24===e?0:e})),yt(["a","A"],(function(t,n,i){i._isPm=i._locale.isPM(t),i._meridiem=t})),yt(["h","hh"],(function(t,n,i){n[3]=Z(t),f(i).bigHour=!0})),yt("hmm",(function(t,n,i){var e=t.length-2;n[3]=Z(t.substr(0,e)),n[4]=Z(t.substr(e)),f(i).bigHour=!0})),yt("hmmss",(function(t,n,i){var e=t.length-4,r=t.length-2;n[3]=Z(t.substr(0,e)),n[4]=Z(t.substr(e,2)),n[5]=Z(t.substr(r)),f(i).bigHour=!0})),yt("Hmm",(function(t,n,i){var e=t.length-2;n[3]=Z(t.substr(0,e)),n[4]=Z(t.substr(e))})),yt("Hmmss",(function(t,n,i){var e=t.length-4,r=t.length-2;n[3]=Z(t.substr(0,e)),n[4]=Z(t.substr(e,2)),n[5]=Z(t.substr(r))}));var qt,Vt=B("Hours",!0),Qt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:bt,monthsShort:St,week:{dow:0,doy:6},weekdays:$t,weekdaysMin:Gt,weekdaysShort:Lt,meridiemParse:/[ap]\.?m?\.?/i},Xt={},tn={};function nn(t,n){var i,e=Math.min(t.length,n.length);for(i=0;i<e;i+=1)if(t[i]!==n[i])return i;return e}function en(t){return t?t.toLowerCase().replace("_","-"):t}function rn(t){var n=null;if(void 0===Xt[t]&&"undefined"!=typeof module&&module&&module.exports&&function(t){return null!=t.match("^[^/\\\\]*$")}(t))try{n=qt._abbr,require("./locale/"+t),sn(n)}catch(n){Xt[t]=null}return Xt[t]}function sn(t,n){var i;return t&&((i=u(n)?un(t):on(t,n))?qt=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),qt._abbr}function on(t,n){if(null!==n){var i,e=Qt;if(n.abbr=t,null!=Xt[t])Y("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),e=Xt[t]._config;else if(null!=n.parentLocale)if(null!=Xt[n.parentLocale])e=Xt[n.parentLocale]._config;else{if(null==(i=rn(n.parentLocale)))return tn[n.parentLocale]||(tn[n.parentLocale]=[]),tn[n.parentLocale].push({name:t,config:n}),null;e=i._config}return Xt[t]=new k(O(e,n)),tn[t]&&tn[t].forEach((function(t){on(t.name,t.config)})),sn(t),Xt[t]}return delete Xt[t],null}function un(t){var n;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return qt;if(!e(t)){if(n=rn(t))return n;t=[t]}return function(t){for(var n,i,e,r,s=0;s<t.length;){for(n=(r=en(t[s]).split("-")).length,i=(i=en(t[s+1]))?i.split("-"):null;n>0;){if(e=rn(r.slice(0,n).join("-")))return e;if(i&&i.length>=n&&nn(r,i)>=n-1)break;n--}s++}return qt}(t)}function an(t){var n,i=t._a;return i&&-2===f(t).overflow&&(n=i[1]<0||i[1]>11?1:i[2]<1||i[2]>Mt(i[0],i[1])?2:i[3]<0||i[3]>24||24===i[3]&&(0!==i[4]||0!==i[5]||0!==i[6])?3:i[4]<0||i[4]>59?4:i[5]<0||i[5]>59?5:i[6]<0||i[6]>999?6:-1,f(t)._overflowDayOfYear&&(n<0||n>2)&&(n=2),f(t)._overflowWeeks&&-1===n&&(n=7),f(t)._overflowWeekday&&-1===n&&(n=8),f(t).overflow=n),t}var hn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,cn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ln=/Z|[+-]\d\d(?::?\d\d)?/,dn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],fn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],mn=/^\/?Date\((-?\d+)/i,vn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,pn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function yn(t){var n,i,e,r,s,o,u=t._i,a=hn.exec(u)||cn.exec(u),h=dn.length,c=fn.length;if(a){for(f(t).iso=!0,n=0,i=h;n<i;n++)if(dn[n][1].exec(a[1])){r=dn[n][0],e=!1!==dn[n][2];break}if(null==r)return void(t._isValid=!1);if(a[3]){for(n=0,i=c;n<i;n++)if(fn[n][1].exec(a[3])){s=(a[2]||" ")+fn[n][0];break}if(null==s)return void(t._isValid=!1)}if(!e&&null!=s)return void(t._isValid=!1);if(a[4]){if(!ln.exec(a[4]))return void(t._isValid=!1);o="Z"}t._f=r+(s||"")+(o||""),Sn(t)}else t._isValid=!1}function gn(t){var n=parseInt(t,10);return n<=49?2e3+n:n<=999?1900+n:n}function wn(t){var n,i,e,r,s,o,u,a,h=vn.exec(function(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}(t._i));if(h){if(i=h[4],e=h[3],r=h[2],s=h[5],o=h[6],u=h[7],a=[gn(i),St.indexOf(e),parseInt(r,10),parseInt(s,10),parseInt(o,10)],u&&a.push(parseInt(u,10)),n=a,!function(t,n,i){return!t||Lt.indexOf(t)===new Date(n[0],n[1],n[2]).getDay()||(f(i).weekdayMismatch=!0,i._isValid=!1,!1)}(h[1],n,t))return;t._a=n,t._tzm=function(t,n,i){if(t)return pn[t];if(n)return 0;var e=parseInt(i,10),r=e%100;return(e-r)/100*60+r}(h[8],h[9],h[10]),t._d=_t.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),f(t).rfc2822=!0}else t._isValid=!1}function Mn(t,n,i){return null!=t?t:null!=n?n:i}function bn(t){var n,e,r,s,o,u=[];if(!t._d){for(r=function(t){var n=new Date(i.now());return t._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}(t),t._w&&null==t._a[2]&&null==t._a[1]&&function(t){var n,i,e,r,s,o,u,a,h;null!=(n=t._w).GG||null!=n.W||null!=n.E?(s=1,o=4,i=Mn(n.GG,t._a[0],At(Yn(),1,4).year),e=Mn(n.W,1),((r=Mn(n.E,1))<1||r>7)&&(a=!0)):(s=t._locale._week.dow,o=t._locale._week.doy,h=At(Yn(),s,o),i=Mn(n.gg,t._a[0],h.year),e=Mn(n.w,h.week),null!=n.d?((r=n.d)<0||r>6)&&(a=!0):null!=n.e?(r=n.e+s,(n.e<0||n.e>6)&&(a=!0)):r=s),e<1||e>Ut(i,s,o)?f(t)._overflowWeeks=!0:null!=a?f(t)._overflowWeekday=!0:(u=Ft(i,e,r,s,o),t._a[0]=u.year,t._dayOfYear=u.dayOfYear)}(t),null!=t._dayOfYear&&(o=Mn(t._a[0],r[0]),(t._dayOfYear>Rt(o)||0===t._dayOfYear)&&(f(t)._overflowDayOfYear=!0),e=_t(o,0,t._dayOfYear),t._a[1]=e.getUTCMonth(),t._a[2]=e.getUTCDate()),n=0;n<3&&null==t._a[n];++n)t._a[n]=u[n]=r[n];for(;n<7;n++)t._a[n]=u[n]=null==t._a[n]?2===n?1:0:t._a[n];24===t._a[3]&&0===t._a[4]&&0===t._a[5]&&0===t._a[6]&&(t._nextDay=!0,t._a[3]=0),t._d=(t._useUTC?_t:Ct).apply(null,u),s=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[3]=24),t._w&&void 0!==t._w.d&&t._w.d!==s&&(f(t).weekdayMismatch=!0)}}function Sn(t){if(t._f!==i.ISO_8601)if(t._f!==i.RFC_2822){t._a=[],f(t).empty=!0;var n,e,r,s,o,u,a,h=""+t._i,c=h.length,l=0;for(a=(r=A(t._f,t._locale).match(R)||[]).length,n=0;n<a;n++)s=r[n],(e=(h.match(ft(s,t))||[])[0])&&((o=h.substr(0,h.indexOf(e))).length>0&&f(t).unusedInput.push(o),h=h.slice(h.indexOf(e)+e.length),l+=e.length),_[s]?(e?f(t).empty=!1:f(t).unusedTokens.push(s),wt(s,e,t)):t._strict&&!e&&f(t).unusedTokens.push(s);f(t).charsLeftOver=c-l,h.length>0&&f(t).unusedInput.push(h),t._a[3]<=12&&!0===f(t).bigHour&&t._a[3]>0&&(f(t).bigHour=void 0),f(t).parsedDateParts=t._a.slice(0),f(t).meridiem=t._meridiem,t._a[3]=function(t,n,i){var e;return null==i?n:null!=t.meridiemHour?t.meridiemHour(n,i):null!=t.isPM?((e=t.isPM(i))&&n<12&&(n+=12),e||12!==n||(n=0),n):n}(t._locale,t._a[3],t._meridiem),null!==(u=f(t).era)&&(t._a[0]=t._locale.erasConvertYear(u,t._a[0])),bn(t),an(t)}else wn(t);else yn(t)}function Nn(t){var n=t._i,s=t._f;return t._locale=t._locale||un(t._l),null===n||void 0===s&&""===n?v({nullInput:!0}):("string"==typeof n&&(t._i=n=t._locale.preparse(n)),M(n)?new w(an(n)):(h(n)?t._d=n:e(s)?function(t){var n,i,e,r,s,o,u=!1,a=t._f.length;if(0===a)return f(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;r<a;r++)s=0,o=!1,n=g({},t),null!=t._useUTC&&(n._useUTC=t._useUTC),n._f=t._f[r],Sn(n),m(n)&&(o=!0),s+=f(n).charsLeftOver,s+=10*f(n).unusedTokens.length,f(n).score=s,u?s<e&&(e=s,i=n):(null==e||s<e||o)&&(e=s,i=n,o&&(u=!0));l(t,i||n)}(t):s?Sn(t):function(t){var n=t._i;u(n)?t._d=new Date(i.now()):h(n)?t._d=new Date(n.valueOf()):"string"==typeof n?function(t){var n=mn.exec(t._i);null===n?(yn(t),!1===t._isValid&&(delete t._isValid,wn(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:i.createFromInputFallback(t)))):t._d=new Date(+n[1])}(t):e(n)?(t._a=c(n.slice(0),(function(t){return parseInt(t,10)})),bn(t)):r(n)?function(t){if(!t._d){var n=L(t._i),i=void 0===n.day?n.date:n.day;t._a=c([n.year,n.month,i,n.hour,n.minute,n.second,n.millisecond],(function(t){return t&&parseInt(t,10)})),bn(t)}}(t):a(n)?t._d=new Date(n):i.createFromInputFallback(t)}(t),m(t)||(t._d=null),t))}function Dn(t,n,i,s,u){var a,h={};return!0!==n&&!1!==n||(s=n,n=void 0),!0!==i&&!1!==i||(s=i,i=void 0),(r(t)&&o(t)||e(t)&&0===t.length)&&(t=void 0),h._isAMomentObject=!0,h._useUTC=h._isUTC=u,h._l=i,h._i=t,h._f=n,h._strict=s,(a=new w(an(Nn(h))))._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function Yn(t,n,i,e){return Dn(t,n,i,e,!1)}i.createFromInputFallback=S("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),i.ISO_8601=function(){},i.RFC_2822=function(){};var xn=S("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Yn.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:v()})),On=S("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Yn.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:v()}));function kn(t,n){var i,r;if(1===n.length&&e(n[0])&&(n=n[0]),!n.length)return Yn();for(i=n[0],r=1;r<n.length;++r)n[r].isValid()&&!n[r][t](i)||(i=n[r]);return i}var En=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Rn(t){var n=L(t),i=n.year||0,e=n.quarter||0,r=n.month||0,o=n.week||n.isoWeek||0,u=n.day||0,a=n.hour||0,h=n.minute||0,c=n.second||0,l=n.millisecond||0;this._isValid=function(t){var n,i,e=!1,r=En.length;for(n in t)if(s(t,n)&&(-1===vt.call(En,n)||null!=t[n]&&isNaN(t[n])))return!1;for(i=0;i<r;++i)if(t[En[i]]){if(e)return!1;parseFloat(t[En[i]])!==Z(t[En[i]])&&(e=!0)}return!0}(n),this._milliseconds=+l+1e3*c+6e4*h+1e3*a*60*60,this._days=+u+7*o,this._months=+r+3*e+12*i,this._data={},this._locale=un(),this._bubble()}function Tn(t){return t instanceof Rn}function Cn(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function _n(t,n){H(t,0,0,(function(){var t=this.utcOffset(),i="+";return t<0&&(t=-t,i="-"),i+E(~~(t/60),2)+n+E(~~t%60,2)}))}_n("Z",":"),_n("ZZ",""),dt("Z",ct),dt("ZZ",ct),yt(["Z","ZZ"],(function(t,n,i){i._useUTC=!0,i._tzm=Fn(ct,t)}));var Hn=/([\+\-]|\d\d)/gi;function Fn(t,n){var i,e,r=(n||"").match(t);return null===r?null:0===(e=60*(i=((r[r.length-1]||[])+"").match(Hn)||["-",0,0])[1]+Z(i[2]))?0:"+"===i[0]?e:-e}function An(t,n){var e,r;return n._isUTC?(e=n.clone(),r=(M(t)||h(t)?t.valueOf():Yn(t).valueOf())-e.valueOf(),e._d.setTime(e._d.valueOf()+r),i.updateOffset(e,!1),e):Yn(t).local()}function Un(t){return-Math.round(t._d.getTimezoneOffset())}function Wn(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var $n=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ln=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Gn(t,n){var i,e,r,o,u,h,c=t,l=null;return Tn(t)?c={ms:t._milliseconds,d:t._days,M:t._months}:a(t)||!isNaN(+t)?(c={},n?c[n]=+t:c.milliseconds=+t):(l=$n.exec(t))?(i="-"===l[1]?-1:1,c={y:0,d:Z(l[2])*i,h:Z(l[3])*i,m:Z(l[4])*i,s:Z(l[5])*i,ms:Z(Cn(1e3*l[6]))*i}):(l=Ln.exec(t))?(i="-"===l[1]?-1:1,c={y:jn(l[2],i),M:jn(l[3],i),w:jn(l[4],i),d:jn(l[5],i),h:jn(l[6],i),m:jn(l[7],i),s:jn(l[8],i)}):null==c?c={}:"object"==typeof c&&("from"in c||"to"in c)&&(o=Yn(c.from),u=Yn(c.to),r=o.isValid()&&u.isValid()?(u=An(u,o),o.isBefore(u)?h=Pn(o,u):((h=Pn(u,o)).milliseconds=-h.milliseconds,h.months=-h.months),h):{milliseconds:0,months:0},(c={}).ms=r.milliseconds,c.M=r.months),e=new Rn(c),Tn(t)&&s(t,"_locale")&&(e._locale=t._locale),Tn(t)&&s(t,"_isValid")&&(e._isValid=t._isValid),e}function jn(t,n){var i=t&&parseFloat(t.replace(",","."));return(isNaN(i)?0:i)*n}function Pn(t,n){var i={};return i.months=n.month()-t.month()+12*(n.year()-t.year()),t.clone().add(i.months,"M").isAfter(n)&&--i.months,i.milliseconds=+n-+t.clone().add(i.months,"M"),i}function In(t,n){return function(i,e){var r;return null===e||isNaN(+e)||(Y(n,"moment()."+n+"(period, number) is deprecated. Please use moment()."+n+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=i,i=e,e=r),Zn(this,Gn(i,e),t),this}}function Zn(t,n,e,r){var s=n._milliseconds,o=Cn(n._days),u=Cn(n._months);t.isValid()&&(r=null==r||r,u&&Ot(t,K(t,"Month")+u*e),o&&z(t,"Date",K(t,"Date")+o*e),s&&t._d.setTime(t._d.valueOf()+s*e),r&&i.updateOffset(t,o||u))}Gn.fn=Rn.prototype,Gn.invalid=function(){return Gn(NaN)};var Bn=In(1,"add"),Kn=In(-1,"subtract");function zn(t){return"string"==typeof t||t instanceof String}function Jn(t){return M(t)||h(t)||zn(t)||a(t)||function(t){var n=e(t),i=!1;return n&&(i=0===t.filter((function(n){return!a(n)&&zn(t)})).length),n&&i}(t)||function(t){var n,i,e=r(t)&&!o(t),u=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],h=a.length;for(n=0;n<h;n+=1)i=a[n],u=u||s(t,i);return e&&u}(t)||null==t}function qn(t){var n,i=r(t)&&!o(t),e=!1,u=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(n=0;n<u.length;n+=1)e=e||s(t,u[n]);return i&&e}function Vn(t,n){if(t.date()<n.date())return-Vn(n,t);var i=12*(n.year()-t.year())+(n.month()-t.month()),e=t.clone().add(i,"months");return-(i+(n-e<0?(n-e)/(e-t.clone().add(i-1,"months")):(n-e)/(t.clone().add(i+1,"months")-e)))||0}function Qn(t){var n;return void 0===t?this._locale._abbr:(null!=(n=un(t))&&(this._locale=n),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Xn=S("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function ti(){return this._locale}var ni=1e3,ii=6e4,ei=36e5,ri=126227808e5;function si(t,n){return(t%n+n)%n}function oi(t,n,i){return t<100&&t>=0?new Date(t+400,n,i)-ri:new Date(t,n,i).valueOf()}function ui(t,n,i){return t<100&&t>=0?Date.UTC(t+400,n,i)-ri:Date.UTC(t,n,i)}function ai(t,n){return n.erasAbbrRegex(t)}function hi(){var t,n,i=[],e=[],r=[],s=[],o=this.eras();for(t=0,n=o.length;t<n;++t)e.push(mt(o[t].name)),i.push(mt(o[t].abbr)),r.push(mt(o[t].narrow)),s.push(mt(o[t].name)),s.push(mt(o[t].abbr)),s.push(mt(o[t].narrow));this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+e.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}function ci(t,n){H(0,[t,t.length],0,n)}function li(t,n,i,e,r){var s;return null==t?At(this,e,r).year:(n>(s=Ut(t,e,r))&&(n=s),di.call(this,t,n,i,e,r))}function di(t,n,i,e,r){var s=Ft(t,n,i,e,r),o=_t(s.year,0,s.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}H("N",0,0,"eraAbbr"),H("NN",0,0,"eraAbbr"),H("NNN",0,0,"eraAbbr"),H("NNNN",0,0,"eraName"),H("NNNNN",0,0,"eraNarrow"),H("y",["y",1],"yo","eraYear"),H("y",["yy",2],0,"eraYear"),H("y",["yyy",3],0,"eraYear"),H("y",["yyyy",4],0,"eraYear"),dt("N",ai),dt("NN",ai),dt("NNN",ai),dt("NNNN",(function(t,n){return n.erasNameRegex(t)})),dt("NNNNN",(function(t,n){return n.erasNarrowRegex(t)})),yt(["N","NN","NNN","NNNN","NNNNN"],(function(t,n,i,e){var r=i._locale.erasParse(t,e,i._strict);r?f(i).era=r:f(i).invalidEra=t})),dt("y",ut),dt("yy",ut),dt("yyy",ut),dt("yyyy",ut),dt("yo",(function(t,n){return n._eraYearOrdinalRegex||ut})),yt(["y","yy","yyy","yyyy"],0),yt(["yo"],(function(t,n,i,e){var r;i._locale._eraYearOrdinalRegex&&(r=t.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?n[0]=i._locale.eraYearOrdinalParse(t,r):n[0]=parseInt(t,10)})),H(0,["gg",2],0,(function(){return this.weekYear()%100})),H(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),ci("gggg","weekYear"),ci("ggggg","weekYear"),ci("GGGG","isoWeekYear"),ci("GGGGG","isoWeekYear"),W("weekYear","gg"),W("isoWeekYear","GG"),j("weekYear",1),j("isoWeekYear",1),dt("G",at),dt("g",at),dt("GG",nt,V),dt("gg",nt,V),dt("GGGG",st,X),dt("gggg",st,X),dt("GGGGG",ot,tt),dt("ggggg",ot,tt),gt(["gggg","ggggg","GGGG","GGGGG"],(function(t,n,i,e){n[e.substr(0,2)]=Z(t)})),gt(["gg","GG"],(function(t,n,e,r){n[r]=i.parseTwoDigitYear(t)})),H("Q",0,"Qo","quarter"),W("quarter","Q"),j("quarter",7),dt("Q",q),yt("Q",(function(t,n){n[1]=3*(Z(t)-1)})),H("D",["DD",2],"Do","date"),W("date","D"),j("date",9),dt("D",nt),dt("DD",nt,V),dt("Do",(function(t,n){return t?n._dayOfMonthOrdinalParse||n._ordinalParse:n._dayOfMonthOrdinalParseLenient})),yt(["D","DD"],2),yt("Do",(function(t,n){n[2]=Z(t.match(nt)[0])}));var fi=B("Date",!0);H("DDD",["DDDD",3],"DDDo","dayOfYear"),W("dayOfYear","DDD"),j("dayOfYear",4),dt("DDD",rt),dt("DDDD",Q),yt(["DDD","DDDD"],(function(t,n,i){i._dayOfYear=Z(t)})),H("m",["mm",2],0,"minute"),W("minute","m"),j("minute",14),dt("m",nt),dt("mm",nt,V),yt(["m","mm"],4);var mi=B("Minutes",!1);H("s",["ss",2],0,"second"),W("second","s"),j("second",15),dt("s",nt),dt("ss",nt,V),yt(["s","ss"],5);var vi,pi,yi=B("Seconds",!1);for(H("S",0,0,(function(){return~~(this.millisecond()/100)})),H(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),H(0,["SSS",3],0,"millisecond"),H(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),H(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),H(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),H(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),H(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),H(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),W("millisecond","ms"),j("millisecond",16),dt("S",rt,q),dt("SS",rt,V),dt("SSS",rt,Q),vi="SSSS";vi.length<=9;vi+="S")dt(vi,ut);function gi(t,n){n[6]=Z(1e3*("0."+t))}for(vi="S";vi.length<=9;vi+="S")yt(vi,gi);pi=B("Milliseconds",!1),H("z",0,0,"zoneAbbr"),H("zz",0,0,"zoneName");var wi=w.prototype;function Mi(t){return t}wi.add=Bn,wi.calendar=function(t,n){1===arguments.length&&(arguments[0]?Jn(arguments[0])?(t=arguments[0],n=void 0):qn(arguments[0])&&(n=arguments[0],t=void 0):(t=void 0,n=void 0));var e=t||Yn(),r=An(e,this).startOf("day"),s=i.calendarFormat(this,r)||"sameElse",o=n&&(x(n[s])?n[s].call(this,e):n[s]);return this.format(o||this.localeData().calendar(s,this,Yn(e)))},wi.clone=function(){return new w(this)},wi.diff=function(t,n,i){var e,r,s;if(!this.isValid())return NaN;if(!(e=An(t,this)).isValid())return NaN;switch(r=6e4*(e.utcOffset()-this.utcOffset()),n=$(n)){case"year":s=Vn(this,e)/12;break;case"month":s=Vn(this,e);break;case"quarter":s=Vn(this,e)/3;break;case"second":s=(this-e)/1e3;break;case"minute":s=(this-e)/6e4;break;case"hour":s=(this-e)/36e5;break;case"day":s=(this-e-r)/864e5;break;case"week":s=(this-e-r)/6048e5;break;default:s=this-e}return i?s:I(s)},wi.endOf=function(t){var n,e;if(void 0===(t=$(t))||"millisecond"===t||!this.isValid())return this;switch(e=this._isUTC?ui:oi,t){case"year":n=e(this.year()+1,0,1)-1;break;case"quarter":n=e(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":n=e(this.year(),this.month()+1,1)-1;break;case"week":n=e(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":n=e(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":n=e(this.year(),this.month(),this.date()+1)-1;break;case"hour":n=this._d.valueOf(),n+=ei-si(n+(this._isUTC?0:this.utcOffset()*ii),ei)-1;break;case"minute":n=this._d.valueOf(),n+=ii-si(n,ii)-1;break;case"second":n=this._d.valueOf(),n+=ni-si(n,ni)-1}return this._d.setTime(n),i.updateOffset(this,!0),this},wi.format=function(t){t||(t=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var n=F(this,t);return this.localeData().postformat(n)},wi.from=function(t,n){return this.isValid()&&(M(t)&&t.isValid()||Yn(t).isValid())?Gn({to:this,from:t}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()},wi.fromNow=function(t){return this.from(Yn(),t)},wi.to=function(t,n){return this.isValid()&&(M(t)&&t.isValid()||Yn(t).isValid())?Gn({from:this,to:t}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()},wi.toNow=function(t){return this.to(Yn(),t)},wi.get=function(t){return x(this[t=$(t)])?this[t]():this},wi.invalidAt=function(){return f(this).overflow},wi.isAfter=function(t,n){var i=M(t)?t:Yn(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(n=$(n)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(n).valueOf())},wi.isBefore=function(t,n){var i=M(t)?t:Yn(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(n=$(n)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(n).valueOf()<i.valueOf())},wi.isBetween=function(t,n,i,e){var r=M(t)?t:Yn(t),s=M(n)?n:Yn(n);return!!(this.isValid()&&r.isValid()&&s.isValid())&&("("===(e=e||"()")[0]?this.isAfter(r,i):!this.isBefore(r,i))&&(")"===e[1]?this.isBefore(s,i):!this.isAfter(s,i))},wi.isSame=function(t,n){var i,e=M(t)?t:Yn(t);return!(!this.isValid()||!e.isValid())&&("millisecond"===(n=$(n)||"millisecond")?this.valueOf()===e.valueOf():(i=e.valueOf(),this.clone().startOf(n).valueOf()<=i&&i<=this.clone().endOf(n).valueOf()))},wi.isSameOrAfter=function(t,n){return this.isSame(t,n)||this.isAfter(t,n)},wi.isSameOrBefore=function(t,n){return this.isSame(t,n)||this.isBefore(t,n)},wi.isValid=function(){return m(this)},wi.lang=Xn,wi.locale=Qn,wi.localeData=ti,wi.max=On,wi.min=xn,wi.parsingFlags=function(){return l({},f(this))},wi.set=function(t,n){if("object"==typeof t){var i,e=function(t){var n,i=[];for(n in t)s(t,n)&&i.push({unit:n,priority:G[n]});return i.sort((function(t,n){return t.priority-n.priority})),i}(t=L(t)),r=e.length;for(i=0;i<r;i++)this[e[i].unit](t[e[i].unit])}else if(x(this[t=$(t)]))return this[t](n);return this},wi.startOf=function(t){var n,e;if(void 0===(t=$(t))||"millisecond"===t||!this.isValid())return this;switch(e=this._isUTC?ui:oi,t){case"year":n=e(this.year(),0,1);break;case"quarter":n=e(this.year(),this.month()-this.month()%3,1);break;case"month":n=e(this.year(),this.month(),1);break;case"week":n=e(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":n=e(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":n=e(this.year(),this.month(),this.date());break;case"hour":n=this._d.valueOf(),n-=si(n+(this._isUTC?0:this.utcOffset()*ii),ei);break;case"minute":n=this._d.valueOf(),n-=si(n,ii);break;case"second":n=this._d.valueOf(),n-=si(n,ni)}return this._d.setTime(n),i.updateOffset(this,!0),this},wi.subtract=Kn,wi.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},wi.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},wi.toDate=function(){return new Date(this.valueOf())},wi.toISOString=function(t){if(!this.isValid())return null;var n=!0!==t,i=n?this.clone().utc():this;return i.year()<0||i.year()>9999?F(i,n?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):x(Date.prototype.toISOString)?n?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",F(i,"Z")):F(i,n?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},wi.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,n,i,e="moment",r="";return this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),t="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=r+'[")]',this.format(t+n+"-MM-DD[T]HH:mm:ss.SSS"+i)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(wi[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),wi.toJSON=function(){return this.isValid()?this.toISOString():null},wi.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},wi.unix=function(){return Math.floor(this.valueOf()/1e3)},wi.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},wi.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},wi.eraName=function(){var t,n,i,e=this.localeData().eras();for(t=0,n=e.length;t<n;++t){if(i=this.clone().startOf("day").valueOf(),e[t].since<=i&&i<=e[t].until)return e[t].name;if(e[t].until<=i&&i<=e[t].since)return e[t].name}return""},wi.eraNarrow=function(){var t,n,i,e=this.localeData().eras();for(t=0,n=e.length;t<n;++t){if(i=this.clone().startOf("day").valueOf(),e[t].since<=i&&i<=e[t].until)return e[t].narrow;if(e[t].until<=i&&i<=e[t].since)return e[t].narrow}return""},wi.eraAbbr=function(){var t,n,i,e=this.localeData().eras();for(t=0,n=e.length;t<n;++t){if(i=this.clone().startOf("day").valueOf(),e[t].since<=i&&i<=e[t].until)return e[t].abbr;if(e[t].until<=i&&i<=e[t].since)return e[t].abbr}return""},wi.eraYear=function(){var t,n,e,r,s=this.localeData().eras();for(t=0,n=s.length;t<n;++t)if(e=s[t].since<=s[t].until?1:-1,r=this.clone().startOf("day").valueOf(),s[t].since<=r&&r<=s[t].until||s[t].until<=r&&r<=s[t].since)return(this.year()-i(s[t].since).year())*e+s[t].offset;return this.year()},wi.year=Tt,wi.isLeapYear=function(){return P(this.year())},wi.weekYear=function(t){return li.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},wi.isoWeekYear=function(t){return li.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},wi.quarter=wi.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},wi.month=kt,wi.daysInMonth=function(){return Mt(this.year(),this.month())},wi.week=wi.weeks=function(t){var n=this.localeData().week(this);return null==t?n:this.add(7*(t-n),"d")},wi.isoWeek=wi.isoWeeks=function(t){var n=At(this,1,4).week;return null==t?n:this.add(7*(t-n),"d")},wi.weeksInYear=function(){var t=this.localeData()._week;return Ut(this.year(),t.dow,t.doy)},wi.weeksInWeekYear=function(){var t=this.localeData()._week;return Ut(this.weekYear(),t.dow,t.doy)},wi.isoWeeksInYear=function(){return Ut(this.year(),1,4)},wi.isoWeeksInISOWeekYear=function(){return Ut(this.isoWeekYear(),1,4)},wi.date=fi,wi.day=wi.days=function(t){if(!this.isValid())return null!=t?this:NaN;var n=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=function(t,n){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=n.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-n,"d")):n},wi.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var n=(this.day()+7-this.localeData()._week.dow)%7;return null==t?n:this.add(t-n,"d")},wi.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var n=function(t,n){return"string"==typeof t?n.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?n:n-7)}return this.day()||7},wi.dayOfYear=function(t){var n=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?n:this.add(t-n,"d")},wi.hour=wi.hours=Vt,wi.minute=wi.minutes=mi,wi.second=wi.seconds=yi,wi.millisecond=wi.milliseconds=pi,wi.utcOffset=function(t,n,e){var r,s=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=Fn(ct,t)))return this}else Math.abs(t)<16&&!e&&(t*=60);return!this._isUTC&&n&&(r=Un(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,"m"),s!==t&&(!n||this._changeInProgress?Zn(this,Gn(t-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?s:Un(this)},wi.utc=function(t){return this.utcOffset(0,t)},wi.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Un(this),"m")),this},wi.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=Fn(ht,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},wi.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Yn(t).utcOffset():0,(this.utcOffset()-t)%60==0)},wi.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},wi.isLocal=function(){return!!this.isValid()&&!this._isUTC},wi.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},wi.isUtc=Wn,wi.isUTC=Wn,wi.zoneAbbr=function(){return this._isUTC?"UTC":""},wi.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},wi.dates=S("dates accessor is deprecated. Use date instead.",fi),wi.months=S("months accessor is deprecated. Use month instead",kt),wi.years=S("years accessor is deprecated. Use year instead",Tt),wi.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(t,n){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,n),this):-this.utcOffset()})),wi.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!u(this._isDSTShifted))return this._isDSTShifted;var t,n={};return g(n,this),(n=Nn(n))._a?(t=n._isUTC?d(n._a):Yn(n._a),this._isDSTShifted=this.isValid()&&function(t,n,i){var e,r=Math.min(t.length,n.length),s=Math.abs(t.length-n.length),o=0;for(e=0;e<r;e++)(i&&t[e]!==n[e]||!i&&Z(t[e])!==Z(n[e]))&&o++;return o+s}(n._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var bi=k.prototype;function Si(t,n,i,e){var r=un(),s=d().set(e,n);return r[i](s,t)}function Ni(t,n,i){if(a(t)&&(n=t,t=void 0),t=t||"",null!=n)return Si(t,n,i,"month");var e,r=[];for(e=0;e<12;e++)r[e]=Si(t,e,i,"month");return r}function Di(t,n,i,e){"boolean"==typeof t?(a(n)&&(i=n,n=void 0),n=n||""):(i=n=t,t=!1,a(n)&&(i=n,n=void 0),n=n||"");var r,s=un(),o=t?s._week.dow:0,u=[];if(null!=i)return Si(n,(i+o)%7,e,"day");for(r=0;r<7;r++)u[r]=Si(n,(r+o)%7,e,"day");return u}bi.calendar=function(t,n,i){var e=this._calendar[t]||this._calendar.sameElse;return x(e)?e.call(n,i):e},bi.longDateFormat=function(t){var n=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return n||!i?n:(this._longDateFormat[t]=i.match(R).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])},bi.invalidDate=function(){return this._invalidDate},bi.ordinal=function(t){return this._ordinal.replace("%d",t)},bi.preparse=Mi,bi.postformat=Mi,bi.relativeTime=function(t,n,i,e){var r=this._relativeTime[i];return x(r)?r(t,n,i,e):r.replace(/%d/i,t)},bi.pastFuture=function(t,n){var i=this._relativeTime[t>0?"future":"past"];return x(i)?i(n):i.replace(/%s/i,n)},bi.set=function(t){var n,i;for(i in t)s(t,i)&&(x(n=t[i])?this[i]=n:this["_"+i]=n);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},bi.eras=function(t,n){var e,r,s,o=this._eras||un("en")._eras;for(e=0,r=o.length;e<r;++e)switch("string"==typeof o[e].since&&(s=i(o[e].since).startOf("day"),o[e].since=s.valueOf()),typeof o[e].until){case"undefined":o[e].until=1/0;break;case"string":s=i(o[e].until).startOf("day").valueOf(),o[e].until=s.valueOf()}return o},bi.erasParse=function(t,n,i){var e,r,s,o,u,a=this.eras();for(t=t.toUpperCase(),e=0,r=a.length;e<r;++e)if(s=a[e].name.toUpperCase(),o=a[e].abbr.toUpperCase(),u=a[e].narrow.toUpperCase(),i)switch(n){case"N":case"NN":case"NNN":if(o===t)return a[e];break;case"NNNN":if(s===t)return a[e];break;case"NNNNN":if(u===t)return a[e]}else if([s,o,u].indexOf(t)>=0)return a[e]},bi.erasConvertYear=function(t,n){var e=t.since<=t.until?1:-1;return void 0===n?i(t.since).year():i(t.since).year()+(n-t.offset)*e},bi.erasAbbrRegex=function(t){return s(this,"_erasAbbrRegex")||hi.call(this),t?this._erasAbbrRegex:this._erasRegex},bi.erasNameRegex=function(t){return s(this,"_erasNameRegex")||hi.call(this),t?this._erasNameRegex:this._erasRegex},bi.erasNarrowRegex=function(t){return s(this,"_erasNarrowRegex")||hi.call(this),t?this._erasNarrowRegex:this._erasRegex},bi.months=function(t,n){return t?e(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Nt).test(n)?"format":"standalone"][t.month()]:e(this._months)?this._months:this._months.standalone},bi.monthsShort=function(t,n){return t?e(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Nt.test(n)?"format":"standalone"][t.month()]:e(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},bi.monthsParse=function(t,n,i){var e,r,s;if(this._monthsParseExact)return xt.call(this,t,n,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),e=0;e<12;e++){if(r=d([2e3,e]),i&&!this._longMonthsParse[e]&&(this._longMonthsParse[e]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[e]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),i||this._monthsParse[e]||(s="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[e]=new RegExp(s.replace(".",""),"i")),i&&"MMMM"===n&&this._longMonthsParse[e].test(t))return e;if(i&&"MMM"===n&&this._shortMonthsParse[e].test(t))return e;if(!i&&this._monthsParse[e].test(t))return e}},bi.monthsRegex=function(t){return this._monthsParseExact?(s(this,"_monthsRegex")||Et.call(this),t?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=Yt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},bi.monthsShortRegex=function(t){return this._monthsParseExact?(s(this,"_monthsRegex")||Et.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=Dt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},bi.week=function(t){return At(t,this._week.dow,this._week.doy).week},bi.firstDayOfYear=function(){return this._week.doy},bi.firstDayOfWeek=function(){return this._week.dow},bi.weekdays=function(t,n){var i=e(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(n)?"format":"standalone"];return!0===t?Wt(i,this._week.dow):t?i[t.day()]:i},bi.weekdaysMin=function(t){return!0===t?Wt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},bi.weekdaysShort=function(t){return!0===t?Wt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},bi.weekdaysParse=function(t,n,i){var e,r,s;if(this._weekdaysParseExact)return Zt.call(this,t,n,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),e=0;e<7;e++){if(r=d([2e3,1]).day(e),i&&!this._fullWeekdaysParse[e]&&(this._fullWeekdaysParse[e]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[e]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[e]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[e]||(s="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[e]=new RegExp(s.replace(".",""),"i")),i&&"dddd"===n&&this._fullWeekdaysParse[e].test(t))return e;if(i&&"ddd"===n&&this._shortWeekdaysParse[e].test(t))return e;if(i&&"dd"===n&&this._minWeekdaysParse[e].test(t))return e;if(!i&&this._weekdaysParse[e].test(t))return e}},bi.weekdaysRegex=function(t){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Bt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=jt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},bi.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Bt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Pt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},bi.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Bt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=It),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},bi.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},bi.meridiem=function(t,n,i){return t>11?i?"pm":"PM":i?"am":"AM"},sn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var n=t%10;return t+(1===Z(t%100/10)?"th":1===n?"st":2===n?"nd":3===n?"rd":"th")}}),i.lang=S("moment.lang is deprecated. Use moment.locale instead.",sn),i.langData=S("moment.langData is deprecated. Use moment.localeData instead.",un);var Yi=Math.abs;function xi(t,n,i,e){var r=Gn(n,i);return t._milliseconds+=e*r._milliseconds,t._days+=e*r._days,t._months+=e*r._months,t._bubble()}function Oi(t){return t<0?Math.floor(t):Math.ceil(t)}function ki(t){return 4800*t/146097}function Ei(t){return 146097*t/4800}function Ri(t){return function(){return this.as(t)}}var Ti=Ri("ms"),Ci=Ri("s"),_i=Ri("m"),Hi=Ri("h"),Fi=Ri("d"),Ai=Ri("w"),Ui=Ri("M"),Wi=Ri("Q"),$i=Ri("y");function Li(t){return function(){return this.isValid()?this._data[t]:NaN}}var Gi=Li("milliseconds"),ji=Li("seconds"),Pi=Li("minutes"),Ii=Li("hours"),Zi=Li("days"),Bi=Li("months"),Ki=Li("years"),zi=Math.round,Ji={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function qi(t,n,i,e,r){return r.relativeTime(n||1,!!i,t,e)}var Vi=Math.abs;function Qi(t){return(t>0)-(t<0)||+t}function Xi(){if(!this.isValid())return this.localeData().invalidDate();var t,n,i,e,r,s,o,u,a=Vi(this._milliseconds)/1e3,h=Vi(this._days),c=Vi(this._months),l=this.asSeconds();return l?(t=I(a/60),n=I(t/60),a%=60,t%=60,i=I(c/12),c%=12,e=a?a.toFixed(3).replace(/\.?0+$/,""):"",r=l<0?"-":"",s=Qi(this._months)!==Qi(l)?"-":"",o=Qi(this._days)!==Qi(l)?"-":"",u=Qi(this._milliseconds)!==Qi(l)?"-":"",r+"P"+(i?s+i+"Y":"")+(c?s+c+"M":"")+(h?o+h+"D":"")+(n||t||a?"T":"")+(n?u+n+"H":"")+(t?u+t+"M":"")+(a?u+e+"S":"")):"P0D"}var te=Rn.prototype;return te.isValid=function(){return this._isValid},te.abs=function(){var t=this._data;return this._milliseconds=Yi(this._milliseconds),this._days=Yi(this._days),this._months=Yi(this._months),t.milliseconds=Yi(t.milliseconds),t.seconds=Yi(t.seconds),t.minutes=Yi(t.minutes),t.hours=Yi(t.hours),t.months=Yi(t.months),t.years=Yi(t.years),this},te.add=function(t,n){return xi(this,t,n,1)},te.subtract=function(t,n){return xi(this,t,n,-1)},te.as=function(t){if(!this.isValid())return NaN;var n,i,e=this._milliseconds;if("month"===(t=$(t))||"quarter"===t||"year"===t)switch(n=this._days+e/864e5,i=this._months+ki(n),t){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(n=this._days+Math.round(Ei(this._months)),t){case"week":return n/7+e/6048e5;case"day":return n+e/864e5;case"hour":return 24*n+e/36e5;case"minute":return 1440*n+e/6e4;case"second":return 86400*n+e/1e3;case"millisecond":return Math.floor(864e5*n)+e;default:throw new Error("Unknown unit "+t)}},te.asMilliseconds=Ti,te.asSeconds=Ci,te.asMinutes=_i,te.asHours=Hi,te.asDays=Fi,te.asWeeks=Ai,te.asMonths=Ui,te.asQuarters=Wi,te.asYears=$i,te.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*Z(this._months/12):NaN},te._bubble=function(){var t,n,i,e,r,s=this._milliseconds,o=this._days,u=this._months,a=this._data;return s>=0&&o>=0&&u>=0||s<=0&&o<=0&&u<=0||(s+=864e5*Oi(Ei(u)+o),o=0,u=0),a.milliseconds=s%1e3,t=I(s/1e3),a.seconds=t%60,n=I(t/60),a.minutes=n%60,i=I(n/60),a.hours=i%24,o+=I(i/24),u+=r=I(ki(o)),o-=Oi(Ei(r)),e=I(u/12),u%=12,a.days=o,a.months=u,a.years=e,this},te.clone=function(){return Gn(this)},te.get=function(t){return t=$(t),this.isValid()?this[t+"s"]():NaN},te.milliseconds=Gi,te.seconds=ji,te.minutes=Pi,te.hours=Ii,te.days=Zi,te.weeks=function(){return I(this.days()/7)},te.months=Bi,te.years=Ki,te.humanize=function(t,n){if(!this.isValid())return this.localeData().invalidDate();var i,e,r=!1,s=Ji;return"object"==typeof t&&(n=t,t=!1),"boolean"==typeof t&&(r=t),"object"==typeof n&&(s=Object.assign({},Ji,n),null!=n.s&&null==n.ss&&(s.ss=n.s-1)),e=function(t,n,i,e){var r=Gn(t).abs(),s=zi(r.as("s")),o=zi(r.as("m")),u=zi(r.as("h")),a=zi(r.as("d")),h=zi(r.as("M")),c=zi(r.as("w")),l=zi(r.as("y")),d=s<=i.ss&&["s",s]||s<i.s&&["ss",s]||o<=1&&["m"]||o<i.m&&["mm",o]||u<=1&&["h"]||u<i.h&&["hh",u]||a<=1&&["d"]||a<i.d&&["dd",a];return null!=i.w&&(d=d||c<=1&&["w"]||c<i.w&&["ww",c]),(d=d||h<=1&&["M"]||h<i.M&&["MM",h]||l<=1&&["y"]||["yy",l])[2]=n,d[3]=+t>0,d[4]=e,qi.apply(null,d)}(this,!r,s,i=this.localeData()),r&&(e=i.pastFuture(+this,e)),i.postformat(e)},te.toISOString=Xi,te.toString=Xi,te.toJSON=Xi,te.locale=Qn,te.localeData=ti,te.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Xi),te.lang=Xn,H("X",0,0,"unix"),H("x",0,0,"valueOf"),dt("x",at),dt("X",/[+-]?\d+(\.\d{1,3})?/),yt("X",(function(t,n,i){i._d=new Date(1e3*parseFloat(t))})),yt("x",(function(t,n,i){i._d=new Date(Z(t))})),
76
+ //! moment.js
77
+ i.version="2.29.2",t=Yn,i.fn=wi,i.min=function(){var t=[].slice.call(arguments,0);return kn("isBefore",t)},i.max=function(){var t=[].slice.call(arguments,0);return kn("isAfter",t)},i.now=function(){return Date.now?Date.now():+new Date},i.utc=d,i.unix=function(t){return Yn(1e3*t)},i.months=function(t,n){return Ni(t,n,"months")},i.isDate=h,i.locale=sn,i.invalid=v,i.duration=Gn,i.isMoment=M,i.weekdays=function(t,n,i){return Di(t,n,i,"weekdays")},i.parseZone=function(){return Yn.apply(null,arguments).parseZone()},i.localeData=un,i.isDuration=Tn,i.monthsShort=function(t,n){return Ni(t,n,"monthsShort")},i.weekdaysMin=function(t,n,i){return Di(t,n,i,"weekdaysMin")},i.defineLocale=on,i.updateLocale=function(t,n){if(null!=n){var i,e,r=Qt;null!=Xt[t]&&null!=Xt[t].parentLocale?Xt[t].set(O(Xt[t]._config,n)):(null!=(e=rn(t))&&(r=e._config),n=O(r,n),null==e&&(n.abbr=t),(i=new k(n)).parentLocale=Xt[t],Xt[t]=i),sn(t)}else null!=Xt[t]&&(null!=Xt[t].parentLocale?(Xt[t]=Xt[t].parentLocale,t===sn()&&sn(t)):null!=Xt[t]&&delete Xt[t]);return Xt[t]},i.locales=function(){return N(Xt)},i.weekdaysShort=function(t,n,i){return Di(t,n,i,"weekdaysShort")},i.normalizeUnits=$,i.relativeTimeRounding=function(t){return void 0===t?zi:"function"==typeof t&&(zi=t,!0)},i.relativeTimeThreshold=function(t,n){return void 0!==Ji[t]&&(void 0===n?Ji[t]:(Ji[t]=n,"s"===t&&(Ji.ss=n-1),!0))},i.calendarFormat=function(t,n){var i=t.diff(n,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},i.prototype=wi,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i},"object"==typeof t&&"undefined"!=typeof module?module.exports=ft():"function"==typeof define&&define.amd?define(ft):dt.moment=ft();
78
+ /**
79
+ * @license
80
+ * Copyright 2017 Google LLC
81
+ * SPDX-License-Identifier: BSD-3-Clause
82
+ */
83
+ const mt=2;
84
+ /**
85
+ * @license
86
+ * Copyright 2020 Google LLC
87
+ * SPDX-License-Identifier: BSD-3-Clause
88
+ */
89
+ const{H:vt}=nt,pt=()=>document.createComment(""),yt=(t,n,i)=>{var e;const r=t._$AA.parentNode,s=void 0===n?t._$AB:n._$AA;if(void 0===i){const n=r.insertBefore(pt(),s),e=r.insertBefore(pt(),s);i=new vt(n,e,t,t.options)}else{const n=i._$AB.nextSibling,o=i._$AM,u=o!==t;if(u){let n;null===(e=i._$AQ)||void 0===e||e.call(i,t),i._$AM=t,void 0!==i._$AP&&(n=t._$AU)!==o._$AU&&i._$AP(n)}if(n!==s||u){let t=i._$AA;for(;t!==n;){const n=t.nextSibling;r.insertBefore(t,s),t=n}}}return i},gt=(t,n,i=t)=>(t._$AI(n,i),t),wt={},Mt=t=>{var n;null===(n=t._$AP)||void 0===n||n.call(t,!1,!0);let i=t._$AA;const e=t._$AB.nextSibling;for(;i!==e;){const t=i.nextSibling;i.remove(),i=t}},bt=(t,n,i)=>{const e=new Map;for(let r=n;r<=i;r++)e.set(t[r],r);return e},St=(t=>(...n)=>({_$litDirective$:t,values:n}))(class extends class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,n,i){this._$Ct=t,this._$AM=n,this._$Ci=i}_$AS(t,n){return this.update(t,n)}update(t,n){return this.render(...n)}}{constructor(t){if(super(t),t.type!==mt)throw Error("repeat() can only be used in text expressions")}dt(t,n,i){let e;void 0===i?i=n:void 0!==n&&(e=n);const r=[],s=[];let o=0;for(const n of t)r[o]=e?e(n,o):o,s[o]=i(n,o),o++;return{values:s,keys:r}}render(t,n,i){return this.dt(t,n,i).values}update(t,[n,i,e]){var r;const s=(t=>t._$AH)(t),{values:o,keys:u}=this.dt(n,i,e);if(!Array.isArray(s))return this.at=u,o;const a=null!==(r=this.at)&&void 0!==r?r:this.at=[],h=[];let c,l,d=0,f=s.length-1,m=0,v=o.length-1;for(;d<=f&&m<=v;)if(null===s[d])d++;else if(null===s[f])f--;else if(a[d]===u[m])h[m]=gt(s[d],o[m]),d++,m++;else if(a[f]===u[v])h[v]=gt(s[f],o[v]),f--,v--;else if(a[d]===u[v])h[v]=gt(s[d],o[v]),yt(t,h[v+1],s[d]),d++,v--;else if(a[f]===u[m])h[m]=gt(s[f],o[m]),yt(t,s[d],s[f]),f--,m++;else if(void 0===c&&(c=bt(u,m,v),l=bt(a,d,f)),c.has(a[d]))if(c.has(a[f])){const n=l.get(u[m]),i=void 0!==n?s[n]:null;if(null===i){const n=yt(t,s[d]);gt(n,o[m]),h[m]=n}else h[m]=gt(i,o[m]),yt(t,s[d],i),s[n]=null;m++}else Mt(s[f]),f--;else Mt(s[d]),d++;for(;m<=v;){const n=yt(t,h[v+1]);gt(n,o[m]),h[m++]=n}for(;d<=f;){const t=s[d++];null!==t&&Mt(t)}return this.at=u,((t,n=wt)=>{t._$AH=n})(t,h),L}});
90
+ /**
91
+ * @license
92
+ * Copyright 2017 Google LLC
93
+ * SPDX-License-Identifier: BSD-3-Clause
94
+ */var Nt=function(t,n,i,e){for(var r,s=arguments.length,o=s<3?n:null===e?e=Object.getOwnPropertyDescriptor(n,i):e,u=t.length-1;u>=0;u--)(r=t[u])&&(o=(s<3?r(o):s>3?r(n,i,o):r(n,i))||o);return s>3&&o&&Object.defineProperty(n,i,o),o};const Dt={contentFont:ut.external(at.contentFont,"Design system"),colorOnSurfaceHigh:ut.external(at.colorOnSurfaceHigh,"Design system"),colorOnSurfaceMedium:ut.external(at.colorOnSurfaceMedium,"Design system")};class Yt extends ht{constructor(){super(...arguments),this.baseUrl="",this.startDate=(void 0)().startOf("month").add(-3,"months").format("YYYY-MM-DD"),this.endDate=(void 0)().startOf("month").format("YYYY-MM-DD"),this.documentNumber=10,this.documents=[],this.emptyResults=!1}static get styles(){return c`
95
+
96
+ table {
97
+ font-family: ${Dt.contentFont};
98
+ padding-top: 10px;
99
+ }
100
+
101
+ .document-views {
102
+ color: ${Dt.colorOnSurfaceHigh};
103
+ padding-right: 10px;
104
+ }
105
+
106
+ .document-title {
107
+ color: ${Dt.colorOnSurfaceMedium};
108
+ padding-left: 10px;
109
+ }
110
+
111
+ .loader {
112
+ display: flex;
113
+ justify-content: center;
114
+ }
115
+
116
+ ft-icon {
117
+ color: ${Dt.colorOnSurfaceMedium};
118
+ }
119
+
120
+ `}render(){return 0===this.documents.length?this.emptyResults?$`
121
+ <ft-typography variant="body1">No results during this period</ft-typography>
122
+ `:$`
123
+ <div class="loader">
124
+ <ft-loader></ft-loader>
125
+ </div>
126
+ `:$`
127
+ <div class="ft-analytics-top-documents">
128
+ <table>
129
+ ${St(this.documents,(t=>this.renderDocument(t)))}
130
+ </table>
131
+ </div>
132
+ `}renderDocument(t){return $`
133
+ <tr data-title="${t.id}">
134
+ <td class="document-views">
135
+ ${t.displayCount.toLocaleString()}
136
+ </td>
137
+ <td>
138
+ ${Yt.getIcon(t.type)}
139
+ </td>
140
+ <td class="document-title">
141
+ ${t.title}
142
+ </td>
143
+ </tr>
144
+ `}updated(t){super.updated(t),t.has("baseUrl")&&this.fetchDocuments().catch((t=>console.error("Cannot fetch documents: ",t)))}async fetchDocuments(){if(this.baseUrl){let t=await fetch(this.baseUrl+"/analytics/api/v2/documents/views-top",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({endDate:this.endDate,paging:{page:1,perPage:this.documentNumber},startDate:this.startDate})});t.ok?(this.documents=(await t.json()).results,0===this.documents.length&&(this.emptyResults=!0)):console.log((await t.json()).message)}}static getIcon(t){switch(t){case"STRUCTURED_DOCUMENT":return $`
145
+ <ft-icon>BOOK_PLAIN</ft-icon>
146
+ `;case"UNSTRUCTURED_DOCUMENT":case"MAP_ATTACHMENT":case"RESOURCE":return $`
147
+ <ft-icon variant="file-format">UNKNOWN</ft-icon>
148
+ `;case"SHARED_PERSONAL_BOOK":return $`
149
+ <ft-icon>SHARED_PBK</ft-icon>
150
+ `;default:return $``}}}var xt;Nt([i({type:String})],Yt.prototype,"baseUrl",void 0),Nt([i({type:String})],Yt.prototype,"startDate",void 0),Nt([i({type:String})],Yt.prototype,"endDate",void 0),Nt([i({type:String})],Yt.prototype,"documentNumber",void 0),Nt([e()],Yt.prototype,"documents",void 0),Nt([e()],Yt.prototype,"emptyResults",void 0),(xt="ft-analytics-top-documents",t=>{window.customElements.get(xt)||window.customElements.define(xt,t)})(function t(n){var i;let e;if("elementDefinitions"in n){e={};const i=n.elementDefinitions;for(let n in i)e[n]=t(i[n])}return i=class extends n{constructor(...t){super(t),this._constructor=this.constructor}render(){var t;let i=null!==(t=n.styles)&&void 0!==t?t:[];return Array.isArray(i)||(i=[i]),$`
151
+ ${i.map((t=>$`
152
+ <style>${t}</style>
153
+ `))}
154
+ ${super.render()}
155
+ `}},i.styles=void 0,i.elementDefinitions=e,i}(Yt)),t.FtAnalyticsTopDocuments=Yt,t.FtAnalyticsTopDocumentsCssVariables=Dt,Object.defineProperty(t,"t",{value:!0})}({});
@@ -4,10 +4,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
4
4
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
- var FtAnalyticsTopDocuments_1;
8
7
  import { css, html } from "lit";
9
8
  import { property, state } from "lit/decorators.js";
10
- import { customElement, designSystemVariables, FtCssVariable, FtLitElement } from "@fluid-topics/ft-wc-utils";
9
+ import { designSystemVariables, FtCssVariable, FtLitElement } from "@fluid-topics/ft-wc-utils";
11
10
  import * as moment from "moment";
12
11
  import { repeat } from "lit/directives/repeat.js";
13
12
  export const FtAnalyticsTopDocumentsCssVariables = {
@@ -15,7 +14,7 @@ export const FtAnalyticsTopDocumentsCssVariables = {
15
14
  colorOnSurfaceHigh: FtCssVariable.external(designSystemVariables.colorOnSurfaceHigh, "Design system"),
16
15
  colorOnSurfaceMedium: FtCssVariable.external(designSystemVariables.colorOnSurfaceMedium, "Design system"),
17
16
  };
18
- let FtAnalyticsTopDocuments = FtAnalyticsTopDocuments_1 = class FtAnalyticsTopDocuments extends FtLitElement {
17
+ export class FtAnalyticsTopDocuments extends FtLitElement {
19
18
  constructor() {
20
19
  super(...arguments);
21
20
  this.baseUrl = "";
@@ -25,7 +24,7 @@ let FtAnalyticsTopDocuments = FtAnalyticsTopDocuments_1 = class FtAnalyticsTopDo
25
24
  this.documents = [];
26
25
  this.emptyResults = false;
27
26
  }
28
- getStyles() {
27
+ static get styles() {
29
28
  // language=CSS
30
29
  return css `
31
30
 
@@ -48,10 +47,14 @@ let FtAnalyticsTopDocuments = FtAnalyticsTopDocuments_1 = class FtAnalyticsTopDo
48
47
  display: flex;
49
48
  justify-content: center;
50
49
  }
50
+
51
+ ft-icon {
52
+ color: ${FtAnalyticsTopDocumentsCssVariables.colorOnSurfaceMedium};
53
+ }
51
54
 
52
55
  `;
53
56
  }
54
- getTemplate() {
57
+ render() {
55
58
  if (this.documents.length === 0) {
56
59
  if (this.emptyResults) {
57
60
  return html `
@@ -83,7 +86,7 @@ let FtAnalyticsTopDocuments = FtAnalyticsTopDocuments_1 = class FtAnalyticsTopDo
83
86
  ${document.displayCount.toLocaleString()}
84
87
  </td>
85
88
  <td>
86
- ${FtAnalyticsTopDocuments_1.getIcon(document.type)}
89
+ ${FtAnalyticsTopDocuments.getIcon(document.type)}
87
90
  </td>
88
91
  <td class="document-title">
89
92
  ${document.title}
@@ -150,7 +153,7 @@ let FtAnalyticsTopDocuments = FtAnalyticsTopDocuments_1 = class FtAnalyticsTopDo
150
153
  return html ``;
151
154
  }
152
155
  }
153
- };
156
+ }
154
157
  __decorate([
155
158
  property({ type: String })
156
159
  ], FtAnalyticsTopDocuments.prototype, "baseUrl", void 0);
@@ -169,8 +172,4 @@ __decorate([
169
172
  __decorate([
170
173
  state()
171
174
  ], FtAnalyticsTopDocuments.prototype, "emptyResults", void 0);
172
- FtAnalyticsTopDocuments = FtAnalyticsTopDocuments_1 = __decorate([
173
- customElement("ft-analytics-top-documents")
174
- ], FtAnalyticsTopDocuments);
175
- export { FtAnalyticsTopDocuments };
176
175
  //# sourceMappingURL=ft-analytics-top-documents.js.map