@fluid-topics/ft-analytics-top-documents 1.2.60 → 1.2.61
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.
|
@@ -45,7 +45,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:n.extend("--ft-conte
|
|
|
45
45
|
input::-webkit-search-results-decoration {
|
|
46
46
|
display: none;
|
|
47
47
|
}
|
|
48
|
-
`;var rc={};var ia={};j(ia,{ParametrizedLabelResolver:()=>aa});var aa=class e{constructor(t,r){this.defaultLabels=t,this.labels=r}resolve(t,...r){var o,a;t=this.resolvePluralKey(t,r);let i=(a=(o=this.labels[t])!==null&&o!==void 0?o:this.defaultLabels[t])!==null&&a!==void 0?a:"";return e.replaceParameters(i,...r)}static replaceParameters(t,...r){return r.forEach((o,a)=>t=t.replace(new RegExp(`\\{${a}([^}]*)\\}`,"g"),(i,s)=>e.formatValue(o,s))),t}resolvePluralKey(t,r){for(let o of r)if(typeof o=="number"){let a=`${String(t)}[\\=${o}]`;if(a in this.labels||a in this.defaultLabels)return a}return t}static formatValue(t,r){return t instanceof Date?e.formatDate(t,r):t??""}static formatDate(t,r){let o=a=>r?.includes("date")?t.toLocaleDateString(a):r?.includes("time")?t.toLocaleTimeString(a):t.toLocaleString(a);try{return o(document.documentElement.lang)}catch{return o()}}};var Ta={};j(Ta,{FtCommandQueue:()=>Dr,FtLitElementRedux:()=>Yt,FtReduxStore:()=>ka,ReduxWatcher:()=>vo,clearAllStores:()=>Zf,isFtReduxStore:()=>Ct,redux:()=>df,reduxEventListener:()=>ff,reduxReactive:()=>uf,watch:()=>qf});var uf=()=>(e,t)=>{var r;let o=e.constructor;o.reduxReactiveProperties=new Set(o.reduxReactiveProperties),(r=o.reduxReactiveProperties)===null||r===void 0||r.add(t)},df=e=>{let t=e??{};return(r,o)=>{var a;let i={hasChanged:St,attribute:!1,...t};ee(i)(r,o);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(o,{selector:(a=t.selector)!==null&&a!==void 0?a:l=>l[o],store:t.store})}},ff=e=>(t,r)=>{let o=t.constructor;o.reduxEventListeners=new Map(o.reduxEventListeners),o.reduxEventListeners.set(r,e)};var Dr=class{constructor(){this.queue=[]}add(t,r=!1){r&&this.clear(t.type),this.queue.push(t)}consume(t){let r=this.queue.find(o=>o.type===t);return r&&(this.queue=this.queue.filter(o=>o!==r)),r}clear(t){typeof t=="string"?this.queue=this.queue.filter(r=>r.type!==t):this.queue=this.queue.filter(r=>!t.test(r.type))}};function Ct(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var oc,nc,ac,Lr=Symbol("internalReduxEventsUnsubscribers"),at=Symbol("internalStoresUnsubscribers"),_t=Symbol("internalStores"),Yt=class extends de{constructor(){super(...arguments),this[oc]=new Map,this[nc]=new Map,this[ac]=new Map}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some(r=>t.has(r))&&this.updateFromStores()}getUnnamedStore(){if(this[_t].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[_t].values()][0]}getStore(t){return t==null?this.getUnnamedStore():this[_t].get(t)}addStore(t,r){var o;r=(o=r??(Ct(t)?t.name:void 0))!==null&&o!==void 0?o:"default-store",this.unsubscribeFromStore(r),this[_t].set(r,t),this.subscribeToStore(r,t),this.updateFromStores()}removeStore(t){let r=typeof t=="string"?t:t.name;this.unsubscribeFromStore(r),this[_t].delete(r)}setupStores(){this.unsubscribeFromStores(),this[_t].forEach((t,r)=>this.subscribeToStore(r,t)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((t,r)=>{let o=this.constructor.getPropertyOptions(r);if(!o?.attribute||!this.hasAttribute(typeof o?.attribute=="string"?o.attribute:r)){let a=this.getStore(t.store);a&&(t.store?this[at].has(t.store):this[at].size>0)&&(this[r]=t.selector(a.getState(),this))}})}subscribeToStore(t,r){var o;this[at].set(t,r.subscribe(()=>this.updateFromStores())),this[Lr].set(t,[]),Ct(r)&&r.eventBus&&((o=this.reduxConstructor.reduxEventListeners)===null||o===void 0||o.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||r.name===a.store)){let s=l=>this[i](l);r.addEventListener(a.eventName,s),this[Lr].get(t).push(()=>r.removeEventListener(a.eventName,s))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[at].forEach((t,r)=>this.unsubscribeFromStore(r))}unsubscribeFromStore(t){var r;this[at].has(t)&&this[at].get(t)(),this[at].delete(t),(r=this[Lr].get(t))===null||r===void 0||r.forEach(o=>o()),this[Lr].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};oc=at,nc=_t,ac=Lr;Yt.reduxProperties=new Map;Yt.reduxReactiveProperties=new Set;Yt.reduxEventListeners=new Map;function be(e){for(var t=arguments.length,r=Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];if(0)var a,i;throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ge(e){return!!e&&!!e[q]}function Ee(e){var t;return!!e&&(function(r){if(!r||typeof r!="object")return!1;var o=Object.getPrototypeOf(r);if(o===null)return!0;var a=Object.hasOwnProperty.call(o,"constructor")&&o.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===vf}(e)||Array.isArray(e)||!!e[fc]||!!(!((t=e.constructor)===null||t===void 0)&&t[fc])||ya(e)||ma(e))}function At(e,t,r){r===void 0&&(r=!1),Zt(e)===0?(r?Object.keys:Kt)(e).forEach(function(o){r&&typeof o=="symbol"||t(o,e[o],e)}):e.forEach(function(o,a){return t(a,o,e)})}function Zt(e){var t=e[q];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:ya(e)?2:ma(e)?3:0}function Vt(e,t){return Zt(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function pf(e,t){return Zt(e)===2?e.get(t):e[t]}function pc(e,t,r){var o=Zt(e);o===2?e.set(t,r):o===3?e.add(r):e[t]=r}function hc(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function ya(e){return bf&&e instanceof Map}function ma(e){return xf&&e instanceof Set}function it(e){return e.o||e.t}function ga(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=gc(e);delete t[q];for(var r=Kt(t),o=0;o<r.length;o++){var a=r[o],i=t[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),t)}function ba(e,t){return t===void 0&&(t=!1),xa(e)||Ge(e)||!Ee(e)||(Zt(e)>1&&(e.set=e.add=e.clear=e.delete=hf),Object.freeze(e),t&&At(e,function(r,o){return ba(o,!0)},!0)),e}function hf(){be(2)}function xa(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function De(e){var t=ha[e];return t||be(18,e),t}function yf(e,t){ha[e]||(ha[e]=t)}function da(){return Fr}function sa(e,t){t&&(De("Patches"),e.u=[],e.s=[],e.v=t)}function yo(e){fa(e),e.p.forEach(mf),e.p=null}function fa(e){e===Fr&&(Fr=e.l)}function ic(e){return Fr={p:[],l:Fr,h:e,m:!0,_:0}}function mf(e){var t=e[q];t.i===0||t.i===1?t.j():t.g=!0}function ca(e,t){t._=t.p.length;var r=t.p[0],o=e!==void 0&&e!==r;return t.h.O||De("ES5").S(t,e,o),o?(r[q].P&&(yo(t),be(4)),Ee(e)&&(e=mo(t,e),t.l||go(t,e)),t.u&&De("Patches").M(r[q].t,e,t.u,t.s)):e=mo(t,r,[]),yo(t),t.u&&t.v(t.u,t.s),e!==mc?e:void 0}function mo(e,t,r){if(xa(t))return t;var o=t[q];if(!o)return At(t,function(l,u){return sc(e,o,t,l,u,r)},!0),t;if(o.A!==e)return t;if(!o.P)return go(e,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var a=o.i===4||o.i===5?o.o=ga(o.k):o.o,i=a,s=!1;o.i===3&&(i=new Set(a),a.clear(),s=!0),At(i,function(l,u){return sc(e,o,a,l,u,r,s)}),go(e,a,!1),r&&e.u&&De("Patches").N(o,r,e.u,e.s)}return o.o}function sc(e,t,r,o,a,i,s){if(Ge(a)){var l=mo(e,a,i&&t&&t.i!==3&&!Vt(t.R,o)?i.concat(o):void 0);if(pc(r,o,l),!Ge(l))return;e.m=!1}else s&&r.add(a);if(Ee(a)&&!xa(a)){if(!e.h.D&&e._<1)return;mo(e,a),t&&t.A.l||go(e,a)}}function go(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&ba(t,r)}function la(e,t){var r=e[q];return(r?it(r):e)[t]}function cc(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var o=Object.getOwnPropertyDescriptor(r,t);if(o)return o;r=Object.getPrototypeOf(r)}}function st(e){e.P||(e.P=!0,e.l&&st(e.l))}function ua(e){e.o||(e.o=ga(e.t))}function pa(e,t,r){var o=ya(t)?De("MapSet").F(t,r):ma(t)?De("MapSet").T(t,r):e.O?function(a,i){var s=Array.isArray(a),l={i:s?1:0,A:i?i.A:da(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},u=l,f=Ur;s&&(u=[l],f=Mr);var h=Proxy.revocable(u,f),p=h.revoke,m=h.proxy;return l.k=m,l.j=p,m}(t,r):De("ES5").J(t,r);return(r?r.A:da()).p.push(o),o}function gf(e){return Ge(e)||be(22,e),function t(r){if(!Ee(r))return r;var o,a=r[q],i=Zt(r);if(a){if(!a.P&&(a.i<4||!De("ES5").K(a)))return a.t;a.I=!0,o=lc(r,i),a.I=!1}else o=lc(r,i);return At(o,function(s,l){a&&pf(a.t,s)===l||pc(o,s,t(l))}),i===3?new Set(o):o}(e)}function lc(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return ga(e)}function yc(){function e(s,l){var u=i[s];return u?u.enumerable=l:i[s]=u={configurable:!0,enumerable:l,get:function(){var f=this[q];return Ur.get(f,s)},set:function(f){var h=this[q];Ur.set(h,s,f)}},u}function t(s){for(var l=s.length-1;l>=0;l--){var u=s[l][q];if(!u.P)switch(u.i){case 5:o(u)&&st(u);break;case 4:r(u)&&st(u)}}}function r(s){for(var l=s.t,u=s.k,f=Kt(u),h=f.length-1;h>=0;h--){var p=f[h];if(p!==q){var m=l[p];if(m===void 0&&!Vt(l,p))return!0;var b=u[p],g=b&&b[q];if(g?g.t!==m:!hc(b,m))return!0}}var S=!!l[q];return f.length!==Kt(l).length+(S?0:1)}function o(s){var l=s.k;if(l.length!==s.t.length)return!0;var u=Object.getOwnPropertyDescriptor(l,l.length-1);if(u&&!u.get)return!0;for(var f=0;f<l.length;f++)if(!l.hasOwnProperty(f))return!0;return!1}function a(s){s.g&&be(3,JSON.stringify(it(s)))}var i={};yf("ES5",{J:function(s,l){var u=Array.isArray(s),f=function(p,m){if(p){for(var b=Array(m.length),g=0;g<m.length;g++)Object.defineProperty(b,""+g,e(g,!0));return b}var S=gc(m);delete S[q];for(var _=Kt(S),C=0;C<_.length;C++){var N=_[C];S[N]=e(N,p||!!S[N].enumerable)}return Object.create(Object.getPrototypeOf(m),S)}(u,s),h={i:u?5:4,A:l?l.A:da(),P:!1,I:!1,R:{},l,t:s,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,q,{value:h,writable:!0}),f},S:function(s,l,u){u?Ge(l)&&l[q].A===s&&t(s.p):(s.u&&function f(h){if(h&&typeof h=="object"){var p=h[q];if(p){var m=p.t,b=p.k,g=p.R,S=p.i;if(S===4)At(b,function(x){x!==q&&(m[x]!==void 0||Vt(m,x)?g[x]||f(b[x]):(g[x]=!0,st(p)))}),At(m,function(x){b[x]!==void 0||Vt(b,x)||(g[x]=!1,st(p))});else if(S===5){if(o(p)&&(st(p),g.length=!0),b.length<m.length)for(var _=b.length;_<m.length;_++)g[_]=!1;else for(var C=m.length;C<b.length;C++)g[C]=!0;for(var N=Math.min(b.length,m.length),O=0;O<N;O++)b.hasOwnProperty(O)||(g[O]=!0),g[O]===void 0&&f(b[O])}}}}(s.p[0]),t(s.p))},K:function(s){return s.i===4?r(s):o(s)}})}var uc,Fr,va=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",bf=typeof Map<"u",xf=typeof Set<"u",dc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",mc=va?Symbol.for("immer-nothing"):((uc={})["immer-nothing"]=!0,uc),fc=va?Symbol.for("immer-draftable"):"__$immer_draftable",q=va?Symbol.for("immer-state"):"__$immer_state";var vf=""+Object.prototype.constructor,Kt=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,gc=Object.getOwnPropertyDescriptors||function(e){var t={};return Kt(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},ha={},Ur={get:function(e,t){if(t===q)return e;var r=it(e);if(!Vt(r,t))return function(a,i,s){var l,u=cc(i,s);return u?"value"in u?u.value:(l=u.get)===null||l===void 0?void 0:l.call(a.k):void 0}(e,r,t);var o=r[t];return e.I||!Ee(o)?o:o===la(e.t,t)?(ua(e),e.o[t]=pa(e.A.h,o,e)):o},has:function(e,t){return t in it(e)},ownKeys:function(e){return Reflect.ownKeys(it(e))},set:function(e,t,r){var o=cc(it(e),t);if(o?.set)return o.set.call(e.k,r),!0;if(!e.P){var a=la(it(e),t),i=a?.[q];if(i&&i.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(hc(r,a)&&(r!==void 0||Vt(e.t,t)))return!0;ua(e),st(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return la(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,ua(e),st(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=it(e),o=Reflect.getOwnPropertyDescriptor(r,t);return o&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:o.enumerable,value:r[t]}},defineProperty:function(){be(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){be(12)}},Mr={};At(Ur,function(e,t){Mr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Mr.deleteProperty=function(e,t){return Mr.set.call(this,e,t,void 0)},Mr.set=function(e,t,r){return Ur.set.call(this,e[0],t,r,e[0])};var Sf=function(){function e(r){var o=this;this.O=dc,this.D=!0,this.produce=function(a,i,s){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var u=o;return function(S){var _=this;S===void 0&&(S=l);for(var C=arguments.length,N=Array(C>1?C-1:0),O=1;O<C;O++)N[O-1]=arguments[O];return u.produce(S,function(x){var w;return(w=i).call.apply(w,[_,x].concat(N))})}}var f;if(typeof i!="function"&&be(6),s!==void 0&&typeof s!="function"&&be(7),Ee(a)){var h=ic(o),p=pa(o,a,void 0),m=!0;try{f=i(p),m=!1}finally{m?yo(h):fa(h)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(S){return sa(h,s),ca(S,h)},function(S){throw yo(h),S}):(sa(h,s),ca(f,h))}if(!a||typeof a!="object"){if((f=i(a))===void 0&&(f=a),f===mc&&(f=void 0),o.D&&ba(f,!0),s){var b=[],g=[];De("Patches").M(a,f,b,g),s(b,g)}return f}be(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(f){for(var h=arguments.length,p=Array(h>1?h-1:0),m=1;m<h;m++)p[m-1]=arguments[m];return o.produceWithPatches(f,function(b){return a.apply(void 0,[b].concat(p))})};var s,l,u=o.produce(a,i,function(f,h){s=f,l=h});return typeof Promise<"u"&&u instanceof Promise?u.then(function(f){return[f,s,l]}):[u,s,l]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){Ee(r)||be(8),Ge(r)&&(r=gf(r));var o=ic(this),a=pa(this,r,void 0);return a[q].C=!0,fa(o),a},t.finishDraft=function(r,o){var a=r&&r[q],i=a.A;return sa(i,o),ca(void 0,i)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!dc&&be(20),this.O=r},t.applyPatches=function(r,o){var a;for(a=o.length-1;a>=0;a--){var i=o[a];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}a>-1&&(o=o.slice(a+1));var s=De("Patches").$;return Ge(r)?s(r,o):this.produce(r,function(l){return s(l,o)})},e}(),he=new Sf,Of=he.produce,NS=he.produceWithPatches.bind(he),kS=he.setAutoFreeze.bind(he),TS=he.setUseProxies.bind(he),IS=he.applyPatches.bind(he),PS=he.createDraft.bind(he),DS=he.finishDraft.bind(he),bo=Of;function Rt(e){"@babel/helpers - typeof";return Rt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rt(e)}function bc(e,t){if(Rt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t||"default");if(Rt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xc(e){var t=bc(e,"string");return Rt(t)=="symbol"?t:t+""}function vc(e,t,r){return(t=xc(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,o)}return r}function Sa(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sc(Object(r),!0).forEach(function(o){vc(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sc(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function ie(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Oc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Oa=function(){return Math.random().toString(36).substring(7).split("").join(".")},xo={INIT:"@@redux/INIT"+Oa(),REPLACE:"@@redux/REPLACE"+Oa(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Oa()}};function wf(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function wa(e,t,r){var o;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ie(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ie(1));return r(wa)(e,t)}if(typeof e!="function")throw new Error(ie(2));var a=e,i=t,s=[],l=s,u=!1;function f(){l===s&&(l=s.slice())}function h(){if(u)throw new Error(ie(3));return i}function p(S){if(typeof S!="function")throw new Error(ie(4));if(u)throw new Error(ie(5));var _=!0;return f(),l.push(S),function(){if(_){if(u)throw new Error(ie(6));_=!1,f();var N=l.indexOf(S);l.splice(N,1),s=null}}}function m(S){if(!wf(S))throw new Error(ie(7));if(typeof S.type>"u")throw new Error(ie(8));if(u)throw new Error(ie(9));try{u=!0,i=a(i,S)}finally{u=!1}for(var _=s=l,C=0;C<_.length;C++){var N=_[C];N()}return S}function b(S){if(typeof S!="function")throw new Error(ie(10));a=S,m({type:xo.REPLACE})}function g(){var S,_=p;return S={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(ie(11));function O(){N.next&&N.next(h())}O();var x=_(O);return{unsubscribe:x}}},S[Oc]=function(){return this},S}return m({type:xo.INIT}),o={dispatch:m,subscribe:p,getState:h,replaceReducer:b},o[Oc]=g,o}function Ef(e){Object.keys(e).forEach(function(t){var r=e[t],o=r(void 0,{type:xo.INIT});if(typeof o>"u")throw new Error(ie(12));if(typeof r(void 0,{type:xo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ie(13))})}function wc(e){for(var t=Object.keys(e),r={},o=0;o<t.length;o++){var a=t[o];typeof e[a]=="function"&&(r[a]=e[a])}var i=Object.keys(r),s,l;try{Ef(r)}catch(u){l=u}return function(f,h){if(f===void 0&&(f={}),l)throw l;if(0)var p;for(var m=!1,b={},g=0;g<i.length;g++){var S=i[g],_=r[S],C=f[S],N=_(C,h);if(typeof N>"u"){var O=h&&h.type;throw new Error(ie(14))}b[S]=N,m=m||N!==C}return m=m||i.length!==Object.keys(f).length,m?b:f}}function qt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(o){return o}:t.length===1?t[0]:t.reduce(function(o,a){return function(){return o(a.apply(void 0,arguments))}})}function Ec(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(o){return function(){var a=o.apply(void 0,arguments),i=function(){throw new Error(ie(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=t.map(function(u){return u(s)});return i=qt.apply(void 0,l)(a.dispatch),Sa(Sa({},a),{},{dispatch:i})}}}function Cc(e){var t=function(o){var a=o.dispatch,i=o.getState;return function(s){return function(l){return typeof l=="function"?l(a,i,e):s(l)}}};return t}var _c=Cc();_c.withExtraArgument=Cc;var Ea=_c;var Tc=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,a){o.__proto__=a}||function(o,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(o[i]=a[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function o(){this.constructor=t}t.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}}(),Cf=function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,a,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(f){return function(h){return u([f,h])}}function u(f){if(o)throw new TypeError("Generator is already executing.");for(;r;)try{if(o=1,a&&(i=f[0]&2?a.return:f[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,f[1])).done)return i;switch(a=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++,a=f[1],f=[0];continue;case 7:f=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]<i[3])){r.label=f[1];break}if(f[0]===6&&r.label<i[1]){r.label=i[1],i=f;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(f);break}i[2]&&r.ops.pop(),r.trys.pop();continue}f=t.call(e,r)}catch(h){f=[6,h],a=0}finally{o=i=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},Jt=function(e,t){for(var r=0,o=t.length,a=e.length;r<o;r++,a++)e[a]=t[r];return e},_f=Object.defineProperty,Af=Object.defineProperties,Rf=Object.getOwnPropertyDescriptors,Ac=Object.getOwnPropertySymbols,Nf=Object.prototype.hasOwnProperty,kf=Object.prototype.propertyIsEnumerable,Rc=function(e,t,r){return t in e?_f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},ct=function(e,t){for(var r in t||(t={}))Nf.call(t,r)&&Rc(e,r,t[r]);if(Ac)for(var o=0,a=Ac(t);o<a.length;o++){var r=a[o];kf.call(t,r)&&Rc(e,r,t[r])}return e},Ca=function(e,t){return Af(e,Rf(t))},Tf=function(e,t,r){return new Promise(function(o,a){var i=function(u){try{l(r.next(u))}catch(f){a(f)}},s=function(u){try{l(r.throw(u))}catch(f){a(f)}},l=function(u){return u.done?o(u.value):Promise.resolve(u.value).then(i,s)};l((r=r.apply(e,t)).next())})};var If=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?qt:qt.apply(null,arguments)},XS=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Pf(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var r=t;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}var Df=function(e){Tc(t,e);function t(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var a=e.apply(this,r)||this;return Object.setPrototypeOf(a,t.prototype),a}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,Jt([void 0],r[0].concat(this)))):new(t.bind.apply(t,Jt([void 0],r.concat(this))))},t}(Array),Lf=function(e){Tc(t,e);function t(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var a=e.apply(this,r)||this;return Object.setPrototypeOf(a,t.prototype),a}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,Jt([void 0],r[0].concat(this)))):new(t.bind.apply(t,Jt([void 0],r.concat(this))))},t}(Array);function Ra(e){return Ee(e)?bo(e,function(){}):e}function Mf(e){return typeof e=="boolean"}function Ff(){return function(t){return Uf(t)}}function Uf(e){e===void 0&&(e={});var t=e.thunk,r=t===void 0?!0:t,o=e.immutableCheck,a=o===void 0?!0:o,i=e.serializableCheck,s=i===void 0?!0:i,l=new Df;if(r&&(Mf(r)?l.push(Ea):l.push(Ea.withExtraArgument(r.extraArgument))),0){if(a)var u;if(s)var f}return l}var _a=!0;function Ic(e){var t=Ff(),r=e||{},o=r.reducer,a=o===void 0?void 0:o,i=r.middleware,s=i===void 0?t():i,l=r.devTools,u=l===void 0?!0:l,f=r.preloadedState,h=f===void 0?void 0:f,p=r.enhancers,m=p===void 0?void 0:p,b;if(typeof a=="function")b=a;else if(Pf(a))b=wc(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var g=s;if(typeof g=="function"&&(g=g(t),!_a&&!Array.isArray(g)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!_a&&g.some(function(x){return typeof x!="function"}))throw new Error("each middleware provided to configureStore must be a function");var S=Ec.apply(void 0,g),_=qt;u&&(_=If(ct({trace:!_a},typeof u=="object"&&u)));var C=new Lf(S),N=C;Array.isArray(m)?N=Jt([S],m):typeof m=="function"&&(N=m(C));var O=_.apply(void 0,N);return wa(b,h,O)}function lt(e,t){function r(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];if(t){var i=t.apply(void 0,o);if(!i)throw new Error("prepareAction did not return an object");return ct(ct({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:o[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(o){return o.type===e},r}function Pc(e){var t={},r=[],o,a={addCase:function(i,s){var l=typeof i=="string"?i:i.type;if(l in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[l]=s,a},addMatcher:function(i,s){return r.push({matcher:i,reducer:s}),a},addDefaultCase:function(i){return o=i,a}};return e(a),[t,r,o]}function Wf(e){return typeof e=="function"}function Bf(e,t,r,o){r===void 0&&(r=[]);var a=typeof t=="function"?Pc(t):[t,r,o],i=a[0],s=a[1],l=a[2],u;if(Wf(e))u=function(){return Ra(e())};else{var f=Ra(e);u=function(){return f}}function h(p,m){p===void 0&&(p=u());var b=Jt([i[m.type]],s.filter(function(g){var S=g.matcher;return S(m)}).map(function(g){var S=g.reducer;return S}));return b.filter(function(g){return!!g}).length===0&&(b=[l]),b.reduce(function(g,S){if(S)if(Ge(g)){var _=g,C=S(_,m);return C===void 0?g:C}else{if(Ee(g))return bo(g,function(N){return S(N,m)});var C=S(g,m);if(C===void 0){if(g===null)return g;throw Error("A case reducer on a non-draftable value must not return undefined")}return C}return g},p)}return h.getInitialState=u,h}function Hf(e,t){return e+"/"+t}function Dc(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof e.initialState=="function"?e.initialState:Ra(e.initialState),o=e.reducers||{},a=Object.keys(o),i={},s={},l={};a.forEach(function(h){var p=o[h],m=Hf(t,h),b,g;"reducer"in p?(b=p.reducer,g=p.prepare):b=p,i[h]=b,s[m]=b,l[h]=g?lt(m,g):lt(m)});function u(){var h=typeof e.extraReducers=="function"?Pc(e.extraReducers):[e.extraReducers],p=h[0],m=p===void 0?{}:p,b=h[1],g=b===void 0?[]:b,S=h[2],_=S===void 0?void 0:S,C=ct(ct({},m),s);return Bf(r,function(N){for(var O in C)N.addCase(O,C[O]);for(var x=0,w=g;x<w.length;x++){var T=w[x];N.addMatcher(T.matcher,T.reducer)}_&&N.addDefaultCase(_)})}var f;return{name:t,reducer:function(h,p){return f||(f=u()),f(h,p)},actions:l,caseReducers:i,getInitialState:function(){return f||(f=u()),f.getInitialState()}}}var $f="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",zf=function(e){e===void 0&&(e=21);for(var t="",r=e;r--;)t+=$f[Math.random()*64|0];return t},jf=["name","message","stack","code"],Aa=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),Nc=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),Gf=function(e){if(typeof e=="object"&&e!==null){for(var t={},r=0,o=jf;r<o.length;r++){var a=o[r];typeof e[a]=="string"&&(t[a]=e[a])}return t}return{message:String(e)}},rO=function(){function e(t,r,o){var a=lt(t+"/fulfilled",function(h,p,m,b){return{payload:h,meta:Ca(ct({},b||{}),{arg:m,requestId:p,requestStatus:"fulfilled"})}}),i=lt(t+"/pending",function(h,p,m){return{payload:void 0,meta:Ca(ct({},m||{}),{arg:p,requestId:h,requestStatus:"pending"})}}),s=lt(t+"/rejected",function(h,p,m,b,g){return{payload:b,error:(o&&o.serializeError||Gf)(h||"Rejected"),meta:Ca(ct({},g||{}),{arg:m,requestId:p,rejectedWithValue:!!b,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,u=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function f(h){return function(p,m,b){var g=o?.idGenerator?o.idGenerator(h):zf(),S=new u,_,C=!1;function N(x){_=x,S.abort()}var O=function(){return Tf(this,null,function(){var x,w,T,D,B,F,I;return Cf(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),D=(x=o?.condition)==null?void 0:x.call(o,h,{getState:m,extra:b}),Vf(D)?[4,D]:[3,2];case 1:D=y.sent(),y.label=2;case 2:if(D===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return C=!0,B=new Promise(function(v,k){return S.signal.addEventListener("abort",function(){return k({name:"AbortError",message:_||"Aborted"})})}),p(i(g,h,(w=o?.getPendingMeta)==null?void 0:w.call(o,{requestId:g,arg:h},{getState:m,extra:b}))),[4,Promise.race([B,Promise.resolve(r(h,{dispatch:p,getState:m,extra:b,requestId:g,signal:S.signal,abort:N,rejectWithValue:function(v,k){return new Aa(v,k)},fulfillWithValue:function(v,k){return new Nc(v,k)}})).then(function(v){if(v instanceof Aa)throw v;return v instanceof Nc?a(v.payload,g,h,v.meta):a(v,g,h)})])];case 3:return T=y.sent(),[3,5];case 4:return F=y.sent(),T=F instanceof Aa?s(null,g,h,F.payload,F.meta):s(F,g,h),[3,5];case 5:return I=o&&!o.dispatchConditionRejection&&s.match(T)&&T.meta.condition,I||p(T),[2,T]}})})}();return Object.assign(O,{abort:N,requestId:g,arg:h,unwrap:function(){return O.then(Yf)}})}}return Object.assign(f,{pending:i,rejected:s,fulfilled:a,typePrefix:t})}return e.withTypes=function(){return e},e}();function Yf(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Vf(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Lc="listener",Mc="completed",Fc="cancelled",oO="task-"+Fc,nO="task-"+Mc,aO=Lc+"-"+Fc,iO=Lc+"-"+Mc;var Na="listenerMiddleware";var sO=lt(Na+"/add"),cO=lt(Na+"/removeAll"),lO=lt(Na+"/remove");var kc,uO=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(kc||(kc=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},Kf=function(e){return function(t){setTimeout(t,e)}},dO=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Kf(10);yc();window.ftReduxStores||(window.ftReduxStores={});var ka=class e extends vt{static get(t){var r;let o=typeof t=="string"?t:t.name,a=typeof t=="string"?void 0:t,i=window.ftReduxStores[o];if(Ct(i))return i;if(a==null)return;let s=Dc({...a,reducers:(r=a.reducers)!==null&&r!==void 0?r:{}}),l=Ic({reducer:(u,f)=>f.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof f.type=="string"&&f.type.startsWith("DEFAULT_VALUE_SETTER__")?{...u,...f.overwrites}:s.reducer(u,f)});return window.ftReduxStores[a.name]=new e(s,l,a.eventBus)}constructor(t,r,o){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Dr;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,s,l)=>{let u=s,f=i[u];return f?(...h)=>{let p=f(...h.map(a));return this.reduxStore.dispatch(p),p}:h=>{this.setState({[u]:a(h)})}}}),this.eventBus=o??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function Zf(){var e;for(let t of Object.values((e=window.ftReduxStores)!==null&&e!==void 0?e:{}))Ct(t)&&t.clear()}var vo=class{constructor(t,r,o){this.store=t,this.valueSelector=r,this.callback=o}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let t=this.store.getState(),r=this.valueSelector(t);St(this.lastValue,r)&&(this.callback(r,t),this.lastValue=r)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function qf(e,t,r){return new vo(e,t,r).watch()}var Da={};j(Da,{scrollHelper:()=>Jf});var Ia,So=new Map,Pa=class{lock(t,r){if(r){let o=So.get(r);if(o==null||o===t)return So.set(r,t),r}}release(t,r){r&&So.get(r)===t&&So.delete(r)}findFirstScrollableParent(t){var r;let o,a;for(let i of An(t)){let s=i,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){o=s;break}else l&&a==null&&(a=s)}return(r=o??a)!==null&&r!==void 0?r:document.body}elementCanScroll(t){try{return["auto","scroll"].includes(getComputedStyle(t).overflowY)}catch{return!1}}getAbsoluteScrollOffset(t,r){var o,a;let i=0;for(;r&&r.offsetParent!==t.offsetParent;)i+=(o=r.offsetTop)!==null&&o!==void 0?o:0,r=r.offsetParent;return i+((a=r?.offsetTop)!==null&&a!==void 0?a:0)-t.offsetTop}computeTopOffsetRatio(t,r){if(typeof t=="number")return t;switch(t){case"end":return 1;case"center":return .5;case"nearest":return r;default:return 0}}scrollIntoViewIfPossible(t,r){let o=this.findFirstScrollableParent(t);if(t&&this.lock(this,o)){let a=this.getAbsoluteScrollOffset(o,t),i=a-o.clientHeight+t.clientHeight,s=a,l=wr(0,(s-o.scrollTop)/(s-i),1),u=this.computeTopOffsetRatio(r?.position,l)*(i-s)+s;o.scrollTo({behavior:r?.behavior,top:u})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",t,o);this.release(this,o)}};window.FluidTopicsScrollHelper=(Ia=window.FluidTopicsScrollHelper)!==null&&Ia!==void 0?Ia:new Pa;var Jf=window.FluidTopicsScrollHelper;var Ma={};j(Ma,{SearchPlaceConverter:()=>Eo,SearchPlaceQueryParams:()=>G,isSearchPlaceQueryParams:()=>fl,serializeRequest:()=>ep});var Xf=bu(Wc(),1);var Bc;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Bc||(Bc={}));var Hc;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Hc||(Hc={}));var $c;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.MAP_ATTACHMENT="MAP_ATTACHMENT",e.RESOURCE="RESOURCE"})($c||($c={}));var zc;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(zc||(zc={}));var jc;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(jc||(jc={}));var Gc;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.GEN_AI__COMPLETED_QUERY="GEN_AI__COMPLETED_QUERY",e.GEN_AI__RATE="GEN_AI__RATE",e.GENAI_CASE_DEFLECTION__START="GENAI_CASE_DEFLECTION__START",e.GENAI_CASE_DEFLECTION__OPEN_TICKET="GENAI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_CONTEXT_MENU="SEARCH_RESULT__OPEN_CONTEXT_MENU",e.TOPIC__DISPLAY="TOPIC__DISPLAY",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(Gc||(Gc={}));var Yc;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(Yc||(Yc={}));var Vc;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT"})(Vc||(Vc={}));var Kc;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Kc||(Kc={}));var Zc;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(Zc||(Zc={}));var qc;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(qc||(qc={}));var Jc;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Jc||(Jc={}));var Xc;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(Xc||(Xc={}));var Qc;(function(e){e.ASC="ASC",e.DESC="DESC"})(Qc||(Qc={}));var el;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(el||(el={}));var La;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(La||(La={}));var il=e=>Object.keys(La).includes(e);var tl;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK"})(tl||(tl={}));var rl;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(rl||(rl={}));var ol;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK"})(ol||(ol={}));var Qt;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Qt||(Qt={}));var sl=e=>Object.keys(Qt).includes(e);var nl;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC"})(nl||(nl={}));var al;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(al||(al={}));var ne;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(ne||(ne={}));var cl;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(cl||(cl={}));var ll;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(ll||(ll={}));var ul;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(ul||(ul={}));var IO={[ne.PERSONAL_BOOK_SHARE_USER]:[ne.PERSONAL_BOOK_USER],[ne.HTML_EXPORT_USER]:[ne.PERSONAL_BOOK_USER],[ne.PDF_EXPORT_USER]:[ne.PERSONAL_BOOK_USER],[ne.KHUB_ADMIN]:[ne.CONTENT_PUBLISHER],[ne.ADMIN]:[ne.KHUB_ADMIN,ne.USERS_ADMIN,ne.PORTAL_ADMIN],[ne.GENERATIVE_AI_EXPORT_USER]:[ne.GENERATIVE_AI_USER]};function Qf(e){return`"${e}"`}function dl(e){return e.startsWith('"')&&e.endsWith('"')?e.replace(/(^"+)|("+$)/g,""):e}function ep(e,t){return new Eo(e).serialize(t)}var G;(function(e){e.LOCALE="content-lang",e.QUERY="query",e.SCOPE="scope",e.FILTERS="filters",e.VIRTUAL_FIELD="virtual-field",e.PERIOD="period",e.VALUE_FILTERS="value-filters",e.DATE_FILTERS="date-filters",e.RANGE_FILTERS="range-filters",e.SORT="sort",e.PER_PAGE="per-page"})(G||(G={}));var tp=new Set(Object.values(G));function fl(e){return tp.has(e)}var Eo=class{constructor(t,r={},o=20,a=!1,i="en-US"){this.baseUrl=t,this.predefinedSorts=r,this.defaultPerPage=o,this.allLanguagesAllowed=a,this.defaultContentLocale=i,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(t,r){return this.serializeToCurrentPageIfPossible(t,r??"/search")}serializeToCurrentPageIfPossible(t,r){let o=r==null||r.trim().length===0,a=new URL(o?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${r}`);return a.search=this.toURLSearchParams(t),a.toString()}toURLSearchParams(t,r=!1){var o,a,i,s,l,u,f,h,p,m,b,g;let S=new URLSearchParams;t.contentLocale?(!r||t.contentLocale!==this.defaultContentLocale)&&S.append(G.LOCALE,t.contentLocale):S.append(G.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((o=t.query)===null||o===void 0?void 0:o.length)>0&&S.append(G.QUERY,t.query);let _=(i=(a=t.metadataFilters)===null||a===void 0?void 0:a.filter(x=>x.valueFilter))!==null&&i!==void 0?i:[];if(_.length>0){let x=_.map(w=>{var T,D;let B=((D=(T=w.valueFilter)===null||T===void 0?void 0:T.values)!==null&&D!==void 0?D:[]).map(F=>this.escapeFilters(F)).map(F=>Qf(dl(F))).join("_");return`${w.key}~${B}`}).join("*");S.append(G.VALUE_FILTERS,x)}let C=(l=(s=t.metadataFilters)===null||s===void 0?void 0:s.filter(x=>x.dateFilter))!==null&&l!==void 0?l:[];if(C.length>0){let x=C.map(w=>{var T;return`${w.key}~${(T=w.dateFilter)===null||T===void 0?void 0:T.type.toLowerCase()}`}).join("*");S.append(G.DATE_FILTERS,x)}let N=(f=(u=t.metadataFilters)===null||u===void 0?void 0:u.filter(x=>x.rangeFilter))!==null&&f!==void 0?f:[];if(N.length>0){let x=N.map(w=>{var T,D;return`${w.key}~${(T=w.rangeFilter)===null||T===void 0?void 0:T.from}_${(D=w.rangeFilter)===null||D===void 0?void 0:D.to}`}).join("*");S.append(G.RANGE_FILTERS,x)}t.virtualField&&t.virtualField!=="EVERYWHERE"&&S.append(G.VIRTUAL_FIELD,t.virtualField.toLowerCase()),t.scope&&t.scope!=="DEFAULT"&&S.append(G.SCOPE,t.scope.toLowerCase()),((h=t.sort)===null||h===void 0?void 0:h.length)>0&&t.sort[0].key==="ft:lastEdition"&&S.append(G.SORT,"last_update"),!((p=t.paging)===null||p===void 0)&&p.perPage&&((b=(m=t.paging)===null||m===void 0?void 0:m.perPage)!==null&&b!==void 0?b:this.defaultPerPage)!=this.defaultPerPage&&S.append(G.PER_PAGE,String(t.paging.perPage));let O=(g=t.otherQueryParams)!==null&&g!==void 0?g:{};for(let x in O)S.append(x,O[x]);return encodeURI(S.toString()).replace(/#/g,"%23")}parse(t){var r;let o=t.split("?"),a=this.fromURLSearchParams(o.slice(1).join("?")),i=o[0].split("/search/")[1];return i==null?a:{...a,scope:(r=this.scopeMapping[i])!==null&&r!==void 0?r:a.scope}}fromURLSearchParams(t){var r,o,a,i,s,l,u,f;try{t=decodeURI(t).replace(/%23/g,"#")}catch(C){console.warn("Could not decode search request query params, fallback on raw value",C)}let h=new URLSearchParams(t),p=h.get(G.LOCALE)==="all"?void 0:h.get(G.LOCALE),m=((r=h.get(G.VIRTUAL_FIELD))!==null&&r!==void 0?r:"EVERYWHERE").toUpperCase(),b=((o=h.get(G.SORT))!==null&&o!==void 0?o:"DEFAULT").toUpperCase(),g=(a=h.get(G.SCOPE))!==null&&a!==void 0?a:"default",S=+((i=h.get(G.PER_PAGE))!==null&&i!==void 0?i:this.defaultPerPage),_={};for(let C of h.keys())fl(C)||(_[C]=h.get(C));return{contentLocale:p??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=h.get(G.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[g])!==null&&l!==void 0?l:"DEFAULT",virtualField:il(m)?m:"EVERYWHERE",sort:(f=(u=this.predefinedSorts[b])!==null&&u!==void 0?u:this.predefinedSorts.DEFAULT)!==null&&f!==void 0?f:[],metadataFilters:this.parseCompatFilters(h),facets:[],paging:{page:1,perPage:wr(1,isNaN(S)?this.defaultPerPage:S,1e3)},otherQueryParams:_}}parseCompatFilters(t){var r,o,a,i,s,l;let u=[];return t.has(G.FILTERS)&&(u=this.parseValueFilters((r=t.get(G.FILTERS))!==null&&r!==void 0?r:"")),(o=t.has(G.PERIOD))!==null&&o!==void 0&&o&&(u=[...u,...this.parseLegacyPeriodFilter(((a=t.get(G.PERIOD))!==null&&a!==void 0?a:"").toUpperCase())]),[...u,...this.parseValueFilters((i=t.get(G.VALUE_FILTERS))!==null&&i!==void 0?i:""),...this.parseDateFilters((s=t.get(G.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=t.get(G.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(t){return this.superEscapeFilters(t).split("*").map(r=>r.split("~"))}parseValueFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(r=>({key:r[0],valueFilter:{values:r[1].split("_").map(dl).map(o=>this.unescapeFilterValue(o)),negative:!1}}))}parseDateFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(r=>({key:r[0],dateFilter:{type:Qt[r[1].toUpperCase()]}}))}parseRangeFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(r=>({key:r[0],rangeFilter:{from:r[1].split("_")[0],to:r[1].split("_")[1]}}))}escapeFilters(t){for(let[r,o,a]of this.filtersEscapeMapping)t=t.replaceAll(r,o);return t}superEscapeFilters(t){for(let[r,o,a]of this.filtersEscapeMapping)t=t.replaceAll(o,a);return t}unescapeFilterValue(t){for(let[r,o,a]of this.filtersEscapeMapping)t=t.replace(a,r);return t}parseLegacyPeriodFilter(t){if(sl(t))return[{key:"ft:lastEdition",dateFilter:{type:Qt[t]}}];if(t.startsWith("CUSTOM_")){let[r,o,a]=t.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:o,to:a}}]}return[]}};var Ua={};j(Ua,{toFtFormComponent:()=>rp});var Fa=Symbol("elementInternals");function rp(e){class t extends e{static get formAssociated(){return!0}get form(){return this[Fa].form}constructor(...o){super(o),this[Fa]=this.attachInternals()}setFormValue(o){this[Fa].setFormValue(o)}}return t}var Ba={};j(Ba,{DateFormatter:()=>Wa});var Wa=class{static format(t,r,o,a){return window.moment?window.moment(t).locale(r).format(this.getDateFormat(o,a)):t}static getDateFormat(t,r){return t?r?"lll":"ll":r?"L LT":"L"}};var $a={};j($a,{ALL_KEYS_VALUE:()=>Ha,SameWindowStorageEvent:()=>er});var Ha="__all__",er=class extends CustomEvent{constructor(t,r,o){super("same-window-storage",{detail:{key:t,oldValue:r,newValue:o}})}keyMatch(t){return this.detail.key.includes(t)||this.detail.key==Ha}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(e,t,r){let o=t.getItem(r[0]);Reflect.apply(e,t,r),window.dispatchEvent(new er(r[0],o,r[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(e,t,r){let o=t.getItem(r[0]);Reflect.apply(e,t,r),window.dispatchEvent(new er(r[0],o))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(e,t,r){Reflect.apply(e,t,r),window.dispatchEvent(new er(Ha))}});var ja={};j(ja,{FocusMainContentEvent:()=>za});var za=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var pl={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1};function op(e){(e.key==="Enter"||e.key===" "||e.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0)}function np(e){window.FluidTopicsA11yHints.isKeyboardNavigation=e.detail==0}document.addEventListener("keydown",op);document.addEventListener("click",np);var Ga,Ya,Va,Ka,ap=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Va=(Ya=(Ga=window.safari)===null||Ga===void 0?void 0:Ga.pushNotification)===null||Ya===void 0?void 0:Ya.toString())!==null&&Va!==void 0?Va:"")==="[object SafariRemoteNotification]",ip="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Ka=window.ftGlobals)!==null&&Ka!==void 0?Ka:{lit:cn,litDecorators:ln,litRepeat:dn,litClassMap:fn,litStyleMap:pn,litUnsafeHTML:hn,wcUtils:{...On,...mn,...Cn,...Ba,..._n,...Tn,...Ln,...vn,...Zn,...ja,...pl,...Da,...Dn,...ta,...Ua,...Qn,...ec,...Rn,...oa,...na,...rc,...ia,...Ta,...$a,...qn,...Xn,...Ma,isSafari:ap,isTouchScreen:ip,setVariable:so}};var xl;function A(){return xl.apply(null,arguments)}function sp(e){xl=e}function _e(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Tt(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function H(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ii(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(H(e,t))return!1;return!0}function fe(e){return e===void 0}function Je(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function Yr(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function vl(e,t){var r=[],o,a=e.length;for(o=0;o<a;++o)r.push(t(e[o],o));return r}function dt(e,t){for(var r in t)H(t,r)&&(e[r]=t[r]);return H(t,"toString")&&(e.toString=t.toString),H(t,"valueOf")&&(e.valueOf=t.valueOf),e}function Fe(e,t,r,o){return jl(e,t,r,o,!0).utc()}function cp(){return{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}}function L(e){return e._pf==null&&(e._pf=cp()),e._pf}var Qa;Array.prototype.some?Qa=Array.prototype.some:Qa=function(e){var t=Object(this),r=t.length>>>0,o;for(o=0;o<r;o++)if(o in t&&e.call(this,t[o],o,t))return!0;return!1};function si(e){if(e._isValid==null){var t=L(e),r=Qa.call(t.parsedDateParts,function(a){return a!=null}),o=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(e._strict&&(o=o&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=o;else return o}return e._isValid}function Mo(e){var t=Fe(NaN);return e!=null?dt(L(t),e):L(t).userInvalidated=!0,t}var hl=A.momentProperties=[],Za=!1;function ci(e,t){var r,o,a,i=hl.length;if(fe(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),fe(t._i)||(e._i=t._i),fe(t._f)||(e._f=t._f),fe(t._l)||(e._l=t._l),fe(t._strict)||(e._strict=t._strict),fe(t._tzm)||(e._tzm=t._tzm),fe(t._isUTC)||(e._isUTC=t._isUTC),fe(t._offset)||(e._offset=t._offset),fe(t._pf)||(e._pf=L(t)),fe(t._locale)||(e._locale=t._locale),i>0)for(r=0;r<i;r++)o=hl[r],a=t[o],fe(a)||(e[o]=a);return e}function Vr(e){ci(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Za===!1&&(Za=!0,A.updateOffset(this),Za=!1)}function Ae(e){return e instanceof Vr||e!=null&&e._isAMomentObject!=null}function Sl(e){A.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function ve(e,t){var r=!0;return dt(function(){if(A.deprecationHandler!=null&&A.deprecationHandler(null,e),r){var o=[],a,i,s,l=arguments.length;for(i=0;i<l;i++){if(a="",typeof arguments[i]=="object"){a+=`
|
|
48
|
+
`;var rc={};var ia={};j(ia,{ParametrizedLabelResolver:()=>aa});var aa=class e{constructor(t,r){this.defaultLabels=t,this.labels=r}resolve(t,...r){var o,a;t=this.resolvePluralKey(t,r);let i=(a=(o=this.labels[t])!==null&&o!==void 0?o:this.defaultLabels[t])!==null&&a!==void 0?a:"";return e.replaceParameters(i,...r)}static replaceParameters(t,...r){return r.forEach((o,a)=>t=t.replace(new RegExp(`\\{${a}([^}]*)\\}`,"g"),(i,s)=>e.formatValue(o,s))),t}resolvePluralKey(t,r){for(let o of r)if(typeof o=="number"){let a=`${String(t)}[\\=${o}]`;if(a in this.labels||a in this.defaultLabels)return a}return t}static formatValue(t,r){return t instanceof Date?e.formatDate(t,r):t??""}static formatDate(t,r){let o=a=>r?.includes("date")?t.toLocaleDateString(a):r?.includes("time")?t.toLocaleTimeString(a):t.toLocaleString(a);try{return o(document.documentElement.lang)}catch{return o()}}};var Ta={};j(Ta,{FtCommandQueue:()=>Dr,FtLitElementRedux:()=>Yt,FtReduxStore:()=>ka,ReduxWatcher:()=>vo,clearAllStores:()=>Zf,isFtReduxStore:()=>Ct,redux:()=>df,reduxEventListener:()=>ff,reduxReactive:()=>uf,watch:()=>qf});var uf=()=>(e,t)=>{var r;let o=e.constructor;o.reduxReactiveProperties=new Set(o.reduxReactiveProperties),(r=o.reduxReactiveProperties)===null||r===void 0||r.add(t)},df=e=>{let t=e??{};return(r,o)=>{var a;let i={hasChanged:St,attribute:!1,...t};ee(i)(r,o);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(o,{selector:(a=t.selector)!==null&&a!==void 0?a:l=>l[o],store:t.store})}},ff=e=>(t,r)=>{let o=t.constructor;o.reduxEventListeners=new Map(o.reduxEventListeners),o.reduxEventListeners.set(r,e)};var Dr=class{constructor(){this.queue=[]}add(t,r=!1){r&&this.clear(t.type),this.queue.push(t)}consume(t){let r=this.queue.find(o=>o.type===t);return r&&(this.queue=this.queue.filter(o=>o!==r)),r}clear(t){typeof t=="string"?this.queue=this.queue.filter(r=>r.type!==t):this.queue=this.queue.filter(r=>!t.test(r.type))}};function Ct(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var oc,nc,ac,Lr=Symbol("internalReduxEventsUnsubscribers"),at=Symbol("internalStoresUnsubscribers"),_t=Symbol("internalStores"),Yt=class extends de{constructor(){super(...arguments),this[oc]=new Map,this[nc]=new Map,this[ac]=new Map}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some(r=>t.has(r))&&this.updateFromStores()}getUnnamedStore(){if(this[_t].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[_t].values()][0]}getStore(t){return t==null?this.getUnnamedStore():this[_t].get(t)}addStore(t,r){var o;r=(o=r??(Ct(t)?t.name:void 0))!==null&&o!==void 0?o:"default-store",this.unsubscribeFromStore(r),this[_t].set(r,t),this.subscribeToStore(r,t),this.updateFromStores()}removeStore(t){let r=typeof t=="string"?t:t.name;this.unsubscribeFromStore(r),this[_t].delete(r)}setupStores(){this.unsubscribeFromStores(),this[_t].forEach((t,r)=>this.subscribeToStore(r,t)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((t,r)=>{let o=this.constructor.getPropertyOptions(r);if(!o?.attribute||!this.hasAttribute(typeof o?.attribute=="string"?o.attribute:r)){let a=this.getStore(t.store);a&&(t.store?this[at].has(t.store):this[at].size>0)&&(this[r]=t.selector(a.getState(),this))}})}subscribeToStore(t,r){var o;this[at].set(t,r.subscribe(()=>this.updateFromStores())),this[Lr].set(t,[]),Ct(r)&&r.eventBus&&((o=this.reduxConstructor.reduxEventListeners)===null||o===void 0||o.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||r.name===a.store)){let s=l=>this[i](l);r.addEventListener(a.eventName,s),this[Lr].get(t).push(()=>r.removeEventListener(a.eventName,s))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[at].forEach((t,r)=>this.unsubscribeFromStore(r))}unsubscribeFromStore(t){var r;this[at].has(t)&&this[at].get(t)(),this[at].delete(t),(r=this[Lr].get(t))===null||r===void 0||r.forEach(o=>o()),this[Lr].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};oc=at,nc=_t,ac=Lr;Yt.reduxProperties=new Map;Yt.reduxReactiveProperties=new Set;Yt.reduxEventListeners=new Map;function be(e){for(var t=arguments.length,r=Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];if(0)var a,i;throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ge(e){return!!e&&!!e[q]}function Ee(e){var t;return!!e&&(function(r){if(!r||typeof r!="object")return!1;var o=Object.getPrototypeOf(r);if(o===null)return!0;var a=Object.hasOwnProperty.call(o,"constructor")&&o.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===vf}(e)||Array.isArray(e)||!!e[fc]||!!(!((t=e.constructor)===null||t===void 0)&&t[fc])||ya(e)||ma(e))}function At(e,t,r){r===void 0&&(r=!1),Zt(e)===0?(r?Object.keys:Kt)(e).forEach(function(o){r&&typeof o=="symbol"||t(o,e[o],e)}):e.forEach(function(o,a){return t(a,o,e)})}function Zt(e){var t=e[q];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:ya(e)?2:ma(e)?3:0}function Vt(e,t){return Zt(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function pf(e,t){return Zt(e)===2?e.get(t):e[t]}function pc(e,t,r){var o=Zt(e);o===2?e.set(t,r):o===3?e.add(r):e[t]=r}function hc(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function ya(e){return bf&&e instanceof Map}function ma(e){return xf&&e instanceof Set}function it(e){return e.o||e.t}function ga(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=gc(e);delete t[q];for(var r=Kt(t),o=0;o<r.length;o++){var a=r[o],i=t[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),t)}function ba(e,t){return t===void 0&&(t=!1),xa(e)||Ge(e)||!Ee(e)||(Zt(e)>1&&(e.set=e.add=e.clear=e.delete=hf),Object.freeze(e),t&&At(e,function(r,o){return ba(o,!0)},!0)),e}function hf(){be(2)}function xa(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function De(e){var t=ha[e];return t||be(18,e),t}function yf(e,t){ha[e]||(ha[e]=t)}function da(){return Fr}function sa(e,t){t&&(De("Patches"),e.u=[],e.s=[],e.v=t)}function yo(e){fa(e),e.p.forEach(mf),e.p=null}function fa(e){e===Fr&&(Fr=e.l)}function ic(e){return Fr={p:[],l:Fr,h:e,m:!0,_:0}}function mf(e){var t=e[q];t.i===0||t.i===1?t.j():t.g=!0}function ca(e,t){t._=t.p.length;var r=t.p[0],o=e!==void 0&&e!==r;return t.h.O||De("ES5").S(t,e,o),o?(r[q].P&&(yo(t),be(4)),Ee(e)&&(e=mo(t,e),t.l||go(t,e)),t.u&&De("Patches").M(r[q].t,e,t.u,t.s)):e=mo(t,r,[]),yo(t),t.u&&t.v(t.u,t.s),e!==mc?e:void 0}function mo(e,t,r){if(xa(t))return t;var o=t[q];if(!o)return At(t,function(l,u){return sc(e,o,t,l,u,r)},!0),t;if(o.A!==e)return t;if(!o.P)return go(e,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var a=o.i===4||o.i===5?o.o=ga(o.k):o.o,i=a,s=!1;o.i===3&&(i=new Set(a),a.clear(),s=!0),At(i,function(l,u){return sc(e,o,a,l,u,r,s)}),go(e,a,!1),r&&e.u&&De("Patches").N(o,r,e.u,e.s)}return o.o}function sc(e,t,r,o,a,i,s){if(Ge(a)){var l=mo(e,a,i&&t&&t.i!==3&&!Vt(t.R,o)?i.concat(o):void 0);if(pc(r,o,l),!Ge(l))return;e.m=!1}else s&&r.add(a);if(Ee(a)&&!xa(a)){if(!e.h.D&&e._<1)return;mo(e,a),t&&t.A.l||go(e,a)}}function go(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&ba(t,r)}function la(e,t){var r=e[q];return(r?it(r):e)[t]}function cc(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var o=Object.getOwnPropertyDescriptor(r,t);if(o)return o;r=Object.getPrototypeOf(r)}}function st(e){e.P||(e.P=!0,e.l&&st(e.l))}function ua(e){e.o||(e.o=ga(e.t))}function pa(e,t,r){var o=ya(t)?De("MapSet").F(t,r):ma(t)?De("MapSet").T(t,r):e.O?function(a,i){var s=Array.isArray(a),l={i:s?1:0,A:i?i.A:da(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},u=l,f=Ur;s&&(u=[l],f=Mr);var h=Proxy.revocable(u,f),p=h.revoke,m=h.proxy;return l.k=m,l.j=p,m}(t,r):De("ES5").J(t,r);return(r?r.A:da()).p.push(o),o}function gf(e){return Ge(e)||be(22,e),function t(r){if(!Ee(r))return r;var o,a=r[q],i=Zt(r);if(a){if(!a.P&&(a.i<4||!De("ES5").K(a)))return a.t;a.I=!0,o=lc(r,i),a.I=!1}else o=lc(r,i);return At(o,function(s,l){a&&pf(a.t,s)===l||pc(o,s,t(l))}),i===3?new Set(o):o}(e)}function lc(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return ga(e)}function yc(){function e(s,l){var u=i[s];return u?u.enumerable=l:i[s]=u={configurable:!0,enumerable:l,get:function(){var f=this[q];return Ur.get(f,s)},set:function(f){var h=this[q];Ur.set(h,s,f)}},u}function t(s){for(var l=s.length-1;l>=0;l--){var u=s[l][q];if(!u.P)switch(u.i){case 5:o(u)&&st(u);break;case 4:r(u)&&st(u)}}}function r(s){for(var l=s.t,u=s.k,f=Kt(u),h=f.length-1;h>=0;h--){var p=f[h];if(p!==q){var m=l[p];if(m===void 0&&!Vt(l,p))return!0;var b=u[p],g=b&&b[q];if(g?g.t!==m:!hc(b,m))return!0}}var S=!!l[q];return f.length!==Kt(l).length+(S?0:1)}function o(s){var l=s.k;if(l.length!==s.t.length)return!0;var u=Object.getOwnPropertyDescriptor(l,l.length-1);if(u&&!u.get)return!0;for(var f=0;f<l.length;f++)if(!l.hasOwnProperty(f))return!0;return!1}function a(s){s.g&&be(3,JSON.stringify(it(s)))}var i={};yf("ES5",{J:function(s,l){var u=Array.isArray(s),f=function(p,m){if(p){for(var b=Array(m.length),g=0;g<m.length;g++)Object.defineProperty(b,""+g,e(g,!0));return b}var S=gc(m);delete S[q];for(var _=Kt(S),C=0;C<_.length;C++){var N=_[C];S[N]=e(N,p||!!S[N].enumerable)}return Object.create(Object.getPrototypeOf(m),S)}(u,s),h={i:u?5:4,A:l?l.A:da(),P:!1,I:!1,R:{},l,t:s,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,q,{value:h,writable:!0}),f},S:function(s,l,u){u?Ge(l)&&l[q].A===s&&t(s.p):(s.u&&function f(h){if(h&&typeof h=="object"){var p=h[q];if(p){var m=p.t,b=p.k,g=p.R,S=p.i;if(S===4)At(b,function(x){x!==q&&(m[x]!==void 0||Vt(m,x)?g[x]||f(b[x]):(g[x]=!0,st(p)))}),At(m,function(x){b[x]!==void 0||Vt(b,x)||(g[x]=!1,st(p))});else if(S===5){if(o(p)&&(st(p),g.length=!0),b.length<m.length)for(var _=b.length;_<m.length;_++)g[_]=!1;else for(var C=m.length;C<b.length;C++)g[C]=!0;for(var N=Math.min(b.length,m.length),O=0;O<N;O++)b.hasOwnProperty(O)||(g[O]=!0),g[O]===void 0&&f(b[O])}}}}(s.p[0]),t(s.p))},K:function(s){return s.i===4?r(s):o(s)}})}var uc,Fr,va=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",bf=typeof Map<"u",xf=typeof Set<"u",dc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",mc=va?Symbol.for("immer-nothing"):((uc={})["immer-nothing"]=!0,uc),fc=va?Symbol.for("immer-draftable"):"__$immer_draftable",q=va?Symbol.for("immer-state"):"__$immer_state";var vf=""+Object.prototype.constructor,Kt=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,gc=Object.getOwnPropertyDescriptors||function(e){var t={};return Kt(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},ha={},Ur={get:function(e,t){if(t===q)return e;var r=it(e);if(!Vt(r,t))return function(a,i,s){var l,u=cc(i,s);return u?"value"in u?u.value:(l=u.get)===null||l===void 0?void 0:l.call(a.k):void 0}(e,r,t);var o=r[t];return e.I||!Ee(o)?o:o===la(e.t,t)?(ua(e),e.o[t]=pa(e.A.h,o,e)):o},has:function(e,t){return t in it(e)},ownKeys:function(e){return Reflect.ownKeys(it(e))},set:function(e,t,r){var o=cc(it(e),t);if(o?.set)return o.set.call(e.k,r),!0;if(!e.P){var a=la(it(e),t),i=a?.[q];if(i&&i.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(hc(r,a)&&(r!==void 0||Vt(e.t,t)))return!0;ua(e),st(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return la(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,ua(e),st(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=it(e),o=Reflect.getOwnPropertyDescriptor(r,t);return o&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:o.enumerable,value:r[t]}},defineProperty:function(){be(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){be(12)}},Mr={};At(Ur,function(e,t){Mr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Mr.deleteProperty=function(e,t){return Mr.set.call(this,e,t,void 0)},Mr.set=function(e,t,r){return Ur.set.call(this,e[0],t,r,e[0])};var Sf=function(){function e(r){var o=this;this.O=dc,this.D=!0,this.produce=function(a,i,s){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var u=o;return function(S){var _=this;S===void 0&&(S=l);for(var C=arguments.length,N=Array(C>1?C-1:0),O=1;O<C;O++)N[O-1]=arguments[O];return u.produce(S,function(x){var w;return(w=i).call.apply(w,[_,x].concat(N))})}}var f;if(typeof i!="function"&&be(6),s!==void 0&&typeof s!="function"&&be(7),Ee(a)){var h=ic(o),p=pa(o,a,void 0),m=!0;try{f=i(p),m=!1}finally{m?yo(h):fa(h)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(S){return sa(h,s),ca(S,h)},function(S){throw yo(h),S}):(sa(h,s),ca(f,h))}if(!a||typeof a!="object"){if((f=i(a))===void 0&&(f=a),f===mc&&(f=void 0),o.D&&ba(f,!0),s){var b=[],g=[];De("Patches").M(a,f,b,g),s(b,g)}return f}be(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(f){for(var h=arguments.length,p=Array(h>1?h-1:0),m=1;m<h;m++)p[m-1]=arguments[m];return o.produceWithPatches(f,function(b){return a.apply(void 0,[b].concat(p))})};var s,l,u=o.produce(a,i,function(f,h){s=f,l=h});return typeof Promise<"u"&&u instanceof Promise?u.then(function(f){return[f,s,l]}):[u,s,l]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){Ee(r)||be(8),Ge(r)&&(r=gf(r));var o=ic(this),a=pa(this,r,void 0);return a[q].C=!0,fa(o),a},t.finishDraft=function(r,o){var a=r&&r[q],i=a.A;return sa(i,o),ca(void 0,i)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!dc&&be(20),this.O=r},t.applyPatches=function(r,o){var a;for(a=o.length-1;a>=0;a--){var i=o[a];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}a>-1&&(o=o.slice(a+1));var s=De("Patches").$;return Ge(r)?s(r,o):this.produce(r,function(l){return s(l,o)})},e}(),he=new Sf,Of=he.produce,NS=he.produceWithPatches.bind(he),kS=he.setAutoFreeze.bind(he),TS=he.setUseProxies.bind(he),IS=he.applyPatches.bind(he),PS=he.createDraft.bind(he),DS=he.finishDraft.bind(he),bo=Of;function Rt(e){"@babel/helpers - typeof";return Rt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rt(e)}function bc(e,t){if(Rt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t||"default");if(Rt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xc(e){var t=bc(e,"string");return Rt(t)=="symbol"?t:t+""}function vc(e,t,r){return(t=xc(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,o)}return r}function Sa(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sc(Object(r),!0).forEach(function(o){vc(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sc(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function ie(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Oc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Oa=function(){return Math.random().toString(36).substring(7).split("").join(".")},xo={INIT:"@@redux/INIT"+Oa(),REPLACE:"@@redux/REPLACE"+Oa(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Oa()}};function wf(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function wa(e,t,r){var o;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ie(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ie(1));return r(wa)(e,t)}if(typeof e!="function")throw new Error(ie(2));var a=e,i=t,s=[],l=s,u=!1;function f(){l===s&&(l=s.slice())}function h(){if(u)throw new Error(ie(3));return i}function p(S){if(typeof S!="function")throw new Error(ie(4));if(u)throw new Error(ie(5));var _=!0;return f(),l.push(S),function(){if(_){if(u)throw new Error(ie(6));_=!1,f();var N=l.indexOf(S);l.splice(N,1),s=null}}}function m(S){if(!wf(S))throw new Error(ie(7));if(typeof S.type>"u")throw new Error(ie(8));if(u)throw new Error(ie(9));try{u=!0,i=a(i,S)}finally{u=!1}for(var _=s=l,C=0;C<_.length;C++){var N=_[C];N()}return S}function b(S){if(typeof S!="function")throw new Error(ie(10));a=S,m({type:xo.REPLACE})}function g(){var S,_=p;return S={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(ie(11));function O(){N.next&&N.next(h())}O();var x=_(O);return{unsubscribe:x}}},S[Oc]=function(){return this},S}return m({type:xo.INIT}),o={dispatch:m,subscribe:p,getState:h,replaceReducer:b},o[Oc]=g,o}function Ef(e){Object.keys(e).forEach(function(t){var r=e[t],o=r(void 0,{type:xo.INIT});if(typeof o>"u")throw new Error(ie(12));if(typeof r(void 0,{type:xo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ie(13))})}function wc(e){for(var t=Object.keys(e),r={},o=0;o<t.length;o++){var a=t[o];typeof e[a]=="function"&&(r[a]=e[a])}var i=Object.keys(r),s,l;try{Ef(r)}catch(u){l=u}return function(f,h){if(f===void 0&&(f={}),l)throw l;if(0)var p;for(var m=!1,b={},g=0;g<i.length;g++){var S=i[g],_=r[S],C=f[S],N=_(C,h);if(typeof N>"u"){var O=h&&h.type;throw new Error(ie(14))}b[S]=N,m=m||N!==C}return m=m||i.length!==Object.keys(f).length,m?b:f}}function qt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(o){return o}:t.length===1?t[0]:t.reduce(function(o,a){return function(){return o(a.apply(void 0,arguments))}})}function Ec(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(o){return function(){var a=o.apply(void 0,arguments),i=function(){throw new Error(ie(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=t.map(function(u){return u(s)});return i=qt.apply(void 0,l)(a.dispatch),Sa(Sa({},a),{},{dispatch:i})}}}function Cc(e){var t=function(o){var a=o.dispatch,i=o.getState;return function(s){return function(l){return typeof l=="function"?l(a,i,e):s(l)}}};return t}var _c=Cc();_c.withExtraArgument=Cc;var Ea=_c;var Tc=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,a){o.__proto__=a}||function(o,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(o[i]=a[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function o(){this.constructor=t}t.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}}(),Cf=function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,a,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(f){return function(h){return u([f,h])}}function u(f){if(o)throw new TypeError("Generator is already executing.");for(;r;)try{if(o=1,a&&(i=f[0]&2?a.return:f[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,f[1])).done)return i;switch(a=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++,a=f[1],f=[0];continue;case 7:f=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]<i[3])){r.label=f[1];break}if(f[0]===6&&r.label<i[1]){r.label=i[1],i=f;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(f);break}i[2]&&r.ops.pop(),r.trys.pop();continue}f=t.call(e,r)}catch(h){f=[6,h],a=0}finally{o=i=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},Jt=function(e,t){for(var r=0,o=t.length,a=e.length;r<o;r++,a++)e[a]=t[r];return e},_f=Object.defineProperty,Af=Object.defineProperties,Rf=Object.getOwnPropertyDescriptors,Ac=Object.getOwnPropertySymbols,Nf=Object.prototype.hasOwnProperty,kf=Object.prototype.propertyIsEnumerable,Rc=function(e,t,r){return t in e?_f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},ct=function(e,t){for(var r in t||(t={}))Nf.call(t,r)&&Rc(e,r,t[r]);if(Ac)for(var o=0,a=Ac(t);o<a.length;o++){var r=a[o];kf.call(t,r)&&Rc(e,r,t[r])}return e},Ca=function(e,t){return Af(e,Rf(t))},Tf=function(e,t,r){return new Promise(function(o,a){var i=function(u){try{l(r.next(u))}catch(f){a(f)}},s=function(u){try{l(r.throw(u))}catch(f){a(f)}},l=function(u){return u.done?o(u.value):Promise.resolve(u.value).then(i,s)};l((r=r.apply(e,t)).next())})};var If=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?qt:qt.apply(null,arguments)},XS=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Pf(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var r=t;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}var Df=function(e){Tc(t,e);function t(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var a=e.apply(this,r)||this;return Object.setPrototypeOf(a,t.prototype),a}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,Jt([void 0],r[0].concat(this)))):new(t.bind.apply(t,Jt([void 0],r.concat(this))))},t}(Array),Lf=function(e){Tc(t,e);function t(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var a=e.apply(this,r)||this;return Object.setPrototypeOf(a,t.prototype),a}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,Jt([void 0],r[0].concat(this)))):new(t.bind.apply(t,Jt([void 0],r.concat(this))))},t}(Array);function Ra(e){return Ee(e)?bo(e,function(){}):e}function Mf(e){return typeof e=="boolean"}function Ff(){return function(t){return Uf(t)}}function Uf(e){e===void 0&&(e={});var t=e.thunk,r=t===void 0?!0:t,o=e.immutableCheck,a=o===void 0?!0:o,i=e.serializableCheck,s=i===void 0?!0:i,l=new Df;if(r&&(Mf(r)?l.push(Ea):l.push(Ea.withExtraArgument(r.extraArgument))),0){if(a)var u;if(s)var f}return l}var _a=!0;function Ic(e){var t=Ff(),r=e||{},o=r.reducer,a=o===void 0?void 0:o,i=r.middleware,s=i===void 0?t():i,l=r.devTools,u=l===void 0?!0:l,f=r.preloadedState,h=f===void 0?void 0:f,p=r.enhancers,m=p===void 0?void 0:p,b;if(typeof a=="function")b=a;else if(Pf(a))b=wc(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var g=s;if(typeof g=="function"&&(g=g(t),!_a&&!Array.isArray(g)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!_a&&g.some(function(x){return typeof x!="function"}))throw new Error("each middleware provided to configureStore must be a function");var S=Ec.apply(void 0,g),_=qt;u&&(_=If(ct({trace:!_a},typeof u=="object"&&u)));var C=new Lf(S),N=C;Array.isArray(m)?N=Jt([S],m):typeof m=="function"&&(N=m(C));var O=_.apply(void 0,N);return wa(b,h,O)}function lt(e,t){function r(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];if(t){var i=t.apply(void 0,o);if(!i)throw new Error("prepareAction did not return an object");return ct(ct({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:o[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(o){return o.type===e},r}function Pc(e){var t={},r=[],o,a={addCase:function(i,s){var l=typeof i=="string"?i:i.type;if(l in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[l]=s,a},addMatcher:function(i,s){return r.push({matcher:i,reducer:s}),a},addDefaultCase:function(i){return o=i,a}};return e(a),[t,r,o]}function Wf(e){return typeof e=="function"}function Bf(e,t,r,o){r===void 0&&(r=[]);var a=typeof t=="function"?Pc(t):[t,r,o],i=a[0],s=a[1],l=a[2],u;if(Wf(e))u=function(){return Ra(e())};else{var f=Ra(e);u=function(){return f}}function h(p,m){p===void 0&&(p=u());var b=Jt([i[m.type]],s.filter(function(g){var S=g.matcher;return S(m)}).map(function(g){var S=g.reducer;return S}));return b.filter(function(g){return!!g}).length===0&&(b=[l]),b.reduce(function(g,S){if(S)if(Ge(g)){var _=g,C=S(_,m);return C===void 0?g:C}else{if(Ee(g))return bo(g,function(N){return S(N,m)});var C=S(g,m);if(C===void 0){if(g===null)return g;throw Error("A case reducer on a non-draftable value must not return undefined")}return C}return g},p)}return h.getInitialState=u,h}function Hf(e,t){return e+"/"+t}function Dc(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof e.initialState=="function"?e.initialState:Ra(e.initialState),o=e.reducers||{},a=Object.keys(o),i={},s={},l={};a.forEach(function(h){var p=o[h],m=Hf(t,h),b,g;"reducer"in p?(b=p.reducer,g=p.prepare):b=p,i[h]=b,s[m]=b,l[h]=g?lt(m,g):lt(m)});function u(){var h=typeof e.extraReducers=="function"?Pc(e.extraReducers):[e.extraReducers],p=h[0],m=p===void 0?{}:p,b=h[1],g=b===void 0?[]:b,S=h[2],_=S===void 0?void 0:S,C=ct(ct({},m),s);return Bf(r,function(N){for(var O in C)N.addCase(O,C[O]);for(var x=0,w=g;x<w.length;x++){var T=w[x];N.addMatcher(T.matcher,T.reducer)}_&&N.addDefaultCase(_)})}var f;return{name:t,reducer:function(h,p){return f||(f=u()),f(h,p)},actions:l,caseReducers:i,getInitialState:function(){return f||(f=u()),f.getInitialState()}}}var $f="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",zf=function(e){e===void 0&&(e=21);for(var t="",r=e;r--;)t+=$f[Math.random()*64|0];return t},jf=["name","message","stack","code"],Aa=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),Nc=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),Gf=function(e){if(typeof e=="object"&&e!==null){for(var t={},r=0,o=jf;r<o.length;r++){var a=o[r];typeof e[a]=="string"&&(t[a]=e[a])}return t}return{message:String(e)}},rO=function(){function e(t,r,o){var a=lt(t+"/fulfilled",function(h,p,m,b){return{payload:h,meta:Ca(ct({},b||{}),{arg:m,requestId:p,requestStatus:"fulfilled"})}}),i=lt(t+"/pending",function(h,p,m){return{payload:void 0,meta:Ca(ct({},m||{}),{arg:p,requestId:h,requestStatus:"pending"})}}),s=lt(t+"/rejected",function(h,p,m,b,g){return{payload:b,error:(o&&o.serializeError||Gf)(h||"Rejected"),meta:Ca(ct({},g||{}),{arg:m,requestId:p,rejectedWithValue:!!b,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,u=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function f(h){return function(p,m,b){var g=o?.idGenerator?o.idGenerator(h):zf(),S=new u,_,C=!1;function N(x){_=x,S.abort()}var O=function(){return Tf(this,null,function(){var x,w,T,D,B,F,I;return Cf(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),D=(x=o?.condition)==null?void 0:x.call(o,h,{getState:m,extra:b}),Vf(D)?[4,D]:[3,2];case 1:D=y.sent(),y.label=2;case 2:if(D===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return C=!0,B=new Promise(function(v,k){return S.signal.addEventListener("abort",function(){return k({name:"AbortError",message:_||"Aborted"})})}),p(i(g,h,(w=o?.getPendingMeta)==null?void 0:w.call(o,{requestId:g,arg:h},{getState:m,extra:b}))),[4,Promise.race([B,Promise.resolve(r(h,{dispatch:p,getState:m,extra:b,requestId:g,signal:S.signal,abort:N,rejectWithValue:function(v,k){return new Aa(v,k)},fulfillWithValue:function(v,k){return new Nc(v,k)}})).then(function(v){if(v instanceof Aa)throw v;return v instanceof Nc?a(v.payload,g,h,v.meta):a(v,g,h)})])];case 3:return T=y.sent(),[3,5];case 4:return F=y.sent(),T=F instanceof Aa?s(null,g,h,F.payload,F.meta):s(F,g,h),[3,5];case 5:return I=o&&!o.dispatchConditionRejection&&s.match(T)&&T.meta.condition,I||p(T),[2,T]}})})}();return Object.assign(O,{abort:N,requestId:g,arg:h,unwrap:function(){return O.then(Yf)}})}}return Object.assign(f,{pending:i,rejected:s,fulfilled:a,typePrefix:t})}return e.withTypes=function(){return e},e}();function Yf(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Vf(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Lc="listener",Mc="completed",Fc="cancelled",oO="task-"+Fc,nO="task-"+Mc,aO=Lc+"-"+Fc,iO=Lc+"-"+Mc;var Na="listenerMiddleware";var sO=lt(Na+"/add"),cO=lt(Na+"/removeAll"),lO=lt(Na+"/remove");var kc,uO=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(kc||(kc=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},Kf=function(e){return function(t){setTimeout(t,e)}},dO=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Kf(10);yc();window.ftReduxStores||(window.ftReduxStores={});var ka=class e extends vt{static get(t){var r;let o=typeof t=="string"?t:t.name,a=typeof t=="string"?void 0:t,i=window.ftReduxStores[o];if(Ct(i))return i;if(a==null)return;let s=Dc({...a,reducers:(r=a.reducers)!==null&&r!==void 0?r:{}}),l=Ic({reducer:(u,f)=>f.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof f.type=="string"&&f.type.startsWith("DEFAULT_VALUE_SETTER__")?{...u,...f.overwrites}:s.reducer(u,f)});return window.ftReduxStores[a.name]=new e(s,l,a.eventBus)}constructor(t,r,o){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Dr;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,s,l)=>{let u=s,f=i[u];return f?(...h)=>{let p=f(...h.map(a));return this.reduxStore.dispatch(p),p}:h=>{this.setState({[u]:a(h)})}}}),this.eventBus=o??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function Zf(){var e;for(let t of Object.values((e=window.ftReduxStores)!==null&&e!==void 0?e:{}))Ct(t)&&t.clear()}var vo=class{constructor(t,r,o){this.store=t,this.valueSelector=r,this.callback=o}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let t=this.store.getState(),r=this.valueSelector(t);St(this.lastValue,r)&&(this.callback(r,t),this.lastValue=r)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function qf(e,t,r){return new vo(e,t,r).watch()}var Da={};j(Da,{scrollHelper:()=>Jf});var Ia,So=new Map,Pa=class{lock(t,r){if(r){let o=So.get(r);if(o==null||o===t)return So.set(r,t),r}}release(t,r){r&&So.get(r)===t&&So.delete(r)}findFirstScrollableParent(t){var r;let o,a;for(let i of An(t)){let s=i,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){o=s;break}else l&&a==null&&(a=s)}return(r=o??a)!==null&&r!==void 0?r:document.body}elementCanScroll(t){try{return["auto","scroll"].includes(getComputedStyle(t).overflowY)}catch{return!1}}getAbsoluteScrollOffset(t,r){var o,a;let i=0;for(;r&&r.offsetParent!==t.offsetParent;)i+=(o=r.offsetTop)!==null&&o!==void 0?o:0,r=r.offsetParent;return i+((a=r?.offsetTop)!==null&&a!==void 0?a:0)-t.offsetTop}computeTopOffsetRatio(t,r){if(typeof t=="number")return t;switch(t){case"end":return 1;case"center":return .5;case"nearest":return r;default:return 0}}scrollIntoViewIfPossible(t,r){let o=this.findFirstScrollableParent(t);if(t&&this.lock(this,o)){let a=this.getAbsoluteScrollOffset(o,t),i=a-o.clientHeight+t.clientHeight,s=a,l=wr(0,(s-o.scrollTop)/(s-i),1),u=this.computeTopOffsetRatio(r?.position,l)*(i-s)+s;o.scrollTo({behavior:r?.behavior,top:u})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",t,o);this.release(this,o)}};window.FluidTopicsScrollHelper=(Ia=window.FluidTopicsScrollHelper)!==null&&Ia!==void 0?Ia:new Pa;var Jf=window.FluidTopicsScrollHelper;var Ma={};j(Ma,{SearchPlaceConverter:()=>Eo,SearchPlaceQueryParams:()=>G,isSearchPlaceQueryParams:()=>fl,serializeRequest:()=>ep});var Xf=bu(Wc(),1);var Bc;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(Bc||(Bc={}));var Hc;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(Hc||(Hc={}));var $c;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.MAP_ATTACHMENT="MAP_ATTACHMENT",e.RESOURCE="RESOURCE"})($c||($c={}));var zc;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(zc||(zc={}));var jc;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(jc||(jc={}));var Gc;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.GEN_AI__COMPLETED_QUERY="GEN_AI__COMPLETED_QUERY",e.GEN_AI__RATE="GEN_AI__RATE",e.GENAI_CASE_DEFLECTION__START="GENAI_CASE_DEFLECTION__START",e.GENAI_CASE_DEFLECTION__OPEN_TICKET="GENAI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__DISPLAY="TOPIC__DISPLAY",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(Gc||(Gc={}));var Yc;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(Yc||(Yc={}));var Vc;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT"})(Vc||(Vc={}));var Kc;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Kc||(Kc={}));var Zc;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(Zc||(Zc={}));var qc;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(qc||(qc={}));var Jc;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Jc||(Jc={}));var Xc;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(Xc||(Xc={}));var Qc;(function(e){e.ASC="ASC",e.DESC="DESC"})(Qc||(Qc={}));var el;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(el||(el={}));var La;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(La||(La={}));var il=e=>Object.keys(La).includes(e);var tl;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK"})(tl||(tl={}));var rl;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(rl||(rl={}));var ol;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK"})(ol||(ol={}));var Qt;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Qt||(Qt={}));var sl=e=>Object.keys(Qt).includes(e);var nl;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC"})(nl||(nl={}));var al;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(al||(al={}));var ne;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(ne||(ne={}));var cl;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(cl||(cl={}));var ll;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(ll||(ll={}));var ul;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(ul||(ul={}));var IO={[ne.PERSONAL_BOOK_SHARE_USER]:[ne.PERSONAL_BOOK_USER],[ne.HTML_EXPORT_USER]:[ne.PERSONAL_BOOK_USER],[ne.PDF_EXPORT_USER]:[ne.PERSONAL_BOOK_USER],[ne.KHUB_ADMIN]:[ne.CONTENT_PUBLISHER],[ne.ADMIN]:[ne.KHUB_ADMIN,ne.USERS_ADMIN,ne.PORTAL_ADMIN],[ne.GENERATIVE_AI_EXPORT_USER]:[ne.GENERATIVE_AI_USER]};function Qf(e){return`"${e}"`}function dl(e){return e.startsWith('"')&&e.endsWith('"')?e.replace(/(^"+)|("+$)/g,""):e}function ep(e,t){return new Eo(e).serialize(t)}var G;(function(e){e.LOCALE="content-lang",e.QUERY="query",e.SCOPE="scope",e.FILTERS="filters",e.VIRTUAL_FIELD="virtual-field",e.PERIOD="period",e.VALUE_FILTERS="value-filters",e.DATE_FILTERS="date-filters",e.RANGE_FILTERS="range-filters",e.SORT="sort",e.PER_PAGE="per-page"})(G||(G={}));var tp=new Set(Object.values(G));function fl(e){return tp.has(e)}var Eo=class{constructor(t,r={},o=20,a=!1,i="en-US"){this.baseUrl=t,this.predefinedSorts=r,this.defaultPerPage=o,this.allLanguagesAllowed=a,this.defaultContentLocale=i,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(t,r){return this.serializeToCurrentPageIfPossible(t,r??"/search")}serializeToCurrentPageIfPossible(t,r){let o=r==null||r.trim().length===0,a=new URL(o?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${r}`);return a.search=this.toURLSearchParams(t),a.toString()}toURLSearchParams(t,r=!1){var o,a,i,s,l,u,f,h,p,m,b,g;let S=new URLSearchParams;t.contentLocale?(!r||t.contentLocale!==this.defaultContentLocale)&&S.append(G.LOCALE,t.contentLocale):S.append(G.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((o=t.query)===null||o===void 0?void 0:o.length)>0&&S.append(G.QUERY,t.query);let _=(i=(a=t.metadataFilters)===null||a===void 0?void 0:a.filter(x=>x.valueFilter))!==null&&i!==void 0?i:[];if(_.length>0){let x=_.map(w=>{var T,D;let B=((D=(T=w.valueFilter)===null||T===void 0?void 0:T.values)!==null&&D!==void 0?D:[]).map(F=>this.escapeFilters(F)).map(F=>Qf(dl(F))).join("_");return`${w.key}~${B}`}).join("*");S.append(G.VALUE_FILTERS,x)}let C=(l=(s=t.metadataFilters)===null||s===void 0?void 0:s.filter(x=>x.dateFilter))!==null&&l!==void 0?l:[];if(C.length>0){let x=C.map(w=>{var T;return`${w.key}~${(T=w.dateFilter)===null||T===void 0?void 0:T.type.toLowerCase()}`}).join("*");S.append(G.DATE_FILTERS,x)}let N=(f=(u=t.metadataFilters)===null||u===void 0?void 0:u.filter(x=>x.rangeFilter))!==null&&f!==void 0?f:[];if(N.length>0){let x=N.map(w=>{var T,D;return`${w.key}~${(T=w.rangeFilter)===null||T===void 0?void 0:T.from}_${(D=w.rangeFilter)===null||D===void 0?void 0:D.to}`}).join("*");S.append(G.RANGE_FILTERS,x)}t.virtualField&&t.virtualField!=="EVERYWHERE"&&S.append(G.VIRTUAL_FIELD,t.virtualField.toLowerCase()),t.scope&&t.scope!=="DEFAULT"&&S.append(G.SCOPE,t.scope.toLowerCase()),((h=t.sort)===null||h===void 0?void 0:h.length)>0&&t.sort[0].key==="ft:lastEdition"&&S.append(G.SORT,"last_update"),!((p=t.paging)===null||p===void 0)&&p.perPage&&((b=(m=t.paging)===null||m===void 0?void 0:m.perPage)!==null&&b!==void 0?b:this.defaultPerPage)!=this.defaultPerPage&&S.append(G.PER_PAGE,String(t.paging.perPage));let O=(g=t.otherQueryParams)!==null&&g!==void 0?g:{};for(let x in O)S.append(x,O[x]);return encodeURI(S.toString()).replace(/#/g,"%23")}parse(t){var r;let o=t.split("?"),a=this.fromURLSearchParams(o.slice(1).join("?")),i=o[0].split("/search/")[1];return i==null?a:{...a,scope:(r=this.scopeMapping[i])!==null&&r!==void 0?r:a.scope}}fromURLSearchParams(t){var r,o,a,i,s,l,u,f;try{t=decodeURI(t).replace(/%23/g,"#")}catch(C){console.warn("Could not decode search request query params, fallback on raw value",C)}let h=new URLSearchParams(t),p=h.get(G.LOCALE)==="all"?void 0:h.get(G.LOCALE),m=((r=h.get(G.VIRTUAL_FIELD))!==null&&r!==void 0?r:"EVERYWHERE").toUpperCase(),b=((o=h.get(G.SORT))!==null&&o!==void 0?o:"DEFAULT").toUpperCase(),g=(a=h.get(G.SCOPE))!==null&&a!==void 0?a:"default",S=+((i=h.get(G.PER_PAGE))!==null&&i!==void 0?i:this.defaultPerPage),_={};for(let C of h.keys())fl(C)||(_[C]=h.get(C));return{contentLocale:p??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=h.get(G.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[g])!==null&&l!==void 0?l:"DEFAULT",virtualField:il(m)?m:"EVERYWHERE",sort:(f=(u=this.predefinedSorts[b])!==null&&u!==void 0?u:this.predefinedSorts.DEFAULT)!==null&&f!==void 0?f:[],metadataFilters:this.parseCompatFilters(h),facets:[],paging:{page:1,perPage:wr(1,isNaN(S)?this.defaultPerPage:S,1e3)},otherQueryParams:_}}parseCompatFilters(t){var r,o,a,i,s,l;let u=[];return t.has(G.FILTERS)&&(u=this.parseValueFilters((r=t.get(G.FILTERS))!==null&&r!==void 0?r:"")),(o=t.has(G.PERIOD))!==null&&o!==void 0&&o&&(u=[...u,...this.parseLegacyPeriodFilter(((a=t.get(G.PERIOD))!==null&&a!==void 0?a:"").toUpperCase())]),[...u,...this.parseValueFilters((i=t.get(G.VALUE_FILTERS))!==null&&i!==void 0?i:""),...this.parseDateFilters((s=t.get(G.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=t.get(G.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(t){return this.superEscapeFilters(t).split("*").map(r=>r.split("~"))}parseValueFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(r=>({key:r[0],valueFilter:{values:r[1].split("_").map(dl).map(o=>this.unescapeFilterValue(o)),negative:!1}}))}parseDateFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(r=>({key:r[0],dateFilter:{type:Qt[r[1].toUpperCase()]}}))}parseRangeFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(r=>({key:r[0],rangeFilter:{from:r[1].split("_")[0],to:r[1].split("_")[1]}}))}escapeFilters(t){for(let[r,o,a]of this.filtersEscapeMapping)t=t.replaceAll(r,o);return t}superEscapeFilters(t){for(let[r,o,a]of this.filtersEscapeMapping)t=t.replaceAll(o,a);return t}unescapeFilterValue(t){for(let[r,o,a]of this.filtersEscapeMapping)t=t.replace(a,r);return t}parseLegacyPeriodFilter(t){if(sl(t))return[{key:"ft:lastEdition",dateFilter:{type:Qt[t]}}];if(t.startsWith("CUSTOM_")){let[r,o,a]=t.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:o,to:a}}]}return[]}};var Ua={};j(Ua,{toFtFormComponent:()=>rp});var Fa=Symbol("elementInternals");function rp(e){class t extends e{static get formAssociated(){return!0}get form(){return this[Fa].form}constructor(...o){super(o),this[Fa]=this.attachInternals()}setFormValue(o){this[Fa].setFormValue(o)}}return t}var Ba={};j(Ba,{DateFormatter:()=>Wa});var Wa=class{static format(t,r,o,a){return window.moment?window.moment(t).locale(r).format(this.getDateFormat(o,a)):t}static getDateFormat(t,r){return t?r?"lll":"ll":r?"L LT":"L"}};var $a={};j($a,{ALL_KEYS_VALUE:()=>Ha,SameWindowStorageEvent:()=>er});var Ha="__all__",er=class extends CustomEvent{constructor(t,r,o){super("same-window-storage",{detail:{key:t,oldValue:r,newValue:o}})}keyMatch(t){return this.detail.key.includes(t)||this.detail.key==Ha}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(e,t,r){let o=t.getItem(r[0]);Reflect.apply(e,t,r),window.dispatchEvent(new er(r[0],o,r[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(e,t,r){let o=t.getItem(r[0]);Reflect.apply(e,t,r),window.dispatchEvent(new er(r[0],o))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(e,t,r){Reflect.apply(e,t,r),window.dispatchEvent(new er(Ha))}});var ja={};j(ja,{FocusMainContentEvent:()=>za});var za=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var pl={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1};function op(e){(e.key==="Enter"||e.key===" "||e.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0)}function np(e){window.FluidTopicsA11yHints.isKeyboardNavigation=e.detail==0}document.addEventListener("keydown",op);document.addEventListener("click",np);var Ga,Ya,Va,Ka,ap=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Va=(Ya=(Ga=window.safari)===null||Ga===void 0?void 0:Ga.pushNotification)===null||Ya===void 0?void 0:Ya.toString())!==null&&Va!==void 0?Va:"")==="[object SafariRemoteNotification]",ip="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Ka=window.ftGlobals)!==null&&Ka!==void 0?Ka:{lit:cn,litDecorators:ln,litRepeat:dn,litClassMap:fn,litStyleMap:pn,litUnsafeHTML:hn,wcUtils:{...On,...mn,...Cn,...Ba,..._n,...Tn,...Ln,...vn,...Zn,...ja,...pl,...Da,...Dn,...ta,...Ua,...Qn,...ec,...Rn,...oa,...na,...rc,...ia,...Ta,...$a,...qn,...Xn,...Ma,isSafari:ap,isTouchScreen:ip,setVariable:so}};var xl;function A(){return xl.apply(null,arguments)}function sp(e){xl=e}function _e(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Tt(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function H(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ii(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(H(e,t))return!1;return!0}function fe(e){return e===void 0}function Je(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function Yr(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function vl(e,t){var r=[],o,a=e.length;for(o=0;o<a;++o)r.push(t(e[o],o));return r}function dt(e,t){for(var r in t)H(t,r)&&(e[r]=t[r]);return H(t,"toString")&&(e.toString=t.toString),H(t,"valueOf")&&(e.valueOf=t.valueOf),e}function Fe(e,t,r,o){return jl(e,t,r,o,!0).utc()}function cp(){return{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}}function L(e){return e._pf==null&&(e._pf=cp()),e._pf}var Qa;Array.prototype.some?Qa=Array.prototype.some:Qa=function(e){var t=Object(this),r=t.length>>>0,o;for(o=0;o<r;o++)if(o in t&&e.call(this,t[o],o,t))return!0;return!1};function si(e){if(e._isValid==null){var t=L(e),r=Qa.call(t.parsedDateParts,function(a){return a!=null}),o=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(e._strict&&(o=o&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=o;else return o}return e._isValid}function Mo(e){var t=Fe(NaN);return e!=null?dt(L(t),e):L(t).userInvalidated=!0,t}var hl=A.momentProperties=[],Za=!1;function ci(e,t){var r,o,a,i=hl.length;if(fe(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),fe(t._i)||(e._i=t._i),fe(t._f)||(e._f=t._f),fe(t._l)||(e._l=t._l),fe(t._strict)||(e._strict=t._strict),fe(t._tzm)||(e._tzm=t._tzm),fe(t._isUTC)||(e._isUTC=t._isUTC),fe(t._offset)||(e._offset=t._offset),fe(t._pf)||(e._pf=L(t)),fe(t._locale)||(e._locale=t._locale),i>0)for(r=0;r<i;r++)o=hl[r],a=t[o],fe(a)||(e[o]=a);return e}function Vr(e){ci(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Za===!1&&(Za=!0,A.updateOffset(this),Za=!1)}function Ae(e){return e instanceof Vr||e!=null&&e._isAMomentObject!=null}function Sl(e){A.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function ve(e,t){var r=!0;return dt(function(){if(A.deprecationHandler!=null&&A.deprecationHandler(null,e),r){var o=[],a,i,s,l=arguments.length;for(i=0;i<l;i++){if(a="",typeof arguments[i]=="object"){a+=`
|
|
49
49
|
[`+i+"] ";for(s in arguments[0])H(arguments[0],s)&&(a+=s+": "+arguments[0][s]+", ");a=a.slice(0,-2)}else a=arguments[i];o.push(a)}Sl(e+`
|
|
50
50
|
Arguments: `+Array.prototype.slice.call(o).join("")+`
|
|
51
51
|
`+new Error().stack),r=!1}return t.apply(this,arguments)},t)}var yl={};function Ol(e,t){A.deprecationHandler!=null&&A.deprecationHandler(e,t),yl[e]||(Sl(t),yl[e]=!0)}A.suppressDeprecationWarnings=!1;A.deprecationHandler=null;function Ue(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function lp(e){var t,r;for(r in e)H(e,r)&&(t=e[r],Ue(t)?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function ei(e,t){var r=dt({},e),o;for(o in t)H(t,o)&&(Tt(e[o])&&Tt(t[o])?(r[o]={},dt(r[o],e[o]),dt(r[o],t[o])):t[o]!=null?r[o]=t[o]:delete r[o]);for(o in e)H(e,o)&&!H(t,o)&&Tt(e[o])&&(r[o]=dt({},r[o]));return r}function li(e){e!=null&&this.set(e)}var ti;Object.keys?ti=Object.keys:ti=function(e){var t,r=[];for(t in e)H(e,t)&&r.push(t);return r};var up={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function dp(e,t,r){var o=this._calendar[e]||this._calendar.sameElse;return Ue(o)?o.call(t,r):o}function Me(e,t,r){var o=""+Math.abs(e),a=t-o.length,i=e>=0;return(i?r?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+o}var ui=/(\[[^\[]*\])|(\\)?([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,Co=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,qa={},nr={};function P(e,t,r,o){var a=o;typeof o=="string"&&(a=function(){return this[o]()}),e&&(nr[e]=a),t&&(nr[t[0]]=function(){return Me(a.apply(this,arguments),t[1],t[2])}),r&&(nr[r]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function fp(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function pp(e){var t=e.match(ui),r,o;for(r=0,o=t.length;r<o;r++)nr[t[r]]?t[r]=nr[t[r]]:t[r]=fp(t[r]);return function(a){var i="",s;for(s=0;s<o;s++)i+=Ue(t[s])?t[s].call(a,e):t[s];return i}}function Ao(e,t){return e.isValid()?(t=wl(t,e.localeData()),qa[t]=qa[t]||pp(t),qa[t](e)):e.localeData().invalidDate()}function wl(e,t){var r=5;function o(a){return t.longDateFormat(a)||a}for(Co.lastIndex=0;r>=0&&Co.test(e);)e=e.replace(Co,o),Co.lastIndex=0,r-=1;return e}var hp={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"};function yp(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(ui).map(function(o){return o==="MMMM"||o==="MM"||o==="DD"||o==="dddd"?o.slice(1):o}).join(""),this._longDateFormat[e])}var mp="Invalid date";function gp(){return this._invalidDate}var bp="%d",xp=/\d{1,2}/;function vp(e){return this._ordinal.replace("%d",e)}var Sp={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"};function Op(e,t,r,o){var a=this._relativeTime[r];return Ue(a)?a(e,t,r,o):a.replace(/%d/i,e)}function wp(e,t){var r=this._relativeTime[e>0?"future":"past"];return Ue(r)?r(t):r.replace(/%s/i,t)}var Hr={};function ce(e,t){var r=e.toLowerCase();Hr[r]=Hr[r+"s"]=Hr[t]=e}function Se(e){return typeof e=="string"?Hr[e]||Hr[e.toLowerCase()]:void 0}function di(e){var t={},r,o;for(o in e)H(e,o)&&(r=Se(o),r&&(t[r]=e[o]));return t}var El={};function le(e,t){El[e]=t}function Ep(e){var t=[],r;for(r in e)H(e,r)&&t.push({unit:r,priority:El[r]});return t.sort(function(o,a){return o.priority-a.priority}),t}function Fo(e){return e%4===0&&e%100!==0||e%400===0}function xe(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function M(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=xe(t)),r}function sr(e,t){return function(r){return r!=null?(Cl(this,e,r),A.updateOffset(this,t),this):ko(this,e)}}function ko(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Cl(e,t,r){e.isValid()&&!isNaN(r)&&(t==="FullYear"&&Fo(e.year())&&e.month()===1&&e.date()===29?(r=M(r),e._d["set"+(e._isUTC?"UTC":"")+t](r,e.month(),zo(r,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](r))}function Cp(e){return e=Se(e),Ue(this[e])?this[e]():this}function _p(e,t){if(typeof e=="object"){e=di(e);var r=Ep(e),o,a=r.length;for(o=0;o<a;o++)this[r[o].unit](e[r[o].unit])}else if(e=Se(e),Ue(this[e]))return this[e](t);return this}var _l=/\d/,me=/\d\d/,Al=/\d{3}/,fi=/\d{4}/,Uo=/[+-]?\d{6}/,Z=/\d\d?/,Rl=/\d\d\d\d?/,Nl=/\d\d\d\d\d\d?/,Wo=/\d{1,3}/,pi=/\d{1,4}/,Bo=/[+-]?\d{1,6}/,cr=/\d+/,Ho=/[+-]?\d+/,Ap=/Z|[+-]\d\d:?\d\d/gi,$o=/Z|[+-]\d\d(?::?\d\d)?/gi,Rp=/[+-]?\d+(\.\d{1,3})?/,Kr=/[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,To;To={};function R(e,t,r){To[e]=Ue(t)?t:function(o,a){return o&&r?r:t}}function Np(e,t){return H(To,e)?To[e](t._strict,t._locale):new RegExp(kp(e))}function kp(e){return ye(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,r,o,a,i){return r||o||a||i}))}function ye(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var ri={};function Y(e,t){var r,o=t,a;for(typeof e=="string"&&(e=[e]),Je(t)&&(o=function(i,s){s[t]=M(i)}),a=e.length,r=0;r<a;r++)ri[e[r]]=o}function Zr(e,t){Y(e,function(r,o,a,i){a._w=a._w||{},t(r,a._w,a,i)})}function Tp(e,t,r){t!=null&&H(ri,e)&&ri[e](t,r._a,r,e)}var se=0,Ke=1,Le=2,te=3,Ce=4,Ze=5,kt=6,Ip=7,Pp=8;function Dp(e,t){return(e%t+t)%t}var Q;Array.prototype.indexOf?Q=Array.prototype.indexOf:Q=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function zo(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=Dp(t,12);return e+=(t-r)/12,r===1?Fo(e)?29:28:31-r%7%2}P("M",["MM",2],"Mo",function(){return this.month()+1});P("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});P("MMMM",0,0,function(e){return this.localeData().months(this,e)});ce("month","M");le("month",8);R("M",Z);R("MM",Z,me);R("MMM",function(e,t){return t.monthsShortRegex(e)});R("MMMM",function(e,t){return t.monthsRegex(e)});Y(["M","MM"],function(e,t){t[Ke]=M(e)-1});Y(["MMM","MMMM"],function(e,t,r,o){var a=r._locale.monthsParse(e,o,r._strict);a!=null?t[Ke]=a:L(r).invalidMonth=e});var Lp="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),kl="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Tl=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Mp=Kr,Fp=Kr;function Up(e,t){return e?_e(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Tl).test(t)?"format":"standalone"][e.month()]:_e(this._months)?this._months:this._months.standalone}function Wp(e,t){return e?_e(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Tl.test(t)?"format":"standalone"][e.month()]:_e(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Bp(e,t,r){var o,a,i,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],o=0;o<12;++o)i=Fe([2e3,o]),this._shortMonthsParse[o]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[o]=this.months(i,"").toLocaleLowerCase();return r?t==="MMM"?(a=Q.call(this._shortMonthsParse,s),a!==-1?a:null):(a=Q.call(this._longMonthsParse,s),a!==-1?a:null):t==="MMM"?(a=Q.call(this._shortMonthsParse,s),a!==-1?a:(a=Q.call(this._longMonthsParse,s),a!==-1?a:null)):(a=Q.call(this._longMonthsParse,s),a!==-1?a:(a=Q.call(this._shortMonthsParse,s),a!==-1?a:null))}function Hp(e,t,r){var o,a,i;if(this._monthsParseExact)return Bp.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),o=0;o<12;o++){if(a=Fe([2e3,o]),r&&!this._longMonthsParse[o]&&(this._longMonthsParse[o]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[o]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),!r&&!this._monthsParse[o]&&(i="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[o]=new RegExp(i.replace(".",""),"i")),r&&t==="MMMM"&&this._longMonthsParse[o].test(e))return o;if(r&&t==="MMM"&&this._shortMonthsParse[o].test(e))return o;if(!r&&this._monthsParse[o].test(e))return o}}function Il(e,t){var r;if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=M(t);else if(t=e.localeData().monthsParse(t),!Je(t))return e}return r=Math.min(e.date(),zo(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,r),e}function Pl(e){return e!=null?(Il(this,e),A.updateOffset(this,!0),this):ko(this,"Month")}function $p(){return zo(this.year(),this.month())}function zp(e){return this._monthsParseExact?(H(this,"_monthsRegex")||Dl.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(H(this,"_monthsShortRegex")||(this._monthsShortRegex=Mp),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function jp(e){return this._monthsParseExact?(H(this,"_monthsRegex")||Dl.call(this),e?this._monthsStrictRegex:this._monthsRegex):(H(this,"_monthsRegex")||(this._monthsRegex=Fp),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Dl(){function e(s,l){return l.length-s.length}var t=[],r=[],o=[],a,i;for(a=0;a<12;a++)i=Fe([2e3,a]),t.push(this.monthsShort(i,"")),r.push(this.months(i,"")),o.push(this.months(i,"")),o.push(this.monthsShort(i,""));for(t.sort(e),r.sort(e),o.sort(e),a=0;a<12;a++)t[a]=ye(t[a]),r[a]=ye(r[a]);for(a=0;a<24;a++)o[a]=ye(o[a]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}P("Y",0,0,function(){var e=this.year();return e<=9999?Me(e,4):"+"+e});P(0,["YY",2],0,function(){return this.year()%100});P(0,["YYYY",4],0,"year");P(0,["YYYYY",5],0,"year");P(0,["YYYYYY",6,!0],0,"year");ce("year","y");le("year",1);R("Y",Ho);R("YY",Z,me);R("YYYY",pi,fi);R("YYYYY",Bo,Uo);R("YYYYYY",Bo,Uo);Y(["YYYYY","YYYYYY"],se);Y("YYYY",function(e,t){t[se]=e.length===2?A.parseTwoDigitYear(e):M(e)});Y("YY",function(e,t){t[se]=A.parseTwoDigitYear(e)});Y("Y",function(e,t){t[se]=parseInt(e,10)});function $r(e){return Fo(e)?366:365}A.parseTwoDigitYear=function(e){return M(e)+(M(e)>68?1900:2e3)};var Ll=sr("FullYear",!0);function Gp(){return Fo(this.year())}function Yp(e,t,r,o,a,i,s){var l;return e<100&&e>=0?(l=new Date(e+400,t,r,o,a,i,s),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,r,o,a,i,s),l}function zr(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Io(e,t,r){var o=7+t-r,a=(7+zr(e,0,o).getUTCDay()-t)%7;return-a+o-1}function Ml(e,t,r,o,a){var i=(7+r-o)%7,s=Io(e,o,a),l=1+7*(t-1)+i+s,u,f;return l<=0?(u=e-1,f=$r(u)+l):l>$r(e)?(u=e+1,f=l-$r(e)):(u=e,f=l),{year:u,dayOfYear:f}}function jr(e,t,r){var o=Io(e.year(),t,r),a=Math.floor((e.dayOfYear()-o-1)/7)+1,i,s;return a<1?(s=e.year()-1,i=a+qe(s,t,r)):a>qe(e.year(),t,r)?(i=a-qe(e.year(),t,r),s=e.year()+1):(s=e.year(),i=a),{week:i,year:s}}function qe(e,t,r){var o=Io(e,t,r),a=Io(e+1,t,r);return($r(e)-o+a)/7}P("w",["ww",2],"wo","week");P("W",["WW",2],"Wo","isoWeek");ce("week","w");ce("isoWeek","W");le("week",5);le("isoWeek",5);R("w",Z);R("ww",Z,me);R("W",Z);R("WW",Z,me);Zr(["w","ww","W","WW"],function(e,t,r,o){t[o.substr(0,1)]=M(e)});function Vp(e){return jr(e,this._week.dow,this._week.doy).week}var Kp={dow:0,doy:6};function Zp(){return this._week.dow}function qp(){return this._week.doy}function Jp(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Xp(e){var t=jr(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}P("d",0,"do","day");P("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});P("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});P("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});P("e",0,0,"weekday");P("E",0,0,"isoWeekday");ce("day","d");ce("weekday","e");ce("isoWeekday","E");le("day",11);le("weekday",11);le("isoWeekday",11);R("d",Z);R("e",Z);R("E",Z);R("dd",function(e,t){return t.weekdaysMinRegex(e)});R("ddd",function(e,t){return t.weekdaysShortRegex(e)});R("dddd",function(e,t){return t.weekdaysRegex(e)});Zr(["dd","ddd","dddd"],function(e,t,r,o){var a=r._locale.weekdaysParse(e,o,r._strict);a!=null?t.d=a:L(r).invalidWeekday=e});Zr(["d","e","E"],function(e,t,r,o){t[o]=M(e)});function Qp(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function eh(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function hi(e,t){return e.slice(t,7).concat(e.slice(0,t))}var th="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Fl="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),rh="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),oh=Kr,nh=Kr,ah=Kr;function ih(e,t){var r=_e(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?hi(r,this._week.dow):e?r[e.day()]:r}function sh(e){return e===!0?hi(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function ch(e){return e===!0?hi(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function lh(e,t,r){var o,a,i,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],o=0;o<7;++o)i=Fe([2e3,1]).day(o),this._minWeekdaysParse[o]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[o]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[o]=this.weekdays(i,"").toLocaleLowerCase();return r?t==="dddd"?(a=Q.call(this._weekdaysParse,s),a!==-1?a:null):t==="ddd"?(a=Q.call(this._shortWeekdaysParse,s),a!==-1?a:null):(a=Q.call(this._minWeekdaysParse,s),a!==-1?a:null):t==="dddd"?(a=Q.call(this._weekdaysParse,s),a!==-1||(a=Q.call(this._shortWeekdaysParse,s),a!==-1)?a:(a=Q.call(this._minWeekdaysParse,s),a!==-1?a:null)):t==="ddd"?(a=Q.call(this._shortWeekdaysParse,s),a!==-1||(a=Q.call(this._weekdaysParse,s),a!==-1)?a:(a=Q.call(this._minWeekdaysParse,s),a!==-1?a:null)):(a=Q.call(this._minWeekdaysParse,s),a!==-1||(a=Q.call(this._weekdaysParse,s),a!==-1)?a:(a=Q.call(this._shortWeekdaysParse,s),a!==-1?a:null))}function uh(e,t,r){var o,a,i;if(this._weekdaysParseExact)return lh.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;o<7;o++){if(a=Fe([2e3,1]).day(o),r&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[o]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[o]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[o]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[o]=new RegExp(i.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[o].test(e))return o;if(r&&t==="ddd"&&this._shortWeekdaysParse[o].test(e))return o;if(r&&t==="dd"&&this._minWeekdaysParse[o].test(e))return o;if(!r&&this._weekdaysParse[o].test(e))return o}}function dh(e){if(!this.isValid())return e!=null?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return e!=null?(e=Qp(e,this.localeData()),this.add(e-t,"d")):t}function fh(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function ph(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=eh(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function hh(e){return this._weekdaysParseExact?(H(this,"_weekdaysRegex")||yi.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(H(this,"_weekdaysRegex")||(this._weekdaysRegex=oh),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function yh(e){return this._weekdaysParseExact?(H(this,"_weekdaysRegex")||yi.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(H(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=nh),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function mh(e){return this._weekdaysParseExact?(H(this,"_weekdaysRegex")||yi.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(H(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ah),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function yi(){function e(h,p){return p.length-h.length}var t=[],r=[],o=[],a=[],i,s,l,u,f;for(i=0;i<7;i++)s=Fe([2e3,1]).day(i),l=ye(this.weekdaysMin(s,"")),u=ye(this.weekdaysShort(s,"")),f=ye(this.weekdays(s,"")),t.push(l),r.push(u),o.push(f),a.push(l),a.push(u),a.push(f);t.sort(e),r.sort(e),o.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function mi(){return this.hours()%12||12}function gh(){return this.hours()||24}P("H",["HH",2],0,"hour");P("h",["hh",2],0,mi);P("k",["kk",2],0,gh);P("hmm",0,0,function(){return""+mi.apply(this)+Me(this.minutes(),2)});P("hmmss",0,0,function(){return""+mi.apply(this)+Me(this.minutes(),2)+Me(this.seconds(),2)});P("Hmm",0,0,function(){return""+this.hours()+Me(this.minutes(),2)});P("Hmmss",0,0,function(){return""+this.hours()+Me(this.minutes(),2)+Me(this.seconds(),2)});function Ul(e,t){P(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Ul("a",!0);Ul("A",!1);ce("hour","h");le("hour",13);function Wl(e,t){return t._meridiemParse}R("a",Wl);R("A",Wl);R("H",Z);R("h",Z);R("k",Z);R("HH",Z,me);R("hh",Z,me);R("kk",Z,me);R("hmm",Rl);R("hmmss",Nl);R("Hmm",Rl);R("Hmmss",Nl);Y(["H","HH"],te);Y(["k","kk"],function(e,t,r){var o=M(e);t[te]=o===24?0:o});Y(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e});Y(["h","hh"],function(e,t,r){t[te]=M(e),L(r).bigHour=!0});Y("hmm",function(e,t,r){var o=e.length-2;t[te]=M(e.substr(0,o)),t[Ce]=M(e.substr(o)),L(r).bigHour=!0});Y("hmmss",function(e,t,r){var o=e.length-4,a=e.length-2;t[te]=M(e.substr(0,o)),t[Ce]=M(e.substr(o,2)),t[Ze]=M(e.substr(a)),L(r).bigHour=!0});Y("Hmm",function(e,t,r){var o=e.length-2;t[te]=M(e.substr(0,o)),t[Ce]=M(e.substr(o))});Y("Hmmss",function(e,t,r){var o=e.length-4,a=e.length-2;t[te]=M(e.substr(0,o)),t[Ce]=M(e.substr(o,2)),t[Ze]=M(e.substr(a))});function bh(e){return(e+"").toLowerCase().charAt(0)==="p"}var xh=/[ap]\.?m?\.?/i,vh=sr("Hours",!0);function Sh(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var Bl={calendar:up,longDateFormat:hp,invalidDate:mp,ordinal:bp,dayOfMonthOrdinalParse:xp,relativeTime:Sp,months:Lp,monthsShort:kl,week:Kp,weekdays:th,weekdaysMin:rh,weekdaysShort:Fl,meridiemParse:xh},J={},Wr={},Gr;function Oh(e,t){var r,o=Math.min(e.length,t.length);for(r=0;r<o;r+=1)if(e[r]!==t[r])return r;return o}function ml(e){return e&&e.toLowerCase().replace("_","-")}function wh(e){for(var t=0,r,o,a,i;t<e.length;){for(i=ml(e[t]).split("-"),r=i.length,o=ml(e[t+1]),o=o?o.split("-"):null;r>0;){if(a=jo(i.slice(0,r).join("-")),a)return a;if(o&&o.length>=r&&Oh(i,o)>=r-1)break;r--}t++}return Gr}function Eh(e){return e.match("^[^/\\\\]*$")!=null}function jo(e){var t=null,r;if(J[e]===void 0&&typeof module<"u"&&module&&module.exports&&Eh(e))try{t=Gr._abbr,r=Ri,r("./locale/"+e),pt(t)}catch{J[e]=null}return J[e]}function pt(e,t){var r;return e&&(fe(t)?r=Xe(e):r=gi(e,t),r?Gr=r:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Gr._abbr}function gi(e,t){if(t!==null){var r,o=Bl;if(t.abbr=e,J[e]!=null)Ol("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."),o=J[e]._config;else if(t.parentLocale!=null)if(J[t.parentLocale]!=null)o=J[t.parentLocale]._config;else if(r=jo(t.parentLocale),r!=null)o=r._config;else return Wr[t.parentLocale]||(Wr[t.parentLocale]=[]),Wr[t.parentLocale].push({name:e,config:t}),null;return J[e]=new li(ei(o,t)),Wr[e]&&Wr[e].forEach(function(a){gi(a.name,a.config)}),pt(e),J[e]}else return delete J[e],null}function Ch(e,t){if(t!=null){var r,o,a=Bl;J[e]!=null&&J[e].parentLocale!=null?J[e].set(ei(J[e]._config,t)):(o=jo(e),o!=null&&(a=o._config),t=ei(a,t),o==null&&(t.abbr=e),r=new li(t),r.parentLocale=J[e],J[e]=r),pt(e)}else J[e]!=null&&(J[e].parentLocale!=null?(J[e]=J[e].parentLocale,e===pt()&&pt(e)):J[e]!=null&&delete J[e]);return J[e]}function Xe(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Gr;if(!_e(e)){if(t=jo(e),t)return t;e=[e]}return wh(e)}function _h(){return ti(J)}function bi(e){var t,r=e._a;return r&&L(e).overflow===-2&&(t=r[Ke]<0||r[Ke]>11?Ke:r[Le]<1||r[Le]>zo(r[se],r[Ke])?Le:r[te]<0||r[te]>24||r[te]===24&&(r[Ce]!==0||r[Ze]!==0||r[kt]!==0)?te:r[Ce]<0||r[Ce]>59?Ce:r[Ze]<0||r[Ze]>59?Ze:r[kt]<0||r[kt]>999?kt:-1,L(e)._overflowDayOfYear&&(t<se||t>Le)&&(t=Le),L(e)._overflowWeeks&&t===-1&&(t=Ip),L(e)._overflowWeekday&&t===-1&&(t=Pp),L(e).overflow=t),e}var Ah=/^\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)?)?$/,Rh=/^\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)?)?$/,Nh=/Z|[+-]\d\d(?::?\d\d)?/,_o=[["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]],Ja=[["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/]],kh=/^\/?Date\((-?\d+)/i,Th=/^(?:(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}))$/,Ih={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Hl(e){var t,r,o=e._i,a=Ah.exec(o)||Rh.exec(o),i,s,l,u,f=_o.length,h=Ja.length;if(a){for(L(e).iso=!0,t=0,r=f;t<r;t++)if(_o[t][1].exec(a[1])){s=_o[t][0],i=_o[t][2]!==!1;break}if(s==null){e._isValid=!1;return}if(a[3]){for(t=0,r=h;t<r;t++)if(Ja[t][1].exec(a[3])){l=(a[2]||" ")+Ja[t][0];break}if(l==null){e._isValid=!1;return}}if(!i&&l!=null){e._isValid=!1;return}if(a[4])if(Nh.exec(a[4]))u="Z";else{e._isValid=!1;return}e._f=s+(l||"")+(u||""),vi(e)}else e._isValid=!1}function Ph(e,t,r,o,a,i){var s=[Dh(e),kl.indexOf(t),parseInt(r,10),parseInt(o,10),parseInt(a,10)];return i&&s.push(parseInt(i,10)),s}function Dh(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Lh(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Mh(e,t,r){if(e){var o=Fl.indexOf(e),a=new Date(t[0],t[1],t[2]).getDay();if(o!==a)return L(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function Fh(e,t,r){if(e)return Ih[e];if(t)return 0;var o=parseInt(r,10),a=o%100,i=(o-a)/100;return i*60+a}function $l(e){var t=Th.exec(Lh(e._i)),r;if(t){if(r=Ph(t[4],t[3],t[2],t[5],t[6],t[7]),!Mh(t[1],r,e))return;e._a=r,e._tzm=Fh(t[8],t[9],t[10]),e._d=zr.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),L(e).rfc2822=!0}else e._isValid=!1}function Uh(e){var t=kh.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(Hl(e),e._isValid===!1)delete e._isValid;else return;if($l(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:A.createFromInputFallback(e)}A.createFromInputFallback=ve("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(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function rr(e,t,r){return e??t??r}function Wh(e){var t=new Date(A.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function xi(e){var t,r,o=[],a,i,s;if(!e._d){for(a=Wh(e),e._w&&e._a[Le]==null&&e._a[Ke]==null&&Bh(e),e._dayOfYear!=null&&(s=rr(e._a[se],a[se]),(e._dayOfYear>$r(s)||e._dayOfYear===0)&&(L(e)._overflowDayOfYear=!0),r=zr(s,0,e._dayOfYear),e._a[Ke]=r.getUTCMonth(),e._a[Le]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=o[t]=a[t];for(;t<7;t++)e._a[t]=o[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[te]===24&&e._a[Ce]===0&&e._a[Ze]===0&&e._a[kt]===0&&(e._nextDay=!0,e._a[te]=0),e._d=(e._useUTC?zr:Yp).apply(null,o),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[te]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==i&&(L(e).weekdayMismatch=!0)}}function Bh(e){var t,r,o,a,i,s,l,u,f;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,s=4,r=rr(t.GG,e._a[se],jr(K(),1,4).year),o=rr(t.W,1),a=rr(t.E,1),(a<1||a>7)&&(u=!0)):(i=e._locale._week.dow,s=e._locale._week.doy,f=jr(K(),i,s),r=rr(t.gg,e._a[se],f.year),o=rr(t.w,f.week),t.d!=null?(a=t.d,(a<0||a>6)&&(u=!0)):t.e!=null?(a=t.e+i,(t.e<0||t.e>6)&&(u=!0)):a=i),o<1||o>qe(r,i,s)?L(e)._overflowWeeks=!0:u!=null?L(e)._overflowWeekday=!0:(l=Ml(r,o,a,i,s),e._a[se]=l.year,e._dayOfYear=l.dayOfYear)}A.ISO_8601=function(){};A.RFC_2822=function(){};function vi(e){if(e._f===A.ISO_8601){Hl(e);return}if(e._f===A.RFC_2822){$l(e);return}e._a=[],L(e).empty=!0;var t=""+e._i,r,o,a,i,s,l=t.length,u=0,f,h;for(a=wl(e._f,e._locale).match(ui)||[],h=a.length,r=0;r<h;r++)i=a[r],o=(t.match(Np(i,e))||[])[0],o&&(s=t.substr(0,t.indexOf(o)),s.length>0&&L(e).unusedInput.push(s),t=t.slice(t.indexOf(o)+o.length),u+=o.length),nr[i]?(o?L(e).empty=!1:L(e).unusedTokens.push(i),Tp(i,o,e)):e._strict&&!o&&L(e).unusedTokens.push(i);L(e).charsLeftOver=l-u,t.length>0&&L(e).unusedInput.push(t),e._a[te]<=12&&L(e).bigHour===!0&&e._a[te]>0&&(L(e).bigHour=void 0),L(e).parsedDateParts=e._a.slice(0),L(e).meridiem=e._meridiem,e._a[te]=Hh(e._locale,e._a[te],e._meridiem),f=L(e).era,f!==null&&(e._a[se]=e._locale.erasConvertYear(f,e._a[se])),xi(e),bi(e)}function Hh(e,t,r){var o;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(o=e.isPM(r),o&&t<12&&(t+=12),!o&&t===12&&(t=0)),t)}function $h(e){var t,r,o,a,i,s,l=!1,u=e._f.length;if(u===0){L(e).invalidFormat=!0,e._d=new Date(NaN);return}for(a=0;a<u;a++)i=0,s=!1,t=ci({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[a],vi(t),si(t)&&(s=!0),i+=L(t).charsLeftOver,i+=L(t).unusedTokens.length*10,L(t).score=i,l?i<o&&(o=i,r=t):(o==null||i<o||s)&&(o=i,r=t,s&&(l=!0));dt(e,r||t)}function zh(e){if(!e._d){var t=di(e._i),r=t.day===void 0?t.date:t.day;e._a=vl([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(o){return o&&parseInt(o,10)}),xi(e)}}function jh(e){var t=new Vr(bi(zl(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function zl(e){var t=e._i,r=e._f;return e._locale=e._locale||Xe(e._l),t===null||r===void 0&&t===""?Mo({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),Ae(t)?new Vr(bi(t)):(Yr(t)?e._d=t:_e(r)?$h(e):r?vi(e):Gh(e),si(e)||(e._d=null),e))}function Gh(e){var t=e._i;fe(t)?e._d=new Date(A.now()):Yr(t)?e._d=new Date(t.valueOf()):typeof t=="string"?Uh(e):_e(t)?(e._a=vl(t.slice(0),function(r){return parseInt(r,10)}),xi(e)):Tt(t)?zh(e):Je(t)?e._d=new Date(t):A.createFromInputFallback(e)}function jl(e,t,r,o,a){var i={};return(t===!0||t===!1)&&(o=t,t=void 0),(r===!0||r===!1)&&(o=r,r=void 0),(Tt(e)&&ii(e)||_e(e)&&e.length===0)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=a,i._l=r,i._i=e,i._f=t,i._strict=o,jh(i)}function K(e,t,r,o){return jl(e,t,r,o,!1)}var Yh=ve("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=K.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Mo()}),Vh=ve("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=K.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Mo()});function Gl(e,t){var r,o;if(t.length===1&&_e(t[0])&&(t=t[0]),!t.length)return K();for(r=t[0],o=1;o<t.length;++o)(!t[o].isValid()||t[o][e](r))&&(r=t[o]);return r}function Kh(){var e=[].slice.call(arguments,0);return Gl("isBefore",e)}function Zh(){var e=[].slice.call(arguments,0);return Gl("isAfter",e)}var qh=function(){return Date.now?Date.now():+new Date},Br=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Jh(e){var t,r=!1,o,a=Br.length;for(t in e)if(H(e,t)&&!(Q.call(Br,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(o=0;o<a;++o)if(e[Br[o]]){if(r)return!1;parseFloat(e[Br[o]])!==M(e[Br[o]])&&(r=!0)}return!0}function Xh(){return this._isValid}function Qh(){return Re(NaN)}function Go(e){var t=di(e),r=t.year||0,o=t.quarter||0,a=t.month||0,i=t.week||t.isoWeek||0,s=t.day||0,l=t.hour||0,u=t.minute||0,f=t.second||0,h=t.millisecond||0;this._isValid=Jh(t),this._milliseconds=+h+f*1e3+u*6e4+l*1e3*60*60,this._days=+s+i*7,this._months=+a+o*3+r*12,this._data={},this._locale=Xe(),this._bubble()}function Ro(e){return e instanceof Go}function oi(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function ey(e,t,r){var o=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),i=0,s;for(s=0;s<o;s++)(r&&e[s]!==t[s]||!r&&M(e[s])!==M(t[s]))&&i++;return i+a}function Yl(e,t){P(e,0,0,function(){var r=this.utcOffset(),o="+";return r<0&&(r=-r,o="-"),o+Me(~~(r/60),2)+t+Me(~~r%60,2)})}Yl("Z",":");Yl("ZZ","");R("Z",$o);R("ZZ",$o);Y(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=Si($o,e)});var ty=/([\+\-]|\d\d)/gi;function Si(e,t){var r=(t||"").match(e),o,a,i;return r===null?null:(o=r[r.length-1]||[],a=(o+"").match(ty)||["-",0,0],i=+(a[1]*60)+M(a[2]),i===0?0:a[0]==="+"?i:-i)}function Oi(e,t){var r,o;return t._isUTC?(r=t.clone(),o=(Ae(e)||Yr(e)?e.valueOf():K(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+o),A.updateOffset(r,!1),r):K(e).local()}function ni(e){return-Math.round(e._d.getTimezoneOffset())}A.updateOffset=function(){};function ry(e,t,r){var o=this._offset||0,a;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=Si($o,e),e===null)return this}else Math.abs(e)<16&&!r&&(e=e*60);return!this._isUTC&&t&&(a=ni(this)),this._offset=e,this._isUTC=!0,a!=null&&this.add(a,"m"),o!==e&&(!t||this._changeInProgress?Zl(this,Re(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,A.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?o:ni(this)}function oy(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function ny(e){return this.utcOffset(0,e)}function ay(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(ni(this),"m")),this}function iy(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Si(Ap,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function sy(e){return this.isValid()?(e=e?K(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function cy(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function ly(){if(!fe(this._isDSTShifted))return this._isDSTShifted;var e={},t;return ci(e,this),e=zl(e),e._a?(t=e._isUTC?Fe(e._a):K(e._a),this._isDSTShifted=this.isValid()&&ey(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function uy(){return this.isValid()?!this._isUTC:!1}function dy(){return this.isValid()?this._isUTC:!1}function Vl(){return this.isValid()?this._isUTC&&this._offset===0:!1}var fy=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,py=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Re(e,t){var r=e,o=null,a,i,s;return Ro(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:Je(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(o=fy.exec(e))?(a=o[1]==="-"?-1:1,r={y:0,d:M(o[Le])*a,h:M(o[te])*a,m:M(o[Ce])*a,s:M(o[Ze])*a,ms:M(oi(o[kt]*1e3))*a}):(o=py.exec(e))?(a=o[1]==="-"?-1:1,r={y:Nt(o[2],a),M:Nt(o[3],a),w:Nt(o[4],a),d:Nt(o[5],a),h:Nt(o[6],a),m:Nt(o[7],a),s:Nt(o[8],a)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(s=hy(K(r.from),K(r.to)),r={},r.ms=s.milliseconds,r.M=s.months),i=new Go(r),Ro(e)&&H(e,"_locale")&&(i._locale=e._locale),Ro(e)&&H(e,"_isValid")&&(i._isValid=e._isValid),i}Re.fn=Go.prototype;Re.invalid=Qh;function Nt(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function gl(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function hy(e,t){var r;return e.isValid()&&t.isValid()?(t=Oi(t,e),e.isBefore(t)?r=gl(e,t):(r=gl(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function Kl(e,t){return function(r,o){var a,i;return o!==null&&!isNaN(+o)&&(Ol(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=r,r=o,o=i),a=Re(r,o),Zl(this,a,e),this}}function Zl(e,t,r,o){var a=t._milliseconds,i=oi(t._days),s=oi(t._months);e.isValid()&&(o=o??!0,s&&Il(e,ko(e,"Month")+s*r),i&&Cl(e,"Date",ko(e,"Date")+i*r),a&&e._d.setTime(e._d.valueOf()+a*r),o&&A.updateOffset(e,i||s))}var yy=Kl(1,"add"),my=Kl(-1,"subtract");function ql(e){return typeof e=="string"||e instanceof String}function gy(e){return Ae(e)||Yr(e)||ql(e)||Je(e)||xy(e)||by(e)||e===null||e===void 0}function by(e){var t=Tt(e)&&!ii(e),r=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,i,s=o.length;for(a=0;a<s;a+=1)i=o[a],r=r||H(e,i);return t&&r}function xy(e){var t=_e(e),r=!1;return t&&(r=e.filter(function(o){return!Je(o)&&ql(e)}).length===0),t&&r}function vy(e){var t=Tt(e)&&!ii(e),r=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],a,i;for(a=0;a<o.length;a+=1)i=o[a],r=r||H(e,i);return t&&r}function Sy(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function Oy(e,t){arguments.length===1&&(arguments[0]?gy(arguments[0])?(e=arguments[0],t=void 0):vy(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||K(),o=Oi(r,this).startOf("day"),a=A.calendarFormat(this,o)||"sameElse",i=t&&(Ue(t[a])?t[a].call(this,r):t[a]);return this.format(i||this.localeData().calendar(a,this,K(r)))}function wy(){return new Vr(this)}function Ey(e,t){var r=Ae(e)?e:K(e);return this.isValid()&&r.isValid()?(t=Se(t)||"millisecond",t==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf()):!1}function Cy(e,t){var r=Ae(e)?e:K(e);return this.isValid()&&r.isValid()?(t=Se(t)||"millisecond",t==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf()):!1}function _y(e,t,r,o){var a=Ae(e)?e:K(e),i=Ae(t)?t:K(t);return this.isValid()&&a.isValid()&&i.isValid()?(o=o||"()",(o[0]==="("?this.isAfter(a,r):!this.isBefore(a,r))&&(o[1]===")"?this.isBefore(i,r):!this.isAfter(i,r))):!1}function Ay(e,t){var r=Ae(e)?e:K(e),o;return this.isValid()&&r.isValid()?(t=Se(t)||"millisecond",t==="millisecond"?this.valueOf()===r.valueOf():(o=r.valueOf(),this.clone().startOf(t).valueOf()<=o&&o<=this.clone().endOf(t).valueOf())):!1}function Ry(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Ny(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function ky(e,t,r){var o,a,i;if(!this.isValid())return NaN;if(o=Oi(e,this),!o.isValid())return NaN;switch(a=(o.utcOffset()-this.utcOffset())*6e4,t=Se(t),t){case"year":i=No(this,o)/12;break;case"month":i=No(this,o);break;case"quarter":i=No(this,o)/3;break;case"second":i=(this-o)/1e3;break;case"minute":i=(this-o)/6e4;break;case"hour":i=(this-o)/36e5;break;case"day":i=(this-o-a)/864e5;break;case"week":i=(this-o-a)/6048e5;break;default:i=this-o}return r?i:xe(i)}function No(e,t){if(e.date()<t.date())return-No(t,e);var r=(t.year()-e.year())*12+(t.month()-e.month()),o=e.clone().add(r,"months"),a,i;return t-o<0?(a=e.clone().add(r-1,"months"),i=(t-o)/(o-a)):(a=e.clone().add(r+1,"months"),i=(t-o)/(a-o)),-(r+i)||0}A.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";A.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Ty(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Iy(e){if(!this.isValid())return null;var t=e!==!0,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?Ao(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Ue(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Ao(r,"Z")):Ao(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Py(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,o,a,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',o=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(r+o+a+i)}function Dy(e){e||(e=this.isUtc()?A.defaultFormatUtc:A.defaultFormat);var t=Ao(this,e);return this.localeData().postformat(t)}function Ly(e,t){return this.isValid()&&(Ae(e)&&e.isValid()||K(e).isValid())?Re({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function My(e){return this.from(K(),e)}function Fy(e,t){return this.isValid()&&(Ae(e)&&e.isValid()||K(e).isValid())?Re({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Uy(e){return this.to(K(),e)}function Jl(e){var t;return e===void 0?this._locale._abbr:(t=Xe(e),t!=null&&(this._locale=t),this)}var Xl=ve("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function Ql(){return this._locale}var Po=1e3,ar=60*Po,Do=60*ar,eu=(365*400+97)*24*Do;function ir(e,t){return(e%t+t)%t}function tu(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-eu:new Date(e,t,r).valueOf()}function ru(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-eu:Date.UTC(e,t,r)}function Wy(e){var t,r;if(e=Se(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?ru:tu,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ir(t+(this._isUTC?0:this.utcOffset()*ar),Do);break;case"minute":t=this._d.valueOf(),t-=ir(t,ar);break;case"second":t=this._d.valueOf(),t-=ir(t,Po);break}return this._d.setTime(t),A.updateOffset(this,!0),this}function By(e){var t,r;if(e=Se(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?ru:tu,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Do-ir(t+(this._isUTC?0:this.utcOffset()*ar),Do)-1;break;case"minute":t=this._d.valueOf(),t+=ar-ir(t,ar)-1;break;case"second":t=this._d.valueOf(),t+=Po-ir(t,Po)-1;break}return this._d.setTime(t),A.updateOffset(this,!0),this}function Hy(){return this._d.valueOf()-(this._offset||0)*6e4}function $y(){return Math.floor(this.valueOf()/1e3)}function zy(){return new Date(this.valueOf())}function jy(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Gy(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Yy(){return this.isValid()?this.toISOString():null}function Vy(){return si(this)}function Ky(){return dt({},L(this))}function Zy(){return L(this).overflow}function qy(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}P("N",0,0,"eraAbbr");P("NN",0,0,"eraAbbr");P("NNN",0,0,"eraAbbr");P("NNNN",0,0,"eraName");P("NNNNN",0,0,"eraNarrow");P("y",["y",1],"yo","eraYear");P("y",["yy",2],0,"eraYear");P("y",["yyy",3],0,"eraYear");P("y",["yyyy",4],0,"eraYear");R("N",wi);R("NN",wi);R("NNN",wi);R("NNNN",sm);R("NNNNN",cm);Y(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,o){var a=r._locale.erasParse(e,o,r._strict);a?L(r).era=a:L(r).invalidEra=e});R("y",cr);R("yy",cr);R("yyy",cr);R("yyyy",cr);R("yo",lm);Y(["y","yy","yyy","yyyy"],se);Y(["yo"],function(e,t,r,o){var a;r._locale._eraYearOrdinalRegex&&(a=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[se]=r._locale.eraYearOrdinalParse(e,a):t[se]=parseInt(e,10)});function Jy(e,t){var r,o,a,i=this._eras||Xe("en")._eras;for(r=0,o=i.length;r<o;++r){switch(typeof i[r].since){case"string":a=A(i[r].since).startOf("day"),i[r].since=a.valueOf();break}switch(typeof i[r].until){case"undefined":i[r].until=1/0;break;case"string":a=A(i[r].until).startOf("day").valueOf(),i[r].until=a.valueOf();break}}return i}function Xy(e,t,r){var o,a,i=this.eras(),s,l,u;for(e=e.toUpperCase(),o=0,a=i.length;o<a;++o)if(s=i[o].name.toUpperCase(),l=i[o].abbr.toUpperCase(),u=i[o].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(l===e)return i[o];break;case"NNNN":if(s===e)return i[o];break;case"NNNNN":if(u===e)return i[o];break}else if([s,l,u].indexOf(e)>=0)return i[o]}function Qy(e,t){var r=e.since<=e.until?1:-1;return t===void 0?A(e.since).year():A(e.since).year()+(t-e.offset)*r}function em(){var e,t,r,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),o[e].since<=r&&r<=o[e].until||o[e].until<=r&&r<=o[e].since)return o[e].name;return""}function tm(){var e,t,r,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),o[e].since<=r&&r<=o[e].until||o[e].until<=r&&r<=o[e].since)return o[e].narrow;return""}function rm(){var e,t,r,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),o[e].since<=r&&r<=o[e].until||o[e].until<=r&&r<=o[e].since)return o[e].abbr;return""}function om(){var e,t,r,o,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(r=a[e].since<=a[e].until?1:-1,o=this.clone().startOf("day").valueOf(),a[e].since<=o&&o<=a[e].until||a[e].until<=o&&o<=a[e].since)return(this.year()-A(a[e].since).year())*r+a[e].offset;return this.year()}function nm(e){return H(this,"_erasNameRegex")||Ei.call(this),e?this._erasNameRegex:this._erasRegex}function am(e){return H(this,"_erasAbbrRegex")||Ei.call(this),e?this._erasAbbrRegex:this._erasRegex}function im(e){return H(this,"_erasNarrowRegex")||Ei.call(this),e?this._erasNarrowRegex:this._erasRegex}function wi(e,t){return t.erasAbbrRegex(e)}function sm(e,t){return t.erasNameRegex(e)}function cm(e,t){return t.erasNarrowRegex(e)}function lm(e,t){return t._eraYearOrdinalRegex||cr}function Ei(){var e=[],t=[],r=[],o=[],a,i,s=this.eras();for(a=0,i=s.length;a<i;++a)t.push(ye(s[a].name)),e.push(ye(s[a].abbr)),r.push(ye(s[a].narrow)),o.push(ye(s[a].name)),o.push(ye(s[a].abbr)),o.push(ye(s[a].narrow));this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}P(0,["gg",2],0,function(){return this.weekYear()%100});P(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Yo(e,t){P(0,[e,e.length],0,t)}Yo("gggg","weekYear");Yo("ggggg","weekYear");Yo("GGGG","isoWeekYear");Yo("GGGGG","isoWeekYear");ce("weekYear","gg");ce("isoWeekYear","GG");le("weekYear",1);le("isoWeekYear",1);R("G",Ho);R("g",Ho);R("GG",Z,me);R("gg",Z,me);R("GGGG",pi,fi);R("gggg",pi,fi);R("GGGGG",Bo,Uo);R("ggggg",Bo,Uo);Zr(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,o){t[o.substr(0,2)]=M(e)});Zr(["gg","GG"],function(e,t,r,o){t[o]=A.parseTwoDigitYear(e)});function um(e){return ou.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function dm(e){return ou.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function fm(){return qe(this.year(),1,4)}function pm(){return qe(this.isoWeekYear(),1,4)}function hm(){var e=this.localeData()._week;return qe(this.year(),e.dow,e.doy)}function ym(){var e=this.localeData()._week;return qe(this.weekYear(),e.dow,e.doy)}function ou(e,t,r,o,a){var i;return e==null?jr(this,o,a).year:(i=qe(e,o,a),t>i&&(t=i),mm.call(this,e,t,r,o,a))}function mm(e,t,r,o,a){var i=Ml(e,t,r,o,a),s=zr(i.year,0,i.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}P("Q",0,"Qo","quarter");ce("quarter","Q");le("quarter",7);R("Q",_l);Y("Q",function(e,t){t[Ke]=(M(e)-1)*3});function gm(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}P("D",["DD",2],"Do","date");ce("date","D");le("date",9);R("D",Z);R("DD",Z,me);R("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});Y(["D","DD"],Le);Y("Do",function(e,t){t[Le]=M(e.match(Z)[0])});var nu=sr("Date",!0);P("DDD",["DDDD",3],"DDDo","dayOfYear");ce("dayOfYear","DDD");le("dayOfYear",4);R("DDD",Wo);R("DDDD",Al);Y(["DDD","DDDD"],function(e,t,r){r._dayOfYear=M(e)});function bm(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}P("m",["mm",2],0,"minute");ce("minute","m");le("minute",14);R("m",Z);R("mm",Z,me);Y(["m","mm"],Ce);var xm=sr("Minutes",!1);P("s",["ss",2],0,"second");ce("second","s");le("second",15);R("s",Z);R("ss",Z,me);Y(["s","ss"],Ze);var vm=sr("Seconds",!1);P("S",0,0,function(){return~~(this.millisecond()/100)});P(0,["SS",2],0,function(){return~~(this.millisecond()/10)});P(0,["SSS",3],0,"millisecond");P(0,["SSSS",4],0,function(){return this.millisecond()*10});P(0,["SSSSS",5],0,function(){return this.millisecond()*100});P(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});P(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});P(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});P(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});ce("millisecond","ms");le("millisecond",16);R("S",Wo,_l);R("SS",Wo,me);R("SSS",Wo,Al);var ft,au;for(ft="SSSS";ft.length<=9;ft+="S")R(ft,cr);function Sm(e,t){t[kt]=M(("0."+e)*1e3)}for(ft="S";ft.length<=9;ft+="S")Y(ft,Sm);au=sr("Milliseconds",!1);P("z",0,0,"zoneAbbr");P("zz",0,0,"zoneName");function Om(){return this._isUTC?"UTC":""}function wm(){return this._isUTC?"Coordinated Universal Time":""}var E=Vr.prototype;E.add=yy;E.calendar=Oy;E.clone=wy;E.diff=ky;E.endOf=By;E.format=Dy;E.from=Ly;E.fromNow=My;E.to=Fy;E.toNow=Uy;E.get=Cp;E.invalidAt=Zy;E.isAfter=Ey;E.isBefore=Cy;E.isBetween=_y;E.isSame=Ay;E.isSameOrAfter=Ry;E.isSameOrBefore=Ny;E.isValid=Vy;E.lang=Xl;E.locale=Jl;E.localeData=Ql;E.max=Vh;E.min=Yh;E.parsingFlags=Ky;E.set=_p;E.startOf=Wy;E.subtract=my;E.toArray=jy;E.toObject=Gy;E.toDate=zy;E.toISOString=Iy;E.inspect=Py;typeof Symbol<"u"&&Symbol.for!=null&&(E[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});E.toJSON=Yy;E.toString=Ty;E.unix=$y;E.valueOf=Hy;E.creationData=qy;E.eraName=em;E.eraNarrow=tm;E.eraAbbr=rm;E.eraYear=om;E.year=Ll;E.isLeapYear=Gp;E.weekYear=um;E.isoWeekYear=dm;E.quarter=E.quarters=gm;E.month=Pl;E.daysInMonth=$p;E.week=E.weeks=Jp;E.isoWeek=E.isoWeeks=Xp;E.weeksInYear=hm;E.weeksInWeekYear=ym;E.isoWeeksInYear=fm;E.isoWeeksInISOWeekYear=pm;E.date=nu;E.day=E.days=dh;E.weekday=fh;E.isoWeekday=ph;E.dayOfYear=bm;E.hour=E.hours=vh;E.minute=E.minutes=xm;E.second=E.seconds=vm;E.millisecond=E.milliseconds=au;E.utcOffset=ry;E.utc=ny;E.local=ay;E.parseZone=iy;E.hasAlignedHourOffset=sy;E.isDST=cy;E.isLocal=uy;E.isUtcOffset=dy;E.isUtc=Vl;E.isUTC=Vl;E.zoneAbbr=Om;E.zoneName=wm;E.dates=ve("dates accessor is deprecated. Use date instead.",nu);E.months=ve("months accessor is deprecated. Use month instead",Pl);E.years=ve("years accessor is deprecated. Use year instead",Ll);E.zone=ve("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",oy);E.isDSTShifted=ve("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",ly);function Em(e){return K(e*1e3)}function Cm(){return K.apply(null,arguments).parseZone()}function iu(e){return e}var $=li.prototype;$.calendar=dp;$.longDateFormat=yp;$.invalidDate=gp;$.ordinal=vp;$.preparse=iu;$.postformat=iu;$.relativeTime=Op;$.pastFuture=wp;$.set=lp;$.eras=Jy;$.erasParse=Xy;$.erasConvertYear=Qy;$.erasAbbrRegex=am;$.erasNameRegex=nm;$.erasNarrowRegex=im;$.months=Up;$.monthsShort=Wp;$.monthsParse=Hp;$.monthsRegex=jp;$.monthsShortRegex=zp;$.week=Vp;$.firstDayOfYear=qp;$.firstDayOfWeek=Zp;$.weekdays=ih;$.weekdaysMin=ch;$.weekdaysShort=sh;$.weekdaysParse=uh;$.weekdaysRegex=hh;$.weekdaysShortRegex=yh;$.weekdaysMinRegex=mh;$.isPM=bh;$.meridiem=Sh;function Lo(e,t,r,o){var a=Xe(),i=Fe().set(o,t);return a[r](i,e)}function su(e,t,r){if(Je(e)&&(t=e,e=void 0),e=e||"",t!=null)return Lo(e,t,r,"month");var o,a=[];for(o=0;o<12;o++)a[o]=Lo(e,o,r,"month");return a}function Ci(e,t,r,o){typeof e=="boolean"?(Je(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,Je(t)&&(r=t,t=void 0),t=t||"");var a=Xe(),i=e?a._week.dow:0,s,l=[];if(r!=null)return Lo(t,(r+i)%7,o,"day");for(s=0;s<7;s++)l[s]=Lo(t,(s+i)%7,o,"day");return l}function _m(e,t){return su(e,t,"months")}function Am(e,t){return su(e,t,"monthsShort")}function Rm(e,t,r){return Ci(e,t,r,"weekdays")}function Nm(e,t,r){return Ci(e,t,r,"weekdaysShort")}function km(e,t,r){return Ci(e,t,r,"weekdaysMin")}pt("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(e){var t=e%10,r=M(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}});A.lang=ve("moment.lang is deprecated. Use moment.locale instead.",pt);A.langData=ve("moment.langData is deprecated. Use moment.localeData instead.",Xe);var Ye=Math.abs;function Tm(){var e=this._data;return this._milliseconds=Ye(this._milliseconds),this._days=Ye(this._days),this._months=Ye(this._months),e.milliseconds=Ye(e.milliseconds),e.seconds=Ye(e.seconds),e.minutes=Ye(e.minutes),e.hours=Ye(e.hours),e.months=Ye(e.months),e.years=Ye(e.years),this}function cu(e,t,r,o){var a=Re(t,r);return e._milliseconds+=o*a._milliseconds,e._days+=o*a._days,e._months+=o*a._months,e._bubble()}function Im(e,t){return cu(this,e,t,1)}function Pm(e,t){return cu(this,e,t,-1)}function bl(e){return e<0?Math.floor(e):Math.ceil(e)}function Dm(){var e=this._milliseconds,t=this._days,r=this._months,o=this._data,a,i,s,l,u;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=bl(ai(r)+t)*864e5,t=0,r=0),o.milliseconds=e%1e3,a=xe(e/1e3),o.seconds=a%60,i=xe(a/60),o.minutes=i%60,s=xe(i/60),o.hours=s%24,t+=xe(s/24),u=xe(lu(t)),r+=u,t-=bl(ai(u)),l=xe(r/12),r%=12,o.days=t,o.months=r,o.years=l,this}function lu(e){return e*4800/146097}function ai(e){return e*146097/4800}function Lm(e){if(!this.isValid())return NaN;var t,r,o=this._milliseconds;if(e=Se(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+o/864e5,r=this._months+lu(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(ai(this._months)),e){case"week":return t/7+o/6048e5;case"day":return t+o/864e5;case"hour":return t*24+o/36e5;case"minute":return t*1440+o/6e4;case"second":return t*86400+o/1e3;case"millisecond":return Math.floor(t*864e5)+o;default:throw new Error("Unknown unit "+e)}}function Mm(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+M(this._months/12)*31536e6:NaN}function Qe(e){return function(){return this.as(e)}}var Fm=Qe("ms"),Um=Qe("s"),Wm=Qe("m"),Bm=Qe("h"),Hm=Qe("d"),$m=Qe("w"),zm=Qe("M"),jm=Qe("Q"),Gm=Qe("y");function Ym(){return Re(this)}function Vm(e){return e=Se(e),this.isValid()?this[e+"s"]():NaN}function It(e){return function(){return this.isValid()?this._data[e]:NaN}}var Km=It("milliseconds"),Zm=It("seconds"),qm=It("minutes"),Jm=It("hours"),Xm=It("days"),Qm=It("months"),eg=It("years");function tg(){return xe(this.days()/7)}var Ve=Math.round,or={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function rg(e,t,r,o,a){return a.relativeTime(t||1,!!r,e,o)}function og(e,t,r,o){var a=Re(e).abs(),i=Ve(a.as("s")),s=Ve(a.as("m")),l=Ve(a.as("h")),u=Ve(a.as("d")),f=Ve(a.as("M")),h=Ve(a.as("w")),p=Ve(a.as("y")),m=i<=r.ss&&["s",i]||i<r.s&&["ss",i]||s<=1&&["m"]||s<r.m&&["mm",s]||l<=1&&["h"]||l<r.h&&["hh",l]||u<=1&&["d"]||u<r.d&&["dd",u];return r.w!=null&&(m=m||h<=1&&["w"]||h<r.w&&["ww",h]),m=m||f<=1&&["M"]||f<r.M&&["MM",f]||p<=1&&["y"]||["yy",p],m[2]=t,m[3]=+e>0,m[4]=o,rg.apply(null,m)}function ng(e){return e===void 0?Ve:typeof e=="function"?(Ve=e,!0):!1}function ag(e,t){return or[e]===void 0?!1:t===void 0?or[e]:(or[e]=t,e==="s"&&(or.ss=t-1),!0)}function ig(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,o=or,a,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(o=Object.assign({},or,t),t.s!=null&&t.ss==null&&(o.ss=t.s-1)),a=this.localeData(),i=og(this,!r,o,a),r&&(i=a.pastFuture(+this,i)),a.postformat(i)}var Xa=Math.abs;function tr(e){return(e>0)-(e<0)||+e}function Vo(){if(!this.isValid())return this.localeData().invalidDate();var e=Xa(this._milliseconds)/1e3,t=Xa(this._days),r=Xa(this._months),o,a,i,s,l=this.asSeconds(),u,f,h,p;return l?(o=xe(e/60),a=xe(o/60),e%=60,o%=60,i=xe(r/12),r%=12,s=e?e.toFixed(3).replace(/\.?0+$/,""):"",u=l<0?"-":"",f=tr(this._months)!==tr(l)?"-":"",h=tr(this._days)!==tr(l)?"-":"",p=tr(this._milliseconds)!==tr(l)?"-":"",u+"P"+(i?f+i+"Y":"")+(r?f+r+"M":"")+(t?h+t+"D":"")+(a||o||e?"T":"")+(a?p+a+"H":"")+(o?p+o+"M":"")+(e?p+s+"S":"")):"P0D"}var W=Go.prototype;W.isValid=Xh;W.abs=Tm;W.add=Im;W.subtract=Pm;W.as=Lm;W.asMilliseconds=Fm;W.asSeconds=Um;W.asMinutes=Wm;W.asHours=Bm;W.asDays=Hm;W.asWeeks=$m;W.asMonths=zm;W.asQuarters=jm;W.asYears=Gm;W.valueOf=Mm;W._bubble=Dm;W.clone=Ym;W.get=Vm;W.milliseconds=Km;W.seconds=Zm;W.minutes=qm;W.hours=Jm;W.days=Xm;W.weeks=tg;W.months=Qm;W.years=eg;W.humanize=ig;W.toISOString=Vo;W.toString=Vo;W.toJSON=Vo;W.locale=Jl;W.localeData=Ql;W.toIsoString=ve("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Vo);W.lang=Xl;P("X",0,0,"unix");P("x",0,0,"valueOf");R("x",Ho);R("X",Rp);Y("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)});Y("x",function(e,t,r){r._d=new Date(M(e))});A.version="2.29.4";sp(K);A.fn=E;A.min=Kh;A.max=Zh;A.now=qh;A.utc=Fe;A.unix=Em;A.months=_m;A.isDate=Yr;A.locale=pt;A.invalid=Mo;A.duration=Re;A.isMoment=Ae;A.weekdays=Rm;A.parseZone=Cm;A.localeData=Xe;A.isDuration=Ro;A.monthsShort=Am;A.weekdaysMin=km;A.defineLocale=gi;A.updateLocale=Ch;A.locales=_h;A.weekdaysShort=Nm;A.normalizeUnits=Se;A.relativeTimeRounding=ng;A.relativeTimeThreshold=ag;A.calendarFormat=Sy;A.prototype=E;A.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"};var _i=A;var Ko={contentFont:n.external(_r.contentFont,"Design system"),colorOnSurfaceHigh:n.external(_r.colorOnSurfaceHigh,"Design system"),colorOnSurfaceMedium:n.external(_r.colorOnSurfaceMedium,"Design system")},uu=re`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-analytics-top-documents",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.61",
|
|
4
4
|
"description": "List the most viewed documents",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-icon": "1.2.
|
|
23
|
-
"@fluid-topics/ft-loader": "1.2.
|
|
24
|
-
"@fluid-topics/ft-typography": "1.2.
|
|
25
|
-
"@fluid-topics/ft-wc-utils": "1.2.
|
|
22
|
+
"@fluid-topics/ft-icon": "1.2.61",
|
|
23
|
+
"@fluid-topics/ft-loader": "1.2.61",
|
|
24
|
+
"@fluid-topics/ft-typography": "1.2.61",
|
|
25
|
+
"@fluid-topics/ft-wc-utils": "1.2.61",
|
|
26
26
|
"lit": "3.1.0"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "924cb24583d473e221182ffe54f8c500643227c1"
|
|
29
29
|
}
|