@soton.ac.uk/cape3 0.11.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cape3.es.js +923 -916
- package/dist/cape3.umd.js +7 -7
- package/package.json +1 -1
package/dist/cape3.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(J,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],s):(J=typeof globalThis<"u"?globalThis:J||self,s(J.Cape3={},J.Vue))})(this,function(J,s){"use strict";var
|
|
1
|
+
(function(J,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],s):(J=typeof globalThis<"u"?globalThis:J||self,s(J.Cape3={},J.Vue))})(this,function(J,s){"use strict";var sm=Object.defineProperty;var om=(J,s,Ze)=>s in J?sm(J,s,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):J[s]=Ze;var $=(J,s,Ze)=>(om(J,typeof s!="symbol"?s+"":s,Ze),Ze);function Ze(){return Br().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Br(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const ai=typeof Proxy=="function",li="devtools-plugin:setup",ci="plugin:settings:set";let it,Nn;function di(){var e;return it!==void 0||(typeof window<"u"&&window.performance?(it=!0,Nn=window.performance):typeof global<"u"&&(!((e=global.perf_hooks)===null||e===void 0)&&e.performance)?(it=!0,Nn=global.perf_hooks.performance):it=!1),it}function ui(){return di()?Nn.now():Date.now()}class fi{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const r={};if(t.settings)for(const a in t.settings){const l=t.settings[a];r[a]=l.defaultValue}const o=`__vue-devtools-plugin-settings__${t.id}`;let i=Object.assign({},r);try{const a=localStorage.getItem(o),l=JSON.parse(a);Object.assign(i,l)}catch{}this.fallbacks={getSettings(){return i},setSettings(a){try{localStorage.setItem(o,JSON.stringify(a))}catch{}i=a},now(){return ui()}},n&&n.on(ci,(a,l)=>{a===this.plugin.id&&this.fallbacks.setSettings(l)}),this.proxiedOn=new Proxy({},{get:(a,l)=>this.target?this.target.on[l]:(...c)=>{this.onQueue.push({method:l,args:c})}}),this.proxiedTarget=new Proxy({},{get:(a,l)=>this.target?this.target[l]:l==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(l)?(...c)=>(this.targetQueue.push({method:l,args:c,resolve:()=>{}}),this.fallbacks[l](...c)):(...c)=>new Promise(u=>{this.targetQueue.push({method:l,args:c,resolve:u})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function Tn(e,t){const n=e,r=Br(),o=Ze(),i=ai&&n.enableEarlyProxy;if(o&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!i))o.emit(li,e,t);else{const a=i?new fi(n,o):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:a}),a&&t(a.proxiedTarget)}}/*!
|
|
2
2
|
* vue-router v4.2.5
|
|
3
3
|
* (c) 2023 Eduardo San Martin Morote
|
|
4
4
|
* @license MIT
|
|
@@ -23,7 +23,7 @@ Use slot props instead:
|
|
|
23
23
|
</router-view>`)}}function Tt(e,t){const n=F({},e,{matched:e.matched.map(r=>Ma(r,["instances","children","aliasOf"]))});return{_custom:{type:null,readOnly:!0,display:e.fullPath,tooltip:t,value:n}}}function Kt(e){return{_custom:{display:e}}}let ka=0;function ba(e,t,n){if(t.__hasDevtools)return;t.__hasDevtools=!0;const r=ka++;Tn({id:"org.vuejs.router"+(r?"."+r:""),label:"Vue Router",packageName:"vue-router",homepage:"https://router.vuejs.org",logo:"https://router.vuejs.org/logo.png",componentStateTypes:["Routing"],app:e},o=>{typeof o.now!="function"&&console.warn("[Vue Router]: You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),o.on.inspectComponent((d,f)=>{d.instanceData&&d.instanceData.state.push({type:"Routing",key:"$route",editable:!1,value:Tt(t.currentRoute.value,"Current Route")})}),o.on.visitComponentTree(({treeNode:d,componentInstance:f})=>{if(f.__vrv_devtools){const h=f.__vrv_devtools;d.tags.push({label:(h.name?`${h.name.toString()}: `:"")+h.path,textColor:0,tooltip:"This component is rendered by <router-view>",backgroundColor:ds})}le(f.__vrl_devtools)&&(f.__devtoolsApi=o,f.__vrl_devtools.forEach(h=>{let g=hs,v="";h.isExactActive?(g=fs,v="This is exactly active"):h.isActive&&(g=us,v="This link is active"),d.tags.push({label:h.route.path,textColor:0,tooltip:v,backgroundColor:g})}))}),s.watch(t.currentRoute,()=>{c(),o.notifyComponentUpdate(),o.sendInspectorTree(l),o.sendInspectorState(l)});const i="router:navigations:"+r;o.addTimelineLayer({id:i,label:`Router${r?" "+r:""} Navigations`,color:4237508}),t.onError((d,f)=>{o.addTimelineEvent({layerId:i,event:{title:"Error during Navigation",subtitle:f.fullPath,logType:"error",time:o.now(),data:{error:d},groupId:f.meta.__navigationId}})});let a=0;t.beforeEach((d,f)=>{const h={guard:Kt("beforeEach"),from:Tt(f,"Current Location during this navigation"),to:Tt(d,"Target location")};Object.defineProperty(d.meta,"__navigationId",{value:a++}),o.addTimelineEvent({layerId:i,event:{time:o.now(),title:"Start of navigation",subtitle:d.fullPath,data:h,groupId:d.meta.__navigationId}})}),t.afterEach((d,f,h)=>{const g={guard:Kt("afterEach")};h?(g.failure={_custom:{type:Error,readOnly:!0,display:h?h.message:"",tooltip:"Navigation Failure",value:h}},g.status=Kt("❌")):g.status=Kt("✅"),g.from=Tt(f,"Current Location during this navigation"),g.to=Tt(d,"Target location"),o.addTimelineEvent({layerId:i,event:{title:"End of navigation",subtitle:d.fullPath,time:o.now(),data:g,logType:h?"warning":"default",groupId:d.meta.__navigationId}})});const l="router-inspector:"+r;o.addInspector({id:l,label:"Routes"+(r?" "+r:""),icon:"book",treeFilterPlaceholder:"Search routes"});function c(){if(!u)return;const d=u;let f=n.getRoutes().filter(h=>!h.parent||!h.parent.record.components);f.forEach(gs),d.filter&&(f=f.filter(h=>Yn(h,d.filter.toLowerCase()))),f.forEach(h=>ms(h,t.currentRoute.value)),d.rootNodes=f.map(ps)}let u;o.on.getInspectorTree(d=>{u=d,d.app===e&&d.inspectorId===l&&c()}),o.on.getInspectorState(d=>{if(d.app===e&&d.inspectorId===l){const h=n.getRoutes().find(g=>g.record.__vd_id===d.nodeId);h&&(d.state={options:va(h)})}}),o.sendInspectorTree(l),o.sendInspectorState(l)})}function Ea(e){return e.optional?e.repeatable?"*":"?":e.repeatable?"+":""}function va(e){const{record:t}=e,n=[{editable:!1,key:"path",value:t.path}];return t.name!=null&&n.push({editable:!1,key:"name",value:t.name}),n.push({editable:!1,key:"regexp",value:e.re}),e.keys.length&&n.push({editable:!1,key:"keys",value:{_custom:{type:null,readOnly:!0,display:e.keys.map(r=>`${r.name}${Ea(r)}`).join(" "),tooltip:"Param keys",value:e.keys}}}),t.redirect!=null&&n.push({editable:!1,key:"redirect",value:t.redirect}),e.alias.length&&n.push({editable:!1,key:"aliases",value:e.alias.map(r=>r.record.path)}),Object.keys(e.record.meta).length&&n.push({editable:!1,key:"meta",value:e.record.meta}),n.push({key:"score",editable:!1,value:{_custom:{type:null,readOnly:!0,display:e.score.map(r=>r.join(", ")).join(" | "),tooltip:"Score used to sort routes",value:e.score}}}),n}const ds=15485081,us=2450411,fs=8702998,Oa=2282478,hs=16486972,Da=6710886;function ps(e){const t=[],{record:n}=e;n.name!=null&&t.push({label:String(n.name),textColor:0,backgroundColor:Oa}),n.aliasOf&&t.push({label:"alias",textColor:0,backgroundColor:hs}),e.__vd_match&&t.push({label:"matches",textColor:0,backgroundColor:ds}),e.__vd_exactActive&&t.push({label:"exact",textColor:0,backgroundColor:fs}),e.__vd_active&&t.push({label:"active",textColor:0,backgroundColor:us}),n.redirect&&t.push({label:typeof n.redirect=="string"?`redirect: ${n.redirect}`:"redirects",textColor:16777215,backgroundColor:Da});let r=n.__vd_id;return r==null&&(r=String(Na++),n.__vd_id=r),{id:r,label:n.path,tags:t,children:e.children.map(ps)}}let Na=0;const Ta=/^\/(.*)\/([a-z]*)$/;function ms(e,t){const n=t.matched.length&&Ye(t.matched[t.matched.length-1],e.record);e.__vd_exactActive=e.__vd_active=n,n||(e.__vd_active=t.matched.some(r=>Ye(r,e.record))),e.children.forEach(r=>ms(r,t))}function gs(e){e.__vd_match=!1,e.children.forEach(gs)}function Yn(e,t){const n=String(e.re).match(Ta);if(e.__vd_match=!1,!n||n.length<3)return!1;if(new RegExp(n[1].replace(/\$$/,""),n[2]).test(t))return e.children.forEach(a=>Yn(a,t)),e.record.path!=="/"||t==="/"?(e.__vd_match=e.re.test(t),!0):!1;const o=e.record.path.toLowerCase(),i=Dt(o);return!t.startsWith("/")&&(i.includes(t)||o.includes(t))||i.startsWith(t)||o.startsWith(t)||e.record.name&&String(e.record.name).includes(t)?!0:e.children.some(a=>Yn(a,t))}function Ma(e,t){const n={};for(const r in e)t.includes(r)||(n[r]=e[r]);return n}function Ca(e){const t=ji(e.routes,e),n=e.parseQuery||da,r=e.stringifyQuery||ss,o=e.history;if(process.env.NODE_ENV!=="production"&&!o)throw new Error('Provide the "history" option when calling "createRouter()": https://next.router.vuejs.org/api/#history.');const i=Nt(),a=Nt(),l=Nt(),c=s.shallowRef(Le);let u=Le;Te&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=Mn.bind(null,p=>""+p),f=Mn.bind(null,ca),h=Mn.bind(null,Dt);function g(p,S){let y,b;return Hr(p)?(y=t.getRecordMatcher(p),b=S):b=p,t.addRoute(b,y)}function v(p){const S=t.getRecordMatcher(p);S?t.removeRoute(S):process.env.NODE_ENV!=="production"&&P(`Cannot remove non-existent route "${String(p)}"`)}function U(){return t.getRoutes().map(p=>p.record)}function I(p){return!!t.getRecordMatcher(p)}function N(p,S){if(S=F({},S||c.value),typeof p=="string"){const C=Cn(n,p,S.path),q=t.resolve({path:C.path},S),ot=o.createHref(C.fullPath);return process.env.NODE_ENV!=="production"&&(ot.startsWith("//")?P(`Location "${p}" resolved to "${ot}". A resolved location cannot start with multiple slashes.`):q.matched.length||P(`No match found for location with path "${p}"`)),F(C,q,{params:h(q.params),hash:Dt(C.hash),redirectedFrom:void 0,href:ot})}let y;if("path"in p)process.env.NODE_ENV!=="production"&&"params"in p&&!("name"in p)&&Object.keys(p.params).length&&P(`Path "${p.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`),y=F({},p,{path:Cn(n,p.path,S.path).path});else{const C=F({},p.params);for(const q in C)C[q]==null&&delete C[q];y=F({},p,{params:f(C)}),S.params=f(S.params)}const b=t.resolve(y,S),Y=p.hash||"";process.env.NODE_ENV!=="production"&&Y&&!Y.startsWith("#")&&P(`A \`hash\` should always start with the character "#". Replace "${Y}" with "#${Y}".`),b.params=d(h(b.params));const Q=gi(r,F({},p,{hash:ia(Y),path:b.path})),R=o.createHref(Q);return process.env.NODE_ENV!=="production"&&(R.startsWith("//")?P(`Location "${p}" resolved to "${R}". A resolved location cannot start with multiple slashes.`):b.matched.length||P(`No match found for location with path "${"path"in p?p.path:p}"`)),F({fullPath:Q,hash:Y,query:r===ss?ua(p.query):p.query||{}},b,{redirectedFrom:void 0,href:R})}function O(p){return typeof p=="string"?Cn(n,p,c.value.path):F({},p)}function W(p,S){if(u!==p)return at(8,{from:S,to:p})}function ee(p){return T(p)}function pe(p){return ee(F(O(p),{replace:!0}))}function me(p){const S=p.matched[p.matched.length-1];if(S&&S.redirect){const{redirect:y}=S;let b=typeof y=="function"?y(p):y;if(typeof b=="string"&&(b=b.includes("?")||b.includes("#")?b=O(b):{path:b},b.params={}),process.env.NODE_ENV!=="production"&&!("path"in b)&&!("name"in b))throw P(`Invalid redirect found:
|
|
24
24
|
${JSON.stringify(b,null,2)}
|
|
25
25
|
when navigating to "${p.fullPath}". A redirect must contain a name or path. This will break in production.`),new Error("Invalid redirect");return F({query:p.query,hash:p.hash,params:"path"in b?{}:p.params},b)}}function T(p,S){const y=u=N(p),b=c.value,Y=p.state,Q=p.force,R=p.replace===!0,C=me(y);if(C)return T(F(O(C),{state:typeof C=="object"?F({},Y,C.state):Y,force:Q,replace:R}),S||y);const q=y;q.redirectedFrom=S;let ot;return!Q&&Fr(r,b,y)&&(ot=at(16,{to:q,from:b}),oi(b,b,!0,!1)),(ot?Promise.resolve(ot):D(q,b)).catch(ie=>Me(ie)?Me(ie,2)?ie:Pr(ie):oe(ie,q,b)).then(ie=>{if(ie){if(Me(ie,2))return process.env.NODE_ENV!=="production"&&Fr(r,N(ie.to),q)&&S&&(S._count=S._count?S._count+1:1)>30?(P(`Detected a possibly infinite redirection in a navigation guard when going from "${b.fullPath}" to "${q.fullPath}". Aborting to avoid a Stack Overflow.
|
|
26
|
-
Are you always returning a new location within a navigation guard? That would lead to this error. Only return when redirecting or aborting, that should fix this. This might break in production if not fixed.`),Promise.reject(new Error("Infinite redirect in navigation guard"))):T(F({replace:R},O(ie.to),{state:typeof ie.to=="object"?F({},Y,ie.to.state):Y,force:Q}),S||q)}else ie=G(q,b,!0,R,Y);return k(q,b,ie),ie})}function si(p,S){const y=W(p,S);return y?Promise.reject(y):Promise.resolve()}function ke(p){const S=Dn.values().next().value;return S&&typeof S.runWithContext=="function"?S.runWithContext(p):p()}function D(p,S){let y;const[b,Y,Q]=Va(p,S);y=Fn(b.reverse(),"beforeRouteLeave",p,S);for(const C of b)C.leaveGuards.forEach(q=>{y.push(Ue(q,p,S))});const R=si.bind(null,p,S);return y.push(R),bt(y).then(()=>{y=[];for(const C of i.list())y.push(Ue(C,p,S));return y.push(R),bt(y)}).then(()=>{y=Fn(Y,"beforeRouteUpdate",p,S);for(const C of Y)C.updateGuards.forEach(q=>{y.push(Ue(q,p,S))});return y.push(R),bt(y)}).then(()=>{y=[];for(const C of Q)if(C.beforeEnter)if(le(C.beforeEnter))for(const q of C.beforeEnter)y.push(Ue(q,p,S));else y.push(Ue(C.beforeEnter,p,S));return y.push(R),bt(y)}).then(()=>(p.matched.forEach(C=>C.enterCallbacks={}),y=Fn(Q,"beforeRouteEnter",p,S),y.push(R),bt(y))).then(()=>{y=[];for(const C of a.list())y.push(Ue(C,p,S));return y.push(R),bt(y)}).catch(C=>Me(C,8)?C:Promise.reject(C))}function k(p,S,y){l.list().forEach(b=>ke(()=>b(p,S,y)))}function G(p,S,y,b,Y){const Q=W(p,S);if(Q)return Q;const R=S===Le,C=Te?history.state:{};y&&(b||R?o.replace(p.fullPath,F({scroll:R&&C&&C.scroll},Y)):o.push(p.fullPath,Y)),c.value=p,oi(p,S,y,R),Pr()}let te;function st(){te||(te=o.listen((p,S,y)=>{if(!ii.listening)return;const b=N(p),Y=me(b);if(Y){T(F(Y,{replace:!0}),b).catch(Et);return}u=b;const Q=c.value;Te&&vi(Ur(Q.fullPath,y.delta),zt()),D(b,Q).catch(R=>Me(R,12)?R:Me(R,2)?(T(R.to,b).then(C=>{Me(C,20)&&!y.delta&&y.type===vt.pop&&o.go(-1,!1)}).catch(Et),Promise.reject()):(y.delta&&o.go(-y.delta,!1),oe(R,b,Q))).then(R=>{R=R||G(b,Q,!1),R&&(y.delta&&!Me(R,8)?o.go(-y.delta,!1):y.type===vt.pop&&Me(R,20)&&o.go(-1,!1)),k(b,Q,R)}).catch(Et)}))}let Gt=Nt(),On=Nt(),Ne;function oe(p,S,y){Pr(p);const b=On.list();return b.length?b.forEach(Y=>Y(p,S,y)):(process.env.NODE_ENV!=="production"&&P("uncaught error during route navigation:"),console.error(p)),Promise.reject(p)}function
|
|
26
|
+
Are you always returning a new location within a navigation guard? That would lead to this error. Only return when redirecting or aborting, that should fix this. This might break in production if not fixed.`),Promise.reject(new Error("Infinite redirect in navigation guard"))):T(F({replace:R},O(ie.to),{state:typeof ie.to=="object"?F({},Y,ie.to.state):Y,force:Q}),S||q)}else ie=G(q,b,!0,R,Y);return k(q,b,ie),ie})}function si(p,S){const y=W(p,S);return y?Promise.reject(y):Promise.resolve()}function ke(p){const S=Dn.values().next().value;return S&&typeof S.runWithContext=="function"?S.runWithContext(p):p()}function D(p,S){let y;const[b,Y,Q]=Va(p,S);y=Fn(b.reverse(),"beforeRouteLeave",p,S);for(const C of b)C.leaveGuards.forEach(q=>{y.push(Ue(q,p,S))});const R=si.bind(null,p,S);return y.push(R),bt(y).then(()=>{y=[];for(const C of i.list())y.push(Ue(C,p,S));return y.push(R),bt(y)}).then(()=>{y=Fn(Y,"beforeRouteUpdate",p,S);for(const C of Y)C.updateGuards.forEach(q=>{y.push(Ue(q,p,S))});return y.push(R),bt(y)}).then(()=>{y=[];for(const C of Q)if(C.beforeEnter)if(le(C.beforeEnter))for(const q of C.beforeEnter)y.push(Ue(q,p,S));else y.push(Ue(C.beforeEnter,p,S));return y.push(R),bt(y)}).then(()=>(p.matched.forEach(C=>C.enterCallbacks={}),y=Fn(Q,"beforeRouteEnter",p,S),y.push(R),bt(y))).then(()=>{y=[];for(const C of a.list())y.push(Ue(C,p,S));return y.push(R),bt(y)}).catch(C=>Me(C,8)?C:Promise.reject(C))}function k(p,S,y){l.list().forEach(b=>ke(()=>b(p,S,y)))}function G(p,S,y,b,Y){const Q=W(p,S);if(Q)return Q;const R=S===Le,C=Te?history.state:{};y&&(b||R?o.replace(p.fullPath,F({scroll:R&&C&&C.scroll},Y)):o.push(p.fullPath,Y)),c.value=p,oi(p,S,y,R),Pr()}let te;function st(){te||(te=o.listen((p,S,y)=>{if(!ii.listening)return;const b=N(p),Y=me(b);if(Y){T(F(Y,{replace:!0}),b).catch(Et);return}u=b;const Q=c.value;Te&&vi(Ur(Q.fullPath,y.delta),zt()),D(b,Q).catch(R=>Me(R,12)?R:Me(R,2)?(T(R.to,b).then(C=>{Me(C,20)&&!y.delta&&y.type===vt.pop&&o.go(-1,!1)}).catch(Et),Promise.reject()):(y.delta&&o.go(-y.delta,!1),oe(R,b,Q))).then(R=>{R=R||G(b,Q,!1),R&&(y.delta&&!Me(R,8)?o.go(-y.delta,!1):y.type===vt.pop&&Me(R,20)&&o.go(-1,!1)),k(b,Q,R)}).catch(Et)}))}let Gt=Nt(),On=Nt(),Ne;function oe(p,S,y){Pr(p);const b=On.list();return b.length?b.forEach(Y=>Y(p,S,y)):(process.env.NODE_ENV!=="production"&&P("uncaught error during route navigation:"),console.error(p)),Promise.reject(p)}function rm(){return Ne&&c.value!==Le?Promise.resolve():new Promise((p,S)=>{Gt.add([p,S])})}function Pr(p){return Ne||(Ne=!p,st(),Gt.list().forEach(([S,y])=>p?y(p):S()),Gt.reset()),p}function oi(p,S,y,b){const{scrollBehavior:Y}=e;if(!Te||!Y)return Promise.resolve();const Q=!y&&Oi(Ur(p.fullPath,0))||(b||!y)&&history.state&&history.state.scroll||null;return s.nextTick().then(()=>Y(p,S,Q)).then(R=>R&&Ei(R)).catch(R=>oe(R,p,S))}const xr=p=>o.go(p);let Ir;const Dn=new Set,ii={currentRoute:c,listening:!0,addRoute:g,removeRoute:v,hasRoute:I,getRoutes:U,resolve:N,options:e,push:ee,replace:pe,go:xr,back:()=>xr(-1),forward:()=>xr(1),beforeEach:i.add,beforeResolve:a.add,afterEach:l.add,onError:On.add,isReady:rm,install(p){const S=this;p.component("RouterLink",ma),p.component("RouterView",wa),p.config.globalProperties.$router=S,Object.defineProperty(p.config.globalProperties,"$route",{enumerable:!0,get:()=>s.unref(c)}),Te&&!Ir&&c.value===Le&&(Ir=!0,ee(o.location).catch(Y=>{process.env.NODE_ENV!=="production"&&P("Unexpected error when starting the router:",Y)}));const y={};for(const Y in Le)Object.defineProperty(y,Y,{get:()=>c.value[Y],enumerable:!0});p.provide(In,S),p.provide(Bn,s.shallowReactive(y)),p.provide(An,c);const b=p.unmount;Dn.add(p),p.unmount=function(){Dn.delete(p),Dn.size<1&&(u=Le,te&&te(),te=null,c.value=Le,Ir=!1,Ne=!1),b()},process.env.NODE_ENV!=="production"&&Te&&ba(p,S,t)}};function bt(p){return p.reduce((S,y)=>S.then(()=>ke(y)),Promise.resolve())}return ii}function Va(e,t){const n=[],r=[],o=[],i=Math.max(t.matched.length,e.matched.length);for(let a=0;a<i;a++){const l=t.matched[a];l&&(e.matched.find(u=>Ye(u,l))?r.push(l):n.push(l));const c=e.matched[a];c&&(t.matched.find(u=>Ye(u,c))||o.push(c))}return[n,r,o]}function Ra(){return s.inject(Bn)}var _s=!1;function qt(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)}function Ln(e,t){if(Array.isArray(e)){e.splice(t,1);return}delete e[t]}/*!
|
|
27
27
|
* pinia v2.1.7
|
|
28
28
|
* (c) 2023 Eduardo San Martin Morote
|
|
29
29
|
* @license MIT
|
|
@@ -33,15 +33,15 @@ Only state can be modified.`);a[0]="$state",lt=!1,r.set(i,a,r.state.value),lt=!0
|
|
|
33
33
|
state: () => new MyClass()
|
|
34
34
|
Found in store "${T.$id}".`),v&&i&&n.hydrate&&n.hydrate(T.$state,v),u=!0,d=!0,T}function dt(e,t,n){let r,o;const i=typeof t=="function";if(typeof e=="string")r=e,o=i?n:t;else if(o=e,r=e.id,process.env.NODE_ENV!=="production"&&typeof r!="string")throw new Error('[🍍]: "defineStore()" must be passed a store id as its first argument.');function a(l,c){const u=s.hasInjectionContext();if(l=(process.env.NODE_ENV==="test"&&Mt&&Mt._testing?null:l)||(u?s.inject(ys,null):null),l&&Ct(l),process.env.NODE_ENV!=="production"&&!Mt)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
35
35
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
36
|
-
This will fail in production.`);l=Mt,l._s.has(r)||(i?Gn(r,t,o,l):$s(r,o,l),process.env.NODE_ENV!=="production"&&(a._pinia=l));const d=l._s.get(r);if(process.env.NODE_ENV!=="production"&&c){const f="__hot:"+r,h=i?Gn(f,t,o,l,!0):$s(f,de({},o),l,!0);c._hotUpdate(h),delete l.state.value[f],l._s.delete(f)}if(process.env.NODE_ENV!=="production"&&Zt){const f=s.getCurrentInstance();if(f&&f.proxy&&!c){const h=f.proxy,g="_pStores"in h?h._pStores:h._pStores={};g[r]=d}}return d}return a.$id=r,a}function zn(e,t){return Array.isArray(t)?t.reduce((n,r)=>(n[r]=function(){return e(this.$pinia)[r]},n),{}):Object.keys(t).reduce((n,r)=>(n[r]=function(){const o=e(this.$pinia),i=t[r];return typeof i=="function"?i.call(this,o):o[i]},n),{})}class el extends Error{constructor(t){super(`The filter '${t}' was not found.`)}}const K=dt("filter",()=>{const e=s.ref(!1),t=s.ref([]),n=s.computed(()=>t.value),r=s.computed(()=>n.value.length),o=h=>{t.value.push(h)},i=()=>{t.value=[]};function a(){t.value.forEach(h=>h.reset())}const l=s.computed(()=>d.value.filter(h=>h.isActive())),c=s.computed(()=>l.value.length>0),u=s.computed(()=>t.value.sort((h,g)=>h.displayPosition<g.displayPosition?-1:h.displayPosition>g.displayPosition?1:0)),d=s.computed(()=>e.value===!0?u.value:u.value.filter(h=>h.display==="quick"));return{showAdvanced:e,filters:t,all:n,count:r,active:l,hasActive:c,forDisplay:d,byId:h=>{const g=t.value.find(v=>v.id===h);if(g===void 0)throw new el(h);return g},reset:a,add:o,clear:i}});class tl extends Error{constructor(t){super(`The record ${t} was not found.`)}}function Ps(e,t){const n=e.indexOf(t);if(n==-1)return;const r=n+1;if(r<=e.length-1)return e[r]}function xs(e,t){const n=e.indexOf(t);if(n==-1)return;const r=n-1;if(r>=0)return e[r]}const Rt=dt("records",()=>{const e=s.ref([]),t=s.computed(()=>e.value.length),n=s.computed(()=>e.value);function r(l){const c=e.value.find(u=>u.record_number.value===l);if(c===void 0)throw new tl(l);return c}function o(l){e.value=l}function i(l){return Ps(n.value,l)}function a(l){return xs(n.value,l)}return{all:n,count:t,byId:r,set:o,next:i,previous:a,records:e}});class Kn extends Error{constructor(t){super(`The field ${t} was not found.`)}}const Is={SourceDataFile:"./site-data.json",ShortenedRecordCount:50};class Bs extends Error{constructor(n,r){super(n);$(this,"innerError");r&&(this.innerError=r)}}class nl{async getData(){try{const t=await fetch(Is.SourceDataFile);if(!t.ok)throw new Bs(`Response status not OK. StatusCode: "${t.status}". StatusText: ${t.statusText} `);return await t.json()}catch(t){throw console.error(t),new Bs("Failed to read source data.",t)}}}function rl(e){const t={},n=ut();return Object.keys(e).sort().forEach(r=>{if(n.byId(r)===void 0)throw new Kn(r)}),n.all.forEach(r=>{t[r.id]={value:e[r.id],field:r}}),t}function sl(e){return e.map(t=>rl(t))}const $t=dt("dataset",()=>{const e=s.ref(!1),t=s.ref(""),n=s.ref(!1),r=s.ref();async function o(){try{e.value=!0;const a=new nl;r.value=await a.getData(),n.value=!0,Rt().set(sl(r.value.records))}catch{t.value="Failed to fetch site-data.json from the website root. Ensure the file exists and is in the expected CapeDataSet format."}finally{e.value=!1}}const i=s.computed(()=>t.value!=""?"ERROR":e.value?"LOADING":n.value?"OK":"EMPTY");return{errorMessage:t,status:i,loadData:o,dataset:r}}),ut=dt("fields",()=>{const e=$t(),t=s.computed(()=>{var o;return((o=e.dataset)==null?void 0:o.fields)??[]}),n=s.computed(()=>t.value.length);function r(o){const i=t.value.find(a=>a.id===o);if(i===void 0)throw new Kn(o);return i}return{all:t,count:n,byId:r}}),je=dt("properties",()=>{const e=ut(),t=$t(),n=s.ref({}),r=s.computed(()=>{var f;return(f=t.dataset)==null?void 0:f.properties}),o=s.computed(()=>{var f;return((f=r==null?void 0:r.value)==null?void 0:f.metadata)??void 0}),i=s.computed(()=>{var f;return((f=r==null?void 0:r.value)==null?void 0:f.title)??"Loading..."}),a=s.computed(()=>{var f;return((f=r==null?void 0:r.value)==null?void 0:f.resultMode)??"filter"}),l=s.computed(()=>{var f,h;return(f=r==null?void 0:r.value)!=null&&f.sortableFields?(h=r==null?void 0:r.value)==null?void 0:h.sortableFields.map(g=>e.byId(g)):[]}),c=s.computed(()=>{var f,h;if((f=r==null?void 0:r.value)!=null&&f.idField)return e.byId((h=r==null?void 0:r.value)==null?void 0:h.idField);throw new Kn("UNDEFINED")});function u(f){n.value=f}return{pages:s.computed(()=>n.value.pages===void 0?[{path:"/about",label:"About",component:"CapeAboutPage"}]:n.value.pages),metadata:o,title:i,idField:c,sortableFields:l,resultMode:a,setOptions:u,options:n}});var He=(e=>(e.Ascending="Ascending",e.Descending="Descending",e))(He||{});function ol(e,t,n,r){var a,l;if(!n||!r)return 0;const o=(a=e[n])==null?void 0:a.value,i=(l=t[n])==null?void 0:l.value;return!o&&!i?0:!o&&i?r===He.Ascending?1:-1:o&&!i||o.toString().localeCompare(i.toString())<0?r===He.Ascending?-1:1:o.toString().localeCompare(i.toString())>0?r===He.Ascending?1:-1:0}const Ge=dt("searchResults",()=>{const e=Rt(),t=je(),n=K(),r=s.computed(()=>t.resultMode==="search"&&!n.hasActive?[]:n.active.reduce((O,W)=>W.filterRecords(O),e.all)),o=s.computed(()=>{let O=r.value;return u.value&&(O=O.sort((W,ee)=>ol(W,ee,d.value,f.value))),O}),i=s.computed(()=>{let O=o.value;return O=h.value?O:O.slice(0,Is.ShortenedRecordCount),O}),a=s.computed(()=>r.value.length),l=s.computed(()=>i.value.length),c=s.computed(()=>l.value===a.value),u=s.computed(()=>t.sortableFields.length>0),d=s.ref(N()),f=s.ref(I()),h=s.ref(!1);function g(){d.value=N(),f.value=I()}function v(O){return Ps(o.value,O)}function U(O){return xs(o.value,O)}function I(){return u.value?He.Ascending:void 0}function N(){return u.value?t.sortableFields[0].id:void 0}return{all:r,totalCount:a,visible:i,visibleCount:l,showAllResults:h,allResultsAreVisible:c,hasSortFields:u,sortFieldId:d,sortDirection:f,reset:g,next:v,previous:U}}),As={template:"#templateCapeHomepageLayout",computed:{...zn(K,["showAdvanced"]),...zn(Ge,{hasMatches:e=>e.totalCount>0})}},il={class:"cape-home-page"},Fs=s.defineComponent({__name:"CapeHomePage",setup(e){return(t,n)=>(s.openBlock(),s.createElementBlock("form",il,[s.createVNode(As)]))}}),Ys={template:"#templateCapeRecordCard",props:["record"]},al={key:0,class:"cape-record-page-record-not-found"},ll={class:"cape-record-page-record-id"},Ls=s.defineComponent({__name:"CapeRecordPage",setup(e){const t=Ra(),n=Rt(),r=s.computed(()=>parseInt(t.params.id)),o=s.computed(()=>{try{return n.byId(r.value)}catch{return}});return(i,a)=>o.value===void 0?(s.openBlock(),s.createElementBlock("div",al,[s.createTextVNode(" The record with Record ID "),s.createElementVNode("span",ll,s.toDisplayString(r.value),1),s.createTextVNode(" does not exist. ")])):(s.openBlock(),s.createBlock(Ys,{key:1,record:o.value},null,8,["record"]))}}),Us=Ca({history:Ci("/"),routes:[{name:"root",path:"/",component:Fs},{name:"record",path:"/record/:id",component:Ls}],linkActiveClass:"active",linkExactActiveClass:"active"}),Ws={template:"#templateCapeNavigation",computed:{...zn(je,["pages"])}},cl={class:"cape-load-error cape-error"},dl=s.createElementVNode("h2",null,"Unable to load data",-1),ul={class:"cape-load-error-message"},js=s.defineComponent({__name:"CapeLoadError",setup(e){const t=$t();return(n,r)=>(s.openBlock(),s.createElementBlock("div",cl,[dl,s.createElementVNode("p",null,[s.createTextVNode(" An error has occurred. The error was: "),s.createElementVNode("span",ul,s.toDisplayString(s.unref(t).errorMessage),1),s.createTextVNode(". ")])]))}});function Hs(e){const t={A:"[AaªÀ-Åà-åĀ-ąǍǎȀ-ȃȦȧᴬᵃḀḁẚẠ-ảₐ℀℁℻⒜Ⓐⓐ㍱-㍴㎀-㎄㎈㎉㎩-㎯㏂㏊㏟㏿Aa]",B:"[BbᴮᵇḂ-ḇℬ⒝Ⓑⓑ㍴㎅-㎇㏃㏈㏔㏝Bb]",C:"[CcÇçĆ-čᶜ℀ℂ℃℅℆ℭⅭⅽ⒞Ⓒⓒ㍶㎈㎉㎝㎠㎤㏄-㏇Cc]",D:"[DdĎďDŽ-džDZ-dzᴰᵈḊ-ḓⅅⅆⅮⅾ⒟Ⓓⓓ㋏㍲㍷-㍹㎗㎭-㎯㏅㏈Dd]",E:"[EeÈ-Ëè-ëĒ-ěȄ-ȇȨȩᴱᵉḘ-ḛẸ-ẽₑ℡ℯℰⅇ⒠Ⓔⓔ㉐㋍㋎Ee]",F:"[FfᶠḞḟ℉ℱ℻⒡Ⓕⓕ㎊-㎌㎙ff-fflFf]",G:"[GgĜ-ģǦǧǴǵᴳᵍḠḡℊ⒢Ⓖⓖ㋌㋍㎇㎍-㎏㎓㎬㏆㏉㏒㏿Gg]",H:"[HhĤĥȞȟʰᴴḢ-ḫẖℋ-ℎ⒣Ⓗⓗ㋌㍱㎐-㎔㏊㏋㏗Hh]",I:"[IiÌ-Ïì-ïĨ-İIJijǏǐȈ-ȋᴵᵢḬḭỈ-ịⁱℐℑℹⅈⅠ-ⅣⅥ-ⅨⅪⅫⅰ-ⅳⅵ-ⅸⅺⅻ⒤Ⓘⓘ㍺㏌㏕fiffiIi]",J:"[JjIJ-ĵLJ-njǰʲᴶⅉ⒥ⒿⓙⱼJj]",K:"[KkĶķǨǩᴷᵏḰ-ḵK⒦Ⓚⓚ㎄㎅㎉㎏㎑㎘㎞㎢㎦㎪㎸㎾㏀㏆㏍-㏏Kk]",L:"[LlĹ-ŀLJ-ljˡᴸḶḷḺ-ḽℒℓ℡Ⅼⅼ⒧Ⓛⓛ㋏㎈㎉㏐-㏓㏕㏖㏿flfflLl]",M:"[MmᴹᵐḾ-ṃ℠™ℳⅯⅿ⒨Ⓜⓜ㍷-㍹㎃㎆㎎㎒㎖㎙-㎨㎫㎳㎷㎹㎽㎿㏁㏂㏎㏐㏔-㏖㏘㏙㏞㏟Mm]",N:"[NnÑñŃ-ʼnNJ-njǸǹᴺṄ-ṋⁿℕ№⒩Ⓝⓝ㎁㎋㎚㎱㎵㎻㏌㏑Nn]",O:"[OoºÒ-Öò-öŌ-őƠơǑǒǪǫȌ-ȏȮȯᴼᵒỌ-ỏₒ℅№ℴ⒪Ⓞⓞ㍵㏇㏒㏖Oo]",P:"[PpᴾᵖṔ-ṗℙ⒫Ⓟⓟ㉐㍱㍶㎀㎊㎩-㎬㎰㎴㎺㏋㏗-㏚Pp]",Q:"[Qqℚ⒬Ⓠⓠ㏃Qq]",R:"[RrŔ-řȐ-ȓʳᴿᵣṘ-ṛṞṟ₨ℛ-ℝ⒭Ⓡⓡ㋍㍴㎭-㎯㏚㏛Rr]",S:"[SsŚ-šſȘșˢṠ-ṣ₨℁℠⒮Ⓢⓢ㎧㎨㎮-㎳㏛㏜stSs]",T:"[TtŢ-ťȚțᵀᵗṪ-ṱẗ℡™⒯Ⓣⓣ㉐㋏㎔㏏ſtstTt]",U:"[UuÙ-Üù-üŨ-ųƯưǓǔȔ-ȗᵁᵘᵤṲ-ṷỤ-ủ℆⒰Ⓤⓤ㍳㍺Uu]",V:"[VvᵛᵥṼ-ṿⅣ-Ⅷⅳ-ⅷ⒱Ⓥⓥⱽ㋎㍵㎴-㎹㏜㏞Vv]",W:"[WwŴŵʷᵂẀ-ẉẘ⒲Ⓦⓦ㎺-㎿㏝Ww]",X:"[XxˣẊ-ẍₓ℻Ⅸ-Ⅻⅸ-ⅻ⒳Ⓧⓧ㏓Xx]",Y:"[YyÝýÿŶ-ŸȲȳʸẎẏẙỲ-ỹ⒴Ⓨⓨ㏉Yy]",Z:"[ZzŹ-žDZ-dzᶻẐ-ẕℤℨ⒵Ⓩⓩ㎐-㎔Zz]"},n=e.replace(/([|()[{.+*?^$\\])/g,"\\$1"),r=function(i){return t[i.toUpperCase()]??i},o=n.replace(/\S/g,r);return new RegExp(o,"g")}class qn{constructor(t,n,r,o){$(this,"id");$(this,"componentId");$(this,"displayPosition");$(this,"display");this.id=t,this.componentId=n,this.displayPosition=r,this.display=o}filterRecords(t){return t.filter(n=>this.matchesRecord(n))}matchesRecord(t){throw new Error("matchesRecord or filterRecords must be overridden!")}}function ft(e){return Array.isArray(e)?e:[e]}class fl extends qn{constructor(n,r,o,i,a,l){super(n,r,o,i);$(this,"term");$(this,"defaultTerm");$(this,"placeholder");this.defaultTerm=a,this.placeholder=l,this.term=this.defaultTerm}reset(){this.term=this.defaultTerm}isDefault(){return this.term===this.defaultTerm}isActive(){return this.term!==""}matchesRecord(n){return this.term===void 0||this.term.trim()===""?!1:this.term.trim().toLowerCase().split(/\s+/).every(o=>{const i=Hs(o);return this.termRegexpMatchesRecord(i,n)})}termRegexpMatchesRecord(n,r){return Object.values(r).some(o=>this.termRegexpMatchesValue(n,o.value))}termRegexpMatchesValue(n,r){return ft(r).some(i=>`${i}`.match(n))}}class tn extends qn{constructor(n,r,o,i,a){super(n,r,o,i);$(this,"field");a.changeFilterMode||(a.changeFilterMode=!0),this.field=a}matchesRecord(n){const r=n[this.field.id].value;return this.matchesValue(r)}}function hl(e,t){if(e===void 0||e==="")return!1;const n=t.trim().toLowerCase().split(/\s+/),r=ft(e);return n.every(o=>{const i=Hs(o);return r.some(a=>`${a}`.match(i))})}function Pt(e){return!(e===""||e===void 0||Array.isArray(e)&&e.length===0)}function nn(e){return!Pt(e)}function Zn(e,t){return e===""||e===void 0?!1:ft(e).find(o=>`${o}`.trim().toLowerCase()===t.trim().toLowerCase())!==void 0}class pl extends tn{constructor(n,r,o,i,a,l,c){super(n,r,o,i,a);$(this,"term");$(this,"defaultTerm");$(this,"mode");$(this,"defaultMode");this.defaultMode=c,this.defaultTerm=l,this.mode=this.defaultMode,this.term=this.defaultTerm}reset(){this.mode=this.defaultMode,this.term=this.defaultTerm}isDefault(){return this.mode===this.defaultMode&&this.term===this.defaultTerm}isActive(){switch(this.mode){case"contains":case"is":return this.term!=="";case"set":case"notSet":return!0}}matchesValue(n){switch(this.mode){case"contains":return hl(n,this.term);case"is":return Zn(n,this.term);case"set":return Pt(n);case"notSet":return nn(n)}}}function Gs(e,t){return e===""||e===void 0?!1:ft(e).find(o=>`${o}`===t)!==void 0}function ml(e,t){return t.find(r=>Gs(e,r))!==void 0}class gl extends tn{constructor(n,r,o,i,a,l,c,u){super(n,r,o,i,a);$(this,"isTerm");$(this,"oneOfTerms");$(this,"mode");$(this,"defaultIsTerm");$(this,"defaultOneOfTerms");$(this,"defaultMode");this.defaultIsTerm=l,this.defaultOneOfTerms=c,this.defaultMode=u,this.mode=this.defaultMode,this.isTerm=this.defaultIsTerm,this.oneOfTerms=this.defaultOneOfTerms}reset(){this.mode=this.defaultMode,this.isTerm=this.defaultIsTerm,this.oneOfTerms=this.defaultOneOfTerms}isDefault(){return this.mode===this.defaultMode&&this.isTerm===this.defaultIsTerm&&this.oneOfTerms.toString()===this.defaultOneOfTerms.toString()}isActive(){switch(this.mode){case"is":return this.isTerm!=="";case"oneOf":return this.oneOfTerms.length>0;case"set":case"notSet":return!0}}matchesValue(n){switch(this.mode){case"oneOf":return ml(n,this.oneOfTerms);case"is":return Gs(n,this.isTerm);case"set":return Pt(n);case"notSet":return nn(n)}}}function _l(e,t,n){return e===""||e===void 0?!1:ft(e).find(i=>i>=t&&i<=n)!==void 0}function Xe(e){if(e!="")return e}function zs(e,t){const n=Xe(e);return n??t}class yl extends tn{constructor(n,r,o,i,a,l,c,u,d){super(n,r,o,i,a);$(this,"isTerm");$(this,"lowerBoundTerm");$(this,"upperBoundTerm");$(this,"defaultIsTerm");$(this,"defaultLowerBound");$(this,"defaultUpperBound");$(this,"mode");$(this,"defaultMode");this.defaultMode=d,this.defaultIsTerm=l,this.defaultLowerBound=c,this.defaultUpperBound=u,this.mode=this.defaultMode,this.isTerm=this.defaultIsTerm,this.lowerBoundTerm=this.defaultLowerBound,this.upperBoundTerm=this.defaultUpperBound}reset(){this.mode=this.defaultMode,this.isTerm=this.defaultIsTerm,this.lowerBoundTerm=this.defaultLowerBound,this.upperBoundTerm=this.defaultUpperBound}isDefault(){switch(this.defaultMode){case"is":return this.mode==this.defaultMode&&Xe(this.isTerm)==this.defaultIsTerm;case"between":return this.mode==this.defaultMode&&Xe(this.lowerBoundTerm)==this.defaultLowerBound&&Xe(this.upperBoundTerm)==this.defaultUpperBound;case"set":case"notSet":return this.mode==this.defaultMode}}isActive(){switch(this.mode){case"is":return Xe(this.isTerm)!==void 0;case"between":return Xe(this.lowerBoundTerm)!==void 0||Xe(this.upperBoundTerm)!==void 0;case"set":case"notSet":return!0}}matchesValue(n){switch(this.mode){case"is":return Zn(n,`${this.isTerm}`);case"between":{const r=zs(this.lowerBoundTerm,Number.NEGATIVE_INFINITY),o=zs(this.upperBoundTerm,Number.POSITIVE_INFINITY);return _l(n,r,o)}case"set":return Pt(n);case"notSet":return nn(n)}}}function wl(e,t,n){return e===""||e===void 0?!1:ft(e).find(i=>(t===void 0||i>=t)&&(n===void 0||i<=n))!==void 0}class Sl extends tn{constructor(n,r,o,i,a,l,c,u,d){super(n,r,o,i,a);$(this,"isTerm");$(this,"lowerBoundTerm");$(this,"upperBoundTerm");$(this,"defaultIsTerm");$(this,"defaultLowerBound");$(this,"defaultUpperBound");$(this,"mode");$(this,"defaultMode");this.defaultMode=d,this.defaultIsTerm=l,this.defaultLowerBound=c,this.defaultUpperBound=u,this.mode=this.defaultMode,this.isTerm=this.defaultIsTerm,this.lowerBoundTerm=this.defaultLowerBound,this.upperBoundTerm=this.defaultUpperBound}reset(){this.mode=this.defaultMode,this.isTerm=this.defaultIsTerm,this.lowerBoundTerm=this.defaultLowerBound,this.upperBoundTerm=this.defaultUpperBound}isDefault(){return this.mode===this.defaultMode&&this.isTerm===this.defaultIsTerm}isActive(){switch(this.mode){case"is":return this.validDateTerm(this.isTerm);case"between":return this.validBoundsTerm(this.lowerBoundTerm)||this.validBoundsTerm(this.upperBoundTerm);case"set":case"notSet":return!0}}validBoundsTerm(n){return n!==void 0&&/^\d{4}(-\d{1,2}(-\d{1,2})?)?$/.test(n)}validDateTerm(n){return n!==void 0&&(this.validDMYTerm(n)||this.validYMDTerm(n))}validDMYTerm(n){return/^\d{1,2}\/\d{1,2}\/\d{4}$/.test(n)}validYMDTerm(n){return/^\d{4}-\d{1,2}-\d{1,2}$/.test(n)}dateParts(n){return n===void 0?[]:this.validBoundsTerm(n)?n.split("-").map(o=>parseInt(o)):[]}termToUpperBound(n){const r=this.dateParts(n);return r.length===0&&r.push(9999),r.length===1&&r.push(99),r.length===2&&r.push(99),this.partsToDateString(r)}termToLowerBound(n){const r=this.dateParts(n);return r.length===0&&r.push(0),r.length===1&&r.push(0),r.length===2&&r.push(0),this.partsToDateString(r)}termToISO(n){if(n===void 0||!this.validDateTerm(n))return;let r;return this.validYMDTerm(n)?r=n.split(/-/):r=n.split(/\//).reverse(),this.partsToDateString(r.map(o=>parseInt(o)))}partsToDateString(n){return n[0].toString().padStart(4,"0")+"-"+n[1].toString().padStart(2,"0")+"-"+n[2].toString().padStart(2,"0")}matchesValue(n){switch(this.mode){case"is":return Zn(n,this.termToISO(this.isTerm)??"");case"between":return wl(n,this.termToLowerBound(this.lowerBoundTerm),this.termToUpperBound(this.upperBoundTerm));case"set":return Pt(n);case"notSet":return nn(n)}}}function kl(){bl(),El(),vl(),Ml()}function bl(){K().clear()}function El(){K().add(new fl("free-text","CapeFilterFreeText",-100,"quick","","free text search"))}function vl(){const e=ut();let t=0;e.all.forEach(n=>{if(n.filterDisplay==="hide")return;const r=n.filterDisplay??"advanced";switch(t+=100,n.type){case"text":Ol(t,n,r);break;case"enum":Dl(t,n,r);break;case"integer":Nl(t,n,r);break;case"date":Tl(t,n,r);break}})}function Ol(e,t,n){K().add(new pl("field-"+t.id,"CapeFilterFieldText",e,n,t,"",t.defaultFilterMode??"contains"))}function Dl(e,t,n){K().add(new gl("field-"+t.id,"CapeFilterFieldEnum",e,n,t,"",[],t.defaultFilterMode??"oneOf"))}function Nl(e,t,n){K().add(new yl("field-"+t.id,"CapeFilterFieldInteger",e,n,t,void 0,void 0,void 0,t.defaultFilterMode??"between"))}function Tl(e,t,n){K().add(new Sl("field-"+t.id,"CapeFilterFieldDate",e,n,t,"","","",t.defaultFilterMode??"between"))}function Ml(){var n;const e=K(),t=je();((n=t==null?void 0:t.options)==null?void 0:n.additionalFilters)!==void 0&&t.options.additionalFilters.forEach(r=>e.add(r))}const Ks=s.defineComponent({__name:"CapeRoot",async setup(e){let t,n;const r=$t();return[t,n]=s.withAsyncContext(()=>r.loadData()),await t,n(),kl(),(o,i)=>(s.openBlock(),s.createElementBlock("div",null,[s.unref(r).status==="ERROR"?(s.openBlock(),s.createBlock(js,{key:0})):s.createCommentVNode("",!0),s.unref(r).status=="OK"?(s.openBlock(),s.createBlock(Ws,{key:1})):s.createCommentVNode("",!0)]))}}),Cl={class:"cape-record-count"},qs=s.defineComponent({__name:"CapeRecordCount",setup(e){const t=Rt();return(n,r)=>(s.openBlock(),s.createElementBlock("span",Cl,s.toDisplayString(s.unref(t).count),1))}}),Vl={__name:"CapeAdvancedSearchToggle",setup(e){const t=K();return(n,r)=>s.withDirectives((s.openBlock(),s.createElementBlock("input",{"data-test":"show-all-filters","onUpdate:modelValue":r[0]||(r[0]=o=>s.unref(t).showAdvanced=o),type:"checkbox",class:"cape-advanced-search-toggle"},null,512)),[[s.vModelCheckbox,s.unref(t).showAdvanced]])}},Rl={class:"cape-filters"},$l=s.defineComponent({__name:"CapeFilters",setup(e){const t=K();return(n,r)=>(s.openBlock(),s.createElementBlock("div",Rl,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(t).forDisplay,o=>(s.openBlock(),s.createBlock(s.resolveDynamicComponent(o.componentId),{key:o,filterId:o.id},null,8,["filterId"]))),128))]))}}),Pl={__name:"CapeFormResetButton",setup(e){const t=K(),n=Ge();function r(){t.reset(),n.reset()}return(o,i)=>(s.openBlock(),s.createElementBlock("button",{"data-test":"new-search-button",onClick:r,type:"button",class:"cape-button cape-reset-button cape-form-reset-button"},[s.renderSlot(o.$slots,"default",{},()=>[s.createTextVNode(" New search ")])]))}},Zs={template:"#templateCapeHeader"},Js=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},xl={},Il={class:"cape-loading"},Bl=[s.createElementVNode("div",{class:"cape-loading-spinner",role:"status"},[s.createElementVNode("span",{class:"cape-loading-spinner-sr-text"},"Loading...")],-1),s.createElementVNode("p",{class:"cape-loading-text"},"Please wait while the data loads.",-1)];function Al(e,t){return s.openBlock(),s.createElementBlock("div",Il,Bl)}const Qs=Js(xl,[["render",Al]]),Fl=function(){var n;const e=je(),t=(n=e==null?void 0:e.options)==null?void 0:n.environment;return t||(console.warn('Cannot identify your environment name. Pass environment name as CapeOptions.environment when instantiating the CapePlugin. Defaulting to "UNKNOWN".'),"UNKNOWN")},Yl={key:0,id:"non-prod-warning","data-test":"non-prod-warning",class:"cape-non-prod-warning cape-warning cape-closeable"},Ll=s.createElementVNode("strong",null,"WARNING",-1),Ul={class:"cape-non-prod-warning-environment"},Wl={key:0,class:"cape-non-prod-warning-instructions","data-test":"env-file-instructions"},jl=s.defineComponent({__name:"CapeNonProdWarning",setup(e){const t=Fl(),n=s.ref(!1),r=s.computed(()=>t!="PROD"&&!n.value),o=s.computed(()=>t==="UNKNOWN"),i=function(){n.value=!0};return(a,l)=>r.value?(s.openBlock(),s.createElementBlock("div",Yl,[Ll,s.createTextVNode(': This is a "'),s.createElementVNode("span",Ul,s.toDisplayString(s.unref(t)),1),s.createTextVNode('" instance of this service. '),o.value?(s.openBlock(),s.createElementBlock("div",Wl," This pane is being displayed because the CAPE environment for this application is not set to 'PROD'. Note: The CAPE environment for this application is passed in the CapeOptions when calling 'createCapeApp(...)' in the /src/main.ts file. ")):s.createCommentVNode("",!0),s.createElementVNode("span",{"aria-label":"Close",role:"button",tabindex:"0",title:"Hide this message",onClick:i,onKeyup:s.withKeys(i,["enter"]),class:"cape-non-prod-warning-close-button cape-close-button"},"X",32)])):s.createCommentVNode("",!0)}}),Xs={template:"#templateCapeSummaryCard",props:["record"]},Hl={key:0,class:"cape-sort-order","data-test":"cape-sort-order"},Gl=s.createElementVNode("label",{for:"cape-sort-order"},"Order results by: ",-1),zl={class:"cape-sort-order-controls"},Kl=["value"],ql=["value"],Zl=["value"],eo=s.defineComponent({__name:"CapeSortOrder",setup(e){const t=je(),n=Ge();return(r,o)=>s.unref(n).hasSortFields&&s.unref(n).visibleCount>0?(s.openBlock(),s.createElementBlock("div",Hl,[Gl,s.createElementVNode("div",zl,[s.withDirectives(s.createElementVNode("select",{id:"cape-sort-order",class:"cape-sort-order-field","onUpdate:modelValue":o[0]||(o[0]=i=>s.unref(n).sortFieldId=i)},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(t).sortableFields,i=>(s.openBlock(),s.createElementBlock("option",{key:i.id,value:i.id},s.toDisplayString(i.label),9,Kl))),128))],512),[[s.vModelSelect,s.unref(n).sortFieldId]]),s.withDirectives(s.createElementVNode("select",{class:"cape-sort-order-direction","onUpdate:modelValue":o[1]||(o[1]=i=>s.unref(n).sortDirection=i),"aria-label":"Sort direction"},[s.createElementVNode("option",{value:s.unref(He).Ascending},"Ascending",8,ql),s.createElementVNode("option",{value:s.unref(He).Descending},"Descending",8,Zl)],512),[[s.vModelSelect,s.unref(n).sortDirection]])])])):s.createCommentVNode("",!0)}}),Jl={__name:"CapeShowAllResultsToggle",setup(e){const t=Ge();return(n,r)=>s.withDirectives((s.openBlock(),s.createElementBlock("input",{"data-test":"show-all-filters","onUpdate:modelValue":r[0]||(r[0]=o=>s.unref(t).showAllResults=o),type:"checkbox",class:"cape-show-all-results-toggle"},null,512)),[[s.vModelCheckbox,s.unref(t).showAllResults]])}},Ql={key:0,class:"cape-results-info"},Xl={key:0},ec={key:1},tc={key:1,class:"cape-results-count"},nc=s.defineComponent({__name:"CapeResultsInfo",setup(e){const t=Ge();return(n,r)=>s.unref(t).allResultsAreVisible?(s.openBlock(),s.createElementBlock("div",Ql,[s.unref(t).visibleCount==1?(s.openBlock(),s.createElementBlock("div",Xl,"Showing 1 matching record.")):(s.openBlock(),s.createElementBlock("div",ec,"Showing all "+s.toDisplayString(s.unref(t).visibleCount)+" matching records.",1))])):(s.openBlock(),s.createElementBlock("div",tc," Showing first "+s.toDisplayString(s.unref(t).visibleCount)+" of "+s.toDisplayString(s.unref(t).totalCount)+" matching records. ",1))}}),rc={class:"cape-results-controls flex justify-between"},sc={class:"flex justify-start"},oc={key:0,class:"cape-show-all-results-toggle switch switch-sm"},ic=["for"],Jn=s.defineComponent({__name:"CapeResultsControls",props:{idDistinguisher:{}},setup(e){const t=e,n=Ge(),r=s.computed(()=>!n.allResultsAreVisible||n.showAllResults),o=s.computed(()=>`cape-show-all-results-toggle-${t.idDistinguisher}`);return(i,a)=>(s.openBlock(),s.createElementBlock("div",rc,[s.createElementVNode("div",sc,[s.createVNode(nc),r.value?(s.openBlock(),s.createElementBlock("div",oc,[s.createVNode(Jl,{class:"cape-results-toggle",id:o.value},null,8,["id"]),s.createElementVNode("label",{for:o.value},"Show All Results",8,ic)])):s.createCommentVNode("",!0)]),s.createVNode(eo)]))}}),ac={class:"cape-results"},lc={key:0,"data-test":"no-matches",class:"cape-results-no-matches"},cc=s.defineComponent({__name:"CapeResults",setup(e){const t=Ge();return(n,r)=>(s.openBlock(),s.createElementBlock("div",ac,[s.unref(t).totalCount===0?(s.openBlock(),s.createElementBlock("div",lc," No matches ")):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createVNode(Jn,{class:"cape-results-controls-top","id-distinguisher":"top"}),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(t).visible,(o,i)=>(s.openBlock(),s.createBlock(Xs,{key:i,record:o},null,8,["record"]))),128)),s.createVNode(Jn,{class:"cape-results-controls-bottom","id-distinguisher":"bottom"})],64))]))}});//! moment.js
|
|
36
|
+
This will fail in production.`);l=Mt,l._s.has(r)||(i?Gn(r,t,o,l):$s(r,o,l),process.env.NODE_ENV!=="production"&&(a._pinia=l));const d=l._s.get(r);if(process.env.NODE_ENV!=="production"&&c){const f="__hot:"+r,h=i?Gn(f,t,o,l,!0):$s(f,de({},o),l,!0);c._hotUpdate(h),delete l.state.value[f],l._s.delete(f)}if(process.env.NODE_ENV!=="production"&&Zt){const f=s.getCurrentInstance();if(f&&f.proxy&&!c){const h=f.proxy,g="_pStores"in h?h._pStores:h._pStores={};g[r]=d}}return d}return a.$id=r,a}function zn(e,t){return Array.isArray(t)?t.reduce((n,r)=>(n[r]=function(){return e(this.$pinia)[r]},n),{}):Object.keys(t).reduce((n,r)=>(n[r]=function(){const o=e(this.$pinia),i=t[r];return typeof i=="function"?i.call(this,o):o[i]},n),{})}class el extends Error{constructor(t){super(`The filter '${t}' was not found.`)}}const K=dt("filter",()=>{const e=s.ref(!1),t=s.ref([]),n=s.computed(()=>t.value),r=s.computed(()=>n.value.length),o=h=>{t.value.push(h)},i=()=>{t.value=[]};function a(){t.value.forEach(h=>h.reset())}const l=s.computed(()=>d.value.filter(h=>h.isActive())),c=s.computed(()=>l.value.length>0),u=s.computed(()=>t.value.sort((h,g)=>h.displayPosition<g.displayPosition?-1:h.displayPosition>g.displayPosition?1:0)),d=s.computed(()=>e.value===!0?u.value:u.value.filter(h=>h.display==="quick"));return{showAdvanced:e,filters:t,all:n,count:r,active:l,hasActive:c,forDisplay:d,byId:h=>{const g=t.value.find(v=>v.id===h);if(g===void 0)throw new el(h);return g},reset:a,add:o,clear:i}});class tl extends Error{constructor(t){super(`The record ${t} was not found.`)}}function Ps(e,t){const n=e.indexOf(t);if(n==-1)return;const r=n+1;if(r<=e.length-1)return e[r]}function xs(e,t){const n=e.indexOf(t);if(n==-1)return;const r=n-1;if(r>=0)return e[r]}const Rt=dt("records",()=>{const e=s.ref([]),t=s.computed(()=>e.value.length),n=s.computed(()=>e.value);function r(l){const c=e.value.find(u=>u.record_number.value===l);if(c===void 0)throw new tl(l);return c}function o(l){e.value=l}function i(l){return Ps(n.value,l)}function a(l){return xs(n.value,l)}return{all:n,count:t,byId:r,set:o,next:i,previous:a,records:e}});class Kn extends Error{constructor(t){super(`The field ${t} was not found.`)}}const Is={SourceDataFile:"./site-data.json",ShortenedRecordCount:50};class Bs extends Error{constructor(n,r){super(n);$(this,"innerError");r&&(this.innerError=r)}}class nl{async getData(){try{const t=await fetch(Is.SourceDataFile);if(!t.ok)throw new Bs(`Response status not OK. StatusCode: "${t.status}". StatusText: ${t.statusText} `);return await t.json()}catch(t){throw console.error(t),new Bs("Failed to read source data.",t)}}}function rl(e){const t={},n=ut();return Object.keys(e).sort().forEach(r=>{if(n.byId(r)===void 0)throw new Kn(r)}),n.all.forEach(r=>{t[r.id]={value:e[r.id],field:r}}),t}function sl(e){return e.map(t=>rl(t))}const $t=dt("dataset",()=>{const e=s.ref(!1),t=s.ref(""),n=s.ref(!1),r=s.ref();async function o(){try{e.value=!0;const a=new nl;r.value=await a.getData(),n.value=!0,Rt().set(sl(r.value.records))}catch(a){t.value=`Failed to fetch or process site-data.json from the website root. ${a}`}finally{e.value=!1}}const i=s.computed(()=>t.value!=""?"ERROR":e.value?"LOADING":n.value?"OK":"EMPTY");return{errorMessage:t,status:i,loadData:o,dataset:r}}),ut=dt("fields",()=>{const e=$t(),t=s.computed(()=>{var o;return((o=e.dataset)==null?void 0:o.fields)??[]}),n=s.computed(()=>t.value.length);function r(o){const i=t.value.find(a=>a.id===o);if(i===void 0)throw new Kn(o);return i}return{all:t,count:n,byId:r}}),je=dt("properties",()=>{const e=ut(),t=$t(),n=s.ref({}),r=s.computed(()=>{var f;return(f=t.dataset)==null?void 0:f.properties}),o=s.computed(()=>{var f;return((f=r==null?void 0:r.value)==null?void 0:f.metadata)??void 0}),i=s.computed(()=>{var f;return((f=r==null?void 0:r.value)==null?void 0:f.title)??"Loading..."}),a=s.computed(()=>{var f;return((f=r==null?void 0:r.value)==null?void 0:f.resultMode)??"filter"}),l=s.computed(()=>{var f,h;return(f=r==null?void 0:r.value)!=null&&f.sortableFields?(h=r==null?void 0:r.value)==null?void 0:h.sortableFields.map(g=>e.byId(g)):[]}),c=s.computed(()=>{var f,h;if((f=r==null?void 0:r.value)!=null&&f.idField)return e.byId((h=r==null?void 0:r.value)==null?void 0:h.idField);throw new Kn("UNDEFINED")});function u(f){n.value=f}return{pages:s.computed(()=>n.value.pages===void 0?[{path:"/about",label:"About",component:"CapeAboutPage"}]:n.value.pages),metadata:o,title:i,idField:c,sortableFields:l,resultMode:a,setOptions:u,options:n}});var He=(e=>(e.Ascending="Ascending",e.Descending="Descending",e))(He||{});function ol(e,t,n,r){var a,l;if(!n||!r)return 0;const o=(a=e[n])==null?void 0:a.value,i=(l=t[n])==null?void 0:l.value;return!o&&!i?0:!o&&i?r===He.Ascending?1:-1:o&&!i||o.toString().localeCompare(i.toString())<0?r===He.Ascending?-1:1:o.toString().localeCompare(i.toString())>0?r===He.Ascending?1:-1:0}const Ge=dt("searchResults",()=>{const e=Rt(),t=je(),n=K(),r=s.computed(()=>t.resultMode==="search"&&!n.hasActive?[]:n.active.reduce((O,W)=>W.filterRecords(O),e.all)),o=s.computed(()=>{let O=r.value;return u.value&&(O=O.sort((W,ee)=>ol(W,ee,d.value,f.value))),O}),i=s.computed(()=>{let O=o.value;return O=h.value?O:O.slice(0,Is.ShortenedRecordCount),O}),a=s.computed(()=>r.value.length),l=s.computed(()=>i.value.length),c=s.computed(()=>l.value===a.value),u=s.computed(()=>t.sortableFields.length>0),d=s.ref(N()),f=s.ref(I()),h=s.ref(!1);function g(){d.value=N(),f.value=I()}function v(O){return Ps(o.value,O)}function U(O){return xs(o.value,O)}function I(){return u.value?He.Ascending:void 0}function N(){return u.value?t.sortableFields[0].id:void 0}return{all:r,totalCount:a,visible:i,visibleCount:l,showAllResults:h,allResultsAreVisible:c,hasSortFields:u,sortFieldId:d,sortDirection:f,reset:g,next:v,previous:U}}),As={template:"#templateCapeHomepageLayout",computed:{...zn(K,["showAdvanced"]),...zn(Ge,{hasMatches:e=>e.totalCount>0})}},il={class:"cape-home-page"},Fs=s.defineComponent({__name:"CapeHomePage",setup(e){return(t,n)=>(s.openBlock(),s.createElementBlock("form",il,[s.createVNode(As)]))}}),Ys={template:"#templateCapeRecordCard",props:["record"]},al={key:0,class:"cape-record-page-record-not-found"},ll={class:"cape-record-page-record-id"},Ls=s.defineComponent({__name:"CapeRecordPage",setup(e){const t=Ra(),n=Rt(),r=s.computed(()=>parseInt(t.params.id)),o=s.computed(()=>{try{return n.byId(r.value)}catch{return}});return(i,a)=>o.value===void 0?(s.openBlock(),s.createElementBlock("div",al,[s.createTextVNode(" The record with Record ID "),s.createElementVNode("span",ll,s.toDisplayString(r.value),1),s.createTextVNode(" does not exist. ")])):(s.openBlock(),s.createBlock(Ys,{key:1,record:o.value},null,8,["record"]))}}),Us=Ca({history:Ci("/"),routes:[{name:"root",path:"/",component:Fs},{name:"record",path:"/record/:id",component:Ls}],linkActiveClass:"active",linkExactActiveClass:"active"}),Ws={template:"#templateCapeNavigation",computed:{...zn(je,["pages"])}},cl={class:"cape-load-error cape-error"},dl=s.createElementVNode("h2",null,"Unable to load data",-1),ul={class:"cape-load-error-message"},js=s.defineComponent({__name:"CapeLoadError",setup(e){const t=$t();return(n,r)=>(s.openBlock(),s.createElementBlock("div",cl,[dl,s.createElementVNode("p",null,[s.createTextVNode(" An error has occurred. The error was: "),s.createElementVNode("span",ul,s.toDisplayString(s.unref(t).errorMessage),1),s.createTextVNode(". ")])]))}});function Hs(e){const t={A:"[AaªÀ-Åà-åĀ-ąǍǎȀ-ȃȦȧᴬᵃḀḁẚẠ-ảₐ℀℁℻⒜Ⓐⓐ㍱-㍴㎀-㎄㎈㎉㎩-㎯㏂㏊㏟㏿Aa]",B:"[BbᴮᵇḂ-ḇℬ⒝Ⓑⓑ㍴㎅-㎇㏃㏈㏔㏝Bb]",C:"[CcÇçĆ-čᶜ℀ℂ℃℅℆ℭⅭⅽ⒞Ⓒⓒ㍶㎈㎉㎝㎠㎤㏄-㏇Cc]",D:"[DdĎďDŽ-džDZ-dzᴰᵈḊ-ḓⅅⅆⅮⅾ⒟Ⓓⓓ㋏㍲㍷-㍹㎗㎭-㎯㏅㏈Dd]",E:"[EeÈ-Ëè-ëĒ-ěȄ-ȇȨȩᴱᵉḘ-ḛẸ-ẽₑ℡ℯℰⅇ⒠Ⓔⓔ㉐㋍㋎Ee]",F:"[FfᶠḞḟ℉ℱ℻⒡Ⓕⓕ㎊-㎌㎙ff-fflFf]",G:"[GgĜ-ģǦǧǴǵᴳᵍḠḡℊ⒢Ⓖⓖ㋌㋍㎇㎍-㎏㎓㎬㏆㏉㏒㏿Gg]",H:"[HhĤĥȞȟʰᴴḢ-ḫẖℋ-ℎ⒣Ⓗⓗ㋌㍱㎐-㎔㏊㏋㏗Hh]",I:"[IiÌ-Ïì-ïĨ-İIJijǏǐȈ-ȋᴵᵢḬḭỈ-ịⁱℐℑℹⅈⅠ-ⅣⅥ-ⅨⅪⅫⅰ-ⅳⅵ-ⅸⅺⅻ⒤Ⓘⓘ㍺㏌㏕fiffiIi]",J:"[JjIJ-ĵLJ-njǰʲᴶⅉ⒥ⒿⓙⱼJj]",K:"[KkĶķǨǩᴷᵏḰ-ḵK⒦Ⓚⓚ㎄㎅㎉㎏㎑㎘㎞㎢㎦㎪㎸㎾㏀㏆㏍-㏏Kk]",L:"[LlĹ-ŀLJ-ljˡᴸḶḷḺ-ḽℒℓ℡Ⅼⅼ⒧Ⓛⓛ㋏㎈㎉㏐-㏓㏕㏖㏿flfflLl]",M:"[MmᴹᵐḾ-ṃ℠™ℳⅯⅿ⒨Ⓜⓜ㍷-㍹㎃㎆㎎㎒㎖㎙-㎨㎫㎳㎷㎹㎽㎿㏁㏂㏎㏐㏔-㏖㏘㏙㏞㏟Mm]",N:"[NnÑñŃ-ʼnNJ-njǸǹᴺṄ-ṋⁿℕ№⒩Ⓝⓝ㎁㎋㎚㎱㎵㎻㏌㏑Nn]",O:"[OoºÒ-Öò-öŌ-őƠơǑǒǪǫȌ-ȏȮȯᴼᵒỌ-ỏₒ℅№ℴ⒪Ⓞⓞ㍵㏇㏒㏖Oo]",P:"[PpᴾᵖṔ-ṗℙ⒫Ⓟⓟ㉐㍱㍶㎀㎊㎩-㎬㎰㎴㎺㏋㏗-㏚Pp]",Q:"[Qqℚ⒬Ⓠⓠ㏃Qq]",R:"[RrŔ-řȐ-ȓʳᴿᵣṘ-ṛṞṟ₨ℛ-ℝ⒭Ⓡⓡ㋍㍴㎭-㎯㏚㏛Rr]",S:"[SsŚ-šſȘșˢṠ-ṣ₨℁℠⒮Ⓢⓢ㎧㎨㎮-㎳㏛㏜stSs]",T:"[TtŢ-ťȚțᵀᵗṪ-ṱẗ℡™⒯Ⓣⓣ㉐㋏㎔㏏ſtstTt]",U:"[UuÙ-Üù-üŨ-ųƯưǓǔȔ-ȗᵁᵘᵤṲ-ṷỤ-ủ℆⒰Ⓤⓤ㍳㍺Uu]",V:"[VvᵛᵥṼ-ṿⅣ-Ⅷⅳ-ⅷ⒱Ⓥⓥⱽ㋎㍵㎴-㎹㏜㏞Vv]",W:"[WwŴŵʷᵂẀ-ẉẘ⒲Ⓦⓦ㎺-㎿㏝Ww]",X:"[XxˣẊ-ẍₓ℻Ⅸ-Ⅻⅸ-ⅻ⒳Ⓧⓧ㏓Xx]",Y:"[YyÝýÿŶ-ŸȲȳʸẎẏẙỲ-ỹ⒴Ⓨⓨ㏉Yy]",Z:"[ZzŹ-žDZ-dzᶻẐ-ẕℤℨ⒵Ⓩⓩ㎐-㎔Zz]"},n=e.replace(/([|()[{.+*?^$\\])/g,"\\$1"),r=function(i){return t[i.toUpperCase()]??i},o=n.replace(/\S/g,r);return new RegExp(o,"g")}class qn{constructor(t,n,r,o){$(this,"id");$(this,"componentId");$(this,"displayPosition");$(this,"display");this.id=t,this.componentId=n,this.displayPosition=r,this.display=o}filterRecords(t){return t.filter(n=>this.matchesRecord(n))}matchesRecord(t){throw new Error("matchesRecord or filterRecords must be overridden!")}}function ft(e){return Array.isArray(e)?e:[e]}class fl extends qn{constructor(n,r,o,i,a,l){super(n,r,o,i);$(this,"term");$(this,"defaultTerm");$(this,"placeholder");this.defaultTerm=a,this.placeholder=l,this.term=this.defaultTerm}reset(){this.term=this.defaultTerm}isDefault(){return this.term===this.defaultTerm}isActive(){return this.term!==""}matchesRecord(n){return this.term===void 0||this.term.trim()===""?!1:this.term.trim().toLowerCase().split(/\s+/).every(o=>{const i=Hs(o);return this.termRegexpMatchesRecord(i,n)})}termRegexpMatchesRecord(n,r){return Object.values(r).some(o=>this.termRegexpMatchesValue(n,o.value))}termRegexpMatchesValue(n,r){return ft(r).some(i=>`${i}`.match(n))}}class tn extends qn{constructor(n,r,o,i,a){super(n,r,o,i);$(this,"field");a.changeFilterMode||(a.changeFilterMode=!0),this.field=a}matchesRecord(n){const r=n[this.field.id].value;return this.matchesValue(r)}}function hl(e,t){if(e===void 0||e==="")return!1;const n=t.trim().toLowerCase().split(/\s+/),r=ft(e);return n.every(o=>{const i=Hs(o);return r.some(a=>`${a}`.match(i))})}function Pt(e){return!(e===""||e===void 0||Array.isArray(e)&&e.length===0)}function nn(e){return!Pt(e)}function Zn(e,t){return e===""||e===void 0?!1:ft(e).find(o=>`${o}`.trim().toLowerCase()===t.trim().toLowerCase())!==void 0}class pl extends tn{constructor(n,r,o,i,a,l,c){super(n,r,o,i,a);$(this,"term");$(this,"defaultTerm");$(this,"mode");$(this,"defaultMode");this.defaultMode=c,this.defaultTerm=l,this.mode=this.defaultMode,this.term=this.defaultTerm}reset(){this.mode=this.defaultMode,this.term=this.defaultTerm}isDefault(){return this.mode===this.defaultMode&&this.term===this.defaultTerm}isActive(){switch(this.mode){case"contains":case"is":return this.term!=="";case"set":case"notSet":return!0}}matchesValue(n){switch(this.mode){case"contains":return hl(n,this.term);case"is":return Zn(n,this.term);case"set":return Pt(n);case"notSet":return nn(n)}}}function Gs(e,t){return e===""||e===void 0?!1:ft(e).find(o=>`${o}`===t)!==void 0}function ml(e,t){return t.find(r=>Gs(e,r))!==void 0}class gl extends tn{constructor(n,r,o,i,a,l,c,u){super(n,r,o,i,a);$(this,"isTerm");$(this,"oneOfTerms");$(this,"mode");$(this,"defaultIsTerm");$(this,"defaultOneOfTerms");$(this,"defaultMode");this.defaultIsTerm=l,this.defaultOneOfTerms=c,this.defaultMode=u,this.mode=this.defaultMode,this.isTerm=this.defaultIsTerm,this.oneOfTerms=this.defaultOneOfTerms}reset(){this.mode=this.defaultMode,this.isTerm=this.defaultIsTerm,this.oneOfTerms=this.defaultOneOfTerms}isDefault(){return this.mode===this.defaultMode&&this.isTerm===this.defaultIsTerm&&this.oneOfTerms.toString()===this.defaultOneOfTerms.toString()}isActive(){switch(this.mode){case"is":return this.isTerm!=="";case"oneOf":return this.oneOfTerms.length>0;case"set":case"notSet":return!0}}matchesValue(n){switch(this.mode){case"oneOf":return ml(n,this.oneOfTerms);case"is":return Gs(n,this.isTerm);case"set":return Pt(n);case"notSet":return nn(n)}}}function _l(e,t,n){return e===""||e===void 0?!1:ft(e).find(i=>i>=t&&i<=n)!==void 0}function Xe(e){if(e!="")return e}function zs(e,t){const n=Xe(e);return n??t}class yl extends tn{constructor(n,r,o,i,a,l,c,u,d){super(n,r,o,i,a);$(this,"isTerm");$(this,"lowerBoundTerm");$(this,"upperBoundTerm");$(this,"defaultIsTerm");$(this,"defaultLowerBound");$(this,"defaultUpperBound");$(this,"mode");$(this,"defaultMode");this.defaultMode=d,this.defaultIsTerm=l,this.defaultLowerBound=c,this.defaultUpperBound=u,this.mode=this.defaultMode,this.isTerm=this.defaultIsTerm,this.lowerBoundTerm=this.defaultLowerBound,this.upperBoundTerm=this.defaultUpperBound}reset(){this.mode=this.defaultMode,this.isTerm=this.defaultIsTerm,this.lowerBoundTerm=this.defaultLowerBound,this.upperBoundTerm=this.defaultUpperBound}isDefault(){switch(this.defaultMode){case"is":return this.mode==this.defaultMode&&Xe(this.isTerm)==this.defaultIsTerm;case"between":return this.mode==this.defaultMode&&Xe(this.lowerBoundTerm)==this.defaultLowerBound&&Xe(this.upperBoundTerm)==this.defaultUpperBound;case"set":case"notSet":return this.mode==this.defaultMode}}isActive(){switch(this.mode){case"is":return Xe(this.isTerm)!==void 0;case"between":return Xe(this.lowerBoundTerm)!==void 0||Xe(this.upperBoundTerm)!==void 0;case"set":case"notSet":return!0}}matchesValue(n){switch(this.mode){case"is":return Zn(n,`${this.isTerm}`);case"between":{const r=zs(this.lowerBoundTerm,Number.NEGATIVE_INFINITY),o=zs(this.upperBoundTerm,Number.POSITIVE_INFINITY);return _l(n,r,o)}case"set":return Pt(n);case"notSet":return nn(n)}}}function wl(e,t,n){return e===""||e===void 0?!1:ft(e).find(i=>(t===void 0||i>=t)&&(n===void 0||i<=n))!==void 0}class Sl extends tn{constructor(n,r,o,i,a,l,c,u,d){super(n,r,o,i,a);$(this,"isTerm");$(this,"lowerBoundTerm");$(this,"upperBoundTerm");$(this,"defaultIsTerm");$(this,"defaultLowerBound");$(this,"defaultUpperBound");$(this,"mode");$(this,"defaultMode");this.defaultMode=d,this.defaultIsTerm=l,this.defaultLowerBound=c,this.defaultUpperBound=u,this.mode=this.defaultMode,this.isTerm=this.defaultIsTerm,this.lowerBoundTerm=this.defaultLowerBound,this.upperBoundTerm=this.defaultUpperBound}reset(){this.mode=this.defaultMode,this.isTerm=this.defaultIsTerm,this.lowerBoundTerm=this.defaultLowerBound,this.upperBoundTerm=this.defaultUpperBound}isDefault(){return this.mode===this.defaultMode&&this.isTerm===this.defaultIsTerm}isActive(){switch(this.mode){case"is":return this.validDateTerm(this.isTerm);case"between":return this.validBoundsTerm(this.lowerBoundTerm)||this.validBoundsTerm(this.upperBoundTerm);case"set":case"notSet":return!0}}validBoundsTerm(n){return n!==void 0&&/^\d{4}(-\d{1,2}(-\d{1,2})?)?$/.test(n)}validDateTerm(n){return n!==void 0&&(this.validDMYTerm(n)||this.validYMDTerm(n))}validDMYTerm(n){return/^\d{1,2}\/\d{1,2}\/\d{4}$/.test(n)}validYMDTerm(n){return/^\d{4}-\d{1,2}-\d{1,2}$/.test(n)}dateParts(n){return n===void 0?[]:this.validBoundsTerm(n)?n.split("-").map(o=>parseInt(o)):[]}termToUpperBound(n){const r=this.dateParts(n);return r.length===0&&r.push(9999),r.length===1&&r.push(99),r.length===2&&r.push(99),this.partsToDateString(r)}termToLowerBound(n){const r=this.dateParts(n);return r.length===0&&r.push(0),r.length===1&&r.push(0),r.length===2&&r.push(0),this.partsToDateString(r)}termToISO(n){if(n===void 0||!this.validDateTerm(n))return;let r;return this.validYMDTerm(n)?r=n.split(/-/):r=n.split(/\//).reverse(),this.partsToDateString(r.map(o=>parseInt(o)))}partsToDateString(n){return n[0].toString().padStart(4,"0")+"-"+n[1].toString().padStart(2,"0")+"-"+n[2].toString().padStart(2,"0")}matchesValue(n){switch(this.mode){case"is":return Zn(n,this.termToISO(this.isTerm)??"");case"between":return wl(n,this.termToLowerBound(this.lowerBoundTerm),this.termToUpperBound(this.upperBoundTerm));case"set":return Pt(n);case"notSet":return nn(n)}}}function kl(){bl(),El(),vl(),Ml()}function bl(){K().clear()}function El(){K().add(new fl("free-text","CapeFilterFreeText",-100,"quick","","free text search"))}function vl(){const e=ut();let t=0;e.all.forEach(n=>{if(n.filterDisplay==="hide")return;const r=n.filterDisplay??"advanced";switch(t+=100,n.type){case"text":Ol(t,n,r);break;case"enum":Dl(t,n,r);break;case"integer":Nl(t,n,r);break;case"date":Tl(t,n,r);break}})}function Ol(e,t,n){K().add(new pl("field-"+t.id,"CapeFilterFieldText",e,n,t,"",t.defaultFilterMode??"contains"))}function Dl(e,t,n){K().add(new gl("field-"+t.id,"CapeFilterFieldEnum",e,n,t,"",[],t.defaultFilterMode??"oneOf"))}function Nl(e,t,n){K().add(new yl("field-"+t.id,"CapeFilterFieldInteger",e,n,t,void 0,void 0,void 0,t.defaultFilterMode??"between"))}function Tl(e,t,n){K().add(new Sl("field-"+t.id,"CapeFilterFieldDate",e,n,t,"","","",t.defaultFilterMode??"between"))}function Ml(){var n;const e=K(),t=je();((n=t==null?void 0:t.options)==null?void 0:n.additionalFilters)!==void 0&&t.options.additionalFilters.forEach(r=>e.add(r))}const Ks=s.defineComponent({__name:"CapeRoot",async setup(e){let t,n;const r=$t();return[t,n]=s.withAsyncContext(()=>r.loadData()),await t,n(),kl(),(o,i)=>(s.openBlock(),s.createElementBlock("div",null,[s.unref(r).status==="ERROR"?(s.openBlock(),s.createBlock(js,{key:0})):s.createCommentVNode("",!0),s.unref(r).status=="OK"?(s.openBlock(),s.createBlock(Ws,{key:1})):s.createCommentVNode("",!0)]))}}),Cl={class:"cape-record-count"},qs=s.defineComponent({__name:"CapeRecordCount",setup(e){const t=Rt();return(n,r)=>(s.openBlock(),s.createElementBlock("span",Cl,s.toDisplayString(s.unref(t).count),1))}}),Vl={__name:"CapeAdvancedSearchToggle",setup(e){const t=K();return(n,r)=>s.withDirectives((s.openBlock(),s.createElementBlock("input",{"data-test":"show-all-filters","onUpdate:modelValue":r[0]||(r[0]=o=>s.unref(t).showAdvanced=o),type:"checkbox",class:"cape-advanced-search-toggle"},null,512)),[[s.vModelCheckbox,s.unref(t).showAdvanced]])}},Rl={class:"cape-filters"},$l=s.defineComponent({__name:"CapeFilters",setup(e){const t=K();return(n,r)=>(s.openBlock(),s.createElementBlock("div",Rl,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(t).forDisplay,o=>(s.openBlock(),s.createBlock(s.resolveDynamicComponent(o.componentId),{key:o,filterId:o.id},null,8,["filterId"]))),128))]))}}),Pl={__name:"CapeFormResetButton",setup(e){const t=K(),n=Ge();function r(){t.reset(),n.reset()}return(o,i)=>(s.openBlock(),s.createElementBlock("button",{"data-test":"new-search-button",onClick:r,type:"button",class:"cape-button cape-reset-button cape-form-reset-button"},[s.renderSlot(o.$slots,"default",{},()=>[s.createTextVNode(" New search ")])]))}},Zs={template:"#templateCapeHeader"},Js=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},xl={},Il={class:"cape-loading"},Bl=[s.createElementVNode("div",{class:"cape-loading-spinner",role:"status"},[s.createElementVNode("span",{class:"cape-loading-spinner-sr-text"},"Loading...")],-1),s.createElementVNode("p",{class:"cape-loading-text"},"Please wait while the data loads.",-1)];function Al(e,t){return s.openBlock(),s.createElementBlock("div",Il,Bl)}const Qs=Js(xl,[["render",Al]]),Fl=function(){var n;const e=je(),t=(n=e==null?void 0:e.options)==null?void 0:n.environment;return t||(console.warn('Cannot identify your environment name. Pass environment name as CapeOptions.environment when instantiating the CapePlugin. Defaulting to "UNKNOWN".'),"UNKNOWN")},Yl={key:0,id:"non-prod-warning","data-test":"non-prod-warning",class:"cape-non-prod-warning cape-warning cape-closeable"},Ll=s.createElementVNode("strong",null,"WARNING",-1),Ul={class:"cape-non-prod-warning-environment"},Wl={key:0,class:"cape-non-prod-warning-instructions","data-test":"env-file-instructions"},jl=s.defineComponent({__name:"CapeNonProdWarning",setup(e){const t=Fl(),n=s.ref(!1),r=s.computed(()=>t!="PROD"&&!n.value),o=s.computed(()=>t==="UNKNOWN"),i=function(){n.value=!0};return(a,l)=>r.value?(s.openBlock(),s.createElementBlock("div",Yl,[Ll,s.createTextVNode(': This is a "'),s.createElementVNode("span",Ul,s.toDisplayString(s.unref(t)),1),s.createTextVNode('" instance of this service. '),o.value?(s.openBlock(),s.createElementBlock("div",Wl," This pane is being displayed because the CAPE environment for this application is not set to 'PROD'. Note: The CAPE environment for this application is passed in the CapeOptions when calling 'createCapeApp(...)' in the /src/main.ts file. ")):s.createCommentVNode("",!0),s.createElementVNode("span",{"aria-label":"Close",role:"button",tabindex:"0",title:"Hide this message",onClick:i,onKeyup:s.withKeys(i,["enter"]),class:"cape-non-prod-warning-close-button cape-close-button"},"X",32)])):s.createCommentVNode("",!0)}}),Xs={template:"#templateCapeSummaryCard",props:["record"]},Hl={key:0,class:"cape-sort-order","data-test":"cape-sort-order"},Gl=["for"],zl={class:"cape-sort-order-controls"},Kl=["id"],ql=["value"],Zl=["id"],Jl=["value"],Ql=["value"],eo=s.defineComponent({__name:"CapeSortOrder",props:{idDistinguisher:{type:String,required:!0}},setup(e){const t=je(),n=Ge(),r=e,o=s.computed(()=>`cape-sort-order-${r.idDistinguisher}`),i=s.computed(()=>`cape-sort-order-direction-${r.idDistinguisher}`);return(a,l)=>s.unref(n).hasSortFields&&s.unref(n).visibleCount>0?(s.openBlock(),s.createElementBlock("div",Hl,[s.createElementVNode("label",{for:o.value},"Order results by: ",8,Gl),s.createElementVNode("div",zl,[s.withDirectives(s.createElementVNode("select",{id:o.value,class:"cape-sort-order-field","onUpdate:modelValue":l[0]||(l[0]=c=>s.unref(n).sortFieldId=c)},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(t).sortableFields,c=>(s.openBlock(),s.createElementBlock("option",{key:c.id,value:c.id},s.toDisplayString(c.label),9,ql))),128))],8,Kl),[[s.vModelSelect,s.unref(n).sortFieldId]]),s.withDirectives(s.createElementVNode("select",{class:"cape-sort-order-direction","onUpdate:modelValue":l[1]||(l[1]=c=>s.unref(n).sortDirection=c),"aria-label":"Sort direction",id:i.value},[s.createElementVNode("option",{value:s.unref(He).Ascending},"Ascending",8,Jl),s.createElementVNode("option",{value:s.unref(He).Descending},"Descending",8,Ql)],8,Zl),[[s.vModelSelect,s.unref(n).sortDirection]])])])):s.createCommentVNode("",!0)}}),Xl={__name:"CapeShowAllResultsToggle",setup(e){const t=Ge();return(n,r)=>s.withDirectives((s.openBlock(),s.createElementBlock("input",{"data-test":"show-all-filters","onUpdate:modelValue":r[0]||(r[0]=o=>s.unref(t).showAllResults=o),type:"checkbox",class:"cape-show-all-results-toggle"},null,512)),[[s.vModelCheckbox,s.unref(t).showAllResults]])}},ec={key:0,class:"cape-results-info"},tc={key:0},nc={key:1},rc={key:1,class:"cape-results-count"},sc=s.defineComponent({__name:"CapeResultsInfo",setup(e){const t=Ge();return(n,r)=>s.unref(t).allResultsAreVisible?(s.openBlock(),s.createElementBlock("div",ec,[s.unref(t).visibleCount==1?(s.openBlock(),s.createElementBlock("div",tc,"Showing 1 matching record.")):(s.openBlock(),s.createElementBlock("div",nc,"Showing all "+s.toDisplayString(s.unref(t).visibleCount)+" matching records.",1))])):(s.openBlock(),s.createElementBlock("div",rc," Showing first "+s.toDisplayString(s.unref(t).visibleCount)+" of "+s.toDisplayString(s.unref(t).totalCount)+" matching records. ",1))}}),oc={class:"cape-results-controls flex justify-between"},ic={class:"flex justify-start"},ac={key:0,class:"cape-show-all-results-toggle switch switch-sm"},lc=["for"],Jn=s.defineComponent({__name:"CapeResultsControls",props:{idDistinguisher:{}},setup(e){const t=e,n=Ge(),r=s.computed(()=>!n.allResultsAreVisible||n.showAllResults),o=s.computed(()=>`cape-show-all-results-toggle-${t.idDistinguisher}`);return(i,a)=>(s.openBlock(),s.createElementBlock("div",oc,[s.createElementVNode("div",ic,[s.createVNode(sc),r.value?(s.openBlock(),s.createElementBlock("div",ac,[s.createVNode(Xl,{class:"cape-results-toggle",id:o.value},null,8,["id"]),s.createElementVNode("label",{for:o.value},"Show All Results",8,lc)])):s.createCommentVNode("",!0)]),s.createVNode(eo,{"id-distinguisher":i.idDistinguisher},null,8,["id-distinguisher"])]))}}),cc={class:"cape-results"},dc={key:0,"data-test":"no-matches",class:"cape-results-no-matches"},uc=s.defineComponent({__name:"CapeResults",setup(e){const t=Ge();return(n,r)=>(s.openBlock(),s.createElementBlock("div",cc,[s.unref(t).totalCount===0?(s.openBlock(),s.createElementBlock("div",dc," No matches ")):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createVNode(Jn,{class:"cape-results-controls-top","id-distinguisher":"top"}),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(t).visible,(o,i)=>(s.openBlock(),s.createBlock(Xs,{key:i,record:o},null,8,["record"]))),128)),s.createVNode(Jn,{class:"cape-results-controls-bottom","id-distinguisher":"bottom"})],64))]))}});//! moment.js
|
|
37
37
|
//! version : 2.30.1
|
|
38
38
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
39
39
|
//! license : MIT
|
|
40
40
|
//! momentjs.com
|
|
41
|
-
var to;function _(){return to.apply(null,arguments)}function
|
|
41
|
+
var to;function _(){return to.apply(null,arguments)}function fc(e){to=e}function _e(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function et(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function B(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Qn(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(B(e,t))return!1;return!0}function ae(e){return e===void 0}function Ve(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function xt(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function no(e,t){var n=[],r,o=e.length;for(r=0;r<o;++r)n.push(t(e[r],r));return n}function ze(e,t){for(var n in t)B(t,n)&&(e[n]=t[n]);return B(t,"toString")&&(e.toString=t.toString),B(t,"valueOf")&&(e.valueOf=t.valueOf),e}function Ee(e,t,n,r){return Co(e,t,n,r,!0).utc()}function hc(){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 M(e){return e._pf==null&&(e._pf=hc()),e._pf}var Xn;Array.prototype.some?Xn=Array.prototype.some:Xn=function(e){var t=Object(this),n=t.length>>>0,r;for(r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};function er(e){var t=null,n=!1,r=e._d&&!isNaN(e._d.getTime());if(r&&(t=M(e),n=Xn.call(t.parsedDateParts,function(o){return o!=null}),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(r=r&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=r;else return r;return e._isValid}function rn(e){var t=Ee(NaN);return e!=null?ze(M(t),e):M(t).userInvalidated=!0,t}var ro=_.momentProperties=[],tr=!1;function nr(e,t){var n,r,o,i=ro.length;if(ae(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),ae(t._i)||(e._i=t._i),ae(t._f)||(e._f=t._f),ae(t._l)||(e._l=t._l),ae(t._strict)||(e._strict=t._strict),ae(t._tzm)||(e._tzm=t._tzm),ae(t._isUTC)||(e._isUTC=t._isUTC),ae(t._offset)||(e._offset=t._offset),ae(t._pf)||(e._pf=M(t)),ae(t._locale)||(e._locale=t._locale),i>0)for(n=0;n<i;n++)r=ro[n],o=t[r],ae(o)||(e[r]=o);return e}function It(e){nr(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),tr===!1&&(tr=!0,_.updateOffset(this),tr=!1)}function ye(e){return e instanceof It||e!=null&&e._isAMomentObject!=null}function so(e){_.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function ue(e,t){var n=!0;return ze(function(){if(_.deprecationHandler!=null&&_.deprecationHandler(null,e),n){var r=[],o,i,a,l=arguments.length;for(i=0;i<l;i++){if(o="",typeof arguments[i]=="object"){o+=`
|
|
42
42
|
[`+i+"] ";for(a in arguments[0])B(arguments[0],a)&&(o+=a+": "+arguments[0][a]+", ");o=o.slice(0,-2)}else o=arguments[i];r.push(o)}so(e+`
|
|
43
43
|
Arguments: `+Array.prototype.slice.call(r).join("")+`
|
|
44
|
-
`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var oo={};function io(e,t){_.deprecationHandler!=null&&_.deprecationHandler(e,t),oo[e]||(so(t),oo[e]=!0)}_.suppressDeprecationWarnings=!1,_.deprecationHandler=null;function ve(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function fc(e){var t,n;for(n in e)B(e,n)&&(t=e[n],ve(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function rr(e,t){var n=ze({},e),r;for(r in t)B(t,r)&&(et(e[r])&&et(t[r])?(n[r]={},ze(n[r],e[r]),ze(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)B(e,r)&&!B(t,r)&&et(e[r])&&(n[r]=ze({},n[r]));return n}function sr(e){e!=null&&this.set(e)}var or;Object.keys?or=Object.keys:or=function(e){var t,n=[];for(t in e)B(e,t)&&n.push(t);return n};var hc={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function pc(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return ve(r)?r.call(t,n):r}function Oe(e,t,n){var r=""+Math.abs(e),o=t-r.length,i=e>=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var ir=/(\[[^\[]*\])|(\\)?([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,sn=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ar={},ht={};function E(e,t,n,r){var o=r;typeof r=="string"&&(o=function(){return this[r]()}),e&&(ht[e]=o),t&&(ht[t[0]]=function(){return Oe(o.apply(this,arguments),t[1],t[2])}),n&&(ht[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function mc(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function gc(e){var t=e.match(ir),n,r;for(n=0,r=t.length;n<r;n++)ht[t[n]]?t[n]=ht[t[n]]:t[n]=mc(t[n]);return function(o){var i="",a;for(a=0;a<r;a++)i+=ve(t[a])?t[a].call(o,e):t[a];return i}}function on(e,t){return e.isValid()?(t=ao(t,e.localeData()),ar[t]=ar[t]||gc(t),ar[t](e)):e.localeData().invalidDate()}function ao(e,t){var n=5;function r(o){return t.longDateFormat(o)||o}for(sn.lastIndex=0;n>=0&&sn.test(e);)e=e.replace(sn,r),sn.lastIndex=0,n-=1;return e}var _c={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 yc(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(ir).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var wc="Invalid date";function Sc(){return this._invalidDate}var kc="%d",bc=/\d{1,2}/;function Ec(e){return this._ordinal.replace("%d",e)}var vc={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 Oc(e,t,n,r){var o=this._relativeTime[n];return ve(o)?o(e,t,n,r):o.replace(/%d/i,e)}function Dc(e,t){var n=this._relativeTime[e>0?"future":"past"];return ve(n)?n(t):n.replace(/%s/i,t)}var lo={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function fe(e){return typeof e=="string"?lo[e]||lo[e.toLowerCase()]:void 0}function lr(e){var t={},n,r;for(r in e)B(e,r)&&(n=fe(r),n&&(t[n]=e[r]));return t}var Nc={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Tc(e){var t=[],n;for(n in e)B(e,n)&&t.push({unit:n,priority:Nc[n]});return t.sort(function(r,o){return r.priority-o.priority}),t}var co=/\d/,ce=/\d\d/,uo=/\d{3}/,cr=/\d{4}/,an=/[+-]?\d{6}/,j=/\d\d?/,fo=/\d\d\d\d?/,ho=/\d\d\d\d\d\d?/,ln=/\d{1,3}/,dr=/\d{1,4}/,cn=/[+-]?\d{1,6}/,pt=/\d+/,dn=/[+-]?\d+/,Mc=/Z|[+-]\d\d:?\d\d/gi,un=/Z|[+-]\d\d(?::?\d\d)?/gi,Cc=/[+-]?\d+(\.\d{1,3})?/,Bt=/[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,mt=/^[1-9]\d?/,ur=/^([1-9]\d|\d)/,fn;fn={};function w(e,t,n){fn[e]=ve(t)?t:function(r,o){return r&&n?n:t}}function Vc(e,t){return B(fn,e)?fn[e](t._strict,t._locale):new RegExp(Rc(e))}function Rc(e){return Re(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,o,i){return n||r||o||i}))}function Re(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function he(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function V(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=he(t)),n}var fr={};function L(e,t){var n,r=t,o;for(typeof e=="string"&&(e=[e]),Ve(t)&&(r=function(i,a){a[t]=V(i)}),o=e.length,n=0;n<o;n++)fr[e[n]]=r}function At(e,t){L(e,function(n,r,o,i){o._w=o._w||{},t(n,o._w,o,i)})}function $c(e,t,n){t!=null&&B(fr,e)&&fr[e](t,n._a,n,e)}function hn(e){return e%4===0&&e%100!==0||e%400===0}var se=0,$e=1,De=2,X=3,we=4,Pe=5,tt=6,Pc=7,xc=8;E("Y",0,0,function(){var e=this.year();return e<=9999?Oe(e,4):"+"+e}),E(0,["YY",2],0,function(){return this.year()%100}),E(0,["YYYY",4],0,"year"),E(0,["YYYYY",5],0,"year"),E(0,["YYYYYY",6,!0],0,"year"),w("Y",dn),w("YY",j,ce),w("YYYY",dr,cr),w("YYYYY",cn,an),w("YYYYYY",cn,an),L(["YYYYY","YYYYYY"],se),L("YYYY",function(e,t){t[se]=e.length===2?_.parseTwoDigitYear(e):V(e)}),L("YY",function(e,t){t[se]=_.parseTwoDigitYear(e)}),L("Y",function(e,t){t[se]=parseInt(e,10)});function Ft(e){return hn(e)?366:365}_.parseTwoDigitYear=function(e){return V(e)+(V(e)>68?1900:2e3)};var po=gt("FullYear",!0);function Ic(){return hn(this.year())}function gt(e,t){return function(n){return n!=null?(mo(this,e,n),_.updateOffset(this,t),this):Yt(this,e)}}function Yt(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function mo(e,t,n){var r,o,i,a,l;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,o=e._isUTC,t){case"Milliseconds":return void(o?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(o?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(o?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(o?r.setUTCHours(n):r.setHours(n));case"Date":return void(o?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}i=n,a=e.month(),l=e.date(),l=l===29&&a===1&&!hn(i)?28:l,o?r.setUTCFullYear(i,a,l):r.setFullYear(i,a,l)}}function Bc(e){return e=fe(e),ve(this[e])?this[e]():this}function Ac(e,t){if(typeof e=="object"){e=lr(e);var n=Tc(e),r,o=n.length;for(r=0;r<o;r++)this[n[r].unit](e[n[r].unit])}else if(e=fe(e),ve(this[e]))return this[e](t);return this}function Fc(e,t){return(e%t+t)%t}var Z;Array.prototype.indexOf?Z=Array.prototype.indexOf:Z=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function hr(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Fc(t,12);return e+=(t-n)/12,n===1?hn(e)?29:28:31-n%7%2}E("M",["MM",2],"Mo",function(){return this.month()+1}),E("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),E("MMMM",0,0,function(e){return this.localeData().months(this,e)}),w("M",j,mt),w("MM",j,ce),w("MMM",function(e,t){return t.monthsShortRegex(e)}),w("MMMM",function(e,t){return t.monthsRegex(e)}),L(["M","MM"],function(e,t){t[$e]=V(e)-1}),L(["MMM","MMMM"],function(e,t,n,r){var o=n._locale.monthsParse(e,r,n._strict);o!=null?t[$e]=o:M(n).invalidMonth=e});var Yc="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),go="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),_o=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Lc=Bt,Uc=Bt;function Wc(e,t){return e?_e(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||_o).test(t)?"format":"standalone"][e.month()]:_e(this._months)?this._months:this._months.standalone}function jc(e,t){return e?_e(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[_o.test(t)?"format":"standalone"][e.month()]:_e(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Hc(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=Ee([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?t==="MMM"?(o=Z.call(this._shortMonthsParse,a),o!==-1?o:null):(o=Z.call(this._longMonthsParse,a),o!==-1?o:null):t==="MMM"?(o=Z.call(this._shortMonthsParse,a),o!==-1?o:(o=Z.call(this._longMonthsParse,a),o!==-1?o:null)):(o=Z.call(this._longMonthsParse,a),o!==-1?o:(o=Z.call(this._shortMonthsParse,a),o!==-1?o:null))}function Gc(e,t,n){var r,o,i;if(this._monthsParseExact)return Hc.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=Ee([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(i="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(n&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function yo(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=V(t);else if(t=e.localeData().monthsParse(t),!Ve(t))return e}var n=t,r=e.date();return r=r<29?r:Math.min(r,hr(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function wo(e){return e!=null?(yo(this,e),_.updateOffset(this,!0),this):Yt(this,"Month")}function zc(){return hr(this.year(),this.month())}function Kc(e){return this._monthsParseExact?(B(this,"_monthsRegex")||So.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(B(this,"_monthsShortRegex")||(this._monthsShortRegex=Lc),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function qc(e){return this._monthsParseExact?(B(this,"_monthsRegex")||So.call(this),e?this._monthsStrictRegex:this._monthsRegex):(B(this,"_monthsRegex")||(this._monthsRegex=Uc),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function So(){function e(c,u){return u.length-c.length}var t=[],n=[],r=[],o,i,a,l;for(o=0;o<12;o++)i=Ee([2e3,o]),a=Re(this.monthsShort(i,"")),l=Re(this.months(i,"")),t.push(a),n.push(l),r.push(l),r.push(a);t.sort(e),n.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Zc(e,t,n,r,o,i,a){var l;return e<100&&e>=0?(l=new Date(e+400,t,n,r,o,i,a),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,n,r,o,i,a),l}function Lt(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function pn(e,t,n){var r=7+t-n,o=(7+Lt(e,0,r).getUTCDay()-t)%7;return-o+r-1}function ko(e,t,n,r,o){var i=(7+n-r)%7,a=pn(e,r,o),l=1+7*(t-1)+i+a,c,u;return l<=0?(c=e-1,u=Ft(c)+l):l>Ft(e)?(c=e+1,u=l-Ft(e)):(c=e,u=l),{year:c,dayOfYear:u}}function Ut(e,t,n){var r=pn(e.year(),t,n),o=Math.floor((e.dayOfYear()-r-1)/7)+1,i,a;return o<1?(a=e.year()-1,i=o+xe(a,t,n)):o>xe(e.year(),t,n)?(i=o-xe(e.year(),t,n),a=e.year()+1):(a=e.year(),i=o),{week:i,year:a}}function xe(e,t,n){var r=pn(e,t,n),o=pn(e+1,t,n);return(Ft(e)-r+o)/7}E("w",["ww",2],"wo","week"),E("W",["WW",2],"Wo","isoWeek"),w("w",j,mt),w("ww",j,ce),w("W",j,mt),w("WW",j,ce),At(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=V(e)});function Jc(e){return Ut(e,this._week.dow,this._week.doy).week}var Qc={dow:0,doy:6};function Xc(){return this._week.dow}function ed(){return this._week.doy}function td(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function nd(e){var t=Ut(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}E("d",0,"do","day"),E("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),E("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),E("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),E("e",0,0,"weekday"),E("E",0,0,"isoWeekday"),w("d",j),w("e",j),w("E",j),w("dd",function(e,t){return t.weekdaysMinRegex(e)}),w("ddd",function(e,t){return t.weekdaysShortRegex(e)}),w("dddd",function(e,t){return t.weekdaysRegex(e)}),At(["dd","ddd","dddd"],function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);o!=null?t.d=o:M(n).invalidWeekday=e}),At(["d","e","E"],function(e,t,n,r){t[r]=V(e)});function rd(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function sd(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function pr(e,t){return e.slice(t,7).concat(e.slice(0,t))}var od="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),bo="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),id="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ad=Bt,ld=Bt,cd=Bt;function dd(e,t){var n=_e(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?pr(n,this._week.dow):e?n[e.day()]:n}function ud(e){return e===!0?pr(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function fd(e){return e===!0?pr(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function hd(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=Ee([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?t==="dddd"?(o=Z.call(this._weekdaysParse,a),o!==-1?o:null):t==="ddd"?(o=Z.call(this._shortWeekdaysParse,a),o!==-1?o:null):(o=Z.call(this._minWeekdaysParse,a),o!==-1?o:null):t==="dddd"?(o=Z.call(this._weekdaysParse,a),o!==-1||(o=Z.call(this._shortWeekdaysParse,a),o!==-1)?o:(o=Z.call(this._minWeekdaysParse,a),o!==-1?o:null)):t==="ddd"?(o=Z.call(this._shortWeekdaysParse,a),o!==-1||(o=Z.call(this._weekdaysParse,a),o!==-1)?o:(o=Z.call(this._minWeekdaysParse,a),o!==-1?o:null)):(o=Z.call(this._minWeekdaysParse,a),o!==-1||(o=Z.call(this._weekdaysParse,a),o!==-1)?o:(o=Z.call(this._shortWeekdaysParse,a),o!==-1?o:null))}function pd(e,t,n){var r,o,i;if(this._weekdaysParseExact)return hd.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=Ee([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function md(e){if(!this.isValid())return e!=null?this:NaN;var t=Yt(this,"Day");return e!=null?(e=rd(e,this.localeData()),this.add(e-t,"d")):t}function gd(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 _d(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=sd(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function yd(e){return this._weekdaysParseExact?(B(this,"_weekdaysRegex")||mr.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(B(this,"_weekdaysRegex")||(this._weekdaysRegex=ad),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function wd(e){return this._weekdaysParseExact?(B(this,"_weekdaysRegex")||mr.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(B(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ld),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Sd(e){return this._weekdaysParseExact?(B(this,"_weekdaysRegex")||mr.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(B(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=cd),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function mr(){function e(d,f){return f.length-d.length}var t=[],n=[],r=[],o=[],i,a,l,c,u;for(i=0;i<7;i++)a=Ee([2e3,1]).day(i),l=Re(this.weekdaysMin(a,"")),c=Re(this.weekdaysShort(a,"")),u=Re(this.weekdays(a,"")),t.push(l),n.push(c),r.push(u),o.push(l),o.push(c),o.push(u);t.sort(e),n.sort(e),r.sort(e),o.sort(e),this._weekdaysRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function gr(){return this.hours()%12||12}function kd(){return this.hours()||24}E("H",["HH",2],0,"hour"),E("h",["hh",2],0,gr),E("k",["kk",2],0,kd),E("hmm",0,0,function(){return""+gr.apply(this)+Oe(this.minutes(),2)}),E("hmmss",0,0,function(){return""+gr.apply(this)+Oe(this.minutes(),2)+Oe(this.seconds(),2)}),E("Hmm",0,0,function(){return""+this.hours()+Oe(this.minutes(),2)}),E("Hmmss",0,0,function(){return""+this.hours()+Oe(this.minutes(),2)+Oe(this.seconds(),2)});function Eo(e,t){E(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Eo("a",!0),Eo("A",!1);function vo(e,t){return t._meridiemParse}w("a",vo),w("A",vo),w("H",j,ur),w("h",j,mt),w("k",j,mt),w("HH",j,ce),w("hh",j,ce),w("kk",j,ce),w("hmm",fo),w("hmmss",ho),w("Hmm",fo),w("Hmmss",ho),L(["H","HH"],X),L(["k","kk"],function(e,t,n){var r=V(e);t[X]=r===24?0:r}),L(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),L(["h","hh"],function(e,t,n){t[X]=V(e),M(n).bigHour=!0}),L("hmm",function(e,t,n){var r=e.length-2;t[X]=V(e.substr(0,r)),t[we]=V(e.substr(r)),M(n).bigHour=!0}),L("hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[X]=V(e.substr(0,r)),t[we]=V(e.substr(r,2)),t[Pe]=V(e.substr(o)),M(n).bigHour=!0}),L("Hmm",function(e,t,n){var r=e.length-2;t[X]=V(e.substr(0,r)),t[we]=V(e.substr(r))}),L("Hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[X]=V(e.substr(0,r)),t[we]=V(e.substr(r,2)),t[Pe]=V(e.substr(o))});function bd(e){return(e+"").toLowerCase().charAt(0)==="p"}var Ed=/[ap]\.?m?\.?/i,vd=gt("Hours",!0);function Od(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var Oo={calendar:hc,longDateFormat:_c,invalidDate:wc,ordinal:kc,dayOfMonthOrdinalParse:bc,relativeTime:vc,months:Yc,monthsShort:go,week:Qc,weekdays:od,weekdaysMin:id,weekdaysShort:bo,meridiemParse:Ed},z={},Wt={},jt;function Dd(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function Do(e){return e&&e.toLowerCase().replace("_","-")}function Nd(e){for(var t=0,n,r,o,i;t<e.length;){for(i=Do(e[t]).split("-"),n=i.length,r=Do(e[t+1]),r=r?r.split("-"):null;n>0;){if(o=mn(i.slice(0,n).join("-")),o)return o;if(r&&r.length>=n&&Dd(i,r)>=n-1)break;n--}t++}return jt}function Td(e){return!!(e&&e.match("^[^/\\\\]*$"))}function mn(e){var t=null,n;if(z[e]===void 0&&typeof module<"u"&&module&&module.exports&&Td(e))try{t=jt._abbr,n=require,n("./locale/"+e),Ke(t)}catch{z[e]=null}return z[e]}function Ke(e,t){var n;return e&&(ae(t)?n=Ie(e):n=_r(e,t),n?jt=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),jt._abbr}function _r(e,t){if(t!==null){var n,r=Oo;if(t.abbr=e,z[e]!=null)io("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."),r=z[e]._config;else if(t.parentLocale!=null)if(z[t.parentLocale]!=null)r=z[t.parentLocale]._config;else if(n=mn(t.parentLocale),n!=null)r=n._config;else return Wt[t.parentLocale]||(Wt[t.parentLocale]=[]),Wt[t.parentLocale].push({name:e,config:t}),null;return z[e]=new sr(rr(r,t)),Wt[e]&&Wt[e].forEach(function(o){_r(o.name,o.config)}),Ke(e),z[e]}else return delete z[e],null}function Md(e,t){if(t!=null){var n,r,o=Oo;z[e]!=null&&z[e].parentLocale!=null?z[e].set(rr(z[e]._config,t)):(r=mn(e),r!=null&&(o=r._config),t=rr(o,t),r==null&&(t.abbr=e),n=new sr(t),n.parentLocale=z[e],z[e]=n),Ke(e)}else z[e]!=null&&(z[e].parentLocale!=null?(z[e]=z[e].parentLocale,e===Ke()&&Ke(e)):z[e]!=null&&delete z[e]);return z[e]}function Ie(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return jt;if(!_e(e)){if(t=mn(e),t)return t;e=[e]}return Nd(e)}function Cd(){return or(z)}function yr(e){var t,n=e._a;return n&&M(e).overflow===-2&&(t=n[$e]<0||n[$e]>11?$e:n[De]<1||n[De]>hr(n[se],n[$e])?De:n[X]<0||n[X]>24||n[X]===24&&(n[we]!==0||n[Pe]!==0||n[tt]!==0)?X:n[we]<0||n[we]>59?we:n[Pe]<0||n[Pe]>59?Pe:n[tt]<0||n[tt]>999?tt:-1,M(e)._overflowDayOfYear&&(t<se||t>De)&&(t=De),M(e)._overflowWeeks&&t===-1&&(t=Pc),M(e)._overflowWeekday&&t===-1&&(t=xc),M(e).overflow=t),e}var Vd=/^\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)?)?$/,Rd=/^\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)?)?$/,$d=/Z|[+-]\d\d(?::?\d\d)?/,gn=[["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]],wr=[["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/]],Pd=/^\/?Date\((-?\d+)/i,xd=/^(?:(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}))$/,Id={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 No(e){var t,n,r=e._i,o=Vd.exec(r)||Rd.exec(r),i,a,l,c,u=gn.length,d=wr.length;if(o){for(M(e).iso=!0,t=0,n=u;t<n;t++)if(gn[t][1].exec(o[1])){a=gn[t][0],i=gn[t][2]!==!1;break}if(a==null){e._isValid=!1;return}if(o[3]){for(t=0,n=d;t<n;t++)if(wr[t][1].exec(o[3])){l=(o[2]||" ")+wr[t][0];break}if(l==null){e._isValid=!1;return}}if(!i&&l!=null){e._isValid=!1;return}if(o[4])if($d.exec(o[4]))c="Z";else{e._isValid=!1;return}e._f=a+(l||"")+(c||""),kr(e)}else e._isValid=!1}function Bd(e,t,n,r,o,i){var a=[Ad(e),go.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(o,10)];return i&&a.push(parseInt(i,10)),a}function Ad(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Fd(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Yd(e,t,n){if(e){var r=bo.indexOf(e),o=new Date(t[0],t[1],t[2]).getDay();if(r!==o)return M(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function Ld(e,t,n){if(e)return Id[e];if(t)return 0;var r=parseInt(n,10),o=r%100,i=(r-o)/100;return i*60+o}function To(e){var t=xd.exec(Fd(e._i)),n;if(t){if(n=Bd(t[4],t[3],t[2],t[5],t[6],t[7]),!Yd(t[1],n,e))return;e._a=n,e._tzm=Ld(t[8],t[9],t[10]),e._d=Lt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),M(e).rfc2822=!0}else e._isValid=!1}function Ud(e){var t=Pd.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(No(e),e._isValid===!1)delete e._isValid;else return;if(To(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:_.createFromInputFallback(e)}_.createFromInputFallback=ue("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 _t(e,t,n){return e??t??n}function Wd(e){var t=new Date(_.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Sr(e){var t,n,r=[],o,i,a;if(!e._d){for(o=Wd(e),e._w&&e._a[De]==null&&e._a[$e]==null&&jd(e),e._dayOfYear!=null&&(a=_t(e._a[se],o[se]),(e._dayOfYear>Ft(a)||e._dayOfYear===0)&&(M(e)._overflowDayOfYear=!0),n=Lt(a,0,e._dayOfYear),e._a[$e]=n.getUTCMonth(),e._a[De]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=o[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[X]===24&&e._a[we]===0&&e._a[Pe]===0&&e._a[tt]===0&&(e._nextDay=!0,e._a[X]=0),e._d=(e._useUTC?Lt:Zc).apply(null,r),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[X]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==i&&(M(e).weekdayMismatch=!0)}}function jd(e){var t,n,r,o,i,a,l,c,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,a=4,n=_t(t.GG,e._a[se],Ut(H(),1,4).year),r=_t(t.W,1),o=_t(t.E,1),(o<1||o>7)&&(c=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,u=Ut(H(),i,a),n=_t(t.gg,e._a[se],u.year),r=_t(t.w,u.week),t.d!=null?(o=t.d,(o<0||o>6)&&(c=!0)):t.e!=null?(o=t.e+i,(t.e<0||t.e>6)&&(c=!0)):o=i),r<1||r>xe(n,i,a)?M(e)._overflowWeeks=!0:c!=null?M(e)._overflowWeekday=!0:(l=ko(n,r,o,i,a),e._a[se]=l.year,e._dayOfYear=l.dayOfYear)}_.ISO_8601=function(){},_.RFC_2822=function(){};function kr(e){if(e._f===_.ISO_8601){No(e);return}if(e._f===_.RFC_2822){To(e);return}e._a=[],M(e).empty=!0;var t=""+e._i,n,r,o,i,a,l=t.length,c=0,u,d;for(o=ao(e._f,e._locale).match(ir)||[],d=o.length,n=0;n<d;n++)i=o[n],r=(t.match(Vc(i,e))||[])[0],r&&(a=t.substr(0,t.indexOf(r)),a.length>0&&M(e).unusedInput.push(a),t=t.slice(t.indexOf(r)+r.length),c+=r.length),ht[i]?(r?M(e).empty=!1:M(e).unusedTokens.push(i),$c(i,r,e)):e._strict&&!r&&M(e).unusedTokens.push(i);M(e).charsLeftOver=l-c,t.length>0&&M(e).unusedInput.push(t),e._a[X]<=12&&M(e).bigHour===!0&&e._a[X]>0&&(M(e).bigHour=void 0),M(e).parsedDateParts=e._a.slice(0),M(e).meridiem=e._meridiem,e._a[X]=Hd(e._locale,e._a[X],e._meridiem),u=M(e).era,u!==null&&(e._a[se]=e._locale.erasConvertYear(u,e._a[se])),Sr(e),yr(e)}function Hd(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function Gd(e){var t,n,r,o,i,a,l=!1,c=e._f.length;if(c===0){M(e).invalidFormat=!0,e._d=new Date(NaN);return}for(o=0;o<c;o++)i=0,a=!1,t=nr({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[o],kr(t),er(t)&&(a=!0),i+=M(t).charsLeftOver,i+=M(t).unusedTokens.length*10,M(t).score=i,l?i<r&&(r=i,n=t):(r==null||i<r||a)&&(r=i,n=t,a&&(l=!0));ze(e,n||t)}function zd(e){if(!e._d){var t=lr(e._i),n=t.day===void 0?t.date:t.day;e._a=no([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),Sr(e)}}function Kd(e){var t=new It(yr(Mo(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Mo(e){var t=e._i,n=e._f;return e._locale=e._locale||Ie(e._l),t===null||n===void 0&&t===""?rn({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),ye(t)?new It(yr(t)):(xt(t)?e._d=t:_e(n)?Gd(e):n?kr(e):qd(e),er(e)||(e._d=null),e))}function qd(e){var t=e._i;ae(t)?e._d=new Date(_.now()):xt(t)?e._d=new Date(t.valueOf()):typeof t=="string"?Ud(e):_e(t)?(e._a=no(t.slice(0),function(n){return parseInt(n,10)}),Sr(e)):et(t)?zd(e):Ve(t)?e._d=new Date(t):_.createFromInputFallback(e)}function Co(e,t,n,r,o){var i={};return(t===!0||t===!1)&&(r=t,t=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(et(e)&&Qn(e)||_e(e)&&e.length===0)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=o,i._l=n,i._i=e,i._f=t,i._strict=r,Kd(i)}function H(e,t,n,r){return Co(e,t,n,r,!1)}var Zd=ue("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=H.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:rn()}),Jd=ue("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=H.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:rn()});function Vo(e,t){var n,r;if(t.length===1&&_e(t[0])&&(t=t[0]),!t.length)return H();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}function Qd(){var e=[].slice.call(arguments,0);return Vo("isBefore",e)}function Xd(){var e=[].slice.call(arguments,0);return Vo("isAfter",e)}var eu=function(){return Date.now?Date.now():+new Date},Ht=["year","quarter","month","week","day","hour","minute","second","millisecond"];function tu(e){var t,n=!1,r,o=Ht.length;for(t in e)if(B(e,t)&&!(Z.call(Ht,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<o;++r)if(e[Ht[r]]){if(n)return!1;parseFloat(e[Ht[r]])!==V(e[Ht[r]])&&(n=!0)}return!0}function nu(){return this._isValid}function ru(){return Se(NaN)}function _n(e){var t=lr(e),n=t.year||0,r=t.quarter||0,o=t.month||0,i=t.week||t.isoWeek||0,a=t.day||0,l=t.hour||0,c=t.minute||0,u=t.second||0,d=t.millisecond||0;this._isValid=tu(t),this._milliseconds=+d+u*1e3+c*6e4+l*1e3*60*60,this._days=+a+i*7,this._months=+o+r*3+n*12,this._data={},this._locale=Ie(),this._bubble()}function yn(e){return e instanceof _n}function br(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function su(e,t,n){var r=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),i=0,a;for(a=0;a<r;a++)(n&&e[a]!==t[a]||!n&&V(e[a])!==V(t[a]))&&i++;return i+o}function Ro(e,t){E(e,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+Oe(~~(n/60),2)+t+Oe(~~n%60,2)})}Ro("Z",":"),Ro("ZZ",""),w("Z",un),w("ZZ",un),L(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Er(un,e)});var ou=/([\+\-]|\d\d)/gi;function Er(e,t){var n=(t||"").match(e),r,o,i;return n===null?null:(r=n[n.length-1]||[],o=(r+"").match(ou)||["-",0,0],i=+(o[1]*60)+V(o[2]),i===0?0:o[0]==="+"?i:-i)}function vr(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(ye(e)||xt(e)?e.valueOf():H(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),_.updateOffset(n,!1),n):H(e).local()}function Or(e){return-Math.round(e._d.getTimezoneOffset())}_.updateOffset=function(){};function iu(e,t,n){var r=this._offset||0,o;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=Er(un,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(o=Or(this)),this._offset=e,this._isUTC=!0,o!=null&&this.add(o,"m"),r!==e&&(!t||this._changeInProgress?Io(this,Se(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,_.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:Or(this)}function au(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function lu(e){return this.utcOffset(0,e)}function cu(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Or(this),"m")),this}function du(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Er(Mc,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function uu(e){return this.isValid()?(e=e?H(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function fu(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function hu(){if(!ae(this._isDSTShifted))return this._isDSTShifted;var e={},t;return nr(e,this),e=Mo(e),e._a?(t=e._isUTC?Ee(e._a):H(e._a),this._isDSTShifted=this.isValid()&&su(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function pu(){return this.isValid()?!this._isUTC:!1}function mu(){return this.isValid()?this._isUTC:!1}function $o(){return this.isValid()?this._isUTC&&this._offset===0:!1}var gu=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,_u=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Se(e,t){var n=e,r=null,o,i,a;return yn(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:Ve(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=gu.exec(e))?(o=r[1]==="-"?-1:1,n={y:0,d:V(r[De])*o,h:V(r[X])*o,m:V(r[we])*o,s:V(r[Pe])*o,ms:V(br(r[tt]*1e3))*o}):(r=_u.exec(e))?(o=r[1]==="-"?-1:1,n={y:nt(r[2],o),M:nt(r[3],o),w:nt(r[4],o),d:nt(r[5],o),h:nt(r[6],o),m:nt(r[7],o),s:nt(r[8],o)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(a=yu(H(n.from),H(n.to)),n={},n.ms=a.milliseconds,n.M=a.months),i=new _n(n),yn(e)&&B(e,"_locale")&&(i._locale=e._locale),yn(e)&&B(e,"_isValid")&&(i._isValid=e._isValid),i}Se.fn=_n.prototype,Se.invalid=ru;function nt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Po(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function yu(e,t){var n;return e.isValid()&&t.isValid()?(t=vr(t,e),e.isBefore(t)?n=Po(e,t):(n=Po(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function xo(e,t){return function(n,r){var o,i;return r!==null&&!isNaN(+r)&&(io(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=n,n=r,r=i),o=Se(n,r),Io(this,o,e),this}}function Io(e,t,n,r){var o=t._milliseconds,i=br(t._days),a=br(t._months);e.isValid()&&(r=r??!0,a&&yo(e,Yt(e,"Month")+a*n),i&&mo(e,"Date",Yt(e,"Date")+i*n),o&&e._d.setTime(e._d.valueOf()+o*n),r&&_.updateOffset(e,i||a))}var wu=xo(1,"add"),Su=xo(-1,"subtract");function Bo(e){return typeof e=="string"||e instanceof String}function ku(e){return ye(e)||xt(e)||Bo(e)||Ve(e)||Eu(e)||bu(e)||e===null||e===void 0}function bu(e){var t=et(e)&&!Qn(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o,i,a=r.length;for(o=0;o<a;o+=1)i=r[o],n=n||B(e,i);return t&&n}function Eu(e){var t=_e(e),n=!1;return t&&(n=e.filter(function(r){return!Ve(r)&&Bo(e)}).length===0),t&&n}function vu(e){var t=et(e)&&!Qn(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],o,i;for(o=0;o<r.length;o+=1)i=r[o],n=n||B(e,i);return t&&n}function Ou(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Du(e,t){arguments.length===1&&(arguments[0]?ku(arguments[0])?(e=arguments[0],t=void 0):vu(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||H(),r=vr(n,this).startOf("day"),o=_.calendarFormat(this,r)||"sameElse",i=t&&(ve(t[o])?t[o].call(this,n):t[o]);return this.format(i||this.localeData().calendar(o,this,H(n)))}function Nu(){return new It(this)}function Tu(e,t){var n=ye(e)?e:H(e);return this.isValid()&&n.isValid()?(t=fe(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function Mu(e,t){var n=ye(e)?e:H(e);return this.isValid()&&n.isValid()?(t=fe(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function Cu(e,t,n,r){var o=ye(e)?e:H(e),i=ye(t)?t:H(t);return this.isValid()&&o.isValid()&&i.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(o,n):!this.isBefore(o,n))&&(r[1]===")"?this.isBefore(i,n):!this.isAfter(i,n))):!1}function Vu(e,t){var n=ye(e)?e:H(e),r;return this.isValid()&&n.isValid()?(t=fe(t)||"millisecond",t==="millisecond"?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function Ru(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function $u(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Pu(e,t,n){var r,o,i;if(!this.isValid())return NaN;if(r=vr(e,this),!r.isValid())return NaN;switch(o=(r.utcOffset()-this.utcOffset())*6e4,t=fe(t),t){case"year":i=wn(this,r)/12;break;case"month":i=wn(this,r);break;case"quarter":i=wn(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-o)/864e5;break;case"week":i=(this-r-o)/6048e5;break;default:i=this-r}return n?i:he(i)}function wn(e,t){if(e.date()<t.date())return-wn(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months"),o,i;return t-r<0?(o=e.clone().add(n-1,"months"),i=(t-r)/(r-o)):(o=e.clone().add(n+1,"months"),i=(t-r)/(o-r)),-(n+i)||0}_.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",_.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function xu(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Iu(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?on(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ve(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",on(n,"Z")):on(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Bu(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,o,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(n+r+o+i)}function Au(e){e||(e=this.isUtc()?_.defaultFormatUtc:_.defaultFormat);var t=on(this,e);return this.localeData().postformat(t)}function Fu(e,t){return this.isValid()&&(ye(e)&&e.isValid()||H(e).isValid())?Se({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Yu(e){return this.from(H(),e)}function Lu(e,t){return this.isValid()&&(ye(e)&&e.isValid()||H(e).isValid())?Se({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Uu(e){return this.to(H(),e)}function Ao(e){var t;return e===void 0?this._locale._abbr:(t=Ie(e),t!=null&&(this._locale=t),this)}var Fo=ue("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 Yo(){return this._locale}var Sn=1e3,yt=60*Sn,kn=60*yt,Lo=(365*400+97)*24*kn;function wt(e,t){return(e%t+t)%t}function Uo(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-Lo:new Date(e,t,n).valueOf()}function Wo(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-Lo:Date.UTC(e,t,n)}function Wu(e){var t,n;if(e=fe(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Wo:Uo,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=wt(t+(this._isUTC?0:this.utcOffset()*yt),kn);break;case"minute":t=this._d.valueOf(),t-=wt(t,yt);break;case"second":t=this._d.valueOf(),t-=wt(t,Sn);break}return this._d.setTime(t),_.updateOffset(this,!0),this}function ju(e){var t,n;if(e=fe(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Wo:Uo,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=kn-wt(t+(this._isUTC?0:this.utcOffset()*yt),kn)-1;break;case"minute":t=this._d.valueOf(),t+=yt-wt(t,yt)-1;break;case"second":t=this._d.valueOf(),t+=Sn-wt(t,Sn)-1;break}return this._d.setTime(t),_.updateOffset(this,!0),this}function Hu(){return this._d.valueOf()-(this._offset||0)*6e4}function Gu(){return Math.floor(this.valueOf()/1e3)}function zu(){return new Date(this.valueOf())}function Ku(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function qu(){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 Zu(){return this.isValid()?this.toISOString():null}function Ju(){return er(this)}function Qu(){return ze({},M(this))}function Xu(){return M(this).overflow}function ef(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}E("N",0,0,"eraAbbr"),E("NN",0,0,"eraAbbr"),E("NNN",0,0,"eraAbbr"),E("NNNN",0,0,"eraName"),E("NNNNN",0,0,"eraNarrow"),E("y",["y",1],"yo","eraYear"),E("y",["yy",2],0,"eraYear"),E("y",["yyy",3],0,"eraYear"),E("y",["yyyy",4],0,"eraYear"),w("N",Dr),w("NN",Dr),w("NNN",Dr),w("NNNN",ff),w("NNNNN",hf),L(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?M(n).era=o:M(n).invalidEra=e}),w("y",pt),w("yy",pt),w("yyy",pt),w("yyyy",pt),w("yo",pf),L(["y","yy","yyy","yyyy"],se),L(["yo"],function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[se]=n._locale.eraYearOrdinalParse(e,o):t[se]=parseInt(e,10)});function tf(e,t){var n,r,o,i=this._eras||Ie("en")._eras;for(n=0,r=i.length;n<r;++n){switch(typeof i[n].since){case"string":o=_(i[n].since).startOf("day"),i[n].since=o.valueOf();break}switch(typeof i[n].until){case"undefined":i[n].until=1/0;break;case"string":o=_(i[n].until).startOf("day").valueOf(),i[n].until=o.valueOf();break}}return i}function nf(e,t,n){var r,o,i=this.eras(),a,l,c;for(e=e.toUpperCase(),r=0,o=i.length;r<o;++r)if(a=i[r].name.toUpperCase(),l=i[r].abbr.toUpperCase(),c=i[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(l===e)return i[r];break;case"NNNN":if(a===e)return i[r];break;case"NNNNN":if(c===e)return i[r];break}else if([a,l,c].indexOf(e)>=0)return i[r]}function rf(e,t){var n=e.since<=e.until?1:-1;return t===void 0?_(e.since).year():_(e.since).year()+(t-e.offset)*n}function sf(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].name;return""}function of(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].narrow;return""}function af(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].abbr;return""}function lf(){var e,t,n,r,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=o[e].since<=o[e].until?1:-1,r=this.clone().startOf("day").valueOf(),o[e].since<=r&&r<=o[e].until||o[e].until<=r&&r<=o[e].since)return(this.year()-_(o[e].since).year())*n+o[e].offset;return this.year()}function cf(e){return B(this,"_erasNameRegex")||Nr.call(this),e?this._erasNameRegex:this._erasRegex}function df(e){return B(this,"_erasAbbrRegex")||Nr.call(this),e?this._erasAbbrRegex:this._erasRegex}function uf(e){return B(this,"_erasNarrowRegex")||Nr.call(this),e?this._erasNarrowRegex:this._erasRegex}function Dr(e,t){return t.erasAbbrRegex(e)}function ff(e,t){return t.erasNameRegex(e)}function hf(e,t){return t.erasNarrowRegex(e)}function pf(e,t){return t._eraYearOrdinalRegex||pt}function Nr(){var e=[],t=[],n=[],r=[],o,i,a,l,c,u=this.eras();for(o=0,i=u.length;o<i;++o)a=Re(u[o].name),l=Re(u[o].abbr),c=Re(u[o].narrow),t.push(a),e.push(l),n.push(c),r.push(a),r.push(l),r.push(c);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}E(0,["gg",2],0,function(){return this.weekYear()%100}),E(0,["GG",2],0,function(){return this.isoWeekYear()%100});function bn(e,t){E(0,[e,e.length],0,t)}bn("gggg","weekYear"),bn("ggggg","weekYear"),bn("GGGG","isoWeekYear"),bn("GGGGG","isoWeekYear"),w("G",dn),w("g",dn),w("GG",j,ce),w("gg",j,ce),w("GGGG",dr,cr),w("gggg",dr,cr),w("GGGGG",cn,an),w("ggggg",cn,an),At(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=V(e)}),At(["gg","GG"],function(e,t,n,r){t[r]=_.parseTwoDigitYear(e)});function mf(e){return jo.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function gf(e){return jo.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function _f(){return xe(this.year(),1,4)}function yf(){return xe(this.isoWeekYear(),1,4)}function wf(){var e=this.localeData()._week;return xe(this.year(),e.dow,e.doy)}function Sf(){var e=this.localeData()._week;return xe(this.weekYear(),e.dow,e.doy)}function jo(e,t,n,r,o){var i;return e==null?Ut(this,r,o).year:(i=xe(e,r,o),t>i&&(t=i),kf.call(this,e,t,n,r,o))}function kf(e,t,n,r,o){var i=ko(e,t,n,r,o),a=Lt(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}E("Q",0,"Qo","quarter"),w("Q",co),L("Q",function(e,t){t[$e]=(V(e)-1)*3});function bf(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}E("D",["DD",2],"Do","date"),w("D",j,mt),w("DD",j,ce),w("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),L(["D","DD"],De),L("Do",function(e,t){t[De]=V(e.match(j)[0])});var Ho=gt("Date",!0);E("DDD",["DDDD",3],"DDDo","dayOfYear"),w("DDD",ln),w("DDDD",uo),L(["DDD","DDDD"],function(e,t,n){n._dayOfYear=V(e)});function Ef(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}E("m",["mm",2],0,"minute"),w("m",j,ur),w("mm",j,ce),L(["m","mm"],we);var vf=gt("Minutes",!1);E("s",["ss",2],0,"second"),w("s",j,ur),w("ss",j,ce),L(["s","ss"],Pe);var Of=gt("Seconds",!1);E("S",0,0,function(){return~~(this.millisecond()/100)}),E(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),E(0,["SSS",3],0,"millisecond"),E(0,["SSSS",4],0,function(){return this.millisecond()*10}),E(0,["SSSSS",5],0,function(){return this.millisecond()*100}),E(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),E(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),E(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),E(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),w("S",ln,co),w("SS",ln,ce),w("SSS",ln,uo);var qe,Go;for(qe="SSSS";qe.length<=9;qe+="S")w(qe,pt);function Df(e,t){t[tt]=V(("0."+e)*1e3)}for(qe="S";qe.length<=9;qe+="S")L(qe,Df);Go=gt("Milliseconds",!1),E("z",0,0,"zoneAbbr"),E("zz",0,0,"zoneName");function Nf(){return this._isUTC?"UTC":""}function Tf(){return this._isUTC?"Coordinated Universal Time":""}var m=It.prototype;m.add=wu,m.calendar=Du,m.clone=Nu,m.diff=Pu,m.endOf=ju,m.format=Au,m.from=Fu,m.fromNow=Yu,m.to=Lu,m.toNow=Uu,m.get=Bc,m.invalidAt=Xu,m.isAfter=Tu,m.isBefore=Mu,m.isBetween=Cu,m.isSame=Vu,m.isSameOrAfter=Ru,m.isSameOrBefore=$u,m.isValid=Ju,m.lang=Fo,m.locale=Ao,m.localeData=Yo,m.max=Jd,m.min=Zd,m.parsingFlags=Qu,m.set=Ac,m.startOf=Wu,m.subtract=Su,m.toArray=Ku,m.toObject=qu,m.toDate=zu,m.toISOString=Iu,m.inspect=Bu,typeof Symbol<"u"&&Symbol.for!=null&&(m[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),m.toJSON=Zu,m.toString=xu,m.unix=Gu,m.valueOf=Hu,m.creationData=ef,m.eraName=sf,m.eraNarrow=of,m.eraAbbr=af,m.eraYear=lf,m.year=po,m.isLeapYear=Ic,m.weekYear=mf,m.isoWeekYear=gf,m.quarter=m.quarters=bf,m.month=wo,m.daysInMonth=zc,m.week=m.weeks=td,m.isoWeek=m.isoWeeks=nd,m.weeksInYear=wf,m.weeksInWeekYear=Sf,m.isoWeeksInYear=_f,m.isoWeeksInISOWeekYear=yf,m.date=Ho,m.day=m.days=md,m.weekday=gd,m.isoWeekday=_d,m.dayOfYear=Ef,m.hour=m.hours=vd,m.minute=m.minutes=vf,m.second=m.seconds=Of,m.millisecond=m.milliseconds=Go,m.utcOffset=iu,m.utc=lu,m.local=cu,m.parseZone=du,m.hasAlignedHourOffset=uu,m.isDST=fu,m.isLocal=pu,m.isUtcOffset=mu,m.isUtc=$o,m.isUTC=$o,m.zoneAbbr=Nf,m.zoneName=Tf,m.dates=ue("dates accessor is deprecated. Use date instead.",Ho),m.months=ue("months accessor is deprecated. Use month instead",wo),m.years=ue("years accessor is deprecated. Use year instead",po),m.zone=ue("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",au),m.isDSTShifted=ue("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",hu);function Mf(e){return H(e*1e3)}function Cf(){return H.apply(null,arguments).parseZone()}function zo(e){return e}var A=sr.prototype;A.calendar=pc,A.longDateFormat=yc,A.invalidDate=Sc,A.ordinal=Ec,A.preparse=zo,A.postformat=zo,A.relativeTime=Oc,A.pastFuture=Dc,A.set=fc,A.eras=tf,A.erasParse=nf,A.erasConvertYear=rf,A.erasAbbrRegex=df,A.erasNameRegex=cf,A.erasNarrowRegex=uf,A.months=Wc,A.monthsShort=jc,A.monthsParse=Gc,A.monthsRegex=qc,A.monthsShortRegex=Kc,A.week=Jc,A.firstDayOfYear=ed,A.firstDayOfWeek=Xc,A.weekdays=dd,A.weekdaysMin=fd,A.weekdaysShort=ud,A.weekdaysParse=pd,A.weekdaysRegex=yd,A.weekdaysShortRegex=wd,A.weekdaysMinRegex=Sd,A.isPM=bd,A.meridiem=Od;function En(e,t,n,r){var o=Ie(),i=Ee().set(r,t);return o[n](i,e)}function Ko(e,t,n){if(Ve(e)&&(t=e,e=void 0),e=e||"",t!=null)return En(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=En(e,r,n,"month");return o}function Tr(e,t,n,r){typeof e=="boolean"?(Ve(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,Ve(t)&&(n=t,t=void 0),t=t||"");var o=Ie(),i=e?o._week.dow:0,a,l=[];if(n!=null)return En(t,(n+i)%7,r,"day");for(a=0;a<7;a++)l[a]=En(t,(a+i)%7,r,"day");return l}function Vf(e,t){return Ko(e,t,"months")}function Rf(e,t){return Ko(e,t,"monthsShort")}function $f(e,t,n){return Tr(e,t,n,"weekdays")}function Pf(e,t,n){return Tr(e,t,n,"weekdaysShort")}function xf(e,t,n){return Tr(e,t,n,"weekdaysMin")}Ke("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,n=V(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}}),_.lang=ue("moment.lang is deprecated. Use moment.locale instead.",Ke),_.langData=ue("moment.langData is deprecated. Use moment.localeData instead.",Ie);var Be=Math.abs;function If(){var e=this._data;return this._milliseconds=Be(this._milliseconds),this._days=Be(this._days),this._months=Be(this._months),e.milliseconds=Be(e.milliseconds),e.seconds=Be(e.seconds),e.minutes=Be(e.minutes),e.hours=Be(e.hours),e.months=Be(e.months),e.years=Be(e.years),this}function qo(e,t,n,r){var o=Se(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function Bf(e,t){return qo(this,e,t,1)}function Af(e,t){return qo(this,e,t,-1)}function Zo(e){return e<0?Math.floor(e):Math.ceil(e)}function Ff(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,o,i,a,l,c;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=Zo(Mr(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,o=he(e/1e3),r.seconds=o%60,i=he(o/60),r.minutes=i%60,a=he(i/60),r.hours=a%24,t+=he(a/24),c=he(Jo(t)),n+=c,t-=Zo(Mr(c)),l=he(n/12),n%=12,r.days=t,r.months=n,r.years=l,this}function Jo(e){return e*4800/146097}function Mr(e){return e*146097/4800}function Yf(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=fe(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+Jo(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Mr(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function Ae(e){return function(){return this.as(e)}}var Qo=Ae("ms"),Lf=Ae("s"),Uf=Ae("m"),Wf=Ae("h"),jf=Ae("d"),Hf=Ae("w"),Gf=Ae("M"),zf=Ae("Q"),Kf=Ae("y"),qf=Qo;function Zf(){return Se(this)}function Jf(e){return e=fe(e),this.isValid()?this[e+"s"]():NaN}function rt(e){return function(){return this.isValid()?this._data[e]:NaN}}var Qf=rt("milliseconds"),Xf=rt("seconds"),eh=rt("minutes"),th=rt("hours"),nh=rt("days"),rh=rt("months"),sh=rt("years");function oh(){return he(this.days()/7)}var Fe=Math.round,St={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ih(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}function ah(e,t,n,r){var o=Se(e).abs(),i=Fe(o.as("s")),a=Fe(o.as("m")),l=Fe(o.as("h")),c=Fe(o.as("d")),u=Fe(o.as("M")),d=Fe(o.as("w")),f=Fe(o.as("y")),h=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||a<=1&&["m"]||a<n.m&&["mm",a]||l<=1&&["h"]||l<n.h&&["hh",l]||c<=1&&["d"]||c<n.d&&["dd",c];return n.w!=null&&(h=h||d<=1&&["w"]||d<n.w&&["ww",d]),h=h||u<=1&&["M"]||u<n.M&&["MM",u]||f<=1&&["y"]||["yy",f],h[2]=t,h[3]=+e>0,h[4]=r,ih.apply(null,h)}function lh(e){return e===void 0?Fe:typeof e=="function"?(Fe=e,!0):!1}function ch(e,t){return St[e]===void 0?!1:t===void 0?St[e]:(St[e]=t,e==="s"&&(St.ss=t-1),!0)}function dh(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=St,o,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},St,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),o=this.localeData(),i=ah(this,!n,r,o),n&&(i=o.pastFuture(+this,i)),o.postformat(i)}var Cr=Math.abs;function kt(e){return(e>0)-(e<0)||+e}function vn(){if(!this.isValid())return this.localeData().invalidDate();var e=Cr(this._milliseconds)/1e3,t=Cr(this._days),n=Cr(this._months),r,o,i,a,l=this.asSeconds(),c,u,d,f;return l?(r=he(e/60),o=he(r/60),e%=60,r%=60,i=he(n/12),n%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",c=l<0?"-":"",u=kt(this._months)!==kt(l)?"-":"",d=kt(this._days)!==kt(l)?"-":"",f=kt(this._milliseconds)!==kt(l)?"-":"",c+"P"+(i?u+i+"Y":"")+(n?u+n+"M":"")+(t?d+t+"D":"")+(o||r||e?"T":"")+(o?f+o+"H":"")+(r?f+r+"M":"")+(e?f+a+"S":"")):"P0D"}var x=_n.prototype;x.isValid=nu,x.abs=If,x.add=Bf,x.subtract=Af,x.as=Yf,x.asMilliseconds=Qo,x.asSeconds=Lf,x.asMinutes=Uf,x.asHours=Wf,x.asDays=jf,x.asWeeks=Hf,x.asMonths=Gf,x.asQuarters=zf,x.asYears=Kf,x.valueOf=qf,x._bubble=Ff,x.clone=Zf,x.get=Jf,x.milliseconds=Qf,x.seconds=Xf,x.minutes=eh,x.hours=th,x.days=nh,x.weeks=oh,x.months=rh,x.years=sh,x.humanize=dh,x.toISOString=vn,x.toString=vn,x.toJSON=vn,x.locale=Ao,x.localeData=Yo,x.toIsoString=ue("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",vn),x.lang=Fo,E("X",0,0,"unix"),E("x",0,0,"valueOf"),w("x",dn),w("X",Cc),L("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)}),L("x",function(e,t,n){n._d=new Date(V(e))});//! moment.js
|
|
45
|
-
_.version="2.30.1",dc(H),_.fn=m,_.min=Qd,_.max=Xd,_.now=eu,_.utc=Ee,_.unix=Mf,_.months=Vf,_.isDate=xt,_.locale=Ke,_.invalid=rn,_.duration=Se,_.isMoment=ye,_.weekdays=$f,_.parseZone=Cf,_.localeData=Ie,_.isDuration=yn,_.monthsShort=Rf,_.weekdaysMin=xf,_.defineLocale=_r,_.updateLocale=Md,_.locales=Cd,_.weekdaysShort=Pf,_.normalizeUnits=fe,_.relativeTimeRounding=lh,_.relativeTimeThreshold=ch,_.calendarFormat=Ou,_.prototype=m,_.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"};const uh=["title"],Vr=s.defineComponent({__name:"CapeSingleValue",props:{fieldValuePair:{},link:{}},setup(e){const t=e,n=s.computed(()=>t.fieldValuePair.value),r=s.computed(()=>t.fieldValuePair.field),o=s.computed(()=>{let i=`${t.fieldValuePair.value}`;return t.fieldValuePair.field.type=="date"&&(i=_(i).format("dddd, D MMMM YYYY")),i});return(i,a)=>{const l=s.resolveComponent("router-link");return s.openBlock(),s.createElementBlock("span",{class:"cape-single-value",title:r.value.description},[i.link?(s.openBlock(),s.createBlock(l,{key:0,to:r.value.id+"/"+n.value},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(o.value),1)]),_:1},8,["to"])):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(o.value),1)],64))],8,uh)}}}),fh={key:0,class:"cape-error cape-value-error"},hh={key:1,class:"cape-value"},ph={key:0,class:"cape-value-null"},mh={key:0,class:"cape-value-multiple"},Xo=s.defineComponent({__name:"CapeValue",props:{fieldValue:{},link:{},hideIfEmpty:{}},setup(e){const t=e,n=s.computed(()=>{var i;return(i=t.fieldValue)==null?void 0:i.value}),r=s.computed(()=>{var i;return(i=t.fieldValue)==null?void 0:i.field}),o=s.computed(()=>n.value===void 0||n.value===""||Array.isArray(n)&&n.value.length===0);return(i,a)=>!i.fieldValue||!r.value?(s.openBlock(),s.createElementBlock("div",fh," [Error: field value pair does not exist!] ")):!i.hideIfEmpty||!o.value?(s.openBlock(),s.createElementBlock("div",hh,[o.value?(s.openBlock(),s.createElementBlock("div",ph,"undefined")):(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass("cape-value cape-value-field-"+r.value.id)},[r.value.isMultiple?(s.openBlock(),s.createElementBlock("ol",mh,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(n.value,(l,c)=>(s.openBlock(),s.createElementBlock("li",{key:c},[s.createVNode(Vr,{"field-value-pair":{field:r.value,value:l},link:i.link},null,8,["field-value-pair","link"])]))),128))])):(s.openBlock(),s.createBlock(Vr,{key:1,"field-value-pair":i.fieldValue,link:i.link},null,8,["field-value-pair","link"]))],2))])):s.createCommentVNode("",!0)}}),gh={key:0,class:"cape-labelled-value"},_h={key:0,class:"cape-error cape-labelled-value-error"},yh=["title"],wh={key:1,class:"cape-labelled-value-label"},Sh=s.defineComponent({__name:"CapeLabelledValue",props:{fieldValue:{},link:{},hideIfEmpty:{}},setup(e){const t=e,n=s.computed(()=>{var i;return(i=t.fieldValue)==null?void 0:i.value}),r=s.computed(()=>{var i;return(i=t.fieldValue)==null?void 0:i.field}),o=s.computed(()=>n.value===void 0||n.value===""||Array.isArray(n)&&n.value.length===0);return(i,a)=>!i.hideIfEmpty||!o.value?(s.openBlock(),s.createElementBlock("div",gh,[!i.fieldValue||!r.value?(s.openBlock(),s.createElementBlock("div",_h," [Error, trying to render non-existent field] ")):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[r.value.description!==void 0&&r.value.description!==""?(s.openBlock(),s.createElementBlock("div",{key:0,title:r.value.description,class:"cape-labelled-value-label","data-toggle":"tooltip"},s.toDisplayString(r.value.label),9,yh)):(s.openBlock(),s.createElementBlock("div",wh,s.toDisplayString(r.value.label),1)),s.createVNode(Xo,{link:i.link,"field-value":i.fieldValue},null,8,["link","field-value"])],64))])):s.createCommentVNode("",!0)}}),kh={class:"cape-filter-label"},bh=["for"],Eh={class:"cape-filter-mode"},vh=[s.createElementVNode("option",{value:"contains"},"contains",-1),s.createElementVNode("option",{value:"is"},"is",-1),s.createElementVNode("option",{value:"set"},"is present",-1),s.createElementVNode("option",{value:"notSet"},"is not present",-1)],Oh={class:"cape-filter-term"},Dh=["id","placeholder"],Nh=["id","placeholder"],Th=s.defineComponent({__name:"CapeFilterFieldText",props:{filterId:{}},setup(e){const t=e,n=K(),r=s.computed(()=>n.byId(t.filterId)),o=s.computed(()=>r.value.field);return(i,a)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("div",kh,[s.createElementVNode("label",{for:"cape-filter-field-input-"+r.value.id,"data-test":"filter-label"},s.toDisplayString(r.value.field.label),9,bh)]),s.createElementVNode("div",Eh,[r.value.field.changeFilterMode?s.withDirectives((s.openBlock(),s.createElementBlock("select",{key:0,"onUpdate:modelValue":a[0]||(a[0]=l=>r.value.mode=l),"data-test":"filter-mode-select","aria-label":"Filter mode"},vh,512)),[[s.vModelSelect,r.value.mode]]):s.createCommentVNode("",!0)]),s.createElementVNode("div",Oh,[r.value.mode==="contains"?s.withDirectives((s.openBlock(),s.createElementBlock("input",{key:0,id:"cape-filter-field-input-"+r.value.id,"onUpdate:modelValue":a[1]||(a[1]=l=>r.value.term=l),placeholder:o.value.placeholderContains,class:"cape-filter-field-text-term","data-test":"filter-term-input"},null,8,Dh)),[[s.vModelText,r.value.term]]):s.createCommentVNode("",!0),r.value.mode==="is"?s.withDirectives((s.openBlock(),s.createElementBlock("input",{key:1,id:"cape-filter-field-input-"+r.value.id,"onUpdate:modelValue":a[2]||(a[2]=l=>r.value.term=l),placeholder:o.value.placeholderIs,class:"cape-filter-field-text-term","data-test":"filter-term-input"},null,8,Nh)),[[s.vModelText,r.value.term]]):s.createCommentVNode("",!0)])],64))}}),Mh={class:"cape-filter-label"},Ch=["for"],Vh={class:"cape-filter-wide-term"},Rh=["id","placeholder"],$h=s.defineComponent({__name:"CapeFilterFreeText",props:{filterId:{}},setup(e){const t=e,n=K(),r=s.computed(()=>n.byId(t.filterId));return(o,i)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("div",Mh,[s.createElementVNode("label",{for:"cape-filter-input-"+r.value.id},"Free text",8,Ch)]),s.createElementVNode("div",Vh,[s.withDirectives(s.createElementVNode("input",{id:"cape-filter-input-"+r.value.id,"onUpdate:modelValue":i[0]||(i[0]=a=>r.value.term=a),placeholder:r.value.placeholder,class:"cape-filter-freetext-term","data-test":"filter-term-input"},null,8,Rh),[[s.vModelText,r.value.term]])])],64))}}),Ph={class:"cape-filter-field-enum-one-of-checkbox"},xh=["id","value"],Ih=["for"],Bh=s.defineComponent({__name:"CapeFilterFieldEnumOneOfCheckbox",props:{filterId:{}},setup(e){const t=e,r=K().byId(t.filterId),o=r.field;return(i,a)=>(s.openBlock(),s.createElementBlock("ul",Ph,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(o).values,l=>(s.openBlock(),s.createElementBlock("li",{key:l},[s.withDirectives(s.createElementVNode("input",{id:"cape-filter-field-input-"+s.unref(r).id+"-"+l,"onUpdate:modelValue":a[0]||(a[0]=c=>s.unref(r).oneOfTerms=c),value:l,type:"checkbox"},null,8,xh),[[s.vModelCheckbox,s.unref(r).oneOfTerms]]),s.createElementVNode("label",{for:"cape-filter-field-input-"+s.unref(r).id+"-"+l},s.toDisplayString(l),9,Ih)]))),128))]))}});function Rr(e){return e===0?!1:Array.isArray(e)&&e.length===0?!0:!e}function Ah(e){return(...t)=>!e(...t)}function Fh(e,t){return e===void 0&&(e="undefined"),e===null&&(e="null"),e===!1&&(e="false"),e.toString().toLowerCase().indexOf(t.trim())!==-1}function ei(e,t,n,r){return t?e.filter(o=>Fh(r(o,n),t)).sort((o,i)=>r(o,n).length-r(i,n).length):e}function Yh(e){return e.filter(t=>!t.$isLabel)}function $r(e,t){return n=>n.reduce((r,o)=>o[e]&&o[e].length?(r.push({$groupLabel:o[t],$isLabel:!0}),r.concat(o[e])):r,[])}function Lh(e,t,n,r,o){return i=>i.map(a=>{if(!a[n])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const l=ei(a[n],e,t,o);return l.length?{[r]:a[r],[n]:l}:[]})}const ti=(...e)=>t=>e.reduce((n,r)=>r(n),t);var Uh={data(){return{search:"",isOpen:!1,preferredOpenDirection:"below",optimizedHeight:this.maxHeight}},props:{internalSearch:{type:Boolean,default:!0},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},trackBy:{type:String},label:{type:String},searchable:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0},hideSelected:{type:Boolean,default:!1},placeholder:{type:String,default:"Select option"},allowEmpty:{type:Boolean,default:!0},resetAfter:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},customLabel:{type:Function,default(e,t){return Rr(e)?"":t?e[t]:e}},taggable:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:"Press enter to create a tag"},tagPosition:{type:String,default:"top"},max:{type:[Number,Boolean],default:!1},id:{default:null},optionsLimit:{type:Number,default:1e3},groupValues:{type:String},groupLabel:{type:String},groupSelect:{type:Boolean,default:!1},blockKeys:{type:Array,default(){return[]}},preserveSearch:{type:Boolean,default:!1},preselectFirst:{type:Boolean,default:!1},preventAutofocus:{type:Boolean,default:!1}},mounted(){!this.multiple&&this.max&&console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."),this.preselectFirst&&!this.internalValue.length&&this.options.length&&this.select(this.filteredOptions[0])},computed:{internalValue(){return this.modelValue||this.modelValue===0?Array.isArray(this.modelValue)?this.modelValue:[this.modelValue]:[]},filteredOptions(){const e=this.search||"",t=e.toLowerCase().trim();let n=this.options.concat();return this.internalSearch?n=this.groupValues?this.filterAndFlat(n,t,this.label):ei(n,t,this.label,this.customLabel):n=this.groupValues?$r(this.groupValues,this.groupLabel)(n):n,n=this.hideSelected?n.filter(Ah(this.isSelected)):n,this.taggable&&t.length&&!this.isExistingOption(t)&&(this.tagPosition==="bottom"?n.push({isTag:!0,label:e}):n.unshift({isTag:!0,label:e})),n.slice(0,this.optionsLimit)},valueKeys(){return this.trackBy?this.internalValue.map(e=>e[this.trackBy]):this.internalValue},optionKeys(){return(this.groupValues?this.flatAndStrip(this.options):this.options).map(t=>this.customLabel(t,this.label).toString().toLowerCase())},currentOptionLabel(){return this.multiple?this.searchable?"":this.placeholder:this.internalValue.length?this.getOptionLabel(this.internalValue[0]):this.searchable?"":this.placeholder}},watch:{internalValue:{handler(){this.resetAfter&&this.internalValue.length&&(this.search="",this.$emit("update:modelValue",this.multiple?[]:null))},deep:!0},search(){this.$emit("search-change",this.search)}},emits:["open","search-change","close","select","update:modelValue","remove","tag"],methods:{getValue(){return this.multiple?this.internalValue:this.internalValue.length===0?null:this.internalValue[0]},filterAndFlat(e,t,n){return ti(Lh(t,n,this.groupValues,this.groupLabel,this.customLabel),$r(this.groupValues,this.groupLabel))(e)},flatAndStrip(e){return ti($r(this.groupValues,this.groupLabel),Yh)(e)},updateSearch(e){this.search=e},isExistingOption(e){return this.options?this.optionKeys.indexOf(e)>-1:!1},isSelected(e){const t=this.trackBy?e[this.trackBy]:e;return this.valueKeys.indexOf(t)>-1},isOptionDisabled(e){return!!e.$isDisabled},getOptionLabel(e){if(Rr(e))return"";if(e.isTag)return e.label;if(e.$isLabel)return e.$groupLabel;const t=this.customLabel(e,this.label);return Rr(t)?"":t},select(e,t){if(e.$isLabel&&this.groupSelect){this.selectGroup(e);return}if(!(this.blockKeys.indexOf(t)!==-1||this.disabled||e.$isDisabled||e.$isLabel)&&!(this.max&&this.multiple&&this.internalValue.length===this.max)&&!(t==="Tab"&&!this.pointerDirty)){if(e.isTag)this.$emit("tag",e.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(e)){t!=="Tab"&&this.removeElement(e);return}this.multiple?this.$emit("update:modelValue",this.internalValue.concat([e])):this.$emit("update:modelValue",e),this.$emit("select",e,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup(e){const t=this.options.find(n=>n[this.groupLabel]===e.$groupLabel);if(t){if(this.wholeGroupSelected(t)){this.$emit("remove",t[this.groupValues],this.id);const n=this.internalValue.filter(r=>t[this.groupValues].indexOf(r)===-1);this.$emit("update:modelValue",n)}else{let n=t[this.groupValues].filter(r=>!(this.isOptionDisabled(r)||this.isSelected(r)));this.max&&n.splice(this.max-this.internalValue.length),this.$emit("select",n,this.id),this.$emit("update:modelValue",this.internalValue.concat(n))}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected(e){return e[this.groupValues].every(t=>this.isSelected(t)||this.isOptionDisabled(t))},wholeGroupDisabled(e){return e[this.groupValues].every(this.isOptionDisabled)},removeElement(e,t=!0){if(this.disabled||e.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1){this.deactivate();return}const n=typeof e=="object"?this.valueKeys.indexOf(e[this.trackBy]):this.valueKeys.indexOf(e);if(this.multiple){const r=this.internalValue.slice(0,n).concat(this.internalValue.slice(n+1));this.$emit("update:modelValue",r)}else this.$emit("update:modelValue",null);this.$emit("remove",e,this.id),this.closeOnSelect&&t&&this.deactivate()},removeLastElement(){this.blockKeys.indexOf("Delete")===-1&&this.search.length===0&&Array.isArray(this.internalValue)&&this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate(){this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&this.pointer===0&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.preventAutofocus||this.$nextTick(()=>this.$refs.search&&this.$refs.search.focus())):this.preventAutofocus||typeof this.$el<"u"&&this.$el.focus(),this.$emit("open",this.id))},deactivate(){this.isOpen&&(this.isOpen=!1,this.searchable?this.$refs.search!==null&&typeof this.$refs.search<"u"&&this.$refs.search.blur():typeof this.$el<"u"&&this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle(){this.isOpen?this.deactivate():this.activate()},adjustPosition(){if(typeof window>"u")return;const e=this.$el.getBoundingClientRect().top,t=window.innerHeight-this.$el.getBoundingClientRect().bottom;t>this.maxHeight||t>e||this.openDirection==="below"||this.openDirection==="bottom"?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(t-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(e-40,this.maxHeight))}}},Wh={data(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40}},computed:{pointerPosition(){return this.pointer*this.optionHeight},visibleElements(){return this.optimizedHeight/this.optionHeight}},watch:{filteredOptions(){this.pointerAdjust()},isOpen(){this.pointerDirty=!1},pointer(){this.$refs.search&&this.$refs.search.setAttribute("aria-activedescendant",this.id+"-"+this.pointer.toString())}},methods:{optionHighlight(e,t){return{"multiselect__option--highlight":e===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(t)}},groupHighlight(e,t){if(!this.groupSelect)return["multiselect__option--disabled",{"multiselect__option--group":t.$isLabel}];const n=this.options.find(r=>r[this.groupLabel]===t.$groupLabel);return n&&!this.wholeGroupDisabled(n)?["multiselect__option--group",{"multiselect__option--highlight":e===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(n)}]:"multiselect__option--disabled"},addPointerElement({key:e}="Enter"){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],e),this.pointerReset()},pointerForward(){this.pointer<this.filteredOptions.length-1&&(this.pointer++,this.$refs.list.scrollTop<=this.pointerPosition-(this.visibleElements-1)*this.optionHeight&&(this.$refs.list.scrollTop=this.pointerPosition-(this.visibleElements-1)*this.optionHeight),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()),this.pointerDirty=!0},pointerBackward(){this.pointer>0?(this.pointer--,this.$refs.list.scrollTop>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset(){this.closeOnSelect&&(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet(e){this.pointer=e,this.pointerDirty=!0}}},ni={name:"vue-multiselect",mixins:[Uh,Wh],compatConfig:{MODE:3,ATTR_ENUMERATED_COERCION:!1},props:{name:{type:String,default:""},modelValue:{type:null,default(){return[]}},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:e=>`and ${e} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0}},computed:{hasOptionGroup(){return this.groupValues&&this.groupLabel&&this.groupSelect},isSingleLabelVisible(){return(this.singleValue||this.singleValue===0)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible(){return!this.internalValue.length&&(!this.searchable||!this.isOpen)},visibleValues(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue(){return this.internalValue[0]},deselectLabelText(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText(){return this.showLabels?this.selectLabel:""},selectGroupLabelText(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText(){return this.showLabels?this.selectedLabel:""},inputStyle(){return this.searchable||this.multiple&&this.modelValue&&this.modelValue.length?this.isOpen?{width:"100%"}:{width:"0",position:"absolute",padding:"0"}:""},contentStyle(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove(){return this.openDirection==="above"||this.openDirection==="top"?!0:this.openDirection==="below"||this.openDirection==="bottom"?!1:this.preferredOpenDirection==="above"},showSearchInput(){return this.searchable&&(this.hasSingleSelectedSlot&&(this.visibleSingleValue||this.visibleSingleValue===0)?this.isOpen:!0)}}};const jh={ref:"tags",class:"multiselect__tags"},Hh={class:"multiselect__tags-wrap"},Gh={class:"multiselect__spinner"},zh={key:0},Kh={class:"multiselect__option"},qh={class:"multiselect__option"},Zh=s.createTextVNode("No elements found. Consider changing the search query."),Jh={class:"multiselect__option"},Qh=s.createTextVNode("List is empty.");function Xh(e,t,n,r,o,i){return s.openBlock(),s.createBlock("div",{tabindex:e.searchable?-1:n.tabindex,class:[{"multiselect--active":e.isOpen,"multiselect--disabled":n.disabled,"multiselect--above":i.isAbove,"multiselect--has-options-group":i.hasOptionGroup},"multiselect"],onFocus:t[14]||(t[14]=a=>e.activate()),onBlur:t[15]||(t[15]=a=>e.searchable?!1:e.deactivate()),onKeydown:[t[16]||(t[16]=s.withKeys(s.withModifiers(a=>e.pointerForward(),["self","prevent"]),["down"])),t[17]||(t[17]=s.withKeys(s.withModifiers(a=>e.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:t[18]||(t[18]=s.withKeys(s.withModifiers(a=>e.addPointerElement(a),["stop","self"]),["enter","tab"])),onKeyup:t[19]||(t[19]=s.withKeys(a=>e.deactivate(),["esc"])),role:"combobox","aria-owns":"listbox-"+e.id},[s.renderSlot(e.$slots,"caret",{toggle:e.toggle},()=>[s.createVNode("div",{onMousedown:t[1]||(t[1]=s.withModifiers(a=>e.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),s.renderSlot(e.$slots,"clear",{search:e.search}),s.createVNode("div",jh,[s.renderSlot(e.$slots,"selection",{search:e.search,remove:e.removeElement,values:i.visibleValues,isOpen:e.isOpen},()=>[s.withDirectives(s.createVNode("div",Hh,[(s.openBlock(!0),s.createBlock(s.Fragment,null,s.renderList(i.visibleValues,(a,l)=>s.renderSlot(e.$slots,"tag",{option:a,search:e.search,remove:e.removeElement},()=>[(s.openBlock(),s.createBlock("span",{class:"multiselect__tag",key:l},[s.createVNode("span",{textContent:s.toDisplayString(e.getOptionLabel(a))},null,8,["textContent"]),s.createVNode("i",{tabindex:"1",onKeypress:s.withKeys(s.withModifiers(c=>e.removeElement(a),["prevent"]),["enter"]),onMousedown:s.withModifiers(c=>e.removeElement(a),["prevent"]),class:"multiselect__tag-icon"},null,40,["onKeypress","onMousedown"])]))])),256))],512),[[s.vShow,i.visibleValues.length>0]]),e.internalValue&&e.internalValue.length>n.limit?s.renderSlot(e.$slots,"limit",{key:0},()=>[s.createVNode("strong",{class:"multiselect__strong",textContent:s.toDisplayString(n.limitText(e.internalValue.length-n.limit))},null,8,["textContent"])]):s.createCommentVNode("v-if",!0)]),s.createVNode(s.Transition,{name:"multiselect__loading"},{default:s.withCtx(()=>[s.renderSlot(e.$slots,"loading",{},()=>[s.withDirectives(s.createVNode("div",Gh,null,512),[[s.vShow,n.loading]])])]),_:3}),e.searchable?(s.openBlock(),s.createBlock("input",{key:0,ref:"search",name:n.name,id:e.id,type:"text",autocomplete:"off",spellcheck:!1,placeholder:e.placeholder,style:i.inputStyle,value:e.search,disabled:n.disabled,tabindex:n.tabindex,onInput:t[2]||(t[2]=a=>e.updateSearch(a.target.value)),onFocus:t[3]||(t[3]=s.withModifiers(a=>e.activate(),["prevent"])),onBlur:t[4]||(t[4]=s.withModifiers(a=>e.deactivate(),["prevent"])),onKeyup:t[5]||(t[5]=s.withKeys(a=>e.deactivate(),["esc"])),onKeydown:[t[6]||(t[6]=s.withKeys(s.withModifiers(a=>e.pointerForward(),["prevent"]),["down"])),t[7]||(t[7]=s.withKeys(s.withModifiers(a=>e.pointerBackward(),["prevent"]),["up"])),t[9]||(t[9]=s.withKeys(s.withModifiers(a=>e.removeLastElement(),["stop"]),["delete"]))],onKeypress:t[8]||(t[8]=s.withKeys(s.withModifiers(a=>e.addPointerElement(a),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+e.id},null,44,["name","id","placeholder","value","disabled","tabindex","aria-controls"])):s.createCommentVNode("v-if",!0),i.isSingleLabelVisible?(s.openBlock(),s.createBlock("span",{key:1,class:"multiselect__single",onMousedown:t[10]||(t[10]=s.withModifiers((...a)=>e.toggle&&e.toggle(...a),["prevent"]))},[s.renderSlot(e.$slots,"singleLabel",{option:i.singleValue},()=>[s.createTextVNode(s.toDisplayString(e.currentOptionLabel),1)])],32)):s.createCommentVNode("v-if",!0),i.isPlaceholderVisible?(s.openBlock(),s.createBlock("span",{key:2,class:"multiselect__placeholder",onMousedown:t[11]||(t[11]=s.withModifiers((...a)=>e.toggle&&e.toggle(...a),["prevent"]))},[s.renderSlot(e.$slots,"placeholder",{},()=>[s.createTextVNode(s.toDisplayString(e.placeholder),1)])],32)):s.createCommentVNode("v-if",!0)],512),s.createVNode(s.Transition,{name:"multiselect"},{default:s.withCtx(()=>[s.withDirectives(s.createVNode("div",{class:"multiselect__content-wrapper",onFocus:t[12]||(t[12]=(...a)=>e.activate&&e.activate(...a)),tabindex:"-1",onMousedown:t[13]||(t[13]=s.withModifiers(()=>{},["prevent"])),style:{maxHeight:e.optimizedHeight+"px"},ref:"list"},[s.createVNode("ul",{class:"multiselect__content",style:i.contentStyle,role:"listbox",id:"listbox-"+e.id},[s.renderSlot(e.$slots,"beforeList"),e.multiple&&e.max===e.internalValue.length?(s.openBlock(),s.createBlock("li",zh,[s.createVNode("span",Kh,[s.renderSlot(e.$slots,"maxElements",{},()=>[s.createTextVNode("Maximum of "+s.toDisplayString(e.max)+" options selected. First remove a selected option to select another.",1)])])])):s.createCommentVNode("v-if",!0),!e.max||e.internalValue.length<e.max?(s.openBlock(!0),s.createBlock(s.Fragment,{key:1},s.renderList(e.filteredOptions,(a,l)=>(s.openBlock(),s.createBlock("li",{class:"multiselect__element",key:l,id:e.id+"-"+l,role:a&&(a.$isLabel||a.$isDisabled)?null:"option"},[a&&(a.$isLabel||a.$isDisabled)?s.createCommentVNode("v-if",!0):(s.openBlock(),s.createBlock("span",{key:0,class:[e.optionHighlight(l,a),"multiselect__option"],onClick:s.withModifiers(c=>e.select(a),["stop"]),onMouseenter:s.withModifiers(c=>e.pointerSet(l),["self"]),"data-select":a&&a.isTag?e.tagPlaceholder:i.selectLabelText,"data-selected":i.selectedLabelText,"data-deselect":i.deselectLabelText},[s.renderSlot(e.$slots,"option",{option:a,search:e.search,index:l},()=>[s.createVNode("span",null,s.toDisplayString(e.getOptionLabel(a)),1)])],42,["onClick","onMouseenter","data-select","data-selected","data-deselect"])),a&&(a.$isLabel||a.$isDisabled)?(s.openBlock(),s.createBlock("span",{key:1,"data-select":e.groupSelect&&i.selectGroupLabelText,"data-deselect":e.groupSelect&&i.deselectGroupLabelText,class:[e.groupHighlight(l,a),"multiselect__option"],onMouseenter:s.withModifiers(c=>e.groupSelect&&e.pointerSet(l),["self"]),onMousedown:s.withModifiers(c=>e.selectGroup(a),["prevent"])},[s.renderSlot(e.$slots,"option",{option:a,search:e.search,index:l},()=>[s.createVNode("span",null,s.toDisplayString(e.getOptionLabel(a)),1)])],42,["data-select","data-deselect","onMouseenter","onMousedown"])):s.createCommentVNode("v-if",!0)],8,["id","role"]))),128)):s.createCommentVNode("v-if",!0),s.withDirectives(s.createVNode("li",null,[s.createVNode("span",qh,[s.renderSlot(e.$slots,"noResult",{search:e.search},()=>[Zh])])],512),[[s.vShow,n.showNoResults&&e.filteredOptions.length===0&&e.search&&!n.loading]]),s.withDirectives(s.createVNode("li",null,[s.createVNode("span",Jh,[s.renderSlot(e.$slots,"noOptions",{},()=>[Qh])])],512),[[s.vShow,n.showNoOptions&&(e.options.length===0||i.hasOptionGroup===!0&&e.filteredOptions.length===0)&&!e.search&&!n.loading]]),s.renderSlot(e.$slots,"afterList")],12,["id"])],36),[[s.vShow,e.isOpen]])]),_:3})],42,["tabindex","aria-owns"])}ni.render=Xh;const ep=s.defineComponent({__name:"CapeFilterFieldEnumOneOfMultiselect",props:{filterId:{}},setup(e){const t=e,r=K().byId(t.filterId),o=r.field;return(i,a)=>(s.openBlock(),s.createBlock(s.unref(ni),{id:"filter-multiselect-"+s.unref(o).id,modelValue:s.unref(r).oneOfTerms,"onUpdate:modelValue":a[0]||(a[0]=l=>s.unref(r).oneOfTerms=l),"clear-on-select":!1,"close-on-select":!0,multiple:!0,options:s.unref(o).values,"preserve-search":!0,placeholder:"Select (1 or more)"},null,8,["id","modelValue","options"]))}}),tp=["aria-label"],np=s.createElementVNode("option",{key:"",value:""},null,-1),rp=["value"],sp=s.defineComponent({__name:"CapeFilterFieldEnumIsSelect",props:{filterId:{}},setup(e){const t=e,r=K().byId(t.filterId),o=r.field;return(i,a)=>s.withDirectives((s.openBlock(),s.createElementBlock("select",{class:"cape-filter-field-enum-is-select","onUpdate:modelValue":a[0]||(a[0]=l=>s.unref(r).isTerm=l),"aria-label":"Select "+s.unref(o).label+" value."},[np,(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(o).values,l=>(s.openBlock(),s.createElementBlock("option",{key:l,value:l},s.toDisplayString(l),9,rp))),128))],8,tp)),[[s.vModelSelect,s.unref(r).isTerm]])}}),op={class:"cape-filter-field-enum-is-radio"},ip={class:"form-check form-check-inline"},ap=["id"],lp=["for"],cp=[s.createElementVNode("em",null,"any",-1)],dp=["id","value"],up=["for"],fp=s.defineComponent({__name:"CapeFilterFieldEnumIsRadio",props:{filterId:{}},setup(e){const t=e,r=K().byId(t.filterId),o=r.field;return(i,a)=>(s.openBlock(),s.createElementBlock("ul",op,[s.createElementVNode("li",ip,[s.withDirectives(s.createElementVNode("input",{id:"cape-filter-field-input-"+s.unref(r).id+"-","onUpdate:modelValue":a[0]||(a[0]=l=>s.unref(r).isTerm=l),type:"radio",value:""},null,8,ap),[[s.vModelRadio,s.unref(r).isTerm]]),s.createElementVNode("label",{for:"cape-filter-field-input-"+s.unref(r).id+"-"},cp,8,lp)]),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(o).values,l=>(s.openBlock(),s.createElementBlock("li",{key:l},[s.withDirectives(s.createElementVNode("input",{id:"cape-filter-field-input-"+s.unref(r).id+"-"+l,"onUpdate:modelValue":a[1]||(a[1]=c=>s.unref(r).isTerm=c),value:l,type:"radio"},null,8,dp),[[s.vModelRadio,s.unref(r).isTerm]]),s.createElementVNode("label",{for:"cape-filter-field-input-"+s.unref(r).id+"-"+l},s.toDisplayString(l),9,up)]))),128))]))}}),hp={class:"cape-filter-label"},pp=["for"],mp={class:"cape-filter-mode"},gp=[s.createElementVNode("option",{value:"oneOf"},"is one of",-1),s.createElementVNode("option",{value:"is"},"is",-1),s.createElementVNode("option",{value:"set"},"is present",-1),s.createElementVNode("option",{value:"notSet"},"is not present",-1)],_p={class:"cape-filter-term"},yp=s.defineComponent({__name:"CapeFilterFieldEnum",props:{filterId:{}},setup(e){const t=e,r=K().byId(t.filterId),o=r.field;return(i,a)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("div",hp,[s.createElementVNode("label",{for:"cape-filter-field-input-"+s.unref(r).id,"data-test":"filter-label"},s.toDisplayString(s.unref(r).field.label),9,pp)]),s.createElementVNode("div",mp,[s.unref(r).field.changeFilterMode?s.withDirectives((s.openBlock(),s.createElementBlock("select",{key:0,"onUpdate:modelValue":a[0]||(a[0]=l=>s.unref(r).mode=l),"data-test":"filter-mode-select","aria-label":"Filter mode"},gp,512)),[[s.vModelSelect,s.unref(r).mode]]):s.createCommentVNode("",!0)]),s.createElementVNode("div",_p,[s.unref(r).mode==="oneOf"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.unref(o).filterInputStyleOnOneOf==="checkbox"?(s.openBlock(),s.createBlock(Bh,{key:0,"filter-id":i.filterId},null,8,["filter-id"])):(s.openBlock(),s.createBlock(ep,{key:1,"filter-id":i.filterId},null,8,["filter-id"]))],64)):s.createCommentVNode("",!0),s.unref(r).mode==="is"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.unref(o).filterInputStyleOnIs==="select"?(s.openBlock(),s.createBlock(sp,{key:0,"filter-id":i.filterId},null,8,["filter-id"])):(s.openBlock(),s.createBlock(fp,{key:1,"filter-id":i.filterId},null,8,["filter-id"]))],64)):s.createCommentVNode("",!0)])],64))}}),wp={class:"cape-filter-label"},Sp=["for"],kp={class:"cape-filter-mode"},bp=[s.createElementVNode("option",{value:"between"},"is between",-1),s.createElementVNode("option",{value:"is"},"is",-1),s.createElementVNode("option",{value:"set"},"is present",-1),s.createElementVNode("option",{value:"notSet"},"is not present",-1)],Ep={class:"cape-filter-term"},vp=["id","placeholder","min","max","step"],Op=s.createElementVNode("span",{class:"cape-filter-field-integer-term-term-and"},"and",-1),Dp=["id","placeholder","min","max","step"],Np=["id","placeholder","min","max","step"],Tp=s.defineComponent({__name:"CapeFilterFieldInteger",props:{filterId:{}},setup(e){const t=e,n=K(),r=s.computed(()=>n.byId(t.filterId)),o=s.computed(()=>r.value.field);return(i,a)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("div",wp,[s.createElementVNode("label",{for:"cape-filter-field-input-"+r.value.id,"data-test":"filter-label"},s.toDisplayString(r.value.field.label),9,Sp)]),s.createElementVNode("div",kp,[r.value.field.changeFilterMode?s.withDirectives((s.openBlock(),s.createElementBlock("select",{key:0,"onUpdate:modelValue":a[0]||(a[0]=l=>r.value.mode=l),"data-test":"filter-mode-select","aria-label":"Filter mode"},bp,512)),[[s.vModelSelect,r.value.mode]]):s.createCommentVNode("",!0)]),s.createElementVNode("div",Ep,[r.value.mode==="between"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.withDirectives(s.createElementVNode("input",{id:"cape-filter-field-input-lower-bound-"+r.value.id,"onUpdate:modelValue":a[1]||(a[1]=l=>r.value.lowerBoundTerm=l),placeholder:Array.isArray(o.value.placeholderBetween)?o.value.placeholderBetween[0]:"",type:"number",min:o.value.min,max:o.value.max,step:o.value.step,class:"cape-filter-field-integer-term-lower-bound","data-test":"filter-term-input-lower-bound"},null,8,vp),[[s.vModelText,r.value.lowerBoundTerm]]),Op,s.withDirectives(s.createElementVNode("input",{id:"cape-filter-field-input-upper-bound-"+r.value.id,"onUpdate:modelValue":a[2]||(a[2]=l=>r.value.upperBoundTerm=l),placeholder:Array.isArray(o.value.placeholderBetween)?o.value.placeholderBetween[1]:"",type:"number",min:o.value.min,max:o.value.max,step:o.value.step,class:"cape-filter-field-integer-term-upper-bound","data-test":"filter-term-input-upper-bound"},null,8,Dp),[[s.vModelText,r.value.upperBoundTerm]])],64)):s.createCommentVNode("",!0),r.value.mode==="is"?s.withDirectives((s.openBlock(),s.createElementBlock("input",{key:1,id:"cape-filter-field-input-"+r.value.id,"onUpdate:modelValue":a[3]||(a[3]=l=>r.value.isTerm=l),placeholder:o.value.placeholderIs,type:"number",min:o.value.min,max:o.value.max,step:o.value.step,class:"cape-filter-field-integer-term","data-test":"filter-term-input"},null,8,Np)),[[s.vModelText,r.value.isTerm]]):s.createCommentVNode("",!0)])],64))}}),Mp={class:"cape-filter-label"},Cp=["for"],Vp={class:"cape-filter-mode"},Rp=[s.createElementVNode("option",{value:"between"},"is between",-1),s.createElementVNode("option",{value:"is"},"is",-1),s.createElementVNode("option",{value:"set"},"is present",-1),s.createElementVNode("option",{value:"notSet"},"is not present",-1)],$p={class:"cape-filter-term"},Pp=["id","placeholder"],xp=s.createElementVNode("span",{class:"cape-filter-field-date-term-term-and"},"and",-1),Ip=["id","placeholder"],Bp=["id","placeholder"],Ap=s.defineComponent({__name:"CapeFilterFieldDate",props:{filterId:{}},setup(e){const t=e,n=K(),r=s.computed(()=>n.byId(t.filterId)),o=s.computed(()=>r.value.field);return(i,a)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("div",Mp,[s.createElementVNode("label",{for:"cape-filter-field-input-"+r.value.id,"data-test":"filter-label"},s.toDisplayString(r.value.field.label),9,Cp)]),s.createElementVNode("div",Vp,[r.value.field.changeFilterMode?s.withDirectives((s.openBlock(),s.createElementBlock("select",{key:0,"onUpdate:modelValue":a[0]||(a[0]=l=>r.value.mode=l),"data-test":"filter-mode-select","aria-label":"Filter mode"},Rp,512)),[[s.vModelSelect,r.value.mode]]):s.createCommentVNode("",!0)]),s.createElementVNode("div",$p,[r.value.mode==="between"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.withDirectives(s.createElementVNode("input",{id:"cape-filter-field-input-lower-bound-"+r.value.id,"onUpdate:modelValue":a[1]||(a[1]=l=>r.value.lowerBoundTerm=l),placeholder:Array.isArray(o.value.placeholderBetween)?o.value.placeholderBetween[0]:"",class:"cape-filter-field-date-term-term-lower-bound","data-test":"filter-term-input-lower-bound"},null,8,Pp),[[s.vModelText,r.value.lowerBoundTerm]]),xp,s.withDirectives(s.createElementVNode("input",{id:"cape-filter-field-input-upper-bound-"+r.value.id,"onUpdate:modelValue":a[2]||(a[2]=l=>r.value.upperBoundTerm=l),placeholder:Array.isArray(o.value.placeholderBetween)?o.value.placeholderBetween[1]:"",class:"cape-filter-field-date-term-term-upper-bound","data-test":"filter-term-input-upper-bound"},null,8,Ip),[[s.vModelText,r.value.upperBoundTerm]])],64)):s.createCommentVNode("",!0),r.value.mode==="is"?s.withDirectives((s.openBlock(),s.createElementBlock("input",{key:1,id:"cape-filter-field-input-"+r.value.id,type:"date","onUpdate:modelValue":a[3]||(a[3]=l=>r.value.isTerm=l),placeholder:o.value.placeholderIs,class:"cape-filter-field-date-term-term","data-test":"filter-term-input"},null,8,Bp)),[[s.vModelText,r.value.isTerm]]):s.createCommentVNode("",!0)])],64))}}),Fp=s.defineComponent({name:"CapeAboutPage",components:{CapeRecordCount:qs},template:"#templateCapeAbout",computed:{metadata(){return je().metadata}}});function Yp(e,t,n){const r=new Blob([new Uint8Array([239,187,191]),t],{type:n});if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveBlob(r,e);else{const o=window.document.createElement("a");o.href=window.URL.createObjectURL(r),o.download=e,document.body.appendChild(o),o.click(),document.body.removeChild(o)}}function Lp(){const e=[[]],t=ut(),n=Rt();return t.all.forEach(r=>e[0].push(r.label)),n.all.forEach(r=>{e.push(t.all.map(o=>{const i=r[o.id].value??"";return o.isMultiple&&Array.isArray(i)?i.join("; "):`${i}`}))}),e}function Up(e){return e.map(n=>'"'+n.map(o=>{let i="";return o!=null&&(i=o.toString()),i.replace(/"/g,'""').replace(/\r\n/g,`
|
|
44
|
+
`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var oo={};function io(e,t){_.deprecationHandler!=null&&_.deprecationHandler(e,t),oo[e]||(so(t),oo[e]=!0)}_.suppressDeprecationWarnings=!1,_.deprecationHandler=null;function ve(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function pc(e){var t,n;for(n in e)B(e,n)&&(t=e[n],ve(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function rr(e,t){var n=ze({},e),r;for(r in t)B(t,r)&&(et(e[r])&&et(t[r])?(n[r]={},ze(n[r],e[r]),ze(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)B(e,r)&&!B(t,r)&&et(e[r])&&(n[r]=ze({},n[r]));return n}function sr(e){e!=null&&this.set(e)}var or;Object.keys?or=Object.keys:or=function(e){var t,n=[];for(t in e)B(e,t)&&n.push(t);return n};var mc={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function gc(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return ve(r)?r.call(t,n):r}function Oe(e,t,n){var r=""+Math.abs(e),o=t-r.length,i=e>=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var ir=/(\[[^\[]*\])|(\\)?([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,sn=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ar={},ht={};function E(e,t,n,r){var o=r;typeof r=="string"&&(o=function(){return this[r]()}),e&&(ht[e]=o),t&&(ht[t[0]]=function(){return Oe(o.apply(this,arguments),t[1],t[2])}),n&&(ht[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function _c(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function yc(e){var t=e.match(ir),n,r;for(n=0,r=t.length;n<r;n++)ht[t[n]]?t[n]=ht[t[n]]:t[n]=_c(t[n]);return function(o){var i="",a;for(a=0;a<r;a++)i+=ve(t[a])?t[a].call(o,e):t[a];return i}}function on(e,t){return e.isValid()?(t=ao(t,e.localeData()),ar[t]=ar[t]||yc(t),ar[t](e)):e.localeData().invalidDate()}function ao(e,t){var n=5;function r(o){return t.longDateFormat(o)||o}for(sn.lastIndex=0;n>=0&&sn.test(e);)e=e.replace(sn,r),sn.lastIndex=0,n-=1;return e}var wc={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 Sc(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(ir).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var kc="Invalid date";function bc(){return this._invalidDate}var Ec="%d",vc=/\d{1,2}/;function Oc(e){return this._ordinal.replace("%d",e)}var Dc={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 Nc(e,t,n,r){var o=this._relativeTime[n];return ve(o)?o(e,t,n,r):o.replace(/%d/i,e)}function Tc(e,t){var n=this._relativeTime[e>0?"future":"past"];return ve(n)?n(t):n.replace(/%s/i,t)}var lo={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function fe(e){return typeof e=="string"?lo[e]||lo[e.toLowerCase()]:void 0}function lr(e){var t={},n,r;for(r in e)B(e,r)&&(n=fe(r),n&&(t[n]=e[r]));return t}var Mc={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Cc(e){var t=[],n;for(n in e)B(e,n)&&t.push({unit:n,priority:Mc[n]});return t.sort(function(r,o){return r.priority-o.priority}),t}var co=/\d/,ce=/\d\d/,uo=/\d{3}/,cr=/\d{4}/,an=/[+-]?\d{6}/,j=/\d\d?/,fo=/\d\d\d\d?/,ho=/\d\d\d\d\d\d?/,ln=/\d{1,3}/,dr=/\d{1,4}/,cn=/[+-]?\d{1,6}/,pt=/\d+/,dn=/[+-]?\d+/,Vc=/Z|[+-]\d\d:?\d\d/gi,un=/Z|[+-]\d\d(?::?\d\d)?/gi,Rc=/[+-]?\d+(\.\d{1,3})?/,Bt=/[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,mt=/^[1-9]\d?/,ur=/^([1-9]\d|\d)/,fn;fn={};function w(e,t,n){fn[e]=ve(t)?t:function(r,o){return r&&n?n:t}}function $c(e,t){return B(fn,e)?fn[e](t._strict,t._locale):new RegExp(Pc(e))}function Pc(e){return Re(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,o,i){return n||r||o||i}))}function Re(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function he(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function V(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=he(t)),n}var fr={};function L(e,t){var n,r=t,o;for(typeof e=="string"&&(e=[e]),Ve(t)&&(r=function(i,a){a[t]=V(i)}),o=e.length,n=0;n<o;n++)fr[e[n]]=r}function At(e,t){L(e,function(n,r,o,i){o._w=o._w||{},t(n,o._w,o,i)})}function xc(e,t,n){t!=null&&B(fr,e)&&fr[e](t,n._a,n,e)}function hn(e){return e%4===0&&e%100!==0||e%400===0}var se=0,$e=1,De=2,X=3,we=4,Pe=5,tt=6,Ic=7,Bc=8;E("Y",0,0,function(){var e=this.year();return e<=9999?Oe(e,4):"+"+e}),E(0,["YY",2],0,function(){return this.year()%100}),E(0,["YYYY",4],0,"year"),E(0,["YYYYY",5],0,"year"),E(0,["YYYYYY",6,!0],0,"year"),w("Y",dn),w("YY",j,ce),w("YYYY",dr,cr),w("YYYYY",cn,an),w("YYYYYY",cn,an),L(["YYYYY","YYYYYY"],se),L("YYYY",function(e,t){t[se]=e.length===2?_.parseTwoDigitYear(e):V(e)}),L("YY",function(e,t){t[se]=_.parseTwoDigitYear(e)}),L("Y",function(e,t){t[se]=parseInt(e,10)});function Ft(e){return hn(e)?366:365}_.parseTwoDigitYear=function(e){return V(e)+(V(e)>68?1900:2e3)};var po=gt("FullYear",!0);function Ac(){return hn(this.year())}function gt(e,t){return function(n){return n!=null?(mo(this,e,n),_.updateOffset(this,t),this):Yt(this,e)}}function Yt(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function mo(e,t,n){var r,o,i,a,l;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,o=e._isUTC,t){case"Milliseconds":return void(o?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(o?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(o?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(o?r.setUTCHours(n):r.setHours(n));case"Date":return void(o?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}i=n,a=e.month(),l=e.date(),l=l===29&&a===1&&!hn(i)?28:l,o?r.setUTCFullYear(i,a,l):r.setFullYear(i,a,l)}}function Fc(e){return e=fe(e),ve(this[e])?this[e]():this}function Yc(e,t){if(typeof e=="object"){e=lr(e);var n=Cc(e),r,o=n.length;for(r=0;r<o;r++)this[n[r].unit](e[n[r].unit])}else if(e=fe(e),ve(this[e]))return this[e](t);return this}function Lc(e,t){return(e%t+t)%t}var Z;Array.prototype.indexOf?Z=Array.prototype.indexOf:Z=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function hr(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Lc(t,12);return e+=(t-n)/12,n===1?hn(e)?29:28:31-n%7%2}E("M",["MM",2],"Mo",function(){return this.month()+1}),E("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),E("MMMM",0,0,function(e){return this.localeData().months(this,e)}),w("M",j,mt),w("MM",j,ce),w("MMM",function(e,t){return t.monthsShortRegex(e)}),w("MMMM",function(e,t){return t.monthsRegex(e)}),L(["M","MM"],function(e,t){t[$e]=V(e)-1}),L(["MMM","MMMM"],function(e,t,n,r){var o=n._locale.monthsParse(e,r,n._strict);o!=null?t[$e]=o:M(n).invalidMonth=e});var Uc="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),go="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),_o=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Wc=Bt,jc=Bt;function Hc(e,t){return e?_e(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||_o).test(t)?"format":"standalone"][e.month()]:_e(this._months)?this._months:this._months.standalone}function Gc(e,t){return e?_e(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[_o.test(t)?"format":"standalone"][e.month()]:_e(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function zc(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=Ee([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?t==="MMM"?(o=Z.call(this._shortMonthsParse,a),o!==-1?o:null):(o=Z.call(this._longMonthsParse,a),o!==-1?o:null):t==="MMM"?(o=Z.call(this._shortMonthsParse,a),o!==-1?o:(o=Z.call(this._longMonthsParse,a),o!==-1?o:null)):(o=Z.call(this._longMonthsParse,a),o!==-1?o:(o=Z.call(this._shortMonthsParse,a),o!==-1?o:null))}function Kc(e,t,n){var r,o,i;if(this._monthsParseExact)return zc.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=Ee([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(i="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(n&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function yo(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=V(t);else if(t=e.localeData().monthsParse(t),!Ve(t))return e}var n=t,r=e.date();return r=r<29?r:Math.min(r,hr(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function wo(e){return e!=null?(yo(this,e),_.updateOffset(this,!0),this):Yt(this,"Month")}function qc(){return hr(this.year(),this.month())}function Zc(e){return this._monthsParseExact?(B(this,"_monthsRegex")||So.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(B(this,"_monthsShortRegex")||(this._monthsShortRegex=Wc),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Jc(e){return this._monthsParseExact?(B(this,"_monthsRegex")||So.call(this),e?this._monthsStrictRegex:this._monthsRegex):(B(this,"_monthsRegex")||(this._monthsRegex=jc),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function So(){function e(c,u){return u.length-c.length}var t=[],n=[],r=[],o,i,a,l;for(o=0;o<12;o++)i=Ee([2e3,o]),a=Re(this.monthsShort(i,"")),l=Re(this.months(i,"")),t.push(a),n.push(l),r.push(l),r.push(a);t.sort(e),n.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Qc(e,t,n,r,o,i,a){var l;return e<100&&e>=0?(l=new Date(e+400,t,n,r,o,i,a),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,n,r,o,i,a),l}function Lt(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function pn(e,t,n){var r=7+t-n,o=(7+Lt(e,0,r).getUTCDay()-t)%7;return-o+r-1}function ko(e,t,n,r,o){var i=(7+n-r)%7,a=pn(e,r,o),l=1+7*(t-1)+i+a,c,u;return l<=0?(c=e-1,u=Ft(c)+l):l>Ft(e)?(c=e+1,u=l-Ft(e)):(c=e,u=l),{year:c,dayOfYear:u}}function Ut(e,t,n){var r=pn(e.year(),t,n),o=Math.floor((e.dayOfYear()-r-1)/7)+1,i,a;return o<1?(a=e.year()-1,i=o+xe(a,t,n)):o>xe(e.year(),t,n)?(i=o-xe(e.year(),t,n),a=e.year()+1):(a=e.year(),i=o),{week:i,year:a}}function xe(e,t,n){var r=pn(e,t,n),o=pn(e+1,t,n);return(Ft(e)-r+o)/7}E("w",["ww",2],"wo","week"),E("W",["WW",2],"Wo","isoWeek"),w("w",j,mt),w("ww",j,ce),w("W",j,mt),w("WW",j,ce),At(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=V(e)});function Xc(e){return Ut(e,this._week.dow,this._week.doy).week}var ed={dow:0,doy:6};function td(){return this._week.dow}function nd(){return this._week.doy}function rd(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function sd(e){var t=Ut(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}E("d",0,"do","day"),E("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),E("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),E("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),E("e",0,0,"weekday"),E("E",0,0,"isoWeekday"),w("d",j),w("e",j),w("E",j),w("dd",function(e,t){return t.weekdaysMinRegex(e)}),w("ddd",function(e,t){return t.weekdaysShortRegex(e)}),w("dddd",function(e,t){return t.weekdaysRegex(e)}),At(["dd","ddd","dddd"],function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);o!=null?t.d=o:M(n).invalidWeekday=e}),At(["d","e","E"],function(e,t,n,r){t[r]=V(e)});function od(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function id(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function pr(e,t){return e.slice(t,7).concat(e.slice(0,t))}var ad="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),bo="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ld="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),cd=Bt,dd=Bt,ud=Bt;function fd(e,t){var n=_e(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?pr(n,this._week.dow):e?n[e.day()]:n}function hd(e){return e===!0?pr(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function pd(e){return e===!0?pr(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function md(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=Ee([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?t==="dddd"?(o=Z.call(this._weekdaysParse,a),o!==-1?o:null):t==="ddd"?(o=Z.call(this._shortWeekdaysParse,a),o!==-1?o:null):(o=Z.call(this._minWeekdaysParse,a),o!==-1?o:null):t==="dddd"?(o=Z.call(this._weekdaysParse,a),o!==-1||(o=Z.call(this._shortWeekdaysParse,a),o!==-1)?o:(o=Z.call(this._minWeekdaysParse,a),o!==-1?o:null)):t==="ddd"?(o=Z.call(this._shortWeekdaysParse,a),o!==-1||(o=Z.call(this._weekdaysParse,a),o!==-1)?o:(o=Z.call(this._minWeekdaysParse,a),o!==-1?o:null)):(o=Z.call(this._minWeekdaysParse,a),o!==-1||(o=Z.call(this._weekdaysParse,a),o!==-1)?o:(o=Z.call(this._shortWeekdaysParse,a),o!==-1?o:null))}function gd(e,t,n){var r,o,i;if(this._weekdaysParseExact)return md.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=Ee([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function _d(e){if(!this.isValid())return e!=null?this:NaN;var t=Yt(this,"Day");return e!=null?(e=od(e,this.localeData()),this.add(e-t,"d")):t}function yd(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 wd(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=id(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Sd(e){return this._weekdaysParseExact?(B(this,"_weekdaysRegex")||mr.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(B(this,"_weekdaysRegex")||(this._weekdaysRegex=cd),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function kd(e){return this._weekdaysParseExact?(B(this,"_weekdaysRegex")||mr.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(B(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=dd),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function bd(e){return this._weekdaysParseExact?(B(this,"_weekdaysRegex")||mr.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(B(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ud),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function mr(){function e(d,f){return f.length-d.length}var t=[],n=[],r=[],o=[],i,a,l,c,u;for(i=0;i<7;i++)a=Ee([2e3,1]).day(i),l=Re(this.weekdaysMin(a,"")),c=Re(this.weekdaysShort(a,"")),u=Re(this.weekdays(a,"")),t.push(l),n.push(c),r.push(u),o.push(l),o.push(c),o.push(u);t.sort(e),n.sort(e),r.sort(e),o.sort(e),this._weekdaysRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function gr(){return this.hours()%12||12}function Ed(){return this.hours()||24}E("H",["HH",2],0,"hour"),E("h",["hh",2],0,gr),E("k",["kk",2],0,Ed),E("hmm",0,0,function(){return""+gr.apply(this)+Oe(this.minutes(),2)}),E("hmmss",0,0,function(){return""+gr.apply(this)+Oe(this.minutes(),2)+Oe(this.seconds(),2)}),E("Hmm",0,0,function(){return""+this.hours()+Oe(this.minutes(),2)}),E("Hmmss",0,0,function(){return""+this.hours()+Oe(this.minutes(),2)+Oe(this.seconds(),2)});function Eo(e,t){E(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Eo("a",!0),Eo("A",!1);function vo(e,t){return t._meridiemParse}w("a",vo),w("A",vo),w("H",j,ur),w("h",j,mt),w("k",j,mt),w("HH",j,ce),w("hh",j,ce),w("kk",j,ce),w("hmm",fo),w("hmmss",ho),w("Hmm",fo),w("Hmmss",ho),L(["H","HH"],X),L(["k","kk"],function(e,t,n){var r=V(e);t[X]=r===24?0:r}),L(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),L(["h","hh"],function(e,t,n){t[X]=V(e),M(n).bigHour=!0}),L("hmm",function(e,t,n){var r=e.length-2;t[X]=V(e.substr(0,r)),t[we]=V(e.substr(r)),M(n).bigHour=!0}),L("hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[X]=V(e.substr(0,r)),t[we]=V(e.substr(r,2)),t[Pe]=V(e.substr(o)),M(n).bigHour=!0}),L("Hmm",function(e,t,n){var r=e.length-2;t[X]=V(e.substr(0,r)),t[we]=V(e.substr(r))}),L("Hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[X]=V(e.substr(0,r)),t[we]=V(e.substr(r,2)),t[Pe]=V(e.substr(o))});function vd(e){return(e+"").toLowerCase().charAt(0)==="p"}var Od=/[ap]\.?m?\.?/i,Dd=gt("Hours",!0);function Nd(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var Oo={calendar:mc,longDateFormat:wc,invalidDate:kc,ordinal:Ec,dayOfMonthOrdinalParse:vc,relativeTime:Dc,months:Uc,monthsShort:go,week:ed,weekdays:ad,weekdaysMin:ld,weekdaysShort:bo,meridiemParse:Od},z={},Wt={},jt;function Td(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function Do(e){return e&&e.toLowerCase().replace("_","-")}function Md(e){for(var t=0,n,r,o,i;t<e.length;){for(i=Do(e[t]).split("-"),n=i.length,r=Do(e[t+1]),r=r?r.split("-"):null;n>0;){if(o=mn(i.slice(0,n).join("-")),o)return o;if(r&&r.length>=n&&Td(i,r)>=n-1)break;n--}t++}return jt}function Cd(e){return!!(e&&e.match("^[^/\\\\]*$"))}function mn(e){var t=null,n;if(z[e]===void 0&&typeof module<"u"&&module&&module.exports&&Cd(e))try{t=jt._abbr,n=require,n("./locale/"+e),Ke(t)}catch{z[e]=null}return z[e]}function Ke(e,t){var n;return e&&(ae(t)?n=Ie(e):n=_r(e,t),n?jt=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),jt._abbr}function _r(e,t){if(t!==null){var n,r=Oo;if(t.abbr=e,z[e]!=null)io("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."),r=z[e]._config;else if(t.parentLocale!=null)if(z[t.parentLocale]!=null)r=z[t.parentLocale]._config;else if(n=mn(t.parentLocale),n!=null)r=n._config;else return Wt[t.parentLocale]||(Wt[t.parentLocale]=[]),Wt[t.parentLocale].push({name:e,config:t}),null;return z[e]=new sr(rr(r,t)),Wt[e]&&Wt[e].forEach(function(o){_r(o.name,o.config)}),Ke(e),z[e]}else return delete z[e],null}function Vd(e,t){if(t!=null){var n,r,o=Oo;z[e]!=null&&z[e].parentLocale!=null?z[e].set(rr(z[e]._config,t)):(r=mn(e),r!=null&&(o=r._config),t=rr(o,t),r==null&&(t.abbr=e),n=new sr(t),n.parentLocale=z[e],z[e]=n),Ke(e)}else z[e]!=null&&(z[e].parentLocale!=null?(z[e]=z[e].parentLocale,e===Ke()&&Ke(e)):z[e]!=null&&delete z[e]);return z[e]}function Ie(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return jt;if(!_e(e)){if(t=mn(e),t)return t;e=[e]}return Md(e)}function Rd(){return or(z)}function yr(e){var t,n=e._a;return n&&M(e).overflow===-2&&(t=n[$e]<0||n[$e]>11?$e:n[De]<1||n[De]>hr(n[se],n[$e])?De:n[X]<0||n[X]>24||n[X]===24&&(n[we]!==0||n[Pe]!==0||n[tt]!==0)?X:n[we]<0||n[we]>59?we:n[Pe]<0||n[Pe]>59?Pe:n[tt]<0||n[tt]>999?tt:-1,M(e)._overflowDayOfYear&&(t<se||t>De)&&(t=De),M(e)._overflowWeeks&&t===-1&&(t=Ic),M(e)._overflowWeekday&&t===-1&&(t=Bc),M(e).overflow=t),e}var $d=/^\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)?)?$/,Pd=/^\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)?)?$/,xd=/Z|[+-]\d\d(?::?\d\d)?/,gn=[["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]],wr=[["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/]],Id=/^\/?Date\((-?\d+)/i,Bd=/^(?:(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}))$/,Ad={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 No(e){var t,n,r=e._i,o=$d.exec(r)||Pd.exec(r),i,a,l,c,u=gn.length,d=wr.length;if(o){for(M(e).iso=!0,t=0,n=u;t<n;t++)if(gn[t][1].exec(o[1])){a=gn[t][0],i=gn[t][2]!==!1;break}if(a==null){e._isValid=!1;return}if(o[3]){for(t=0,n=d;t<n;t++)if(wr[t][1].exec(o[3])){l=(o[2]||" ")+wr[t][0];break}if(l==null){e._isValid=!1;return}}if(!i&&l!=null){e._isValid=!1;return}if(o[4])if(xd.exec(o[4]))c="Z";else{e._isValid=!1;return}e._f=a+(l||"")+(c||""),kr(e)}else e._isValid=!1}function Fd(e,t,n,r,o,i){var a=[Yd(e),go.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(o,10)];return i&&a.push(parseInt(i,10)),a}function Yd(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Ld(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Ud(e,t,n){if(e){var r=bo.indexOf(e),o=new Date(t[0],t[1],t[2]).getDay();if(r!==o)return M(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function Wd(e,t,n){if(e)return Ad[e];if(t)return 0;var r=parseInt(n,10),o=r%100,i=(r-o)/100;return i*60+o}function To(e){var t=Bd.exec(Ld(e._i)),n;if(t){if(n=Fd(t[4],t[3],t[2],t[5],t[6],t[7]),!Ud(t[1],n,e))return;e._a=n,e._tzm=Wd(t[8],t[9],t[10]),e._d=Lt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),M(e).rfc2822=!0}else e._isValid=!1}function jd(e){var t=Id.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(No(e),e._isValid===!1)delete e._isValid;else return;if(To(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:_.createFromInputFallback(e)}_.createFromInputFallback=ue("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 _t(e,t,n){return e??t??n}function Hd(e){var t=new Date(_.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Sr(e){var t,n,r=[],o,i,a;if(!e._d){for(o=Hd(e),e._w&&e._a[De]==null&&e._a[$e]==null&&Gd(e),e._dayOfYear!=null&&(a=_t(e._a[se],o[se]),(e._dayOfYear>Ft(a)||e._dayOfYear===0)&&(M(e)._overflowDayOfYear=!0),n=Lt(a,0,e._dayOfYear),e._a[$e]=n.getUTCMonth(),e._a[De]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=o[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[X]===24&&e._a[we]===0&&e._a[Pe]===0&&e._a[tt]===0&&(e._nextDay=!0,e._a[X]=0),e._d=(e._useUTC?Lt:Qc).apply(null,r),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[X]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==i&&(M(e).weekdayMismatch=!0)}}function Gd(e){var t,n,r,o,i,a,l,c,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,a=4,n=_t(t.GG,e._a[se],Ut(H(),1,4).year),r=_t(t.W,1),o=_t(t.E,1),(o<1||o>7)&&(c=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,u=Ut(H(),i,a),n=_t(t.gg,e._a[se],u.year),r=_t(t.w,u.week),t.d!=null?(o=t.d,(o<0||o>6)&&(c=!0)):t.e!=null?(o=t.e+i,(t.e<0||t.e>6)&&(c=!0)):o=i),r<1||r>xe(n,i,a)?M(e)._overflowWeeks=!0:c!=null?M(e)._overflowWeekday=!0:(l=ko(n,r,o,i,a),e._a[se]=l.year,e._dayOfYear=l.dayOfYear)}_.ISO_8601=function(){},_.RFC_2822=function(){};function kr(e){if(e._f===_.ISO_8601){No(e);return}if(e._f===_.RFC_2822){To(e);return}e._a=[],M(e).empty=!0;var t=""+e._i,n,r,o,i,a,l=t.length,c=0,u,d;for(o=ao(e._f,e._locale).match(ir)||[],d=o.length,n=0;n<d;n++)i=o[n],r=(t.match($c(i,e))||[])[0],r&&(a=t.substr(0,t.indexOf(r)),a.length>0&&M(e).unusedInput.push(a),t=t.slice(t.indexOf(r)+r.length),c+=r.length),ht[i]?(r?M(e).empty=!1:M(e).unusedTokens.push(i),xc(i,r,e)):e._strict&&!r&&M(e).unusedTokens.push(i);M(e).charsLeftOver=l-c,t.length>0&&M(e).unusedInput.push(t),e._a[X]<=12&&M(e).bigHour===!0&&e._a[X]>0&&(M(e).bigHour=void 0),M(e).parsedDateParts=e._a.slice(0),M(e).meridiem=e._meridiem,e._a[X]=zd(e._locale,e._a[X],e._meridiem),u=M(e).era,u!==null&&(e._a[se]=e._locale.erasConvertYear(u,e._a[se])),Sr(e),yr(e)}function zd(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function Kd(e){var t,n,r,o,i,a,l=!1,c=e._f.length;if(c===0){M(e).invalidFormat=!0,e._d=new Date(NaN);return}for(o=0;o<c;o++)i=0,a=!1,t=nr({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[o],kr(t),er(t)&&(a=!0),i+=M(t).charsLeftOver,i+=M(t).unusedTokens.length*10,M(t).score=i,l?i<r&&(r=i,n=t):(r==null||i<r||a)&&(r=i,n=t,a&&(l=!0));ze(e,n||t)}function qd(e){if(!e._d){var t=lr(e._i),n=t.day===void 0?t.date:t.day;e._a=no([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),Sr(e)}}function Zd(e){var t=new It(yr(Mo(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Mo(e){var t=e._i,n=e._f;return e._locale=e._locale||Ie(e._l),t===null||n===void 0&&t===""?rn({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),ye(t)?new It(yr(t)):(xt(t)?e._d=t:_e(n)?Kd(e):n?kr(e):Jd(e),er(e)||(e._d=null),e))}function Jd(e){var t=e._i;ae(t)?e._d=new Date(_.now()):xt(t)?e._d=new Date(t.valueOf()):typeof t=="string"?jd(e):_e(t)?(e._a=no(t.slice(0),function(n){return parseInt(n,10)}),Sr(e)):et(t)?qd(e):Ve(t)?e._d=new Date(t):_.createFromInputFallback(e)}function Co(e,t,n,r,o){var i={};return(t===!0||t===!1)&&(r=t,t=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(et(e)&&Qn(e)||_e(e)&&e.length===0)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=o,i._l=n,i._i=e,i._f=t,i._strict=r,Zd(i)}function H(e,t,n,r){return Co(e,t,n,r,!1)}var Qd=ue("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=H.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:rn()}),Xd=ue("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=H.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:rn()});function Vo(e,t){var n,r;if(t.length===1&&_e(t[0])&&(t=t[0]),!t.length)return H();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}function eu(){var e=[].slice.call(arguments,0);return Vo("isBefore",e)}function tu(){var e=[].slice.call(arguments,0);return Vo("isAfter",e)}var nu=function(){return Date.now?Date.now():+new Date},Ht=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ru(e){var t,n=!1,r,o=Ht.length;for(t in e)if(B(e,t)&&!(Z.call(Ht,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<o;++r)if(e[Ht[r]]){if(n)return!1;parseFloat(e[Ht[r]])!==V(e[Ht[r]])&&(n=!0)}return!0}function su(){return this._isValid}function ou(){return Se(NaN)}function _n(e){var t=lr(e),n=t.year||0,r=t.quarter||0,o=t.month||0,i=t.week||t.isoWeek||0,a=t.day||0,l=t.hour||0,c=t.minute||0,u=t.second||0,d=t.millisecond||0;this._isValid=ru(t),this._milliseconds=+d+u*1e3+c*6e4+l*1e3*60*60,this._days=+a+i*7,this._months=+o+r*3+n*12,this._data={},this._locale=Ie(),this._bubble()}function yn(e){return e instanceof _n}function br(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function iu(e,t,n){var r=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),i=0,a;for(a=0;a<r;a++)(n&&e[a]!==t[a]||!n&&V(e[a])!==V(t[a]))&&i++;return i+o}function Ro(e,t){E(e,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+Oe(~~(n/60),2)+t+Oe(~~n%60,2)})}Ro("Z",":"),Ro("ZZ",""),w("Z",un),w("ZZ",un),L(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Er(un,e)});var au=/([\+\-]|\d\d)/gi;function Er(e,t){var n=(t||"").match(e),r,o,i;return n===null?null:(r=n[n.length-1]||[],o=(r+"").match(au)||["-",0,0],i=+(o[1]*60)+V(o[2]),i===0?0:o[0]==="+"?i:-i)}function vr(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(ye(e)||xt(e)?e.valueOf():H(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),_.updateOffset(n,!1),n):H(e).local()}function Or(e){return-Math.round(e._d.getTimezoneOffset())}_.updateOffset=function(){};function lu(e,t,n){var r=this._offset||0,o;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=Er(un,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(o=Or(this)),this._offset=e,this._isUTC=!0,o!=null&&this.add(o,"m"),r!==e&&(!t||this._changeInProgress?Io(this,Se(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,_.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:Or(this)}function cu(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function du(e){return this.utcOffset(0,e)}function uu(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Or(this),"m")),this}function fu(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Er(Vc,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function hu(e){return this.isValid()?(e=e?H(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function pu(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function mu(){if(!ae(this._isDSTShifted))return this._isDSTShifted;var e={},t;return nr(e,this),e=Mo(e),e._a?(t=e._isUTC?Ee(e._a):H(e._a),this._isDSTShifted=this.isValid()&&iu(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function gu(){return this.isValid()?!this._isUTC:!1}function _u(){return this.isValid()?this._isUTC:!1}function $o(){return this.isValid()?this._isUTC&&this._offset===0:!1}var yu=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,wu=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Se(e,t){var n=e,r=null,o,i,a;return yn(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:Ve(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=yu.exec(e))?(o=r[1]==="-"?-1:1,n={y:0,d:V(r[De])*o,h:V(r[X])*o,m:V(r[we])*o,s:V(r[Pe])*o,ms:V(br(r[tt]*1e3))*o}):(r=wu.exec(e))?(o=r[1]==="-"?-1:1,n={y:nt(r[2],o),M:nt(r[3],o),w:nt(r[4],o),d:nt(r[5],o),h:nt(r[6],o),m:nt(r[7],o),s:nt(r[8],o)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(a=Su(H(n.from),H(n.to)),n={},n.ms=a.milliseconds,n.M=a.months),i=new _n(n),yn(e)&&B(e,"_locale")&&(i._locale=e._locale),yn(e)&&B(e,"_isValid")&&(i._isValid=e._isValid),i}Se.fn=_n.prototype,Se.invalid=ou;function nt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Po(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Su(e,t){var n;return e.isValid()&&t.isValid()?(t=vr(t,e),e.isBefore(t)?n=Po(e,t):(n=Po(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function xo(e,t){return function(n,r){var o,i;return r!==null&&!isNaN(+r)&&(io(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=n,n=r,r=i),o=Se(n,r),Io(this,o,e),this}}function Io(e,t,n,r){var o=t._milliseconds,i=br(t._days),a=br(t._months);e.isValid()&&(r=r??!0,a&&yo(e,Yt(e,"Month")+a*n),i&&mo(e,"Date",Yt(e,"Date")+i*n),o&&e._d.setTime(e._d.valueOf()+o*n),r&&_.updateOffset(e,i||a))}var ku=xo(1,"add"),bu=xo(-1,"subtract");function Bo(e){return typeof e=="string"||e instanceof String}function Eu(e){return ye(e)||xt(e)||Bo(e)||Ve(e)||Ou(e)||vu(e)||e===null||e===void 0}function vu(e){var t=et(e)&&!Qn(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o,i,a=r.length;for(o=0;o<a;o+=1)i=r[o],n=n||B(e,i);return t&&n}function Ou(e){var t=_e(e),n=!1;return t&&(n=e.filter(function(r){return!Ve(r)&&Bo(e)}).length===0),t&&n}function Du(e){var t=et(e)&&!Qn(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],o,i;for(o=0;o<r.length;o+=1)i=r[o],n=n||B(e,i);return t&&n}function Nu(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Tu(e,t){arguments.length===1&&(arguments[0]?Eu(arguments[0])?(e=arguments[0],t=void 0):Du(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||H(),r=vr(n,this).startOf("day"),o=_.calendarFormat(this,r)||"sameElse",i=t&&(ve(t[o])?t[o].call(this,n):t[o]);return this.format(i||this.localeData().calendar(o,this,H(n)))}function Mu(){return new It(this)}function Cu(e,t){var n=ye(e)?e:H(e);return this.isValid()&&n.isValid()?(t=fe(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function Vu(e,t){var n=ye(e)?e:H(e);return this.isValid()&&n.isValid()?(t=fe(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function Ru(e,t,n,r){var o=ye(e)?e:H(e),i=ye(t)?t:H(t);return this.isValid()&&o.isValid()&&i.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(o,n):!this.isBefore(o,n))&&(r[1]===")"?this.isBefore(i,n):!this.isAfter(i,n))):!1}function $u(e,t){var n=ye(e)?e:H(e),r;return this.isValid()&&n.isValid()?(t=fe(t)||"millisecond",t==="millisecond"?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function Pu(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function xu(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Iu(e,t,n){var r,o,i;if(!this.isValid())return NaN;if(r=vr(e,this),!r.isValid())return NaN;switch(o=(r.utcOffset()-this.utcOffset())*6e4,t=fe(t),t){case"year":i=wn(this,r)/12;break;case"month":i=wn(this,r);break;case"quarter":i=wn(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-o)/864e5;break;case"week":i=(this-r-o)/6048e5;break;default:i=this-r}return n?i:he(i)}function wn(e,t){if(e.date()<t.date())return-wn(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months"),o,i;return t-r<0?(o=e.clone().add(n-1,"months"),i=(t-r)/(r-o)):(o=e.clone().add(n+1,"months"),i=(t-r)/(o-r)),-(n+i)||0}_.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",_.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Bu(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Au(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?on(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ve(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",on(n,"Z")):on(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Fu(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,o,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(n+r+o+i)}function Yu(e){e||(e=this.isUtc()?_.defaultFormatUtc:_.defaultFormat);var t=on(this,e);return this.localeData().postformat(t)}function Lu(e,t){return this.isValid()&&(ye(e)&&e.isValid()||H(e).isValid())?Se({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Uu(e){return this.from(H(),e)}function Wu(e,t){return this.isValid()&&(ye(e)&&e.isValid()||H(e).isValid())?Se({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ju(e){return this.to(H(),e)}function Ao(e){var t;return e===void 0?this._locale._abbr:(t=Ie(e),t!=null&&(this._locale=t),this)}var Fo=ue("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 Yo(){return this._locale}var Sn=1e3,yt=60*Sn,kn=60*yt,Lo=(365*400+97)*24*kn;function wt(e,t){return(e%t+t)%t}function Uo(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-Lo:new Date(e,t,n).valueOf()}function Wo(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-Lo:Date.UTC(e,t,n)}function Hu(e){var t,n;if(e=fe(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Wo:Uo,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=wt(t+(this._isUTC?0:this.utcOffset()*yt),kn);break;case"minute":t=this._d.valueOf(),t-=wt(t,yt);break;case"second":t=this._d.valueOf(),t-=wt(t,Sn);break}return this._d.setTime(t),_.updateOffset(this,!0),this}function Gu(e){var t,n;if(e=fe(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Wo:Uo,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=kn-wt(t+(this._isUTC?0:this.utcOffset()*yt),kn)-1;break;case"minute":t=this._d.valueOf(),t+=yt-wt(t,yt)-1;break;case"second":t=this._d.valueOf(),t+=Sn-wt(t,Sn)-1;break}return this._d.setTime(t),_.updateOffset(this,!0),this}function zu(){return this._d.valueOf()-(this._offset||0)*6e4}function Ku(){return Math.floor(this.valueOf()/1e3)}function qu(){return new Date(this.valueOf())}function Zu(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Ju(){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 Qu(){return this.isValid()?this.toISOString():null}function Xu(){return er(this)}function ef(){return ze({},M(this))}function tf(){return M(this).overflow}function nf(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}E("N",0,0,"eraAbbr"),E("NN",0,0,"eraAbbr"),E("NNN",0,0,"eraAbbr"),E("NNNN",0,0,"eraName"),E("NNNNN",0,0,"eraNarrow"),E("y",["y",1],"yo","eraYear"),E("y",["yy",2],0,"eraYear"),E("y",["yyy",3],0,"eraYear"),E("y",["yyyy",4],0,"eraYear"),w("N",Dr),w("NN",Dr),w("NNN",Dr),w("NNNN",pf),w("NNNNN",mf),L(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?M(n).era=o:M(n).invalidEra=e}),w("y",pt),w("yy",pt),w("yyy",pt),w("yyyy",pt),w("yo",gf),L(["y","yy","yyy","yyyy"],se),L(["yo"],function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[se]=n._locale.eraYearOrdinalParse(e,o):t[se]=parseInt(e,10)});function rf(e,t){var n,r,o,i=this._eras||Ie("en")._eras;for(n=0,r=i.length;n<r;++n){switch(typeof i[n].since){case"string":o=_(i[n].since).startOf("day"),i[n].since=o.valueOf();break}switch(typeof i[n].until){case"undefined":i[n].until=1/0;break;case"string":o=_(i[n].until).startOf("day").valueOf(),i[n].until=o.valueOf();break}}return i}function sf(e,t,n){var r,o,i=this.eras(),a,l,c;for(e=e.toUpperCase(),r=0,o=i.length;r<o;++r)if(a=i[r].name.toUpperCase(),l=i[r].abbr.toUpperCase(),c=i[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(l===e)return i[r];break;case"NNNN":if(a===e)return i[r];break;case"NNNNN":if(c===e)return i[r];break}else if([a,l,c].indexOf(e)>=0)return i[r]}function of(e,t){var n=e.since<=e.until?1:-1;return t===void 0?_(e.since).year():_(e.since).year()+(t-e.offset)*n}function af(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].name;return""}function lf(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].narrow;return""}function cf(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].abbr;return""}function df(){var e,t,n,r,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=o[e].since<=o[e].until?1:-1,r=this.clone().startOf("day").valueOf(),o[e].since<=r&&r<=o[e].until||o[e].until<=r&&r<=o[e].since)return(this.year()-_(o[e].since).year())*n+o[e].offset;return this.year()}function uf(e){return B(this,"_erasNameRegex")||Nr.call(this),e?this._erasNameRegex:this._erasRegex}function ff(e){return B(this,"_erasAbbrRegex")||Nr.call(this),e?this._erasAbbrRegex:this._erasRegex}function hf(e){return B(this,"_erasNarrowRegex")||Nr.call(this),e?this._erasNarrowRegex:this._erasRegex}function Dr(e,t){return t.erasAbbrRegex(e)}function pf(e,t){return t.erasNameRegex(e)}function mf(e,t){return t.erasNarrowRegex(e)}function gf(e,t){return t._eraYearOrdinalRegex||pt}function Nr(){var e=[],t=[],n=[],r=[],o,i,a,l,c,u=this.eras();for(o=0,i=u.length;o<i;++o)a=Re(u[o].name),l=Re(u[o].abbr),c=Re(u[o].narrow),t.push(a),e.push(l),n.push(c),r.push(a),r.push(l),r.push(c);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}E(0,["gg",2],0,function(){return this.weekYear()%100}),E(0,["GG",2],0,function(){return this.isoWeekYear()%100});function bn(e,t){E(0,[e,e.length],0,t)}bn("gggg","weekYear"),bn("ggggg","weekYear"),bn("GGGG","isoWeekYear"),bn("GGGGG","isoWeekYear"),w("G",dn),w("g",dn),w("GG",j,ce),w("gg",j,ce),w("GGGG",dr,cr),w("gggg",dr,cr),w("GGGGG",cn,an),w("ggggg",cn,an),At(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=V(e)}),At(["gg","GG"],function(e,t,n,r){t[r]=_.parseTwoDigitYear(e)});function _f(e){return jo.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function yf(e){return jo.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function wf(){return xe(this.year(),1,4)}function Sf(){return xe(this.isoWeekYear(),1,4)}function kf(){var e=this.localeData()._week;return xe(this.year(),e.dow,e.doy)}function bf(){var e=this.localeData()._week;return xe(this.weekYear(),e.dow,e.doy)}function jo(e,t,n,r,o){var i;return e==null?Ut(this,r,o).year:(i=xe(e,r,o),t>i&&(t=i),Ef.call(this,e,t,n,r,o))}function Ef(e,t,n,r,o){var i=ko(e,t,n,r,o),a=Lt(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}E("Q",0,"Qo","quarter"),w("Q",co),L("Q",function(e,t){t[$e]=(V(e)-1)*3});function vf(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}E("D",["DD",2],"Do","date"),w("D",j,mt),w("DD",j,ce),w("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),L(["D","DD"],De),L("Do",function(e,t){t[De]=V(e.match(j)[0])});var Ho=gt("Date",!0);E("DDD",["DDDD",3],"DDDo","dayOfYear"),w("DDD",ln),w("DDDD",uo),L(["DDD","DDDD"],function(e,t,n){n._dayOfYear=V(e)});function Of(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}E("m",["mm",2],0,"minute"),w("m",j,ur),w("mm",j,ce),L(["m","mm"],we);var Df=gt("Minutes",!1);E("s",["ss",2],0,"second"),w("s",j,ur),w("ss",j,ce),L(["s","ss"],Pe);var Nf=gt("Seconds",!1);E("S",0,0,function(){return~~(this.millisecond()/100)}),E(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),E(0,["SSS",3],0,"millisecond"),E(0,["SSSS",4],0,function(){return this.millisecond()*10}),E(0,["SSSSS",5],0,function(){return this.millisecond()*100}),E(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),E(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),E(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),E(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),w("S",ln,co),w("SS",ln,ce),w("SSS",ln,uo);var qe,Go;for(qe="SSSS";qe.length<=9;qe+="S")w(qe,pt);function Tf(e,t){t[tt]=V(("0."+e)*1e3)}for(qe="S";qe.length<=9;qe+="S")L(qe,Tf);Go=gt("Milliseconds",!1),E("z",0,0,"zoneAbbr"),E("zz",0,0,"zoneName");function Mf(){return this._isUTC?"UTC":""}function Cf(){return this._isUTC?"Coordinated Universal Time":""}var m=It.prototype;m.add=ku,m.calendar=Tu,m.clone=Mu,m.diff=Iu,m.endOf=Gu,m.format=Yu,m.from=Lu,m.fromNow=Uu,m.to=Wu,m.toNow=ju,m.get=Fc,m.invalidAt=tf,m.isAfter=Cu,m.isBefore=Vu,m.isBetween=Ru,m.isSame=$u,m.isSameOrAfter=Pu,m.isSameOrBefore=xu,m.isValid=Xu,m.lang=Fo,m.locale=Ao,m.localeData=Yo,m.max=Xd,m.min=Qd,m.parsingFlags=ef,m.set=Yc,m.startOf=Hu,m.subtract=bu,m.toArray=Zu,m.toObject=Ju,m.toDate=qu,m.toISOString=Au,m.inspect=Fu,typeof Symbol<"u"&&Symbol.for!=null&&(m[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),m.toJSON=Qu,m.toString=Bu,m.unix=Ku,m.valueOf=zu,m.creationData=nf,m.eraName=af,m.eraNarrow=lf,m.eraAbbr=cf,m.eraYear=df,m.year=po,m.isLeapYear=Ac,m.weekYear=_f,m.isoWeekYear=yf,m.quarter=m.quarters=vf,m.month=wo,m.daysInMonth=qc,m.week=m.weeks=rd,m.isoWeek=m.isoWeeks=sd,m.weeksInYear=kf,m.weeksInWeekYear=bf,m.isoWeeksInYear=wf,m.isoWeeksInISOWeekYear=Sf,m.date=Ho,m.day=m.days=_d,m.weekday=yd,m.isoWeekday=wd,m.dayOfYear=Of,m.hour=m.hours=Dd,m.minute=m.minutes=Df,m.second=m.seconds=Nf,m.millisecond=m.milliseconds=Go,m.utcOffset=lu,m.utc=du,m.local=uu,m.parseZone=fu,m.hasAlignedHourOffset=hu,m.isDST=pu,m.isLocal=gu,m.isUtcOffset=_u,m.isUtc=$o,m.isUTC=$o,m.zoneAbbr=Mf,m.zoneName=Cf,m.dates=ue("dates accessor is deprecated. Use date instead.",Ho),m.months=ue("months accessor is deprecated. Use month instead",wo),m.years=ue("years accessor is deprecated. Use year instead",po),m.zone=ue("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",cu),m.isDSTShifted=ue("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",mu);function Vf(e){return H(e*1e3)}function Rf(){return H.apply(null,arguments).parseZone()}function zo(e){return e}var A=sr.prototype;A.calendar=gc,A.longDateFormat=Sc,A.invalidDate=bc,A.ordinal=Oc,A.preparse=zo,A.postformat=zo,A.relativeTime=Nc,A.pastFuture=Tc,A.set=pc,A.eras=rf,A.erasParse=sf,A.erasConvertYear=of,A.erasAbbrRegex=ff,A.erasNameRegex=uf,A.erasNarrowRegex=hf,A.months=Hc,A.monthsShort=Gc,A.monthsParse=Kc,A.monthsRegex=Jc,A.monthsShortRegex=Zc,A.week=Xc,A.firstDayOfYear=nd,A.firstDayOfWeek=td,A.weekdays=fd,A.weekdaysMin=pd,A.weekdaysShort=hd,A.weekdaysParse=gd,A.weekdaysRegex=Sd,A.weekdaysShortRegex=kd,A.weekdaysMinRegex=bd,A.isPM=vd,A.meridiem=Nd;function En(e,t,n,r){var o=Ie(),i=Ee().set(r,t);return o[n](i,e)}function Ko(e,t,n){if(Ve(e)&&(t=e,e=void 0),e=e||"",t!=null)return En(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=En(e,r,n,"month");return o}function Tr(e,t,n,r){typeof e=="boolean"?(Ve(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,Ve(t)&&(n=t,t=void 0),t=t||"");var o=Ie(),i=e?o._week.dow:0,a,l=[];if(n!=null)return En(t,(n+i)%7,r,"day");for(a=0;a<7;a++)l[a]=En(t,(a+i)%7,r,"day");return l}function $f(e,t){return Ko(e,t,"months")}function Pf(e,t){return Ko(e,t,"monthsShort")}function xf(e,t,n){return Tr(e,t,n,"weekdays")}function If(e,t,n){return Tr(e,t,n,"weekdaysShort")}function Bf(e,t,n){return Tr(e,t,n,"weekdaysMin")}Ke("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,n=V(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}}),_.lang=ue("moment.lang is deprecated. Use moment.locale instead.",Ke),_.langData=ue("moment.langData is deprecated. Use moment.localeData instead.",Ie);var Be=Math.abs;function Af(){var e=this._data;return this._milliseconds=Be(this._milliseconds),this._days=Be(this._days),this._months=Be(this._months),e.milliseconds=Be(e.milliseconds),e.seconds=Be(e.seconds),e.minutes=Be(e.minutes),e.hours=Be(e.hours),e.months=Be(e.months),e.years=Be(e.years),this}function qo(e,t,n,r){var o=Se(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function Ff(e,t){return qo(this,e,t,1)}function Yf(e,t){return qo(this,e,t,-1)}function Zo(e){return e<0?Math.floor(e):Math.ceil(e)}function Lf(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,o,i,a,l,c;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=Zo(Mr(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,o=he(e/1e3),r.seconds=o%60,i=he(o/60),r.minutes=i%60,a=he(i/60),r.hours=a%24,t+=he(a/24),c=he(Jo(t)),n+=c,t-=Zo(Mr(c)),l=he(n/12),n%=12,r.days=t,r.months=n,r.years=l,this}function Jo(e){return e*4800/146097}function Mr(e){return e*146097/4800}function Uf(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=fe(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+Jo(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Mr(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function Ae(e){return function(){return this.as(e)}}var Qo=Ae("ms"),Wf=Ae("s"),jf=Ae("m"),Hf=Ae("h"),Gf=Ae("d"),zf=Ae("w"),Kf=Ae("M"),qf=Ae("Q"),Zf=Ae("y"),Jf=Qo;function Qf(){return Se(this)}function Xf(e){return e=fe(e),this.isValid()?this[e+"s"]():NaN}function rt(e){return function(){return this.isValid()?this._data[e]:NaN}}var eh=rt("milliseconds"),th=rt("seconds"),nh=rt("minutes"),rh=rt("hours"),sh=rt("days"),oh=rt("months"),ih=rt("years");function ah(){return he(this.days()/7)}var Fe=Math.round,St={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function lh(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}function ch(e,t,n,r){var o=Se(e).abs(),i=Fe(o.as("s")),a=Fe(o.as("m")),l=Fe(o.as("h")),c=Fe(o.as("d")),u=Fe(o.as("M")),d=Fe(o.as("w")),f=Fe(o.as("y")),h=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||a<=1&&["m"]||a<n.m&&["mm",a]||l<=1&&["h"]||l<n.h&&["hh",l]||c<=1&&["d"]||c<n.d&&["dd",c];return n.w!=null&&(h=h||d<=1&&["w"]||d<n.w&&["ww",d]),h=h||u<=1&&["M"]||u<n.M&&["MM",u]||f<=1&&["y"]||["yy",f],h[2]=t,h[3]=+e>0,h[4]=r,lh.apply(null,h)}function dh(e){return e===void 0?Fe:typeof e=="function"?(Fe=e,!0):!1}function uh(e,t){return St[e]===void 0?!1:t===void 0?St[e]:(St[e]=t,e==="s"&&(St.ss=t-1),!0)}function fh(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=St,o,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},St,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),o=this.localeData(),i=ch(this,!n,r,o),n&&(i=o.pastFuture(+this,i)),o.postformat(i)}var Cr=Math.abs;function kt(e){return(e>0)-(e<0)||+e}function vn(){if(!this.isValid())return this.localeData().invalidDate();var e=Cr(this._milliseconds)/1e3,t=Cr(this._days),n=Cr(this._months),r,o,i,a,l=this.asSeconds(),c,u,d,f;return l?(r=he(e/60),o=he(r/60),e%=60,r%=60,i=he(n/12),n%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",c=l<0?"-":"",u=kt(this._months)!==kt(l)?"-":"",d=kt(this._days)!==kt(l)?"-":"",f=kt(this._milliseconds)!==kt(l)?"-":"",c+"P"+(i?u+i+"Y":"")+(n?u+n+"M":"")+(t?d+t+"D":"")+(o||r||e?"T":"")+(o?f+o+"H":"")+(r?f+r+"M":"")+(e?f+a+"S":"")):"P0D"}var x=_n.prototype;x.isValid=su,x.abs=Af,x.add=Ff,x.subtract=Yf,x.as=Uf,x.asMilliseconds=Qo,x.asSeconds=Wf,x.asMinutes=jf,x.asHours=Hf,x.asDays=Gf,x.asWeeks=zf,x.asMonths=Kf,x.asQuarters=qf,x.asYears=Zf,x.valueOf=Jf,x._bubble=Lf,x.clone=Qf,x.get=Xf,x.milliseconds=eh,x.seconds=th,x.minutes=nh,x.hours=rh,x.days=sh,x.weeks=ah,x.months=oh,x.years=ih,x.humanize=fh,x.toISOString=vn,x.toString=vn,x.toJSON=vn,x.locale=Ao,x.localeData=Yo,x.toIsoString=ue("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",vn),x.lang=Fo,E("X",0,0,"unix"),E("x",0,0,"valueOf"),w("x",dn),w("X",Rc),L("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)}),L("x",function(e,t,n){n._d=new Date(V(e))});//! moment.js
|
|
45
|
+
_.version="2.30.1",fc(H),_.fn=m,_.min=eu,_.max=tu,_.now=nu,_.utc=Ee,_.unix=Vf,_.months=$f,_.isDate=xt,_.locale=Ke,_.invalid=rn,_.duration=Se,_.isMoment=ye,_.weekdays=xf,_.parseZone=Rf,_.localeData=Ie,_.isDuration=yn,_.monthsShort=Pf,_.weekdaysMin=Bf,_.defineLocale=_r,_.updateLocale=Vd,_.locales=Rd,_.weekdaysShort=If,_.normalizeUnits=fe,_.relativeTimeRounding=dh,_.relativeTimeThreshold=uh,_.calendarFormat=Nu,_.prototype=m,_.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"};const hh=["title"],Vr=s.defineComponent({__name:"CapeSingleValue",props:{fieldValuePair:{},link:{}},setup(e){const t=e,n=s.computed(()=>t.fieldValuePair.value),r=s.computed(()=>t.fieldValuePair.field),o=s.computed(()=>{let i=`${t.fieldValuePair.value}`;return t.fieldValuePair.field.type=="date"&&(i=_(i).format("dddd, D MMMM YYYY")),i});return(i,a)=>{const l=s.resolveComponent("router-link");return s.openBlock(),s.createElementBlock("span",{class:"cape-single-value",title:r.value.description},[i.link?(s.openBlock(),s.createBlock(l,{key:0,to:r.value.id+"/"+n.value},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(o.value),1)]),_:1},8,["to"])):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(o.value),1)],64))],8,hh)}}}),ph={key:0,class:"cape-error cape-value-error"},mh={key:1,class:"cape-value"},gh={key:0,class:"cape-value-null"},_h={key:0,class:"cape-value-multiple"},Xo=s.defineComponent({__name:"CapeValue",props:{fieldValue:{},link:{},hideIfEmpty:{}},setup(e){const t=e,n=s.computed(()=>{var i;return(i=t.fieldValue)==null?void 0:i.value}),r=s.computed(()=>{var i;return(i=t.fieldValue)==null?void 0:i.field}),o=s.computed(()=>n.value===void 0||n.value===""||Array.isArray(n)&&n.value.length===0);return(i,a)=>!i.fieldValue||!r.value?(s.openBlock(),s.createElementBlock("div",ph," [Error: field value pair does not exist!] ")):!i.hideIfEmpty||!o.value?(s.openBlock(),s.createElementBlock("div",mh,[o.value?(s.openBlock(),s.createElementBlock("div",gh,"undefined")):(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass("cape-value cape-value-field-"+r.value.id)},[r.value.isMultiple?(s.openBlock(),s.createElementBlock("ol",_h,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(n.value,(l,c)=>(s.openBlock(),s.createElementBlock("li",{key:c},[s.createVNode(Vr,{"field-value-pair":{field:r.value,value:l},link:i.link},null,8,["field-value-pair","link"])]))),128))])):(s.openBlock(),s.createBlock(Vr,{key:1,"field-value-pair":i.fieldValue,link:i.link},null,8,["field-value-pair","link"]))],2))])):s.createCommentVNode("",!0)}}),yh={key:0,class:"cape-labelled-value"},wh={key:0,class:"cape-error cape-labelled-value-error"},Sh=["title"],kh={key:1,class:"cape-labelled-value-label"},bh=s.defineComponent({__name:"CapeLabelledValue",props:{fieldValue:{},link:{},hideIfEmpty:{}},setup(e){const t=e,n=s.computed(()=>{var i;return(i=t.fieldValue)==null?void 0:i.value}),r=s.computed(()=>{var i;return(i=t.fieldValue)==null?void 0:i.field}),o=s.computed(()=>n.value===void 0||n.value===""||Array.isArray(n)&&n.value.length===0);return(i,a)=>!i.hideIfEmpty||!o.value?(s.openBlock(),s.createElementBlock("div",yh,[!i.fieldValue||!r.value?(s.openBlock(),s.createElementBlock("div",wh," [Error, trying to render non-existent field] ")):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[r.value.description!==void 0&&r.value.description!==""?(s.openBlock(),s.createElementBlock("div",{key:0,title:r.value.description,class:"cape-labelled-value-label","data-toggle":"tooltip"},s.toDisplayString(r.value.label),9,Sh)):(s.openBlock(),s.createElementBlock("div",kh,s.toDisplayString(r.value.label),1)),s.createVNode(Xo,{link:i.link,"field-value":i.fieldValue},null,8,["link","field-value"])],64))])):s.createCommentVNode("",!0)}}),Eh={class:"cape-filter-label"},vh=["for"],Oh={class:"cape-filter-mode"},Dh=[s.createElementVNode("option",{value:"contains"},"contains",-1),s.createElementVNode("option",{value:"is"},"is",-1),s.createElementVNode("option",{value:"set"},"is present",-1),s.createElementVNode("option",{value:"notSet"},"is not present",-1)],Nh={class:"cape-filter-term"},Th=["id","placeholder"],Mh=["id","placeholder"],Ch=s.defineComponent({__name:"CapeFilterFieldText",props:{filterId:{}},setup(e){const t=e,n=K(),r=s.computed(()=>n.byId(t.filterId)),o=s.computed(()=>r.value.field);return(i,a)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("div",Eh,[s.createElementVNode("label",{for:"cape-filter-field-input-"+r.value.id,"data-test":"filter-label"},s.toDisplayString(r.value.field.label),9,vh)]),s.createElementVNode("div",Oh,[r.value.field.changeFilterMode?s.withDirectives((s.openBlock(),s.createElementBlock("select",{key:0,"onUpdate:modelValue":a[0]||(a[0]=l=>r.value.mode=l),"data-test":"filter-mode-select","aria-label":"Filter mode"},Dh,512)),[[s.vModelSelect,r.value.mode]]):s.createCommentVNode("",!0)]),s.createElementVNode("div",Nh,[r.value.mode==="contains"?s.withDirectives((s.openBlock(),s.createElementBlock("input",{key:0,id:"cape-filter-field-input-"+r.value.id,"onUpdate:modelValue":a[1]||(a[1]=l=>r.value.term=l),placeholder:o.value.placeholderContains,class:"cape-filter-field-text-term","data-test":"filter-term-input"},null,8,Th)),[[s.vModelText,r.value.term]]):s.createCommentVNode("",!0),r.value.mode==="is"?s.withDirectives((s.openBlock(),s.createElementBlock("input",{key:1,id:"cape-filter-field-input-"+r.value.id,"onUpdate:modelValue":a[2]||(a[2]=l=>r.value.term=l),placeholder:o.value.placeholderIs,class:"cape-filter-field-text-term","data-test":"filter-term-input"},null,8,Mh)),[[s.vModelText,r.value.term]]):s.createCommentVNode("",!0)])],64))}}),Vh={class:"cape-filter-label"},Rh=["for"],$h={class:"cape-filter-wide-term"},Ph=["id","placeholder"],xh=s.defineComponent({__name:"CapeFilterFreeText",props:{filterId:{}},setup(e){const t=e,n=K(),r=s.computed(()=>n.byId(t.filterId));return(o,i)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("div",Vh,[s.createElementVNode("label",{for:"cape-filter-input-"+r.value.id},"Free text",8,Rh)]),s.createElementVNode("div",$h,[s.withDirectives(s.createElementVNode("input",{id:"cape-filter-input-"+r.value.id,"onUpdate:modelValue":i[0]||(i[0]=a=>r.value.term=a),placeholder:r.value.placeholder,class:"cape-filter-freetext-term","data-test":"filter-term-input"},null,8,Ph),[[s.vModelText,r.value.term]])])],64))}}),Ih={class:"cape-filter-field-enum-one-of-checkbox"},Bh=["id","value"],Ah=["for"],Fh=s.defineComponent({__name:"CapeFilterFieldEnumOneOfCheckbox",props:{filterId:{}},setup(e){const t=e,r=K().byId(t.filterId),o=r.field;return(i,a)=>(s.openBlock(),s.createElementBlock("ul",Ih,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(o).values,l=>(s.openBlock(),s.createElementBlock("li",{key:l},[s.withDirectives(s.createElementVNode("input",{id:"cape-filter-field-input-"+s.unref(r).id+"-"+l,"onUpdate:modelValue":a[0]||(a[0]=c=>s.unref(r).oneOfTerms=c),value:l,type:"checkbox"},null,8,Bh),[[s.vModelCheckbox,s.unref(r).oneOfTerms]]),s.createElementVNode("label",{for:"cape-filter-field-input-"+s.unref(r).id+"-"+l},s.toDisplayString(l),9,Ah)]))),128))]))}});function Rr(e){return e===0?!1:Array.isArray(e)&&e.length===0?!0:!e}function Yh(e){return(...t)=>!e(...t)}function Lh(e,t){return e===void 0&&(e="undefined"),e===null&&(e="null"),e===!1&&(e="false"),e.toString().toLowerCase().indexOf(t.trim())!==-1}function ei(e,t,n,r){return t?e.filter(o=>Lh(r(o,n),t)).sort((o,i)=>r(o,n).length-r(i,n).length):e}function Uh(e){return e.filter(t=>!t.$isLabel)}function $r(e,t){return n=>n.reduce((r,o)=>o[e]&&o[e].length?(r.push({$groupLabel:o[t],$isLabel:!0}),r.concat(o[e])):r,[])}function Wh(e,t,n,r,o){return i=>i.map(a=>{if(!a[n])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const l=ei(a[n],e,t,o);return l.length?{[r]:a[r],[n]:l}:[]})}const ti=(...e)=>t=>e.reduce((n,r)=>r(n),t);var jh={data(){return{search:"",isOpen:!1,preferredOpenDirection:"below",optimizedHeight:this.maxHeight}},props:{internalSearch:{type:Boolean,default:!0},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},trackBy:{type:String},label:{type:String},searchable:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0},hideSelected:{type:Boolean,default:!1},placeholder:{type:String,default:"Select option"},allowEmpty:{type:Boolean,default:!0},resetAfter:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},customLabel:{type:Function,default(e,t){return Rr(e)?"":t?e[t]:e}},taggable:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:"Press enter to create a tag"},tagPosition:{type:String,default:"top"},max:{type:[Number,Boolean],default:!1},id:{default:null},optionsLimit:{type:Number,default:1e3},groupValues:{type:String},groupLabel:{type:String},groupSelect:{type:Boolean,default:!1},blockKeys:{type:Array,default(){return[]}},preserveSearch:{type:Boolean,default:!1},preselectFirst:{type:Boolean,default:!1},preventAutofocus:{type:Boolean,default:!1}},mounted(){!this.multiple&&this.max&&console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."),this.preselectFirst&&!this.internalValue.length&&this.options.length&&this.select(this.filteredOptions[0])},computed:{internalValue(){return this.modelValue||this.modelValue===0?Array.isArray(this.modelValue)?this.modelValue:[this.modelValue]:[]},filteredOptions(){const e=this.search||"",t=e.toLowerCase().trim();let n=this.options.concat();return this.internalSearch?n=this.groupValues?this.filterAndFlat(n,t,this.label):ei(n,t,this.label,this.customLabel):n=this.groupValues?$r(this.groupValues,this.groupLabel)(n):n,n=this.hideSelected?n.filter(Yh(this.isSelected)):n,this.taggable&&t.length&&!this.isExistingOption(t)&&(this.tagPosition==="bottom"?n.push({isTag:!0,label:e}):n.unshift({isTag:!0,label:e})),n.slice(0,this.optionsLimit)},valueKeys(){return this.trackBy?this.internalValue.map(e=>e[this.trackBy]):this.internalValue},optionKeys(){return(this.groupValues?this.flatAndStrip(this.options):this.options).map(t=>this.customLabel(t,this.label).toString().toLowerCase())},currentOptionLabel(){return this.multiple?this.searchable?"":this.placeholder:this.internalValue.length?this.getOptionLabel(this.internalValue[0]):this.searchable?"":this.placeholder}},watch:{internalValue:{handler(){this.resetAfter&&this.internalValue.length&&(this.search="",this.$emit("update:modelValue",this.multiple?[]:null))},deep:!0},search(){this.$emit("search-change",this.search)}},emits:["open","search-change","close","select","update:modelValue","remove","tag"],methods:{getValue(){return this.multiple?this.internalValue:this.internalValue.length===0?null:this.internalValue[0]},filterAndFlat(e,t,n){return ti(Wh(t,n,this.groupValues,this.groupLabel,this.customLabel),$r(this.groupValues,this.groupLabel))(e)},flatAndStrip(e){return ti($r(this.groupValues,this.groupLabel),Uh)(e)},updateSearch(e){this.search=e},isExistingOption(e){return this.options?this.optionKeys.indexOf(e)>-1:!1},isSelected(e){const t=this.trackBy?e[this.trackBy]:e;return this.valueKeys.indexOf(t)>-1},isOptionDisabled(e){return!!e.$isDisabled},getOptionLabel(e){if(Rr(e))return"";if(e.isTag)return e.label;if(e.$isLabel)return e.$groupLabel;const t=this.customLabel(e,this.label);return Rr(t)?"":t},select(e,t){if(e.$isLabel&&this.groupSelect){this.selectGroup(e);return}if(!(this.blockKeys.indexOf(t)!==-1||this.disabled||e.$isDisabled||e.$isLabel)&&!(this.max&&this.multiple&&this.internalValue.length===this.max)&&!(t==="Tab"&&!this.pointerDirty)){if(e.isTag)this.$emit("tag",e.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(e)){t!=="Tab"&&this.removeElement(e);return}this.multiple?this.$emit("update:modelValue",this.internalValue.concat([e])):this.$emit("update:modelValue",e),this.$emit("select",e,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup(e){const t=this.options.find(n=>n[this.groupLabel]===e.$groupLabel);if(t){if(this.wholeGroupSelected(t)){this.$emit("remove",t[this.groupValues],this.id);const n=this.internalValue.filter(r=>t[this.groupValues].indexOf(r)===-1);this.$emit("update:modelValue",n)}else{let n=t[this.groupValues].filter(r=>!(this.isOptionDisabled(r)||this.isSelected(r)));this.max&&n.splice(this.max-this.internalValue.length),this.$emit("select",n,this.id),this.$emit("update:modelValue",this.internalValue.concat(n))}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected(e){return e[this.groupValues].every(t=>this.isSelected(t)||this.isOptionDisabled(t))},wholeGroupDisabled(e){return e[this.groupValues].every(this.isOptionDisabled)},removeElement(e,t=!0){if(this.disabled||e.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1){this.deactivate();return}const n=typeof e=="object"?this.valueKeys.indexOf(e[this.trackBy]):this.valueKeys.indexOf(e);if(this.multiple){const r=this.internalValue.slice(0,n).concat(this.internalValue.slice(n+1));this.$emit("update:modelValue",r)}else this.$emit("update:modelValue",null);this.$emit("remove",e,this.id),this.closeOnSelect&&t&&this.deactivate()},removeLastElement(){this.blockKeys.indexOf("Delete")===-1&&this.search.length===0&&Array.isArray(this.internalValue)&&this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate(){this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&this.pointer===0&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.preventAutofocus||this.$nextTick(()=>this.$refs.search&&this.$refs.search.focus())):this.preventAutofocus||typeof this.$el<"u"&&this.$el.focus(),this.$emit("open",this.id))},deactivate(){this.isOpen&&(this.isOpen=!1,this.searchable?this.$refs.search!==null&&typeof this.$refs.search<"u"&&this.$refs.search.blur():typeof this.$el<"u"&&this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle(){this.isOpen?this.deactivate():this.activate()},adjustPosition(){if(typeof window>"u")return;const e=this.$el.getBoundingClientRect().top,t=window.innerHeight-this.$el.getBoundingClientRect().bottom;t>this.maxHeight||t>e||this.openDirection==="below"||this.openDirection==="bottom"?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(t-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(e-40,this.maxHeight))}}},Hh={data(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40}},computed:{pointerPosition(){return this.pointer*this.optionHeight},visibleElements(){return this.optimizedHeight/this.optionHeight}},watch:{filteredOptions(){this.pointerAdjust()},isOpen(){this.pointerDirty=!1},pointer(){this.$refs.search&&this.$refs.search.setAttribute("aria-activedescendant",this.id+"-"+this.pointer.toString())}},methods:{optionHighlight(e,t){return{"multiselect__option--highlight":e===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(t)}},groupHighlight(e,t){if(!this.groupSelect)return["multiselect__option--disabled",{"multiselect__option--group":t.$isLabel}];const n=this.options.find(r=>r[this.groupLabel]===t.$groupLabel);return n&&!this.wholeGroupDisabled(n)?["multiselect__option--group",{"multiselect__option--highlight":e===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(n)}]:"multiselect__option--disabled"},addPointerElement({key:e}="Enter"){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],e),this.pointerReset()},pointerForward(){this.pointer<this.filteredOptions.length-1&&(this.pointer++,this.$refs.list.scrollTop<=this.pointerPosition-(this.visibleElements-1)*this.optionHeight&&(this.$refs.list.scrollTop=this.pointerPosition-(this.visibleElements-1)*this.optionHeight),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()),this.pointerDirty=!0},pointerBackward(){this.pointer>0?(this.pointer--,this.$refs.list.scrollTop>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset(){this.closeOnSelect&&(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet(e){this.pointer=e,this.pointerDirty=!0}}},ni={name:"vue-multiselect",mixins:[jh,Hh],compatConfig:{MODE:3,ATTR_ENUMERATED_COERCION:!1},props:{name:{type:String,default:""},modelValue:{type:null,default(){return[]}},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:e=>`and ${e} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0}},computed:{hasOptionGroup(){return this.groupValues&&this.groupLabel&&this.groupSelect},isSingleLabelVisible(){return(this.singleValue||this.singleValue===0)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible(){return!this.internalValue.length&&(!this.searchable||!this.isOpen)},visibleValues(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue(){return this.internalValue[0]},deselectLabelText(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText(){return this.showLabels?this.selectLabel:""},selectGroupLabelText(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText(){return this.showLabels?this.selectedLabel:""},inputStyle(){return this.searchable||this.multiple&&this.modelValue&&this.modelValue.length?this.isOpen?{width:"100%"}:{width:"0",position:"absolute",padding:"0"}:""},contentStyle(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove(){return this.openDirection==="above"||this.openDirection==="top"?!0:this.openDirection==="below"||this.openDirection==="bottom"?!1:this.preferredOpenDirection==="above"},showSearchInput(){return this.searchable&&(this.hasSingleSelectedSlot&&(this.visibleSingleValue||this.visibleSingleValue===0)?this.isOpen:!0)}}};const Gh={ref:"tags",class:"multiselect__tags"},zh={class:"multiselect__tags-wrap"},Kh={class:"multiselect__spinner"},qh={key:0},Zh={class:"multiselect__option"},Jh={class:"multiselect__option"},Qh=s.createTextVNode("No elements found. Consider changing the search query."),Xh={class:"multiselect__option"},ep=s.createTextVNode("List is empty.");function tp(e,t,n,r,o,i){return s.openBlock(),s.createBlock("div",{tabindex:e.searchable?-1:n.tabindex,class:[{"multiselect--active":e.isOpen,"multiselect--disabled":n.disabled,"multiselect--above":i.isAbove,"multiselect--has-options-group":i.hasOptionGroup},"multiselect"],onFocus:t[14]||(t[14]=a=>e.activate()),onBlur:t[15]||(t[15]=a=>e.searchable?!1:e.deactivate()),onKeydown:[t[16]||(t[16]=s.withKeys(s.withModifiers(a=>e.pointerForward(),["self","prevent"]),["down"])),t[17]||(t[17]=s.withKeys(s.withModifiers(a=>e.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:t[18]||(t[18]=s.withKeys(s.withModifiers(a=>e.addPointerElement(a),["stop","self"]),["enter","tab"])),onKeyup:t[19]||(t[19]=s.withKeys(a=>e.deactivate(),["esc"])),role:"combobox","aria-owns":"listbox-"+e.id},[s.renderSlot(e.$slots,"caret",{toggle:e.toggle},()=>[s.createVNode("div",{onMousedown:t[1]||(t[1]=s.withModifiers(a=>e.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),s.renderSlot(e.$slots,"clear",{search:e.search}),s.createVNode("div",Gh,[s.renderSlot(e.$slots,"selection",{search:e.search,remove:e.removeElement,values:i.visibleValues,isOpen:e.isOpen},()=>[s.withDirectives(s.createVNode("div",zh,[(s.openBlock(!0),s.createBlock(s.Fragment,null,s.renderList(i.visibleValues,(a,l)=>s.renderSlot(e.$slots,"tag",{option:a,search:e.search,remove:e.removeElement},()=>[(s.openBlock(),s.createBlock("span",{class:"multiselect__tag",key:l},[s.createVNode("span",{textContent:s.toDisplayString(e.getOptionLabel(a))},null,8,["textContent"]),s.createVNode("i",{tabindex:"1",onKeypress:s.withKeys(s.withModifiers(c=>e.removeElement(a),["prevent"]),["enter"]),onMousedown:s.withModifiers(c=>e.removeElement(a),["prevent"]),class:"multiselect__tag-icon"},null,40,["onKeypress","onMousedown"])]))])),256))],512),[[s.vShow,i.visibleValues.length>0]]),e.internalValue&&e.internalValue.length>n.limit?s.renderSlot(e.$slots,"limit",{key:0},()=>[s.createVNode("strong",{class:"multiselect__strong",textContent:s.toDisplayString(n.limitText(e.internalValue.length-n.limit))},null,8,["textContent"])]):s.createCommentVNode("v-if",!0)]),s.createVNode(s.Transition,{name:"multiselect__loading"},{default:s.withCtx(()=>[s.renderSlot(e.$slots,"loading",{},()=>[s.withDirectives(s.createVNode("div",Kh,null,512),[[s.vShow,n.loading]])])]),_:3}),e.searchable?(s.openBlock(),s.createBlock("input",{key:0,ref:"search",name:n.name,id:e.id,type:"text",autocomplete:"off",spellcheck:!1,placeholder:e.placeholder,style:i.inputStyle,value:e.search,disabled:n.disabled,tabindex:n.tabindex,onInput:t[2]||(t[2]=a=>e.updateSearch(a.target.value)),onFocus:t[3]||(t[3]=s.withModifiers(a=>e.activate(),["prevent"])),onBlur:t[4]||(t[4]=s.withModifiers(a=>e.deactivate(),["prevent"])),onKeyup:t[5]||(t[5]=s.withKeys(a=>e.deactivate(),["esc"])),onKeydown:[t[6]||(t[6]=s.withKeys(s.withModifiers(a=>e.pointerForward(),["prevent"]),["down"])),t[7]||(t[7]=s.withKeys(s.withModifiers(a=>e.pointerBackward(),["prevent"]),["up"])),t[9]||(t[9]=s.withKeys(s.withModifiers(a=>e.removeLastElement(),["stop"]),["delete"]))],onKeypress:t[8]||(t[8]=s.withKeys(s.withModifiers(a=>e.addPointerElement(a),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+e.id},null,44,["name","id","placeholder","value","disabled","tabindex","aria-controls"])):s.createCommentVNode("v-if",!0),i.isSingleLabelVisible?(s.openBlock(),s.createBlock("span",{key:1,class:"multiselect__single",onMousedown:t[10]||(t[10]=s.withModifiers((...a)=>e.toggle&&e.toggle(...a),["prevent"]))},[s.renderSlot(e.$slots,"singleLabel",{option:i.singleValue},()=>[s.createTextVNode(s.toDisplayString(e.currentOptionLabel),1)])],32)):s.createCommentVNode("v-if",!0),i.isPlaceholderVisible?(s.openBlock(),s.createBlock("span",{key:2,class:"multiselect__placeholder",onMousedown:t[11]||(t[11]=s.withModifiers((...a)=>e.toggle&&e.toggle(...a),["prevent"]))},[s.renderSlot(e.$slots,"placeholder",{},()=>[s.createTextVNode(s.toDisplayString(e.placeholder),1)])],32)):s.createCommentVNode("v-if",!0)],512),s.createVNode(s.Transition,{name:"multiselect"},{default:s.withCtx(()=>[s.withDirectives(s.createVNode("div",{class:"multiselect__content-wrapper",onFocus:t[12]||(t[12]=(...a)=>e.activate&&e.activate(...a)),tabindex:"-1",onMousedown:t[13]||(t[13]=s.withModifiers(()=>{},["prevent"])),style:{maxHeight:e.optimizedHeight+"px"},ref:"list"},[s.createVNode("ul",{class:"multiselect__content",style:i.contentStyle,role:"listbox",id:"listbox-"+e.id},[s.renderSlot(e.$slots,"beforeList"),e.multiple&&e.max===e.internalValue.length?(s.openBlock(),s.createBlock("li",qh,[s.createVNode("span",Zh,[s.renderSlot(e.$slots,"maxElements",{},()=>[s.createTextVNode("Maximum of "+s.toDisplayString(e.max)+" options selected. First remove a selected option to select another.",1)])])])):s.createCommentVNode("v-if",!0),!e.max||e.internalValue.length<e.max?(s.openBlock(!0),s.createBlock(s.Fragment,{key:1},s.renderList(e.filteredOptions,(a,l)=>(s.openBlock(),s.createBlock("li",{class:"multiselect__element",key:l,id:e.id+"-"+l,role:a&&(a.$isLabel||a.$isDisabled)?null:"option"},[a&&(a.$isLabel||a.$isDisabled)?s.createCommentVNode("v-if",!0):(s.openBlock(),s.createBlock("span",{key:0,class:[e.optionHighlight(l,a),"multiselect__option"],onClick:s.withModifiers(c=>e.select(a),["stop"]),onMouseenter:s.withModifiers(c=>e.pointerSet(l),["self"]),"data-select":a&&a.isTag?e.tagPlaceholder:i.selectLabelText,"data-selected":i.selectedLabelText,"data-deselect":i.deselectLabelText},[s.renderSlot(e.$slots,"option",{option:a,search:e.search,index:l},()=>[s.createVNode("span",null,s.toDisplayString(e.getOptionLabel(a)),1)])],42,["onClick","onMouseenter","data-select","data-selected","data-deselect"])),a&&(a.$isLabel||a.$isDisabled)?(s.openBlock(),s.createBlock("span",{key:1,"data-select":e.groupSelect&&i.selectGroupLabelText,"data-deselect":e.groupSelect&&i.deselectGroupLabelText,class:[e.groupHighlight(l,a),"multiselect__option"],onMouseenter:s.withModifiers(c=>e.groupSelect&&e.pointerSet(l),["self"]),onMousedown:s.withModifiers(c=>e.selectGroup(a),["prevent"])},[s.renderSlot(e.$slots,"option",{option:a,search:e.search,index:l},()=>[s.createVNode("span",null,s.toDisplayString(e.getOptionLabel(a)),1)])],42,["data-select","data-deselect","onMouseenter","onMousedown"])):s.createCommentVNode("v-if",!0)],8,["id","role"]))),128)):s.createCommentVNode("v-if",!0),s.withDirectives(s.createVNode("li",null,[s.createVNode("span",Jh,[s.renderSlot(e.$slots,"noResult",{search:e.search},()=>[Qh])])],512),[[s.vShow,n.showNoResults&&e.filteredOptions.length===0&&e.search&&!n.loading]]),s.withDirectives(s.createVNode("li",null,[s.createVNode("span",Xh,[s.renderSlot(e.$slots,"noOptions",{},()=>[ep])])],512),[[s.vShow,n.showNoOptions&&(e.options.length===0||i.hasOptionGroup===!0&&e.filteredOptions.length===0)&&!e.search&&!n.loading]]),s.renderSlot(e.$slots,"afterList")],12,["id"])],36),[[s.vShow,e.isOpen]])]),_:3})],42,["tabindex","aria-owns"])}ni.render=tp;const np=s.defineComponent({__name:"CapeFilterFieldEnumOneOfMultiselect",props:{filterId:{}},setup(e){const t=e,r=K().byId(t.filterId),o=r.field;return(i,a)=>(s.openBlock(),s.createBlock(s.unref(ni),{id:"filter-multiselect-"+s.unref(o).id,modelValue:s.unref(r).oneOfTerms,"onUpdate:modelValue":a[0]||(a[0]=l=>s.unref(r).oneOfTerms=l),"clear-on-select":!1,"close-on-select":!0,multiple:!0,options:s.unref(o).values,"preserve-search":!0,placeholder:"Select (1 or more)"},null,8,["id","modelValue","options"]))}}),rp=["aria-label"],sp=s.createElementVNode("option",{key:"",value:""},null,-1),op=["value"],ip=s.defineComponent({__name:"CapeFilterFieldEnumIsSelect",props:{filterId:{}},setup(e){const t=e,r=K().byId(t.filterId),o=r.field;return(i,a)=>s.withDirectives((s.openBlock(),s.createElementBlock("select",{class:"cape-filter-field-enum-is-select","onUpdate:modelValue":a[0]||(a[0]=l=>s.unref(r).isTerm=l),"aria-label":"Select "+s.unref(o).label+" value."},[sp,(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(o).values,l=>(s.openBlock(),s.createElementBlock("option",{key:l,value:l},s.toDisplayString(l),9,op))),128))],8,rp)),[[s.vModelSelect,s.unref(r).isTerm]])}}),ap={class:"cape-filter-field-enum-is-radio"},lp={class:"form-check form-check-inline"},cp=["id"],dp=["for"],up=[s.createElementVNode("em",null,"any",-1)],fp=["id","value"],hp=["for"],pp=s.defineComponent({__name:"CapeFilterFieldEnumIsRadio",props:{filterId:{}},setup(e){const t=e,r=K().byId(t.filterId),o=r.field;return(i,a)=>(s.openBlock(),s.createElementBlock("ul",ap,[s.createElementVNode("li",lp,[s.withDirectives(s.createElementVNode("input",{id:"cape-filter-field-input-"+s.unref(r).id+"-","onUpdate:modelValue":a[0]||(a[0]=l=>s.unref(r).isTerm=l),type:"radio",value:""},null,8,cp),[[s.vModelRadio,s.unref(r).isTerm]]),s.createElementVNode("label",{for:"cape-filter-field-input-"+s.unref(r).id+"-"},up,8,dp)]),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(o).values,l=>(s.openBlock(),s.createElementBlock("li",{key:l},[s.withDirectives(s.createElementVNode("input",{id:"cape-filter-field-input-"+s.unref(r).id+"-"+l,"onUpdate:modelValue":a[1]||(a[1]=c=>s.unref(r).isTerm=c),value:l,type:"radio"},null,8,fp),[[s.vModelRadio,s.unref(r).isTerm]]),s.createElementVNode("label",{for:"cape-filter-field-input-"+s.unref(r).id+"-"+l},s.toDisplayString(l),9,hp)]))),128))]))}}),mp={class:"cape-filter-label"},gp=["for"],_p={class:"cape-filter-mode"},yp=[s.createElementVNode("option",{value:"oneOf"},"is one of",-1),s.createElementVNode("option",{value:"is"},"is",-1),s.createElementVNode("option",{value:"set"},"is present",-1),s.createElementVNode("option",{value:"notSet"},"is not present",-1)],wp={class:"cape-filter-term"},Sp=s.defineComponent({__name:"CapeFilterFieldEnum",props:{filterId:{}},setup(e){const t=e,r=K().byId(t.filterId),o=r.field;return(i,a)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("div",mp,[s.createElementVNode("label",{for:"cape-filter-field-input-"+s.unref(r).id,"data-test":"filter-label"},s.toDisplayString(s.unref(r).field.label),9,gp)]),s.createElementVNode("div",_p,[s.unref(r).field.changeFilterMode?s.withDirectives((s.openBlock(),s.createElementBlock("select",{key:0,"onUpdate:modelValue":a[0]||(a[0]=l=>s.unref(r).mode=l),"data-test":"filter-mode-select","aria-label":"Filter mode"},yp,512)),[[s.vModelSelect,s.unref(r).mode]]):s.createCommentVNode("",!0)]),s.createElementVNode("div",wp,[s.unref(r).mode==="oneOf"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.unref(o).filterInputStyleOnOneOf==="checkbox"?(s.openBlock(),s.createBlock(Fh,{key:0,"filter-id":i.filterId},null,8,["filter-id"])):(s.openBlock(),s.createBlock(np,{key:1,"filter-id":i.filterId},null,8,["filter-id"]))],64)):s.createCommentVNode("",!0),s.unref(r).mode==="is"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.unref(o).filterInputStyleOnIs==="select"?(s.openBlock(),s.createBlock(ip,{key:0,"filter-id":i.filterId},null,8,["filter-id"])):(s.openBlock(),s.createBlock(pp,{key:1,"filter-id":i.filterId},null,8,["filter-id"]))],64)):s.createCommentVNode("",!0)])],64))}}),kp={class:"cape-filter-label"},bp=["for"],Ep={class:"cape-filter-mode"},vp=[s.createElementVNode("option",{value:"between"},"is between",-1),s.createElementVNode("option",{value:"is"},"is",-1),s.createElementVNode("option",{value:"set"},"is present",-1),s.createElementVNode("option",{value:"notSet"},"is not present",-1)],Op={class:"cape-filter-term"},Dp=["id","placeholder","min","max","step"],Np=s.createElementVNode("span",{class:"cape-filter-field-integer-term-term-and"},"and",-1),Tp=["id","placeholder","min","max","step"],Mp=["id","placeholder","min","max","step"],Cp=s.defineComponent({__name:"CapeFilterFieldInteger",props:{filterId:{}},setup(e){const t=e,n=K(),r=s.computed(()=>n.byId(t.filterId)),o=s.computed(()=>r.value.field);return(i,a)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("div",kp,[s.createElementVNode("label",{for:"cape-filter-field-input-"+r.value.id,"data-test":"filter-label"},s.toDisplayString(r.value.field.label),9,bp)]),s.createElementVNode("div",Ep,[r.value.field.changeFilterMode?s.withDirectives((s.openBlock(),s.createElementBlock("select",{key:0,"onUpdate:modelValue":a[0]||(a[0]=l=>r.value.mode=l),"data-test":"filter-mode-select","aria-label":"Filter mode"},vp,512)),[[s.vModelSelect,r.value.mode]]):s.createCommentVNode("",!0)]),s.createElementVNode("div",Op,[r.value.mode==="between"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.withDirectives(s.createElementVNode("input",{id:"cape-filter-field-input-lower-bound-"+r.value.id,"onUpdate:modelValue":a[1]||(a[1]=l=>r.value.lowerBoundTerm=l),placeholder:Array.isArray(o.value.placeholderBetween)?o.value.placeholderBetween[0]:"",type:"number",min:o.value.min,max:o.value.max,step:o.value.step,class:"cape-filter-field-integer-term-lower-bound","data-test":"filter-term-input-lower-bound"},null,8,Dp),[[s.vModelText,r.value.lowerBoundTerm]]),Np,s.withDirectives(s.createElementVNode("input",{id:"cape-filter-field-input-upper-bound-"+r.value.id,"onUpdate:modelValue":a[2]||(a[2]=l=>r.value.upperBoundTerm=l),placeholder:Array.isArray(o.value.placeholderBetween)?o.value.placeholderBetween[1]:"",type:"number",min:o.value.min,max:o.value.max,step:o.value.step,class:"cape-filter-field-integer-term-upper-bound","data-test":"filter-term-input-upper-bound"},null,8,Tp),[[s.vModelText,r.value.upperBoundTerm]])],64)):s.createCommentVNode("",!0),r.value.mode==="is"?s.withDirectives((s.openBlock(),s.createElementBlock("input",{key:1,id:"cape-filter-field-input-"+r.value.id,"onUpdate:modelValue":a[3]||(a[3]=l=>r.value.isTerm=l),placeholder:o.value.placeholderIs,type:"number",min:o.value.min,max:o.value.max,step:o.value.step,class:"cape-filter-field-integer-term","data-test":"filter-term-input"},null,8,Mp)),[[s.vModelText,r.value.isTerm]]):s.createCommentVNode("",!0)])],64))}}),Vp={class:"cape-filter-label"},Rp=["for"],$p={class:"cape-filter-mode"},Pp=[s.createElementVNode("option",{value:"between"},"is between",-1),s.createElementVNode("option",{value:"is"},"is",-1),s.createElementVNode("option",{value:"set"},"is present",-1),s.createElementVNode("option",{value:"notSet"},"is not present",-1)],xp={class:"cape-filter-term"},Ip=["id","placeholder"],Bp=s.createElementVNode("span",{class:"cape-filter-field-date-term-term-and"},"and",-1),Ap=["id","placeholder"],Fp=["id","placeholder"],Yp=s.defineComponent({__name:"CapeFilterFieldDate",props:{filterId:{}},setup(e){const t=e,n=K(),r=s.computed(()=>n.byId(t.filterId)),o=s.computed(()=>r.value.field);return(i,a)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("div",Vp,[s.createElementVNode("label",{for:"cape-filter-field-input-"+r.value.id,"data-test":"filter-label"},s.toDisplayString(r.value.field.label),9,Rp)]),s.createElementVNode("div",$p,[r.value.field.changeFilterMode?s.withDirectives((s.openBlock(),s.createElementBlock("select",{key:0,"onUpdate:modelValue":a[0]||(a[0]=l=>r.value.mode=l),"data-test":"filter-mode-select","aria-label":"Filter mode"},Pp,512)),[[s.vModelSelect,r.value.mode]]):s.createCommentVNode("",!0)]),s.createElementVNode("div",xp,[r.value.mode==="between"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.withDirectives(s.createElementVNode("input",{id:"cape-filter-field-input-lower-bound-"+r.value.id,"onUpdate:modelValue":a[1]||(a[1]=l=>r.value.lowerBoundTerm=l),placeholder:Array.isArray(o.value.placeholderBetween)?o.value.placeholderBetween[0]:"",class:"cape-filter-field-date-term-term-lower-bound","data-test":"filter-term-input-lower-bound"},null,8,Ip),[[s.vModelText,r.value.lowerBoundTerm]]),Bp,s.withDirectives(s.createElementVNode("input",{id:"cape-filter-field-input-upper-bound-"+r.value.id,"onUpdate:modelValue":a[2]||(a[2]=l=>r.value.upperBoundTerm=l),placeholder:Array.isArray(o.value.placeholderBetween)?o.value.placeholderBetween[1]:"",class:"cape-filter-field-date-term-term-upper-bound","data-test":"filter-term-input-upper-bound"},null,8,Ap),[[s.vModelText,r.value.upperBoundTerm]])],64)):s.createCommentVNode("",!0),r.value.mode==="is"?s.withDirectives((s.openBlock(),s.createElementBlock("input",{key:1,id:"cape-filter-field-input-"+r.value.id,type:"date","onUpdate:modelValue":a[3]||(a[3]=l=>r.value.isTerm=l),placeholder:o.value.placeholderIs,class:"cape-filter-field-date-term-term","data-test":"filter-term-input"},null,8,Fp)),[[s.vModelText,r.value.isTerm]]):s.createCommentVNode("",!0)])],64))}}),Lp=s.defineComponent({name:"CapeAboutPage",components:{CapeRecordCount:qs},template:"#templateCapeAbout",computed:{metadata(){return je().metadata}}});function Up(e,t,n){const r=new Blob([new Uint8Array([239,187,191]),t],{type:n});if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveBlob(r,e);else{const o=window.document.createElement("a");o.href=window.URL.createObjectURL(r),o.download=e,document.body.appendChild(o),o.click(),document.body.removeChild(o)}}function Wp(){const e=[[]],t=ut(),n=Rt();return t.all.forEach(r=>e[0].push(r.label)),n.all.forEach(r=>{e.push(t.all.map(o=>{const i=r[o.id].value??"";return o.isMultiple&&Array.isArray(i)?i.join("; "):`${i}`}))}),e}function jp(e){return e.map(n=>'"'+n.map(o=>{let i="";return o!=null&&(i=o.toString()),i.replace(/"/g,'""').replace(/\r\n/g,`
|
|
46
46
|
`)}).join('","')+`"
|
|
47
|
-
`).join("")}const
|
|
47
|
+
`).join("")}const Hp=s.defineComponent({__name:"CapeDownloadCsvButton",setup(e){function t(){const n=Wp(),r=jp(n);Up("download.csv",r,"text/csv;charset=utf-8")}return(n,r)=>(s.openBlock(),s.createElementBlock("a",{onClick:t,class:"cursor-pointer cape-button"},"Download CSV"))}}),Gp={},zp={href:"/site-data.json",class:"cape-button"};function Kp(e,t){return s.openBlock(),s.createElementBlock("a",zp,"Download JSON")}const qp=Js(Gp,[["render",Kp]]),Zp={class:"cape-fields-table"},Jp=s.createElementVNode("thead",null,[s.createElementVNode("tr",null,[s.createElementVNode("th",{scope:"col"},"Field id"),s.createElementVNode("th",{scope:"col"},"Field name"),s.createElementVNode("th",{scope:"col"},"Field type"),s.createElementVNode("th",{scope:"col"},"Description")])],-1),Qp={key:0},Xp=s.defineComponent({__name:"CapeFieldsTable",setup(e){const t=ut(),n=s.computed(()=>t.all);return(r,o)=>(s.openBlock(),s.createElementBlock("table",Zp,[Jp,s.createElementVNode("tbody",null,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(n.value,i=>(s.openBlock(),s.createElementBlock("tr",{key:i.id},[s.createElementVNode("td",null,s.toDisplayString(i.id),1),s.createElementVNode("td",null,s.toDisplayString(i.label),1),s.createElementVNode("td",null,[s.createTextVNode(s.toDisplayString(i.type)+" ",1),i.isMultiple?(s.openBlock(),s.createElementBlock("span",Qp," list")):s.createCommentVNode("",!0)]),s.createElementVNode("td",null,s.toDisplayString(i.description),1)]))),128))])]))}}),ri={install:function(e,t){e.use(Za()),this.addCapeComponents(e,t),t.additionalComponents!==void 0&&this.addAdditionalComponents(e,t.additionalComponents);const n=je();n.setOptions(t),s.toRaw(n.pages).forEach(r=>{Us.addRoute({path:r.path,component:e.component(r.component)})}),e.use(Us)},addAdditionalComponents:function(e,t){Object.keys(t).forEach(n=>{e.component(n,t[n])})},addCapeComponents:function(e,t){e.component("CapeRoot",Ks),e.component("CapeAboutPage",Lp),e.component("CapeAdvancedSearchToggle",Vl),e.component("CapeFieldsTable",Xp),e.component("CapeFilters",$l),e.component("CapeFormResetButton",Pl),e.component("CapeHeader",Zs),e.component("CapeHomePage",Fs),e.component("CapeHomepageLayout",As),e.component("CapeLoadError",js),e.component("CapeLoading",Qs),e.component("CapeNavigation",Ws),e.component("CapeNonProdWarning",jl),e.component("CapeRecordCount",qs),e.component("CapeRecordCard",Ys),e.component("CapeRecordPage",Ls),e.component("CapeResults",uc),e.component("CapeSummaryCard",Xs),e.component("CapeLabelledValue",bh),e.component("CapeValue",Xo),e.component("CapeSingleValue",Vr),e.component("CapeFilterFieldText",Ch),e.component("CapeFilterFieldEnum",Sp),e.component("CapeFilterFreeText",xh),e.component("CapeFilterFieldInteger",Cp),e.component("CapeFilterFieldDate",Yp),e.component("CapeSortOrder",eo),e.component("CapeResultsControls",Jn),e.component("CapeDownloadJsonButton",qp),e.component("CapeDownloadCsvButton",Hp)}},em={template:"#templateCapeFooter"},tm=s.defineComponent({__name:"App",setup(e){return(t,n)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createVNode(Zs),(s.openBlock(),s.createBlock(s.Suspense,null,{default:s.withCtx(()=>[s.createVNode(Ks)]),fallback:s.withCtx(()=>[s.createVNode(Qs)]),_:1})),s.createVNode(em)],64))}}),nm=e=>{const t=s.createApp(tm);return t.use(ri,e),t};J.CapePlugin=ri,J.Filter=qn,J.createCapeApp=nm,J.useDatasetStore=$t,J.useFieldStore=ut,J.useFilterStore=K,J.usePropertyStore=je,J.useSearchResultsStore=Ge,Object.defineProperty(J,Symbol.toStringTag,{value:"Module"})});
|