@soton.ac.uk/cape3 0.0.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -31
- package/dist/cape3.es.js +7903 -0
- package/dist/cape3.umd.js +45 -0
- package/dist/favicon.ico +0 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/plugins/CapePlugin.d.ts +7 -0
- package/dist/plugins/CapePlugin.d.ts.map +1 -0
- package/dist/site-data.json +266 -0
- package/dist/site.css +36 -0
- package/dist/style.css +1 -0
- package/dist/styles/cape-homepage-layout.css +30 -0
- package/dist/styles/cape-navigation-tabs.css +34 -0
- package/dist/styles/defaults.css +5 -0
- package/package.json +82 -80
|
@@ -0,0 +1,45 @@
|
|
|
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 Lp=Object.defineProperty;var Up=(J,s,qe)=>s in J?Lp(J,s,{enumerable:!0,configurable:!0,writable:!0,value:qe}):J[s]=qe;var $=(J,s,qe)=>(Up(J,typeof s!="symbol"?s+"":s,qe),qe);function qe(){return Br().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Br(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const to=typeof Proxy=="function",no="devtools-plugin:setup",ro="plugin:settings:set";let it,Nn;function so(){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 io(){return so()?Nn.now():Date.now()}class oo{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 i=`__vue-devtools-plugin-settings__${t.id}`;let o=Object.assign({},r);try{const a=localStorage.getItem(i),l=JSON.parse(a);Object.assign(o,l)}catch{}this.fallbacks={getSettings(){return o},setSettings(a){try{localStorage.setItem(i,JSON.stringify(a))}catch{}o=a},now(){return io()}},n&&n.on(ro,(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(),i=qe(),o=to&&n.enableEarlyProxy;if(i&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!o))i.emit(no,e,t);else{const a=o?new oo(n,i):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:a}),a&&t(a.proxiedTarget)}}/*!
|
|
2
|
+
* vue-router v4.2.5
|
|
3
|
+
* (c) 2023 Eduardo San Martin Morote
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/const Te=typeof window<"u";function ao(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Y=Object.assign;function Mn(e,t){const n={};for(const r in t){const i=t[r];n[r]=le(i)?i.map(e):e(i)}return n}const kt=()=>{},le=Array.isArray;function P(e){const t=Array.from(arguments).slice(1);console.warn.apply(console,["[Vue Router warn]: "+e].concat(t))}const lo=/\/$/,co=e=>e.replace(lo,"");function Vn(e,t,n="/"){let r,i={},o="",a="";const l=t.indexOf("#");let c=t.indexOf("?");return l<c&&l>=0&&(c=-1),c>-1&&(r=t.slice(0,c),o=t.slice(c+1,l>-1?l:t.length),i=e(o)),l>-1&&(r=r||t.slice(0,l),a=t.slice(l,t.length)),r=ho(r??t,n),{fullPath:r+(o&&"?")+o+a,path:r,query:i,hash:a}}function uo(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Ar(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Fr(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&Ye(t.matched[r],n.matched[i])&&Yr(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ye(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Yr(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!fo(e[n],t[n]))return!1;return!0}function fo(e,t){return le(e)?Lr(e,t):le(t)?Lr(t,e):e===t}function Lr(e,t){return le(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function ho(e,t){if(e.startsWith("/"))return e;if(process.env.NODE_ENV!=="production"&&!t.startsWith("/"))return P(`Cannot resolve a relative location without an absolute path. Trying to resolve "${e}" from "${t}". It should look like "/${t}".`),e;if(!e)return t;const n=t.split("/"),r=e.split("/"),i=r[r.length-1];(i===".."||i===".")&&r.push("");let o=n.length-1,a,l;for(a=0;a<r.length;a++)if(l=r[a],l!==".")if(l==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(a-(a===r.length?1:0)).join("/")}var bt;(function(e){e.pop="pop",e.push="push"})(bt||(bt={}));var Et;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Et||(Et={}));function po(e){if(!e)if(Te){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),co(e)}const mo=/^[^#]+#/;function go(e,t){return e.replace(mo,"#")+t}function _o(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Ht=()=>({left:window.pageXOffset,top:window.pageYOffset});function yo(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#");if(process.env.NODE_ENV!=="production"&&typeof e.el=="string"&&(!r||!document.getElementById(e.el.slice(1))))try{const o=document.querySelector(e.el);if(r&&o){P(`The selector "${e.el}" should be passed as "el: document.querySelector('${e.el}')" because it starts with "#".`);return}}catch{P(`The selector "${e.el}" is invalid. If you are using an id selector, make sure to escape it. You can find more information about escaping characters in selectors at https://mathiasbynens.be/notes/css-escapes or use CSS.escape (https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape).`);return}const i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i){process.env.NODE_ENV!=="production"&&P(`Couldn't find element using selector "${e.el}" returned by scrollBehavior.`);return}t=_o(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Ur(e,t){return(history.state?history.state.position-t:-1)+e}const Cn=new Map;function wo(e,t){Cn.set(e,t)}function So(e){const t=Cn.get(e);return Cn.delete(e),t}let ko=()=>location.protocol+"//"+location.host;function Wr(e,t){const{pathname:n,search:r,hash:i}=t,o=e.indexOf("#");if(o>-1){let l=i.includes(e.slice(o))?e.slice(o).length:1,c=i.slice(l);return c[0]!=="/"&&(c="/"+c),Ar(c,"")}return Ar(n,e)+r+i}function bo(e,t,n,r){let i=[],o=[],a=null;const l=({state:f})=>{const g=Wr(e,location),b=n.value,I=t.value;let B=0;if(f){if(n.value=g,t.value=f,a&&a===b){a=null;return}B=I?f.position-I.position:0}else r(g);i.forEach(N=>{N(n.value,b,{delta:B,type:bt.pop,direction:B?B>0?Et.forward:Et.back:Et.unknown})})};function c(){a=n.value}function u(f){i.push(f);const g=()=>{const b=i.indexOf(f);b>-1&&i.splice(b,1)};return o.push(g),g}function d(){const{history:f}=window;f.state&&f.replaceState(Y({},f.state,{scroll:Ht()}),"")}function h(){for(const f of o)f();o=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:c,listen:u,destroy:h}}function jr(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?Ht():null}}function Eo(e){const{history:t,location:n}=window,r={value:Wr(e,n)},i={value:t.state};i.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(c,u,d){const h=e.indexOf("#"),f=h>-1?(n.host&&document.querySelector("base")?e:e.slice(h))+c:ko()+e+c;try{t[d?"replaceState":"pushState"](u,"",f),i.value=u}catch(g){process.env.NODE_ENV!=="production"?P("Error with push/replace State",g):console.error(g),n[d?"replace":"assign"](f)}}function a(c,u){const d=Y({},t.state,jr(i.value.back,c,i.value.forward,!0),u,{position:i.value.position});o(c,d,!0),r.value=c}function l(c,u){const d=Y({},i.value,t.state,{forward:c,scroll:Ht()});process.env.NODE_ENV!=="production"&&!t.state&&P(`history.state seems to have been manually replaced without preserving the necessary values. Make sure to preserve existing history state if you are manually calling history.replaceState:
|
|
6
|
+
|
|
7
|
+
history.replaceState(history.state, '', url)
|
|
8
|
+
|
|
9
|
+
You can find more information at https://next.router.vuejs.org/guide/migration/#usage-of-history-state.`),o(d.current,d,!0);const h=Y({},jr(r.value,c,null),{position:d.position+1},u);o(c,h,!1),r.value=c}return{location:r,state:i,push:l,replace:a}}function vo(e){e=po(e);const t=Eo(e),n=bo(e,t.state,t.location,t.replace);function r(o,a=!0){a||n.pauseListeners(),history.go(o)}const i=Y({location:"",base:e,go:r,createHref:go.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function Oo(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),process.env.NODE_ENV!=="production"&&!e.endsWith("#/")&&!e.endsWith("#")&&P(`A hash base must end with a "#":
|
|
10
|
+
"${e}" should be "${e.replace(/#.*$/,"#")}".`),vo(e)}function Do(e){return typeof e=="string"||e&&typeof e=="object"}function Hr(e){return typeof e=="string"||typeof e=="symbol"}const Le={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Rn=Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var Gr;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Gr||(Gr={}));const No={1({location:e,currentLocation:t}){return`No match for
|
|
11
|
+
${JSON.stringify(e)}${t?`
|
|
12
|
+
while being at
|
|
13
|
+
`+JSON.stringify(t):""}`},2({from:e,to:t}){return`Redirected from "${e.fullPath}" to "${Mo(t)}" via a navigation guard.`},4({from:e,to:t}){return`Navigation aborted from "${e.fullPath}" to "${t.fullPath}" via a navigation guard.`},8({from:e,to:t}){return`Navigation cancelled from "${e.fullPath}" to "${t.fullPath}" with a new navigation.`},16({from:e,to:t}){return`Avoided redundant navigation to current location: "${e.fullPath}".`}};function ot(e,t){return process.env.NODE_ENV!=="production"?Y(new Error(No[e](t)),{type:e,[Rn]:!0},t):Y(new Error,{type:e,[Rn]:!0},t)}function Me(e,t){return e instanceof Error&&Rn in e&&(t==null||!!(e.type&t))}const To=["params","query","hash"];function Mo(e){if(typeof e=="string")return e;if("path"in e)return e.path;const t={};for(const n of To)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}const zr="[^/]+?",Vo={sensitive:!1,strict:!1,start:!0,end:!0},Co=/[.+*?^${}()[\]/\\]/g;function Ro(e,t){const n=Y({},Vo,t),r=[];let i=n.start?"^":"";const o=[];for(const u of e){const d=u.length?[]:[90];n.strict&&!u.length&&(i+="/");for(let h=0;h<u.length;h++){const f=u[h];let g=40+(n.sensitive?.25:0);if(f.type===0)h||(i+="/"),i+=f.value.replace(Co,"\\$&"),g+=40;else if(f.type===1){const{value:b,repeatable:I,optional:B,regexp:N}=f;o.push({name:b,repeatable:I,optional:B});const M=N||zr;if(M!==zr){g+=10;try{new RegExp(`(${M})`)}catch(ne){throw new Error(`Invalid custom RegExp for param "${b}" (${M}): `+ne.message)}}let z=I?`((?:${M})(?:/(?:${M}))*)`:`(${M})`;h||(z=B&&u.length<2?`(?:/${z})`:"/"+z),B&&(z+="?"),i+=z,g+=20,B&&(g+=-8),I&&(g+=-20),M===".*"&&(g+=-50)}d.push(g)}r.push(d)}if(n.strict&&n.end){const u=r.length-1;r[u][r[u].length-1]+=.7000000000000001}n.strict||(i+="/?"),n.end?i+="$":n.strict&&(i+="(?:/|$)");const a=new RegExp(i,n.sensitive?"":"i");function l(u){const d=u.match(a),h={};if(!d)return null;for(let f=1;f<d.length;f++){const g=d[f]||"",b=o[f-1];h[b.name]=g&&b.repeatable?g.split("/"):g}return h}function c(u){let d="",h=!1;for(const f of e){(!h||!d.endsWith("/"))&&(d+="/"),h=!1;for(const g of f)if(g.type===0)d+=g.value;else if(g.type===1){const{value:b,repeatable:I,optional:B}=g,N=b in u?u[b]:"";if(le(N)&&!I)throw new Error(`Provided param "${b}" is an array but it is not repeatable (* or + modifiers)`);const M=le(N)?N.join("/"):N;if(!M)if(B)f.length<2&&(d.endsWith("/")?d=d.slice(0,-1):h=!0);else throw new Error(`Missing required param "${b}"`);d+=M}}return d||"/"}return{re:a,score:r,keys:o,parse:l,stringify:c}}function $o(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function Po(e,t){let n=0;const r=e.score,i=t.score;for(;n<r.length&&n<i.length;){const o=$o(r[n],i[n]);if(o)return o;n++}if(Math.abs(i.length-r.length)===1){if(Kr(r))return 1;if(Kr(i))return-1}return i.length-r.length}function Kr(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const xo={type:0,value:""},Io=/[a-zA-Z0-9_]/;function Bo(e){if(!e)return[[]];if(e==="/")return[[xo]];if(!e.startsWith("/"))throw new Error(process.env.NODE_ENV!=="production"?`Route paths should start with a "/": "${e}" should be "/${e}".`:`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${u}": ${g}`)}let n=0,r=n;const i=[];let o;function a(){o&&i.push(o),o=[]}let l=0,c,u="",d="";function h(){u&&(n===0?o.push({type:0,value:u}):n===1||n===2||n===3?(o.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:u,regexp:d,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),u="")}function f(){u+=c}for(;l<e.length;){if(c=e[l++],c==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:c==="/"?(u&&h(),a()):c===":"?(h(),n=1):f();break;case 4:f(),n=r;break;case 1:c==="("?n=2:Io.test(c)?f():(h(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&l--);break;case 2:c===")"?d[d.length-1]=="\\"?d=d.slice(0,-1)+c:n=3:d+=c;break;case 3:h(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&l--,d="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${u}"`),h(),a(),i}function Ao(e,t,n){const r=Ro(Bo(e.path),n);if(process.env.NODE_ENV!=="production"){const o=new Set;for(const a of r.keys)o.has(a.name)&&P(`Found duplicated params with name "${a.name}" for path "${e.path}". Only the last one will be available on "$route.params".`),o.add(a.name)}const i=Y(r,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function Fo(e,t){const n=[],r=new Map;t=Jr({strict:!1,end:!0,sensitive:!1},t);function i(d){return r.get(d)}function o(d,h,f){const g=!f,b=Yo(d);process.env.NODE_ENV!=="production"&&jo(b,h),b.aliasOf=f&&f.record;const I=Jr(t,d),B=[b];if("alias"in d){const z=typeof d.alias=="string"?[d.alias]:d.alias;for(const ne of z)B.push(Y({},b,{components:f?f.record.components:b.components,path:ne,aliasOf:f?f.record:b}))}let N,M;for(const z of B){const{path:ne}=z;if(h&&ne[0]!=="/"){const pe=h.record.path,me=pe[pe.length-1]==="/"?"":"/";z.path=h.record.path+(ne&&me+ne)}if(process.env.NODE_ENV!=="production"&&z.path==="*")throw new Error(`Catch all routes ("*") must now be defined using a param with a custom regexp.
|
|
14
|
+
See more at https://next.router.vuejs.org/guide/migration/#removed-star-or-catch-all-routes.`);if(N=Ao(z,h,I),process.env.NODE_ENV!=="production"&&h&&ne[0]==="/"&&Ho(N,h),f?(f.alias.push(N),process.env.NODE_ENV!=="production"&&Wo(f,N)):(M=M||N,M!==N&&M.alias.push(N),g&&d.name&&!Zr(N)&&a(d.name)),b.children){const pe=b.children;for(let me=0;me<pe.length;me++)o(pe[me],N,f&&f.children[me])}f=f||N,(N.record.components&&Object.keys(N.record.components).length||N.record.name||N.record.redirect)&&c(N)}return M?()=>{a(M)}:kt}function a(d){if(Hr(d)){const h=r.get(d);h&&(r.delete(d),n.splice(n.indexOf(h),1),h.children.forEach(a),h.alias.forEach(a))}else{const h=n.indexOf(d);h>-1&&(n.splice(h,1),d.record.name&&r.delete(d.record.name),d.children.forEach(a),d.alias.forEach(a))}}function l(){return n}function c(d){let h=0;for(;h<n.length&&Po(d,n[h])>=0&&(d.record.path!==n[h].record.path||!Qr(d,n[h]));)h++;n.splice(h,0,d),d.record.name&&!Zr(d)&&r.set(d.record.name,d)}function u(d,h){let f,g={},b,I;if("name"in d&&d.name){if(f=r.get(d.name),!f)throw ot(1,{location:d});if(process.env.NODE_ENV!=="production"){const M=Object.keys(d.params||{}).filter(z=>!f.keys.find(ne=>ne.name===z));M.length&&P(`Discarded invalid param(s) "${M.join('", "')}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`)}I=f.record.name,g=Y(qr(h.params,f.keys.filter(M=>!M.optional).map(M=>M.name)),d.params&&qr(d.params,f.keys.map(M=>M.name))),b=f.stringify(g)}else if("path"in d)b=d.path,process.env.NODE_ENV!=="production"&&!b.startsWith("/")&&P(`The Matcher cannot resolve relative paths but received "${b}". Unless you directly called \`matcher.resolve("${b}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`),f=n.find(M=>M.re.test(b)),f&&(g=f.parse(b),I=f.record.name);else{if(f=h.name?r.get(h.name):n.find(M=>M.re.test(h.path)),!f)throw ot(1,{location:d,currentLocation:h});I=f.record.name,g=Y({},h.params,d.params),b=f.stringify(g)}const B=[];let N=f;for(;N;)B.unshift(N.record),N=N.parent;return{name:I,path:b,params:g,matched:B,meta:Uo(B)}}return e.forEach(d=>o(d)),{addRoute:o,resolve:u,removeRoute:a,getRoutes:l,getRecordMatcher:i}}function qr(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Yo(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Lo(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Lo(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function Zr(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Uo(e){return e.reduce((t,n)=>Y(t,n.meta),{})}function Jr(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function $n(e,t){return e.name===t.name&&e.optional===t.optional&&e.repeatable===t.repeatable}function Wo(e,t){for(const n of e.keys)if(!n.optional&&!t.keys.find($n.bind(null,n)))return P(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);for(const n of t.keys)if(!n.optional&&!e.keys.find($n.bind(null,n)))return P(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`)}function jo(e,t){t&&t.record.name&&!e.name&&!e.path&&P(`The route named "${String(t.record.name)}" has a child without a name and an empty path. Using that name won't render the empty path child so you probably want to move the name to the child instead. If this is intentional, add a name to the child route to remove the warning.`)}function Ho(e,t){for(const n of t.keys)if(!e.keys.find($n.bind(null,n)))return P(`Absolute path "${e.record.path}" must have the exact same param named "${n.name}" as its parent "${t.record.path}".`)}function Qr(e,t){return t.children.some(n=>n===e||Qr(e,n))}const Xr=/#/g,Go=/&/g,zo=/\//g,Ko=/=/g,qo=/\?/g,es=/\+/g,Zo=/%5B/g,Jo=/%5D/g,ts=/%5E/g,Qo=/%60/g,ns=/%7B/g,Xo=/%7C/g,rs=/%7D/g,ea=/%20/g;function Pn(e){return encodeURI(""+e).replace(Xo,"|").replace(Zo,"[").replace(Jo,"]")}function ta(e){return Pn(e).replace(ns,"{").replace(rs,"}").replace(ts,"^")}function xn(e){return Pn(e).replace(es,"%2B").replace(ea,"+").replace(Xr,"%23").replace(Go,"%26").replace(Qo,"`").replace(ns,"{").replace(rs,"}").replace(ts,"^")}function na(e){return xn(e).replace(Ko,"%3D")}function ra(e){return Pn(e).replace(Xr,"%23").replace(qo,"%3F")}function sa(e){return e==null?"":ra(e).replace(zo,"%2F")}function vt(e){try{return decodeURIComponent(""+e)}catch{process.env.NODE_ENV!=="production"&&P(`Error decoding "${e}". Using original value`)}return""+e}function ia(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;i<r.length;++i){const o=r[i].replace(es," "),a=o.indexOf("="),l=vt(a<0?o:o.slice(0,a)),c=a<0?null:vt(o.slice(a+1));if(l in t){let u=t[l];le(u)||(u=t[l]=[u]),u.push(c)}else t[l]=c}return t}function ss(e){let t="";for(let n in e){const r=e[n];if(n=na(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(le(r)?r.map(o=>o&&xn(o)):[r&&xn(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function oa(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=le(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return t}const aa=Symbol(process.env.NODE_ENV!=="production"?"router view location matched":""),is=Symbol(process.env.NODE_ENV!=="production"?"router view depth":""),In=Symbol(process.env.NODE_ENV!=="production"?"router":""),Bn=Symbol(process.env.NODE_ENV!=="production"?"route location":""),An=Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function Ot(){let e=[];function t(r){return e.push(r),()=>{const i=e.indexOf(r);i>-1&&e.splice(i,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Ue(e,t,n,r,i){const o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((a,l)=>{const c=h=>{h===!1?l(ot(4,{from:n,to:t})):h instanceof Error?l(h):Do(h)?l(ot(2,{from:t,to:h})):(o&&r.enterCallbacks[i]===o&&typeof h=="function"&&o.push(h),a())},u=e.call(r&&r.instances[i],t,n,process.env.NODE_ENV!=="production"?la(c,t,n):c);let d=Promise.resolve(u);if(e.length<3&&(d=d.then(c)),process.env.NODE_ENV!=="production"&&e.length>2){const h=`The "next" callback was never called inside of ${e.name?'"'+e.name+'"':""}:
|
|
15
|
+
${e.toString()}
|
|
16
|
+
. If you are returning a value instead of calling "next", make sure to remove the "next" parameter from your function.`;if(typeof u=="object"&&"then"in u)d=d.then(f=>c._called?f:(P(h),Promise.reject(new Error("Invalid navigation guard"))));else if(u!==void 0&&!c._called){P(h),l(new Error("Invalid navigation guard"));return}}d.catch(h=>l(h))})}function la(e,t,n){let r=0;return function(){r++===1&&P(`The "next" callback was called more than once in one navigation guard when going from "${n.fullPath}" to "${t.fullPath}". It should be called exactly one time in each navigation guard. This will fail in production.`),e._called=!0,r===1&&e.apply(null,arguments)}}function Fn(e,t,n,r){const i=[];for(const o of e){process.env.NODE_ENV!=="production"&&!o.components&&!o.children.length&&P(`Record with path "${o.path}" is either missing a "component(s)" or "children" property.`);for(const a in o.components){let l=o.components[a];if(process.env.NODE_ENV!=="production"){if(!l||typeof l!="object"&&typeof l!="function")throw P(`Component "${a}" in record with path "${o.path}" is not a valid component. Received "${String(l)}".`),new Error("Invalid route component");if("then"in l){P(`Component "${a}" in record with path "${o.path}" is a Promise instead of a function that returns a Promise. Did you write "import('./MyPage.vue')" instead of "() => import('./MyPage.vue')" ? This will break in production if not fixed.`);const c=l;l=()=>c}else l.__asyncLoader&&!l.__warnedDefineAsync&&(l.__warnedDefineAsync=!0,P(`Component "${a}" in record with path "${o.path}" is defined using "defineAsyncComponent()". Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))".`))}if(!(t!=="beforeRouteEnter"&&!o.instances[a]))if(ca(l)){const u=(l.__vccOpts||l)[t];u&&i.push(Ue(u,n,r,o,a))}else{let c=l();process.env.NODE_ENV!=="production"&&!("catch"in c)&&(P(`Component "${a}" in record with path "${o.path}" is a function that does not return a Promise. If you were passing a functional component, make sure to add a "displayName" to the component. This will break in production if not fixed.`),c=Promise.resolve(c)),i.push(()=>c.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${a}" at "${o.path}"`));const d=ao(u)?u.default:u;o.components[a]=d;const f=(d.__vccOpts||d)[t];return f&&Ue(f,n,r,o,a)()}))}}}return i}function ca(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function os(e){const t=s.inject(In),n=s.inject(Bn),r=s.computed(()=>t.resolve(s.unref(e.to))),i=s.computed(()=>{const{matched:c}=r.value,{length:u}=c,d=c[u-1],h=n.matched;if(!d||!h.length)return-1;const f=h.findIndex(Ye.bind(null,d));if(f>-1)return f;const g=as(c[u-2]);return u>1&&as(d)===g&&h[h.length-1].path!==g?h.findIndex(Ye.bind(null,c[u-2])):f}),o=s.computed(()=>i.value>-1&&fa(n.params,r.value.params)),a=s.computed(()=>i.value>-1&&i.value===n.matched.length-1&&Yr(n.params,r.value.params));function l(c={}){return ua(c)?t[s.unref(e.replace)?"replace":"push"](s.unref(e.to)).catch(kt):Promise.resolve()}if(process.env.NODE_ENV!=="production"&&Te){const c=s.getCurrentInstance();if(c){const u={route:r.value,isActive:o.value,isExactActive:a.value};c.__vrl_devtools=c.__vrl_devtools||[],c.__vrl_devtools.push(u),s.watchEffect(()=>{u.route=r.value,u.isActive=o.value,u.isExactActive=a.value},{flush:"post"})}}return{route:r,href:s.computed(()=>r.value.href),isActive:o,isExactActive:a,navigate:l}}const da=s.defineComponent({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:os,setup(e,{slots:t}){const n=s.reactive(os(e)),{options:r}=s.inject(In),i=s.computed(()=>({[ls(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[ls(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:s.h("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},o)}}});function ua(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function fa(e,t){for(const n in t){const r=t[n],i=e[n];if(typeof r=="string"){if(r!==i)return!1}else if(!le(i)||i.length!==r.length||r.some((o,a)=>o!==i[a]))return!1}return!0}function as(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const ls=(e,t,n)=>e??t??n,ha=s.defineComponent({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){process.env.NODE_ENV!=="production"&&ma();const r=s.inject(An),i=s.computed(()=>e.route||r.value),o=s.inject(is,0),a=s.computed(()=>{let u=s.unref(o);const{matched:d}=i.value;let h;for(;(h=d[u])&&!h.components;)u++;return u}),l=s.computed(()=>i.value.matched[a.value]);s.provide(is,s.computed(()=>a.value+1)),s.provide(aa,l),s.provide(An,i);const c=s.ref();return s.watch(()=>[c.value,l.value,e.name],([u,d,h],[f,g,b])=>{d&&(d.instances[h]=u,g&&g!==d&&u&&u===f&&(d.leaveGuards.size||(d.leaveGuards=g.leaveGuards),d.updateGuards.size||(d.updateGuards=g.updateGuards))),u&&d&&(!g||!Ye(d,g)||!f)&&(d.enterCallbacks[h]||[]).forEach(I=>I(u))},{flush:"post"}),()=>{const u=i.value,d=e.name,h=l.value,f=h&&h.components[d];if(!f)return cs(n.default,{Component:f,route:u});const g=h.props[d],b=g?g===!0?u.params:typeof g=="function"?g(u):g:null,I=N=>{N.component.isUnmounted&&(h.instances[d]=null)},B=s.h(f,Y({},b,t,{onVnodeUnmounted:I,ref:c}));if(process.env.NODE_ENV!=="production"&&Te&&B.ref){const N={depth:a.value,name:h.name,path:h.path,meta:h.meta};(le(B.ref)?B.ref.map(z=>z.i):[B.ref.i]).forEach(z=>{z.__vrv_devtools=N})}return cs(n.default,{Component:B,route:u})||B}}});function cs(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const pa=ha;function ma(){const e=s.getCurrentInstance(),t=e.parent&&e.parent.type.name,n=e.parent&&e.parent.subTree&&e.parent.subTree.type;if(t&&(t==="KeepAlive"||t.includes("Transition"))&&typeof n=="object"&&n.name==="RouterView"){const r=t==="KeepAlive"?"keep-alive":"transition";P(`<router-view> can no longer be used directly inside <transition> or <keep-alive>.
|
|
17
|
+
Use slot props instead:
|
|
18
|
+
|
|
19
|
+
<router-view v-slot="{ Component }">
|
|
20
|
+
<${r}>
|
|
21
|
+
<component :is="Component" />
|
|
22
|
+
</${r}>
|
|
23
|
+
</router-view>`)}}function Dt(e,t){const n=Y({},e,{matched:e.matched.map(r=>va(r,["instances","children","aliasOf"]))});return{_custom:{type:null,readOnly:!0,display:e.fullPath,tooltip:t,value:n}}}function Gt(e){return{_custom:{display:e}}}let ga=0;function _a(e,t,n){if(t.__hasDevtools)return;t.__hasDevtools=!0;const r=ga++;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},i=>{typeof i.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."),i.on.inspectComponent((d,h)=>{d.instanceData&&d.instanceData.state.push({type:"Routing",key:"$route",editable:!1,value:Dt(t.currentRoute.value,"Current Route")})}),i.on.visitComponentTree(({treeNode:d,componentInstance:h})=>{if(h.__vrv_devtools){const f=h.__vrv_devtools;d.tags.push({label:(f.name?`${f.name.toString()}: `:"")+f.path,textColor:0,tooltip:"This component is rendered by <router-view>",backgroundColor:ds})}le(h.__vrl_devtools)&&(h.__devtoolsApi=i,h.__vrl_devtools.forEach(f=>{let g=hs,b="";f.isExactActive?(g=fs,b="This is exactly active"):f.isActive&&(g=us,b="This link is active"),d.tags.push({label:f.route.path,textColor:0,tooltip:b,backgroundColor:g})}))}),s.watch(t.currentRoute,()=>{c(),i.notifyComponentUpdate(),i.sendInspectorTree(l),i.sendInspectorState(l)});const o="router:navigations:"+r;i.addTimelineLayer({id:o,label:`Router${r?" "+r:""} Navigations`,color:4237508}),t.onError((d,h)=>{i.addTimelineEvent({layerId:o,event:{title:"Error during Navigation",subtitle:h.fullPath,logType:"error",time:i.now(),data:{error:d},groupId:h.meta.__navigationId}})});let a=0;t.beforeEach((d,h)=>{const f={guard:Gt("beforeEach"),from:Dt(h,"Current Location during this navigation"),to:Dt(d,"Target location")};Object.defineProperty(d.meta,"__navigationId",{value:a++}),i.addTimelineEvent({layerId:o,event:{time:i.now(),title:"Start of navigation",subtitle:d.fullPath,data:f,groupId:d.meta.__navigationId}})}),t.afterEach((d,h,f)=>{const g={guard:Gt("afterEach")};f?(g.failure={_custom:{type:Error,readOnly:!0,display:f?f.message:"",tooltip:"Navigation Failure",value:f}},g.status=Gt("❌")):g.status=Gt("✅"),g.from=Dt(h,"Current Location during this navigation"),g.to=Dt(d,"Target location"),i.addTimelineEvent({layerId:o,event:{title:"End of navigation",subtitle:d.fullPath,time:i.now(),data:g,logType:f?"warning":"default",groupId:d.meta.__navigationId}})});const l="router-inspector:"+r;i.addInspector({id:l,label:"Routes"+(r?" "+r:""),icon:"book",treeFilterPlaceholder:"Search routes"});function c(){if(!u)return;const d=u;let h=n.getRoutes().filter(f=>!f.parent||!f.parent.record.components);h.forEach(gs),d.filter&&(h=h.filter(f=>Yn(f,d.filter.toLowerCase()))),h.forEach(f=>ms(f,t.currentRoute.value)),d.rootNodes=h.map(ps)}let u;i.on.getInspectorTree(d=>{u=d,d.app===e&&d.inspectorId===l&&c()}),i.on.getInspectorState(d=>{if(d.app===e&&d.inspectorId===l){const f=n.getRoutes().find(g=>g.record.__vd_id===d.nodeId);f&&(d.state={options:wa(f)})}}),i.sendInspectorTree(l),i.sendInspectorState(l)})}function ya(e){return e.optional?e.repeatable?"*":"?":e.repeatable?"+":""}function wa(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}${ya(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,Sa=2282478,hs=16486972,ka=6710886;function ps(e){const t=[],{record:n}=e;n.name!=null&&t.push({label:String(n.name),textColor:0,backgroundColor:Sa}),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:ka});let r=n.__vd_id;return r==null&&(r=String(ba++),n.__vd_id=r),{id:r,label:n.path,tags:t,children:e.children.map(ps)}}let ba=0;const Ea=/^\/(.*)\/([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(Ea);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 i=e.record.path.toLowerCase(),o=vt(i);return!t.startsWith("/")&&(o.includes(t)||i.includes(t))||o.startsWith(t)||i.startsWith(t)||e.record.name&&String(e.record.name).includes(t)?!0:e.children.some(a=>Yn(a,t))}function va(e,t){const n={};for(const r in e)t.includes(r)||(n[r]=e[r]);return n}function Oa(e){const t=Fo(e.routes,e),n=e.parseQuery||ia,r=e.stringifyQuery||ss,i=e.history;if(process.env.NODE_ENV!=="production"&&!i)throw new Error('Provide the "history" option when calling "createRouter()": https://next.router.vuejs.org/api/#history.');const o=Ot(),a=Ot(),l=Ot(),c=s.shallowRef(Le);let u=Le;Te&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=Mn.bind(null,p=>""+p),h=Mn.bind(null,sa),f=Mn.bind(null,vt);function g(p,S){let y,E;return Hr(p)?(y=t.getRecordMatcher(p),E=S):E=p,t.addRoute(E,y)}function b(p){const S=t.getRecordMatcher(p);S?t.removeRoute(S):process.env.NODE_ENV!=="production"&&P(`Cannot remove non-existent route "${String(p)}"`)}function I(){return t.getRoutes().map(p=>p.record)}function B(p){return!!t.getRecordMatcher(p)}function N(p,S){if(S=Y({},S||c.value),typeof p=="string"){const V=Vn(n,p,S.path),q=t.resolve({path:V.path},S),st=i.createHref(V.fullPath);return process.env.NODE_ENV!=="production"&&(st.startsWith("//")?P(`Location "${p}" resolved to "${st}". A resolved location cannot start with multiple slashes.`):q.matched.length||P(`No match found for location with path "${p}"`)),Y(V,q,{params:f(q.params),hash:vt(V.hash),redirectedFrom:void 0,href:st})}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=Y({},p,{path:Vn(n,p.path,S.path).path});else{const V=Y({},p.params);for(const q in V)V[q]==null&&delete V[q];y=Y({},p,{params:h(V)}),S.params=h(S.params)}const E=t.resolve(y,S),L=p.hash||"";process.env.NODE_ENV!=="production"&&L&&!L.startsWith("#")&&P(`A \`hash\` should always start with the character "#". Replace "${L}" with "#${L}".`),E.params=d(f(E.params));const Q=uo(r,Y({},p,{hash:ta(L),path:E.path})),R=i.createHref(Q);return process.env.NODE_ENV!=="production"&&(R.startsWith("//")?P(`Location "${p}" resolved to "${R}". A resolved location cannot start with multiple slashes.`):E.matched.length||P(`No match found for location with path "${"path"in p?p.path:p}"`)),Y({fullPath:Q,hash:L,query:r===ss?oa(p.query):p.query||{}},E,{redirectedFrom:void 0,href:R})}function M(p){return typeof p=="string"?Vn(n,p,c.value.path):Y({},p)}function z(p,S){if(u!==p)return ot(8,{from:S,to:p})}function ne(p){return D(p)}function pe(p){return ne(Y(M(p),{replace:!0}))}function me(p){const S=p.matched[p.matched.length-1];if(S&&S.redirect){const{redirect:y}=S;let E=typeof y=="function"?y(p):y;if(typeof E=="string"&&(E=E.includes("?")||E.includes("#")?E=M(E):{path:E},E.params={}),process.env.NODE_ENV!=="production"&&!("path"in E)&&!("name"in E))throw P(`Invalid redirect found:
|
|
24
|
+
${JSON.stringify(E,null,2)}
|
|
25
|
+
when navigating to "${p.fullPath}". A redirect must contain a name or path. This will break in production.`),new Error("Invalid redirect");return Y({query:p.query,hash:p.hash,params:"path"in E?{}:p.params},E)}}function D(p,S){const y=u=N(p),E=c.value,L=p.state,Q=p.force,R=p.replace===!0,V=me(y);if(V)return D(Y(M(V),{state:typeof V=="object"?Y({},L,V.state):L,force:Q,replace:R}),S||y);const q=y;q.redirectedFrom=S;let st;return!Q&&Fr(r,E,y)&&(st=ot(16,{to:q,from:E}),Xi(E,E,!0,!1)),(st?Promise.resolve(st):O(q,E)).catch(oe=>Me(oe)?Me(oe,2)?oe:Pr(oe):ie(oe,q,E)).then(oe=>{if(oe){if(Me(oe,2))return process.env.NODE_ENV!=="production"&&Fr(r,N(oe.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 "${E.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"))):D(Y({replace:R},M(oe.to),{state:typeof oe.to=="object"?Y({},L,oe.to.state):L,force:Q}),S||q)}else oe=H(q,E,!0,R,L);return k(q,E,oe),oe})}function Qi(p,S){const y=z(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 O(p,S){let y;const[E,L,Q]=Da(p,S);y=Fn(E.reverse(),"beforeRouteLeave",p,S);for(const V of E)V.leaveGuards.forEach(q=>{y.push(Ue(q,p,S))});const R=Qi.bind(null,p,S);return y.push(R),St(y).then(()=>{y=[];for(const V of o.list())y.push(Ue(V,p,S));return y.push(R),St(y)}).then(()=>{y=Fn(L,"beforeRouteUpdate",p,S);for(const V of L)V.updateGuards.forEach(q=>{y.push(Ue(q,p,S))});return y.push(R),St(y)}).then(()=>{y=[];for(const V of Q)if(V.beforeEnter)if(le(V.beforeEnter))for(const q of V.beforeEnter)y.push(Ue(q,p,S));else y.push(Ue(V.beforeEnter,p,S));return y.push(R),St(y)}).then(()=>(p.matched.forEach(V=>V.enterCallbacks={}),y=Fn(Q,"beforeRouteEnter",p,S),y.push(R),St(y))).then(()=>{y=[];for(const V of a.list())y.push(Ue(V,p,S));return y.push(R),St(y)}).catch(V=>Me(V,8)?V:Promise.reject(V))}function k(p,S,y){l.list().forEach(E=>ke(()=>E(p,S,y)))}function H(p,S,y,E,L){const Q=z(p,S);if(Q)return Q;const R=S===Le,V=Te?history.state:{};y&&(E||R?i.replace(p.fullPath,Y({scroll:R&&V&&V.scroll},L)):i.push(p.fullPath,L)),c.value=p,Xi(p,S,y,R),Pr()}let ee;function rt(){ee||(ee=i.listen((p,S,y)=>{if(!eo.listening)return;const E=N(p),L=me(E);if(L){D(Y(L,{replace:!0}),E).catch(kt);return}u=E;const Q=c.value;Te&&wo(Ur(Q.fullPath,y.delta),Ht()),O(E,Q).catch(R=>Me(R,12)?R:Me(R,2)?(D(R.to,E).then(V=>{Me(V,20)&&!y.delta&&y.type===bt.pop&&i.go(-1,!1)}).catch(kt),Promise.reject()):(y.delta&&i.go(-y.delta,!1),ie(R,E,Q))).then(R=>{R=R||H(E,Q,!1),R&&(y.delta&&!Me(R,8)?i.go(-y.delta,!1):y.type===bt.pop&&Me(R,20)&&i.go(-1,!1)),k(E,Q,R)}).catch(kt)}))}let jt=Ot(),On=Ot(),Ne;function ie(p,S,y){Pr(p);const E=On.list();return E.length?E.forEach(L=>L(p,S,y)):(process.env.NODE_ENV!=="production"&&P("uncaught error during route navigation:"),console.error(p)),Promise.reject(p)}function Yp(){return Ne&&c.value!==Le?Promise.resolve():new Promise((p,S)=>{jt.add([p,S])})}function Pr(p){return Ne||(Ne=!p,rt(),jt.list().forEach(([S,y])=>p?y(p):S()),jt.reset()),p}function Xi(p,S,y,E){const{scrollBehavior:L}=e;if(!Te||!L)return Promise.resolve();const Q=!y&&So(Ur(p.fullPath,0))||(E||!y)&&history.state&&history.state.scroll||null;return s.nextTick().then(()=>L(p,S,Q)).then(R=>R&&yo(R)).catch(R=>ie(R,p,S))}const xr=p=>i.go(p);let Ir;const Dn=new Set,eo={currentRoute:c,listening:!0,addRoute:g,removeRoute:b,hasRoute:B,getRoutes:I,resolve:N,options:e,push:ne,replace:pe,go:xr,back:()=>xr(-1),forward:()=>xr(1),beforeEach:o.add,beforeResolve:a.add,afterEach:l.add,onError:On.add,isReady:Yp,install(p){const S=this;p.component("RouterLink",da),p.component("RouterView",pa),p.config.globalProperties.$router=S,Object.defineProperty(p.config.globalProperties,"$route",{enumerable:!0,get:()=>s.unref(c)}),Te&&!Ir&&c.value===Le&&(Ir=!0,ne(i.location).catch(L=>{process.env.NODE_ENV!=="production"&&P("Unexpected error when starting the router:",L)}));const y={};for(const L in Le)Object.defineProperty(y,L,{get:()=>c.value[L],enumerable:!0});p.provide(In,S),p.provide(Bn,s.shallowReactive(y)),p.provide(An,c);const E=p.unmount;Dn.add(p),p.unmount=function(){Dn.delete(p),Dn.size<1&&(u=Le,ee&&ee(),ee=null,c.value=Le,Ir=!1,Ne=!1),E()},process.env.NODE_ENV!=="production"&&Te&&_a(p,S,t)}};function St(p){return p.reduce((S,y)=>S.then(()=>ke(y)),Promise.resolve())}return eo}function Da(e,t){const n=[],r=[],i=[],o=Math.max(t.matched.length,e.matched.length);for(let a=0;a<o;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))||i.push(c))}return[n,r,i]}function Na(){return s.inject(Bn)}var _s=!1;function zt(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
|
+
* pinia v2.1.7
|
|
28
|
+
* (c) 2023 Eduardo San Martin Morote
|
|
29
|
+
* @license MIT
|
|
30
|
+
*/let Nt;const Tt=e=>Nt=e,ys=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function Ze(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var be;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(be||(be={}));const Kt=typeof window<"u",Mt=(process.env.NODE_ENV!=="production"||!1)&&process.env.NODE_ENV!=="test"&&Kt,ws=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:typeof globalThis=="object"?globalThis:{HTMLElement:null};function Ta(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e}function Un(e,t,n){const r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){bs(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function Ss(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function qt(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{const n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}}const Zt=typeof navigator=="object"?navigator:{userAgent:""},ks=/Macintosh/.test(Zt.userAgent)&&/AppleWebKit/.test(Zt.userAgent)&&!/Safari/.test(Zt.userAgent),bs=Kt?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!ks?Ma:"msSaveOrOpenBlob"in Zt?Va:Ca:()=>{};function Ma(e,t="download",n){const r=document.createElement("a");r.download=t,r.rel="noopener",typeof e=="string"?(r.href=e,r.origin!==location.origin?Ss(r.href)?Un(e,t,n):(r.target="_blank",qt(r)):qt(r)):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){qt(r)},0))}function Va(e,t="download",n){if(typeof e=="string")if(Ss(e))Un(e,t,n);else{const r=document.createElement("a");r.href=e,r.target="_blank",setTimeout(function(){qt(r)})}else navigator.msSaveOrOpenBlob(Ta(e,n),t)}function Ca(e,t,n,r){if(r=r||open("","_blank"),r&&(r.document.title=r.document.body.innerText="downloading..."),typeof e=="string")return Un(e,t,n);const i=e.type==="application/octet-stream",o=/constructor/i.test(String(ws.HTMLElement))||"safari"in ws,a=/CriOS\/[\d]+/.test(navigator.userAgent);if((a||i&&o||ks)&&typeof FileReader<"u"){const l=new FileReader;l.onloadend=function(){let c=l.result;if(typeof c!="string")throw r=null,new Error("Wrong reader.result type");c=a?c:c.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=c:location.assign(c),r=null},l.readAsDataURL(e)}else{const l=URL.createObjectURL(e);r?r.location.assign(l):location.href=l,r=null,setTimeout(function(){URL.revokeObjectURL(l)},4e4)}}function te(e,t){const n="🍍 "+e;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(n,t):t==="error"?console.error(n):t==="warn"?console.warn(n):console.log(n)}function Wn(e){return"_a"in e&&"install"in e}function Es(){if(!("clipboard"in navigator))return te("Your browser doesn't support the Clipboard API","error"),!0}function vs(e){return e instanceof Error&&e.message.toLowerCase().includes("document is not focused")?(te('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function Ra(e){if(!Es())try{await navigator.clipboard.writeText(JSON.stringify(e.state.value)),te("Global state copied to clipboard.")}catch(t){if(vs(t))return;te("Failed to serialize the state. Check the console for more details.","error"),console.error(t)}}async function $a(e){if(!Es())try{Os(e,JSON.parse(await navigator.clipboard.readText())),te("Global state pasted from clipboard.")}catch(t){if(vs(t))return;te("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(t)}}async function Pa(e){try{bs(new Blob([JSON.stringify(e.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(t){te("Failed to export the state as JSON. Check the console for more details.","error"),console.error(t)}}let Ve;function xa(){Ve||(Ve=document.createElement("input"),Ve.type="file",Ve.accept=".json");function e(){return new Promise((t,n)=>{Ve.onchange=async()=>{const r=Ve.files;if(!r)return t(null);const i=r.item(0);return t(i?{text:await i.text(),file:i}:null)},Ve.oncancel=()=>t(null),Ve.onerror=n,Ve.click()})}return e}async function Ia(e){try{const n=await xa()();if(!n)return;const{text:r,file:i}=n;Os(e,JSON.parse(r)),te(`Global state imported from "${i.name}".`)}catch(t){te("Failed to import the state from JSON. Check the console for more details.","error"),console.error(t)}}function Os(e,t){for(const n in t){const r=e.state.value[n];r?Object.assign(r,t[n]):e.state.value[n]=t[n]}}function ge(e){return{_custom:{display:e}}}const Ds="🍍 Pinia (root)",jn="_root";function Ba(e){return Wn(e)?{id:jn,label:Ds}:{id:e.$id,label:e.$id}}function Aa(e){if(Wn(e)){const n=Array.from(e._s.keys()),r=e._s;return{state:n.map(o=>({editable:!0,key:o,value:e.state.value[o]})),getters:n.filter(o=>r.get(o)._getters).map(o=>{const a=r.get(o);return{editable:!1,key:o,value:a._getters.reduce((l,c)=>(l[c]=a[c],l),{})}})}}const t={state:Object.keys(e.$state).map(n=>({editable:!0,key:n,value:e.$state[n]}))};return e._getters&&e._getters.length&&(t.getters=e._getters.map(n=>({editable:!1,key:n,value:e[n]}))),e._customProperties.size&&(t.customProperties=Array.from(e._customProperties).map(n=>({editable:!0,key:n,value:e[n]}))),t}function Fa(e){return e?Array.isArray(e)?e.reduce((t,n)=>(t.keys.push(n.key),t.operations.push(n.type),t.oldValue[n.key]=n.oldValue,t.newValue[n.key]=n.newValue,t),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:ge(e.type),key:ge(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function Ya(e){switch(e){case be.direct:return"mutation";case be.patchFunction:return"$patch";case be.patchObject:return"$patch";default:return"unknown"}}let at=!0;const Jt=[],Je="pinia:mutations",re="pinia",{assign:La}=Object,Qt=e=>"🍍 "+e;function Ua(e,t){Tn({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Jt,app:e},n=>{typeof n.now!="function"&&te("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."),n.addTimelineLayer({id:Je,label:"Pinia 🍍",color:15064968}),n.addInspector({id:re,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{Ra(t)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await $a(t),n.sendInspectorTree(re),n.sendInspectorState(re)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{Pa(t)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await Ia(t),n.sendInspectorTree(re),n.sendInspectorState(re)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:r=>{const i=t._s.get(r);i?typeof i.$reset!="function"?te(`Cannot reset "${r}" store because it doesn't have a "$reset" method implemented.`,"warn"):(i.$reset(),te(`Store "${r}" reset.`)):te(`Cannot reset "${r}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent((r,i)=>{const o=r.componentInstance&&r.componentInstance.proxy;if(o&&o._pStores){const a=r.componentInstance.proxy._pStores;Object.values(a).forEach(l=>{r.instanceData.state.push({type:Qt(l.$id),key:"state",editable:!0,value:l._isOptionsAPI?{_custom:{value:s.toRaw(l.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>l.$reset()}]}}:Object.keys(l.$state).reduce((c,u)=>(c[u]=l.$state[u],c),{})}),l._getters&&l._getters.length&&r.instanceData.state.push({type:Qt(l.$id),key:"getters",editable:!1,value:l._getters.reduce((c,u)=>{try{c[u]=l[u]}catch(d){c[u]=d}return c},{})})})}}),n.on.getInspectorTree(r=>{if(r.app===e&&r.inspectorId===re){let i=[t];i=i.concat(Array.from(t._s.values())),r.rootNodes=(r.filter?i.filter(o=>"$id"in o?o.$id.toLowerCase().includes(r.filter.toLowerCase()):Ds.toLowerCase().includes(r.filter.toLowerCase())):i).map(Ba)}}),n.on.getInspectorState(r=>{if(r.app===e&&r.inspectorId===re){const i=r.nodeId===jn?t:t._s.get(r.nodeId);if(!i)return;i&&(r.state=Aa(i))}}),n.on.editInspectorState((r,i)=>{if(r.app===e&&r.inspectorId===re){const o=r.nodeId===jn?t:t._s.get(r.nodeId);if(!o)return te(`store "${r.nodeId}" not found`,"error");const{path:a}=r;Wn(o)?a.unshift("state"):(a.length!==1||!o._customProperties.has(a[0])||a[0]in o.$state)&&a.unshift("$state"),at=!1,r.set(o,a,r.state.value),at=!0}}),n.on.editComponentState(r=>{if(r.type.startsWith("🍍")){const i=r.type.replace(/^🍍\s*/,""),o=t._s.get(i);if(!o)return te(`store "${i}" not found`,"error");const{path:a}=r;if(a[0]!=="state")return te(`Invalid path for store "${i}":
|
|
31
|
+
${a}
|
|
32
|
+
Only state can be modified.`);a[0]="$state",at=!1,r.set(o,a,r.state.value),at=!0}})})}function Wa(e,t){Jt.includes(Qt(t.$id))||Jt.push(Qt(t.$id)),Tn({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Jt,app:e,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},n=>{const r=typeof n.now=="function"?n.now.bind(n):Date.now;t.$onAction(({after:a,onError:l,name:c,args:u})=>{const d=Ns++;n.addTimelineEvent({layerId:Je,event:{time:r(),title:"🛫 "+c,subtitle:"start",data:{store:ge(t.$id),action:ge(c),args:u},groupId:d}}),a(h=>{We=void 0,n.addTimelineEvent({layerId:Je,event:{time:r(),title:"🛬 "+c,subtitle:"end",data:{store:ge(t.$id),action:ge(c),args:u,result:h},groupId:d}})}),l(h=>{We=void 0,n.addTimelineEvent({layerId:Je,event:{time:r(),logType:"error",title:"💥 "+c,subtitle:"end",data:{store:ge(t.$id),action:ge(c),args:u,error:h},groupId:d}})})},!0),t._customProperties.forEach(a=>{s.watch(()=>s.unref(t[a]),(l,c)=>{n.notifyComponentUpdate(),n.sendInspectorState(re),at&&n.addTimelineEvent({layerId:Je,event:{time:r(),title:"Change",subtitle:a,data:{newValue:l,oldValue:c},groupId:We}})},{deep:!0})}),t.$subscribe(({events:a,type:l},c)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(re),!at)return;const u={time:r(),title:Ya(l),data:La({store:ge(t.$id)},Fa(a)),groupId:We};l===be.patchFunction?u.subtitle="⤵️":l===be.patchObject?u.subtitle="🧩":a&&!Array.isArray(a)&&(u.subtitle=a.type),a&&(u.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:a}}),n.addTimelineEvent({layerId:Je,event:u})},{detached:!0,flush:"sync"});const i=t._hotUpdate;t._hotUpdate=s.markRaw(a=>{i(a),n.addTimelineEvent({layerId:Je,event:{time:r(),title:"🔥 "+t.$id,subtitle:"HMR update",data:{store:ge(t.$id),info:ge("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(re),n.sendInspectorState(re)});const{$dispose:o}=t;t.$dispose=()=>{o(),n.notifyComponentUpdate(),n.sendInspectorTree(re),n.sendInspectorState(re),n.getSettings().logStoreChanges&&te(`Disposed "${t.$id}" store 🗑`)},n.notifyComponentUpdate(),n.sendInspectorTree(re),n.sendInspectorState(re),n.getSettings().logStoreChanges&&te(`"${t.$id}" store installed 🆕`)})}let Ns=0,We;function Ts(e,t,n){const r=t.reduce((i,o)=>(i[o]=s.toRaw(e)[o],i),{});for(const i in r)e[i]=function(){const o=Ns,a=n?new Proxy(e,{get(...c){return We=o,Reflect.get(...c)},set(...c){return We=o,Reflect.set(...c)}}):e;We=o;const l=r[i].apply(a,arguments);return We=void 0,l}}function ja({app:e,store:t,options:n}){if(t.$id.startsWith("__hot:"))return;t._isOptionsAPI=!!n.state,Ts(t,Object.keys(n.actions),t._isOptionsAPI);const r=t._hotUpdate;s.toRaw(t)._hotUpdate=function(i){r.apply(this,arguments),Ts(t,Object.keys(i._hmrPayload.actions),!!t._isOptionsAPI)},Wa(e,t)}function Ha(){const e=s.effectScope(!0),t=e.run(()=>s.ref({}));let n=[],r=[];const i=s.markRaw({install(o){Tt(i),i._a=o,o.provide(ys,i),o.config.globalProperties.$pinia=i,Mt&&Ua(o,i),r.forEach(a=>n.push(a)),r=[]},use(o){return!this._a&&!_s?r.push(o):n.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return Mt&&typeof Proxy<"u"&&i.use(ja),i}function Ms(e,t){for(const n in t){const r=t[n];if(!(n in e))continue;const i=e[n];Ze(i)&&Ze(r)&&!s.isRef(r)&&!s.isReactive(r)?e[n]=Ms(i,r):e[n]=r}return e}const Vs=()=>{};function Cs(e,t,n,r=Vs){e.push(t);const i=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),r())};return!n&&s.getCurrentScope()&&s.onScopeDispose(i),i}function lt(e,...t){e.slice().forEach(n=>{n(...t)})}const Ga=e=>e();function Hn(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],i=e[n];Ze(i)&&Ze(r)&&e.hasOwnProperty(n)&&!s.isRef(r)&&!s.isReactive(r)?e[n]=Hn(i,r):e[n]=r}return e}const za=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function Ka(e){return!Ze(e)||!e.hasOwnProperty(za)}const{assign:de}=Object;function Rs(e){return!!(s.isRef(e)&&e.effect)}function $s(e,t,n,r){const{state:i,actions:o,getters:a}=t,l=n.state.value[e];let c;function u(){!l&&(process.env.NODE_ENV==="production"||!r)&&(n.state.value[e]=i?i():{});const d=process.env.NODE_ENV!=="production"&&r?s.toRefs(s.ref(i?i():{}).value):s.toRefs(n.state.value[e]);return de(d,o,Object.keys(a||{}).reduce((h,f)=>(process.env.NODE_ENV!=="production"&&f in d&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${e}".`),h[f]=s.markRaw(s.computed(()=>{Tt(n);const g=n._s.get(e);return a[f].call(g,g)})),h),{}))}return c=Gn(e,u,t,n,r,!0),c}function Gn(e,t,n={},r,i,o){let a;const l=de({actions:{}},n);if(process.env.NODE_ENV!=="production"&&!r._e.active)throw new Error("Pinia destroyed");const c={deep:!0};process.env.NODE_ENV!=="production"&&!_s&&(c.onTrigger=O=>{u?g=O:u==!1&&!D._hotUpdating&&(Array.isArray(g)?g.push(O):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let u,d,h=[],f=[],g;const b=r.state.value[e];!o&&!b&&(process.env.NODE_ENV==="production"||!i)&&(r.state.value[e]={});const I=s.ref({});let B;function N(O){let k;u=d=!1,process.env.NODE_ENV!=="production"&&(g=[]),typeof O=="function"?(O(r.state.value[e]),k={type:be.patchFunction,storeId:e,events:g}):(Hn(r.state.value[e],O),k={type:be.patchObject,payload:O,storeId:e,events:g});const H=B=Symbol();s.nextTick().then(()=>{B===H&&(u=!0)}),d=!0,lt(h,k,r.state.value[e])}const M=o?function(){const{state:k}=n,H=k?k():{};this.$patch(ee=>{de(ee,H)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:Vs;function z(){a.stop(),h=[],f=[],r._s.delete(e)}function ne(O,k){return function(){Tt(r);const H=Array.from(arguments),ee=[],rt=[];function jt(ie){ee.push(ie)}function On(ie){rt.push(ie)}lt(f,{args:H,name:O,store:D,after:jt,onError:On});let Ne;try{Ne=k.apply(this&&this.$id===e?this:D,H)}catch(ie){throw lt(rt,ie),ie}return Ne instanceof Promise?Ne.then(ie=>(lt(ee,ie),ie)).catch(ie=>(lt(rt,ie),Promise.reject(ie))):(lt(ee,Ne),Ne)}}const pe=s.markRaw({actions:{},getters:{},state:[],hotState:I}),me={_p:r,$id:e,$onAction:Cs.bind(null,f),$patch:N,$reset:M,$subscribe(O,k={}){const H=Cs(h,O,k.detached,()=>ee()),ee=a.run(()=>s.watch(()=>r.state.value[e],rt=>{(k.flush==="sync"?d:u)&&O({storeId:e,type:be.direct,events:g},rt)},de({},c,k)));return H},$dispose:z},D=s.reactive(process.env.NODE_ENV!=="production"||Mt?de({_hmrPayload:pe,_customProperties:s.markRaw(new Set)},me):me);r._s.set(e,D);const ke=(r._a&&r._a.runWithContext||Ga)(()=>r._e.run(()=>(a=s.effectScope()).run(t)));for(const O in ke){const k=ke[O];if(s.isRef(k)&&!Rs(k)||s.isReactive(k))process.env.NODE_ENV!=="production"&&i?zt(I.value,O,s.toRef(ke,O)):o||(b&&Ka(k)&&(s.isRef(k)?k.value=b[O]:Hn(k,b[O])),r.state.value[e][O]=k),process.env.NODE_ENV!=="production"&&pe.state.push(O);else if(typeof k=="function"){const H=process.env.NODE_ENV!=="production"&&i?k:ne(O,k);ke[O]=H,process.env.NODE_ENV!=="production"&&(pe.actions[O]=k),l.actions[O]=k}else process.env.NODE_ENV!=="production"&&Rs(k)&&(pe.getters[O]=o?n.getters[O]:k,Kt&&(ke._getters||(ke._getters=s.markRaw([]))).push(O))}if(de(D,ke),de(s.toRaw(D),ke),Object.defineProperty(D,"$state",{get:()=>process.env.NODE_ENV!=="production"&&i?I.value:r.state.value[e],set:O=>{if(process.env.NODE_ENV!=="production"&&i)throw new Error("cannot set hotState");N(k=>{de(k,O)})}}),process.env.NODE_ENV!=="production"&&(D._hotUpdate=s.markRaw(O=>{D._hotUpdating=!0,O._hmrPayload.state.forEach(k=>{if(k in D.$state){const H=O.$state[k],ee=D.$state[k];typeof H=="object"&&Ze(H)&&Ze(ee)?Ms(H,ee):O.$state[k]=ee}zt(D,k,s.toRef(O.$state,k))}),Object.keys(D.$state).forEach(k=>{k in O.$state||Ln(D,k)}),u=!1,d=!1,r.state.value[e]=s.toRef(O._hmrPayload,"hotState"),d=!0,s.nextTick().then(()=>{u=!0});for(const k in O._hmrPayload.actions){const H=O[k];zt(D,k,ne(k,H))}for(const k in O._hmrPayload.getters){const H=O._hmrPayload.getters[k],ee=o?s.computed(()=>(Tt(r),H.call(D,D))):H;zt(D,k,ee)}Object.keys(D._hmrPayload.getters).forEach(k=>{k in O._hmrPayload.getters||Ln(D,k)}),Object.keys(D._hmrPayload.actions).forEach(k=>{k in O._hmrPayload.actions||Ln(D,k)}),D._hmrPayload=O._hmrPayload,D._getters=O._getters,D._hotUpdating=!1})),Mt){const O={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(k=>{Object.defineProperty(D,k,de({value:D[k]},O))})}return r._p.forEach(O=>{if(Mt){const k=a.run(()=>O({store:D,app:r._a,pinia:r,options:l}));Object.keys(k||{}).forEach(H=>D._customProperties.add(H)),de(D,k)}else de(D,a.run(()=>O({store:D,app:r._a,pinia:r,options:l})))}),process.env.NODE_ENV!=="production"&&D.$state&&typeof D.$state=="object"&&typeof D.$state.constructor=="function"&&!D.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
|
|
33
|
+
state: () => new MyClass()
|
|
34
|
+
Found in store "${D.$id}".`),b&&o&&n.hydrate&&n.hydrate(D.$state,b),u=!0,d=!0,D}function ct(e,t,n){let r,i;const o=typeof t=="function";if(typeof e=="string")r=e,i=o?n:t;else if(i=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"&&Nt&&Nt._testing?null:l)||(u?s.inject(ys,null):null),l&&Tt(l),process.env.NODE_ENV!=="production"&&!Nt)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
|
+
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
36
|
+
This will fail in production.`);l=Nt,l._s.has(r)||(o?Gn(r,t,i,l):$s(r,i,l),process.env.NODE_ENV!=="production"&&(a._pinia=l));const d=l._s.get(r);if(process.env.NODE_ENV!=="production"&&c){const h="__hot:"+r,f=o?Gn(h,t,i,l,!0):$s(h,de({},i),l,!0);c._hotUpdate(f),delete l.state.value[h],l._s.delete(h)}if(process.env.NODE_ENV!=="production"&&Kt){const h=s.getCurrentInstance();if(h&&h.proxy&&!c){const f=h.proxy,g="_pStores"in f?f._pStores:f._pStores={};g[r]=d}}return d}return a.$id=r,a}function Ps(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 i=e(this.$pinia),o=t[r];return typeof o=="function"?o.call(this,i):i[o]},n),{})}class qa extends Error{constructor(t){super(`The filter '${t}' was not found.`)}}const K=ct("filter",()=>{const e=s.ref(!1),t=s.ref([]),n=s.computed(()=>t.value),r=s.computed(()=>n.value.length),i=f=>{t.value.push(f)},o=()=>{t.value=[]};function a(){t.value.forEach(f=>f.reset())}const l=s.computed(()=>d.value.filter(f=>f.isActive())),c=s.computed(()=>l.value.length>0),u=s.computed(()=>t.value.sort((f,g)=>f.displayPosition<g.displayPosition?-1:f.displayPosition>g.displayPosition?1:0)),d=s.computed(()=>e.value===!0?u.value:u.value.filter(f=>f.display==="quick"));return{showAdvanced:e,filters:t,all:n,count:r,active:l,hasActive:c,forDisplay:d,byId:f=>{const g=t.value.find(b=>b.id===f);if(g===void 0)throw new qa(f);return g},reset:a,add:i,clear:o}});class Za extends Error{constructor(t){super(`The record ${t} was not found.`)}}const Xt=ct("records",()=>{const e=s.ref([]),t=s.computed(()=>e.value.length),n=s.computed(()=>e.value);function r(o){const a=e.value.find(l=>l.record_number.value===o);if(a===void 0)throw new Za(o);return a}function i(o){e.value=o}return{all:n,count:t,byId:r,set:i,records:e}});class zn extends Error{constructor(t){super(`The field ${t} was not found.`)}}const Vt={SourceDataFile:"./site-data.json",UnknownEnvironment:"UNKNOWN",ShortenedRecordCount:50};class xs extends Error{constructor(n,r){super(n);$(this,"innerError");r&&(this.innerError=r)}}class Ja{async getData(){try{const t=await fetch(Vt.SourceDataFile);if(!t.ok)throw new xs(`Response status not OK. StatusCode: "${t.status}". StatusText: ${t.statusText} `);return await t.json()}catch(t){throw console.error(t),new xs("Failed to read source data.",t)}}}function Qa(e){const t={},n=en();return Object.keys(e).sort().forEach(r=>{if(n.byId(r)===void 0)throw new zn(r)}),n.all.forEach(r=>{t[r.id]={value:e[r.id],field:r}}),t}function Xa(e){return e.map(t=>Qa(t))}const Ct=ct("dataset",()=>{const e=s.ref(!1),t=s.ref(""),n=s.ref(!1),r=s.ref();async function i(){try{e.value=!0;const a=new Ja;r.value=await a.getData(),n.value=!0,Xt().set(Xa(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 o=s.computed(()=>t.value!=""?"ERROR":e.value?"LOADING":n.value?"OK":"EMPTY");return{errorMessage:t,status:o,loadData:i,dataset:r}}),en=ct("fields",()=>{const e=Ct(),t=s.computed(()=>{var i;return((i=e.dataset)==null?void 0:i.fields)??[]}),n=s.computed(()=>t.value.length);function r(i){const o=t.value.find(a=>a.id===i);if(o===void 0)throw new zn(i);return o}return{all:t,count:n,byId:r}}),Kn=ct("properties",()=>{var u;const e=en(),n=(u=Ct().dataset)==null?void 0:u.properties,r=s.computed(()=>(n==null?void 0:n.extraPages)??[]),i=s.computed(()=>(n==null?void 0:n.metadata)??void 0),o=s.computed(()=>(n==null?void 0:n.title)??"Loading..."),a=s.computed(()=>(n==null?void 0:n.resultMode)??"filter"),l=s.computed(()=>n!=null&&n.sortableFields?n==null?void 0:n.sortableFields.map(d=>e.byId(d)):[]),c=s.computed(()=>{if(n!=null&&n.idField)return e.byId(n==null?void 0:n.idField);throw new zn("UNDEFINED")});return{extraPages:r,metadata:i,title:o,idField:c,sortableFields:l,resultMode:a}});var je=(e=>(e.Ascending="Ascending",e.Descending="Descending",e))(je||{});function el(e,t,n,r){var a,l;if(!n||!r)return 0;const i=(a=e[n])==null?void 0:a.value,o=(l=t[n])==null?void 0:l.value;return!i&&!o?0:!i&&o?r===je.Ascending?1:-1:i&&!o||i.toString().localeCompare(o.toString())<0?r===je.Ascending?-1:1:i.toString().localeCompare(o.toString())>0?r===je.Ascending?1:-1:0}const He=ct("searchResults",()=>{const e=Xt(),t=Kn(),n=K(),r=s.computed(()=>t.resultMode==="search"&&!n.hasActive?[]:n.active.reduce((I,B)=>B.filterRecords(I),e.all)),i=s.computed(()=>{let I=r.value;return c.value&&(I=I.sort((B,N)=>el(B,N,u.value,d.value))),I=h.value?I:I.slice(0,Vt.ShortenedRecordCount),I}),o=s.computed(()=>r.value.length),a=s.computed(()=>i.value.length),l=s.computed(()=>a.value===o.value),c=s.computed(()=>t.sortableFields.length>0),u=s.ref(b()),d=s.ref(g()),h=s.ref(!1);function f(){u.value=b(),d.value=g()}function g(){return c.value?je.Ascending:void 0}function b(){return c.value?t.sortableFields[0].id:void 0}return{all:r,totalCount:o,visible:i,visibleCount:a,showAllResults:h,allResultsAreVisible:l,hasSortFields:c,sortFieldId:u,sortDirection:d,reset:f}}),Is={template:"#templateCapeHomepageLayout",computed:{...Ps(K,["showAdvanced"]),...Ps(He,{hasMatches:e=>e.totalCount>0})}},tl={class:"cape-home-page"},Bs=s.defineComponent({__name:"CapeHomePage",setup(e){return(t,n)=>(s.openBlock(),s.createElementBlock("form",tl,[s.createVNode(Is)]))}}),As={template:"#templateCapeRecordCard",props:["record"]},nl={key:0,class:"cape-record-page-record-not-found"},rl={class:"cape-record-page-record-id"},Fs=s.defineComponent({__name:"CapeRecordPage",setup(e){const t=Na(),n=Xt(),r=s.computed(()=>parseInt(t.params.id)),i=s.computed(()=>{try{return n.byId(r.value)}catch{return}});return(o,a)=>i.value===void 0?(s.openBlock(),s.createElementBlock("div",nl,[s.createTextVNode("The record with Record ID "),s.createElementVNode("span",rl,s.toDisplayString(r.value),1),s.createTextVNode(" does not exist.")])):(s.openBlock(),s.createBlock(As,{key:1,record:i.value},null,8,["record"]))}}),sl=Oa({history:Oo("/"),routes:[{name:"root",path:"/",component:Bs},{name:"record",path:"/record/:id",component:Fs}],linkActiveClass:"active",linkExactActiveClass:"active"}),Ys={template:"#templateCapeNavigation"},il={class:"cape-load-error cape-error"},ol=s.createElementVNode("h2",null,"Unable to load data",-1),al={class:"cape-load-error-message"},Ls=s.defineComponent({__name:"CapeLoadError",setup(e){const t=Ct();return(n,r)=>(s.openBlock(),s.createElementBlock("div",il,[ol,s.createElementVNode("p",null,[s.createTextVNode("An error has occurred. The error was: "),s.createElementVNode("span",al,s.toDisplayString(s.unref(t).errorMessage),1),s.createTextVNode(".")])]))}});function Us(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(o){return t[o.toUpperCase()]??o},i=n.replace(/\S/g,r);return new RegExp(i,"g")}class qn{constructor(t,n,r,i){$(this,"id");$(this,"componentId");$(this,"displayPosition");$(this,"display");this.id=t,this.componentId=n,this.displayPosition=r,this.display=i}filterRecords(t){return t.filter(n=>this.matchesRecord(n))}matchesRecord(t){throw new Error("matchesRecord or filterRecords must be overridden!")}}function dt(e){return Array.isArray(e)?e:[e]}class ll extends qn{constructor(n,r,i,o,a,l){super(n,r,i,o);$(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(i=>{const o=Us(i);return this.termRegexpMatchesRecord(o,n)})}termRegexpMatchesRecord(n,r){return Object.values(r).some(i=>this.termRegexpMatchesValue(n,i.value))}termRegexpMatchesValue(n,r){return dt(r).some(o=>`${o}`.match(n))}}class tn extends qn{constructor(n,r,i,o,a){super(n,r,i,o);$(this,"field");a.changeFilterMode||(a.changeFilterMode=!0),this.field=a}matchesRecord(n){const r=n[this.field.id].value;return this.matchesValue(r)}}function cl(e,t){if(e===void 0||e==="")return!1;const n=t.trim().toLowerCase().split(/\s+/),r=dt(e);return n.every(i=>{const o=Us(i);return r.some(a=>`${a}`.match(o))})}function Rt(e){return!(e===""||e===void 0||Array.isArray(e)&&e.length===0)}function nn(e){return!Rt(e)}function Zn(e,t){return e===""||e===void 0?!1:dt(e).find(i=>`${i}`.trim().toLowerCase()===t.trim().toLowerCase())!==void 0}class dl extends tn{constructor(n,r,i,o,a,l,c){super(n,r,i,o,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 cl(n,this.term);case"is":return Zn(n,this.term);case"set":return Rt(n);case"notSet":return nn(n)}}}function Ws(e,t){return e===""||e===void 0?!1:dt(e).find(i=>`${i}`===t)!==void 0}function ul(e,t){return t.find(r=>Ws(e,r))!==void 0}class fl extends tn{constructor(n,r,i,o,a,l,c,u){super(n,r,i,o,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 ul(n,this.oneOfTerms);case"is":return Ws(n,this.isTerm);case"set":return Rt(n);case"notSet":return nn(n)}}}function hl(e,t,n){return e===""||e===void 0?!1:dt(e).find(o=>o>=t&&o<=n)!==void 0}function Qe(e){if(e!="")return e}function js(e,t){const n=Qe(e);return n??t}class pl extends tn{constructor(n,r,i,o,a,l,c,u,d){super(n,r,i,o,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&&Qe(this.isTerm)==this.defaultIsTerm;case"between":return this.mode==this.defaultMode&&Qe(this.lowerBoundTerm)==this.defaultLowerBound&&Qe(this.upperBoundTerm)==this.defaultUpperBound;case"set":case"notSet":return this.mode==this.defaultMode}}isActive(){switch(this.mode){case"is":return Qe(this.isTerm)!==void 0;case"between":return Qe(this.lowerBoundTerm)!==void 0||Qe(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=js(this.lowerBoundTerm,Number.NEGATIVE_INFINITY),i=js(this.upperBoundTerm,Number.POSITIVE_INFINITY);return hl(n,r,i)}case"set":return Rt(n);case"notSet":return nn(n)}}}function ml(e,t,n){return e===""||e===void 0?!1:dt(e).find(o=>(t===void 0||o>=t)&&(n===void 0||o<=n))!==void 0}class gl extends tn{constructor(n,r,i,o,a,l,c,u,d){super(n,r,i,o,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(i=>parseInt(i)):[]}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(i=>parseInt(i)))}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 ml(n,this.termToLowerBound(this.lowerBoundTerm),this.termToUpperBound(this.upperBoundTerm));case"set":return Rt(n);case"notSet":return nn(n)}}}function _l(e){yl(),wl(),Sl(),Ol(e)}function yl(){K().clear()}function wl(){K().add(new ll("free-text","CapeFilterFreeText",-100,"quick","","free text search"))}function Sl(){const e=en();let t=0;e.all.forEach(n=>{if(n.filterDisplay==="hide")return;const r=n.filterDisplay??"advanced";switch(t+=100,n.type){case"text":kl(t,n,r);break;case"enum":bl(t,n,r);break;case"integer":El(t,n,r);break;case"date":vl(t,n,r);break}})}function kl(e,t,n){K().add(new dl("field-"+t.id,"CapeFilterFieldText",e,n,t,"",t.defaultFilterMode??"contains"))}function bl(e,t,n){K().add(new fl("field-"+t.id,"CapeFilterFieldEnum",e,n,t,"",[],t.defaultFilterMode??"oneOf"))}function El(e,t,n){K().add(new pl("field-"+t.id,"CapeFilterFieldInteger",e,n,t,void 0,void 0,void 0,t.defaultFilterMode??"between"))}function vl(e,t,n){K().add(new gl("field-"+t.id,"CapeFilterFieldDate",e,n,t,"","","",t.defaultFilterMode??"between"))}function Ol(e){const t=K();e.forEach(n=>t.add(n))}const Hs=s.defineComponent({__name:"CapeRoot",async setup(e){let t,n;const r=Ct();[t,n]=s.withAsyncContext(()=>r.loadData()),await t,n();const i=s.inject("capeOptions");return _l(i.additionalFilters??[]),(o,a)=>(s.openBlock(),s.createElementBlock("div",null,[s.unref(r).status==="ERROR"?(s.openBlock(),s.createBlock(Ls,{key:0})):s.createCommentVNode("",!0),s.unref(r).status=="OK"?(s.openBlock(),s.createBlock(Ys,{key:1})):s.createCommentVNode("",!0)]))}}),Dl={class:"cape-record-count"},Nl=s.defineComponent({__name:"CapeRecordCount",setup(e){const t=Xt();return(n,r)=>(s.openBlock(),s.createElementBlock("span",Dl,s.toDisplayString(s.unref(t).count),1))}}),Tl={__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]=i=>s.unref(t).showAdvanced=i),type:"checkbox",class:"cape-advanced-search-toggle"},null,512)),[[s.vModelCheckbox,s.unref(t).showAdvanced]])}},Ml={class:"cape-filters"},Vl=s.defineComponent({__name:"CapeFilters",setup(e){const t=K();return(n,r)=>(s.openBlock(),s.createElementBlock("div",Ml,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(t).forDisplay,i=>(s.openBlock(),s.createBlock(s.resolveDynamicComponent(i.componentId),{key:i,filterId:i.id},null,8,["filterId"]))),128))]))}}),Cl={__name:"CapeFormResetButton",setup(e){const t=K(),n=He();function r(){t.reset(),n.reset()}return(i,o)=>(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(i.$slots,"default",{},()=>[s.createTextVNode(" New search ")])]))}},Gs={template:"#templateCapeHeader"},Rl=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},$l={},Pl={class:"cape-loading"},xl=[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 Il(e,t){return s.openBlock(),s.createElementBlock("div",Pl,xl)}const zs=Rl($l,[["render",Il]]);var Bl={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const Al=function(){const e=Bl.VITE_ENVIRONMENT_NAME;return e||(console.warn(`Cannot identify your environment name. Add a "VITE_ENVIRONMENT_NAME" setting to your .env file with one of the following values: "DEV", "PPRD", "PROD", "TEST". Defaulting to "${Vt.UnknownEnvironment}".`),Vt.UnknownEnvironment)},Fl={key:0,id:"non-prod-warning","data-test":"non-prod-warning",class:"cape-non-prod-warning cape-warning cape-closeable"},Yl=s.createElementVNode("strong",null,"WARNING",-1),Ll={class:"cape-non-prod-warning-environment"},Ul={key:0,class:"cape-non-prod-warning-instructions","data-test":"env-file-instructions"},Wl=s.createElementVNode("code",null,[s.createTextVNode("VITE_ENVIRONMENT_NAME=["),s.createElementVNode("em",null,"Environment name goes here..."),s.createTextVNode("]")],-1),jl=s.defineComponent({__name:"CapeNonProdWarning",setup(e){const t=Al(),n=s.ref(!1),r=s.computed(()=>t!="PROD"&&!n.value),i=s.computed(()=>t===Vt.UnknownEnvironment),o=function(){n.value=!0};return(a,l)=>r.value?(s.openBlock(),s.createElementBlock("div",Fl,[Yl,s.createTextVNode(": This is a "),s.createElementVNode("span",Ll,s.toDisplayString(s.unref(t)),1),s.createTextVNode(" instance of this service. "),i.value?(s.openBlock(),s.createElementBlock("span",Ul,[s.createTextVNode(" Note: This pane is being displayed because the CAPE environment for this application is not set to 'PROD'. To set the environment create a '.env' file in the application root directory with contents as follows: "),Wl])):s.createCommentVNode("",!0),s.createElementVNode("span",{"aria-label":"Close",role:"button",tabindex:"0",title:"Hide this message",onClick:o,onKeyup:s.withKeys(o,["enter"]),class:"cape-non-prod-warning-close-button cape-close-button"},"X",32)])):s.createCommentVNode("",!0)}}),Ks={template:"#templateCapeSummaryCard",props:["record"]},Hl={key:0,class:"cape-sort-order","data-test":"cape-sort-order"},Gl=["value"],zl=["value"],Kl=["value"],qs=s.defineComponent({__name:"CapeSortOrder",setup(e){const t=Kn(),n=He();return(r,i)=>s.unref(n).hasSortFields&&s.unref(n).visibleCount>0?(s.openBlock(),s.createElementBlock("div",Hl,[s.createElementVNode("label",null,[s.createTextVNode("Order results by: "),s.withDirectives(s.createElementVNode("select",{class:"cape-sort-order-field","onUpdate:modelValue":i[0]||(i[0]=o=>s.unref(n).sortFieldId=o)},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(t).sortableFields,o=>(s.openBlock(),s.createElementBlock("option",{key:o.id,value:o.id},s.toDisplayString(o.label),9,Gl))),128))],512),[[s.vModelSelect,s.unref(n).sortFieldId]])]),s.withDirectives(s.createElementVNode("select",{class:"cape-sort-order-direction","onUpdate:modelValue":i[1]||(i[1]=o=>s.unref(n).sortDirection=o),"aria-label":"Sort direction"},[s.createElementVNode("option",{value:s.unref(je).Ascending},"Ascending",8,zl),s.createElementVNode("option",{value:s.unref(je).Descending},"Descending",8,Kl)],512),[[s.vModelSelect,s.unref(n).sortDirection]])])):s.createCommentVNode("",!0)}}),ql={__name:"CapeShowAllResultsToggle",setup(e){const t=He();return(n,r)=>s.withDirectives((s.openBlock(),s.createElementBlock("input",{"data-test":"show-all-filters","onUpdate:modelValue":r[0]||(r[0]=i=>s.unref(t).showAllResults=i),type:"checkbox",class:"cape-show-all-results-toggle"},null,512)),[[s.vModelCheckbox,s.unref(t).showAllResults]])}},Zl={key:0,class:"cape-results-info"},Jl={key:0},Ql={key:1},Xl={key:1,class:"cape-results-count"},ec=s.defineComponent({__name:"CapeResultsInfo",setup(e){const t=He();return(n,r)=>s.unref(t).allResultsAreVisible?(s.openBlock(),s.createElementBlock("div",Zl,[s.unref(t).visibleCount==1?(s.openBlock(),s.createElementBlock("div",Jl,"Showing 1 matching record.")):(s.openBlock(),s.createElementBlock("div",Ql,"Showing all "+s.toDisplayString(s.unref(t).visibleCount)+" matching records.",1))])):(s.openBlock(),s.createElementBlock("div",Xl," Showing first "+s.toDisplayString(s.unref(t).visibleCount)+" of "+s.toDisplayString(s.unref(t).totalCount)+" matching records. ",1))}}),tc={class:"cape-results-controls flex justify-between"},nc={class:"flex justify-start"},rc={key:0,class:"cape-show-all-results-toggle switch switch-sm"},sc=["for"],Jn=s.defineComponent({__name:"CapeResultsControls",props:{idDistinguisher:{}},setup(e){const t=e,n=He(),r=s.computed(()=>!n.allResultsAreVisible||n.showAllResults),i=s.computed(()=>`cape-show-all-results-toggle-${t.idDistinguisher}`);return(o,a)=>(s.openBlock(),s.createElementBlock("div",tc,[s.createElementVNode("div",nc,[s.createVNode(ec),r.value?(s.openBlock(),s.createElementBlock("div",rc,[s.createVNode(ql,{class:"cape-results-toggle",id:i.value},null,8,["id"]),s.createElementVNode("label",{for:i.value},"Show All Results",8,sc)])):s.createCommentVNode("",!0)]),s.createVNode(qs)]))}}),ic={class:"cape-results"},oc={key:0,"data-test":"no-matches",class:"cape-results-no-matches"},ac=s.defineComponent({__name:"CapeResults",setup(e){const t=He();return(n,r)=>(s.openBlock(),s.createElementBlock("div",ic,[s.unref(t).totalCount===0?(s.openBlock(),s.createElementBlock("div",oc,"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,(i,o)=>(s.openBlock(),s.createBlock(Ks,{key:o,record:i},null,8,["record"]))),128)),s.createVNode(Jn,{class:"cape-results-controls-bottom","id-distinguisher":"bottom"})],64))]))}});//! moment.js
|
|
37
|
+
//! version : 2.30.1
|
|
38
|
+
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
39
|
+
//! license : MIT
|
|
40
|
+
//! momentjs.com
|
|
41
|
+
var Zs;function _(){return Zs.apply(null,arguments)}function lc(e){Zs=e}function _e(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Xe(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function A(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(A(e,t))return!1;return!0}function ae(e){return e===void 0}function Ce(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function $t(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Js(e,t){var n=[],r,i=e.length;for(r=0;r<i;++r)n.push(t(e[r],r));return n}function Ge(e,t){for(var n in t)A(t,n)&&(e[n]=t[n]);return A(t,"toString")&&(e.toString=t.toString),A(t,"valueOf")&&(e.valueOf=t.valueOf),e}function Ee(e,t,n,r){return vi(e,t,n,r,!0).utc()}function cc(){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 T(e){return e._pf==null&&(e._pf=cc()),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=T(e),n=Xn.call(t.parsedDateParts,function(i){return i!=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?Ge(T(t),e):T(t).userInvalidated=!0,t}var Qs=_.momentProperties=[],tr=!1;function nr(e,t){var n,r,i,o=Qs.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=T(t)),ae(t._locale)||(e._locale=t._locale),o>0)for(n=0;n<o;n++)r=Qs[n],i=t[r],ae(i)||(e[r]=i);return e}function Pt(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 Pt||e!=null&&e._isAMomentObject!=null}function Xs(e){_.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function ue(e,t){var n=!0;return Ge(function(){if(_.deprecationHandler!=null&&_.deprecationHandler(null,e),n){var r=[],i,o,a,l=arguments.length;for(o=0;o<l;o++){if(i="",typeof arguments[o]=="object"){i+=`
|
|
42
|
+
[`+o+"] ";for(a in arguments[0])A(arguments[0],a)&&(i+=a+": "+arguments[0][a]+", ");i=i.slice(0,-2)}else i=arguments[o];r.push(i)}Xs(e+`
|
|
43
|
+
Arguments: `+Array.prototype.slice.call(r).join("")+`
|
|
44
|
+
`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var ei={};function ti(e,t){_.deprecationHandler!=null&&_.deprecationHandler(e,t),ei[e]||(Xs(t),ei[e]=!0)}_.suppressDeprecationWarnings=!1,_.deprecationHandler=null;function ve(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function dc(e){var t,n;for(n in e)A(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=Ge({},e),r;for(r in t)A(t,r)&&(Xe(e[r])&&Xe(t[r])?(n[r]={},Ge(n[r],e[r]),Ge(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)A(e,r)&&!A(t,r)&&Xe(e[r])&&(n[r]=Ge({},n[r]));return n}function sr(e){e!=null&&this.set(e)}var ir;Object.keys?ir=Object.keys:ir=function(e){var t,n=[];for(t in e)A(e,t)&&n.push(t);return n};var uc={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function fc(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),i=t-r.length,o=e>=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var or=/(\[[^\[]*\])|(\\)?([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={},ut={};function v(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(ut[e]=i),t&&(ut[t[0]]=function(){return Oe(i.apply(this,arguments),t[1],t[2])}),n&&(ut[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function hc(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function pc(e){var t=e.match(or),n,r;for(n=0,r=t.length;n<r;n++)ut[t[n]]?t[n]=ut[t[n]]:t[n]=hc(t[n]);return function(i){var o="",a;for(a=0;a<r;a++)o+=ve(t[a])?t[a].call(i,e):t[a];return o}}function on(e,t){return e.isValid()?(t=ni(t,e.localeData()),ar[t]=ar[t]||pc(t),ar[t](e)):e.localeData().invalidDate()}function ni(e,t){var n=5;function r(i){return t.longDateFormat(i)||i}for(sn.lastIndex=0;n>=0&&sn.test(e);)e=e.replace(sn,r),sn.lastIndex=0,n-=1;return e}var mc={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 gc(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(or).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var _c="Invalid date";function yc(){return this._invalidDate}var wc="%d",Sc=/\d{1,2}/;function kc(e){return this._ordinal.replace("%d",e)}var bc={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 Ec(e,t,n,r){var i=this._relativeTime[n];return ve(i)?i(e,t,n,r):i.replace(/%d/i,e)}function vc(e,t){var n=this._relativeTime[e>0?"future":"past"];return ve(n)?n(t):n.replace(/%s/i,t)}var ri={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"?ri[e]||ri[e.toLowerCase()]:void 0}function lr(e){var t={},n,r;for(r in e)A(e,r)&&(n=fe(r),n&&(t[n]=e[r]));return t}var Oc={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 Dc(e){var t=[],n;for(n in e)A(e,n)&&t.push({unit:n,priority:Oc[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var si=/\d/,ce=/\d\d/,ii=/\d{3}/,cr=/\d{4}/,an=/[+-]?\d{6}/,W=/\d\d?/,oi=/\d\d\d\d?/,ai=/\d\d\d\d\d\d?/,ln=/\d{1,3}/,dr=/\d{1,4}/,cn=/[+-]?\d{1,6}/,ft=/\d+/,dn=/[+-]?\d+/,Nc=/Z|[+-]\d\d:?\d\d/gi,un=/Z|[+-]\d\d(?::?\d\d)?/gi,Tc=/[+-]?\d+(\.\d{1,3})?/,xt=/[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,ht=/^[1-9]\d?/,ur=/^([1-9]\d|\d)/,fn;fn={};function w(e,t,n){fn[e]=ve(t)?t:function(r,i){return r&&n?n:t}}function Mc(e,t){return A(fn,e)?fn[e](t._strict,t._locale):new RegExp(Vc(e))}function Vc(e){return Re(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,o){return n||r||i||o}))}function Re(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function he(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function C(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=he(t)),n}var fr={};function U(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),Ce(t)&&(r=function(o,a){a[t]=C(o)}),i=e.length,n=0;n<i;n++)fr[e[n]]=r}function It(e,t){U(e,function(n,r,i,o){i._w=i._w||{},t(n,i._w,i,o)})}function Cc(e,t,n){t!=null&&A(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,et=6,Rc=7,$c=8;v("Y",0,0,function(){var e=this.year();return e<=9999?Oe(e,4):"+"+e}),v(0,["YY",2],0,function(){return this.year()%100}),v(0,["YYYY",4],0,"year"),v(0,["YYYYY",5],0,"year"),v(0,["YYYYYY",6,!0],0,"year"),w("Y",dn),w("YY",W,ce),w("YYYY",dr,cr),w("YYYYY",cn,an),w("YYYYYY",cn,an),U(["YYYYY","YYYYYY"],se),U("YYYY",function(e,t){t[se]=e.length===2?_.parseTwoDigitYear(e):C(e)}),U("YY",function(e,t){t[se]=_.parseTwoDigitYear(e)}),U("Y",function(e,t){t[se]=parseInt(e,10)});function Bt(e){return hn(e)?366:365}_.parseTwoDigitYear=function(e){return C(e)+(C(e)>68?1900:2e3)};var li=pt("FullYear",!0);function Pc(){return hn(this.year())}function pt(e,t){return function(n){return n!=null?(ci(this,e,n),_.updateOffset(this,t),this):At(this,e)}}function At(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 ci(e,t,n){var r,i,o,a,l;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}o=n,a=e.month(),l=e.date(),l=l===29&&a===1&&!hn(o)?28:l,i?r.setUTCFullYear(o,a,l):r.setFullYear(o,a,l)}}function xc(e){return e=fe(e),ve(this[e])?this[e]():this}function Ic(e,t){if(typeof e=="object"){e=lr(e);var n=Dc(e),r,i=n.length;for(r=0;r<i;r++)this[n[r].unit](e[n[r].unit])}else if(e=fe(e),ve(this[e]))return this[e](t);return this}function Bc(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=Bc(t,12);return e+=(t-n)/12,n===1?hn(e)?29:28:31-n%7%2}v("M",["MM",2],"Mo",function(){return this.month()+1}),v("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),v("MMMM",0,0,function(e){return this.localeData().months(this,e)}),w("M",W,ht),w("MM",W,ce),w("MMM",function(e,t){return t.monthsShortRegex(e)}),w("MMMM",function(e,t){return t.monthsRegex(e)}),U(["M","MM"],function(e,t){t[$e]=C(e)-1}),U(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);i!=null?t[$e]=i:T(n).invalidMonth=e});var Ac="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),di="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ui=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Fc=xt,Yc=xt;function Lc(e,t){return e?_e(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ui).test(t)?"format":"standalone"][e.month()]:_e(this._months)?this._months:this._months.standalone}function Uc(e,t){return e?_e(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ui.test(t)?"format":"standalone"][e.month()]:_e(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Wc(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=Ee([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?t==="MMM"?(i=Z.call(this._shortMonthsParse,a),i!==-1?i:null):(i=Z.call(this._longMonthsParse,a),i!==-1?i:null):t==="MMM"?(i=Z.call(this._shortMonthsParse,a),i!==-1?i:(i=Z.call(this._longMonthsParse,a),i!==-1?i:null)):(i=Z.call(this._longMonthsParse,a),i!==-1?i:(i=Z.call(this._shortMonthsParse,a),i!==-1?i:null))}function jc(e,t,n){var r,i,o;if(this._monthsParseExact)return Wc.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=Ee([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.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 fi(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=C(t);else if(t=e.localeData().monthsParse(t),!Ce(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 hi(e){return e!=null?(fi(this,e),_.updateOffset(this,!0),this):At(this,"Month")}function Hc(){return hr(this.year(),this.month())}function Gc(e){return this._monthsParseExact?(A(this,"_monthsRegex")||pi.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(A(this,"_monthsShortRegex")||(this._monthsShortRegex=Fc),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function zc(e){return this._monthsParseExact?(A(this,"_monthsRegex")||pi.call(this),e?this._monthsStrictRegex:this._monthsRegex):(A(this,"_monthsRegex")||(this._monthsRegex=Yc),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function pi(){function e(c,u){return u.length-c.length}var t=[],n=[],r=[],i,o,a,l;for(i=0;i<12;i++)o=Ee([2e3,i]),a=Re(this.monthsShort(o,"")),l=Re(this.months(o,"")),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 Kc(e,t,n,r,i,o,a){var l;return e<100&&e>=0?(l=new Date(e+400,t,n,r,i,o,a),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,n,r,i,o,a),l}function Ft(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,i=(7+Ft(e,0,r).getUTCDay()-t)%7;return-i+r-1}function mi(e,t,n,r,i){var o=(7+n-r)%7,a=pn(e,r,i),l=1+7*(t-1)+o+a,c,u;return l<=0?(c=e-1,u=Bt(c)+l):l>Bt(e)?(c=e+1,u=l-Bt(e)):(c=e,u=l),{year:c,dayOfYear:u}}function Yt(e,t,n){var r=pn(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,o,a;return i<1?(a=e.year()-1,o=i+xe(a,t,n)):i>xe(e.year(),t,n)?(o=i-xe(e.year(),t,n),a=e.year()+1):(a=e.year(),o=i),{week:o,year:a}}function xe(e,t,n){var r=pn(e,t,n),i=pn(e+1,t,n);return(Bt(e)-r+i)/7}v("w",["ww",2],"wo","week"),v("W",["WW",2],"Wo","isoWeek"),w("w",W,ht),w("ww",W,ce),w("W",W,ht),w("WW",W,ce),It(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=C(e)});function qc(e){return Yt(e,this._week.dow,this._week.doy).week}var Zc={dow:0,doy:6};function Jc(){return this._week.dow}function Qc(){return this._week.doy}function Xc(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function ed(e){var t=Yt(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}v("d",0,"do","day"),v("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),v("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),v("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),v("e",0,0,"weekday"),v("E",0,0,"isoWeekday"),w("d",W),w("e",W),w("E",W),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)}),It(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:T(n).invalidWeekday=e}),It(["d","e","E"],function(e,t,n,r){t[r]=C(e)});function td(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function nd(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 rd="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),gi="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),sd="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),id=xt,od=xt,ad=xt;function ld(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 cd(e){return e===!0?pr(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function dd(e){return e===!0?pr(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function ud(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=Ee([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?t==="dddd"?(i=Z.call(this._weekdaysParse,a),i!==-1?i:null):t==="ddd"?(i=Z.call(this._shortWeekdaysParse,a),i!==-1?i:null):(i=Z.call(this._minWeekdaysParse,a),i!==-1?i:null):t==="dddd"?(i=Z.call(this._weekdaysParse,a),i!==-1||(i=Z.call(this._shortWeekdaysParse,a),i!==-1)?i:(i=Z.call(this._minWeekdaysParse,a),i!==-1?i:null)):t==="ddd"?(i=Z.call(this._shortWeekdaysParse,a),i!==-1||(i=Z.call(this._weekdaysParse,a),i!==-1)?i:(i=Z.call(this._minWeekdaysParse,a),i!==-1?i:null)):(i=Z.call(this._minWeekdaysParse,a),i!==-1||(i=Z.call(this._weekdaysParse,a),i!==-1)?i:(i=Z.call(this._shortWeekdaysParse,a),i!==-1?i:null))}function fd(e,t,n){var r,i,o;if(this._weekdaysParseExact)return ud.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=Ee([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.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 hd(e){if(!this.isValid())return e!=null?this:NaN;var t=At(this,"Day");return e!=null?(e=td(e,this.localeData()),this.add(e-t,"d")):t}function pd(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 md(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=nd(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function gd(e){return this._weekdaysParseExact?(A(this,"_weekdaysRegex")||mr.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(A(this,"_weekdaysRegex")||(this._weekdaysRegex=id),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function _d(e){return this._weekdaysParseExact?(A(this,"_weekdaysRegex")||mr.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(A(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=od),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function yd(e){return this._weekdaysParseExact?(A(this,"_weekdaysRegex")||mr.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(A(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ad),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function mr(){function e(d,h){return h.length-d.length}var t=[],n=[],r=[],i=[],o,a,l,c,u;for(o=0;o<7;o++)a=Ee([2e3,1]).day(o),l=Re(this.weekdaysMin(a,"")),c=Re(this.weekdaysShort(a,"")),u=Re(this.weekdays(a,"")),t.push(l),n.push(c),r.push(u),i.push(l),i.push(c),i.push(u);t.sort(e),n.sort(e),r.sort(e),i.sort(e),this._weekdaysRegex=new RegExp("^("+i.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 wd(){return this.hours()||24}v("H",["HH",2],0,"hour"),v("h",["hh",2],0,gr),v("k",["kk",2],0,wd),v("hmm",0,0,function(){return""+gr.apply(this)+Oe(this.minutes(),2)}),v("hmmss",0,0,function(){return""+gr.apply(this)+Oe(this.minutes(),2)+Oe(this.seconds(),2)}),v("Hmm",0,0,function(){return""+this.hours()+Oe(this.minutes(),2)}),v("Hmmss",0,0,function(){return""+this.hours()+Oe(this.minutes(),2)+Oe(this.seconds(),2)});function _i(e,t){v(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}_i("a",!0),_i("A",!1);function yi(e,t){return t._meridiemParse}w("a",yi),w("A",yi),w("H",W,ur),w("h",W,ht),w("k",W,ht),w("HH",W,ce),w("hh",W,ce),w("kk",W,ce),w("hmm",oi),w("hmmss",ai),w("Hmm",oi),w("Hmmss",ai),U(["H","HH"],X),U(["k","kk"],function(e,t,n){var r=C(e);t[X]=r===24?0:r}),U(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),U(["h","hh"],function(e,t,n){t[X]=C(e),T(n).bigHour=!0}),U("hmm",function(e,t,n){var r=e.length-2;t[X]=C(e.substr(0,r)),t[we]=C(e.substr(r)),T(n).bigHour=!0}),U("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[X]=C(e.substr(0,r)),t[we]=C(e.substr(r,2)),t[Pe]=C(e.substr(i)),T(n).bigHour=!0}),U("Hmm",function(e,t,n){var r=e.length-2;t[X]=C(e.substr(0,r)),t[we]=C(e.substr(r))}),U("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[X]=C(e.substr(0,r)),t[we]=C(e.substr(r,2)),t[Pe]=C(e.substr(i))});function Sd(e){return(e+"").toLowerCase().charAt(0)==="p"}var kd=/[ap]\.?m?\.?/i,bd=pt("Hours",!0);function Ed(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var wi={calendar:uc,longDateFormat:mc,invalidDate:_c,ordinal:wc,dayOfMonthOrdinalParse:Sc,relativeTime:bc,months:Ac,monthsShort:di,week:Zc,weekdays:rd,weekdaysMin:sd,weekdaysShort:gi,meridiemParse:kd},G={},Lt={},Ut;function vd(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 Si(e){return e&&e.toLowerCase().replace("_","-")}function Od(e){for(var t=0,n,r,i,o;t<e.length;){for(o=Si(e[t]).split("-"),n=o.length,r=Si(e[t+1]),r=r?r.split("-"):null;n>0;){if(i=mn(o.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&vd(o,r)>=n-1)break;n--}t++}return Ut}function Dd(e){return!!(e&&e.match("^[^/\\\\]*$"))}function mn(e){var t=null,n;if(G[e]===void 0&&typeof module<"u"&&module&&module.exports&&Dd(e))try{t=Ut._abbr,n=require,n("./locale/"+e),ze(t)}catch{G[e]=null}return G[e]}function ze(e,t){var n;return e&&(ae(t)?n=Ie(e):n=_r(e,t),n?Ut=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ut._abbr}function _r(e,t){if(t!==null){var n,r=wi;if(t.abbr=e,G[e]!=null)ti("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=G[e]._config;else if(t.parentLocale!=null)if(G[t.parentLocale]!=null)r=G[t.parentLocale]._config;else if(n=mn(t.parentLocale),n!=null)r=n._config;else return Lt[t.parentLocale]||(Lt[t.parentLocale]=[]),Lt[t.parentLocale].push({name:e,config:t}),null;return G[e]=new sr(rr(r,t)),Lt[e]&&Lt[e].forEach(function(i){_r(i.name,i.config)}),ze(e),G[e]}else return delete G[e],null}function Nd(e,t){if(t!=null){var n,r,i=wi;G[e]!=null&&G[e].parentLocale!=null?G[e].set(rr(G[e]._config,t)):(r=mn(e),r!=null&&(i=r._config),t=rr(i,t),r==null&&(t.abbr=e),n=new sr(t),n.parentLocale=G[e],G[e]=n),ze(e)}else G[e]!=null&&(G[e].parentLocale!=null?(G[e]=G[e].parentLocale,e===ze()&&ze(e)):G[e]!=null&&delete G[e]);return G[e]}function Ie(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ut;if(!_e(e)){if(t=mn(e),t)return t;e=[e]}return Od(e)}function Td(){return ir(G)}function yr(e){var t,n=e._a;return n&&T(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[et]!==0)?X:n[we]<0||n[we]>59?we:n[Pe]<0||n[Pe]>59?Pe:n[et]<0||n[et]>999?et:-1,T(e)._overflowDayOfYear&&(t<se||t>De)&&(t=De),T(e)._overflowWeeks&&t===-1&&(t=Rc),T(e)._overflowWeekday&&t===-1&&(t=$c),T(e).overflow=t),e}var Md=/^\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)?)?$/,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)?)?$/,Cd=/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/]],Rd=/^\/?Date\((-?\d+)/i,$d=/^(?:(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}))$/,Pd={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 ki(e){var t,n,r=e._i,i=Md.exec(r)||Vd.exec(r),o,a,l,c,u=gn.length,d=wr.length;if(i){for(T(e).iso=!0,t=0,n=u;t<n;t++)if(gn[t][1].exec(i[1])){a=gn[t][0],o=gn[t][2]!==!1;break}if(a==null){e._isValid=!1;return}if(i[3]){for(t=0,n=d;t<n;t++)if(wr[t][1].exec(i[3])){l=(i[2]||" ")+wr[t][0];break}if(l==null){e._isValid=!1;return}}if(!o&&l!=null){e._isValid=!1;return}if(i[4])if(Cd.exec(i[4]))c="Z";else{e._isValid=!1;return}e._f=a+(l||"")+(c||""),kr(e)}else e._isValid=!1}function xd(e,t,n,r,i,o){var a=[Id(e),di.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&a.push(parseInt(o,10)),a}function Id(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Bd(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Ad(e,t,n){if(e){var r=gi.indexOf(e),i=new Date(t[0],t[1],t[2]).getDay();if(r!==i)return T(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function Fd(e,t,n){if(e)return Pd[e];if(t)return 0;var r=parseInt(n,10),i=r%100,o=(r-i)/100;return o*60+i}function bi(e){var t=$d.exec(Bd(e._i)),n;if(t){if(n=xd(t[4],t[3],t[2],t[5],t[6],t[7]),!Ad(t[1],n,e))return;e._a=n,e._tzm=Fd(t[8],t[9],t[10]),e._d=Ft.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),T(e).rfc2822=!0}else e._isValid=!1}function Yd(e){var t=Rd.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(ki(e),e._isValid===!1)delete e._isValid;else return;if(bi(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 mt(e,t,n){return e??t??n}function Ld(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=[],i,o,a;if(!e._d){for(i=Ld(e),e._w&&e._a[De]==null&&e._a[$e]==null&&Ud(e),e._dayOfYear!=null&&(a=mt(e._a[se],i[se]),(e._dayOfYear>Bt(a)||e._dayOfYear===0)&&(T(e)._overflowDayOfYear=!0),n=Ft(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]=i[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[et]===0&&(e._nextDay=!0,e._a[X]=0),e._d=(e._useUTC?Ft:Kc).apply(null,r),o=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!==o&&(T(e).weekdayMismatch=!0)}}function Ud(e){var t,n,r,i,o,a,l,c,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(o=1,a=4,n=mt(t.GG,e._a[se],Yt(j(),1,4).year),r=mt(t.W,1),i=mt(t.E,1),(i<1||i>7)&&(c=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,u=Yt(j(),o,a),n=mt(t.gg,e._a[se],u.year),r=mt(t.w,u.week),t.d!=null?(i=t.d,(i<0||i>6)&&(c=!0)):t.e!=null?(i=t.e+o,(t.e<0||t.e>6)&&(c=!0)):i=o),r<1||r>xe(n,o,a)?T(e)._overflowWeeks=!0:c!=null?T(e)._overflowWeekday=!0:(l=mi(n,r,i,o,a),e._a[se]=l.year,e._dayOfYear=l.dayOfYear)}_.ISO_8601=function(){},_.RFC_2822=function(){};function kr(e){if(e._f===_.ISO_8601){ki(e);return}if(e._f===_.RFC_2822){bi(e);return}e._a=[],T(e).empty=!0;var t=""+e._i,n,r,i,o,a,l=t.length,c=0,u,d;for(i=ni(e._f,e._locale).match(or)||[],d=i.length,n=0;n<d;n++)o=i[n],r=(t.match(Mc(o,e))||[])[0],r&&(a=t.substr(0,t.indexOf(r)),a.length>0&&T(e).unusedInput.push(a),t=t.slice(t.indexOf(r)+r.length),c+=r.length),ut[o]?(r?T(e).empty=!1:T(e).unusedTokens.push(o),Cc(o,r,e)):e._strict&&!r&&T(e).unusedTokens.push(o);T(e).charsLeftOver=l-c,t.length>0&&T(e).unusedInput.push(t),e._a[X]<=12&&T(e).bigHour===!0&&e._a[X]>0&&(T(e).bigHour=void 0),T(e).parsedDateParts=e._a.slice(0),T(e).meridiem=e._meridiem,e._a[X]=Wd(e._locale,e._a[X],e._meridiem),u=T(e).era,u!==null&&(e._a[se]=e._locale.erasConvertYear(u,e._a[se])),Sr(e),yr(e)}function Wd(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 jd(e){var t,n,r,i,o,a,l=!1,c=e._f.length;if(c===0){T(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;i<c;i++)o=0,a=!1,t=nr({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[i],kr(t),er(t)&&(a=!0),o+=T(t).charsLeftOver,o+=T(t).unusedTokens.length*10,T(t).score=o,l?o<r&&(r=o,n=t):(r==null||o<r||a)&&(r=o,n=t,a&&(l=!0));Ge(e,n||t)}function Hd(e){if(!e._d){var t=lr(e._i),n=t.day===void 0?t.date:t.day;e._a=Js([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),Sr(e)}}function Gd(e){var t=new Pt(yr(Ei(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Ei(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 Pt(yr(t)):($t(t)?e._d=t:_e(n)?jd(e):n?kr(e):zd(e),er(e)||(e._d=null),e))}function zd(e){var t=e._i;ae(t)?e._d=new Date(_.now()):$t(t)?e._d=new Date(t.valueOf()):typeof t=="string"?Yd(e):_e(t)?(e._a=Js(t.slice(0),function(n){return parseInt(n,10)}),Sr(e)):Xe(t)?Hd(e):Ce(t)?e._d=new Date(t):_.createFromInputFallback(e)}function vi(e,t,n,r,i){var o={};return(t===!0||t===!1)&&(r=t,t=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(Xe(e)&&Qn(e)||_e(e)&&e.length===0)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=i,o._l=n,o._i=e,o._f=t,o._strict=r,Gd(o)}function j(e,t,n,r){return vi(e,t,n,r,!1)}var Kd=ue("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=j.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:rn()}),qd=ue("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=j.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:rn()});function Oi(e,t){var n,r;if(t.length===1&&_e(t[0])&&(t=t[0]),!t.length)return j();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}function Zd(){var e=[].slice.call(arguments,0);return Oi("isBefore",e)}function Jd(){var e=[].slice.call(arguments,0);return Oi("isAfter",e)}var Qd=function(){return Date.now?Date.now():+new Date},Wt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Xd(e){var t,n=!1,r,i=Wt.length;for(t in e)if(A(e,t)&&!(Z.call(Wt,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<i;++r)if(e[Wt[r]]){if(n)return!1;parseFloat(e[Wt[r]])!==C(e[Wt[r]])&&(n=!0)}return!0}function eu(){return this._isValid}function tu(){return Se(NaN)}function _n(e){var t=lr(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=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=Xd(t),this._milliseconds=+d+u*1e3+c*6e4+l*1e3*60*60,this._days=+a+o*7,this._months=+i+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 nu(e,t,n){var r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),o=0,a;for(a=0;a<r;a++)(n&&e[a]!==t[a]||!n&&C(e[a])!==C(t[a]))&&o++;return o+i}function Di(e,t){v(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)})}Di("Z",":"),Di("ZZ",""),w("Z",un),w("ZZ",un),U(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Er(un,e)});var ru=/([\+\-]|\d\d)/gi;function Er(e,t){var n=(t||"").match(e),r,i,o;return n===null?null:(r=n[n.length-1]||[],i=(r+"").match(ru)||["-",0,0],o=+(i[1]*60)+C(i[2]),o===0?0:i[0]==="+"?o:-o)}function vr(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(ye(e)||$t(e)?e.valueOf():j(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),_.updateOffset(n,!1),n):j(e).local()}function Or(e){return-Math.round(e._d.getTimezoneOffset())}_.updateOffset=function(){};function su(e,t,n){var r=this._offset||0,i;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&&(i=Or(this)),this._offset=e,this._isUTC=!0,i!=null&&this.add(i,"m"),r!==e&&(!t||this._changeInProgress?Vi(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 iu(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function ou(e){return this.utcOffset(0,e)}function au(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Or(this),"m")),this}function lu(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Er(Nc,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function cu(e){return this.isValid()?(e=e?j(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function du(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function uu(){if(!ae(this._isDSTShifted))return this._isDSTShifted;var e={},t;return nr(e,this),e=Ei(e),e._a?(t=e._isUTC?Ee(e._a):j(e._a),this._isDSTShifted=this.isValid()&&nu(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function fu(){return this.isValid()?!this._isUTC:!1}function hu(){return this.isValid()?this._isUTC:!1}function Ni(){return this.isValid()?this._isUTC&&this._offset===0:!1}var pu=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,mu=/^(-|\+)?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,i,o,a;return yn(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:Ce(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=pu.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:C(r[De])*i,h:C(r[X])*i,m:C(r[we])*i,s:C(r[Pe])*i,ms:C(br(r[et]*1e3))*i}):(r=mu.exec(e))?(i=r[1]==="-"?-1:1,n={y:tt(r[2],i),M:tt(r[3],i),w:tt(r[4],i),d:tt(r[5],i),h:tt(r[6],i),m:tt(r[7],i),s:tt(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(a=gu(j(n.from),j(n.to)),n={},n.ms=a.milliseconds,n.M=a.months),o=new _n(n),yn(e)&&A(e,"_locale")&&(o._locale=e._locale),yn(e)&&A(e,"_isValid")&&(o._isValid=e._isValid),o}Se.fn=_n.prototype,Se.invalid=tu;function tt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Ti(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 gu(e,t){var n;return e.isValid()&&t.isValid()?(t=vr(t,e),e.isBefore(t)?n=Ti(e,t):(n=Ti(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Mi(e,t){return function(n,r){var i,o;return r!==null&&!isNaN(+r)&&(ti(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."),o=n,n=r,r=o),i=Se(n,r),Vi(this,i,e),this}}function Vi(e,t,n,r){var i=t._milliseconds,o=br(t._days),a=br(t._months);e.isValid()&&(r=r??!0,a&&fi(e,At(e,"Month")+a*n),o&&ci(e,"Date",At(e,"Date")+o*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&_.updateOffset(e,o||a))}var _u=Mi(1,"add"),yu=Mi(-1,"subtract");function Ci(e){return typeof e=="string"||e instanceof String}function wu(e){return ye(e)||$t(e)||Ci(e)||Ce(e)||ku(e)||Su(e)||e===null||e===void 0}function Su(e){var t=Xe(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"],i,o,a=r.length;for(i=0;i<a;i+=1)o=r[i],n=n||A(e,o);return t&&n}function ku(e){var t=_e(e),n=!1;return t&&(n=e.filter(function(r){return!Ce(r)&&Ci(e)}).length===0),t&&n}function bu(e){var t=Xe(e)&&!Qn(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i,o;for(i=0;i<r.length;i+=1)o=r[i],n=n||A(e,o);return t&&n}function Eu(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 vu(e,t){arguments.length===1&&(arguments[0]?wu(arguments[0])?(e=arguments[0],t=void 0):bu(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||j(),r=vr(n,this).startOf("day"),i=_.calendarFormat(this,r)||"sameElse",o=t&&(ve(t[i])?t[i].call(this,n):t[i]);return this.format(o||this.localeData().calendar(i,this,j(n)))}function Ou(){return new Pt(this)}function Du(e,t){var n=ye(e)?e:j(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 Nu(e,t){var n=ye(e)?e:j(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 Tu(e,t,n,r){var i=ye(e)?e:j(e),o=ye(t)?t:j(t);return this.isValid()&&i.isValid()&&o.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(i,n):!this.isBefore(i,n))&&(r[1]===")"?this.isBefore(o,n):!this.isAfter(o,n))):!1}function Mu(e,t){var n=ye(e)?e:j(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 Vu(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Cu(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Ru(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(r=vr(e,this),!r.isValid())return NaN;switch(i=(r.utcOffset()-this.utcOffset())*6e4,t=fe(t),t){case"year":o=wn(this,r)/12;break;case"month":o=wn(this,r);break;case"quarter":o=wn(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:he(o)}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"),i,o;return t-r<0?(i=e.clone().add(n-1,"months"),o=(t-r)/(r-i)):(i=e.clone().add(n+1,"months"),o=(t-r)/(i-r)),-(n+o)||0}_.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",_.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function $u(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Pu(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 xu(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,i,o;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",o=t+'[")]',this.format(n+r+i+o)}function Iu(e){e||(e=this.isUtc()?_.defaultFormatUtc:_.defaultFormat);var t=on(this,e);return this.localeData().postformat(t)}function Bu(e,t){return this.isValid()&&(ye(e)&&e.isValid()||j(e).isValid())?Se({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Au(e){return this.from(j(),e)}function Fu(e,t){return this.isValid()&&(ye(e)&&e.isValid()||j(e).isValid())?Se({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Yu(e){return this.to(j(),e)}function Ri(e){var t;return e===void 0?this._locale._abbr:(t=Ie(e),t!=null&&(this._locale=t),this)}var $i=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 Pi(){return this._locale}var Sn=1e3,gt=60*Sn,kn=60*gt,xi=(365*400+97)*24*kn;function _t(e,t){return(e%t+t)%t}function Ii(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-xi:new Date(e,t,n).valueOf()}function Bi(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-xi:Date.UTC(e,t,n)}function Lu(e){var t,n;if(e=fe(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Bi:Ii,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-=_t(t+(this._isUTC?0:this.utcOffset()*gt),kn);break;case"minute":t=this._d.valueOf(),t-=_t(t,gt);break;case"second":t=this._d.valueOf(),t-=_t(t,Sn);break}return this._d.setTime(t),_.updateOffset(this,!0),this}function Uu(e){var t,n;if(e=fe(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Bi:Ii,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-_t(t+(this._isUTC?0:this.utcOffset()*gt),kn)-1;break;case"minute":t=this._d.valueOf(),t+=gt-_t(t,gt)-1;break;case"second":t=this._d.valueOf(),t+=Sn-_t(t,Sn)-1;break}return this._d.setTime(t),_.updateOffset(this,!0),this}function Wu(){return this._d.valueOf()-(this._offset||0)*6e4}function ju(){return Math.floor(this.valueOf()/1e3)}function Hu(){return new Date(this.valueOf())}function Gu(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function zu(){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 Ku(){return this.isValid()?this.toISOString():null}function qu(){return er(this)}function Zu(){return Ge({},T(this))}function Ju(){return T(this).overflow}function Qu(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}v("N",0,0,"eraAbbr"),v("NN",0,0,"eraAbbr"),v("NNN",0,0,"eraAbbr"),v("NNNN",0,0,"eraName"),v("NNNNN",0,0,"eraNarrow"),v("y",["y",1],"yo","eraYear"),v("y",["yy",2],0,"eraYear"),v("y",["yyy",3],0,"eraYear"),v("y",["yyyy",4],0,"eraYear"),w("N",Dr),w("NN",Dr),w("NNN",Dr),w("NNNN",df),w("NNNNN",uf),U(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?T(n).era=i:T(n).invalidEra=e}),w("y",ft),w("yy",ft),w("yyy",ft),w("yyyy",ft),w("yo",ff),U(["y","yy","yyy","yyyy"],se),U(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[se]=n._locale.eraYearOrdinalParse(e,i):t[se]=parseInt(e,10)});function Xu(e,t){var n,r,i,o=this._eras||Ie("en")._eras;for(n=0,r=o.length;n<r;++n){switch(typeof o[n].since){case"string":i=_(o[n].since).startOf("day"),o[n].since=i.valueOf();break}switch(typeof o[n].until){case"undefined":o[n].until=1/0;break;case"string":i=_(o[n].until).startOf("day").valueOf(),o[n].until=i.valueOf();break}}return o}function ef(e,t,n){var r,i,o=this.eras(),a,l,c;for(e=e.toUpperCase(),r=0,i=o.length;r<i;++r)if(a=o[r].name.toUpperCase(),l=o[r].abbr.toUpperCase(),c=o[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(l===e)return o[r];break;case"NNNN":if(a===e)return o[r];break;case"NNNNN":if(c===e)return o[r];break}else if([a,l,c].indexOf(e)>=0)return o[r]}function tf(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 nf(){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 rf(){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 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].abbr;return""}function of(){var e,t,n,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=i[e].since<=i[e].until?1:-1,r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return(this.year()-_(i[e].since).year())*n+i[e].offset;return this.year()}function af(e){return A(this,"_erasNameRegex")||Nr.call(this),e?this._erasNameRegex:this._erasRegex}function lf(e){return A(this,"_erasAbbrRegex")||Nr.call(this),e?this._erasAbbrRegex:this._erasRegex}function cf(e){return A(this,"_erasNarrowRegex")||Nr.call(this),e?this._erasNarrowRegex:this._erasRegex}function Dr(e,t){return t.erasAbbrRegex(e)}function df(e,t){return t.erasNameRegex(e)}function uf(e,t){return t.erasNarrowRegex(e)}function ff(e,t){return t._eraYearOrdinalRegex||ft}function Nr(){var e=[],t=[],n=[],r=[],i,o,a,l,c,u=this.eras();for(i=0,o=u.length;i<o;++i)a=Re(u[i].name),l=Re(u[i].abbr),c=Re(u[i].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")}v(0,["gg",2],0,function(){return this.weekYear()%100}),v(0,["GG",2],0,function(){return this.isoWeekYear()%100});function bn(e,t){v(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",W,ce),w("gg",W,ce),w("GGGG",dr,cr),w("gggg",dr,cr),w("GGGGG",cn,an),w("ggggg",cn,an),It(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=C(e)}),It(["gg","GG"],function(e,t,n,r){t[r]=_.parseTwoDigitYear(e)});function hf(e){return Ai.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function pf(e){return Ai.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function mf(){return xe(this.year(),1,4)}function gf(){return xe(this.isoWeekYear(),1,4)}function _f(){var e=this.localeData()._week;return xe(this.year(),e.dow,e.doy)}function yf(){var e=this.localeData()._week;return xe(this.weekYear(),e.dow,e.doy)}function Ai(e,t,n,r,i){var o;return e==null?Yt(this,r,i).year:(o=xe(e,r,i),t>o&&(t=o),wf.call(this,e,t,n,r,i))}function wf(e,t,n,r,i){var o=mi(e,t,n,r,i),a=Ft(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}v("Q",0,"Qo","quarter"),w("Q",si),U("Q",function(e,t){t[$e]=(C(e)-1)*3});function Sf(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}v("D",["DD",2],"Do","date"),w("D",W,ht),w("DD",W,ce),w("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),U(["D","DD"],De),U("Do",function(e,t){t[De]=C(e.match(W)[0])});var Fi=pt("Date",!0);v("DDD",["DDDD",3],"DDDo","dayOfYear"),w("DDD",ln),w("DDDD",ii),U(["DDD","DDDD"],function(e,t,n){n._dayOfYear=C(e)});function kf(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}v("m",["mm",2],0,"minute"),w("m",W,ur),w("mm",W,ce),U(["m","mm"],we);var bf=pt("Minutes",!1);v("s",["ss",2],0,"second"),w("s",W,ur),w("ss",W,ce),U(["s","ss"],Pe);var Ef=pt("Seconds",!1);v("S",0,0,function(){return~~(this.millisecond()/100)}),v(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),v(0,["SSS",3],0,"millisecond"),v(0,["SSSS",4],0,function(){return this.millisecond()*10}),v(0,["SSSSS",5],0,function(){return this.millisecond()*100}),v(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),v(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),v(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),v(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),w("S",ln,si),w("SS",ln,ce),w("SSS",ln,ii);var Ke,Yi;for(Ke="SSSS";Ke.length<=9;Ke+="S")w(Ke,ft);function vf(e,t){t[et]=C(("0."+e)*1e3)}for(Ke="S";Ke.length<=9;Ke+="S")U(Ke,vf);Yi=pt("Milliseconds",!1),v("z",0,0,"zoneAbbr"),v("zz",0,0,"zoneName");function Of(){return this._isUTC?"UTC":""}function Df(){return this._isUTC?"Coordinated Universal Time":""}var m=Pt.prototype;m.add=_u,m.calendar=vu,m.clone=Ou,m.diff=Ru,m.endOf=Uu,m.format=Iu,m.from=Bu,m.fromNow=Au,m.to=Fu,m.toNow=Yu,m.get=xc,m.invalidAt=Ju,m.isAfter=Du,m.isBefore=Nu,m.isBetween=Tu,m.isSame=Mu,m.isSameOrAfter=Vu,m.isSameOrBefore=Cu,m.isValid=qu,m.lang=$i,m.locale=Ri,m.localeData=Pi,m.max=qd,m.min=Kd,m.parsingFlags=Zu,m.set=Ic,m.startOf=Lu,m.subtract=yu,m.toArray=Gu,m.toObject=zu,m.toDate=Hu,m.toISOString=Pu,m.inspect=xu,typeof Symbol<"u"&&Symbol.for!=null&&(m[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),m.toJSON=Ku,m.toString=$u,m.unix=ju,m.valueOf=Wu,m.creationData=Qu,m.eraName=nf,m.eraNarrow=rf,m.eraAbbr=sf,m.eraYear=of,m.year=li,m.isLeapYear=Pc,m.weekYear=hf,m.isoWeekYear=pf,m.quarter=m.quarters=Sf,m.month=hi,m.daysInMonth=Hc,m.week=m.weeks=Xc,m.isoWeek=m.isoWeeks=ed,m.weeksInYear=_f,m.weeksInWeekYear=yf,m.isoWeeksInYear=mf,m.isoWeeksInISOWeekYear=gf,m.date=Fi,m.day=m.days=hd,m.weekday=pd,m.isoWeekday=md,m.dayOfYear=kf,m.hour=m.hours=bd,m.minute=m.minutes=bf,m.second=m.seconds=Ef,m.millisecond=m.milliseconds=Yi,m.utcOffset=su,m.utc=ou,m.local=au,m.parseZone=lu,m.hasAlignedHourOffset=cu,m.isDST=du,m.isLocal=fu,m.isUtcOffset=hu,m.isUtc=Ni,m.isUTC=Ni,m.zoneAbbr=Of,m.zoneName=Df,m.dates=ue("dates accessor is deprecated. Use date instead.",Fi),m.months=ue("months accessor is deprecated. Use month instead",hi),m.years=ue("years accessor is deprecated. Use year instead",li),m.zone=ue("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",iu),m.isDSTShifted=ue("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",uu);function Nf(e){return j(e*1e3)}function Tf(){return j.apply(null,arguments).parseZone()}function Li(e){return e}var F=sr.prototype;F.calendar=fc,F.longDateFormat=gc,F.invalidDate=yc,F.ordinal=kc,F.preparse=Li,F.postformat=Li,F.relativeTime=Ec,F.pastFuture=vc,F.set=dc,F.eras=Xu,F.erasParse=ef,F.erasConvertYear=tf,F.erasAbbrRegex=lf,F.erasNameRegex=af,F.erasNarrowRegex=cf,F.months=Lc,F.monthsShort=Uc,F.monthsParse=jc,F.monthsRegex=zc,F.monthsShortRegex=Gc,F.week=qc,F.firstDayOfYear=Qc,F.firstDayOfWeek=Jc,F.weekdays=ld,F.weekdaysMin=dd,F.weekdaysShort=cd,F.weekdaysParse=fd,F.weekdaysRegex=gd,F.weekdaysShortRegex=_d,F.weekdaysMinRegex=yd,F.isPM=Sd,F.meridiem=Ed;function En(e,t,n,r){var i=Ie(),o=Ee().set(r,t);return i[n](o,e)}function Ui(e,t,n){if(Ce(e)&&(t=e,e=void 0),e=e||"",t!=null)return En(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=En(e,r,n,"month");return i}function Tr(e,t,n,r){typeof e=="boolean"?(Ce(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,Ce(t)&&(n=t,t=void 0),t=t||"");var i=Ie(),o=e?i._week.dow:0,a,l=[];if(n!=null)return En(t,(n+o)%7,r,"day");for(a=0;a<7;a++)l[a]=En(t,(a+o)%7,r,"day");return l}function Mf(e,t){return Ui(e,t,"months")}function Vf(e,t){return Ui(e,t,"monthsShort")}function Cf(e,t,n){return Tr(e,t,n,"weekdays")}function Rf(e,t,n){return Tr(e,t,n,"weekdaysShort")}function $f(e,t,n){return Tr(e,t,n,"weekdaysMin")}ze("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=C(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.",ze),_.langData=ue("moment.langData is deprecated. Use moment.localeData instead.",Ie);var Be=Math.abs;function Pf(){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 Wi(e,t,n,r){var i=Se(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function xf(e,t){return Wi(this,e,t,1)}function If(e,t){return Wi(this,e,t,-1)}function ji(e){return e<0?Math.floor(e):Math.ceil(e)}function Bf(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,o,a,l,c;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=ji(Mr(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=he(e/1e3),r.seconds=i%60,o=he(i/60),r.minutes=o%60,a=he(o/60),r.hours=a%24,t+=he(a/24),c=he(Hi(t)),n+=c,t-=ji(Mr(c)),l=he(n/12),n%=12,r.days=t,r.months=n,r.years=l,this}function Hi(e){return e*4800/146097}function Mr(e){return e*146097/4800}function Af(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+Hi(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 Gi=Ae("ms"),Ff=Ae("s"),Yf=Ae("m"),Lf=Ae("h"),Uf=Ae("d"),Wf=Ae("w"),jf=Ae("M"),Hf=Ae("Q"),Gf=Ae("y"),zf=Gi;function Kf(){return Se(this)}function qf(e){return e=fe(e),this.isValid()?this[e+"s"]():NaN}function nt(e){return function(){return this.isValid()?this._data[e]:NaN}}var Zf=nt("milliseconds"),Jf=nt("seconds"),Qf=nt("minutes"),Xf=nt("hours"),eh=nt("days"),th=nt("months"),nh=nt("years");function rh(){return he(this.days()/7)}var Fe=Math.round,yt={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function sh(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function ih(e,t,n,r){var i=Se(e).abs(),o=Fe(i.as("s")),a=Fe(i.as("m")),l=Fe(i.as("h")),c=Fe(i.as("d")),u=Fe(i.as("M")),d=Fe(i.as("w")),h=Fe(i.as("y")),f=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||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&&(f=f||d<=1&&["w"]||d<n.w&&["ww",d]),f=f||u<=1&&["M"]||u<n.M&&["MM",u]||h<=1&&["y"]||["yy",h],f[2]=t,f[3]=+e>0,f[4]=r,sh.apply(null,f)}function oh(e){return e===void 0?Fe:typeof e=="function"?(Fe=e,!0):!1}function ah(e,t){return yt[e]===void 0?!1:t===void 0?yt[e]:(yt[e]=t,e==="s"&&(yt.ss=t-1),!0)}function lh(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=yt,i,o;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},yt,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),o=ih(this,!n,r,i),n&&(o=i.pastFuture(+this,o)),i.postformat(o)}var Vr=Math.abs;function wt(e){return(e>0)-(e<0)||+e}function vn(){if(!this.isValid())return this.localeData().invalidDate();var e=Vr(this._milliseconds)/1e3,t=Vr(this._days),n=Vr(this._months),r,i,o,a,l=this.asSeconds(),c,u,d,h;return l?(r=he(e/60),i=he(r/60),e%=60,r%=60,o=he(n/12),n%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",c=l<0?"-":"",u=wt(this._months)!==wt(l)?"-":"",d=wt(this._days)!==wt(l)?"-":"",h=wt(this._milliseconds)!==wt(l)?"-":"",c+"P"+(o?u+o+"Y":"")+(n?u+n+"M":"")+(t?d+t+"D":"")+(i||r||e?"T":"")+(i?h+i+"H":"")+(r?h+r+"M":"")+(e?h+a+"S":"")):"P0D"}var x=_n.prototype;x.isValid=eu,x.abs=Pf,x.add=xf,x.subtract=If,x.as=Af,x.asMilliseconds=Gi,x.asSeconds=Ff,x.asMinutes=Yf,x.asHours=Lf,x.asDays=Uf,x.asWeeks=Wf,x.asMonths=jf,x.asQuarters=Hf,x.asYears=Gf,x.valueOf=zf,x._bubble=Bf,x.clone=Kf,x.get=qf,x.milliseconds=Zf,x.seconds=Jf,x.minutes=Qf,x.hours=Xf,x.days=eh,x.weeks=rh,x.months=th,x.years=nh,x.humanize=lh,x.toISOString=vn,x.toString=vn,x.toJSON=vn,x.locale=Ri,x.localeData=Pi,x.toIsoString=ue("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",vn),x.lang=$i,v("X",0,0,"unix"),v("x",0,0,"valueOf"),w("x",dn),w("X",Tc),U("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)}),U("x",function(e,t,n){n._d=new Date(C(e))});//! moment.js
|
|
45
|
+
_.version="2.30.1",lc(j),_.fn=m,_.min=Zd,_.max=Jd,_.now=Qd,_.utc=Ee,_.unix=Nf,_.months=Mf,_.isDate=$t,_.locale=ze,_.invalid=rn,_.duration=Se,_.isMoment=ye,_.weekdays=Cf,_.parseZone=Tf,_.localeData=Ie,_.isDuration=yn,_.monthsShort=Vf,_.weekdaysMin=$f,_.defineLocale=_r,_.updateLocale=Nd,_.locales=Td,_.weekdaysShort=Rf,_.normalizeUnits=fe,_.relativeTimeRounding=oh,_.relativeTimeThreshold=ah,_.calendarFormat=Eu,_.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 ch=["title"],Cr=s.defineComponent({__name:"CapeSingleValue",props:{fieldValuePair:{},link:{}},setup(e){const t=e,n=s.computed(()=>t.fieldValuePair.value),r=s.computed(()=>t.fieldValuePair.field),i=s.computed(()=>{let o=`${t.fieldValuePair.value}`;return t.fieldValuePair.field.type=="date"&&(o=_(o).format("dddd, D MMMM YYYY")),o});return(o,a)=>{const l=s.resolveComponent("router-link");return s.openBlock(),s.createElementBlock("span",{class:"cape-single-value",title:r.value.description},[o.link?(s.openBlock(),s.createBlock(l,{key:0,to:r.value.id+"/"+n.value},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(i.value),1)]),_:1},8,["to"])):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(i.value),1)],64))],8,ch)}}}),dh={key:0,class:"cape-error cape-value-error"},uh={key:1,class:"cape-value"},fh={key:0,class:"cape-value-null"},hh={key:0,class:"cape-value-multiple"},zi=s.defineComponent({__name:"CapeValue",props:{fieldValue:{},link:{},hideIfEmpty:{}},setup(e){const t=e,n=s.computed(()=>{var o;return(o=t.fieldValue)==null?void 0:o.value}),r=s.computed(()=>{var o;return(o=t.fieldValue)==null?void 0:o.field}),i=s.computed(()=>n.value===void 0||n.value===""||Array.isArray(n)&&n.value.length===0);return(o,a)=>!o.fieldValue||!r.value?(s.openBlock(),s.createElementBlock("div",dh," [Error: field value pair does not exist!] ")):!o.hideIfEmpty||!i.value?(s.openBlock(),s.createElementBlock("div",uh,[i.value?(s.openBlock(),s.createElementBlock("div",fh,"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",hh,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(n.value,(l,c)=>(s.openBlock(),s.createElementBlock("li",{key:c},[s.createVNode(Cr,{"field-value-pair":{field:r.value,value:l},link:o.link},null,8,["field-value-pair","link"])]))),128))])):(s.openBlock(),s.createBlock(Cr,{key:1,"field-value-pair":o.fieldValue,link:o.link},null,8,["field-value-pair","link"]))],2))])):s.createCommentVNode("",!0)}}),ph={key:0,class:"cape-labelled-value"},mh={key:0,class:"cape-error cape-labelled-value-error"},gh=["title"],_h={key:1,class:"cape-labelled-value-label"},yh=s.defineComponent({__name:"CapeLabelledValue",props:{fieldValue:{},link:{},hideIfEmpty:{}},setup(e){const t=e,n=s.computed(()=>{var o;return(o=t.fieldValue)==null?void 0:o.value}),r=s.computed(()=>{var o;return(o=t.fieldValue)==null?void 0:o.field}),i=s.computed(()=>n.value===void 0||n.value===""||Array.isArray(n)&&n.value.length===0);return(o,a)=>!o.hideIfEmpty||!i.value?(s.openBlock(),s.createElementBlock("div",ph,[!o.fieldValue||!r.value?(s.openBlock(),s.createElementBlock("div",mh," [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,gh)):(s.openBlock(),s.createElementBlock("div",_h,s.toDisplayString(r.value.label),1)),s.createVNode(zi,{link:o.link,"field-value":o.fieldValue},null,8,["link","field-value"])],64))])):s.createCommentVNode("",!0)}}),wh={class:"cape-filter-label"},Sh=["for"],kh={class:"cape-filter-mode"},bh=[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)],Eh={class:"cape-filter-term"},vh=["id","placeholder"],Oh=["id","placeholder"],Dh=s.defineComponent({__name:"CapeFilterFieldText",props:{filterId:{}},setup(e){const t=e,n=K(),r=s.computed(()=>n.byId(t.filterId)),i=s.computed(()=>r.value.field);return(o,a)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("div",wh,[s.createElementVNode("label",{for:"cape-filter-field-input-"+r.value.id,"data-test":"filter-label"},s.toDisplayString(r.value.field.label),9,Sh)]),s.createElementVNode("div",kh,[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"},bh,512)),[[s.vModelSelect,r.value.mode]]):s.createCommentVNode("",!0)]),s.createElementVNode("div",Eh,[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:i.value.placeholderContains,class:"cape-filter-field-text-term","data-test":"filter-term-input"},null,8,vh)),[[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:i.value.placeholderIs,class:"cape-filter-field-text-term","data-test":"filter-term-input"},null,8,Oh)),[[s.vModelText,r.value.term]]):s.createCommentVNode("",!0)])],64))}}),Nh={class:"cape-filter-label"},Th=["for"],Mh={class:"cape-filter-wide-term"},Vh=["id","placeholder"],Ch=s.defineComponent({__name:"CapeFilterFreeText",props:{filterId:{}},setup(e){const t=e,n=K(),r=s.computed(()=>n.byId(t.filterId));return(i,o)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("div",Nh,[s.createElementVNode("label",{for:"cape-filter-input-"+r.value.id},"Free text",8,Th)]),s.createElementVNode("div",Mh,[s.withDirectives(s.createElementVNode("input",{id:"cape-filter-input-"+r.value.id,"onUpdate:modelValue":o[0]||(o[0]=a=>r.value.term=a),placeholder:r.value.placeholder,class:"cape-filter-freetext-term","data-test":"filter-term-input"},null,8,Vh),[[s.vModelText,r.value.term]])])],64))}}),Rh={class:"cape-filter-field-enum-one-of-checkbox"},$h=["id","value"],Ph=["for"],xh=s.defineComponent({__name:"CapeFilterFieldEnumOneOfCheckbox",props:{filterId:{}},setup(e){const t=e,r=K().byId(t.filterId),i=r.field;return(o,a)=>(s.openBlock(),s.createElementBlock("ul",Rh,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(i).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,$h),[[s.vModelCheckbox,s.unref(r).oneOfTerms]]),s.createElementVNode("label",{for:"cape-filter-field-input-"+s.unref(r).id+"-"+l},s.toDisplayString(l),9,Ph)]))),128))]))}});function Rr(e){return e===0?!1:Array.isArray(e)&&e.length===0?!0:!e}function Ih(e){return(...t)=>!e(...t)}function Bh(e,t){return e===void 0&&(e="undefined"),e===null&&(e="null"),e===!1&&(e="false"),e.toString().toLowerCase().indexOf(t.trim())!==-1}function Ki(e,t,n,r){return t?e.filter(i=>Bh(r(i,n),t)).sort((i,o)=>r(i,n).length-r(o,n).length):e}function Ah(e){return e.filter(t=>!t.$isLabel)}function $r(e,t){return n=>n.reduce((r,i)=>i[e]&&i[e].length?(r.push({$groupLabel:i[t],$isLabel:!0}),r.concat(i[e])):r,[])}function Fh(e,t,n,r,i){return o=>o.map(a=>{if(!a[n])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const l=Ki(a[n],e,t,i);return l.length?{[r]:a[r],[n]:l}:[]})}const qi=(...e)=>t=>e.reduce((n,r)=>r(n),t);var Yh={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):Ki(n,t,this.label,this.customLabel):n=this.groupValues?$r(this.groupValues,this.groupLabel)(n):n,n=this.hideSelected?n.filter(Ih(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 qi(Fh(t,n,this.groupValues,this.groupLabel,this.customLabel),$r(this.groupValues,this.groupLabel))(e)},flatAndStrip(e){return qi($r(this.groupValues,this.groupLabel),Ah)(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))}}},Lh={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}}},Zi={name:"vue-multiselect",mixins:[Yh,Lh],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 Uh={ref:"tags",class:"multiselect__tags"},Wh={class:"multiselect__tags-wrap"},jh={class:"multiselect__spinner"},Hh={key:0},Gh={class:"multiselect__option"},zh={class:"multiselect__option"},Kh=s.createTextVNode("No elements found. Consider changing the search query."),qh={class:"multiselect__option"},Zh=s.createTextVNode("List is empty.");function Jh(e,t,n,r,i,o){return s.openBlock(),s.createBlock("div",{tabindex:e.searchable?-1:n.tabindex,class:[{"multiselect--active":e.isOpen,"multiselect--disabled":n.disabled,"multiselect--above":o.isAbove,"multiselect--has-options-group":o.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",Uh,[s.renderSlot(e.$slots,"selection",{search:e.search,remove:e.removeElement,values:o.visibleValues,isOpen:e.isOpen},()=>[s.withDirectives(s.createVNode("div",Wh,[(s.openBlock(!0),s.createBlock(s.Fragment,null,s.renderList(o.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,o.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",jh,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:o.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),o.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:o.singleValue},()=>[s.createTextVNode(s.toDisplayString(e.currentOptionLabel),1)])],32)):s.createCommentVNode("v-if",!0),o.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:o.contentStyle,role:"listbox",id:"listbox-"+e.id},[s.renderSlot(e.$slots,"beforeList"),e.multiple&&e.max===e.internalValue.length?(s.openBlock(),s.createBlock("li",Hh,[s.createVNode("span",Gh,[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:o.selectLabelText,"data-selected":o.selectedLabelText,"data-deselect":o.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&&o.selectGroupLabelText,"data-deselect":e.groupSelect&&o.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",zh,[s.renderSlot(e.$slots,"noResult",{search:e.search},()=>[Kh])])],512),[[s.vShow,n.showNoResults&&e.filteredOptions.length===0&&e.search&&!n.loading]]),s.withDirectives(s.createVNode("li",null,[s.createVNode("span",qh,[s.renderSlot(e.$slots,"noOptions",{},()=>[Zh])])],512),[[s.vShow,n.showNoOptions&&(e.options.length===0||o.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"])}Zi.render=Jh;const Qh=s.defineComponent({__name:"CapeFilterFieldEnumOneOfMultiselect",props:{filterId:{}},setup(e){const t=e,r=K().byId(t.filterId),i=r.field;return(o,a)=>(s.openBlock(),s.createBlock(s.unref(Zi),{id:"filter-multiselect-"+s.unref(i).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(i).values,"preserve-search":!0,placeholder:"Select (1 or more)"},null,8,["id","modelValue","options"]))}}),Xh=["aria-label"],ep=s.createElementVNode("option",{key:"",value:""},null,-1),tp=["value"],np=s.defineComponent({__name:"CapeFilterFieldEnumIsSelect",props:{filterId:{}},setup(e){const t=e,r=K().byId(t.filterId),i=r.field;return(o,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(i).label+" value."},[ep,(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(i).values,l=>(s.openBlock(),s.createElementBlock("option",{key:l,value:l},s.toDisplayString(l),9,tp))),128))],8,Xh)),[[s.vModelSelect,s.unref(r).isTerm]])}}),rp={class:"cape-filter-field-enum-is-radio"},sp={class:"form-check form-check-inline"},ip=["id"],op=["for"],ap=[s.createElementVNode("em",null,"any",-1)],lp=["id","value"],cp=["for"],dp=s.defineComponent({__name:"CapeFilterFieldEnumIsRadio",props:{filterId:{}},setup(e){const t=e,r=K().byId(t.filterId),i=r.field;return(o,a)=>(s.openBlock(),s.createElementBlock("ul",rp,[s.createElementVNode("li",sp,[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,ip),[[s.vModelRadio,s.unref(r).isTerm]]),s.createElementVNode("label",{for:"cape-filter-field-input-"+s.unref(r).id+"-"},ap,8,op)]),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(i).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,lp),[[s.vModelRadio,s.unref(r).isTerm]]),s.createElementVNode("label",{for:"cape-filter-field-input-"+s.unref(r).id+"-"+l},s.toDisplayString(l),9,cp)]))),128))]))}}),up={class:"cape-filter-label"},fp=["for"],hp={class:"cape-filter-mode"},pp=[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)],mp={class:"cape-filter-term"},gp=s.defineComponent({__name:"CapeFilterFieldEnum",props:{filterId:{}},setup(e){const t=e,r=K().byId(t.filterId),i=r.field;return(o,a)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("div",up,[s.createElementVNode("label",{for:"cape-filter-field-input-"+s.unref(r).id,"data-test":"filter-label"},s.toDisplayString(s.unref(r).field.label),9,fp)]),s.createElementVNode("div",hp,[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"},pp,512)),[[s.vModelSelect,s.unref(r).mode]]):s.createCommentVNode("",!0)]),s.createElementVNode("div",mp,[s.unref(r).mode==="oneOf"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.unref(i).filterInputStyleOnOneOf==="checkbox"?(s.openBlock(),s.createBlock(xh,{key:0,"filter-id":o.filterId},null,8,["filter-id"])):(s.openBlock(),s.createBlock(Qh,{key:1,"filter-id":o.filterId},null,8,["filter-id"]))],64)):s.createCommentVNode("",!0),s.unref(r).mode==="is"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.unref(i).filterInputStyleOnIs==="select"?(s.openBlock(),s.createBlock(np,{key:0,"filter-id":o.filterId},null,8,["filter-id"])):(s.openBlock(),s.createBlock(dp,{key:1,"filter-id":o.filterId},null,8,["filter-id"]))],64)):s.createCommentVNode("",!0)])],64))}}),_p={class:"cape-filter-label"},yp=["for"],wp={class:"cape-filter-mode"},Sp=[s.createElementVNode("option",{value:"between"},"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)],kp={class:"cape-filter-term"},bp=["id","placeholder","min","max","step"],Ep=s.createElementVNode("span",{class:"cape-filter-field-integer-term-term-and"},"and",-1),vp=["id","placeholder","min","max","step"],Op=["id","placeholder","min","max","step"],Dp=s.defineComponent({__name:"CapeFilterFieldInteger",props:{filterId:{}},setup(e){const t=e,n=K(),r=s.computed(()=>n.byId(t.filterId)),i=s.computed(()=>r.value.field);return(o,a)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("div",_p,[s.createElementVNode("label",{for:"cape-filter-field-input-"+r.value.id,"data-test":"filter-label"},s.toDisplayString(r.value.field.label),9,yp)]),s.createElementVNode("div",wp,[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"},Sp,512)),[[s.vModelSelect,r.value.mode]]):s.createCommentVNode("",!0)]),s.createElementVNode("div",kp,[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(i.value.placeholderBetween)?i.value.placeholderBetween[0]:"",type:"number",min:i.value.min,max:i.value.max,step:i.value.step,class:"cape-filter-field-integer-term-lower-bound","data-test":"filter-term-input-lower-bound"},null,8,bp),[[s.vModelText,r.value.lowerBoundTerm]]),Ep,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(i.value.placeholderBetween)?i.value.placeholderBetween[1]:"",type:"number",min:i.value.min,max:i.value.max,step:i.value.step,class:"cape-filter-field-integer-term-upper-bound","data-test":"filter-term-input-upper-bound"},null,8,vp),[[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:i.value.placeholderIs,type:"number",min:i.value.min,max:i.value.max,step:i.value.step,class:"cape-filter-field-integer-term","data-test":"filter-term-input"},null,8,Op)),[[s.vModelText,r.value.isTerm]]):s.createCommentVNode("",!0)])],64))}}),Np={class:"cape-filter-label"},Tp=["for"],Mp={class:"cape-filter-mode"},Vp=[s.createElementVNode("option",{value:"between"},"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)],Cp={class:"cape-filter-term"},Rp=["id","placeholder"],$p=s.createElementVNode("span",{class:"cape-filter-field-date-term-term-and"},"and",-1),Pp=["id","placeholder"],xp=["id","placeholder"],Ip=s.defineComponent({__name:"CapeFilterFieldDate",props:{filterId:{}},setup(e){const t=e,n=K(),r=s.computed(()=>n.byId(t.filterId)),i=s.computed(()=>r.value.field);return(o,a)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("div",Np,[s.createElementVNode("label",{for:"cape-filter-field-input-"+r.value.id,"data-test":"filter-label"},s.toDisplayString(r.value.field.label),9,Tp)]),s.createElementVNode("div",Mp,[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"},Vp,512)),[[s.vModelSelect,r.value.mode]]):s.createCommentVNode("",!0)]),s.createElementVNode("div",Cp,[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(i.value.placeholderBetween)?i.value.placeholderBetween[0]:"",class:"cape-filter-field-date-term-term-lower-bound","data-test":"filter-term-input-lower-bound"},null,8,Rp),[[s.vModelText,r.value.lowerBoundTerm]]),$p,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(i.value.placeholderBetween)?i.value.placeholderBetween[1]:"",class:"cape-filter-field-date-term-term-upper-bound","data-test":"filter-term-input-upper-bound"},null,8,Pp),[[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:i.value.placeholderIs,class:"cape-filter-field-date-term-term","data-test":"filter-term-input"},null,8,xp)),[[s.vModelText,r.value.isTerm]]):s.createCommentVNode("",!0)])],64))}}),Ji={install:function(e,t){e.use(sl),e.use(Ha()),e.provide("capeOptions",t),this.addCapeComponents(e,t),t.additionalComponents!==void 0&&this.addAdditionalComponents(e,t.additionalComponents)},addAdditionalComponents:function(e,t){Object.keys(t).forEach(function(n){e.component(n,t[n])})},addCapeComponents:function(e,t){e.component("CapeRoot",Hs),e.component("CapeAdvancedSearchToggle",Tl),e.component("CapeFilters",Vl),e.component("CapeFormResetButton",Cl),e.component("CapeHeader",Gs),e.component("CapeHomePage",Bs),e.component("CapeHomepageLayout",Is),e.component("CapeLoadError",Ls),e.component("CapeLoading",zs),e.component("CapeNavigation",Ys),e.component("CapeNonProdWarning",jl),e.component("CapeRecordCount",Nl),e.component("CapeRecordCard",As),e.component("CapeRecordPage",Fs),e.component("CapeResults",ac),e.component("CapeSummaryCard",Ks),e.component("CapeLabelledValue",yh),e.component("CapeValue",zi),e.component("CapeSingleValue",Cr),e.component("CapeFilterFieldText",Dh),e.component("CapeFilterFieldEnum",gp),e.component("CapeFilterFreeText",Ch),e.component("CapeFilterFieldInteger",Dp),e.component("CapeFilterFieldDate",Ip),e.component("CapeSortOrder",qs),e.component("CapeResultsControls",Jn),t.additionalComponents!==void 0&&Object.keys(t.additionalComponents).forEach(function(n){t.additionalComponents!==void 0&&e.component(n,t.additionalComponents[n])})}},Bp={template:"#templateCapeFooter"},Ap=s.defineComponent({__name:"App",setup(e){return(t,n)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createVNode(Gs),(s.openBlock(),s.createBlock(s.Suspense,null,{default:s.withCtx(()=>[s.createVNode(Hs)]),fallback:s.withCtx(()=>[s.createVNode(zs)]),_:1})),s.createVNode(Bp)],64))}}),Fp=e=>{const t=s.createApp(Ap);return t.use(Ji,e),t};J.CapePlugin=Ji,J.Filter=qn,J.createCapeApp=Fp,J.useDatasetStore=Ct,J.useFieldStore=en,J.useFilterStore=K,J.usePropertyStore=Kn,J.useSearchResultsStore=He,Object.defineProperty(J,Symbol.toStringTag,{value:"Module"})});
|
package/dist/favicon.ico
ADDED
|
Binary file
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { default as createCapeApp } from "./createCapeApp";
|
|
2
|
+
export { default as CapePlugin } from "./plugins/CapePlugin";
|
|
3
|
+
export { useFilterStore } from "./stores/filterStore";
|
|
4
|
+
export { useDatasetStore } from "./stores/datasetStore";
|
|
5
|
+
export { useFieldStore } from "./stores/fieldStore";
|
|
6
|
+
export { usePropertyStore } from "./stores/propertyStore";
|
|
7
|
+
export { useSearchResultsStore } from "./stores/searchResultsStore";
|
|
8
|
+
export { Filter } from "./filters/Filter";
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
install: (app: any, options: any) => void;
|
|
3
|
+
addAdditionalComponents: (app: any, additionalComponents: any) => void;
|
|
4
|
+
addCapeComponents: (app: any, options: any) => void;
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
7
|
+
//# sourceMappingURL=CapePlugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CapePlugin.d.ts","sourceRoot":"","sources":["../../src/plugins/CapePlugin.ts"],"names":[],"mappings":";;;;;AA4BA,wBAqDE"}
|